@luzmo/embed 9.1.0 → 10.1.0-es2021

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/MIGRATIONS.md +6 -0
  3. package/index.cjs +76 -45
  4. package/index.dashboard-analyst.cjs +9874 -0
  5. package/index.dashboard-analyst.js +9866 -0
  6. package/index.dashboard-next.cjs +6635 -0
  7. package/index.dashboard-next.js +6622 -0
  8. package/index.js +74 -45
  9. package/index.rn.cjs +21 -2
  10. package/index.rn.js +20 -2
  11. package/index.shared.cjs +21 -2
  12. package/index.shared.js +20 -2
  13. package/luzmo-dashboard-analyst.min.js +176206 -0
  14. package/luzmo-dashboard-next.min.js +159871 -0
  15. package/luzmo-embed.min.js +200 -171
  16. package/package.json +27 -3
  17. package/src/index.common.d.ts +1 -0
  18. package/src/index.d.ts +6 -0
  19. package/src/index.dashboard-analyst.d.ts +4 -0
  20. package/src/index.dashboard-next.d.ts +1 -0
  21. package/src/index.internal.d.ts +3 -0
  22. package/src/lib/dashboard/dashboard-base.d.ts +1 -1
  23. package/src/lib/dashboard-next/agent/dashboard-agent-controller.d.ts +28 -0
  24. package/src/lib/dashboard-next/agent/dashboard-agent-feedback-api.d.ts +6 -0
  25. package/src/lib/dashboard-next/agent/dashboard-agent-feedback-controller.d.ts +20 -0
  26. package/src/lib/dashboard-next/agent/dashboard-agent-history-api.d.ts +17 -0
  27. package/src/lib/dashboard-next/agent/dashboard-agent-history-controller.d.ts +40 -0
  28. package/src/lib/dashboard-next/agent/dashboard-agent-history.d.ts +11 -0
  29. package/src/lib/dashboard-next/agent/dashboard-agent-history.styles.d.ts +1 -0
  30. package/src/lib/dashboard-next/agent/dashboard-agent-panel.d.ts +10 -0
  31. package/src/lib/dashboard-next/agent/dashboard-agent-panel.styles.d.ts +1 -0
  32. package/src/lib/dashboard-next/dashboard-analyst-component.d.ts +36 -0
  33. package/src/lib/dashboard-next/dashboard-analyst-component.styles.d.ts +1 -0
  34. package/src/lib/dashboard-next/dashboard-configured-element.d.ts +31 -0
  35. package/src/lib/dashboard-next/dashboard-next-component.d.ts +86 -0
  36. package/src/lib/dashboard-next/dashboard-next-component.styles.d.ts +1 -0
  37. package/src/lib/dashboard-next/data/dashboard-api.d.ts +9 -0
  38. package/src/lib/dashboard-next/data/dashboard-custom-charts.d.ts +18 -0
  39. package/src/lib/dashboard-next/data/dashboard-errors.d.ts +5 -0
  40. package/src/lib/dashboard-next/data/dashboard-loading-controller.d.ts +21 -0
  41. package/src/lib/dashboard-next/data/dashboard-metadata-controller.d.ts +25 -0
  42. package/src/lib/dashboard-next/data/dashboard-permissions-api.d.ts +14 -0
  43. package/src/lib/dashboard-next/data/dashboard-renderer-controller.d.ts +30 -0
  44. package/src/lib/dashboard-next/data/dashboard-variant-management-controller.d.ts +30 -0
  45. package/src/lib/dashboard-next/data/dashboard-variants-api.d.ts +30 -0
  46. package/src/lib/dashboard-next/data/dashboard-variants-controller.d.ts +38 -0
  47. package/src/lib/dashboard-next/data/load-dashboard-definition.d.ts +21 -0
  48. package/src/lib/dashboard-next/data/load-dashboard-layout.d.ts +4 -0
  49. package/src/lib/dashboard-next/grid/dashboard-grid-layout-controller.d.ts +23 -0
  50. package/src/lib/dashboard-next/grid/dashboard-layout-skeleton.d.ts +2 -0
  51. package/src/lib/dashboard-next/grid/dashboard-layout-skeleton.styles.d.ts +1 -0
  52. package/src/lib/dashboard-next/grid/dashboard-next-grid.d.ts +62 -0
  53. package/src/lib/dashboard-next/grid/dashboard-next-grid.styles.d.ts +1 -0
  54. package/src/lib/dashboard-next/grid/dashboard-next-viz-item.d.ts +26 -0
  55. package/src/lib/dashboard-next/grid/dashboard-skeleton-motion-controller.d.ts +15 -0
  56. package/src/lib/dashboard-next/grid/render-dashboard-chart.d.ts +22 -0
  57. package/src/lib/dashboard-next/localization/dashboard-next-translations.d.ts +134 -0
  58. package/src/lib/dashboard-next/localization/format-dashboard-relative-date.d.ts +1 -0
  59. package/src/lib/dashboard-next/localization/resolve-dashboard-next-translations.d.ts +6 -0
  60. package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-config.d.ts +20 -0
  61. package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings-controller.d.ts +45 -0
  62. package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings.d.ts +14 -0
  63. package/src/lib/dashboard-next/settings/appearance/dashboard-appearance-settings.styles.d.ts +1 -0
  64. package/src/lib/dashboard-next/settings/appearance/dashboard-chart-type-conversion.d.ts +11 -0
  65. package/src/lib/dashboard-next/settings/dashboard-chart-settings-context.d.ts +30 -0
  66. package/src/lib/dashboard-next/settings/dashboard-chart-settings-context.styles.d.ts +1 -0
  67. package/src/lib/dashboard-next/settings/dashboard-editor-controller.d.ts +32 -0
  68. package/src/lib/dashboard-next/settings/dashboard-settings-content.d.ts +7 -0
  69. package/src/lib/dashboard-next/settings/dashboard-settings-controller.d.ts +54 -0
  70. package/src/lib/dashboard-next/settings/dashboard-settings-popover.d.ts +17 -0
  71. package/src/lib/dashboard-next/settings/dashboard-settings-popover.styles.d.ts +1 -0
  72. package/src/lib/dashboard-next/settings/dashboard-settings-positioning.d.ts +1 -0
  73. package/src/lib/dashboard-next/settings/dashboard-settings.test-utils.d.ts +19 -0
  74. package/src/lib/dashboard-next/settings/data/dashboard-data-metadata.d.ts +11 -0
  75. package/src/lib/dashboard-next/settings/data/dashboard-data-settings-controller.d.ts +42 -0
  76. package/src/lib/dashboard-next/settings/data/dashboard-data-settings.d.ts +20 -0
  77. package/src/lib/dashboard-next/settings/data/dashboard-data-settings.styles.d.ts +1 -0
  78. package/src/lib/dashboard-next/settings/data/dashboard-data-slots.d.ts +3 -0
  79. package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings-controller.d.ts +19 -0
  80. package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings.d.ts +9 -0
  81. package/src/lib/dashboard-next/settings/filters/dashboard-filter-settings.styles.d.ts +1 -0
  82. package/src/lib/dashboard-next/state/config/dashboard-chart-catalog.d.ts +11 -0
  83. package/src/lib/dashboard-next/state/config/dashboard-chart-names-controller.d.ts +9 -0
  84. package/src/lib/dashboard-next/state/config/dashboard-chart-types.d.ts +47 -0
  85. package/src/lib/dashboard-next/state/config/dashboard-config-store.d.ts +33 -0
  86. package/src/lib/dashboard-next/state/content/dashboard-agent-draft.d.ts +28 -0
  87. package/src/lib/dashboard-next/state/content/dashboard-content-controller.d.ts +57 -0
  88. package/src/lib/dashboard-next/state/content/dashboard-content-selectors.d.ts +7 -0
  89. package/src/lib/dashboard-next/state/content/dashboard-content-state.d.ts +61 -0
  90. package/src/lib/dashboard-next/state/content/dashboard-content-store.d.ts +22 -0
  91. package/src/lib/dashboard-next/state/content/dashboard-option-changes.d.ts +9 -0
  92. package/src/lib/dashboard-next/state/dashboard-analyst-stores.d.ts +40 -0
  93. package/src/lib/dashboard-next/state/dashboard-stores.d.ts +13 -0
  94. package/src/lib/dashboard-next/state/dashboard-workspace.d.ts +33 -0
  95. package/src/lib/dashboard-next/state/runtime/dashboard-agent-history-state.d.ts +21 -0
  96. package/src/lib/dashboard-next/state/runtime/dashboard-analyst-runtime-store.d.ts +43 -0
  97. package/src/lib/dashboard-next/state/runtime/dashboard-editor-state.d.ts +38 -0
  98. package/src/lib/dashboard-next/state/runtime/dashboard-runtime-state.d.ts +47 -0
  99. package/src/lib/dashboard-next/state/runtime/dashboard-runtime-store.d.ts +22 -0
  100. package/src/lib/dashboard-next/state/runtime/dashboard-variants-state.d.ts +31 -0
  101. package/src/lib/dashboard-next/toolbar/dashboard-add-chart-controller.d.ts +20 -0
  102. package/src/lib/dashboard-next/toolbar/dashboard-add-chart-menu.d.ts +19 -0
  103. package/src/lib/dashboard-next/toolbar/dashboard-navigation-controller.d.ts +32 -0
  104. package/src/lib/dashboard-next/toolbar/dashboard-next-toolbar.d.ts +35 -0
  105. package/src/lib/dashboard-next/toolbar/dashboard-next-toolbar.styles.d.ts +1 -0
  106. package/src/lib/dashboard-next/toolbar/dashboard-picker.d.ts +36 -0
  107. package/src/lib/dashboard-next/toolbar/dashboard-picker.styles.d.ts +1 -0
  108. package/src/lib/dashboard-next/toolbar/dashboard-preview-thumbnail.d.ts +2 -0
  109. package/src/lib/dashboard-next/toolbar/dashboard-question-dashboards.d.ts +7 -0
  110. package/src/lib/dashboard-next/toolbar/dashboard-question-mode.styles.d.ts +1 -0
  111. package/src/lib/dashboard-next/toolbar/dashboard-variant-delete.d.ts +15 -0
  112. package/src/lib/dashboard-next/toolbar/dashboard-variant-delete.styles.d.ts +1 -0
  113. package/src/lib/dashboard-next/toolbar/dashboard-variant-rename-controller.d.ts +18 -0
  114. package/src/lib/dashboard-next/views/dashboard-view-controller.d.ts +13 -0
  115. package/src/lib/dashboard-next/views/dashboard-view-layout.d.ts +12 -0
  116. package/src/lib/dashboard-next/views/dashboard-views.d.ts +48 -0
  117. package/src/lib/iq-components/luzmo-iq-answer.d.ts +1 -1
  118. package/src/lib/iq-components/luzmo-iq-chat.d.ts +1 -1
  119. package/src/lib/shared/helpers/normalize-viz-item-slots.d.ts +2 -0
  120. package/src/lib/shared/models/dashboard-definition.model.d.ts +34 -0
  121. package/src/lib/shared/models/events.model.d.ts +9 -8
  122. package/src/lib/shared/models/index.d.ts +2 -0
  123. package/src/lib/shared/models/viz-item-service-port.model.d.ts +24 -0
  124. package/src/lib/viz-item/viz-item.base.d.ts +4 -4
@@ -29,6 +29,7 @@ var __decorateClass = (decorators, target, key, kind) => {
29
29
  // libs/embed-libs/embed/src/index.ts
30
30
  var index_exports = {};
31
31
  __export(index_exports, {
32
+ DEFAULT_CHART_TYPES: () => defaultChartTypes,
32
33
  LuzmoEmbedDashboard: () => LuzmoEmbedDashboard,
33
34
  LuzmoEmbedVizItem: () => LuzmoEmbedVizItem,
34
35
  LuzmoIQEmbedAnswerComponent: () => LuzmoIQEmbedAnswerComponent,
@@ -39,6 +40,7 @@ __export(index_exports, {
39
40
  getCachedJSONSchemas: () => getCachedJSONSchemas,
40
41
  getJSONSchemaUrl: () => getJSONSchemaUrl,
41
42
  luzmoRefParserOptions: () => luzmoRefParserOptions,
43
+ normalizeVizItemSlots: () => normalizeVizItemSlots,
42
44
  preloadDashboard: () => preloadDashboard,
43
45
  preloadIQ: () => preloadIQ,
44
46
  preloadVizItem: () => preloadVizItem,
@@ -332,6 +334,23 @@ var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, fu
332
334
  return v2.toString(16);
333
335
  });
334
336
 
337
+ // libs/embed-libs/embed/src/lib/shared/helpers/normalize-viz-item-slots.ts
338
+ function normalizeVizItemSlots(slots) {
339
+ return slots.map((slot) => ({
340
+ ...slot,
341
+ content: slot.content.map((content) => ({
342
+ ...content,
343
+ ...content.columnId === void 0 ? {} : { column: content.columnId },
344
+ ...content.datasetId === void 0 ? {} : { set: content.datasetId },
345
+ ...content.aggregationWeight ? { aggregationWeight: {
346
+ ...content.aggregationWeight,
347
+ set: content.aggregationWeight.datasetId ?? content.aggregationWeight.set,
348
+ column: content.aggregationWeight.columnId ?? content.aggregationWeight.column
349
+ } } : {}
350
+ }))
351
+ }));
352
+ }
353
+
335
354
  // libs/embed-libs/embed/src/lib/shared/helpers/iframe-url.ts
336
355
  var createIframeUrl = (dashboardContent) => {
337
356
  const searchString = [];
@@ -1334,6 +1353,7 @@ var libraryTypeToWebComponentTypeMapping = {
1334
1353
  slots: "slots",
1335
1354
  inlineData: "inline-data",
1336
1355
  options: "options",
1356
+ definition: "definition",
1337
1357
  appServer: "app-server",
1338
1358
  apiHost: "api-host",
1339
1359
  authKey: "auth-key",
@@ -1343,7 +1363,6 @@ var libraryTypeToWebComponentTypeMapping = {
1343
1363
  filters: "filters",
1344
1364
  dashboardId: "dashboard-id",
1345
1365
  screenMode: "screen-mode",
1346
- querySource: "query-source",
1347
1366
  itemId: "item-id",
1348
1367
  aiMessageAssetId: "ai-message-asset-id",
1349
1368
  dashboardContentsVersion: "dashboard-contents-version",
@@ -1431,7 +1450,7 @@ var warn = (msg) => {
1431
1450
  function safeToString(info) {
1432
1451
  try {
1433
1452
  return JSON.stringify(info, null, 2);
1434
- } catch (e7) {
1453
+ } catch (e8) {
1435
1454
  return "";
1436
1455
  }
1437
1456
  }
@@ -1649,8 +1668,8 @@ var infrastructureLogger = createInfrastructureLogger(PREFIX);
1649
1668
  async function safeWrapper(callback, disableWarn) {
1650
1669
  try {
1651
1670
  return await callback();
1652
- } catch (e7) {
1653
- !disableWarn && warn(e7);
1671
+ } catch (e8) {
1672
+ !disableWarn && warn(e8);
1654
1673
  return;
1655
1674
  }
1656
1675
  }
@@ -1879,9 +1898,9 @@ var createScriptNode = typeof ENV_TARGET === "undefined" || ENV_TARGET !== "web"
1879
1898
  let urlObj;
1880
1899
  try {
1881
1900
  urlObj = new URL(url);
1882
- } catch (e7) {
1883
- console.error("Error constructing URL:", e7);
1884
- cb(/* @__PURE__ */ new Error(`Invalid URL: ${e7}`));
1901
+ } catch (e8) {
1902
+ console.error("Error constructing URL:", e8);
1903
+ cb(/* @__PURE__ */ new Error(`Invalid URL: ${e8}`));
1885
1904
  return;
1886
1905
  }
1887
1906
  const getFetch = async () => {
@@ -1913,8 +1932,8 @@ var createScriptNode = typeof ENV_TARGET === "undefined" || ENV_TARGET !== "web"
1913
1932
  return;
1914
1933
  }
1915
1934
  cb(void 0, exportedInterface);
1916
- } catch (e7) {
1917
- cb(e7 instanceof Error ? e7 : /* @__PURE__ */ new Error(`Script execution error: ${e7}`));
1935
+ } catch (e8) {
1936
+ cb(e8 instanceof Error ? e8 : /* @__PURE__ */ new Error(`Script execution error: ${e8}`));
1918
1937
  }
1919
1938
  };
1920
1939
  getFetch().then(async (f3) => {
@@ -1924,8 +1943,8 @@ var createScriptNode = typeof ENV_TARGET === "undefined" || ENV_TARGET !== "web"
1924
1943
  }).then(async (module2) => {
1925
1944
  await module2.evaluate();
1926
1945
  cb(void 0, module2.namespace);
1927
- }).catch((e7) => {
1928
- cb(e7 instanceof Error ? e7 : /* @__PURE__ */ new Error(`Script execution error: ${e7}`));
1946
+ }).catch((e8) => {
1947
+ cb(e8 instanceof Error ? e8 : /* @__PURE__ */ new Error(`Script execution error: ${e8}`));
1929
1948
  });
1930
1949
  handleScriptFetch(f3, urlObj);
1931
1950
  }).catch((err) => {
@@ -2493,8 +2512,8 @@ function satisfy(version2, range) {
2493
2512
  }
2494
2513
  }
2495
2514
  if (subRangeSatisfied) return true;
2496
- } catch (e7) {
2497
- console.error(`[semver] Error processing range part "${trimmedOrRange}":`, e7);
2515
+ } catch (e8) {
2516
+ console.error(`[semver] Error processing range part "${trimmedOrRange}":`, e8);
2498
2517
  continue;
2499
2518
  }
2500
2519
  }
@@ -2608,7 +2627,7 @@ var isMatchUsedExports = (treeShaking, usedExports) => {
2608
2627
  if (!treeShaking || !usedExports) return false;
2609
2628
  const { usedExports: treeShakingUsedExports } = treeShaking;
2610
2629
  if (!treeShakingUsedExports) return false;
2611
- if (usedExports.every((e7) => treeShakingUsedExports.includes(e7))) return true;
2630
+ if (usedExports.every((e8) => treeShakingUsedExports.includes(e8))) return true;
2612
2631
  return false;
2613
2632
  };
2614
2633
  function findSingletonVersionOrderByVersion(shareScopeMap, scope, pkgName, treeShaking) {
@@ -2911,8 +2930,8 @@ async function loadEsmEntry({ entry, remoteEntryExports, name, getEntryUrl }) {
2911
2930
  url
2912
2931
  ).then(resolve).catch(rejectEntry);
2913
2932
  else resolve(remoteEntryExports);
2914
- } catch (e7) {
2915
- error2(`Failed to load ESM entry from "${url}". ${e7 instanceof Error ? e7.message : String(e7)}`);
2933
+ } catch (e8) {
2934
+ error2(`Failed to load ESM entry from "${url}". ${e8 instanceof Error ? e8.message : String(e8)}`);
2916
2935
  }
2917
2936
  });
2918
2937
  }
@@ -2922,8 +2941,8 @@ async function loadSystemJsEntry({ entry, remoteEntryExports }) {
2922
2941
  if (!remoteEntryExports) if (typeof __system_context__ === "undefined") System.import(entry).then(resolve).catch(reject);
2923
2942
  else new Function("callbacks", `System.import("${entry}")${importCallback}`)([resolve, reject]);
2924
2943
  else resolve(remoteEntryExports);
2925
- } catch (e7) {
2926
- error2(`Failed to load SystemJS entry from "${entry}". ${e7 instanceof Error ? e7.message : String(e7)}`);
2944
+ } catch (e8) {
2945
+ error2(`Failed to load SystemJS entry from "${entry}". ${e8 instanceof Error ? e8.message : String(e8)}`);
2927
2946
  }
2928
2947
  });
2929
2948
  }
@@ -3013,8 +3032,8 @@ async function loadEntryNode({ remoteInfo, loaderHook, resourceContext }) {
3013
3032
  } }
3014
3033
  }).then(() => {
3015
3034
  return handleRemoteEntryLoaded(name, globalName, entry);
3016
- }).catch((e7) => {
3017
- error2(`Failed to load Node.js entry for remote "${name}" from "${entry}". ${e7 instanceof Error ? e7.message : String(e7)}`);
3035
+ }).catch((e8) => {
3036
+ error2(`Failed to load Node.js entry for remote "${name}" from "${entry}". ${e8 instanceof Error ? e8.message : String(e8)}`);
3018
3037
  });
3019
3038
  }
3020
3039
  function getRemoteEntryUniqueKey(remoteInfo) {
@@ -3794,9 +3813,9 @@ var SyncWaterfallHook = class extends SyncHook {
3794
3813
  this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);
3795
3814
  break;
3796
3815
  }
3797
- } catch (e7) {
3798
- warn$1(e7);
3799
- this.onerror(e7);
3816
+ } catch (e8) {
3817
+ warn$1(e8);
3818
+ this.onerror(e8);
3800
3819
  }
3801
3820
  return data;
3802
3821
  }
@@ -3814,9 +3833,9 @@ var AsyncWaterfallHook = class extends SyncHook {
3814
3833
  const ls = Array.from(this.listeners);
3815
3834
  if (ls.length > 0) {
3816
3835
  let i7 = 0;
3817
- const processError = (e7) => {
3818
- warn$1(e7);
3819
- this.onerror(e7);
3836
+ const processError = (e8) => {
3837
+ warn$1(e8);
3838
+ this.onerror(e8);
3820
3839
  return data;
3821
3840
  };
3822
3841
  const call = (prevData) => {
@@ -3827,8 +3846,8 @@ var AsyncWaterfallHook = class extends SyncHook {
3827
3846
  }
3828
3847
  if (i7 < ls.length) try {
3829
3848
  return Promise.resolve(ls[i7++](data)).then(call, processError);
3830
- } catch (e7) {
3831
- return processError(e7);
3849
+ } catch (e8) {
3850
+ return processError(e8);
3832
3851
  }
3833
3852
  return data;
3834
3853
  };
@@ -5506,22 +5525,30 @@ function preloadIQ(appServer = "https://app.luzmo.com") {
5506
5525
  });
5507
5526
  }
5508
5527
 
5528
+ // libs/embed-libs/embed/src/lib/dashboard-next/state/config/dashboard-chart-types.ts
5529
+ var dashboardChartTypeGroups = [
5530
+ { group: "charts", types: ["bar-chart", "column-chart", "line-chart", "area-chart", "combination-chart", "scatter-plot", "donut-chart", "treemap-chart"] },
5531
+ { group: "numbers-tables", types: ["kpi", "conditional-number", "regular-table", "pivot-table"] },
5532
+ { group: "filters", types: ["date-filter", "date-comparison-filter", "dropdown-filter", "slicer-filter", "search-filter", "slider-filter"] }
5533
+ ];
5534
+ var defaultChartTypes = Object.freeze(dashboardChartTypeGroups.flatMap(({ types }) => types));
5535
+
5509
5536
  // node_modules/@lit/reactive-element/css-tag.js
5510
5537
  var t = globalThis;
5511
5538
  var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
5512
5539
  var s = /* @__PURE__ */ Symbol();
5513
5540
  var o = /* @__PURE__ */ new WeakMap();
5514
5541
  var n = class {
5515
- constructor(t4, e7, o7) {
5542
+ constructor(t4, e8, o7) {
5516
5543
  if (this._$cssResult$ = true, o7 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
5517
- this.cssText = t4, this.t = e7;
5544
+ this.cssText = t4, this.t = e8;
5518
5545
  }
5519
5546
  get styleSheet() {
5520
5547
  let t4 = this.o;
5521
5548
  const s4 = this.t;
5522
5549
  if (e && void 0 === t4) {
5523
- const e7 = void 0 !== s4 && 1 === s4.length;
5524
- e7 && (t4 = o.get(s4)), void 0 === t4 && ((this.o = t4 = new CSSStyleSheet()).replaceSync(this.cssText), e7 && o.set(s4, t4));
5550
+ const e8 = void 0 !== s4 && 1 === s4.length;
5551
+ e8 && (t4 = o.get(s4)), void 0 === t4 && ((this.o = t4 = new CSSStyleSheet()).replaceSync(this.cssText), e8 && o.set(s4, t4));
5525
5552
  }
5526
5553
  return t4;
5527
5554
  }
@@ -5530,8 +5557,8 @@ var n = class {
5530
5557
  }
5531
5558
  };
5532
5559
  var r = (t4) => new n("string" == typeof t4 ? t4 : t4 + "", void 0, s);
5533
- var i = (t4, ...e7) => {
5534
- const o7 = 1 === t4.length ? t4[0] : e7.reduce((e8, s4, o8) => e8 + ((t5) => {
5560
+ var i = (t4, ...e8) => {
5561
+ const o7 = 1 === t4.length ? t4[0] : e8.reduce((e9, s4, o8) => e9 + ((t5) => {
5535
5562
  if (true === t5._$cssResult$) return t5.cssText;
5536
5563
  if ("number" == typeof t5) return t5;
5537
5564
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t5 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
@@ -5540,15 +5567,15 @@ var i = (t4, ...e7) => {
5540
5567
  };
5541
5568
  var S = (s4, o7) => {
5542
5569
  if (e) s4.adoptedStyleSheets = o7.map((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet);
5543
- else for (const e7 of o7) {
5570
+ else for (const e8 of o7) {
5544
5571
  const o8 = document.createElement("style"), n6 = t.litNonce;
5545
- void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e7.cssText, s4.appendChild(o8);
5572
+ void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e8.cssText, s4.appendChild(o8);
5546
5573
  }
5547
5574
  };
5548
5575
  var c = e ? (t4) => t4 : (t4) => t4 instanceof CSSStyleSheet ? ((t5) => {
5549
- let e7 = "";
5550
- for (const s4 of t5.cssRules) e7 += s4.cssText;
5551
- return r(e7);
5576
+ let e8 = "";
5577
+ for (const s4 of t5.cssRules) e8 += s4.cssText;
5578
+ return r(e8);
5552
5579
  })(t4) : t4;
5553
5580
 
5554
5581
  // node_modules/@lit/reactive-element/reactive-element.js
@@ -5604,13 +5631,13 @@ var y = class extends HTMLElement {
5604
5631
  }
5605
5632
  }
5606
5633
  static getPropertyDescriptor(t4, s4, i7) {
5607
- const { get: e7, set: r6 } = h(this.prototype, t4) ?? { get() {
5634
+ const { get: e8, set: r6 } = h(this.prototype, t4) ?? { get() {
5608
5635
  return this[s4];
5609
5636
  }, set(t5) {
5610
5637
  this[s4] = t5;
5611
5638
  } };
5612
- return { get: e7, set(s5) {
5613
- const h3 = e7?.call(this);
5639
+ return { get: e8, set(s5) {
5640
+ const h3 = e8?.call(this);
5614
5641
  r6?.call(this, s5), this.requestUpdate(t4, h3, i7);
5615
5642
  }, configurable: true, enumerable: true };
5616
5643
  }
@@ -5643,8 +5670,8 @@ var y = class extends HTMLElement {
5643
5670
  static finalizeStyles(s4) {
5644
5671
  const i7 = [];
5645
5672
  if (Array.isArray(s4)) {
5646
- const e7 = new Set(s4.flat(1 / 0).reverse());
5647
- for (const s5 of e7) i7.unshift(c(s5));
5673
+ const e8 = new Set(s4.flat(1 / 0).reverse());
5674
+ for (const s5 of e8) i7.unshift(c(s5));
5648
5675
  } else void 0 !== s4 && i7.push(c(s4));
5649
5676
  return i7;
5650
5677
  }
@@ -5685,31 +5712,31 @@ var y = class extends HTMLElement {
5685
5712
  this._$AK(t4, i7);
5686
5713
  }
5687
5714
  _$ET(t4, s4) {
5688
- const i7 = this.constructor.elementProperties.get(t4), e7 = this.constructor._$Eu(t4, i7);
5689
- if (void 0 !== e7 && true === i7.reflect) {
5715
+ const i7 = this.constructor.elementProperties.get(t4), e8 = this.constructor._$Eu(t4, i7);
5716
+ if (void 0 !== e8 && true === i7.reflect) {
5690
5717
  const h3 = (void 0 !== i7.converter?.toAttribute ? i7.converter : u).toAttribute(s4, i7.type);
5691
- this._$Em = t4, null == h3 ? this.removeAttribute(e7) : this.setAttribute(e7, h3), this._$Em = null;
5718
+ this._$Em = t4, null == h3 ? this.removeAttribute(e8) : this.setAttribute(e8, h3), this._$Em = null;
5692
5719
  }
5693
5720
  }
5694
5721
  _$AK(t4, s4) {
5695
- const i7 = this.constructor, e7 = i7._$Eh.get(t4);
5696
- if (void 0 !== e7 && this._$Em !== e7) {
5697
- const t5 = i7.getPropertyOptions(e7), h3 = "function" == typeof t5.converter ? { fromAttribute: t5.converter } : void 0 !== t5.converter?.fromAttribute ? t5.converter : u;
5698
- this._$Em = e7;
5722
+ const i7 = this.constructor, e8 = i7._$Eh.get(t4);
5723
+ if (void 0 !== e8 && this._$Em !== e8) {
5724
+ const t5 = i7.getPropertyOptions(e8), h3 = "function" == typeof t5.converter ? { fromAttribute: t5.converter } : void 0 !== t5.converter?.fromAttribute ? t5.converter : u;
5725
+ this._$Em = e8;
5699
5726
  const r6 = h3.fromAttribute(s4, t5.type);
5700
- this[e7] = r6 ?? this._$Ej?.get(e7) ?? r6, this._$Em = null;
5727
+ this[e8] = r6 ?? this._$Ej?.get(e8) ?? r6, this._$Em = null;
5701
5728
  }
5702
5729
  }
5703
- requestUpdate(t4, s4, i7, e7 = false, h3) {
5730
+ requestUpdate(t4, s4, i7, e8 = false, h3) {
5704
5731
  if (void 0 !== t4) {
5705
5732
  const r6 = this.constructor;
5706
- if (false === e7 && (h3 = this[t4]), i7 ??= r6.getPropertyOptions(t4), !((i7.hasChanged ?? f)(h3, s4) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t4) && !this.hasAttribute(r6._$Eu(t4, i7)))) return;
5733
+ if (false === e8 && (h3 = this[t4]), i7 ??= r6.getPropertyOptions(t4), !((i7.hasChanged ?? f)(h3, s4) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t4) && !this.hasAttribute(r6._$Eu(t4, i7)))) return;
5707
5734
  this.C(t4, s4, i7);
5708
5735
  }
5709
5736
  false === this.isUpdatePending && (this._$ES = this._$EP());
5710
5737
  }
5711
- C(t4, s4, { useDefault: i7, reflect: e7, wrapped: h3 }, r6) {
5712
- i7 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t4) && (this._$Ej.set(t4, r6 ?? s4 ?? this[t4]), true !== h3 || void 0 !== r6) || (this._$AL.has(t4) || (this.hasUpdated || i7 || (s4 = void 0), this._$AL.set(t4, s4)), true === e7 && this._$Em !== t4 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t4));
5738
+ C(t4, s4, { useDefault: i7, reflect: e8, wrapped: h3 }, r6) {
5739
+ i7 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t4) && (this._$Ej.set(t4, r6 ?? s4 ?? this[t4]), true !== h3 || void 0 !== r6) || (this._$AL.has(t4) || (this.hasUpdated || i7 || (s4 = void 0), this._$AL.set(t4, s4)), true === e8 && this._$Em !== t4 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t4));
5713
5740
  }
5714
5741
  async _$EP() {
5715
5742
  this.isUpdatePending = true;
@@ -5733,8 +5760,8 @@ var y = class extends HTMLElement {
5733
5760
  }
5734
5761
  const t5 = this.constructor.elementProperties;
5735
5762
  if (t5.size > 0) for (const [s5, i7] of t5) {
5736
- const { wrapped: t6 } = i7, e7 = this[s5];
5737
- true !== t6 || this._$AL.has(s5) || void 0 === e7 || this.C(s5, void 0, i7, e7);
5763
+ const { wrapped: t6 } = i7, e8 = this[s5];
5764
+ true !== t6 || this._$AL.has(s5) || void 0 === e8 || this.C(s5, void 0, i7, e8);
5738
5765
  }
5739
5766
  }
5740
5767
  let t4 = false;
@@ -5809,32 +5836,32 @@ function V(t4, i7) {
5809
5836
  return void 0 !== e3 ? e3.createHTML(i7) : i7;
5810
5837
  }
5811
5838
  var N = (t4, i7) => {
5812
- const s4 = t4.length - 1, e7 = [];
5839
+ const s4 = t4.length - 1, e8 = [];
5813
5840
  let n6, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c4 = v;
5814
5841
  for (let i8 = 0; i8 < s4; i8++) {
5815
5842
  const s5 = t4[i8];
5816
5843
  let a3, u3, d3 = -1, f3 = 0;
5817
5844
  for (; f3 < s5.length && (c4.lastIndex = f3, u3 = c4.exec(s5), null !== u3); ) f3 = c4.lastIndex, c4 === v ? "!--" === u3[1] ? c4 = _ : void 0 !== u3[1] ? c4 = m : void 0 !== u3[2] ? (y2.test(u3[2]) && (n6 = RegExp("</" + u3[2], "g")), c4 = p2) : void 0 !== u3[3] && (c4 = p2) : c4 === p2 ? ">" === u3[0] ? (c4 = n6 ?? v, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? p2 : '"' === u3[3] ? $ : g) : c4 === $ || c4 === g ? c4 = p2 : c4 === _ || c4 === m ? c4 = v : (c4 = p2, n6 = void 0);
5818
5845
  const x2 = c4 === p2 && t4[i8 + 1].startsWith("/>") ? " " : "";
5819
- l3 += c4 === v ? s5 + r3 : d3 >= 0 ? (e7.push(a3), s5.slice(0, d3) + h2 + s5.slice(d3) + o3 + x2) : s5 + o3 + (-2 === d3 ? i8 : x2);
5846
+ l3 += c4 === v ? s5 + r3 : d3 >= 0 ? (e8.push(a3), s5.slice(0, d3) + h2 + s5.slice(d3) + o3 + x2) : s5 + o3 + (-2 === d3 ? i8 : x2);
5820
5847
  }
5821
- return [V(t4, l3 + (t4[s4] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), e7];
5848
+ return [V(t4, l3 + (t4[s4] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), e8];
5822
5849
  };
5823
5850
  var S2 = class _S {
5824
- constructor({ strings: t4, _$litType$: i7 }, e7) {
5851
+ constructor({ strings: t4, _$litType$: i7 }, e8) {
5825
5852
  let r6;
5826
5853
  this.parts = [];
5827
5854
  let l3 = 0, a3 = 0;
5828
5855
  const u3 = t4.length - 1, d3 = this.parts, [f3, v2] = N(t4, i7);
5829
- if (this.el = _S.createElement(f3, e7), P.currentNode = this.el.content, 2 === i7 || 3 === i7) {
5856
+ if (this.el = _S.createElement(f3, e8), P.currentNode = this.el.content, 2 === i7 || 3 === i7) {
5830
5857
  const t5 = this.el.content.firstChild;
5831
5858
  t5.replaceWith(...t5.childNodes);
5832
5859
  }
5833
5860
  for (; null !== (r6 = P.nextNode()) && d3.length < u3; ) {
5834
5861
  if (1 === r6.nodeType) {
5835
5862
  if (r6.hasAttributes()) for (const t5 of r6.getAttributeNames()) if (t5.endsWith(h2)) {
5836
- const i8 = v2[a3++], s4 = r6.getAttribute(t5).split(o3), e8 = /([.?@])?(.*)/.exec(i8);
5837
- d3.push({ type: 1, index: l3, name: e8[2], strings: s4, ctor: "." === e8[1] ? I : "?" === e8[1] ? L : "@" === e8[1] ? z : H }), r6.removeAttribute(t5);
5863
+ const i8 = v2[a3++], s4 = r6.getAttribute(t5).split(o3), e9 = /([.?@])?(.*)/.exec(i8);
5864
+ d3.push({ type: 1, index: l3, name: e9[2], strings: s4, ctor: "." === e9[1] ? I : "?" === e9[1] ? L : "@" === e9[1] ? z : H }), r6.removeAttribute(t5);
5838
5865
  } else t5.startsWith(o3) && (d3.push({ type: 6, index: l3 }), r6.removeAttribute(t5));
5839
5866
  if (y2.test(r6.tagName)) {
5840
5867
  const t5 = r6.textContent.split(o3), i8 = t5.length - 1;
@@ -5857,11 +5884,11 @@ var S2 = class _S {
5857
5884
  return s4.innerHTML = t4, s4;
5858
5885
  }
5859
5886
  };
5860
- function M(t4, i7, s4 = t4, e7) {
5887
+ function M(t4, i7, s4 = t4, e8) {
5861
5888
  if (i7 === E) return i7;
5862
- let h3 = void 0 !== e7 ? s4._$Co?.[e7] : s4._$Cl;
5889
+ let h3 = void 0 !== e8 ? s4._$Co?.[e8] : s4._$Cl;
5863
5890
  const o7 = a2(i7) ? void 0 : i7._$litDirective$;
5864
- return h3?.constructor !== o7 && (h3?._$AO?.(false), void 0 === o7 ? h3 = void 0 : (h3 = new o7(t4), h3._$AT(t4, s4, e7)), void 0 !== e7 ? (s4._$Co ??= [])[e7] = h3 : s4._$Cl = h3), void 0 !== h3 && (i7 = M(t4, h3._$AS(t4, i7.values), h3, e7)), i7;
5891
+ return h3?.constructor !== o7 && (h3?._$AO?.(false), void 0 === o7 ? h3 = void 0 : (h3 = new o7(t4), h3._$AT(t4, s4, e8)), void 0 !== e8 ? (s4._$Co ??= [])[e8] = h3 : s4._$Cl = h3), void 0 !== h3 && (i7 = M(t4, h3._$AS(t4, i7.values), h3, e8)), i7;
5865
5892
  }
5866
5893
  var R = class {
5867
5894
  constructor(t4, i7) {
@@ -5874,8 +5901,8 @@ var R = class {
5874
5901
  return this._$AM._$AU;
5875
5902
  }
5876
5903
  u(t4) {
5877
- const { el: { content: i7 }, parts: s4 } = this._$AD, e7 = (t4?.creationScope ?? l2).importNode(i7, true);
5878
- P.currentNode = e7;
5904
+ const { el: { content: i7 }, parts: s4 } = this._$AD, e8 = (t4?.creationScope ?? l2).importNode(i7, true);
5905
+ P.currentNode = e8;
5879
5906
  let h3 = P.nextNode(), o7 = 0, n6 = 0, r6 = s4[0];
5880
5907
  for (; void 0 !== r6; ) {
5881
5908
  if (o7 === r6.index) {
@@ -5884,7 +5911,7 @@ var R = class {
5884
5911
  }
5885
5912
  o7 !== r6?.index && (h3 = P.nextNode(), o7++);
5886
5913
  }
5887
- return P.currentNode = l2, e7;
5914
+ return P.currentNode = l2, e8;
5888
5915
  }
5889
5916
  p(t4) {
5890
5917
  let i7 = 0;
@@ -5895,8 +5922,8 @@ var k = class _k {
5895
5922
  get _$AU() {
5896
5923
  return this._$AM?._$AU ?? this._$Cv;
5897
5924
  }
5898
- constructor(t4, i7, s4, e7) {
5899
- this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t4, this._$AB = i7, this._$AM = s4, this.options = e7, this._$Cv = e7?.isConnected ?? true;
5925
+ constructor(t4, i7, s4, e8) {
5926
+ this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t4, this._$AB = i7, this._$AM = s4, this.options = e8, this._$Cv = e8?.isConnected ?? true;
5900
5927
  }
5901
5928
  get parentNode() {
5902
5929
  let t4 = this._$AA.parentNode;
@@ -5922,10 +5949,10 @@ var k = class _k {
5922
5949
  this._$AH !== A && a2(this._$AH) ? this._$AA.nextSibling.data = t4 : this.T(l2.createTextNode(t4)), this._$AH = t4;
5923
5950
  }
5924
5951
  $(t4) {
5925
- const { values: i7, _$litType$: s4 } = t4, e7 = "number" == typeof s4 ? this._$AC(t4) : (void 0 === s4.el && (s4.el = S2.createElement(V(s4.h, s4.h[0]), this.options)), s4);
5926
- if (this._$AH?._$AD === e7) this._$AH.p(i7);
5952
+ const { values: i7, _$litType$: s4 } = t4, e8 = "number" == typeof s4 ? this._$AC(t4) : (void 0 === s4.el && (s4.el = S2.createElement(V(s4.h, s4.h[0]), this.options)), s4);
5953
+ if (this._$AH?._$AD === e8) this._$AH.p(i7);
5927
5954
  else {
5928
- const t5 = new R(e7, this), s5 = t5.u(this.options);
5955
+ const t5 = new R(e8, this), s5 = t5.u(this.options);
5929
5956
  t5.p(i7), this.T(s5), this._$AH = t5;
5930
5957
  }
5931
5958
  }
@@ -5936,9 +5963,9 @@ var k = class _k {
5936
5963
  k(t4) {
5937
5964
  u2(this._$AH) || (this._$AH = [], this._$AR());
5938
5965
  const i7 = this._$AH;
5939
- let s4, e7 = 0;
5940
- for (const h3 of t4) e7 === i7.length ? i7.push(s4 = new _k(this.O(c3()), this.O(c3()), this, this.options)) : s4 = i7[e7], s4._$AI(h3), e7++;
5941
- e7 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e7), i7.length = e7);
5966
+ let s4, e8 = 0;
5967
+ for (const h3 of t4) e8 === i7.length ? i7.push(s4 = new _k(this.O(c3()), this.O(c3()), this, this.options)) : s4 = i7[e8], s4._$AI(h3), e8++;
5968
+ e8 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e8), i7.length = e8);
5942
5969
  }
5943
5970
  _$AR(t4 = this._$AA.nextSibling, s4) {
5944
5971
  for (this._$AP?.(false, true, s4); t4 !== this._$AB; ) {
@@ -5957,19 +5984,19 @@ var H = class {
5957
5984
  get _$AU() {
5958
5985
  return this._$AM._$AU;
5959
5986
  }
5960
- constructor(t4, i7, s4, e7, h3) {
5961
- this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t4, this.name = i7, this._$AM = e7, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = A;
5987
+ constructor(t4, i7, s4, e8, h3) {
5988
+ this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t4, this.name = i7, this._$AM = e8, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = A;
5962
5989
  }
5963
- _$AI(t4, i7 = this, s4, e7) {
5990
+ _$AI(t4, i7 = this, s4, e8) {
5964
5991
  const h3 = this.strings;
5965
5992
  let o7 = false;
5966
5993
  if (void 0 === h3) t4 = M(this, t4, i7, 0), o7 = !a2(t4) || t4 !== this._$AH && t4 !== E, o7 && (this._$AH = t4);
5967
5994
  else {
5968
- const e8 = t4;
5995
+ const e9 = t4;
5969
5996
  let n6, r6;
5970
- for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++) r6 = M(this, e8[s4 + n6], i7, n6), r6 === E && (r6 = this._$AH[n6]), o7 ||= !a2(r6) || r6 !== this._$AH[n6], r6 === A ? t4 = A : t4 !== A && (t4 += (r6 ?? "") + h3[n6 + 1]), this._$AH[n6] = r6;
5997
+ for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++) r6 = M(this, e9[s4 + n6], i7, n6), r6 === E && (r6 = this._$AH[n6]), o7 ||= !a2(r6) || r6 !== this._$AH[n6], r6 === A ? t4 = A : t4 !== A && (t4 += (r6 ?? "") + h3[n6 + 1]), this._$AH[n6] = r6;
5971
5998
  }
5972
- o7 && !e7 && this.j(t4);
5999
+ o7 && !e8 && this.j(t4);
5973
6000
  }
5974
6001
  j(t4) {
5975
6002
  t4 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t4 ?? "");
@@ -5992,13 +6019,13 @@ var L = class extends H {
5992
6019
  }
5993
6020
  };
5994
6021
  var z = class extends H {
5995
- constructor(t4, i7, s4, e7, h3) {
5996
- super(t4, i7, s4, e7, h3), this.type = 5;
6022
+ constructor(t4, i7, s4, e8, h3) {
6023
+ super(t4, i7, s4, e8, h3), this.type = 5;
5997
6024
  }
5998
6025
  _$AI(t4, i7 = this) {
5999
6026
  if ((t4 = M(this, t4, i7, 0) ?? A) === E) return;
6000
- const s4 = this._$AH, e7 = t4 === A && s4 !== A || t4.capture !== s4.capture || t4.once !== s4.once || t4.passive !== s4.passive, h3 = t4 !== A && (s4 === A || e7);
6001
- e7 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t4), this._$AH = t4;
6027
+ const s4 = this._$AH, e8 = t4 === A && s4 !== A || t4.capture !== s4.capture || t4.once !== s4.once || t4.passive !== s4.passive, h3 = t4 !== A && (s4 === A || e8);
6028
+ e8 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t4), this._$AH = t4;
6002
6029
  }
6003
6030
  handleEvent(t4) {
6004
6031
  "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t4) : this._$AH.handleEvent(t4);
@@ -6018,11 +6045,11 @@ var Z = class {
6018
6045
  var B = t2.litHtmlPolyfillSupport;
6019
6046
  B?.(S2, k), (t2.litHtmlVersions ??= []).push("3.3.2");
6020
6047
  var D = (t4, i7, s4) => {
6021
- const e7 = s4?.renderBefore ?? i7;
6022
- let h3 = e7._$litPart$;
6048
+ const e8 = s4?.renderBefore ?? i7;
6049
+ let h3 = e8._$litPart$;
6023
6050
  if (void 0 === h3) {
6024
6051
  const t5 = s4?.renderBefore ?? null;
6025
- e7._$litPart$ = h3 = new k(i7.insertBefore(c3(), t5), t5, void 0, s4 ?? {});
6052
+ e8._$litPart$ = h3 = new k(i7.insertBefore(c3(), t5), t5, void 0, s4 ?? {});
6026
6053
  }
6027
6054
  return h3._$AI(t4), h3;
6028
6055
  };
@@ -6058,32 +6085,32 @@ o4?.({ LitElement: i4 });
6058
6085
 
6059
6086
  // node_modules/@lit/reactive-element/decorators/property.js
6060
6087
  var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
6061
- var r4 = (t4 = o5, e7, r6) => {
6088
+ var r4 = (t4 = o5, e8, r6) => {
6062
6089
  const { kind: n6, metadata: i7 } = r6;
6063
6090
  let s4 = globalThis.litPropertyMetadata.get(i7);
6064
6091
  if (void 0 === s4 && globalThis.litPropertyMetadata.set(i7, s4 = /* @__PURE__ */ new Map()), "setter" === n6 && ((t4 = Object.create(t4)).wrapped = true), s4.set(r6.name, t4), "accessor" === n6) {
6065
6092
  const { name: o7 } = r6;
6066
6093
  return { set(r7) {
6067
- const n7 = e7.get.call(this);
6068
- e7.set.call(this, r7), this.requestUpdate(o7, n7, t4, true, r7);
6069
- }, init(e8) {
6070
- return void 0 !== e8 && this.C(o7, void 0, t4, e8), e8;
6094
+ const n7 = e8.get.call(this);
6095
+ e8.set.call(this, r7), this.requestUpdate(o7, n7, t4, true, r7);
6096
+ }, init(e9) {
6097
+ return void 0 !== e9 && this.C(o7, void 0, t4, e9), e9;
6071
6098
  } };
6072
6099
  }
6073
6100
  if ("setter" === n6) {
6074
6101
  const { name: o7 } = r6;
6075
6102
  return function(r7) {
6076
6103
  const n7 = this[o7];
6077
- e7.call(this, r7), this.requestUpdate(o7, n7, t4, true, r7);
6104
+ e8.call(this, r7), this.requestUpdate(o7, n7, t4, true, r7);
6078
6105
  };
6079
6106
  }
6080
6107
  throw Error("Unsupported decorator location: " + n6);
6081
6108
  };
6082
6109
  function n4(t4) {
6083
- return (e7, o7) => "object" == typeof o7 ? r4(t4, e7, o7) : ((t5, e8, o8) => {
6084
- const r6 = e8.hasOwnProperty(o8);
6085
- return e8.constructor.createProperty(o8, t5), r6 ? Object.getOwnPropertyDescriptor(e8, o8) : void 0;
6086
- })(t4, e7, o7);
6110
+ return (e8, o7) => "object" == typeof o7 ? r4(t4, e8, o7) : ((t5, e9, o8) => {
6111
+ const r6 = e9.hasOwnProperty(o8);
6112
+ return e9.constructor.createProperty(o8, t5), r6 ? Object.getOwnPropertyDescriptor(e9, o8) : void 0;
6113
+ })(t4, e8, o7);
6087
6114
  }
6088
6115
 
6089
6116
  // node_modules/@lit/reactive-element/decorators/state.js
@@ -6092,23 +6119,23 @@ function r5(r6) {
6092
6119
  }
6093
6120
 
6094
6121
  // node_modules/@lit/reactive-element/decorators/base.js
6095
- var e4 = (e7, t4, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t4 && Object.defineProperty(e7, t4, c4), c4);
6122
+ var e4 = (e8, t4, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t4 && Object.defineProperty(e8, t4, c4), c4);
6096
6123
 
6097
6124
  // node_modules/@lit/reactive-element/decorators/query.js
6098
- function e5(e7, r6) {
6125
+ function e5(e8, r6) {
6099
6126
  return (n6, s4, i7) => {
6100
- const o7 = (t4) => t4.renderRoot?.querySelector(e7) ?? null;
6127
+ const o7 = (t4) => t4.renderRoot?.querySelector(e8) ?? null;
6101
6128
  if (r6) {
6102
- const { get: e8, set: r7 } = "object" == typeof s4 ? n6 : i7 ?? /* @__PURE__ */ (() => {
6129
+ const { get: e9, set: r7 } = "object" == typeof s4 ? n6 : i7 ?? /* @__PURE__ */ (() => {
6103
6130
  const t4 = /* @__PURE__ */ Symbol();
6104
6131
  return { get() {
6105
6132
  return this[t4];
6106
- }, set(e9) {
6107
- this[t4] = e9;
6133
+ }, set(e10) {
6134
+ this[t4] = e10;
6108
6135
  } };
6109
6136
  })();
6110
6137
  return e4(n6, s4, { get() {
6111
- let t4 = e8.call(this);
6138
+ let t4 = e9.call(this);
6112
6139
  return void 0 === t4 && (t4 = o7(this), (null !== t4 || this.hasUpdated) && r7.call(this, t4)), t4;
6113
6140
  } });
6114
6141
  }
@@ -6120,21 +6147,21 @@ function e5(e7, r6) {
6120
6147
 
6121
6148
  // node_modules/lit-html/directive.js
6122
6149
  var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
6123
- var e6 = (t4) => (...e7) => ({ _$litDirective$: t4, values: e7 });
6150
+ var e6 = (t4) => (...e8) => ({ _$litDirective$: t4, values: e8 });
6124
6151
  var i5 = class {
6125
6152
  constructor(t4) {
6126
6153
  }
6127
6154
  get _$AU() {
6128
6155
  return this._$AM._$AU;
6129
6156
  }
6130
- _$AT(t4, e7, i7) {
6131
- this._$Ct = t4, this._$AM = e7, this._$Ci = i7;
6157
+ _$AT(t4, e8, i7) {
6158
+ this._$Ct = t4, this._$AM = e8, this._$Ci = i7;
6132
6159
  }
6133
- _$AS(t4, e7) {
6134
- return this.update(t4, e7);
6160
+ _$AS(t4, e8) {
6161
+ return this.update(t4, e8);
6135
6162
  }
6136
- update(t4, e7) {
6137
- return this.render(...e7);
6163
+ update(t4, e8) {
6164
+ return this.render(...e8);
6138
6165
  }
6139
6166
  };
6140
6167
 
@@ -6146,21 +6173,21 @@ var o6 = e6(class extends i5 {
6146
6173
  if (super(t4), t4.type !== t3.ATTRIBUTE || "style" !== t4.name || t4.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
6147
6174
  }
6148
6175
  render(t4) {
6149
- return Object.keys(t4).reduce((e7, r6) => {
6176
+ return Object.keys(t4).reduce((e8, r6) => {
6150
6177
  const s4 = t4[r6];
6151
- return null == s4 ? e7 : e7 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
6178
+ return null == s4 ? e8 : e8 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
6152
6179
  }, "");
6153
6180
  }
6154
- update(e7, [r6]) {
6155
- const { style: s4 } = e7.element;
6181
+ update(e8, [r6]) {
6182
+ const { style: s4 } = e8.element;
6156
6183
  if (void 0 === this.ft) return this.ft = new Set(Object.keys(r6)), this.render(r6);
6157
6184
  for (const t4 of this.ft) null == r6[t4] && (this.ft.delete(t4), t4.includes("-") ? s4.removeProperty(t4) : s4[t4] = null);
6158
6185
  for (const t4 in r6) {
6159
- const e8 = r6[t4];
6160
- if (null != e8) {
6186
+ const e9 = r6[t4];
6187
+ if (null != e9) {
6161
6188
  this.ft.add(t4);
6162
- const r7 = "string" == typeof e8 && e8.endsWith(i6);
6163
- t4.includes("-") || r7 ? s4.setProperty(t4, r7 ? e8.slice(0, -11) : e8, r7 ? n5 : "") : s4[t4] = e8;
6189
+ const r7 = "string" == typeof e9 && e9.endsWith(i6);
6190
+ t4.includes("-") || r7 ? s4.setProperty(t4, r7 ? e9.slice(0, -11) : e9, r7 ? n5 : "") : s4[t4] = e9;
6164
6191
  }
6165
6192
  }
6166
6193
  return E;
@@ -6168,7 +6195,7 @@ var o6 = e6(class extends i5 {
6168
6195
  });
6169
6196
 
6170
6197
  // libs/embed-libs/embed/package.json
6171
- var version = "9.1.0";
6198
+ var version = "10.1.0";
6172
6199
 
6173
6200
  // libs/embed-libs/embed/src/lib/utils/embed-error.utils.ts
6174
6201
  function buildEmbedErrorDetail(errorMsg) {
@@ -7499,11 +7526,11 @@ if (!customElements.get("luzmo-embed-dashboard")) {
7499
7526
  customElements.define("luzmo-embed-dashboard", LuzmoEmbedDashboard);
7500
7527
  }
7501
7528
 
7502
- // libs/dashboard-contents-types/src/lib/shared/version.ts
7503
- var CONTENTS_VERSION = "0.1.108";
7529
+ // node_modules/@luzmo/embed-build-contents-types/shared/version.js
7530
+ var e7 = "0.1.109";
7504
7531
 
7505
7532
  // libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
7506
- var dashboardContentsVersion = CONTENTS_VERSION;
7533
+ var dashboardContentsVersion = e7;
7507
7534
  var vizItemRemote = "VizItemApp";
7508
7535
  function collectVizItemDatasetIds(slots) {
7509
7536
  const ids = /* @__PURE__ */ new Set();
@@ -7529,22 +7556,6 @@ var LuzmoBaseVizItem = class extends i4 {
7529
7556
  this.libVersion = version + "-wc-luzmo";
7530
7557
  this.postInitCallQueue = [];
7531
7558
  }
7532
- static {
7533
- // Static styles to set host display to block, else it is not shown at all for some reason.
7534
- this.styles = i`
7535
- :host {
7536
- display: block;
7537
- width: 100%;
7538
- height: 100%;
7539
- }
7540
-
7541
- luzmo-embed-viz-item {
7542
- width: 100%;
7543
- height: 1000%;
7544
- display: block;
7545
- }
7546
- `;
7547
- }
7548
7559
  createRenderRoot() {
7549
7560
  if (!this.style.display) {
7550
7561
  this.style.display = "block";
@@ -7611,13 +7622,22 @@ var LuzmoBaseVizItem = class extends i4 {
7611
7622
  async firstUpdated(_changedProperties) {
7612
7623
  super.firstUpdated(_changedProperties);
7613
7624
  if (this.canInitializeVizItem()) {
7614
- await loadLibrary(this.appServer, vizItemRemote);
7625
+ if (!await this.loadVizItem()) {
7626
+ return;
7627
+ }
7615
7628
  this.createAndAppendElement();
7616
7629
  }
7617
7630
  }
7631
+ async loadVizItem() {
7632
+ await loadLibrary(this.appServer, vizItemRemote);
7633
+ return true;
7634
+ }
7635
+ createVizItemElement() {
7636
+ return document.createElement("chart-component");
7637
+ }
7618
7638
  createAndAppendElement() {
7619
7639
  if (!this.chartElement) {
7620
- this.chartElement = document.createElement("chart-component");
7640
+ this.chartElement = this.createVizItemElement();
7621
7641
  this.chartElement.setAttribute("embedding-mode", "chart");
7622
7642
  this.chartElement.style.height = "100%";
7623
7643
  this.chartElement.style.width = "100%";
@@ -7688,7 +7708,7 @@ var LuzmoBaseVizItem = class extends i4 {
7688
7708
  if (propertyName === "inlineData" && (value === void 0 || value === null)) {
7689
7709
  this.inlineData = void 0;
7690
7710
  this.chartElement.removeAttribute(mappedAttributeName);
7691
- } else if ((propertyName === "screenMode" || propertyName === "querySource") && value == null) {
7711
+ } else if (propertyName === "screenMode" && value == null) {
7692
7712
  this.chartElement.removeAttribute(mappedAttributeName);
7693
7713
  } else {
7694
7714
  const attributeValue = typeof value === "object" ? JSON.stringify(value) : value?.toString() ?? value;
@@ -7704,7 +7724,9 @@ var LuzmoBaseVizItem = class extends i4 {
7704
7724
  }
7705
7725
  } else {
7706
7726
  if (this.canInitializeVizItem()) {
7707
- await loadLibrary(this.appServer, vizItemRemote);
7727
+ if (!await this.loadVizItem()) {
7728
+ return;
7729
+ }
7708
7730
  this.createAndAppendElement();
7709
7731
  }
7710
7732
  }
@@ -7713,6 +7735,20 @@ var LuzmoBaseVizItem = class extends i4 {
7713
7735
  return b2``;
7714
7736
  }
7715
7737
  };
7738
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7739
+ LuzmoBaseVizItem.styles = i`
7740
+ :host {
7741
+ display: block;
7742
+ width: 100%;
7743
+ height: 100%;
7744
+ }
7745
+
7746
+ luzmo-embed-viz-item {
7747
+ width: 100%;
7748
+ height: 1000%;
7749
+ display: block;
7750
+ }
7751
+ `;
7716
7752
  __decorateClass([
7717
7753
  n4()
7718
7754
  ], LuzmoBaseVizItem.prototype, "appServer", 2);
@@ -7766,9 +7802,6 @@ __decorateClass([
7766
7802
  __decorateClass([
7767
7803
  n4({ attribute: "screen-mode" })
7768
7804
  ], LuzmoBaseVizItem.prototype, "screenMode", 2);
7769
- __decorateClass([
7770
- n4({ attribute: "query-source" })
7771
- ], LuzmoBaseVizItem.prototype, "querySource", 2);
7772
7805
  __decorateClass([
7773
7806
  n4()
7774
7807
  ], LuzmoBaseVizItem.prototype, "itemId", 2);
@@ -7822,16 +7855,6 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
7822
7855
  this.remoteEntryServer = "http://localhost:4202/";
7823
7856
  this.aydHost = "https://ayd.luzmo.com/";
7824
7857
  }
7825
- static {
7826
- // Static styles to set host display to block, else it is not shown at all for some reason.
7827
- this.styles = i`
7828
- :host {
7829
- display: block;
7830
- width: 100%;
7831
- height: 100%;
7832
- }
7833
- `;
7834
- }
7835
7858
  createRenderRoot() {
7836
7859
  return this;
7837
7860
  }
@@ -7909,6 +7932,14 @@ var LuzmoIQEmbedChatComponent = class extends i4 {
7909
7932
  observer.observe(embedChat, { childList: true, subtree: true });
7910
7933
  }
7911
7934
  };
7935
+ // Static styles to set host display to block, else it is not shown at all for some reason.
7936
+ LuzmoIQEmbedChatComponent.styles = i`
7937
+ :host {
7938
+ display: block;
7939
+ width: 100%;
7940
+ height: 100%;
7941
+ }
7942
+ `;
7912
7943
  __decorateClass([
7913
7944
  n4()
7914
7945
  ], LuzmoIQEmbedChatComponent.prototype, "appServer", 2);
@@ -7983,16 +8014,6 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
7983
8014
  this.libVersion = version + "-wc-luzmo";
7984
8015
  this.remoteEntryServer = "http://localhost:4202";
7985
8016
  }
7986
- static {
7987
- // Static styles to set host display to block, else it is not shown at all for some reason.
7988
- this.styles = i`
7989
- :host {
7990
- display: block;
7991
- width: 100%;
7992
- height: 100%;
7993
- }
7994
- `;
7995
- }
7996
8017
  createRenderRoot() {
7997
8018
  return this;
7998
8019
  }
@@ -8043,6 +8064,14 @@ var LuzmoIQEmbedAnswerComponent = class extends i4 {
8043
8064
  return b2` `;
8044
8065
  }
8045
8066
  };
8067
+ // Static styles to set host display to block, else it is not shown at all for some reason.
8068
+ LuzmoIQEmbedAnswerComponent.styles = i`
8069
+ :host {
8070
+ display: block;
8071
+ width: 100%;
8072
+ height: 100%;
8073
+ }
8074
+ `;
8046
8075
  __decorateClass([
8047
8076
  n4()
8048
8077
  ], LuzmoIQEmbedAnswerComponent.prototype, "appServer", 2);