From 0c8f385f875b7f9848df7342d303c0e9cb9bd5ac Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Sat, 14 Aug 2021 17:00:19 -0400 Subject: [PATCH 01/46] chore(deps): add minimatch for pattern matching --- package.json | 1 + yarn.lock | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/package.json b/package.json index 1516319..510975a 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "esbuild": "^0.12.15", "husky": "^7.0.1", "lodash": "^4.17.21", + "minimatch": "^3.0.4", "react": "^17.0.2", "react-dom": "^17.0.2" }, diff --git a/yarn.lock b/yarn.lock index 66d0d84..eb6e644 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,11 +19,29 @@ resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.1.tgz#4a157406309e212ab27ed3ae30e8c1d641686a66" integrity sha512-Qi4JoKXjmE0O67wAOH6y0n26QXhMKMFo7GD/4IXNVcrtLjUlGjGuVys6pQgwF3ArfGTQu0XpqaNr0YhED2RaRA== +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + commander@7: version "7.2.0" resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + "d3-array@2 - 3", "d3-array@2.10.0 - 3", "d3-array@2.5.0 - 3", d3-array@3: version "3.0.1" resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.0.1.tgz#ca45c263f5bb780ab5a34a6e1d3d5883fe4a8d14" @@ -314,6 +332,13 @@ loose-envify@^1.1.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" +minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" From 2acdd5adf69347347675334707dfa403bb51d807 Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Sat, 14 Aug 2021 17:29:12 -0400 Subject: [PATCH 02/46] chore(tooling): set up unit tests --- .npmignore | 0 jest.config.cjs | 4 + package.json | 13 +- tsconfig.json | 19 + yarn.lock | 2574 ++++++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 2572 insertions(+), 38 deletions(-) create mode 100644 .npmignore create mode 100644 jest.config.cjs create mode 100644 tsconfig.json diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 diff --git a/jest.config.cjs b/jest.config.cjs new file mode 100644 index 0000000..2786a53 --- /dev/null +++ b/jest.config.cjs @@ -0,0 +1,4 @@ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'jsdom', +}; diff --git a/package.json b/package.json index 510975a..fb68dec 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,27 @@ { "scripts": { "build": "node_modules/.bin/esbuild --target=es2019 ./src/index.jsx --bundle --platform=node --outfile=index.js", - "prepare": "husky install" + "prepare": "husky install", + "test:jest": "jest", + "test:watch": "jest --watch", + "test:coverage": "jest --coverage", + "test": "npm run test:jest --" }, "dependencies": { "@actions/core": "^1.4.0", "@actions/exec": "^1.1.0", "d3": "^7.0.0", "esbuild": "^0.12.15", - "husky": "^7.0.1", "lodash": "^4.17.21", "minimatch": "^3.0.4", "react": "^17.0.2", "react-dom": "^17.0.2" }, "devDependencies": { - "husky": "^7.0.0" + "husky": "^7.0.0", + "@types/jest": "^27.0.1", + "jest": "^27.0.6", + "ts-jest": "^27.0.4", + "typescript": "^4.3.5" } } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..df5984a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', + + /* Strict Type-Checking Options */ + "strict": true, /* Enable all strict type-checking options. */ + "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + "strictNullChecks": true, /* Enable strict null checks. */ + "rootDirs": [ + "src" + ], + "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES + /* Advanced Options */ + "skipLibCheck": true, /* Skip type checking of declaration files. */ + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ + } +} diff --git a/yarn.lock b/yarn.lock index eb6e644..c7964b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,6 +19,751 @@ resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.1.tgz#4a157406309e212ab27ed3ae30e8c1d641686a66" integrity sha512-Qi4JoKXjmE0O67wAOH6y0n26QXhMKMFo7GD/4IXNVcrtLjUlGjGuVys6pQgwF3ArfGTQu0XpqaNr0YhED2RaRA== +"@babel/code-frame@^7.12.13", "@babel/code-frame@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb" + integrity sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw== + dependencies: + "@babel/highlight" "^7.14.5" + +"@babel/compat-data@^7.15.0": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176" + integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA== + +"@babel/core@^7.1.0", "@babel/core@^7.7.2", "@babel/core@^7.7.5": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.15.0.tgz#749e57c68778b73ad8082775561f67f5196aafa8" + integrity sha512-tXtmTminrze5HEUPn/a0JtOzzfp0nk+UEXQ/tqIJo3WDGypl/2OFQEMll/zSFU8f/lfmfLXvTaORHF3cfXIQMw== + dependencies: + "@babel/code-frame" "^7.14.5" + "@babel/generator" "^7.15.0" + "@babel/helper-compilation-targets" "^7.15.0" + "@babel/helper-module-transforms" "^7.15.0" + "@babel/helpers" "^7.14.8" + "@babel/parser" "^7.15.0" + "@babel/template" "^7.14.5" + "@babel/traverse" "^7.15.0" + "@babel/types" "^7.15.0" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.1.2" + semver "^6.3.0" + source-map "^0.5.0" + +"@babel/generator@^7.15.0", "@babel/generator@^7.7.2": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.15.0.tgz#a7d0c172e0d814974bad5aa77ace543b97917f15" + integrity sha512-eKl4XdMrbpYvuB505KTta4AV9g+wWzmVBW69tX0H2NwKVKd2YJbKgyK6M8j/rgLbmHOYJn6rUklV677nOyJrEQ== + dependencies: + "@babel/types" "^7.15.0" + jsesc "^2.5.1" + source-map "^0.5.0" + +"@babel/helper-compilation-targets@^7.15.0": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.0.tgz#973df8cbd025515f3ff25db0c05efc704fa79818" + integrity sha512-h+/9t0ncd4jfZ8wsdAsoIxSa61qhBYlycXiHWqJaQBCXAhDCMbPRSMTGnZIkkmt1u4ag+UQmuqcILwqKzZ4N2A== + dependencies: + "@babel/compat-data" "^7.15.0" + "@babel/helper-validator-option" "^7.14.5" + browserslist "^4.16.6" + semver "^6.3.0" + +"@babel/helper-function-name@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.14.5.tgz#89e2c474972f15d8e233b52ee8c480e2cfcd50c4" + integrity sha512-Gjna0AsXWfFvrAuX+VKcN/aNNWonizBj39yGwUzVDVTlMYJMK2Wp6xdpy72mfArFq5uK+NOuexfzZlzI1z9+AQ== + dependencies: + "@babel/helper-get-function-arity" "^7.14.5" + "@babel/template" "^7.14.5" + "@babel/types" "^7.14.5" + +"@babel/helper-get-function-arity@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.14.5.tgz#25fbfa579b0937eee1f3b805ece4ce398c431815" + integrity sha512-I1Db4Shst5lewOM4V+ZKJzQ0JGGaZ6VY1jYvMghRjqs6DWgxLCIyFt30GlnKkfUeFLpJt2vzbMVEXVSXlIFYUg== + dependencies: + "@babel/types" "^7.14.5" + +"@babel/helper-hoist-variables@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz#e0dd27c33a78e577d7c8884916a3e7ef1f7c7f8d" + integrity sha512-R1PXiz31Uc0Vxy4OEOm07x0oSjKAdPPCh3tPivn/Eo8cvz6gveAeuyUUPB21Hoiif0uoPQSSdhIPS3352nvdyQ== + dependencies: + "@babel/types" "^7.14.5" + +"@babel/helper-member-expression-to-functions@^7.15.0": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.0.tgz#0ddaf5299c8179f27f37327936553e9bba60990b" + integrity sha512-Jq8H8U2kYiafuj2xMTPQwkTBnEEdGKpT35lJEQsRRjnG0LW3neucsaMWLgKcwu3OHKNeYugfw+Z20BXBSEs2Lg== + dependencies: + "@babel/types" "^7.15.0" + +"@babel/helper-module-imports@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.14.5.tgz#6d1a44df6a38c957aa7c312da076429f11b422f3" + integrity sha512-SwrNHu5QWS84XlHwGYPDtCxcA0hrSlL2yhWYLgeOc0w7ccOl2qv4s/nARI0aYZW+bSwAL5CukeXA47B/1NKcnQ== + dependencies: + "@babel/types" "^7.14.5" + +"@babel/helper-module-transforms@^7.15.0": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.15.0.tgz#679275581ea056373eddbe360e1419ef23783b08" + integrity sha512-RkGiW5Rer7fpXv9m1B3iHIFDZdItnO2/BLfWVW/9q7+KqQSDY5kUfQEbzdXM1MVhJGcugKV7kRrNVzNxmk7NBg== + dependencies: + "@babel/helper-module-imports" "^7.14.5" + "@babel/helper-replace-supers" "^7.15.0" + "@babel/helper-simple-access" "^7.14.8" + "@babel/helper-split-export-declaration" "^7.14.5" + "@babel/helper-validator-identifier" "^7.14.9" + "@babel/template" "^7.14.5" + "@babel/traverse" "^7.15.0" + "@babel/types" "^7.15.0" + +"@babel/helper-optimise-call-expression@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.14.5.tgz#f27395a8619e0665b3f0364cddb41c25d71b499c" + integrity sha512-IqiLIrODUOdnPU9/F8ib1Fx2ohlgDhxnIDU7OEVi+kAbEZcyiF7BLU8W6PfvPi9LzztjS7kcbzbmL7oG8kD6VA== + dependencies: + "@babel/types" "^7.14.5" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.8.0": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz#5ac822ce97eec46741ab70a517971e443a70c5a9" + integrity sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ== + +"@babel/helper-replace-supers@^7.15.0": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.15.0.tgz#ace07708f5bf746bf2e6ba99572cce79b5d4e7f4" + integrity sha512-6O+eWrhx+HEra/uJnifCwhwMd6Bp5+ZfZeJwbqUTuqkhIT6YcRhiZCOOFChRypOIe0cV46kFrRBlm+t5vHCEaA== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.15.0" + "@babel/helper-optimise-call-expression" "^7.14.5" + "@babel/traverse" "^7.15.0" + "@babel/types" "^7.15.0" + +"@babel/helper-simple-access@^7.14.8": + version "7.14.8" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.14.8.tgz#82e1fec0644a7e775c74d305f212c39f8fe73924" + integrity sha512-TrFN4RHh9gnWEU+s7JloIho2T76GPwRHhdzOWLqTrMnlas8T9O7ec+oEDNsRXndOmru9ymH9DFrEOxpzPoSbdg== + dependencies: + "@babel/types" "^7.14.8" + +"@babel/helper-split-export-declaration@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.14.5.tgz#22b23a54ef51c2b7605d851930c1976dd0bc693a" + integrity sha512-hprxVPu6e5Kdp2puZUmvOGjaLv9TCe58E/Fl6hRq4YiVQxIcNvuq6uTM2r1mT/oPskuS9CgR+I94sqAYv0NGKA== + dependencies: + "@babel/types" "^7.14.5" + +"@babel/helper-validator-identifier@^7.14.5", "@babel/helper-validator-identifier@^7.14.9": + version "7.14.9" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.9.tgz#6654d171b2024f6d8ee151bf2509699919131d48" + integrity sha512-pQYxPY0UP6IHISRitNe8bsijHex4TWZXi2HwKVsjPiltzlhse2znVcm9Ace510VT1kxIHjGJCZZQBX2gJDbo0g== + +"@babel/helper-validator-option@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3" + integrity sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow== + +"@babel/helpers@^7.14.8": + version "7.15.3" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.15.3.tgz#c96838b752b95dcd525b4e741ed40bb1dc2a1357" + integrity sha512-HwJiz52XaS96lX+28Tnbu31VeFSQJGOeKHJeaEPQlTl7PnlhFElWPj8tUXtqFIzeN86XxXoBr+WFAyK2PPVz6g== + dependencies: + "@babel/template" "^7.14.5" + "@babel/traverse" "^7.15.0" + "@babel/types" "^7.15.0" + +"@babel/highlight@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9" + integrity sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg== + dependencies: + "@babel/helper-validator-identifier" "^7.14.5" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/parser@^7.1.0", "@babel/parser@^7.14.5", "@babel/parser@^7.15.0", "@babel/parser@^7.7.2": + version "7.15.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.3.tgz#3416d9bea748052cfcb63dbcc27368105b1ed862" + integrity sha512-O0L6v/HvqbdJawj0iBEfVQMc3/6WP+AeOsovsIgBFyJaG+W2w7eqvZB7puddATmWuARlm1SX7DwxJ/JJUnDpEA== + +"@babel/plugin-syntax-async-generators@^7.8.4": + version "7.8.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-bigint@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" + integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-class-properties@^7.8.3": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" + integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== + dependencies: + "@babel/helper-plugin-utils" "^7.12.13" + +"@babel/plugin-syntax-import-meta@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-json-strings@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" + integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-numeric-separator@^7.8.3": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-object-rest-spread@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" + integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" + integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-chaining@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-top-level-await@^7.8.3": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-typescript@^7.7.2": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.14.5.tgz#b82c6ce471b165b5ce420cf92914d6fb46225716" + integrity sha512-u6OXzDaIXjEstBRRoBCQ/uKQKlbuaeE5in0RvWdA4pN6AhqxTIwUsnHPU1CFZA/amYObMsuWhYfRl3Ch90HD0Q== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/template@^7.14.5", "@babel/template@^7.3.3": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4" + integrity sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g== + dependencies: + "@babel/code-frame" "^7.14.5" + "@babel/parser" "^7.14.5" + "@babel/types" "^7.14.5" + +"@babel/traverse@^7.1.0", "@babel/traverse@^7.15.0", "@babel/traverse@^7.7.2": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.15.0.tgz#4cca838fd1b2a03283c1f38e141f639d60b3fc98" + integrity sha512-392d8BN0C9eVxVWd8H6x9WfipgVH5IaIoLp23334Sc1vbKKWINnvwRpb4us0xtPaCumlwbTtIYNA0Dv/32sVFw== + dependencies: + "@babel/code-frame" "^7.14.5" + "@babel/generator" "^7.15.0" + "@babel/helper-function-name" "^7.14.5" + "@babel/helper-hoist-variables" "^7.14.5" + "@babel/helper-split-export-declaration" "^7.14.5" + "@babel/parser" "^7.15.0" + "@babel/types" "^7.15.0" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/types@^7.0.0", "@babel/types@^7.14.5", "@babel/types@^7.14.8", "@babel/types@^7.15.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3": + version "7.15.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.15.0.tgz#61af11f2286c4e9c69ca8deb5f4375a73c72dcbd" + integrity sha512-OBvfqnllOIdX4ojTHpwZbpvz4j3EWyjkZEdmjH0/cgsd6QOdSgU8rLSk6ard/pcW7rlmjdVSX/AWOaORR1uNOQ== + dependencies: + "@babel/helper-validator-identifier" "^7.14.9" + to-fast-properties "^2.0.0" + +"@bcoe/v8-coverage@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" + integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jest/console@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-27.0.6.tgz#3eb72ea80897495c3d73dd97aab7f26770e2260f" + integrity sha512-fMlIBocSHPZ3JxgWiDNW/KPj6s+YRd0hicb33IrmelCcjXo/pXPwvuiKFmZz+XuqI/1u7nbUK10zSsWL/1aegg== + dependencies: + "@jest/types" "^27.0.6" + "@types/node" "*" + chalk "^4.0.0" + jest-message-util "^27.0.6" + jest-util "^27.0.6" + slash "^3.0.0" + +"@jest/core@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-27.0.6.tgz#c5f642727a0b3bf0f37c4b46c675372d0978d4a1" + integrity sha512-SsYBm3yhqOn5ZLJCtccaBcvD/ccTLCeuDv8U41WJH/V1MW5eKUkeMHT9U+Pw/v1m1AIWlnIW/eM2XzQr0rEmow== + dependencies: + "@jest/console" "^27.0.6" + "@jest/reporters" "^27.0.6" + "@jest/test-result" "^27.0.6" + "@jest/transform" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + emittery "^0.8.1" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-changed-files "^27.0.6" + jest-config "^27.0.6" + jest-haste-map "^27.0.6" + jest-message-util "^27.0.6" + jest-regex-util "^27.0.6" + jest-resolve "^27.0.6" + jest-resolve-dependencies "^27.0.6" + jest-runner "^27.0.6" + jest-runtime "^27.0.6" + jest-snapshot "^27.0.6" + jest-util "^27.0.6" + jest-validate "^27.0.6" + jest-watcher "^27.0.6" + micromatch "^4.0.4" + p-each-series "^2.1.0" + rimraf "^3.0.0" + slash "^3.0.0" + strip-ansi "^6.0.0" + +"@jest/environment@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.0.6.tgz#ee293fe996db01d7d663b8108fa0e1ff436219d2" + integrity sha512-4XywtdhwZwCpPJ/qfAkqExRsERW+UaoSRStSHCCiQTUpoYdLukj+YJbQSFrZjhlUDRZeNiU9SFH0u7iNimdiIg== + dependencies: + "@jest/fake-timers" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + jest-mock "^27.0.6" + +"@jest/fake-timers@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.0.6.tgz#cbad52f3fe6abe30e7acb8cd5fa3466b9588e3df" + integrity sha512-sqd+xTWtZ94l3yWDKnRTdvTeZ+A/V7SSKrxsrOKSqdyddb9CeNRF8fbhAU0D7ZJBpTTW2nbp6MftmKJDZfW2LQ== + dependencies: + "@jest/types" "^27.0.6" + "@sinonjs/fake-timers" "^7.0.2" + "@types/node" "*" + jest-message-util "^27.0.6" + jest-mock "^27.0.6" + jest-util "^27.0.6" + +"@jest/globals@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.0.6.tgz#48e3903f99a4650673d8657334d13c9caf0e8f82" + integrity sha512-DdTGCP606rh9bjkdQ7VvChV18iS7q0IMJVP1piwTWyWskol4iqcVwthZmoJEf7obE1nc34OpIyoVGPeqLC+ryw== + dependencies: + "@jest/environment" "^27.0.6" + "@jest/types" "^27.0.6" + expect "^27.0.6" + +"@jest/reporters@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-27.0.6.tgz#91e7f2d98c002ad5df94d5b5167c1eb0b9fd5b00" + integrity sha512-TIkBt09Cb2gptji3yJXb3EE+eVltW6BjO7frO7NEfjI9vSIYoISi5R3aI3KpEDXlB1xwB+97NXIqz84qYeYsfA== + dependencies: + "@bcoe/v8-coverage" "^0.2.3" + "@jest/console" "^27.0.6" + "@jest/test-result" "^27.0.6" + "@jest/transform" "^27.0.6" + "@jest/types" "^27.0.6" + chalk "^4.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.2.4" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-instrument "^4.0.3" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.0.2" + jest-haste-map "^27.0.6" + jest-resolve "^27.0.6" + jest-util "^27.0.6" + jest-worker "^27.0.6" + slash "^3.0.0" + source-map "^0.6.0" + string-length "^4.0.1" + terminal-link "^2.0.0" + v8-to-istanbul "^8.0.0" + +"@jest/source-map@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-27.0.6.tgz#be9e9b93565d49b0548b86e232092491fb60551f" + integrity sha512-Fek4mi5KQrqmlY07T23JRi0e7Z9bXTOOD86V/uS0EIW4PClvPDqZOyFlLpNJheS6QI0FNX1CgmPjtJ4EA/2M+g== + dependencies: + callsites "^3.0.0" + graceful-fs "^4.2.4" + source-map "^0.6.0" + +"@jest/test-result@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.0.6.tgz#3fa42015a14e4fdede6acd042ce98c7f36627051" + integrity sha512-ja/pBOMTufjX4JLEauLxE3LQBPaI2YjGFtXexRAjt1I/MbfNlMx0sytSX3tn5hSLzQsR3Qy2rd0hc1BWojtj9w== + dependencies: + "@jest/console" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/istanbul-lib-coverage" "^2.0.0" + collect-v8-coverage "^1.0.0" + +"@jest/test-sequencer@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-27.0.6.tgz#80a913ed7a1130545b1cd777ff2735dd3af5d34b" + integrity sha512-bISzNIApazYOlTHDum9PwW22NOyDa6VI31n6JucpjTVM0jD6JDgqEZ9+yn575nDdPF0+4csYDxNNW13NvFQGZA== + dependencies: + "@jest/test-result" "^27.0.6" + graceful-fs "^4.2.4" + jest-haste-map "^27.0.6" + jest-runtime "^27.0.6" + +"@jest/transform@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.0.6.tgz#189ad7107413208f7600f4719f81dd2f7278cc95" + integrity sha512-rj5Dw+mtIcntAUnMlW/Vju5mr73u8yg+irnHwzgtgoeI6cCPOvUwQ0D1uQtc/APmWgvRweEb1g05pkUpxH3iCA== + dependencies: + "@babel/core" "^7.1.0" + "@jest/types" "^27.0.6" + babel-plugin-istanbul "^6.0.0" + chalk "^4.0.0" + convert-source-map "^1.4.0" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.2.4" + jest-haste-map "^27.0.6" + jest-regex-util "^27.0.6" + jest-util "^27.0.6" + micromatch "^4.0.4" + pirates "^4.0.1" + slash "^3.0.0" + source-map "^0.6.1" + write-file-atomic "^3.0.0" + +"@jest/types@^27.0.6": + version "27.0.6" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.0.6.tgz#9a992bc517e0c49f035938b8549719c2de40706b" + integrity sha512-aSquT1qa9Pik26JK5/3rvnYb4bGtm1VFNesHKmNTwmPIgOrixvhL2ghIvFRNEpzy3gU+rUgjIF/KodbkFAl++g== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^16.0.0" + chalk "^4.0.0" + +"@sinonjs/commons@^1.7.0": + version "1.8.3" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d" + integrity sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^7.0.2": + version "7.1.2" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-7.1.2.tgz#2524eae70c4910edccf99b2f4e6efc5894aff7b5" + integrity sha512-iQADsW4LBMISqZ6Ci1dupJL9pprqwcVFTcOsEmQOEhW+KLCVn/Y4Jrvg2k19fIHCp+iFprriYPTdRcQR8NbUPg== + dependencies: + "@sinonjs/commons" "^1.7.0" + +"@tootallnate/once@1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" + integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== + +"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": + version "7.1.15" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.15.tgz#2ccfb1ad55a02c83f8e0ad327cbc332f55eb1024" + integrity sha512-bxlMKPDbY8x5h6HBwVzEOk2C8fb6SLfYQ5Jw3uBYuYF1lfWk/kbLd81la82vrIkBb0l+JdmrZaDikPrNxpS/Ew== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.6.3" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.3.tgz#f456b4b2ce79137f768aa130d2423d2f0ccfaba5" + integrity sha512-/GWCmzJWqV7diQW54smJZzWbSFf4QYtF71WCKhcx6Ru/tFyQIY2eiiITcCAeuPbNSvT9YCGkVMqqvSk2Z0mXiA== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.4.1" + resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.1.tgz#3d1a48fd9d6c0edfd56f2ff578daed48f36c8969" + integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": + version "7.14.2" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.14.2.tgz#ffcd470bbb3f8bf30481678fb5502278ca833a43" + integrity sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA== + dependencies: + "@babel/types" "^7.3.0" + +"@types/graceful-fs@^4.1.2": + version "4.1.5" + resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" + integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== + dependencies: + "@types/node" "*" + +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" + integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== + +"@types/istanbul-lib-report@*": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" + integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^3.0.0": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" + integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== + dependencies: + "@types/istanbul-lib-report" "*" + +"@types/jest@^27.0.1": + version "27.0.1" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.0.1.tgz#fafcc997da0135865311bb1215ba16dba6bdf4ca" + integrity sha512-HTLpVXHrY69556ozYkcq47TtQJXpcWAWfkoqz+ZGz2JnmZhzlRjprCIyFnetSy8gpDWwTTGBcRVv1J1I1vBrHw== + dependencies: + jest-diff "^27.0.0" + pretty-format "^27.0.0" + +"@types/node@*": + version "16.6.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.6.1.tgz#aee62c7b966f55fc66c7b6dfa1d58db2a616da61" + integrity sha512-Sr7BhXEAer9xyGuCN3Ek9eg9xPviCF2gfu9kTfuU2HkTVAMYSDeX40fvpmo72n5nansg3nsBjuQBrsS28r+NUw== + +"@types/prettier@^2.1.5": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.3.2.tgz#fc8c2825e4ed2142473b4a81064e6e081463d1b3" + integrity sha512-eI5Yrz3Qv4KPUa/nSIAi0h+qX0XyewOliug5F2QAtuRg6Kjg6jfmxe1GIwoIRhZspD1A0RP8ANrPwvEXXtRFog== + +"@types/stack-utils@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" + integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== + +"@types/yargs-parser@*": + version "20.2.1" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-20.2.1.tgz#3b9ce2489919d9e4fea439b76916abc34b2df129" + integrity sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw== + +"@types/yargs@^16.0.0": + version "16.0.4" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" + integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== + dependencies: + "@types/yargs-parser" "*" + +abab@^2.0.3, abab@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" + integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== + +acorn-globals@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" + integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== + dependencies: + acorn "^7.1.1" + acorn-walk "^7.1.1" + +acorn-walk@^7.1.1: + version "7.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" + integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== + +acorn@^7.1.1: + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== + +acorn@^8.2.4: + version "8.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.4.1.tgz#56c36251fc7cabc7096adc18f05afe814321a28c" + integrity sha512-asabaBSkEKosYKMITunzX177CXxQ4Q8BSSzMTKD+FefUhipQC70gfW5SiUDhYQ3vk8G+81HqQk7Fv9OXwwn9KA== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +ansi-escapes@^4.2.1: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +ansi-styles@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" + integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== + +anymatch@^3.0.3: + version "3.1.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" + integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +babel-jest@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.0.6.tgz#e99c6e0577da2655118e3608b68761a5a69bd0d8" + integrity sha512-iTJyYLNc4wRofASmofpOc5NK9QunwMk+TLFgGXsTFS8uEqmd8wdI7sga0FPe2oVH3b5Agt/EAK1QjPEuKL8VfA== + dependencies: + "@jest/transform" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/babel__core" "^7.1.14" + babel-plugin-istanbul "^6.0.0" + babel-preset-jest "^27.0.6" + chalk "^4.0.0" + graceful-fs "^4.2.4" + slash "^3.0.0" + +babel-plugin-istanbul@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz#e159ccdc9af95e0b570c75b4573b7c34d671d765" + integrity sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-instrument "^4.0.0" + test-exclude "^6.0.0" + +babel-plugin-jest-hoist@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.0.6.tgz#f7c6b3d764af21cb4a2a1ab6870117dbde15b456" + integrity sha512-CewFeM9Vv2gM7Yr9n5eyyLVPRSiBnk6lKZRjgwYnGKSl9M14TMn2vkN02wTF04OGuSDLEzlWiMzvjXuW9mB6Gw== + dependencies: + "@babel/template" "^7.3.3" + "@babel/types" "^7.3.3" + "@types/babel__core" "^7.0.0" + "@types/babel__traverse" "^7.0.6" + +babel-preset-current-node-syntax@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" + integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== + dependencies: + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-bigint" "^7.8.3" + "@babel/plugin-syntax-class-properties" "^7.8.3" + "@babel/plugin-syntax-import-meta" "^7.8.3" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.8.3" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-top-level-await" "^7.8.3" + +babel-preset-jest@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.0.6.tgz#909ef08e9f24a4679768be2f60a3df0856843f9d" + integrity sha512-WObA0/Biw2LrVVwZkF/2GqbOdzhKD6Fkdwhoy9ASIrOWr/zodcSpQh72JOkEn6NWyjmnPDjNSqaGN4KnpKzhXw== + dependencies: + babel-plugin-jest-hoist "^27.0.6" + babel-preset-current-node-syntax "^1.0.0" + balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -32,6 +777,155 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +braces@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +browser-process-hrtime@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" + integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== + +browserslist@^4.16.6: + version "4.16.7" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.7.tgz#108b0d1ef33c4af1b587c54f390e7041178e4335" + integrity sha512-7I4qVwqZltJ7j37wObBe3SoTz+nS8APaNcrBOlgoirb6/HbEU2XxW/LpUDTCngM6iauwFqmRTuOMfyKnFGY5JA== + dependencies: + caniuse-lite "^1.0.30001248" + colorette "^1.2.2" + electron-to-chromium "^1.3.793" + escalade "^3.1.1" + node-releases "^1.1.73" + +bs-logger@0.x: + version "0.2.6" + resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + +bser@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" + integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== + dependencies: + node-int64 "^0.4.0" + +buffer-from@1.x, buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +camelcase@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" + integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== + +caniuse-lite@^1.0.30001248: + version "1.0.30001251" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001251.tgz#6853a606ec50893115db660f82c094d18f096d85" + integrity sha512-HOe1r+9VkU4TFmnU70z+r7OLmtR+/chB1rdcJUeQlAinjEeb0cKL20tlAtOagNZhbrtLnCvV19B4FmF1rgzl6A== + +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +char-regex@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" + integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== + +ci-info@^3.1.1: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6" + integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A== + +cjs-module-lexer@^1.0.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz#9f84ba3244a512f3a54e5277e8eef4c489864e40" + integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA== + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + +collect-v8-coverage@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" + integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +colorette@^1.2.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.3.0.tgz#ff45d2f0edb244069d3b772adeb04fed38d0a0af" + integrity sha512-ecORCqbSFP7Wm8Y6lyqMJjexBQqXSF7SSeaTyGGphogUjBlFP9m9o08wy86HL2uB7fMTxtOUzLMk7ogKcxMg1w== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + commander@7: version "7.2.0" resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" @@ -42,6 +936,39 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= +convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" + integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== + dependencies: + safe-buffer "~5.1.1" + +cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +cssom@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" + integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== + +cssom@~0.3.6: + version "0.3.8" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" + integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== + +cssstyle@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" + integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== + dependencies: + cssom "~0.3.6" + "d3-array@2 - 3", "d3-array@2.10.0 - 3", "d3-array@2.5.0 - 3", d3-array@3: version "3.0.1" resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.0.1.tgz#ca45c263f5bb780ab5a34a6e1d3d5883fe4a8d14" @@ -286,6 +1213,42 @@ d3@^7.0.0: d3-transition "3" d3-zoom "3" +data-urls@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" + integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== + dependencies: + abab "^2.0.3" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.0.0" + +debug@4, debug@^4.1.0, debug@^4.1.1: + version "4.3.2" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== + dependencies: + ms "2.1.2" + +decimal.js@^10.2.1: + version "10.3.1" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783" + integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ== + +dedent@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" + integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + +deepmerge@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" + integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== + delaunator@5: version "5.0.0" resolved "https://registry.yarnpkg.com/delaunator/-/delaunator-5.0.0.tgz#60f052b28bd91c9b4566850ebf7756efe821d81b" @@ -293,57 +1256,1162 @@ delaunator@5: dependencies: robust-predicates "^3.0.0" +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +detect-newline@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +diff-sequences@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.0.6.tgz#3305cb2e55a033924054695cc66019fd7f8e5723" + integrity sha512-ag6wfpBFyNXZ0p8pcuIDS//D8H062ZQJ3fzYxjpmeKjnz8W4pekL3AI8VohmyZmsWW2PWaHgjsmqR6L13101VQ== + +domexception@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" + integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== + dependencies: + webidl-conversions "^5.0.0" + +electron-to-chromium@^1.3.793: + version "1.3.806" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.806.tgz#21502100f11aead6c501d1cd7f2504f16c936642" + integrity sha512-AH/otJLAAecgyrYp0XK1DPiGVWcOgwPeJBOLeuFQ5l//vhQhwC9u6d+GijClqJAmsHG4XDue81ndSQPohUu0xA== + +emittery@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860" + integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + esbuild@^0.12.15: version "0.12.15" resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.15.tgz#9d99cf39aeb2188265c5983e983e236829f08af0" integrity sha512-72V4JNd2+48eOVCXx49xoSWHgC3/cCy96e7mbXKY+WOWghN00cCmlGnwVLRhRHorvv0dgCyuMYBZlM2xDM5OQw== -husky@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.1.tgz#579f4180b5da4520263e8713cc832942b48e1f1c" - integrity sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA== +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== -iconv-lite@0.6: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +escape-string-regexp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + +escodegen@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" + integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" + esprima "^4.0.1" + estraverse "^5.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" -"internmap@1 - 2": - version "2.0.1" - resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.1.tgz#33d0fa016185397549fb1a14ea3dbe5a2949d1cd" - integrity sha512-Ujwccrj9FkGqjbY3iVoxD1VV+KdZZeENx0rphrtzmRXbFvkFO88L80BL/zeSIguX/7T+y8k04xqtgWgS5vxwxw== +esprima@^4.0.0, esprima@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -"js-tokens@^3.0.0 || ^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== +estraverse@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" + integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== -lodash@^4.17.21: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== -loose-envify@^1.1.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== +execa@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== dependencies: - js-tokens "^3.0.0 || ^4.0.0" + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + +expect@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/expect/-/expect-27.0.6.tgz#a4d74fbe27222c718fff68ef49d78e26a8fd4c05" + integrity sha512-psNLt8j2kwg42jGBDSfAlU49CEZxejN1f1PlANWDZqIhBOVU/c2Pm888FcjWJzFewhIsNWfZJeLjUjtKGiPuSw== dependencies: - brace-expansion "^1.1.7" + "@jest/types" "^27.0.6" + ansi-styles "^5.0.0" + jest-get-type "^27.0.6" + jest-matcher-utils "^27.0.6" + jest-message-util "^27.0.6" + jest-regex-util "^27.0.6" -object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + +fb-watchman@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" + integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg== + dependencies: + bser "2.1.1" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +form-data@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" + integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-stream@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + +glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: + version "7.1.7" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" + integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +graceful-fs@^4.2.4: + version "4.2.8" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a" + integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +html-encoding-sniffer@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" + integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== + dependencies: + whatwg-encoding "^1.0.5" + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +http-proxy-agent@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" + integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== + dependencies: + "@tootallnate/once" "1" + agent-base "6" + debug "4" + +https-proxy-agent@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2" + integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA== + dependencies: + agent-base "6" + debug "4" + +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +husky@^7.0.0: + version "7.0.1" + resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.1.tgz#579f4180b5da4520263e8713cc832942b48e1f1c" + integrity sha512-gceRaITVZ+cJH9sNHqx5tFwbzlLCVxtVZcusME8JYQ8Edy5mpGDOqD8QBCdMhpyo9a+JXddnujQ4rpY2Ff9SJA== + +iconv-lite@0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +iconv-lite@0.6: + version "0.6.3" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +import-local@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6" + integrity sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA== + dependencies: + pkg-dir "^4.2.0" + resolve-cwd "^3.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +"internmap@1 - 2": + version "2.0.1" + resolved "https://registry.yarnpkg.com/internmap/-/internmap-2.0.1.tgz#33d0fa016185397549fb1a14ea3dbe5a2949d1cd" + integrity sha512-Ujwccrj9FkGqjbY3iVoxD1VV+KdZZeENx0rphrtzmRXbFvkFO88L80BL/zeSIguX/7T+y8k04xqtgWgS5vxwxw== + +is-ci@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.0.tgz#c7e7be3c9d8eef7d0fa144390bd1e4b88dc4c994" + integrity sha512-kDXyttuLeslKAHYL/K28F2YkM3x5jvFPEw3yXbRptXydjD9rpLEz+C5K5iutY9ZiUu6AP41JdvRQwF4Iqs4ZCQ== + dependencies: + ci-info "^3.1.1" + +is-core-module@^2.2.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.5.0.tgz#f754843617c70bfd29b7bd87327400cda5c18491" + integrity sha512-TXCMSDsEHMEEZ6eCA8rwRDbLu55MRGmrctljsBX/2v1d9/GzqHOxW5c5oPSgrUt2vBFXebu9rGqckXGPWOlYpg== + dependencies: + has "^1.0.3" + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-potential-custom-element-name@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" + integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== + +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +istanbul-lib-coverage@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" + integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== + +istanbul-lib-instrument@^4.0.0, istanbul-lib-instrument@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" + integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== + dependencies: + "@babel/core" "^7.7.5" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.0.0" + semver "^6.3.0" + +istanbul-lib-report@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" + integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^3.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz#75743ce6d96bb86dc7ee4352cf6366a23f0b1ad9" + integrity sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" + +istanbul-reports@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b" + integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +jest-changed-files@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-27.0.6.tgz#bed6183fcdea8a285482e3b50a9a7712d49a7a8b" + integrity sha512-BuL/ZDauaq5dumYh5y20sn4IISnf1P9A0TDswTxUi84ORGtVa86ApuBHqICL0vepqAnZiY6a7xeSPWv2/yy4eA== + dependencies: + "@jest/types" "^27.0.6" + execa "^5.0.0" + throat "^6.0.1" + +jest-circus@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.0.6.tgz#dd4df17c4697db6a2c232aaad4e9cec666926668" + integrity sha512-OJlsz6BBeX9qR+7O9lXefWoc2m9ZqcZ5Ohlzz0pTEAG4xMiZUJoacY8f4YDHxgk0oKYxj277AfOk9w6hZYvi1Q== + dependencies: + "@jest/environment" "^27.0.6" + "@jest/test-result" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + chalk "^4.0.0" + co "^4.6.0" + dedent "^0.7.0" + expect "^27.0.6" + is-generator-fn "^2.0.0" + jest-each "^27.0.6" + jest-matcher-utils "^27.0.6" + jest-message-util "^27.0.6" + jest-runtime "^27.0.6" + jest-snapshot "^27.0.6" + jest-util "^27.0.6" + pretty-format "^27.0.6" + slash "^3.0.0" + stack-utils "^2.0.3" + throat "^6.0.1" + +jest-cli@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-27.0.6.tgz#d021e5f4d86d6a212450d4c7b86cb219f1e6864f" + integrity sha512-qUUVlGb9fdKir3RDE+B10ULI+LQrz+MCflEH2UJyoUjoHHCbxDrMxSzjQAPUMsic4SncI62ofYCcAvW6+6rhhg== + dependencies: + "@jest/core" "^27.0.6" + "@jest/test-result" "^27.0.6" + "@jest/types" "^27.0.6" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.4" + import-local "^3.0.2" + jest-config "^27.0.6" + jest-util "^27.0.6" + jest-validate "^27.0.6" + prompts "^2.0.1" + yargs "^16.0.3" + +jest-config@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-27.0.6.tgz#119fb10f149ba63d9c50621baa4f1f179500277f" + integrity sha512-JZRR3I1Plr2YxPBhgqRspDE2S5zprbga3swYNrvY3HfQGu7p/GjyLOqwrYad97tX3U3mzT53TPHVmozacfP/3w== + dependencies: + "@babel/core" "^7.1.0" + "@jest/test-sequencer" "^27.0.6" + "@jest/types" "^27.0.6" + babel-jest "^27.0.6" + chalk "^4.0.0" + deepmerge "^4.2.2" + glob "^7.1.1" + graceful-fs "^4.2.4" + is-ci "^3.0.0" + jest-circus "^27.0.6" + jest-environment-jsdom "^27.0.6" + jest-environment-node "^27.0.6" + jest-get-type "^27.0.6" + jest-jasmine2 "^27.0.6" + jest-regex-util "^27.0.6" + jest-resolve "^27.0.6" + jest-runner "^27.0.6" + jest-util "^27.0.6" + jest-validate "^27.0.6" + micromatch "^4.0.4" + pretty-format "^27.0.6" + +jest-diff@^27.0.0, jest-diff@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.0.6.tgz#4a7a19ee6f04ad70e0e3388f35829394a44c7b5e" + integrity sha512-Z1mqgkTCSYaFgwTlP/NUiRzdqgxmmhzHY1Tq17zL94morOHfHu3K4bgSgl+CR4GLhpV8VxkuOYuIWnQ9LnFqmg== + dependencies: + chalk "^4.0.0" + diff-sequences "^27.0.6" + jest-get-type "^27.0.6" + pretty-format "^27.0.6" + +jest-docblock@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-27.0.6.tgz#cc78266acf7fe693ca462cbbda0ea4e639e4e5f3" + integrity sha512-Fid6dPcjwepTFraz0YxIMCi7dejjJ/KL9FBjPYhBp4Sv1Y9PdhImlKZqYU555BlN4TQKaTc+F2Av1z+anVyGkA== + dependencies: + detect-newline "^3.0.0" + +jest-each@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.0.6.tgz#cee117071b04060158dc8d9a66dc50ad40ef453b" + integrity sha512-m6yKcV3bkSWrUIjxkE9OC0mhBZZdhovIW5ergBYirqnkLXkyEn3oUUF/QZgyecA1cF1QFyTE8bRRl8Tfg1pfLA== + dependencies: + "@jest/types" "^27.0.6" + chalk "^4.0.0" + jest-get-type "^27.0.6" + jest-util "^27.0.6" + pretty-format "^27.0.6" + +jest-environment-jsdom@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-27.0.6.tgz#f66426c4c9950807d0a9f209c590ce544f73291f" + integrity sha512-FvetXg7lnXL9+78H+xUAsra3IeZRTiegA3An01cWeXBspKXUhAwMM9ycIJ4yBaR0L7HkoMPaZsozCLHh4T8fuw== + dependencies: + "@jest/environment" "^27.0.6" + "@jest/fake-timers" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + jest-mock "^27.0.6" + jest-util "^27.0.6" + jsdom "^16.6.0" + +jest-environment-node@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-27.0.6.tgz#a6699b7ceb52e8d68138b9808b0c404e505f3e07" + integrity sha512-+Vi6yLrPg/qC81jfXx3IBlVnDTI6kmRr08iVa2hFCWmJt4zha0XW7ucQltCAPhSR0FEKEoJ3i+W4E6T0s9is0w== + dependencies: + "@jest/environment" "^27.0.6" + "@jest/fake-timers" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + jest-mock "^27.0.6" + jest-util "^27.0.6" + +jest-get-type@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.0.6.tgz#0eb5c7f755854279ce9b68a9f1a4122f69047cfe" + integrity sha512-XTkK5exIeUbbveehcSR8w0bhH+c0yloW/Wpl+9vZrjzztCPWrxhHwkIFpZzCt71oRBsgxmuUfxEqOYoZI2macg== + +jest-haste-map@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.0.6.tgz#4683a4e68f6ecaa74231679dca237279562c8dc7" + integrity sha512-4ldjPXX9h8doB2JlRzg9oAZ2p6/GpQUNAeiYXqcpmrKbP0Qev0wdZlxSMOmz8mPOEnt4h6qIzXFLDi8RScX/1w== + dependencies: + "@jest/types" "^27.0.6" + "@types/graceful-fs" "^4.1.2" + "@types/node" "*" + anymatch "^3.0.3" + fb-watchman "^2.0.0" + graceful-fs "^4.2.4" + jest-regex-util "^27.0.6" + jest-serializer "^27.0.6" + jest-util "^27.0.6" + jest-worker "^27.0.6" + micromatch "^4.0.4" + walker "^1.0.7" + optionalDependencies: + fsevents "^2.3.2" + +jest-jasmine2@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-27.0.6.tgz#fd509a9ed3d92bd6edb68a779f4738b100655b37" + integrity sha512-cjpH2sBy+t6dvCeKBsHpW41mjHzXgsavaFMp+VWRf0eR4EW8xASk1acqmljFtK2DgyIECMv2yCdY41r2l1+4iA== + dependencies: + "@babel/traverse" "^7.1.0" + "@jest/environment" "^27.0.6" + "@jest/source-map" "^27.0.6" + "@jest/test-result" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + chalk "^4.0.0" + co "^4.6.0" + expect "^27.0.6" + is-generator-fn "^2.0.0" + jest-each "^27.0.6" + jest-matcher-utils "^27.0.6" + jest-message-util "^27.0.6" + jest-runtime "^27.0.6" + jest-snapshot "^27.0.6" + jest-util "^27.0.6" + pretty-format "^27.0.6" + throat "^6.0.1" + +jest-leak-detector@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.0.6.tgz#545854275f85450d4ef4b8fe305ca2a26450450f" + integrity sha512-2/d6n2wlH5zEcdctX4zdbgX8oM61tb67PQt4Xh8JFAIy6LRKUnX528HulkaG6nD5qDl5vRV1NXejCe1XRCH5gQ== + dependencies: + jest-get-type "^27.0.6" + pretty-format "^27.0.6" + +jest-matcher-utils@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.0.6.tgz#2a8da1e86c620b39459f4352eaa255f0d43e39a9" + integrity sha512-OFgF2VCQx9vdPSYTHWJ9MzFCehs20TsyFi6bIHbk5V1u52zJOnvF0Y/65z3GLZHKRuTgVPY4Z6LVePNahaQ+tA== + dependencies: + chalk "^4.0.0" + jest-diff "^27.0.6" + jest-get-type "^27.0.6" + pretty-format "^27.0.6" + +jest-message-util@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.0.6.tgz#158bcdf4785706492d164a39abca6a14da5ab8b5" + integrity sha512-rBxIs2XK7rGy+zGxgi+UJKP6WqQ+KrBbD1YMj517HYN3v2BG66t3Xan3FWqYHKZwjdB700KiAJ+iES9a0M+ixw== + dependencies: + "@babel/code-frame" "^7.12.13" + "@jest/types" "^27.0.6" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.4" + micromatch "^4.0.4" + pretty-format "^27.0.6" + slash "^3.0.0" + stack-utils "^2.0.3" + +jest-mock@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.0.6.tgz#0efdd40851398307ba16778728f6d34d583e3467" + integrity sha512-lzBETUoK8cSxts2NYXSBWT+EJNzmUVtVVwS1sU9GwE1DLCfGsngg+ZVSIe0yd0ZSm+y791esiuo+WSwpXJQ5Bw== + dependencies: + "@jest/types" "^27.0.6" + "@types/node" "*" + +jest-pnp-resolver@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" + integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== + +jest-regex-util@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.0.6.tgz#02e112082935ae949ce5d13b2675db3d8c87d9c5" + integrity sha512-SUhPzBsGa1IKm8hx2F4NfTGGp+r7BXJ4CulsZ1k2kI+mGLG+lxGrs76veN2LF/aUdGosJBzKgXmNCw+BzFqBDQ== + +jest-resolve-dependencies@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-27.0.6.tgz#3e619e0ef391c3ecfcf6ef4056207a3d2be3269f" + integrity sha512-mg9x9DS3BPAREWKCAoyg3QucCr0n6S8HEEsqRCKSPjPcu9HzRILzhdzY3imsLoZWeosEbJZz6TKasveczzpJZA== + dependencies: + "@jest/types" "^27.0.6" + jest-regex-util "^27.0.6" + jest-snapshot "^27.0.6" + +jest-resolve@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.0.6.tgz#e90f436dd4f8fbf53f58a91c42344864f8e55bff" + integrity sha512-yKmIgw2LgTh7uAJtzv8UFHGF7Dm7XfvOe/LQ3Txv101fLM8cx2h1QVwtSJ51Q/SCxpIiKfVn6G2jYYMDNHZteA== + dependencies: + "@jest/types" "^27.0.6" + chalk "^4.0.0" + escalade "^3.1.1" + graceful-fs "^4.2.4" + jest-pnp-resolver "^1.2.2" + jest-util "^27.0.6" + jest-validate "^27.0.6" + resolve "^1.20.0" + slash "^3.0.0" + +jest-runner@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-27.0.6.tgz#1325f45055539222bbc7256a6976e993ad2f9520" + integrity sha512-W3Bz5qAgaSChuivLn+nKOgjqNxM7O/9JOJoKDCqThPIg2sH/d4A/lzyiaFgnb9V1/w29Le11NpzTJSzga1vyYQ== + dependencies: + "@jest/console" "^27.0.6" + "@jest/environment" "^27.0.6" + "@jest/test-result" "^27.0.6" + "@jest/transform" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + chalk "^4.0.0" + emittery "^0.8.1" + exit "^0.1.2" + graceful-fs "^4.2.4" + jest-docblock "^27.0.6" + jest-environment-jsdom "^27.0.6" + jest-environment-node "^27.0.6" + jest-haste-map "^27.0.6" + jest-leak-detector "^27.0.6" + jest-message-util "^27.0.6" + jest-resolve "^27.0.6" + jest-runtime "^27.0.6" + jest-util "^27.0.6" + jest-worker "^27.0.6" + source-map-support "^0.5.6" + throat "^6.0.1" + +jest-runtime@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.0.6.tgz#45877cfcd386afdd4f317def551fc369794c27c9" + integrity sha512-BhvHLRVfKibYyqqEFkybsznKwhrsu7AWx2F3y9G9L95VSIN3/ZZ9vBpm/XCS2bS+BWz3sSeNGLzI3TVQ0uL85Q== + dependencies: + "@jest/console" "^27.0.6" + "@jest/environment" "^27.0.6" + "@jest/fake-timers" "^27.0.6" + "@jest/globals" "^27.0.6" + "@jest/source-map" "^27.0.6" + "@jest/test-result" "^27.0.6" + "@jest/transform" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/yargs" "^16.0.0" + chalk "^4.0.0" + cjs-module-lexer "^1.0.0" + collect-v8-coverage "^1.0.0" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.2.4" + jest-haste-map "^27.0.6" + jest-message-util "^27.0.6" + jest-mock "^27.0.6" + jest-regex-util "^27.0.6" + jest-resolve "^27.0.6" + jest-snapshot "^27.0.6" + jest-util "^27.0.6" + jest-validate "^27.0.6" + slash "^3.0.0" + strip-bom "^4.0.0" + yargs "^16.0.3" + +jest-serializer@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.0.6.tgz#93a6c74e0132b81a2d54623251c46c498bb5bec1" + integrity sha512-PtGdVK9EGC7dsaziskfqaAPib6wTViY3G8E5wz9tLVPhHyiDNTZn/xjZ4khAw+09QkoOVpn7vF5nPSN6dtBexA== + dependencies: + "@types/node" "*" + graceful-fs "^4.2.4" + +jest-snapshot@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.0.6.tgz#f4e6b208bd2e92e888344d78f0f650bcff05a4bf" + integrity sha512-NTHaz8He+ATUagUgE7C/UtFcRoHqR2Gc+KDfhQIyx+VFgwbeEMjeP+ILpUTLosZn/ZtbNdCF5LkVnN/l+V751A== + dependencies: + "@babel/core" "^7.7.2" + "@babel/generator" "^7.7.2" + "@babel/parser" "^7.7.2" + "@babel/plugin-syntax-typescript" "^7.7.2" + "@babel/traverse" "^7.7.2" + "@babel/types" "^7.0.0" + "@jest/transform" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/babel__traverse" "^7.0.4" + "@types/prettier" "^2.1.5" + babel-preset-current-node-syntax "^1.0.0" + chalk "^4.0.0" + expect "^27.0.6" + graceful-fs "^4.2.4" + jest-diff "^27.0.6" + jest-get-type "^27.0.6" + jest-haste-map "^27.0.6" + jest-matcher-utils "^27.0.6" + jest-message-util "^27.0.6" + jest-resolve "^27.0.6" + jest-util "^27.0.6" + natural-compare "^1.4.0" + pretty-format "^27.0.6" + semver "^7.3.2" + +jest-util@^27.0.0, jest-util@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.0.6.tgz#e8e04eec159de2f4d5f57f795df9cdc091e50297" + integrity sha512-1JjlaIh+C65H/F7D11GNkGDDZtDfMEM8EBXsvd+l/cxtgQ6QhxuloOaiayt89DxUvDarbVhqI98HhgrM1yliFQ== + dependencies: + "@jest/types" "^27.0.6" + "@types/node" "*" + chalk "^4.0.0" + graceful-fs "^4.2.4" + is-ci "^3.0.0" + picomatch "^2.2.3" + +jest-validate@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.0.6.tgz#930a527c7a951927df269f43b2dc23262457e2a6" + integrity sha512-yhZZOaMH3Zg6DC83n60pLmdU1DQE46DW+KLozPiPbSbPhlXXaiUTDlhHQhHFpaqIFRrInko1FHXjTRpjWRuWfA== + dependencies: + "@jest/types" "^27.0.6" + camelcase "^6.2.0" + chalk "^4.0.0" + jest-get-type "^27.0.6" + leven "^3.1.0" + pretty-format "^27.0.6" + +jest-watcher@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-27.0.6.tgz#89526f7f9edf1eac4e4be989bcb6dec6b8878d9c" + integrity sha512-/jIoKBhAP00/iMGnTwUBLgvxkn7vsOweDrOTSPzc7X9uOyUtJIDthQBTI1EXz90bdkrxorUZVhJwiB69gcHtYQ== + dependencies: + "@jest/test-result" "^27.0.6" + "@jest/types" "^27.0.6" + "@types/node" "*" + ansi-escapes "^4.2.1" + chalk "^4.0.0" + jest-util "^27.0.6" + string-length "^4.0.1" + +jest-worker@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.0.6.tgz#a5fdb1e14ad34eb228cfe162d9f729cdbfa28aed" + integrity sha512-qupxcj/dRuA3xHPMUd40gr2EaAurFbkwzOh7wfPaeE9id7hyjURRQoqNfHifHK3XjJU6YJJUQKILGUnwGPEOCA== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^8.0.0" + +jest@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/jest/-/jest-27.0.6.tgz#10517b2a628f0409087fbf473db44777d7a04505" + integrity sha512-EjV8aETrsD0wHl7CKMibKwQNQc3gIRBXlTikBmmHUeVMKaPFxdcUIBfoDqTSXDoGJIivAYGqCWVlzCSaVjPQsA== + dependencies: + "@jest/core" "^27.0.6" + import-local "^3.0.2" + jest-cli "^27.0.6" + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsdom@^16.6.0: + version "16.7.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" + integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== + dependencies: + abab "^2.0.5" + acorn "^8.2.4" + acorn-globals "^6.0.0" + cssom "^0.4.4" + cssstyle "^2.3.0" + data-urls "^2.0.0" + decimal.js "^10.2.1" + domexception "^2.0.1" + escodegen "^2.0.0" + form-data "^3.0.0" + html-encoding-sniffer "^2.0.1" + http-proxy-agent "^4.0.1" + https-proxy-agent "^5.0.0" + is-potential-custom-element-name "^1.0.1" + nwsapi "^2.2.0" + parse5 "6.0.1" + saxes "^5.0.1" + symbol-tree "^3.2.4" + tough-cookie "^4.0.0" + w3c-hr-time "^1.0.2" + w3c-xmlserializer "^2.0.0" + webidl-conversions "^6.1.0" + whatwg-encoding "^1.0.5" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.5.0" + ws "^7.4.6" + xml-name-validator "^3.0.0" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +json5@2.x, json5@^2.1.2: + version "2.2.0" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" + integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== + dependencies: + minimist "^1.2.5" + +kleur@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +lodash@4.x, lodash@^4.17.21, lodash@^4.7.0: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +loose-envify@^1.1.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + +make-dir@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + +make-error@1.x: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= + dependencies: + tmpl "1.0.x" + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +micromatch@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" + integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== + dependencies: + braces "^3.0.1" + picomatch "^2.2.3" + +mime-db@1.49.0: + version "1.49.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed" + integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA== + +mime-types@^2.1.12: + version "2.1.32" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5" + integrity sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A== + dependencies: + mime-db "1.49.0" + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== + +mkdirp@1.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + +node-modules-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" + integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= + +node-releases@^1.1.73: + version "1.1.74" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.74.tgz#e5866488080ebaa70a93b91144ccde06f3c3463e" + integrity sha512-caJBVempXZPepZoZAPCWRTNxYQ+xtG/KAi4ozTA5A+nJ7IU+kLQCbqaUjb5Rwy14M9upBWiQ4NutcmW04LJSRw== + +normalize-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +nwsapi@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" + integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== + +object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onetime@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +optionator@^0.8.1: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +p-each-series@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" + integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== + +p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +parse5@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" + integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +picomatch@^2.0.4, picomatch@^2.2.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== + +pirates@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87" + integrity sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA== + dependencies: + node-modules-regexp "^1.0.0" + +pkg-dir@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + +pretty-format@^27.0.0, pretty-format@^27.0.6: + version "27.0.6" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.0.6.tgz#ab770c47b2c6f893a21aefc57b75da63ef49a11f" + integrity sha512-8tGD7gBIENgzqA+UBzObyWqQ5B778VIFZA/S66cclyd5YkFLYs2Js7gxDKf0MXtTc9zcS7t1xhdfcElJ3YIvkQ== + dependencies: + "@jest/types" "^27.0.6" + ansi-regex "^5.0.0" + ansi-styles "^5.0.0" + react-is "^17.0.1" + +prompts@^2.0.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.1.tgz#befd3b1195ba052f9fd2fde8a486c4e82ee77f61" + integrity sha512-EQyfIuO2hPDsX1L/blblV+H7I0knhgAd82cVneCwcdND9B8AuCDuRcBH6yIcG4dFzlOUqbazQqwGjx5xmsNLuQ== + dependencies: + kleur "^3.0.3" + sisteransi "^1.0.5" + +psl@^1.1.33: + version "1.8.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" + integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== + +punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + react-dom@^17.0.2: version "17.0.2" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23" @@ -353,6 +2421,11 @@ react-dom@^17.0.2: object-assign "^4.1.1" scheduler "^0.20.2" +react-is@^17.0.1: + version "17.0.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== + react@^17.0.2: version "17.0.2" resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037" @@ -361,6 +2434,38 @@ react@^17.0.2: loose-envify "^1.1.0" object-assign "^4.1.1" +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +resolve-cwd@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" + integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== + dependencies: + resolve-from "^5.0.0" + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve@^1.20.0: + version "1.20.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +rimraf@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + robust-predicates@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/robust-predicates/-/robust-predicates-3.0.1.tgz#ecde075044f7f30118682bd9fb3f123109577f9a" @@ -371,11 +2476,23 @@ rw@1: resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" integrity sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q= -"safer-buffer@>= 2.1.2 < 3.0.0": +safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== +saxes@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" + integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== + dependencies: + xmlchars "^2.2.0" + scheduler@^0.20.2: version "0.20.2" resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91" @@ -383,3 +2500,390 @@ scheduler@^0.20.2: dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" + +semver@7.x, semver@^7.3.2: + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== + dependencies: + lru-cache "^6.0.0" + +semver@^6.0.0, semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +signal-exit@^3.0.2, signal-exit@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" + integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== + +sisteransi@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" + integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +source-map-support@^0.5.6: + version "0.5.19" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map@^0.5.0: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +source-map@^0.7.3: + version "0.7.3" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" + integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +stack-utils@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.3.tgz#cd5f030126ff116b78ccb3c027fe302713b61277" + integrity sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw== + dependencies: + escape-string-regexp "^2.0.0" + +string-length@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" + integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== + dependencies: + char-regex "^1.0.2" + strip-ansi "^6.0.0" + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" + integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== + dependencies: + ansi-regex "^5.0.0" + +strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.0.0, supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-hyperlinks@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz#4f77b42488765891774b70c79babd87f9bd594bb" + integrity sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ== + dependencies: + has-flag "^4.0.0" + supports-color "^7.0.0" + +symbol-tree@^3.2.4: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + +terminal-link@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" + integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== + dependencies: + ansi-escapes "^4.2.1" + supports-hyperlinks "^2.0.0" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +throat@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375" + integrity sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w== + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +tough-cookie@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.0.0.tgz#d822234eeca882f991f0f908824ad2622ddbece4" + integrity sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg== + dependencies: + psl "^1.1.33" + punycode "^2.1.1" + universalify "^0.1.2" + +tr46@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" + integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== + dependencies: + punycode "^2.1.1" + +ts-jest@^27.0.4: + version "27.0.4" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-27.0.4.tgz#df49683535831560ccb58f94c023d831b1b80df0" + integrity sha512-c4E1ECy9Xz2WGfTMyHbSaArlIva7Wi2p43QOMmCqjSSjHP06KXv+aT+eSY+yZMuqsMi3k7pyGsGj2q5oSl5WfQ== + dependencies: + bs-logger "0.x" + buffer-from "1.x" + fast-json-stable-stringify "2.x" + jest-util "^27.0.0" + json5 "2.x" + lodash "4.x" + make-error "1.x" + mkdirp "1.x" + semver "7.x" + yargs-parser "20.x" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + dependencies: + prelude-ls "~1.1.2" + +type-detect@4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" + integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + +typescript@^4.3.5: + version "4.3.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" + integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== + +universalify@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +v8-to-istanbul@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.0.0.tgz#4229f2a99e367f3f018fa1d5c2b8ec684667c69c" + integrity sha512-LkmXi8UUNxnCC+JlH7/fsfsKr5AU110l+SYGJimWNkWhxbN5EyeOtm1MJ0hhvqMMOhGwBj1Fp70Yv9i+hX0QAg== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.1" + convert-source-map "^1.6.0" + source-map "^0.7.3" + +w3c-hr-time@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" + integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== + dependencies: + browser-process-hrtime "^1.0.0" + +w3c-xmlserializer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" + integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== + dependencies: + xml-name-validator "^3.0.0" + +walker@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= + dependencies: + makeerror "1.0.x" + +webidl-conversions@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" + integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== + +webidl-conversions@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" + integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== + +whatwg-encoding@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-mimetype@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + +whatwg-url@^8.0.0, whatwg-url@^8.5.0: + version "8.7.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" + integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== + dependencies: + lodash "^4.7.0" + tr46 "^2.1.0" + webidl-conversions "^6.1.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" + integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== + dependencies: + imurmurhash "^0.1.4" + is-typedarray "^1.0.0" + signal-exit "^3.0.2" + typedarray-to-buffer "^3.1.5" + +ws@^7.4.6: + version "7.5.3" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.3.tgz#160835b63c7d97bfab418fc1b8a9fced2ac01a74" + integrity sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg== + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== + +xmlchars@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" + integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yargs-parser@20.x, yargs-parser@^20.2.2: + version "20.2.9" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" + integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== + +yargs@^16.0.3: + version "16.2.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" From db1033a17a9519d66699feaf1c8d07f47dd9c4fe Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Sat, 14 Aug 2021 19:47:56 -0400 Subject: [PATCH 03/46] feat: enabling filtering via excluded_globs param (Fix #21, Fix #27) --- .gitignore | 2 +- README.md | 22 +- index.js | 2728 ++++++++++++++++++++++++++++++- package.json | 5 +- src/index.jsx | 9 +- src/process-dir.js | 37 +- src/should-exclude-path.test.ts | 54 + src/should-exclude-path.ts | 10 + yarn.lock | 12 + 9 files changed, 2841 insertions(+), 38 deletions(-) create mode 100644 src/should-exclude-path.test.ts create mode 100644 src/should-exclude-path.ts diff --git a/.gitignore b/.gitignore index b512c09..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -node_modules \ No newline at end of file +node_modules diff --git a/README.md b/README.md index dbe3365..6936590 100644 --- a/README.md +++ b/README.md @@ -18,19 +18,33 @@ Default: diagram.svg ## `excluded_paths` -A list of paths to exclude from the diagram, separated by commas. +A list of paths to folders to exclude from the diagram, separated by commas. For example: dist,node_modules Default: node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.vscode,package-lock.json,yarn.lock +## `excluded_globs` + +A semicolon-delimited array of file [globs](https://globster.xyz/) to exclude from the diagram, using [micromatch](https://github.com/micromatch/micromatch) syntax. Provided as an array. + +For example: + +```yaml +excluded_globs: 'frontend/*.spec.js;**/*.{png,jpg};**/!(*.module).ts' +# Guide: +# - 'frontend/*.spec.js' # exclude frontend tests +# - '**/*.{png,ico,md}' # all png, ico, md files in any directory +# - '**/!(*.module).ts' # all TS files except module files +``` + ## `root_path` -The directory (and its children) that you want to visualize in the diagram. +The directory (and its children) that you want to visualize in the diagram, relative to the repository root. -For example: `./src/` +For example: `src/` -Default: `./` +Default: `''` (current directory) ## `max_depth` diff --git a/index.js b/index.js index a495c90..5bdfb80 100644 --- a/index.js +++ b/index.js @@ -7659,6 +7659,2670 @@ var require_server = __commonJS({ } }); +// node_modules/braces/lib/utils.js +var require_utils2 = __commonJS({ + "node_modules/braces/lib/utils.js"(exports2) { + "use strict"; + exports2.isInteger = (num) => { + if (typeof num === "number") { + return Number.isInteger(num); + } + if (typeof num === "string" && num.trim() !== "") { + return Number.isInteger(Number(num)); + } + return false; + }; + exports2.find = (node, type2) => node.nodes.find((node2) => node2.type === type2); + exports2.exceedsLimit = (min, max, step = 1, limit) => { + if (limit === false) + return false; + if (!exports2.isInteger(min) || !exports2.isInteger(max)) + return false; + return (Number(max) - Number(min)) / Number(step) >= limit; + }; + exports2.escapeNode = (block, n2 = 0, type2) => { + let node = block.nodes[n2]; + if (!node) + return; + if (type2 && node.type === type2 || node.type === "open" || node.type === "close") { + if (node.escaped !== true) { + node.value = "\\" + node.value; + node.escaped = true; + } + } + }; + exports2.encloseBrace = (node) => { + if (node.type !== "brace") + return false; + if (node.commas >> 0 + node.ranges >> 0 === 0) { + node.invalid = true; + return true; + } + return false; + }; + exports2.isInvalidBrace = (block) => { + if (block.type !== "brace") + return false; + if (block.invalid === true || block.dollar) + return true; + if (block.commas >> 0 + block.ranges >> 0 === 0) { + block.invalid = true; + return true; + } + if (block.open !== true || block.close !== true) { + block.invalid = true; + return true; + } + return false; + }; + exports2.isOpenOrClose = (node) => { + if (node.type === "open" || node.type === "close") { + return true; + } + return node.open === true || node.close === true; + }; + exports2.reduce = (nodes) => nodes.reduce((acc, node) => { + if (node.type === "text") + acc.push(node.value); + if (node.type === "range") + node.type = "text"; + return acc; + }, []); + exports2.flatten = (...args) => { + const result = []; + const flat = (arr) => { + for (let i = 0; i < arr.length; i++) { + let ele = arr[i]; + Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele); + } + return result; + }; + flat(args); + return result; + }; + } +}); + +// node_modules/braces/lib/stringify.js +var require_stringify = __commonJS({ + "node_modules/braces/lib/stringify.js"(exports2, module2) { + "use strict"; + var utils = require_utils2(); + module2.exports = (ast, options = {}) => { + let stringify = (node, parent = {}) => { + let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); + let invalidNode = node.invalid === true && options.escapeInvalid === true; + let output = ""; + if (node.value) { + if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { + return "\\" + node.value; + } + return node.value; + } + if (node.value) { + return node.value; + } + if (node.nodes) { + for (let child of node.nodes) { + output += stringify(child); + } + } + return output; + }; + return stringify(ast); + }; + } +}); + +// node_modules/is-number/index.js +var require_is_number = __commonJS({ + "node_modules/is-number/index.js"(exports2, module2) { + "use strict"; + module2.exports = function(num) { + if (typeof num === "number") { + return num - num === 0; + } + if (typeof num === "string" && num.trim() !== "") { + return Number.isFinite ? Number.isFinite(+num) : isFinite(+num); + } + return false; + }; + } +}); + +// node_modules/to-regex-range/index.js +var require_to_regex_range = __commonJS({ + "node_modules/to-regex-range/index.js"(exports2, module2) { + "use strict"; + var isNumber = require_is_number(); + var toRegexRange = (min, max, options) => { + if (isNumber(min) === false) { + throw new TypeError("toRegexRange: expected the first argument to be a number"); + } + if (max === void 0 || min === max) { + return String(min); + } + if (isNumber(max) === false) { + throw new TypeError("toRegexRange: expected the second argument to be a number."); + } + let opts = { relaxZeros: true, ...options }; + if (typeof opts.strictZeros === "boolean") { + opts.relaxZeros = opts.strictZeros === false; + } + let relax = String(opts.relaxZeros); + let shorthand = String(opts.shorthand); + let capture = String(opts.capture); + let wrap = String(opts.wrap); + let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap; + if (toRegexRange.cache.hasOwnProperty(cacheKey)) { + return toRegexRange.cache[cacheKey].result; + } + let a2 = Math.min(min, max); + let b = Math.max(min, max); + if (Math.abs(a2 - b) === 1) { + let result = min + "|" + max; + if (opts.capture) { + return `(${result})`; + } + if (opts.wrap === false) { + return result; + } + return `(?:${result})`; + } + let isPadded = hasPadding(min) || hasPadding(max); + let state = { min, max, a: a2, b }; + let positives = []; + let negatives = []; + if (isPadded) { + state.isPadded = isPadded; + state.maxLen = String(state.max).length; + } + if (a2 < 0) { + let newMin = b < 0 ? Math.abs(b) : 1; + negatives = splitToPatterns(newMin, Math.abs(a2), state, opts); + a2 = state.a = 0; + } + if (b >= 0) { + positives = splitToPatterns(a2, b, state, opts); + } + state.negatives = negatives; + state.positives = positives; + state.result = collatePatterns(negatives, positives, opts); + if (opts.capture === true) { + state.result = `(${state.result})`; + } else if (opts.wrap !== false && positives.length + negatives.length > 1) { + state.result = `(?:${state.result})`; + } + toRegexRange.cache[cacheKey] = state; + return state.result; + }; + function collatePatterns(neg, pos, options) { + let onlyNegative = filterPatterns(neg, pos, "-", false, options) || []; + let onlyPositive = filterPatterns(pos, neg, "", false, options) || []; + let intersected = filterPatterns(neg, pos, "-?", true, options) || []; + let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive); + return subpatterns.join("|"); + } + function splitToRanges(min, max) { + let nines = 1; + let zeros = 1; + let stop = countNines(min, nines); + let stops = new Set([max]); + while (min <= stop && stop <= max) { + stops.add(stop); + nines += 1; + stop = countNines(min, nines); + } + stop = countZeros(max + 1, zeros) - 1; + while (min < stop && stop <= max) { + stops.add(stop); + zeros += 1; + stop = countZeros(max + 1, zeros) - 1; + } + stops = [...stops]; + stops.sort(compare); + return stops; + } + function rangeToPattern(start2, stop, options) { + if (start2 === stop) { + return { pattern: start2, count: [], digits: 0 }; + } + let zipped = zip(start2, stop); + let digits = zipped.length; + let pattern = ""; + let count2 = 0; + for (let i = 0; i < digits; i++) { + let [startDigit, stopDigit] = zipped[i]; + if (startDigit === stopDigit) { + pattern += startDigit; + } else if (startDigit !== "0" || stopDigit !== "9") { + pattern += toCharacterClass(startDigit, stopDigit, options); + } else { + count2++; + } + } + if (count2) { + pattern += options.shorthand === true ? "\\d" : "[0-9]"; + } + return { pattern, count: [count2], digits }; + } + function splitToPatterns(min, max, tok, options) { + let ranges = splitToRanges(min, max); + let tokens = []; + let start2 = min; + let prev; + for (let i = 0; i < ranges.length; i++) { + let max2 = ranges[i]; + let obj = rangeToPattern(String(start2), String(max2), options); + let zeros = ""; + if (!tok.isPadded && prev && prev.pattern === obj.pattern) { + if (prev.count.length > 1) { + prev.count.pop(); + } + prev.count.push(obj.count[0]); + prev.string = prev.pattern + toQuantifier(prev.count); + start2 = max2 + 1; + continue; + } + if (tok.isPadded) { + zeros = padZeros(max2, tok, options); + } + obj.string = zeros + obj.pattern + toQuantifier(obj.count); + tokens.push(obj); + start2 = max2 + 1; + prev = obj; + } + return tokens; + } + function filterPatterns(arr, comparison, prefix, intersection, options) { + let result = []; + for (let ele of arr) { + let { string } = ele; + if (!intersection && !contains(comparison, "string", string)) { + result.push(prefix + string); + } + if (intersection && contains(comparison, "string", string)) { + result.push(prefix + string); + } + } + return result; + } + function zip(a2, b) { + let arr = []; + for (let i = 0; i < a2.length; i++) + arr.push([a2[i], b[i]]); + return arr; + } + function compare(a2, b) { + return a2 > b ? 1 : b > a2 ? -1 : 0; + } + function contains(arr, key, val) { + return arr.some((ele) => ele[key] === val); + } + function countNines(min, len) { + return Number(String(min).slice(0, -len) + "9".repeat(len)); + } + function countZeros(integer, zeros) { + return integer - integer % Math.pow(10, zeros); + } + function toQuantifier(digits) { + let [start2 = 0, stop = ""] = digits; + if (stop || start2 > 1) { + return `{${start2 + (stop ? "," + stop : "")}}`; + } + return ""; + } + function toCharacterClass(a2, b, options) { + return `[${a2}${b - a2 === 1 ? "" : "-"}${b}]`; + } + function hasPadding(str) { + return /^-?(0+)\d/.test(str); + } + function padZeros(value, tok, options) { + if (!tok.isPadded) { + return value; + } + let diff = Math.abs(tok.maxLen - String(value).length); + let relax = options.relaxZeros !== false; + switch (diff) { + case 0: + return ""; + case 1: + return relax ? "0?" : "0"; + case 2: + return relax ? "0{0,2}" : "00"; + default: { + return relax ? `0{0,${diff}}` : `0{${diff}}`; + } + } + } + toRegexRange.cache = {}; + toRegexRange.clearCache = () => toRegexRange.cache = {}; + module2.exports = toRegexRange; + } +}); + +// node_modules/fill-range/index.js +var require_fill_range = __commonJS({ + "node_modules/fill-range/index.js"(exports2, module2) { + "use strict"; + var util = require("util"); + var toRegexRange = require_to_regex_range(); + var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); + var transform2 = (toNumber) => { + return (value) => toNumber === true ? Number(value) : String(value); + }; + var isValidValue = (value) => { + return typeof value === "number" || typeof value === "string" && value !== ""; + }; + var isNumber = (num) => Number.isInteger(+num); + var zeros = (input) => { + let value = `${input}`; + let index = -1; + if (value[0] === "-") + value = value.slice(1); + if (value === "0") + return false; + while (value[++index] === "0") + ; + return index > 0; + }; + var stringify = (start2, end, options) => { + if (typeof start2 === "string" || typeof end === "string") { + return true; + } + return options.stringify === true; + }; + var pad2 = (input, maxLength, toNumber) => { + if (maxLength > 0) { + let dash = input[0] === "-" ? "-" : ""; + if (dash) + input = input.slice(1); + input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0"); + } + if (toNumber === false) { + return String(input); + } + return input; + }; + var toMaxLen = (input, maxLength) => { + let negative = input[0] === "-" ? "-" : ""; + if (negative) { + input = input.slice(1); + maxLength--; + } + while (input.length < maxLength) + input = "0" + input; + return negative ? "-" + input : input; + }; + var toSequence = (parts, options) => { + parts.negatives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); + parts.positives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); + let prefix = options.capture ? "" : "?:"; + let positives = ""; + let negatives = ""; + let result; + if (parts.positives.length) { + positives = parts.positives.join("|"); + } + if (parts.negatives.length) { + negatives = `-(${prefix}${parts.negatives.join("|")})`; + } + if (positives && negatives) { + result = `${positives}|${negatives}`; + } else { + result = positives || negatives; + } + if (options.wrap) { + return `(${prefix}${result})`; + } + return result; + }; + var toRange = (a2, b, isNumbers, options) => { + if (isNumbers) { + return toRegexRange(a2, b, { wrap: false, ...options }); + } + let start2 = String.fromCharCode(a2); + if (a2 === b) + return start2; + let stop = String.fromCharCode(b); + return `[${start2}-${stop}]`; + }; + var toRegex = (start2, end, options) => { + if (Array.isArray(start2)) { + let wrap = options.wrap === true; + let prefix = options.capture ? "" : "?:"; + return wrap ? `(${prefix}${start2.join("|")})` : start2.join("|"); + } + return toRegexRange(start2, end, options); + }; + var rangeError = (...args) => { + return new RangeError("Invalid range arguments: " + util.inspect(...args)); + }; + var invalidRange = (start2, end, options) => { + if (options.strictRanges === true) + throw rangeError([start2, end]); + return []; + }; + var invalidStep = (step, options) => { + if (options.strictRanges === true) { + throw new TypeError(`Expected step "${step}" to be a number`); + } + return []; + }; + var fillNumbers = (start2, end, step = 1, options = {}) => { + let a2 = Number(start2); + let b = Number(end); + if (!Number.isInteger(a2) || !Number.isInteger(b)) { + if (options.strictRanges === true) + throw rangeError([start2, end]); + return []; + } + if (a2 === 0) + a2 = 0; + if (b === 0) + b = 0; + let descending = a2 > b; + let startString = String(start2); + let endString = String(end); + let stepString = String(step); + step = Math.max(Math.abs(step), 1); + let padded = zeros(startString) || zeros(endString) || zeros(stepString); + let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0; + let toNumber = padded === false && stringify(start2, end, options) === false; + let format2 = options.transform || transform2(toNumber); + if (options.toRegex && step === 1) { + return toRange(toMaxLen(start2, maxLen), toMaxLen(end, maxLen), true, options); + } + let parts = { negatives: [], positives: [] }; + let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); + let range = []; + let index = 0; + while (descending ? a2 >= b : a2 <= b) { + if (options.toRegex === true && step > 1) { + push(a2); + } else { + range.push(pad2(format2(a2, index), maxLen, toNumber)); + } + a2 = descending ? a2 - step : a2 + step; + index++; + } + if (options.toRegex === true) { + return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options }); + } + return range; + }; + var fillLetters = (start2, end, step = 1, options = {}) => { + if (!isNumber(start2) && start2.length > 1 || !isNumber(end) && end.length > 1) { + return invalidRange(start2, end, options); + } + let format2 = options.transform || ((val) => String.fromCharCode(val)); + let a2 = `${start2}`.charCodeAt(0); + let b = `${end}`.charCodeAt(0); + let descending = a2 > b; + let min = Math.min(a2, b); + let max = Math.max(a2, b); + if (options.toRegex && step === 1) { + return toRange(min, max, false, options); + } + let range = []; + let index = 0; + while (descending ? a2 >= b : a2 <= b) { + range.push(format2(a2, index)); + a2 = descending ? a2 - step : a2 + step; + index++; + } + if (options.toRegex === true) { + return toRegex(range, null, { wrap: false, options }); + } + return range; + }; + var fill = (start2, end, step, options = {}) => { + if (end == null && isValidValue(start2)) { + return [start2]; + } + if (!isValidValue(start2) || !isValidValue(end)) { + return invalidRange(start2, end, options); + } + if (typeof step === "function") { + return fill(start2, end, 1, { transform: step }); + } + if (isObject(step)) { + return fill(start2, end, 0, step); + } + let opts = { ...options }; + if (opts.capture === true) + opts.wrap = true; + step = step || opts.step || 1; + if (!isNumber(step)) { + if (step != null && !isObject(step)) + return invalidStep(step, opts); + return fill(start2, end, 1, step); + } + if (isNumber(start2) && isNumber(end)) { + return fillNumbers(start2, end, step, opts); + } + return fillLetters(start2, end, Math.max(Math.abs(step), 1), opts); + }; + module2.exports = fill; + } +}); + +// node_modules/braces/lib/compile.js +var require_compile = __commonJS({ + "node_modules/braces/lib/compile.js"(exports2, module2) { + "use strict"; + var fill = require_fill_range(); + var utils = require_utils2(); + var compile = (ast, options = {}) => { + let walk = (node, parent = {}) => { + let invalidBlock = utils.isInvalidBrace(parent); + let invalidNode = node.invalid === true && options.escapeInvalid === true; + let invalid = invalidBlock === true || invalidNode === true; + let prefix = options.escapeInvalid === true ? "\\" : ""; + let output = ""; + if (node.isOpen === true) { + return prefix + node.value; + } + if (node.isClose === true) { + return prefix + node.value; + } + if (node.type === "open") { + return invalid ? prefix + node.value : "("; + } + if (node.type === "close") { + return invalid ? prefix + node.value : ")"; + } + if (node.type === "comma") { + return node.prev.type === "comma" ? "" : invalid ? node.value : "|"; + } + if (node.value) { + return node.value; + } + if (node.nodes && node.ranges > 0) { + let args = utils.reduce(node.nodes); + let range = fill(...args, { ...options, wrap: false, toRegex: true }); + if (range.length !== 0) { + return args.length > 1 && range.length > 1 ? `(${range})` : range; + } + } + if (node.nodes) { + for (let child of node.nodes) { + output += walk(child, node); + } + } + return output; + }; + return walk(ast); + }; + module2.exports = compile; + } +}); + +// node_modules/braces/lib/expand.js +var require_expand = __commonJS({ + "node_modules/braces/lib/expand.js"(exports2, module2) { + "use strict"; + var fill = require_fill_range(); + var stringify = require_stringify(); + var utils = require_utils2(); + var append = (queue = "", stash = "", enclose = false) => { + let result = []; + queue = [].concat(queue); + stash = [].concat(stash); + if (!stash.length) + return queue; + if (!queue.length) { + return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash; + } + for (let item of queue) { + if (Array.isArray(item)) { + for (let value of item) { + result.push(append(value, stash, enclose)); + } + } else { + for (let ele of stash) { + if (enclose === true && typeof ele === "string") + ele = `{${ele}}`; + result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele); + } + } + } + return utils.flatten(result); + }; + var expand = (ast, options = {}) => { + let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit; + let walk = (node, parent = {}) => { + node.queue = []; + let p2 = parent; + let q2 = parent.queue; + while (p2.type !== "brace" && p2.type !== "root" && p2.parent) { + p2 = p2.parent; + q2 = p2.queue; + } + if (node.invalid || node.dollar) { + q2.push(append(q2.pop(), stringify(node, options))); + return; + } + if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) { + q2.push(append(q2.pop(), ["{}"])); + return; + } + if (node.nodes && node.ranges > 0) { + let args = utils.reduce(node.nodes); + if (utils.exceedsLimit(...args, options.step, rangeLimit)) { + throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); + } + let range = fill(...args, options); + if (range.length === 0) { + range = stringify(node, options); + } + q2.push(append(q2.pop(), range)); + node.nodes = []; + return; + } + let enclose = utils.encloseBrace(node); + let queue = node.queue; + let block = node; + while (block.type !== "brace" && block.type !== "root" && block.parent) { + block = block.parent; + queue = block.queue; + } + for (let i = 0; i < node.nodes.length; i++) { + let child = node.nodes[i]; + if (child.type === "comma" && node.type === "brace") { + if (i === 1) + queue.push(""); + queue.push(""); + continue; + } + if (child.type === "close") { + q2.push(append(q2.pop(), queue, enclose)); + continue; + } + if (child.value && child.type !== "open") { + queue.push(append(queue.pop(), child.value)); + continue; + } + if (child.nodes) { + walk(child, node); + } + } + return queue; + }; + return utils.flatten(walk(ast)); + }; + module2.exports = expand; + } +}); + +// node_modules/braces/lib/constants.js +var require_constants = __commonJS({ + "node_modules/braces/lib/constants.js"(exports2, module2) { + "use strict"; + module2.exports = { + MAX_LENGTH: 1024 * 64, + CHAR_0: "0", + CHAR_9: "9", + CHAR_UPPERCASE_A: "A", + CHAR_LOWERCASE_A: "a", + CHAR_UPPERCASE_Z: "Z", + CHAR_LOWERCASE_Z: "z", + CHAR_LEFT_PARENTHESES: "(", + CHAR_RIGHT_PARENTHESES: ")", + CHAR_ASTERISK: "*", + CHAR_AMPERSAND: "&", + CHAR_AT: "@", + CHAR_BACKSLASH: "\\", + CHAR_BACKTICK: "`", + CHAR_CARRIAGE_RETURN: "\r", + CHAR_CIRCUMFLEX_ACCENT: "^", + CHAR_COLON: ":", + CHAR_COMMA: ",", + CHAR_DOLLAR: "$", + CHAR_DOT: ".", + CHAR_DOUBLE_QUOTE: '"', + CHAR_EQUAL: "=", + CHAR_EXCLAMATION_MARK: "!", + CHAR_FORM_FEED: "\f", + CHAR_FORWARD_SLASH: "/", + CHAR_HASH: "#", + CHAR_HYPHEN_MINUS: "-", + CHAR_LEFT_ANGLE_BRACKET: "<", + CHAR_LEFT_CURLY_BRACE: "{", + CHAR_LEFT_SQUARE_BRACKET: "[", + CHAR_LINE_FEED: "\n", + CHAR_NO_BREAK_SPACE: "\xA0", + CHAR_PERCENT: "%", + CHAR_PLUS: "+", + CHAR_QUESTION_MARK: "?", + CHAR_RIGHT_ANGLE_BRACKET: ">", + CHAR_RIGHT_CURLY_BRACE: "}", + CHAR_RIGHT_SQUARE_BRACKET: "]", + CHAR_SEMICOLON: ";", + CHAR_SINGLE_QUOTE: "'", + CHAR_SPACE: " ", + CHAR_TAB: " ", + CHAR_UNDERSCORE: "_", + CHAR_VERTICAL_LINE: "|", + CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF" + }; + } +}); + +// node_modules/braces/lib/parse.js +var require_parse = __commonJS({ + "node_modules/braces/lib/parse.js"(exports2, module2) { + "use strict"; + var stringify = require_stringify(); + var { + MAX_LENGTH, + CHAR_BACKSLASH, + CHAR_BACKTICK, + CHAR_COMMA, + CHAR_DOT, + CHAR_LEFT_PARENTHESES, + CHAR_RIGHT_PARENTHESES, + CHAR_LEFT_CURLY_BRACE, + CHAR_RIGHT_CURLY_BRACE, + CHAR_LEFT_SQUARE_BRACKET, + CHAR_RIGHT_SQUARE_BRACKET, + CHAR_DOUBLE_QUOTE, + CHAR_SINGLE_QUOTE, + CHAR_NO_BREAK_SPACE, + CHAR_ZERO_WIDTH_NOBREAK_SPACE + } = require_constants(); + var parse = (input, options = {}) => { + if (typeof input !== "string") { + throw new TypeError("Expected a string"); + } + let opts = options || {}; + let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + if (input.length > max) { + throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); + } + let ast = { type: "root", input, nodes: [] }; + let stack = [ast]; + let block = ast; + let prev = ast; + let brackets = 0; + let length = input.length; + let index = 0; + let depth = 0; + let value; + let memo = {}; + const advance = () => input[index++]; + const push = (node) => { + if (node.type === "text" && prev.type === "dot") { + prev.type = "text"; + } + if (prev && prev.type === "text" && node.type === "text") { + prev.value += node.value; + return; + } + block.nodes.push(node); + node.parent = block; + node.prev = prev; + prev = node; + return node; + }; + push({ type: "bos" }); + while (index < length) { + block = stack[stack.length - 1]; + value = advance(); + if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { + continue; + } + if (value === CHAR_BACKSLASH) { + push({ type: "text", value: (options.keepEscaping ? value : "") + advance() }); + continue; + } + if (value === CHAR_RIGHT_SQUARE_BRACKET) { + push({ type: "text", value: "\\" + value }); + continue; + } + if (value === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + let closed = true; + let next; + while (index < length && (next = advance())) { + value += next; + if (next === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + continue; + } + if (next === CHAR_BACKSLASH) { + value += advance(); + continue; + } + if (next === CHAR_RIGHT_SQUARE_BRACKET) { + brackets--; + if (brackets === 0) { + break; + } + } + } + push({ type: "text", value }); + continue; + } + if (value === CHAR_LEFT_PARENTHESES) { + block = push({ type: "paren", nodes: [] }); + stack.push(block); + push({ type: "text", value }); + continue; + } + if (value === CHAR_RIGHT_PARENTHESES) { + if (block.type !== "paren") { + push({ type: "text", value }); + continue; + } + block = stack.pop(); + push({ type: "text", value }); + block = stack[stack.length - 1]; + continue; + } + if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { + let open = value; + let next; + if (options.keepQuotes !== true) { + value = ""; + } + while (index < length && (next = advance())) { + if (next === CHAR_BACKSLASH) { + value += next + advance(); + continue; + } + if (next === open) { + if (options.keepQuotes === true) + value += next; + break; + } + value += next; + } + push({ type: "text", value }); + continue; + } + if (value === CHAR_LEFT_CURLY_BRACE) { + depth++; + let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true; + let brace = { + type: "brace", + open: true, + close: false, + dollar, + depth, + commas: 0, + ranges: 0, + nodes: [] + }; + block = push(brace); + stack.push(block); + push({ type: "open", value }); + continue; + } + if (value === CHAR_RIGHT_CURLY_BRACE) { + if (block.type !== "brace") { + push({ type: "text", value }); + continue; + } + let type2 = "close"; + block = stack.pop(); + block.close = true; + push({ type: type2, value }); + depth--; + block = stack[stack.length - 1]; + continue; + } + if (value === CHAR_COMMA && depth > 0) { + if (block.ranges > 0) { + block.ranges = 0; + let open = block.nodes.shift(); + block.nodes = [open, { type: "text", value: stringify(block) }]; + } + push({ type: "comma", value }); + block.commas++; + continue; + } + if (value === CHAR_DOT && depth > 0 && block.commas === 0) { + let siblings = block.nodes; + if (depth === 0 || siblings.length === 0) { + push({ type: "text", value }); + continue; + } + if (prev.type === "dot") { + block.range = []; + prev.value += value; + prev.type = "range"; + if (block.nodes.length !== 3 && block.nodes.length !== 5) { + block.invalid = true; + block.ranges = 0; + prev.type = "text"; + continue; + } + block.ranges++; + block.args = []; + continue; + } + if (prev.type === "range") { + siblings.pop(); + let before = siblings[siblings.length - 1]; + before.value += prev.value + value; + prev = before; + block.ranges--; + continue; + } + push({ type: "dot", value }); + continue; + } + push({ type: "text", value }); + } + do { + block = stack.pop(); + if (block.type !== "root") { + block.nodes.forEach((node) => { + if (!node.nodes) { + if (node.type === "open") + node.isOpen = true; + if (node.type === "close") + node.isClose = true; + if (!node.nodes) + node.type = "text"; + node.invalid = true; + } + }); + let parent = stack[stack.length - 1]; + let index2 = parent.nodes.indexOf(block); + parent.nodes.splice(index2, 1, ...block.nodes); + } + } while (stack.length > 0); + push({ type: "eos" }); + return ast; + }; + module2.exports = parse; + } +}); + +// node_modules/braces/index.js +var require_braces = __commonJS({ + "node_modules/braces/index.js"(exports2, module2) { + "use strict"; + var stringify = require_stringify(); + var compile = require_compile(); + var expand = require_expand(); + var parse = require_parse(); + var braces = (input, options = {}) => { + let output = []; + if (Array.isArray(input)) { + for (let pattern of input) { + let result = braces.create(pattern, options); + if (Array.isArray(result)) { + output.push(...result); + } else { + output.push(result); + } + } + } else { + output = [].concat(braces.create(input, options)); + } + if (options && options.expand === true && options.nodupes === true) { + output = [...new Set(output)]; + } + return output; + }; + braces.parse = (input, options = {}) => parse(input, options); + braces.stringify = (input, options = {}) => { + if (typeof input === "string") { + return stringify(braces.parse(input, options), options); + } + return stringify(input, options); + }; + braces.compile = (input, options = {}) => { + if (typeof input === "string") { + input = braces.parse(input, options); + } + return compile(input, options); + }; + braces.expand = (input, options = {}) => { + if (typeof input === "string") { + input = braces.parse(input, options); + } + let result = expand(input, options); + if (options.noempty === true) { + result = result.filter(Boolean); + } + if (options.nodupes === true) { + result = [...new Set(result)]; + } + return result; + }; + braces.create = (input, options = {}) => { + if (input === "" || input.length < 3) { + return [input]; + } + return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options); + }; + module2.exports = braces; + } +}); + +// node_modules/picomatch/lib/constants.js +var require_constants2 = __commonJS({ + "node_modules/picomatch/lib/constants.js"(exports2, module2) { + "use strict"; + var path = require("path"); + var WIN_SLASH = "\\\\/"; + var WIN_NO_SLASH = `[^${WIN_SLASH}]`; + var DOT_LITERAL = "\\."; + var PLUS_LITERAL = "\\+"; + var QMARK_LITERAL = "\\?"; + var SLASH_LITERAL = "\\/"; + var ONE_CHAR = "(?=.)"; + var QMARK = "[^/]"; + var END_ANCHOR = `(?:${SLASH_LITERAL}|$)`; + var START_ANCHOR = `(?:^|${SLASH_LITERAL})`; + var DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`; + var NO_DOT = `(?!${DOT_LITERAL})`; + var NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`; + var NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`; + var NO_DOTS_SLASH = `(?!${DOTS_SLASH})`; + var QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`; + var STAR = `${QMARK}*?`; + var POSIX_CHARS = { + DOT_LITERAL, + PLUS_LITERAL, + QMARK_LITERAL, + SLASH_LITERAL, + ONE_CHAR, + QMARK, + END_ANCHOR, + DOTS_SLASH, + NO_DOT, + NO_DOTS, + NO_DOT_SLASH, + NO_DOTS_SLASH, + QMARK_NO_DOT, + STAR, + START_ANCHOR + }; + var WINDOWS_CHARS = { + ...POSIX_CHARS, + SLASH_LITERAL: `[${WIN_SLASH}]`, + QMARK: WIN_NO_SLASH, + STAR: `${WIN_NO_SLASH}*?`, + DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, + NO_DOT: `(?!${DOT_LITERAL})`, + NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, + NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, + NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, + QMARK_NO_DOT: `[^.${WIN_SLASH}]`, + START_ANCHOR: `(?:^|[${WIN_SLASH}])`, + END_ANCHOR: `(?:[${WIN_SLASH}]|$)` + }; + var POSIX_REGEX_SOURCE = { + alnum: "a-zA-Z0-9", + alpha: "a-zA-Z", + ascii: "\\x00-\\x7F", + blank: " \\t", + cntrl: "\\x00-\\x1F\\x7F", + digit: "0-9", + graph: "\\x21-\\x7E", + lower: "a-z", + print: "\\x20-\\x7E ", + punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", + space: " \\t\\r\\n\\v\\f", + upper: "A-Z", + word: "A-Za-z0-9_", + xdigit: "A-Fa-f0-9" + }; + module2.exports = { + MAX_LENGTH: 1024 * 64, + POSIX_REGEX_SOURCE, + REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, + REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, + REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, + REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, + REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, + REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, + REPLACEMENTS: { + "***": "*", + "**/**": "**", + "**/**/**": "**" + }, + CHAR_0: 48, + CHAR_9: 57, + CHAR_UPPERCASE_A: 65, + CHAR_LOWERCASE_A: 97, + CHAR_UPPERCASE_Z: 90, + CHAR_LOWERCASE_Z: 122, + CHAR_LEFT_PARENTHESES: 40, + CHAR_RIGHT_PARENTHESES: 41, + CHAR_ASTERISK: 42, + CHAR_AMPERSAND: 38, + CHAR_AT: 64, + CHAR_BACKWARD_SLASH: 92, + CHAR_CARRIAGE_RETURN: 13, + CHAR_CIRCUMFLEX_ACCENT: 94, + CHAR_COLON: 58, + CHAR_COMMA: 44, + CHAR_DOT: 46, + CHAR_DOUBLE_QUOTE: 34, + CHAR_EQUAL: 61, + CHAR_EXCLAMATION_MARK: 33, + CHAR_FORM_FEED: 12, + CHAR_FORWARD_SLASH: 47, + CHAR_GRAVE_ACCENT: 96, + CHAR_HASH: 35, + CHAR_HYPHEN_MINUS: 45, + CHAR_LEFT_ANGLE_BRACKET: 60, + CHAR_LEFT_CURLY_BRACE: 123, + CHAR_LEFT_SQUARE_BRACKET: 91, + CHAR_LINE_FEED: 10, + CHAR_NO_BREAK_SPACE: 160, + CHAR_PERCENT: 37, + CHAR_PLUS: 43, + CHAR_QUESTION_MARK: 63, + CHAR_RIGHT_ANGLE_BRACKET: 62, + CHAR_RIGHT_CURLY_BRACE: 125, + CHAR_RIGHT_SQUARE_BRACKET: 93, + CHAR_SEMICOLON: 59, + CHAR_SINGLE_QUOTE: 39, + CHAR_SPACE: 32, + CHAR_TAB: 9, + CHAR_UNDERSCORE: 95, + CHAR_VERTICAL_LINE: 124, + CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, + SEP: path.sep, + extglobChars(chars) { + return { + "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` }, + "?": { type: "qmark", open: "(?:", close: ")?" }, + "+": { type: "plus", open: "(?:", close: ")+" }, + "*": { type: "star", open: "(?:", close: ")*" }, + "@": { type: "at", open: "(?:", close: ")" } + }; + }, + globChars(win32) { + return win32 === true ? WINDOWS_CHARS : POSIX_CHARS; + } + }; + } +}); + +// node_modules/picomatch/lib/utils.js +var require_utils3 = __commonJS({ + "node_modules/picomatch/lib/utils.js"(exports2) { + "use strict"; + var path = require("path"); + var win32 = process.platform === "win32"; + var { + REGEX_BACKSLASH, + REGEX_REMOVE_BACKSLASH, + REGEX_SPECIAL_CHARS, + REGEX_SPECIAL_CHARS_GLOBAL + } = require_constants2(); + exports2.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val); + exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str); + exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str); + exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1"); + exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/"); + exports2.removeBackslashes = (str) => { + return str.replace(REGEX_REMOVE_BACKSLASH, (match) => { + return match === "\\" ? "" : match; + }); + }; + exports2.supportsLookbehinds = () => { + const segs = process.version.slice(1).split(".").map(Number); + if (segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10) { + return true; + } + return false; + }; + exports2.isWindows = (options) => { + if (options && typeof options.windows === "boolean") { + return options.windows; + } + return win32 === true || path.sep === "\\"; + }; + exports2.escapeLast = (input, char, lastIdx) => { + const idx = input.lastIndexOf(char, lastIdx); + if (idx === -1) + return input; + if (input[idx - 1] === "\\") + return exports2.escapeLast(input, char, idx - 1); + return `${input.slice(0, idx)}\\${input.slice(idx)}`; + }; + exports2.removePrefix = (input, state = {}) => { + let output = input; + if (output.startsWith("./")) { + output = output.slice(2); + state.prefix = "./"; + } + return output; + }; + exports2.wrapOutput = (input, state = {}, options = {}) => { + const prepend = options.contains ? "" : "^"; + const append = options.contains ? "" : "$"; + let output = `${prepend}(?:${input})${append}`; + if (state.negated === true) { + output = `(?:^(?!${output}).*$)`; + } + return output; + }; + } +}); + +// node_modules/picomatch/lib/scan.js +var require_scan = __commonJS({ + "node_modules/picomatch/lib/scan.js"(exports2, module2) { + "use strict"; + var utils = require_utils3(); + var { + CHAR_ASTERISK, + CHAR_AT, + CHAR_BACKWARD_SLASH, + CHAR_COMMA, + CHAR_DOT, + CHAR_EXCLAMATION_MARK, + CHAR_FORWARD_SLASH, + CHAR_LEFT_CURLY_BRACE, + CHAR_LEFT_PARENTHESES, + CHAR_LEFT_SQUARE_BRACKET, + CHAR_PLUS, + CHAR_QUESTION_MARK, + CHAR_RIGHT_CURLY_BRACE, + CHAR_RIGHT_PARENTHESES, + CHAR_RIGHT_SQUARE_BRACKET + } = require_constants2(); + var isPathSeparator = (code) => { + return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; + }; + var depth = (token) => { + if (token.isPrefix !== true) { + token.depth = token.isGlobstar ? Infinity : 1; + } + }; + var scan = (input, options) => { + const opts = options || {}; + const length = input.length - 1; + const scanToEnd = opts.parts === true || opts.scanToEnd === true; + const slashes = []; + const tokens = []; + const parts = []; + let str = input; + let index = -1; + let start2 = 0; + let lastIndex = 0; + let isBrace = false; + let isBracket = false; + let isGlob = false; + let isExtglob = false; + let isGlobstar = false; + let braceEscaped = false; + let backslashes = false; + let negated = false; + let negatedExtglob = false; + let finished = false; + let braces = 0; + let prev; + let code; + let token = { value: "", depth: 0, isGlob: false }; + const eos = () => index >= length; + const peek = () => str.charCodeAt(index + 1); + const advance = () => { + prev = code; + return str.charCodeAt(++index); + }; + while (index < length) { + code = advance(); + let next; + if (code === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + code = advance(); + if (code === CHAR_LEFT_CURLY_BRACE) { + braceEscaped = true; + } + continue; + } + if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) { + braces++; + while (eos() !== true && (code = advance())) { + if (code === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + advance(); + continue; + } + if (code === CHAR_LEFT_CURLY_BRACE) { + braces++; + continue; + } + if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) { + isBrace = token.isBrace = true; + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (braceEscaped !== true && code === CHAR_COMMA) { + isBrace = token.isBrace = true; + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (code === CHAR_RIGHT_CURLY_BRACE) { + braces--; + if (braces === 0) { + braceEscaped = false; + isBrace = token.isBrace = true; + finished = true; + break; + } + } + } + if (scanToEnd === true) { + continue; + } + break; + } + if (code === CHAR_FORWARD_SLASH) { + slashes.push(index); + tokens.push(token); + token = { value: "", depth: 0, isGlob: false }; + if (finished === true) + continue; + if (prev === CHAR_DOT && index === start2 + 1) { + start2 += 2; + continue; + } + lastIndex = index + 1; + continue; + } + if (opts.noext !== true) { + const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK; + if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) { + isGlob = token.isGlob = true; + isExtglob = token.isExtglob = true; + finished = true; + if (code === CHAR_EXCLAMATION_MARK && index === start2) { + negatedExtglob = true; + } + if (scanToEnd === true) { + while (eos() !== true && (code = advance())) { + if (code === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + code = advance(); + continue; + } + if (code === CHAR_RIGHT_PARENTHESES) { + isGlob = token.isGlob = true; + finished = true; + break; + } + } + continue; + } + break; + } + } + if (code === CHAR_ASTERISK) { + if (prev === CHAR_ASTERISK) + isGlobstar = token.isGlobstar = true; + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (code === CHAR_QUESTION_MARK) { + isGlob = token.isGlob = true; + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + if (code === CHAR_LEFT_SQUARE_BRACKET) { + while (eos() !== true && (next = advance())) { + if (next === CHAR_BACKWARD_SLASH) { + backslashes = token.backslashes = true; + advance(); + continue; + } + if (next === CHAR_RIGHT_SQUARE_BRACKET) { + isBracket = token.isBracket = true; + isGlob = token.isGlob = true; + finished = true; + break; + } + } + if (scanToEnd === true) { + continue; + } + break; + } + if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start2) { + negated = token.negated = true; + start2++; + continue; + } + if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) { + isGlob = token.isGlob = true; + if (scanToEnd === true) { + while (eos() !== true && (code = advance())) { + if (code === CHAR_LEFT_PARENTHESES) { + backslashes = token.backslashes = true; + code = advance(); + continue; + } + if (code === CHAR_RIGHT_PARENTHESES) { + finished = true; + break; + } + } + continue; + } + break; + } + if (isGlob === true) { + finished = true; + if (scanToEnd === true) { + continue; + } + break; + } + } + if (opts.noext === true) { + isExtglob = false; + isGlob = false; + } + let base = str; + let prefix = ""; + let glob = ""; + if (start2 > 0) { + prefix = str.slice(0, start2); + str = str.slice(start2); + lastIndex -= start2; + } + if (base && isGlob === true && lastIndex > 0) { + base = str.slice(0, lastIndex); + glob = str.slice(lastIndex); + } else if (isGlob === true) { + base = ""; + glob = str; + } else { + base = str; + } + if (base && base !== "" && base !== "/" && base !== str) { + if (isPathSeparator(base.charCodeAt(base.length - 1))) { + base = base.slice(0, -1); + } + } + if (opts.unescape === true) { + if (glob) + glob = utils.removeBackslashes(glob); + if (base && backslashes === true) { + base = utils.removeBackslashes(base); + } + } + const state = { + prefix, + input, + start: start2, + base, + glob, + isBrace, + isBracket, + isGlob, + isExtglob, + isGlobstar, + negated, + negatedExtglob + }; + if (opts.tokens === true) { + state.maxDepth = 0; + if (!isPathSeparator(code)) { + tokens.push(token); + } + state.tokens = tokens; + } + if (opts.parts === true || opts.tokens === true) { + let prevIndex; + for (let idx = 0; idx < slashes.length; idx++) { + const n2 = prevIndex ? prevIndex + 1 : start2; + const i = slashes[idx]; + const value = input.slice(n2, i); + if (opts.tokens) { + if (idx === 0 && start2 !== 0) { + tokens[idx].isPrefix = true; + tokens[idx].value = prefix; + } else { + tokens[idx].value = value; + } + depth(tokens[idx]); + state.maxDepth += tokens[idx].depth; + } + if (idx !== 0 || value !== "") { + parts.push(value); + } + prevIndex = i; + } + if (prevIndex && prevIndex + 1 < input.length) { + const value = input.slice(prevIndex + 1); + parts.push(value); + if (opts.tokens) { + tokens[tokens.length - 1].value = value; + depth(tokens[tokens.length - 1]); + state.maxDepth += tokens[tokens.length - 1].depth; + } + } + state.slashes = slashes; + state.parts = parts; + } + return state; + }; + module2.exports = scan; + } +}); + +// node_modules/picomatch/lib/parse.js +var require_parse2 = __commonJS({ + "node_modules/picomatch/lib/parse.js"(exports2, module2) { + "use strict"; + var constants2 = require_constants2(); + var utils = require_utils3(); + var { + MAX_LENGTH, + POSIX_REGEX_SOURCE, + REGEX_NON_SPECIAL_CHARS, + REGEX_SPECIAL_CHARS_BACKREF, + REPLACEMENTS + } = constants2; + var expandRange = (args, options) => { + if (typeof options.expandRange === "function") { + return options.expandRange(...args, options); + } + args.sort(); + const value = `[${args.join("-")}]`; + try { + new RegExp(value); + } catch (ex2) { + return args.map((v2) => utils.escapeRegex(v2)).join(".."); + } + return value; + }; + var syntaxError = (type2, char) => { + return `Missing ${type2}: "${char}" - use "\\\\${char}" to match literal characters`; + }; + var parse = (input, options) => { + if (typeof input !== "string") { + throw new TypeError("Expected a string"); + } + input = REPLACEMENTS[input] || input; + const opts = { ...options }; + const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + let len = input.length; + if (len > max) { + throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); + } + const bos = { type: "bos", value: "", output: opts.prepend || "" }; + const tokens = [bos]; + const capture = opts.capture ? "" : "?:"; + const win32 = utils.isWindows(options); + const PLATFORM_CHARS = constants2.globChars(win32); + const EXTGLOB_CHARS = constants2.extglobChars(PLATFORM_CHARS); + const { + DOT_LITERAL, + PLUS_LITERAL, + SLASH_LITERAL, + ONE_CHAR, + DOTS_SLASH, + NO_DOT, + NO_DOT_SLASH, + NO_DOTS_SLASH, + QMARK, + QMARK_NO_DOT, + STAR, + START_ANCHOR + } = PLATFORM_CHARS; + const globstar = (opts2) => { + return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; + }; + const nodot = opts.dot ? "" : NO_DOT; + const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT; + let star = opts.bash === true ? globstar(opts) : STAR; + if (opts.capture) { + star = `(${star})`; + } + if (typeof opts.noext === "boolean") { + opts.noextglob = opts.noext; + } + const state = { + input, + index: -1, + start: 0, + dot: opts.dot === true, + consumed: "", + output: "", + prefix: "", + backtrack: false, + negated: false, + brackets: 0, + braces: 0, + parens: 0, + quotes: 0, + globstar: false, + tokens + }; + input = utils.removePrefix(input, state); + len = input.length; + const extglobs = []; + const braces = []; + const stack = []; + let prev = bos; + let value; + const eos = () => state.index === len - 1; + const peek = state.peek = (n2 = 1) => input[state.index + n2]; + const advance = state.advance = () => input[++state.index] || ""; + const remaining = () => input.slice(state.index + 1); + const consume = (value2 = "", num = 0) => { + state.consumed += value2; + state.index += num; + }; + const append = (token) => { + state.output += token.output != null ? token.output : token.value; + consume(token.value); + }; + const negate = () => { + let count2 = 1; + while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) { + advance(); + state.start++; + count2++; + } + if (count2 % 2 === 0) { + return false; + } + state.negated = true; + state.start++; + return true; + }; + const increment = (type2) => { + state[type2]++; + stack.push(type2); + }; + const decrement = (type2) => { + state[type2]--; + stack.pop(); + }; + const push = (tok) => { + if (prev.type === "globstar") { + const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"); + const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren"); + if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) { + state.output = state.output.slice(0, -prev.output.length); + prev.type = "star"; + prev.value = "*"; + prev.output = star; + state.output += prev.output; + } + } + if (extglobs.length && tok.type !== "paren") { + extglobs[extglobs.length - 1].inner += tok.value; + } + if (tok.value || tok.output) + append(tok); + if (prev && prev.type === "text" && tok.type === "text") { + prev.value += tok.value; + prev.output = (prev.output || "") + tok.value; + return; + } + tok.prev = prev; + tokens.push(tok); + prev = tok; + }; + const extglobOpen = (type2, value2) => { + const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" }; + token.prev = prev; + token.parens = state.parens; + token.output = state.output; + const output = (opts.capture ? "(" : "") + token.open; + increment("parens"); + push({ type: type2, value: value2, output: state.output ? "" : ONE_CHAR }); + push({ type: "paren", extglob: true, value: advance(), output }); + extglobs.push(token); + }; + const extglobClose = (token) => { + let output = token.close + (opts.capture ? ")" : ""); + let rest2; + if (token.type === "negate") { + let extglobStar = star; + if (token.inner && token.inner.length > 1 && token.inner.includes("/")) { + extglobStar = globstar(opts); + } + if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) { + output = token.close = `)$))${extglobStar}`; + } + if (token.inner.includes("*") && (rest2 = remaining()) && /^\.[^\\/.]+$/.test(rest2)) { + output = token.close = `)${rest2})${extglobStar})`; + } + if (token.prev.type === "bos") { + state.negatedExtglob = true; + } + } + push({ type: "paren", extglob: true, value, output }); + decrement("parens"); + }; + if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) { + let backslashes = false; + let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m4, esc, chars, first, rest2, index) => { + if (first === "\\") { + backslashes = true; + return m4; + } + if (first === "?") { + if (esc) { + return esc + first + (rest2 ? QMARK.repeat(rest2.length) : ""); + } + if (index === 0) { + return qmarkNoDot + (rest2 ? QMARK.repeat(rest2.length) : ""); + } + return QMARK.repeat(chars.length); + } + if (first === ".") { + return DOT_LITERAL.repeat(chars.length); + } + if (first === "*") { + if (esc) { + return esc + first + (rest2 ? star : ""); + } + return star; + } + return esc ? m4 : `\\${m4}`; + }); + if (backslashes === true) { + if (opts.unescape === true) { + output = output.replace(/\\/g, ""); + } else { + output = output.replace(/\\+/g, (m4) => { + return m4.length % 2 === 0 ? "\\\\" : m4 ? "\\" : ""; + }); + } + } + if (output === input && opts.contains === true) { + state.output = input; + return state; + } + state.output = utils.wrapOutput(output, state, options); + return state; + } + while (!eos()) { + value = advance(); + if (value === "\0") { + continue; + } + if (value === "\\") { + const next = peek(); + if (next === "/" && opts.bash !== true) { + continue; + } + if (next === "." || next === ";") { + continue; + } + if (!next) { + value += "\\"; + push({ type: "text", value }); + continue; + } + const match = /^\\+/.exec(remaining()); + let slashes = 0; + if (match && match[0].length > 2) { + slashes = match[0].length; + state.index += slashes; + if (slashes % 2 !== 0) { + value += "\\"; + } + } + if (opts.unescape === true) { + value = advance(); + } else { + value += advance(); + } + if (state.brackets === 0) { + push({ type: "text", value }); + continue; + } + } + if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) { + if (opts.posix !== false && value === ":") { + const inner = prev.value.slice(1); + if (inner.includes("[")) { + prev.posix = true; + if (inner.includes(":")) { + const idx = prev.value.lastIndexOf("["); + const pre = prev.value.slice(0, idx); + const rest3 = prev.value.slice(idx + 2); + const posix = POSIX_REGEX_SOURCE[rest3]; + if (posix) { + prev.value = pre + posix; + state.backtrack = true; + advance(); + if (!bos.output && tokens.indexOf(prev) === 1) { + bos.output = ONE_CHAR; + } + continue; + } + } + } + } + if (value === "[" && peek() !== ":" || value === "-" && peek() === "]") { + value = `\\${value}`; + } + if (value === "]" && (prev.value === "[" || prev.value === "[^")) { + value = `\\${value}`; + } + if (opts.posix === true && value === "!" && prev.value === "[") { + value = "^"; + } + prev.value += value; + append({ value }); + continue; + } + if (state.quotes === 1 && value !== '"') { + value = utils.escapeRegex(value); + prev.value += value; + append({ value }); + continue; + } + if (value === '"') { + state.quotes = state.quotes === 1 ? 0 : 1; + if (opts.keepQuotes === true) { + push({ type: "text", value }); + } + continue; + } + if (value === "(") { + increment("parens"); + push({ type: "paren", value }); + continue; + } + if (value === ")") { + if (state.parens === 0 && opts.strictBrackets === true) { + throw new SyntaxError(syntaxError("opening", "(")); + } + const extglob = extglobs[extglobs.length - 1]; + if (extglob && state.parens === extglob.parens + 1) { + extglobClose(extglobs.pop()); + continue; + } + push({ type: "paren", value, output: state.parens ? ")" : "\\)" }); + decrement("parens"); + continue; + } + if (value === "[") { + if (opts.nobracket === true || !remaining().includes("]")) { + if (opts.nobracket !== true && opts.strictBrackets === true) { + throw new SyntaxError(syntaxError("closing", "]")); + } + value = `\\${value}`; + } else { + increment("brackets"); + } + push({ type: "bracket", value }); + continue; + } + if (value === "]") { + if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) { + push({ type: "text", value, output: `\\${value}` }); + continue; + } + if (state.brackets === 0) { + if (opts.strictBrackets === true) { + throw new SyntaxError(syntaxError("opening", "[")); + } + push({ type: "text", value, output: `\\${value}` }); + continue; + } + decrement("brackets"); + const prevValue = prev.value.slice(1); + if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) { + value = `/${value}`; + } + prev.value += value; + append({ value }); + if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) { + continue; + } + const escaped = utils.escapeRegex(prev.value); + state.output = state.output.slice(0, -prev.value.length); + if (opts.literalBrackets === true) { + state.output += escaped; + prev.value = escaped; + continue; + } + prev.value = `(${capture}${escaped}|${prev.value})`; + state.output += prev.value; + continue; + } + if (value === "{" && opts.nobrace !== true) { + increment("braces"); + const open = { + type: "brace", + value, + output: "(", + outputIndex: state.output.length, + tokensIndex: state.tokens.length + }; + braces.push(open); + push(open); + continue; + } + if (value === "}") { + const brace = braces[braces.length - 1]; + if (opts.nobrace === true || !brace) { + push({ type: "text", value, output: value }); + continue; + } + let output = ")"; + if (brace.dots === true) { + const arr = tokens.slice(); + const range = []; + for (let i = arr.length - 1; i >= 0; i--) { + tokens.pop(); + if (arr[i].type === "brace") { + break; + } + if (arr[i].type !== "dots") { + range.unshift(arr[i].value); + } + } + output = expandRange(range, opts); + state.backtrack = true; + } + if (brace.comma !== true && brace.dots !== true) { + const out = state.output.slice(0, brace.outputIndex); + const toks = state.tokens.slice(brace.tokensIndex); + brace.value = brace.output = "\\{"; + value = output = "\\}"; + state.output = out; + for (const t2 of toks) { + state.output += t2.output || t2.value; + } + } + push({ type: "brace", value, output }); + decrement("braces"); + braces.pop(); + continue; + } + if (value === "|") { + if (extglobs.length > 0) { + extglobs[extglobs.length - 1].conditions++; + } + push({ type: "text", value }); + continue; + } + if (value === ",") { + let output = value; + const brace = braces[braces.length - 1]; + if (brace && stack[stack.length - 1] === "braces") { + brace.comma = true; + output = "|"; + } + push({ type: "comma", value, output }); + continue; + } + if (value === "/") { + if (prev.type === "dot" && state.index === state.start + 1) { + state.start = state.index + 1; + state.consumed = ""; + state.output = ""; + tokens.pop(); + prev = bos; + continue; + } + push({ type: "slash", value, output: SLASH_LITERAL }); + continue; + } + if (value === ".") { + if (state.braces > 0 && prev.type === "dot") { + if (prev.value === ".") + prev.output = DOT_LITERAL; + const brace = braces[braces.length - 1]; + prev.type = "dots"; + prev.output += value; + prev.value += value; + brace.dots = true; + continue; + } + if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") { + push({ type: "text", value, output: DOT_LITERAL }); + continue; + } + push({ type: "dot", value, output: DOT_LITERAL }); + continue; + } + if (value === "?") { + const isGroup = prev && prev.value === "("; + if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { + extglobOpen("qmark", value); + continue; + } + if (prev && prev.type === "paren") { + const next = peek(); + let output = value; + if (next === "<" && !utils.supportsLookbehinds()) { + throw new Error("Node.js v10 or higher is required for regex lookbehinds"); + } + if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) { + output = `\\${value}`; + } + push({ type: "text", value, output }); + continue; + } + if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) { + push({ type: "qmark", value, output: QMARK_NO_DOT }); + continue; + } + push({ type: "qmark", value, output: QMARK }); + continue; + } + if (value === "!") { + if (opts.noextglob !== true && peek() === "(") { + if (peek(2) !== "?" || !/[!=<:]/.test(peek(3))) { + extglobOpen("negate", value); + continue; + } + } + if (opts.nonegate !== true && state.index === 0) { + negate(); + continue; + } + } + if (value === "+") { + if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { + extglobOpen("plus", value); + continue; + } + if (prev && prev.value === "(" || opts.regex === false) { + push({ type: "plus", value, output: PLUS_LITERAL }); + continue; + } + if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) { + push({ type: "plus", value }); + continue; + } + push({ type: "plus", value: PLUS_LITERAL }); + continue; + } + if (value === "@") { + if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") { + push({ type: "at", extglob: true, value, output: "" }); + continue; + } + push({ type: "text", value }); + continue; + } + if (value !== "*") { + if (value === "$" || value === "^") { + value = `\\${value}`; + } + const match = REGEX_NON_SPECIAL_CHARS.exec(remaining()); + if (match) { + value += match[0]; + state.index += match[0].length; + } + push({ type: "text", value }); + continue; + } + if (prev && (prev.type === "globstar" || prev.star === true)) { + prev.type = "star"; + prev.star = true; + prev.value += value; + prev.output = star; + state.backtrack = true; + state.globstar = true; + consume(value); + continue; + } + let rest2 = remaining(); + if (opts.noextglob !== true && /^\([^?]/.test(rest2)) { + extglobOpen("star", value); + continue; + } + if (prev.type === "star") { + if (opts.noglobstar === true) { + consume(value); + continue; + } + const prior = prev.prev; + const before = prior.prev; + const isStart = prior.type === "slash" || prior.type === "bos"; + const afterStar = before && (before.type === "star" || before.type === "globstar"); + if (opts.bash === true && (!isStart || rest2[0] && rest2[0] !== "/")) { + push({ type: "star", value, output: "" }); + continue; + } + const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"); + const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren"); + if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) { + push({ type: "star", value, output: "" }); + continue; + } + while (rest2.slice(0, 3) === "/**") { + const after = input[state.index + 4]; + if (after && after !== "/") { + break; + } + rest2 = rest2.slice(3); + consume("/**", 3); + } + if (prior.type === "bos" && eos()) { + prev.type = "globstar"; + prev.value += value; + prev.output = globstar(opts); + state.output = prev.output; + state.globstar = true; + consume(value); + continue; + } + if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) { + state.output = state.output.slice(0, -(prior.output + prev.output).length); + prior.output = `(?:${prior.output}`; + prev.type = "globstar"; + prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"); + prev.value += value; + state.globstar = true; + state.output += prior.output + prev.output; + consume(value); + continue; + } + if (prior.type === "slash" && prior.prev.type !== "bos" && rest2[0] === "/") { + const end = rest2[1] !== void 0 ? "|$" : ""; + state.output = state.output.slice(0, -(prior.output + prev.output).length); + prior.output = `(?:${prior.output}`; + prev.type = "globstar"; + prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`; + prev.value += value; + state.output += prior.output + prev.output; + state.globstar = true; + consume(value + advance()); + push({ type: "slash", value: "/", output: "" }); + continue; + } + if (prior.type === "bos" && rest2[0] === "/") { + prev.type = "globstar"; + prev.value += value; + prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`; + state.output = prev.output; + state.globstar = true; + consume(value + advance()); + push({ type: "slash", value: "/", output: "" }); + continue; + } + state.output = state.output.slice(0, -prev.output.length); + prev.type = "globstar"; + prev.output = globstar(opts); + prev.value += value; + state.output += prev.output; + state.globstar = true; + consume(value); + continue; + } + const token = { type: "star", value, output: star }; + if (opts.bash === true) { + token.output = ".*?"; + if (prev.type === "bos" || prev.type === "slash") { + token.output = nodot + token.output; + } + push(token); + continue; + } + if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === true) { + token.output = value; + push(token); + continue; + } + if (state.index === state.start || prev.type === "slash" || prev.type === "dot") { + if (prev.type === "dot") { + state.output += NO_DOT_SLASH; + prev.output += NO_DOT_SLASH; + } else if (opts.dot === true) { + state.output += NO_DOTS_SLASH; + prev.output += NO_DOTS_SLASH; + } else { + state.output += nodot; + prev.output += nodot; + } + if (peek() !== "*") { + state.output += ONE_CHAR; + prev.output += ONE_CHAR; + } + } + push(token); + } + while (state.brackets > 0) { + if (opts.strictBrackets === true) + throw new SyntaxError(syntaxError("closing", "]")); + state.output = utils.escapeLast(state.output, "["); + decrement("brackets"); + } + while (state.parens > 0) { + if (opts.strictBrackets === true) + throw new SyntaxError(syntaxError("closing", ")")); + state.output = utils.escapeLast(state.output, "("); + decrement("parens"); + } + while (state.braces > 0) { + if (opts.strictBrackets === true) + throw new SyntaxError(syntaxError("closing", "}")); + state.output = utils.escapeLast(state.output, "{"); + decrement("braces"); + } + if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) { + push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }); + } + if (state.backtrack === true) { + state.output = ""; + for (const token of state.tokens) { + state.output += token.output != null ? token.output : token.value; + if (token.suffix) { + state.output += token.suffix; + } + } + } + return state; + }; + parse.fastpaths = (input, options) => { + const opts = { ...options }; + const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + const len = input.length; + if (len > max) { + throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); + } + input = REPLACEMENTS[input] || input; + const win32 = utils.isWindows(options); + const { + DOT_LITERAL, + SLASH_LITERAL, + ONE_CHAR, + DOTS_SLASH, + NO_DOT, + NO_DOTS, + NO_DOTS_SLASH, + STAR, + START_ANCHOR + } = constants2.globChars(win32); + const nodot = opts.dot ? NO_DOTS : NO_DOT; + const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT; + const capture = opts.capture ? "" : "?:"; + const state = { negated: false, prefix: "" }; + let star = opts.bash === true ? ".*?" : STAR; + if (opts.capture) { + star = `(${star})`; + } + const globstar = (opts2) => { + if (opts2.noglobstar === true) + return star; + return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; + }; + const create2 = (str) => { + switch (str) { + case "*": + return `${nodot}${ONE_CHAR}${star}`; + case ".*": + return `${DOT_LITERAL}${ONE_CHAR}${star}`; + case "*.*": + return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; + case "*/*": + return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`; + case "**": + return nodot + globstar(opts); + case "**/*": + return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`; + case "**/*.*": + return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; + case "**/.*": + return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`; + default: { + const match = /^(.*?)\.(\w+)$/.exec(str); + if (!match) + return; + const source2 = create2(match[1]); + if (!source2) + return; + return source2 + DOT_LITERAL + match[2]; + } + } + }; + const output = utils.removePrefix(input, state); + let source = create2(output); + if (source && opts.strictSlashes !== true) { + source += `${SLASH_LITERAL}?`; + } + return source; + }; + module2.exports = parse; + } +}); + +// node_modules/picomatch/lib/picomatch.js +var require_picomatch = __commonJS({ + "node_modules/picomatch/lib/picomatch.js"(exports2, module2) { + "use strict"; + var path = require("path"); + var scan = require_scan(); + var parse = require_parse2(); + var utils = require_utils3(); + var constants2 = require_constants2(); + var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); + var picomatch = (glob, options, returnState = false) => { + if (Array.isArray(glob)) { + const fns = glob.map((input) => picomatch(input, options, returnState)); + const arrayMatcher = (str) => { + for (const isMatch2 of fns) { + const state2 = isMatch2(str); + if (state2) + return state2; + } + return false; + }; + return arrayMatcher; + } + const isState = isObject(glob) && glob.tokens && glob.input; + if (glob === "" || typeof glob !== "string" && !isState) { + throw new TypeError("Expected pattern to be a non-empty string"); + } + const opts = options || {}; + const posix = utils.isWindows(options); + const regex2 = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true); + const state = regex2.state; + delete regex2.state; + let isIgnored = () => false; + if (opts.ignore) { + const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null }; + isIgnored = picomatch(opts.ignore, ignoreOpts, returnState); + } + const matcher = (input, returnObject = false) => { + const { isMatch: isMatch2, match, output } = picomatch.test(input, regex2, options, { glob, posix }); + const result = { glob, state, regex: regex2, posix, input, output, match, isMatch: isMatch2 }; + if (typeof opts.onResult === "function") { + opts.onResult(result); + } + if (isMatch2 === false) { + result.isMatch = false; + return returnObject ? result : false; + } + if (isIgnored(input)) { + if (typeof opts.onIgnore === "function") { + opts.onIgnore(result); + } + result.isMatch = false; + return returnObject ? result : false; + } + if (typeof opts.onMatch === "function") { + opts.onMatch(result); + } + return returnObject ? result : true; + }; + if (returnState) { + matcher.state = state; + } + return matcher; + }; + picomatch.test = (input, regex2, options, { glob, posix } = {}) => { + if (typeof input !== "string") { + throw new TypeError("Expected input to be a string"); + } + if (input === "") { + return { isMatch: false, output: "" }; + } + const opts = options || {}; + const format2 = opts.format || (posix ? utils.toPosixSlashes : null); + let match = input === glob; + let output = match && format2 ? format2(input) : input; + if (match === false) { + output = format2 ? format2(input) : input; + match = output === glob; + } + if (match === false || opts.capture === true) { + if (opts.matchBase === true || opts.basename === true) { + match = picomatch.matchBase(input, regex2, options, posix); + } else { + match = regex2.exec(output); + } + } + return { isMatch: Boolean(match), match, output }; + }; + picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => { + const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options); + return regex2.test(path.basename(input)); + }; + picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); + picomatch.parse = (pattern, options) => { + if (Array.isArray(pattern)) + return pattern.map((p2) => picomatch.parse(p2, options)); + return parse(pattern, { ...options, fastpaths: false }); + }; + picomatch.scan = (input, options) => scan(input, options); + picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => { + if (returnOutput === true) { + return state.output; + } + const opts = options || {}; + const prepend = opts.contains ? "" : "^"; + const append = opts.contains ? "" : "$"; + let source = `${prepend}(?:${state.output})${append}`; + if (state && state.negated === true) { + source = `^(?!${source}).*$`; + } + const regex2 = picomatch.toRegex(source, options); + if (returnState === true) { + regex2.state = state; + } + return regex2; + }; + picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => { + if (!input || typeof input !== "string") { + throw new TypeError("Expected a non-empty string"); + } + let parsed = { negated: false, fastpaths: true }; + if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) { + parsed.output = parse.fastpaths(input, options); + } + if (!parsed.output) { + parsed = parse(input, options); + } + return picomatch.compileRe(parsed, options, returnOutput, returnState); + }; + picomatch.toRegex = (source, options) => { + try { + const opts = options || {}; + return new RegExp(source, opts.flags || (opts.nocase ? "i" : "")); + } catch (err) { + if (options && options.debug === true) + throw err; + return /$^/; + } + }; + picomatch.constants = constants2; + module2.exports = picomatch; + } +}); + +// node_modules/picomatch/index.js +var require_picomatch2 = __commonJS({ + "node_modules/picomatch/index.js"(exports2, module2) { + "use strict"; + module2.exports = require_picomatch(); + } +}); + +// node_modules/micromatch/index.js +var require_micromatch = __commonJS({ + "node_modules/micromatch/index.js"(exports2, module2) { + "use strict"; + var util = require("util"); + var braces = require_braces(); + var picomatch = require_picomatch2(); + var utils = require_utils3(); + var isEmptyString = (val) => val === "" || val === "./"; + var micromatch = (list, patterns, options) => { + patterns = [].concat(patterns); + list = [].concat(list); + let omit = new Set(); + let keep = new Set(); + let items = new Set(); + let negatives = 0; + let onResult = (state) => { + items.add(state.output); + if (options && options.onResult) { + options.onResult(state); + } + }; + for (let i = 0; i < patterns.length; i++) { + let isMatch2 = picomatch(String(patterns[i]), { ...options, onResult }, true); + let negated = isMatch2.state.negated || isMatch2.state.negatedExtglob; + if (negated) + negatives++; + for (let item of list) { + let matched = isMatch2(item, true); + let match = negated ? !matched.isMatch : matched.isMatch; + if (!match) + continue; + if (negated) { + omit.add(matched.output); + } else { + omit.delete(matched.output); + keep.add(matched.output); + } + } + } + let result = negatives === patterns.length ? [...items] : [...keep]; + let matches = result.filter((item) => !omit.has(item)); + if (options && matches.length === 0) { + if (options.failglob === true) { + throw new Error(`No matches found for "${patterns.join(", ")}"`); + } + if (options.nonull === true || options.nullglob === true) { + return options.unescape ? patterns.map((p2) => p2.replace(/\\/g, "")) : patterns; + } + } + return matches; + }; + micromatch.match = micromatch; + micromatch.matcher = (pattern, options) => picomatch(pattern, options); + micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str); + micromatch.any = micromatch.isMatch; + micromatch.not = (list, patterns, options = {}) => { + patterns = [].concat(patterns).map(String); + let result = new Set(); + let items = []; + let onResult = (state) => { + if (options.onResult) + options.onResult(state); + items.push(state.output); + }; + let matches = micromatch(list, patterns, { ...options, onResult }); + for (let item of items) { + if (!matches.includes(item)) { + result.add(item); + } + } + return [...result]; + }; + micromatch.contains = (str, pattern, options) => { + if (typeof str !== "string") { + throw new TypeError(`Expected a string: "${util.inspect(str)}"`); + } + if (Array.isArray(pattern)) { + return pattern.some((p2) => micromatch.contains(str, p2, options)); + } + if (typeof pattern === "string") { + if (isEmptyString(str) || isEmptyString(pattern)) { + return false; + } + if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) { + return true; + } + } + return micromatch.isMatch(str, pattern, { ...options, contains: true }); + }; + micromatch.matchKeys = (obj, patterns, options) => { + if (!utils.isObject(obj)) { + throw new TypeError("Expected the first argument to be an object"); + } + let keys = micromatch(Object.keys(obj), patterns, options); + let res2 = {}; + for (let key of keys) + res2[key] = obj[key]; + return res2; + }; + micromatch.some = (list, patterns, options) => { + let items = [].concat(list); + for (let pattern of [].concat(patterns)) { + let isMatch2 = picomatch(String(pattern), options); + if (items.some((item) => isMatch2(item))) { + return true; + } + } + return false; + }; + micromatch.every = (list, patterns, options) => { + let items = [].concat(list); + for (let pattern of [].concat(patterns)) { + let isMatch2 = picomatch(String(pattern), options); + if (!items.every((item) => isMatch2(item))) { + return false; + } + } + return true; + }; + micromatch.all = (str, patterns, options) => { + if (typeof str !== "string") { + throw new TypeError(`Expected a string: "${util.inspect(str)}"`); + } + return [].concat(patterns).every((p2) => picomatch(p2, options)(str)); + }; + micromatch.capture = (glob, input, options) => { + let posix = utils.isWindows(options); + let regex2 = picomatch.makeRe(String(glob), { ...options, capture: true }); + let match = regex2.exec(posix ? utils.toPosixSlashes(input) : input); + if (match) { + return match.slice(1).map((v2) => v2 === void 0 ? "" : v2); + } + }; + micromatch.makeRe = (...args) => picomatch.makeRe(...args); + micromatch.scan = (...args) => picomatch.scan(...args); + micromatch.parse = (patterns, options) => { + let res2 = []; + for (let pattern of [].concat(patterns || [])) { + for (let str of braces(String(pattern), options)) { + res2.push(picomatch.parse(str, options)); + } + } + return res2; + }; + micromatch.braces = (pattern, options) => { + if (typeof pattern !== "string") + throw new TypeError("Expected a string"); + if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) { + return [pattern]; + } + return braces(pattern, options); + }; + micromatch.braceExpand = (pattern, options) => { + if (typeof pattern !== "string") + throw new TypeError("Expected a string"); + return micromatch.braces(pattern, { ...options, expand: true }); + }; + module2.exports = micromatch; + } +}); + // node_modules/lodash/_freeGlobal.js var require_freeGlobal = __commonJS({ "node_modules/lodash/_freeGlobal.js"(exports2, module2) { @@ -10153,13 +12817,22 @@ var import_fs2 = __toModule(require("fs")); // src/process-dir.js var import_fs = __toModule(require("fs")); -var processDir = async (rootPath, excludedPaths = []) => { +var nodePath = __toModule(require("path")); + +// src/should-exclude-path.ts +var import_micromatch = __toModule(require_micromatch()); +var shouldExcludePath = (path, pathsToIgnore, globsToIgnore) => { + return pathsToIgnore.has(path) || globsToIgnore.some((glob) => (0, import_micromatch.isMatch)(path, glob)); +}; + +// src/process-dir.js +var processDir = async (rootPath, excludedPaths = [], excludedGlobs = []) => { if (!rootPath) { console.log("no rootPath specified"); return; } const foldersToIgnore = [".git", ...excludedPaths]; - const fullPathFoldersToIgnore = foldersToIgnore.map((d2) => `${rootPath}/${d2}`); + const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d2) => nodePath.join(rootPath, d2))); const getFileStats = async (path = "") => { const stats = await import_fs.default.statSync(path); const name = path.split("/").filter(Boolean).slice(-1)[0]; @@ -10175,23 +12848,26 @@ var processDir = async (rootPath, excludedPaths = []) => { try { console.log("Looking in ", path); if (isFolder) { - const files = await import_fs.default.readdirSync(path); + const filesOrFolders = await import_fs.default.readdirSync(path); const children2 = []; - for (const file of files) { - if (fullPathFoldersToIgnore.includes(rootPath + "/" + file)) { + for (const fileOrFolder of filesOrFolders) { + const fullPath = nodePath.join(rootPath, fileOrFolder); + if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) { continue; } - const info2 = import_fs.default.statSync(path + "/" + file); - const stats2 = await addItemToTree(path + "/" + file, info2.isDirectory()); - if (stats2) - children2.push(stats2); + const info2 = import_fs.default.statSync(fullPath); + const stats3 = await addItemToTree(fullPath, info2.isDirectory()); + if (stats3) + children2.push(stats3); } - const stats = await getFileStats(path); - return { ...stats, children: children2 }; - } else { - const stats = getFileStats(path); - return stats; + const stats2 = await getFileStats(path); + return { ...stats2, children: children2 }; } + if (shouldExcludePath(path, fullPathFoldersToIgnore, excludedGlobs)) { + return null; + } + const stats = getFileStats(path); + return stats; } catch (e3) { console.log("Issue trying to read file", path, e3); return null; @@ -17914,14 +20590,16 @@ var main = async () => { `${username}@users.noreply.github.com` ]); core.endGroup(); - const rootPath = core.getInput("root_path") || "./"; + const rootPath = core.getInput("root_path") || ""; const maxDepth = core.getInput("max_depth") || 9; const colorEncoding = core.getInput("color_encoding") || "type"; const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram"; const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock"; const excludedPaths = excludedPathsString.split(",").map((str) => str.trim()); + const excludedGlobsString = core.getInput("excluded_globs") || ""; + const excludedGlobs = excludedGlobsString.split(";"); const branch = core.getInput("branch"); - const data = await processDir(rootPath, excludedPaths); + const data = await processDir(rootPath, excludedPaths, excludedGlobs); const componentCodeString = import_server.default.renderToStaticMarkup(/* @__PURE__ */ import_react3.default.createElement(Tree, { data, maxDepth: +maxDepth, @@ -17985,6 +20663,24 @@ object-assign (c) Sindre Sorhus @license MIT */ +/*! + * fill-range + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Licensed under the MIT License. + */ +/*! + * is-number + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Released under the MIT License. + */ +/*! + * to-regex-range + * + * Copyright (c) 2015-present, Jon Schlinkert. + * Released under the MIT License. + */ /** @license React v17.0.2 * react-dom-server.node.development.js * diff --git a/package.json b/package.json index fb68dec..09afcbb 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,14 @@ "d3": "^7.0.0", "esbuild": "^0.12.15", "lodash": "^4.17.21", - "minimatch": "^3.0.4", + "micromatch": "^4.0.4", "react": "^17.0.2", "react-dom": "^17.0.2" }, "devDependencies": { - "husky": "^7.0.0", "@types/jest": "^27.0.1", + "@types/micromatch": "^4.0.2", + "husky": "^7.0.0", "jest": "^27.0.6", "ts-jest": "^27.0.4", "typescript": "^4.3.5" diff --git a/src/index.jsx b/src/index.jsx index fa5d0e9..2f2f048 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -22,14 +22,19 @@ const main = async () => { core.endGroup() - const rootPath = core.getInput("root_path") || "./"; + const rootPath = core.getInput("root_path") || ""; // Micro and minimatch do not support paths starting with ./ const maxDepth = core.getInput("max_depth") || 9 const colorEncoding = core.getInput("color_encoding") || "type" const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram" const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock" const excludedPaths = excludedPathsString.split(",").map(str => str.trim()) + + // Split on semicolons instead of commas since ',' are allowed in globs, but ';' are not + are not permitted in file/folder names. + const excludedGlobsString = core.getInput('excluded_globs') || ''; + const excludedGlobs = excludedGlobsString.split(";"); + const branch = core.getInput("branch") - const data = await processDir(rootPath, excludedPaths); + const data = await processDir(rootPath, excludedPaths, excludedGlobs); const componentCodeString = ReactDOMServer.renderToStaticMarkup( diff --git a/src/process-dir.js b/src/process-dir.js index 97a2efc..6ea7f21 100644 --- a/src/process-dir.js +++ b/src/process-dir.js @@ -1,15 +1,18 @@ import fs from "fs"; +import * as nodePath from 'path'; +import { shouldExcludePath } from './should-exclude-path'; -export const processDir = async (rootPath, excludedPaths = []) => { + +export const processDir = async (rootPath, excludedPaths = [], excludedGlobs = []) => { if (!rootPath) { console.log("no rootPath specified"); return; } const foldersToIgnore = [".git", ...excludedPaths] - const fullPathFoldersToIgnore = foldersToIgnore.map((d) => - `${rootPath}/${d}` - ); + const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d) => + nodePath.join(rootPath, d) + )); const getFileStats = async (path = "") => { @@ -29,27 +32,35 @@ export const processDir = async (rootPath, excludedPaths = []) => { ) => { try { console.log("Looking in ", path); + if (isFolder) { - const files = await fs.readdirSync(path); - const children = [] - for (const file of files) { - if (fullPathFoldersToIgnore.includes(rootPath + "/" + file)) { + const filesOrFolders = await fs.readdirSync(path); + const children = []; + + for (const fileOrFolder of filesOrFolders) { + const fullPath = nodePath.join(rootPath, fileOrFolder); + if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) { continue; } - const info = fs.statSync(path + "/" + file); + const info = fs.statSync(fullPath); const stats = await addItemToTree( - path + "/" + file, + fullPath, info.isDirectory(), ); if (stats) children.push(stats); } + const stats = await getFileStats(path); return { ...stats, children }; - } else { - const stats = getFileStats(path); - return stats; } + + if (shouldExcludePath(path, fullPathFoldersToIgnore, excludedGlobs)) { + return null; + } + const stats = getFileStats(path); + return stats; + } catch (e) { console.log("Issue trying to read file", path, e); return null; diff --git a/src/should-exclude-path.test.ts b/src/should-exclude-path.test.ts new file mode 100644 index 0000000..0bbe19e --- /dev/null +++ b/src/should-exclude-path.test.ts @@ -0,0 +1,54 @@ +import { shouldExcludePath } from './should-exclude-path'; + +describe("shouldExcludePath", () => { + + it("excludes based on folder or perfect match relative to root", () => { + const excludePaths = new Set([ + 'node_modules/', + 'yarn.lock' + ]); + const excludeGlobs: string[] = []; + + const testShouldExcludePath = (path: string) => shouldExcludePath(path, excludePaths, excludeGlobs); + + expect(testShouldExcludePath('node_modules/')).toEqual(true); + expect(testShouldExcludePath('yarn.lock')).toEqual(true); + + // Non-matched files work + expect(testShouldExcludePath('src/app.js')).toEqual(false); + expect(testShouldExcludePath('src/yarn.lock')).toEqual(false); + }); + + it("excludes based on micromatch globs", () => { + const excludePaths = new Set(); + const excludeGlobs = [ + 'node_modules/**', // exclude same items as paths + '**/yarn.lock', // avoid all yarn.locks + '**/*.png', // file extension block + '**/!(*.module).ts' // Negation: block non-module files, not regular ones + ] + + const testShouldExcludePath = (path: string) => shouldExcludePath(path, excludePaths, excludeGlobs); + + expect(testShouldExcludePath('node_modules/jest/index.js')).toEqual(true); + expect(testShouldExcludePath('node_modules/jest')).toEqual(true); + + // Block all nested lockfiles + expect(testShouldExcludePath('yarn.lock')).toEqual(true); + expect(testShouldExcludePath('subpackage/yarn.lock')).toEqual(true); + + // Block by file extension + expect(testShouldExcludePath('src/docs/boo.png')).toEqual(true); + expect(testShouldExcludePath('test/boo.png')).toEqual(true); + expect(testShouldExcludePath('boo.png')).toEqual(true); + + // Block TS files unless they are modules + expect(testShouldExcludePath('index.ts')).toEqual(true); + expect(testShouldExcludePath('index.module.ts')).toEqual(false); + + // Regular files work + expect(testShouldExcludePath('src/index.js')).toEqual(false); + + + }); +}); diff --git a/src/should-exclude-path.ts b/src/should-exclude-path.ts new file mode 100644 index 0000000..ba545c9 --- /dev/null +++ b/src/should-exclude-path.ts @@ -0,0 +1,10 @@ +import { isMatch } from 'micromatch'; + +/** + * True if path is excluded by either the path or glob criteria. + * path may be to a directory or individual file. + */ +export const shouldExcludePath = (path: string, pathsToIgnore: Set, globsToIgnore: string[]): boolean => { + + return pathsToIgnore.has(path) || globsToIgnore.some(glob => isMatch(path, glob)); +} diff --git a/yarn.lock b/yarn.lock index c7964b7..5a32ae2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -556,6 +556,11 @@ dependencies: "@babel/types" "^7.3.0" +"@types/braces@*": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/braces/-/braces-3.0.1.tgz#5a284d193cfc61abb2e5a50d36ebbc50d942a32b" + integrity sha512-+euflG6ygo4bn0JHtn4pYqcXwRtLvElQ7/nnjDu7iYG56H0+OhCd7d6Ug0IE3WcFpZozBKW2+80FUbv5QGk5AQ== + "@types/graceful-fs@^4.1.2": version "4.1.5" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" @@ -590,6 +595,13 @@ jest-diff "^27.0.0" pretty-format "^27.0.0" +"@types/micromatch@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/micromatch/-/micromatch-4.0.2.tgz#ce29c8b166a73bf980a5727b1e4a4d099965151d" + integrity sha512-oqXqVb0ci19GtH0vOA/U2TmHTcRY9kuZl4mqUxe0QmJAlIW13kzhuK5pi1i9+ngav8FjpSb9FVS/GE00GLX1VA== + dependencies: + "@types/braces" "*" + "@types/node@*": version "16.6.1" resolved "https://registry.yarnpkg.com/@types/node/-/node-16.6.1.tgz#aee62c7b966f55fc66c7b6dfa1d58db2a616da61" From 3c64a7ec81800e72b6d379e9b1f419290c76a9f6 Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Sat, 14 Aug 2021 19:52:01 -0400 Subject: [PATCH 04/46] chore(build): add CI to run unit tests --- .github/workflows/test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..9f0339d --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,25 @@ +name: JS - Unit Tests + +on: push + +jobs: + + run-tests: + name: Unit Tests + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 14 + + - name: Install dependencies with aching + uses: bahmutov/npm-install@v1 + + - name: Run unit tests + run: | + yarn run test From fe0226863122bbf0fedc24cf11a13f757045c765 Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Sat, 14 Aug 2021 20:33:55 -0400 Subject: [PATCH 05/46] build(chore): update typechecker --- .github/workflows/test.yaml | 6 +++++- package.json | 1 + tsconfig.json | 15 +++++---------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9f0339d..eaa0bba 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,9 +17,13 @@ jobs: with: node-version: 14 - - name: Install dependencies with aching + - name: Install dependencies with caching uses: bahmutov/npm-install@v1 + - name: Check types + run: | + yarn run typecheck + - name: Run unit tests run: | yarn run test diff --git a/package.json b/package.json index 09afcbb..d745e0f 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "scripts": { "build": "node_modules/.bin/esbuild --target=es2019 ./src/index.jsx --bundle --platform=node --outfile=index.js", "prepare": "husky install", + "typecheck": "yarn run tsc --noEmit --allowJs", "test:jest": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", diff --git a/tsconfig.json b/tsconfig.json index df5984a..c13507a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,14 @@ { "compilerOptions": { "target": "es5", - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', + "module": "commonjs", - /* Strict Type-Checking Options */ - "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - "strictNullChecks": true, /* Enable strict null checks. */ + "jsx": "react", + "resolveJsonModule": true, "rootDirs": [ "src" ], - "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES - /* Advanced Options */ - "skipLibCheck": true, /* Skip type checking of declaration files. */ - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true } } From 3343a6a5ffbcd7736a78f64b64f82f38b41b674e Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Sat, 14 Aug 2021 21:49:49 -0400 Subject: [PATCH 06/46] docs: update parameters in github action config for exclude_globs --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index bfef7e6..0711dd5 100644 --- a/action.yml +++ b/action.yml @@ -8,8 +8,11 @@ inputs: excluded_paths: description: "A list of paths to exclude from the diagram, separated by commas. For example: dist,node_modules" required: false + excluded_globs: + description: "A list of micromatch globs to exclude from the diagram, separated by semicolons. For example: **/*.png;docs/**/*.{png,ico}" + required: false root_path: - description: "The directory (and its children) that you want to visualize in the diagram. Default: ./" + description: "The directory (and its children) that you want to visualize in the diagram. Default: "" (repository root directory)" required: false max_depth: description: "The maximum number of nested folders to show files within. Default: 9" From 8b4ad8b45fa48502a8ddeba25a384fb003db33cb Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:09:28 -0400 Subject: [PATCH 07/46] fix syntax error in action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0711dd5..a1cbcd6 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ inputs: description: "A list of micromatch globs to exclude from the diagram, separated by semicolons. For example: **/*.png;docs/**/*.{png,ico}" required: false root_path: - description: "The directory (and its children) that you want to visualize in the diagram. Default: "" (repository root directory)" + description: 'The directory (and its children) that you want to visualize in the diagram. Default: "" (repository root directory)' required: false max_depth: description: "The maximum number of nested folders to show files within. Default: 9" From 86ecc398b915c2bda03f81f1e2c6918d795ed8ae Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:16:38 -0400 Subject: [PATCH 08/46] don't require root_path --- index.js | 6 +----- src/process-dir.js | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index 5bdfb80..b77288a 100644 --- a/index.js +++ b/index.js @@ -12826,11 +12826,7 @@ var shouldExcludePath = (path, pathsToIgnore, globsToIgnore) => { }; // src/process-dir.js -var processDir = async (rootPath, excludedPaths = [], excludedGlobs = []) => { - if (!rootPath) { - console.log("no rootPath specified"); - return; - } +var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) => { const foldersToIgnore = [".git", ...excludedPaths]; const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d2) => nodePath.join(rootPath, d2))); const getFileStats = async (path = "") => { diff --git a/src/process-dir.js b/src/process-dir.js index 6ea7f21..12c70ab 100644 --- a/src/process-dir.js +++ b/src/process-dir.js @@ -3,12 +3,7 @@ import * as nodePath from 'path'; import { shouldExcludePath } from './should-exclude-path'; -export const processDir = async (rootPath, excludedPaths = [], excludedGlobs = []) => { - if (!rootPath) { - console.log("no rootPath specified"); - return; - } - +export const processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) => { const foldersToIgnore = [".git", ...excludedPaths] const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d) => nodePath.join(rootPath, d) From 264b40d2d79572720524bdc1fd37b25c7c3d14fd Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:20:13 -0400 Subject: [PATCH 09/46] default path to ./ for fs methods --- index.js | 6 +++--- src/process-dir.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index b77288a..d5640a6 100644 --- a/index.js +++ b/index.js @@ -12830,7 +12830,7 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = const foldersToIgnore = [".git", ...excludedPaths]; const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d2) => nodePath.join(rootPath, d2))); const getFileStats = async (path = "") => { - const stats = await import_fs.default.statSync(path); + const stats = await import_fs.default.statSync(path || "./"); const name = path.split("/").filter(Boolean).slice(-1)[0]; const size = stats.size; const relativePath = path.slice(rootPath.length + 1); @@ -12842,9 +12842,9 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = }; const addItemToTree = async (path = "", isFolder = true) => { try { - console.log("Looking in ", path); + console.log("Looking in ", path || "./"); if (isFolder) { - const filesOrFolders = await import_fs.default.readdirSync(path); + const filesOrFolders = await import_fs.default.readdirSync(path || "./"); const children2 = []; for (const fileOrFolder of filesOrFolders) { const fullPath = nodePath.join(rootPath, fileOrFolder); diff --git a/src/process-dir.js b/src/process-dir.js index 12c70ab..e03fdb1 100644 --- a/src/process-dir.js +++ b/src/process-dir.js @@ -11,7 +11,7 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob const getFileStats = async (path = "") => { - const stats = await fs.statSync(path); + const stats = await fs.statSync(path || "./"); const name = path.split("/").filter(Boolean).slice(-1)[0]; const size = stats.size; const relativePath = path.slice(rootPath.length + 1); @@ -26,10 +26,10 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob isFolder = true, ) => { try { - console.log("Looking in ", path); + console.log("Looking in ", path || "./"); if (isFolder) { - const filesOrFolders = await fs.readdirSync(path); + const filesOrFolders = await fs.readdirSync(path || "./"); const children = []; for (const fileOrFolder of filesOrFolders) { From cf2f11b1bda7df93559219848f8258c2670c4954 Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:26:57 -0400 Subject: [PATCH 10/46] dont check root path for glob or path match --- index.js | 2 ++ src/should-exclude-path.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/index.js b/index.js index d5640a6..013a64a 100644 --- a/index.js +++ b/index.js @@ -12822,6 +12822,8 @@ var nodePath = __toModule(require("path")); // src/should-exclude-path.ts var import_micromatch = __toModule(require_micromatch()); var shouldExcludePath = (path, pathsToIgnore, globsToIgnore) => { + if (!path) + return false; return pathsToIgnore.has(path) || globsToIgnore.some((glob) => (0, import_micromatch.isMatch)(path, glob)); }; diff --git a/src/should-exclude-path.ts b/src/should-exclude-path.ts index ba545c9..12b1e55 100644 --- a/src/should-exclude-path.ts +++ b/src/should-exclude-path.ts @@ -5,6 +5,7 @@ import { isMatch } from 'micromatch'; * path may be to a directory or individual file. */ export const shouldExcludePath = (path: string, pathsToIgnore: Set, globsToIgnore: string[]): boolean => { + if (!path) return false return pathsToIgnore.has(path) || globsToIgnore.some(glob => isMatch(path, glob)); } From 986fc256c134edd78b78717d5df8dacb2fcd071c Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:26:57 -0400 Subject: [PATCH 11/46] dont check root path for glob or path match --- index.js | 1396 ++++++++++++++++++------------------ src/should-exclude-path.ts | 2 +- 2 files changed, 713 insertions(+), 685 deletions(-) diff --git a/index.js b/index.js index 013a64a..90beb8a 100644 --- a/index.js +++ b/index.js @@ -24,23 +24,25 @@ var __toModule = (module2) => { var require_io_util = __commonJS({ "node_modules/@actions/io/lib/io-util.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { + Object.defineProperty(o, k2, { + enumerable: true, get: function () { + return m4[k]; + } + }); + } : function (o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { + } : function (o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { + var __importStar = exports2 && exports2.__importStar || function (mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -52,13 +54,13 @@ var require_io_util = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { + return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function(resolve, reject) { + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -200,23 +202,25 @@ var require_io_util = __commonJS({ var require_io = __commonJS({ "node_modules/@actions/io/lib/io.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { + Object.defineProperty(o, k2, { + enumerable: true, get: function () { + return m4[k]; + } + }); + } : function (o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { + } : function (o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { + var __importStar = exports2 && exports2.__importStar || function (mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -228,13 +232,13 @@ var require_io = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { + return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function(resolve, reject) { + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -482,23 +486,25 @@ var require_io = __commonJS({ var require_toolrunner = __commonJS({ "node_modules/@actions/exec/lib/toolrunner.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { + Object.defineProperty(o, k2, { + enumerable: true, get: function () { + return m4[k]; + } + }); + } : function (o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { + } : function (o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { + var __importStar = exports2 && exports2.__importStar || function (mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -510,13 +516,13 @@ var require_toolrunner = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { + return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function(resolve, reject) { + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -962,23 +968,25 @@ var require_toolrunner = __commonJS({ var require_exec = __commonJS({ "node_modules/@actions/exec/lib/exec.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { + Object.defineProperty(o, k2, { + enumerable: true, get: function () { + return m4[k]; + } + }); + } : function (o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { + } : function (o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { + var __importStar = exports2 && exports2.__importStar || function (mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -990,13 +998,13 @@ var require_exec = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { + return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function(resolve, reject) { + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -1092,23 +1100,25 @@ var require_utils = __commonJS({ var require_command = __commonJS({ "node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { + Object.defineProperty(o, k2, { + enumerable: true, get: function () { + return m4[k]; + } + }); + } : function (o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { + } : function (o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { + var __importStar = exports2 && exports2.__importStar || function (mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -1179,23 +1189,25 @@ var require_command = __commonJS({ var require_file_command = __commonJS({ "node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { + Object.defineProperty(o, k2, { + enumerable: true, get: function () { + return m4[k]; + } + }); + } : function (o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { + } : function (o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { + var __importStar = exports2 && exports2.__importStar || function (mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -1232,23 +1244,25 @@ var require_file_command = __commonJS({ var require_core = __commonJS({ "node_modules/@actions/core/lib/core.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { + Object.defineProperty(o, k2, { + enumerable: true, get: function () { + return m4[k]; + } + }); + } : function (o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { + } : function (o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { + var __importStar = exports2 && exports2.__importStar || function (mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -1260,13 +1274,13 @@ var require_core = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { + return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function(resolve, reject) { + return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -1295,7 +1309,7 @@ var require_core = __commonJS({ var os2 = __importStar(require("os")); var path = __importStar(require("path")); var ExitCode; - (function(ExitCode2) { + (function (ExitCode2) { ExitCode2[ExitCode2["Success"] = 0] = "Success"; ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); @@ -1447,14 +1461,14 @@ var require_object_assign = __commonJS({ for (var i = 0; i < 10; i++) { test2["_" + String.fromCharCode(i)] = i; } - var order2 = Object.getOwnPropertyNames(test2).map(function(n2) { + var order2 = Object.getOwnPropertyNames(test2).map(function (n2) { return test2[n2]; }); if (order2.join("") !== "0123456789") { return false; } var test3 = {}; - "abcdefghijklmnopqrst".split("").forEach(function(letter) { + "abcdefghijklmnopqrst".split("").forEach(function (letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { @@ -1465,7 +1479,7 @@ var require_object_assign = __commonJS({ return false; } } - module2.exports = shouldUseNative() ? Object.assign : function(target, source) { + module2.exports = shouldUseNative() ? Object.assign : function (target, source) { var from; var to = toObject(target); var symbols; @@ -1533,12 +1547,14 @@ var require_react_production_min = __commonJS({ b += "&args[]=" + encodeURIComponent(arguments[c3]); return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - var A = { isMounted: function() { - return false; - }, enqueueForceUpdate: function() { - }, enqueueReplaceState: function() { - }, enqueueSetState: function() { - } }; + var A = { + isMounted: function () { + return false; + }, enqueueForceUpdate: function () { + }, enqueueReplaceState: function () { + }, enqueueSetState: function () { + } + }; var B = {}; function C(a2, b, c3) { this.props = a2; @@ -1547,12 +1563,12 @@ var require_react_production_min = __commonJS({ this.updater = c3 || A; } C.prototype.isReactComponent = {}; - C.prototype.setState = function(a2, b) { + C.prototype.setState = function (a2, b) { if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null) throw Error(z(85)); this.updater.enqueueSetState(this, a2, b, "setState"); }; - C.prototype.forceUpdate = function(a2) { + C.prototype.forceUpdate = function (a2) { this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); }; function D() { @@ -1597,7 +1613,7 @@ var require_react_production_min = __commonJS({ } function escape(a2) { var b = { "=": "=0", ":": "=2" }; - return "$" + a2.replace(/[=:]/g, function(a3) { + return "$" + a2.replace(/[=:]/g, function (a3) { return b[a3]; }); } @@ -1626,7 +1642,7 @@ var require_react_production_min = __commonJS({ } } if (h2) - return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function(a3) { + return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function (a3) { return a3; })) : d2 != null && (L(d2) && (d2 = K(d2, c3 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a2)), b.push(d2)), 1; h2 = 0; @@ -1638,7 +1654,7 @@ var require_react_production_min = __commonJS({ h2 += O(k, b, c3, f2, d2); } else if (f2 = y3(a2), typeof f2 === "function") - for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done; ) + for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done;) k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c3, f2, d2); else if (k === "object") throw b = "" + a2, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b)); @@ -1648,7 +1664,7 @@ var require_react_production_min = __commonJS({ if (a2 == null) return a2; var e3 = [], d2 = 0; - O(a2, e3, "", "", function(a3) { + O(a2, e3, "", "", function (a3) { return b.call(c3, a3, d2++); }); return e3; @@ -1659,9 +1675,9 @@ var require_react_production_min = __commonJS({ b = b(); a2._status = 0; a2._result = b; - b.then(function(b2) { + b.then(function (b2) { a2._status === 0 && (b2 = b2.default, a2._status = 1, a2._result = b2); - }, function(b2) { + }, function (b2) { a2._status === 0 && (a2._status = 2, a2._result = b2); }); } @@ -1677,29 +1693,31 @@ var require_react_production_min = __commonJS({ return a2; } var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l2 }; - exports2.Children = { map: P, forEach: function(a2, b, c3) { - P(a2, function() { - b.apply(this, arguments); - }, c3); - }, count: function(a2) { - var b = 0; - P(a2, function() { - b++; - }); - return b; - }, toArray: function(a2) { - return P(a2, function(a3) { - return a3; - }) || []; - }, only: function(a2) { - if (!L(a2)) - throw Error(z(143)); - return a2; - } }; + exports2.Children = { + map: P, forEach: function (a2, b, c3) { + P(a2, function () { + b.apply(this, arguments); + }, c3); + }, count: function (a2) { + var b = 0; + P(a2, function () { + b++; + }); + return b; + }, toArray: function (a2) { + return P(a2, function (a3) { + return a3; + }) || []; + }, only: function (a2) { + if (!L(a2)) + throw Error(z(143)); + return a2; + } + }; exports2.Component = C; exports2.PureComponent = E2; exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T; - exports2.cloneElement = function(a2, b, c3) { + exports2.cloneElement = function (a2, b, c3) { if (a2 === null || a2 === void 0) throw Error(z(267, a2)); var e3 = l2({}, a2.props), d2 = a2.key, k = a2.ref, h2 = a2._owner; @@ -1729,58 +1747,58 @@ var require_react_production_min = __commonJS({ _owner: h2 }; }; - exports2.createContext = function(a2, b) { + exports2.createContext = function (a2, b) { b === void 0 && (b = null); a2 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null }; a2.Provider = { $$typeof: q2, _context: a2 }; return a2.Consumer = a2; }; exports2.createElement = J; - exports2.createFactory = function(a2) { + exports2.createFactory = function (a2) { var b = J.bind(null, a2); b.type = a2; return b; }; - exports2.createRef = function() { + exports2.createRef = function () { return { current: null }; }; - exports2.forwardRef = function(a2) { + exports2.forwardRef = function (a2) { return { $$typeof: t2, render: a2 }; }; exports2.isValidElement = L; - exports2.lazy = function(a2) { + exports2.lazy = function (a2) { return { $$typeof: v2, _payload: { _status: -1, _result: a2 }, _init: Q }; }; - exports2.memo = function(a2, b) { + exports2.memo = function (a2, b) { return { $$typeof: u, type: a2, compare: b === void 0 ? null : b }; }; - exports2.useCallback = function(a2, b) { + exports2.useCallback = function (a2, b) { return S().useCallback(a2, b); }; - exports2.useContext = function(a2, b) { + exports2.useContext = function (a2, b) { return S().useContext(a2, b); }; - exports2.useDebugValue = function() { + exports2.useDebugValue = function () { }; - exports2.useEffect = function(a2, b) { + exports2.useEffect = function (a2, b) { return S().useEffect(a2, b); }; - exports2.useImperativeHandle = function(a2, b, c3) { + exports2.useImperativeHandle = function (a2, b, c3) { return S().useImperativeHandle(a2, b, c3); }; - exports2.useLayoutEffect = function(a2, b) { + exports2.useLayoutEffect = function (a2, b) { return S().useLayoutEffect(a2, b); }; - exports2.useMemo = function(a2, b) { + exports2.useMemo = function (a2, b) { return S().useMemo(a2, b); }; - exports2.useReducer = function(a2, b, c3) { + exports2.useReducer = function (a2, b, c3) { return S().useReducer(a2, b, c3); }; - exports2.useRef = function(a2) { + exports2.useRef = function (a2) { return S().useRef(a2); }; - exports2.useState = function(a2) { + exports2.useState = function (a2) { return S().useState(a2); }; exports2.version = "17.0.2"; @@ -1792,7 +1810,7 @@ var require_react_development = __commonJS({ "node_modules/react/cjs/react.development.js"(exports2) { "use strict"; if (process.env.NODE_ENV !== "production") { - (function() { + (function () { "use strict"; var _assign = require_object_assign(); var ReactVersion = "17.0.2"; @@ -1868,13 +1886,13 @@ var require_react_development = __commonJS({ } } { - ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { + ReactDebugCurrentFrame.setExtraStackFrame = function (stack) { { currentExtraStackFrame = stack; } }; ReactDebugCurrentFrame.getCurrentStack = null; - ReactDebugCurrentFrame.getStackAddendum = function() { + ReactDebugCurrentFrame.getStackAddendum = function () { var stack = ""; if (currentExtraStackFrame) { stack += currentExtraStackFrame; @@ -1923,7 +1941,7 @@ var require_react_development = __commonJS({ format2 += "%s"; args = args.concat([stack]); } - var argsWithFormat = args.map(function(item) { + var argsWithFormat = args.map(function (item) { return "" + item; }); argsWithFormat.unshift("Warning: " + format2); @@ -1944,16 +1962,16 @@ var require_react_development = __commonJS({ } } var ReactNoopUpdateQueue = { - isMounted: function(publicInstance) { + isMounted: function (publicInstance) { return false; }, - enqueueForceUpdate: function(publicInstance, callback, callerName) { + enqueueForceUpdate: function (publicInstance, callback, callerName) { warnNoop(publicInstance, "forceUpdate"); }, - enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { + enqueueReplaceState: function (publicInstance, completeState, callback, callerName) { warnNoop(publicInstance, "replaceState"); }, - enqueueSetState: function(publicInstance, partialState, callback, callerName) { + enqueueSetState: function (publicInstance, partialState, callback, callerName) { warnNoop(publicInstance, "setState"); } }; @@ -1968,7 +1986,7 @@ var require_react_development = __commonJS({ this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; - Component.prototype.setState = function(partialState, callback) { + Component.prototype.setState = function (partialState, callback) { if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) { { throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); @@ -1976,7 +1994,7 @@ var require_react_development = __commonJS({ } this.updater.enqueueSetState(this, partialState, callback, "setState"); }; - Component.prototype.forceUpdate = function(callback) { + Component.prototype.forceUpdate = function (callback) { this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); }; { @@ -1984,9 +2002,9 @@ var require_react_development = __commonJS({ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] }; - var defineDeprecationWarning = function(methodName, info2) { + var defineDeprecationWarning = function (methodName, info2) { Object.defineProperty(Component.prototype, methodName, { - get: function() { + get: function () { warn("%s(...) is deprecated in plain JavaScript React classes. %s", info2[0], info2[1]); return void 0; } @@ -2118,7 +2136,7 @@ var require_react_development = __commonJS({ return config.key !== void 0; } function defineKeyPropWarningGetter(props2, displayName) { - var warnAboutAccessingKey = function() { + var warnAboutAccessingKey = function () { { if (!specialPropKeyWarningShown) { specialPropKeyWarningShown = true; @@ -2133,7 +2151,7 @@ var require_react_development = __commonJS({ }); } function defineRefPropWarningGetter(props2, displayName) { - var warnAboutAccessingRef = function() { + var warnAboutAccessingRef = function () { { if (!specialPropRefWarningShown) { specialPropRefWarningShown = true; @@ -2158,7 +2176,7 @@ var require_react_development = __commonJS({ } } } - var ReactElement = function(type2, key, ref, self3, source, owner, props2) { + var ReactElement = function (type2, key, ref, self3, source, owner, props2) { var element = { $$typeof: REACT_ELEMENT_TYPE, type: type2, @@ -2317,7 +2335,7 @@ var require_react_development = __commonJS({ "=": "=0", ":": "=2" }; - var escapedString = key.replace(escapeRegex, function(match) { + var escapedString = key.replace(escapeRegex, function (match) { return escaperLookup[match]; }); return "$" + escapedString; @@ -2364,7 +2382,7 @@ var require_react_development = __commonJS({ if (childKey != null) { escapedChildKey = escapeUserProvidedKey(childKey) + "/"; } - mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c3) { + mapIntoArray(mappedChild, array2, escapedChildKey, "", function (c3) { return c3; }); } else if (mappedChild != null) { @@ -2422,25 +2440,25 @@ var require_react_development = __commonJS({ } var result = []; var count2 = 0; - mapIntoArray(children2, result, "", "", function(child) { + mapIntoArray(children2, result, "", "", function (child) { return func.call(context, child, count2++); }); return result; } function countChildren(children2) { var n2 = 0; - mapChildren2(children2, function() { + mapChildren2(children2, function () { n2++; }); return n2; } function forEachChildren(children2, forEachFunc, forEachContext) { - mapChildren2(children2, function() { + mapChildren2(children2, function () { forEachFunc.apply(this, arguments); }, forEachContext); } function toArray(children2) { - return mapChildren2(children2, function(child) { + return mapChildren2(children2, function (child) { return child; }) || []; } @@ -2486,43 +2504,43 @@ var require_react_development = __commonJS({ }; Object.defineProperties(Consumer, { Provider: { - get: function() { + get: function () { if (!hasWarnedAboutUsingConsumerProvider) { hasWarnedAboutUsingConsumerProvider = true; error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); } return context.Provider; }, - set: function(_Provider) { + set: function (_Provider) { context.Provider = _Provider; } }, _currentValue: { - get: function() { + get: function () { return context._currentValue; }, - set: function(_currentValue) { + set: function (_currentValue) { context._currentValue = _currentValue; } }, _currentValue2: { - get: function() { + get: function () { return context._currentValue2; }, - set: function(_currentValue2) { + set: function (_currentValue2) { context._currentValue2 = _currentValue2; } }, _threadCount: { - get: function() { + get: function () { return context._threadCount; }, - set: function(_threadCount) { + set: function (_threadCount) { context._threadCount = _threadCount; } }, Consumer: { - get: function() { + get: function () { if (!hasWarnedAboutUsingNestedContextConsumers) { hasWarnedAboutUsingNestedContextConsumers = true; error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); @@ -2531,10 +2549,10 @@ var require_react_development = __commonJS({ } }, displayName: { - get: function() { + get: function () { return context.displayName; }, - set: function(displayName) { + set: function (displayName) { if (!hasWarnedAboutDisplayNameOnConsumer) { warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); hasWarnedAboutDisplayNameOnConsumer = true; @@ -2561,7 +2579,7 @@ var require_react_development = __commonJS({ var pending = payload; pending._status = Pending; pending._result = thenable; - thenable.then(function(moduleObject) { + thenable.then(function (moduleObject) { if (payload._status === Pending) { var defaultExport = moduleObject.default; { @@ -2573,7 +2591,7 @@ var require_react_development = __commonJS({ resolved._status = Resolved; resolved._result = defaultExport; } - }, function(error2) { + }, function (error2) { if (payload._status === Pending) { var rejected = payload; rejected._status = Rejected; @@ -2603,10 +2621,10 @@ var require_react_development = __commonJS({ Object.defineProperties(lazyType, { defaultProps: { configurable: true, - get: function() { + get: function () { return defaultProps; }, - set: function(newDefaultProps) { + set: function (newDefaultProps) { error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); defaultProps = newDefaultProps; Object.defineProperty(lazyType, "defaultProps", { @@ -2616,10 +2634,10 @@ var require_react_development = __commonJS({ }, propTypes: { configurable: true, - get: function() { + get: function () { return propTypes; }, - set: function(newPropTypes) { + set: function (newPropTypes) { error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); propTypes = newPropTypes; Object.defineProperty(lazyType, "propTypes", { @@ -2657,10 +2675,10 @@ var require_react_development = __commonJS({ Object.defineProperty(elementType, "displayName", { enumerable: false, configurable: true, - get: function() { + get: function () { return ownName; }, - set: function(name) { + set: function (name) { ownName = name; if (render.displayName == null) { render.displayName = name; @@ -2701,10 +2719,10 @@ var require_react_development = __commonJS({ Object.defineProperty(elementType, "displayName", { enumerable: false, configurable: true, - get: function() { + get: function () { return ownName; }, - set: function(name) { + set: function (name) { ownName = name; if (type2.displayName == null) { type2.displayName = name; @@ -2899,11 +2917,11 @@ var require_react_development = __commonJS({ } try { if (construct) { - var Fake = function() { + var Fake = function () { throw Error(); }; Object.defineProperty(Fake.prototype, "props", { - set: function() { + set: function () { throw Error(); } }); @@ -3269,7 +3287,7 @@ var require_react_development = __commonJS({ } Object.defineProperty(validatedFactory, "type", { enumerable: false, - get: function() { + get: function () { warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); Object.defineProperty(this, "type", { value: type2 @@ -3522,55 +3540,55 @@ var require_react_dom_server_node_production_min = __commonJS({ this.removeEmptyString = t2; } var N = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a2) { N[a2] = new M(a2, 0, false, a2, null, false, false); }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a2) { var b = a2[0]; N[b] = new M(b, 1, false, a2[1], null, false, false); }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a2) { N[a2] = new M(a2, 2, false, a2.toLowerCase(), null, false, false); }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a2) { N[a2] = new M(a2, 2, false, a2, null, false, false); }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { + "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a2) { N[a2] = new M(a2, 3, false, a2.toLowerCase(), null, false, false); }); - ["checked", "multiple", "muted", "selected"].forEach(function(a2) { + ["checked", "multiple", "muted", "selected"].forEach(function (a2) { N[a2] = new M(a2, 3, true, a2, null, false, false); }); - ["capture", "download"].forEach(function(a2) { + ["capture", "download"].forEach(function (a2) { N[a2] = new M(a2, 4, false, a2, null, false, false); }); - ["cols", "rows", "size", "span"].forEach(function(a2) { + ["cols", "rows", "size", "span"].forEach(function (a2) { N[a2] = new M(a2, 6, false, a2, null, false, false); }); - ["rowSpan", "start"].forEach(function(a2) { + ["rowSpan", "start"].forEach(function (a2) { N[a2] = new M(a2, 5, false, a2.toLowerCase(), null, false, false); }); var wa = /[\-:]([a-z])/g; function xa(a2) { return a2[1].toUpperCase(); } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a2) { var b = a2.replace(wa, xa); N[b] = new M(b, 1, false, a2, null, false, false); }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { + "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a2) { var b = a2.replace(wa, xa); N[b] = new M(b, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); }); - ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { + ["xml:base", "xml:lang", "xml:space"].forEach(function (a2) { var b = a2.replace(wa, xa); N[b] = new M(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); }); - ["tabIndex", "crossOrigin"].forEach(function(a2) { + ["tabIndex", "crossOrigin"].forEach(function (a2) { N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, false, false); }); N.xlinkHref = new M("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(a2) { + ["src", "href", "action", "formAction"].forEach(function (a2) { N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, true, true); }); var ya = /["'&<>]/; @@ -3652,7 +3670,7 @@ var require_react_dom_server_node_production_min = __commonJS({ return R; } function Ea(a2, b, c3, d2) { - for (; T; ) + for (; T;) T = false, V += 1, R = null, c3 = a2(b, d2); Fa(); return c3; @@ -3699,16 +3717,16 @@ var require_react_dom_server_node_production_min = __commonJS({ if (c3 !== null && b !== null) { var d2 = c3[1]; a: - if (d2 === null) - d2 = false; - else { - for (var f2 = 0; f2 < d2.length && f2 < b.length; f2++) - if (!Ba(b[f2], d2[f2])) { - d2 = false; - break a; - } - d2 = true; - } + if (d2 === null) + d2 = false; + else { + for (var f2 = 0; f2 < d2.length && f2 < b.length; f2++) + if (!Ba(b[f2], d2[f2])) { + d2 = false; + break a; + } + d2 = true; + } if (d2) return c3[0]; } @@ -3724,7 +3742,7 @@ var require_react_dom_server_node_production_min = __commonJS({ if (T = true, a2 = { action: c3, next: null }, U === null && (U = new Map()), c3 = U.get(b), c3 === void 0) U.set(b, a2); else { - for (b = c3; b.next !== null; ) + for (b = c3; b.next !== null;) b = b.next; b.next = a2; } @@ -3732,41 +3750,43 @@ var require_react_dom_server_node_production_min = __commonJS({ function Ka() { } var X2 = null; - var La = { readContext: function(a2) { - var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useContext: function(a2) { - W(); - var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useMemo: Ja, useReducer: Ha, useRef: function(a2) { - P = W(); - R = Da(); - var b = R.memoizedState; - return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; - }, useState: function(a2) { - return Ha(Ga, a2); - }, useLayoutEffect: function() { - }, useCallback: function(a2, b) { - return Ja(function() { + var La = { + readContext: function (a2) { + var b = X2.threadID; + I(a2, b); + return a2[b]; + }, useContext: function (a2) { + W(); + var b = X2.threadID; + I(a2, b); + return a2[b]; + }, useMemo: Ja, useReducer: Ha, useRef: function (a2) { + P = W(); + R = Da(); + var b = R.memoizedState; + return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; + }, useState: function (a2) { + return Ha(Ga, a2); + }, useLayoutEffect: function () { + }, useCallback: function (a2, b) { + return Ja(function () { + return a2; + }, b); + }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function (a2) { + W(); return a2; - }, b); - }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a2) { - W(); - return a2; - }, useTransition: function() { - W(); - return [function(a2) { - a2(); - }, false]; - }, useOpaqueIdentifier: function() { - return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); - }, useMutableSource: function(a2, b) { - W(); - return b(a2._source); - } }; + }, useTransition: function () { + W(); + return [function (a2) { + a2(); + }, false]; + }, useOpaqueIdentifier: function () { + return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); + }, useMutableSource: function (a2, b) { + W(); + return b(a2._source); + } + }; var Ma = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; function Na(a2) { switch (a2) { @@ -3825,8 +3845,8 @@ var require_react_dom_server_node_production_min = __commonJS({ strokeWidth: true }; var Qa = ["Webkit", "ms", "Moz", "O"]; - Object.keys(Y2).forEach(function(a2) { - Qa.forEach(function(b) { + Object.keys(Y2).forEach(function (a2) { + Qa.forEach(function (b) { b = b + a2.charAt(0).toUpperCase() + a2.substring(1); Y2[b] = Y2[a2]; }); @@ -3843,7 +3863,7 @@ var require_react_dom_server_node_production_min = __commonJS({ if (a2 === void 0 || a2 === null) return a2; var b = ""; - n2.Children.forEach(a2, function(a3) { + n2.Children.forEach(a2, function (a3) { a3 != null && (b += a3); }); return b; @@ -3856,19 +3876,21 @@ var require_react_dom_server_node_production_min = __commonJS({ } function bb2(a2, b, c3) { function d2(d3, h3) { - var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { isMounted: function() { - return false; - }, enqueueForceUpdate: function() { - if (t2 === null) - return null; - }, enqueueReplaceState: function(a3, b2) { - g2 = true; - t2 = [b2]; - }, enqueueSetState: function(a3, b2) { - if (t2 === null) - return null; - t2.push(b2); - } }; + var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { + isMounted: function () { + return false; + }, enqueueForceUpdate: function () { + if (t2 === null) + return null; + }, enqueueReplaceState: function (a3, b2) { + g2 = true; + t2 = [b2]; + }, enqueueSetState: function (a3, b2) { + if (t2 === null) + return null; + t2.push(b2); + } + }; if (e3) { if (e3 = new h3(d3.props, f3, m4), typeof h3.getDerivedStateFromProps === "function") { var k = h3.getDerivedStateFromProps.call(null, d3.props, e3.state); @@ -3914,7 +3936,7 @@ var require_react_dom_server_node_production_min = __commonJS({ } y3 && (b = l2({}, b, y3)); } - for (; n2.isValidElement(a2); ) { + for (; n2.isValidElement(a2);) { var f2 = a2, h2 = f2.type; if (typeof h2 !== "function") break; @@ -3922,7 +3944,7 @@ var require_react_dom_server_node_production_min = __commonJS({ } return { child: a2, context: b }; } - var cb = function() { + var cb = function () { function a2(a3, b2, f2) { n2.isValidElement(a3) ? a3.type !== r4 ? a3 = [a3] : (a3 = a3.props.children, a3 = n2.isValidElement(a3) ? [a3] : Z(a3)) : a3 = Z(a3); a3 = { type: null, domNamespace: Ma.html, children: a3, childIndex: 0, context: na, footer: "" }; @@ -3956,7 +3978,7 @@ var require_react_dom_server_node_production_min = __commonJS({ this.identifierPrefix = f2 && f2.identifierPrefix || ""; } var b = a2.prototype; - b.destroy = function() { + b.destroy = function () { if (!this.exhausted) { this.exhausted = true; this.clearProviders(); @@ -3965,7 +3987,7 @@ var require_react_dom_server_node_production_min = __commonJS({ J[0] = a3; } }; - b.pushProvider = function(a3) { + b.pushProvider = function (a3) { var b2 = ++this.contextIndex, c3 = a3.type._context, h2 = this.threadID; I(c3, h2); var t2 = c3[h2]; @@ -3973,18 +3995,18 @@ var require_react_dom_server_node_production_min = __commonJS({ this.contextValueStack[b2] = t2; c3[h2] = a3.props.value; }; - b.popProvider = function() { + b.popProvider = function () { var a3 = this.contextIndex, b2 = this.contextStack[a3], f2 = this.contextValueStack[a3]; this.contextStack[a3] = null; this.contextValueStack[a3] = null; this.contextIndex--; b2[this.threadID] = f2; }; - b.clearProviders = function() { + b.clearProviders = function () { for (var a3 = this.contextIndex; 0 <= a3; a3--) this.contextStack[a3][this.threadID] = this.contextValueStack[a3]; }; - b.read = function(a3) { + b.read = function (a3) { if (this.exhausted) return null; var b2 = X2; @@ -3992,7 +4014,7 @@ var require_react_dom_server_node_production_min = __commonJS({ var c3 = Ta.current; Ta.current = La; try { - for (var h2 = [""], t2 = false; h2[0].length < a3; ) { + for (var h2 = [""], t2 = false; h2[0].length < a3;) { if (this.stack.length === 0) { this.exhausted = true; var g2 = this.threadID; @@ -4043,7 +4065,7 @@ var require_react_dom_server_node_production_min = __commonJS({ Ta.current = c3, X2 = b2, Fa(); } }; - b.render = function(a3, b2, f2) { + b.render = function (a3, b2, f2) { if (typeof a3 === "string" || typeof a3 === "number") { f2 = "" + a3; if (f2 === "") @@ -4129,7 +4151,7 @@ var require_react_dom_server_node_production_min = __commonJS({ } throw Error(p2(130, c3 == null ? c3 : typeof c3, "")); }; - b.renderDOM = function(a3, b2, f2) { + b.renderDOM = function (a3, b2, f2) { var c3 = a3.type.toLowerCase(); f2 === Ma.html && Na(c3); if (!Wa.hasOwnProperty(c3)) { @@ -4195,23 +4217,23 @@ var require_react_dom_server_node_production_min = __commonJS({ L = this.stack.length === 1; G = "<" + a3.type; b: - if (c3.indexOf("-") === -1) - C = typeof g2.is === "string"; - else - switch (c3) { - case "annotation-xml": - case "color-profile": - case "font-face": - case "font-face-src": - case "font-face-uri": - case "font-face-format": - case "font-face-name": - case "missing-glyph": - C = false; - break b; - default: - C = true; - } + if (c3.indexOf("-") === -1) + C = typeof g2.is === "string"; + else + switch (c3) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + C = false; + break b; + default: + C = true; + } for (w2 in g2) if (Za.call(g2, w2)) { var m4 = g2[w2]; @@ -4275,7 +4297,7 @@ var require_react_dom_server_node_production_min = __commonJS({ a2.prototype.constructor = a2; a2.__proto__ = b; } - var fb = function(a2) { + var fb = function (a2) { function b(b2, c4, h2) { var d2 = a2.call(this, {}) || this; d2.partialRenderer = new cb(b2, c4, h2); @@ -4283,11 +4305,11 @@ var require_react_dom_server_node_production_min = __commonJS({ } db(b, a2); var c3 = b.prototype; - c3._destroy = function(a3, b2) { + c3._destroy = function (a3, b2) { this.partialRenderer.destroy(); b2(a3); }; - c3._read = function(a3) { + c3._read = function (a3) { try { this.push(this.partialRenderer.read(a3)); } catch (f2) { @@ -4296,10 +4318,10 @@ var require_react_dom_server_node_production_min = __commonJS({ }; return b; }(aa.Readable); - exports2.renderToNodeStream = function(a2, b) { + exports2.renderToNodeStream = function (a2, b) { return new fb(a2, false, b); }; - exports2.renderToStaticMarkup = function(a2, b) { + exports2.renderToStaticMarkup = function (a2, b) { a2 = new cb(a2, true, b); try { return a2.read(Infinity); @@ -4307,10 +4329,10 @@ var require_react_dom_server_node_production_min = __commonJS({ a2.destroy(); } }; - exports2.renderToStaticNodeStream = function(a2, b) { + exports2.renderToStaticNodeStream = function (a2, b) { return new fb(a2, true, b); }; - exports2.renderToString = function(a2, b) { + exports2.renderToString = function (a2, b) { a2 = new cb(a2, false, b); try { return a2.read(Infinity); @@ -4327,7 +4349,7 @@ var require_react_dom_server_node_development = __commonJS({ "node_modules/react-dom/cjs/react-dom-server.node.development.js"(exports2) { "use strict"; if (process.env.NODE_ENV !== "production") { - (function() { + (function () { "use strict"; var React4 = require_react(); var _assign = require_object_assign(); @@ -4365,7 +4387,7 @@ var require_react_dom_server_node_development = __commonJS({ format2 += "%s"; args = args.concat([stack]); } - var argsWithFormat = args.map(function(item) { + var argsWithFormat = args.map(function (item) { return "" + item; }); argsWithFormat.unshift("Warning: " + format2); @@ -4601,11 +4623,11 @@ var require_react_dom_server_node_development = __commonJS({ } try { if (construct) { - var Fake = function() { + var Fake = function () { throw Error(); }; Object.defineProperty(Fake.prototype, "props", { - set: function() { + set: function () { throw Error(); } }); @@ -5000,17 +5022,17 @@ var require_react_dom_server_node_development = __commonJS({ "suppressHydrationWarning", "style" ]; - reservedProps.forEach(function(name) { + reservedProps.forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, RESERVED, false, name, null, false, false); }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) { + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (_ref) { var name = _ref[0], attributeName = _ref[1]; properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) { + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name.toLowerCase(), null, false, false); }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) { + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name, null, false, false); }); [ @@ -5037,7 +5059,7 @@ var require_react_dom_server_node_development = __commonJS({ "scoped", "seamless", "itemScope" - ].forEach(function(name) { + ].forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, BOOLEAN, false, name.toLowerCase(), null, false, false); }); [ @@ -5045,13 +5067,13 @@ var require_react_dom_server_node_development = __commonJS({ "multiple", "muted", "selected" - ].forEach(function(name) { + ].forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, BOOLEAN, true, name, null, false, false); }); [ "capture", "download" - ].forEach(function(name) { + ].forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, name, null, false, false); }); [ @@ -5059,14 +5081,14 @@ var require_react_dom_server_node_development = __commonJS({ "rows", "size", "span" - ].forEach(function(name) { + ].forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, name, null, false, false); }); - ["rowSpan", "start"].forEach(function(name) { + ["rowSpan", "start"].forEach(function (name) { properties2[name] = new PropertyInfoRecord(name, NUMERIC, false, name.toLowerCase(), null, false, false); }); var CAMELIZE = /[\-\:]([a-z])/g; - var capitalize = function(token) { + var capitalize = function (token) { return token[1].toUpperCase(); }; [ @@ -5143,7 +5165,7 @@ var require_react_dom_server_node_development = __commonJS({ "writing-mode", "xmlns:xlink", "x-height" - ].forEach(function(attributeName) { + ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); }); @@ -5154,7 +5176,7 @@ var require_react_dom_server_node_development = __commonJS({ "xlink:show", "xlink:title", "xlink:type" - ].forEach(function(attributeName) { + ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/1999/xlink", false, false); }); @@ -5162,16 +5184,16 @@ var require_react_dom_server_node_development = __commonJS({ "xml:base", "xml:lang", "xml:space" - ].forEach(function(attributeName) { + ].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/XML/1998/namespace", false, false); }); - ["tabIndex", "crossOrigin"].forEach(function(attributeName) { + ["tabIndex", "crossOrigin"].forEach(function (attributeName) { properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, false, false); }); var xlinkHref = "xlinkHref"; properties2[xlinkHref] = new PropertyInfoRecord("xlinkHref", STRING, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(attributeName) { + ["src", "href", "action", "formAction"].forEach(function (attributeName) { properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, true, true); }); var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; @@ -5533,7 +5555,7 @@ var require_react_dom_server_node_development = __commonJS({ } } function useCallback(callback, deps) { - return useMemo3(function() { + return useMemo3(function () { return callback; }, deps); } @@ -5547,7 +5569,7 @@ var require_react_dom_server_node_development = __commonJS({ } function useTransition() { resolveCurrentlyRenderingComponent(); - var startTransition = function(callback) { + var startTransition = function (callback) { callback(); }; return [startTransition, false]; @@ -5727,8 +5749,8 @@ var require_react_dom_server_node_development = __commonJS({ return prefix2 + key.charAt(0).toUpperCase() + key.substring(1); } var prefixes2 = ["Webkit", "ms", "Moz", "O"]; - Object.keys(isUnitlessNumber).forEach(function(prop) { - prefixes2.forEach(function(prefix2) { + Object.keys(isUnitlessNumber).forEach(function (prop) { + prefixes2.forEach(function (prefix2) { isUnitlessNumber[prefixKey(prefix2, prop)] = isUnitlessNumber[prop]; }); }); @@ -5765,7 +5787,7 @@ var require_react_dom_server_node_development = __commonJS({ return true; } } - var warnValidStyle = function() { + var warnValidStyle = function () { }; { var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; @@ -5776,47 +5798,47 @@ var require_react_dom_server_node_development = __commonJS({ var warnedStyleValues = {}; var warnedForNaNValue = false; var warnedForInfinityValue = false; - var camelize = function(string) { - return string.replace(hyphenPattern, function(_10, character) { + var camelize = function (string) { + return string.replace(hyphenPattern, function (_10, character) { return character.toUpperCase(); }); }; - var warnHyphenatedStyleName = function(name) { + var warnHyphenatedStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error("Unsupported style property %s. Did you mean %s?", name, camelize(name.replace(msPattern$1, "ms-"))); }; - var warnBadVendoredStyleName = function(name) { + var warnBadVendoredStyleName = function (name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error("Unsupported vendor-prefixed style property %s. Did you mean %s?", name, name.charAt(0).toUpperCase() + name.slice(1)); }; - var warnStyleValueWithSemicolon = function(name, value) { + var warnStyleValueWithSemicolon = function (name, value) { if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { return; } warnedStyleValues[value] = true; error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, name, value.replace(badStyleValueWithSemicolonPattern, "")); }; - var warnStyleValueIsNaN = function(name, value) { + var warnStyleValueIsNaN = function (name, value) { if (warnedForNaNValue) { return; } warnedForNaNValue = true; error("`NaN` is an invalid value for the `%s` css style property.", name); }; - var warnStyleValueIsInfinity = function(name, value) { + var warnStyleValueIsInfinity = function (name, value) { if (warnedForInfinityValue) { return; } warnedForInfinityValue = true; error("`Infinity` is an invalid value for the `%s` css style property.", name); }; - warnValidStyle = function(name, value) { + warnValidStyle = function (name, value) { if (name.indexOf("-") > -1) { warnHyphenatedStyleName(name); } else if (badVendoredStyleNamePattern.test(name)) { @@ -5932,7 +5954,7 @@ var require_react_dom_server_node_development = __commonJS({ invalidProps.push(key); } } - var unknownPropString = invalidProps.map(function(prop) { + var unknownPropString = invalidProps.map(function (prop) { return "`" + prop + "`"; }).join(", "); if (invalidProps.length === 1) { @@ -6449,7 +6471,7 @@ var require_react_dom_server_node_development = __commonJS({ z: "z", zoomandpan: "zoomAndPan" }; - var validateProperty$1 = function() { + var validateProperty$1 = function () { }; { var warnedProperties$1 = {}; @@ -6458,7 +6480,7 @@ var require_react_dom_server_node_development = __commonJS({ var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); - validateProperty$1 = function(tagName, name, value, eventRegistry) { + validateProperty$1 = function (tagName, name, value, eventRegistry) { if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) { return true; } @@ -6552,7 +6574,7 @@ var require_react_dom_server_node_development = __commonJS({ return true; }; } - var warnUnknownProperties = function(type2, props2, eventRegistry) { + var warnUnknownProperties = function (type2, props2, eventRegistry) { { var unknownProps = []; for (var key in props2) { @@ -6561,7 +6583,7 @@ var require_react_dom_server_node_development = __commonJS({ unknownProps.push(key); } } - var unknownPropString = unknownProps.map(function(prop) { + var unknownPropString = unknownProps.map(function (prop) { return "`" + prop + "`"; }).join(", "); if (unknownProps.length === 1) { @@ -6582,51 +6604,51 @@ var require_react_dom_server_node_development = __commonJS({ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; var ReactDebugCurrentFrame$1; var prevGetCurrentStackImpl = null; - var getCurrentServerStackImpl = function() { + var getCurrentServerStackImpl = function () { return ""; }; - var describeStackFrame = function(element) { + var describeStackFrame = function (element) { return ""; }; - var validatePropertiesInDevelopment = function(type2, props2) { + var validatePropertiesInDevelopment = function (type2, props2) { }; - var pushCurrentDebugStack = function(stack) { + var pushCurrentDebugStack = function (stack) { }; - var pushElementToDebugStack = function(element) { + var pushElementToDebugStack = function (element) { }; - var popCurrentDebugStack = function() { + var popCurrentDebugStack = function () { }; var hasWarnedAboutUsingContextAsConsumer = false; { ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - validatePropertiesInDevelopment = function(type2, props2) { + validatePropertiesInDevelopment = function (type2, props2) { validateProperties(type2, props2); validateProperties$1(type2, props2); validateProperties$2(type2, props2, null); }; - describeStackFrame = function(element) { + describeStackFrame = function (element) { return describeUnknownElementTypeFrameInDEV(element.type, element._source, null); }; - pushCurrentDebugStack = function(stack) { + pushCurrentDebugStack = function (stack) { currentDebugStacks.push(stack); if (currentDebugStacks.length === 1) { prevGetCurrentStackImpl = ReactDebugCurrentFrame$1.getCurrentStack; ReactDebugCurrentFrame$1.getCurrentStack = getCurrentServerStackImpl; } }; - pushElementToDebugStack = function(element) { + pushElementToDebugStack = function (element) { var stack = currentDebugStacks[currentDebugStacks.length - 1]; var frame2 = stack[stack.length - 1]; frame2.debugElementStack.push(element); }; - popCurrentDebugStack = function() { + popCurrentDebugStack = function () { currentDebugStacks.pop(); if (currentDebugStacks.length === 0) { ReactDebugCurrentFrame$1.getCurrentStack = prevGetCurrentStackImpl; prevGetCurrentStackImpl = null; } }; - getCurrentServerStackImpl = function() { + getCurrentServerStackImpl = function () { if (currentDebugStacks.length === 0) { return ""; } @@ -6672,7 +6694,7 @@ var require_react_dom_server_node_development = __commonJS({ } } var styleNameCache = {}; - var processStyleName = function(styleName) { + var processStyleName = function (styleName) { if (styleNameCache.hasOwnProperty(styleName)) { return styleNameCache[styleName]; } @@ -6751,7 +6773,7 @@ var require_react_dom_server_node_development = __commonJS({ return children2; } var content = ""; - React4.Children.forEach(children2, function(child) { + React4.Children.forEach(children2, function (child) { if (child == null) { return; } @@ -6834,20 +6856,20 @@ var require_react_dom_server_node_development = __commonJS({ var queue = []; var replace = false; var updater = { - isMounted: function(publicInstance) { + isMounted: function (publicInstance) { return false; }, - enqueueForceUpdate: function(publicInstance) { + enqueueForceUpdate: function (publicInstance) { if (queue === null) { warnNoop(publicInstance, "forceUpdate"); return null; } }, - enqueueReplaceState: function(publicInstance, completeState) { + enqueueReplaceState: function (publicInstance, completeState) { replace = true; queue = [completeState]; }, - enqueueSetState: function(publicInstance, currentPartialState) { + enqueueSetState: function (publicInstance, currentPartialState) { if (queue === null) { warnNoop(publicInstance, "setState"); return null; @@ -7000,7 +7022,7 @@ var require_react_dom_server_node_development = __commonJS({ context }; } - var ReactDOMServerRenderer = /* @__PURE__ */ function() { + var ReactDOMServerRenderer = /* @__PURE__ */ function () { function ReactDOMServerRenderer2(children2, makeStaticMarkup, options) { var flatChildren = flattenTopLevelChildren(children2); var topFrame = { @@ -7601,7 +7623,7 @@ var require_react_dom_server_node_development = __commonJS({ subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } - var ReactMarkupReadableStream = /* @__PURE__ */ function(_Readable) { + var ReactMarkupReadableStream = /* @__PURE__ */ function (_Readable) { _inheritsLoose(ReactMarkupReadableStream2, _Readable); function ReactMarkupReadableStream2(element, makeStaticMarkup, options) { var _this; @@ -7778,7 +7800,7 @@ var require_stringify = __commonJS({ var require_is_number = __commonJS({ "node_modules/is-number/index.js"(exports2, module2) { "use strict"; - module2.exports = function(num) { + module2.exports = function (num) { if (typeof num === "number") { return num - num === 0; } @@ -10454,7 +10476,7 @@ var require_coreJsData = __commonJS({ var require_isMasked = __commonJS({ "node_modules/lodash/_isMasked.js"(exports2, module2) { var coreJsData = require_coreJsData(); - var maskSrcKey = function() { + var maskSrcKey = function () { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); return uid ? "Symbol(src)_1." + uid : ""; }(); @@ -10539,7 +10561,7 @@ var require_getNative = __commonJS({ var require_defineProperty = __commonJS({ "node_modules/lodash/_defineProperty.js"(exports2, module2) { var getNative = require_getNative(); - var defineProperty = function() { + var defineProperty = function () { try { var func = getNative(Object, "defineProperty"); func({}, "", {}); @@ -10590,7 +10612,7 @@ var require_arrayAggregator = __commonJS({ var require_createBaseFor = __commonJS({ "node_modules/lodash/_createBaseFor.js"(exports2, module2) { function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { + return function (object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props2 = keysFunc(object), length = props2.length; while (length--) { var key = props2[fromRight ? length : ++index]; @@ -10659,9 +10681,9 @@ var require_isArguments = __commonJS({ var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var isArguments = baseIsArguments(function() { + var isArguments = baseIsArguments(function () { return arguments; - }()) ? baseIsArguments : function(value) { + }()) ? baseIsArguments : function (value) { return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); }; module2.exports = isArguments; @@ -10770,7 +10792,7 @@ var require_baseIsTypedArray = __commonJS({ var require_baseUnary = __commonJS({ "node_modules/lodash/_baseUnary.js"(exports2, module2) { function baseUnary(func) { - return function(value) { + return function (value) { return func(value); }; } @@ -10786,7 +10808,7 @@ var require_nodeUtil = __commonJS({ var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; var moduleExports = freeModule && freeModule.exports === freeExports; var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { + var nodeUtil = function () { try { var types = freeModule && freeModule.require && freeModule.require("util").types; if (types) { @@ -10852,7 +10874,7 @@ var require_isPrototype = __commonJS({ var require_overArg = __commonJS({ "node_modules/lodash/_overArg.js"(exports2, module2) { function overArg(func, transform2) { - return function(arg) { + return function (arg) { return func(transform2(arg)); }; } @@ -10934,7 +10956,7 @@ var require_createBaseEach = __commonJS({ "node_modules/lodash/_createBaseEach.js"(exports2, module2) { var isArrayLike = require_isArrayLike(); function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { + return function (collection, iteratee) { if (collection == null) { return collection; } @@ -10969,7 +10991,7 @@ var require_baseAggregator = __commonJS({ "node_modules/lodash/_baseAggregator.js"(exports2, module2) { var baseEach = require_baseEach(); function baseAggregator(collection, setter, iteratee, accumulator) { - baseEach(collection, function(value, key, collection2) { + baseEach(collection, function (value, key, collection2) { setter(accumulator, value, iteratee(value), collection2); }); return accumulator; @@ -11530,7 +11552,7 @@ var require_equalArrays = __commonJS({ break; } if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { + if (!arraySome(other, function (othValue2, othIndex) { if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { return seen.push(othIndex); } @@ -11565,7 +11587,7 @@ var require_mapToArray = __commonJS({ "node_modules/lodash/_mapToArray.js"(exports2, module2) { function mapToArray(map2) { var index = -1, result = Array(map2.size); - map2.forEach(function(value, key) { + map2.forEach(function (value, key) { result[++index] = [key, value]; }); return result; @@ -11579,7 +11601,7 @@ var require_setToArray = __commonJS({ "node_modules/lodash/_setToArray.js"(exports2, module2) { function setToArray(set3) { var index = -1, result = Array(set3.size); - set3.forEach(function(value) { + set3.forEach(function (value) { result[++index] = value; }); return result; @@ -11724,12 +11746,12 @@ var require_getSymbols = __commonJS({ var objectProto = Object.prototype; var propertyIsEnumerable = objectProto.propertyIsEnumerable; var nativeGetSymbols = Object.getOwnPropertySymbols; - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + var getSymbols = !nativeGetSymbols ? stubArray : function (object) { if (object == null) { return []; } object = Object(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { + return arrayFilter(nativeGetSymbols(object), function (symbol) { return propertyIsEnumerable.call(object, symbol); }); }; @@ -11867,7 +11889,7 @@ var require_getTag = __commonJS({ var weakMapCtorString = toSource(WeakMap2); var getTag = baseGetTag; if (DataView2 && getTag(new DataView2(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) { - getTag = function(value) { + getTag = function (value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; if (ctorString) { switch (ctorString) { @@ -12033,7 +12055,7 @@ var require_getMatchData = __commonJS({ var require_matchesStrictComparable = __commonJS({ "node_modules/lodash/_matchesStrictComparable.js"(exports2, module2) { function matchesStrictComparable(key, srcValue) { - return function(object) { + return function (object) { if (object == null) { return false; } @@ -12055,7 +12077,7 @@ var require_baseMatches = __commonJS({ if (matchData.length == 1 && matchData[0][2]) { return matchesStrictComparable(matchData[0][0], matchData[0][1]); } - return function(object) { + return function (object) { return object === source || baseIsMatch(object, source, matchData); }; } @@ -12106,7 +12128,7 @@ var require_memoize = __commonJS({ if (typeof func != "function" || resolver != null && typeof resolver != "function") { throw new TypeError(FUNC_ERROR_TEXT); } - var memoized = function() { + var memoized = function () { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); @@ -12129,7 +12151,7 @@ var require_memoizeCapped = __commonJS({ var memoize = require_memoize(); var MAX_MEMOIZE_SIZE = 500; function memoizeCapped(func) { - var result = memoize(func, function(key) { + var result = memoize(func, function (key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } @@ -12148,12 +12170,12 @@ var require_stringToPath = __commonJS({ var memoizeCapped = require_memoizeCapped(); var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; var reEscapeChar = /\\(\\)?/g; - var stringToPath = memoizeCapped(function(string) { + var stringToPath = memoizeCapped(function (string) { var result = []; if (string.charCodeAt(0) === 46) { result.push(""); } - string.replace(rePropName, function(match, number3, quote, subString) { + string.replace(rePropName, function (match, number3, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, "$1") : number3 || match); }); return result; @@ -12343,7 +12365,7 @@ var require_baseMatchesProperty = __commonJS({ if (isKey(path) && isStrictComparable(srcValue)) { return matchesStrictComparable(toKey(path), srcValue); } - return function(object) { + return function (object) { var objValue = get3(object, path); return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); }; @@ -12366,7 +12388,7 @@ var require_identity = __commonJS({ var require_baseProperty = __commonJS({ "node_modules/lodash/_baseProperty.js"(exports2, module2) { function baseProperty(key) { - return function(object) { + return function (object) { return object == null ? void 0 : object[key]; }; } @@ -12379,7 +12401,7 @@ var require_basePropertyDeep = __commonJS({ "node_modules/lodash/_basePropertyDeep.js"(exports2, module2) { var baseGet = require_baseGet(); function basePropertyDeep(path) { - return function(object) { + return function (object) { return baseGet(object, path); }; } @@ -12433,7 +12455,7 @@ var require_createAggregator = __commonJS({ var baseIteratee = require_baseIteratee(); var isArray = require_isArray(); function createAggregator(setter, initializer) { - return function(collection, iteratee) { + return function (collection, iteratee) { var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; return func(collection, setter, baseIteratee(iteratee, 2), accumulator); }; @@ -12449,7 +12471,7 @@ var require_countBy = __commonJS({ var createAggregator = require_createAggregator(); var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; - var countBy2 = createAggregator(function(result, value, key) { + var countBy2 = createAggregator(function (result, value, key) { if (hasOwnProperty.call(result, key)) { ++result[key]; } else { @@ -12506,7 +12528,7 @@ var require_baseToPairs = __commonJS({ "node_modules/lodash/_baseToPairs.js"(exports2, module2) { var arrayMap = require_arrayMap(); function baseToPairs(object, props2) { - return arrayMap(props2, function(key) { + return arrayMap(props2, function (key) { return [key, object[key]]; }); } @@ -12519,7 +12541,7 @@ var require_setToPairs = __commonJS({ "node_modules/lodash/_setToPairs.js"(exports2, module2) { function setToPairs(set3) { var index = -1, result = Array(set3.size); - set3.forEach(function(value) { + set3.forEach(function (value) { result[++index] = [value, value]; }); return result; @@ -12538,7 +12560,7 @@ var require_createToPairs = __commonJS({ var mapTag = "[object Map]"; var setTag = "[object Set]"; function createToPairs(keysFunc) { - return function(object) { + return function (object) { var tag = getTag(object); if (tag == mapTag) { return mapToArray(object); @@ -12669,7 +12691,7 @@ var require_createSet = __commonJS({ var noop2 = require_noop(); var setToArray = require_setToArray(); var INFINITY = 1 / 0; - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function(values) { + var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function (values) { return new Set2(values); }; module2.exports = createSet; @@ -12703,27 +12725,27 @@ var require_baseUniq = __commonJS({ seen = iteratee ? [] : result; } outer: - while (++index < length) { - var value = array2[index], computed = iteratee ? iteratee(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee) { - seen.push(computed); - } - result.push(value); - } else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); + while (++index < length) { + var value = array2[index], computed = iteratee ? iteratee(value) : value; + value = comparator || value !== 0 ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; } - result.push(value); } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); } + } return result; } module2.exports = baseUniq; @@ -12824,7 +12846,7 @@ var import_micromatch = __toModule(require_micromatch()); var shouldExcludePath = (path, pathsToIgnore, globsToIgnore) => { if (!path) return false; - return pathsToIgnore.has(path) || globsToIgnore.some((glob) => (0, import_micromatch.isMatch)(path, glob)); + return pathsToIgnore.has(path) || globsToIgnore.some((glob) => !glob || (0, import_micromatch.isMatch)(path, glob)); }; // src/process-dir.js @@ -13045,8 +13067,10 @@ function range_default(start2, stop, step) { } // node_modules/d3-dispatch/src/dispatch.js -var noop = { value: () => { -} }; +var noop = { + value: () => { + } +}; function dispatch() { for (var i = 0, n2 = arguments.length, _10 = {}, t2; i < n2; ++i) { if (!(t2 = arguments[i] + "") || t2 in _10 || /[\s.]/.test(t2)) @@ -13059,7 +13083,7 @@ function Dispatch(_10) { this._ = _10; } function parseTypenames(typenames, types) { - return typenames.trim().split(/^|\s+/).map(function(t2) { + return typenames.trim().split(/^|\s+/).map(function (t2) { var name = "", i = t2.indexOf("."); if (i >= 0) name = t2.slice(i + 1), t2 = t2.slice(0, i); @@ -13070,7 +13094,7 @@ function parseTypenames(typenames, types) { } Dispatch.prototype = dispatch.prototype = { constructor: Dispatch, - on: function(typename, callback) { + on: function (typename, callback) { var _10 = this._, T = parseTypenames(typename + "", _10), t2, i = -1, n2 = T.length; if (arguments.length < 2) { while (++i < n2) @@ -13089,13 +13113,13 @@ Dispatch.prototype = dispatch.prototype = { } return this; }, - copy: function() { + copy: function () { var copy2 = {}, _10 = this._; for (var t2 in _10) copy2[t2] = _10[t2].slice(); return new Dispatch(copy2); }, - call: function(type2, that) { + call: function (type2, that) { if ((n2 = arguments.length - 2) > 0) for (var args = new Array(n2), i = 0, n2, t2; i < n2; ++i) args[i] = arguments[i + 2]; @@ -13104,7 +13128,7 @@ Dispatch.prototype = dispatch.prototype = { for (t2 = this._[type2], i = 0, n2 = t2.length; i < n2; ++i) t2[i].value.apply(that, args); }, - apply: function(type2, that, args) { + apply: function (type2, that, args) { if (!this._.hasOwnProperty(type2)) throw new Error("unknown type: " + type2); for (var t2 = this._[type2], i = 0, n2 = t2.length; i < n2; ++i) @@ -13151,13 +13175,13 @@ function namespace_default(name) { // node_modules/d3-selection/src/creator.js function creatorInherit(name) { - return function() { + return function () { var document2 = this.ownerDocument, uri = this.namespaceURI; return uri === xhtml && document2.documentElement.namespaceURI === xhtml ? document2.createElement(name) : document2.createElementNS(uri, name); }; } function creatorFixed(fullname) { - return function() { + return function () { return this.ownerDocument.createElementNS(fullname.space, fullname.local); }; } @@ -13170,7 +13194,7 @@ function creator_default(name) { function none() { } function selector_default(selector) { - return selector == null ? none : function() { + return selector == null ? none : function () { return this.querySelector(selector); }; } @@ -13201,14 +13225,14 @@ function empty() { return []; } function selectorAll_default(selector) { - return selector == null ? empty : function() { + return selector == null ? empty : function () { return this.querySelectorAll(selector); }; } // node_modules/d3-selection/src/selection/selectAll.js function arrayAll(select) { - return function() { + return function () { return array(select.apply(this, arguments)); }; } @@ -13230,12 +13254,12 @@ function selectAll_default(select) { // node_modules/d3-selection/src/matcher.js function matcher_default(selector) { - return function() { + return function () { return this.matches(selector); }; } function childMatcher(selector) { - return function(node) { + return function (node) { return node.matches(selector); }; } @@ -13243,7 +13267,7 @@ function childMatcher(selector) { // node_modules/d3-selection/src/selection/selectChild.js var find = Array.prototype.find; function childFind(match) { - return function() { + return function () { return find.call(this.children, match); }; } @@ -13260,7 +13284,7 @@ function children() { return Array.from(this.children); } function childrenFilter(match) { - return function() { + return function () { return filter.call(this.children, match); }; } @@ -13300,23 +13324,23 @@ function EnterNode(parent, datum2) { } EnterNode.prototype = { constructor: EnterNode, - appendChild: function(child) { + appendChild: function (child) { return this._parent.insertBefore(child, this._next); }, - insertBefore: function(child, next) { + insertBefore: function (child, next) { return this._parent.insertBefore(child, next); }, - querySelector: function(selector) { + querySelector: function (selector) { return this._parent.querySelector(selector); }, - querySelectorAll: function(selector) { + querySelectorAll: function (selector) { return this._parent.querySelectorAll(selector); } }; // node_modules/d3-selection/src/constant.js function constant_default(x2) { - return function() { + return function () { return x2; }; } @@ -13442,8 +13466,8 @@ function merge_default(context) { // node_modules/d3-selection/src/selection/order.js function order_default() { - for (var groups = this._groups, j3 = -1, m4 = groups.length; ++j3 < m4; ) { - for (var group = groups[j3], i = group.length - 1, next = group[i], node; --i >= 0; ) { + for (var groups = this._groups, j3 = -1, m4 = groups.length; ++j3 < m4;) { + for (var group = groups[j3], i = group.length - 1, next = group[i], node; --i >= 0;) { if (node = group[i]) { if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next); @@ -13526,27 +13550,27 @@ function each_default(callback) { // node_modules/d3-selection/src/selection/attr.js function attrRemove(name) { - return function() { + return function () { this.removeAttribute(name); }; } function attrRemoveNS(fullname) { - return function() { + return function () { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant(name, value) { - return function() { + return function () { this.setAttribute(name, value); }; } function attrConstantNS(fullname, value) { - return function() { + return function () { this.setAttributeNS(fullname.space, fullname.local, value); }; } function attrFunction(name, value) { - return function() { + return function () { var v2 = value.apply(this, arguments); if (v2 == null) this.removeAttribute(name); @@ -13555,7 +13579,7 @@ function attrFunction(name, value) { }; } function attrFunctionNS(fullname, value) { - return function() { + return function () { var v2 = value.apply(this, arguments); if (v2 == null) this.removeAttributeNS(fullname.space, fullname.local); @@ -13579,17 +13603,17 @@ function window_default(node) { // node_modules/d3-selection/src/selection/style.js function styleRemove(name) { - return function() { + return function () { this.style.removeProperty(name); }; } function styleConstant(name, value, priority) { - return function() { + return function () { this.style.setProperty(name, value, priority); }; } function styleFunction(name, value, priority) { - return function() { + return function () { var v2 = value.apply(this, arguments); if (v2 == null) this.style.removeProperty(name); @@ -13606,17 +13630,17 @@ function styleValue(node, name) { // node_modules/d3-selection/src/selection/property.js function propertyRemove(name) { - return function() { + return function () { delete this[name]; }; } function propertyConstant(name, value) { - return function() { + return function () { this[name] = value; }; } function propertyFunction(name, value) { - return function() { + return function () { var v2 = value.apply(this, arguments); if (v2 == null) delete this[name]; @@ -13640,21 +13664,21 @@ function ClassList(node) { this._names = classArray(node.getAttribute("class") || ""); } ClassList.prototype = { - add: function(name) { + add: function (name) { var i = this._names.indexOf(name); if (i < 0) { this._names.push(name); this._node.setAttribute("class", this._names.join(" ")); } }, - remove: function(name) { + remove: function (name) { var i = this._names.indexOf(name); if (i >= 0) { this._names.splice(i, 1); this._node.setAttribute("class", this._names.join(" ")); } }, - contains: function(name) { + contains: function (name) { return this._names.indexOf(name) >= 0; } }; @@ -13669,17 +13693,17 @@ function classedRemove(node, names) { list.remove(names[i]); } function classedTrue(names) { - return function() { + return function () { classedAdd(this, names); }; } function classedFalse(names) { - return function() { + return function () { classedRemove(this, names); }; } function classedFunction(names, value) { - return function() { + return function () { (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names); }; } @@ -13700,12 +13724,12 @@ function textRemove() { this.textContent = ""; } function textConstant(value) { - return function() { + return function () { this.textContent = value; }; } function textFunction(value) { - return function() { + return function () { var v2 = value.apply(this, arguments); this.textContent = v2 == null ? "" : v2; }; @@ -13719,12 +13743,12 @@ function htmlRemove() { this.innerHTML = ""; } function htmlConstant(value) { - return function() { + return function () { this.innerHTML = value; }; } function htmlFunction(value) { - return function() { + return function () { var v2 = value.apply(this, arguments); this.innerHTML = v2 == null ? "" : v2; }; @@ -13754,7 +13778,7 @@ function lower_default() { // node_modules/d3-selection/src/selection/append.js function append_default(name) { var create2 = typeof name === "function" ? name : creator_default(name); - return this.select(function() { + return this.select(function () { return this.appendChild(create2.apply(this, arguments)); }); } @@ -13765,7 +13789,7 @@ function constantNull() { } function insert_default(name, before) { var create2 = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before); - return this.select(function() { + return this.select(function () { return this.insertBefore(create2.apply(this, arguments), select.apply(this, arguments) || null); }); } @@ -13800,12 +13824,12 @@ function datum_default(value) { // node_modules/d3-selection/src/selection/on.js function contextListener(listener) { - return function(event) { + return function (event) { listener.call(this, event, this.__data__); }; } function parseTypenames2(typenames) { - return typenames.trim().split(/^|\s+/).map(function(t2) { + return typenames.trim().split(/^|\s+/).map(function (t2) { var name = "", i = t2.indexOf("."); if (i >= 0) name = t2.slice(i + 1), t2 = t2.slice(0, i); @@ -13813,7 +13837,7 @@ function parseTypenames2(typenames) { }); } function onRemove(typename) { - return function() { + return function () { var on = this.__on; if (!on) return; @@ -13831,7 +13855,7 @@ function onRemove(typename) { }; } function onAdd(typename, value, options) { - return function() { + return function () { var on = this.__on, o, listener = contextListener(value); if (on) for (var j3 = 0, m4 = on.length; j3 < m4; ++j3) { @@ -13885,12 +13909,12 @@ function dispatchEvent(node, type2, params) { node.dispatchEvent(event); } function dispatchConstant(type2, params) { - return function() { + return function () { return dispatchEvent(this, type2, params); }; } function dispatchFunction(type2, params) { - return function() { + return function () { return dispatchEvent(this, type2, params.apply(this, arguments)); }; } @@ -14138,10 +14162,10 @@ var named = { yellowgreen: 10145074 }; define_default(Color, color, { - copy: function(channels) { + copy: function (channels) { return Object.assign(new this.constructor(), this, channels); }, - displayable: function() { + displayable: function () { return this.rgb().displayable(); }, hex: color_formatHex, @@ -14190,18 +14214,18 @@ function Rgb(r4, g2, b, opacity) { this.opacity = +opacity; } define_default(Rgb, rgb, extend(Color, { - brighter: function(k) { + brighter: function (k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - darker: function(k) { + darker: function (k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - rgb: function() { + rgb: function () { return this; }, - displayable: function() { + displayable: function () { return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1); }, hex: rgb_formatHex, @@ -14265,22 +14289,22 @@ function Hsl(h2, s, l2, opacity) { this.opacity = +opacity; } define_default(Hsl, hsl, extend(Color, { - brighter: function(k) { + brighter: function (k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - darker: function(k) { + darker: function (k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - rgb: function() { + rgb: function () { var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m23 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s, m1 = 2 * l2 - m23; return new Rgb(hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m23), hsl2rgb(h2, m1, m23), hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m23), this.opacity); }, - displayable: function() { + displayable: function () { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); }, - formatHsl: function() { + formatHsl: function () { var a2 = this.opacity; a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")"); @@ -14297,7 +14321,7 @@ function basis(t12, v0, v1, v2, v3) { } function basis_default(values) { var n2 = values.length - 1; - return function(t2) { + return function (t2) { var i = t2 <= 0 ? t2 = 0 : t2 >= 1 ? (t2 = 1, n2 - 1) : Math.floor(t2 * n2), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n2 - 1 ? values[i + 2] : 2 * v2 - v1; return basis((t2 - i / n2) * n2, v0, v1, v2, v3); }; @@ -14306,7 +14330,7 @@ function basis_default(values) { // node_modules/d3-interpolate/src/basisClosed.js function basisClosed_default(values) { var n2 = values.length; - return function(t2) { + return function (t2) { var i = Math.floor(((t2 %= 1) < 0 ? ++t2 : t2) * n2), v0 = values[(i + n2 - 1) % n2], v1 = values[i % n2], v2 = values[(i + 1) % n2], v3 = values[(i + 2) % n2]; return basis((t2 - i / n2) * n2, v0, v1, v2, v3); }; @@ -14317,17 +14341,17 @@ var constant_default2 = (x2) => () => x2; // node_modules/d3-interpolate/src/color.js function linear(a2, d2) { - return function(t2) { + return function (t2) { return a2 + t2 * d2; }; } function exponential(a2, b, y3) { - return a2 = Math.pow(a2, y3), b = Math.pow(b, y3) - a2, y3 = 1 / y3, function(t2) { + return a2 = Math.pow(a2, y3), b = Math.pow(b, y3) - a2, y3 = 1 / y3, function (t2) { return Math.pow(a2 + t2 * b, y3); }; } function gamma(y3) { - return (y3 = +y3) === 1 ? nogamma : function(a2, b) { + return (y3 = +y3) === 1 ? nogamma : function (a2, b) { return b - a2 ? exponential(a2, b, y3) : constant_default2(isNaN(a2) ? b : a2); }; } @@ -14341,7 +14365,7 @@ var rgb_default = function rgbGamma(y3) { var color2 = gamma(y3); function rgb2(start2, end) { var r4 = color2((start2 = rgb(start2)).r, (end = rgb(end)).r), g2 = color2(start2.g, end.g), b = color2(start2.b, end.b), opacity = nogamma(start2.opacity, end.opacity); - return function(t2) { + return function (t2) { start2.r = r4(t2); start2.g = g2(t2); start2.b = b(t2); @@ -14353,7 +14377,7 @@ var rgb_default = function rgbGamma(y3) { return rgb2; }(1); function rgbSpline(spline) { - return function(colors) { + return function (colors) { var n2 = colors.length, r4 = new Array(n2), g2 = new Array(n2), b = new Array(n2), i, color2; for (i = 0; i < n2; ++i) { color2 = rgb(colors[i]); @@ -14365,7 +14389,7 @@ function rgbSpline(spline) { g2 = spline(g2); b = spline(b); color2.opacity = 1; - return function(t2) { + return function (t2) { color2.r = r4(t2); color2.g = g2(t2); color2.b = b(t2); @@ -14381,7 +14405,7 @@ function numberArray_default(a2, b) { if (!b) b = []; var n2 = a2 ? Math.min(b.length, a2.length) : 0, c3 = b.slice(), i; - return function(t2) { + return function (t2) { for (i = 0; i < n2; ++i) c3[i] = a2[i] * (1 - t2) + b[i] * t2; return c3; @@ -14398,7 +14422,7 @@ function genericArray(a2, b) { x2[i] = value_default(a2[i], b[i]); for (; i < nb; ++i) c3[i] = b[i]; - return function(t2) { + return function (t2) { for (i = 0; i < na; ++i) c3[i] = x2[i](t2); return c3; @@ -14408,14 +14432,14 @@ function genericArray(a2, b) { // node_modules/d3-interpolate/src/date.js function date_default(a2, b) { var d2 = new Date(); - return a2 = +a2, b = +b, function(t2) { + return a2 = +a2, b = +b, function (t2) { return d2.setTime(a2 * (1 - t2) + b * t2), d2; }; } // node_modules/d3-interpolate/src/number.js function number_default2(a2, b) { - return a2 = +a2, b = +b, function(t2) { + return a2 = +a2, b = +b, function (t2) { return a2 * (1 - t2) + b * t2; }; } @@ -14434,7 +14458,7 @@ function object_default(a2, b) { c3[k] = b[k]; } } - return function(t2) { + return function (t2) { for (k in i) c3[k] = i[k](t2); return c3; @@ -14445,12 +14469,12 @@ function object_default(a2, b) { var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; var reB = new RegExp(reA.source, "g"); function zero(b) { - return function() { + return function () { return b; }; } function one(b) { - return function(t2) { + return function (t2) { return b(t2) + ""; }; } @@ -14483,7 +14507,7 @@ function string_default(a2, b) { else s[++i] = bs; } - return s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function(t2) { + return s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function (t2) { for (var i2 = 0, o; i2 < b; ++i2) s[(o = q2[i2]).i] = o.x(t2); return s.join(""); @@ -14498,7 +14522,7 @@ function value_default(a2, b) { // node_modules/d3-interpolate/src/round.js function round_default(a2, b) { - return a2 = +a2, b = +b, function(t2) { + return a2 = +a2, b = +b, function (t2) { return Math.round(a2 * (1 - t2) + b * t2); }; } @@ -14590,7 +14614,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } - return function(a2, b) { + return function (a2, b) { var s = [], q2 = []; a2 = parse(a2), b = parse(b); translate(a2.translateX, a2.translateY, b.translateX, b.translateY, s, q2); @@ -14598,7 +14622,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { skewX(a2.skewX, b.skewX, s, q2); scale(a2.scaleX, a2.scaleY, b.scaleX, b.scaleY, s, q2); a2 = b = null; - return function(t2) { + return function (t2) { var i = -1, n2 = q2.length, o; while (++i < n2) s[(o = q2[i]).i] = o.x(t2); @@ -14620,7 +14644,7 @@ var clockLast = 0; var clockNow = 0; var clockSkew = 0; var clock = typeof performance === "object" && performance.now ? performance : Date; -var setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f2) { +var setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function (f2) { setTimeout(f2, 17); }; function now() { @@ -14634,7 +14658,7 @@ function Timer() { } Timer.prototype = timer.prototype = { constructor: Timer, - restart: function(callback, delay, time) { + restart: function (callback, delay, time) { if (typeof callback !== "function") throw new TypeError("callback is not a function"); time = (time == null ? now() : +time) + (delay == null ? 0 : +delay); @@ -14649,7 +14673,7 @@ Timer.prototype = timer.prototype = { this._time = time; sleep(); }, - stop: function() { + stop: function () { if (this._call) { this._call = null; this._time = Infinity; @@ -14813,7 +14837,7 @@ function create(node, id2, self3) { delete schedules[i]; } } - timeout_default(function() { + timeout_default(function () { if (self3.state === STARTED) { self3.state = RUNNING; self3.timer.restart(tick, self3.delay, self3.time); @@ -14876,7 +14900,7 @@ function interrupt_default(node, name) { // node_modules/d3-transition/src/selection/interrupt.js function interrupt_default2(name) { - return this.each(function() { + return this.each(function () { interrupt_default(this, name); }); } @@ -14884,7 +14908,7 @@ function interrupt_default2(name) { // node_modules/d3-transition/src/transition/tween.js function tweenRemove(id2, name) { var tween0, tween1; - return function() { + return function () { var schedule = set2(this, id2), tween = schedule.tween; if (tween !== tween0) { tween1 = tween0 = tween; @@ -14903,7 +14927,7 @@ function tweenFunction(id2, name, value) { var tween0, tween1; if (typeof value !== "function") throw new Error(); - return function() { + return function () { var schedule = set2(this, id2), tween = schedule.tween; if (tween !== tween0) { tween1 = (tween0 = tween).slice(); @@ -14935,11 +14959,11 @@ function tween_default(name, value) { } function tweenValue(transition2, name, value) { var id2 = transition2._id; - transition2.each(function() { + transition2.each(function () { var schedule = set2(this, id2); (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments); }); - return function(node) { + return function (node) { return get2(node, id2).value[name]; }; } @@ -14952,32 +14976,32 @@ function interpolate_default(a2, b) { // node_modules/d3-transition/src/transition/attr.js function attrRemove2(name) { - return function() { + return function () { this.removeAttribute(name); }; } function attrRemoveNS2(fullname) { - return function() { + return function () { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant2(name, interpolate, value1) { var string00, string1 = value1 + "", interpolate0; - return function() { + return function () { var string0 = this.getAttribute(name); return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1); }; } function attrConstantNS2(fullname, interpolate, value1) { var string00, string1 = value1 + "", interpolate0; - return function() { + return function () { var string0 = this.getAttributeNS(fullname.space, fullname.local); return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1); }; } function attrFunction2(name, interpolate, value) { var string00, string10, interpolate0; - return function() { + return function () { var string0, value1 = value(this), string1; if (value1 == null) return void this.removeAttribute(name); @@ -14988,7 +15012,7 @@ function attrFunction2(name, interpolate, value) { } function attrFunctionNS2(fullname, interpolate, value) { var string00, string10, interpolate0; - return function() { + return function () { var string0, value1 = value(this), string1; if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local); @@ -15004,12 +15028,12 @@ function attr_default2(name, value) { // node_modules/d3-transition/src/transition/attrTween.js function attrInterpolate(name, i) { - return function(t2) { + return function (t2) { this.setAttribute(name, i.call(this, t2)); }; } function attrInterpolateNS(fullname, i) { - return function(t2) { + return function (t2) { this.setAttributeNS(fullname.space, fullname.local, i.call(this, t2)); }; } @@ -15049,12 +15073,12 @@ function attrTween_default(name, value) { // node_modules/d3-transition/src/transition/delay.js function delayFunction(id2, value) { - return function() { + return function () { init(this, id2).delay = +value.apply(this, arguments); }; } function delayConstant(id2, value) { - return value = +value, function() { + return value = +value, function () { init(this, id2).delay = value; }; } @@ -15065,12 +15089,12 @@ function delay_default(value) { // node_modules/d3-transition/src/transition/duration.js function durationFunction(id2, value) { - return function() { + return function () { set2(this, id2).duration = +value.apply(this, arguments); }; } function durationConstant(id2, value) { - return value = +value, function() { + return value = +value, function () { set2(this, id2).duration = value; }; } @@ -15083,7 +15107,7 @@ function duration_default(value) { function easeConstant(id2, value) { if (typeof value !== "function") throw new Error(); - return function() { + return function () { set2(this, id2).ease = value; }; } @@ -15094,7 +15118,7 @@ function ease_default(value) { // node_modules/d3-transition/src/transition/easeVarying.js function easeVarying(id2, value) { - return function() { + return function () { var v2 = value.apply(this, arguments); if (typeof v2 !== "function") throw new Error(); @@ -15140,7 +15164,7 @@ function merge_default2(transition2) { // node_modules/d3-transition/src/transition/on.js function start(name) { - return (name + "").trim().split(/^|\s+/).every(function(t2) { + return (name + "").trim().split(/^|\s+/).every(function (t2) { var i = t2.indexOf("."); if (i >= 0) t2 = t2.slice(0, i); @@ -15149,7 +15173,7 @@ function start(name) { } function onFunction(id2, name, listener) { var on0, on1, sit = start(name) ? init : set2; - return function() { + return function () { var schedule = sit(this, id2), on = schedule.on; if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener); @@ -15163,7 +15187,7 @@ function on_default2(name, listener) { // node_modules/d3-transition/src/transition/remove.js function removeFunction(id2) { - return function() { + return function () { var parent = this.parentNode; for (var i in this.__transition) if (+i !== id2) @@ -15224,26 +15248,26 @@ function selection_default2() { // node_modules/d3-transition/src/transition/style.js function styleNull(name, interpolate) { var string00, string10, interpolate0; - return function() { + return function () { var string0 = styleValue(this, name), string1 = (this.style.removeProperty(name), styleValue(this, name)); return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : interpolate0 = interpolate(string00 = string0, string10 = string1); }; } function styleRemove2(name) { - return function() { + return function () { this.style.removeProperty(name); }; } function styleConstant2(name, interpolate, value1) { var string00, string1 = value1 + "", interpolate0; - return function() { + return function () { var string0 = styleValue(this, name); return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1); }; } function styleFunction2(name, interpolate, value) { var string00, string10, interpolate0; - return function() { + return function () { var string0 = styleValue(this, name), value1 = value(this), string1 = value1 + ""; if (value1 == null) string1 = value1 = (this.style.removeProperty(name), styleValue(this, name)); @@ -15252,7 +15276,7 @@ function styleFunction2(name, interpolate, value) { } function styleMaybeRemove(id2, name) { var on0, on1, listener0, key = "style." + name, event = "end." + key, remove2; - return function() { + return function () { var schedule = set2(this, id2), on = schedule.on, listener = schedule.value[key] == null ? remove2 || (remove2 = styleRemove2(name)) : void 0; if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener); @@ -15266,7 +15290,7 @@ function style_default2(name, value, priority) { // node_modules/d3-transition/src/transition/styleTween.js function styleInterpolate(name, i, priority) { - return function(t2) { + return function (t2) { this.style.setProperty(name, i.call(this, t2), priority); }; } @@ -15294,12 +15318,12 @@ function styleTween_default(name, value, priority) { // node_modules/d3-transition/src/transition/text.js function textConstant2(value) { - return function() { + return function () { this.textContent = value; }; } function textFunction2(value) { - return function() { + return function () { var value1 = value(this); this.textContent = value1 == null ? "" : value1; }; @@ -15310,7 +15334,7 @@ function text_default2(value) { // node_modules/d3-transition/src/transition/textTween.js function textInterpolate(i) { - return function(t2) { + return function (t2) { this.textContent = i.call(this, t2); }; } @@ -15358,12 +15382,14 @@ function transition_default() { // node_modules/d3-transition/src/transition/end.js function end_default() { var on0, on1, that = this, id2 = that._id, size = that.size(); - return new Promise(function(resolve, reject) { - var cancel = { value: reject }, end = { value: function() { - if (--size === 0) - resolve(); - } }; - that.each(function() { + return new Promise(function (resolve, reject) { + var cancel = { value: reject }, end = { + value: function () { + if (--size === 0) + resolve(); + } + }; + that.each(function () { var schedule = set2(this, id2), on = schedule.on; if (on !== on0) { on1 = (on0 = on).copy(); @@ -15478,30 +15504,30 @@ function number2(e3) { var X = { name: "x", handles: ["w", "e"].map(type), - input: function(x2, e3) { + input: function (x2, e3) { return x2 == null ? null : [[+x2[0], e3[0][1]], [+x2[1], e3[1][1]]]; }, - output: function(xy) { + output: function (xy) { return xy && [xy[0][0], xy[1][0]]; } }; var Y = { name: "y", handles: ["n", "s"].map(type), - input: function(y3, e3) { + input: function (y3, e3) { return y3 == null ? null : [[e3[0][0], +y3[0]], [e3[1][0], +y3[1]]]; }, - output: function(xy) { + output: function (xy) { return xy && [xy[0][1], xy[1][1]]; } }; var XY = { name: "xy", handles: ["n", "w", "e", "s", "nw", "ne", "sw", "se"].map(type), - input: function(xy) { + input: function (xy) { return xy == null ? null : number2(xy); }, - output: function(xy) { + output: function (xy) { return xy; } }; @@ -15615,7 +15641,7 @@ function cover_default(x2, y3) { // node_modules/d3-quadtree/src/data.js function data_default2() { var data = []; - this.visit(function(node) { + this.visit(function (node) { if (!node.length) do data.push(node.data); @@ -15730,7 +15756,7 @@ function root_default() { // node_modules/d3-quadtree/src/size.js function size_default2() { var size = 0; - this.visit(function(node) { + this.visit(function (node) { if (!node.length) do ++size; @@ -15823,7 +15849,7 @@ function leaf_copy(leaf) { return copy2; } var treeProto = quadtree.prototype = Quadtree.prototype; -treeProto.copy = function() { +treeProto.copy = function () { var copy2 = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child; if (!node) return copy2; @@ -15859,7 +15885,7 @@ treeProto.y = y_default; // node_modules/d3-force/src/constant.js function constant_default4(x2) { - return function() { + return function () { return x2; }; } @@ -15931,18 +15957,18 @@ function collide_default(radius) { for (i = 0; i < n2; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes); } - force.initialize = function(_nodes, _random) { + force.initialize = function (_nodes, _random) { nodes = _nodes; random = _random; initialize(); }; - force.iterations = function(_10) { + force.iterations = function (_10) { return arguments.length ? (iterations = +_10, force) : iterations; }; - force.strength = function(_10) { + force.strength = function (_10) { return arguments.length ? (strength = +_10, force) : strength; }; - force.radius = function(_10) { + force.radius = function (_10) { return arguments.length ? (radius = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : radius; }; return force; @@ -15978,7 +16004,7 @@ function simulation_default(nodes) { iterations = 1; for (var k = 0; k < iterations; ++k) { alpha += (alphaTarget - alpha) * alphaDecay; - forces.forEach(function(force) { + forces.forEach(function (force) { force(alpha); }); for (i = 0; i < n2; ++i) { @@ -16020,37 +16046,37 @@ function simulation_default(nodes) { initializeNodes(); return simulation = { tick, - restart: function() { + restart: function () { return stepper.restart(step), simulation; }, - stop: function() { + stop: function () { return stepper.stop(), simulation; }, - nodes: function(_10) { + nodes: function (_10) { return arguments.length ? (nodes = _10, initializeNodes(), forces.forEach(initializeForce), simulation) : nodes; }, - alpha: function(_10) { + alpha: function (_10) { return arguments.length ? (alpha = +_10, simulation) : alpha; }, - alphaMin: function(_10) { + alphaMin: function (_10) { return arguments.length ? (alphaMin = +_10, simulation) : alphaMin; }, - alphaDecay: function(_10) { + alphaDecay: function (_10) { return arguments.length ? (alphaDecay = +_10, simulation) : +alphaDecay; }, - alphaTarget: function(_10) { + alphaTarget: function (_10) { return arguments.length ? (alphaTarget = +_10, simulation) : alphaTarget; }, - velocityDecay: function(_10) { + velocityDecay: function (_10) { return arguments.length ? (velocityDecay = 1 - _10, simulation) : 1 - velocityDecay; }, - randomSource: function(_10) { + randomSource: function (_10) { return arguments.length ? (random = _10, forces.forEach(initializeForce), simulation) : random; }, - force: function(name, _10) { + force: function (name, _10) { return arguments.length > 1 ? (_10 == null ? forces.delete(name) : forces.set(name, initializeForce(_10)), simulation) : forces.get(name); }, - find: function(x2, y3, radius) { + find: function (x2, y3, radius) { var i = 0, n2 = nodes.length, dx, dy, d2, node, closest; if (radius == null) radius = Infinity; @@ -16066,7 +16092,7 @@ function simulation_default(nodes) { } return closest; }, - on: function(name, _10) { + on: function (name, _10) { return arguments.length > 1 ? (event.on(name, _10), simulation) : event.on(name); } }; @@ -16092,14 +16118,14 @@ function x_default2(x2) { strengths[i] = isNaN(xz[i] = +x2(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); } } - force.initialize = function(_10) { + force.initialize = function (_10) { nodes = _10; initialize(); }; - force.strength = function(_10) { + force.strength = function (_10) { return arguments.length ? (strength = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : strength; }; - force.x = function(_10) { + force.x = function (_10) { return arguments.length ? (x2 = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : x2; }; return force; @@ -16125,14 +16151,14 @@ function y_default2(y3) { strengths[i] = isNaN(yz[i] = +y3(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); } } - force.initialize = function(_10) { + force.initialize = function (_10) { nodes = _10; initialize(); }; - force.strength = function(_10) { + force.strength = function (_10) { return arguments.length ? (strength = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : strength; }; - force.y = function(_10) { + force.y = function (_10) { return arguments.length ? (y3 = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : y3; }; return force; @@ -16159,7 +16185,7 @@ function exponent_default(x2) { // node_modules/d3-format/src/formatGroup.js function formatGroup_default(grouping, thousands) { - return function(value, width2) { + return function (value, width2) { var i = value.length, t2 = [], j3 = 0, g2 = grouping[0], length = 0; while (i > 0 && g2 > 0) { if (length + g2 + 1 > width2) @@ -16175,8 +16201,8 @@ function formatGroup_default(grouping, thousands) { // node_modules/d3-format/src/formatNumerals.js function formatNumerals_default(numerals) { - return function(value) { - return value.replace(/[0-9]/g, function(i) { + return function (value) { + return value.replace(/[0-9]/g, function (i) { return numerals[+i]; }); }; @@ -16214,31 +16240,31 @@ function FormatSpecifier(specifier) { this.trim = !!specifier.trim; this.type = specifier.type === void 0 ? "" : specifier.type + ""; } -FormatSpecifier.prototype.toString = function() { +FormatSpecifier.prototype.toString = function () { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; // node_modules/d3-format/src/formatTrim.js function formatTrim_default(s) { out: - for (var n2 = s.length, i = 1, i0 = -1, i1; i < n2; ++i) { - switch (s[i]) { - case ".": - i0 = i1 = i; - break; - case "0": - if (i0 === 0) - i0 = i; - i1 = i; - break; - default: - if (!+s[i]) - break out; - if (i0 > 0) - i0 = 0; - break; - } + for (var n2 = s.length, i = 1, i0 = -1, i1; i < n2; ++i) { + switch (s[i]) { + case ".": + i0 = i1 = i; + break; + case "0": + if (i0 === 0) + i0 = i; + i1 = i; + break; + default: + if (!+s[i]) + break out; + if (i0 > 0) + i0 = 0; + break; } + } return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s; } @@ -16347,14 +16373,14 @@ function locale_default(locale3) { } return numerals(value); } - format2.toString = function() { + format2.toString = function () { return specifier + ""; }; return format2; } function formatPrefix2(specifier, value) { var f2 = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), e3 = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e3), prefix = prefixes[8 + e3 / 3]; - return function(value2) { + return function (value2) { return f2(k * value2) + prefix; }; } @@ -16462,7 +16488,7 @@ function find_default2(callback, that) { // node_modules/d3-hierarchy/src/hierarchy/sum.js function sum_default(value) { - return this.eachAfter(function(node) { + return this.eachAfter(function (node) { var sum = +value(node.data) || 0, children2 = node.children, i = children2 && children2.length; while (--i >= 0) sum += children2[i].value; @@ -16472,7 +16498,7 @@ function sum_default(value) { // node_modules/d3-hierarchy/src/hierarchy/sort.js function sort_default2(compare) { - return this.eachBefore(function(node) { + return this.eachBefore(function (node) { if (node.children) { node.children.sort(compare); } @@ -16524,7 +16550,7 @@ function descendants_default() { // node_modules/d3-hierarchy/src/hierarchy/leaves.js function leaves_default() { var leaves = []; - this.eachBefore(function(node) { + this.eachBefore(function (node) { if (!node.children) { leaves.push(node); } @@ -16535,7 +16561,7 @@ function leaves_default() { // node_modules/d3-hierarchy/src/hierarchy/links.js function links_default() { var root2 = this, links = []; - root2.each(function(node) { + root2.each(function (node) { if (node !== root2) { links.push({ source: node.parent, target: node }); } @@ -16770,33 +16796,33 @@ function packEnclose(circles) { b.next = a2.previous = c3; c3.next = b.previous = a2; pack: - for (i = 3; i < n2; ++i) { - place(a2._, b._, c3 = circles[i]), c3 = new Node2(c3); - j3 = b.next, k = a2.previous, sj2 = b._.r, sk = a2._.r; - do { - if (sj2 <= sk) { - if (intersects(j3._, c3._)) { - b = j3, a2.next = b, b.previous = a2, --i; - continue pack; - } - sj2 += j3._.r, j3 = j3.next; - } else { - if (intersects(k._, c3._)) { - a2 = k, a2.next = b, b.previous = a2, --i; - continue pack; - } - sk += k._.r, k = k.previous; - } - } while (j3 !== k.next); - c3.previous = a2, c3.next = b, a2.next = b.previous = b = c3; - aa = score(a2); - while ((c3 = c3.next) !== b) { - if ((ca = score(c3)) < aa) { - a2 = c3, aa = ca; + for (i = 3; i < n2; ++i) { + place(a2._, b._, c3 = circles[i]), c3 = new Node2(c3); + j3 = b.next, k = a2.previous, sj2 = b._.r, sk = a2._.r; + do { + if (sj2 <= sk) { + if (intersects(j3._, c3._)) { + b = j3, a2.next = b, b.previous = a2, --i; + continue pack; + } + sj2 += j3._.r, j3 = j3.next; + } else { + if (intersects(k._, c3._)) { + a2 = k, a2.next = b, b.previous = a2, --i; + continue pack; } + sk += k._.r, k = k.previous; + } + } while (j3 !== k.next); + c3.previous = a2, c3.next = b, a2.next = b.previous = b = c3; + aa = score(a2); + while ((c3 = c3.next) !== b) { + if ((ca = score(c3)) < aa) { + a2 = c3, aa = ca; } - b = a2.next; } + b = a2.next; + } a2 = [b._], c3 = b; while ((c3 = c3.next) !== b) a2.push(c3._); @@ -16821,7 +16847,7 @@ function constantZero() { return 0; } function constant_default5(x2) { - return function() { + return function () { return x2; }; } @@ -16841,26 +16867,26 @@ function pack_default() { } return root2; } - pack.radius = function(x2) { + pack.radius = function (x2) { return arguments.length ? (radius = optional(x2), pack) : radius; }; - pack.size = function(x2) { + pack.size = function (x2) { return arguments.length ? (dx = +x2[0], dy = +x2[1], pack) : [dx, dy]; }; - pack.padding = function(x2) { + pack.padding = function (x2) { return arguments.length ? (padding = typeof x2 === "function" ? x2 : constant_default5(+x2), pack) : padding; }; return pack; } function radiusLeaf(radius) { - return function(node) { + return function (node) { if (!node.children) { node.r = Math.max(0, +radius(node) || 0); } }; } function packChildren(padding, k) { - return function(node) { + return function (node) { if (children2 = node.children) { var children2, i, n2 = children2.length, r4 = padding(node) * k || 0, e3; if (r4) @@ -16875,7 +16901,7 @@ function packChildren(padding, k) { }; } function translateChild(k) { - return function(node) { + return function (node) { var parent = node.parent; node.r *= k; if (parent) { @@ -16902,7 +16928,7 @@ function initRange(domain, range) { // node_modules/d3-scale/src/constant.js function constants(x2) { - return function() { + return function () { return x2; }; } @@ -16918,7 +16944,7 @@ function identity2(x2) { return x2; } function normalize(a2, b) { - return (b -= a2 = +a2) ? function(x2) { + return (b -= a2 = +a2) ? function (x2) { return (x2 - a2) / b; } : constants(isNaN(b) ? NaN : 0.5); } @@ -16926,7 +16952,7 @@ function clamper(a2, b) { var t2; if (a2 > b) t2 = a2, a2 = b, b = t2; - return function(x2) { + return function (x2) { return Math.max(a2, Math.min(b, x2)); }; } @@ -16936,7 +16962,7 @@ function bimap(domain, range, interpolate) { d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else d0 = normalize(d0, d1), r0 = interpolate(r0, r1); - return function(x2) { + return function (x2) { return r0(d0(x2)); }; } @@ -16950,7 +16976,7 @@ function polymap(domain, range, interpolate) { d2[i] = normalize(domain[i], domain[i + 1]); r4[i] = interpolate(range[i], range[i + 1]); } - return function(x2) { + return function (x2) { var i2 = bisect_default(domain, x2, 1, j3) - 1; return r4[i2](d2[i2](x2)); }; @@ -16971,28 +16997,28 @@ function transformer() { function scale(x2) { return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range, interpolate)))(transform2(clamp(x2))); } - scale.invert = function(y3) { + scale.invert = function (y3) { return clamp(untransform((input || (input = piecewise(range, domain.map(transform2), number_default2)))(y3))); }; - scale.domain = function(_10) { + scale.domain = function (_10) { return arguments.length ? (domain = Array.from(_10, number), rescale()) : domain.slice(); }; - scale.range = function(_10) { + scale.range = function (_10) { return arguments.length ? (range = Array.from(_10), rescale()) : range.slice(); }; - scale.rangeRound = function(_10) { + scale.rangeRound = function (_10) { return range = Array.from(_10), interpolate = round_default, rescale(); }; - scale.clamp = function(_10) { + scale.clamp = function (_10) { return arguments.length ? (clamp = _10 ? true : identity2, rescale()) : clamp !== identity2; }; - scale.interpolate = function(_10) { + scale.interpolate = function (_10) { return arguments.length ? (interpolate = _10, rescale()) : interpolate; }; - scale.unknown = function(_10) { + scale.unknown = function (_10) { return arguments.length ? (unknown = _10, scale) : unknown; }; - return function(t2, u) { + return function (t2, u) { transform2 = t2, untransform = u; return rescale(); }; @@ -17034,15 +17060,15 @@ function tickFormat(start2, stop, count2, specifier) { // node_modules/d3-scale/src/linear.js function linearish(scale) { var domain = scale.domain; - scale.ticks = function(count2) { + scale.ticks = function (count2) { var d2 = domain(); return ticks_default(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); }; - scale.tickFormat = function(count2, specifier) { + scale.tickFormat = function (count2, specifier) { var d2 = domain(); return tickFormat(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2, specifier); }; - scale.nice = function(count2) { + scale.nice = function (count2) { if (count2 == null) count2 = 10; var d2 = domain(); @@ -17080,7 +17106,7 @@ function linearish(scale) { } function linear2() { var scale = continuous(); - scale.copy = function() { + scale.copy = function () { return copy(scale, linear2()); }; initRange.apply(scale, arguments); @@ -17089,7 +17115,7 @@ function linear2() { // node_modules/d3-scale/src/pow.js function transformPow(exponent) { - return function(x2) { + return function (x2) { return x2 < 0 ? -Math.pow(-x2, exponent) : Math.pow(x2, exponent); }; } @@ -17104,14 +17130,14 @@ function powish(transform2) { function rescale() { return exponent === 1 ? transform2(identity2, identity2) : exponent === 0.5 ? transform2(transformSqrt, transformSquare) : transform2(transformPow(exponent), transformPow(1 / exponent)); } - scale.exponent = function(_10) { + scale.exponent = function (_10) { return arguments.length ? (exponent = +_10, rescale()) : exponent; }; return linearish(scale); } function pow() { var scale = powish(transformer()); - scale.copy = function() { + scale.copy = function () { return copy(scale, pow()).exponent(scale.exponent()); }; initRange.apply(scale, arguments); @@ -17128,20 +17154,20 @@ function newInterval(floori, offseti, count2, field) { function interval2(date) { return floori(date = arguments.length === 0 ? new Date() : new Date(+date)), date; } - interval2.floor = function(date) { + interval2.floor = function (date) { return floori(date = new Date(+date)), date; }; - interval2.ceil = function(date) { + interval2.ceil = function (date) { return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; }; - interval2.round = function(date) { + interval2.round = function (date) { var d0 = interval2(date), d1 = interval2.ceil(date); return date - d0 < d1 - date ? d0 : d1; }; - interval2.offset = function(date, step) { + interval2.offset = function (date, step) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; - interval2.range = function(start2, stop, step) { + interval2.range = function (start2, stop, step) { var range = [], previous; start2 = interval2.ceil(start2); step = step == null ? 1 : Math.floor(step); @@ -17152,12 +17178,12 @@ function newInterval(floori, offseti, count2, field) { while (previous < start2 && start2 < stop); return range; }; - interval2.filter = function(test) { - return newInterval(function(date) { + interval2.filter = function (test) { + return newInterval(function (date) { if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1); - }, function(date, step) { + }, function (date, step) { if (date >= date) { if (step < 0) while (++step <= 0) { @@ -17173,16 +17199,16 @@ function newInterval(floori, offseti, count2, field) { }); }; if (count2) { - interval2.count = function(start2, end) { + interval2.count = function (start2, end) { t0.setTime(+start2), t1.setTime(+end); floori(t0), floori(t1); return Math.floor(count2(t0, t1)); }; - interval2.every = function(step) { + interval2.every = function (step) { step = Math.floor(step); - return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval2 : interval2.filter(field ? function(d2) { + return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval2 : interval2.filter(field ? function (d2) { return field(d2) % step === 0; - } : function(d2) { + } : function (d2) { return interval2.count(0, d2) % step === 0; }); }; @@ -17206,12 +17232,12 @@ var days = day.range; // node_modules/d3-time/src/week.js function weekday(i) { - return newInterval(function(date) { + return newInterval(function (date) { date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); date.setHours(0, 0, 0, 0); - }, function(date, step) { + }, function (date, step) { date.setDate(date.getDate() + step * 7); - }, function(start2, end) { + }, function (start2, end) { return (end - start2 - (end.getTimezoneOffset() - start2.getTimezoneOffset()) * durationMinute) / durationWeek; }); } @@ -17231,22 +17257,22 @@ var fridays = friday.range; var saturdays = saturday.range; // node_modules/d3-time/src/year.js -var year = newInterval(function(date) { +var year = newInterval(function (date) { date.setMonth(0, 1); date.setHours(0, 0, 0, 0); -}, function(date, step) { +}, function (date, step) { date.setFullYear(date.getFullYear() + step); -}, function(start2, end) { +}, function (start2, end) { return end.getFullYear() - start2.getFullYear(); -}, function(date) { +}, function (date) { return date.getFullYear(); }); -year.every = function(k) { - return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) { +year.every = function (k) { + return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function (date) { date.setFullYear(Math.floor(date.getFullYear() / k) * k); date.setMonth(0, 1); date.setHours(0, 0, 0, 0); - }, function(date, step) { + }, function (date, step) { date.setFullYear(date.getFullYear() + step * k); }); }; @@ -17254,13 +17280,13 @@ var year_default = year; var years = year.range; // node_modules/d3-time/src/utcDay.js -var utcDay = newInterval(function(date) { +var utcDay = newInterval(function (date) { date.setUTCHours(0, 0, 0, 0); -}, function(date, step) { +}, function (date, step) { date.setUTCDate(date.getUTCDate() + step); -}, function(start2, end) { +}, function (start2, end) { return (end - start2) / durationDay; -}, function(date) { +}, function (date) { return date.getUTCDate() - 1; }); var utcDay_default = utcDay; @@ -17268,12 +17294,12 @@ var utcDays = utcDay.range; // node_modules/d3-time/src/utcWeek.js function utcWeekday(i) { - return newInterval(function(date) { + return newInterval(function (date) { date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); date.setUTCHours(0, 0, 0, 0); - }, function(date, step) { + }, function (date, step) { date.setUTCDate(date.getUTCDate() + step * 7); - }, function(start2, end) { + }, function (start2, end) { return (end - start2) / durationWeek; }); } @@ -17293,22 +17319,22 @@ var utcFridays = utcFriday.range; var utcSaturdays = utcSaturday.range; // node_modules/d3-time/src/utcYear.js -var utcYear = newInterval(function(date) { +var utcYear = newInterval(function (date) { date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); -}, function(date, step) { +}, function (date, step) { date.setUTCFullYear(date.getUTCFullYear() + step); -}, function(start2, end) { +}, function (start2, end) { return end.getUTCFullYear() - start2.getUTCFullYear(); -}, function(date) { +}, function (date) { return date.getUTCFullYear(); }); -utcYear.every = function(k) { - return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) { +utcYear.every = function (k) { + return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function (date) { date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); - }, function(date, step) { + }, function (date, step) { date.setUTCFullYear(date.getUTCFullYear() + step * k); }); }; @@ -17447,7 +17473,7 @@ function formatLocale(locale3) { utcFormats.X = newFormat(locale_time, utcFormats); utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats2) { - return function(date) { + return function (date) { var string = [], i = -1, j3 = 0, n2 = specifier.length, c3, pad2, format2; if (!(date instanceof Date)) date = new Date(+date); @@ -17469,7 +17495,7 @@ function formatLocale(locale3) { }; } function newParse(specifier, Z) { - return function(string) { + return function (string) { var d2 = newDate(1900, void 0, 1), i = parseSpecifier(d2, specifier, string += "", 0), week, day2; if (i != string.length) return null; @@ -17601,30 +17627,30 @@ function formatLocale(locale3) { return 1 + ~~(d2.getUTCMonth() / 3); } return { - format: function(specifier) { + format: function (specifier) { var f2 = newFormat(specifier += "", formats); - f2.toString = function() { + f2.toString = function () { return specifier; }; return f2; }, - parse: function(specifier) { + parse: function (specifier) { var p2 = newParse(specifier += "", false); - p2.toString = function() { + p2.toString = function () { return specifier; }; return p2; }, - utcFormat: function(specifier) { + utcFormat: function (specifier) { var f2 = newFormat(specifier += "", utcFormats); - f2.toString = function() { + f2.toString = function () { return specifier; }; return f2; }, - utcParse: function(specifier) { + utcParse: function (specifier) { var p2 = newParse(specifier += "", true); - p2.toString = function() { + p2.toString = function () { return specifier; }; return p2; @@ -17904,37 +17930,37 @@ function Transform(k, x2, y3) { } Transform.prototype = { constructor: Transform, - scale: function(k) { + scale: function (k) { return k === 1 ? this : new Transform(this.k * k, this.x, this.y); }, - translate: function(x2, y3) { + translate: function (x2, y3) { return x2 === 0 & y3 === 0 ? this : new Transform(this.k, this.x + this.k * x2, this.y + this.k * y3); }, - apply: function(point) { + apply: function (point) { return [point[0] * this.k + this.x, point[1] * this.k + this.y]; }, - applyX: function(x2) { + applyX: function (x2) { return x2 * this.k + this.x; }, - applyY: function(y3) { + applyY: function (y3) { return y3 * this.k + this.y; }, - invert: function(location) { + invert: function (location) { return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k]; }, - invertX: function(x2) { + invertX: function (x2) { return (x2 - this.x) / this.k; }, - invertY: function(y3) { + invertY: function (y3) { return (y3 - this.y) / this.k; }, - rescaleX: function(x2) { + rescaleX: function (x2) { return x2.copy().domain(x2.range().map(this.invertX, this).map(x2.invert, x2)); }, - rescaleY: function(y3) { + rescaleY: function (y3) { return y3.copy().domain(y3.range().map(this.invertY, this).map(y3.invert, y3)); }, - toString: function() { + toString: function () { return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")"; } }; @@ -20139,8 +20165,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) = const cachedOrders = (0, import_react2.useRef)({}); const { colorScale, colorExtent } = (0, import_react2.useMemo)(() => { if (!data) - return { colorScale: () => { - }, colorExtent: [0, 0] }; + return { + colorScale: () => { + }, colorExtent: [0, 0] + }; const flattenTree = (d2) => { return d2.children ? (0, import_flatten.default)(d2.children.map(flattenTree)) : d2; }; @@ -20641,11 +20669,11 @@ function execWithOutput(command2, args) { try { (0, import_exec.exec)(command2, args, { listeners: { - stdout: function(res2) { + stdout: function (res2) { core.info(res2.toString()); resolve(res2.toString()); }, - stderr: function(res2) { + stderr: function (res2) { core.info(res2.toString()); reject(res2.toString()); } diff --git a/src/should-exclude-path.ts b/src/should-exclude-path.ts index 12b1e55..9707189 100644 --- a/src/should-exclude-path.ts +++ b/src/should-exclude-path.ts @@ -7,5 +7,5 @@ import { isMatch } from 'micromatch'; export const shouldExcludePath = (path: string, pathsToIgnore: Set, globsToIgnore: string[]): boolean => { if (!path) return false - return pathsToIgnore.has(path) || globsToIgnore.some(glob => isMatch(path, glob)); + return pathsToIgnore.has(path) || globsToIgnore.some(glob => !glob || isMatch(path, glob)); } From 35d3bd09ed7000ac824acb671d041d368cd782e1 Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:34:48 -0400 Subject: [PATCH 12/46] dont exclude paths on empty glob --- index.js | 1396 ++++++++++++++++++------------------ src/should-exclude-path.ts | 2 +- 2 files changed, 685 insertions(+), 713 deletions(-) diff --git a/index.js b/index.js index 90beb8a..ac7c1b5 100644 --- a/index.js +++ b/index.js @@ -24,25 +24,23 @@ var __toModule = (module2) => { var require_io_util = __commonJS({ "node_modules/@actions/io/lib/io-util.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { - enumerable: true, get: function () { - return m4[k]; - } - }); - } : function (o, m4, k, k2) { + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function (o, v2) { + } : function(o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function (mod2) { + var __importStar = exports2 && exports2.__importStar || function(mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -54,13 +52,13 @@ var require_io_util = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function (resolve) { + return value instanceof P ? value : new P(function(resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -202,25 +200,23 @@ var require_io_util = __commonJS({ var require_io = __commonJS({ "node_modules/@actions/io/lib/io.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { - enumerable: true, get: function () { - return m4[k]; - } - }); - } : function (o, m4, k, k2) { + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function (o, v2) { + } : function(o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function (mod2) { + var __importStar = exports2 && exports2.__importStar || function(mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -232,13 +228,13 @@ var require_io = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function (resolve) { + return value instanceof P ? value : new P(function(resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -486,25 +482,23 @@ var require_io = __commonJS({ var require_toolrunner = __commonJS({ "node_modules/@actions/exec/lib/toolrunner.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { - enumerable: true, get: function () { - return m4[k]; - } - }); - } : function (o, m4, k, k2) { + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function (o, v2) { + } : function(o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function (mod2) { + var __importStar = exports2 && exports2.__importStar || function(mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -516,13 +510,13 @@ var require_toolrunner = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function (resolve) { + return value instanceof P ? value : new P(function(resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -968,25 +962,23 @@ var require_toolrunner = __commonJS({ var require_exec = __commonJS({ "node_modules/@actions/exec/lib/exec.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { - enumerable: true, get: function () { - return m4[k]; - } - }); - } : function (o, m4, k, k2) { + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function (o, v2) { + } : function(o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function (mod2) { + var __importStar = exports2 && exports2.__importStar || function(mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -998,13 +990,13 @@ var require_exec = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function (resolve) { + return value instanceof P ? value : new P(function(resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -1100,25 +1092,23 @@ var require_utils = __commonJS({ var require_command = __commonJS({ "node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { - enumerable: true, get: function () { - return m4[k]; - } - }); - } : function (o, m4, k, k2) { + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function (o, v2) { + } : function(o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function (mod2) { + var __importStar = exports2 && exports2.__importStar || function(mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -1189,25 +1179,23 @@ var require_command = __commonJS({ var require_file_command = __commonJS({ "node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { - enumerable: true, get: function () { - return m4[k]; - } - }); - } : function (o, m4, k, k2) { + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function (o, v2) { + } : function(o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function (mod2) { + var __importStar = exports2 && exports2.__importStar || function(mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -1244,25 +1232,23 @@ var require_file_command = __commonJS({ var require_core = __commonJS({ "node_modules/@actions/core/lib/core.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function (o, m4, k, k2) { + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) k2 = k; - Object.defineProperty(o, k2, { - enumerable: true, get: function () { - return m4[k]; - } - }); - } : function (o, m4, k, k2) { + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m4[k]; }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function (o, v2) { + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function (o, v2) { + } : function(o, v2) { o["default"] = v2; }); - var __importStar = exports2 && exports2.__importStar || function (mod2) { + var __importStar = exports2 && exports2.__importStar || function(mod2) { if (mod2 && mod2.__esModule) return mod2; var result = {}; @@ -1274,13 +1260,13 @@ var require_core = __commonJS({ __setModuleDefault(result, mod2); return result; }; - var __awaiter = exports2 && exports2.__awaiter || function (thisArg, _arguments, P, generator) { + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { - return value instanceof P ? value : new P(function (resolve) { + return value instanceof P ? value : new P(function(resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { + return new (P || (P = Promise))(function(resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); @@ -1309,7 +1295,7 @@ var require_core = __commonJS({ var os2 = __importStar(require("os")); var path = __importStar(require("path")); var ExitCode; - (function (ExitCode2) { + (function(ExitCode2) { ExitCode2[ExitCode2["Success"] = 0] = "Success"; ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); @@ -1461,14 +1447,14 @@ var require_object_assign = __commonJS({ for (var i = 0; i < 10; i++) { test2["_" + String.fromCharCode(i)] = i; } - var order2 = Object.getOwnPropertyNames(test2).map(function (n2) { + var order2 = Object.getOwnPropertyNames(test2).map(function(n2) { return test2[n2]; }); if (order2.join("") !== "0123456789") { return false; } var test3 = {}; - "abcdefghijklmnopqrst".split("").forEach(function (letter) { + "abcdefghijklmnopqrst".split("").forEach(function(letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { @@ -1479,7 +1465,7 @@ var require_object_assign = __commonJS({ return false; } } - module2.exports = shouldUseNative() ? Object.assign : function (target, source) { + module2.exports = shouldUseNative() ? Object.assign : function(target, source) { var from; var to = toObject(target); var symbols; @@ -1547,14 +1533,12 @@ var require_react_production_min = __commonJS({ b += "&args[]=" + encodeURIComponent(arguments[c3]); return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - var A = { - isMounted: function () { - return false; - }, enqueueForceUpdate: function () { - }, enqueueReplaceState: function () { - }, enqueueSetState: function () { - } - }; + var A = { isMounted: function() { + return false; + }, enqueueForceUpdate: function() { + }, enqueueReplaceState: function() { + }, enqueueSetState: function() { + } }; var B = {}; function C(a2, b, c3) { this.props = a2; @@ -1563,12 +1547,12 @@ var require_react_production_min = __commonJS({ this.updater = c3 || A; } C.prototype.isReactComponent = {}; - C.prototype.setState = function (a2, b) { + C.prototype.setState = function(a2, b) { if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null) throw Error(z(85)); this.updater.enqueueSetState(this, a2, b, "setState"); }; - C.prototype.forceUpdate = function (a2) { + C.prototype.forceUpdate = function(a2) { this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); }; function D() { @@ -1613,7 +1597,7 @@ var require_react_production_min = __commonJS({ } function escape(a2) { var b = { "=": "=0", ":": "=2" }; - return "$" + a2.replace(/[=:]/g, function (a3) { + return "$" + a2.replace(/[=:]/g, function(a3) { return b[a3]; }); } @@ -1642,7 +1626,7 @@ var require_react_production_min = __commonJS({ } } if (h2) - return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function (a3) { + return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function(a3) { return a3; })) : d2 != null && (L(d2) && (d2 = K(d2, c3 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a2)), b.push(d2)), 1; h2 = 0; @@ -1654,7 +1638,7 @@ var require_react_production_min = __commonJS({ h2 += O(k, b, c3, f2, d2); } else if (f2 = y3(a2), typeof f2 === "function") - for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done;) + for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done; ) k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c3, f2, d2); else if (k === "object") throw b = "" + a2, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b)); @@ -1664,7 +1648,7 @@ var require_react_production_min = __commonJS({ if (a2 == null) return a2; var e3 = [], d2 = 0; - O(a2, e3, "", "", function (a3) { + O(a2, e3, "", "", function(a3) { return b.call(c3, a3, d2++); }); return e3; @@ -1675,9 +1659,9 @@ var require_react_production_min = __commonJS({ b = b(); a2._status = 0; a2._result = b; - b.then(function (b2) { + b.then(function(b2) { a2._status === 0 && (b2 = b2.default, a2._status = 1, a2._result = b2); - }, function (b2) { + }, function(b2) { a2._status === 0 && (a2._status = 2, a2._result = b2); }); } @@ -1693,31 +1677,29 @@ var require_react_production_min = __commonJS({ return a2; } var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l2 }; - exports2.Children = { - map: P, forEach: function (a2, b, c3) { - P(a2, function () { - b.apply(this, arguments); - }, c3); - }, count: function (a2) { - var b = 0; - P(a2, function () { - b++; - }); - return b; - }, toArray: function (a2) { - return P(a2, function (a3) { - return a3; - }) || []; - }, only: function (a2) { - if (!L(a2)) - throw Error(z(143)); - return a2; - } - }; + exports2.Children = { map: P, forEach: function(a2, b, c3) { + P(a2, function() { + b.apply(this, arguments); + }, c3); + }, count: function(a2) { + var b = 0; + P(a2, function() { + b++; + }); + return b; + }, toArray: function(a2) { + return P(a2, function(a3) { + return a3; + }) || []; + }, only: function(a2) { + if (!L(a2)) + throw Error(z(143)); + return a2; + } }; exports2.Component = C; exports2.PureComponent = E2; exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T; - exports2.cloneElement = function (a2, b, c3) { + exports2.cloneElement = function(a2, b, c3) { if (a2 === null || a2 === void 0) throw Error(z(267, a2)); var e3 = l2({}, a2.props), d2 = a2.key, k = a2.ref, h2 = a2._owner; @@ -1747,58 +1729,58 @@ var require_react_production_min = __commonJS({ _owner: h2 }; }; - exports2.createContext = function (a2, b) { + exports2.createContext = function(a2, b) { b === void 0 && (b = null); a2 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null }; a2.Provider = { $$typeof: q2, _context: a2 }; return a2.Consumer = a2; }; exports2.createElement = J; - exports2.createFactory = function (a2) { + exports2.createFactory = function(a2) { var b = J.bind(null, a2); b.type = a2; return b; }; - exports2.createRef = function () { + exports2.createRef = function() { return { current: null }; }; - exports2.forwardRef = function (a2) { + exports2.forwardRef = function(a2) { return { $$typeof: t2, render: a2 }; }; exports2.isValidElement = L; - exports2.lazy = function (a2) { + exports2.lazy = function(a2) { return { $$typeof: v2, _payload: { _status: -1, _result: a2 }, _init: Q }; }; - exports2.memo = function (a2, b) { + exports2.memo = function(a2, b) { return { $$typeof: u, type: a2, compare: b === void 0 ? null : b }; }; - exports2.useCallback = function (a2, b) { + exports2.useCallback = function(a2, b) { return S().useCallback(a2, b); }; - exports2.useContext = function (a2, b) { + exports2.useContext = function(a2, b) { return S().useContext(a2, b); }; - exports2.useDebugValue = function () { + exports2.useDebugValue = function() { }; - exports2.useEffect = function (a2, b) { + exports2.useEffect = function(a2, b) { return S().useEffect(a2, b); }; - exports2.useImperativeHandle = function (a2, b, c3) { + exports2.useImperativeHandle = function(a2, b, c3) { return S().useImperativeHandle(a2, b, c3); }; - exports2.useLayoutEffect = function (a2, b) { + exports2.useLayoutEffect = function(a2, b) { return S().useLayoutEffect(a2, b); }; - exports2.useMemo = function (a2, b) { + exports2.useMemo = function(a2, b) { return S().useMemo(a2, b); }; - exports2.useReducer = function (a2, b, c3) { + exports2.useReducer = function(a2, b, c3) { return S().useReducer(a2, b, c3); }; - exports2.useRef = function (a2) { + exports2.useRef = function(a2) { return S().useRef(a2); }; - exports2.useState = function (a2) { + exports2.useState = function(a2) { return S().useState(a2); }; exports2.version = "17.0.2"; @@ -1810,7 +1792,7 @@ var require_react_development = __commonJS({ "node_modules/react/cjs/react.development.js"(exports2) { "use strict"; if (process.env.NODE_ENV !== "production") { - (function () { + (function() { "use strict"; var _assign = require_object_assign(); var ReactVersion = "17.0.2"; @@ -1886,13 +1868,13 @@ var require_react_development = __commonJS({ } } { - ReactDebugCurrentFrame.setExtraStackFrame = function (stack) { + ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { { currentExtraStackFrame = stack; } }; ReactDebugCurrentFrame.getCurrentStack = null; - ReactDebugCurrentFrame.getStackAddendum = function () { + ReactDebugCurrentFrame.getStackAddendum = function() { var stack = ""; if (currentExtraStackFrame) { stack += currentExtraStackFrame; @@ -1941,7 +1923,7 @@ var require_react_development = __commonJS({ format2 += "%s"; args = args.concat([stack]); } - var argsWithFormat = args.map(function (item) { + var argsWithFormat = args.map(function(item) { return "" + item; }); argsWithFormat.unshift("Warning: " + format2); @@ -1962,16 +1944,16 @@ var require_react_development = __commonJS({ } } var ReactNoopUpdateQueue = { - isMounted: function (publicInstance) { + isMounted: function(publicInstance) { return false; }, - enqueueForceUpdate: function (publicInstance, callback, callerName) { + enqueueForceUpdate: function(publicInstance, callback, callerName) { warnNoop(publicInstance, "forceUpdate"); }, - enqueueReplaceState: function (publicInstance, completeState, callback, callerName) { + enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { warnNoop(publicInstance, "replaceState"); }, - enqueueSetState: function (publicInstance, partialState, callback, callerName) { + enqueueSetState: function(publicInstance, partialState, callback, callerName) { warnNoop(publicInstance, "setState"); } }; @@ -1986,7 +1968,7 @@ var require_react_development = __commonJS({ this.updater = updater || ReactNoopUpdateQueue; } Component.prototype.isReactComponent = {}; - Component.prototype.setState = function (partialState, callback) { + Component.prototype.setState = function(partialState, callback) { if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) { { throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); @@ -1994,7 +1976,7 @@ var require_react_development = __commonJS({ } this.updater.enqueueSetState(this, partialState, callback, "setState"); }; - Component.prototype.forceUpdate = function (callback) { + Component.prototype.forceUpdate = function(callback) { this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); }; { @@ -2002,9 +1984,9 @@ var require_react_development = __commonJS({ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] }; - var defineDeprecationWarning = function (methodName, info2) { + var defineDeprecationWarning = function(methodName, info2) { Object.defineProperty(Component.prototype, methodName, { - get: function () { + get: function() { warn("%s(...) is deprecated in plain JavaScript React classes. %s", info2[0], info2[1]); return void 0; } @@ -2136,7 +2118,7 @@ var require_react_development = __commonJS({ return config.key !== void 0; } function defineKeyPropWarningGetter(props2, displayName) { - var warnAboutAccessingKey = function () { + var warnAboutAccessingKey = function() { { if (!specialPropKeyWarningShown) { specialPropKeyWarningShown = true; @@ -2151,7 +2133,7 @@ var require_react_development = __commonJS({ }); } function defineRefPropWarningGetter(props2, displayName) { - var warnAboutAccessingRef = function () { + var warnAboutAccessingRef = function() { { if (!specialPropRefWarningShown) { specialPropRefWarningShown = true; @@ -2176,7 +2158,7 @@ var require_react_development = __commonJS({ } } } - var ReactElement = function (type2, key, ref, self3, source, owner, props2) { + var ReactElement = function(type2, key, ref, self3, source, owner, props2) { var element = { $$typeof: REACT_ELEMENT_TYPE, type: type2, @@ -2335,7 +2317,7 @@ var require_react_development = __commonJS({ "=": "=0", ":": "=2" }; - var escapedString = key.replace(escapeRegex, function (match) { + var escapedString = key.replace(escapeRegex, function(match) { return escaperLookup[match]; }); return "$" + escapedString; @@ -2382,7 +2364,7 @@ var require_react_development = __commonJS({ if (childKey != null) { escapedChildKey = escapeUserProvidedKey(childKey) + "/"; } - mapIntoArray(mappedChild, array2, escapedChildKey, "", function (c3) { + mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c3) { return c3; }); } else if (mappedChild != null) { @@ -2440,25 +2422,25 @@ var require_react_development = __commonJS({ } var result = []; var count2 = 0; - mapIntoArray(children2, result, "", "", function (child) { + mapIntoArray(children2, result, "", "", function(child) { return func.call(context, child, count2++); }); return result; } function countChildren(children2) { var n2 = 0; - mapChildren2(children2, function () { + mapChildren2(children2, function() { n2++; }); return n2; } function forEachChildren(children2, forEachFunc, forEachContext) { - mapChildren2(children2, function () { + mapChildren2(children2, function() { forEachFunc.apply(this, arguments); }, forEachContext); } function toArray(children2) { - return mapChildren2(children2, function (child) { + return mapChildren2(children2, function(child) { return child; }) || []; } @@ -2504,43 +2486,43 @@ var require_react_development = __commonJS({ }; Object.defineProperties(Consumer, { Provider: { - get: function () { + get: function() { if (!hasWarnedAboutUsingConsumerProvider) { hasWarnedAboutUsingConsumerProvider = true; error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); } return context.Provider; }, - set: function (_Provider) { + set: function(_Provider) { context.Provider = _Provider; } }, _currentValue: { - get: function () { + get: function() { return context._currentValue; }, - set: function (_currentValue) { + set: function(_currentValue) { context._currentValue = _currentValue; } }, _currentValue2: { - get: function () { + get: function() { return context._currentValue2; }, - set: function (_currentValue2) { + set: function(_currentValue2) { context._currentValue2 = _currentValue2; } }, _threadCount: { - get: function () { + get: function() { return context._threadCount; }, - set: function (_threadCount) { + set: function(_threadCount) { context._threadCount = _threadCount; } }, Consumer: { - get: function () { + get: function() { if (!hasWarnedAboutUsingNestedContextConsumers) { hasWarnedAboutUsingNestedContextConsumers = true; error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); @@ -2549,10 +2531,10 @@ var require_react_development = __commonJS({ } }, displayName: { - get: function () { + get: function() { return context.displayName; }, - set: function (displayName) { + set: function(displayName) { if (!hasWarnedAboutDisplayNameOnConsumer) { warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); hasWarnedAboutDisplayNameOnConsumer = true; @@ -2579,7 +2561,7 @@ var require_react_development = __commonJS({ var pending = payload; pending._status = Pending; pending._result = thenable; - thenable.then(function (moduleObject) { + thenable.then(function(moduleObject) { if (payload._status === Pending) { var defaultExport = moduleObject.default; { @@ -2591,7 +2573,7 @@ var require_react_development = __commonJS({ resolved._status = Resolved; resolved._result = defaultExport; } - }, function (error2) { + }, function(error2) { if (payload._status === Pending) { var rejected = payload; rejected._status = Rejected; @@ -2621,10 +2603,10 @@ var require_react_development = __commonJS({ Object.defineProperties(lazyType, { defaultProps: { configurable: true, - get: function () { + get: function() { return defaultProps; }, - set: function (newDefaultProps) { + set: function(newDefaultProps) { error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); defaultProps = newDefaultProps; Object.defineProperty(lazyType, "defaultProps", { @@ -2634,10 +2616,10 @@ var require_react_development = __commonJS({ }, propTypes: { configurable: true, - get: function () { + get: function() { return propTypes; }, - set: function (newPropTypes) { + set: function(newPropTypes) { error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); propTypes = newPropTypes; Object.defineProperty(lazyType, "propTypes", { @@ -2675,10 +2657,10 @@ var require_react_development = __commonJS({ Object.defineProperty(elementType, "displayName", { enumerable: false, configurable: true, - get: function () { + get: function() { return ownName; }, - set: function (name) { + set: function(name) { ownName = name; if (render.displayName == null) { render.displayName = name; @@ -2719,10 +2701,10 @@ var require_react_development = __commonJS({ Object.defineProperty(elementType, "displayName", { enumerable: false, configurable: true, - get: function () { + get: function() { return ownName; }, - set: function (name) { + set: function(name) { ownName = name; if (type2.displayName == null) { type2.displayName = name; @@ -2917,11 +2899,11 @@ var require_react_development = __commonJS({ } try { if (construct) { - var Fake = function () { + var Fake = function() { throw Error(); }; Object.defineProperty(Fake.prototype, "props", { - set: function () { + set: function() { throw Error(); } }); @@ -3287,7 +3269,7 @@ var require_react_development = __commonJS({ } Object.defineProperty(validatedFactory, "type", { enumerable: false, - get: function () { + get: function() { warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); Object.defineProperty(this, "type", { value: type2 @@ -3540,55 +3522,55 @@ var require_react_dom_server_node_production_min = __commonJS({ this.removeEmptyString = t2; } var N = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a2) { + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { N[a2] = new M(a2, 0, false, a2, null, false, false); }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a2) { + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { var b = a2[0]; N[b] = new M(b, 1, false, a2[1], null, false, false); }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a2) { + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { N[a2] = new M(a2, 2, false, a2.toLowerCase(), null, false, false); }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a2) { + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { N[a2] = new M(a2, 2, false, a2, null, false, false); }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a2) { + "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { N[a2] = new M(a2, 3, false, a2.toLowerCase(), null, false, false); }); - ["checked", "multiple", "muted", "selected"].forEach(function (a2) { + ["checked", "multiple", "muted", "selected"].forEach(function(a2) { N[a2] = new M(a2, 3, true, a2, null, false, false); }); - ["capture", "download"].forEach(function (a2) { + ["capture", "download"].forEach(function(a2) { N[a2] = new M(a2, 4, false, a2, null, false, false); }); - ["cols", "rows", "size", "span"].forEach(function (a2) { + ["cols", "rows", "size", "span"].forEach(function(a2) { N[a2] = new M(a2, 6, false, a2, null, false, false); }); - ["rowSpan", "start"].forEach(function (a2) { + ["rowSpan", "start"].forEach(function(a2) { N[a2] = new M(a2, 5, false, a2.toLowerCase(), null, false, false); }); var wa = /[\-:]([a-z])/g; function xa(a2) { return a2[1].toUpperCase(); } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a2) { + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { var b = a2.replace(wa, xa); N[b] = new M(b, 1, false, a2, null, false, false); }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a2) { + "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { var b = a2.replace(wa, xa); N[b] = new M(b, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); }); - ["xml:base", "xml:lang", "xml:space"].forEach(function (a2) { + ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { var b = a2.replace(wa, xa); N[b] = new M(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); }); - ["tabIndex", "crossOrigin"].forEach(function (a2) { + ["tabIndex", "crossOrigin"].forEach(function(a2) { N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, false, false); }); N.xlinkHref = new M("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function (a2) { + ["src", "href", "action", "formAction"].forEach(function(a2) { N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, true, true); }); var ya = /["'&<>]/; @@ -3670,7 +3652,7 @@ var require_react_dom_server_node_production_min = __commonJS({ return R; } function Ea(a2, b, c3, d2) { - for (; T;) + for (; T; ) T = false, V += 1, R = null, c3 = a2(b, d2); Fa(); return c3; @@ -3717,16 +3699,16 @@ var require_react_dom_server_node_production_min = __commonJS({ if (c3 !== null && b !== null) { var d2 = c3[1]; a: - if (d2 === null) - d2 = false; - else { - for (var f2 = 0; f2 < d2.length && f2 < b.length; f2++) - if (!Ba(b[f2], d2[f2])) { - d2 = false; - break a; - } - d2 = true; - } + if (d2 === null) + d2 = false; + else { + for (var f2 = 0; f2 < d2.length && f2 < b.length; f2++) + if (!Ba(b[f2], d2[f2])) { + d2 = false; + break a; + } + d2 = true; + } if (d2) return c3[0]; } @@ -3742,7 +3724,7 @@ var require_react_dom_server_node_production_min = __commonJS({ if (T = true, a2 = { action: c3, next: null }, U === null && (U = new Map()), c3 = U.get(b), c3 === void 0) U.set(b, a2); else { - for (b = c3; b.next !== null;) + for (b = c3; b.next !== null; ) b = b.next; b.next = a2; } @@ -3750,43 +3732,41 @@ var require_react_dom_server_node_production_min = __commonJS({ function Ka() { } var X2 = null; - var La = { - readContext: function (a2) { - var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useContext: function (a2) { - W(); - var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useMemo: Ja, useReducer: Ha, useRef: function (a2) { - P = W(); - R = Da(); - var b = R.memoizedState; - return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; - }, useState: function (a2) { - return Ha(Ga, a2); - }, useLayoutEffect: function () { - }, useCallback: function (a2, b) { - return Ja(function () { - return a2; - }, b); - }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function (a2) { - W(); + var La = { readContext: function(a2) { + var b = X2.threadID; + I(a2, b); + return a2[b]; + }, useContext: function(a2) { + W(); + var b = X2.threadID; + I(a2, b); + return a2[b]; + }, useMemo: Ja, useReducer: Ha, useRef: function(a2) { + P = W(); + R = Da(); + var b = R.memoizedState; + return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; + }, useState: function(a2) { + return Ha(Ga, a2); + }, useLayoutEffect: function() { + }, useCallback: function(a2, b) { + return Ja(function() { return a2; - }, useTransition: function () { - W(); - return [function (a2) { - a2(); - }, false]; - }, useOpaqueIdentifier: function () { - return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); - }, useMutableSource: function (a2, b) { - W(); - return b(a2._source); - } - }; + }, b); + }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a2) { + W(); + return a2; + }, useTransition: function() { + W(); + return [function(a2) { + a2(); + }, false]; + }, useOpaqueIdentifier: function() { + return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); + }, useMutableSource: function(a2, b) { + W(); + return b(a2._source); + } }; var Ma = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; function Na(a2) { switch (a2) { @@ -3845,8 +3825,8 @@ var require_react_dom_server_node_production_min = __commonJS({ strokeWidth: true }; var Qa = ["Webkit", "ms", "Moz", "O"]; - Object.keys(Y2).forEach(function (a2) { - Qa.forEach(function (b) { + Object.keys(Y2).forEach(function(a2) { + Qa.forEach(function(b) { b = b + a2.charAt(0).toUpperCase() + a2.substring(1); Y2[b] = Y2[a2]; }); @@ -3863,7 +3843,7 @@ var require_react_dom_server_node_production_min = __commonJS({ if (a2 === void 0 || a2 === null) return a2; var b = ""; - n2.Children.forEach(a2, function (a3) { + n2.Children.forEach(a2, function(a3) { a3 != null && (b += a3); }); return b; @@ -3876,21 +3856,19 @@ var require_react_dom_server_node_production_min = __commonJS({ } function bb2(a2, b, c3) { function d2(d3, h3) { - var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { - isMounted: function () { - return false; - }, enqueueForceUpdate: function () { - if (t2 === null) - return null; - }, enqueueReplaceState: function (a3, b2) { - g2 = true; - t2 = [b2]; - }, enqueueSetState: function (a3, b2) { - if (t2 === null) - return null; - t2.push(b2); - } - }; + var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { isMounted: function() { + return false; + }, enqueueForceUpdate: function() { + if (t2 === null) + return null; + }, enqueueReplaceState: function(a3, b2) { + g2 = true; + t2 = [b2]; + }, enqueueSetState: function(a3, b2) { + if (t2 === null) + return null; + t2.push(b2); + } }; if (e3) { if (e3 = new h3(d3.props, f3, m4), typeof h3.getDerivedStateFromProps === "function") { var k = h3.getDerivedStateFromProps.call(null, d3.props, e3.state); @@ -3936,7 +3914,7 @@ var require_react_dom_server_node_production_min = __commonJS({ } y3 && (b = l2({}, b, y3)); } - for (; n2.isValidElement(a2);) { + for (; n2.isValidElement(a2); ) { var f2 = a2, h2 = f2.type; if (typeof h2 !== "function") break; @@ -3944,7 +3922,7 @@ var require_react_dom_server_node_production_min = __commonJS({ } return { child: a2, context: b }; } - var cb = function () { + var cb = function() { function a2(a3, b2, f2) { n2.isValidElement(a3) ? a3.type !== r4 ? a3 = [a3] : (a3 = a3.props.children, a3 = n2.isValidElement(a3) ? [a3] : Z(a3)) : a3 = Z(a3); a3 = { type: null, domNamespace: Ma.html, children: a3, childIndex: 0, context: na, footer: "" }; @@ -3978,7 +3956,7 @@ var require_react_dom_server_node_production_min = __commonJS({ this.identifierPrefix = f2 && f2.identifierPrefix || ""; } var b = a2.prototype; - b.destroy = function () { + b.destroy = function() { if (!this.exhausted) { this.exhausted = true; this.clearProviders(); @@ -3987,7 +3965,7 @@ var require_react_dom_server_node_production_min = __commonJS({ J[0] = a3; } }; - b.pushProvider = function (a3) { + b.pushProvider = function(a3) { var b2 = ++this.contextIndex, c3 = a3.type._context, h2 = this.threadID; I(c3, h2); var t2 = c3[h2]; @@ -3995,18 +3973,18 @@ var require_react_dom_server_node_production_min = __commonJS({ this.contextValueStack[b2] = t2; c3[h2] = a3.props.value; }; - b.popProvider = function () { + b.popProvider = function() { var a3 = this.contextIndex, b2 = this.contextStack[a3], f2 = this.contextValueStack[a3]; this.contextStack[a3] = null; this.contextValueStack[a3] = null; this.contextIndex--; b2[this.threadID] = f2; }; - b.clearProviders = function () { + b.clearProviders = function() { for (var a3 = this.contextIndex; 0 <= a3; a3--) this.contextStack[a3][this.threadID] = this.contextValueStack[a3]; }; - b.read = function (a3) { + b.read = function(a3) { if (this.exhausted) return null; var b2 = X2; @@ -4014,7 +3992,7 @@ var require_react_dom_server_node_production_min = __commonJS({ var c3 = Ta.current; Ta.current = La; try { - for (var h2 = [""], t2 = false; h2[0].length < a3;) { + for (var h2 = [""], t2 = false; h2[0].length < a3; ) { if (this.stack.length === 0) { this.exhausted = true; var g2 = this.threadID; @@ -4065,7 +4043,7 @@ var require_react_dom_server_node_production_min = __commonJS({ Ta.current = c3, X2 = b2, Fa(); } }; - b.render = function (a3, b2, f2) { + b.render = function(a3, b2, f2) { if (typeof a3 === "string" || typeof a3 === "number") { f2 = "" + a3; if (f2 === "") @@ -4151,7 +4129,7 @@ var require_react_dom_server_node_production_min = __commonJS({ } throw Error(p2(130, c3 == null ? c3 : typeof c3, "")); }; - b.renderDOM = function (a3, b2, f2) { + b.renderDOM = function(a3, b2, f2) { var c3 = a3.type.toLowerCase(); f2 === Ma.html && Na(c3); if (!Wa.hasOwnProperty(c3)) { @@ -4217,23 +4195,23 @@ var require_react_dom_server_node_production_min = __commonJS({ L = this.stack.length === 1; G = "<" + a3.type; b: - if (c3.indexOf("-") === -1) - C = typeof g2.is === "string"; - else - switch (c3) { - case "annotation-xml": - case "color-profile": - case "font-face": - case "font-face-src": - case "font-face-uri": - case "font-face-format": - case "font-face-name": - case "missing-glyph": - C = false; - break b; - default: - C = true; - } + if (c3.indexOf("-") === -1) + C = typeof g2.is === "string"; + else + switch (c3) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + C = false; + break b; + default: + C = true; + } for (w2 in g2) if (Za.call(g2, w2)) { var m4 = g2[w2]; @@ -4297,7 +4275,7 @@ var require_react_dom_server_node_production_min = __commonJS({ a2.prototype.constructor = a2; a2.__proto__ = b; } - var fb = function (a2) { + var fb = function(a2) { function b(b2, c4, h2) { var d2 = a2.call(this, {}) || this; d2.partialRenderer = new cb(b2, c4, h2); @@ -4305,11 +4283,11 @@ var require_react_dom_server_node_production_min = __commonJS({ } db(b, a2); var c3 = b.prototype; - c3._destroy = function (a3, b2) { + c3._destroy = function(a3, b2) { this.partialRenderer.destroy(); b2(a3); }; - c3._read = function (a3) { + c3._read = function(a3) { try { this.push(this.partialRenderer.read(a3)); } catch (f2) { @@ -4318,10 +4296,10 @@ var require_react_dom_server_node_production_min = __commonJS({ }; return b; }(aa.Readable); - exports2.renderToNodeStream = function (a2, b) { + exports2.renderToNodeStream = function(a2, b) { return new fb(a2, false, b); }; - exports2.renderToStaticMarkup = function (a2, b) { + exports2.renderToStaticMarkup = function(a2, b) { a2 = new cb(a2, true, b); try { return a2.read(Infinity); @@ -4329,10 +4307,10 @@ var require_react_dom_server_node_production_min = __commonJS({ a2.destroy(); } }; - exports2.renderToStaticNodeStream = function (a2, b) { + exports2.renderToStaticNodeStream = function(a2, b) { return new fb(a2, true, b); }; - exports2.renderToString = function (a2, b) { + exports2.renderToString = function(a2, b) { a2 = new cb(a2, false, b); try { return a2.read(Infinity); @@ -4349,7 +4327,7 @@ var require_react_dom_server_node_development = __commonJS({ "node_modules/react-dom/cjs/react-dom-server.node.development.js"(exports2) { "use strict"; if (process.env.NODE_ENV !== "production") { - (function () { + (function() { "use strict"; var React4 = require_react(); var _assign = require_object_assign(); @@ -4387,7 +4365,7 @@ var require_react_dom_server_node_development = __commonJS({ format2 += "%s"; args = args.concat([stack]); } - var argsWithFormat = args.map(function (item) { + var argsWithFormat = args.map(function(item) { return "" + item; }); argsWithFormat.unshift("Warning: " + format2); @@ -4623,11 +4601,11 @@ var require_react_dom_server_node_development = __commonJS({ } try { if (construct) { - var Fake = function () { + var Fake = function() { throw Error(); }; Object.defineProperty(Fake.prototype, "props", { - set: function () { + set: function() { throw Error(); } }); @@ -5022,17 +5000,17 @@ var require_react_dom_server_node_development = __commonJS({ "suppressHydrationWarning", "style" ]; - reservedProps.forEach(function (name) { + reservedProps.forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, RESERVED, false, name, null, false, false); }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (_ref) { + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) { var name = _ref[0], attributeName = _ref[1]; properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (name) { + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name.toLowerCase(), null, false, false); }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (name) { + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name, null, false, false); }); [ @@ -5059,7 +5037,7 @@ var require_react_dom_server_node_development = __commonJS({ "scoped", "seamless", "itemScope" - ].forEach(function (name) { + ].forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, BOOLEAN, false, name.toLowerCase(), null, false, false); }); [ @@ -5067,13 +5045,13 @@ var require_react_dom_server_node_development = __commonJS({ "multiple", "muted", "selected" - ].forEach(function (name) { + ].forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, BOOLEAN, true, name, null, false, false); }); [ "capture", "download" - ].forEach(function (name) { + ].forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, name, null, false, false); }); [ @@ -5081,14 +5059,14 @@ var require_react_dom_server_node_development = __commonJS({ "rows", "size", "span" - ].forEach(function (name) { + ].forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, name, null, false, false); }); - ["rowSpan", "start"].forEach(function (name) { + ["rowSpan", "start"].forEach(function(name) { properties2[name] = new PropertyInfoRecord(name, NUMERIC, false, name.toLowerCase(), null, false, false); }); var CAMELIZE = /[\-\:]([a-z])/g; - var capitalize = function (token) { + var capitalize = function(token) { return token[1].toUpperCase(); }; [ @@ -5165,7 +5143,7 @@ var require_react_dom_server_node_development = __commonJS({ "writing-mode", "xmlns:xlink", "x-height" - ].forEach(function (attributeName) { + ].forEach(function(attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); }); @@ -5176,7 +5154,7 @@ var require_react_dom_server_node_development = __commonJS({ "xlink:show", "xlink:title", "xlink:type" - ].forEach(function (attributeName) { + ].forEach(function(attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/1999/xlink", false, false); }); @@ -5184,16 +5162,16 @@ var require_react_dom_server_node_development = __commonJS({ "xml:base", "xml:lang", "xml:space" - ].forEach(function (attributeName) { + ].forEach(function(attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/XML/1998/namespace", false, false); }); - ["tabIndex", "crossOrigin"].forEach(function (attributeName) { + ["tabIndex", "crossOrigin"].forEach(function(attributeName) { properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, false, false); }); var xlinkHref = "xlinkHref"; properties2[xlinkHref] = new PropertyInfoRecord("xlinkHref", STRING, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function (attributeName) { + ["src", "href", "action", "formAction"].forEach(function(attributeName) { properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, true, true); }); var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; @@ -5555,7 +5533,7 @@ var require_react_dom_server_node_development = __commonJS({ } } function useCallback(callback, deps) { - return useMemo3(function () { + return useMemo3(function() { return callback; }, deps); } @@ -5569,7 +5547,7 @@ var require_react_dom_server_node_development = __commonJS({ } function useTransition() { resolveCurrentlyRenderingComponent(); - var startTransition = function (callback) { + var startTransition = function(callback) { callback(); }; return [startTransition, false]; @@ -5749,8 +5727,8 @@ var require_react_dom_server_node_development = __commonJS({ return prefix2 + key.charAt(0).toUpperCase() + key.substring(1); } var prefixes2 = ["Webkit", "ms", "Moz", "O"]; - Object.keys(isUnitlessNumber).forEach(function (prop) { - prefixes2.forEach(function (prefix2) { + Object.keys(isUnitlessNumber).forEach(function(prop) { + prefixes2.forEach(function(prefix2) { isUnitlessNumber[prefixKey(prefix2, prop)] = isUnitlessNumber[prop]; }); }); @@ -5787,7 +5765,7 @@ var require_react_dom_server_node_development = __commonJS({ return true; } } - var warnValidStyle = function () { + var warnValidStyle = function() { }; { var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; @@ -5798,47 +5776,47 @@ var require_react_dom_server_node_development = __commonJS({ var warnedStyleValues = {}; var warnedForNaNValue = false; var warnedForInfinityValue = false; - var camelize = function (string) { - return string.replace(hyphenPattern, function (_10, character) { + var camelize = function(string) { + return string.replace(hyphenPattern, function(_10, character) { return character.toUpperCase(); }); }; - var warnHyphenatedStyleName = function (name) { + var warnHyphenatedStyleName = function(name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error("Unsupported style property %s. Did you mean %s?", name, camelize(name.replace(msPattern$1, "ms-"))); }; - var warnBadVendoredStyleName = function (name) { + var warnBadVendoredStyleName = function(name) { if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { return; } warnedStyleNames[name] = true; error("Unsupported vendor-prefixed style property %s. Did you mean %s?", name, name.charAt(0).toUpperCase() + name.slice(1)); }; - var warnStyleValueWithSemicolon = function (name, value) { + var warnStyleValueWithSemicolon = function(name, value) { if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { return; } warnedStyleValues[value] = true; error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, name, value.replace(badStyleValueWithSemicolonPattern, "")); }; - var warnStyleValueIsNaN = function (name, value) { + var warnStyleValueIsNaN = function(name, value) { if (warnedForNaNValue) { return; } warnedForNaNValue = true; error("`NaN` is an invalid value for the `%s` css style property.", name); }; - var warnStyleValueIsInfinity = function (name, value) { + var warnStyleValueIsInfinity = function(name, value) { if (warnedForInfinityValue) { return; } warnedForInfinityValue = true; error("`Infinity` is an invalid value for the `%s` css style property.", name); }; - warnValidStyle = function (name, value) { + warnValidStyle = function(name, value) { if (name.indexOf("-") > -1) { warnHyphenatedStyleName(name); } else if (badVendoredStyleNamePattern.test(name)) { @@ -5954,7 +5932,7 @@ var require_react_dom_server_node_development = __commonJS({ invalidProps.push(key); } } - var unknownPropString = invalidProps.map(function (prop) { + var unknownPropString = invalidProps.map(function(prop) { return "`" + prop + "`"; }).join(", "); if (invalidProps.length === 1) { @@ -6471,7 +6449,7 @@ var require_react_dom_server_node_development = __commonJS({ z: "z", zoomandpan: "zoomAndPan" }; - var validateProperty$1 = function () { + var validateProperty$1 = function() { }; { var warnedProperties$1 = {}; @@ -6480,7 +6458,7 @@ var require_react_dom_server_node_development = __commonJS({ var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); - validateProperty$1 = function (tagName, name, value, eventRegistry) { + validateProperty$1 = function(tagName, name, value, eventRegistry) { if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) { return true; } @@ -6574,7 +6552,7 @@ var require_react_dom_server_node_development = __commonJS({ return true; }; } - var warnUnknownProperties = function (type2, props2, eventRegistry) { + var warnUnknownProperties = function(type2, props2, eventRegistry) { { var unknownProps = []; for (var key in props2) { @@ -6583,7 +6561,7 @@ var require_react_dom_server_node_development = __commonJS({ unknownProps.push(key); } } - var unknownPropString = unknownProps.map(function (prop) { + var unknownPropString = unknownProps.map(function(prop) { return "`" + prop + "`"; }).join(", "); if (unknownProps.length === 1) { @@ -6604,51 +6582,51 @@ var require_react_dom_server_node_development = __commonJS({ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; var ReactDebugCurrentFrame$1; var prevGetCurrentStackImpl = null; - var getCurrentServerStackImpl = function () { + var getCurrentServerStackImpl = function() { return ""; }; - var describeStackFrame = function (element) { + var describeStackFrame = function(element) { return ""; }; - var validatePropertiesInDevelopment = function (type2, props2) { + var validatePropertiesInDevelopment = function(type2, props2) { }; - var pushCurrentDebugStack = function (stack) { + var pushCurrentDebugStack = function(stack) { }; - var pushElementToDebugStack = function (element) { + var pushElementToDebugStack = function(element) { }; - var popCurrentDebugStack = function () { + var popCurrentDebugStack = function() { }; var hasWarnedAboutUsingContextAsConsumer = false; { ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - validatePropertiesInDevelopment = function (type2, props2) { + validatePropertiesInDevelopment = function(type2, props2) { validateProperties(type2, props2); validateProperties$1(type2, props2); validateProperties$2(type2, props2, null); }; - describeStackFrame = function (element) { + describeStackFrame = function(element) { return describeUnknownElementTypeFrameInDEV(element.type, element._source, null); }; - pushCurrentDebugStack = function (stack) { + pushCurrentDebugStack = function(stack) { currentDebugStacks.push(stack); if (currentDebugStacks.length === 1) { prevGetCurrentStackImpl = ReactDebugCurrentFrame$1.getCurrentStack; ReactDebugCurrentFrame$1.getCurrentStack = getCurrentServerStackImpl; } }; - pushElementToDebugStack = function (element) { + pushElementToDebugStack = function(element) { var stack = currentDebugStacks[currentDebugStacks.length - 1]; var frame2 = stack[stack.length - 1]; frame2.debugElementStack.push(element); }; - popCurrentDebugStack = function () { + popCurrentDebugStack = function() { currentDebugStacks.pop(); if (currentDebugStacks.length === 0) { ReactDebugCurrentFrame$1.getCurrentStack = prevGetCurrentStackImpl; prevGetCurrentStackImpl = null; } }; - getCurrentServerStackImpl = function () { + getCurrentServerStackImpl = function() { if (currentDebugStacks.length === 0) { return ""; } @@ -6694,7 +6672,7 @@ var require_react_dom_server_node_development = __commonJS({ } } var styleNameCache = {}; - var processStyleName = function (styleName) { + var processStyleName = function(styleName) { if (styleNameCache.hasOwnProperty(styleName)) { return styleNameCache[styleName]; } @@ -6773,7 +6751,7 @@ var require_react_dom_server_node_development = __commonJS({ return children2; } var content = ""; - React4.Children.forEach(children2, function (child) { + React4.Children.forEach(children2, function(child) { if (child == null) { return; } @@ -6856,20 +6834,20 @@ var require_react_dom_server_node_development = __commonJS({ var queue = []; var replace = false; var updater = { - isMounted: function (publicInstance) { + isMounted: function(publicInstance) { return false; }, - enqueueForceUpdate: function (publicInstance) { + enqueueForceUpdate: function(publicInstance) { if (queue === null) { warnNoop(publicInstance, "forceUpdate"); return null; } }, - enqueueReplaceState: function (publicInstance, completeState) { + enqueueReplaceState: function(publicInstance, completeState) { replace = true; queue = [completeState]; }, - enqueueSetState: function (publicInstance, currentPartialState) { + enqueueSetState: function(publicInstance, currentPartialState) { if (queue === null) { warnNoop(publicInstance, "setState"); return null; @@ -7022,7 +7000,7 @@ var require_react_dom_server_node_development = __commonJS({ context }; } - var ReactDOMServerRenderer = /* @__PURE__ */ function () { + var ReactDOMServerRenderer = /* @__PURE__ */ function() { function ReactDOMServerRenderer2(children2, makeStaticMarkup, options) { var flatChildren = flattenTopLevelChildren(children2); var topFrame = { @@ -7623,7 +7601,7 @@ var require_react_dom_server_node_development = __commonJS({ subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } - var ReactMarkupReadableStream = /* @__PURE__ */ function (_Readable) { + var ReactMarkupReadableStream = /* @__PURE__ */ function(_Readable) { _inheritsLoose(ReactMarkupReadableStream2, _Readable); function ReactMarkupReadableStream2(element, makeStaticMarkup, options) { var _this; @@ -7800,7 +7778,7 @@ var require_stringify = __commonJS({ var require_is_number = __commonJS({ "node_modules/is-number/index.js"(exports2, module2) { "use strict"; - module2.exports = function (num) { + module2.exports = function(num) { if (typeof num === "number") { return num - num === 0; } @@ -10476,7 +10454,7 @@ var require_coreJsData = __commonJS({ var require_isMasked = __commonJS({ "node_modules/lodash/_isMasked.js"(exports2, module2) { var coreJsData = require_coreJsData(); - var maskSrcKey = function () { + var maskSrcKey = function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); return uid ? "Symbol(src)_1." + uid : ""; }(); @@ -10561,7 +10539,7 @@ var require_getNative = __commonJS({ var require_defineProperty = __commonJS({ "node_modules/lodash/_defineProperty.js"(exports2, module2) { var getNative = require_getNative(); - var defineProperty = function () { + var defineProperty = function() { try { var func = getNative(Object, "defineProperty"); func({}, "", {}); @@ -10612,7 +10590,7 @@ var require_arrayAggregator = __commonJS({ var require_createBaseFor = __commonJS({ "node_modules/lodash/_createBaseFor.js"(exports2, module2) { function createBaseFor(fromRight) { - return function (object, iteratee, keysFunc) { + return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props2 = keysFunc(object), length = props2.length; while (length--) { var key = props2[fromRight ? length : ++index]; @@ -10681,9 +10659,9 @@ var require_isArguments = __commonJS({ var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var isArguments = baseIsArguments(function () { + var isArguments = baseIsArguments(function() { return arguments; - }()) ? baseIsArguments : function (value) { + }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); }; module2.exports = isArguments; @@ -10792,7 +10770,7 @@ var require_baseIsTypedArray = __commonJS({ var require_baseUnary = __commonJS({ "node_modules/lodash/_baseUnary.js"(exports2, module2) { function baseUnary(func) { - return function (value) { + return function(value) { return func(value); }; } @@ -10808,7 +10786,7 @@ var require_nodeUtil = __commonJS({ var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; var moduleExports = freeModule && freeModule.exports === freeExports; var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function () { + var nodeUtil = function() { try { var types = freeModule && freeModule.require && freeModule.require("util").types; if (types) { @@ -10874,7 +10852,7 @@ var require_isPrototype = __commonJS({ var require_overArg = __commonJS({ "node_modules/lodash/_overArg.js"(exports2, module2) { function overArg(func, transform2) { - return function (arg) { + return function(arg) { return func(transform2(arg)); }; } @@ -10956,7 +10934,7 @@ var require_createBaseEach = __commonJS({ "node_modules/lodash/_createBaseEach.js"(exports2, module2) { var isArrayLike = require_isArrayLike(); function createBaseEach(eachFunc, fromRight) { - return function (collection, iteratee) { + return function(collection, iteratee) { if (collection == null) { return collection; } @@ -10991,7 +10969,7 @@ var require_baseAggregator = __commonJS({ "node_modules/lodash/_baseAggregator.js"(exports2, module2) { var baseEach = require_baseEach(); function baseAggregator(collection, setter, iteratee, accumulator) { - baseEach(collection, function (value, key, collection2) { + baseEach(collection, function(value, key, collection2) { setter(accumulator, value, iteratee(value), collection2); }); return accumulator; @@ -11552,7 +11530,7 @@ var require_equalArrays = __commonJS({ break; } if (seen) { - if (!arraySome(other, function (othValue2, othIndex) { + if (!arraySome(other, function(othValue2, othIndex) { if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { return seen.push(othIndex); } @@ -11587,7 +11565,7 @@ var require_mapToArray = __commonJS({ "node_modules/lodash/_mapToArray.js"(exports2, module2) { function mapToArray(map2) { var index = -1, result = Array(map2.size); - map2.forEach(function (value, key) { + map2.forEach(function(value, key) { result[++index] = [key, value]; }); return result; @@ -11601,7 +11579,7 @@ var require_setToArray = __commonJS({ "node_modules/lodash/_setToArray.js"(exports2, module2) { function setToArray(set3) { var index = -1, result = Array(set3.size); - set3.forEach(function (value) { + set3.forEach(function(value) { result[++index] = value; }); return result; @@ -11746,12 +11724,12 @@ var require_getSymbols = __commonJS({ var objectProto = Object.prototype; var propertyIsEnumerable = objectProto.propertyIsEnumerable; var nativeGetSymbols = Object.getOwnPropertySymbols; - var getSymbols = !nativeGetSymbols ? stubArray : function (object) { + var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); - return arrayFilter(nativeGetSymbols(object), function (symbol) { + return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; @@ -11889,7 +11867,7 @@ var require_getTag = __commonJS({ var weakMapCtorString = toSource(WeakMap2); var getTag = baseGetTag; if (DataView2 && getTag(new DataView2(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) { - getTag = function (value) { + getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; if (ctorString) { switch (ctorString) { @@ -12055,7 +12033,7 @@ var require_getMatchData = __commonJS({ var require_matchesStrictComparable = __commonJS({ "node_modules/lodash/_matchesStrictComparable.js"(exports2, module2) { function matchesStrictComparable(key, srcValue) { - return function (object) { + return function(object) { if (object == null) { return false; } @@ -12077,7 +12055,7 @@ var require_baseMatches = __commonJS({ if (matchData.length == 1 && matchData[0][2]) { return matchesStrictComparable(matchData[0][0], matchData[0][1]); } - return function (object) { + return function(object) { return object === source || baseIsMatch(object, source, matchData); }; } @@ -12128,7 +12106,7 @@ var require_memoize = __commonJS({ if (typeof func != "function" || resolver != null && typeof resolver != "function") { throw new TypeError(FUNC_ERROR_TEXT); } - var memoized = function () { + var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); @@ -12151,7 +12129,7 @@ var require_memoizeCapped = __commonJS({ var memoize = require_memoize(); var MAX_MEMOIZE_SIZE = 500; function memoizeCapped(func) { - var result = memoize(func, function (key) { + var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } @@ -12170,12 +12148,12 @@ var require_stringToPath = __commonJS({ var memoizeCapped = require_memoizeCapped(); var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; var reEscapeChar = /\\(\\)?/g; - var stringToPath = memoizeCapped(function (string) { + var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46) { result.push(""); } - string.replace(rePropName, function (match, number3, quote, subString) { + string.replace(rePropName, function(match, number3, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, "$1") : number3 || match); }); return result; @@ -12365,7 +12343,7 @@ var require_baseMatchesProperty = __commonJS({ if (isKey(path) && isStrictComparable(srcValue)) { return matchesStrictComparable(toKey(path), srcValue); } - return function (object) { + return function(object) { var objValue = get3(object, path); return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); }; @@ -12388,7 +12366,7 @@ var require_identity = __commonJS({ var require_baseProperty = __commonJS({ "node_modules/lodash/_baseProperty.js"(exports2, module2) { function baseProperty(key) { - return function (object) { + return function(object) { return object == null ? void 0 : object[key]; }; } @@ -12401,7 +12379,7 @@ var require_basePropertyDeep = __commonJS({ "node_modules/lodash/_basePropertyDeep.js"(exports2, module2) { var baseGet = require_baseGet(); function basePropertyDeep(path) { - return function (object) { + return function(object) { return baseGet(object, path); }; } @@ -12455,7 +12433,7 @@ var require_createAggregator = __commonJS({ var baseIteratee = require_baseIteratee(); var isArray = require_isArray(); function createAggregator(setter, initializer) { - return function (collection, iteratee) { + return function(collection, iteratee) { var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; return func(collection, setter, baseIteratee(iteratee, 2), accumulator); }; @@ -12471,7 +12449,7 @@ var require_countBy = __commonJS({ var createAggregator = require_createAggregator(); var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; - var countBy2 = createAggregator(function (result, value, key) { + var countBy2 = createAggregator(function(result, value, key) { if (hasOwnProperty.call(result, key)) { ++result[key]; } else { @@ -12528,7 +12506,7 @@ var require_baseToPairs = __commonJS({ "node_modules/lodash/_baseToPairs.js"(exports2, module2) { var arrayMap = require_arrayMap(); function baseToPairs(object, props2) { - return arrayMap(props2, function (key) { + return arrayMap(props2, function(key) { return [key, object[key]]; }); } @@ -12541,7 +12519,7 @@ var require_setToPairs = __commonJS({ "node_modules/lodash/_setToPairs.js"(exports2, module2) { function setToPairs(set3) { var index = -1, result = Array(set3.size); - set3.forEach(function (value) { + set3.forEach(function(value) { result[++index] = [value, value]; }); return result; @@ -12560,7 +12538,7 @@ var require_createToPairs = __commonJS({ var mapTag = "[object Map]"; var setTag = "[object Set]"; function createToPairs(keysFunc) { - return function (object) { + return function(object) { var tag = getTag(object); if (tag == mapTag) { return mapToArray(object); @@ -12691,7 +12669,7 @@ var require_createSet = __commonJS({ var noop2 = require_noop(); var setToArray = require_setToArray(); var INFINITY = 1 / 0; - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function (values) { + var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function(values) { return new Set2(values); }; module2.exports = createSet; @@ -12725,27 +12703,27 @@ var require_baseUniq = __commonJS({ seen = iteratee ? [] : result; } outer: - while (++index < length) { - var value = array2[index], computed = iteratee ? iteratee(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; + while (++index < length) { + var value = array2[index], computed = iteratee ? iteratee(value) : value; + value = comparator || value !== 0 ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); } - if (iteratee) { - seen.push(computed); - } - result.push(value); - } else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); } - } return result; } module2.exports = baseUniq; @@ -12846,7 +12824,7 @@ var import_micromatch = __toModule(require_micromatch()); var shouldExcludePath = (path, pathsToIgnore, globsToIgnore) => { if (!path) return false; - return pathsToIgnore.has(path) || globsToIgnore.some((glob) => !glob || (0, import_micromatch.isMatch)(path, glob)); + return pathsToIgnore.has(path) || globsToIgnore.some((glob) => glob && (0, import_micromatch.isMatch)(path, glob)); }; // src/process-dir.js @@ -13067,10 +13045,8 @@ function range_default(start2, stop, step) { } // node_modules/d3-dispatch/src/dispatch.js -var noop = { - value: () => { - } -}; +var noop = { value: () => { +} }; function dispatch() { for (var i = 0, n2 = arguments.length, _10 = {}, t2; i < n2; ++i) { if (!(t2 = arguments[i] + "") || t2 in _10 || /[\s.]/.test(t2)) @@ -13083,7 +13059,7 @@ function Dispatch(_10) { this._ = _10; } function parseTypenames(typenames, types) { - return typenames.trim().split(/^|\s+/).map(function (t2) { + return typenames.trim().split(/^|\s+/).map(function(t2) { var name = "", i = t2.indexOf("."); if (i >= 0) name = t2.slice(i + 1), t2 = t2.slice(0, i); @@ -13094,7 +13070,7 @@ function parseTypenames(typenames, types) { } Dispatch.prototype = dispatch.prototype = { constructor: Dispatch, - on: function (typename, callback) { + on: function(typename, callback) { var _10 = this._, T = parseTypenames(typename + "", _10), t2, i = -1, n2 = T.length; if (arguments.length < 2) { while (++i < n2) @@ -13113,13 +13089,13 @@ Dispatch.prototype = dispatch.prototype = { } return this; }, - copy: function () { + copy: function() { var copy2 = {}, _10 = this._; for (var t2 in _10) copy2[t2] = _10[t2].slice(); return new Dispatch(copy2); }, - call: function (type2, that) { + call: function(type2, that) { if ((n2 = arguments.length - 2) > 0) for (var args = new Array(n2), i = 0, n2, t2; i < n2; ++i) args[i] = arguments[i + 2]; @@ -13128,7 +13104,7 @@ Dispatch.prototype = dispatch.prototype = { for (t2 = this._[type2], i = 0, n2 = t2.length; i < n2; ++i) t2[i].value.apply(that, args); }, - apply: function (type2, that, args) { + apply: function(type2, that, args) { if (!this._.hasOwnProperty(type2)) throw new Error("unknown type: " + type2); for (var t2 = this._[type2], i = 0, n2 = t2.length; i < n2; ++i) @@ -13175,13 +13151,13 @@ function namespace_default(name) { // node_modules/d3-selection/src/creator.js function creatorInherit(name) { - return function () { + return function() { var document2 = this.ownerDocument, uri = this.namespaceURI; return uri === xhtml && document2.documentElement.namespaceURI === xhtml ? document2.createElement(name) : document2.createElementNS(uri, name); }; } function creatorFixed(fullname) { - return function () { + return function() { return this.ownerDocument.createElementNS(fullname.space, fullname.local); }; } @@ -13194,7 +13170,7 @@ function creator_default(name) { function none() { } function selector_default(selector) { - return selector == null ? none : function () { + return selector == null ? none : function() { return this.querySelector(selector); }; } @@ -13225,14 +13201,14 @@ function empty() { return []; } function selectorAll_default(selector) { - return selector == null ? empty : function () { + return selector == null ? empty : function() { return this.querySelectorAll(selector); }; } // node_modules/d3-selection/src/selection/selectAll.js function arrayAll(select) { - return function () { + return function() { return array(select.apply(this, arguments)); }; } @@ -13254,12 +13230,12 @@ function selectAll_default(select) { // node_modules/d3-selection/src/matcher.js function matcher_default(selector) { - return function () { + return function() { return this.matches(selector); }; } function childMatcher(selector) { - return function (node) { + return function(node) { return node.matches(selector); }; } @@ -13267,7 +13243,7 @@ function childMatcher(selector) { // node_modules/d3-selection/src/selection/selectChild.js var find = Array.prototype.find; function childFind(match) { - return function () { + return function() { return find.call(this.children, match); }; } @@ -13284,7 +13260,7 @@ function children() { return Array.from(this.children); } function childrenFilter(match) { - return function () { + return function() { return filter.call(this.children, match); }; } @@ -13324,23 +13300,23 @@ function EnterNode(parent, datum2) { } EnterNode.prototype = { constructor: EnterNode, - appendChild: function (child) { + appendChild: function(child) { return this._parent.insertBefore(child, this._next); }, - insertBefore: function (child, next) { + insertBefore: function(child, next) { return this._parent.insertBefore(child, next); }, - querySelector: function (selector) { + querySelector: function(selector) { return this._parent.querySelector(selector); }, - querySelectorAll: function (selector) { + querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); } }; // node_modules/d3-selection/src/constant.js function constant_default(x2) { - return function () { + return function() { return x2; }; } @@ -13466,8 +13442,8 @@ function merge_default(context) { // node_modules/d3-selection/src/selection/order.js function order_default() { - for (var groups = this._groups, j3 = -1, m4 = groups.length; ++j3 < m4;) { - for (var group = groups[j3], i = group.length - 1, next = group[i], node; --i >= 0;) { + for (var groups = this._groups, j3 = -1, m4 = groups.length; ++j3 < m4; ) { + for (var group = groups[j3], i = group.length - 1, next = group[i], node; --i >= 0; ) { if (node = group[i]) { if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next); @@ -13550,27 +13526,27 @@ function each_default(callback) { // node_modules/d3-selection/src/selection/attr.js function attrRemove(name) { - return function () { + return function() { this.removeAttribute(name); }; } function attrRemoveNS(fullname) { - return function () { + return function() { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant(name, value) { - return function () { + return function() { this.setAttribute(name, value); }; } function attrConstantNS(fullname, value) { - return function () { + return function() { this.setAttributeNS(fullname.space, fullname.local, value); }; } function attrFunction(name, value) { - return function () { + return function() { var v2 = value.apply(this, arguments); if (v2 == null) this.removeAttribute(name); @@ -13579,7 +13555,7 @@ function attrFunction(name, value) { }; } function attrFunctionNS(fullname, value) { - return function () { + return function() { var v2 = value.apply(this, arguments); if (v2 == null) this.removeAttributeNS(fullname.space, fullname.local); @@ -13603,17 +13579,17 @@ function window_default(node) { // node_modules/d3-selection/src/selection/style.js function styleRemove(name) { - return function () { + return function() { this.style.removeProperty(name); }; } function styleConstant(name, value, priority) { - return function () { + return function() { this.style.setProperty(name, value, priority); }; } function styleFunction(name, value, priority) { - return function () { + return function() { var v2 = value.apply(this, arguments); if (v2 == null) this.style.removeProperty(name); @@ -13630,17 +13606,17 @@ function styleValue(node, name) { // node_modules/d3-selection/src/selection/property.js function propertyRemove(name) { - return function () { + return function() { delete this[name]; }; } function propertyConstant(name, value) { - return function () { + return function() { this[name] = value; }; } function propertyFunction(name, value) { - return function () { + return function() { var v2 = value.apply(this, arguments); if (v2 == null) delete this[name]; @@ -13664,21 +13640,21 @@ function ClassList(node) { this._names = classArray(node.getAttribute("class") || ""); } ClassList.prototype = { - add: function (name) { + add: function(name) { var i = this._names.indexOf(name); if (i < 0) { this._names.push(name); this._node.setAttribute("class", this._names.join(" ")); } }, - remove: function (name) { + remove: function(name) { var i = this._names.indexOf(name); if (i >= 0) { this._names.splice(i, 1); this._node.setAttribute("class", this._names.join(" ")); } }, - contains: function (name) { + contains: function(name) { return this._names.indexOf(name) >= 0; } }; @@ -13693,17 +13669,17 @@ function classedRemove(node, names) { list.remove(names[i]); } function classedTrue(names) { - return function () { + return function() { classedAdd(this, names); }; } function classedFalse(names) { - return function () { + return function() { classedRemove(this, names); }; } function classedFunction(names, value) { - return function () { + return function() { (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names); }; } @@ -13724,12 +13700,12 @@ function textRemove() { this.textContent = ""; } function textConstant(value) { - return function () { + return function() { this.textContent = value; }; } function textFunction(value) { - return function () { + return function() { var v2 = value.apply(this, arguments); this.textContent = v2 == null ? "" : v2; }; @@ -13743,12 +13719,12 @@ function htmlRemove() { this.innerHTML = ""; } function htmlConstant(value) { - return function () { + return function() { this.innerHTML = value; }; } function htmlFunction(value) { - return function () { + return function() { var v2 = value.apply(this, arguments); this.innerHTML = v2 == null ? "" : v2; }; @@ -13778,7 +13754,7 @@ function lower_default() { // node_modules/d3-selection/src/selection/append.js function append_default(name) { var create2 = typeof name === "function" ? name : creator_default(name); - return this.select(function () { + return this.select(function() { return this.appendChild(create2.apply(this, arguments)); }); } @@ -13789,7 +13765,7 @@ function constantNull() { } function insert_default(name, before) { var create2 = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before); - return this.select(function () { + return this.select(function() { return this.insertBefore(create2.apply(this, arguments), select.apply(this, arguments) || null); }); } @@ -13824,12 +13800,12 @@ function datum_default(value) { // node_modules/d3-selection/src/selection/on.js function contextListener(listener) { - return function (event) { + return function(event) { listener.call(this, event, this.__data__); }; } function parseTypenames2(typenames) { - return typenames.trim().split(/^|\s+/).map(function (t2) { + return typenames.trim().split(/^|\s+/).map(function(t2) { var name = "", i = t2.indexOf("."); if (i >= 0) name = t2.slice(i + 1), t2 = t2.slice(0, i); @@ -13837,7 +13813,7 @@ function parseTypenames2(typenames) { }); } function onRemove(typename) { - return function () { + return function() { var on = this.__on; if (!on) return; @@ -13855,7 +13831,7 @@ function onRemove(typename) { }; } function onAdd(typename, value, options) { - return function () { + return function() { var on = this.__on, o, listener = contextListener(value); if (on) for (var j3 = 0, m4 = on.length; j3 < m4; ++j3) { @@ -13909,12 +13885,12 @@ function dispatchEvent(node, type2, params) { node.dispatchEvent(event); } function dispatchConstant(type2, params) { - return function () { + return function() { return dispatchEvent(this, type2, params); }; } function dispatchFunction(type2, params) { - return function () { + return function() { return dispatchEvent(this, type2, params.apply(this, arguments)); }; } @@ -14162,10 +14138,10 @@ var named = { yellowgreen: 10145074 }; define_default(Color, color, { - copy: function (channels) { + copy: function(channels) { return Object.assign(new this.constructor(), this, channels); }, - displayable: function () { + displayable: function() { return this.rgb().displayable(); }, hex: color_formatHex, @@ -14214,18 +14190,18 @@ function Rgb(r4, g2, b, opacity) { this.opacity = +opacity; } define_default(Rgb, rgb, extend(Color, { - brighter: function (k) { + brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - darker: function (k) { + darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - rgb: function () { + rgb: function() { return this; }, - displayable: function () { + displayable: function() { return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1); }, hex: rgb_formatHex, @@ -14289,22 +14265,22 @@ function Hsl(h2, s, l2, opacity) { this.opacity = +opacity; } define_default(Hsl, hsl, extend(Color, { - brighter: function (k) { + brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - darker: function (k) { + darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - rgb: function () { + rgb: function() { var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m23 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s, m1 = 2 * l2 - m23; return new Rgb(hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m23), hsl2rgb(h2, m1, m23), hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m23), this.opacity); }, - displayable: function () { + displayable: function() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); }, - formatHsl: function () { + formatHsl: function() { var a2 = this.opacity; a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")"); @@ -14321,7 +14297,7 @@ function basis(t12, v0, v1, v2, v3) { } function basis_default(values) { var n2 = values.length - 1; - return function (t2) { + return function(t2) { var i = t2 <= 0 ? t2 = 0 : t2 >= 1 ? (t2 = 1, n2 - 1) : Math.floor(t2 * n2), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n2 - 1 ? values[i + 2] : 2 * v2 - v1; return basis((t2 - i / n2) * n2, v0, v1, v2, v3); }; @@ -14330,7 +14306,7 @@ function basis_default(values) { // node_modules/d3-interpolate/src/basisClosed.js function basisClosed_default(values) { var n2 = values.length; - return function (t2) { + return function(t2) { var i = Math.floor(((t2 %= 1) < 0 ? ++t2 : t2) * n2), v0 = values[(i + n2 - 1) % n2], v1 = values[i % n2], v2 = values[(i + 1) % n2], v3 = values[(i + 2) % n2]; return basis((t2 - i / n2) * n2, v0, v1, v2, v3); }; @@ -14341,17 +14317,17 @@ var constant_default2 = (x2) => () => x2; // node_modules/d3-interpolate/src/color.js function linear(a2, d2) { - return function (t2) { + return function(t2) { return a2 + t2 * d2; }; } function exponential(a2, b, y3) { - return a2 = Math.pow(a2, y3), b = Math.pow(b, y3) - a2, y3 = 1 / y3, function (t2) { + return a2 = Math.pow(a2, y3), b = Math.pow(b, y3) - a2, y3 = 1 / y3, function(t2) { return Math.pow(a2 + t2 * b, y3); }; } function gamma(y3) { - return (y3 = +y3) === 1 ? nogamma : function (a2, b) { + return (y3 = +y3) === 1 ? nogamma : function(a2, b) { return b - a2 ? exponential(a2, b, y3) : constant_default2(isNaN(a2) ? b : a2); }; } @@ -14365,7 +14341,7 @@ var rgb_default = function rgbGamma(y3) { var color2 = gamma(y3); function rgb2(start2, end) { var r4 = color2((start2 = rgb(start2)).r, (end = rgb(end)).r), g2 = color2(start2.g, end.g), b = color2(start2.b, end.b), opacity = nogamma(start2.opacity, end.opacity); - return function (t2) { + return function(t2) { start2.r = r4(t2); start2.g = g2(t2); start2.b = b(t2); @@ -14377,7 +14353,7 @@ var rgb_default = function rgbGamma(y3) { return rgb2; }(1); function rgbSpline(spline) { - return function (colors) { + return function(colors) { var n2 = colors.length, r4 = new Array(n2), g2 = new Array(n2), b = new Array(n2), i, color2; for (i = 0; i < n2; ++i) { color2 = rgb(colors[i]); @@ -14389,7 +14365,7 @@ function rgbSpline(spline) { g2 = spline(g2); b = spline(b); color2.opacity = 1; - return function (t2) { + return function(t2) { color2.r = r4(t2); color2.g = g2(t2); color2.b = b(t2); @@ -14405,7 +14381,7 @@ function numberArray_default(a2, b) { if (!b) b = []; var n2 = a2 ? Math.min(b.length, a2.length) : 0, c3 = b.slice(), i; - return function (t2) { + return function(t2) { for (i = 0; i < n2; ++i) c3[i] = a2[i] * (1 - t2) + b[i] * t2; return c3; @@ -14422,7 +14398,7 @@ function genericArray(a2, b) { x2[i] = value_default(a2[i], b[i]); for (; i < nb; ++i) c3[i] = b[i]; - return function (t2) { + return function(t2) { for (i = 0; i < na; ++i) c3[i] = x2[i](t2); return c3; @@ -14432,14 +14408,14 @@ function genericArray(a2, b) { // node_modules/d3-interpolate/src/date.js function date_default(a2, b) { var d2 = new Date(); - return a2 = +a2, b = +b, function (t2) { + return a2 = +a2, b = +b, function(t2) { return d2.setTime(a2 * (1 - t2) + b * t2), d2; }; } // node_modules/d3-interpolate/src/number.js function number_default2(a2, b) { - return a2 = +a2, b = +b, function (t2) { + return a2 = +a2, b = +b, function(t2) { return a2 * (1 - t2) + b * t2; }; } @@ -14458,7 +14434,7 @@ function object_default(a2, b) { c3[k] = b[k]; } } - return function (t2) { + return function(t2) { for (k in i) c3[k] = i[k](t2); return c3; @@ -14469,12 +14445,12 @@ function object_default(a2, b) { var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; var reB = new RegExp(reA.source, "g"); function zero(b) { - return function () { + return function() { return b; }; } function one(b) { - return function (t2) { + return function(t2) { return b(t2) + ""; }; } @@ -14507,7 +14483,7 @@ function string_default(a2, b) { else s[++i] = bs; } - return s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function (t2) { + return s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function(t2) { for (var i2 = 0, o; i2 < b; ++i2) s[(o = q2[i2]).i] = o.x(t2); return s.join(""); @@ -14522,7 +14498,7 @@ function value_default(a2, b) { // node_modules/d3-interpolate/src/round.js function round_default(a2, b) { - return a2 = +a2, b = +b, function (t2) { + return a2 = +a2, b = +b, function(t2) { return Math.round(a2 * (1 - t2) + b * t2); }; } @@ -14614,7 +14590,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } - return function (a2, b) { + return function(a2, b) { var s = [], q2 = []; a2 = parse(a2), b = parse(b); translate(a2.translateX, a2.translateY, b.translateX, b.translateY, s, q2); @@ -14622,7 +14598,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { skewX(a2.skewX, b.skewX, s, q2); scale(a2.scaleX, a2.scaleY, b.scaleX, b.scaleY, s, q2); a2 = b = null; - return function (t2) { + return function(t2) { var i = -1, n2 = q2.length, o; while (++i < n2) s[(o = q2[i]).i] = o.x(t2); @@ -14644,7 +14620,7 @@ var clockLast = 0; var clockNow = 0; var clockSkew = 0; var clock = typeof performance === "object" && performance.now ? performance : Date; -var setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function (f2) { +var setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f2) { setTimeout(f2, 17); }; function now() { @@ -14658,7 +14634,7 @@ function Timer() { } Timer.prototype = timer.prototype = { constructor: Timer, - restart: function (callback, delay, time) { + restart: function(callback, delay, time) { if (typeof callback !== "function") throw new TypeError("callback is not a function"); time = (time == null ? now() : +time) + (delay == null ? 0 : +delay); @@ -14673,7 +14649,7 @@ Timer.prototype = timer.prototype = { this._time = time; sleep(); }, - stop: function () { + stop: function() { if (this._call) { this._call = null; this._time = Infinity; @@ -14837,7 +14813,7 @@ function create(node, id2, self3) { delete schedules[i]; } } - timeout_default(function () { + timeout_default(function() { if (self3.state === STARTED) { self3.state = RUNNING; self3.timer.restart(tick, self3.delay, self3.time); @@ -14900,7 +14876,7 @@ function interrupt_default(node, name) { // node_modules/d3-transition/src/selection/interrupt.js function interrupt_default2(name) { - return this.each(function () { + return this.each(function() { interrupt_default(this, name); }); } @@ -14908,7 +14884,7 @@ function interrupt_default2(name) { // node_modules/d3-transition/src/transition/tween.js function tweenRemove(id2, name) { var tween0, tween1; - return function () { + return function() { var schedule = set2(this, id2), tween = schedule.tween; if (tween !== tween0) { tween1 = tween0 = tween; @@ -14927,7 +14903,7 @@ function tweenFunction(id2, name, value) { var tween0, tween1; if (typeof value !== "function") throw new Error(); - return function () { + return function() { var schedule = set2(this, id2), tween = schedule.tween; if (tween !== tween0) { tween1 = (tween0 = tween).slice(); @@ -14959,11 +14935,11 @@ function tween_default(name, value) { } function tweenValue(transition2, name, value) { var id2 = transition2._id; - transition2.each(function () { + transition2.each(function() { var schedule = set2(this, id2); (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments); }); - return function (node) { + return function(node) { return get2(node, id2).value[name]; }; } @@ -14976,32 +14952,32 @@ function interpolate_default(a2, b) { // node_modules/d3-transition/src/transition/attr.js function attrRemove2(name) { - return function () { + return function() { this.removeAttribute(name); }; } function attrRemoveNS2(fullname) { - return function () { + return function() { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant2(name, interpolate, value1) { var string00, string1 = value1 + "", interpolate0; - return function () { + return function() { var string0 = this.getAttribute(name); return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1); }; } function attrConstantNS2(fullname, interpolate, value1) { var string00, string1 = value1 + "", interpolate0; - return function () { + return function() { var string0 = this.getAttributeNS(fullname.space, fullname.local); return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1); }; } function attrFunction2(name, interpolate, value) { var string00, string10, interpolate0; - return function () { + return function() { var string0, value1 = value(this), string1; if (value1 == null) return void this.removeAttribute(name); @@ -15012,7 +14988,7 @@ function attrFunction2(name, interpolate, value) { } function attrFunctionNS2(fullname, interpolate, value) { var string00, string10, interpolate0; - return function () { + return function() { var string0, value1 = value(this), string1; if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local); @@ -15028,12 +15004,12 @@ function attr_default2(name, value) { // node_modules/d3-transition/src/transition/attrTween.js function attrInterpolate(name, i) { - return function (t2) { + return function(t2) { this.setAttribute(name, i.call(this, t2)); }; } function attrInterpolateNS(fullname, i) { - return function (t2) { + return function(t2) { this.setAttributeNS(fullname.space, fullname.local, i.call(this, t2)); }; } @@ -15073,12 +15049,12 @@ function attrTween_default(name, value) { // node_modules/d3-transition/src/transition/delay.js function delayFunction(id2, value) { - return function () { + return function() { init(this, id2).delay = +value.apply(this, arguments); }; } function delayConstant(id2, value) { - return value = +value, function () { + return value = +value, function() { init(this, id2).delay = value; }; } @@ -15089,12 +15065,12 @@ function delay_default(value) { // node_modules/d3-transition/src/transition/duration.js function durationFunction(id2, value) { - return function () { + return function() { set2(this, id2).duration = +value.apply(this, arguments); }; } function durationConstant(id2, value) { - return value = +value, function () { + return value = +value, function() { set2(this, id2).duration = value; }; } @@ -15107,7 +15083,7 @@ function duration_default(value) { function easeConstant(id2, value) { if (typeof value !== "function") throw new Error(); - return function () { + return function() { set2(this, id2).ease = value; }; } @@ -15118,7 +15094,7 @@ function ease_default(value) { // node_modules/d3-transition/src/transition/easeVarying.js function easeVarying(id2, value) { - return function () { + return function() { var v2 = value.apply(this, arguments); if (typeof v2 !== "function") throw new Error(); @@ -15164,7 +15140,7 @@ function merge_default2(transition2) { // node_modules/d3-transition/src/transition/on.js function start(name) { - return (name + "").trim().split(/^|\s+/).every(function (t2) { + return (name + "").trim().split(/^|\s+/).every(function(t2) { var i = t2.indexOf("."); if (i >= 0) t2 = t2.slice(0, i); @@ -15173,7 +15149,7 @@ function start(name) { } function onFunction(id2, name, listener) { var on0, on1, sit = start(name) ? init : set2; - return function () { + return function() { var schedule = sit(this, id2), on = schedule.on; if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener); @@ -15187,7 +15163,7 @@ function on_default2(name, listener) { // node_modules/d3-transition/src/transition/remove.js function removeFunction(id2) { - return function () { + return function() { var parent = this.parentNode; for (var i in this.__transition) if (+i !== id2) @@ -15248,26 +15224,26 @@ function selection_default2() { // node_modules/d3-transition/src/transition/style.js function styleNull(name, interpolate) { var string00, string10, interpolate0; - return function () { + return function() { var string0 = styleValue(this, name), string1 = (this.style.removeProperty(name), styleValue(this, name)); return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : interpolate0 = interpolate(string00 = string0, string10 = string1); }; } function styleRemove2(name) { - return function () { + return function() { this.style.removeProperty(name); }; } function styleConstant2(name, interpolate, value1) { var string00, string1 = value1 + "", interpolate0; - return function () { + return function() { var string0 = styleValue(this, name); return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1); }; } function styleFunction2(name, interpolate, value) { var string00, string10, interpolate0; - return function () { + return function() { var string0 = styleValue(this, name), value1 = value(this), string1 = value1 + ""; if (value1 == null) string1 = value1 = (this.style.removeProperty(name), styleValue(this, name)); @@ -15276,7 +15252,7 @@ function styleFunction2(name, interpolate, value) { } function styleMaybeRemove(id2, name) { var on0, on1, listener0, key = "style." + name, event = "end." + key, remove2; - return function () { + return function() { var schedule = set2(this, id2), on = schedule.on, listener = schedule.value[key] == null ? remove2 || (remove2 = styleRemove2(name)) : void 0; if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener); @@ -15290,7 +15266,7 @@ function style_default2(name, value, priority) { // node_modules/d3-transition/src/transition/styleTween.js function styleInterpolate(name, i, priority) { - return function (t2) { + return function(t2) { this.style.setProperty(name, i.call(this, t2), priority); }; } @@ -15318,12 +15294,12 @@ function styleTween_default(name, value, priority) { // node_modules/d3-transition/src/transition/text.js function textConstant2(value) { - return function () { + return function() { this.textContent = value; }; } function textFunction2(value) { - return function () { + return function() { var value1 = value(this); this.textContent = value1 == null ? "" : value1; }; @@ -15334,7 +15310,7 @@ function text_default2(value) { // node_modules/d3-transition/src/transition/textTween.js function textInterpolate(i) { - return function (t2) { + return function(t2) { this.textContent = i.call(this, t2); }; } @@ -15382,14 +15358,12 @@ function transition_default() { // node_modules/d3-transition/src/transition/end.js function end_default() { var on0, on1, that = this, id2 = that._id, size = that.size(); - return new Promise(function (resolve, reject) { - var cancel = { value: reject }, end = { - value: function () { - if (--size === 0) - resolve(); - } - }; - that.each(function () { + return new Promise(function(resolve, reject) { + var cancel = { value: reject }, end = { value: function() { + if (--size === 0) + resolve(); + } }; + that.each(function() { var schedule = set2(this, id2), on = schedule.on; if (on !== on0) { on1 = (on0 = on).copy(); @@ -15504,30 +15478,30 @@ function number2(e3) { var X = { name: "x", handles: ["w", "e"].map(type), - input: function (x2, e3) { + input: function(x2, e3) { return x2 == null ? null : [[+x2[0], e3[0][1]], [+x2[1], e3[1][1]]]; }, - output: function (xy) { + output: function(xy) { return xy && [xy[0][0], xy[1][0]]; } }; var Y = { name: "y", handles: ["n", "s"].map(type), - input: function (y3, e3) { + input: function(y3, e3) { return y3 == null ? null : [[e3[0][0], +y3[0]], [e3[1][0], +y3[1]]]; }, - output: function (xy) { + output: function(xy) { return xy && [xy[0][1], xy[1][1]]; } }; var XY = { name: "xy", handles: ["n", "w", "e", "s", "nw", "ne", "sw", "se"].map(type), - input: function (xy) { + input: function(xy) { return xy == null ? null : number2(xy); }, - output: function (xy) { + output: function(xy) { return xy; } }; @@ -15641,7 +15615,7 @@ function cover_default(x2, y3) { // node_modules/d3-quadtree/src/data.js function data_default2() { var data = []; - this.visit(function (node) { + this.visit(function(node) { if (!node.length) do data.push(node.data); @@ -15756,7 +15730,7 @@ function root_default() { // node_modules/d3-quadtree/src/size.js function size_default2() { var size = 0; - this.visit(function (node) { + this.visit(function(node) { if (!node.length) do ++size; @@ -15849,7 +15823,7 @@ function leaf_copy(leaf) { return copy2; } var treeProto = quadtree.prototype = Quadtree.prototype; -treeProto.copy = function () { +treeProto.copy = function() { var copy2 = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child; if (!node) return copy2; @@ -15885,7 +15859,7 @@ treeProto.y = y_default; // node_modules/d3-force/src/constant.js function constant_default4(x2) { - return function () { + return function() { return x2; }; } @@ -15957,18 +15931,18 @@ function collide_default(radius) { for (i = 0; i < n2; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes); } - force.initialize = function (_nodes, _random) { + force.initialize = function(_nodes, _random) { nodes = _nodes; random = _random; initialize(); }; - force.iterations = function (_10) { + force.iterations = function(_10) { return arguments.length ? (iterations = +_10, force) : iterations; }; - force.strength = function (_10) { + force.strength = function(_10) { return arguments.length ? (strength = +_10, force) : strength; }; - force.radius = function (_10) { + force.radius = function(_10) { return arguments.length ? (radius = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : radius; }; return force; @@ -16004,7 +15978,7 @@ function simulation_default(nodes) { iterations = 1; for (var k = 0; k < iterations; ++k) { alpha += (alphaTarget - alpha) * alphaDecay; - forces.forEach(function (force) { + forces.forEach(function(force) { force(alpha); }); for (i = 0; i < n2; ++i) { @@ -16046,37 +16020,37 @@ function simulation_default(nodes) { initializeNodes(); return simulation = { tick, - restart: function () { + restart: function() { return stepper.restart(step), simulation; }, - stop: function () { + stop: function() { return stepper.stop(), simulation; }, - nodes: function (_10) { + nodes: function(_10) { return arguments.length ? (nodes = _10, initializeNodes(), forces.forEach(initializeForce), simulation) : nodes; }, - alpha: function (_10) { + alpha: function(_10) { return arguments.length ? (alpha = +_10, simulation) : alpha; }, - alphaMin: function (_10) { + alphaMin: function(_10) { return arguments.length ? (alphaMin = +_10, simulation) : alphaMin; }, - alphaDecay: function (_10) { + alphaDecay: function(_10) { return arguments.length ? (alphaDecay = +_10, simulation) : +alphaDecay; }, - alphaTarget: function (_10) { + alphaTarget: function(_10) { return arguments.length ? (alphaTarget = +_10, simulation) : alphaTarget; }, - velocityDecay: function (_10) { + velocityDecay: function(_10) { return arguments.length ? (velocityDecay = 1 - _10, simulation) : 1 - velocityDecay; }, - randomSource: function (_10) { + randomSource: function(_10) { return arguments.length ? (random = _10, forces.forEach(initializeForce), simulation) : random; }, - force: function (name, _10) { + force: function(name, _10) { return arguments.length > 1 ? (_10 == null ? forces.delete(name) : forces.set(name, initializeForce(_10)), simulation) : forces.get(name); }, - find: function (x2, y3, radius) { + find: function(x2, y3, radius) { var i = 0, n2 = nodes.length, dx, dy, d2, node, closest; if (radius == null) radius = Infinity; @@ -16092,7 +16066,7 @@ function simulation_default(nodes) { } return closest; }, - on: function (name, _10) { + on: function(name, _10) { return arguments.length > 1 ? (event.on(name, _10), simulation) : event.on(name); } }; @@ -16118,14 +16092,14 @@ function x_default2(x2) { strengths[i] = isNaN(xz[i] = +x2(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); } } - force.initialize = function (_10) { + force.initialize = function(_10) { nodes = _10; initialize(); }; - force.strength = function (_10) { + force.strength = function(_10) { return arguments.length ? (strength = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : strength; }; - force.x = function (_10) { + force.x = function(_10) { return arguments.length ? (x2 = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : x2; }; return force; @@ -16151,14 +16125,14 @@ function y_default2(y3) { strengths[i] = isNaN(yz[i] = +y3(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes); } } - force.initialize = function (_10) { + force.initialize = function(_10) { nodes = _10; initialize(); }; - force.strength = function (_10) { + force.strength = function(_10) { return arguments.length ? (strength = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : strength; }; - force.y = function (_10) { + force.y = function(_10) { return arguments.length ? (y3 = typeof _10 === "function" ? _10 : constant_default4(+_10), initialize(), force) : y3; }; return force; @@ -16185,7 +16159,7 @@ function exponent_default(x2) { // node_modules/d3-format/src/formatGroup.js function formatGroup_default(grouping, thousands) { - return function (value, width2) { + return function(value, width2) { var i = value.length, t2 = [], j3 = 0, g2 = grouping[0], length = 0; while (i > 0 && g2 > 0) { if (length + g2 + 1 > width2) @@ -16201,8 +16175,8 @@ function formatGroup_default(grouping, thousands) { // node_modules/d3-format/src/formatNumerals.js function formatNumerals_default(numerals) { - return function (value) { - return value.replace(/[0-9]/g, function (i) { + return function(value) { + return value.replace(/[0-9]/g, function(i) { return numerals[+i]; }); }; @@ -16240,31 +16214,31 @@ function FormatSpecifier(specifier) { this.trim = !!specifier.trim; this.type = specifier.type === void 0 ? "" : specifier.type + ""; } -FormatSpecifier.prototype.toString = function () { +FormatSpecifier.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; // node_modules/d3-format/src/formatTrim.js function formatTrim_default(s) { out: - for (var n2 = s.length, i = 1, i0 = -1, i1; i < n2; ++i) { - switch (s[i]) { - case ".": - i0 = i1 = i; - break; - case "0": - if (i0 === 0) - i0 = i; - i1 = i; - break; - default: - if (!+s[i]) - break out; - if (i0 > 0) - i0 = 0; - break; + for (var n2 = s.length, i = 1, i0 = -1, i1; i < n2; ++i) { + switch (s[i]) { + case ".": + i0 = i1 = i; + break; + case "0": + if (i0 === 0) + i0 = i; + i1 = i; + break; + default: + if (!+s[i]) + break out; + if (i0 > 0) + i0 = 0; + break; + } } - } return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s; } @@ -16373,14 +16347,14 @@ function locale_default(locale3) { } return numerals(value); } - format2.toString = function () { + format2.toString = function() { return specifier + ""; }; return format2; } function formatPrefix2(specifier, value) { var f2 = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), e3 = Math.max(-8, Math.min(8, Math.floor(exponent_default(value) / 3))) * 3, k = Math.pow(10, -e3), prefix = prefixes[8 + e3 / 3]; - return function (value2) { + return function(value2) { return f2(k * value2) + prefix; }; } @@ -16488,7 +16462,7 @@ function find_default2(callback, that) { // node_modules/d3-hierarchy/src/hierarchy/sum.js function sum_default(value) { - return this.eachAfter(function (node) { + return this.eachAfter(function(node) { var sum = +value(node.data) || 0, children2 = node.children, i = children2 && children2.length; while (--i >= 0) sum += children2[i].value; @@ -16498,7 +16472,7 @@ function sum_default(value) { // node_modules/d3-hierarchy/src/hierarchy/sort.js function sort_default2(compare) { - return this.eachBefore(function (node) { + return this.eachBefore(function(node) { if (node.children) { node.children.sort(compare); } @@ -16550,7 +16524,7 @@ function descendants_default() { // node_modules/d3-hierarchy/src/hierarchy/leaves.js function leaves_default() { var leaves = []; - this.eachBefore(function (node) { + this.eachBefore(function(node) { if (!node.children) { leaves.push(node); } @@ -16561,7 +16535,7 @@ function leaves_default() { // node_modules/d3-hierarchy/src/hierarchy/links.js function links_default() { var root2 = this, links = []; - root2.each(function (node) { + root2.each(function(node) { if (node !== root2) { links.push({ source: node.parent, target: node }); } @@ -16796,33 +16770,33 @@ function packEnclose(circles) { b.next = a2.previous = c3; c3.next = b.previous = a2; pack: - for (i = 3; i < n2; ++i) { - place(a2._, b._, c3 = circles[i]), c3 = new Node2(c3); - j3 = b.next, k = a2.previous, sj2 = b._.r, sk = a2._.r; - do { - if (sj2 <= sk) { - if (intersects(j3._, c3._)) { - b = j3, a2.next = b, b.previous = a2, --i; - continue pack; - } - sj2 += j3._.r, j3 = j3.next; - } else { - if (intersects(k._, c3._)) { - a2 = k, a2.next = b, b.previous = a2, --i; - continue pack; + for (i = 3; i < n2; ++i) { + place(a2._, b._, c3 = circles[i]), c3 = new Node2(c3); + j3 = b.next, k = a2.previous, sj2 = b._.r, sk = a2._.r; + do { + if (sj2 <= sk) { + if (intersects(j3._, c3._)) { + b = j3, a2.next = b, b.previous = a2, --i; + continue pack; + } + sj2 += j3._.r, j3 = j3.next; + } else { + if (intersects(k._, c3._)) { + a2 = k, a2.next = b, b.previous = a2, --i; + continue pack; + } + sk += k._.r, k = k.previous; + } + } while (j3 !== k.next); + c3.previous = a2, c3.next = b, a2.next = b.previous = b = c3; + aa = score(a2); + while ((c3 = c3.next) !== b) { + if ((ca = score(c3)) < aa) { + a2 = c3, aa = ca; } - sk += k._.r, k = k.previous; - } - } while (j3 !== k.next); - c3.previous = a2, c3.next = b, a2.next = b.previous = b = c3; - aa = score(a2); - while ((c3 = c3.next) !== b) { - if ((ca = score(c3)) < aa) { - a2 = c3, aa = ca; } + b = a2.next; } - b = a2.next; - } a2 = [b._], c3 = b; while ((c3 = c3.next) !== b) a2.push(c3._); @@ -16847,7 +16821,7 @@ function constantZero() { return 0; } function constant_default5(x2) { - return function () { + return function() { return x2; }; } @@ -16867,26 +16841,26 @@ function pack_default() { } return root2; } - pack.radius = function (x2) { + pack.radius = function(x2) { return arguments.length ? (radius = optional(x2), pack) : radius; }; - pack.size = function (x2) { + pack.size = function(x2) { return arguments.length ? (dx = +x2[0], dy = +x2[1], pack) : [dx, dy]; }; - pack.padding = function (x2) { + pack.padding = function(x2) { return arguments.length ? (padding = typeof x2 === "function" ? x2 : constant_default5(+x2), pack) : padding; }; return pack; } function radiusLeaf(radius) { - return function (node) { + return function(node) { if (!node.children) { node.r = Math.max(0, +radius(node) || 0); } }; } function packChildren(padding, k) { - return function (node) { + return function(node) { if (children2 = node.children) { var children2, i, n2 = children2.length, r4 = padding(node) * k || 0, e3; if (r4) @@ -16901,7 +16875,7 @@ function packChildren(padding, k) { }; } function translateChild(k) { - return function (node) { + return function(node) { var parent = node.parent; node.r *= k; if (parent) { @@ -16928,7 +16902,7 @@ function initRange(domain, range) { // node_modules/d3-scale/src/constant.js function constants(x2) { - return function () { + return function() { return x2; }; } @@ -16944,7 +16918,7 @@ function identity2(x2) { return x2; } function normalize(a2, b) { - return (b -= a2 = +a2) ? function (x2) { + return (b -= a2 = +a2) ? function(x2) { return (x2 - a2) / b; } : constants(isNaN(b) ? NaN : 0.5); } @@ -16952,7 +16926,7 @@ function clamper(a2, b) { var t2; if (a2 > b) t2 = a2, a2 = b, b = t2; - return function (x2) { + return function(x2) { return Math.max(a2, Math.min(b, x2)); }; } @@ -16962,7 +16936,7 @@ function bimap(domain, range, interpolate) { d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else d0 = normalize(d0, d1), r0 = interpolate(r0, r1); - return function (x2) { + return function(x2) { return r0(d0(x2)); }; } @@ -16976,7 +16950,7 @@ function polymap(domain, range, interpolate) { d2[i] = normalize(domain[i], domain[i + 1]); r4[i] = interpolate(range[i], range[i + 1]); } - return function (x2) { + return function(x2) { var i2 = bisect_default(domain, x2, 1, j3) - 1; return r4[i2](d2[i2](x2)); }; @@ -16997,28 +16971,28 @@ function transformer() { function scale(x2) { return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range, interpolate)))(transform2(clamp(x2))); } - scale.invert = function (y3) { + scale.invert = function(y3) { return clamp(untransform((input || (input = piecewise(range, domain.map(transform2), number_default2)))(y3))); }; - scale.domain = function (_10) { + scale.domain = function(_10) { return arguments.length ? (domain = Array.from(_10, number), rescale()) : domain.slice(); }; - scale.range = function (_10) { + scale.range = function(_10) { return arguments.length ? (range = Array.from(_10), rescale()) : range.slice(); }; - scale.rangeRound = function (_10) { + scale.rangeRound = function(_10) { return range = Array.from(_10), interpolate = round_default, rescale(); }; - scale.clamp = function (_10) { + scale.clamp = function(_10) { return arguments.length ? (clamp = _10 ? true : identity2, rescale()) : clamp !== identity2; }; - scale.interpolate = function (_10) { + scale.interpolate = function(_10) { return arguments.length ? (interpolate = _10, rescale()) : interpolate; }; - scale.unknown = function (_10) { + scale.unknown = function(_10) { return arguments.length ? (unknown = _10, scale) : unknown; }; - return function (t2, u) { + return function(t2, u) { transform2 = t2, untransform = u; return rescale(); }; @@ -17060,15 +17034,15 @@ function tickFormat(start2, stop, count2, specifier) { // node_modules/d3-scale/src/linear.js function linearish(scale) { var domain = scale.domain; - scale.ticks = function (count2) { + scale.ticks = function(count2) { var d2 = domain(); return ticks_default(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); }; - scale.tickFormat = function (count2, specifier) { + scale.tickFormat = function(count2, specifier) { var d2 = domain(); return tickFormat(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2, specifier); }; - scale.nice = function (count2) { + scale.nice = function(count2) { if (count2 == null) count2 = 10; var d2 = domain(); @@ -17106,7 +17080,7 @@ function linearish(scale) { } function linear2() { var scale = continuous(); - scale.copy = function () { + scale.copy = function() { return copy(scale, linear2()); }; initRange.apply(scale, arguments); @@ -17115,7 +17089,7 @@ function linear2() { // node_modules/d3-scale/src/pow.js function transformPow(exponent) { - return function (x2) { + return function(x2) { return x2 < 0 ? -Math.pow(-x2, exponent) : Math.pow(x2, exponent); }; } @@ -17130,14 +17104,14 @@ function powish(transform2) { function rescale() { return exponent === 1 ? transform2(identity2, identity2) : exponent === 0.5 ? transform2(transformSqrt, transformSquare) : transform2(transformPow(exponent), transformPow(1 / exponent)); } - scale.exponent = function (_10) { + scale.exponent = function(_10) { return arguments.length ? (exponent = +_10, rescale()) : exponent; }; return linearish(scale); } function pow() { var scale = powish(transformer()); - scale.copy = function () { + scale.copy = function() { return copy(scale, pow()).exponent(scale.exponent()); }; initRange.apply(scale, arguments); @@ -17154,20 +17128,20 @@ function newInterval(floori, offseti, count2, field) { function interval2(date) { return floori(date = arguments.length === 0 ? new Date() : new Date(+date)), date; } - interval2.floor = function (date) { + interval2.floor = function(date) { return floori(date = new Date(+date)), date; }; - interval2.ceil = function (date) { + interval2.ceil = function(date) { return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; }; - interval2.round = function (date) { + interval2.round = function(date) { var d0 = interval2(date), d1 = interval2.ceil(date); return date - d0 < d1 - date ? d0 : d1; }; - interval2.offset = function (date, step) { + interval2.offset = function(date, step) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; - interval2.range = function (start2, stop, step) { + interval2.range = function(start2, stop, step) { var range = [], previous; start2 = interval2.ceil(start2); step = step == null ? 1 : Math.floor(step); @@ -17178,12 +17152,12 @@ function newInterval(floori, offseti, count2, field) { while (previous < start2 && start2 < stop); return range; }; - interval2.filter = function (test) { - return newInterval(function (date) { + interval2.filter = function(test) { + return newInterval(function(date) { if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1); - }, function (date, step) { + }, function(date, step) { if (date >= date) { if (step < 0) while (++step <= 0) { @@ -17199,16 +17173,16 @@ function newInterval(floori, offseti, count2, field) { }); }; if (count2) { - interval2.count = function (start2, end) { + interval2.count = function(start2, end) { t0.setTime(+start2), t1.setTime(+end); floori(t0), floori(t1); return Math.floor(count2(t0, t1)); }; - interval2.every = function (step) { + interval2.every = function(step) { step = Math.floor(step); - return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval2 : interval2.filter(field ? function (d2) { + return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval2 : interval2.filter(field ? function(d2) { return field(d2) % step === 0; - } : function (d2) { + } : function(d2) { return interval2.count(0, d2) % step === 0; }); }; @@ -17232,12 +17206,12 @@ var days = day.range; // node_modules/d3-time/src/week.js function weekday(i) { - return newInterval(function (date) { + return newInterval(function(date) { date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); date.setHours(0, 0, 0, 0); - }, function (date, step) { + }, function(date, step) { date.setDate(date.getDate() + step * 7); - }, function (start2, end) { + }, function(start2, end) { return (end - start2 - (end.getTimezoneOffset() - start2.getTimezoneOffset()) * durationMinute) / durationWeek; }); } @@ -17257,22 +17231,22 @@ var fridays = friday.range; var saturdays = saturday.range; // node_modules/d3-time/src/year.js -var year = newInterval(function (date) { +var year = newInterval(function(date) { date.setMonth(0, 1); date.setHours(0, 0, 0, 0); -}, function (date, step) { +}, function(date, step) { date.setFullYear(date.getFullYear() + step); -}, function (start2, end) { +}, function(start2, end) { return end.getFullYear() - start2.getFullYear(); -}, function (date) { +}, function(date) { return date.getFullYear(); }); -year.every = function (k) { - return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function (date) { +year.every = function(k) { + return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) { date.setFullYear(Math.floor(date.getFullYear() / k) * k); date.setMonth(0, 1); date.setHours(0, 0, 0, 0); - }, function (date, step) { + }, function(date, step) { date.setFullYear(date.getFullYear() + step * k); }); }; @@ -17280,13 +17254,13 @@ var year_default = year; var years = year.range; // node_modules/d3-time/src/utcDay.js -var utcDay = newInterval(function (date) { +var utcDay = newInterval(function(date) { date.setUTCHours(0, 0, 0, 0); -}, function (date, step) { +}, function(date, step) { date.setUTCDate(date.getUTCDate() + step); -}, function (start2, end) { +}, function(start2, end) { return (end - start2) / durationDay; -}, function (date) { +}, function(date) { return date.getUTCDate() - 1; }); var utcDay_default = utcDay; @@ -17294,12 +17268,12 @@ var utcDays = utcDay.range; // node_modules/d3-time/src/utcWeek.js function utcWeekday(i) { - return newInterval(function (date) { + return newInterval(function(date) { date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); date.setUTCHours(0, 0, 0, 0); - }, function (date, step) { + }, function(date, step) { date.setUTCDate(date.getUTCDate() + step * 7); - }, function (start2, end) { + }, function(start2, end) { return (end - start2) / durationWeek; }); } @@ -17319,22 +17293,22 @@ var utcFridays = utcFriday.range; var utcSaturdays = utcSaturday.range; // node_modules/d3-time/src/utcYear.js -var utcYear = newInterval(function (date) { +var utcYear = newInterval(function(date) { date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); -}, function (date, step) { +}, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step); -}, function (start2, end) { +}, function(start2, end) { return end.getUTCFullYear() - start2.getUTCFullYear(); -}, function (date) { +}, function(date) { return date.getUTCFullYear(); }); -utcYear.every = function (k) { - return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function (date) { +utcYear.every = function(k) { + return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : newInterval(function(date) { date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); - }, function (date, step) { + }, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step * k); }); }; @@ -17473,7 +17447,7 @@ function formatLocale(locale3) { utcFormats.X = newFormat(locale_time, utcFormats); utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats2) { - return function (date) { + return function(date) { var string = [], i = -1, j3 = 0, n2 = specifier.length, c3, pad2, format2; if (!(date instanceof Date)) date = new Date(+date); @@ -17495,7 +17469,7 @@ function formatLocale(locale3) { }; } function newParse(specifier, Z) { - return function (string) { + return function(string) { var d2 = newDate(1900, void 0, 1), i = parseSpecifier(d2, specifier, string += "", 0), week, day2; if (i != string.length) return null; @@ -17627,30 +17601,30 @@ function formatLocale(locale3) { return 1 + ~~(d2.getUTCMonth() / 3); } return { - format: function (specifier) { + format: function(specifier) { var f2 = newFormat(specifier += "", formats); - f2.toString = function () { + f2.toString = function() { return specifier; }; return f2; }, - parse: function (specifier) { + parse: function(specifier) { var p2 = newParse(specifier += "", false); - p2.toString = function () { + p2.toString = function() { return specifier; }; return p2; }, - utcFormat: function (specifier) { + utcFormat: function(specifier) { var f2 = newFormat(specifier += "", utcFormats); - f2.toString = function () { + f2.toString = function() { return specifier; }; return f2; }, - utcParse: function (specifier) { + utcParse: function(specifier) { var p2 = newParse(specifier += "", true); - p2.toString = function () { + p2.toString = function() { return specifier; }; return p2; @@ -17930,37 +17904,37 @@ function Transform(k, x2, y3) { } Transform.prototype = { constructor: Transform, - scale: function (k) { + scale: function(k) { return k === 1 ? this : new Transform(this.k * k, this.x, this.y); }, - translate: function (x2, y3) { + translate: function(x2, y3) { return x2 === 0 & y3 === 0 ? this : new Transform(this.k, this.x + this.k * x2, this.y + this.k * y3); }, - apply: function (point) { + apply: function(point) { return [point[0] * this.k + this.x, point[1] * this.k + this.y]; }, - applyX: function (x2) { + applyX: function(x2) { return x2 * this.k + this.x; }, - applyY: function (y3) { + applyY: function(y3) { return y3 * this.k + this.y; }, - invert: function (location) { + invert: function(location) { return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k]; }, - invertX: function (x2) { + invertX: function(x2) { return (x2 - this.x) / this.k; }, - invertY: function (y3) { + invertY: function(y3) { return (y3 - this.y) / this.k; }, - rescaleX: function (x2) { + rescaleX: function(x2) { return x2.copy().domain(x2.range().map(this.invertX, this).map(x2.invert, x2)); }, - rescaleY: function (y3) { + rescaleY: function(y3) { return y3.copy().domain(y3.range().map(this.invertY, this).map(y3.invert, y3)); }, - toString: function () { + toString: function() { return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")"; } }; @@ -20165,10 +20139,8 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) = const cachedOrders = (0, import_react2.useRef)({}); const { colorScale, colorExtent } = (0, import_react2.useMemo)(() => { if (!data) - return { - colorScale: () => { - }, colorExtent: [0, 0] - }; + return { colorScale: () => { + }, colorExtent: [0, 0] }; const flattenTree = (d2) => { return d2.children ? (0, import_flatten.default)(d2.children.map(flattenTree)) : d2; }; @@ -20669,11 +20641,11 @@ function execWithOutput(command2, args) { try { (0, import_exec.exec)(command2, args, { listeners: { - stdout: function (res2) { + stdout: function(res2) { core.info(res2.toString()); resolve(res2.toString()); }, - stderr: function (res2) { + stderr: function(res2) { core.info(res2.toString()); reject(res2.toString()); } diff --git a/src/should-exclude-path.ts b/src/should-exclude-path.ts index 9707189..82dcff3 100644 --- a/src/should-exclude-path.ts +++ b/src/should-exclude-path.ts @@ -7,5 +7,5 @@ import { isMatch } from 'micromatch'; export const shouldExcludePath = (path: string, pathsToIgnore: Set, globsToIgnore: string[]): boolean => { if (!path) return false - return pathsToIgnore.has(path) || globsToIgnore.some(glob => !glob || isMatch(path, glob)); + return pathsToIgnore.has(path) || globsToIgnore.some(glob => glob && isMatch(path, glob)); } From e30bbb106b3a151bc3789ebb7eeda57d3ef19545 Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:36:12 -0400 Subject: [PATCH 13/46] ensure paths are relative in fs methods --- index.js | 6 +++--- src/process-dir.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index ac7c1b5..a9122b9 100644 --- a/index.js +++ b/index.js @@ -12832,7 +12832,7 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = const foldersToIgnore = [".git", ...excludedPaths]; const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d2) => nodePath.join(rootPath, d2))); const getFileStats = async (path = "") => { - const stats = await import_fs.default.statSync(path || "./"); + const stats = await import_fs.default.statSync(`./${path}`); const name = path.split("/").filter(Boolean).slice(-1)[0]; const size = stats.size; const relativePath = path.slice(rootPath.length + 1); @@ -12844,9 +12844,9 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = }; const addItemToTree = async (path = "", isFolder = true) => { try { - console.log("Looking in ", path || "./"); + console.log("Looking in ", `./${path}`); if (isFolder) { - const filesOrFolders = await import_fs.default.readdirSync(path || "./"); + const filesOrFolders = await import_fs.default.readdirSync(`./${path}`); const children2 = []; for (const fileOrFolder of filesOrFolders) { const fullPath = nodePath.join(rootPath, fileOrFolder); diff --git a/src/process-dir.js b/src/process-dir.js index e03fdb1..ec9573a 100644 --- a/src/process-dir.js +++ b/src/process-dir.js @@ -11,7 +11,7 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob const getFileStats = async (path = "") => { - const stats = await fs.statSync(path || "./"); + const stats = await fs.statSync(`./${path}`); const name = path.split("/").filter(Boolean).slice(-1)[0]; const size = stats.size; const relativePath = path.slice(rootPath.length + 1); @@ -26,10 +26,10 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob isFolder = true, ) => { try { - console.log("Looking in ", path || "./"); + console.log("Looking in ", `./${path}`); if (isFolder) { - const filesOrFolders = await fs.readdirSync(path || "./"); + const filesOrFolders = await fs.readdirSync(`./${path}`); const children = []; for (const fileOrFolder of filesOrFolders) { From 6255064a25fe394f8bc1a0b7a7797c7eabc5cb25 Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Mon, 16 Aug 2021 14:38:54 -0400 Subject: [PATCH 14/46] ensure paths are relative in fs.statSync --- index.js | 2 +- src/process-dir.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a9122b9..2300f22 100644 --- a/index.js +++ b/index.js @@ -12853,7 +12853,7 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) { continue; } - const info2 = import_fs.default.statSync(fullPath); + const info2 = import_fs.default.statSync(`./${fullPath}`); const stats3 = await addItemToTree(fullPath, info2.isDirectory()); if (stats3) children2.push(stats3); diff --git a/src/process-dir.js b/src/process-dir.js index ec9573a..06b0676 100644 --- a/src/process-dir.js +++ b/src/process-dir.js @@ -38,7 +38,7 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob continue; } - const info = fs.statSync(fullPath); + const info = fs.statSync(`./${fullPath}`); const stats = await addItemToTree( fullPath, info.isDirectory(), From cd955d0f33094782d2c26e36da64996c24c29416 Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Mon, 16 Aug 2021 19:59:38 -0400 Subject: [PATCH 15/46] fix: specify paths relative to recursive instead of root --- index.js | 2 +- src/process-dir.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2300f22..5bbc9a7 100644 --- a/index.js +++ b/index.js @@ -12849,7 +12849,7 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = const filesOrFolders = await import_fs.default.readdirSync(`./${path}`); const children2 = []; for (const fileOrFolder of filesOrFolders) { - const fullPath = nodePath.join(rootPath, fileOrFolder); + const fullPath = nodePath.join(path, fileOrFolder); if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) { continue; } diff --git a/src/process-dir.js b/src/process-dir.js index 06b0676..64ff021 100644 --- a/src/process-dir.js +++ b/src/process-dir.js @@ -33,7 +33,7 @@ export const processDir = async (rootPath = "", excludedPaths = [], excludedGlob const children = []; for (const fileOrFolder of filesOrFolders) { - const fullPath = nodePath.join(rootPath, fileOrFolder); + const fullPath = nodePath.join(path, fileOrFolder); if (shouldExcludePath(fullPath, fullPathFoldersToIgnore, excludedGlobs)) { continue; } From 1c832005d46d2091d61347cbb033beedaab762c9 Mon Sep 17 00:00:00 2001 From: Vince Varga Date: Tue, 17 Aug 2021 08:26:28 +0200 Subject: [PATCH 16/46] Fix demo link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dbe3365..77a2a2a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A GitHub Action that creates an SVG diagram of your repo. Read more [in the writ **Please note that this is an experiment. If you have feature requests, please submit a PR or fork and use the code any way you need.** -For a full demo, check out the [githubocto/repo-visualizer](https://github.com/githubocto/repo-visualizer) repository. +For a full demo, check out the [githubocto/repo-visualizer-demo](https://github.com/githubocto/repo-visualizer-demo) repository. ## Inputs From cac7483de070fde194bf7397a83363b20f1b5b98 Mon Sep 17 00:00:00 2001 From: Ben Tea Date: Tue, 17 Aug 2021 18:41:27 -0700 Subject: [PATCH 17/46] fix unhandled promise rejection --- src/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index 2f2f048..4ed8988 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -82,7 +82,9 @@ const main = async () => { console.log("All set!") } -main() +main().catch((e) => { + core.setFailed(e) +}) function execWithOutput(command, args) { return new Promise((resolve, reject) => { From 5f12849e1a9a02880aa8f5ba12f43e5bde8f7227 Mon Sep 17 00:00:00 2001 From: Amelia Wattenberger Date: Wed, 18 Aug 2021 09:16:23 -0400 Subject: [PATCH 18/46] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7f739c..fadc05c 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ You'll need to run the `actions/checkout` Action beforehand, to check out the co - name: Checkout code uses: actions/checkout@master - name: Update diagram - uses: githubocto/repo-visualizer@0.5.0 + uses: githubocto/repo-visualizer@0.6.1 with: output_file: "images/diagram.svg" excluded_paths: "dist,node_modules" From daa593b56978bf9dc6388ba39120a9f794b988b8 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 02:16:20 +0100 Subject: [PATCH 19/46] Allow disabling commit and push --- action.yml | 3 +++ src/index.jsx | 27 ++++++++++++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/action.yml b/action.yml index a1cbcd6..889029e 100644 --- a/action.yml +++ b/action.yml @@ -23,6 +23,9 @@ inputs: branch: description: "The branch name to push the diagram to (branch will be created if it does not yet exist). For example: diagram" required: false + push: + description: "Whether to push the new commit back to the repository. Default: true" + required: false runs: using: "node12" main: "index.js" diff --git a/src/index.jsx b/src/index.jsx index 4ed8988..ed3c7f9 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -67,16 +67,21 @@ const main = async () => { return } - await exec('git', ['commit', '-m', commitMessage]) - - if (doesBranchExist) { - await exec('git', ['push']) - } else { - await exec('git', ['push', '--set-upstream', 'origin', branch]) - } + const shouldPush = getAsBoolean(core.getInput('push'), true) + if (shouldPush) { + core.startGroup('Commit and push diagram') + await exec('git', ['commit', '-m', commitMessage]) + + if (doesBranchExist) { + await exec('git', ['push']) + } else { + await exec('git', ['push', '--set-upstream', 'origin', branch]) + } - if (branch) { - await exec('git', 'checkout', '-') + if (branch) { + await exec('git', 'checkout', '-') + } + core.endGroup() } console.log("All set!") @@ -106,3 +111,7 @@ function execWithOutput(command, args) { } }) } + +function getAsBoolean(option, defaultValue) { + return option === '' ? defaultValue : (option.toLowerCase() === 'true') +} \ No newline at end of file From bed9482b6f7b3b66330cc510fb4cab0216ddfeec Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 02:27:11 +0100 Subject: [PATCH 20/46] Allow uploading as artifact --- action.yml | 3 +++ package.json | 1 + src/index.jsx | 14 ++++++++++++++ 3 files changed, 18 insertions(+) diff --git a/action.yml b/action.yml index 889029e..16eab6c 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,9 @@ inputs: push: description: "Whether to push the new commit back to the repository. Default: true" required: false + upload: + description: "Whether to upload the new diagram as an artiface. Default: false" + required: false runs: using: "node12" main: "index.js" diff --git a/package.json b/package.json index d745e0f..e2d226f 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "test": "npm run test:jest --" }, "dependencies": { + "@actions/artifact": "^0.5.2", "@actions/core": "^1.4.0", "@actions/exec": "^1.1.0", "d3": "^7.0.0", diff --git a/src/index.jsx b/src/index.jsx index ed3c7f9..8878635 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,5 +1,6 @@ import { exec } from '@actions/exec' import * as core from '@actions/core' +import * as artifact from '@actions/artifact' import React from 'react'; import ReactDOMServer from 'react-dom/server'; import fs from "fs" @@ -84,6 +85,19 @@ const main = async () => { core.endGroup() } + const shouldUpload = getAsBoolean(core.getInput('upload'), false) + if (shouldUpload) { + core.startGroup('Upload diagram to artifacts') + const client = artifact.create() + const result = await client.uploadArtifact('Diagram', [outputFile], '.') + if (result.failedItems.length > 0) { + throw 'Artifact was not uploaded successfully.' + } else { + core.info(`Diagram uploaded under name ${result.artifactName}`) + } + core.endGroup() + } + console.log("All set!") } From afab0375485687e5128fbcbc4e61575024abb2dc Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 08:15:50 +0100 Subject: [PATCH 21/46] Simplify boolean inputs --- action.yml | 6 ++++-- src/index.jsx | 8 ++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index 16eab6c..99d8927 100644 --- a/action.yml +++ b/action.yml @@ -24,11 +24,13 @@ inputs: description: "The branch name to push the diagram to (branch will be created if it does not yet exist). For example: diagram" required: false push: - description: "Whether to push the new commit back to the repository. Default: true" + description: "Whether to push the new commit back to the repository. Must be true or false. Default: true" required: false + default: true upload: - description: "Whether to upload the new diagram as an artiface. Default: false" + description: "Whether to upload the new diagram as an artiface. Must be true or false. Default: false" required: false + default: false runs: using: "node12" main: "index.js" diff --git a/src/index.jsx b/src/index.jsx index 8878635..7fd2a5e 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -68,7 +68,7 @@ const main = async () => { return } - const shouldPush = getAsBoolean(core.getInput('push'), true) + const shouldPush = core.getBooleanInput('push') if (shouldPush) { core.startGroup('Commit and push diagram') await exec('git', ['commit', '-m', commitMessage]) @@ -85,7 +85,7 @@ const main = async () => { core.endGroup() } - const shouldUpload = getAsBoolean(core.getInput('upload'), false) + const shouldUpload = core.getBooleanInput('upload') if (shouldUpload) { core.startGroup('Upload diagram to artifacts') const client = artifact.create() @@ -125,7 +125,3 @@ function execWithOutput(command, args) { } }) } - -function getAsBoolean(option, defaultValue) { - return option === '' ? defaultValue : (option.toLowerCase() === 'true') -} \ No newline at end of file From a0c98bbe77698e0883fca2c0cca5e4688513bc9b Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 09:03:47 +0100 Subject: [PATCH 22/46] Propagate the fix from #32 --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 5bbc9a7..a258c7d 100644 --- a/index.js +++ b/index.js @@ -1363,11 +1363,11 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); command_1.issue("echo", enabled ? "on" : "off"); } exports2.setCommandEcho = setCommandEcho; - function setFailed(message) { + function setFailed2(message) { process.exitCode = ExitCode.Failure; error(message); } - exports2.setFailed = setFailed; + exports2.setFailed = setFailed2; function isDebug() { return process.env["RUNNER_DEBUG"] === "1"; } @@ -20635,7 +20635,9 @@ var main = async () => { } console.log("All set!"); }; -main(); +main().catch((e3) => { + core.setFailed(e3); +}); function execWithOutput(command2, args) { return new Promise((resolve, reject) => { try { From 70c9d1d44ff2b947ef7e6bf81036efcdccc98333 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 09:29:44 +0100 Subject: [PATCH 23/46] Update dependencies with yarn --- index.js | 5774 ++++++++++++++++++++++++++++++++++++++++++++++++++++- yarn.lock | 54 + 2 files changed, 5791 insertions(+), 37 deletions(-) diff --git a/index.js b/index.js index 5bbc9a7..ed4b378 100644 --- a/index.js +++ b/index.js @@ -1342,7 +1342,7 @@ var require_core = __commonJS({ return inputs; } exports2.getMultilineInput = getMultilineInput; - function getBooleanInput(name, options) { + function getBooleanInput2(name, options) { const trueValue = ["true", "True", "TRUE"]; const falseValue = ["false", "False", "FALSE"]; const val = getInput2(name, options); @@ -1353,7 +1353,7 @@ var require_core = __commonJS({ throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } - exports2.getBooleanInput = getBooleanInput; + exports2.getBooleanInput = getBooleanInput2; function setOutput(name, value) { process.stdout.write(os2.EOL); command_1.issueCommand("set-output", { name }, value); @@ -1363,11 +1363,11 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); command_1.issue("echo", enabled ? "on" : "off"); } exports2.setCommandEcho = setCommandEcho; - function setFailed(message) { + function setFailed2(message) { process.exitCode = ExitCode.Failure; error(message); } - exports2.setFailed = setFailed; + exports2.setFailed = setFailed2; function isDebug() { return process.env["RUNNER_DEBUG"] === "1"; } @@ -1420,6 +1420,5679 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } }); +// node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js +var require_utils2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toCommandProperties = exports2.toCommandValue = void 0; + function toCommandValue(input) { + if (input === null || input === void 0) { + return ""; + } else if (typeof input === "string" || input instanceof String) { + return input; + } + return JSON.stringify(input); + } + exports2.toCommandValue = toCommandValue; + function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; + } + exports2.toCommandProperties = toCommandProperties; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js +var require_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issue = exports2.issueCommand = void 0; + var os2 = __importStar(require("os")); + var utils_1 = require_utils2(); + function issueCommand(command2, properties2, message) { + const cmd2 = new Command(command2, properties2, message); + process.stdout.write(cmd2.toString() + os2.EOL); + } + exports2.issueCommand = issueCommand; + function issue(name, message = "") { + issueCommand(name, {}, message); + } + exports2.issue = issue; + var CMD_STRING = "::"; + var Command = class { + constructor(command2, properties2, message) { + if (!command2) { + command2 = "missing.command"; + } + this.command = command2; + this.properties = properties2; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += " "; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } else { + cmdStr += ","; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } + }; + function escapeData(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + } + function escapeProperty(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + } + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js +var require_file_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issueCommand = void 0; + var fs4 = __importStar(require("fs")); + var os2 = __importStar(require("os")); + var utils_1 = require_utils2(); + function issueCommand(command2, message) { + const filePath = process.env[`GITHUB_${command2}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command2}`); + } + if (!fs4.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { + encoding: "utf8" + }); + } + exports2.issueCommand = issueCommand; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js +var require_core2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command2(); + var file_command_1 = require_file_command2(); + var utils_1 = require_utils2(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + const delimiter = "_GitHubActionsFileCommandDelimeter_"; + const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; + file_command_1.issueCommand("ENV", commandValue); + } else { + command_1.issueCommand("set-env", { name }, convertedVal); + } + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); + } + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + return inputs; + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput(name, value) { + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, value); + } + exports2.setOutput = setOutput; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; + }); + } + exports2.group = group; + function saveState(name, value) { + command_1.issueCommand("save-state", { name }, value); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; + } +}); + +// node_modules/@actions/http-client/proxy.js +var require_proxy = __commonJS({ + "node_modules/@actions/http-client/proxy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + function getProxyUrl(reqUrl) { + let usingSsl = reqUrl.protocol === "https:"; + let proxyUrl; + if (checkBypass(reqUrl)) { + return proxyUrl; + } + let proxyVar; + if (usingSsl) { + proxyVar = process.env["https_proxy"] || process.env["HTTPS_PROXY"]; + } else { + proxyVar = process.env["http_proxy"] || process.env["HTTP_PROXY"]; + } + if (proxyVar) { + proxyUrl = new URL(proxyVar); + } + return proxyUrl; + } + exports2.getProxyUrl = getProxyUrl; + function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; + if (!noProxy) { + return false; + } + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } else if (reqUrl.protocol === "http:") { + reqPort = 80; + } else if (reqUrl.protocol === "https:") { + reqPort = 443; + } + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === "number") { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + for (let upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { + if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { + return true; + } + } + return false; + } + exports2.checkBypass = checkBypass; + } +}); + +// node_modules/tunnel/lib/tunnel.js +var require_tunnel = __commonJS({ + "node_modules/tunnel/lib/tunnel.js"(exports2) { + "use strict"; + var net = require("net"); + var tls = require("tls"); + var http2 = require("http"); + var https = require("https"); + var events = require("events"); + var assert = require("assert"); + var util = require("util"); + exports2.httpOverHttp = httpOverHttp; + exports2.httpsOverHttp = httpsOverHttp; + exports2.httpOverHttps = httpOverHttps; + exports2.httpsOverHttps = httpsOverHttps; + function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + return agent; + } + function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; + } + function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; + } + function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; + } + function TunnelingAgent(options) { + var self3 = this; + self3.options = options || {}; + self3.proxyOptions = self3.options.proxy || {}; + self3.maxSockets = self3.options.maxSockets || http2.Agent.defaultMaxSockets; + self3.requests = []; + self3.sockets = []; + self3.on("free", function onFree(socket, host, port, localAddress) { + var options2 = toOptions(host, port, localAddress); + for (var i = 0, len = self3.requests.length; i < len; ++i) { + var pending = self3.requests[i]; + if (pending.host === options2.host && pending.port === options2.port) { + self3.requests.splice(i, 1); + pending.request.onSocket(socket); + return; + } + } + socket.destroy(); + self3.removeSocket(socket); + }); + } + util.inherits(TunnelingAgent, events.EventEmitter); + TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self3 = this; + var options = mergeOptions({ request: req }, self3.options, toOptions(host, port, localAddress)); + if (self3.sockets.length >= this.maxSockets) { + self3.requests.push(options); + return; + } + self3.createSocket(options, function(socket) { + socket.on("free", onFree); + socket.on("close", onCloseOrRemove); + socket.on("agentRemove", onCloseOrRemove); + req.onSocket(socket); + function onFree() { + self3.emit("free", socket, options); + } + function onCloseOrRemove(err) { + self3.removeSocket(socket); + socket.removeListener("free", onFree); + socket.removeListener("close", onCloseOrRemove); + socket.removeListener("agentRemove", onCloseOrRemove); + } + }); + }; + TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self3 = this; + var placeholder = {}; + self3.sockets.push(placeholder); + var connectOptions = mergeOptions({}, self3.proxyOptions, { + method: "CONNECT", + path: options.host + ":" + options.port, + agent: false, + headers: { + host: options.host + ":" + options.port + } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; + } + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers["Proxy-Authorization"] = "Basic " + new Buffer(connectOptions.proxyAuth).toString("base64"); + } + debug("making CONNECT request"); + var connectReq = self3.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; + connectReq.once("response", onResponse); + connectReq.once("upgrade", onUpgrade); + connectReq.once("connect", onConnect); + connectReq.once("error", onError); + connectReq.end(); + function onResponse(res2) { + res2.upgrade = true; + } + function onUpgrade(res2, socket, head) { + process.nextTick(function() { + onConnect(res2, socket, head); + }); + } + function onConnect(res2, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + if (res2.statusCode !== 200) { + debug("tunneling socket could not be established, statusCode=%d", res2.statusCode); + socket.destroy(); + var error = new Error("tunneling socket could not be established, statusCode=" + res2.statusCode); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug("got illegal response body from proxy"); + socket.destroy(); + var error = new Error("got illegal response body from proxy"); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + debug("tunneling connection has established"); + self3.sockets[self3.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + function onError(cause) { + connectReq.removeAllListeners(); + debug("tunneling socket could not be established, cause=%s\n", cause.message, cause.stack); + var error = new Error("tunneling socket could not be established, cause=" + cause.message); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + } + }; + TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket); + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + var pending = this.requests.shift(); + if (pending) { + this.createSocket(pending, function(socket2) { + pending.request.onSocket(socket2); + }); + } + }; + function createSecureSocket(options, cb) { + var self3 = this; + TunnelingAgent.prototype.createSocket.call(self3, options, function(socket) { + var hostHeader = options.request.getHeader("host"); + var tlsOptions = mergeOptions({}, self3.options, { + socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, "") : options.host + }); + var secureSocket = tls.connect(0, tlsOptions); + self3.sockets[self3.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); + }); + } + function toOptions(host, port, localAddress) { + if (typeof host === "string") { + return { + host, + port, + localAddress + }; + } + return host; + } + function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === "object") { + var keys = Object.keys(overrides); + for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { + var k = keys[j3]; + if (overrides[k] !== void 0) { + target[k] = overrides[k]; + } + } + } + } + return target; + } + var debug; + if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === "string") { + args[0] = "TUNNEL: " + args[0]; + } else { + args.unshift("TUNNEL:"); + } + console.error.apply(console, args); + }; + } else { + debug = function() { + }; + } + exports2.debug = debug; + } +}); + +// node_modules/tunnel/index.js +var require_tunnel2 = __commonJS({ + "node_modules/tunnel/index.js"(exports2, module2) { + module2.exports = require_tunnel(); + } +}); + +// node_modules/@actions/http-client/index.js +var require_http_client = __commonJS({ + "node_modules/@actions/http-client/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var http2 = require("http"); + var https = require("https"); + var pm = require_proxy(); + var tunnel; + var HttpCodes; + (function(HttpCodes2) { + HttpCodes2[HttpCodes2["OK"] = 200] = "OK"; + HttpCodes2[HttpCodes2["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes2[HttpCodes2["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes2[HttpCodes2["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes2[HttpCodes2["SeeOther"] = 303] = "SeeOther"; + HttpCodes2[HttpCodes2["NotModified"] = 304] = "NotModified"; + HttpCodes2[HttpCodes2["UseProxy"] = 305] = "UseProxy"; + HttpCodes2[HttpCodes2["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes2[HttpCodes2["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes2[HttpCodes2["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes2[HttpCodes2["BadRequest"] = 400] = "BadRequest"; + HttpCodes2[HttpCodes2["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes2[HttpCodes2["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes2[HttpCodes2["Forbidden"] = 403] = "Forbidden"; + HttpCodes2[HttpCodes2["NotFound"] = 404] = "NotFound"; + HttpCodes2[HttpCodes2["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes2[HttpCodes2["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes2[HttpCodes2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes2[HttpCodes2["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes2[HttpCodes2["Conflict"] = 409] = "Conflict"; + HttpCodes2[HttpCodes2["Gone"] = 410] = "Gone"; + HttpCodes2[HttpCodes2["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes2[HttpCodes2["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes2[HttpCodes2["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes2[HttpCodes2["BadGateway"] = 502] = "BadGateway"; + HttpCodes2[HttpCodes2["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes2[HttpCodes2["GatewayTimeout"] = 504] = "GatewayTimeout"; + })(HttpCodes = exports2.HttpCodes || (exports2.HttpCodes = {})); + var Headers; + (function(Headers2) { + Headers2["Accept"] = "accept"; + Headers2["ContentType"] = "content-type"; + })(Headers = exports2.Headers || (exports2.Headers = {})); + var MediaTypes; + (function(MediaTypes2) { + MediaTypes2["ApplicationJson"] = "application/json"; + })(MediaTypes = exports2.MediaTypes || (exports2.MediaTypes = {})); + function getProxyUrl(serverUrl) { + let proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ""; + } + exports2.getProxyUrl = getProxyUrl; + var HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect + ]; + var HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout + ]; + var RetryableHttpVerbs = ["OPTIONS", "GET", "DELETE", "HEAD"]; + var ExponentialBackoffCeiling = 10; + var ExponentialBackoffTimeSlice = 5; + var HttpClientError = class extends Error { + constructor(message, statusCode) { + super(message); + this.name = "HttpClientError"; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } + }; + exports2.HttpClientError = HttpClientError; + var HttpClientResponse = class { + constructor(message) { + this.message = message; + } + readBody() { + return new Promise(async (resolve, reject) => { + let output = Buffer.alloc(0); + this.message.on("data", (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on("end", () => { + resolve(output.toString()); + }); + }); + } + }; + exports2.HttpClientResponse = HttpClientResponse; + function isHttps(requestUrl) { + let parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === "https:"; + } + exports2.isHttps = isHttps; + var HttpClient = class { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return this.request("OPTIONS", requestUrl, null, additionalHeaders || {}); + } + get(requestUrl, additionalHeaders) { + return this.request("GET", requestUrl, null, additionalHeaders || {}); + } + del(requestUrl, additionalHeaders) { + return this.request("DELETE", requestUrl, null, additionalHeaders || {}); + } + post(requestUrl, data, additionalHeaders) { + return this.request("POST", requestUrl, data, additionalHeaders || {}); + } + patch(requestUrl, data, additionalHeaders) { + return this.request("PATCH", requestUrl, data, additionalHeaders || {}); + } + put(requestUrl, data, additionalHeaders) { + return this.request("PUT", requestUrl, data, additionalHeaders || {}); + } + head(requestUrl, additionalHeaders) { + return this.request("HEAD", requestUrl, null, additionalHeaders || {}); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return this.request(verb, requestUrl, stream, additionalHeaders); + } + async getJson(requestUrl, additionalHeaders = {}) { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + let res2 = await this.get(requestUrl, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async postJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res2 = await this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async putJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res2 = await this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async patchJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res2 = await this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async request(verb, requestUrl, data, headers) { + if (this._disposed) { + throw new Error("Client has already been disposed."); + } + let parsedUrl = new URL(requestUrl); + let info2 = this._prepareRequest(verb, parsedUrl, headers); + let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 ? this._maxRetries + 1 : 1; + let numTries = 0; + let response; + while (numTries < maxTries) { + response = await this.requestRaw(info2, data); + if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (let i = 0; i < this.handlers.length; i++) { + if (this.handlers[i].canHandleAuthentication(response)) { + authenticationHandler = this.handlers[i]; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info2, data); + } else { + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && this._allowRedirects && redirectsRemaining > 0) { + const redirectUrl = response.message.headers["location"]; + if (!redirectUrl) { + break; + } + let parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol == "https:" && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) { + throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true."); + } + await response.readBody(); + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (let header in headers) { + if (header.toLowerCase() === "authorization") { + delete headers[header]; + } + } + } + info2 = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = await this.requestRaw(info2, data); + redirectsRemaining--; + } + if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) { + return response; + } + numTries += 1; + if (numTries < maxTries) { + await response.readBody(); + await this._performExponentialBackoff(numTries); + } + } + return response; + } + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + requestRaw(info2, data) { + return new Promise((resolve, reject) => { + let callbackForResult = function(err, res2) { + if (err) { + reject(err); + } + resolve(res2); + }; + this.requestRawWithCallback(info2, data, callbackForResult); + }); + } + requestRawWithCallback(info2, data, onResult) { + let socket; + if (typeof data === "string") { + info2.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8"); + } + let callbackCalled = false; + let handleResult = (err, res2) => { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res2); + } + }; + let req = info2.httpModule.request(info2.options, (msg) => { + let res2 = new HttpClientResponse(msg); + handleResult(null, res2); + }); + req.on("socket", (sock) => { + socket = sock; + }); + req.setTimeout(this._socketTimeout || 3 * 6e4, () => { + if (socket) { + socket.end(); + } + handleResult(new Error("Request timeout: " + info2.options.path), null); + }); + req.on("error", function(err) { + handleResult(err, null); + }); + if (data && typeof data === "string") { + req.write(data, "utf8"); + } + if (data && typeof data !== "string") { + data.on("close", function() { + req.end(); + }); + data.pipe(req); + } else { + req.end(); + } + } + getAgent(serverUrl) { + let parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info2 = {}; + info2.parsedUrl = requestUrl; + const usingSsl = info2.parsedUrl.protocol === "https:"; + info2.httpModule = usingSsl ? https : http2; + const defaultPort = usingSsl ? 443 : 80; + info2.options = {}; + info2.options.host = info2.parsedUrl.hostname; + info2.options.port = info2.parsedUrl.port ? parseInt(info2.parsedUrl.port) : defaultPort; + info2.options.path = (info2.parsedUrl.pathname || "") + (info2.parsedUrl.search || ""); + info2.options.method = method; + info2.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info2.options.headers["user-agent"] = this.userAgent; + } + info2.options.agent = this._getAgent(info2.parsedUrl); + if (this.handlers) { + this.handlers.forEach((handler) => { + handler.prepareRequest(info2.options); + }); + } + return info2; + } + _mergeHeaders(headers) { + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + let proxyUrl = pm.getProxyUrl(parsedUrl); + let useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + if (!!agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === "https:"; + let maxSockets = 100; + if (!!this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http2.globalAgent.maxSockets; + } + if (useProxy) { + if (!tunnel) { + tunnel = require_tunnel2(); + } + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: { + ...(proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }, + host: proxyUrl.hostname, + port: proxyUrl.port + } + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === "https:"; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http2.Agent(options); + this._agent = agent; + } + if (!agent) { + agent = usingSsl ? https.globalAgent : http2.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise((resolve) => setTimeout(() => resolve(), ms)); + } + static dateTimeDeserializer(key, value) { + if (typeof value === "string") { + let a2 = new Date(value); + if (!isNaN(a2.valueOf())) { + return a2; + } + } + return value; + } + async _processResponse(res2, options) { + return new Promise(async (resolve, reject) => { + const statusCode = res2.message.statusCode; + const response = { + statusCode, + result: null, + headers: {} + }; + if (statusCode == HttpCodes.NotFound) { + resolve(response); + } + let obj; + let contents; + try { + contents = await res2.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); + } else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res2.message.headers; + } catch (err) { + } + if (statusCode > 299) { + let msg; + if (obj && obj.message) { + msg = obj.message; + } else if (contents && contents.length > 0) { + msg = contents; + } else { + msg = "Failed request: (" + statusCode + ")"; + } + let err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } else { + resolve(response); + } + }); + } + }; + exports2.HttpClient = HttpClient; + } +}); + +// node_modules/@actions/http-client/auth.js +var require_auth = __commonJS({ + "node_modules/@actions/http-client/auth.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var BasicCredentialHandler = class { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + options.headers["Authorization"] = "Basic " + Buffer.from(this.username + ":" + this.password).toString("base64"); + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.BasicCredentialHandler = BasicCredentialHandler; + var BearerCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + options.headers["Authorization"] = "Bearer " + this.token; + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.BearerCredentialHandler = BearerCredentialHandler; + var PersonalAccessTokenCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + options.headers["Authorization"] = "Basic " + Buffer.from("PAT:" + this.token).toString("base64"); + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; + } +}); + +// node_modules/@actions/artifact/lib/internal/config-variables.js +var require_config_variables = __commonJS({ + "node_modules/@actions/artifact/lib/internal/config-variables.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + function getUploadFileConcurrency() { + return 2; + } + exports2.getUploadFileConcurrency = getUploadFileConcurrency; + function getUploadChunkSize() { + return 8 * 1024 * 1024; + } + exports2.getUploadChunkSize = getUploadChunkSize; + function getRetryLimit() { + return 5; + } + exports2.getRetryLimit = getRetryLimit; + function getRetryMultiplier() { + return 1.5; + } + exports2.getRetryMultiplier = getRetryMultiplier; + function getInitialRetryIntervalInMilliseconds() { + return 3e3; + } + exports2.getInitialRetryIntervalInMilliseconds = getInitialRetryIntervalInMilliseconds; + function getDownloadFileConcurrency() { + return 2; + } + exports2.getDownloadFileConcurrency = getDownloadFileConcurrency; + function getRuntimeToken() { + const token = process.env["ACTIONS_RUNTIME_TOKEN"]; + if (!token) { + throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable"); + } + return token; + } + exports2.getRuntimeToken = getRuntimeToken; + function getRuntimeUrl() { + const runtimeUrl = process.env["ACTIONS_RUNTIME_URL"]; + if (!runtimeUrl) { + throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable"); + } + return runtimeUrl; + } + exports2.getRuntimeUrl = getRuntimeUrl; + function getWorkFlowRunId() { + const workFlowRunId = process.env["GITHUB_RUN_ID"]; + if (!workFlowRunId) { + throw new Error("Unable to get GITHUB_RUN_ID env variable"); + } + return workFlowRunId; + } + exports2.getWorkFlowRunId = getWorkFlowRunId; + function getWorkSpaceDirectory() { + const workspaceDirectory = process.env["GITHUB_WORKSPACE"]; + if (!workspaceDirectory) { + throw new Error("Unable to get GITHUB_WORKSPACE env variable"); + } + return workspaceDirectory; + } + exports2.getWorkSpaceDirectory = getWorkSpaceDirectory; + function getRetentionDays() { + return process.env["GITHUB_RETENTION_DAYS"]; + } + exports2.getRetentionDays = getRetentionDays; + } +}); + +// node_modules/@actions/artifact/lib/internal/utils.js +var require_utils3 = __commonJS({ + "node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var core_1 = require_core2(); + var fs_1 = require("fs"); + var http_client_1 = require_http_client(); + var auth_1 = require_auth(); + var config_variables_1 = require_config_variables(); + function getExponentialRetryTimeInMilliseconds(retryCount) { + if (retryCount < 0) { + throw new Error("RetryCount should not be negative"); + } else if (retryCount === 0) { + return config_variables_1.getInitialRetryIntervalInMilliseconds(); + } + const minTime = config_variables_1.getInitialRetryIntervalInMilliseconds() * config_variables_1.getRetryMultiplier() * retryCount; + const maxTime = minTime * config_variables_1.getRetryMultiplier(); + return Math.random() * (maxTime - minTime) + minTime; + } + exports2.getExponentialRetryTimeInMilliseconds = getExponentialRetryTimeInMilliseconds; + function parseEnvNumber(key) { + const value = Number(process.env[key]); + if (Number.isNaN(value) || value < 0) { + return void 0; + } + return value; + } + exports2.parseEnvNumber = parseEnvNumber; + function getApiVersion() { + return "6.0-preview"; + } + exports2.getApiVersion = getApiVersion; + function isSuccessStatusCode(statusCode) { + if (!statusCode) { + return false; + } + return statusCode >= 200 && statusCode < 300; + } + exports2.isSuccessStatusCode = isSuccessStatusCode; + function isForbiddenStatusCode(statusCode) { + if (!statusCode) { + return false; + } + return statusCode === http_client_1.HttpCodes.Forbidden; + } + exports2.isForbiddenStatusCode = isForbiddenStatusCode; + function isRetryableStatusCode(statusCode) { + if (!statusCode) { + return false; + } + const retryableStatusCodes = [ + http_client_1.HttpCodes.BadGateway, + http_client_1.HttpCodes.GatewayTimeout, + http_client_1.HttpCodes.InternalServerError, + http_client_1.HttpCodes.ServiceUnavailable, + http_client_1.HttpCodes.TooManyRequests, + 413 + ]; + return retryableStatusCodes.includes(statusCode); + } + exports2.isRetryableStatusCode = isRetryableStatusCode; + function isThrottledStatusCode(statusCode) { + if (!statusCode) { + return false; + } + return statusCode === http_client_1.HttpCodes.TooManyRequests; + } + exports2.isThrottledStatusCode = isThrottledStatusCode; + function tryGetRetryAfterValueTimeInMilliseconds(headers) { + if (headers["retry-after"]) { + const retryTime = Number(headers["retry-after"]); + if (!isNaN(retryTime)) { + core_1.info(`Retry-After header is present with a value of ${retryTime}`); + return retryTime * 1e3; + } + core_1.info(`Returned retry-after header value: ${retryTime} is non-numeric and cannot be used`); + return void 0; + } + core_1.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`); + console.log(headers); + return void 0; + } + exports2.tryGetRetryAfterValueTimeInMilliseconds = tryGetRetryAfterValueTimeInMilliseconds; + function getContentRange(start2, end, total) { + return `bytes ${start2}-${end}/${total}`; + } + exports2.getContentRange = getContentRange; + function getDownloadHeaders(contentType, isKeepAlive, acceptGzip) { + const requestOptions = {}; + if (contentType) { + requestOptions["Content-Type"] = contentType; + } + if (isKeepAlive) { + requestOptions["Connection"] = "Keep-Alive"; + requestOptions["Keep-Alive"] = "10"; + } + if (acceptGzip) { + requestOptions["Accept-Encoding"] = "gzip"; + requestOptions["Accept"] = `application/octet-stream;api-version=${getApiVersion()}`; + } else { + requestOptions["Accept"] = `application/json;api-version=${getApiVersion()}`; + } + return requestOptions; + } + exports2.getDownloadHeaders = getDownloadHeaders; + function getUploadHeaders(contentType, isKeepAlive, isGzip, uncompressedLength, contentLength, contentRange) { + const requestOptions = {}; + requestOptions["Accept"] = `application/json;api-version=${getApiVersion()}`; + if (contentType) { + requestOptions["Content-Type"] = contentType; + } + if (isKeepAlive) { + requestOptions["Connection"] = "Keep-Alive"; + requestOptions["Keep-Alive"] = "10"; + } + if (isGzip) { + requestOptions["Content-Encoding"] = "gzip"; + requestOptions["x-tfs-filelength"] = uncompressedLength; + } + if (contentLength) { + requestOptions["Content-Length"] = contentLength; + } + if (contentRange) { + requestOptions["Content-Range"] = contentRange; + } + return requestOptions; + } + exports2.getUploadHeaders = getUploadHeaders; + function createHttpClient(userAgent) { + return new http_client_1.HttpClient(userAgent, [ + new auth_1.BearerCredentialHandler(config_variables_1.getRuntimeToken()) + ]); + } + exports2.createHttpClient = createHttpClient; + function getArtifactUrl() { + const artifactUrl = `${config_variables_1.getRuntimeUrl()}_apis/pipelines/workflows/${config_variables_1.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`; + core_1.debug(`Artifact Url: ${artifactUrl}`); + return artifactUrl; + } + exports2.getArtifactUrl = getArtifactUrl; + function displayHttpDiagnostics(response) { + core_1.info(`##### Begin Diagnostic HTTP information ##### +Status Code: ${response.message.statusCode} +Status Message: ${response.message.statusMessage} +Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} +###### End Diagnostic HTTP information ######`); + } + exports2.displayHttpDiagnostics = displayHttpDiagnostics; + var invalidArtifactFilePathCharacters = ['"', ":", "<", ">", "|", "*", "?"]; + var invalidArtifactNameCharacters = [ + ...invalidArtifactFilePathCharacters, + "\\", + "/" + ]; + function checkArtifactName(name) { + if (!name) { + throw new Error(`Artifact name: ${name}, is incorrectly provided`); + } + for (const invalidChar of invalidArtifactNameCharacters) { + if (name.includes(invalidChar)) { + throw new Error(`Artifact name is not valid: ${name}. Contains character: "${invalidChar}". Invalid artifact name characters include: ${invalidArtifactNameCharacters.toString()}.`); + } + } + } + exports2.checkArtifactName = checkArtifactName; + function checkArtifactFilePath(path) { + if (!path) { + throw new Error(`Artifact path: ${path}, is incorrectly provided`); + } + for (const invalidChar of invalidArtifactFilePathCharacters) { + if (path.includes(invalidChar)) { + throw new Error(`Artifact path is not valid: ${path}. Contains character: "${invalidChar}". Invalid characters include: ${invalidArtifactFilePathCharacters.toString()}.`); + } + } + } + exports2.checkArtifactFilePath = checkArtifactFilePath; + function createDirectoriesForArtifact(directories) { + return __awaiter(this, void 0, void 0, function* () { + for (const directory of directories) { + yield fs_1.promises.mkdir(directory, { + recursive: true + }); + } + }); + } + exports2.createDirectoriesForArtifact = createDirectoriesForArtifact; + function createEmptyFilesForArtifact(emptyFilesToCreate) { + return __awaiter(this, void 0, void 0, function* () { + for (const filePath of emptyFilesToCreate) { + yield (yield fs_1.promises.open(filePath, "w")).close(); + } + }); + } + exports2.createEmptyFilesForArtifact = createEmptyFilesForArtifact; + function getFileSize(filePath) { + return __awaiter(this, void 0, void 0, function* () { + const stats = yield fs_1.promises.stat(filePath); + core_1.debug(`${filePath} size:(${stats.size}) blksize:(${stats.blksize}) blocks:(${stats.blocks})`); + return stats.size; + }); + } + exports2.getFileSize = getFileSize; + function rmFile(filePath) { + return __awaiter(this, void 0, void 0, function* () { + yield fs_1.promises.unlink(filePath); + }); + } + exports2.rmFile = rmFile; + function getProperRetention(retentionInput, retentionSetting) { + if (retentionInput < 0) { + throw new Error("Invalid retention, minimum value is 1."); + } + let retention = retentionInput; + if (retentionSetting) { + const maxRetention = parseInt(retentionSetting); + if (!isNaN(maxRetention) && maxRetention < retention) { + core_1.warning(`Retention days is greater than the max value allowed by the repository setting, reduce retention to ${maxRetention} days`); + retention = maxRetention; + } + } + return retention; + } + exports2.getProperRetention = getProperRetention; + function sleep2(milliseconds) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => setTimeout(resolve, milliseconds)); + }); + } + exports2.sleep = sleep2; + } +}); + +// node_modules/@actions/artifact/lib/internal/upload-specification.js +var require_upload_specification = __commonJS({ + "node_modules/@actions/artifact/lib/internal/upload-specification.js"(exports2) { + "use strict"; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var core_1 = require_core2(); + var path_1 = require("path"); + var utils_1 = require_utils3(); + function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { + utils_1.checkArtifactName(artifactName); + const specifications = []; + if (!fs4.existsSync(rootDirectory)) { + throw new Error(`Provided rootDirectory ${rootDirectory} does not exist`); + } + if (!fs4.lstatSync(rootDirectory).isDirectory()) { + throw new Error(`Provided rootDirectory ${rootDirectory} is not a valid directory`); + } + rootDirectory = path_1.normalize(rootDirectory); + rootDirectory = path_1.resolve(rootDirectory); + for (let file of artifactFiles) { + if (!fs4.existsSync(file)) { + throw new Error(`File ${file} does not exist`); + } + if (!fs4.lstatSync(file).isDirectory()) { + file = path_1.normalize(file); + file = path_1.resolve(file); + if (!file.startsWith(rootDirectory)) { + throw new Error(`The rootDirectory: ${rootDirectory} is not a parent directory of the file: ${file}`); + } + const uploadPath = file.replace(rootDirectory, ""); + utils_1.checkArtifactFilePath(uploadPath); + specifications.push({ + absoluteFilePath: file, + uploadFilePath: path_1.join(artifactName, uploadPath) + }); + } else { + core_1.debug(`Removing ${file} from rawSearchResults because it is a directory`); + } + } + return specifications; + } + exports2.getUploadSpecification = getUploadSpecification; + } +}); + +// node_modules/fs.realpath/old.js +var require_old = __commonJS({ + "node_modules/fs.realpath/old.js"(exports2) { + var pathModule = require("path"); + var isWindows = process.platform === "win32"; + var fs4 = require("fs"); + var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); + function rethrow() { + var callback; + if (DEBUG) { + var backtrace = new Error(); + callback = debugCallback; + } else + callback = missingCallback; + return callback; + function debugCallback(err) { + if (err) { + backtrace.message = err.message; + err = backtrace; + missingCallback(err); + } + } + function missingCallback(err) { + if (err) { + if (process.throwDeprecation) + throw err; + else if (!process.noDeprecation) { + var msg = "fs: missing callback " + (err.stack || err.message); + if (process.traceDeprecation) + console.trace(msg); + else + console.error(msg); + } + } + } + } + function maybeCallback(cb) { + return typeof cb === "function" ? cb : rethrow(); + } + var normalize2 = pathModule.normalize; + if (isWindows) { + nextPartRe = /(.*?)(?:[\/\\]+|$)/g; + } else { + nextPartRe = /(.*?)(?:[\/]+|$)/g; + } + var nextPartRe; + if (isWindows) { + splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/; + } else { + splitRootRe = /^[\/]*/; + } + var splitRootRe; + exports2.realpathSync = function realpathSync(p2, cache) { + p2 = pathModule.resolve(p2); + if (cache && Object.prototype.hasOwnProperty.call(cache, p2)) { + return cache[p2]; + } + var original = p2, seenLinks = {}, knownHard = {}; + var pos; + var current; + var base; + var previous; + start2(); + function start2() { + var m4 = splitRootRe.exec(p2); + pos = m4[0].length; + current = m4[0]; + base = m4[0]; + previous = ""; + if (isWindows && !knownHard[base]) { + fs4.lstatSync(base); + knownHard[base] = true; + } + } + while (pos < p2.length) { + nextPartRe.lastIndex = pos; + var result = nextPartRe.exec(p2); + previous = current; + current += result[0]; + base = previous + result[1]; + pos = nextPartRe.lastIndex; + if (knownHard[base] || cache && cache[base] === base) { + continue; + } + var resolvedLink; + if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { + resolvedLink = cache[base]; + } else { + var stat = fs4.lstatSync(base); + if (!stat.isSymbolicLink()) { + knownHard[base] = true; + if (cache) + cache[base] = base; + continue; + } + var linkTarget = null; + if (!isWindows) { + var id2 = stat.dev.toString(32) + ":" + stat.ino.toString(32); + if (seenLinks.hasOwnProperty(id2)) { + linkTarget = seenLinks[id2]; + } + } + if (linkTarget === null) { + fs4.statSync(base); + linkTarget = fs4.readlinkSync(base); + } + resolvedLink = pathModule.resolve(previous, linkTarget); + if (cache) + cache[base] = resolvedLink; + if (!isWindows) + seenLinks[id2] = linkTarget; + } + p2 = pathModule.resolve(resolvedLink, p2.slice(pos)); + start2(); + } + if (cache) + cache[original] = p2; + return p2; + }; + exports2.realpath = function realpath(p2, cache, cb) { + if (typeof cb !== "function") { + cb = maybeCallback(cache); + cache = null; + } + p2 = pathModule.resolve(p2); + if (cache && Object.prototype.hasOwnProperty.call(cache, p2)) { + return process.nextTick(cb.bind(null, null, cache[p2])); + } + var original = p2, seenLinks = {}, knownHard = {}; + var pos; + var current; + var base; + var previous; + start2(); + function start2() { + var m4 = splitRootRe.exec(p2); + pos = m4[0].length; + current = m4[0]; + base = m4[0]; + previous = ""; + if (isWindows && !knownHard[base]) { + fs4.lstat(base, function(err) { + if (err) + return cb(err); + knownHard[base] = true; + LOOP(); + }); + } else { + process.nextTick(LOOP); + } + } + function LOOP() { + if (pos >= p2.length) { + if (cache) + cache[original] = p2; + return cb(null, p2); + } + nextPartRe.lastIndex = pos; + var result = nextPartRe.exec(p2); + previous = current; + current += result[0]; + base = previous + result[1]; + pos = nextPartRe.lastIndex; + if (knownHard[base] || cache && cache[base] === base) { + return process.nextTick(LOOP); + } + if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { + return gotResolvedLink(cache[base]); + } + return fs4.lstat(base, gotStat); + } + function gotStat(err, stat) { + if (err) + return cb(err); + if (!stat.isSymbolicLink()) { + knownHard[base] = true; + if (cache) + cache[base] = base; + return process.nextTick(LOOP); + } + if (!isWindows) { + var id2 = stat.dev.toString(32) + ":" + stat.ino.toString(32); + if (seenLinks.hasOwnProperty(id2)) { + return gotTarget(null, seenLinks[id2], base); + } + } + fs4.stat(base, function(err2) { + if (err2) + return cb(err2); + fs4.readlink(base, function(err3, target) { + if (!isWindows) + seenLinks[id2] = target; + gotTarget(err3, target); + }); + }); + } + function gotTarget(err, target, base2) { + if (err) + return cb(err); + var resolvedLink = pathModule.resolve(previous, target); + if (cache) + cache[base2] = resolvedLink; + gotResolvedLink(resolvedLink); + } + function gotResolvedLink(resolvedLink) { + p2 = pathModule.resolve(resolvedLink, p2.slice(pos)); + start2(); + } + }; + } +}); + +// node_modules/fs.realpath/index.js +var require_fs = __commonJS({ + "node_modules/fs.realpath/index.js"(exports2, module2) { + module2.exports = realpath; + realpath.realpath = realpath; + realpath.sync = realpathSync; + realpath.realpathSync = realpathSync; + realpath.monkeypatch = monkeypatch; + realpath.unmonkeypatch = unmonkeypatch; + var fs4 = require("fs"); + var origRealpath = fs4.realpath; + var origRealpathSync = fs4.realpathSync; + var version = process.version; + var ok = /^v[0-5]\./.test(version); + var old = require_old(); + function newError(er) { + return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG"); + } + function realpath(p2, cache, cb) { + if (ok) { + return origRealpath(p2, cache, cb); + } + if (typeof cache === "function") { + cb = cache; + cache = null; + } + origRealpath(p2, cache, function(er, result) { + if (newError(er)) { + old.realpath(p2, cache, cb); + } else { + cb(er, result); + } + }); + } + function realpathSync(p2, cache) { + if (ok) { + return origRealpathSync(p2, cache); + } + try { + return origRealpathSync(p2, cache); + } catch (er) { + if (newError(er)) { + return old.realpathSync(p2, cache); + } else { + throw er; + } + } + } + function monkeypatch() { + fs4.realpath = realpath; + fs4.realpathSync = realpathSync; + } + function unmonkeypatch() { + fs4.realpath = origRealpath; + fs4.realpathSync = origRealpathSync; + } + } +}); + +// node_modules/concat-map/index.js +var require_concat_map = __commonJS({ + "node_modules/concat-map/index.js"(exports2, module2) { + module2.exports = function(xs, fn) { + var res2 = []; + for (var i = 0; i < xs.length; i++) { + var x2 = fn(xs[i], i); + if (isArray(x2)) + res2.push.apply(res2, x2); + else + res2.push(x2); + } + return res2; + }; + var isArray = Array.isArray || function(xs) { + return Object.prototype.toString.call(xs) === "[object Array]"; + }; + } +}); + +// node_modules/balanced-match/index.js +var require_balanced_match = __commonJS({ + "node_modules/balanced-match/index.js"(exports2, module2) { + "use strict"; + module2.exports = balanced; + function balanced(a2, b, str) { + if (a2 instanceof RegExp) + a2 = maybeMatch(a2, str); + if (b instanceof RegExp) + b = maybeMatch(b, str); + var r4 = range(a2, b, str); + return r4 && { + start: r4[0], + end: r4[1], + pre: str.slice(0, r4[0]), + body: str.slice(r4[0] + a2.length, r4[1]), + post: str.slice(r4[1] + b.length) + }; + } + function maybeMatch(reg2, str) { + var m4 = str.match(reg2); + return m4 ? m4[0] : null; + } + balanced.range = range; + function range(a2, b, str) { + var begs, beg, left, right, result; + var ai = str.indexOf(a2); + var bi2 = str.indexOf(b, ai + 1); + var i = ai; + if (ai >= 0 && bi2 > 0) { + if (a2 === b) { + return [ai, bi2]; + } + begs = []; + left = str.length; + while (i >= 0 && !result) { + if (i == ai) { + begs.push(i); + ai = str.indexOf(a2, i + 1); + } else if (begs.length == 1) { + result = [begs.pop(), bi2]; + } else { + beg = begs.pop(); + if (beg < left) { + left = beg; + right = bi2; + } + bi2 = str.indexOf(b, i + 1); + } + i = ai < bi2 && ai >= 0 ? ai : bi2; + } + if (begs.length) { + result = [left, right]; + } + } + return result; + } + } +}); + +// node_modules/brace-expansion/index.js +var require_brace_expansion = __commonJS({ + "node_modules/brace-expansion/index.js"(exports2, module2) { + var concatMap = require_concat_map(); + var balanced = require_balanced_match(); + module2.exports = expandTop; + var escSlash = "\0SLASH" + Math.random() + "\0"; + var escOpen = "\0OPEN" + Math.random() + "\0"; + var escClose = "\0CLOSE" + Math.random() + "\0"; + var escComma = "\0COMMA" + Math.random() + "\0"; + var escPeriod = "\0PERIOD" + Math.random() + "\0"; + function numeric(str) { + return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); + } + function escapeBraces(str) { + return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); + } + function unescapeBraces(str) { + return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); + } + function parseCommaParts(str) { + if (!str) + return [""]; + var parts = []; + var m4 = balanced("{", "}", str); + if (!m4) + return str.split(","); + var pre = m4.pre; + var body = m4.body; + var post = m4.post; + var p2 = pre.split(","); + p2[p2.length - 1] += "{" + body + "}"; + var postParts = parseCommaParts(post); + if (post.length) { + p2[p2.length - 1] += postParts.shift(); + p2.push.apply(p2, postParts); + } + parts.push.apply(parts, p2); + return parts; + } + function expandTop(str) { + if (!str) + return []; + if (str.substr(0, 2) === "{}") { + str = "\\{\\}" + str.substr(2); + } + return expand(escapeBraces(str), true).map(unescapeBraces); + } + function embrace(str) { + return "{" + str + "}"; + } + function isPadded(el2) { + return /^-?0\d/.test(el2); + } + function lte(i, y3) { + return i <= y3; + } + function gte(i, y3) { + return i >= y3; + } + function expand(str, isTop) { + var expansions = []; + var m4 = balanced("{", "}", str); + if (!m4 || /\$$/.test(m4.pre)) + return [str]; + var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m4.body); + var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m4.body); + var isSequence = isNumericSequence || isAlphaSequence; + var isOptions = m4.body.indexOf(",") >= 0; + if (!isSequence && !isOptions) { + if (m4.post.match(/,.*\}/)) { + str = m4.pre + "{" + m4.body + escClose + m4.post; + return expand(str); + } + return [str]; + } + var n2; + if (isSequence) { + n2 = m4.body.split(/\.\./); + } else { + n2 = parseCommaParts(m4.body); + if (n2.length === 1) { + n2 = expand(n2[0], false).map(embrace); + if (n2.length === 1) { + var post = m4.post.length ? expand(m4.post, false) : [""]; + return post.map(function(p2) { + return m4.pre + n2[0] + p2; + }); + } + } + } + var pre = m4.pre; + var post = m4.post.length ? expand(m4.post, false) : [""]; + var N; + if (isSequence) { + var x2 = numeric(n2[0]); + var y3 = numeric(n2[1]); + var width2 = Math.max(n2[0].length, n2[1].length); + var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1; + var test = lte; + var reverse = y3 < x2; + if (reverse) { + incr *= -1; + test = gte; + } + var pad2 = n2.some(isPadded); + N = []; + for (var i = x2; test(i, y3); i += incr) { + var c3; + if (isAlphaSequence) { + c3 = String.fromCharCode(i); + if (c3 === "\\") + c3 = ""; + } else { + c3 = String(i); + if (pad2) { + var need = width2 - c3.length; + if (need > 0) { + var z = new Array(need + 1).join("0"); + if (i < 0) + c3 = "-" + z + c3.slice(1); + else + c3 = z + c3; + } + } + } + N.push(c3); + } + } else { + N = concatMap(n2, function(el2) { + return expand(el2, false); + }); + } + for (var j3 = 0; j3 < N.length; j3++) { + for (var k = 0; k < post.length; k++) { + var expansion = pre + N[j3] + post[k]; + if (!isTop || isSequence || expansion) + expansions.push(expansion); + } + } + return expansions; + } + } +}); + +// node_modules/minimatch/minimatch.js +var require_minimatch = __commonJS({ + "node_modules/minimatch/minimatch.js"(exports2, module2) { + module2.exports = minimatch; + minimatch.Minimatch = Minimatch; + var path = { sep: "/" }; + try { + path = require("path"); + } catch (er) { + } + var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; + var expand = require_brace_expansion(); + var plTypes = { + "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, + "?": { open: "(?:", close: ")?" }, + "+": { open: "(?:", close: ")+" }, + "*": { open: "(?:", close: ")*" }, + "@": { open: "(?:", close: ")" } + }; + var qmark = "[^/]"; + var star = qmark + "*?"; + var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; + var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; + var reSpecials = charSet("().*{}+?[]^$\\!"); + function charSet(s) { + return s.split("").reduce(function(set3, c3) { + set3[c3] = true; + return set3; + }, {}); + } + var slashSplit = /\/+/; + minimatch.filter = filter2; + function filter2(pattern, options) { + options = options || {}; + return function(p2, i, list) { + return minimatch(p2, pattern, options); + }; + } + function ext(a2, b) { + a2 = a2 || {}; + b = b || {}; + var t2 = {}; + Object.keys(b).forEach(function(k) { + t2[k] = b[k]; + }); + Object.keys(a2).forEach(function(k) { + t2[k] = a2[k]; + }); + return t2; + } + minimatch.defaults = function(def) { + if (!def || !Object.keys(def).length) + return minimatch; + var orig = minimatch; + var m4 = function minimatch2(p2, pattern, options) { + return orig.minimatch(p2, pattern, ext(def, options)); + }; + m4.Minimatch = function Minimatch2(pattern, options) { + return new orig.Minimatch(pattern, ext(def, options)); + }; + return m4; + }; + Minimatch.defaults = function(def) { + if (!def || !Object.keys(def).length) + return Minimatch; + return minimatch.defaults(def).Minimatch; + }; + function minimatch(p2, pattern, options) { + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } + if (!options) + options = {}; + if (!options.nocomment && pattern.charAt(0) === "#") { + return false; + } + if (pattern.trim() === "") + return p2 === ""; + return new Minimatch(pattern, options).match(p2); + } + function Minimatch(pattern, options) { + if (!(this instanceof Minimatch)) { + return new Minimatch(pattern, options); + } + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } + if (!options) + options = {}; + pattern = pattern.trim(); + if (path.sep !== "/") { + pattern = pattern.split(path.sep).join("/"); + } + this.options = options; + this.set = []; + this.pattern = pattern; + this.regexp = null; + this.negate = false; + this.comment = false; + this.empty = false; + this.make(); + } + Minimatch.prototype.debug = function() { + }; + Minimatch.prototype.make = make2; + function make2() { + if (this._made) + return; + var pattern = this.pattern; + var options = this.options; + if (!options.nocomment && pattern.charAt(0) === "#") { + this.comment = true; + return; + } + if (!pattern) { + this.empty = true; + return; + } + this.parseNegate(); + var set3 = this.globSet = this.braceExpand(); + if (options.debug) + this.debug = console.error; + this.debug(this.pattern, set3); + set3 = this.globParts = set3.map(function(s) { + return s.split(slashSplit); + }); + this.debug(this.pattern, set3); + set3 = set3.map(function(s, si, set4) { + return s.map(this.parse, this); + }, this); + this.debug(this.pattern, set3); + set3 = set3.filter(function(s) { + return s.indexOf(false) === -1; + }); + this.debug(this.pattern, set3); + this.set = set3; + } + Minimatch.prototype.parseNegate = parseNegate; + function parseNegate() { + var pattern = this.pattern; + var negate = false; + var options = this.options; + var negateOffset = 0; + if (options.nonegate) + return; + for (var i = 0, l2 = pattern.length; i < l2 && pattern.charAt(i) === "!"; i++) { + negate = !negate; + negateOffset++; + } + if (negateOffset) + this.pattern = pattern.substr(negateOffset); + this.negate = negate; + } + minimatch.braceExpand = function(pattern, options) { + return braceExpand(pattern, options); + }; + Minimatch.prototype.braceExpand = braceExpand; + function braceExpand(pattern, options) { + if (!options) { + if (this instanceof Minimatch) { + options = this.options; + } else { + options = {}; + } + } + pattern = typeof pattern === "undefined" ? this.pattern : pattern; + if (typeof pattern === "undefined") { + throw new TypeError("undefined pattern"); + } + if (options.nobrace || !pattern.match(/\{.*\}/)) { + return [pattern]; + } + return expand(pattern); + } + Minimatch.prototype.parse = parse; + var SUBPARSE = {}; + function parse(pattern, isSub) { + if (pattern.length > 1024 * 64) { + throw new TypeError("pattern is too long"); + } + var options = this.options; + if (!options.noglobstar && pattern === "**") + return GLOBSTAR; + if (pattern === "") + return ""; + var re3 = ""; + var hasMagic = !!options.nocase; + var escaping = false; + var patternListStack = []; + var negativeLists = []; + var stateChar; + var inClass = false; + var reClassStart = -1; + var classStart = -1; + var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; + var self3 = this; + function clearStateChar() { + if (stateChar) { + switch (stateChar) { + case "*": + re3 += star; + hasMagic = true; + break; + case "?": + re3 += qmark; + hasMagic = true; + break; + default: + re3 += "\\" + stateChar; + break; + } + self3.debug("clearStateChar %j %j", stateChar, re3); + stateChar = false; + } + } + for (var i = 0, len = pattern.length, c3; i < len && (c3 = pattern.charAt(i)); i++) { + this.debug("%s %s %s %j", pattern, i, re3, c3); + if (escaping && reSpecials[c3]) { + re3 += "\\" + c3; + escaping = false; + continue; + } + switch (c3) { + case "/": + return false; + case "\\": + clearStateChar(); + escaping = true; + continue; + case "?": + case "*": + case "+": + case "@": + case "!": + this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c3); + if (inClass) { + this.debug(" in class"); + if (c3 === "!" && i === classStart + 1) + c3 = "^"; + re3 += c3; + continue; + } + self3.debug("call clearStateChar %j", stateChar); + clearStateChar(); + stateChar = c3; + if (options.noext) + clearStateChar(); + continue; + case "(": + if (inClass) { + re3 += "("; + continue; + } + if (!stateChar) { + re3 += "\\("; + continue; + } + patternListStack.push({ + type: stateChar, + start: i - 1, + reStart: re3.length, + open: plTypes[stateChar].open, + close: plTypes[stateChar].close + }); + re3 += stateChar === "!" ? "(?:(?!(?:" : "(?:"; + this.debug("plType %j %j", stateChar, re3); + stateChar = false; + continue; + case ")": + if (inClass || !patternListStack.length) { + re3 += "\\)"; + continue; + } + clearStateChar(); + hasMagic = true; + var pl2 = patternListStack.pop(); + re3 += pl2.close; + if (pl2.type === "!") { + negativeLists.push(pl2); + } + pl2.reEnd = re3.length; + continue; + case "|": + if (inClass || !patternListStack.length || escaping) { + re3 += "\\|"; + escaping = false; + continue; + } + clearStateChar(); + re3 += "|"; + continue; + case "[": + clearStateChar(); + if (inClass) { + re3 += "\\" + c3; + continue; + } + inClass = true; + classStart = i; + reClassStart = re3.length; + re3 += c3; + continue; + case "]": + if (i === classStart + 1 || !inClass) { + re3 += "\\" + c3; + escaping = false; + continue; + } + if (inClass) { + var cs2 = pattern.substring(classStart + 1, i); + try { + RegExp("[" + cs2 + "]"); + } catch (er) { + var sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; + hasMagic = hasMagic || sp2[1]; + inClass = false; + continue; + } + } + hasMagic = true; + inClass = false; + re3 += c3; + continue; + default: + clearStateChar(); + if (escaping) { + escaping = false; + } else if (reSpecials[c3] && !(c3 === "^" && inClass)) { + re3 += "\\"; + } + re3 += c3; + } + } + if (inClass) { + cs2 = pattern.substr(classStart + 1); + sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0]; + hasMagic = hasMagic || sp2[1]; + } + for (pl2 = patternListStack.pop(); pl2; pl2 = patternListStack.pop()) { + var tail = re3.slice(pl2.reStart + pl2.open.length); + this.debug("setting tail", re3, pl2); + tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_10, $1, $2) { + if (!$2) { + $2 = "\\"; + } + return $1 + $1 + $2 + "|"; + }); + this.debug("tail=%j\n %s", tail, tail, pl2, re3); + var t2 = pl2.type === "*" ? star : pl2.type === "?" ? qmark : "\\" + pl2.type; + hasMagic = true; + re3 = re3.slice(0, pl2.reStart) + t2 + "\\(" + tail; + } + clearStateChar(); + if (escaping) { + re3 += "\\\\"; + } + var addPatternStart = false; + switch (re3.charAt(0)) { + case ".": + case "[": + case "(": + addPatternStart = true; + } + for (var n2 = negativeLists.length - 1; n2 > -1; n2--) { + var nl2 = negativeLists[n2]; + var nlBefore = re3.slice(0, nl2.reStart); + var nlFirst = re3.slice(nl2.reStart, nl2.reEnd - 8); + var nlLast = re3.slice(nl2.reEnd - 8, nl2.reEnd); + var nlAfter = re3.slice(nl2.reEnd); + nlLast += nlAfter; + var openParensBefore = nlBefore.split("(").length - 1; + var cleanAfter = nlAfter; + for (i = 0; i < openParensBefore; i++) { + cleanAfter = cleanAfter.replace(/\)[+*?]?/, ""); + } + nlAfter = cleanAfter; + var dollar = ""; + if (nlAfter === "" && isSub !== SUBPARSE) { + dollar = "$"; + } + var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast; + re3 = newRe; + } + if (re3 !== "" && hasMagic) { + re3 = "(?=.)" + re3; + } + if (addPatternStart) { + re3 = patternStart + re3; + } + if (isSub === SUBPARSE) { + return [re3, hasMagic]; + } + if (!hasMagic) { + return globUnescape(pattern); + } + var flags = options.nocase ? "i" : ""; + try { + var regExp = new RegExp("^" + re3 + "$", flags); + } catch (er) { + return new RegExp("$."); + } + regExp._glob = pattern; + regExp._src = re3; + return regExp; + } + minimatch.makeRe = function(pattern, options) { + return new Minimatch(pattern, options || {}).makeRe(); + }; + Minimatch.prototype.makeRe = makeRe; + function makeRe() { + if (this.regexp || this.regexp === false) + return this.regexp; + var set3 = this.set; + if (!set3.length) { + this.regexp = false; + return this.regexp; + } + var options = this.options; + var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; + var flags = options.nocase ? "i" : ""; + var re3 = set3.map(function(pattern) { + return pattern.map(function(p2) { + return p2 === GLOBSTAR ? twoStar : typeof p2 === "string" ? regExpEscape(p2) : p2._src; + }).join("\\/"); + }).join("|"); + re3 = "^(?:" + re3 + ")$"; + if (this.negate) + re3 = "^(?!" + re3 + ").*$"; + try { + this.regexp = new RegExp(re3, flags); + } catch (ex2) { + this.regexp = false; + } + return this.regexp; + } + minimatch.match = function(list, pattern, options) { + options = options || {}; + var mm2 = new Minimatch(pattern, options); + list = list.filter(function(f2) { + return mm2.match(f2); + }); + if (mm2.options.nonull && !list.length) { + list.push(pattern); + } + return list; + }; + Minimatch.prototype.match = match; + function match(f2, partial) { + this.debug("match", f2, this.pattern); + if (this.comment) + return false; + if (this.empty) + return f2 === ""; + if (f2 === "/" && partial) + return true; + var options = this.options; + if (path.sep !== "/") { + f2 = f2.split(path.sep).join("/"); + } + f2 = f2.split(slashSplit); + this.debug(this.pattern, "split", f2); + var set3 = this.set; + this.debug(this.pattern, "set", set3); + var filename; + var i; + for (i = f2.length - 1; i >= 0; i--) { + filename = f2[i]; + if (filename) + break; + } + for (i = 0; i < set3.length; i++) { + var pattern = set3[i]; + var file = f2; + if (options.matchBase && pattern.length === 1) { + file = [filename]; + } + var hit = this.matchOne(file, pattern, partial); + if (hit) { + if (options.flipNegate) + return true; + return !this.negate; + } + } + if (options.flipNegate) + return false; + return this.negate; + } + Minimatch.prototype.matchOne = function(file, pattern, partial) { + var options = this.options; + this.debug("matchOne", { "this": this, file, pattern }); + this.debug("matchOne", file.length, pattern.length); + for (var fi = 0, pi = 0, fl = file.length, pl2 = pattern.length; fi < fl && pi < pl2; fi++, pi++) { + this.debug("matchOne loop"); + var p2 = pattern[pi]; + var f2 = file[fi]; + this.debug(pattern, p2, f2); + if (p2 === false) + return false; + if (p2 === GLOBSTAR) { + this.debug("GLOBSTAR", [pattern, p2, f2]); + var fr = fi; + var pr = pi + 1; + if (pr === pl2) { + this.debug("** at the end"); + for (; fi < fl; fi++) { + if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") + return false; + } + return true; + } + while (fr < fl) { + var swallowee = file[fr]; + this.debug("\nglobstar while", file, fr, pattern, pr, swallowee); + if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { + this.debug("globstar found match!", fr, fl, swallowee); + return true; + } else { + if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") { + this.debug("dot detected!", file, fr, pattern, pr); + break; + } + this.debug("globstar swallow a segment, and continue"); + fr++; + } + } + if (partial) { + this.debug("\n>>> no match, partial?", file, fr, pattern, pr); + if (fr === fl) + return true; + } + return false; + } + var hit; + if (typeof p2 === "string") { + if (options.nocase) { + hit = f2.toLowerCase() === p2.toLowerCase(); + } else { + hit = f2 === p2; + } + this.debug("string match", p2, f2, hit); + } else { + hit = f2.match(p2); + this.debug("pattern match", p2, f2, hit); + } + if (!hit) + return false; + } + if (fi === fl && pi === pl2) { + return true; + } else if (fi === fl) { + return partial; + } else if (pi === pl2) { + var emptyFileEnd = fi === fl - 1 && file[fi] === ""; + return emptyFileEnd; + } + throw new Error("wtf?"); + }; + function globUnescape(s) { + return s.replace(/\\(.)/g, "$1"); + } + function regExpEscape(s) { + return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + } +}); + +// node_modules/inherits/inherits_browser.js +var require_inherits_browser = __commonJS({ + "node_modules/inherits/inherits_browser.js"(exports2, module2) { + if (typeof Object.create === "function") { + module2.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor; + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } + }); + } + }; + } else { + module2.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor; + var TempCtor = function() { + }; + TempCtor.prototype = superCtor.prototype; + ctor.prototype = new TempCtor(); + ctor.prototype.constructor = ctor; + } + }; + } + } +}); + +// node_modules/inherits/inherits.js +var require_inherits = __commonJS({ + "node_modules/inherits/inherits.js"(exports2, module2) { + try { + util = require("util"); + if (typeof util.inherits !== "function") + throw ""; + module2.exports = util.inherits; + } catch (e3) { + module2.exports = require_inherits_browser(); + } + var util; + } +}); + +// node_modules/path-is-absolute/index.js +var require_path_is_absolute = __commonJS({ + "node_modules/path-is-absolute/index.js"(exports2, module2) { + "use strict"; + function posix(path) { + return path.charAt(0) === "/"; + } + function win32(path) { + var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; + var result = splitDeviceRe.exec(path); + var device = result[1] || ""; + var isUnc = Boolean(device && device.charAt(1) !== ":"); + return Boolean(result[2] || isUnc); + } + module2.exports = process.platform === "win32" ? win32 : posix; + module2.exports.posix = posix; + module2.exports.win32 = win32; + } +}); + +// node_modules/glob/common.js +var require_common = __commonJS({ + "node_modules/glob/common.js"(exports2) { + exports2.setopts = setopts; + exports2.ownProp = ownProp; + exports2.makeAbs = makeAbs; + exports2.finish = finish; + exports2.mark = mark; + exports2.isIgnored = isIgnored; + exports2.childrenIgnored = childrenIgnored; + function ownProp(obj, field) { + return Object.prototype.hasOwnProperty.call(obj, field); + } + var path = require("path"); + var minimatch = require_minimatch(); + var isAbsolute = require_path_is_absolute(); + var Minimatch = minimatch.Minimatch; + function alphasort(a2, b) { + return a2.localeCompare(b, "en"); + } + function setupIgnores(self3, options) { + self3.ignore = options.ignore || []; + if (!Array.isArray(self3.ignore)) + self3.ignore = [self3.ignore]; + if (self3.ignore.length) { + self3.ignore = self3.ignore.map(ignoreMap); + } + } + function ignoreMap(pattern) { + var gmatcher = null; + if (pattern.slice(-3) === "/**") { + var gpattern = pattern.replace(/(\/\*\*)+$/, ""); + gmatcher = new Minimatch(gpattern, { dot: true }); + } + return { + matcher: new Minimatch(pattern, { dot: true }), + gmatcher + }; + } + function setopts(self3, pattern, options) { + if (!options) + options = {}; + if (options.matchBase && pattern.indexOf("/") === -1) { + if (options.noglobstar) { + throw new Error("base matching requires globstar"); + } + pattern = "**/" + pattern; + } + self3.silent = !!options.silent; + self3.pattern = pattern; + self3.strict = options.strict !== false; + self3.realpath = !!options.realpath; + self3.realpathCache = options.realpathCache || Object.create(null); + self3.follow = !!options.follow; + self3.dot = !!options.dot; + self3.mark = !!options.mark; + self3.nodir = !!options.nodir; + if (self3.nodir) + self3.mark = true; + self3.sync = !!options.sync; + self3.nounique = !!options.nounique; + self3.nonull = !!options.nonull; + self3.nosort = !!options.nosort; + self3.nocase = !!options.nocase; + self3.stat = !!options.stat; + self3.noprocess = !!options.noprocess; + self3.absolute = !!options.absolute; + self3.maxLength = options.maxLength || Infinity; + self3.cache = options.cache || Object.create(null); + self3.statCache = options.statCache || Object.create(null); + self3.symlinks = options.symlinks || Object.create(null); + setupIgnores(self3, options); + self3.changedCwd = false; + var cwd = process.cwd(); + if (!ownProp(options, "cwd")) + self3.cwd = cwd; + else { + self3.cwd = path.resolve(options.cwd); + self3.changedCwd = self3.cwd !== cwd; + } + self3.root = options.root || path.resolve(self3.cwd, "/"); + self3.root = path.resolve(self3.root); + if (process.platform === "win32") + self3.root = self3.root.replace(/\\/g, "/"); + self3.cwdAbs = isAbsolute(self3.cwd) ? self3.cwd : makeAbs(self3, self3.cwd); + if (process.platform === "win32") + self3.cwdAbs = self3.cwdAbs.replace(/\\/g, "/"); + self3.nomount = !!options.nomount; + options.nonegate = true; + options.nocomment = true; + self3.minimatch = new Minimatch(pattern, options); + self3.options = self3.minimatch.options; + } + function finish(self3) { + var nou = self3.nounique; + var all = nou ? [] : Object.create(null); + for (var i = 0, l2 = self3.matches.length; i < l2; i++) { + var matches = self3.matches[i]; + if (!matches || Object.keys(matches).length === 0) { + if (self3.nonull) { + var literal = self3.minimatch.globSet[i]; + if (nou) + all.push(literal); + else + all[literal] = true; + } + } else { + var m4 = Object.keys(matches); + if (nou) + all.push.apply(all, m4); + else + m4.forEach(function(m5) { + all[m5] = true; + }); + } + } + if (!nou) + all = Object.keys(all); + if (!self3.nosort) + all = all.sort(alphasort); + if (self3.mark) { + for (var i = 0; i < all.length; i++) { + all[i] = self3._mark(all[i]); + } + if (self3.nodir) { + all = all.filter(function(e3) { + var notDir = !/\/$/.test(e3); + var c3 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; + if (notDir && c3) + notDir = c3 !== "DIR" && !Array.isArray(c3); + return notDir; + }); + } + } + if (self3.ignore.length) + all = all.filter(function(m5) { + return !isIgnored(self3, m5); + }); + self3.found = all; + } + function mark(self3, p2) { + var abs = makeAbs(self3, p2); + var c3 = self3.cache[abs]; + var m4 = p2; + if (c3) { + var isDir = c3 === "DIR" || Array.isArray(c3); + var slash = p2.slice(-1) === "/"; + if (isDir && !slash) + m4 += "/"; + else if (!isDir && slash) + m4 = m4.slice(0, -1); + if (m4 !== p2) { + var mabs = makeAbs(self3, m4); + self3.statCache[mabs] = self3.statCache[abs]; + self3.cache[mabs] = self3.cache[abs]; + } + } + return m4; + } + function makeAbs(self3, f2) { + var abs = f2; + if (f2.charAt(0) === "/") { + abs = path.join(self3.root, f2); + } else if (isAbsolute(f2) || f2 === "") { + abs = f2; + } else if (self3.changedCwd) { + abs = path.resolve(self3.cwd, f2); + } else { + abs = path.resolve(f2); + } + if (process.platform === "win32") + abs = abs.replace(/\\/g, "/"); + return abs; + } + function isIgnored(self3, path2) { + if (!self3.ignore.length) + return false; + return self3.ignore.some(function(item) { + return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2)); + }); + } + function childrenIgnored(self3, path2) { + if (!self3.ignore.length) + return false; + return self3.ignore.some(function(item) { + return !!(item.gmatcher && item.gmatcher.match(path2)); + }); + } + } +}); + +// node_modules/glob/sync.js +var require_sync = __commonJS({ + "node_modules/glob/sync.js"(exports2, module2) { + module2.exports = globSync; + globSync.GlobSync = GlobSync; + var fs4 = require("fs"); + var rp = require_fs(); + var minimatch = require_minimatch(); + var Minimatch = minimatch.Minimatch; + var Glob = require_glob().Glob; + var util = require("util"); + var path = require("path"); + var assert = require("assert"); + var isAbsolute = require_path_is_absolute(); + var common = require_common(); + var setopts = common.setopts; + var ownProp = common.ownProp; + var childrenIgnored = common.childrenIgnored; + var isIgnored = common.isIgnored; + function globSync(pattern, options) { + if (typeof options === "function" || arguments.length === 3) + throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); + return new GlobSync(pattern, options).found; + } + function GlobSync(pattern, options) { + if (!pattern) + throw new Error("must provide pattern"); + if (typeof options === "function" || arguments.length === 3) + throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); + if (!(this instanceof GlobSync)) + return new GlobSync(pattern, options); + setopts(this, pattern, options); + if (this.noprocess) + return this; + var n2 = this.minimatch.set.length; + this.matches = new Array(n2); + for (var i = 0; i < n2; i++) { + this._process(this.minimatch.set[i], i, false); + } + this._finish(); + } + GlobSync.prototype._finish = function() { + assert(this instanceof GlobSync); + if (this.realpath) { + var self3 = this; + this.matches.forEach(function(matchset, index) { + var set3 = self3.matches[index] = Object.create(null); + for (var p2 in matchset) { + try { + p2 = self3._makeAbs(p2); + var real = rp.realpathSync(p2, self3.realpathCache); + set3[real] = true; + } catch (er) { + if (er.syscall === "stat") + set3[self3._makeAbs(p2)] = true; + else + throw er; + } + } + }); + } + common.finish(this); + }; + GlobSync.prototype._process = function(pattern, index, inGlobStar) { + assert(this instanceof GlobSync); + var n2 = 0; + while (typeof pattern[n2] === "string") { + n2++; + } + var prefix; + switch (n2) { + case pattern.length: + this._processSimple(pattern.join("/"), index); + return; + case 0: + prefix = null; + break; + default: + prefix = pattern.slice(0, n2).join("/"); + break; + } + var remain = pattern.slice(n2); + var read; + if (prefix === null) + read = "."; + else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + if (!prefix || !isAbsolute(prefix)) + prefix = "/" + prefix; + read = prefix; + } else + read = prefix; + var abs = this._makeAbs(read); + if (childrenIgnored(this, read)) + return; + var isGlobStar = remain[0] === minimatch.GLOBSTAR; + if (isGlobStar) + this._processGlobStar(prefix, read, abs, remain, index, inGlobStar); + else + this._processReaddir(prefix, read, abs, remain, index, inGlobStar); + }; + GlobSync.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar) { + var entries2 = this._readdir(abs, inGlobStar); + if (!entries2) + return; + var pn = remain[0]; + var negate = !!this.minimatch.negate; + var rawGlob = pn._glob; + var dotOk = this.dot || rawGlob.charAt(0) === "."; + var matchedEntries = []; + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) !== "." || dotOk) { + var m4; + if (negate && !prefix) { + m4 = !e3.match(pn); + } else { + m4 = e3.match(pn); + } + if (m4) + matchedEntries.push(e3); + } + } + var len = matchedEntries.length; + if (len === 0) + return; + if (remain.length === 1 && !this.mark && !this.stat) { + if (!this.matches[index]) + this.matches[index] = Object.create(null); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + if (prefix) { + if (prefix.slice(-1) !== "/") + e3 = prefix + "/" + e3; + else + e3 = prefix + e3; + } + if (e3.charAt(0) === "/" && !this.nomount) { + e3 = path.join(this.root, e3); + } + this._emitMatch(index, e3); + } + return; + } + remain.shift(); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + var newPattern; + if (prefix) + newPattern = [prefix, e3]; + else + newPattern = [e3]; + this._process(newPattern.concat(remain), index, inGlobStar); + } + }; + GlobSync.prototype._emitMatch = function(index, e3) { + if (isIgnored(this, e3)) + return; + var abs = this._makeAbs(e3); + if (this.mark) + e3 = this._mark(e3); + if (this.absolute) { + e3 = abs; + } + if (this.matches[index][e3]) + return; + if (this.nodir) { + var c3 = this.cache[abs]; + if (c3 === "DIR" || Array.isArray(c3)) + return; + } + this.matches[index][e3] = true; + if (this.stat) + this._stat(e3); + }; + GlobSync.prototype._readdirInGlobStar = function(abs) { + if (this.follow) + return this._readdir(abs, false); + var entries2; + var lstat; + var stat; + try { + lstat = fs4.lstatSync(abs); + } catch (er) { + if (er.code === "ENOENT") { + return null; + } + } + var isSym = lstat && lstat.isSymbolicLink(); + this.symlinks[abs] = isSym; + if (!isSym && lstat && !lstat.isDirectory()) + this.cache[abs] = "FILE"; + else + entries2 = this._readdir(abs, false); + return entries2; + }; + GlobSync.prototype._readdir = function(abs, inGlobStar) { + var entries2; + if (inGlobStar && !ownProp(this.symlinks, abs)) + return this._readdirInGlobStar(abs); + if (ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (!c3 || c3 === "FILE") + return null; + if (Array.isArray(c3)) + return c3; + } + try { + return this._readdirEntries(abs, fs4.readdirSync(abs)); + } catch (er) { + this._readdirError(abs, er); + return null; + } + }; + GlobSync.prototype._readdirEntries = function(abs, entries2) { + if (!this.mark && !this.stat) { + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (abs === "/") + e3 = abs + e3; + else + e3 = abs + "/" + e3; + this.cache[e3] = true; + } + } + this.cache[abs] = entries2; + return entries2; + }; + GlobSync.prototype._readdirError = function(f2, er) { + switch (er.code) { + case "ENOTSUP": + case "ENOTDIR": + var abs = this._makeAbs(f2); + this.cache[abs] = "FILE"; + if (abs === this.cwdAbs) { + var error = new Error(er.code + " invalid cwd " + this.cwd); + error.path = this.cwd; + error.code = er.code; + throw error; + } + break; + case "ENOENT": + case "ELOOP": + case "ENAMETOOLONG": + case "UNKNOWN": + this.cache[this._makeAbs(f2)] = false; + break; + default: + this.cache[this._makeAbs(f2)] = false; + if (this.strict) + throw er; + if (!this.silent) + console.error("glob error", er); + break; + } + }; + GlobSync.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar) { + var entries2 = this._readdir(abs, inGlobStar); + if (!entries2) + return; + var remainWithoutGlobStar = remain.slice(1); + var gspref = prefix ? [prefix] : []; + var noGlobStar = gspref.concat(remainWithoutGlobStar); + this._process(noGlobStar, index, false); + var len = entries2.length; + var isSym = this.symlinks[abs]; + if (isSym && inGlobStar) + return; + for (var i = 0; i < len; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) === "." && !this.dot) + continue; + var instead = gspref.concat(entries2[i], remainWithoutGlobStar); + this._process(instead, index, true); + var below = gspref.concat(entries2[i], remain); + this._process(below, index, true); + } + }; + GlobSync.prototype._processSimple = function(prefix, index) { + var exists = this._stat(prefix); + if (!this.matches[index]) + this.matches[index] = Object.create(null); + if (!exists) + return; + if (prefix && isAbsolute(prefix) && !this.nomount) { + var trail = /[\/\\]$/.test(prefix); + if (prefix.charAt(0) === "/") { + prefix = path.join(this.root, prefix); + } else { + prefix = path.resolve(this.root, prefix); + if (trail) + prefix += "/"; + } + } + if (process.platform === "win32") + prefix = prefix.replace(/\\/g, "/"); + this._emitMatch(index, prefix); + }; + GlobSync.prototype._stat = function(f2) { + var abs = this._makeAbs(f2); + var needDir = f2.slice(-1) === "/"; + if (f2.length > this.maxLength) + return false; + if (!this.stat && ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (Array.isArray(c3)) + c3 = "DIR"; + if (!needDir || c3 === "DIR") + return c3; + if (needDir && c3 === "FILE") + return false; + } + var exists; + var stat = this.statCache[abs]; + if (!stat) { + var lstat; + try { + lstat = fs4.lstatSync(abs); + } catch (er) { + if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { + this.statCache[abs] = false; + return false; + } + } + if (lstat && lstat.isSymbolicLink()) { + try { + stat = fs4.statSync(abs); + } catch (er) { + stat = lstat; + } + } else { + stat = lstat; + } + } + this.statCache[abs] = stat; + var c3 = true; + if (stat) + c3 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c3; + if (needDir && c3 === "FILE") + return false; + return c3; + }; + GlobSync.prototype._mark = function(p2) { + return common.mark(this, p2); + }; + GlobSync.prototype._makeAbs = function(f2) { + return common.makeAbs(this, f2); + }; + } +}); + +// node_modules/wrappy/wrappy.js +var require_wrappy = __commonJS({ + "node_modules/wrappy/wrappy.js"(exports2, module2) { + module2.exports = wrappy; + function wrappy(fn, cb) { + if (fn && cb) + return wrappy(fn)(cb); + if (typeof fn !== "function") + throw new TypeError("need wrapper function"); + Object.keys(fn).forEach(function(k) { + wrapper[k] = fn[k]; + }); + return wrapper; + function wrapper() { + var args = new Array(arguments.length); + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i]; + } + var ret = fn.apply(this, args); + var cb2 = args[args.length - 1]; + if (typeof ret === "function" && ret !== cb2) { + Object.keys(cb2).forEach(function(k) { + ret[k] = cb2[k]; + }); + } + return ret; + } + } + } +}); + +// node_modules/once/once.js +var require_once = __commonJS({ + "node_modules/once/once.js"(exports2, module2) { + var wrappy = require_wrappy(); + module2.exports = wrappy(once); + module2.exports.strict = wrappy(onceStrict); + once.proto = once(function() { + Object.defineProperty(Function.prototype, "once", { + value: function() { + return once(this); + }, + configurable: true + }); + Object.defineProperty(Function.prototype, "onceStrict", { + value: function() { + return onceStrict(this); + }, + configurable: true + }); + }); + function once(fn) { + var f2 = function() { + if (f2.called) + return f2.value; + f2.called = true; + return f2.value = fn.apply(this, arguments); + }; + f2.called = false; + return f2; + } + function onceStrict(fn) { + var f2 = function() { + if (f2.called) + throw new Error(f2.onceError); + f2.called = true; + return f2.value = fn.apply(this, arguments); + }; + var name = fn.name || "Function wrapped with `once`"; + f2.onceError = name + " shouldn't be called more than once"; + f2.called = false; + return f2; + } + } +}); + +// node_modules/inflight/inflight.js +var require_inflight = __commonJS({ + "node_modules/inflight/inflight.js"(exports2, module2) { + var wrappy = require_wrappy(); + var reqs = Object.create(null); + var once = require_once(); + module2.exports = wrappy(inflight); + function inflight(key, cb) { + if (reqs[key]) { + reqs[key].push(cb); + return null; + } else { + reqs[key] = [cb]; + return makeres(key); + } + } + function makeres(key) { + return once(function RES() { + var cbs = reqs[key]; + var len = cbs.length; + var args = slice(arguments); + try { + for (var i = 0; i < len; i++) { + cbs[i].apply(null, args); + } + } finally { + if (cbs.length > len) { + cbs.splice(0, len); + process.nextTick(function() { + RES.apply(null, args); + }); + } else { + delete reqs[key]; + } + } + }); + } + function slice(args) { + var length = args.length; + var array2 = []; + for (var i = 0; i < length; i++) + array2[i] = args[i]; + return array2; + } + } +}); + +// node_modules/glob/glob.js +var require_glob = __commonJS({ + "node_modules/glob/glob.js"(exports2, module2) { + module2.exports = glob; + var fs4 = require("fs"); + var rp = require_fs(); + var minimatch = require_minimatch(); + var Minimatch = minimatch.Minimatch; + var inherits = require_inherits(); + var EE = require("events").EventEmitter; + var path = require("path"); + var assert = require("assert"); + var isAbsolute = require_path_is_absolute(); + var globSync = require_sync(); + var common = require_common(); + var setopts = common.setopts; + var ownProp = common.ownProp; + var inflight = require_inflight(); + var util = require("util"); + var childrenIgnored = common.childrenIgnored; + var isIgnored = common.isIgnored; + var once = require_once(); + function glob(pattern, options, cb) { + if (typeof options === "function") + cb = options, options = {}; + if (!options) + options = {}; + if (options.sync) { + if (cb) + throw new TypeError("callback provided to sync glob"); + return globSync(pattern, options); + } + return new Glob(pattern, options, cb); + } + glob.sync = globSync; + var GlobSync = glob.GlobSync = globSync.GlobSync; + glob.glob = glob; + function extend2(origin, add2) { + if (add2 === null || typeof add2 !== "object") { + return origin; + } + var keys = Object.keys(add2); + var i = keys.length; + while (i--) { + origin[keys[i]] = add2[keys[i]]; + } + return origin; + } + glob.hasMagic = function(pattern, options_) { + var options = extend2({}, options_); + options.noprocess = true; + var g2 = new Glob(pattern, options); + var set3 = g2.minimatch.set; + if (!pattern) + return false; + if (set3.length > 1) + return true; + for (var j3 = 0; j3 < set3[0].length; j3++) { + if (typeof set3[0][j3] !== "string") + return true; + } + return false; + }; + glob.Glob = Glob; + inherits(Glob, EE); + function Glob(pattern, options, cb) { + if (typeof options === "function") { + cb = options; + options = null; + } + if (options && options.sync) { + if (cb) + throw new TypeError("callback provided to sync glob"); + return new GlobSync(pattern, options); + } + if (!(this instanceof Glob)) + return new Glob(pattern, options, cb); + setopts(this, pattern, options); + this._didRealPath = false; + var n2 = this.minimatch.set.length; + this.matches = new Array(n2); + if (typeof cb === "function") { + cb = once(cb); + this.on("error", cb); + this.on("end", function(matches) { + cb(null, matches); + }); + } + var self3 = this; + this._processing = 0; + this._emitQueue = []; + this._processQueue = []; + this.paused = false; + if (this.noprocess) + return this; + if (n2 === 0) + return done(); + var sync = true; + for (var i = 0; i < n2; i++) { + this._process(this.minimatch.set[i], i, false, done); + } + sync = false; + function done() { + --self3._processing; + if (self3._processing <= 0) { + if (sync) { + process.nextTick(function() { + self3._finish(); + }); + } else { + self3._finish(); + } + } + } + } + Glob.prototype._finish = function() { + assert(this instanceof Glob); + if (this.aborted) + return; + if (this.realpath && !this._didRealpath) + return this._realpath(); + common.finish(this); + this.emit("end", this.found); + }; + Glob.prototype._realpath = function() { + if (this._didRealpath) + return; + this._didRealpath = true; + var n2 = this.matches.length; + if (n2 === 0) + return this._finish(); + var self3 = this; + for (var i = 0; i < this.matches.length; i++) + this._realpathSet(i, next); + function next() { + if (--n2 === 0) + self3._finish(); + } + }; + Glob.prototype._realpathSet = function(index, cb) { + var matchset = this.matches[index]; + if (!matchset) + return cb(); + var found = Object.keys(matchset); + var self3 = this; + var n2 = found.length; + if (n2 === 0) + return cb(); + var set3 = this.matches[index] = Object.create(null); + found.forEach(function(p2, i) { + p2 = self3._makeAbs(p2); + rp.realpath(p2, self3.realpathCache, function(er, real) { + if (!er) + set3[real] = true; + else if (er.syscall === "stat") + set3[p2] = true; + else + self3.emit("error", er); + if (--n2 === 0) { + self3.matches[index] = set3; + cb(); + } + }); + }); + }; + Glob.prototype._mark = function(p2) { + return common.mark(this, p2); + }; + Glob.prototype._makeAbs = function(f2) { + return common.makeAbs(this, f2); + }; + Glob.prototype.abort = function() { + this.aborted = true; + this.emit("abort"); + }; + Glob.prototype.pause = function() { + if (!this.paused) { + this.paused = true; + this.emit("pause"); + } + }; + Glob.prototype.resume = function() { + if (this.paused) { + this.emit("resume"); + this.paused = false; + if (this._emitQueue.length) { + var eq2 = this._emitQueue.slice(0); + this._emitQueue.length = 0; + for (var i = 0; i < eq2.length; i++) { + var e3 = eq2[i]; + this._emitMatch(e3[0], e3[1]); + } + } + if (this._processQueue.length) { + var pq = this._processQueue.slice(0); + this._processQueue.length = 0; + for (var i = 0; i < pq.length; i++) { + var p2 = pq[i]; + this._processing--; + this._process(p2[0], p2[1], p2[2], p2[3]); + } + } + } + }; + Glob.prototype._process = function(pattern, index, inGlobStar, cb) { + assert(this instanceof Glob); + assert(typeof cb === "function"); + if (this.aborted) + return; + this._processing++; + if (this.paused) { + this._processQueue.push([pattern, index, inGlobStar, cb]); + return; + } + var n2 = 0; + while (typeof pattern[n2] === "string") { + n2++; + } + var prefix; + switch (n2) { + case pattern.length: + this._processSimple(pattern.join("/"), index, cb); + return; + case 0: + prefix = null; + break; + default: + prefix = pattern.slice(0, n2).join("/"); + break; + } + var remain = pattern.slice(n2); + var read; + if (prefix === null) + read = "."; + else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + if (!prefix || !isAbsolute(prefix)) + prefix = "/" + prefix; + read = prefix; + } else + read = prefix; + var abs = this._makeAbs(read); + if (childrenIgnored(this, read)) + return cb(); + var isGlobStar = remain[0] === minimatch.GLOBSTAR; + if (isGlobStar) + this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb); + else + this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb); + }; + Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) { + var self3 = this; + this._readdir(abs, inGlobStar, function(er, entries2) { + return self3._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries2, cb); + }); + }; + Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries2, cb) { + if (!entries2) + return cb(); + var pn = remain[0]; + var negate = !!this.minimatch.negate; + var rawGlob = pn._glob; + var dotOk = this.dot || rawGlob.charAt(0) === "."; + var matchedEntries = []; + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) !== "." || dotOk) { + var m4; + if (negate && !prefix) { + m4 = !e3.match(pn); + } else { + m4 = e3.match(pn); + } + if (m4) + matchedEntries.push(e3); + } + } + var len = matchedEntries.length; + if (len === 0) + return cb(); + if (remain.length === 1 && !this.mark && !this.stat) { + if (!this.matches[index]) + this.matches[index] = Object.create(null); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + if (prefix) { + if (prefix !== "/") + e3 = prefix + "/" + e3; + else + e3 = prefix + e3; + } + if (e3.charAt(0) === "/" && !this.nomount) { + e3 = path.join(this.root, e3); + } + this._emitMatch(index, e3); + } + return cb(); + } + remain.shift(); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + var newPattern; + if (prefix) { + if (prefix !== "/") + e3 = prefix + "/" + e3; + else + e3 = prefix + e3; + } + this._process([e3].concat(remain), index, inGlobStar, cb); + } + cb(); + }; + Glob.prototype._emitMatch = function(index, e3) { + if (this.aborted) + return; + if (isIgnored(this, e3)) + return; + if (this.paused) { + this._emitQueue.push([index, e3]); + return; + } + var abs = isAbsolute(e3) ? e3 : this._makeAbs(e3); + if (this.mark) + e3 = this._mark(e3); + if (this.absolute) + e3 = abs; + if (this.matches[index][e3]) + return; + if (this.nodir) { + var c3 = this.cache[abs]; + if (c3 === "DIR" || Array.isArray(c3)) + return; + } + this.matches[index][e3] = true; + var st2 = this.statCache[abs]; + if (st2) + this.emit("stat", e3, st2); + this.emit("match", e3); + }; + Glob.prototype._readdirInGlobStar = function(abs, cb) { + if (this.aborted) + return; + if (this.follow) + return this._readdir(abs, false, cb); + var lstatkey = "lstat\0" + abs; + var self3 = this; + var lstatcb = inflight(lstatkey, lstatcb_); + if (lstatcb) + fs4.lstat(abs, lstatcb); + function lstatcb_(er, lstat) { + if (er && er.code === "ENOENT") + return cb(); + var isSym = lstat && lstat.isSymbolicLink(); + self3.symlinks[abs] = isSym; + if (!isSym && lstat && !lstat.isDirectory()) { + self3.cache[abs] = "FILE"; + cb(); + } else + self3._readdir(abs, false, cb); + } + }; + Glob.prototype._readdir = function(abs, inGlobStar, cb) { + if (this.aborted) + return; + cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb); + if (!cb) + return; + if (inGlobStar && !ownProp(this.symlinks, abs)) + return this._readdirInGlobStar(abs, cb); + if (ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (!c3 || c3 === "FILE") + return cb(); + if (Array.isArray(c3)) + return cb(null, c3); + } + var self3 = this; + fs4.readdir(abs, readdirCb(this, abs, cb)); + }; + function readdirCb(self3, abs, cb) { + return function(er, entries2) { + if (er) + self3._readdirError(abs, er, cb); + else + self3._readdirEntries(abs, entries2, cb); + }; + } + Glob.prototype._readdirEntries = function(abs, entries2, cb) { + if (this.aborted) + return; + if (!this.mark && !this.stat) { + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (abs === "/") + e3 = abs + e3; + else + e3 = abs + "/" + e3; + this.cache[e3] = true; + } + } + this.cache[abs] = entries2; + return cb(null, entries2); + }; + Glob.prototype._readdirError = function(f2, er, cb) { + if (this.aborted) + return; + switch (er.code) { + case "ENOTSUP": + case "ENOTDIR": + var abs = this._makeAbs(f2); + this.cache[abs] = "FILE"; + if (abs === this.cwdAbs) { + var error = new Error(er.code + " invalid cwd " + this.cwd); + error.path = this.cwd; + error.code = er.code; + this.emit("error", error); + this.abort(); + } + break; + case "ENOENT": + case "ELOOP": + case "ENAMETOOLONG": + case "UNKNOWN": + this.cache[this._makeAbs(f2)] = false; + break; + default: + this.cache[this._makeAbs(f2)] = false; + if (this.strict) { + this.emit("error", er); + this.abort(); + } + if (!this.silent) + console.error("glob error", er); + break; + } + return cb(); + }; + Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) { + var self3 = this; + this._readdir(abs, inGlobStar, function(er, entries2) { + self3._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries2, cb); + }); + }; + Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries2, cb) { + if (!entries2) + return cb(); + var remainWithoutGlobStar = remain.slice(1); + var gspref = prefix ? [prefix] : []; + var noGlobStar = gspref.concat(remainWithoutGlobStar); + this._process(noGlobStar, index, false, cb); + var isSym = this.symlinks[abs]; + var len = entries2.length; + if (isSym && inGlobStar) + return cb(); + for (var i = 0; i < len; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) === "." && !this.dot) + continue; + var instead = gspref.concat(entries2[i], remainWithoutGlobStar); + this._process(instead, index, true, cb); + var below = gspref.concat(entries2[i], remain); + this._process(below, index, true, cb); + } + cb(); + }; + Glob.prototype._processSimple = function(prefix, index, cb) { + var self3 = this; + this._stat(prefix, function(er, exists) { + self3._processSimple2(prefix, index, er, exists, cb); + }); + }; + Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) { + if (!this.matches[index]) + this.matches[index] = Object.create(null); + if (!exists) + return cb(); + if (prefix && isAbsolute(prefix) && !this.nomount) { + var trail = /[\/\\]$/.test(prefix); + if (prefix.charAt(0) === "/") { + prefix = path.join(this.root, prefix); + } else { + prefix = path.resolve(this.root, prefix); + if (trail) + prefix += "/"; + } + } + if (process.platform === "win32") + prefix = prefix.replace(/\\/g, "/"); + this._emitMatch(index, prefix); + cb(); + }; + Glob.prototype._stat = function(f2, cb) { + var abs = this._makeAbs(f2); + var needDir = f2.slice(-1) === "/"; + if (f2.length > this.maxLength) + return cb(); + if (!this.stat && ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (Array.isArray(c3)) + c3 = "DIR"; + if (!needDir || c3 === "DIR") + return cb(null, c3); + if (needDir && c3 === "FILE") + return cb(); + } + var exists; + var stat = this.statCache[abs]; + if (stat !== void 0) { + if (stat === false) + return cb(null, stat); + else { + var type2 = stat.isDirectory() ? "DIR" : "FILE"; + if (needDir && type2 === "FILE") + return cb(); + else + return cb(null, type2, stat); + } + } + var self3 = this; + var statcb = inflight("stat\0" + abs, lstatcb_); + if (statcb) + fs4.lstat(abs, statcb); + function lstatcb_(er, lstat) { + if (lstat && lstat.isSymbolicLink()) { + return fs4.stat(abs, function(er2, stat2) { + if (er2) + self3._stat2(f2, abs, null, lstat, cb); + else + self3._stat2(f2, abs, er2, stat2, cb); + }); + } else { + self3._stat2(f2, abs, er, lstat, cb); + } + } + }; + Glob.prototype._stat2 = function(f2, abs, er, stat, cb) { + if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { + this.statCache[abs] = false; + return cb(); + } + var needDir = f2.slice(-1) === "/"; + this.statCache[abs] = stat; + if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) + return cb(null, false, stat); + var c3 = true; + if (stat) + c3 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c3; + if (needDir && c3 === "FILE") + return cb(); + return cb(null, c3, stat); + }; + } +}); + +// node_modules/rimraf/rimraf.js +var require_rimraf = __commonJS({ + "node_modules/rimraf/rimraf.js"(exports2, module2) { + module2.exports = rimraf; + rimraf.sync = rimrafSync; + var assert = require("assert"); + var path = require("path"); + var fs4 = require("fs"); + var glob = void 0; + try { + glob = require_glob(); + } catch (_err) { + } + var _0666 = parseInt("666", 8); + var defaultGlobOpts = { + nosort: true, + silent: true + }; + var timeout2 = 0; + var isWindows = process.platform === "win32"; + function defaults(options) { + var methods = [ + "unlink", + "chmod", + "stat", + "lstat", + "rmdir", + "readdir" + ]; + methods.forEach(function(m4) { + options[m4] = options[m4] || fs4[m4]; + m4 = m4 + "Sync"; + options[m4] = options[m4] || fs4[m4]; + }); + options.maxBusyTries = options.maxBusyTries || 3; + options.emfileWait = options.emfileWait || 1e3; + if (options.glob === false) { + options.disableGlob = true; + } + if (options.disableGlob !== true && glob === void 0) { + throw Error("glob dependency not found, set `options.disableGlob = true` if intentional"); + } + options.disableGlob = options.disableGlob || false; + options.glob = options.glob || defaultGlobOpts; + } + function rimraf(p2, options, cb) { + if (typeof options === "function") { + cb = options; + options = {}; + } + assert(p2, "rimraf: missing path"); + assert.equal(typeof p2, "string", "rimraf: path should be a string"); + assert.equal(typeof cb, "function", "rimraf: callback function required"); + assert(options, "rimraf: invalid options argument provided"); + assert.equal(typeof options, "object", "rimraf: options should be object"); + defaults(options); + var busyTries = 0; + var errState = null; + var n2 = 0; + if (options.disableGlob || !glob.hasMagic(p2)) + return afterGlob(null, [p2]); + options.lstat(p2, function(er, stat) { + if (!er) + return afterGlob(null, [p2]); + glob(p2, options.glob, afterGlob); + }); + function next(er) { + errState = errState || er; + if (--n2 === 0) + cb(errState); + } + function afterGlob(er, results) { + if (er) + return cb(er); + n2 = results.length; + if (n2 === 0) + return cb(); + results.forEach(function(p3) { + rimraf_(p3, options, function CB(er2) { + if (er2) { + if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries) { + busyTries++; + var time = busyTries * 100; + return setTimeout(function() { + rimraf_(p3, options, CB); + }, time); + } + if (er2.code === "EMFILE" && timeout2 < options.emfileWait) { + return setTimeout(function() { + rimraf_(p3, options, CB); + }, timeout2++); + } + if (er2.code === "ENOENT") + er2 = null; + } + timeout2 = 0; + next(er2); + }); + }); + } + } + function rimraf_(p2, options, cb) { + assert(p2); + assert(options); + assert(typeof cb === "function"); + options.lstat(p2, function(er, st2) { + if (er && er.code === "ENOENT") + return cb(null); + if (er && er.code === "EPERM" && isWindows) + fixWinEPERM(p2, options, er, cb); + if (st2 && st2.isDirectory()) + return rmdir(p2, options, er, cb); + options.unlink(p2, function(er2) { + if (er2) { + if (er2.code === "ENOENT") + return cb(null); + if (er2.code === "EPERM") + return isWindows ? fixWinEPERM(p2, options, er2, cb) : rmdir(p2, options, er2, cb); + if (er2.code === "EISDIR") + return rmdir(p2, options, er2, cb); + } + return cb(er2); + }); + }); + } + function fixWinEPERM(p2, options, er, cb) { + assert(p2); + assert(options); + assert(typeof cb === "function"); + if (er) + assert(er instanceof Error); + options.chmod(p2, _0666, function(er2) { + if (er2) + cb(er2.code === "ENOENT" ? null : er); + else + options.stat(p2, function(er3, stats) { + if (er3) + cb(er3.code === "ENOENT" ? null : er); + else if (stats.isDirectory()) + rmdir(p2, options, er, cb); + else + options.unlink(p2, cb); + }); + }); + } + function fixWinEPERMSync(p2, options, er) { + assert(p2); + assert(options); + if (er) + assert(er instanceof Error); + try { + options.chmodSync(p2, _0666); + } catch (er2) { + if (er2.code === "ENOENT") + return; + else + throw er; + } + try { + var stats = options.statSync(p2); + } catch (er3) { + if (er3.code === "ENOENT") + return; + else + throw er; + } + if (stats.isDirectory()) + rmdirSync(p2, options, er); + else + options.unlinkSync(p2); + } + function rmdir(p2, options, originalEr, cb) { + assert(p2); + assert(options); + if (originalEr) + assert(originalEr instanceof Error); + assert(typeof cb === "function"); + options.rmdir(p2, function(er) { + if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) + rmkids(p2, options, cb); + else if (er && er.code === "ENOTDIR") + cb(originalEr); + else + cb(er); + }); + } + function rmkids(p2, options, cb) { + assert(p2); + assert(options); + assert(typeof cb === "function"); + options.readdir(p2, function(er, files) { + if (er) + return cb(er); + var n2 = files.length; + if (n2 === 0) + return options.rmdir(p2, cb); + var errState; + files.forEach(function(f2) { + rimraf(path.join(p2, f2), options, function(er2) { + if (errState) + return; + if (er2) + return cb(errState = er2); + if (--n2 === 0) + options.rmdir(p2, cb); + }); + }); + }); + } + function rimrafSync(p2, options) { + options = options || {}; + defaults(options); + assert(p2, "rimraf: missing path"); + assert.equal(typeof p2, "string", "rimraf: path should be a string"); + assert(options, "rimraf: missing options"); + assert.equal(typeof options, "object", "rimraf: options should be object"); + var results; + if (options.disableGlob || !glob.hasMagic(p2)) { + results = [p2]; + } else { + try { + options.lstatSync(p2); + results = [p2]; + } catch (er) { + results = glob.sync(p2, options.glob); + } + } + if (!results.length) + return; + for (var i = 0; i < results.length; i++) { + var p2 = results[i]; + try { + var st2 = options.lstatSync(p2); + } catch (er) { + if (er.code === "ENOENT") + return; + if (er.code === "EPERM" && isWindows) + fixWinEPERMSync(p2, options, er); + } + try { + if (st2 && st2.isDirectory()) + rmdirSync(p2, options, null); + else + options.unlinkSync(p2); + } catch (er) { + if (er.code === "ENOENT") + return; + if (er.code === "EPERM") + return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er); + if (er.code !== "EISDIR") + throw er; + rmdirSync(p2, options, er); + } + } + } + function rmdirSync(p2, options, originalEr) { + assert(p2); + assert(options); + if (originalEr) + assert(originalEr instanceof Error); + try { + options.rmdirSync(p2); + } catch (er) { + if (er.code === "ENOENT") + return; + if (er.code === "ENOTDIR") + throw originalEr; + if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") + rmkidsSync(p2, options); + } + } + function rmkidsSync(p2, options) { + assert(p2); + assert(options); + options.readdirSync(p2).forEach(function(f2) { + rimrafSync(path.join(p2, f2), options); + }); + var retries = isWindows ? 100 : 1; + var i = 0; + do { + var threw = true; + try { + var ret = options.rmdirSync(p2, options); + threw = false; + return ret; + } finally { + if (++i < retries && threw) + continue; + } + } while (true); + } + } +}); + +// node_modules/tmp/lib/tmp.js +var require_tmp = __commonJS({ + "node_modules/tmp/lib/tmp.js"(exports2, module2) { + var fs4 = require("fs"); + var os2 = require("os"); + var path = require("path"); + var crypto = require("crypto"); + var _c = fs4.constants && os2.constants ? { fs: fs4.constants, os: os2.constants } : process.binding("constants"); + var rimraf = require_rimraf(); + var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; + var TEMPLATE_PATTERN = /XXXXXX/; + var DEFAULT_TRIES = 3; + var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR); + var EBADF = _c.EBADF || _c.os.errno.EBADF; + var ENOENT = _c.ENOENT || _c.os.errno.ENOENT; + var DIR_MODE = 448; + var FILE_MODE = 384; + var EXIT = "exit"; + var SIGINT = "SIGINT"; + var _removeObjects = []; + var _gracefulCleanup = false; + function _randomChars(howMany) { + var value = [], rnd = null; + try { + rnd = crypto.randomBytes(howMany); + } catch (e3) { + rnd = crypto.pseudoRandomBytes(howMany); + } + for (var i = 0; i < howMany; i++) { + value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]); + } + return value.join(""); + } + function _isUndefined(obj) { + return typeof obj === "undefined"; + } + function _parseArguments(options, callback) { + if (typeof options === "function") { + return [{}, options]; + } + if (_isUndefined(options)) { + return [{}, callback]; + } + return [options, callback]; + } + function _generateTmpName(opts) { + const tmpDir = _getTmpDir(); + if (isBlank(opts.dir) && isBlank(tmpDir)) { + throw new Error("No tmp dir specified"); + } + if (!isBlank(opts.name)) { + return path.join(opts.dir || tmpDir, opts.name); + } + if (opts.template) { + var template = opts.template; + if (path.basename(template) === template) + template = path.join(opts.dir || tmpDir, template); + return template.replace(TEMPLATE_PATTERN, _randomChars(6)); + } + const name = [ + isBlank(opts.prefix) ? "tmp-" : opts.prefix, + process.pid, + _randomChars(12), + opts.postfix ? opts.postfix : "" + ].join(""); + return path.join(opts.dir || tmpDir, name); + } + function tmpName(options, callback) { + var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = !isBlank(opts.name) ? 1 : opts.tries || DEFAULT_TRIES; + if (isNaN(tries) || tries < 0) + return cb(new Error("Invalid tries")); + if (opts.template && !opts.template.match(TEMPLATE_PATTERN)) + return cb(new Error("Invalid template provided")); + (function _getUniqueName() { + try { + const name = _generateTmpName(opts); + fs4.stat(name, function(err) { + if (!err) { + if (tries-- > 0) + return _getUniqueName(); + return cb(new Error("Could not get a unique tmp filename, max tries reached " + name)); + } + cb(null, name); + }); + } catch (err) { + cb(err); + } + })(); + } + function tmpNameSync(options) { + var args = _parseArguments(options), opts = args[0], tries = !isBlank(opts.name) ? 1 : opts.tries || DEFAULT_TRIES; + if (isNaN(tries) || tries < 0) + throw new Error("Invalid tries"); + if (opts.template && !opts.template.match(TEMPLATE_PATTERN)) + throw new Error("Invalid template provided"); + do { + const name = _generateTmpName(opts); + try { + fs4.statSync(name); + } catch (e3) { + return name; + } + } while (tries-- > 0); + throw new Error("Could not get a unique tmp filename, max tries reached"); + } + function file(options, callback) { + var args = _parseArguments(options, callback), opts = args[0], cb = args[1]; + tmpName(opts, function _tmpNameCreated(err, name) { + if (err) + return cb(err); + fs4.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) { + if (err2) + return cb(err2); + if (opts.discardDescriptor) { + return fs4.close(fd, function _discardCallback(err3) { + if (err3) { + try { + fs4.unlinkSync(name); + } catch (e3) { + if (!isENOENT(e3)) { + err3 = e3; + } + } + return cb(err3); + } + cb(null, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts)); + }); + } + if (opts.detachDescriptor) { + return cb(null, name, fd, _prepareTmpFileRemoveCallback(name, -1, opts)); + } + cb(null, name, fd, _prepareTmpFileRemoveCallback(name, fd, opts)); + }); + }); + } + function fileSync(options) { + var args = _parseArguments(options), opts = args[0]; + const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor; + const name = tmpNameSync(opts); + var fd = fs4.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE); + if (opts.discardDescriptor) { + fs4.closeSync(fd); + fd = void 0; + } + return { + name, + fd, + removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts) + }; + } + function dir(options, callback) { + var args = _parseArguments(options, callback), opts = args[0], cb = args[1]; + tmpName(opts, function _tmpNameCreated(err, name) { + if (err) + return cb(err); + fs4.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) { + if (err2) + return cb(err2); + cb(null, name, _prepareTmpDirRemoveCallback(name, opts)); + }); + }); + } + function dirSync(options) { + var args = _parseArguments(options), opts = args[0]; + const name = tmpNameSync(opts); + fs4.mkdirSync(name, opts.mode || DIR_MODE); + return { + name, + removeCallback: _prepareTmpDirRemoveCallback(name, opts) + }; + } + function _removeFileAsync(fdPath, next) { + const _handler = function(err) { + if (err && !isENOENT(err)) { + return next(err); + } + next(); + }; + if (0 <= fdPath[0]) + fs4.close(fdPath[0], function(err) { + fs4.unlink(fdPath[1], _handler); + }); + else + fs4.unlink(fdPath[1], _handler); + } + function _removeFileSync(fdPath) { + try { + if (0 <= fdPath[0]) + fs4.closeSync(fdPath[0]); + } catch (e3) { + if (!isEBADF(e3) && !isENOENT(e3)) + throw e3; + } finally { + try { + fs4.unlinkSync(fdPath[1]); + } catch (e3) { + if (!isENOENT(e3)) + throw e3; + } + } + } + function _prepareTmpFileRemoveCallback(name, fd, opts) { + const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name]); + const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], removeCallbackSync); + if (!opts.keep) + _removeObjects.unshift(removeCallbackSync); + return removeCallback; + } + function _rimrafRemoveDirWrapper(dirPath, next) { + rimraf(dirPath, next); + } + function _rimrafRemoveDirSyncWrapper(dirPath, next) { + try { + return next(null, rimraf.sync(dirPath)); + } catch (err) { + return next(err); + } + } + function _prepareTmpDirRemoveCallback(name, opts) { + const removeFunction2 = opts.unsafeCleanup ? _rimrafRemoveDirWrapper : fs4.rmdir.bind(fs4); + const removeFunctionSync = opts.unsafeCleanup ? _rimrafRemoveDirSyncWrapper : fs4.rmdirSync.bind(fs4); + const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name); + const removeCallback = _prepareRemoveCallback(removeFunction2, name, removeCallbackSync); + if (!opts.keep) + _removeObjects.unshift(removeCallbackSync); + return removeCallback; + } + function _prepareRemoveCallback(removeFunction2, arg, cleanupCallbackSync) { + var called = false; + return function _cleanupCallback(next) { + next = next || function() { + }; + if (!called) { + const toRemove = cleanupCallbackSync || _cleanupCallback; + const index = _removeObjects.indexOf(toRemove); + if (index >= 0) + _removeObjects.splice(index, 1); + called = true; + if (removeFunction2.length === 1) { + try { + removeFunction2(arg); + return next(null); + } catch (err) { + return next(err); + } + } else + return removeFunction2(arg, next); + } else + return next(new Error("cleanup callback has already been called")); + }; + } + function _garbageCollector() { + if (!_gracefulCleanup) + return; + while (_removeObjects.length) { + try { + _removeObjects[0](); + } catch (e3) { + } + } + } + function isEBADF(error) { + return isExpectedError(error, -EBADF, "EBADF"); + } + function isENOENT(error) { + return isExpectedError(error, -ENOENT, "ENOENT"); + } + function isExpectedError(error, code, errno) { + return error.code === code || error.code === errno; + } + function isBlank(s) { + return s === null || s === void 0 || !s.trim(); + } + function setGracefulCleanup() { + _gracefulCleanup = true; + } + function _getTmpDir() { + return os2.tmpdir(); + } + function _is_legacy_listener(listener) { + return (listener.name === "_exit" || listener.name === "_uncaughtExceptionThrown") && listener.toString().indexOf("_garbageCollector();") > -1; + } + function _safely_install_sigint_listener() { + const listeners = process.listeners(SIGINT); + const existingListeners = []; + for (let i = 0, length = listeners.length; i < length; i++) { + const lstnr = listeners[i]; + if (lstnr.name === "_tmp$sigint_listener") { + existingListeners.push(lstnr); + process.removeListener(SIGINT, lstnr); + } + } + process.on(SIGINT, function _tmp$sigint_listener(doExit) { + for (let i = 0, length = existingListeners.length; i < length; i++) { + try { + existingListeners[i](false); + } catch (err) { + } + } + try { + _garbageCollector(); + } finally { + if (!!doExit) { + process.exit(0); + } + } + }); + } + function _safely_install_exit_listener() { + const listeners = process.listeners(EXIT); + const existingListeners = []; + for (let i = 0, length = listeners.length; i < length; i++) { + const lstnr = listeners[i]; + if (lstnr.name === "_tmp$safe_listener" || _is_legacy_listener(lstnr)) { + if (lstnr.name !== "_uncaughtExceptionThrown") { + existingListeners.push(lstnr); + } + process.removeListener(EXIT, lstnr); + } + } + process.addListener(EXIT, function _tmp$safe_listener(data) { + for (let i = 0, length = existingListeners.length; i < length; i++) { + try { + existingListeners[i](data); + } catch (err) { + } + } + _garbageCollector(); + }); + } + _safely_install_exit_listener(); + _safely_install_sigint_listener(); + Object.defineProperty(module2.exports, "tmpdir", { + enumerable: true, + configurable: false, + get: function() { + return _getTmpDir(); + } + }); + module2.exports.dir = dir; + module2.exports.dirSync = dirSync; + module2.exports.file = file; + module2.exports.fileSync = fileSync; + module2.exports.tmpName = tmpName; + module2.exports.tmpNameSync = tmpNameSync; + module2.exports.setGracefulCleanup = setGracefulCleanup; + } +}); + +// node_modules/tmp-promise/index.js +var require_tmp_promise = __commonJS({ + "node_modules/tmp-promise/index.js"(exports2, module2) { + var { promisify } = require("util"); + var tmp = require_tmp(); + module2.exports.fileSync = tmp.fileSync; + var fileWithOptions = promisify((options, cb) => tmp.file(options, (err, path, fd, cleanup) => err ? cb(err) : cb(void 0, { path, fd, cleanup: promisify(cleanup) }))); + module2.exports.file = async (options) => fileWithOptions(options); + module2.exports.withFile = async function withFile(fn, options) { + const { path, fd, cleanup } = await module2.exports.file(options); + try { + return await fn({ path, fd }); + } finally { + await cleanup(); + } + }; + module2.exports.dirSync = tmp.dirSync; + var dirWithOptions = promisify((options, cb) => tmp.dir(options, (err, path, cleanup) => err ? cb(err) : cb(void 0, { path, cleanup: promisify(cleanup) }))); + module2.exports.dir = async (options) => dirWithOptions(options); + module2.exports.withDir = async function withDir(fn, options) { + const { path, cleanup } = await module2.exports.dir(options); + try { + return await fn({ path }); + } finally { + await cleanup(); + } + }; + module2.exports.tmpNameSync = tmp.tmpNameSync; + module2.exports.tmpName = promisify(tmp.tmpName); + module2.exports.tmpdir = tmp.tmpdir; + module2.exports.setGracefulCleanup = tmp.setGracefulCleanup; + } +}); + +// node_modules/@actions/artifact/lib/internal/status-reporter.js +var require_status_reporter = __commonJS({ + "node_modules/@actions/artifact/lib/internal/status-reporter.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var core_1 = require_core2(); + var StatusReporter = class { + constructor(displayFrequencyInMilliseconds) { + this.totalNumberOfFilesToProcess = 0; + this.processedCount = 0; + this.largeFiles = new Map(); + this.totalFileStatus = void 0; + this.largeFileStatus = void 0; + this.displayFrequencyInMilliseconds = displayFrequencyInMilliseconds; + } + setTotalNumberOfFilesToProcess(fileTotal) { + this.totalNumberOfFilesToProcess = fileTotal; + } + start() { + this.totalFileStatus = setInterval(() => { + const percentage = this.formatPercentage(this.processedCount, this.totalNumberOfFilesToProcess); + core_1.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${percentage.slice(0, percentage.indexOf(".") + 2)}%)`); + }, this.displayFrequencyInMilliseconds); + this.largeFileStatus = setInterval(() => { + for (const value of Array.from(this.largeFiles.values())) { + core_1.info(value); + } + this.largeFiles.clear(); + }, 1e3); + } + updateLargeFileStatus(fileName, numerator, denominator) { + const percentage = this.formatPercentage(numerator, denominator); + const displayInformation = `Uploading ${fileName} (${percentage.slice(0, percentage.indexOf(".") + 2)}%)`; + this.largeFiles.set(fileName, displayInformation); + } + stop() { + if (this.totalFileStatus) { + clearInterval(this.totalFileStatus); + } + if (this.largeFileStatus) { + clearInterval(this.largeFileStatus); + } + } + incrementProcessedCount() { + this.processedCount++; + } + formatPercentage(numerator, denominator) { + return (numerator / denominator * 100).toFixed(4).toString(); + } + }; + exports2.StatusReporter = StatusReporter; + } +}); + +// node_modules/@actions/artifact/lib/internal/http-manager.js +var require_http_manager = __commonJS({ + "node_modules/@actions/artifact/lib/internal/http-manager.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var utils_1 = require_utils3(); + var HttpManager = class { + constructor(clientCount, userAgent) { + if (clientCount < 1) { + throw new Error("There must be at least one client"); + } + this.userAgent = userAgent; + this.clients = new Array(clientCount).fill(utils_1.createHttpClient(userAgent)); + } + getClient(index) { + return this.clients[index]; + } + disposeAndReplaceClient(index) { + this.clients[index].dispose(); + this.clients[index] = utils_1.createHttpClient(this.userAgent); + } + disposeAndReplaceAllClients() { + for (const [index] of this.clients.entries()) { + this.disposeAndReplaceClient(index); + } + } + }; + exports2.HttpManager = HttpManager; + } +}); + +// node_modules/@actions/artifact/lib/internal/upload-gzip.js +var require_upload_gzip = __commonJS({ + "node_modules/@actions/artifact/lib/internal/upload-gzip.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __asyncValues = exports2 && exports2.__asyncValues || function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m4 = o[Symbol.asyncIterator], i; + return m4 ? m4.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n2) { + i[n2] = o[n2] && function(v2) { + return new Promise(function(resolve, reject) { + v2 = o[n2](v2), settle(resolve, reject, v2.done, v2.value); + }); + }; + } + function settle(resolve, reject, d2, v2) { + Promise.resolve(v2).then(function(v3) { + resolve({ value: v3, done: d2 }); + }, reject); + } + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var zlib = __importStar(require("zlib")); + var util_1 = require("util"); + var stat = util_1.promisify(fs4.stat); + function createGZipFileOnDisk(originalFilePath, tempFilePath) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + const inputStream = fs4.createReadStream(originalFilePath); + const gzip = zlib.createGzip(); + const outputStream = fs4.createWriteStream(tempFilePath); + inputStream.pipe(gzip).pipe(outputStream); + outputStream.on("finish", () => __awaiter(this, void 0, void 0, function* () { + const size = (yield stat(tempFilePath)).size; + resolve(size); + })); + outputStream.on("error", (error) => { + console.log(error); + reject; + }); + }); + }); + } + exports2.createGZipFileOnDisk = createGZipFileOnDisk; + function createGZipFileInBuffer(originalFilePath) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + var e_1, _a; + const inputStream = fs4.createReadStream(originalFilePath); + const gzip = zlib.createGzip(); + inputStream.pipe(gzip); + const chunks = []; + try { + for (var gzip_1 = __asyncValues(gzip), gzip_1_1; gzip_1_1 = yield gzip_1.next(), !gzip_1_1.done; ) { + const chunk = gzip_1_1.value; + chunks.push(chunk); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (gzip_1_1 && !gzip_1_1.done && (_a = gzip_1.return)) + yield _a.call(gzip_1); + } finally { + if (e_1) + throw e_1.error; + } + } + resolve(Buffer.concat(chunks)); + })); + }); + } + exports2.createGZipFileInBuffer = createGZipFileInBuffer; + } +}); + +// node_modules/@actions/artifact/lib/internal/requestUtils.js +var require_requestUtils = __commonJS({ + "node_modules/@actions/artifact/lib/internal/requestUtils.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var utils_1 = require_utils3(); + var core2 = __importStar(require_core2()); + var config_variables_1 = require_config_variables(); + function retry(name, operation, customErrorMessages, maxAttempts) { + return __awaiter(this, void 0, void 0, function* () { + let response = void 0; + let statusCode = void 0; + let isRetryable = false; + let errorMessage = ""; + let customErrorInformation = void 0; + let attempt = 1; + while (attempt <= maxAttempts) { + try { + response = yield operation(); + statusCode = response.message.statusCode; + if (utils_1.isSuccessStatusCode(statusCode)) { + return response; + } + if (statusCode) { + customErrorInformation = customErrorMessages.get(statusCode); + } + isRetryable = utils_1.isRetryableStatusCode(statusCode); + errorMessage = `Artifact service responded with ${statusCode}`; + } catch (error) { + isRetryable = true; + errorMessage = error.message; + } + if (!isRetryable) { + core2.info(`${name} - Error is not retryable`); + if (response) { + utils_1.displayHttpDiagnostics(response); + } + break; + } + core2.info(`${name} - Attempt ${attempt} of ${maxAttempts} failed with error: ${errorMessage}`); + yield utils_1.sleep(utils_1.getExponentialRetryTimeInMilliseconds(attempt)); + attempt++; + } + if (response) { + utils_1.displayHttpDiagnostics(response); + } + if (customErrorInformation) { + throw Error(`${name} failed: ${customErrorInformation}`); + } + throw Error(`${name} failed: ${errorMessage}`); + }); + } + exports2.retry = retry; + function retryHttpClientRequest(name, method, customErrorMessages = new Map(), maxAttempts = config_variables_1.getRetryLimit()) { + return __awaiter(this, void 0, void 0, function* () { + return yield retry(name, method, customErrorMessages, maxAttempts); + }); + } + exports2.retryHttpClientRequest = retryHttpClientRequest; + } +}); + +// node_modules/@actions/artifact/lib/internal/upload-http-client.js +var require_upload_http_client = __commonJS({ + "node_modules/@actions/artifact/lib/internal/upload-http-client.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var core2 = __importStar(require_core2()); + var tmp = __importStar(require_tmp_promise()); + var stream = __importStar(require("stream")); + var utils_1 = require_utils3(); + var config_variables_1 = require_config_variables(); + var util_1 = require("util"); + var url_1 = require("url"); + var perf_hooks_1 = require("perf_hooks"); + var status_reporter_1 = require_status_reporter(); + var http_client_1 = require_http_client(); + var http_manager_1 = require_http_manager(); + var upload_gzip_1 = require_upload_gzip(); + var requestUtils_1 = require_requestUtils(); + var stat = util_1.promisify(fs4.stat); + var UploadHttpClient = class { + constructor() { + this.uploadHttpManager = new http_manager_1.HttpManager(config_variables_1.getUploadFileConcurrency(), "@actions/artifact-upload"); + this.statusReporter = new status_reporter_1.StatusReporter(1e4); + } + createArtifactInFileContainer(artifactName, options) { + return __awaiter(this, void 0, void 0, function* () { + const parameters = { + Type: "actions_storage", + Name: artifactName + }; + if (options && options.retentionDays) { + const maxRetentionStr = config_variables_1.getRetentionDays(); + parameters.RetentionDays = utils_1.getProperRetention(options.retentionDays, maxRetentionStr); + } + const data = JSON.stringify(parameters, null, 2); + const artifactUrl = utils_1.getArtifactUrl(); + const client = this.uploadHttpManager.getClient(0); + const headers = utils_1.getUploadHeaders("application/json", false); + const customErrorMessages = new Map([ + [ + http_client_1.HttpCodes.Forbidden, + "Artifact storage quota has been hit. Unable to upload any new artifacts" + ], + [ + http_client_1.HttpCodes.BadRequest, + `The artifact name ${artifactName} is not valid. Request URL ${artifactUrl}` + ] + ]); + const response = yield requestUtils_1.retryHttpClientRequest("Create Artifact Container", () => __awaiter(this, void 0, void 0, function* () { + return client.post(artifactUrl, data, headers); + }), customErrorMessages); + const body = yield response.readBody(); + return JSON.parse(body); + }); + } + uploadArtifactToFileContainer(uploadUrl, filesToUpload, options) { + return __awaiter(this, void 0, void 0, function* () { + const FILE_CONCURRENCY = config_variables_1.getUploadFileConcurrency(); + const MAX_CHUNK_SIZE = config_variables_1.getUploadChunkSize(); + core2.debug(`File Concurrency: ${FILE_CONCURRENCY}, and Chunk Size: ${MAX_CHUNK_SIZE}`); + const parameters = []; + let continueOnError = true; + if (options) { + if (options.continueOnError === false) { + continueOnError = false; + } + } + for (const file of filesToUpload) { + const resourceUrl = new url_1.URL(uploadUrl); + resourceUrl.searchParams.append("itemPath", file.uploadFilePath); + parameters.push({ + file: file.absoluteFilePath, + resourceUrl: resourceUrl.toString(), + maxChunkSize: MAX_CHUNK_SIZE, + continueOnError + }); + } + const parallelUploads = [...new Array(FILE_CONCURRENCY).keys()]; + const failedItemsToReport = []; + let currentFile = 0; + let completedFiles = 0; + let uploadFileSize = 0; + let totalFileSize = 0; + let abortPendingFileUploads = false; + this.statusReporter.setTotalNumberOfFilesToProcess(filesToUpload.length); + this.statusReporter.start(); + yield Promise.all(parallelUploads.map((index) => __awaiter(this, void 0, void 0, function* () { + while (currentFile < filesToUpload.length) { + const currentFileParameters = parameters[currentFile]; + currentFile += 1; + if (abortPendingFileUploads) { + failedItemsToReport.push(currentFileParameters.file); + continue; + } + const startTime = perf_hooks_1.performance.now(); + const uploadFileResult = yield this.uploadFileAsync(index, currentFileParameters); + if (core2.isDebug()) { + core2.debug(`File: ${++completedFiles}/${filesToUpload.length}. ${currentFileParameters.file} took ${(perf_hooks_1.performance.now() - startTime).toFixed(3)} milliseconds to finish upload`); + } + uploadFileSize += uploadFileResult.successfulUploadSize; + totalFileSize += uploadFileResult.totalSize; + if (uploadFileResult.isSuccess === false) { + failedItemsToReport.push(currentFileParameters.file); + if (!continueOnError) { + core2.error(`aborting artifact upload`); + abortPendingFileUploads = true; + } + } + this.statusReporter.incrementProcessedCount(); + } + }))); + this.statusReporter.stop(); + this.uploadHttpManager.disposeAndReplaceAllClients(); + core2.info(`Total size of all the files uploaded is ${uploadFileSize} bytes`); + return { + uploadSize: uploadFileSize, + totalSize: totalFileSize, + failedItems: failedItemsToReport + }; + }); + } + uploadFileAsync(httpClientIndex, parameters) { + return __awaiter(this, void 0, void 0, function* () { + const totalFileSize = (yield stat(parameters.file)).size; + let offset = 0; + let isUploadSuccessful = true; + let failedChunkSizes = 0; + let uploadFileSize = 0; + let isGzip = true; + if (totalFileSize < 65536) { + const buffer = yield upload_gzip_1.createGZipFileInBuffer(parameters.file); + let openUploadStream; + if (totalFileSize < buffer.byteLength) { + openUploadStream = () => fs4.createReadStream(parameters.file); + isGzip = false; + uploadFileSize = totalFileSize; + } else { + openUploadStream = () => { + const passThrough = new stream.PassThrough(); + passThrough.end(buffer); + return passThrough; + }; + uploadFileSize = buffer.byteLength; + } + const result = yield this.uploadChunk(httpClientIndex, parameters.resourceUrl, openUploadStream, 0, uploadFileSize - 1, uploadFileSize, isGzip, totalFileSize); + if (!result) { + isUploadSuccessful = false; + failedChunkSizes += uploadFileSize; + core2.warning(`Aborting upload for ${parameters.file} due to failure`); + } + return { + isSuccess: isUploadSuccessful, + successfulUploadSize: uploadFileSize - failedChunkSizes, + totalSize: totalFileSize + }; + } else { + const tempFile = yield tmp.file(); + uploadFileSize = yield upload_gzip_1.createGZipFileOnDisk(parameters.file, tempFile.path); + let uploadFilePath = tempFile.path; + if (totalFileSize < uploadFileSize) { + uploadFileSize = totalFileSize; + uploadFilePath = parameters.file; + isGzip = false; + } + let abortFileUpload = false; + while (offset < uploadFileSize) { + const chunkSize = Math.min(uploadFileSize - offset, parameters.maxChunkSize); + if (uploadFileSize > 104857600) { + this.statusReporter.updateLargeFileStatus(parameters.file, offset, uploadFileSize); + } + const start2 = offset; + const end = offset + chunkSize - 1; + offset += parameters.maxChunkSize; + if (abortFileUpload) { + failedChunkSizes += chunkSize; + continue; + } + const result = yield this.uploadChunk(httpClientIndex, parameters.resourceUrl, () => fs4.createReadStream(uploadFilePath, { + start: start2, + end, + autoClose: false + }), start2, end, uploadFileSize, isGzip, totalFileSize); + if (!result) { + isUploadSuccessful = false; + failedChunkSizes += chunkSize; + core2.warning(`Aborting upload for ${parameters.file} due to failure`); + abortFileUpload = true; + } + } + yield tempFile.cleanup(); + return { + isSuccess: isUploadSuccessful, + successfulUploadSize: uploadFileSize - failedChunkSizes, + totalSize: totalFileSize + }; + } + }); + } + uploadChunk(httpClientIndex, resourceUrl, openStream, start2, end, uploadFileSize, isGzip, totalFileSize) { + return __awaiter(this, void 0, void 0, function* () { + const headers = utils_1.getUploadHeaders("application/octet-stream", true, isGzip, totalFileSize, end - start2 + 1, utils_1.getContentRange(start2, end, uploadFileSize)); + const uploadChunkRequest = () => __awaiter(this, void 0, void 0, function* () { + const client = this.uploadHttpManager.getClient(httpClientIndex); + return yield client.sendStream("PUT", resourceUrl, openStream(), headers); + }); + let retryCount = 0; + const retryLimit = config_variables_1.getRetryLimit(); + const incrementAndCheckRetryLimit = (response) => { + retryCount++; + if (retryCount > retryLimit) { + if (response) { + utils_1.displayHttpDiagnostics(response); + } + core2.info(`Retry limit has been reached for chunk at offset ${start2} to ${resourceUrl}`); + return true; + } + return false; + }; + const backOff = (retryAfterValue) => __awaiter(this, void 0, void 0, function* () { + this.uploadHttpManager.disposeAndReplaceClient(httpClientIndex); + if (retryAfterValue) { + core2.info(`Backoff due to too many requests, retry #${retryCount}. Waiting for ${retryAfterValue} milliseconds before continuing the upload`); + yield utils_1.sleep(retryAfterValue); + } else { + const backoffTime = utils_1.getExponentialRetryTimeInMilliseconds(retryCount); + core2.info(`Exponential backoff for retry #${retryCount}. Waiting for ${backoffTime} milliseconds before continuing the upload at offset ${start2}`); + yield utils_1.sleep(backoffTime); + } + core2.info(`Finished backoff for retry #${retryCount}, continuing with upload`); + return; + }); + while (retryCount <= retryLimit) { + let response; + try { + response = yield uploadChunkRequest(); + } catch (error) { + core2.info(`An error has been caught http-client index ${httpClientIndex}, retrying the upload`); + console.log(error); + if (incrementAndCheckRetryLimit()) { + return false; + } + yield backOff(); + continue; + } + yield response.readBody(); + if (utils_1.isSuccessStatusCode(response.message.statusCode)) { + return true; + } else if (utils_1.isRetryableStatusCode(response.message.statusCode)) { + core2.info(`A ${response.message.statusCode} status code has been received, will attempt to retry the upload`); + if (incrementAndCheckRetryLimit(response)) { + return false; + } + utils_1.isThrottledStatusCode(response.message.statusCode) ? yield backOff(utils_1.tryGetRetryAfterValueTimeInMilliseconds(response.message.headers)) : yield backOff(); + } else { + core2.error(`Unexpected response. Unable to upload chunk to ${resourceUrl}`); + utils_1.displayHttpDiagnostics(response); + return false; + } + } + return false; + }); + } + patchArtifactSize(size, artifactName) { + return __awaiter(this, void 0, void 0, function* () { + const resourceUrl = new url_1.URL(utils_1.getArtifactUrl()); + resourceUrl.searchParams.append("artifactName", artifactName); + const parameters = { Size: size }; + const data = JSON.stringify(parameters, null, 2); + core2.debug(`URL is ${resourceUrl.toString()}`); + const client = this.uploadHttpManager.getClient(0); + const headers = utils_1.getUploadHeaders("application/json", false); + const customErrorMessages = new Map([ + [ + http_client_1.HttpCodes.NotFound, + `An Artifact with the name ${artifactName} was not found` + ] + ]); + const response = yield requestUtils_1.retryHttpClientRequest("Finalize artifact upload", () => __awaiter(this, void 0, void 0, function* () { + return client.patch(resourceUrl.toString(), data, headers); + }), customErrorMessages); + yield response.readBody(); + core2.debug(`Artifact ${artifactName} has been successfully uploaded, total size in bytes: ${size}`); + }); + } + }; + exports2.UploadHttpClient = UploadHttpClient; + } +}); + +// node_modules/@actions/artifact/lib/internal/download-http-client.js +var require_download_http_client = __commonJS({ + "node_modules/@actions/artifact/lib/internal/download-http-client.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var core2 = __importStar(require_core2()); + var zlib = __importStar(require("zlib")); + var utils_1 = require_utils3(); + var url_1 = require("url"); + var status_reporter_1 = require_status_reporter(); + var perf_hooks_1 = require("perf_hooks"); + var http_manager_1 = require_http_manager(); + var config_variables_1 = require_config_variables(); + var requestUtils_1 = require_requestUtils(); + var DownloadHttpClient = class { + constructor() { + this.downloadHttpManager = new http_manager_1.HttpManager(config_variables_1.getDownloadFileConcurrency(), "@actions/artifact-download"); + this.statusReporter = new status_reporter_1.StatusReporter(1e3); + } + listArtifacts() { + return __awaiter(this, void 0, void 0, function* () { + const artifactUrl = utils_1.getArtifactUrl(); + const client = this.downloadHttpManager.getClient(0); + const headers = utils_1.getDownloadHeaders("application/json"); + const response = yield requestUtils_1.retryHttpClientRequest("List Artifacts", () => __awaiter(this, void 0, void 0, function* () { + return client.get(artifactUrl, headers); + })); + const body = yield response.readBody(); + return JSON.parse(body); + }); + } + getContainerItems(artifactName, containerUrl) { + return __awaiter(this, void 0, void 0, function* () { + const resourceUrl = new url_1.URL(containerUrl); + resourceUrl.searchParams.append("itemPath", artifactName); + const client = this.downloadHttpManager.getClient(0); + const headers = utils_1.getDownloadHeaders("application/json"); + const response = yield requestUtils_1.retryHttpClientRequest("Get Container Items", () => __awaiter(this, void 0, void 0, function* () { + return client.get(resourceUrl.toString(), headers); + })); + const body = yield response.readBody(); + return JSON.parse(body); + }); + } + downloadSingleArtifact(downloadItems) { + return __awaiter(this, void 0, void 0, function* () { + const DOWNLOAD_CONCURRENCY = config_variables_1.getDownloadFileConcurrency(); + core2.debug(`Download file concurrency is set to ${DOWNLOAD_CONCURRENCY}`); + const parallelDownloads = [...new Array(DOWNLOAD_CONCURRENCY).keys()]; + let currentFile = 0; + let downloadedFiles = 0; + core2.info(`Total number of files that will be downloaded: ${downloadItems.length}`); + this.statusReporter.setTotalNumberOfFilesToProcess(downloadItems.length); + this.statusReporter.start(); + yield Promise.all(parallelDownloads.map((index) => __awaiter(this, void 0, void 0, function* () { + while (currentFile < downloadItems.length) { + const currentFileToDownload = downloadItems[currentFile]; + currentFile += 1; + const startTime = perf_hooks_1.performance.now(); + yield this.downloadIndividualFile(index, currentFileToDownload.sourceLocation, currentFileToDownload.targetPath); + if (core2.isDebug()) { + core2.debug(`File: ${++downloadedFiles}/${downloadItems.length}. ${currentFileToDownload.targetPath} took ${(perf_hooks_1.performance.now() - startTime).toFixed(3)} milliseconds to finish downloading`); + } + this.statusReporter.incrementProcessedCount(); + } + }))).catch((error) => { + throw new Error(`Unable to download the artifact: ${error}`); + }).finally(() => { + this.statusReporter.stop(); + this.downloadHttpManager.disposeAndReplaceAllClients(); + }); + }); + } + downloadIndividualFile(httpClientIndex, artifactLocation, downloadPath) { + return __awaiter(this, void 0, void 0, function* () { + let retryCount = 0; + const retryLimit = config_variables_1.getRetryLimit(); + let destinationStream = fs4.createWriteStream(downloadPath); + const headers = utils_1.getDownloadHeaders("application/json", true, true); + const makeDownloadRequest = () => __awaiter(this, void 0, void 0, function* () { + const client = this.downloadHttpManager.getClient(httpClientIndex); + return yield client.get(artifactLocation, headers); + }); + const isGzip = (incomingHeaders) => { + return "content-encoding" in incomingHeaders && incomingHeaders["content-encoding"] === "gzip"; + }; + const backOff = (retryAfterValue) => __awaiter(this, void 0, void 0, function* () { + retryCount++; + if (retryCount > retryLimit) { + return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${artifactLocation}`)); + } else { + this.downloadHttpManager.disposeAndReplaceClient(httpClientIndex); + if (retryAfterValue) { + core2.info(`Backoff due to too many requests, retry #${retryCount}. Waiting for ${retryAfterValue} milliseconds before continuing the download`); + yield utils_1.sleep(retryAfterValue); + } else { + const backoffTime = utils_1.getExponentialRetryTimeInMilliseconds(retryCount); + core2.info(`Exponential backoff for retry #${retryCount}. Waiting for ${backoffTime} milliseconds before continuing the download`); + yield utils_1.sleep(backoffTime); + } + core2.info(`Finished backoff for retry #${retryCount}, continuing with download`); + } + }); + const isAllBytesReceived = (expected, received) => { + if (!expected || !received || process.env["ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION"]) { + core2.info("Skipping download validation."); + return true; + } + return parseInt(expected) === received; + }; + const resetDestinationStream = (fileDownloadPath) => __awaiter(this, void 0, void 0, function* () { + destinationStream.close(); + yield utils_1.rmFile(fileDownloadPath); + destinationStream = fs4.createWriteStream(fileDownloadPath); + }); + while (retryCount <= retryLimit) { + let response; + try { + response = yield makeDownloadRequest(); + if (core2.isDebug()) { + utils_1.displayHttpDiagnostics(response); + } + } catch (error) { + core2.info("An error occurred while attempting to download a file"); + console.log(error); + yield backOff(); + continue; + } + let forceRetry = false; + if (utils_1.isSuccessStatusCode(response.message.statusCode)) { + try { + const isGzipped = isGzip(response.message.headers); + yield this.pipeResponseToFile(response, destinationStream, isGzipped); + if (isGzipped || isAllBytesReceived(response.message.headers["content-length"], yield utils_1.getFileSize(downloadPath))) { + return; + } else { + forceRetry = true; + } + } catch (error) { + forceRetry = true; + } + } + if (forceRetry || utils_1.isRetryableStatusCode(response.message.statusCode)) { + core2.info(`A ${response.message.statusCode} response code has been received while attempting to download an artifact`); + resetDestinationStream(downloadPath); + utils_1.isThrottledStatusCode(response.message.statusCode) ? yield backOff(utils_1.tryGetRetryAfterValueTimeInMilliseconds(response.message.headers)) : yield backOff(); + } else { + utils_1.displayHttpDiagnostics(response); + return Promise.reject(new Error(`Unexpected http ${response.message.statusCode} during download for ${artifactLocation}`)); + } + } + }); + } + pipeResponseToFile(response, destinationStream, isGzip) { + return __awaiter(this, void 0, void 0, function* () { + yield new Promise((resolve, reject) => { + if (isGzip) { + const gunzip = zlib.createGunzip(); + response.message.on("error", (error) => { + core2.error(`An error occurred while attempting to read the response stream`); + gunzip.close(); + destinationStream.close(); + reject(error); + }).pipe(gunzip).on("error", (error) => { + core2.error(`An error occurred while attempting to decompress the response stream`); + destinationStream.close(); + reject(error); + }).pipe(destinationStream).on("close", () => { + resolve(); + }).on("error", (error) => { + core2.error(`An error occurred while writing a downloaded file to ${destinationStream.path}`); + reject(error); + }); + } else { + response.message.on("error", (error) => { + core2.error(`An error occurred while attempting to read the response stream`); + destinationStream.close(); + reject(error); + }).pipe(destinationStream).on("close", () => { + resolve(); + }).on("error", (error) => { + core2.error(`An error occurred while writing a downloaded file to ${destinationStream.path}`); + reject(error); + }); + } + }); + return; + }); + } + }; + exports2.DownloadHttpClient = DownloadHttpClient; + } +}); + +// node_modules/@actions/artifact/lib/internal/download-specification.js +var require_download_specification = __commonJS({ + "node_modules/@actions/artifact/lib/internal/download-specification.js"(exports2) { + "use strict"; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var path = __importStar(require("path")); + function getDownloadSpecification(artifactName, artifactEntries, downloadPath, includeRootDirectory) { + const directories = new Set(); + const specifications = { + rootDownloadLocation: includeRootDirectory ? path.join(downloadPath, artifactName) : downloadPath, + directoryStructure: [], + emptyFilesToCreate: [], + filesToDownload: [] + }; + for (const entry of artifactEntries) { + if (entry.path.startsWith(`${artifactName}/`) || entry.path.startsWith(`${artifactName}\\`)) { + const normalizedPathEntry = path.normalize(entry.path); + const filePath = path.join(downloadPath, includeRootDirectory ? normalizedPathEntry : normalizedPathEntry.replace(artifactName, "")); + if (entry.itemType === "file") { + directories.add(path.dirname(filePath)); + if (entry.fileLength === 0) { + specifications.emptyFilesToCreate.push(filePath); + } else { + specifications.filesToDownload.push({ + sourceLocation: entry.contentLocation, + targetPath: filePath + }); + } + } + } + } + specifications.directoryStructure = Array.from(directories); + return specifications; + } + exports2.getDownloadSpecification = getDownloadSpecification; + } +}); + +// node_modules/@actions/artifact/lib/internal/artifact-client.js +var require_artifact_client = __commonJS({ + "node_modules/@actions/artifact/lib/internal/artifact-client.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var core2 = __importStar(require_core2()); + var upload_specification_1 = require_upload_specification(); + var upload_http_client_1 = require_upload_http_client(); + var utils_1 = require_utils3(); + var download_http_client_1 = require_download_http_client(); + var download_specification_1 = require_download_specification(); + var config_variables_1 = require_config_variables(); + var path_1 = require("path"); + var DefaultArtifactClient = class { + static create() { + return new DefaultArtifactClient(); + } + uploadArtifact(name, files, rootDirectory, options) { + return __awaiter(this, void 0, void 0, function* () { + utils_1.checkArtifactName(name); + const uploadSpecification = upload_specification_1.getUploadSpecification(name, rootDirectory, files); + const uploadResponse = { + artifactName: name, + artifactItems: [], + size: 0, + failedItems: [] + }; + const uploadHttpClient = new upload_http_client_1.UploadHttpClient(); + if (uploadSpecification.length === 0) { + core2.warning(`No files found that can be uploaded`); + } else { + const response = yield uploadHttpClient.createArtifactInFileContainer(name, options); + if (!response.fileContainerResourceUrl) { + core2.debug(response.toString()); + throw new Error("No URL provided by the Artifact Service to upload an artifact to"); + } + core2.debug(`Upload Resource URL: ${response.fileContainerResourceUrl}`); + const uploadResult = yield uploadHttpClient.uploadArtifactToFileContainer(response.fileContainerResourceUrl, uploadSpecification, options); + yield uploadHttpClient.patchArtifactSize(uploadResult.totalSize, name); + core2.info(`Finished uploading artifact ${name}. Reported size is ${uploadResult.uploadSize} bytes. There were ${uploadResult.failedItems.length} items that failed to upload`); + uploadResponse.artifactItems = uploadSpecification.map((item) => item.absoluteFilePath); + uploadResponse.size = uploadResult.uploadSize; + uploadResponse.failedItems = uploadResult.failedItems; + } + return uploadResponse; + }); + } + downloadArtifact(name, path, options) { + return __awaiter(this, void 0, void 0, function* () { + const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); + const artifacts = yield downloadHttpClient.listArtifacts(); + if (artifacts.count === 0) { + throw new Error(`Unable to find any artifacts for the associated workflow`); + } + const artifactToDownload = artifacts.value.find((artifact2) => { + return artifact2.name === name; + }); + if (!artifactToDownload) { + throw new Error(`Unable to find an artifact with the name: ${name}`); + } + const items = yield downloadHttpClient.getContainerItems(artifactToDownload.name, artifactToDownload.fileContainerResourceUrl); + if (!path) { + path = config_variables_1.getWorkSpaceDirectory(); + } + path = path_1.normalize(path); + path = path_1.resolve(path); + const downloadSpecification = download_specification_1.getDownloadSpecification(name, items.value, path, (options === null || options === void 0 ? void 0 : options.createArtifactFolder) || false); + if (downloadSpecification.filesToDownload.length === 0) { + core2.info(`No downloadable files were found for the artifact: ${artifactToDownload.name}`); + } else { + yield utils_1.createDirectoriesForArtifact(downloadSpecification.directoryStructure); + core2.info("Directory structure has been setup for the artifact"); + yield utils_1.createEmptyFilesForArtifact(downloadSpecification.emptyFilesToCreate); + yield downloadHttpClient.downloadSingleArtifact(downloadSpecification.filesToDownload); + } + return { + artifactName: name, + downloadPath: downloadSpecification.rootDownloadLocation + }; + }); + } + downloadAllArtifacts(path) { + return __awaiter(this, void 0, void 0, function* () { + const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); + const response = []; + const artifacts = yield downloadHttpClient.listArtifacts(); + if (artifacts.count === 0) { + core2.info("Unable to find any artifacts for the associated workflow"); + return response; + } + if (!path) { + path = config_variables_1.getWorkSpaceDirectory(); + } + path = path_1.normalize(path); + path = path_1.resolve(path); + let downloadedArtifacts = 0; + while (downloadedArtifacts < artifacts.count) { + const currentArtifactToDownload = artifacts.value[downloadedArtifacts]; + downloadedArtifacts += 1; + const items = yield downloadHttpClient.getContainerItems(currentArtifactToDownload.name, currentArtifactToDownload.fileContainerResourceUrl); + const downloadSpecification = download_specification_1.getDownloadSpecification(currentArtifactToDownload.name, items.value, path, true); + if (downloadSpecification.filesToDownload.length === 0) { + core2.info(`No downloadable files were found for any artifact ${currentArtifactToDownload.name}`); + } else { + yield utils_1.createDirectoriesForArtifact(downloadSpecification.directoryStructure); + yield utils_1.createEmptyFilesForArtifact(downloadSpecification.emptyFilesToCreate); + yield downloadHttpClient.downloadSingleArtifact(downloadSpecification.filesToDownload); + } + response.push({ + artifactName: currentArtifactToDownload.name, + downloadPath: downloadSpecification.rootDownloadLocation + }); + } + return response; + }); + } + }; + exports2.DefaultArtifactClient = DefaultArtifactClient; + } +}); + +// node_modules/@actions/artifact/lib/artifact-client.js +var require_artifact_client2 = __commonJS({ + "node_modules/@actions/artifact/lib/artifact-client.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var artifact_client_1 = require_artifact_client(); + function create3() { + return artifact_client_1.DefaultArtifactClient.create(); + } + exports2.create = create3; + } +}); + // node_modules/object-assign/index.js var require_object_assign = __commonJS({ "node_modules/object-assign/index.js"(exports2, module2) { @@ -2752,25 +8425,25 @@ var require_react_development = __commonJS({ var dispatcher = resolveDispatcher(); return dispatcher.useRef(initialValue); } - function useEffect(create2, deps) { + function useEffect(create3, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useEffect(create2, deps); + return dispatcher.useEffect(create3, deps); } - function useLayoutEffect(create2, deps) { + function useLayoutEffect(create3, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useLayoutEffect(create2, deps); + return dispatcher.useLayoutEffect(create3, deps); } function useCallback(callback, deps) { var dispatcher = resolveDispatcher(); return dispatcher.useCallback(callback, deps); } - function useMemo3(create2, deps) { + function useMemo3(create3, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useMemo(create2, deps); + return dispatcher.useMemo(create3, deps); } - function useImperativeHandle(ref, create2, deps) { + function useImperativeHandle(ref, create3, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useImperativeHandle(ref, create2, deps); + return dispatcher.useImperativeHandle(ref, create3, deps); } function useDebugValue(value, formatterFn) { { @@ -5499,7 +11172,7 @@ var require_react_dom_server_node_development = __commonJS({ return previousRef; } } - function useLayoutEffect(create2, inputs) { + function useLayoutEffect(create3, inputs) { { currentHookNameInDev = "useLayoutEffect"; error("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes."); @@ -7660,7 +13333,7 @@ var require_server = __commonJS({ }); // node_modules/braces/lib/utils.js -var require_utils2 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/braces/lib/utils.js"(exports2) { "use strict"; exports2.isInteger = (num) => { @@ -7747,7 +13420,7 @@ var require_utils2 = __commonJS({ var require_stringify = __commonJS({ "node_modules/braces/lib/stringify.js"(exports2, module2) { "use strict"; - var utils = require_utils2(); + var utils = require_utils4(); module2.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); @@ -8213,7 +13886,7 @@ var require_compile = __commonJS({ "node_modules/braces/lib/compile.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var utils = require_utils2(); + var utils = require_utils4(); var compile = (ast, options = {}) => { let walk = (node, parent = {}) => { let invalidBlock = utils.isInvalidBrace(parent); @@ -8265,7 +13938,7 @@ var require_expand = __commonJS({ "use strict"; var fill = require_fill_range(); var stringify = require_stringify(); - var utils = require_utils2(); + var utils = require_utils4(); var append = (queue = "", stash = "", enclose = false) => { let result = []; queue = [].concat(queue); @@ -8849,7 +14522,7 @@ var require_constants2 = __commonJS({ }); // node_modules/picomatch/lib/utils.js -var require_utils3 = __commonJS({ +var require_utils5 = __commonJS({ "node_modules/picomatch/lib/utils.js"(exports2) { "use strict"; var path = require("path"); @@ -8915,7 +14588,7 @@ var require_utils3 = __commonJS({ var require_scan = __commonJS({ "node_modules/picomatch/lib/scan.js"(exports2, module2) { "use strict"; - var utils = require_utils3(); + var utils = require_utils5(); var { CHAR_ASTERISK, CHAR_AT, @@ -9234,7 +14907,7 @@ var require_parse2 = __commonJS({ "node_modules/picomatch/lib/parse.js"(exports2, module2) { "use strict"; var constants2 = require_constants2(); - var utils = require_utils3(); + var utils = require_utils5(); var { MAX_LENGTH, POSIX_REGEX_SOURCE, @@ -9969,7 +15642,7 @@ var require_parse2 = __commonJS({ return star; return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; }; - const create2 = (str) => { + const create3 = (str) => { switch (str) { case "*": return `${nodot}${ONE_CHAR}${star}`; @@ -9991,7 +15664,7 @@ var require_parse2 = __commonJS({ const match = /^(.*?)\.(\w+)$/.exec(str); if (!match) return; - const source2 = create2(match[1]); + const source2 = create3(match[1]); if (!source2) return; return source2 + DOT_LITERAL + match[2]; @@ -9999,7 +15672,7 @@ var require_parse2 = __commonJS({ } }; const output = utils.removePrefix(input, state); - let source = create2(output); + let source = create3(output); if (source && opts.strictSlashes !== true) { source += `${SLASH_LITERAL}?`; } @@ -10016,7 +15689,7 @@ var require_picomatch = __commonJS({ var path = require("path"); var scan = require_scan(); var parse = require_parse2(); - var utils = require_utils3(); + var utils = require_utils5(); var constants2 = require_constants2(); var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); var picomatch = (glob, options, returnState = false) => { @@ -10168,7 +15841,7 @@ var require_micromatch = __commonJS({ var util = require("util"); var braces = require_braces(); var picomatch = require_picomatch2(); - var utils = require_utils3(); + var utils = require_utils5(); var isEmptyString = (val) => val === "" || val === "./"; var micromatch = (list, patterns, options) => { patterns = [].concat(patterns); @@ -12811,6 +18484,7 @@ var require_uniqueId = __commonJS({ // src/index.jsx var import_exec = __toModule(require_exec()); var core = __toModule(require_core()); +var artifact = __toModule(require_artifact_client2()); var import_react3 = __toModule(require_react()); var import_server = __toModule(require_server()); var import_fs2 = __toModule(require("fs")); @@ -13753,9 +19427,9 @@ function lower_default() { // node_modules/d3-selection/src/selection/append.js function append_default(name) { - var create2 = typeof name === "function" ? name : creator_default(name); + var create3 = typeof name === "function" ? name : creator_default(name); return this.select(function() { - return this.appendChild(create2.apply(this, arguments)); + return this.appendChild(create3.apply(this, arguments)); }); } @@ -13764,9 +19438,9 @@ function constantNull() { return null; } function insert_default(name, before) { - var create2 = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before); + var create3 = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before); return this.select(function() { - return this.insertBefore(create2.apply(this, arguments), select.apply(this, arguments) || null); + return this.insertBefore(create3.apply(this, arguments), select.apply(this, arguments) || null); }); } @@ -20624,18 +26298,37 @@ var main = async () => { core.info("[INFO] No changes to the repo detected, exiting"); return; } - await (0, import_exec.exec)("git", ["commit", "-m", commitMessage]); - if (doesBranchExist) { - await (0, import_exec.exec)("git", ["push"]); - } else { - await (0, import_exec.exec)("git", ["push", "--set-upstream", "origin", branch]); + const shouldPush = core.getBooleanInput("push"); + if (shouldPush) { + core.startGroup("Commit and push diagram"); + await (0, import_exec.exec)("git", ["commit", "-m", commitMessage]); + if (doesBranchExist) { + await (0, import_exec.exec)("git", ["push"]); + } else { + await (0, import_exec.exec)("git", ["push", "--set-upstream", "origin", branch]); + } + if (branch) { + await (0, import_exec.exec)("git", "checkout", "-"); + } + core.endGroup(); } - if (branch) { - await (0, import_exec.exec)("git", "checkout", "-"); + const shouldUpload = core.getBooleanInput("upload"); + if (shouldUpload) { + core.startGroup("Upload diagram to artifacts"); + const client = artifact.create(); + const result = await client.uploadArtifact("Diagram", [outputFile], "."); + if (result.failedItems.length > 0) { + throw "Artifact was not uploaded successfully."; + } else { + core.info(`Diagram uploaded under name ${result.artifactName}`); + } + core.endGroup(); } console.log("All set!"); }; -main(); +main().catch((e3) => { + core.setFailed(e3); +}); function execWithOutput(command2, args) { return new Promise((resolve, reject) => { try { @@ -20661,6 +26354,13 @@ object-assign (c) Sindre Sorhus @license MIT */ +/*! + * Tmp + * + * Copyright (c) 2011-2017 KARASZI Istvan + * + * MIT Licensed + */ /*! * fill-range * diff --git a/yarn.lock b/yarn.lock index 5a32ae2..2342d56 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,22 @@ # yarn lockfile v1 +"@actions/artifact@^0.5.2": + version "0.5.2" + resolved "https://registry.yarnpkg.com/@actions/artifact/-/artifact-0.5.2.tgz#e57ef7fe688211262c88fb4d63dfe0fbdc97bf88" + integrity sha512-q/r8WSqyxBJ0ffLCRrtjCBTGnAYqP+ID4yG7f7YSlhrQ4thNg/d+Tq9f1YkLPKX46ZR97OWtGDY+oU/nxcqvLw== + dependencies: + "@actions/core" "^1.2.6" + "@actions/http-client" "^1.0.11" + "@types/tmp" "^0.1.0" + tmp "^0.1.0" + tmp-promise "^2.0.2" + +"@actions/core@^1.2.6": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.5.0.tgz#885b864700001a1b9a6fba247833a036e75ad9d3" + integrity sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ== + "@actions/core@^1.4.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.4.0.tgz#cf2e6ee317e314b03886adfeb20e448d50d6e524" @@ -14,6 +30,13 @@ dependencies: "@actions/io" "^1.0.1" +"@actions/http-client@^1.0.11": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0" + integrity sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg== + dependencies: + tunnel "0.0.6" + "@actions/io@^1.0.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.1.tgz#4a157406309e212ab27ed3ae30e8c1d641686a66" @@ -617,6 +640,11 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== +"@types/tmp@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@types/tmp/-/tmp-0.1.0.tgz#19cf73a7bcf641965485119726397a096f0049bd" + integrity sha512-6IwZ9HzWbCq6XoQWhxLpDjuADodH/MKXRUIDFudvgjcVdjFknvmR+DNsoUeer4XPrEnrZs04Jj+kfV9pFsrhmA== + "@types/yargs-parser@*": version "20.2.1" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-20.2.1.tgz#3b9ce2489919d9e4fea439b76916abc34b2df129" @@ -2471,6 +2499,13 @@ resolve@^1.20.0: is-core-module "^2.2.0" path-parse "^1.0.6" +rimraf@^2.6.3: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + rimraf@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" @@ -2677,6 +2712,20 @@ throat@^6.0.1: resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375" integrity sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w== +tmp-promise@^2.0.2: + version "2.1.1" + resolved "https://registry.yarnpkg.com/tmp-promise/-/tmp-promise-2.1.1.tgz#eb97c038995af74efbfe8156f5e07fdd0c935539" + integrity sha512-Z048AOz/w9b6lCbJUpevIJpRpUztENl8zdv1bmAKVHimfqRFl92ROkmT9rp7TVBnrEw2gtMTol/2Cp2S2kJa4Q== + dependencies: + tmp "0.1.0" + +tmp@0.1.0, tmp@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.1.0.tgz#ee434a4e22543082e294ba6201dcc6eafefa2877" + integrity sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw== + dependencies: + rimraf "^2.6.3" + tmpl@1.0.x: version "1.0.4" resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" @@ -2726,6 +2775,11 @@ ts-jest@^27.0.4: semver "7.x" yargs-parser "20.x" +tunnel@0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" + integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== + type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" From d5429ee57e840239cd35478cace984a127bef7ae Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 09:57:05 +0100 Subject: [PATCH 24/46] Allow specifying the artifact name --- action.yml | 6 +++--- index.js | 4 ++-- src/index.jsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 99d8927..49f3808 100644 --- a/action.yml +++ b/action.yml @@ -27,10 +27,10 @@ inputs: description: "Whether to push the new commit back to the repository. Must be true or false. Default: true" required: false default: true - upload: - description: "Whether to upload the new diagram as an artiface. Must be true or false. Default: false" + artifact_name: + description: "If given, the name of an artifact to be created containing the diagram. Default: don't create an artifact." required: false - default: false + default: '' runs: using: "node12" main: "index.js" diff --git a/index.js b/index.js index ed4b378..ee0cd3a 100644 --- a/index.js +++ b/index.js @@ -26312,11 +26312,11 @@ var main = async () => { } core.endGroup(); } - const shouldUpload = core.getBooleanInput("upload"); + const shouldUpload = core.getInput("artifact_name") !== ""; if (shouldUpload) { core.startGroup("Upload diagram to artifacts"); const client = artifact.create(); - const result = await client.uploadArtifact("Diagram", [outputFile], "."); + const result = await client.uploadArtifact(core.getInput("artifact_name"), [outputFile], "."); if (result.failedItems.length > 0) { throw "Artifact was not uploaded successfully."; } else { diff --git a/src/index.jsx b/src/index.jsx index 7fd2a5e..8c23f40 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -85,11 +85,11 @@ const main = async () => { core.endGroup() } - const shouldUpload = core.getBooleanInput('upload') + const shouldUpload = core.getInput('artifact_name') !== '' if (shouldUpload) { core.startGroup('Upload diagram to artifacts') const client = artifact.create() - const result = await client.uploadArtifact('Diagram', [outputFile], '.') + const result = await client.uploadArtifact(core.getInput('artifact_name'), [outputFile], '.') if (result.failedItems.length > 0) { throw 'Artifact was not uploaded successfully.' } else { From c5af940654d839dff460a6492249948a59c1e40e Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 10:00:04 +0100 Subject: [PATCH 25/46] Remove redundant notification `uploadArtifact` already prints a more detailed message. --- index.js | 2 -- src/index.jsx | 2 -- 2 files changed, 4 deletions(-) diff --git a/index.js b/index.js index ee0cd3a..f2ffbd2 100644 --- a/index.js +++ b/index.js @@ -26319,8 +26319,6 @@ var main = async () => { const result = await client.uploadArtifact(core.getInput("artifact_name"), [outputFile], "."); if (result.failedItems.length > 0) { throw "Artifact was not uploaded successfully."; - } else { - core.info(`Diagram uploaded under name ${result.artifactName}`); } core.endGroup(); } diff --git a/src/index.jsx b/src/index.jsx index 8c23f40..40fefc8 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -92,8 +92,6 @@ const main = async () => { const result = await client.uploadArtifact(core.getInput('artifact_name'), [outputFile], '.') if (result.failedItems.length > 0) { throw 'Artifact was not uploaded successfully.' - } else { - core.info(`Diagram uploaded under name ${result.artifactName}`) } core.endGroup() } From 11212141005a84dd5910089147b6eadce058daf4 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 10:38:36 +0100 Subject: [PATCH 26/46] Document the new input options --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/README.md b/README.md index fadc05c..171be1d 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,14 @@ The maximum number of nested folders to show files within. A higher number will Default: 9 +## `push` + +Whether to make a new commit with the diagram and push it to the original repository. + +Should be a boolean value, i.e. `true` or `false`. See `commit_message` and `branch` for how to customise the commit. + +Default: `false` + ## `commit_message` The commit message to use when updating the diagram. Useful for skipping CI. For example: `Updating diagram [skip ci]` @@ -64,6 +72,14 @@ The branch name to push the diagram to (branch will be created if it does not ye For example: `diagram` +## `artifact_name` + +The name of an [artifact](https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts) to create containing the diagram. + +If unspecified, no artifact will be created. + +Default: `''` (no artifact) + ## Example usage You'll need to run the `actions/checkout` Action beforehand, to check out the code. @@ -77,3 +93,30 @@ You'll need to run the `actions/checkout` Action beforehand, to check out the co output_file: "images/diagram.svg" excluded_paths: "dist,node_modules" ``` + + +## Accessing the diagram + +By default, this action will create a new commit with the diagram on the specified branch. + +If you want to avoid new commits, you can create an artifact to accompany the workflow run, +by specifying an `artifact_name`. You can then download the diagram using the +[`actions/download-artifact`](https://github.com/marketplace/actions/download-a-build-artifact) +action from a later step in your workflow, +or by using the [GitHub API](https://docs.github.com/en/rest/reference/actions#artifacts). + +Example: +```yaml +- name: Update diagram + uses: githubocto/repo-visualizer@0.6.1 + with: + output_file: "images/diagram.svg" + artifact_name: my-diagram +- name: Get artifact + uses: actions/download-artifact@v2 + with: + name: my-diagram + path: downloads + # Diagram now available at downloads/images/diagram.svg +``` +Note that this will still also create a commit, unless you specify `push: false`! From cde63365b1c6c62d43b40a2a74344c315d4d965a Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 10:54:02 +0100 Subject: [PATCH 27/46] Expose the SVG as an output --- README.md | 10 ++++++++++ action.yml | 3 +++ index.js | 9 +++++---- src/index.jsx | 2 ++ 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 171be1d..b49236c 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,12 @@ If unspecified, no artifact will be created. Default: `''` (no artifact) +## Outputs + +## `svg` + +The contents of the diagram as text. This can be used if you don't want to handle new files. + ## Example usage You'll need to run the `actions/checkout` Action beforehand, to check out the code. @@ -108,6 +114,7 @@ or by using the [GitHub API](https://docs.github.com/en/rest/reference/actions#a Example: ```yaml - name: Update diagram + id: make_diagram uses: githubocto/repo-visualizer@0.6.1 with: output_file: "images/diagram.svg" @@ -120,3 +127,6 @@ Example: # Diagram now available at downloads/images/diagram.svg ``` Note that this will still also create a commit, unless you specify `push: false`! + +Alternatively, the SVG description of the diagram is available in the `svg` output, +which you can refer to in your workflow as e.g. `${{ steps.make_diagram.outputs.svg }}`. diff --git a/action.yml b/action.yml index 49f3808..db62512 100644 --- a/action.yml +++ b/action.yml @@ -31,6 +31,9 @@ inputs: description: "If given, the name of an artifact to be created containing the diagram. Default: don't create an artifact." required: false default: '' +outputs: + svg: + description: "The diagram contents as text" runs: using: "node12" main: "index.js" diff --git a/index.js b/index.js index f2ffbd2..abf299d 100644 --- a/index.js +++ b/index.js @@ -1354,11 +1354,11 @@ var require_core = __commonJS({ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } exports2.getBooleanInput = getBooleanInput2; - function setOutput(name, value) { + function setOutput2(name, value) { process.stdout.write(os2.EOL); command_1.issueCommand("set-output", { name }, value); } - exports2.setOutput = setOutput; + exports2.setOutput = setOutput2; function setCommandEcho(enabled) { command_1.issue("echo", enabled ? "on" : "off"); } @@ -1717,11 +1717,11 @@ var require_core2 = __commonJS({ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } exports2.getBooleanInput = getBooleanInput2; - function setOutput(name, value) { + function setOutput2(name, value) { process.stdout.write(os2.EOL); command_1.issueCommand("set-output", { name }, value); } - exports2.setOutput = setOutput; + exports2.setOutput = setOutput2; function setCommandEcho(enabled) { command_1.issue("echo", enabled ? "on" : "off"); } @@ -26278,6 +26278,7 @@ var main = async () => { colorEncoding })); const outputFile = core.getInput("output_file") || "./diagram.svg"; + core.setOutput("svg", componentCodeString); await import_fs2.default.writeFileSync(outputFile, componentCodeString); let doesBranchExist = true; if (branch) { diff --git a/src/index.jsx b/src/index.jsx index 40fefc8..7c9f764 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -43,6 +43,8 @@ const main = async () => { const outputFile = core.getInput("output_file") || "./diagram.svg" + core.setOutput('svg', componentCodeString) + await fs.writeFileSync(outputFile, componentCodeString) let doesBranchExist = true From 8015562dcfc119e668f5e4bd194359c003687066 Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Sun, 22 Aug 2021 11:02:03 +0100 Subject: [PATCH 28/46] Make inputs/outputs subsections in README --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b49236c..17b21d8 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ For a full demo, check out the [githubocto/repo-visualizer-demo](https://github. ## Inputs -## `output_file` +### `output_file` A path (relative to the root of your repo) to where you would like the diagram to live. @@ -16,7 +16,7 @@ For example: images/diagram.svg Default: diagram.svg -## `excluded_paths` +### `excluded_paths` A list of paths to folders to exclude from the diagram, separated by commas. @@ -24,7 +24,7 @@ For example: dist,node_modules Default: node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.vscode,package-lock.json,yarn.lock -## `excluded_globs` +### `excluded_globs` A semicolon-delimited array of file [globs](https://globster.xyz/) to exclude from the diagram, using [micromatch](https://github.com/micromatch/micromatch) syntax. Provided as an array. @@ -38,7 +38,7 @@ excluded_globs: 'frontend/*.spec.js;**/*.{png,jpg};**/!(*.module).ts' # - '**/!(*.module).ts' # all TS files except module files ``` -## `root_path` +### `root_path` The directory (and its children) that you want to visualize in the diagram, relative to the repository root. @@ -46,13 +46,13 @@ For example: `src/` Default: `''` (current directory) -## `max_depth` +### `max_depth` The maximum number of nested folders to show files within. A higher number will take longer to render. Default: 9 -## `push` +### `push` Whether to make a new commit with the diagram and push it to the original repository. @@ -60,19 +60,19 @@ Should be a boolean value, i.e. `true` or `false`. See `commit_message` and `bra Default: `false` -## `commit_message` +### `commit_message` The commit message to use when updating the diagram. Useful for skipping CI. For example: `Updating diagram [skip ci]` Default: `Repo visualizer: updated diagram` -## `branch` +### `branch` The branch name to push the diagram to (branch will be created if it does not yet exist). For example: `diagram` -## `artifact_name` +### `artifact_name` The name of an [artifact](https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts) to create containing the diagram. @@ -82,7 +82,7 @@ Default: `''` (no artifact) ## Outputs -## `svg` +### `svg` The contents of the diagram as text. This can be used if you don't want to handle new files. From d74d6b7a8e6c150bae73be633e3d84e3eb71e9ea Mon Sep 17 00:00:00 2001 From: Anastasis Georgoulas Date: Mon, 23 Aug 2021 20:29:25 +0100 Subject: [PATCH 29/46] Apply suggestions from review --- README.md | 6 +++--- action.yml | 2 +- index.js | 2 +- src/index.jsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 17b21d8..cdab0c8 100644 --- a/README.md +++ b/README.md @@ -52,13 +52,13 @@ The maximum number of nested folders to show files within. A higher number will Default: 9 -### `push` +### `should_push` Whether to make a new commit with the diagram and push it to the original repository. Should be a boolean value, i.e. `true` or `false`. See `commit_message` and `branch` for how to customise the commit. -Default: `false` +Default: `true` ### `commit_message` @@ -126,7 +126,7 @@ Example: path: downloads # Diagram now available at downloads/images/diagram.svg ``` -Note that this will still also create a commit, unless you specify `push: false`! +Note that this will still also create a commit, unless you specify `should_push: false`! Alternatively, the SVG description of the diagram is available in the `svg` output, which you can refer to in your workflow as e.g. `${{ steps.make_diagram.outputs.svg }}`. diff --git a/action.yml b/action.yml index db62512..356b29e 100644 --- a/action.yml +++ b/action.yml @@ -23,7 +23,7 @@ inputs: branch: description: "The branch name to push the diagram to (branch will be created if it does not yet exist). For example: diagram" required: false - push: + should_push: description: "Whether to push the new commit back to the repository. Must be true or false. Default: true" required: false default: true diff --git a/index.js b/index.js index abf299d..5c302d2 100644 --- a/index.js +++ b/index.js @@ -26299,7 +26299,7 @@ var main = async () => { core.info("[INFO] No changes to the repo detected, exiting"); return; } - const shouldPush = core.getBooleanInput("push"); + const shouldPush = core.getBooleanInput("should_push"); if (shouldPush) { core.startGroup("Commit and push diagram"); await (0, import_exec.exec)("git", ["commit", "-m", commitMessage]); diff --git a/src/index.jsx b/src/index.jsx index 7c9f764..bc07573 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -70,7 +70,7 @@ const main = async () => { return } - const shouldPush = core.getBooleanInput('push') + const shouldPush = core.getBooleanInput('should_push') if (shouldPush) { core.startGroup('Commit and push diagram') await exec('git', ['commit', '-m', commitMessage]) From a332cb687d62d885eaaa5f15ffb30fe78e8cd53a Mon Sep 17 00:00:00 2001 From: Amelia Wattenberger Date: Tue, 24 Aug 2021 09:29:54 -0400 Subject: [PATCH 30/46] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cdab0c8..8777537 100644 --- a/README.md +++ b/README.md @@ -117,13 +117,13 @@ Example: id: make_diagram uses: githubocto/repo-visualizer@0.6.1 with: - output_file: "images/diagram.svg" - artifact_name: my-diagram + output_file: "output-diagram.svg" + artifact_name: "my-diagram" - name: Get artifact uses: actions/download-artifact@v2 with: - name: my-diagram - path: downloads + name: "my-diagram" + path: "downloads" # Diagram now available at downloads/images/diagram.svg ``` Note that this will still also create a commit, unless you specify `should_push: false`! From 8c522075c53a281a9a90d70305f30b7c3eb97040 Mon Sep 17 00:00:00 2001 From: Amelia Wattenberger Date: Tue, 24 Aug 2021 09:37:04 -0400 Subject: [PATCH 31/46] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8777537..cb8cb55 100644 --- a/README.md +++ b/README.md @@ -124,8 +124,8 @@ Example: with: name: "my-diagram" path: "downloads" - # Diagram now available at downloads/images/diagram.svg ``` +In this example, the diagram will be available at downloads/my-diagram.svg Note that this will still also create a commit, unless you specify `should_push: false`! Alternatively, the SVG description of the diagram is available in the `svg` output, From dc1a37889d49f1ecd3d1cbc64fd557d4177a414d Mon Sep 17 00:00:00 2001 From: Amelia Wattenberger Date: Tue, 24 Aug 2021 09:39:34 -0400 Subject: [PATCH 32/46] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb8cb55..a58b5c1 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ Example: ```yaml - name: Update diagram id: make_diagram - uses: githubocto/repo-visualizer@0.6.1 + uses: githubocto/repo-visualizer@0.7.0 with: output_file: "output-diagram.svg" artifact_name: "my-diagram" From 62c798da830b34d258ed929ca164712dcfc070f0 Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Tue, 17 Aug 2021 09:46:41 -0400 Subject: [PATCH 33/46] bump suggested release --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a58b5c1..62db2d4 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ A semicolon-delimited array of file [globs](https://globster.xyz/) to exclude fr For example: ```yaml -excluded_globs: 'frontend/*.spec.js;**/*.{png,jpg};**/!(*.module).ts' +excluded_globs: "frontend/*.spec.js;**/*.{png,jpg};**/!(*.module).ts" # Guide: # - 'frontend/*.spec.js' # exclude frontend tests # - '**/*.{png,ico,md}' # all png, ico, md files in any directory From fd43c6c299627ad88e07698290fb2d32fac3305a Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Wed, 1 Sep 2021 16:20:19 -0400 Subject: [PATCH 34/46] fix: update micromatch glob matching - match folders that start with . - remove leading ./ when glob matching fixes #35 --- index.js | 9 ++++++++- src/should-exclude-path.ts | 28 +++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 5c302d2..97eb710 100644 --- a/index.js +++ b/index.js @@ -18498,7 +18498,14 @@ var import_micromatch = __toModule(require_micromatch()); var shouldExcludePath = (path, pathsToIgnore, globsToIgnore) => { if (!path) return false; - return pathsToIgnore.has(path) || globsToIgnore.some((glob) => glob && (0, import_micromatch.isMatch)(path, glob)); + return pathsToIgnore.has(path) || globsToIgnore.some((glob) => glob && (0, import_micromatch.isMatch)(processPath(path), glob, { + dot: true + })); +}; +var processPath = (path) => { + if (path.startsWith("./")) + return path.substring(2); + return path; }; // src/process-dir.js diff --git a/src/should-exclude-path.ts b/src/should-exclude-path.ts index 82dcff3..e867d5a 100644 --- a/src/should-exclude-path.ts +++ b/src/should-exclude-path.ts @@ -1,11 +1,29 @@ -import { isMatch } from 'micromatch'; +import { isMatch } from "micromatch"; /** * True if path is excluded by either the path or glob criteria. * path may be to a directory or individual file. */ -export const shouldExcludePath = (path: string, pathsToIgnore: Set, globsToIgnore: string[]): boolean => { - if (!path) return false +export const shouldExcludePath = ( + path: string, + pathsToIgnore: Set, + globsToIgnore: string[] +): boolean => { + if (!path) return false; - return pathsToIgnore.has(path) || globsToIgnore.some(glob => glob && isMatch(path, glob)); -} + return ( + pathsToIgnore.has(path) || + globsToIgnore.some( + (glob) => + glob && + isMatch(processPath(path), glob, { + dot: true, + }) + ) + ); +}; + +const processPath = (path: string): string => { + if (path.startsWith("./")) return path.substring(2); + return path; +}; From b6ef9a212fc89efed1366f731fc4fe9a2cbc45ef Mon Sep 17 00:00:00 2001 From: Amelia Wattenberger Date: Wed, 1 Sep 2021 16:23:49 -0400 Subject: [PATCH 35/46] bump example version --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 62db2d4..852e9fa 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ You'll need to run the `actions/checkout` Action beforehand, to check out the co - name: Checkout code uses: actions/checkout@master - name: Update diagram - uses: githubocto/repo-visualizer@0.6.1 + uses: githubocto/repo-visualizer@0.7.1 with: output_file: "images/diagram.svg" excluded_paths: "dist,node_modules" @@ -115,7 +115,7 @@ Example: ```yaml - name: Update diagram id: make_diagram - uses: githubocto/repo-visualizer@0.7.0 + uses: githubocto/repo-visualizer@0.7.1 with: output_file: "output-diagram.svg" artifact_name: "my-diagram" From 81bbabb399693c350be5de336a0abc31cf80442a Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Wed, 9 Mar 2022 23:04:23 +0800 Subject: [PATCH 36/46] feat: Option to change color scheme #40 --- diagram.svg | 2 +- index.js | 30 +++++++++++++++++------------- src/Tree.tsx | 18 +++++++++++------- src/index.jsx | 3 ++- 4 files changed, 31 insertions(+), 22 deletions(-) diff --git a/diagram.svg b/diagram.svg index 237fe1c..bbcf31c 100644 --- a/diagram.svg +++ b/diagram.svg @@ -1 +1 @@ -srcsrc.husky.husky__language-colors.jsonlanguage-colors.jsonlanguage-colors.jsonTree.tsxTree.tsxTree.tsxindex.jsxindex.jsxindex.jsxprocess-dir.jsprocess-dir.jsprocess-dir.jsutils.tsutils.tsutils.tsCircleText.tsxCircleText.tsxCircleText.tsxtypes.tstypes.tstypes.tsindex.jsindex.jsindex.jsREADME.mdREADME.mdREADME.mdLICENSELICENSELICENSEaction.ymlaction.ymlaction.ymlpackage.jsonpackage.jsonpackage.jsonhusky.shhusky.shhusky.sh.gitignore.js.json.jsx.md.sh.svg.ts.tsx.ymleach dot sized by file size \ No newline at end of file +srcsrc.husky.husky__language-colors.jsonlanguage-colors.jsonlanguage-colors.jsonTree.tsxTree.tsxTree.tsxindex.jsxindex.jsxindex.jsxshould-exclude-...should-exclude-...should-exclude-...process-dir.jsprocess-dir.jsprocess-dir.jsutils.tsutils.tsutils.tsCircleText.tsxCircleText.tsxCircleText.tsxshould-exc...should-exc...should-exc...types.tstypes.tstypes.tsindex.jsindex.jsindex.jsREADME.mdREADME.mdREADME.mdaction.ymlaction.ymlaction.ymlLICENSELICENSELICENSEpackage.jsonpackage.jsonpackage.jsonhusky.shhusky.shhusky.sh.cjs.gitignore.js.json.jsx.md.sh.svg.ts.tsx.yaml.ymleach dot sized by file size \ No newline at end of file diff --git a/index.js b/index.js index 97eb710..2ba89e5 100644 --- a/index.js +++ b/index.js @@ -25814,7 +25814,8 @@ var numberOfCommitsAccessor = (d2) => { var _a; return ((_a = d2 == null ? void 0 : d2.commits) == null ? void 0 : _a.length) || 0; }; -var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) => { +var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", customizeFileColors }) => { + const fileColors = { ...language_colors_default, ...customizeFileColors }; const [selectedNodeId, setSelectedNodeId] = (0, import_react2.useState)(null); const cachedPositions = (0, import_react2.useRef)({}); const cachedOrders = (0, import_react2.useRef)({}); @@ -25845,9 +25846,9 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) = if (isParent) { const extensions = (0, import_countBy.default)(d2.children, (c3) => c3.extension); const mainExtension = (_a = (0, import_maxBy.default)((0, import_entries.default)(extensions), ([k, v2]) => v2)) == null ? void 0 : _a[0]; - return language_colors_default[mainExtension] || "#CED6E0"; + return fileColors[mainExtension] || "#CED6E0"; } - return language_colors_default[d2.extension] || "#CED6E0"; + return fileColors[d2.extension] || "#CED6E0"; } else if (colorEncoding === "number-of-changes") { return colorScale(numberOfCommitsAccessor(d2)) || "#f4f4f4"; } else if (colorEncoding === "last-change") { @@ -25857,7 +25858,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) = const packedData = (0, import_react2.useMemo)(() => { if (!data) return []; - const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current)).sum((d2) => d2.value).sort((a2, b) => { + const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current, 0, fileColors)).sum((d2) => d2.value).sort((a2, b) => { if (b.data.path.startsWith("src/fonts")) { } return b.data.sortOrder - a2.data.sortOrder || (b.data.name > a2.data.name ? 1 : -1); @@ -25888,9 +25889,9 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) = cachedPositions.current[d2.data.path] = [d2.x, d2.y]; }); return children2.slice(0, maxChildren); - }, [data]); + }, [data, fileColors]); const selectedNode = selectedNodeId && packedData.find((d2) => d2.data.path === selectedNodeId); - const fileTypes = (0, import_uniqBy.default)(packedData.map((d2) => language_colors_default[d2.data.extension] && d2.data.extension)).sort().filter(Boolean); + const fileTypes = (0, import_uniqBy.default)(packedData.map((d2) => fileColors[d2.data.extension] && d2.data.extension)).sort().filter(Boolean); return /* @__PURE__ */ import_react2.default.createElement("svg", { width, height, @@ -26047,7 +26048,8 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }) = dominantBaseline: "middle" }, label)); }), !filesChanged.length && colorEncoding === "type" && /* @__PURE__ */ import_react2.default.createElement(Legend, { - fileTypes + fileTypes, + fileColors }), !filesChanged.length && colorEncoding !== "type" && /* @__PURE__ */ import_react2.default.createElement(ColorLegend, { scale: colorScale, extent: colorExtent, @@ -26088,7 +26090,7 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => { textAnchor: i ? "end" : "start" }, formatD(d2)))); }; -var Legend = ({ fileTypes = [] }) => { +var Legend = ({ fileTypes = [], fileColors }) => { return /* @__PURE__ */ import_react2.default.createElement("g", { transform: `translate(${width - 60}, ${height - fileTypes.length * 15 - 20})` }, fileTypes.map((extension, i) => /* @__PURE__ */ import_react2.default.createElement("g", { @@ -26096,7 +26098,7 @@ var Legend = ({ fileTypes = [] }) => { transform: `translate(0, ${i * 15})` }, /* @__PURE__ */ import_react2.default.createElement("circle", { r: "5", - fill: language_colors_default[extension] + fill: fileColors[extension] }), /* @__PURE__ */ import_react2.default.createElement("text", { x: "10", style: { fontSize: "14px", fontWeight: 300 }, @@ -26110,14 +26112,14 @@ var Legend = ({ fileTypes = [] }) => { } }, "each dot sized by file size")); }; -var processChild = (child, getColor, cachedOrders, i = 0) => { +var processChild = (child, getColor, cachedOrders, i = 0, fileColors) => { var _a; if (!child) return; const isRoot = !child.path; let name = child.name; let path = child.path; - let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c3, i2) => processChild(c3, getColor, cachedOrders, i2)); + let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c3, i2) => processChild(c3, getColor, cachedOrders, i2, fileColors)); if ((children2 == null ? void 0 : children2.length) === 1) { name = `${name}/${children2[0].name}`; path = children2[0].path; @@ -26125,7 +26127,7 @@ var processChild = (child, getColor, cachedOrders, i = 0) => { } const pathWithoutExtension = path == null ? void 0 : path.split(".").slice(0, -1).join("."); const extension = name == null ? void 0 : name.split(".").slice(-1)[0]; - const hasExtension = !!language_colors_default[extension]; + const hasExtension = !!fileColors[extension]; if (isRoot && children2) { const looseChildren = children2 == null ? void 0 : children2.filter((d2) => { var _a2; @@ -26271,6 +26273,7 @@ var main = async () => { core.endGroup(); const rootPath = core.getInput("root_path") || ""; const maxDepth = core.getInput("max_depth") || 9; + const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || "{}"); const colorEncoding = core.getInput("color_encoding") || "type"; const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram"; const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock"; @@ -26282,7 +26285,8 @@ var main = async () => { const componentCodeString = import_server.default.renderToStaticMarkup(/* @__PURE__ */ import_react3.default.createElement(Tree, { data, maxDepth: +maxDepth, - colorEncoding + colorEncoding, + customizeFileColors })); const outputFile = core.getInput("output_file") || "./diagram.svg"; core.setOutput("svg", componentCodeString); diff --git a/src/Tree.tsx b/src/Tree.tsx index 5b13c27..9c278fa 100644 --- a/src/Tree.tsx +++ b/src/Tree.tsx @@ -19,7 +19,7 @@ import entries from "lodash/entries"; import uniqBy from "lodash/uniqBy"; import flatten from "lodash/flatten"; // file colors are from the github/linguist repo -import fileColors from "./language-colors.json"; +import defaultFileColors from "./language-colors.json"; import { CircleText } from "./CircleText"; import { keepBetween, @@ -32,6 +32,7 @@ type Props = { filesChanged: string[]; maxDepth: number; colorEncoding: "type" | "number-of-changes" | "last-change" + customizeFileColors?: { [key: string]: string }; }; type ExtendedFileType = { extension?: string; @@ -40,6 +41,7 @@ type ExtendedFileType = { color?: string; value?: number; sortOrder?: number; + fileColors?: { [key: string]: string }; } & FileType; type ProcessedDataItem = { data: ExtendedFileType; @@ -58,9 +60,10 @@ const maxChildren = 9000; const lastCommitAccessor = (d) => new Date(d.commits?.[0]?.date + "0"); const numberOfCommitsAccessor = (d) => d?.commits?.length || 0; export const Tree = ( - { data, filesChanged = [], maxDepth = 9, colorEncoding = "type" }: + { data, filesChanged = [], maxDepth = 9, colorEncoding = "type", customizeFileColors}: Props, ) => { + const fileColors = { ...defaultFileColors, ...customizeFileColors }; const [selectedNodeId, setSelectedNodeId] = useState(null); const cachedPositions = useRef<{ [key: string]: [number, number] }>({}); const cachedOrders = useRef<{ [key: string]: string[] }>({}); @@ -121,7 +124,7 @@ export const Tree = ( const packedData = useMemo(() => { if (!data) return []; const hierarchicalData = hierarchy( - processChild(data, getColor, cachedOrders.current), + processChild(data, getColor, cachedOrders.current, 0, fileColors), ).sum((d) => d.value) .sort((a, b) => { if (b.data.path.startsWith("src/fonts")) { @@ -171,7 +174,7 @@ export const Tree = ( }); return children.slice(0, maxChildren); - }, [data]); + }, [data, fileColors]); const selectedNode = selectedNodeId && packedData.find((d) => d.data.path === selectedNodeId); @@ -379,7 +382,7 @@ export const Tree = ( })} {!filesChanged.length && colorEncoding === "type" && - } + } {!filesChanged.length && colorEncoding !== "type" && } @@ -429,7 +432,7 @@ const ColorLegend = ({ scale, extent, colorEncoding }) => { ); }; -const Legend = ({ fileTypes = [] }) => { +const Legend = ({ fileTypes = [], fileColors}) => { return ( { if (!child) return; const isRoot = !child.path; let name = child.name; let path = child.path; let children = child?.children?.map((c, i) => - processChild(c, getColor, cachedOrders, i) + processChild(c, getColor, cachedOrders, i, fileColors) ); if (children?.length === 1) { name = `${name}/${children[0].name}`; diff --git a/src/index.jsx b/src/index.jsx index bc07573..bfb4419 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -25,6 +25,7 @@ const main = async () => { const rootPath = core.getInput("root_path") || ""; // Micro and minimatch do not support paths starting with ./ const maxDepth = core.getInput("max_depth") || 9 + const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || '{}'); // such as '{"js": "red", "ts": "green"}' const colorEncoding = core.getInput("color_encoding") || "type" const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram" const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock" @@ -38,7 +39,7 @@ const main = async () => { const data = await processDir(rootPath, excludedPaths, excludedGlobs); const componentCodeString = ReactDOMServer.renderToStaticMarkup( - + ); const outputFile = core.getInput("output_file") || "./diagram.svg" From 3cfcd065bc0065c32d9c9644c18d66a1a1324af2 Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Wed, 9 Mar 2022 23:28:39 +0800 Subject: [PATCH 37/46] feat: update readme --- README.md | 7 +++++++ src/index.jsx | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 852e9fa..902a09d 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,13 @@ If unspecified, no artifact will be created. Default: `''` (no artifact) +### `customize_file_colors` + +User can customize color of file. need to be a Json String. it will replace the key-value pair of [src/language-colors.json]. + +For example: '{"js": "red","ts": "green"}' +default: '{}' + ## Outputs ### `svg` diff --git a/src/index.jsx b/src/index.jsx index bfb4419..c2f442c 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -25,7 +25,7 @@ const main = async () => { const rootPath = core.getInput("root_path") || ""; // Micro and minimatch do not support paths starting with ./ const maxDepth = core.getInput("max_depth") || 9 - const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || '{}'); // such as '{"js": "red", "ts": "green"}' + const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || '{}'); const colorEncoding = core.getInput("color_encoding") || "type" const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram" const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock" From 37de3826b989da736a9a6b267820f81b8e011862 Mon Sep 17 00:00:00 2001 From: ShixinGuo Date: Wed, 16 Mar 2022 13:13:18 +0800 Subject: [PATCH 38/46] fix: change config name --- README.md | 4 +- index.js | 1413 +++++++++++++++++++++---------------------------- src/index.jsx | 2 +- 3 files changed, 596 insertions(+), 823 deletions(-) diff --git a/README.md b/README.md index 902a09d..559f8d0 100644 --- a/README.md +++ b/README.md @@ -80,9 +80,9 @@ If unspecified, no artifact will be created. Default: `''` (no artifact) -### `customize_file_colors` +### `file_colors` -User can customize color of file. need to be a Json String. it will replace the key-value pair of [src/language-colors.json]. +You can customize the colors for specific file extensions. Key/value pairs will extend the [default colors](https://github.com/githubocto/repo-visualizer/pull/src/language-colors.json). For example: '{"js": "red","ts": "green"}' default: '{}' diff --git a/index.js b/index.js index 2ba89e5..8cb5802 100644 --- a/index.js +++ b/index.js @@ -1073,356 +1073,6 @@ var require_exec = __commonJS({ // node_modules/@actions/core/lib/utils.js var require_utils = __commonJS({ "node_modules/@actions/core/lib/utils.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toCommandValue = void 0; - function toCommandValue(input) { - if (input === null || input === void 0) { - return ""; - } else if (typeof input === "string" || input instanceof String) { - return input; - } - return JSON.stringify(input); - } - exports2.toCommandValue = toCommandValue; - } -}); - -// node_modules/@actions/core/lib/command.js -var require_command = __commonJS({ - "node_modules/@actions/core/lib/command.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issue = exports2.issueCommand = void 0; - var os2 = __importStar(require("os")); - var utils_1 = require_utils(); - function issueCommand(command2, properties2, message) { - const cmd2 = new Command(command2, properties2, message); - process.stdout.write(cmd2.toString() + os2.EOL); - } - exports2.issueCommand = issueCommand; - function issue(name, message = "") { - issueCommand(name, {}, message); - } - exports2.issue = issue; - var CMD_STRING = "::"; - var Command = class { - constructor(command2, properties2, message) { - if (!command2) { - command2 = "missing.command"; - } - this.command = command2; - this.properties = properties2; - this.message = message; - } - toString() { - let cmdStr = CMD_STRING + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += " "; - let first = true; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - if (first) { - first = false; - } else { - cmdStr += ","; - } - cmdStr += `${key}=${escapeProperty(val)}`; - } - } - } - } - cmdStr += `${CMD_STRING}${escapeData(this.message)}`; - return cmdStr; - } - }; - function escapeData(s) { - return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); - } - function escapeProperty(s) { - return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); - } - } -}); - -// node_modules/@actions/core/lib/file-command.js -var require_file_command = __commonJS({ - "node_modules/@actions/core/lib/file-command.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issueCommand = void 0; - var fs4 = __importStar(require("fs")); - var os2 = __importStar(require("os")); - var utils_1 = require_utils(); - function issueCommand(command2, message) { - const filePath = process.env[`GITHUB_${command2}`]; - if (!filePath) { - throw new Error(`Unable to find environment variable for file command ${command2}`); - } - if (!fs4.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`); - } - fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { - encoding: "utf8" - }); - } - exports2.issueCommand = issueCommand; - } -}); - -// node_modules/@actions/core/lib/core.js -var require_core = __commonJS({ - "node_modules/@actions/core/lib/core.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e3) { - reject(e3); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e3) { - reject(e3); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command(); - var file_command_1 = require_file_command(); - var utils_1 = require_utils(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); - } else { - command_1.issueCommand("set-env", { name }, convertedVal); - } - } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); - } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - if (options && options.trimWhitespace === false) { - return val; - } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput2(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput2; - function setOutput2(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput2; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed2(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed2; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message) { - command_1.issue("error", message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message) { - command_1.issue("warning", message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); - } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); - } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); - } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; - } - exports2.getState = getState; - } -}); - -// node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js -var require_utils2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.toCommandProperties = exports2.toCommandValue = void 0; @@ -1441,6 +1091,7 @@ var require_utils2 = __commonJS({ } return { title: annotationProperties.title, + file: annotationProperties.file, line: annotationProperties.startLine, endLine: annotationProperties.endLine, col: annotationProperties.startColumn, @@ -1451,9 +1102,9 @@ var require_utils2 = __commonJS({ } }); -// node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js -var require_command2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js"(exports2) { +// node_modules/@actions/core/lib/command.js +var require_command = __commonJS({ + "node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) @@ -1486,7 +1137,7 @@ var require_command2 = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.issue = exports2.issueCommand = void 0; var os2 = __importStar(require("os")); - var utils_1 = require_utils2(); + var utils_1 = require_utils(); function issueCommand(command2, properties2, message) { const cmd2 = new Command(command2, properties2, message); process.stdout.write(cmd2.toString() + os2.EOL); @@ -1532,258 +1183,62 @@ var require_command2 = __commonJS({ function escapeData(s) { return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); } - function escapeProperty(s) { - return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); - } - } -}); - -// node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js -var require_file_command2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issueCommand = void 0; - var fs4 = __importStar(require("fs")); - var os2 = __importStar(require("os")); - var utils_1 = require_utils2(); - function issueCommand(command2, message) { - const filePath = process.env[`GITHUB_${command2}`]; - if (!filePath) { - throw new Error(`Unable to find environment variable for file command ${command2}`); - } - if (!fs4.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`); - } - fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { - encoding: "utf8" - }); - } - exports2.issueCommand = issueCommand; - } -}); - -// node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js -var require_core2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e3) { - reject(e3); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e3) { - reject(e3); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command2(); - var file_command_1 = require_file_command2(); - var utils_1 = require_utils2(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); - } else { - command_1.issueCommand("set-env", { name }, convertedVal); - } - } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); + function escapeProperty(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); + } +}); + +// node_modules/@actions/core/lib/file-command.js +var require_file_command = __commonJS({ + "node_modules/@actions/core/lib/file-command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issueCommand = void 0; + var fs4 = __importStar(require("fs")); + var os2 = __importStar(require("os")); + var utils_1 = require_utils(); + function issueCommand(command2, message) { + const filePath = process.env[`GITHUB_${command2}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command2}`); } - if (options && options.trimWhitespace === false) { - return val; + if (!fs4.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput2(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput2; - function setOutput2(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput2; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed2(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed2; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message, properties2 = {}) { - command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message, properties2 = {}) { - command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function notice(message, properties2 = {}) { - command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.notice = notice; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); - } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); - } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); - } - return result; + fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { + encoding: "utf8" }); } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; - } - exports2.getState = getState; + exports2.issueCommand = issueCommand; } }); @@ -2570,22 +2025,323 @@ var require_auth = __commonJS({ return null; } }; - exports2.BearerCredentialHandler = BearerCredentialHandler; - var PersonalAccessTokenCredentialHandler = class { - constructor(token) { - this.token = token; + exports2.BearerCredentialHandler = BearerCredentialHandler; + var PersonalAccessTokenCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + options.headers["Authorization"] = "Basic " + Buffer.from("PAT:" + this.token).toString("base64"); + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; + } +}); + +// node_modules/@actions/core/lib/oidc-utils.js +var require_oidc_utils = __commonJS({ + "node_modules/@actions/core/lib/oidc-utils.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.OidcClient = void 0; + var http_client_1 = require_http_client(); + var auth_1 = require_auth(); + var core_1 = require_core(); + var OidcClient = class { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient("actions/oidc-client", [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); + } + static getRequestToken() { + const token = process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"]; + if (!token) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable"); + } + return token; + } + static getIDTokenUrl() { + const runtimeUrl = process.env["ACTIONS_ID_TOKEN_REQUEST_URL"]; + if (!runtimeUrl) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable"); + } + return runtimeUrl; + } + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res2 = yield httpclient.getJson(id_token_url).catch((error) => { + throw new Error(`Failed to get ID Token. + + Error Code : ${error.statusCode} + + Error Message: ${error.result.message}`); + }); + const id_token = (_a = res2.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error("Response json body do not have ID Token field"); + } + return id_token; + }); + } + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); + } + }; + exports2.OidcClient = OidcClient; + } +}); + +// node_modules/@actions/core/lib/core.js +var require_core = __commonJS({ + "node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); } - prepareRequest(options) { - options.headers["Authorization"] = "Basic " + Buffer.from("PAT:" + this.token).toString("base64"); + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getIDToken = exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command(); + var file_command_1 = require_file_command(); + var utils_1 = require_utils(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var oidc_utils_1 = require_oidc_utils(); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + const delimiter = "_GitHubActionsFileCommandDelimeter_"; + const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; + file_command_1.issueCommand("ENV", commandValue); + } else { + command_1.issueCommand("set-env", { name }, convertedVal); } - canHandleAuthentication(response) { - return false; + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); } - handleAuthentication(httpClient, requestInfo, objs) { - return null; + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); } - }; - exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + return inputs; + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, value); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; + }); + } + exports2.group = group; + function saveState(name, value) { + command_1.issueCommand("save-state", { name }, value); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; + function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); + } + exports2.getIDToken = getIDToken; } }); @@ -2658,7 +2414,7 @@ var require_config_variables = __commonJS({ }); // node_modules/@actions/artifact/lib/internal/utils.js -var require_utils3 = __commonJS({ +var require_utils2 = __commonJS({ "node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { @@ -2689,7 +2445,7 @@ var require_utils3 = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core2(); + var core_1 = require_core(); var fs_1 = require("fs"); var http_client_1 = require_http_client(); var auth_1 = require_auth(); @@ -2935,9 +2691,9 @@ var require_upload_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core_1 = require_core2(); + var core_1 = require_core(); var path_1 = require("path"); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { utils_1.checkArtifactName(artifactName); const specifications = []; @@ -3276,7 +3032,7 @@ var require_balanced_match = __commonJS({ a2 = maybeMatch(a2, str); if (b instanceof RegExp) b = maybeMatch(b, str); - var r4 = range(a2, b, str); + var r4 = range2(a2, b, str); return r4 && { start: r4[0], end: r4[1], @@ -3289,8 +3045,8 @@ var require_balanced_match = __commonJS({ var m4 = str.match(reg2); return m4 ? m4[0] : null; } - balanced.range = range; - function range(a2, b, str) { + balanced.range = range2; + function range2(a2, b, str) { var begs, beg, left, right, result; var ai = str.indexOf(a2); var bi2 = str.indexOf(b, ai + 1); @@ -3476,11 +3232,15 @@ var require_minimatch = __commonJS({ "node_modules/minimatch/minimatch.js"(exports2, module2) { module2.exports = minimatch; minimatch.Minimatch = Minimatch; - var path = { sep: "/" }; - try { - path = require("path"); - } catch (er) { - } + var path = function() { + try { + return require("path"); + } catch (e3) { + } + }() || { + sep: "/" + }; + minimatch.sep = path.sep; var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var expand = require_brace_expansion(); var plTypes = { @@ -3510,58 +3270,68 @@ var require_minimatch = __commonJS({ }; } function ext(a2, b) { - a2 = a2 || {}; b = b || {}; var t2 = {}; - Object.keys(b).forEach(function(k) { - t2[k] = b[k]; - }); Object.keys(a2).forEach(function(k) { t2[k] = a2[k]; }); + Object.keys(b).forEach(function(k) { + t2[k] = b[k]; + }); return t2; } minimatch.defaults = function(def) { - if (!def || !Object.keys(def).length) + if (!def || typeof def !== "object" || !Object.keys(def).length) { return minimatch; + } var orig = minimatch; var m4 = function minimatch2(p2, pattern, options) { - return orig.minimatch(p2, pattern, ext(def, options)); + return orig(p2, pattern, ext(def, options)); }; m4.Minimatch = function Minimatch2(pattern, options) { return new orig.Minimatch(pattern, ext(def, options)); }; + m4.Minimatch.defaults = function defaults(options) { + return orig.defaults(ext(def, options)).Minimatch; + }; + m4.filter = function filter3(pattern, options) { + return orig.filter(pattern, ext(def, options)); + }; + m4.defaults = function defaults(options) { + return orig.defaults(ext(def, options)); + }; + m4.makeRe = function makeRe2(pattern, options) { + return orig.makeRe(pattern, ext(def, options)); + }; + m4.braceExpand = function braceExpand2(pattern, options) { + return orig.braceExpand(pattern, ext(def, options)); + }; + m4.match = function(list, pattern, options) { + return orig.match(list, pattern, ext(def, options)); + }; return m4; }; Minimatch.defaults = function(def) { - if (!def || !Object.keys(def).length) - return Minimatch; return minimatch.defaults(def).Minimatch; }; function minimatch(p2, pattern, options) { - if (typeof pattern !== "string") { - throw new TypeError("glob pattern string required"); - } + assertValidPattern(pattern); if (!options) options = {}; if (!options.nocomment && pattern.charAt(0) === "#") { return false; } - if (pattern.trim() === "") - return p2 === ""; return new Minimatch(pattern, options).match(p2); } function Minimatch(pattern, options) { if (!(this instanceof Minimatch)) { return new Minimatch(pattern, options); } - if (typeof pattern !== "string") { - throw new TypeError("glob pattern string required"); - } + assertValidPattern(pattern); if (!options) options = {}; pattern = pattern.trim(); - if (path.sep !== "/") { + if (!options.allowWindowsEscape && path.sep !== "/") { pattern = pattern.split(path.sep).join("/"); } this.options = options; @@ -3571,14 +3341,13 @@ var require_minimatch = __commonJS({ this.negate = false; this.comment = false; this.empty = false; + this.partial = !!options.partial; this.make(); } Minimatch.prototype.debug = function() { }; Minimatch.prototype.make = make2; function make2() { - if (this._made) - return; var pattern = this.pattern; var options = this.options; if (!options.nocomment && pattern.charAt(0) === "#") { @@ -3592,7 +3361,9 @@ var require_minimatch = __commonJS({ this.parseNegate(); var set3 = this.globSet = this.braceExpand(); if (options.debug) - this.debug = console.error; + this.debug = function debug() { + console.error.apply(console, arguments); + }; this.debug(this.pattern, set3); set3 = this.globParts = set3.map(function(s) { return s.split(slashSplit); @@ -3637,23 +3408,32 @@ var require_minimatch = __commonJS({ } } pattern = typeof pattern === "undefined" ? this.pattern : pattern; - if (typeof pattern === "undefined") { - throw new TypeError("undefined pattern"); - } - if (options.nobrace || !pattern.match(/\{.*\}/)) { + assertValidPattern(pattern); + if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } return expand(pattern); } + var MAX_PATTERN_LENGTH = 1024 * 64; + var assertValidPattern = function(pattern) { + if (typeof pattern !== "string") { + throw new TypeError("invalid pattern"); + } + if (pattern.length > MAX_PATTERN_LENGTH) { + throw new TypeError("pattern is too long"); + } + }; Minimatch.prototype.parse = parse; var SUBPARSE = {}; function parse(pattern, isSub) { - if (pattern.length > 1024 * 64) { - throw new TypeError("pattern is too long"); - } + assertValidPattern(pattern); var options = this.options; - if (!options.noglobstar && pattern === "**") - return GLOBSTAR; + if (pattern === "**") { + if (!options.noglobstar) + return GLOBSTAR; + else + pattern = "*"; + } if (pattern === "") return ""; var re3 = ""; @@ -3694,8 +3474,9 @@ var require_minimatch = __commonJS({ continue; } switch (c3) { - case "/": + case "/": { return false; + } case "\\": clearStateChar(); escaping = true; @@ -3779,17 +3560,15 @@ var require_minimatch = __commonJS({ escaping = false; continue; } - if (inClass) { - var cs2 = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs2 + "]"); - } catch (er) { - var sp2 = this.parse(cs2, SUBPARSE); - re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; - hasMagic = hasMagic || sp2[1]; - inClass = false; - continue; - } + var cs2 = pattern.substring(classStart + 1, i); + try { + RegExp("[" + cs2 + "]"); + } catch (er) { + var sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; + hasMagic = hasMagic || sp2[1]; + inClass = false; + continue; } hasMagic = true; inClass = false; @@ -3831,8 +3610,8 @@ var require_minimatch = __commonJS({ } var addPatternStart = false; switch (re3.charAt(0)) { - case ".": case "[": + case ".": case "(": addPatternStart = true; } @@ -3919,8 +3698,9 @@ var require_minimatch = __commonJS({ } return list; }; - Minimatch.prototype.match = match; - function match(f2, partial) { + Minimatch.prototype.match = function match(f2, partial) { + if (typeof partial === "undefined") + partial = this.partial; this.debug("match", f2, this.pattern); if (this.comment) return false; @@ -3959,7 +3739,7 @@ var require_minimatch = __commonJS({ if (options.flipNegate) return false; return this.negate; - } + }; Minimatch.prototype.matchOne = function(file, pattern, partial) { var options = this.options; this.debug("matchOne", { "this": this, file, pattern }); @@ -4007,11 +3787,7 @@ var require_minimatch = __commonJS({ } var hit; if (typeof p2 === "string") { - if (options.nocase) { - hit = f2.toLowerCase() === p2.toLowerCase(); - } else { - hit = f2 === p2; - } + hit = f2 === p2; this.debug("string match", p2, f2, hit); } else { hit = f2.match(p2); @@ -4025,8 +3801,7 @@ var require_minimatch = __commonJS({ } else if (fi === fl) { return partial; } else if (pi === pl2) { - var emptyFileEnd = fi === fl - 1 && file[fi] === ""; - return emptyFileEnd; + return fi === fl - 1 && file[fi] === ""; } throw new Error("wtf?"); }; @@ -4119,6 +3894,7 @@ var require_common = __commonJS({ function ownProp(obj, field) { return Object.prototype.hasOwnProperty.call(obj, field); } + var fs4 = require("fs"); var path = require("path"); var minimatch = require_minimatch(); var isAbsolute = require_path_is_absolute(); @@ -4173,6 +3949,7 @@ var require_common = __commonJS({ self3.stat = !!options.stat; self3.noprocess = !!options.noprocess; self3.absolute = !!options.absolute; + self3.fs = options.fs || fs4; self3.maxLength = options.maxLength || Infinity; self3.cache = options.cache || Object.create(null); self3.statCache = options.statCache || Object.create(null); @@ -4302,7 +4079,6 @@ var require_sync = __commonJS({ "node_modules/glob/sync.js"(exports2, module2) { module2.exports = globSync; globSync.GlobSync = GlobSync; - var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -4478,7 +4254,7 @@ var require_sync = __commonJS({ var lstat; var stat; try { - lstat = fs4.lstatSync(abs); + lstat = this.fs.lstatSync(abs); } catch (er) { if (er.code === "ENOENT") { return null; @@ -4504,7 +4280,7 @@ var require_sync = __commonJS({ return c3; } try { - return this._readdirEntries(abs, fs4.readdirSync(abs)); + return this._readdirEntries(abs, this.fs.readdirSync(abs)); } catch (er) { this._readdirError(abs, er); return null; @@ -4613,7 +4389,7 @@ var require_sync = __commonJS({ if (!stat) { var lstat; try { - lstat = fs4.lstatSync(abs); + lstat = this.fs.lstatSync(abs); } catch (er) { if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { this.statCache[abs] = false; @@ -4622,7 +4398,7 @@ var require_sync = __commonJS({ } if (lstat && lstat.isSymbolicLink()) { try { - stat = fs4.statSync(abs); + stat = this.fs.statSync(abs); } catch (er) { stat = lstat; } @@ -4775,7 +4551,6 @@ var require_inflight = __commonJS({ var require_glob = __commonJS({ "node_modules/glob/glob.js"(exports2, module2) { module2.exports = glob; - var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -5118,7 +4893,7 @@ var require_glob = __commonJS({ var self3 = this; var lstatcb = inflight(lstatkey, lstatcb_); if (lstatcb) - fs4.lstat(abs, lstatcb); + self3.fs.lstat(abs, lstatcb); function lstatcb_(er, lstat) { if (er && er.code === "ENOENT") return cb(); @@ -5147,7 +4922,7 @@ var require_glob = __commonJS({ return cb(null, c3); } var self3 = this; - fs4.readdir(abs, readdirCb(this, abs, cb)); + self3.fs.readdir(abs, readdirCb(this, abs, cb)); }; function readdirCb(self3, abs, cb) { return function(er, entries2) { @@ -5291,10 +5066,10 @@ var require_glob = __commonJS({ var self3 = this; var statcb = inflight("stat\0" + abs, lstatcb_); if (statcb) - fs4.lstat(abs, statcb); + self3.fs.lstat(abs, statcb); function lstatcb_(er, lstat) { if (lstat && lstat.isSymbolicLink()) { - return fs4.stat(abs, function(er2, stat2) { + return self3.fs.stat(abs, function(er2, stat2) { if (er2) self3._stat2(f2, abs, null, lstat, cb); else @@ -6007,7 +5782,7 @@ var require_status_reporter = __commonJS({ "node_modules/@actions/artifact/lib/internal/status-reporter.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core2(); + var core_1 = require_core(); var StatusReporter = class { constructor(displayFrequencyInMilliseconds) { this.totalNumberOfFilesToProcess = 0; @@ -6061,7 +5836,7 @@ var require_http_manager = __commonJS({ "node_modules/@actions/artifact/lib/internal/http-manager.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var HttpManager = class { constructor(clientCount, userAgent) { if (clientCount < 1) { @@ -6250,8 +6025,8 @@ var require_requestUtils = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils3(); - var core2 = __importStar(require_core2()); + var utils_1 = require_utils2(); + var core2 = __importStar(require_core()); var config_variables_1 = require_config_variables(); function retry(name, operation, customErrorMessages, maxAttempts) { return __awaiter(this, void 0, void 0, function* () { @@ -6352,10 +6127,10 @@ var require_upload_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var tmp = __importStar(require_tmp_promise()); var stream = __importStar(require("stream")); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var config_variables_1 = require_config_variables(); var util_1 = require("util"); var url_1 = require("url"); @@ -6681,9 +6456,9 @@ var require_download_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var zlib = __importStar(require("zlib")); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var url_1 = require("url"); var status_reporter_1 = require_status_reporter(); var perf_hooks_1 = require("perf_hooks"); @@ -6964,10 +6739,10 @@ var require_artifact_client = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var upload_specification_1 = require_upload_specification(); var upload_http_client_1 = require_upload_http_client(); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var download_http_client_1 = require_download_http_client(); var download_specification_1 = require_download_specification(); var config_variables_1 = require_config_variables(); @@ -9131,8 +8906,10 @@ var require_react_dom_server_node_production_min = __commonJS({ b = na; return b; } - for (var J = new Uint16Array(16), K = 0; 15 > K; K++) + for (J = new Uint16Array(16), K = 0; 15 > K; K++) J[K] = K + 1; + var J; + var K; J[15] = 0; var pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; var qa = Object.prototype.hasOwnProperty; @@ -13333,7 +13110,7 @@ var require_server = __commonJS({ }); // node_modules/braces/lib/utils.js -var require_utils4 = __commonJS({ +var require_utils3 = __commonJS({ "node_modules/braces/lib/utils.js"(exports2) { "use strict"; exports2.isInteger = (num) => { @@ -13420,7 +13197,7 @@ var require_utils4 = __commonJS({ var require_stringify = __commonJS({ "node_modules/braces/lib/stringify.js"(exports2, module2) { "use strict"; - var utils = require_utils4(); + var utils = require_utils3(); module2.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); @@ -13809,21 +13586,21 @@ var require_fill_range = __commonJS({ } let parts = { negatives: [], positives: [] }; let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range = []; + let range2 = []; let index = 0; while (descending ? a2 >= b : a2 <= b) { if (options.toRegex === true && step > 1) { push(a2); } else { - range.push(pad2(format2(a2, index), maxLen, toNumber)); + range2.push(pad2(format2(a2, index), maxLen, toNumber)); } a2 = descending ? a2 - step : a2 + step; index++; } if (options.toRegex === true) { - return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options }); + return step > 1 ? toSequence(parts, options) : toRegex(range2, null, { wrap: false, ...options }); } - return range; + return range2; }; var fillLetters = (start2, end, step = 1, options = {}) => { if (!isNumber(start2) && start2.length > 1 || !isNumber(end) && end.length > 1) { @@ -13838,17 +13615,17 @@ var require_fill_range = __commonJS({ if (options.toRegex && step === 1) { return toRange(min, max, false, options); } - let range = []; + let range2 = []; let index = 0; while (descending ? a2 >= b : a2 <= b) { - range.push(format2(a2, index)); + range2.push(format2(a2, index)); a2 = descending ? a2 - step : a2 + step; index++; } if (options.toRegex === true) { - return toRegex(range, null, { wrap: false, options }); + return toRegex(range2, null, { wrap: false, options }); } - return range; + return range2; }; var fill = (start2, end, step, options = {}) => { if (end == null && isValidValue(start2)) { @@ -13886,7 +13663,7 @@ var require_compile = __commonJS({ "node_modules/braces/lib/compile.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var utils = require_utils4(); + var utils = require_utils3(); var compile = (ast, options = {}) => { let walk = (node, parent = {}) => { let invalidBlock = utils.isInvalidBrace(parent); @@ -13914,9 +13691,9 @@ var require_compile = __commonJS({ } if (node.nodes && node.ranges > 0) { let args = utils.reduce(node.nodes); - let range = fill(...args, { ...options, wrap: false, toRegex: true }); - if (range.length !== 0) { - return args.length > 1 && range.length > 1 ? `(${range})` : range; + let range2 = fill(...args, { ...options, wrap: false, toRegex: true }); + if (range2.length !== 0) { + return args.length > 1 && range2.length > 1 ? `(${range2})` : range2; } } if (node.nodes) { @@ -13938,7 +13715,7 @@ var require_expand = __commonJS({ "use strict"; var fill = require_fill_range(); var stringify = require_stringify(); - var utils = require_utils4(); + var utils = require_utils3(); var append = (queue = "", stash = "", enclose = false) => { let result = []; queue = [].concat(queue); @@ -13986,11 +13763,11 @@ var require_expand = __commonJS({ if (utils.exceedsLimit(...args, options.step, rangeLimit)) { throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); } - let range = fill(...args, options); - if (range.length === 0) { - range = stringify(node, options); + let range2 = fill(...args, options); + if (range2.length === 0) { + range2 = stringify(node, options); } - q2.push(append(q2.pop(), range)); + q2.push(append(q2.pop(), range2)); node.nodes = []; return; } @@ -14522,7 +14299,7 @@ var require_constants2 = __commonJS({ }); // node_modules/picomatch/lib/utils.js -var require_utils5 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/picomatch/lib/utils.js"(exports2) { "use strict"; var path = require("path"); @@ -14588,7 +14365,7 @@ var require_utils5 = __commonJS({ var require_scan = __commonJS({ "node_modules/picomatch/lib/scan.js"(exports2, module2) { "use strict"; - var utils = require_utils5(); + var utils = require_utils4(); var { CHAR_ASTERISK, CHAR_AT, @@ -14907,7 +14684,7 @@ var require_parse2 = __commonJS({ "node_modules/picomatch/lib/parse.js"(exports2, module2) { "use strict"; var constants2 = require_constants2(); - var utils = require_utils5(); + var utils = require_utils4(); var { MAX_LENGTH, POSIX_REGEX_SOURCE, @@ -15081,7 +14858,8 @@ var require_parse2 = __commonJS({ output = token.close = `)$))${extglobStar}`; } if (token.inner.includes("*") && (rest2 = remaining()) && /^\.[^\\/.]+$/.test(rest2)) { - output = token.close = `)${rest2})${extglobStar})`; + const expression = parse(rest2, { ...options, fastpaths: false }).output; + output = token.close = `)${expression})${extglobStar})`; } if (token.prev.type === "bos") { state.negatedExtglob = true; @@ -15303,17 +15081,17 @@ var require_parse2 = __commonJS({ let output = ")"; if (brace.dots === true) { const arr = tokens.slice(); - const range = []; + const range2 = []; for (let i = arr.length - 1; i >= 0; i--) { tokens.pop(); if (arr[i].type === "brace") { break; } if (arr[i].type !== "dots") { - range.unshift(arr[i].value); + range2.unshift(arr[i].value); } } - output = expandRange(range, opts); + output = expandRange(range2, opts); state.backtrack = true; } if (brace.comma !== true && brace.dots !== true) { @@ -15689,7 +15467,7 @@ var require_picomatch = __commonJS({ var path = require("path"); var scan = require_scan(); var parse = require_parse2(); - var utils = require_utils5(); + var utils = require_utils4(); var constants2 = require_constants2(); var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); var picomatch = (glob, options, returnState = false) => { @@ -15841,7 +15619,7 @@ var require_micromatch = __commonJS({ var util = require("util"); var braces = require_braces(); var picomatch = require_picomatch2(); - var utils = require_utils5(); + var utils = require_utils4(); var isEmptyString = (val) => val === "" || val === "./"; var micromatch = (list, patterns, options) => { patterns = [].concat(patterns); @@ -17826,8 +17604,8 @@ var require_stringToPath = __commonJS({ if (string.charCodeAt(0) === 46) { result.push(""); } - string.replace(rePropName, function(match, number3, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, "$1") : number3 || match); + string.replace(rePropName, function(match, number4, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match); }); return result; }); @@ -18560,74 +18338,69 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = var import_react2 = __toModule(require_react()); // node_modules/d3-array/src/ascending.js -function ascending_default(a2, b) { +function ascending(a2, b) { return a2 == null || b == null ? NaN : a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; } // node_modules/d3-array/src/bisector.js -function bisector_default(f2) { +function bisector(f2) { let delta = f2; - let compare = f2; - if (f2.length === 1) { + let compare1 = f2; + let compare2 = f2; + if (f2.length !== 2) { delta = (d2, x2) => f2(d2) - x2; - compare = ascendingComparator(f2); - } - function left(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - while (lo < hi) { - const mid = lo + hi >>> 1; - if (compare(a2[mid], x2) < 0) - lo = mid + 1; - else - hi = mid; + compare1 = ascending; + compare2 = (d2, x2) => ascending(f2(d2), x2); + } + function left(a2, x2, lo = 0, hi = a2.length) { + if (lo < hi) { + if (compare1(x2, x2) !== 0) + return hi; + do { + const mid = lo + hi >>> 1; + if (compare2(a2[mid], x2) < 0) + lo = mid + 1; + else + hi = mid; + } while (lo < hi); } return lo; } - function right(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - while (lo < hi) { - const mid = lo + hi >>> 1; - if (compare(a2[mid], x2) > 0) - hi = mid; - else - lo = mid + 1; + function right(a2, x2, lo = 0, hi = a2.length) { + if (lo < hi) { + if (compare1(x2, x2) !== 0) + return hi; + do { + const mid = lo + hi >>> 1; + if (compare2(a2[mid], x2) <= 0) + lo = mid + 1; + else + hi = mid; + } while (lo < hi); } return lo; } - function center(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; + function center(a2, x2, lo = 0, hi = a2.length) { const i = left(a2, x2, lo, hi - 1); return i > lo && delta(a2[i - 1], x2) > -delta(a2[i], x2) ? i - 1 : i; } return { left, center, right }; } -function ascendingComparator(f2) { - return (d2, x2) => ascending_default(f2(d2), x2); -} // node_modules/d3-array/src/number.js -function number_default(x2) { +function number(x2) { return x2 === null ? NaN : +x2; } // node_modules/d3-array/src/bisect.js -var ascendingBisect = bisector_default(ascending_default); +var ascendingBisect = bisector(ascending); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; -var bisectCenter = bisector_default(number_default).center; +var bisectCenter = bisector(number).center; var bisect_default = bisectRight; // node_modules/d3-array/src/extent.js -function extent_default(values, valueof) { +function extent(values, valueof) { let min; let max; if (valueof === void 0) { @@ -18667,8 +18440,8 @@ function extent_default(values, valueof) { var e10 = Math.sqrt(50); var e5 = Math.sqrt(10); var e2 = Math.sqrt(2); -function ticks_default(start2, stop, count2) { - var reverse, i = -1, n2, ticks, step; +function ticks(start2, stop, count2) { + var reverse, i = -1, n2, ticks2, step; stop = +stop, start2 = +start2, count2 = +count2; if (start2 === stop && count2 > 0) return [start2]; @@ -18682,9 +18455,9 @@ function ticks_default(start2, stop, count2) { ++r0; if (r1 * step > stop) --r1; - ticks = new Array(n2 = r1 - r0 + 1); + ticks2 = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks[i] = (r0 + i) * step; + ticks2[i] = (r0 + i) * step; } else { step = -step; let r0 = Math.round(start2 * step), r1 = Math.round(stop * step); @@ -18692,13 +18465,13 @@ function ticks_default(start2, stop, count2) { ++r0; if (r1 / step > stop) --r1; - ticks = new Array(n2 = r1 - r0 + 1); + ticks2 = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks[i] = (r0 + i) / step; + ticks2[i] = (r0 + i) / step; } if (reverse) - ticks.reverse(); - return ticks; + ticks2.reverse(); + return ticks2; } function tickIncrement(start2, stop, count2) { var step = (stop - start2) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); @@ -18716,13 +18489,13 @@ function tickStep(start2, stop, count2) { } // node_modules/d3-array/src/range.js -function range_default(start2, stop, step) { +function range(start2, stop, step) { start2 = +start2, stop = +stop, step = (n2 = arguments.length) < 2 ? (stop = start2, start2 = 0, 1) : n2 < 3 ? 1 : +step; - var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range = new Array(n2); + var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range2 = new Array(n2); while (++i < n2) { - range[i] = start2 + i * step; + range2[i] = start2 + i * step; } - return range; + return range2; } // node_modules/d3-dispatch/src/dispatch.js @@ -19138,7 +18911,7 @@ function order_default() { // node_modules/d3-selection/src/selection/sort.js function sort_default(compare) { if (!compare) - compare = ascending; + compare = ascending2; function compareNode(a2, b) { return a2 && b ? compare(a2.__data__, b.__data__) : !a2 - !b; } @@ -19152,7 +18925,7 @@ function sort_default(compare) { } return new Selection(sortgroups, this._parents).order(); } -function ascending(a2, b) { +function ascending2(a2, b) { return a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; } @@ -20095,7 +19868,7 @@ function date_default(a2, b) { } // node_modules/d3-interpolate/src/number.js -function number_default2(a2, b) { +function number_default(a2, b) { return a2 = +a2, b = +b, function(t2) { return a2 * (1 - t2) + b * t2; }; @@ -20153,7 +19926,7 @@ function string_default(a2, b) { s[++i] = bm; } else { s[++i] = null; - q2.push({ i, x: number_default2(am, bm) }); + q2.push({ i, x: number_default(am, bm) }); } bi2 = reB.lastIndex; } @@ -20174,7 +19947,7 @@ function string_default(a2, b) { // node_modules/d3-interpolate/src/value.js function value_default(a2, b) { var t2 = typeof b, c3; - return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default2 : t2 === "string" ? (c3 = color(b)) ? (b = c3, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default2)(a2, b); + return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default : t2 === "string" ? (c3 = color(b)) ? (b = c3, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default)(a2, b); } // node_modules/d3-interpolate/src/round.js @@ -20240,7 +20013,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function translate(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); - q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); + q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } @@ -20251,14 +20024,14 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { b += 360; else if (b - a2 > 180) a2 += 360; - q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default2(a2, b) }); + q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default(a2, b) }); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } function skewX(a2, b, s, q2) { if (a2 !== b) { - q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default2(a2, b) }); + q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default(a2, b) }); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } @@ -20266,7 +20039,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function scale(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); - q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); + q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } @@ -20628,7 +20401,7 @@ function tweenValue(transition2, name, value) { // node_modules/d3-transition/src/transition/interpolate.js function interpolate_default(a2, b) { var c3; - return (typeof b === "number" ? number_default2 : b instanceof color ? rgb_default : (c3 = color(b)) ? (b = c3, rgb_default) : string_default)(a2, b); + return (typeof b === "number" ? number_default : b instanceof color ? rgb_default : (c3 = color(b)) ? (b = c3, rgb_default) : string_default)(a2, b); } // node_modules/d3-transition/src/transition/attr.js @@ -21306,7 +21079,7 @@ function data_default2() { } // node_modules/d3-quadtree/src/extent.js -function extent_default2(_10) { +function extent_default(_10) { return arguments.length ? this.cover(+_10[0][0], +_10[0][1]).cover(+_10[1][0], +_10[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]]; } @@ -21527,7 +21300,7 @@ treeProto.add = add_default; treeProto.addAll = addAll; treeProto.cover = cover_default; treeProto.data = data_default2; -treeProto.extent = extent_default2; +treeProto.extent = extent_default; treeProto.find = find_default; treeProto.remove = remove_default3; treeProto.removeAll = removeAll; @@ -22567,7 +22340,7 @@ function translateChild(k) { } // node_modules/d3-scale/src/init.js -function initRange(domain, range) { +function initRange(domain, range2) { switch (arguments.length) { case 0: break; @@ -22575,7 +22348,7 @@ function initRange(domain, range) { this.range(domain); break; default: - this.range(range).domain(domain); + this.range(range2).domain(domain); break; } return this; @@ -22589,7 +22362,7 @@ function constants(x2) { } // node_modules/d3-scale/src/number.js -function number(x2) { +function number3(x2) { return +x2; } @@ -22611,8 +22384,8 @@ function clamper(a2, b) { return Math.max(a2, Math.min(b, x2)); }; } -function bimap(domain, range, interpolate) { - var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; +function bimap(domain, range2, interpolate) { + var d0 = domain[0], d1 = domain[1], r0 = range2[0], r1 = range2[1]; if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else @@ -22621,15 +22394,15 @@ function bimap(domain, range, interpolate) { return r0(d0(x2)); }; } -function polymap(domain, range, interpolate) { - var j3 = Math.min(domain.length, range.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; +function polymap(domain, range2, interpolate) { + var j3 = Math.min(domain.length, range2.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; if (domain[j3] < domain[0]) { domain = domain.slice().reverse(); - range = range.slice().reverse(); + range2 = range2.slice().reverse(); } while (++i < j3) { d2[i] = normalize(domain[i], domain[i + 1]); - r4[i] = interpolate(range[i], range[i + 1]); + r4[i] = interpolate(range2[i], range2[i + 1]); } return function(x2) { var i2 = bisect_default(domain, x2, 1, j3) - 1; @@ -22640,9 +22413,9 @@ function copy(source, target) { return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown()); } function transformer() { - var domain = unit, range = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; + var domain = unit, range2 = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; function rescale() { - var n2 = Math.min(domain.length, range.length); + var n2 = Math.min(domain.length, range2.length); if (clamp !== identity2) clamp = clamper(domain[0], domain[n2 - 1]); piecewise = n2 > 2 ? polymap : bimap; @@ -22650,19 +22423,19 @@ function transformer() { return scale; } function scale(x2) { - return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range, interpolate)))(transform2(clamp(x2))); + return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range2, interpolate)))(transform2(clamp(x2))); } scale.invert = function(y3) { - return clamp(untransform((input || (input = piecewise(range, domain.map(transform2), number_default2)))(y3))); + return clamp(untransform((input || (input = piecewise(range2, domain.map(transform2), number_default)))(y3))); }; scale.domain = function(_10) { - return arguments.length ? (domain = Array.from(_10, number), rescale()) : domain.slice(); + return arguments.length ? (domain = Array.from(_10, number3), rescale()) : domain.slice(); }; scale.range = function(_10) { - return arguments.length ? (range = Array.from(_10), rescale()) : range.slice(); + return arguments.length ? (range2 = Array.from(_10), rescale()) : range2.slice(); }; scale.rangeRound = function(_10) { - return range = Array.from(_10), interpolate = round_default, rescale(); + return range2 = Array.from(_10), interpolate = round_default, rescale(); }; scale.clamp = function(_10) { return arguments.length ? (clamp = _10 ? true : identity2, rescale()) : clamp !== identity2; @@ -22717,7 +22490,7 @@ function linearish(scale) { var domain = scale.domain; scale.ticks = function(count2) { var d2 = domain(); - return ticks_default(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); + return ticks(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); }; scale.tickFormat = function(count2, specifier) { var d2 = domain(); @@ -22823,15 +22596,15 @@ function newInterval(floori, offseti, count2, field) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval2.range = function(start2, stop, step) { - var range = [], previous; + var range2 = [], previous; start2 = interval2.ceil(start2); step = step == null ? 1 : Math.floor(step); if (!(start2 < stop) || !(step > 0)) - return range; + return range2; do - range.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); + range2.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); while (previous < start2 && start2 < stop); - return range; + return range2; }; interval2.filter = function(test) { return newInterval(function(date) { @@ -25828,7 +25601,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus }; const items = flattenTree(data); const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a2, b) => b - a2).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a2, b) => b - a2).slice(2, -2); - const colorExtent2 = extent_default(flatTree); + const colorExtent2 = extent(flatTree); const colors = [ "#f4f4f4", "#f4f4f4", @@ -25836,7 +25609,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus colorEncoding === "last-change" ? "#C7ECEE" : "#FEEAA7", colorEncoding === "number-of-changes" ? "#3C40C6" : "#823471" ]; - const colorScale2 = linear2().domain(range_default(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); + const colorScale2 = linear2().domain(range(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); return { colorScale: colorScale2, colorExtent: colorExtent2 }; }, [data]); const getColor = (d2) => { @@ -26057,10 +25830,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus })); }; var formatD = (d2) => typeof d2 === "number" ? d2 : timeFormat("%b %Y")(d2); -var ColorLegend = ({ scale, extent, colorEncoding }) => { +var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { if (!scale || !scale.ticks) return null; - const ticks = scale.ticks(10); + const ticks2 = scale.ticks(10); return /* @__PURE__ */ import_react2.default.createElement("g", { transform: `translate(${width - 160}, ${height - 90})` }, /* @__PURE__ */ import_react2.default.createElement("text", { @@ -26070,10 +25843,10 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => { textAnchor: "middle" }, colorEncoding === "number-of-changes" ? "Number of changes" : "Last change date"), /* @__PURE__ */ import_react2.default.createElement("linearGradient", { id: "gradient" - }, ticks.map((tick, i) => { + }, ticks2.map((tick, i) => { const color2 = scale(tick); return /* @__PURE__ */ import_react2.default.createElement("stop", { - offset: i / (ticks.length - 1), + offset: i / (ticks2.length - 1), stopColor: color2, key: i }); @@ -26082,7 +25855,7 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => { width: "100", height: "13", fill: "url(#gradient)" - }), extent.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { + }), extent2.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { key: i, x: i ? 100 : 0, y: "23", @@ -26273,7 +26046,7 @@ var main = async () => { core.endGroup(); const rootPath = core.getInput("root_path") || ""; const maxDepth = core.getInput("max_depth") || 9; - const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || "{}"); + const customizeFileColors = JSON.parse(core.getInput("file_colors") || "{}"); const colorEncoding = core.getInput("color_encoding") || "type"; const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram"; const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock"; diff --git a/src/index.jsx b/src/index.jsx index c2f442c..47f6f3c 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -25,7 +25,7 @@ const main = async () => { const rootPath = core.getInput("root_path") || ""; // Micro and minimatch do not support paths starting with ./ const maxDepth = core.getInput("max_depth") || 9 - const customizeFileColors = JSON.parse(core.getInput("customize_file_colors") || '{}'); + const customizeFileColors = JSON.parse(core.getInput("file_colors") || '{}'); const colorEncoding = core.getInput("color_encoding") || "type" const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram" const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock" From 5b3db8f65465c00ab10e67ed7e061ca855f0f43f Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Sat, 26 Mar 2022 17:32:04 +0800 Subject: [PATCH 39/46] feat: change variable name --- index.js | 1399 ++++++++++++++++++++++++++++--------------------- src/Tree.tsx | 6 +- src/index.jsx | 4 +- 3 files changed, 818 insertions(+), 591 deletions(-) diff --git a/index.js b/index.js index 8cb5802..e45dc7b 100644 --- a/index.js +++ b/index.js @@ -1073,6 +1073,356 @@ var require_exec = __commonJS({ // node_modules/@actions/core/lib/utils.js var require_utils = __commonJS({ "node_modules/@actions/core/lib/utils.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toCommandValue = void 0; + function toCommandValue(input) { + if (input === null || input === void 0) { + return ""; + } else if (typeof input === "string" || input instanceof String) { + return input; + } + return JSON.stringify(input); + } + exports2.toCommandValue = toCommandValue; + } +}); + +// node_modules/@actions/core/lib/command.js +var require_command = __commonJS({ + "node_modules/@actions/core/lib/command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issue = exports2.issueCommand = void 0; + var os2 = __importStar(require("os")); + var utils_1 = require_utils(); + function issueCommand(command2, properties2, message) { + const cmd2 = new Command(command2, properties2, message); + process.stdout.write(cmd2.toString() + os2.EOL); + } + exports2.issueCommand = issueCommand; + function issue(name, message = "") { + issueCommand(name, {}, message); + } + exports2.issue = issue; + var CMD_STRING = "::"; + var Command = class { + constructor(command2, properties2, message) { + if (!command2) { + command2 = "missing.command"; + } + this.command = command2; + this.properties = properties2; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += " "; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } else { + cmdStr += ","; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } + }; + function escapeData(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + } + function escapeProperty(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + } + } +}); + +// node_modules/@actions/core/lib/file-command.js +var require_file_command = __commonJS({ + "node_modules/@actions/core/lib/file-command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issueCommand = void 0; + var fs4 = __importStar(require("fs")); + var os2 = __importStar(require("os")); + var utils_1 = require_utils(); + function issueCommand(command2, message) { + const filePath = process.env[`GITHUB_${command2}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command2}`); + } + if (!fs4.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { + encoding: "utf8" + }); + } + exports2.issueCommand = issueCommand; + } +}); + +// node_modules/@actions/core/lib/core.js +var require_core = __commonJS({ + "node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command(); + var file_command_1 = require_file_command(); + var utils_1 = require_utils(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + const delimiter = "_GitHubActionsFileCommandDelimeter_"; + const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; + file_command_1.issueCommand("ENV", commandValue); + } else { + command_1.issueCommand("set-env", { name }, convertedVal); + } + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); + } + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + return inputs; + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, value); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message) { + command_1.issue("error", message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message) { + command_1.issue("warning", message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; + }); + } + exports2.group = group; + function saveState(name, value) { + command_1.issueCommand("save-state", { name }, value); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js +var require_utils2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); exports2.toCommandProperties = exports2.toCommandValue = void 0; @@ -1091,7 +1441,6 @@ var require_utils = __commonJS({ } return { title: annotationProperties.title, - file: annotationProperties.file, line: annotationProperties.startLine, endLine: annotationProperties.endLine, col: annotationProperties.startColumn, @@ -1102,9 +1451,9 @@ var require_utils = __commonJS({ } }); -// node_modules/@actions/core/lib/command.js -var require_command = __commonJS({ - "node_modules/@actions/core/lib/command.js"(exports2) { +// node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js +var require_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) @@ -1137,7 +1486,7 @@ var require_command = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); exports2.issue = exports2.issueCommand = void 0; var os2 = __importStar(require("os")); - var utils_1 = require_utils(); + var utils_1 = require_utils2(); function issueCommand(command2, properties2, message) { const cmd2 = new Command(command2, properties2, message); process.stdout.write(cmd2.toString() + os2.EOL); @@ -1189,9 +1538,9 @@ var require_command = __commonJS({ } }); -// node_modules/@actions/core/lib/file-command.js -var require_file_command = __commonJS({ - "node_modules/@actions/core/lib/file-command.js"(exports2) { +// node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js +var require_file_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) @@ -1225,20 +1574,216 @@ var require_file_command = __commonJS({ exports2.issueCommand = void 0; var fs4 = __importStar(require("fs")); var os2 = __importStar(require("os")); - var utils_1 = require_utils(); + var utils_1 = require_utils2(); function issueCommand(command2, message) { const filePath = process.env[`GITHUB_${command2}`]; if (!filePath) { throw new Error(`Unable to find environment variable for file command ${command2}`); } - if (!fs4.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`); + if (!fs4.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { + encoding: "utf8" + }); + } + exports2.issueCommand = issueCommand; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js +var require_core2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command2(); + var file_command_1 = require_file_command2(); + var utils_1 = require_utils2(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + const delimiter = "_GitHubActionsFileCommandDelimeter_"; + const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; + file_command_1.issueCommand("ENV", commandValue); + } else { + command_1.issueCommand("set-env", { name }, convertedVal); + } + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); + } + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; } - fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { - encoding: "utf8" + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + return inputs; + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, value); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; }); } - exports2.issueCommand = issueCommand; + exports2.group = group; + function saveState(name, value) { + command_1.issueCommand("save-state", { name }, value); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; } }); @@ -1992,356 +2537,55 @@ var require_http_client = __commonJS({ // node_modules/@actions/http-client/auth.js var require_auth = __commonJS({ - "node_modules/@actions/http-client/auth.js"(exports2) { - "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - var BasicCredentialHandler = class { - constructor(username, password) { - this.username = username; - this.password = password; - } - prepareRequest(options) { - options.headers["Authorization"] = "Basic " + Buffer.from(this.username + ":" + this.password).toString("base64"); - } - canHandleAuthentication(response) { - return false; - } - handleAuthentication(httpClient, requestInfo, objs) { - return null; - } - }; - exports2.BasicCredentialHandler = BasicCredentialHandler; - var BearerCredentialHandler = class { - constructor(token) { - this.token = token; - } - prepareRequest(options) { - options.headers["Authorization"] = "Bearer " + this.token; - } - canHandleAuthentication(response) { - return false; - } - handleAuthentication(httpClient, requestInfo, objs) { - return null; - } - }; - exports2.BearerCredentialHandler = BearerCredentialHandler; - var PersonalAccessTokenCredentialHandler = class { - constructor(token) { - this.token = token; - } - prepareRequest(options) { - options.headers["Authorization"] = "Basic " + Buffer.from("PAT:" + this.token).toString("base64"); - } - canHandleAuthentication(response) { - return false; - } - handleAuthentication(httpClient, requestInfo, objs) { - return null; - } - }; - exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; - } -}); - -// node_modules/@actions/core/lib/oidc-utils.js -var require_oidc_utils = __commonJS({ - "node_modules/@actions/core/lib/oidc-utils.js"(exports2) { - "use strict"; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e3) { - reject(e3); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e3) { - reject(e3); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.OidcClient = void 0; - var http_client_1 = require_http_client(); - var auth_1 = require_auth(); - var core_1 = require_core(); - var OidcClient = class { - static createHttpClient(allowRetry = true, maxRetry = 10) { - const requestOptions = { - allowRetries: allowRetry, - maxRetries: maxRetry - }; - return new http_client_1.HttpClient("actions/oidc-client", [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); - } - static getRequestToken() { - const token = process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"]; - if (!token) { - throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable"); - } - return token; - } - static getIDTokenUrl() { - const runtimeUrl = process.env["ACTIONS_ID_TOKEN_REQUEST_URL"]; - if (!runtimeUrl) { - throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable"); - } - return runtimeUrl; - } - static getCall(id_token_url) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - const httpclient = OidcClient.createHttpClient(); - const res2 = yield httpclient.getJson(id_token_url).catch((error) => { - throw new Error(`Failed to get ID Token. - - Error Code : ${error.statusCode} - - Error Message: ${error.result.message}`); - }); - const id_token = (_a = res2.result) === null || _a === void 0 ? void 0 : _a.value; - if (!id_token) { - throw new Error("Response json body do not have ID Token field"); - } - return id_token; - }); - } - static getIDToken(audience) { - return __awaiter(this, void 0, void 0, function* () { - try { - let id_token_url = OidcClient.getIDTokenUrl(); - if (audience) { - const encodedAudience = encodeURIComponent(audience); - id_token_url = `${id_token_url}&audience=${encodedAudience}`; - } - core_1.debug(`ID token url is ${id_token_url}`); - const id_token = yield OidcClient.getCall(id_token_url); - core_1.setSecret(id_token); - return id_token; - } catch (error) { - throw new Error(`Error message: ${error.message}`); - } - }); - } - }; - exports2.OidcClient = OidcClient; - } -}); - -// node_modules/@actions/core/lib/core.js -var require_core = __commonJS({ - "node_modules/@actions/core/lib/core.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e3) { - reject(e3); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e3) { - reject(e3); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; + "node_modules/@actions/http-client/auth.js"(exports2) { + "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getIDToken = exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command(); - var file_command_1 = require_file_command(); - var utils_1 = require_utils(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var oidc_utils_1 = require_oidc_utils(); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); - } else { - command_1.issueCommand("set-env", { name }, convertedVal); + var BasicCredentialHandler = class { + constructor(username, password) { + this.username = username; + this.password = password; } - } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); + prepareRequest(options) { + options.headers["Authorization"] = "Basic " + Buffer.from(this.username + ":" + this.password).toString("base64"); } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); + canHandleAuthentication(response) { + return false; } - if (options && options.trimWhitespace === false) { - return val; + handleAuthentication(httpClient, requestInfo, objs) { + return null; } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput2(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) + }; + exports2.BasicCredentialHandler = BasicCredentialHandler; + var BearerCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + options.headers["Authorization"] = "Bearer " + this.token; + } + canHandleAuthentication(response) { return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput2; - function setOutput2(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput2; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed2(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed2; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message, properties2 = {}) { - command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message, properties2 = {}) { - command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function notice(message, properties2 = {}) { - command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.notice = notice; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); - } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); - } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); - } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; - } - exports2.getState = getState; - function getIDToken(aud) { - return __awaiter(this, void 0, void 0, function* () { - return yield oidc_utils_1.OidcClient.getIDToken(aud); - }); - } - exports2.getIDToken = getIDToken; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.BearerCredentialHandler = BearerCredentialHandler; + var PersonalAccessTokenCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + options.headers["Authorization"] = "Basic " + Buffer.from("PAT:" + this.token).toString("base64"); + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; } }); @@ -2414,7 +2658,7 @@ var require_config_variables = __commonJS({ }); // node_modules/@actions/artifact/lib/internal/utils.js -var require_utils2 = __commonJS({ +var require_utils3 = __commonJS({ "node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { @@ -2445,7 +2689,7 @@ var require_utils2 = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core(); + var core_1 = require_core2(); var fs_1 = require("fs"); var http_client_1 = require_http_client(); var auth_1 = require_auth(); @@ -2691,9 +2935,9 @@ var require_upload_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core_1 = require_core(); + var core_1 = require_core2(); var path_1 = require("path"); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { utils_1.checkArtifactName(artifactName); const specifications = []; @@ -3032,7 +3276,7 @@ var require_balanced_match = __commonJS({ a2 = maybeMatch(a2, str); if (b instanceof RegExp) b = maybeMatch(b, str); - var r4 = range2(a2, b, str); + var r4 = range(a2, b, str); return r4 && { start: r4[0], end: r4[1], @@ -3045,8 +3289,8 @@ var require_balanced_match = __commonJS({ var m4 = str.match(reg2); return m4 ? m4[0] : null; } - balanced.range = range2; - function range2(a2, b, str) { + balanced.range = range; + function range(a2, b, str) { var begs, beg, left, right, result; var ai = str.indexOf(a2); var bi2 = str.indexOf(b, ai + 1); @@ -3232,15 +3476,11 @@ var require_minimatch = __commonJS({ "node_modules/minimatch/minimatch.js"(exports2, module2) { module2.exports = minimatch; minimatch.Minimatch = Minimatch; - var path = function() { - try { - return require("path"); - } catch (e3) { - } - }() || { - sep: "/" - }; - minimatch.sep = path.sep; + var path = { sep: "/" }; + try { + path = require("path"); + } catch (er) { + } var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var expand = require_brace_expansion(); var plTypes = { @@ -3270,68 +3510,58 @@ var require_minimatch = __commonJS({ }; } function ext(a2, b) { + a2 = a2 || {}; b = b || {}; var t2 = {}; - Object.keys(a2).forEach(function(k) { - t2[k] = a2[k]; - }); Object.keys(b).forEach(function(k) { t2[k] = b[k]; }); + Object.keys(a2).forEach(function(k) { + t2[k] = a2[k]; + }); return t2; } minimatch.defaults = function(def) { - if (!def || typeof def !== "object" || !Object.keys(def).length) { + if (!def || !Object.keys(def).length) return minimatch; - } var orig = minimatch; var m4 = function minimatch2(p2, pattern, options) { - return orig(p2, pattern, ext(def, options)); + return orig.minimatch(p2, pattern, ext(def, options)); }; m4.Minimatch = function Minimatch2(pattern, options) { return new orig.Minimatch(pattern, ext(def, options)); }; - m4.Minimatch.defaults = function defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; - }; - m4.filter = function filter3(pattern, options) { - return orig.filter(pattern, ext(def, options)); - }; - m4.defaults = function defaults(options) { - return orig.defaults(ext(def, options)); - }; - m4.makeRe = function makeRe2(pattern, options) { - return orig.makeRe(pattern, ext(def, options)); - }; - m4.braceExpand = function braceExpand2(pattern, options) { - return orig.braceExpand(pattern, ext(def, options)); - }; - m4.match = function(list, pattern, options) { - return orig.match(list, pattern, ext(def, options)); - }; return m4; }; Minimatch.defaults = function(def) { + if (!def || !Object.keys(def).length) + return Minimatch; return minimatch.defaults(def).Minimatch; }; function minimatch(p2, pattern, options) { - assertValidPattern(pattern); + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } if (!options) options = {}; if (!options.nocomment && pattern.charAt(0) === "#") { return false; } + if (pattern.trim() === "") + return p2 === ""; return new Minimatch(pattern, options).match(p2); } function Minimatch(pattern, options) { if (!(this instanceof Minimatch)) { return new Minimatch(pattern, options); } - assertValidPattern(pattern); + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } if (!options) options = {}; pattern = pattern.trim(); - if (!options.allowWindowsEscape && path.sep !== "/") { + if (path.sep !== "/") { pattern = pattern.split(path.sep).join("/"); } this.options = options; @@ -3341,13 +3571,14 @@ var require_minimatch = __commonJS({ this.negate = false; this.comment = false; this.empty = false; - this.partial = !!options.partial; this.make(); } Minimatch.prototype.debug = function() { }; Minimatch.prototype.make = make2; function make2() { + if (this._made) + return; var pattern = this.pattern; var options = this.options; if (!options.nocomment && pattern.charAt(0) === "#") { @@ -3361,9 +3592,7 @@ var require_minimatch = __commonJS({ this.parseNegate(); var set3 = this.globSet = this.braceExpand(); if (options.debug) - this.debug = function debug() { - console.error.apply(console, arguments); - }; + this.debug = console.error; this.debug(this.pattern, set3); set3 = this.globParts = set3.map(function(s) { return s.split(slashSplit); @@ -3408,32 +3637,23 @@ var require_minimatch = __commonJS({ } } pattern = typeof pattern === "undefined" ? this.pattern : pattern; - assertValidPattern(pattern); - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { + if (typeof pattern === "undefined") { + throw new TypeError("undefined pattern"); + } + if (options.nobrace || !pattern.match(/\{.*\}/)) { return [pattern]; } return expand(pattern); } - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = function(pattern) { - if (typeof pattern !== "string") { - throw new TypeError("invalid pattern"); - } - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError("pattern is too long"); - } - }; Minimatch.prototype.parse = parse; var SUBPARSE = {}; function parse(pattern, isSub) { - assertValidPattern(pattern); - var options = this.options; - if (pattern === "**") { - if (!options.noglobstar) - return GLOBSTAR; - else - pattern = "*"; + if (pattern.length > 1024 * 64) { + throw new TypeError("pattern is too long"); } + var options = this.options; + if (!options.noglobstar && pattern === "**") + return GLOBSTAR; if (pattern === "") return ""; var re3 = ""; @@ -3474,9 +3694,8 @@ var require_minimatch = __commonJS({ continue; } switch (c3) { - case "/": { + case "/": return false; - } case "\\": clearStateChar(); escaping = true; @@ -3560,15 +3779,17 @@ var require_minimatch = __commonJS({ escaping = false; continue; } - var cs2 = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs2 + "]"); - } catch (er) { - var sp2 = this.parse(cs2, SUBPARSE); - re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; - hasMagic = hasMagic || sp2[1]; - inClass = false; - continue; + if (inClass) { + var cs2 = pattern.substring(classStart + 1, i); + try { + RegExp("[" + cs2 + "]"); + } catch (er) { + var sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; + hasMagic = hasMagic || sp2[1]; + inClass = false; + continue; + } } hasMagic = true; inClass = false; @@ -3610,8 +3831,8 @@ var require_minimatch = __commonJS({ } var addPatternStart = false; switch (re3.charAt(0)) { - case "[": case ".": + case "[": case "(": addPatternStart = true; } @@ -3698,9 +3919,8 @@ var require_minimatch = __commonJS({ } return list; }; - Minimatch.prototype.match = function match(f2, partial) { - if (typeof partial === "undefined") - partial = this.partial; + Minimatch.prototype.match = match; + function match(f2, partial) { this.debug("match", f2, this.pattern); if (this.comment) return false; @@ -3739,7 +3959,7 @@ var require_minimatch = __commonJS({ if (options.flipNegate) return false; return this.negate; - }; + } Minimatch.prototype.matchOne = function(file, pattern, partial) { var options = this.options; this.debug("matchOne", { "this": this, file, pattern }); @@ -3787,7 +4007,11 @@ var require_minimatch = __commonJS({ } var hit; if (typeof p2 === "string") { - hit = f2 === p2; + if (options.nocase) { + hit = f2.toLowerCase() === p2.toLowerCase(); + } else { + hit = f2 === p2; + } this.debug("string match", p2, f2, hit); } else { hit = f2.match(p2); @@ -3801,7 +4025,8 @@ var require_minimatch = __commonJS({ } else if (fi === fl) { return partial; } else if (pi === pl2) { - return fi === fl - 1 && file[fi] === ""; + var emptyFileEnd = fi === fl - 1 && file[fi] === ""; + return emptyFileEnd; } throw new Error("wtf?"); }; @@ -3894,7 +4119,6 @@ var require_common = __commonJS({ function ownProp(obj, field) { return Object.prototype.hasOwnProperty.call(obj, field); } - var fs4 = require("fs"); var path = require("path"); var minimatch = require_minimatch(); var isAbsolute = require_path_is_absolute(); @@ -3949,7 +4173,6 @@ var require_common = __commonJS({ self3.stat = !!options.stat; self3.noprocess = !!options.noprocess; self3.absolute = !!options.absolute; - self3.fs = options.fs || fs4; self3.maxLength = options.maxLength || Infinity; self3.cache = options.cache || Object.create(null); self3.statCache = options.statCache || Object.create(null); @@ -4079,6 +4302,7 @@ var require_sync = __commonJS({ "node_modules/glob/sync.js"(exports2, module2) { module2.exports = globSync; globSync.GlobSync = GlobSync; + var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -4254,7 +4478,7 @@ var require_sync = __commonJS({ var lstat; var stat; try { - lstat = this.fs.lstatSync(abs); + lstat = fs4.lstatSync(abs); } catch (er) { if (er.code === "ENOENT") { return null; @@ -4280,7 +4504,7 @@ var require_sync = __commonJS({ return c3; } try { - return this._readdirEntries(abs, this.fs.readdirSync(abs)); + return this._readdirEntries(abs, fs4.readdirSync(abs)); } catch (er) { this._readdirError(abs, er); return null; @@ -4389,7 +4613,7 @@ var require_sync = __commonJS({ if (!stat) { var lstat; try { - lstat = this.fs.lstatSync(abs); + lstat = fs4.lstatSync(abs); } catch (er) { if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { this.statCache[abs] = false; @@ -4398,7 +4622,7 @@ var require_sync = __commonJS({ } if (lstat && lstat.isSymbolicLink()) { try { - stat = this.fs.statSync(abs); + stat = fs4.statSync(abs); } catch (er) { stat = lstat; } @@ -4551,6 +4775,7 @@ var require_inflight = __commonJS({ var require_glob = __commonJS({ "node_modules/glob/glob.js"(exports2, module2) { module2.exports = glob; + var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -4893,7 +5118,7 @@ var require_glob = __commonJS({ var self3 = this; var lstatcb = inflight(lstatkey, lstatcb_); if (lstatcb) - self3.fs.lstat(abs, lstatcb); + fs4.lstat(abs, lstatcb); function lstatcb_(er, lstat) { if (er && er.code === "ENOENT") return cb(); @@ -4922,7 +5147,7 @@ var require_glob = __commonJS({ return cb(null, c3); } var self3 = this; - self3.fs.readdir(abs, readdirCb(this, abs, cb)); + fs4.readdir(abs, readdirCb(this, abs, cb)); }; function readdirCb(self3, abs, cb) { return function(er, entries2) { @@ -5066,10 +5291,10 @@ var require_glob = __commonJS({ var self3 = this; var statcb = inflight("stat\0" + abs, lstatcb_); if (statcb) - self3.fs.lstat(abs, statcb); + fs4.lstat(abs, statcb); function lstatcb_(er, lstat) { if (lstat && lstat.isSymbolicLink()) { - return self3.fs.stat(abs, function(er2, stat2) { + return fs4.stat(abs, function(er2, stat2) { if (er2) self3._stat2(f2, abs, null, lstat, cb); else @@ -5782,7 +6007,7 @@ var require_status_reporter = __commonJS({ "node_modules/@actions/artifact/lib/internal/status-reporter.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core(); + var core_1 = require_core2(); var StatusReporter = class { constructor(displayFrequencyInMilliseconds) { this.totalNumberOfFilesToProcess = 0; @@ -5836,7 +6061,7 @@ var require_http_manager = __commonJS({ "node_modules/@actions/artifact/lib/internal/http-manager.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var HttpManager = class { constructor(clientCount, userAgent) { if (clientCount < 1) { @@ -6025,8 +6250,8 @@ var require_requestUtils = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils2(); - var core2 = __importStar(require_core()); + var utils_1 = require_utils3(); + var core2 = __importStar(require_core2()); var config_variables_1 = require_config_variables(); function retry(name, operation, customErrorMessages, maxAttempts) { return __awaiter(this, void 0, void 0, function* () { @@ -6127,10 +6352,10 @@ var require_upload_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core()); + var core2 = __importStar(require_core2()); var tmp = __importStar(require_tmp_promise()); var stream = __importStar(require("stream")); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var config_variables_1 = require_config_variables(); var util_1 = require("util"); var url_1 = require("url"); @@ -6456,9 +6681,9 @@ var require_download_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core()); + var core2 = __importStar(require_core2()); var zlib = __importStar(require("zlib")); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var url_1 = require("url"); var status_reporter_1 = require_status_reporter(); var perf_hooks_1 = require("perf_hooks"); @@ -6739,10 +6964,10 @@ var require_artifact_client = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core2 = __importStar(require_core()); + var core2 = __importStar(require_core2()); var upload_specification_1 = require_upload_specification(); var upload_http_client_1 = require_upload_http_client(); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var download_http_client_1 = require_download_http_client(); var download_specification_1 = require_download_specification(); var config_variables_1 = require_config_variables(); @@ -8906,10 +9131,8 @@ var require_react_dom_server_node_production_min = __commonJS({ b = na; return b; } - for (J = new Uint16Array(16), K = 0; 15 > K; K++) + for (var J = new Uint16Array(16), K = 0; 15 > K; K++) J[K] = K + 1; - var J; - var K; J[15] = 0; var pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; var qa = Object.prototype.hasOwnProperty; @@ -13110,7 +13333,7 @@ var require_server = __commonJS({ }); // node_modules/braces/lib/utils.js -var require_utils3 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/braces/lib/utils.js"(exports2) { "use strict"; exports2.isInteger = (num) => { @@ -13197,7 +13420,7 @@ var require_utils3 = __commonJS({ var require_stringify = __commonJS({ "node_modules/braces/lib/stringify.js"(exports2, module2) { "use strict"; - var utils = require_utils3(); + var utils = require_utils4(); module2.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); @@ -13586,21 +13809,21 @@ var require_fill_range = __commonJS({ } let parts = { negatives: [], positives: [] }; let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range2 = []; + let range = []; let index = 0; while (descending ? a2 >= b : a2 <= b) { if (options.toRegex === true && step > 1) { push(a2); } else { - range2.push(pad2(format2(a2, index), maxLen, toNumber)); + range.push(pad2(format2(a2, index), maxLen, toNumber)); } a2 = descending ? a2 - step : a2 + step; index++; } if (options.toRegex === true) { - return step > 1 ? toSequence(parts, options) : toRegex(range2, null, { wrap: false, ...options }); + return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options }); } - return range2; + return range; }; var fillLetters = (start2, end, step = 1, options = {}) => { if (!isNumber(start2) && start2.length > 1 || !isNumber(end) && end.length > 1) { @@ -13615,17 +13838,17 @@ var require_fill_range = __commonJS({ if (options.toRegex && step === 1) { return toRange(min, max, false, options); } - let range2 = []; + let range = []; let index = 0; while (descending ? a2 >= b : a2 <= b) { - range2.push(format2(a2, index)); + range.push(format2(a2, index)); a2 = descending ? a2 - step : a2 + step; index++; } if (options.toRegex === true) { - return toRegex(range2, null, { wrap: false, options }); + return toRegex(range, null, { wrap: false, options }); } - return range2; + return range; }; var fill = (start2, end, step, options = {}) => { if (end == null && isValidValue(start2)) { @@ -13663,7 +13886,7 @@ var require_compile = __commonJS({ "node_modules/braces/lib/compile.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var utils = require_utils3(); + var utils = require_utils4(); var compile = (ast, options = {}) => { let walk = (node, parent = {}) => { let invalidBlock = utils.isInvalidBrace(parent); @@ -13691,9 +13914,9 @@ var require_compile = __commonJS({ } if (node.nodes && node.ranges > 0) { let args = utils.reduce(node.nodes); - let range2 = fill(...args, { ...options, wrap: false, toRegex: true }); - if (range2.length !== 0) { - return args.length > 1 && range2.length > 1 ? `(${range2})` : range2; + let range = fill(...args, { ...options, wrap: false, toRegex: true }); + if (range.length !== 0) { + return args.length > 1 && range.length > 1 ? `(${range})` : range; } } if (node.nodes) { @@ -13715,7 +13938,7 @@ var require_expand = __commonJS({ "use strict"; var fill = require_fill_range(); var stringify = require_stringify(); - var utils = require_utils3(); + var utils = require_utils4(); var append = (queue = "", stash = "", enclose = false) => { let result = []; queue = [].concat(queue); @@ -13763,11 +13986,11 @@ var require_expand = __commonJS({ if (utils.exceedsLimit(...args, options.step, rangeLimit)) { throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); } - let range2 = fill(...args, options); - if (range2.length === 0) { - range2 = stringify(node, options); + let range = fill(...args, options); + if (range.length === 0) { + range = stringify(node, options); } - q2.push(append(q2.pop(), range2)); + q2.push(append(q2.pop(), range)); node.nodes = []; return; } @@ -14299,7 +14522,7 @@ var require_constants2 = __commonJS({ }); // node_modules/picomatch/lib/utils.js -var require_utils4 = __commonJS({ +var require_utils5 = __commonJS({ "node_modules/picomatch/lib/utils.js"(exports2) { "use strict"; var path = require("path"); @@ -14365,7 +14588,7 @@ var require_utils4 = __commonJS({ var require_scan = __commonJS({ "node_modules/picomatch/lib/scan.js"(exports2, module2) { "use strict"; - var utils = require_utils4(); + var utils = require_utils5(); var { CHAR_ASTERISK, CHAR_AT, @@ -14684,7 +14907,7 @@ var require_parse2 = __commonJS({ "node_modules/picomatch/lib/parse.js"(exports2, module2) { "use strict"; var constants2 = require_constants2(); - var utils = require_utils4(); + var utils = require_utils5(); var { MAX_LENGTH, POSIX_REGEX_SOURCE, @@ -14858,8 +15081,7 @@ var require_parse2 = __commonJS({ output = token.close = `)$))${extglobStar}`; } if (token.inner.includes("*") && (rest2 = remaining()) && /^\.[^\\/.]+$/.test(rest2)) { - const expression = parse(rest2, { ...options, fastpaths: false }).output; - output = token.close = `)${expression})${extglobStar})`; + output = token.close = `)${rest2})${extglobStar})`; } if (token.prev.type === "bos") { state.negatedExtglob = true; @@ -15081,17 +15303,17 @@ var require_parse2 = __commonJS({ let output = ")"; if (brace.dots === true) { const arr = tokens.slice(); - const range2 = []; + const range = []; for (let i = arr.length - 1; i >= 0; i--) { tokens.pop(); if (arr[i].type === "brace") { break; } if (arr[i].type !== "dots") { - range2.unshift(arr[i].value); + range.unshift(arr[i].value); } } - output = expandRange(range2, opts); + output = expandRange(range, opts); state.backtrack = true; } if (brace.comma !== true && brace.dots !== true) { @@ -15467,7 +15689,7 @@ var require_picomatch = __commonJS({ var path = require("path"); var scan = require_scan(); var parse = require_parse2(); - var utils = require_utils4(); + var utils = require_utils5(); var constants2 = require_constants2(); var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); var picomatch = (glob, options, returnState = false) => { @@ -15619,7 +15841,7 @@ var require_micromatch = __commonJS({ var util = require("util"); var braces = require_braces(); var picomatch = require_picomatch2(); - var utils = require_utils4(); + var utils = require_utils5(); var isEmptyString = (val) => val === "" || val === "./"; var micromatch = (list, patterns, options) => { patterns = [].concat(patterns); @@ -17604,8 +17826,8 @@ var require_stringToPath = __commonJS({ if (string.charCodeAt(0) === 46) { result.push(""); } - string.replace(rePropName, function(match, number4, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match); + string.replace(rePropName, function(match, number3, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, "$1") : number3 || match); }); return result; }); @@ -18338,69 +18560,74 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = var import_react2 = __toModule(require_react()); // node_modules/d3-array/src/ascending.js -function ascending(a2, b) { +function ascending_default(a2, b) { return a2 == null || b == null ? NaN : a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; } // node_modules/d3-array/src/bisector.js -function bisector(f2) { +function bisector_default(f2) { let delta = f2; - let compare1 = f2; - let compare2 = f2; - if (f2.length !== 2) { + let compare = f2; + if (f2.length === 1) { delta = (d2, x2) => f2(d2) - x2; - compare1 = ascending; - compare2 = (d2, x2) => ascending(f2(d2), x2); - } - function left(a2, x2, lo = 0, hi = a2.length) { - if (lo < hi) { - if (compare1(x2, x2) !== 0) - return hi; - do { - const mid = lo + hi >>> 1; - if (compare2(a2[mid], x2) < 0) - lo = mid + 1; - else - hi = mid; - } while (lo < hi); + compare = ascendingComparator(f2); + } + function left(a2, x2, lo, hi) { + if (lo == null) + lo = 0; + if (hi == null) + hi = a2.length; + while (lo < hi) { + const mid = lo + hi >>> 1; + if (compare(a2[mid], x2) < 0) + lo = mid + 1; + else + hi = mid; } return lo; } - function right(a2, x2, lo = 0, hi = a2.length) { - if (lo < hi) { - if (compare1(x2, x2) !== 0) - return hi; - do { - const mid = lo + hi >>> 1; - if (compare2(a2[mid], x2) <= 0) - lo = mid + 1; - else - hi = mid; - } while (lo < hi); + function right(a2, x2, lo, hi) { + if (lo == null) + lo = 0; + if (hi == null) + hi = a2.length; + while (lo < hi) { + const mid = lo + hi >>> 1; + if (compare(a2[mid], x2) > 0) + hi = mid; + else + lo = mid + 1; } return lo; } - function center(a2, x2, lo = 0, hi = a2.length) { + function center(a2, x2, lo, hi) { + if (lo == null) + lo = 0; + if (hi == null) + hi = a2.length; const i = left(a2, x2, lo, hi - 1); return i > lo && delta(a2[i - 1], x2) > -delta(a2[i], x2) ? i - 1 : i; } return { left, center, right }; } +function ascendingComparator(f2) { + return (d2, x2) => ascending_default(f2(d2), x2); +} // node_modules/d3-array/src/number.js -function number(x2) { +function number_default(x2) { return x2 === null ? NaN : +x2; } // node_modules/d3-array/src/bisect.js -var ascendingBisect = bisector(ascending); +var ascendingBisect = bisector_default(ascending_default); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; -var bisectCenter = bisector(number).center; +var bisectCenter = bisector_default(number_default).center; var bisect_default = bisectRight; // node_modules/d3-array/src/extent.js -function extent(values, valueof) { +function extent_default(values, valueof) { let min; let max; if (valueof === void 0) { @@ -18440,8 +18667,8 @@ function extent(values, valueof) { var e10 = Math.sqrt(50); var e5 = Math.sqrt(10); var e2 = Math.sqrt(2); -function ticks(start2, stop, count2) { - var reverse, i = -1, n2, ticks2, step; +function ticks_default(start2, stop, count2) { + var reverse, i = -1, n2, ticks, step; stop = +stop, start2 = +start2, count2 = +count2; if (start2 === stop && count2 > 0) return [start2]; @@ -18455,9 +18682,9 @@ function ticks(start2, stop, count2) { ++r0; if (r1 * step > stop) --r1; - ticks2 = new Array(n2 = r1 - r0 + 1); + ticks = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks2[i] = (r0 + i) * step; + ticks[i] = (r0 + i) * step; } else { step = -step; let r0 = Math.round(start2 * step), r1 = Math.round(stop * step); @@ -18465,13 +18692,13 @@ function ticks(start2, stop, count2) { ++r0; if (r1 / step > stop) --r1; - ticks2 = new Array(n2 = r1 - r0 + 1); + ticks = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks2[i] = (r0 + i) / step; + ticks[i] = (r0 + i) / step; } if (reverse) - ticks2.reverse(); - return ticks2; + ticks.reverse(); + return ticks; } function tickIncrement(start2, stop, count2) { var step = (stop - start2) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); @@ -18489,13 +18716,13 @@ function tickStep(start2, stop, count2) { } // node_modules/d3-array/src/range.js -function range(start2, stop, step) { +function range_default(start2, stop, step) { start2 = +start2, stop = +stop, step = (n2 = arguments.length) < 2 ? (stop = start2, start2 = 0, 1) : n2 < 3 ? 1 : +step; - var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range2 = new Array(n2); + var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range = new Array(n2); while (++i < n2) { - range2[i] = start2 + i * step; + range[i] = start2 + i * step; } - return range2; + return range; } // node_modules/d3-dispatch/src/dispatch.js @@ -18911,7 +19138,7 @@ function order_default() { // node_modules/d3-selection/src/selection/sort.js function sort_default(compare) { if (!compare) - compare = ascending2; + compare = ascending; function compareNode(a2, b) { return a2 && b ? compare(a2.__data__, b.__data__) : !a2 - !b; } @@ -18925,7 +19152,7 @@ function sort_default(compare) { } return new Selection(sortgroups, this._parents).order(); } -function ascending2(a2, b) { +function ascending(a2, b) { return a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; } @@ -19868,7 +20095,7 @@ function date_default(a2, b) { } // node_modules/d3-interpolate/src/number.js -function number_default(a2, b) { +function number_default2(a2, b) { return a2 = +a2, b = +b, function(t2) { return a2 * (1 - t2) + b * t2; }; @@ -19926,7 +20153,7 @@ function string_default(a2, b) { s[++i] = bm; } else { s[++i] = null; - q2.push({ i, x: number_default(am, bm) }); + q2.push({ i, x: number_default2(am, bm) }); } bi2 = reB.lastIndex; } @@ -19947,7 +20174,7 @@ function string_default(a2, b) { // node_modules/d3-interpolate/src/value.js function value_default(a2, b) { var t2 = typeof b, c3; - return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default : t2 === "string" ? (c3 = color(b)) ? (b = c3, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default)(a2, b); + return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default2 : t2 === "string" ? (c3 = color(b)) ? (b = c3, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default2)(a2, b); } // node_modules/d3-interpolate/src/round.js @@ -20013,7 +20240,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function translate(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); - q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); + q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } @@ -20024,14 +20251,14 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { b += 360; else if (b - a2 > 180) a2 += 360; - q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default(a2, b) }); + q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default2(a2, b) }); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } function skewX(a2, b, s, q2) { if (a2 !== b) { - q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default(a2, b) }); + q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default2(a2, b) }); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } @@ -20039,7 +20266,7 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function scale(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); - q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); + q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } @@ -20401,7 +20628,7 @@ function tweenValue(transition2, name, value) { // node_modules/d3-transition/src/transition/interpolate.js function interpolate_default(a2, b) { var c3; - return (typeof b === "number" ? number_default : b instanceof color ? rgb_default : (c3 = color(b)) ? (b = c3, rgb_default) : string_default)(a2, b); + return (typeof b === "number" ? number_default2 : b instanceof color ? rgb_default : (c3 = color(b)) ? (b = c3, rgb_default) : string_default)(a2, b); } // node_modules/d3-transition/src/transition/attr.js @@ -21079,7 +21306,7 @@ function data_default2() { } // node_modules/d3-quadtree/src/extent.js -function extent_default(_10) { +function extent_default2(_10) { return arguments.length ? this.cover(+_10[0][0], +_10[0][1]).cover(+_10[1][0], +_10[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]]; } @@ -21300,7 +21527,7 @@ treeProto.add = add_default; treeProto.addAll = addAll; treeProto.cover = cover_default; treeProto.data = data_default2; -treeProto.extent = extent_default; +treeProto.extent = extent_default2; treeProto.find = find_default; treeProto.remove = remove_default3; treeProto.removeAll = removeAll; @@ -22340,7 +22567,7 @@ function translateChild(k) { } // node_modules/d3-scale/src/init.js -function initRange(domain, range2) { +function initRange(domain, range) { switch (arguments.length) { case 0: break; @@ -22348,7 +22575,7 @@ function initRange(domain, range2) { this.range(domain); break; default: - this.range(range2).domain(domain); + this.range(range).domain(domain); break; } return this; @@ -22362,7 +22589,7 @@ function constants(x2) { } // node_modules/d3-scale/src/number.js -function number3(x2) { +function number(x2) { return +x2; } @@ -22384,8 +22611,8 @@ function clamper(a2, b) { return Math.max(a2, Math.min(b, x2)); }; } -function bimap(domain, range2, interpolate) { - var d0 = domain[0], d1 = domain[1], r0 = range2[0], r1 = range2[1]; +function bimap(domain, range, interpolate) { + var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else @@ -22394,15 +22621,15 @@ function bimap(domain, range2, interpolate) { return r0(d0(x2)); }; } -function polymap(domain, range2, interpolate) { - var j3 = Math.min(domain.length, range2.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; +function polymap(domain, range, interpolate) { + var j3 = Math.min(domain.length, range.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; if (domain[j3] < domain[0]) { domain = domain.slice().reverse(); - range2 = range2.slice().reverse(); + range = range.slice().reverse(); } while (++i < j3) { d2[i] = normalize(domain[i], domain[i + 1]); - r4[i] = interpolate(range2[i], range2[i + 1]); + r4[i] = interpolate(range[i], range[i + 1]); } return function(x2) { var i2 = bisect_default(domain, x2, 1, j3) - 1; @@ -22413,9 +22640,9 @@ function copy(source, target) { return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown()); } function transformer() { - var domain = unit, range2 = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; + var domain = unit, range = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; function rescale() { - var n2 = Math.min(domain.length, range2.length); + var n2 = Math.min(domain.length, range.length); if (clamp !== identity2) clamp = clamper(domain[0], domain[n2 - 1]); piecewise = n2 > 2 ? polymap : bimap; @@ -22423,19 +22650,19 @@ function transformer() { return scale; } function scale(x2) { - return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range2, interpolate)))(transform2(clamp(x2))); + return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range, interpolate)))(transform2(clamp(x2))); } scale.invert = function(y3) { - return clamp(untransform((input || (input = piecewise(range2, domain.map(transform2), number_default)))(y3))); + return clamp(untransform((input || (input = piecewise(range, domain.map(transform2), number_default2)))(y3))); }; scale.domain = function(_10) { - return arguments.length ? (domain = Array.from(_10, number3), rescale()) : domain.slice(); + return arguments.length ? (domain = Array.from(_10, number), rescale()) : domain.slice(); }; scale.range = function(_10) { - return arguments.length ? (range2 = Array.from(_10), rescale()) : range2.slice(); + return arguments.length ? (range = Array.from(_10), rescale()) : range.slice(); }; scale.rangeRound = function(_10) { - return range2 = Array.from(_10), interpolate = round_default, rescale(); + return range = Array.from(_10), interpolate = round_default, rescale(); }; scale.clamp = function(_10) { return arguments.length ? (clamp = _10 ? true : identity2, rescale()) : clamp !== identity2; @@ -22490,7 +22717,7 @@ function linearish(scale) { var domain = scale.domain; scale.ticks = function(count2) { var d2 = domain(); - return ticks(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); + return ticks_default(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); }; scale.tickFormat = function(count2, specifier) { var d2 = domain(); @@ -22596,15 +22823,15 @@ function newInterval(floori, offseti, count2, field) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval2.range = function(start2, stop, step) { - var range2 = [], previous; + var range = [], previous; start2 = interval2.ceil(start2); step = step == null ? 1 : Math.floor(step); if (!(start2 < stop) || !(step > 0)) - return range2; + return range; do - range2.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); + range.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); while (previous < start2 && start2 < stop); - return range2; + return range; }; interval2.filter = function(test) { return newInterval(function(date) { @@ -25587,8 +25814,8 @@ var numberOfCommitsAccessor = (d2) => { var _a; return ((_a = d2 == null ? void 0 : d2.commits) == null ? void 0 : _a.length) || 0; }; -var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", customizeFileColors }) => { - const fileColors = { ...language_colors_default, ...customizeFileColors }; +var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", customFileColors }) => { + const fileColors = { ...language_colors_default, ...customFileColors }; const [selectedNodeId, setSelectedNodeId] = (0, import_react2.useState)(null); const cachedPositions = (0, import_react2.useRef)({}); const cachedOrders = (0, import_react2.useRef)({}); @@ -25601,7 +25828,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus }; const items = flattenTree(data); const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a2, b) => b - a2).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a2, b) => b - a2).slice(2, -2); - const colorExtent2 = extent(flatTree); + const colorExtent2 = extent_default(flatTree); const colors = [ "#f4f4f4", "#f4f4f4", @@ -25609,7 +25836,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus colorEncoding === "last-change" ? "#C7ECEE" : "#FEEAA7", colorEncoding === "number-of-changes" ? "#3C40C6" : "#823471" ]; - const colorScale2 = linear2().domain(range(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); + const colorScale2 = linear2().domain(range_default(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); return { colorScale: colorScale2, colorExtent: colorExtent2 }; }, [data]); const getColor = (d2) => { @@ -25830,10 +26057,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus })); }; var formatD = (d2) => typeof d2 === "number" ? d2 : timeFormat("%b %Y")(d2); -var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { +var ColorLegend = ({ scale, extent, colorEncoding }) => { if (!scale || !scale.ticks) return null; - const ticks2 = scale.ticks(10); + const ticks = scale.ticks(10); return /* @__PURE__ */ import_react2.default.createElement("g", { transform: `translate(${width - 160}, ${height - 90})` }, /* @__PURE__ */ import_react2.default.createElement("text", { @@ -25843,10 +26070,10 @@ var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { textAnchor: "middle" }, colorEncoding === "number-of-changes" ? "Number of changes" : "Last change date"), /* @__PURE__ */ import_react2.default.createElement("linearGradient", { id: "gradient" - }, ticks2.map((tick, i) => { + }, ticks.map((tick, i) => { const color2 = scale(tick); return /* @__PURE__ */ import_react2.default.createElement("stop", { - offset: i / (ticks2.length - 1), + offset: i / (ticks.length - 1), stopColor: color2, key: i }); @@ -25855,7 +26082,7 @@ var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { width: "100", height: "13", fill: "url(#gradient)" - }), extent2.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { + }), extent.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { key: i, x: i ? 100 : 0, y: "23", @@ -26046,7 +26273,7 @@ var main = async () => { core.endGroup(); const rootPath = core.getInput("root_path") || ""; const maxDepth = core.getInput("max_depth") || 9; - const customizeFileColors = JSON.parse(core.getInput("file_colors") || "{}"); + const customFileColors = JSON.parse(core.getInput("file_colors") || "{}"); const colorEncoding = core.getInput("color_encoding") || "type"; const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram"; const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock"; @@ -26059,7 +26286,7 @@ var main = async () => { data, maxDepth: +maxDepth, colorEncoding, - customizeFileColors + customFileColors })); const outputFile = core.getInput("output_file") || "./diagram.svg"; core.setOutput("svg", componentCodeString); diff --git a/src/Tree.tsx b/src/Tree.tsx index 9c278fa..4e22a79 100644 --- a/src/Tree.tsx +++ b/src/Tree.tsx @@ -32,7 +32,7 @@ type Props = { filesChanged: string[]; maxDepth: number; colorEncoding: "type" | "number-of-changes" | "last-change" - customizeFileColors?: { [key: string]: string }; + customFileColors?: { [key: string]: string }; }; type ExtendedFileType = { extension?: string; @@ -60,10 +60,10 @@ const maxChildren = 9000; const lastCommitAccessor = (d) => new Date(d.commits?.[0]?.date + "0"); const numberOfCommitsAccessor = (d) => d?.commits?.length || 0; export const Tree = ( - { data, filesChanged = [], maxDepth = 9, colorEncoding = "type", customizeFileColors}: + { data, filesChanged = [], maxDepth = 9, colorEncoding = "type", customFileColors}: Props, ) => { - const fileColors = { ...defaultFileColors, ...customizeFileColors }; + const fileColors = { ...defaultFileColors, ...customFileColors }; const [selectedNodeId, setSelectedNodeId] = useState(null); const cachedPositions = useRef<{ [key: string]: [number, number] }>({}); const cachedOrders = useRef<{ [key: string]: string[] }>({}); diff --git a/src/index.jsx b/src/index.jsx index 47f6f3c..6782a3c 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -25,7 +25,7 @@ const main = async () => { const rootPath = core.getInput("root_path") || ""; // Micro and minimatch do not support paths starting with ./ const maxDepth = core.getInput("max_depth") || 9 - const customizeFileColors = JSON.parse(core.getInput("file_colors") || '{}'); + const customFileColors = JSON.parse(core.getInput("file_colors") || '{}'); const colorEncoding = core.getInput("color_encoding") || "type" const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram" const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock" @@ -39,7 +39,7 @@ const main = async () => { const data = await processDir(rootPath, excludedPaths, excludedGlobs); const componentCodeString = ReactDOMServer.renderToStaticMarkup( - + ); const outputFile = core.getInput("output_file") || "./diagram.svg" From 9d2923132cbbabfd490c76f917c6c88b88d8eff9 Mon Sep 17 00:00:00 2001 From: repo-visualizer Date: Wed, 30 Mar 2022 20:45:32 +0800 Subject: [PATCH 40/46] feat: add file_colors to action.yml --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 356b29e..ac2beb9 100644 --- a/action.yml +++ b/action.yml @@ -31,6 +31,10 @@ inputs: description: "If given, the name of an artifact to be created containing the diagram. Default: don't create an artifact." required: false default: '' + file_colors: + description: "You can customize the colors for specific file extensions. Key/value pairs will extend the [default colors](https://github.com/githubocto/repo-visualizer/pull/src/language-colors.json)." + required: false + default: "{}" outputs: svg: description: "The diagram contents as text" From 44c91c8bfad124af23420a81724562c1450280c6 Mon Sep 17 00:00:00 2001 From: elitejake <74049394+elitejake@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:27:56 +0000 Subject: [PATCH 41/46] Change to imperative-style commit message --- src/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index 6782a3c..d0ca9ae 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -27,7 +27,7 @@ const main = async () => { const maxDepth = core.getInput("max_depth") || 9 const customFileColors = JSON.parse(core.getInput("file_colors") || '{}'); const colorEncoding = core.getInput("color_encoding") || "type" - const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram" + const commitMessage = core.getInput("commit_message") || "Repo visualizer: update diagram" const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock" const excludedPaths = excludedPathsString.split(",").map(str => str.trim()) From 936c35af9a235e13adfcb316a56ef3a49f77866e Mon Sep 17 00:00:00 2001 From: Mac Date: Sat, 20 Aug 2022 16:26:12 +0530 Subject: [PATCH 42/46] fix: cannot find remote branch --- index.js | 23 +++++++++++------------ src/index.jsx | 23 +++++++++++------------ 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/index.js b/index.js index e45dc7b..f379a35 100644 --- a/index.js +++ b/index.js @@ -26275,34 +26275,33 @@ var main = async () => { const maxDepth = core.getInput("max_depth") || 9; const customFileColors = JSON.parse(core.getInput("file_colors") || "{}"); const colorEncoding = core.getInput("color_encoding") || "type"; - const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram"; + const commitMessage = core.getInput("commit_message") || "Repo visualizer: update diagram"; const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock"; const excludedPaths = excludedPathsString.split(",").map((str) => str.trim()); const excludedGlobsString = core.getInput("excluded_globs") || ""; const excludedGlobs = excludedGlobsString.split(";"); const branch = core.getInput("branch"); const data = await processDir(rootPath, excludedPaths, excludedGlobs); - const componentCodeString = import_server.default.renderToStaticMarkup(/* @__PURE__ */ import_react3.default.createElement(Tree, { - data, - maxDepth: +maxDepth, - colorEncoding, - customFileColors - })); - const outputFile = core.getInput("output_file") || "./diagram.svg"; - core.setOutput("svg", componentCodeString); - await import_fs2.default.writeFileSync(outputFile, componentCodeString); let doesBranchExist = true; if (branch) { await (0, import_exec.exec)("git", ["fetch"]); try { - await (0, import_exec.exec)("git", ["rev-parse", "--verify", branch]); - await (0, import_exec.exec)("git", ["checkout", branch]); + await (0, import_exec.exec)("git", ["switch", "-c", branch, "--track", `origin/${branch}`]); } catch { doesBranchExist = false; core.info(`Branch ${branch} does not yet exist, creating ${branch}.`); await (0, import_exec.exec)("git", ["checkout", "-b", branch]); } } + const componentCodeString = import_server.default.renderToStaticMarkup(/* @__PURE__ */ import_react3.default.createElement(Tree, { + data, + maxDepth: +maxDepth, + colorEncoding, + customFileColors + })); + const outputFile = core.getInput("output_file") || "./diagram.svg"; + core.setOutput("svg", componentCodeString); + await import_fs2.default.writeFileSync(outputFile, componentCodeString); await (0, import_exec.exec)("git", ["add", outputFile]); const diff = await execWithOutput("git", ["status", "--porcelain", outputFile]); core.info(`diff: ${diff}`); diff --git a/src/index.jsx b/src/index.jsx index d0ca9ae..fd348b1 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -38,30 +38,29 @@ const main = async () => { const branch = core.getInput("branch") const data = await processDir(rootPath, excludedPaths, excludedGlobs); - const componentCodeString = ReactDOMServer.renderToStaticMarkup( - - ); - - const outputFile = core.getInput("output_file") || "./diagram.svg" - - core.setOutput('svg', componentCodeString) - - await fs.writeFileSync(outputFile, componentCodeString) - let doesBranchExist = true if (branch) { await exec('git', ['fetch']) try { - await exec('git', ['rev-parse', '--verify', branch]) - await exec('git', ['checkout', branch]) + await exec('git', ['switch', '-c' , branch,'--track', `origin/${branch}`]) } catch { doesBranchExist = false core.info(`Branch ${branch} does not yet exist, creating ${branch}.`) await exec('git', ['checkout', '-b', branch]) } } + const componentCodeString = ReactDOMServer.renderToStaticMarkup( + + ); + + const outputFile = core.getInput("output_file") || "./diagram.svg" + + core.setOutput('svg', componentCodeString) + + await fs.writeFileSync(outputFile, componentCodeString) + await exec('git', ['add', outputFile]) const diff = await execWithOutput('git', ['status', '--porcelain', outputFile]) From 2d521404a2bbb7e19dfcde05be442fffb142f038 Mon Sep 17 00:00:00 2001 From: Xander <1174877+xtrasmal@users.noreply.github.com> Date: Sat, 19 Nov 2022 23:44:02 +0100 Subject: [PATCH 43/46] Update to node 16 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ac2beb9..0e44cc6 100644 --- a/action.yml +++ b/action.yml @@ -39,7 +39,7 @@ outputs: svg: description: "The diagram contents as text" runs: - using: "node12" + using: "node16" main: "index.js" branding: color: "purple" From edaaeeb2fb954b2939c4264ae40d45ca1494d692 Mon Sep 17 00:00:00 2001 From: Xander <1174877+xtrasmal@users.noreply.github.com> Date: Sun, 20 Nov 2022 00:07:33 +0100 Subject: [PATCH 44/46] Updated actions core to ^1.10.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e2d226f..9b1a946 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@actions/artifact": "^0.5.2", - "@actions/core": "^1.4.0", + "@actions/core": "^1.10.0", "@actions/exec": "^1.1.0", "d3": "^7.0.0", "esbuild": "^0.12.15", From efd5aaebbdcc2398dcc115503e552beaaa7a009a Mon Sep 17 00:00:00 2001 From: Xander Smalbil <1174877+xtrasmal@users.noreply.github.com> Date: Sun, 20 Nov 2022 00:15:35 +0100 Subject: [PATCH 45/46] New build --- index.js | 4775 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 3024 insertions(+), 1751 deletions(-) diff --git a/index.js b/index.js index f379a35..861d459 100644 --- a/index.js +++ b/index.js @@ -569,24 +569,24 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { cmd2 += toolPath; - for (const a2 of args) { - cmd2 += ` ${a2}`; + for (const a3 of args) { + cmd2 += ` ${a3}`; } } else if (options.windowsVerbatimArguments) { cmd2 += `"${toolPath}"`; - for (const a2 of args) { - cmd2 += ` ${a2}`; + for (const a3 of args) { + cmd2 += ` ${a3}`; } } else { cmd2 += this._windowsQuoteCmdArg(toolPath); - for (const a2 of args) { - cmd2 += ` ${this._windowsQuoteCmdArg(a2)}`; + for (const a3 of args) { + cmd2 += ` ${this._windowsQuoteCmdArg(a3)}`; } } } else { cmd2 += toolPath; - for (const a2 of args) { - cmd2 += ` ${a2}`; + for (const a3 of args) { + cmd2 += ` ${a3}`; } } return cmd2; @@ -619,9 +619,9 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; - for (const a2 of this.args) { + for (const a3 of this.args) { argline += " "; - argline += options.windowsVerbatimArguments ? a2 : this._windowsQuoteCmdArg(a2); + argline += options.windowsVerbatimArguments ? a3 : this._windowsQuoteCmdArg(a3); } argline += '"'; return [argline]; @@ -853,39 +853,39 @@ var require_toolrunner = __commonJS({ let inQuotes = false; let escaped = false; let arg = ""; - function append(c3) { - if (escaped && c3 !== '"') { + function append(c4) { + if (escaped && c4 !== '"') { arg += "\\"; } - arg += c3; + arg += c4; escaped = false; } for (let i = 0; i < argString.length; i++) { - const c3 = argString.charAt(i); - if (c3 === '"') { + const c4 = argString.charAt(i); + if (c4 === '"') { if (!escaped) { inQuotes = !inQuotes; } else { - append(c3); + append(c4); } continue; } - if (c3 === "\\" && escaped) { - append(c3); + if (c4 === "\\" && escaped) { + append(c4); continue; } - if (c3 === "\\" && inQuotes) { + if (c4 === "\\" && inQuotes) { escaped = true; continue; } - if (c3 === " " && !inQuotes) { + if (c4 === " " && !inQuotes) { if (arg.length > 0) { args.push(arg); arg = ""; } continue; } - append(c3); + append(c4); } if (arg.length > 0) { args.push(arg.trim()); @@ -1075,7 +1075,7 @@ var require_utils = __commonJS({ "node_modules/@actions/core/lib/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toCommandValue = void 0; + exports2.toCommandProperties = exports2.toCommandValue = void 0; function toCommandValue(input) { if (input === null || input === void 0) { return ""; @@ -1085,6 +1085,20 @@ var require_utils = __commonJS({ return JSON.stringify(input); } exports2.toCommandValue = toCommandValue; + function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; + } + exports2.toCommandProperties = toCommandProperties; } }); @@ -1175,6 +1189,497 @@ var require_command = __commonJS({ } }); +// node_modules/uuid/dist/rng.js +var require_rng = __commonJS({ + "node_modules/uuid/dist/rng.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = rng; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var rnds8Pool = new Uint8Array(256); + var poolPtr = rnds8Pool.length; + function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); + } + } +}); + +// node_modules/uuid/dist/regex.js +var require_regex = __commonJS({ + "node_modules/uuid/dist/regex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/validate.js +var require_validate = __commonJS({ + "node_modules/uuid/dist/validate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _regex = _interopRequireDefault(require_regex()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function validate(uuid) { + return typeof uuid === "string" && _regex.default.test(uuid); + } + var _default = validate; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/stringify.js +var require_stringify = __commonJS({ + "node_modules/uuid/dist/stringify.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!(0, _validate.default)(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; + } + var _default = stringify; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v1.js +var require_v1 = __commonJS({ + "node_modules/uuid/dist/v1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var _nodeId; + var _clockseq; + var _lastMSecs = 0; + var _lastNSecs = 0; + function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; + } + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n2 = 0; n2 < 6; ++n2) { + b[i + n2] = node[n2]; + } + return buf || (0, _stringify.default)(b); + } + var _default = v1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/parse.js +var require_parse = __commonJS({ + "node_modules/uuid/dist/parse.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + let v2; + const arr = new Uint8Array(16); + arr[0] = (v2 = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v2 >>> 16 & 255; + arr[2] = v2 >>> 8 & 255; + arr[3] = v2 & 255; + arr[4] = (v2 = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v2 & 255; + arr[6] = (v2 = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v2 & 255; + arr[8] = (v2 = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v2 & 255; + arr[10] = (v2 = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v2 / 4294967296 & 255; + arr[12] = v2 >>> 24 & 255; + arr[13] = v2 >>> 16 & 255; + arr[14] = v2 >>> 8 & 255; + arr[15] = v2 & 255; + return arr; + } + var _default = parse; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v35.js +var require_v35 = __commonJS({ + "node_modules/uuid/dist/v35.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = _default; + exports2.URL = exports2.DNS = void 0; + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; + } + var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + exports2.DNS = DNS; + var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + exports2.URL = URL2; + function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = (0, _parse.default)(namespace); + } + if (namespace.length !== 16) { + throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); + } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, _stringify.default)(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; + } + } +}); + +// node_modules/uuid/dist/md5.js +var require_md5 = __commonJS({ + "node_modules/uuid/dist/md5.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("md5").update(bytes).digest(); + } + var _default = md5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v3.js +var require_v3 = __commonJS({ + "node_modules/uuid/dist/v3.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _md = _interopRequireDefault(require_md5()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v3 = (0, _v.default)("v3", 48, _md.default); + var _default = v3; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v4.js +var require_v4 = __commonJS({ + "node_modules/uuid/dist/v4.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return (0, _stringify.default)(rnds); + } + var _default = v4; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/sha1.js +var require_sha1 = __commonJS({ + "node_modules/uuid/dist/sha1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("sha1").update(bytes).digest(); + } + var _default = sha1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v5.js +var require_v5 = __commonJS({ + "node_modules/uuid/dist/v5.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _sha = _interopRequireDefault(require_sha1()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v5 = (0, _v.default)("v5", 80, _sha.default); + var _default = v5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/nil.js +var require_nil = __commonJS({ + "node_modules/uuid/dist/nil.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _default = "00000000-0000-0000-0000-000000000000"; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/version.js +var require_version = __commonJS({ + "node_modules/uuid/dist/version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); + } + var _default = version; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/index.js +var require_dist = __commonJS({ + "node_modules/uuid/dist/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + Object.defineProperty(exports2, "v1", { + enumerable: true, + get: function() { + return _v.default; + } + }); + Object.defineProperty(exports2, "v3", { + enumerable: true, + get: function() { + return _v2.default; + } + }); + Object.defineProperty(exports2, "v4", { + enumerable: true, + get: function() { + return _v3.default; + } + }); + Object.defineProperty(exports2, "v5", { + enumerable: true, + get: function() { + return _v4.default; + } + }); + Object.defineProperty(exports2, "NIL", { + enumerable: true, + get: function() { + return _nil.default; + } + }); + Object.defineProperty(exports2, "version", { + enumerable: true, + get: function() { + return _version.default; + } + }); + Object.defineProperty(exports2, "validate", { + enumerable: true, + get: function() { + return _validate.default; + } + }); + Object.defineProperty(exports2, "stringify", { + enumerable: true, + get: function() { + return _stringify.default; + } + }); + Object.defineProperty(exports2, "parse", { + enumerable: true, + get: function() { + return _parse.default; + } + }); + var _v = _interopRequireDefault(require_v1()); + var _v2 = _interopRequireDefault(require_v3()); + var _v3 = _interopRequireDefault(require_v4()); + var _v4 = _interopRequireDefault(require_v5()); + var _nil = _interopRequireDefault(require_nil()); + var _version = _interopRequireDefault(require_version()); + var _validate = _interopRequireDefault(require_validate()); + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + } +}); + // node_modules/@actions/core/lib/file-command.js var require_file_command = __commonJS({ "node_modules/@actions/core/lib/file-command.js"(exports2) { @@ -1208,11 +1713,12 @@ var require_file_command = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issueCommand = void 0; + exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0; var fs4 = __importStar(require("fs")); var os2 = __importStar(require("os")); + var uuid_1 = require_dist(); var utils_1 = require_utils(); - function issueCommand(command2, message) { + function issueFileCommand(command2, message) { const filePath = process.env[`GITHUB_${command2}`]; if (!filePath) { throw new Error(`Unable to find environment variable for file command ${command2}`); @@ -1224,376 +1730,311 @@ var require_file_command = __commonJS({ encoding: "utf8" }); } - exports2.issueCommand = issueCommand; + exports2.issueFileCommand = issueFileCommand; + function prepareKeyValueMessage(key, value) { + const delimiter = `ghadelimiter_${uuid_1.v4()}`; + const convertedValue = utils_1.toCommandValue(value); + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); + } + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); + } + return `${key}<<${delimiter}${os2.EOL}${convertedValue}${os2.EOL}${delimiter}`; + } + exports2.prepareKeyValueMessage = prepareKeyValueMessage; } }); -// node_modules/@actions/core/lib/core.js -var require_core = __commonJS({ - "node_modules/@actions/core/lib/core.js"(exports2) { +// node_modules/@actions/core/node_modules/@actions/http-client/lib/proxy.js +var require_proxy = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/proxy.js"(exports2) { "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.checkBypass = exports2.getProxyUrl = void 0; + function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === "https:"; + if (checkBypass(reqUrl)) { + return void 0; } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e3) { - reject(e3); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e3) { - reject(e3); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + const proxyVar = (() => { + if (usingSsl) { + return process.env["https_proxy"] || process.env["HTTPS_PROXY"]; + } else { + return process.env["http_proxy"] || process.env["HTTP_PROXY"]; } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command(); - var file_command_1 = require_file_command(); - var utils_1 = require_utils(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); + })(); + if (proxyVar) { + return new URL(proxyVar); } else { - command_1.issueCommand("set-env", { name }, convertedVal); + return void 0; } } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); + exports2.getProxyUrl = getProxyUrl; + function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); + const noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; + if (!noProxy) { + return false; } - if (options && options.trimWhitespace === false) { - return val; + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } else if (reqUrl.protocol === "http:") { + reqPort = 80; + } else if (reqUrl.protocol === "https:") { + reqPort = 443; } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput2(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput2; - function setOutput2(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput2; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed2(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed2; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message) { - command_1.issue("error", message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message) { - command_1.issue("warning", message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); - } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); - } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === "number") { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + for (const upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { + if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { + return true; } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; + } + return false; } - exports2.getState = getState; + exports2.checkBypass = checkBypass; } }); -// node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js -var require_utils2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js"(exports2) { +// node_modules/tunnel/lib/tunnel.js +var require_tunnel = __commonJS({ + "node_modules/tunnel/lib/tunnel.js"(exports2) { "use strict"; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toCommandProperties = exports2.toCommandValue = void 0; - function toCommandValue(input) { - if (input === null || input === void 0) { - return ""; - } else if (typeof input === "string" || input instanceof String) { - return input; - } - return JSON.stringify(input); + var net = require("net"); + var tls = require("tls"); + var http2 = require("http"); + var https = require("https"); + var events = require("events"); + var assert = require("assert"); + var util = require("util"); + exports2.httpOverHttp = httpOverHttp; + exports2.httpsOverHttp = httpsOverHttp; + exports2.httpOverHttps = httpOverHttps; + exports2.httpsOverHttps = httpsOverHttps; + function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + return agent; } - exports2.toCommandValue = toCommandValue; - function toCommandProperties(annotationProperties) { - if (!Object.keys(annotationProperties).length) { - return {}; - } - return { - title: annotationProperties.title, - line: annotationProperties.startLine, - endLine: annotationProperties.endLine, - col: annotationProperties.startColumn, - endColumn: annotationProperties.endColumn - }; + function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; } - exports2.toCommandProperties = toCommandProperties; - } -}); - -// node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js -var require_command2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); - } - __setModuleDefault(result, mod2); - return result; - }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issue = exports2.issueCommand = void 0; - var os2 = __importStar(require("os")); - var utils_1 = require_utils2(); - function issueCommand(command2, properties2, message) { - const cmd2 = new Command(command2, properties2, message); - process.stdout.write(cmd2.toString() + os2.EOL); + function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; } - exports2.issueCommand = issueCommand; - function issue(name, message = "") { - issueCommand(name, {}, message); + function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; } - exports2.issue = issue; - var CMD_STRING = "::"; - var Command = class { - constructor(command2, properties2, message) { - if (!command2) { - command2 = "missing.command"; - } - this.command = command2; - this.properties = properties2; - this.message = message; - } - toString() { - let cmdStr = CMD_STRING + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += " "; - let first = true; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - if (first) { - first = false; - } else { - cmdStr += ","; - } - cmdStr += `${key}=${escapeProperty(val)}`; - } - } + function TunnelingAgent(options) { + var self3 = this; + self3.options = options || {}; + self3.proxyOptions = self3.options.proxy || {}; + self3.maxSockets = self3.options.maxSockets || http2.Agent.defaultMaxSockets; + self3.requests = []; + self3.sockets = []; + self3.on("free", function onFree(socket, host, port, localAddress) { + var options2 = toOptions(host, port, localAddress); + for (var i = 0, len = self3.requests.length; i < len; ++i) { + var pending = self3.requests[i]; + if (pending.host === options2.host && pending.port === options2.port) { + self3.requests.splice(i, 1); + pending.request.onSocket(socket); + return; } } - cmdStr += `${CMD_STRING}${escapeData(this.message)}`; - return cmdStr; - } - }; - function escapeData(s) { - return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); - } - function escapeProperty(s) { - return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + socket.destroy(); + self3.removeSocket(socket); + }); } - } -}); - -// node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js -var require_file_command2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js"(exports2) { - "use strict"; - var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { - return m4[k]; - } }); - } : function(o, m4, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m4[k]; - }); - var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { - Object.defineProperty(o, "default", { enumerable: true, value: v2 }); - } : function(o, v2) { - o["default"] = v2; - }); - var __importStar = exports2 && exports2.__importStar || function(mod2) { - if (mod2 && mod2.__esModule) - return mod2; - var result = {}; - if (mod2 != null) { - for (var k in mod2) - if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) - __createBinding(result, mod2, k); + util.inherits(TunnelingAgent, events.EventEmitter); + TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self3 = this; + var options = mergeOptions({ request: req }, self3.options, toOptions(host, port, localAddress)); + if (self3.sockets.length >= this.maxSockets) { + self3.requests.push(options); + return; } - __setModuleDefault(result, mod2); - return result; + self3.createSocket(options, function(socket) { + socket.on("free", onFree); + socket.on("close", onCloseOrRemove); + socket.on("agentRemove", onCloseOrRemove); + req.onSocket(socket); + function onFree() { + self3.emit("free", socket, options); + } + function onCloseOrRemove(err) { + self3.removeSocket(socket); + socket.removeListener("free", onFree); + socket.removeListener("close", onCloseOrRemove); + socket.removeListener("agentRemove", onCloseOrRemove); + } + }); }; - Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issueCommand = void 0; - var fs4 = __importStar(require("fs")); - var os2 = __importStar(require("os")); - var utils_1 = require_utils2(); - function issueCommand(command2, message) { - const filePath = process.env[`GITHUB_${command2}`]; - if (!filePath) { - throw new Error(`Unable to find environment variable for file command ${command2}`); + TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self3 = this; + var placeholder = {}; + self3.sockets.push(placeholder); + var connectOptions = mergeOptions({}, self3.proxyOptions, { + method: "CONNECT", + path: options.host + ":" + options.port, + agent: false, + headers: { + host: options.host + ":" + options.port + } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; } - if (!fs4.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`); + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers["Proxy-Authorization"] = "Basic " + new Buffer(connectOptions.proxyAuth).toString("base64"); } - fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { - encoding: "utf8" + debug("making CONNECT request"); + var connectReq = self3.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; + connectReq.once("response", onResponse); + connectReq.once("upgrade", onUpgrade); + connectReq.once("connect", onConnect); + connectReq.once("error", onError); + connectReq.end(); + function onResponse(res2) { + res2.upgrade = true; + } + function onUpgrade(res2, socket, head) { + process.nextTick(function() { + onConnect(res2, socket, head); + }); + } + function onConnect(res2, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + if (res2.statusCode !== 200) { + debug("tunneling socket could not be established, statusCode=%d", res2.statusCode); + socket.destroy(); + var error = new Error("tunneling socket could not be established, statusCode=" + res2.statusCode); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug("got illegal response body from proxy"); + socket.destroy(); + var error = new Error("got illegal response body from proxy"); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + debug("tunneling connection has established"); + self3.sockets[self3.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + function onError(cause) { + connectReq.removeAllListeners(); + debug("tunneling socket could not be established, cause=%s\n", cause.message, cause.stack); + var error = new Error("tunneling socket could not be established, cause=" + cause.message); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + } + }; + TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket); + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + var pending = this.requests.shift(); + if (pending) { + this.createSocket(pending, function(socket2) { + pending.request.onSocket(socket2); + }); + } + }; + function createSecureSocket(options, cb) { + var self3 = this; + TunnelingAgent.prototype.createSocket.call(self3, options, function(socket) { + var hostHeader = options.request.getHeader("host"); + var tlsOptions = mergeOptions({}, self3.options, { + socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, "") : options.host + }); + var secureSocket = tls.connect(0, tlsOptions); + self3.sockets[self3.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); }); } - exports2.issueCommand = issueCommand; + function toOptions(host, port, localAddress) { + if (typeof host === "string") { + return { + host, + port, + localAddress + }; + } + return host; + } + function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === "object") { + var keys = Object.keys(overrides); + for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { + var k = keys[j3]; + if (overrides[k] !== void 0) { + target[k] = overrides[k]; + } + } + } + } + return target; + } + var debug; + if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === "string") { + args[0] = "TUNNEL: " + args[0]; + } else { + args.unshift("TUNNEL:"); + } + console.error.apply(console, args); + }; + } else { + debug = function() { + }; + } + exports2.debug = debug; + } +}); + +// node_modules/tunnel/index.js +var require_tunnel2 = __commonJS({ + "node_modules/tunnel/index.js"(exports2, module2) { + module2.exports = require_tunnel(); } }); -// node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js -var require_core2 = __commonJS({ - "node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js"(exports2) { +// node_modules/@actions/core/node_modules/@actions/http-client/lib/index.js +var require_lib = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/index.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) @@ -1651,423 +2092,1188 @@ var require_core2 = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command2(); - var file_command_1 = require_file_command2(); - var utils_1 = require_utils2(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); - } else { - command_1.issueCommand("set-env", { name }, convertedVal); - } - } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); - } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - if (options && options.trimWhitespace === false) { - return val; - } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput2(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput2; - function setOutput2(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput2; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed2(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed2; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message, properties2 = {}) { - command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message, properties2 = {}) { - command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function notice(message, properties2 = {}) { - command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); - } - exports2.notice = notice; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); + exports2.HttpClient = exports2.isHttps = exports2.HttpClientResponse = exports2.HttpClientError = exports2.getProxyUrl = exports2.MediaTypes = exports2.Headers = exports2.HttpCodes = void 0; + var http2 = __importStar(require("http")); + var https = __importStar(require("https")); + var pm = __importStar(require_proxy()); + var tunnel = __importStar(require_tunnel2()); + var HttpCodes; + (function(HttpCodes2) { + HttpCodes2[HttpCodes2["OK"] = 200] = "OK"; + HttpCodes2[HttpCodes2["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes2[HttpCodes2["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes2[HttpCodes2["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes2[HttpCodes2["SeeOther"] = 303] = "SeeOther"; + HttpCodes2[HttpCodes2["NotModified"] = 304] = "NotModified"; + HttpCodes2[HttpCodes2["UseProxy"] = 305] = "UseProxy"; + HttpCodes2[HttpCodes2["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes2[HttpCodes2["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes2[HttpCodes2["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes2[HttpCodes2["BadRequest"] = 400] = "BadRequest"; + HttpCodes2[HttpCodes2["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes2[HttpCodes2["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes2[HttpCodes2["Forbidden"] = 403] = "Forbidden"; + HttpCodes2[HttpCodes2["NotFound"] = 404] = "NotFound"; + HttpCodes2[HttpCodes2["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes2[HttpCodes2["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes2[HttpCodes2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes2[HttpCodes2["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes2[HttpCodes2["Conflict"] = 409] = "Conflict"; + HttpCodes2[HttpCodes2["Gone"] = 410] = "Gone"; + HttpCodes2[HttpCodes2["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes2[HttpCodes2["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes2[HttpCodes2["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes2[HttpCodes2["BadGateway"] = 502] = "BadGateway"; + HttpCodes2[HttpCodes2["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes2[HttpCodes2["GatewayTimeout"] = 504] = "GatewayTimeout"; + })(HttpCodes = exports2.HttpCodes || (exports2.HttpCodes = {})); + var Headers; + (function(Headers2) { + Headers2["Accept"] = "accept"; + Headers2["ContentType"] = "content-type"; + })(Headers = exports2.Headers || (exports2.Headers = {})); + var MediaTypes; + (function(MediaTypes2) { + MediaTypes2["ApplicationJson"] = "application/json"; + })(MediaTypes = exports2.MediaTypes || (exports2.MediaTypes = {})); + function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ""; } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); + exports2.getProxyUrl = getProxyUrl; + var HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect + ]; + var HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout + ]; + var RetryableHttpVerbs = ["OPTIONS", "GET", "DELETE", "HEAD"]; + var ExponentialBackoffCeiling = 10; + var ExponentialBackoffTimeSlice = 5; + var HttpClientError = class extends Error { + constructor(message, statusCode) { + super(message); + this.name = "HttpClientError"; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } + }; + exports2.HttpClientError = HttpClientError; + var HttpClientResponse = class { + constructor(message) { + this.message = message; + } + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on("data", (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on("end", () => { + resolve(output.toString()); + }); + })); + }); + } + }; + exports2.HttpClientResponse = HttpClientResponse; + function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === "https:"; } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); + exports2.isHttps = isHttps; + var HttpClient = class { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("OPTIONS", requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("GET", requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("DELETE", requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("POST", requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("PATCH", requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("PUT", requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("HEAD", requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + getJson(requestUrl, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res2 = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + postJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + putJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + patchJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error("Client has already been disposed."); + } + const parsedUrl = new URL(requestUrl); + let info2 = this._prepareRequest(verb, parsedUrl, headers); + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info2, data); + if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info2, data); + } else { + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0) { + const redirectUrl = response.message.headers["location"]; + if (!redirectUrl) { + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === "https:" && parsedUrl.protocol !== parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) { + throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true."); + } + yield response.readBody(); + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + if (header.toLowerCase() === "authorization") { + delete headers[header]; + } + } + } + info2 = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info2, data); + redirectsRemaining--; + } + if (!response.message.statusCode || !HttpResponseRetryCodes.includes(response.message.statusCode)) { + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + requestRaw(info2, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res2) { + if (err) { + reject(err); + } else if (!res2) { + reject(new Error("Unknown error")); + } else { + resolve(res2); + } + } + this.requestRawWithCallback(info2, data, callbackForResult); + }); + }); + } + requestRawWithCallback(info2, data, onResult) { + if (typeof data === "string") { + if (!info2.options.headers) { + info2.options.headers = {}; + } + info2.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8"); + } + let callbackCalled = false; + function handleResult(err, res2) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res2); + } + } + const req = info2.httpModule.request(info2.options, (msg) => { + const res2 = new HttpClientResponse(msg); + handleResult(void 0, res2); + }); + let socket; + req.on("socket", (sock) => { + socket = sock; + }); + req.setTimeout(this._socketTimeout || 3 * 6e4, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info2.options.path}`)); + }); + req.on("error", function(err) { + handleResult(err); + }); + if (data && typeof data === "string") { + req.write(data, "utf8"); + } + if (data && typeof data !== "string") { + data.on("close", function() { + req.end(); + }); + data.pipe(req); + } else { + req.end(); + } + } + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info2 = {}; + info2.parsedUrl = requestUrl; + const usingSsl = info2.parsedUrl.protocol === "https:"; + info2.httpModule = usingSsl ? https : http2; + const defaultPort = usingSsl ? 443 : 80; + info2.options = {}; + info2.options.host = info2.parsedUrl.hostname; + info2.options.port = info2.parsedUrl.port ? parseInt(info2.parsedUrl.port) : defaultPort; + info2.options.path = (info2.parsedUrl.pathname || "") + (info2.parsedUrl.search || ""); + info2.options.method = method; + info2.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info2.options.headers["user-agent"] = this.userAgent; + } + info2.options.agent = this._getAgent(info2.parsedUrl); + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info2.options); + } + } + return info2; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === "https:"; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http2.globalAgent.maxSockets; + } + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === "https:"; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http2.Agent(options); + this._agent = agent; + } + if (!agent) { + agent = usingSsl ? https.globalAgent : http2.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + return __awaiter(this, void 0, void 0, function* () { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise((resolve) => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res2, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res2.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + function dateTimeDeserializer(key, value) { + if (typeof value === "string") { + const a3 = new Date(value); + if (!isNaN(a3.valueOf())) { + return a3; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res2.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res2.message.headers; + } catch (err) { + } + if (statusCode > 299) { + let msg; + if (obj && obj.message) { + msg = obj.message; + } else if (contents && contents.length > 0) { + msg = contents; + } else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } else { + resolve(response); + } + })); + }); + } + }; + exports2.HttpClient = HttpClient; + var lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); + } +}); + +// node_modules/@actions/core/node_modules/@actions/http-client/lib/auth.js +var require_auth = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/auth.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PersonalAccessTokenCredentialHandler = exports2.BearerCredentialHandler = exports2.BasicCredentialHandler = void 0; + var BasicCredentialHandler = class { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); + } + options.headers["Authorization"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); + } + }; + exports2.BasicCredentialHandler = BasicCredentialHandler; + var BearerCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); + } + options.headers["Authorization"] = `Bearer ${this.token}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); + } + }; + exports2.BearerCredentialHandler = BearerCredentialHandler; + var PersonalAccessTokenCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; - } - exports2.getState = getState; + options.headers["Authorization"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); + } + }; + exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; } }); -// node_modules/@actions/http-client/proxy.js -var require_proxy = __commonJS({ - "node_modules/@actions/http-client/proxy.js"(exports2) { +// node_modules/@actions/core/lib/oidc-utils.js +var require_oidc_utils = __commonJS({ + "node_modules/@actions/core/lib/oidc-utils.js"(exports2) { "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; Object.defineProperty(exports2, "__esModule", { value: true }); - function getProxyUrl(reqUrl) { - let usingSsl = reqUrl.protocol === "https:"; - let proxyUrl; - if (checkBypass(reqUrl)) { - return proxyUrl; + exports2.OidcClient = void 0; + var http_client_1 = require_lib(); + var auth_1 = require_auth(); + var core_1 = require_core(); + var OidcClient = class { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient("actions/oidc-client", [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); } - let proxyVar; - if (usingSsl) { - proxyVar = process.env["https_proxy"] || process.env["HTTPS_PROXY"]; - } else { - proxyVar = process.env["http_proxy"] || process.env["HTTP_PROXY"]; + static getRequestToken() { + const token = process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"]; + if (!token) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable"); + } + return token; } - if (proxyVar) { - proxyUrl = new URL(proxyVar); + static getIDTokenUrl() { + const runtimeUrl = process.env["ACTIONS_ID_TOKEN_REQUEST_URL"]; + if (!runtimeUrl) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable"); + } + return runtimeUrl; } - return proxyUrl; - } - exports2.getProxyUrl = getProxyUrl; - function checkBypass(reqUrl) { - if (!reqUrl.hostname) { - return false; + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res2 = yield httpclient.getJson(id_token_url).catch((error) => { + throw new Error(`Failed to get ID Token. + + Error Code : ${error.statusCode} + + Error Message: ${error.result.message}`); + }); + const id_token = (_a = res2.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error("Response json body do not have ID Token field"); + } + return id_token; + }); } - let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; - if (!noProxy) { - return false; + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); } - let reqPort; - if (reqUrl.port) { - reqPort = Number(reqUrl.port); - } else if (reqUrl.protocol === "http:") { - reqPort = 80; - } else if (reqUrl.protocol === "https:") { - reqPort = 443; + }; + exports2.OidcClient = OidcClient; + } +}); + +// node_modules/@actions/core/lib/summary.js +var require_summary = __commonJS({ + "node_modules/@actions/core/lib/summary.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); } - let upperReqHosts = [reqUrl.hostname.toUpperCase()]; - if (typeof reqPort === "number") { - upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.summary = exports2.markdownSummary = exports2.SUMMARY_DOCS_URL = exports2.SUMMARY_ENV_VAR = void 0; + var os_1 = require("os"); + var fs_1 = require("fs"); + var { access, appendFile, writeFile } = fs_1.promises; + exports2.SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY"; + exports2.SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary"; + var Summary = class { + constructor() { + this._buffer = ""; } - for (let upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { - if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { - return true; + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; + } + const pathFromEnv = process.env[exports2.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports2.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); + } + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); + } catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); + } + this._filePath = pathFromEnv; + return this._filePath; + }); + } + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs).map(([key, value]) => ` ${key}="${value}"`).join(""); + if (!content) { + return `<${tag}${htmlAttrs}>`; } + return `<${tag}${htmlAttrs}>${content}`; } - return false; - } - exports2.checkBypass = checkBypass; + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: "utf8" }); + return this.emptyBuffer(); + }); + } + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + stringify() { + return this._buffer; + } + isEmptyBuffer() { + return this._buffer.length === 0; + } + emptyBuffer() { + this._buffer = ""; + return this; + } + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + addEOL() { + return this.addRaw(os_1.EOL); + } + addCodeBlock(code, lang) { + const attrs = Object.assign({}, lang && { lang }); + const element = this.wrap("pre", this.wrap("code", code), attrs); + return this.addRaw(element).addEOL(); + } + addList(items, ordered = false) { + const tag = ordered ? "ol" : "ul"; + const listItems = items.map((item) => this.wrap("li", item)).join(""); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + addTable(rows) { + const tableBody = rows.map((row) => { + const cells = row.map((cell) => { + if (typeof cell === "string") { + return this.wrap("td", cell); + } + const { header, data, colspan, rowspan } = cell; + const tag = header ? "th" : "td"; + const attrs = Object.assign(Object.assign({}, colspan && { colspan }), rowspan && { rowspan }); + return this.wrap(tag, data, attrs); + }).join(""); + return this.wrap("tr", cells); + }).join(""); + const element = this.wrap("table", tableBody); + return this.addRaw(element).addEOL(); + } + addDetails(label, content) { + const element = this.wrap("details", this.wrap("summary", label) + content); + return this.addRaw(element).addEOL(); + } + addImage(src, alt, options) { + const { width: width2, height: height2 } = options || {}; + const attrs = Object.assign(Object.assign({}, width2 && { width: width2 }), height2 && { height: height2 }); + const element = this.wrap("img", null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(tag) ? tag : "h1"; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + addSeparator() { + const element = this.wrap("hr", null); + return this.addRaw(element).addEOL(); + } + addBreak() { + const element = this.wrap("br", null); + return this.addRaw(element).addEOL(); + } + addQuote(text, cite) { + const attrs = Object.assign({}, cite && { cite }); + const element = this.wrap("blockquote", text, attrs); + return this.addRaw(element).addEOL(); + } + addLink(text, href) { + const element = this.wrap("a", text, { href }); + return this.addRaw(element).addEOL(); + } + }; + var _summary = new Summary(); + exports2.markdownSummary = _summary; + exports2.summary = _summary; } }); -// node_modules/tunnel/lib/tunnel.js -var require_tunnel = __commonJS({ - "node_modules/tunnel/lib/tunnel.js"(exports2) { +// node_modules/@actions/core/lib/path-utils.js +var require_path_utils = __commonJS({ + "node_modules/@actions/core/lib/path-utils.js"(exports2) { "use strict"; - var net = require("net"); - var tls = require("tls"); - var http2 = require("http"); - var https = require("https"); - var events = require("events"); - var assert = require("assert"); - var util = require("util"); - exports2.httpOverHttp = httpOverHttp; - exports2.httpsOverHttp = httpsOverHttp; - exports2.httpOverHttps = httpOverHttps; - exports2.httpsOverHttps = httpsOverHttps; - function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http2.request; - return agent; - } - function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http2.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toPlatformPath = exports2.toWin32Path = exports2.toPosixPath = void 0; + var path = __importStar(require("path")); + function toPosixPath(pth) { + return pth.replace(/[\\]/g, "/"); } - function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; + exports2.toPosixPath = toPosixPath; + function toWin32Path(pth) { + return pth.replace(/[/]/g, "\\"); } - function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; + exports2.toWin32Path = toWin32Path; + function toPlatformPath(pth) { + return pth.replace(/[/\\]/g, path.sep); } - function TunnelingAgent(options) { - var self3 = this; - self3.options = options || {}; - self3.proxyOptions = self3.options.proxy || {}; - self3.maxSockets = self3.options.maxSockets || http2.Agent.defaultMaxSockets; - self3.requests = []; - self3.sockets = []; - self3.on("free", function onFree(socket, host, port, localAddress) { - var options2 = toOptions(host, port, localAddress); - for (var i = 0, len = self3.requests.length; i < len; ++i) { - var pending = self3.requests[i]; - if (pending.host === options2.host && pending.port === options2.port) { - self3.requests.splice(i, 1); - pending.request.onSocket(socket); - return; + exports2.toPlatformPath = toPlatformPath; + } +}); + +// node_modules/@actions/core/lib/core.js +var require_core = __commonJS({ + "node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } } - socket.destroy(); - self3.removeSocket(socket); - }); - } - util.inherits(TunnelingAgent, events.EventEmitter); - TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self3 = this; - var options = mergeOptions({ request: req }, self3.options, toOptions(host, port, localAddress)); - if (self3.sockets.length >= this.maxSockets) { - self3.requests.push(options); - return; - } - self3.createSocket(options, function(socket) { - socket.on("free", onFree); - socket.on("close", onCloseOrRemove); - socket.on("agentRemove", onCloseOrRemove); - req.onSocket(socket); - function onFree() { - self3.emit("free", socket, options); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } } - function onCloseOrRemove(err) { - self3.removeSocket(socket); - socket.removeListener("free", onFree); - socket.removeListener("close", onCloseOrRemove); - socket.removeListener("agentRemove", onCloseOrRemove); + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; - TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self3 = this; - var placeholder = {}; - self3.sockets.push(placeholder); - var connectOptions = mergeOptions({}, self3.proxyOptions, { - method: "CONNECT", - path: options.host + ":" + options.port, - agent: false, - headers: { - host: options.host + ":" + options.port - } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; - } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers["Proxy-Authorization"] = "Basic " + new Buffer(connectOptions.proxyAuth).toString("base64"); - } - debug("making CONNECT request"); - var connectReq = self3.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; - connectReq.once("response", onResponse); - connectReq.once("upgrade", onUpgrade); - connectReq.once("connect", onConnect); - connectReq.once("error", onError); - connectReq.end(); - function onResponse(res2) { - res2.upgrade = true; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getIDToken = exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command(); + var file_command_1 = require_file_command(); + var utils_1 = require_utils(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var oidc_utils_1 = require_oidc_utils(); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("ENV", file_command_1.prepareKeyValueMessage(name, val)); } - function onUpgrade(res2, socket, head) { - process.nextTick(function() { - onConnect(res2, socket, head); - }); + command_1.issueCommand("set-env", { name }, convertedVal); + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueFileCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); } - function onConnect(res2, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); - if (res2.statusCode !== 200) { - debug("tunneling socket could not be established, statusCode=%d", res2.statusCode); - socket.destroy(); - var error = new Error("tunneling socket could not be established, statusCode=" + res2.statusCode); - error.code = "ECONNRESET"; - options.request.emit("error", error); - self3.removeSocket(placeholder); - return; - } - if (head.length > 0) { - debug("got illegal response body from proxy"); - socket.destroy(); - var error = new Error("got illegal response body from proxy"); - error.code = "ECONNRESET"; - options.request.emit("error", error); - self3.removeSocket(placeholder); - return; - } - debug("tunneling connection has established"); - self3.sockets[self3.sockets.indexOf(placeholder)] = socket; - return cb(socket); + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); } - function onError(cause) { - connectReq.removeAllListeners(); - debug("tunneling socket could not be established, cause=%s\n", cause.message, cause.stack); - var error = new Error("tunneling socket could not be established, cause=" + cause.message); - error.code = "ECONNRESET"; - options.request.emit("error", error); - self3.removeSocket(placeholder); + if (options && options.trimWhitespace === false) { + return val; } - }; - TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket); - if (pos === -1) { - return; + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + if (options && options.trimWhitespace === false) { + return inputs; } - this.sockets.splice(pos, 1); - var pending = this.requests.shift(); - if (pending) { - this.createSocket(pending, function(socket2) { - pending.request.onSocket(socket2); - }); + return inputs.map((input) => input.trim()); + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + const filePath = process.env["GITHUB_OUTPUT"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("OUTPUT", file_command_1.prepareKeyValueMessage(name, value)); } - }; - function createSecureSocket(options, cb) { - var self3 = this; - TunnelingAgent.prototype.createSocket.call(self3, options, function(socket) { - var hostHeader = options.request.getHeader("host"); - var tlsOptions = mergeOptions({}, self3.options, { - socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, "") : options.host - }); - var secureSocket = tls.connect(0, tlsOptions); - self3.sockets[self3.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, utils_1.toCommandValue(value)); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; }); } - function toOptions(host, port, localAddress) { - if (typeof host === "string") { - return { - host, - port, - localAddress - }; + exports2.group = group; + function saveState(name, value) { + const filePath = process.env["GITHUB_STATE"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("STATE", file_command_1.prepareKeyValueMessage(name, value)); } - return host; + command_1.issueCommand("save-state", { name }, utils_1.toCommandValue(value)); } - function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === "object") { - var keys = Object.keys(overrides); - for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { - var k = keys[j3]; - if (overrides[k] !== void 0) { - target[k] = overrides[k]; - } - } - } - } - return target; + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; } - var debug; - if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === "string") { - args[0] = "TUNNEL: " + args[0]; - } else { - args.unshift("TUNNEL:"); - } - console.error.apply(console, args); - }; - } else { - debug = function() { - }; + exports2.getState = getState; + function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); } - exports2.debug = debug; + exports2.getIDToken = getIDToken; + var summary_1 = require_summary(); + Object.defineProperty(exports2, "summary", { enumerable: true, get: function() { + return summary_1.summary; + } }); + var summary_2 = require_summary(); + Object.defineProperty(exports2, "markdownSummary", { enumerable: true, get: function() { + return summary_2.markdownSummary; + } }); + var path_utils_1 = require_path_utils(); + Object.defineProperty(exports2, "toPosixPath", { enumerable: true, get: function() { + return path_utils_1.toPosixPath; + } }); + Object.defineProperty(exports2, "toWin32Path", { enumerable: true, get: function() { + return path_utils_1.toWin32Path; + } }); + Object.defineProperty(exports2, "toPlatformPath", { enumerable: true, get: function() { + return path_utils_1.toPlatformPath; + } }); } }); -// node_modules/tunnel/index.js -var require_tunnel2 = __commonJS({ - "node_modules/tunnel/index.js"(exports2, module2) { - module2.exports = require_tunnel(); +// node_modules/@actions/http-client/proxy.js +var require_proxy2 = __commonJS({ + "node_modules/@actions/http-client/proxy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + function getProxyUrl(reqUrl) { + let usingSsl = reqUrl.protocol === "https:"; + let proxyUrl; + if (checkBypass(reqUrl)) { + return proxyUrl; + } + let proxyVar; + if (usingSsl) { + proxyVar = process.env["https_proxy"] || process.env["HTTPS_PROXY"]; + } else { + proxyVar = process.env["http_proxy"] || process.env["HTTP_PROXY"]; + } + if (proxyVar) { + proxyUrl = new URL(proxyVar); + } + return proxyUrl; + } + exports2.getProxyUrl = getProxyUrl; + function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; + if (!noProxy) { + return false; + } + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } else if (reqUrl.protocol === "http:") { + reqPort = 80; + } else if (reqUrl.protocol === "https:") { + reqPort = 443; + } + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === "number") { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + for (let upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { + if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { + return true; + } + } + return false; + } + exports2.checkBypass = checkBypass; } }); @@ -2078,7 +3284,7 @@ var require_http_client = __commonJS({ Object.defineProperty(exports2, "__esModule", { value: true }); var http2 = require("http"); var https = require("https"); - var pm = require_proxy(); + var pm = require_proxy2(); var tunnel; var HttpCodes; (function(HttpCodes2) { @@ -2401,14 +3607,14 @@ var require_http_client = __commonJS({ return info2; } _mergeHeaders(headers) { - const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); if (this.requestOptions && this.requestOptions.headers) { return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); } return lowercaseKeys(headers || {}); } _getExistingOrDefaultHeader(additionalHeaders, header, _default) { - const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); let clientHeader; if (this.requestOptions && this.requestOptions.headers) { clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; @@ -2480,9 +3686,9 @@ var require_http_client = __commonJS({ } static dateTimeDeserializer(key, value) { if (typeof value === "string") { - let a2 = new Date(value); - if (!isNaN(a2.valueOf())) { - return a2; + let a3 = new Date(value); + if (!isNaN(a3.valueOf())) { + return a3; } } return value; @@ -2536,7 +3742,7 @@ var require_http_client = __commonJS({ }); // node_modules/@actions/http-client/auth.js -var require_auth = __commonJS({ +var require_auth2 = __commonJS({ "node_modules/@actions/http-client/auth.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); @@ -2658,7 +3864,7 @@ var require_config_variables = __commonJS({ }); // node_modules/@actions/artifact/lib/internal/utils.js -var require_utils3 = __commonJS({ +var require_utils2 = __commonJS({ "node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { @@ -2689,10 +3895,10 @@ var require_utils3 = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core2(); + var core_1 = require_core(); var fs_1 = require("fs"); var http_client_1 = require_http_client(); - var auth_1 = require_auth(); + var auth_1 = require_auth2(); var config_variables_1 = require_config_variables(); function getExponentialRetryTimeInMilliseconds(retryCount) { if (retryCount < 0) { @@ -2935,9 +4141,9 @@ var require_upload_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core_1 = require_core2(); + var core_1 = require_core(); var path_1 = require("path"); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { utils_1.checkArtifactName(artifactName); const specifications = []; @@ -3271,17 +4477,17 @@ var require_balanced_match = __commonJS({ "node_modules/balanced-match/index.js"(exports2, module2) { "use strict"; module2.exports = balanced; - function balanced(a2, b, str) { - if (a2 instanceof RegExp) - a2 = maybeMatch(a2, str); + function balanced(a3, b, str) { + if (a3 instanceof RegExp) + a3 = maybeMatch(a3, str); if (b instanceof RegExp) b = maybeMatch(b, str); - var r4 = range(a2, b, str); + var r4 = range2(a3, b, str); return r4 && { start: r4[0], end: r4[1], pre: str.slice(0, r4[0]), - body: str.slice(r4[0] + a2.length, r4[1]), + body: str.slice(r4[0] + a3.length, r4[1]), post: str.slice(r4[1] + b.length) }; } @@ -3289,14 +4495,14 @@ var require_balanced_match = __commonJS({ var m4 = str.match(reg2); return m4 ? m4[0] : null; } - balanced.range = range; - function range(a2, b, str) { + balanced.range = range2; + function range2(a3, b, str) { var begs, beg, left, right, result; - var ai = str.indexOf(a2); + var ai = str.indexOf(a3); var bi2 = str.indexOf(b, ai + 1); var i = ai; if (ai >= 0 && bi2 > 0) { - if (a2 === b) { + if (a3 === b) { return [ai, bi2]; } begs = []; @@ -3304,7 +4510,7 @@ var require_balanced_match = __commonJS({ while (i >= 0 && !result) { if (i == ai) { begs.push(i); - ai = str.indexOf(a2, i + 1); + ai = str.indexOf(a3, i + 1); } else if (begs.length == 1) { result = [begs.pop(), bi2]; } else { @@ -3434,25 +4640,25 @@ var require_brace_expansion = __commonJS({ var pad2 = n2.some(isPadded); N = []; for (var i = x2; test(i, y3); i += incr) { - var c3; + var c4; if (isAlphaSequence) { - c3 = String.fromCharCode(i); - if (c3 === "\\") - c3 = ""; + c4 = String.fromCharCode(i); + if (c4 === "\\") + c4 = ""; } else { - c3 = String(i); + c4 = String(i); if (pad2) { - var need = width2 - c3.length; + var need = width2 - c4.length; if (need > 0) { var z = new Array(need + 1).join("0"); if (i < 0) - c3 = "-" + z + c3.slice(1); + c4 = "-" + z + c4.slice(1); else - c3 = z + c3; + c4 = z + c4; } } } - N.push(c3); + N.push(c4); } } else { N = concatMap(n2, function(el2) { @@ -3476,11 +4682,15 @@ var require_minimatch = __commonJS({ "node_modules/minimatch/minimatch.js"(exports2, module2) { module2.exports = minimatch; minimatch.Minimatch = Minimatch; - var path = { sep: "/" }; - try { - path = require("path"); - } catch (er) { - } + var path = function() { + try { + return require("path"); + } catch (e3) { + } + }() || { + sep: "/" + }; + minimatch.sep = path.sep; var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var expand = require_brace_expansion(); var plTypes = { @@ -3496,8 +4706,8 @@ var require_minimatch = __commonJS({ var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; var reSpecials = charSet("().*{}+?[]^$\\!"); function charSet(s) { - return s.split("").reduce(function(set3, c3) { - set3[c3] = true; + return s.split("").reduce(function(set3, c4) { + set3[c4] = true; return set3; }, {}); } @@ -3509,59 +4719,69 @@ var require_minimatch = __commonJS({ return minimatch(p2, pattern, options); }; } - function ext(a2, b) { - a2 = a2 || {}; + function ext(a3, b) { b = b || {}; var t2 = {}; + Object.keys(a3).forEach(function(k) { + t2[k] = a3[k]; + }); Object.keys(b).forEach(function(k) { t2[k] = b[k]; }); - Object.keys(a2).forEach(function(k) { - t2[k] = a2[k]; - }); return t2; } minimatch.defaults = function(def) { - if (!def || !Object.keys(def).length) + if (!def || typeof def !== "object" || !Object.keys(def).length) { return minimatch; + } var orig = minimatch; var m4 = function minimatch2(p2, pattern, options) { - return orig.minimatch(p2, pattern, ext(def, options)); + return orig(p2, pattern, ext(def, options)); }; m4.Minimatch = function Minimatch2(pattern, options) { return new orig.Minimatch(pattern, ext(def, options)); }; + m4.Minimatch.defaults = function defaults(options) { + return orig.defaults(ext(def, options)).Minimatch; + }; + m4.filter = function filter3(pattern, options) { + return orig.filter(pattern, ext(def, options)); + }; + m4.defaults = function defaults(options) { + return orig.defaults(ext(def, options)); + }; + m4.makeRe = function makeRe2(pattern, options) { + return orig.makeRe(pattern, ext(def, options)); + }; + m4.braceExpand = function braceExpand2(pattern, options) { + return orig.braceExpand(pattern, ext(def, options)); + }; + m4.match = function(list, pattern, options) { + return orig.match(list, pattern, ext(def, options)); + }; return m4; }; Minimatch.defaults = function(def) { - if (!def || !Object.keys(def).length) - return Minimatch; return minimatch.defaults(def).Minimatch; }; function minimatch(p2, pattern, options) { - if (typeof pattern !== "string") { - throw new TypeError("glob pattern string required"); - } + assertValidPattern(pattern); if (!options) options = {}; if (!options.nocomment && pattern.charAt(0) === "#") { return false; } - if (pattern.trim() === "") - return p2 === ""; return new Minimatch(pattern, options).match(p2); } function Minimatch(pattern, options) { if (!(this instanceof Minimatch)) { return new Minimatch(pattern, options); } - if (typeof pattern !== "string") { - throw new TypeError("glob pattern string required"); - } + assertValidPattern(pattern); if (!options) options = {}; pattern = pattern.trim(); - if (path.sep !== "/") { + if (!options.allowWindowsEscape && path.sep !== "/") { pattern = pattern.split(path.sep).join("/"); } this.options = options; @@ -3571,14 +4791,13 @@ var require_minimatch = __commonJS({ this.negate = false; this.comment = false; this.empty = false; + this.partial = !!options.partial; this.make(); } Minimatch.prototype.debug = function() { }; Minimatch.prototype.make = make2; function make2() { - if (this._made) - return; var pattern = this.pattern; var options = this.options; if (!options.nocomment && pattern.charAt(0) === "#") { @@ -3592,7 +4811,9 @@ var require_minimatch = __commonJS({ this.parseNegate(); var set3 = this.globSet = this.braceExpand(); if (options.debug) - this.debug = console.error; + this.debug = function debug() { + console.error.apply(console, arguments); + }; this.debug(this.pattern, set3); set3 = this.globParts = set3.map(function(s) { return s.split(slashSplit); @@ -3637,23 +4858,32 @@ var require_minimatch = __commonJS({ } } pattern = typeof pattern === "undefined" ? this.pattern : pattern; - if (typeof pattern === "undefined") { - throw new TypeError("undefined pattern"); - } - if (options.nobrace || !pattern.match(/\{.*\}/)) { + assertValidPattern(pattern); + if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { return [pattern]; } return expand(pattern); } + var MAX_PATTERN_LENGTH = 1024 * 64; + var assertValidPattern = function(pattern) { + if (typeof pattern !== "string") { + throw new TypeError("invalid pattern"); + } + if (pattern.length > MAX_PATTERN_LENGTH) { + throw new TypeError("pattern is too long"); + } + }; Minimatch.prototype.parse = parse; var SUBPARSE = {}; function parse(pattern, isSub) { - if (pattern.length > 1024 * 64) { - throw new TypeError("pattern is too long"); - } + assertValidPattern(pattern); var options = this.options; - if (!options.noglobstar && pattern === "**") - return GLOBSTAR; + if (pattern === "**") { + if (!options.noglobstar) + return GLOBSTAR; + else + pattern = "*"; + } if (pattern === "") return ""; var re3 = ""; @@ -3686,16 +4916,17 @@ var require_minimatch = __commonJS({ stateChar = false; } } - for (var i = 0, len = pattern.length, c3; i < len && (c3 = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re3, c3); - if (escaping && reSpecials[c3]) { - re3 += "\\" + c3; + for (var i = 0, len = pattern.length, c4; i < len && (c4 = pattern.charAt(i)); i++) { + this.debug("%s %s %s %j", pattern, i, re3, c4); + if (escaping && reSpecials[c4]) { + re3 += "\\" + c4; escaping = false; continue; } - switch (c3) { - case "/": + switch (c4) { + case "/": { return false; + } case "\\": clearStateChar(); escaping = true; @@ -3705,17 +4936,17 @@ var require_minimatch = __commonJS({ case "+": case "@": case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c3); + this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c4); if (inClass) { this.debug(" in class"); - if (c3 === "!" && i === classStart + 1) - c3 = "^"; - re3 += c3; + if (c4 === "!" && i === classStart + 1) + c4 = "^"; + re3 += c4; continue; } self3.debug("call clearStateChar %j", stateChar); clearStateChar(); - stateChar = c3; + stateChar = c4; if (options.noext) clearStateChar(); continue; @@ -3765,44 +4996,42 @@ var require_minimatch = __commonJS({ case "[": clearStateChar(); if (inClass) { - re3 += "\\" + c3; + re3 += "\\" + c4; continue; } inClass = true; classStart = i; reClassStart = re3.length; - re3 += c3; + re3 += c4; continue; case "]": if (i === classStart + 1 || !inClass) { - re3 += "\\" + c3; + re3 += "\\" + c4; escaping = false; continue; } - if (inClass) { - var cs2 = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs2 + "]"); - } catch (er) { - var sp2 = this.parse(cs2, SUBPARSE); - re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; - hasMagic = hasMagic || sp2[1]; - inClass = false; - continue; - } + var cs2 = pattern.substring(classStart + 1, i); + try { + RegExp("[" + cs2 + "]"); + } catch (er) { + var sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; + hasMagic = hasMagic || sp2[1]; + inClass = false; + continue; } hasMagic = true; inClass = false; - re3 += c3; + re3 += c4; continue; default: clearStateChar(); if (escaping) { escaping = false; - } else if (reSpecials[c3] && !(c3 === "^" && inClass)) { + } else if (reSpecials[c4] && !(c4 === "^" && inClass)) { re3 += "\\"; } - re3 += c3; + re3 += c4; } } if (inClass) { @@ -3831,8 +5060,8 @@ var require_minimatch = __commonJS({ } var addPatternStart = false; switch (re3.charAt(0)) { - case ".": case "[": + case ".": case "(": addPatternStart = true; } @@ -3919,8 +5148,9 @@ var require_minimatch = __commonJS({ } return list; }; - Minimatch.prototype.match = match; - function match(f2, partial) { + Minimatch.prototype.match = function match(f2, partial) { + if (typeof partial === "undefined") + partial = this.partial; this.debug("match", f2, this.pattern); if (this.comment) return false; @@ -3959,7 +5189,7 @@ var require_minimatch = __commonJS({ if (options.flipNegate) return false; return this.negate; - } + }; Minimatch.prototype.matchOne = function(file, pattern, partial) { var options = this.options; this.debug("matchOne", { "this": this, file, pattern }); @@ -4007,11 +5237,7 @@ var require_minimatch = __commonJS({ } var hit; if (typeof p2 === "string") { - if (options.nocase) { - hit = f2.toLowerCase() === p2.toLowerCase(); - } else { - hit = f2 === p2; - } + hit = f2 === p2; this.debug("string match", p2, f2, hit); } else { hit = f2.match(p2); @@ -4025,8 +5251,7 @@ var require_minimatch = __commonJS({ } else if (fi === fl) { return partial; } else if (pi === pl2) { - var emptyFileEnd = fi === fl - 1 && file[fi] === ""; - return emptyFileEnd; + return fi === fl - 1 && file[fi] === ""; } throw new Error("wtf?"); }; @@ -4119,12 +5344,13 @@ var require_common = __commonJS({ function ownProp(obj, field) { return Object.prototype.hasOwnProperty.call(obj, field); } + var fs4 = require("fs"); var path = require("path"); var minimatch = require_minimatch(); var isAbsolute = require_path_is_absolute(); var Minimatch = minimatch.Minimatch; - function alphasort(a2, b) { - return a2.localeCompare(b, "en"); + function alphasort(a3, b) { + return a3.localeCompare(b, "en"); } function setupIgnores(self3, options) { self3.ignore = options.ignore || []; @@ -4173,6 +5399,7 @@ var require_common = __commonJS({ self3.stat = !!options.stat; self3.noprocess = !!options.noprocess; self3.absolute = !!options.absolute; + self3.fs = options.fs || fs4; self3.maxLength = options.maxLength || Infinity; self3.cache = options.cache || Object.create(null); self3.statCache = options.statCache || Object.create(null); @@ -4196,6 +5423,7 @@ var require_common = __commonJS({ self3.nomount = !!options.nomount; options.nonegate = true; options.nocomment = true; + options.allowWindowsEscape = false; self3.minimatch = new Minimatch(pattern, options); self3.options = self3.minimatch.options; } @@ -4233,9 +5461,9 @@ var require_common = __commonJS({ if (self3.nodir) { all = all.filter(function(e3) { var notDir = !/\/$/.test(e3); - var c3 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; - if (notDir && c3) - notDir = c3 !== "DIR" && !Array.isArray(c3); + var c4 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; + if (notDir && c4) + notDir = c4 !== "DIR" && !Array.isArray(c4); return notDir; }); } @@ -4248,10 +5476,10 @@ var require_common = __commonJS({ } function mark(self3, p2) { var abs = makeAbs(self3, p2); - var c3 = self3.cache[abs]; + var c4 = self3.cache[abs]; var m4 = p2; - if (c3) { - var isDir = c3 === "DIR" || Array.isArray(c3); + if (c4) { + var isDir = c4 === "DIR" || Array.isArray(c4); var slash = p2.slice(-1) === "/"; if (isDir && !slash) m4 += "/"; @@ -4302,7 +5530,6 @@ var require_sync = __commonJS({ "node_modules/glob/sync.js"(exports2, module2) { module2.exports = globSync; globSync.GlobSync = GlobSync; - var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -4339,7 +5566,7 @@ var require_sync = __commonJS({ this._finish(); } GlobSync.prototype._finish = function() { - assert(this instanceof GlobSync); + assert.ok(this instanceof GlobSync); if (this.realpath) { var self3 = this; this.matches.forEach(function(matchset, index) { @@ -4361,7 +5588,7 @@ var require_sync = __commonJS({ common.finish(this); }; GlobSync.prototype._process = function(pattern, index, inGlobStar) { - assert(this instanceof GlobSync); + assert.ok(this instanceof GlobSync); var n2 = 0; while (typeof pattern[n2] === "string") { n2++; @@ -4382,7 +5609,9 @@ var require_sync = __commonJS({ var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p2) { + return typeof p2 === "string" ? p2 : "[*]"; + }).join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -4463,8 +5692,8 @@ var require_sync = __commonJS({ if (this.matches[index][e3]) return; if (this.nodir) { - var c3 = this.cache[abs]; - if (c3 === "DIR" || Array.isArray(c3)) + var c4 = this.cache[abs]; + if (c4 === "DIR" || Array.isArray(c4)) return; } this.matches[index][e3] = true; @@ -4478,7 +5707,7 @@ var require_sync = __commonJS({ var lstat; var stat; try { - lstat = fs4.lstatSync(abs); + lstat = this.fs.lstatSync(abs); } catch (er) { if (er.code === "ENOENT") { return null; @@ -4497,14 +5726,14 @@ var require_sync = __commonJS({ if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs); if (ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (!c3 || c3 === "FILE") + var c4 = this.cache[abs]; + if (!c4 || c4 === "FILE") return null; - if (Array.isArray(c3)) - return c3; + if (Array.isArray(c4)) + return c4; } try { - return this._readdirEntries(abs, fs4.readdirSync(abs)); + return this._readdirEntries(abs, this.fs.readdirSync(abs)); } catch (er) { this._readdirError(abs, er); return null; @@ -4600,12 +5829,12 @@ var require_sync = __commonJS({ if (f2.length > this.maxLength) return false; if (!this.stat && ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (Array.isArray(c3)) - c3 = "DIR"; - if (!needDir || c3 === "DIR") - return c3; - if (needDir && c3 === "FILE") + var c4 = this.cache[abs]; + if (Array.isArray(c4)) + c4 = "DIR"; + if (!needDir || c4 === "DIR") + return c4; + if (needDir && c4 === "FILE") return false; } var exists; @@ -4613,7 +5842,7 @@ var require_sync = __commonJS({ if (!stat) { var lstat; try { - lstat = fs4.lstatSync(abs); + lstat = this.fs.lstatSync(abs); } catch (er) { if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { this.statCache[abs] = false; @@ -4622,7 +5851,7 @@ var require_sync = __commonJS({ } if (lstat && lstat.isSymbolicLink()) { try { - stat = fs4.statSync(abs); + stat = this.fs.statSync(abs); } catch (er) { stat = lstat; } @@ -4631,13 +5860,13 @@ var require_sync = __commonJS({ } } this.statCache[abs] = stat; - var c3 = true; + var c4 = true; if (stat) - c3 = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c3; - if (needDir && c3 === "FILE") + c4 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c4; + if (needDir && c4 === "FILE") return false; - return c3; + return c4; }; GlobSync.prototype._mark = function(p2) { return common.mark(this, p2); @@ -4775,7 +6004,6 @@ var require_inflight = __commonJS({ var require_glob = __commonJS({ "node_modules/glob/glob.js"(exports2, module2) { module2.exports = glob; - var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -5005,7 +6233,9 @@ var require_glob = __commonJS({ var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p2) { + return typeof p2 === "string" ? p2 : "[*]"; + }).join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -5099,8 +6329,8 @@ var require_glob = __commonJS({ if (this.matches[index][e3]) return; if (this.nodir) { - var c3 = this.cache[abs]; - if (c3 === "DIR" || Array.isArray(c3)) + var c4 = this.cache[abs]; + if (c4 === "DIR" || Array.isArray(c4)) return; } this.matches[index][e3] = true; @@ -5118,7 +6348,7 @@ var require_glob = __commonJS({ var self3 = this; var lstatcb = inflight(lstatkey, lstatcb_); if (lstatcb) - fs4.lstat(abs, lstatcb); + self3.fs.lstat(abs, lstatcb); function lstatcb_(er, lstat) { if (er && er.code === "ENOENT") return cb(); @@ -5140,14 +6370,14 @@ var require_glob = __commonJS({ if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs, cb); if (ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (!c3 || c3 === "FILE") + var c4 = this.cache[abs]; + if (!c4 || c4 === "FILE") return cb(); - if (Array.isArray(c3)) - return cb(null, c3); + if (Array.isArray(c4)) + return cb(null, c4); } var self3 = this; - fs4.readdir(abs, readdirCb(this, abs, cb)); + self3.fs.readdir(abs, readdirCb(this, abs, cb)); }; function readdirCb(self3, abs, cb) { return function(er, entries2) { @@ -5267,12 +6497,12 @@ var require_glob = __commonJS({ if (f2.length > this.maxLength) return cb(); if (!this.stat && ownProp(this.cache, abs)) { - var c3 = this.cache[abs]; - if (Array.isArray(c3)) - c3 = "DIR"; - if (!needDir || c3 === "DIR") - return cb(null, c3); - if (needDir && c3 === "FILE") + var c4 = this.cache[abs]; + if (Array.isArray(c4)) + c4 = "DIR"; + if (!needDir || c4 === "DIR") + return cb(null, c4); + if (needDir && c4 === "FILE") return cb(); } var exists; @@ -5291,10 +6521,10 @@ var require_glob = __commonJS({ var self3 = this; var statcb = inflight("stat\0" + abs, lstatcb_); if (statcb) - fs4.lstat(abs, statcb); + self3.fs.lstat(abs, statcb); function lstatcb_(er, lstat) { if (lstat && lstat.isSymbolicLink()) { - return fs4.stat(abs, function(er2, stat2) { + return self3.fs.stat(abs, function(er2, stat2) { if (er2) self3._stat2(f2, abs, null, lstat, cb); else @@ -5314,13 +6544,13 @@ var require_glob = __commonJS({ this.statCache[abs] = stat; if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) return cb(null, false, stat); - var c3 = true; + var c4 = true; if (stat) - c3 = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c3; - if (needDir && c3 === "FILE") + c4 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c4; + if (needDir && c4 === "FILE") return cb(); - return cb(null, c3, stat); + return cb(null, c4, stat); }; } }); @@ -6007,7 +7237,7 @@ var require_status_reporter = __commonJS({ "node_modules/@actions/artifact/lib/internal/status-reporter.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core2(); + var core_1 = require_core(); var StatusReporter = class { constructor(displayFrequencyInMilliseconds) { this.totalNumberOfFilesToProcess = 0; @@ -6061,7 +7291,7 @@ var require_http_manager = __commonJS({ "node_modules/@actions/artifact/lib/internal/http-manager.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var HttpManager = class { constructor(clientCount, userAgent) { if (clientCount < 1) { @@ -6250,8 +7480,8 @@ var require_requestUtils = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils3(); - var core2 = __importStar(require_core2()); + var utils_1 = require_utils2(); + var core2 = __importStar(require_core()); var config_variables_1 = require_config_variables(); function retry(name, operation, customErrorMessages, maxAttempts) { return __awaiter(this, void 0, void 0, function* () { @@ -6352,10 +7582,10 @@ var require_upload_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var tmp = __importStar(require_tmp_promise()); var stream = __importStar(require("stream")); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var config_variables_1 = require_config_variables(); var util_1 = require("util"); var url_1 = require("url"); @@ -6681,9 +7911,9 @@ var require_download_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var zlib = __importStar(require("zlib")); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var url_1 = require("url"); var status_reporter_1 = require_status_reporter(); var perf_hooks_1 = require("perf_hooks"); @@ -6964,10 +8194,10 @@ var require_artifact_client = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core2 = __importStar(require_core2()); + var core2 = __importStar(require_core()); var upload_specification_1 = require_upload_specification(); var upload_http_client_1 = require_upload_http_client(); - var utils_1 = require_utils3(); + var utils_1 = require_utils2(); var download_http_client_1 = require_download_http_client(); var download_specification_1 = require_download_specification(); var config_variables_1 = require_config_variables(); @@ -7195,16 +8425,16 @@ var require_react_production_min = __commonJS({ } var w2; var x2 = typeof Symbol === "function" && Symbol.iterator; - function y3(a2) { - if (a2 === null || typeof a2 !== "object") + function y3(a3) { + if (a3 === null || typeof a3 !== "object") return null; - a2 = x2 && a2[x2] || a2["@@iterator"]; - return typeof a2 === "function" ? a2 : null; + a3 = x2 && a3[x2] || a3["@@iterator"]; + return typeof a3 === "function" ? a3 : null; } - function z(a2) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) - b += "&args[]=" + encodeURIComponent(arguments[c3]); - return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + function z(a3) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c4 = 1; c4 < arguments.length; c4++) + b += "&args[]=" + encodeURIComponent(arguments[c4]); + return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var A = { isMounted: function() { return false; @@ -7213,29 +8443,29 @@ var require_react_production_min = __commonJS({ }, enqueueSetState: function() { } }; var B = {}; - function C(a2, b, c3) { - this.props = a2; + function C(a3, b, c4) { + this.props = a3; this.context = b; this.refs = B; - this.updater = c3 || A; + this.updater = c4 || A; } C.prototype.isReactComponent = {}; - C.prototype.setState = function(a2, b) { - if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null) + C.prototype.setState = function(a3, b) { + if (typeof a3 !== "object" && typeof a3 !== "function" && a3 != null) throw Error(z(85)); - this.updater.enqueueSetState(this, a2, b, "setState"); + this.updater.enqueueSetState(this, a3, b, "setState"); }; - C.prototype.forceUpdate = function(a2) { - this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); + C.prototype.forceUpdate = function(a3) { + this.updater.enqueueForceUpdate(this, a3, "forceUpdate"); }; function D() { } D.prototype = C.prototype; - function E2(a2, b, c3) { - this.props = a2; + function E2(a3, b, c4) { + this.props = a3; this.context = b; this.refs = B; - this.updater = c3 || A; + this.updater = c4 || A; } var F = E2.prototype = new D(); F.constructor = E2; @@ -7244,46 +8474,46 @@ var require_react_production_min = __commonJS({ var G = { current: null }; var H = Object.prototype.hasOwnProperty; var I = { key: true, ref: true, __self: true, __source: true }; - function J(a2, b, c3) { + function J(a3, b, c4) { var e3, d2 = {}, k = null, h2 = null; if (b != null) for (e3 in b.ref !== void 0 && (h2 = b.ref), b.key !== void 0 && (k = "" + b.key), b) H.call(b, e3) && !I.hasOwnProperty(e3) && (d2[e3] = b[e3]); var g2 = arguments.length - 2; if (g2 === 1) - d2.children = c3; + d2.children = c4; else if (1 < g2) { for (var f2 = Array(g2), m4 = 0; m4 < g2; m4++) f2[m4] = arguments[m4 + 2]; d2.children = f2; } - if (a2 && a2.defaultProps) - for (e3 in g2 = a2.defaultProps, g2) + if (a3 && a3.defaultProps) + for (e3 in g2 = a3.defaultProps, g2) d2[e3] === void 0 && (d2[e3] = g2[e3]); - return { $$typeof: n2, type: a2, key: k, ref: h2, props: d2, _owner: G.current }; + return { $$typeof: n2, type: a3, key: k, ref: h2, props: d2, _owner: G.current }; } - function K(a2, b) { - return { $$typeof: n2, type: a2.type, key: b, ref: a2.ref, props: a2.props, _owner: a2._owner }; + function K(a3, b) { + return { $$typeof: n2, type: a3.type, key: b, ref: a3.ref, props: a3.props, _owner: a3._owner }; } - function L(a2) { - return typeof a2 === "object" && a2 !== null && a2.$$typeof === n2; + function L(a3) { + return typeof a3 === "object" && a3 !== null && a3.$$typeof === n2; } - function escape(a2) { + function escape(a3) { var b = { "=": "=0", ":": "=2" }; - return "$" + a2.replace(/[=:]/g, function(a3) { - return b[a3]; + return "$" + a3.replace(/[=:]/g, function(a4) { + return b[a4]; }); } var M = /\/+/g; - function N(a2, b) { - return typeof a2 === "object" && a2 !== null && a2.key != null ? escape("" + a2.key) : b.toString(36); + function N(a3, b) { + return typeof a3 === "object" && a3 !== null && a3.key != null ? escape("" + a3.key) : b.toString(36); } - function O(a2, b, c3, e3, d2) { - var k = typeof a2; + function O(a3, b, c4, e3, d2) { + var k = typeof a3; if (k === "undefined" || k === "boolean") - a2 = null; + a3 = null; var h2 = false; - if (a2 === null) + if (a3 === null) h2 = true; else switch (k) { @@ -7292,101 +8522,101 @@ var require_react_production_min = __commonJS({ h2 = true; break; case "object": - switch (a2.$$typeof) { + switch (a3.$$typeof) { case n2: case p2: h2 = true; } } if (h2) - return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function(a3) { - return a3; - })) : d2 != null && (L(d2) && (d2 = K(d2, c3 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a2)), b.push(d2)), 1; + return h2 = a3, d2 = d2(h2), a3 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c4 = "", a3 != null && (c4 = a3.replace(M, "$&/") + "/"), O(d2, b, c4, "", function(a4) { + return a4; + })) : d2 != null && (L(d2) && (d2 = K(d2, c4 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a3)), b.push(d2)), 1; h2 = 0; e3 = e3 === "" ? "." : e3 + ":"; - if (Array.isArray(a2)) - for (var g2 = 0; g2 < a2.length; g2++) { - k = a2[g2]; + if (Array.isArray(a3)) + for (var g2 = 0; g2 < a3.length; g2++) { + k = a3[g2]; var f2 = e3 + N(k, g2); - h2 += O(k, b, c3, f2, d2); + h2 += O(k, b, c4, f2, d2); } - else if (f2 = y3(a2), typeof f2 === "function") - for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done; ) - k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c3, f2, d2); + else if (f2 = y3(a3), typeof f2 === "function") + for (a3 = f2.call(a3), g2 = 0; !(k = a3.next()).done; ) + k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c4, f2, d2); else if (k === "object") - throw b = "" + a2, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b)); + throw b = "" + a3, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a3).join(", ") + "}" : b)); return h2; } - function P(a2, b, c3) { - if (a2 == null) - return a2; + function P(a3, b, c4) { + if (a3 == null) + return a3; var e3 = [], d2 = 0; - O(a2, e3, "", "", function(a3) { - return b.call(c3, a3, d2++); + O(a3, e3, "", "", function(a4) { + return b.call(c4, a4, d2++); }); return e3; } - function Q(a2) { - if (a2._status === -1) { - var b = a2._result; + function Q(a3) { + if (a3._status === -1) { + var b = a3._result; b = b(); - a2._status = 0; - a2._result = b; + a3._status = 0; + a3._result = b; b.then(function(b2) { - a2._status === 0 && (b2 = b2.default, a2._status = 1, a2._result = b2); + a3._status === 0 && (b2 = b2.default, a3._status = 1, a3._result = b2); }, function(b2) { - a2._status === 0 && (a2._status = 2, a2._result = b2); + a3._status === 0 && (a3._status = 2, a3._result = b2); }); } - if (a2._status === 1) - return a2._result; - throw a2._result; + if (a3._status === 1) + return a3._result; + throw a3._result; } var R = { current: null }; function S() { - var a2 = R.current; - if (a2 === null) + var a3 = R.current; + if (a3 === null) throw Error(z(321)); - return a2; + return a3; } var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l2 }; - exports2.Children = { map: P, forEach: function(a2, b, c3) { - P(a2, function() { + exports2.Children = { map: P, forEach: function(a3, b, c4) { + P(a3, function() { b.apply(this, arguments); - }, c3); - }, count: function(a2) { + }, c4); + }, count: function(a3) { var b = 0; - P(a2, function() { + P(a3, function() { b++; }); return b; - }, toArray: function(a2) { - return P(a2, function(a3) { - return a3; + }, toArray: function(a3) { + return P(a3, function(a4) { + return a4; }) || []; - }, only: function(a2) { - if (!L(a2)) + }, only: function(a3) { + if (!L(a3)) throw Error(z(143)); - return a2; + return a3; } }; exports2.Component = C; exports2.PureComponent = E2; exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T; - exports2.cloneElement = function(a2, b, c3) { - if (a2 === null || a2 === void 0) - throw Error(z(267, a2)); - var e3 = l2({}, a2.props), d2 = a2.key, k = a2.ref, h2 = a2._owner; + exports2.cloneElement = function(a3, b, c4) { + if (a3 === null || a3 === void 0) + throw Error(z(267, a3)); + var e3 = l2({}, a3.props), d2 = a3.key, k = a3.ref, h2 = a3._owner; if (b != null) { b.ref !== void 0 && (k = b.ref, h2 = G.current); b.key !== void 0 && (d2 = "" + b.key); - if (a2.type && a2.type.defaultProps) - var g2 = a2.type.defaultProps; + if (a3.type && a3.type.defaultProps) + var g2 = a3.type.defaultProps; for (f2 in b) H.call(b, f2) && !I.hasOwnProperty(f2) && (e3[f2] = b[f2] === void 0 && g2 !== void 0 ? g2[f2] : b[f2]); } var f2 = arguments.length - 2; if (f2 === 1) - e3.children = c3; + e3.children = c4; else if (1 < f2) { g2 = Array(f2); for (var m4 = 0; m4 < f2; m4++) @@ -7395,66 +8625,66 @@ var require_react_production_min = __commonJS({ } return { $$typeof: n2, - type: a2.type, + type: a3.type, key: d2, ref: k, props: e3, _owner: h2 }; }; - exports2.createContext = function(a2, b) { + exports2.createContext = function(a3, b) { b === void 0 && (b = null); - a2 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null }; - a2.Provider = { $$typeof: q2, _context: a2 }; - return a2.Consumer = a2; + a3 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a3, _currentValue2: a3, _threadCount: 0, Provider: null, Consumer: null }; + a3.Provider = { $$typeof: q2, _context: a3 }; + return a3.Consumer = a3; }; exports2.createElement = J; - exports2.createFactory = function(a2) { - var b = J.bind(null, a2); - b.type = a2; + exports2.createFactory = function(a3) { + var b = J.bind(null, a3); + b.type = a3; return b; }; exports2.createRef = function() { return { current: null }; }; - exports2.forwardRef = function(a2) { - return { $$typeof: t2, render: a2 }; + exports2.forwardRef = function(a3) { + return { $$typeof: t2, render: a3 }; }; exports2.isValidElement = L; - exports2.lazy = function(a2) { - return { $$typeof: v2, _payload: { _status: -1, _result: a2 }, _init: Q }; + exports2.lazy = function(a3) { + return { $$typeof: v2, _payload: { _status: -1, _result: a3 }, _init: Q }; }; - exports2.memo = function(a2, b) { - return { $$typeof: u, type: a2, compare: b === void 0 ? null : b }; + exports2.memo = function(a3, b) { + return { $$typeof: u, type: a3, compare: b === void 0 ? null : b }; }; - exports2.useCallback = function(a2, b) { - return S().useCallback(a2, b); + exports2.useCallback = function(a3, b) { + return S().useCallback(a3, b); }; - exports2.useContext = function(a2, b) { - return S().useContext(a2, b); + exports2.useContext = function(a3, b) { + return S().useContext(a3, b); }; exports2.useDebugValue = function() { }; - exports2.useEffect = function(a2, b) { - return S().useEffect(a2, b); + exports2.useEffect = function(a3, b) { + return S().useEffect(a3, b); }; - exports2.useImperativeHandle = function(a2, b, c3) { - return S().useImperativeHandle(a2, b, c3); + exports2.useImperativeHandle = function(a3, b, c4) { + return S().useImperativeHandle(a3, b, c4); }; - exports2.useLayoutEffect = function(a2, b) { - return S().useLayoutEffect(a2, b); + exports2.useLayoutEffect = function(a3, b) { + return S().useLayoutEffect(a3, b); }; - exports2.useMemo = function(a2, b) { - return S().useMemo(a2, b); + exports2.useMemo = function(a3, b) { + return S().useMemo(a3, b); }; - exports2.useReducer = function(a2, b, c3) { - return S().useReducer(a2, b, c3); + exports2.useReducer = function(a3, b, c4) { + return S().useReducer(a3, b, c4); }; - exports2.useRef = function(a2) { - return S().useRef(a2); + exports2.useRef = function(a3) { + return S().useRef(a3); }; - exports2.useState = function(a2) { - return S().useState(a2); + exports2.useState = function(a3) { + return S().useState(a3); }; exports2.version = "17.0.2"; } @@ -8037,8 +9267,8 @@ var require_react_development = __commonJS({ if (childKey != null) { escapedChildKey = escapeUserProvidedKey(childKey) + "/"; } - mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c3) { - return c3; + mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c4) { + return c4; }); } else if (mappedChild != null) { if (isValidElement(mappedChild)) { @@ -8608,17 +9838,17 @@ var require_react_development = __commonJS({ var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); var s = sampleLines.length - 1; - var c3 = controlLines.length - 1; - while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { - c3--; + var c4 = controlLines.length - 1; + while (s >= 1 && c4 >= 0 && sampleLines[s] !== controlLines[c4]) { + c4--; } - for (; s >= 1 && c3 >= 0; s--, c3--) { - if (sampleLines[s] !== controlLines[c3]) { - if (s !== 1 || c3 !== 1) { + for (; s >= 1 && c4 >= 0; s--, c4--) { + if (sampleLines[s] !== controlLines[c4]) { + if (s !== 1 || c4 !== 1) { do { s--; - c3--; - if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { + c4--; + if (c4 < 0 || sampleLines[s] !== controlLines[c4]) { var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); { if (typeof fn === "function") { @@ -8627,7 +9857,7 @@ var require_react_development = __commonJS({ } return _frame; } - } while (s >= 1 && c3 >= 0); + } while (s >= 1 && c4 >= 0); } break; } @@ -9027,10 +10257,10 @@ var require_react_dom_server_node_production_min = __commonJS({ var l2 = require_object_assign(); var n2 = require_react(); var aa = require("stream"); - function p2(a2) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) - b += "&args[]=" + encodeURIComponent(arguments[c3]); - return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + function p2(a3) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c4 = 1; c4 < arguments.length; c4++) + b += "&args[]=" + encodeURIComponent(arguments[c4]); + return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var q2 = 60106; var r4 = 60107; @@ -9068,14 +10298,14 @@ var require_react_dom_server_node_production_min = __commonJS({ la = E2("react.legacy_hidden"); } var E2; - function F(a2) { - if (a2 == null) + function F(a3) { + if (a3 == null) return null; - if (typeof a2 === "function") - return a2.displayName || a2.name || null; - if (typeof a2 === "string") - return a2; - switch (a2) { + if (typeof a3 === "function") + return a3.displayName || a3.name || null; + if (typeof a3 === "string") + return a3; + switch (a3) { case r4: return "Fragment"; case q2: @@ -9089,67 +10319,69 @@ var require_react_dom_server_node_production_min = __commonJS({ case da: return "SuspenseList"; } - if (typeof a2 === "object") - switch (a2.$$typeof) { + if (typeof a3 === "object") + switch (a3.$$typeof) { case ba: - return (a2.displayName || "Context") + ".Consumer"; + return (a3.displayName || "Context") + ".Consumer"; case B: - return (a2._context.displayName || "Context") + ".Provider"; + return (a3._context.displayName || "Context") + ".Provider"; case ca: - var b = a2.render; + var b = a3.render; b = b.displayName || b.name || ""; - return a2.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); + return a3.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); case ea: - return F(a2.type); + return F(a3.type); case ha: - return F(a2._render); + return F(a3._render); case fa: - b = a2._payload; - a2 = a2._init; + b = a3._payload; + a3 = a3._init; try { - return F(a2(b)); - } catch (c3) { + return F(a3(b)); + } catch (c4) { } } return null; } var ma2 = n2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var na = {}; - function I(a2, b) { - for (var c3 = a2._threadCount | 0; c3 <= b; c3++) - a2[c3] = a2._currentValue2, a2._threadCount = c3 + 1; - } - function oa(a2, b, c3, d2) { - if (d2 && (d2 = a2.contextType, typeof d2 === "object" && d2 !== null)) - return I(d2, c3), d2[c3]; - if (a2 = a2.contextTypes) { - c3 = {}; - for (var f2 in a2) - c3[f2] = b[f2]; - b = c3; + function I(a3, b) { + for (var c4 = a3._threadCount | 0; c4 <= b; c4++) + a3[c4] = a3._currentValue2, a3._threadCount = c4 + 1; + } + function oa(a3, b, c4, d2) { + if (d2 && (d2 = a3.contextType, typeof d2 === "object" && d2 !== null)) + return I(d2, c4), d2[c4]; + if (a3 = a3.contextTypes) { + c4 = {}; + for (var f2 in a3) + c4[f2] = b[f2]; + b = c4; } else b = na; return b; } - for (var J = new Uint16Array(16), K = 0; 15 > K; K++) + for (J = new Uint16Array(16), K = 0; 15 > K; K++) J[K] = K + 1; + var J; + var K; J[15] = 0; var pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; var qa = Object.prototype.hasOwnProperty; var ra = {}; var sa = {}; - function ta(a2) { - if (qa.call(sa, a2)) + function ta(a3) { + if (qa.call(sa, a3)) return true; - if (qa.call(ra, a2)) + if (qa.call(ra, a3)) return false; - if (pa.test(a2)) - return sa[a2] = true; - ra[a2] = true; + if (pa.test(a3)) + return sa[a3] = true; + ra[a3] = true; return false; } - function ua(a2, b, c3, d2) { - if (c3 !== null && c3.type === 0) + function ua(a3, b, c4, d2) { + if (c4 !== null && c4.type === 0) return false; switch (typeof b) { case "function": @@ -9158,21 +10390,21 @@ var require_react_dom_server_node_production_min = __commonJS({ case "boolean": if (d2) return false; - if (c3 !== null) - return !c3.acceptsBooleans; - a2 = a2.toLowerCase().slice(0, 5); - return a2 !== "data-" && a2 !== "aria-"; + if (c4 !== null) + return !c4.acceptsBooleans; + a3 = a3.toLowerCase().slice(0, 5); + return a3 !== "data-" && a3 !== "aria-"; default: return false; } } - function va(a2, b, c3, d2) { - if (b === null || typeof b === "undefined" || ua(a2, b, c3, d2)) + function va(a3, b, c4, d2) { + if (b === null || typeof b === "undefined" || ua(a3, b, c4, d2)) return true; if (d2) return false; - if (c3 !== null) - switch (c3.type) { + if (c4 !== null) + switch (c4.type) { case 3: return !b; case 4: @@ -9184,78 +10416,78 @@ var require_react_dom_server_node_production_min = __commonJS({ } return false; } - function M(a2, b, c3, d2, f2, h2, t2) { + function M(a3, b, c4, d2, f2, h2, t2) { this.acceptsBooleans = b === 2 || b === 3 || b === 4; this.attributeName = d2; this.attributeNamespace = f2; - this.mustUseProperty = c3; - this.propertyName = a2; + this.mustUseProperty = c4; + this.propertyName = a3; this.type = b; this.sanitizeURL = h2; this.removeEmptyString = t2; } var N = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { - N[a2] = new M(a2, 0, false, a2, null, false, false); + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a3) { + N[a3] = new M(a3, 0, false, a3, null, false, false); }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { - var b = a2[0]; - N[b] = new M(b, 1, false, a2[1], null, false, false); + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a3) { + var b = a3[0]; + N[b] = new M(b, 1, false, a3[1], null, false, false); }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { - N[a2] = new M(a2, 2, false, a2.toLowerCase(), null, false, false); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a3) { + N[a3] = new M(a3, 2, false, a3.toLowerCase(), null, false, false); }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { - N[a2] = new M(a2, 2, false, a2, null, false, false); + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a3) { + N[a3] = new M(a3, 2, false, a3, null, false, false); }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { - N[a2] = new M(a2, 3, false, a2.toLowerCase(), null, false, false); + "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a3) { + N[a3] = new M(a3, 3, false, a3.toLowerCase(), null, false, false); }); - ["checked", "multiple", "muted", "selected"].forEach(function(a2) { - N[a2] = new M(a2, 3, true, a2, null, false, false); + ["checked", "multiple", "muted", "selected"].forEach(function(a3) { + N[a3] = new M(a3, 3, true, a3, null, false, false); }); - ["capture", "download"].forEach(function(a2) { - N[a2] = new M(a2, 4, false, a2, null, false, false); + ["capture", "download"].forEach(function(a3) { + N[a3] = new M(a3, 4, false, a3, null, false, false); }); - ["cols", "rows", "size", "span"].forEach(function(a2) { - N[a2] = new M(a2, 6, false, a2, null, false, false); + ["cols", "rows", "size", "span"].forEach(function(a3) { + N[a3] = new M(a3, 6, false, a3, null, false, false); }); - ["rowSpan", "start"].forEach(function(a2) { - N[a2] = new M(a2, 5, false, a2.toLowerCase(), null, false, false); + ["rowSpan", "start"].forEach(function(a3) { + N[a3] = new M(a3, 5, false, a3.toLowerCase(), null, false, false); }); var wa = /[\-:]([a-z])/g; - function xa(a2) { - return a2[1].toUpperCase(); + function xa(a3) { + return a3[1].toUpperCase(); } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, null, false, false); + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a3) { + var b = a3.replace(wa, xa); + N[b] = new M(b, 1, false, a3, null, false, false); }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); + "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a3) { + var b = a3.replace(wa, xa); + N[b] = new M(b, 1, false, a3, "http://www.w3.org/1999/xlink", false, false); }); - ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); + ["xml:base", "xml:lang", "xml:space"].forEach(function(a3) { + var b = a3.replace(wa, xa); + N[b] = new M(b, 1, false, a3, "http://www.w3.org/XML/1998/namespace", false, false); }); - ["tabIndex", "crossOrigin"].forEach(function(a2) { - N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, false, false); + ["tabIndex", "crossOrigin"].forEach(function(a3) { + N[a3] = new M(a3, 1, false, a3.toLowerCase(), null, false, false); }); N.xlinkHref = new M("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(a2) { - N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, true, true); + ["src", "href", "action", "formAction"].forEach(function(a3) { + N[a3] = new M(a3, 1, false, a3.toLowerCase(), null, true, true); }); var ya = /["'&<>]/; - function O(a2) { - if (typeof a2 === "boolean" || typeof a2 === "number") - return "" + a2; - a2 = "" + a2; - var b = ya.exec(a2); + function O(a3) { + if (typeof a3 === "boolean" || typeof a3 === "number") + return "" + a3; + a3 = "" + a3; + var b = ya.exec(a3); if (b) { - var c3 = "", d2, f2 = 0; - for (d2 = b.index; d2 < a2.length; d2++) { - switch (a2.charCodeAt(d2)) { + var c4 = "", d2, f2 = 0; + for (d2 = b.index; d2 < a3.length; d2++) { + switch (a3.charCodeAt(d2)) { case 34: b = """; break; @@ -9274,33 +10506,33 @@ var require_react_dom_server_node_production_min = __commonJS({ default: continue; } - f2 !== d2 && (c3 += a2.substring(f2, d2)); + f2 !== d2 && (c4 += a3.substring(f2, d2)); f2 = d2 + 1; - c3 += b; + c4 += b; } - a2 = f2 !== d2 ? c3 + a2.substring(f2, d2) : c3; + a3 = f2 !== d2 ? c4 + a3.substring(f2, d2) : c4; } - return a2; + return a3; } - function za(a2, b) { - var c3 = N.hasOwnProperty(a2) ? N[a2] : null; + function za(a3, b) { + var c4 = N.hasOwnProperty(a3) ? N[a3] : null; var d2; - if (d2 = a2 !== "style") - d2 = c3 !== null ? c3.type === 0 : !(2 < a2.length) || a2[0] !== "o" && a2[0] !== "O" || a2[1] !== "n" && a2[1] !== "N" ? false : true; - if (d2 || va(a2, b, c3, false)) + if (d2 = a3 !== "style") + d2 = c4 !== null ? c4.type === 0 : !(2 < a3.length) || a3[0] !== "o" && a3[0] !== "O" || a3[1] !== "n" && a3[1] !== "N" ? false : true; + if (d2 || va(a3, b, c4, false)) return ""; - if (c3 !== null) { - a2 = c3.attributeName; - d2 = c3.type; + if (c4 !== null) { + a3 = c4.attributeName; + d2 = c4.type; if (d2 === 3 || d2 === 4 && b === true) - return a2 + '=""'; - c3.sanitizeURL && (b = "" + b); - return a2 + '="' + (O(b) + '"'); + return a3 + '=""'; + c4.sanitizeURL && (b = "" + b); + return a3 + '="' + (O(b) + '"'); } - return ta(a2) ? a2 + '="' + (O(b) + '"') : ""; + return ta(a3) ? a3 + '="' + (O(b) + '"') : ""; } - function Aa(a2, b) { - return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b; + function Aa(a3, b) { + return a3 === b && (a3 !== 0 || 1 / a3 === 1 / b) || a3 !== a3 && b !== b; } var Ba = typeof Object.is === "function" ? Object.is : Aa; var P = null; @@ -9324,11 +10556,11 @@ var require_react_dom_server_node_production_min = __commonJS({ R === null ? Q === null ? (S = false, Q = R = Ca()) : (S = true, R = Q) : R.next === null ? (S = false, R = R.next = Ca()) : (S = true, R = R.next); return R; } - function Ea(a2, b, c3, d2) { + function Ea(a3, b, c4, d2) { for (; T; ) - T = false, V += 1, R = null, c3 = a2(b, d2); + T = false, V += 1, R = null, c4 = a3(b, d2); Fa(); - return c3; + return c4; } function Fa() { P = null; @@ -9337,40 +10569,40 @@ var require_react_dom_server_node_production_min = __commonJS({ V = 0; R = U = null; } - function Ga(a2, b) { - return typeof b === "function" ? b(a2) : b; + function Ga(a3, b) { + return typeof b === "function" ? b(a3) : b; } - function Ha(a2, b, c3) { + function Ha(a3, b, c4) { P = W(); R = Da(); if (S) { var d2 = R.queue; b = d2.dispatch; - if (U !== null && (c3 = U.get(d2), c3 !== void 0)) { + if (U !== null && (c4 = U.get(d2), c4 !== void 0)) { U.delete(d2); d2 = R.memoizedState; do - d2 = a2(d2, c3.action), c3 = c3.next; - while (c3 !== null); + d2 = a3(d2, c4.action), c4 = c4.next; + while (c4 !== null); R.memoizedState = d2; return [d2, b]; } return [R.memoizedState, b]; } - a2 = a2 === Ga ? typeof b === "function" ? b() : b : c3 !== void 0 ? c3(b) : b; - R.memoizedState = a2; - a2 = R.queue = { last: null, dispatch: null }; - a2 = a2.dispatch = Ia.bind(null, P, a2); - return [R.memoizedState, a2]; + a3 = a3 === Ga ? typeof b === "function" ? b() : b : c4 !== void 0 ? c4(b) : b; + R.memoizedState = a3; + a3 = R.queue = { last: null, dispatch: null }; + a3 = a3.dispatch = Ia.bind(null, P, a3); + return [R.memoizedState, a3]; } - function Ja(a2, b) { + function Ja(a3, b) { P = W(); R = Da(); b = b === void 0 ? null : b; if (R !== null) { - var c3 = R.memoizedState; - if (c3 !== null && b !== null) { - var d2 = c3[1]; + var c4 = R.memoizedState; + if (c4 !== null && b !== null) { + var d2 = c4[1]; a: if (d2 === null) d2 = false; @@ -9383,66 +10615,66 @@ var require_react_dom_server_node_production_min = __commonJS({ d2 = true; } if (d2) - return c3[0]; + return c4[0]; } } - a2 = a2(); - R.memoizedState = [a2, b]; - return a2; + a3 = a3(); + R.memoizedState = [a3, b]; + return a3; } - function Ia(a2, b, c3) { + function Ia(a3, b, c4) { if (!(25 > V)) throw Error(p2(301)); - if (a2 === P) - if (T = true, a2 = { action: c3, next: null }, U === null && (U = new Map()), c3 = U.get(b), c3 === void 0) - U.set(b, a2); + if (a3 === P) + if (T = true, a3 = { action: c4, next: null }, U === null && (U = new Map()), c4 = U.get(b), c4 === void 0) + U.set(b, a3); else { - for (b = c3; b.next !== null; ) + for (b = c4; b.next !== null; ) b = b.next; - b.next = a2; + b.next = a3; } } function Ka() { } var X2 = null; - var La = { readContext: function(a2) { + var La = { readContext: function(a3) { var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useContext: function(a2) { + I(a3, b); + return a3[b]; + }, useContext: function(a3) { W(); var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useMemo: Ja, useReducer: Ha, useRef: function(a2) { + I(a3, b); + return a3[b]; + }, useMemo: Ja, useReducer: Ha, useRef: function(a3) { P = W(); R = Da(); var b = R.memoizedState; - return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; - }, useState: function(a2) { - return Ha(Ga, a2); + return b === null ? (a3 = { current: a3 }, R.memoizedState = a3) : b; + }, useState: function(a3) { + return Ha(Ga, a3); }, useLayoutEffect: function() { - }, useCallback: function(a2, b) { + }, useCallback: function(a3, b) { return Ja(function() { - return a2; + return a3; }, b); - }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a2) { + }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a3) { W(); - return a2; + return a3; }, useTransition: function() { W(); - return [function(a2) { - a2(); + return [function(a3) { + a3(); }, false]; }, useOpaqueIdentifier: function() { return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); - }, useMutableSource: function(a2, b) { + }, useMutableSource: function(a3, b) { W(); - return b(a2._source); + return b(a3._source); } }; var Ma = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; - function Na(a2) { - switch (a2) { + function Na(a3) { + switch (a3) { case "svg": return "http://www.w3.org/2000/svg"; case "math": @@ -9498,10 +10730,10 @@ var require_react_dom_server_node_production_min = __commonJS({ strokeWidth: true }; var Qa = ["Webkit", "ms", "Moz", "O"]; - Object.keys(Y2).forEach(function(a2) { + Object.keys(Y2).forEach(function(a3) { Qa.forEach(function(b) { - b = b + a2.charAt(0).toUpperCase() + a2.substring(1); - Y2[b] = Y2[a2]; + b = b + a3.charAt(0).toUpperCase() + a3.substring(1); + Y2[b] = Y2[a3]; }); }); var Ra = /([A-Z])/g; @@ -9512,32 +10744,32 @@ var require_react_dom_server_node_production_min = __commonJS({ var Va = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; var Wa = {}; var Xa = {}; - function Ya(a2) { - if (a2 === void 0 || a2 === null) - return a2; + function Ya(a3) { + if (a3 === void 0 || a3 === null) + return a3; var b = ""; - n2.Children.forEach(a2, function(a3) { - a3 != null && (b += a3); + n2.Children.forEach(a3, function(a4) { + a4 != null && (b += a4); }); return b; } var Za = Object.prototype.hasOwnProperty; var $a = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null }; - function ab(a2, b) { - if (a2 === void 0) + function ab(a3, b) { + if (a3 === void 0) throw Error(p2(152, F(b) || "Component")); } - function bb2(a2, b, c3) { + function bb2(a3, b, c4) { function d2(d3, h3) { - var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { isMounted: function() { + var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c4, e3), t2 = [], g2 = false, m4 = { isMounted: function() { return false; }, enqueueForceUpdate: function() { if (t2 === null) return null; - }, enqueueReplaceState: function(a3, b2) { + }, enqueueReplaceState: function(a4, b2) { g2 = true; t2 = [b2]; - }, enqueueSetState: function(a3, b2) { + }, enqueueSetState: function(a4, b2) { if (t2 === null) return null; t2.push(b2); @@ -9548,8 +10780,8 @@ var require_react_dom_server_node_production_min = __commonJS({ k != null && (e3.state = l2({}, e3.state, k)); } } else if (P = {}, e3 = h3(d3.props, f3, m4), e3 = Ea(h3, d3.props, e3, f3), e3 == null || e3.render == null) { - a2 = e3; - ab(a2, h3); + a3 = e3; + ab(a3, h3); return; } e3.props = d3.props; @@ -9577,8 +10809,8 @@ var require_react_dom_server_node_production_min = __commonJS({ } } else t2 = null; - a2 = e3.render(); - ab(a2, h3); + a3 = e3.render(); + ab(a3, h3); if (typeof e3.getChildContext === "function" && (d3 = h3.childContextTypes, typeof d3 === "object")) { var y3 = e3.getChildContext(); for (var A in y3) @@ -9587,36 +10819,36 @@ var require_react_dom_server_node_production_min = __commonJS({ } y3 && (b = l2({}, b, y3)); } - for (; n2.isValidElement(a2); ) { - var f2 = a2, h2 = f2.type; + for (; n2.isValidElement(a3); ) { + var f2 = a3, h2 = f2.type; if (typeof h2 !== "function") break; d2(f2, h2); } - return { child: a2, context: b }; + return { child: a3, context: b }; } var cb = function() { - function a2(a3, b2, f2) { - n2.isValidElement(a3) ? a3.type !== r4 ? a3 = [a3] : (a3 = a3.props.children, a3 = n2.isValidElement(a3) ? [a3] : Z(a3)) : a3 = Z(a3); - a3 = { type: null, domNamespace: Ma.html, children: a3, childIndex: 0, context: na, footer: "" }; - var c3 = J[0]; - if (c3 === 0) { + function a3(a4, b2, f2) { + n2.isValidElement(a4) ? a4.type !== r4 ? a4 = [a4] : (a4 = a4.props.children, a4 = n2.isValidElement(a4) ? [a4] : Z(a4)) : a4 = Z(a4); + a4 = { type: null, domNamespace: Ma.html, children: a4, childIndex: 0, context: na, footer: "" }; + var c4 = J[0]; + if (c4 === 0) { var d2 = J; - c3 = d2.length; - var g2 = 2 * c3; + c4 = d2.length; + var g2 = 2 * c4; if (!(65536 >= g2)) throw Error(p2(304)); var e3 = new Uint16Array(g2); e3.set(d2); J = e3; - J[0] = c3 + 1; - for (d2 = c3; d2 < g2 - 1; d2++) + J[0] = c4 + 1; + for (d2 = c4; d2 < g2 - 1; d2++) J[d2] = d2 + 1; J[g2 - 1] = 0; } else - J[0] = J[c3]; - this.threadID = c3; - this.stack = [a3]; + J[0] = J[c4]; + this.threadID = c4; + this.stack = [a4]; this.exhausted = false; this.currentSelectValue = null; this.previousWasTextNode = false; @@ -9628,44 +10860,44 @@ var require_react_dom_server_node_production_min = __commonJS({ this.uniqueID = 0; this.identifierPrefix = f2 && f2.identifierPrefix || ""; } - var b = a2.prototype; + var b = a3.prototype; b.destroy = function() { if (!this.exhausted) { this.exhausted = true; this.clearProviders(); - var a3 = this.threadID; - J[a3] = J[0]; - J[0] = a3; + var a4 = this.threadID; + J[a4] = J[0]; + J[0] = a4; } }; - b.pushProvider = function(a3) { - var b2 = ++this.contextIndex, c3 = a3.type._context, h2 = this.threadID; - I(c3, h2); - var t2 = c3[h2]; - this.contextStack[b2] = c3; + b.pushProvider = function(a4) { + var b2 = ++this.contextIndex, c4 = a4.type._context, h2 = this.threadID; + I(c4, h2); + var t2 = c4[h2]; + this.contextStack[b2] = c4; this.contextValueStack[b2] = t2; - c3[h2] = a3.props.value; + c4[h2] = a4.props.value; }; b.popProvider = function() { - var a3 = this.contextIndex, b2 = this.contextStack[a3], f2 = this.contextValueStack[a3]; - this.contextStack[a3] = null; - this.contextValueStack[a3] = null; + var a4 = this.contextIndex, b2 = this.contextStack[a4], f2 = this.contextValueStack[a4]; + this.contextStack[a4] = null; + this.contextValueStack[a4] = null; this.contextIndex--; b2[this.threadID] = f2; }; b.clearProviders = function() { - for (var a3 = this.contextIndex; 0 <= a3; a3--) - this.contextStack[a3][this.threadID] = this.contextValueStack[a3]; + for (var a4 = this.contextIndex; 0 <= a4; a4--) + this.contextStack[a4][this.threadID] = this.contextValueStack[a4]; }; - b.read = function(a3) { + b.read = function(a4) { if (this.exhausted) return null; var b2 = X2; X2 = this; - var c3 = Ta.current; + var c4 = Ta.current; Ta.current = La; try { - for (var h2 = [""], t2 = false; h2[0].length < a3; ) { + for (var h2 = [""], t2 = false; h2[0].length < a4; ) { if (this.stack.length === 0) { this.exhausted = true; var g2 = this.threadID; @@ -9713,12 +10945,12 @@ var require_react_dom_server_node_production_min = __commonJS({ } return h2[0]; } finally { - Ta.current = c3, X2 = b2, Fa(); + Ta.current = c4, X2 = b2, Fa(); } }; - b.render = function(a3, b2, f2) { - if (typeof a3 === "string" || typeof a3 === "number") { - f2 = "" + a3; + b.render = function(a4, b2, f2) { + if (typeof a4 === "string" || typeof a4 === "number") { + f2 = "" + a4; if (f2 === "") return ""; if (this.makeStaticMarkup) @@ -9728,36 +10960,36 @@ var require_react_dom_server_node_production_min = __commonJS({ this.previousWasTextNode = true; return O(f2); } - b2 = bb2(a3, b2, this.threadID); - a3 = b2.child; + b2 = bb2(a4, b2, this.threadID); + a4 = b2.child; b2 = b2.context; - if (a3 === null || a3 === false) + if (a4 === null || a4 === false) return ""; - if (!n2.isValidElement(a3)) { - if (a3 != null && a3.$$typeof != null) { - f2 = a3.$$typeof; + if (!n2.isValidElement(a4)) { + if (a4 != null && a4.$$typeof != null) { + f2 = a4.$$typeof; if (f2 === q2) throw Error(p2(257)); throw Error(p2(258, f2.toString())); } - a3 = Z(a3); - this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }); + a4 = Z(a4); + this.stack.push({ type: null, domNamespace: f2, children: a4, childIndex: 0, context: b2, footer: "" }); return ""; } - var c3 = a3.type; - if (typeof c3 === "string") - return this.renderDOM(a3, b2, f2); - switch (c3) { + var c4 = a4.type; + if (typeof c4 === "string") + return this.renderDOM(a4, b2, f2); + switch (c4) { case la: case ka: case u: case z: case da: case r4: - return a3 = Z(a3.props.children), this.stack.push({ + return a4 = Z(a4.props.children), this.stack.push({ type: null, domNamespace: f2, - children: a3, + children: a4, childIndex: 0, context: b2, footer: "" @@ -9767,53 +10999,53 @@ var require_react_dom_server_node_production_min = __commonJS({ case ja: throw Error(p2(343)); } - if (typeof c3 === "object" && c3 !== null) - switch (c3.$$typeof) { + if (typeof c4 === "object" && c4 !== null) + switch (c4.$$typeof) { case ca: P = {}; - var d2 = c3.render(a3.props, a3.ref); - d2 = Ea(c3.render, a3.props, d2, a3.ref); + var d2 = c4.render(a4.props, a4.ref); + d2 = Ea(c4.render, a4.props, d2, a4.ref); d2 = Z(d2); this.stack.push({ type: null, domNamespace: f2, children: d2, childIndex: 0, context: b2, footer: "" }); return ""; case ea: - return a3 = [n2.createElement(c3.type, l2({ ref: a3.ref }, a3.props))], this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }), ""; + return a4 = [n2.createElement(c4.type, l2({ ref: a4.ref }, a4.props))], this.stack.push({ type: null, domNamespace: f2, children: a4, childIndex: 0, context: b2, footer: "" }), ""; case B: - return c3 = Z(a3.props.children), f2 = { type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a3), this.stack.push(f2), ""; + return c4 = Z(a4.props.children), f2 = { type: a4, domNamespace: f2, children: c4, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a4), this.stack.push(f2), ""; case ba: - c3 = a3.type; - d2 = a3.props; + c4 = a4.type; + d2 = a4.props; var g2 = this.threadID; - I(c3, g2); - c3 = Z(d2.children(c3[g2])); - this.stack.push({ type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }); + I(c4, g2); + c4 = Z(d2.children(c4[g2])); + this.stack.push({ type: a4, domNamespace: f2, children: c4, childIndex: 0, context: b2, footer: "" }); return ""; case ia: throw Error(p2(338)); case fa: - return c3 = a3.type, d2 = c3._init, c3 = d2(c3._payload), a3 = [n2.createElement(c3, l2({ ref: a3.ref }, a3.props))], this.stack.push({ + return c4 = a4.type, d2 = c4._init, c4 = d2(c4._payload), a4 = [n2.createElement(c4, l2({ ref: a4.ref }, a4.props))], this.stack.push({ type: null, domNamespace: f2, - children: a3, + children: a4, childIndex: 0, context: b2, footer: "" }), ""; } - throw Error(p2(130, c3 == null ? c3 : typeof c3, "")); + throw Error(p2(130, c4 == null ? c4 : typeof c4, "")); }; - b.renderDOM = function(a3, b2, f2) { - var c3 = a3.type.toLowerCase(); - f2 === Ma.html && Na(c3); - if (!Wa.hasOwnProperty(c3)) { - if (!Va.test(c3)) - throw Error(p2(65, c3)); - Wa[c3] = true; - } - var d2 = a3.props; - if (c3 === "input") + b.renderDOM = function(a4, b2, f2) { + var c4 = a4.type.toLowerCase(); + f2 === Ma.html && Na(c4); + if (!Wa.hasOwnProperty(c4)) { + if (!Va.test(c4)) + throw Error(p2(65, c4)); + Wa[c4] = true; + } + var d2 = a4.props; + if (c4 === "input") d2 = l2({ type: void 0 }, d2, { defaultChecked: void 0, defaultValue: void 0, value: d2.value != null ? d2.value : d2.defaultValue, checked: d2.checked != null ? d2.checked : d2.defaultChecked }); - else if (c3 === "textarea") { + else if (c4 === "textarea") { var g2 = d2.value; if (g2 == null) { g2 = d2.defaultValue; @@ -9831,9 +11063,9 @@ var require_react_dom_server_node_production_min = __commonJS({ g2 == null && (g2 = ""); } d2 = l2({}, d2, { value: void 0, children: "" + g2 }); - } else if (c3 === "select") + } else if (c4 === "select") this.currentSelectValue = d2.value != null ? d2.value : d2.defaultValue, d2 = l2({}, d2, { value: void 0 }); - else if (c3 === "option") { + else if (c4 === "option") { e3 = this.currentSelectValue; var L = Ya(d2.children); if (e3 != null) { @@ -9852,8 +11084,8 @@ var require_react_dom_server_node_production_min = __commonJS({ } } if (g2 = d2) { - if (Pa[c3] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) - throw Error(p2(137, c3)); + if (Pa[c4] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) + throw Error(p2(137, c4)); if (g2.dangerouslySetInnerHTML != null) { if (g2.children != null) throw Error(p2(60)); @@ -9866,12 +11098,12 @@ var require_react_dom_server_node_production_min = __commonJS({ g2 = d2; e3 = this.makeStaticMarkup; L = this.stack.length === 1; - G = "<" + a3.type; + G = "<" + a4.type; b: - if (c3.indexOf("-") === -1) + if (c4.indexOf("-") === -1) C = typeof g2.is === "string"; else - switch (c3) { + switch (c4) { case "annotation-xml": case "color-profile": case "font-face": @@ -9920,7 +11152,7 @@ var require_react_dom_server_node_production_min = __commonJS({ e3 || L && (G += ' data-reactroot=""'); var w2 = G; g2 = ""; - Oa.hasOwnProperty(c3) ? w2 += "/>" : (w2 += ">", g2 = ""); + Oa.hasOwnProperty(c4) ? w2 += "/>" : (w2 += ">", g2 = ""); a: { e3 = d2.dangerouslySetInnerHTML; if (e3 != null) { @@ -9934,61 +11166,61 @@ var require_react_dom_server_node_production_min = __commonJS({ } e3 = null; } - e3 != null ? (d2 = [], Ua.hasOwnProperty(c3) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); - a3 = a3.type; - f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a3) : f2 === "http://www.w3.org/2000/svg" && a3 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; - this.stack.push({ domNamespace: f2, type: c3, children: d2, childIndex: 0, context: b2, footer: g2 }); + e3 != null ? (d2 = [], Ua.hasOwnProperty(c4) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); + a4 = a4.type; + f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a4) : f2 === "http://www.w3.org/2000/svg" && a4 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; + this.stack.push({ domNamespace: f2, type: c4, children: d2, childIndex: 0, context: b2, footer: g2 }); this.previousWasTextNode = false; return w2; }; - return a2; + return a3; }(); - function db(a2, b) { - a2.prototype = Object.create(b.prototype); - a2.prototype.constructor = a2; - a2.__proto__ = b; - } - var fb = function(a2) { - function b(b2, c4, h2) { - var d2 = a2.call(this, {}) || this; - d2.partialRenderer = new cb(b2, c4, h2); + function db(a3, b) { + a3.prototype = Object.create(b.prototype); + a3.prototype.constructor = a3; + a3.__proto__ = b; + } + var fb = function(a3) { + function b(b2, c5, h2) { + var d2 = a3.call(this, {}) || this; + d2.partialRenderer = new cb(b2, c5, h2); return d2; } - db(b, a2); - var c3 = b.prototype; - c3._destroy = function(a3, b2) { + db(b, a3); + var c4 = b.prototype; + c4._destroy = function(a4, b2) { this.partialRenderer.destroy(); - b2(a3); + b2(a4); }; - c3._read = function(a3) { + c4._read = function(a4) { try { - this.push(this.partialRenderer.read(a3)); + this.push(this.partialRenderer.read(a4)); } catch (f2) { this.destroy(f2); } }; return b; }(aa.Readable); - exports2.renderToNodeStream = function(a2, b) { - return new fb(a2, false, b); + exports2.renderToNodeStream = function(a3, b) { + return new fb(a3, false, b); }; - exports2.renderToStaticMarkup = function(a2, b) { - a2 = new cb(a2, true, b); + exports2.renderToStaticMarkup = function(a3, b) { + a3 = new cb(a3, true, b); try { - return a2.read(Infinity); + return a3.read(Infinity); } finally { - a2.destroy(); + a3.destroy(); } }; - exports2.renderToStaticNodeStream = function(a2, b) { - return new fb(a2, true, b); + exports2.renderToStaticNodeStream = function(a3, b) { + return new fb(a3, true, b); }; - exports2.renderToString = function(a2, b) { - a2 = new cb(a2, false, b); + exports2.renderToString = function(a3, b) { + a3 = new cb(a3, false, b); try { - return a2.read(Infinity); + return a3.read(Infinity); } finally { - a2.destroy(); + a3.destroy(); } }; exports2.version = "17.0.2"; @@ -10310,17 +11542,17 @@ var require_react_dom_server_node_development = __commonJS({ var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); var s = sampleLines.length - 1; - var c3 = controlLines.length - 1; - while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { - c3--; + var c4 = controlLines.length - 1; + while (s >= 1 && c4 >= 0 && sampleLines[s] !== controlLines[c4]) { + c4--; } - for (; s >= 1 && c3 >= 0; s--, c3--) { - if (sampleLines[s] !== controlLines[c3]) { - if (s !== 1 || c3 !== 1) { + for (; s >= 1 && c4 >= 0; s--, c4--) { + if (sampleLines[s] !== controlLines[c4]) { + if (s !== 1 || c4 !== 1) { do { s--; - c3--; - if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { + c4--; + if (c4 < 0 || sampleLines[s] !== controlLines[c4]) { var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); { if (typeof fn === "function") { @@ -10329,7 +11561,7 @@ var require_react_dom_server_node_development = __commonJS({ } return _frame; } - } while (s >= 1 && c3 >= 0); + } while (s >= 1 && c4 >= 0); } break; } @@ -13333,7 +14565,7 @@ var require_server = __commonJS({ }); // node_modules/braces/lib/utils.js -var require_utils4 = __commonJS({ +var require_utils3 = __commonJS({ "node_modules/braces/lib/utils.js"(exports2) { "use strict"; exports2.isInteger = (num) => { @@ -13417,10 +14649,10 @@ var require_utils4 = __commonJS({ }); // node_modules/braces/lib/stringify.js -var require_stringify = __commonJS({ +var require_stringify2 = __commonJS({ "node_modules/braces/lib/stringify.js"(exports2, module2) { "use strict"; - var utils = require_utils4(); + var utils = require_utils3(); module2.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); @@ -13490,9 +14722,9 @@ var require_to_regex_range = __commonJS({ if (toRegexRange.cache.hasOwnProperty(cacheKey)) { return toRegexRange.cache[cacheKey].result; } - let a2 = Math.min(min, max); + let a3 = Math.min(min, max); let b = Math.max(min, max); - if (Math.abs(a2 - b) === 1) { + if (Math.abs(a3 - b) === 1) { let result = min + "|" + max; if (opts.capture) { return `(${result})`; @@ -13503,20 +14735,20 @@ var require_to_regex_range = __commonJS({ return `(?:${result})`; } let isPadded = hasPadding(min) || hasPadding(max); - let state = { min, max, a: a2, b }; + let state = { min, max, a: a3, b }; let positives = []; let negatives = []; if (isPadded) { state.isPadded = isPadded; state.maxLen = String(state.max).length; } - if (a2 < 0) { + if (a3 < 0) { let newMin = b < 0 ? Math.abs(b) : 1; - negatives = splitToPatterns(newMin, Math.abs(a2), state, opts); - a2 = state.a = 0; + negatives = splitToPatterns(newMin, Math.abs(a3), state, opts); + a3 = state.a = 0; } if (b >= 0) { - positives = splitToPatterns(a2, b, state, opts); + positives = splitToPatterns(a3, b, state, opts); } state.negatives = negatives; state.positives = positives; @@ -13620,14 +14852,14 @@ var require_to_regex_range = __commonJS({ } return result; } - function zip(a2, b) { + function zip(a3, b) { let arr = []; - for (let i = 0; i < a2.length; i++) - arr.push([a2[i], b[i]]); + for (let i = 0; i < a3.length; i++) + arr.push([a3[i], b[i]]); return arr; } - function compare(a2, b) { - return a2 > b ? 1 : b > a2 ? -1 : 0; + function compare(a3, b) { + return a3 > b ? 1 : b > a3 ? -1 : 0; } function contains(arr, key, val) { return arr.some((ele) => ele[key] === val); @@ -13645,8 +14877,8 @@ var require_to_regex_range = __commonJS({ } return ""; } - function toCharacterClass(a2, b, options) { - return `[${a2}${b - a2 === 1 ? "" : "-"}${b}]`; + function toCharacterClass(a3, b, options) { + return `[${a3}${b - a3 === 1 ? "" : "-"}${b}]`; } function hasPadding(str) { return /^-?(0+)\d/.test(str); @@ -13729,8 +14961,8 @@ var require_fill_range = __commonJS({ return negative ? "-" + input : input; }; var toSequence = (parts, options) => { - parts.negatives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); - parts.positives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); + parts.negatives.sort((a3, b) => a3 < b ? -1 : a3 > b ? 1 : 0); + parts.positives.sort((a3, b) => a3 < b ? -1 : a3 > b ? 1 : 0); let prefix = options.capture ? "" : "?:"; let positives = ""; let negatives = ""; @@ -13751,12 +14983,12 @@ var require_fill_range = __commonJS({ } return result; }; - var toRange = (a2, b, isNumbers, options) => { + var toRange = (a3, b, isNumbers, options) => { if (isNumbers) { - return toRegexRange(a2, b, { wrap: false, ...options }); + return toRegexRange(a3, b, { wrap: false, ...options }); } - let start2 = String.fromCharCode(a2); - if (a2 === b) + let start2 = String.fromCharCode(a3); + if (a3 === b) return start2; let stop = String.fromCharCode(b); return `[${start2}-${stop}]`; @@ -13784,18 +15016,18 @@ var require_fill_range = __commonJS({ return []; }; var fillNumbers = (start2, end, step = 1, options = {}) => { - let a2 = Number(start2); + let a3 = Number(start2); let b = Number(end); - if (!Number.isInteger(a2) || !Number.isInteger(b)) { + if (!Number.isInteger(a3) || !Number.isInteger(b)) { if (options.strictRanges === true) throw rangeError([start2, end]); return []; } - if (a2 === 0) - a2 = 0; + if (a3 === 0) + a3 = 0; if (b === 0) b = 0; - let descending = a2 > b; + let descending2 = a3 > b; let startString = String(start2); let endString = String(end); let stepString = String(step); @@ -13809,46 +15041,46 @@ var require_fill_range = __commonJS({ } let parts = { negatives: [], positives: [] }; let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range = []; + let range2 = []; let index = 0; - while (descending ? a2 >= b : a2 <= b) { + while (descending2 ? a3 >= b : a3 <= b) { if (options.toRegex === true && step > 1) { - push(a2); + push(a3); } else { - range.push(pad2(format2(a2, index), maxLen, toNumber)); + range2.push(pad2(format2(a3, index), maxLen, toNumber)); } - a2 = descending ? a2 - step : a2 + step; + a3 = descending2 ? a3 - step : a3 + step; index++; } if (options.toRegex === true) { - return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options }); + return step > 1 ? toSequence(parts, options) : toRegex(range2, null, { wrap: false, ...options }); } - return range; + return range2; }; var fillLetters = (start2, end, step = 1, options = {}) => { if (!isNumber(start2) && start2.length > 1 || !isNumber(end) && end.length > 1) { return invalidRange(start2, end, options); } let format2 = options.transform || ((val) => String.fromCharCode(val)); - let a2 = `${start2}`.charCodeAt(0); + let a3 = `${start2}`.charCodeAt(0); let b = `${end}`.charCodeAt(0); - let descending = a2 > b; - let min = Math.min(a2, b); - let max = Math.max(a2, b); + let descending2 = a3 > b; + let min = Math.min(a3, b); + let max = Math.max(a3, b); if (options.toRegex && step === 1) { return toRange(min, max, false, options); } - let range = []; + let range2 = []; let index = 0; - while (descending ? a2 >= b : a2 <= b) { - range.push(format2(a2, index)); - a2 = descending ? a2 - step : a2 + step; + while (descending2 ? a3 >= b : a3 <= b) { + range2.push(format2(a3, index)); + a3 = descending2 ? a3 - step : a3 + step; index++; } if (options.toRegex === true) { - return toRegex(range, null, { wrap: false, options }); + return toRegex(range2, null, { wrap: false, options }); } - return range; + return range2; }; var fill = (start2, end, step, options = {}) => { if (end == null && isValidValue(start2)) { @@ -13886,7 +15118,7 @@ var require_compile = __commonJS({ "node_modules/braces/lib/compile.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var utils = require_utils4(); + var utils = require_utils3(); var compile = (ast, options = {}) => { let walk = (node, parent = {}) => { let invalidBlock = utils.isInvalidBrace(parent); @@ -13914,9 +15146,9 @@ var require_compile = __commonJS({ } if (node.nodes && node.ranges > 0) { let args = utils.reduce(node.nodes); - let range = fill(...args, { ...options, wrap: false, toRegex: true }); - if (range.length !== 0) { - return args.length > 1 && range.length > 1 ? `(${range})` : range; + let range2 = fill(...args, { ...options, wrap: false, toRegex: true }); + if (range2.length !== 0) { + return args.length > 1 && range2.length > 1 ? `(${range2})` : range2; } } if (node.nodes) { @@ -13937,8 +15169,8 @@ var require_expand = __commonJS({ "node_modules/braces/lib/expand.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var stringify = require_stringify(); - var utils = require_utils4(); + var stringify = require_stringify2(); + var utils = require_utils3(); var append = (queue = "", stash = "", enclose = false) => { let result = []; queue = [].concat(queue); @@ -13986,11 +15218,11 @@ var require_expand = __commonJS({ if (utils.exceedsLimit(...args, options.step, rangeLimit)) { throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); } - let range = fill(...args, options); - if (range.length === 0) { - range = stringify(node, options); + let range2 = fill(...args, options); + if (range2.length === 0) { + range2 = stringify(node, options); } - q2.push(append(q2.pop(), range)); + q2.push(append(q2.pop(), range2)); node.nodes = []; return; } @@ -14084,10 +15316,10 @@ var require_constants = __commonJS({ }); // node_modules/braces/lib/parse.js -var require_parse = __commonJS({ +var require_parse2 = __commonJS({ "node_modules/braces/lib/parse.js"(exports2, module2) { "use strict"; - var stringify = require_stringify(); + var stringify = require_stringify2(); var { MAX_LENGTH, CHAR_BACKSLASH, @@ -14319,10 +15551,10 @@ var require_parse = __commonJS({ var require_braces = __commonJS({ "node_modules/braces/index.js"(exports2, module2) { "use strict"; - var stringify = require_stringify(); + var stringify = require_stringify2(); var compile = require_compile(); var expand = require_expand(); - var parse = require_parse(); + var parse = require_parse2(); var braces = (input, options = {}) => { let output = []; if (Array.isArray(input)) { @@ -14522,7 +15754,7 @@ var require_constants2 = __commonJS({ }); // node_modules/picomatch/lib/utils.js -var require_utils5 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/picomatch/lib/utils.js"(exports2) { "use strict"; var path = require("path"); @@ -14588,7 +15820,7 @@ var require_utils5 = __commonJS({ var require_scan = __commonJS({ "node_modules/picomatch/lib/scan.js"(exports2, module2) { "use strict"; - var utils = require_utils5(); + var utils = require_utils4(); var { CHAR_ASTERISK, CHAR_AT, @@ -14903,11 +16135,11 @@ var require_scan = __commonJS({ }); // node_modules/picomatch/lib/parse.js -var require_parse2 = __commonJS({ +var require_parse3 = __commonJS({ "node_modules/picomatch/lib/parse.js"(exports2, module2) { "use strict"; var constants2 = require_constants2(); - var utils = require_utils5(); + var utils = require_utils4(); var { MAX_LENGTH, POSIX_REGEX_SOURCE, @@ -15081,7 +16313,8 @@ var require_parse2 = __commonJS({ output = token.close = `)$))${extglobStar}`; } if (token.inner.includes("*") && (rest2 = remaining()) && /^\.[^\\/.]+$/.test(rest2)) { - output = token.close = `)${rest2})${extglobStar})`; + const expression = parse(rest2, { ...options, fastpaths: false }).output; + output = token.close = `)${expression})${extglobStar})`; } if (token.prev.type === "bos") { state.negatedExtglob = true; @@ -15303,17 +16536,17 @@ var require_parse2 = __commonJS({ let output = ")"; if (brace.dots === true) { const arr = tokens.slice(); - const range = []; + const range2 = []; for (let i = arr.length - 1; i >= 0; i--) { tokens.pop(); if (arr[i].type === "brace") { break; } if (arr[i].type !== "dots") { - range.unshift(arr[i].value); + range2.unshift(arr[i].value); } } - output = expandRange(range, opts); + output = expandRange(range2, opts); state.backtrack = true; } if (brace.comma !== true && brace.dots !== true) { @@ -15688,8 +16921,8 @@ var require_picomatch = __commonJS({ "use strict"; var path = require("path"); var scan = require_scan(); - var parse = require_parse2(); - var utils = require_utils5(); + var parse = require_parse3(); + var utils = require_utils4(); var constants2 = require_constants2(); var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); var picomatch = (glob, options, returnState = false) => { @@ -15841,7 +17074,7 @@ var require_micromatch = __commonJS({ var util = require("util"); var braces = require_braces(); var picomatch = require_picomatch2(); - var utils = require_utils5(); + var utils = require_utils4(); var isEmptyString = (val) => val === "" || val === "./"; var micromatch = (list, patterns, options) => { patterns = [].concat(patterns); @@ -15899,9 +17132,9 @@ var require_micromatch = __commonJS({ options.onResult(state); items.push(state.output); }; - let matches = micromatch(list, patterns, { ...options, onResult }); + let matches = new Set(micromatch(list, patterns, { ...options, onResult })); for (let item of items) { - if (!matches.includes(item)) { + if (!matches.has(item)) { result.add(item); } } @@ -17826,8 +19059,8 @@ var require_stringToPath = __commonJS({ if (string.charCodeAt(0) === 46) { result.push(""); } - string.replace(rePropName, function(match, number3, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, "$1") : number3 || match); + string.replace(rePropName, function(match, number4, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match); }); return result; }); @@ -18560,74 +19793,79 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = var import_react2 = __toModule(require_react()); // node_modules/d3-array/src/ascending.js -function ascending_default(a2, b) { - return a2 == null || b == null ? NaN : a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; +function ascending(a3, b) { + return a3 == null || b == null ? NaN : a3 < b ? -1 : a3 > b ? 1 : a3 >= b ? 0 : NaN; +} + +// node_modules/d3-array/src/descending.js +function descending(a3, b) { + return a3 == null || b == null ? NaN : b < a3 ? -1 : b > a3 ? 1 : b >= a3 ? 0 : NaN; } // node_modules/d3-array/src/bisector.js -function bisector_default(f2) { - let delta = f2; - let compare = f2; - if (f2.length === 1) { +function bisector(f2) { + let compare1, compare2, delta; + if (f2.length !== 2) { + compare1 = ascending; + compare2 = (d2, x2) => ascending(f2(d2), x2); delta = (d2, x2) => f2(d2) - x2; - compare = ascendingComparator(f2); - } - function left(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - while (lo < hi) { - const mid = lo + hi >>> 1; - if (compare(a2[mid], x2) < 0) - lo = mid + 1; - else - hi = mid; + } else { + compare1 = f2 === ascending || f2 === descending ? f2 : zero; + compare2 = f2; + delta = f2; + } + function left(a3, x2, lo = 0, hi = a3.length) { + if (lo < hi) { + if (compare1(x2, x2) !== 0) + return hi; + do { + const mid = lo + hi >>> 1; + if (compare2(a3[mid], x2) < 0) + lo = mid + 1; + else + hi = mid; + } while (lo < hi); } return lo; } - function right(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - while (lo < hi) { - const mid = lo + hi >>> 1; - if (compare(a2[mid], x2) > 0) - hi = mid; - else - lo = mid + 1; + function right(a3, x2, lo = 0, hi = a3.length) { + if (lo < hi) { + if (compare1(x2, x2) !== 0) + return hi; + do { + const mid = lo + hi >>> 1; + if (compare2(a3[mid], x2) <= 0) + lo = mid + 1; + else + hi = mid; + } while (lo < hi); } return lo; } - function center(a2, x2, lo, hi) { - if (lo == null) - lo = 0; - if (hi == null) - hi = a2.length; - const i = left(a2, x2, lo, hi - 1); - return i > lo && delta(a2[i - 1], x2) > -delta(a2[i], x2) ? i - 1 : i; + function center(a3, x2, lo = 0, hi = a3.length) { + const i = left(a3, x2, lo, hi - 1); + return i > lo && delta(a3[i - 1], x2) > -delta(a3[i], x2) ? i - 1 : i; } return { left, center, right }; } -function ascendingComparator(f2) { - return (d2, x2) => ascending_default(f2(d2), x2); +function zero() { + return 0; } // node_modules/d3-array/src/number.js -function number_default(x2) { +function number(x2) { return x2 === null ? NaN : +x2; } // node_modules/d3-array/src/bisect.js -var ascendingBisect = bisector_default(ascending_default); +var ascendingBisect = bisector(ascending); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; -var bisectCenter = bisector_default(number_default).center; +var bisectCenter = bisector(number).center; var bisect_default = bisectRight; // node_modules/d3-array/src/extent.js -function extent_default(values, valueof) { +function extent(values, valueof) { let min; let max; if (valueof === void 0) { @@ -18667,8 +19905,8 @@ function extent_default(values, valueof) { var e10 = Math.sqrt(50); var e5 = Math.sqrt(10); var e2 = Math.sqrt(2); -function ticks_default(start2, stop, count2) { - var reverse, i = -1, n2, ticks, step; +function ticks(start2, stop, count2) { + var reverse, i = -1, n2, ticks2, step; stop = +stop, start2 = +start2, count2 = +count2; if (start2 === stop && count2 > 0) return [start2]; @@ -18682,9 +19920,9 @@ function ticks_default(start2, stop, count2) { ++r0; if (r1 * step > stop) --r1; - ticks = new Array(n2 = r1 - r0 + 1); + ticks2 = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks[i] = (r0 + i) * step; + ticks2[i] = (r0 + i) * step; } else { step = -step; let r0 = Math.round(start2 * step), r1 = Math.round(stop * step); @@ -18692,13 +19930,13 @@ function ticks_default(start2, stop, count2) { ++r0; if (r1 / step > stop) --r1; - ticks = new Array(n2 = r1 - r0 + 1); + ticks2 = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks[i] = (r0 + i) / step; + ticks2[i] = (r0 + i) / step; } if (reverse) - ticks.reverse(); - return ticks; + ticks2.reverse(); + return ticks2; } function tickIncrement(start2, stop, count2) { var step = (stop - start2) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); @@ -18716,13 +19954,13 @@ function tickStep(start2, stop, count2) { } // node_modules/d3-array/src/range.js -function range_default(start2, stop, step) { +function range(start2, stop, step) { start2 = +start2, stop = +stop, step = (n2 = arguments.length) < 2 ? (stop = start2, start2 = 0, 1) : n2 < 3 ? 1 : +step; - var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range = new Array(n2); + var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range2 = new Array(n2); while (++i < n2) { - range[i] = start2 + i * step; + range2[i] = start2 + i * step; } - return range; + return range2; } // node_modules/d3-dispatch/src/dispatch.js @@ -18793,9 +20031,9 @@ Dispatch.prototype = dispatch.prototype = { } }; function get(type2, name) { - for (var i = 0, n2 = type2.length, c3; i < n2; ++i) { - if ((c3 = type2[i]).name === name) { - return c3.value; + for (var i = 0, n2 = type2.length, c4; i < n2; ++i) { + if ((c4 = type2[i]).name === name) { + return c4.value; } } } @@ -19138,9 +20376,9 @@ function order_default() { // node_modules/d3-selection/src/selection/sort.js function sort_default(compare) { if (!compare) - compare = ascending; - function compareNode(a2, b) { - return a2 && b ? compare(a2.__data__, b.__data__) : !a2 - !b; + compare = ascending2; + function compareNode(a3, b) { + return a3 && b ? compare(a3.__data__, b.__data__) : !a3 - !b; } for (var groups = this._groups, m4 = groups.length, sortgroups = new Array(m4), j3 = 0; j3 < m4; ++j3) { for (var group = groups[j3], n2 = group.length, sortgroup = sortgroups[j3] = new Array(n2), node, i = 0; i < n2; ++i) { @@ -19152,8 +20390,8 @@ function sort_default(compare) { } return new Selection(sortgroups, this._parents).order(); } -function ascending(a2, b) { - return a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; +function ascending2(a3, b) { + return a3 < b ? -1 : a3 > b ? 1 : a3 >= b ? 0 : NaN; } // node_modules/d3-selection/src/selection/call.js @@ -19659,15 +20897,15 @@ function Color() { var darker = 0.7; var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*"; -var reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*"; -var reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*"; +var reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*"; +var reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*"; var reHex = /^#([0-9a-f]{3,8})$/; -var reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"); -var reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"); -var reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"); -var reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"); -var reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"); -var reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$"); +var reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`); +var reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`); +var reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`); +var reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`); +var reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`); +var reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`); var named = { aliceblue: 15792383, antiquewhite: 16444375, @@ -19819,14 +21057,15 @@ var named = { yellowgreen: 10145074 }; define_default(Color, color, { - copy: function(channels) { + copy(channels) { return Object.assign(new this.constructor(), this, channels); }, - displayable: function() { + displayable() { return this.rgb().displayable(); }, hex: color_formatHex, formatHex: color_formatHex, + formatHex8: color_formatHex8, formatHsl: color_formatHsl, formatRgb: color_formatRgb, toString: color_formatRgb @@ -19834,6 +21073,9 @@ define_default(Color, color, { function color_formatHex() { return this.rgb().formatHex(); } +function color_formatHex8() { + return this.rgb().formatHex8(); +} function color_formatHsl() { return hslConvert(this).formatHsl(); } @@ -19848,10 +21090,10 @@ function color(format2) { function rgbn(n2) { return new Rgb(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1); } -function rgba(r4, g2, b, a2) { - if (a2 <= 0) +function rgba(r4, g2, b, a3) { + if (a3 <= 0) r4 = g2 = b = NaN; - return new Rgb(r4, g2, b, a2); + return new Rgb(r4, g2, b, a3); } function rgbConvert(o) { if (!(o instanceof Color)) @@ -19871,45 +21113,57 @@ function Rgb(r4, g2, b, opacity) { this.opacity = +opacity; } define_default(Rgb, rgb, extend(Color, { - brighter: function(k) { + brighter(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - darker: function(k) { + darker(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - rgb: function() { + rgb() { return this; }, - displayable: function() { + clamp() { + return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity)); + }, + displayable() { return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1); }, hex: rgb_formatHex, formatHex: rgb_formatHex, + formatHex8: rgb_formatHex8, formatRgb: rgb_formatRgb, toString: rgb_formatRgb })); function rgb_formatHex() { - return "#" + hex(this.r) + hex(this.g) + hex(this.b); + return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`; +} +function rgb_formatHex8() { + return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } function rgb_formatRgb() { - var a2 = this.opacity; - a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); - return (a2 === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a2 === 1 ? ")" : ", " + a2 + ")"); + const a3 = clampa(this.opacity); + return `${a3 === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a3 === 1 ? ")" : `, ${a3})`}`; +} +function clampa(opacity) { + return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity)); +} +function clampi(value) { + return Math.max(0, Math.min(255, Math.round(value) || 0)); } function hex(value) { - value = Math.max(0, Math.min(255, Math.round(value) || 0)); + value = clampi(value); return (value < 16 ? "0" : "") + value.toString(16); } -function hsla(h2, s, l2, a2) { - if (a2 <= 0) +function hsla(h2, s, l2, a3) { + if (a3 <= 0) h2 = s = l2 = NaN; else if (l2 <= 0 || l2 >= 1) h2 = s = NaN; else if (s <= 0) h2 = NaN; - return new Hsl(h2, s, l2, a2); + return new Hsl(h2, s, l2, a3); } function hslConvert(o) { if (o instanceof Hsl) @@ -19946,27 +21200,36 @@ function Hsl(h2, s, l2, opacity) { this.opacity = +opacity; } define_default(Hsl, hsl, extend(Color, { - brighter: function(k) { + brighter(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - darker: function(k) { + darker(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - rgb: function() { + rgb() { var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m23 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s, m1 = 2 * l2 - m23; return new Rgb(hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m23), hsl2rgb(h2, m1, m23), hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m23), this.opacity); }, - displayable: function() { + clamp() { + return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity)); + }, + displayable() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); }, - formatHsl: function() { - var a2 = this.opacity; - a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); - return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")"); + formatHsl() { + const a3 = clampa(this.opacity); + return `${a3 === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a3 === 1 ? ")" : `, ${a3})`}`; } })); +function clamph(value) { + value = (value || 0) % 360; + return value < 0 ? value + 360 : value; +} +function clampt(value) { + return Math.max(0, Math.min(1, value || 0)); +} function hsl2rgb(h2, m1, m23) { return (h2 < 60 ? m1 + (m23 - m1) * h2 / 60 : h2 < 180 ? m23 : h2 < 240 ? m1 + (m23 - m1) * (240 - h2) / 60 : m1) * 255; } @@ -19997,24 +21260,24 @@ function basisClosed_default(values) { var constant_default2 = (x2) => () => x2; // node_modules/d3-interpolate/src/color.js -function linear(a2, d2) { +function linear(a3, d2) { return function(t2) { - return a2 + t2 * d2; + return a3 + t2 * d2; }; } -function exponential(a2, b, y3) { - return a2 = Math.pow(a2, y3), b = Math.pow(b, y3) - a2, y3 = 1 / y3, function(t2) { - return Math.pow(a2 + t2 * b, y3); +function exponential(a3, b, y3) { + return a3 = Math.pow(a3, y3), b = Math.pow(b, y3) - a3, y3 = 1 / y3, function(t2) { + return Math.pow(a3 + t2 * b, y3); }; } function gamma(y3) { - return (y3 = +y3) === 1 ? nogamma : function(a2, b) { - return b - a2 ? exponential(a2, b, y3) : constant_default2(isNaN(a2) ? b : a2); + return (y3 = +y3) === 1 ? nogamma : function(a3, b) { + return b - a3 ? exponential(a3, b, y3) : constant_default2(isNaN(a3) ? b : a3); }; } -function nogamma(a2, b) { - var d2 = b - a2; - return d2 ? linear(a2, d2) : constant_default2(isNaN(a2) ? b : a2); +function nogamma(a3, b) { + var d2 = b - a3; + return d2 ? linear(a3, d2) : constant_default2(isNaN(a3) ? b : a3); } // node_modules/d3-interpolate/src/rgb.js @@ -20058,14 +21321,14 @@ var rgbBasis = rgbSpline(basis_default); var rgbBasisClosed = rgbSpline(basisClosed_default); // node_modules/d3-interpolate/src/numberArray.js -function numberArray_default(a2, b) { +function numberArray_default(a3, b) { if (!b) b = []; - var n2 = a2 ? Math.min(b.length, a2.length) : 0, c3 = b.slice(), i; + var n2 = a3 ? Math.min(b.length, a3.length) : 0, c4 = b.slice(), i; return function(t2) { for (i = 0; i < n2; ++i) - c3[i] = a2[i] * (1 - t2) + b[i] * t2; - return c3; + c4[i] = a3[i] * (1 - t2) + b[i] * t2; + return c4; }; } function isNumberArray(x2) { @@ -20073,59 +21336,59 @@ function isNumberArray(x2) { } // node_modules/d3-interpolate/src/array.js -function genericArray(a2, b) { - var nb = b ? b.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x2 = new Array(na), c3 = new Array(nb), i; +function genericArray(a3, b) { + var nb = b ? b.length : 0, na = a3 ? Math.min(nb, a3.length) : 0, x2 = new Array(na), c4 = new Array(nb), i; for (i = 0; i < na; ++i) - x2[i] = value_default(a2[i], b[i]); + x2[i] = value_default(a3[i], b[i]); for (; i < nb; ++i) - c3[i] = b[i]; + c4[i] = b[i]; return function(t2) { for (i = 0; i < na; ++i) - c3[i] = x2[i](t2); - return c3; + c4[i] = x2[i](t2); + return c4; }; } // node_modules/d3-interpolate/src/date.js -function date_default(a2, b) { +function date_default(a3, b) { var d2 = new Date(); - return a2 = +a2, b = +b, function(t2) { - return d2.setTime(a2 * (1 - t2) + b * t2), d2; + return a3 = +a3, b = +b, function(t2) { + return d2.setTime(a3 * (1 - t2) + b * t2), d2; }; } // node_modules/d3-interpolate/src/number.js -function number_default2(a2, b) { - return a2 = +a2, b = +b, function(t2) { - return a2 * (1 - t2) + b * t2; +function number_default(a3, b) { + return a3 = +a3, b = +b, function(t2) { + return a3 * (1 - t2) + b * t2; }; } // node_modules/d3-interpolate/src/object.js -function object_default(a2, b) { - var i = {}, c3 = {}, k; - if (a2 === null || typeof a2 !== "object") - a2 = {}; +function object_default(a3, b) { + var i = {}, c4 = {}, k; + if (a3 === null || typeof a3 !== "object") + a3 = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) { - if (k in a2) { - i[k] = value_default(a2[k], b[k]); + if (k in a3) { + i[k] = value_default(a3[k], b[k]); } else { - c3[k] = b[k]; + c4[k] = b[k]; } } return function(t2) { for (k in i) - c3[k] = i[k](t2); - return c3; + c4[k] = i[k](t2); + return c4; }; } // node_modules/d3-interpolate/src/string.js var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; var reB = new RegExp(reA.source, "g"); -function zero(b) { +function zero2(b) { return function() { return b; }; @@ -20135,10 +21398,10 @@ function one(b) { return b(t2) + ""; }; } -function string_default(a2, b) { +function string_default(a3, b) { var bi2 = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q2 = []; - a2 = a2 + "", b = b + ""; - while ((am = reA.exec(a2)) && (bm = reB.exec(b))) { + a3 = a3 + "", b = b + ""; + while ((am = reA.exec(a3)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi2) { bs = b.slice(bi2, bs); if (s[i]) @@ -20153,7 +21416,7 @@ function string_default(a2, b) { s[++i] = bm; } else { s[++i] = null; - q2.push({ i, x: number_default2(am, bm) }); + q2.push({ i, x: number_default(am, bm) }); } bi2 = reB.lastIndex; } @@ -20164,7 +21427,7 @@ function string_default(a2, b) { else s[++i] = bs; } - return s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function(t2) { + return s.length < 2 ? q2[0] ? one(q2[0].x) : zero2(b) : (b = q2.length, function(t2) { for (var i2 = 0, o; i2 < b; ++i2) s[(o = q2[i2]).i] = o.x(t2); return s.join(""); @@ -20172,15 +21435,15 @@ function string_default(a2, b) { } // node_modules/d3-interpolate/src/value.js -function value_default(a2, b) { - var t2 = typeof b, c3; - return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default2 : t2 === "string" ? (c3 = color(b)) ? (b = c3, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default2)(a2, b); +function value_default(a3, b) { + var t2 = typeof b, c4; + return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default : t2 === "string" ? (c4 = color(b)) ? (b = c4, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default)(a3, b); } // node_modules/d3-interpolate/src/round.js -function round_default(a2, b) { - return a2 = +a2, b = +b, function(t2) { - return Math.round(a2 * (1 - t2) + b * t2); +function round_default(a3, b) { + return a3 = +a3, b = +b, function(t2) { + return Math.round(a3 * (1 - t2) + b * t2); }; } @@ -20194,20 +21457,20 @@ var identity = { scaleX: 1, scaleY: 1 }; -function decompose_default(a2, b, c3, d2, e3, f2) { +function decompose_default(a3, b, c4, d2, e3, f2) { var scaleX, scaleY, skewX; - if (scaleX = Math.sqrt(a2 * a2 + b * b)) - a2 /= scaleX, b /= scaleX; - if (skewX = a2 * c3 + b * d2) - c3 -= a2 * skewX, d2 -= b * skewX; - if (scaleY = Math.sqrt(c3 * c3 + d2 * d2)) - c3 /= scaleY, d2 /= scaleY, skewX /= scaleY; - if (a2 * d2 < b * c3) - a2 = -a2, b = -b, skewX = -skewX, scaleX = -scaleX; + if (scaleX = Math.sqrt(a3 * a3 + b * b)) + a3 /= scaleX, b /= scaleX; + if (skewX = a3 * c4 + b * d2) + c4 -= a3 * skewX, d2 -= b * skewX; + if (scaleY = Math.sqrt(c4 * c4 + d2 * d2)) + c4 /= scaleY, d2 /= scaleY, skewX /= scaleY; + if (a3 * d2 < b * c4) + a3 = -a3, b = -b, skewX = -skewX, scaleX = -scaleX; return { translateX: e3, translateY: f2, - rotate: Math.atan2(b, a2) * degrees, + rotate: Math.atan2(b, a3) * degrees, skewX: Math.atan(skewX) * degrees, scaleX, scaleY @@ -20240,25 +21503,25 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function translate(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); - q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); + q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } } - function rotate(a2, b, s, q2) { - if (a2 !== b) { - if (a2 - b > 180) + function rotate(a3, b, s, q2) { + if (a3 !== b) { + if (a3 - b > 180) b += 360; - else if (b - a2 > 180) - a2 += 360; - q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default2(a2, b) }); + else if (b - a3 > 180) + a3 += 360; + q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default(a3, b) }); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } - function skewX(a2, b, s, q2) { - if (a2 !== b) { - q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default2(a2, b) }); + function skewX(a3, b, s, q2) { + if (a3 !== b) { + q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default(a3, b) }); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } @@ -20266,19 +21529,19 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function scale(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); - q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); + q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } - return function(a2, b) { + return function(a3, b) { var s = [], q2 = []; - a2 = parse(a2), b = parse(b); - translate(a2.translateX, a2.translateY, b.translateX, b.translateY, s, q2); - rotate(a2.rotate, b.rotate, s, q2); - skewX(a2.skewX, b.skewX, s, q2); - scale(a2.scaleX, a2.scaleY, b.scaleX, b.scaleY, s, q2); - a2 = b = null; + a3 = parse(a3), b = parse(b); + translate(a3.translateX, a3.translateY, b.translateX, b.translateY, s, q2); + rotate(a3.rotate, b.rotate, s, q2); + skewX(a3.skewX, b.skewX, s, q2); + scale(a3.scaleX, a3.scaleY, b.scaleX, b.scaleY, s, q2); + a3 = b = null; return function(t2) { var i = -1, n2 = q2.length, o; while (++i < n2) @@ -20626,9 +21889,9 @@ function tweenValue(transition2, name, value) { } // node_modules/d3-transition/src/transition/interpolate.js -function interpolate_default(a2, b) { - var c3; - return (typeof b === "number" ? number_default2 : b instanceof color ? rgb_default : (c3 = color(b)) ? (b = c3, rgb_default) : string_default)(a2, b); +function interpolate_default(a3, b) { + var c4; + return (typeof b === "number" ? number_default : b instanceof color ? rgb_default : (c4 = color(b)) ? (b = c4, rgb_default) : string_default)(a3, b); } // node_modules/d3-transition/src/transition/attr.js @@ -21306,7 +22569,7 @@ function data_default2() { } // node_modules/d3-quadtree/src/extent.js -function extent_default2(_10) { +function extent_default(_10) { return arguments.length ? this.cover(+_10[0][0], +_10[0][1]).cover(+_10[1][0], +_10[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]]; } @@ -21527,7 +22790,7 @@ treeProto.add = add_default; treeProto.addAll = addAll; treeProto.cover = cover_default; treeProto.data = data_default2; -treeProto.extent = extent_default2; +treeProto.extent = extent_default; treeProto.find = find_default; treeProto.remove = remove_default3; treeProto.removeAll = removeAll; @@ -21971,18 +23234,18 @@ function locale_default(locale3) { var group = locale3.grouping === void 0 || locale3.thousands === void 0 ? identity_default : formatGroup_default(map.call(locale3.grouping, Number), locale3.thousands + ""), currencyPrefix = locale3.currency === void 0 ? "" : locale3.currency[0] + "", currencySuffix = locale3.currency === void 0 ? "" : locale3.currency[1] + "", decimal = locale3.decimal === void 0 ? "." : locale3.decimal + "", numerals = locale3.numerals === void 0 ? identity_default : formatNumerals_default(map.call(locale3.numerals, String)), percent = locale3.percent === void 0 ? "%" : locale3.percent + "", minus = locale3.minus === void 0 ? "\u2212" : locale3.minus + "", nan = locale3.nan === void 0 ? "NaN" : locale3.nan + ""; function newFormat(specifier) { specifier = formatSpecifier(specifier); - var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero2 = specifier.zero, width2 = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type2 = specifier.type; + var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero3 = specifier.zero, width2 = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type2 = specifier.type; if (type2 === "n") comma = true, type2 = "g"; else if (!formatTypes_default[type2]) precision === void 0 && (precision = 12), trim = true, type2 = "g"; - if (zero2 || fill === "0" && align === "=") - zero2 = true, fill = "0", align = "="; + if (zero3 || fill === "0" && align === "=") + zero3 = true, fill = "0", align = "="; var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type2) ? "0" + type2.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type2) ? percent : ""; var formatType = formatTypes_default[type2], maybeSuffix = /[defgprs%]/.test(type2); precision = precision === void 0 ? 6 : /[gprs]/.test(type2) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)); function format2(value) { - var valuePrefix = prefix, valueSuffix = suffix, i, n2, c3; + var valuePrefix = prefix, valueSuffix = suffix, i, n2, c4; if (type2 === "c") { valueSuffix = formatType(value) + valueSuffix; value = ""; @@ -21999,18 +23262,18 @@ function locale_default(locale3) { if (maybeSuffix) { i = -1, n2 = value.length; while (++i < n2) { - if (c3 = value.charCodeAt(i), 48 > c3 || c3 > 57) { - valueSuffix = (c3 === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; + if (c4 = value.charCodeAt(i), 48 > c4 || c4 > 57) { + valueSuffix = (c4 === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; value = value.slice(0, i); break; } } } } - if (comma && !zero2) + if (comma && !zero3) value = group(value, Infinity); var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width2 ? new Array(width2 - length + 1).join(fill) : ""; - if (comma && zero2) + if (comma && zero3) value = group(padding + value, padding.length ? width2 - valueSuffix.length : Infinity), padding = ""; switch (align) { case "<": @@ -22174,18 +23437,18 @@ function path_default(end) { } return nodes; } -function leastCommonAncestor(a2, b) { - if (a2 === b) - return a2; - var aNodes = a2.ancestors(), bNodes = b.ancestors(), c3 = null; - a2 = aNodes.pop(); +function leastCommonAncestor(a3, b) { + if (a3 === b) + return a3; + var aNodes = a3.ancestors(), bNodes = b.ancestors(), c4 = null; + a3 = aNodes.pop(); b = bNodes.pop(); - while (a2 === b) { - c3 = a2; - a2 = aNodes.pop(); + while (a3 === b) { + c4 = a3; + a3 = aNodes.pop(); b = bNodes.pop(); } - return c3; + return c4; } // node_modules/d3-hierarchy/src/hierarchy/ancestors.js @@ -22305,14 +23568,43 @@ Node.prototype = hierarchy.prototype = { [Symbol.iterator]: iterator_default2 }; +// node_modules/d3-hierarchy/src/accessors.js +function optional(f2) { + return f2 == null ? null : required(f2); +} +function required(f2) { + if (typeof f2 !== "function") + throw new Error(); + return f2; +} + +// node_modules/d3-hierarchy/src/constant.js +function constantZero() { + return 0; +} +function constant_default5(x2) { + return function() { + return x2; + }; +} + +// node_modules/d3-hierarchy/src/lcg.js +var a2 = 1664525; +var c2 = 1013904223; +var m2 = 4294967296; +function lcg_default2() { + let s = 1; + return () => (s = (a2 * s + c2) % m2) / m2; +} + // node_modules/d3-hierarchy/src/array.js function array_default(x2) { return typeof x2 === "object" && "length" in x2 ? x2 : Array.from(x2); } -function shuffle(array2) { - var m4 = array2.length, t2, i; +function shuffle(array2, random) { + let m4 = array2.length, t2, i; while (m4) { - i = Math.random() * m4-- | 0; + i = random() * m4-- | 0; t2 = array2[m4]; array2[m4] = array2[i]; array2[i] = t2; @@ -22321,8 +23613,8 @@ function shuffle(array2) { } // node_modules/d3-hierarchy/src/pack/enclose.js -function enclose_default(circles) { - var i = 0, n2 = (circles = shuffle(Array.from(circles))).length, B = [], p2, e3; +function packEncloseRandom(circles, random) { + var i = 0, n2 = (circles = shuffle(Array.from(circles), random)).length, B = [], p2, e3; while (i < n2) { p2 = circles[i]; if (e3 && enclosesWeak(e3, p2)) @@ -22350,17 +23642,17 @@ function extendBasis(B, p2) { } throw new Error(); } -function enclosesNot(a2, b) { - var dr = a2.r - b.r, dx = b.x - a2.x, dy = b.y - a2.y; +function enclosesNot(a3, b) { + var dr = a3.r - b.r, dx = b.x - a3.x, dy = b.y - a3.y; return dr < 0 || dr * dr < dx * dx + dy * dy; } -function enclosesWeak(a2, b) { - var dr = a2.r - b.r + Math.max(a2.r, b.r, 1) * 1e-9, dx = b.x - a2.x, dy = b.y - a2.y; +function enclosesWeak(a3, b) { + var dr = a3.r - b.r + Math.max(a3.r, b.r, 1) * 1e-9, dx = b.x - a3.x, dy = b.y - a3.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } -function enclosesWeakAll(a2, B) { +function enclosesWeakAll(a3, B) { for (var i = 0; i < B.length; ++i) { - if (!enclosesWeak(a2, B[i])) { + if (!enclosesWeak(a3, B[i])) { return false; } } @@ -22376,23 +23668,23 @@ function encloseBasis(B) { return encloseBasis3(B[0], B[1], B[2]); } } -function encloseBasis1(a2) { +function encloseBasis1(a3) { return { - x: a2.x, - y: a2.y, - r: a2.r + x: a3.x, + y: a3.y, + r: a3.r }; } -function encloseBasis2(a2, b) { - var x1 = a2.x, y1 = a2.y, r1 = a2.r, x2 = b.x, y22 = b.y, r22 = b.r, x21 = x2 - x1, y21 = y22 - y1, r21 = r22 - r1, l2 = Math.sqrt(x21 * x21 + y21 * y21); +function encloseBasis2(a3, b) { + var x1 = a3.x, y1 = a3.y, r1 = a3.r, x2 = b.x, y22 = b.y, r22 = b.r, x21 = x2 - x1, y21 = y22 - y1, r21 = r22 - r1, l2 = Math.sqrt(x21 * x21 + y21 * y21); return { x: (x1 + x2 + x21 / l2 * r21) / 2, y: (y1 + y22 + y21 / l2 * r21) / 2, r: (l2 + r1 + r22) / 2 }; } -function encloseBasis3(a2, b, c3) { - var x1 = a2.x, y1 = a2.y, r1 = a2.r, x2 = b.x, y22 = b.y, r22 = b.r, x3 = c3.x, y3 = c3.y, r32 = c3.r, a22 = x1 - x2, a3 = x1 - x3, b2 = y1 - y22, b3 = y1 - y3, c22 = r22 - r1, c32 = r32 - r1, d1 = x1 * x1 + y1 * y1 - r1 * r1, d2 = d1 - x2 * x2 - y22 * y22 + r22 * r22, d3 = d1 - x3 * x3 - y3 * y3 + r32 * r32, ab = a3 * b2 - a22 * b3, xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1, xb = (b3 * c22 - b2 * c32) / ab, ya = (a3 * d2 - a22 * d3) / (ab * 2) - y1, yb = (a22 * c32 - a3 * c22) / ab, A = xb * xb + yb * yb - 1, B = 2 * (r1 + xa * xb + ya * yb), C = xa * xa + ya * ya - r1 * r1, r4 = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B); +function encloseBasis3(a3, b, c4) { + var x1 = a3.x, y1 = a3.y, r1 = a3.r, x2 = b.x, y22 = b.y, r22 = b.r, x3 = c4.x, y3 = c4.y, r32 = c4.r, a22 = x1 - x2, a32 = x1 - x3, b2 = y1 - y22, b3 = y1 - y3, c22 = r22 - r1, c32 = r32 - r1, d1 = x1 * x1 + y1 * y1 - r1 * r1, d2 = d1 - x2 * x2 - y22 * y22 + r22 * r22, d3 = d1 - x3 * x3 - y3 * y3 + r32 * r32, ab = a32 * b2 - a22 * b3, xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1, xb = (b3 * c22 - b2 * c32) / ab, ya = (a32 * d2 - a22 * d3) / (ab * 2) - y1, yb = (a22 * c32 - a32 * c22) / ab, A = xb * xb + yb * yb - 1, B = 2 * (r1 + xa * xb + ya * yb), C = xa * xa + ya * ya - r1 * r1, r4 = -(Math.abs(A) > 1e-6 ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B); return { x: x1 + xa + xb * r4, y: y1 + ya + yb * r4, @@ -22401,33 +23693,33 @@ function encloseBasis3(a2, b, c3) { } // node_modules/d3-hierarchy/src/pack/siblings.js -function place(b, a2, c3) { - var dx = b.x - a2.x, x2, a22, dy = b.y - a2.y, y3, b2, d2 = dx * dx + dy * dy; +function place(b, a3, c4) { + var dx = b.x - a3.x, x2, a22, dy = b.y - a3.y, y3, b2, d2 = dx * dx + dy * dy; if (d2) { - a22 = a2.r + c3.r, a22 *= a22; - b2 = b.r + c3.r, b2 *= b2; + a22 = a3.r + c4.r, a22 *= a22; + b2 = b.r + c4.r, b2 *= b2; if (a22 > b2) { x2 = (d2 + b2 - a22) / (2 * d2); y3 = Math.sqrt(Math.max(0, b2 / d2 - x2 * x2)); - c3.x = b.x - x2 * dx - y3 * dy; - c3.y = b.y - x2 * dy + y3 * dx; + c4.x = b.x - x2 * dx - y3 * dy; + c4.y = b.y - x2 * dy + y3 * dx; } else { x2 = (d2 + a22 - b2) / (2 * d2); y3 = Math.sqrt(Math.max(0, a22 / d2 - x2 * x2)); - c3.x = a2.x + x2 * dx - y3 * dy; - c3.y = a2.y + x2 * dy + y3 * dx; + c4.x = a3.x + x2 * dx - y3 * dy; + c4.y = a3.y + x2 * dy + y3 * dx; } } else { - c3.x = a2.x + c3.r; - c3.y = a2.y; + c4.x = a3.x + c4.r; + c4.y = a3.y; } } -function intersects(a2, b) { - var dr = a2.r + b.r - 1e-6, dx = b.x - a2.x, dy = b.y - a2.y; +function intersects(a3, b) { + var dr = a3.r + b.r - 1e-6, dx = b.x - a3.x, dy = b.y - a3.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } function score(node) { - var a2 = node._, b = node.next._, ab = a2.r + b.r, dx = (a2.x * b.r + b.x * a2.r) / ab, dy = (a2.y * b.r + b.y * a2.r) / ab; + var a3 = node._, b = node.next._, ab = a3.r + b.r, dx = (a3.x * b.r + b.x * a3.r) / ab, dy = (a3.y * b.r + b.y * a3.r) / ab; return dx * dx + dy * dy; } function Node2(circle) { @@ -22435,76 +23727,56 @@ function Node2(circle) { this.next = null; this.previous = null; } -function packEnclose(circles) { +function packSiblingsRandom(circles, random) { if (!(n2 = (circles = array_default(circles)).length)) return 0; - var a2, b, c3, n2, aa, ca, i, j3, k, sj2, sk; - a2 = circles[0], a2.x = 0, a2.y = 0; + var a3, b, c4, n2, aa, ca, i, j3, k, sj2, sk; + a3 = circles[0], a3.x = 0, a3.y = 0; if (!(n2 > 1)) - return a2.r; - b = circles[1], a2.x = -b.r, b.x = a2.r, b.y = 0; + return a3.r; + b = circles[1], a3.x = -b.r, b.x = a3.r, b.y = 0; if (!(n2 > 2)) - return a2.r + b.r; - place(b, a2, c3 = circles[2]); - a2 = new Node2(a2), b = new Node2(b), c3 = new Node2(c3); - a2.next = c3.previous = b; - b.next = a2.previous = c3; - c3.next = b.previous = a2; + return a3.r + b.r; + place(b, a3, c4 = circles[2]); + a3 = new Node2(a3), b = new Node2(b), c4 = new Node2(c4); + a3.next = c4.previous = b; + b.next = a3.previous = c4; + c4.next = b.previous = a3; pack: for (i = 3; i < n2; ++i) { - place(a2._, b._, c3 = circles[i]), c3 = new Node2(c3); - j3 = b.next, k = a2.previous, sj2 = b._.r, sk = a2._.r; + place(a3._, b._, c4 = circles[i]), c4 = new Node2(c4); + j3 = b.next, k = a3.previous, sj2 = b._.r, sk = a3._.r; do { if (sj2 <= sk) { - if (intersects(j3._, c3._)) { - b = j3, a2.next = b, b.previous = a2, --i; + if (intersects(j3._, c4._)) { + b = j3, a3.next = b, b.previous = a3, --i; continue pack; } sj2 += j3._.r, j3 = j3.next; } else { - if (intersects(k._, c3._)) { - a2 = k, a2.next = b, b.previous = a2, --i; + if (intersects(k._, c4._)) { + a3 = k, a3.next = b, b.previous = a3, --i; continue pack; } sk += k._.r, k = k.previous; } } while (j3 !== k.next); - c3.previous = a2, c3.next = b, a2.next = b.previous = b = c3; - aa = score(a2); - while ((c3 = c3.next) !== b) { - if ((ca = score(c3)) < aa) { - a2 = c3, aa = ca; + c4.previous = a3, c4.next = b, a3.next = b.previous = b = c4; + aa = score(a3); + while ((c4 = c4.next) !== b) { + if ((ca = score(c4)) < aa) { + a3 = c4, aa = ca; } } - b = a2.next; + b = a3.next; } - a2 = [b._], c3 = b; - while ((c3 = c3.next) !== b) - a2.push(c3._); - c3 = enclose_default(a2); + a3 = [b._], c4 = b; + while ((c4 = c4.next) !== b) + a3.push(c4._); + c4 = packEncloseRandom(a3, random); for (i = 0; i < n2; ++i) - a2 = circles[i], a2.x -= c3.x, a2.y -= c3.y; - return c3.r; -} - -// node_modules/d3-hierarchy/src/accessors.js -function optional(f2) { - return f2 == null ? null : required(f2); -} -function required(f2) { - if (typeof f2 !== "function") - throw new Error(); - return f2; -} - -// node_modules/d3-hierarchy/src/constant.js -function constantZero() { - return 0; -} -function constant_default5(x2) { - return function() { - return x2; - }; + a3 = circles[i], a3.x -= c4.x, a3.y -= c4.y; + return c4.r; } // node_modules/d3-hierarchy/src/pack/index.js @@ -22514,11 +23786,12 @@ function defaultRadius(d2) { function pack_default() { var radius = null, dx = 1, dy = 1, padding = constantZero; function pack(root2) { + const random = lcg_default2(); root2.x = dx / 2, root2.y = dy / 2; if (radius) { - root2.eachBefore(radiusLeaf(radius)).eachAfter(packChildren(padding, 0.5)).eachBefore(translateChild(1)); + root2.eachBefore(radiusLeaf(radius)).eachAfter(packChildrenRandom(padding, 0.5, random)).eachBefore(translateChild(1)); } else { - root2.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildren(constantZero, 1)).eachAfter(packChildren(padding, root2.r / Math.min(dx, dy))).eachBefore(translateChild(Math.min(dx, dy) / (2 * root2.r))); + root2.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildrenRandom(constantZero, 1, random)).eachAfter(packChildrenRandom(padding, root2.r / Math.min(dx, dy), random)).eachBefore(translateChild(Math.min(dx, dy) / (2 * root2.r))); } return root2; } @@ -22540,14 +23813,14 @@ function radiusLeaf(radius) { } }; } -function packChildren(padding, k) { +function packChildrenRandom(padding, k, random) { return function(node) { if (children2 = node.children) { var children2, i, n2 = children2.length, r4 = padding(node) * k || 0, e3; if (r4) for (i = 0; i < n2; ++i) children2[i].r += r4; - e3 = packEnclose(children2); + e3 = packSiblingsRandom(children2, random); if (r4) for (i = 0; i < n2; ++i) children2[i].r -= r4; @@ -22567,7 +23840,7 @@ function translateChild(k) { } // node_modules/d3-scale/src/init.js -function initRange(domain, range) { +function initRange(domain, range2) { switch (arguments.length) { case 0: break; @@ -22575,7 +23848,7 @@ function initRange(domain, range) { this.range(domain); break; default: - this.range(range).domain(domain); + this.range(range2).domain(domain); break; } return this; @@ -22589,7 +23862,7 @@ function constants(x2) { } // node_modules/d3-scale/src/number.js -function number(x2) { +function number3(x2) { return +x2; } @@ -22598,21 +23871,21 @@ var unit = [0, 1]; function identity2(x2) { return x2; } -function normalize(a2, b) { - return (b -= a2 = +a2) ? function(x2) { - return (x2 - a2) / b; +function normalize(a3, b) { + return (b -= a3 = +a3) ? function(x2) { + return (x2 - a3) / b; } : constants(isNaN(b) ? NaN : 0.5); } -function clamper(a2, b) { +function clamper(a3, b) { var t2; - if (a2 > b) - t2 = a2, a2 = b, b = t2; + if (a3 > b) + t2 = a3, a3 = b, b = t2; return function(x2) { - return Math.max(a2, Math.min(b, x2)); + return Math.max(a3, Math.min(b, x2)); }; } -function bimap(domain, range, interpolate) { - var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; +function bimap(domain, range2, interpolate) { + var d0 = domain[0], d1 = domain[1], r0 = range2[0], r1 = range2[1]; if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else @@ -22621,15 +23894,15 @@ function bimap(domain, range, interpolate) { return r0(d0(x2)); }; } -function polymap(domain, range, interpolate) { - var j3 = Math.min(domain.length, range.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; +function polymap(domain, range2, interpolate) { + var j3 = Math.min(domain.length, range2.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; if (domain[j3] < domain[0]) { domain = domain.slice().reverse(); - range = range.slice().reverse(); + range2 = range2.slice().reverse(); } while (++i < j3) { d2[i] = normalize(domain[i], domain[i + 1]); - r4[i] = interpolate(range[i], range[i + 1]); + r4[i] = interpolate(range2[i], range2[i + 1]); } return function(x2) { var i2 = bisect_default(domain, x2, 1, j3) - 1; @@ -22640,9 +23913,9 @@ function copy(source, target) { return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown()); } function transformer() { - var domain = unit, range = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; + var domain = unit, range2 = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; function rescale() { - var n2 = Math.min(domain.length, range.length); + var n2 = Math.min(domain.length, range2.length); if (clamp !== identity2) clamp = clamper(domain[0], domain[n2 - 1]); piecewise = n2 > 2 ? polymap : bimap; @@ -22650,19 +23923,19 @@ function transformer() { return scale; } function scale(x2) { - return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range, interpolate)))(transform2(clamp(x2))); + return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range2, interpolate)))(transform2(clamp(x2))); } scale.invert = function(y3) { - return clamp(untransform((input || (input = piecewise(range, domain.map(transform2), number_default2)))(y3))); + return clamp(untransform((input || (input = piecewise(range2, domain.map(transform2), number_default)))(y3))); }; scale.domain = function(_10) { - return arguments.length ? (domain = Array.from(_10, number), rescale()) : domain.slice(); + return arguments.length ? (domain = Array.from(_10, number3), rescale()) : domain.slice(); }; scale.range = function(_10) { - return arguments.length ? (range = Array.from(_10), rescale()) : range.slice(); + return arguments.length ? (range2 = Array.from(_10), rescale()) : range2.slice(); }; scale.rangeRound = function(_10) { - return range = Array.from(_10), interpolate = round_default, rescale(); + return range2 = Array.from(_10), interpolate = round_default, rescale(); }; scale.clamp = function(_10) { return arguments.length ? (clamp = _10 ? true : identity2, rescale()) : clamp !== identity2; @@ -22717,7 +23990,7 @@ function linearish(scale) { var domain = scale.domain; scale.ticks = function(count2) { var d2 = domain(); - return ticks_default(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); + return ticks(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); }; scale.tickFormat = function(count2, specifier) { var d2 = domain(); @@ -22823,15 +24096,15 @@ function newInterval(floori, offseti, count2, field) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval2.range = function(start2, stop, step) { - var range = [], previous; + var range2 = [], previous; start2 = interval2.ceil(start2); step = step == null ? 1 : Math.floor(step); if (!(start2 < stop) || !(step > 0)) - return range; + return range2; do - range.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); + range2.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); while (previous < start2 && start2 < stop); - return range; + return range2; }; interval2.filter = function(test) { return newInterval(function(date) { @@ -23129,19 +24402,19 @@ function formatLocale(locale3) { utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats2) { return function(date) { - var string = [], i = -1, j3 = 0, n2 = specifier.length, c3, pad2, format2; + var string = [], i = -1, j3 = 0, n2 = specifier.length, c4, pad2, format2; if (!(date instanceof Date)) date = new Date(+date); while (++i < n2) { if (specifier.charCodeAt(i) === 37) { string.push(specifier.slice(j3, i)); - if ((pad2 = pads[c3 = specifier.charAt(++i)]) != null) - c3 = specifier.charAt(++i); + if ((pad2 = pads[c4 = specifier.charAt(++i)]) != null) + c4 = specifier.charAt(++i); else - pad2 = c3 === "e" ? " " : "0"; - if (format2 = formats2[c3]) - c3 = format2(date, pad2); - string.push(c3); + pad2 = c4 === "e" ? " " : "0"; + if (format2 = formats2[c4]) + c4 = format2(date, pad2); + string.push(c4); j3 = i + 1; } } @@ -23200,17 +24473,17 @@ function formatLocale(locale3) { }; } function parseSpecifier(d2, specifier, string, j3) { - var i = 0, n2 = specifier.length, m4 = string.length, c3, parse; + var i = 0, n2 = specifier.length, m4 = string.length, c4, parse; while (i < n2) { if (j3 >= m4) return -1; - c3 = specifier.charCodeAt(i++); - if (c3 === 37) { - c3 = specifier.charAt(i++); - parse = parses[c3 in pads ? specifier.charAt(i++) : c3]; + c4 = specifier.charCodeAt(i++); + if (c4 === 37) { + c4 = specifier.charAt(i++); + parse = parses[c4 in pads ? specifier.charAt(i++) : c4]; if (!parse || (j3 = parse(d2, string, j3)) < 0) return -1; - } else if (c3 != string.charCodeAt(j3++)) { + } else if (c4 != string.charCodeAt(j3++)) { return -1; } } @@ -23713,7 +24986,7 @@ var bsv = "#12223c"; var boo = "#d4bec1"; var bpl = "#c80fa0"; var brs = "#662D91"; -var c2 = "#555555"; +var c3 = "#555555"; var cats = "#555555"; var h = "#438eff"; var idc = "#555555"; @@ -24098,7 +25371,7 @@ var less = "#1d365d"; var lex = "#DBCA00"; var ly = "#9ccc7c"; var ily = "#9ccc7c"; -var m2 = "#438eff"; +var m3 = "#438eff"; var liquid = "#67b8de"; var lagda = "#315665"; var litcoffee = "#244776"; @@ -24163,7 +25436,7 @@ var mirah = "#c7a938"; var mo = "#de1d31"; var i3 = "#223388"; var ig = "#223388"; -var m3 = "#223388"; +var m32 = "#223388"; var mg = "#223388"; var moon = "#ff4585"; var x68 = "#005daa"; @@ -24765,7 +26038,7 @@ var language_colors_default = { boo, bpl, brs, - c: c2, + c: c3, cats, h, idc, @@ -25150,7 +26423,7 @@ var language_colors_default = { lex, ly, ily, - m: m2, + m: m3, liquid, lagda, litcoffee, @@ -25215,7 +26488,7 @@ var language_colors_default = { mo, i3, ig, - m3, + m3: m32, mg, moon, x68, @@ -25827,8 +27100,8 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus return d2.children ? (0, import_flatten.default)(d2.children.map(flattenTree)) : d2; }; const items = flattenTree(data); - const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a2, b) => b - a2).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a2, b) => b - a2).slice(2, -2); - const colorExtent2 = extent_default(flatTree); + const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a3, b) => b - a3).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a3, b) => b - a3).slice(2, -2); + const colorExtent2 = extent(flatTree); const colors = [ "#f4f4f4", "#f4f4f4", @@ -25836,7 +27109,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus colorEncoding === "last-change" ? "#C7ECEE" : "#FEEAA7", colorEncoding === "number-of-changes" ? "#3C40C6" : "#823471" ]; - const colorScale2 = linear2().domain(range_default(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); + const colorScale2 = linear2().domain(range(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); return { colorScale: colorScale2, colorExtent: colorExtent2 }; }, [data]); const getColor = (d2) => { @@ -25844,7 +27117,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus if (colorEncoding === "type") { const isParent = d2.children; if (isParent) { - const extensions = (0, import_countBy.default)(d2.children, (c3) => c3.extension); + const extensions = (0, import_countBy.default)(d2.children, (c4) => c4.extension); const mainExtension = (_a = (0, import_maxBy.default)((0, import_entries.default)(extensions), ([k, v2]) => v2)) == null ? void 0 : _a[0]; return fileColors[mainExtension] || "#CED6E0"; } @@ -25858,10 +27131,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus const packedData = (0, import_react2.useMemo)(() => { if (!data) return []; - const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current, 0, fileColors)).sum((d2) => d2.value).sort((a2, b) => { + const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current, 0, fileColors)).sum((d2) => d2.value).sort((a3, b) => { if (b.data.path.startsWith("src/fonts")) { } - return b.data.sortOrder - a2.data.sortOrder || (b.data.name > a2.data.name ? 1 : -1); + return b.data.sortOrder - a3.data.sortOrder || (b.data.name > a3.data.name ? 1 : -1); }); let packedTree = pack_default().size([width, height * 1.3]).padding((d2) => { if (d2.depth <= 0) @@ -26057,10 +27330,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus })); }; var formatD = (d2) => typeof d2 === "number" ? d2 : timeFormat("%b %Y")(d2); -var ColorLegend = ({ scale, extent, colorEncoding }) => { +var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { if (!scale || !scale.ticks) return null; - const ticks = scale.ticks(10); + const ticks2 = scale.ticks(10); return /* @__PURE__ */ import_react2.default.createElement("g", { transform: `translate(${width - 160}, ${height - 90})` }, /* @__PURE__ */ import_react2.default.createElement("text", { @@ -26070,10 +27343,10 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => { textAnchor: "middle" }, colorEncoding === "number-of-changes" ? "Number of changes" : "Last change date"), /* @__PURE__ */ import_react2.default.createElement("linearGradient", { id: "gradient" - }, ticks.map((tick, i) => { + }, ticks2.map((tick, i) => { const color2 = scale(tick); return /* @__PURE__ */ import_react2.default.createElement("stop", { - offset: i / (ticks.length - 1), + offset: i / (ticks2.length - 1), stopColor: color2, key: i }); @@ -26082,7 +27355,7 @@ var ColorLegend = ({ scale, extent, colorEncoding }) => { width: "100", height: "13", fill: "url(#gradient)" - }), extent.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { + }), extent2.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { key: i, x: i ? 100 : 0, y: "23", @@ -26119,7 +27392,7 @@ var processChild = (child, getColor, cachedOrders, i = 0, fileColors) => { const isRoot = !child.path; let name = child.name; let path = child.path; - let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c3, i2) => processChild(c3, getColor, cachedOrders, i2, fileColors)); + let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c4, i2) => processChild(c4, getColor, cachedOrders, i2, fileColors)); if ((children2 == null ? void 0 : children2.length) === 1) { name = `${name}/${children2[0].name}`; path = children2[0].path; @@ -26207,7 +27480,7 @@ var reflowSiblings = (siblings, cachedPositions = {}, maxDepth, parentRadius, pa newD.x += xDiff; newD.y += yDiff; if (newD.children) { - newD.children = newD.children.map((c3) => repositionChildren(c3, xDiff, yDiff)); + newD.children = newD.children.map((c4) => repositionChildren(c4, xDiff, yDiff)); } return newD; }; From a999615bdab757559bf94bda1fe6eef232765f85 Mon Sep 17 00:00:00 2001 From: Amelia Wattenberger Date: Tue, 18 Apr 2023 14:39:33 -0700 Subject: [PATCH 46/46] update yarn.lock --- index.js | 2510 ++++++++++++++++++++++++++++++----------------------- yarn.lock | 27 +- 2 files changed, 1430 insertions(+), 1107 deletions(-) diff --git a/index.js b/index.js index 861d459..5f223d7 100644 --- a/index.js +++ b/index.js @@ -569,24 +569,24 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { cmd2 += toolPath; - for (const a3 of args) { - cmd2 += ` ${a3}`; + for (const a2 of args) { + cmd2 += ` ${a2}`; } } else if (options.windowsVerbatimArguments) { cmd2 += `"${toolPath}"`; - for (const a3 of args) { - cmd2 += ` ${a3}`; + for (const a2 of args) { + cmd2 += ` ${a2}`; } } else { cmd2 += this._windowsQuoteCmdArg(toolPath); - for (const a3 of args) { - cmd2 += ` ${this._windowsQuoteCmdArg(a3)}`; + for (const a2 of args) { + cmd2 += ` ${this._windowsQuoteCmdArg(a2)}`; } } } else { cmd2 += toolPath; - for (const a3 of args) { - cmd2 += ` ${a3}`; + for (const a2 of args) { + cmd2 += ` ${a2}`; } } return cmd2; @@ -619,9 +619,9 @@ var require_toolrunner = __commonJS({ if (IS_WINDOWS) { if (this._isCmdFile()) { let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; - for (const a3 of this.args) { + for (const a2 of this.args) { argline += " "; - argline += options.windowsVerbatimArguments ? a3 : this._windowsQuoteCmdArg(a3); + argline += options.windowsVerbatimArguments ? a2 : this._windowsQuoteCmdArg(a2); } argline += '"'; return [argline]; @@ -853,39 +853,39 @@ var require_toolrunner = __commonJS({ let inQuotes = false; let escaped = false; let arg = ""; - function append(c4) { - if (escaped && c4 !== '"') { + function append(c3) { + if (escaped && c3 !== '"') { arg += "\\"; } - arg += c4; + arg += c3; escaped = false; } for (let i = 0; i < argString.length; i++) { - const c4 = argString.charAt(i); - if (c4 === '"') { + const c3 = argString.charAt(i); + if (c3 === '"') { if (!escaped) { inQuotes = !inQuotes; } else { - append(c4); + append(c3); } continue; } - if (c4 === "\\" && escaped) { - append(c4); + if (c3 === "\\" && escaped) { + append(c3); continue; } - if (c4 === "\\" && inQuotes) { + if (c3 === "\\" && inQuotes) { escaped = true; continue; } - if (c4 === " " && !inQuotes) { + if (c3 === " " && !inQuotes) { if (arg.length > 0) { args.push(arg); arg = ""; } continue; } - append(c4); + append(c3); } if (arg.length > 0) { args.push(arg.trim()); @@ -1775,6 +1775,10 @@ var require_proxy = __commonJS({ if (!reqUrl.hostname) { return false; } + const reqHost = reqUrl.hostname; + if (isLoopbackAddress(reqHost)) { + return true; + } const noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; if (!noProxy) { return false; @@ -1792,13 +1796,17 @@ var require_proxy = __commonJS({ upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); } for (const upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { - if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { + if (upperNoProxyItem === "*" || upperReqHosts.some((x2) => x2 === upperNoProxyItem || x2.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x2.endsWith(`${upperNoProxyItem}`))) { return true; } } return false; } exports2.checkBypass = checkBypass; + function isLoopbackAddress(host) { + const hostLower = host.toLowerCase(); + return hostLower === "localhost" || hostLower.startsWith("127.") || hostLower.startsWith("[::1]") || hostLower.startsWith("[0:0:0:0:0:0:0:1]"); + } } }); @@ -2538,9 +2546,9 @@ var require_lib = __commonJS({ } function dateTimeDeserializer(key, value) { if (typeof value === "string") { - const a3 = new Date(value); - if (!isNaN(a3.valueOf())) { - return a3; + const a2 = new Date(value); + if (!isNaN(a2.valueOf())) { + return a2; } } return value; @@ -2580,7 +2588,7 @@ var require_lib = __commonJS({ } }; exports2.HttpClient = HttpClient; - var lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); + var lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); } }); @@ -3223,6 +3231,373 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } }); +// node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js +var require_utils2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toCommandProperties = exports2.toCommandValue = void 0; + function toCommandValue(input) { + if (input === null || input === void 0) { + return ""; + } else if (typeof input === "string" || input instanceof String) { + return input; + } + return JSON.stringify(input); + } + exports2.toCommandValue = toCommandValue; + function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; + } + exports2.toCommandProperties = toCommandProperties; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js +var require_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issue = exports2.issueCommand = void 0; + var os2 = __importStar(require("os")); + var utils_1 = require_utils2(); + function issueCommand(command2, properties2, message) { + const cmd2 = new Command(command2, properties2, message); + process.stdout.write(cmd2.toString() + os2.EOL); + } + exports2.issueCommand = issueCommand; + function issue(name, message = "") { + issueCommand(name, {}, message); + } + exports2.issue = issue; + var CMD_STRING = "::"; + var Command = class { + constructor(command2, properties2, message) { + if (!command2) { + command2 = "missing.command"; + } + this.command = command2; + this.properties = properties2; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += " "; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } else { + cmdStr += ","; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } + }; + function escapeData(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + } + function escapeProperty(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + } + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js +var require_file_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issueCommand = void 0; + var fs4 = __importStar(require("fs")); + var os2 = __importStar(require("os")); + var utils_1 = require_utils2(); + function issueCommand(command2, message) { + const filePath = process.env[`GITHUB_${command2}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command2}`); + } + if (!fs4.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { + encoding: "utf8" + }); + } + exports2.issueCommand = issueCommand; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js +var require_core2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command2(); + var file_command_1 = require_file_command2(); + var utils_1 = require_utils2(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + const delimiter = "_GitHubActionsFileCommandDelimeter_"; + const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; + file_command_1.issueCommand("ENV", commandValue); + } else { + command_1.issueCommand("set-env", { name }, convertedVal); + } + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); + } + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + return inputs; + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, value); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; + }); + } + exports2.group = group; + function saveState(name, value) { + command_1.issueCommand("save-state", { name }, value); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; + } +}); + // node_modules/@actions/http-client/proxy.js var require_proxy2 = __commonJS({ "node_modules/@actions/http-client/proxy.js"(exports2) { @@ -3607,14 +3982,14 @@ var require_http_client = __commonJS({ return info2; } _mergeHeaders(headers) { - const lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); if (this.requestOptions && this.requestOptions.headers) { return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); } return lowercaseKeys(headers || {}); } _getExistingOrDefaultHeader(additionalHeaders, header, _default) { - const lowercaseKeys = (obj) => Object.keys(obj).reduce((c4, k) => (c4[k.toLowerCase()] = obj[k], c4), {}); + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); let clientHeader; if (this.requestOptions && this.requestOptions.headers) { clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; @@ -3686,9 +4061,9 @@ var require_http_client = __commonJS({ } static dateTimeDeserializer(key, value) { if (typeof value === "string") { - let a3 = new Date(value); - if (!isNaN(a3.valueOf())) { - return a3; + let a2 = new Date(value); + if (!isNaN(a2.valueOf())) { + return a2; } } return value; @@ -3864,7 +4239,7 @@ var require_config_variables = __commonJS({ }); // node_modules/@actions/artifact/lib/internal/utils.js -var require_utils2 = __commonJS({ +var require_utils3 = __commonJS({ "node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { "use strict"; var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { @@ -3895,7 +4270,7 @@ var require_utils2 = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core(); + var core_1 = require_core2(); var fs_1 = require("fs"); var http_client_1 = require_http_client(); var auth_1 = require_auth2(); @@ -4141,9 +4516,9 @@ var require_upload_specification = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core_1 = require_core(); + var core_1 = require_core2(); var path_1 = require("path"); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { utils_1.checkArtifactName(artifactName); const specifications = []; @@ -4477,17 +4852,17 @@ var require_balanced_match = __commonJS({ "node_modules/balanced-match/index.js"(exports2, module2) { "use strict"; module2.exports = balanced; - function balanced(a3, b, str) { - if (a3 instanceof RegExp) - a3 = maybeMatch(a3, str); + function balanced(a2, b, str) { + if (a2 instanceof RegExp) + a2 = maybeMatch(a2, str); if (b instanceof RegExp) b = maybeMatch(b, str); - var r4 = range2(a3, b, str); + var r4 = range(a2, b, str); return r4 && { start: r4[0], end: r4[1], pre: str.slice(0, r4[0]), - body: str.slice(r4[0] + a3.length, r4[1]), + body: str.slice(r4[0] + a2.length, r4[1]), post: str.slice(r4[1] + b.length) }; } @@ -4495,14 +4870,14 @@ var require_balanced_match = __commonJS({ var m4 = str.match(reg2); return m4 ? m4[0] : null; } - balanced.range = range2; - function range2(a3, b, str) { + balanced.range = range; + function range(a2, b, str) { var begs, beg, left, right, result; - var ai = str.indexOf(a3); + var ai = str.indexOf(a2); var bi2 = str.indexOf(b, ai + 1); var i = ai; if (ai >= 0 && bi2 > 0) { - if (a3 === b) { + if (a2 === b) { return [ai, bi2]; } begs = []; @@ -4510,7 +4885,7 @@ var require_balanced_match = __commonJS({ while (i >= 0 && !result) { if (i == ai) { begs.push(i); - ai = str.indexOf(a3, i + 1); + ai = str.indexOf(a2, i + 1); } else if (begs.length == 1) { result = [begs.pop(), bi2]; } else { @@ -4640,25 +5015,25 @@ var require_brace_expansion = __commonJS({ var pad2 = n2.some(isPadded); N = []; for (var i = x2; test(i, y3); i += incr) { - var c4; + var c3; if (isAlphaSequence) { - c4 = String.fromCharCode(i); - if (c4 === "\\") - c4 = ""; + c3 = String.fromCharCode(i); + if (c3 === "\\") + c3 = ""; } else { - c4 = String(i); + c3 = String(i); if (pad2) { - var need = width2 - c4.length; + var need = width2 - c3.length; if (need > 0) { var z = new Array(need + 1).join("0"); if (i < 0) - c4 = "-" + z + c4.slice(1); + c3 = "-" + z + c3.slice(1); else - c4 = z + c4; + c3 = z + c3; } } } - N.push(c4); + N.push(c3); } } else { N = concatMap(n2, function(el2) { @@ -4682,15 +5057,11 @@ var require_minimatch = __commonJS({ "node_modules/minimatch/minimatch.js"(exports2, module2) { module2.exports = minimatch; minimatch.Minimatch = Minimatch; - var path = function() { - try { - return require("path"); - } catch (e3) { - } - }() || { - sep: "/" - }; - minimatch.sep = path.sep; + var path = { sep: "/" }; + try { + path = require("path"); + } catch (er) { + } var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; var expand = require_brace_expansion(); var plTypes = { @@ -4706,8 +5077,8 @@ var require_minimatch = __commonJS({ var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; var reSpecials = charSet("().*{}+?[]^$\\!"); function charSet(s) { - return s.split("").reduce(function(set3, c4) { - set3[c4] = true; + return s.split("").reduce(function(set3, c3) { + set3[c3] = true; return set3; }, {}); } @@ -4719,69 +5090,59 @@ var require_minimatch = __commonJS({ return minimatch(p2, pattern, options); }; } - function ext(a3, b) { + function ext(a2, b) { + a2 = a2 || {}; b = b || {}; var t2 = {}; - Object.keys(a3).forEach(function(k) { - t2[k] = a3[k]; - }); Object.keys(b).forEach(function(k) { t2[k] = b[k]; }); + Object.keys(a2).forEach(function(k) { + t2[k] = a2[k]; + }); return t2; } minimatch.defaults = function(def) { - if (!def || typeof def !== "object" || !Object.keys(def).length) { + if (!def || !Object.keys(def).length) return minimatch; - } var orig = minimatch; var m4 = function minimatch2(p2, pattern, options) { - return orig(p2, pattern, ext(def, options)); + return orig.minimatch(p2, pattern, ext(def, options)); }; m4.Minimatch = function Minimatch2(pattern, options) { return new orig.Minimatch(pattern, ext(def, options)); }; - m4.Minimatch.defaults = function defaults(options) { - return orig.defaults(ext(def, options)).Minimatch; - }; - m4.filter = function filter3(pattern, options) { - return orig.filter(pattern, ext(def, options)); - }; - m4.defaults = function defaults(options) { - return orig.defaults(ext(def, options)); - }; - m4.makeRe = function makeRe2(pattern, options) { - return orig.makeRe(pattern, ext(def, options)); - }; - m4.braceExpand = function braceExpand2(pattern, options) { - return orig.braceExpand(pattern, ext(def, options)); - }; - m4.match = function(list, pattern, options) { - return orig.match(list, pattern, ext(def, options)); - }; return m4; }; Minimatch.defaults = function(def) { + if (!def || !Object.keys(def).length) + return Minimatch; return minimatch.defaults(def).Minimatch; }; function minimatch(p2, pattern, options) { - assertValidPattern(pattern); + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } if (!options) options = {}; if (!options.nocomment && pattern.charAt(0) === "#") { return false; } + if (pattern.trim() === "") + return p2 === ""; return new Minimatch(pattern, options).match(p2); } function Minimatch(pattern, options) { if (!(this instanceof Minimatch)) { return new Minimatch(pattern, options); } - assertValidPattern(pattern); + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } if (!options) options = {}; pattern = pattern.trim(); - if (!options.allowWindowsEscape && path.sep !== "/") { + if (path.sep !== "/") { pattern = pattern.split(path.sep).join("/"); } this.options = options; @@ -4791,13 +5152,14 @@ var require_minimatch = __commonJS({ this.negate = false; this.comment = false; this.empty = false; - this.partial = !!options.partial; this.make(); } Minimatch.prototype.debug = function() { }; Minimatch.prototype.make = make2; function make2() { + if (this._made) + return; var pattern = this.pattern; var options = this.options; if (!options.nocomment && pattern.charAt(0) === "#") { @@ -4811,9 +5173,7 @@ var require_minimatch = __commonJS({ this.parseNegate(); var set3 = this.globSet = this.braceExpand(); if (options.debug) - this.debug = function debug() { - console.error.apply(console, arguments); - }; + this.debug = console.error; this.debug(this.pattern, set3); set3 = this.globParts = set3.map(function(s) { return s.split(slashSplit); @@ -4858,32 +5218,23 @@ var require_minimatch = __commonJS({ } } pattern = typeof pattern === "undefined" ? this.pattern : pattern; - assertValidPattern(pattern); - if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) { + if (typeof pattern === "undefined") { + throw new TypeError("undefined pattern"); + } + if (options.nobrace || !pattern.match(/\{.*\}/)) { return [pattern]; } return expand(pattern); } - var MAX_PATTERN_LENGTH = 1024 * 64; - var assertValidPattern = function(pattern) { - if (typeof pattern !== "string") { - throw new TypeError("invalid pattern"); - } - if (pattern.length > MAX_PATTERN_LENGTH) { - throw new TypeError("pattern is too long"); - } - }; Minimatch.prototype.parse = parse; var SUBPARSE = {}; function parse(pattern, isSub) { - assertValidPattern(pattern); - var options = this.options; - if (pattern === "**") { - if (!options.noglobstar) - return GLOBSTAR; - else - pattern = "*"; + if (pattern.length > 1024 * 64) { + throw new TypeError("pattern is too long"); } + var options = this.options; + if (!options.noglobstar && pattern === "**") + return GLOBSTAR; if (pattern === "") return ""; var re3 = ""; @@ -4916,17 +5267,16 @@ var require_minimatch = __commonJS({ stateChar = false; } } - for (var i = 0, len = pattern.length, c4; i < len && (c4 = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re3, c4); - if (escaping && reSpecials[c4]) { - re3 += "\\" + c4; + for (var i = 0, len = pattern.length, c3; i < len && (c3 = pattern.charAt(i)); i++) { + this.debug("%s %s %s %j", pattern, i, re3, c3); + if (escaping && reSpecials[c3]) { + re3 += "\\" + c3; escaping = false; continue; } - switch (c4) { - case "/": { + switch (c3) { + case "/": return false; - } case "\\": clearStateChar(); escaping = true; @@ -4936,17 +5286,17 @@ var require_minimatch = __commonJS({ case "+": case "@": case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c4); + this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c3); if (inClass) { this.debug(" in class"); - if (c4 === "!" && i === classStart + 1) - c4 = "^"; - re3 += c4; + if (c3 === "!" && i === classStart + 1) + c3 = "^"; + re3 += c3; continue; } self3.debug("call clearStateChar %j", stateChar); clearStateChar(); - stateChar = c4; + stateChar = c3; if (options.noext) clearStateChar(); continue; @@ -4996,42 +5346,44 @@ var require_minimatch = __commonJS({ case "[": clearStateChar(); if (inClass) { - re3 += "\\" + c4; + re3 += "\\" + c3; continue; } inClass = true; classStart = i; reClassStart = re3.length; - re3 += c4; + re3 += c3; continue; case "]": if (i === classStart + 1 || !inClass) { - re3 += "\\" + c4; + re3 += "\\" + c3; escaping = false; continue; } - var cs2 = pattern.substring(classStart + 1, i); - try { - RegExp("[" + cs2 + "]"); - } catch (er) { - var sp2 = this.parse(cs2, SUBPARSE); - re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; - hasMagic = hasMagic || sp2[1]; - inClass = false; - continue; + if (inClass) { + var cs2 = pattern.substring(classStart + 1, i); + try { + RegExp("[" + cs2 + "]"); + } catch (er) { + var sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; + hasMagic = hasMagic || sp2[1]; + inClass = false; + continue; + } } hasMagic = true; inClass = false; - re3 += c4; + re3 += c3; continue; default: clearStateChar(); if (escaping) { escaping = false; - } else if (reSpecials[c4] && !(c4 === "^" && inClass)) { + } else if (reSpecials[c3] && !(c3 === "^" && inClass)) { re3 += "\\"; } - re3 += c4; + re3 += c3; } } if (inClass) { @@ -5060,8 +5412,8 @@ var require_minimatch = __commonJS({ } var addPatternStart = false; switch (re3.charAt(0)) { - case "[": case ".": + case "[": case "(": addPatternStart = true; } @@ -5148,9 +5500,8 @@ var require_minimatch = __commonJS({ } return list; }; - Minimatch.prototype.match = function match(f2, partial) { - if (typeof partial === "undefined") - partial = this.partial; + Minimatch.prototype.match = match; + function match(f2, partial) { this.debug("match", f2, this.pattern); if (this.comment) return false; @@ -5189,7 +5540,7 @@ var require_minimatch = __commonJS({ if (options.flipNegate) return false; return this.negate; - }; + } Minimatch.prototype.matchOne = function(file, pattern, partial) { var options = this.options; this.debug("matchOne", { "this": this, file, pattern }); @@ -5237,7 +5588,11 @@ var require_minimatch = __commonJS({ } var hit; if (typeof p2 === "string") { - hit = f2 === p2; + if (options.nocase) { + hit = f2.toLowerCase() === p2.toLowerCase(); + } else { + hit = f2 === p2; + } this.debug("string match", p2, f2, hit); } else { hit = f2.match(p2); @@ -5251,7 +5606,8 @@ var require_minimatch = __commonJS({ } else if (fi === fl) { return partial; } else if (pi === pl2) { - return fi === fl - 1 && file[fi] === ""; + var emptyFileEnd = fi === fl - 1 && file[fi] === ""; + return emptyFileEnd; } throw new Error("wtf?"); }; @@ -5344,13 +5700,12 @@ var require_common = __commonJS({ function ownProp(obj, field) { return Object.prototype.hasOwnProperty.call(obj, field); } - var fs4 = require("fs"); var path = require("path"); var minimatch = require_minimatch(); var isAbsolute = require_path_is_absolute(); var Minimatch = minimatch.Minimatch; - function alphasort(a3, b) { - return a3.localeCompare(b, "en"); + function alphasort(a2, b) { + return a2.localeCompare(b, "en"); } function setupIgnores(self3, options) { self3.ignore = options.ignore || []; @@ -5399,7 +5754,6 @@ var require_common = __commonJS({ self3.stat = !!options.stat; self3.noprocess = !!options.noprocess; self3.absolute = !!options.absolute; - self3.fs = options.fs || fs4; self3.maxLength = options.maxLength || Infinity; self3.cache = options.cache || Object.create(null); self3.statCache = options.statCache || Object.create(null); @@ -5423,7 +5777,6 @@ var require_common = __commonJS({ self3.nomount = !!options.nomount; options.nonegate = true; options.nocomment = true; - options.allowWindowsEscape = false; self3.minimatch = new Minimatch(pattern, options); self3.options = self3.minimatch.options; } @@ -5461,9 +5814,9 @@ var require_common = __commonJS({ if (self3.nodir) { all = all.filter(function(e3) { var notDir = !/\/$/.test(e3); - var c4 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; - if (notDir && c4) - notDir = c4 !== "DIR" && !Array.isArray(c4); + var c3 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; + if (notDir && c3) + notDir = c3 !== "DIR" && !Array.isArray(c3); return notDir; }); } @@ -5476,10 +5829,10 @@ var require_common = __commonJS({ } function mark(self3, p2) { var abs = makeAbs(self3, p2); - var c4 = self3.cache[abs]; + var c3 = self3.cache[abs]; var m4 = p2; - if (c4) { - var isDir = c4 === "DIR" || Array.isArray(c4); + if (c3) { + var isDir = c3 === "DIR" || Array.isArray(c3); var slash = p2.slice(-1) === "/"; if (isDir && !slash) m4 += "/"; @@ -5530,6 +5883,7 @@ var require_sync = __commonJS({ "node_modules/glob/sync.js"(exports2, module2) { module2.exports = globSync; globSync.GlobSync = GlobSync; + var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -5566,7 +5920,7 @@ var require_sync = __commonJS({ this._finish(); } GlobSync.prototype._finish = function() { - assert.ok(this instanceof GlobSync); + assert(this instanceof GlobSync); if (this.realpath) { var self3 = this; this.matches.forEach(function(matchset, index) { @@ -5588,7 +5942,7 @@ var require_sync = __commonJS({ common.finish(this); }; GlobSync.prototype._process = function(pattern, index, inGlobStar) { - assert.ok(this instanceof GlobSync); + assert(this instanceof GlobSync); var n2 = 0; while (typeof pattern[n2] === "string") { n2++; @@ -5609,9 +5963,7 @@ var require_sync = __commonJS({ var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p2) { - return typeof p2 === "string" ? p2 : "[*]"; - }).join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -5692,8 +6044,8 @@ var require_sync = __commonJS({ if (this.matches[index][e3]) return; if (this.nodir) { - var c4 = this.cache[abs]; - if (c4 === "DIR" || Array.isArray(c4)) + var c3 = this.cache[abs]; + if (c3 === "DIR" || Array.isArray(c3)) return; } this.matches[index][e3] = true; @@ -5707,7 +6059,7 @@ var require_sync = __commonJS({ var lstat; var stat; try { - lstat = this.fs.lstatSync(abs); + lstat = fs4.lstatSync(abs); } catch (er) { if (er.code === "ENOENT") { return null; @@ -5726,14 +6078,14 @@ var require_sync = __commonJS({ if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs); if (ownProp(this.cache, abs)) { - var c4 = this.cache[abs]; - if (!c4 || c4 === "FILE") + var c3 = this.cache[abs]; + if (!c3 || c3 === "FILE") return null; - if (Array.isArray(c4)) - return c4; + if (Array.isArray(c3)) + return c3; } try { - return this._readdirEntries(abs, this.fs.readdirSync(abs)); + return this._readdirEntries(abs, fs4.readdirSync(abs)); } catch (er) { this._readdirError(abs, er); return null; @@ -5829,12 +6181,12 @@ var require_sync = __commonJS({ if (f2.length > this.maxLength) return false; if (!this.stat && ownProp(this.cache, abs)) { - var c4 = this.cache[abs]; - if (Array.isArray(c4)) - c4 = "DIR"; - if (!needDir || c4 === "DIR") - return c4; - if (needDir && c4 === "FILE") + var c3 = this.cache[abs]; + if (Array.isArray(c3)) + c3 = "DIR"; + if (!needDir || c3 === "DIR") + return c3; + if (needDir && c3 === "FILE") return false; } var exists; @@ -5842,7 +6194,7 @@ var require_sync = __commonJS({ if (!stat) { var lstat; try { - lstat = this.fs.lstatSync(abs); + lstat = fs4.lstatSync(abs); } catch (er) { if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { this.statCache[abs] = false; @@ -5851,7 +6203,7 @@ var require_sync = __commonJS({ } if (lstat && lstat.isSymbolicLink()) { try { - stat = this.fs.statSync(abs); + stat = fs4.statSync(abs); } catch (er) { stat = lstat; } @@ -5860,13 +6212,13 @@ var require_sync = __commonJS({ } } this.statCache[abs] = stat; - var c4 = true; + var c3 = true; if (stat) - c4 = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c4; - if (needDir && c4 === "FILE") + c3 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c3; + if (needDir && c3 === "FILE") return false; - return c4; + return c3; }; GlobSync.prototype._mark = function(p2) { return common.mark(this, p2); @@ -6004,6 +6356,7 @@ var require_inflight = __commonJS({ var require_glob = __commonJS({ "node_modules/glob/glob.js"(exports2, module2) { module2.exports = glob; + var fs4 = require("fs"); var rp = require_fs(); var minimatch = require_minimatch(); var Minimatch = minimatch.Minimatch; @@ -6233,9 +6586,7 @@ var require_glob = __commonJS({ var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.map(function(p2) { - return typeof p2 === "string" ? p2 : "[*]"; - }).join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -6329,8 +6680,8 @@ var require_glob = __commonJS({ if (this.matches[index][e3]) return; if (this.nodir) { - var c4 = this.cache[abs]; - if (c4 === "DIR" || Array.isArray(c4)) + var c3 = this.cache[abs]; + if (c3 === "DIR" || Array.isArray(c3)) return; } this.matches[index][e3] = true; @@ -6348,7 +6699,7 @@ var require_glob = __commonJS({ var self3 = this; var lstatcb = inflight(lstatkey, lstatcb_); if (lstatcb) - self3.fs.lstat(abs, lstatcb); + fs4.lstat(abs, lstatcb); function lstatcb_(er, lstat) { if (er && er.code === "ENOENT") return cb(); @@ -6370,14 +6721,14 @@ var require_glob = __commonJS({ if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs, cb); if (ownProp(this.cache, abs)) { - var c4 = this.cache[abs]; - if (!c4 || c4 === "FILE") + var c3 = this.cache[abs]; + if (!c3 || c3 === "FILE") return cb(); - if (Array.isArray(c4)) - return cb(null, c4); + if (Array.isArray(c3)) + return cb(null, c3); } var self3 = this; - self3.fs.readdir(abs, readdirCb(this, abs, cb)); + fs4.readdir(abs, readdirCb(this, abs, cb)); }; function readdirCb(self3, abs, cb) { return function(er, entries2) { @@ -6497,12 +6848,12 @@ var require_glob = __commonJS({ if (f2.length > this.maxLength) return cb(); if (!this.stat && ownProp(this.cache, abs)) { - var c4 = this.cache[abs]; - if (Array.isArray(c4)) - c4 = "DIR"; - if (!needDir || c4 === "DIR") - return cb(null, c4); - if (needDir && c4 === "FILE") + var c3 = this.cache[abs]; + if (Array.isArray(c3)) + c3 = "DIR"; + if (!needDir || c3 === "DIR") + return cb(null, c3); + if (needDir && c3 === "FILE") return cb(); } var exists; @@ -6521,10 +6872,10 @@ var require_glob = __commonJS({ var self3 = this; var statcb = inflight("stat\0" + abs, lstatcb_); if (statcb) - self3.fs.lstat(abs, statcb); + fs4.lstat(abs, statcb); function lstatcb_(er, lstat) { if (lstat && lstat.isSymbolicLink()) { - return self3.fs.stat(abs, function(er2, stat2) { + return fs4.stat(abs, function(er2, stat2) { if (er2) self3._stat2(f2, abs, null, lstat, cb); else @@ -6544,13 +6895,13 @@ var require_glob = __commonJS({ this.statCache[abs] = stat; if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) return cb(null, false, stat); - var c4 = true; + var c3 = true; if (stat) - c4 = stat.isDirectory() ? "DIR" : "FILE"; - this.cache[abs] = this.cache[abs] || c4; - if (needDir && c4 === "FILE") + c3 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c3; + if (needDir && c3 === "FILE") return cb(); - return cb(null, c4, stat); + return cb(null, c3, stat); }; } }); @@ -7237,7 +7588,7 @@ var require_status_reporter = __commonJS({ "node_modules/@actions/artifact/lib/internal/status-reporter.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var core_1 = require_core(); + var core_1 = require_core2(); var StatusReporter = class { constructor(displayFrequencyInMilliseconds) { this.totalNumberOfFilesToProcess = 0; @@ -7291,7 +7642,7 @@ var require_http_manager = __commonJS({ "node_modules/@actions/artifact/lib/internal/http-manager.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var HttpManager = class { constructor(clientCount, userAgent) { if (clientCount < 1) { @@ -7480,8 +7831,8 @@ var require_requestUtils = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var utils_1 = require_utils2(); - var core2 = __importStar(require_core()); + var utils_1 = require_utils3(); + var core2 = __importStar(require_core2()); var config_variables_1 = require_config_variables(); function retry(name, operation, customErrorMessages, maxAttempts) { return __awaiter(this, void 0, void 0, function* () { @@ -7582,10 +7933,10 @@ var require_upload_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core()); + var core2 = __importStar(require_core2()); var tmp = __importStar(require_tmp_promise()); var stream = __importStar(require("stream")); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var config_variables_1 = require_config_variables(); var util_1 = require("util"); var url_1 = require("url"); @@ -7911,9 +8262,9 @@ var require_download_http_client = __commonJS({ }; Object.defineProperty(exports2, "__esModule", { value: true }); var fs4 = __importStar(require("fs")); - var core2 = __importStar(require_core()); + var core2 = __importStar(require_core2()); var zlib = __importStar(require("zlib")); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var url_1 = require("url"); var status_reporter_1 = require_status_reporter(); var perf_hooks_1 = require("perf_hooks"); @@ -8194,10 +8545,10 @@ var require_artifact_client = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - var core2 = __importStar(require_core()); + var core2 = __importStar(require_core2()); var upload_specification_1 = require_upload_specification(); var upload_http_client_1 = require_upload_http_client(); - var utils_1 = require_utils2(); + var utils_1 = require_utils3(); var download_http_client_1 = require_download_http_client(); var download_specification_1 = require_download_specification(); var config_variables_1 = require_config_variables(); @@ -8425,16 +8776,16 @@ var require_react_production_min = __commonJS({ } var w2; var x2 = typeof Symbol === "function" && Symbol.iterator; - function y3(a3) { - if (a3 === null || typeof a3 !== "object") + function y3(a2) { + if (a2 === null || typeof a2 !== "object") return null; - a3 = x2 && a3[x2] || a3["@@iterator"]; - return typeof a3 === "function" ? a3 : null; + a2 = x2 && a2[x2] || a2["@@iterator"]; + return typeof a2 === "function" ? a2 : null; } - function z(a3) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c4 = 1; c4 < arguments.length; c4++) - b += "&args[]=" + encodeURIComponent(arguments[c4]); - return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + function z(a2) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) + b += "&args[]=" + encodeURIComponent(arguments[c3]); + return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var A = { isMounted: function() { return false; @@ -8443,29 +8794,29 @@ var require_react_production_min = __commonJS({ }, enqueueSetState: function() { } }; var B = {}; - function C(a3, b, c4) { - this.props = a3; + function C(a2, b, c3) { + this.props = a2; this.context = b; this.refs = B; - this.updater = c4 || A; + this.updater = c3 || A; } C.prototype.isReactComponent = {}; - C.prototype.setState = function(a3, b) { - if (typeof a3 !== "object" && typeof a3 !== "function" && a3 != null) + C.prototype.setState = function(a2, b) { + if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null) throw Error(z(85)); - this.updater.enqueueSetState(this, a3, b, "setState"); + this.updater.enqueueSetState(this, a2, b, "setState"); }; - C.prototype.forceUpdate = function(a3) { - this.updater.enqueueForceUpdate(this, a3, "forceUpdate"); + C.prototype.forceUpdate = function(a2) { + this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); }; function D() { } D.prototype = C.prototype; - function E2(a3, b, c4) { - this.props = a3; + function E2(a2, b, c3) { + this.props = a2; this.context = b; this.refs = B; - this.updater = c4 || A; + this.updater = c3 || A; } var F = E2.prototype = new D(); F.constructor = E2; @@ -8474,46 +8825,46 @@ var require_react_production_min = __commonJS({ var G = { current: null }; var H = Object.prototype.hasOwnProperty; var I = { key: true, ref: true, __self: true, __source: true }; - function J(a3, b, c4) { + function J(a2, b, c3) { var e3, d2 = {}, k = null, h2 = null; if (b != null) for (e3 in b.ref !== void 0 && (h2 = b.ref), b.key !== void 0 && (k = "" + b.key), b) H.call(b, e3) && !I.hasOwnProperty(e3) && (d2[e3] = b[e3]); var g2 = arguments.length - 2; if (g2 === 1) - d2.children = c4; + d2.children = c3; else if (1 < g2) { for (var f2 = Array(g2), m4 = 0; m4 < g2; m4++) f2[m4] = arguments[m4 + 2]; d2.children = f2; } - if (a3 && a3.defaultProps) - for (e3 in g2 = a3.defaultProps, g2) + if (a2 && a2.defaultProps) + for (e3 in g2 = a2.defaultProps, g2) d2[e3] === void 0 && (d2[e3] = g2[e3]); - return { $$typeof: n2, type: a3, key: k, ref: h2, props: d2, _owner: G.current }; + return { $$typeof: n2, type: a2, key: k, ref: h2, props: d2, _owner: G.current }; } - function K(a3, b) { - return { $$typeof: n2, type: a3.type, key: b, ref: a3.ref, props: a3.props, _owner: a3._owner }; + function K(a2, b) { + return { $$typeof: n2, type: a2.type, key: b, ref: a2.ref, props: a2.props, _owner: a2._owner }; } - function L(a3) { - return typeof a3 === "object" && a3 !== null && a3.$$typeof === n2; + function L(a2) { + return typeof a2 === "object" && a2 !== null && a2.$$typeof === n2; } - function escape(a3) { + function escape(a2) { var b = { "=": "=0", ":": "=2" }; - return "$" + a3.replace(/[=:]/g, function(a4) { - return b[a4]; + return "$" + a2.replace(/[=:]/g, function(a3) { + return b[a3]; }); } var M = /\/+/g; - function N(a3, b) { - return typeof a3 === "object" && a3 !== null && a3.key != null ? escape("" + a3.key) : b.toString(36); + function N(a2, b) { + return typeof a2 === "object" && a2 !== null && a2.key != null ? escape("" + a2.key) : b.toString(36); } - function O(a3, b, c4, e3, d2) { - var k = typeof a3; + function O(a2, b, c3, e3, d2) { + var k = typeof a2; if (k === "undefined" || k === "boolean") - a3 = null; + a2 = null; var h2 = false; - if (a3 === null) + if (a2 === null) h2 = true; else switch (k) { @@ -8522,101 +8873,101 @@ var require_react_production_min = __commonJS({ h2 = true; break; case "object": - switch (a3.$$typeof) { + switch (a2.$$typeof) { case n2: case p2: h2 = true; } } if (h2) - return h2 = a3, d2 = d2(h2), a3 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c4 = "", a3 != null && (c4 = a3.replace(M, "$&/") + "/"), O(d2, b, c4, "", function(a4) { - return a4; - })) : d2 != null && (L(d2) && (d2 = K(d2, c4 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a3)), b.push(d2)), 1; + return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function(a3) { + return a3; + })) : d2 != null && (L(d2) && (d2 = K(d2, c3 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a2)), b.push(d2)), 1; h2 = 0; e3 = e3 === "" ? "." : e3 + ":"; - if (Array.isArray(a3)) - for (var g2 = 0; g2 < a3.length; g2++) { - k = a3[g2]; + if (Array.isArray(a2)) + for (var g2 = 0; g2 < a2.length; g2++) { + k = a2[g2]; var f2 = e3 + N(k, g2); - h2 += O(k, b, c4, f2, d2); + h2 += O(k, b, c3, f2, d2); } - else if (f2 = y3(a3), typeof f2 === "function") - for (a3 = f2.call(a3), g2 = 0; !(k = a3.next()).done; ) - k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c4, f2, d2); + else if (f2 = y3(a2), typeof f2 === "function") + for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done; ) + k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c3, f2, d2); else if (k === "object") - throw b = "" + a3, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a3).join(", ") + "}" : b)); + throw b = "" + a2, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b)); return h2; } - function P(a3, b, c4) { - if (a3 == null) - return a3; + function P(a2, b, c3) { + if (a2 == null) + return a2; var e3 = [], d2 = 0; - O(a3, e3, "", "", function(a4) { - return b.call(c4, a4, d2++); + O(a2, e3, "", "", function(a3) { + return b.call(c3, a3, d2++); }); return e3; } - function Q(a3) { - if (a3._status === -1) { - var b = a3._result; + function Q(a2) { + if (a2._status === -1) { + var b = a2._result; b = b(); - a3._status = 0; - a3._result = b; + a2._status = 0; + a2._result = b; b.then(function(b2) { - a3._status === 0 && (b2 = b2.default, a3._status = 1, a3._result = b2); + a2._status === 0 && (b2 = b2.default, a2._status = 1, a2._result = b2); }, function(b2) { - a3._status === 0 && (a3._status = 2, a3._result = b2); + a2._status === 0 && (a2._status = 2, a2._result = b2); }); } - if (a3._status === 1) - return a3._result; - throw a3._result; + if (a2._status === 1) + return a2._result; + throw a2._result; } var R = { current: null }; function S() { - var a3 = R.current; - if (a3 === null) + var a2 = R.current; + if (a2 === null) throw Error(z(321)); - return a3; + return a2; } var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l2 }; - exports2.Children = { map: P, forEach: function(a3, b, c4) { - P(a3, function() { + exports2.Children = { map: P, forEach: function(a2, b, c3) { + P(a2, function() { b.apply(this, arguments); - }, c4); - }, count: function(a3) { + }, c3); + }, count: function(a2) { var b = 0; - P(a3, function() { + P(a2, function() { b++; }); return b; - }, toArray: function(a3) { - return P(a3, function(a4) { - return a4; + }, toArray: function(a2) { + return P(a2, function(a3) { + return a3; }) || []; - }, only: function(a3) { - if (!L(a3)) + }, only: function(a2) { + if (!L(a2)) throw Error(z(143)); - return a3; + return a2; } }; exports2.Component = C; exports2.PureComponent = E2; exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T; - exports2.cloneElement = function(a3, b, c4) { - if (a3 === null || a3 === void 0) - throw Error(z(267, a3)); - var e3 = l2({}, a3.props), d2 = a3.key, k = a3.ref, h2 = a3._owner; + exports2.cloneElement = function(a2, b, c3) { + if (a2 === null || a2 === void 0) + throw Error(z(267, a2)); + var e3 = l2({}, a2.props), d2 = a2.key, k = a2.ref, h2 = a2._owner; if (b != null) { b.ref !== void 0 && (k = b.ref, h2 = G.current); b.key !== void 0 && (d2 = "" + b.key); - if (a3.type && a3.type.defaultProps) - var g2 = a3.type.defaultProps; + if (a2.type && a2.type.defaultProps) + var g2 = a2.type.defaultProps; for (f2 in b) H.call(b, f2) && !I.hasOwnProperty(f2) && (e3[f2] = b[f2] === void 0 && g2 !== void 0 ? g2[f2] : b[f2]); } var f2 = arguments.length - 2; if (f2 === 1) - e3.children = c4; + e3.children = c3; else if (1 < f2) { g2 = Array(f2); for (var m4 = 0; m4 < f2; m4++) @@ -8625,66 +8976,66 @@ var require_react_production_min = __commonJS({ } return { $$typeof: n2, - type: a3.type, + type: a2.type, key: d2, ref: k, props: e3, _owner: h2 }; }; - exports2.createContext = function(a3, b) { + exports2.createContext = function(a2, b) { b === void 0 && (b = null); - a3 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a3, _currentValue2: a3, _threadCount: 0, Provider: null, Consumer: null }; - a3.Provider = { $$typeof: q2, _context: a3 }; - return a3.Consumer = a3; + a2 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null }; + a2.Provider = { $$typeof: q2, _context: a2 }; + return a2.Consumer = a2; }; exports2.createElement = J; - exports2.createFactory = function(a3) { - var b = J.bind(null, a3); - b.type = a3; + exports2.createFactory = function(a2) { + var b = J.bind(null, a2); + b.type = a2; return b; }; exports2.createRef = function() { return { current: null }; }; - exports2.forwardRef = function(a3) { - return { $$typeof: t2, render: a3 }; + exports2.forwardRef = function(a2) { + return { $$typeof: t2, render: a2 }; }; exports2.isValidElement = L; - exports2.lazy = function(a3) { - return { $$typeof: v2, _payload: { _status: -1, _result: a3 }, _init: Q }; + exports2.lazy = function(a2) { + return { $$typeof: v2, _payload: { _status: -1, _result: a2 }, _init: Q }; }; - exports2.memo = function(a3, b) { - return { $$typeof: u, type: a3, compare: b === void 0 ? null : b }; + exports2.memo = function(a2, b) { + return { $$typeof: u, type: a2, compare: b === void 0 ? null : b }; }; - exports2.useCallback = function(a3, b) { - return S().useCallback(a3, b); + exports2.useCallback = function(a2, b) { + return S().useCallback(a2, b); }; - exports2.useContext = function(a3, b) { - return S().useContext(a3, b); + exports2.useContext = function(a2, b) { + return S().useContext(a2, b); }; exports2.useDebugValue = function() { }; - exports2.useEffect = function(a3, b) { - return S().useEffect(a3, b); + exports2.useEffect = function(a2, b) { + return S().useEffect(a2, b); }; - exports2.useImperativeHandle = function(a3, b, c4) { - return S().useImperativeHandle(a3, b, c4); + exports2.useImperativeHandle = function(a2, b, c3) { + return S().useImperativeHandle(a2, b, c3); }; - exports2.useLayoutEffect = function(a3, b) { - return S().useLayoutEffect(a3, b); + exports2.useLayoutEffect = function(a2, b) { + return S().useLayoutEffect(a2, b); }; - exports2.useMemo = function(a3, b) { - return S().useMemo(a3, b); + exports2.useMemo = function(a2, b) { + return S().useMemo(a2, b); }; - exports2.useReducer = function(a3, b, c4) { - return S().useReducer(a3, b, c4); + exports2.useReducer = function(a2, b, c3) { + return S().useReducer(a2, b, c3); }; - exports2.useRef = function(a3) { - return S().useRef(a3); + exports2.useRef = function(a2) { + return S().useRef(a2); }; - exports2.useState = function(a3) { - return S().useState(a3); + exports2.useState = function(a2) { + return S().useState(a2); }; exports2.version = "17.0.2"; } @@ -9267,8 +9618,8 @@ var require_react_development = __commonJS({ if (childKey != null) { escapedChildKey = escapeUserProvidedKey(childKey) + "/"; } - mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c4) { - return c4; + mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c3) { + return c3; }); } else if (mappedChild != null) { if (isValidElement(mappedChild)) { @@ -9838,17 +10189,17 @@ var require_react_development = __commonJS({ var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); var s = sampleLines.length - 1; - var c4 = controlLines.length - 1; - while (s >= 1 && c4 >= 0 && sampleLines[s] !== controlLines[c4]) { - c4--; + var c3 = controlLines.length - 1; + while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { + c3--; } - for (; s >= 1 && c4 >= 0; s--, c4--) { - if (sampleLines[s] !== controlLines[c4]) { - if (s !== 1 || c4 !== 1) { + for (; s >= 1 && c3 >= 0; s--, c3--) { + if (sampleLines[s] !== controlLines[c3]) { + if (s !== 1 || c3 !== 1) { do { s--; - c4--; - if (c4 < 0 || sampleLines[s] !== controlLines[c4]) { + c3--; + if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); { if (typeof fn === "function") { @@ -9857,7 +10208,7 @@ var require_react_development = __commonJS({ } return _frame; } - } while (s >= 1 && c4 >= 0); + } while (s >= 1 && c3 >= 0); } break; } @@ -10257,10 +10608,10 @@ var require_react_dom_server_node_production_min = __commonJS({ var l2 = require_object_assign(); var n2 = require_react(); var aa = require("stream"); - function p2(a3) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c4 = 1; c4 < arguments.length; c4++) - b += "&args[]=" + encodeURIComponent(arguments[c4]); - return "Minified React error #" + a3 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + function p2(a2) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) + b += "&args[]=" + encodeURIComponent(arguments[c3]); + return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var q2 = 60106; var r4 = 60107; @@ -10298,14 +10649,14 @@ var require_react_dom_server_node_production_min = __commonJS({ la = E2("react.legacy_hidden"); } var E2; - function F(a3) { - if (a3 == null) + function F(a2) { + if (a2 == null) return null; - if (typeof a3 === "function") - return a3.displayName || a3.name || null; - if (typeof a3 === "string") - return a3; - switch (a3) { + if (typeof a2 === "function") + return a2.displayName || a2.name || null; + if (typeof a2 === "string") + return a2; + switch (a2) { case r4: return "Fragment"; case q2: @@ -10319,69 +10670,67 @@ var require_react_dom_server_node_production_min = __commonJS({ case da: return "SuspenseList"; } - if (typeof a3 === "object") - switch (a3.$$typeof) { + if (typeof a2 === "object") + switch (a2.$$typeof) { case ba: - return (a3.displayName || "Context") + ".Consumer"; + return (a2.displayName || "Context") + ".Consumer"; case B: - return (a3._context.displayName || "Context") + ".Provider"; + return (a2._context.displayName || "Context") + ".Provider"; case ca: - var b = a3.render; + var b = a2.render; b = b.displayName || b.name || ""; - return a3.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); + return a2.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); case ea: - return F(a3.type); + return F(a2.type); case ha: - return F(a3._render); + return F(a2._render); case fa: - b = a3._payload; - a3 = a3._init; + b = a2._payload; + a2 = a2._init; try { - return F(a3(b)); - } catch (c4) { + return F(a2(b)); + } catch (c3) { } } return null; } var ma2 = n2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; var na = {}; - function I(a3, b) { - for (var c4 = a3._threadCount | 0; c4 <= b; c4++) - a3[c4] = a3._currentValue2, a3._threadCount = c4 + 1; - } - function oa(a3, b, c4, d2) { - if (d2 && (d2 = a3.contextType, typeof d2 === "object" && d2 !== null)) - return I(d2, c4), d2[c4]; - if (a3 = a3.contextTypes) { - c4 = {}; - for (var f2 in a3) - c4[f2] = b[f2]; - b = c4; + function I(a2, b) { + for (var c3 = a2._threadCount | 0; c3 <= b; c3++) + a2[c3] = a2._currentValue2, a2._threadCount = c3 + 1; + } + function oa(a2, b, c3, d2) { + if (d2 && (d2 = a2.contextType, typeof d2 === "object" && d2 !== null)) + return I(d2, c3), d2[c3]; + if (a2 = a2.contextTypes) { + c3 = {}; + for (var f2 in a2) + c3[f2] = b[f2]; + b = c3; } else b = na; return b; } - for (J = new Uint16Array(16), K = 0; 15 > K; K++) + for (var J = new Uint16Array(16), K = 0; 15 > K; K++) J[K] = K + 1; - var J; - var K; J[15] = 0; var pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; var qa = Object.prototype.hasOwnProperty; var ra = {}; var sa = {}; - function ta(a3) { - if (qa.call(sa, a3)) + function ta(a2) { + if (qa.call(sa, a2)) return true; - if (qa.call(ra, a3)) + if (qa.call(ra, a2)) return false; - if (pa.test(a3)) - return sa[a3] = true; - ra[a3] = true; + if (pa.test(a2)) + return sa[a2] = true; + ra[a2] = true; return false; } - function ua(a3, b, c4, d2) { - if (c4 !== null && c4.type === 0) + function ua(a2, b, c3, d2) { + if (c3 !== null && c3.type === 0) return false; switch (typeof b) { case "function": @@ -10390,21 +10739,21 @@ var require_react_dom_server_node_production_min = __commonJS({ case "boolean": if (d2) return false; - if (c4 !== null) - return !c4.acceptsBooleans; - a3 = a3.toLowerCase().slice(0, 5); - return a3 !== "data-" && a3 !== "aria-"; + if (c3 !== null) + return !c3.acceptsBooleans; + a2 = a2.toLowerCase().slice(0, 5); + return a2 !== "data-" && a2 !== "aria-"; default: return false; } } - function va(a3, b, c4, d2) { - if (b === null || typeof b === "undefined" || ua(a3, b, c4, d2)) + function va(a2, b, c3, d2) { + if (b === null || typeof b === "undefined" || ua(a2, b, c3, d2)) return true; if (d2) return false; - if (c4 !== null) - switch (c4.type) { + if (c3 !== null) + switch (c3.type) { case 3: return !b; case 4: @@ -10416,78 +10765,78 @@ var require_react_dom_server_node_production_min = __commonJS({ } return false; } - function M(a3, b, c4, d2, f2, h2, t2) { + function M(a2, b, c3, d2, f2, h2, t2) { this.acceptsBooleans = b === 2 || b === 3 || b === 4; this.attributeName = d2; this.attributeNamespace = f2; - this.mustUseProperty = c4; - this.propertyName = a3; + this.mustUseProperty = c3; + this.propertyName = a2; this.type = b; this.sanitizeURL = h2; this.removeEmptyString = t2; } var N = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a3) { - N[a3] = new M(a3, 0, false, a3, null, false, false); + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { + N[a2] = new M(a2, 0, false, a2, null, false, false); }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a3) { - var b = a3[0]; - N[b] = new M(b, 1, false, a3[1], null, false, false); + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { + var b = a2[0]; + N[b] = new M(b, 1, false, a2[1], null, false, false); }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a3) { - N[a3] = new M(a3, 2, false, a3.toLowerCase(), null, false, false); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { + N[a2] = new M(a2, 2, false, a2.toLowerCase(), null, false, false); }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a3) { - N[a3] = new M(a3, 2, false, a3, null, false, false); + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { + N[a2] = new M(a2, 2, false, a2, null, false, false); }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a3) { - N[a3] = new M(a3, 3, false, a3.toLowerCase(), null, false, false); + "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { + N[a2] = new M(a2, 3, false, a2.toLowerCase(), null, false, false); }); - ["checked", "multiple", "muted", "selected"].forEach(function(a3) { - N[a3] = new M(a3, 3, true, a3, null, false, false); + ["checked", "multiple", "muted", "selected"].forEach(function(a2) { + N[a2] = new M(a2, 3, true, a2, null, false, false); }); - ["capture", "download"].forEach(function(a3) { - N[a3] = new M(a3, 4, false, a3, null, false, false); + ["capture", "download"].forEach(function(a2) { + N[a2] = new M(a2, 4, false, a2, null, false, false); }); - ["cols", "rows", "size", "span"].forEach(function(a3) { - N[a3] = new M(a3, 6, false, a3, null, false, false); + ["cols", "rows", "size", "span"].forEach(function(a2) { + N[a2] = new M(a2, 6, false, a2, null, false, false); }); - ["rowSpan", "start"].forEach(function(a3) { - N[a3] = new M(a3, 5, false, a3.toLowerCase(), null, false, false); + ["rowSpan", "start"].forEach(function(a2) { + N[a2] = new M(a2, 5, false, a2.toLowerCase(), null, false, false); }); var wa = /[\-:]([a-z])/g; - function xa(a3) { - return a3[1].toUpperCase(); + function xa(a2) { + return a2[1].toUpperCase(); } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a3) { - var b = a3.replace(wa, xa); - N[b] = new M(b, 1, false, a3, null, false, false); + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { + var b = a2.replace(wa, xa); + N[b] = new M(b, 1, false, a2, null, false, false); }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a3) { - var b = a3.replace(wa, xa); - N[b] = new M(b, 1, false, a3, "http://www.w3.org/1999/xlink", false, false); + "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { + var b = a2.replace(wa, xa); + N[b] = new M(b, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); }); - ["xml:base", "xml:lang", "xml:space"].forEach(function(a3) { - var b = a3.replace(wa, xa); - N[b] = new M(b, 1, false, a3, "http://www.w3.org/XML/1998/namespace", false, false); + ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { + var b = a2.replace(wa, xa); + N[b] = new M(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); }); - ["tabIndex", "crossOrigin"].forEach(function(a3) { - N[a3] = new M(a3, 1, false, a3.toLowerCase(), null, false, false); + ["tabIndex", "crossOrigin"].forEach(function(a2) { + N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, false, false); }); N.xlinkHref = new M("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(a3) { - N[a3] = new M(a3, 1, false, a3.toLowerCase(), null, true, true); + ["src", "href", "action", "formAction"].forEach(function(a2) { + N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, true, true); }); var ya = /["'&<>]/; - function O(a3) { - if (typeof a3 === "boolean" || typeof a3 === "number") - return "" + a3; - a3 = "" + a3; - var b = ya.exec(a3); + function O(a2) { + if (typeof a2 === "boolean" || typeof a2 === "number") + return "" + a2; + a2 = "" + a2; + var b = ya.exec(a2); if (b) { - var c4 = "", d2, f2 = 0; - for (d2 = b.index; d2 < a3.length; d2++) { - switch (a3.charCodeAt(d2)) { + var c3 = "", d2, f2 = 0; + for (d2 = b.index; d2 < a2.length; d2++) { + switch (a2.charCodeAt(d2)) { case 34: b = """; break; @@ -10506,33 +10855,33 @@ var require_react_dom_server_node_production_min = __commonJS({ default: continue; } - f2 !== d2 && (c4 += a3.substring(f2, d2)); + f2 !== d2 && (c3 += a2.substring(f2, d2)); f2 = d2 + 1; - c4 += b; + c3 += b; } - a3 = f2 !== d2 ? c4 + a3.substring(f2, d2) : c4; + a2 = f2 !== d2 ? c3 + a2.substring(f2, d2) : c3; } - return a3; + return a2; } - function za(a3, b) { - var c4 = N.hasOwnProperty(a3) ? N[a3] : null; + function za(a2, b) { + var c3 = N.hasOwnProperty(a2) ? N[a2] : null; var d2; - if (d2 = a3 !== "style") - d2 = c4 !== null ? c4.type === 0 : !(2 < a3.length) || a3[0] !== "o" && a3[0] !== "O" || a3[1] !== "n" && a3[1] !== "N" ? false : true; - if (d2 || va(a3, b, c4, false)) + if (d2 = a2 !== "style") + d2 = c3 !== null ? c3.type === 0 : !(2 < a2.length) || a2[0] !== "o" && a2[0] !== "O" || a2[1] !== "n" && a2[1] !== "N" ? false : true; + if (d2 || va(a2, b, c3, false)) return ""; - if (c4 !== null) { - a3 = c4.attributeName; - d2 = c4.type; + if (c3 !== null) { + a2 = c3.attributeName; + d2 = c3.type; if (d2 === 3 || d2 === 4 && b === true) - return a3 + '=""'; - c4.sanitizeURL && (b = "" + b); - return a3 + '="' + (O(b) + '"'); + return a2 + '=""'; + c3.sanitizeURL && (b = "" + b); + return a2 + '="' + (O(b) + '"'); } - return ta(a3) ? a3 + '="' + (O(b) + '"') : ""; + return ta(a2) ? a2 + '="' + (O(b) + '"') : ""; } - function Aa(a3, b) { - return a3 === b && (a3 !== 0 || 1 / a3 === 1 / b) || a3 !== a3 && b !== b; + function Aa(a2, b) { + return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b; } var Ba = typeof Object.is === "function" ? Object.is : Aa; var P = null; @@ -10556,11 +10905,11 @@ var require_react_dom_server_node_production_min = __commonJS({ R === null ? Q === null ? (S = false, Q = R = Ca()) : (S = true, R = Q) : R.next === null ? (S = false, R = R.next = Ca()) : (S = true, R = R.next); return R; } - function Ea(a3, b, c4, d2) { + function Ea(a2, b, c3, d2) { for (; T; ) - T = false, V += 1, R = null, c4 = a3(b, d2); + T = false, V += 1, R = null, c3 = a2(b, d2); Fa(); - return c4; + return c3; } function Fa() { P = null; @@ -10569,40 +10918,40 @@ var require_react_dom_server_node_production_min = __commonJS({ V = 0; R = U = null; } - function Ga(a3, b) { - return typeof b === "function" ? b(a3) : b; + function Ga(a2, b) { + return typeof b === "function" ? b(a2) : b; } - function Ha(a3, b, c4) { + function Ha(a2, b, c3) { P = W(); R = Da(); if (S) { var d2 = R.queue; b = d2.dispatch; - if (U !== null && (c4 = U.get(d2), c4 !== void 0)) { + if (U !== null && (c3 = U.get(d2), c3 !== void 0)) { U.delete(d2); d2 = R.memoizedState; do - d2 = a3(d2, c4.action), c4 = c4.next; - while (c4 !== null); + d2 = a2(d2, c3.action), c3 = c3.next; + while (c3 !== null); R.memoizedState = d2; return [d2, b]; } return [R.memoizedState, b]; } - a3 = a3 === Ga ? typeof b === "function" ? b() : b : c4 !== void 0 ? c4(b) : b; - R.memoizedState = a3; - a3 = R.queue = { last: null, dispatch: null }; - a3 = a3.dispatch = Ia.bind(null, P, a3); - return [R.memoizedState, a3]; + a2 = a2 === Ga ? typeof b === "function" ? b() : b : c3 !== void 0 ? c3(b) : b; + R.memoizedState = a2; + a2 = R.queue = { last: null, dispatch: null }; + a2 = a2.dispatch = Ia.bind(null, P, a2); + return [R.memoizedState, a2]; } - function Ja(a3, b) { + function Ja(a2, b) { P = W(); R = Da(); b = b === void 0 ? null : b; if (R !== null) { - var c4 = R.memoizedState; - if (c4 !== null && b !== null) { - var d2 = c4[1]; + var c3 = R.memoizedState; + if (c3 !== null && b !== null) { + var d2 = c3[1]; a: if (d2 === null) d2 = false; @@ -10615,66 +10964,66 @@ var require_react_dom_server_node_production_min = __commonJS({ d2 = true; } if (d2) - return c4[0]; + return c3[0]; } } - a3 = a3(); - R.memoizedState = [a3, b]; - return a3; + a2 = a2(); + R.memoizedState = [a2, b]; + return a2; } - function Ia(a3, b, c4) { + function Ia(a2, b, c3) { if (!(25 > V)) throw Error(p2(301)); - if (a3 === P) - if (T = true, a3 = { action: c4, next: null }, U === null && (U = new Map()), c4 = U.get(b), c4 === void 0) - U.set(b, a3); + if (a2 === P) + if (T = true, a2 = { action: c3, next: null }, U === null && (U = new Map()), c3 = U.get(b), c3 === void 0) + U.set(b, a2); else { - for (b = c4; b.next !== null; ) + for (b = c3; b.next !== null; ) b = b.next; - b.next = a3; + b.next = a2; } } function Ka() { } var X2 = null; - var La = { readContext: function(a3) { + var La = { readContext: function(a2) { var b = X2.threadID; - I(a3, b); - return a3[b]; - }, useContext: function(a3) { + I(a2, b); + return a2[b]; + }, useContext: function(a2) { W(); var b = X2.threadID; - I(a3, b); - return a3[b]; - }, useMemo: Ja, useReducer: Ha, useRef: function(a3) { + I(a2, b); + return a2[b]; + }, useMemo: Ja, useReducer: Ha, useRef: function(a2) { P = W(); R = Da(); var b = R.memoizedState; - return b === null ? (a3 = { current: a3 }, R.memoizedState = a3) : b; - }, useState: function(a3) { - return Ha(Ga, a3); + return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; + }, useState: function(a2) { + return Ha(Ga, a2); }, useLayoutEffect: function() { - }, useCallback: function(a3, b) { + }, useCallback: function(a2, b) { return Ja(function() { - return a3; + return a2; }, b); - }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a3) { + }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a2) { W(); - return a3; + return a2; }, useTransition: function() { W(); - return [function(a3) { - a3(); + return [function(a2) { + a2(); }, false]; }, useOpaqueIdentifier: function() { return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); - }, useMutableSource: function(a3, b) { + }, useMutableSource: function(a2, b) { W(); - return b(a3._source); + return b(a2._source); } }; var Ma = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; - function Na(a3) { - switch (a3) { + function Na(a2) { + switch (a2) { case "svg": return "http://www.w3.org/2000/svg"; case "math": @@ -10730,10 +11079,10 @@ var require_react_dom_server_node_production_min = __commonJS({ strokeWidth: true }; var Qa = ["Webkit", "ms", "Moz", "O"]; - Object.keys(Y2).forEach(function(a3) { + Object.keys(Y2).forEach(function(a2) { Qa.forEach(function(b) { - b = b + a3.charAt(0).toUpperCase() + a3.substring(1); - Y2[b] = Y2[a3]; + b = b + a2.charAt(0).toUpperCase() + a2.substring(1); + Y2[b] = Y2[a2]; }); }); var Ra = /([A-Z])/g; @@ -10744,32 +11093,32 @@ var require_react_dom_server_node_production_min = __commonJS({ var Va = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; var Wa = {}; var Xa = {}; - function Ya(a3) { - if (a3 === void 0 || a3 === null) - return a3; + function Ya(a2) { + if (a2 === void 0 || a2 === null) + return a2; var b = ""; - n2.Children.forEach(a3, function(a4) { - a4 != null && (b += a4); + n2.Children.forEach(a2, function(a3) { + a3 != null && (b += a3); }); return b; } var Za = Object.prototype.hasOwnProperty; var $a = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null }; - function ab(a3, b) { - if (a3 === void 0) + function ab(a2, b) { + if (a2 === void 0) throw Error(p2(152, F(b) || "Component")); } - function bb2(a3, b, c4) { + function bb2(a2, b, c3) { function d2(d3, h3) { - var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c4, e3), t2 = [], g2 = false, m4 = { isMounted: function() { + var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { isMounted: function() { return false; }, enqueueForceUpdate: function() { if (t2 === null) return null; - }, enqueueReplaceState: function(a4, b2) { + }, enqueueReplaceState: function(a3, b2) { g2 = true; t2 = [b2]; - }, enqueueSetState: function(a4, b2) { + }, enqueueSetState: function(a3, b2) { if (t2 === null) return null; t2.push(b2); @@ -10780,8 +11129,8 @@ var require_react_dom_server_node_production_min = __commonJS({ k != null && (e3.state = l2({}, e3.state, k)); } } else if (P = {}, e3 = h3(d3.props, f3, m4), e3 = Ea(h3, d3.props, e3, f3), e3 == null || e3.render == null) { - a3 = e3; - ab(a3, h3); + a2 = e3; + ab(a2, h3); return; } e3.props = d3.props; @@ -10809,8 +11158,8 @@ var require_react_dom_server_node_production_min = __commonJS({ } } else t2 = null; - a3 = e3.render(); - ab(a3, h3); + a2 = e3.render(); + ab(a2, h3); if (typeof e3.getChildContext === "function" && (d3 = h3.childContextTypes, typeof d3 === "object")) { var y3 = e3.getChildContext(); for (var A in y3) @@ -10819,36 +11168,36 @@ var require_react_dom_server_node_production_min = __commonJS({ } y3 && (b = l2({}, b, y3)); } - for (; n2.isValidElement(a3); ) { - var f2 = a3, h2 = f2.type; + for (; n2.isValidElement(a2); ) { + var f2 = a2, h2 = f2.type; if (typeof h2 !== "function") break; d2(f2, h2); } - return { child: a3, context: b }; + return { child: a2, context: b }; } var cb = function() { - function a3(a4, b2, f2) { - n2.isValidElement(a4) ? a4.type !== r4 ? a4 = [a4] : (a4 = a4.props.children, a4 = n2.isValidElement(a4) ? [a4] : Z(a4)) : a4 = Z(a4); - a4 = { type: null, domNamespace: Ma.html, children: a4, childIndex: 0, context: na, footer: "" }; - var c4 = J[0]; - if (c4 === 0) { + function a2(a3, b2, f2) { + n2.isValidElement(a3) ? a3.type !== r4 ? a3 = [a3] : (a3 = a3.props.children, a3 = n2.isValidElement(a3) ? [a3] : Z(a3)) : a3 = Z(a3); + a3 = { type: null, domNamespace: Ma.html, children: a3, childIndex: 0, context: na, footer: "" }; + var c3 = J[0]; + if (c3 === 0) { var d2 = J; - c4 = d2.length; - var g2 = 2 * c4; + c3 = d2.length; + var g2 = 2 * c3; if (!(65536 >= g2)) throw Error(p2(304)); var e3 = new Uint16Array(g2); e3.set(d2); J = e3; - J[0] = c4 + 1; - for (d2 = c4; d2 < g2 - 1; d2++) + J[0] = c3 + 1; + for (d2 = c3; d2 < g2 - 1; d2++) J[d2] = d2 + 1; J[g2 - 1] = 0; } else - J[0] = J[c4]; - this.threadID = c4; - this.stack = [a4]; + J[0] = J[c3]; + this.threadID = c3; + this.stack = [a3]; this.exhausted = false; this.currentSelectValue = null; this.previousWasTextNode = false; @@ -10860,44 +11209,44 @@ var require_react_dom_server_node_production_min = __commonJS({ this.uniqueID = 0; this.identifierPrefix = f2 && f2.identifierPrefix || ""; } - var b = a3.prototype; + var b = a2.prototype; b.destroy = function() { if (!this.exhausted) { this.exhausted = true; this.clearProviders(); - var a4 = this.threadID; - J[a4] = J[0]; - J[0] = a4; + var a3 = this.threadID; + J[a3] = J[0]; + J[0] = a3; } }; - b.pushProvider = function(a4) { - var b2 = ++this.contextIndex, c4 = a4.type._context, h2 = this.threadID; - I(c4, h2); - var t2 = c4[h2]; - this.contextStack[b2] = c4; + b.pushProvider = function(a3) { + var b2 = ++this.contextIndex, c3 = a3.type._context, h2 = this.threadID; + I(c3, h2); + var t2 = c3[h2]; + this.contextStack[b2] = c3; this.contextValueStack[b2] = t2; - c4[h2] = a4.props.value; + c3[h2] = a3.props.value; }; b.popProvider = function() { - var a4 = this.contextIndex, b2 = this.contextStack[a4], f2 = this.contextValueStack[a4]; - this.contextStack[a4] = null; - this.contextValueStack[a4] = null; + var a3 = this.contextIndex, b2 = this.contextStack[a3], f2 = this.contextValueStack[a3]; + this.contextStack[a3] = null; + this.contextValueStack[a3] = null; this.contextIndex--; b2[this.threadID] = f2; }; b.clearProviders = function() { - for (var a4 = this.contextIndex; 0 <= a4; a4--) - this.contextStack[a4][this.threadID] = this.contextValueStack[a4]; + for (var a3 = this.contextIndex; 0 <= a3; a3--) + this.contextStack[a3][this.threadID] = this.contextValueStack[a3]; }; - b.read = function(a4) { + b.read = function(a3) { if (this.exhausted) return null; var b2 = X2; X2 = this; - var c4 = Ta.current; + var c3 = Ta.current; Ta.current = La; try { - for (var h2 = [""], t2 = false; h2[0].length < a4; ) { + for (var h2 = [""], t2 = false; h2[0].length < a3; ) { if (this.stack.length === 0) { this.exhausted = true; var g2 = this.threadID; @@ -10945,12 +11294,12 @@ var require_react_dom_server_node_production_min = __commonJS({ } return h2[0]; } finally { - Ta.current = c4, X2 = b2, Fa(); + Ta.current = c3, X2 = b2, Fa(); } }; - b.render = function(a4, b2, f2) { - if (typeof a4 === "string" || typeof a4 === "number") { - f2 = "" + a4; + b.render = function(a3, b2, f2) { + if (typeof a3 === "string" || typeof a3 === "number") { + f2 = "" + a3; if (f2 === "") return ""; if (this.makeStaticMarkup) @@ -10960,36 +11309,36 @@ var require_react_dom_server_node_production_min = __commonJS({ this.previousWasTextNode = true; return O(f2); } - b2 = bb2(a4, b2, this.threadID); - a4 = b2.child; + b2 = bb2(a3, b2, this.threadID); + a3 = b2.child; b2 = b2.context; - if (a4 === null || a4 === false) + if (a3 === null || a3 === false) return ""; - if (!n2.isValidElement(a4)) { - if (a4 != null && a4.$$typeof != null) { - f2 = a4.$$typeof; + if (!n2.isValidElement(a3)) { + if (a3 != null && a3.$$typeof != null) { + f2 = a3.$$typeof; if (f2 === q2) throw Error(p2(257)); throw Error(p2(258, f2.toString())); } - a4 = Z(a4); - this.stack.push({ type: null, domNamespace: f2, children: a4, childIndex: 0, context: b2, footer: "" }); + a3 = Z(a3); + this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }); return ""; } - var c4 = a4.type; - if (typeof c4 === "string") - return this.renderDOM(a4, b2, f2); - switch (c4) { + var c3 = a3.type; + if (typeof c3 === "string") + return this.renderDOM(a3, b2, f2); + switch (c3) { case la: case ka: case u: case z: case da: case r4: - return a4 = Z(a4.props.children), this.stack.push({ + return a3 = Z(a3.props.children), this.stack.push({ type: null, domNamespace: f2, - children: a4, + children: a3, childIndex: 0, context: b2, footer: "" @@ -10999,53 +11348,53 @@ var require_react_dom_server_node_production_min = __commonJS({ case ja: throw Error(p2(343)); } - if (typeof c4 === "object" && c4 !== null) - switch (c4.$$typeof) { + if (typeof c3 === "object" && c3 !== null) + switch (c3.$$typeof) { case ca: P = {}; - var d2 = c4.render(a4.props, a4.ref); - d2 = Ea(c4.render, a4.props, d2, a4.ref); + var d2 = c3.render(a3.props, a3.ref); + d2 = Ea(c3.render, a3.props, d2, a3.ref); d2 = Z(d2); this.stack.push({ type: null, domNamespace: f2, children: d2, childIndex: 0, context: b2, footer: "" }); return ""; case ea: - return a4 = [n2.createElement(c4.type, l2({ ref: a4.ref }, a4.props))], this.stack.push({ type: null, domNamespace: f2, children: a4, childIndex: 0, context: b2, footer: "" }), ""; + return a3 = [n2.createElement(c3.type, l2({ ref: a3.ref }, a3.props))], this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }), ""; case B: - return c4 = Z(a4.props.children), f2 = { type: a4, domNamespace: f2, children: c4, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a4), this.stack.push(f2), ""; + return c3 = Z(a3.props.children), f2 = { type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a3), this.stack.push(f2), ""; case ba: - c4 = a4.type; - d2 = a4.props; + c3 = a3.type; + d2 = a3.props; var g2 = this.threadID; - I(c4, g2); - c4 = Z(d2.children(c4[g2])); - this.stack.push({ type: a4, domNamespace: f2, children: c4, childIndex: 0, context: b2, footer: "" }); + I(c3, g2); + c3 = Z(d2.children(c3[g2])); + this.stack.push({ type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }); return ""; case ia: throw Error(p2(338)); case fa: - return c4 = a4.type, d2 = c4._init, c4 = d2(c4._payload), a4 = [n2.createElement(c4, l2({ ref: a4.ref }, a4.props))], this.stack.push({ + return c3 = a3.type, d2 = c3._init, c3 = d2(c3._payload), a3 = [n2.createElement(c3, l2({ ref: a3.ref }, a3.props))], this.stack.push({ type: null, domNamespace: f2, - children: a4, + children: a3, childIndex: 0, context: b2, footer: "" }), ""; } - throw Error(p2(130, c4 == null ? c4 : typeof c4, "")); + throw Error(p2(130, c3 == null ? c3 : typeof c3, "")); }; - b.renderDOM = function(a4, b2, f2) { - var c4 = a4.type.toLowerCase(); - f2 === Ma.html && Na(c4); - if (!Wa.hasOwnProperty(c4)) { - if (!Va.test(c4)) - throw Error(p2(65, c4)); - Wa[c4] = true; - } - var d2 = a4.props; - if (c4 === "input") + b.renderDOM = function(a3, b2, f2) { + var c3 = a3.type.toLowerCase(); + f2 === Ma.html && Na(c3); + if (!Wa.hasOwnProperty(c3)) { + if (!Va.test(c3)) + throw Error(p2(65, c3)); + Wa[c3] = true; + } + var d2 = a3.props; + if (c3 === "input") d2 = l2({ type: void 0 }, d2, { defaultChecked: void 0, defaultValue: void 0, value: d2.value != null ? d2.value : d2.defaultValue, checked: d2.checked != null ? d2.checked : d2.defaultChecked }); - else if (c4 === "textarea") { + else if (c3 === "textarea") { var g2 = d2.value; if (g2 == null) { g2 = d2.defaultValue; @@ -11063,9 +11412,9 @@ var require_react_dom_server_node_production_min = __commonJS({ g2 == null && (g2 = ""); } d2 = l2({}, d2, { value: void 0, children: "" + g2 }); - } else if (c4 === "select") + } else if (c3 === "select") this.currentSelectValue = d2.value != null ? d2.value : d2.defaultValue, d2 = l2({}, d2, { value: void 0 }); - else if (c4 === "option") { + else if (c3 === "option") { e3 = this.currentSelectValue; var L = Ya(d2.children); if (e3 != null) { @@ -11084,8 +11433,8 @@ var require_react_dom_server_node_production_min = __commonJS({ } } if (g2 = d2) { - if (Pa[c4] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) - throw Error(p2(137, c4)); + if (Pa[c3] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) + throw Error(p2(137, c3)); if (g2.dangerouslySetInnerHTML != null) { if (g2.children != null) throw Error(p2(60)); @@ -11098,12 +11447,12 @@ var require_react_dom_server_node_production_min = __commonJS({ g2 = d2; e3 = this.makeStaticMarkup; L = this.stack.length === 1; - G = "<" + a4.type; + G = "<" + a3.type; b: - if (c4.indexOf("-") === -1) + if (c3.indexOf("-") === -1) C = typeof g2.is === "string"; else - switch (c4) { + switch (c3) { case "annotation-xml": case "color-profile": case "font-face": @@ -11152,7 +11501,7 @@ var require_react_dom_server_node_production_min = __commonJS({ e3 || L && (G += ' data-reactroot=""'); var w2 = G; g2 = ""; - Oa.hasOwnProperty(c4) ? w2 += "/>" : (w2 += ">", g2 = ""); + Oa.hasOwnProperty(c3) ? w2 += "/>" : (w2 += ">", g2 = ""); a: { e3 = d2.dangerouslySetInnerHTML; if (e3 != null) { @@ -11166,61 +11515,61 @@ var require_react_dom_server_node_production_min = __commonJS({ } e3 = null; } - e3 != null ? (d2 = [], Ua.hasOwnProperty(c4) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); - a4 = a4.type; - f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a4) : f2 === "http://www.w3.org/2000/svg" && a4 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; - this.stack.push({ domNamespace: f2, type: c4, children: d2, childIndex: 0, context: b2, footer: g2 }); + e3 != null ? (d2 = [], Ua.hasOwnProperty(c3) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); + a3 = a3.type; + f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a3) : f2 === "http://www.w3.org/2000/svg" && a3 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; + this.stack.push({ domNamespace: f2, type: c3, children: d2, childIndex: 0, context: b2, footer: g2 }); this.previousWasTextNode = false; return w2; }; - return a3; + return a2; }(); - function db(a3, b) { - a3.prototype = Object.create(b.prototype); - a3.prototype.constructor = a3; - a3.__proto__ = b; - } - var fb = function(a3) { - function b(b2, c5, h2) { - var d2 = a3.call(this, {}) || this; - d2.partialRenderer = new cb(b2, c5, h2); + function db(a2, b) { + a2.prototype = Object.create(b.prototype); + a2.prototype.constructor = a2; + a2.__proto__ = b; + } + var fb = function(a2) { + function b(b2, c4, h2) { + var d2 = a2.call(this, {}) || this; + d2.partialRenderer = new cb(b2, c4, h2); return d2; } - db(b, a3); - var c4 = b.prototype; - c4._destroy = function(a4, b2) { + db(b, a2); + var c3 = b.prototype; + c3._destroy = function(a3, b2) { this.partialRenderer.destroy(); - b2(a4); + b2(a3); }; - c4._read = function(a4) { + c3._read = function(a3) { try { - this.push(this.partialRenderer.read(a4)); + this.push(this.partialRenderer.read(a3)); } catch (f2) { this.destroy(f2); } }; return b; }(aa.Readable); - exports2.renderToNodeStream = function(a3, b) { - return new fb(a3, false, b); + exports2.renderToNodeStream = function(a2, b) { + return new fb(a2, false, b); }; - exports2.renderToStaticMarkup = function(a3, b) { - a3 = new cb(a3, true, b); + exports2.renderToStaticMarkup = function(a2, b) { + a2 = new cb(a2, true, b); try { - return a3.read(Infinity); + return a2.read(Infinity); } finally { - a3.destroy(); + a2.destroy(); } }; - exports2.renderToStaticNodeStream = function(a3, b) { - return new fb(a3, true, b); + exports2.renderToStaticNodeStream = function(a2, b) { + return new fb(a2, true, b); }; - exports2.renderToString = function(a3, b) { - a3 = new cb(a3, false, b); + exports2.renderToString = function(a2, b) { + a2 = new cb(a2, false, b); try { - return a3.read(Infinity); + return a2.read(Infinity); } finally { - a3.destroy(); + a2.destroy(); } }; exports2.version = "17.0.2"; @@ -11542,17 +11891,17 @@ var require_react_dom_server_node_development = __commonJS({ var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); var s = sampleLines.length - 1; - var c4 = controlLines.length - 1; - while (s >= 1 && c4 >= 0 && sampleLines[s] !== controlLines[c4]) { - c4--; + var c3 = controlLines.length - 1; + while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { + c3--; } - for (; s >= 1 && c4 >= 0; s--, c4--) { - if (sampleLines[s] !== controlLines[c4]) { - if (s !== 1 || c4 !== 1) { + for (; s >= 1 && c3 >= 0; s--, c3--) { + if (sampleLines[s] !== controlLines[c3]) { + if (s !== 1 || c3 !== 1) { do { s--; - c4--; - if (c4 < 0 || sampleLines[s] !== controlLines[c4]) { + c3--; + if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); { if (typeof fn === "function") { @@ -11561,7 +11910,7 @@ var require_react_dom_server_node_development = __commonJS({ } return _frame; } - } while (s >= 1 && c4 >= 0); + } while (s >= 1 && c3 >= 0); } break; } @@ -14565,7 +14914,7 @@ var require_server = __commonJS({ }); // node_modules/braces/lib/utils.js -var require_utils3 = __commonJS({ +var require_utils4 = __commonJS({ "node_modules/braces/lib/utils.js"(exports2) { "use strict"; exports2.isInteger = (num) => { @@ -14652,7 +15001,7 @@ var require_utils3 = __commonJS({ var require_stringify2 = __commonJS({ "node_modules/braces/lib/stringify.js"(exports2, module2) { "use strict"; - var utils = require_utils3(); + var utils = require_utils4(); module2.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); @@ -14722,9 +15071,9 @@ var require_to_regex_range = __commonJS({ if (toRegexRange.cache.hasOwnProperty(cacheKey)) { return toRegexRange.cache[cacheKey].result; } - let a3 = Math.min(min, max); + let a2 = Math.min(min, max); let b = Math.max(min, max); - if (Math.abs(a3 - b) === 1) { + if (Math.abs(a2 - b) === 1) { let result = min + "|" + max; if (opts.capture) { return `(${result})`; @@ -14735,20 +15084,20 @@ var require_to_regex_range = __commonJS({ return `(?:${result})`; } let isPadded = hasPadding(min) || hasPadding(max); - let state = { min, max, a: a3, b }; + let state = { min, max, a: a2, b }; let positives = []; let negatives = []; if (isPadded) { state.isPadded = isPadded; state.maxLen = String(state.max).length; } - if (a3 < 0) { + if (a2 < 0) { let newMin = b < 0 ? Math.abs(b) : 1; - negatives = splitToPatterns(newMin, Math.abs(a3), state, opts); - a3 = state.a = 0; + negatives = splitToPatterns(newMin, Math.abs(a2), state, opts); + a2 = state.a = 0; } if (b >= 0) { - positives = splitToPatterns(a3, b, state, opts); + positives = splitToPatterns(a2, b, state, opts); } state.negatives = negatives; state.positives = positives; @@ -14852,14 +15201,14 @@ var require_to_regex_range = __commonJS({ } return result; } - function zip(a3, b) { + function zip(a2, b) { let arr = []; - for (let i = 0; i < a3.length; i++) - arr.push([a3[i], b[i]]); + for (let i = 0; i < a2.length; i++) + arr.push([a2[i], b[i]]); return arr; } - function compare(a3, b) { - return a3 > b ? 1 : b > a3 ? -1 : 0; + function compare(a2, b) { + return a2 > b ? 1 : b > a2 ? -1 : 0; } function contains(arr, key, val) { return arr.some((ele) => ele[key] === val); @@ -14877,8 +15226,8 @@ var require_to_regex_range = __commonJS({ } return ""; } - function toCharacterClass(a3, b, options) { - return `[${a3}${b - a3 === 1 ? "" : "-"}${b}]`; + function toCharacterClass(a2, b, options) { + return `[${a2}${b - a2 === 1 ? "" : "-"}${b}]`; } function hasPadding(str) { return /^-?(0+)\d/.test(str); @@ -14961,8 +15310,8 @@ var require_fill_range = __commonJS({ return negative ? "-" + input : input; }; var toSequence = (parts, options) => { - parts.negatives.sort((a3, b) => a3 < b ? -1 : a3 > b ? 1 : 0); - parts.positives.sort((a3, b) => a3 < b ? -1 : a3 > b ? 1 : 0); + parts.negatives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); + parts.positives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0); let prefix = options.capture ? "" : "?:"; let positives = ""; let negatives = ""; @@ -14983,12 +15332,12 @@ var require_fill_range = __commonJS({ } return result; }; - var toRange = (a3, b, isNumbers, options) => { + var toRange = (a2, b, isNumbers, options) => { if (isNumbers) { - return toRegexRange(a3, b, { wrap: false, ...options }); + return toRegexRange(a2, b, { wrap: false, ...options }); } - let start2 = String.fromCharCode(a3); - if (a3 === b) + let start2 = String.fromCharCode(a2); + if (a2 === b) return start2; let stop = String.fromCharCode(b); return `[${start2}-${stop}]`; @@ -15016,18 +15365,18 @@ var require_fill_range = __commonJS({ return []; }; var fillNumbers = (start2, end, step = 1, options = {}) => { - let a3 = Number(start2); + let a2 = Number(start2); let b = Number(end); - if (!Number.isInteger(a3) || !Number.isInteger(b)) { + if (!Number.isInteger(a2) || !Number.isInteger(b)) { if (options.strictRanges === true) throw rangeError([start2, end]); return []; } - if (a3 === 0) - a3 = 0; + if (a2 === 0) + a2 = 0; if (b === 0) b = 0; - let descending2 = a3 > b; + let descending = a2 > b; let startString = String(start2); let endString = String(end); let stepString = String(step); @@ -15041,46 +15390,46 @@ var require_fill_range = __commonJS({ } let parts = { negatives: [], positives: [] }; let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)); - let range2 = []; + let range = []; let index = 0; - while (descending2 ? a3 >= b : a3 <= b) { + while (descending ? a2 >= b : a2 <= b) { if (options.toRegex === true && step > 1) { - push(a3); + push(a2); } else { - range2.push(pad2(format2(a3, index), maxLen, toNumber)); + range.push(pad2(format2(a2, index), maxLen, toNumber)); } - a3 = descending2 ? a3 - step : a3 + step; + a2 = descending ? a2 - step : a2 + step; index++; } if (options.toRegex === true) { - return step > 1 ? toSequence(parts, options) : toRegex(range2, null, { wrap: false, ...options }); + return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options }); } - return range2; + return range; }; var fillLetters = (start2, end, step = 1, options = {}) => { if (!isNumber(start2) && start2.length > 1 || !isNumber(end) && end.length > 1) { return invalidRange(start2, end, options); } let format2 = options.transform || ((val) => String.fromCharCode(val)); - let a3 = `${start2}`.charCodeAt(0); + let a2 = `${start2}`.charCodeAt(0); let b = `${end}`.charCodeAt(0); - let descending2 = a3 > b; - let min = Math.min(a3, b); - let max = Math.max(a3, b); + let descending = a2 > b; + let min = Math.min(a2, b); + let max = Math.max(a2, b); if (options.toRegex && step === 1) { return toRange(min, max, false, options); } - let range2 = []; + let range = []; let index = 0; - while (descending2 ? a3 >= b : a3 <= b) { - range2.push(format2(a3, index)); - a3 = descending2 ? a3 - step : a3 + step; + while (descending ? a2 >= b : a2 <= b) { + range.push(format2(a2, index)); + a2 = descending ? a2 - step : a2 + step; index++; } if (options.toRegex === true) { - return toRegex(range2, null, { wrap: false, options }); + return toRegex(range, null, { wrap: false, options }); } - return range2; + return range; }; var fill = (start2, end, step, options = {}) => { if (end == null && isValidValue(start2)) { @@ -15118,7 +15467,7 @@ var require_compile = __commonJS({ "node_modules/braces/lib/compile.js"(exports2, module2) { "use strict"; var fill = require_fill_range(); - var utils = require_utils3(); + var utils = require_utils4(); var compile = (ast, options = {}) => { let walk = (node, parent = {}) => { let invalidBlock = utils.isInvalidBrace(parent); @@ -15146,9 +15495,9 @@ var require_compile = __commonJS({ } if (node.nodes && node.ranges > 0) { let args = utils.reduce(node.nodes); - let range2 = fill(...args, { ...options, wrap: false, toRegex: true }); - if (range2.length !== 0) { - return args.length > 1 && range2.length > 1 ? `(${range2})` : range2; + let range = fill(...args, { ...options, wrap: false, toRegex: true }); + if (range.length !== 0) { + return args.length > 1 && range.length > 1 ? `(${range})` : range; } } if (node.nodes) { @@ -15170,7 +15519,7 @@ var require_expand = __commonJS({ "use strict"; var fill = require_fill_range(); var stringify = require_stringify2(); - var utils = require_utils3(); + var utils = require_utils4(); var append = (queue = "", stash = "", enclose = false) => { let result = []; queue = [].concat(queue); @@ -15218,11 +15567,11 @@ var require_expand = __commonJS({ if (utils.exceedsLimit(...args, options.step, rangeLimit)) { throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit."); } - let range2 = fill(...args, options); - if (range2.length === 0) { - range2 = stringify(node, options); + let range = fill(...args, options); + if (range.length === 0) { + range = stringify(node, options); } - q2.push(append(q2.pop(), range2)); + q2.push(append(q2.pop(), range)); node.nodes = []; return; } @@ -15754,7 +16103,7 @@ var require_constants2 = __commonJS({ }); // node_modules/picomatch/lib/utils.js -var require_utils4 = __commonJS({ +var require_utils5 = __commonJS({ "node_modules/picomatch/lib/utils.js"(exports2) { "use strict"; var path = require("path"); @@ -15820,7 +16169,7 @@ var require_utils4 = __commonJS({ var require_scan = __commonJS({ "node_modules/picomatch/lib/scan.js"(exports2, module2) { "use strict"; - var utils = require_utils4(); + var utils = require_utils5(); var { CHAR_ASTERISK, CHAR_AT, @@ -16139,7 +16488,7 @@ var require_parse3 = __commonJS({ "node_modules/picomatch/lib/parse.js"(exports2, module2) { "use strict"; var constants2 = require_constants2(); - var utils = require_utils4(); + var utils = require_utils5(); var { MAX_LENGTH, POSIX_REGEX_SOURCE, @@ -16313,8 +16662,7 @@ var require_parse3 = __commonJS({ output = token.close = `)$))${extglobStar}`; } if (token.inner.includes("*") && (rest2 = remaining()) && /^\.[^\\/.]+$/.test(rest2)) { - const expression = parse(rest2, { ...options, fastpaths: false }).output; - output = token.close = `)${expression})${extglobStar})`; + output = token.close = `)${rest2})${extglobStar})`; } if (token.prev.type === "bos") { state.negatedExtglob = true; @@ -16536,17 +16884,17 @@ var require_parse3 = __commonJS({ let output = ")"; if (brace.dots === true) { const arr = tokens.slice(); - const range2 = []; + const range = []; for (let i = arr.length - 1; i >= 0; i--) { tokens.pop(); if (arr[i].type === "brace") { break; } if (arr[i].type !== "dots") { - range2.unshift(arr[i].value); + range.unshift(arr[i].value); } } - output = expandRange(range2, opts); + output = expandRange(range, opts); state.backtrack = true; } if (brace.comma !== true && brace.dots !== true) { @@ -16922,7 +17270,7 @@ var require_picomatch = __commonJS({ var path = require("path"); var scan = require_scan(); var parse = require_parse3(); - var utils = require_utils4(); + var utils = require_utils5(); var constants2 = require_constants2(); var isObject = (val) => val && typeof val === "object" && !Array.isArray(val); var picomatch = (glob, options, returnState = false) => { @@ -17074,7 +17422,7 @@ var require_micromatch = __commonJS({ var util = require("util"); var braces = require_braces(); var picomatch = require_picomatch2(); - var utils = require_utils4(); + var utils = require_utils5(); var isEmptyString = (val) => val === "" || val === "./"; var micromatch = (list, patterns, options) => { patterns = [].concat(patterns); @@ -17132,9 +17480,9 @@ var require_micromatch = __commonJS({ options.onResult(state); items.push(state.output); }; - let matches = new Set(micromatch(list, patterns, { ...options, onResult })); + let matches = micromatch(list, patterns, { ...options, onResult }); for (let item of items) { - if (!matches.has(item)) { + if (!matches.includes(item)) { result.add(item); } } @@ -19059,8 +19407,8 @@ var require_stringToPath = __commonJS({ if (string.charCodeAt(0) === 46) { result.push(""); } - string.replace(rePropName, function(match, number4, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, "$1") : number4 || match); + string.replace(rePropName, function(match, number3, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, "$1") : number3 || match); }); return result; }); @@ -19793,79 +20141,74 @@ var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) = var import_react2 = __toModule(require_react()); // node_modules/d3-array/src/ascending.js -function ascending(a3, b) { - return a3 == null || b == null ? NaN : a3 < b ? -1 : a3 > b ? 1 : a3 >= b ? 0 : NaN; -} - -// node_modules/d3-array/src/descending.js -function descending(a3, b) { - return a3 == null || b == null ? NaN : b < a3 ? -1 : b > a3 ? 1 : b >= a3 ? 0 : NaN; +function ascending_default(a2, b) { + return a2 == null || b == null ? NaN : a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; } // node_modules/d3-array/src/bisector.js -function bisector(f2) { - let compare1, compare2, delta; - if (f2.length !== 2) { - compare1 = ascending; - compare2 = (d2, x2) => ascending(f2(d2), x2); +function bisector_default(f2) { + let delta = f2; + let compare = f2; + if (f2.length === 1) { delta = (d2, x2) => f2(d2) - x2; - } else { - compare1 = f2 === ascending || f2 === descending ? f2 : zero; - compare2 = f2; - delta = f2; - } - function left(a3, x2, lo = 0, hi = a3.length) { - if (lo < hi) { - if (compare1(x2, x2) !== 0) - return hi; - do { - const mid = lo + hi >>> 1; - if (compare2(a3[mid], x2) < 0) - lo = mid + 1; - else - hi = mid; - } while (lo < hi); + compare = ascendingComparator(f2); + } + function left(a2, x2, lo, hi) { + if (lo == null) + lo = 0; + if (hi == null) + hi = a2.length; + while (lo < hi) { + const mid = lo + hi >>> 1; + if (compare(a2[mid], x2) < 0) + lo = mid + 1; + else + hi = mid; } return lo; } - function right(a3, x2, lo = 0, hi = a3.length) { - if (lo < hi) { - if (compare1(x2, x2) !== 0) - return hi; - do { - const mid = lo + hi >>> 1; - if (compare2(a3[mid], x2) <= 0) - lo = mid + 1; - else - hi = mid; - } while (lo < hi); + function right(a2, x2, lo, hi) { + if (lo == null) + lo = 0; + if (hi == null) + hi = a2.length; + while (lo < hi) { + const mid = lo + hi >>> 1; + if (compare(a2[mid], x2) > 0) + hi = mid; + else + lo = mid + 1; } return lo; } - function center(a3, x2, lo = 0, hi = a3.length) { - const i = left(a3, x2, lo, hi - 1); - return i > lo && delta(a3[i - 1], x2) > -delta(a3[i], x2) ? i - 1 : i; + function center(a2, x2, lo, hi) { + if (lo == null) + lo = 0; + if (hi == null) + hi = a2.length; + const i = left(a2, x2, lo, hi - 1); + return i > lo && delta(a2[i - 1], x2) > -delta(a2[i], x2) ? i - 1 : i; } return { left, center, right }; } -function zero() { - return 0; +function ascendingComparator(f2) { + return (d2, x2) => ascending_default(f2(d2), x2); } // node_modules/d3-array/src/number.js -function number(x2) { +function number_default(x2) { return x2 === null ? NaN : +x2; } // node_modules/d3-array/src/bisect.js -var ascendingBisect = bisector(ascending); +var ascendingBisect = bisector_default(ascending_default); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; -var bisectCenter = bisector(number).center; +var bisectCenter = bisector_default(number_default).center; var bisect_default = bisectRight; // node_modules/d3-array/src/extent.js -function extent(values, valueof) { +function extent_default(values, valueof) { let min; let max; if (valueof === void 0) { @@ -19905,8 +20248,8 @@ function extent(values, valueof) { var e10 = Math.sqrt(50); var e5 = Math.sqrt(10); var e2 = Math.sqrt(2); -function ticks(start2, stop, count2) { - var reverse, i = -1, n2, ticks2, step; +function ticks_default(start2, stop, count2) { + var reverse, i = -1, n2, ticks, step; stop = +stop, start2 = +start2, count2 = +count2; if (start2 === stop && count2 > 0) return [start2]; @@ -19920,9 +20263,9 @@ function ticks(start2, stop, count2) { ++r0; if (r1 * step > stop) --r1; - ticks2 = new Array(n2 = r1 - r0 + 1); + ticks = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks2[i] = (r0 + i) * step; + ticks[i] = (r0 + i) * step; } else { step = -step; let r0 = Math.round(start2 * step), r1 = Math.round(stop * step); @@ -19930,13 +20273,13 @@ function ticks(start2, stop, count2) { ++r0; if (r1 / step > stop) --r1; - ticks2 = new Array(n2 = r1 - r0 + 1); + ticks = new Array(n2 = r1 - r0 + 1); while (++i < n2) - ticks2[i] = (r0 + i) / step; + ticks[i] = (r0 + i) / step; } if (reverse) - ticks2.reverse(); - return ticks2; + ticks.reverse(); + return ticks; } function tickIncrement(start2, stop, count2) { var step = (stop - start2) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); @@ -19954,13 +20297,13 @@ function tickStep(start2, stop, count2) { } // node_modules/d3-array/src/range.js -function range(start2, stop, step) { +function range_default(start2, stop, step) { start2 = +start2, stop = +stop, step = (n2 = arguments.length) < 2 ? (stop = start2, start2 = 0, 1) : n2 < 3 ? 1 : +step; - var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range2 = new Array(n2); + var i = -1, n2 = Math.max(0, Math.ceil((stop - start2) / step)) | 0, range = new Array(n2); while (++i < n2) { - range2[i] = start2 + i * step; + range[i] = start2 + i * step; } - return range2; + return range; } // node_modules/d3-dispatch/src/dispatch.js @@ -20031,9 +20374,9 @@ Dispatch.prototype = dispatch.prototype = { } }; function get(type2, name) { - for (var i = 0, n2 = type2.length, c4; i < n2; ++i) { - if ((c4 = type2[i]).name === name) { - return c4.value; + for (var i = 0, n2 = type2.length, c3; i < n2; ++i) { + if ((c3 = type2[i]).name === name) { + return c3.value; } } } @@ -20376,9 +20719,9 @@ function order_default() { // node_modules/d3-selection/src/selection/sort.js function sort_default(compare) { if (!compare) - compare = ascending2; - function compareNode(a3, b) { - return a3 && b ? compare(a3.__data__, b.__data__) : !a3 - !b; + compare = ascending; + function compareNode(a2, b) { + return a2 && b ? compare(a2.__data__, b.__data__) : !a2 - !b; } for (var groups = this._groups, m4 = groups.length, sortgroups = new Array(m4), j3 = 0; j3 < m4; ++j3) { for (var group = groups[j3], n2 = group.length, sortgroup = sortgroups[j3] = new Array(n2), node, i = 0; i < n2; ++i) { @@ -20390,8 +20733,8 @@ function sort_default(compare) { } return new Selection(sortgroups, this._parents).order(); } -function ascending2(a3, b) { - return a3 < b ? -1 : a3 > b ? 1 : a3 >= b ? 0 : NaN; +function ascending(a2, b) { + return a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN; } // node_modules/d3-selection/src/selection/call.js @@ -20897,15 +21240,15 @@ function Color() { var darker = 0.7; var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*"; -var reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*"; -var reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*"; +var reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*"; +var reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*"; var reHex = /^#([0-9a-f]{3,8})$/; -var reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`); -var reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`); -var reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`); -var reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`); -var reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`); -var reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`); +var reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"); +var reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"); +var reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"); +var reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"); +var reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"); +var reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$"); var named = { aliceblue: 15792383, antiquewhite: 16444375, @@ -21057,15 +21400,14 @@ var named = { yellowgreen: 10145074 }; define_default(Color, color, { - copy(channels) { + copy: function(channels) { return Object.assign(new this.constructor(), this, channels); }, - displayable() { + displayable: function() { return this.rgb().displayable(); }, hex: color_formatHex, formatHex: color_formatHex, - formatHex8: color_formatHex8, formatHsl: color_formatHsl, formatRgb: color_formatRgb, toString: color_formatRgb @@ -21073,9 +21415,6 @@ define_default(Color, color, { function color_formatHex() { return this.rgb().formatHex(); } -function color_formatHex8() { - return this.rgb().formatHex8(); -} function color_formatHsl() { return hslConvert(this).formatHsl(); } @@ -21090,10 +21429,10 @@ function color(format2) { function rgbn(n2) { return new Rgb(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1); } -function rgba(r4, g2, b, a3) { - if (a3 <= 0) +function rgba(r4, g2, b, a2) { + if (a2 <= 0) r4 = g2 = b = NaN; - return new Rgb(r4, g2, b, a3); + return new Rgb(r4, g2, b, a2); } function rgbConvert(o) { if (!(o instanceof Color)) @@ -21113,57 +21452,45 @@ function Rgb(r4, g2, b, opacity) { this.opacity = +opacity; } define_default(Rgb, rgb, extend(Color, { - brighter(k) { + brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - darker(k) { + darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, - rgb() { + rgb: function() { return this; }, - clamp() { - return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity)); - }, - displayable() { + displayable: function() { return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1); }, hex: rgb_formatHex, formatHex: rgb_formatHex, - formatHex8: rgb_formatHex8, formatRgb: rgb_formatRgb, toString: rgb_formatRgb })); function rgb_formatHex() { - return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`; -} -function rgb_formatHex8() { - return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; + return "#" + hex(this.r) + hex(this.g) + hex(this.b); } function rgb_formatRgb() { - const a3 = clampa(this.opacity); - return `${a3 === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a3 === 1 ? ")" : `, ${a3})`}`; -} -function clampa(opacity) { - return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity)); -} -function clampi(value) { - return Math.max(0, Math.min(255, Math.round(value) || 0)); + var a2 = this.opacity; + a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); + return (a2 === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a2 === 1 ? ")" : ", " + a2 + ")"); } function hex(value) { - value = clampi(value); + value = Math.max(0, Math.min(255, Math.round(value) || 0)); return (value < 16 ? "0" : "") + value.toString(16); } -function hsla(h2, s, l2, a3) { - if (a3 <= 0) +function hsla(h2, s, l2, a2) { + if (a2 <= 0) h2 = s = l2 = NaN; else if (l2 <= 0 || l2 >= 1) h2 = s = NaN; else if (s <= 0) h2 = NaN; - return new Hsl(h2, s, l2, a3); + return new Hsl(h2, s, l2, a2); } function hslConvert(o) { if (o instanceof Hsl) @@ -21200,36 +21527,27 @@ function Hsl(h2, s, l2, opacity) { this.opacity = +opacity; } define_default(Hsl, hsl, extend(Color, { - brighter(k) { + brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - darker(k) { + darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, - rgb() { + rgb: function() { var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m23 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s, m1 = 2 * l2 - m23; return new Rgb(hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m23), hsl2rgb(h2, m1, m23), hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m23), this.opacity); }, - clamp() { - return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity)); - }, - displayable() { + displayable: function() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); }, - formatHsl() { - const a3 = clampa(this.opacity); - return `${a3 === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a3 === 1 ? ")" : `, ${a3})`}`; + formatHsl: function() { + var a2 = this.opacity; + a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2)); + return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")"); } })); -function clamph(value) { - value = (value || 0) % 360; - return value < 0 ? value + 360 : value; -} -function clampt(value) { - return Math.max(0, Math.min(1, value || 0)); -} function hsl2rgb(h2, m1, m23) { return (h2 < 60 ? m1 + (m23 - m1) * h2 / 60 : h2 < 180 ? m23 : h2 < 240 ? m1 + (m23 - m1) * (240 - h2) / 60 : m1) * 255; } @@ -21260,24 +21578,24 @@ function basisClosed_default(values) { var constant_default2 = (x2) => () => x2; // node_modules/d3-interpolate/src/color.js -function linear(a3, d2) { +function linear(a2, d2) { return function(t2) { - return a3 + t2 * d2; + return a2 + t2 * d2; }; } -function exponential(a3, b, y3) { - return a3 = Math.pow(a3, y3), b = Math.pow(b, y3) - a3, y3 = 1 / y3, function(t2) { - return Math.pow(a3 + t2 * b, y3); +function exponential(a2, b, y3) { + return a2 = Math.pow(a2, y3), b = Math.pow(b, y3) - a2, y3 = 1 / y3, function(t2) { + return Math.pow(a2 + t2 * b, y3); }; } function gamma(y3) { - return (y3 = +y3) === 1 ? nogamma : function(a3, b) { - return b - a3 ? exponential(a3, b, y3) : constant_default2(isNaN(a3) ? b : a3); + return (y3 = +y3) === 1 ? nogamma : function(a2, b) { + return b - a2 ? exponential(a2, b, y3) : constant_default2(isNaN(a2) ? b : a2); }; } -function nogamma(a3, b) { - var d2 = b - a3; - return d2 ? linear(a3, d2) : constant_default2(isNaN(a3) ? b : a3); +function nogamma(a2, b) { + var d2 = b - a2; + return d2 ? linear(a2, d2) : constant_default2(isNaN(a2) ? b : a2); } // node_modules/d3-interpolate/src/rgb.js @@ -21321,14 +21639,14 @@ var rgbBasis = rgbSpline(basis_default); var rgbBasisClosed = rgbSpline(basisClosed_default); // node_modules/d3-interpolate/src/numberArray.js -function numberArray_default(a3, b) { +function numberArray_default(a2, b) { if (!b) b = []; - var n2 = a3 ? Math.min(b.length, a3.length) : 0, c4 = b.slice(), i; + var n2 = a2 ? Math.min(b.length, a2.length) : 0, c3 = b.slice(), i; return function(t2) { for (i = 0; i < n2; ++i) - c4[i] = a3[i] * (1 - t2) + b[i] * t2; - return c4; + c3[i] = a2[i] * (1 - t2) + b[i] * t2; + return c3; }; } function isNumberArray(x2) { @@ -21336,59 +21654,59 @@ function isNumberArray(x2) { } // node_modules/d3-interpolate/src/array.js -function genericArray(a3, b) { - var nb = b ? b.length : 0, na = a3 ? Math.min(nb, a3.length) : 0, x2 = new Array(na), c4 = new Array(nb), i; +function genericArray(a2, b) { + var nb = b ? b.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x2 = new Array(na), c3 = new Array(nb), i; for (i = 0; i < na; ++i) - x2[i] = value_default(a3[i], b[i]); + x2[i] = value_default(a2[i], b[i]); for (; i < nb; ++i) - c4[i] = b[i]; + c3[i] = b[i]; return function(t2) { for (i = 0; i < na; ++i) - c4[i] = x2[i](t2); - return c4; + c3[i] = x2[i](t2); + return c3; }; } // node_modules/d3-interpolate/src/date.js -function date_default(a3, b) { +function date_default(a2, b) { var d2 = new Date(); - return a3 = +a3, b = +b, function(t2) { - return d2.setTime(a3 * (1 - t2) + b * t2), d2; + return a2 = +a2, b = +b, function(t2) { + return d2.setTime(a2 * (1 - t2) + b * t2), d2; }; } // node_modules/d3-interpolate/src/number.js -function number_default(a3, b) { - return a3 = +a3, b = +b, function(t2) { - return a3 * (1 - t2) + b * t2; +function number_default2(a2, b) { + return a2 = +a2, b = +b, function(t2) { + return a2 * (1 - t2) + b * t2; }; } // node_modules/d3-interpolate/src/object.js -function object_default(a3, b) { - var i = {}, c4 = {}, k; - if (a3 === null || typeof a3 !== "object") - a3 = {}; +function object_default(a2, b) { + var i = {}, c3 = {}, k; + if (a2 === null || typeof a2 !== "object") + a2 = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) { - if (k in a3) { - i[k] = value_default(a3[k], b[k]); + if (k in a2) { + i[k] = value_default(a2[k], b[k]); } else { - c4[k] = b[k]; + c3[k] = b[k]; } } return function(t2) { for (k in i) - c4[k] = i[k](t2); - return c4; + c3[k] = i[k](t2); + return c3; }; } // node_modules/d3-interpolate/src/string.js var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; var reB = new RegExp(reA.source, "g"); -function zero2(b) { +function zero(b) { return function() { return b; }; @@ -21398,10 +21716,10 @@ function one(b) { return b(t2) + ""; }; } -function string_default(a3, b) { +function string_default(a2, b) { var bi2 = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q2 = []; - a3 = a3 + "", b = b + ""; - while ((am = reA.exec(a3)) && (bm = reB.exec(b))) { + a2 = a2 + "", b = b + ""; + while ((am = reA.exec(a2)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi2) { bs = b.slice(bi2, bs); if (s[i]) @@ -21416,7 +21734,7 @@ function string_default(a3, b) { s[++i] = bm; } else { s[++i] = null; - q2.push({ i, x: number_default(am, bm) }); + q2.push({ i, x: number_default2(am, bm) }); } bi2 = reB.lastIndex; } @@ -21427,7 +21745,7 @@ function string_default(a3, b) { else s[++i] = bs; } - return s.length < 2 ? q2[0] ? one(q2[0].x) : zero2(b) : (b = q2.length, function(t2) { + return s.length < 2 ? q2[0] ? one(q2[0].x) : zero(b) : (b = q2.length, function(t2) { for (var i2 = 0, o; i2 < b; ++i2) s[(o = q2[i2]).i] = o.x(t2); return s.join(""); @@ -21435,15 +21753,15 @@ function string_default(a3, b) { } // node_modules/d3-interpolate/src/value.js -function value_default(a3, b) { - var t2 = typeof b, c4; - return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default : t2 === "string" ? (c4 = color(b)) ? (b = c4, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default)(a3, b); +function value_default(a2, b) { + var t2 = typeof b, c3; + return b == null || t2 === "boolean" ? constant_default2(b) : (t2 === "number" ? number_default2 : t2 === "string" ? (c3 = color(b)) ? (b = c3, rgb_default) : string_default : b instanceof color ? rgb_default : b instanceof Date ? date_default : isNumberArray(b) ? numberArray_default : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object_default : number_default2)(a2, b); } // node_modules/d3-interpolate/src/round.js -function round_default(a3, b) { - return a3 = +a3, b = +b, function(t2) { - return Math.round(a3 * (1 - t2) + b * t2); +function round_default(a2, b) { + return a2 = +a2, b = +b, function(t2) { + return Math.round(a2 * (1 - t2) + b * t2); }; } @@ -21457,20 +21775,20 @@ var identity = { scaleX: 1, scaleY: 1 }; -function decompose_default(a3, b, c4, d2, e3, f2) { +function decompose_default(a2, b, c3, d2, e3, f2) { var scaleX, scaleY, skewX; - if (scaleX = Math.sqrt(a3 * a3 + b * b)) - a3 /= scaleX, b /= scaleX; - if (skewX = a3 * c4 + b * d2) - c4 -= a3 * skewX, d2 -= b * skewX; - if (scaleY = Math.sqrt(c4 * c4 + d2 * d2)) - c4 /= scaleY, d2 /= scaleY, skewX /= scaleY; - if (a3 * d2 < b * c4) - a3 = -a3, b = -b, skewX = -skewX, scaleX = -scaleX; + if (scaleX = Math.sqrt(a2 * a2 + b * b)) + a2 /= scaleX, b /= scaleX; + if (skewX = a2 * c3 + b * d2) + c3 -= a2 * skewX, d2 -= b * skewX; + if (scaleY = Math.sqrt(c3 * c3 + d2 * d2)) + c3 /= scaleY, d2 /= scaleY, skewX /= scaleY; + if (a2 * d2 < b * c3) + a2 = -a2, b = -b, skewX = -skewX, scaleX = -scaleX; return { translateX: e3, translateY: f2, - rotate: Math.atan2(b, a3) * degrees, + rotate: Math.atan2(b, a2) * degrees, skewX: Math.atan(skewX) * degrees, scaleX, scaleY @@ -21503,25 +21821,25 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function translate(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); - q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); + q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } } - function rotate(a3, b, s, q2) { - if (a3 !== b) { - if (a3 - b > 180) + function rotate(a2, b, s, q2) { + if (a2 !== b) { + if (a2 - b > 180) b += 360; - else if (b - a3 > 180) - a3 += 360; - q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default(a3, b) }); + else if (b - a2 > 180) + a2 += 360; + q2.push({ i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number_default2(a2, b) }); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } - function skewX(a3, b, s, q2) { - if (a3 !== b) { - q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default(a3, b) }); + function skewX(a2, b, s, q2) { + if (a2 !== b) { + q2.push({ i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number_default2(a2, b) }); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } @@ -21529,19 +21847,19 @@ function interpolateTransform(parse, pxComma, pxParen, degParen) { function scale(xa, ya, xb, yb, s, q2) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); - q2.push({ i: i - 4, x: number_default(xa, xb) }, { i: i - 2, x: number_default(ya, yb) }); + q2.push({ i: i - 4, x: number_default2(xa, xb) }, { i: i - 2, x: number_default2(ya, yb) }); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } - return function(a3, b) { + return function(a2, b) { var s = [], q2 = []; - a3 = parse(a3), b = parse(b); - translate(a3.translateX, a3.translateY, b.translateX, b.translateY, s, q2); - rotate(a3.rotate, b.rotate, s, q2); - skewX(a3.skewX, b.skewX, s, q2); - scale(a3.scaleX, a3.scaleY, b.scaleX, b.scaleY, s, q2); - a3 = b = null; + a2 = parse(a2), b = parse(b); + translate(a2.translateX, a2.translateY, b.translateX, b.translateY, s, q2); + rotate(a2.rotate, b.rotate, s, q2); + skewX(a2.skewX, b.skewX, s, q2); + scale(a2.scaleX, a2.scaleY, b.scaleX, b.scaleY, s, q2); + a2 = b = null; return function(t2) { var i = -1, n2 = q2.length, o; while (++i < n2) @@ -21889,9 +22207,9 @@ function tweenValue(transition2, name, value) { } // node_modules/d3-transition/src/transition/interpolate.js -function interpolate_default(a3, b) { - var c4; - return (typeof b === "number" ? number_default : b instanceof color ? rgb_default : (c4 = color(b)) ? (b = c4, rgb_default) : string_default)(a3, b); +function interpolate_default(a2, b) { + var c3; + return (typeof b === "number" ? number_default2 : b instanceof color ? rgb_default : (c3 = color(b)) ? (b = c3, rgb_default) : string_default)(a2, b); } // node_modules/d3-transition/src/transition/attr.js @@ -22569,7 +22887,7 @@ function data_default2() { } // node_modules/d3-quadtree/src/extent.js -function extent_default(_10) { +function extent_default2(_10) { return arguments.length ? this.cover(+_10[0][0], +_10[0][1]).cover(+_10[1][0], +_10[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]]; } @@ -22790,7 +23108,7 @@ treeProto.add = add_default; treeProto.addAll = addAll; treeProto.cover = cover_default; treeProto.data = data_default2; -treeProto.extent = extent_default; +treeProto.extent = extent_default2; treeProto.find = find_default; treeProto.remove = remove_default3; treeProto.removeAll = removeAll; @@ -23234,18 +23552,18 @@ function locale_default(locale3) { var group = locale3.grouping === void 0 || locale3.thousands === void 0 ? identity_default : formatGroup_default(map.call(locale3.grouping, Number), locale3.thousands + ""), currencyPrefix = locale3.currency === void 0 ? "" : locale3.currency[0] + "", currencySuffix = locale3.currency === void 0 ? "" : locale3.currency[1] + "", decimal = locale3.decimal === void 0 ? "." : locale3.decimal + "", numerals = locale3.numerals === void 0 ? identity_default : formatNumerals_default(map.call(locale3.numerals, String)), percent = locale3.percent === void 0 ? "%" : locale3.percent + "", minus = locale3.minus === void 0 ? "\u2212" : locale3.minus + "", nan = locale3.nan === void 0 ? "NaN" : locale3.nan + ""; function newFormat(specifier) { specifier = formatSpecifier(specifier); - var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero3 = specifier.zero, width2 = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type2 = specifier.type; + var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero2 = specifier.zero, width2 = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type2 = specifier.type; if (type2 === "n") comma = true, type2 = "g"; else if (!formatTypes_default[type2]) precision === void 0 && (precision = 12), trim = true, type2 = "g"; - if (zero3 || fill === "0" && align === "=") - zero3 = true, fill = "0", align = "="; + if (zero2 || fill === "0" && align === "=") + zero2 = true, fill = "0", align = "="; var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type2) ? "0" + type2.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type2) ? percent : ""; var formatType = formatTypes_default[type2], maybeSuffix = /[defgprs%]/.test(type2); precision = precision === void 0 ? 6 : /[gprs]/.test(type2) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)); function format2(value) { - var valuePrefix = prefix, valueSuffix = suffix, i, n2, c4; + var valuePrefix = prefix, valueSuffix = suffix, i, n2, c3; if (type2 === "c") { valueSuffix = formatType(value) + valueSuffix; value = ""; @@ -23262,18 +23580,18 @@ function locale_default(locale3) { if (maybeSuffix) { i = -1, n2 = value.length; while (++i < n2) { - if (c4 = value.charCodeAt(i), 48 > c4 || c4 > 57) { - valueSuffix = (c4 === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; + if (c3 = value.charCodeAt(i), 48 > c3 || c3 > 57) { + valueSuffix = (c3 === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; value = value.slice(0, i); break; } } } } - if (comma && !zero3) + if (comma && !zero2) value = group(value, Infinity); var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width2 ? new Array(width2 - length + 1).join(fill) : ""; - if (comma && zero3) + if (comma && zero2) value = group(padding + value, padding.length ? width2 - valueSuffix.length : Infinity), padding = ""; switch (align) { case "<": @@ -23437,18 +23755,18 @@ function path_default(end) { } return nodes; } -function leastCommonAncestor(a3, b) { - if (a3 === b) - return a3; - var aNodes = a3.ancestors(), bNodes = b.ancestors(), c4 = null; - a3 = aNodes.pop(); +function leastCommonAncestor(a2, b) { + if (a2 === b) + return a2; + var aNodes = a2.ancestors(), bNodes = b.ancestors(), c3 = null; + a2 = aNodes.pop(); b = bNodes.pop(); - while (a3 === b) { - c4 = a3; - a3 = aNodes.pop(); + while (a2 === b) { + c3 = a2; + a2 = aNodes.pop(); b = bNodes.pop(); } - return c4; + return c3; } // node_modules/d3-hierarchy/src/hierarchy/ancestors.js @@ -23568,43 +23886,14 @@ Node.prototype = hierarchy.prototype = { [Symbol.iterator]: iterator_default2 }; -// node_modules/d3-hierarchy/src/accessors.js -function optional(f2) { - return f2 == null ? null : required(f2); -} -function required(f2) { - if (typeof f2 !== "function") - throw new Error(); - return f2; -} - -// node_modules/d3-hierarchy/src/constant.js -function constantZero() { - return 0; -} -function constant_default5(x2) { - return function() { - return x2; - }; -} - -// node_modules/d3-hierarchy/src/lcg.js -var a2 = 1664525; -var c2 = 1013904223; -var m2 = 4294967296; -function lcg_default2() { - let s = 1; - return () => (s = (a2 * s + c2) % m2) / m2; -} - // node_modules/d3-hierarchy/src/array.js function array_default(x2) { return typeof x2 === "object" && "length" in x2 ? x2 : Array.from(x2); } -function shuffle(array2, random) { - let m4 = array2.length, t2, i; +function shuffle(array2) { + var m4 = array2.length, t2, i; while (m4) { - i = random() * m4-- | 0; + i = Math.random() * m4-- | 0; t2 = array2[m4]; array2[m4] = array2[i]; array2[i] = t2; @@ -23613,8 +23902,8 @@ function shuffle(array2, random) { } // node_modules/d3-hierarchy/src/pack/enclose.js -function packEncloseRandom(circles, random) { - var i = 0, n2 = (circles = shuffle(Array.from(circles), random)).length, B = [], p2, e3; +function enclose_default(circles) { + var i = 0, n2 = (circles = shuffle(Array.from(circles))).length, B = [], p2, e3; while (i < n2) { p2 = circles[i]; if (e3 && enclosesWeak(e3, p2)) @@ -23642,17 +23931,17 @@ function extendBasis(B, p2) { } throw new Error(); } -function enclosesNot(a3, b) { - var dr = a3.r - b.r, dx = b.x - a3.x, dy = b.y - a3.y; +function enclosesNot(a2, b) { + var dr = a2.r - b.r, dx = b.x - a2.x, dy = b.y - a2.y; return dr < 0 || dr * dr < dx * dx + dy * dy; } -function enclosesWeak(a3, b) { - var dr = a3.r - b.r + Math.max(a3.r, b.r, 1) * 1e-9, dx = b.x - a3.x, dy = b.y - a3.y; +function enclosesWeak(a2, b) { + var dr = a2.r - b.r + Math.max(a2.r, b.r, 1) * 1e-9, dx = b.x - a2.x, dy = b.y - a2.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } -function enclosesWeakAll(a3, B) { +function enclosesWeakAll(a2, B) { for (var i = 0; i < B.length; ++i) { - if (!enclosesWeak(a3, B[i])) { + if (!enclosesWeak(a2, B[i])) { return false; } } @@ -23668,23 +23957,23 @@ function encloseBasis(B) { return encloseBasis3(B[0], B[1], B[2]); } } -function encloseBasis1(a3) { +function encloseBasis1(a2) { return { - x: a3.x, - y: a3.y, - r: a3.r + x: a2.x, + y: a2.y, + r: a2.r }; } -function encloseBasis2(a3, b) { - var x1 = a3.x, y1 = a3.y, r1 = a3.r, x2 = b.x, y22 = b.y, r22 = b.r, x21 = x2 - x1, y21 = y22 - y1, r21 = r22 - r1, l2 = Math.sqrt(x21 * x21 + y21 * y21); +function encloseBasis2(a2, b) { + var x1 = a2.x, y1 = a2.y, r1 = a2.r, x2 = b.x, y22 = b.y, r22 = b.r, x21 = x2 - x1, y21 = y22 - y1, r21 = r22 - r1, l2 = Math.sqrt(x21 * x21 + y21 * y21); return { x: (x1 + x2 + x21 / l2 * r21) / 2, y: (y1 + y22 + y21 / l2 * r21) / 2, r: (l2 + r1 + r22) / 2 }; } -function encloseBasis3(a3, b, c4) { - var x1 = a3.x, y1 = a3.y, r1 = a3.r, x2 = b.x, y22 = b.y, r22 = b.r, x3 = c4.x, y3 = c4.y, r32 = c4.r, a22 = x1 - x2, a32 = x1 - x3, b2 = y1 - y22, b3 = y1 - y3, c22 = r22 - r1, c32 = r32 - r1, d1 = x1 * x1 + y1 * y1 - r1 * r1, d2 = d1 - x2 * x2 - y22 * y22 + r22 * r22, d3 = d1 - x3 * x3 - y3 * y3 + r32 * r32, ab = a32 * b2 - a22 * b3, xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1, xb = (b3 * c22 - b2 * c32) / ab, ya = (a32 * d2 - a22 * d3) / (ab * 2) - y1, yb = (a22 * c32 - a32 * c22) / ab, A = xb * xb + yb * yb - 1, B = 2 * (r1 + xa * xb + ya * yb), C = xa * xa + ya * ya - r1 * r1, r4 = -(Math.abs(A) > 1e-6 ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B); +function encloseBasis3(a2, b, c3) { + var x1 = a2.x, y1 = a2.y, r1 = a2.r, x2 = b.x, y22 = b.y, r22 = b.r, x3 = c3.x, y3 = c3.y, r32 = c3.r, a22 = x1 - x2, a3 = x1 - x3, b2 = y1 - y22, b3 = y1 - y3, c22 = r22 - r1, c32 = r32 - r1, d1 = x1 * x1 + y1 * y1 - r1 * r1, d2 = d1 - x2 * x2 - y22 * y22 + r22 * r22, d3 = d1 - x3 * x3 - y3 * y3 + r32 * r32, ab = a3 * b2 - a22 * b3, xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1, xb = (b3 * c22 - b2 * c32) / ab, ya = (a3 * d2 - a22 * d3) / (ab * 2) - y1, yb = (a22 * c32 - a3 * c22) / ab, A = xb * xb + yb * yb - 1, B = 2 * (r1 + xa * xb + ya * yb), C = xa * xa + ya * ya - r1 * r1, r4 = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B); return { x: x1 + xa + xb * r4, y: y1 + ya + yb * r4, @@ -23693,33 +23982,33 @@ function encloseBasis3(a3, b, c4) { } // node_modules/d3-hierarchy/src/pack/siblings.js -function place(b, a3, c4) { - var dx = b.x - a3.x, x2, a22, dy = b.y - a3.y, y3, b2, d2 = dx * dx + dy * dy; +function place(b, a2, c3) { + var dx = b.x - a2.x, x2, a22, dy = b.y - a2.y, y3, b2, d2 = dx * dx + dy * dy; if (d2) { - a22 = a3.r + c4.r, a22 *= a22; - b2 = b.r + c4.r, b2 *= b2; + a22 = a2.r + c3.r, a22 *= a22; + b2 = b.r + c3.r, b2 *= b2; if (a22 > b2) { x2 = (d2 + b2 - a22) / (2 * d2); y3 = Math.sqrt(Math.max(0, b2 / d2 - x2 * x2)); - c4.x = b.x - x2 * dx - y3 * dy; - c4.y = b.y - x2 * dy + y3 * dx; + c3.x = b.x - x2 * dx - y3 * dy; + c3.y = b.y - x2 * dy + y3 * dx; } else { x2 = (d2 + a22 - b2) / (2 * d2); y3 = Math.sqrt(Math.max(0, a22 / d2 - x2 * x2)); - c4.x = a3.x + x2 * dx - y3 * dy; - c4.y = a3.y + x2 * dy + y3 * dx; + c3.x = a2.x + x2 * dx - y3 * dy; + c3.y = a2.y + x2 * dy + y3 * dx; } } else { - c4.x = a3.x + c4.r; - c4.y = a3.y; + c3.x = a2.x + c3.r; + c3.y = a2.y; } } -function intersects(a3, b) { - var dr = a3.r + b.r - 1e-6, dx = b.x - a3.x, dy = b.y - a3.y; +function intersects(a2, b) { + var dr = a2.r + b.r - 1e-6, dx = b.x - a2.x, dy = b.y - a2.y; return dr > 0 && dr * dr > dx * dx + dy * dy; } function score(node) { - var a3 = node._, b = node.next._, ab = a3.r + b.r, dx = (a3.x * b.r + b.x * a3.r) / ab, dy = (a3.y * b.r + b.y * a3.r) / ab; + var a2 = node._, b = node.next._, ab = a2.r + b.r, dx = (a2.x * b.r + b.x * a2.r) / ab, dy = (a2.y * b.r + b.y * a2.r) / ab; return dx * dx + dy * dy; } function Node2(circle) { @@ -23727,56 +24016,76 @@ function Node2(circle) { this.next = null; this.previous = null; } -function packSiblingsRandom(circles, random) { +function packEnclose(circles) { if (!(n2 = (circles = array_default(circles)).length)) return 0; - var a3, b, c4, n2, aa, ca, i, j3, k, sj2, sk; - a3 = circles[0], a3.x = 0, a3.y = 0; + var a2, b, c3, n2, aa, ca, i, j3, k, sj2, sk; + a2 = circles[0], a2.x = 0, a2.y = 0; if (!(n2 > 1)) - return a3.r; - b = circles[1], a3.x = -b.r, b.x = a3.r, b.y = 0; + return a2.r; + b = circles[1], a2.x = -b.r, b.x = a2.r, b.y = 0; if (!(n2 > 2)) - return a3.r + b.r; - place(b, a3, c4 = circles[2]); - a3 = new Node2(a3), b = new Node2(b), c4 = new Node2(c4); - a3.next = c4.previous = b; - b.next = a3.previous = c4; - c4.next = b.previous = a3; + return a2.r + b.r; + place(b, a2, c3 = circles[2]); + a2 = new Node2(a2), b = new Node2(b), c3 = new Node2(c3); + a2.next = c3.previous = b; + b.next = a2.previous = c3; + c3.next = b.previous = a2; pack: for (i = 3; i < n2; ++i) { - place(a3._, b._, c4 = circles[i]), c4 = new Node2(c4); - j3 = b.next, k = a3.previous, sj2 = b._.r, sk = a3._.r; + place(a2._, b._, c3 = circles[i]), c3 = new Node2(c3); + j3 = b.next, k = a2.previous, sj2 = b._.r, sk = a2._.r; do { if (sj2 <= sk) { - if (intersects(j3._, c4._)) { - b = j3, a3.next = b, b.previous = a3, --i; + if (intersects(j3._, c3._)) { + b = j3, a2.next = b, b.previous = a2, --i; continue pack; } sj2 += j3._.r, j3 = j3.next; } else { - if (intersects(k._, c4._)) { - a3 = k, a3.next = b, b.previous = a3, --i; + if (intersects(k._, c3._)) { + a2 = k, a2.next = b, b.previous = a2, --i; continue pack; } sk += k._.r, k = k.previous; } } while (j3 !== k.next); - c4.previous = a3, c4.next = b, a3.next = b.previous = b = c4; - aa = score(a3); - while ((c4 = c4.next) !== b) { - if ((ca = score(c4)) < aa) { - a3 = c4, aa = ca; + c3.previous = a2, c3.next = b, a2.next = b.previous = b = c3; + aa = score(a2); + while ((c3 = c3.next) !== b) { + if ((ca = score(c3)) < aa) { + a2 = c3, aa = ca; } } - b = a3.next; + b = a2.next; } - a3 = [b._], c4 = b; - while ((c4 = c4.next) !== b) - a3.push(c4._); - c4 = packEncloseRandom(a3, random); + a2 = [b._], c3 = b; + while ((c3 = c3.next) !== b) + a2.push(c3._); + c3 = enclose_default(a2); for (i = 0; i < n2; ++i) - a3 = circles[i], a3.x -= c4.x, a3.y -= c4.y; - return c4.r; + a2 = circles[i], a2.x -= c3.x, a2.y -= c3.y; + return c3.r; +} + +// node_modules/d3-hierarchy/src/accessors.js +function optional(f2) { + return f2 == null ? null : required(f2); +} +function required(f2) { + if (typeof f2 !== "function") + throw new Error(); + return f2; +} + +// node_modules/d3-hierarchy/src/constant.js +function constantZero() { + return 0; +} +function constant_default5(x2) { + return function() { + return x2; + }; } // node_modules/d3-hierarchy/src/pack/index.js @@ -23786,12 +24095,11 @@ function defaultRadius(d2) { function pack_default() { var radius = null, dx = 1, dy = 1, padding = constantZero; function pack(root2) { - const random = lcg_default2(); root2.x = dx / 2, root2.y = dy / 2; if (radius) { - root2.eachBefore(radiusLeaf(radius)).eachAfter(packChildrenRandom(padding, 0.5, random)).eachBefore(translateChild(1)); + root2.eachBefore(radiusLeaf(radius)).eachAfter(packChildren(padding, 0.5)).eachBefore(translateChild(1)); } else { - root2.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildrenRandom(constantZero, 1, random)).eachAfter(packChildrenRandom(padding, root2.r / Math.min(dx, dy), random)).eachBefore(translateChild(Math.min(dx, dy) / (2 * root2.r))); + root2.eachBefore(radiusLeaf(defaultRadius)).eachAfter(packChildren(constantZero, 1)).eachAfter(packChildren(padding, root2.r / Math.min(dx, dy))).eachBefore(translateChild(Math.min(dx, dy) / (2 * root2.r))); } return root2; } @@ -23813,14 +24121,14 @@ function radiusLeaf(radius) { } }; } -function packChildrenRandom(padding, k, random) { +function packChildren(padding, k) { return function(node) { if (children2 = node.children) { var children2, i, n2 = children2.length, r4 = padding(node) * k || 0, e3; if (r4) for (i = 0; i < n2; ++i) children2[i].r += r4; - e3 = packSiblingsRandom(children2, random); + e3 = packEnclose(children2); if (r4) for (i = 0; i < n2; ++i) children2[i].r -= r4; @@ -23840,7 +24148,7 @@ function translateChild(k) { } // node_modules/d3-scale/src/init.js -function initRange(domain, range2) { +function initRange(domain, range) { switch (arguments.length) { case 0: break; @@ -23848,7 +24156,7 @@ function initRange(domain, range2) { this.range(domain); break; default: - this.range(range2).domain(domain); + this.range(range).domain(domain); break; } return this; @@ -23862,7 +24170,7 @@ function constants(x2) { } // node_modules/d3-scale/src/number.js -function number3(x2) { +function number(x2) { return +x2; } @@ -23871,21 +24179,21 @@ var unit = [0, 1]; function identity2(x2) { return x2; } -function normalize(a3, b) { - return (b -= a3 = +a3) ? function(x2) { - return (x2 - a3) / b; +function normalize(a2, b) { + return (b -= a2 = +a2) ? function(x2) { + return (x2 - a2) / b; } : constants(isNaN(b) ? NaN : 0.5); } -function clamper(a3, b) { +function clamper(a2, b) { var t2; - if (a3 > b) - t2 = a3, a3 = b, b = t2; + if (a2 > b) + t2 = a2, a2 = b, b = t2; return function(x2) { - return Math.max(a3, Math.min(b, x2)); + return Math.max(a2, Math.min(b, x2)); }; } -function bimap(domain, range2, interpolate) { - var d0 = domain[0], d1 = domain[1], r0 = range2[0], r1 = range2[1]; +function bimap(domain, range, interpolate) { + var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0); else @@ -23894,15 +24202,15 @@ function bimap(domain, range2, interpolate) { return r0(d0(x2)); }; } -function polymap(domain, range2, interpolate) { - var j3 = Math.min(domain.length, range2.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; +function polymap(domain, range, interpolate) { + var j3 = Math.min(domain.length, range.length) - 1, d2 = new Array(j3), r4 = new Array(j3), i = -1; if (domain[j3] < domain[0]) { domain = domain.slice().reverse(); - range2 = range2.slice().reverse(); + range = range.slice().reverse(); } while (++i < j3) { d2[i] = normalize(domain[i], domain[i + 1]); - r4[i] = interpolate(range2[i], range2[i + 1]); + r4[i] = interpolate(range[i], range[i + 1]); } return function(x2) { var i2 = bisect_default(domain, x2, 1, j3) - 1; @@ -23913,9 +24221,9 @@ function copy(source, target) { return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown()); } function transformer() { - var domain = unit, range2 = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; + var domain = unit, range = unit, interpolate = value_default, transform2, untransform, unknown, clamp = identity2, piecewise, output, input; function rescale() { - var n2 = Math.min(domain.length, range2.length); + var n2 = Math.min(domain.length, range.length); if (clamp !== identity2) clamp = clamper(domain[0], domain[n2 - 1]); piecewise = n2 > 2 ? polymap : bimap; @@ -23923,19 +24231,19 @@ function transformer() { return scale; } function scale(x2) { - return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range2, interpolate)))(transform2(clamp(x2))); + return x2 == null || isNaN(x2 = +x2) ? unknown : (output || (output = piecewise(domain.map(transform2), range, interpolate)))(transform2(clamp(x2))); } scale.invert = function(y3) { - return clamp(untransform((input || (input = piecewise(range2, domain.map(transform2), number_default)))(y3))); + return clamp(untransform((input || (input = piecewise(range, domain.map(transform2), number_default2)))(y3))); }; scale.domain = function(_10) { - return arguments.length ? (domain = Array.from(_10, number3), rescale()) : domain.slice(); + return arguments.length ? (domain = Array.from(_10, number), rescale()) : domain.slice(); }; scale.range = function(_10) { - return arguments.length ? (range2 = Array.from(_10), rescale()) : range2.slice(); + return arguments.length ? (range = Array.from(_10), rescale()) : range.slice(); }; scale.rangeRound = function(_10) { - return range2 = Array.from(_10), interpolate = round_default, rescale(); + return range = Array.from(_10), interpolate = round_default, rescale(); }; scale.clamp = function(_10) { return arguments.length ? (clamp = _10 ? true : identity2, rescale()) : clamp !== identity2; @@ -23990,7 +24298,7 @@ function linearish(scale) { var domain = scale.domain; scale.ticks = function(count2) { var d2 = domain(); - return ticks(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); + return ticks_default(d2[0], d2[d2.length - 1], count2 == null ? 10 : count2); }; scale.tickFormat = function(count2, specifier) { var d2 = domain(); @@ -24096,15 +24404,15 @@ function newInterval(floori, offseti, count2, field) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval2.range = function(start2, stop, step) { - var range2 = [], previous; + var range = [], previous; start2 = interval2.ceil(start2); step = step == null ? 1 : Math.floor(step); if (!(start2 < stop) || !(step > 0)) - return range2; + return range; do - range2.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); + range.push(previous = new Date(+start2)), offseti(start2, step), floori(start2); while (previous < start2 && start2 < stop); - return range2; + return range; }; interval2.filter = function(test) { return newInterval(function(date) { @@ -24402,19 +24710,19 @@ function formatLocale(locale3) { utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats2) { return function(date) { - var string = [], i = -1, j3 = 0, n2 = specifier.length, c4, pad2, format2; + var string = [], i = -1, j3 = 0, n2 = specifier.length, c3, pad2, format2; if (!(date instanceof Date)) date = new Date(+date); while (++i < n2) { if (specifier.charCodeAt(i) === 37) { string.push(specifier.slice(j3, i)); - if ((pad2 = pads[c4 = specifier.charAt(++i)]) != null) - c4 = specifier.charAt(++i); + if ((pad2 = pads[c3 = specifier.charAt(++i)]) != null) + c3 = specifier.charAt(++i); else - pad2 = c4 === "e" ? " " : "0"; - if (format2 = formats2[c4]) - c4 = format2(date, pad2); - string.push(c4); + pad2 = c3 === "e" ? " " : "0"; + if (format2 = formats2[c3]) + c3 = format2(date, pad2); + string.push(c3); j3 = i + 1; } } @@ -24473,17 +24781,17 @@ function formatLocale(locale3) { }; } function parseSpecifier(d2, specifier, string, j3) { - var i = 0, n2 = specifier.length, m4 = string.length, c4, parse; + var i = 0, n2 = specifier.length, m4 = string.length, c3, parse; while (i < n2) { if (j3 >= m4) return -1; - c4 = specifier.charCodeAt(i++); - if (c4 === 37) { - c4 = specifier.charAt(i++); - parse = parses[c4 in pads ? specifier.charAt(i++) : c4]; + c3 = specifier.charCodeAt(i++); + if (c3 === 37) { + c3 = specifier.charAt(i++); + parse = parses[c3 in pads ? specifier.charAt(i++) : c3]; if (!parse || (j3 = parse(d2, string, j3)) < 0) return -1; - } else if (c4 != string.charCodeAt(j3++)) { + } else if (c3 != string.charCodeAt(j3++)) { return -1; } } @@ -24986,7 +25294,7 @@ var bsv = "#12223c"; var boo = "#d4bec1"; var bpl = "#c80fa0"; var brs = "#662D91"; -var c3 = "#555555"; +var c2 = "#555555"; var cats = "#555555"; var h = "#438eff"; var idc = "#555555"; @@ -25371,7 +25679,7 @@ var less = "#1d365d"; var lex = "#DBCA00"; var ly = "#9ccc7c"; var ily = "#9ccc7c"; -var m3 = "#438eff"; +var m2 = "#438eff"; var liquid = "#67b8de"; var lagda = "#315665"; var litcoffee = "#244776"; @@ -25436,7 +25744,7 @@ var mirah = "#c7a938"; var mo = "#de1d31"; var i3 = "#223388"; var ig = "#223388"; -var m32 = "#223388"; +var m3 = "#223388"; var mg = "#223388"; var moon = "#ff4585"; var x68 = "#005daa"; @@ -26038,7 +26346,7 @@ var language_colors_default = { boo, bpl, brs, - c: c3, + c: c2, cats, h, idc, @@ -26423,7 +26731,7 @@ var language_colors_default = { lex, ly, ily, - m: m3, + m: m2, liquid, lagda, litcoffee, @@ -26488,7 +26796,7 @@ var language_colors_default = { mo, i3, ig, - m3: m32, + m3, mg, moon, x68, @@ -27100,8 +27408,8 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus return d2.children ? (0, import_flatten.default)(d2.children.map(flattenTree)) : d2; }; const items = flattenTree(data); - const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a3, b) => b - a3).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a3, b) => b - a3).slice(2, -2); - const colorExtent2 = extent(flatTree); + const flatTree = colorEncoding === "last-change" ? items.map(lastCommitAccessor).sort((a2, b) => b - a2).slice(0, -8) : items.map(numberOfCommitsAccessor).sort((a2, b) => b - a2).slice(2, -2); + const colorExtent2 = extent_default(flatTree); const colors = [ "#f4f4f4", "#f4f4f4", @@ -27109,7 +27417,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus colorEncoding === "last-change" ? "#C7ECEE" : "#FEEAA7", colorEncoding === "number-of-changes" ? "#3C40C6" : "#823471" ]; - const colorScale2 = linear2().domain(range(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); + const colorScale2 = linear2().domain(range_default(0, colors.length).map((i) => +colorExtent2[0] + (colorExtent2[1] - colorExtent2[0]) * i / (colors.length - 1))).range(colors).clamp(true); return { colorScale: colorScale2, colorExtent: colorExtent2 }; }, [data]); const getColor = (d2) => { @@ -27117,7 +27425,7 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus if (colorEncoding === "type") { const isParent = d2.children; if (isParent) { - const extensions = (0, import_countBy.default)(d2.children, (c4) => c4.extension); + const extensions = (0, import_countBy.default)(d2.children, (c3) => c3.extension); const mainExtension = (_a = (0, import_maxBy.default)((0, import_entries.default)(extensions), ([k, v2]) => v2)) == null ? void 0 : _a[0]; return fileColors[mainExtension] || "#CED6E0"; } @@ -27131,10 +27439,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus const packedData = (0, import_react2.useMemo)(() => { if (!data) return []; - const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current, 0, fileColors)).sum((d2) => d2.value).sort((a3, b) => { + const hierarchicalData = hierarchy(processChild(data, getColor, cachedOrders.current, 0, fileColors)).sum((d2) => d2.value).sort((a2, b) => { if (b.data.path.startsWith("src/fonts")) { } - return b.data.sortOrder - a3.data.sortOrder || (b.data.name > a3.data.name ? 1 : -1); + return b.data.sortOrder - a2.data.sortOrder || (b.data.name > a2.data.name ? 1 : -1); }); let packedTree = pack_default().size([width, height * 1.3]).padding((d2) => { if (d2.depth <= 0) @@ -27330,10 +27638,10 @@ var Tree = ({ data, filesChanged = [], maxDepth = 9, colorEncoding = "type", cus })); }; var formatD = (d2) => typeof d2 === "number" ? d2 : timeFormat("%b %Y")(d2); -var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { +var ColorLegend = ({ scale, extent, colorEncoding }) => { if (!scale || !scale.ticks) return null; - const ticks2 = scale.ticks(10); + const ticks = scale.ticks(10); return /* @__PURE__ */ import_react2.default.createElement("g", { transform: `translate(${width - 160}, ${height - 90})` }, /* @__PURE__ */ import_react2.default.createElement("text", { @@ -27343,10 +27651,10 @@ var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { textAnchor: "middle" }, colorEncoding === "number-of-changes" ? "Number of changes" : "Last change date"), /* @__PURE__ */ import_react2.default.createElement("linearGradient", { id: "gradient" - }, ticks2.map((tick, i) => { + }, ticks.map((tick, i) => { const color2 = scale(tick); return /* @__PURE__ */ import_react2.default.createElement("stop", { - offset: i / (ticks2.length - 1), + offset: i / (ticks.length - 1), stopColor: color2, key: i }); @@ -27355,7 +27663,7 @@ var ColorLegend = ({ scale, extent: extent2, colorEncoding }) => { width: "100", height: "13", fill: "url(#gradient)" - }), extent2.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { + }), extent.map((d2, i) => /* @__PURE__ */ import_react2.default.createElement("text", { key: i, x: i ? 100 : 0, y: "23", @@ -27392,7 +27700,7 @@ var processChild = (child, getColor, cachedOrders, i = 0, fileColors) => { const isRoot = !child.path; let name = child.name; let path = child.path; - let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c4, i2) => processChild(c4, getColor, cachedOrders, i2, fileColors)); + let children2 = (_a = child == null ? void 0 : child.children) == null ? void 0 : _a.map((c3, i2) => processChild(c3, getColor, cachedOrders, i2, fileColors)); if ((children2 == null ? void 0 : children2.length) === 1) { name = `${name}/${children2[0].name}`; path = children2[0].path; @@ -27480,7 +27788,7 @@ var reflowSiblings = (siblings, cachedPositions = {}, maxDepth, parentRadius, pa newD.x += xDiff; newD.y += yDiff; if (newD.children) { - newD.children = newD.children.map((c4) => repositionChildren(c4, xDiff, yDiff)); + newD.children = newD.children.map((c3) => repositionChildren(c3, xDiff, yDiff)); } return newD; }; diff --git a/yarn.lock b/yarn.lock index 2342d56..93ec306 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13,16 +13,19 @@ tmp "^0.1.0" tmp-promise "^2.0.2" +"@actions/core@^1.10.0": + version "1.10.0" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.0.tgz#44551c3c71163949a2f06e94d9ca2157a0cfac4f" + integrity sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug== + dependencies: + "@actions/http-client" "^2.0.1" + uuid "^8.3.2" + "@actions/core@^1.2.6": version "1.5.0" resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.5.0.tgz#885b864700001a1b9a6fba247833a036e75ad9d3" integrity sha512-eDOLH1Nq9zh+PJlYLqEMkS/jLQxhksPNmUGNBHfa4G+tQmnIhzpctxmchETtVGyBOvXgOVVpYuE40+eS4cUnwQ== -"@actions/core@^1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.4.0.tgz#cf2e6ee317e314b03886adfeb20e448d50d6e524" - integrity sha512-CGx2ilGq5i7zSLgiiGUtBCxhRRxibJYU6Fim0Q1Wg2aQL2LTnF27zbqZOrxfvFQ55eSBW0L8uVStgtKMpa0Qlg== - "@actions/exec@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@actions/exec/-/exec-1.1.0.tgz#53441d968e56d2fec69ad3f15773d4d94e01162c" @@ -37,6 +40,13 @@ dependencies: tunnel "0.0.6" +"@actions/http-client@^2.0.1": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.1.0.tgz#b6d8c3934727d6a50d10d19f00a711a964599a9f" + integrity sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw== + dependencies: + tunnel "^0.0.6" + "@actions/io@^1.0.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.1.tgz#4a157406309e212ab27ed3ae30e8c1d641686a66" @@ -2775,7 +2785,7 @@ ts-jest@^27.0.4: semver "7.x" yargs-parser "20.x" -tunnel@0.0.6: +tunnel@0.0.6, tunnel@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== @@ -2814,6 +2824,11 @@ universalify@^0.1.2: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +uuid@^8.3.2: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + v8-to-istanbul@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.0.0.tgz#4229f2a99e367f3f018fa1d5c2b8ec684667c69c"