@sinm/kai 1.13.3 → 1.13.4

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 (68) hide show
  1. package/RELEASE_NOTES.md +31 -0
  2. package/dist-cli/kai-cli.js +15865 -11525
  3. package/dist-electron/renderer/assets/{_baseUniq-C31eo-yF.js → _baseUniq-Chaz_dmO.js} +1 -1
  4. package/dist-electron/renderer/assets/{architectureDiagram-Q4EWVU46-OPIHZTDt.js → architectureDiagram-Q4EWVU46-DrN5CwkS.js} +6 -6
  5. package/dist-electron/renderer/assets/{blockDiagram-DXYQGD6D-Crr4sRgT.js → blockDiagram-DXYQGD6D-DL_vNCtt.js} +7 -7
  6. package/dist-electron/renderer/assets/{c4Diagram-AHTNJAMY-MaDoztkY.js → c4Diagram-AHTNJAMY-CHqLUcUq.js} +3 -3
  7. package/dist-electron/renderer/assets/{channel-DIjm7_0G.js → channel-B2dfgrPY.js} +1 -1
  8. package/dist-electron/renderer/assets/{chunk-4BX2VUAB-Bip3DWy-.js → chunk-4BX2VUAB-BmwbZTFO.js} +1 -1
  9. package/dist-electron/renderer/assets/{chunk-4TB4RGXK-DEDEvfnR.js → chunk-4TB4RGXK-C9eynBDz.js} +5 -5
  10. package/dist-electron/renderer/assets/{chunk-55IACEB6-DFjDaFrZ.js → chunk-55IACEB6-03BX_AQr.js} +1 -1
  11. package/dist-electron/renderer/assets/{chunk-EDXVE4YY--jzEbtz_.js → chunk-EDXVE4YY-DKiHWHcm.js} +1 -1
  12. package/dist-electron/renderer/assets/{chunk-FMBD7UC4-CgTSbhUv.js → chunk-FMBD7UC4-ChVobCQV.js} +1 -1
  13. package/dist-electron/renderer/assets/{chunk-OYMX7WX6-DlupARPo.js → chunk-OYMX7WX6-Ci6VbQY6.js} +3 -3
  14. package/dist-electron/renderer/assets/{chunk-QZHKN3VN-BAGK-bmt.js → chunk-QZHKN3VN-r-kZRj_p.js} +1 -1
  15. package/dist-electron/renderer/assets/{chunk-YZCP3GAM-CQFpotAU.js → chunk-YZCP3GAM-CQMNQkng.js} +1 -1
  16. package/dist-electron/renderer/assets/{classDiagram-v2-HSJHXN6E-Dselyvyz.js → classDiagram-6PBFFD2Q-DGXgpdFS.js} +7 -7
  17. package/dist-electron/renderer/assets/{classDiagram-6PBFFD2Q-Dselyvyz.js → classDiagram-v2-HSJHXN6E-DGXgpdFS.js} +7 -7
  18. package/dist-electron/renderer/assets/{clone-BlEb51G6.js → clone-BrdQ0YRy.js} +1 -1
  19. package/dist-electron/renderer/assets/{cose-bilkent-S5V4N54A-B_JD2f2V.js → cose-bilkent-S5V4N54A-DtezVUId.js} +2 -2
  20. package/dist-electron/renderer/assets/{dagre-KV5264BT-DLDb2iSr.js → dagre-KV5264BT-CgEwe1nB.js} +7 -7
  21. package/dist-electron/renderer/assets/{diagram-5BDNPKRD-C6gM5uu0.js → diagram-5BDNPKRD-BVmCcXoS.js} +7 -7
  22. package/dist-electron/renderer/assets/{diagram-G4DWMVQ6-74xQC7e2.js → diagram-G4DWMVQ6-88rUNQ1K.js} +7 -7
  23. package/dist-electron/renderer/assets/{diagram-MMDJMWI5-DUfSXj6i.js → diagram-MMDJMWI5-zM1jZxtG.js} +6 -6
  24. package/dist-electron/renderer/assets/{diagram-TYMM5635-DKqfgdR_.js → diagram-TYMM5635-B-mq-S9E.js} +6 -6
  25. package/dist-electron/renderer/assets/{erDiagram-SMLLAGMA-BSc1py3h.js → erDiagram-SMLLAGMA-CF2pHC-m.js} +5 -5
  26. package/dist-electron/renderer/assets/{flowDiagram-DWJPFMVM-B9cN-uqw.js → flowDiagram-DWJPFMVM-B8tGyPwj.js} +7 -7
  27. package/dist-electron/renderer/assets/{ganttDiagram-T4ZO3ILL-CnRYbvB8.js → ganttDiagram-T4ZO3ILL-9wPIVDQh.js} +2 -2
  28. package/dist-electron/renderer/assets/{gitGraphDiagram-UUTBAWPF-CLw-ADJ7.js → gitGraphDiagram-UUTBAWPF-lC4Kpd4U.js} +7 -7
  29. package/dist-electron/renderer/assets/{graph-CFSeBOUl.js → graph-B_SmpH2r.js} +2 -2
  30. package/dist-electron/renderer/assets/{image-BPoy6OwY.js → image-CuDodyAx.js} +2 -2
  31. package/dist-electron/renderer/assets/{index-B8e4CGoa.js → index-BFPConLv.js} +5 -5
  32. package/dist-electron/renderer/assets/{index-BM3qXY96.js → index-BO6eHELs.js} +4 -4
  33. package/dist-electron/renderer/assets/{index-C00xjeF9.js → index-BdcltKuz.js} +8623 -6057
  34. package/dist-electron/renderer/assets/{index-ZtFtJCDp.js → index-CZY8q7LS.js} +6 -6
  35. package/dist-electron/renderer/assets/{index-8nRdCLlO.css → index-DHH8ke_y.css} +4642 -3600
  36. package/dist-electron/renderer/assets/{index-Bmnq51hA.js → index-DtoFGMFk.js} +4 -4
  37. package/dist-electron/renderer/assets/{index-B3YxBY6K.js → index-Dxf0Pgvg.js} +3 -3
  38. package/dist-electron/renderer/assets/{infoDiagram-42DDH7IO-DMkihM4P.js → infoDiagram-42DDH7IO-DdPBBMS_.js} +5 -5
  39. package/dist-electron/renderer/assets/{ishikawaDiagram-UXIWVN3A-C6mlk8n2.js → ishikawaDiagram-UXIWVN3A-DnnEX7AU.js} +2 -2
  40. package/dist-electron/renderer/assets/{journeyDiagram-VCZTEJTY-CT_HqP5b.js → journeyDiagram-VCZTEJTY-D_GmfQlh.js} +4 -4
  41. package/dist-electron/renderer/assets/{kanban-definition-6JOO6SKY-CL0HbzZK.js → kanban-definition-6JOO6SKY-CITXjG4-.js} +3 -3
  42. package/dist-electron/renderer/assets/{layout-By1-A8G3.js → layout-ISNR2lhC.js} +4 -4
  43. package/dist-electron/renderer/assets/{min-DKwt8oXG.js → min-wnBODP3v.js} +2 -2
  44. package/dist-electron/renderer/assets/{mindmap-definition-QFDTVHPH-v6tQZqfJ.js → mindmap-definition-QFDTVHPH-Cal9wYQN.js} +4 -4
  45. package/dist-electron/renderer/assets/{office-preview-J3VSY6Z8.js → office-preview-DyxwZTro.js} +6 -6
  46. package/dist-electron/renderer/assets/{parser-DYEwxOAz.js → parser-Cn2aVHI6.js} +3 -3
  47. package/dist-electron/renderer/assets/{pdf-Cg5OXHy4.js → pdf-Bj-WioAK.js} +2 -2
  48. package/dist-electron/renderer/assets/{pieDiagram-DEJITSTG-DuSwQp6W.js → pieDiagram-DEJITSTG-CXVdaadJ.js} +6 -6
  49. package/dist-electron/renderer/assets/{ppt-kMUvGcTn.js → ppt-DtTX6_QM.js} +2 -2
  50. package/dist-electron/renderer/assets/{pptx-Bc4I5s0W.js → pptx-Dn3M0QGc.js} +2 -2
  51. package/dist-electron/renderer/assets/{preload-helper-DMSNAyVy.js → preload-helper-DEUi-brj.js} +23 -2
  52. package/dist-electron/renderer/assets/{quadrantDiagram-34T5L4WZ-BuRE-YJz.js → quadrantDiagram-34T5L4WZ-BYu9C7qD.js} +2 -2
  53. package/dist-electron/renderer/assets/{requirementDiagram-MS252O5E-BNbtzfR3.js → requirementDiagram-MS252O5E-65iOVu5m.js} +4 -4
  54. package/dist-electron/renderer/assets/{sankeyDiagram-XADWPNL6-BAb50dzj.js → sankeyDiagram-XADWPNL6-9IMCOL8V.js} +2 -2
  55. package/dist-electron/renderer/assets/{sequenceDiagram-FGHM5R23-BoLpWkCx.js → sequenceDiagram-FGHM5R23-Di4v7a-q.js} +4 -4
  56. package/dist-electron/renderer/assets/{spreadsheet-DGapha57.js → spreadsheet-Djm5u4Cn.js} +4 -4
  57. package/dist-electron/renderer/assets/{stateDiagram-FHFEXIEX-UHbFZGxS.js → stateDiagram-FHFEXIEX-BYUDwWIG.js} +9 -9
  58. package/dist-electron/renderer/assets/{stateDiagram-v2-QKLJ7IA2-NB-YjQiB.js → stateDiagram-v2-QKLJ7IA2-Qwi1T0QM.js} +5 -5
  59. package/dist-electron/renderer/assets/{timeline-definition-GMOUNBTQ-5KzWtsjk.js → timeline-definition-GMOUNBTQ-C2P58E06.js} +2 -2
  60. package/dist-electron/renderer/assets/{vennDiagram-DHZGUBPP-DvOIZOJj.js → vennDiagram-DHZGUBPP-D8X5qg_P.js} +2 -2
  61. package/dist-electron/renderer/assets/{wardley-RL74JXVD-CXHgzpD7.js → wardley-RL74JXVD-CeSv0_Mw.js} +4 -4
  62. package/dist-electron/renderer/assets/{wardleyDiagram-NUSXRM2D-Cr7V76Qj.js → wardleyDiagram-NUSXRM2D-Q-70x8Oa.js} +6 -6
  63. package/dist-electron/renderer/assets/{wordDoc-sBzzGoFh.js → wordDoc-DleWwtLs.js} +2 -2
  64. package/dist-electron/renderer/assets/{wordDocx-vtTbrlFg.js → wordDocx-C13UT35L.js} +2 -2
  65. package/dist-electron/renderer/assets/{xychartDiagram-5P7HB3ND-DOE9ADmy.js → xychartDiagram-5P7HB3ND-aHMsePaY.js} +2 -2
  66. package/dist-electron/renderer/index.html +3 -3
  67. package/dist-electron/renderer/office-preview.html +2 -2
  68. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-DGapha57.js","./preload-helper-DMSNAyVy.js","./assets-FW_AxgRe.js","./index-B3YxBY6K.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
3
- import { D as DEFAULT_RENDERER_DEFINITIONS } from "./index-B3YxBY6K.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-Djm5u4Cn.js","./preload-helper-DEUi-brj.js","./assets-FW_AxgRe.js","./index-Dxf0Pgvg.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
2
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
3
+ import { D as DEFAULT_RENDERER_DEFINITIONS } from "./index-Dxf0Pgvg.js";
4
4
  const spreadsheetDefinition = DEFAULT_RENDERER_DEFINITIONS.find((definition) => definition.id === "spreadsheet-openxml");
5
5
  if (!spreadsheetDefinition) {
6
6
  throw new Error("@file-viewer/renderer-spreadsheet could not locate the shared Spreadsheet format definition.");
7
7
  }
8
8
  const spreadsheetRendererDefinition = spreadsheetDefinition;
9
9
  const renderFileViewerSpreadsheet = (buffer, target, type, context) => __vitePreload(async () => {
10
- const { default: renderSpreadsheet } = await import("./spreadsheet-DGapha57.js").then((n) => n.s);
10
+ const { default: renderSpreadsheet } = await import("./spreadsheet-Djm5u4Cn.js").then((n) => n.s);
11
11
  return { default: renderSpreadsheet };
12
12
  }, true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0, import.meta.url).then(({ default: renderSpreadsheet }) => renderSpreadsheet(buffer, target, type, context));
13
13
  ({
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./image-BPoy6OwY.js","./zoom-jYhmkcQX.js","./preload-helper-DMSNAyVy.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./image-CuDodyAx.js","./zoom-jYhmkcQX.js","./preload-helper-DEUi-brj.js"])))=>i.map(i=>d[i]);
2
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
3
3
  const ARCHIVE_EXTENSIONS = [
4
4
  "zip",
5
5
  "zipx",
@@ -2123,7 +2123,7 @@ const coreBrowserRendererHandlers = [
2123
2123
  rendererId: "image",
2124
2124
  handler: async (buffer, target, type, context) => {
2125
2125
  const { default: renderImage } = await __vitePreload(async () => {
2126
- const { default: renderImage2 } = await import("./image-BPoy6OwY.js");
2126
+ const { default: renderImage2 } = await import("./image-CuDodyAx.js");
2127
2127
  return { default: renderImage2 };
2128
2128
  }, true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
2129
2129
  return renderImage(buffer, target, type, context);
@@ -1,10 +1,10 @@
1
- import { _ as __name, l as log, H as selectSvgElement, d as configureSvgSize } from "./index-C00xjeF9.js";
2
- import { p as parse } from "./wardley-RL74JXVD-CXHgzpD7.js";
1
+ import { _ as __name, l as log, H as selectSvgElement, d as configureSvgSize } from "./index-BdcltKuz.js";
2
+ import { p as parse } from "./wardley-RL74JXVD-CeSv0_Mw.js";
3
3
  import "./_commonjsHelpers-CCIqAdii.js";
4
- import "./preload-helper-DMSNAyVy.js";
4
+ import "./preload-helper-DEUi-brj.js";
5
5
  import "./transform-xbmqYlhd.js";
6
- import "./min-DKwt8oXG.js";
7
- import "./_baseUniq-C31eo-yF.js";
6
+ import "./min-wnBODP3v.js";
7
+ import "./_baseUniq-Chaz_dmO.js";
8
8
  var parser = {
9
9
  parse: /* @__PURE__ */ __name(async (input) => {
10
10
  const ast = await parse("info", input);
@@ -1,6 +1,6 @@
1
- import { _ as __name, c as getConfig2, I as parseFontSize, H as selectSvgElement, aa as at, y as clear, j as common_default, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, p as getDiagramTitle, d as configureSvgSize } from "./index-C00xjeF9.js";
1
+ import { _ as __name, c as getConfig2, I as parseFontSize, H as selectSvgElement, aa as at, y as clear, j as common_default, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, p as getDiagramTitle, d as configureSvgSize } from "./index-BdcltKuz.js";
2
2
  import "./_commonjsHelpers-CCIqAdii.js";
3
- import "./preload-helper-DMSNAyVy.js";
3
+ import "./preload-helper-DEUi-brj.js";
4
4
  import "./transform-xbmqYlhd.js";
5
5
  var parser = (function() {
6
6
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
@@ -1,10 +1,10 @@
1
- import { g as getIconStyles } from "./chunk-FMBD7UC4-CgTSbhUv.js";
2
- import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-YZCP3GAM-CQFpotAU.js";
3
- import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, c as getConfig2, d as configureSvgSize, y as clear } from "./index-C00xjeF9.js";
1
+ import { g as getIconStyles } from "./chunk-FMBD7UC4-ChVobCQV.js";
2
+ import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-YZCP3GAM-CQMNQkng.js";
3
+ import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, c as getConfig2, d as configureSvgSize, y as clear } from "./index-BdcltKuz.js";
4
4
  import { s as select } from "./transform-xbmqYlhd.js";
5
5
  import { a as arc } from "./arc-0FUHmmYf.js";
6
6
  import "./_commonjsHelpers-CCIqAdii.js";
7
- import "./preload-helper-DMSNAyVy.js";
7
+ import "./preload-helper-DEUi-brj.js";
8
8
  var parser = (function() {
9
9
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
10
10
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,7 +1,7 @@
1
- import { _ as __name, l as log, c as getConfig2, H as selectSvgElement, X as insertCluster, Y as insertNode, $ as positionNode, V as setupGraphViewbox, F as defaultConfig_default, h as sanitizeText, q as load, J as JSON_SCHEMA, S as isDark, T as lighten, U as darken } from "./index-C00xjeF9.js";
2
- import { g as getIconStyles } from "./chunk-FMBD7UC4-CgTSbhUv.js";
1
+ import { _ as __name, l as log, c as getConfig2, H as selectSvgElement, X as insertCluster, Y as insertNode, $ as positionNode, V as setupGraphViewbox, F as defaultConfig_default, h as sanitizeText, q as load, J as JSON_SCHEMA, S as isDark, T as lighten, U as darken } from "./index-BdcltKuz.js";
2
+ import { g as getIconStyles } from "./chunk-FMBD7UC4-ChVobCQV.js";
3
3
  import "./_commonjsHelpers-CCIqAdii.js";
4
- import "./preload-helper-DMSNAyVy.js";
4
+ import "./preload-helper-DEUi-brj.js";
5
5
  import "./transform-xbmqYlhd.js";
6
6
  var parser = (function() {
7
7
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
@@ -1,7 +1,7 @@
1
- import { b as baseClone, G as Graph, i as isUndefined, v as values } from "./graph-CFSeBOUl.js";
2
- import { i as isSymbol, c as baseIteratee, k as keys, o as baseFindIndex, p as castFunction, q as baseForOwn, t as hasPath, u as castPath, v as toKey, w as baseGet, d as arrayMap, x as hasIn, b as baseFlatten, y as toString, n as forEach, m as filter, r as reduce } from "./_baseUniq-C31eo-yF.js";
3
- import { f as flatten, b as baseExtremum, a as baseLt, c as baseMap, m as map, d as min } from "./min-DKwt8oXG.js";
4
- import { aG as isObject, b3 as setToString, b4 as overRest, aN as baseRest, b5 as isIterateeCall, ax as keysIn, aY as eq, ap as isArrayLike, b1 as baseFor, b6 as baseAssignValue, ar as identity, b0 as isIndex, aM as assignValue, aq as isArray, aE as baseUnary, aP as constant, b7 as merge } from "./index-C00xjeF9.js";
1
+ import { b as baseClone, G as Graph, i as isUndefined, v as values } from "./graph-B_SmpH2r.js";
2
+ import { i as isSymbol, c as baseIteratee, k as keys, o as baseFindIndex, p as castFunction, q as baseForOwn, t as hasPath, u as castPath, v as toKey, w as baseGet, d as arrayMap, x as hasIn, b as baseFlatten, y as toString, n as forEach, m as filter, r as reduce } from "./_baseUniq-Chaz_dmO.js";
3
+ import { f as flatten, b as baseExtremum, a as baseLt, c as baseMap, m as map, d as min } from "./min-wnBODP3v.js";
4
+ import { aG as isObject, b3 as setToString, b4 as overRest, aN as baseRest, b5 as isIterateeCall, ax as keysIn, aY as eq, ap as isArrayLike, b1 as baseFor, b6 as baseAssignValue, ar as identity, b0 as isIndex, aM as assignValue, aq as isArray, aE as baseUnary, aP as constant, b7 as merge } from "./index-BdcltKuz.js";
5
5
  var reWhitespace = /\s/;
6
6
  function trimmedEndIndex(string) {
7
7
  var index = string.length;
@@ -1,5 +1,5 @@
1
- import { b as baseFlatten, a as baseEach, c as baseIteratee, d as arrayMap, i as isSymbol } from "./_baseUniq-C31eo-yF.js";
2
- import { ap as isArrayLike, aq as isArray, ar as identity } from "./index-C00xjeF9.js";
1
+ import { b as baseFlatten, a as baseEach, c as baseIteratee, d as arrayMap, i as isSymbol } from "./_baseUniq-Chaz_dmO.js";
2
+ import { ap as isArrayLike, aq as isArray, ar as identity } from "./index-BdcltKuz.js";
3
3
  function flatten(array) {
4
4
  var length = array == null ? 0 : array.length;
5
5
  return length ? baseFlatten(array) : [];
@@ -1,9 +1,9 @@
1
- import { g as getDiagramElement } from "./chunk-55IACEB6-DFjDaFrZ.js";
2
- import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY--jzEbtz_.js";
3
- import { _ as __name, l as log, n as getRegisteredLayoutAlgorithm, r as render, C as getConfig, F as defaultConfig_default, c as getConfig2, h as sanitizeText, ao as getUserDefinedConfig, S as isDark, T as lighten, U as darken } from "./index-C00xjeF9.js";
1
+ import { g as getDiagramElement } from "./chunk-55IACEB6-03BX_AQr.js";
2
+ import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-DKiHWHcm.js";
3
+ import { _ as __name, l as log, n as getRegisteredLayoutAlgorithm, r as render, C as getConfig, F as defaultConfig_default, c as getConfig2, h as sanitizeText, ao as getUserDefinedConfig, S as isDark, T as lighten, U as darken } from "./index-BdcltKuz.js";
4
4
  import "./transform-xbmqYlhd.js";
5
5
  import "./_commonjsHelpers-CCIqAdii.js";
6
- import "./preload-helper-DMSNAyVy.js";
6
+ import "./preload-helper-DEUi-brj.js";
7
7
  const byteToHex = [];
8
8
  for (let i = 0; i < 256; ++i) {
9
9
  byteToHex.push((i + 256).toString(16).slice(1));
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-ZtFtJCDp.js","./preload-helper-DMSNAyVy.js","./index-B3YxBY6K.js","./index-BM3qXY96.js","./index-B8e4CGoa.js","./index-Bmnq51hA.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload, O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./preload-helper-DMSNAyVy.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CZY8q7LS.js","./preload-helper-DEUi-brj.js","./index-Dxf0Pgvg.js","./index-BO6eHELs.js","./index-BFPConLv.js","./index-DtoFGMFk.js"])))=>i.map(i=>d[i]);
2
+ import { _ as __vitePreload, O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./preload-helper-DEUi-brj.js";
3
3
  const pptxWorkerUrl = "" + new URL("pptx.worker-BB0HgzXA.js", import.meta.url).href;
4
4
  const createContext = (file, signal) => ({
5
5
  filename: file.name,
@@ -46,24 +46,24 @@ const getCompatibility = (format) => {
46
46
  const loadRenderer = async (format) => {
47
47
  if (format === "docx" || format === "doc") {
48
48
  const { renderFileViewerWordDocx, renderFileViewerWordDoc } = await __vitePreload(async () => {
49
- const { renderFileViewerWordDocx: renderFileViewerWordDocx2, renderFileViewerWordDoc: renderFileViewerWordDoc2 } = await import("./index-ZtFtJCDp.js");
49
+ const { renderFileViewerWordDocx: renderFileViewerWordDocx2, renderFileViewerWordDoc: renderFileViewerWordDoc2 } = await import("./index-CZY8q7LS.js");
50
50
  return { renderFileViewerWordDocx: renderFileViewerWordDocx2, renderFileViewerWordDoc: renderFileViewerWordDoc2 };
51
51
  }, true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
52
52
  return format === "doc" ? renderFileViewerWordDoc : renderFileViewerWordDocx;
53
53
  }
54
54
  if (format === "pdf") return (await __vitePreload(async () => {
55
- const { renderFileViewerPdf } = await import("./index-BM3qXY96.js");
55
+ const { renderFileViewerPdf } = await import("./index-BO6eHELs.js");
56
56
  return { renderFileViewerPdf };
57
57
  }, true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url)).renderFileViewerPdf;
58
58
  if (format === "ppt" || format === "pptx") {
59
59
  const { renderFileViewerBinaryPresentation, renderFileViewerPresentation } = await __vitePreload(async () => {
60
- const { renderFileViewerBinaryPresentation: renderFileViewerBinaryPresentation2, renderFileViewerPresentation: renderFileViewerPresentation2 } = await import("./index-B8e4CGoa.js");
60
+ const { renderFileViewerBinaryPresentation: renderFileViewerBinaryPresentation2, renderFileViewerPresentation: renderFileViewerPresentation2 } = await import("./index-BFPConLv.js");
61
61
  return { renderFileViewerBinaryPresentation: renderFileViewerBinaryPresentation2, renderFileViewerPresentation: renderFileViewerPresentation2 };
62
62
  }, true ? __vite__mapDeps([4,1,2]) : void 0, import.meta.url);
63
63
  return format === "ppt" ? renderFileViewerBinaryPresentation : renderFileViewerPresentation;
64
64
  }
65
65
  return (await __vitePreload(async () => {
66
- const { renderFileViewerSpreadsheet } = await import("./index-Bmnq51hA.js");
66
+ const { renderFileViewerSpreadsheet } = await import("./index-DtoFGMFk.js");
67
67
  return { renderFileViewerSpreadsheet };
68
68
  }, true ? __vite__mapDeps([5,1,2]) : void 0, import.meta.url)).renderFileViewerSpreadsheet;
69
69
  };
@@ -1,8 +1,8 @@
1
- import { t as tinycolor } from "./spreadsheet-DGapha57.js";
1
+ import { t as tinycolor } from "./spreadsheet-Djm5u4Cn.js";
2
2
  import { J as JSZip } from "./jszip.min-Ca5jExEq.js";
3
- import "./preload-helper-DMSNAyVy.js";
3
+ import "./preload-helper-DEUi-brj.js";
4
4
  import "./assets-FW_AxgRe.js";
5
- import "./index-B3YxBY6K.js";
5
+ import "./index-Dxf0Pgvg.js";
6
6
  import "./zoom-jYhmkcQX.js";
7
7
  import "./options-SsS0Y_ki.js";
8
8
  import "./_commonjsHelpers-CCIqAdii.js";
@@ -1,7 +1,7 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pdfIdentityFontRepair-D1LMksnQ.js","./_commonjsHelpers-CCIqAdii.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
2
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
3
3
  import { r as resolveFileViewerRuntimeAssetBaseUrl, f as resolveFileViewerPdfAssetUrls } from "./assets-FW_AxgRe.js";
4
- import { c as createFileViewerTranslator, b as resolveFileViewerLocale, d as registerFileViewerSearchProvider, r as registerFileViewerZoomProvider, e as registerFileViewerViewStateProvider, f as unregisterFileViewerSearchProvider, u as unregisterFileViewerZoomProvider, h as unregisterFileViewerViewStateProvider, i as createFileViewerViewStateChange, a as resolveFileViewerFitScale, j as createFileViewerViewStateChangeEmitter } from "./index-B3YxBY6K.js";
4
+ import { c as createFileViewerTranslator, b as resolveFileViewerLocale, d as registerFileViewerSearchProvider, r as registerFileViewerZoomProvider, e as registerFileViewerViewStateProvider, f as unregisterFileViewerSearchProvider, u as unregisterFileViewerZoomProvider, h as unregisterFileViewerViewStateProvider, i as createFileViewerViewStateChange, a as resolveFileViewerFitScale, j as createFileViewerViewStateChangeEmitter } from "./index-Dxf0Pgvg.js";
5
5
  import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
6
6
  import { f as formatCssPixels, b as buildPrintPageStyle } from "./printLayout-CIlG68Nj.js";
7
7
  const DEFAULT_PDF_RANGE_CHUNK_SIZE = 64 * 1024;
@@ -1,14 +1,14 @@
1
- import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, E as cleanAndMerge, H as selectSvgElement, I as parseFontSize, d as configureSvgSize, y as clear, F as defaultConfig_default } from "./index-C00xjeF9.js";
2
- import { p as populateCommonDb } from "./chunk-4BX2VUAB-Bip3DWy-.js";
3
- import { p as parse } from "./wardley-RL74JXVD-CXHgzpD7.js";
1
+ import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, E as cleanAndMerge, H as selectSvgElement, I as parseFontSize, d as configureSvgSize, y as clear, F as defaultConfig_default } from "./index-BdcltKuz.js";
2
+ import { p as populateCommonDb } from "./chunk-4BX2VUAB-BmwbZTFO.js";
3
+ import { p as parse } from "./wardley-RL74JXVD-CeSv0_Mw.js";
4
4
  import "./transform-xbmqYlhd.js";
5
5
  import { a as arc } from "./arc-0FUHmmYf.js";
6
6
  import { o as ordinal } from "./ordinal-CxptdPJm.js";
7
7
  import { p as pie$1 } from "./pie-n6faJLD3.js";
8
8
  import "./_commonjsHelpers-CCIqAdii.js";
9
- import "./preload-helper-DMSNAyVy.js";
10
- import "./min-DKwt8oXG.js";
11
- import "./_baseUniq-C31eo-yF.js";
9
+ import "./preload-helper-DEUi-brj.js";
10
+ import "./min-wnBODP3v.js";
11
+ import "./_baseUniq-Chaz_dmO.js";
12
12
  import "./init-ZxktEp_H.js";
13
13
  var DEFAULT_PIE_CONFIG = defaultConfig_default.pie;
14
14
  var DEFAULT_PIE_DB = {
@@ -1,6 +1,6 @@
1
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
1
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
2
2
  import { r as resolveFileViewerRuntimeAssetBaseUrl, c as resolveFileViewerAssetUrl } from "./assets-FW_AxgRe.js";
3
- import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, a as resolveFileViewerFitScale } from "./index-B3YxBY6K.js";
3
+ import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, a as resolveFileViewerFitScale } from "./index-Dxf0Pgvg.js";
4
4
  import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
5
5
  import { w as waitForFileViewerNextPaint } from "./export-BB2y0kyx.js";
6
6
  const MIN_ZOOM = 0.25;
@@ -1,7 +1,7 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./billboard-BSTFvQMm.js","./transform-xbmqYlhd.js","./linear-iB_ZihXg.js","./init-ZxktEp_H.js","./defaultLocale-DCJjMHFj.js","./index-BEeZTDSC.js","./time-Bll8bhEl.js","./ordinal-CxptdPJm.js","./arc-0FUHmmYf.js","./pie-n6faJLD3.js","./index-BW_kBMIl.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
2
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
3
3
  import { d as resolveFileViewerPresentationWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-FW_AxgRe.js";
4
- import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, g as getFileViewerShadowRootForNode, b as resolveFileViewerLocale } from "./index-B3YxBY6K.js";
4
+ import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, g as getFileViewerShadowRootForNode, b as resolveFileViewerLocale } from "./index-Dxf0Pgvg.js";
5
5
  import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
6
6
  import { w as waitForFileViewerNextPaint } from "./export-BB2y0kyx.js";
7
7
  const asChartQueue = (charts) => {
@@ -10,20 +10,38 @@ const OFFICE_PREVIEW_FORMATS = [
10
10
  "pdf"
11
11
  ];
12
12
  const KAI_LOCAL_URL_PREFIX = "kai://local";
13
+ const LOCAL_FULL_PATH_PREFIX = "/full";
14
+ const INVALID_DIRECT_LOCAL_PATH_CHARS = /[\0\r\n`$<>|;&]/;
13
15
  const WINDOWS_DRIVE_ABSOLUTE_PATH = /^[A-Za-z]:[\\/]/;
16
+ const LEADING_SLASHED_WINDOWS_DRIVE_PATH = /^\/[A-Za-z]:[\\/]/;
14
17
  function encodePathPreservingSlashes(pathSegment) {
15
18
  return pathSegment.split("/").map((segment) => encodeURIComponent(segment)).join("/");
16
19
  }
17
20
  function decodeLocalPathSegment(pathSegment) {
21
+ return tryDecodeLocalPathSegment(pathSegment) ?? pathSegment;
22
+ }
23
+ function tryDecodeLocalPathSegment(pathSegment) {
18
24
  try {
19
25
  return decodeURIComponent(pathSegment);
20
26
  } catch {
21
- return pathSegment;
27
+ return null;
22
28
  }
23
29
  }
30
+ function normalizeDirectLocalPathInput(inputPath) {
31
+ const trimmedPath = inputPath.trim();
32
+ return !trimmedPath || INVALID_DIRECT_LOCAL_PATH_CHARS.test(trimmedPath) ? null : trimmedPath;
33
+ }
24
34
  function isWindowsDriveAbsolutePath(pathname) {
25
35
  return WINDOWS_DRIVE_ABSOLUTE_PATH.test(pathname);
26
36
  }
37
+ function stripLeadingSlashFromWindowsDrivePath(pathname) {
38
+ return LEADING_SLASHED_WINDOWS_DRIVE_PATH.test(pathname) ? pathname.slice(1) : pathname;
39
+ }
40
+ function extractPathFromFullLocalPathname(decodedPathname) {
41
+ return stripLeadingSlashFromWindowsDrivePath(
42
+ decodedPathname.slice(LOCAL_FULL_PATH_PREFIX.length)
43
+ );
44
+ }
27
45
  function isKaiLocalUrl(href) {
28
46
  return href.startsWith(`${KAI_LOCAL_URL_PREFIX}/`);
29
47
  }
@@ -96,8 +114,11 @@ export {
96
114
  OFFICE_PREVIEW_FORMATS as O,
97
115
  __vitePreload as _,
98
116
  isKaiLocalUrl as a,
117
+ extractPathFromFullLocalPathname as b,
99
118
  decodeLocalPathSegment as d,
100
119
  encodePathPreservingSlashes as e,
101
120
  isWindowsDriveAbsolutePath as i,
102
- kaiLocalUrlToPathSegment as k
121
+ kaiLocalUrlToPathSegment as k,
122
+ normalizeDirectLocalPathInput as n,
123
+ tryDecodeLocalPathSegment as t
103
124
  };
@@ -1,8 +1,8 @@
1
- import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as configureSvgSize, y as clear, F as defaultConfig_default, h as sanitizeText, K as getThemeVariables3 } from "./index-C00xjeF9.js";
1
+ import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as configureSvgSize, y as clear, F as defaultConfig_default, h as sanitizeText, K as getThemeVariables3 } from "./index-BdcltKuz.js";
2
2
  import { s as select } from "./transform-xbmqYlhd.js";
3
3
  import { l as linear } from "./linear-iB_ZihXg.js";
4
4
  import "./_commonjsHelpers-CCIqAdii.js";
5
- import "./preload-helper-DMSNAyVy.js";
5
+ import "./preload-helper-DEUi-brj.js";
6
6
  import "./init-ZxktEp_H.js";
7
7
  import "./defaultLocale-DCJjMHFj.js";
8
8
  import "./index-BEeZTDSC.js";
@@ -1,9 +1,9 @@
1
- import { g as getDiagramElement } from "./chunk-55IACEB6-DFjDaFrZ.js";
2
- import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY--jzEbtz_.js";
3
- import { _ as __name, C as getConfig, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, o as setDiagramTitle, p as getDiagramTitle, c as getConfig2, l as log, y as clear, B as __export, n as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-C00xjeF9.js";
1
+ import { g as getDiagramElement } from "./chunk-55IACEB6-03BX_AQr.js";
2
+ import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-DKiHWHcm.js";
3
+ import { _ as __name, C as getConfig, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, o as setDiagramTitle, p as getDiagramTitle, c as getConfig2, l as log, y as clear, B as __export, n as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-BdcltKuz.js";
4
4
  import "./transform-xbmqYlhd.js";
5
5
  import "./_commonjsHelpers-CCIqAdii.js";
6
- import "./preload-helper-DMSNAyVy.js";
6
+ import "./preload-helper-DEUi-brj.js";
7
7
  var parser = (function() {
8
8
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
9
9
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,8 +1,8 @@
1
- import { o as setDiagramTitle, p as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, z as defaultConfig2, V as setupGraphViewbox, y as clear, j as common_default } from "./index-C00xjeF9.js";
1
+ import { o as setDiagramTitle, p as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, z as defaultConfig2, V as setupGraphViewbox, y as clear, j as common_default } from "./index-BdcltKuz.js";
2
2
  import { s as select } from "./transform-xbmqYlhd.js";
3
3
  import { o as ordinal } from "./ordinal-CxptdPJm.js";
4
4
  import "./_commonjsHelpers-CCIqAdii.js";
5
- import "./preload-helper-DMSNAyVy.js";
5
+ import "./preload-helper-DEUi-brj.js";
6
6
  import "./init-ZxktEp_H.js";
7
7
  function colors(specifier) {
8
8
  var n = specifier.length / 6 | 0, colors2 = new Array(n), i = 0;
@@ -1,9 +1,9 @@
1
- import { _ as __name, m as setConfig2, c as getConfig2, l as log, i as distExports, d as configureSvgSize, e as assignWithDepth_default, j as common_default, b as setAccTitle, s as setAccDescription, o as setDiagramTitle, a as getAccTitle, g as getAccDescription, p as getDiagramTitle, q as load, J as JSON_SCHEMA, y as clear, h as sanitizeText, u as utils_default, L as hasKatex, M as calculateMathMLDimensions, I as parseFontSize, Z as ZERO_WIDTH_SPACE, C as getConfig, N as getUrl, O as renderKatexSanitized } from "./index-C00xjeF9.js";
2
- import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-YZCP3GAM-CQFpotAU.js";
3
- import { I as ImperativeState } from "./chunk-QZHKN3VN-BAGK-bmt.js";
1
+ import { _ as __name, m as setConfig2, c as getConfig2, l as log, i as distExports, d as configureSvgSize, e as assignWithDepth_default, j as common_default, b as setAccTitle, s as setAccDescription, o as setDiagramTitle, a as getAccTitle, g as getAccDescription, p as getDiagramTitle, q as load, J as JSON_SCHEMA, y as clear, h as sanitizeText, u as utils_default, L as hasKatex, M as calculateMathMLDimensions, I as parseFontSize, Z as ZERO_WIDTH_SPACE, C as getConfig, N as getUrl, O as renderKatexSanitized } from "./index-BdcltKuz.js";
2
+ import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-YZCP3GAM-CQMNQkng.js";
3
+ import { I as ImperativeState } from "./chunk-QZHKN3VN-r-kZRj_p.js";
4
4
  import { s as select } from "./transform-xbmqYlhd.js";
5
5
  import "./_commonjsHelpers-CCIqAdii.js";
6
- import "./preload-helper-DMSNAyVy.js";
6
+ import "./preload-helper-DEUi-brj.js";
7
7
  var parser = (function() {
8
8
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
9
9
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,7 +1,7 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./parser-DYEwxOAz.js","./jszip.min-Ca5jExEq.js","./_commonjsHelpers-CCIqAdii.js","./preload-helper-DMSNAyVy.js","./assets-FW_AxgRe.js","./index-B3YxBY6K.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./parser-Cn2aVHI6.js","./jszip.min-Ca5jExEq.js","./_commonjsHelpers-CCIqAdii.js","./preload-helper-DEUi-brj.js","./assets-FW_AxgRe.js","./index-Dxf0Pgvg.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
2
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
3
3
  import { e as resolveFileViewerSpreadsheetWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-FW_AxgRe.js";
4
- import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider } from "./index-B3YxBY6K.js";
4
+ import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider } from "./index-Dxf0Pgvg.js";
5
5
  import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
6
6
  import { r as resolveFileViewerColorScheme } from "./options-SsS0Y_ki.js";
7
7
  const createFileViewerWorkerController = (factory, options = {}) => {
@@ -2554,7 +2554,7 @@ class MainThreadSpreadsheetWorker {
2554
2554
  }
2555
2555
  async loadParser() {
2556
2556
  if (!this.parserPromise) {
2557
- this.parserPromise = __vitePreload(() => import("./parser-DYEwxOAz.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6,7]) : void 0, import.meta.url);
2557
+ this.parserPromise = __vitePreload(() => import("./parser-Cn2aVHI6.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6,7]) : void 0, import.meta.url);
2558
2558
  }
2559
2559
  const parser = await this.parserPromise;
2560
2560
  if (!this.context) {
@@ -1,14 +1,14 @@
1
- import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-DlupARPo.js";
2
- import { _ as __name, c as getConfig2, l as log, d as configureSvgSize, j as common_default, N as getUrl, u as utils_default } from "./index-C00xjeF9.js";
1
+ import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-Ci6VbQY6.js";
2
+ import { _ as __name, c as getConfig2, l as log, d as configureSvgSize, j as common_default, N as getUrl, u as utils_default } from "./index-BdcltKuz.js";
3
3
  import { s as select, l as line$1, c as curveBasis } from "./transform-xbmqYlhd.js";
4
- import { G as Graph } from "./graph-CFSeBOUl.js";
5
- import { l as layout } from "./layout-By1-A8G3.js";
6
- import "./chunk-55IACEB6-DFjDaFrZ.js";
7
- import "./chunk-EDXVE4YY--jzEbtz_.js";
4
+ import { G as Graph } from "./graph-B_SmpH2r.js";
5
+ import { l as layout } from "./layout-ISNR2lhC.js";
6
+ import "./chunk-55IACEB6-03BX_AQr.js";
7
+ import "./chunk-EDXVE4YY-DKiHWHcm.js";
8
8
  import "./_commonjsHelpers-CCIqAdii.js";
9
- import "./preload-helper-DMSNAyVy.js";
10
- import "./_baseUniq-C31eo-yF.js";
11
- import "./min-DKwt8oXG.js";
9
+ import "./preload-helper-DEUi-brj.js";
10
+ import "./_baseUniq-Chaz_dmO.js";
11
+ import "./min-wnBODP3v.js";
12
12
  var drawStartState = /* @__PURE__ */ __name((g) => g.append("circle").attr("class", "start-state").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit), "drawStartState");
13
13
  var drawDivider = /* @__PURE__ */ __name((g) => g.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", getConfig2().state.textHeight).attr("class", "divider").attr("x2", getConfig2().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider");
14
14
  var drawSimpleState = /* @__PURE__ */ __name((g, stateDef) => {
@@ -1,10 +1,10 @@
1
- import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-DlupARPo.js";
2
- import { _ as __name } from "./index-C00xjeF9.js";
1
+ import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-Ci6VbQY6.js";
2
+ import { _ as __name } from "./index-BdcltKuz.js";
3
3
  import "./transform-xbmqYlhd.js";
4
- import "./chunk-55IACEB6-DFjDaFrZ.js";
5
- import "./chunk-EDXVE4YY--jzEbtz_.js";
4
+ import "./chunk-55IACEB6-03BX_AQr.js";
5
+ import "./chunk-EDXVE4YY-DKiHWHcm.js";
6
6
  import "./_commonjsHelpers-CCIqAdii.js";
7
- import "./preload-helper-DMSNAyVy.js";
7
+ import "./preload-helper-DEUi-brj.js";
8
8
  var diagram = {
9
9
  parser: stateDiagram_default,
10
10
  get db() {
@@ -1,8 +1,8 @@
1
- import { _ as __name, C as getConfig, S as isDark, T as lighten, U as darken, c as getConfig2, l as log, H as selectSvgElement, I as parseFontSize, V as setupGraphViewbox, B as __export, W as commonDb_exports, y as clear } from "./index-C00xjeF9.js";
1
+ import { _ as __name, C as getConfig, S as isDark, T as lighten, U as darken, c as getConfig2, l as log, H as selectSvgElement, I as parseFontSize, V as setupGraphViewbox, B as __export, W as commonDb_exports, y as clear } from "./index-BdcltKuz.js";
2
2
  import { s as select } from "./transform-xbmqYlhd.js";
3
3
  import { a as arc } from "./arc-0FUHmmYf.js";
4
4
  import "./_commonjsHelpers-CCIqAdii.js";
5
- import "./preload-helper-DMSNAyVy.js";
5
+ import "./preload-helper-DEUi-brj.js";
6
6
  var parser = (function() {
7
7
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
8
8
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1,7 +1,7 @@
1
- import { an as adjustChannel, s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, C as getConfig, H as selectSvgElement, aa as at, S as isDark, T as lighten, U as darken, d as configureSvgSize, y as clear, E as cleanAndMerge, F as defaultConfig_default } from "./index-C00xjeF9.js";
1
+ import { an as adjustChannel, s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, C as getConfig, H as selectSvgElement, aa as at, S as isDark, T as lighten, U as darken, d as configureSvgSize, y as clear, E as cleanAndMerge, F as defaultConfig_default } from "./index-BdcltKuz.js";
2
2
  import { s as select } from "./transform-xbmqYlhd.js";
3
3
  import "./_commonjsHelpers-CCIqAdii.js";
4
- import "./preload-helper-DMSNAyVy.js";
4
+ import "./preload-helper-DEUi-brj.js";
5
5
  const transparentize = (color, amount) => {
6
6
  return adjustChannel(color, "a", -amount);
7
7
  };
@@ -1,7 +1,7 @@
1
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
2
- import { m as map, f as flatten, d as min } from "./min-DKwt8oXG.js";
3
- import { b as baseFlatten, l as baseUniq, c as baseIteratee, m as filter, r as reduce, n as forEach } from "./_baseUniq-C31eo-yF.js";
4
- import { aR as isEmpty } from "./index-C00xjeF9.js";
1
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
2
+ import { m as map, f as flatten, d as min } from "./min-wnBODP3v.js";
3
+ import { b as baseFlatten, l as baseUniq, c as baseIteratee, m as filter, r as reduce, n as forEach } from "./_baseUniq-Chaz_dmO.js";
4
+ import { aR as isEmpty } from "./index-BdcltKuz.js";
5
5
  import { a as getAugmentedNamespace } from "./_commonjsHelpers-CCIqAdii.js";
6
6
  function flatMap(collection, iteratee) {
7
7
  return baseFlatten(map(collection, iteratee));
@@ -1,11 +1,11 @@
1
- import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, c as getConfig2$1, h as sanitizeText } from "./index-C00xjeF9.js";
2
- import { p as populateCommonDb } from "./chunk-4BX2VUAB-Bip3DWy-.js";
3
- import { p as parse } from "./wardley-RL74JXVD-CXHgzpD7.js";
1
+ import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, c as getConfig2$1, h as sanitizeText } from "./index-BdcltKuz.js";
2
+ import { p as populateCommonDb } from "./chunk-4BX2VUAB-BmwbZTFO.js";
3
+ import { p as parse } from "./wardley-RL74JXVD-CeSv0_Mw.js";
4
4
  import "./_commonjsHelpers-CCIqAdii.js";
5
- import "./preload-helper-DMSNAyVy.js";
5
+ import "./preload-helper-DEUi-brj.js";
6
6
  import "./transform-xbmqYlhd.js";
7
- import "./min-DKwt8oXG.js";
8
- import "./_baseUniq-C31eo-yF.js";
7
+ import "./min-wnBODP3v.js";
8
+ import "./_baseUniq-Chaz_dmO.js";
9
9
  var toPercent = /* @__PURE__ */ __name((value, context) => {
10
10
  const normalized = value <= 1 ? value * 100 : value;
11
11
  if (normalized < 0 || normalized > 100) {
@@ -1,7 +1,7 @@
1
- import { r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-B3YxBY6K.js";
1
+ import { r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-Dxf0Pgvg.js";
2
2
  import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
3
3
  import { b as buildPrintPageStyle, a as applyPrintPageSize, f as formatCssPixels } from "./printLayout-CIlG68Nj.js";
4
- import "./preload-helper-DMSNAyVy.js";
4
+ import "./preload-helper-DEUi-brj.js";
5
5
  const globalBuffer = globalThis.Buffer;
6
6
  let uniqueIdCounter = 0;
7
7
  function escapeHtml(text) {
@@ -1,7 +1,7 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./docx-preview-D79uFTI3.js","./jszip.min-Ca5jExEq.js","./_commonjsHelpers-CCIqAdii.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./preload-helper-DMSNAyVy.js";
2
+ import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
3
3
  import { r as resolveFileViewerRuntimeAssetBaseUrl, a as resolveFileViewerDocxWorkerUrl, b as resolveFileViewerDocxWorkerJsZipUrl } from "./assets-FW_AxgRe.js";
4
- import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-B3YxBY6K.js";
4
+ import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-Dxf0Pgvg.js";
5
5
  import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
6
6
  import { b as buildPrintPageStyle, f as formatCssPixels, a as applyPrintPageSize, g as getElementPrintPageSize } from "./printLayout-CIlG68Nj.js";
7
7
  import { n as normalizeFileViewerTheme } from "./options-SsS0Y_ki.js";
@@ -1,10 +1,10 @@
1
- import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, C as getConfig, h as sanitizeText, E as cleanAndMerge, F as defaultConfig_default, K as getThemeVariables3, am as computeDimensionOfText } from "./index-C00xjeF9.js";
1
+ import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, C as getConfig, h as sanitizeText, E as cleanAndMerge, F as defaultConfig_default, K as getThemeVariables3, am as computeDimensionOfText } from "./index-BdcltKuz.js";
2
2
  import { l as line$1 } from "./transform-xbmqYlhd.js";
3
3
  import { i as initRange } from "./init-ZxktEp_H.js";
4
4
  import { o as ordinal } from "./ordinal-CxptdPJm.js";
5
5
  import { l as linear } from "./linear-iB_ZihXg.js";
6
6
  import "./_commonjsHelpers-CCIqAdii.js";
7
- import "./preload-helper-DMSNAyVy.js";
7
+ import "./preload-helper-DEUi-brj.js";
8
8
  import "./defaultLocale-DCJjMHFj.js";
9
9
  import "./index-BEeZTDSC.js";
10
10
  function range(start, stop, step) {
@@ -4,11 +4,11 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>KAi</title>
7
- <script type="module" crossorigin src="./assets/index-C00xjeF9.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-BdcltKuz.js"></script>
8
8
  <link rel="modulepreload" crossorigin href="./assets/_commonjsHelpers-CCIqAdii.js">
9
- <link rel="modulepreload" crossorigin href="./assets/preload-helper-DMSNAyVy.js">
9
+ <link rel="modulepreload" crossorigin href="./assets/preload-helper-DEUi-brj.js">
10
10
  <link rel="modulepreload" crossorigin href="./assets/transform-xbmqYlhd.js">
11
- <link rel="stylesheet" crossorigin href="./assets/index-8nRdCLlO.css">
11
+ <link rel="stylesheet" crossorigin href="./assets/index-DHH8ke_y.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="root"></div>
@@ -9,8 +9,8 @@
9
9
  />
10
10
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
11
  <title>KAi Office Preview</title>
12
- <script type="module" crossorigin src="./assets/office-preview-J3VSY6Z8.js"></script>
13
- <link rel="modulepreload" crossorigin href="./assets/preload-helper-DMSNAyVy.js">
12
+ <script type="module" crossorigin src="./assets/office-preview-DyxwZTro.js"></script>
13
+ <link rel="modulepreload" crossorigin href="./assets/preload-helper-DEUi-brj.js">
14
14
  <link rel="stylesheet" crossorigin href="./assets/office-preview-dcvGW2k2.css">
15
15
  </head>
16
16
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinm/kai",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "description": "KAi — Multi-Agent Collaborative Chat",
5
5
  "bin": {
6
6
  "kai-cli": "bin/kai-cli.js"