From 6514d56699de387f23b10f8558ef08dd5a75167f Mon Sep 17 00:00:00 2001 From: Jenkins Date: Mon, 16 Oct 2023 14:04:19 +0000 Subject: [PATCH] Update website to 1e58c7a7c06d87c694f4ab94f3df671d6298b19c --- .../babel-preset-graylog/.gitignore | 2 + .../babel-preset-graylog/.yarn-metadata.json | 37 ++++ .../babel-preset-graylog/index.js | 49 +++++ .../babel-preset-graylog/package.json | 18 ++ .../eslint-config-graylog/.yarn-metadata.json | 50 +++++ .../eslint-config-graylog/index.js | 185 ++++++++++++++++++ .../eslint-config-graylog/package.json | 34 ++++ .../eslint-plugin-graylog/.yarn-metadata.json | 25 +++ .../eslint-plugin-graylog/lib/index.js | 29 +++ .../lib/rules/prefer-hook.js | 47 +++++ .../eslint-plugin-graylog/package.json | 9 + .../node_modules/graylog-web-plugin/.babelrc | 4 + .../graylog-web-plugin/.gitignore | 3 + .../graylog-web-plugin/.travis.yml | 7 + .../graylog-web-plugin/.yarn-metadata.json | 78 ++++++++ .../node_modules/graylog-web-plugin/README.md | 62 ++++++ .../node_modules/graylog-web-plugin/index.js | 21 ++ .../graylog-web-plugin/package.json | 60 ++++++ .../node_modules/graylog-web-plugin/plugin.js | 19 ++ .../graylog-web-plugin/src/PluginManifest.js | 33 ++++ .../graylog-web-plugin/src/PluginStore.jsx | 51 +++++ .../src/PluginWebpackConfig.js | 74 +++++++ .../graylog-web-plugin/src/loadBuildConfig.js | 39 ++++ .../templates/module.json.template | 3 + .../node_modules/jest-preset-graylog/.babelrc | 7 + .../jest-preset-graylog/.gitignore | 2 + .../jest-preset-graylog/.yarn-metadata.json | 49 +++++ .../jest-preset-graylog/jest-preset.js | 64 ++++++ .../lib/mocking/fileMock.js | 17 ++ .../lib/mocking/useable-css-proxy.js | 43 ++++ .../lib/mocking/useable-css-proxy.test.js | 30 +++ .../console-warnings-fail-tests.js | 47 +++++ .../console-warnings-fail-tests.test.js | 71 +++++++ .../lib/setup-files/mock-FetchProvider.js | 50 +++++ .../setup-files/mock-IntersectionObserver.js | 23 +++ .../lib/setup-files/mock-Version.js | 24 +++ .../mock-crypto-getrandomvalues.js | 23 +++ .../lib/setup-files/mock-moment-timezone.js | 26 +++ .../lib/setup-files/mock-styled-components.js | 20 ++ .../jest-preset-graylog/lib/timeouts.js | 26 +++ .../jest-preset-graylog/package.json | 33 ++++ .../.yarn-metadata.json | 39 ++++ .../stylelint-config-graylog/index.js | 49 +++++ .../stylelint-config-graylog/package.json | 23 +++ ...{bundle.afd4d4cf.js => bundle.3c956470.js} | 14 +- ...NSE.txt => bundle.3c956470.js.LICENSE.txt} | 0 index.html | 2 +- 47 files changed, 1613 insertions(+), 8 deletions(-) create mode 100644 .yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.gitignore create mode 100644 .yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.yarn-metadata.json create mode 100644 .yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/index.js create mode 100644 .yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/package.json create mode 100644 .yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/.yarn-metadata.json create mode 100644 .yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/index.js create mode 100644 .yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/package.json create mode 100644 .yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/.yarn-metadata.json create mode 100644 .yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/index.js create mode 100644 .yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/rules/prefer-hook.js create mode 100644 .yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/package.json create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.babelrc create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.gitignore create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.travis.yml create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.yarn-metadata.json create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/README.md create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/index.js create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/package.json create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/plugin.js create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginManifest.js create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginStore.jsx create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginWebpackConfig.js create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/loadBuildConfig.js create mode 100644 .yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/templates/module.json.template create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.babelrc create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.gitignore create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.yarn-metadata.json create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/jest-preset.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/fileMock.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.test.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.test.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-FetchProvider.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-IntersectionObserver.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-Version.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-crypto-getrandomvalues.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-moment-timezone.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-styled-components.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/timeouts.js create mode 100644 .yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/package.json create mode 100644 .yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/.yarn-metadata.json create mode 100644 .yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/index.js create mode 100644 .yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/package.json rename build/{bundle.afd4d4cf.js => bundle.3c956470.js} (82%) rename build/{bundle.afd4d4cf.js.LICENSE.txt => bundle.3c956470.js.LICENSE.txt} (100%) diff --git a/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.gitignore b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.gitignore new file mode 100644 index 0000000000..239ecff137 --- /dev/null +++ b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.gitignore @@ -0,0 +1,2 @@ +node_modules +yarn.lock diff --git a/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.yarn-metadata.json b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.yarn-metadata.json new file mode 100644 index 0000000000..a4808b12b2 --- /dev/null +++ b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/.yarn-metadata.json @@ -0,0 +1,37 @@ +{ + "manifest": { + "name": "babel-preset-graylog", + "version": "1.0.0", + "description": "Babel preset for the Graylog project", + "main": "index.js", + "repository": { + "type": "git", + "url": "https://github.com/Graylog2/graylog2-server" + }, + "author": { + "name": "Graylog, Inc.", + "email": "hello@graylog.com" + }, + "license": "SSPL-1.0", + "dependencies": { + "@babel/core": "^7.18.2", + "@babel/plugin-syntax-dynamic-import": "7.8.3", + "@babel/plugin-transform-runtime": "7.23.2", + "@babel/preset-env": "7.23.2", + "@babel/preset-react": "7.22.15", + "@babel/preset-typescript": "7.23.2", + "babel-plugin-styled-components": "^2.0.7" + }, + "_registry": "npm", + "_loc": "/home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/package.json" + }, + "artifacts": [], + "remote": { + "type": "copy", + "registry": "npm", + "hash": "86bb7dfc-301a-482f-9919-b8504015a262-1697464781076", + "reference": "/tmp/server-63Qi/graylog2-web-interface/packages/babel-preset-graylog" + }, + "registry": "npm", + "hash": "86bb7dfc-301a-482f-9919-b8504015a262-1697464781076" +} \ No newline at end of file diff --git a/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/index.js b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/index.js new file mode 100644 index 0000000000..a176345a2d --- /dev/null +++ b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/index.js @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +/* eslint-disable global-require */ +module.exports = (api) => { + const isEnvTest = api.env('test'); + + return isEnvTest + ? { + presets: [ + require('@babel/preset-env'), + require('@babel/preset-react'), + require('@babel/preset-typescript')], + plugins: [ + require('@babel/plugin-syntax-dynamic-import'), + require('babel-plugin-styled-components'), + require('@babel/plugin-transform-runtime'), + ], + } + : { + presets: [ + [require('@babel/preset-env'), { + modules: false, + useBuiltIns: 'entry', + corejs: '3.9', + shippedProposals: true, + }], + require('@babel/preset-react'), + require('@babel/preset-typescript'), + ], + plugins: [ + require('@babel/plugin-syntax-dynamic-import'), + require('babel-plugin-styled-components'), + ], + }; +}; diff --git a/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/package.json b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/package.json new file mode 100644 index 0000000000..50c02ae0a5 --- /dev/null +++ b/.yarn/v6/npm-babel-preset-graylog-1.0.0-86bb7dfc-301a-482f-9919-b8504015a262-1697464781076/node_modules/babel-preset-graylog/package.json @@ -0,0 +1,18 @@ +{ + "name": "babel-preset-graylog", + "version": "1.0.0", + "description": "Babel preset for the Graylog project", + "main": "index.js", + "repository": "https://github.com/Graylog2/graylog2-server", + "author": "Graylog, Inc. ", + "license": "SSPL-1.0", + "dependencies": { + "@babel/core": "^7.18.2", + "@babel/plugin-syntax-dynamic-import": "7.8.3", + "@babel/plugin-transform-runtime": "7.23.2", + "@babel/preset-env": "7.23.2", + "@babel/preset-react": "7.22.15", + "@babel/preset-typescript": "7.23.2", + "babel-plugin-styled-components": "^2.0.7" + } +} diff --git a/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/.yarn-metadata.json b/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/.yarn-metadata.json new file mode 100644 index 0000000000..628a621ec2 --- /dev/null +++ b/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/.yarn-metadata.json @@ -0,0 +1,50 @@ +{ + "manifest": { + "name": "eslint-config-graylog", + "version": "1.3.0", + "description": "Graylog ESLint config for web interface plugin authors", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "graylog", + "eslint" + ], + "author": { + "name": "Graylog, Inc.", + "email": "hello@graylog.com" + }, + "license": "SSPL-1.0", + "dependencies": { + "@babel/eslint-parser": "7.16.5", + "@tanstack/eslint-plugin-query": "4.36.1", + "@typescript-eslint/eslint-plugin": "6.7.5", + "@typescript-eslint/parser": "6.7.5", + "eslint": "8.51.0", + "eslint-config-airbnb": "19.0.4", + "eslint-import-resolver-webpack": "0.13.7", + "eslint-plugin-compat": "4.2.0", + "eslint-plugin-graylog": "file:../../../home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-plugin-graylog", + "eslint-plugin-import": "2.25.3", + "eslint-plugin-jest": "27.4.2", + "eslint-plugin-jest-dom": "5.1.0", + "eslint-plugin-jest-formatting": "3.1.0", + "eslint-plugin-jsx-a11y": "6.7.1", + "eslint-plugin-react": "7.33.2", + "eslint-plugin-react-hooks": "4.6.0", + "eslint-plugin-testing-library": "6.1.0" + }, + "_registry": "npm", + "_loc": "/home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/package.json" + }, + "artifacts": [], + "remote": { + "type": "copy", + "registry": "npm", + "hash": "cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102", + "reference": "/tmp/server-63Qi/graylog2-web-interface/packages/eslint-config-graylog" + }, + "registry": "npm", + "hash": "cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102" +} \ No newline at end of file diff --git a/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/index.js b/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/index.js new file mode 100644 index 0000000000..5bc24370bb --- /dev/null +++ b/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/index.js @@ -0,0 +1,185 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const noUnusedVarsOptions = { argsIgnorePattern: '^_' }; + +module.exports = { + parser: '@babel/eslint-parser', + env: { + browser: true, + jest: true, + }, + overrides: [ + { + files: ['*.ts', '*.tsx'], + parser: '@typescript-eslint/parser', + plugins: [ + '@typescript-eslint/eslint-plugin', + '@tanstack/query', + ], + rules: { + 'no-undef': 'off', + 'no-use-before-define': 'off', + '@typescript-eslint/no-use-before-define': ['error'], + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': ['error', noUnusedVarsOptions], + 'no-redeclare': 'off', + '@typescript-eslint/no-redeclare': ['error'], + 'no-shadow': 'off', + '@typescript-eslint/no-shadow': ['error'], + '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }], + }, + }, + { + files: ['*.js', '*.jsx'], + }, + { + files: [ + '*.test.js', '*.test.jsx', '*.test.ts', '*.test.tsx', + '*.it.js', '*.it.jsx', '*.it.ts', '*.it.tsx', + ], + plugins: [ + 'jest', + 'testing-library', + ], + extends: [ + 'plugin:jest/recommended', + 'plugin:testing-library/react', + 'plugin:@tanstack/eslint-plugin-query/recommended', + ], + rules: { + 'jest/expect-expect': ['error', { assertFunctionNames: ['expect*', '(screen.)?find(All)?By*'] }], + 'react/jsx-no-constructed-context-values': 'off', + 'testing-library/await-async-events': 'off', + 'testing-library/no-debugging-utils': 'warn', + 'testing-library/prefer-screen-queries': 'off', + 'testing-library/render-result-naming-convention': 'off', + }, + }, + ], + extends: [ + 'eslint:recommended', + 'airbnb', + 'plugin:compat/recommended', + 'plugin:import/errors', + 'plugin:import/warnings', + 'plugin:import/react', + 'plugin:jest-formatting/strict', + 'plugin:graylog/recommended', + ], + plugins: [ + 'import', + 'react-hooks', + 'jest-formatting', + 'graylog', + ], + rules: { + 'arrow-body-style': ['error', 'as-needed'], + camelcase: 'off', + 'function-paren-newline': 'off', + 'import/extensions': 'off', + 'import/no-extraneous-dependencies': 'off', + 'import/no-unresolved': 'off', + 'import/order': ['error', { + groups: ['builtin', 'external', 'internal', ['sibling', 'index'], 'parent'], + 'newlines-between': 'always', + }], + 'sort-imports': 'off', // disabled in favor of 'import/order' + 'jsx-a11y/label-has-associated-control': ['error', { assert: 'either' }], + 'max-classes-per-file': 'off', + 'max-len': 'off', + 'new-cap': 'off', + 'no-else-return': 'warn', + 'no-unused-vars': ['error', noUnusedVarsOptions], + 'no-nested-ternary': 'warn', + 'no-restricted-imports': ['error', { + paths: [{ + name: 'react-bootstrap', + message: 'Please use `components/bootstrap` instead.', + }, { + name: 'create-react-class', + message: 'Please use an ES6 or functional component instead.', + }, { + name: 'jest-each', + message: 'Please use `it.each` instead.', + }, { + name: 'lodash', + message: 'Please use `lodash/` instead for reduced bundle sizes.', + }], + }], + 'no-underscore-dangle': 'off', + 'object-curly-newline': ['error', { multiline: true, consistent: true }], + 'object-shorthand': ['error', 'methods'], + 'react/destructuring-assignment': 'off', + 'react/forbid-prop-types': 'off', + 'react/function-component-definition': 'off', + 'react/jsx-closing-bracket-location': ['warn', 'after-props'], + 'react/jsx-curly-spacing': ['warn', { when: 'never', children: true }], + 'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }], + 'react/jsx-first-prop-new-line': ['warn', 'never'], + 'react/jsx-indent-props': ['error', 'first'], + 'react/jsx-one-expression-per-line': 'off', + 'react/jsx-props-no-spreading': 'off', + 'react/prefer-es6-class': 'off', + 'react/prefer-stateless-function': 'warn', + 'react/static-property-placement': 'off', + + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'error', + + 'padding-line-between-statements': [ + 'error', + { + blankLine: 'any', + prev: ['let', 'const'], + next: ['let', 'const'], + }, + { + blankLine: 'any', + prev: 'expression', + next: 'expression', + }, + { + blankLine: 'any', + prev: 'export', + next: 'export', + }, + { + blankLine: 'always', + prev: ['block', 'multiline-block-like', 'cjs-export', 'class', 'multiline-expression'], + next: '*', + }, + { + blankLine: 'always', + prev: '*', + next: ['block', 'multiline-block-like', 'class', 'multiline-expression', 'return'], + }, + ], + }, + settings: { + 'import/resolver': { + webpack: { + config: './webpack.config.js', + }, + }, + 'import/internal-regex': '^(actions|components|contexts|domainActions|fixtures|helpers|hooks|logic|routing|stores|util|theme|views)/', + polyfills: [ + 'fetch', + 'IntersectionObserver', + 'Promise', + ], + }, +}; diff --git a/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/package.json b/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/package.json new file mode 100644 index 0000000000..d229e68db4 --- /dev/null +++ b/.yarn/v6/npm-eslint-config-graylog-1.3.0-cedb40e3-27a7-4d18-8f20-8799b73ad1f3-1697464781102/node_modules/eslint-config-graylog/package.json @@ -0,0 +1,34 @@ +{ + "name": "eslint-config-graylog", + "version": "1.3.0", + "description": "Graylog ESLint config for web interface plugin authors", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "graylog", + "eslint" + ], + "author": "Graylog, Inc. ", + "license": "SSPL-1.0", + "dependencies": { + "@babel/eslint-parser": "7.16.5", + "@tanstack/eslint-plugin-query": "4.36.1", + "@typescript-eslint/eslint-plugin": "6.7.5", + "@typescript-eslint/parser": "6.7.5", + "eslint": "8.51.0", + "eslint-config-airbnb": "19.0.4", + "eslint-import-resolver-webpack": "0.13.7", + "eslint-plugin-compat": "4.2.0", + "eslint-plugin-graylog": "file:../eslint-plugin-graylog", + "eslint-plugin-import": "2.25.3", + "eslint-plugin-jest": "27.4.2", + "eslint-plugin-jest-dom": "5.1.0", + "eslint-plugin-jest-formatting": "3.1.0", + "eslint-plugin-jsx-a11y": "6.7.1", + "eslint-plugin-react": "7.33.2", + "eslint-plugin-react-hooks": "4.6.0", + "eslint-plugin-testing-library": "6.1.0" + } +} diff --git a/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/.yarn-metadata.json b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/.yarn-metadata.json new file mode 100644 index 0000000000..0f9466efa1 --- /dev/null +++ b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/.yarn-metadata.json @@ -0,0 +1,25 @@ +{ + "manifest": { + "name": "eslint-plugin-graylog", + "version": "1.0.0", + "description": "Collection of custom ESLint rules.", + "main": "./lib/index.js", + "exports": "./lib/index.js", + "author": { + "name": "Graylog, Inc.", + "email": "hello@graylog.com" + }, + "license": "SSPL-1.0", + "_registry": "npm", + "_loc": "/home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/package.json" + }, + "artifacts": [], + "remote": { + "type": "copy", + "registry": "npm", + "hash": "42d6cb22-6676-423a-8541-408e43d8b002-1697464781236", + "reference": "/tmp/server-63Qi/graylog2-web-interface/packages/eslint-plugin-graylog" + }, + "registry": "npm", + "hash": "42d6cb22-6676-423a-8541-408e43d8b002-1697464781236" +} \ No newline at end of file diff --git a/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/index.js b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/index.js new file mode 100644 index 0000000000..57e9964e5d --- /dev/null +++ b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/index.js @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +/* eslint-disable global-require */ +module.exports = { + rules: { + 'prefer-hook': require('./rules/prefer-hook'), + }, + configs: { + recommended: { + rules: { + 'graylog/prefer-hook': 'warn', + }, + }, + }, +}; diff --git a/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/rules/prefer-hook.js b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/rules/prefer-hook.js new file mode 100644 index 0000000000..58e78f5ed8 --- /dev/null +++ b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/lib/rules/prefer-hook.js @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +/* eslint-disable global-require */ + +const hooks = [ + { + name: 'useUserDateTime', + relatedContext: 'UserDateTimeContext', + }, + { + name: 'useCurrentUser', + relatedContext: 'CurrentUserContext', + }, +]; + +module.exports = (context) => ({ + CallExpression: (node) => { + const { callee } = node; + + hooks.forEach(({ name: hookName, relatedContext }) => { + if (relatedContext) { + if (callee.name === 'useContext' + && callee?.parent?.arguments?.[0].name === relatedContext + && !context.getFilename().includes(hookName) + ) { + context.report(node, `Implement ${hookName} hook instead of consuming ${relatedContext}.`); + } + } + }); + }, +}); + +module.schema = []; diff --git a/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/package.json b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/package.json new file mode 100644 index 0000000000..9734c2a024 --- /dev/null +++ b/.yarn/v6/npm-eslint-plugin-graylog-1.0.0-42d6cb22-6676-423a-8541-408e43d8b002-1697464781236/node_modules/eslint-plugin-graylog/package.json @@ -0,0 +1,9 @@ +{ + "name": "eslint-plugin-graylog", + "version": "1.0.0", + "description": "Collection of custom ESLint rules.", + "main": "./lib/index.js", + "exports": "./lib/index.js", + "author": "Graylog, Inc. ", + "license": "SSPL-1.0" +} diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.babelrc b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.babelrc new file mode 100644 index 0000000000..ca8274fb0f --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.babelrc @@ -0,0 +1,4 @@ +{ + "presets": ["@babel/env"], + "plugins": ["add-module-exports"] +} diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.gitignore b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.gitignore new file mode 100644 index 0000000000..29d6828b4e --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.gitignore @@ -0,0 +1,3 @@ +node_modules +npm-debug.log + diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.travis.yml b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.travis.yml new file mode 100644 index 0000000000..bf02e6b489 --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - "6" + - "6.1" + - "5.11" + - "iojs" + diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.yarn-metadata.json b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.yarn-metadata.json new file mode 100644 index 0000000000..355162e121 --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/.yarn-metadata.json @@ -0,0 +1,78 @@ +{ + "manifest": { + "name": "graylog-web-plugin", + "version": "5.2.0-SNAPSHOT", + "description": "Helper code for streamlining Graylog web interface plugin development", + "main": "index.js", + "repository": { + "type": "git", + "url": "git+https://github.com/Graylog2/graylog-web-plugin.git" + }, + "keywords": [ + "graylog", + "web", + "plugin" + ], + "author": { + "name": "Graylog, Inc.", + "email": "hello@graylog.com" + }, + "license": "SSPL-1.0", + "bugs": { + "url": "https://github.com/Graylog2/graylog-web-plugin/issues" + }, + "homepage": "https://github.com/Graylog2/graylog-web-plugin#readme", + "files": [ + "src/", + "templates/", + "index.js", + "plugin.js", + "README.md" + ], + "eslintConfig": { + "extends": "graylog" + }, + "dependencies": { + "@graylog/sawmill": "2.0.7", + "@tanstack/react-query": "4.36.1", + "@types/create-react-class": "15.6.4", + "@types/jquery": "3.5.22", + "@types/react": "18.2.20", + "babel-preset-graylog": "file:../../../home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/babel-preset-graylog", + "create-react-class": "15.7.0", + "eslint-config-graylog": "file:../../../home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/eslint-config-graylog", + "formik": "2.4.5", + "history": "^5.3.0", + "html-webpack-plugin": "^5.5.0", + "jest-preset-graylog": "file:../../../home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/jest-preset-graylog", + "jquery": "3.7.1", + "moment": "2.29.4", + "moment-timezone": "0.5.43", + "prop-types": "15.8.1", + "react": "16.14.0", + "react-dom": "16.14.0", + "react-router-bootstrap": "0.26.2", + "react-router-dom": "6.16.0", + "reflux": "0.2.13", + "styled-components": "6.0.9", + "typescript": "5.2.2", + "use-query-params": "^2.2.0", + "webpack": "5.89.0", + "webpack-cli": "5.1.4", + "webpack-merge": "4.2.2" + }, + "_registry": "npm", + "_loc": "/home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/package.json", + "readmeFilename": "README.md", + "readme": "Graylog Web Plugin Archetype\n============================\n\nThis module is supposed to help with developing web interface plugins for [Graylog](http://www.graylog.org). It provides classes which help generating a webpack configuration, defining the plugin manifest (metadata as well as entities which are provided to the web interface) as well as the `PluginStore` class which is used for registering plugins to make them accessible for the web interface.\n\nThis module is supposed to be used in conjunction with the maven archetype which can be found [here](https://github.com/Graylog2/graylog-plugin-archetype) and requires a checkout of the [Graylog server repository](https://github.com/Graylog2/graylog2-server) in some place.\n\n## Installation\n\n`npm install --save graylog-web-plugin`\n\n## Usage\n\n```\n$ npm init\n[...]\n$ npm --save-dev graylog-web-plugin\n```\n\nCreate a file named `build.config.js` in your plugin directory, looking like this:\n\n```\nmodule.exports = {\n web_src_path: '',\n};\n```\n\nand use a webpack.config.js like this: \n\n```\nconst PluginWebpackConfig = require('graylog-web-plugin').PluginWebpackConfig;\nconst loadBuildConfig = require('graylog-web-plugin').loadBuildConfig;\nconst path = require('path');\nconst buildConfig = loadBuildConfig(path.resolve(__dirname, './build.config'));\n\nmodule.exports = new PluginWebpackConfig('my.fully.qualified.plugin.classname', buildConfig, {\n // Here goes your additional webpack configuration.\n});\n```\n\nThe third (optional) parameter for the `PluginWebpackConfig` constructor is an object which is merged into the generated webpack config, so you can add/overwrite any part of the generated configuration.\n\n## Contributing\n\nFeel free to contribute to this collection of helpers by forking the repository and submitting a pull request. Thanks!\n\n## Release a new version\n\n $ npm version [ | major | minor | patch]\n $ git push origin master && git push --tags\n $ npm publish\n\n## Release History\n* 0.0.21 Add optimizations for production builds.\n* 0.0.20 Add plugin fqdn as prefix of built `module.json`.\n* 0.0.19 Add webpack config to compile typescript code in plugins.\n* 0.0.18 Removing now unneeded shared bundle.\n* 0.0.17 Bugfix, using absolute filename for build config.\n* 0.0.16 Adding build config file including option specifying location of Graylog server repo checkout.\n* 0.0.15 Bugfix, add missing import\n* 0.0.14 Add shared and vendor bundle to generated webpack config\n* 0.0.13 First actually usable version\n" + }, + "artifacts": [], + "remote": { + "type": "copy", + "registry": "npm", + "hash": "ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987", + "reference": "/tmp/server-63Qi/graylog2-web-interface/packages/graylog-web-plugin" + }, + "registry": "npm", + "hash": "ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987" +} \ No newline at end of file diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/README.md b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/README.md new file mode 100644 index 0000000000..2d9f3c9d4e --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/README.md @@ -0,0 +1,62 @@ +Graylog Web Plugin Archetype +============================ + +This module is supposed to help with developing web interface plugins for [Graylog](http://www.graylog.org). It provides classes which help generating a webpack configuration, defining the plugin manifest (metadata as well as entities which are provided to the web interface) as well as the `PluginStore` class which is used for registering plugins to make them accessible for the web interface. + +This module is supposed to be used in conjunction with the maven archetype which can be found [here](https://github.com/Graylog2/graylog-plugin-archetype) and requires a checkout of the [Graylog server repository](https://github.com/Graylog2/graylog2-server) in some place. + +## Installation + +`npm install --save graylog-web-plugin` + +## Usage + +``` +$ npm init +[...] +$ npm --save-dev graylog-web-plugin +``` + +Create a file named `build.config.js` in your plugin directory, looking like this: + +``` +module.exports = { + web_src_path: '', +}; +``` + +and use a webpack.config.js like this: + +``` +const PluginWebpackConfig = require('graylog-web-plugin').PluginWebpackConfig; +const loadBuildConfig = require('graylog-web-plugin').loadBuildConfig; +const path = require('path'); +const buildConfig = loadBuildConfig(path.resolve(__dirname, './build.config')); + +module.exports = new PluginWebpackConfig('my.fully.qualified.plugin.classname', buildConfig, { + // Here goes your additional webpack configuration. +}); +``` + +The third (optional) parameter for the `PluginWebpackConfig` constructor is an object which is merged into the generated webpack config, so you can add/overwrite any part of the generated configuration. + +## Contributing + +Feel free to contribute to this collection of helpers by forking the repository and submitting a pull request. Thanks! + +## Release a new version + + $ npm version [ | major | minor | patch] + $ git push origin master && git push --tags + $ npm publish + +## Release History +* 0.0.21 Add optimizations for production builds. +* 0.0.20 Add plugin fqdn as prefix of built `module.json`. +* 0.0.19 Add webpack config to compile typescript code in plugins. +* 0.0.18 Removing now unneeded shared bundle. +* 0.0.17 Bugfix, using absolute filename for build config. +* 0.0.16 Adding build config file including option specifying location of Graylog server repo checkout. +* 0.0.15 Bugfix, add missing import +* 0.0.14 Add shared and vendor bundle to generated webpack config +* 0.0.13 First actually usable version diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/index.js b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/index.js new file mode 100644 index 0000000000..9beef522eb --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/index.js @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +/* eslint-disable global-require */ +module.exports = { + PluginWebpackConfig: require('./src/PluginWebpackConfig'), + loadBuildConfig: require('./src/loadBuildConfig'), +}; diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/package.json b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/package.json new file mode 100644 index 0000000000..e8330f56e2 --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/package.json @@ -0,0 +1,60 @@ +{ + "name": "graylog-web-plugin", + "version": "5.2.0-SNAPSHOT", + "description": "Helper code for streamlining Graylog web interface plugin development", + "main": "index.js", + "repository": { + "type": "git", + "url": "git+https://github.com/Graylog2/graylog-web-plugin.git" + }, + "keywords": [ + "graylog", + "web", + "plugin" + ], + "author": "Graylog, Inc. ", + "license": "SSPL-1.0", + "bugs": { + "url": "https://github.com/Graylog2/graylog-web-plugin/issues" + }, + "homepage": "https://github.com/Graylog2/graylog-web-plugin#readme", + "files": [ + "src/", + "templates/", + "index.js", + "plugin.js", + "README.md" + ], + "eslintConfig": { + "extends": "graylog" + }, + "dependencies": { + "@graylog/sawmill": "2.0.7", + "@tanstack/react-query": "4.36.1", + "@types/create-react-class": "15.6.4", + "@types/jquery": "3.5.22", + "@types/react": "18.2.20", + "babel-preset-graylog": "file:../babel-preset-graylog", + "create-react-class": "15.7.0", + "eslint-config-graylog": "file:../eslint-config-graylog", + "formik": "2.4.5", + "history": "^5.3.0", + "html-webpack-plugin": "^5.5.0", + "jest-preset-graylog": "file:../jest-preset-graylog", + "jquery": "3.7.1", + "moment": "2.29.4", + "moment-timezone": "0.5.43", + "prop-types": "15.8.1", + "react": "16.14.0", + "react-dom": "16.14.0", + "react-router-bootstrap": "0.26.2", + "react-router-dom": "6.16.0", + "reflux": "0.2.13", + "styled-components": "6.0.9", + "typescript": "5.2.2", + "use-query-params": "^2.2.0", + "webpack": "5.89.0", + "webpack-cli": "5.1.4", + "webpack-merge": "4.2.2" + } +} diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/plugin.js b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/plugin.js new file mode 100644 index 0000000000..e3c4354a73 --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/plugin.js @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ + +export { default as PluginManifest } from './src/PluginManifest'; +export { default as PluginStore } from './src/PluginStore'; diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginManifest.js b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginManifest.js new file mode 100644 index 0000000000..dd052e1a1e --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginManifest.js @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ + +class PluginManifest { + constructor(metadata, exports) { + this._metadata = metadata; + this._exports = exports; + } + + get metadata() { + return this._metadata; + } + + get exports() { + return this._exports; + } +} + +module.exports = PluginManifest; diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginStore.jsx b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginStore.jsx new file mode 100644 index 0000000000..1989d8e17a --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginStore.jsx @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +class PluginStore { + static register(plugin) { + if (!window.plugins) { + window.plugins = []; + } + window.plugins.push(plugin); + } + + static unregister(plugin) { + if (!window.plugins) { + return; + } + + window.plugins.forEach((item, idx) => { + if (item.metadata && plugin.metadata && item.metadata.name === plugin.metadata.name) { + window.plugins.splice(idx, 1); + } + }); + } + + static get() { + if (!window.plugins) { + window.plugins = []; + } + return window.plugins; + } + + static exports(entity) { + return [].concat.apply([], this.get() + .map((plugin) => (plugin.exports && plugin.exports[entity] ? plugin.exports[entity] : [])) + ); + } +} + +export default PluginStore; diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginWebpackConfig.js b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginWebpackConfig.js new file mode 100644 index 0000000000..649791f9fa --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/PluginWebpackConfig.js @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const path = require('path'); + +const webpack = require('webpack'); +const merge = require('webpack-merge'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); + +const TARGET = process.env.npm_lifecycle_event || 'build'; + +function getPluginFullName(fqcn) { + return `plugin.${fqcn}`; +} + +function PluginWebpackConfig(defaultRootPath, fqcn, _options, additionalConfig) { + const defaultOptions = { + root_path: defaultRootPath, + src_path: path.resolve(defaultRootPath, 'src/web'), + entry_path: path.resolve(defaultRootPath, 'src/web/index.jsx'), + build_path: path.resolve(defaultRootPath, 'target/web/build'), + }; + + const options = merge(defaultOptions, _options); + /* eslint-disable global-require,import/no-dynamic-require */ + const VENDOR_MANIFEST = require(path.resolve(options.web_src_path, 'manifests', 'vendor-manifest.json')); + const core = require(path.resolve(options.web_src_path, 'webpack/core')); + const supportedBrowsers = require(path.resolve(options.web_src_path, 'supportedBrowsers')); + /* eslint-enable global-require,import/no-dynamic-require */ + + const plugins = [ + new webpack.DllReferencePlugin({ manifest: VENDOR_MANIFEST, context: options.root_path }), + new HtmlWebpackPlugin({ filename: `${getPluginFullName(fqcn)}.module.json`, inject: false, template: path.resolve(options.web_src_path, 'templates', 'module.json.template') }), + ]; + const fullPluginName = getPluginFullName(fqcn); + + const config = merge.smart({ + name: fullPluginName, + dependencies: ['vendor'], + entry: { + [fullPluginName]: options.entry_path, + }, + output: { + path: options.build_path, + }, + plugins: plugins, + resolve: { + modules: [path.resolve(options.web_src_path, 'src'), path.resolve(options.web_src_path, 'node_modules')], + }, + }, + core.config(TARGET, options.src_path, options.root_path, options.web_src_path, supportedBrowsers), + ); + + if (additionalConfig) { + return merge.smart(config, additionalConfig); + } + + return config; +} + +module.exports = PluginWebpackConfig; diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/loadBuildConfig.js b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/loadBuildConfig.js new file mode 100644 index 0000000000..ef381f7fdf --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/src/loadBuildConfig.js @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const fs = require('fs'); + +module.exports = function loadBuildConfig(filename) { + try { + // eslint-disable-next-line global-require + const buildConfig = require(filename); + if (!buildConfig.web_src_path || !fs.lstatSync(buildConfig.web_src_path).isDirectory()) { + /* eslint-disable no-console */ + console.error('Path to graylog web interface sources is not defined, does not exist or is not a directory: (', buildConfig.web_src_path, ').'); + console.error('Please configure it in a file named `build.config.js` before trying to build the plugin.'); + // TODO: add link to documentation + console.error('For further information please check http://docs.graylog.org/PLACEHOLDER'); + process.exit(-1); + /* eslint-enable no-console */ + } + return buildConfig; + } catch (e) { + // eslint-disable-next-line no-console + console.error('It seems like there is no readable build.config.js file: ', e); + } + process.exit(-1); + return undefined; +}; diff --git a/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/templates/module.json.template b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/templates/module.json.template new file mode 100644 index 0000000000..151aa2a0a1 --- /dev/null +++ b/.yarn/v6/npm-graylog-web-plugin-5.2.0-SNAPSHOT-ba51eac8-83bc-492e-bbc9-f0842cf72092-1697464780987/node_modules/graylog-web-plugin/templates/module.json.template @@ -0,0 +1,3 @@ +{ + "files": {%# JSON.stringify(o.htmlWebpackPlugin.files) %} +} \ No newline at end of file diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.babelrc b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.babelrc new file mode 100644 index 0000000000..d21a4410dc --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.babelrc @@ -0,0 +1,7 @@ +{ + "presets": ["@babel/env"], + "plugins": [ + "@babel/plugin-proposal-class-properties", + "add-module-exports" + ], +} diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.gitignore b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.gitignore new file mode 100644 index 0000000000..93f1361991 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.gitignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.yarn-metadata.json b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.yarn-metadata.json new file mode 100644 index 0000000000..e658b89984 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/.yarn-metadata.json @@ -0,0 +1,49 @@ +{ + "manifest": { + "name": "jest-preset-graylog", + "version": "1.0.0", + "description": "Graylog jest preset, contains the jest configuration and dependencies to setup the test environment for the web interface", + "main": "jest-preset.js", + "keywords": [ + "graylog", + "jest" + ], + "author": { + "name": "Graylog, Inc.", + "email": "hello@graylog.com" + }, + "license": "SSPL-1.0", + "dependencies": { + "@jest/types": "29.6.1", + "@testing-library/dom": "9.3.3", + "@testing-library/jest-dom": "6.1.4", + "@testing-library/react": "12.1.5", + "@testing-library/react-hooks": "^8.0.0", + "@testing-library/user-event": "^13.5.0", + "@types/enzyme": "3.10.14", + "@types/jest": "29.5.5", + "babel-jest": "29.6.2", + "enzyme": "3.11.0", + "enzyme-adapter-react-16": "^1.15.2", + "identity-obj-proxy": "^3.0.0", + "jest": "29.6.2", + "jest-canvas-mock": "^2.3.1", + "jest-environment-enzyme": "^7.1.2", + "jest-environment-jsdom": "29.6.2", + "jest-enzyme": "^7.1.2", + "jest-styled-components": "7.2.0", + "react-select-event": "^5.0.0" + }, + "_registry": "npm", + "_loc": "/home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/package.json" + }, + "artifacts": [], + "remote": { + "type": "copy", + "registry": "npm", + "hash": "216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151", + "reference": "/tmp/server-63Qi/graylog2-web-interface/packages/jest-preset-graylog" + }, + "registry": "npm", + "hash": "216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151" +} \ No newline at end of file diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/jest-preset.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/jest-preset.js new file mode 100644 index 0000000000..e4f2d9ca46 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/jest-preset.js @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const { applyTimeoutMultiplier } = require('./lib/timeouts'); + +module.exports = { + rootDir: '../../', + collectCoverageFrom: [ + 'src/**/*.{js,jsx,ts,tsx}', + ], + setupFiles: [ + require.resolve('./lib/setup-files/mock-FetchProvider.js'), + require.resolve('./lib/setup-files/mock-Version.js'), + require.resolve('./lib/setup-files/mock-IntersectionObserver.js'), + require.resolve('./lib/setup-files/mock-moment-timezone.js'), + require.resolve('./lib/setup-files/console-warnings-fail-tests.js'), + require.resolve('./lib/setup-files/mock-crypto-getrandomvalues.js'), + require.resolve('./lib/setup-files/mock-styled-components.js'), + 'jest-canvas-mock', + ], + setupFilesAfterEnv: [ + 'jest-enzyme', + ], + moduleDirectories: [ + 'src', + 'test', + 'node_modules', + ], + moduleFileExtensions: [ + 'ts', + 'tsx', + 'js', + 'jsx', + ], + moduleNameMapper: { + '^file-loader(\\?esModule=false)?!(.+)$': '$2', + '(\\.lazy|leaflet)\\.css$': require.resolve('./lib/mocking/useable-css-proxy.js'), + '\\.(css|less)$': 'identity-obj-proxy', + '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': require.resolve('./lib/mocking/fileMock.js'), + '^@graylog/server-api(.*)$': '/target/api$1', + }, + testEnvironment: 'jsdom', + testPathIgnorePatterns: [ + '.fixtures.[jt]s$', + ], + testTimeout: applyTimeoutMultiplier(5000), + transform: { + '^.+\\.[tj]sx?$': 'babel-jest', + }, + transformIgnorePatterns: ['node_modules/(?!(@react-hook|uuid|@?react-leaflet|jest-preset-graylog|graylog-web-plugin|styled-components)/)'], +}; diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/fileMock.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/fileMock.js new file mode 100644 index 0000000000..66108dc34b --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/fileMock.js @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +module.exports = 'test-file-stub'; diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.js new file mode 100644 index 0000000000..9326bc3efe --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.js @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const namedProxy = (name) => new Proxy({}, { + get: function getter(target, key) { + if (key === '__esModule') { + return false; + } + + if (key === 'toString' || key === Symbol.toPrimitive) { + return () => name; + } + + return namedProxy(`${name}.${key.toString()}`); + }, +}); + +export default new Proxy({}, { + get: function getter(target, key) { + if (key === '__esModule') { + return false; + } + + if (key === 'use' || key === 'unuse') { + return () => {}; + } + + return namedProxy(key); + }, +}); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.test.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.test.js new file mode 100644 index 0000000000..4414c04e22 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/mocking/useable-css-proxy.test.js @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +import useableCssProxy from './useable-css-proxy'; + +describe('useable-css-proxy', () => { + it('should return a proxy object', () => { + expect(useableCssProxy).toBeDefined(); + }); + + it('should return a proxy object for a key', () => { + const result = useableCssProxy.container; + + expect(result).toBeDefined(); + expect(result.toString()).toEqual('container'); + }); +}); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.js new file mode 100644 index 0000000000..5848ed5c9f --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.js @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +/* eslint-disable no-console */ +import { format } from 'util'; + +import { DEPRECATION_NOTICE } from 'util/deprecationNotice'; + +console.origWarn = console.warn; +console.origError = console.error; + +const ignoredWarnings = [ + 'react-async-component-lifecycle-hooks', + 'react-unsafe-component-lifecycles', + DEPRECATION_NOTICE, +]; + +const ignoreWarning = (args) => (!args[0] || ignoredWarnings.filter((warning) => args[0]?.includes?.(warning)).length > 0); + +console.warn = jest.fn((...args) => { + console.origWarn(...args); + + if (!ignoreWarning(args)) { + throw new Error(format(...args)); + } +}); + +console.error = jest.fn((...args) => { + console.origError(...args); + + if (!ignoreWarning(args)) { + throw new Error(format(...args)); + } +}); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.test.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.test.js new file mode 100644 index 0000000000..90caa91369 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/console-warnings-fail-tests.test.js @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +/* eslint-disable no-console */ + +describe('console-warnings-fail-tests', () => { + /* + We are suppressing console output for the following tests here. We are not reusing `suppressConsole`, as it does not + work well with the order of wrapping original `console` and importing/requiring the actual SUT module, also it does + not currently suppress `console.warn`. + */ + let oldConsoleWarn; + let oldConsoleError; + + beforeAll(() => { + oldConsoleWarn = console.origWarn; + oldConsoleError = console.origError; + console.origWarn = () => {}; + console.origError = () => {}; + }); + + afterAll(() => { + console.origWarn = oldConsoleWarn; + console.origError = oldConsoleError; + }); + + describe('console.error', () => { + it('throws error if used', () => { + expect(() => { console.error('hello there!'); }).toThrowError(new Error('hello there!')); + }); + + it('does not throw error if containing react deprecation notice', () => { + expect(() => { + console.error('Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.'); + }).not.toThrow(); + }); + + it('does not throw error if called without arguments', () => { + expect(() => { console.error(); }).not.toThrow(); + }); + }); + + describe('console.warn', () => { + it('throws error if used', () => { + expect(() => { console.warn('hello there!'); }).toThrowError(new Error('hello there!')); + }); + + it('does not throw error if containing react deprecation notice', () => { + expect(() => { + console.warn('Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.'); + }).not.toThrow(); + }); + + it('does not throw error if called without arguments', () => { + expect(() => { console.warn(); }).not.toThrow(); + }); + }); +}); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-FetchProvider.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-FetchProvider.js new file mode 100644 index 0000000000..febb560237 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-FetchProvider.js @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const mockResponse = {}; + +class MockBuilder { + authenticated = () => this; + + session = () => this; + + setHeader = () => this; + + json = () => this; + + plaintext = () => this; + + noSessionExtension = () => this; + + build = () => Promise.resolve({}); +} + +class MockFetchError { +} + +const MockFetchProvider = Object.assign( + () => Promise.resolve(mockResponse), + { + FetchError: MockFetchError, + Builder: MockBuilder, + default: jest.fn(() => Promise.resolve(mockResponse)), + fetchPlainText: jest.fn(() => Promise.resolve(mockResponse)), + fetchPeriodically: jest.fn(() => Promise.resolve(mockResponse)), + fetchFile: jest.fn(() => Promise.resolve(mockResponse)), + }, +); + +jest.mock('logic/rest/FetchProvider', () => MockFetchProvider); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-IntersectionObserver.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-IntersectionObserver.js new file mode 100644 index 0000000000..ff20188e45 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-IntersectionObserver.js @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const observe = jest.fn(); +const unobserve = jest.fn(); + +window.IntersectionObserver = jest.fn(() => ({ + observe, + unobserve, +})); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-Version.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-Version.js new file mode 100644 index 0000000000..40bd11a90c --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-Version.js @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +// We are mocking the application version, to avoid failing snapshot tests after a version change. + +const mockDefaultExport = { + getMajorAndMinorVersion: jest.fn(() => 'MAJOR_AND_MINOR_VERSION_MOCK'), + getFullVersion: jest.fn(() => 'FULL_VERSION_MOCK'), +}; + +jest.mock('util/Version', () => mockDefaultExport); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-crypto-getrandomvalues.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-crypto-getrandomvalues.js new file mode 100644 index 0000000000..e42884ff25 --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-crypto-getrandomvalues.js @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +import crypto from 'crypto'; + +Object.defineProperty(global, 'crypto', { + value: { + getRandomValues: (arr) => crypto.randomBytes(arr.length), + }, +}); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-moment-timezone.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-moment-timezone.js new file mode 100644 index 0000000000..fb1704ea0d --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-moment-timezone.js @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ + +const mockRootTimeZone = 'America/Chicago'; + +jest.mock('moment-timezone', () => { + const momentMock = jest.requireActual('moment-timezone'); + momentMock.tz.setDefault(mockRootTimeZone); + momentMock.tz.guess = () => mockRootTimeZone; + + return momentMock; +}); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-styled-components.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-styled-components.js new file mode 100644 index 0000000000..c72e48314e --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/setup-files/mock-styled-components.js @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ + +jest.mock('styled-components', () => ( + jest.requireActual('styled-components/dist/styled-components.browser.esm.js') +)); diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/timeouts.js b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/timeouts.js new file mode 100644 index 0000000000..ca06651bfc --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/lib/timeouts.js @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +const parsedTimeoutMultiplier = Number.parseFloat(process.env.TIMEOUT_MULTIPLIER); + +const timeoutMultiplier = () => (Number.isFinite(parsedTimeoutMultiplier) ? parsedTimeoutMultiplier : 1.0); + +const applyTimeoutMultiplier = (x) => x * timeoutMultiplier(); + +module.exports = { + timeoutMultiplier, + applyTimeoutMultiplier, +}; diff --git a/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/package.json b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/package.json new file mode 100644 index 0000000000..6171ba04df --- /dev/null +++ b/.yarn/v6/npm-jest-preset-graylog-1.0.0-216e1de9-fea4-4c7b-a971-876db47ca016-1697464781151/node_modules/jest-preset-graylog/package.json @@ -0,0 +1,33 @@ +{ + "name": "jest-preset-graylog", + "version": "1.0.0", + "description": "Graylog jest preset, contains the jest configuration and dependencies to setup the test environment for the web interface", + "main": "jest-preset.js", + "keywords": [ + "graylog", + "jest" + ], + "author": "Graylog, Inc. ", + "license": "SSPL-1.0", + "dependencies": { + "@jest/types": "29.6.1", + "@testing-library/dom": "9.3.3", + "@testing-library/jest-dom": "6.1.4", + "@testing-library/react": "12.1.5", + "@testing-library/react-hooks": "^8.0.0", + "@testing-library/user-event": "^13.5.0", + "@types/enzyme": "3.10.14", + "@types/jest": "29.5.5", + "babel-jest": "29.6.2", + "enzyme": "3.11.0", + "enzyme-adapter-react-16": "^1.15.2", + "identity-obj-proxy": "^3.0.0", + "jest": "29.6.2", + "jest-canvas-mock": "^2.3.1", + "jest-environment-enzyme": "^7.1.2", + "jest-environment-jsdom": "29.6.2", + "jest-enzyme": "^7.1.2", + "jest-styled-components": "7.2.0", + "react-select-event": "^5.0.0" + } +} diff --git a/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/.yarn-metadata.json b/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/.yarn-metadata.json new file mode 100644 index 0000000000..2df337ed29 --- /dev/null +++ b/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/.yarn-metadata.json @@ -0,0 +1,39 @@ +{ + "manifest": { + "name": "stylelint-config-graylog", + "version": "1.0.0", + "description": "Graylog StyleLint config for web interface plugin authors", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "graylog", + "stylelint" + ], + "author": { + "name": "Graylog, Inc.", + "email": "hello@graylog.com" + }, + "license": "SSPL-1.0", + "dependencies": { + "@stylelint/postcss-css-in-js": "0.38.0", + "postcss-syntax": "0.36.2", + "stylelint": "14.16.1", + "stylelint-config-recommended": "9.0.0", + "stylelint-config-standard": "29.0.0", + "stylelint-config-styled-components": "0.1.1" + }, + "_registry": "npm", + "_loc": "/home/jenkins/workspace/Snapshots_graylog2-server_master/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/package.json" + }, + "artifacts": [], + "remote": { + "type": "copy", + "registry": "npm", + "hash": "b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308", + "reference": "/tmp/server-63Qi/graylog2-web-interface/packages/stylelint-config-graylog" + }, + "registry": "npm", + "hash": "b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308" +} \ No newline at end of file diff --git a/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/index.js b/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/index.js new file mode 100644 index 0000000000..14789621e3 --- /dev/null +++ b/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/index.js @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2020 Graylog, Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the Server Side Public License, version 1, + * as published by MongoDB, Inc. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * Server Side Public License for more details. + * + * You should have received a copy of the Server Side Public License + * along with this program. If not, see + * . + */ +module.exports = { + customSyntax: '@stylelint/postcss-css-in-js', + extends: [ + 'stylelint-config-standard', + 'stylelint-config-styled-components', + ], + rules: { + 'declaration-block-trailing-semicolon': 'always', + 'declaration-colon-newline-after': null, + 'declaration-colon-space-after': 'always', + 'declaration-empty-line-before': null, + 'function-name-case': null, + 'function-whitespace-after': null, + 'max-empty-lines': 2, + 'no-descending-specificity': null, + 'no-empty-first-line': null, + 'no-empty-source': null, + 'no-eol-whitespace': [ + true, { + ignore: ['empty-lines'], + }, + ], + 'no-missing-end-of-source-newline': null, + 'property-no-vendor-prefix': [true, { + ignoreProperties: ['grid-rows', 'grid-columns', 'grid-row', 'grid-column'], + }], + 'string-quotes': 'single', + 'value-no-vendor-prefix': [true, { + ignoreValues: ['grid', 'inline-grid'], + }], + 'value-keyword-case': null, + }, +}; diff --git a/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/package.json b/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/package.json new file mode 100644 index 0000000000..441d665b98 --- /dev/null +++ b/.yarn/v6/npm-stylelint-config-graylog-1.0.0-b63b9886-2b80-4fd5-b6f5-ca9f40f15e0e-1697464781308/node_modules/stylelint-config-graylog/package.json @@ -0,0 +1,23 @@ +{ + "name": "stylelint-config-graylog", + "version": "1.0.0", + "description": "Graylog StyleLint config for web interface plugin authors", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "graylog", + "stylelint" + ], + "author": "Graylog, Inc. ", + "license": "SSPL-1.0", + "dependencies": { + "@stylelint/postcss-css-in-js": "0.38.0", + "postcss-syntax": "0.36.2", + "stylelint": "14.16.1", + "stylelint-config-recommended": "9.0.0", + "stylelint-config-standard": "29.0.0", + "stylelint-config-styled-components": "0.1.1" + } +} diff --git a/build/bundle.afd4d4cf.js b/build/bundle.3c956470.js similarity index 82% rename from build/bundle.afd4d4cf.js rename to build/bundle.3c956470.js index a927b3ac5e..4bbc45857e 100644 --- a/build/bundle.afd4d4cf.js +++ b/build/bundle.3c956470.js @@ -1,9 +1,9 @@ -/*! For license information please see bundle.afd4d4cf.js.LICENSE.txt */ +/*! For license information please see bundle.3c956470.js.LICENSE.txt */ (()=>{var __webpack_modules__={16018:(_,w,P)=>{"use strict";var ne=function(){function defineProperties(_,w){for(var P=0;P{"use strict";const ne=P(73325),pe=/^[\da-fA-F]+$/,me=/^\d+$/,Me=new WeakMap;function getJsxTokens(_){_=_.Parser.acorn||_;let w=Me.get(_);if(!w){const P=_.tokTypes,ne=_.TokContext,pe=_.TokenType,me=new ne("...",!0,!0),Oe={tc_oTag:me,tc_cTag:ye,tc_expr:ve},Ae={jsxName:new pe("jsxName"),jsxText:new pe("jsxText",{beforeExpr:!0}),jsxTagStart:new pe("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new pe("jsxTagEnd")};Ae.jsxTagStart.updateContext=function(){this.context.push(ve),this.context.push(me),this.exprAllowed=!1},Ae.jsxTagEnd.updateContext=function(_){let w=this.context.pop();w===me&&_===P.slash||w===ye?(this.context.pop(),this.exprAllowed=this.curContext()===ve):this.exprAllowed=!0},w={tokContexts:Oe,tokTypes:Ae},Me.set(_,w)}return w}function getQualifiedJSXName(_){return _?"JSXIdentifier"===_.type?_.name:"JSXNamespacedName"===_.type?_.namespace.name+":"+_.name.name:"JSXMemberExpression"===_.type?getQualifiedJSXName(_.object)+"."+getQualifiedJSXName(_.property):void 0:_}function plugin(_,w){const Me=w.acorn||P(63230),ye=getJsxTokens(Me),ve=Me.tokTypes,Oe=ye.tokTypes,Ae=Me.tokContexts,Re=ye.tokContexts.tc_oTag,we=ye.tokContexts.tc_cTag,ke=ye.tokContexts.tc_expr,Te=Me.isNewLine,Fe=Me.isIdentifierStart,Ve=Me.isIdentifierChar;return class extends w{static get acornJsx(){return ye}jsx_readToken(){let _="",w=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let P=this.input.charCodeAt(this.pos);switch(P){case 60:case 123:return this.pos===this.start?60===P&&this.exprAllowed?(++this.pos,this.finishToken(Oe.jsxTagStart)):this.getTokenFromCode(P):(_+=this.input.slice(w,this.pos),this.finishToken(Oe.jsxText,_));case 38:_+=this.input.slice(w,this.pos),_+=this.jsx_readEntity(),w=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===P?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:Te(P)?(_+=this.input.slice(w,this.pos),_+=this.jsx_readNewLine(!0),w=this.pos):++this.pos}}}jsx_readNewLine(_){let w,P=this.input.charCodeAt(this.pos);return++this.pos,13===P&&10===this.input.charCodeAt(this.pos)?(++this.pos,w=_?"\n":"\r\n"):w=String.fromCharCode(P),this.options.locations&&(++this.curLine,this.lineStart=this.pos),w}jsx_readString(_){let w="",P=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let ne=this.input.charCodeAt(this.pos);if(ne===_)break;38===ne?(w+=this.input.slice(P,this.pos),w+=this.jsx_readEntity(),P=this.pos):Te(ne)?(w+=this.input.slice(P,this.pos),w+=this.jsx_readNewLine(!1),P=this.pos):++this.pos}return w+=this.input.slice(P,this.pos++),this.finishToken(ve.string,w)}jsx_readEntity(){let _,w="",P=0,Me=this.input[this.pos];"&"!==Me&&this.raise(this.pos,"Entity must start with an ampersand");let ye=++this.pos;for(;this.pos")}let Me=pe.name?"Element":"Fragment";return P["opening"+Me]=pe,P["closing"+Me]=me,P.children=ne,this.type===ve.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(P,"JSX"+Me)}jsx_parseText(){let _=this.parseLiteral(this.value);return _.type="JSXText",_}jsx_parseElement(){let _=this.start,w=this.startLoc;return this.next(),this.jsx_parseElementAt(_,w)}parseExprAtom(_){return this.type===Oe.jsxText?this.jsx_parseText():this.type===Oe.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(_)}readToken(_){let w=this.curContext();if(w===ke)return this.jsx_readToken();if(w===Re||w===we){if(Fe(_))return this.jsx_readWord();if(62==_)return++this.pos,this.finishToken(Oe.jsxTagEnd);if((34===_||39===_)&&w==Re)return this.jsx_readString(_)}return 60===_&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(Oe.jsxTagStart)):super.readToken(_)}updateContext(_){if(this.type==ve.braceL){var w=this.curContext();w==Re?this.context.push(Ae.b_expr):w==ke?this.context.push(Ae.b_tmpl):super.updateContext(_),this.exprAllowed=!0}else{if(this.type!==ve.slash||_!==Oe.jsxTagStart)return super.updateContext(_);this.context.length-=2,this.context.push(we),this.exprAllowed=!1}}}}_.exports=function(_){return _=_||{},function(w){return plugin({allowNamespaces:!1!==_.allowNamespaces,allowNamespacedObjects:!!_.allowNamespacedObjects},w)}},Object.defineProperty(_.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(P(63230)).tokTypes},configurable:!0,enumerable:!0})},73325:_=>{_.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},48583:(_,w,P)=>{"use strict";var ne=P(27418);function compare(_,w){if(_===w)return 0;for(var P=_.length,ne=w.length,pe=0,me=Math.min(P,ne);pe=0;Oe--)if(Re[Oe]!==we[Oe])return!1;for(Oe=Re.length-1;Oe>=0;Oe--)if(!_deepEqual(_[ve=Re[Oe]],w[ve],P,ne))return!1;return!0}function expectedException(_,w){if(!_||!w)return!1;if("[object RegExp]"==Object.prototype.toString.call(w))return w.test(_);try{if(_ instanceof w)return!0}catch(_){}return!Error.isPrototypeOf(w)&&!0===w.call({},_)}function _tryBlock(_){var w;try{_()}catch(_){w=_}return w}function _throws(_,w,P,ne){var me;if("function"!=typeof w)throw new TypeError('"block" argument must be a function');"string"==typeof P&&(ne=P,P=null),me=_tryBlock(w),ne=(P&&P.name?" ("+P.name+").":".")+(ne?" "+ne:"."),_&&!me&&fail(me,P,"Missing expected exception"+ne);var Me="string"==typeof ne,ye=!_&&me&&!P;if((!_&&pe.isError(me)&&Me&&expectedException(me,P)||ye)&&fail(me,P,"Got unwanted exception"+ne),_&&me&&P&&!expectedException(me,P)||!_&&me)throw me}ve.AssertionError=function AssertionError(_){this.name="AssertionError",this.actual=_.actual,this.expected=_.expected,this.operator=_.operator,_.message?(this.message=_.message,this.generatedMessage=!1):(this.message=getMessage(this),this.generatedMessage=!0);var w=_.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,w);else{var P=new Error;if(P.stack){var ne=P.stack,pe=getName(w),me=ne.indexOf("\n"+pe);if(me>=0){var Me=ne.indexOf("\n",me+1);ne=ne.substring(Me+1)}this.stack=ne}}},pe.inherits(ve.AssertionError,Error),ve.fail=fail,ve.ok=ok,ve.equal=function equal(_,w,P){_!=w&&fail(_,w,P,"==",ve.equal)},ve.notEqual=function notEqual(_,w,P){_==w&&fail(_,w,P,"!=",ve.notEqual)},ve.deepEqual=function deepEqual(_,w,P){_deepEqual(_,w,!1)||fail(_,w,P,"deepEqual",ve.deepEqual)},ve.deepStrictEqual=function deepStrictEqual(_,w,P){_deepEqual(_,w,!0)||fail(_,w,P,"deepStrictEqual",ve.deepStrictEqual)},ve.notDeepEqual=function notDeepEqual(_,w,P){_deepEqual(_,w,!1)&&fail(_,w,P,"notDeepEqual",ve.notDeepEqual)},ve.notDeepStrictEqual=function notDeepStrictEqual(_,w,P){_deepEqual(_,w,!0)&&fail(_,w,P,"notDeepStrictEqual",notDeepStrictEqual)},ve.strictEqual=function strictEqual(_,w,P){_!==w&&fail(_,w,P,"===",ve.strictEqual)},ve.notStrictEqual=function notStrictEqual(_,w,P){_===w&&fail(_,w,P,"!==",ve.notStrictEqual)},ve.throws=function(_,w,P){_throws(!0,_,w,P)},ve.doesNotThrow=function(_,w,P){_throws(!1,_,w,P)},ve.ifError=function(_){if(_)throw _},ve.strict=ne((function strict(_,w){_||fail(_,!0,w,"==",strict)}),ve,{equal:ve.strictEqual,deepEqual:ve.deepStrictEqual,notEqual:ve.notStrictEqual,notDeepEqual:ve.notDeepStrictEqual}),ve.strict.strict=ve.strict;var Ae=Object.keys||function(_){var w=[];for(var P in _)me.call(_,P)&&w.push(P);return w}},66485:_=>{_.exports=function clipboardCopy(_){if(navigator.clipboard)return navigator.clipboard.writeText(_).catch((function(_){throw void 0!==_?_:new DOMException("The request is not allowed","NotAllowedError")}));var w=document.createElement("span");w.textContent=_,w.style.whiteSpace="pre",w.style.webkitUserSelect="auto",w.style.userSelect="all",document.body.appendChild(w);var P=window.getSelection(),ne=window.document.createRange();P.removeAllRanges(),ne.selectNode(w),P.addRange(ne);var pe=!1;try{pe=window.document.execCommand("copy")}catch(_){console.log("error",_)}return P.removeAllRanges(),window.document.body.removeChild(w),pe?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}},86010:(_,w,P)=>{"use strict";function toVal(_){var w,P,ne="";if("string"==typeof _||"number"==typeof _)ne+=_;else if("object"==typeof _)if(Array.isArray(_))for(w=0;w<_.length;w++)_[w]&&(P=toVal(_[w]))&&(ne&&(ne+=" "),ne+=P);else for(w in _)_[w]&&(ne&&(ne+=" "),ne+=w);return ne}function __WEBPACK_DEFAULT_EXPORT__(){for(var _,w,P=0,ne="";P__WEBPACK_DEFAULT_EXPORT__})},19662:(_,w,P)=>{var ne=P(17854),pe=P(60614),me=P(66330),Me=ne.TypeError;_.exports=function(_){if(pe(_))return _;throw Me(me(_)+" is not a function")}},39483:(_,w,P)=>{var ne=P(17854),pe=P(4411),me=P(66330),Me=ne.TypeError;_.exports=function(_){if(pe(_))return _;throw Me(me(_)+" is not a constructor")}},96077:(_,w,P)=>{var ne=P(17854),pe=P(60614),me=ne.String,Me=ne.TypeError;_.exports=function(_){if("object"==typeof _||pe(_))return _;throw Me("Can't set "+me(_)+" as a prototype")}},51223:(_,w,P)=>{var ne=P(5112),pe=P(70030),me=P(3070),Me=ne("unscopables"),ye=Array.prototype;null==ye[Me]&&me.f(ye,Me,{configurable:!0,value:pe(null)}),_.exports=function(_){ye[Me][_]=!0}},31530:(_,w,P)=>{"use strict";var ne=P(28710).charAt;_.exports=function(_,w,P){return w+(P?ne(_,w).length:1)}},25787:(_,w,P)=>{var ne=P(17854),pe=P(47976),me=ne.TypeError;_.exports=function(_,w){if(pe(w,_))return _;throw me("Incorrect invocation")}},19670:(_,w,P)=>{var ne=P(17854),pe=P(70111),me=ne.String,Me=ne.TypeError;_.exports=function(_){if(pe(_))return _;throw Me(me(_)+" is not an object")}},24019:_=>{_.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:(_,w,P)=>{var ne=P(47293);_.exports=ne((function(){if("function"==typeof ArrayBuffer){var _=new ArrayBuffer(8);Object.isExtensible(_)&&Object.defineProperty(_,"a",{value:8})}}))},90260:(_,w,P)=>{"use strict";var ne,pe,me,Me=P(24019),ye=P(19781),ve=P(17854),Oe=P(60614),Ae=P(70111),Re=P(92597),we=P(70648),ke=P(66330),Te=P(68880),Fe=P(31320),Ve=P(3070).f,$e=P(47976),Xe=P(79518),nt=P(27674),ot=P(5112),ut=P(69711),bt=ve.Int8Array,gt=bt&&bt.prototype,mt=ve.Uint8ClampedArray,Mt=mt&&mt.prototype,yt=bt&&Xe(bt),zt=gt&&Xe(gt),vt=Object.prototype,Ot=ve.TypeError,At=ot("toStringTag"),Rt=ut("TYPED_ARRAY_TAG"),_t=ut("TYPED_ARRAY_CONSTRUCTOR"),xt=Me&&!!nt&&"Opera"!==we(ve.opera),wt=!1,Ct={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},qt={BigInt64Array:8,BigUint64Array:8},isTypedArray=function(_){if(!Ae(_))return!1;var w=we(_);return Re(Ct,w)||Re(qt,w)};for(ne in Ct)(me=(pe=ve[ne])&&pe.prototype)?Te(me,_t,pe):xt=!1;for(ne in qt)(me=(pe=ve[ne])&&pe.prototype)&&Te(me,_t,pe);if((!xt||!Oe(yt)||yt===Function.prototype)&&(yt=function TypedArray(){throw Ot("Incorrect invocation")},xt))for(ne in Ct)ve[ne]&&nt(ve[ne],yt);if((!xt||!zt||zt===vt)&&(zt=yt.prototype,xt))for(ne in Ct)ve[ne]&&nt(ve[ne].prototype,zt);if(xt&&Xe(Mt)!==zt&&nt(Mt,zt),ye&&!Re(zt,At))for(ne in wt=!0,Ve(zt,At,{get:function(){return Ae(this)?this[Rt]:void 0}}),Ct)ve[ne]&&Te(ve[ne],Rt,ne);_.exports={NATIVE_ARRAY_BUFFER_VIEWS:xt,TYPED_ARRAY_CONSTRUCTOR:_t,TYPED_ARRAY_TAG:wt&&Rt,aTypedArray:function(_){if(isTypedArray(_))return _;throw Ot("Target is not a typed array")},aTypedArrayConstructor:function(_){if(Oe(_)&&(!nt||$e(yt,_)))return _;throw Ot(ke(_)+" is not a typed array constructor")},exportTypedArrayMethod:function(_,w,P,ne){if(ye){if(P)for(var pe in Ct){var me=ve[pe];if(me&&Re(me.prototype,_))try{delete me.prototype[_]}catch(P){try{me.prototype[_]=w}catch(_){}}}zt[_]&&!P||Fe(zt,_,P?w:xt&>[_]||w,ne)}},exportTypedArrayStaticMethod:function(_,w,P){var ne,pe;if(ye){if(nt){if(P)for(ne in Ct)if((pe=ve[ne])&&Re(pe,_))try{delete pe[_]}catch(_){}if(yt[_]&&!P)return;try{return Fe(yt,_,P?w:xt&&yt[_]||w)}catch(_){}}for(ne in Ct)!(pe=ve[ne])||pe[_]&&!P||Fe(pe,_,w)}},isView:function isView(_){if(!Ae(_))return!1;var w=we(_);return"DataView"===w||Re(Ct,w)||Re(qt,w)},isTypedArray:isTypedArray,TypedArray:yt,TypedArrayPrototype:zt}},13331:(_,w,P)=>{"use strict";var ne=P(17854),pe=P(1702),me=P(19781),Me=P(24019),ye=P(76530),ve=P(68880),Oe=P(12248),Ae=P(47293),Re=P(25787),we=P(19303),ke=P(17466),Te=P(57067),Fe=P(11179),Ve=P(79518),$e=P(27674),Xe=P(8006).f,nt=P(3070).f,ot=P(21285),ut=P(41589),bt=P(58003),gt=P(29909),mt=ye.PROPER,Mt=ye.CONFIGURABLE,yt=gt.get,zt=gt.set,vt="ArrayBuffer",Ot="DataView",At="Wrong index",Rt=ne.ArrayBuffer,_t=Rt,xt=_t&&_t.prototype,wt=ne.DataView,Ct=wt&&wt.prototype,qt=Object.prototype,St=ne.Array,kt=ne.RangeError,Lt=pe(ot),Et=pe([].reverse),Tt=Fe.pack,Dt=Fe.unpack,packInt8=function(_){return[255&_]},packInt16=function(_){return[255&_,_>>8&255]},packInt32=function(_){return[255&_,_>>8&255,_>>16&255,_>>24&255]},unpackInt32=function(_){return _[3]<<24|_[2]<<16|_[1]<<8|_[0]},packFloat32=function(_){return Tt(_,23,4)},packFloat64=function(_){return Tt(_,52,8)},addGetter=function(_,w){nt(_.prototype,w,{get:function(){return yt(this)[w]}})},get=function(_,w,P,ne){var pe=Te(P),me=yt(_);if(pe+w>me.byteLength)throw kt(At);var Me=yt(me.buffer).bytes,ye=pe+me.byteOffset,ve=ut(Me,ye,ye+w);return ne?ve:Et(ve)},set=function(_,w,P,ne,pe,me){var Me=Te(P),ye=yt(_);if(Me+w>ye.byteLength)throw kt(At);for(var ve=yt(ye.buffer).bytes,Oe=Me+ye.byteOffset,Ae=ne(+pe),Re=0;RePt;)(Nt=Ht[Pt++])in _t||ve(_t,Nt,Rt[Nt]);xt.constructor=_t}$e&&Ve(Ct)!==qt&&$e(Ct,qt);var It=new wt(new _t(2)),Bt=pe(Ct.setInt8);It.setInt8(0,2147483648),It.setInt8(1,2147483649),!It.getInt8(0)&&It.getInt8(1)||Oe(Ct,{setInt8:function setInt8(_,w){Bt(this,_,w<<24>>24)},setUint8:function setUint8(_,w){Bt(this,_,w<<24>>24)}},{unsafe:!0})}else xt=(_t=function ArrayBuffer(_){Re(this,xt);var w=Te(_);zt(this,{bytes:Lt(St(w),0),byteLength:w}),me||(this.byteLength=w)}).prototype,Ct=(wt=function DataView(_,w,P){Re(this,Ct),Re(_,xt);var ne=yt(_).byteLength,pe=we(w);if(pe<0||pe>ne)throw kt("Wrong offset");if(pe+(P=void 0===P?ne-pe:ke(P))>ne)throw kt("Wrong length");zt(this,{buffer:_,byteLength:P,byteOffset:pe}),me||(this.buffer=_,this.byteLength=P,this.byteOffset=pe)}).prototype,me&&(addGetter(_t,"byteLength"),addGetter(wt,"buffer"),addGetter(wt,"byteLength"),addGetter(wt,"byteOffset")),Oe(Ct,{getInt8:function getInt8(_){return get(this,1,_)[0]<<24>>24},getUint8:function getUint8(_){return get(this,1,_)[0]},getInt16:function getInt16(_){var w=get(this,2,_,arguments.length>1?arguments[1]:void 0);return(w[1]<<8|w[0])<<16>>16},getUint16:function getUint16(_){var w=get(this,2,_,arguments.length>1?arguments[1]:void 0);return w[1]<<8|w[0]},getInt32:function getInt32(_){return unpackInt32(get(this,4,_,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(_){return unpackInt32(get(this,4,_,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(_){return Dt(get(this,4,_,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(_){return Dt(get(this,8,_,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(_,w){set(this,1,_,packInt8,w)},setUint8:function setUint8(_,w){set(this,1,_,packInt8,w)},setInt16:function setInt16(_,w){set(this,2,_,packInt16,w,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(_,w){set(this,2,_,packInt16,w,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(_,w){set(this,4,_,packInt32,w,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(_,w){set(this,4,_,packInt32,w,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(_,w){set(this,4,_,packFloat32,w,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(_,w){set(this,8,_,packFloat64,w,arguments.length>2?arguments[2]:void 0)}});bt(_t,vt),bt(wt,Ot),_.exports={ArrayBuffer:_t,DataView:wt}},1048:(_,w,P)=>{"use strict";var ne=P(47908),pe=P(51400),me=P(26244),Me=Math.min;_.exports=[].copyWithin||function copyWithin(_,w){var P=ne(this),ye=me(P),ve=pe(_,ye),Oe=pe(w,ye),Ae=arguments.length>2?arguments[2]:void 0,Re=Me((void 0===Ae?ye:pe(Ae,ye))-Oe,ye-ve),we=1;for(Oe0;)Oe in P?P[ve]=P[Oe]:delete P[ve],ve+=we,Oe+=we;return P}},21285:(_,w,P)=>{"use strict";var ne=P(47908),pe=P(51400),me=P(26244);_.exports=function fill(_){for(var w=ne(this),P=me(w),Me=arguments.length,ye=pe(Me>1?arguments[1]:void 0,P),ve=Me>2?arguments[2]:void 0,Oe=void 0===ve?P:pe(ve,P);Oe>ye;)w[ye++]=_;return w}},18533:(_,w,P)=>{"use strict";var ne=P(42092).forEach,pe=P(9341)("forEach");_.exports=pe?[].forEach:function forEach(_){return ne(this,_,arguments.length>1?arguments[1]:void 0)}},97745:(_,w,P)=>{var ne=P(26244);_.exports=function(_,w){for(var P=0,pe=ne(w),me=new _(pe);pe>P;)me[P]=w[P++];return me}},48457:(_,w,P)=>{"use strict";var ne=P(17854),pe=P(49974),me=P(46916),Me=P(47908),ye=P(53411),ve=P(97659),Oe=P(4411),Ae=P(26244),Re=P(86135),we=P(18554),ke=P(71246),Te=ne.Array;_.exports=function from(_){var w=Me(_),P=Oe(this),ne=arguments.length,Fe=ne>1?arguments[1]:void 0,Ve=void 0!==Fe;Ve&&(Fe=pe(Fe,ne>2?arguments[2]:void 0));var $e,Xe,nt,ot,ut,bt,gt=ke(w),mt=0;if(!gt||this==Te&&ve(gt))for($e=Ae(w),Xe=P?new this($e):Te($e);$e>mt;mt++)bt=Ve?Fe(w[mt],mt):w[mt],Re(Xe,mt,bt);else for(ut=(ot=we(w,gt)).next,Xe=P?new this:[];!(nt=me(ut,ot)).done;mt++)bt=Ve?ye(ot,Fe,[nt.value,mt],!0):nt.value,Re(Xe,mt,bt);return Xe.length=mt,Xe}},41318:(_,w,P)=>{var ne=P(45656),pe=P(51400),me=P(26244),createMethod=function(_){return function(w,P,Me){var ye,ve=ne(w),Oe=me(ve),Ae=pe(Me,Oe);if(_&&P!=P){for(;Oe>Ae;)if((ye=ve[Ae++])!=ye)return!0}else for(;Oe>Ae;Ae++)if((_||Ae in ve)&&ve[Ae]===P)return _||Ae||0;return!_&&-1}};_.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},42092:(_,w,P)=>{var ne=P(49974),pe=P(1702),me=P(68361),Me=P(47908),ye=P(26244),ve=P(65417),Oe=pe([].push),createMethod=function(_){var w=1==_,P=2==_,pe=3==_,Ae=4==_,Re=6==_,we=7==_,ke=5==_||Re;return function(Te,Fe,Ve,$e){for(var Xe,nt,ot=Me(Te),ut=me(ot),bt=ne(Fe,Ve),gt=ye(ut),mt=0,Mt=$e||ve,yt=w?Mt(Te,gt):P||we?Mt(Te,0):void 0;gt>mt;mt++)if((ke||mt in ut)&&(nt=bt(Xe=ut[mt],mt,ot),_))if(w)yt[mt]=nt;else if(nt)switch(_){case 3:return!0;case 5:return Xe;case 6:return mt;case 2:Oe(yt,Xe)}else switch(_){case 4:return!1;case 7:Oe(yt,Xe)}return Re?-1:pe||Ae?Ae:yt}};_.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},86583:(_,w,P)=>{"use strict";var ne=P(22104),pe=P(45656),me=P(19303),Me=P(26244),ye=P(9341),ve=Math.min,Oe=[].lastIndexOf,Ae=!!Oe&&1/[1].lastIndexOf(1,-0)<0,Re=ye("lastIndexOf"),we=Ae||!Re;_.exports=we?function lastIndexOf(_){if(Ae)return ne(Oe,this,arguments)||0;var w=pe(this),P=Me(w),ye=P-1;for(arguments.length>1&&(ye=ve(ye,me(arguments[1]))),ye<0&&(ye=P+ye);ye>=0;ye--)if(ye in w&&w[ye]===_)return ye||0;return-1}:Oe},81194:(_,w,P)=>{var ne=P(47293),pe=P(5112),me=P(7392),Me=pe("species");_.exports=function(_){return me>=51||!ne((function(){var w=[];return(w.constructor={})[Me]=function(){return{foo:1}},1!==w[_](Boolean).foo}))}},9341:(_,w,P)=>{"use strict";var ne=P(47293);_.exports=function(_,w){var P=[][_];return!!P&&ne((function(){P.call(null,w||function(){return 1},1)}))}},53671:(_,w,P)=>{var ne=P(17854),pe=P(19662),me=P(47908),Me=P(68361),ye=P(26244),ve=ne.TypeError,createMethod=function(_){return function(w,P,ne,Oe){pe(P);var Ae=me(w),Re=Me(Ae),we=ye(Ae),ke=_?we-1:0,Te=_?-1:1;if(ne<2)for(;;){if(ke in Re){Oe=Re[ke],ke+=Te;break}if(ke+=Te,_?ke<0:we<=ke)throw ve("Reduce of empty array with no initial value")}for(;_?ke>=0:we>ke;ke+=Te)ke in Re&&(Oe=P(Oe,Re[ke],ke,Ae));return Oe}};_.exports={left:createMethod(!1),right:createMethod(!0)}},41589:(_,w,P)=>{var ne=P(17854),pe=P(51400),me=P(26244),Me=P(86135),ye=ne.Array,ve=Math.max;_.exports=function(_,w,P){for(var ne=me(_),Oe=pe(w,ne),Ae=pe(void 0===P?ne:P,ne),Re=ye(ve(Ae-Oe,0)),we=0;Oe{var ne=P(1702);_.exports=ne([].slice)},94362:(_,w,P)=>{var ne=P(41589),pe=Math.floor,mergeSort=function(_,w){var P=_.length,me=pe(P/2);return P<8?insertionSort(_,w):merge(_,mergeSort(ne(_,0,me),w),mergeSort(ne(_,me),w),w)},insertionSort=function(_,w){for(var P,ne,pe=_.length,me=1;me0;)_[ne]=_[--ne];ne!==me++&&(_[ne]=P)}return _},merge=function(_,w,P,ne){for(var pe=w.length,me=P.length,Me=0,ye=0;Me{var ne=P(17854),pe=P(43157),me=P(4411),Me=P(70111),ye=P(5112)("species"),ve=ne.Array;_.exports=function(_){var w;return pe(_)&&(w=_.constructor,(me(w)&&(w===ve||pe(w.prototype))||Me(w)&&null===(w=w[ye]))&&(w=void 0)),void 0===w?ve:w}},65417:(_,w,P)=>{var ne=P(77475);_.exports=function(_,w){return new(ne(_))(0===w?0:w)}},14170:_=>{for(var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",P={},ne=0;ne<66;ne++)P[w.charAt(ne)]=ne;_.exports={itoc:w,ctoi:P}},53411:(_,w,P)=>{var ne=P(19670),pe=P(99212);_.exports=function(_,w,P,me){try{return me?w(ne(P)[0],P[1]):w(P)}catch(w){pe(_,"throw",w)}}},17072:(_,w,P)=>{var ne=P(5112)("iterator"),pe=!1;try{var me=0,Me={next:function(){return{done:!!me++}},return:function(){pe=!0}};Me[ne]=function(){return this},Array.from(Me,(function(){throw 2}))}catch(_){}_.exports=function(_,w){if(!w&&!pe)return!1;var P=!1;try{var me={};me[ne]=function(){return{next:function(){return{done:P=!0}}}},_(me)}catch(_){}return P}},84326:(_,w,P)=>{var ne=P(1702),pe=ne({}.toString),me=ne("".slice);_.exports=function(_){return me(pe(_),8,-1)}},70648:(_,w,P)=>{var ne=P(17854),pe=P(51694),me=P(60614),Me=P(84326),ye=P(5112)("toStringTag"),ve=ne.Object,Oe="Arguments"==Me(function(){return arguments}()),tryGet=function(_,w){try{return _[w]}catch(_){}};_.exports=pe?Me:function(_){var w,P,ne;return void 0===_?"Undefined":null===_?"Null":"string"==typeof(P=tryGet(w=ve(_),ye))?P:Oe?Me(w):"Object"==(ne=Me(w))&&me(w.callee)?"Arguments":ne}},77741:(_,w,P)=>{var ne=P(1702)("".replace),pe=String(Error("zxcasd").stack),me=/\n\s*at [^:]*:[^\n]*/,Me=me.test(pe);_.exports=function(_,w){if(Me&&"string"==typeof _)for(;w--;)_=ne(_,me,"");return _}},95631:(_,w,P)=>{"use strict";var ne=P(3070).f,pe=P(70030),me=P(12248),Me=P(49974),ye=P(25787),ve=P(20408),Oe=P(70654),Ae=P(96340),Re=P(19781),we=P(62423).fastKey,ke=P(29909),Te=ke.set,Fe=ke.getterFor;_.exports={getConstructor:function(_,w,P,Oe){var Ae=_((function(_,ne){ye(_,ke),Te(_,{type:w,index:pe(null),first:void 0,last:void 0,size:0}),Re||(_.size=0),null!=ne&&ve(ne,_[Oe],{that:_,AS_ENTRIES:P})})),ke=Ae.prototype,Ve=Fe(w),define=function(_,w,P){var ne,pe,me=Ve(_),Me=getEntry(_,w);return Me?Me.value=P:(me.last=Me={index:pe=we(w,!0),key:w,value:P,previous:ne=me.last,next:void 0,removed:!1},me.first||(me.first=Me),ne&&(ne.next=Me),Re?me.size++:_.size++,"F"!==pe&&(me.index[pe]=Me)),_},getEntry=function(_,w){var P,ne=Ve(_),pe=we(w);if("F"!==pe)return ne.index[pe];for(P=ne.first;P;P=P.next)if(P.key==w)return P};return me(ke,{clear:function clear(){for(var _=Ve(this),w=_.index,P=_.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=void 0),delete w[P.index],P=P.next;_.first=_.last=void 0,Re?_.size=0:this.size=0},delete:function(_){var w=this,P=Ve(w),ne=getEntry(w,_);if(ne){var pe=ne.next,me=ne.previous;delete P.index[ne.index],ne.removed=!0,me&&(me.next=pe),pe&&(pe.previous=me),P.first==ne&&(P.first=pe),P.last==ne&&(P.last=me),Re?P.size--:w.size--}return!!ne},forEach:function forEach(_){for(var w,P=Ve(this),ne=Me(_,arguments.length>1?arguments[1]:void 0);w=w?w.next:P.first;)for(ne(w.value,w.key,this);w&&w.removed;)w=w.previous},has:function has(_){return!!getEntry(this,_)}}),me(ke,P?{get:function get(_){var w=getEntry(this,_);return w&&w.value},set:function set(_,w){return define(this,0===_?0:_,w)}}:{add:function add(_){return define(this,_=0===_?0:_,_)}}),Re&&ne(ke,"size",{get:function(){return Ve(this).size}}),Ae},setStrong:function(_,w,P){var ne=w+" Iterator",pe=Fe(w),me=Fe(ne);Oe(_,w,(function(_,w){Te(this,{type:ne,target:_,state:pe(_),kind:w,last:void 0})}),(function(){for(var _=me(this),w=_.kind,P=_.last;P&&P.removed;)P=P.previous;return _.target&&(_.last=P=P?P.next:_.state.first)?"keys"==w?{value:P.key,done:!1}:"values"==w?{value:P.value,done:!1}:{value:[P.key,P.value],done:!1}:(_.target=void 0,{value:void 0,done:!0})}),P?"entries":"values",!P,!0),Ae(w)}}},29320:(_,w,P)=>{"use strict";var ne=P(1702),pe=P(12248),me=P(62423).getWeakData,Me=P(19670),ye=P(70111),ve=P(25787),Oe=P(20408),Ae=P(42092),Re=P(92597),we=P(29909),ke=we.set,Te=we.getterFor,Fe=Ae.find,Ve=Ae.findIndex,$e=ne([].splice),Xe=0,uncaughtFrozenStore=function(_){return _.frozen||(_.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(_,w){return Fe(_.entries,(function(_){return _[0]===w}))};UncaughtFrozenStore.prototype={get:function(_){var w=findUncaughtFrozen(this,_);if(w)return w[1]},has:function(_){return!!findUncaughtFrozen(this,_)},set:function(_,w){var P=findUncaughtFrozen(this,_);P?P[1]=w:this.entries.push([_,w])},delete:function(_){var w=Ve(this.entries,(function(w){return w[0]===_}));return~w&&$e(this.entries,w,1),!!~w}},_.exports={getConstructor:function(_,w,P,ne){var Ae=_((function(_,pe){ve(_,we),ke(_,{type:w,id:Xe++,frozen:void 0}),null!=pe&&Oe(pe,_[ne],{that:_,AS_ENTRIES:P})})),we=Ae.prototype,Fe=Te(w),define=function(_,w,P){var ne=Fe(_),pe=me(Me(w),!0);return!0===pe?uncaughtFrozenStore(ne).set(w,P):pe[ne.id]=P,_};return pe(we,{delete:function(_){var w=Fe(this);if(!ye(_))return!1;var P=me(_);return!0===P?uncaughtFrozenStore(w).delete(_):P&&Re(P,w.id)&&delete P[w.id]},has:function has(_){var w=Fe(this);if(!ye(_))return!1;var P=me(_);return!0===P?uncaughtFrozenStore(w).has(_):P&&Re(P,w.id)}}),pe(we,P?{get:function get(_){var w=Fe(this);if(ye(_)){var P=me(_);return!0===P?uncaughtFrozenStore(w).get(_):P?P[w.id]:void 0}},set:function set(_,w){return define(this,_,w)}}:{add:function add(_){return define(this,_,!0)}}),Ae}}},77710:(_,w,P)=>{"use strict";var ne=P(82109),pe=P(17854),me=P(1702),Me=P(54705),ye=P(31320),ve=P(62423),Oe=P(20408),Ae=P(25787),Re=P(60614),we=P(70111),ke=P(47293),Te=P(17072),Fe=P(58003),Ve=P(79587);_.exports=function(_,w,P){var $e=-1!==_.indexOf("Map"),Xe=-1!==_.indexOf("Weak"),nt=$e?"set":"add",ot=pe[_],ut=ot&&ot.prototype,bt=ot,gt={},fixMethod=function(_){var w=me(ut[_]);ye(ut,_,"add"==_?function add(_){return w(this,0===_?0:_),this}:"delete"==_?function(_){return!(Xe&&!we(_))&&w(this,0===_?0:_)}:"get"==_?function get(_){return Xe&&!we(_)?void 0:w(this,0===_?0:_)}:"has"==_?function has(_){return!(Xe&&!we(_))&&w(this,0===_?0:_)}:function set(_,P){return w(this,0===_?0:_,P),this})};if(Me(_,!Re(ot)||!(Xe||ut.forEach&&!ke((function(){(new ot).entries().next()})))))bt=P.getConstructor(w,_,$e,nt),ve.enable();else if(Me(_,!0)){var mt=new bt,Mt=mt[nt](Xe?{}:-0,1)!=mt,yt=ke((function(){mt.has(1)})),zt=Te((function(_){new ot(_)})),vt=!Xe&&ke((function(){for(var _=new ot,w=5;w--;)_[nt](w,w);return!_.has(-0)}));zt||((bt=w((function(_,w){Ae(_,ut);var P=Ve(new ot,_,bt);return null!=w&&Oe(w,P[nt],{that:P,AS_ENTRIES:$e}),P}))).prototype=ut,ut.constructor=bt),(yt||vt)&&(fixMethod("delete"),fixMethod("has"),$e&&fixMethod("get")),(vt||Mt)&&fixMethod(nt),Xe&&ut.clear&&delete ut.clear}return gt[_]=bt,ne({global:!0,forced:bt!=ot},gt),Fe(bt,_),Xe||P.setStrong(bt,_,$e),bt}},99920:(_,w,P)=>{var ne=P(92597),pe=P(53887),me=P(31236),Me=P(3070);_.exports=function(_,w,P){for(var ye=pe(w),ve=Me.f,Oe=me.f,Ae=0;Ae{var ne=P(5112)("match");_.exports=function(_){var w=/./;try{"/./"[_](w)}catch(P){try{return w[ne]=!1,"/./"[_](w)}catch(_){}}return!1}},49920:(_,w,P)=>{var ne=P(47293);_.exports=!ne((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},14230:(_,w,P)=>{var ne=P(1702),pe=P(84488),me=P(41340),Me=/"/g,ye=ne("".replace);_.exports=function(_,w,P,ne){var ve=me(pe(_)),Oe="<"+w;return""!==P&&(Oe+=" "+P+'="'+ye(me(ne),Me,""")+'"'),Oe+">"+ve+""}},24994:(_,w,P)=>{"use strict";var ne=P(13383).IteratorPrototype,pe=P(70030),me=P(79114),Me=P(58003),ye=P(97497),returnThis=function(){return this};_.exports=function(_,w,P,ve){var Oe=w+" Iterator";return _.prototype=pe(ne,{next:me(+!ve,P)}),Me(_,Oe,!1,!0),ye[Oe]=returnThis,_}},68880:(_,w,P)=>{var ne=P(19781),pe=P(3070),me=P(79114);_.exports=ne?function(_,w,P){return pe.f(_,w,me(1,P))}:function(_,w,P){return _[w]=P,_}},79114:_=>{_.exports=function(_,w){return{enumerable:!(1&_),configurable:!(2&_),writable:!(4&_),value:w}}},86135:(_,w,P)=>{"use strict";var ne=P(34948),pe=P(3070),me=P(79114);_.exports=function(_,w,P){var Me=ne(w);Me in _?pe.f(_,Me,me(0,P)):_[Me]=P}},85573:(_,w,P)=>{"use strict";var ne=P(17854),pe=P(1702),me=P(47293),Me=P(76650).start,ye=ne.RangeError,ve=Math.abs,Oe=Date.prototype,Ae=Oe.toISOString,Re=pe(Oe.getTime),we=pe(Oe.getUTCDate),ke=pe(Oe.getUTCFullYear),Te=pe(Oe.getUTCHours),Fe=pe(Oe.getUTCMilliseconds),Ve=pe(Oe.getUTCMinutes),$e=pe(Oe.getUTCMonth),Xe=pe(Oe.getUTCSeconds);_.exports=me((function(){return"0385-07-25T07:06:39.999Z"!=Ae.call(new Date(-50000000000001))}))||!me((function(){Ae.call(new Date(NaN))}))?function toISOString(){if(!isFinite(Re(this)))throw ye("Invalid time value");var _=this,w=ke(_),P=Fe(_),ne=w<0?"-":w>9999?"+":"";return ne+Me(ve(w),ne?6:4,0)+"-"+Me($e(_)+1,2,0)+"-"+Me(we(_),2,0)+"T"+Me(Te(_),2,0)+":"+Me(Ve(_),2,0)+":"+Me(Xe(_),2,0)+"."+Me(P,3,0)+"Z"}:Ae},38709:(_,w,P)=>{"use strict";var ne=P(17854),pe=P(19670),me=P(92140),Me=ne.TypeError;_.exports=function(_){if(pe(this),"string"===_||"default"===_)_="string";else if("number"!==_)throw Me("Incorrect hint");return me(this,_)}},70654:(_,w,P)=>{"use strict";var ne=P(82109),pe=P(46916),me=P(31913),Me=P(76530),ye=P(60614),ve=P(24994),Oe=P(79518),Ae=P(27674),Re=P(58003),we=P(68880),ke=P(31320),Te=P(5112),Fe=P(97497),Ve=P(13383),$e=Me.PROPER,Xe=Me.CONFIGURABLE,nt=Ve.IteratorPrototype,ot=Ve.BUGGY_SAFARI_ITERATORS,ut=Te("iterator"),bt="keys",gt="values",mt="entries",returnThis=function(){return this};_.exports=function(_,w,P,Me,Te,Ve,Mt){ve(P,w,Me);var yt,zt,vt,getIterationMethod=function(_){if(_===Te&&xt)return xt;if(!ot&&_ in Rt)return Rt[_];switch(_){case bt:return function keys(){return new P(this,_)};case gt:return function values(){return new P(this,_)};case mt:return function entries(){return new P(this,_)}}return function(){return new P(this)}},Ot=w+" Iterator",At=!1,Rt=_.prototype,_t=Rt[ut]||Rt["@@iterator"]||Te&&Rt[Te],xt=!ot&&_t||getIterationMethod(Te),wt="Array"==w&&Rt.entries||_t;if(wt&&(yt=Oe(wt.call(new _)))!==Object.prototype&&yt.next&&(me||Oe(yt)===nt||(Ae?Ae(yt,nt):ye(yt[ut])||ke(yt,ut,returnThis)),Re(yt,Ot,!0,!0),me&&(Fe[Ot]=returnThis)),$e&&Te==gt&&_t&&_t.name!==gt&&(!me&&Xe?we(Rt,"name",gt):(At=!0,xt=function values(){return pe(_t,this)})),Te)if(zt={values:getIterationMethod(gt),keys:Ve?xt:getIterationMethod(bt),entries:getIterationMethod(mt)},Mt)for(vt in zt)(ot||At||!(vt in Rt))&&ke(Rt,vt,zt[vt]);else ne({target:w,proto:!0,forced:ot||At},zt);return me&&!Mt||Rt[ut]===xt||ke(Rt,ut,xt,{name:Te}),Fe[w]=xt,zt}},97235:(_,w,P)=>{var ne=P(40857),pe=P(92597),me=P(6061),Me=P(3070).f;_.exports=function(_){var w=ne.Symbol||(ne.Symbol={});pe(w,_)||Me(w,_,{value:me.f(_)})}},19781:(_,w,P)=>{var ne=P(47293);_.exports=!ne((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},80317:(_,w,P)=>{var ne=P(17854),pe=P(70111),me=ne.document,Me=pe(me)&&pe(me.createElement);_.exports=function(_){return Me?me.createElement(_):{}}},93678:_=>{_.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},48324:_=>{_.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},98509:(_,w,P)=>{var ne=P(80317)("span").classList,pe=ne&&ne.constructor&&ne.constructor.prototype;_.exports=pe===Object.prototype?void 0:pe},68886:(_,w,P)=>{var ne=P(88113).match(/firefox\/(\d+)/i);_.exports=!!ne&&+ne[1]},7871:_=>{_.exports="object"==typeof window},30256:(_,w,P)=>{var ne=P(88113);_.exports=/MSIE|Trident/.test(ne)},71528:(_,w,P)=>{var ne=P(88113),pe=P(17854);_.exports=/ipad|iphone|ipod/i.test(ne)&&void 0!==pe.Pebble},6833:(_,w,P)=>{var ne=P(88113);_.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ne)},35268:(_,w,P)=>{var ne=P(84326),pe=P(17854);_.exports="process"==ne(pe.process)},71036:(_,w,P)=>{var ne=P(88113);_.exports=/web0s(?!.*chrome)/i.test(ne)},88113:(_,w,P)=>{var ne=P(35005);_.exports=ne("navigator","userAgent")||""},7392:(_,w,P)=>{var ne,pe,me=P(17854),Me=P(88113),ye=me.process,ve=me.Deno,Oe=ye&&ye.versions||ve&&ve.version,Ae=Oe&&Oe.v8;Ae&&(pe=(ne=Ae.split("."))[0]>0&&ne[0]<4?1:+(ne[0]+ne[1])),!pe&&Me&&(!(ne=Me.match(/Edge\/(\d+)/))||ne[1]>=74)&&(ne=Me.match(/Chrome\/(\d+)/))&&(pe=+ne[1]),_.exports=pe},98008:(_,w,P)=>{var ne=P(88113).match(/AppleWebKit\/(\d+)\./);_.exports=!!ne&&+ne[1]},80748:_=>{_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},22914:(_,w,P)=>{var ne=P(47293),pe=P(79114);_.exports=!ne((function(){var _=Error("a");return!("stack"in _)||(Object.defineProperty(_,"stack",pe(1,7)),7!==_.stack)}))},7762:(_,w,P)=>{"use strict";var ne=P(19781),pe=P(47293),me=P(19670),Me=P(70030),ye=P(56277),ve=Error.prototype.toString,Oe=pe((function(){if(ne){var _=Me(Object.defineProperty({},"name",{get:function(){return this===_}}));if("true"!==ve.call(_))return!0}return"2: 1"!==ve.call({message:1,name:2})||"Error"!==ve.call({})}));_.exports=Oe?function toString(){var _=me(this),w=ye(_.name,"Error"),P=ye(_.message);return w?P?w+": "+P:w:P}:ve},82109:(_,w,P)=>{var ne=P(17854),pe=P(31236).f,me=P(68880),Me=P(31320),ye=P(83505),ve=P(99920),Oe=P(54705);_.exports=function(_,w){var P,Ae,Re,we,ke,Te=_.target,Fe=_.global,Ve=_.stat;if(P=Fe?ne:Ve?ne[Te]||ye(Te,{}):(ne[Te]||{}).prototype)for(Ae in w){if(we=w[Ae],Re=_.noTargetGet?(ke=pe(P,Ae))&&ke.value:P[Ae],!Oe(Fe?Ae:Te+(Ve?".":"#")+Ae,_.forced)&&void 0!==Re){if(typeof we==typeof Re)continue;ve(we,Re)}(_.sham||Re&&Re.sham)&&me(we,"sham",!0),Me(P,Ae,we,_)}}},47293:_=>{_.exports=function(_){try{return!!_()}catch(_){return!0}}},27007:(_,w,P)=>{"use strict";P(74916);var ne=P(1702),pe=P(31320),me=P(22261),Me=P(47293),ye=P(5112),ve=P(68880),Oe=ye("species"),Ae=RegExp.prototype;_.exports=function(_,w,P,Re){var we=ye(_),ke=!Me((function(){var w={};return w[we]=function(){return 7},7!=""[_](w)})),Te=ke&&!Me((function(){var w=!1,P=/a/;return"split"===_&&((P={}).constructor={},P.constructor[Oe]=function(){return P},P.flags="",P[we]=/./[we]),P.exec=function(){return w=!0,null},P[we](""),!w}));if(!ke||!Te||P){var Fe=ne(/./[we]),Ve=w(we,""[_],(function(_,w,P,pe,Me){var ye=ne(_),ve=w.exec;return ve===me||ve===Ae.exec?ke&&!Me?{done:!0,value:Fe(w,P,pe)}:{done:!0,value:ye(P,w,pe)}:{done:!1}}));pe(String.prototype,_,Ve[0]),pe(Ae,we,Ve[1])}Re&&ve(Ae[we],"sham",!0)}},6790:(_,w,P)=>{"use strict";var ne=P(17854),pe=P(43157),me=P(26244),Me=P(49974),ye=ne.TypeError,flattenIntoArray=function(_,w,P,ne,ve,Oe,Ae,Re){for(var we,ke,Te=ve,Fe=0,Ve=!!Ae&&Me(Ae,Re);Fe0&&pe(we))ke=me(we),Te=flattenIntoArray(_,w,we,ke,Te,Oe-1)-1;else{if(Te>=9007199254740991)throw ye("Exceed the acceptable array length");_[Te]=we}Te++}Fe++}return Te};_.exports=flattenIntoArray},76677:(_,w,P)=>{var ne=P(47293);_.exports=!ne((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:(_,w,P)=>{var ne=P(34374),pe=Function.prototype,me=pe.apply,Me=pe.call;_.exports="object"==typeof Reflect&&Reflect.apply||(ne?Me.bind(me):function(){return Me.apply(me,arguments)})},49974:(_,w,P)=>{var ne=P(1702),pe=P(19662),me=P(34374),Me=ne(ne.bind);_.exports=function(_,w){return pe(_),void 0===w?_:me?Me(_,w):function(){return _.apply(w,arguments)}}},34374:(_,w,P)=>{var ne=P(47293);_.exports=!ne((function(){var _=function(){}.bind();return"function"!=typeof _||_.hasOwnProperty("prototype")}))},27065:(_,w,P)=>{"use strict";var ne=P(17854),pe=P(1702),me=P(19662),Me=P(70111),ye=P(92597),ve=P(50206),Oe=P(34374),Ae=ne.Function,Re=pe([].concat),we=pe([].join),ke={},construct=function(_,w,P){if(!ye(ke,w)){for(var ne=[],pe=0;pe{var ne=P(34374),pe=Function.prototype.call;_.exports=ne?pe.bind(pe):function(){return pe.apply(pe,arguments)}},76530:(_,w,P)=>{var ne=P(19781),pe=P(92597),me=Function.prototype,Me=ne&&Object.getOwnPropertyDescriptor,ye=pe(me,"name"),ve=ye&&"something"===function something(){}.name,Oe=ye&&(!ne||ne&&Me(me,"name").configurable);_.exports={EXISTS:ye,PROPER:ve,CONFIGURABLE:Oe}},1702:(_,w,P)=>{var ne=P(34374),pe=Function.prototype,me=pe.bind,Me=pe.call,ye=ne&&me.bind(Me,Me);_.exports=ne?function(_){return _&&ye(_)}:function(_){return _&&function(){return Me.apply(_,arguments)}}},35005:(_,w,P)=>{var ne=P(17854),pe=P(60614),aFunction=function(_){return pe(_)?_:void 0};_.exports=function(_,w){return arguments.length<2?aFunction(ne[_]):ne[_]&&ne[_][w]}},71246:(_,w,P)=>{var ne=P(70648),pe=P(58173),me=P(97497),Me=P(5112)("iterator");_.exports=function(_){if(null!=_)return pe(_,Me)||pe(_,"@@iterator")||me[ne(_)]}},18554:(_,w,P)=>{var ne=P(17854),pe=P(46916),me=P(19662),Me=P(19670),ye=P(66330),ve=P(71246),Oe=ne.TypeError;_.exports=function(_,w){var P=arguments.length<2?ve(_):w;if(me(P))return Me(pe(P,_));throw Oe(ye(_)+" is not iterable")}},58173:(_,w,P)=>{var ne=P(19662);_.exports=function(_,w){var P=_[w];return null==P?void 0:ne(P)}},10647:(_,w,P)=>{var ne=P(1702),pe=P(47908),me=Math.floor,Me=ne("".charAt),ye=ne("".replace),ve=ne("".slice),Oe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ae=/\$([$&'`]|\d{1,2})/g;_.exports=function(_,w,P,ne,Re,we){var ke=P+_.length,Te=ne.length,Fe=Ae;return void 0!==Re&&(Re=pe(Re),Fe=Oe),ye(we,Fe,(function(pe,ye){var Oe;switch(Me(ye,0)){case"$":return"$";case"&":return _;case"`":return ve(w,0,P);case"'":return ve(w,ke);case"<":Oe=Re[ve(ye,1,-1)];break;default:var Ae=+ye;if(0===Ae)return pe;if(Ae>Te){var we=me(Ae/10);return 0===we?pe:we<=Te?void 0===ne[we-1]?Me(ye,1):ne[we-1]+Me(ye,1):pe}Oe=ne[Ae-1]}return void 0===Oe?"":Oe}))}},17854:(_,w,P)=>{var check=function(_){return _&&_.Math==Math&&_};_.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof P.g&&P.g)||function(){return this}()||Function("return this")()},92597:(_,w,P)=>{var ne=P(1702),pe=P(47908),me=ne({}.hasOwnProperty);_.exports=Object.hasOwn||function hasOwn(_,w){return me(pe(_),w)}},3501:_=>{_.exports={}},842:(_,w,P)=>{var ne=P(17854);_.exports=function(_,w){var P=ne.console;P&&P.error&&(1==arguments.length?P.error(_):P.error(_,w))}},60490:(_,w,P)=>{var ne=P(35005);_.exports=ne("document","documentElement")},64664:(_,w,P)=>{var ne=P(19781),pe=P(47293),me=P(80317);_.exports=!ne&&!pe((function(){return 7!=Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a}))},11179:(_,w,P)=>{var ne=P(17854).Array,pe=Math.abs,me=Math.pow,Me=Math.floor,ye=Math.log,ve=Math.LN2;_.exports={pack:function(_,w,P){var Oe,Ae,Re,we=ne(P),ke=8*P-w-1,Te=(1<>1,Ve=23===w?me(2,-24)-me(2,-77):0,$e=_<0||0===_&&1/_<0?1:0,Xe=0;for((_=pe(_))!=_||_===1/0?(Ae=_!=_?1:0,Oe=Te):(Oe=Me(ye(_)/ve),_*(Re=me(2,-Oe))<1&&(Oe--,Re*=2),(_+=Oe+Fe>=1?Ve/Re:Ve*me(2,1-Fe))*Re>=2&&(Oe++,Re/=2),Oe+Fe>=Te?(Ae=0,Oe=Te):Oe+Fe>=1?(Ae=(_*Re-1)*me(2,w),Oe+=Fe):(Ae=_*me(2,Fe-1)*me(2,w),Oe=0));w>=8;)we[Xe++]=255&Ae,Ae/=256,w-=8;for(Oe=Oe<0;)we[Xe++]=255&Oe,Oe/=256,ke-=8;return we[--Xe]|=128*$e,we},unpack:function(_,w){var P,ne=_.length,pe=8*ne-w-1,Me=(1<>1,ve=pe-7,Oe=ne-1,Ae=_[Oe--],Re=127&Ae;for(Ae>>=7;ve>0;)Re=256*Re+_[Oe--],ve-=8;for(P=Re&(1<<-ve)-1,Re>>=-ve,ve+=w;ve>0;)P=256*P+_[Oe--],ve-=8;if(0===Re)Re=1-ye;else{if(Re===Me)return P?NaN:Ae?-1/0:1/0;P+=me(2,w),Re-=ye}return(Ae?-1:1)*P*me(2,Re-w)}}},68361:(_,w,P)=>{var ne=P(17854),pe=P(1702),me=P(47293),Me=P(84326),ye=ne.Object,ve=pe("".split);_.exports=me((function(){return!ye("z").propertyIsEnumerable(0)}))?function(_){return"String"==Me(_)?ve(_,""):ye(_)}:ye},79587:(_,w,P)=>{var ne=P(60614),pe=P(70111),me=P(27674);_.exports=function(_,w,P){var Me,ye;return me&&ne(Me=w.constructor)&&Me!==P&&pe(ye=Me.prototype)&&ye!==P.prototype&&me(_,ye),_}},42788:(_,w,P)=>{var ne=P(1702),pe=P(60614),me=P(5465),Me=ne(Function.toString);pe(me.inspectSource)||(me.inspectSource=function(_){return Me(_)}),_.exports=me.inspectSource},58340:(_,w,P)=>{var ne=P(70111),pe=P(68880);_.exports=function(_,w){ne(w)&&"cause"in w&&pe(_,"cause",w.cause)}},62423:(_,w,P)=>{var ne=P(82109),pe=P(1702),me=P(3501),Me=P(70111),ye=P(92597),ve=P(3070).f,Oe=P(8006),Ae=P(1156),Re=P(52050),we=P(69711),ke=P(76677),Te=!1,Fe=we("meta"),Ve=0,setMetadata=function(_){ve(_,Fe,{value:{objectID:"O"+Ve++,weakData:{}}})},$e=_.exports={enable:function(){$e.enable=function(){},Te=!0;var _=Oe.f,w=pe([].splice),P={};P[Fe]=1,_(P).length&&(Oe.f=function(P){for(var ne=_(P),pe=0,me=ne.length;pe{var ne,pe,me,Me=P(68536),ye=P(17854),ve=P(1702),Oe=P(70111),Ae=P(68880),Re=P(92597),we=P(5465),ke=P(6200),Te=P(3501),Fe="Object already initialized",Ve=ye.TypeError,$e=ye.WeakMap;if(Me||we.state){var Xe=we.state||(we.state=new $e),nt=ve(Xe.get),ot=ve(Xe.has),ut=ve(Xe.set);ne=function(_,w){if(ot(Xe,_))throw new Ve(Fe);return w.facade=_,ut(Xe,_,w),w},pe=function(_){return nt(Xe,_)||{}},me=function(_){return ot(Xe,_)}}else{var bt=ke("state");Te[bt]=!0,ne=function(_,w){if(Re(_,bt))throw new Ve(Fe);return w.facade=_,Ae(_,bt,w),w},pe=function(_){return Re(_,bt)?_[bt]:{}},me=function(_){return Re(_,bt)}}_.exports={set:ne,get:pe,has:me,enforce:function(_){return me(_)?pe(_):ne(_,{})},getterFor:function(_){return function(w){var P;if(!Oe(w)||(P=pe(w)).type!==_)throw Ve("Incompatible receiver, "+_+" required");return P}}}},97659:(_,w,P)=>{var ne=P(5112),pe=P(97497),me=ne("iterator"),Me=Array.prototype;_.exports=function(_){return void 0!==_&&(pe.Array===_||Me[me]===_)}},43157:(_,w,P)=>{var ne=P(84326);_.exports=Array.isArray||function isArray(_){return"Array"==ne(_)}},60614:_=>{_.exports=function(_){return"function"==typeof _}},4411:(_,w,P)=>{var ne=P(1702),pe=P(47293),me=P(60614),Me=P(70648),ye=P(35005),ve=P(42788),noop=function(){},Oe=[],Ae=ye("Reflect","construct"),Re=/^\s*(?:class|function)\b/,we=ne(Re.exec),ke=!Re.exec(noop),Te=function isConstructor(_){if(!me(_))return!1;try{return Ae(noop,Oe,_),!0}catch(_){return!1}},Fe=function isConstructor(_){if(!me(_))return!1;switch(Me(_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ke||!!we(Re,ve(_))}catch(_){return!0}};Fe.sham=!0,_.exports=!Ae||pe((function(){var _;return Te(Te.call)||!Te(Object)||!Te((function(){_=!0}))||_}))?Fe:Te},45032:(_,w,P)=>{var ne=P(92597);_.exports=function(_){return void 0!==_&&(ne(_,"value")||ne(_,"writable"))}},54705:(_,w,P)=>{var ne=P(47293),pe=P(60614),me=/#|\.prototype\./,isForced=function(_,w){var P=ye[Me(_)];return P==Oe||P!=ve&&(pe(w)?ne(w):!!w)},Me=isForced.normalize=function(_){return String(_).replace(me,".").toLowerCase()},ye=isForced.data={},ve=isForced.NATIVE="N",Oe=isForced.POLYFILL="P";_.exports=isForced},55988:(_,w,P)=>{var ne=P(70111),pe=Math.floor;_.exports=Number.isInteger||function isInteger(_){return!ne(_)&&isFinite(_)&&pe(_)===_}},70111:(_,w,P)=>{var ne=P(60614);_.exports=function(_){return"object"==typeof _?null!==_:ne(_)}},31913:_=>{_.exports=!1},47850:(_,w,P)=>{var ne=P(70111),pe=P(84326),me=P(5112)("match");_.exports=function(_){var w;return ne(_)&&(void 0!==(w=_[me])?!!w:"RegExp"==pe(_))}},52190:(_,w,P)=>{var ne=P(17854),pe=P(35005),me=P(60614),Me=P(47976),ye=P(43307),ve=ne.Object;_.exports=ye?function(_){return"symbol"==typeof _}:function(_){var w=pe("Symbol");return me(w)&&Me(w.prototype,ve(_))}},20408:(_,w,P)=>{var ne=P(17854),pe=P(49974),me=P(46916),Me=P(19670),ye=P(66330),ve=P(97659),Oe=P(26244),Ae=P(47976),Re=P(18554),we=P(71246),ke=P(99212),Te=ne.TypeError,Result=function(_,w){this.stopped=_,this.result=w},Fe=Result.prototype;_.exports=function(_,w,P){var ne,Ve,$e,Xe,nt,ot,ut,bt=P&&P.that,gt=!(!P||!P.AS_ENTRIES),mt=!(!P||!P.IS_ITERATOR),Mt=!(!P||!P.INTERRUPTED),yt=pe(w,bt),stop=function(_){return ne&&ke(ne,"normal",_),new Result(!0,_)},callFn=function(_){return gt?(Me(_),Mt?yt(_[0],_[1],stop):yt(_[0],_[1])):Mt?yt(_,stop):yt(_)};if(mt)ne=_;else{if(!(Ve=we(_)))throw Te(ye(_)+" is not iterable");if(ve(Ve)){for($e=0,Xe=Oe(_);Xe>$e;$e++)if((nt=callFn(_[$e]))&&Ae(Fe,nt))return nt;return new Result(!1)}ne=Re(_,Ve)}for(ot=ne.next;!(ut=me(ot,ne)).done;){try{nt=callFn(ut.value)}catch(_){ke(ne,"throw",_)}if("object"==typeof nt&&nt&&Ae(Fe,nt))return nt}return new Result(!1)}},99212:(_,w,P)=>{var ne=P(46916),pe=P(19670),me=P(58173);_.exports=function(_,w,P){var Me,ye;pe(_);try{if(!(Me=me(_,"return"))){if("throw"===w)throw P;return P}Me=ne(Me,_)}catch(_){ye=!0,Me=_}if("throw"===w)throw P;if(ye)throw Me;return pe(Me),P}},13383:(_,w,P)=>{"use strict";var ne,pe,me,Me=P(47293),ye=P(60614),ve=P(70030),Oe=P(79518),Ae=P(31320),Re=P(5112),we=P(31913),ke=Re("iterator"),Te=!1;[].keys&&("next"in(me=[].keys())?(pe=Oe(Oe(me)))!==Object.prototype&&(ne=pe):Te=!0),null==ne||Me((function(){var _={};return ne[ke].call(_)!==_}))?ne={}:we&&(ne=ve(ne)),ye(ne[ke])||Ae(ne,ke,(function(){return this})),_.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:Te}},97497:_=>{_.exports={}},26244:(_,w,P)=>{var ne=P(17466);_.exports=function(_){return ne(_.length)}},66736:_=>{var w=Math.expm1,P=Math.exp;_.exports=!w||w(10)>22025.465794806718||w(10)<22025.465794806718||-2e-17!=w(-2e-17)?function expm1(_){return 0==(_=+_)?_:_>-1e-6&&_<1e-6?_+_*_/2:P(_)-1}:w},26130:(_,w,P)=>{var ne=P(64310),pe=Math.abs,me=Math.pow,Me=me(2,-52),ye=me(2,-23),ve=me(2,127)*(2-ye),Oe=me(2,-126);_.exports=Math.fround||function fround(_){var w,P,me=pe(_),Ae=ne(_);return meve||P!=P?Ae*(1/0):Ae*P}},20403:_=>{var w=Math.log,P=Math.LOG10E;_.exports=Math.log10||function log10(_){return w(_)*P}},26513:_=>{var w=Math.log;_.exports=Math.log1p||function log1p(_){return(_=+_)>-1e-8&&_<1e-8?_-_*_/2:w(1+_)}},64310:_=>{_.exports=Math.sign||function sign(_){return 0==(_=+_)||_!=_?_:_<0?-1:1}},95948:(_,w,P)=>{var ne,pe,me,Me,ye,ve,Oe,Ae,Re=P(17854),we=P(49974),ke=P(31236).f,Te=P(20261).set,Fe=P(6833),Ve=P(71528),$e=P(71036),Xe=P(35268),nt=Re.MutationObserver||Re.WebKitMutationObserver,ot=Re.document,ut=Re.process,bt=Re.Promise,gt=ke(Re,"queueMicrotask"),mt=gt&>.value;mt||(ne=function(){var _,w;for(Xe&&(_=ut.domain)&&_.exit();pe;){w=pe.fn,pe=pe.next;try{w()}catch(_){throw pe?Me():me=void 0,_}}me=void 0,_&&_.enter()},Fe||Xe||$e||!nt||!ot?!Ve&&bt&&bt.resolve?((Oe=bt.resolve(void 0)).constructor=bt,Ae=we(Oe.then,Oe),Me=function(){Ae(ne)}):Xe?Me=function(){ut.nextTick(ne)}:(Te=we(Te,Re),Me=function(){Te(ne)}):(ye=!0,ve=ot.createTextNode(""),new nt(ne).observe(ve,{characterData:!0}),Me=function(){ve.data=ye=!ye})),_.exports=mt||function(_){var w={fn:_,next:void 0};me&&(me.next=w),pe||(pe=w,Me()),me=w}},13366:(_,w,P)=>{var ne=P(17854);_.exports=ne.Promise},30133:(_,w,P)=>{var ne=P(7392),pe=P(47293);_.exports=!!Object.getOwnPropertySymbols&&!pe((function(){var _=Symbol();return!String(_)||!(Object(_)instanceof Symbol)||!Symbol.sham&&ne&&ne<41}))},590:(_,w,P)=>{var ne=P(47293),pe=P(5112),me=P(31913),Me=pe("iterator");_.exports=!ne((function(){var _=new URL("b?a=1&b=2&c=3","http://a"),w=_.searchParams,P="";return _.pathname="c%20d",w.forEach((function(_,ne){w.delete("b"),P+=ne+_})),me&&!_.toJSON||!w.sort||"http://a/c%20d?a=1&c=3"!==_.href||"3"!==w.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!w[Me]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==P||"x"!==new URL("http://x",void 0).host}))},68536:(_,w,P)=>{var ne=P(17854),pe=P(60614),me=P(42788),Me=ne.WeakMap;_.exports=pe(Me)&&/native code/.test(me(Me))},78523:(_,w,P)=>{"use strict";var ne=P(19662),PromiseCapability=function(_){var w,P;this.promise=new _((function(_,ne){if(void 0!==w||void 0!==P)throw TypeError("Bad Promise constructor");w=_,P=ne})),this.resolve=ne(w),this.reject=ne(P)};_.exports.f=function(_){return new PromiseCapability(_)}},56277:(_,w,P)=>{var ne=P(41340);_.exports=function(_,w){return void 0===_?arguments.length<2?"":w:ne(_)}},3929:(_,w,P)=>{var ne=P(17854),pe=P(47850),me=ne.TypeError;_.exports=function(_){if(pe(_))throw me("The method doesn't accept regular expressions");return _}},77023:(_,w,P)=>{var ne=P(17854).isFinite;_.exports=Number.isFinite||function isFinite(_){return"number"==typeof _&&ne(_)}},2814:(_,w,P)=>{var ne=P(17854),pe=P(47293),me=P(1702),Me=P(41340),ye=P(53111).trim,ve=P(81361),Oe=me("".charAt),Ae=ne.parseFloat,Re=ne.Symbol,we=Re&&Re.iterator,ke=1/Ae(ve+"-0")!=-1/0||we&&!pe((function(){Ae(Object(we))}));_.exports=ke?function parseFloat(_){var w=ye(Me(_)),P=Ae(w);return 0===P&&"-"==Oe(w,0)?-0:P}:Ae},83009:(_,w,P)=>{var ne=P(17854),pe=P(47293),me=P(1702),Me=P(41340),ye=P(53111).trim,ve=P(81361),Oe=ne.parseInt,Ae=ne.Symbol,Re=Ae&&Ae.iterator,we=/^[+-]?0x/i,ke=me(we.exec),Te=8!==Oe(ve+"08")||22!==Oe(ve+"0x16")||Re&&!pe((function(){Oe(Object(Re))}));_.exports=Te?function parseInt(_,w){var P=ye(Me(_));return Oe(P,w>>>0||(ke(we,P)?16:10))}:Oe},21574:(_,w,P)=>{"use strict";var ne=P(19781),pe=P(1702),me=P(46916),Me=P(47293),ye=P(81956),ve=P(25181),Oe=P(55296),Ae=P(47908),Re=P(68361),we=Object.assign,ke=Object.defineProperty,Te=pe([].concat);_.exports=!we||Me((function(){if(ne&&1!==we({b:1},we(ke({},"a",{enumerable:!0,get:function(){ke(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var _={},w={},P=Symbol(),pe="abcdefghijklmnopqrst";return _[P]=7,pe.split("").forEach((function(_){w[_]=_})),7!=we({},_)[P]||ye(we({},w)).join("")!=pe}))?function assign(_,w){for(var P=Ae(_),pe=arguments.length,Me=1,we=ve.f,ke=Oe.f;pe>Me;)for(var Fe,Ve=Re(arguments[Me++]),$e=we?Te(ye(Ve),we(Ve)):ye(Ve),Xe=$e.length,nt=0;Xe>nt;)Fe=$e[nt++],ne&&!me(ke,Ve,Fe)||(P[Fe]=Ve[Fe]);return P}:we},70030:(_,w,P)=>{var ne,pe=P(19670),me=P(36048),Me=P(80748),ye=P(3501),ve=P(60490),Oe=P(80317),Ae=P(6200),Re=Ae("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(_){return" + \ No newline at end of file