@mog-sdk/node 0.1.13 → 0.1.14

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.
package/dist/index.cjs CHANGED
@@ -330,6 +330,36 @@ var init_errors = __esm({
330
330
  }
331
331
  });
332
332
 
333
+ // ../../contracts/src/document/protection.ts
334
+ var DEFAULT_PROTECTION_OPTIONS, DEFAULT_WORKBOOK_PROTECTION_OPTIONS;
335
+ var init_protection = __esm({
336
+ "../../contracts/src/document/protection.ts"() {
337
+ "use strict";
338
+ init_cjs_shims();
339
+ DEFAULT_PROTECTION_OPTIONS = {
340
+ // Selection defaults to true (users can always select cells)
341
+ selectLockedCells: true,
342
+ selectUnlockedCells: true,
343
+ // All other operations blocked by default
344
+ insertRows: false,
345
+ insertColumns: false,
346
+ deleteRows: false,
347
+ deleteColumns: false,
348
+ formatCells: false,
349
+ formatColumns: false,
350
+ formatRows: false,
351
+ sort: false,
352
+ useAutoFilter: false,
353
+ usePivotTableReports: false,
354
+ editObjects: false,
355
+ editScenarios: false
356
+ };
357
+ DEFAULT_WORKBOOK_PROTECTION_OPTIONS = {
358
+ structure: true
359
+ };
360
+ }
361
+ });
362
+
333
363
  // ../../infra/transport/src/command-metadata.gen.ts
334
364
  var BYTES_TUPLE_COMMANDS, RECALC_COMMANDS;
335
365
  var init_command_metadata_gen = __esm({
@@ -809,165 +839,6 @@ var init_napi_transport = __esm({
809
839
  }
810
840
  });
811
841
 
812
- // ../../node_modules/.pnpm/@tauri-apps+api@2.10.1/node_modules/@tauri-apps/api/external/tslib/tslib.es6.js
813
- function __classPrivateFieldGet(receiver, state, kind, f) {
814
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
815
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
816
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
817
- }
818
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
819
- if (kind === "m") throw new TypeError("Private method is not writable");
820
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
821
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
822
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
823
- }
824
- var init_tslib_es6 = __esm({
825
- "../../node_modules/.pnpm/@tauri-apps+api@2.10.1/node_modules/@tauri-apps/api/external/tslib/tslib.es6.js"() {
826
- "use strict";
827
- init_cjs_shims();
828
- }
829
- });
830
-
831
- // ../../node_modules/.pnpm/@tauri-apps+api@2.10.1/node_modules/@tauri-apps/api/core.js
832
- var core_exports = {};
833
- __export(core_exports, {
834
- Channel: () => Channel,
835
- PluginListener: () => PluginListener,
836
- Resource: () => Resource,
837
- SERIALIZE_TO_IPC_FN: () => SERIALIZE_TO_IPC_FN,
838
- addPluginListener: () => addPluginListener,
839
- checkPermissions: () => checkPermissions,
840
- convertFileSrc: () => convertFileSrc,
841
- invoke: () => invoke,
842
- isTauri: () => isTauri2,
843
- requestPermissions: () => requestPermissions,
844
- transformCallback: () => transformCallback
845
- });
846
- function transformCallback(callback, once = false) {
847
- return window.__TAURI_INTERNALS__.transformCallback(callback, once);
848
- }
849
- async function addPluginListener(plugin, event, cb) {
850
- const handler = new Channel(cb);
851
- try {
852
- await invoke(`plugin:${plugin}|register_listener`, {
853
- event,
854
- handler
855
- });
856
- return new PluginListener(plugin, event, handler.id);
857
- } catch {
858
- await invoke(`plugin:${plugin}|registerListener`, { event, handler });
859
- return new PluginListener(plugin, event, handler.id);
860
- }
861
- }
862
- async function checkPermissions(plugin) {
863
- return invoke(`plugin:${plugin}|check_permissions`);
864
- }
865
- async function requestPermissions(plugin) {
866
- return invoke(`plugin:${plugin}|request_permissions`);
867
- }
868
- async function invoke(cmd, args = {}, options) {
869
- return window.__TAURI_INTERNALS__.invoke(cmd, args, options);
870
- }
871
- function convertFileSrc(filePath, protocol = "asset") {
872
- return window.__TAURI_INTERNALS__.convertFileSrc(filePath, protocol);
873
- }
874
- function isTauri2() {
875
- return !!(globalThis || window).isTauri;
876
- }
877
- var _Channel_onmessage, _Channel_nextMessageIndex, _Channel_pendingMessages, _Channel_messageEndIndex, _Resource_rid, SERIALIZE_TO_IPC_FN, Channel, PluginListener, Resource;
878
- var init_core = __esm({
879
- "../../node_modules/.pnpm/@tauri-apps+api@2.10.1/node_modules/@tauri-apps/api/core.js"() {
880
- "use strict";
881
- init_cjs_shims();
882
- init_tslib_es6();
883
- SERIALIZE_TO_IPC_FN = "__TAURI_TO_IPC_KEY__";
884
- Channel = class {
885
- constructor(onmessage) {
886
- _Channel_onmessage.set(this, void 0);
887
- _Channel_nextMessageIndex.set(this, 0);
888
- _Channel_pendingMessages.set(this, []);
889
- _Channel_messageEndIndex.set(this, void 0);
890
- __classPrivateFieldSet(this, _Channel_onmessage, onmessage || (() => {
891
- }), "f");
892
- this.id = transformCallback((rawMessage) => {
893
- const index = rawMessage.index;
894
- if ("end" in rawMessage) {
895
- if (index == __classPrivateFieldGet(this, _Channel_nextMessageIndex, "f")) {
896
- this.cleanupCallback();
897
- } else {
898
- __classPrivateFieldSet(this, _Channel_messageEndIndex, index, "f");
899
- }
900
- return;
901
- }
902
- const message = rawMessage.message;
903
- if (index == __classPrivateFieldGet(this, _Channel_nextMessageIndex, "f")) {
904
- __classPrivateFieldGet(this, _Channel_onmessage, "f").call(this, message);
905
- __classPrivateFieldSet(this, _Channel_nextMessageIndex, __classPrivateFieldGet(this, _Channel_nextMessageIndex, "f") + 1, "f");
906
- while (__classPrivateFieldGet(this, _Channel_nextMessageIndex, "f") in __classPrivateFieldGet(this, _Channel_pendingMessages, "f")) {
907
- const message2 = __classPrivateFieldGet(this, _Channel_pendingMessages, "f")[__classPrivateFieldGet(this, _Channel_nextMessageIndex, "f")];
908
- __classPrivateFieldGet(this, _Channel_onmessage, "f").call(this, message2);
909
- delete __classPrivateFieldGet(this, _Channel_pendingMessages, "f")[__classPrivateFieldGet(this, _Channel_nextMessageIndex, "f")];
910
- __classPrivateFieldSet(this, _Channel_nextMessageIndex, __classPrivateFieldGet(this, _Channel_nextMessageIndex, "f") + 1, "f");
911
- }
912
- if (__classPrivateFieldGet(this, _Channel_nextMessageIndex, "f") === __classPrivateFieldGet(this, _Channel_messageEndIndex, "f")) {
913
- this.cleanupCallback();
914
- }
915
- } else {
916
- __classPrivateFieldGet(this, _Channel_pendingMessages, "f")[index] = message;
917
- }
918
- });
919
- }
920
- cleanupCallback() {
921
- window.__TAURI_INTERNALS__.unregisterCallback(this.id);
922
- }
923
- set onmessage(handler) {
924
- __classPrivateFieldSet(this, _Channel_onmessage, handler, "f");
925
- }
926
- get onmessage() {
927
- return __classPrivateFieldGet(this, _Channel_onmessage, "f");
928
- }
929
- [(_Channel_onmessage = /* @__PURE__ */ new WeakMap(), _Channel_nextMessageIndex = /* @__PURE__ */ new WeakMap(), _Channel_pendingMessages = /* @__PURE__ */ new WeakMap(), _Channel_messageEndIndex = /* @__PURE__ */ new WeakMap(), SERIALIZE_TO_IPC_FN)]() {
930
- return `__CHANNEL__:${this.id}`;
931
- }
932
- toJSON() {
933
- return this[SERIALIZE_TO_IPC_FN]();
934
- }
935
- };
936
- PluginListener = class {
937
- constructor(plugin, event, channelId) {
938
- this.plugin = plugin;
939
- this.event = event;
940
- this.channelId = channelId;
941
- }
942
- async unregister() {
943
- return invoke(`plugin:${this.plugin}|remove_listener`, {
944
- event: this.event,
945
- channelId: this.channelId
946
- });
947
- }
948
- };
949
- Resource = class {
950
- get rid() {
951
- return __classPrivateFieldGet(this, _Resource_rid, "f");
952
- }
953
- constructor(rid) {
954
- _Resource_rid.set(this, void 0);
955
- __classPrivateFieldSet(this, _Resource_rid, rid, "f");
956
- }
957
- /**
958
- * Destroys and cleans up this resource from memory.
959
- * **You should not call any method on this object anymore and should drop any reference to it.**
960
- */
961
- async close() {
962
- return invoke("plugin:resources|close", {
963
- rid: this.rid
964
- });
965
- }
966
- };
967
- _Resource_rid = /* @__PURE__ */ new WeakMap();
968
- }
969
- });
970
-
971
842
  // ../../infra/transport/src/tauri-transport.ts
972
843
  function createTauriTransport() {
973
844
  let invokeFunc = null;
@@ -975,8 +846,8 @@ function createTauriTransport() {
975
846
  async call(command, args) {
976
847
  let fn = invokeFunc;
977
848
  if (!fn) {
978
- const { invoke: invoke2 } = await Promise.resolve().then(() => (init_core(), core_exports));
979
- fn = invoke2;
849
+ const { invoke } = await import("@tauri-apps/api/core");
850
+ fn = invoke;
980
851
  invokeFunc = fn;
981
852
  }
982
853
  try {
@@ -2238,6 +2109,101 @@ var init_mutation_result_handler = __esm({
2238
2109
  }
2239
2110
  });
2240
2111
 
2112
+ // ../../contracts/src/core/commands.ts
2113
+ var init_commands = __esm({
2114
+ "../../contracts/src/core/commands.ts"() {
2115
+ "use strict";
2116
+ init_cjs_shims();
2117
+ }
2118
+ });
2119
+
2120
+ // ../../contracts/src/core/core.ts
2121
+ var init_core = __esm({
2122
+ "../../contracts/src/core/core.ts"() {
2123
+ "use strict";
2124
+ init_cjs_shims();
2125
+ }
2126
+ });
2127
+
2128
+ // ../../contracts/src/core/disposable.ts
2129
+ var init_disposable = __esm({
2130
+ "../../contracts/src/core/disposable.ts"() {
2131
+ "use strict";
2132
+ init_cjs_shims();
2133
+ }
2134
+ });
2135
+
2136
+ // ../../contracts/src/core/event-base.ts
2137
+ var init_event_base = __esm({
2138
+ "../../contracts/src/core/event-base.ts"() {
2139
+ "use strict";
2140
+ init_cjs_shims();
2141
+ }
2142
+ });
2143
+
2144
+ // ../../contracts/src/core/execution.ts
2145
+ var init_execution = __esm({
2146
+ "../../contracts/src/core/execution.ts"() {
2147
+ "use strict";
2148
+ init_cjs_shims();
2149
+ }
2150
+ });
2151
+
2152
+ // ../../contracts/src/core/result.ts
2153
+ var init_result = __esm({
2154
+ "../../contracts/src/core/result.ts"() {
2155
+ "use strict";
2156
+ init_cjs_shims();
2157
+ }
2158
+ });
2159
+
2160
+ // ../../contracts/src/core/schema.ts
2161
+ var init_schema = __esm({
2162
+ "../../contracts/src/core/schema.ts"() {
2163
+ "use strict";
2164
+ init_cjs_shims();
2165
+ }
2166
+ });
2167
+
2168
+ // ../../contracts/src/core/formatted-text.ts
2169
+ function asFormattedText(s) {
2170
+ return s;
2171
+ }
2172
+ function displayStringOrNull(text) {
2173
+ return text;
2174
+ }
2175
+ var init_formatted_text = __esm({
2176
+ "../../contracts/src/core/formatted-text.ts"() {
2177
+ "use strict";
2178
+ init_cjs_shims();
2179
+ }
2180
+ });
2181
+
2182
+ // ../../contracts/src/core/testing.ts
2183
+ var init_testing = __esm({
2184
+ "../../contracts/src/core/testing.ts"() {
2185
+ "use strict";
2186
+ init_cjs_shims();
2187
+ }
2188
+ });
2189
+
2190
+ // ../../contracts/src/core/index.ts
2191
+ var init_core2 = __esm({
2192
+ "../../contracts/src/core/index.ts"() {
2193
+ "use strict";
2194
+ init_cjs_shims();
2195
+ init_commands();
2196
+ init_core();
2197
+ init_disposable();
2198
+ init_event_base();
2199
+ init_execution();
2200
+ init_result();
2201
+ init_schema();
2202
+ init_formatted_text();
2203
+ init_testing();
2204
+ }
2205
+ });
2206
+
2241
2207
  // ../../kernel/src/bridges/wire/constants.gen.ts
2242
2208
  var HEADER_SIZE, CELL_STRIDE, MERGE_STRIDE, DIM_STRIDE, NO_STRING, MUTATION_HEADER_SIZE, PATCH_STRIDE, OFF_NUMBER_VALUE, OFF_DISPLAY_OFF, OFF_ERROR_OFF, OFF_FLAGS, OFF_FORMAT_IDX, OFF_DISPLAY_LEN, OFF_ERROR_LEN, OFF_BG_COLOR_OVERRIDE, OFF_FONT_COLOR_OVERRIDE, DATA_BAR_ENTRY_STRIDE, ICON_ENTRY_STRIDE, MUT_HAS_PROJECTION_CHANGES, MUT_HAS_ERRORS, MUT_HAS_PALETTE, ICON_SET_NAMES;
2243
2209
  var init_constants_gen = __esm({
@@ -2295,12 +2261,12 @@ var init_constants_gen = __esm({
2295
2261
  });
2296
2262
 
2297
2263
  // ../../kernel/src/bridges/wire/binary-mutation-reader.ts
2298
- var import_core, sharedDecoder, BinaryMutationReader;
2264
+ var sharedDecoder, BinaryMutationReader;
2299
2265
  var init_binary_mutation_reader = __esm({
2300
2266
  "../../kernel/src/bridges/wire/binary-mutation-reader.ts"() {
2301
2267
  "use strict";
2302
2268
  init_cjs_shims();
2303
- import_core = require("@mog-sdk/spreadsheet-contracts/core");
2269
+ init_core2();
2304
2270
  init_constants_gen();
2305
2271
  sharedDecoder = new TextDecoder("utf-8");
2306
2272
  BinaryMutationReader = class {
@@ -2399,7 +2365,7 @@ var init_binary_mutation_reader = __esm({
2399
2365
  const displayLen = this._view.getUint16(recOff + OFF_DISPLAY_LEN, true);
2400
2366
  if (displayOff === NO_STRING || displayLen === 0) return null;
2401
2367
  const start = this._stringPoolStart + displayOff;
2402
- return (0, import_core.asFormattedText)(sharedDecoder.decode(this._bytes.subarray(start, start + displayLen)));
2368
+ return asFormattedText(sharedDecoder.decode(this._bytes.subarray(start, start + displayLen)));
2403
2369
  }
2404
2370
  /**
2405
2371
  * Get a zero-copy subarray view of the raw UTF-8 display bytes for patch i.
@@ -2551,7 +2517,7 @@ var init_binary_mutation_reader = __esm({
2551
2517
  const displayLen = this._view.getUint16(recOff + OFF_DISPLAY_LEN, true);
2552
2518
  if (displayOff === NO_STRING || displayLen === 0) return null;
2553
2519
  const start = this._stringPoolStart + displayOff;
2554
- return (0, import_core.asFormattedText)(sharedDecoder.decode(this._bytes.subarray(start, start + displayLen)));
2520
+ return asFormattedText(sharedDecoder.decode(this._bytes.subarray(start, start + displayLen)));
2555
2521
  }
2556
2522
  /**
2557
2523
  * Get a zero-copy subarray view of the raw UTF-8 display bytes for spill patch i.
@@ -2600,12 +2566,12 @@ function rgbaU32ToHex(value) {
2600
2566
  const b = value >>> 8 & 255;
2601
2567
  return "#" + (1 << 24 | r << 16 | g << 8 | b).toString(16).slice(1).toUpperCase();
2602
2568
  }
2603
- var import_core2, sharedEncoder, sharedDecoder2, EMPTY_FORMAT, BinaryViewportBuffer, CellAccessor;
2569
+ var sharedEncoder, sharedDecoder2, EMPTY_FORMAT, BinaryViewportBuffer, CellAccessor;
2604
2570
  var init_binary_viewport_buffer = __esm({
2605
2571
  "../../kernel/src/bridges/wire/binary-viewport-buffer.ts"() {
2606
2572
  "use strict";
2607
2573
  init_cjs_shims();
2608
- import_core2 = require("@mog-sdk/spreadsheet-contracts/core");
2574
+ init_core2();
2609
2575
  init_constants_gen();
2610
2576
  init_constants_gen();
2611
2577
  sharedEncoder = new TextEncoder();
@@ -2925,7 +2891,7 @@ var init_binary_viewport_buffer = __esm({
2925
2891
  sampleCells.push({
2926
2892
  row,
2927
2893
  col,
2928
- displayText: (0, import_core2.displayStringOrNull)(reader.patchDisplayText(i))
2894
+ displayText: displayStringOrNull(reader.patchDisplayText(i))
2929
2895
  });
2930
2896
  }
2931
2897
  }
@@ -2944,7 +2910,7 @@ var init_binary_viewport_buffer = __esm({
2944
2910
  sampleCells.push({
2945
2911
  row,
2946
2912
  col,
2947
- displayText: (0, import_core2.displayStringOrNull)(reader.spillPatchDisplayText(i))
2913
+ displayText: displayStringOrNull(reader.spillPatchDisplayText(i))
2948
2914
  });
2949
2915
  }
2950
2916
  }
@@ -3702,7 +3668,7 @@ var init_binary_viewport_buffer = __esm({
3702
3668
  */
3703
3669
  get displayText() {
3704
3670
  const decoded = this._buffer.getOrDecodeString(this._displayOff, this._displayLen);
3705
- return decoded !== null ? (0, import_core2.asFormattedText)(decoded) : null;
3671
+ return decoded !== null ? asFormattedText(decoded) : null;
3706
3672
  }
3707
3673
  /**
3708
3674
  * Get the error text for the current cell.
@@ -3764,13 +3730,13 @@ var init_binary_viewport_buffer = __esm({
3764
3730
  function cellKey(row, col) {
3765
3731
  return `${row},${col}`;
3766
3732
  }
3767
- var import_core3, ViewportCoordinator;
3733
+ var ViewportCoordinator;
3768
3734
  var init_viewport_coordinator = __esm({
3769
3735
  "../../kernel/src/bridges/wire/viewport-coordinator.ts"() {
3770
3736
  "use strict";
3771
3737
  init_cjs_shims();
3772
3738
  init_binary_viewport_buffer();
3773
- import_core3 = require("@mog-sdk/spreadsheet-contracts/core");
3739
+ init_core2();
3774
3740
  ViewportCoordinator = class {
3775
3741
  constructor(viewportId) {
3776
3742
  /** Monotonically increasing version, incremented on every write. */
@@ -3891,7 +3857,7 @@ var init_viewport_coordinator = __esm({
3891
3857
  flags: reader.patchFlags(i),
3892
3858
  numberValue: reader.patchNumberValue(i),
3893
3859
  formatIdx: reader.patchFormatIdx(i),
3894
- displayString: (0, import_core3.displayStringOrNull)(reader.patchDisplayText(i)),
3860
+ displayString: displayStringOrNull(reader.patchDisplayText(i)),
3895
3861
  errorString: reader.patchErrorText(i),
3896
3862
  bgColorOverride: reader.patchBgColorOverride(i),
3897
3863
  fontColorOverride: reader.patchFontColorOverride(i),
@@ -3908,7 +3874,7 @@ var init_viewport_coordinator = __esm({
3908
3874
  flags: reader.spillPatchFlags(i),
3909
3875
  numberValue: reader.spillPatchNumberValue(i),
3910
3876
  formatIdx: reader.spillPatchFormatIdx(i),
3911
- displayString: (0, import_core3.displayStringOrNull)(reader.spillPatchDisplayText(i)),
3877
+ displayString: displayStringOrNull(reader.spillPatchDisplayText(i)),
3912
3878
  errorString: reader.spillPatchErrorText(i),
3913
3879
  bgColorOverride: reader.spillPatchBgColorOverride(i),
3914
3880
  fontColorOverride: reader.spillPatchFontColorOverride(i),
@@ -6837,13 +6803,13 @@ async function rustSchemaInferColumn(values) {
6837
6803
  const t = await getSchemaTransport();
6838
6804
  return t.call("compute_schema_infer_column", { values });
6839
6805
  }
6840
- var import_protection, ComputeBridge, schemaTransport;
6806
+ var ComputeBridge, schemaTransport;
6841
6807
  var init_compute_bridge = __esm({
6842
6808
  "../../kernel/src/bridges/compute/compute-bridge.ts"() {
6843
6809
  "use strict";
6844
6810
  init_cjs_shims();
6845
6811
  init_formula_string();
6846
- import_protection = require("@mog-sdk/spreadsheet-contracts/protection");
6812
+ init_protection();
6847
6813
  init_src();
6848
6814
  init_compute_wire_converters();
6849
6815
  init_compute_core();
@@ -7185,7 +7151,7 @@ var init_compute_bridge = __esm({
7185
7151
  async getSheetProtectionOptions(sheetId) {
7186
7152
  const settings = await this.getSheetSettings(sheetId);
7187
7153
  if (!settings.isProtected) return null;
7188
- return { ...import_protection.DEFAULT_PROTECTION_OPTIONS, ...settings.protectionOptions };
7154
+ return { ...DEFAULT_PROTECTION_OPTIONS, ...settings.protectionOptions };
7189
7155
  }
7190
7156
  /** Set multiple sheet settings at once (iterates entries). */
7191
7157
  async setSheetSettings(sheetId, updates) {
@@ -7269,19 +7235,77 @@ var init_compute_bridge = __esm({
7269
7235
  }
7270
7236
  });
7271
7237
 
7238
+ // ../../contracts/src/rendering/grid-renderer.ts
7239
+ var init_grid_renderer = __esm({
7240
+ "../../contracts/src/rendering/grid-renderer.ts"() {
7241
+ "use strict";
7242
+ init_cjs_shims();
7243
+ }
7244
+ });
7245
+
7246
+ // ../../contracts/src/rendering/constants.ts
7247
+ var DEFAULT_COL_WIDTH_WINDOWS, DEFAULT_COL_WIDTH_MACOS, _isMac, DEFAULT_COL_WIDTH;
7248
+ var init_constants = __esm({
7249
+ "../../contracts/src/rendering/constants.ts"() {
7250
+ "use strict";
7251
+ init_cjs_shims();
7252
+ DEFAULT_COL_WIDTH_WINDOWS = 64;
7253
+ DEFAULT_COL_WIDTH_MACOS = 72;
7254
+ _isMac = typeof navigator !== "undefined" && /Mac/.test(navigator.platform ?? "");
7255
+ DEFAULT_COL_WIDTH = _isMac ? DEFAULT_COL_WIDTH_MACOS : DEFAULT_COL_WIDTH_WINDOWS;
7256
+ }
7257
+ });
7258
+
7259
+ // ../../contracts/src/rendering/data-sources.ts
7260
+ var DEFAULT_CHROME_THEME;
7261
+ var init_data_sources = __esm({
7262
+ "../../contracts/src/rendering/data-sources.ts"() {
7263
+ "use strict";
7264
+ init_cjs_shims();
7265
+ DEFAULT_CHROME_THEME = {
7266
+ canvasBackground: "#ffffff",
7267
+ gridlineColor: "#e0e0e0",
7268
+ headerBackground: "#f8f9fa",
7269
+ headerText: "#333333",
7270
+ headerBorder: "#dadce0",
7271
+ headerHighlightBackground: "#e8eaed",
7272
+ headerHighlightText: "#1a73e8",
7273
+ selectionFill: "rgba(66, 133, 244, 0.1)",
7274
+ selectionBorder: "#4285f4",
7275
+ activeCellBorder: "#1a73e8",
7276
+ fillHandleColor: "#4285f4",
7277
+ dragSourceColor: "rgba(66, 133, 244, 0.15)",
7278
+ dragTargetColor: "#4285f4",
7279
+ scrollbarTrack: "#f1f1f1",
7280
+ scrollbarThumb: "#c1c1c1"
7281
+ };
7282
+ }
7283
+ });
7284
+
7285
+ // ../../contracts/src/rendering/index.ts
7286
+ var init_rendering = __esm({
7287
+ "../../contracts/src/rendering/index.ts"() {
7288
+ "use strict";
7289
+ init_cjs_shims();
7290
+ init_grid_renderer();
7291
+ init_constants();
7292
+ init_data_sources();
7293
+ }
7294
+ });
7295
+
7272
7296
  // ../../kernel/src/domain/sheets/sheet-meta-defaults.ts
7273
7297
  function getSheetMetaDefault(field) {
7274
7298
  const def = SHEET_META_SCHEMA[field];
7275
7299
  return def.default;
7276
7300
  }
7277
- var import_rendering, SHEET_META_DEFAULT_ROW_HEIGHT, SHEET_META_DEFAULT_COL_WIDTH, SHEET_META_DEFAULT_GRIDLINE_COLOR, SHEET_META_SCHEMA;
7301
+ var SHEET_META_DEFAULT_ROW_HEIGHT, SHEET_META_DEFAULT_COL_WIDTH, SHEET_META_DEFAULT_GRIDLINE_COLOR, SHEET_META_SCHEMA;
7278
7302
  var init_sheet_meta_defaults = __esm({
7279
7303
  "../../kernel/src/domain/sheets/sheet-meta-defaults.ts"() {
7280
7304
  "use strict";
7281
7305
  init_cjs_shims();
7282
- import_rendering = require("@mog-sdk/spreadsheet-contracts/rendering");
7306
+ init_rendering();
7283
7307
  SHEET_META_DEFAULT_ROW_HEIGHT = 20;
7284
- SHEET_META_DEFAULT_COL_WIDTH = import_rendering.DEFAULT_COL_WIDTH;
7308
+ SHEET_META_DEFAULT_COL_WIDTH = DEFAULT_COL_WIDTH;
7285
7309
  SHEET_META_DEFAULT_GRIDLINE_COLOR = "#e2e2e2";
7286
7310
  SHEET_META_SCHEMA = {
7287
7311
  // ===========================================================================
@@ -7821,12 +7845,11 @@ function normalizeRange(range2) {
7821
7845
  sheetId: range2.sheetId
7822
7846
  };
7823
7847
  }
7824
- var import_core4;
7825
7848
  var init_range = __esm({
7826
7849
  "../../spreadsheet-utils/src/range.ts"() {
7827
7850
  "use strict";
7828
7851
  init_cjs_shims();
7829
- import_core4 = require("@mog-sdk/spreadsheet-contracts/core");
7852
+ init_core2();
7830
7853
  }
7831
7854
  });
7832
7855
 
@@ -9292,7 +9315,7 @@ var init_data_extractor = __esm({
9292
9315
  });
9293
9316
 
9294
9317
  // ../../charts/src/core/index.ts
9295
- var init_core2 = __esm({
9318
+ var init_core3 = __esm({
9296
9319
  "../../charts/src/core/index.ts"() {
9297
9320
  "use strict";
9298
9321
  init_cjs_shims();
@@ -13276,7 +13299,7 @@ var init_src2 = __esm({
13276
13299
  "../../charts/src/index.ts"() {
13277
13300
  "use strict";
13278
13301
  init_cjs_shims();
13279
- init_core2();
13302
+ init_core3();
13280
13303
  init_primitives();
13281
13304
  init_compiler();
13282
13305
  }
@@ -16386,7 +16409,7 @@ function toDisposable(fn) {
16386
16409
  return disposable;
16387
16410
  }
16388
16411
  var DisposableBase, DisposableStore, DisposableNone;
16389
- var init_disposable = __esm({
16412
+ var init_disposable2 = __esm({
16390
16413
  "../../spreadsheet-utils/src/disposable.ts"() {
16391
16414
  "use strict";
16392
16415
  init_cjs_shims();
@@ -16450,7 +16473,7 @@ function ok(value) {
16450
16473
  function err(error) {
16451
16474
  return { ok: false, error };
16452
16475
  }
16453
- var init_result = __esm({
16476
+ var init_result2 = __esm({
16454
16477
  "../../spreadsheet-utils/src/result.ts"() {
16455
16478
  "use strict";
16456
16479
  init_cjs_shims();
@@ -16463,7 +16486,7 @@ var init_subscribable = __esm({
16463
16486
  "../../kernel/src/services/primitives/subscribable.ts"() {
16464
16487
  "use strict";
16465
16488
  init_cjs_shims();
16466
- init_disposable();
16489
+ init_disposable2();
16467
16490
  Subscribable = class extends DisposableBase {
16468
16491
  constructor() {
16469
16492
  super(...arguments);
@@ -16523,7 +16546,7 @@ var init_event_emitter = __esm({
16523
16546
  "../../kernel/src/services/primitives/event-emitter.ts"() {
16524
16547
  "use strict";
16525
16548
  init_cjs_shims();
16526
- init_disposable();
16549
+ init_disposable2();
16527
16550
  TypedEventEmitter = class extends DisposableBase {
16528
16551
  constructor() {
16529
16552
  super(...arguments);
@@ -16588,8 +16611,8 @@ var init_primitives3 = __esm({
16588
16611
  "../../kernel/src/services/primitives/index.ts"() {
16589
16612
  "use strict";
16590
16613
  init_cjs_shims();
16591
- init_disposable();
16592
- init_result();
16614
+ init_disposable2();
16615
+ init_result2();
16593
16616
  init_subscribable();
16594
16617
  init_event_emitter();
16595
16618
  }
@@ -24639,10 +24662,37 @@ var init_equation_bridge = __esm({
24639
24662
  }
24640
24663
  });
24641
24664
 
24665
+ // ../../contracts/src/bridges/ink-recognition-bridge.ts
24666
+ var DEFAULT_RECOGNITION_THRESHOLDS;
24667
+ var init_ink_recognition_bridge = __esm({
24668
+ "../../contracts/src/bridges/ink-recognition-bridge.ts"() {
24669
+ "use strict";
24670
+ init_cjs_shims();
24671
+ DEFAULT_RECOGNITION_THRESHOLDS = {
24672
+ line: 0.7,
24673
+ rectangle: 0.65,
24674
+ ellipse: 0.7,
24675
+ triangle: 0.6,
24676
+ arrow: 0.6,
24677
+ star: 0.65,
24678
+ text: 0.5
24679
+ };
24680
+ }
24681
+ });
24682
+
24683
+ // ../../contracts/src/bridges/index.ts
24684
+ var init_bridges = __esm({
24685
+ "../../contracts/src/bridges/index.ts"() {
24686
+ "use strict";
24687
+ init_cjs_shims();
24688
+ init_ink_recognition_bridge();
24689
+ }
24690
+ });
24691
+
24642
24692
  // ../../kernel/src/domain/drawing/ink-recognition-bridge.ts
24643
24693
  function createInkRecognitionBridge(initialThresholds) {
24644
24694
  let thresholds = {
24645
- ...import_bridges.DEFAULT_RECOGNITION_THRESHOLDS,
24695
+ ...DEFAULT_RECOGNITION_THRESHOLDS,
24646
24696
  ...initialThresholds
24647
24697
  };
24648
24698
  return {
@@ -25055,12 +25105,11 @@ async function recognizeWithBrowserAPI(strokes) {
25055
25105
  }
25056
25106
  return null;
25057
25107
  }
25058
- var import_bridges;
25059
- var init_ink_recognition_bridge = __esm({
25108
+ var init_ink_recognition_bridge2 = __esm({
25060
25109
  "../../kernel/src/domain/drawing/ink-recognition-bridge.ts"() {
25061
25110
  "use strict";
25062
25111
  init_cjs_shims();
25063
- import_bridges = require("@mog-sdk/spreadsheet-contracts/bridges");
25112
+ init_bridges();
25064
25113
  }
25065
25114
  });
25066
25115
 
@@ -30073,7 +30122,7 @@ var init_arrows = __esm({
30073
30122
 
30074
30123
  // ../../canvas/drawing/shapes/src/presets/constants.ts
30075
30124
  var KAPPA;
30076
- var init_constants = __esm({
30125
+ var init_constants2 = __esm({
30077
30126
  "../../canvas/drawing/shapes/src/presets/constants.ts"() {
30078
30127
  "use strict";
30079
30128
  init_cjs_shims();
@@ -30097,7 +30146,7 @@ var init_primitives4 = __esm({
30097
30146
  "use strict";
30098
30147
  init_cjs_shims();
30099
30148
  init_src3();
30100
- init_constants();
30149
+ init_constants2();
30101
30150
  }
30102
30151
  });
30103
30152
 
@@ -30107,7 +30156,7 @@ var init_basic = __esm({
30107
30156
  "use strict";
30108
30157
  init_cjs_shims();
30109
30158
  init_src3();
30110
- init_constants();
30159
+ init_constants2();
30111
30160
  init_primitives4();
30112
30161
  init_registry3();
30113
30162
  init_primitives4();
@@ -70180,23 +70229,438 @@ var init_rules = __esm({
70180
70229
  }
70181
70230
  });
70182
70231
 
70232
+ // ../../contracts/src/smartart/layouts.ts
70233
+ var init_layouts2 = __esm({
70234
+ "../../contracts/src/smartart/layouts.ts"() {
70235
+ "use strict";
70236
+ init_cjs_shims();
70237
+ }
70238
+ });
70239
+
70240
+ // ../../contracts/src/smartart/ooxml-algorithm-types.ts
70241
+ var ParameterId, VALID_PARAMS_BY_ALGORITHM;
70242
+ var init_ooxml_algorithm_types = __esm({
70243
+ "../../contracts/src/smartart/ooxml-algorithm-types.ts"() {
70244
+ "use strict";
70245
+ init_cjs_shims();
70246
+ ParameterId = {
70247
+ // ── Alignment Parameters ──────────────────────────────────────────────────
70248
+ /** Horizontal alignment of children within the layout area. */
70249
+ horzAlign: "horzAlign",
70250
+ /** Vertical alignment of children within the layout area. */
70251
+ vertAlign: "vertAlign",
70252
+ /** Horizontal alignment for individual nodes (hierarchy algorithms). */
70253
+ nodeHorzAlign: "nodeHorzAlign",
70254
+ /** Vertical alignment for individual nodes (hierarchy algorithms). */
70255
+ nodeVertAlign: "nodeVertAlign",
70256
+ /** Hierarchy alignment (16 possible values for tree orientation). */
70257
+ hierAlign: "hierAlign",
70258
+ /** Text alignment (whether text should be aligned with shape). */
70259
+ alignTx: "alignTx",
70260
+ // ── Direction Parameters ──────────────────────────────────────────────────
70261
+ /** Child direction (horizontal or vertical arrangement of children). */
70262
+ chDir: "chDir",
70263
+ /** Child alignment (how children align on the cross-axis). */
70264
+ chAlign: "chAlign",
70265
+ /** Secondary child alignment (for complex hierarchy layouts). */
70266
+ secChAlign: "secChAlign",
70267
+ /** Linear direction (which edge children flow from). */
70268
+ linDir: "linDir",
70269
+ /** Secondary linear direction (for complex hierarchy layouts). */
70270
+ secLinDir: "secLinDir",
70271
+ /** Text direction (horizontal or vertical text blocks). */
70272
+ txDir: "txDir",
70273
+ /** Text block direction (horizontal or vertical text flow). */
70274
+ txBlDir: "txBlDir",
70275
+ /** Growth direction (which corner the snake starts from). */
70276
+ grDir: "grDir",
70277
+ /** Flow direction (whether snake flows by row or column). */
70278
+ flowDir: "flowDir",
70279
+ /** Continue direction (same direction or reversed for each row). */
70280
+ contDir: "contDir",
70281
+ // ── Connector Parameters ──────────────────────────────────────────────────
70282
+ /** Connector routing style (straight, bend, curve, long curve). */
70283
+ connRout: "connRout",
70284
+ /** Beginning/start arrowhead style for connectors. */
70285
+ begSty: "begSty",
70286
+ /** Ending arrowhead style for connectors. */
70287
+ endSty: "endSty",
70288
+ /** Connector dimension (1D, 2D, or custom). */
70289
+ dim: "dim",
70290
+ /** Source node name for connector routing. */
70291
+ srcNode: "srcNode",
70292
+ /** Destination node name for connector routing. */
70293
+ dstNode: "dstNode",
70294
+ /** Beginning connection points (which points on the source shape). */
70295
+ begPts: "begPts",
70296
+ /** Ending connection points (which points on the destination shape). */
70297
+ endPts: "endPts",
70298
+ /** Bend point position for right-angle connectors. */
70299
+ bendPt: "bendPt",
70300
+ // ── Cycle/Circular Parameters ─────────────────────────────────────────────
70301
+ /** Start angle in degrees for cycle algorithm. */
70302
+ stAng: "stAng",
70303
+ /** Span angle in degrees for cycle algorithm. */
70304
+ spanAng: "spanAng",
70305
+ /** Rotation path (none or along the circular path). */
70306
+ rotPath: "rotPath",
70307
+ /** Center shape mapping (whether first node goes to center). */
70308
+ ctrShpMap: "ctrShpMap",
70309
+ // ── Snake Parameters ──────────────────────────────────────────────────────
70310
+ /** Breakpoint logic for snake wrapping (end of canvas, balanced, fixed). */
70311
+ bkpt: "bkpt",
70312
+ /** Breakpoint fixed value (number of items per row when bkpt=fixed). */
70313
+ bkPtFixedVal: "bkPtFixedVal",
70314
+ /** Offset mode for staggered rows in snake layout. */
70315
+ off: "off",
70316
+ // ── Linear/Sequence Parameters ────────────────────────────────────────────
70317
+ /** Starting element index (which node type starts the alternating sequence). */
70318
+ stElem: "stElem",
70319
+ /** Starting bullet level for text algorithm. */
70320
+ stBulletLvl: "stBulletLvl",
70321
+ // ── Pyramid Parameters ────────────────────────────────────────────────────
70322
+ /** Pyramid accent position (before or after the level). */
70323
+ pyraAcctPos: "pyraAcctPos",
70324
+ /** Pyramid accent text margin (step or stack behavior). */
70325
+ pyraAcctTxMar: "pyraAcctTxMar",
70326
+ /** Pyramid level node name. */
70327
+ pyraLvlNode: "pyraLvlNode",
70328
+ /** Pyramid accent background node name. */
70329
+ pyraAcctBkgdNode: "pyraAcctBkgdNode",
70330
+ /** Pyramid accent text node name. */
70331
+ pyraAcctTxNode: "pyraAcctTxNode",
70332
+ // ── Text Parameters ───────────────────────────────────────────────────────
70333
+ /** Parent text LTR alignment. */
70334
+ parTxLTRAlign: "parTxLTRAlign",
70335
+ /** Parent text RTL alignment. */
70336
+ parTxRTLAlign: "parTxRTLAlign",
70337
+ /** Shape text LTR alignment for children. */
70338
+ shpTxLTRAlignCh: "shpTxLTRAlignCh",
70339
+ /** Shape text RTL alignment for children. */
70340
+ shpTxRTLAlignCh: "shpTxRTLAlignCh",
70341
+ /** Text anchor horizontal position. */
70342
+ txAnchorHorz: "txAnchorHorz",
70343
+ /** Text anchor vertical position. */
70344
+ txAnchorVert: "txAnchorVert",
70345
+ /** Text anchor horizontal position for children. */
70346
+ txAnchorHorzCh: "txAnchorHorzCh",
70347
+ /** Text anchor vertical position for children. */
70348
+ txAnchorVertCh: "txAnchorVertCh",
70349
+ /** Auto text rotation mode (none, upright, gravity-based). */
70350
+ autoTxRot: "autoTxRot",
70351
+ // ── Spacing & Sizing Parameters ───────────────────────────────────────────
70352
+ /** Aspect ratio value. */
70353
+ ar: "ar",
70354
+ /** Line spacing for parent text (percentage). */
70355
+ lnSpPar: "lnSpPar",
70356
+ /** Line spacing after parent paragraph (percentage). */
70357
+ lnSpAfParP: "lnSpAfParP",
70358
+ /** Line spacing for child text (percentage). */
70359
+ lnSpCh: "lnSpCh",
70360
+ /** Line spacing after child paragraph (percentage). */
70361
+ lnSpAfChP: "lnSpAfChP",
70362
+ // ── Hierarchy-Specific Parameters ─────────────────────────────────────────
70363
+ /** Root short distance flag (hierarchy algorithms). */
70364
+ rtShortDist: "rtShortDist",
70365
+ // ── Fallback Parameter ────────────────────────────────────────────────────
70366
+ /** Fallback dimension for the algorithm. */
70367
+ fallback: "fallback"
70368
+ };
70369
+ VALID_PARAMS_BY_ALGORITHM = {
70370
+ composite: [ParameterId.ar],
70371
+ lin: [
70372
+ ParameterId.linDir,
70373
+ ParameterId.chDir,
70374
+ ParameterId.chAlign,
70375
+ ParameterId.horzAlign,
70376
+ ParameterId.vertAlign,
70377
+ ParameterId.stElem,
70378
+ ParameterId.fallback,
70379
+ ParameterId.nodeHorzAlign,
70380
+ ParameterId.nodeVertAlign
70381
+ ],
70382
+ snake: [
70383
+ ParameterId.grDir,
70384
+ ParameterId.flowDir,
70385
+ ParameterId.contDir,
70386
+ ParameterId.bkpt,
70387
+ ParameterId.bkPtFixedVal,
70388
+ ParameterId.off
70389
+ ],
70390
+ cycle: [ParameterId.stAng, ParameterId.spanAng, ParameterId.rotPath, ParameterId.ctrShpMap],
70391
+ hierRoot: [
70392
+ ParameterId.hierAlign,
70393
+ ParameterId.nodeHorzAlign,
70394
+ ParameterId.nodeVertAlign,
70395
+ ParameterId.rtShortDist
70396
+ ],
70397
+ hierChild: [
70398
+ ParameterId.chAlign,
70399
+ ParameterId.linDir,
70400
+ ParameterId.secChAlign,
70401
+ ParameterId.secLinDir
70402
+ ],
70403
+ pyra: [
70404
+ ParameterId.linDir,
70405
+ ParameterId.txDir,
70406
+ ParameterId.pyraAcctPos,
70407
+ ParameterId.pyraAcctTxMar,
70408
+ ParameterId.pyraLvlNode,
70409
+ ParameterId.pyraAcctBkgdNode,
70410
+ ParameterId.pyraAcctTxNode
70411
+ ],
70412
+ conn: [
70413
+ ParameterId.srcNode,
70414
+ ParameterId.dstNode,
70415
+ ParameterId.connRout,
70416
+ ParameterId.begSty,
70417
+ ParameterId.endSty,
70418
+ ParameterId.dim,
70419
+ ParameterId.bendPt,
70420
+ ParameterId.begPts,
70421
+ ParameterId.endPts
70422
+ ],
70423
+ tx: [
70424
+ ParameterId.parTxLTRAlign,
70425
+ ParameterId.parTxRTLAlign,
70426
+ ParameterId.shpTxLTRAlignCh,
70427
+ ParameterId.shpTxRTLAlignCh,
70428
+ ParameterId.txAnchorVert,
70429
+ ParameterId.txAnchorHorz,
70430
+ ParameterId.txAnchorVertCh,
70431
+ ParameterId.txAnchorHorzCh,
70432
+ ParameterId.txBlDir,
70433
+ ParameterId.autoTxRot,
70434
+ ParameterId.stBulletLvl,
70435
+ ParameterId.lnSpPar,
70436
+ ParameterId.lnSpAfParP,
70437
+ ParameterId.lnSpCh,
70438
+ ParameterId.lnSpAfChP,
70439
+ ParameterId.alignTx
70440
+ ],
70441
+ sp: []
70442
+ };
70443
+ }
70444
+ });
70445
+
70446
+ // ../../contracts/src/smartart/ooxml-data-model-types.ts
70447
+ var init_ooxml_data_model_types = __esm({
70448
+ "../../contracts/src/smartart/ooxml-data-model-types.ts"() {
70449
+ "use strict";
70450
+ init_cjs_shims();
70451
+ }
70452
+ });
70453
+
70454
+ // ../../contracts/src/smartart/ooxml-drawing-types.ts
70455
+ var init_ooxml_drawing_types = __esm({
70456
+ "../../contracts/src/smartart/ooxml-drawing-types.ts"() {
70457
+ "use strict";
70458
+ init_cjs_shims();
70459
+ }
70460
+ });
70461
+
70462
+ // ../../contracts/src/smartart/ooxml-engine-types.ts
70463
+ var POSITIONAL_CONSTRAINT_TYPES, DIMENSIONAL_CONSTRAINT_TYPES, MARGIN_CONSTRAINT_TYPES, FONT_CONSTRAINT_TYPES, SPACING_CONSTRAINT_TYPES, GEOMETRY_CONSTRAINT_TYPES, USER_DEFINED_CONSTRAINT_TYPES, ALL_CONSTRAINT_TYPES, ALL_ELEMENT_TYPES, ALL_FUNCTION_TYPES, ALL_FUNCTION_OPERATORS, ALL_FUNCTION_ARGUMENTS;
70464
+ var init_ooxml_engine_types = __esm({
70465
+ "../../contracts/src/smartart/ooxml-engine-types.ts"() {
70466
+ "use strict";
70467
+ init_cjs_shims();
70468
+ POSITIONAL_CONSTRAINT_TYPES = [
70469
+ "l",
70470
+ "t",
70471
+ "r",
70472
+ "b",
70473
+ "lOff",
70474
+ "tOff",
70475
+ "rOff",
70476
+ "bOff",
70477
+ "ctrX",
70478
+ "ctrY",
70479
+ "ctrXOff",
70480
+ "ctrYOff"
70481
+ ];
70482
+ DIMENSIONAL_CONSTRAINT_TYPES = [
70483
+ "w",
70484
+ "h",
70485
+ "wOff",
70486
+ "hOff"
70487
+ ];
70488
+ MARGIN_CONSTRAINT_TYPES = [
70489
+ "lMarg",
70490
+ "tMarg",
70491
+ "rMarg",
70492
+ "bMarg",
70493
+ "begMarg",
70494
+ "endMarg"
70495
+ ];
70496
+ FONT_CONSTRAINT_TYPES = [
70497
+ "primFontSz",
70498
+ "secFontSz"
70499
+ ];
70500
+ SPACING_CONSTRAINT_TYPES = [
70501
+ "sp",
70502
+ "sibSp",
70503
+ "secSibSp"
70504
+ ];
70505
+ GEOMETRY_CONSTRAINT_TYPES = [
70506
+ "connDist",
70507
+ "diam",
70508
+ "stemThick",
70509
+ "begPad",
70510
+ "endPad",
70511
+ "wArH",
70512
+ "hArH",
70513
+ "bendDist"
70514
+ ];
70515
+ USER_DEFINED_CONSTRAINT_TYPES = [
70516
+ "userA",
70517
+ "userB",
70518
+ "userC",
70519
+ "userD",
70520
+ "userE",
70521
+ "userF",
70522
+ "userG",
70523
+ "userH",
70524
+ "userI",
70525
+ "userJ",
70526
+ "userK",
70527
+ "userL",
70528
+ "userM",
70529
+ "userN",
70530
+ "userO",
70531
+ "userP",
70532
+ "userQ",
70533
+ "userR",
70534
+ "userS",
70535
+ "userT",
70536
+ "userU",
70537
+ "userV",
70538
+ "userW",
70539
+ "userX",
70540
+ "userY",
70541
+ "userZ"
70542
+ ];
70543
+ ALL_CONSTRAINT_TYPES = [
70544
+ ...POSITIONAL_CONSTRAINT_TYPES,
70545
+ ...DIMENSIONAL_CONSTRAINT_TYPES,
70546
+ ...MARGIN_CONSTRAINT_TYPES,
70547
+ ...FONT_CONSTRAINT_TYPES,
70548
+ ...SPACING_CONSTRAINT_TYPES,
70549
+ ...GEOMETRY_CONSTRAINT_TYPES,
70550
+ "pyraAcctRatio",
70551
+ "alignOff",
70552
+ ...USER_DEFINED_CONSTRAINT_TYPES,
70553
+ "none"
70554
+ ];
70555
+ ALL_ELEMENT_TYPES = [
70556
+ "all",
70557
+ "doc",
70558
+ "node",
70559
+ "norm",
70560
+ "nonNorm",
70561
+ "asst",
70562
+ "nonAsst",
70563
+ "parTrans",
70564
+ "pres",
70565
+ "sibTrans"
70566
+ ];
70567
+ ALL_FUNCTION_TYPES = [
70568
+ "cnt",
70569
+ "pos",
70570
+ "revPos",
70571
+ "posEven",
70572
+ "posOdd",
70573
+ "var",
70574
+ "depth",
70575
+ "maxDepth"
70576
+ ];
70577
+ ALL_FUNCTION_OPERATORS = [
70578
+ "equ",
70579
+ "neq",
70580
+ "gt",
70581
+ "lt",
70582
+ "gte",
70583
+ "lte"
70584
+ ];
70585
+ ALL_FUNCTION_ARGUMENTS = [
70586
+ "none",
70587
+ "orgChart",
70588
+ "chMax",
70589
+ "chPref",
70590
+ "bulEnabled",
70591
+ "dir",
70592
+ "hierBranch",
70593
+ "animOne",
70594
+ "animLvl",
70595
+ "resizeHandles"
70596
+ ];
70597
+ }
70598
+ });
70599
+
70600
+ // ../../contracts/src/smartart/ooxml-layout-types.ts
70601
+ var init_ooxml_layout_types = __esm({
70602
+ "../../contracts/src/smartart/ooxml-layout-types.ts"() {
70603
+ "use strict";
70604
+ init_cjs_shims();
70605
+ }
70606
+ });
70607
+
70608
+ // ../../contracts/src/smartart/ooxml-style-types.ts
70609
+ var init_ooxml_style_types = __esm({
70610
+ "../../contracts/src/smartart/ooxml-style-types.ts"() {
70611
+ "use strict";
70612
+ init_cjs_shims();
70613
+ }
70614
+ });
70615
+
70616
+ // ../../contracts/src/smartart/styles.ts
70617
+ var init_styles3 = __esm({
70618
+ "../../contracts/src/smartart/styles.ts"() {
70619
+ "use strict";
70620
+ init_cjs_shims();
70621
+ }
70622
+ });
70623
+
70624
+ // ../../contracts/src/smartart/types.ts
70625
+ var init_types4 = __esm({
70626
+ "../../contracts/src/smartart/types.ts"() {
70627
+ "use strict";
70628
+ init_cjs_shims();
70629
+ }
70630
+ });
70631
+
70632
+ // ../../contracts/src/smartart/index.ts
70633
+ var init_smartart = __esm({
70634
+ "../../contracts/src/smartart/index.ts"() {
70635
+ "use strict";
70636
+ init_cjs_shims();
70637
+ init_layouts2();
70638
+ init_ooxml_algorithm_types();
70639
+ init_ooxml_data_model_types();
70640
+ init_ooxml_drawing_types();
70641
+ init_ooxml_engine_types();
70642
+ init_ooxml_layout_types();
70643
+ init_ooxml_style_types();
70644
+ init_styles3();
70645
+ init_types4();
70646
+ }
70647
+ });
70648
+
70183
70649
  // ../../canvas/drawing/smartart/src/engine/algorithms/composite.ts
70184
- var import_smartart2;
70185
70650
  var init_composite = __esm({
70186
70651
  "../../canvas/drawing/smartart/src/engine/algorithms/composite.ts"() {
70187
70652
  "use strict";
70188
70653
  init_cjs_shims();
70189
- import_smartart2 = require("@mog-sdk/spreadsheet-contracts/smartart");
70654
+ init_smartart();
70190
70655
  }
70191
70656
  });
70192
70657
 
70193
70658
  // ../../canvas/drawing/smartart/src/engine/algorithms/linear.ts
70194
- var import_smartart3;
70195
70659
  var init_linear2 = __esm({
70196
70660
  "../../canvas/drawing/smartart/src/engine/algorithms/linear.ts"() {
70197
70661
  "use strict";
70198
70662
  init_cjs_shims();
70199
- import_smartart3 = require("@mog-sdk/spreadsheet-contracts/smartart");
70663
+ init_smartart();
70200
70664
  }
70201
70665
  });
70202
70666
 
@@ -70209,90 +70673,82 @@ var init_param_utils = __esm({
70209
70673
  });
70210
70674
 
70211
70675
  // ../../canvas/drawing/smartart/src/engine/algorithms/snake.ts
70212
- var import_smartart4;
70213
70676
  var init_snake = __esm({
70214
70677
  "../../canvas/drawing/smartart/src/engine/algorithms/snake.ts"() {
70215
70678
  "use strict";
70216
70679
  init_cjs_shims();
70217
- import_smartart4 = require("@mog-sdk/spreadsheet-contracts/smartart");
70680
+ init_smartart();
70218
70681
  init_param_utils();
70219
70682
  }
70220
70683
  });
70221
70684
 
70222
70685
  // ../../canvas/drawing/smartart/src/engine/algorithms/cycle.ts
70223
- var import_smartart5;
70224
70686
  var init_cycle2 = __esm({
70225
70687
  "../../canvas/drawing/smartart/src/engine/algorithms/cycle.ts"() {
70226
70688
  "use strict";
70227
70689
  init_cjs_shims();
70228
- import_smartart5 = require("@mog-sdk/spreadsheet-contracts/smartart");
70690
+ init_smartart();
70229
70691
  init_param_utils();
70230
70692
  }
70231
70693
  });
70232
70694
 
70233
70695
  // ../../canvas/drawing/smartart/src/engine/algorithms/hier-root.ts
70234
- var import_smartart6;
70235
70696
  var init_hier_root = __esm({
70236
70697
  "../../canvas/drawing/smartart/src/engine/algorithms/hier-root.ts"() {
70237
70698
  "use strict";
70238
70699
  init_cjs_shims();
70239
- import_smartart6 = require("@mog-sdk/spreadsheet-contracts/smartart");
70700
+ init_smartart();
70240
70701
  init_param_utils();
70241
70702
  }
70242
70703
  });
70243
70704
 
70244
70705
  // ../../canvas/drawing/smartart/src/engine/algorithms/hier-child.ts
70245
- var import_smartart7;
70246
70706
  var init_hier_child = __esm({
70247
70707
  "../../canvas/drawing/smartart/src/engine/algorithms/hier-child.ts"() {
70248
70708
  "use strict";
70249
70709
  init_cjs_shims();
70250
- import_smartart7 = require("@mog-sdk/spreadsheet-contracts/smartart");
70710
+ init_smartart();
70251
70711
  init_param_utils();
70252
70712
  }
70253
70713
  });
70254
70714
 
70255
70715
  // ../../canvas/drawing/smartart/src/engine/algorithms/pyramid.ts
70256
- var import_smartart8;
70257
70716
  var init_pyramid2 = __esm({
70258
70717
  "../../canvas/drawing/smartart/src/engine/algorithms/pyramid.ts"() {
70259
70718
  "use strict";
70260
70719
  init_cjs_shims();
70261
- import_smartart8 = require("@mog-sdk/spreadsheet-contracts/smartart");
70720
+ init_smartart();
70262
70721
  init_param_utils();
70263
70722
  }
70264
70723
  });
70265
70724
 
70266
70725
  // ../../canvas/drawing/smartart/src/engine/algorithms/connector.ts
70267
- var import_smartart9;
70268
70726
  var init_connector = __esm({
70269
70727
  "../../canvas/drawing/smartart/src/engine/algorithms/connector.ts"() {
70270
70728
  "use strict";
70271
70729
  init_cjs_shims();
70272
- import_smartart9 = require("@mog-sdk/spreadsheet-contracts/smartart");
70730
+ init_smartart();
70273
70731
  init_connector_routing();
70274
70732
  init_param_utils();
70275
70733
  }
70276
70734
  });
70277
70735
 
70278
70736
  // ../../canvas/drawing/smartart/src/engine/algorithms/text.ts
70279
- var import_smartart10;
70280
70737
  var init_text3 = __esm({
70281
70738
  "../../canvas/drawing/smartart/src/engine/algorithms/text.ts"() {
70282
70739
  "use strict";
70283
70740
  init_cjs_shims();
70284
- import_smartart10 = require("@mog-sdk/spreadsheet-contracts/smartart");
70741
+ init_smartart();
70285
70742
  init_param_utils();
70286
70743
  }
70287
70744
  });
70288
70745
 
70289
70746
  // ../../canvas/drawing/smartart/src/engine/algorithms/space.ts
70290
- var import_smartart11;
70291
70747
  var init_space = __esm({
70292
70748
  "../../canvas/drawing/smartart/src/engine/algorithms/space.ts"() {
70293
70749
  "use strict";
70294
70750
  init_cjs_shims();
70295
- import_smartart11 = require("@mog-sdk/spreadsheet-contracts/smartart");
70751
+ init_smartart();
70296
70752
  }
70297
70753
  });
70298
70754
 
@@ -70451,19 +70907,19 @@ var init_drawing_parser = __esm({
70451
70907
  });
70452
70908
 
70453
70909
  // ../../canvas/drawing/smartart/src/parser/layout-def-parser.ts
70454
- var import_smartart12, VALID_ELEMENT_TYPES, VALID_FUNCTION_TYPES, VALID_FUNCTION_OPERATORS, VALID_FUNCTION_ARGUMENTS;
70910
+ var VALID_ELEMENT_TYPES, VALID_FUNCTION_TYPES, VALID_FUNCTION_OPERATORS, VALID_FUNCTION_ARGUMENTS;
70455
70911
  var init_layout_def_parser = __esm({
70456
70912
  "../../canvas/drawing/smartart/src/parser/layout-def-parser.ts"() {
70457
70913
  "use strict";
70458
70914
  init_cjs_shims();
70459
- import_smartart12 = require("@mog-sdk/spreadsheet-contracts/smartart");
70915
+ init_smartart();
70460
70916
  init_data_model_parser();
70461
70917
  init_drawingml_helpers();
70462
70918
  init_xml_helpers();
70463
- VALID_ELEMENT_TYPES = new Set(import_smartart12.ALL_ELEMENT_TYPES);
70464
- VALID_FUNCTION_TYPES = new Set(import_smartart12.ALL_FUNCTION_TYPES);
70465
- VALID_FUNCTION_OPERATORS = new Set(import_smartart12.ALL_FUNCTION_OPERATORS);
70466
- VALID_FUNCTION_ARGUMENTS = new Set(import_smartart12.ALL_FUNCTION_ARGUMENTS);
70919
+ VALID_ELEMENT_TYPES = new Set(ALL_ELEMENT_TYPES);
70920
+ VALID_FUNCTION_TYPES = new Set(ALL_FUNCTION_TYPES);
70921
+ VALID_FUNCTION_OPERATORS = new Set(ALL_FUNCTION_OPERATORS);
70922
+ VALID_FUNCTION_ARGUMENTS = new Set(ALL_FUNCTION_ARGUMENTS);
70467
70923
  }
70468
70924
  });
70469
70925
 
@@ -74358,7 +74814,7 @@ var init_cell_anchor_resolver = __esm({
74358
74814
  });
74359
74815
 
74360
74816
  // ../../kernel/src/floating-objects/types.ts
74361
- var init_types4 = __esm({
74817
+ var init_types5 = __esm({
74362
74818
  "../../kernel/src/floating-objects/types.ts"() {
74363
74819
  "use strict";
74364
74820
  init_cjs_shims();
@@ -74457,7 +74913,7 @@ var init_picture_manager = __esm({
74457
74913
  "use strict";
74458
74914
  init_cjs_shims();
74459
74915
  init_document();
74460
- init_types4();
74916
+ init_types5();
74461
74917
  }
74462
74918
  });
74463
74919
 
@@ -74559,7 +75015,7 @@ var init_textbox_manager = __esm({
74559
75015
  "../../kernel/src/floating-objects/managers/textbox-manager.ts"() {
74560
75016
  "use strict";
74561
75017
  init_cjs_shims();
74562
- init_types4();
75018
+ init_types5();
74563
75019
  DEFAULT_TEXTBOX_FILL = { type: "solid", color: "#ffffff" };
74564
75020
  DEFAULT_TEXTBOX_BORDER = { style: "solid", color: "#000000", width: 1 };
74565
75021
  }
@@ -75740,7 +76196,7 @@ var init_kernel_context = __esm({
75740
76196
  init_cjs_shims();
75741
76197
  init_chart_bridge();
75742
76198
  init_equation_bridge();
75743
- init_ink_recognition_bridge();
76199
+ init_ink_recognition_bridge2();
75744
76200
  init_locale_bridge();
75745
76201
  init_pivot_bridge();
75746
76202
  init_schema_bridge();
@@ -76762,7 +77218,20 @@ var WorkbookHistoryImpl = class {
76762
77218
 
76763
77219
  // ../../kernel/src/api/workbook/names.ts
76764
77220
  init_cjs_shims();
76765
- var import_api = require("@mog-sdk/spreadsheet-contracts/api");
77221
+
77222
+ // ../../contracts/src/api/index.ts
77223
+ init_cjs_shims();
77224
+
77225
+ // ../../contracts/src/api/types.ts
77226
+ init_cjs_shims();
77227
+
77228
+ // ../../contracts/src/api/worksheet/index.ts
77229
+ init_cjs_shims();
77230
+
77231
+ // ../../contracts/src/api/worksheet/format-mappings.ts
77232
+ init_cjs_shims();
77233
+
77234
+ // ../../kernel/src/api/workbook/names.ts
76766
77235
  init_errors();
76767
77236
 
76768
77237
  // ../../kernel/src/domain/formulas/named-ranges.ts
@@ -77385,13 +77854,13 @@ var WorkbookNamesImpl = class {
77385
77854
  if (!values) return null;
77386
77855
  return values.map(
77387
77856
  (row) => row.map((cell) => {
77388
- if (cell === null || cell === void 0) return import_api.RangeValueType.Empty;
77389
- if (typeof cell === "boolean") return import_api.RangeValueType.Boolean;
77390
- if (typeof cell === "number") return import_api.RangeValueType.Double;
77391
- if (typeof cell === "string") return import_api.RangeValueType.String;
77857
+ if (cell === null || cell === void 0) return "Empty" /* Empty */;
77858
+ if (typeof cell === "boolean") return "Boolean" /* Boolean */;
77859
+ if (typeof cell === "number") return "Double" /* Double */;
77860
+ if (typeof cell === "string") return "String" /* String */;
77392
77861
  if (typeof cell === "object" && cell !== null && "type" in cell)
77393
- return import_api.RangeValueType.Error;
77394
- return import_api.RangeValueType.String;
77862
+ return "Error" /* Error */;
77863
+ return "String" /* String */;
77395
77864
  })
77396
77865
  );
77397
77866
  }
@@ -77483,7 +77952,7 @@ var BUILT_IN_LISTS = [
77483
77952
  ];
77484
77953
 
77485
77954
  // ../../kernel/src/domain/workbook/workbook.ts
77486
- var import_protection2 = require("@mog-sdk/spreadsheet-contracts/protection");
77955
+ init_protection();
77487
77956
 
77488
77957
  // ../../spreadsheet-utils/src/protection.ts
77489
77958
  init_cjs_shims();
@@ -77523,7 +77992,7 @@ async function setSelectedSheetIds(ctx, sheetIds, _origin = "user") {
77523
77992
  }
77524
77993
  async function protect(ctx, password, options, _origin = "user") {
77525
77994
  const fullOptions = {
77526
- ...import_protection2.DEFAULT_WORKBOOK_PROTECTION_OPTIONS,
77995
+ ...DEFAULT_WORKBOOK_PROTECTION_OPTIONS,
77527
77996
  ...options
77528
77997
  };
77529
77998
  const current = await getSettings(ctx);
@@ -77939,7 +78408,7 @@ init_sheet_meta();
77939
78408
 
77940
78409
  // ../../kernel/src/api/worksheet/worksheet-impl.ts
77941
78410
  init_cjs_shims();
77942
- var import_core6 = require("@mog-sdk/spreadsheet-contracts/core");
78411
+ init_core2();
77943
78412
  init_errors3();
77944
78413
  init_errors();
77945
78414
 
@@ -79522,7 +79991,6 @@ async function clearRange2(ctx, sheetId, range2) {
79522
79991
 
79523
79992
  // ../../kernel/src/api/worksheet/operations/range-query-operations.ts
79524
79993
  init_cjs_shims();
79525
- var import_api3 = require("@mog-sdk/spreadsheet-contracts/api");
79526
79994
  init_a1();
79527
79995
  init_value_conversions();
79528
79996
  async function clearWithMode(ctx, sheetId, range2, applyTo = "all") {
@@ -79624,7 +80092,7 @@ async function getValueTypes(ctx, sheetId, range2) {
79624
80092
  for (let col = n.startCol; col <= n.endCol; col++) {
79625
80093
  const cell = cellMap.get(`${row},${col}`);
79626
80094
  if (!cell) {
79627
- rowData.push(import_api3.RangeValueType.Empty);
80095
+ rowData.push("Empty" /* Empty */);
79628
80096
  } else {
79629
80097
  rowData.push(classifyValueType(normalizeCellValue(cell.value)));
79630
80098
  }
@@ -79634,16 +80102,16 @@ async function getValueTypes(ctx, sheetId, range2) {
79634
80102
  return result;
79635
80103
  }
79636
80104
  function classifyValueType(value) {
79637
- if (value === null || value === void 0) return import_api3.RangeValueType.Empty;
80105
+ if (value === null || value === void 0) return "Empty" /* Empty */;
79638
80106
  if (typeof value === "string") {
79639
- if (value === "") return import_api3.RangeValueType.Empty;
79640
- if (value.startsWith("#")) return import_api3.RangeValueType.Error;
79641
- return import_api3.RangeValueType.String;
80107
+ if (value === "") return "Empty" /* Empty */;
80108
+ if (value.startsWith("#")) return "Error" /* Error */;
80109
+ return "String" /* String */;
79642
80110
  }
79643
- if (typeof value === "number") return import_api3.RangeValueType.Double;
79644
- if (typeof value === "boolean") return import_api3.RangeValueType.Boolean;
79645
- if (typeof value === "object" && value !== null && "type" in value) return import_api3.RangeValueType.Error;
79646
- return import_api3.RangeValueType.String;
80111
+ if (typeof value === "number") return "Double" /* Double */;
80112
+ if (typeof value === "boolean") return "Boolean" /* Boolean */;
80113
+ if (typeof value === "object" && value !== null && "type" in value) return "Error" /* Error */;
80114
+ return "String" /* String */;
79647
80115
  }
79648
80116
  async function findInRange(ctx, sheetId, range2, text, options) {
79649
80117
  const n = normalizeRange(range2);
@@ -79740,46 +80208,46 @@ async function getNumberFormatCategories(ctx, sheetId, range2) {
79740
80208
  }
79741
80209
  function detectFormatType(formatCode) {
79742
80210
  if (!formatCode || formatCode === "" || formatCode === "General") {
79743
- return import_api3.NumberFormatCategory.General;
80211
+ return "General" /* General */;
79744
80212
  }
79745
80213
  if (formatCode === "@") {
79746
- return import_api3.NumberFormatCategory.Text;
80214
+ return "Text" /* Text */;
79747
80215
  }
79748
80216
  const stripped = formatCode.replace(/\[[^\]]*\]/g, "").replace(/"[^"]*"/g, "");
79749
80217
  if (/[yYmMdD]/.test(stripped) && /[yYdD]/.test(stripped)) {
79750
- return import_api3.NumberFormatCategory.Date;
80218
+ return "Date" /* Date */;
79751
80219
  }
79752
80220
  if (/[hHsS]/.test(stripped)) {
79753
80221
  if (/[yYdD]/.test(stripped)) {
79754
- return import_api3.NumberFormatCategory.Date;
80222
+ return "Date" /* Date */;
79755
80223
  }
79756
- return import_api3.NumberFormatCategory.Time;
80224
+ return "Time" /* Time */;
79757
80225
  }
79758
80226
  if (/AM\/PM/i.test(stripped)) {
79759
- return import_api3.NumberFormatCategory.Time;
80227
+ return "Time" /* Time */;
79760
80228
  }
79761
80229
  if (stripped.includes("%")) {
79762
- return import_api3.NumberFormatCategory.Percentage;
80230
+ return "Percentage" /* Percentage */;
79763
80231
  }
79764
80232
  if (/[eE][+-]/.test(stripped)) {
79765
- return import_api3.NumberFormatCategory.Scientific;
80233
+ return "Scientific" /* Scientific */;
79766
80234
  }
79767
80235
  if (stripped.includes("/") && !/[yYmMdDhHsS]/.test(stripped)) {
79768
- return import_api3.NumberFormatCategory.Fraction;
80236
+ return "Fraction" /* Fraction */;
79769
80237
  }
79770
80238
  if (/[_*]/.test(stripped) && /[$(]/.test(stripped)) {
79771
- return import_api3.NumberFormatCategory.Accounting;
80239
+ return "Accounting" /* Accounting */;
79772
80240
  }
79773
80241
  if (/[$€£¥₹]/.test(formatCode)) {
79774
- return import_api3.NumberFormatCategory.Currency;
80242
+ return "Currency" /* Currency */;
79775
80243
  }
79776
80244
  if (/^0{5}/.test(stripped) || /^0{3}-0{2}-0{4}/.test(stripped)) {
79777
- return import_api3.NumberFormatCategory.Special;
80245
+ return "Special" /* Special */;
79778
80246
  }
79779
80247
  if (/[#0]/.test(stripped)) {
79780
- return import_api3.NumberFormatCategory.Number;
80248
+ return "Number" /* Number */;
79781
80249
  }
79782
- return import_api3.NumberFormatCategory.Custom;
80250
+ return "Custom" /* Custom */;
79783
80251
  }
79784
80252
 
79785
80253
  // ../../kernel/src/api/worksheet/operations/sort-operations.ts
@@ -81621,7 +82089,12 @@ init_cjs_shims();
81621
82089
 
81622
82090
  // ../../number-formats/src/constants.ts
81623
82091
  init_cjs_shims();
81624
- var import_constants4 = require("@mog-sdk/spreadsheet-contracts/number-formats/constants");
82092
+
82093
+ // ../../contracts/src/number-formats/constants.ts
82094
+ init_cjs_shims();
82095
+
82096
+ // ../../contracts/src/number-formats/constants.gen.ts
82097
+ init_cjs_shims();
81625
82098
 
81626
82099
  // ../../number-formats/src/format-utils.ts
81627
82100
  init_cjs_shims();
@@ -83326,7 +83799,7 @@ init_errors();
83326
83799
 
83327
83800
  // ../../kernel/src/api/worksheet/operations/sheet-management-operations.ts
83328
83801
  init_cjs_shims();
83329
- var import_protection4 = require("@mog-sdk/spreadsheet-contracts/protection");
83802
+ init_protection();
83330
83803
  function parseCellRef2(ref) {
83331
83804
  const match = ref.match(/^([A-Z]+)(\d+)$/i);
83332
83805
  if (!match) return null;
@@ -88402,7 +88875,7 @@ var WorksheetImpl = class {
88402
88875
  case 1:
88403
88876
  return accessor.numberValue;
88404
88877
  case 2:
88405
- return (0, import_core6.displayStringOrNull)(accessor.displayText);
88878
+ return displayStringOrNull(accessor.displayText);
88406
88879
  case 3:
88407
88880
  return accessor.numberValue !== 0;
88408
88881
  case 4: {
@@ -89028,7 +89501,7 @@ var WorkbookThemeImpl = class {
89028
89501
 
89029
89502
  // ../../kernel/src/api/workbook/workbook-impl.ts
89030
89503
  init_cjs_shims();
89031
- init_disposable();
89504
+ init_disposable2();
89032
89505
  init_errors();
89033
89506
 
89034
89507
  // ../../kernel/src/domain/form-controls/index.ts
@@ -89615,8 +90088,27 @@ var globalRegistry = new FunctionRegistry();
89615
90088
 
89616
90089
  // ../../spreadsheet-utils/src/function-catalog.ts
89617
90090
  init_cjs_shims();
89618
- var import_function_registry = require("@mog-sdk/spreadsheet-contracts/utils/function-registry");
89619
- var C = import_function_registry.FunctionCategory;
90091
+
90092
+ // ../../contracts/src/utils/function-registry.ts
90093
+ init_cjs_shims();
90094
+ var FunctionCategory = /* @__PURE__ */ ((FunctionCategory2) => {
90095
+ FunctionCategory2["MATH"] = "Math";
90096
+ FunctionCategory2["STATISTICAL"] = "Statistical";
90097
+ FunctionCategory2["TEXT"] = "Text";
90098
+ FunctionCategory2["LOGICAL"] = "Logical";
90099
+ FunctionCategory2["DATE_TIME"] = "Date & Time";
90100
+ FunctionCategory2["LOOKUP"] = "Lookup & Reference";
90101
+ FunctionCategory2["FINANCIAL"] = "Financial";
90102
+ FunctionCategory2["INFORMATION"] = "Information";
90103
+ FunctionCategory2["DATABASE"] = "Database";
90104
+ FunctionCategory2["ENGINEERING"] = "Engineering";
90105
+ FunctionCategory2["WEB"] = "Web";
90106
+ FunctionCategory2["TESTING"] = "Testing";
90107
+ return FunctionCategory2;
90108
+ })(FunctionCategory || {});
90109
+
90110
+ // ../../spreadsheet-utils/src/function-catalog.ts
90111
+ var C = FunctionCategory;
89620
90112
  var INLINE_FUNCTIONS = [
89621
90113
  // Aggregates
89622
90114
  ["SUM", C.MATH, "Adds all numbers in a range of cells", 1, -1],
@@ -90482,7 +90974,7 @@ function convertToFunctionInfo(metadata) {
90482
90974
 
90483
90975
  // ../../kernel/src/api/workbook/viewport.ts
90484
90976
  init_cjs_shims();
90485
- init_disposable();
90977
+ init_disposable2();
90486
90978
  var regionCounter = 0;
90487
90979
  var ViewportRegionImpl = class extends DisposableBase {
90488
90980
  constructor(sheetId, bounds, computeBridge, viewportId) {
@@ -90536,7 +91028,7 @@ var WorkbookViewportImpl = class {
90536
91028
  };
90537
91029
 
90538
91030
  // ../../kernel/src/api/workbook/workbook-impl.ts
90539
- var import_rendering2 = require("@mog-sdk/spreadsheet-contracts/rendering");
91031
+ init_rendering();
90540
91032
  var API_EVENT_TO_INTERNAL = {
90541
91033
  cellChanged: "cell:changed",
90542
91034
  rangeChanged: "range:changed",
@@ -91237,7 +91729,7 @@ var WorkbookImpl = class {
91237
91729
  get theme() {
91238
91730
  return this._theme ??= new WorkbookThemeImpl(
91239
91731
  { ctx: this.ctx, eventBus: this.eventBus },
91240
- import_rendering2.DEFAULT_CHROME_THEME
91732
+ DEFAULT_CHROME_THEME
91241
91733
  );
91242
91734
  }
91243
91735
  get viewport() {