@harbour-enterprises/superdoc 0.29.0 → 0.30.0-next.1

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 (57) hide show
  1. package/dist/chunks/{PdfViewer-DUMZ9x59.es.js → PdfViewer-DNnHwEf_.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-BVriqvm9.cjs → PdfViewer-Mru9qU0u.cjs} +1 -1
  3. package/dist/chunks/{index-373DqHu6-CPe3gPzf.cjs → index-C3nnrhrj-D6qn1DZi.cjs} +1 -1
  4. package/dist/chunks/{index-373DqHu6-BLRN3Gja.es.js → index-C3nnrhrj-D8emuLzt.es.js} +1 -1
  5. package/dist/chunks/{index-_cWKslAS.es.js → index-DcqOqWRC.es.js} +3 -3
  6. package/dist/chunks/{index-DEOkqJcc.cjs → index-s9auAjqk.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-83k0FoXr.es.js → super-editor.es-D1glcoJr.es.js} +1236 -777
  8. package/dist/chunks/{super-editor.es-BkBSpy8W.cjs → super-editor.es-DPd8_luo.cjs} +1236 -777
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  11. package/dist/style.css +57 -15
  12. package/dist/super-editor/ai-writer.es.js +2 -2
  13. package/dist/super-editor/chunks/{converter-B86bAVY0.js → converter-Z2aFlUnt.js} +525 -373
  14. package/dist/super-editor/chunks/{docx-zipper-D1VjYtEw.js → docx-zipper-DIZfYOpO.js} +1 -1
  15. package/dist/super-editor/chunks/{editor-a9U6w_LW.js → editor-DCiWw1F7.js} +359 -58
  16. package/dist/super-editor/chunks/{index-373DqHu6.js → index-C3nnrhrj.js} +1 -1
  17. package/dist/super-editor/chunks/{toolbar-D0NuB59d.js → toolbar-B5-PSkGu.js} +2 -2
  18. package/dist/super-editor/converter.es.js +1 -1
  19. package/dist/super-editor/docx-zipper.es.js +2 -2
  20. package/dist/super-editor/editor.es.js +3 -3
  21. package/dist/super-editor/file-zipper.es.js +1 -1
  22. package/dist/super-editor/style.css +57 -15
  23. package/dist/super-editor/super-editor/src/components/pagination-helpers.d.ts.map +1 -1
  24. package/dist/super-editor/super-editor/src/components/toolbar/defaultItems.d.ts.map +1 -1
  25. package/dist/super-editor/super-editor/src/components/toolbar/super-toolbar.d.ts.map +1 -1
  26. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  27. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
  28. package/dist/super-editor/super-editor/src/core/super-converter/relationship-helpers.d.ts.map +1 -1
  29. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts.map +1 -1
  30. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +6 -0
  31. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts.map +1 -1
  32. package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  34. package/dist/super-editor/super-editor/src/extensions/index.d.ts +2 -1
  35. package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
  36. package/dist/super-editor/super-editor/src/extensions/page-number/page-number.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor/src/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  38. package/dist/super-editor/super-editor/src/extensions/pagination/pagination.d.ts.map +1 -1
  39. package/dist/super-editor/super-editor/src/extensions/search/prosemirror-search-patched.d.ts.map +1 -1
  40. package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts +22 -0
  41. package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts.map +1 -0
  42. package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts +3 -0
  43. package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts.map +1 -0
  44. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +3 -0
  45. package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -0
  46. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  47. package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts +1 -0
  48. package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts.map +1 -1
  49. package/dist/super-editor/super-editor.es.js +25 -18
  50. package/dist/super-editor/toolbar.es.js +2 -2
  51. package/dist/super-editor.cjs +1 -1
  52. package/dist/super-editor.es.js +1 -1
  53. package/dist/superdoc.cjs +2 -2
  54. package/dist/superdoc.es.js +2 -2
  55. package/dist/superdoc.umd.js +1000 -541
  56. package/dist/superdoc.umd.js.map +1 -1
  57. package/package.json +1 -1
@@ -416,17 +416,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
416
416
  );
417
417
  }
418
418
  if (a === b2) return 0;
419
- let x = a.length;
419
+ let x2 = a.length;
420
420
  let y2 = b2.length;
421
- for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
421
+ for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
422
422
  if (a[i] !== b2[i]) {
423
- x = a[i];
423
+ x2 = a[i];
424
424
  y2 = b2[i];
425
425
  break;
426
426
  }
427
427
  }
428
- if (x < y2) return -1;
429
- if (y2 < x) return 1;
428
+ if (x2 < y2) return -1;
429
+ if (y2 < x2) return 1;
430
430
  return 0;
431
431
  };
432
432
  Buffer3.isEncoding = function isEncoding(encoding) {
@@ -675,20 +675,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
675
675
  thisStart >>>= 0;
676
676
  thisEnd >>>= 0;
677
677
  if (this === target) return 0;
678
- let x = thisEnd - thisStart;
678
+ let x2 = thisEnd - thisStart;
679
679
  let y2 = end2 - start2;
680
- const len = Math.min(x, y2);
680
+ const len = Math.min(x2, y2);
681
681
  const thisCopy = this.slice(thisStart, thisEnd);
682
682
  const targetCopy = target.slice(start2, end2);
683
683
  for (let i = 0; i < len; ++i) {
684
684
  if (thisCopy[i] !== targetCopy[i]) {
685
- x = thisCopy[i];
685
+ x2 = thisCopy[i];
686
686
  y2 = targetCopy[i];
687
687
  break;
688
688
  }
689
689
  }
690
- if (x < y2) return -1;
691
- if (y2 < x) return 1;
690
+ if (x2 < y2) return -1;
691
+ if (y2 < x2) return 1;
692
692
  return 0;
693
693
  };
694
694
  function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
@@ -1778,8 +1778,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
1778
1778
  })(buffer);
1779
1779
  const Buffer2 = buffer.Buffer;
1780
1780
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
1781
- function getDefaultExportFromCjs$2(x) {
1782
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1781
+ function getDefaultExportFromCjs$2(x2) {
1782
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
1783
1783
  }
1784
1784
  var sax = {};
1785
1785
  var events$1 = { exports: {} };
@@ -1787,13 +1787,13 @@ var hasRequiredEvents;
1787
1787
  function requireEvents() {
1788
1788
  if (hasRequiredEvents) return events$1.exports;
1789
1789
  hasRequiredEvents = 1;
1790
- var R2 = typeof Reflect === "object" ? Reflect : null;
1791
- var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
1790
+ var R = typeof Reflect === "object" ? Reflect : null;
1791
+ var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
1792
1792
  return Function.prototype.apply.call(target, receiver, args);
1793
1793
  };
1794
1794
  var ReflectOwnKeys;
1795
- if (R2 && typeof R2.ownKeys === "function") {
1796
- ReflectOwnKeys = R2.ownKeys;
1795
+ if (R && typeof R.ownKeys === "function") {
1796
+ ReflectOwnKeys = R.ownKeys;
1797
1797
  } else if (Object.getOwnPropertySymbols) {
1798
1798
  ReflectOwnKeys = function ReflectOwnKeys2(target) {
1799
1799
  return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
@@ -2183,8 +2183,8 @@ function requireInherits_browser() {
2183
2183
  }
2184
2184
  return inherits_browser.exports;
2185
2185
  }
2186
- function getDefaultExportFromCjs$1(x) {
2187
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
2186
+ function getDefaultExportFromCjs$1(x2) {
2187
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
2188
2188
  }
2189
2189
  var browser$1 = { exports: {} };
2190
2190
  var process$1 = browser$1.exports = {};
@@ -2765,17 +2765,17 @@ function requireDist() {
2765
2765
  );
2766
2766
  }
2767
2767
  if (a === b2) return 0;
2768
- let x = a.length;
2768
+ let x2 = a.length;
2769
2769
  let y2 = b2.length;
2770
- for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
2770
+ for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
2771
2771
  if (a[i2] !== b2[i2]) {
2772
- x = a[i2];
2772
+ x2 = a[i2];
2773
2773
  y2 = b2[i2];
2774
2774
  break;
2775
2775
  }
2776
2776
  }
2777
- if (x < y2) return -1;
2778
- if (y2 < x) return 1;
2777
+ if (x2 < y2) return -1;
2778
+ if (y2 < x2) return 1;
2779
2779
  return 0;
2780
2780
  };
2781
2781
  Buffer4.isEncoding = function isEncoding(encoding) {
@@ -3024,20 +3024,20 @@ function requireDist() {
3024
3024
  thisStart >>>= 0;
3025
3025
  thisEnd >>>= 0;
3026
3026
  if (this === target) return 0;
3027
- let x = thisEnd - thisStart;
3027
+ let x2 = thisEnd - thisStart;
3028
3028
  let y2 = end2 - start2;
3029
- const len2 = Math.min(x, y2);
3029
+ const len2 = Math.min(x2, y2);
3030
3030
  const thisCopy = this.slice(thisStart, thisEnd);
3031
3031
  const targetCopy = target.slice(start2, end2);
3032
3032
  for (let i2 = 0; i2 < len2; ++i2) {
3033
3033
  if (thisCopy[i2] !== targetCopy[i2]) {
3034
- x = thisCopy[i2];
3034
+ x2 = thisCopy[i2];
3035
3035
  y2 = targetCopy[i2];
3036
3036
  break;
3037
3037
  }
3038
3038
  }
3039
- if (x < y2) return -1;
3040
- if (y2 < x) return 1;
3039
+ if (x2 < y2) return -1;
3040
+ if (y2 < x2) return 1;
3041
3041
  return 0;
3042
3042
  };
3043
3043
  function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
@@ -4609,15 +4609,15 @@ function requireGetProto() {
4609
4609
  var reflectGetProto = requireReflect_getPrototypeOf();
4610
4610
  var originalGetProto = requireObject_getPrototypeOf();
4611
4611
  var getDunderProto = /* @__PURE__ */ requireGet();
4612
- getProto = reflectGetProto ? function getProto2(O2) {
4613
- return reflectGetProto(O2);
4614
- } : originalGetProto ? function getProto2(O2) {
4615
- if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
4612
+ getProto = reflectGetProto ? function getProto2(O) {
4613
+ return reflectGetProto(O);
4614
+ } : originalGetProto ? function getProto2(O) {
4615
+ if (!O || typeof O !== "object" && typeof O !== "function") {
4616
4616
  throw new TypeError("getProto: not an object");
4617
4617
  }
4618
- return originalGetProto(O2);
4619
- } : getDunderProto ? function getProto2(O2) {
4620
- return getDunderProto(O2);
4618
+ return originalGetProto(O);
4619
+ } : getDunderProto ? function getProto2(O) {
4620
+ return getDunderProto(O);
4621
4621
  } : null;
4622
4622
  return getProto;
4623
4623
  }
@@ -5295,8 +5295,8 @@ function requireForEach() {
5295
5295
  }
5296
5296
  }
5297
5297
  };
5298
- function isArray2(x) {
5299
- return toStr.call(x) === "[object Array]";
5298
+ function isArray2(x2) {
5299
+ return toStr.call(x2) === "[object Array]";
5300
5300
  }
5301
5301
  forEach = function forEach22(list, iterator, thisArg) {
5302
5302
  if (!isCallable2(iterator)) {
@@ -5905,10 +5905,10 @@ function requireUtil() {
5905
5905
  var i = 1;
5906
5906
  var args = arguments;
5907
5907
  var len = args.length;
5908
- var str = String(f2).replace(formatRegExp, function(x2) {
5909
- if (x2 === "%%") return "%";
5910
- if (i >= len) return x2;
5911
- switch (x2) {
5908
+ var str = String(f2).replace(formatRegExp, function(x3) {
5909
+ if (x3 === "%%") return "%";
5910
+ if (i >= len) return x3;
5911
+ switch (x3) {
5912
5912
  case "%s":
5913
5913
  return String(args[i++]);
5914
5914
  case "%d":
@@ -5920,14 +5920,14 @@ function requireUtil() {
5920
5920
  return "[Circular]";
5921
5921
  }
5922
5922
  default:
5923
- return x2;
5923
+ return x3;
5924
5924
  }
5925
5925
  });
5926
- for (var x = args[i]; i < len; x = args[++i]) {
5927
- if (isNull(x) || !isObject2(x)) {
5928
- str += " " + x;
5926
+ for (var x2 = args[i]; i < len; x2 = args[++i]) {
5927
+ if (isNull(x2) || !isObject2(x2)) {
5928
+ str += " " + x2;
5929
5929
  } else {
5930
- str += " " + inspect(x);
5930
+ str += " " + inspect(x2);
5931
5931
  }
5932
5932
  }
5933
5933
  return str;
@@ -6140,7 +6140,7 @@ function requireUtil() {
6140
6140
  }
6141
6141
  function formatArray(ctx2, value, recurseTimes, visibleKeys, keys2) {
6142
6142
  var output = [];
6143
- for (var i = 0, l3 = value.length; i < l3; ++i) {
6143
+ for (var i = 0, l = value.length; i < l; ++i) {
6144
6144
  if (hasOwnProperty2(value, String(i))) {
6145
6145
  output.push(formatProperty(
6146
6146
  ctx2,
@@ -7239,8 +7239,8 @@ function require_stream_writable() {
7239
7239
  state2.bufferProcessing = true;
7240
7240
  var entry = state2.bufferedRequest;
7241
7241
  if (stream._writev && entry && entry.next) {
7242
- var l3 = state2.bufferedRequestCount;
7243
- var buffer2 = new Array(l3);
7242
+ var l = state2.bufferedRequestCount;
7243
+ var buffer2 = new Array(l);
7244
7244
  var holder = state2.corkedRequestsFree;
7245
7245
  holder.entry = entry;
7246
7246
  var count = 0;
@@ -8790,9 +8790,9 @@ function require_stream_readable() {
8790
8790
  return from2(Readable, iterable, opts);
8791
8791
  };
8792
8792
  }
8793
- function indexOf(xs, x) {
8794
- for (var i = 0, l3 = xs.length; i < l3; i++) {
8795
- if (xs[i] === x) return i;
8793
+ function indexOf(xs, x2) {
8794
+ for (var i = 0, l = xs.length; i < l; i++) {
8795
+ if (xs[i] === x2) return i;
8796
8796
  }
8797
8797
  return -1;
8798
8798
  }
@@ -9171,7 +9171,7 @@ function requireSax() {
9171
9171
  function checkBufferLength(parser) {
9172
9172
  var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
9173
9173
  var maxActual = 0;
9174
- for (var i = 0, l3 = buffers.length; i < l3; i++) {
9174
+ for (var i = 0, l = buffers.length; i < l; i++) {
9175
9175
  var len = parser[buffers[i]].length;
9176
9176
  if (len > maxAllowed) {
9177
9177
  switch (buffers[i]) {
@@ -9196,7 +9196,7 @@ function requireSax() {
9196
9196
  parser.bufferCheckPosition = m2 + parser.position;
9197
9197
  }
9198
9198
  function clearBuffers(parser) {
9199
- for (var i = 0, l3 = buffers.length; i < l3; i++) {
9199
+ for (var i = 0, l = buffers.length; i < l; i++) {
9200
9200
  parser[buffers[i]] = "";
9201
9201
  }
9202
9202
  }
@@ -9250,27 +9250,27 @@ function requireSax() {
9250
9250
  this._parser = new SAXParser(strict, opt);
9251
9251
  this.writable = true;
9252
9252
  this.readable = true;
9253
- var me = this;
9253
+ var me2 = this;
9254
9254
  this._parser.onend = function() {
9255
- me.emit("end");
9255
+ me2.emit("end");
9256
9256
  };
9257
9257
  this._parser.onerror = function(er) {
9258
- me.emit("error", er);
9259
- me._parser.error = null;
9258
+ me2.emit("error", er);
9259
+ me2._parser.error = null;
9260
9260
  };
9261
9261
  this._decoder = null;
9262
9262
  streamWraps.forEach(function(ev) {
9263
- Object.defineProperty(me, "on" + ev, {
9263
+ Object.defineProperty(me2, "on" + ev, {
9264
9264
  get: function() {
9265
- return me._parser["on" + ev];
9265
+ return me2._parser["on" + ev];
9266
9266
  },
9267
9267
  set: function(h2) {
9268
9268
  if (!h2) {
9269
- me.removeAllListeners(ev);
9270
- me._parser["on" + ev] = h2;
9269
+ me2.removeAllListeners(ev);
9270
+ me2._parser["on" + ev] = h2;
9271
9271
  return h2;
9272
9272
  }
9273
- me.on(ev, h2);
9273
+ me2.on(ev, h2);
9274
9274
  },
9275
9275
  enumerable: true,
9276
9276
  configurable: false
@@ -9302,15 +9302,15 @@ function requireSax() {
9302
9302
  return true;
9303
9303
  };
9304
9304
  SAXStream.prototype.on = function(ev, handler2) {
9305
- var me = this;
9306
- if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9307
- me._parser["on" + ev] = function() {
9305
+ var me2 = this;
9306
+ if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
9307
+ me2._parser["on" + ev] = function() {
9308
9308
  var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
9309
9309
  args.splice(0, 0, ev);
9310
- me.emit.apply(me, args);
9310
+ me2.emit.apply(me2, args);
9311
9311
  };
9312
9312
  }
9313
- return Stream.prototype.on.call(me, ev, handler2);
9313
+ return Stream.prototype.on.call(me2, ev, handler2);
9314
9314
  };
9315
9315
  var CDATA = "[CDATA[";
9316
9316
  var DOCTYPE = "DOCTYPE";
@@ -9816,7 +9816,7 @@ function requireSax() {
9816
9816
  });
9817
9817
  });
9818
9818
  }
9819
- for (var i = 0, l3 = parser.attribList.length; i < l3; i++) {
9819
+ for (var i = 0, l = parser.attribList.length; i < l; i++) {
9820
9820
  var nv = parser.attribList[i];
9821
9821
  var name = nv[0];
9822
9822
  var value = nv[1];
@@ -9902,9 +9902,9 @@ function requireSax() {
9902
9902
  var tag = parser.tag = parser.tags.pop();
9903
9903
  parser.tagName = parser.tag.name;
9904
9904
  emitNode(parser, "onclosetag", parser.tagName);
9905
- var x = {};
9905
+ var x2 = {};
9906
9906
  for (var i in tag.ns) {
9907
- x[i] = tag.ns[i];
9907
+ x2[i] = tag.ns[i];
9908
9908
  }
9909
9909
  var parent = parser.tags[parser.tags.length - 1] || parser;
9910
9910
  if (parser.opt.xmlns && tag.ns !== parent.ns) {
@@ -11384,8 +11384,8 @@ function v4(options, buf, offset2) {
11384
11384
  rnds[8] = rnds[8] & 63 | 128;
11385
11385
  return unsafeStringify(rnds);
11386
11386
  }
11387
- function getDefaultExportFromCjs(x) {
11388
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
11387
+ function getDefaultExportFromCjs(x2) {
11388
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
11389
11389
  }
11390
11390
  const CRC_TABLE = new Int32Array([
11391
11391
  0,
@@ -15201,8 +15201,8 @@ function polygonToObj(polygonNode) {
15201
15201
  const points = [];
15202
15202
  polygonNode.elements.forEach((element) => {
15203
15203
  if (["wp:start", "wp:lineTo"].includes(element.name)) {
15204
- const { x, y: y2 } = element.attributes;
15205
- points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
15204
+ const { x: x2, y: y2 } = element.attributes;
15205
+ points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
15206
15206
  }
15207
15207
  });
15208
15208
  if (points.length > 1) {
@@ -15225,13 +15225,13 @@ function objToPolygon(points) {
15225
15225
  elements: []
15226
15226
  };
15227
15227
  points.forEach((point, index2) => {
15228
- const [x, y2] = point;
15228
+ const [x2, y2] = point;
15229
15229
  const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
15230
15230
  const pointNode = {
15231
15231
  name: tagName,
15232
15232
  type: tagName,
15233
15233
  attributes: {
15234
- x: pixelsToPolygonUnits(x),
15234
+ x: pixelsToPolygonUnits(x2),
15235
15235
  y: pixelsToPolygonUnits(y2)
15236
15236
  }
15237
15237
  };
@@ -22889,7 +22889,7 @@ function posToDOMRect(view, from2, to) {
22889
22889
  const right2 = Math.max(start2.right, end2.right);
22890
22890
  const width = right2 - left2;
22891
22891
  const height = bottom2 - top2;
22892
- const x = left2;
22892
+ const x2 = left2;
22893
22893
  const y2 = top2;
22894
22894
  const data = {
22895
22895
  top: top2,
@@ -22898,7 +22898,7 @@ function posToDOMRect(view, from2, to) {
22898
22898
  right: right2,
22899
22899
  width,
22900
22900
  height,
22901
- x,
22901
+ x: x2,
22902
22902
  y: y2
22903
22903
  };
22904
22904
  return {
@@ -22987,39 +22987,39 @@ function createDocFromHTML(content, schema, options = {}) {
22987
22987
  function L() {
22988
22988
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
22989
22989
  }
22990
- var O = L();
22991
- function G(l3) {
22992
- O = l3;
22990
+ var T = L();
22991
+ function G(u3) {
22992
+ T = u3;
22993
22993
  }
22994
- var E = { exec: () => null };
22995
- function h(l3, e = "") {
22996
- let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i) => {
22994
+ var I = { exec: () => null };
22995
+ function h(u3, e = "") {
22996
+ let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r2, i) => {
22997
22997
  let s2 = typeof i == "string" ? i : i.source;
22998
22998
  return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
22999
22999
  }, getRegex: () => new RegExp(t, e) };
23000
23000
  return n;
23001
23001
  }
23002
- var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie$2 = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K$1, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
23003
- ]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
23004
- var Xe = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (l3) => Xe[l3];
23005
- function w(l3, e) {
23002
+ var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = h(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), we = h(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, $e = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = { ...K$1, lheading: we, table: re, paragraph: h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Me = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
23003
+ ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h(/link|code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code", /(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h(ce, "u").replace(/punct/g, D).getRegex(), De = h(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ne = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Xe = { ...N, br: h(le).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Le, pedantic: Me }, M$1 = { normal: X, gfm: N, breaks: Xe, pedantic: We };
23004
+ var Je = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ge = (u3) => Je[u3];
23005
+ function w(u3, e) {
23006
23006
  if (e) {
23007
- if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
23008
- } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
23009
- return l3;
23007
+ if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
23008
+ } else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
23009
+ return u3;
23010
23010
  }
23011
- function J(l3) {
23011
+ function J(u3) {
23012
23012
  try {
23013
- l3 = encodeURI(l3).replace(m.percentDecode, "%");
23013
+ u3 = encodeURI(u3).replace(m.percentDecode, "%");
23014
23014
  } catch {
23015
23015
  return null;
23016
23016
  }
23017
- return l3;
23017
+ return u3;
23018
23018
  }
23019
- function V(l3, e) {
23020
- let t = l3.replace(m.findPipe, (i, s2, o) => {
23021
- let a = false, u = s2;
23022
- for (; --u >= 0 && o[u] === "\\"; ) a = !a;
23019
+ function V(u3, e) {
23020
+ let t = u3.replace(m.findPipe, (i, s2, o) => {
23021
+ let a = false, l = s2;
23022
+ for (; --l >= 0 && o[l] === "\\"; ) a = !a;
23023
23023
  return a ? "|" : " |";
23024
23024
  }), n = t.split(m.splitPipe), r2 = 0;
23025
23025
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
@@ -23027,33 +23027,33 @@ function V(l3, e) {
23027
23027
  for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
23028
23028
  return n;
23029
23029
  }
23030
- function z(l3, e, t) {
23031
- let n = l3.length;
23030
+ function z(u3, e, t) {
23031
+ let n = u3.length;
23032
23032
  if (n === 0) return "";
23033
23033
  let r2 = 0;
23034
23034
  for (; r2 < n; ) {
23035
- let i = l3.charAt(n - r2 - 1);
23035
+ let i = u3.charAt(n - r2 - 1);
23036
23036
  if (i === e && true) r2++;
23037
23037
  else break;
23038
23038
  }
23039
- return l3.slice(0, n - r2);
23039
+ return u3.slice(0, n - r2);
23040
23040
  }
23041
- function ge(l3, e) {
23042
- if (l3.indexOf(e[1]) === -1) return -1;
23041
+ function fe(u3, e) {
23042
+ if (u3.indexOf(e[1]) === -1) return -1;
23043
23043
  let t = 0;
23044
- for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
23045
- else if (l3[n] === e[0]) t++;
23046
- else if (l3[n] === e[1] && (t--, t < 0)) return n;
23044
+ for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
23045
+ else if (u3[n] === e[0]) t++;
23046
+ else if (u3[n] === e[1] && (t--, t < 0)) return n;
23047
23047
  return t > 0 ? -2 : -1;
23048
23048
  }
23049
- function fe(l3, e, t, n, r2) {
23050
- let i = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
23049
+ function me(u3, e, t, n, r2) {
23050
+ let i = e.href, s2 = e.title || null, o = u3[1].replace(r2.other.outputLinkReplace, "$1");
23051
23051
  n.state.inLink = true;
23052
- let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
23052
+ let a = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
23053
23053
  return n.state.inLink = false, a;
23054
23054
  }
23055
- function Je(l3, e, t) {
23056
- let n = l3.match(t.other.indentCodeCompensation);
23055
+ function Ve(u3, e, t) {
23056
+ let n = u3.match(t.other.indentCodeCompensation);
23057
23057
  if (n === null) return e;
23058
23058
  let r2 = n[1];
23059
23059
  return e.split(`
@@ -23070,7 +23070,7 @@ var y = class {
23070
23070
  __publicField$2(this, "options");
23071
23071
  __publicField$2(this, "rules");
23072
23072
  __publicField$2(this, "lexer");
23073
- this.options = e || O;
23073
+ this.options = e || T;
23074
23074
  }
23075
23075
  space(e) {
23076
23076
  let t = this.rules.block.newline.exec(e);
@@ -23087,7 +23087,7 @@ var y = class {
23087
23087
  fences(e) {
23088
23088
  let t = this.rules.block.fences.exec(e);
23089
23089
  if (t) {
23090
- let n = t[0], r2 = Je(n, t[3] || "", this.rules);
23090
+ let n = t[0], r2 = Ve(n, t[3] || "", this.rules);
23091
23091
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
23092
23092
  }
23093
23093
  }
@@ -23114,32 +23114,32 @@ var y = class {
23114
23114
  `).split(`
23115
23115
  `), r2 = "", i = "", s2 = [];
23116
23116
  for (; n.length > 0; ) {
23117
- let o = false, a = [], u;
23118
- for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
23119
- else if (!o) a.push(n[u]);
23117
+ let o = false, a = [], l;
23118
+ for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a.push(n[l]), o = true;
23119
+ else if (!o) a.push(n[l]);
23120
23120
  else break;
23121
- n = n.slice(u);
23122
- let p = a.join(`
23123
- `), c2 = p.replace(this.rules.other.blockquoteSetextReplace, `
23121
+ n = n.slice(l);
23122
+ let c2 = a.join(`
23123
+ `), p = c2.replace(this.rules.other.blockquoteSetextReplace, `
23124
23124
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
23125
23125
  r2 = r2 ? `${r2}
23126
- ${p}` : p, i = i ? `${i}
23127
- ${c2}` : c2;
23128
- let f2 = this.lexer.state.top;
23129
- if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
23130
- let k2 = s2.at(-1);
23131
- if (k2?.type === "code") break;
23132
- if (k2?.type === "blockquote") {
23133
- let x = k2, g = x.raw + `
23126
+ ${c2}` : c2, i = i ? `${i}
23127
+ ${p}` : p;
23128
+ let g = this.lexer.state.top;
23129
+ if (this.lexer.state.top = true, this.lexer.blockTokens(p, s2, true), this.lexer.state.top = g, n.length === 0) break;
23130
+ let d2 = s2.at(-1);
23131
+ if (d2?.type === "code") break;
23132
+ if (d2?.type === "blockquote") {
23133
+ let R = d2, f2 = R.raw + `
23134
23134
  ` + n.join(`
23135
- `), T = this.blockquote(g);
23136
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
23135
+ `), O = this.blockquote(f2);
23136
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
23137
23137
  break;
23138
- } else if (k2?.type === "list") {
23139
- let x = k2, g = x.raw + `
23138
+ } else if (d2?.type === "list") {
23139
+ let R = d2, f2 = R.raw + `
23140
23140
  ` + n.join(`
23141
- `), T = this.list(g);
23142
- s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
23141
+ `), O = this.list(f2);
23142
+ s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - d2.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
23143
23143
  `);
23144
23144
  continue;
23145
23145
  }
@@ -23154,43 +23154,43 @@ ${c2}` : c2;
23154
23154
  n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
23155
23155
  let s2 = this.rules.other.listItemRegex(n), o = false;
23156
23156
  for (; e; ) {
23157
- let u = false, p = "", c2 = "";
23157
+ let l = false, c2 = "", p = "";
23158
23158
  if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
23159
- p = t[0], e = e.substring(p.length);
23160
- let f2 = t[2].split(`
23161
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
23162
- `, 1)[0], x = !f2.trim(), g = 0;
23163
- if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p += k2 + `
23164
- `, e = e.substring(k2.length + 1), u = true), !u) {
23165
- let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
23159
+ c2 = t[0], e = e.substring(c2.length);
23160
+ let g = t[2].split(`
23161
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d2 = e.split(`
23162
+ `, 1)[0], R = !g.trim(), f2 = 0;
23163
+ if (this.options.pedantic ? (f2 = 2, p = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, p = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(d2) && (c2 += d2 + `
23164
+ `, e = e.substring(d2.length + 1), l = true), !l) {
23165
+ let H = this.rules.other.nextBulletRegex(f2), ee = this.rules.other.hrRegex(f2), te = this.rules.other.fencesBeginRegex(f2), ne = this.rules.other.headingBeginRegex(f2), xe = this.rules.other.htmlBeginRegex(f2);
23166
23166
  for (; e; ) {
23167
23167
  let Z = e.split(`
23168
23168
  `, 1)[0], A2;
23169
- if (k2 = Z, this.options.pedantic ? (k2 = k2.replace(this.rules.other.listReplaceNesting, " "), A2 = k2) : A2 = k2.replace(this.rules.other.tabCharGlobal, " "), te.test(k2) || ne.test(k2) || me.test(k2) || H.test(k2) || ee.test(k2)) break;
23170
- if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
23171
- ` + A2.slice(g);
23169
+ if (d2 = Z, this.options.pedantic ? (d2 = d2.replace(this.rules.other.listReplaceNesting, " "), A2 = d2) : A2 = d2.replace(this.rules.other.tabCharGlobal, " "), te.test(d2) || ne.test(d2) || xe.test(d2) || H.test(d2) || ee.test(d2)) break;
23170
+ if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !d2.trim()) p += `
23171
+ ` + A2.slice(f2);
23172
23172
  else {
23173
- if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
23174
- c2 += `
23175
- ` + k2;
23173
+ if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
23174
+ p += `
23175
+ ` + d2;
23176
23176
  }
23177
- !x && !k2.trim() && (x = true), p += Z + `
23178
- `, e = e.substring(Z.length + 1), f2 = A2.slice(g);
23177
+ !R && !d2.trim() && (R = true), c2 += Z + `
23178
+ `, e = e.substring(Z.length + 1), g = A2.slice(f2);
23179
23179
  }
23180
23180
  }
23181
- i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
23182
- let T = null, Y2;
23183
- this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += p;
23181
+ i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(c2) && (o = true));
23182
+ let O = null, Y2;
23183
+ this.options.gfm && (O = this.rules.other.listIsTask.exec(p), O && (Y2 = O[0] !== "[ ] ", p = p.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: c2, task: !!O, checked: Y2, loose: false, text: p, tokens: [] }), i.raw += c2;
23184
23184
  }
23185
23185
  let a = i.items.at(-1);
23186
23186
  if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
23187
23187
  else return;
23188
23188
  i.raw = i.raw.trimEnd();
23189
- for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
23190
- let p = i.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p.length > 0 && p.some((f2) => this.rules.other.anyLine.test(f2.raw));
23191
- i.loose = c2;
23189
+ for (let l = 0; l < i.items.length; l++) if (this.lexer.state.top = false, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
23190
+ let c2 = i.items[l].tokens.filter((g) => g.type === "space"), p = c2.length > 0 && c2.some((g) => this.rules.other.anyLine.test(g.raw));
23191
+ i.loose = p;
23192
23192
  }
23193
- if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
23193
+ if (i.loose) for (let l = 0; l < i.items.length; l++) i.items[l].loose = true;
23194
23194
  return i;
23195
23195
  }
23196
23196
  }
@@ -23213,7 +23213,7 @@ ${c2}` : c2;
23213
23213
  if (n.length === r2.length) {
23214
23214
  for (let o of r2) this.rules.other.tableAlignRight.test(o) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s2.align.push("left") : s2.align.push(null);
23215
23215
  for (let o = 0; o < n.length; o++) s2.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s2.align[o] });
23216
- for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[u] })));
23216
+ for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, l) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[l] })));
23217
23217
  return s2;
23218
23218
  }
23219
23219
  }
@@ -23250,7 +23250,7 @@ ${c2}` : c2;
23250
23250
  let s2 = z(n.slice(0, -1), "\\");
23251
23251
  if ((n.length - s2.length) % 2 === 0) return;
23252
23252
  } else {
23253
- let s2 = ge(t[2], "()");
23253
+ let s2 = fe(t[2], "()");
23254
23254
  if (s2 === -2) return;
23255
23255
  if (s2 > -1) {
23256
23256
  let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
@@ -23262,7 +23262,7 @@ ${c2}` : c2;
23262
23262
  let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
23263
23263
  s2 && (r2 = s2[1], i = s2[3]);
23264
23264
  } else i = t[3] ? t[3].slice(1, -1) : "";
23265
- return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23265
+ return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), me(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
23266
23266
  }
23267
23267
  }
23268
23268
  reflink(e, t) {
@@ -23273,32 +23273,32 @@ ${c2}` : c2;
23273
23273
  let s2 = n[0].charAt(0);
23274
23274
  return { type: "text", raw: s2, text: s2 };
23275
23275
  }
23276
- return fe(n, i, n[0], this.lexer, this.rules);
23276
+ return me(n, i, n[0], this.lexer, this.rules);
23277
23277
  }
23278
23278
  }
23279
23279
  emStrong(e, t, n = "") {
23280
23280
  let r2 = this.rules.inline.emStrongLDelim.exec(e);
23281
23281
  if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
23282
23282
  if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
23283
- let s2 = [...r2[0]].length - 1, o, a, u = s2, p = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23284
- for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
23283
+ let s2 = [...r2[0]].length - 1, o, a, l = s2, c2 = 0, p = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
23284
+ for (p.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = p.exec(t)) != null; ) {
23285
23285
  if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
23286
23286
  if (a = [...o].length, r2[3] || r2[4]) {
23287
- u += a;
23287
+ l += a;
23288
23288
  continue;
23289
23289
  } else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
23290
- p += a;
23290
+ c2 += a;
23291
23291
  continue;
23292
23292
  }
23293
- if (u -= a, u > 0) continue;
23294
- a = Math.min(a, a + u + p);
23295
- let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a);
23293
+ if (l -= a, l > 0) continue;
23294
+ a = Math.min(a, a + l + c2);
23295
+ let g = [...r2[0]][0].length, d2 = e.slice(0, s2 + r2.index + g + a);
23296
23296
  if (Math.min(s2, a) % 2) {
23297
- let g = k2.slice(1, -1);
23298
- return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
23297
+ let f2 = d2.slice(1, -1);
23298
+ return { type: "em", raw: d2, text: f2, tokens: this.lexer.inlineTokens(f2) };
23299
23299
  }
23300
- let x = k2.slice(2, -2);
23301
- return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
23300
+ let R = d2.slice(2, -2);
23301
+ return { type: "strong", raw: d2, text: R, tokens: this.lexer.inlineTokens(R) };
23302
23302
  }
23303
23303
  }
23304
23304
  }
@@ -23347,25 +23347,25 @@ ${c2}` : c2;
23347
23347
  }
23348
23348
  }
23349
23349
  };
23350
- var b = class l {
23350
+ var x = class u {
23351
23351
  constructor(e) {
23352
23352
  __publicField$2(this, "tokens");
23353
23353
  __publicField$2(this, "options");
23354
23354
  __publicField$2(this, "state");
23355
23355
  __publicField$2(this, "tokenizer");
23356
23356
  __publicField$2(this, "inlineQueue");
23357
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || O, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
23358
- let t = { other: m, block: I.normal, inline: M$1.normal };
23359
- this.options.pedantic ? (t.block = I.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
23357
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
23358
+ let t = { other: m, block: C.normal, inline: M$1.normal };
23359
+ this.options.pedantic ? (t.block = C.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
23360
23360
  }
23361
23361
  static get rules() {
23362
- return { block: I, inline: M$1 };
23362
+ return { block: C, inline: M$1 };
23363
23363
  }
23364
23364
  static lex(e, t) {
23365
- return new l(t).lex(e);
23365
+ return new u(t).lex(e);
23366
23366
  }
23367
23367
  static lexInline(e, t) {
23368
- return new l(t).inlineTokens(e);
23368
+ return new u(t).inlineTokens(e);
23369
23369
  }
23370
23370
  lex(e) {
23371
23371
  e = e.replace(m.carriageReturn, `
@@ -23440,8 +23440,8 @@ var b = class l {
23440
23440
  let i = e;
23441
23441
  if (this.options.extensions?.startBlock) {
23442
23442
  let s2 = 1 / 0, o = e.slice(1), a;
23443
- this.options.extensions.startBlock.forEach((u) => {
23444
- a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
23443
+ this.options.extensions.startBlock.forEach((l) => {
23444
+ a = l.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
23445
23445
  }), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
23446
23446
  }
23447
23447
  if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
@@ -23487,7 +23487,7 @@ var b = class l {
23487
23487
  for (; e; ) {
23488
23488
  i || (s2 = ""), i = false;
23489
23489
  let o;
23490
- if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
23490
+ if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
23491
23491
  if (o = this.tokenizer.escape(e)) {
23492
23492
  e = e.substring(o.raw.length), t.push(o);
23493
23493
  continue;
@@ -23502,8 +23502,8 @@ var b = class l {
23502
23502
  }
23503
23503
  if (o = this.tokenizer.reflink(e, this.tokens.links)) {
23504
23504
  e = e.substring(o.raw.length);
23505
- let u = t.at(-1);
23506
- o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23505
+ let l = t.at(-1);
23506
+ o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
23507
23507
  continue;
23508
23508
  }
23509
23509
  if (o = this.tokenizer.emStrong(e, n, s2)) {
@@ -23532,23 +23532,23 @@ var b = class l {
23532
23532
  }
23533
23533
  let a = e;
23534
23534
  if (this.options.extensions?.startInline) {
23535
- let u = 1 / 0, p = e.slice(1), c2;
23536
- this.options.extensions.startInline.forEach((f2) => {
23537
- c2 = f2.call({ lexer: this }, p), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
23538
- }), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
23535
+ let l = 1 / 0, c2 = e.slice(1), p;
23536
+ this.options.extensions.startInline.forEach((g) => {
23537
+ p = g.call({ lexer: this }, c2), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
23538
+ }), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
23539
23539
  }
23540
23540
  if (o = this.tokenizer.inlineText(a)) {
23541
23541
  e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
23542
- let u = t.at(-1);
23543
- u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
23542
+ let l = t.at(-1);
23543
+ l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
23544
23544
  continue;
23545
23545
  }
23546
23546
  if (e) {
23547
- let u = "Infinite loop on byte: " + e.charCodeAt(0);
23547
+ let l = "Infinite loop on byte: " + e.charCodeAt(0);
23548
23548
  if (this.options.silent) {
23549
- console.error(u);
23549
+ console.error(l);
23550
23550
  break;
23551
- } else throw new Error(u);
23551
+ } else throw new Error(l);
23552
23552
  }
23553
23553
  }
23554
23554
  return t;
@@ -23558,7 +23558,7 @@ var P = class {
23558
23558
  constructor(e) {
23559
23559
  __publicField$2(this, "options");
23560
23560
  __publicField$2(this, "parser");
23561
- this.options = e || O;
23561
+ this.options = e || T;
23562
23562
  }
23563
23563
  space(e) {
23564
23564
  return "";
@@ -23706,18 +23706,18 @@ var $ = class {
23706
23706
  return "";
23707
23707
  }
23708
23708
  };
23709
- var R = class l2 {
23709
+ var b = class u2 {
23710
23710
  constructor(e) {
23711
23711
  __publicField$2(this, "options");
23712
23712
  __publicField$2(this, "renderer");
23713
23713
  __publicField$2(this, "textRenderer");
23714
- this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
23714
+ this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
23715
23715
  }
23716
23716
  static parse(e, t) {
23717
- return new l2(t).parse(e);
23717
+ return new u2(t).parse(e);
23718
23718
  }
23719
23719
  static parseInline(e, t) {
23720
- return new l2(t).parseInline(e);
23720
+ return new u2(t).parseInline(e);
23721
23721
  }
23722
23722
  parse(e, t = true) {
23723
23723
  let n = "";
@@ -23855,7 +23855,7 @@ var S = (_a = class {
23855
23855
  constructor(e) {
23856
23856
  __publicField$2(this, "options");
23857
23857
  __publicField$2(this, "block");
23858
- this.options = e || O;
23858
+ this.options = e || T;
23859
23859
  }
23860
23860
  preprocess(e) {
23861
23861
  return e;
@@ -23870,10 +23870,10 @@ var S = (_a = class {
23870
23870
  return e;
23871
23871
  }
23872
23872
  provideLexer() {
23873
- return this.block ? b.lex : b.lexInline;
23873
+ return this.block ? x.lex : x.lexInline;
23874
23874
  }
23875
23875
  provideParser() {
23876
- return this.block ? R.parse : R.parseInline;
23876
+ return this.block ? b.parse : b.parseInline;
23877
23877
  }
23878
23878
  }, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
23879
23879
  var B = class {
@@ -23882,10 +23882,10 @@ var B = class {
23882
23882
  __publicField$2(this, "options", this.setOptions);
23883
23883
  __publicField$2(this, "parse", this.parseMarkdown(true));
23884
23884
  __publicField$2(this, "parseInline", this.parseMarkdown(false));
23885
- __publicField$2(this, "Parser", R);
23885
+ __publicField$2(this, "Parser", b);
23886
23886
  __publicField$2(this, "Renderer", P);
23887
23887
  __publicField$2(this, "TextRenderer", $);
23888
- __publicField$2(this, "Lexer", b);
23888
+ __publicField$2(this, "Lexer", x);
23889
23889
  __publicField$2(this, "Tokenizer", y);
23890
23890
  __publicField$2(this, "Hooks", S);
23891
23891
  this.use(...e);
@@ -23938,10 +23938,10 @@ var B = class {
23938
23938
  for (let s2 in n.renderer) {
23939
23939
  if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
23940
23940
  if (["options", "parser"].includes(s2)) continue;
23941
- let o = s2, a = n.renderer[o], u = i[o];
23942
- i[o] = (...p) => {
23943
- let c2 = a.apply(i, p);
23944
- return c2 === false && (c2 = u.apply(i, p)), c2 || "";
23941
+ let o = s2, a = n.renderer[o], l = i[o];
23942
+ i[o] = (...c2) => {
23943
+ let p = a.apply(i, c2);
23944
+ return p === false && (p = l.apply(i, c2)), p || "";
23945
23945
  };
23946
23946
  }
23947
23947
  r2.renderer = i;
@@ -23951,10 +23951,10 @@ var B = class {
23951
23951
  for (let s2 in n.tokenizer) {
23952
23952
  if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
23953
23953
  if (["options", "rules", "lexer"].includes(s2)) continue;
23954
- let o = s2, a = n.tokenizer[o], u = i[o];
23955
- i[o] = (...p) => {
23956
- let c2 = a.apply(i, p);
23957
- return c2 === false && (c2 = u.apply(i, p)), c2;
23954
+ let o = s2, a = n.tokenizer[o], l = i[o];
23955
+ i[o] = (...c2) => {
23956
+ let p = a.apply(i, c2);
23957
+ return p === false && (p = l.apply(i, c2)), p;
23958
23958
  };
23959
23959
  }
23960
23960
  r2.tokenizer = i;
@@ -23964,14 +23964,21 @@ var B = class {
23964
23964
  for (let s2 in n.hooks) {
23965
23965
  if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
23966
23966
  if (["options", "block"].includes(s2)) continue;
23967
- let o = s2, a = n.hooks[o], u = i[o];
23968
- S.passThroughHooks.has(s2) ? i[o] = (p) => {
23969
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a.call(i, p)).then((f2) => u.call(i, f2));
23970
- let c2 = a.call(i, p);
23971
- return u.call(i, c2);
23972
- } : i[o] = (...p) => {
23973
- let c2 = a.apply(i, p);
23974
- return c2 === false && (c2 = u.apply(i, p)), c2;
23967
+ let o = s2, a = n.hooks[o], l = i[o];
23968
+ S.passThroughHooks.has(s2) ? i[o] = (c2) => {
23969
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
23970
+ let g = await a.call(i, c2);
23971
+ return l.call(i, g);
23972
+ })();
23973
+ let p = a.call(i, c2);
23974
+ return l.call(i, p);
23975
+ } : i[o] = (...c2) => {
23976
+ if (this.defaults.async) return (async () => {
23977
+ let g = await a.apply(i, c2);
23978
+ return g === false && (g = await l.apply(i, c2)), g;
23979
+ })();
23980
+ let p = a.apply(i, c2);
23981
+ return p === false && (p = l.apply(i, c2)), p;
23975
23982
  };
23976
23983
  }
23977
23984
  r2.hooks = i;
@@ -23990,10 +23997,10 @@ var B = class {
23990
23997
  return this.defaults = { ...this.defaults, ...e }, this;
23991
23998
  }
23992
23999
  lexer(e, t) {
23993
- return b.lex(e, t ?? this.defaults);
24000
+ return x.lex(e, t ?? this.defaults);
23994
24001
  }
23995
24002
  parser(e, t) {
23996
- return R.parse(e, t ?? this.defaults);
24003
+ return b.parse(e, t ?? this.defaults);
23997
24004
  }
23998
24005
  parseMarkdown(e) {
23999
24006
  return (n, r2) => {
@@ -24001,17 +24008,20 @@ var B = class {
24001
24008
  if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
24002
24009
  if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
24003
24010
  if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
24004
- s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
24005
- let a = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
24006
- if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p) => a(p, s2)).then((p) => s2.hooks ? s2.hooks.processAllTokens(p) : p).then((p) => s2.walkTokens ? Promise.all(this.walkTokens(p, s2.walkTokens)).then(() => p) : p).then((p) => u(p, s2)).then((p) => s2.hooks ? s2.hooks.postprocess(p) : p).catch(o);
24011
+ if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
24012
+ let a = s2.hooks ? await s2.hooks.preprocess(n) : n, c2 = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(a, s2), p = s2.hooks ? await s2.hooks.processAllTokens(c2) : c2;
24013
+ s2.walkTokens && await Promise.all(this.walkTokens(p, s2.walkTokens));
24014
+ let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
24015
+ return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
24016
+ })().catch(o);
24007
24017
  try {
24008
24018
  s2.hooks && (n = s2.hooks.preprocess(n));
24009
- let p = a(n, s2);
24010
- s2.hooks && (p = s2.hooks.processAllTokens(p)), s2.walkTokens && this.walkTokens(p, s2.walkTokens);
24011
- let c2 = u(p, s2);
24012
- return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
24013
- } catch (p) {
24014
- return o(p);
24019
+ let l = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
24020
+ s2.hooks && (l = s2.hooks.processAllTokens(l)), s2.walkTokens && this.walkTokens(l, s2.walkTokens);
24021
+ let p = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s2);
24022
+ return s2.hooks && (p = s2.hooks.postprocess(p)), p;
24023
+ } catch (a) {
24024
+ return o(a);
24015
24025
  }
24016
24026
  };
24017
24027
  }
@@ -24028,38 +24038,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
24028
24038
  }
24029
24039
  };
24030
24040
  var _ = new B();
24031
- function d$1(l3, e) {
24032
- return _.parse(l3, e);
24033
- }
24034
- d$1.options = d$1.setOptions = function(l3) {
24035
- return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24036
- };
24037
- d$1.getDefaults = L;
24038
- d$1.defaults = O;
24039
- d$1.use = function(...l3) {
24040
- return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
24041
- };
24042
- d$1.walkTokens = function(l3, e) {
24043
- return _.walkTokens(l3, e);
24044
- };
24045
- d$1.parseInline = _.parseInline;
24046
- d$1.Parser = R;
24047
- d$1.parser = R.parse;
24048
- d$1.Renderer = P;
24049
- d$1.TextRenderer = $;
24050
- d$1.Lexer = b;
24051
- d$1.lexer = b.lex;
24052
- d$1.Tokenizer = y;
24053
- d$1.Hooks = S;
24054
- d$1.parse = d$1;
24055
- d$1.options;
24056
- d$1.setOptions;
24057
- d$1.use;
24058
- d$1.walkTokens;
24059
- d$1.parseInline;
24060
- R.parse;
24061
- b.lex;
24062
- d$1.use({
24041
+ function k$1(u3, e) {
24042
+ return _.parse(u3, e);
24043
+ }
24044
+ k$1.options = k$1.setOptions = function(u3) {
24045
+ return _.setOptions(u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24046
+ };
24047
+ k$1.getDefaults = L;
24048
+ k$1.defaults = T;
24049
+ k$1.use = function(...u3) {
24050
+ return _.use(...u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
24051
+ };
24052
+ k$1.walkTokens = function(u3, e) {
24053
+ return _.walkTokens(u3, e);
24054
+ };
24055
+ k$1.parseInline = _.parseInline;
24056
+ k$1.Parser = b;
24057
+ k$1.parser = b.parse;
24058
+ k$1.Renderer = P;
24059
+ k$1.TextRenderer = $;
24060
+ k$1.Lexer = x;
24061
+ k$1.lexer = x.lex;
24062
+ k$1.Tokenizer = y;
24063
+ k$1.Hooks = S;
24064
+ k$1.parse = k$1;
24065
+ k$1.options;
24066
+ k$1.setOptions;
24067
+ k$1.use;
24068
+ k$1.walkTokens;
24069
+ k$1.parseInline;
24070
+ b.parse;
24071
+ x.lex;
24072
+ k$1.use({
24063
24073
  breaks: false,
24064
24074
  // Use proper paragraphs, not <br> tags
24065
24075
  gfm: true
@@ -24070,7 +24080,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
24070
24080
  return createDocFromHTML(html, schema, options);
24071
24081
  }
24072
24082
  function convertMarkdownToHTML(markdown) {
24073
- let html = d$1.parse(markdown, { async: false });
24083
+ let html = k$1.parse(markdown, { async: false });
24074
24084
  return html.replace(/<\/p>\n<ul>/g, "</p>\n<p>&nbsp;</p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p>&nbsp;</p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p>&nbsp;</p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p>&nbsp;</p>\n<h");
24075
24085
  }
24076
24086
  function processContent({ content, type: type2, schema }) {
@@ -28426,6 +28436,7 @@ function extractFillColor(spPr, style2) {
28426
28436
  }
28427
28437
  const DRAWING_XML_TAG = "w:drawing";
28428
28438
  const SHAPE_URI = "http://schemas.microsoft.com/office/word/2010/wordprocessingShape";
28439
+ const GROUP_URI = "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup";
28429
28440
  function handleImageNode(node, params2, isAnchor) {
28430
28441
  const { docx, filename } = params2;
28431
28442
  const { attributes } = node;
@@ -28543,7 +28554,7 @@ function handleImageNode(node, params2, isAnchor) {
28543
28554
  const graphic = node.elements.find((el) => el.name === "a:graphic");
28544
28555
  const graphicData = graphic?.elements.find((el) => el.name === "a:graphicData");
28545
28556
  const { uri: uri2 } = graphicData?.attributes || {};
28546
- if (!!uri2 && uri2 === SHAPE_URI) {
28557
+ if (uri2 === SHAPE_URI) {
28547
28558
  const shapeMarginOffset = {
28548
28559
  left: positionHValue,
28549
28560
  horizontal: positionHValue,
@@ -28551,6 +28562,14 @@ function handleImageNode(node, params2, isAnchor) {
28551
28562
  };
28552
28563
  return handleShapeDrawing(params2, node, graphicData, size2, padding, shapeMarginOffset);
28553
28564
  }
28565
+ if (uri2 === GROUP_URI) {
28566
+ const shapeMarginOffset = {
28567
+ left: positionHValue,
28568
+ horizontal: positionHValue,
28569
+ top: positionVValue
28570
+ };
28571
+ return handleShapeGroup(params2, node, graphicData, size2, padding, shapeMarginOffset);
28572
+ }
28554
28573
  const picture = graphicData?.elements.find((el) => el.name === "pic:pic");
28555
28574
  if (!picture || !picture.elements) return null;
28556
28575
  const blipFill = picture.elements.find((el) => el.name === "pic:blipFill");
@@ -28640,6 +28659,114 @@ const handleShapeDrawing = (params2, node, graphicData, size2, padding, marginOf
28640
28659
  }
28641
28660
  return buildShapePlaceholder(node, size2, padding, marginOffset, "textbox");
28642
28661
  };
28662
+ const handleShapeGroup = (params2, node, graphicData, size2, padding, marginOffset) => {
28663
+ const wgp = graphicData.elements.find((el) => el.name === "wpg:wgp");
28664
+ if (!wgp) {
28665
+ return buildShapePlaceholder(node, size2, padding, marginOffset, "group");
28666
+ }
28667
+ const grpSpPr = wgp.elements.find((el) => el.name === "wpg:grpSpPr");
28668
+ const xfrm = grpSpPr?.elements?.find((el) => el.name === "a:xfrm");
28669
+ const groupTransform = {};
28670
+ if (xfrm) {
28671
+ const off2 = xfrm.elements?.find((el) => el.name === "a:off");
28672
+ const ext = xfrm.elements?.find((el) => el.name === "a:ext");
28673
+ const chOff = xfrm.elements?.find((el) => el.name === "a:chOff");
28674
+ const chExt = xfrm.elements?.find((el) => el.name === "a:chExt");
28675
+ if (off2) {
28676
+ groupTransform.x = emuToPixels(off2.attributes?.["x"] || 0);
28677
+ groupTransform.y = emuToPixels(off2.attributes?.["y"] || 0);
28678
+ }
28679
+ if (ext) {
28680
+ groupTransform.width = emuToPixels(ext.attributes?.["cx"] || 0);
28681
+ groupTransform.height = emuToPixels(ext.attributes?.["cy"] || 0);
28682
+ }
28683
+ if (chOff) {
28684
+ groupTransform.childX = emuToPixels(chOff.attributes?.["x"] || 0);
28685
+ groupTransform.childY = emuToPixels(chOff.attributes?.["y"] || 0);
28686
+ groupTransform.childOriginXEmu = parseFloat(chOff.attributes?.["x"] || 0);
28687
+ groupTransform.childOriginYEmu = parseFloat(chOff.attributes?.["y"] || 0);
28688
+ }
28689
+ if (chExt) {
28690
+ groupTransform.childWidth = emuToPixels(chExt.attributes?.["cx"] || 0);
28691
+ groupTransform.childHeight = emuToPixels(chExt.attributes?.["cy"] || 0);
28692
+ }
28693
+ }
28694
+ const childShapes = wgp.elements.filter((el) => el.name === "wps:wsp");
28695
+ const shapes = childShapes.map((wsp) => {
28696
+ const spPr = wsp.elements?.find((el) => el.name === "wps:spPr");
28697
+ if (!spPr) return null;
28698
+ const prstGeom = spPr.elements?.find((el) => el.name === "a:prstGeom");
28699
+ const shapeKind = prstGeom?.attributes?.["prst"];
28700
+ const shapeXfrm = spPr.elements?.find((el) => el.name === "a:xfrm");
28701
+ const shapeOff = shapeXfrm?.elements?.find((el) => el.name === "a:off");
28702
+ const shapeExt = shapeXfrm?.elements?.find((el) => el.name === "a:ext");
28703
+ const rawX = shapeOff?.attributes?.["x"] ? parseFloat(shapeOff.attributes["x"]) : 0;
28704
+ const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
28705
+ const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
28706
+ const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
28707
+ let x2, y2, width, height;
28708
+ if (groupTransform.childWidth && groupTransform.childHeight) {
28709
+ const scaleX = groupTransform.width / groupTransform.childWidth;
28710
+ const scaleY = groupTransform.height / groupTransform.childHeight;
28711
+ const childOriginX = groupTransform.childOriginXEmu || 0;
28712
+ const childOriginY = groupTransform.childOriginYEmu || 0;
28713
+ x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
28714
+ y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
28715
+ width = emuToPixels(rawWidth * scaleX);
28716
+ height = emuToPixels(rawHeight * scaleY);
28717
+ } else {
28718
+ x2 = emuToPixels(rawX);
28719
+ y2 = emuToPixels(rawY);
28720
+ width = emuToPixels(rawWidth);
28721
+ height = emuToPixels(rawHeight);
28722
+ }
28723
+ const rotation = shapeXfrm?.attributes?.["rot"] ? rotToDegrees(shapeXfrm.attributes["rot"]) : 0;
28724
+ const flipH = shapeXfrm?.attributes?.["flipH"] === "1";
28725
+ const flipV = shapeXfrm?.attributes?.["flipV"] === "1";
28726
+ const style2 = wsp.elements?.find((el) => el.name === "wps:style");
28727
+ const fillColor = extractFillColor(spPr, style2);
28728
+ const strokeColor = extractStrokeColor(spPr, style2);
28729
+ const strokeWidth = extractStrokeWidth(spPr);
28730
+ const cNvPr = wsp.elements?.find((el) => el.name === "wps:cNvPr");
28731
+ const shapeId = cNvPr?.attributes?.["id"];
28732
+ const shapeName = cNvPr?.attributes?.["name"];
28733
+ return {
28734
+ shapeType: "vectorShape",
28735
+ attrs: {
28736
+ kind: shapeKind,
28737
+ x: x2,
28738
+ y: y2,
28739
+ width,
28740
+ height,
28741
+ rotation,
28742
+ flipH,
28743
+ flipV,
28744
+ fillColor,
28745
+ strokeColor,
28746
+ strokeWidth,
28747
+ shapeId,
28748
+ shapeName
28749
+ }
28750
+ };
28751
+ }).filter(Boolean);
28752
+ const schemaAttrs = {};
28753
+ const drawingNode = params2.nodes?.[0];
28754
+ if (drawingNode?.name === DRAWING_XML_TAG) {
28755
+ schemaAttrs.drawingContent = drawingNode;
28756
+ }
28757
+ const result = {
28758
+ type: "shapeGroup",
28759
+ attrs: {
28760
+ ...schemaAttrs,
28761
+ groupTransform,
28762
+ shapes,
28763
+ size: size2,
28764
+ padding,
28765
+ marginOffset
28766
+ }
28767
+ };
28768
+ return result;
28769
+ };
28643
28770
  const getRectangleShape = (params2, node) => {
28644
28771
  const schemaAttrs = {};
28645
28772
  const [drawingNode] = params2.nodes;
@@ -29082,6 +29209,30 @@ function translateVectorShape(params2) {
29082
29209
  };
29083
29210
  return wrapTextInRun(alternateContent);
29084
29211
  }
29212
+ function translateShapeGroup(params2) {
29213
+ const { node } = params2;
29214
+ const { drawingContent } = node.attrs;
29215
+ if (drawingContent) {
29216
+ const drawing = {
29217
+ name: "w:drawing",
29218
+ elements: [...drawingContent.elements || []]
29219
+ };
29220
+ const choice = {
29221
+ name: "mc:Choice",
29222
+ attributes: { Requires: "wpg" },
29223
+ elements: [drawing]
29224
+ };
29225
+ const alternateContent = {
29226
+ name: "mc:AlternateContent",
29227
+ elements: [choice]
29228
+ };
29229
+ return wrapTextInRun(alternateContent);
29230
+ }
29231
+ return wrapTextInRun({
29232
+ name: "w:drawing",
29233
+ elements: []
29234
+ });
29235
+ }
29085
29236
  function translateAnchorNode(params2) {
29086
29237
  const { attrs } = params2.node;
29087
29238
  const anchorElements = [];
@@ -29245,11 +29396,11 @@ function translateAnchorNode(params2) {
29245
29396
  };
29246
29397
  }
29247
29398
  const XML_NODE_NAME$f = "wp:anchor";
29248
- const SD_NODE_NAME$c = ["image"];
29399
+ const SD_NODE_NAME$c = ["image", "shapeGroup", "vectorShape", "contentBlock"];
29249
29400
  const validXmlAttributes$a = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29250
29401
  function encode$l(params2) {
29251
29402
  const { node } = params2.extraParams;
29252
- if (!node || !node.type) {
29403
+ if (!node || !node.name) {
29253
29404
  return null;
29254
29405
  }
29255
29406
  return handleAnchorNode(params2);
@@ -29286,11 +29437,11 @@ function translateInlineNode(params2) {
29286
29437
  };
29287
29438
  }
29288
29439
  const XML_NODE_NAME$e = "wp:inline";
29289
- const SD_NODE_NAME$b = ["image"];
29440
+ const SD_NODE_NAME$b = ["image", "shapeGroup", "vectorShape", "contentBlock"];
29290
29441
  const validXmlAttributes$9 = ["distT", "distB", "distL", "distR"].map((xmlName) => createAttributeHandler(xmlName));
29291
29442
  function encode$k(params2) {
29292
29443
  const { node } = params2.extraParams;
29293
- if (!node || !node.type) {
29444
+ if (!node || !node.name) {
29294
29445
  return null;
29295
29446
  }
29296
29447
  return handleInlineNode(params2);
@@ -32711,6 +32862,7 @@ const bookmarkEndNodeHandlerEntity = {
32711
32862
  };
32712
32863
  const SUPPORTED_ALTERNATE_CONTENT_REQUIRES = /* @__PURE__ */ new Set([
32713
32864
  "wps",
32865
+ "wpg",
32714
32866
  "wp14",
32715
32867
  "w14",
32716
32868
  "w15",
@@ -34371,6 +34523,7 @@ function exportSchemaToJson(params2) {
34371
34523
  shapeTextbox: translator,
34372
34524
  contentBlock: translator,
34373
34525
  vectorShape: translateVectorShape,
34526
+ shapeGroup: translateShapeGroup,
34374
34527
  structuredContent: translator$r,
34375
34528
  structuredContentBlock: translator$r,
34376
34529
  documentPartObject: translator$r,
@@ -35383,7 +35536,6 @@ const mergeRelationshipElements = (existingRelationships = [], newRelationships
35383
35536
  const currentId = attributes.Id || "";
35384
35537
  attributes.Target = attributes?.Target?.replace(/&/g, "&amp;");
35385
35538
  const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
35386
- attributes.Target?.startsWith("media/");
35387
35539
  const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
35388
35540
  const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
35389
35541
  const hasSeenId = currentId && seenIds.has(currentId);
@@ -35612,7 +35764,7 @@ const _SuperConverter = class _SuperConverter2 {
35612
35764
  static getStoredSuperdocVersion(docx) {
35613
35765
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
35614
35766
  }
35615
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0") {
35767
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.30.0-next.1") {
35616
35768
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
35617
35769
  }
35618
35770
  /**
@@ -36003,7 +36155,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
36003
36155
  };
36004
36156
  exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36005
36157
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36006
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36158
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36007
36159
  const newDocRels = [];
36008
36160
  Object.entries(this.headers).forEach(([id, header], index2) => {
36009
36161
  const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
@@ -36044,7 +36196,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36044
36196
  }
36045
36197
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36046
36198
  if (params2.relationships.length) {
36047
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36199
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36048
36200
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36049
36201
  declaration: this.initialJSON?.declaration,
36050
36202
  elements: [
@@ -36098,7 +36250,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36098
36250
  }
36099
36251
  this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
36100
36252
  if (params2.relationships.length) {
36101
- const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
36253
+ const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
36102
36254
  this.convertedXml[`word/_rels/${fileName}.rels`] = {
36103
36255
  declaration: this.initialJSON?.declaration,
36104
36256
  elements: [
@@ -36117,7 +36269,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
36117
36269
  };
36118
36270
  exportProcessNewRelationships_fn = function(rels = []) {
36119
36271
  const relsData = this.convertedXml["word/_rels/document.xml.rels"];
36120
- const relationships = relsData.elements.find((x) => x.name === "Relationships");
36272
+ const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
36121
36273
  relationships.elements = mergeRelationshipElements(relationships.elements, rels);
36122
36274
  };
36123
36275
  exportProcessMediaFiles_fn = async function(media = {}) {
@@ -36202,37 +36354,37 @@ function requireJszip_min() {
36202
36354
  module2.exports = e();
36203
36355
  })(function() {
36204
36356
  return (function s2(a, o, h2) {
36205
- function u(r2, e2) {
36357
+ function u3(r2, e2) {
36206
36358
  if (!o[r2]) {
36207
36359
  if (!a[r2]) {
36208
36360
  var t = "function" == typeof commonjsRequire && commonjsRequire;
36209
36361
  if (!e2 && t) return t(r2, true);
36210
- if (l3) return l3(r2, true);
36362
+ if (l) return l(r2, true);
36211
36363
  var n = new Error("Cannot find module '" + r2 + "'");
36212
36364
  throw n.code = "MODULE_NOT_FOUND", n;
36213
36365
  }
36214
36366
  var i = o[r2] = { exports: {} };
36215
36367
  a[r2][0].call(i.exports, function(e3) {
36216
36368
  var t2 = a[r2][1][e3];
36217
- return u(t2 || e3);
36369
+ return u3(t2 || e3);
36218
36370
  }, i, i.exports, s2, a, o, h2);
36219
36371
  }
36220
36372
  return o[r2].exports;
36221
36373
  }
36222
- for (var l3 = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u(h2[e]);
36223
- return u;
36374
+ for (var l = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u3(h2[e]);
36375
+ return u3;
36224
36376
  })({ 1: [function(e, t, r2) {
36225
36377
  var d2 = e("./utils"), c2 = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
36226
36378
  r2.encode = function(e2) {
36227
- for (var t2, r22, n, i, s2, a, o, h2 = [], u = 0, l3 = e2.length, f2 = l3, c22 = "string" !== d2.getTypeOf(e2); u < e2.length; ) f2 = l3 - u, n = c22 ? (t2 = e2[u++], r22 = u < l3 ? e2[u++] : 0, u < l3 ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r22 = u < l3 ? e2.charCodeAt(u++) : 0, u < l3 ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
36379
+ for (var t2, r22, n, i, s2, a, o, h2 = [], u3 = 0, l = e2.length, f2 = l, c22 = "string" !== d2.getTypeOf(e2); u3 < e2.length; ) f2 = l - u3, n = c22 ? (t2 = e2[u3++], r22 = u3 < l ? e2[u3++] : 0, u3 < l ? e2[u3++] : 0) : (t2 = e2.charCodeAt(u3++), r22 = u3 < l ? e2.charCodeAt(u3++) : 0, u3 < l ? e2.charCodeAt(u3++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
36228
36380
  return h2.join("");
36229
36381
  }, r2.decode = function(e2) {
36230
- var t2, r22, n, i, s2, a, o = 0, h2 = 0, u = "data:";
36231
- if (e2.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
36232
- var l3, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
36382
+ var t2, r22, n, i, s2, a, o = 0, h2 = 0, u3 = "data:";
36383
+ if (e2.substr(0, u3.length) === u3) throw new Error("Invalid base64 input, it looks like a data url.");
36384
+ var l, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
36233
36385
  if (e2.charAt(e2.length - 1) === p.charAt(64) && f2--, e2.charAt(e2.length - 2) === p.charAt(64) && f2--, f2 % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
36234
- for (l3 = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l3[h2++] = t2, 64 !== s2 && (l3[h2++] = r22), 64 !== a && (l3[h2++] = n);
36235
- return l3;
36386
+ for (l = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l[h2++] = t2, 64 !== s2 && (l[h2++] = r22), 64 !== a && (l[h2++] = n);
36387
+ return l;
36236
36388
  };
36237
36389
  }, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r2) {
36238
36390
  var n = e("./external"), i = e("./stream/DataWorker"), s2 = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
@@ -36313,10 +36465,10 @@ function requireJszip_min() {
36313
36465
  return n2;
36314
36466
  }
36315
36467
  function n(e2, t2, r22, n2, i2, s22) {
36316
- var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36317
- t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
36468
+ var a, o, h2 = e2.file, u3 = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
36469
+ t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
36318
36470
  var S2 = 0;
36319
- t2 && (S2 |= 8), l3 || !_2 && !g || (S2 |= 2048);
36471
+ t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
36320
36472
  var z2 = 0, C2 = 0;
36321
36473
  w2 && (z2 |= 16), "UNIX" === i2 ? (C2 = 798, z2 |= (function(e3, t3) {
36322
36474
  var r3 = e3;
@@ -36325,9 +36477,9 @@ function requireJszip_min() {
36325
36477
  return 63 & (e3 || 0);
36326
36478
  })(h2.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
36327
36479
  var E2 = "";
36328
- return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36480
+ return E2 += "\n\0", E2 += A2(S2, 2), E2 += u3.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
36329
36481
  }
36330
- var I2 = e("../utils"), i = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
36482
+ var I2 = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
36331
36483
  function s2(e2, t2, r22, n2) {
36332
36484
  i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
36333
36485
  }
@@ -36345,7 +36497,7 @@ function requireJszip_min() {
36345
36497
  this.accumulate = false;
36346
36498
  var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
36347
36499
  if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
36348
- return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36500
+ return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
36349
36501
  })(e2), meta: { percent: 100 } });
36350
36502
  else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
36351
36503
  this.currentFile = null;
@@ -36353,7 +36505,7 @@ function requireJszip_min() {
36353
36505
  for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
36354
36506
  var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
36355
36507
  var s22 = I2.transformTo("string", i2(n3));
36356
- return R2.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
36508
+ return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
36357
36509
  })(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
36358
36510
  this.push({ data: n2, meta: { percent: 100 } });
36359
36511
  }, s2.prototype.prepareNextSource = function() {
@@ -36383,14 +36535,14 @@ function requireJszip_min() {
36383
36535
  for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++) e2[t2].lock();
36384
36536
  }, t.exports = s2;
36385
36537
  }, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r2) {
36386
- var u = e("../compressions"), n = e("./ZipFileWorker");
36538
+ var u3 = e("../compressions"), n = e("./ZipFileWorker");
36387
36539
  r2.generateWorker = function(e2, a, t2) {
36388
36540
  var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h2 = 0;
36389
36541
  try {
36390
36542
  e2.forEach(function(e3, t3) {
36391
36543
  h2++;
36392
36544
  var r22 = (function(e4, t4) {
36393
- var r3 = e4 || t4, n3 = u[r3];
36545
+ var r3 = e4 || t4, n3 = u3[r3];
36394
36546
  if (!n3) throw new Error(r3 + " is not a valid compression method !");
36395
36547
  return n3;
36396
36548
  })(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s2 = t3.date;
@@ -36415,7 +36567,7 @@ function requireJszip_min() {
36415
36567
  return new n().loadAsync(e2, t2);
36416
36568
  }, n.external = e("./external"), t.exports = n;
36417
36569
  }, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t, r2) {
36418
- var u = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l3 = e("./nodejsUtils");
36570
+ var u3 = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l = e("./nodejsUtils");
36419
36571
  function f2(n2) {
36420
36572
  return new i.Promise(function(e2, t2) {
36421
36573
  var r22 = n2.decompressed.getContentWorker().pipe(new a());
@@ -36428,7 +36580,7 @@ function requireJszip_min() {
36428
36580
  }
36429
36581
  t.exports = function(e2, o) {
36430
36582
  var h2 = this;
36431
- return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l3.isNode && l3.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
36583
+ return o = u3.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l.isNode && l.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u3.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
36432
36584
  var t2 = new s2(o);
36433
36585
  return t2.load(e3), t2;
36434
36586
  }).then(function(e3) {
@@ -36437,7 +36589,7 @@ function requireJszip_min() {
36437
36589
  return i.Promise.all(t2);
36438
36590
  }).then(function(e3) {
36439
36591
  for (var t2 = e3.shift(), r22 = t2.files, n2 = 0; n2 < r22.length; n2++) {
36440
- var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr);
36592
+ var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u3.resolve(i2.fileNameStr);
36441
36593
  h2.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h2.file(a2).unsafeOriginalName = s22);
36442
36594
  }
36443
36595
  return t2.zipComment.length && (h2.comment = t2.zipComment), h2;
@@ -36494,16 +36646,16 @@ function requireJszip_min() {
36494
36646
  } };
36495
36647
  }, {}], 15: [function(e, t, r2) {
36496
36648
  function s2(e2, t2, r22) {
36497
- var n2, i2 = u.getTypeOf(t2), s22 = u.extend(r22 || {}, f2);
36649
+ var n2, i2 = u3.getTypeOf(t2), s22 = u3.extend(r22 || {}, f2);
36498
36650
  s22.date = s22.date || /* @__PURE__ */ new Date(), null !== s22.compression && (s22.compression = s22.compression.toUpperCase()), "string" == typeof s22.unixPermissions && (s22.unixPermissions = parseInt(s22.unixPermissions, 8)), s22.unixPermissions && 16384 & s22.unixPermissions && (s22.dir = true), s22.dosPermissions && 16 & s22.dosPermissions && (s22.dir = true), s22.dir && (e2 = g(e2)), s22.createFolders && (n2 = _2(e2)) && b2.call(this, n2, true);
36499
36651
  var a2 = "string" === i2 && false === s22.binary && false === s22.base64;
36500
36652
  r22 && void 0 !== r22.binary || (s22.binary = !a2), (t2 instanceof c2 && 0 === t2.uncompressedSize || s22.dir || !t2 || 0 === t2.length) && (s22.base64 = false, s22.binary = true, t2 = "", s22.compression = "STORE", i2 = "string");
36501
36653
  var o2 = null;
36502
- o2 = t2 instanceof c2 || t2 instanceof l3 ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
36654
+ o2 = t2 instanceof c2 || t2 instanceof l ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u3.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
36503
36655
  var h22 = new d2(e2, o2, s22);
36504
36656
  this.files[e2] = h22;
36505
36657
  }
36506
- var i = e("./utf8"), u = e("./utils"), l3 = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
36658
+ var i = e("./utf8"), u3 = e("./utils"), l = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
36507
36659
  "/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));
36508
36660
  var t2 = e2.lastIndexOf("/");
36509
36661
  return 0 < t2 ? e2.substring(0, t2) : "";
@@ -36555,12 +36707,12 @@ function requireJszip_min() {
36555
36707
  }, generateInternalStream: function(e2) {
36556
36708
  var t2, r22 = {};
36557
36709
  try {
36558
- if ((r22 = u.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r22.type.toLowerCase(), r22.compression = r22.compression.toUpperCase(), "binarystring" === r22.type && (r22.type = "string"), !r22.type) throw new Error("No output type specified.");
36559
- u.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
36710
+ if ((r22 = u3.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r22.type.toLowerCase(), r22.compression = r22.compression.toUpperCase(), "binarystring" === r22.type && (r22.type = "string"), !r22.type) throw new Error("No output type specified.");
36711
+ u3.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
36560
36712
  var n2 = r22.comment || this.comment || "";
36561
36713
  t2 = o.generateWorker(this, r22, n2);
36562
36714
  } catch (e3) {
36563
- (t2 = new l3("error")).error(e3);
36715
+ (t2 = new l("error")).error(e3);
36564
36716
  }
36565
36717
  return new a(t2, r22.type || "string", r22.mimeType);
36566
36718
  }, generateAsync: function(e2, t2) {
@@ -36780,12 +36932,12 @@ function requireJszip_min() {
36780
36932
  return this.previous ? this.previous + " -> " + e2 : e2;
36781
36933
  } }, t.exports = n;
36782
36934
  }, {}], 29: [function(e, t, r2) {
36783
- var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null;
36935
+ var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u3 = e("../base64"), n = e("../support"), a = e("../external"), o = null;
36784
36936
  if (n.nodestream) try {
36785
36937
  o = e("../nodejs/NodejsStreamOutputAdapter");
36786
36938
  } catch (e2) {
36787
36939
  }
36788
- function l3(e2, o2) {
36940
+ function l(e2, o2) {
36789
36941
  return new a.Promise(function(t2, r22) {
36790
36942
  var n2 = [], i2 = e2._internalType, s22 = e2._outputType, a2 = e2._mimeType;
36791
36943
  e2.on("data", function(e3, t3) {
@@ -36799,7 +36951,7 @@ function requireJszip_min() {
36799
36951
  case "blob":
36800
36952
  return h2.newBlob(h2.transformTo("arraybuffer", t3), r3);
36801
36953
  case "base64":
36802
- return u.encode(t3);
36954
+ return u3.encode(t3);
36803
36955
  default:
36804
36956
  return h2.transformTo(e4, t3);
36805
36957
  }
@@ -36845,7 +36997,7 @@ function requireJszip_min() {
36845
36997
  }
36846
36998
  }
36847
36999
  f2.prototype = { accumulate: function(e2) {
36848
- return l3(this, e2);
37000
+ return l(this, e2);
36849
37001
  }, on: function(e2, t2) {
36850
37002
  var r22 = this;
36851
37003
  return "data" === e2 ? this._worker.on(e2, function(e3) {
@@ -36882,12 +37034,12 @@ function requireJszip_min() {
36882
37034
  r2.nodestream = false;
36883
37035
  }
36884
37036
  }, { "readable-stream": 16 }], 31: [function(e, t, s2) {
36885
- for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
36886
- u[254] = u[254] = 1;
37037
+ for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u3 = new Array(256), i = 0; i < 256; i++) u3[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
37038
+ u3[254] = u3[254] = 1;
36887
37039
  function a() {
36888
37040
  n.call(this, "utf-8 decode"), this.leftOver = null;
36889
37041
  }
36890
- function l3() {
37042
+ function l() {
36891
37043
  n.call(this, "utf-8 encode");
36892
37044
  }
36893
37045
  s2.utf8encode = function(e2) {
@@ -36901,7 +37053,7 @@ function requireJszip_min() {
36901
37053
  return h2.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
36902
37054
  var t2, r22, n2, i2, s22 = e3.length, a2 = new Array(2 * s22);
36903
37055
  for (t2 = r22 = 0; t2 < s22; ) if ((n2 = e3[t2++]) < 128) a2[r22++] = n2;
36904
- else if (4 < (i2 = u[n2])) a2[r22++] = 65533, t2 += i2 - 1;
37056
+ else if (4 < (i2 = u3[n2])) a2[r22++] = 65533, t2 += i2 - 1;
36905
37057
  else {
36906
37058
  for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s22; ) n2 = n2 << 6 | 63 & e3[t2++], i2--;
36907
37059
  1 < i2 ? a2[r22++] = 65533 : n2 < 65536 ? a2[r22++] = n2 : (n2 -= 65536, a2[r22++] = 55296 | n2 >> 10 & 1023, a2[r22++] = 56320 | 1023 & n2);
@@ -36920,20 +37072,20 @@ function requireJszip_min() {
36920
37072
  var n2 = (function(e3, t3) {
36921
37073
  var r3;
36922
37074
  for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) r3--;
36923
- return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3;
37075
+ return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u3[e3[r3]] > t3 ? r3 : t3;
36924
37076
  })(t2), i2 = t2;
36925
37077
  n2 !== t2.length && (h2.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s2.utf8decode(i2), meta: e2.meta });
36926
37078
  }, a.prototype.flush = function() {
36927
37079
  this.leftOver && this.leftOver.length && (this.push({ data: s2.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
36928
- }, s2.Utf8DecodeWorker = a, o.inherits(l3, n), l3.prototype.processChunk = function(e2) {
37080
+ }, s2.Utf8DecodeWorker = a, o.inherits(l, n), l.prototype.processChunk = function(e2) {
36929
37081
  this.push({ data: s2.utf8encode(e2.data), meta: e2.meta });
36930
- }, s2.Utf8EncodeWorker = l3;
37082
+ }, s2.Utf8EncodeWorker = l;
36931
37083
  }, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) {
36932
- var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u = e("./external");
37084
+ var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u3 = e("./external");
36933
37085
  function n(e2) {
36934
37086
  return e2;
36935
37087
  }
36936
- function l3(e2, t2) {
37088
+ function l(e2, t2) {
36937
37089
  for (var r22 = 0; r22 < e2.length; ++r22) t2[r22] = 255 & e2.charCodeAt(r22);
36938
37090
  return t2;
36939
37091
  }
@@ -36987,13 +37139,13 @@ function requireJszip_min() {
36987
37139
  a.applyFromCharCode = s2;
36988
37140
  var c2 = {};
36989
37141
  c2.string = { string: n, array: function(e2) {
36990
- return l3(e2, new Array(e2.length));
37142
+ return l(e2, new Array(e2.length));
36991
37143
  }, arraybuffer: function(e2) {
36992
37144
  return c2.string.uint8array(e2).buffer;
36993
37145
  }, uint8array: function(e2) {
36994
- return l3(e2, new Uint8Array(e2.length));
37146
+ return l(e2, new Uint8Array(e2.length));
36995
37147
  }, nodebuffer: function(e2) {
36996
- return l3(e2, r2.allocBuffer(e2.length));
37148
+ return l(e2, r2.allocBuffer(e2.length));
36997
37149
  } }, c2.array = { string: s2, array: n, arraybuffer: function(e2) {
36998
37150
  return new Uint8Array(e2).buffer;
36999
37151
  }, uint8array: function(e2) {
@@ -37052,8 +37204,8 @@ function requireJszip_min() {
37052
37204
  for (e2 = 0; e2 < arguments.length; e2++) for (t2 in arguments[e2]) Object.prototype.hasOwnProperty.call(arguments[e2], t2) && void 0 === r22[t2] && (r22[t2] = arguments[e2][t2]);
37053
37205
  return r22;
37054
37206
  }, a.prepareContent = function(r22, e2, n2, i2, s22) {
37055
- return u.Promise.resolve(e2).then(function(n3) {
37056
- return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u.Promise(function(t2, r3) {
37207
+ return u3.Promise.resolve(e2).then(function(n3) {
37208
+ return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u3.Promise(function(t2, r3) {
37057
37209
  var e3 = new FileReader();
37058
37210
  e3.onload = function(e4) {
37059
37211
  t2(e4.target.result);
@@ -37064,8 +37216,8 @@ function requireJszip_min() {
37064
37216
  }).then(function(e3) {
37065
37217
  var t2 = a.getTypeOf(e3);
37066
37218
  return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h2.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
37067
- return l3(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
37068
- })(e3))), e3) : u.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
37219
+ return l(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
37220
+ })(e3))), e3) : u3.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
37069
37221
  });
37070
37222
  };
37071
37223
  }, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r2) {
@@ -37121,11 +37273,11 @@ function requireJszip_min() {
37121
37273
  this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
37122
37274
  } }, t.exports = h2;
37123
37275
  }, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r2) {
37124
- var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u = e("./support");
37125
- function l3(e2, t2) {
37276
+ var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u3 = e("./support");
37277
+ function l(e2, t2) {
37126
37278
  this.options = e2, this.loadOptions = t2;
37127
37279
  }
37128
- l3.prototype = { isEncrypted: function() {
37280
+ l.prototype = { isEncrypted: function() {
37129
37281
  return 1 == (1 & this.bitFlag);
37130
37282
  }, useUTF8: function() {
37131
37283
  return 2048 == (2048 & this.bitFlag);
@@ -37156,7 +37308,7 @@ function requireJszip_min() {
37156
37308
  for (this.extraFields || (this.extraFields = {}); e2.index + 4 < i2; ) t2 = e2.readInt(2), r22 = e2.readInt(2), n2 = e2.readData(r22), this.extraFields[t2] = { id: t2, length: r22, value: n2 };
37157
37309
  e2.setIndex(i2);
37158
37310
  }, handleUTF8: function() {
37159
- var e2 = u.uint8array ? "uint8array" : "array";
37311
+ var e2 = u3.uint8array ? "uint8array" : "array";
37160
37312
  if (this.useUTF8()) this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
37161
37313
  else {
37162
37314
  var t2 = this.findExtraFieldUnicodePath();
@@ -37186,7 +37338,7 @@ function requireJszip_min() {
37186
37338
  return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));
37187
37339
  }
37188
37340
  return null;
37189
- } }, t.exports = l3;
37341
+ } }, t.exports = l;
37190
37342
  }, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t, r2) {
37191
37343
  function n(e2, t2, r22) {
37192
37344
  this.name = e2, this.dir = r22.dir, this.date = r22.date, this.comment = r22.comment, this.unixPermissions = r22.unixPermissions, this.dosPermissions = r22.dosPermissions, this._data = t2, this._dataBinary = r22.binary, this.options = { compression: r22.compression, compressionOptions: r22.compressionOptions };
@@ -37215,34 +37367,34 @@ function requireJszip_min() {
37215
37367
  }, _decompressWorker: function() {
37216
37368
  return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h2 ? this._data : new i(this._data);
37217
37369
  } };
37218
- for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l3 = function() {
37370
+ for (var u3 = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l = function() {
37219
37371
  throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
37220
- }, f2 = 0; f2 < u.length; f2++) n.prototype[u[f2]] = l3;
37372
+ }, f2 = 0; f2 < u3.length; f2++) n.prototype[u3[f2]] = l;
37221
37373
  t.exports = n;
37222
- }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l3, t) {
37374
+ }, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l, t) {
37223
37375
  (function(t2) {
37224
37376
  var r2, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver;
37225
37377
  if (e2) {
37226
- var i = 0, s2 = new e2(u), a = t2.document.createTextNode("");
37378
+ var i = 0, s2 = new e2(u3), a = t2.document.createTextNode("");
37227
37379
  s2.observe(a, { characterData: true }), r2 = function() {
37228
37380
  a.data = i = ++i % 2;
37229
37381
  };
37230
37382
  } else if (t2.setImmediate || void 0 === t2.MessageChannel) r2 = "document" in t2 && "onreadystatechange" in t2.document.createElement("script") ? function() {
37231
37383
  var e3 = t2.document.createElement("script");
37232
37384
  e3.onreadystatechange = function() {
37233
- u(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
37385
+ u3(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
37234
37386
  }, t2.document.documentElement.appendChild(e3);
37235
37387
  } : function() {
37236
- setTimeout(u, 0);
37388
+ setTimeout(u3, 0);
37237
37389
  };
37238
37390
  else {
37239
37391
  var o = new t2.MessageChannel();
37240
- o.port1.onmessage = u, r2 = function() {
37392
+ o.port1.onmessage = u3, r2 = function() {
37241
37393
  o.port2.postMessage(0);
37242
37394
  };
37243
37395
  }
37244
37396
  var h2 = [];
37245
- function u() {
37397
+ function u3() {
37246
37398
  var e3, t3;
37247
37399
  n = true;
37248
37400
  for (var r22 = h2.length; r22; ) {
@@ -37251,18 +37403,18 @@ function requireJszip_min() {
37251
37403
  }
37252
37404
  n = false;
37253
37405
  }
37254
- l3.exports = function(e3) {
37406
+ l.exports = function(e3) {
37255
37407
  1 !== h2.push(e3) || n || r2();
37256
37408
  };
37257
37409
  }).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
37258
37410
  }, {}], 37: [function(e, t, r2) {
37259
37411
  var i = e("immediate");
37260
- function u() {
37412
+ function u3() {
37261
37413
  }
37262
- var l3 = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
37414
+ var l = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
37263
37415
  function o(e2) {
37264
37416
  if ("function" != typeof e2) throw new TypeError("resolver must be a function");
37265
- this.state = n, this.queue = [], this.outcome = void 0, e2 !== u && d2(this, e2);
37417
+ this.state = n, this.queue = [], this.outcome = void 0, e2 !== u3 && d2(this, e2);
37266
37418
  }
37267
37419
  function h2(e2, t2, r22) {
37268
37420
  this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r22 && (this.onRejected = r22, this.callRejected = this.otherCallRejected);
@@ -37273,9 +37425,9 @@ function requireJszip_min() {
37273
37425
  try {
37274
37426
  e2 = r22(n2);
37275
37427
  } catch (e3) {
37276
- return l3.reject(t2, e3);
37428
+ return l.reject(t2, e3);
37277
37429
  }
37278
- e2 === t2 ? l3.reject(t2, new TypeError("Cannot resolve promise with itself")) : l3.resolve(t2, e2);
37430
+ e2 === t2 ? l.reject(t2, new TypeError("Cannot resolve promise with itself")) : l.resolve(t2, e2);
37279
37431
  });
37280
37432
  }
37281
37433
  function c2(e2) {
@@ -37287,10 +37439,10 @@ function requireJszip_min() {
37287
37439
  function d2(t2, e2) {
37288
37440
  var r22 = false;
37289
37441
  function n2(e3) {
37290
- r22 || (r22 = true, l3.reject(t2, e3));
37442
+ r22 || (r22 = true, l.reject(t2, e3));
37291
37443
  }
37292
37444
  function i2(e3) {
37293
- r22 || (r22 = true, l3.resolve(t2, e3));
37445
+ r22 || (r22 = true, l.resolve(t2, e3));
37294
37446
  }
37295
37447
  var s22 = p(function() {
37296
37448
  e2(i2, n2);
@@ -37322,20 +37474,20 @@ function requireJszip_min() {
37322
37474
  return this.then(null, e2);
37323
37475
  }, o.prototype.then = function(e2, t2) {
37324
37476
  if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s2) return this;
37325
- var r22 = new this.constructor(u);
37477
+ var r22 = new this.constructor(u3);
37326
37478
  this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h2(r22, e2, t2));
37327
37479
  return r22;
37328
37480
  }, h2.prototype.callFulfilled = function(e2) {
37329
- l3.resolve(this.promise, e2);
37481
+ l.resolve(this.promise, e2);
37330
37482
  }, h2.prototype.otherCallFulfilled = function(e2) {
37331
37483
  f2(this.promise, this.onFulfilled, e2);
37332
37484
  }, h2.prototype.callRejected = function(e2) {
37333
- l3.reject(this.promise, e2);
37485
+ l.reject(this.promise, e2);
37334
37486
  }, h2.prototype.otherCallRejected = function(e2) {
37335
37487
  f2(this.promise, this.onRejected, e2);
37336
- }, l3.resolve = function(e2, t2) {
37488
+ }, l.resolve = function(e2, t2) {
37337
37489
  var r22 = p(c2, t2);
37338
- if ("error" === r22.status) return l3.reject(e2, r22.value);
37490
+ if ("error" === r22.status) return l.reject(e2, r22.value);
37339
37491
  var n2 = r22.value;
37340
37492
  if (n2) d2(e2, n2);
37341
37493
  else {
@@ -37343,29 +37495,29 @@ function requireJszip_min() {
37343
37495
  for (var i2 = -1, s22 = e2.queue.length; ++i2 < s22; ) e2.queue[i2].callFulfilled(t2);
37344
37496
  }
37345
37497
  return e2;
37346
- }, l3.reject = function(e2, t2) {
37498
+ }, l.reject = function(e2, t2) {
37347
37499
  e2.state = s2, e2.outcome = t2;
37348
37500
  for (var r22 = -1, n2 = e2.queue.length; ++r22 < n2; ) e2.queue[r22].callRejected(t2);
37349
37501
  return e2;
37350
37502
  }, o.resolve = function(e2) {
37351
37503
  if (e2 instanceof this) return e2;
37352
- return l3.resolve(new this(u), e2);
37504
+ return l.resolve(new this(u3), e2);
37353
37505
  }, o.reject = function(e2) {
37354
- var t2 = new this(u);
37355
- return l3.reject(t2, e2);
37506
+ var t2 = new this(u3);
37507
+ return l.reject(t2, e2);
37356
37508
  }, o.all = function(e2) {
37357
37509
  var r22 = this;
37358
37510
  if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
37359
37511
  var n2 = e2.length, i2 = false;
37360
37512
  if (!n2) return this.resolve([]);
37361
- var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u);
37513
+ var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u3);
37362
37514
  for (; ++t2 < n2; ) h22(e2[t2], t2);
37363
37515
  return o2;
37364
37516
  function h22(e3, t3) {
37365
37517
  r22.resolve(e3).then(function(e4) {
37366
- s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l3.resolve(o2, s22));
37518
+ s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l.resolve(o2, s22));
37367
37519
  }, function(e4) {
37368
- i2 || (i2 = true, l3.reject(o2, e4));
37520
+ i2 || (i2 = true, l.reject(o2, e4));
37369
37521
  });
37370
37522
  }
37371
37523
  }, o.race = function(e2) {
@@ -37373,11 +37525,11 @@ function requireJszip_min() {
37373
37525
  if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
37374
37526
  var r22 = e2.length, n2 = false;
37375
37527
  if (!r22) return this.resolve([]);
37376
- var i2 = -1, s22 = new this(u);
37528
+ var i2 = -1, s22 = new this(u3);
37377
37529
  for (; ++i2 < r22; ) a2 = e2[i2], t2.resolve(a2).then(function(e3) {
37378
- n2 || (n2 = true, l3.resolve(s22, e3));
37530
+ n2 || (n2 = true, l.resolve(s22, e3));
37379
37531
  }, function(e3) {
37380
- n2 || (n2 = true, l3.reject(s22, e3));
37532
+ n2 || (n2 = true, l.reject(s22, e3));
37381
37533
  });
37382
37534
  var a2;
37383
37535
  return s22;
@@ -37386,17 +37538,17 @@ function requireJszip_min() {
37386
37538
  var n = {};
37387
37539
  (0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
37388
37540
  }, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r2) {
37389
- var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u = Object.prototype.toString, l3 = 0, f2 = -1, c2 = 0, d2 = 8;
37541
+ var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u3 = Object.prototype.toString, l = 0, f2 = -1, c2 = 0, d2 = 8;
37390
37542
  function p(e2) {
37391
37543
  if (!(this instanceof p)) return new p(e2);
37392
37544
  this.options = o.assign({ level: f2, method: d2, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c2, to: "" }, e2 || {});
37393
37545
  var t2 = this.options;
37394
37546
  t2.raw && 0 < t2.windowBits ? t2.windowBits = -t2.windowBits : t2.gzip && 0 < t2.windowBits && t2.windowBits < 16 && (t2.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s2(), this.strm.avail_out = 0;
37395
37547
  var r22 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);
37396
- if (r22 !== l3) throw new Error(i[r22]);
37548
+ if (r22 !== l) throw new Error(i[r22]);
37397
37549
  if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
37398
37550
  var n2;
37399
- if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l3) throw new Error(i[r22]);
37551
+ if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u3.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l) throw new Error(i[r22]);
37400
37552
  this._dict_set = true;
37401
37553
  }
37402
37554
  }
@@ -37408,16 +37560,16 @@ function requireJszip_min() {
37408
37560
  p.prototype.push = function(e2, t2) {
37409
37561
  var r22, n2, i2 = this.strm, s22 = this.options.chunkSize;
37410
37562
  if (this.ended) return false;
37411
- n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
37563
+ n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u3.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
37412
37564
  do {
37413
- if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l3) return this.onEnd(r22), !(this.ended = true);
37565
+ if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l) return this.onEnd(r22), !(this.ended = true);
37414
37566
  0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || ("string" === this.options.to ? this.onData(h2.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out)));
37415
37567
  } while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r22);
37416
- return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l3) : 2 !== n2 || (this.onEnd(l3), !(i2.avail_out = 0));
37568
+ return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l) : 2 !== n2 || (this.onEnd(l), !(i2.avail_out = 0));
37417
37569
  }, p.prototype.onData = function(e2) {
37418
37570
  this.chunks.push(e2);
37419
37571
  }, p.prototype.onEnd = function(e2) {
37420
- e2 === l3 && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
37572
+ e2 === l && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
37421
37573
  }, r2.Deflate = p, r2.deflate = n, r2.deflateRaw = function(e2, t2) {
37422
37574
  return (t2 = t2 || {}).raw = true, n(e2, t2);
37423
37575
  }, r2.gzip = function(e2, t2) {
@@ -37440,12 +37592,12 @@ function requireJszip_min() {
37440
37592
  return r22.result;
37441
37593
  }
37442
37594
  a.prototype.push = function(e2, t2) {
37443
- var r22, n2, i2, s22, a2, o2, h2 = this.strm, u = this.options.chunkSize, l3 = this.options.dictionary, f2 = false;
37595
+ var r22, n2, i2, s22, a2, o2, h2 = this.strm, u3 = this.options.chunkSize, l = this.options.dictionary, f2 = false;
37444
37596
  if (this.ended) return false;
37445
37597
  n2 = t2 === ~~t2 ? t2 : true === t2 ? m2.Z_FINISH : m2.Z_NO_FLUSH, "string" == typeof e2 ? h2.input = p.binstring2buf(e2) : "[object ArrayBuffer]" === _2.call(e2) ? h2.input = new Uint8Array(e2) : h2.input = e2, h2.next_in = 0, h2.avail_in = h2.input.length;
37446
37598
  do {
37447
- if (0 === h2.avail_out && (h2.output = new d2.Buf8(u), h2.next_out = 0, h2.avail_out = u), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l3 && (o2 = "string" == typeof l3 ? p.string2buf(l3) : "[object ArrayBuffer]" === _2.call(l3) ? new Uint8Array(l3) : l3, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
37448
- h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
37599
+ if (0 === h2.avail_out && (h2.output = new d2.Buf8(u3), h2.next_out = 0, h2.avail_out = u3), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l && (o2 = "string" == typeof l ? p.string2buf(l) : "[object ArrayBuffer]" === _2.call(l) ? new Uint8Array(l) : l, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
37600
+ h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u3 - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
37449
37601
  } while ((0 < h2.avail_in || 0 === h2.avail_out) && r22 !== m2.Z_STREAM_END);
37450
37602
  return r22 === m2.Z_STREAM_END && (n2 = m2.Z_FINISH), n2 === m2.Z_FINISH ? (r22 = c2.inflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === m2.Z_OK) : n2 !== m2.Z_SYNC_FLUSH || (this.onEnd(m2.Z_OK), !(h2.avail_out = 0));
37451
37603
  }, a.prototype.onData = function(e2) {
@@ -37497,35 +37649,35 @@ function requireJszip_min() {
37497
37649
  } catch (e2) {
37498
37650
  s2 = false;
37499
37651
  }
37500
- for (var u = new h2.Buf8(256), n = 0; n < 256; n++) u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
37501
- function l3(e2, t2) {
37652
+ for (var u3 = new h2.Buf8(256), n = 0; n < 256; n++) u3[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
37653
+ function l(e2, t2) {
37502
37654
  if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h2.shrinkBuf(e2, t2));
37503
37655
  for (var r22 = "", n2 = 0; n2 < t2; n2++) r22 += String.fromCharCode(e2[n2]);
37504
37656
  return r22;
37505
37657
  }
37506
- u[254] = u[254] = 1, r2.string2buf = function(e2) {
37658
+ u3[254] = u3[254] = 1, r2.string2buf = function(e2) {
37507
37659
  var t2, r22, n2, i2, s22, a = e2.length, o = 0;
37508
37660
  for (i2 = 0; i2 < a; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), o += r22 < 128 ? 1 : r22 < 2048 ? 2 : r22 < 65536 ? 3 : 4;
37509
37661
  for (t2 = new h2.Buf8(o), i2 = s22 = 0; s22 < o; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
37510
37662
  return t2;
37511
37663
  }, r2.buf2binstring = function(e2) {
37512
- return l3(e2, e2.length);
37664
+ return l(e2, e2.length);
37513
37665
  }, r2.binstring2buf = function(e2) {
37514
37666
  for (var t2 = new h2.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
37515
37667
  return t2;
37516
37668
  }, r2.buf2string = function(e2, t2) {
37517
37669
  var r22, n2, i2, s22, a = t2 || e2.length, o = new Array(2 * a);
37518
37670
  for (r22 = n2 = 0; r22 < a; ) if ((i2 = e2[r22++]) < 128) o[n2++] = i2;
37519
- else if (4 < (s22 = u[i2])) o[n2++] = 65533, r22 += s22 - 1;
37671
+ else if (4 < (s22 = u3[i2])) o[n2++] = 65533, r22 += s22 - 1;
37520
37672
  else {
37521
37673
  for (i2 &= 2 === s22 ? 31 : 3 === s22 ? 15 : 7; 1 < s22 && r22 < a; ) i2 = i2 << 6 | 63 & e2[r22++], s22--;
37522
37674
  1 < s22 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2);
37523
37675
  }
37524
- return l3(o, n2);
37676
+ return l(o, n2);
37525
37677
  }, r2.utf8border = function(e2, t2) {
37526
37678
  var r22;
37527
37679
  for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r22 = t2 - 1; 0 <= r22 && 128 == (192 & e2[r22]); ) r22--;
37528
- return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u[e2[r22]] > t2 ? r22 : t2;
37680
+ return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u3[e2[r22]] > t2 ? r22 : t2;
37529
37681
  };
37530
37682
  }, { "./common": 41 }], 43: [function(e, t, r2) {
37531
37683
  t.exports = function(e2, t2, r22, n) {
@@ -37553,11 +37705,11 @@ function requireJszip_min() {
37553
37705
  return -1 ^ e2;
37554
37706
  };
37555
37707
  }, {}], 46: [function(e, t, r2) {
37556
- var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
37557
- function R2(e2, t2) {
37708
+ var h2, c2 = e("../utils/common"), u3 = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
37709
+ function R(e2, t2) {
37558
37710
  return e2.msg = n[t2], t2;
37559
37711
  }
37560
- function T(e2) {
37712
+ function T2(e2) {
37561
37713
  return (e2 << 1) - (4 < e2 ? 9 : 0);
37562
37714
  }
37563
37715
  function D2(e2) {
@@ -37568,7 +37720,7 @@ function requireJszip_min() {
37568
37720
  r22 > e2.avail_out && (r22 = e2.avail_out), 0 !== r22 && (c2.arraySet(e2.output, t2.pending_buf, t2.pending_out, r22, e2.next_out), e2.next_out += r22, t2.pending_out += r22, e2.total_out += r22, e2.avail_out -= r22, t2.pending -= r22, 0 === t2.pending && (t2.pending_out = 0));
37569
37721
  }
37570
37722
  function N2(e2, t2) {
37571
- u._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F2(e2.strm);
37723
+ u3._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F2(e2.strm);
37572
37724
  }
37573
37725
  function U2(e2, t2) {
37574
37726
  e2.pending_buf[e2.pending++] = t2;
@@ -37577,23 +37729,23 @@ function requireJszip_min() {
37577
37729
  e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;
37578
37730
  }
37579
37731
  function L2(e2, t2) {
37580
- var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u2 = e2.window, l22 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
37732
+ var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u22 = e2.window, l2 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
37581
37733
  e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
37582
37734
  do {
37583
- if (u2[(r22 = t2) + a2] === p2 && u2[r22 + a2 - 1] === d22 && u2[r22] === u2[s22] && u2[++r22] === u2[s22 + 1]) {
37735
+ if (u22[(r22 = t2) + a2] === p2 && u22[r22 + a2 - 1] === d22 && u22[r22] === u22[s22] && u22[++r22] === u22[s22 + 1]) {
37584
37736
  s22 += 2, r22++;
37585
37737
  do {
37586
- } while (u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && s22 < c22);
37738
+ } while (u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && s22 < c22);
37587
37739
  if (n2 = S2 - (c22 - s22), s22 = c22 - S2, a2 < n2) {
37588
37740
  if (e2.match_start = t2, o2 <= (a2 = n2)) break;
37589
- d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
37741
+ d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
37590
37742
  }
37591
37743
  }
37592
- } while ((t2 = f22[t2 & l22]) > h22 && 0 != --i2);
37744
+ } while ((t2 = f22[t2 & l2]) > h22 && 0 != --i2);
37593
37745
  return a2 <= e2.lookahead ? a2 : e2.lookahead;
37594
37746
  }
37595
37747
  function j2(e2) {
37596
- var t2, r22, n2, i2, s22, a2, o2, h22, u2, l22, f22 = e2.w_size;
37748
+ var t2, r22, n2, i2, s22, a2, o2, h22, u22, l2, f22 = e2.w_size;
37597
37749
  do {
37598
37750
  if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f22 + (f22 - z2)) {
37599
37751
  for (c2.arraySet(e2.window, e2.window, f22, f22, 0), e2.match_start -= f22, e2.strstart -= f22, e2.block_start -= f22, t2 = r22 = e2.hash_size; n2 = e2.head[--t2], e2.head[t2] = f22 <= n2 ? n2 - f22 : 0, --r22; ) ;
@@ -37601,38 +37753,38 @@ function requireJszip_min() {
37601
37753
  i2 += f22;
37602
37754
  }
37603
37755
  if (0 === e2.strm.avail_in) break;
37604
- if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
37756
+ if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u22 = i2, l2 = void 0, l2 = a2.avail_in, u22 < l2 && (l2 = u22), r22 = 0 === l2 ? 0 : (a2.avail_in -= l2, c2.arraySet(o2, a2.input, a2.next_in, l2, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l2, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h22)), a2.next_in += l2, a2.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >= x2) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x2 - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x2)); ) ;
37605
37757
  } while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
37606
37758
  }
37607
37759
  function Z(e2, t2) {
37608
37760
  for (var r22, n2; ; ) {
37609
37761
  if (e2.lookahead < z2) {
37610
- if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37762
+ if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
37611
37763
  if (0 === e2.lookahead) break;
37612
37764
  }
37613
- if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
37614
- for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
37765
+ if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x2) if (n2 = u3._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
37766
+ for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
37615
37767
  e2.strstart++;
37616
37768
  } else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
37617
- else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
37769
+ else n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
37618
37770
  if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37619
37771
  }
37620
- return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37772
+ return e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37621
37773
  }
37622
37774
  function W2(e2, t2) {
37623
37775
  for (var r22, n2, i2; ; ) {
37624
37776
  if (e2.lookahead < z2) {
37625
- if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
37777
+ if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
37626
37778
  if (0 === e2.lookahead) break;
37627
37779
  }
37628
- if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
37629
- for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37630
- if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37780
+ if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x2 - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x2 && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x2 - 1)), e2.prev_length >= x2 && e2.match_length <= e2.prev_length) {
37781
+ for (i2 = e2.strstart + e2.lookahead - x2, n2 = u3._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
37782
+ if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37631
37783
  } else if (e2.match_available) {
37632
- if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
37784
+ if ((n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
37633
37785
  } else e2.match_available = 1, e2.strstart++, e2.lookahead--;
37634
37786
  }
37635
- return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37787
+ return e2.match_available && (n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
37636
37788
  }
37637
37789
  function M2(e2, t2, r22, n2, i2) {
37638
37790
  this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
@@ -37642,27 +37794,27 @@ function requireJszip_min() {
37642
37794
  }
37643
37795
  function G2(e2) {
37644
37796
  var t2;
37645
- return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R2(e2, _2);
37797
+ return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u3._tr_init(t2), m2) : R(e2, _2);
37646
37798
  }
37647
37799
  function K2(e2) {
37648
37800
  var t2 = G2(e2);
37649
37801
  return t2 === m2 && (function(e3) {
37650
- e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
37802
+ e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x2 - 1, e3.match_available = 0, e3.ins_h = 0;
37651
37803
  })(e2.state), t2;
37652
37804
  }
37653
37805
  function Y2(e2, t2, r22, n2, i2, s22) {
37654
37806
  if (!e2) return _2;
37655
37807
  var a2 = 1;
37656
- if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
37808
+ if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
37657
37809
  8 === n2 && (n2 = 9);
37658
37810
  var o2 = new H();
37659
- return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37811
+ return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x2 - 1) / x2), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
37660
37812
  }
37661
37813
  h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
37662
37814
  var r22 = 65535;
37663
37815
  for (r22 > e2.pending_buf_size - 5 && (r22 = e2.pending_buf_size - 5); ; ) {
37664
37816
  if (e2.lookahead <= 1) {
37665
- if (j2(e2), 0 === e2.lookahead && t2 === l3) return A2;
37817
+ if (j2(e2), 0 === e2.lookahead && t2 === l) return A2;
37666
37818
  if (0 === e2.lookahead) break;
37667
37819
  }
37668
37820
  e2.strstart += e2.lookahead, e2.lookahead = 0;
@@ -37670,15 +37822,15 @@ function requireJszip_min() {
37670
37822
  if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37671
37823
  if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
37672
37824
  }
37673
- return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
37825
+ return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
37674
37826
  }), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
37675
37827
  return Y2(e2, t2, v2, 15, 8, 0);
37676
37828
  }, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
37677
37829
  return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
37678
37830
  }, r2.deflate = function(e2, t2) {
37679
37831
  var r22, n2, i2, s22;
37680
- if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
37681
- if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R2(e2, 0 === e2.avail_out ? -5 : _2);
37832
+ if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
37833
+ if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R(e2, 0 === e2.avail_out ? -5 : _2);
37682
37834
  if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
37683
37835
  else {
37684
37836
  var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
@@ -37712,50 +37864,50 @@ function requireJszip_min() {
37712
37864
  } else n2.status = 103;
37713
37865
  if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F2(e2), n2.pending + 2 <= n2.pending_buf_size && (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E2)) : n2.status = E2), 0 !== n2.pending) {
37714
37866
  if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
37715
- } else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
37716
- if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
37717
- if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l3 && 666 !== n2.status) {
37867
+ } else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
37868
+ if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
37869
+ if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
37718
37870
  var o2 = 2 === n2.strategy ? (function(e3, t3) {
37719
37871
  for (var r3; ; ) {
37720
37872
  if (0 === e3.lookahead && (j2(e3), 0 === e3.lookahead)) {
37721
- if (t3 === l3) return A2;
37873
+ if (t3 === l) return A2;
37722
37874
  break;
37723
37875
  }
37724
- if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37876
+ if (e3.match_length = 0, r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37725
37877
  }
37726
- return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37878
+ return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37727
37879
  })(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
37728
37880
  for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
37729
37881
  if (e3.lookahead <= S2) {
37730
- if (j2(e3), e3.lookahead <= S2 && t3 === l3) return A2;
37882
+ if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
37731
37883
  if (0 === e3.lookahead) break;
37732
37884
  }
37733
- if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
37885
+ if (e3.match_length = 0, e3.lookahead >= x2 && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
37734
37886
  s3 = e3.strstart + S2;
37735
37887
  do {
37736
37888
  } while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);
37737
37889
  e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
37738
37890
  }
37739
- if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37891
+ if (e3.match_length >= x2 ? (r3 = u3._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
37740
37892
  }
37741
- return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37893
+ return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
37742
37894
  })(n2, t2) : h2[n2.level].func(n2, t2);
37743
- if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37744
- if (o2 === I2 && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
37895
+ if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
37896
+ if (o2 === I2 && (1 === t2 ? u3._tr_align(n2) : 5 !== t2 && (u3._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
37745
37897
  }
37746
37898
  return t2 !== f2 ? m2 : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), U2(n2, e2.adler >> 16 & 255), U2(n2, e2.adler >> 24 & 255), U2(n2, 255 & e2.total_in), U2(n2, e2.total_in >> 8 & 255), U2(n2, e2.total_in >> 16 & 255), U2(n2, e2.total_in >> 24 & 255)) : (P2(n2, e2.adler >>> 16), P2(n2, 65535 & e2.adler)), F2(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m2 : 1);
37747
37899
  }, r2.deflateEnd = function(e2) {
37748
37900
  var t2;
37749
- return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R2(e2, _2) : (e2.state = null, t2 === E2 ? R2(e2, -3) : m2) : _2;
37901
+ return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R(e2, _2) : (e2.state = null, t2 === E2 ? R(e2, -3) : m2) : _2;
37750
37902
  }, r2.deflateSetDictionary = function(e2, t2) {
37751
- var r22, n2, i2, s22, a2, o2, h22, u2, l22 = t2.length;
37903
+ var r22, n2, i2, s22, a2, o2, h22, u22, l2 = t2.length;
37752
37904
  if (!e2 || !e2.state) return _2;
37753
37905
  if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
37754
- for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
37755
- for (n2 = r22.strstart, i2 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
37756
- r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
37906
+ for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u22 = new c2.Buf8(r22.w_size), c2.arraySet(u22, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u22, l2 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
37907
+ for (n2 = r22.strstart, i2 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
37908
+ r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
37757
37909
  }
37758
- return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
37910
+ return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
37759
37911
  }, r2.deflateInfo = "pako deflate (from Nodeca project)";
37760
37912
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
37761
37913
  t.exports = function() {
@@ -37763,8 +37915,8 @@ function requireJszip_min() {
37763
37915
  };
37764
37916
  }, {}], 48: [function(e, t, r2) {
37765
37917
  t.exports = function(e2, t2) {
37766
- var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
37767
- r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
37918
+ var r22, n, i, s2, a, o, h2, u3, l, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
37919
+ r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u3 = r22.wsize, l = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
37768
37920
  e: do {
37769
37921
  p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
37770
37922
  t: for (; ; ) {
@@ -37797,32 +37949,32 @@ function requireJszip_min() {
37797
37949
  break e;
37798
37950
  }
37799
37951
  if (d2 >>>= y2, p -= y2, (y2 = s2 - a) < k2) {
37800
- if (l3 < (y2 = k2 - y2) && r22.sane) {
37952
+ if (l < (y2 = k2 - y2) && r22.sane) {
37801
37953
  e2.msg = "invalid distance too far back", r22.mode = 30;
37802
37954
  break e;
37803
37955
  }
37804
- if (S2 = c2, (x = 0) === f2) {
37805
- if (x += u - y2, y2 < w2) {
37806
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37807
- x = s2 - k2, S2 = C2;
37956
+ if (S2 = c2, (x2 = 0) === f2) {
37957
+ if (x2 += u3 - y2, y2 < w2) {
37958
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37959
+ x2 = s2 - k2, S2 = C2;
37808
37960
  }
37809
37961
  } else if (f2 < y2) {
37810
- if (x += u + f2 - y2, (y2 -= f2) < w2) {
37811
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37812
- if (x = 0, f2 < w2) {
37813
- for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
37814
- x = s2 - k2, S2 = C2;
37962
+ if (x2 += u3 + f2 - y2, (y2 -= f2) < w2) {
37963
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37964
+ if (x2 = 0, f2 < w2) {
37965
+ for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
37966
+ x2 = s2 - k2, S2 = C2;
37815
37967
  }
37816
37968
  }
37817
- } else if (x += f2 - y2, y2 < w2) {
37818
- for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
37819
- x = s2 - k2, S2 = C2;
37969
+ } else if (x2 += f2 - y2, y2 < w2) {
37970
+ for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
37971
+ x2 = s2 - k2, S2 = C2;
37820
37972
  }
37821
- for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
37822
- w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
37973
+ for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
37974
+ w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
37823
37975
  } else {
37824
- for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
37825
- w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
37976
+ for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
37977
+ w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
37826
37978
  }
37827
37979
  break;
37828
37980
  }
@@ -37833,7 +37985,7 @@ function requireJszip_min() {
37833
37985
  n -= w2 = p >> 3, d2 &= (1 << (p -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p;
37834
37986
  };
37835
37987
  }, {}], 49: [function(e, t, r2) {
37836
- var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
37988
+ var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
37837
37989
  function L2(e2) {
37838
37990
  return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
37839
37991
  }
@@ -37852,68 +38004,68 @@ function requireJszip_min() {
37852
38004
  var r22, n2;
37853
38005
  return e2 && e2.state ? (n2 = e2.state, t2 < 0 ? (r22 = 0, t2 = -t2) : (r22 = 1 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || 15 < t2) ? U2 : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = r22, n2.wbits = t2, o(e2))) : U2;
37854
38006
  }
37855
- function u(e2, t2) {
38007
+ function u3(e2, t2) {
37856
38008
  var r22, n2;
37857
38009
  return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h2(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
37858
38010
  }
37859
- var l3, f2, c2 = true;
38011
+ var l, f2, c2 = true;
37860
38012
  function j2(e2) {
37861
38013
  if (c2) {
37862
38014
  var t2;
37863
- for (l3 = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
38015
+ for (l = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
37864
38016
  for (; t2 < 256; ) e2.lens[t2++] = 9;
37865
38017
  for (; t2 < 280; ) e2.lens[t2++] = 7;
37866
38018
  for (; t2 < 288; ) e2.lens[t2++] = 8;
37867
- for (T(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
37868
- T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
38019
+ for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
38020
+ T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
37869
38021
  }
37870
- e2.lencode = l3, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
38022
+ e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
37871
38023
  }
37872
38024
  function Z(e2, t2, r22, n2) {
37873
38025
  var i2, s22 = e2.state;
37874
38026
  return null === s22.window && (s22.wsize = 1 << s22.wbits, s22.wnext = 0, s22.whave = 0, s22.window = new I2.Buf8(s22.wsize)), n2 >= s22.wsize ? (I2.arraySet(s22.window, t2, r22 - s22.wsize, s22.wsize, 0), s22.wnext = 0, s22.whave = s22.wsize) : (n2 < (i2 = s22.wsize - s22.wnext) && (i2 = n2), I2.arraySet(s22.window, t2, r22 - n2, i2, s22.wnext), (n2 -= i2) ? (I2.arraySet(s22.window, t2, r22 - n2, n2, 0), s22.wnext = n2, s22.whave = s22.wsize) : (s22.wnext += i2, s22.wnext === s22.wsize && (s22.wnext = 0), s22.whave < s22.wsize && (s22.whave += i2))), 0;
37875
38027
  }
37876
38028
  r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
37877
- return u(e2, 15);
37878
- }, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
37879
- var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
38029
+ return u3(e2, 15);
38030
+ }, r2.inflateInit2 = u3, r2.inflate = function(e2, t2) {
38031
+ var r22, n2, i2, s22, a2, o2, h22, u22, l2, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
37880
38032
  if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
37881
- 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x = N2;
38033
+ 12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u22 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
37882
38034
  e: for (; ; ) switch (r22.mode) {
37883
38035
  case P2:
37884
38036
  if (0 === r22.wrap) {
37885
38037
  r22.mode = 13;
37886
38038
  break;
37887
38039
  }
37888
- for (; l22 < 16; ) {
38040
+ for (; l2 < 16; ) {
37889
38041
  if (0 === o2) break e;
37890
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38042
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37891
38043
  }
37892
- if (2 & r22.wrap && 35615 === u2) {
37893
- E2[r22.check = 0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l22 = u2 = 0, r22.mode = 2;
38044
+ if (2 & r22.wrap && 35615 === u22) {
38045
+ E2[r22.check = 0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l2 = u22 = 0, r22.mode = 2;
37894
38046
  break;
37895
38047
  }
37896
- if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u2) << 8) + (u2 >> 8)) % 31) {
38048
+ if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u22) << 8) + (u22 >> 8)) % 31) {
37897
38049
  e2.msg = "incorrect header check", r22.mode = 30;
37898
38050
  break;
37899
38051
  }
37900
- if (8 != (15 & u2)) {
38052
+ if (8 != (15 & u22)) {
37901
38053
  e2.msg = "unknown compression method", r22.mode = 30;
37902
38054
  break;
37903
38055
  }
37904
- if (l22 -= 4, k2 = 8 + (15 & (u2 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
38056
+ if (l2 -= 4, k2 = 8 + (15 & (u22 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
37905
38057
  else if (k2 > r22.wbits) {
37906
38058
  e2.msg = "invalid window size", r22.mode = 30;
37907
38059
  break;
37908
38060
  }
37909
- r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u2 ? 10 : 12, l22 = u2 = 0;
38061
+ r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u22 ? 10 : 12, l2 = u22 = 0;
37910
38062
  break;
37911
38063
  case 2:
37912
- for (; l22 < 16; ) {
38064
+ for (; l2 < 16; ) {
37913
38065
  if (0 === o2) break e;
37914
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38066
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37915
38067
  }
37916
- if (r22.flags = u2, 8 != (255 & r22.flags)) {
38068
+ if (r22.flags = u22, 8 != (255 & r22.flags)) {
37917
38069
  e2.msg = "unknown compression method", r22.mode = 30;
37918
38070
  break;
37919
38071
  }
@@ -37921,26 +38073,26 @@ function requireJszip_min() {
37921
38073
  e2.msg = "unknown header flags set", r22.mode = 30;
37922
38074
  break;
37923
38075
  }
37924
- r22.head && (r22.head.text = u2 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 3;
38076
+ r22.head && (r22.head.text = u22 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 3;
37925
38077
  case 3:
37926
- for (; l22 < 32; ) {
38078
+ for (; l2 < 32; ) {
37927
38079
  if (0 === o2) break e;
37928
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38080
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37929
38081
  }
37930
- r22.head && (r22.head.time = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, E2[2] = u2 >>> 16 & 255, E2[3] = u2 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l22 = u2 = 0, r22.mode = 4;
38082
+ r22.head && (r22.head.time = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, E2[2] = u22 >>> 16 & 255, E2[3] = u22 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l2 = u22 = 0, r22.mode = 4;
37931
38083
  case 4:
37932
- for (; l22 < 16; ) {
38084
+ for (; l2 < 16; ) {
37933
38085
  if (0 === o2) break e;
37934
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38086
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37935
38087
  }
37936
- r22.head && (r22.head.xflags = 255 & u2, r22.head.os = u2 >> 8), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 5;
38088
+ r22.head && (r22.head.xflags = 255 & u22, r22.head.os = u22 >> 8), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 5;
37937
38089
  case 5:
37938
38090
  if (1024 & r22.flags) {
37939
- for (; l22 < 16; ) {
38091
+ for (; l2 < 16; ) {
37940
38092
  if (0 === o2) break e;
37941
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38093
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37942
38094
  }
37943
- r22.length = u2, r22.head && (r22.head.extra_len = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0;
38095
+ r22.length = u22, r22.head && (r22.head.extra_len = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0;
37944
38096
  } else r22.head && (r22.head.extra = null);
37945
38097
  r22.mode = 6;
37946
38098
  case 6:
@@ -37962,45 +38114,45 @@ function requireJszip_min() {
37962
38114
  r22.mode = 9;
37963
38115
  case 9:
37964
38116
  if (512 & r22.flags) {
37965
- for (; l22 < 16; ) {
38117
+ for (; l2 < 16; ) {
37966
38118
  if (0 === o2) break e;
37967
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38119
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37968
38120
  }
37969
- if (u2 !== (65535 & r22.check)) {
38121
+ if (u22 !== (65535 & r22.check)) {
37970
38122
  e2.msg = "header crc mismatch", r22.mode = 30;
37971
38123
  break;
37972
38124
  }
37973
- l22 = u2 = 0;
38125
+ l2 = u22 = 0;
37974
38126
  }
37975
38127
  r22.head && (r22.head.hcrc = r22.flags >> 9 & 1, r22.head.done = true), e2.adler = r22.check = 0, r22.mode = 12;
37976
38128
  break;
37977
38129
  case 10:
37978
- for (; l22 < 32; ) {
38130
+ for (; l2 < 32; ) {
37979
38131
  if (0 === o2) break e;
37980
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38132
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37981
38133
  }
37982
- e2.adler = r22.check = L2(u2), l22 = u2 = 0, r22.mode = 11;
38134
+ e2.adler = r22.check = L2(u22), l2 = u22 = 0, r22.mode = 11;
37983
38135
  case 11:
37984
- if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, 2;
38136
+ if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, 2;
37985
38137
  e2.adler = r22.check = 1, r22.mode = 12;
37986
38138
  case 12:
37987
38139
  if (5 === t2 || 6 === t2) break e;
37988
38140
  case 13:
37989
38141
  if (r22.last) {
37990
- u2 >>>= 7 & l22, l22 -= 7 & l22, r22.mode = 27;
38142
+ u22 >>>= 7 & l2, l2 -= 7 & l2, r22.mode = 27;
37991
38143
  break;
37992
38144
  }
37993
- for (; l22 < 3; ) {
38145
+ for (; l2 < 3; ) {
37994
38146
  if (0 === o2) break e;
37995
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38147
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
37996
38148
  }
37997
- switch (r22.last = 1 & u2, l22 -= 1, 3 & (u2 >>>= 1)) {
38149
+ switch (r22.last = 1 & u22, l2 -= 1, 3 & (u22 >>>= 1)) {
37998
38150
  case 0:
37999
38151
  r22.mode = 14;
38000
38152
  break;
38001
38153
  case 1:
38002
38154
  if (j2(r22), r22.mode = 20, 6 !== t2) break;
38003
- u2 >>>= 2, l22 -= 2;
38155
+ u22 >>>= 2, l2 -= 2;
38004
38156
  break e;
38005
38157
  case 2:
38006
38158
  r22.mode = 17;
@@ -38008,18 +38160,18 @@ function requireJszip_min() {
38008
38160
  case 3:
38009
38161
  e2.msg = "invalid block type", r22.mode = 30;
38010
38162
  }
38011
- u2 >>>= 2, l22 -= 2;
38163
+ u22 >>>= 2, l2 -= 2;
38012
38164
  break;
38013
38165
  case 14:
38014
- for (u2 >>>= 7 & l22, l22 -= 7 & l22; l22 < 32; ) {
38166
+ for (u22 >>>= 7 & l2, l2 -= 7 & l2; l2 < 32; ) {
38015
38167
  if (0 === o2) break e;
38016
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38168
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38017
38169
  }
38018
- if ((65535 & u2) != (u2 >>> 16 ^ 65535)) {
38170
+ if ((65535 & u22) != (u22 >>> 16 ^ 65535)) {
38019
38171
  e2.msg = "invalid stored block lengths", r22.mode = 30;
38020
38172
  break;
38021
38173
  }
38022
- if (r22.length = 65535 & u2, l22 = u2 = 0, r22.mode = 15, 6 === t2) break e;
38174
+ if (r22.length = 65535 & u22, l2 = u22 = 0, r22.mode = 15, 6 === t2) break e;
38023
38175
  case 15:
38024
38176
  r22.mode = 16;
38025
38177
  case 16:
@@ -38031,59 +38183,59 @@ function requireJszip_min() {
38031
38183
  r22.mode = 12;
38032
38184
  break;
38033
38185
  case 17:
38034
- for (; l22 < 14; ) {
38186
+ for (; l2 < 14; ) {
38035
38187
  if (0 === o2) break e;
38036
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38188
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38037
38189
  }
38038
- if (r22.nlen = 257 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ndist = 1 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ncode = 4 + (15 & u2), u2 >>>= 4, l22 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
38190
+ if (r22.nlen = 257 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ndist = 1 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ncode = 4 + (15 & u22), u22 >>>= 4, l2 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
38039
38191
  e2.msg = "too many length or distance symbols", r22.mode = 30;
38040
38192
  break;
38041
38193
  }
38042
38194
  r22.have = 0, r22.mode = 18;
38043
38195
  case 18:
38044
38196
  for (; r22.have < r22.ncode; ) {
38045
- for (; l22 < 3; ) {
38197
+ for (; l2 < 3; ) {
38046
38198
  if (0 === o2) break e;
38047
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38199
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38048
38200
  }
38049
- r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l22 -= 3;
38201
+ r22.lens[A2[r22.have++]] = 7 & u22, u22 >>>= 3, l2 -= 3;
38050
38202
  }
38051
38203
  for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
38052
- if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x = T(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
38204
+ if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x2 = T2(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
38053
38205
  e2.msg = "invalid code lengths set", r22.mode = 30;
38054
38206
  break;
38055
38207
  }
38056
38208
  r22.have = 0, r22.mode = 19;
38057
38209
  case 19:
38058
38210
  for (; r22.have < r22.nlen + r22.ndist; ) {
38059
- for (; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
38211
+ for (; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
38060
38212
  if (0 === o2) break e;
38061
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38213
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38062
38214
  }
38063
- if (b2 < 16) u2 >>>= _2, l22 -= _2, r22.lens[r22.have++] = b2;
38215
+ if (b2 < 16) u22 >>>= _2, l2 -= _2, r22.lens[r22.have++] = b2;
38064
38216
  else {
38065
38217
  if (16 === b2) {
38066
- for (z2 = _2 + 2; l22 < z2; ) {
38218
+ for (z2 = _2 + 2; l2 < z2; ) {
38067
38219
  if (0 === o2) break e;
38068
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38220
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38069
38221
  }
38070
- if (u2 >>>= _2, l22 -= _2, 0 === r22.have) {
38222
+ if (u22 >>>= _2, l2 -= _2, 0 === r22.have) {
38071
38223
  e2.msg = "invalid bit length repeat", r22.mode = 30;
38072
38224
  break;
38073
38225
  }
38074
- k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u2), u2 >>>= 2, l22 -= 2;
38226
+ k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u22), u22 >>>= 2, l2 -= 2;
38075
38227
  } else if (17 === b2) {
38076
- for (z2 = _2 + 3; l22 < z2; ) {
38228
+ for (z2 = _2 + 3; l2 < z2; ) {
38077
38229
  if (0 === o2) break e;
38078
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38230
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38079
38231
  }
38080
- l22 -= _2, k2 = 0, d2 = 3 + (7 & (u2 >>>= _2)), u2 >>>= 3, l22 -= 3;
38232
+ l2 -= _2, k2 = 0, d2 = 3 + (7 & (u22 >>>= _2)), u22 >>>= 3, l2 -= 3;
38081
38233
  } else {
38082
- for (z2 = _2 + 7; l22 < z2; ) {
38234
+ for (z2 = _2 + 7; l2 < z2; ) {
38083
38235
  if (0 === o2) break e;
38084
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38236
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38085
38237
  }
38086
- l22 -= _2, k2 = 0, d2 = 11 + (127 & (u2 >>>= _2)), u2 >>>= 7, l22 -= 7;
38238
+ l2 -= _2, k2 = 0, d2 = 11 + (127 & (u22 >>>= _2)), u22 >>>= 7, l2 -= 7;
38087
38239
  }
38088
38240
  if (r22.have + d2 > r22.nlen + r22.ndist) {
38089
38241
  e2.msg = "invalid bit length repeat", r22.mode = 30;
@@ -38097,11 +38249,11 @@ function requireJszip_min() {
38097
38249
  e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
38098
38250
  break;
38099
38251
  }
38100
- if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x = T(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
38252
+ if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x2 = T2(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
38101
38253
  e2.msg = "invalid literal/lengths set", r22.mode = 30;
38102
38254
  break;
38103
38255
  }
38104
- if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x = T(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x) {
38256
+ if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x2 = T2(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x2) {
38105
38257
  e2.msg = "invalid distances set", r22.mode = 30;
38106
38258
  break;
38107
38259
  }
@@ -38110,21 +38262,21 @@ function requireJszip_min() {
38110
38262
  r22.mode = 21;
38111
38263
  case 21:
38112
38264
  if (6 <= o2 && 258 <= h22) {
38113
- e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R2(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
38265
+ e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, R(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u22 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
38114
38266
  break;
38115
38267
  }
38116
- for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
38268
+ for (r22.back = 0; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
38117
38269
  if (0 === o2) break e;
38118
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38270
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38119
38271
  }
38120
38272
  if (g && 0 == (240 & g)) {
38121
- for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
38273
+ for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
38122
38274
  if (0 === o2) break e;
38123
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38275
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38124
38276
  }
38125
- u2 >>>= v2, l22 -= v2, r22.back += v2;
38277
+ u22 >>>= v2, l2 -= v2, r22.back += v2;
38126
38278
  }
38127
- if (u2 >>>= _2, l22 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
38279
+ if (u22 >>>= _2, l2 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
38128
38280
  r22.mode = 26;
38129
38281
  break;
38130
38282
  }
@@ -38139,37 +38291,37 @@ function requireJszip_min() {
38139
38291
  r22.extra = 15 & g, r22.mode = 22;
38140
38292
  case 22:
38141
38293
  if (r22.extra) {
38142
- for (z2 = r22.extra; l22 < z2; ) {
38294
+ for (z2 = r22.extra; l2 < z2; ) {
38143
38295
  if (0 === o2) break e;
38144
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38296
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38145
38297
  }
38146
- r22.length += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
38298
+ r22.length += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
38147
38299
  }
38148
38300
  r22.was = r22.length, r22.mode = 23;
38149
38301
  case 23:
38150
- for (; g = (C2 = r22.distcode[u2 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
38302
+ for (; g = (C2 = r22.distcode[u22 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
38151
38303
  if (0 === o2) break e;
38152
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38304
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38153
38305
  }
38154
38306
  if (0 == (240 & g)) {
38155
- for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
38307
+ for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
38156
38308
  if (0 === o2) break e;
38157
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38309
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38158
38310
  }
38159
- u2 >>>= v2, l22 -= v2, r22.back += v2;
38311
+ u22 >>>= v2, l2 -= v2, r22.back += v2;
38160
38312
  }
38161
- if (u2 >>>= _2, l22 -= _2, r22.back += _2, 64 & g) {
38313
+ if (u22 >>>= _2, l2 -= _2, r22.back += _2, 64 & g) {
38162
38314
  e2.msg = "invalid distance code", r22.mode = 30;
38163
38315
  break;
38164
38316
  }
38165
38317
  r22.offset = b2, r22.extra = 15 & g, r22.mode = 24;
38166
38318
  case 24:
38167
38319
  if (r22.extra) {
38168
- for (z2 = r22.extra; l22 < z2; ) {
38320
+ for (z2 = r22.extra; l2 < z2; ) {
38169
38321
  if (0 === o2) break e;
38170
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38322
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38171
38323
  }
38172
- r22.offset += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
38324
+ r22.offset += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
38173
38325
  }
38174
38326
  if (r22.offset > r22.dmax) {
38175
38327
  e2.msg = "invalid distance too far back", r22.mode = 30;
@@ -38194,35 +38346,35 @@ function requireJszip_min() {
38194
38346
  break;
38195
38347
  case 27:
38196
38348
  if (r22.wrap) {
38197
- for (; l22 < 32; ) {
38349
+ for (; l2 < 32; ) {
38198
38350
  if (0 === o2) break e;
38199
- o2--, u2 |= n2[s22++] << l22, l22 += 8;
38351
+ o2--, u22 |= n2[s22++] << l2, l2 += 8;
38200
38352
  }
38201
- if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O2(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
38353
+ if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u22 : L2(u22)) !== r22.check) {
38202
38354
  e2.msg = "incorrect data check", r22.mode = 30;
38203
38355
  break;
38204
38356
  }
38205
- l22 = u2 = 0;
38357
+ l2 = u22 = 0;
38206
38358
  }
38207
38359
  r22.mode = 28;
38208
38360
  case 28:
38209
38361
  if (r22.wrap && r22.flags) {
38210
- for (; l22 < 32; ) {
38362
+ for (; l2 < 32; ) {
38211
38363
  if (0 === o2) break e;
38212
- o2--, u2 += n2[s22++] << l22, l22 += 8;
38364
+ o2--, u22 += n2[s22++] << l2, l2 += 8;
38213
38365
  }
38214
- if (u2 !== (4294967295 & r22.total)) {
38366
+ if (u22 !== (4294967295 & r22.total)) {
38215
38367
  e2.msg = "incorrect length check", r22.mode = 30;
38216
38368
  break;
38217
38369
  }
38218
- l22 = u2 = 0;
38370
+ l2 = u22 = 0;
38219
38371
  }
38220
38372
  r22.mode = 29;
38221
38373
  case 29:
38222
- x = 1;
38374
+ x2 = 1;
38223
38375
  break e;
38224
38376
  case 30:
38225
- x = -3;
38377
+ x2 = -3;
38226
38378
  break e;
38227
38379
  case 31:
38228
38380
  return -4;
@@ -38230,7 +38382,7 @@ function requireJszip_min() {
38230
38382
  default:
38231
38383
  return U2;
38232
38384
  }
38233
- return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O2(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
38385
+ return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x2 === N2 && (x2 = -5), x2);
38234
38386
  }, r2.inflateEnd = function(e2) {
38235
38387
  if (!e2 || !e2.state) return U2;
38236
38388
  var t2 = e2.state;
@@ -38240,33 +38392,33 @@ function requireJszip_min() {
38240
38392
  return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
38241
38393
  }, r2.inflateSetDictionary = function(e2, t2) {
38242
38394
  var r22, n2 = t2.length;
38243
- return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O2(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
38395
+ return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
38244
38396
  }, r2.inflateInfo = "pako inflate (from Nodeca project)";
38245
38397
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
38246
38398
  var D2 = e("../utils/common"), F2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N2 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
38247
38399
  t.exports = function(e2, t2, r22, n, i, s2, a, o) {
38248
- var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
38249
- for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
38250
- for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
38251
- for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
38400
+ var h2, u3, l, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
38401
+ for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
38402
+ for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
38403
+ for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
38252
38404
  if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
38253
- for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
38254
- for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
38405
+ for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
38406
+ for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
38255
38407
  if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
38256
- for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
38408
+ for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
38257
38409
  for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
38258
- if (d2 = 0 === e2 ? (A2 = R2 = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38410
+ if (d2 = 0 === e2 ? (A2 = R = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38259
38411
  for (; ; ) {
38260
- for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R2[T + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
38412
+ for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R[T2 + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u3 = 1 << x2; i[c2 + (E2 >> S2) + (u3 -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u3; ) ;
38261
38413
  for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
38262
- if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
38414
+ if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
38263
38415
  if (b2 === w2) break;
38264
38416
  b2 = t2[r22 + a[v2]];
38265
38417
  }
38266
- if (k2 < b2 && (E2 & f2) !== l3) {
38267
- for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
38268
- if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38269
- i[l3 = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
38418
+ if (k2 < b2 && (E2 & f2) !== l) {
38419
+ for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
38420
+ if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
38421
+ i[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
38270
38422
  }
38271
38423
  }
38272
38424
  return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
@@ -38278,7 +38430,7 @@ function requireJszip_min() {
38278
38430
  function n(e2) {
38279
38431
  for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
38280
38432
  }
38281
- var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
38433
+ var s2 = 0, a = 29, u3 = 256, l = u3 + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l + 2));
38282
38434
  n(z2);
38283
38435
  var C2 = new Array(2 * f2);
38284
38436
  n(C2);
@@ -38288,7 +38440,7 @@ function requireJszip_min() {
38288
38440
  n(A2);
38289
38441
  var I2 = new Array(a);
38290
38442
  n(I2);
38291
- var O2, B2, R2, T = new Array(f2);
38443
+ var O, B2, R, T2 = new Array(f2);
38292
38444
  function D2(e2, t2, r22, n2, i2) {
38293
38445
  this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;
38294
38446
  }
@@ -38321,7 +38473,7 @@ function requireJszip_min() {
38321
38473
  }
38322
38474
  function W2(e2) {
38323
38475
  var t2;
38324
- for (t2 = 0; t2 < l3; t2++) e2.dyn_ltree[2 * t2] = 0;
38476
+ for (t2 = 0; t2 < l; t2++) e2.dyn_ltree[2 * t2] = 0;
38325
38477
  for (t2 = 0; t2 < f2; t2++) e2.dyn_dtree[2 * t2] = 0;
38326
38478
  for (t2 = 0; t2 < c2; t2++) e2.bl_tree[2 * t2] = 0;
38327
38479
  e2.dyn_ltree[2 * m2] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;
@@ -38339,41 +38491,41 @@ function requireJszip_min() {
38339
38491
  }
38340
38492
  function K2(e2, t2, r22) {
38341
38493
  var n2, i2, s22, a2, o2 = 0;
38342
- if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T[s22], a2)), o2 < e2.last_lit; ) ;
38494
+ if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u3 + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T2[s22], a2)), o2 < e2.last_lit; ) ;
38343
38495
  L2(e2, m2, t2);
38344
38496
  }
38345
38497
  function Y2(e2, t2) {
38346
- var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u2 = -1;
38347
- for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u2 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
38348
- for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
38349
- for (t2.max_code = u2, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
38498
+ var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u22 = -1;
38499
+ for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u22 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
38500
+ for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u22 < 2 ? ++u22 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
38501
+ for (t2.max_code = u22, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
38350
38502
  for (i2 = h22; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G2(e2, s22, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r22, e2.heap[--e2.heap_max] = n2, s22[2 * i2] = s22[2 * r22] + s22[2 * n2], e2.depth[i2] = (e2.depth[r22] >= e2.depth[n2] ? e2.depth[r22] : e2.depth[n2]) + 1, s22[2 * r22 + 1] = s22[2 * n2 + 1] = i2, e2.heap[1] = i2++, G2(e2, s22, 1), 2 <= e2.heap_len; ) ;
38351
38503
  e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
38352
- var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l22 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
38504
+ var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u32 = t3.max_code, l2 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
38353
38505
  for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
38354
- for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3, u3 < n3 || (e3.bl_count[s3]++, a3 = 0, d22 <= n3 && (a3 = c22[n3 - d22]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f22 && (e3.static_len += o3 * (l22[2 * n3 + 1] + a3)));
38506
+ for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3, u32 < n3 || (e3.bl_count[s3]++, a3 = 0, d22 <= n3 && (a3 = c22[n3 - d22]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f22 && (e3.static_len += o3 * (l2[2 * n3 + 1] + a3)));
38355
38507
  if (0 !== m22) {
38356
38508
  do {
38357
38509
  for (s3 = p2 - 1; 0 === e3.bl_count[s3]; ) s3--;
38358
38510
  e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m22 -= 2;
38359
38511
  } while (0 < m22);
38360
- for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u3 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);
38512
+ for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u32 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);
38361
38513
  }
38362
- })(e2, t2), Z(s22, u2, e2.bl_count);
38514
+ })(e2, t2), Z(s22, u22, e2.bl_count);
38363
38515
  }
38364
38516
  function X2(e2, t2, r22) {
38365
- var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
38366
- for (0 === a2 && (h22 = 138, u2 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
38517
+ var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
38518
+ for (0 === a2 && (h22 = 138, u22 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u22 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
38367
38519
  }
38368
38520
  function V2(e2, t2, r22) {
38369
- var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
38370
- for (0 === a2 && (h22 = 138, u2 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
38371
- if (o2 < u2) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
38521
+ var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
38522
+ for (0 === a2 && (h22 = 138, u22 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
38523
+ if (o2 < u22) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
38372
38524
  else 0 !== i2 ? (i2 !== s22 && (L2(e2, i2, e2.bl_tree), o2--), L2(e2, b2, e2.bl_tree), P2(e2, o2 - 3, 2)) : o2 <= 10 ? (L2(e2, v2, e2.bl_tree), P2(e2, o2 - 3, 3)) : (L2(e2, y2, e2.bl_tree), P2(e2, o2 - 11, 7));
38373
- s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
38525
+ s22 = i2, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
38374
38526
  }
38375
38527
  }
38376
- n(T);
38528
+ n(T2);
38377
38529
  var q2 = false;
38378
38530
  function J2(e2, t2, r22, n2) {
38379
38531
  P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
@@ -38384,23 +38536,23 @@ function requireJszip_min() {
38384
38536
  q2 || ((function() {
38385
38537
  var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
38386
38538
  for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
38387
- for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38388
- for (i2 >>= 7; n2 < f2; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38539
+ for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T2[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
38540
+ for (i2 >>= 7; n2 < f2; n2++) for (T2[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
38389
38541
  for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
38390
38542
  for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38391
38543
  for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
38392
38544
  for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
38393
38545
  for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
38394
- for (Z(z2, l3 + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
38395
- O2 = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p);
38396
- })(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O2), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R2), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
38546
+ for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
38547
+ O = new D2(z2, w2, u3 + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p);
38548
+ })(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
38397
38549
  }, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
38398
38550
  var i2, s22, a2 = 0;
38399
38551
  0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
38400
38552
  var t3, r3 = 4093624447;
38401
38553
  for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) return o;
38402
38554
  if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h2;
38403
- for (t3 = 32; t3 < u; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
38555
+ for (t3 = 32; t3 < u3; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
38404
38556
  return o;
38405
38557
  })(e2)), Y2(e2, e2.l_desc), Y2(e2, e2.d_desc), a2 = (function(e3) {
38406
38558
  var t3;
@@ -38412,7 +38564,7 @@ function requireJszip_min() {
38412
38564
  V2(e3, e3.dyn_ltree, t3 - 1), V2(e3, e3.dyn_dtree, r3 - 1);
38413
38565
  })(e2, e2.l_desc.max_code + 1, e2.d_desc.max_code + 1, a2 + 1), K2(e2, e2.dyn_ltree, e2.dyn_dtree)), W2(e2), n2 && M2(e2);
38414
38566
  }, r2._tr_tally = function(e2, t2, r22) {
38415
- return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] + u + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
38567
+ return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] + u3 + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
38416
38568
  }, r2._tr_align = function(e2) {
38417
38569
  P2(e2, 2, 3), L2(e2, m2, z2), (function(e3) {
38418
38570
  16 === e3.bi_valid ? (U2(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);
@@ -38426,7 +38578,7 @@ function requireJszip_min() {
38426
38578
  (function(e2) {
38427
38579
  !(function(r22, n) {
38428
38580
  if (!r22.setImmediate) {
38429
- var i, s2, t2, a, o = 1, h2 = {}, u = false, l3 = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
38581
+ var i, s2, t2, a, o = 1, h2 = {}, u3 = false, l = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
38430
38582
  e3 = e3 && e3.setTimeout ? e3 : r22, i = "[object process]" === {}.toString.call(r22.process) ? function(e4) {
38431
38583
  process$1$1.nextTick(function() {
38432
38584
  c2(e4);
@@ -38444,8 +38596,8 @@ function requireJszip_min() {
38444
38596
  c2(e4.data);
38445
38597
  }, function(e4) {
38446
38598
  t2.port2.postMessage(e4);
38447
- }) : l3 && "onreadystatechange" in l3.createElement("script") ? (s2 = l3.documentElement, function(e4) {
38448
- var t3 = l3.createElement("script");
38599
+ }) : l && "onreadystatechange" in l.createElement("script") ? (s2 = l.documentElement, function(e4) {
38600
+ var t3 = l.createElement("script");
38449
38601
  t3.onreadystatechange = function() {
38450
38602
  c2(e4), t3.onreadystatechange = null, s2.removeChild(t3), t3 = null;
38451
38603
  }, s2.appendChild(t3);
@@ -38462,11 +38614,11 @@ function requireJszip_min() {
38462
38614
  delete h2[e4];
38463
38615
  }
38464
38616
  function c2(e4) {
38465
- if (u) setTimeout(c2, 0, e4);
38617
+ if (u3) setTimeout(c2, 0, e4);
38466
38618
  else {
38467
38619
  var t3 = h2[e4];
38468
38620
  if (t3) {
38469
- u = true;
38621
+ u3 = true;
38470
38622
  try {
38471
38623
  !(function(e5) {
38472
38624
  var t4 = e5.callback, r3 = e5.args;
@@ -38488,7 +38640,7 @@ function requireJszip_min() {
38488
38640
  }
38489
38641
  })(t3);
38490
38642
  } finally {
38491
- f2(e4), u = false;
38643
+ f2(e4), u3 = false;
38492
38644
  }
38493
38645
  }
38494
38646
  }
@@ -38734,14 +38886,14 @@ class DocxZipper {
38734
38886
  const zip = await this.zip.loadAsync(file);
38735
38887
  return zip;
38736
38888
  }
38737
- async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless }) {
38889
+ async updateZip({ docx, updatedDocs, originalDocxFile, media, fonts, isHeadless: isHeadless2 }) {
38738
38890
  let zip;
38739
38891
  if (originalDocxFile) {
38740
38892
  zip = await this.exportFromOriginalFile(originalDocxFile, updatedDocs, media);
38741
38893
  } else {
38742
38894
  zip = await this.exportFromCollaborativeDocx(docx, updatedDocs, media, fonts);
38743
38895
  }
38744
- const exportType = isHeadless ? "nodebuffer" : "blob";
38896
+ const exportType = isHeadless2 ? "nodebuffer" : "blob";
38745
38897
  return await zip.generateAsync({ type: exportType });
38746
38898
  }
38747
38899
  /**
@@ -39469,17 +39621,17 @@ function deepActiveElement(doc2) {
39469
39621
  elt = elt.shadowRoot.activeElement;
39470
39622
  return elt;
39471
39623
  }
39472
- function caretFromPoint(doc2, x, y2) {
39624
+ function caretFromPoint(doc2, x2, y2) {
39473
39625
  if (doc2.caretPositionFromPoint) {
39474
39626
  try {
39475
- let pos = doc2.caretPositionFromPoint(x, y2);
39627
+ let pos = doc2.caretPositionFromPoint(x2, y2);
39476
39628
  if (pos)
39477
39629
  return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
39478
39630
  } catch (_2) {
39479
39631
  }
39480
39632
  }
39481
39633
  if (doc2.caretRangeFromPoint) {
39482
- let range2 = doc2.caretRangeFromPoint(x, y2);
39634
+ let range2 = doc2.caretRangeFromPoint(x2, y2);
39483
39635
  if (range2)
39484
39636
  return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
39485
39637
  }
@@ -39578,8 +39730,8 @@ function scrollRectIntoView(view, rect, startDOM) {
39578
39730
  function storeScrollPos(view) {
39579
39731
  let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
39580
39732
  let refDOM, refTop;
39581
- for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39582
- let dom = view.root.elementFromPoint(x, y2);
39733
+ for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
39734
+ let dom = view.root.elementFromPoint(x2, y2);
39583
39735
  if (!dom || dom == view.dom || !view.dom.contains(dom))
39584
39736
  continue;
39585
39737
  let localRect = dom.getBoundingClientRect();
@@ -39875,8 +40027,8 @@ function coordsAtPos(view, pos, side) {
39875
40027
  function flattenV(rect, left2) {
39876
40028
  if (rect.width == 0)
39877
40029
  return rect;
39878
- let x = left2 ? rect.left : rect.right;
39879
- return { top: rect.top, bottom: rect.bottom, left: x, right: x };
40030
+ let x2 = left2 ? rect.left : rect.right;
40031
+ return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
39880
40032
  }
39881
40033
  function flattenH(rect, top2) {
39882
40034
  if (rect.height == 0)
@@ -44883,10 +45035,10 @@ const createTimeoutClass = (clearFunction) => class TT {
44883
45035
  const Timeout = createTimeoutClass(clearTimeout);
44884
45036
  const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
44885
45037
  const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
44886
- const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
44887
- const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
44888
- const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
44889
- const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
45038
+ const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
45039
+ const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
45040
+ const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
45041
+ const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
44890
45042
  const K = new Uint32Array([
44891
45043
  1116352408,
44892
45044
  1899447441,
@@ -45715,9 +45867,9 @@ const equalAttrs = (pattrs, yattrs) => {
45715
45867
  let eq2 = keys2.length === (yattrs == null ? 0 : Object.keys(yattrs).filter((key2) => yattrs[key2] !== null).length);
45716
45868
  for (let i = 0; i < keys2.length && eq2; i++) {
45717
45869
  const key2 = keys2[i];
45718
- const l3 = pattrs[key2];
45870
+ const l = pattrs[key2];
45719
45871
  const r2 = yattrs[key2];
45720
- eq2 = key2 === "ychange" || l3 === r2 || isObject$1(l3) && isObject$1(r2) && equalAttrs(l3, r2);
45872
+ eq2 = key2 === "ychange" || l === r2 || isObject$1(l) && isObject$1(r2) && equalAttrs(l, r2);
45721
45873
  }
45722
45874
  return eq2;
45723
45875
  };
@@ -50477,9 +50629,15 @@ const applyStyleIsolationClass = (target) => {
50477
50629
  if (!target || !target.classList) return;
50478
50630
  target.classList.add(STYLE_ISOLATION_CLASS);
50479
50631
  };
50632
+ const isHeadless = (editor) => {
50633
+ return editor?.options?.isHeadless ?? false;
50634
+ };
50635
+ const shouldSkipNodeView = (editor) => {
50636
+ return isHeadless(editor);
50637
+ };
50480
50638
  const PaginationPluginKey = new PluginKey("paginationPlugin");
50481
50639
  const initPaginationData = async (editor) => {
50482
- if (!editor.converter) return;
50640
+ if (isHeadless(editor) || !editor.converter) return;
50483
50641
  const sectionData = { headers: {}, footers: {} };
50484
50642
  const headerIds = editor.converter.headerIds.ids;
50485
50643
  const footerIds = editor.converter.footerIds.ids;
@@ -50615,6 +50773,7 @@ const broadcastEditorEvents = (editor, sectionEditor) => {
50615
50773
  });
50616
50774
  };
50617
50775
  const toggleHeaderFooterEditMode = ({ editor, focusedSectionEditor, isEditMode, documentMode }) => {
50776
+ if (isHeadless(editor)) return;
50618
50777
  editor.converter.headerEditors.forEach((item) => {
50619
50778
  item.editor.setEditable(isEditMode, false);
50620
50779
  item.editor.view.dom.setAttribute("aria-readonly", !isEditMode);
@@ -53684,10 +53843,12 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53684
53843
  };
53685
53844
  if ("orientation" in screen && "addEventListener" in screen.orientation) {
53686
53845
  screen.orientation.addEventListener("change", handleResize);
53687
- } else {
53846
+ } else if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
53688
53847
  window.matchMedia("(orientation: portrait)").addEventListener("change", handleResize);
53689
53848
  }
53690
- window.addEventListener("resize", () => handleResize);
53849
+ if (typeof window !== "undefined" && typeof window.addEventListener === "function") {
53850
+ window.addEventListener("resize", () => handleResize);
53851
+ }
53691
53852
  }
53692
53853
  /**
53693
53854
  * Get document identifier for telemetry (async - may generate hash)
@@ -53801,7 +53962,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53801
53962
  { default: remarkStringify },
53802
53963
  { default: remarkGfm }
53803
53964
  ] = await Promise.all([
53804
- import("./index-373DqHu6-BLRN3Gja.es.js"),
53965
+ import("./index-C3nnrhrj-D8emuLzt.es.js"),
53805
53966
  import("./index-DRCvimau-Cw339678.es.js"),
53806
53967
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
53807
53968
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -53853,7 +54014,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
53853
54014
  this.initDefaultStyles();
53854
54015
  hasMadeUpdate = true;
53855
54016
  }
53856
- if (hasMadeUpdate) {
54017
+ if (hasMadeUpdate && !isHeadless(this)) {
53857
54018
  const newTr = this.view.state.tr;
53858
54019
  newTr.setMeta("forceUpdatePagination", true);
53859
54020
  this.view.dispatch(newTr);
@@ -54019,7 +54180,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
54019
54180
  * @returns {Object | void} Migration results
54020
54181
  */
54021
54182
  processCollaborationMigrations() {
54022
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0");
54183
+ console.debug("[checkVersionMigrations] Current editor version", "0.30.0-next.1");
54023
54184
  if (!this.options.ydoc) return;
54024
54185
  const metaMap = this.options.ydoc.getMap("meta");
54025
54186
  let docVersion = metaMap.get("version");
@@ -54453,16 +54614,18 @@ createView_fn = function(element) {
54453
54614
  handleClick: __privateMethod$1(this, _Editor_instances, handleNodeSelection_fn).bind(this),
54454
54615
  handleDoubleClick: async (view, pos, event) => {
54455
54616
  if (this.options.documentMode !== "editing") return;
54456
- const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
54457
- const isFooter = hasSomeParentWithClass(event.target, "pagination-section-footer");
54458
- if (isHeader || isFooter) {
54459
- const eventClone = new event.constructor(event.type);
54460
- event.target.dispatchEvent(eventClone);
54461
- if (this.options.isHeaderOrFooter && this.options.editable) setWordSelection(view, pos);
54462
- return;
54617
+ if (!isHeadless(this)) {
54618
+ const isHeader = hasSomeParentWithClass(event.target, "pagination-section-header");
54619
+ const isFooter = hasSomeParentWithClass(event.target, "pagination-section-footer");
54620
+ if (isHeader || isFooter) {
54621
+ const eventClone = new event.constructor(event.type);
54622
+ event.target.dispatchEvent(eventClone);
54623
+ if (this.options.isHeaderOrFooter && this.options.editable) setWordSelection(view, pos);
54624
+ return;
54625
+ }
54463
54626
  }
54464
54627
  event.stopPropagation();
54465
- if (!this.options.editable) {
54628
+ if (!this.options.editable && !isHeadless(this)) {
54466
54629
  this.setEditable(true, false);
54467
54630
  toggleHeaderFooterEditMode({
54468
54631
  editor: this,
@@ -55893,16 +56056,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
55893
56056
  const { state: state2, dom } = view;
55894
56057
  const { selection } = state2;
55895
56058
  const containerRect = dom.getBoundingClientRect();
55896
- let x, y2;
56059
+ let x2, y2;
55897
56060
  if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
55898
- x = eventLocation.clientX - containerRect.left;
56061
+ x2 = eventLocation.clientX - containerRect.left;
55899
56062
  y2 = eventLocation.clientY - containerRect.top;
55900
56063
  } else {
55901
56064
  const cursorCoords = view.coordsAtPos(selection.from);
55902
- x = cursorCoords.left - containerRect.left;
56065
+ x2 = cursorCoords.left - containerRect.left;
55903
56066
  y2 = cursorCoords.top - containerRect.top;
55904
56067
  }
55905
- return { left: x, top: y2 };
56068
+ return { left: x2, top: y2 };
55906
56069
  }
55907
56070
  const SlashMenuPluginKey = new PluginKey("slashMenu");
55908
56071
  const SlashMenu = Extension.create({
@@ -56181,17 +56344,17 @@ class StructuredContentViewBase {
56181
56344
  if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
56182
56345
  return;
56183
56346
  }
56184
- let x = 0;
56347
+ let x2 = 0;
56185
56348
  let y2 = 0;
56186
56349
  if (this.dom !== dragHandle) {
56187
56350
  const domBox = this.dom.getBoundingClientRect();
56188
56351
  const handleBox = dragHandle.getBoundingClientRect();
56189
56352
  const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
56190
56353
  const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
56191
- x = handleBox.x - domBox.x + offsetX;
56354
+ x2 = handleBox.x - domBox.x + offsetX;
56192
56355
  y2 = handleBox.y - domBox.y + offsetY;
56193
56356
  }
56194
- event.dataTransfer?.setDragImage(this.dom, x, y2);
56357
+ event.dataTransfer?.setDragImage(this.dom, x2, y2);
56195
56358
  const pos = this.getPos();
56196
56359
  if (typeof pos !== "number") {
56197
56360
  return;
@@ -59098,9 +59261,6 @@ function orderedListSync(editor) {
59098
59261
  }
59099
59262
  });
59100
59263
  }
59101
- const shouldSkipNodeView = (editor) => {
59102
- return editor.options.isHeadless;
59103
- };
59104
59264
  const ListItem = Node$1.create({
59105
59265
  name: "listItem",
59106
59266
  content: "paragraph* block*",
@@ -64282,24 +64442,24 @@ function parseToRgba(color) {
64282
64442
  const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
64283
64443
  if (reducedHexMatch) {
64284
64444
  const arr = Array.from(reducedHexMatch).slice(1);
64285
- return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
64445
+ return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
64286
64446
  }
64287
64447
  const hexMatch = hexRegex$1.exec(normalizedColor);
64288
64448
  if (hexMatch) {
64289
64449
  const arr = Array.from(hexMatch).slice(1);
64290
- return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
64450
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
64291
64451
  }
64292
64452
  const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
64293
64453
  if (rgbaMatch) {
64294
64454
  const arr = Array.from(rgbaMatch).slice(1);
64295
- return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
64455
+ return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
64296
64456
  }
64297
64457
  const hslaMatch = hslaRegex$1.exec(normalizedColor);
64298
64458
  if (hslaMatch) {
64299
- const [h2, s2, l3, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
64459
+ const [h2, s2, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
64300
64460
  if (guard(0, 100, s2) !== s2) throw new ColorError$1(color);
64301
- if (guard(0, 100, l3) !== l3) throw new ColorError$1(color);
64302
- return [...hslToRgb(h2, s2, l3), Number.isNaN(a) ? 1 : a];
64461
+ if (guard(0, 100, l) !== l) throw new ColorError$1(color);
64462
+ return [...hslToRgb(h2, s2, l), Number.isNaN(a) ? 1 : a];
64303
64463
  }
64304
64464
  throw new ColorError$1(color);
64305
64465
  }
@@ -64311,7 +64471,7 @@ function hash$2(str) {
64311
64471
  }
64312
64472
  return (hash2 >>> 0) % 2341;
64313
64473
  }
64314
- const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
64474
+ const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
64315
64475
  const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next) => {
64316
64476
  const key2 = colorToInt(next.substring(0, 3));
64317
64477
  const hex2 = colorToInt(next.substring(3)).toString(16);
@@ -64338,12 +64498,12 @@ const roundColor = (color) => {
64338
64498
  return Math.round(color * 255);
64339
64499
  };
64340
64500
  const hslToRgb = (hue, saturation, lightness) => {
64341
- let l3 = lightness / 100;
64501
+ let l = lightness / 100;
64342
64502
  if (saturation === 0) {
64343
- return [l3, l3, l3].map(roundColor);
64503
+ return [l, l, l].map(roundColor);
64344
64504
  }
64345
64505
  const huePrime = (hue % 360 + 360) % 360 / 60;
64346
- const chroma = (1 - Math.abs(2 * l3 - 1)) * (saturation / 100);
64506
+ const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);
64347
64507
  const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
64348
64508
  let red = 0;
64349
64509
  let green = 0;
@@ -64367,7 +64527,7 @@ const hslToRgb = (hue, saturation, lightness) => {
64367
64527
  red = chroma;
64368
64528
  blue = secondComponent;
64369
64529
  }
64370
- const lightnessModification = l3 - chroma / 2;
64530
+ const lightnessModification = l - chroma / 2;
64371
64531
  const finalRed = red + lightnessModification;
64372
64532
  const finalGreen = green + lightnessModification;
64373
64533
  const finalBlue = blue + lightnessModification;
@@ -64375,8 +64535,8 @@ const hslToRgb = (hue, saturation, lightness) => {
64375
64535
  };
64376
64536
  function toHex(color) {
64377
64537
  const [r2, g, b2, a] = parseToRgba(color);
64378
- let hex2 = (x) => {
64379
- const h2 = guard(0, 255, x).toString(16);
64538
+ let hex2 = (x2) => {
64539
+ const h2 = guard(0, 255, x2).toString(16);
64380
64540
  return h2.length === 1 ? `0${h2}` : h2;
64381
64541
  };
64382
64542
  return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
@@ -65072,7 +65232,7 @@ const FieldAnnotation = Node$1.create({
65072
65232
  }
65073
65233
  if (dispatch) {
65074
65234
  commands2.updateFieldAnnotationsAttributes([annotation], attrs);
65075
- if (this.editor.options.pagination) {
65235
+ if (this.editor.options.pagination && !isHeadless(this.editor)) {
65076
65236
  setTimeout(() => {
65077
65237
  const newTr = this.editor.view.state.tr;
65078
65238
  newTr.setMeta("forceUpdatePagination", true);
@@ -66480,10 +66640,10 @@ const Image = Node$1.create({
66480
66640
  let minX = 0;
66481
66641
  let minY = 0;
66482
66642
  let maxY = 0;
66483
- attrs.polygon.forEach(([x, y2]) => {
66484
- if (floatRight && x < horizontalOffset) horizontalOffset = x;
66485
- if (x > maxX) maxX = x;
66486
- if (x < minX) minX = x;
66643
+ attrs.polygon.forEach(([x2, y2]) => {
66644
+ if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
66645
+ if (x2 > maxX) maxX = x2;
66646
+ if (x2 < minX) minX = x2;
66487
66647
  if (y2 > maxY) maxY = y2;
66488
66648
  if (y2 < minY) minY = y2;
66489
66649
  });
@@ -66492,7 +66652,7 @@ const Image = Node$1.create({
66492
66652
  const scaleWidth = Math.min(1, size2.width / originalWidth);
66493
66653
  const scaleHeight = Math.min(1, size2.height / originalHeight);
66494
66654
  const verticalOffset = Math.max(0, marginOffset.top);
66495
- const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
66655
+ const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
66496
66656
  style2 += `shape-outside: polygon(${points});`;
66497
66657
  }
66498
66658
  break;
@@ -67009,7 +67169,9 @@ const PageNumber = Node$1.create({
67009
67169
  const pageNumberNode = schema.nodeFromJSON(pageNumberNodeJSON);
67010
67170
  if (dispatch) {
67011
67171
  tr.replaceSelectionWith(pageNumberNode, false);
67012
- tr.setMeta("forceUpdatePagination", true);
67172
+ if (!isHeadless(editor)) {
67173
+ tr.setMeta("forceUpdatePagination", true);
67174
+ }
67013
67175
  }
67014
67176
  return true;
67015
67177
  }
@@ -69857,42 +70019,42 @@ var M = ["fill", "stroke", "strokeWidth", "fillRule", "clipRule"], d = s;
69857
70019
  function r(t) {
69858
70020
  if (!t) return null;
69859
70021
  let e = {};
69860
- return M.forEach((l3) => {
69861
- let L2 = t[l3];
70022
+ return M.forEach((l) => {
70023
+ let L2 = t[l];
69862
70024
  if (L2 !== void 0)
69863
- if (l3 === "strokeWidth") {
70025
+ if (l === "strokeWidth") {
69864
70026
  if (typeof L2 == "number") e.strokeWidth = L2;
69865
70027
  else if (typeof L2 == "string") {
69866
70028
  let o = Number(L2);
69867
70029
  Number.isFinite(o) && (e.strokeWidth = o);
69868
70030
  }
69869
- } else typeof L2 == "string" && (e[l3] = L2);
70031
+ } else typeof L2 == "string" && (e[l] = L2);
69870
70032
  }), Object.keys(e).length ? e : null;
69871
70033
  }
69872
70034
  function A(t, e) {
69873
- let l3 = t.map((o) => ({ ...o }));
69874
- if (!e) return l3;
70035
+ let l = t.map((o) => ({ ...o }));
70036
+ if (!e) return l;
69875
70037
  let L2 = (o, i) => typeof e == "function" ? r(e(o, i)) : Array.isArray(e) ? r(e[i]) : r(e);
69876
- return l3.map((o, i) => {
70038
+ return l.map((o, i) => {
69877
70039
  let n = L2(o, i);
69878
70040
  return n ? { ...o, ...n } : o;
69879
70041
  });
69880
70042
  }
69881
70043
  function f(t) {
69882
- let { preset: e, styleOverrides: l3 } = t;
70044
+ let { preset: e, styleOverrides: l } = t;
69883
70045
  if (!e) throw new Error("createPresetShape requires a preset name.");
69884
70046
  let L2 = d[e];
69885
70047
  if (!L2) throw new Error(`Unknown preset shape: ${e}`);
69886
- return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l3) };
70048
+ return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l) };
69887
70049
  }
69888
70050
  function k(t) {
69889
- let e = f(t), l3 = e.paths.map((L2) => {
70051
+ let e = f(t), l = e.paths.map((L2) => {
69890
70052
  let o = [`d="${L2.d}"`];
69891
70053
  return L2.fill !== void 0 && o.push(`fill="${L2.fill}"`), L2.stroke !== void 0 && o.push(`stroke="${L2.stroke}"`), L2.strokeWidth !== void 0 && o.push(`stroke-width="${L2.strokeWidth}"`), L2.fillRule !== void 0 && o.push(`fill-rule="${L2.fillRule}"`), L2.clipRule !== void 0 && o.push(`clip-rule="${L2.clipRule}"`), ` <path ${o.join(" ")} />`;
69892
70054
  }).join(`
69893
70055
  `);
69894
70056
  return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" preserveAspectRatio="none">
69895
- ${l3}
70057
+ ${l}
69896
70058
  </svg>`;
69897
70059
  }
69898
70060
  class VectorShapeView {
@@ -70078,6 +70240,255 @@ const VectorShape = Node$1.create({
70078
70240
  };
70079
70241
  }
70080
70242
  });
70243
+ class ShapeGroupView {
70244
+ constructor(props) {
70245
+ __publicField$1(this, "node");
70246
+ __publicField$1(this, "view");
70247
+ __publicField$1(this, "getPos");
70248
+ __publicField$1(this, "decorations");
70249
+ __publicField$1(this, "innerDecorations");
70250
+ __publicField$1(this, "editor");
70251
+ __publicField$1(this, "extension");
70252
+ __publicField$1(this, "htmlAttributes");
70253
+ __publicField$1(this, "root");
70254
+ this.node = props.node;
70255
+ this.view = props.editor.view;
70256
+ this.getPos = props.getPos;
70257
+ this.decorations = props.decorations;
70258
+ this.innerDecorations = props.innerDecorations;
70259
+ this.editor = props.editor;
70260
+ this.extension = props.extension;
70261
+ this.htmlAttributes = props.htmlAttributes;
70262
+ this.mount();
70263
+ }
70264
+ mount() {
70265
+ this.buildView();
70266
+ }
70267
+ get dom() {
70268
+ return this.root;
70269
+ }
70270
+ get contentDOM() {
70271
+ return null;
70272
+ }
70273
+ createElement() {
70274
+ const attrs = this.node.attrs;
70275
+ const { groupTransform, shapes, size: size2 } = attrs;
70276
+ const container = document.createElement("div");
70277
+ container.classList.add("sd-shape-group");
70278
+ container.setAttribute("data-shape-group", "");
70279
+ const width = size2?.width || groupTransform?.width || 300;
70280
+ const height = size2?.height || groupTransform?.height || 200;
70281
+ container.style.width = `${width}px`;
70282
+ container.style.height = `${height}px`;
70283
+ container.style.position = "relative";
70284
+ container.style.display = "inline-block";
70285
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
70286
+ svg.setAttribute("version", "1.1");
70287
+ svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
70288
+ svg.setAttribute("width", width.toString());
70289
+ svg.setAttribute("height", height.toString());
70290
+ svg.setAttribute("viewBox", `0 0 ${width} ${height}`);
70291
+ svg.style.display = "block";
70292
+ if (shapes && Array.isArray(shapes)) {
70293
+ shapes.forEach((shape) => {
70294
+ if (shape.shapeType === "vectorShape") {
70295
+ const shapeElement = this.createShapeElement(shape, groupTransform);
70296
+ if (shapeElement) {
70297
+ svg.appendChild(shapeElement);
70298
+ }
70299
+ }
70300
+ });
70301
+ }
70302
+ container.appendChild(svg);
70303
+ return { element: container };
70304
+ }
70305
+ createShapeElement(shape) {
70306
+ const attrs = shape.attrs;
70307
+ if (!attrs) return null;
70308
+ const x2 = attrs.x || 0;
70309
+ const y2 = attrs.y || 0;
70310
+ const width = attrs.width || 100;
70311
+ const height = attrs.height || 100;
70312
+ const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
70313
+ const transforms = [];
70314
+ transforms.push(`translate(${x2}, ${y2})`);
70315
+ if (attrs.rotation !== 0) {
70316
+ transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
70317
+ }
70318
+ if (attrs.flipH) {
70319
+ transforms.push(`scale(-1, 1) translate(${-width}, 0)`);
70320
+ }
70321
+ if (attrs.flipV) {
70322
+ transforms.push(`scale(1, -1) translate(0, ${-height})`);
70323
+ }
70324
+ if (transforms.length > 0) {
70325
+ g.setAttribute("transform", transforms.join(" "));
70326
+ }
70327
+ const shapeKind = attrs.kind || "rect";
70328
+ const fillColor = attrs.fillColor || "#5b9bd5";
70329
+ const strokeColor = attrs.strokeColor || "#000000";
70330
+ const strokeWidth = attrs.strokeWidth || 1;
70331
+ try {
70332
+ const svgContent = k({
70333
+ preset: shapeKind,
70334
+ styleOverrides: {
70335
+ fill: fillColor || "none",
70336
+ stroke: strokeColor || "none",
70337
+ strokeWidth: strokeWidth || 0
70338
+ },
70339
+ width,
70340
+ height
70341
+ });
70342
+ if (svgContent) {
70343
+ const tempDiv = document.createElement("div");
70344
+ tempDiv.innerHTML = svgContent;
70345
+ const svgElement = tempDiv.querySelector("svg");
70346
+ if (svgElement) {
70347
+ Array.from(svgElement.children).forEach((child) => {
70348
+ const clonedChild = child.cloneNode(true);
70349
+ if (clonedChild.tagName === "ellipse") {
70350
+ clonedChild.setAttribute("cx", (width / 2).toString());
70351
+ clonedChild.setAttribute("cy", (height / 2).toString());
70352
+ clonedChild.setAttribute("rx", (width / 2).toString());
70353
+ clonedChild.setAttribute("ry", (height / 2).toString());
70354
+ } else if (clonedChild.tagName === "circle") {
70355
+ if (width !== height) {
70356
+ const ellipse = document.createElementNS("http://www.w3.org/2000/svg", "ellipse");
70357
+ ellipse.setAttribute("cx", (width / 2).toString());
70358
+ ellipse.setAttribute("cy", (height / 2).toString());
70359
+ ellipse.setAttribute("rx", (width / 2).toString());
70360
+ ellipse.setAttribute("ry", (height / 2).toString());
70361
+ Array.from(clonedChild.attributes).forEach((attr) => {
70362
+ if (!["cx", "cy", "r"].includes(attr.name)) {
70363
+ ellipse.setAttribute(attr.name, attr.value);
70364
+ }
70365
+ });
70366
+ g.appendChild(ellipse);
70367
+ return;
70368
+ } else {
70369
+ clonedChild.setAttribute("cx", (width / 2).toString());
70370
+ clonedChild.setAttribute("cy", (height / 2).toString());
70371
+ clonedChild.setAttribute("r", (width / 2).toString());
70372
+ }
70373
+ } else if (clonedChild.tagName === "rect") {
70374
+ clonedChild.setAttribute("width", width.toString());
70375
+ clonedChild.setAttribute("height", height.toString());
70376
+ } else if (clonedChild.tagName === "path" && svgElement.hasAttribute("viewBox")) {
70377
+ const viewBox = svgElement.getAttribute("viewBox").split(" ").map(Number);
70378
+ if (viewBox.length === 4) {
70379
+ const [, , vbWidth, vbHeight] = viewBox;
70380
+ const scaleX = width / vbWidth;
70381
+ const scaleY = height / vbHeight;
70382
+ if (scaleX !== 1 || scaleY !== 1) {
70383
+ const pathTransform = `scale(${scaleX}, ${scaleY})`;
70384
+ const existingTransform = clonedChild.getAttribute("transform");
70385
+ clonedChild.setAttribute(
70386
+ "transform",
70387
+ existingTransform ? `${existingTransform} ${pathTransform}` : pathTransform
70388
+ );
70389
+ }
70390
+ }
70391
+ } else if (clonedChild.hasAttribute("width")) {
70392
+ clonedChild.setAttribute("width", width.toString());
70393
+ }
70394
+ if (clonedChild.hasAttribute("height") && clonedChild.tagName !== "ellipse") {
70395
+ clonedChild.setAttribute("height", height.toString());
70396
+ }
70397
+ g.appendChild(clonedChild);
70398
+ });
70399
+ }
70400
+ }
70401
+ } catch (error) {
70402
+ console.warn("Failed to generate shape SVG:", error);
70403
+ const rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
70404
+ rect.setAttribute("width", width.toString());
70405
+ rect.setAttribute("height", height.toString());
70406
+ rect.setAttribute("fill", fillColor);
70407
+ rect.setAttribute("stroke", strokeColor);
70408
+ rect.setAttribute("stroke-width", strokeWidth.toString());
70409
+ g.appendChild(rect);
70410
+ }
70411
+ return g;
70412
+ }
70413
+ buildView() {
70414
+ const { element } = this.createElement();
70415
+ this.root = element;
70416
+ }
70417
+ update() {
70418
+ return false;
70419
+ }
70420
+ }
70421
+ const ShapeGroup = Node$1.create({
70422
+ name: "shapeGroup",
70423
+ group: "inline",
70424
+ inline: true,
70425
+ atom: true,
70426
+ addOptions() {
70427
+ return {
70428
+ htmlAttributes: {
70429
+ contenteditable: false
70430
+ }
70431
+ };
70432
+ },
70433
+ addAttributes() {
70434
+ return {
70435
+ groupTransform: {
70436
+ default: {},
70437
+ renderDOM: () => ({})
70438
+ },
70439
+ shapes: {
70440
+ default: [],
70441
+ renderDOM: () => ({})
70442
+ },
70443
+ size: {
70444
+ default: null,
70445
+ renderDOM: (attrs) => {
70446
+ if (!attrs.size) return {};
70447
+ const sizeData = {};
70448
+ if (attrs.size.width) sizeData["data-width"] = attrs.size.width;
70449
+ if (attrs.size.height) sizeData["data-height"] = attrs.size.height;
70450
+ return sizeData;
70451
+ }
70452
+ },
70453
+ padding: {
70454
+ default: null,
70455
+ renderDOM: (attrs) => {
70456
+ if (!attrs.padding) return {};
70457
+ const paddingData = {};
70458
+ if (attrs.padding.top != null) paddingData["data-padding-top"] = attrs.padding.top;
70459
+ if (attrs.padding.right != null) paddingData["data-padding-right"] = attrs.padding.right;
70460
+ if (attrs.padding.bottom != null) paddingData["data-padding-bottom"] = attrs.padding.bottom;
70461
+ if (attrs.padding.left != null) paddingData["data-padding-left"] = attrs.padding.left;
70462
+ return paddingData;
70463
+ }
70464
+ },
70465
+ marginOffset: {
70466
+ default: null,
70467
+ renderDOM: (attrs) => {
70468
+ if (!attrs.marginOffset) return {};
70469
+ const offsetData = {};
70470
+ if (attrs.marginOffset.horizontal != null) offsetData["data-offset-x"] = attrs.marginOffset.horizontal;
70471
+ if (attrs.marginOffset.top != null) offsetData["data-offset-y"] = attrs.marginOffset.top;
70472
+ return offsetData;
70473
+ }
70474
+ },
70475
+ drawingContent: {
70476
+ rendered: false
70477
+ }
70478
+ };
70479
+ },
70480
+ parseDOM() {
70481
+ return false;
70482
+ },
70483
+ renderDOM({ htmlAttributes }) {
70484
+ return ["div", Attribute2.mergeAttributes(this.options.htmlAttributes, htmlAttributes, { "data-shape-group": "" })];
70485
+ },
70486
+ addNodeView() {
70487
+ return (props) => {
70488
+ return new ShapeGroupView({ ...props });
70489
+ };
70490
+ }
70491
+ });
70081
70492
  const TextStyle = Mark2.create({
70082
70493
  name: "textStyle",
70083
70494
  addOptions() {
@@ -71627,7 +72038,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
71627
72038
  }
71628
72039
  var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
71629
72040
  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
71630
- var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
72041
+ var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
71631
72042
  var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
71632
72043
  var width = clientRect2.width / scaleX;
71633
72044
  var height = clientRect2.height / scaleY;
@@ -71635,10 +72046,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
71635
72046
  width,
71636
72047
  height,
71637
72048
  top: y2,
71638
- right: x + width,
72049
+ right: x2 + width,
71639
72050
  bottom: y2 + height,
71640
- left: x,
71641
- x,
72051
+ left: x2,
72052
+ x: x2,
71642
72053
  y: y2
71643
72054
  };
71644
72055
  }
@@ -71839,25 +72250,25 @@ var unsetSides = {
71839
72250
  left: "auto"
71840
72251
  };
71841
72252
  function roundOffsetsByDPR(_ref, win) {
71842
- var x = _ref.x, y2 = _ref.y;
72253
+ var x2 = _ref.x, y2 = _ref.y;
71843
72254
  var dpr = win.devicePixelRatio || 1;
71844
72255
  return {
71845
- x: round$1(x * dpr) / dpr || 0,
72256
+ x: round$1(x2 * dpr) / dpr || 0,
71846
72257
  y: round$1(y2 * dpr) / dpr || 0
71847
72258
  };
71848
72259
  }
71849
72260
  function mapToStyles(_ref2) {
71850
72261
  var _Object$assign2;
71851
72262
  var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
71852
- var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
72263
+ var _offsets$x = offsets.x, x2 = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
71853
72264
  var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
71854
- x,
72265
+ x: x2,
71855
72266
  y: y2
71856
72267
  }) : {
71857
- x,
72268
+ x: x2,
71858
72269
  y: y2
71859
72270
  };
71860
- x = _ref3.x;
72271
+ x2 = _ref3.x;
71861
72272
  y2 = _ref3.y;
71862
72273
  var hasX = offsets.hasOwnProperty("x");
71863
72274
  var hasY = offsets.hasOwnProperty("y");
@@ -71891,27 +72302,27 @@ function mapToStyles(_ref2) {
71891
72302
  // $FlowFixMe[prop-missing]
71892
72303
  offsetParent[widthProp]
71893
72304
  );
71894
- x -= offsetX - popperRect.width;
71895
- x *= gpuAcceleration ? 1 : -1;
72305
+ x2 -= offsetX - popperRect.width;
72306
+ x2 *= gpuAcceleration ? 1 : -1;
71896
72307
  }
71897
72308
  }
71898
72309
  var commonStyles = Object.assign({
71899
72310
  position
71900
72311
  }, adaptive && unsetSides);
71901
72312
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
71902
- x,
72313
+ x: x2,
71903
72314
  y: y2
71904
72315
  }, getWindow$1(popper2)) : {
71905
- x,
72316
+ x: x2,
71906
72317
  y: y2
71907
72318
  };
71908
- x = _ref4.x;
72319
+ x2 = _ref4.x;
71909
72320
  y2 = _ref4.y;
71910
72321
  if (gpuAcceleration) {
71911
72322
  var _Object$assign;
71912
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y2 + "px)" : "translate3d(" + x + "px, " + y2 + "px, 0)", _Object$assign));
72323
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
71913
72324
  }
71914
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
72325
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
71915
72326
  }
71916
72327
  function computeStyles(_ref5) {
71917
72328
  var state2 = _ref5.state, options = _ref5.options;
@@ -72025,21 +72436,21 @@ function getViewportRect$1(element, strategy) {
72025
72436
  var visualViewport = win.visualViewport;
72026
72437
  var width = html.clientWidth;
72027
72438
  var height = html.clientHeight;
72028
- var x = 0;
72439
+ var x2 = 0;
72029
72440
  var y2 = 0;
72030
72441
  if (visualViewport) {
72031
72442
  width = visualViewport.width;
72032
72443
  height = visualViewport.height;
72033
72444
  var layoutViewport = isLayoutViewport();
72034
72445
  if (layoutViewport || !layoutViewport && strategy === "fixed") {
72035
- x = visualViewport.offsetLeft;
72446
+ x2 = visualViewport.offsetLeft;
72036
72447
  y2 = visualViewport.offsetTop;
72037
72448
  }
72038
72449
  }
72039
72450
  return {
72040
72451
  width,
72041
72452
  height,
72042
- x: x + getWindowScrollBarX$1(element),
72453
+ x: x2 + getWindowScrollBarX$1(element),
72043
72454
  y: y2
72044
72455
  };
72045
72456
  }
@@ -72050,15 +72461,15 @@ function getDocumentRect$1(element) {
72050
72461
  var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
72051
72462
  var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
72052
72463
  var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
72053
- var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
72464
+ var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
72054
72465
  var y2 = -winScroll.scrollTop;
72055
72466
  if (getComputedStyle$2(body || html).direction === "rtl") {
72056
- x += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
72467
+ x2 += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
72057
72468
  }
72058
72469
  return {
72059
72470
  width,
72060
72471
  height,
72061
- x,
72472
+ x: x2,
72062
72473
  y: y2
72063
72474
  };
72064
72475
  }
@@ -72435,9 +72846,9 @@ function offset(_ref2) {
72435
72846
  acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
72436
72847
  return acc;
72437
72848
  }, {});
72438
- var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
72849
+ var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
72439
72850
  if (state2.modifiersData.popperOffsets != null) {
72440
- state2.modifiersData.popperOffsets.x += x;
72851
+ state2.modifiersData.popperOffsets.x += x2;
72441
72852
  state2.modifiersData.popperOffsets.y += y2;
72442
72853
  }
72443
72854
  state2.modifiersData[name] = data;
@@ -74388,7 +74799,7 @@ function getPaddingObject(padding) {
74388
74799
  }
74389
74800
  function rectToClientRect(rect) {
74390
74801
  const {
74391
- x,
74802
+ x: x2,
74392
74803
  y: y2,
74393
74804
  width,
74394
74805
  height
@@ -74397,10 +74808,10 @@ function rectToClientRect(rect) {
74397
74808
  width,
74398
74809
  height,
74399
74810
  top: y2,
74400
- left: x,
74401
- right: x + width,
74811
+ left: x2,
74812
+ right: x2 + width,
74402
74813
  bottom: y2 + height,
74403
- x,
74814
+ x: x2,
74404
74815
  y: y2
74405
74816
  };
74406
74817
  }
@@ -74474,7 +74885,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74474
74885
  strategy
74475
74886
  });
74476
74887
  let {
74477
- x,
74888
+ x: x2,
74478
74889
  y: y2
74479
74890
  } = computeCoordsFromPlacement(rects, placement, rtl);
74480
74891
  let statefulPlacement = placement;
@@ -74491,7 +74902,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74491
74902
  data,
74492
74903
  reset
74493
74904
  } = await fn2({
74494
- x,
74905
+ x: x2,
74495
74906
  y: y2,
74496
74907
  initialPlacement: placement,
74497
74908
  placement: statefulPlacement,
@@ -74504,7 +74915,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74504
74915
  floating
74505
74916
  }
74506
74917
  });
74507
- x = nextX != null ? nextX : x;
74918
+ x2 = nextX != null ? nextX : x2;
74508
74919
  y2 = nextY != null ? nextY : y2;
74509
74920
  middlewareData = {
74510
74921
  ...middlewareData,
@@ -74527,7 +74938,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74527
74938
  }) : reset.rects;
74528
74939
  }
74529
74940
  ({
74530
- x,
74941
+ x: x2,
74531
74942
  y: y2
74532
74943
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
74533
74944
  }
@@ -74535,7 +74946,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
74535
74946
  }
74536
74947
  }
74537
74948
  return {
74538
- x,
74949
+ x: x2,
74539
74950
  y: y2,
74540
74951
  placement: statefulPlacement,
74541
74952
  strategy,
@@ -74548,7 +74959,7 @@ async function detectOverflow(state2, options) {
74548
74959
  options = {};
74549
74960
  }
74550
74961
  const {
74551
- x,
74962
+ x: x2,
74552
74963
  y: y2,
74553
74964
  platform: platform2,
74554
74965
  rects,
@@ -74572,7 +74983,7 @@ async function detectOverflow(state2, options) {
74572
74983
  strategy
74573
74984
  }));
74574
74985
  const rect = elementContext === "floating" ? {
74575
- x,
74986
+ x: x2,
74576
74987
  y: y2,
74577
74988
  width: rects.floating.width,
74578
74989
  height: rects.floating.height
@@ -74841,16 +75252,16 @@ function getScale(element) {
74841
75252
  height,
74842
75253
  $: $2
74843
75254
  } = getCssDimensions(domElement);
74844
- let x = ($2 ? round(rect.width) : rect.width) / width;
75255
+ let x2 = ($2 ? round(rect.width) : rect.width) / width;
74845
75256
  let y2 = ($2 ? round(rect.height) : rect.height) / height;
74846
- if (!x || !Number.isFinite(x)) {
74847
- x = 1;
75257
+ if (!x2 || !Number.isFinite(x2)) {
75258
+ x2 = 1;
74848
75259
  }
74849
75260
  if (!y2 || !Number.isFinite(y2)) {
74850
75261
  y2 = 1;
74851
75262
  }
74852
75263
  return {
74853
- x,
75264
+ x: x2,
74854
75265
  y: y2
74855
75266
  };
74856
75267
  }
@@ -74894,7 +75305,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
74894
75305
  }
74895
75306
  }
74896
75307
  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
74897
- let x = (clientRect2.left + visualOffsets.x) / scale.x;
75308
+ let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
74898
75309
  let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
74899
75310
  let width = clientRect2.width / scale.x;
74900
75311
  let height = clientRect2.height / scale.y;
@@ -74909,11 +75320,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
74909
75320
  const css = getComputedStyle$1(currentIFrame);
74910
75321
  const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
74911
75322
  const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
74912
- x *= iframeScale.x;
75323
+ x2 *= iframeScale.x;
74913
75324
  y2 *= iframeScale.y;
74914
75325
  width *= iframeScale.x;
74915
75326
  height *= iframeScale.y;
74916
- x += left2;
75327
+ x2 += left2;
74917
75328
  y2 += top2;
74918
75329
  currentWin = getWindow(currentIFrame);
74919
75330
  currentIFrame = getFrameElement(currentWin);
@@ -74922,7 +75333,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
74922
75333
  return rectToClientRect({
74923
75334
  width,
74924
75335
  height,
74925
- x,
75336
+ x: x2,
74926
75337
  y: y2
74927
75338
  });
74928
75339
  }
@@ -74935,10 +75346,10 @@ function getWindowScrollBarX(element, rect) {
74935
75346
  }
74936
75347
  function getHTMLOffset(documentElement, scroll) {
74937
75348
  const htmlRect = documentElement.getBoundingClientRect();
74938
- const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
75349
+ const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
74939
75350
  const y2 = htmlRect.top + scroll.scrollTop;
74940
75351
  return {
74941
- x,
75352
+ x: x2,
74942
75353
  y: y2
74943
75354
  };
74944
75355
  }
@@ -74990,15 +75401,15 @@ function getDocumentRect(element) {
74990
75401
  const body = element.ownerDocument.body;
74991
75402
  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
74992
75403
  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
74993
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
75404
+ let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
74994
75405
  const y2 = -scroll.scrollTop;
74995
75406
  if (getComputedStyle$1(body).direction === "rtl") {
74996
- x += max(html.clientWidth, body.clientWidth) - width;
75407
+ x2 += max(html.clientWidth, body.clientWidth) - width;
74997
75408
  }
74998
75409
  return {
74999
75410
  width,
75000
75411
  height,
75001
- x,
75412
+ x: x2,
75002
75413
  y: y2
75003
75414
  };
75004
75415
  }
@@ -75009,14 +75420,14 @@ function getViewportRect(element, strategy) {
75009
75420
  const visualViewport = win.visualViewport;
75010
75421
  let width = html.clientWidth;
75011
75422
  let height = html.clientHeight;
75012
- let x = 0;
75423
+ let x2 = 0;
75013
75424
  let y2 = 0;
75014
75425
  if (visualViewport) {
75015
75426
  width = visualViewport.width;
75016
75427
  height = visualViewport.height;
75017
75428
  const visualViewportBased = isWebKit();
75018
75429
  if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
75019
- x = visualViewport.offsetLeft;
75430
+ x2 = visualViewport.offsetLeft;
75020
75431
  y2 = visualViewport.offsetTop;
75021
75432
  }
75022
75433
  }
@@ -75036,7 +75447,7 @@ function getViewportRect(element, strategy) {
75036
75447
  return {
75037
75448
  width,
75038
75449
  height,
75039
- x,
75450
+ x: x2,
75040
75451
  y: y2
75041
75452
  };
75042
75453
  }
@@ -75048,12 +75459,12 @@ function getInnerBoundingClientRect(element, strategy) {
75048
75459
  const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
75049
75460
  const width = element.clientWidth * scale.x;
75050
75461
  const height = element.clientHeight * scale.y;
75051
- const x = left2 * scale.x;
75462
+ const x2 = left2 * scale.x;
75052
75463
  const y2 = top2 * scale.y;
75053
75464
  return {
75054
75465
  width,
75055
75466
  height,
75056
- x,
75467
+ x: x2,
75057
75468
  y: y2
75058
75469
  };
75059
75470
  }
@@ -75173,10 +75584,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
75173
75584
  setLeftRTLScrollbarOffset();
75174
75585
  }
75175
75586
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
75176
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
75587
+ const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
75177
75588
  const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
75178
75589
  return {
75179
- x,
75590
+ x: x2,
75180
75591
  y: y2,
75181
75592
  width: rect.width,
75182
75593
  height: rect.height
@@ -75427,6 +75838,10 @@ const Pagination = Extension.create({
75427
75838
  };
75428
75839
  },
75429
75840
  addCommands() {
75841
+ const editor = this.editor;
75842
+ if (isHeadless(editor)) {
75843
+ return {};
75844
+ }
75430
75845
  return {
75431
75846
  insertPageBreak: () => ({ commands: commands2 }) => {
75432
75847
  return commands2.insertContent({
@@ -75437,20 +75852,26 @@ const Pagination = Extension.create({
75437
75852
  * Toggle pagination on/off
75438
75853
  * @returns {void}
75439
75854
  */
75440
- togglePagination: () => ({ tr, state: state2, dispatch, editor }) => {
75855
+ togglePagination: () => ({ tr, state: state2, dispatch, editor: editor2 }) => {
75441
75856
  const isEnabled = PaginationPluginKey.getState(state2)?.isEnabled;
75442
75857
  tr.setMeta(PaginationPluginKey, { isEnabled: !isEnabled });
75443
75858
  if (dispatch) {
75444
75859
  dispatch(tr);
75445
- editor.initDefaultStyles(editor.element, !isEnabled);
75860
+ editor2.initDefaultStyles(editor2.element, !isEnabled);
75446
75861
  return true;
75447
75862
  }
75448
75863
  }
75449
75864
  };
75450
75865
  },
75451
75866
  addShortcuts() {
75867
+ const editor = this.editor;
75868
+ if (isHeadless(editor)) {
75869
+ return {};
75870
+ }
75452
75871
  return {
75453
- "Mod-Enter": () => this.editor.commands.insertPageBreak()
75872
+ "Mod-Enter": () => {
75873
+ return editor.commands.insertPageBreak();
75874
+ }
75454
75875
  };
75455
75876
  },
75456
75877
  /**
@@ -75458,6 +75879,9 @@ const Pagination = Extension.create({
75458
75879
  */
75459
75880
  addPmPlugins() {
75460
75881
  const editor = this.editor;
75882
+ if (isHeadless(editor)) {
75883
+ return [];
75884
+ }
75461
75885
  let isUpdating = false;
75462
75886
  let shouldUpdate = false;
75463
75887
  let hasInitialized = false;
@@ -75473,7 +75897,7 @@ const Pagination = Extension.create({
75473
75897
  isReadyToInit: false,
75474
75898
  decorations: DecorationSet.empty,
75475
75899
  isDebugging,
75476
- isEnabled: editor.options.pagination
75900
+ isEnabled: editor.options.pagination && !isHeadless(editor)
75477
75901
  };
75478
75902
  },
75479
75903
  apply(tr, oldState, prevEditorState, newEditorState) {
@@ -75551,6 +75975,7 @@ const Pagination = Extension.create({
75551
75975
  let previousDecorations = DecorationSet.empty;
75552
75976
  return {
75553
75977
  update: (view) => {
75978
+ if (isHeadless(editor)) return;
75554
75979
  if (!PaginationPluginKey.getState(view.state)?.isEnabled) return;
75555
75980
  if (!shouldUpdate || isUpdating) return;
75556
75981
  const performPaginationUpdate = () => {
@@ -75574,6 +75999,7 @@ const Pagination = Extension.create({
75574
75999
  },
75575
76000
  props: {
75576
76001
  decorations(state2) {
76002
+ if (isHeadless(editor)) return DecorationSet.empty;
75577
76003
  const pluginState = PaginationPluginKey.getState(state2);
75578
76004
  return pluginState.isEnabled ? pluginState.decorations : DecorationSet.empty;
75579
76005
  }
@@ -75942,7 +76368,7 @@ const getHeaderFooterEditorKey = ({ pageNumber, isHeader, isFooter, isFirstHeade
75942
76368
  return void 0;
75943
76369
  };
75944
76370
  const onHeaderFooterDblClick = (editor, currentFocusedSectionEditor) => {
75945
- if (editor.options.documentMode !== "editing") return;
76371
+ if (isHeadless(editor) || editor.options.documentMode !== "editing") return;
75946
76372
  editor.setEditable(false, false);
75947
76373
  toggleHeaderFooterEditMode({
75948
76374
  editor,
@@ -76014,6 +76440,7 @@ function getActualBreakCoords(view, pos, calculatedThreshold) {
76014
76440
  return actualBreak;
76015
76441
  }
76016
76442
  const onImageLoad = (editor) => {
76443
+ if (isHeadless(editor)) return;
76017
76444
  if (typeof requestAnimationFrame !== "function") return;
76018
76445
  requestAnimationFrame(() => {
76019
76446
  const newTr = editor.view.state.tr;
@@ -76039,22 +76466,22 @@ function createFloatingSeparator(separator, editor) {
76039
76466
  const rect = elements.reference.getBoundingClientRect();
76040
76467
  const containerRect = editorElement.getBoundingClientRect();
76041
76468
  const scaleFactor = getScaleFactor(editorElement);
76042
- const x = Math.round((rect.left - containerRect.left) / scaleFactor);
76469
+ const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
76043
76470
  const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
76044
76471
  const width = Math.round(rect.width / scaleFactor);
76045
76472
  const height = Math.round(rect.height / scaleFactor);
76046
76473
  return {
76047
- x,
76474
+ x: x2,
76048
76475
  y: y2,
76049
76476
  data: { width, height }
76050
76477
  };
76051
76478
  }
76052
76479
  }
76053
76480
  ]
76054
- }).then(({ x, y: y2, middlewareData }) => {
76481
+ }).then(({ x: x2, y: y2, middlewareData }) => {
76055
76482
  Object.assign(floatingSeparator.style, {
76056
76483
  top: `${y2}px`,
76057
- left: `${x}px`,
76484
+ left: `${x2}px`,
76058
76485
  width: `${middlewareData.copy.width}px`,
76059
76486
  height: `${middlewareData.copy.height}px`,
76060
76487
  visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
@@ -76318,6 +76745,7 @@ function validRegExp(source) {
76318
76745
  }
76319
76746
  }
76320
76747
  const TextContentCache = /* @__PURE__ */ new WeakMap();
76748
+ const transparentInlineNodes = /* @__PURE__ */ new Set(["run", "bookmarkStart"]);
76321
76749
  function textContent(node) {
76322
76750
  let cached = TextContentCache.get(node);
76323
76751
  if (cached) return cached;
@@ -76326,7 +76754,7 @@ function textContent(node) {
76326
76754
  let child = node.child(i);
76327
76755
  if (child.isText) content += child.text;
76328
76756
  else if (child.isLeaf) content += "";
76329
- else if (child.type && child.type.name === "run") content += textContent(child);
76757
+ else if (child.type && transparentInlineNodes.has(child.type.name)) content += textContent(child);
76330
76758
  else content += " " + textContent(child) + " ";
76331
76759
  }
76332
76760
  TextContentCache.set(node, content);
@@ -76334,26 +76762,49 @@ function textContent(node) {
76334
76762
  }
76335
76763
  function mapIndexToDocPos(node, start2, index2) {
76336
76764
  if (index2 <= 0) return start2;
76337
- const fullText = textContent(node);
76338
- if (index2 >= fullText.length) return start2 + node.content.size;
76339
- let target = start2;
76340
- let remaining = index2;
76341
- let found2 = false;
76342
- node.descendants((child, pos) => {
76343
- if (found2) return false;
76344
- if (!child.isText) return true;
76345
- const len = child.text.length;
76346
- if (remaining <= len) {
76347
- target = start2 + pos + remaining;
76348
- found2 = true;
76349
- return false;
76765
+ const fullTextLength = textContent(node).length;
76766
+ if (index2 >= fullTextLength) return start2 + node.content.size;
76767
+ return mapIndexWithinNode(node, start2, index2);
76768
+ }
76769
+ function mapIndexWithinNode(node, start2, index2) {
76770
+ if (index2 <= 0) return start2;
76771
+ let offset2 = start2;
76772
+ for (let i = 0; i < node.childCount; i++) {
76773
+ const child = node.child(i);
76774
+ const childStart = offset2;
76775
+ if (child.isText) {
76776
+ const len = child.text.length;
76777
+ if (index2 <= len) return childStart + index2;
76778
+ index2 -= len;
76779
+ offset2 += child.nodeSize;
76780
+ continue;
76350
76781
  }
76351
- remaining -= len;
76352
- return true;
76353
- });
76354
- return found2 ? target : start2 + node.content.size;
76782
+ if (child.isLeaf) {
76783
+ if (index2 <= 1) return childStart + Math.min(index2, 1);
76784
+ index2 -= 1;
76785
+ offset2 += child.nodeSize;
76786
+ continue;
76787
+ }
76788
+ const isTransparentInline = child.inlineContent && child.type && transparentInlineNodes.has(child.type.name);
76789
+ const innerTextLength = textContent(child).length;
76790
+ if (isTransparentInline) {
76791
+ if (index2 <= innerTextLength) return mapIndexWithinNode(child, childStart + 1, index2);
76792
+ index2 -= innerTextLength;
76793
+ offset2 += child.nodeSize;
76794
+ continue;
76795
+ }
76796
+ const contribution = innerTextLength + 2;
76797
+ const relativeIndex = index2 - 1;
76798
+ if (relativeIndex < 0) return childStart;
76799
+ if (relativeIndex <= innerTextLength) {
76800
+ return mapIndexWithinNode(child, childStart + 1, relativeIndex);
76801
+ }
76802
+ if (relativeIndex === innerTextLength + 1) return childStart + child.nodeSize;
76803
+ index2 -= contribution;
76804
+ offset2 += child.nodeSize;
76805
+ }
76806
+ return start2 + node.content.size;
76355
76807
  }
76356
- const transparentInlineNodes = /* @__PURE__ */ new Set(["run"]);
76357
76808
  function scanTextblocks(node, from2, to, f2, nodeStart = 0) {
76358
76809
  const isTransparentInline = node.inlineContent && node.type && transparentInlineNodes.has(node.type.name);
76359
76810
  if (node.inlineContent && !isTransparentInline) {
@@ -76829,9 +77280,9 @@ const NodeResizer = Extension.create({
76829
77280
  return {};
76830
77281
  },
76831
77282
  addPmPlugins() {
76832
- const isHeadless = this.editor.options.isHeadless;
77283
+ const isHeadless2 = this.editor.options.isHeadless;
76833
77284
  const hasDocument = typeof document !== "undefined";
76834
- if (isHeadless || !hasDocument) return [];
77285
+ if (isHeadless2 || !hasDocument) return [];
76835
77286
  return [nodeResizer(["image"], this.editor)];
76836
77287
  }
76837
77288
  });
@@ -76951,7 +77402,8 @@ const getStarterExtensions = () => {
76951
77402
  NodeResizer,
76952
77403
  CustomSelection,
76953
77404
  TextTransform,
76954
- VectorShape
77405
+ VectorShape,
77406
+ ShapeGroup
76955
77407
  ];
76956
77408
  };
76957
77409
  const sanitizeNumber = (value, defaultNumber) => {
@@ -78148,11 +78600,11 @@ function hsv2rgb(h2, s2, v2) {
78148
78600
  let f2 = (n, k2 = (n + h2 / 60) % 6) => v2 - v2 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
78149
78601
  return [f2(5) * 255, f2(3) * 255, f2(1) * 255];
78150
78602
  }
78151
- function hsl2rgb(h2, s2, l3) {
78603
+ function hsl2rgb(h2, s2, l) {
78152
78604
  s2 /= 100;
78153
- l3 /= 100;
78154
- let a = s2 * Math.min(l3, 1 - l3);
78155
- let f2 = (n, k2 = (n + h2 / 30) % 12) => l3 - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
78605
+ l /= 100;
78606
+ let a = s2 * Math.min(l, 1 - l);
78607
+ let f2 = (n, k2 = (n + h2 / 30) % 12) => l - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
78156
78608
  return [f2(0) * 255, f2(8) * 255, f2(4) * 255];
78157
78609
  }
78158
78610
  const prefix = "^\\s*";
@@ -78248,8 +78700,8 @@ function rgba(color) {
78248
78700
  } else if (color in colors) {
78249
78701
  return rgba(colors[color]);
78250
78702
  } else if (hslRegex.test(color) || hslaRegex.test(color)) {
78251
- const [h2, s2, l3, a] = hsla(color);
78252
- return [...hsl2rgb(h2, s2, l3), a];
78703
+ const [h2, s2, l, a] = hsla(color);
78704
+ return [...hsl2rgb(h2, s2, l), a];
78253
78705
  } else if (hsvRegex.test(color) || hsvaRegex.test(color)) {
78254
78706
  const [h2, s2, v2, a] = hsva(color);
78255
78707
  return [...hsv2rgb(h2, s2, v2), a];
@@ -79048,14 +79500,14 @@ function ensureViewBoundingRect() {
79048
79500
  }
79049
79501
  return viewMeasurer.getBoundingClientRect();
79050
79502
  }
79051
- function getPointRect(x, y2) {
79503
+ function getPointRect(x2, y2) {
79052
79504
  const viewRect = ensureViewBoundingRect();
79053
79505
  return {
79054
79506
  top: y2,
79055
- left: x,
79507
+ left: x2,
79056
79508
  height: 0,
79057
79509
  width: 0,
79058
- right: viewRect.width - x,
79510
+ right: viewRect.width - x2,
79059
79511
  bottom: viewRect.height - y2
79060
79512
  };
79061
79513
  }
@@ -79893,8 +80345,8 @@ const VFollower = defineComponent({
79893
80345
  if (follower === null)
79894
80346
  return;
79895
80347
  const target = VBinder.targetRef;
79896
- const { x, y: y2, overlap } = props;
79897
- const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
80348
+ const { x: x2, y: y2, overlap } = props;
80349
+ const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
79898
80350
  follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
79899
80351
  follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
79900
80352
  const { width, minWidth, placement, internalShift, flip: flip2 } = props;
@@ -80064,8 +80516,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
80064
80516
  return ResizeObserverSize2;
80065
80517
  })();
80066
80518
  var DOMRectReadOnly = (function() {
80067
- function DOMRectReadOnly2(x, y2, width, height) {
80068
- this.x = x;
80519
+ function DOMRectReadOnly2(x2, y2, width, height) {
80520
+ this.x = x2;
80069
80521
  this.y = y2;
80070
80522
  this.width = width;
80071
80523
  this.height = height;
@@ -80076,8 +80528,8 @@ var DOMRectReadOnly = (function() {
80076
80528
  return freeze(this);
80077
80529
  }
80078
80530
  DOMRectReadOnly2.prototype.toJSON = function() {
80079
- var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
80080
- return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
80531
+ var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
80532
+ return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
80081
80533
  };
80082
80534
  DOMRectReadOnly2.fromRect = function(rectangle) {
80083
80535
  return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
@@ -83911,10 +84363,10 @@ function getFirstAvailableNode(nodes) {
83911
84363
  }
83912
84364
  function rawGetNext(node, loop) {
83913
84365
  const sibs = node.siblings;
83914
- const l3 = sibs.length;
84366
+ const l = sibs.length;
83915
84367
  const { index: index2 } = node;
83916
84368
  if (loop) {
83917
- return sibs[(index2 + 1) % l3];
84369
+ return sibs[(index2 + 1) % l];
83918
84370
  } else {
83919
84371
  if (index2 === sibs.length - 1)
83920
84372
  return null;
@@ -83970,10 +84422,10 @@ function move(fromNode, dir, { loop = false, includeDisabled = false } = {}) {
83970
84422
  }
83971
84423
  function rawGetPrev(node, loop) {
83972
84424
  const sibs = node.siblings;
83973
- const l3 = sibs.length;
84425
+ const l = sibs.length;
83974
84426
  const { index: index2 } = node;
83975
84427
  if (loop) {
83976
- return sibs[(index2 - 1 + l3) % l3];
84428
+ return sibs[(index2 - 1 + l) % l];
83977
84429
  } else {
83978
84430
  if (index2 === 0)
83979
84431
  return null;
@@ -87697,7 +88149,7 @@ function requireEventemitter3() {
87697
88149
  var evt = prefix2 ? prefix2 + event : event, handlers2 = this._events[evt];
87698
88150
  if (!handlers2) return [];
87699
88151
  if (handlers2.fn) return [handlers2.fn];
87700
- for (var i2 = 0, l3 = handlers2.length, ee = new Array(l3); i2 < l3; i2++) {
88152
+ for (var i2 = 0, l = handlers2.length, ee = new Array(l); i2 < l; i2++) {
87701
88153
  ee[i2] = handlers2[i2].fn;
87702
88154
  }
87703
88155
  return ee;
@@ -88123,7 +88575,7 @@ const _hoisted_1$b = {
88123
88575
  key: 0,
88124
88576
  class: "linked-style-buttons"
88125
88577
  };
88126
- const _hoisted_2$8 = ["onClick", "onKeydown"];
88578
+ const _hoisted_2$8 = ["onClick", "onKeydown", "aria-label"];
88127
88579
  const _sfc_main$c = {
88128
88580
  __name: "LinkedStyle",
88129
88581
  props: {
@@ -88168,7 +88620,7 @@ const _sfc_main$c = {
88168
88620
  moveToPreviousStyle(index2);
88169
88621
  break;
88170
88622
  case "Enter":
88171
- console.log("style", style2);
88623
+ event.preventDefault();
88172
88624
  select(style2);
88173
88625
  break;
88174
88626
  }
@@ -88184,6 +88636,7 @@ const _sfc_main$c = {
88184
88636
  class: normalizeClass(["style-item", { selected: __props.selectedOption === style2.id }]),
88185
88637
  onClick: ($event) => select(style2),
88186
88638
  onKeydown: (event) => handleKeyDown2(event, index2, style2),
88639
+ "aria-label": `Linked style - ${style2.id}`,
88187
88640
  ref_for: true,
88188
88641
  ref_key: "styleRefs",
88189
88642
  ref: styleRefs
@@ -88199,7 +88652,7 @@ const _sfc_main$c = {
88199
88652
  };
88200
88653
  }
88201
88654
  };
88202
- const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-698bdb8e"]]);
88655
+ const LinkedStyle = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b53508a8"]]);
88203
88656
  const _hoisted_1$a = {
88204
88657
  key: 0,
88205
88658
  class: "link-title"
@@ -89919,11 +90372,15 @@ const makeDefaultItems = ({
89919
90372
  }
89920
90373
  }
89921
90374
  ],
89922
- onActivate: () => {
90375
+ onActivate: ({ linkedStyleMark }) => {
90376
+ const styles = getQuickFormatList(superToolbar.activeEditor);
90377
+ const selectedStyle = styles?.find((style2) => style2.id === linkedStyleMark?.attrs?.styleId);
90378
+ linkedStyles.label.value = selectedStyle && selectedStyle.id !== "Normal" ? selectedStyle.definition.attrs.name : toolbarTexts2.formatText;
89923
90379
  linkedStyles.disabled.value = false;
89924
90380
  },
89925
90381
  onDeactivate: () => {
89926
90382
  linkedStyles.disabled.value = true;
90383
+ linkedStyles.label.value = toolbarTexts2.formatText;
89927
90384
  }
89928
90385
  });
89929
90386
  const renderIcon = (value, selectedValue) => {
@@ -90628,10 +91085,11 @@ class SuperToolbar extends EventEmitter2 {
90628
91085
  item.setDisabled(!canRejectTrackedChanges);
90629
91086
  }
90630
91087
  if (item.name.value === "linkedStyles") {
91088
+ const linkedStyleMark = marks.find((mark) => mark.name === "styleId");
90631
91089
  if (this.activeEditor && !getQuickFormatList(this.activeEditor).length) {
90632
91090
  return item.deactivate();
90633
91091
  } else {
90634
- return item.activate();
91092
+ return item.activate({ linkedStyleMark });
90635
91093
  }
90636
91094
  }
90637
91095
  const rawActiveMark = marks.find((mark) => mark.name === item.name.value);
@@ -91997,7 +92455,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
91997
92455
  }
91998
92456
  });
91999
92457
  function adjustPaginationBreaks(editorElem, editor) {
92000
- if (!editorElem.value || !editor?.value?.options?.scale) return;
92458
+ if (!editorElem.value || !editor?.value?.options?.scale || isHeadless(editor)) return;
92001
92459
  const zoom = editor.value.options.scale;
92002
92460
  const bounds = editorElem.value.getBoundingClientRect();
92003
92461
  const breakNodes = editorElem.value.querySelectorAll(".pagination-break-wrapper");
@@ -92431,6 +92889,7 @@ const _sfc_main$1 = {
92431
92889
  ...props.options
92432
92890
  });
92433
92891
  editor.value.on("paginationUpdate", () => {
92892
+ if (isHeadless(editor.value)) return;
92434
92893
  adjustPaginationBreaks(editorElem, editor);
92435
92894
  });
92436
92895
  editor.value.on("collaborationReady", () => {
@@ -92589,7 +93048,7 @@ const _sfc_main$1 = {
92589
93048
  };
92590
93049
  }
92591
93050
  };
92592
- const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-9d25f5b3"]]);
93051
+ const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cd3558fe"]]);
92593
93052
  const _hoisted_1 = ["innerHTML"];
92594
93053
  const _sfc_main = {
92595
93054
  __name: "SuperInput",