@superdoc-dev/cli 0.3.1-next.1 → 0.3.2

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 (2) hide show
  1. package/dist/index.js +243 -2010
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -13006,27 +13006,27 @@ function executeMarkdownToFragment(adapter, input) {
13006
13006
  // ../../packages/document-api/src/comments/comments.ts
13007
13007
  function validateCreateCommentInput(input) {
13008
13008
  if (!isRecord(input)) {
13009
- throw new DocumentApiValidationError("INVALID_INPUT", "comments.create input must be a non-null object.");
13009
+ throw new DocumentApiValidationError("INVALID_TARGET", "comments.create input must be a non-null object.");
13010
13010
  }
13011
13011
  assertNoUnknownFields(input, CREATE_COMMENT_ALLOWED_KEYS, "comments.create");
13012
13012
  const { target, text, parentCommentId } = input;
13013
13013
  const hasTarget = target !== undefined;
13014
13014
  const isReply = parentCommentId !== undefined;
13015
13015
  if (typeof text !== "string") {
13016
- throw new DocumentApiValidationError("INVALID_INPUT", `text must be a string, got ${typeof text}.`, {
13016
+ throw new DocumentApiValidationError("INVALID_TARGET", `text must be a string, got ${typeof text}.`, {
13017
13017
  field: "text",
13018
13018
  value: text
13019
13019
  });
13020
13020
  }
13021
13021
  if (isReply) {
13022
13022
  if (typeof parentCommentId !== "string" || parentCommentId.length === 0) {
13023
- throw new DocumentApiValidationError("INVALID_INPUT", "parentCommentId must be a non-empty string.", {
13023
+ throw new DocumentApiValidationError("INVALID_TARGET", "parentCommentId must be a non-empty string.", {
13024
13024
  field: "parentCommentId",
13025
13025
  value: parentCommentId
13026
13026
  });
13027
13027
  }
13028
13028
  if (hasTarget) {
13029
- throw new DocumentApiValidationError("INVALID_INPUT", "Cannot combine parentCommentId with target. Replies do not take a target.", { fields: ["parentCommentId", "target"] });
13029
+ throw new DocumentApiValidationError("INVALID_TARGET", "Cannot combine parentCommentId with target. Replies do not take a target.", { fields: ["parentCommentId", "target"] });
13030
13030
  }
13031
13031
  return;
13032
13032
  }
@@ -13044,13 +13044,13 @@ function validateCreateCommentInput(input) {
13044
13044
  }
13045
13045
  function validatePatchCommentInput(input) {
13046
13046
  if (!isRecord(input)) {
13047
- throw new DocumentApiValidationError("INVALID_INPUT", "comments.patch input must be a non-null object.");
13047
+ throw new DocumentApiValidationError("INVALID_TARGET", "comments.patch input must be a non-null object.");
13048
13048
  }
13049
13049
  assertNoUnknownFields(input, PATCH_COMMENT_ALLOWED_KEYS, "comments.patch");
13050
13050
  const { commentId, target } = input;
13051
13051
  const hasTarget = target !== undefined;
13052
13052
  if (typeof commentId !== "string") {
13053
- throw new DocumentApiValidationError("INVALID_INPUT", `commentId must be a string, got ${typeof commentId}.`, {
13053
+ throw new DocumentApiValidationError("INVALID_TARGET", `commentId must be a string, got ${typeof commentId}.`, {
13054
13054
  field: "commentId",
13055
13055
  value: commentId
13056
13056
  });
@@ -13063,25 +13063,13 @@ function validatePatchCommentInput(input) {
13063
13063
  if (providedFields.length > 1) {
13064
13064
  throw new DocumentApiValidationError("INVALID_INPUT", `comments.patch accepts exactly one mutation field per call, got ${providedFields.length}: ${providedFields.join(", ")}.`, { providedFields: [...providedFields] });
13065
13065
  }
13066
- const { text, status, isInternal } = input;
13067
- if (text !== undefined && typeof text !== "string") {
13068
- throw new DocumentApiValidationError("INVALID_INPUT", `text must be a string, got ${typeof text}.`, {
13069
- field: "text",
13070
- value: text
13071
- });
13072
- }
13066
+ const { status } = input;
13073
13067
  if (status !== undefined && status !== "resolved") {
13074
- throw new DocumentApiValidationError("INVALID_INPUT", `status must be "resolved", got "${String(status)}".`, {
13068
+ throw new DocumentApiValidationError("INVALID_TARGET", `status must be "resolved", got "${String(status)}".`, {
13075
13069
  field: "status",
13076
13070
  value: status
13077
13071
  });
13078
13072
  }
13079
- if (isInternal !== undefined && typeof isInternal !== "boolean") {
13080
- throw new DocumentApiValidationError("INVALID_INPUT", `isInternal must be a boolean, got ${typeof isInternal}.`, {
13081
- field: "isInternal",
13082
- value: isInternal
13083
- });
13084
- }
13085
13073
  if (hasTarget && !isTextAddress(target)) {
13086
13074
  throw new DocumentApiValidationError("INVALID_TARGET", "target must be a text address object.", {
13087
13075
  field: "target",
@@ -13112,29 +13100,13 @@ function executeCommentsPatch(adapter, input, options) {
13112
13100
  }
13113
13101
  throw new DocumentApiValidationError("INTERNAL_ERROR", "comments.patch: no mutation field matched after validation. This is a bug.");
13114
13102
  }
13115
- function validateCommentIdInput(input, operationName) {
13116
- if (!isRecord(input)) {
13117
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} input must be a non-null object.`);
13118
- }
13119
- if (typeof input.commentId !== "string" || input.commentId.length === 0) {
13120
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} commentId must be a non-empty string.`, {
13121
- field: "commentId",
13122
- value: input.commentId
13123
- });
13124
- }
13125
- }
13126
13103
  function executeCommentsDelete(adapter, input, options) {
13127
- validateCommentIdInput(input, "comments.delete");
13128
13104
  return adapter.remove({ commentId: input.commentId }, options);
13129
13105
  }
13130
13106
  function executeGetComment(adapter, input) {
13131
- validateCommentIdInput(input, "comments.get");
13132
13107
  return adapter.get(input);
13133
13108
  }
13134
13109
  function executeListComments(adapter, query2) {
13135
- if (query2 !== undefined && !isRecord(query2)) {
13136
- throw new DocumentApiValidationError("INVALID_INPUT", "comments.list query must be an object if provided.");
13137
- }
13138
13110
  return adapter.list(query2);
13139
13111
  }
13140
13112
  var CREATE_COMMENT_ALLOWED_KEYS, PATCH_COMMENT_ALLOWED_KEYS;
@@ -13248,45 +13220,18 @@ function executeGet(adapter, input) {
13248
13220
 
13249
13221
  // ../../packages/document-api/src/get-text/get-text.ts
13250
13222
  function executeGetText(adapter, input) {
13251
- if (!isRecord(input)) {
13252
- throw new DocumentApiValidationError("INVALID_INPUT", "getText input must be a non-null object.");
13253
- }
13254
- validateStoryLocator(input.in, "in");
13255
13223
  return adapter.getText(input);
13256
13224
  }
13257
- var init_get_text = __esm(() => {
13258
- init_story_validator();
13259
- init_errors2();
13260
- init_validation_primitives();
13261
- });
13262
13225
 
13263
13226
  // ../../packages/document-api/src/get-markdown/get-markdown.ts
13264
13227
  function executeGetMarkdown(adapter, input) {
13265
- if (!isRecord(input)) {
13266
- throw new DocumentApiValidationError("INVALID_INPUT", "getMarkdown input must be a non-null object.");
13267
- }
13268
- validateStoryLocator(input.in, "in");
13269
13228
  return adapter.getMarkdown(input);
13270
13229
  }
13271
- var init_get_markdown = __esm(() => {
13272
- init_story_validator();
13273
- init_errors2();
13274
- init_validation_primitives();
13275
- });
13276
13230
 
13277
13231
  // ../../packages/document-api/src/get-html/get-html.ts
13278
13232
  function executeGetHtml(adapter, input) {
13279
- if (!isRecord(input)) {
13280
- throw new DocumentApiValidationError("INVALID_INPUT", "getHtml input must be a non-null object.");
13281
- }
13282
- validateStoryLocator(input.in, "in");
13283
13233
  return adapter.getHtml(input);
13284
13234
  }
13285
- var init_get_html = __esm(() => {
13286
- init_story_validator();
13287
- init_errors2();
13288
- init_validation_primitives();
13289
- });
13290
13235
 
13291
13236
  // ../../packages/document-api/src/info/info.ts
13292
13237
  function executeInfo(adapter, input) {
@@ -14010,574 +13955,155 @@ var init_insert = __esm(() => {
14010
13955
  VALID_INSERT_TYPES = new Set(["text", "markdown", "html"]);
14011
13956
  });
14012
13957
 
14013
- // ../../packages/document-api/src/lists/lists.types.ts
14014
- var LIST_KINDS, LIST_INSERT_POSITIONS, JOIN_DIRECTIONS, MUTATION_SCOPES, LEVEL_ALIGNMENTS, TRAILING_CHARACTERS, LIST_PRESET_IDS;
14015
- var init_lists_types = __esm(() => {
14016
- LIST_KINDS = ["ordered", "bullet"];
14017
- LIST_INSERT_POSITIONS = ["before", "after"];
14018
- JOIN_DIRECTIONS = ["withPrevious", "withNext"];
14019
- MUTATION_SCOPES = ["definition", "instance"];
14020
- LEVEL_ALIGNMENTS = ["left", "center", "right"];
14021
- TRAILING_CHARACTERS = ["tab", "space", "nothing"];
14022
- LIST_PRESET_IDS = [
14023
- "decimal",
14024
- "decimalParenthesis",
14025
- "lowerLetter",
14026
- "upperLetter",
14027
- "lowerRoman",
14028
- "upperRoman",
14029
- "disc",
14030
- "circle",
14031
- "square",
14032
- "dash"
14033
- ];
14034
- });
14035
-
14036
13958
  // ../../packages/document-api/src/lists/lists.ts
14037
- function validateListInput(input, operationName) {
14038
- if (!isRecord(input)) {
14039
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} input must be a non-null object.`);
14040
- }
14041
- }
14042
- function validateListItemAddress(value, field, operationName) {
14043
- if (value === undefined || value === null) {
14044
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} requires a ${field}.`);
14045
- }
14046
- if (!isRecord(value)) {
14047
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field} must be an object.`, {
14048
- field,
14049
- value
14050
- });
14051
- }
14052
- const t = value;
14053
- if (t.kind !== "block") {
14054
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field}.kind must be 'block', got "${String(t.kind)}".`, { field: `${field}.kind`, value: t.kind });
14055
- }
14056
- if (t.nodeType !== "listItem") {
14057
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field}.nodeType must be 'listItem', got "${String(t.nodeType)}".`, { field: `${field}.nodeType`, value: t.nodeType });
14058
- }
14059
- if (typeof t.nodeId !== "string" || t.nodeId === "") {
14060
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field}.nodeId must be a non-empty string.`, { field: `${field}.nodeId`, value: t.nodeId });
14061
- }
14062
- }
14063
- function validateListItemTarget(input, operationName) {
14064
- validateListItemAddress(input.target, "target", operationName);
14065
- }
14066
- function validateBlockAddress(value, field, operationName) {
14067
- if (!isRecord(value)) {
14068
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field} must be an object.`, {
14069
- field,
14070
- value
14071
- });
14072
- }
14073
- const v = value;
14074
- if (v.kind !== "block") {
14075
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field}.kind must be 'block', got "${String(v.kind)}".`, { field: `${field}.kind`, value: v.kind });
14076
- }
14077
- if (v.nodeType !== "paragraph") {
14078
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field}.nodeType must be 'paragraph', got "${String(v.nodeType)}".`, { field: `${field}.nodeType`, value: v.nodeType });
14079
- }
14080
- if (typeof v.nodeId !== "string" || v.nodeId === "") {
14081
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field}.nodeId must be a non-empty string.`, { field: `${field}.nodeId`, value: v.nodeId });
14082
- }
14083
- }
14084
- function validateBlockAddressOrRange(value, field, operationName) {
14085
- if (!isRecord(value)) {
14086
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} ${field} must be an object.`, {
14087
- field,
14088
- value
14089
- });
14090
- }
14091
- const v = value;
14092
- if (v.from !== undefined) {
14093
- validateBlockAddress(v.from, `${field}.from`, operationName);
14094
- validateBlockAddress(v.to, `${field}.to`, operationName);
14095
- } else {
14096
- validateBlockAddress(value, field, operationName);
14097
- }
14098
- }
14099
- function requireLevel(value, operationName) {
14100
- if (!isInteger(value) || value < 0) {
14101
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} level must be a non-negative integer, got ${JSON.stringify(value)}.`, { field: "level", value });
14102
- }
14103
- }
14104
- function requireEnum(value, field, validSet, operationName) {
14105
- if (!validSet.has(value)) {
14106
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be one of: ${[...validSet].join(", ")}. Got ${JSON.stringify(value)}.`, { field, value });
14107
- }
14108
- }
14109
- function optionalBoolean(value, field, operationName) {
14110
- if (value !== undefined && typeof value !== "boolean") {
14111
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be a boolean if provided, got ${typeof value}.`, { field, value });
14112
- }
14113
- }
14114
- function optionalNumber(value, field, operationName) {
14115
- if (value !== undefined && (typeof value !== "number" || !Number.isFinite(value))) {
14116
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be a number if provided, got ${typeof value}.`, { field, value });
14117
- }
14118
- }
14119
- function optionalInteger(value, field, operationName) {
14120
- if (value !== undefined && !isInteger(value)) {
14121
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be an integer if provided, got ${JSON.stringify(value)}.`, { field, value });
14122
- }
14123
- }
14124
- function optionalLevelsArray(value, field, operationName) {
14125
- if (value === undefined)
14126
- return;
14127
- if (!Array.isArray(value)) {
14128
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be an array if provided.`, {
14129
- field,
14130
- value
14131
- });
14132
- }
14133
- for (let i = 0;i < value.length; i++) {
14134
- if (!isInteger(value[i]) || value[i] < 0) {
14135
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field}[${i}] must be a non-negative integer.`, { field: `${field}[${i}]`, value: value[i] });
14136
- }
14137
- }
14138
- }
14139
- function validateListLevelTemplate(entry, path, operationName) {
14140
- if (!isRecord(entry)) {
14141
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${path} must be an object.`, {
14142
- field: path,
14143
- value: entry
14144
- });
14145
- }
14146
- const e = entry;
14147
- if (!isInteger(e.level) || e.level < 0) {
14148
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${path}.level must be a non-negative integer.`, { field: `${path}.level`, value: e.level });
14149
- }
14150
- if (e.numFmt !== undefined && typeof e.numFmt !== "string") {
14151
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${path}.numFmt must be a string.`, {
14152
- field: `${path}.numFmt`,
14153
- value: e.numFmt
14154
- });
14155
- }
14156
- if (e.lvlText !== undefined && typeof e.lvlText !== "string") {
14157
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${path}.lvlText must be a string.`, {
14158
- field: `${path}.lvlText`,
14159
- value: e.lvlText
14160
- });
14161
- }
14162
- optionalInteger(e.start, `${path}.start`, operationName);
14163
- if (e.alignment !== undefined) {
14164
- requireEnum(e.alignment, `${path}.alignment`, VALID_LEVEL_ALIGNMENTS, operationName);
14165
- }
14166
- if (e.trailingCharacter !== undefined) {
14167
- requireEnum(e.trailingCharacter, `${path}.trailingCharacter`, VALID_TRAILING_CHARACTERS, operationName);
14168
- }
14169
- if (e.markerFont !== undefined && typeof e.markerFont !== "string") {
14170
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${path}.markerFont must be a string.`, {
14171
- field: `${path}.markerFont`,
14172
- value: e.markerFont
14173
- });
14174
- }
14175
- optionalInteger(e.pictureBulletId, `${path}.pictureBulletId`, operationName);
14176
- if (e.tabStopAt !== undefined && e.tabStopAt !== null) {
14177
- optionalNumber(e.tabStopAt, `${path}.tabStopAt`, operationName);
14178
- }
14179
- if (e.indents !== undefined) {
14180
- if (!isRecord(e.indents)) {
14181
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${path}.indents must be an object.`, {
14182
- field: `${path}.indents`,
14183
- value: e.indents
14184
- });
14185
- }
14186
- const ind = e.indents;
14187
- optionalNumber(ind.left, `${path}.indents.left`, operationName);
14188
- optionalNumber(ind.hanging, `${path}.indents.hanging`, operationName);
14189
- optionalNumber(ind.firstLine, `${path}.indents.firstLine`, operationName);
14190
- }
14191
- }
14192
- function validateListTemplate(value, field, operationName) {
14193
- if (!isRecord(value)) {
14194
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be an object.`, {
14195
- field,
14196
- value
14197
- });
14198
- }
14199
- const t = value;
14200
- if (t.version !== 1) {
14201
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field}.version must be 1, got ${JSON.stringify(t.version)}.`, { field: `${field}.version`, value: t.version });
14202
- }
14203
- if (!Array.isArray(t.levels)) {
14204
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field}.levels must be an array.`, {
14205
- field: `${field}.levels`,
14206
- value: t.levels
14207
- });
14208
- }
14209
- for (let i = 0;i < t.levels.length; i++) {
14210
- validateListLevelTemplate(t.levels[i], `${field}.levels[${i}]`, operationName);
14211
- }
14212
- }
14213
- function validateListsCreateFields(raw) {
14214
- const op = "lists.create";
14215
- if (raw.kind !== undefined) {
14216
- requireEnum(raw.kind, "kind", VALID_LIST_KINDS, op);
14217
- }
14218
- if (raw.level !== undefined) {
14219
- if (!isInteger(raw.level) || raw.level < 0) {
14220
- throw new DocumentApiValidationError("INVALID_INPUT", `${op} level must be a non-negative integer, got ${JSON.stringify(raw.level)}.`, { field: "level", value: raw.level });
14221
- }
14222
- }
14223
- if (raw.sequence !== undefined) {
14224
- if (!isRecord(raw.sequence)) {
14225
- throw new DocumentApiValidationError("INVALID_INPUT", `${op} sequence must be an object.`, {
14226
- field: "sequence",
14227
- value: raw.sequence
14228
- });
14229
- }
14230
- const seq = raw.sequence;
14231
- requireEnum(seq.mode, "sequence.mode", VALID_SEQUENCE_MODES, op);
14232
- if (seq.mode === "continuePrevious") {
14233
- if (raw.preset !== undefined) {
14234
- throw new DocumentApiValidationError("INVALID_INPUT", `${op} preset must not be provided when sequence.mode is 'continuePrevious'.`, { field: "preset" });
14235
- }
14236
- if (raw.style !== undefined) {
14237
- throw new DocumentApiValidationError("INVALID_INPUT", `${op} style must not be provided when sequence.mode is 'continuePrevious'.`, { field: "style" });
14238
- }
14239
- if (seq.startAt !== undefined) {
14240
- throw new DocumentApiValidationError("INVALID_INPUT", `${op} sequence.startAt must not be provided when sequence.mode is 'continuePrevious'.`, { field: "sequence.startAt" });
14241
- }
14242
- }
14243
- if (seq.mode === "new") {
14244
- optionalInteger(seq.startAt, "sequence.startAt", op);
14245
- }
14246
- }
14247
- if (raw.preset !== undefined) {
14248
- requireEnum(raw.preset, "preset", VALID_LIST_PRESETS, op);
14249
- }
14250
- if (raw.style !== undefined) {
14251
- validateListTemplate(raw.style, "style", op);
13959
+ function validateListTarget(input, operationName) {
13960
+ if (input.target === undefined) {
13961
+ throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} requires a target.`);
14252
13962
  }
14253
13963
  }
14254
13964
  function executeListsList(adapter, query2) {
14255
- if (query2 !== undefined) {
14256
- if (!isRecord(query2)) {
14257
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.list query must be an object if provided.");
14258
- }
14259
- const q = query2;
14260
- if (q.kind !== undefined) {
14261
- requireEnum(q.kind, "kind", VALID_LIST_KINDS, "lists.list");
14262
- }
14263
- optionalInteger(q.level, "level", "lists.list");
14264
- optionalInteger(q.limit, "limit", "lists.list");
14265
- optionalInteger(q.offset, "offset", "lists.list");
14266
- optionalInteger(q.ordinal, "ordinal", "lists.list");
14267
- if (q.within !== undefined) {
14268
- if (!isRecord(q.within)) {
14269
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.list within must be an object.", {
14270
- field: "within",
14271
- value: q.within
14272
- });
14273
- }
14274
- const w = q.within;
14275
- if (w.kind !== "block") {
14276
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.list within.kind must be 'block', got "${String(w.kind)}".`, { field: "within.kind", value: w.kind });
14277
- }
14278
- if (!VALID_BLOCK_NODE_TYPES.has(w.nodeType)) {
14279
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.list within.nodeType must be a valid BlockNodeType, got ${JSON.stringify(w.nodeType)}.`, { field: "within.nodeType", value: w.nodeType });
14280
- }
14281
- if (typeof w.nodeId !== "string" || w.nodeId === "") {
14282
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.list within.nodeId must be a non-empty string.", {
14283
- field: "within.nodeId",
14284
- value: w.nodeId
14285
- });
14286
- }
14287
- }
14288
- }
14289
13965
  return adapter.list(query2);
14290
13966
  }
14291
13967
  function executeListsGet(adapter, input) {
14292
- validateListInput(input, "lists.get");
14293
- validateListItemAddress(input.address, "address", "lists.get");
14294
13968
  return adapter.get(input);
14295
13969
  }
14296
13970
  function executeListsInsert(adapter, input, options) {
14297
- validateListItemTarget(input, "lists.insert");
14298
- requireEnum(input.position, "position", VALID_INSERT_POSITIONS, "lists.insert");
14299
- if (input.text !== undefined && typeof input.text !== "string") {
14300
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.insert text must be a string if provided, got ${typeof input.text}.`, {
14301
- field: "text",
14302
- value: input.text
14303
- });
14304
- }
13971
+ validateListTarget(input, "lists.insert");
14305
13972
  return adapter.insert(input, normalizeMutationOptions(options));
14306
13973
  }
14307
13974
  function executeListsIndent(adapter, input, options) {
14308
- validateListItemTarget(input, "lists.indent");
13975
+ validateListTarget(input, "lists.indent");
14309
13976
  return adapter.indent(input, normalizeMutationOptions(options));
14310
13977
  }
14311
13978
  function executeListsOutdent(adapter, input, options) {
14312
- validateListItemTarget(input, "lists.outdent");
13979
+ validateListTarget(input, "lists.outdent");
14313
13980
  return adapter.outdent(input, normalizeMutationOptions(options));
14314
13981
  }
14315
13982
  function executeListsCreate(adapter, input, options) {
14316
- validateListInput(input, "lists.create");
14317
- const raw = input;
14318
- if (!VALID_LIST_CREATE_MODES.has(raw.mode)) {
14319
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.create mode must be "empty" or "fromParagraphs", got ${JSON.stringify(raw.mode)}.`, { field: "mode", value: raw.mode });
14320
- }
14321
- if (raw.mode === "empty") {
14322
- validateBlockAddress(raw.at, "at", "lists.create");
14323
- }
14324
- if (raw.mode === "fromParagraphs") {
14325
- if (raw.target === undefined || raw.target === null) {
14326
- throw new DocumentApiValidationError("INVALID_TARGET", 'lists.create with mode "fromParagraphs" requires a target.', { field: "target" });
14327
- }
14328
- validateBlockAddressOrRange(raw.target, "target", "lists.create");
14329
- }
14330
- validateListsCreateFields(raw);
14331
13983
  return adapter.create(input, normalizeMutationOptions(options));
14332
13984
  }
14333
13985
  function executeListsAttach(adapter, input, options) {
14334
- validateListInput(input, "lists.attach");
14335
- validateBlockAddressOrRange(input.target, "target", "lists.attach");
14336
- validateListItemAddress(input.attachTo, "attachTo", "lists.attach");
14337
- optionalInteger(input.level, "level", "lists.attach");
13986
+ validateListTarget(input, "lists.attach");
14338
13987
  return adapter.attach(input, normalizeMutationOptions(options));
14339
13988
  }
14340
13989
  function executeListsDetach(adapter, input, options) {
14341
- validateListItemTarget(input, "lists.detach");
13990
+ validateListTarget(input, "lists.detach");
14342
13991
  return adapter.detach(input, normalizeMutationOptions(options));
14343
13992
  }
14344
13993
  function executeListsJoin(adapter, input, options) {
14345
- validateListItemTarget(input, "lists.join");
14346
- requireEnum(input.direction, "direction", VALID_JOIN_DIRECTIONS, "lists.join");
13994
+ validateListTarget(input, "lists.join");
14347
13995
  return adapter.join(input, normalizeMutationOptions(options));
14348
13996
  }
14349
13997
  function executeListsCanJoin(adapter, input) {
14350
- validateListItemTarget(input, "lists.canJoin");
14351
- requireEnum(input.direction, "direction", VALID_JOIN_DIRECTIONS, "lists.canJoin");
13998
+ validateListTarget(input, "lists.canJoin");
14352
13999
  return adapter.canJoin(input);
14353
14000
  }
14354
14001
  function executeListsSeparate(adapter, input, options) {
14355
- validateListItemTarget(input, "lists.separate");
14356
- optionalBoolean(input.copyOverrides, "copyOverrides", "lists.separate");
14002
+ validateListTarget(input, "lists.separate");
14357
14003
  return adapter.separate(input, normalizeMutationOptions(options));
14358
14004
  }
14359
14005
  function executeListsSetLevel(adapter, input, options) {
14360
- validateListItemTarget(input, "lists.setLevel");
14361
- requireLevel(input.level, "lists.setLevel");
14006
+ validateListTarget(input, "lists.setLevel");
14362
14007
  return adapter.setLevel(input, normalizeMutationOptions(options));
14363
14008
  }
14364
14009
  function executeListsSetValue(adapter, input, options) {
14365
- validateListItemTarget(input, "lists.setValue");
14366
- if (input.value !== null && !isInteger(input.value)) {
14367
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.setValue value must be an integer or null, got ${JSON.stringify(input.value)}.`, { field: "value", value: input.value });
14368
- }
14010
+ validateListTarget(input, "lists.setValue");
14369
14011
  return adapter.setValue(input, normalizeMutationOptions(options));
14370
14012
  }
14371
14013
  function executeListsContinuePrevious(adapter, input, options) {
14372
- validateListItemTarget(input, "lists.continuePrevious");
14014
+ validateListTarget(input, "lists.continuePrevious");
14373
14015
  return adapter.continuePrevious(input, normalizeMutationOptions(options));
14374
14016
  }
14375
14017
  function executeListsCanContinuePrevious(adapter, input) {
14376
- validateListItemTarget(input, "lists.canContinuePrevious");
14018
+ validateListTarget(input, "lists.canContinuePrevious");
14377
14019
  return adapter.canContinuePrevious(input);
14378
14020
  }
14379
14021
  function executeListsSetLevelRestart(adapter, input, options) {
14380
- validateListItemTarget(input, "lists.setLevelRestart");
14381
- requireLevel(input.level, "lists.setLevelRestart");
14382
- if (input.restartAfterLevel !== null && !isInteger(input.restartAfterLevel)) {
14383
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.setLevelRestart restartAfterLevel must be an integer or null.`, { field: "restartAfterLevel", value: input.restartAfterLevel });
14384
- }
14385
- if (input.scope !== undefined) {
14386
- requireEnum(input.scope, "scope", VALID_MUTATION_SCOPES, "lists.setLevelRestart");
14387
- }
14022
+ validateListTarget(input, "lists.setLevelRestart");
14388
14023
  return adapter.setLevelRestart(input, normalizeMutationOptions(options));
14389
14024
  }
14390
14025
  function executeListsConvertToText(adapter, input, options) {
14391
- validateListItemTarget(input, "lists.convertToText");
14392
- optionalBoolean(input.includeMarker, "includeMarker", "lists.convertToText");
14026
+ validateListTarget(input, "lists.convertToText");
14393
14027
  return adapter.convertToText(input, normalizeMutationOptions(options));
14394
14028
  }
14395
14029
  function executeListsApplyTemplate(adapter, input, options) {
14396
- validateListItemTarget(input, "lists.applyTemplate");
14397
- validateListTemplate(input.template, "template", "lists.applyTemplate");
14398
- optionalLevelsArray(input.levels, "levels", "lists.applyTemplate");
14030
+ validateListTarget(input, "lists.applyTemplate");
14399
14031
  return adapter.applyTemplate(input, normalizeMutationOptions(options));
14400
14032
  }
14401
14033
  function executeListsApplyPreset(adapter, input, options) {
14402
- validateListItemTarget(input, "lists.applyPreset");
14403
- requireEnum(input.preset, "preset", VALID_LIST_PRESETS, "lists.applyPreset");
14404
- optionalLevelsArray(input.levels, "levels", "lists.applyPreset");
14034
+ validateListTarget(input, "lists.applyPreset");
14405
14035
  return adapter.applyPreset(input, normalizeMutationOptions(options));
14406
14036
  }
14407
14037
  function executeListsCaptureTemplate(adapter, input) {
14408
- validateListItemTarget(input, "lists.captureTemplate");
14409
- optionalLevelsArray(input.levels, "levels", "lists.captureTemplate");
14038
+ validateListTarget(input, "lists.captureTemplate");
14410
14039
  return adapter.captureTemplate(input);
14411
14040
  }
14412
14041
  function executeListsSetLevelNumbering(adapter, input, options) {
14413
- validateListItemTarget(input, "lists.setLevelNumbering");
14414
- requireLevel(input.level, "lists.setLevelNumbering");
14415
- if (typeof input.numFmt !== "string") {
14416
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelNumbering numFmt must be a string.", {
14417
- field: "numFmt",
14418
- value: input.numFmt
14419
- });
14420
- }
14421
- if (typeof input.lvlText !== "string") {
14422
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelNumbering lvlText must be a string.", {
14423
- field: "lvlText",
14424
- value: input.lvlText
14425
- });
14426
- }
14427
- optionalInteger(input.start, "start", "lists.setLevelNumbering");
14042
+ validateListTarget(input, "lists.setLevelNumbering");
14428
14043
  return adapter.setLevelNumbering(input, normalizeMutationOptions(options));
14429
14044
  }
14430
14045
  function executeListsSetLevelBullet(adapter, input, options) {
14431
- validateListItemTarget(input, "lists.setLevelBullet");
14432
- requireLevel(input.level, "lists.setLevelBullet");
14433
- if (typeof input.markerText !== "string") {
14434
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelBullet markerText must be a string.", {
14435
- field: "markerText",
14436
- value: input.markerText
14437
- });
14438
- }
14046
+ validateListTarget(input, "lists.setLevelBullet");
14439
14047
  return adapter.setLevelBullet(input, normalizeMutationOptions(options));
14440
14048
  }
14441
14049
  function executeListsSetLevelPictureBullet(adapter, input, options) {
14442
- validateListItemTarget(input, "lists.setLevelPictureBullet");
14443
- requireLevel(input.level, "lists.setLevelPictureBullet");
14444
- if (!isInteger(input.pictureBulletId)) {
14445
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelPictureBullet pictureBulletId must be an integer.", { field: "pictureBulletId", value: input.pictureBulletId });
14446
- }
14050
+ validateListTarget(input, "lists.setLevelPictureBullet");
14447
14051
  return adapter.setLevelPictureBullet(input, normalizeMutationOptions(options));
14448
14052
  }
14449
14053
  function executeListsSetLevelAlignment(adapter, input, options) {
14450
- validateListItemTarget(input, "lists.setLevelAlignment");
14451
- requireLevel(input.level, "lists.setLevelAlignment");
14452
- requireEnum(input.alignment, "alignment", VALID_LEVEL_ALIGNMENTS, "lists.setLevelAlignment");
14054
+ validateListTarget(input, "lists.setLevelAlignment");
14453
14055
  return adapter.setLevelAlignment(input, normalizeMutationOptions(options));
14454
14056
  }
14455
14057
  function executeListsSetLevelIndents(adapter, input, options) {
14456
- validateListItemTarget(input, "lists.setLevelIndents");
14457
- requireLevel(input.level, "lists.setLevelIndents");
14458
- optionalNumber(input.left, "left", "lists.setLevelIndents");
14459
- optionalNumber(input.hanging, "hanging", "lists.setLevelIndents");
14460
- optionalNumber(input.firstLine, "firstLine", "lists.setLevelIndents");
14058
+ validateListTarget(input, "lists.setLevelIndents");
14461
14059
  return adapter.setLevelIndents(input, normalizeMutationOptions(options));
14462
14060
  }
14463
14061
  function executeListsSetLevelTrailingCharacter(adapter, input, options) {
14464
- validateListItemTarget(input, "lists.setLevelTrailingCharacter");
14465
- requireLevel(input.level, "lists.setLevelTrailingCharacter");
14466
- requireEnum(input.trailingCharacter, "trailingCharacter", VALID_TRAILING_CHARACTERS, "lists.setLevelTrailingCharacter");
14062
+ validateListTarget(input, "lists.setLevelTrailingCharacter");
14467
14063
  return adapter.setLevelTrailingCharacter(input, normalizeMutationOptions(options));
14468
14064
  }
14469
14065
  function executeListsSetLevelMarkerFont(adapter, input, options) {
14470
- validateListItemTarget(input, "lists.setLevelMarkerFont");
14471
- requireLevel(input.level, "lists.setLevelMarkerFont");
14472
- if (typeof input.fontFamily !== "string") {
14473
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelMarkerFont fontFamily must be a string.", {
14474
- field: "fontFamily",
14475
- value: input.fontFamily
14476
- });
14477
- }
14066
+ validateListTarget(input, "lists.setLevelMarkerFont");
14478
14067
  return adapter.setLevelMarkerFont(input, normalizeMutationOptions(options));
14479
14068
  }
14480
14069
  function executeListsClearLevelOverrides(adapter, input, options) {
14481
- validateListItemTarget(input, "lists.clearLevelOverrides");
14482
- requireLevel(input.level, "lists.clearLevelOverrides");
14070
+ validateListTarget(input, "lists.clearLevelOverrides");
14483
14071
  return adapter.clearLevelOverrides(input, normalizeMutationOptions(options));
14484
14072
  }
14485
14073
  function executeListsSetType(adapter, input, options) {
14486
- validateListItemTarget(input, "lists.setType");
14487
- requireEnum(input.kind, "kind", VALID_LIST_KINDS, "lists.setType");
14488
- if (input.continuity !== undefined) {
14489
- requireEnum(input.continuity, "continuity", VALID_CONTINUITY_VALUES, "lists.setType");
14490
- }
14074
+ validateListTarget(input, "lists.setType");
14491
14075
  return adapter.setType(input, normalizeMutationOptions(options));
14492
14076
  }
14493
14077
  function executeListsGetStyle(adapter, input) {
14494
- validateListItemTarget(input, "lists.getStyle");
14495
- optionalLevelsArray(input.levels, "levels", "lists.getStyle");
14078
+ validateListTarget(input, "lists.getStyle");
14496
14079
  return adapter.getStyle(input);
14497
14080
  }
14498
14081
  function executeListsApplyStyle(adapter, input, options) {
14499
- validateListItemTarget(input, "lists.applyStyle");
14500
- validateListTemplate(input.style, "style", "lists.applyStyle");
14501
- optionalLevelsArray(input.levels, "levels", "lists.applyStyle");
14082
+ validateListTarget(input, "lists.applyStyle");
14502
14083
  return adapter.applyStyle(input, normalizeMutationOptions(options));
14503
14084
  }
14504
14085
  function executeListsRestartAt(adapter, input, options) {
14505
- validateListItemTarget(input, "lists.restartAt");
14506
- if (!isInteger(input.startAt)) {
14507
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.restartAt startAt must be an integer, got ${JSON.stringify(input.startAt)}.`, { field: "startAt", value: input.startAt });
14508
- }
14086
+ validateListTarget(input, "lists.restartAt");
14509
14087
  return adapter.restartAt(input, normalizeMutationOptions(options));
14510
14088
  }
14511
14089
  function executeListsSetLevelNumberStyle(adapter, input, options) {
14512
- validateListItemTarget(input, "lists.setLevelNumberStyle");
14513
- requireLevel(input.level, "lists.setLevelNumberStyle");
14514
- if (typeof input.numberStyle !== "string") {
14515
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelNumberStyle numberStyle must be a string.", {
14516
- field: "numberStyle",
14517
- value: input.numberStyle
14518
- });
14519
- }
14090
+ validateListTarget(input, "lists.setLevelNumberStyle");
14520
14091
  return adapter.setLevelNumberStyle(input, normalizeMutationOptions(options));
14521
14092
  }
14522
14093
  function executeListsSetLevelText(adapter, input, options) {
14523
- validateListItemTarget(input, "lists.setLevelText");
14524
- requireLevel(input.level, "lists.setLevelText");
14525
- if (typeof input.text !== "string") {
14526
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelText text must be a string.", {
14527
- field: "text",
14528
- value: input.text
14529
- });
14530
- }
14094
+ validateListTarget(input, "lists.setLevelText");
14531
14095
  return adapter.setLevelText(input, normalizeMutationOptions(options));
14532
14096
  }
14533
14097
  function executeListsSetLevelStart(adapter, input, options) {
14534
- validateListItemTarget(input, "lists.setLevelStart");
14535
- requireLevel(input.level, "lists.setLevelStart");
14536
- if (!isInteger(input.startAt)) {
14537
- throw new DocumentApiValidationError("INVALID_INPUT", `lists.setLevelStart startAt must be an integer, got ${JSON.stringify(input.startAt)}.`, { field: "startAt", value: input.startAt });
14538
- }
14098
+ validateListTarget(input, "lists.setLevelStart");
14539
14099
  return adapter.setLevelStart(input, normalizeMutationOptions(options));
14540
14100
  }
14541
14101
  function executeListsSetLevelLayout(adapter, input, options) {
14542
- validateListItemTarget(input, "lists.setLevelLayout");
14543
- requireLevel(input.level, "lists.setLevelLayout");
14544
- if (!isRecord(input.layout)) {
14545
- throw new DocumentApiValidationError("INVALID_INPUT", "lists.setLevelLayout layout must be an object.", {
14546
- field: "layout",
14547
- value: input.layout
14548
- });
14549
- }
14550
- const layout = input.layout;
14551
- if (layout.alignment !== undefined) {
14552
- requireEnum(layout.alignment, "layout.alignment", VALID_LEVEL_ALIGNMENTS, "lists.setLevelLayout");
14553
- }
14554
- if (layout.followCharacter !== undefined) {
14555
- requireEnum(layout.followCharacter, "layout.followCharacter", VALID_TRAILING_CHARACTERS, "lists.setLevelLayout");
14556
- }
14557
- optionalNumber(layout.alignedAt, "layout.alignedAt", "lists.setLevelLayout");
14558
- optionalNumber(layout.textIndentAt, "layout.textIndentAt", "lists.setLevelLayout");
14559
- if (layout.tabStopAt !== undefined && layout.tabStopAt !== null) {
14560
- optionalNumber(layout.tabStopAt, "layout.tabStopAt", "lists.setLevelLayout");
14561
- }
14102
+ validateListTarget(input, "lists.setLevelLayout");
14562
14103
  return adapter.setLevelLayout(input, normalizeMutationOptions(options));
14563
14104
  }
14564
- var VALID_BLOCK_NODE_TYPES, VALID_LIST_KINDS, VALID_INSERT_POSITIONS, VALID_JOIN_DIRECTIONS, VALID_MUTATION_SCOPES, VALID_LEVEL_ALIGNMENTS, VALID_TRAILING_CHARACTERS, VALID_LIST_PRESETS, VALID_CONTINUITY_VALUES, VALID_SEQUENCE_MODES, VALID_LIST_CREATE_MODES;
14565
14105
  var init_lists = __esm(() => {
14566
14106
  init_errors2();
14567
- init_validation_primitives();
14568
- init_base();
14569
- init_lists_types();
14570
- VALID_BLOCK_NODE_TYPES = new Set(BLOCK_NODE_TYPES);
14571
- VALID_LIST_KINDS = new Set(LIST_KINDS);
14572
- VALID_INSERT_POSITIONS = new Set(LIST_INSERT_POSITIONS);
14573
- VALID_JOIN_DIRECTIONS = new Set(JOIN_DIRECTIONS);
14574
- VALID_MUTATION_SCOPES = new Set(MUTATION_SCOPES);
14575
- VALID_LEVEL_ALIGNMENTS = new Set(LEVEL_ALIGNMENTS);
14576
- VALID_TRAILING_CHARACTERS = new Set(TRAILING_CHARACTERS);
14577
- VALID_LIST_PRESETS = new Set(LIST_PRESET_IDS);
14578
- VALID_CONTINUITY_VALUES = new Set(["preserve", "none"]);
14579
- VALID_SEQUENCE_MODES = new Set(["new", "continuePrevious"]);
14580
- VALID_LIST_CREATE_MODES = new Set(["empty", "fromParagraphs"]);
14581
14107
  });
14582
14108
 
14583
14109
  // ../../packages/document-api/src/replace/replace.ts
@@ -14755,36 +14281,16 @@ function validateCreateSectionBreakInput(input) {
14755
14281
  }
14756
14282
  }
14757
14283
  function executeCreateParagraph(adapter, input, options) {
14758
- if (!isRecord(input)) {
14759
- throw new DocumentApiValidationError("INVALID_INPUT", "create.paragraph input must be a non-null object.");
14760
- }
14761
- validateStoryLocator(input.in, "in");
14762
14284
  const at = normalizeCreateLocation(input.at, (loc) => validateTargetOnlyCreateLocation(loc, "create.paragraph"));
14763
14285
  const normalized = { at, text: input.text ?? "" };
14764
14286
  return adapter.paragraph(normalized, normalizeMutationOptions(options));
14765
14287
  }
14766
14288
  function executeCreateHeading(adapter, input, options) {
14767
- if (!isRecord(input)) {
14768
- throw new DocumentApiValidationError("INVALID_INPUT", "create.heading input must be a non-null object.");
14769
- }
14770
- validateStoryLocator(input.in, "in");
14771
- if (!isInteger(input.level) || !VALID_HEADING_LEVELS.has(input.level)) {
14772
- throw new DocumentApiValidationError("INVALID_INPUT", `create.heading level must be an integer 1–6, got ${JSON.stringify(input.level)}.`, { field: "level", value: input.level });
14773
- }
14774
14289
  const at = normalizeCreateLocation(input.at, (loc) => validateTargetOnlyCreateLocation(loc, "create.heading"));
14775
14290
  const normalized = { level: input.level, at, text: input.text ?? "" };
14776
14291
  return adapter.heading(normalized, normalizeMutationOptions(options));
14777
14292
  }
14778
14293
  function executeCreateTable(adapter, input, options) {
14779
- if (!isRecord(input)) {
14780
- throw new DocumentApiValidationError("INVALID_INPUT", "create.table input must be a non-null object.");
14781
- }
14782
- if (!isInteger(input.rows) || input.rows < 1) {
14783
- throw new DocumentApiValidationError("INVALID_INPUT", `create.table rows must be a positive integer, got ${JSON.stringify(input.rows)}.`, { field: "rows", value: input.rows });
14784
- }
14785
- if (!isInteger(input.columns) || input.columns < 1) {
14786
- throw new DocumentApiValidationError("INVALID_INPUT", `create.table columns must be a positive integer, got ${JSON.stringify(input.columns)}.`, { field: "columns", value: input.columns });
14787
- }
14788
14294
  const at = normalizeCreateLocation(input.at, (loc) => validateTargetOrNodeIdCreateLocation(loc, "create.table"));
14789
14295
  const normalized = { rows: input.rows, columns: input.columns, at };
14790
14296
  return adapter.table(normalized, normalizeMutationOptions(options));
@@ -14810,12 +14316,9 @@ function executeCreateTableOfContents(adapter, input, options) {
14810
14316
  const normalized = { at, config: input.config };
14811
14317
  return adapter.tableOfContents(normalized, normalizeMutationOptions(options));
14812
14318
  }
14813
- var VALID_HEADING_LEVELS, SECTION_BREAK_TYPES;
14319
+ var SECTION_BREAK_TYPES;
14814
14320
  var init_create = __esm(() => {
14815
14321
  init_errors2();
14816
- init_validation_primitives();
14817
- init_story_validator();
14818
- VALID_HEADING_LEVELS = new Set([1, 2, 3, 4, 5, 6]);
14819
14322
  SECTION_BREAK_TYPES = ["continuous", "nextPage", "evenPage", "oddPage"];
14820
14323
  });
14821
14324
 
@@ -14840,7 +14343,7 @@ function validateBlocksListInput(input) {
14840
14343
  });
14841
14344
  }
14842
14345
  for (const nt of input.nodeTypes) {
14843
- if (!VALID_BLOCK_NODE_TYPES2.has(nt)) {
14346
+ if (!VALID_BLOCK_NODE_TYPES.has(nt)) {
14844
14347
  throw new DocumentApiValidationError("INVALID_INPUT", `blocks.list nodeTypes contains unknown type "${nt}".`, {
14845
14348
  fields: ["nodeTypes"],
14846
14349
  nodeType: nt
@@ -14925,13 +14428,13 @@ function executeBlocksDeleteRange(adapter, input, options) {
14925
14428
  validateBlocksDeleteRangeInput(input);
14926
14429
  return adapter.deleteRange(input, normalizeMutationOptions(options));
14927
14430
  }
14928
- var SUPPORTED_DELETE_NODE_TYPES, REJECTED_DELETE_NODE_TYPES, VALID_BLOCK_NODE_TYPES2;
14431
+ var SUPPORTED_DELETE_NODE_TYPES, REJECTED_DELETE_NODE_TYPES, VALID_BLOCK_NODE_TYPES;
14929
14432
  var init_blocks = __esm(() => {
14930
14433
  init_base();
14931
14434
  init_errors2();
14932
14435
  SUPPORTED_DELETE_NODE_TYPES = new Set(DELETABLE_BLOCK_NODE_TYPES);
14933
14436
  REJECTED_DELETE_NODE_TYPES = new Set(["tableRow", "tableCell"]);
14934
- VALID_BLOCK_NODE_TYPES2 = new Set(BLOCK_NODE_TYPES);
14437
+ VALID_BLOCK_NODE_TYPES = new Set(BLOCK_NODE_TYPES);
14935
14438
  });
14936
14439
 
14937
14440
  // ../../packages/document-api/src/track-changes/track-changes.ts
@@ -14939,19 +14442,6 @@ function executeTrackChangesList(adapter, input) {
14939
14442
  return adapter.list(input);
14940
14443
  }
14941
14444
  function executeTrackChangesGet(adapter, input) {
14942
- const raw = input;
14943
- if (typeof raw !== "object" || raw == null) {
14944
- throw new DocumentApiValidationError("INVALID_INPUT", "trackChanges.get input must be a non-null object.", {
14945
- value: raw
14946
- });
14947
- }
14948
- const { id } = raw;
14949
- if (typeof id !== "string" || id.length === 0) {
14950
- throw new DocumentApiValidationError("INVALID_INPUT", "trackChanges.get id must be a non-empty string.", {
14951
- field: "id",
14952
- value: id
14953
- });
14954
- }
14955
14445
  return adapter.get(input);
14956
14446
  }
14957
14447
  function executeTrackChangesDecide(adapter, rawInput, options) {
@@ -16348,13 +15838,11 @@ function executeImagesRemoveCaption(adapter, input, options) {
16348
15838
  }
16349
15839
  function executeCreateImage(adapter, input, options) {
16350
15840
  requireString(input?.src, "src");
16351
- validateStoryLocator(input?.in, "in");
16352
15841
  return adapter.image(input, options);
16353
15842
  }
16354
15843
  var VALID_WRAP_TYPES, VALID_WRAP_SIDES, VALID_IMAGE_SIZE_UNITS;
16355
15844
  var init_images = __esm(() => {
16356
15845
  init_errors2();
16357
- init_story_validator();
16358
15846
  VALID_WRAP_TYPES = new Set(["Inline", "None", "Square", "Tight", "Through", "TopAndBottom"]);
16359
15847
  VALID_WRAP_SIDES = new Set(["bothSides", "left", "right", "largest"]);
16360
15848
  VALID_IMAGE_SIZE_UNITS = new Set(["px", "pt", "twip"]);
@@ -16394,39 +15882,26 @@ function validateInsertionTarget(target, operationName) {
16394
15882
  throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} target.anchor must have nodeType 'paragraph' and a string nodeId.`, { target });
16395
15883
  }
16396
15884
  }
16397
- function validateTocInput(input, operationName) {
16398
- if (!isRecord(input)) {
16399
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} input must be a non-null object.`);
16400
- }
16401
- }
16402
15885
  function executeTocList(adapter, query2) {
16403
15886
  return adapter.list(query2);
16404
15887
  }
16405
15888
  function executeTocGet(adapter, input) {
16406
- validateTocInput(input, "toc.get");
16407
15889
  validateTocTarget(input.target, "toc.get");
16408
15890
  return adapter.get(input);
16409
15891
  }
16410
15892
  function executeTocConfigure(adapter, input, options) {
16411
- validateTocInput(input, "toc.configure");
16412
15893
  validateTocTarget(input.target, "toc.configure");
16413
15894
  return adapter.configure(input, normalizeMutationOptions(options));
16414
15895
  }
16415
15896
  function executeTocUpdate(adapter, input, options) {
16416
- validateTocInput(input, "toc.update");
16417
15897
  validateTocTarget(input.target, "toc.update");
16418
- if (input.mode !== undefined && !VALID_TOC_UPDATE_MODES.has(input.mode)) {
16419
- throw new DocumentApiValidationError("INVALID_INPUT", `toc.update mode must be "all" or "pageNumbers", got "${String(input.mode)}".`, { field: "mode", value: input.mode });
16420
- }
16421
15898
  return adapter.update(input, normalizeMutationOptions(options));
16422
15899
  }
16423
15900
  function executeTocRemove(adapter, input, options) {
16424
- validateTocInput(input, "toc.remove");
16425
15901
  validateTocTarget(input.target, "toc.remove");
16426
15902
  return adapter.remove(input, normalizeMutationOptions(options));
16427
15903
  }
16428
15904
  function executeTocMarkEntry(adapter, input, options) {
16429
- validateTocInput(input, "toc.markEntry");
16430
15905
  validateInsertionTarget(input.target, "toc.markEntry");
16431
15906
  if (!input.text || typeof input.text !== "string") {
16432
15907
  throw new DocumentApiValidationError("INVALID_INPUT", "toc.markEntry requires a non-empty text string.");
@@ -16434,7 +15909,6 @@ function executeTocMarkEntry(adapter, input, options) {
16434
15909
  return adapter.markEntry(input, normalizeMutationOptions(options));
16435
15910
  }
16436
15911
  function executeTocUnmarkEntry(adapter, input, options) {
16437
- validateTocInput(input, "toc.unmarkEntry");
16438
15912
  validateTocEntryTarget(input.target, "toc.unmarkEntry");
16439
15913
  return adapter.unmarkEntry(input, normalizeMutationOptions(options));
16440
15914
  }
@@ -16442,63 +15916,15 @@ function executeTocListEntries(adapter, query2) {
16442
15916
  return adapter.listEntries(query2);
16443
15917
  }
16444
15918
  function executeTocGetEntry(adapter, input) {
16445
- validateTocInput(input, "toc.getEntry");
16446
15919
  validateTocEntryTarget(input.target, "toc.getEntry");
16447
15920
  return adapter.getEntry(input);
16448
15921
  }
16449
- function validateTocEditEntryPatch(patch, operationName) {
16450
- if (!isRecord(patch)) {
16451
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} patch must be a non-null object.`, {
16452
- field: "patch",
16453
- value: patch
16454
- });
16455
- }
16456
- for (const key of Object.keys(patch)) {
16457
- if (!EDIT_ENTRY_PATCH_ALLOWED_KEYS.has(key)) {
16458
- throw new DocumentApiValidationError("INVALID_INPUT", `Unknown field "${key}" on ${operationName} patch. Allowed fields: ${[...EDIT_ENTRY_PATCH_ALLOWED_KEYS].join(", ")}.`, { field: `patch.${key}` });
16459
- }
16460
- }
16461
- if (patch.text !== undefined && typeof patch.text !== "string") {
16462
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} patch.text must be a string.`, {
16463
- field: "patch.text",
16464
- value: patch.text
16465
- });
16466
- }
16467
- if (patch.level !== undefined) {
16468
- if (typeof patch.level !== "number" || !Number.isInteger(patch.level) || patch.level < 1) {
16469
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} patch.level must be a positive integer.`, { field: "patch.level", value: patch.level });
16470
- }
16471
- }
16472
- if (patch.tableIdentifier !== undefined && typeof patch.tableIdentifier !== "string") {
16473
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} patch.tableIdentifier must be a string.`, {
16474
- field: "patch.tableIdentifier",
16475
- value: patch.tableIdentifier
16476
- });
16477
- }
16478
- if (patch.omitPageNumber !== undefined && typeof patch.omitPageNumber !== "boolean") {
16479
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} patch.omitPageNumber must be a boolean.`, {
16480
- field: "patch.omitPageNumber",
16481
- value: patch.omitPageNumber
16482
- });
16483
- }
16484
- }
16485
15922
  function executeTocEditEntry(adapter, input, options) {
16486
- validateTocInput(input, "toc.editEntry");
16487
15923
  validateTocEntryTarget(input.target, "toc.editEntry");
16488
- validateTocEditEntryPatch(input.patch, "toc.editEntry");
16489
15924
  return adapter.editEntry(input, normalizeMutationOptions(options));
16490
15925
  }
16491
- var VALID_TOC_UPDATE_MODES, EDIT_ENTRY_PATCH_ALLOWED_KEYS;
16492
15926
  var init_toc = __esm(() => {
16493
15927
  init_errors2();
16494
- init_validation_primitives();
16495
- VALID_TOC_UPDATE_MODES = new Set(["all", "pageNumbers"]);
16496
- EDIT_ENTRY_PATCH_ALLOWED_KEYS = new Set([
16497
- "text",
16498
- "level",
16499
- "tableIdentifier",
16500
- "omitPageNumber"
16501
- ]);
16502
15928
  });
16503
15929
 
16504
15930
  // ../../packages/document-api/src/hyperlinks/hyperlinks.ts
@@ -16611,480 +16037,172 @@ var init_hyperlinks = __esm(() => {
16611
16037
  PATCH_FIELDS = new Set(["href", "anchor", "docLocation", "tooltip", "target", "rel"]);
16612
16038
  });
16613
16039
 
16614
- // ../../packages/document-api/src/content-controls/content-controls.types.ts
16615
- var CONTENT_CONTROL_TYPES, LOCK_MODES, CONTENT_CONTROL_APPEARANCES;
16616
- var init_content_controls_types = __esm(() => {
16617
- CONTENT_CONTROL_TYPES = [
16618
- "text",
16619
- "date",
16620
- "checkbox",
16621
- "comboBox",
16622
- "dropDownList",
16623
- "repeatingSection",
16624
- "repeatingSectionItem",
16625
- "group",
16626
- "unknown"
16627
- ];
16628
- LOCK_MODES = [
16629
- "unlocked",
16630
- "sdtLocked",
16631
- "contentLocked",
16632
- "sdtContentLocked"
16633
- ];
16634
- CONTENT_CONTROL_APPEARANCES = [
16635
- "boundingBox",
16636
- "tags",
16637
- "hidden"
16638
- ];
16639
- });
16640
-
16641
16040
  // ../../packages/document-api/src/content-controls/content-controls.ts
16642
- function validateCCInput(input, operationName) {
16643
- if (!isRecord(input)) {
16644
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} input must be a non-null object.`);
16645
- }
16646
- }
16647
- function validateCCTarget(target, operationName) {
16648
- if (!isRecord(target)) {
16649
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} requires a valid target with { kind, nodeType: 'sdt', nodeId }.`, { field: "target", value: target });
16650
- }
16651
- if (!VALID_NODE_KINDS.has(target.kind)) {
16652
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} target.kind must be 'block' or 'inline', got "${String(target.kind)}".`, { field: "target.kind", value: target.kind });
16653
- }
16654
- if (target.nodeType !== "sdt") {
16655
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} target.nodeType must be 'sdt', got "${String(target.nodeType)}".`, { field: "target.nodeType", value: target.nodeType });
16656
- }
16657
- if (typeof target.nodeId !== "string" || target.nodeId === "") {
16658
- throw new DocumentApiValidationError("INVALID_TARGET", `${operationName} target.nodeId must be a non-empty string.`, { field: "target.nodeId", value: target.nodeId });
16659
- }
16660
- }
16661
- function requireString2(value, field, operationName) {
16662
- if (typeof value !== "string" || value.length === 0) {
16663
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be a non-empty string.`, {
16664
- field,
16665
- value
16666
- });
16667
- }
16668
- }
16669
- function requireBoolean(value, field, operationName) {
16670
- if (typeof value !== "boolean") {
16671
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be a boolean, got ${typeof value}.`, { field, value });
16672
- }
16673
- }
16674
- function requireIndex(value, field, operationName) {
16675
- if (!isInteger(value) || value < 0) {
16676
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be a non-negative integer.`, {
16677
- field,
16678
- value
16679
- });
16680
- }
16681
- }
16682
- function requireNodeKind(value, field, operationName) {
16683
- if (!VALID_NODE_KINDS.has(value)) {
16684
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be 'block' or 'inline', got "${String(value)}".`, { field, value });
16685
- }
16686
- }
16687
- function validateContentFormat(value, field, operationName) {
16688
- if (value !== undefined && !VALID_CONTENT_FORMATS.has(value)) {
16689
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be 'text' or 'html', got "${String(value)}".`, { field, value });
16690
- }
16691
- }
16692
- function validateContentPayload(input, operationName) {
16693
- if (typeof input.content !== "string") {
16694
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} content must be a string.`, {
16695
- field: "content",
16696
- value: input.content
16697
- });
16698
- }
16699
- validateContentFormat(input.format, "format", operationName);
16700
- }
16701
- function validateSymbol(value, field, operationName) {
16702
- if (!isRecord(value) || typeof value.font !== "string" || typeof value.char !== "string") {
16703
- throw new DocumentApiValidationError("INVALID_INPUT", `${operationName} ${field} must be { font: string, char: string }.`, { field, value });
16704
- }
16705
- }
16706
16041
  function executeContentControlsList(adapter, query2) {
16707
- if (query2 !== undefined && !isRecord(query2)) {
16708
- throw new DocumentApiValidationError("INVALID_INPUT", "contentControls.list query must be an object if provided.");
16709
- }
16710
16042
  return adapter.list(query2);
16711
16043
  }
16712
16044
  function executeContentControlsGet(adapter, input) {
16713
- validateCCInput(input, "contentControls.get");
16714
- validateCCTarget(input.target, "contentControls.get");
16715
16045
  return adapter.get(input);
16716
16046
  }
16717
16047
  function executeContentControlsListInRange(adapter, input) {
16718
- validateCCInput(input, "contentControls.listInRange");
16719
- requireString2(input.startBlockId, "startBlockId", "contentControls.listInRange");
16720
- requireString2(input.endBlockId, "endBlockId", "contentControls.listInRange");
16721
16048
  return adapter.listInRange(input);
16722
16049
  }
16723
16050
  function executeContentControlsSelectByTag(adapter, input) {
16724
- validateCCInput(input, "contentControls.selectByTag");
16725
- requireString2(input.tag, "tag", "contentControls.selectByTag");
16726
16051
  return adapter.selectByTag(input);
16727
16052
  }
16728
16053
  function executeContentControlsSelectByTitle(adapter, input) {
16729
- validateCCInput(input, "contentControls.selectByTitle");
16730
- requireString2(input.title, "title", "contentControls.selectByTitle");
16731
16054
  return adapter.selectByTitle(input);
16732
16055
  }
16733
16056
  function executeContentControlsListChildren(adapter, input) {
16734
- validateCCInput(input, "contentControls.listChildren");
16735
- validateCCTarget(input.target, "contentControls.listChildren");
16736
16057
  return adapter.listChildren(input);
16737
16058
  }
16738
16059
  function executeContentControlsGetParent(adapter, input) {
16739
- validateCCInput(input, "contentControls.getParent");
16740
- validateCCTarget(input.target, "contentControls.getParent");
16741
16060
  return adapter.getParent(input);
16742
16061
  }
16743
16062
  function executeContentControlsWrap(adapter, input, options) {
16744
- validateCCInput(input, "contentControls.wrap");
16745
- requireNodeKind(input.kind, "kind", "contentControls.wrap");
16746
- validateCCTarget(input.target, "contentControls.wrap");
16747
16063
  return adapter.wrap(input, options);
16748
16064
  }
16749
16065
  function executeContentControlsUnwrap(adapter, input, options) {
16750
- validateCCInput(input, "contentControls.unwrap");
16751
- validateCCTarget(input.target, "contentControls.unwrap");
16752
16066
  return adapter.unwrap(input, options);
16753
16067
  }
16754
16068
  function executeContentControlsDelete(adapter, input, options) {
16755
- validateCCInput(input, "contentControls.delete");
16756
- validateCCTarget(input.target, "contentControls.delete");
16757
16069
  return adapter.delete(input, options);
16758
16070
  }
16759
16071
  function executeContentControlsCopy(adapter, input, options) {
16760
- validateCCInput(input, "contentControls.copy");
16761
- validateCCTarget(input.target, "contentControls.copy");
16762
- validateCCTarget(input.destination, "contentControls.copy (destination)");
16763
16072
  return adapter.copy(input, options);
16764
16073
  }
16765
16074
  function executeContentControlsMove(adapter, input, options) {
16766
- validateCCInput(input, "contentControls.move");
16767
- validateCCTarget(input.target, "contentControls.move");
16768
- validateCCTarget(input.destination, "contentControls.move (destination)");
16769
16075
  return adapter.move(input, options);
16770
16076
  }
16771
16077
  function executeContentControlsPatch(adapter, input, options) {
16772
- validateCCInput(input, "contentControls.patch");
16773
- validateCCTarget(input.target, "contentControls.patch");
16774
- if (input.appearance !== undefined && input.appearance !== null && !VALID_CC_APPEARANCES.has(input.appearance)) {
16775
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.patch appearance must be one of: ${[...VALID_CC_APPEARANCES].join(", ")}.`, { field: "appearance", value: input.appearance });
16776
- }
16777
- if (input.showingPlaceholder !== undefined && typeof input.showingPlaceholder !== "boolean") {
16778
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.patch showingPlaceholder must be a boolean, got ${typeof input.showingPlaceholder}.`, { field: "showingPlaceholder", value: input.showingPlaceholder });
16779
- }
16780
- if (input.temporary !== undefined && typeof input.temporary !== "boolean") {
16781
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.patch temporary must be a boolean, got ${typeof input.temporary}.`, { field: "temporary", value: input.temporary });
16782
- }
16783
- if (input.tabIndex !== undefined && input.tabIndex !== null && !isInteger(input.tabIndex)) {
16784
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.patch tabIndex must be an integer or null, got ${typeof input.tabIndex}.`, { field: "tabIndex", value: input.tabIndex });
16785
- }
16786
16078
  return adapter.patch(input, options);
16787
16079
  }
16788
16080
  function executeContentControlsSetLockMode(adapter, input, options) {
16789
- validateCCInput(input, "contentControls.setLockMode");
16790
- validateCCTarget(input.target, "contentControls.setLockMode");
16791
- if (!VALID_LOCK_MODES.has(input.lockMode)) {
16792
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.setLockMode lockMode must be one of: ${[...VALID_LOCK_MODES].join(", ")}.`, { field: "lockMode", value: input.lockMode });
16793
- }
16794
16081
  return adapter.setLockMode(input, options);
16795
16082
  }
16796
16083
  function executeContentControlsSetType(adapter, input, options) {
16797
- validateCCInput(input, "contentControls.setType");
16798
- validateCCTarget(input.target, "contentControls.setType");
16799
- if (!VALID_CC_TYPES.has(input.controlType)) {
16800
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.setType controlType must be one of: ${[...VALID_CC_TYPES].join(", ")}.`, { field: "controlType", value: input.controlType });
16801
- }
16802
16084
  return adapter.setType(input, options);
16803
16085
  }
16804
16086
  function executeContentControlsGetContent(adapter, input) {
16805
- validateCCInput(input, "contentControls.getContent");
16806
- validateCCTarget(input.target, "contentControls.getContent");
16807
16087
  return adapter.getContent(input);
16808
16088
  }
16809
16089
  function executeContentControlsReplaceContent(adapter, input, options) {
16810
- validateCCInput(input, "contentControls.replaceContent");
16811
- validateCCTarget(input.target, "contentControls.replaceContent");
16812
- validateContentPayload(input, "contentControls.replaceContent");
16813
16090
  return adapter.replaceContent(input, options);
16814
16091
  }
16815
16092
  function executeContentControlsClearContent(adapter, input, options) {
16816
- validateCCInput(input, "contentControls.clearContent");
16817
- validateCCTarget(input.target, "contentControls.clearContent");
16818
16093
  return adapter.clearContent(input, options);
16819
16094
  }
16820
16095
  function executeContentControlsAppendContent(adapter, input, options) {
16821
- validateCCInput(input, "contentControls.appendContent");
16822
- validateCCTarget(input.target, "contentControls.appendContent");
16823
- validateContentPayload(input, "contentControls.appendContent");
16824
16096
  return adapter.appendContent(input, options);
16825
16097
  }
16826
16098
  function executeContentControlsPrependContent(adapter, input, options) {
16827
- validateCCInput(input, "contentControls.prependContent");
16828
- validateCCTarget(input.target, "contentControls.prependContent");
16829
- validateContentPayload(input, "contentControls.prependContent");
16830
16099
  return adapter.prependContent(input, options);
16831
16100
  }
16832
16101
  function executeContentControlsInsertBefore(adapter, input, options) {
16833
- validateCCInput(input, "contentControls.insertBefore");
16834
- validateCCTarget(input.target, "contentControls.insertBefore");
16835
- validateContentPayload(input, "contentControls.insertBefore");
16836
16102
  return adapter.insertBefore(input, options);
16837
16103
  }
16838
16104
  function executeContentControlsInsertAfter(adapter, input, options) {
16839
- validateCCInput(input, "contentControls.insertAfter");
16840
- validateCCTarget(input.target, "contentControls.insertAfter");
16841
- validateContentPayload(input, "contentControls.insertAfter");
16842
16105
  return adapter.insertAfter(input, options);
16843
16106
  }
16844
16107
  function executeContentControlsGetBinding(adapter, input) {
16845
- validateCCInput(input, "contentControls.getBinding");
16846
- validateCCTarget(input.target, "contentControls.getBinding");
16847
16108
  return adapter.getBinding(input);
16848
16109
  }
16849
16110
  function executeContentControlsSetBinding(adapter, input, options) {
16850
- validateCCInput(input, "contentControls.setBinding");
16851
- validateCCTarget(input.target, "contentControls.setBinding");
16852
- requireString2(input.storeItemId, "storeItemId", "contentControls.setBinding");
16853
- requireString2(input.xpath, "xpath", "contentControls.setBinding");
16854
16111
  return adapter.setBinding(input, options);
16855
16112
  }
16856
16113
  function executeContentControlsClearBinding(adapter, input, options) {
16857
- validateCCInput(input, "contentControls.clearBinding");
16858
- validateCCTarget(input.target, "contentControls.clearBinding");
16859
16114
  return adapter.clearBinding(input, options);
16860
16115
  }
16861
16116
  function executeContentControlsGetRawProperties(adapter, input) {
16862
- validateCCInput(input, "contentControls.getRawProperties");
16863
- validateCCTarget(input.target, "contentControls.getRawProperties");
16864
16117
  return adapter.getRawProperties(input);
16865
16118
  }
16866
16119
  function executeContentControlsPatchRawProperties(adapter, input, options) {
16867
- validateCCInput(input, "contentControls.patchRawProperties");
16868
- validateCCTarget(input.target, "contentControls.patchRawProperties");
16869
- if (!Array.isArray(input.patches)) {
16870
- throw new DocumentApiValidationError("INVALID_INPUT", "contentControls.patchRawProperties patches must be an array.", { field: "patches", value: input.patches });
16871
- }
16872
- for (let i = 0;i < input.patches.length; i++) {
16873
- const patch = input.patches[i];
16874
- if (!isRecord(patch)) {
16875
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.patchRawProperties patches[${i}] must be an object.`, { field: `patches[${i}]`, value: patch });
16876
- }
16877
- if (!VALID_RAW_PATCH_OPS.has(patch.op)) {
16878
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.patchRawProperties patches[${i}].op must be one of: ${[...VALID_RAW_PATCH_OPS].join(", ")}.`, { field: `patches[${i}].op`, value: patch.op });
16879
- }
16880
- if (typeof patch.name !== "string" || patch.name === "") {
16881
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.patchRawProperties patches[${i}].name must be a non-empty string.`, { field: `patches[${i}].name`, value: patch.name });
16882
- }
16883
- }
16884
16120
  return adapter.patchRawProperties(input, options);
16885
16121
  }
16886
16122
  function executeContentControlsValidateWordCompatibility(adapter, input) {
16887
- validateCCInput(input, "contentControls.validateWordCompatibility");
16888
- validateCCTarget(input.target, "contentControls.validateWordCompatibility");
16889
16123
  return adapter.validateWordCompatibility(input);
16890
16124
  }
16891
16125
  function executeContentControlsNormalizeWordCompatibility(adapter, input, options) {
16892
- validateCCInput(input, "contentControls.normalizeWordCompatibility");
16893
- validateCCTarget(input.target, "contentControls.normalizeWordCompatibility");
16894
16126
  return adapter.normalizeWordCompatibility(input, options);
16895
16127
  }
16896
16128
  function executeContentControlsNormalizeTagPayload(adapter, input, options) {
16897
- validateCCInput(input, "contentControls.normalizeTagPayload");
16898
- validateCCTarget(input.target, "contentControls.normalizeTagPayload");
16899
16129
  return adapter.normalizeTagPayload(input, options);
16900
16130
  }
16901
16131
  function executeContentControlsTextSetMultiline(adapter, input, options) {
16902
- validateCCInput(input, "contentControls.text.setMultiline");
16903
- validateCCTarget(input.target, "contentControls.text.setMultiline");
16904
- requireBoolean(input.multiline, "multiline", "contentControls.text.setMultiline");
16905
16132
  return adapter.text.setMultiline(input, options);
16906
16133
  }
16907
16134
  function executeContentControlsTextSetValue(adapter, input, options) {
16908
- validateCCInput(input, "contentControls.text.setValue");
16909
- validateCCTarget(input.target, "contentControls.text.setValue");
16910
- if (typeof input.value !== "string") {
16911
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.text.setValue value must be a string.`, {
16912
- field: "value",
16913
- value: input.value
16914
- });
16915
- }
16916
16135
  return adapter.text.setValue(input, options);
16917
16136
  }
16918
16137
  function executeContentControlsTextClearValue(adapter, input, options) {
16919
- validateCCInput(input, "contentControls.text.clearValue");
16920
- validateCCTarget(input.target, "contentControls.text.clearValue");
16921
16138
  return adapter.text.clearValue(input, options);
16922
16139
  }
16923
16140
  function executeContentControlsDateSetValue(adapter, input, options) {
16924
- validateCCInput(input, "contentControls.date.setValue");
16925
- validateCCTarget(input.target, "contentControls.date.setValue");
16926
- if (typeof input.value !== "string") {
16927
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.date.setValue value must be a string.`, {
16928
- field: "value",
16929
- value: input.value
16930
- });
16931
- }
16932
16141
  return adapter.date.setValue(input, options);
16933
16142
  }
16934
16143
  function executeContentControlsDateClearValue(adapter, input, options) {
16935
- validateCCInput(input, "contentControls.date.clearValue");
16936
- validateCCTarget(input.target, "contentControls.date.clearValue");
16937
16144
  return adapter.date.clearValue(input, options);
16938
16145
  }
16939
16146
  function executeContentControlsDateSetDisplayFormat(adapter, input, options) {
16940
- validateCCInput(input, "contentControls.date.setDisplayFormat");
16941
- validateCCTarget(input.target, "contentControls.date.setDisplayFormat");
16942
- requireString2(input.format, "format", "contentControls.date.setDisplayFormat");
16943
16147
  return adapter.date.setDisplayFormat(input, options);
16944
16148
  }
16945
16149
  function executeContentControlsDateSetDisplayLocale(adapter, input, options) {
16946
- validateCCInput(input, "contentControls.date.setDisplayLocale");
16947
- validateCCTarget(input.target, "contentControls.date.setDisplayLocale");
16948
- requireString2(input.locale, "locale", "contentControls.date.setDisplayLocale");
16949
16150
  return adapter.date.setDisplayLocale(input, options);
16950
16151
  }
16951
16152
  function executeContentControlsDateSetStorageFormat(adapter, input, options) {
16952
- validateCCInput(input, "contentControls.date.setStorageFormat");
16953
- validateCCTarget(input.target, "contentControls.date.setStorageFormat");
16954
- requireString2(input.format, "format", "contentControls.date.setStorageFormat");
16955
16153
  return adapter.date.setStorageFormat(input, options);
16956
16154
  }
16957
16155
  function executeContentControlsDateSetCalendar(adapter, input, options) {
16958
- validateCCInput(input, "contentControls.date.setCalendar");
16959
- validateCCTarget(input.target, "contentControls.date.setCalendar");
16960
- requireString2(input.calendar, "calendar", "contentControls.date.setCalendar");
16961
16156
  return adapter.date.setCalendar(input, options);
16962
16157
  }
16963
16158
  function executeContentControlsCheckboxGetState(adapter, input) {
16964
- validateCCInput(input, "contentControls.checkbox.getState");
16965
- validateCCTarget(input.target, "contentControls.checkbox.getState");
16966
16159
  return adapter.checkbox.getState(input);
16967
16160
  }
16968
16161
  function executeContentControlsCheckboxSetState(adapter, input, options) {
16969
- validateCCInput(input, "contentControls.checkbox.setState");
16970
- validateCCTarget(input.target, "contentControls.checkbox.setState");
16971
- requireBoolean(input.checked, "checked", "contentControls.checkbox.setState");
16972
16162
  return adapter.checkbox.setState(input, options);
16973
16163
  }
16974
16164
  function executeContentControlsCheckboxToggle(adapter, input, options) {
16975
- validateCCInput(input, "contentControls.checkbox.toggle");
16976
- validateCCTarget(input.target, "contentControls.checkbox.toggle");
16977
16165
  return adapter.checkbox.toggle(input, options);
16978
16166
  }
16979
16167
  function executeContentControlsCheckboxSetSymbolPair(adapter, input, options) {
16980
- validateCCInput(input, "contentControls.checkbox.setSymbolPair");
16981
- validateCCTarget(input.target, "contentControls.checkbox.setSymbolPair");
16982
- validateSymbol(input.checkedSymbol, "checkedSymbol", "contentControls.checkbox.setSymbolPair");
16983
- validateSymbol(input.uncheckedSymbol, "uncheckedSymbol", "contentControls.checkbox.setSymbolPair");
16984
16168
  return adapter.checkbox.setSymbolPair(input, options);
16985
16169
  }
16986
16170
  function executeContentControlsChoiceListGetItems(adapter, input) {
16987
- validateCCInput(input, "contentControls.choiceList.getItems");
16988
- validateCCTarget(input.target, "contentControls.choiceList.getItems");
16989
16171
  return adapter.choiceList.getItems(input);
16990
16172
  }
16991
16173
  function executeContentControlsChoiceListSetItems(adapter, input, options) {
16992
- validateCCInput(input, "contentControls.choiceList.setItems");
16993
- validateCCTarget(input.target, "contentControls.choiceList.setItems");
16994
- if (!Array.isArray(input.items)) {
16995
- throw new DocumentApiValidationError("INVALID_INPUT", "contentControls.choiceList.setItems items must be an array.", { field: "items", value: input.items });
16996
- }
16997
- for (let i = 0;i < input.items.length; i++) {
16998
- const item = input.items[i];
16999
- if (!isRecord(item) || typeof item.displayText !== "string" || typeof item.value !== "string") {
17000
- throw new DocumentApiValidationError("INVALID_INPUT", `contentControls.choiceList.setItems items[${i}] must be { displayText: string, value: string }.`, { field: `items[${i}]`, value: item });
17001
- }
17002
- }
17003
16174
  return adapter.choiceList.setItems(input, options);
17004
16175
  }
17005
16176
  function executeContentControlsChoiceListSetSelected(adapter, input, options) {
17006
- validateCCInput(input, "contentControls.choiceList.setSelected");
17007
- validateCCTarget(input.target, "contentControls.choiceList.setSelected");
17008
- if (typeof input.value !== "string") {
17009
- throw new DocumentApiValidationError("INVALID_INPUT", "contentControls.choiceList.setSelected value must be a string.", { field: "value", value: input.value });
17010
- }
17011
16177
  return adapter.choiceList.setSelected(input, options);
17012
16178
  }
17013
16179
  function executeContentControlsRepeatingSectionListItems(adapter, input) {
17014
- validateCCInput(input, "contentControls.repeatingSection.listItems");
17015
- validateCCTarget(input.target, "contentControls.repeatingSection.listItems");
17016
16180
  return adapter.repeatingSection.listItems(input);
17017
16181
  }
17018
16182
  function executeContentControlsRepeatingSectionInsertItemBefore(adapter, input, options) {
17019
- validateCCInput(input, "contentControls.repeatingSection.insertItemBefore");
17020
- validateCCTarget(input.target, "contentControls.repeatingSection.insertItemBefore");
17021
- requireIndex(input.index, "index", "contentControls.repeatingSection.insertItemBefore");
17022
16183
  return adapter.repeatingSection.insertItemBefore(input, options);
17023
16184
  }
17024
16185
  function executeContentControlsRepeatingSectionInsertItemAfter(adapter, input, options) {
17025
- validateCCInput(input, "contentControls.repeatingSection.insertItemAfter");
17026
- validateCCTarget(input.target, "contentControls.repeatingSection.insertItemAfter");
17027
- requireIndex(input.index, "index", "contentControls.repeatingSection.insertItemAfter");
17028
16186
  return adapter.repeatingSection.insertItemAfter(input, options);
17029
16187
  }
17030
16188
  function executeContentControlsRepeatingSectionCloneItem(adapter, input, options) {
17031
- validateCCInput(input, "contentControls.repeatingSection.cloneItem");
17032
- validateCCTarget(input.target, "contentControls.repeatingSection.cloneItem");
17033
- requireIndex(input.index, "index", "contentControls.repeatingSection.cloneItem");
17034
16189
  return adapter.repeatingSection.cloneItem(input, options);
17035
16190
  }
17036
16191
  function executeContentControlsRepeatingSectionDeleteItem(adapter, input, options) {
17037
- validateCCInput(input, "contentControls.repeatingSection.deleteItem");
17038
- validateCCTarget(input.target, "contentControls.repeatingSection.deleteItem");
17039
- requireIndex(input.index, "index", "contentControls.repeatingSection.deleteItem");
17040
16192
  return adapter.repeatingSection.deleteItem(input, options);
17041
16193
  }
17042
16194
  function executeContentControlsRepeatingSectionSetAllowInsertDelete(adapter, input, options) {
17043
- validateCCInput(input, "contentControls.repeatingSection.setAllowInsertDelete");
17044
- validateCCTarget(input.target, "contentControls.repeatingSection.setAllowInsertDelete");
17045
- requireBoolean(input.allow, "allow", "contentControls.repeatingSection.setAllowInsertDelete");
17046
16195
  return adapter.repeatingSection.setAllowInsertDelete(input, options);
17047
16196
  }
17048
16197
  function executeContentControlsGroupWrap(adapter, input, options) {
17049
- validateCCInput(input, "contentControls.group.wrap");
17050
- validateCCTarget(input.target, "contentControls.group.wrap");
17051
16198
  return adapter.group.wrap(input, options);
17052
16199
  }
17053
16200
  function executeContentControlsGroupUngroup(adapter, input, options) {
17054
- validateCCInput(input, "contentControls.group.ungroup");
17055
- validateCCTarget(input.target, "contentControls.group.ungroup");
17056
16201
  return adapter.group.ungroup(input, options);
17057
16202
  }
17058
16203
  function executeCreateContentControl(adapter, input, options) {
17059
- validateCCInput(input, "create.contentControl");
17060
- requireNodeKind(input.kind, "kind", "create.contentControl");
17061
- if (input.controlType !== undefined && !VALID_CC_TYPES.has(input.controlType)) {
17062
- throw new DocumentApiValidationError("INVALID_INPUT", `create.contentControl controlType must be one of: ${[...VALID_CC_TYPES].join(", ")}.`, { field: "controlType", value: input.controlType });
17063
- }
17064
- if (input.lockMode !== undefined && !VALID_LOCK_MODES.has(input.lockMode)) {
17065
- throw new DocumentApiValidationError("INVALID_INPUT", `create.contentControl lockMode must be one of: ${[...VALID_LOCK_MODES].join(", ")}.`, { field: "lockMode", value: input.lockMode });
17066
- }
17067
- if (input.target !== undefined) {
17068
- validateCCTarget(input.target, "create.contentControl");
17069
- }
17070
- if (input.content !== undefined && typeof input.content !== "string") {
17071
- throw new DocumentApiValidationError("INVALID_INPUT", `create.contentControl content must be a string, got ${typeof input.content}.`, { field: "content", value: input.content });
17072
- }
17073
16204
  return adapter.create(input, options);
17074
16205
  }
17075
- var VALID_NODE_KINDS, VALID_LOCK_MODES, VALID_CC_TYPES, VALID_CC_APPEARANCES, VALID_CONTENT_FORMATS, VALID_RAW_PATCH_OPS;
17076
- var init_content_controls = __esm(() => {
17077
- init_errors2();
17078
- init_validation_primitives();
17079
- init_content_controls_types();
17080
- init_base();
17081
- VALID_NODE_KINDS = new Set(NODE_KINDS);
17082
- VALID_LOCK_MODES = new Set(LOCK_MODES);
17083
- VALID_CC_TYPES = new Set(CONTENT_CONTROL_TYPES);
17084
- VALID_CC_APPEARANCES = new Set(CONTENT_CONTROL_APPEARANCES);
17085
- VALID_CONTENT_FORMATS = new Set(["text", "html"]);
17086
- VALID_RAW_PATCH_OPS = new Set(["set", "remove", "setAttr", "removeAttr"]);
17087
- });
17088
16206
 
17089
16207
  // ../../packages/document-api/src/bookmarks/bookmarks.ts
17090
16208
  function validateBookmarkTarget(target, operationName) {
@@ -17538,6 +16656,16 @@ var init_authorities = __esm(() => {
17538
16656
  init_create_location_validator();
17539
16657
  });
17540
16658
 
16659
+ // ../../packages/document-api/src/content-controls/content-controls.types.ts
16660
+ var init_content_controls_types = () => {};
16661
+
16662
+ // ../../packages/document-api/src/lists/lists.types.ts
16663
+ var LIST_KINDS, LIST_INSERT_POSITIONS;
16664
+ var init_lists_types = __esm(() => {
16665
+ LIST_KINDS = ["ordered", "bullet"];
16666
+ LIST_INSERT_POSITIONS = ["before", "after"];
16667
+ });
16668
+
17541
16669
  // ../../packages/document-api/src/index.ts
17542
16670
  function executeQueryMatch(adapter, input) {
17543
16671
  if (!input || typeof input !== "object") {
@@ -18716,9 +17844,6 @@ var init_src = __esm(() => {
18716
17844
  init_format();
18717
17845
  init_inline_run_patch();
18718
17846
  init_styles();
18719
- init_get_text();
18720
- init_get_markdown();
18721
- init_get_html();
18722
17847
  init_story_validator();
18723
17848
  init_delete();
18724
17849
  init_resolve();
@@ -18738,7 +17863,6 @@ var init_src = __esm(() => {
18738
17863
  init_images();
18739
17864
  init_toc();
18740
17865
  init_hyperlinks();
18741
- init_content_controls();
18742
17866
  init_bookmarks();
18743
17867
  init_footnotes();
18744
17868
  init_cross_refs();
@@ -41059,7 +40183,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
41059
40183
  emptyOptions2 = {};
41060
40184
  });
41061
40185
 
41062
- // ../../packages/superdoc/dist/chunks/SuperConverter-V-8WDjnK.es.js
40186
+ // ../../packages/superdoc/dist/chunks/SuperConverter-BL6WX-iN.es.js
41063
40187
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
41064
40188
  const fieldValue = extension$1.config[field];
41065
40189
  if (typeof fieldValue === "function")
@@ -43712,24 +42836,24 @@ function executeMarkdownToFragment2(adapter, input) {
43712
42836
  }
43713
42837
  function validateCreateCommentInput2(input) {
43714
42838
  if (!isRecord4(input))
43715
- throw new DocumentApiValidationError2("INVALID_INPUT", "comments.create input must be a non-null object.");
42839
+ throw new DocumentApiValidationError2("INVALID_TARGET", "comments.create input must be a non-null object.");
43716
42840
  assertNoUnknownFields3(input, CREATE_COMMENT_ALLOWED_KEYS2, "comments.create");
43717
42841
  const { target, text: text$2, parentCommentId } = input;
43718
42842
  const hasTarget = target !== undefined;
43719
42843
  const isReply = parentCommentId !== undefined;
43720
42844
  if (typeof text$2 !== "string")
43721
- throw new DocumentApiValidationError2("INVALID_INPUT", `text must be a string, got ${typeof text$2}.`, {
42845
+ throw new DocumentApiValidationError2("INVALID_TARGET", `text must be a string, got ${typeof text$2}.`, {
43722
42846
  field: "text",
43723
42847
  value: text$2
43724
42848
  });
43725
42849
  if (isReply) {
43726
42850
  if (typeof parentCommentId !== "string" || parentCommentId.length === 0)
43727
- throw new DocumentApiValidationError2("INVALID_INPUT", "parentCommentId must be a non-empty string.", {
42851
+ throw new DocumentApiValidationError2("INVALID_TARGET", "parentCommentId must be a non-empty string.", {
43728
42852
  field: "parentCommentId",
43729
42853
  value: parentCommentId
43730
42854
  });
43731
42855
  if (hasTarget)
43732
- throw new DocumentApiValidationError2("INVALID_INPUT", "Cannot combine parentCommentId with target. Replies do not take a target.", { fields: ["parentCommentId", "target"] });
42856
+ throw new DocumentApiValidationError2("INVALID_TARGET", "Cannot combine parentCommentId with target. Replies do not take a target.", { fields: ["parentCommentId", "target"] });
43733
42857
  return;
43734
42858
  }
43735
42859
  if (!hasTarget)
@@ -43742,12 +42866,12 @@ function validateCreateCommentInput2(input) {
43742
42866
  }
43743
42867
  function validatePatchCommentInput2(input) {
43744
42868
  if (!isRecord4(input))
43745
- throw new DocumentApiValidationError2("INVALID_INPUT", "comments.patch input must be a non-null object.");
42869
+ throw new DocumentApiValidationError2("INVALID_TARGET", "comments.patch input must be a non-null object.");
43746
42870
  assertNoUnknownFields3(input, PATCH_COMMENT_ALLOWED_KEYS2, "comments.patch");
43747
42871
  const { commentId, target } = input;
43748
42872
  const hasTarget = target !== undefined;
43749
42873
  if (typeof commentId !== "string")
43750
- throw new DocumentApiValidationError2("INVALID_INPUT", `commentId must be a string, got ${typeof commentId}.`, {
42874
+ throw new DocumentApiValidationError2("INVALID_TARGET", `commentId must be a string, got ${typeof commentId}.`, {
43751
42875
  field: "commentId",
43752
42876
  value: commentId
43753
42877
  });
@@ -43762,22 +42886,12 @@ function validatePatchCommentInput2(input) {
43762
42886
  throw new DocumentApiValidationError2("INVALID_INPUT", "comments.patch requires exactly one mutation field (text, target, status, or isInternal).", { allowedFields: [...mutationFields] });
43763
42887
  if (providedFields.length > 1)
43764
42888
  throw new DocumentApiValidationError2("INVALID_INPUT", `comments.patch accepts exactly one mutation field per call, got ${providedFields.length}: ${providedFields.join(", ")}.`, { providedFields: [...providedFields] });
43765
- const { text: text$2, status, isInternal } = input;
43766
- if (text$2 !== undefined && typeof text$2 !== "string")
43767
- throw new DocumentApiValidationError2("INVALID_INPUT", `text must be a string, got ${typeof text$2}.`, {
43768
- field: "text",
43769
- value: text$2
43770
- });
42889
+ const { status } = input;
43771
42890
  if (status !== undefined && status !== "resolved")
43772
- throw new DocumentApiValidationError2("INVALID_INPUT", `status must be "resolved", got "${String(status)}".`, {
42891
+ throw new DocumentApiValidationError2("INVALID_TARGET", `status must be "resolved", got "${String(status)}".`, {
43773
42892
  field: "status",
43774
42893
  value: status
43775
42894
  });
43776
- if (isInternal !== undefined && typeof isInternal !== "boolean")
43777
- throw new DocumentApiValidationError2("INVALID_INPUT", `isInternal must be a boolean, got ${typeof isInternal}.`, {
43778
- field: "isInternal",
43779
- value: isInternal
43780
- });
43781
42895
  if (hasTarget && !isTextAddress2(target))
43782
42896
  throw new DocumentApiValidationError2("INVALID_TARGET", "target must be a text address object.", {
43783
42897
  field: "target",
@@ -43814,26 +42928,13 @@ function executeCommentsPatch2(adapter, input, options) {
43814
42928
  }, options);
43815
42929
  throw new DocumentApiValidationError2("INTERNAL_ERROR", "comments.patch: no mutation field matched after validation. This is a bug.");
43816
42930
  }
43817
- function validateCommentIdInput2(input, operationName) {
43818
- if (!isRecord4(input))
43819
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} input must be a non-null object.`);
43820
- if (typeof input.commentId !== "string" || input.commentId.length === 0)
43821
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} commentId must be a non-empty string.`, {
43822
- field: "commentId",
43823
- value: input.commentId
43824
- });
43825
- }
43826
42931
  function executeCommentsDelete2(adapter, input, options) {
43827
- validateCommentIdInput2(input, "comments.delete");
43828
42932
  return adapter.remove({ commentId: input.commentId }, options);
43829
42933
  }
43830
42934
  function executeGetComment2(adapter, input) {
43831
- validateCommentIdInput2(input, "comments.get");
43832
42935
  return adapter.get(input);
43833
42936
  }
43834
42937
  function executeListComments2(adapter, query2) {
43835
- if (query2 !== undefined && !isRecord4(query2))
43836
- throw new DocumentApiValidationError2("INVALID_INPUT", "comments.list query must be an object if provided.");
43837
42938
  return adapter.list(query2);
43838
42939
  }
43839
42940
  function executeFind2(adapter, input) {
@@ -43927,21 +43028,12 @@ function executeGet2(adapter, input) {
43927
43028
  return adapter.get(input);
43928
43029
  }
43929
43030
  function executeGetText2(adapter, input) {
43930
- if (!isRecord4(input))
43931
- throw new DocumentApiValidationError2("INVALID_INPUT", "getText input must be a non-null object.");
43932
- validateStoryLocator2(input.in, "in");
43933
43031
  return adapter.getText(input);
43934
43032
  }
43935
43033
  function executeGetMarkdown2(adapter, input) {
43936
- if (!isRecord4(input))
43937
- throw new DocumentApiValidationError2("INVALID_INPUT", "getMarkdown input must be a non-null object.");
43938
- validateStoryLocator2(input.in, "in");
43939
43034
  return adapter.getMarkdown(input);
43940
43035
  }
43941
43036
  function executeGetHtml2(adapter, input) {
43942
- if (!isRecord4(input))
43943
- throw new DocumentApiValidationError2("INVALID_INPUT", "getHtml input must be a non-null object.");
43944
- validateStoryLocator2(input.in, "in");
43945
43037
  return adapter.getHtml(input);
43946
43038
  }
43947
43039
  function executeInfo2(adapter, input) {
@@ -44555,531 +43647,149 @@ function executeInsert2(selectionAdapter, writeAdapter, input, options) {
44555
43647
  ...storyIn ? { in: storyIn } : {}
44556
43648
  }, options));
44557
43649
  }
44558
- function validateListInput2(input, operationName) {
44559
- if (!isRecord4(input))
44560
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} input must be a non-null object.`);
44561
- }
44562
- function validateListItemAddress2(value, field, operationName) {
44563
- if (value === undefined || value === null)
44564
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} requires a ${field}.`);
44565
- if (!isRecord4(value))
44566
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field} must be an object.`, {
44567
- field,
44568
- value
44569
- });
44570
- const t = value;
44571
- if (t.kind !== "block")
44572
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field}.kind must be 'block', got "${String(t.kind)}".`, {
44573
- field: `${field}.kind`,
44574
- value: t.kind
44575
- });
44576
- if (t.nodeType !== "listItem")
44577
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field}.nodeType must be 'listItem', got "${String(t.nodeType)}".`, {
44578
- field: `${field}.nodeType`,
44579
- value: t.nodeType
44580
- });
44581
- if (typeof t.nodeId !== "string" || t.nodeId === "")
44582
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field}.nodeId must be a non-empty string.`, {
44583
- field: `${field}.nodeId`,
44584
- value: t.nodeId
44585
- });
44586
- }
44587
- function validateListItemTarget2(input, operationName) {
44588
- validateListItemAddress2(input.target, "target", operationName);
44589
- }
44590
- function validateBlockAddress2(value, field, operationName) {
44591
- if (!isRecord4(value))
44592
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field} must be an object.`, {
44593
- field,
44594
- value
44595
- });
44596
- const v = value;
44597
- if (v.kind !== "block")
44598
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field}.kind must be 'block', got "${String(v.kind)}".`, {
44599
- field: `${field}.kind`,
44600
- value: v.kind
44601
- });
44602
- if (v.nodeType !== "paragraph")
44603
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field}.nodeType must be 'paragraph', got "${String(v.nodeType)}".`, {
44604
- field: `${field}.nodeType`,
44605
- value: v.nodeType
44606
- });
44607
- if (typeof v.nodeId !== "string" || v.nodeId === "")
44608
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field}.nodeId must be a non-empty string.`, {
44609
- field: `${field}.nodeId`,
44610
- value: v.nodeId
44611
- });
44612
- }
44613
- function validateBlockAddressOrRange2(value, field, operationName) {
44614
- if (!isRecord4(value))
44615
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} ${field} must be an object.`, {
44616
- field,
44617
- value
44618
- });
44619
- const v = value;
44620
- if (v.from !== undefined) {
44621
- validateBlockAddress2(v.from, `${field}.from`, operationName);
44622
- validateBlockAddress2(v.to, `${field}.to`, operationName);
44623
- } else
44624
- validateBlockAddress2(value, field, operationName);
44625
- }
44626
- function requireLevel2(value, operationName) {
44627
- if (!isInteger2(value) || value < 0)
44628
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} level must be a non-negative integer, got ${JSON.stringify(value)}.`, {
44629
- field: "level",
44630
- value
44631
- });
44632
- }
44633
- function requireEnum2(value, field, validSet, operationName) {
44634
- if (!validSet.has(value))
44635
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be one of: ${[...validSet].join(", ")}. Got ${JSON.stringify(value)}.`, {
44636
- field,
44637
- value
44638
- });
44639
- }
44640
- function optionalBoolean2(value, field, operationName) {
44641
- if (value !== undefined && typeof value !== "boolean")
44642
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be a boolean if provided, got ${typeof value}.`, {
44643
- field,
44644
- value
44645
- });
44646
- }
44647
- function optionalNumber2(value, field, operationName) {
44648
- if (value !== undefined && (typeof value !== "number" || !Number.isFinite(value)))
44649
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be a number if provided, got ${typeof value}.`, {
44650
- field,
44651
- value
44652
- });
44653
- }
44654
- function optionalInteger2(value, field, operationName) {
44655
- if (value !== undefined && !isInteger2(value))
44656
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be an integer if provided, got ${JSON.stringify(value)}.`, {
44657
- field,
44658
- value
44659
- });
44660
- }
44661
- function optionalLevelsArray2(value, field, operationName) {
44662
- if (value === undefined)
44663
- return;
44664
- if (!Array.isArray(value))
44665
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be an array if provided.`, {
44666
- field,
44667
- value
44668
- });
44669
- for (let i$1 = 0;i$1 < value.length; i$1++)
44670
- if (!isInteger2(value[i$1]) || value[i$1] < 0)
44671
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field}[${i$1}] must be a non-negative integer.`, {
44672
- field: `${field}[${i$1}]`,
44673
- value: value[i$1]
44674
- });
44675
- }
44676
- function validateListLevelTemplate2(entry, path2, operationName) {
44677
- if (!isRecord4(entry))
44678
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${path2} must be an object.`, {
44679
- field: path2,
44680
- value: entry
44681
- });
44682
- const e = entry;
44683
- if (!isInteger2(e.level) || e.level < 0)
44684
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${path2}.level must be a non-negative integer.`, {
44685
- field: `${path2}.level`,
44686
- value: e.level
44687
- });
44688
- if (e.numFmt !== undefined && typeof e.numFmt !== "string")
44689
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${path2}.numFmt must be a string.`, {
44690
- field: `${path2}.numFmt`,
44691
- value: e.numFmt
44692
- });
44693
- if (e.lvlText !== undefined && typeof e.lvlText !== "string")
44694
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${path2}.lvlText must be a string.`, {
44695
- field: `${path2}.lvlText`,
44696
- value: e.lvlText
44697
- });
44698
- optionalInteger2(e.start, `${path2}.start`, operationName);
44699
- if (e.alignment !== undefined)
44700
- requireEnum2(e.alignment, `${path2}.alignment`, VALID_LEVEL_ALIGNMENTS2, operationName);
44701
- if (e.trailingCharacter !== undefined)
44702
- requireEnum2(e.trailingCharacter, `${path2}.trailingCharacter`, VALID_TRAILING_CHARACTERS2, operationName);
44703
- if (e.markerFont !== undefined && typeof e.markerFont !== "string")
44704
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${path2}.markerFont must be a string.`, {
44705
- field: `${path2}.markerFont`,
44706
- value: e.markerFont
44707
- });
44708
- optionalInteger2(e.pictureBulletId, `${path2}.pictureBulletId`, operationName);
44709
- if (e.tabStopAt !== undefined && e.tabStopAt !== null)
44710
- optionalNumber2(e.tabStopAt, `${path2}.tabStopAt`, operationName);
44711
- if (e.indents !== undefined) {
44712
- if (!isRecord4(e.indents))
44713
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${path2}.indents must be an object.`, {
44714
- field: `${path2}.indents`,
44715
- value: e.indents
44716
- });
44717
- const ind = e.indents;
44718
- optionalNumber2(ind.left, `${path2}.indents.left`, operationName);
44719
- optionalNumber2(ind.hanging, `${path2}.indents.hanging`, operationName);
44720
- optionalNumber2(ind.firstLine, `${path2}.indents.firstLine`, operationName);
44721
- }
44722
- }
44723
- function validateListTemplate2(value, field, operationName) {
44724
- if (!isRecord4(value))
44725
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be an object.`, {
44726
- field,
44727
- value
44728
- });
44729
- const t = value;
44730
- if (t.version !== 1)
44731
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field}.version must be 1, got ${JSON.stringify(t.version)}.`, {
44732
- field: `${field}.version`,
44733
- value: t.version
44734
- });
44735
- if (!Array.isArray(t.levels))
44736
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field}.levels must be an array.`, {
44737
- field: `${field}.levels`,
44738
- value: t.levels
44739
- });
44740
- for (let i$1 = 0;i$1 < t.levels.length; i$1++)
44741
- validateListLevelTemplate2(t.levels[i$1], `${field}.levels[${i$1}]`, operationName);
44742
- }
44743
- function validateListsCreateFields2(raw) {
44744
- const op = "lists.create";
44745
- if (raw.kind !== undefined)
44746
- requireEnum2(raw.kind, "kind", VALID_LIST_KINDS2, op);
44747
- if (raw.level !== undefined) {
44748
- if (!isInteger2(raw.level) || raw.level < 0)
44749
- throw new DocumentApiValidationError2("INVALID_INPUT", `${op} level must be a non-negative integer, got ${JSON.stringify(raw.level)}.`, {
44750
- field: "level",
44751
- value: raw.level
44752
- });
44753
- }
44754
- if (raw.sequence !== undefined) {
44755
- if (!isRecord4(raw.sequence))
44756
- throw new DocumentApiValidationError2("INVALID_INPUT", `${op} sequence must be an object.`, {
44757
- field: "sequence",
44758
- value: raw.sequence
44759
- });
44760
- const seq = raw.sequence;
44761
- requireEnum2(seq.mode, "sequence.mode", VALID_SEQUENCE_MODES2, op);
44762
- if (seq.mode === "continuePrevious") {
44763
- if (raw.preset !== undefined)
44764
- throw new DocumentApiValidationError2("INVALID_INPUT", `${op} preset must not be provided when sequence.mode is 'continuePrevious'.`, { field: "preset" });
44765
- if (raw.style !== undefined)
44766
- throw new DocumentApiValidationError2("INVALID_INPUT", `${op} style must not be provided when sequence.mode is 'continuePrevious'.`, { field: "style" });
44767
- if (seq.startAt !== undefined)
44768
- throw new DocumentApiValidationError2("INVALID_INPUT", `${op} sequence.startAt must not be provided when sequence.mode is 'continuePrevious'.`, { field: "sequence.startAt" });
44769
- }
44770
- if (seq.mode === "new")
44771
- optionalInteger2(seq.startAt, "sequence.startAt", op);
44772
- }
44773
- if (raw.preset !== undefined)
44774
- requireEnum2(raw.preset, "preset", VALID_LIST_PRESETS2, op);
44775
- if (raw.style !== undefined)
44776
- validateListTemplate2(raw.style, "style", op);
43650
+ function validateListTarget2(input, operationName) {
43651
+ if (input.target === undefined)
43652
+ throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} requires a target.`);
44777
43653
  }
44778
43654
  function executeListsList2(adapter, query2) {
44779
- if (query2 !== undefined) {
44780
- if (!isRecord4(query2))
44781
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.list query must be an object if provided.");
44782
- const q$1 = query2;
44783
- if (q$1.kind !== undefined)
44784
- requireEnum2(q$1.kind, "kind", VALID_LIST_KINDS2, "lists.list");
44785
- optionalInteger2(q$1.level, "level", "lists.list");
44786
- optionalInteger2(q$1.limit, "limit", "lists.list");
44787
- optionalInteger2(q$1.offset, "offset", "lists.list");
44788
- optionalInteger2(q$1.ordinal, "ordinal", "lists.list");
44789
- if (q$1.within !== undefined) {
44790
- if (!isRecord4(q$1.within))
44791
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.list within must be an object.", {
44792
- field: "within",
44793
- value: q$1.within
44794
- });
44795
- const w = q$1.within;
44796
- if (w.kind !== "block")
44797
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.list within.kind must be 'block', got "${String(w.kind)}".`, {
44798
- field: "within.kind",
44799
- value: w.kind
44800
- });
44801
- if (!VALID_BLOCK_NODE_TYPES$1.has(w.nodeType))
44802
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.list within.nodeType must be a valid BlockNodeType, got ${JSON.stringify(w.nodeType)}.`, {
44803
- field: "within.nodeType",
44804
- value: w.nodeType
44805
- });
44806
- if (typeof w.nodeId !== "string" || w.nodeId === "")
44807
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.list within.nodeId must be a non-empty string.", {
44808
- field: "within.nodeId",
44809
- value: w.nodeId
44810
- });
44811
- }
44812
- }
44813
43655
  return adapter.list(query2);
44814
43656
  }
44815
43657
  function executeListsGet2(adapter, input) {
44816
- validateListInput2(input, "lists.get");
44817
- validateListItemAddress2(input.address, "address", "lists.get");
44818
43658
  return adapter.get(input);
44819
43659
  }
44820
43660
  function executeListsInsert2(adapter, input, options) {
44821
- validateListItemTarget2(input, "lists.insert");
44822
- requireEnum2(input.position, "position", VALID_INSERT_POSITIONS2, "lists.insert");
44823
- if (input.text !== undefined && typeof input.text !== "string")
44824
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.insert text must be a string if provided, got ${typeof input.text}.`, {
44825
- field: "text",
44826
- value: input.text
44827
- });
43661
+ validateListTarget2(input, "lists.insert");
44828
43662
  return adapter.insert(input, normalizeMutationOptions2(options));
44829
43663
  }
44830
43664
  function executeListsIndent2(adapter, input, options) {
44831
- validateListItemTarget2(input, "lists.indent");
43665
+ validateListTarget2(input, "lists.indent");
44832
43666
  return adapter.indent(input, normalizeMutationOptions2(options));
44833
43667
  }
44834
43668
  function executeListsOutdent2(adapter, input, options) {
44835
- validateListItemTarget2(input, "lists.outdent");
43669
+ validateListTarget2(input, "lists.outdent");
44836
43670
  return adapter.outdent(input, normalizeMutationOptions2(options));
44837
43671
  }
44838
43672
  function executeListsCreate2(adapter, input, options) {
44839
- validateListInput2(input, "lists.create");
44840
- const raw = input;
44841
- if (!VALID_LIST_CREATE_MODES2.has(raw.mode))
44842
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.create mode must be "empty" or "fromParagraphs", got ${JSON.stringify(raw.mode)}.`, {
44843
- field: "mode",
44844
- value: raw.mode
44845
- });
44846
- if (raw.mode === "empty")
44847
- validateBlockAddress2(raw.at, "at", "lists.create");
44848
- if (raw.mode === "fromParagraphs") {
44849
- if (raw.target === undefined || raw.target === null)
44850
- throw new DocumentApiValidationError2("INVALID_TARGET", 'lists.create with mode "fromParagraphs" requires a target.', { field: "target" });
44851
- validateBlockAddressOrRange2(raw.target, "target", "lists.create");
44852
- }
44853
- validateListsCreateFields2(raw);
44854
43673
  return adapter.create(input, normalizeMutationOptions2(options));
44855
43674
  }
44856
43675
  function executeListsAttach2(adapter, input, options) {
44857
- validateListInput2(input, "lists.attach");
44858
- validateBlockAddressOrRange2(input.target, "target", "lists.attach");
44859
- validateListItemAddress2(input.attachTo, "attachTo", "lists.attach");
44860
- optionalInteger2(input.level, "level", "lists.attach");
43676
+ validateListTarget2(input, "lists.attach");
44861
43677
  return adapter.attach(input, normalizeMutationOptions2(options));
44862
43678
  }
44863
43679
  function executeListsDetach2(adapter, input, options) {
44864
- validateListItemTarget2(input, "lists.detach");
43680
+ validateListTarget2(input, "lists.detach");
44865
43681
  return adapter.detach(input, normalizeMutationOptions2(options));
44866
43682
  }
44867
43683
  function executeListsJoin2(adapter, input, options) {
44868
- validateListItemTarget2(input, "lists.join");
44869
- requireEnum2(input.direction, "direction", VALID_JOIN_DIRECTIONS2, "lists.join");
43684
+ validateListTarget2(input, "lists.join");
44870
43685
  return adapter.join(input, normalizeMutationOptions2(options));
44871
43686
  }
44872
43687
  function executeListsCanJoin2(adapter, input) {
44873
- validateListItemTarget2(input, "lists.canJoin");
44874
- requireEnum2(input.direction, "direction", VALID_JOIN_DIRECTIONS2, "lists.canJoin");
43688
+ validateListTarget2(input, "lists.canJoin");
44875
43689
  return adapter.canJoin(input);
44876
43690
  }
44877
43691
  function executeListsSeparate2(adapter, input, options) {
44878
- validateListItemTarget2(input, "lists.separate");
44879
- optionalBoolean2(input.copyOverrides, "copyOverrides", "lists.separate");
43692
+ validateListTarget2(input, "lists.separate");
44880
43693
  return adapter.separate(input, normalizeMutationOptions2(options));
44881
43694
  }
44882
43695
  function executeListsSetLevel2(adapter, input, options) {
44883
- validateListItemTarget2(input, "lists.setLevel");
44884
- requireLevel2(input.level, "lists.setLevel");
43696
+ validateListTarget2(input, "lists.setLevel");
44885
43697
  return adapter.setLevel(input, normalizeMutationOptions2(options));
44886
43698
  }
44887
43699
  function executeListsSetValue2(adapter, input, options) {
44888
- validateListItemTarget2(input, "lists.setValue");
44889
- if (input.value !== null && !isInteger2(input.value))
44890
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.setValue value must be an integer or null, got ${JSON.stringify(input.value)}.`, {
44891
- field: "value",
44892
- value: input.value
44893
- });
43700
+ validateListTarget2(input, "lists.setValue");
44894
43701
  return adapter.setValue(input, normalizeMutationOptions2(options));
44895
43702
  }
44896
43703
  function executeListsContinuePrevious2(adapter, input, options) {
44897
- validateListItemTarget2(input, "lists.continuePrevious");
43704
+ validateListTarget2(input, "lists.continuePrevious");
44898
43705
  return adapter.continuePrevious(input, normalizeMutationOptions2(options));
44899
43706
  }
44900
43707
  function executeListsCanContinuePrevious2(adapter, input) {
44901
- validateListItemTarget2(input, "lists.canContinuePrevious");
43708
+ validateListTarget2(input, "lists.canContinuePrevious");
44902
43709
  return adapter.canContinuePrevious(input);
44903
43710
  }
44904
43711
  function executeListsSetLevelRestart2(adapter, input, options) {
44905
- validateListItemTarget2(input, "lists.setLevelRestart");
44906
- requireLevel2(input.level, "lists.setLevelRestart");
44907
- if (input.restartAfterLevel !== null && !isInteger2(input.restartAfterLevel))
44908
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.setLevelRestart restartAfterLevel must be an integer or null.`, {
44909
- field: "restartAfterLevel",
44910
- value: input.restartAfterLevel
44911
- });
44912
- if (input.scope !== undefined)
44913
- requireEnum2(input.scope, "scope", VALID_MUTATION_SCOPES2, "lists.setLevelRestart");
43712
+ validateListTarget2(input, "lists.setLevelRestart");
44914
43713
  return adapter.setLevelRestart(input, normalizeMutationOptions2(options));
44915
43714
  }
44916
43715
  function executeListsConvertToText2(adapter, input, options) {
44917
- validateListItemTarget2(input, "lists.convertToText");
44918
- optionalBoolean2(input.includeMarker, "includeMarker", "lists.convertToText");
43716
+ validateListTarget2(input, "lists.convertToText");
44919
43717
  return adapter.convertToText(input, normalizeMutationOptions2(options));
44920
43718
  }
44921
43719
  function executeListsApplyTemplate2(adapter, input, options) {
44922
- validateListItemTarget2(input, "lists.applyTemplate");
44923
- validateListTemplate2(input.template, "template", "lists.applyTemplate");
44924
- optionalLevelsArray2(input.levels, "levels", "lists.applyTemplate");
43720
+ validateListTarget2(input, "lists.applyTemplate");
44925
43721
  return adapter.applyTemplate(input, normalizeMutationOptions2(options));
44926
43722
  }
44927
43723
  function executeListsApplyPreset2(adapter, input, options) {
44928
- validateListItemTarget2(input, "lists.applyPreset");
44929
- requireEnum2(input.preset, "preset", VALID_LIST_PRESETS2, "lists.applyPreset");
44930
- optionalLevelsArray2(input.levels, "levels", "lists.applyPreset");
43724
+ validateListTarget2(input, "lists.applyPreset");
44931
43725
  return adapter.applyPreset(input, normalizeMutationOptions2(options));
44932
43726
  }
44933
43727
  function executeListsCaptureTemplate2(adapter, input) {
44934
- validateListItemTarget2(input, "lists.captureTemplate");
44935
- optionalLevelsArray2(input.levels, "levels", "lists.captureTemplate");
43728
+ validateListTarget2(input, "lists.captureTemplate");
44936
43729
  return adapter.captureTemplate(input);
44937
43730
  }
44938
43731
  function executeListsSetLevelNumbering2(adapter, input, options) {
44939
- validateListItemTarget2(input, "lists.setLevelNumbering");
44940
- requireLevel2(input.level, "lists.setLevelNumbering");
44941
- if (typeof input.numFmt !== "string")
44942
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelNumbering numFmt must be a string.", {
44943
- field: "numFmt",
44944
- value: input.numFmt
44945
- });
44946
- if (typeof input.lvlText !== "string")
44947
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelNumbering lvlText must be a string.", {
44948
- field: "lvlText",
44949
- value: input.lvlText
44950
- });
44951
- optionalInteger2(input.start, "start", "lists.setLevelNumbering");
43732
+ validateListTarget2(input, "lists.setLevelNumbering");
44952
43733
  return adapter.setLevelNumbering(input, normalizeMutationOptions2(options));
44953
43734
  }
44954
43735
  function executeListsSetLevelBullet2(adapter, input, options) {
44955
- validateListItemTarget2(input, "lists.setLevelBullet");
44956
- requireLevel2(input.level, "lists.setLevelBullet");
44957
- if (typeof input.markerText !== "string")
44958
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelBullet markerText must be a string.", {
44959
- field: "markerText",
44960
- value: input.markerText
44961
- });
43736
+ validateListTarget2(input, "lists.setLevelBullet");
44962
43737
  return adapter.setLevelBullet(input, normalizeMutationOptions2(options));
44963
43738
  }
44964
43739
  function executeListsSetLevelPictureBullet2(adapter, input, options) {
44965
- validateListItemTarget2(input, "lists.setLevelPictureBullet");
44966
- requireLevel2(input.level, "lists.setLevelPictureBullet");
44967
- if (!isInteger2(input.pictureBulletId))
44968
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelPictureBullet pictureBulletId must be an integer.", {
44969
- field: "pictureBulletId",
44970
- value: input.pictureBulletId
44971
- });
43740
+ validateListTarget2(input, "lists.setLevelPictureBullet");
44972
43741
  return adapter.setLevelPictureBullet(input, normalizeMutationOptions2(options));
44973
43742
  }
44974
43743
  function executeListsSetLevelAlignment2(adapter, input, options) {
44975
- validateListItemTarget2(input, "lists.setLevelAlignment");
44976
- requireLevel2(input.level, "lists.setLevelAlignment");
44977
- requireEnum2(input.alignment, "alignment", VALID_LEVEL_ALIGNMENTS2, "lists.setLevelAlignment");
43744
+ validateListTarget2(input, "lists.setLevelAlignment");
44978
43745
  return adapter.setLevelAlignment(input, normalizeMutationOptions2(options));
44979
43746
  }
44980
43747
  function executeListsSetLevelIndents2(adapter, input, options) {
44981
- validateListItemTarget2(input, "lists.setLevelIndents");
44982
- requireLevel2(input.level, "lists.setLevelIndents");
44983
- optionalNumber2(input.left, "left", "lists.setLevelIndents");
44984
- optionalNumber2(input.hanging, "hanging", "lists.setLevelIndents");
44985
- optionalNumber2(input.firstLine, "firstLine", "lists.setLevelIndents");
43748
+ validateListTarget2(input, "lists.setLevelIndents");
44986
43749
  return adapter.setLevelIndents(input, normalizeMutationOptions2(options));
44987
43750
  }
44988
43751
  function executeListsSetLevelTrailingCharacter2(adapter, input, options) {
44989
- validateListItemTarget2(input, "lists.setLevelTrailingCharacter");
44990
- requireLevel2(input.level, "lists.setLevelTrailingCharacter");
44991
- requireEnum2(input.trailingCharacter, "trailingCharacter", VALID_TRAILING_CHARACTERS2, "lists.setLevelTrailingCharacter");
43752
+ validateListTarget2(input, "lists.setLevelTrailingCharacter");
44992
43753
  return adapter.setLevelTrailingCharacter(input, normalizeMutationOptions2(options));
44993
43754
  }
44994
43755
  function executeListsSetLevelMarkerFont2(adapter, input, options) {
44995
- validateListItemTarget2(input, "lists.setLevelMarkerFont");
44996
- requireLevel2(input.level, "lists.setLevelMarkerFont");
44997
- if (typeof input.fontFamily !== "string")
44998
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelMarkerFont fontFamily must be a string.", {
44999
- field: "fontFamily",
45000
- value: input.fontFamily
45001
- });
43756
+ validateListTarget2(input, "lists.setLevelMarkerFont");
45002
43757
  return adapter.setLevelMarkerFont(input, normalizeMutationOptions2(options));
45003
43758
  }
45004
43759
  function executeListsClearLevelOverrides2(adapter, input, options) {
45005
- validateListItemTarget2(input, "lists.clearLevelOverrides");
45006
- requireLevel2(input.level, "lists.clearLevelOverrides");
43760
+ validateListTarget2(input, "lists.clearLevelOverrides");
45007
43761
  return adapter.clearLevelOverrides(input, normalizeMutationOptions2(options));
45008
43762
  }
45009
43763
  function executeListsSetType2(adapter, input, options) {
45010
- validateListItemTarget2(input, "lists.setType");
45011
- requireEnum2(input.kind, "kind", VALID_LIST_KINDS2, "lists.setType");
45012
- if (input.continuity !== undefined)
45013
- requireEnum2(input.continuity, "continuity", VALID_CONTINUITY_VALUES2, "lists.setType");
43764
+ validateListTarget2(input, "lists.setType");
45014
43765
  return adapter.setType(input, normalizeMutationOptions2(options));
45015
43766
  }
45016
43767
  function executeListsGetStyle2(adapter, input) {
45017
- validateListItemTarget2(input, "lists.getStyle");
45018
- optionalLevelsArray2(input.levels, "levels", "lists.getStyle");
43768
+ validateListTarget2(input, "lists.getStyle");
45019
43769
  return adapter.getStyle(input);
45020
43770
  }
45021
43771
  function executeListsApplyStyle2(adapter, input, options) {
45022
- validateListItemTarget2(input, "lists.applyStyle");
45023
- validateListTemplate2(input.style, "style", "lists.applyStyle");
45024
- optionalLevelsArray2(input.levels, "levels", "lists.applyStyle");
43772
+ validateListTarget2(input, "lists.applyStyle");
45025
43773
  return adapter.applyStyle(input, normalizeMutationOptions2(options));
45026
43774
  }
45027
43775
  function executeListsRestartAt2(adapter, input, options) {
45028
- validateListItemTarget2(input, "lists.restartAt");
45029
- if (!isInteger2(input.startAt))
45030
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.restartAt startAt must be an integer, got ${JSON.stringify(input.startAt)}.`, {
45031
- field: "startAt",
45032
- value: input.startAt
45033
- });
43776
+ validateListTarget2(input, "lists.restartAt");
45034
43777
  return adapter.restartAt(input, normalizeMutationOptions2(options));
45035
43778
  }
45036
43779
  function executeListsSetLevelNumberStyle2(adapter, input, options) {
45037
- validateListItemTarget2(input, "lists.setLevelNumberStyle");
45038
- requireLevel2(input.level, "lists.setLevelNumberStyle");
45039
- if (typeof input.numberStyle !== "string")
45040
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelNumberStyle numberStyle must be a string.", {
45041
- field: "numberStyle",
45042
- value: input.numberStyle
45043
- });
43780
+ validateListTarget2(input, "lists.setLevelNumberStyle");
45044
43781
  return adapter.setLevelNumberStyle(input, normalizeMutationOptions2(options));
45045
43782
  }
45046
43783
  function executeListsSetLevelText2(adapter, input, options) {
45047
- validateListItemTarget2(input, "lists.setLevelText");
45048
- requireLevel2(input.level, "lists.setLevelText");
45049
- if (typeof input.text !== "string")
45050
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelText text must be a string.", {
45051
- field: "text",
45052
- value: input.text
45053
- });
43784
+ validateListTarget2(input, "lists.setLevelText");
45054
43785
  return adapter.setLevelText(input, normalizeMutationOptions2(options));
45055
43786
  }
45056
43787
  function executeListsSetLevelStart2(adapter, input, options) {
45057
- validateListItemTarget2(input, "lists.setLevelStart");
45058
- requireLevel2(input.level, "lists.setLevelStart");
45059
- if (!isInteger2(input.startAt))
45060
- throw new DocumentApiValidationError2("INVALID_INPUT", `lists.setLevelStart startAt must be an integer, got ${JSON.stringify(input.startAt)}.`, {
45061
- field: "startAt",
45062
- value: input.startAt
45063
- });
43788
+ validateListTarget2(input, "lists.setLevelStart");
45064
43789
  return adapter.setLevelStart(input, normalizeMutationOptions2(options));
45065
43790
  }
45066
43791
  function executeListsSetLevelLayout2(adapter, input, options) {
45067
- validateListItemTarget2(input, "lists.setLevelLayout");
45068
- requireLevel2(input.level, "lists.setLevelLayout");
45069
- if (!isRecord4(input.layout))
45070
- throw new DocumentApiValidationError2("INVALID_INPUT", "lists.setLevelLayout layout must be an object.", {
45071
- field: "layout",
45072
- value: input.layout
45073
- });
45074
- const layout = input.layout;
45075
- if (layout.alignment !== undefined)
45076
- requireEnum2(layout.alignment, "layout.alignment", VALID_LEVEL_ALIGNMENTS2, "lists.setLevelLayout");
45077
- if (layout.followCharacter !== undefined)
45078
- requireEnum2(layout.followCharacter, "layout.followCharacter", VALID_TRAILING_CHARACTERS2, "lists.setLevelLayout");
45079
- optionalNumber2(layout.alignedAt, "layout.alignedAt", "lists.setLevelLayout");
45080
- optionalNumber2(layout.textIndentAt, "layout.textIndentAt", "lists.setLevelLayout");
45081
- if (layout.tabStopAt !== undefined && layout.tabStopAt !== null)
45082
- optionalNumber2(layout.tabStopAt, "layout.tabStopAt", "lists.setLevelLayout");
43792
+ validateListTarget2(input, "lists.setLevelLayout");
45083
43793
  return adapter.setLevelLayout(input, normalizeMutationOptions2(options));
45084
43794
  }
45085
43795
  function isStructuralReplaceInput2(input) {
@@ -45229,9 +43939,6 @@ function validateCreateSectionBreakInput2(input) {
45229
43939
  }
45230
43940
  }
45231
43941
  function executeCreateParagraph2(adapter, input, options) {
45232
- if (!isRecord4(input))
45233
- throw new DocumentApiValidationError2("INVALID_INPUT", "create.paragraph input must be a non-null object.");
45234
- validateStoryLocator2(input.in, "in");
45235
43942
  const normalized = {
45236
43943
  at: normalizeCreateLocation2(input.at, (loc) => validateTargetOnlyCreateLocation2(loc, "create.paragraph")),
45237
43944
  text: input.text ?? ""
@@ -45239,14 +43946,6 @@ function executeCreateParagraph2(adapter, input, options) {
45239
43946
  return adapter.paragraph(normalized, normalizeMutationOptions2(options));
45240
43947
  }
45241
43948
  function executeCreateHeading2(adapter, input, options) {
45242
- if (!isRecord4(input))
45243
- throw new DocumentApiValidationError2("INVALID_INPUT", "create.heading input must be a non-null object.");
45244
- validateStoryLocator2(input.in, "in");
45245
- if (!isInteger2(input.level) || !VALID_HEADING_LEVELS2.has(input.level))
45246
- throw new DocumentApiValidationError2("INVALID_INPUT", `create.heading level must be an integer 1–6, got ${JSON.stringify(input.level)}.`, {
45247
- field: "level",
45248
- value: input.level
45249
- });
45250
43949
  const at = normalizeCreateLocation2(input.at, (loc) => validateTargetOnlyCreateLocation2(loc, "create.heading"));
45251
43950
  const normalized = {
45252
43951
  level: input.level,
@@ -45256,18 +43955,6 @@ function executeCreateHeading2(adapter, input, options) {
45256
43955
  return adapter.heading(normalized, normalizeMutationOptions2(options));
45257
43956
  }
45258
43957
  function executeCreateTable2(adapter, input, options) {
45259
- if (!isRecord4(input))
45260
- throw new DocumentApiValidationError2("INVALID_INPUT", "create.table input must be a non-null object.");
45261
- if (!isInteger2(input.rows) || input.rows < 1)
45262
- throw new DocumentApiValidationError2("INVALID_INPUT", `create.table rows must be a positive integer, got ${JSON.stringify(input.rows)}.`, {
45263
- field: "rows",
45264
- value: input.rows
45265
- });
45266
- if (!isInteger2(input.columns) || input.columns < 1)
45267
- throw new DocumentApiValidationError2("INVALID_INPUT", `create.table columns must be a positive integer, got ${JSON.stringify(input.columns)}.`, {
45268
- field: "columns",
45269
- value: input.columns
45270
- });
45271
43958
  const at = normalizeCreateLocation2(input.at, (loc) => validateTargetOrNodeIdCreateLocation2(loc, "create.table"));
45272
43959
  const normalized = {
45273
43960
  rows: input.rows,
@@ -45308,7 +43995,7 @@ function validateBlocksListInput2(input) {
45308
43995
  if (!Array.isArray(input.nodeTypes) || input.nodeTypes.length === 0)
45309
43996
  throw new DocumentApiValidationError2("INVALID_INPUT", "blocks.list nodeTypes must be a non-empty array.", { fields: ["nodeTypes"] });
45310
43997
  for (const nt of input.nodeTypes)
45311
- if (!VALID_BLOCK_NODE_TYPES3.has(nt))
43998
+ if (!VALID_BLOCK_NODE_TYPES2.has(nt))
45312
43999
  throw new DocumentApiValidationError2("INVALID_INPUT", `blocks.list nodeTypes contains unknown type "${nt}".`, {
45313
44000
  fields: ["nodeTypes"],
45314
44001
  nodeType: nt
@@ -45369,15 +44056,6 @@ function executeTrackChangesList2(adapter, input) {
45369
44056
  return adapter.list(input);
45370
44057
  }
45371
44058
  function executeTrackChangesGet2(adapter, input) {
45372
- const raw = input;
45373
- if (typeof raw !== "object" || raw == null)
45374
- throw new DocumentApiValidationError2("INVALID_INPUT", "trackChanges.get input must be a non-null object.", { value: raw });
45375
- const { id } = raw;
45376
- if (typeof id !== "string" || id.length === 0)
45377
- throw new DocumentApiValidationError2("INVALID_INPUT", "trackChanges.get id must be a non-empty string.", {
45378
- field: "id",
45379
- value: id
45380
- });
45381
44059
  return adapter.get(input);
45382
44060
  }
45383
44061
  function executeTrackChangesDecide2(adapter, rawInput, options) {
@@ -46380,12 +45058,12 @@ function executeSectionsClearPageBorders2(adapter, input, options) {
46380
45058
  assertSectionTarget2(input, "sections.clearPageBorders");
46381
45059
  return adapter.clearPageBorders(input, normalizeMutationOptions2(options));
46382
45060
  }
46383
- function requireString$1(value, field) {
45061
+ function requireString2(value, field) {
46384
45062
  if (typeof value !== "string" || value.length === 0)
46385
45063
  throw new DocumentApiValidationError2("INVALID_INPUT", `${field} must be a non-empty string.`, { field });
46386
45064
  }
46387
45065
  function requireImageId2(input) {
46388
- requireString$1(input?.imageId, "imageId");
45066
+ requireString2(input?.imageId, "imageId");
46389
45067
  }
46390
45068
  function requireFinitePositiveNumber2(value, field) {
46391
45069
  if (typeof value !== "number" || !Number.isFinite(value) || value <= 0)
@@ -46546,7 +45224,7 @@ function executeImagesResetCrop2(adapter, input, options) {
46546
45224
  }
46547
45225
  function executeImagesReplaceSource2(adapter, input, options) {
46548
45226
  requireImageId2(input);
46549
- requireString$1(input.src, "src");
45227
+ requireString2(input.src, "src");
46550
45228
  return adapter.replaceSource(input, options);
46551
45229
  }
46552
45230
  function executeImagesSetAltText2(adapter, input, options) {
@@ -46577,12 +45255,12 @@ function executeImagesSetHyperlink2(adapter, input, options) {
46577
45255
  }
46578
45256
  function executeImagesInsertCaption2(adapter, input, options) {
46579
45257
  requireImageId2(input);
46580
- requireString$1(input.text, "text");
45258
+ requireString2(input.text, "text");
46581
45259
  return adapter.insertCaption(input, options);
46582
45260
  }
46583
45261
  function executeImagesUpdateCaption2(adapter, input, options) {
46584
45262
  requireImageId2(input);
46585
- requireString$1(input.text, "text");
45263
+ requireString2(input.text, "text");
46586
45264
  return adapter.updateCaption(input, options);
46587
45265
  }
46588
45266
  function executeImagesRemoveCaption2(adapter, input, options) {
@@ -46590,8 +45268,7 @@ function executeImagesRemoveCaption2(adapter, input, options) {
46590
45268
  return adapter.removeCaption(input, options);
46591
45269
  }
46592
45270
  function executeCreateImage2(adapter, input, options) {
46593
- requireString$1(input?.src, "src");
46594
- validateStoryLocator2(input?.in, "in");
45271
+ requireString2(input?.src, "src");
46595
45272
  return adapter.image(input, options);
46596
45273
  }
46597
45274
  function validateTocTarget2(target, operationName) {
@@ -46618,47 +45295,32 @@ function validateInsertionTarget2(target, operationName) {
46618
45295
  if (!anchor || anchor.nodeType !== "paragraph" || typeof anchor.nodeId !== "string")
46619
45296
  throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} target.anchor must have nodeType 'paragraph' and a string nodeId.`, { target });
46620
45297
  }
46621
- function validateTocInput2(input, operationName) {
46622
- if (!isRecord4(input))
46623
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} input must be a non-null object.`);
46624
- }
46625
45298
  function executeTocList2(adapter, query2) {
46626
45299
  return adapter.list(query2);
46627
45300
  }
46628
45301
  function executeTocGet2(adapter, input) {
46629
- validateTocInput2(input, "toc.get");
46630
45302
  validateTocTarget2(input.target, "toc.get");
46631
45303
  return adapter.get(input);
46632
45304
  }
46633
45305
  function executeTocConfigure2(adapter, input, options) {
46634
- validateTocInput2(input, "toc.configure");
46635
45306
  validateTocTarget2(input.target, "toc.configure");
46636
45307
  return adapter.configure(input, normalizeMutationOptions2(options));
46637
45308
  }
46638
45309
  function executeTocUpdate2(adapter, input, options) {
46639
- validateTocInput2(input, "toc.update");
46640
45310
  validateTocTarget2(input.target, "toc.update");
46641
- if (input.mode !== undefined && !VALID_TOC_UPDATE_MODES2.has(input.mode))
46642
- throw new DocumentApiValidationError2("INVALID_INPUT", `toc.update mode must be "all" or "pageNumbers", got "${String(input.mode)}".`, {
46643
- field: "mode",
46644
- value: input.mode
46645
- });
46646
45311
  return adapter.update(input, normalizeMutationOptions2(options));
46647
45312
  }
46648
45313
  function executeTocRemove2(adapter, input, options) {
46649
- validateTocInput2(input, "toc.remove");
46650
45314
  validateTocTarget2(input.target, "toc.remove");
46651
45315
  return adapter.remove(input, normalizeMutationOptions2(options));
46652
45316
  }
46653
45317
  function executeTocMarkEntry2(adapter, input, options) {
46654
- validateTocInput2(input, "toc.markEntry");
46655
45318
  validateInsertionTarget2(input.target, "toc.markEntry");
46656
45319
  if (!input.text || typeof input.text !== "string")
46657
45320
  throw new DocumentApiValidationError2("INVALID_INPUT", "toc.markEntry requires a non-empty text string.");
46658
45321
  return adapter.markEntry(input, normalizeMutationOptions2(options));
46659
45322
  }
46660
45323
  function executeTocUnmarkEntry2(adapter, input, options) {
46661
- validateTocInput2(input, "toc.unmarkEntry");
46662
45324
  validateTocEntryTarget2(input.target, "toc.unmarkEntry");
46663
45325
  return adapter.unmarkEntry(input, normalizeMutationOptions2(options));
46664
45326
  }
@@ -46666,46 +45328,11 @@ function executeTocListEntries2(adapter, query2) {
46666
45328
  return adapter.listEntries(query2);
46667
45329
  }
46668
45330
  function executeTocGetEntry2(adapter, input) {
46669
- validateTocInput2(input, "toc.getEntry");
46670
45331
  validateTocEntryTarget2(input.target, "toc.getEntry");
46671
45332
  return adapter.getEntry(input);
46672
45333
  }
46673
- function validateTocEditEntryPatch2(patch, operationName) {
46674
- if (!isRecord4(patch))
46675
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} patch must be a non-null object.`, {
46676
- field: "patch",
46677
- value: patch
46678
- });
46679
- for (const key of Object.keys(patch))
46680
- if (!EDIT_ENTRY_PATCH_ALLOWED_KEYS2.has(key))
46681
- throw new DocumentApiValidationError2("INVALID_INPUT", `Unknown field "${key}" on ${operationName} patch. Allowed fields: ${[...EDIT_ENTRY_PATCH_ALLOWED_KEYS2].join(", ")}.`, { field: `patch.${key}` });
46682
- if (patch.text !== undefined && typeof patch.text !== "string")
46683
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} patch.text must be a string.`, {
46684
- field: "patch.text",
46685
- value: patch.text
46686
- });
46687
- if (patch.level !== undefined) {
46688
- if (typeof patch.level !== "number" || !Number.isInteger(patch.level) || patch.level < 1)
46689
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} patch.level must be a positive integer.`, {
46690
- field: "patch.level",
46691
- value: patch.level
46692
- });
46693
- }
46694
- if (patch.tableIdentifier !== undefined && typeof patch.tableIdentifier !== "string")
46695
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} patch.tableIdentifier must be a string.`, {
46696
- field: "patch.tableIdentifier",
46697
- value: patch.tableIdentifier
46698
- });
46699
- if (patch.omitPageNumber !== undefined && typeof patch.omitPageNumber !== "boolean")
46700
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} patch.omitPageNumber must be a boolean.`, {
46701
- field: "patch.omitPageNumber",
46702
- value: patch.omitPageNumber
46703
- });
46704
- }
46705
45334
  function executeTocEditEntry2(adapter, input, options) {
46706
- validateTocInput2(input, "toc.editEntry");
46707
45335
  validateTocEntryTarget2(input.target, "toc.editEntry");
46708
- validateTocEditEntryPatch2(input.patch, "toc.editEntry");
46709
45336
  return adapter.editEntry(input, normalizeMutationOptions2(options));
46710
45337
  }
46711
45338
  function isHyperlinkTarget2(value) {
@@ -46793,477 +45420,169 @@ function executeHyperlinksRemove2(adapter, input, options) {
46793
45420
  throw new DocumentApiValidationError2("INVALID_INPUT", `hyperlinks.remove mode must be 'unwrap' or 'deleteText', got '${String(input.mode)}'.`);
46794
45421
  return adapter.remove(input, normalizeMutationOptions2(options));
46795
45422
  }
46796
- function validateCCInput2(input, operationName) {
46797
- if (!isRecord4(input))
46798
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} input must be a non-null object.`);
46799
- }
46800
- function validateCCTarget2(target, operationName) {
46801
- if (!isRecord4(target))
46802
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} requires a valid target with { kind, nodeType: 'sdt', nodeId }.`, {
46803
- field: "target",
46804
- value: target
46805
- });
46806
- if (!VALID_NODE_KINDS2.has(target.kind))
46807
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} target.kind must be 'block' or 'inline', got "${String(target.kind)}".`, {
46808
- field: "target.kind",
46809
- value: target.kind
46810
- });
46811
- if (target.nodeType !== "sdt")
46812
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} target.nodeType must be 'sdt', got "${String(target.nodeType)}".`, {
46813
- field: "target.nodeType",
46814
- value: target.nodeType
46815
- });
46816
- if (typeof target.nodeId !== "string" || target.nodeId === "")
46817
- throw new DocumentApiValidationError2("INVALID_TARGET", `${operationName} target.nodeId must be a non-empty string.`, {
46818
- field: "target.nodeId",
46819
- value: target.nodeId
46820
- });
46821
- }
46822
- function requireString3(value, field, operationName) {
46823
- if (typeof value !== "string" || value.length === 0)
46824
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be a non-empty string.`, {
46825
- field,
46826
- value
46827
- });
46828
- }
46829
- function requireBoolean2(value, field, operationName) {
46830
- if (typeof value !== "boolean")
46831
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be a boolean, got ${typeof value}.`, {
46832
- field,
46833
- value
46834
- });
46835
- }
46836
- function requireIndex2(value, field, operationName) {
46837
- if (!isInteger2(value) || value < 0)
46838
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be a non-negative integer.`, {
46839
- field,
46840
- value
46841
- });
46842
- }
46843
- function requireNodeKind2(value, field, operationName) {
46844
- if (!VALID_NODE_KINDS2.has(value))
46845
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be 'block' or 'inline', got "${String(value)}".`, {
46846
- field,
46847
- value
46848
- });
46849
- }
46850
- function validateContentFormat2(value, field, operationName) {
46851
- if (value !== undefined && !VALID_CONTENT_FORMATS2.has(value))
46852
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be 'text' or 'html', got "${String(value)}".`, {
46853
- field,
46854
- value
46855
- });
46856
- }
46857
- function validateContentPayload2(input, operationName) {
46858
- if (typeof input.content !== "string")
46859
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} content must be a string.`, {
46860
- field: "content",
46861
- value: input.content
46862
- });
46863
- validateContentFormat2(input.format, "format", operationName);
46864
- }
46865
- function validateSymbol2(value, field, operationName) {
46866
- if (!isRecord4(value) || typeof value.font !== "string" || typeof value.char !== "string")
46867
- throw new DocumentApiValidationError2("INVALID_INPUT", `${operationName} ${field} must be { font: string, char: string }.`, {
46868
- field,
46869
- value
46870
- });
46871
- }
46872
45423
  function executeContentControlsList2(adapter, query2) {
46873
- if (query2 !== undefined && !isRecord4(query2))
46874
- throw new DocumentApiValidationError2("INVALID_INPUT", "contentControls.list query must be an object if provided.");
46875
45424
  return adapter.list(query2);
46876
45425
  }
46877
45426
  function executeContentControlsGet2(adapter, input) {
46878
- validateCCInput2(input, "contentControls.get");
46879
- validateCCTarget2(input.target, "contentControls.get");
46880
45427
  return adapter.get(input);
46881
45428
  }
46882
45429
  function executeContentControlsListInRange2(adapter, input) {
46883
- validateCCInput2(input, "contentControls.listInRange");
46884
- requireString3(input.startBlockId, "startBlockId", "contentControls.listInRange");
46885
- requireString3(input.endBlockId, "endBlockId", "contentControls.listInRange");
46886
45430
  return adapter.listInRange(input);
46887
45431
  }
46888
45432
  function executeContentControlsSelectByTag2(adapter, input) {
46889
- validateCCInput2(input, "contentControls.selectByTag");
46890
- requireString3(input.tag, "tag", "contentControls.selectByTag");
46891
45433
  return adapter.selectByTag(input);
46892
45434
  }
46893
45435
  function executeContentControlsSelectByTitle2(adapter, input) {
46894
- validateCCInput2(input, "contentControls.selectByTitle");
46895
- requireString3(input.title, "title", "contentControls.selectByTitle");
46896
45436
  return adapter.selectByTitle(input);
46897
45437
  }
46898
45438
  function executeContentControlsListChildren2(adapter, input) {
46899
- validateCCInput2(input, "contentControls.listChildren");
46900
- validateCCTarget2(input.target, "contentControls.listChildren");
46901
45439
  return adapter.listChildren(input);
46902
45440
  }
46903
45441
  function executeContentControlsGetParent2(adapter, input) {
46904
- validateCCInput2(input, "contentControls.getParent");
46905
- validateCCTarget2(input.target, "contentControls.getParent");
46906
45442
  return adapter.getParent(input);
46907
45443
  }
46908
45444
  function executeContentControlsWrap2(adapter, input, options) {
46909
- validateCCInput2(input, "contentControls.wrap");
46910
- requireNodeKind2(input.kind, "kind", "contentControls.wrap");
46911
- validateCCTarget2(input.target, "contentControls.wrap");
46912
45445
  return adapter.wrap(input, options);
46913
45446
  }
46914
45447
  function executeContentControlsUnwrap2(adapter, input, options) {
46915
- validateCCInput2(input, "contentControls.unwrap");
46916
- validateCCTarget2(input.target, "contentControls.unwrap");
46917
45448
  return adapter.unwrap(input, options);
46918
45449
  }
46919
45450
  function executeContentControlsDelete2(adapter, input, options) {
46920
- validateCCInput2(input, "contentControls.delete");
46921
- validateCCTarget2(input.target, "contentControls.delete");
46922
45451
  return adapter.delete(input, options);
46923
45452
  }
46924
45453
  function executeContentControlsCopy2(adapter, input, options) {
46925
- validateCCInput2(input, "contentControls.copy");
46926
- validateCCTarget2(input.target, "contentControls.copy");
46927
- validateCCTarget2(input.destination, "contentControls.copy (destination)");
46928
45454
  return adapter.copy(input, options);
46929
45455
  }
46930
45456
  function executeContentControlsMove2(adapter, input, options) {
46931
- validateCCInput2(input, "contentControls.move");
46932
- validateCCTarget2(input.target, "contentControls.move");
46933
- validateCCTarget2(input.destination, "contentControls.move (destination)");
46934
45457
  return adapter.move(input, options);
46935
45458
  }
46936
45459
  function executeContentControlsPatch2(adapter, input, options) {
46937
- validateCCInput2(input, "contentControls.patch");
46938
- validateCCTarget2(input.target, "contentControls.patch");
46939
- if (input.appearance !== undefined && input.appearance !== null && !VALID_CC_APPEARANCES2.has(input.appearance))
46940
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.patch appearance must be one of: ${[...VALID_CC_APPEARANCES2].join(", ")}.`, {
46941
- field: "appearance",
46942
- value: input.appearance
46943
- });
46944
- if (input.showingPlaceholder !== undefined && typeof input.showingPlaceholder !== "boolean")
46945
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.patch showingPlaceholder must be a boolean, got ${typeof input.showingPlaceholder}.`, {
46946
- field: "showingPlaceholder",
46947
- value: input.showingPlaceholder
46948
- });
46949
- if (input.temporary !== undefined && typeof input.temporary !== "boolean")
46950
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.patch temporary must be a boolean, got ${typeof input.temporary}.`, {
46951
- field: "temporary",
46952
- value: input.temporary
46953
- });
46954
- if (input.tabIndex !== undefined && input.tabIndex !== null && !isInteger2(input.tabIndex))
46955
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.patch tabIndex must be an integer or null, got ${typeof input.tabIndex}.`, {
46956
- field: "tabIndex",
46957
- value: input.tabIndex
46958
- });
46959
45460
  return adapter.patch(input, options);
46960
45461
  }
46961
45462
  function executeContentControlsSetLockMode2(adapter, input, options) {
46962
- validateCCInput2(input, "contentControls.setLockMode");
46963
- validateCCTarget2(input.target, "contentControls.setLockMode");
46964
- if (!VALID_LOCK_MODES$1.has(input.lockMode))
46965
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.setLockMode lockMode must be one of: ${[...VALID_LOCK_MODES$1].join(", ")}.`, {
46966
- field: "lockMode",
46967
- value: input.lockMode
46968
- });
46969
45463
  return adapter.setLockMode(input, options);
46970
45464
  }
46971
45465
  function executeContentControlsSetType2(adapter, input, options) {
46972
- validateCCInput2(input, "contentControls.setType");
46973
- validateCCTarget2(input.target, "contentControls.setType");
46974
- if (!VALID_CC_TYPES2.has(input.controlType))
46975
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.setType controlType must be one of: ${[...VALID_CC_TYPES2].join(", ")}.`, {
46976
- field: "controlType",
46977
- value: input.controlType
46978
- });
46979
45466
  return adapter.setType(input, options);
46980
45467
  }
46981
45468
  function executeContentControlsGetContent2(adapter, input) {
46982
- validateCCInput2(input, "contentControls.getContent");
46983
- validateCCTarget2(input.target, "contentControls.getContent");
46984
45469
  return adapter.getContent(input);
46985
45470
  }
46986
45471
  function executeContentControlsReplaceContent2(adapter, input, options) {
46987
- validateCCInput2(input, "contentControls.replaceContent");
46988
- validateCCTarget2(input.target, "contentControls.replaceContent");
46989
- validateContentPayload2(input, "contentControls.replaceContent");
46990
45472
  return adapter.replaceContent(input, options);
46991
45473
  }
46992
45474
  function executeContentControlsClearContent2(adapter, input, options) {
46993
- validateCCInput2(input, "contentControls.clearContent");
46994
- validateCCTarget2(input.target, "contentControls.clearContent");
46995
45475
  return adapter.clearContent(input, options);
46996
45476
  }
46997
45477
  function executeContentControlsAppendContent2(adapter, input, options) {
46998
- validateCCInput2(input, "contentControls.appendContent");
46999
- validateCCTarget2(input.target, "contentControls.appendContent");
47000
- validateContentPayload2(input, "contentControls.appendContent");
47001
45478
  return adapter.appendContent(input, options);
47002
45479
  }
47003
45480
  function executeContentControlsPrependContent2(adapter, input, options) {
47004
- validateCCInput2(input, "contentControls.prependContent");
47005
- validateCCTarget2(input.target, "contentControls.prependContent");
47006
- validateContentPayload2(input, "contentControls.prependContent");
47007
45481
  return adapter.prependContent(input, options);
47008
45482
  }
47009
45483
  function executeContentControlsInsertBefore2(adapter, input, options) {
47010
- validateCCInput2(input, "contentControls.insertBefore");
47011
- validateCCTarget2(input.target, "contentControls.insertBefore");
47012
- validateContentPayload2(input, "contentControls.insertBefore");
47013
45484
  return adapter.insertBefore(input, options);
47014
45485
  }
47015
45486
  function executeContentControlsInsertAfter2(adapter, input, options) {
47016
- validateCCInput2(input, "contentControls.insertAfter");
47017
- validateCCTarget2(input.target, "contentControls.insertAfter");
47018
- validateContentPayload2(input, "contentControls.insertAfter");
47019
45487
  return adapter.insertAfter(input, options);
47020
45488
  }
47021
45489
  function executeContentControlsGetBinding2(adapter, input) {
47022
- validateCCInput2(input, "contentControls.getBinding");
47023
- validateCCTarget2(input.target, "contentControls.getBinding");
47024
45490
  return adapter.getBinding(input);
47025
45491
  }
47026
45492
  function executeContentControlsSetBinding2(adapter, input, options) {
47027
- validateCCInput2(input, "contentControls.setBinding");
47028
- validateCCTarget2(input.target, "contentControls.setBinding");
47029
- requireString3(input.storeItemId, "storeItemId", "contentControls.setBinding");
47030
- requireString3(input.xpath, "xpath", "contentControls.setBinding");
47031
45493
  return adapter.setBinding(input, options);
47032
45494
  }
47033
45495
  function executeContentControlsClearBinding2(adapter, input, options) {
47034
- validateCCInput2(input, "contentControls.clearBinding");
47035
- validateCCTarget2(input.target, "contentControls.clearBinding");
47036
45496
  return adapter.clearBinding(input, options);
47037
45497
  }
47038
45498
  function executeContentControlsGetRawProperties2(adapter, input) {
47039
- validateCCInput2(input, "contentControls.getRawProperties");
47040
- validateCCTarget2(input.target, "contentControls.getRawProperties");
47041
45499
  return adapter.getRawProperties(input);
47042
45500
  }
47043
45501
  function executeContentControlsPatchRawProperties2(adapter, input, options) {
47044
- validateCCInput2(input, "contentControls.patchRawProperties");
47045
- validateCCTarget2(input.target, "contentControls.patchRawProperties");
47046
- if (!Array.isArray(input.patches))
47047
- throw new DocumentApiValidationError2("INVALID_INPUT", "contentControls.patchRawProperties patches must be an array.", {
47048
- field: "patches",
47049
- value: input.patches
47050
- });
47051
- for (let i$1 = 0;i$1 < input.patches.length; i$1++) {
47052
- const patch = input.patches[i$1];
47053
- if (!isRecord4(patch))
47054
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.patchRawProperties patches[${i$1}] must be an object.`, {
47055
- field: `patches[${i$1}]`,
47056
- value: patch
47057
- });
47058
- if (!VALID_RAW_PATCH_OPS2.has(patch.op))
47059
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.patchRawProperties patches[${i$1}].op must be one of: ${[...VALID_RAW_PATCH_OPS2].join(", ")}.`, {
47060
- field: `patches[${i$1}].op`,
47061
- value: patch.op
47062
- });
47063
- if (typeof patch.name !== "string" || patch.name === "")
47064
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.patchRawProperties patches[${i$1}].name must be a non-empty string.`, {
47065
- field: `patches[${i$1}].name`,
47066
- value: patch.name
47067
- });
47068
- }
47069
45502
  return adapter.patchRawProperties(input, options);
47070
45503
  }
47071
45504
  function executeContentControlsValidateWordCompatibility2(adapter, input) {
47072
- validateCCInput2(input, "contentControls.validateWordCompatibility");
47073
- validateCCTarget2(input.target, "contentControls.validateWordCompatibility");
47074
45505
  return adapter.validateWordCompatibility(input);
47075
45506
  }
47076
45507
  function executeContentControlsNormalizeWordCompatibility2(adapter, input, options) {
47077
- validateCCInput2(input, "contentControls.normalizeWordCompatibility");
47078
- validateCCTarget2(input.target, "contentControls.normalizeWordCompatibility");
47079
45508
  return adapter.normalizeWordCompatibility(input, options);
47080
45509
  }
47081
45510
  function executeContentControlsNormalizeTagPayload2(adapter, input, options) {
47082
- validateCCInput2(input, "contentControls.normalizeTagPayload");
47083
- validateCCTarget2(input.target, "contentControls.normalizeTagPayload");
47084
45511
  return adapter.normalizeTagPayload(input, options);
47085
45512
  }
47086
45513
  function executeContentControlsTextSetMultiline2(adapter, input, options) {
47087
- validateCCInput2(input, "contentControls.text.setMultiline");
47088
- validateCCTarget2(input.target, "contentControls.text.setMultiline");
47089
- requireBoolean2(input.multiline, "multiline", "contentControls.text.setMultiline");
47090
45514
  return adapter.text.setMultiline(input, options);
47091
45515
  }
47092
45516
  function executeContentControlsTextSetValue2(adapter, input, options) {
47093
- validateCCInput2(input, "contentControls.text.setValue");
47094
- validateCCTarget2(input.target, "contentControls.text.setValue");
47095
- if (typeof input.value !== "string")
47096
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.text.setValue value must be a string.`, {
47097
- field: "value",
47098
- value: input.value
47099
- });
47100
45517
  return adapter.text.setValue(input, options);
47101
45518
  }
47102
45519
  function executeContentControlsTextClearValue2(adapter, input, options) {
47103
- validateCCInput2(input, "contentControls.text.clearValue");
47104
- validateCCTarget2(input.target, "contentControls.text.clearValue");
47105
45520
  return adapter.text.clearValue(input, options);
47106
45521
  }
47107
45522
  function executeContentControlsDateSetValue2(adapter, input, options) {
47108
- validateCCInput2(input, "contentControls.date.setValue");
47109
- validateCCTarget2(input.target, "contentControls.date.setValue");
47110
- if (typeof input.value !== "string")
47111
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.date.setValue value must be a string.`, {
47112
- field: "value",
47113
- value: input.value
47114
- });
47115
45523
  return adapter.date.setValue(input, options);
47116
45524
  }
47117
45525
  function executeContentControlsDateClearValue2(adapter, input, options) {
47118
- validateCCInput2(input, "contentControls.date.clearValue");
47119
- validateCCTarget2(input.target, "contentControls.date.clearValue");
47120
45526
  return adapter.date.clearValue(input, options);
47121
45527
  }
47122
45528
  function executeContentControlsDateSetDisplayFormat2(adapter, input, options) {
47123
- validateCCInput2(input, "contentControls.date.setDisplayFormat");
47124
- validateCCTarget2(input.target, "contentControls.date.setDisplayFormat");
47125
- requireString3(input.format, "format", "contentControls.date.setDisplayFormat");
47126
45529
  return adapter.date.setDisplayFormat(input, options);
47127
45530
  }
47128
45531
  function executeContentControlsDateSetDisplayLocale2(adapter, input, options) {
47129
- validateCCInput2(input, "contentControls.date.setDisplayLocale");
47130
- validateCCTarget2(input.target, "contentControls.date.setDisplayLocale");
47131
- requireString3(input.locale, "locale", "contentControls.date.setDisplayLocale");
47132
45532
  return adapter.date.setDisplayLocale(input, options);
47133
45533
  }
47134
45534
  function executeContentControlsDateSetStorageFormat2(adapter, input, options) {
47135
- validateCCInput2(input, "contentControls.date.setStorageFormat");
47136
- validateCCTarget2(input.target, "contentControls.date.setStorageFormat");
47137
- requireString3(input.format, "format", "contentControls.date.setStorageFormat");
47138
45535
  return adapter.date.setStorageFormat(input, options);
47139
45536
  }
47140
45537
  function executeContentControlsDateSetCalendar2(adapter, input, options) {
47141
- validateCCInput2(input, "contentControls.date.setCalendar");
47142
- validateCCTarget2(input.target, "contentControls.date.setCalendar");
47143
- requireString3(input.calendar, "calendar", "contentControls.date.setCalendar");
47144
45538
  return adapter.date.setCalendar(input, options);
47145
45539
  }
47146
45540
  function executeContentControlsCheckboxGetState2(adapter, input) {
47147
- validateCCInput2(input, "contentControls.checkbox.getState");
47148
- validateCCTarget2(input.target, "contentControls.checkbox.getState");
47149
45541
  return adapter.checkbox.getState(input);
47150
45542
  }
47151
45543
  function executeContentControlsCheckboxSetState2(adapter, input, options) {
47152
- validateCCInput2(input, "contentControls.checkbox.setState");
47153
- validateCCTarget2(input.target, "contentControls.checkbox.setState");
47154
- requireBoolean2(input.checked, "checked", "contentControls.checkbox.setState");
47155
45544
  return adapter.checkbox.setState(input, options);
47156
45545
  }
47157
45546
  function executeContentControlsCheckboxToggle2(adapter, input, options) {
47158
- validateCCInput2(input, "contentControls.checkbox.toggle");
47159
- validateCCTarget2(input.target, "contentControls.checkbox.toggle");
47160
45547
  return adapter.checkbox.toggle(input, options);
47161
45548
  }
47162
45549
  function executeContentControlsCheckboxSetSymbolPair2(adapter, input, options) {
47163
- validateCCInput2(input, "contentControls.checkbox.setSymbolPair");
47164
- validateCCTarget2(input.target, "contentControls.checkbox.setSymbolPair");
47165
- validateSymbol2(input.checkedSymbol, "checkedSymbol", "contentControls.checkbox.setSymbolPair");
47166
- validateSymbol2(input.uncheckedSymbol, "uncheckedSymbol", "contentControls.checkbox.setSymbolPair");
47167
45550
  return adapter.checkbox.setSymbolPair(input, options);
47168
45551
  }
47169
45552
  function executeContentControlsChoiceListGetItems2(adapter, input) {
47170
- validateCCInput2(input, "contentControls.choiceList.getItems");
47171
- validateCCTarget2(input.target, "contentControls.choiceList.getItems");
47172
45553
  return adapter.choiceList.getItems(input);
47173
45554
  }
47174
45555
  function executeContentControlsChoiceListSetItems2(adapter, input, options) {
47175
- validateCCInput2(input, "contentControls.choiceList.setItems");
47176
- validateCCTarget2(input.target, "contentControls.choiceList.setItems");
47177
- if (!Array.isArray(input.items))
47178
- throw new DocumentApiValidationError2("INVALID_INPUT", "contentControls.choiceList.setItems items must be an array.", {
47179
- field: "items",
47180
- value: input.items
47181
- });
47182
- for (let i$1 = 0;i$1 < input.items.length; i$1++) {
47183
- const item = input.items[i$1];
47184
- if (!isRecord4(item) || typeof item.displayText !== "string" || typeof item.value !== "string")
47185
- throw new DocumentApiValidationError2("INVALID_INPUT", `contentControls.choiceList.setItems items[${i$1}] must be { displayText: string, value: string }.`, {
47186
- field: `items[${i$1}]`,
47187
- value: item
47188
- });
47189
- }
47190
45556
  return adapter.choiceList.setItems(input, options);
47191
45557
  }
47192
45558
  function executeContentControlsChoiceListSetSelected2(adapter, input, options) {
47193
- validateCCInput2(input, "contentControls.choiceList.setSelected");
47194
- validateCCTarget2(input.target, "contentControls.choiceList.setSelected");
47195
- if (typeof input.value !== "string")
47196
- throw new DocumentApiValidationError2("INVALID_INPUT", "contentControls.choiceList.setSelected value must be a string.", {
47197
- field: "value",
47198
- value: input.value
47199
- });
47200
45559
  return adapter.choiceList.setSelected(input, options);
47201
45560
  }
47202
45561
  function executeContentControlsRepeatingSectionListItems2(adapter, input) {
47203
- validateCCInput2(input, "contentControls.repeatingSection.listItems");
47204
- validateCCTarget2(input.target, "contentControls.repeatingSection.listItems");
47205
45562
  return adapter.repeatingSection.listItems(input);
47206
45563
  }
47207
45564
  function executeContentControlsRepeatingSectionInsertItemBefore2(adapter, input, options) {
47208
- validateCCInput2(input, "contentControls.repeatingSection.insertItemBefore");
47209
- validateCCTarget2(input.target, "contentControls.repeatingSection.insertItemBefore");
47210
- requireIndex2(input.index, "index", "contentControls.repeatingSection.insertItemBefore");
47211
45565
  return adapter.repeatingSection.insertItemBefore(input, options);
47212
45566
  }
47213
45567
  function executeContentControlsRepeatingSectionInsertItemAfter2(adapter, input, options) {
47214
- validateCCInput2(input, "contentControls.repeatingSection.insertItemAfter");
47215
- validateCCTarget2(input.target, "contentControls.repeatingSection.insertItemAfter");
47216
- requireIndex2(input.index, "index", "contentControls.repeatingSection.insertItemAfter");
47217
45568
  return adapter.repeatingSection.insertItemAfter(input, options);
47218
45569
  }
47219
45570
  function executeContentControlsRepeatingSectionCloneItem2(adapter, input, options) {
47220
- validateCCInput2(input, "contentControls.repeatingSection.cloneItem");
47221
- validateCCTarget2(input.target, "contentControls.repeatingSection.cloneItem");
47222
- requireIndex2(input.index, "index", "contentControls.repeatingSection.cloneItem");
47223
45571
  return adapter.repeatingSection.cloneItem(input, options);
47224
45572
  }
47225
45573
  function executeContentControlsRepeatingSectionDeleteItem2(adapter, input, options) {
47226
- validateCCInput2(input, "contentControls.repeatingSection.deleteItem");
47227
- validateCCTarget2(input.target, "contentControls.repeatingSection.deleteItem");
47228
- requireIndex2(input.index, "index", "contentControls.repeatingSection.deleteItem");
47229
45574
  return adapter.repeatingSection.deleteItem(input, options);
47230
45575
  }
47231
45576
  function executeContentControlsRepeatingSectionSetAllowInsertDelete2(adapter, input, options) {
47232
- validateCCInput2(input, "contentControls.repeatingSection.setAllowInsertDelete");
47233
- validateCCTarget2(input.target, "contentControls.repeatingSection.setAllowInsertDelete");
47234
- requireBoolean2(input.allow, "allow", "contentControls.repeatingSection.setAllowInsertDelete");
47235
45577
  return adapter.repeatingSection.setAllowInsertDelete(input, options);
47236
45578
  }
47237
45579
  function executeContentControlsGroupWrap2(adapter, input, options) {
47238
- validateCCInput2(input, "contentControls.group.wrap");
47239
- validateCCTarget2(input.target, "contentControls.group.wrap");
47240
45580
  return adapter.group.wrap(input, options);
47241
45581
  }
47242
45582
  function executeContentControlsGroupUngroup2(adapter, input, options) {
47243
- validateCCInput2(input, "contentControls.group.ungroup");
47244
- validateCCTarget2(input.target, "contentControls.group.ungroup");
47245
45583
  return adapter.group.ungroup(input, options);
47246
45584
  }
47247
45585
  function executeCreateContentControl2(adapter, input, options) {
47248
- validateCCInput2(input, "create.contentControl");
47249
- requireNodeKind2(input.kind, "kind", "create.contentControl");
47250
- if (input.controlType !== undefined && !VALID_CC_TYPES2.has(input.controlType))
47251
- throw new DocumentApiValidationError2("INVALID_INPUT", `create.contentControl controlType must be one of: ${[...VALID_CC_TYPES2].join(", ")}.`, {
47252
- field: "controlType",
47253
- value: input.controlType
47254
- });
47255
- if (input.lockMode !== undefined && !VALID_LOCK_MODES$1.has(input.lockMode))
47256
- throw new DocumentApiValidationError2("INVALID_INPUT", `create.contentControl lockMode must be one of: ${[...VALID_LOCK_MODES$1].join(", ")}.`, {
47257
- field: "lockMode",
47258
- value: input.lockMode
47259
- });
47260
- if (input.target !== undefined)
47261
- validateCCTarget2(input.target, "create.contentControl");
47262
- if (input.content !== undefined && typeof input.content !== "string")
47263
- throw new DocumentApiValidationError2("INVALID_INPUT", `create.contentControl content must be a string, got ${typeof input.content}.`, {
47264
- field: "content",
47265
- value: input.content
47266
- });
47267
45586
  return adapter.create(input, options);
47268
45587
  }
47269
45588
  function validateBookmarkTarget2(target, operationName) {
@@ -53120,16 +51439,11 @@ function preProcessCitationInstruction(nodesToCombine, instrText, _docx, instruc
53120
51439
  }];
53121
51440
  }
53122
51441
  function preProcessBibliographyInstruction(nodesToCombine, instrText) {
53123
- const contentNodes = Array.isArray(nodesToCombine) && nodesToCombine.length > 0 ? nodesToCombine : [{
53124
- name: "w:p",
53125
- type: "element",
53126
- elements: []
53127
- }];
53128
51442
  return [{
53129
51443
  name: "sd:bibliography",
53130
51444
  type: "element",
53131
51445
  attributes: { instruction: instrText },
53132
- elements: contentNodes
51446
+ elements: nodesToCombine
53133
51447
  }];
53134
51448
  }
53135
51449
  function preProcessTaInstruction(nodesToCombine, instrText, _docx, instructionTokens = null) {
@@ -73755,7 +72069,7 @@ function resolveControlType(attrs) {
73755
72069
  }
73756
72070
  function resolveLockMode(attrs) {
73757
72071
  const raw = attrs.lockMode;
73758
- if (typeof raw === "string" && VALID_LOCK_MODES2.includes(raw))
72072
+ if (typeof raw === "string" && VALID_LOCK_MODES.includes(raw))
73759
72073
  return raw;
73760
72074
  return "unlocked";
73761
72075
  }
@@ -76907,7 +75221,7 @@ var isRegExp = (value) => {
76907
75221
  }, decode$73 = (attrs) => {
76908
75222
  const { pos } = attrs || {};
76909
75223
  return pos?.toString();
76910
- }, attributes_default$6, DocumentApiValidationError2, NODE_KINDS2, NODE_TYPES2, BLOCK_NODE_TYPES2, DELETABLE_BLOCK_NODE_TYPES2, INLINE_NODE_TYPES2, SELECTION_EDGE_NODE_TYPES2, MARK_KEYS, INLINE_DIRECTIVES2, SD_CONTENT_NODE_KINDS2, SD_INLINE_NODE_KINDS2, PLACEMENT_VALUES2, TABLE_NESTING_POLICY_VALUES2, DEFAULT_NESTING_POLICY2, STORY_TYPES2, STORY_HEADER_FOOTER_KINDS2, STORY_HEADER_FOOTER_VARIANTS2, STORY_HEADER_FOOTER_RESOLUTIONS2, STORY_HEADER_FOOTER_ON_WRITE_VALUES2, BLOCK_NODE_TYPES_SET2, NESTING_POLICY_ALLOWED_KEYS2, schemaBooleanOrNull2 = () => ({ oneOf: [{ type: "boolean" }, { type: "null" }] }), schemaStringOrNull2 = () => ({ oneOf: [{
75224
+ }, attributes_default$6, DocumentApiValidationError2, NODE_TYPES2, BLOCK_NODE_TYPES2, DELETABLE_BLOCK_NODE_TYPES2, INLINE_NODE_TYPES2, SELECTION_EDGE_NODE_TYPES2, MARK_KEYS, INLINE_DIRECTIVES2, SD_CONTENT_NODE_KINDS2, SD_INLINE_NODE_KINDS2, PLACEMENT_VALUES2, TABLE_NESTING_POLICY_VALUES2, DEFAULT_NESTING_POLICY2, STORY_TYPES2, STORY_HEADER_FOOTER_KINDS2, STORY_HEADER_FOOTER_VARIANTS2, STORY_HEADER_FOOTER_RESOLUTIONS2, STORY_HEADER_FOOTER_ON_WRITE_VALUES2, BLOCK_NODE_TYPES_SET2, NESTING_POLICY_ALLOWED_KEYS2, schemaBooleanOrNull2 = () => ({ oneOf: [{ type: "boolean" }, { type: "null" }] }), schemaStringOrNull2 = () => ({ oneOf: [{
76911
75225
  type: "string",
76912
75226
  minLength: 1
76913
75227
  }, { type: "null" }] }), schemaNumberOrNull2 = () => ({ oneOf: [{ type: "number" }, { type: "null" }] }), schemaObjectOrNull2 = (properties) => ({ oneOf: [{
@@ -76947,7 +75261,7 @@ var isRegExp = (value) => {
76947
75261
  tracked: false,
76948
75262
  carrier: runAttributeCarrier2(runPropertyKey ?? key),
76949
75263
  schema
76950
- }), INLINE_PROPERTY_REGISTRY2, INLINE_PROPERTY_KEY_SET2, INLINE_PROPERTY_BY_KEY2, UNDERLINE_OBJECT_ALLOWED_KEYS2, SHADING_ALLOWED_KEYS2, BORDER_ALLOWED_KEYS2, FIT_TEXT_ALLOWED_KEYS2, LANG_ALLOWED_KEYS2, RFONTS_ALLOWED_KEYS2, EAST_ASIAN_LAYOUT_ALLOWED_KEYS2, STYLISTIC_SET_ALLOWED_KEYS2, VERT_ALIGN_VALUES2, PROPERTY_VALIDATOR_MAP2, NONE_FAILURES2, NONE_THROWS2, T_NOT_FOUND2, T_NOT_FOUND_CAPABLE2, T_PLAN_ENGINE2, T_NOT_FOUND_COMMAND2, T_IMAGE_COMMAND2, T_CC_READ2, T_CC_MUTATION2, T_CC_TYPED2, T_CC_TYPED_READ2, T_CC_RAW2, T_QUERY_MATCH2, T_SECTION_CREATE2, T_SECTION_READ2, T_PARAGRAPH_MUTATION2, T_SECTION_MUTATION2, T_SECTION_SETTINGS_MUTATION2, T_HEADER_FOOTER_MUTATION2, T_STORY2, T_REF_READ_LIST2, T_REF_MUTATION2, T_REF_MUTATION_REMOVE2, T_REF_INSERT2, FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS2, OPERATION_DEFINITIONS2, OPERATION_IDS2, COMMAND_CATALOG3, PARAGRAPH_ALIGNMENTS2, TAB_STOP_ALIGNMENTS2, TAB_STOP_LEADERS2, BORDER_SIDES2, CLEAR_BORDER_SIDES2, LINE_RULES2, PARAGRAPH_DIRECTIONS2, ALIGNMENT_POLICIES2, PARAGRAPH_BLOCK_TYPES2, SET_STYLE_KEYS2, CLEAR_STYLE_KEYS2, RESET_DIRECT_FORMATTING_KEYS2, SET_ALIGNMENT_KEYS2, CLEAR_ALIGNMENT_KEYS2, SET_INDENTATION_KEYS2, CLEAR_INDENTATION_KEYS2, SET_SPACING_KEYS2, CLEAR_SPACING_KEYS2, SET_KEEP_OPTIONS_KEYS2, SET_OUTLINE_LEVEL_KEYS2, SET_FLOW_OPTIONS_KEYS2, SET_TAB_STOP_KEYS2, CLEAR_TAB_STOP_KEYS2, CLEAR_ALL_TAB_STOPS_KEYS2, SET_BORDER_KEYS2, CLEAR_BORDER_KEYS2, SET_SHADING_KEYS2, CLEAR_SHADING_KEYS2, SET_DIRECTION_KEYS2, CLEAR_DIRECTION_KEYS2, ST_ON_OFF_ON_VALUES2, ST_ON_OFF_OFF_VALUES2, ST_UNDERLINE_VALUES2, ST_UNDERLINE_VALUE_SET2, ST_VERTICAL_ALIGN_RUN2, ST_EM2, ST_TEXT_ALIGNMENT2, ST_TEXT_DIRECTION2, ST_TEXTBOX_TIGHT_WRAP2, ST_TEXT_TRANSFORM2, ST_JUSTIFICATION2, FONT_FAMILY_SCHEMA2, COLOR_SCHEMA2, SPACING_SCHEMA2, INDENT_SCHEMA2, UNDERLINE_SCHEMA2, BORDER_PROPERTIES_SCHEMA2, SHADING_SCHEMA2, LANG_SCHEMA2, EAST_ASIAN_LAYOUT_SCHEMA2, FIT_TEXT_SCHEMA2, NUMBERING_PROPERTIES_SCHEMA2, FRAME_PR_SCHEMA2, PARAGRAPH_BORDERS_SCHEMA2, TAB_STOP_SCHEMA2, PROPERTY_REGISTRY2, ALLOWED_KEYS_BY_CHANNEL2, PROPERTY_INDEX2, EXCLUDED_KEYS2, INPUT_ALLOWED_KEYS2, TARGET_ALLOWED_KEYS2, OPTIONS_ALLOWED_KEYS2, VALID_CHANNELS2, Z_ORDER_RELATIVE_HEIGHT_MAX2 = 4294967295, nodeTypeValues2, blockNodeTypeValues2, deletableBlockNodeTypeValues2, inlineNodeTypeValues2, rangeSchema2, textAddressSchema2, textTargetSchema2, blockNodeAddressSchema2, deletableBlockNodeAddressSchema2, tableAddressSchema2, tableRowAddressSchema2, tableCellAddressSchema2, tableOrCellAddressSchema2, paragraphAddressSchema2, headingAddressSchema2, listItemAddressSchema2, paragraphTargetSchema2, sectionAddressSchema2, nodeAddressSchema2, commentAddressSchema2, trackedChangeAddressSchema2, entityAddressSchema2, selectionTargetSchema2, deleteBehaviorSchema2, resolvedHandleSchema2, pageInfoSchema2, receiptSuccessSchema2, textMutationRangeSchema2, textMutationResolutionSchema2, textMutationSuccessSchema2, matchBlockSchema2, storyLocatorSchema2, trackChangeRefSchema2, createParagraphSuccessSchema2, createHeadingSuccessSchema2, headingLevelSchema2, listsInsertSuccessSchema2, listsMutateItemSuccessSchema2, textSelectorSchema2, nodeSelectorSchema2, sdMutationResolutionSchema2, sdMutationSuccessSchema2, documentInfoCountsSchema2, documentInfoOutlineItemSchema2, documentInfoCapabilitiesSchema2, documentStylesSchema2, documentDefaultsSchema2, listKindSchema2, listInsertPositionSchema2, sectionBreakTypeSchema2, sectionOrientationSchema2, sectionVerticalAlignSchema2, sectionDirectionSchema2, sectionHeaderFooterKindSchema2, sectionHeaderFooterVariantSchema2, sectionLineNumberRestartSchema2, sectionPageNumberFormatSchema2, sectionRangeDomainSchema2, sectionPageMarginsSchema2, sectionHeaderFooterMarginsSchema2, sectionPageSetupSchema2, sectionColumnsSchema2, sectionLineNumberingSchema2, sectionPageNumberingSchema2, sectionHeaderFooterRefsSchema2, sectionBorderSpecSchema2, sectionPageBordersSchema2, sectionMutationSuccessSchema2, documentMutationSuccessSchema2, paragraphMutationTargetSchema2, paragraphMutationSuccessSchema2, createSectionBreakSuccessSchema2, capabilityReasonsSchema2, capabilityFlagSchema2, operationRuntimeCapabilitySchema2, operationCapabilitiesSchema2, inlinePropertyCapabilitySchema2, formatCapabilitiesSchema2, planEngineCapabilitiesSchema2, nullableTableBorderSpecSchema2, sdFragmentSchema2, placementSchema2, nestingPolicySchema2, tableCreateLocationSchema2, formatInlineAliasOperationSchemas2, tocMutationFailureSchema2, tocMutationSuccessSchema2, tocEntryMutationFailureSchema2, tocEntryMutationSuccessSchema2, hyperlinkTargetSchema2, hyperlinkReadPropertiesSchema2, hyperlinkSpecSchema2, hyperlinkPatchSchema2, hyperlinkDomainSchema2, hyperlinkMutationSuccessSchema2, hyperlinkMutationFailureSchema2, contentControlTargetSchema2, contentControlMutationSuccessSchema2, contentControlMutationFailureSchema2, ccListResultSchema2, ccInfoSchema2, refFailureSchema2, bookmarkAddressSchema2, bookmarkMutation2, footnoteAddressSchema2, footnoteConfigScopeSchema2, footnoteNumberingSchema2, footnoteMutation2, footnoteConfig2, crossRefAddressSchema2, crossRefTargetSchema2, crossRefDisplaySchema2, crossRefMutation2, indexAddressSchema2, indexEntryAddressSchema2, indexConfigSchema2, indexEntryDataSchema2, indexEntryPatchSchema2, indexMutation2, indexEntryMutation2, captionAddressSchema2, captionMutation2, captionConfig2, fieldAddressSchema2, fieldMutation2, citationAddressSchema2, citationSourceAddressSchema2, bibliographyAddressSchema2, citationMutation2, citationSourceMutation2, bibliographyMutation2, citationPersonSchema2, citationSourceFieldsSchema2, tocCreateLocationSchema2, authoritiesAddressSchema2, authorityEntryAddressSchema2, authoritiesConfigSchema2, authorityEntryDataSchema2, authorityEntryPatchSchema2, authoritiesMutation2, authorityEntryMutation2, diffCoverageSchema2, diffSummarySchema2, diffSnapshotSchema2, diffPayloadSchema2, GROUP_METADATA2, STEP_OP_CATALOG_UNFROZEN2, PUBLIC_STEP_OP_CATALOG_UNFROZEN2, PUBLIC_MUTATION_STEP_OP_IDS2, PUBLIC_MUTATION_STEP_OP_SET2, CAPABILITY_REASON_CODES, VALID_EDGE_VALUES2, VALID_EDGE_NODE_TYPES2, VALID_DOCUMENT_EDGES2, VALID_REF_BOUNDARIES2, VALID_ANCHOR_KINDS2, RESOLVE_RANGE_ALLOWED_KEYS2, CREATE_COMMENT_ALLOWED_KEYS2, PATCH_COMMENT_ALLOWED_KEYS2, STYLE_APPLY_INPUT_ALLOWED_KEYS2, INLINE_ALIAS_INPUT_ALLOWED_KEYS2, DELETE_INPUT_ALLOWED_KEYS2, VALID_BEHAVIORS2, CONTENT_KIND_SET2, INLINE_KIND_SET2, LEGACY_TOP_LEVEL_TYPES2, TEXT_INSERT_ALLOWED_KEYS2, STRUCTURAL_INSERT_ALLOWED_KEYS2, VALID_INSERT_TYPES2, LIST_KINDS2, LIST_INSERT_POSITIONS2, JOIN_DIRECTIONS2, MUTATION_SCOPES2, LEVEL_ALIGNMENTS2, TRAILING_CHARACTERS2, LIST_PRESET_IDS2, VALID_BLOCK_NODE_TYPES$1, VALID_LIST_KINDS2, VALID_INSERT_POSITIONS2, VALID_JOIN_DIRECTIONS2, VALID_MUTATION_SCOPES2, VALID_LEVEL_ALIGNMENTS2, VALID_TRAILING_CHARACTERS2, VALID_LIST_PRESETS2, VALID_CONTINUITY_VALUES2, VALID_SEQUENCE_MODES2, VALID_LIST_CREATE_MODES2, TEXT_REPLACE_ALLOWED_KEYS2, STRUCTURAL_REPLACE_ALLOWED_KEYS2, VALID_HEADING_LEVELS2, SECTION_BREAK_TYPES$1, SUPPORTED_DELETE_NODE_TYPES2, REJECTED_DELETE_NODE_TYPES2, VALID_BLOCK_NODE_TYPES3, SNAPSHOT_VERSION2 = "sd-diff-snapshot/v1", PAYLOAD_VERSION2 = "sd-diff-payload/v1", VALID_STYLE_OPTION_FLAGS2, TABLE_BORDER_COLOR_PATTERN2, VALID_APPLY_TO_VALUES2, VALID_BORDER_EDGE_KEYS2, HEADER_FOOTER_KINDS$1, HEADER_FOOTER_VARIANTS$1, DEFAULT_SECTIONS_LIST_LIMIT2 = 250, SECTION_BREAK_TYPES3, SECTION_ORIENTATIONS2, SECTION_VERTICAL_ALIGNS2, SECTION_DIRECTIONS2, HEADER_FOOTER_KINDS3, HEADER_FOOTER_VARIANTS3, LINE_NUMBER_RESTARTS2, PAGE_NUMBER_FORMATS2, PAGE_BORDER_DISPLAYS2, PAGE_BORDER_OFFSET_FROM_VALUES2, PAGE_BORDER_Z_ORDER_VALUES2, VALID_WRAP_TYPES2, VALID_WRAP_SIDES2, VALID_IMAGE_SIZE_UNITS2, VALID_TOC_UPDATE_MODES2, EDIT_ENTRY_PATCH_ALLOWED_KEYS2, PATCH_FIELDS2, CONTENT_CONTROL_TYPES2, LOCK_MODES2, CONTENT_CONTROL_APPEARANCES2, VALID_NODE_KINDS2, VALID_LOCK_MODES$1, VALID_CC_TYPES2, VALID_CC_APPEARANCES2, VALID_CONTENT_FORMATS2, VALID_RAW_PATCH_OPS2, VALID_CREATE_LOCATION_KINDS2, ADAPTER_GATED_PREFIXES2, _buffers, _defaultCollectionId = null, _nextCollectionId = 1, generateV2HandlerEntity = (handlerName, translator$216) => ({
75264
+ }), INLINE_PROPERTY_REGISTRY2, INLINE_PROPERTY_KEY_SET2, INLINE_PROPERTY_BY_KEY2, UNDERLINE_OBJECT_ALLOWED_KEYS2, SHADING_ALLOWED_KEYS2, BORDER_ALLOWED_KEYS2, FIT_TEXT_ALLOWED_KEYS2, LANG_ALLOWED_KEYS2, RFONTS_ALLOWED_KEYS2, EAST_ASIAN_LAYOUT_ALLOWED_KEYS2, STYLISTIC_SET_ALLOWED_KEYS2, VERT_ALIGN_VALUES2, PROPERTY_VALIDATOR_MAP2, NONE_FAILURES2, NONE_THROWS2, T_NOT_FOUND2, T_NOT_FOUND_CAPABLE2, T_PLAN_ENGINE2, T_NOT_FOUND_COMMAND2, T_IMAGE_COMMAND2, T_CC_READ2, T_CC_MUTATION2, T_CC_TYPED2, T_CC_TYPED_READ2, T_CC_RAW2, T_QUERY_MATCH2, T_SECTION_CREATE2, T_SECTION_READ2, T_PARAGRAPH_MUTATION2, T_SECTION_MUTATION2, T_SECTION_SETTINGS_MUTATION2, T_HEADER_FOOTER_MUTATION2, T_STORY2, T_REF_READ_LIST2, T_REF_MUTATION2, T_REF_MUTATION_REMOVE2, T_REF_INSERT2, FORMAT_INLINE_ALIAS_OPERATION_DEFINITIONS2, OPERATION_DEFINITIONS2, OPERATION_IDS2, COMMAND_CATALOG3, PARAGRAPH_ALIGNMENTS2, TAB_STOP_ALIGNMENTS2, TAB_STOP_LEADERS2, BORDER_SIDES2, CLEAR_BORDER_SIDES2, LINE_RULES2, PARAGRAPH_DIRECTIONS2, ALIGNMENT_POLICIES2, PARAGRAPH_BLOCK_TYPES2, SET_STYLE_KEYS2, CLEAR_STYLE_KEYS2, RESET_DIRECT_FORMATTING_KEYS2, SET_ALIGNMENT_KEYS2, CLEAR_ALIGNMENT_KEYS2, SET_INDENTATION_KEYS2, CLEAR_INDENTATION_KEYS2, SET_SPACING_KEYS2, CLEAR_SPACING_KEYS2, SET_KEEP_OPTIONS_KEYS2, SET_OUTLINE_LEVEL_KEYS2, SET_FLOW_OPTIONS_KEYS2, SET_TAB_STOP_KEYS2, CLEAR_TAB_STOP_KEYS2, CLEAR_ALL_TAB_STOPS_KEYS2, SET_BORDER_KEYS2, CLEAR_BORDER_KEYS2, SET_SHADING_KEYS2, CLEAR_SHADING_KEYS2, SET_DIRECTION_KEYS2, CLEAR_DIRECTION_KEYS2, ST_ON_OFF_ON_VALUES2, ST_ON_OFF_OFF_VALUES2, ST_UNDERLINE_VALUES2, ST_UNDERLINE_VALUE_SET2, ST_VERTICAL_ALIGN_RUN2, ST_EM2, ST_TEXT_ALIGNMENT2, ST_TEXT_DIRECTION2, ST_TEXTBOX_TIGHT_WRAP2, ST_TEXT_TRANSFORM2, ST_JUSTIFICATION2, FONT_FAMILY_SCHEMA2, COLOR_SCHEMA2, SPACING_SCHEMA2, INDENT_SCHEMA2, UNDERLINE_SCHEMA2, BORDER_PROPERTIES_SCHEMA2, SHADING_SCHEMA2, LANG_SCHEMA2, EAST_ASIAN_LAYOUT_SCHEMA2, FIT_TEXT_SCHEMA2, NUMBERING_PROPERTIES_SCHEMA2, FRAME_PR_SCHEMA2, PARAGRAPH_BORDERS_SCHEMA2, TAB_STOP_SCHEMA2, PROPERTY_REGISTRY2, ALLOWED_KEYS_BY_CHANNEL2, PROPERTY_INDEX2, EXCLUDED_KEYS2, INPUT_ALLOWED_KEYS2, TARGET_ALLOWED_KEYS2, OPTIONS_ALLOWED_KEYS2, VALID_CHANNELS2, Z_ORDER_RELATIVE_HEIGHT_MAX2 = 4294967295, nodeTypeValues2, blockNodeTypeValues2, deletableBlockNodeTypeValues2, inlineNodeTypeValues2, rangeSchema2, textAddressSchema2, textTargetSchema2, blockNodeAddressSchema2, deletableBlockNodeAddressSchema2, tableAddressSchema2, tableRowAddressSchema2, tableCellAddressSchema2, tableOrCellAddressSchema2, paragraphAddressSchema2, headingAddressSchema2, listItemAddressSchema2, paragraphTargetSchema2, sectionAddressSchema2, nodeAddressSchema2, commentAddressSchema2, trackedChangeAddressSchema2, entityAddressSchema2, selectionTargetSchema2, deleteBehaviorSchema2, resolvedHandleSchema2, pageInfoSchema2, receiptSuccessSchema2, textMutationRangeSchema2, textMutationResolutionSchema2, textMutationSuccessSchema2, matchBlockSchema2, storyLocatorSchema2, trackChangeRefSchema2, createParagraphSuccessSchema2, createHeadingSuccessSchema2, headingLevelSchema2, listsInsertSuccessSchema2, listsMutateItemSuccessSchema2, textSelectorSchema2, nodeSelectorSchema2, sdMutationResolutionSchema2, sdMutationSuccessSchema2, documentInfoCountsSchema2, documentInfoOutlineItemSchema2, documentInfoCapabilitiesSchema2, documentStylesSchema2, documentDefaultsSchema2, listKindSchema2, listInsertPositionSchema2, sectionBreakTypeSchema2, sectionOrientationSchema2, sectionVerticalAlignSchema2, sectionDirectionSchema2, sectionHeaderFooterKindSchema2, sectionHeaderFooterVariantSchema2, sectionLineNumberRestartSchema2, sectionPageNumberFormatSchema2, sectionRangeDomainSchema2, sectionPageMarginsSchema2, sectionHeaderFooterMarginsSchema2, sectionPageSetupSchema2, sectionColumnsSchema2, sectionLineNumberingSchema2, sectionPageNumberingSchema2, sectionHeaderFooterRefsSchema2, sectionBorderSpecSchema2, sectionPageBordersSchema2, sectionMutationSuccessSchema2, documentMutationSuccessSchema2, paragraphMutationTargetSchema2, paragraphMutationSuccessSchema2, createSectionBreakSuccessSchema2, capabilityReasonsSchema2, capabilityFlagSchema2, operationRuntimeCapabilitySchema2, operationCapabilitiesSchema2, inlinePropertyCapabilitySchema2, formatCapabilitiesSchema2, planEngineCapabilitiesSchema2, nullableTableBorderSpecSchema2, sdFragmentSchema2, placementSchema2, nestingPolicySchema2, tableCreateLocationSchema2, formatInlineAliasOperationSchemas2, tocMutationFailureSchema2, tocMutationSuccessSchema2, tocEntryMutationFailureSchema2, tocEntryMutationSuccessSchema2, hyperlinkTargetSchema2, hyperlinkReadPropertiesSchema2, hyperlinkSpecSchema2, hyperlinkPatchSchema2, hyperlinkDomainSchema2, hyperlinkMutationSuccessSchema2, hyperlinkMutationFailureSchema2, contentControlTargetSchema2, contentControlMutationSuccessSchema2, contentControlMutationFailureSchema2, ccListResultSchema2, ccInfoSchema2, refFailureSchema2, bookmarkAddressSchema2, bookmarkMutation2, footnoteAddressSchema2, footnoteConfigScopeSchema2, footnoteNumberingSchema2, footnoteMutation2, footnoteConfig2, crossRefAddressSchema2, crossRefTargetSchema2, crossRefDisplaySchema2, crossRefMutation2, indexAddressSchema2, indexEntryAddressSchema2, indexConfigSchema2, indexEntryDataSchema2, indexEntryPatchSchema2, indexMutation2, indexEntryMutation2, captionAddressSchema2, captionMutation2, captionConfig2, fieldAddressSchema2, fieldMutation2, citationAddressSchema2, citationSourceAddressSchema2, bibliographyAddressSchema2, citationMutation2, citationSourceMutation2, bibliographyMutation2, citationPersonSchema2, citationSourceFieldsSchema2, tocCreateLocationSchema2, authoritiesAddressSchema2, authorityEntryAddressSchema2, authoritiesConfigSchema2, authorityEntryDataSchema2, authorityEntryPatchSchema2, authoritiesMutation2, authorityEntryMutation2, diffCoverageSchema2, diffSummarySchema2, diffSnapshotSchema2, diffPayloadSchema2, GROUP_METADATA2, STEP_OP_CATALOG_UNFROZEN2, PUBLIC_STEP_OP_CATALOG_UNFROZEN2, PUBLIC_MUTATION_STEP_OP_IDS2, PUBLIC_MUTATION_STEP_OP_SET2, CAPABILITY_REASON_CODES, VALID_EDGE_VALUES2, VALID_EDGE_NODE_TYPES2, VALID_DOCUMENT_EDGES2, VALID_REF_BOUNDARIES2, VALID_ANCHOR_KINDS2, RESOLVE_RANGE_ALLOWED_KEYS2, CREATE_COMMENT_ALLOWED_KEYS2, PATCH_COMMENT_ALLOWED_KEYS2, STYLE_APPLY_INPUT_ALLOWED_KEYS2, INLINE_ALIAS_INPUT_ALLOWED_KEYS2, DELETE_INPUT_ALLOWED_KEYS2, VALID_BEHAVIORS2, CONTENT_KIND_SET2, INLINE_KIND_SET2, LEGACY_TOP_LEVEL_TYPES2, TEXT_INSERT_ALLOWED_KEYS2, STRUCTURAL_INSERT_ALLOWED_KEYS2, VALID_INSERT_TYPES2, TEXT_REPLACE_ALLOWED_KEYS2, STRUCTURAL_REPLACE_ALLOWED_KEYS2, SECTION_BREAK_TYPES$1, SUPPORTED_DELETE_NODE_TYPES2, REJECTED_DELETE_NODE_TYPES2, VALID_BLOCK_NODE_TYPES2, SNAPSHOT_VERSION2 = "sd-diff-snapshot/v1", PAYLOAD_VERSION2 = "sd-diff-payload/v1", VALID_STYLE_OPTION_FLAGS2, TABLE_BORDER_COLOR_PATTERN2, VALID_APPLY_TO_VALUES2, VALID_BORDER_EDGE_KEYS2, HEADER_FOOTER_KINDS$1, HEADER_FOOTER_VARIANTS$1, DEFAULT_SECTIONS_LIST_LIMIT2 = 250, SECTION_BREAK_TYPES3, SECTION_ORIENTATIONS2, SECTION_VERTICAL_ALIGNS2, SECTION_DIRECTIONS2, HEADER_FOOTER_KINDS3, HEADER_FOOTER_VARIANTS3, LINE_NUMBER_RESTARTS2, PAGE_NUMBER_FORMATS2, PAGE_BORDER_DISPLAYS2, PAGE_BORDER_OFFSET_FROM_VALUES2, PAGE_BORDER_Z_ORDER_VALUES2, VALID_WRAP_TYPES2, VALID_WRAP_SIDES2, VALID_IMAGE_SIZE_UNITS2, PATCH_FIELDS2, VALID_CREATE_LOCATION_KINDS2, ADAPTER_GATED_PREFIXES2, _buffers, _defaultCollectionId = null, _nextCollectionId = 1, generateV2HandlerEntity = (handlerName, translator$216) => ({
76951
75265
  handlerName,
76952
75266
  handler: (params) => {
76953
75267
  const { nodes } = params;
@@ -78194,10 +76508,10 @@ var isRegExp = (value) => {
78194
76508
  sdtPr
78195
76509
  }
78196
76510
  };
78197
- }, validGalleryTypeMap, inlineNodeTypes, SD_TOC_XML_NAME = "sd:tableOfContents", PARAGRAPH_XML_NAME = "w:p", PARAGRAPH_PROPERTIES_XML_NAME$1 = "w:pPr", wrapInlineNode = (node3) => ({
76511
+ }, validGalleryTypeMap, inlineNodeTypes, SD_TOC_XML_NAME = "sd:tableOfContents", PARAGRAPH_XML_NAME = "w:p", PARAGRAPH_PROPERTIES_XML_NAME = "w:pPr", wrapInlineNode = (node3) => ({
78198
76512
  type: "paragraph",
78199
76513
  content: [node3]
78200
- }), hasMeaningfulParagraphContent$1 = (elements = []) => elements.some((element) => element?.name && element.name !== PARAGRAPH_PROPERTIES_XML_NAME$1), translateNodes = (params, nodes, pathTail = []) => params.nodeListHandler.handler({
76514
+ }), hasMeaningfulParagraphContent = (elements = []) => elements.some((element) => element?.name && element.name !== PARAGRAPH_PROPERTIES_XML_NAME), translateNodes = (params, nodes, pathTail = []) => params.nodeListHandler.handler({
78201
76515
  ...params,
78202
76516
  nodes,
78203
76517
  path: [...params.path || [], ...pathTail]
@@ -78212,7 +76526,7 @@ var isRegExp = (value) => {
78212
76526
  return;
78213
76527
  }
78214
76528
  const remainingElements = childElements.filter((el) => el?.name !== SD_TOC_XML_NAME);
78215
- if (hasMeaningfulParagraphContent$1(remainingElements))
76529
+ if (hasMeaningfulParagraphContent(remainingElements))
78216
76530
  translatedContent.push(...translateNodes(params, [{
78217
76531
  ...child,
78218
76532
  elements: remainingElements
@@ -88948,45 +87262,13 @@ var isRegExp = (value) => {
88948
87262
  nodes: [resultNode],
88949
87263
  consumed: 1
88950
87264
  };
88951
- }, textNodeHandlerEntity, PARAGRAPH_PROPERTIES_XML_NAME = "w:pPr", BLOCK_FIELD_XML_NAMES, hasMeaningfulParagraphContent = (elements = []) => elements.some((element) => element?.name && element.name !== PARAGRAPH_PROPERTIES_XML_NAME), hoistBlockFieldNodes = (params, paragraphNode) => {
88952
- const paragraphElements = Array.isArray(paragraphNode?.elements) ? paragraphNode.elements : [];
88953
- const blockFieldElements = paragraphElements.filter((element) => BLOCK_FIELD_XML_NAMES.has(element?.name));
88954
- if (blockFieldElements.length === 0)
88955
- return null;
88956
- const nodes = [];
88957
- const remainingElements = paragraphElements.filter((element) => !BLOCK_FIELD_XML_NAMES.has(element?.name));
88958
- if (hasMeaningfulParagraphContent(remainingElements)) {
88959
- const paragraph2 = translator.encode({
88960
- ...params,
88961
- nodes: [{
88962
- ...paragraphNode,
88963
- elements: remainingElements
88964
- }]
88965
- });
88966
- if (paragraph2)
88967
- nodes.push(paragraph2);
88968
- }
88969
- blockFieldElements.forEach((blockFieldElement) => {
88970
- nodes.push(...params.nodeListHandler.handler({
88971
- ...params,
88972
- nodes: [blockFieldElement],
88973
- path: [...params.path || [], paragraphNode]
88974
- }));
88975
- });
88976
- return nodes;
88977
- }, handleParagraphNode = (params) => {
87265
+ }, textNodeHandlerEntity, handleParagraphNode = (params) => {
88978
87266
  const { nodes } = params;
88979
87267
  if (nodes.length === 0 || nodes[0].name !== "w:p")
88980
87268
  return {
88981
87269
  nodes: [],
88982
87270
  consumed: 0
88983
87271
  };
88984
- const hoistedNodes = hoistBlockFieldNodes(params, nodes[0]);
88985
- if (hoistedNodes)
88986
- return {
88987
- nodes: hoistedNodes,
88988
- consumed: 1
88989
- };
88990
87272
  const schemaNode = translator.encode(params);
88991
87273
  return {
88992
87274
  nodes: schemaNode ? [schemaNode] : [],
@@ -89940,7 +88222,7 @@ var isRegExp = (value) => {
89940
88222
  nodes: [translator$3.encode(params)],
89941
88223
  consumed: 1
89942
88224
  };
89943
- }, tabNodeEntityHandler, footnoteReferenceHandlerEntity, tableNodeHandlerEntity, tableOfContentsHandlerEntity, indexHandlerEntity, indexEntryHandlerEntity, bibliographyHandlerEntity, commentRangeStartHandlerEntity, commentRangeEndHandlerEntity, permStartHandlerEntity, permEndHandlerEntity, PARAGRAPH_IDENTITY_ATTRS, TABLE_IDENTITY_ATTRS, DEFAULT_BLOCK_IDENTITY_ATTRS, SYNTHETIC_PARA_ID_TYPES, DOCX_ID_LENGTH = 8, MAX_DOCX_ID = 4294967295, BLOCK_IDENTITY_ATTRS, WORD_2012_NAMESPACE = "http://schemas.microsoft.com/office/word/2012/wordml", deepClone = (value) => JSON.parse(JSON.stringify(value)), getNumberingRoot = (numberingXml) => {
88225
+ }, tabNodeEntityHandler, footnoteReferenceHandlerEntity, tableNodeHandlerEntity, tableOfContentsHandlerEntity, indexHandlerEntity, indexEntryHandlerEntity, commentRangeStartHandlerEntity, commentRangeEndHandlerEntity, permStartHandlerEntity, permEndHandlerEntity, PARAGRAPH_IDENTITY_ATTRS, TABLE_IDENTITY_ATTRS, DEFAULT_BLOCK_IDENTITY_ATTRS, SYNTHETIC_PARA_ID_TYPES, DOCX_ID_LENGTH = 8, MAX_DOCX_ID = 4294967295, BLOCK_IDENTITY_ATTRS, WORD_2012_NAMESPACE = "http://schemas.microsoft.com/office/word/2012/wordml", deepClone = (value) => JSON.parse(JSON.stringify(value)), getNumberingRoot = (numberingXml) => {
89944
88226
  if (!numberingXml?.elements?.length)
89945
88227
  return null;
89946
88228
  return numberingXml.elements.find((el) => el?.name === "w:numbering") || numberingXml.elements[0] || null;
@@ -90092,7 +88374,6 @@ var isRegExp = (value) => {
90092
88374
  tabNodeEntityHandler,
90093
88375
  tableOfContentsHandlerEntity,
90094
88376
  indexHandlerEntity,
90095
- bibliographyHandlerEntity,
90096
88377
  indexEntryHandlerEntity,
90097
88378
  autoPageHandlerEntity,
90098
88379
  autoTotalPageCountEntity,
@@ -91120,7 +89401,7 @@ var isRegExp = (value) => {
91120
89401
  if (id)
91121
89402
  return trackedChanges.filter(({ mark }) => mark.attrs.id === id);
91122
89403
  return trackedChanges;
91123
- }, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES2, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, SETTINGS_PART_PATH = "word/settings.xml", BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6", DEFAULT_XML_DECLARATION, API_TO_OOXML_SOURCE_TYPE, OOXML_TO_API_SOURCE_TYPE, SIMPLE_FIELD_TO_XML_TAG, XML_TAG_TO_SIMPLE_FIELD, import_lib2, FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", DEFAULT_FONT_SIZE_PT = 10, CURRENT_APP_VERSION = "1.21.0", collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
89404
+ }, DERIVED_ID_LENGTH = 24, groupedCache, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, SETTINGS_PART_PATH = "word/settings.xml", BIBLIOGRAPHY_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/bibliography", CUSTOM_XML_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml", CUSTOM_XML_PROPS_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", DEFAULT_SELECTED_STYLE = "/APA.XSL", DEFAULT_STYLE_NAME = "APA", DEFAULT_VERSION = "6", DEFAULT_XML_DECLARATION, API_TO_OOXML_SOURCE_TYPE, OOXML_TO_API_SOURCE_TYPE, SIMPLE_FIELD_TO_XML_TAG, XML_TAG_TO_SIMPLE_FIELD, import_lib2, FONT_FAMILY_FALLBACKS, DEFAULT_GENERIC_FALLBACK = "sans-serif", DEFAULT_FONT_SIZE_PT = 10, CURRENT_APP_VERSION = "1.21.1", collectRunDefaultProperties = (runProps, { allowOverrideTypeface = true, allowOverrideSize = true, themeResolver, state }) => {
91124
89405
  if (!runProps?.elements?.length || !state)
91125
89406
  return;
91126
89407
  const fontsNode = runProps.elements.find((el) => el.name === "w:rFonts");
@@ -91154,7 +89435,7 @@ var isRegExp = (value) => {
91154
89435
  state.kern = kernNode.attributes["w:val"];
91155
89436
  }
91156
89437
  }, SuperConverter;
91157
- var init_SuperConverter_V_8WDjnK_es = __esm(() => {
89438
+ var init_SuperConverter_BL6WX_iN_es = __esm(() => {
91158
89439
  init_rolldown_runtime_B2q5OVn9_es();
91159
89440
  init_jszip_ChlR43oI_es();
91160
89441
  init_xml_js_DLE8mr0n_es();
@@ -93574,7 +91855,6 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
93574
91855
  Object.setPrototypeOf(this, DocumentApiValidationError3.prototype);
93575
91856
  }
93576
91857
  };
93577
- NODE_KINDS2 = ["block", "inline"];
93578
91858
  NODE_TYPES2 = [
93579
91859
  "paragraph",
93580
91860
  "heading",
@@ -105341,43 +103621,6 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
105341
103621
  "markdown",
105342
103622
  "html"
105343
103623
  ]);
105344
- LIST_KINDS2 = ["ordered", "bullet"];
105345
- LIST_INSERT_POSITIONS2 = ["before", "after"];
105346
- JOIN_DIRECTIONS2 = ["withPrevious", "withNext"];
105347
- MUTATION_SCOPES2 = ["definition", "instance"];
105348
- LEVEL_ALIGNMENTS2 = [
105349
- "left",
105350
- "center",
105351
- "right"
105352
- ];
105353
- TRAILING_CHARACTERS2 = [
105354
- "tab",
105355
- "space",
105356
- "nothing"
105357
- ];
105358
- LIST_PRESET_IDS2 = [
105359
- "decimal",
105360
- "decimalParenthesis",
105361
- "lowerLetter",
105362
- "upperLetter",
105363
- "lowerRoman",
105364
- "upperRoman",
105365
- "disc",
105366
- "circle",
105367
- "square",
105368
- "dash"
105369
- ];
105370
- VALID_BLOCK_NODE_TYPES$1 = new Set(BLOCK_NODE_TYPES2);
105371
- VALID_LIST_KINDS2 = new Set(LIST_KINDS2);
105372
- VALID_INSERT_POSITIONS2 = new Set(LIST_INSERT_POSITIONS2);
105373
- VALID_JOIN_DIRECTIONS2 = new Set(JOIN_DIRECTIONS2);
105374
- VALID_MUTATION_SCOPES2 = new Set(MUTATION_SCOPES2);
105375
- VALID_LEVEL_ALIGNMENTS2 = new Set(LEVEL_ALIGNMENTS2);
105376
- VALID_TRAILING_CHARACTERS2 = new Set(TRAILING_CHARACTERS2);
105377
- VALID_LIST_PRESETS2 = new Set(LIST_PRESET_IDS2);
105378
- VALID_CONTINUITY_VALUES2 = new Set(["preserve", "none"]);
105379
- VALID_SEQUENCE_MODES2 = new Set(["new", "continuePrevious"]);
105380
- VALID_LIST_CREATE_MODES2 = new Set(["empty", "fromParagraphs"]);
105381
103624
  TEXT_REPLACE_ALLOWED_KEYS2 = new Set([
105382
103625
  "text",
105383
103626
  "target",
@@ -105391,14 +103634,6 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
105391
103634
  "nestingPolicy",
105392
103635
  "in"
105393
103636
  ]);
105394
- VALID_HEADING_LEVELS2 = new Set([
105395
- 1,
105396
- 2,
105397
- 3,
105398
- 4,
105399
- 5,
105400
- 6
105401
- ]);
105402
103637
  SECTION_BREAK_TYPES$1 = [
105403
103638
  "continuous",
105404
103639
  "nextPage",
@@ -105407,7 +103642,7 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
105407
103642
  ];
105408
103643
  SUPPORTED_DELETE_NODE_TYPES2 = new Set(DELETABLE_BLOCK_NODE_TYPES2);
105409
103644
  REJECTED_DELETE_NODE_TYPES2 = new Set(["tableRow", "tableCell"]);
105410
- VALID_BLOCK_NODE_TYPES3 = new Set(BLOCK_NODE_TYPES2);
103645
+ VALID_BLOCK_NODE_TYPES2 = new Set(BLOCK_NODE_TYPES2);
105411
103646
  VALID_STYLE_OPTION_FLAGS2 = new Set([
105412
103647
  "headerRow",
105413
103648
  "lastRow",
@@ -105502,13 +103737,6 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
105502
103737
  "pt",
105503
103738
  "twip"
105504
103739
  ]);
105505
- VALID_TOC_UPDATE_MODES2 = new Set(["all", "pageNumbers"]);
105506
- EDIT_ENTRY_PATCH_ALLOWED_KEYS2 = new Set([
105507
- "text",
105508
- "level",
105509
- "tableIdentifier",
105510
- "omitPageNumber"
105511
- ]);
105512
103740
  PATCH_FIELDS2 = new Set([
105513
103741
  "href",
105514
103742
  "anchor",
@@ -105517,39 +103745,6 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
105517
103745
  "target",
105518
103746
  "rel"
105519
103747
  ]);
105520
- CONTENT_CONTROL_TYPES2 = [
105521
- "text",
105522
- "date",
105523
- "checkbox",
105524
- "comboBox",
105525
- "dropDownList",
105526
- "repeatingSection",
105527
- "repeatingSectionItem",
105528
- "group",
105529
- "unknown"
105530
- ];
105531
- LOCK_MODES2 = [
105532
- "unlocked",
105533
- "sdtLocked",
105534
- "contentLocked",
105535
- "sdtContentLocked"
105536
- ];
105537
- CONTENT_CONTROL_APPEARANCES2 = [
105538
- "boundingBox",
105539
- "tags",
105540
- "hidden"
105541
- ];
105542
- VALID_NODE_KINDS2 = new Set(NODE_KINDS2);
105543
- VALID_LOCK_MODES$1 = new Set(LOCK_MODES2);
105544
- VALID_CC_TYPES2 = new Set(CONTENT_CONTROL_TYPES2);
105545
- VALID_CC_APPEARANCES2 = new Set(CONTENT_CONTROL_APPEARANCES2);
105546
- VALID_CONTENT_FORMATS2 = new Set(["text", "html"]);
105547
- VALID_RAW_PATCH_OPS2 = new Set([
105548
- "set",
105549
- "remove",
105550
- "setAttr",
105551
- "removeAttr"
105552
- ]);
105553
103748
  VALID_CREATE_LOCATION_KINDS2 = new Set([
105554
103749
  "documentStart",
105555
103750
  "documentEnd",
@@ -125923,12 +124118,6 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
125923
124118
  handlerName: "textNodeHandler",
125924
124119
  handler: handleTextNode
125925
124120
  };
125926
- BLOCK_FIELD_XML_NAMES = new Set([
125927
- "sd:tableOfContents",
125928
- "sd:index",
125929
- "sd:bibliography",
125930
- "sd:tableOfAuthorities"
125931
- ]);
125932
124121
  paragraphNodeHandlerEntity = {
125933
124122
  handlerName: "paragraphNodeHandler",
125934
124123
  handler: handleParagraphNode
@@ -126552,7 +124741,6 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
126552
124741
  tableOfContentsHandlerEntity = generateV2HandlerEntity("tableOfContentsHandler", translator$22);
126553
124742
  indexHandlerEntity = generateV2HandlerEntity("indexHandler", translator$23);
126554
124743
  indexEntryHandlerEntity = generateV2HandlerEntity("indexEntryHandler", translator$24);
126555
- bibliographyHandlerEntity = generateV2HandlerEntity("bibliographyHandler", translator$18);
126556
124744
  commentRangeStartHandlerEntity = generateV2HandlerEntity("commentRangeStartHandler", commentRangeStartTranslator);
126557
124745
  commentRangeEndHandlerEntity = generateV2HandlerEntity("commentRangeEndHandler", commentRangeEndTranslator);
126558
124746
  permStartHandlerEntity = generateV2HandlerEntity("permStartHandler", translator$13);
@@ -126778,7 +124966,7 @@ var init_SuperConverter_V_8WDjnK_es = __esm(() => {
126778
124966
  "repeatingSectionItem",
126779
124967
  "group"
126780
124968
  ];
126781
- VALID_LOCK_MODES2 = [
124969
+ VALID_LOCK_MODES = [
126782
124970
  "unlocked",
126783
124971
  "sdtLocked",
126784
124972
  "contentLocked",
@@ -138692,11 +136880,20 @@ var assign, keys2, forEach2 = (obj, f2) => {
138692
136880
  }
138693
136881
  }
138694
136882
  return true;
138695
- }, hasProperty = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key), equalFlat = (a, b) => a === b || size(a) === size(b) && every(a, (val, key) => (val !== undefined || hasProperty(b, key)) && equals(b[key], val));
136883
+ }, hasProperty = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key), equalFlat = (a, b) => a === b || size(a) === size(b) && every(a, (val, key) => (val !== undefined || hasProperty(b, key)) && equals(b[key], val)), freeze, deepFreeze = (o) => {
136884
+ for (const key in o) {
136885
+ const c = o[key];
136886
+ if (typeof c === "object" || typeof c === "function") {
136887
+ deepFreeze(o[key]);
136888
+ }
136889
+ }
136890
+ return freeze(o);
136891
+ };
138696
136892
  var init_object = __esm(() => {
138697
136893
  init_equality();
138698
136894
  assign = Object.assign;
138699
136895
  keys2 = Object.keys;
136896
+ freeze = Object.freeze;
138700
136897
  });
138701
136898
 
138702
136899
  // ../../node_modules/.pnpm/lib0@0.2.117/node_modules/lib0/function.js
@@ -138995,7 +137192,7 @@ var createIterator = (next) => ({
138995
137192
  return { done, value: done ? undefined : fmap(value) };
138996
137193
  });
138997
137194
 
138998
- // ../../node_modules/.pnpm/yjs@13.6.19/node_modules/yjs/dist/yjs.mjs
137195
+ // ../../node_modules/.pnpm/yjs@13.6.30/node_modules/yjs/dist/yjs.mjs
138999
137196
  class DeleteItem {
139000
137197
  constructor(clock, len3) {
139001
137198
  this.clock = clock;
@@ -139693,6 +137890,7 @@ class ContentJSON {
139693
137890
  class ContentAny {
139694
137891
  constructor(arr) {
139695
137892
  this.arr = arr;
137893
+ isDevMode && deepFreeze(arr);
139696
137894
  }
139697
137895
  getLength() {
139698
137896
  return this.arr.length;
@@ -139840,9 +138038,12 @@ class ContentType {
139840
138038
  }
139841
138039
  var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes, clientid) => {
139842
138040
  const structs = transaction.doc.store.clients.get(clientid);
139843
- for (let i4 = 0;i4 < deletes.length; i4++) {
139844
- const del = deletes[i4];
139845
- iterateStructs(transaction, structs, del.clock, del.len, f2);
138041
+ if (structs != null) {
138042
+ const lastStruct = structs[structs.length - 1];
138043
+ const clockState = lastStruct.id.clock + lastStruct.length;
138044
+ for (let i4 = 0, del = deletes[i4];i4 < deletes.length && del.clock < clockState; del = deletes[++i4]) {
138045
+ iterateStructs(transaction, structs, del.clock, del.len, f2);
138046
+ }
139846
138047
  }
139847
138048
  }), findIndexDS = (dis, clock) => {
139848
138049
  let left = 0;
@@ -139872,7 +138073,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
139872
138073
  const left = dels[j - 1];
139873
138074
  const right = dels[i4];
139874
138075
  if (left.clock + left.len >= right.clock) {
139875
- left.len = max(left.len, right.clock + right.len - left.clock);
138076
+ dels[j - 1] = new DeleteItem(left.clock, max(left.len, right.clock + right.len - left.clock));
139876
138077
  } else {
139877
138078
  if (j < i4) {
139878
138079
  dels[j] = right;
@@ -140095,13 +138296,13 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140095
138296
  const addStackToRestSS = () => {
140096
138297
  for (const item of stack2) {
140097
138298
  const client = item.id.client;
140098
- const unapplicableItems = clientsStructRefs.get(client);
140099
- if (unapplicableItems) {
140100
- unapplicableItems.i--;
140101
- restStructs.clients.set(client, unapplicableItems.refs.slice(unapplicableItems.i));
138299
+ const inapplicableItems = clientsStructRefs.get(client);
138300
+ if (inapplicableItems) {
138301
+ inapplicableItems.i--;
138302
+ restStructs.clients.set(client, inapplicableItems.refs.slice(inapplicableItems.i));
140102
138303
  clientsStructRefs.delete(client);
140103
- unapplicableItems.i = 0;
140104
- unapplicableItems.refs = [];
138304
+ inapplicableItems.i = 0;
138305
+ inapplicableItems.refs = [];
140105
138306
  } else {
140106
138307
  restStructs.clients.set(client, [item]);
140107
138308
  }
@@ -140299,6 +138500,13 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140299
138500
  t = t.right;
140300
138501
  }
140301
138502
  return createRelativePosition(type, null, assoc);
138503
+ }, getItemWithOffset = (store, id2) => {
138504
+ const item = getItem(store, id2);
138505
+ const diff = id2.clock - item.id.clock;
138506
+ return {
138507
+ item,
138508
+ diff
138509
+ };
140302
138510
  }, createAbsolutePositionFromRelativePosition = (rpos, doc3, followUndoneDeletions = true) => {
140303
138511
  const store = doc3.store;
140304
138512
  const rightID = rpos.item;
@@ -140311,7 +138519,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140311
138519
  if (getState(store, rightID.client) <= rightID.clock) {
140312
138520
  return null;
140313
138521
  }
140314
- const res = followUndoneDeletions ? followRedone(store, rightID) : { item: getItem(store, rightID), diff: 0 };
138522
+ const res = followUndoneDeletions ? followRedone(store, rightID) : getItemWithOffset(store, rightID);
140315
138523
  const right = res.item;
140316
138524
  if (!(right instanceof Item4)) {
140317
138525
  return null;
@@ -140537,15 +138745,19 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140537
138745
  event._path = null;
140538
138746
  });
140539
138747
  events.sort((event1, event2) => event1.path.length - event2.path.length);
140540
- callEventHandlerListeners(type._dEH, events, transaction);
138748
+ fs.push(() => {
138749
+ callEventHandlerListeners(type._dEH, events, transaction);
138750
+ });
138751
+ }
138752
+ });
138753
+ fs.push(() => doc3.emit("afterTransaction", [transaction, doc3]));
138754
+ fs.push(() => {
138755
+ if (transaction._needFormattingCleanup) {
138756
+ cleanupYTextAfterTransaction(transaction);
140541
138757
  }
140542
138758
  });
140543
138759
  });
140544
- fs.push(() => doc3.emit("afterTransaction", [transaction, doc3]));
140545
138760
  callAll(fs, []);
140546
- if (transaction._needFormattingCleanup) {
140547
- cleanupYTextAfterTransaction(transaction);
140548
- }
140549
138761
  } finally {
140550
138762
  if (doc3.gc) {
140551
138763
  tryGcDeleteSet(ds, store, doc3.gcFilter);
@@ -140641,7 +138853,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140641
138853
  return result;
140642
138854
  }, clearUndoManagerStackItem = (tr, um, stackItem) => {
140643
138855
  iterateDeletedStructs(tr, stackItem.deletions, (item) => {
140644
- if (item instanceof Item4 && um.scope.some((type) => isParentOf(type, item))) {
138856
+ if (item instanceof Item4 && um.scope.some((type) => type === tr.doc || isParentOf(type, item))) {
140645
138857
  keepItem(item, false);
140646
138858
  }
140647
138859
  });
@@ -140665,13 +138877,13 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140665
138877
  }
140666
138878
  struct = item;
140667
138879
  }
140668
- if (!struct.deleted && scope.some((type) => isParentOf(type, struct))) {
138880
+ if (!struct.deleted && scope.some((type) => type === transaction.doc || isParentOf(type, struct))) {
140669
138881
  itemsToDelete.push(struct);
140670
138882
  }
140671
138883
  }
140672
138884
  });
140673
138885
  iterateDeletedStructs(transaction, stackItem.deletions, (struct) => {
140674
- if (struct instanceof Item4 && scope.some((type) => isParentOf(type, struct)) && !isDeleted(stackItem.insertions, struct.id)) {
138886
+ if (struct instanceof Item4 && scope.some((type) => type === transaction.doc || isParentOf(type, struct)) && !isDeleted(stackItem.insertions, struct.id)) {
140675
138887
  itemsToRedo.add(struct);
140676
138888
  }
140677
138889
  });
@@ -140887,6 +139099,8 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140887
139099
  child = child._item.parent;
140888
139100
  }
140889
139101
  return path2;
139102
+ }, warnPrematureAccess = () => {
139103
+ warn2("Invalid access: Add Yjs type to a document before reading data.");
140890
139104
  }, maxSearchMarker = 80, globalSearchMarkerTimestamp = 0, refreshMarkerTimestamp = (marker) => {
140891
139105
  marker.timestamp = globalSearchMarkerTimestamp++;
140892
139106
  }, overwriteMarker = (marker, p2, index2) => {
@@ -140979,6 +139193,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
140979
139193
  }
140980
139194
  callEventHandlerListeners(changedType._eH, event, transaction);
140981
139195
  }, typeListSlice = (type, start, end) => {
139196
+ type.doc ?? warnPrematureAccess();
140982
139197
  if (start < 0) {
140983
139198
  start = type._length + start;
140984
139199
  }
@@ -141005,6 +139220,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141005
139220
  }
141006
139221
  return cs;
141007
139222
  }, typeListToArray = (type) => {
139223
+ type.doc ?? warnPrematureAccess();
141008
139224
  const cs = [];
141009
139225
  let n = type._start;
141010
139226
  while (n !== null) {
@@ -141033,6 +139249,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141033
139249
  }, typeListForEach = (type, f2) => {
141034
139250
  let index2 = 0;
141035
139251
  let n = type._start;
139252
+ type.doc ?? warnPrematureAccess();
141036
139253
  while (n !== null) {
141037
139254
  if (n.countable && !n.deleted) {
141038
139255
  const c = n.content.getContent();
@@ -141082,6 +139299,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141082
139299
  }
141083
139300
  };
141084
139301
  }, typeListGet = (type, index2) => {
139302
+ type.doc ?? warnPrematureAccess();
141085
139303
  const marker = findMarker(type, index2);
141086
139304
  let n = type._start;
141087
139305
  if (marker !== null) {
@@ -141246,6 +139464,8 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141246
139464
  case Boolean:
141247
139465
  case Array:
141248
139466
  case String:
139467
+ case Date:
139468
+ case BigInt:
141249
139469
  content2 = new ContentAny([value]);
141250
139470
  break;
141251
139471
  case Uint8Array:
@@ -141264,10 +139484,12 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141264
139484
  }
141265
139485
  new Item4(createID(ownClientId, getState(doc3.store, ownClientId)), left, left && left.lastId, null, null, parent, key, content2).integrate(transaction, 0);
141266
139486
  }, typeMapGet = (parent, key) => {
139487
+ parent.doc ?? warnPrematureAccess();
141267
139488
  const val = parent._map.get(key);
141268
139489
  return val !== undefined && !val.deleted ? val.content.getContent()[val.length - 1] : undefined;
141269
139490
  }, typeMapGetAll = (parent) => {
141270
139491
  const res = {};
139492
+ parent.doc ?? warnPrematureAccess();
141271
139493
  parent._map.forEach((value, key) => {
141272
139494
  if (!value.deleted) {
141273
139495
  res[key] = value.content.getContent()[value.length - 1];
@@ -141275,6 +139497,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141275
139497
  });
141276
139498
  return res;
141277
139499
  }, typeMapHas = (parent, key) => {
139500
+ parent.doc ?? warnPrematureAccess();
141278
139501
  const val = parent._map.get(key);
141279
139502
  return val !== undefined && !val.deleted;
141280
139503
  }, typeMapGetAllSnapshot = (parent, snapshot2) => {
@@ -141289,7 +139512,10 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141289
139512
  }
141290
139513
  });
141291
139514
  return res;
141292
- }, createMapIterator = (map6) => iteratorFilter(map6.entries(), (entry) => !entry[1].deleted), YArrayEvent, YArray, readYArray = (_decoder) => new YArray, YMapEvent, YMap, readYMap = (_decoder) => new YMap, equalAttrs = (a, b) => a === b || typeof a === "object" && typeof b === "object" && a && b && equalFlat(a, b), findNextPosition = (transaction, pos, count) => {
139515
+ }, createMapIterator = (type) => {
139516
+ type.doc ?? warnPrematureAccess();
139517
+ return iteratorFilter(type._map.entries(), (entry) => !entry[1].deleted);
139518
+ }, YArrayEvent, YArray, readYArray = (_decoder) => new YArray, YMapEvent, YMap, readYMap = (_decoder) => new YMap, equalAttrs = (a, b) => a === b || typeof a === "object" && typeof b === "object" && a && b && equalFlat(a, b), findNextPosition = (transaction, pos, count) => {
141293
139519
  while (pos.right !== null && count > 0) {
141294
139520
  switch (pos.right.content.constructor) {
141295
139521
  case ContentFormat:
@@ -141594,7 +139820,7 @@ var iterateDeletedStructs = (transaction, ds, f2) => ds.clients.forEach((deletes
141594
139820
  }
141595
139821
  }
141596
139822
  return new ContentJSON(cs);
141597
- }, readContentAny = (decoder) => {
139823
+ }, isDevMode, readContentAny = (decoder) => {
141598
139824
  const len3 = decoder.readLen();
141599
139825
  const cs = [];
141600
139826
  for (let i4 = 0;i4 < len3; i4++) {
@@ -141728,6 +139954,7 @@ var init_yjs = __esm(() => {
141728
139954
  init_logging_node();
141729
139955
  init_time();
141730
139956
  init_object();
139957
+ init_environment();
141731
139958
  generateNewClientId = uint32;
141732
139959
  Doc = class Doc extends ObservableV2 {
141733
139960
  constructor({ guid = uuidv4(), collectionid = null, gc = true, gcFilter = () => true, meta = null, autoLoad = false, shouldLoad = true } = {}) {
@@ -142088,7 +140315,7 @@ var init_yjs = __esm(() => {
142088
140315
  deleteFilter = () => true,
142089
140316
  trackedOrigins = new Set([null]),
142090
140317
  ignoreRemoteMapChanges = false,
142091
- doc: doc3 = isArray2(typeScope) ? typeScope[0].doc : typeScope.doc
140318
+ doc: doc3 = isArray2(typeScope) ? typeScope[0].doc : typeScope instanceof Doc ? typeScope : typeScope.doc
142092
140319
  } = {}) {
142093
140320
  super();
142094
140321
  this.scope = [];
@@ -142107,7 +140334,7 @@ var init_yjs = __esm(() => {
142107
140334
  this.ignoreRemoteMapChanges = ignoreRemoteMapChanges;
142108
140335
  this.captureTimeout = captureTimeout;
142109
140336
  this.afterTransactionHandler = (transaction) => {
142110
- if (!this.captureTransaction(transaction) || !this.scope.some((type) => transaction.changedParentTypes.has(type)) || !this.trackedOrigins.has(transaction.origin) && (!transaction.origin || !this.trackedOrigins.has(transaction.origin.constructor))) {
140337
+ if (!this.captureTransaction(transaction) || !this.scope.some((type) => transaction.changedParentTypes.has(type) || type === this.doc) || !this.trackedOrigins.has(transaction.origin) && (!transaction.origin || !this.trackedOrigins.has(transaction.origin.constructor))) {
142111
140338
  return;
142112
140339
  }
142113
140340
  const undoing = this.undoing;
@@ -142140,7 +140367,7 @@ var init_yjs = __esm(() => {
142140
140367
  this.lastChange = now;
142141
140368
  }
142142
140369
  iterateDeletedStructs(transaction, transaction.deleteSet, (item) => {
142143
- if (item instanceof Item4 && this.scope.some((type) => isParentOf(type, item))) {
140370
+ if (item instanceof Item4 && this.scope.some((type) => type === transaction.doc || isParentOf(type, item))) {
142144
140371
  keepItem(item, true);
142145
140372
  }
142146
140373
  });
@@ -142157,10 +140384,12 @@ var init_yjs = __esm(() => {
142157
140384
  });
142158
140385
  }
142159
140386
  addToScope(ytypes) {
140387
+ const tmpSet = new Set(this.scope);
142160
140388
  ytypes = isArray2(ytypes) ? ytypes : [ytypes];
142161
140389
  ytypes.forEach((ytype) => {
142162
- if (this.scope.every((yt) => yt !== ytype)) {
142163
- if (ytype.doc !== this.doc)
140390
+ if (!tmpSet.has(ytype)) {
140391
+ tmpSet.add(ytype);
140392
+ if (ytype instanceof AbstractType ? ytype.doc !== this.doc : ytype !== this.doc)
142164
140393
  warn2("[yjs#509] Not same Y.Doc");
142165
140394
  this.scope.push(ytype);
142166
140395
  }
@@ -142249,7 +140478,8 @@ var init_yjs = __esm(() => {
142249
140478
  return arr;
142250
140479
  }
142251
140480
  get length() {
142252
- return this._prelimContent === null ? this._length : this._prelimContent.length;
140481
+ this.doc ?? warnPrematureAccess();
140482
+ return this._length;
142253
140483
  }
142254
140484
  _callObserver(transaction, parentSubs) {
142255
140485
  super._callObserver(transaction, parentSubs);
@@ -142347,6 +140577,7 @@ var init_yjs = __esm(() => {
142347
140577
  callTypeObservers(this, transaction, new YMapEvent(this, transaction, parentSubs));
142348
140578
  }
142349
140579
  toJSON() {
140580
+ this.doc ?? warnPrematureAccess();
142350
140581
  const map6 = {};
142351
140582
  this._map.forEach((item, key) => {
142352
140583
  if (!item.deleted) {
@@ -142357,18 +140588,19 @@ var init_yjs = __esm(() => {
142357
140588
  return map6;
142358
140589
  }
142359
140590
  get size() {
142360
- return [...createMapIterator(this._map)].length;
140591
+ return [...createMapIterator(this)].length;
142361
140592
  }
142362
140593
  keys() {
142363
- return iteratorMap(createMapIterator(this._map), (v) => v[0]);
140594
+ return iteratorMap(createMapIterator(this), (v) => v[0]);
142364
140595
  }
142365
140596
  values() {
142366
- return iteratorMap(createMapIterator(this._map), (v) => v[1].content.getContent()[v[1].length - 1]);
140597
+ return iteratorMap(createMapIterator(this), (v) => v[1].content.getContent()[v[1].length - 1]);
142367
140598
  }
142368
140599
  entries() {
142369
- return iteratorMap(createMapIterator(this._map), (v) => [v[0], v[1].content.getContent()[v[1].length - 1]]);
140600
+ return iteratorMap(createMapIterator(this), (v) => [v[0], v[1].content.getContent()[v[1].length - 1]]);
142370
140601
  }
142371
140602
  forEach(f2) {
140603
+ this.doc ?? warnPrematureAccess();
142372
140604
  this._map.forEach((item, key) => {
142373
140605
  if (!item.deleted) {
142374
140606
  f2(item.content.getContent()[item.length - 1], key, this);
@@ -142622,6 +140854,7 @@ var init_yjs = __esm(() => {
142622
140854
  this._hasFormatting = false;
142623
140855
  }
142624
140856
  get length() {
140857
+ this.doc ?? warnPrematureAccess();
142625
140858
  return this._length;
142626
140859
  }
142627
140860
  _integrate(y, item) {
@@ -142650,6 +140883,7 @@ var init_yjs = __esm(() => {
142650
140883
  }
142651
140884
  }
142652
140885
  toString() {
140886
+ this.doc ?? warnPrematureAccess();
142653
140887
  let str = "";
142654
140888
  let n = this._start;
142655
140889
  while (n !== null) {
@@ -142687,6 +140921,7 @@ var init_yjs = __esm(() => {
142687
140921
  }
142688
140922
  }
142689
140923
  toDelta(snapshot2, prevSnapshot, computeYChange) {
140924
+ this.doc ?? warnPrematureAccess();
142690
140925
  const ops = [];
142691
140926
  const currentAttributes = new Map;
142692
140927
  const doc3 = this.doc;
@@ -142869,6 +141104,7 @@ var init_yjs = __esm(() => {
142869
141104
  this._root = root2;
142870
141105
  this._currentNode = root2._start;
142871
141106
  this._firstCall = true;
141107
+ root2.doc ?? warnPrematureAccess();
142872
141108
  }
142873
141109
  [Symbol.iterator]() {
142874
141110
  return this;
@@ -142883,8 +141119,9 @@ var init_yjs = __esm(() => {
142883
141119
  n = type._start;
142884
141120
  } else {
142885
141121
  while (n !== null) {
142886
- if (n.right !== null) {
142887
- n = n.right;
141122
+ const nxt = n.next;
141123
+ if (nxt !== null) {
141124
+ n = nxt;
142888
141125
  break;
142889
141126
  } else if (n.parent === this._root) {
142890
141127
  n = null;
@@ -142926,6 +141163,7 @@ var init_yjs = __esm(() => {
142926
141163
  return el;
142927
141164
  }
142928
141165
  get length() {
141166
+ this.doc ?? warnPrematureAccess();
142929
141167
  return this._prelimContent === null ? this._length : this._prelimContent.length;
142930
141168
  }
142931
141169
  createTreeWalker(filter) {
@@ -143047,11 +141285,9 @@ var init_yjs = __esm(() => {
143047
141285
  const el = new YXmlElement(this.nodeName);
143048
141286
  const attrs = this.getAttributes();
143049
141287
  forEach2(attrs, (value, key) => {
143050
- if (typeof value === "string") {
143051
- el.setAttribute(key, value);
143052
- }
141288
+ el.setAttribute(key, value);
143053
141289
  });
143054
- el.insert(0, this.toArray().map((item) => item instanceof AbstractType ? item.clone() : item));
141290
+ el.insert(0, this.toArray().map((v) => v instanceof AbstractType ? v.clone() : v));
143055
141291
  return el;
143056
141292
  }
143057
141293
  toString() {
@@ -143255,6 +141491,7 @@ var init_yjs = __esm(() => {
143255
141491
  return null;
143256
141492
  }
143257
141493
  };
141494
+ isDevMode = getVariable("node_env") === "development";
143258
141495
  typeRefs = [
143259
141496
  readYArray,
143260
141497
  readYMap,
@@ -143331,8 +141568,7 @@ var init_yjs = __esm(() => {
143331
141568
  if (this.left && this.left.constructor === Item4) {
143332
141569
  this.parent = this.left.parent;
143333
141570
  this.parentSub = this.left.parentSub;
143334
- }
143335
- if (this.right && this.right.constructor === Item4) {
141571
+ } else if (this.right && this.right.constructor === Item4) {
143336
141572
  this.parent = this.right.parent;
143337
141573
  this.parentSub = this.right.parentSub;
143338
141574
  }
@@ -154303,7 +152539,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
154303
152539
  init_remark_gfm_z_sDF4ss_es();
154304
152540
  });
154305
152541
 
154306
- // ../../packages/superdoc/dist/chunks/src-H6TB6E1W.es.js
152542
+ // ../../packages/superdoc/dist/chunks/src-rbevhPXm.es.js
154307
152543
  function deleteProps(obj, propOrProps) {
154308
152544
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
154309
152545
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -154383,7 +152619,7 @@ function prosemirrorToYXmlFragment(doc$12, xmlFragment) {
154383
152619
  }
154384
152620
  function getSuperdocVersion() {
154385
152621
  try {
154386
- return "1.21.0";
152622
+ return "1.21.1";
154387
152623
  } catch {
154388
152624
  return "unknown";
154389
152625
  }
@@ -183999,7 +182235,7 @@ function extractBlockFormatting(node3) {
183999
182235
  ...fontFamily ? { fontFamily } : {},
184000
182236
  ...fontSize !== undefined ? { fontSize } : {},
184001
182237
  ...bold ? { bold } : {},
184002
- ...pProps?.justification ? { alignment: pProps.justification } : {},
182238
+ ...pProps?.alignment ? { alignment: pProps.alignment } : {},
184003
182239
  ...headingLevel ? { headingLevel } : {}
184004
182240
  };
184005
182241
  }
@@ -184071,7 +182307,7 @@ function blocksListWrapper(editor, input2) {
184071
182307
  ordinal: offset$1 + i4,
184072
182308
  nodeId: candidate.nodeId,
184073
182309
  nodeType: candidate.nodeType,
184074
- textPreview: extractTextPreview(candidate.node),
182310
+ textPreview: candidate.node.isTextblock ? candidate.node.textContent || null : null,
184075
182311
  isEmpty: candidate.node.textContent.length === 0,
184076
182312
  ...extractBlockFormatting(candidate.node)
184077
182313
  })),
@@ -196437,20 +194673,21 @@ function toReferenceBlockType(node3) {
196437
194673
  return;
196438
194674
  }
196439
194675
  }
196440
- function resolvePublicReferenceBlockNodeId(node3, occurrenceIndex) {
194676
+ function resolvePublicReferenceBlockNodeId(node3, pos) {
194677
+ const sdBlockId = toId(node3.attrs?.sdBlockId);
194678
+ if (sdBlockId)
194679
+ return sdBlockId;
196441
194680
  const blockType = toReferenceBlockType(node3);
196442
194681
  if (!blockType)
196443
194682
  throw new Error(`Unsupported reference block node type: ${node3.type.name}`);
196444
- return `${REFERENCE_BLOCK_PREFIX[blockType]}-${stableHash2(`${blockType}:${occurrenceIndex}`)}`;
194683
+ return `${REFERENCE_BLOCK_PREFIX[blockType]}-${stableHash2(`${blockType}:${pos}`)}`;
196445
194684
  }
196446
194685
  function findAllIndexNodes(doc$12) {
196447
194686
  const results = [];
196448
- let occurrenceIndex = 0;
196449
194687
  doc$12.descendants((node3, pos) => {
196450
194688
  if (node3.type.name === "documentIndex" || node3.type.name === "index") {
196451
194689
  const commandNodeId = node3.attrs?.sdBlockId;
196452
- const nodeId = resolvePublicReferenceBlockNodeId(node3, occurrenceIndex);
196453
- occurrenceIndex += 1;
194690
+ const nodeId = resolvePublicReferenceBlockNodeId(node3, pos);
196454
194691
  results.push({
196455
194692
  node: node3,
196456
194693
  pos,
@@ -197669,12 +195906,10 @@ function buildCitationDiscoveryItem(doc$12, resolved, evaluatedRevision) {
197669
195906
  }
197670
195907
  function findAllBibliographies(doc$12) {
197671
195908
  const results = [];
197672
- let occurrenceIndex = 0;
197673
195909
  doc$12.descendants((node3, pos) => {
197674
195910
  if (node3.type.name === "bibliography") {
197675
195911
  const commandNodeId = node3.attrs?.sdBlockId;
197676
- const nodeId = resolvePublicReferenceBlockNodeId(node3, occurrenceIndex);
197677
- occurrenceIndex += 1;
195912
+ const nodeId = resolvePublicReferenceBlockNodeId(node3, pos);
197678
195913
  results.push({
197679
195914
  node: node3,
197680
195915
  pos,
@@ -198230,12 +196465,10 @@ function buildCitationInstruction(sourceIds) {
198230
196465
  }
198231
196466
  function findAllAuthorities(doc$12) {
198232
196467
  const results = [];
198233
- let occurrenceIndex = 0;
198234
196468
  doc$12.descendants((node3, pos) => {
198235
196469
  if (node3.type.name === "tableOfAuthorities") {
198236
196470
  const commandNodeId = node3.attrs?.sdBlockId;
198237
- const nodeId = resolvePublicReferenceBlockNodeId(node3, occurrenceIndex);
198238
- occurrenceIndex += 1;
196471
+ const nodeId = resolvePublicReferenceBlockNodeId(node3, pos);
198239
196472
  results.push({
198240
196473
  node: node3,
198241
196474
  pos,
@@ -224492,7 +222725,7 @@ var Node$13 = class Node$14 {
224492
222725
  domAvailabilityCache = false;
224493
222726
  return false;
224494
222727
  }
224495
- }, summaryVersion = "1.21.0", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
222728
+ }, summaryVersion = "1.21.1", nodeKeys, markKeys, transformListsInCopiedContent = (html3) => {
224496
222729
  const container = document.createElement("div");
224497
222730
  container.innerHTML = html3;
224498
222731
  const result = [];
@@ -224797,7 +223030,7 @@ var Node$13 = class Node$14 {
224797
223030
  console.warn("Failed to initialize developer tools:", error);
224798
223031
  }
224799
223032
  }
224800
- }, BLANK_DOCX_BASE64 = `UEsDBBQAAAAIAAAAIQAykW9XXgEAAKUFAAATABwAW0NvbnRlbnRfVHlwZXNdLnhtbFVUCQADMNDOEjDQzhJ1eAsAAQT1AQAABBQAAAC1lMtqwzAQRfeF/oPRNthKuiilxMmij2UbaPoBijRORPVCmrz+vuM4NaWkMeSxMcgz994zQsxwvLEmW0FM2ruSDYo+y8BJr7Sbl+xz+po/sCyhcEoY76BkW0hsPLq9GU63AVJGapdKtkAMj5wnuQArUuEDOKpUPlqBdIxzHoT8EnPgd/3+PZfeITjMsfZgo+EzVGJpMHvZ0O+GJIJJLHtqGuuskokQjJYCqc5XTv1JyfcJBSl3PWmhQ+pRA+MHE+rK/wF73TtdTdQKsomI+CYsdfG1j4orL5eWlMVxmwOcvqq0hFZfu4XoJaREd25N0Vas0K7XxeGWdgaRlJcHaa07IRJuDaTLEzS+3fGASIJrAOydOxHWMPu4GsUv806QinKnYmbg8hitdScE0hqA5js4m2NncyySOifRh0RrJZ4w9s/eqNU5DRwgoj7+6tpEsj57PqhXkgJ1IJvvluzoG1BLAwQKAAAAAACTZE1bAAAAAAAAAAAAAAAACQAcAGRvY1Byb3BzL1VUCQADhhztaIcc7Wh1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgAAAAhACEYr1llAQAAxQIAABAAHABkb2NQcm9wcy9hcHAueG1sVVQJAAMw0M4SMNDOEnV4CwABBPUBAAAEFAAAAJ1STU/DMAy9I/Efqt63dBwmNHlBaAhx4GPSCpyjxG0j0iRKson9e5wVSoEbOdnP9st7TuDqvTfFAUPUzq7LxbwqC7TSKW3bdflc384uyyImYZUwzuK6PGIsr/j5GWyD8xiSxlgQhY3rskvJrxiLssNexDmVLVUaF3qRKA0tc02jJd44ue/RJnZRVUuG7wmtQjXzI2E5MK4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_URI, TAB_LEADER_TO_SEPARATOR, SEPARATOR_TO_TAB_LEADER, DEFAULT_TOC_CONFIG, SWITCH_PATTERN$1, BULLET_FORMATS$1, LOCK_MODE_TO_SDT_LOCK, SNIPPET_PADDING = 30, DUAL_KIND_TYPES, KNOWN_BLOCK_PM_NODE_TYPES, KNOWN_INLINE_PM_NODE_TYPES, MAX_PATTERN_LENGTH = 1024, TOGGLE_MARK_SPECS, CORE_MARK_NAMES, METADATA_MARK_NAMES, CSS_NAMED_COLORS, V3_PREFIX = "text:", V4_PREFIX = "text:v4:", HEADING_STYLE_DEPTH, BULLET_FORMATS, MARK_PRIORITY, remarkProcessor, DEFAULT_UNFLATTEN_LISTS = true, HEADING_STYLE_PATTERN, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, registry, VALID_CREATE_POSITIONS, REF_HANDLERS, STEP_INTERACTION_MATRIX, MATRIX_EXEMPT_OPS, DEFAULT_INLINE_POLICY, CORE_SET_MARK_KEYS, BOOLEAN_INLINE_MARK_KEYS, TEXT_STYLE_KEYS, PRESERVE_RUN_PROPERTIES_META_KEY = "sdPreserveRunPropertiesKeys", CONTENT_CAPABILITIES, INLINE_CAPABILITIES, SDT_LOCK_TO_LOCK_MODE, BODY_LOCATOR2, STUB_WHERE, EMPTY_RESOLUTION, CONTAINER_NODE_TYPES, VALID_EDGE_NODE_TYPES3, FALLBACK_STORE_KEY = "__documentApiComments", STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, PARAGRAPH_NODE_TYPES, TEXT_STYLE_CHARACTER_STYLE_ATTR = "styleId", DIRECT_FORMATTING_MARK_NAMES, ALIGNMENT_TO_JUSTIFICATION, SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, HEADING_PATTERN, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, PRESET_KIND_MAP, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, _setValueDelegate, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES$1, POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART = "word/settings.xml", WORD_DEFAULT_TBL_LOOK, FLAG_TO_OOXML_KEY, INVERTED_FLAGS, XML_KEY_TO_STYLE_OPTION, CLEARED_BORDER_OOXML, TABLE_MARGIN_KEY_GROUPS, TABLE_ADAPTER_DISPATCH, ROW_TARGETED_TABLE_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", RELS_XMLNS2 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, SNAPSHOT_VERSION3 = "sd-diff-snapshot/v1", PAYLOAD_VERSION3 = "sd-diff-payload/v1", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, DEFAULT_LEVEL = 1, SWITCH_PATTERN, TOC_BOOKMARK_PREFIX = "_Toc", DEFAULT_RIGHT_TAB_POS = 9350, TAB_LEADER_MAP, NO_ENTRIES_PLACEHOLDER, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.21.0", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, Editor, EXCLUDED_PLUGIN_KEY_REF_LIST, EXCLUDED_PLUGIN_KEY_REFS, EXCLUDED_PLUGIN_KEY_PREFIXES, TEXT_RANGE_BL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LOCK_MODE_TO_SDT_LOCK, SNIPPET_PADDING = 30, DUAL_KIND_TYPES, KNOWN_BLOCK_PM_NODE_TYPES, KNOWN_INLINE_PM_NODE_TYPES, MAX_PATTERN_LENGTH = 1024, TOGGLE_MARK_SPECS, CORE_MARK_NAMES, METADATA_MARK_NAMES, CSS_NAMED_COLORS, V3_PREFIX = "text:", V4_PREFIX = "text:v4:", HEADING_STYLE_DEPTH, BULLET_FORMATS, MARK_PRIORITY, remarkProcessor, DEFAULT_UNFLATTEN_LISTS = true, HEADING_STYLE_PATTERN, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, registry, VALID_CREATE_POSITIONS, REF_HANDLERS, STEP_INTERACTION_MATRIX, MATRIX_EXEMPT_OPS, DEFAULT_INLINE_POLICY, CORE_SET_MARK_KEYS, BOOLEAN_INLINE_MARK_KEYS, TEXT_STYLE_KEYS, PRESERVE_RUN_PROPERTIES_META_KEY = "sdPreserveRunPropertiesKeys", CONTENT_CAPABILITIES, INLINE_CAPABILITIES, SDT_LOCK_TO_LOCK_MODE, BODY_LOCATOR2, STUB_WHERE, EMPTY_RESOLUTION, CONTAINER_NODE_TYPES, VALID_EDGE_NODE_TYPES3, FALLBACK_STORE_KEY = "__documentApiComments", STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, PARAGRAPH_NODE_TYPES, TEXT_STYLE_CHARACTER_STYLE_ATTR = "styleId", DIRECT_FORMATTING_MARK_NAMES, ALIGNMENT_TO_JUSTIFICATION, SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, HEADING_PATTERN, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, PRESET_KIND_MAP, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, _setValueDelegate, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES$1, POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART = "word/settings.xml", WORD_DEFAULT_TBL_LOOK, FLAG_TO_OOXML_KEY, INVERTED_FLAGS, XML_KEY_TO_STYLE_OPTION, CLEARED_BORDER_OOXML, TABLE_MARGIN_KEY_GROUPS, TABLE_ADAPTER_DISPATCH, ROW_TARGETED_TABLE_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", RELS_XMLNS2 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, HISTORY_UNSAFE_OPS, CANONICAL_COMMENT_IGNORED_KEYS, INITIAL_HASH, ROUND_CONSTANTS, V1_COVERAGE, SNAPSHOT_VERSION3 = "sd-diff-snapshot/v1", PAYLOAD_VERSION3 = "sd-diff-payload/v1", ENGINE_ID = "super-editor", STAGED_CONVERTER_KEYS, DiffServiceError, DEFAULT_LEVEL = 1, SWITCH_PATTERN, TOC_BOOKMARK_PREFIX = "_Toc", DEFAULT_RIGHT_TAB_POS = 9350, TAB_LEADER_MAP, NO_ENTRIES_PLACEHOLDER, TC_LEVEL_MIN = 1, TC_LEVEL_MAX = 9, ALLOWED_WRAP_ATTRS, WRAP_TYPES_SUPPORTING_SIDE, WRAP_TYPES_SUPPORTING_DISTANCES, RELATIVE_HEIGHT_MIN = 0, RELATIVE_HEIGHT_MAX = 4294967295, FORBIDDEN_RAW_PATCH_NAMES, CONTROL_TYPE_SDT_PR_ELEMENTS, DEFAULT_CHECKBOX_SYMBOL_FONT2 = "MS Gothic", DEFAULT_CHECKBOX_CHECKED_HEX2 = "2612", DEFAULT_CHECKBOX_UNCHECKED_HEX2 = "2610", VARIANT_ORDER, KIND_ORDER, HEADER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", DOCUMENT_RELS_PATH2 = "word/_rels/document.xml.rels", HEADER_FILE_PATTERN2, FOOTER_FILE_PATTERN2, SPECIAL_NOTE_TYPES, RESTART_POLICY_TO_OOXML, VALID_DISPLAYS, REFERENCE_BLOCK_PREFIX, CAPTION_STYLE_NAMES, CAPTION_PARAGRAPH_STYLE_ID = "Caption", CAPTION_FORMAT_TO_OOXML, DOCUMENT_STAT_FIELD_TYPES, TOA_LEADER_REVERSE_MAP, EDGE_NODE_TYPES, CONTENT_TYPES_PART_ID = "[Content_Types].xml", CONTENT_TYPES_NS = "http://schemas.openxmlformats.org/package/2006/content-types", contentTypesPartDescriptor, empty_exports, init_empty, CURRENT_APP_VERSION2 = "1.21.1", PIXELS_PER_INCH2 = 96, MAX_HEIGHT_BUFFER_PX = 50, MAX_WIDTH_BUFFER_PX = 20, Editor, EXCLUDED_PLUGIN_KEY_REF_LIST, EXCLUDED_PLUGIN_KEY_REFS, EXCLUDED_PLUGIN_KEY_PREFIXES, TEXT_RANGE_BLOCK_SEP = `
224801
223034
  `, TEXT_RANGE_LEAF_SEP = `
224802
223035
  `, DecorationBridge = class DecorationBridge2 {
224803
223036
  #applied = /* @__PURE__ */ new WeakMap;
@@ -233856,9 +232089,9 @@ var Node$13 = class Node$14 {
233856
232089
  return;
233857
232090
  console.log(...args$1);
233858
232091
  }, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
233859
- var init_src_H6TB6E1W_es = __esm(() => {
232092
+ var init_src_rbevhPXm_es = __esm(() => {
233860
232093
  init_rolldown_runtime_B2q5OVn9_es();
233861
- init_SuperConverter_V_8WDjnK_es();
232094
+ init_SuperConverter_BL6WX_iN_es();
233862
232095
  init_jszip_ChlR43oI_es();
233863
232096
  init_uuid_qzgm05fK_es();
233864
232097
  init_constants_CMPtQbp7_es();
@@ -267174,8 +265407,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
267174
265407
 
267175
265408
  // ../../packages/superdoc/dist/super-editor.es.js
267176
265409
  var init_super_editor_es = __esm(() => {
267177
- init_src_H6TB6E1W_es();
267178
- init_SuperConverter_V_8WDjnK_es();
265410
+ init_src_rbevhPXm_es();
265411
+ init_SuperConverter_BL6WX_iN_es();
267179
265412
  init_jszip_ChlR43oI_es();
267180
265413
  init_xml_js_DLE8mr0n_es();
267181
265414
  init_constants_CMPtQbp7_es();
@@ -318156,7 +316389,7 @@ var require_src = __commonJS((exports) => {
318156
316389
  exports.retry = retry;
318157
316390
  });
318158
316391
 
318159
- // ../../node_modules/.pnpm/@hocuspocus+provider@2.15.3_y-protocols@1.0.7_yjs@13.6.19__yjs@13.6.19/node_modules/@hocuspocus/provider/dist/hocuspocus-provider.esm.js
316392
+ // ../../node_modules/.pnpm/@hocuspocus+provider@2.15.3_y-protocols@1.0.7_yjs@13.6.30__yjs@13.6.30/node_modules/@hocuspocus/provider/dist/hocuspocus-provider.esm.js
318160
316393
  class VarStoragePolyfill3 {
318161
316394
  constructor() {
318162
316395
  this.map = new Map;
@@ -319843,7 +318076,7 @@ var init_broadcastchannel = __esm(() => {
319843
318076
  BC2 = typeof BroadcastChannel === "undefined" ? LocalStoragePolyfill2 : BroadcastChannel;
319844
318077
  });
319845
318078
 
319846
- // ../../node_modules/.pnpm/y-protocols@1.0.7_yjs@13.6.19/node_modules/y-protocols/sync.js
318079
+ // ../../node_modules/.pnpm/y-protocols@1.0.7_yjs@13.6.30/node_modules/y-protocols/sync.js
319847
318080
  var messageYjsSyncStep12 = 0, messageYjsSyncStep22 = 1, messageYjsUpdate2 = 2, writeSyncStep12 = (encoder, doc4) => {
319848
318081
  writeVarUint(encoder, messageYjsSyncStep12);
319849
318082
  const sv = encodeStateVector(doc4);
@@ -319886,7 +318119,7 @@ var init_sync = __esm(() => {
319886
318119
  readUpdate2 = readSyncStep22;
319887
318120
  });
319888
318121
 
319889
- // ../../node_modules/.pnpm/y-protocols@1.0.7_yjs@13.6.19/node_modules/y-protocols/auth.js
318122
+ // ../../node_modules/.pnpm/y-protocols@1.0.7_yjs@13.6.30/node_modules/y-protocols/auth.js
319890
318123
  var messagePermissionDenied = 0, readAuthMessage2 = (decoder, y3, permissionDeniedHandler) => {
319891
318124
  switch (readVarUint(decoder)) {
319892
318125
  case messagePermissionDenied:
@@ -319897,7 +318130,7 @@ var init_auth = __esm(() => {
319897
318130
  init_decoding();
319898
318131
  });
319899
318132
 
319900
- // ../../node_modules/.pnpm/y-protocols@1.0.7_yjs@13.6.19/node_modules/y-protocols/awareness.js
318133
+ // ../../node_modules/.pnpm/y-protocols@1.0.7_yjs@13.6.30/node_modules/y-protocols/awareness.js
319901
318134
  var outdatedTimeout2 = 30000, Awareness2, removeAwarenessStates2 = (awareness, clients, origin) => {
319902
318135
  const removed = [];
319903
318136
  for (let i4 = 0;i4 < clients.length; i4++) {
@@ -320086,7 +318319,7 @@ var init_url = __esm(() => {
320086
318319
  init_object();
320087
318320
  });
320088
318321
 
320089
- // ../../node_modules/.pnpm/y-websocket@3.0.0_yjs@13.6.19/node_modules/y-websocket/src/y-websocket.js
318322
+ // ../../node_modules/.pnpm/y-websocket@3.0.0_yjs@13.6.30/node_modules/y-websocket/src/y-websocket.js
320090
318323
  var messageSync = 0, messageQueryAwareness = 3, messageAwareness = 1, messageAuth = 2, messageHandlers, messageReconnectTimeout = 30000, permissionDeniedHandler = (provider, reason2) => console.warn(`Permission denied to access ${provider.url}.
320091
318324
  ${reason2}`), readMessage = (provider, buf, emitSynced) => {
320092
318325
  const decoder = createDecoder(buf);
@@ -321689,7 +319922,7 @@ function validateNodeAddress(value2, path2 = "address") {
321689
319922
  }
321690
319923
  throw new CliError("VALIDATION_ERROR", `${path2}.kind must be one of: block, inline.`);
321691
319924
  }
321692
- function validateListItemAddress3(value2, path2 = "target") {
319925
+ function validateListItemAddress(value2, path2 = "target") {
321693
319926
  const address2 = validateNodeAddress(value2, path2);
321694
319927
  if (address2.kind !== "block" || address2.nodeType !== "listItem") {
321695
319928
  throw new CliError("VALIDATION_ERROR", `${path2} must be a block listItem address.`);
@@ -321714,7 +319947,7 @@ function validateListsListQuery(value2, path2 = "query") {
321714
319947
  }
321715
319948
  if (obj.kind != null) {
321716
319949
  const kind2 = expectString(obj.kind, `${path2}.kind`);
321717
- if (!LIST_KINDS3.has(kind2)) {
319950
+ if (!LIST_KINDS2.has(kind2)) {
321718
319951
  throw new CliError("VALIDATION_ERROR", `${path2}.kind must be "ordered" or "bullet".`);
321719
319952
  }
321720
319953
  query3.kind = kind2;
@@ -321791,7 +320024,7 @@ function validateQuerySelect(value2, path2) {
321791
320024
  if (type2 === "node") {
321792
320025
  expectOnlyKeys(obj, ["type", "nodeType", "kind"], path2);
321793
320026
  const nodeType2 = obj.nodeType != null ? String(obj.nodeType) : undefined;
321794
- if (obj.kind != null && !NODE_KINDS3.has(obj.kind)) {
320027
+ if (obj.kind != null && !NODE_KINDS2.has(obj.kind)) {
321795
320028
  throw new CliError("VALIDATION_ERROR", `${path2}.kind must be "block" or "inline".`);
321796
320029
  }
321797
320030
  return {
@@ -321830,16 +320063,16 @@ function validateQuery(value2, path2 = "query") {
321830
320063
  }
321831
320064
  return query3;
321832
320065
  }
321833
- var NODE_TYPES3, BLOCK_NODE_TYPES3, NODE_KINDS3, LIST_KINDS3, LIST_INSERT_POSITIONS3;
320066
+ var NODE_TYPES3, BLOCK_NODE_TYPES3, NODE_KINDS2, LIST_KINDS2, LIST_INSERT_POSITIONS2;
321834
320067
  var init_validate = __esm(() => {
321835
320068
  init_errors();
321836
320069
  init_guards();
321837
320070
  init_src();
321838
320071
  NODE_TYPES3 = new Set(NODE_TYPES);
321839
320072
  BLOCK_NODE_TYPES3 = new Set(BLOCK_NODE_TYPES);
321840
- NODE_KINDS3 = new Set(NODE_KINDS);
321841
- LIST_KINDS3 = new Set(LIST_KINDS);
321842
- LIST_INSERT_POSITIONS3 = new Set(LIST_INSERT_POSITIONS);
320073
+ NODE_KINDS2 = new Set(NODE_KINDS);
320074
+ LIST_KINDS2 = new Set(LIST_KINDS);
320075
+ LIST_INSERT_POSITIONS2 = new Set(LIST_INSERT_POSITIONS);
321843
320076
  });
321844
320077
 
321845
320078
  // src/lib/find-query.ts
@@ -325437,7 +323670,7 @@ async function resolveListItemAddressPayload(parsed, baseName = "target") {
325437
323670
  const payload = await resolveJsonInput(parsed, baseName);
325438
323671
  if (!payload)
325439
323672
  return;
325440
- return validateListItemAddress3(payload, baseName);
323673
+ return validateListItemAddress(payload, baseName);
325441
323674
  }
325442
323675
  async function requireListItemAddressPayload(parsed, commandName, baseName = "target") {
325443
323676
  const payload = await resolveListItemAddressPayload(parsed, baseName);