diff --git a/package-lock.json b/package-lock.json index 0cda4e4d..0ebb3171 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "hasInstallScript": true, "license": "GPL-3.0-or-later", "dependencies": { + "openalex-sdk": "^1.1.6", "prop-types": "^15.7.2", "quickstatements-to-wikibase-edit": "^1.2.1", "react": "^18.3.1", @@ -20,6 +21,7 @@ }, "devDependencies": { "@types/language-tags": "^1.0.4", + "@types/lodash": "^4.17.9", "@types/node": "^20.10.4", "@types/react-dom": "^18.3.0", "eslint": "^8.55.0", @@ -594,7 +596,6 @@ "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, "dependencies": { "eslint-visitor-keys": "^3.3.0" }, @@ -609,7 +610,6 @@ "version": "4.10.0", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", - "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } @@ -618,7 +618,6 @@ "version": "2.1.4", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -641,7 +640,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -651,7 +649,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -663,7 +660,6 @@ "version": "8.57.0", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", - "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } @@ -678,11 +674,17 @@ "npm": ">=7.0.0" } }, + "node_modules/@gar/promisify": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", + "license": "MIT", + "optional": true + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "dev": true, "dependencies": { "@humanwhocodes/object-schema": "^2.0.2", "debug": "^4.3.1", @@ -696,7 +698,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -706,7 +707,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -718,7 +718,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, "engines": { "node": ">=12.22" }, @@ -730,8 +729,7 @@ "node_modules/@humanwhocodes/object-schema": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "dev": true + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==" }, "node_modules/@hutson/parse-repository-url": { "version": "5.0.0", @@ -991,7 +989,6 @@ "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -1008,7 +1005,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true, "engines": { "node": ">=12" }, @@ -1020,7 +1016,6 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, "engines": { "node": ">=12" }, @@ -1031,14 +1026,12 @@ "node_modules/@isaacs/cliui/node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" }, "node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -1055,7 +1048,6 @@ "version": "7.1.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -1070,7 +1062,6 @@ "version": "8.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -1173,7 +1164,6 @@ "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -1186,7 +1176,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, "engines": { "node": ">= 8" } @@ -1195,7 +1184,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -1204,6 +1192,45 @@ "node": ">= 8" } }, + "node_modules/@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "node_modules/@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "deprecated": "This functionality has been moved to @npmcli/fs", + "license": "MIT", + "optional": true, + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@npmcli/move-file/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", + "optional": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/@octokit/app": { "version": "15.1.0", "resolved": "https://registry.npmjs.org/@octokit/app/-/app-15.1.0.tgz", @@ -1993,7 +2020,6 @@ "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, "optional": true, "engines": { "node": ">=14" @@ -2064,6 +2090,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@sqltools/formatter": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@sqltools/formatter/-/formatter-1.2.5.tgz", + "integrity": "sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==", + "license": "MIT" + }, "node_modules/@szmarczak/http-timer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", @@ -2076,6 +2108,16 @@ "node": ">=14.16" } }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 6" + } + }, "node_modules/@tootallnate/quickjs-emscripten": { "version": "0.23.0", "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", @@ -2099,6 +2141,12 @@ "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", "dev": true }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" + }, "node_modules/@types/language-tags": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@types/language-tags/-/language-tags-1.0.4.tgz", @@ -2115,6 +2163,13 @@ "localforage": "*" } }, + "node_modules/@types/lodash": { + "version": "4.17.9", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.9.tgz", + "integrity": "sha512-w9iWudx1XWOHW5lQRS9iKpK/XuRhnN+0T7HvdCCd802FYkT1AMTnxndJHGrNJwRoRHkslGr4S29tjm1cT7x/7w==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/minimatch": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", @@ -2173,8 +2228,7 @@ "node_modules/@types/semver": { "version": "7.5.8", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", - "dev": true + "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==" }, "node_modules/@types/wrap-ansi": { "version": "3.0.0", @@ -2196,7 +2250,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.14.1.tgz", "integrity": "sha512-aAJd6bIf2vvQRjUG3ZkNXkmBpN+J7Wd0mfQiiVCJMu9Z5GcZZdcc0j8XwN/BM97Fl7e3SkTXODSk4VehUv7CGw==", - "dev": true, + "devOptional": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "7.14.1", @@ -2229,7 +2283,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.14.1.tgz", "integrity": "sha512-8lKUOebNLcR0D7RvlcloOacTOWzOqemWEWkKSVpMZVF/XVcwjPR+3MD08QzbW9TCGJ+DwIc6zUSGZ9vd8cO1IA==", - "dev": true, + "devOptional": true, "dependencies": { "@typescript-eslint/scope-manager": "7.14.1", "@typescript-eslint/types": "7.14.1", @@ -2257,7 +2311,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.14.1.tgz", "integrity": "sha512-gPrFSsoYcsffYXTOZ+hT7fyJr95rdVe4kGVX1ps/dJ+DfmlnjFN/GcMxXcVkeHDKqsq6uAcVaQaIi3cFffmAbA==", - "dev": true, + "devOptional": true, "dependencies": { "@typescript-eslint/types": "7.14.1", "@typescript-eslint/visitor-keys": "7.14.1" @@ -2274,7 +2328,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.14.1.tgz", "integrity": "sha512-/MzmgNd3nnbDbOi3LfasXWWe292+iuo+umJ0bCCMCPc1jLO/z2BQmWUUUXvXLbrQey/JgzdF/OV+I5bzEGwJkQ==", - "dev": true, + "devOptional": true, "dependencies": { "@typescript-eslint/typescript-estree": "7.14.1", "@typescript-eslint/utils": "7.14.1", @@ -2301,7 +2355,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.14.1.tgz", "integrity": "sha512-mL7zNEOQybo5R3AavY+Am7KLv8BorIv7HCYS5rKoNZKQD9tsfGUpO4KdAn3sSUvTiS4PQkr2+K0KJbxj8H9NDg==", - "dev": true, + "devOptional": true, "engines": { "node": "^18.18.0 || >=20.0.0" }, @@ -2314,7 +2368,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.14.1.tgz", "integrity": "sha512-k5d0VuxViE2ulIO6FbxxSZaxqDVUyMbXcidC8rHvii0I56XZPv8cq+EhMns+d/EVIL41sMXqRbK3D10Oza1bbA==", - "dev": true, + "devOptional": true, "dependencies": { "@typescript-eslint/types": "7.14.1", "@typescript-eslint/visitor-keys": "7.14.1", @@ -2342,7 +2396,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.14.1.tgz", "integrity": "sha512-CMmVVELns3nak3cpJhZosDkm63n+DwBlDX8g0k4QUa9BMnF+lH2lr3d130M1Zt1xxmB3LLk3NV7KQCq86ZBBhQ==", - "dev": true, + "devOptional": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@typescript-eslint/scope-manager": "7.14.1", @@ -2364,7 +2418,7 @@ "version": "7.14.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.14.1.tgz", "integrity": "sha512-Crb+F75U1JAEtBeQGxSKwI60hZmmzaqA3z9sYsVm8X7W5cwLEm5bRe0/uXS6+MR/y8CVpKSR/ontIAIEPFcEkA==", - "dev": true, + "devOptional": true, "dependencies": { "@typescript-eslint/types": "7.14.1", "eslint-visitor-keys": "^3.4.3" @@ -2380,8 +2434,7 @@ "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "dev": true + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" }, "node_modules/@xmldom/xmldom": { "version": "0.7.13", @@ -2419,7 +2472,6 @@ "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", - "dev": true, "bin": { "acorn": "bin/acorn" }, @@ -2431,7 +2483,6 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -2653,11 +2704,37 @@ "node": ">= 14" } }, + "node_modules/agentkeepalive": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", + "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", + "license": "MIT", + "optional": true, + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "license": "MIT", + "optional": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -2711,7 +2788,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "devOptional": true, "engines": { "node": ">=8" } @@ -2720,7 +2796,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -2734,8 +2809,7 @@ "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", - "dev": true + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" }, "node_modules/anymatch": { "version": "3.1.3", @@ -2750,6 +2824,15 @@ "node": ">= 8" } }, + "node_modules/app-root-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz", + "integrity": "sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, "node_modules/aproba": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", @@ -2787,8 +2870,7 @@ "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/array-differ": { "version": "4.0.0", @@ -2812,7 +2894,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, "engines": { "node": ">=8" } @@ -2844,6 +2925,12 @@ "retry": "0.13.1" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -2872,17 +2959,26 @@ "when-exit": "^2.1.1" } }, + "node_modules/axios": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "devOptional": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, "funding": [ { "type": "github", @@ -2934,11 +3030,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "license": "MIT", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", @@ -2949,7 +3053,6 @@ "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -3118,7 +3221,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -3127,7 +3229,6 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, "dependencies": { "fill-range": "^7.1.1" }, @@ -3139,7 +3240,6 @@ "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, "funding": [ { "type": "github", @@ -3266,6 +3366,121 @@ "node": ">=8" } }, + "node_modules/cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/cacache/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", + "optional": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/cacache/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "optional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cacache/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cacache/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "optional": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/cacache/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacache/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", + "optional": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/cacheable-lookup": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", @@ -3334,7 +3549,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, "engines": { "node": ">=6" } @@ -3370,7 +3584,6 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -3455,7 +3668,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "devOptional": true, "engines": { "node": ">=10" } @@ -3502,6 +3714,16 @@ "consola": "^3.2.3" } }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=6" + } + }, "node_modules/cli-boxes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz", @@ -3529,22 +3751,119 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cli-spinners": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", - "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" + "node_modules/cli-highlight": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz", + "integrity": "sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==", + "license": "ISC", + "dependencies": { + "chalk": "^4.0.0", + "highlight.js": "^10.7.1", + "mz": "^2.4.0", + "parse5": "^5.1.1", + "parse5-htmlparser2-tree-adapter": "^6.0.0", + "yargs": "^16.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "bin": { + "highlight": "bin/highlight" + }, + "engines": { + "node": ">=8.0.0", + "npm": ">=5.0.0" } }, - "node_modules/cli-truncate": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz", + "node_modules/cli-highlight/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/cli-highlight/node_modules/parse5": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", + "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "license": "MIT" + }, + "node_modules/cli-highlight/node_modules/parse5-htmlparser2-tree-adapter": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz", + "integrity": "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==", + "license": "MIT", + "dependencies": { + "parse5": "^6.0.1" + } + }, + "node_modules/cli-highlight/node_modules/parse5-htmlparser2-tree-adapter/node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "license": "MIT" + }, + "node_modules/cli-highlight/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/cli-highlight/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "license": "MIT", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cli-highlight/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-truncate": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz", "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==", "dev": true, "license": "MIT", @@ -3627,7 +3946,6 @@ "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -3641,7 +3959,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -3667,7 +3984,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, "dependencies": { "color-name": "~1.1.4" }, @@ -3678,8 +3994,7 @@ "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/color-support": { "version": "1.1.3", @@ -3710,6 +4025,18 @@ "node": ">=8.0.0" } }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/commander": { "version": "9.5.0", "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", @@ -3752,8 +4079,7 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "devOptional": true + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/concat-stream": { "version": "1.6.2", @@ -4056,7 +4382,6 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -4152,6 +4477,12 @@ "node": ">= 12" } }, + "node_modules/dayjs": { + "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", + "license": "MIT" + }, "node_modules/debounce": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", @@ -4162,7 +4493,6 @@ "version": "4.3.7", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "devOptional": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -4192,7 +4522,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "dev": true, "dependencies": { "mimic-response": "^3.1.0" }, @@ -4207,7 +4536,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "dev": true, "engines": { "node": ">=10" }, @@ -4219,7 +4547,6 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, "engines": { "node": ">=4.0.0" } @@ -4227,8 +4554,7 @@ "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "node_modules/deepmerge": { "version": "4.3.1", @@ -4337,6 +4663,15 @@ "node": ">= 14" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -4359,7 +4694,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", - "optional": true, "engines": { "node": ">=8" } @@ -4368,7 +4702,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, "dependencies": { "path-type": "^4.0.0" }, @@ -4380,7 +4713,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, "dependencies": { "esutils": "^2.0.2" }, @@ -4462,7 +4794,6 @@ "version": "16.4.5", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "dev": true, "engines": { "node": ">=12" }, @@ -4487,20 +4818,40 @@ "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "devOptional": true + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/encoding": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/encoding/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, "dependencies": { "once": "^1.4.0" } @@ -4521,7 +4872,7 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true, + "devOptional": true, "engines": { "node": ">=6" } @@ -4555,6 +4906,13 @@ "path-webpack": "0.0.3" } }, + "node_modules/err-code": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", + "license": "MIT", + "optional": true + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -4632,7 +4990,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true, "engines": { "node": ">=6" } @@ -4653,7 +5010,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, "engines": { "node": ">=10" }, @@ -4686,7 +5042,6 @@ "version": "8.57.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", - "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -4737,6 +5092,153 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-plugin-jest": { + "version": "27.9.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.9.0.tgz", + "integrity": "sha512-QIT7FH7fNmd9n4se7FFKHbsLKGQiw885Ds6Y/sxKgCZ6natwCsXdgPOADnYVxN2QrRweF0FZWbJ6S7Rsn7llug==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "^5.10.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^5.0.0 || ^6.0.0 || ^7.0.0", + "eslint": "^7.0.0 || ^8.0.0", + "jest": "*" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "jest": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/eslint-plugin-jest/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-plugin-jest/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, "node_modules/eslint-plugin-no-unsanitized": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/eslint-plugin-no-unsanitized/-/eslint-plugin-no-unsanitized-4.0.2.tgz", @@ -4750,7 +5252,6 @@ "version": "7.2.2", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -4766,7 +5267,6 @@ "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -4778,7 +5278,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4788,7 +5287,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, "dependencies": { "is-glob": "^4.0.3" }, @@ -4800,7 +5298,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -4826,7 +5323,6 @@ "version": "9.6.1", "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, "dependencies": { "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", @@ -4856,7 +5352,6 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, "dependencies": { "estraverse": "^5.1.0" }, @@ -4868,7 +5363,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, "dependencies": { "estraverse": "^5.2.0" }, @@ -4880,7 +5374,6 @@ "version": "5.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, "engines": { "node": ">=4.0" } @@ -4889,7 +5382,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -4951,6 +5443,15 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "license": "(MIT OR WTFPL)", + "engines": { + "node": ">=6" + } + }, "node_modules/ext": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", @@ -4977,14 +5478,12 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -5005,14 +5504,12 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fast-redact": { "version": "3.5.0", @@ -5027,7 +5524,6 @@ "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dev": true, "dependencies": { "reusify": "^1.0.4" } @@ -5068,7 +5564,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, "dependencies": { "flat-cache": "^3.0.4" }, @@ -5076,11 +5571,16 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "license": "MIT" + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, "dependencies": { "to-regex-range": "^5.0.1" }, @@ -5092,7 +5592,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -5178,7 +5677,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "dev": true, "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.3", @@ -5191,14 +5689,32 @@ "node_modules/flatted": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "dev": true + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==" + }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } }, "node_modules/foreground-child": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz", "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", - "dev": true, "dependencies": { "cross-spawn": "^7.0.0", "signal-exit": "^4.0.1" @@ -5210,6 +5726,20 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/form-data-encoder": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.4.tgz", @@ -5231,6 +5761,12 @@ "node": ">=12.20.0" } }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "license": "MIT" + }, "node_modules/fs-extra": { "version": "11.2.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", @@ -5249,7 +5785,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "devOptional": true, "dependencies": { "minipass": "^3.0.0" }, @@ -5261,7 +5796,6 @@ "version": "3.3.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "devOptional": true, "dependencies": { "yallist": "^4.0.0" }, @@ -5272,8 +5806,7 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "devOptional": true + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/fsevents": { "version": "2.3.3", @@ -5377,7 +5910,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -5520,11 +6052,16 @@ "git-up": "^7.0.0" } }, + "node_modules/github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "license": "MIT" + }, "node_modules/glob": { "version": "10.4.5", "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dev": true, "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -5544,7 +6081,6 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -5562,7 +6098,6 @@ "version": "7.1.2", "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, "engines": { "node": ">=16 || 14 >=14.17" } @@ -5612,7 +6147,6 @@ "version": "13.24.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, "dependencies": { "type-fest": "^0.20.2" }, @@ -5627,7 +6161,6 @@ "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -5696,7 +6229,7 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "devOptional": true }, "node_modules/graceful-readlink": { "version": "1.0.1", @@ -5707,8 +6240,7 @@ "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==" }, "node_modules/growly": { "version": "1.3.0", @@ -5741,7 +6273,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, "engines": { "node": ">=8" } @@ -5812,6 +6343,15 @@ "node": ">= 0.4" } }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, "node_modules/hookable": { "version": "5.5.3", "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", @@ -5859,7 +6399,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", - "dev": true + "devOptional": true }, "node_modules/http-proxy-agent": { "version": "7.0.2", @@ -5909,6 +6449,16 @@ "node": ">=16.17.0" } }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "ms": "^2.0.0" + } + }, "node_modules/husky": { "version": "9.1.6", "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.6.tgz", @@ -5942,7 +6492,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, "funding": [ { "type": "github", @@ -5962,7 +6511,6 @@ "version": "5.3.1", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", - "dev": true, "engines": { "node": ">= 4" } @@ -5991,7 +6539,6 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -6016,11 +6563,20 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, "engines": { "node": ">=0.8.19" } }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8" + } + }, "node_modules/index-to-position": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-0.1.2.tgz", @@ -6033,11 +6589,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "license": "ISC", + "optional": true + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "devOptional": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -6220,7 +6782,7 @@ "version": "9.0.5", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", - "dev": true, + "devOptional": true, "dependencies": { "jsbn": "1.1.0", "sprintf-js": "^1.1.3" @@ -6305,7 +6867,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -6314,7 +6875,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "devOptional": true, "engines": { "node": ">=8" } @@ -6323,7 +6883,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -6393,6 +6952,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-lambda": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", + "license": "MIT", + "optional": true + }, "node_modules/is-mergeable-object": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/is-mergeable-object/-/is-mergeable-object-1.1.1.tgz", @@ -6415,7 +6981,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, "engines": { "node": ">=0.12.0" } @@ -6433,7 +6998,6 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, "engines": { "node": ">=8" } @@ -6537,8 +7101,7 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/issue-parser": { "version": "7.0.1", @@ -6560,7 +7123,6 @@ "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dev": true, "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -6604,7 +7166,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, "dependencies": { "argparse": "^2.0.1" }, @@ -6616,13 +7177,12 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", - "dev": true + "devOptional": true }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" }, "node_modules/json-merge-patch": { "version": "1.0.2", @@ -6642,8 +7202,7 @@ "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify": { "version": "1.1.1", @@ -6666,8 +7225,7 @@ "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" }, "node_modules/jsonfile": { "version": "6.1.0", @@ -6705,7 +7263,6 @@ "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, "dependencies": { "json-buffer": "3.0.1" } @@ -6792,7 +7349,6 @@ "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -7027,7 +7583,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, "dependencies": { "p-locate": "^5.0.0" }, @@ -7075,8 +7630,7 @@ "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" }, "node_modules/lodash.uniqby": { "version": "4.7.0", @@ -7401,6 +7955,117 @@ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, + "node_modules/make-fetch-happen": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", + "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", + "license": "ISC", + "optional": true, + "dependencies": { + "agentkeepalive": "^4.1.3", + "cacache": "^15.2.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^6.0.0", + "minipass": "^3.1.3", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^1.3.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.2", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^6.0.0", + "ssri": "^8.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/make-fetch-happen/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/make-fetch-happen/node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "license": "MIT", + "optional": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/make-fetch-happen/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "optional": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/make-fetch-happen/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-fetch-happen/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/make-fetch-happen/node_modules/socks-proxy-agent": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", + "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, "node_modules/map-age-cleaner": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", @@ -7469,7 +8134,6 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, "engines": { "node": ">= 8" } @@ -7478,7 +8142,6 @@ "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -7506,7 +8169,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, "engines": { "node": ">= 0.6" } @@ -7515,7 +8177,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "dependencies": { "mime-db": "1.52.0" }, @@ -7564,7 +8225,6 @@ "version": "9.0.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -7579,7 +8239,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7588,7 +8247,141 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "devOptional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-collect/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-fetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", + "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", + "license": "MIT", + "optional": true, + "dependencies": { + "minipass": "^3.1.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "optionalDependencies": { + "encoding": "^0.1.12" + } + }, + "node_modules/minipass-fetch/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-sized": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", + "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, "engines": { "node": ">=8" } @@ -7597,7 +8390,6 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "devOptional": true, "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" @@ -7610,7 +8402,6 @@ "version": "3.3.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "devOptional": true, "dependencies": { "yallist": "^4.0.0" }, @@ -7631,6 +8422,12 @@ "mkdirp": "bin/cmd.js" } }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "license": "MIT" + }, "node_modules/mlly": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.1.tgz", @@ -7657,7 +8454,6 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "devOptional": true, "license": "MIT" }, "node_modules/multimatch": { @@ -7797,7 +8593,6 @@ "version": "2.7.0", "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "dev": true, "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", @@ -7810,11 +8605,16 @@ "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==", "optional": true }, + "node_modules/napi-build-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", + "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==", + "license": "MIT" + }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==" }, "node_modules/ncp": { "version": "2.0.0", @@ -7826,6 +8626,16 @@ "ncp": "bin/ncp" } }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", @@ -7873,6 +8683,24 @@ "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, + "node_modules/node-abi": { + "version": "3.68.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.68.0.tgz", + "integrity": "sha512-7vbj10trelExNjFSBm5kTvZXXa7pZyKWx9RCKIyqe6I9Ev3IzGpQoqBP3a+cOdxY+pWj6VkP28n/2wWysBHD/A==", + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "license": "MIT" + }, "node_modules/node-domexception": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", @@ -7925,6 +8753,152 @@ "node": ">= 6.13.0" } }, + "node_modules/node-gyp": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", + "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", + "license": "MIT", + "optional": true, + "dependencies": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^9.1.0", + "nopt": "^5.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": ">= 10.12.0" + } + }, + "node_modules/node-gyp/node_modules/are-we-there-yet": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "optional": true, + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/node-gyp/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", + "optional": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/node-gyp/node_modules/gauge": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "optional": true, + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/node-gyp/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "optional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/node-gyp/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "optional": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/node-gyp/node_modules/npmlog": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "optional": true, + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/node-gyp/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "optional": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/node-gyp/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC", + "optional": true + }, "node_modules/node-notifier": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-10.0.1.tgz", @@ -8291,7 +9265,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "devOptional": true, "dependencies": { "wrappy": "1" } @@ -8342,11 +9315,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/openalex-sdk": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/openalex-sdk/-/openalex-sdk-1.1.6.tgz", + "integrity": "sha512-aLCH+gdUy6suA5SH1R6XP0zk4XSQ0oEtVUt4PAA5lTeJHARqi6MkSkdg16BJPb6ldrUd8t+jAVM1JSxowDmD6g==", + "license": "ISC", + "dependencies": { + "axios": "^1.6.7", + "eslint-plugin-jest": "^27.9.0", + "glob": "^10.3.10", + "reflect-metadata": "^0.2.1", + "sqlite3": "^5.1.7", + "typeorm": "^0.3.20", + "typescript": "^5.3.3" + } + }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", @@ -8633,11 +9620,25 @@ "node": ">=6" } }, - "node_modules/p-limit": { + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate/node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -8648,13 +9649,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, + "node_modules/p-locate/node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "license": "MIT", + "optional": true, "dependencies": { - "p-limit": "^3.0.2" + "aggregate-error": "^3.0.0" }, "engines": { "node": ">=10" @@ -8716,8 +9730,7 @@ "node_modules/package-json-from-dist": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", - "dev": true + "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==" }, "node_modules/package-json/node_modules/get-stream": { "version": "6.0.1", @@ -8765,7 +9778,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, "dependencies": { "callsites": "^3.0.0" }, @@ -8948,7 +9960,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, "engines": { "node": ">=8" } @@ -8957,7 +9968,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "devOptional": true, "engines": { "node": ">=0.10.0" } @@ -8966,7 +9976,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, "engines": { "node": ">=8" } @@ -8981,7 +9990,6 @@ "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dev": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -8996,14 +10004,12 @@ "node_modules/path-scurry/node_modules/lru-cache": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, "engines": { "node": ">=8" } @@ -9062,7 +10068,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "engines": { "node": ">=8.6" }, @@ -9181,11 +10186,61 @@ "pathe": "^1.1.2" } }, + "node_modules/prebuild-install": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz", + "integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==", + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^1.0.1", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/prebuild-install/node_modules/simple-get": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, "engines": { "node": ">= 0.8.0" } @@ -9225,6 +10280,37 @@ "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==", "dev": true }, + "node_modules/promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", + "license": "ISC", + "optional": true + }, + "node_modules/promise-retry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", + "license": "MIT", + "optional": true, + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/promise-retry/node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/promise-toolbox": { "version": "0.21.0", "resolved": "https://registry.npmjs.org/promise-toolbox/-/promise-toolbox-0.21.0.tgz", @@ -9294,14 +10380,12 @@ "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -9311,7 +10395,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, "engines": { "node": ">=6" } @@ -9344,7 +10427,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, "funding": [ { "type": "github", @@ -9402,7 +10484,6 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -9416,14 +10497,12 @@ "node_modules/rc/node_modules/ini": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, "node_modules/rc/node_modules/strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -9600,6 +10679,12 @@ "node": ">= 0.10" } }, + "node_modules/reflect-metadata": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", + "license": "Apache-2.0" + }, "node_modules/regenerator-runtime": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", @@ -10000,7 +11085,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -10041,7 +11125,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, "engines": { "node": ">=4" } @@ -10120,7 +11203,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -10137,7 +11219,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "devOptional": true, "dependencies": { "glob": "^7.1.3" }, @@ -10152,7 +11233,6 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "devOptional": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -10162,7 +11242,6 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "devOptional": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -10182,7 +11261,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "devOptional": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -10215,7 +11293,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, "funding": [ { "type": "github", @@ -10247,7 +11324,6 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, "funding": [ { "type": "github", @@ -10283,7 +11359,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, + "devOptional": true, "license": "MIT" }, "node_modules/sax": { @@ -10304,7 +11380,6 @@ "version": "7.6.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", - "devOptional": true, "bin": { "semver": "bin/semver.js" }, @@ -10359,7 +11434,6 @@ "version": "2.4.11", "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, "dependencies": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" @@ -10372,7 +11446,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -10384,7 +11457,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, "engines": { "node": ">=8" } @@ -10465,7 +11537,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, "engines": { "node": ">=14" }, @@ -10490,8 +11561,7 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "optional": true + ] }, "node_modules/simple-get": { "version": "3.1.1", @@ -10538,7 +11608,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, "engines": { "node": ">=8" } @@ -10590,7 +11659,7 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "dev": true, + "devOptional": true, "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" @@ -10600,7 +11669,7 @@ "version": "2.8.3", "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==", - "dev": true, + "devOptional": true, "dependencies": { "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" @@ -10720,7 +11789,57 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "dev": true + "devOptional": true + }, + "node_modules/sqlite3": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.7.tgz", + "integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "bindings": "^1.5.0", + "node-addon-api": "^7.0.0", + "prebuild-install": "^7.1.1", + "tar": "^6.1.11" + }, + "optionalDependencies": { + "node-gyp": "8.x" + }, + "peerDependencies": { + "node-gyp": "8.x" + }, + "peerDependenciesMeta": { + "node-gyp": { + "optional": true + } + } + }, + "node_modules/ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/ssri/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "optional": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } }, "node_modules/std-env": { "version": "3.7.0", @@ -10766,7 +11885,6 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "devOptional": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -10781,7 +11899,6 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -10795,7 +11912,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "devOptional": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -10808,7 +11924,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -10869,7 +11984,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, "engines": { "node": ">=8" }, @@ -10887,7 +12001,6 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -10911,7 +12024,6 @@ "version": "6.2.1", "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "devOptional": true, "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -10924,11 +12036,58 @@ "node": ">=10" } }, + "node_modules/tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "license": "MIT", + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-fs/node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "license": "ISC" + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/tar/node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "devOptional": true, "bin": { "mkdirp": "bin/cmd.js" }, @@ -10939,14 +12098,12 @@ "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "dev": true, "dependencies": { "any-promise": "^1.0.0" } @@ -10955,7 +12112,6 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "dev": true, "dependencies": { "thenify": ">= 3.1.0 < 4" }, @@ -11007,7 +12163,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, "dependencies": { "is-number": "^7.0.0" }, @@ -11034,7 +12189,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", - "dev": true, + "devOptional": true, "engines": { "node": ">=16" }, @@ -11045,8 +12200,40 @@ "node_modules/tslib": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", - "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", - "dev": true + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "license": "MIT", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "license": "0BSD" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } }, "node_modules/type": { "version": "2.7.2", @@ -11057,7 +12244,6 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, "dependencies": { "prelude-ls": "^1.2.1" }, @@ -11078,7 +12264,6 @@ "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, "engines": { "node": ">=10" }, @@ -11101,11 +12286,168 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typeorm": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.20.tgz", + "integrity": "sha512-sJ0T08dV5eoZroaq9uPKBoNcGslHBR4E4y+EBHs//SiGbblGe7IeduP/IH4ddCcj0qp3PHwDwGnuvqEAnKlq/Q==", + "license": "MIT", + "dependencies": { + "@sqltools/formatter": "^1.2.5", + "app-root-path": "^3.1.0", + "buffer": "^6.0.3", + "chalk": "^4.1.2", + "cli-highlight": "^2.1.11", + "dayjs": "^1.11.9", + "debug": "^4.3.4", + "dotenv": "^16.0.3", + "glob": "^10.3.10", + "mkdirp": "^2.1.3", + "reflect-metadata": "^0.2.1", + "sha.js": "^2.4.11", + "tslib": "^2.5.0", + "uuid": "^9.0.0", + "yargs": "^17.6.2" + }, + "bin": { + "typeorm": "cli.js", + "typeorm-ts-node-commonjs": "cli-ts-node-commonjs.js", + "typeorm-ts-node-esm": "cli-ts-node-esm.js" + }, + "engines": { + "node": ">=16.13.0" + }, + "funding": { + "url": "https://opencollective.com/typeorm" + }, + "peerDependencies": { + "@google-cloud/spanner": "^5.18.0", + "@sap/hana-client": "^2.12.25", + "better-sqlite3": "^7.1.2 || ^8.0.0 || ^9.0.0", + "hdb-pool": "^0.1.6", + "ioredis": "^5.0.4", + "mongodb": "^5.8.0", + "mssql": "^9.1.1 || ^10.0.1", + "mysql2": "^2.2.5 || ^3.0.1", + "oracledb": "^6.3.0", + "pg": "^8.5.1", + "pg-native": "^3.0.0", + "pg-query-stream": "^4.0.0", + "redis": "^3.1.1 || ^4.0.0", + "sql.js": "^1.4.0", + "sqlite3": "^5.0.3", + "ts-node": "^10.7.0", + "typeorm-aurora-data-api-driver": "^2.0.0" + }, + "peerDependenciesMeta": { + "@google-cloud/spanner": { + "optional": true + }, + "@sap/hana-client": { + "optional": true + }, + "better-sqlite3": { + "optional": true + }, + "hdb-pool": { + "optional": true + }, + "ioredis": { + "optional": true + }, + "mongodb": { + "optional": true + }, + "mssql": { + "optional": true + }, + "mysql2": { + "optional": true + }, + "oracledb": { + "optional": true + }, + "pg": { + "optional": true + }, + "pg-native": { + "optional": true + }, + "pg-query-stream": { + "optional": true + }, + "redis": { + "optional": true + }, + "sql.js": { + "optional": true + }, + "sqlite3": { + "optional": true + }, + "ts-node": { + "optional": true + }, + "typeorm-aurora-data-api-driver": { + "optional": true + } + } + }, + "node_modules/typeorm/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/typeorm/node_modules/mkdirp": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-2.1.6.tgz", + "integrity": "sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==", + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typeorm/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/typescript": { "version": "5.4.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", - "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -11177,6 +12519,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "license": "ISC", + "optional": true, + "dependencies": { + "unique-slug": "^2.0.0" + } + }, + "node_modules/unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "license": "ISC", + "optional": true, + "dependencies": { + "imurmurhash": "^0.1.4" + } + }, "node_modules/unique-string": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-3.0.0.tgz", @@ -11539,7 +12901,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -12045,7 +13406,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, "dependencies": { "isexe": "^2.0.0" }, @@ -12298,7 +13658,6 @@ "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -12329,7 +13688,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -12345,8 +13703,7 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "devOptional": true + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/write-file-atomic": { "version": "3.0.3", @@ -12425,7 +13782,6 @@ "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, "engines": { "node": ">=10" } @@ -12433,8 +13789,7 @@ "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "devOptional": true + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/yaml": { "version": "2.5.0", @@ -12452,7 +13807,6 @@ "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -12470,7 +13824,6 @@ "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, "engines": { "node": ">=12" } @@ -12485,18 +13838,6 @@ "fd-slicer": "~1.1.0" } }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/yoctocolors-cjs": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", diff --git a/package.json b/package.json index e3af947c..b23e084e 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ }, "homepage": "https://github.com/diegodlh/zotero-cita", "dependencies": { + "openalex-sdk": "^1.1.6", "prop-types": "^15.7.2", "quickstatements-to-wikibase-edit": "^1.2.1", "react": "^18.3.1", @@ -46,6 +47,7 @@ }, "devDependencies": { "@types/language-tags": "^1.0.4", + "@types/lodash": "^4.17.9", "@types/node": "^20.10.4", "@types/react-dom": "^18.3.0", "eslint": "^8.55.0", diff --git a/patches/openalex-sdk+1.1.6.patch b/patches/openalex-sdk+1.1.6.patch new file mode 100644 index 00000000..d32a5872 --- /dev/null +++ b/patches/openalex-sdk+1.1.6.patch @@ -0,0 +1,91 @@ +diff --git a/node_modules/openalex-sdk/dist/src/index.js b/node_modules/openalex-sdk/dist/src/index.js +index 70b2df5..518d455 100644 +--- a/node_modules/openalex-sdk/dist/src/index.js ++++ b/node_modules/openalex-sdk/dist/src/index.js +@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + Object.defineProperty(exports, "__esModule", { value: true }); +-const fs_1 = __importDefault(require("fs")); ++//const fs_1 = __importDefault(require("fs")); + const authors_1 = require("./utils/authors"); + const exportCSV_1 = require("./utils/exportCSV"); + const helpers_1 = require("./utils/helpers"); +diff --git a/node_modules/openalex-sdk/dist/src/utils/authors.js b/node_modules/openalex-sdk/dist/src/utils/authors.js +index 0b1cbc5..f824766 100644 +--- a/node_modules/openalex-sdk/dist/src/utils/authors.js ++++ b/node_modules/openalex-sdk/dist/src/utils/authors.js +@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.handleAllAuthorsPages = exports.handleMultipleAuthorsPages = exports.validateAuthorParameters = void 0; +-const fs_1 = __importDefault(require("fs")); ++//const fs_1 = __importDefault(require("fs")); + const exportCSV_1 = require("./exportCSV"); + const helpers_1 = require("./helpers"); + const http_1 = require("./http"); +diff --git a/node_modules/openalex-sdk/dist/src/utils/exportCSV.js b/node_modules/openalex-sdk/dist/src/utils/exportCSV.js +index 7f4d748..9c01df5 100644 +--- a/node_modules/openalex-sdk/dist/src/utils/exportCSV.js ++++ b/node_modules/openalex-sdk/dist/src/utils/exportCSV.js +@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.convertToCSV = void 0; +-const fs_1 = __importDefault(require("fs")); ++//const fs_1 = __importDefault(require("fs")); + function flattenObject(obj, parentKey = '', depth = 0) { + const flattened = {}; + for (const [key, value] of Object.entries(obj)) { +diff --git a/node_modules/openalex-sdk/dist/src/utils/institutions.js b/node_modules/openalex-sdk/dist/src/utils/institutions.js +index 1082435..099275a 100644 +--- a/node_modules/openalex-sdk/dist/src/utils/institutions.js ++++ b/node_modules/openalex-sdk/dist/src/utils/institutions.js +@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.handleAllInstitutionsPages = exports.handleMultipleInstitutionsPages = exports.validateInstitutionsParameters = void 0; +-const fs_1 = __importDefault(require("fs")); ++//const fs_1 = __importDefault(require("fs")); + const exportCSV_1 = require("./exportCSV"); + const helpers_1 = require("./helpers"); + const http_1 = require("./http"); +diff --git a/node_modules/openalex-sdk/dist/src/utils/sources.js b/node_modules/openalex-sdk/dist/src/utils/sources.js +index 699da8d..38c68b8 100644 +--- a/node_modules/openalex-sdk/dist/src/utils/sources.js ++++ b/node_modules/openalex-sdk/dist/src/utils/sources.js +@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.handleAllSourcesPages = exports.handleMultipleSourcesPages = exports.validateSourcesParameters = void 0; +-const fs_1 = __importDefault(require("fs")); ++//const fs_1 = __importDefault(require("fs")); + const exportCSV_1 = require("./exportCSV"); + const helpers_1 = require("./helpers"); + const http_1 = require("./http"); +diff --git a/node_modules/openalex-sdk/dist/src/utils/topics.js b/node_modules/openalex-sdk/dist/src/utils/topics.js +index b2946cc..b9fd0ed 100644 +--- a/node_modules/openalex-sdk/dist/src/utils/topics.js ++++ b/node_modules/openalex-sdk/dist/src/utils/topics.js +@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.handleAllTopicsPages = exports.handleMultipleTopicsPages = exports.validateTopicsParameters = void 0; +-const fs_1 = __importDefault(require("fs")); ++//const fs_1 = __importDefault(require("fs")); + const exportCSV_1 = require("./exportCSV"); + const helpers_1 = require("./helpers"); + const http_1 = require("./http"); +diff --git a/node_modules/openalex-sdk/dist/src/utils/works.js b/node_modules/openalex-sdk/dist/src/utils/works.js +index 46d5d38..2a5591c 100644 +--- a/node_modules/openalex-sdk/dist/src/utils/works.js ++++ b/node_modules/openalex-sdk/dist/src/utils/works.js +@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.formatNumber = exports.handleAllPagesInChunks = exports.handleMultiplePages = exports.handleAllPages = exports.validateParameters = void 0; +-const fs_1 = __importDefault(require("fs")); ++//const fs_1 = __importDefault(require("fs")); + const exportCSV_1 = require("./exportCSV"); + const helpers_1 = require("./helpers"); + const http_1 = require("./http"); diff --git a/src/cita/citation.ts b/src/cita/citation.ts index 5514037f..683d81e7 100644 --- a/src/cita/citation.ts +++ b/src/cita/citation.ts @@ -15,7 +15,7 @@ class Citation { ocis: { citingId: string; citedId: string; - idType: "qid" | "doi" | "occ"; + idType: "qid" | "doi" | "omid"; oci: string; supplierName: string; valid: boolean; @@ -330,7 +330,7 @@ class Citation { return; } - if (item.libraryID !== this.source.item.libraryID) { + if (item.libraryID && item.libraryID !== this.source.item.libraryID) { Services.prompt.alert( window as mozIDOMWindowProxy, "", diff --git a/src/cita/crossref.ts b/src/cita/crossref.ts index 4e011ffb..613939d6 100644 --- a/src/cita/crossref.ts +++ b/src/cita/crossref.ts @@ -1,17 +1,229 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ -import Wikicite from "./wikicite"; - -declare const Services: any; - -export default class Crossref { - static getCitations() { - Services.prompt.alert( - window, - Wikicite.getString("wikicite.global.unsupported"), - Wikicite.getString("wikicite.crossref.get-citations.unsupported"), +import { IndexerBase, IndexedWork, LookupIdentifier } from "./indexer"; +import ItemWrapper from "./itemWrapper"; +import Wikicite, { debug } from "./wikicite"; +import Lookup from "./zotLookup"; + +interface CrossrefResponse { + status: string; + "message-type": string; + "message-version": string; + message: CrossrefWork; +} + +interface CrossrefWork { + "reference-count": number; + reference: Reference[]; + "references-count": number; +} + +interface Reference { + key: string; + issn?: string; + "standards-body"?: string; + "series-title"?: string; + "isbn-type"?: string; + "doi-asserted-by"?: string; + DOI?: string; + ISBN?: string; + component?: string; + "article-title"?: string; + "volume-title"?: string; + author?: string; + year?: string; + unstructured?: string; + issue?: string; + "first-page"?: string; + volume?: string; + "journal-title"?: string; + edition?: string; + "standard-designator"?: string; + "issn-type"?: string; +} + +function mapCrossrefWorkToIndexedWork( + work: CrossrefWork, +): IndexedWork { + return { + referenceCount: work["reference-count"], // Map Crossref's `reference-count` to `IndexedWork`'s `referenceCount` + referencedWorks: work.reference, // Map `reference` to `referencedWorks` + }; +} + +export default class Crossref extends IndexerBase { + indexerName = "Crossref"; + + supportedPIDs: PIDType[] = ["DOI"]; + + async fetchDOI(item: ItemWrapper): Promise { + const crossrefOpenURL = + "https://doi.crossref.org/openurl?pid=cita@duck.com&"; + const ctx = Zotero.OpenURL.createContextObject(item, "1.0"); + + if (ctx) { + const url = crossrefOpenURL + ctx + "&multihit=true"; + const response = await Zotero.HTTP.request("GET", url).catch( + (e) => { + debug( + `Couldn't access URL: ${url}. Got status ${e.status}.`, + ); + }, + ); + + const xml = response?.responseXML; + + if (xml) { + const status = xml + .getElementsByTagName("query")[0] + .getAttribute("status"); + switch (status) { + case "resolved": + case "multiresolved": { + // We just take the first one + const doi = + xml.getElementsByTagName("doi")[0].textContent; + return doi; + } + case "unresolved": + return null; + default: + throw new Error(`Unexpected status: ${status}`); + } + } + } + return null; + } + + /** + * Get a list of references from Crossref for an item with a certain DOI. + * Returned in JSON Crossref format. + * @param {string[]} identifiers - DOI for the item for which to get references. + * @returns {Promise[]>} list of references, or [] if none. + */ + async getReferences( + identifiers: LookupIdentifier[], + ): Promise[]> { + // Crossref-specific logic for fetching references + const requests = identifiers.map(async (doi) => { + const url = `https://api.crossref.org/works/${Zotero.Utilities.cleanDOI(doi.id)}`; + const options = { + headers: { + "User-Agent": `${Wikicite.getUserAgent()} mailto:cita@duck.com`, + }, + responseType: "json", + }; + const response = await Zotero.HTTP.request( + "GET", + url, + options, + ).catch((e) => { + debug(`Couldn't access URL: ${url}. Got status ${e.status}.`); + if (e.status == 429) { + // Extract rate limit headers + const rateLimitLimit = + e.xmlhttp.getResponseHeader("X-Rate-Limit-Limit"); + const rateLimitInterval = e.xmlhttp.getResponseHeader( + "X-Rate-Limit-Interval", + ); + + throw new Error( + "Received a 429 rate limit response from Crossref (https://github.com/CrossRef/rest-api-doc#rate-limits). Try getting references for fewer items at a time. Rate limits in action: Limit: ${rateLimitLimit}, Interval: ${rateLimitInterval}", + ); + } + }); + + const crossrefWork = (response?.response as CrossrefResponse) + .message; + return mapCrossrefWorkToIndexedWork(crossrefWork); // Map to IndexedWork + }); + return Promise.all(requests); + } + + /** + * Parse a list of references in JSON Crossref format. + * @param {Reference[]} references - Array of Crossref references to parse to Zotero items. + * @returns {Promise} Zotero items parsed from references (where parsing is possible). + */ + async parseReferences(references: Reference[]): Promise { + // Crossref-specific parsing logic + // Extract one identifier per reference (prioritising DOI) and filter out those without identifiers + const _identifiers = references + .map((ref) => ref.DOI ?? ref.ISBN ?? null) + .filter((e) => e !== null); + // Remove duplicates and extract identifiers + const identifiers = [...new Set(_identifiers)].flatMap((e) => + Zotero.Utilities.extractIdentifiers(e!), + ); + const crossrefReferencesWithoutIdentifier = references.filter( + (item) => !item.DOI && !item.ISBN, ); + + // Use Lookup to get items for all identifiers + const result = await Lookup.lookupItemsByIdentifiers(identifiers); + const parsedReferences = result ? result : []; + + // Manually create items for references without identifiers + const manualResult = await Promise.allSettled( + crossrefReferencesWithoutIdentifier.map((item) => + this.parseItemFromCrossrefReference(item), + ), + ); + const parsedReferencesWithoutIdentifier = manualResult + .filter( + (ref): ref is PromiseFulfilledResult => + ref.status === "fulfilled", + ) // Only keep fulfilled promises + .map((ref) => ref.value); // Extract the `value` from fulfilled promises; + parsedReferences.push(...parsedReferencesWithoutIdentifier); + + return parsedReferences; } - static getDOI() {} + /** + * Create a Zotero Item from a Crossref reference item that doesn't include an identifier. + * @param {Reference} crossrefItem - A reference item in JSON Crossref format. + * @returns {Promise} Zotero item parsed from the identifier, or null if parsing failed. + */ + async parseItemFromCrossrefReference( + crossrefItem: Reference, + ): Promise { + //Zotero.log(`Parsing ${crossrefItem.unstructured}`); + const jsonItem: any = {}; + if (crossrefItem["journal-title"]) { + jsonItem.itemType = "journalArticle"; + jsonItem.title = + crossrefItem["article-title"] || crossrefItem["volume-title"]; + jsonItem.publicationTitle = crossrefItem["journal-title"]; + } else if (crossrefItem["volume-title"]) { + jsonItem.itemType = "book"; + jsonItem.title = crossrefItem["volume-title"]; + } else if (crossrefItem.unstructured) { + // todo: Implement reference text parsing here + throw new Error( + "Couldn't parse Crossref reference - unstructured references are not yet supported. " + + JSON.stringify(crossrefItem), + ); + } else { + throw new Error( + "Couldn't determine type of Crossref reference - doesn't contain `journal-title` or `volume-title` field. " + + JSON.stringify(crossrefItem), + ); + } + jsonItem.date = crossrefItem.year; + jsonItem.pages = crossrefItem["first-page"]; + jsonItem.volume = crossrefItem.volume; + jsonItem.issue = crossrefItem.issue; + jsonItem.creators = crossrefItem.author + ? [Zotero.Utilities.cleanAuthor(crossrefItem.author, "author")] + : []; + // remove undefined properties + for (const key in jsonItem) { + if (jsonItem[key] === undefined) { + delete jsonItem[key]; + } + } + + const newItem = new Zotero.Item(jsonItem.itemType); + newItem.fromJSON(jsonItem); + return newItem; + } } diff --git a/src/cita/extract.ts b/src/cita/extract.ts index 949a296e..eab74975 100644 --- a/src/cita/extract.ts +++ b/src/cita/extract.ts @@ -1,13 +1,9 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ import Wikicite from "./wikicite"; -declare const Services: any; - export default class Extraction { static extract() { Services.prompt.alert( - window, + window as mozIDOMWindowProxy, Wikicite.getString("wikicite.global.unsupported"), Wikicite.getString("wikicite.extract.unsupported"), ); diff --git a/src/cita/indexer.ts b/src/cita/indexer.ts new file mode 100644 index 00000000..35614981 --- /dev/null +++ b/src/cita/indexer.ts @@ -0,0 +1,281 @@ +import SourceItemWrapper from "./sourceItemWrapper"; +import Progress from "./progress"; +import Citation from "./citation"; +import Wikicite from "./wikicite"; +import Bottleneck from "bottleneck"; + +// TODO: limiter should debend on indexer +// Initialize Bottleneck for rate limiting (max 50 requests per second) +const limiter = new Bottleneck({ + minTime: 20, // 50 requests per second +}); + +//export type OpenAlexID = `W${number}`; +export type UID = + | { DOI: string } + | { ISBN: string } + | { arXiv: string } + | { openAlex: string } + | { semantic: string } + | { OMID: string } + | { adsBibcode: string } + | { PMID: string } + | { PMCID: string }; + +export interface IndexedWork { + referenceCount: number; + referencedWorks: Ref[]; +} + +export interface LookupIdentifier { + type: PIDType; + id: string; +} + +export abstract class IndexerBase { + /** + * Name of the indexer to be displayed. + */ + abstract indexerName: string; + + /** + * Supported PIDs for the indexer. + */ + abstract supportedPIDs: PIDType[]; + + /** + * Extract supported PID from the source item. + * @param item Source item to extract the PID from. + * @returns Supported PID or null if none + */ + extractSupportedPID(item: SourceItemWrapper): LookupIdentifier | null { + for (const pid of this.supportedPIDs) { + const value = item.getPID(pid, true); // Already clean them up + if (value) return { type: pid, id: value }; + } + + return null; + } + + /** + * Abstract method to get references from the specific indexer. + * @param {LookupIdentifier[]} identifiers - List of DOIs or other identifiers. + * @returns {Promise} Corresponding works. + */ + abstract getReferences( + identifiers: LookupIdentifier[], + ): Promise[]>; + + /** + * Abstract method to parse a list of references into Zotero items. + * @param {Ref[]} references - References for a specific work. + * @returns {Promise} Zotero items parsed from the references. + */ + abstract parseReferences(references: Ref[]): Promise; + + /** + * Filter source items with supported UIDs. + * @param sourceItems Selected items to filter depending on the indexer. + */ + filterItemsWithSupportedIdentifiers( + sourceItems: SourceItemWrapper[], + ): [sourceItems: SourceItemWrapper[], identifiers: LookupIdentifier[]] { + const identifiers: LookupIdentifier[] = []; + const filteredItems: SourceItemWrapper[] = []; + + for (const item of sourceItems) { + const uid = this.extractSupportedPID(item); + if (uid) { + identifiers.push(uid); + filteredItems.push(item); + } + } + + return [filteredItems, identifiers]; + } + + /** + * Get source item citations from the online database. + * @param {SourceItemWrapper[]} sourceItems - One or more source items to get citations for. + */ + async addCitationsToItems( + sourceItems: SourceItemWrapper[], + autoLinkCitations = true, + ) { + // Filter items with valid identifiers (DOI or other) + const [fetchableSourceItems, identifiers] = + this.filterItemsWithSupportedIdentifiers(sourceItems); + if (fetchableSourceItems.length === 0) { + Services.prompt.alert( + window as mozIDOMWindowProxy, + Wikicite.formatString( + "wikicite.indexer.get-citations.no-doi-title", + this.indexerName, + ), + Wikicite.formatString( + "wikicite.indexer.get-citations.no-doi-message", + this.indexerName, + ), + ); + return; + } + + // Ask user confirmation in case some selected items already have citations + if (fetchableSourceItems.some((item) => item.citations.length)) { + const confirmed = Services.prompt.confirm( + window as mozIDOMWindowProxy, + Wikicite.getString( + "wikicite.indexer.get-citations.existing-citations-title", + ), + Wikicite.formatString( + "wikicite.indexer.get-citations.existing-citations-message", + this.indexerName, + ), + ); + if (!confirmed) return; + } + + // Get reference information + const progress = new Progress( + "loading", + Wikicite.formatString( + "wikicite.indexer.get-citations.loading", + this.indexerName, + ), + ); + + const sourceItemReferences = await limiter + .schedule(() => this.getReferences(identifiers)) + .catch((error) => { + Zotero.log(`Error fetching references: ${error}`); + return []; + }); + + // Confirm with the user to add citations + const numberOfCitations: number[] = sourceItemReferences.map( + (ref) => ref.referenceCount, + ); + const itemsToBeUpdated = numberOfCitations.filter((n) => n > 0).length; + const citationsToBeAdded = numberOfCitations.reduce( + (sum, n) => sum + n, + 0, + ); + if (citationsToBeAdded === 0) { + progress.updateLine( + "error", + Wikicite.formatString( + "wikicite.indexer.get-citations.no-references", + this.indexerName, + ), + ); + return; + } + + const confirmed = Services.prompt.confirm( + window as mozIDOMWindowProxy, + Wikicite.formatString( + "wikicite.indexer.get-citations.confirm-title", + this.indexerName, + ), + Wikicite.formatString( + "wikicite.indexer.get-citations.confirm-message", + [itemsToBeUpdated, sourceItems.length], + ) + + "\n\n" + + Wikicite.formatString( + "wikicite.indexer.get-citations.confirm-message-count", + citationsToBeAdded, + ), + ); + if (!confirmed) { + progress.close(); + return; + } + + // Parse the references and add them to the items + progress.updateLine( + "loading", + Wikicite.formatString( + "wikicite.indexer.get-citations.parsing", + this.indexerName, + ), + ); + + try { + let parsedItems = 0; + const parsedItemReferences = await Promise.all( + sourceItemReferences.map(async (work) => { + if (!work.referenceCount) return []; + const parsedReferences = await this.parseReferences( + work.referencedWorks, + ); + progress.updateLine( + "loading", + Wikicite.formatString( + "wikicite.indexer.get-citations.parsing-progress", + [++parsedItems, itemsToBeUpdated], + ), + ); + return parsedReferences; + }), + ); + + const refsFound = parsedItemReferences + .map((ref) => ref.length) + .reduce((sum, n) => sum + n, 0); + + await Zotero.DB.executeTransaction(async () => { + fetchableSourceItems.forEach((sourceItem, index) => { + const newCitedItems = parsedItemReferences[index]; + if (newCitedItems.length > 0) { + const newCitations = newCitedItems.map( + (newItem) => + new Citation( + { item: newItem, ocis: [] }, + sourceItem, + ), + ); + sourceItem.addCitations(newCitations); + if (autoLinkCitations) sourceItem.autoLinkCitations(); + } + }); + }); + + // Auto-linking + // FIXME: even though this is the same code as in localCitationNetwork, items are not updated. Workaround is to open the citation network + /*if (autoLinkCitations) { + Zotero.log("Auto-linking citations"); + const libraryID = sourceItemsWithDOI[0].item.libraryID; + const matcher = new Matcher(libraryID); + progress.updateLine( + 'loading', + Wikicite.getString('wikicite.source-item.auto-link.progress.loading') + ); + await matcher.init(); + for (const wrappedItem of sourceItemsWithDOI) { + wrappedItem.autoLinkCitations(matcher, true); + } + }*/ + + progress.updateLine( + "done", + Wikicite.formatString("wikicite.indexer.get-citations.done", [ + refsFound, + citationsToBeAdded, + this.indexerName, + ]), + ); + } catch (error) { + progress.updateLine( + "error", + Wikicite.formatString( + "wikicite.indexer.get-citations.error-parsing-references", + this.indexerName, + ), + ); + Zotero.log(`Adding citations failed due to error: ${error}`); + } finally { + progress.close(); + } + } +} diff --git a/src/cita/itemWrapper.ts b/src/cita/itemWrapper.ts index 6bdef8e2..c5b5d0e0 100644 --- a/src/cita/itemWrapper.ts +++ b/src/cita/itemWrapper.ts @@ -2,6 +2,10 @@ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-call */ +import Crossref from "./crossref"; +import OpenAlex from "./openalex"; +import OpenCitations from "./opencitations"; +import Progress from "./progress"; import Wikicite from "./wikicite"; import Wikidata from "./wikidata"; @@ -63,11 +67,11 @@ export default class ItemWrapper { // this.place; // for books? // UUIDs - get doi(): string | undefined { - return this.getPID("DOI"); + get doi(): DOI | undefined { + return this.getPID("DOI") as DOI; } - set doi(doi: string) { + set doi(doi: DOI) { this.setPID("DOI", doi); } @@ -88,12 +92,12 @@ export default class ItemWrapper { } // OpenCitations Corpus Internal Identifier - get occ(): string | undefined { - return this.getPID("OCC"); + get omid(): OMID | undefined { + return this.getPID("OMID") as OMID; } - set occ(occ: string) { - this.setPID("OCC", occ); + set omid(omid: OMID) { + this.setPID("OMID", omid); } get url() { @@ -102,16 +106,22 @@ export default class ItemWrapper { url || this.getPidUrl("QID") || this.getPidUrl("DOI") || - this.getPidUrl("OCC") + this.getPidUrl("OMID") ); } getPIDTypes() { - const allTypes: PIDType[] = ["DOI", "ISBN", "QID", "OCC"]; + const allTypesToShow: PIDType[] = [ + "DOI", + "ISBN", + "QID", + "OMID", + "arXiv", + "OpenAlex", + // Don't show PMID or PMCID because we can't fetch citaitons from them + ]; const pidTypes: PIDType[] = []; - for (const type of allTypes) { - // don't need this because we enforce that it's uppercase already - // type = type.toUpperCase(); + for (const type of allTypesToShow) { switch (type) { case "DOI": case "ISBN": @@ -119,6 +129,11 @@ export default class ItemWrapper { pidTypes.push(type); } break; + case "arXiv": + if (this.item.itemType === "preprint") { + pidTypes.push(type); + } + break; default: pidTypes.push(type); } @@ -126,7 +141,32 @@ export default class ItemWrapper { return pidTypes; } + fetchablePIDs: PIDType[] = ["QID", "OMID", "OpenAlex", "DOI"]; + + canFetchPid(type: PIDType) { + return this.fetchablePIDs.includes(type); + } + async fetchPID(type: PIDType, autosave = true) { + if (!this.canFetchPid(type)) { + Services.prompt.alert( + window as mozIDOMWindowProxy, + Wikicite.getString("wikicite.global.unsupported"), + Wikicite.formatString( + "wikicite.item-wrapper.fetch-pid.unsupported", + type.toUpperCase(), + ), + ); + return; + } + + const progress = new Progress( + "loading", + Wikicite.formatString( + "wikicite.item-wrapper.fetch-pid.loading", + type, + ), + ); let pid; switch (type) { case "QID": { @@ -134,23 +174,46 @@ export default class ItemWrapper { pid = qids?.get(this); break; } - default: - Services.prompt.alert( - window as mozIDOMWindowProxy, - Wikicite.getString("wikicite.global.unsupported"), - Wikicite.formatString( - "wikicite.item-wrapper.fetch-pid.unsupported", - type.toUpperCase(), - ), - ); + case "OMID": { + const omid = await new OpenCitations().fetchOMID(this); + pid = omid; + break; + } + case "DOI": { + const doi = await new Crossref().fetchDOI(this); + pid = doi; + break; + } + case "OpenAlex": { + const openAlex = await new OpenAlex().fetchOpenAlex(this); + pid = openAlex; + break; + } } if (pid) { + progress.updateLine( + "done", + Wikicite.formatString( + "wikicite.item-wrapper.fetch-pid.done", + type, + ), + ); + progress.close(); this.setPID(type, pid, autosave); + } else { + progress.updateLine( + "error", + Wikicite.formatString( + "wikicite.item-wrapper.fetch-pid.error", + type, + ), + ); + progress.close(); } } /* - * Get PID (QID, DOI, ISBN, OCC) from item. If it doesn't have this PID, return undefined + * Get PID (QID, DOI, ISBN, OMID, ...) from item. If it doesn't have this PID, return undefined */ getPID(type: PIDType, clean = false) { let pid: string | undefined; @@ -159,6 +222,15 @@ export default class ItemWrapper { case "ISBN": pid = this.item.getField(type); break; + case "arXiv": { + const field = this.item.getField("archiveID"); + if (field && field.startsWith("arXiv:")) { + pid = field; + } else { + pid = Wikicite.getExtraField(this.item, "arXiv").values[0]; + } + break; + } default: pid = Wikicite.getExtraField(this.item, type).values[0]; // this could be undefined } @@ -185,8 +257,14 @@ export default class ItemWrapper { .replace(/%/g, "%25") .replace(/"/g, "%22"); break; - case "OCC": - url = "https://opencitations.net/corpus/br/" + cleanPID; + case "OMID": + url = "https://opencitations.net/meta/" + cleanPID; + break; + case "OpenAlex": + url = "https://openalex.org/works/" + cleanPID; + break; + case "arXiv": + url = "https://arxiv.org/abs/" + cleanPID; break; case "QID": url = "https://www.wikidata.org/wiki/" + cleanPID; diff --git a/src/cita/localCitationNetwork.ts b/src/cita/localCitationNetwork.ts index cafa4c92..331d2ee4 100644 --- a/src/cita/localCitationNetwork.ts +++ b/src/cita/localCitationNetwork.ts @@ -6,6 +6,17 @@ import Wikicite from "./wikicite"; import * as prefs from "../cita/preferences"; import { config } from "../../package.json"; +function replacer(_key: any, value: any) { + if (value instanceof Map) { + return { + dataType: "Map", + value: Array.from(value.entries()), // or with spread: value: [...value] + }; + } else { + return value; + } +} + export default class LCN { items: Zotero.Item[]; itemMap: Map< @@ -138,7 +149,7 @@ export default class LCN { const uids = { doi: cleanDOI && cleanDOI.toUpperCase(), isbn: cleanISBN, - occ: citation.target.occ, // Fixme: provide OCC cleaning function + occ: citation.target.omid, // Fixme: provide OMID cleaning function qid: qid && qid.toUpperCase(), // based on Zotero.Duplicates.prototype._findDuplicates' // normalizeString function @@ -175,10 +186,22 @@ export default class LCN { // if one matching key found, use that one tmpKey = [...tmpKeys][0]; } else { + // FIXME: when error is thrown here, progress does not disappear + // FIXME: should account for cases where there a DOI (section) + ISBN (book) or at least signal them // finding more than one matching key should be unexpected - throw Error( - "UIDs of a citation target item should not refer to different temporary item keys", + Zotero.log(`Current item: ${wrappedItem.title}`); + Zotero.log( + `Current citation: ${citation.target.title}`, + ); + Zotero.log(`UIDs: ${JSON.stringify(uids)}`); + Zotero.log(`tmpKeys: ${JSON.stringify([...tmpKeys])}`); + Zotero.log( + `Map: ${JSON.stringify(tmpKeyMap, replacer)}`, ); + /*throw Error( + "UIDs of a citation target item should not refer to different temporary item keys", + );*/ + tmpKey = [...tmpKeys][0]; } // save key to the map of temp keys diff --git a/src/cita/matcher.ts b/src/cita/matcher.ts index 38c985b3..84d2f612 100644 --- a/src/cita/matcher.ts +++ b/src/cita/matcher.ts @@ -51,7 +51,7 @@ export default class Matcher { ); } - findMatches(item: Zotero.Item) { + findMatches(item: Zotero.Item): number[] { if ( !this._isbnCache || !this._isbnMap || @@ -127,7 +127,9 @@ export default class Matcher { titleMatches, ), ), - ].sort((a, b) => a - b); + ] + .filter(Boolean) + .sort((a, b) => a - b); debug("Found matches in " + (Date.now() - start) + " ms"); return matches; diff --git a/src/cita/openalex.ts b/src/cita/openalex.ts new file mode 100644 index 00000000..047dc39d --- /dev/null +++ b/src/cita/openalex.ts @@ -0,0 +1,93 @@ +import { IndexedWork, IndexerBase, LookupIdentifier } from "./indexer"; +import Lookup from "./zotLookup"; +import OpenAlexSDK from "openalex-sdk"; +import Wikicite, { debug } from "./wikicite"; +import { + ExternalIdsWork, + SearchParameters, + Work, +} from "openalex-sdk/dist/src/types/work"; +import ItemWrapper from "./itemWrapper"; + +export default class OpenAlex extends IndexerBase { + indexerName = "Open Alex"; + + openAlexSDK = new OpenAlexSDK("cita@duck.com"); + + supportedPIDs: PIDType[] = ["DOI", "OpenAlex", "PMID", "PMCID"]; + + async fetchOpenAlex(item: ItemWrapper): Promise { + // TODO: support getting for multiple items + const metatdataPIDs: PIDType[] = ["DOI", "PMID", "PMCID", "OpenAlex"]; + let identifier: LookupIdentifier | null = null; + for (const pid of metatdataPIDs) { + const value = item.getPID(pid, true); // Already clean them up + if (value) identifier = { type: pid, id: value }; + } + + if (identifier) { + const work = await this.openAlexSDK.work( + identifier.id, + identifier.type.toLowerCase() as ExternalIdsWork, + ); + const cleaned = work.id.replace(/https?:\/\/openalex.org\//, ""); + return cleaned; + } + + return null; + } + + /** + * Get references from OpenAlex for items with DOIs. + * @param {SupportedUID[]} identifiers - Array of DOIs or other identifiers for which to get references. + * @returns {Promise[]>} list of references, or [] if none. + */ + async getReferences( + identifiers: LookupIdentifier[], + ): Promise[]> { + const dois = identifiers + .filter((id) => id.type === "DOI") + .map((id) => id.id); + const oaIds = identifiers + .filter((id) => id.type === "OpenAlex") + .map((id) => { + return { openalex: id.id }; + }); + // TODO: add PMID and PMCID support + const doiParams: SearchParameters = { + filter: { doi: dois }, + }; + const oaParams: SearchParameters = { + filter: { ids: oaIds }, + }; + const works: Work[] = []; + if (dois.length) + works.push(...(await this.openAlexSDK.works(doiParams)).results); + if (oaIds.length) + works.push(...(await this.openAlexSDK.works(oaParams)).results); + return works.map((work): IndexedWork => { + return { + referenceCount: work.referenced_works?.length ?? 0, + referencedWorks: work.referenced_works ?? [], + }; + }); + } + + /** + * Parse a list of works from OpenAlex into Zotero items. + * @param {string[]} works - Array of works from OpenAlex to parse. + * @returns {Promise} Zotero items parsed from the works. + */ + async parseReferences(works: string[]): Promise { + if (!works.length) { + debug("Item found on OpenAlex but doesn't contain any references"); + return []; + } + + // Use Lookup to get items from OpenAlex + const uniqueWorks = [...new Set(works)]; + const result = await Lookup.lookupItemsOpenAlex(uniqueWorks); + const parsedReferences = result ? result : []; + return parsedReferences; + } +} diff --git a/src/cita/opencitations.ts b/src/cita/opencitations.ts index ba7f3aa0..2deeaffd 100644 --- a/src/cita/opencitations.ts +++ b/src/cita/opencitations.ts @@ -1,27 +1,190 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ -import Wikicite from "./wikicite"; - -declare const Services: any; - -export default class OpenCitations { - static getCitations() { - Services.prompt.alert( - window, - Wikicite.getString("wikicite.global.unsupported"), - Wikicite.getString( - "wikicite.opencitations.get-citations.unsupported", - ), - ); +import { IndexedWork, IndexerBase, LookupIdentifier } from "./indexer"; +import Lookup from "./zotLookup"; +import Wikicite, { debug } from "./wikicite"; +import ItemWrapper from "./itemWrapper"; + +interface OCWork { + title: string; + issue: string; + author: string; + publisher: string; + editor: string; + pub_date: string; + id: string; + type: string; + page: string; + venue: string; + volume: string; +} + +interface OCCitation { + cited: string; + journal_sc: string; // yes/no + author_sc: string; // yes/no + timespan: string; + creation: string; + oci: string; + citing: string; +} + +// Based on API documentation, should support (doi|issn|isbn|omid|openalex|pmid|pmcid) +// Only for fecthing OMID from OpenCitation Meta +/*type SupportedUID = + | { DOI: string } + | { ISSN: string } + | { ISBN: string } + | { OMID: string } // OpenCitations Metadata Identifier + | { openAlex: string } + | { PMID: string } + | { PMCID: string };*/ + +export default class OpenCitations extends IndexerBase { + indexerName = "Open Citations"; + + /** + * Supported PIDs for OpenCitations + * For searching citations, a smaller set of identifiers is supported + */ + supportedPIDs: PIDType[] = ["DOI", "OMID", "PMID"]; + + async fetchOMID(item: ItemWrapper): Promise { + // TODO: support getting for multiple items + const metatdataPIDs: PIDType[] = [ + "DOI", + "ISBN", + "OMID", + "PMID", + "PMCID", + "OpenAlex", + ]; + let identifier: LookupIdentifier | null = null; + for (const pid of metatdataPIDs) { + const value = item.getPID(pid, true); // Already clean them up + if (value) identifier = { type: pid, id: value }; + } + + if (identifier) { + const param = `${identifier.type.toLowerCase()}:${identifier.id}`; + const url = `https://w3id.org/oc/meta/api/v1/metadata/${param}`; + const options = { + headers: { + "User-Agent": `${Wikicite.getUserAgent()} mailto:cita@duck.com`, + }, + responseType: "json", + }; + const response = await Zotero.HTTP.request( + "GET", + url, + options, + ).catch((e) => { + debug(`Couldn't access URL: ${url}. Got status ${e.status}.`); + }); + + const foundWork = (response?.response as OCWork[])[0]; + if (foundWork) { + for (const id of foundWork.id.split(" ")) { + const [type, value] = id.split(":"); + if (type === "omid") return value; + } + } + } + + return null; } - static exportCitations() { - Services.prompt.alert( - window, - Wikicite.getString("wikicite.global.unsupported"), - Wikicite.getString("wikicite.opencitations.croci.export"), - ); + getReferences( + identifiers: LookupIdentifier[], + ): Promise[]> { + const requests = identifiers.map(async (uid) => { + let param = ""; + switch (uid.type) { + case "DOI": + param = `doi:${uid.id}`; + break; + case "OMID": + param = `omid:${uid.id}`; + break; + case "PMID": + param = `pmid:${uid.id}`; + break; + } + const url = `https://opencitations.net/index/api/v2/references/${param}`; + const options = { + headers: { + "User-Agent": `${Wikicite.getUserAgent()} mailto:cita@duck.com`, + }, + responseType: "json", + }; + const response = await Zotero.HTTP.request( + "GET", + url, + options, + ).catch((e) => { + debug(`Couldn't access URL: ${url}. Got status ${e.status}.`); + }); + + const citedWorks = response?.response as OCCitation[]; + return { + referenceCount: citedWorks.length, + referencedWorks: citedWorks, + }; + }); + return Promise.all(requests); } - static getOCC() {} + async parseReferences(references: OCCitation[]): Promise { + if (!references.length) { + debug( + "Item found on OpenCitations but doesn't contain any references", + ); + return []; + } + + // Extract one identifier per reference (prioritising DOI) and filter out those without identifiers + const _identifiers = references.map((citation) => { + // Should be one of (doi|issn|isbn|omid|openalex|pmid|pmcid) + return citation.cited + .split(" ") + .map((e) => e.split(":", 2)) + .map((e) => { + return { type: e[0], value: e[1] }; + }) + .filter((e) => + ["doi", "pmid", "pmcid", "openalex"].includes(e.type), + ) + .sort((a, b) => { + // Select best DOI > PMID > ISBN > openAlex + if (a.type === "doi") return -1; + if (b.type === "doi") return 1; + if (a.type === "pmid") return -1; + if (b.type === "pmid") return 1; + if (a.type === "isbn") return -1; + if (b.type === "isbn") return 1; + if (a.type === "openalex") return -1; + if (b.type === "openalex") return 1; + return 0; + })[0]; // return the first one + }); + // Extract identifiers + const identifiers = _identifiers + .filter( + (e) => + e.type === "doi" || e.type === "pmid" || e.type === "pmcid", + ) + .map((e) => e.value) + .flatMap(Zotero.Utilities.extractIdentifiers); + const openAlexIdentifiers = _identifiers + .filter((e) => e.type === "openalex") + .map((e) => e.value); + + // Use Lookup to get items for all identifiers + const result = await Lookup.lookupItemsByIdentifiers(identifiers); + const parsedReferences = result ? result : []; + + const openAlexResult = + await Lookup.lookupItemsOpenAlex(openAlexIdentifiers); + if (openAlexResult) parsedReferences.push(...openAlexResult); + + return parsedReferences; + } } diff --git a/src/cita/semantic.ts b/src/cita/semantic.ts new file mode 100644 index 00000000..da454e38 --- /dev/null +++ b/src/cita/semantic.ts @@ -0,0 +1,168 @@ +import Wikicite, { debug } from "./wikicite"; +import Lookup from "./zotLookup"; +//import Bottleneck from "bottleneck"; +import { IndexedWork, IndexerBase, LookupIdentifier } from "./indexer"; + +interface SemanticPaper { + paperId: string; + title: string; + references: Reference[]; +} + +interface Reference { + paperId: null | string; + externalIds: ExternalIDS | null; + title: string; + authors: Author[]; +} + +interface Author { + authorId: null | string; + name: string; +} + +interface ExternalIDS { + MAG?: string; + DBLP?: string; + CorpusId: number; + DOI?: string; + PubMed?: string; + ArXiv?: string; + ACL?: string; + PubMedCentral?: string; +} + +export default class Semantic extends IndexerBase { + indexerName = "Semantic Scholar"; + + supportedPIDs: PIDType[] = [ + "DOI", + "arXiv", + /*"semantic",*/ "OpenAlex", + "PMID", + "PMCID", + ]; + + /** + * Get a list of references from Semantic Scholar for multiple DOIs at once. + * Returned in JSON Crossref format. + * @param {LookupIdentifier[]} identifiers - Identifier (DOI, etc.) for the item for which to get references. + * @returns {Promise[]>} list of references, or [] if none. + * + * @remarks According to API reference, supports the following identifiers: + * The following types of IDs are supported (starred ones are supported here): + * - `` - a Semantic Scholar ID, e.g. 649def34f8be52c8b66281af98ae884c09aef38b + * - `CorpusId:`* - a Semantic Scholar numerical ID, e.g. CorpusId:215416146 + * - `DOI:`* - a Digital Object Identifier, e.g. DOI:10.18653/v1/N18-3011 + * - `ARXIV:`* - arXiv.rg, e.g. ARXIV:2106.15928 + * - `MAG:`* - Microsoft Academic Graph, e.g. MAG:112218234 (OpenAlex without W) + * - `ACL:` - Association for Computational Linguistics, e.g. ACL:W12-3903 + * - `PMID:`* - PubMed/Medline, e.g. PMID:19872477 + * - `PMCID:`* - PubMed Central, e.g. PMCID:2323736 + * - `URL:` - URL from one of the sites listed below, e.g. URL:https://arxiv.org/abs/2106.15928v1 + * + * URLs are recognized from the following sites: + * - semanticscholar.org + * - arxiv.org + * - aclweb.org + * - acm.org + * - biorxiv.org + */ + async getReferences( + identifiers: LookupIdentifier[], + ): Promise[]> { + // Semantic-specific logic for fetching references + const paperIdentifiers = identifiers.map(this.mapLookupIDToString); + //identifier = Zotero.Utilities.cleanDOI(identifier); + const url = `https://api.semanticscholar.org/graph/v1/paper/batch?fields=references,title,references.externalIds,references.title`; + const options = { + headers: { + // TODO: add auth depending on api key + "User-Agent": `${Wikicite.getUserAgent()} mailto:cita@duck.com`, + }, + responseType: "json", + body: JSON.stringify({ ids: paperIdentifiers }), + }; + const response = await Zotero.HTTP.request("POST", url, options); + const semanticPaper = (response?.response as SemanticPaper[]) || []; + return semanticPaper.map((paper): IndexedWork => { + return { + referenceCount: paper.references.length, + referencedWorks: paper.references, + }; + }); + } + + mapLookupIDToString(uid: LookupIdentifier): string { + switch (uid.type) { + case "DOI": + return `DOI:${uid.id}`; + case "arXiv": + return `ARXIV:${uid.id}`; + case "OpenAlex": + return `MAG:${uid.id.substring(1)}`; + /*case "semantic": + return `CorpusId:${uid.id}`;*/ + case "PMID": + return `PMID:${uid.id}`; + case "PMCID": + return `PMCID:${uid.id}`; + default: + throw new Error("Unsupported UID type"); + } + } + + /** + * Parse a list of references in JSON Crossref format. + * @param {Reference[]} references - Array of Crossref references to parse to Zotero items. + * @returns {Promise} Zotero items parsed from references (where parsing is possible). + */ + async parseReferences(references: Reference[]): Promise { + // Semantic-specific parsing logic + if (!references.length) { + debug( + "Item found in Semantic Scholar but doesn't contain any references", + ); + return []; + } + + // Extract one identifier per reference (prioritising DOI) and filter out those without identifiers + const _identifiers = references + .map( + (item) => + item.externalIds?.DOI ?? + item.externalIds?.ArXiv ?? + item.externalIds?.PubMed ?? + null, + ) + .filter((e) => e !== null); + // Remove duplicates and extract identifiers + const identifiers = [...new Set(_identifiers)].flatMap((e) => + Zotero.Utilities.extractIdentifiers(e!), + ); + /*const semanticReferencesWithoutIdentifier = semanticReferences.filter( + (item) => !item.DOI && !item.ISBN, + );*/ // TODO: consider supporting, but those are usually some PDF text + + const openAlexIdentifiers = references + .filter( + (item) => + !item.externalIds?.DOI && + !item.externalIds?.ArXiv && + !item.externalIds?.PubMed && + item.externalIds?.MAG, + ) + .map((ref) => "W" + ref.externalIds!.MAG!); + + Zotero.log(`Pure OA ids ${openAlexIdentifiers}`); + // Use Lookup to get items for all identifiers + const result = await Lookup.lookupItemsByIdentifiers(identifiers); + const parsedReferences = result ? result : []; + + const openAlexResult = + await Lookup.lookupItemsOpenAlex(openAlexIdentifiers); + if (openAlexResult) parsedReferences.push(...openAlexResult); + + return parsedReferences; + } +} diff --git a/src/cita/sourceItemWrapper.ts b/src/cita/sourceItemWrapper.ts index 9d638140..8dce0499 100644 --- a/src/cita/sourceItemWrapper.ts +++ b/src/cita/sourceItemWrapper.ts @@ -2,6 +2,8 @@ import Wikicite, { debug } from "./wikicite"; import Citation from "./citation"; import Citations from "./citations"; import Crossref from "./crossref"; +import Semantic from "./semantic"; +import OpenAlex from "./openalex"; import Extraction from "./extract"; import ItemWrapper from "./itemWrapper"; import Matcher from "./matcher"; @@ -10,6 +12,8 @@ import Progress from "./progress"; import Wikidata from "./wikidata"; import { config } from "../../package.json"; import { StorageType } from "./preferences"; +import Lookup from "./zotLookup"; +import * as _ from "lodash"; // replacer function for JSON.stringify function replacer(key: string, value: any) { @@ -374,7 +378,7 @@ class SourceItemWrapper extends ItemWrapper { /* * @param {Boolean} batch - Do not update or save citations at the beginning and at the end. */ - addCitations(citations: any) { + addCitations(citations: Citation[] | Citation) { // Fixme: apart from one day implementing possible duplicates // here I have to check other UUIDs too (not only QID) // and if they overlap, add the new OCIs provided only @@ -386,6 +390,42 @@ class SourceItemWrapper extends ItemWrapper { if (!Array.isArray(citations)) citations = [citations]; if (citations.length) { this.loadCitations(); + const existingTargetDOIs = new Set( + this._citations + .map((citation) => citation.target.doi) + .filter((id): id is DOI => id !== undefined), + ); + const existingTargetISBNs = new Set( + this._citations + .map((citation) => citation.target.isbn) + .filter((id): id is string => id !== undefined) + .flatMap((isbnList) => isbnList.split(" ")), + ); + debug(`Old: ${this._citations}`); + // Filter out items whose DOI or ISBN are part of the existing citations + citations = citations.filter((citation) => { + // Exclude if DOI already exists + if ( + citation.target.doi && + existingTargetDOIs.has(citation.target.doi) + ) + return false; + // Exclude if ISBN already exists + if ( + citation.target.isbn && + citation.target.isbn + .split(" ") + .some((item) => existingTargetISBNs.has(item)) + ) + return false; + + return true; + }); + + // Filter out identical items (might be slow) + citations = _.differenceWith(citations, this._citations, (a, b) => + _.isEqual(a.target.item.toJSON(), b.target.item.toJSON()), + ); this._citations = this._citations.concat(citations); this.saveCitations(); } @@ -524,32 +564,24 @@ class SourceItemWrapper extends ItemWrapper { // if provided, sync to wikidata, export to croci, etc, only for that citation // if not, do it for all + /*getFrom(indexer: T) { + (new indexer()).addCitationsToItems([this]); + }*/ + getFromCrossref() { - Crossref.getCitations(); - // fail if item doesn't have a DOI specified - // In general I would say to try and get DOI with another plugin if not available locally - // call the crossref api - // the zotero-citationcounts already calls crossref for citations. Check it - // call this.add multiple times, or provide an aray - // if citation retrieved has doi, check if citation already exists locally - // if yes, set providers.crossref to true - // decide whether to ignore citations retrieved without doi - // or if I will check if they exist already using other fields (title, etc) - - // offer to automatically get QID from wikidata for target items - // using Wikidata.getQID(items) + new Crossref().addCitationsToItems([this]); + } - // offer to automatically link to zotero items + getFromSemantic() { + new Semantic().addCitationsToItems([this]); + } + + getFromOpenAlex() { + new OpenAlex().addCitationsToItems([this]); } - getFromOcc() { - // What does getting from OpenCitations mean anyway? - // Will it get it from all indices? Or only for items in OCC? - // What about CROCI? I need DOI to get it from them, - // But they may not be available from crossref - // Maybe add Get from CROCI? Should I add get from Dryad too? - OpenCitations.getCitations(); - // + getFromOpenCitations() { + new OpenCitations().addCitationsToItems([this]); } syncWithWikidata(citationIndex?: number) { @@ -771,6 +803,63 @@ class SourceItemWrapper extends ItemWrapper { } } + async parseCitationIdentifiers( + identifiers: ( + | { DOI: string } + | { ISBN: string } + | { arXiv: string } + | { adsBibcode: string } + | { PMID: string } + )[], + ) { + await Zotero.Schema.schemaUpdatePromise; + // look up each identifier asynchronously in parallel - multiple web requests + // can run at the same time, so this speeds things up a lot #141 + + const items = await Lookup.lookupItemsByIdentifiers(identifiers); + + const citations = items + ? items.map((item) => { + return new Citation({ item: item, ocis: [] }, this); + }) + : []; + + return citations; + + // const citations = await Promise.all( + // identifiers.map(async (identifier) => { + // const translation = new Zotero.Translate.Search(); + // translation.setIdentifier(identifier); + + // let jsonItems; + // try { + // // set libraryID to false so we don't save this item in the Zotero library + // jsonItems = await translation.translate({ + // libraryID: false, + // }); + // } catch { + // // `translation.translate` throws an error if no item was found for an identifier. + // // Catch these errors so we don't abort the `Promise.all`. + // debug( + // `No items returned for identifier: ${identifier}`, + // ); + // } + // if (jsonItems && jsonItems.length > 0) { + // const jsonItem = jsonItems[0]; + // const newItem = new Zotero.Item( + // jsonItem.itemType, + // ); + // newItem.fromJSON(jsonItem); + // return new Citation( + // { item: newItem, ocis: [] }, + // this, + // ); + // } else return false; // no item added + // }), + // ); + // return citations.filter(Boolean); // filter out if no item found + } + // import citation by identifier (DOI/ISBN/ArXiV/PMID...) // - also supports multiple items (but only one type at once) async addCitationsByIdentifier() { @@ -800,41 +889,8 @@ class SourceItemWrapper extends ItemWrapper { ); try { if (identifiers.length > 0) { - await Zotero.Schema.schemaUpdatePromise; - // look up each identifier asynchronously in parallel - multiple web requests - // can run at the same time, so this speeds things up a lot #141 - let citations = await Promise.all( - identifiers.map(async (identifier) => { - const translation = new Zotero.Translate.Search(); - translation.setIdentifier(identifier); - - let jsonItems; - try { - // set libraryID to false so we don't save this item in the Zotero library - jsonItems = await translation.translate({ - libraryID: false, - }); - } catch { - // `translation.translate` throws an error if no item was found for an identifier. - // Catch these errors so we don't abort the `Promise.all`. - debug( - `No items returned for identifier: ${identifier}`, - ); - } - if (jsonItems && jsonItems.length > 0) { - const jsonItem = jsonItems[0]; - const newItem = new Zotero.Item( - jsonItem.itemType, - ); - newItem.fromJSON(jsonItem); - return new Citation( - { item: newItem, ocis: [] }, - this, - ); - } else return false; // no item added - }), - ); - citations = citations.filter(Boolean); // filter out if no item found + const citations = + await this.parseCitationIdentifiers(identifiers); if (citations.length) { this.addCitations(citations); @@ -874,7 +930,7 @@ class SourceItemWrapper extends ItemWrapper { } exportToCroci(citationIndex?: number) { - OpenCitations.exportCitations(); + //OpenCitations.exportCitations(); } } diff --git a/src/cita/wikicite.ts b/src/cita/wikicite.ts index 3ebc9cb4..1f658bfd 100644 --- a/src/cita/wikicite.ts +++ b/src/cita/wikicite.ts @@ -75,6 +75,12 @@ export default { return Zotero.Utilities.cleanISBN(value); case "QID": return Wikidata.cleanQID(value); + case "OMID": + return Wikidata.cleanOMID(value); + case "arXiv": + return Wikidata.cleanArXiv(value); + case "OpenAlex": + return Wikidata.cleanOpenAlex(value); default: return value; } diff --git a/src/cita/wikiciteChrome.ts b/src/cita/wikiciteChrome.ts index b190ebed..01eb5d45 100644 --- a/src/cita/wikiciteChrome.ts +++ b/src/cita/wikiciteChrome.ts @@ -1,6 +1,5 @@ // import Wikicite from "./wikicite"; -declare const Services: any; declare global { interface Document { WikiciteXULRootElements: string[]; diff --git a/src/cita/wikidata.ts b/src/cita/wikidata.ts index f6988fe6..596e8e77 100644 --- a/src/cita/wikidata.ts +++ b/src/cita/wikidata.ts @@ -430,6 +430,32 @@ export default class { return qid; } + static cleanOMID(omid: string) { + omid = omid.toLowerCase().trim(); + if (omid.substring(0, 3) !== "br/") omid = "br/" + omid; + if (!omid.match(/^br\/\d+$/)) omid = ""; + return omid; + } + + static cleanArXiv(arXiv: string) { + const arXiv_RE = + /\b(([-A-Za-z.]+\/\d{7}|\d{4}\.\d{4,5})(?:v(\d+))?)(?!\d)/g; // 1: full ID, 2: ID without version, 3: version # + const m = arXiv_RE.exec(arXiv); + if (m) { + const cleanArXiv = m[2]; + return cleanArXiv; + } + + return ""; + } + + static cleanOpenAlex(openAlex: string) { + openAlex = openAlex.toUpperCase().trim(); + if (openAlex[0] !== "W") openAlex = "W" + openAlex; + if (!openAlex.match(/^W\d+$/)) openAlex = ""; + return openAlex; + } + /** * DEPRECATED - use this.reconcile() instead * Fetches QIDs for item wrappers provided and returns item -> QID map diff --git a/src/cita/zotLookup.ts b/src/cita/zotLookup.ts new file mode 100644 index 00000000..bc4ce04a --- /dev/null +++ b/src/cita/zotLookup.ts @@ -0,0 +1,238 @@ +import Bottleneck from "bottleneck"; +import OpenAlex from "openalex-sdk"; +import { SearchParameters } from "openalex-sdk/dist/src/types/work"; + +const limiter = new Bottleneck({ + minTime: 100, // Max 10 requests per second to avoid overloading translators +}); + +export default class Lookup { + // This code is adapted from Zotero's chrome/content/zotero/lookup.js + static async lookupItemsByIdentifiers( + identifiers: ( + | { DOI: string } + | { ISBN: string } + | { arXiv: string } + | { adsBibcode: string } + | { PMID: string } + )[], + addToZotero: boolean = false, + ): Promise { + if (!identifiers.length) { + Zotero.logError( + new Error( + `Lookup input did not contain any identifiers ${JSON.stringify(identifiers)}`, + ), + ); + return false; + } + + let libraryID: false | number = false; + let collections: false | number[] = false; + + if (addToZotero) { + try { + libraryID = ZoteroPane.getSelectedLibraryID(); + const collection = ZoteroPane.getSelectedCollection(); + collections = collection ? [collection.id] : false; // TODO: this should be selected by user + } catch (e) { + /* TODO: handle this */ + } + } + + //toggleProgress(true); + + // Group PubMed IDs into batches of 200 + // + // Up to 10,000 ids can apparently be passed in a single request, but 200 is the recommended + // limit for GET, which we currently use, and passing batches of 200 seems...fine. + // + // https://www.ncbi.nlm.nih.gov/books/NBK25499/#chapter4.id + // TODO: this code was taken from chrome/content/zotero/lookup.js, which assumes that all identifiers are of the same type, yet we don't make that assumption and we also don't do batch requests + /*if (identifiers.length && 'PMID' in identifiers[0]) { + const chunkSize = 200; + const newIdentifiers = []; + for (let i = 0; i < identifiers.length; i += chunkSize) { + newIdentifiers.push({ + PMID: identifiers + .slice(i, i + chunkSize) + .map((x) => x.PMID), + }); + } + identifiers = newIdentifiers; + }*/ + + const promises = []; + + for (const identifier of identifiers) { + const translate = new Zotero.Translate.Search(); + translate.setIdentifier(identifier); + + // be lenient about translators + const translators = await translate.getTranslators(); + translate.setTranslator(translators); + + // Schedule the translation request with the rate limiter + const translationPromise: Promise = + limiter + .schedule( + async () => + translate.translate({ + libraryID: libraryID, + collections: collections, + saveAttachments: addToZotero, + }) as Promise, // Note that translate returns a serialized version of the item, not a Zotero.Item + ) + .then( + ( + result: ZoteroTranslators.Item[] | null, + ): ZoteroTranslators.Item[] => { + // If null is returned, treat it as an empty array to match ZoteroTranslators.Item[] + Zotero.debug( + `Found item for identifier ${JSON.stringify(identifier)}: ${result}`, + ); + return result || []; + }, + ) + .catch((e): ZoteroTranslators.Item[] => { + Zotero.logError(e); + Zotero.log( + `While looking for identifiers: ${JSON.stringify(identifier)}`, + ); + return []; + }); + + promises.push(translationPromise); + } + + // Wait for all translations to complete + const results = await Promise.all(promises); + + // Flatten the results and push only the first item from each result (or none if it's empty), cleaning it up if needed + const newItems = results.flatMap((result) => { + if (result.length > 0 && result[0]) { + const firstItem = result[0]; + if (!addToZotero) { + // delete irrelevant fields to avoid warnings in Item#fromJSON + delete firstItem.notes; + delete firstItem.seeAlso; + delete firstItem.attachments; + } + const newItem = new Zotero.Item(firstItem.itemType); + newItem.fromJSON(firstItem); + return newItem; + } else return []; + }); + + //toggleProgress(false); + if (!newItems.length) { + Zotero.alert( + window, + Zotero.getString("lookup.failure.title"), + Zotero.getString("lookup.failure.description"), + ); + } + // TODO: Give indication if some, but not all failed + + return newItems; + } + + static async lookupItemsOpenAlex( + identifiers: string[], + addToZotero: boolean = false, + ): Promise { + if (!identifiers.length) { + Zotero.logError( + new Error( + `Lookup input did not contain any identifiers ${JSON.stringify(identifiers)}`, + ), + ); + return false; + } + + let libraryID: false | number = false; + let collections: false | number[] = false; + + if (addToZotero) { + try { + libraryID = ZoteroPane.getSelectedLibraryID(); + const collection = ZoteroPane.getSelectedCollection(); + collections = collection ? [collection.id] : false; // TODO: this should be selected by user + } catch (e) { + /* TODO: handle this */ + } + } + + //const promises = []; + + // Taken from the OpenAlex search translator + //const apiURL = `https://api.openalex.org/works?filter=openalex:${identifiers.join("|")}&mailto=cita@duck.com`; + // Z.debug(apiURL); + //const apiJSON = (await Zotero.HTTP.request("GET", apiURL)).responseText; + const sdk = new OpenAlex("cita@duck.com"); + const oaIds: { openalex: string }[] = identifiers.map((id) => { + return { openalex: id }; + }); + const params: SearchParameters = { + filter: { + ids: oaIds, + }, + }; + const works = await sdk.works(params); + + // We have to tweak the JSON a bit to favor DOI imports and reserve the (potentially failing) OpenAlex JSON translator to whatever remains + const dois = works.results + .map((work) => work.doi ?? null) + .filter((e) => e !== null) + .flatMap((e) => Zotero.Utilities.extractIdentifiers(e!)); + const newItems = + (await this.lookupItemsByIdentifiers(dois, addToZotero)) || []; + + // Filter out + works.results = works.results.filter((work) => !work.doi); + works.meta.count = works.results.length; + const apiJSON = JSON.stringify(works); + const translator = new Zotero.Translate.Import(); // as ZoteroTranslators.Translate; + translator.setTranslator("faa53754-fb55-4658-9094-ae8a7e0409a2"); // OpenAlex JSON + translator.setString(apiJSON); + const promise = translator.translate({ + libraryID: libraryID, + collections: collections, + saveAttachments: addToZotero, + }) as Promise; + const results = await promise.catch((e): ZoteroTranslators.Item[] => { + Zotero.logError(e); + Zotero.log( + `While looking for OpenAlex items: ${JSON.stringify(identifiers)}`, + ); + return []; + }); + + // Flatten the results and push only the first item from each result (or none if it's empty), cleaning it up if needed + const oaItems = results.map((result) => { + if (!addToZotero) { + // delete irrelevant fields to avoid warnings in Item#fromJSON + delete result.notes; + delete result.seeAlso; + delete result.attachments; + } + const newItem = new Zotero.Item(result.itemType); + newItem.fromJSON(result); + return newItem; + }); + + newItems.push(...oaItems); + + //toggleProgress(false); + if (!newItems.length) { + Zotero.alert( + window, + Zotero.getString("lookup.failure.title"), + Zotero.getString("lookup.failure.description"), + ); + } + // TODO: Give indication if some, but not all failed + + return newItems; + } +} diff --git a/src/cita/zoteroOverlay.tsx b/src/cita/zoteroOverlay.tsx index cc780b86..2b0a583e 100644 --- a/src/cita/zoteroOverlay.tsx +++ b/src/cita/zoteroOverlay.tsx @@ -2,6 +2,8 @@ import Wikicite from "./wikicite"; import Citations from "./citations"; import CitationsBoxContainer from "../containers/citationsBoxContainer"; import Crossref from "./crossref"; +import Semantic from "./semantic"; +import OpenAlex from "./openalex"; import Extraction from "./extract"; import LCN from "./localCitationNetwork"; import OCI from "../oci"; @@ -34,8 +36,10 @@ const ITEM_PANE_COLUMN_IDS = { declare type MenuFunction = | "fetchQIDs" | "syncWithWikidata" - | "getFromCrossref" - | "getFromOCC" + | "getFromIndexer.Crossref" + | "getFromIndexer.Semantic Scholar" + | "getFromIndexer.OpenAlex" + | "getFromIndexer.OpenCitations" | "getFromAttachments" | "addAsCitations" | "localCitationNetwork"; @@ -458,16 +462,48 @@ class ZoteroOverlay { } } - getFromCrossref(menuName: MenuSelectionType) { + async getFromCrossref(menuName: MenuSelectionType) { // get items selected // filter items with doi // generate batch call to crossref // only add items not available locally yet - Crossref.getCitations(); + const items = await this.getSelectedItems(menuName, true); + if (items.length) { + new Crossref().addCitationsToItems(items); + } } - getFromOCC(menuName: MenuSelectionType) { - OpenCitations.getCitations(); + async getFromSemantic(menuName: MenuSelectionType) { + // get items selected + // filter items with doi + // generate batch call to crossref + // only add items not available locally yet + const items = await this.getSelectedItems(menuName, true); + if (items.length) { + new Semantic().addCitationsToItems(items); + } + } + + async getFromOpenAlex(menuName: MenuSelectionType) { + // get items selected + // filter items with doi + // generate batch call to crossref + // only add items not available locally yet + const items = await this.getSelectedItems(menuName, true); + if (items.length) { + new OpenAlex().addCitationsToItems(items); + } + } + + async getFromOpenCitations(menuName: MenuSelectionType) { + // get items selected + // filter items with doi + // generate batch call to crossref + // only add items not available locally yet + const items = await this.getSelectedItems(menuName, true); + if (items.length) { + new OpenCitations().addCitationsToItems(items); + } } getFromAttachments(menuName: MenuSelectionType) { @@ -673,22 +709,52 @@ class ZoteroOverlay { itemCrossrefGet.setAttribute("id", "item-menu-crossref-get"); itemCrossrefGet.setAttribute( "label", - Wikicite.getString("wikicite.item-menu.get-crossref"), + Wikicite.formatString("wikicite.item-menu.get-indexer", "Crossref"), ); itemCrossrefGet.addEventListener("command", () => this._sourceItem!.getFromCrossref(), ); - // Get OCC citations menu item + // Get Semantic citations menu item + + const itemSemanticGet = doc.createElementNS(ns, "menuitem"); + itemSemanticGet.setAttribute("id", "item-menu-semantic-get"); + itemSemanticGet.setAttribute( + "label", + Wikicite.formatString( + "wikicite.item-menu.get-indexer", + "Semantic Scholar", + ), + ); + itemSemanticGet.addEventListener("command", () => + this._sourceItem!.getFromSemantic(), + ); + + // Get OpenAlex citations menu item - const itemOccGet = doc.createElementNS(ns, "menuitem"); - itemOccGet.setAttribute("id", "item-menu-occ-get"); - itemOccGet.setAttribute( + const itemOpenAlexGet = doc.createElementNS(ns, "menuitem"); + itemOpenAlexGet.setAttribute("id", "item-menu-openalex-get"); + itemOpenAlexGet.setAttribute( "label", - Wikicite.getString("wikicite.item-menu.get-occ"), + Wikicite.formatString("wikicite.item-menu.get-indexer", "OpenAlex"), ); - itemOccGet.addEventListener("command", () => - this._sourceItem!.getFromOcc(), + itemOpenAlexGet.addEventListener("command", () => + this._sourceItem!.getFromOpenAlex(), + ); + + // Get OpenCitations citations menu item + + const itemOpenCitationsGet = doc.createElementNS(ns, "menuitem"); + itemOpenCitationsGet.setAttribute("id", "item-menu-opencitations-get"); + itemOpenCitationsGet.setAttribute( + "label", + Wikicite.formatString( + "wikicite.item-menu.get-indexer", + "OpenCitations", + ), + ); + itemOpenCitationsGet.addEventListener("command", () => + this._sourceItem!.getFromOpenCitations(), ); // Extract citations menu item @@ -802,7 +868,9 @@ class ZoteroOverlay { itemMenu.appendChild(itemWikidataSync); itemMenu.appendChild(itemFetchCitationQIDs); itemMenu.appendChild(itemCrossrefGet); - itemMenu.appendChild(itemOccGet); + itemMenu.appendChild(itemSemanticGet); + itemMenu.appendChild(itemOpenAlexGet); + itemMenu.appendChild(itemOpenCitationsGet); itemMenu.appendChild(itemPdfExtract); itemMenu.appendChild(itemIdentifierImport); itemMenu.appendChild(itemCitationsImport); @@ -969,7 +1037,6 @@ class ZoteroOverlay { ); const hasCitations = Boolean(sourceItem!.citations.length); const sourceDoi = sourceItem!.doi; - const sourceOcc = sourceItem!.occ; const sourceQid = sourceItem!.qid; const itemWikidataSync = document.getElementById( @@ -981,8 +1048,14 @@ class ZoteroOverlay { const itemCrossrefGet = document.getElementById( "item-menu-crossref-get", ) as HTMLButtonElement; - const itemOccGet = document.getElementById( - "item-menu-occ-get", + const itemSemanticGet = document.getElementById( + "item-menu-semantic-get", + ) as HTMLButtonElement; + const itemOpenAlexGet = document.getElementById( + "item-menu-openalex-get", + ) as HTMLButtonElement; + const itemOpenCitationsGet = document.getElementById( + "item-menu-opencitations-get", ) as HTMLButtonElement; const itemPdfExtract = document.getElementById( "item-menu-pdf-extract", @@ -1002,8 +1075,18 @@ class ZoteroOverlay { itemWikidataSync.disabled = !sourceQid; itemFetchCitationQIDs.disabled = !hasCitations; + + // Indexers itemCrossrefGet.disabled = !sourceDoi; - itemOccGet.disabled = !sourceOcc; + itemSemanticGet.disabled = !new Semantic().extractSupportedPID( + sourceItem!, + ); + itemOpenAlexGet.disabled = !new OpenAlex().extractSupportedPID( + sourceItem!, + ); + itemOpenCitationsGet.disabled = + !new OpenCitations().extractSupportedPID(sourceItem!); + itemPdfExtract.disabled = !hasAttachments; itemCitationsImport.disabled = false; itemFileExport.disabled = !hasCitations; @@ -1139,6 +1222,47 @@ class ZoteroOverlay { "wikicite-itemsubmenu-localCitationNetwork", )!.setAttribute("disabled", "true"); } + // Enable indexer citation lookup when appropriate identifiers are present + const enableCrossref = items.some((item) => { + const sourceItem = new SourceItemWrapper( + item, + prefs.getStorage(), + ); + return sourceItem.doi; + }); + const enableSemantic = items.some((item) => { + const sourceItem = new SourceItemWrapper( + item, + prefs.getStorage(), + ); + return new Semantic().extractSupportedPID(sourceItem); + }); + const enableOpenAlex = items.some((item) => { + const sourceItem = new SourceItemWrapper( + item, + prefs.getStorage(), + ); + return new OpenAlex().extractSupportedPID(sourceItem); + }); + const enableOpenCitations = items.some((item) => { + const sourceItem = new SourceItemWrapper( + item, + prefs.getStorage(), + ); + return new OpenCitations().extractSupportedPID(sourceItem); + }); + doc.getElementById( + "wikicite-itemsubmenu-getFromIndexer.Crossref", + )!.setAttribute("disabled", enableCrossref ? "false" : "true"); + doc.getElementById( + "wikicite-itemsubmenu-getFromIndexer.Semantic Scholar", + )!.setAttribute("disabled", enableSemantic ? "false" : "true"); + doc.getElementById( + "wikicite-itemsubmenu-getFromIndexer.OpenAlex", + )!.setAttribute("disabled", enableOpenAlex ? "false" : "true"); + doc.getElementById( + "wikicite-itemsubmenu-getFromIndexer.OpenCitations", + )!.setAttribute("disabled", enableOpenCitations ? "false" : "true"); } ( @@ -1162,8 +1286,16 @@ class ZoteroOverlay { > = new Map([ ["fetchQIDs", () => this.fetchQIDs(menuName)], ["syncWithWikidata", () => this.syncWithWikidata(menuName)], - ["getFromCrossref", () => this.getFromCrossref(menuName)], - ["getFromOCC", () => this.getFromOCC(menuName)], + ["getFromIndexer.Crossref", () => this.getFromCrossref(menuName)], + [ + "getFromIndexer.Semantic Scholar", + () => this.getFromSemantic(menuName), + ], + ["getFromIndexer.OpenAlex", () => this.getFromOpenAlex(menuName)], + [ + "getFromIndexer.OpenCitations", + () => this.getFromOpenCitations(menuName), + ], ["getFromAttachments", () => this.getFromAttachments(menuName)], ["addAsCitations", () => this.addAsCitations(menuName)], ["localCitationNetwork", () => this.localCitationNetwork(menuName)], @@ -1206,7 +1338,6 @@ class ZoteroOverlay { "wikicite.submenu.get-from-indexer", indexerName, ); - Zotero.log(label); } else label = Wikicite.getString(`wikicite.submenu.${functionName}`); const menuOptions: MenuitemOptions = { tag: "menuitem", diff --git a/src/components/itemPane/citationsBox.tsx b/src/components/itemPane/citationsBox.tsx index 121f070c..ab818387 100644 --- a/src/components/itemPane/citationsBox.tsx +++ b/src/components/itemPane/citationsBox.tsx @@ -8,6 +8,7 @@ import Citation from "../../cita/citation"; import SourceItemWrapper from "../../cita/sourceItemWrapper"; import WikidataButton from "./wikidataButton"; import ZoteroButton from "./zoteroButton"; +import ImportButton from "./importButton"; import { config } from "../../../package.json"; function CitationsBox(props: { @@ -287,6 +288,7 @@ function CitationsBox(props: { // https://github.com/babel/babel-sublime/issues/368 <> + handleCitationSync(index)} @@ -406,7 +408,7 @@ function CitationsBox(props: {
    { // Fixme: to avoid parsing the extra field multiple times - // (once per non-natively supported pid; e.g., QID, OCC) + // (once per non-natively supported pid; e.g., QID, OMID) // consider having a pidBox component and // redefining Wikicite.getExtraField to allow multiple fieldnames as input // and return a fieldName: [values]} object instead diff --git a/src/components/itemPane/importButton.tsx b/src/components/itemPane/importButton.tsx new file mode 100644 index 00000000..ee0dc4f9 --- /dev/null +++ b/src/components/itemPane/importButton.tsx @@ -0,0 +1,107 @@ +import * as React from "react"; +import * as PropTypes from "prop-types"; +import Citation from "../../cita/citation"; +import Wikicite from "../../cita/wikicite"; + +function ImportButton(props: any) { + const citation = props.citation as Citation; + const key = citation.target.key; + let identifier: { DOI?: string; ISBN?: string } | false = false; + if (citation.target.doi) identifier = { DOI: citation.target.doi }; + else if (citation.target.isbn) identifier = { ISBN: citation.target.isbn }; + async function handleClick() { + if (key) return; // Item was already linked and is therefore already present + + const libraryID = citation.source.item.libraryID; + const collections = Zotero.Collections.getByLibrary( + libraryID, + true, + ).map((c) => { + return { name: c.name, id: c.id }; + }); + collections.unshift({ name: "(None)", id: NaN }); + + // Select collection + const selected: { value: number } = { value: 0 }; + let selectedCollectionID: number; + if (collections && collections.length > 1) { + const result = Services.prompt.select( + window as mozIDOMWindowProxy, + "Add to collection", + "Select a collection to which to add the item or cancel", + collections.map((c) => c.name), + selected, + ); + + if (result) selectedCollectionID = collections[selected.value].id; + else return; // User cancelled the action + } else selectedCollectionID = NaN; // No collections to choose from + + if (identifier) { + // Import from identifier + const translation = new Zotero.Translate.Search(); + translation.setIdentifier(identifier); + + // be lenient about translators + const translators = await translation.getTranslators(); + translation.setTranslator(translators); + try { + const newItems: Zotero.Item[] = await translation.translate({ + libraryID: libraryID, + collections: Number.isNaN(selectedCollectionID) + ? false + : [selectedCollectionID], + }); + switch (newItems.length) { + case 0: + break; + case 1: + if (citation.target.qid) + newItems[0].setField( + "extra", + `QID: ${citation.target.qid}`, + ); + citation.linkToZoteroItem(newItems[0]); + break; + default: + await citation.autoLink(); + } + } catch (e: any) { + Zotero.logError(e); + } + } else { + // There is no identifier but we do have a JSON item + const library = Zotero.Libraries.get(libraryID); + if (library) { + const newItem = + await citation.target.item.moveToLibrary(libraryID); + if (selectedCollectionID) + newItem.addToCollection(selectedCollectionID); + citation.linkToZoteroItem(newItem); + } + } + } + + const title = key + ? "Already linked" + : identifier + ? "Auto import with identifier" + : "Import data"; + const icon = identifier ? "magic-wand" : "add-item"; + + return ( + + ); +} + +ImportButton.propTypes = { + citation: PropTypes.instanceOf(Citation), +}; + +export default ImportButton; diff --git a/src/components/pidRow.tsx b/src/components/pidRow.tsx index 9133aef7..e0b54a5d 100644 --- a/src/components/pidRow.tsx +++ b/src/components/pidRow.tsx @@ -3,6 +3,7 @@ import * as React from "react"; import { useEffect, useRef, useState } from "react"; import * as PropTypes from "prop-types"; import ItemWrapper from "../cita/itemWrapper"; +import Wikicite, { debug } from "../cita/wikicite"; function PIDRow(props: { autosave: boolean; @@ -53,7 +54,7 @@ function PIDRow(props: { className={"pid-label" + (url ? " pointer" : "")} onClick={url ? () => Zotero.launchURL(url) : undefined} > - {props.type.toUpperCase()} + {props.type}
    handleCommit(event.target.value)} />
    - diff --git a/src/containers/citationsBoxContainer.tsx b/src/containers/citationsBoxContainer.tsx index e10f0005..19068b9a 100644 --- a/src/containers/citationsBoxContainer.tsx +++ b/src/containers/citationsBoxContainer.tsx @@ -61,7 +61,7 @@ function CitationsBoxContainer(props: { // well, actually the forth of DOI may be export in CROCI format // get citations from crossref for this DOI / export citations to CROCI for this DOI // get citations from Wikidata for this QID / sync citations to Wikidata for this QID - // OCCID (OpenCitations Corpus ID) makes sense too, because OCI may relate two interanal OC corpus ids + // OMID (OpenCitations Metadata ID) makes sense too, because OCI may relate two interanal OC corpus ids useEffect(() => { // debug("First run, or props.item has changed"); diff --git a/src/oci/index.ts b/src/oci/index.ts index 289834a3..8250c7d6 100644 --- a/src/oci/index.ts +++ b/src/oci/index.ts @@ -1,14 +1,18 @@ import lookup from "./lookup"; -const suppliers: { prefix: string; name: string; id: "qid" | "doi" | "occ" }[] = - [ - // https://opencitations.net/oci - { prefix: "010", name: "wikidata", id: "qid" }, - { prefix: "020", name: "crossref", id: "doi" }, - { prefix: "030", name: "occ", id: "occ" }, - { prefix: "040", name: "dryad", id: "doi" }, - { prefix: "050", name: "croci", id: "doi" }, - ]; +const suppliers: { + prefix: string; + name: string; + id: "qid" | "doi" | "omid"; +}[] = [ + // https://opencitations.net/oci + { prefix: "010", name: "wikidata", id: "qid" }, + { prefix: "020", name: "crossref", id: "doi" }, + { prefix: "030", name: "occ", id: "omid" }, + { prefix: "040", name: "dryad", id: "doi" }, + { prefix: "050", name: "croci", id: "doi" }, + { prefix: "050", name: "oc meta", id: "omid" }, +]; const codes = new Map(lookup.map(({ c, code }) => [String(c), Number(code)])); @@ -33,7 +37,7 @@ export default class { case "qid": pattern = /^Q([0-9]+)$/; break; - case "occ": + case "omid": pattern = /^([0-9])+$/; break; } diff --git a/static/chrome/content/skin/default/overlay.css b/static/chrome/content/skin/default/overlay.css index 9dc1e59a..00dacb4d 100644 --- a/static/chrome/content/skin/default/overlay.css +++ b/static/chrome/content/skin/default/overlay.css @@ -91,7 +91,7 @@ ul.pid-list > li { } ul.pid-list > li > label { - width: 30px; + width: 58px; } ul.pid-list > li input { @@ -109,6 +109,9 @@ ul.pid-list > li button { padding: 1px; margin-left: 15px; } +ul.pid-list > li button:disabled { + filter: grayscale(100%) opacity(50%); +} ul.pid-list > li .editable-container { flex-grow: 1; @@ -118,6 +121,7 @@ ul.pid-list .editable-content { min-height: 1em; } -.pid-label.pointer:hover { +.pid-label.pointer:hover, +ul.pid-list .cita-icon.pointer:hover { cursor: pointer !important; } diff --git a/static/chrome/locale/ar/wikicite.properties b/static/chrome/locale/ar/wikicite.properties index 4c02545a..0ab545fb 100644 --- a/static/chrome/locale/ar/wikicite.properties +++ b/static/chrome/locale/ar/wikicite.properties @@ -39,7 +39,6 @@ wikicite.citations-pane.linked.confirm.message=هذا الاقتباس مرتب wikicite.citations-pane.linked.confirm.title=اقتباس مرتبط wikicite.citations-pane.linked.confirm.unlink=إزالة الوصلات wikicite.citations-pane.more=المزيد... -wikicite.crossref.get-citations.unsupported=لم يجري دعم الحصول على اقتباسات من Crossref حتى الآن wikicite.editor.cancel=إلغاء wikicite.editor.save=حفظ wikicite.editor.title=محرر الاستشهادات @@ -49,7 +48,7 @@ wikicite.item-menu.autolink-citations=ارتباط تلقائي بالاقتبا wikicite.item-menu.export-file=تصدير الاقتباسات إلى ملف wikicite.item-menu.export-croci=تصدير الاقتباسات إلى CROCI wikicite.item-menu.fetch-citation-qids=إحضار QIDs للعناصر المذكورة -wikicite.item-menu.get-crossref=احصل على اقتباسات من Crossref +wikicite.item-menu.get-indexer=احصل على اقتباسات من %1$s wikicite.item-menu.get-occ=احصل على اقتباسات من OpenCitations Corpus wikicite.item-menu.get-pdf=استخراج الاقتباسات من المرفقات wikicite.item-menu.import-citations=استيراد الاستشهادات diff --git a/static/chrome/locale/ca/wikicite.properties b/static/chrome/locale/ca/wikicite.properties index 2d5428c5..695bafaa 100644 --- a/static/chrome/locale/ca/wikicite.properties +++ b/static/chrome/locale/ca/wikicite.properties @@ -38,7 +38,6 @@ wikicite.citations-pane.linked.confirm.message=Aquesta cita enllaça amb la refe wikicite.citations-pane.linked.confirm.title=Cita enllaçada wikicite.citations-pane.linked.confirm.unlink=Elimina l'enllaç wikicite.citations-pane.more=Més... -wikicite.crossref.get-citations.unsupported=Importar les cites des del BibTeX encara està per fer wikicite.editor.cancel=Cancel·la wikicite.editor.save=Desa wikicite.editor.title=Editor de citacions @@ -47,7 +46,7 @@ wikicite.global.unsupported=Incompatible wikicite.item-menu.autolink-citations=Enllaça automàticament amb els ítems del Zotero wikicite.item-menu.export-file=Exporta cites a un fitxer wikicite.item-menu.export-croci=Exporta les referències a CROCI -wikicite.item-menu.get-crossref=Obté les cites del Crossref +wikicite.item-menu.get-indexer=Obté les cites del %1$s wikicite.item-menu.get-occ=Obté les cites del OpenCitation Corpus wikicite.item-menu.get-pdf=Extreu les cites dels fitxers adjunts wikicite.item-menu.import-identifier=Afegeix cites per identificador @@ -132,7 +131,7 @@ wikicite.source-item.sync-single-citation.unsupported=La sincronització de refe wikicite.submenu.add-as-citations=Afegeix com a citació a... wikicite.submenu.fetch-qids=Recull les QID(s) wikicite.submenu.get-from-attachments=Extreu les cites dels fitxers adjunts -wikicite.submenu.get-from-crossref=Obté les cites del CrossRef +wikicite.submenu.get-from-indexer=Obté les cites del %1$s wikicite.submenu.get-from-occ=Obté les cites del OpenCitation Corpus wikicite.submenu.local-citation-network=Mostra la xarxa de referències local wikicite.submenu.sync-with-wikidata=Sincronitza les referències amb Wikidata diff --git a/static/chrome/locale/de/wikicite.properties b/static/chrome/locale/de/wikicite.properties index 8160c689..da85e7a0 100644 --- a/static/chrome/locale/de/wikicite.properties +++ b/static/chrome/locale/de/wikicite.properties @@ -47,7 +47,6 @@ wikicite.citations-pane.linked.confirm.message=Diese Zitierung ist verlinkt mit wikicite.citations-pane.linked.confirm.title=Verlinkte Zitierung wikicite.citations-pane.linked.confirm.unlink=Entlinken wikicite.citations-pane.more=Mehr … -wikicite.crossref.get-citations.unsupported=Abrufen von Zitaten aus einer Crossref noch nicht unterstützt wikicite.editor.cancel=Abbrechen wikicite.editor.save=Speichern wikicite.editor.title=Zitat Editor @@ -58,7 +57,7 @@ wikicite.item-menu.autolink-citations=Automatische Verknüpfung von Zitaten mit wikicite.item-menu.export-file=Zitate in Datei exportieren wikicite.item-menu.export-croci=Zitate nach CROCI exportieren wikicite.item-menu.fetch-citation-qids=Abrufen von QIDs für zitierten Items -wikicite.item-menu.get-crossref=Zitate aus Crossref abrufen +wikicite.item-menu.get-indexer=Zitate aus %1$s abrufen wikicite.item-menu.get-occ=Zitate aus OpenCitation Corpus abrufen wikicite.item-menu.get-pdf=Zitate aus Anhängen entnehmen wikicite.item-menu.import-citations=Zitationen importieren @@ -162,7 +161,7 @@ wikicite.source-item.sync-single-citation.unsupported=Das Synchronisieren einzel wikicite.submenu.add-as-citations=Als Zitat(e) hinzufügen zu... wikicite.submenu.fetch-qids=QID(s) holen wikicite.submenu.get-from-attachments=Zitate aus Anhängen entnehmen -wikicite.submenu.get-from-crossref=Zitate aus Crossref abrufen +wikicite.submenu.get-from-indexer=Zitate aus %1$s abrufen wikicite.submenu.get-from-occ=Zitate aus OpenCitation Corpus abrufen wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Zeige das lokale Zitierungsnetzwerk an diff --git a/static/chrome/locale/en-US/wikicite.properties b/static/chrome/locale/en-US/wikicite.properties index de7abcee..50df8d97 100644 --- a/static/chrome/locale/en-US/wikicite.properties +++ b/static/chrome/locale/en-US/wikicite.properties @@ -34,8 +34,22 @@ wikicite.citations-pane.linked.confirm.message = This citation is linked to item wikicite.citations-pane.linked.confirm.title = Linked citation wikicite.citations-pane.linked.confirm.unlink = Unlink wikicite.citations-pane.more = More... +wikicite.citations-pane.pid-row.fetch-pid = Fetch %s wikicite.citations-pane.tooltiptext = Citations -wikicite.crossref.get-citations.unsupported = Getting citations from Crossref not yet supported +wikicite.indexer.get-citations.confirm-message = Found references for %1$s out of %2$s item(s). +wikicite.indexer.get-citations.confirm-message-count = %1$s references(s) will be processed in total. +wikicite.indexer.get-citations.confirm-title = Add citations from %1$s? +wikicite.indexer.get-citations.done = Successfully parsed %1$s out of %2$s item citations from %3$s +wikicite.indexer.get-citations.error-getting-references = Failed to get citations for item(s) from %1$s +wikicite.indexer.get-citations.error-parsing-references = Failed to parse citations from %1$s +wikicite.indexer.get-citations.loading = Getting item citations from %1$s +wikicite.indexer.get-citations.no-references = Didn't find any citations on %1$s for item(s) +wikicite.indexer.get-citations.no-doi-message = No items with a DOI provided - reference data can't be retrieved from %1$s. +wikicite.indexer.get-citations.no-doi-title = Can't get %1$s references for items without DOIs +wikicite.indexer.get-citations.existing-citations-message = Some items already have citations. Loading citations from %1$s might lead to duplicates. Continue anyway? +wikicite.indexer.get-citations.existing-citations-title = Citations already exist +wikicite.indexer.get-citations.parsing = Parsing item citations from %1$s +wikicite.indexer.get-citations.parsing-progress = Parsed citations for %1$s out of %2$s items wikicite.editor.cancel = Cancel wikicite.editor.save = Save wikicite.editor.title = Citation Editor @@ -46,7 +60,7 @@ wikicite.item-menu.autolink-citations = Auto link citations with Zotero items wikicite.item-menu.export-file = Export citations to file wikicite.item-menu.export-croci = Export citations to CROCI wikicite.item-menu.fetch-citation-qids = Fetch QIDs for cited items -wikicite.item-menu.get-crossref = Get citations from Crossref +wikicite.item-menu.get-indexer = Get citations from %1$s wikicite.item-menu.get-occ = Get citations from OpenCitations Corpus wikicite.item-menu.get-pdf = Extract citations from attachments wikicite.item-menu.import-citations = Import citations @@ -60,6 +74,9 @@ wikicite.item-menu.sync-wikidata = Sync citations with Wikidata wikicite.item-tree.column-label.qid = QID wikicite.item-tree.column-label.citations = Citations wikicite.item-wrapper.fetch-pid.unsupported = Fetching %s not yet supported +wikicite.item-wrapper.fetch-pid.loading = Fetching %s... +wikicite.item-wrapper.fetch-pid.done = Successfully fetched %s +wikicite.item-wrapper.fetch-pid.error = Could not fetch %s wikicite.identifier-importer.cancel = Cancel wikicite.identifier-importer.description = Enter identifier(s) below. Any type supported by Zotero's "Add Item(s) by Identifier", but all identifiers must be of the same type. wikicite.identifier-importer.add = Add @@ -150,7 +167,7 @@ wikicite.source-item.sync-single-citation.unsupported = Syncing individual citat wikicite.submenu.add-as-citations = Add as citation(s) to... wikicite.submenu.fetch-qids = Fetch QID(s) wikicite.submenu.get-from-attachments = Extract citations from attachments -wikicite.submenu.get-from-crossref = Get citations from CrossRef +wikicite.submenu.get-from-indexer = Get citations from %1$s wikicite.submenu.get-from-occ = Get citations from OpenCitations Corpus wikicite.submenu.label = Cita wikicite.submenu.local-citation-network = Show Local Citation Network diff --git a/static/chrome/locale/es/wikicite.properties b/static/chrome/locale/es/wikicite.properties index d21fe341..38455ed8 100644 --- a/static/chrome/locale/es/wikicite.properties +++ b/static/chrome/locale/es/wikicite.properties @@ -43,7 +43,6 @@ wikicite.citations-pane.linked.confirm.message=Esta cita está enlazada al eleme wikicite.citations-pane.linked.confirm.title=Cita enlazada wikicite.citations-pane.linked.confirm.unlink=Desenlazar wikicite.citations-pane.more=Más... -wikicite.crossref.get-citations.unsupported=Obtener citas de Crossref no está disponible aún wikicite.editor.cancel=Cancelar wikicite.editor.save=Guardar wikicite.editor.title=Editor de Cita @@ -54,7 +53,7 @@ wikicite.item-menu.autolink-citations=Enlazar citas con elementos Zotero automá wikicite.item-menu.export-file=Exportar citas a un archivo wikicite.item-menu.export-croci=Exportar citas a CROCI wikicite.item-menu.fetch-citation-qids=Obtener QIDs de elementos citados -wikicite.item-menu.get-crossref=Obtener citas de Crossref +wikicite.item-menu.get-indexer=Obtener citas de %1$s wikicite.item-menu.get-occ=Obtener citas de OpenCitations Corpus wikicite.item-menu.get-pdf=Extraer citas de archivos adjuntos wikicite.item-menu.import-citations=Importar citas @@ -158,7 +157,7 @@ wikicite.source-item.sync-single-citation.unsupported=Sincronizar citas individu wikicite.submenu.add-as-citations=Agregar como citas en... wikicite.submenu.fetch-qids=Obtener QID(s) wikicite.submenu.get-from-attachments=Extraer citas de archivos adjuntos -wikicite.submenu.get-from-crossref=Obtener citas de Crossref +wikicite.submenu.get-from-indexer=Obtener citas de %1$s wikicite.submenu.get-from-occ=Obtener citas de OpenCitations Corpus wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Mostrar Red Local de Citas diff --git a/static/chrome/locale/fr/wikicite.properties b/static/chrome/locale/fr/wikicite.properties index 40aec5fe..c74b4ee8 100644 --- a/static/chrome/locale/fr/wikicite.properties +++ b/static/chrome/locale/fr/wikicite.properties @@ -29,7 +29,7 @@ wikicite.citation-menu.export-file=Exporter l’élément cité dans un fichier wikicite.citation-menu.export-croci=Exporter l’élément cité vers CROCI wikicite.citation-menu.fetch-qid=Récupérer le QID de l’élément cité wikicite.citation-menu.oci=Voir dans OpenCitations -wikicite.citation-menu.oci.crossref=Fournisseur CrossRef +wikicite.citation-menu.oci.crossref=Fournisseur Crossref wikicite.citation-menu.oci.occ=Fournisseur OCC wikicite.citation-menu.oci.wikidata=Fournisseur Wikidata wikicite.citation-menu.sync-wikidata=Synchroniser la citation avec Wikidata @@ -45,7 +45,6 @@ wikicite.citations-pane.linked.confirm.message=Cette citation est liée à l’ wikicite.citations-pane.linked.confirm.title=Citation liée wikicite.citations-pane.linked.confirm.unlink=Délier wikicite.citations-pane.more=Plus... -wikicite.crossref.get-citations.unsupported=Obtention des citations depuis CrossRef pas encore prise en charge wikicite.editor.cancel=Annuler wikicite.editor.save=Enregistrer wikicite.editor.title=Éditeur de citation @@ -56,7 +55,7 @@ wikicite.item-menu.autolink-citations=Citations liées automatiquement avec des wikicite.item-menu.export-file=Exporter les citations vers un fichier wikicite.item-menu.export-croci=Exporter les citations vers CROCI wikicite.item-menu.fetch-citation-qids=Récupérer les QID pour les éléments cités -wikicite.item-menu.get-crossref=Obtenir des citations depuis CrossRef +wikicite.item-menu.get-indexer=Obtenir des citations depuis %1$s wikicite.item-menu.get-occ=Obtenir des citations depuis OpenCitations Corpus wikicite.item-menu.get-pdf=Extraire des citations des pièces jointes wikicite.item-menu.import-citations=Importer des citations @@ -160,7 +159,7 @@ wikicite.source-item.sync-single-citation.unsupported=Synchronisation de citatio wikicite.submenu.add-as-citations=Ajouter comme citations vers... wikicite.submenu.fetch-qids=Obtenir les QID wikicite.submenu.get-from-attachments=Extraire les citations des pièces jointes -wikicite.submenu.get-from-crossref=Obtenir des citations depuis CrossRef +wikicite.submenu.get-from-indexer=Obtenir des citations depuis %1$s wikicite.submenu.get-from-occ=Obtenir des citations depuis OpenCitations Corpus wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Afficher le réseau de citation local diff --git a/static/chrome/locale/gl/wikicite.properties b/static/chrome/locale/gl/wikicite.properties index e7a73646..6414cfd5 100644 --- a/static/chrome/locale/gl/wikicite.properties +++ b/static/chrome/locale/gl/wikicite.properties @@ -39,7 +39,6 @@ wikicite.citations-pane.linked.confirm.message=Esta cita está ligada ao element wikicite.citations-pane.linked.confirm.title=Cita ligada wikicite.citations-pane.linked.confirm.unlink=Desligar wikicite.citations-pane.more=Máis... -wikicite.crossref.get-citations.unsupported=Aínda no né posíbel obter citas de Crossref wikicite.editor.cancel=Cancelar wikicite.editor.save=Gardar wikicite.editor.title=Editor de citas @@ -49,7 +48,7 @@ wikicite.item-menu.autolink-citations=Ligar citas automaticamente con elementos wikicite.item-menu.export-file=Exportar citas a ficheiro wikicite.item-menu.export-croci=Exportar citas a CROCI wikicite.item-menu.fetch-citation-qids=Obter QID para elementos citados -wikicite.item-menu.get-crossref=Obter citas de Crossref +wikicite.item-menu.get-indexer=Obter citas de %1$s wikicite.item-menu.get-occ=Obter citas do Corpus OpenCitations wikicite.item-menu.get-pdf=Extraer citas de anexos wikicite.item-menu.import-citations=Importar citas diff --git a/static/chrome/locale/he/wikicite.properties b/static/chrome/locale/he/wikicite.properties index 98321f42..da628595 100644 --- a/static/chrome/locale/he/wikicite.properties +++ b/static/chrome/locale/he/wikicite.properties @@ -42,7 +42,6 @@ wikicite.citations-pane.linked.confirm.message=הציטוט מקושר לפרי wikicite.citations-pane.linked.confirm.title=ציטוט מקושר wikicite.citations-pane.linked.confirm.unlink=ניתוק wikicite.citations-pane.more=עוד… -wikicite.crossref.get-citations.unsupported=עוד אין תמיכה בייבוא ציטוטים מ־Crossref wikicite.editor.cancel=ביטול wikicite.editor.save=שמירה wikicite.editor.title=עורך הציטוטים @@ -52,7 +51,7 @@ wikicite.item-menu.autolink-citations=קישור אוטומטי של הציטו wikicite.item-menu.export-file=ייצוא ציטוטים לקובץ wikicite.item-menu.export-croci=ייצוא ציטוט ל־CROCI wikicite.item-menu.fetch-citation-qids=אחזור המזהים של הפריטים המצוטטים -wikicite.item-menu.get-crossref=משיכת ציטוטים מ־Crossref +wikicite.item-menu.get-indexer=משיכת ציטוטים מ־$s wikicite.item-menu.get-occ=משיכת ציטוטים מ־OpenCitations Corpus wikicite.item-menu.get-pdf=משיכת ציטוטים מקבצים wikicite.item-menu.import-citations=יבוא ציטוטים diff --git a/static/chrome/locale/hi/wikicite.properties b/static/chrome/locale/hi/wikicite.properties index b252155c..44831d38 100644 --- a/static/chrome/locale/hi/wikicite.properties +++ b/static/chrome/locale/hi/wikicite.properties @@ -39,7 +39,6 @@ wikicite.citations-pane.linked.confirm.message=यह आयटम आपकी wikicite.citations-pane.linked.confirm.title=जुड़ा हुआ उद्धरण wikicite.citations-pane.linked.confirm.unlink=जोड़ तोड़ें wikicite.citations-pane.more=और... -wikicite.crossref.get-citations.unsupported=इस समय Crossref से उद्धरण प्राप्त करना संभव नहीं है wikicite.editor.cancel=रद्द करें wikicite.editor.save=सहेजें wikicite.editor.title=उद्धरण एडिटर @@ -49,7 +48,7 @@ wikicite.item-menu.autolink-citations=Zotero आयटम्स से उद् wikicite.item-menu.export-file=उद्धणों को फ़ाइल पर निर्यात करें wikicite.item-menu.export-croci=उद्धरणों को CROCI पर निर्यात करें wikicite.item-menu.fetch-citation-qids=उद्धृत आयटम्स के लिए QID प्राप्त करें -wikicite.item-menu.get-crossref=Crossref से उद्धरण प्राप्त करें +wikicite.item-menu.get-indexer=%1$s से उद्धरण प्राप्त करें wikicite.item-menu.get-occ=OpenCitations Corpus से उद्धरण प्राप्त करें wikicite.item-menu.get-pdf=अटैचमेंट्स से उद्धरण एक्सट्रैक्ट करें wikicite.item-menu.import-citations=उद्धरण आयात करें @@ -142,7 +141,7 @@ wikicite.source-item.sync-single-citation.unsupported=इस समय अलग wikicite.submenu.add-as-citations=इसमें उद्धरण के रूप में जोड़ें... wikicite.submenu.fetch-qids=QID प्राप्त करें wikicite.submenu.get-from-attachments=अटैचमेंट्स से उद्धरण एक्सट्रैक्ट करें -wikicite.submenu.get-from-crossref=CrossRef से उद्धरण प्राप्त करें +wikicite.submenu.get-from-indexer=%1$s से उद्धरण प्राप्त करें wikicite.submenu.get-from-occ=OpenCitations Corpus से उद्धरण प्राप्त करें wikicite.submenu.local-citation-network=Local Citation Network दिखाएँ wikicite.submenu.sync-with-wikidata=विकिडेटा से उद्धरणों को सिंक करें diff --git a/static/chrome/locale/it/wikicite.properties b/static/chrome/locale/it/wikicite.properties index b088288f..5cb415a0 100644 --- a/static/chrome/locale/it/wikicite.properties +++ b/static/chrome/locale/it/wikicite.properties @@ -42,7 +42,6 @@ wikicite.citations-pane.linked.confirm.message=Questa citazione è collegata all wikicite.citations-pane.linked.confirm.title=Citazione collegata wikicite.citations-pane.linked.confirm.unlink=Scollega wikicite.citations-pane.more=Altro... -wikicite.crossref.get-citations.unsupported=Il recupero delle citazioni da Crossref non è ancora supportato wikicite.editor.cancel=Annulla wikicite.editor.save=Salva wikicite.editor.title=Editor delle citazioni @@ -52,7 +51,7 @@ wikicite.item-menu.autolink-citations=Link automatico delle citazioni a elementi wikicite.item-menu.export-file=Esporta citazioni su file wikicite.item-menu.export-croci=Esporta citazioni su CROCI wikicite.item-menu.fetch-citation-qids=Recuperai QID per gli elementi citati -wikicite.item-menu.get-crossref=Ottieni le citazioni da Crossref +wikicite.item-menu.get-indexer=Ottieni le citazioni da %1$s wikicite.item-menu.get-occ=Ottieni le citazioni da OpenCitations Corpus wikicite.item-menu.get-pdf=Estrai le citazioni dagli allegati wikicite.item-menu.import-citations=Importa citazioni @@ -156,7 +155,7 @@ wikicite.source-item.sync-single-citation.unsupported=La sincronizzazione delle wikicite.submenu.add-as-citations=Aggiungi come fonte/i a... wikicite.submenu.fetch-qids=Recupera QID wikicite.submenu.get-from-attachments=Estrai le citazioni dagli allegati -wikicite.submenu.get-from-crossref=Ottieni le citazioni da Crossref +wikicite.submenu.get-from-indexer=Ottieni le citazioni da %1$s wikicite.submenu.get-from-occ=Ottieni le citazioni da OpenCitations Corpus wikicite.submenu.local-citation-network=Mostra Local Citation Network wikicite.submenu.sync-with-wikidata=Sincronizza le citazioni con Wikidata diff --git a/static/chrome/locale/kaa/wikicite.properties b/static/chrome/locale/kaa/wikicite.properties index 0d714b48..1e091cd4 100644 --- a/static/chrome/locale/kaa/wikicite.properties +++ b/static/chrome/locale/kaa/wikicite.properties @@ -40,7 +40,6 @@ wikicite.citations-pane.linked.confirm.message=Bul citata kitapxanańızdaǵı " wikicite.citations-pane.linked.confirm.title=Baylanıstırılǵan citata wikicite.citations-pane.linked.confirm.unlink=Baylanıstı óshiriw wikicite.citations-pane.more=Tolıǵıraq... -wikicite.crossref.get-citations.unsupported=Crossref-ten citatalardı alıwǵa ele qollap-quwatlanbaydı wikicite.editor.cancel=Biykarlaw wikicite.editor.save=Saqlaw wikicite.editor.title=Citata redaktorı @@ -50,7 +49,7 @@ wikicite.item-menu.autolink-citations=Zotero elementleri menen citatalardı avto wikicite.item-menu.export-file=Citatalardı faylǵa eksport etiw wikicite.item-menu.export-croci=CROCI-ǵa citatalardı eksport etiw wikicite.item-menu.fetch-citation-qids=Citatalanǵan elementler ushın QID alıń -wikicite.item-menu.get-crossref=Crossref citatasın alıń +wikicite.item-menu.get-indexer=%1$s citatasın alıń wikicite.item-menu.get-occ=OpenCitations korpusınan citatalar alıń wikicite.item-menu.get-pdf=Qosımshalardan citatalar alıw wikicite.item-menu.import-citations=Citatalardı import etiw diff --git a/static/chrome/locale/lt/wikicite.properties b/static/chrome/locale/lt/wikicite.properties index d3612f5b..55ef1f75 100644 --- a/static/chrome/locale/lt/wikicite.properties +++ b/static/chrome/locale/lt/wikicite.properties @@ -38,7 +38,6 @@ wikicite.citations-pane.linked.confirm.message=Ši citata susieta su elementu wikicite.citations-pane.linked.confirm.title=Susieta citata wikicite.citations-pane.linked.confirm.unlink=Atsieti wikicite.citations-pane.more=Daugiau... -wikicite.crossref.get-citations.unsupported=Citatų gavimas iš Crossref kol kas nepalaikomos wikicite.editor.cancel=Atšaukti wikicite.editor.save=Išsaugoti wikicite.editor.title=Citatų redaktorius @@ -48,7 +47,7 @@ wikicite.item-menu.autolink-citations=Automatiškai susieti citatas su Zotero el wikicite.item-menu.export-file=Eksportuoti citatas į failą wikicite.item-menu.export-croci=Eksportuokite citatas į CROCI wikicite.item-menu.fetch-citation-qids=Gauti cituojamų elementų QID -wikicite.item-menu.get-crossref=Gauti citatas iš Crossref +wikicite.item-menu.get-indexer=Gauti citatas iš %1$s wikicite.item-menu.get-occ=Gauti citatas iš OpenCitations Corpus wikicite.item-menu.get-pdf=Ištraukti citatas iš priedų wikicite.item-menu.import-citations=Importuoti citatas @@ -141,7 +140,7 @@ wikicite.source-item.sync-single-citation.unsupported=Atskirų citatų sinchroni wikicite.submenu.add-as-citations=Pridėti kaip citatą(-as) prie... wikicite.submenu.fetch-qids=Gauti QID wikicite.submenu.get-from-attachments=Ištraukti citatas iš priedų -wikicite.submenu.get-from-crossref=Gauti citatas iš CrossRef +wikicite.submenu.get-from-indexer=Gauti citatas iš %1$s wikicite.submenu.get-from-occ=Gauti citatas iš OpenCitations Corpus wikicite.submenu.local-citation-network=Rodyti vietinį citatų tinklą wikicite.submenu.sync-with-wikidata=Sinchronizuoti citatas su Vikiduomenimis diff --git a/static/chrome/locale/mk/wikicite.properties b/static/chrome/locale/mk/wikicite.properties index ea255fad..5100700e 100644 --- a/static/chrome/locale/mk/wikicite.properties +++ b/static/chrome/locale/mk/wikicite.properties @@ -32,7 +32,6 @@ wikicite.citations-pane.linked.confirm.message=Овој навод е поврз wikicite.citations-pane.linked.confirm.title=Сврзан навод wikicite.citations-pane.linked.confirm.unlink=Одврзи wikicite.citations-pane.more=Повеќе... -wikicite.crossref.get-citations.unsupported=Преземањето на наводи од Crossref сè уште не е поддржано wikicite.editor.cancel=Откажи wikicite.editor.save=Зачувај wikicite.editor.title=Уредник на наводи @@ -41,7 +40,7 @@ wikicite.global.name=Cita wikicite.global.unsupported=Неподдржано wikicite.item-menu.autolink-citations=Автоповрзување на наводи со предмети на Zotero wikicite.item-menu.export-croci=Извези наводи во CROCI -wikicite.item-menu.get-crossref=Преземи наводи од Crossref +wikicite.item-menu.get-indexer=Преземи наводи од %1$s wikicite.item-menu.get-occ=Преземи наводи од OpenCitations Corpus wikicite.item-menu.get-pdf=Извади наводи од прилози wikicite.item-menu.sort=Подреди по @@ -72,7 +71,7 @@ wikicite.source-item.get-citations-note.error.multiple=Неочекувано н wikicite.source-item.sync-single-citation.unsupported=Усогласувањето на поединечни наводи со Википодатоците сè уште не е поддржано wikicite.submenu.add-as-citations=Додај како навод(и) во... wikicite.submenu.get-from-attachments=Извади наводи од прилози -wikicite.submenu.get-from-crossref=Преземи наводи од CrossRef +wikicite.submenu.get-from-indexer=Преземи наводи од %1$s wikicite.submenu.get-from-occ=Преземи наводи од OpenCitations Corpus wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Прикажи месна мрежа на наводи diff --git a/static/chrome/locale/nl/wikicite.properties b/static/chrome/locale/nl/wikicite.properties index 2d80b621..c3fd68d4 100644 --- a/static/chrome/locale/nl/wikicite.properties +++ b/static/chrome/locale/nl/wikicite.properties @@ -41,7 +41,6 @@ wikicite.citations-pane.linked.confirm.message=Dit citaat is gekoppeld met item wikicite.citations-pane.linked.confirm.title=Gekoppeld citaat wikicite.citations-pane.linked.confirm.unlink=Ontkoppelen wikicite.citations-pane.more=Meer… -wikicite.crossref.get-citations.unsupported=Het ophalen van citaten uit Crossref is nog niet mogelijk wikicite.editor.cancel=Annuleren wikicite.editor.save=Opslaan wikicite.editor.title=Citaateditor @@ -52,7 +51,7 @@ wikicite.item-menu.autolink-citations=Citaties automatisch linken aan Zotero ite wikicite.item-menu.export-file=Citaten naar bestand exporteren wikicite.item-menu.export-croci=Citaten naar CROCI exporteren wikicite.item-menu.fetch-citation-qids=QID's ophalen voor geciteerde items -wikicite.item-menu.get-crossref=Citaten ophalen uit Crossref +wikicite.item-menu.get-indexer=Citaten ophalen uit %1$s wikicite.item-menu.get-occ=Citaten ophalen uit OpenCitations Corpus wikicite.item-menu.get-pdf=Citaten uit aangehangen bestanden halen wikicite.item-menu.import-citations=Citaten importeren diff --git a/static/chrome/locale/pms/wikicite.properties b/static/chrome/locale/pms/wikicite.properties index 11004efc..dca00f98 100644 --- a/static/chrome/locale/pms/wikicite.properties +++ b/static/chrome/locale/pms/wikicite.properties @@ -38,7 +38,6 @@ wikicite.citations-pane.linked.confirm.message=Costa sitasion a l'é gropà a l' wikicite.citations-pane.linked.confirm.title=Sitassion gropà wikicite.citations-pane.linked.confirm.unlink=Dësgropé wikicite.citations-pane.more=Ëd pi... -wikicite.crossref.get-citations.unsupported=L'oteniment dle sitassion da Crossref a l'é ancor nen mantnù wikicite.editor.cancel=Anulé wikicite.editor.save=Argistré wikicite.editor.title=Editor ëd sitassion @@ -49,7 +48,7 @@ wikicite.item-menu.autolink-citations=Sitassion lijà an automàtich con dj'elem wikicite.item-menu.export-file=Esporté le sitassion vers n'archivi wikicite.item-menu.export-croci=Esporté le sitassion vers CROCI wikicite.item-menu.fetch-citation-qids=Arcuperé ij QID për j'element sità -wikicite.item-menu.get-crossref=Oten-e dle sitassion da Crossref +wikicite.item-menu.get-indexer=Oten-e dle sitassion da %1$s wikicite.item-menu.get-occ=Oten-e dle sitassion da OpenCitations Corpus wikicite.item-menu.get-pdf=Tiré fòra dle sitassion da dj'alegà wikicite.item-menu.import-citations=Amporté le sitassion @@ -153,7 +152,7 @@ wikicite.source-item.sync-single-citation.unsupported=Sincronisassion ëd sitass wikicite.submenu.add-as-citations=Gionté tanme sitassion a... wikicite.submenu.fetch-qids=Oten-e ij QID wikicite.submenu.get-from-attachments=Tiré fòra le sitassion da dj'alegà -wikicite.submenu.get-from-crossref=Oten-e dle sitassion da Crossref +wikicite.submenu.get-from-indexer=Oten-e dle sitassion da %1$s wikicite.submenu.get-from-occ=Oten-e dle sitassion da OpenCitations Corpus wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Smon-e la rej ëd sitassion local diff --git a/static/chrome/locale/pt-br/wikicite.properties b/static/chrome/locale/pt-br/wikicite.properties index ea54ad5f..be7373c3 100644 --- a/static/chrome/locale/pt-br/wikicite.properties +++ b/static/chrome/locale/pt-br/wikicite.properties @@ -43,7 +43,6 @@ wikicite.citations-pane.linked.confirm.message=Esta citação está vinculada ao wikicite.citations-pane.linked.confirm.title=Citação vinculada wikicite.citations-pane.linked.confirm.unlink=Desvincular wikicite.citations-pane.more=Mais… -wikicite.crossref.get-citations.unsupported=A obtenção de citações do Crossref ainda não é suportada wikicite.editor.cancel=Cancelar wikicite.editor.save=Salvar wikicite.editor.title=Editor de citações @@ -54,7 +53,7 @@ wikicite.item-menu.autolink-citations=Vincular citações automaticamente a iten wikicite.item-menu.export-file=Exportar citações para arquivo wikicite.item-menu.export-croci=Exportar citações para CROCI wikicite.item-menu.fetch-citation-qids=Buscar QIDs para itens citados -wikicite.item-menu.get-crossref=Obter citações do Crossref +wikicite.item-menu.get-indexer=Obter citações do %1$s wikicite.item-menu.get-occ=Obter citações do OpenCitations Corpus wikicite.item-menu.get-pdf=Extraia citações de anexos wikicite.item-menu.import-citations=Importar citações @@ -158,7 +157,7 @@ wikicite.source-item.sync-single-citation.unsupported=Ainda não há suporte par wikicite.submenu.add-as-citations=Adicionar como citação(ões) a... wikicite.submenu.fetch-qids=Obter QID(s) wikicite.submenu.get-from-attachments=Extrair citações de anexos -wikicite.submenu.get-from-crossref=Obter citações do CrossRef +wikicite.submenu.get-from-indexer=Obter citações do %1$s wikicite.submenu.get-from-occ=Obter citações do OpenCitations Corpus wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Mostrar rede de citações locais diff --git a/static/chrome/locale/qqq/wikicite.properties b/static/chrome/locale/qqq/wikicite.properties index ceeae25a..11bd620d 100644 --- a/static/chrome/locale/qqq/wikicite.properties +++ b/static/chrome/locale/qqq/wikicite.properties @@ -37,7 +37,6 @@ wikicite.citations-pane.linked.confirm.message=Prompt message shown when user cl wikicite.citations-pane.linked.confirm.title=Title of the prompt message shown when user clicks on the link button next to a linked citation wikicite.citations-pane.linked.confirm.unlink=Button to "Unlink" from the linked Zotero item, in the prompt message shown when user clicks on the link button next to a linked citation wikicite.citations-pane.more=Label on the Citations Pane "More..." button that displays a menu with actions for the Zotero item selected -wikicite.crossref.get-citations.unsupported=Error message shown when user tries to get citations from Crossref, explaining this is not yet supported wikicite.editor.cancel=Citation Editor's "Cancel" button label\n{{identical|Cancel}} wikicite.editor.save=Citation Editor's "Save" button label\n{{identical|Save}} wikicite.editor.title=Citation Editor's dialog title @@ -47,7 +46,7 @@ wikicite.global.unsupported=Title of error messages that explain that a given fu wikicite.item-menu.export-file=Citations Pane Item menu's item to export citations' target items to a file wikicite.item-menu.export-croci=Citations Pane Item menu's item to export citations to OpenCitations' Crowdsourced Open Citations Index (CROCI) wikicite.item-menu.fetch-citation-qids=Citations Pane Item menu's item to fetch QIDs for citations' cited items -wikicite.item-menu.get-crossref=Citations Pane Item menu's item to get citations from Crossref +wikicite.item-menu.get-indexer=Citations Pane Item menu's item to get citations from %1$s wikicite.item-menu.get-occ=Citations Pane Item menu's item to get citations from OpenCitations Corpus wikicite.item-menu.get-pdf=Citations Pane Item menu's item to extract citations from file attachments wikicite.item-menu.import-citations=Citations Pane Item menu's item to import citations @@ -77,7 +76,7 @@ wikicite.source-item.import.progress.none=Progress window text shown when no cit wikicite.source-item.sync-single-citation.unsupported=Error message shown when user tries to sync a single citation with Wikidata, explaining this is not yet supported wikicite.submenu.add-as-citations=Item tree submenu item to add items selected as citations to another item which would be selected next wikicite.submenu.get-from-attachments=Item/collection tree submenu item to batch extract citations from file attachments for the items or collection selected -wikicite.submenu.get-from-crossref=Item/collection tree submenu item to batch get citations from Crossref for the items or collection selected +wikicite.submenu.get-from-indexer=Item/collection tree submenu item to batch get citations from %1$s for the items or collection selected wikicite.submenu.get-from-occ=Item/collection tree submenu item to batch get citations from OpenCitations Corpus for the items or collection selected wikicite.submenu.label=Item/collection tree submenu label wikicite.submenu.local-citation-network=Item/collection tree submenu item to show local citation network for the items or collection selected diff --git a/static/chrome/locale/ro/wikicite.properties b/static/chrome/locale/ro/wikicite.properties index fde77bc1..d6a354ae 100644 --- a/static/chrome/locale/ro/wikicite.properties +++ b/static/chrome/locale/ro/wikicite.properties @@ -28,7 +28,6 @@ wikicite.citations-pane.linked.confirm.message=Această citare este corelată ci wikicite.citations-pane.linked.confirm.title=Citate corelată wikicite.citations-pane.linked.confirm.unlink=Deconectează wikicite.citations-pane.more=Mai mult… -wikicite.crossref.get-citations.unsupported=Obținerea referințelor din Crossref nu este încă implementată wikicite.editor.cancel=Revocare wikicite.editor.save=Salvează wikicite.editor.title=Editor de referințe diff --git a/static/chrome/locale/ru/wikicite.properties b/static/chrome/locale/ru/wikicite.properties index 07a6a4b4..cbba3338 100644 --- a/static/chrome/locale/ru/wikicite.properties +++ b/static/chrome/locale/ru/wikicite.properties @@ -44,7 +44,6 @@ wikicite.citations-pane.linked.confirm.message=Эта цитата связан wikicite.citations-pane.linked.confirm.title=Связанная цитата wikicite.citations-pane.linked.confirm.unlink=Разорвать связь wikicite.citations-pane.more=Далее… -wikicite.crossref.get-citations.unsupported=Получение цитат из Crossref ещё не поддерживается wikicite.editor.cancel=Отмена wikicite.editor.save=Сохранить wikicite.editor.title=Редактор цитирования @@ -54,7 +53,7 @@ wikicite.item-menu.autolink-citations=Автоматическая ссылка wikicite.item-menu.export-file=Экспорт цитат в файл wikicite.item-menu.export-croci=Экспорт цитат в CROCI wikicite.item-menu.fetch-citation-qids=Получение QID для цитируемых элементов -wikicite.item-menu.get-crossref=Получить цитаты из Crossref +wikicite.item-menu.get-indexer=Получить цитаты из %1$s wikicite.item-menu.get-occ=Получить цитаты из OpenCitations Corpus wikicite.item-menu.get-pdf=Извлечение цитат из прикрепленных файлов wikicite.item-menu.import-citations=Импортировать цитаты @@ -158,7 +157,7 @@ wikicite.source-item.sync-single-citation.unsupported=Синхронизация wikicite.submenu.add-as-citations=Добавить как цитату/цитаты в… wikicite.submenu.fetch-qids=Получить QID(ы) wikicite.submenu.get-from-attachments=Извлечение цитат из прикрепленных файлов -wikicite.submenu.get-from-crossref=Получите цитаты из CrossRef +wikicite.submenu.get-from-indexer=Получите цитаты из %1$s wikicite.submenu.get-from-occ=Получить цитаты из OpenCitations Corpus wikicite.submenu.local-citation-network=Показать локальную сеть цитирования wikicite.submenu.sync-with-wikidata=Синхронизация цитат с Викиданными diff --git a/static/chrome/locale/sk/wikicite.properties b/static/chrome/locale/sk/wikicite.properties index b600ed91..7e9186b3 100644 --- a/static/chrome/locale/sk/wikicite.properties +++ b/static/chrome/locale/sk/wikicite.properties @@ -39,7 +39,6 @@ wikicite.citations-pane.linked.confirm.message=Táto citácia je spojená s polo wikicite.citations-pane.linked.confirm.title=Spojená citácia wikicite.citations-pane.linked.confirm.unlink=Odpojiť wikicite.citations-pane.more=Viac... -wikicite.crossref.get-citations.unsupported=Získavanie citácií z Crossref ešte nie je podporované wikicite.editor.cancel=Zrušiť wikicite.editor.save=Uložiť wikicite.editor.title=Editor citácií @@ -50,7 +49,7 @@ wikicite.item-menu.autolink-citations=Automatické prepojenie citácií s polož wikicite.item-menu.export-file=Exportovať citácie do súboru wikicite.item-menu.export-croci=Exportovať citácie do CROCI wikicite.item-menu.fetch-citation-qids=Získať QID pre citované položky -wikicite.item-menu.get-crossref=Získať citácie z Crossref +wikicite.item-menu.get-indexer=Získať citácie z %1$s wikicite.item-menu.get-occ=Získať citácie z OpenCitations Corpus (OCC) wikicite.item-menu.get-pdf=Extrahovať citácie z príloh wikicite.item-menu.import-citations=Importovať citácie @@ -154,7 +153,7 @@ wikicite.source-item.sync-single-citation.unsupported=Synchronizácia individuá wikicite.submenu.add-as-citations=Pridajte ako citáciu (s) k... wikicite.submenu.fetch-qids=Načítať QID wikicite.submenu.get-from-attachments=Extrahovať citácie z príloh -wikicite.submenu.get-from-crossref=Získať citácie z Crossref +wikicite.submenu.get-from-indexer=Získať citácie z %1$s wikicite.submenu.get-from-occ=Získať citácie z OpenCitations Corpus (OCC) wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Zobraziť miestnu sieť citácií diff --git a/static/chrome/locale/sl/wikicite.properties b/static/chrome/locale/sl/wikicite.properties index 268eabe4..3f008583 100644 --- a/static/chrome/locale/sl/wikicite.properties +++ b/static/chrome/locale/sl/wikicite.properties @@ -22,7 +22,7 @@ wikicite.citation-menu.export-file=Izvozi citirani predmet v datoteko wikicite.citation-menu.export-croci=Izvozi citat v CROCI wikicite.citation-menu.fetch-qid=Pridobi QID citiranega predmeta wikicite.citation-menu.oci=Glej v OpenCitations -wikicite.citation-menu.oci.crossref=Oskrbovalec CrossRef +wikicite.citation-menu.oci.crossref=Oskrbovalec Crossref wikicite.citation-menu.oci.occ=Oskrbovalec OCC wikicite.citation-menu.oci.wikidata=Oskrbovalec Wikipodatki wikicite.citation-menu.sync-wikidata=Sinhroniziraj citat z Wikipodatki @@ -38,7 +38,6 @@ wikicite.citations-pane.linked.confirm.message=Ta citat je povezan s predmetom wikicite.citations-pane.linked.confirm.title=Povezani citat wikicite.citations-pane.linked.confirm.unlink=Odstrani povezavo wikicite.citations-pane.more=Več ... -wikicite.crossref.get-citations.unsupported=Pridobivanje citatov iz Crossref še ni podprto wikicite.editor.cancel=Prekliči wikicite.editor.save=Shrani wikicite.editor.title=Urejevalnik citatov @@ -49,7 +48,7 @@ wikicite.item-menu.autolink-citations=Samodejno povezovanje citatov z elementi Z wikicite.item-menu.export-file=Izvozi citate v datoteko wikicite.item-menu.export-croci=Izvoz citatov v CROCI wikicite.item-menu.fetch-citation-qids=Pridobi QID za citirane predmete -wikicite.item-menu.get-crossref=Pridobi citate iz Crossref +wikicite.item-menu.get-indexer=Pridobi citate iz %1$s wikicite.item-menu.get-occ=Pridobi citate iz OpenCitations Corpus wikicite.item-menu.get-pdf=Izvleci citate iz priponk wikicite.item-menu.import-citations=Uvozi citate @@ -153,7 +152,7 @@ wikicite.source-item.sync-single-citation.unsupported=Sinhronizacija posameznih wikicite.submenu.add-as-citations=Dodaj kot citat(e) v ... wikicite.submenu.fetch-qids=Pridobi QID(-je) wikicite.submenu.get-from-attachments=Izvleci citate iz priponk -wikicite.submenu.get-from-crossref=Pridobi citate iz CrossRef +wikicite.submenu.get-from-indexer=Pridobi citate iz %1$s wikicite.submenu.get-from-occ=Pridobi citate iz OpenCitations Corpus wikicite.submenu.label=Cita wikicite.submenu.local-citation-network=Prikaži lokalno mrežo citiranja diff --git a/static/chrome/locale/sv/wikicite.properties b/static/chrome/locale/sv/wikicite.properties index fb03be31..e9da787c 100644 --- a/static/chrome/locale/sv/wikicite.properties +++ b/static/chrome/locale/sv/wikicite.properties @@ -39,7 +39,6 @@ wikicite.citations-pane.linked.confirm.message=Detta citat länkas till objekt " wikicite.citations-pane.linked.confirm.title=Länkat citat wikicite.citations-pane.linked.confirm.unlink=Avlänka wikicite.citations-pane.more=Mer... -wikicite.crossref.get-citations.unsupported=Att hämta citat från Crossref stöds för närvarande inte wikicite.editor.cancel=Avbryt wikicite.editor.save=Spara wikicite.editor.title=Citatredigerare @@ -50,7 +49,7 @@ wikicite.item-menu.autolink-citations=Automatiska länkcitat med Zotero-objekt wikicite.item-menu.export-file=Exportera citat till fil wikicite.item-menu.export-croci=Exportera citat till CROCI wikicite.item-menu.fetch-citation-qids=Hämta QID:n för citerade objekt -wikicite.item-menu.get-crossref=Hämta citat från Crossref +wikicite.item-menu.get-indexer=Hämta citat från %1$s wikicite.item-menu.get-occ=Hämta citat från OpenCitations Corpus wikicite.item-menu.get-pdf=Extrahera citat från bifogade filer wikicite.item-menu.import-citations=Importera citat diff --git a/static/chrome/locale/tk/wikicite.properties b/static/chrome/locale/tk/wikicite.properties index afdec3c5..ec76f005 100644 --- a/static/chrome/locale/tk/wikicite.properties +++ b/static/chrome/locale/tk/wikicite.properties @@ -36,7 +36,6 @@ wikicite.citations-pane.linked.confirm.go=Git wikicite.citations-pane.linked.confirm.title=Baglanyşykly sitata wikicite.citations-pane.linked.confirm.unlink=Aýyrmak wikicite.citations-pane.more=Has köp... -wikicite.crossref.get-citations.unsupported=“Crossref” -dan sitata almak entek goldanylmaýar wikicite.editor.cancel=Goýbolsun et wikicite.editor.save=Ýazdyr wikicite.editor.title=Sitat redaktory @@ -46,7 +45,7 @@ wikicite.item-menu.autolink-citations=Zotero elementleri bilen awtomatiki baglan wikicite.item-menu.export-file=Sitatalary faýllara eksport ediň wikicite.item-menu.export-croci=Sitatlary CROCI-e eksport ediň wikicite.item-menu.fetch-citation-qids=Görkezilen zatlar üçin QID-leri alyň -wikicite.item-menu.get-crossref=“Crossref” -dan sitata alyň +wikicite.item-menu.get-indexer=“$s” -dan sitata alyň wikicite.item-menu.get-occ=OpenCitations Corpus-dan sitata alyň wikicite.item-menu.get-pdf=Goşundylardan sitatalary çykaryň wikicite.item-menu.import-citations=Sitatlary import ediň diff --git a/static/chrome/locale/tr/wikicite.properties b/static/chrome/locale/tr/wikicite.properties index 28dcb85f..3ec9dadb 100644 --- a/static/chrome/locale/tr/wikicite.properties +++ b/static/chrome/locale/tr/wikicite.properties @@ -43,7 +43,6 @@ wikicite.citations-pane.linked.confirm.message=Bu alıntı, kitaplığınızdaki wikicite.citations-pane.linked.confirm.title=Bağlantılı alıntı wikicite.citations-pane.linked.confirm.unlink=Bağlantıyı Kaldır wikicite.citations-pane.more=Daha fazla... -wikicite.crossref.get-citations.unsupported=Crossref'ten alıntılar henüz desteklenmiyor wikicite.editor.cancel=İptal wikicite.editor.save=Kaydet wikicite.editor.title=Alıntı Editörü @@ -53,7 +52,7 @@ wikicite.global.unsupported=Desteklenmiyor wikicite.item-menu.autolink-citations=Alıntıları Zotero ögeleriyle otomatik bağlama wikicite.item-menu.export-file=Kaynakları dosyaya dışa aktar wikicite.item-menu.export-croci=Alıntıları CROCI'ye aktar -wikicite.item-menu.get-crossref=Crossref'ten alıntılar alın +wikicite.item-menu.get-indexer=%1$s'ten alıntılar alın wikicite.item-menu.get-occ=OpenCitations Corpus'tan alıntılar alın wikicite.item-menu.get-pdf=Eklerden alıntıları ayıklayın wikicite.item-menu.import-citations=Kaynakları içe aktar diff --git a/static/chrome/locale/uk/wikicite.properties b/static/chrome/locale/uk/wikicite.properties index 0b9eebf7..7937c296 100644 --- a/static/chrome/locale/uk/wikicite.properties +++ b/static/chrome/locale/uk/wikicite.properties @@ -40,7 +40,6 @@ wikicite.citations-pane.linked.confirm.message=Це посилання пов’ wikicite.citations-pane.linked.confirm.title=Пов’язане цитування wikicite.citations-pane.linked.confirm.unlink=Відв'язати wikicite.citations-pane.more=Більше… -wikicite.crossref.get-citations.unsupported=Отримання цитат від Crossref ще не підтримується wikicite.editor.cancel=Скасувати wikicite.editor.save=Зберегти wikicite.editor.title=Редактор цитування @@ -50,7 +49,7 @@ wikicite.item-menu.autolink-citations=Автоматично пов'язуват wikicite.item-menu.export-file=Експортувати цитати у файл wikicite.item-menu.export-croci=Експортувати цитати до CROCI wikicite.item-menu.fetch-citation-qids=Отримати QID для цитованих елементів -wikicite.item-menu.get-crossref=Отримайте цитати від Crossref +wikicite.item-menu.get-indexer=Отримайте цитати від %1$s wikicite.item-menu.get-occ=Отримайте цитати у OpenCitations Corpus wikicite.item-menu.get-pdf=Витяг цитат із вкладень wikicite.item-menu.import-citations=Імпортувати цитати @@ -154,7 +153,7 @@ wikicite.source-item.sync-single-citation.unsupported=Синхронізація wikicite.submenu.add-as-citations=Додати як цитати до… wikicite.submenu.fetch-qids=Отримати QID wikicite.submenu.get-from-attachments=Витяг цитат із вкладень -wikicite.submenu.get-from-crossref=Отримайте цитати від CrossRef +wikicite.submenu.get-from-indexer=Отримайте цитати від %1$s wikicite.submenu.get-from-occ=Отримайте цитати у OpenCitations Corpus wikicite.submenu.local-citation-network=Показати локальну мережу цитування wikicite.submenu.sync-with-wikidata=Синхронізувати цитати з Вікіданими diff --git a/static/chrome/locale/zh-hans/wikicite.properties b/static/chrome/locale/zh-hans/wikicite.properties index 720e3838..316f5673 100644 --- a/static/chrome/locale/zh-hans/wikicite.properties +++ b/static/chrome/locale/zh-hans/wikicite.properties @@ -41,7 +41,6 @@ wikicite.citations-pane.linked.confirm.message=此引文链接至您的图书馆 wikicite.citations-pane.linked.confirm.title=已链接的引文 wikicite.citations-pane.linked.confirm.unlink=取消链接 wikicite.citations-pane.more=更多… -wikicite.crossref.get-citations.unsupported=从 Crossref 获取引文尚不受支持 wikicite.editor.cancel=取消 wikicite.editor.save=保存 wikicite.editor.title=引文编辑器 @@ -51,7 +50,7 @@ wikicite.item-menu.autolink-citations=自动将引文与 Zotero 项目链接 wikicite.item-menu.export-file=将引文导出到文件 wikicite.item-menu.export-croci=将引文导出到 CROCI wikicite.item-menu.fetch-citation-qids=获取被引用项目的 QID -wikicite.item-menu.get-crossref=从 Crossref 获取引文 +wikicite.item-menu.get-indexer=从 %1$s 获取引文 wikicite.item-menu.get-occ=从 OpenCitations Corpus 获取引文 wikicite.item-menu.get-pdf=从附件提取引文 wikicite.item-menu.import-citations=导入引文 @@ -155,7 +154,7 @@ wikicite.source-item.sync-single-citation.unsupported=与维基数据同步单 wikicite.submenu.add-as-citations=作为引文添加到… wikicite.submenu.fetch-qids=获取 QID wikicite.submenu.get-from-attachments=从附件提取引文 -wikicite.submenu.get-from-crossref=从 CrossRef 获取引文 +wikicite.submenu.get-from-indexer=从 %1$s 获取引文 wikicite.submenu.get-from-occ=从 OpenCitations Corpus 获取引文 wikicite.submenu.local-citation-network=显示本地引文网络 wikicite.submenu.sync-with-wikidata=与维基数据同步引文 diff --git a/static/chrome/locale/zh-hant/wikicite.properties b/static/chrome/locale/zh-hant/wikicite.properties index 902b1713..171bbe76 100644 --- a/static/chrome/locale/zh-hant/wikicite.properties +++ b/static/chrome/locale/zh-hant/wikicite.properties @@ -43,7 +43,6 @@ wikicite.citations-pane.linked.confirm.message=此引文鏈接到您圖書館中 wikicite.citations-pane.linked.confirm.title=已鏈接的引文 wikicite.citations-pane.linked.confirm.unlink=取消鏈接 wikicite.citations-pane.more=更多… -wikicite.crossref.get-citations.unsupported=从 Crossref 获取引文尚不受支持 wikicite.editor.cancel=取消 wikicite.editor.save=儲存 wikicite.editor.title=引文編輯器 @@ -53,7 +52,7 @@ wikicite.item-menu.autolink-citations=自動將引文與 Zotero 項目鏈接 wikicite.item-menu.export-file=將引文導出到文件 wikicite.item-menu.export-croci=將引文導出到 CROCI wikicite.item-menu.fetch-citation-qids=獲取引用項目的 QID -wikicite.item-menu.get-crossref=從 Crossref 獲取引文 +wikicite.item-menu.get-indexer=從 %1$s 獲取引文 wikicite.item-menu.get-occ=從 OpenCitations Corpus 獲取引文 wikicite.item-menu.get-pdf=從附件中提取引文 wikicite.item-menu.import-citations=導入引文 @@ -157,7 +156,7 @@ wikicite.source-item.sync-single-citation.unsupported=尚不支持將單個引 wikicite.submenu.add-as-citations=作為引文添加到… wikicite.submenu.fetch-qids=獲取 QID(s) wikicite.submenu.get-from-attachments=從附件中提取引文 -wikicite.submenu.get-from-crossref=從 CrossRef 獲取引文 +wikicite.submenu.get-from-indexer=從 %1$s 獲取引文 wikicite.submenu.get-from-occ=從 OpenCitations Corpus 獲取引文 wikicite.submenu.local-citation-network=顯示本地引用網絡 wikicite.submenu.sync-with-wikidata=與維基數據同步引文 diff --git a/typings/global.d.ts b/typings/global.d.ts index 9f7bd976..30daaad9 100644 --- a/typings/global.d.ts +++ b/typings/global.d.ts @@ -23,5 +23,16 @@ declare const __env__: "production" | "development"; declare class Localization {} -declare type PIDType = "DOI" | "ISBN" | "QID" | "OCC"; +declare type PIDType = + | "DOI" + | "ISBN" + | "QID" + | "OMID" + | "arXiv" + | "OpenAlex" + | "PMID" + | "PMCID"; declare type QID = `Q${number}`; +declare type DOI = `10.${string}/${string}`; +declare type OMID = `br/${number}`; +declare type OpenAlexID = `W${number}`; diff --git a/typings/zotero-translators/index.d.ts b/typings/zotero-translators/index.d.ts new file mode 100644 index 00000000..28f8fa20 --- /dev/null +++ b/typings/zotero-translators/index.d.ts @@ -0,0 +1,1528 @@ +// File copied from https://github.com/zotero/translators/blob/master/index.d.ts +// seeAlso, notes and attachments made optional; Utilities namespace removed + +declare namespace ZoteroTranslators { + interface Attachment { + title: string; + snapshot?: boolean; + mimeType?: string; + url?: string; + document?: Document; + path?: string; + proxy?: boolean; + } + + interface Tag { + tag: string; + } + + type ItemType = keyof ItemTypes; + + /** + * Generic item with unknown type. + */ + type Item = ItemTypes[ItemType]; + + let Item: { + new (itemType: T): ItemTypes[T]; + new (itemType: string): Item; + }; + + interface Creator { + lastName: string?; + firstName: string?; + creatorType: T; + fieldMode: 1?; + } + + /* *** BEGIN GENERATED TYPES *** */ + type ItemTypes = { + artwork: ArtworkItem; + audioRecording: AudioRecordingItem; + bill: BillItem; + blogPost: BlogPostItem; + book: BookItem; + bookSection: BookSectionItem; + case: CaseItem; + computerProgram: ComputerProgramItem; + conferencePaper: ConferencePaperItem; + dataset: DatasetItem; + dictionaryEntry: DictionaryEntryItem; + document: DocumentItem; + email: EmailItem; + encyclopediaArticle: EncyclopediaArticleItem; + film: FilmItem; + forumPost: ForumPostItem; + hearing: HearingItem; + instantMessage: InstantMessageItem; + interview: InterviewItem; + journalArticle: JournalArticleItem; + letter: LetterItem; + magazineArticle: MagazineArticleItem; + manuscript: ManuscriptItem; + map: MapItem; + newspaperArticle: NewspaperArticleItem; + patent: PatentItem; + podcast: PodcastItem; + preprint: PreprintItem; + presentation: PresentationItem; + radioBroadcast: RadioBroadcastItem; + report: ReportItem; + standard: StandardItem; + statute: StatuteItem; + thesis: ThesisItem; + tvBroadcast: TVBroadcastItem; + videoRecording: VideoRecordingItem; + webpage: WebpageItem; + }; + + type ArtworkItem = { + itemType: "artwork"; + title?: string; + abstractNote?: string; + artworkMedium?: string; + artworkSize?: string; + date?: string; + language?: string; + shortTitle?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator<"artist" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type AudioRecordingItem = { + itemType: "audioRecording"; + title?: string; + abstractNote?: string; + audioRecordingFormat?: string; + seriesTitle?: string; + volume?: string; + numberOfVolumes?: string; + place?: string; + label?: string; + date?: string; + runningTime?: string; + language?: string; + ISBN?: string; + shortTitle?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator< + "performer" | "contributor" | "composer" | "wordsBy" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type BillItem = { + itemType: "bill"; + title?: string; + abstractNote?: string; + billNumber?: string; + code?: string; + codeVolume?: string; + section?: string; + codePages?: string; + legislativeBody?: string; + session?: string; + history?: string; + date?: string; + language?: string; + url?: string; + accessDate?: string; + shortTitle?: string; + rights?: string; + extra?: string; + + creators: Creator<"sponsor" | "cosponsor" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type BlogPostItem = { + itemType: "blogPost"; + title?: string; + abstractNote?: string; + blogTitle?: string; + websiteType?: string; + date?: string; + url?: string; + accessDate?: string; + language?: string; + shortTitle?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "commenter" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type BookItem = { + itemType: "book"; + title?: string; + abstractNote?: string; + series?: string; + seriesNumber?: string; + volume?: string; + numberOfVolumes?: string; + edition?: string; + place?: string; + publisher?: string; + date?: string; + numPages?: string; + language?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "author" | "contributor" | "editor" | "translator" | "seriesEditor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type BookSectionItem = { + itemType: "bookSection"; + title?: string; + abstractNote?: string; + bookTitle?: string; + series?: string; + seriesNumber?: string; + volume?: string; + numberOfVolumes?: string; + edition?: string; + place?: string; + publisher?: string; + date?: string; + pages?: string; + language?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + | "author" + | "contributor" + | "editor" + | "bookAuthor" + | "translator" + | "seriesEditor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type CaseItem = { + itemType: "case"; + caseName?: string; + abstractNote?: string; + court?: string; + dateDecided?: string; + docketNumber?: string; + reporter?: string; + reporterVolume?: string; + firstPage?: string; + history?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "counsel" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type ComputerProgramItem = { + itemType: "computerProgram"; + title?: string; + abstractNote?: string; + seriesTitle?: string; + versionNumber?: string; + date?: string; + system?: string; + place?: string; + company?: string; + programmingLanguage?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + rights?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + accessDate?: string; + extra?: string; + + creators: Creator<"programmer" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type ConferencePaperItem = { + itemType: "conferencePaper"; + title?: string; + abstractNote?: string; + date?: string; + proceedingsTitle?: string; + conferenceName?: string; + place?: string; + publisher?: string; + volume?: string; + pages?: string; + series?: string; + language?: string; + DOI?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "author" | "contributor" | "editor" | "translator" | "seriesEditor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type DatasetItem = { + itemType: "dataset"; + title?: string; + abstractNote?: string; + identifier?: string; + type?: string; + versionNumber?: string; + date?: string; + repository?: string; + repositoryLocation?: string; + format?: string; + DOI?: string; + citationKey?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + shortTitle?: string; + language?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type DictionaryEntryItem = { + itemType: "dictionaryEntry"; + title?: string; + abstractNote?: string; + dictionaryTitle?: string; + series?: string; + seriesNumber?: string; + volume?: string; + numberOfVolumes?: string; + edition?: string; + place?: string; + publisher?: string; + date?: string; + pages?: string; + language?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "author" | "contributor" | "editor" | "translator" | "seriesEditor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type DocumentItem = { + itemType: "document"; + title?: string; + abstractNote?: string; + publisher?: string; + date?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + | "author" + | "contributor" + | "editor" + | "translator" + | "reviewedAuthor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type EmailItem = { + itemType: "email"; + subject?: string; + abstractNote?: string; + date?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + language?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor" | "recipient">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type EncyclopediaArticleItem = { + itemType: "encyclopediaArticle"; + title?: string; + abstractNote?: string; + encyclopediaTitle?: string; + series?: string; + seriesNumber?: string; + volume?: string; + numberOfVolumes?: string; + edition?: string; + place?: string; + publisher?: string; + date?: string; + pages?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + language?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "author" | "contributor" | "editor" | "translator" | "seriesEditor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type FilmItem = { + itemType: "film"; + title?: string; + abstractNote?: string; + distributor?: string; + date?: string; + genre?: string; + videoRecordingFormat?: string; + runningTime?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "director" | "contributor" | "scriptwriter" | "producer" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type ForumPostItem = { + itemType: "forumPost"; + title?: string; + abstractNote?: string; + forumTitle?: string; + postType?: string; + date?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type HearingItem = { + itemType: "hearing"; + title?: string; + abstractNote?: string; + committee?: string; + place?: string; + publisher?: string; + numberOfVolumes?: string; + documentNumber?: string; + pages?: string; + legislativeBody?: string; + session?: string; + history?: string; + date?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator<"contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type InstantMessageItem = { + itemType: "instantMessage"; + title?: string; + abstractNote?: string; + date?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor" | "recipient">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type InterviewItem = { + itemType: "interview"; + title?: string; + abstractNote?: string; + date?: string; + interviewMedium?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "interviewee" | "contributor" | "interviewer" | "translator" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type JournalArticleItem = { + itemType: "journalArticle"; + title?: string; + abstractNote?: string; + publicationTitle?: string; + volume?: string; + issue?: string; + pages?: string; + date?: string; + series?: string; + seriesTitle?: string; + seriesText?: string; + journalAbbreviation?: string; + language?: string; + DOI?: string; + ISSN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + | "author" + | "contributor" + | "editor" + | "translator" + | "reviewedAuthor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type LetterItem = { + itemType: "letter"; + title?: string; + abstractNote?: string; + letterType?: string; + date?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor" | "recipient">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type MagazineArticleItem = { + itemType: "magazineArticle"; + title?: string; + abstractNote?: string; + publicationTitle?: string; + volume?: string; + issue?: string; + date?: string; + pages?: string; + language?: string; + ISSN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "author" | "contributor" | "translator" | "reviewedAuthor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type ManuscriptItem = { + itemType: "manuscript"; + title?: string; + abstractNote?: string; + manuscriptType?: string; + place?: string; + date?: string; + numPages?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor" | "translator">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type MapItem = { + itemType: "map"; + title?: string; + abstractNote?: string; + mapType?: string; + scale?: string; + seriesTitle?: string; + edition?: string; + place?: string; + publisher?: string; + date?: string; + language?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator<"cartographer" | "contributor" | "seriesEditor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type NewspaperArticleItem = { + itemType: "newspaperArticle"; + title?: string; + abstractNote?: string; + publicationTitle?: string; + place?: string; + edition?: string; + date?: string; + section?: string; + pages?: string; + language?: string; + shortTitle?: string; + ISSN?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "author" | "contributor" | "translator" | "reviewedAuthor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type PatentItem = { + itemType: "patent"; + title?: string; + abstractNote?: string; + place?: string; + country?: string; + assignee?: string; + issuingAuthority?: string; + patentNumber?: string; + filingDate?: string; + pages?: string; + applicationNumber?: string; + priorityNumbers?: string; + issueDate?: string; + references?: string; + legalStatus?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator<"inventor" | "attorneyAgent" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type PodcastItem = { + itemType: "podcast"; + title?: string; + abstractNote?: string; + seriesTitle?: string; + episodeNumber?: string; + audioFileType?: string; + runningTime?: string; + url?: string; + accessDate?: string; + language?: string; + shortTitle?: string; + rights?: string; + extra?: string; + + creators: Creator<"podcaster" | "contributor" | "guest">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type PreprintItem = { + itemType: "preprint"; + title?: string; + abstractNote?: string; + genre?: string; + repository?: string; + archiveID?: string; + place?: string; + date?: string; + series?: string; + seriesNumber?: string; + DOI?: string; + citationKey?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + shortTitle?: string; + language?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + | "author" + | "contributor" + | "editor" + | "translator" + | "reviewedAuthor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type PresentationItem = { + itemType: "presentation"; + title?: string; + abstractNote?: string; + presentationType?: string; + date?: string; + place?: string; + meetingName?: string; + url?: string; + accessDate?: string; + language?: string; + shortTitle?: string; + rights?: string; + extra?: string; + + creators: Creator<"presenter" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type RadioBroadcastItem = { + itemType: "radioBroadcast"; + title?: string; + abstractNote?: string; + programTitle?: string; + episodeNumber?: string; + audioRecordingFormat?: string; + place?: string; + network?: string; + date?: string; + runningTime?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + | "director" + | "scriptwriter" + | "producer" + | "castMember" + | "contributor" + | "guest" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type ReportItem = { + itemType: "report"; + title?: string; + abstractNote?: string; + reportNumber?: string; + reportType?: string; + seriesTitle?: string; + place?: string; + institution?: string; + date?: string; + pages?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + "author" | "contributor" | "translator" | "seriesEditor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type StandardItem = { + itemType: "standard"; + title?: string; + abstractNote?: string; + organization?: string; + committee?: string; + type?: string; + number?: string; + versionNumber?: string; + status?: string; + date?: string; + publisher?: string; + place?: string; + DOI?: string; + citationKey?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + shortTitle?: string; + numPages?: string; + language?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type StatuteItem = { + itemType: "statute"; + nameOfAct?: string; + abstractNote?: string; + code?: string; + codeNumber?: string; + publicLawNumber?: string; + dateEnacted?: string; + pages?: string; + section?: string; + session?: string; + history?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type ThesisItem = { + itemType: "thesis"; + title?: string; + abstractNote?: string; + thesisType?: string; + university?: string; + place?: string; + date?: string; + numPages?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type TVBroadcastItem = { + itemType: "tvBroadcast"; + title?: string; + abstractNote?: string; + programTitle?: string; + episodeNumber?: string; + videoRecordingFormat?: string; + place?: string; + network?: string; + date?: string; + runningTime?: string; + language?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + | "director" + | "scriptwriter" + | "producer" + | "castMember" + | "contributor" + | "guest" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type VideoRecordingItem = { + itemType: "videoRecording"; + title?: string; + abstractNote?: string; + videoRecordingFormat?: string; + seriesTitle?: string; + volume?: string; + numberOfVolumes?: string; + place?: string; + studio?: string; + date?: string; + runningTime?: string; + language?: string; + ISBN?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + archive?: string; + archiveLocation?: string; + libraryCatalog?: string; + callNumber?: string; + rights?: string; + extra?: string; + + creators: Creator< + | "director" + | "scriptwriter" + | "producer" + | "castMember" + | "contributor" + >[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type WebpageItem = { + itemType: "webpage"; + title?: string; + abstractNote?: string; + websiteTitle?: string; + websiteType?: string; + date?: string; + shortTitle?: string; + url?: string; + accessDate?: string; + language?: string; + rights?: string; + extra?: string; + + creators: Creator<"author" | "contributor" | "translator">[]; + attachments?: Attachment[]; + tags: Tag[]; + notes?: Note[]; + seeAlso?: string[]; + complete(): void; + + [key: string]: string; + }; + + type CreatorType = + | "artist" + | "attorneyAgent" + | "author" + | "bookAuthor" + | "cartographer" + | "castMember" + | "commenter" + | "composer" + | "contributor" + | "cosponsor" + | "counsel" + | "director" + | "editor" + | "guest" + | "interviewee" + | "interviewer" + | "inventor" + | "performer" + | "podcaster" + | "presenter" + | "producer" + | "programmer" + | "recipient" + | "reviewedAuthor" + | "scriptwriter" + | "seriesEditor" + | "sponsor" + | "translator" + | "wordsBy"; + /* *** END GENERATED TYPES *** */ + + interface Note { + title?: string; + note: string; + } + + interface Collection {} + + interface Translator { + [key: string]: any; // allow for exports + } + + interface WebTranslator extends Translator { + detectWeb(doc: Document, url: string): ItemType | "multiple" | false; + doWeb(doc: Document, url: string): void | Promise; + + // strongly type commonly-used translator exports + itemType?: ItemType; + } + + interface ImportTranslator extends Translator { + detectImport(): boolean; + doImport(): void; + } + + interface ExportTranslator extends Translator { + doExport(): void; + } + + interface SearchTranslator extends Translator { + detectSearch(items: Zotero.Item[] | Zotero.Item): boolean; + doSearch(items: Zotero.Item[] | Zotero.Item): void; + } + + interface Translate { + setTranslator(translator: T[] | T | string): boolean; + getTranslatorObject(): Promise; + getTranslatorObject(receiver: (obj: T) => void): void; + setHandler( + type: "select", + handler: ( + translate: Zotero.Translate, + items: { [id: string]: string }, + ) => string[], + ): void; + setHandler( + type: "itemDone", + handler: ( + translate: Zotero.Translate, + item: Zotero.Item, + ) => void, + ): void; + setHandler( + type: "collectionDone", + handler: ( + translate: Zotero.Translate, + collection: Zotero.Collection, + ) => void, + ): void; + setHandler( + type: "done", + handler: (translate: Zotero.Translate, success: boolean) => void, + ): void; + setHandler( + type: "debug", + handler: ( + translate: Zotero.Translate, + message: string, + ) => boolean, + ): void; + setHandler( + type: "error", + handler: ( + translate: Zotero.Translate, + error: Error | string, + ) => void, + ): void; + setHandler( + type: "translators", + handler: (translate: Zotero.Translate, translators: T[]) => void, + ): void; + setHandler( + type: "pageModified", + handler: (translate: Zotero.Translate, doc: Document) => void, + ): void; + clearHandlers( + type: + | "select" + | "itemDone" + | "collectionDone" + | "done" + | "debug" + | "error" + | "translators" + | "pageModified", + ): void; + removeHandler( + type: "select", + handler: ( + translate: Zotero.Translate, + items: { [id: string]: string }, + ) => string[], + ): void; + removeHandler( + type: "itemDone", + handler: ( + translate: Zotero.Translate, + item: Zotero.Item, + ) => void, + ): void; + removeHandler( + type: "collectionDone", + handler: ( + translate: Zotero.Translate, + collection: Zotero.Collection, + ) => void, + ): void; + removeHandler( + type: "done", + handler: (translate: Zotero.Translate, success: boolean) => void, + ): void; + removeHandler( + type: "debug", + handler: ( + translate: Zotero.Translate, + message: string, + ) => boolean, + ): void; + removeHandler( + type: "error", + handler: ( + translate: Zotero.Translate, + error: Error | string, + ) => void, + ): void; + removeHandler( + type: "translators", + handler: (translate: Zotero.Translate, translators: T[]) => void, + ): void; + removeHandler( + type: "pageModified", + handler: (translate: Zotero.Translate, doc: Document) => void, + ): void; + getTranslators( + getAllTranslators?: boolean, + checkSetTranslator?: boolean, + ): Promise[]>; + translate( + libraryID?: number | false, + saveAttachments?: boolean, + linkFiles?: boolean, + ): Promise; + setDocument(doc: Document): void; + setString(s: string): void; + setItems(items: Zotero.Item[]): void; + setSearch(item: Zotero.Item): void; + } + + // common + function getOption(option: string): any; + function getHiddenPref(pref: string): any; + function loadTranslator( + translatorType: "web", + ): Zotero.Translate; + function loadTranslator( + translatorType: "import", + ): Zotero.Translate; + function loadTranslator( + translatorType: "export", + ): Zotero.Translate; + function loadTranslator( + translatorType: "search", + ): Zotero.Translate; + function done(returnValue: string | false): void; + function debug(str: string, level?: 1 | 2 | 3 | 4 | 5): void; + function read(length?: number): any; + function getXML(): any; + + const isBookmarklet: boolean; + const isConnector: boolean; + const isServer: boolean; + const parentTranslator: string?; + + // web + function selectItems( + items: Record, + ): Promise?>; + function selectItems( + items: Record, + callback: (items: Record?) => void, + ): void; + function monitorDOMChanges( + target: Node, + config: MutationObserverInit, + ): void; + + // import & export + function setProgress(value: number): void; + + // export + function nextItem(): Zotero.Item?; + function nextCollection(): Zotero.Collection?; +} + +declare function attr( + node: ParentNode, + selector: string, + attr: string, + index?: number, +): string; +declare function attr(selector: string, attr: string, index?: number): string; +declare function text( + node: ParentNode, + selector: string, + index?: number, +): string; +declare function text(selector: string, index?: number): string; +declare function innerText( + node: ParentNode, + selector: string, + index?: number, +): string; +declare function innerText(selector: string, index?: number): string; + +declare const request = ZU.request; +declare const requestText = ZU.requestText; +declare const requestJSON = ZU.requestJSON; +declare const requestDocument = ZU.requestDocument;