A platform for community discussion. Free, open, simple.
DEV: Use rollup for theme JS compilation (#33103)
David Tayloraa2fb29fa6cd
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 2f19e903299..d17184433e0 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -282,6 +282,11 @@ jobs:if: matrix.build_type == 'frontend' && matrix.target == 'core'run: QUNIT_WRITE_EXECUTION_FILE=1 bin/rake qunit:test+ - name: Theme Transpiler Tests+ if: matrix.build_type == 'frontend' && matrix.target == 'core'+ working-directory: app/assets/javascripts/theme-transpiler+ run: pnpm test+- name: Plugin QUnitif: matrix.build_type == 'frontend' && matrix.target == 'plugins'run: bin/rake plugin:qunit['*']diff --git a/Gemfile b/Gemfileindex d880c53aa7c..7c046ed6ab3 100644--- a/Gemfile+++ b/Gemfile@@ -100,7 +100,6 @@ gem "rinku"gem "sidekiq"gem "mini_scheduler"-gem "execjs", require: falsegem "mini_racer"gem "highline", require: falsediff --git a/Gemfile.lock b/Gemfile.lockindex 5e60519d870..a7623eaba7c 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -157,7 +157,6 @@ GEMerubi (1.13.1)excon (1.2.5)logger- execjs (2.10.0)exifr (1.4.1)extralite-bundle (2.12)fabrication (3.0.0)@@ -758,7 +757,6 @@ DEPENDENCIESed25519email_reply_trimmerexcon- execjsextralite-bundlefabricationfaker@@ -945,7 +943,6 @@ CHECKSUMSerb (5.0.2) sha256=d30f258143d4300fb4ecf430042ac12970c9bb4b33c974a545b8f58c1ec26c0ferubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9excon (1.2.5) sha256=ca040bb61bc0059968f34a17115a00d2db8562e3c0c5c5c7432072b551c85a9d- execjs (2.10.0) sha256=6bcb8be8f0052ff9d370b65d1c080f2406656e150452a0abdb185a133048450dexifr (1.4.1) sha256=768374cc6b6ff3743acba57c1c35229bdd8c6b9fbc1285952047fc1215c4b894extralite-bundle (2.12) sha256=9c9912b7ab592e7064089ee608cf86ab9edd81d20065acb87d1f4fed06052987fabrication (3.0.0) sha256=a6a0bfad9071348ad3cb1701df788524b888c0cdd044b988893e7509f7463be3diff --git a/app/assets/javascripts/discourse/app/app.js b/app/assets/javascripts/discourse/app/app.jsindex 2d18e7d21b5..abb80ceda40 100644--- a/app/assets/javascripts/discourse/app/app.js+++ b/app/assets/javascripts/discourse/app/app.js@@ -19,6 +19,37 @@ import { buildResolver } from "discourse/resolver";const _pluginCallbacks = [];let _unhandledThemeErrors = [];+window.moduleBroker = {+ async lookup(moduleName) {+ return require(moduleName);+ },+};++async function loadThemeFromModulePreload(link) {+ const themeId = link.dataset.themeId;+ try {+ const compatModules = (await import(/* webpackIgnore: true */ link.href))+ .default;+ for (const [key, mod] of Object.entries(compatModules)) {+ define(`discourse/theme-${themeId}/${key}`, () => mod);+ }+ } catch (error) {+ // eslint-disable-next-line no-console+ console.error(+ `Failed to load theme ${link.dataset.themeId} from ${link.href}`,+ error+ );+ fireThemeErrorEvent({ themeId: link.dataset.themeId, error });+ }+}++export async function loadThemes() {+ const promises = [+ ...document.querySelectorAll("link[rel=modulepreload][data-theme-id]"),+ ].map(loadThemeFromModulePreload);+ await Promise.all(promises);+}+class Discourse extends Application {modulePrefix = "discourse";rootElement = "#main";diff --git a/app/assets/javascripts/discourse/public/assets/scripts/start-app.js b/app/assets/javascripts/discourse/public/assets/scripts/start-app.jsindex 602f945ab3a..f6999586809 100644--- a/app/assets/javascripts/discourse/public/assets/scripts/start-app.js+++ b/app/assets/javascripts/discourse/public/assets/scripts/start-app.js@@ -1,6 +1,10 @@-document.addEventListener("discourse-init", (e) => {+document.addEventListener("discourse-init", async (e) => {performance.mark("discourse-init");const config = e.detail;- const app = require(`${config.modulePrefix}/app`)["default"].create(config);+ const { default: klass, loadThemes } = require(`${config.modulePrefix}/app`);++ await loadThemes();++ const app = klass.create(config);app.start();});diff --git a/app/assets/javascripts/discourse/tests/test-boot-ember-cli.js b/app/assets/javascripts/discourse/tests/test-boot-ember-cli.jsindex 3beb673fce2..f20af0be43d 100644--- a/app/assets/javascripts/discourse/tests/test-boot-ember-cli.js+++ b/app/assets/javascripts/discourse/tests/test-boot-ember-cli.js@@ -2,10 +2,13 @@ import loadEmberExam from "ember-exam/test-support/load";import { setupEmberOnerrorValidation, start } from "ember-qunit";import * as QUnit from "qunit";import { setup } from "qunit-dom";+import { loadThemes } from "discourse/app";import setupTests from "discourse/tests/setup-tests";import config from "../config/environment";-document.addEventListener("discourse-init", () => {+document.addEventListener("discourse-init", async () => {+ await loadThemes();+if (!window.EmberENV.TESTS_FILE_LOADED) {throw new Error('The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js".'@@ -21,9 +24,10 @@ document.addEventListener("discourse-init", () => {const params = new URLSearchParams(window.location.search);const target = params.get("target") || "core";- const testingTheme = !!document.querySelector("script[data-theme-id]");const disableAutoStart = params.get("qunit_disable_auto_start") === "1";- const hasThemeJs = !!document.querySelector("script[data-theme-id]");+ const hasThemeJs = !!document.querySelector(+ "link[rel=modulepreload][data-theme-id]"+ );document.body.insertAdjacentHTML("afterbegin",@@ -36,7 +40,7 @@ document.addEventListener("discourse-init", () => {`);- const testingCore = !testingTheme && target === "core";+ const testingCore = !hasThemeJs && target === "core";if (testingCore) {setupEmberOnerrorValidation();}diff --git a/app/assets/javascripts/theme-transpiler/add-theme-globals.js b/app/assets/javascripts/theme-transpiler/add-theme-globals.jsnew file mode 100644index 00000000000..3040fdf7a2b--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/add-theme-globals.js@@ -0,0 +1,63 @@+export default function (babel) {+ const { types: t } = babel;++ const visitor = {+ Program(path) {+ const importDeclarations = [];++ if (path.scope.bindings.themePrefix) {+ const themePrefix = path.scope.bindings.themePrefix;++ if (themePrefix.kind !== "module") {+ throw new Error(+ "`themePrefix` is already defined. Unable to add import."+ );+ } else if (themePrefix.path.parent.source.value !== "virtual:theme") {+ throw new Error(+ "`themePrefix` is already imported. Unable to add import from `virtual:theme`."+ );+ }+ } else {+ importDeclarations.push(+ t.importSpecifier(+ t.identifier("themePrefix"),+ t.identifier("themePrefix")+ )+ );+ }++ if (path.scope.bindings.settings) {+ const settings = path.scope.bindings.settings;+ if (settings.kind !== "module") {+ throw new Error(+ "`settings` is already defined. Unable to add import."+ );+ } else if (settings.path.parent.source.value !== "virtual:theme") {+ throw new Error(+ "`settings` is already imported. Unable to add import from `virtual:theme`."+ );+ }+ } else {+ importDeclarations.push(+ t.importSpecifier(t.identifier("settings"), t.identifier("settings"))+ );+ }++ if (importDeclarations.length > 0) {+ path.node.body.unshift(+ t.importDeclaration(+ importDeclarations,+ t.stringLiteral("virtual:theme")+ )+ );+ }+ },+ };++ return {+ pre(file) {+ babel.traverse(file.ast, visitor, file.scope);+ file.scope.crawl();+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/add-theme-globals.test.mjs b/app/assets/javascripts/theme-transpiler/add-theme-globals.test.mjsnew file mode 100644index 00000000000..db0f3f19292--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/add-theme-globals.test.mjs@@ -0,0 +1,74 @@+/* eslint-disable qunit/require-expect */+import { transformSync } from "@babel/core";+import { expect, test } from "vitest";+import AddThemeGlobals from "./add-theme-globals.js";++function compile(input) {+ return transformSync(input, {+ configFile: false,+ plugins: [AddThemeGlobals],+ }).code;+}++test("adds imports automatically", () => {+ expect(+ compile(`+console.log(settings, themePrefix);+ `)+ ).toMatchInlineSnapshot(`+ "import { themePrefix, settings } from "virtual:theme";+ console.log(settings, themePrefix);"+ `);+});++test("throws error if settings or themePrefix are defined locally", () => {+ expect(() =>+ compile(`+const settings = {};+console.log(settings);+ `)+ ).toThrowErrorMatchingInlineSnapshot(+ `[Error: unknown file: \`settings\` is already defined. Unable to add import.]`+ );++ expect(() =>+ compile(`+const themePrefix = "foo";+console.log(themePrefix);+ `)+ ).toThrowErrorMatchingInlineSnapshot(+ `[Error: unknown file: \`themePrefix\` is already defined. Unable to add import.]`+ );+});++test("works if settings and themePrefix are already imported", () => {+ expect(+ compile(`+import { themePrefix, settings } from "virtual:theme";+console.log(settings, themePrefix);+ `)+ ).toMatchInlineSnapshot(`+ "import { themePrefix, settings } from "virtual:theme";+ console.log(settings, themePrefix);"+ `);+});++test("throws error if settings or themePrefix are already imported from the wrong place", () => {+ expect(() =>+ compile(`+import { themePrefix } from "foo";+console.log(themePrefix);+ `)+ ).toThrowErrorMatchingInlineSnapshot(+ `[Error: unknown file: \`themePrefix\` is already imported. Unable to add import from \`virtual:theme\`.]`+ );++ expect(() =>+ compile(`+import { settings } from "foo";+console.log(settings);+ `)+ ).toThrowErrorMatchingInlineSnapshot(+ `[Error: unknown file: \`settings\` is already imported. Unable to add import from \`virtual:theme\`.]`+ );+});diff --git a/app/assets/javascripts/theme-transpiler/babel-replace-imports.js b/app/assets/javascripts/theme-transpiler/babel-replace-imports.jsnew file mode 100644index 00000000000..f8ca3ad2bbb--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/babel-replace-imports.js@@ -0,0 +1,77 @@+import rollupVirtualImports from "./rollup-virtual-imports";++export default function (babel) {+ const { types: t } = babel;++ return {+ visitor: {+ ImportDeclaration(path) {+ const moduleName = path.node.source.value;+ if (+ moduleName.startsWith(".") ||+ rollupVirtualImports[moduleName] ||+ moduleName.startsWith("discourse/theme-")+ ) {+ return;+ }++ const namespaceImports = [];+ const properties = path.node.specifiers+ .map((specifier) => {+ if (specifier.type === "ImportDefaultSpecifier") {+ return t.objectProperty(+ t.identifier("default"),+ t.identifier(specifier.local.name)+ );+ } else if (specifier.type === "ImportNamespaceSpecifier") {+ namespaceImports.push(t.identifier(specifier.local.name));+ } else {+ return t.objectProperty(+ t.identifier(specifier.imported.name),+ t.identifier(specifier.local.name)+ );+ }+ })+ .filter(Boolean);++ const replacements = [];++ const moduleBrokerLookup = t.awaitExpression(+ t.callExpression(+ t.memberExpression(+ t.memberExpression(+ t.identifier("window"),+ t.identifier("moduleBroker")+ ),+ t.identifier("lookup")+ ),+ [t.stringLiteral(moduleName)]+ )+ );++ if (properties.length) {+ replacements.push(+ t.variableDeclaration("const", [+ t.variableDeclarator(+ t.objectPattern(properties),+ moduleBrokerLookup+ ),+ ])+ );+ }++ if (namespaceImports.length) {+ for (const namespaceImport of namespaceImports) {+ replacements.push(+ t.variableDeclaration("const", [+ t.variableDeclarator(namespaceImport, moduleBrokerLookup),+ ])+ );+ }+ }++ path.replaceWithMultiple(replacements);+ },+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/babel-replace-imports.test.mjs b/app/assets/javascripts/theme-transpiler/babel-replace-imports.test.mjsnew file mode 100644index 00000000000..6ac129819b7--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/babel-replace-imports.test.mjs@@ -0,0 +1,44 @@+/* eslint-disable qunit/require-expect */+import { transformSync } from "@babel/core";+import { expect, test } from "vitest";+import BabelReplaceImports from "./babel-replace-imports.js";++function compile(input) {+ return transformSync(input, {+ configFile: false,+ plugins: [BabelReplaceImports],+ }).code;+}++test("replaces imports with moduleBroker calls", () => {+ expect(+ compile(`+import concatClass from "discourse/helpers/concat-class";+import { default as renamedDefaultImport, namedImport, otherNamedImport as renamedImport } from "discourse/module-1";+ `)+ ).toMatchInlineSnapshot(`+ "const {+ default: concatClass+ } = await window.moduleBroker.lookup("discourse/helpers/concat-class");+ const {+ default: renamedDefaultImport,+ namedImport: namedImport,+ otherNamedImport: renamedImport+ } = await window.moduleBroker.lookup("discourse/module-1");"+ `);+});++test("handles namespace imports", () => {+ expect(+ compile(`+import * as MyModule from "discourse/module-1";+import defaultExport, * as MyModule2 from "discourse/module-2";+ `)+ ).toMatchInlineSnapshot(`+ "const MyModule = await window.moduleBroker.lookup("discourse/module-1");+ const {+ default: defaultExport+ } = await window.moduleBroker.lookup("discourse/module-2");+ const MyModule2 = await window.moduleBroker.lookup("discourse/module-2");"+ `);+});diff --git a/app/assets/javascripts/theme-transpiler/build.js b/app/assets/javascripts/theme-transpiler/build.jsindex 4cb4a36fbc8..67aa4b13077 100644--- a/app/assets/javascripts/theme-transpiler/build.js+++ b/app/assets/javascripts/theme-transpiler/build.js@@ -52,10 +52,17 @@ esbuildpath: "path-browserify",url: "./url-polyfill","source-map-js": "source-map-js",+ assert: "./noop",+ fs: "./noop",+ stream: "readable-stream",+ "abort-controller": "abort-controller/dist/abort-controller",},banner: {js: `var process = { "env": { "EMBER_ENV": "production" }, "cwd": () => "/" };`,},+ define: {+ "import.meta.url": "'http://example.com'",+ },external: [],entryPoints: ["./transpiler.js"],plugins: [wasmPlugin],diff --git a/app/assets/javascripts/theme-transpiler/noop.js b/app/assets/javascripts/theme-transpiler/noop.jsnew file mode 100644index 00000000000..ff8b4c56321--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/noop.js@@ -0,0 +1 @@+export default {};diff --git a/app/assets/javascripts/theme-transpiler/package.json b/app/assets/javascripts/theme-transpiler/package.jsonindex f4d309d66cb..3055ce746e0 100644--- a/app/assets/javascripts/theme-transpiler/package.json+++ b/app/assets/javascripts/theme-transpiler/package.json@@ -6,9 +6,17 @@"author": "Discourse","license": "GPL-2.0-only","keywords": [],+ "scripts": {+ "test": "vitest"+ },"dependencies": {+ "@babel/core": "^7.27.4",+ "@babel/preset-env": "^7.28.0","@babel/standalone": "^7.28.2","@csstools/postcss-light-dark-function": "^2.0.9",+ "@rollup/browser": "^4.45.1",+ "@rollup/plugin-babel": "^6.0.4",+ "abort-controller": "^3.0.0","autoprefixer": "^10.4.21","babel-plugin-ember-template-compilation": "^2.4.1","content-tag": "^4.0.0",@@ -20,11 +28,14 @@"ember-source": "~5.12.0","ember-this-fallback": "^0.4.0","fastestsmallesttextencoderdecoder": "^1.0.22",+ "magic-string": "^0.30.17",+ "memfs": "^4.17.2","path-browserify": "^1.0.1","polyfill-crypto.getrandomvalues": "^1.0.0","postcss": "^8.5.6","postcss-js": "^4.0.1","postcss-media-minmax": "^5.0.0",+ "readable-stream": "^4.7.0","source-map-js": "^1.2.1","terser": "^5.43.1"},@@ -33,5 +44,8 @@"npm": "please-use-pnpm","yarn": "please-use-pnpm","pnpm": "^9"+ },+ "devDependencies": {+ "vitest": "^3.2.4"}}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-colocation.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-colocation.jsnew file mode 100644index 00000000000..740b1492a73--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-colocation.js@@ -0,0 +1,81 @@+import MagicString from "magic-string";+import { basename, dirname, join } from "path";++export default function discourseColocation({ themeBase }) {+ return {+ name: "discourse-colocation",+ async resolveId(source, context) {+ let resolvedSource = source;+ if (source.startsWith(".")) {+ resolvedSource = join(dirname(context), source);+ }++ if (+ !(+ resolvedSource.startsWith(`${themeBase}discourse/components/`) ||+ resolvedSource.startsWith(`${themeBase}admin/components/`)+ )+ ) {+ return;+ }++ if (source.endsWith(".js")) {+ const hbs = await this.resolve(+ `./${basename(source).replace(/.js$/, ".hbs")}`,+ resolvedSource+ );+ const js = await this.resolve(source, context);++ if (!js && hbs) {+ return {+ id: resolvedSource,+ meta: {+ "rollup-hbs-plugin": {+ type: "template-only-component-js",+ },+ },+ };+ }+ }+ },++ load(id) {+ if (+ this.getModuleInfo(id)?.meta?.["rollup-hbs-plugin"]?.type ===+ "template-only-component-js"+ ) {+ return {+ code: `import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n`,+ };+ }+ },++ transform: {+ async handler(input, id) {+ if (+ !id.startsWith(`${themeBase}discourse/components/`) &&+ !id.startsWith(`${themeBase}admin/components/`)+ ) {+ return;+ }++ if (id.endsWith(".js")) {+ const relativeHbs = `./${basename(id).replace(/.js$/, ".hbs")}`;+ const hbs = await this.resolve(relativeHbs, id);++ if (hbs) {+ const s = new MagicString(input);+ s.prepend(+ `import template from '${relativeHbs}';\nconst __COLOCATED_TEMPLATE__ = template;\n`+ );++ return {+ code: s.toString(),+ map: s.generateMap({ hires: true }),+ };+ }+ }+ },+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-extension-search.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-extension-search.jsnew file mode 100644index 00000000000..fce938f95ef--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-extension-search.js@@ -0,0 +1,21 @@+export default function discourseExtensionSearch() {+ return {+ name: "discourse-extension-search",+ async resolveId(source, context) {+ if (source.match(/\.\w+$/)) {+ // Already has an extension+ return null;+ }++ for (const ext of ["", ".js", ".gjs", ".hbs"]) {+ const resolved = await this.resolve(`${source}${ext}`, context);++ if (resolved) {+ return resolved;+ }+ }++ return null;+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-external-loader.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-external-loader.jsnew file mode 100644index 00000000000..7c938ee11b0--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-external-loader.js@@ -0,0 +1,10 @@+export default function discourseExternalLoader() {+ return {+ name: "discourse-external-loader",+ async resolveId(source) {+ if (!source.startsWith(".")) {+ return { id: source, external: true };+ }+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-gjs.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-gjs.jsnew file mode 100644index 00000000000..ed79a3b3a11--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-gjs.js@@ -0,0 +1,26 @@+import { Preprocessor } from "../content-tag";++const preprocessor = new Preprocessor();++export default function discourseGjs() {+ return {+ name: "discourse-gjs",++ transform: {+ // Enforce running the gjs transform before any others like babel that expect valid JS+ order: "pre",+ handler(input, id) {+ if (!id.endsWith(".gjs")) {+ return null;+ }+ let { code, map } = preprocessor.process(input, {+ filename: id,+ });+ return {+ code,+ map,+ };+ },+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-hbs.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-hbs.jsnew file mode 100644index 00000000000..1669c2e20d2--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-hbs.js@@ -0,0 +1,19 @@+export default function discourseHbs() {+ return {+ name: "discourse-hbs",+ transform: {+ order: "pre",+ handler(input, id) {+ if (id.endsWith(".hbs")) {+ return {+ code: `+ import { hbs } from 'ember-cli-htmlbars';+ export default hbs(${JSON.stringify(input)}, { moduleName: ${JSON.stringify(id)} });+ `,+ map: null,+ };+ }+ },+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-index-search.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-index-search.jsnew file mode 100644index 00000000000..ad83a48b496--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-index-search.js@@ -0,0 +1,16 @@+export default function discourseIndexSearch() {+ return {+ name: "discourse-index-search",+ async resolveId(source, context) {+ if (source.match(/\.\w+$/) || source.match(/\/index$/)) {+ // Already has an extension or is an index+ return null;+ }++ return (+ (await this.resolve(source, context)) ||+ (await this.resolve(`${source}/index`, context))+ );+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-terser.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-terser.jsnew file mode 100644index 00000000000..d4a55e37990--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-terser.js@@ -0,0 +1,31 @@+import { minify as terserMinify } from "terser";++export default function discourseTerser({ opts }) {+ return {+ name: "discourse-terser",+ async renderChunk(code, chunk, outputOptions) {+ if (!opts.minify) {+ return;+ }++ // Based on https://github.com/ember-cli/ember-cli-terser/blob/28df3d90a5/index.js#L12-L26+ const defaultOptions = {+ sourceMap:+ outputOptions.sourcemap === true ||+ typeof outputOptions.sourcemap === "string",+ compress: {+ negate_iife: false,+ sequences: 30,+ drop_debugger: false,+ },+ output: {+ semicolons: false,+ },+ };++ defaultOptions.module = true;++ return await terserMinify(code, defaultOptions);+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-virtual-loader.js b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-virtual-loader.jsnew file mode 100644index 00000000000..65916385bdf--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-plugins/discourse-virtual-loader.js@@ -0,0 +1,23 @@+import rollupVirtualImports from "../rollup-virtual-imports";++export default function discourseVirtualLoader({ themeBase, modules, opts }) {+ return {+ name: "discourse-virtual-loader",+ resolveId(source) {+ if (rollupVirtualImports[source]) {+ return `${themeBase}${source}`;+ }+ },+ load(id) {+ if (!id.startsWith(themeBase)) {+ return;+ }++ const fromBase = id.slice(themeBase.length);++ if (rollupVirtualImports[fromBase]) {+ return rollupVirtualImports[fromBase](modules, opts);+ }+ },+ };+}diff --git a/app/assets/javascripts/theme-transpiler/rollup-virtual-imports.js b/app/assets/javascripts/theme-transpiler/rollup-virtual-imports.jsnew file mode 100644index 00000000000..b68dd834f47--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/rollup-virtual-imports.js@@ -0,0 +1,87 @@+const SUPPORTED_FILE_EXTENSIONS = [".js", ".js.es6", ".hbs", ".gjs"];++export default {+ "virtual:main": (tree, { themeId }) => {+ let output = cleanMultiline(`+ import "virtual:init-settings";++ const themeCompatModules = {};+ `);++ let i = 1;+ for (const moduleFilename of Object.keys(tree)) {+ if (+ !SUPPORTED_FILE_EXTENSIONS.some((ext) => moduleFilename.endsWith(ext))+ ) {+ // Unsupported file type. Log a warning and skip+ output += `console.warn("[THEME ${themeId}] Unsupported file type: ${moduleFilename}");\n`;+ continue;+ }++ const filenameWithoutExtension = moduleFilename.replace(+ /\.[^\.]+(\.es6)?$/,+ ""+ );++ let compatModuleName = filenameWithoutExtension;++ if (moduleFilename.match(/(^|\/)connectors\//)) {+ const isTemplate = moduleFilename.endsWith(".hbs");+ const isInTemplatesDirectory =+ moduleFilename.match(/(^|\/)templates\//);++ if (isTemplate && !isInTemplatesDirectory) {+ compatModuleName = compatModuleName.replace(+ /(^|\/)connectors\//,+ "$1templates/connectors/"+ );+ } else if (!isTemplate && isInTemplatesDirectory) {+ compatModuleName = compatModuleName.replace(/^templates\//, "");+ }+ }++ output += `import * as Mod${i} from "./${filenameWithoutExtension}";\n`;+ output += `themeCompatModules["${compatModuleName}"] = Mod${i};\n\n`;++ i += 1;+ }++ output += "export default themeCompatModules;\n";++ return output;+ },+ "virtual:init-settings": (_, { themeId, settings }) => {+ return (+ `import { registerSettings } from "discourse/lib/theme-settings-store";\n\n` ++ `registerSettings(${themeId}, ${JSON.stringify(settings, null, 2)});\n`+ );+ },+ "virtual:theme": (_, { themeId }) => {+ return cleanMultiline(`+ import { getObjectForTheme } from "discourse/lib/theme-settings-store";++ export const settings = getObjectForTheme(${themeId});++ export function themePrefix(key) {+ return \`theme_translations.${themeId}.\${key}\`;+ }+ `);+ },+};++function cleanMultiline(str) {+ const lines = str.split("\n");++ if (lines.at(0).trim() === "") {+ lines.shift();+ }+ if (lines.at(-1).trim() === "") {+ lines.pop();+ }++ const minLeadingWhitspace = Math.min(+ ...lines.filter(Boolean).map((line) => line.match(/^\s*/)[0].length)+ );++ return lines.map((line) => line.slice(minLeadingWhitspace)).join("\n") + "\n";+}diff --git a/app/assets/javascripts/theme-transpiler/shims.js b/app/assets/javascripts/theme-transpiler/shims.jsindex e6470c5884d..c22d2b0bfff 100644--- a/app/assets/javascripts/theme-transpiler/shims.js+++ b/app/assets/javascripts/theme-transpiler/shims.js@@ -4,10 +4,17 @@ import "core-js/actual/url";import { TextDecoder, TextEncoder } from "fastestsmallesttextencoderdecoder";import path from "path";import getRandomValues from "polyfill-crypto.getrandomvalues";+import BindingsWasm from "./node_modules/@rollup/browser/dist/bindings_wasm_bg.wasm";const CONSOLE_PREFIX = "[DiscourseJsProcessor] ";globalThis.window = {};globalThis.console = {+ debug(...args) {+ rails.logger.info(CONSOLE_PREFIX + args.join(" "));+ },+ info(...args) {+ rails.logger.info(CONSOLE_PREFIX + args.join(" "));+ },log(...args) {rails.logger.info(CONSOLE_PREFIX + args.join(" "));},@@ -27,3 +34,21 @@ path.win32 = {};globalThis.crypto = { getRandomValues };++const oldInstantiate = WebAssembly.instantiate;+WebAssembly.instantiate = async function (bytes, bindings) {+ if (bytes === BindingsWasm) {+ const mod = new WebAssembly.Module(bytes);+ const instance = new WebAssembly.Instance(mod, bindings);+ return instance;+ } else {+ return oldInstantiate(...arguments);+ }+};++globalThis.fetch = function (url) {+ if (url.toString() === "http://example.com/bindings_wasm_bg.wasm") {+ return new Promise((resolve) => resolve(BindingsWasm));+ }+ throw "fetch not implemented";+};diff --git a/app/assets/javascripts/theme-transpiler/theme-rollup.js b/app/assets/javascripts/theme-transpiler/theme-rollup.jsnew file mode 100644index 00000000000..ec6370da41c--- /dev/null+++ b/app/assets/javascripts/theme-transpiler/theme-rollup.js@@ -0,0 +1,123 @@+import BabelPresetEnv from "@babel/preset-env";+import { rollup } from "@rollup/browser";+import { babel, getBabelOutputPlugin } from "@rollup/plugin-babel";+import HTMLBarsInlinePrecompile from "babel-plugin-ember-template-compilation";+import DecoratorTransforms from "decorator-transforms";+import colocatedBabelPlugin from "ember-cli-htmlbars/lib/colocated-babel-plugin";+import { precompile } from "ember-source/dist/ember-template-compiler";+import EmberThisFallback from "ember-this-fallback";+import { memfs } from "memfs";+import { WidgetHbsCompiler } from "discourse-widget-hbs/lib/widget-hbs-compiler";+import { browsers } from "../discourse/config/targets";+import AddThemeGlobals from "./add-theme-globals";+import BabelReplaceImports from "./babel-replace-imports";+import discourseColocation from "./rollup-plugins/discourse-colocation";+import discourseExtensionSearch from "./rollup-plugins/discourse-extension-search";+import discourseExternalLoader from "./rollup-plugins/discourse-external-loader";+import discourseGjs from "./rollup-plugins/discourse-gjs";+import discourseHbs from "./rollup-plugins/discourse-hbs";+import discourseIndexSearch from "./rollup-plugins/discourse-index-search";+import discourseTerser from "./rollup-plugins/discourse-terser";+import discourseVirtualLoader from "./rollup-plugins/discourse-virtual-loader";+import buildEmberTemplateManipulatorPlugin from "./theme-hbs-ast-transforms";++let lastRollupResult;+let lastRollupError;+globalThis.rollup = function (modules, opts) {+ const themeBase = `theme-${opts.themeId}/`;++ const { vol } = memfs(modules, themeBase);++ const resultPromise = rollup({+ input: "virtual:main",+ logLevel: "info",+ fs: vol.promises,+ onLog(level, message) {+ // eslint-disable-next-line no-console+ console.info(level, message);+ },+ plugins: [+ discourseExtensionSearch(),+ discourseIndexSearch(),+ discourseVirtualLoader({+ themeBase,+ modules,+ opts,+ }),+ discourseExternalLoader(),+ discourseColocation({ themeBase }),+ getBabelOutputPlugin({+ plugins: [BabelReplaceImports],+ }),+ babel({+ extensions: [".js", ".gjs", ".hbs"],+ babelHelpers: "bundled",+ plugins: [+ [DecoratorTransforms, { runEarly: true }],+ AddThemeGlobals,+ colocatedBabelPlugin,+ WidgetHbsCompiler,+ [+ HTMLBarsInlinePrecompile,+ {+ compiler: { precompile },+ enableLegacyModules: [+ "ember-cli-htmlbars",+ "ember-cli-htmlbars-inline-precompile",+ "htmlbars-inline-precompile",+ ],+ transforms: [+ EmberThisFallback._buildPlugin({+ enableLogging: false,+ isTheme: true,+ }).plugin,+ buildEmberTemplateManipulatorPlugin(opts.themeId),+ ],+ },+ ],+ ],+ presets: [+ [+ BabelPresetEnv,+ {+ modules: false,+ targets: { browsers },+ },+ ],+ ],+ }),+ discourseHbs(),+ discourseGjs(),+ discourseTerser({ opts }),+ ],+ });++ resultPromise+ .then((bundle) => {+ return bundle.generate({+ format: "es",+ sourcemap: "hidden",+ });+ })+ .then(({ output }) => {+ lastRollupResult = {+ code: output[0].code,+ map: JSON.stringify(output[0].map),+ };+ })+ .catch((error) => {+ lastRollupError = error;+ });+};++globalThis.getRollupResult = function () {+ const error = lastRollupError;+ const result = lastRollupResult;++ lastRollupError = lastRollupResult = null;++ if (error) {+ throw error;+ }+ return result;+};diff --git a/app/assets/javascripts/theme-transpiler/transpiler.js b/app/assets/javascripts/theme-transpiler/transpiler.jsindex dea3ba62b6a..00248c9977a 100644--- a/app/assets/javascripts/theme-transpiler/transpiler.js+++ b/app/assets/javascripts/theme-transpiler/transpiler.js@@ -1,7 +1,6 @@-// This is executed in mini_racer to provide the JS logic for lib/discourse_js_processor.rb-import "./shims";import "./postcss";+import "./theme-rollup";import { transform as babelTransform } from "@babel/standalone";import HTMLBarsInlinePrecompile from "babel-plugin-ember-template-compilation";import DecoratorTransforms from "decorator-transforms";diff --git a/app/helpers/qunit_helper.rb b/app/helpers/qunit_helper.rbindex 9d7157898d4..445a6417731 100644--- a/app/helpers/qunit_helper.rb+++ b/app/helpers/qunit_helper.rb@@ -11,6 +11,6 @@ module QunitHelper"#{Discourse.base_path}" \"/theme-javascripts/tests/#{theme.id}-#{digest}.js" \"?__ws=#{Discourse.current_hostname}"- "<script defer src='#{src}' data-theme-id='#{theme.id}' nonce='#{csp_nonce_placeholder}'></script>".html_safe+ "<link rel='modulepreload' href='#{src}' data-theme-id='#{theme.id}' nonce='#{ThemeField::CSP_NONCE_PLACEHOLDER}' />".html_safeendenddiff --git a/app/models/theme.rb b/app/models/theme.rbindex ab50a9a1861..2f66fd3fb03 100644--- a/app/models/theme.rb+++ b/app/models/theme.rb@@ -6,7 +6,7 @@ require "json_schemer"class Theme < ActiveRecord::Baseinclude GlobalPath- BASE_COMPILER_VERSION = 94+ BASE_COMPILER_VERSION = 97CORE_THEMES = { "foundation" => -1, "horizon" => -2 }EDITABLE_SYSTEM_ATTRIBUTES = %w[child_theme_ids@@ -555,7 +555,7 @@ class Theme < ActiveRecord::Base.compactcaches.map { |c| <<~HTML.html_safe }.join("\n")- <script defer src="#{c.url}" data-theme-id="#{c.theme_id}" nonce="#{ThemeField::CSP_NONCE_PLACEHOLDER}"></script>+ <link rel="modulepreload" href="#{c.url}" data-theme-id="#{c.theme_id}" nonce="#{ThemeField::CSP_NONCE_PLACEHOLDER}" />HTMLendwhen :translationsdiff --git a/app/models/theme_field.rb b/app/models/theme_field.rbindex 2d4ed5c55c2..a39d67d1599 100644--- a/app/models/theme_field.rb+++ b/app/models/theme_field.rb@@ -260,8 +260,8 @@ class ThemeField < ActiveRecord::Basejavascript_cache.source_map = js_compiler.source_mapjavascript_cache.save!- doc.add_child(<<~HTML.html_safe) if javascript_cache.content.present?- <script defer src='#{javascript_cache.url}' data-theme-id='#{theme_id}' nonce="#{CSP_NONCE_PLACEHOLDER}"></script>+ doc.add_child(<<~HTML.html_safe)+ <link rel="modulepreload" href="#{javascript_cache.url}" data-theme-id="#{theme_id}" nonce="#{CSP_NONCE_PLACEHOLDER}" />HTMLelsejavascript_cache&.destroy!diff --git a/lib/discourse_js_processor.rb b/lib/discourse_js_processor.rbindex 51e81c9a0e4..14f86eb26f5 100644--- a/lib/discourse_js_processor.rb+++ b/lib/discourse_js_processor.rb@@ -1,6 +1,4 @@# frozen_string_literal: true-require "execjs"-require "mini_racer"class DiscourseJsProcessorclass TranspileError < StandardError@@ -27,7 +25,6 @@ class DiscourseJsProcessorenddef self.build_theme_transpiler- FileUtils.rm_rf("tmp/theme-transpiler") # cleanup old files - remove after Jan 2025Discourse::Utils.execute_command("pnpm","-C=app/assets/javascripts/theme-transpiler",@@ -57,6 +54,8 @@ class DiscourseJsProcessor@processor_mutex.synchronize { build_theme_transpiler }end+ # source = File.read("app/assets/javascripts/theme-transpiler/theme-transpiler.js")+ctx.eval(source, filename: "theme-transpiler.js")ctx@@ -156,6 +155,10 @@ class DiscourseJsProcessorself.class.v8_call("minify", tree, opts, fetch_result_call: "getMinifyResult")end+ def rollup(tree, opts)+ self.class.v8_call("rollup", tree, opts, fetch_result_call: "getRollupResult")+ end+def post_css(css:, map:, source_map_file:)self.class.v8_call("postCss",diff --git a/lib/pretty_text.rb b/lib/pretty_text.rbindex 571be71a227..44cc28e66c2 100644--- a/lib/pretty_text.rb+++ b/lib/pretty_text.rb@@ -1,6 +1,5 @@# frozen_string_literal: true-require "mini_racer"require "nokogiri"require "erb"diff --git a/lib/theme_javascript_compiler.rb b/lib/theme_javascript_compiler.rbindex fbd9fe42f8a..eea3c53cc1e 100644--- a/lib/theme_javascript_compiler.rb+++ b/lib/theme_javascript_compiler.rb@@ -1,9 +1,6 @@# frozen_string_literal: trueclass ThemeJavascriptCompiler- COLOCATED_CONNECTOR_REGEX =- %r{\A(?<prefix>.*/?)connectors/(?<outlet>[^/]+)/(?<name>[^/\.]+)\.(?<extension>.+)\z}-class CompileError < StandardErrorend@@ -31,16 +28,11 @@ class ThemeJavascriptCompiler@compiled = true@input_tree.freeze- output_tree = compile_tree!-output =- if !output_tree.present?- { "code" => "" }- elsif @@terser_disabled || !@minify- { "code" => output_tree.map { |filename, source| source }.join("") }- else- DiscourseJsProcessor::Transpiler.new.terser(output_tree, terser_config)- end+ DiscourseJsProcessor::Transpiler.new.rollup(+ @input_tree.transform_keys { |k| k.sub(/\.js\.es6$/, ".js") },+ { themeId: @theme_id, settings: @settings, minify: @minify && !@@terser_disabled },+ )@content = output["code"]@source_map = output["map"]@@ -48,28 +40,10 @@ class ThemeJavascriptCompiler[@content, @source_map]rescue DiscourseJsProcessor::TranspileError => emessage = "[THEME #{@theme_id} '#{@theme_name}'] Compile error: #{e.message}"- @content = "console.error(#{message.to_json});\n"+ @content = "throw new Error(#{message.to_json});\n"[@content, @source_map]end- def terser_config- # Based on https://github.com/ember-cli/ember-cli-terser/blob/28df3d90a5/index.js#L12-L26- {- sourceMap: {- includeSources: true,- root: "theme-#{@theme_id}/",- },- compress: {- negate_iife: false,- sequences: 30,- drop_debugger: false,- },- output: {- semicolons: false,- },- }- end-def contentcompile!@content@@ -83,164 +57,4 @@ class ThemeJavascriptCompilerdef append_tree(tree)@input_tree.merge!(tree)end-- private-- def compile_tree!- input_tree = @input_tree.dup-- # Replace legacy extensions- input_tree.transform_keys! do |filename|- if filename.ends_with? ".js.es6"- filename.sub(/\.js\.es6\z/, ".js")- else- filename- end- end-- # Some themes are colocating connector JS under `/connectors`. Move template to /templates to avoid module name clash- input_tree.transform_keys! do |filename|- match = COLOCATED_CONNECTOR_REGEX.match(filename)- next filename if !match-- is_template = match[:extension] == "hbs"- is_in_templates_directory = match[:prefix].split("/").last == "templates"-- if is_template && !is_in_templates_directory- "#{match[:prefix]}templates/connectors/#{match[:outlet]}/#{match[:name]}.#{match[:extension]}"- elsif !is_template && is_in_templates_directory- "#{match[:prefix].chomp("templates/")}connectors/#{match[:outlet]}/#{match[:name]}.#{match[:extension]}"- else- filename- end- end-- # Handle colocated components- input_tree.dup.each_pair do |filename, content|- is_component_template =- filename.end_with?(".hbs") &&- filename.start_with?("discourse/components/", "admin/components/")- next if !is_component_template- template_contents = content-- hbs_invocation_options = { moduleName: filename, parseOptions: { srcName: filename } }- hbs_invocation = "hbs(#{template_contents.to_json}, #{hbs_invocation_options.to_json})"-- prefix = <<~JS- import { hbs } from 'ember-cli-htmlbars';- const __COLOCATED_TEMPLATE__ = #{hbs_invocation};- JS-- js_filename = filename.sub(/\.hbs\z/, ".js")- js_contents = input_tree[js_filename] # May be nil for template-only component- if js_contents && !js_contents.include?("export default")- message =- "#{filename} does not contain a `default export`. Did you forget to export the component class?"- js_contents += "throw new Error(#{message.to_json});"- end-- if js_contents.nil?- # No backing class, use template-only- js_contents = <<~JS- import templateOnly from '@ember/component/template-only';- export default templateOnly();- JS- end-- js_contents = prefix + js_contents-- input_tree[js_filename] = js_contents- input_tree.delete(filename)- end-- output_tree = {}-- register_settings(@settings, tree: output_tree)-- # Transpile and write to output- input_tree.each_pair do |filename, content|- module_name, extension = filename.split(".", 2)-- if extension == "js" || extension == "gjs"- append_module(content, module_name, extension, tree: output_tree)- elsif extension == "hbs"- append_ember_template(module_name, content, tree: output_tree)- else- append_js_error(- filename,- "unknown file extension '#{extension}' (#{filename})",- tree: output_tree,- )- end- rescue CompileError => e- append_js_error filename, "#{e.message} (#{filename})", tree: output_tree- end-- output_tree- end-- def append_ember_template(name, hbs_template, tree:)- module_name = name- module_name = "/#{module_name}" if !module_name.start_with?("/")- module_name = "discourse/theme-#{@theme_id}#{module_name}"-- # Mimics the ember-cli implementation- # https://github.com/ember-cli/ember-cli-htmlbars/blob/d5aa14b3/lib/template-compiler-plugin.js#L18-L26- script = <<~JS- import { hbs } from 'ember-cli-htmlbars';- export default hbs(#{hbs_template.to_json}, { moduleName: #{module_name.to_json} });- JS-- template_module = DiscourseJsProcessor.transpile(script, "", module_name, theme_id: @theme_id)- tree["#{name}.js"] = <<~JS- if ('define' in window) {- #{template_module}- }- JS- rescue MiniRacer::RuntimeError, DiscourseJsProcessor::TranspileError => ex- raise CompileError.new ex.message- end-- def append_raw_script(filename, script, tree:)- tree[filename] = script + "\n"- end-- def append_module(script, name, extension, include_variables: true, tree:)- original_filename = name- name = "discourse/theme-#{@theme_id}/#{name}"-- script = "#{theme_settings}#{script}" if include_variables- transpiler = DiscourseJsProcessor::Transpiler.new-- tree["#{original_filename}.#{extension}"] = <<~JS- if ('define' in window) {- #{transpiler.perform(script, "", name, theme_id: @theme_id, extension: extension).strip}- }- JS- rescue MiniRacer::RuntimeError, DiscourseJsProcessor::TranspileError => ex- raise CompileError.new ex.message- end-- def append_js_error(filename, message, tree:)- message = "[THEME #{@theme_id} '#{@theme_name}'] Compile error: #{message}"- append_raw_script filename, "console.error(#{message.to_json});", tree:- end-- def register_settings(settings_hash, tree:)- append_raw_script("settings.js", <<~JS, tree:)- (function() {- if ('require' in window) {- require("discourse/lib/theme-settings-store").registerSettings(#{@theme_id}, #{settings_hash.to_json});- }- })();- JS- end-- def theme_settings- <<~JS- const settings = require("discourse/lib/theme-settings-store")- .getObjectForTheme(#{@theme_id});- const themePrefix = (key) => `theme_translations.#{@theme_id}.${key}`;- JS- endenddiff --git a/plugins/discourse-ai/lib/personas/tools/javascript_evaluator.rb b/plugins/discourse-ai/lib/personas/tools/javascript_evaluator.rbindex 23d7c1b1a0a..82860b076f5 100644--- a/plugins/discourse-ai/lib/personas/tools/javascript_evaluator.rb+++ b/plugins/discourse-ai/lib/personas/tools/javascript_evaluator.rb@@ -1,6 +1,5 @@# frozen_string_literal: true-require "mini_racer"require "json"module DiscourseAidiff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6abfbc9b089..2163e60edc7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1030,12 +1030,27 @@ importers:app/assets/javascripts/theme-transpiler:dependencies:+ '@babel/core':+ specifier: ^7.27.4+ version: 7.28.0([email protected])+ '@babel/preset-env':+ specifier: ^7.28.0+ version: 7.28.0(@babel/[email protected])([email protected])'@babel/standalone':specifier: ^7.28.2version: 7.28.2'@csstools/postcss-light-dark-function':specifier: ^2.0.9version: 2.0.9([email protected])+ '@rollup/browser':+ specifier: ^4.45.1+ version: 4.45.1+ '@rollup/plugin-babel':+ specifier: ^6.0.4+ version: 6.0.4(@babel/[email protected])([email protected])+ abort-controller:+ specifier: ^3.0.0+ version: 3.0.0autoprefixer:specifier: ^10.4.21version: 10.4.21([email protected])@@ -1069,6 +1084,12 @@ importers:fastestsmallesttextencoderdecoder:specifier: ^1.0.22version: 1.0.22+ magic-string:+ specifier: ^0.30.17+ version: 0.30.17+ memfs:+ specifier: ^4.17.2+ version: 4.17.2path-browserify:specifier: ^1.0.1version: 1.0.1@@ -1084,12 +1105,19 @@ importers:postcss-media-minmax:specifier: ^5.0.0version: 5.0.0([email protected])+ readable-stream:+ specifier: ^4.7.0+ version: 4.7.0source-map-js:specifier: ^1.2.1version: 1.2.1terser:specifier: ^5.43.1version: 5.43.1+ devDependencies:+ vitest:+ specifier: ^3.2.4app/assets/javascripts/truth-helpers:dependencies:@@ -1113,8 +1141,8 @@ packages:resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-V42wFfx1ymFte+ecf6iXghnnP8kWTO+ZLXIyZq+1LAXHHvTZdVxicn4yiVYdYMGaCO3tmqub11AorKkv+iodqw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==}engines: {node: '>=6.9.0'}'@babel/[email protected]':@@ -1146,14 +1174,14 @@ packages:peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-uVDC72XVf8UbrH5qQTc18Agb8emwjTiZrQE11Nv3CuBEZmVvTwwE9CBUEvHku06gQCAyYf8Nv6ja1IN+6LMbxQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-uJnGFcPsWQK8fvjgGP5LZUZZsYGIoPeRjSF5PGwrelYgq7Q15/Ft9NGFp1zglwgIv//W0uG4BevRuSJRyylZPg==}peerDependencies:'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0@@ -1183,8 +1211,8 @@ packages:resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0@@ -1211,8 +1239,8 @@ packages:resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}engines: {node: '>=6.9.0'}- '@babel/[email protected]':- resolution: {integrity: sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-NFJK2sHUvrjo8wAU/nQTWU890/zB2jj0qBcCbZbbf+005cAsv6tMjXz31fBign6M5ov1o0Bllu+9nbqkfsjjJQ==}engines: {node: '>=6.9.0'}'@babel/[email protected]':@@ -1224,32 +1252,32 @@ packages:engines: {node: '>=6.0.0'}hasBin: true- '@babel/[email protected]':- resolution: {integrity: sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-QPG3C9cCVRQLxAVwmefEmwdTanECuUBMQZ/ym5kiw3XKCGA7qkuQLcjWWHcrD/GKbn/WmJwaezfuuAOcyKlRPA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0- '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.25.9':- resolution: {integrity: sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==}+ '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.27.1':+ resolution: {integrity: sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.13.0- '@babel/[email protected]':- resolution: {integrity: sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-6BpaYGDavZqkI6yT+KSPdpZFfpnd68UKXbcjI9pJ13pvHhPrCKWOOLp+ysvMeA+DxnhuPpgIaRpxRxo5A9t5jw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0@@ -1298,14 +1326,14 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0@@ -1328,248 +1356,254 @@ packages:peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-He9Ej2X7tNf2zdKMAGOsmg2MrFc+hfoAhd3po4cWfo/NWjzEAKa0oQruj1ROVUdl0e6fb6/kE/G3SSxE0lRJOg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-BEOdvX4+M765icNPZeidyADIvQ1m1gmunXufXxvRESy/jNNyfovIqUyE7MVgGBjWktCoJlzvFA1To2O4ymIO3Q==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-gKKnwjpdx5sER/wl0WN0efUBFzF/56YZO0RJrSYP4CljXnP31ByY7fol89AzomdlLNzI36AvOTmYHsnZTCkq8Q==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-s734HmYU78MVzZ++joYM+NkJusItbdRcbm+AGRgJCt3iA+yux0QpD9cBVdz3tKyrjVYWRl7j0mHSmv4lhV0aoA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.12.0- '@babel/[email protected]':- resolution: {integrity: sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-IjM1IoJNw72AZFlj33Cu8X0q2XK/6AaVC3jQu+cgQ5lThWD5ajnuUAml80dqRmOhmPkTH8uAwnpMu9Rvj0LTRA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-v1nrSMBiKcodhsyJ4Gf+Z0U/yawmJDBOTpEB3mcQY52r9RIyPneGyAS/yM6seP/8I+mWI3elOMtT5dB8GJVs+A==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-K8nhUcn3f6iB+P3gwCv/no7OdzOZQcKchW6N389V6PD8NUWKZHzndOd9sPDVbMoBsbmjMqlB4L9fm+fEFNVlwQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-uspvXnhHvGKf2r4VVtBpeFnuDWsJLQ6MF6lGJLC89jBR1uoVeqM416AZtTuhTezOfgHicpJQmoD5YUakO/YmXQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-SJvDs5dXxiae4FbSL1aBJlG4wvl594N6YEVVn9e3JGulwioy6z3oPjx/sQBO3Y4NwUu5HNix6KJ3wBZoewcdbw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-w5N1XzsRbc0PQStASMksmUeqECuzKuTJer7kFagK8AXgpCMkeDMO5S+aaFb7A51ZYDF7XI34qsTX+fkHiIm5yA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-fdPKAcujuvEChxDBJ5c+0BTaS6revLV7CJL08e4m3de8qJfNIuCc2nc7XJYOjBoTMJeqSmwXJ0ypE14RCjLwaw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-9VNGikXxzu5eCiQjdE4IZn8sb9q7Xsk5EXLDBKUYg1e/Tve8/05+KJEtcxGxAgCY5t/BpKQM+JEL/yT4tvgiUA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-txEAEKzYrHEX4xSZN4kJ+OfKXFVSWKB2ZxM9dpcE3wT7smwkNmXo5ORRlVzMVdJbD+Q8ILTgSD7959uj+3Dm3Q==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-BQmKPPIuc8EkZgNKsv0X4bPmOoayeu4F1YCwx2/CfmDSXDbp7GnzlUH+/ul5VGfRg1AoFPsrIThlEBj2xb4CAg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-5J+IhqTi1XPa0DXF83jYOaARrX+41gOewWbkPyjMNRDqgOCqdffGh8L3f/Ek5utaEBZExjSAzcyjmV9SSAWObQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-P0QiV/taaa3kXpLY+sXla5zec4E+4t4Aqc9ggHlfZ7a2cp8/x/Gv08jfwEtn9gnnYIMvHx6aoOZ8XJL8eU71Dg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0- '@babel/[email protected]':- resolution: {integrity: sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0@@ -1580,32 +1614,32 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-jfoTXXZTgGg36BmhqT3cAYK5qkmqvJpvNrPhaK/52Vgjhw4Rq29s9UqpWWV0D6yuRmgiFH/BUVlkl96zJWqnaw==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0@@ -1621,26 +1655,26 @@ packages:peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0- '@babel/[email protected]':- resolution: {integrity: sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0@@ -1649,8 +1683,8 @@ packages:resolution: {integrity: sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==}deprecated: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.- '@babel/[email protected]':- resolution: {integrity: sha512-vX3qPGE8sEKEAZCWk05k3cpTAE3/nOYca++JA+Rd0z2NCNzabmYvEiSShKzm10zdquOIAVXsy2Ei/DTW34KlKQ==}+ '@babel/[email protected]':+ resolution: {integrity: sha512-VmaxeGOwuDqzLl5JUkIRM1X2Qu2uKGxHEQWh+cvvbl7JuJRgKGJSfsEF/bUaxFhJl/XAyxBe7q7qSuTbKFuCyg==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0-0@@ -2375,6 +2409,24 @@ packages:resolution: {integrity: sha512-vUQ7Oy+7VfNIzu6irtPz5qfHbMNTlQWUbHJ7eunxFza+SBwUXfq2Uh5QYD2d6hLDhF22sYh8DPpLWFixQrt1+Q==}engines: {node: '>= 0.8.0'}+ '@jsonjoy.com/[email protected]':+ resolution: {integrity: sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA==}+ engines: {node: '>=10.0'}+ peerDependencies:+ tslib: '2'++ '@jsonjoy.com/[email protected]':+ resolution: {integrity: sha512-io1zEbbYcElht3tdlqEOFxZ0dMTYrHz9iMf0gqn1pPjZFTCgM5R4R5IMA20Chb2UPYYsxjzs8CgZ7Nb5n2K2rA==}+ engines: {node: '>=10.0'}+ peerDependencies:+ tslib: '2'++ '@jsonjoy.com/[email protected]':+ resolution: {integrity: sha512-sw/RMbehRhN68WRtcKCpQOPfnH6lLP4GJfqzi3iYej8tnzpZUDr6UkZYJjcjjC0FWEJOJbyM3PTIwxucUmDG2A==}+ engines: {node: '>=10.0'}+ peerDependencies:+ tslib: '2'+'@jspreadsheet/[email protected]':resolution: {integrity: sha512-PDQYf9REQA53I7tVYkvkeyQxrd5jcjUeHgItYnRpjN2QiIQwawSqBDtGGEVQTSboTG+JwgGCuhvOpj7FxeKwew==}@@ -2503,6 +2555,131 @@ packages:peerDependencies:prettier: 3.x+ '@rollup/[email protected]':+ resolution: {integrity: sha512-YLACTZk81gdL2AWRUvSt9vwvEEC7ONiYHgriZLIbAsON8uB9foGJiLP1B3GSqMxP95a4CzOThqOMEIUEF64DqQ==}++ '@rollup/[email protected]':+ resolution: {integrity: sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ '@babel/core': ^7.0.0+ '@types/babel__core': ^7.1.9+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0+ peerDependenciesMeta:+ '@types/babel__core':+ optional: true+ rollup:+ optional: true++ '@rollup/[email protected]':+ resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0+ peerDependenciesMeta:+ rollup:+ optional: true++ '@rollup/[email protected]':+ resolution: {integrity: sha512-xEiEE5oDW6tK4jXCAyliuntGR+amEMO7HLtdSshVuhFnKTYoeYMyXQK7pLouAJJj5KHdwdn87bfHAR2nSdNAUA==}+ cpu: [arm]+ os: [android]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-uNSk/TgvMbskcHxXYHzqwiyBlJ/lGcv8DaUfcnNwict8ba9GTTNxfn3/FAoFZYgkaXXAdrAA+SLyKplyi349Jw==}+ cpu: [arm64]+ os: [android]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-VGF3wy0Eq1gcEIkSCr8Ke03CWT+Pm2yveKLaDvq51pPpZza3JX/ClxXOCmTYYq3us5MvEuNRTaeyFThCKRQhOA==}+ cpu: [arm64]+ os: [darwin]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-fBkyrDhwquRvrTxSGH/qqt3/T0w5Rg0L7ZIDypvBPc1/gzjJle6acCpZ36blwuwcKD/u6oCE/sRWlUAcxLWQbQ==}+ cpu: [x64]+ os: [darwin]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-u5AZzdQJYJXByB8giQ+r4VyfZP+walV+xHWdaFx/1VxsOn6eWJhK2Vl2eElvDJFKQBo/hcYIBg/jaKS8ZmKeNQ==}+ cpu: [arm64]+ os: [freebsd]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-qC0kS48c/s3EtdArkimctY7h3nHicQeEUdjJzYVJYR3ct3kWSafmn6jkNCA8InbUdge6PVx6keqjk5lVGJf99g==}+ cpu: [x64]+ os: [freebsd]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-x+e/Z9H0RAWckn4V2OZZl6EmV0L2diuX3QB0uM1r6BvhUIv6xBPL5mrAX2E3e8N8rEHVPwFfz/ETUbV4oW9+lQ==}+ cpu: [arm]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-1exwiBFf4PU/8HvI8s80icyCcnAIB86MCBdst51fwFmH5dyeoWVPVgmQPcKrMtBQ0W5pAs7jBCWuRXgEpRzSCg==}+ cpu: [arm]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-ZTR2mxBHb4tK4wGf9b8SYg0Y6KQPjGpR4UWwTFdnmjB4qRtoATZ5dWn3KsDwGa5Z2ZBOE7K52L36J9LueKBdOQ==}+ cpu: [arm64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-GFWfAhVhWGd4r6UxmnKRTBwP1qmModHtd5gkraeW2G490BpFOZkFtem8yuX2NyafIP/mGpRJgTJ2PwohQkUY/Q==}+ cpu: [arm64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-xw+FTGcov/ejdusVOqKgMGW3c4+AgqrfvzWEVXcNP6zq2ue+lsYUgJ+5Rtn/OTJf7e2CbgTFvzLW2j0YAtj0Gg==}+ cpu: [loong64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-bKGibTr9IdF0zr21kMvkZT4K6NV+jjRnBoVMt2uNMG0BYWm3qOVmYnXKzx7UhwrviKnmK46IKMByMgvpdQlyJQ==}+ cpu: [ppc64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-vV3cL48U5kDaKZtXrti12YRa7TyxgKAIDoYdqSIOMOFBXqFj2XbChHAtXquEn2+n78ciFgr4KIqEbydEGPxXgA==}+ cpu: [riscv64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-TDKO8KlHJuvTEdfw5YYFBjhFts2TR0VpZsnLLSYmB7AaohJhM8ctDSdDnUGq77hUh4m/djRafw+9zQpkOanE2Q==}+ cpu: [riscv64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-8541GEyktXaw4lvnGp9m84KENcxInhAt6vPWJ9RodsB/iGjHoMB2Pp5MVBCiKIRxrxzJhGCxmNzdu+oDQ7kwRA==}+ cpu: [s390x]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-iUVJc3c0o8l9Sa/qlDL2Z9UP92UZZW1+EmQ4xfjTc1akr0iUFZNfxrXJ/R1T90h/ILm9iXEY6+iPrmYB3pXKjw==}+ cpu: [x64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-PQUobbhLTQT5yz/SPg116VJBgz+XOtXt8D1ck+sfJJhuEsMj2jSej5yTdp8CvWBSceu+WW+ibVL6dm0ptG5fcA==}+ cpu: [x64]+ os: [linux]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-M0CpcHf8TWn+4oTxJfh7LQuTuaYeXGbk0eageVjQCKzYLsajWS/lFC94qlRqOlyC2KvRT90ZrfXULYmukeIy7w==}+ cpu: [arm64]+ os: [win32]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-3XJ0NQtMAXTWFW8FqZKcw3gOQwBtVWP/u8TpHP3CRPXD7Pd6s8lLdH3sHWh8vqKCyyiI8xW5ltJScQmBU9j7WA==}+ cpu: [ia32]+ os: [win32]++ '@rollup/[email protected]':+ resolution: {integrity: sha512-Q2Mgwt+D8hd5FIPUuPDsvPR7Bguza6yTkJxspDGkZj7tBRn2y4KSWYuIXpftFSjBra76TbKerCV7rgFPQrn+wQ==}+ cpu: [x64]+ os: [win32]+'@rtsao/[email protected]':resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==}@@ -2653,12 +2830,18 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==}+'@types/[email protected]':resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}'@types/[email protected]':resolution: {integrity: sha512-nX3d0sxJW41CqQvfOzVG1NCTXfFDrDWIghCZncpHeWlVFd81zxB/DLhg7avFg6eHLCRX7ckBmoIIcqa++upvJA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}+'@types/[email protected]':resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}@@ -2793,6 +2976,35 @@ packages:peerDependencies:'@uppy/core': ^4.2.2+ '@vitest/[email protected]':+ resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==}+ peerDependencies:+ msw: ^2.4.9+ vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0+ peerDependenciesMeta:+ msw:+ optional: true+ vite:+ optional: true++ '@vitest/[email protected]':+ resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==}+'@volar/[email protected]':resolution: {integrity: sha512-jRPfMrxl8N53UkFINMoY777FBqG49RUqWkJt4yOlNEW8CmUS8fmUw4cz/jMv08KnQUyD3IeZWFtt3XZcQqe4Zw==}peerDependencies:@@ -2884,6 +3096,10 @@ packages:resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}+ engines: {node: '>=6.5'}+resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}engines: {node: '>= 0.6'}@@ -3082,6 +3298,10 @@ packages:resolution: {integrity: sha512-5oJg84os6NMQNl27T9LnZkvvqzvAnHu03ShCnoj6bsJwS7L8AO4lf+C/XjK/nvzEqQB744moC6V128RucQd1jA==}+ resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==}engines: {node: '>=0.10.0'}@@ -3211,8 +3431,8 @@ packages:resolution: {integrity: sha512-9KtaCazHee2xc0ibfqsDeamwDps6FZNo5S0Q81dUqEuFzVwPhcT4J5jOqIVvgCA3Q/wO9hKYxN/Ds3tIsp5ygg==}- resolution: {integrity: sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==}+ resolution: {integrity: sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==}peerDependencies:'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0@@ -3221,8 +3441,13 @@ packages:peerDependencies:'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0- resolution: {integrity: sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==}+ resolution: {integrity: sha512-U+GNwMdSFgzVmfhNm8GJUX88AadB3uo9KpJqS3FaqNIPKgySuvMb+bHPsOmmuWyIcuqZj/pzt1RUIUZns4y2+A==}+ peerDependencies:+ '@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0++ resolution: {integrity: sha512-ISqQ2frbiNU9vIJkzg7dlPpznPZ4jOiUQ1uSmB0fEHeowtN3COYRsXr/xexn64NpU13P06jc/L5TgiJXOgrbEg==}peerDependencies:'@babel/core': ^7.4.0 || ^8.0.0-0 <8.0.0@@ -3248,8 +3473,8 @@ packages:resolution: {integrity: sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==}- resolution: {integrity: sha512-EKZ5BTXYExaNqi3I3f9RtEsaI/xBSGjE0XZCZilPzFAV/goswFHuPd9jEZlPIZ/iNZJwDSao9qRiScySz7MbQg==}+ resolution: {integrity: sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA==}resolution: {integrity: sha512-25RsLF33BqooOEFNdMcEhMpJy8EoR88zSMrnOQOaM3USnOK2VmaJ1uaQEwPA6AQjrv1lXChScosN6CzbwbO9OQ==}@@ -3512,6 +3737,10 @@ packages:resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ==}engines: {node: ^16.14.0 || >=18.0.0}@@ -3569,6 +3798,10 @@ packages:resolution: {integrity: sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==}engines: {node: '>= 10'}+ resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}engines: {node: '>=4'}@@ -3595,6 +3828,10 @@ packages:peerDependencies:chart.js: '>=3.0.0'+ resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==}+ engines: {node: '>= 16'}+resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}engines: {node: '>=10'}@@ -4018,8 +4255,8 @@ packages:resolution: {integrity: sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-0XEDpr5y5mijvw8Lbc6E5AkjrHfp7eEoPlu36SWeAbcL8fn1G1ANe8DBlo2XoNN89oVpxWwOjYIPVzR4ZvsKCQ==}+ resolution: {integrity: sha512-JepmAj2zfl6ogy34qfWtcE7nHKAJnKsQFRn++scjVS2bZFllwptzw61BZcZFYBPpUznLfAvh0LGhxKppk04ClA==}resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==}@@ -4171,6 +4408,10 @@ packages:resolution: {integrity: sha512-jo8c1ss9yFPudHuYYcrJ9jpkDZIoi+lOGvt+Uyp9B+dz32i50icRMx9Bfa8hEt7TnX1FyKWKkjV+cUdT/ep2kA==}+ resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}@@ -4559,8 +4800,8 @@ packages:resolution: {integrity: sha512-ZCkIjSYNDyGn0R6ewHDtXgns/Zre/NT6Agvq1/WobF7JXgFff4SeDroKiCO3fNJreU9YG429Sc81o4w5ok/W5g==}engines: {node: '>=10.2.0'}- resolution: {integrity: sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ==}+ resolution: {integrity: sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==}engines: {node: '>=10.13.0'}@@ -4799,6 +5040,12 @@ packages:resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}engines: {node: '>=4.0'}+ resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}++ resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}+resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}@@ -4810,6 +5057,10 @@ packages:resolution: {integrity: sha512-otazchNRnGzp2YarBJ+GXKVGvhxVATB1zmaStxJBYet0Dyq7A9VhH8IUEB/gRcL6Ch52lfpgPTRJ2m49epyMsQ==}+ resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==}@@ -4855,6 +5106,10 @@ packages:resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==}+ engines: {node: '>=12.0.0'}+resolution: {integrity: sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==}@@ -5187,6 +5442,11 @@ packages:engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}os: [darwin]+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}+ os: [darwin]+resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}@@ -5321,10 +5581,6 @@ packages:resolution: {integrity: sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==}- resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}- engines: {node: '>=4'}-resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}engines: {node: '>=18'}@@ -5513,6 +5769,10 @@ packages:resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}engines: {node: '>=16.17.0'}+ resolution: {integrity: sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A==}+ engines: {node: '>=10.18'}+resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}engines: {node: '>=0.10.0'}@@ -5923,6 +6183,9 @@ packages:resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}+ resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}+resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}hasBin: true@@ -6256,6 +6519,9 @@ packages:resolution: {integrity: sha512-CdaO738xRapbKIMVn2m4F6KTj4j7ooJ8POVnebSgKo3KBz5axNXRAL7ZdRjIV6NOr2Uf4vjtRkxrFETOioCqSA==}engines: {node: '>= 12.0.0'}+ resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==}+resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}@@ -6272,6 +6538,9 @@ packages:resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}+ resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}+resolution: {integrity: sha512-ghSa/1TKsOUL6ZlHfcfFCoB9Wms2nqaDdBEPh6QX9jFYQyMkUu7ciU1mrxedWWq4NM2m1C/llhHKLt6GKRYOzg==}engines: {node: '>= 0.8.0'}@@ -6367,6 +6636,10 @@ packages:resolution: {integrity: sha512-qvwipnozMohxLXG1pOqoLiZKNkC4r4qqRucSoDwXowsNGDSULiqFTRUF05vcZWnwJSG22qTsynQhxbaMtnX9gw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-NgYhCOWgovOXSzvYgUW0LQ7Qy72rWQMGGFJDoWg4G30RHd3z77VbYdtJ4fembJXBy8pMIUA31XNAupobOQlwdg==}+ engines: {node: '>= 4.0.0'}+resolution: {integrity: sha512-qVQ/CjkMyMInPaaRMrwWNDvf6boRZXaT/DbQeMYcCWuXPEBf1v8qChOc9OlEVQp2uOvRXa1Qu30fLmKhY6NipA==}@@ -7042,6 +7315,13 @@ packages:resolution: {integrity: sha512-Vj7sf++t5pBD637NSfkxpHSMfWaeig5+DKWLhcqIYx6mWQz5hdJTGDVMQiJcw1ZYkhs7AazKDGpRVji1LJCZUQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}++ resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}+ engines: {node: '>= 14.16'}+resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==}@@ -7407,6 +7687,10 @@ packages:resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}engines: {node: '>= 6'}+ resolution: {integrity: sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+resolution: {integrity: sha512-XNvYvkfdAN9QewbrxeTOjgINkdY/odTgTS56ZNEWL9Ml0weT4T3sFtvnTuF+Gxyu46ANcRm1ntrF6F5LAJPAaQ==}engines: {node: '>= 4'}@@ -7428,9 +7712,6 @@ packages:resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==}- resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==}-resolution: {integrity: sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==}engines: {node: '>=0.10.0'}@@ -7578,6 +7859,11 @@ packages:resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==}hasBin: true+ resolution: {integrity: sha512-qHcdEzLCiktQIfwBq420pn2dP+30uzqYxv9ETm91wdt2R9AFcWfjNAmje4NWlnCIQ5RMTzVf0ZyisOKqHR6RwA==}+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}+ hasBin: true+resolution: {integrity: sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==}@@ -7787,6 +8073,9 @@ packages:resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}+resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}@@ -7964,6 +8253,9 @@ packages:resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==}+ resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}+resolution: {integrity: sha512-GqXBq2SPWv9hTXDFKS8WrKK1aISB0aKGHZzH+uD4ShAgs+Fz20ZfoerLOm8U+f62iRWLrw6nimOY/uYuTcVhvg==}engines: {node: 6.* || 8.* || >= 10.*}@@ -7980,6 +8272,9 @@ packages:resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==}+resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}engines: {node: '>= 0.4'}@@ -8074,6 +8369,9 @@ packages:resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}engines: {node: '>=8'}+ resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==}+resolution: {integrity: sha512-wkVYph30L7wYkMf5EypfTqhY4qZwmQ0hpFOTksaXne49YbUr2jenJl5w5yj9IWx3ojtoH9BGAQ7cShnYEzbs5g==}@@ -8233,6 +8531,12 @@ packages:resolution: {integrity: sha512-49WtAWS+tcsy93dRt6P0P3AMD2m5PvXRhuEA0kaXos5ZLlujtYmpmFsB+QvWUSxE1ZsstmYXfQ7L40+EcQgpAQ==}engines: {node: '>=0.8'}+ resolution: {integrity: sha512-hsqsJsFMsV+aD4s3CWKk85ep/3I9XzYV/IXaSouJMYIoDlgyi11cBhsqYe9/geRfB0YIikBQg6raRaM+nIMP9g==}+ engines: {node: '>=10.18'}+ peerDependencies:+ tslib: ^2+resolution: {integrity: sha512-ByaL2TPb+m6yArpqQUZvP+5S1mZtXsEP7nWKKlAUTm7fCml8kB5s1uI3+eHRP2bk5mVYfRSBI7FFf+tWEyLZwA==}engines: {node: '>= 10.13.0'}@@ -8257,10 +8561,28 @@ packages:resolution: {integrity: sha512-f6nh0VMRvhGx4KCeK1lQ/jaL0Zdb5WdR+Jk8q9OSUQnaSDxAEGH1fgqLZ+cMl5EW3F2MGnCsalBO1IsnnogW1Q==}+ resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}++ resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}+resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==}+ engines: {node: ^18.0.0 || >=20.0.0}++ resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}+ engines: {node: '>=14.0.0'}++ resolution: {integrity: sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==}+ engines: {node: '>=14.0.0'}+resolution: {integrity: sha512-DTjUVvxckL1fIoPSb3KE7ISNtkWSawZdpfxGxwiIrZoO6EbHVDXXUIlIuWympPaeS+BLGyggozX/HTMsRAdsoA==}@@ -8322,6 +8644,12 @@ packages:resolution: {integrity: sha512-IUWnUK7ADYR5Sl1fZlO1INDUhVhatWl7BtJWsIhwJ0UAK7ilzzIa8uIqOO/aYVWHZPJkKbEL+362wrzoeRF7bw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-il+Cv80yVHFBwokQSfd4bldvr1Md951DpgAGfmhydt04L+YzHgubm2tQ7zueWDcGENKHq0ZvGFR/hjvNXilHEg==}+ engines: {node: '>=10.0'}+ peerDependencies:+ tslib: '2'+resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}hasBin: true@@ -8570,6 +8898,79 @@ packages:resolution: {integrity: sha512-wb6Qc9Lbqug0kRqo/iuApfBpJJAq14Sk1faAnSmtqXiwahg7PVTvWMs9L02Z8nNIMqbwsxzBAA90bbtRLbw0zg==}+ resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==}+ engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}+ hasBin: true++ resolution: {integrity: sha512-ixXJB1YRgDIw2OszKQS9WxGHKwLdCsbQNkpJN171udl6szi/rIySHL6/Os3s2+oE4P/FLD4dxg4mD7Wust+u5g==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^20.19.0 || >=22.12.0+ jiti: '>=1.21.0'+ less: ^4.0.0+ lightningcss: ^1.21.0+ sass: ^1.70.0+ sass-embedded: ^1.70.0+ stylus: '>=0.54.8'+ sugarss: ^5.0.0+ terser: ^5.16.0+ tsx: ^4.8.1+ yaml: ^2.4.2+ peerDependenciesMeta:+ '@types/node':+ optional: true+ jiti:+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ tsx:+ optional: true+ yaml:+ optional: true++ resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==}+ engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}+ hasBin: true+ peerDependencies:+ '@edge-runtime/vm': '*'+ '@types/debug': ^4.1.12+ '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0+ '@vitest/browser': 3.2.4+ '@vitest/ui': 3.2.4+ happy-dom: '*'+ jsdom: '*'+ peerDependenciesMeta:+ '@edge-runtime/vm':+ optional: true+ '@types/debug':+ optional: true+ '@types/node':+ optional: true+ '@vitest/browser':+ optional: true+ '@vitest/ui':+ optional: true+ happy-dom:+ optional: true+ jsdom:+ optional: true+resolution: {integrity: sha512-zPJuLIMs7lkQCvL+Rza8+3/EIoXEIkX8+DL7bNNfPgnbalbvRDhqWLVMJ6Zk3pINjLJafDqyhSbw8srfkUv97w==}peerDependencies:@@ -8638,8 +9039,8 @@ packages:resolution: {integrity: sha512-MrJK9z7kD5Gl3jHBnnBVHvr1saVGAfmkyyrvuNzV/oe0Gr1nwZTy5VSA0Gw2j2Or0Mu8HcjUa44qlBvC2Ofnpg==}engines: {node: '>= 8'}- resolution: {integrity: sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==}+ resolution: {integrity: sha512-adBYQLivcg1jbdKEJeqScJJFvgm4qY9+3tXw+jdG6lkVeqRJEtiQmSWjmth8GKmDZuX7sYM4YFxQsf0AzMfGGw==}engines: {node: '>=10.13.0'}@@ -8731,6 +9132,11 @@ packages:engines: {node: ^16.13.0 || >=18.0.0}hasBin: true+ resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}+ engines: {node: '>=8'}+ hasBin: true+resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==}@@ -8885,8 +9291,8 @@ packages:resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==}engines: {node: '>=18'}- resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}+ resolution: {integrity: sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==}snapshots:@@ -8909,7 +9315,7 @@ snapshots:js-tokens: 4.0.0picocolors: 1.1.1- '@babel/[email protected]': {}+ '@babel/[email protected]': {}'@babel/[email protected]([email protected])':dependencies:@@ -8953,7 +9359,7 @@ snapshots:'@babel/[email protected]':dependencies:- '@babel/compat-data': 7.27.3+ '@babel/compat-data': 7.28.0'@babel/helper-validator-option': 7.27.1browserslist: 4.25.1lru-cache: 5.1.1@@ -8972,14 +9378,14 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-annotate-as-pure': 7.27.3regexpu-core: 6.2.0semver: 6.3.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-compilation-targets': 7.27.2@@ -9021,11 +9427,11 @@ snapshots:'@babel/[email protected]': {}dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-annotate-as-pure': 7.27.3- '@babel/helper-wrap-function': 7.25.9([email protected])+ '@babel/helper-wrap-function': 7.27.1([email protected])'@babel/traverse': 7.28.0([email protected])transitivePeerDependencies:- supports-color@@ -9052,7 +9458,7 @@ snapshots:'@babel/[email protected]': {}- '@babel/[email protected]([email protected])':+ '@babel/[email protected]([email protected])':dependencies:'@babel/template': 7.27.2'@babel/traverse': 7.28.0([email protected])@@ -9069,7 +9475,7 @@ snapshots:dependencies:'@babel/types': 7.28.0dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9077,26 +9483,26 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.25.9(@babel/[email protected])':+ '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.27.1(@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1'@babel/helper-skip-transparent-expression-wrappers': 7.27.1([email protected])- '@babel/plugin-transform-optional-chaining': 7.25.9(@babel/[email protected])([email protected])+ '@babel/plugin-transform-optional-chaining': 7.27.1(@babel/[email protected])([email protected])transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9153,12 +9559,12 @@ snapshots:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9176,43 +9582,43 @@ snapshots:'@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/helper-remap-async-to-generator': 7.25.9(@babel/[email protected])([email protected])+ '@babel/helper-remap-async-to-generator': 7.27.1(@babel/[email protected])([email protected])'@babel/traverse': 7.28.0([email protected])transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-module-imports': 7.27.1([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/helper-remap-async-to-generator': 7.25.9(@babel/[email protected])([email protected])+ '@babel/helper-remap-async-to-generator': 7.27.1(@babel/[email protected])([email protected])transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-create-class-features-plugin': 7.27.1(@babel/[email protected])([email protected])@@ -9220,7 +9626,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-create-class-features-plugin': 7.27.1(@babel/[email protected])([email protected])@@ -9228,62 +9634,73 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-annotate-as-pure': 7.27.3'@babel/helper-compilation-targets': 7.27.2+ '@babel/helper-globals': 7.28.0'@babel/helper-plugin-utils': 7.27.1'@babel/helper-replace-supers': 7.27.1(@babel/[email protected])([email protected])'@babel/traverse': 7.28.0([email protected])- globals: 11.12.0transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1'@babel/template': 7.27.2- '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.28.0([email protected])+ '@babel/helper-plugin-utils': 7.27.1+ '@babel/traverse': 7.28.0([email protected])+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1+ '@babel/plugin-transform-destructuring': 7.28.0(@babel/[email protected])([email protected])+ transitivePeerDependencies:+ - supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9291,7 +9708,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-compilation-targets': 7.27.2@@ -9300,27 +9717,27 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-module-transforms': 7.27.3(@babel/[email protected])([email protected])@@ -9328,7 +9745,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-module-transforms': 7.27.3(@babel/[email protected])([email protected])@@ -9336,7 +9753,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-module-transforms': 7.27.3(@babel/[email protected])([email protected])@@ -9346,7 +9763,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-module-transforms': 7.27.3(@babel/[email protected])([email protected])@@ -9354,35 +9771,39 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-compilation-targets': 7.27.2'@babel/helper-plugin-utils': 7.27.1- '@babel/plugin-transform-parameters': 7.25.9(@babel/[email protected])+ '@babel/plugin-transform-destructuring': 7.28.0(@babel/[email protected])([email protected])+ '@babel/plugin-transform-parameters': 7.27.7(@babel/[email protected])+ '@babel/traverse': 7.28.0([email protected])+ transitivePeerDependencies:+ - supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9390,12 +9811,12 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9403,12 +9824,12 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-create-class-features-plugin': 7.27.1(@babel/[email protected])([email protected])@@ -9416,7 +9837,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-annotate-as-pure': 7.27.3@@ -9425,24 +9846,23 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- regenerator-transform: 0.15.2- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9452,19 +9872,19 @@ snapshots:'@babel/core': 7.28.0([email protected])'@babel/helper-module-imports': 7.27.1([email protected])'@babel/helper-plugin-utils': 7.27.1- babel-plugin-polyfill-corejs2: 0.4.12(@babel/[email protected])([email protected])- babel-plugin-polyfill-corejs3: 0.11.1(@babel/[email protected])([email protected])- babel-plugin-polyfill-regenerator: 0.6.3(@babel/[email protected])([email protected])+ babel-plugin-polyfill-corejs2: 0.4.14(@babel/[email protected])([email protected])+ babel-plugin-polyfill-corejs3: 0.11.1(@babel/[email protected])+ babel-plugin-polyfill-regenerator: 0.6.5(@babel/[email protected])([email protected])semver: 6.3.1transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9472,17 +9892,17 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1@@ -9507,27 +9927,27 @@ snapshots:transitivePeerDependencies:- supports-color- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1- '@babel/[email protected](@babel/[email protected])':+ '@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-create-regexp-features-plugin': 7.26.3(@babel/[email protected])+ '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/[email protected])'@babel/helper-plugin-utils': 7.27.1'@babel/[email protected]':@@ -9535,77 +9955,78 @@ snapshots:core-js: 2.6.12regenerator-runtime: 0.13.11dependencies:- '@babel/compat-data': 7.27.3+ '@babel/compat-data': 7.28.0'@babel/core': 7.28.0([email protected])'@babel/helper-compilation-targets': 7.27.2'@babel/helper-plugin-utils': 7.27.1'@babel/helper-validator-option': 7.27.1- '@babel/plugin-bugfix-firefox-class-in-computed-class-key': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-bugfix-safari-class-field-initializer-scope': 7.25.9(@babel/[email protected])- '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.25.9(@babel/[email protected])- '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.25.9(@babel/[email protected])([email protected])+ '@babel/plugin-bugfix-firefox-class-in-computed-class-key': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-bugfix-safari-class-field-initializer-scope': 7.27.1(@babel/[email protected])+ '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.27.1(@babel/[email protected])+ '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.27.1(@babel/[email protected])([email protected])'@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/[email protected])- '@babel/plugin-syntax-import-assertions': 7.26.0(@babel/[email protected])- '@babel/plugin-syntax-import-attributes': 7.26.0(@babel/[email protected])+ '@babel/plugin-syntax-import-assertions': 7.27.1(@babel/[email protected])+ '@babel/plugin-syntax-import-attributes': 7.27.1(@babel/[email protected])'@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/[email protected])- '@babel/plugin-transform-arrow-functions': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-async-generator-functions': 7.26.8(@babel/[email protected])([email protected])- '@babel/plugin-transform-async-to-generator': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-block-scoped-functions': 7.26.5(@babel/[email protected])- '@babel/plugin-transform-block-scoping': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-class-properties': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-class-static-block': 7.26.0(@babel/[email protected])([email protected])- '@babel/plugin-transform-classes': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-computed-properties': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-destructuring': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-dotall-regex': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-duplicate-keys': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-duplicate-named-capturing-groups-regex': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-dynamic-import': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-exponentiation-operator': 7.26.3(@babel/[email protected])- '@babel/plugin-transform-export-namespace-from': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-for-of': 7.26.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-function-name': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-json-strings': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-literals': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-logical-assignment-operators': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-member-expression-literals': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-modules-amd': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-modules-commonjs': 7.26.3(@babel/[email protected])([email protected])- '@babel/plugin-transform-modules-systemjs': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-modules-umd': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-named-capturing-groups-regex': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-new-target': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-nullish-coalescing-operator': 7.26.6(@babel/[email protected])- '@babel/plugin-transform-numeric-separator': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-object-rest-spread': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-object-super': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-optional-catch-binding': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-optional-chaining': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-parameters': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-private-methods': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-private-property-in-object': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-property-literals': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-regenerator': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-regexp-modifiers': 7.26.0(@babel/[email protected])- '@babel/plugin-transform-reserved-words': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-shorthand-properties': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-spread': 7.25.9(@babel/[email protected])([email protected])- '@babel/plugin-transform-sticky-regex': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-template-literals': 7.26.8(@babel/[email protected])- '@babel/plugin-transform-typeof-symbol': 7.26.7(@babel/[email protected])- '@babel/plugin-transform-unicode-escapes': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-unicode-property-regex': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-unicode-regex': 7.25.9(@babel/[email protected])- '@babel/plugin-transform-unicode-sets-regex': 7.25.9(@babel/[email protected])+ '@babel/plugin-transform-arrow-functions': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-async-generator-functions': 7.28.0(@babel/[email protected])([email protected])+ '@babel/plugin-transform-async-to-generator': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-block-scoped-functions': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-block-scoping': 7.28.0(@babel/[email protected])+ '@babel/plugin-transform-class-properties': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-class-static-block': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-classes': 7.28.0(@babel/[email protected])([email protected])+ '@babel/plugin-transform-computed-properties': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-destructuring': 7.28.0(@babel/[email protected])([email protected])+ '@babel/plugin-transform-dotall-regex': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-duplicate-keys': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-duplicate-named-capturing-groups-regex': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-dynamic-import': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-explicit-resource-management': 7.28.0(@babel/[email protected])([email protected])+ '@babel/plugin-transform-exponentiation-operator': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-export-namespace-from': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-for-of': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-function-name': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-json-strings': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-literals': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-logical-assignment-operators': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-member-expression-literals': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-modules-amd': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-modules-systemjs': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-modules-umd': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-named-capturing-groups-regex': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-new-target': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-nullish-coalescing-operator': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-numeric-separator': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-object-rest-spread': 7.28.0(@babel/[email protected])([email protected])+ '@babel/plugin-transform-object-super': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-optional-catch-binding': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-optional-chaining': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-parameters': 7.27.7(@babel/[email protected])+ '@babel/plugin-transform-private-methods': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-private-property-in-object': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-property-literals': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-regenerator': 7.28.1(@babel/[email protected])+ '@babel/plugin-transform-regexp-modifiers': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-reserved-words': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-shorthand-properties': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-spread': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-sticky-regex': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-template-literals': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-typeof-symbol': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-unicode-escapes': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-unicode-property-regex': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-unicode-regex': 7.27.1(@babel/[email protected])+ '@babel/plugin-transform-unicode-sets-regex': 7.27.1(@babel/[email protected])'@babel/preset-modules': 0.1.6-no-external-plugins(@babel/[email protected])- babel-plugin-polyfill-corejs2: 0.4.12(@babel/[email protected])([email protected])- babel-plugin-polyfill-corejs3: 0.11.1(@babel/[email protected])([email protected])- babel-plugin-polyfill-regenerator: 0.6.3(@babel/[email protected])([email protected])- core-js-compat: 3.40.0+ babel-plugin-polyfill-corejs2: 0.4.14(@babel/[email protected])([email protected])+ babel-plugin-polyfill-corejs3: 0.13.0(@babel/[email protected])([email protected])+ babel-plugin-polyfill-regenerator: 0.6.5(@babel/[email protected])([email protected])+ core-js-compat: 3.44.0semver: 6.3.1transitivePeerDependencies:- supports-color@@ -9869,7 +10290,7 @@ snapshots:'@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/[email protected])'@babel/plugin-syntax-typescript': 7.27.1(@babel/[email protected])'@babel/plugin-transform-runtime': 7.26.10(@babel/[email protected])- '@babel/preset-env': 7.26.9(@babel/[email protected])([email protected])+ '@babel/preset-env': 7.28.0(@babel/[email protected])([email protected])'@babel/runtime': 7.27.6'@babel/traverse': 7.28.0([email protected])'@embroider/core': 3.5.5(@glint/[email protected])@@ -10024,7 +10445,7 @@ snapshots:'@embroider/[email protected](@embroider/[email protected](@glint/[email protected]))([email protected](@swc/[email protected])([email protected]))':dependencies:'@babel/core': 7.28.0([email protected])- '@babel/preset-env': 7.26.9(@babel/[email protected])([email protected])+ '@babel/preset-env': 7.28.0(@babel/[email protected])([email protected])'@embroider/babel-loader-9': 3.1.1(@embroider/[email protected](@glint/[email protected]))([email protected])([email protected](@swc/[email protected])([email protected]))'@embroider/core': 3.5.5(@glint/[email protected])'@embroider/hbs-loader': 3.0.3(@embroider/[email protected](@glint/[email protected]))([email protected](@swc/[email protected])([email protected]))@@ -10551,6 +10972,22 @@ snapshots:dependencies:core-js: 3.44.0+ '@jsonjoy.com/[email protected]([email protected])':+ dependencies:+ tslib: 2.8.1++ '@jsonjoy.com/[email protected]([email protected])':+ dependencies:+ '@jsonjoy.com/base64': 1.1.2([email protected])+ '@jsonjoy.com/util': 1.6.0([email protected])+ hyperdyperid: 1.2.0+ thingies: 1.21.0([email protected])+ tslib: 2.8.1++ '@jsonjoy.com/[email protected]([email protected])':+ dependencies:+ tslib: 2.8.1+'@jspreadsheet/[email protected]': {}'@keyv/[email protected]':@@ -10773,6 +11210,88 @@ snapshots:prettier: 3.5.3rxjs: 6.6.7+ '@rollup/[email protected]':+ dependencies:+ '@types/estree': 1.0.8++ dependencies:+ '@babel/core': 7.28.0([email protected])+ '@babel/helper-module-imports': 7.27.1([email protected])+ '@rollup/pluginutils': 5.1.4([email protected])+ optionalDependencies:+ rollup: 4.44.0+ transitivePeerDependencies:+ - supports-color++ '@rollup/[email protected]([email protected])':+ dependencies:+ '@types/estree': 1.0.8+ estree-walker: 2.0.2+ picomatch: 4.0.2+ optionalDependencies:+ rollup: 4.44.0++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true++ '@rollup/[email protected]':+ optional: true+'@rtsao/[email protected]': {}'@sigstore/[email protected]':@@ -10903,10 +11422,14 @@ snapshots:'@types/[email protected]':dependencies:- '@types/chai': 4.3.20+ '@types/chai': 5.2.2'@types/[email protected]': {}+ '@types/[email protected]':+ dependencies:+ '@types/deep-eql': 4.0.2+'@types/[email protected]':dependencies:'@types/node': 24.0.14@@ -10915,6 +11438,8 @@ snapshots:dependencies:'@types/node': 24.0.14+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/eslint': 9.6.1@@ -11075,6 +11600,48 @@ snapshots:'@uppy/core': 4.2.2'@uppy/utils': 6.0.3+ '@vitest/[email protected]':+ dependencies:+ '@types/chai': 5.2.2+ '@vitest/spy': 3.2.4+ '@vitest/utils': 3.2.4+ chai: 5.2.0+ tinyrainbow: 2.0.0++ dependencies:+ '@vitest/spy': 3.2.4+ estree-walker: 3.0.3+ magic-string: 0.30.17+ optionalDependencies:+ vite: 7.0.0(@types/[email protected])([email protected])++ '@vitest/[email protected]':+ dependencies:+ tinyrainbow: 2.0.0++ '@vitest/[email protected]':+ dependencies:+ '@vitest/utils': 3.2.4+ pathe: 2.0.3+ strip-literal: 3.0.0++ '@vitest/[email protected]':+ dependencies:+ '@vitest/pretty-format': 3.2.4+ magic-string: 0.30.17+ pathe: 2.0.3++ '@vitest/[email protected]':+ dependencies:+ tinyspy: 4.0.3++ '@vitest/[email protected]':+ dependencies:+ '@vitest/pretty-format': 3.2.4+ loupe: 3.1.4+ tinyrainbow: 2.0.0+'@volar/[email protected]([email protected])':dependencies:'@volar/language-service': 2.4.0-alpha.16@@ -11218,6 +11785,10 @@ snapshots:+ dependencies:+ event-target-shim: 5.0.1+dependencies:mime-types: 2.1.35@@ -11410,6 +11981,8 @@ snapshots:+ [email protected]: {}+@@ -11554,27 +12127,35 @@ snapshots:reselect: 4.1.8resolve: 1.22.10dependencies:- '@babel/compat-data': 7.27.3+ '@babel/compat-data': 7.28.0'@babel/core': 7.28.0([email protected])- '@babel/helper-define-polyfill-provider': 0.6.3(@babel/[email protected])([email protected])+ '@babel/helper-define-polyfill-provider': 0.6.5(@babel/[email protected])([email protected])semver: 6.3.1transitivePeerDependencies:- supports-color+ [email protected](@babel/[email protected]):+ dependencies:+ '@babel/core': 7.28.0([email protected])+ '@babel/helper-define-polyfill-provider': 0.6.5(@babel/[email protected])([email protected])+ core-js-compat: 3.44.0+ transitivePeerDependencies:+ - supports-color+dependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-define-polyfill-provider': 0.6.3(@babel/[email protected])([email protected])- core-js-compat: 3.40.0+ '@babel/helper-define-polyfill-provider': 0.6.5(@babel/[email protected])([email protected])+ core-js-compat: 3.44.0transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.28.0([email protected])- '@babel/helper-define-polyfill-provider': 0.6.3(@babel/[email protected])([email protected])+ '@babel/helper-define-polyfill-provider': 0.6.5(@babel/[email protected])([email protected])transitivePeerDependencies:- supports-color@@ -11601,14 +12182,14 @@ snapshots:optional: truedependencies:- bare-events: 2.6.0+ bare-events: 2.5.4bare-path: 3.0.0- bare-stream: 2.6.5([email protected])+ bare-stream: 2.6.5([email protected])optional: true@@ -11619,11 +12200,11 @@ snapshots:bare-os: 3.6.1optional: truedependencies:streamx: 2.22.1optionalDependencies:- bare-events: 2.6.0+ bare-events: 2.5.4optional: true@@ -12145,6 +12726,8 @@ snapshots:+ [email protected]: {}+dependencies:'@npmcli/fs': 3.1.1@@ -12223,6 +12806,14 @@ snapshots:dependencies:lodash: 4.17.21+ dependencies:+ assertion-error: 2.0.1+ check-error: 2.1.1+ deep-eql: 5.0.2+ loupe: 3.1.4+ pathval: 2.0.0+dependencies:ansi-styles: 3.2.1@@ -12248,6 +12839,8 @@ snapshots:dependencies:chart.js: 3.5.1+ [email protected]: {}+@@ -12273,7 +12866,7 @@ snapshots:dependencies:devtools-protocol: 0.0.1464554mitt: 3.0.1- zod: 3.25.76+ zod: 3.25.75@@ -12497,7 +13090,7 @@ snapshots:dependencies:browserslist: 4.25.1@@ -12644,6 +13237,8 @@ snapshots:transitivePeerDependencies:- '@babel/core'+ [email protected]: {}+@@ -12770,8 +13365,8 @@ snapshots:'@babel/plugin-proposal-class-properties': 7.18.6(@babel/[email protected])'@babel/plugin-proposal-decorators': 7.28.0(@babel/[email protected])'@babel/plugin-proposal-private-methods': 7.18.6(@babel/[email protected])- '@babel/plugin-transform-class-static-block': 7.26.0(@babel/[email protected])([email protected])- '@babel/preset-env': 7.26.9(@babel/[email protected])([email protected])+ '@babel/plugin-transform-class-static-block': 7.27.1(@babel/[email protected])([email protected])+ '@babel/preset-env': 7.28.0(@babel/[email protected])([email protected])'@embroider/macros': 1.16.12(@glint/[email protected])'@embroider/shared-internals': 2.9.0([email protected])babel-loader: 8.4.1(@babel/[email protected])([email protected](@swc/[email protected])([email protected]))@@ -12857,11 +13452,11 @@ snapshots:'@babel/plugin-proposal-decorators': 7.28.0(@babel/[email protected])'@babel/plugin-proposal-private-methods': 7.18.6(@babel/[email protected])'@babel/plugin-proposal-private-property-in-object': 7.21.11(@babel/[email protected])- '@babel/plugin-transform-modules-amd': 7.25.9(@babel/[email protected])([email protected])+ '@babel/plugin-transform-modules-amd': 7.27.1(@babel/[email protected])([email protected])'@babel/plugin-transform-runtime': 7.26.10(@babel/[email protected])'@babel/plugin-transform-typescript': 7.27.1(@babel/[email protected])'@babel/polyfill': 7.12.1- '@babel/preset-env': 7.26.9(@babel/[email protected])([email protected])+ '@babel/preset-env': 7.28.0(@babel/[email protected])([email protected])'@babel/runtime': 7.12.18amd-name-resolver: 1.3.1babel-plugin-debug-macros: 0.3.4(patch_hash=wki6cycbrrm5sscamn5w4cujby)(@babel/[email protected])@@ -12892,11 +13487,11 @@ snapshots:'@babel/plugin-proposal-decorators': 7.28.0(@babel/[email protected])'@babel/plugin-proposal-private-methods': 7.18.6(@babel/[email protected])'@babel/plugin-proposal-private-property-in-object': 7.21.11(@babel/[email protected])- '@babel/plugin-transform-class-static-block': 7.26.0(@babel/[email protected])([email protected])- '@babel/plugin-transform-modules-amd': 7.25.9(@babel/[email protected])([email protected])+ '@babel/plugin-transform-class-static-block': 7.27.1(@babel/[email protected])([email protected])+ '@babel/plugin-transform-modules-amd': 7.27.1(@babel/[email protected])([email protected])'@babel/plugin-transform-runtime': 7.26.10(@babel/[email protected])'@babel/plugin-transform-typescript': 7.27.1(@babel/[email protected])- '@babel/preset-env': 7.26.9(@babel/[email protected])([email protected])+ '@babel/preset-env': 7.28.0(@babel/[email protected])([email protected])'@babel/runtime': 7.12.18amd-name-resolver: 1.3.1babel-plugin-debug-macros: 0.3.4(patch_hash=wki6cycbrrm5sscamn5w4cujby)(@babel/[email protected])@@ -13475,7 +14070,7 @@ snapshots:ember-source: 5.12.0(patch_hash=pqnuctuxbp6ekxyjszyhrgmysm)(@glimmer/[email protected](@babel/[email protected]))(@glint/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))lodash: 4.17.21winston: 3.14.2- zod: 3.25.76+ zod: 3.25.75transitivePeerDependencies:- supports-color@@ -13525,7 +14120,7 @@ snapshots:- supports-color- utf-8-validatedependencies:graceful-fs: 4.2.11tapable: 2.2.2@@ -13867,6 +14462,12 @@ snapshots:+ [email protected]: {}++ dependencies:+ '@types/estree': 1.0.8+@@ -13875,6 +14476,8 @@ snapshots:dependencies:individual: 3.0.0+ [email protected]: {}+@@ -13959,6 +14562,8 @@ snapshots:dependencies:homedir-polyfill: 1.0.3+ [email protected]: {}+@@ -14456,6 +15061,9 @@ snapshots:optional: true+ optional: true+@@ -14642,8 +15250,6 @@ snapshots:min-document: 2.19.0process: 0.11.10- [email protected]: {}-@@ -14850,6 +15456,8 @@ snapshots:+ [email protected]: {}+dependencies:safer-buffer: 2.1.2@@ -15243,6 +15851,8 @@ snapshots:+ [email protected]: {}+dependencies:argparse: 1.0.10@@ -15605,6 +16215,8 @@ snapshots:safe-stable-stringify: 2.5.0triple-beam: 1.4.1+ [email protected]: {}+dependencies:tslib: 2.8.1@@ -15621,6 +16233,10 @@ snapshots:dependencies:sourcemap-codec: 1.4.8+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.4+@@ -15726,6 +16342,13 @@ snapshots:mimic-fn: 2.1.0p-is-promise: 2.1.0+ dependencies:+ '@jsonjoy.com/json-pack': 1.2.0([email protected])+ '@jsonjoy.com/util': 1.6.0([email protected])+ tree-dump: 1.0.3([email protected])+ tslib: 2.8.1+dependencies:readable-stream: 1.0.34@@ -16420,6 +17043,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -16809,6 +17436,14 @@ snapshots:string_decoder: 1.3.0util-deprecate: 1.0.2+ dependencies:+ abort-controller: 3.0.0+ buffer: 6.0.3+ events: 3.3.0+ process: 0.11.10+ string_decoder: 1.3.0+dependencies:ast-types: 0.13.3@@ -16839,10 +17474,6 @@ snapshots:- dependencies:- '@babel/runtime': 7.27.6-dependencies:extend-shallow: 3.0.2@@ -16982,6 +17613,32 @@ snapshots:dependencies:glob: 10.4.5+ dependencies:+ '@types/estree': 1.0.8+ optionalDependencies:+ '@rollup/rollup-android-arm-eabi': 4.44.0+ '@rollup/rollup-android-arm64': 4.44.0+ '@rollup/rollup-darwin-arm64': 4.44.0+ '@rollup/rollup-darwin-x64': 4.44.0+ '@rollup/rollup-freebsd-arm64': 4.44.0+ '@rollup/rollup-freebsd-x64': 4.44.0+ '@rollup/rollup-linux-arm-gnueabihf': 4.44.0+ '@rollup/rollup-linux-arm-musleabihf': 4.44.0+ '@rollup/rollup-linux-arm64-gnu': 4.44.0+ '@rollup/rollup-linux-arm64-musl': 4.44.0+ '@rollup/rollup-linux-loongarch64-gnu': 4.44.0+ '@rollup/rollup-linux-powerpc64le-gnu': 4.44.0+ '@rollup/rollup-linux-riscv64-gnu': 4.44.0+ '@rollup/rollup-linux-riscv64-musl': 4.44.0+ '@rollup/rollup-linux-s390x-gnu': 4.44.0+ '@rollup/rollup-linux-x64-gnu': 4.44.0+ '@rollup/rollup-linux-x64-musl': 4.44.0+ '@rollup/rollup-win32-arm64-msvc': 4.44.0+ '@rollup/rollup-win32-ia32-msvc': 4.44.0+ '@rollup/rollup-win32-x64-msvc': 4.44.0+ fsevents: 2.3.3+@@ -17253,6 +17910,8 @@ snapshots:side-channel-map: 1.0.1side-channel-weakmap: 1.0.2+ [email protected]: {}+@@ -17475,6 +18134,8 @@ snapshots:+ [email protected]: {}+dependencies:debug: 4.4.1([email protected])@@ -17490,6 +18151,8 @@ snapshots:+ [email protected]: {}+dependencies:es-errors: 1.3.0@@ -17502,7 +18165,7 @@ snapshots:fast-fifo: 1.3.2text-decoder: 1.2.3optionalDependencies:- bare-events: 2.6.0+ bare-events: 2.5.4@@ -17602,6 +18265,10 @@ snapshots:+ dependencies:+ js-tokens: 9.0.1+@@ -17902,6 +18569,10 @@ snapshots:+ dependencies:+ tslib: 2.8.1+dependencies:json-parse-better-errors: 1.0.2@@ -17944,11 +18615,21 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}++ [email protected]: {}+dependencies:fdir: 6.4.6([email protected])picomatch: 4.0.2+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+@@ -18008,6 +18689,10 @@ snapshots:dependencies:punycode: 2.3.1+ dependencies:+ tslib: 2.8.1+@@ -18258,6 +18943,82 @@ snapshots:x-is-array: 0.1.0x-is-string: 0.1.0+ dependencies:+ cac: 6.7.14+ debug: 4.4.1([email protected])+ es-module-lexer: 1.7.0+ pathe: 2.0.3+ vite: 7.0.0(@types/[email protected])([email protected])+ transitivePeerDependencies:+ - '@types/node'+ - jiti+ - less+ - lightningcss+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - supports-color+ - terser+ - tsx+ - yaml++ dependencies:+ esbuild: 0.25.8+ fdir: 6.4.6([email protected])+ picomatch: 4.0.2+ postcss: 8.5.6+ rollup: 4.44.0+ tinyglobby: 0.2.14+ optionalDependencies:+ '@types/node': 24.0.14+ fsevents: 2.3.3+ terser: 5.43.1++ dependencies:+ '@types/chai': 5.2.2+ '@vitest/expect': 3.2.4+ '@vitest/pretty-format': 3.2.4+ '@vitest/runner': 3.2.4+ '@vitest/snapshot': 3.2.4+ '@vitest/spy': 3.2.4+ '@vitest/utils': 3.2.4+ chai: 5.2.0+ debug: 4.4.1([email protected])+ expect-type: 1.2.1+ magic-string: 0.30.17+ pathe: 2.0.3+ picomatch: 4.0.2+ std-env: 3.9.0+ tinybench: 2.9.0+ tinyexec: 0.3.2+ tinyglobby: 0.2.14+ tinypool: 1.1.1+ tinyrainbow: 2.0.0+ vite: 7.0.0(@types/[email protected])([email protected])+ vite-node: 3.2.4(@types/[email protected])([email protected])+ why-is-node-running: 2.3.0+ optionalDependencies:+ '@types/node': 24.0.14+ jsdom: 25.0.1([email protected])+ transitivePeerDependencies:+ - jiti+ - less+ - lightningcss+ - msw+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - supports-color+ - terser+ - tsx+ - yaml+[email protected](@volar/[email protected]):dependencies:path-browserify: 1.0.1@@ -18340,7 +19101,7 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:glob-to-regexp: 0.4.1graceful-fs: 4.2.11@@ -18376,7 +19137,7 @@ snapshots:acorn-import-phases: 1.0.4([email protected])browserslist: 4.25.1chrome-trace-event: 1.0.4- enhanced-resolve: 5.18.2+ enhanced-resolve: 5.18.1es-module-lexer: 1.7.0eslint-scope: 5.1.1events: 3.3.0@@ -18389,7 +19150,7 @@ snapshots:schema-utils: 4.3.2tapable: 2.2.2terser-webpack-plugin: 5.3.14(@swc/[email protected])([email protected])([email protected](@swc/[email protected])([email protected]))- watchpack: 2.4.4+ watchpack: 2.4.3webpack-sources: 3.3.3transitivePeerDependencies:- '@swc/core'@@ -18473,6 +19234,11 @@ snapshots:dependencies:isexe: 3.1.1+ dependencies:+ siginfo: 2.0.0+ stackback: 0.0.2+dependencies:string-width: 4.2.3@@ -18606,4 +19372,4 @@ snapshots:- [email protected]: {}+ [email protected]: {}diff --git a/spec/lib/discourse_js_processor_spec.rb b/spec/lib/discourse_js_processor_spec.rbindex 2d85f6dc7a2..5ddf02c7152 100644--- a/spec/lib/discourse_js_processor_spec.rb+++ b/spec/lib/discourse_js_processor_spec.rb@@ -191,4 +191,215 @@ RSpec.describe DiscourseJsProcessor doexpect(map["sourcesContent"]).to contain_exactly(*sources.values)endend++ describe "Transpiler#rollup" do+ it "can rollup code" do+ sources = { "discourse/initializers/hello.gjs" => <<~JS }+ someDecorator = () => {}+ export default class MyClass {+ @someDecorator+ myMethod() {+ console.log("hello world");+ }+ <template>+ <div>template content</div>+ </template>+ }+ JS++ result = DiscourseJsProcessor::Transpiler.new.rollup(sources, {})++ code = result["code"]+ expect(code).to include('"hello world"')+ expect(code).to include("dt7948") # Decorator transform++ expect(result["map"]).not_to be_nil+ end++ it "supports decorators and class properties without error" do+ script = <<~JS.chomp+ export default class MyClass {+ classProperty = 1;+ #privateProperty = 1;+ #privateMethod() {+ console.log("hello world");+ }+ @decorated+ myMethod(){+ }+ }+ JS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ { "discourse/initializers/foo.js" => script },+ {},+ )+ expect(result["code"]).to include("() => dt7948.n")+ end++ it "supports object literal decorators without errors" do+ script = <<~JS.chomp+ export default {+ @decorated foo: "bar",++ @decorated+ myMethod() {+ console.log("hello world");+ }+ }+ JS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ { "discourse/initializers/foo.js" => script },+ {},+ )+ expect(result["code"]).to include("dt7948")+ end++ it "can use themePrefix in a template" do+ script = <<~JS.chomp+ themePrefix();+ export default class Foo {+ <template>{{themePrefix "bar"}}</template>+ }+ JS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ { "discourse/initializers/foo.gjs" => script },+ { themeId: 22 },+ )+ expect(result["code"]).to include(+ 'window.moduleBroker.lookup("discourse/lib/theme-settings-store")',+ )+ end++ it "can use themePrefix not in a template" do+ script = <<~JS.chomp+ export default function foo() {+ return themePrefix("bar");+ }+ JS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ { "discourse/initializers/foo.js" => script },+ { themeId: 22 },+ )+ expect(result["code"]).to include(+ 'window.moduleBroker.lookup("discourse/lib/theme-settings-store")',+ )+ end+ end++ it "can compile hbs" do+ template = <<~HBS.chomp+ {{log "hello world"}}+ HBS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ { "discourse/connectors/outlet-name/foo.hbs" => template },+ { themeId: 22 },+ )+ expect(result["code"]).to include("createTemplateFactory")+ end++ it "handles colocation" do+ js = <<~JS.chomp+ import Component from "@glimmer/component";+ export default class MyComponent extends Component {}+ JS++ template = <<~HBS.chomp+ {{log "hello world"}}+ HBS++ onlyTemplate = <<~HBS.chomp+ {{log "hello galaxy"}}+ HBS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ {+ "discourse/components/foo.js" => js,+ "discourse/components/foo.hbs" => template,+ "discourse/components/bar.hbs" => onlyTemplate,+ },+ { themeId: 22 },+ )++ expect(result["code"]).to include("setComponentTemplate")+ expect(result["code"]).to include(+ "bar = setComponentTemplate(__COLOCATED_TEMPLATE__, templateOnly());",+ )+ end++ it "handles relative imports from one module to another" do+ mod_1 = <<~JS.chomp+ export default "test";+ JS++ mod_2 = <<~JS.chomp+ import MyComponent from "../components/my-component";+ console.log(MyComponent);+ JS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ {+ "discourse/components/my-component.js" => mod_1,+ "discourse/components/other-component.js" => mod_2,+ },+ { themeId: 22 },+ )++ expect(result["code"]).not_to include("../components/my-component")+ end++ it "handles relative import of index file" do+ mod_1 = <<~JS.chomp+ import MyComponent from "./other-component";+ console.log(MyComponent);+ JS++ mod_2 = <<~JS.chomp+ export default "test";+ JS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ {+ "discourse/components/my-component.js" => mod_1,+ "discourse/components/other-component/index.js" => mod_2,+ },+ { themeId: 22 },+ )++ expect(result["code"]).not_to include("../components/my-component")+ end++ it "handles relative import of gjs index file" do+ mod_1 = <<~JS.chomp+ import MyComponent from "./other-component";+ console.log(MyComponent);+ JS++ mod_2 = <<~JS.chomp+ export default "test";+ JS++ result =+ DiscourseJsProcessor::Transpiler.new.rollup(+ {+ "discourse/components/my-component.gjs" => mod_1,+ "discourse/components/other-component/index.gjs" => mod_2,+ },+ { themeId: 22 },+ )++ expect(result["code"]).not_to include("../components/my-component")+ endenddiff --git a/spec/lib/discourse_spec.rb b/spec/lib/discourse_spec.rbindex 23646754122..60412180487 100644--- a/spec/lib/discourse_spec.rb+++ b/spec/lib/discourse_spec.rb@@ -633,14 +633,17 @@ RSpec.describe Discourse dohead_tag_script =Nokogiri::HTML5.fragment(Theme.lookup_field(theme.id, :desktop, "head_tag"))- .css("script")+ .css("link[rel=modulepreload]").first- head_tag_js = JavascriptCache.find_by(digest: head_tag_script[:src][/\h{40}/]).content+ head_tag_js = JavascriptCache.find_by(digest: head_tag_script[:href][/\h{40}/]).contentexpect(head_tag_js).to include(old_upload_url)js_file_script =- Nokogiri::HTML5.fragment(Theme.lookup_field(theme.id, :extra_js, nil)).css("script").first- file_js = JavascriptCache.find_by(digest: js_file_script[:src][/\h{40}/]).content+ Nokogiri::HTML5+ .fragment(Theme.lookup_field(theme.id, :extra_js, nil))+ .css("link[rel=modulepreload]")+ .first+ file_js = JavascriptCache.find_by(digest: js_file_script[:href][/\h{40}/]).contentexpect(file_js).to include(old_upload_url)css_link_tag =@@ -659,14 +662,17 @@ RSpec.describe Discourse dohead_tag_script =Nokogiri::HTML5.fragment(Theme.lookup_field(theme.id, :desktop, "head_tag"))- .css("script")+ .css("link[rel=modulepreload]").first- head_tag_js = JavascriptCache.find_by(digest: head_tag_script[:src][/\h{40}/]).content+ head_tag_js = JavascriptCache.find_by(digest: head_tag_script[:href][/\h{40}/]).contentexpect(head_tag_js).to include(old_upload_url)js_file_script =- Nokogiri::HTML5.fragment(Theme.lookup_field(theme.id, :extra_js, nil)).css("script").first- file_js = JavascriptCache.find_by(digest: js_file_script[:src][/\h{40}/]).content+ Nokogiri::HTML5+ .fragment(Theme.lookup_field(theme.id, :extra_js, nil))+ .css("link[rel=modulepreload]")+ .first+ file_js = JavascriptCache.find_by(digest: js_file_script[:href][/\h{40}/]).contentexpect(file_js).to include(old_upload_url)css_link_tag =@@ -684,14 +690,17 @@ RSpec.describe Discourse dohead_tag_script =Nokogiri::HTML5.fragment(Theme.lookup_field(theme.id, :desktop, "head_tag"))- .css("script")+ .css("link[rel=modulepreload]").first- head_tag_js = JavascriptCache.find_by(digest: head_tag_script[:src][/\h{40}/]).content+ head_tag_js = JavascriptCache.find_by(digest: head_tag_script[:href][/\h{40}/]).contentexpect(head_tag_js).to include(new_upload_url)js_file_script =- Nokogiri::HTML5.fragment(Theme.lookup_field(theme.id, :extra_js, nil)).css("script").first- file_js = JavascriptCache.find_by(digest: js_file_script[:src][/\h{40}/]).content+ Nokogiri::HTML5+ .fragment(Theme.lookup_field(theme.id, :extra_js, nil))+ .css("link[rel=modulepreload]")+ .first+ file_js = JavascriptCache.find_by(digest: js_file_script[:href][/\h{40}/]).contentexpect(file_js).to include(new_upload_url)css_link_tag =diff --git a/spec/lib/js_locale_helper_spec.rb b/spec/lib/js_locale_helper_spec.rbindex de446db7614..685d3dabd4a 100644--- a/spec/lib/js_locale_helper_spec.rb+++ b/spec/lib/js_locale_helper_spec.rb@@ -1,7 +1,5 @@# frozen_string_literal: true-require "mini_racer"-RSpec.describe JsLocaleHelper dolet(:v8_ctx) dodiscourse_node_modules = "#{Rails.root}/app/assets/javascripts/discourse/node_modules"diff --git a/spec/lib/theme_javascript_compiler_spec.rb b/spec/lib/theme_javascript_compiler_spec.rbindex 1523628d0a1..83b72c2fffc 100644--- a/spec/lib/theme_javascript_compiler_spec.rb+++ b/spec/lib/theme_javascript_compiler_spec.rb@@ -3,54 +3,92 @@RSpec.describe ThemeJavascriptCompiler dolet(:compiler) { ThemeJavascriptCompiler.new(1, "marks", minify: false) }+ describe "#append_ember_template" do+ it "maintains module names so that discourse-boot.js can correct them" do+ compiler.append_tree({ "connectors/blah-1.hbs" => "{{var}}" })+ compiler.append_tree({ "connectors/blah-2.hbs" => "{{var}}" })+ compiler.append_tree({ "javascripts/connectors/blah-3.hbs" => "{{var}}" })++ expect(compiler.content.to_s).to include(+ "themeCompatModules[\"templates/connectors/blah-1\"]",+ )+ expect(compiler.content.to_s).to include(+ "themeCompatModules[\"templates/connectors/blah-2\"]",+ )+ expect(compiler.content.to_s).to include(+ "themeCompatModules[\"javascripts/templates/connectors/blah-3\"]",+ )+ end+ end+describe "connector module name handling" doit "separates colocated connectors to avoid module name clash" do# Colocated under `/connectors`- compiler = ThemeJavascriptCompiler.new(1, "marks")+ compiler = ThemeJavascriptCompiler.new(1, "marks", minify: false)compiler.append_tree({"connectors/outlet/blah-1.hbs" => "{{var}}",- "connectors/outlet/blah-1.js" => "console.log('test')",+ "connectors/outlet/blah-1.js" => "export default {};",},)- expect(compiler.content).to include("discourse/theme-1/connectors/outlet/blah-1")- expect(compiler.content).to include("discourse/theme-1/templates/connectors/outlet/blah-1")- expect(JSON.parse(compiler.source_map)["sources"]).to contain_exactly(- "connectors/outlet/blah-1.js",- "templates/connectors/outlet/blah-1.js",- "settings.js",+ expect(compiler.content.to_s).to include(+ 'themeCompatModules["connectors/outlet/blah-1"]',+ ).once+ expect(compiler.content.to_s).to include("templates/connectors/outlet/blah-1")+ expect(compiler.content.to_s).not_to include("setComponentTemplate")+ expect(JSON.parse(compiler.source_map)["sources"]).to include(+ "theme-1/connectors/outlet/blah-1.js",)# Colocated under `/templates/connectors`- compiler = ThemeJavascriptCompiler.new(1, "marks")+ compiler = ThemeJavascriptCompiler.new(1, "marks", minify: false)compiler.append_tree({"templates/connectors/outlet/blah-1.hbs" => "{{var}}",- "templates/connectors/outlet/blah-1.js" => "console.log('test')",+ "templates/connectors/outlet/blah-1.js" => "export default {};",},)- expect(compiler.content).to include("discourse/theme-1/connectors/outlet/blah-1")- expect(compiler.content).to include("discourse/theme-1/templates/connectors/outlet/blah-1")- expect(JSON.parse(compiler.source_map)["sources"]).to contain_exactly(- "connectors/outlet/blah-1.js",- "templates/connectors/outlet/blah-1.js",- "settings.js",+ expect(compiler.content.to_s).to include(+ 'themeCompatModules["connectors/outlet/blah-1"]',+ ).once+ expect(compiler.content.to_s).to include("templates/connectors/outlet/blah-1")+ expect(compiler.content.to_s).not_to include("setComponentTemplate")+ expect(JSON.parse(compiler.source_map)["sources"]).to include(+ "theme-1/templates/connectors/outlet/blah-1.js",)# Not colocated- compiler = ThemeJavascriptCompiler.new(1, "marks")+ compiler = ThemeJavascriptCompiler.new(1, "marks", minify: false)compiler.append_tree({"templates/connectors/outlet/blah-1.hbs" => "{{var}}",- "connectors/outlet/blah-1.js" => "console.log('test')",+ "connectors/outlet/blah-1.js" => "export default {};",},)- expect(compiler.content).to include("discourse/theme-1/connectors/outlet/blah-1")- expect(compiler.content).to include("discourse/theme-1/templates/connectors/outlet/blah-1")- expect(JSON.parse(compiler.source_map)["sources"]).to contain_exactly(- "connectors/outlet/blah-1.js",- "templates/connectors/outlet/blah-1.js",- "settings.js",+ expect(compiler.content.to_s).to include(+ 'themeCompatModules["connectors/outlet/blah-1"]',+ ).once+ expect(compiler.content.to_s).to include("templates/connectors/outlet/blah-1")+ expect(compiler.content.to_s).not_to include("setComponentTemplate")+ expect(JSON.parse(compiler.source_map)["sources"]).to include(+ "theme-1/connectors/outlet/blah-1.js",+ )++ # colocation in discourse directory+ compiler = ThemeJavascriptCompiler.new(1, "marks", minify: false)+ compiler.append_tree(+ {+ "discourse/connectors/outlet/blah-1.hbs" => "{{var}}",+ "discourse/connectors/outlet/blah-1.js" => "export default {};",+ },+ )+ expect(compiler.content.to_s).to include(+ 'themeCompatModules["discourse/connectors/outlet/blah-1"]',+ ).once+ expect(compiler.content.to_s).to include("discourse/templates/connectors/outlet/blah-1")+ expect(compiler.content.to_s).not_to include("setComponentTemplate")+ expect(JSON.parse(compiler.source_map)["sources"]).to include(+ "theme-1/discourse/connectors/outlet/blah-1.js",)endend@@ -58,7 +96,7 @@ RSpec.describe ThemeJavascriptCompiler dodescribe "error handling" doit "handles syntax errors in ember templates" docompiler.append_tree({ "sometemplate.hbs" => "{{invalidtemplate" })- expect(compiler.content).to include('console.error("[THEME 1')+ expect(compiler.content).to include("Parse error on line 1")endend@@ -66,6 +104,16 @@ RSpec.describe ThemeJavascriptCompiler doit "can handle multiple modules" docompiler.append_tree({+ "discourse/initializers/my-initializer.js" => <<~JS,+ import MyComponent from "../components/mycomponent";++ export default {+ name: "my-initializer",+ initialize() {+ console.log("my-initializer", MyComponent);+ },+ };+ JS"discourse/components/mycomponent.js" => <<~JS,import Component from "@glimmer/component";export default class MyComponent extends Component {}@@ -73,11 +121,9 @@ RSpec.describe ThemeJavascriptCompiler do"discourse/templates/components/mycomponent.hbs" => "{{my-component-template}}",},)+ expect(compiler.content).to include('themeCompatModules["discourse/components/mycomponent"]')expect(compiler.content).to include(- 'define("discourse/theme-1/discourse/components/mycomponent"',- )- expect(compiler.content).to include(- 'define("discourse/theme-1/discourse/templates/components/mycomponent"',+ 'themeCompatModules["discourse/templates/components/mycomponent"]',)end@@ -110,28 +156,14 @@ RSpec.describe ThemeJavascriptCompiler doendit "applies theme AST transforms to colocated components" do- compiler = ThemeJavascriptCompiler.new(12_345_678_910, "my theme name")+ compiler = ThemeJavascriptCompiler.new(12_345_678_910, "my theme name", minify: false)compiler.append_tree({ "discourse/components/mycomponent.hbs" => '{{theme-i18n "my_translation_key"}}' },)- template_compiled_line = compiler.content.lines.find { |l| l.include?("block:") }+ template_compiled_line = compiler.content.lines.find { |l| l.include?('"block":') }expect(template_compiled_line).to include("12345678910")end- it "prints error when default export missing" do- compiler.append_tree(- {- "discourse/components/mycomponent.js" => <<~JS,- import Component from "@glimmer/component";- class MyComponent extends Component {}- JS- "discourse/components/mycomponent.hbs" => "{{my-component-template}}",- },- )- expect(compiler.content).to include("__COLOCATED_TEMPLATE__ =")- expect(compiler.content).to include("throw new Error")- end-it "handles template-only components" docompiler.append_tree({ "discourse/components/mycomponent.hbs" => "{{my-component-template}}" },@@ -143,29 +175,33 @@ RSpec.describe ThemeJavascriptCompiler doenddescribe "terser compilation" do- let(:compiler) { ThemeJavascriptCompiler.new(1, "marks", minify: true) }+ let(:compiler) { ThemeJavascriptCompiler.new(1, "marks", {}, minify: true) }it "applies terser and provides sourcemaps" dosources = {- "multiply.js" => "let multiply = (firstValue, secondValue) => firstValue * secondValue;",- "add.js" => "let add = (firstValue, secondValue) => firstValue + secondValue;",+ "multiply.js" =>+ "export const multiply = (firstValue, secondValue) => firstValue * secondValue;",+ "add.js" => "export const add = (firstValue, secondValue) => firstValue + secondValue;",}compiler.append_tree(sources)expect(compiler.content).to include("multiply")expect(compiler.content).to include("add")+ expect(compiler.content).not_to include("firstValue")+ expect(compiler.content).not_to include("secondValue")map = JSON.parse(compiler.source_map)- expect(map["sources"]).to contain_exactly(*sources.keys, "settings.js")- expect(map["sourcesContent"].to_s).to include("let multiply")- expect(map["sourcesContent"].to_s).to include("let add")- expect(map["sourceRoot"]).to eq("theme-1/")+ expect(map["sources"]).to include("theme-1/multiply.js", "theme-1/add.js")+ expect(map["sourcesContent"].to_s).to include("const multiply")+ expect(map["sourcesContent"].to_s).to include("const add")+ expect(map["sourcesContent"].to_s).to include("firstValue")+ expect(map["sourcesContent"].to_s).to include("secondValue")endit "handles invalid JS" docompiler.append_tree({ "filename.js" => "if(someCondition" })- expect(compiler.content).to include("console.error('[THEME 1")+ expect(compiler.content).to include('throw new Error("[THEME 1')expect(compiler.content).to include("Unexpected token")endend@@ -185,7 +221,7 @@ RSpec.describe ThemeJavascriptCompiler do)expect(compiler.content).to include("ember-this-fallback")expect(compiler.content).to include(- "The `value` property path was used in the `discourse/components/my-component.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.value}}",+ "The `value` property path was used in the `theme-1/discourse/components/my-component.hbs` template without using `this`. This fallback behavior has been deprecated, all properties must be looked up on `this` when used in the template: {{this.value}}",)endend@@ -205,7 +241,7 @@ RSpec.describe ThemeJavascriptCompiler doJSexpect(compiler.content).to include(- "define(\"discourse/theme-1/discourse/components/my-component\", [\"exports\",",+ "themeCompatModules[\"discourse/components/my-component\"]",)expect(compiler.content).to include('value = "foo";')expect(compiler.content).to include("setComponentTemplate")diff --git a/spec/models/theme_field_spec.rb b/spec/models/theme_field_spec.rbindex 168949313f3..60c9dadeb0d 100644--- a/spec/models/theme_field_spec.rb+++ b/spec/models/theme_field_spec.rb@@ -62,19 +62,19 @@ RSpec.describe ThemeField doit "extracts inline javascript to an external file" dohtml = <<~HTML<script type="text/discourse-plugin" version="0.8">- var a = "inline discourse plugin";+ console.log("inline discourse plugin");</script><script type="text/template" data-template="custom-template"><div>custom script type</div></script><script>- var b = "inline raw script";+ console.log("inline raw script");</script><script type="texT/jAvasCripT">- var c = "text/javascript";+ console.log("text/javascript");</script><script type="application/javascript">- var d = "application/javascript";+ console.log("application/javascript");</script><script src="/external-script.js"></script>HTML@@ -84,22 +84,26 @@ RSpec.describe ThemeField dobaked_doc = Nokogiri::HTML5.fragment(theme_field.value_baked)- extracted_scripts = baked_doc.css("script[src^='/theme-javascripts/']")- expect(extracted_scripts.length).to eq(4)+ simple_extracted_scripts = baked_doc.css("script[src^='/theme-javascripts/']")+ expect(simple_extracted_scripts.length).to eq(3)++ extracted_module_preloads =+ baked_doc.css("link[rel=modulepreload][href^='/theme-javascripts/']")+ expect(extracted_module_preloads.length).to eq(1)expect(theme_field.javascript_cache.content).to include("inline discourse plugin")raw_js_cache_contents = theme_field.raw_javascript_caches.map(&:content)expect(raw_js_cache_contents).to contain_exactly(- 'var b = "inline raw script";',- 'var c = "text/javascript";',- 'var d = "application/javascript";',+ 'console.log("inline raw script");',+ 'console.log("text/javascript");',+ 'console.log("application/javascript");',)expect(baked_doc.css("script[type='text/template']").length).to eq(1)end- it "correctly extracts and generates errors for transpiled js" do+ it "correctly logs errors for transpiled js" dohtml = <<HTML<script type="text/discourse-plugin" version="0.8">badJavaScript(;@@ -108,15 +112,13 @@ HTMLfield = ThemeField.create!(theme_id: -1, target_id: 0, name: "header", value: html)field.ensure_baked!- expect(field.error).to eq(nil)expect(field.value_baked).to include(- "<script defer=\"\" src=\"#{field.javascript_cache.url}\" data-theme-id=\"-1\" nonce=\"#{ThemeField::CSP_NONCE_PLACEHOLDER}\"></script>",+ "<link rel=\"modulepreload\" href=\"#{field.javascript_cache.url}\" data-theme-id=\"-1\" nonce=\"#{ThemeField::CSP_NONCE_PLACEHOLDER}\">",)expect(field.javascript_cache.content).to include("[THEME -1 'Foundation'] Compile error")field.update!(value: "")field.ensure_baked!- expect(field.error).to eq(nil)endit "correctly extracts and generates errors for raw transpiled js" do@@ -160,13 +162,13 @@ HTMLjavascript_cache = theme_field.javascript_cacheexpect(theme_field.value_baked).to include(- "<script defer=\"\" src=\"#{javascript_cache.url}\" data-theme-id=\"-1\" nonce=\"#{ThemeField::CSP_NONCE_PLACEHOLDER}\"></script>",+ "<link rel=\"modulepreload\" href=\"#{javascript_cache.url}\" data-theme-id=\"-1\" nonce=\"#{ThemeField::CSP_NONCE_PLACEHOLDER}\">",)expect(javascript_cache.content).to include("testing-div")expect(javascript_cache.content).to include("string_setting")expect(javascript_cache.content).to include("test text \\\" 123!")expect(javascript_cache.content).to include(- "define(\"discourse/theme-#{theme_field.theme_id}/discourse/templates/my-template\"",+ 'themeCompatModules["discourse/templates/my-template"]',)end@@ -269,40 +271,33 @@ HTML# All togetherexpect(theme.javascript_cache.content).to include(- "define(\"discourse/theme-#{theme.id}/discourse/templates/discovery\", [\"exports\", ",+ 'themeCompatModules["discourse/templates/discovery"]',)expect(theme.javascript_cache.content).to include(- "define(\"discourse/theme-#{theme.id}/discourse/controllers/discovery\"",+ 'themeCompatModules["discourse/controllers/discovery"]',)expect(theme.javascript_cache.content).to include(- "define(\"discourse/theme-#{theme.id}/discourse/controllers/discovery-2\"",+ 'themeCompatModules["discourse/controllers/discovery-2"]',)- expect(theme.javascript_cache.content).to include("const settings =")+ expect(theme.javascript_cache.content).to include("registerSettings(")expect(theme.javascript_cache.content).to include(- "[THEME #{theme.id} '#{theme.name}'] Compile error: unknown file extension 'blah' (discourse/controllers/discovery.blah)",+ "[THEME #{theme.id}] Unsupported file type: discourse/controllers/discovery.blah",)expect(theme.javascript_cache.content).to include(- "[THEME #{theme.id} '#{theme.name}'] Compile error: unknown file extension 'hbr' (discourse/templates/other_discovery.hbr)",+ "[THEME #{theme.id}] Unsupported file type: discourse/templates/other_discovery.hbr",)- # Check sourcemap- expect(theme.javascript_cache.source_map).to eq(nil)- ThemeJavascriptCompiler.enable_terser!- js_field.update(compiler_version: "0")- theme.save!-expect(theme.javascript_cache.source_map).not_to eq(nil)map = JSON.parse(theme.javascript_cache.source_map)expect(map["sources"]).to contain_exactly(- "discourse/controllers/discovery-2.js",- "discourse/controllers/discovery.blah",- "discourse/controllers/discovery.js",- "discourse/templates/discovery.js",- "discourse/templates/other_discovery.hbr",- "settings.js",+ "theme-#{theme.id}/discourse/controllers/discovery-2.js",+ "theme-#{theme.id}/discourse/controllers/discovery.js",+ "theme-#{theme.id}/discourse/templates/discovery.hbs",+ "theme-#{theme.id}/virtual:main",+ "theme-#{theme.id}/virtual:theme",+ "theme-#{theme.id}/virtual:init-settings",)- expect(map["sourceRoot"]).to eq("theme-#{theme.id}/")expect(map["sourcesContent"].length).to eq(6)end@@ -690,7 +685,7 @@ HTMLit "injects into JS" dohtml = <<~HTML<script type="text/discourse-plugin" version="0.8">- var a = "inline discourse plugin";+ console.log("inline discourse plugin", themePrefix("foo"));</script>HTML@@ -795,6 +790,7 @@ HTMLafter { upload_file.unlink }it "correctly handles local JS asset caching" do+ # todo - make this a system specupload =UploadCreator.new(upload_file, "test.js", for_theme: true).create_for(Discourse::SYSTEM_USER_ID,@@ -831,30 +827,19 @@ HTMLtheme.reload.javascript_cache.content,common_field.reload.javascript_cache.content,].each do |js|- js_to_eval = <<~JS- var settings;- var window = {};- var require = function(name) {- if(name == "discourse/lib/theme-settings-store") {- return({- registerSettings: function(id, s) {- settings = s;- }- });+ expected_local_js_cache_url = js_field.javascript_cache.local_url+ expect(expected_local_js_cache_url).to start_with("/theme-javascripts/")+ expect(js).to include(<<~JS)+ registerSettings(#{theme.id}, {+ "hello": "world",+ "theme_uploads": {+ "test_js": "#{js_field.upload.url}"+ },+ "theme_uploads_local": {+ "test_js": "#{js_field.javascript_cache.local_url}"}- }- window.require = require;- #{js}- settings+ });JS-- ctx = MiniRacer::Context.new- val = ctx.eval(js_to_eval)- ctx.dispose-- expect(val["theme_uploads"]["test_js"]).to eq(js_field.upload.url)- expect(val["theme_uploads_local"]["test_js"]).to eq(js_field.javascript_cache.local_url)- expect(val["theme_uploads_local"]["test_js"]).to start_with("/theme-javascripts/")end# this is important, we do not want local_js_urls to leak into scssdiff --git a/spec/models/theme_spec.rb b/spec/models/theme_spec.rbindex a45dee0c66c..65e375205ec 100644--- a/spec/models/theme_spec.rb+++ b/spec/models/theme_spec.rb@@ -246,24 +246,22 @@ HTMLhtml = <<HTML<script type='text/discourse-plugin' version='0.1'>const x = 1;+ console.log(x, settings.foo);</script>HTMLbaked, javascript_cache, field = transpile(html)expect(baked).to include(javascript_cache.url)- expect(javascript_cache.content).to include("if ('define' in window) {")expect(javascript_cache.content).to include(- "define(\"discourse/theme-#{field.theme_id}/discourse/initializers/theme-field-#{field.id}-mobile-html-script-1\"",- )- expect(javascript_cache.content).to include(- "settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(#{field.theme_id});",+ "themeCompatModules[\"discourse/initializers/theme-field-#{field.id}-mobile-html-script-1\"]",)+ expect(javascript_cache.content).to include("getObjectForTheme(#{field.theme_id});")expect(javascript_cache.content).to include("name: \"theme-field-#{field.id}-mobile-html-script-1\",",)expect(javascript_cache.content).to include("after: \"inject-objects\",")- expect(javascript_cache.content).to include("(0, _pluginApi.withPluginApi)(\"0.1\", api =>")+ expect(javascript_cache.content).to include("withPluginApi(\"0.1\", api =>")expect(javascript_cache.content).to include("const x = 1;")endend@@ -392,7 +390,7 @@ HTMLtarget: :common,name: :after_header,value:- '<script type="text/discourse-plugin" version="1.0">alert(settings.name); let a = ()=>{};</script>',+ '<script type="text/discourse-plugin" version="1.0">alert(settings.name); let a = ()=>{}; console.log(a);</script>',)theme.save!@@ -400,21 +398,19 @@ HTMLexpect(Theme.lookup_field(theme.id, :desktop, :after_header)).to include(theme_field.javascript_cache.url,)- expect(theme_field.javascript_cache.content).to include("if ('require' in window) {")- expect(theme_field.javascript_cache.content).to include(- "require(\"discourse/lib/theme-settings-store\").registerSettings(#{theme_field.theme.id}, {\"name\":\"bob\"});",- )- expect(theme_field.javascript_cache.content).to include("if ('define' in window) {")+ expect(theme_field.javascript_cache.content).to include <<~JS+ registerSettings(#{theme_field.theme.id}, {+ "name": "bob"+ });+ JSexpect(theme_field.javascript_cache.content).to include(- "define(\"discourse/theme-#{theme_field.theme.id}/discourse/initializers/theme-field-#{theme_field.id}-common-html-script-1\",",+ "themeCompatModules[\"discourse/initializers/theme-field-#{theme_field.id}-common-html-script-1\"]",)expect(theme_field.javascript_cache.content).to include("name: \"theme-field-#{theme_field.id}-common-html-script-1\",",)expect(theme_field.javascript_cache.content).to include("after: \"inject-objects\",")- expect(theme_field.javascript_cache.content).to include(- "(0, _pluginApi.withPluginApi)(\"1.0\", api =>",- )+ expect(theme_field.javascript_cache.content).to include("withPluginApi(\"1.0\", api =>")expect(theme_field.javascript_cache.content).to include("alert(settings.name)")expect(theme_field.javascript_cache.content).to include("let a = () => {}")@@ -423,9 +419,11 @@ HTMLtheme.save!theme_field.reload- expect(theme_field.javascript_cache.content).to include(- "require(\"discourse/lib/theme-settings-store\").registerSettings(#{theme_field.theme.id}, {\"name\":\"bill\"});",- )+ expect(theme_field.javascript_cache.content).to include <<~JS+ registerSettings(#{theme_field.theme.id}, {+ "name": "bill"+ });+ JSexpect(Theme.lookup_field(theme.id, :desktop, :after_header)).to include(theme_field.javascript_cache.url,)@@ -844,7 +842,8 @@ HTMLtheme.set_field(target: :common,name: :after_header,- value: '<script>console.log("hello world");</script>',+ value:+ '<script type="text/discourse-plugin" version="0.1">console.log("hello world");</script>',)theme.save!@@ -990,21 +989,6 @@ HTMLexpect(content).to include("function migrate(settings)")end-- it "digest does not change when settings are changed" do- content, digest = theme.baked_js_tests_with_digest- expect(content).to be_present- expect(digest).to be_present- expect(content).to include("assert.ok(true);")-- theme.update_setting(:some_number, 55)- theme.save!- expect(theme.build_settings_hash[:some_number]).to eq(55)-- new_content, new_digest = theme.baked_js_tests_with_digest- expect(new_content).to eq(content)- expect(new_digest).to eq(digest)- endenddescribe "get_setting" do@@ -1143,7 +1127,7 @@ HTMLtheme.set_field(target: :extra_js, name: "test.js.es6", value: "const hello = 'world';")theme.save!- expect(theme.javascript_cache.content).to include('"list_setting":"aa,bb"')+ expect(theme.javascript_cache.content).to include('"list_setting": "aa,bb"')settings_field.update!(value: <<~YAML)integer_setting: 1@@ -1166,7 +1150,7 @@ HTMLexpect(setting_record.data_type).to eq(ThemeSetting.types[:list])expect(setting_record.value).to eq("zz|aa")- expect(theme.javascript_cache.content).to include('"list_setting":"zz|aa"')+ expect(theme.javascript_cache.content).to include('"list_setting": "zz|aa"')endit "allows changing a setting's type" dodiff --git a/spec/requests/theme_javascripts_controller_spec.rb b/spec/requests/theme_javascripts_controller_spec.rbindex 35a14a6e1b6..578d65775db 100644--- a/spec/requests/theme_javascripts_controller_spec.rb+++ b/spec/requests/theme_javascripts_controller_spec.rb@@ -142,9 +142,11 @@ RSpec.describe ThemeJavascriptsController do_, digest = component.baked_js_tests_with_digestget "/theme-javascripts/tests/#{component.id}-#{digest}.js"- expect(response.body).to include(- "require(\"discourse/lib/theme-settings-store\").registerSettings(#{component.id}, {\"num_setting\":5});",- )+ expect(response.body).to include <<~JS+ registerSettings(#{component.id}, {+ "num_setting": 5+ });+ JSexpect(response.body).to include("assert.ok(true);")end@@ -167,12 +169,17 @@ RSpec.describe ThemeJavascriptsController docomponent.theme_fields.find_by(upload_id: js_upload.id).javascript_cache.digestget "/theme-javascripts/tests/#{component.id}-#{digest}.js"- expect(response.body).to include(- "require(\"discourse/lib/theme-settings-store\").registerSettings(" +- "#{component.id}, {\"num_setting\":5,\"theme_uploads\":{\"vendorlib\":" +- "\"/uploads/default/test_#{ENV["TEST_ENV_NUMBER"].presence || "0"}/original/1X/#{js_upload.sha1}.js\"},\"theme_uploads_local\":{\"vendorlib\":" +- "\"/theme-javascripts/#{theme_javascript_hash}.js?__ws=test.localhost\"}});",- )+ expect(response.body).to include <<~JS+ registerSettings(#{component.id}, {+ "num_setting": 5,+ "theme_uploads": {+ "vendorlib": "/uploads/default/test_#{ENV["TEST_ENV_NUMBER"].presence || "0"}/original/1X/#{js_upload.sha1}.js"+ },+ "theme_uploads_local": {+ "vendorlib": "/theme-javascripts/#{theme_javascript_hash}.js?__ws=test.localhost"+ }+ });+ JSexpect(response.body).to include("assert.ok(true);")ensurejs_file&.close