@rhc-office/sdk 6.6.396 → 6.6.398

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- var X = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.COMPACT = "compact", t.HIDE = "none", t))(X || {});
2
- const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGITAL_SIGN_ENVIRONMENT__", A = {
1
+ var ee = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.COMPACT = "compact", t.HIDE = "none", t))(ee || {});
2
+ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGITAL_SIGN_ENVIRONMENT__", A = {
3
3
  defaults: {
4
4
  bjca: {
5
5
  pin: ""
6
6
  },
7
7
  deviceType: "client",
8
- edgePosition: x,
8
+ edgePosition: K,
9
9
  plugin: {
10
10
  pin: "",
11
11
  usbKeyType: 14
12
12
  },
13
- rsaMode: K,
14
- signatureType: V
13
+ rsaMode: z,
14
+ signatureType: q
15
15
  },
16
16
  signServer: {
17
17
  authSource: "Password",
@@ -25,7 +25,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
25
25
  usbKeyType: 14
26
26
  }
27
27
  }
28
- }, q = (t) => ({
28
+ }, G = (t) => ({
29
29
  bjca: {
30
30
  pin: t.bjca.pin
31
31
  },
@@ -37,7 +37,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
37
37
  },
38
38
  rsaMode: t.rsaMode,
39
39
  signatureType: t.signatureType
40
- }), z = (t) => ({
40
+ }), H = (t) => ({
41
41
  authSource: t.authSource,
42
42
  defaultLogin: t.defaultLogin,
43
43
  defaultPassword: t.defaultPassword,
@@ -49,8 +49,8 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
49
49
  usbKeyType: t.usbKey.usbKeyType
50
50
  }
51
51
  }), m = (t) => ({
52
- defaults: q(t.defaults),
53
- signServer: z(t.signServer)
52
+ defaults: G(t.defaults),
53
+ signServer: H(t.signServer)
54
54
  }), E = (t) => ({
55
55
  defaults: t.defaults ? {
56
56
  ...t.defaults,
@@ -61,7 +61,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
61
61
  ...t.signServer,
62
62
  usbKey: t.signServer.usbKey ? { ...t.signServer.usbKey } : void 0
63
63
  } : void 0
64
- }), J = (t, n) => n ? {
64
+ }), te = (t, n) => n ? {
65
65
  bjca: {
66
66
  pin: n.bjca?.pin ?? t.bjca.pin
67
67
  },
@@ -73,7 +73,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
73
73
  },
74
74
  rsaMode: n.rsaMode ?? t.rsaMode,
75
75
  signatureType: n.signatureType ?? t.signatureType
76
- } : q(t), Z = (t, n) => n ? {
76
+ } : G(t), ne = (t, n) => n ? {
77
77
  authSource: n.authSource ?? t.authSource,
78
78
  defaultLogin: n.defaultLogin ?? t.defaultLogin,
79
79
  defaultPassword: n.defaultPassword ?? t.defaultPassword,
@@ -84,10 +84,10 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
84
84
  checkCertificateBinding: n.usbKey?.checkCertificateBinding ?? t.usbKey.checkCertificateBinding,
85
85
  usbKeyType: n.usbKey?.usbKeyType ?? t.usbKey.usbKeyType
86
86
  }
87
- } : z(t), G = (t, n) => ({
88
- defaults: J(t.defaults, n.defaults),
89
- signServer: Z(t.signServer, n.signServer)
90
- }), ee = (t, n) => {
87
+ } : H(t), Q = (t, n) => ({
88
+ defaults: te(t.defaults, n.defaults),
89
+ signServer: ne(t.signServer, n.signServer)
90
+ }), ie = (t, n) => {
91
91
  const e = t.defaults?.bjca || n.defaults?.bjca ? {
92
92
  ...t.defaults?.bjca,
93
93
  ...n.defaults?.bjca
@@ -111,36 +111,36 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
111
111
  ...r ? { usbKey: r } : {}
112
112
  } : void 0
113
113
  };
114
- }, te = () => globalThis, p = () => {
115
- const t = te();
114
+ }, re = () => globalThis, p = () => {
115
+ const t = re();
116
116
  return t[f] || (t[f] = {
117
117
  current: m(A),
118
118
  defaults: m(A),
119
119
  overrides: {}
120
120
  }), t[f];
121
- }, ft = () => p().current, Rt = () => {
121
+ }, yt = () => p().current, vt = () => {
122
122
  const t = p();
123
123
  return {
124
124
  current: m(t.current),
125
125
  defaults: m(t.defaults),
126
126
  overrides: E(t.overrides)
127
127
  };
128
- }, kt = (t) => {
128
+ }, Et = (t) => {
129
129
  const n = p();
130
- return n.defaults = m(t), n.current = G(n.defaults, n.overrides), n.current;
131
- }, Tt = (t) => {
130
+ return n.defaults = m(t), n.current = Q(n.defaults, n.overrides), n.current;
131
+ }, At = (t) => {
132
132
  const n = p();
133
133
  return n.current = m(t), n.overrides = E(t), n.current;
134
- }, yt = (t) => {
134
+ }, Ct = (t) => {
135
135
  const n = p();
136
- return n.overrides = ee(n.overrides, E(t)), n.current = G(n.current, t), n.current;
137
- }, vt = (t) => {
136
+ return n.overrides = ie(n.overrides, E(t)), n.current = Q(n.current, t), n.current;
137
+ }, Pt = (t) => {
138
138
  const n = p();
139
139
  return t && (n.defaults = m(t)), n.overrides = {}, n.current = m(n.defaults), n.current;
140
- }, Et = {
141
- EDGE_POSITION: x,
142
- RSA_MODE: K,
143
- SIGNATURE_TYPE: V
140
+ }, Dt = {
141
+ EDGE_POSITION: K,
142
+ RSA_MODE: z,
143
+ SIGNATURE_TYPE: q
144
144
  }, R = (t) => {
145
145
  if (t.length !== 0)
146
146
  return t.length === 1 ? t[0] : t;
@@ -166,8 +166,8 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
166
166
  if (a.kind === "callbackQuery") {
167
167
  const l = s.find((h) => typeof h == "function"), c = s.filter((h) => typeof h != "function");
168
168
  e.bridge.request(t, o, R(c)).then((h) => {
169
- const $ = a.mapCallbackResult?.(h) ?? [h];
170
- l?.(...$);
169
+ const Z = a.mapCallbackResult?.(h) ?? [h];
170
+ l?.(...Z);
171
171
  }).catch(e.onAsyncError);
172
172
  return;
173
173
  }
@@ -182,7 +182,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
182
182
  };
183
183
  }
184
184
  }
185
- ), ne = (t) => typeof t == "object" && t !== null && !Array.isArray(t) && "id" in t, C = (t) => t.annotations?.filter(ne).map((n) => ({ ...n })) ?? [], ie = (t) => {
185
+ ), ae = (t) => typeof t == "object" && t !== null && !Array.isArray(t) && "id" in t, C = (t) => t.annotations?.filter(ae).map((n) => ({ ...n })) ?? [], se = (t) => {
186
186
  switch (t) {
187
187
  case "select":
188
188
  case "pen":
@@ -202,7 +202,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
202
202
  default:
203
203
  return "none";
204
204
  }
205
- }, re = {
205
+ }, oe = {
206
206
  addAnnotationEventCallback: {
207
207
  kind: "callbackRegister",
208
208
  callback: (t, n) => {
@@ -216,7 +216,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
216
216
  },
217
217
  getAnnotationMode: {
218
218
  kind: "stateGetter",
219
- state: (t) => ie(t.annotationMode)
219
+ state: (t) => se(t.annotationMode)
220
220
  },
221
221
  getAnnotations: {
222
222
  kind: "stateGetter",
@@ -244,16 +244,16 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
244
244
  setAnnotationPenWidth: { kind: "command" },
245
245
  setAnnotationPenStyle: { kind: "command" }
246
246
  };
247
- class ae {
247
+ class de {
248
248
  constructor(n) {
249
249
  this.openAnnotationView = (e) => this.adapter.openAnnotationView(e), this.closeAnnotationView = () => this.adapter.closeAnnotationView(), this.saveAnnotations = (e) => this.adapter.saveAnnotations(e), this.clearAnnotations = () => this.adapter.clearAnnotations(), this.undoAnnotation = () => this.adapter.undoAnnotation(), this.redoAnnotation = () => this.adapter.redoAnnotation(), this.canUndoAnnotation = () => this.adapter.canUndoAnnotation(), this.canRedoAnnotation = () => this.adapter.canRedoAnnotation(), this.selectAnnotationTool = (e, i) => this.adapter.selectAnnotationTool(e, i), this.selectAnnotationStamp = (e) => this.adapter.selectAnnotationStamp(e), this.openTextNoteCalloutDialog = (e) => this.adapter.openTextNoteCalloutDialog(e), this.getCustomStamps = () => this.adapter.getCustomStamps(), this.addCustomTextStamp = (e) => this.adapter.addCustomTextStamp(e), this.addCustomImageStamp = (e) => this.adapter.addCustomImageStamp(e), this.setAnnotationPenColor = (e) => this.adapter.setAnnotationPenColor(e), this.setAnnotationPenWidth = (e) => this.adapter.setAnnotationPenWidth(e), this.setAnnotationPenStyle = (e) => this.adapter.setAnnotationPenStyle(e), this.isInAnnotationMode = () => this.adapter.isInAnnotationMode(), this.getAnnotationMode = () => this.adapter.getAnnotationMode(), this.getAnnotations = () => this.adapter.getAnnotations(), this.getAnnotationsCount = () => this.adapter.getAnnotationsCount(), this.addAnnotationEventCallback = (e) => this.adapter.addAnnotationEventCallback(e), this.adapter = u(
250
250
  "annotation",
251
- re,
251
+ oe,
252
252
  n
253
253
  );
254
254
  }
255
255
  }
256
- const se = {
256
+ const ue = {
257
257
  addAttachmentChangedCallback: {
258
258
  kind: "callbackRegister",
259
259
  callback: (t, n) => {
@@ -266,7 +266,7 @@ const se = {
266
266
  deleteAttachment: { kind: "command", returnsResult: !0 },
267
267
  getAttachmentFile: { kind: "query" },
268
268
  getAttachments: { kind: "query" }
269
- }, oe = async (t) => {
269
+ }, le = async (t) => {
270
270
  if (t instanceof Uint8Array)
271
271
  return t.slice();
272
272
  if (t instanceof ArrayBuffer)
@@ -276,16 +276,16 @@ const se = {
276
276
  return new Uint8Array(n.buffer.slice(n.byteOffset, n.byteOffset + n.byteLength));
277
277
  }
278
278
  return new Uint8Array(await t.arrayBuffer());
279
- }, de = (t, n) => {
279
+ }, ce = (t, n) => {
280
280
  const e = { ...n }, i = typeof File < "u" && t instanceof File, r = typeof Blob < "u" && t instanceof Blob;
281
281
  if (i ? (e.fileName = e.fileName || t.name, e.mimeType = e.mimeType || t.type) : r && (e.fileName = e.fileName || "attachment.bin", e.mimeType = e.mimeType || t.type), e.fileName = typeof e.fileName == "string" ? e.fileName.trim() : "", !e.fileName)
282
282
  throw new Error("Attachment fileName is required for binary attachment input.");
283
283
  return e.mimeType = typeof e.mimeType == "string" ? e.mimeType.trim() : "", e.mimeType = e.mimeType || void 0, e;
284
284
  };
285
- class ue {
285
+ class he {
286
286
  constructor(n) {
287
287
  this.getAttachments = () => this.adapter.getAttachments(), this.getAttachmentFile = (e) => this.adapter.getAttachmentFile(e), this.addAttachment = async (e, i) => {
288
- const r = await oe(e), a = de(e, i);
288
+ const r = await le(e), a = ce(e, i);
289
289
  if (r.byteLength === 0)
290
290
  throw new Error("Attachment content cannot be empty.");
291
291
  if (typeof a.maxSizeBytes == "number" && r.byteLength > a.maxSizeBytes)
@@ -296,21 +296,21 @@ class ue {
296
296
  });
297
297
  }, this.deleteAttachment = (e, i) => this.adapter.deleteAttachment(e, i), this.clearAttachments = (e) => this.adapter.clearAttachments(e), this.addAttachmentChangedCallback = (e) => this.adapter.addAttachmentChangedCallback(e), this.adapter = u(
298
298
  "attachment",
299
- se,
299
+ ue,
300
300
  n
301
301
  ), this.addAttachmentCommand = this.adapter.addAttachment;
302
302
  }
303
303
  }
304
- const le = {
304
+ const me = {
305
305
  configSecurityProvider: { kind: "command" },
306
306
  getSecurityProviders: { kind: "query" }
307
307
  };
308
- class ce {
308
+ class ge {
309
309
  constructor(n) {
310
- this.configSecurityProvider = (e) => this.adapter.configSecurityProvider(e), this.getSecurityProviders = () => this.adapter.getSecurityProviders(), this.adapter = u("crypto", le, n);
310
+ this.configSecurityProvider = (e) => this.adapter.configSecurityProvider(e), this.getSecurityProviders = () => this.adapter.getSecurityProviders(), this.adapter = u("crypto", me, n);
311
311
  }
312
312
  }
313
- const P = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], he = {
313
+ const P = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], pe = {
314
314
  addDigitalSignatureRetrieveCallback: {
315
315
  kind: "callbackRegister",
316
316
  callback: (t, n) => {
@@ -356,16 +356,16 @@ const P = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], he = {
356
356
  enableDigitalSignatureInfoView: { kind: "command" },
357
357
  enableDigitalSignatureRevocation: { kind: "command" }
358
358
  };
359
- class me {
359
+ class be {
360
360
  constructor(n) {
361
361
  this.addDigitalSignatureRetrieveCallback = (e) => this.adapter.addDigitalSignatureRetrieveCallback(e), this.addDigitalSignatureParseCallback = (e) => this.adapter.addDigitalSignatureParseCallback(e), this.setCryptoProvider = (e, i, r) => this.adapter.setCryptoProvider(e, i, r), this.setSealSource = (e) => this.adapter.setSealSource(e), this.setDefaultStampPassword = (e) => this.adapter.setDefaultStampPassword(e), this.setDefaultSealPassword = (e) => this.adapter.setDefaultSealPassword(e), this.setDefaultKeystorePassword = (e) => this.adapter.setDefaultKeystorePassword(e), this.setDefaultUSBKeyPassword = (e) => this.adapter.setDefaultUSBKeyPassword(e), this.addDigitalSignCallback = (e) => this.adapter.addDigitalSignCallback(e), this.setupExternalSealServer = (e) => this.adapter.setupExternalSealServer(e), this.setDigitalSignOptions = (e) => this.adapter.setDigitalSignOptions(e), this.setExternalDigitalSignOptions = (e) => this.adapter.setExternalDigitalSignOptions(e), this.setPDFDigitalSignCaptionOptions = (e) => this.adapter.setPDFDigitalSignCaptionOptions(e), this.addDigitalSignature = (e, i) => this.adapter.addDigitalSignature(e, i), this.addDigitalSignatureBySelectedSearchHighlight = (e) => this.adapter.addDigitalSignatureBySelectedSearchHighlight(e), this.listDigitalSignatures = (e) => this.adapter.listDigitalSignatures(e), this.getDigitalSignatures = () => this.adapter.getDigitalSignatures(), this.getDigitalSignaturesCount = () => this.adapter.getDigitalSignaturesCount(), this.enableDigitalSignatureInfoView = (e) => this.adapter.enableDigitalSignatureInfoView(e), this.enableDigitalSignatureRevocation = (e) => this.adapter.enableDigitalSignatureRevocation(e), this.adapter = u(
362
362
  "digitalSign",
363
- he,
363
+ pe,
364
364
  n
365
365
  );
366
366
  }
367
367
  }
368
- const ge = "rhc-office.editor-adapter", pe = 1, be = "__RHC_OFFICE_EDITOR_ADAPTER__", D = "rhcOfficeAdapterReady", M = "rhcOfficeAdapterEvent", H = "data-rhc-office-reader-id", Se = {
368
+ const Se = "rhc-office.editor-adapter", fe = 1, Re = "__RHC_OFFICE_EDITOR_ADAPTER__", D = "rhcOfficeAdapterReady", M = "rhcOfficeAdapterEvent", j = "data-rhc-office-reader-id", ke = {
369
369
  addDocumentOpenedCallback: {
370
370
  kind: "callbackRegister",
371
371
  callback: (t, n) => {
@@ -418,7 +418,7 @@ const ge = "rhc-office.editor-adapter", pe = 1, be = "__RHC_OFFICE_EDITOR_ADAPTE
418
418
  print: { kind: "command" },
419
419
  createPreview: { kind: "command" }
420
420
  };
421
- class fe {
421
+ class Te {
422
422
  constructor(n) {
423
423
  this.context = n, this.addDocumentOpenedCallback = (e) => this.adapter.addDocumentOpenedCallback(e), this.addDocumentSavedCallback = (e) => this.adapter.addDocumentSavedCallback(e), this.addDocumentClosedCallback = (e) => this.adapter.addDocumentClosedCallback(e), this.openPDFDocument = (e, i) => this.adapter.openPDFDocument(e, i), this.openPdfDocument = (e, i) => this.adapter.openPdfDocument(e, i), this.openOFDDocument = (e, i) => this.adapter.openOFDDocument(e, i), this.openOfdDocument = (e, i) => this.adapter.openOfdDocument(e, i), this.openOfficeDocument = (e, i) => this.adapter.openOfficeDocument(e, i), this.openImageDocument = (e, i) => this.adapter.openImageDocument(e, i), this.openTextDocument = (e, i) => this.adapter.openTextDocument(e, i), this.openFromLocalStorage = () => this.adapter.openFromLocalStorage(), this.setUploadUrl = (e, i) => this.adapter.setUploadUrl(e, i), this.save = (e, i, r) => this.adapter.save(e, i, r), this.saveAs = (e) => {
424
424
  const i = this.context.bridge.getReaderId();
@@ -430,41 +430,41 @@ class fe {
430
430
  error: "Reader is not mounted or does not expose saveAs."
431
431
  });
432
432
  const r = document.querySelector(
433
- `[${H}="${i}"]`
433
+ `[${j}="${i}"]`
434
434
  );
435
435
  return typeof r?.saveAs == "function" ? r.saveAs(e) : this.adapter.saveAs(e);
436
436
  }, this.getDocumentContent = (e) => this.adapter.getDocumentContent(e), this.getCurrentDocument = () => this.adapter.getCurrentDocument(), this.getOpenDocuments = () => this.adapter.getOpenDocuments(), this.activateDocument = (e) => this.adapter.activateDocument(e), this.closeDocumentBySessionId = (e, i) => this.adapter.closeDocumentBySessionId(e, i), this.closeDocument = (e, i, r) => this.adapter.closeDocument(e, i, r), this.isDocumentOpened = () => this.adapter.isDocumentOpened(), this.isDocumentModified = () => this.adapter.isDocumentModified(), this.print = () => this.adapter.print(), this.createPreview = (e, i) => this.adapter.createPreview(e, i), this.adapter = u(
437
437
  "document",
438
- Se,
438
+ ke,
439
439
  n
440
440
  );
441
441
  }
442
442
  }
443
- const Re = {
443
+ const ye = {
444
444
  clearFind: { kind: "command" },
445
445
  findNext: { kind: "command" },
446
446
  findPrevious: { kind: "command" }
447
447
  };
448
- class ke {
448
+ class ve {
449
449
  constructor(n) {
450
- this.clearFind = () => this.adapter.clearFind(), this.findNext = (e) => this.adapter.findNext(e), this.findPrevious = (e) => this.adapter.findPrevious(e), this.adapter = u("find", Re, n);
450
+ this.clearFind = () => this.adapter.clearFind(), this.findNext = (e) => this.adapter.findNext(e), this.findPrevious = (e) => this.adapter.findPrevious(e), this.adapter = u("find", ye, n);
451
451
  }
452
452
  }
453
- const Te = {
453
+ const Ee = {
454
454
  configFileUpload: { kind: "command" },
455
455
  setHttpHeaders: { kind: "command" },
456
456
  setHttpFormFields: { kind: "command" }
457
457
  };
458
- class ye {
458
+ class Ae {
459
459
  constructor(n) {
460
460
  this.configFileUpload = (e) => this.adapter.configFileUpload(e), this.setHttpHeaders = (e) => this.adapter.setHttpHeaders(e), this.setHttpFormFields = (e) => this.adapter.setHttpFormFields(e), this.adapter = u(
461
461
  "networking",
462
- Te,
462
+ Ee,
463
463
  n
464
464
  );
465
465
  }
466
466
  }
467
- const ve = () => ({
467
+ const Ce = () => ({
468
468
  clearContent: { kind: "command", returnsResult: !0 },
469
469
  commit: { kind: "command", returnsResult: !0 },
470
470
  deletePages: { kind: "command", returnsResult: !0 },
@@ -479,17 +479,17 @@ const ve = () => ({
479
479
  rotateLeft: { kind: "command", returnsResult: !0 },
480
480
  rotateRight: { kind: "command", returnsResult: !0 },
481
481
  undo: { kind: "command", returnsResult: !0 }
482
- }), Ee = (t) => t instanceof Uint8Array ? t : new Uint8Array(t);
483
- class Ae {
482
+ }), Pe = (t) => t instanceof Uint8Array ? t : new Uint8Array(t);
483
+ class De {
484
484
  constructor(n) {
485
- this.getSnapshot = () => this.adapter.getSnapshot(), this.execute = (e) => this.adapter.execute(e), this.newPage = (e, i) => this.adapter.newPage(e, i), this.deletePages = (e) => this.adapter.deletePages(e), this.duplicatePages = (e, i) => this.adapter.duplicatePages(e, i), this.rotateLeft = (e) => this.adapter.rotateLeft(e), this.rotateRight = (e) => this.adapter.rotateRight(e), this.clearContent = (e) => this.adapter.clearContent(e), this.moveBefore = (e, i) => this.adapter.moveBefore(e, i), this.moveAfter = (e, i) => this.adapter.moveAfter(e, i), this.importDocument = (e, i) => this.adapter.importDocument(Ee(e), i), this.extractPages = (e, i) => this.adapter.extractPages(e, i), this.undo = () => this.adapter.undo(), this.commit = () => this.adapter.commit(), this.adapter = u(
485
+ this.getSnapshot = () => this.adapter.getSnapshot(), this.execute = (e) => this.adapter.execute(e), this.newPage = (e, i) => this.adapter.newPage(e, i), this.deletePages = (e) => this.adapter.deletePages(e), this.duplicatePages = (e, i) => this.adapter.duplicatePages(e, i), this.rotateLeft = (e) => this.adapter.rotateLeft(e), this.rotateRight = (e) => this.adapter.rotateRight(e), this.clearContent = (e) => this.adapter.clearContent(e), this.moveBefore = (e, i) => this.adapter.moveBefore(e, i), this.moveAfter = (e, i) => this.adapter.moveAfter(e, i), this.importDocument = (e, i) => this.adapter.importDocument(Pe(e), i), this.extractPages = (e, i) => this.adapter.extractPages(e, i), this.undo = () => this.adapter.undo(), this.commit = () => this.adapter.commit(), this.adapter = u(
486
486
  "pageArrange",
487
- ve(),
487
+ Ce(),
488
488
  n
489
489
  );
490
490
  }
491
491
  }
492
- const Ce = (t) => ({
492
+ const Me = (t) => ({
493
493
  addPageChangeCallback: {
494
494
  kind: "callbackRegister",
495
495
  callback: (n, e) => {
@@ -539,16 +539,16 @@ const Ce = (t) => ({
539
539
  gotoPreviousPage: { kind: "command" },
540
540
  rotatePage: { kind: "command" }
541
541
  });
542
- class Pe {
542
+ class we {
543
543
  constructor(n) {
544
544
  this.addPageChangeCallback = (e) => this.adapter.addPageChangeCallback(e), this.addPageModeChangeCallback = (e) => this.adapter.addPageModeChangeCallback(e), this.getPageCount = (e) => this.adapter.getPageCount(e), this.getPageIndex = (e) => this.adapter.getPageIndex(e), this.setSinglePageViewMode = () => this.adapter.setSinglePageViewMode(), this.setTwoPagesViewMode = () => this.adapter.setTwoPagesViewMode(), this.setPageScrollVertical = () => this.adapter.setPageScrollVertical(), this.setPageScrollHorizontal = () => this.adapter.setPageScrollHorizontal(), this.setPageCursorPanDrag = () => this.adapter.setPageCursorPanDrag(), this.setPageCursorTextSelect = () => this.adapter.setPageCursorTextSelect(), this.rotateCW = () => this.adapter.rotateCW(), this.rotateCCW = () => this.adapter.rotateCCW(), this.autoFitPage = () => this.adapter.autoFitPage(), this.fitPageSize = () => this.adapter.fitPageSize(), this.fitPageWidth = () => this.adapter.fitPageWidth(), this.fitPageHeight = () => this.adapter.fitPageHeight(), this.increasePageScale = () => this.adapter.increasePageScale(), this.decreasePageScale = () => this.adapter.decreasePageScale(), this.setPageScale = (e) => this.adapter.setPageScale(e), this.setPageBlendColor = (e, i, r, a) => this.adapter.setPageBlendColor(e, i, r, a), this.gotoPage = (e, i, r) => this.adapter.gotoPage(e, i, r), this.gotoNextPage = () => this.adapter.gotoNextPage(), this.gotoPreviousPage = () => this.adapter.gotoPreviousPage(), this.rotatePage = (e) => this.adapter.rotatePage(e), this.adapter = u(
545
545
  "page",
546
- Ce(n),
546
+ Me(n),
547
547
  n
548
548
  );
549
549
  }
550
550
  }
551
- const De = {
551
+ const Ie = {
552
552
  open: { kind: "command" },
553
553
  setFormFieldValue: { kind: "command" },
554
554
  setFormFieldReadonly: { kind: "command" },
@@ -565,28 +565,28 @@ const De = {
565
565
  mapCallbackResult: (t) => [Array.isArray(t) ? t : []]
566
566
  }
567
567
  };
568
- class Me {
568
+ class Oe {
569
569
  constructor(n) {
570
570
  this.open = () => this.adapter.open(), this.setFormFieldValue = (e, i) => this.adapter.setFormFieldValue(e, i), this.setFormFieldReadonly = (e, i) => this.adapter.setFormFieldReadonly(e, i), this.commit = (e) => this.adapter.commit(e), this.clear = (e) => this.adapter.clear(e), this.toKeyValue = (e) => this.adapter.toKeyValue(e), this.adapter = u(
571
571
  "pdfFormFiller",
572
- De,
572
+ Ie,
573
573
  n
574
574
  );
575
575
  }
576
576
  }
577
- const we = /\s*,\s*/, Ie = /\s*-\s*/, k = (t) => {
577
+ const _e = /\s*,\s*/, Le = /\s*-\s*/, k = (t) => {
578
578
  const n = Number.parseInt(t.trim(), 10);
579
579
  return !Number.isFinite(n) || n <= 0 ? null : n;
580
- }, Oe = (t) => {
581
- const n = t.split(Ie);
580
+ }, Fe = (t) => {
581
+ const n = t.split(Le);
582
582
  if (n.length === 1) {
583
583
  const r = k(n[0] ?? "");
584
584
  return r ? [r] : [];
585
585
  }
586
586
  const e = k(n[0] ?? ""), i = k(n[1] ?? "");
587
587
  return !e || !i || i < e ? [] : Array.from({ length: i - e + 1 }, (r, a) => e + a);
588
- }, _e = (t) => t ? t.split(we).flatMap((e) => Oe(e)).filter((e, i, r) => r.indexOf(e) === i) : [];
589
- class Le {
588
+ }, Ne = (t) => t ? t.split(_e).flatMap((e) => Fe(e)).filter((e, i, r) => r.indexOf(e) === i) : [];
589
+ class Ue {
590
590
  constructor(n, e, i) {
591
591
  this.setFieldName = (r) => {
592
592
  this.key = r;
@@ -597,7 +597,7 @@ class Le {
597
597
  }, this.key = n, this.value = e, this.description = i;
598
598
  }
599
599
  }
600
- class Fe {
600
+ class Be {
601
601
  constructor() {
602
602
  this.fields = [], this.keywordTextFixedPositions = void 0, this.keywordOffsetX = 0, this.keywordOffsetY = 0, this.bookmarkOffsetX = 0, this.bookmarkOffsetY = 0, this.printMargin = 0, this.grayscaleSealImage = !1, this.signType = 0, this.sealPosition = 0, this.getSignType = () => this.signType, this.setSignType = (n) => {
603
603
  this.signType = n;
@@ -607,7 +607,7 @@ class Fe {
607
607
  this.sealPosition = n;
608
608
  }, this.setPageRange = (n) => {
609
609
  this.pageRange = n;
610
- }, this.getPageRange = () => this.pageRange, this.getPageRanges = () => _e(this.pageRange), this.setSignUserData = (n) => {
610
+ }, this.getPageRange = () => this.pageRange, this.getPageRanges = () => Ne(this.pageRange), this.setSignUserData = (n) => {
611
611
  this.signUserData = n;
612
612
  }, this.setPrintMargin = (n) => {
613
613
  this.printMargin = n;
@@ -620,23 +620,23 @@ class Fe {
620
620
  };
621
621
  }
622
622
  }
623
- const Ne = {
623
+ const xe = {
624
624
  getSecuritySettings: { kind: "query" },
625
625
  isSecuritySettingsLocalEditable: { kind: "query" },
626
626
  setSecuritySettingsLocalEditable: { kind: "query" },
627
627
  setSecuritySettings: { kind: "query" },
628
628
  openSecuritySettingsDialog: { kind: "command" }
629
629
  };
630
- class Ue {
630
+ class Ve {
631
631
  constructor(n) {
632
632
  this.getSecuritySettings = () => this.adapter.getSecuritySettings(), this.setSecuritySettings = (e) => this.adapter.setSecuritySettings(e), this.isSecuritySettingsLocalEditable = () => this.adapter.isSecuritySettingsLocalEditable(), this.setSecuritySettingsLocalEditable = (e) => this.adapter.setSecuritySettingsLocalEditable(e), this.openSecuritySettingsDialog = () => this.adapter.openSecuritySettingsDialog(), this.adapter = u(
633
633
  "security",
634
- Ne,
634
+ xe,
635
635
  n
636
636
  );
637
637
  }
638
638
  }
639
- const Be = {
639
+ const Ke = {
640
640
  setSignServer: { kind: "command" },
641
641
  addSignServerAuthCallback: {
642
642
  kind: "callbackRegister",
@@ -656,28 +656,28 @@ const Be = {
656
656
  setSignServerLoginFromUSBKey: { kind: "command" },
657
657
  setUserAuthSource: { kind: "command" }
658
658
  };
659
- class xe {
659
+ class qe {
660
660
  constructor(n) {
661
661
  this.setSignServer = (e) => this.adapter.setSignServer(e), this.addSignServerAuthCallback = (e) => this.adapter.addSignServerAuthCallback(e), this.setSignServerDefaultLogin = (e) => this.adapter.setSignServerDefaultLogin(e), this.setDefaultSignServerLogin = (e) => this.adapter.setDefaultSignServerLogin(e), this.setSignServerDefaultPassword = (e) => this.adapter.setSignServerDefaultPassword(e), this.setDefaultSignServerPassword = (e) => this.adapter.setDefaultSignServerPassword(e), this.loginNTKOSignServer = (e, i, r) => this.adapter.loginNTKOSignServer(e, i, r), this.loginSignServer = (e, i, r, a) => this.adapter.loginSignServer(e, i, r, a), this.signOutSignServer = () => this.adapter.signOutSignServer(), this.isAuthenticatedOnSignServer = () => this.adapter.isAuthenticatedOnSignServer(), this.setSignServerLoginFromUSBKey = (e, i) => this.adapter.setSignServerLoginFromUSBKey(e, i), this.setUserAuthSource = (e) => this.adapter.setUserAuthSource(e), this.adapter = u(
662
662
  "signServer",
663
- Be,
663
+ Ke,
664
664
  n
665
665
  );
666
666
  }
667
667
  }
668
- const Ve = {
668
+ const ze = {
669
669
  createPDF417Barcode: { kind: "command" }
670
670
  };
671
- class Ke {
671
+ class Ge {
672
672
  constructor(n) {
673
673
  this.createPDF417Barcode = (e, i, r, a, s, o, d) => this.adapter.createPDF417Barcode(e, i, r, a, s, o, d), this.adapter = u(
674
674
  "symbology",
675
- Ve,
675
+ ze,
676
676
  n
677
677
  );
678
678
  }
679
679
  }
680
- const qe = {
680
+ const He = {
681
681
  setup: { kind: "command" },
682
682
  create: { kind: "command" },
683
683
  getMarkups: { kind: "callbackQuery" },
@@ -685,16 +685,27 @@ const qe = {
685
685
  removeAllMarkups: { kind: "command" },
686
686
  sign: { kind: "callbackQuery" }
687
687
  };
688
- class ze {
688
+ class Qe {
689
689
  constructor(n) {
690
690
  this.setup = (e) => this.adapter.setup(e), this.create = (e) => this.adapter.create(e), this.getMarkups = (e) => this.adapter.getMarkups(e), this.removeMarkup = (e, i) => this.adapter.removeMarkup(e, i), this.removeAllMarkups = (e) => this.adapter.removeAllMarkups(e), this.sign = (e) => this.adapter.sign(e), this.adapter = u(
691
691
  "templateSign",
692
- qe,
692
+ He,
693
693
  n
694
694
  );
695
695
  }
696
696
  }
697
- const Ge = /* @__PURE__ */ new Set([2, 5]), He = (t) => ({
697
+ const w = "[RHC Office SDK]", je = (t, ...n) => {
698
+ $("warn", t, n);
699
+ }, I = (t, ...n) => {
700
+ $("error", t, n);
701
+ }, $ = (t, n, e) => {
702
+ const i = t === "error" ? console.error.bind(console) : console.warn.bind(console);
703
+ if (e.length > 0) {
704
+ i(`${w} ${n}`, ...e);
705
+ return;
706
+ }
707
+ i(`${w} ${n}`);
708
+ }, $e = /* @__PURE__ */ new Set([2, 5]), We = (t) => ({
698
709
  showToolbarMenu: { kind: "command" },
699
710
  hideToolbarMenu: { kind: "command" },
700
711
  setupToolbarMenu: { kind: "command" },
@@ -733,13 +744,13 @@ const Ge = /* @__PURE__ */ new Set([2, 5]), He = (t) => ({
733
744
  exitBookViewMode: { kind: "command" },
734
745
  isBookViewActivated: {
735
746
  kind: "stateGetter",
736
- state: () => Ge.has(t.state.snapshot().pageMode)
747
+ state: () => $e.has(t.state.snapshot().pageMode)
737
748
  },
738
749
  requestFullScreen: { kind: "command" },
739
750
  exitFullScreen: { kind: "command" },
740
751
  invalidateView: { kind: "command" }
741
752
  });
742
- class Qe {
753
+ class Ye {
743
754
  constructor(n) {
744
755
  this.showToolbarMenu = () => (this.warnLegacyRibbonMethod("showToolbarMenu", "showRibbonMenu"), this.showRibbonMenu()), this.hideToolbarMenu = () => (this.warnLegacyRibbonMethod("hideToolbarMenu", "hideRibbonMenu"), this.hideRibbonMenu()), this.setupToolbarMenu = (e) => (this.warnLegacyRibbonMethod(
745
756
  "setupToolbarMenu",
@@ -747,13 +758,13 @@ class Qe {
747
758
  ), this.setupRibbonMenu(e)), this.showToolbarMenuItem = (e) => (this.warnLegacyRibbonMethod("showToolbarMenuItem", "showRibbonMenuItem"), this.showRibbonMenuItem(e)), this.hideToolbarMenuItem = (e) => (this.warnLegacyRibbonMethod("hideToolbarMenuItem", "hideRibbonMenuItem"), this.hideRibbonMenuItem(e)), this.setupRibbonMenu = (e) => (this.warnLegacyRibbonMethod(
748
759
  "setupRibbonMenu",
749
760
  "showRibbonMenu/hideRibbonMenu/setupRibbonMenuTab"
750
- ), typeof e == "boolean" ? e ? this.showRibbonMenu() : this.hideRibbonMenu() : this.setupRibbonMenuTab(e.menu, { visible: e.visible })), this.setupRibbonMenuItem = (e, i, r) => (this.warnLegacyRibbonMethod("setupRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: i, config: r })), this.setupRibbonTitleBar = (e) => (this.warnLegacyRibbonMethod("setupRibbonTitleBar", "showRibbonTabs/hideRibbonTabs"), e ? this.showRibbonTabs() : this.hideRibbonTabs()), this.showRibbonMenu = () => this.adapter.showRibbonMenu(), this.hideRibbonMenu = () => this.adapter.hideRibbonMenu(), this.showRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("showRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !0, config: i })), this.hideRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("hideRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !1, config: i })), this.showRibbonTitleBar = () => (this.warnLegacyRibbonMethod("showRibbonTitleBar", "showRibbonTabs"), this.showRibbonTabs()), this.hideRibbonTitleBar = () => (this.warnLegacyRibbonMethod("hideRibbonTitleBar", "hideRibbonTabs"), this.hideRibbonTabs()), this.showRibbonTabs = () => this.adapter.showRibbonTabs(), this.hideRibbonTabs = () => this.adapter.hideRibbonTabs(), this.selectRibbonMenu = (e) => this.adapter.selectRibbonMenu(e), this.setupRibbonMenuTab = (e, i) => this.adapter.setupRibbonMenuTab(e, i), this.showRibbonMenuTab = (e) => this.adapter.showRibbonMenuTab(e), this.hideRibbonMenuTab = (e) => this.adapter.hideRibbonMenuTab(e), this.enableRibbonMenuTab = (e) => this.adapter.enableRibbonMenuTab(e), this.disableRibbonMenuTab = (e) => this.adapter.disableRibbonMenuTab(e), this.setupRibbonMenuItemState = (e, i) => this.adapter.setupRibbonMenuItemState(e, i), this.enableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !1, config: i }), this.disableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !0, config: i }), this.setRibbonMenuButtonStyle = (e, i) => this.adapter.setRibbonMenuButtonStyle(e, i), this.setWatermark = (e) => this.adapter.setWatermark(e), this.setCompactMode = (e) => this.adapter.setCompactMode(e), this.setRulerVisible = (e) => this.adapter.setRulerVisible(e), this.setStatusBarVisible = (e) => this.adapter.setStatusBarVisible(e), this.toggleSidebar = () => this.adapter.toggleSidebar(), this.enterBookViewMode = (e) => this.adapter.enterBookViewMode(e), this.exitBookViewMode = () => this.adapter.exitBookViewMode(), this.isBookViewActivated = () => this.adapter.isBookViewActivated(), this.requestFullScreen = () => this.adapter.requestFullScreen(), this.exitFullScreen = () => this.adapter.exitFullScreen(), this.invalidateView = () => this.adapter.invalidateView(), this.adapter = u("ui", He(n), n);
761
+ ), typeof e == "boolean" ? e ? this.showRibbonMenu() : this.hideRibbonMenu() : this.setupRibbonMenuTab(e.menu, { visible: e.visible })), this.setupRibbonMenuItem = (e, i, r) => (this.warnLegacyRibbonMethod("setupRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: i, config: r })), this.setupRibbonTitleBar = (e) => (this.warnLegacyRibbonMethod("setupRibbonTitleBar", "showRibbonTabs/hideRibbonTabs"), e ? this.showRibbonTabs() : this.hideRibbonTabs()), this.showRibbonMenu = () => this.adapter.showRibbonMenu(), this.hideRibbonMenu = () => this.adapter.hideRibbonMenu(), this.showRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("showRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !0, config: i })), this.hideRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("hideRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !1, config: i })), this.showRibbonTitleBar = () => (this.warnLegacyRibbonMethod("showRibbonTitleBar", "showRibbonTabs"), this.showRibbonTabs()), this.hideRibbonTitleBar = () => (this.warnLegacyRibbonMethod("hideRibbonTitleBar", "hideRibbonTabs"), this.hideRibbonTabs()), this.showRibbonTabs = () => this.adapter.showRibbonTabs(), this.hideRibbonTabs = () => this.adapter.hideRibbonTabs(), this.selectRibbonMenu = (e) => this.adapter.selectRibbonMenu(e), this.setupRibbonMenuTab = (e, i) => this.adapter.setupRibbonMenuTab(e, i), this.showRibbonMenuTab = (e) => this.adapter.showRibbonMenuTab(e), this.hideRibbonMenuTab = (e) => this.adapter.hideRibbonMenuTab(e), this.enableRibbonMenuTab = (e) => this.adapter.enableRibbonMenuTab(e), this.disableRibbonMenuTab = (e) => this.adapter.disableRibbonMenuTab(e), this.setupRibbonMenuItemState = (e, i) => this.adapter.setupRibbonMenuItemState(e, i), this.enableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !1, config: i }), this.disableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !0, config: i }), this.setRibbonMenuButtonStyle = (e, i) => this.adapter.setRibbonMenuButtonStyle(e, i), this.setWatermark = (e) => this.adapter.setWatermark(e), this.setCompactMode = (e) => this.adapter.setCompactMode(e), this.setRulerVisible = (e) => this.adapter.setRulerVisible(e), this.setStatusBarVisible = (e) => this.adapter.setStatusBarVisible(e), this.toggleSidebar = () => this.adapter.toggleSidebar(), this.enterBookViewMode = (e) => this.adapter.enterBookViewMode(e), this.exitBookViewMode = () => this.adapter.exitBookViewMode(), this.isBookViewActivated = () => this.adapter.isBookViewActivated(), this.requestFullScreen = () => this.adapter.requestFullScreen(), this.exitFullScreen = () => this.adapter.exitFullScreen(), this.invalidateView = () => this.adapter.invalidateView(), this.adapter = u("ui", We(n), n);
751
762
  }
752
763
  warnLegacyRibbonMethod(n, e) {
753
- console.warn(`[RHC Office SDK] ui.${n} is deprecated. Use ui.${e} instead.`);
764
+ je(`ui.${n} is deprecated. Use ui.${e} instead.`);
754
765
  }
755
766
  }
756
- const je = (t) => {
767
+ const Xe = (t) => {
757
768
  if (!t)
758
769
  return;
759
770
  const n = t.trim().toLowerCase();
@@ -761,42 +772,42 @@ const je = (t) => {
761
772
  return "auto";
762
773
  if (n === "light" || n === "dark" || n === "high-contrast" || n === "auto")
763
774
  return n;
764
- }, Q = (t) => {
775
+ }, W = (t) => {
765
776
  const n = new URL(t, globalThis.location?.href ?? "http://localhost/");
766
777
  return n.hash = "", n.pathname.endsWith("/") || (n.pathname = `${n.pathname}/`), n.toString();
767
- }, We = (t) => new URL("editors.bootstrap.js", t).toString(), Ye = (t, n) => {
768
- const e = Q(t);
778
+ }, Je = (t) => new URL("editors.bootstrap.js", t).toString(), Ze = (t, n) => {
779
+ const e = W(t);
769
780
  return {
770
781
  ...n,
771
782
  appUrl: e,
772
- theme: je(n.theme)
783
+ theme: Xe(n.theme)
773
784
  };
774
- }, g = "rhc-office-editor", T = "__RHC_OFFICE_SDK_READER_LOADER__", j = () => {
785
+ }, g = "rhc-office-editor", T = "__RHC_OFFICE_SDK_READER_LOADER__", Y = () => {
775
786
  const t = globalThis;
776
787
  return t[T] || (t[T] = {
777
788
  activeAppUrl: null,
778
789
  loadPromises: /* @__PURE__ */ new Map()
779
790
  }), t[T];
780
- }, $e = (t) => Array.from(document.querySelectorAll("script")).find((n) => n.src === t) ?? null;
781
- class w extends Error {
791
+ }, et = (t) => Array.from(document.querySelectorAll("script")).find((n) => n.src === t) ?? null;
792
+ class O extends Error {
782
793
  constructor(n) {
783
794
  super(`Failed to load reader bootstrap script: ${n}`), this.name = "ReaderScriptLoadError";
784
795
  }
785
796
  }
786
- class Xe extends Error {
797
+ class tt extends Error {
787
798
  constructor(n, e) {
788
799
  super(
789
800
  `Reader Web Component "${g}" is already bound to ${n} and cannot be reloaded from ${e}.`
790
801
  ), this.name = "ReaderSourceConflictError";
791
802
  }
792
803
  }
793
- const W = (t) => {
794
- const n = j();
804
+ const X = (t) => {
805
+ const n = Y();
795
806
  if (n.activeAppUrl && n.activeAppUrl !== t)
796
- throw new Xe(n.activeAppUrl, t);
797
- }, Je = (t) => {
798
- const n = j();
799
- W(t);
807
+ throw new tt(n.activeAppUrl, t);
808
+ }, nt = (t) => {
809
+ const n = Y();
810
+ X(t);
800
811
  const e = n.loadPromises.get(t);
801
812
  if (e)
802
813
  return e;
@@ -805,11 +816,11 @@ const W = (t) => {
805
816
  const s = Promise.resolve();
806
817
  return n.loadPromises.set(t, s), s;
807
818
  }
808
- const i = We(t), r = $e(i);
819
+ const i = Je(t), r = et(i);
809
820
  n.activeAppUrl = t;
810
821
  const a = new Promise((s, o) => {
811
822
  const d = (h) => {
812
- h?.remove(), o(new w(i));
823
+ h?.remove(), o(new O(i));
813
824
  }, l = () => {
814
825
  globalThis.customElements.whenDefined(g).then(() => {
815
826
  s();
@@ -822,7 +833,7 @@ const W = (t) => {
822
833
  }
823
834
  r.addEventListener(
824
835
  "error",
825
- () => o(new w(i)),
836
+ () => o(new O(i)),
826
837
  {
827
838
  once: !0
828
839
  }
@@ -835,18 +846,18 @@ const W = (t) => {
835
846
  throw n.loadPromises.delete(t), !globalThis.customElements?.get(g) && n.activeAppUrl === t && (n.activeAppUrl = null), s;
836
847
  });
837
848
  return n.loadPromises.set(t, a), a;
838
- }, Ze = 5e3, et = 5e3, tt = () => {
849
+ }, it = 5e3, rt = 5e3, at = () => {
839
850
  const t = globalThis.crypto;
840
851
  return typeof t?.randomUUID == "function" ? t.randomUUID() : `adapter-${Date.now()}-${Math.random().toString(36).slice(2)}`;
841
- }, b = () => globalThis[be];
842
- class nt extends Error {
852
+ }, b = () => globalThis[Re];
853
+ class st extends Error {
843
854
  constructor(n, e, i) {
844
855
  super(e), this.name = "ReaderBridgeError", this.code = n, this.details = i;
845
856
  }
846
857
  }
847
- class it {
858
+ class ot {
848
859
  constructor(n) {
849
- this.readerId = null, this.readyTimeoutMs = n?.readyTimeoutMs ?? et, this.requestTimeoutMs = n?.requestTimeoutMs ?? Ze;
860
+ this.readerId = null, this.readyTimeoutMs = n?.readyTimeoutMs ?? rt, this.requestTimeoutMs = n?.requestTimeoutMs ?? it;
850
861
  }
851
862
  configureTimeouts(n) {
852
863
  this.readyTimeoutMs = n?.readyTimeoutMs ?? this.readyTimeoutMs, this.requestTimeoutMs = n?.requestTimeoutMs ?? this.requestTimeoutMs;
@@ -861,7 +872,7 @@ class it {
861
872
  const a = await this.requestRaw(n, e, i, r);
862
873
  if (a.ok)
863
874
  return a.result;
864
- throw new nt(
875
+ throw new st(
865
876
  a.error.code,
866
877
  a.error.message,
867
878
  a.error.details
@@ -888,9 +899,9 @@ class it {
888
899
  }
889
900
  };
890
901
  const s = {
891
- protocol: ge,
892
- version: pe,
893
- requestId: tt(),
902
+ protocol: Se,
903
+ version: fe,
904
+ requestId: at(),
894
905
  readerId: this.readerId,
895
906
  tool: n,
896
907
  method: e,
@@ -952,7 +963,7 @@ class it {
952
963
  });
953
964
  }
954
965
  }
955
- const I = {
966
+ const _ = {
956
967
  annotationEnabled: !1,
957
968
  documentModified: !1,
958
969
  documentOpened: !1,
@@ -961,12 +972,12 @@ const I = {
961
972
  pageMode: 0,
962
973
  zoomLevel: 100
963
974
  };
964
- class rt {
975
+ class dt {
965
976
  constructor() {
966
- this.state = { ...I };
977
+ this.state = { ..._ };
967
978
  }
968
979
  reset() {
969
- this.state = { ...I };
980
+ this.state = { ..._ };
970
981
  }
971
982
  update(n) {
972
983
  n && (this.state = {
@@ -990,18 +1001,18 @@ class rt {
990
1001
  };
991
1002
  }
992
1003
  }
993
- const at = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : void 0, Y = (t) => typeof t == "object" && t !== null && !Array.isArray(t), O = (t) => {
994
- if (!Y(t))
1004
+ const ut = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : void 0, J = (t) => typeof t == "object" && t !== null && !Array.isArray(t), L = (t) => {
1005
+ if (!J(t))
995
1006
  return;
996
1007
  const n = {};
997
1008
  return typeof t.currentPage == "number" && (n.currentPage = t.currentPage), typeof t.documentType == "string" && (n.documentType = t.documentType), typeof t.totalPages == "number" ? n.totalPages = t.totalPages : typeof t.pageCount == "number" && (n.totalPages = t.pageCount), typeof t.zoomLevel == "number" && (n.zoomLevel = t.zoomLevel), Object.keys(n).length > 0 ? n : void 0;
998
- }, st = (t) => {
999
- if (!Y(t))
1009
+ }, lt = (t) => {
1010
+ if (!J(t))
1000
1011
  return {
1001
1012
  success: !0,
1002
1013
  status: "ok"
1003
1014
  };
1004
- const n = O(t.state), e = O(t), i = typeof t.error == "string" ? t.error : void 0, r = typeof t.success == "boolean" ? t.success : !i, a = typeof t.status == "string" ? t.status : r ? "ok" : "error";
1015
+ const n = L(t.state), e = L(t), i = typeof t.error == "string" ? t.error : void 0, r = typeof t.success == "boolean" ? t.success : !i, a = typeof t.status == "string" ? t.status : r ? "ok" : "error";
1005
1016
  return {
1006
1017
  success: r,
1007
1018
  status: a,
@@ -1009,7 +1020,7 @@ const at = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t :
1009
1020
  state: n ?? e
1010
1021
  };
1011
1022
  };
1012
- class ot {
1023
+ class ct {
1013
1024
  constructor() {
1014
1025
  this.annotationEvents = [], this.annotationPersist = [], this.annotationRetrieve = [], this.attachmentChanged = [], this.digitalAnnotationRetrieve = [], this.digitalSign = [], this.digitalSignatureParse = [], this.digitalSignatureRetrieve = [], this.documentClosed = [], this.documentOpened = [], this.documentSaved = [], this.pageChange = [], this.pageModeChange = [], this.signServerAuth = [];
1015
1026
  }
@@ -1017,7 +1028,7 @@ class ot {
1017
1028
  switch (n) {
1018
1029
  case "documentOpened":
1019
1030
  case "documentLoaded": {
1020
- const i = st(e);
1031
+ const i = lt(e);
1021
1032
  this.documentOpened.forEach(
1022
1033
  (r) => r(i.status ?? "ok", i.error ?? "", i)
1023
1034
  );
@@ -1046,7 +1057,7 @@ class ot {
1046
1057
  this.annotationEvents.forEach(
1047
1058
  (r) => r(
1048
1059
  i.event ?? "annotationEvent",
1049
- at(i.payload)
1060
+ ut(i.payload)
1050
1061
  )
1051
1062
  );
1052
1063
  return;
@@ -1086,15 +1097,15 @@ class ot {
1086
1097
  }
1087
1098
  }
1088
1099
  }
1089
- const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig", dt = [
1100
+ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig", ht = [
1090
1101
  "documentLoaded",
1091
1102
  "documentStateChange",
1092
1103
  "documentError"
1093
- ], ut = "readerReady", lt = "readerUnload", v = "readerError", ct = () => typeof globalThis.crypto?.randomUUID == "function" ? globalThis.crypto.randomUUID() : `rhc-reader-${Date.now()}-${Math.random().toString(36).slice(2)}`, _ = (t, n) => ({
1104
+ ], mt = "readerReady", gt = "readerUnload", v = "readerError", pt = () => typeof globalThis.crypto?.randomUUID == "function" ? globalThis.crypto.randomUUID() : `rhc-reader-${Date.now()}-${Math.random().toString(36).slice(2)}`, F = (t, n) => ({
1094
1105
  appUrl: n?.appUrl ?? null,
1095
1106
  configuration: n,
1096
1107
  element: t
1097
- }), L = (t, n) => {
1108
+ }), N = (t, n) => {
1098
1109
  if (!t)
1099
1110
  return;
1100
1111
  const e = typeof t == "string" ? t.trim() : t.userName.trim();
@@ -1105,19 +1116,19 @@ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig",
1105
1116
  sessionUser: e,
1106
1117
  ...a ? { sessionUserId: a } : {}
1107
1118
  };
1108
- }, ht = (t) => {
1119
+ }, bt = (t) => {
1109
1120
  const n = t.trim().replace(/[-_\s]/g, "").toLowerCase();
1110
1121
  return n === "view" ? "VIEW" : n === "annotation" ? "ANNOTATION" : n === "digitalsign" ? "DIGITAL_SIGN" : null;
1111
- }, F = (t) => {
1122
+ }, U = (t) => {
1112
1123
  const n = [];
1113
1124
  return t.split(/[;,]/).forEach((e) => {
1114
- const i = ht(e);
1125
+ const i = bt(e);
1115
1126
  i && !n.includes(i) && n.push(i);
1116
1127
  }), n.length > 0 ? n.join(",") : "VIEW";
1117
- }, mt = (t) => {
1128
+ }, St = (t) => {
1118
1129
  const n = {};
1119
1130
  return t.canOpenNewFile !== void 0 && (n.canOpenNewFile = t.canOpenNewFile), t.canPrint !== void 0 && (n.canPrint = t.canPrint), t.canDownload !== void 0 && (n.canDownload = t.canDownload), Object.keys(n).length > 0 ? n : void 0;
1120
- }, gt = (t) => {
1131
+ }, ft = (t) => {
1121
1132
  if (typeof t == "string") {
1122
1133
  const n = document.getElementById(t);
1123
1134
  if (!n)
@@ -1129,52 +1140,52 @@ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig",
1129
1140
  if (!(t instanceof HTMLDivElement))
1130
1141
  throw new Error("Reader container must be a div element.");
1131
1142
  return t;
1132
- }, pt = () => {
1143
+ }, Rt = () => {
1133
1144
  const t = typeof globalThis.matchMedia == "function";
1134
1145
  return (t ? globalThis.matchMedia("(prefers-contrast: more)").matches : !1) ? "high-contrast" : (t ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches : !1) ? "dark" : "light";
1135
- }, N = (t, n) => {
1146
+ }, B = (t, n) => {
1136
1147
  const e = t;
1137
1148
  if (typeof e.addEventListener == "function") {
1138
1149
  e.addEventListener("change", n);
1139
1150
  return;
1140
1151
  }
1141
1152
  typeof e.addListener == "function" && e.addListener(n);
1142
- }, U = (t, n) => {
1153
+ }, x = (t, n) => {
1143
1154
  const e = t;
1144
1155
  if (typeof e.removeEventListener == "function") {
1145
1156
  e.removeEventListener("change", n);
1146
1157
  return;
1147
1158
  }
1148
1159
  typeof e.removeListener == "function" && e.removeListener(n);
1149
- }, bt = (t) => {
1160
+ }, kt = (t) => {
1150
1161
  t.style.display || (t.style.display = "block"), t.style.width || (t.style.width = "100%"), t.style.height || (t.style.height = "100%");
1151
- }, B = (t, n) => {
1162
+ }, V = (t, n) => {
1152
1163
  const e = n;
1153
1164
  if (!e)
1154
1165
  return t.removeAttribute("theme"), null;
1155
1166
  if (e !== "auto")
1156
1167
  return t.setAttribute("theme", e), null;
1157
1168
  const i = () => {
1158
- t.setAttribute("theme", pt());
1169
+ t.setAttribute("theme", Rt());
1159
1170
  };
1160
1171
  if (i(), typeof globalThis.matchMedia != "function")
1161
1172
  return null;
1162
1173
  const r = globalThis.matchMedia("(prefers-color-scheme: dark)"), a = globalThis.matchMedia("(prefers-contrast: more)"), s = () => {
1163
1174
  i();
1164
1175
  };
1165
- return N(r, s), N(a, s), () => {
1166
- U(r, s), U(a, s);
1176
+ return B(r, s), B(a, s), () => {
1177
+ x(r, s), x(a, s);
1167
1178
  };
1168
1179
  };
1169
- class St {
1180
+ class Tt {
1170
1181
  constructor(n) {
1171
- this.bridge = new it(), this.callbacks = new ot(), this.readerState = new rt(), this.bridgeToolContext = {
1182
+ this.bridge = new ot(), this.callbacks = new ct(), this.readerState = new dt(), this.bridgeToolContext = {
1172
1183
  bridge: this.bridge,
1173
1184
  callbacks: this.callbacks,
1174
1185
  debug: () => this.debugEnabled,
1175
1186
  onAsyncError: (e) => this.reportAdapterError(e),
1176
1187
  state: this.readerState
1177
- }, this.documentTool = new fe(this.bridgeToolContext), this.uiTool = new Qe(this.bridgeToolContext), this.pageTool = new Pe(this.bridgeToolContext), this.pageArrangeTool = new Ae(this.bridgeToolContext), this.attachmentTool = new ue(this.bridgeToolContext), this.findTool = new ke(this.bridgeToolContext), this.signServerTool = new xe(this.bridgeToolContext), this.digitalSignTool = new me(this.bridgeToolContext), this.symbologyTool = new Ke(this.bridgeToolContext), this.annotationTool = new ae(this.bridgeToolContext), this.templateSignTool = new ze(this.bridgeToolContext), this.pdfFormFiller = new Me(this.bridgeToolContext), this.networkingTool = new ye(this.bridgeToolContext), this.cryptoTool = new ce(this.bridgeToolContext), this.securityTool = new Ue(this.bridgeToolContext), this.readyCallbacks = [], this.unloadCallbacks = [], this.debugEnabled = !1, this.isReady = !1, this.removed = !1, this.mountToken = 0, this.hostContainer = null, this.readerElement = null, this.readerId = null, this.normalizedConfiguration = null, this.runtimeRestoreState = null, this.nativeEventCleanupCallbacks = [], this.themeCleanup = null, this.enableDebug = (e) => {
1188
+ }, this.documentTool = new Te(this.bridgeToolContext), this.uiTool = new Ye(this.bridgeToolContext), this.pageTool = new we(this.bridgeToolContext), this.pageArrangeTool = new De(this.bridgeToolContext), this.attachmentTool = new he(this.bridgeToolContext), this.findTool = new ve(this.bridgeToolContext), this.signServerTool = new qe(this.bridgeToolContext), this.digitalSignTool = new be(this.bridgeToolContext), this.symbologyTool = new Ge(this.bridgeToolContext), this.annotationTool = new de(this.bridgeToolContext), this.templateSignTool = new Qe(this.bridgeToolContext), this.pdfFormFiller = new Oe(this.bridgeToolContext), this.networkingTool = new Ae(this.bridgeToolContext), this.cryptoTool = new ge(this.bridgeToolContext), this.securityTool = new Ve(this.bridgeToolContext), this.readyCallbacks = [], this.unloadCallbacks = [], this.debugEnabled = !1, this.isReady = !1, this.removed = !1, this.mountToken = 0, this.hostContainer = null, this.readerElement = null, this.readerId = null, this.normalizedConfiguration = null, this.runtimeRestoreState = null, this.nativeEventCleanupCallbacks = [], this.themeCleanup = null, this.enableDebug = (e) => {
1178
1189
  this.debugEnabled = e;
1179
1190
  }, this.changeLanguage = (e) => {
1180
1191
  this.readerElement && this.readerElement.setAttribute("language", e);
@@ -1182,7 +1193,7 @@ class St {
1182
1193
  this.themeCleanup?.(), this.themeCleanup = null, this.normalizedConfiguration = this.normalizedConfiguration ? {
1183
1194
  ...this.normalizedConfiguration,
1184
1195
  theme: e
1185
- } : null, this.readerElement && (this.themeCleanup = B(this.readerElement, e));
1196
+ } : null, this.readerElement && (this.themeCleanup = V(this.readerElement, e));
1186
1197
  }, this.setSessionUser = (e) => {
1187
1198
  this.sessionUser = e, this.syncReaderRuntimeConfig();
1188
1199
  }, this.setSessionUserId = (e) => {
@@ -1196,27 +1207,27 @@ class St {
1196
1207
  }, this.setReaderEventListener = (e) => {
1197
1208
  this.readerEventListener = e;
1198
1209
  }, this.embedReader = (e, i, r) => {
1199
- const a = gt(e), s = Q(i);
1200
- W(s);
1201
- const o = Ye(s, r), d = this.mountToken + 1;
1210
+ const a = ft(e), s = W(i);
1211
+ X(s);
1212
+ const o = Ze(s, r), d = this.mountToken + 1;
1202
1213
  this.removeReader(), this.mountToken = d, this.removed = !1, this.hostContainer = a, this.normalizedConfiguration = o, this.mountReader(a, o, d);
1203
1214
  }, this.removeReader = () => {
1204
1215
  const e = !!(this.readerElement || this.hostContainer);
1205
1216
  if (this.mountToken += 1, this.cleanupNativeEventForwarders(), this.cleanupThemeBinding(), this.restoreReaderRuntimeConfig(), this.readerElement?.parentNode && this.readerElement.parentNode.removeChild(this.readerElement), this.readerElement = null, this.readerId = null, this.bridge.setReaderId(null), this.readerState.reset(), this.hostContainer = null, this.normalizedConfiguration = null, this.isReady = !1, this.removed = !0, !e)
1206
1217
  return;
1207
- const i = _(null, null);
1208
- this.emitReaderEvent(lt, i), this.unloadCallbacks.forEach((r) => r());
1209
- }, this.getDocumentTool = () => this.documentTool, this.getUITool = () => this.uiTool, this.getPageTool = () => this.pageTool, this.getPageArrangeTool = () => this.pageArrangeTool, this.getAttachmentTool = () => this.attachmentTool, this.getFindTool = () => this.findTool, this.getSignServerTool = () => this.signServerTool, this.getDigitalSignTool = () => this.digitalSignTool, this.getSymbologyTool = () => this.symbologyTool, this.getAnnotationTool = () => this.annotationTool, this.getTemplateSignTool = () => this.templateSignTool, this.getPdfFormFiller = () => this.pdfFormFiller, this.getNetworkingTool = () => this.networkingTool, this.getCryptoTool = () => this.cryptoTool, this.getSecurityTool = () => this.securityTool, this.createDigitalSignOptions = () => new Fe(), this.createKVField = (e, i, r) => new Le(e, i, r), this.mountReader = async (e, i, r) => {
1218
+ const i = F(null, null);
1219
+ this.emitReaderEvent(gt, i), this.unloadCallbacks.forEach((r) => r());
1220
+ }, this.getDocumentTool = () => this.documentTool, this.getUITool = () => this.uiTool, this.getPageTool = () => this.pageTool, this.getPageArrangeTool = () => this.pageArrangeTool, this.getAttachmentTool = () => this.attachmentTool, this.getFindTool = () => this.findTool, this.getSignServerTool = () => this.signServerTool, this.getDigitalSignTool = () => this.digitalSignTool, this.getSymbologyTool = () => this.symbologyTool, this.getAnnotationTool = () => this.annotationTool, this.getTemplateSignTool = () => this.templateSignTool, this.getPdfFormFiller = () => this.pdfFormFiller, this.getNetworkingTool = () => this.networkingTool, this.getCryptoTool = () => this.cryptoTool, this.getSecurityTool = () => this.securityTool, this.createDigitalSignOptions = () => new Be(), this.createKVField = (e, i, r) => new Ue(e, i, r), this.mountReader = async (e, i, r) => {
1210
1221
  try {
1211
- if (await Je(i.appUrl), this.mountToken !== r)
1222
+ if (await nt(i.appUrl), this.mountToken !== r)
1212
1223
  return;
1213
- const a = document.createElement(g), s = ct();
1214
- a.setAttribute(H, s), this.readerId = s, this.bridge.setReaderId(s), bt(a), this.applyReaderRuntimeConfig(a, i);
1224
+ const a = document.createElement(g), s = pt();
1225
+ a.setAttribute(j, s), this.readerId = s, this.bridge.setReaderId(s), kt(a), this.applyReaderRuntimeConfig(a, i);
1215
1226
  const o = i.compactViewer === !0 && i.keepPCMenu !== !0;
1216
1227
  if (a.toggleAttribute("data-sdk-compact-mode", o), a.toggleAttribute("data-sdk-ribbon-hidden", i.ribbonMenu === !1), a.toggleAttribute(
1217
1228
  "data-sdk-ribbon-title-hidden",
1218
1229
  i.ribbonTitle === !1
1219
- ), a.setAttribute("language", i.language ?? "zh_CN"), this.themeCleanup = B(a, i.theme), this.bindNativeReaderEvents(a), e.replaceChildren(a), this.readerElement = a, await Promise.resolve(), this.mountToken !== r)
1230
+ ), a.setAttribute("language", i.language ?? "zh_CN"), this.themeCleanup = V(a, i.theme), this.bindNativeReaderEvents(a), e.replaceChildren(a), this.readerElement = a, await Promise.resolve(), this.mountToken !== r)
1220
1231
  return;
1221
1232
  const d = await this.bridge.waitForReady();
1222
1233
  if (this.mountToken !== r)
@@ -1224,8 +1235,8 @@ class St {
1224
1235
  if (!d)
1225
1236
  throw new Error("Editor adapter is not available.");
1226
1237
  this.isReady = !0;
1227
- const l = _(a, i);
1228
- this.emitReaderEvent(ut, l), this.readyCallbacks.forEach((c) => c());
1238
+ const l = F(a, i);
1239
+ this.emitReaderEvent(mt, l), this.readyCallbacks.forEach((c) => c());
1229
1240
  } catch (a) {
1230
1241
  if (this.mountToken !== r)
1231
1242
  return;
@@ -1242,7 +1253,7 @@ class St {
1242
1253
  M,
1243
1254
  i
1244
1255
  );
1245
- }), dt.forEach((r) => {
1256
+ }), ht.forEach((r) => {
1246
1257
  const a = (s) => {
1247
1258
  const o = s instanceof CustomEvent ? s.detail : s;
1248
1259
  r === "documentLoaded" && this.readerState.setDocumentOpened(!0), this.emitReaderEvent(r, o), r === "documentError" && this.emitReaderEvent(v, o);
@@ -1258,9 +1269,9 @@ class St {
1258
1269
  }, this.emitReaderEvent = (e, i) => {
1259
1270
  this.readerEventListener?.(e, i);
1260
1271
  }, this.reportReaderError = (e) => {
1261
- this.isReady = !1, this.debugEnabled && console.error("[RHC Office SDK] Reader mount failed", e), this.emitReaderEvent(v, e);
1272
+ this.isReady = !1, this.debugEnabled && I("Reader mount failed", e), this.emitReaderEvent(v, e);
1262
1273
  }, this.reportAdapterError = (e) => {
1263
- this.debugEnabled && console.error("[RHC Office SDK] Adapter command failed", e), this.emitReaderEvent(v, e);
1274
+ this.debugEnabled && I("Adapter command failed", e), this.emitReaderEvent(v, e);
1264
1275
  }, this.bridge.configureTimeouts({
1265
1276
  readyTimeoutMs: n?.readyTimeoutMs,
1266
1277
  requestTimeoutMs: n?.requestTimeoutMs
@@ -1268,10 +1279,10 @@ class St {
1268
1279
  }
1269
1280
  applyReaderRuntimeConfig(n, e) {
1270
1281
  this.restoreReaderRuntimeConfig();
1271
- const i = L(this.sessionUser, this.sessionUserId), r = {
1272
- feature: F(e.viewMode),
1282
+ const i = N(this.sessionUser, this.sessionUserId), r = {
1283
+ feature: U(e.viewMode),
1273
1284
  ...i ?? {}
1274
- }, a = mt(e), s = {
1285
+ }, a = St(e), s = {
1275
1286
  hostKind: "server",
1276
1287
  ...a ? { embedOptions: a } : {},
1277
1288
  server: {
@@ -1293,11 +1304,11 @@ class St {
1293
1304
  const n = this.readerElement, e = n[y];
1294
1305
  if (!e)
1295
1306
  return;
1296
- const i = L(this.sessionUser, this.sessionUserId), r = { ...e.identity ?? {} };
1307
+ const i = N(this.sessionUser, this.sessionUserId), r = { ...e.identity ?? {} };
1297
1308
  delete r.sessionUser, delete r.sessionUserId;
1298
1309
  const a = {
1299
1310
  ...r,
1300
- feature: F(this.normalizedConfiguration.viewMode),
1311
+ feature: U(this.normalizedConfiguration.viewMode),
1301
1312
  ...i ?? {}
1302
1313
  }, s = {
1303
1314
  ...e,
@@ -1318,34 +1329,34 @@ class St {
1318
1329
  this.runtimeRestoreState.hadPreviousRuntime ? n[S] = this.runtimeRestoreState.previousRuntime : Reflect.deleteProperty(n, S), this.runtimeRestoreState = null;
1319
1330
  }
1320
1331
  }
1321
- const At = (t) => new St(t);
1332
+ const Mt = (t) => new Tt(t);
1322
1333
  export {
1323
- ae as AnnotationToolImpl,
1324
- ue as AttachmentToolImpl,
1325
- ce as CryptoToolImpl,
1326
- Et as DIGITAL_SIGN_DEFAULTS,
1327
- Fe as DigitalSignOptions,
1328
- me as DigitalSignToolImpl,
1329
- St as DocumentSDK,
1330
- fe as DocumentToolImpl,
1331
- ke as FindToolImpl,
1332
- Le as KVField,
1333
- ye as NetworkingToolImpl,
1334
- Ae as PageArrangeToolImpl,
1335
- Pe as PageToolImpl,
1336
- Me as PdfFormFillerImpl,
1337
- Ue as SecurityToolImpl,
1338
- xe as SignServerToolImpl,
1339
- Ke as SymbologyToolImpl,
1340
- ze as TemplateSignToolImpl,
1341
- Qe as UIToolImpl,
1342
- X as WatermarkDisplay,
1343
- At as createNewDocumentSdk,
1344
- ft as getDigitalSignEnvironment,
1345
- Rt as getDigitalSignEnvironmentSource,
1346
- kt as initializeDigitalSignEnvironment,
1347
- yt as patchDigitalSignEnvironment,
1348
- vt as resetDigitalSignEnvironment,
1349
- Tt as setDigitalSignEnvironment
1334
+ de as AnnotationToolImpl,
1335
+ he as AttachmentToolImpl,
1336
+ ge as CryptoToolImpl,
1337
+ Dt as DIGITAL_SIGN_DEFAULTS,
1338
+ Be as DigitalSignOptions,
1339
+ be as DigitalSignToolImpl,
1340
+ Tt as DocumentSDK,
1341
+ Te as DocumentToolImpl,
1342
+ ve as FindToolImpl,
1343
+ Ue as KVField,
1344
+ Ae as NetworkingToolImpl,
1345
+ De as PageArrangeToolImpl,
1346
+ we as PageToolImpl,
1347
+ Oe as PdfFormFillerImpl,
1348
+ Ve as SecurityToolImpl,
1349
+ qe as SignServerToolImpl,
1350
+ Ge as SymbologyToolImpl,
1351
+ Qe as TemplateSignToolImpl,
1352
+ Ye as UIToolImpl,
1353
+ ee as WatermarkDisplay,
1354
+ Mt as createNewDocumentSdk,
1355
+ yt as getDigitalSignEnvironment,
1356
+ vt as getDigitalSignEnvironmentSource,
1357
+ Et as initializeDigitalSignEnvironment,
1358
+ Ct as patchDigitalSignEnvironment,
1359
+ Pt as resetDigitalSignEnvironment,
1360
+ At as setDigitalSignEnvironment
1350
1361
  };
1351
1362
  //# sourceMappingURL=index.js.map