docx 9.4.0 → 9.5.0

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.
@@ -1370,9 +1370,9 @@ var __async = (__this, __arguments, generator) => {
1370
1370
  };
1371
1371
  Buffer2.prototype.inspect = function inspect() {
1372
1372
  var str = "";
1373
- var max = exports3.INSPECT_MAX_BYTES;
1374
- str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
1375
- if (this.length > max) str += " ... ";
1373
+ var max2 = exports3.INSPECT_MAX_BYTES;
1374
+ str = this.toString("hex", 0, max2).replace(/(.{2})/g, "$1 ").trim();
1375
+ if (this.length > max2) str += " ... ";
1376
1376
  return "<Buffer " + str + ">";
1377
1377
  };
1378
1378
  if (customInspectSymbol) {
@@ -1897,9 +1897,9 @@ var __async = (__this, __arguments, generator) => {
1897
1897
  if (!noAssert) checkOffset(offset, 8, this.length);
1898
1898
  return ieee7542.read(this, offset, false, 52, 8);
1899
1899
  };
1900
- function checkInt(buf, value, offset, ext, max, min) {
1900
+ function checkInt(buf, value, offset, ext, max2, min2) {
1901
1901
  if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
1902
- if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
1902
+ if (value > max2 || value < min2) throw new RangeError('"value" argument is out of bounds');
1903
1903
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
1904
1904
  }
1905
1905
  Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
@@ -2060,7 +2060,7 @@ var __async = (__this, __arguments, generator) => {
2060
2060
  this[offset + 3] = value & 255;
2061
2061
  return offset + 4;
2062
2062
  };
2063
- function checkIEEE754(buf, value, offset, ext, max, min) {
2063
+ function checkIEEE754(buf, value, offset, ext, max2, min2) {
2064
2064
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
2065
2065
  if (offset < 0) throw new RangeError("Index out of range");
2066
2066
  }
@@ -2325,7 +2325,7 @@ var __async = (__this, __arguments, generator) => {
2325
2325
  }
2326
2326
  var symVal = 42;
2327
2327
  obj[sym] = symVal;
2328
- for (sym in obj) {
2328
+ for (var _ in obj) {
2329
2329
  return false;
2330
2330
  }
2331
2331
  if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
@@ -2342,7 +2342,10 @@ var __async = (__this, __arguments, generator) => {
2342
2342
  return false;
2343
2343
  }
2344
2344
  if (typeof Object.getOwnPropertyDescriptor === "function") {
2345
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
2345
+ var descriptor = (
2346
+ /** @type {PropertyDescriptor} */
2347
+ Object.getOwnPropertyDescriptor(obj, sym)
2348
+ );
2346
2349
  if (descriptor.value !== symVal || descriptor.enumerable !== true) {
2347
2350
  return false;
2348
2351
  }
@@ -2362,6 +2365,14 @@ var __async = (__this, __arguments, generator) => {
2362
2365
  };
2363
2366
  return shams;
2364
2367
  }
2368
+ var esObjectAtoms;
2369
+ var hasRequiredEsObjectAtoms;
2370
+ function requireEsObjectAtoms() {
2371
+ if (hasRequiredEsObjectAtoms) return esObjectAtoms;
2372
+ hasRequiredEsObjectAtoms = 1;
2373
+ esObjectAtoms = Object;
2374
+ return esObjectAtoms;
2375
+ }
2365
2376
  var esErrors;
2366
2377
  var hasRequiredEsErrors;
2367
2378
  function requireEsErrors() {
@@ -2418,6 +2429,118 @@ var __async = (__this, __arguments, generator) => {
2418
2429
  uri = URIError;
2419
2430
  return uri;
2420
2431
  }
2432
+ var abs;
2433
+ var hasRequiredAbs;
2434
+ function requireAbs() {
2435
+ if (hasRequiredAbs) return abs;
2436
+ hasRequiredAbs = 1;
2437
+ abs = Math.abs;
2438
+ return abs;
2439
+ }
2440
+ var floor;
2441
+ var hasRequiredFloor;
2442
+ function requireFloor() {
2443
+ if (hasRequiredFloor) return floor;
2444
+ hasRequiredFloor = 1;
2445
+ floor = Math.floor;
2446
+ return floor;
2447
+ }
2448
+ var max;
2449
+ var hasRequiredMax;
2450
+ function requireMax() {
2451
+ if (hasRequiredMax) return max;
2452
+ hasRequiredMax = 1;
2453
+ max = Math.max;
2454
+ return max;
2455
+ }
2456
+ var min;
2457
+ var hasRequiredMin;
2458
+ function requireMin() {
2459
+ if (hasRequiredMin) return min;
2460
+ hasRequiredMin = 1;
2461
+ min = Math.min;
2462
+ return min;
2463
+ }
2464
+ var pow;
2465
+ var hasRequiredPow;
2466
+ function requirePow() {
2467
+ if (hasRequiredPow) return pow;
2468
+ hasRequiredPow = 1;
2469
+ pow = Math.pow;
2470
+ return pow;
2471
+ }
2472
+ var round;
2473
+ var hasRequiredRound;
2474
+ function requireRound() {
2475
+ if (hasRequiredRound) return round;
2476
+ hasRequiredRound = 1;
2477
+ round = Math.round;
2478
+ return round;
2479
+ }
2480
+ var _isNaN;
2481
+ var hasRequired_isNaN;
2482
+ function require_isNaN() {
2483
+ if (hasRequired_isNaN) return _isNaN;
2484
+ hasRequired_isNaN = 1;
2485
+ _isNaN = Number.isNaN || function isNaN2(a) {
2486
+ return a !== a;
2487
+ };
2488
+ return _isNaN;
2489
+ }
2490
+ var sign;
2491
+ var hasRequiredSign;
2492
+ function requireSign() {
2493
+ if (hasRequiredSign) return sign;
2494
+ hasRequiredSign = 1;
2495
+ var $isNaN = /* @__PURE__ */ require_isNaN();
2496
+ sign = function sign2(number) {
2497
+ if ($isNaN(number) || number === 0) {
2498
+ return number;
2499
+ }
2500
+ return number < 0 ? -1 : 1;
2501
+ };
2502
+ return sign;
2503
+ }
2504
+ var gOPD;
2505
+ var hasRequiredGOPD;
2506
+ function requireGOPD() {
2507
+ if (hasRequiredGOPD) return gOPD;
2508
+ hasRequiredGOPD = 1;
2509
+ gOPD = Object.getOwnPropertyDescriptor;
2510
+ return gOPD;
2511
+ }
2512
+ var gopd;
2513
+ var hasRequiredGopd;
2514
+ function requireGopd() {
2515
+ if (hasRequiredGopd) return gopd;
2516
+ hasRequiredGopd = 1;
2517
+ var $gOPD = /* @__PURE__ */ requireGOPD();
2518
+ if ($gOPD) {
2519
+ try {
2520
+ $gOPD([], "length");
2521
+ } catch (e) {
2522
+ $gOPD = null;
2523
+ }
2524
+ }
2525
+ gopd = $gOPD;
2526
+ return gopd;
2527
+ }
2528
+ var esDefineProperty;
2529
+ var hasRequiredEsDefineProperty;
2530
+ function requireEsDefineProperty() {
2531
+ if (hasRequiredEsDefineProperty) return esDefineProperty;
2532
+ hasRequiredEsDefineProperty = 1;
2533
+ var $defineProperty = Object.defineProperty || false;
2534
+ if ($defineProperty) {
2535
+ try {
2536
+ $defineProperty({}, "a", { value: 1 });
2537
+ } catch (e) {
2538
+ $defineProperty = false;
2539
+ }
2540
+ }
2541
+ esDefineProperty = $defineProperty;
2542
+ return esDefineProperty;
2543
+ }
2421
2544
  var hasSymbols;
2422
2545
  var hasRequiredHasSymbols;
2423
2546
  function requireHasSymbols() {
@@ -2442,20 +2565,22 @@ var __async = (__this, __arguments, generator) => {
2442
2565
  };
2443
2566
  return hasSymbols;
2444
2567
  }
2445
- var hasProto;
2446
- var hasRequiredHasProto;
2447
- function requireHasProto() {
2448
- if (hasRequiredHasProto) return hasProto;
2449
- hasRequiredHasProto = 1;
2450
- var test = {
2451
- __proto__: null,
2452
- foo: {}
2453
- };
2454
- var $Object = Object;
2455
- hasProto = function hasProto2() {
2456
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
2457
- };
2458
- return hasProto;
2568
+ var Reflect_getPrototypeOf;
2569
+ var hasRequiredReflect_getPrototypeOf;
2570
+ function requireReflect_getPrototypeOf() {
2571
+ if (hasRequiredReflect_getPrototypeOf) return Reflect_getPrototypeOf;
2572
+ hasRequiredReflect_getPrototypeOf = 1;
2573
+ Reflect_getPrototypeOf = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
2574
+ return Reflect_getPrototypeOf;
2575
+ }
2576
+ var Object_getPrototypeOf;
2577
+ var hasRequiredObject_getPrototypeOf;
2578
+ function requireObject_getPrototypeOf() {
2579
+ if (hasRequiredObject_getPrototypeOf) return Object_getPrototypeOf;
2580
+ hasRequiredObject_getPrototypeOf = 1;
2581
+ var $Object = /* @__PURE__ */ requireEsObjectAtoms();
2582
+ Object_getPrototypeOf = $Object.getPrototypeOf || null;
2583
+ return Object_getPrototypeOf;
2459
2584
  }
2460
2585
  var implementation;
2461
2586
  var hasRequiredImplementation;
@@ -2464,7 +2589,7 @@ var __async = (__this, __arguments, generator) => {
2464
2589
  hasRequiredImplementation = 1;
2465
2590
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2466
2591
  var toStr = Object.prototype.toString;
2467
- var max = Math.max;
2592
+ var max2 = Math.max;
2468
2593
  var funcType = "[object Function]";
2469
2594
  var concatty = function concatty2(a, b) {
2470
2595
  var arr = [];
@@ -2516,7 +2641,7 @@ var __async = (__this, __arguments, generator) => {
2516
2641
  concatty(args, arguments)
2517
2642
  );
2518
2643
  };
2519
- var boundLength = max(0, target.length - args.length);
2644
+ var boundLength = max2(0, target.length - args.length);
2520
2645
  var boundArgs = [];
2521
2646
  for (var i = 0; i < boundLength; i++) {
2522
2647
  boundArgs[i] = "$" + i;
@@ -2542,6 +2667,110 @@ var __async = (__this, __arguments, generator) => {
2542
2667
  functionBind = Function.prototype.bind || implementation2;
2543
2668
  return functionBind;
2544
2669
  }
2670
+ var functionCall;
2671
+ var hasRequiredFunctionCall;
2672
+ function requireFunctionCall() {
2673
+ if (hasRequiredFunctionCall) return functionCall;
2674
+ hasRequiredFunctionCall = 1;
2675
+ functionCall = Function.prototype.call;
2676
+ return functionCall;
2677
+ }
2678
+ var functionApply;
2679
+ var hasRequiredFunctionApply;
2680
+ function requireFunctionApply() {
2681
+ if (hasRequiredFunctionApply) return functionApply;
2682
+ hasRequiredFunctionApply = 1;
2683
+ functionApply = Function.prototype.apply;
2684
+ return functionApply;
2685
+ }
2686
+ var reflectApply;
2687
+ var hasRequiredReflectApply;
2688
+ function requireReflectApply() {
2689
+ if (hasRequiredReflectApply) return reflectApply;
2690
+ hasRequiredReflectApply = 1;
2691
+ reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
2692
+ return reflectApply;
2693
+ }
2694
+ var actualApply;
2695
+ var hasRequiredActualApply;
2696
+ function requireActualApply() {
2697
+ if (hasRequiredActualApply) return actualApply;
2698
+ hasRequiredActualApply = 1;
2699
+ var bind = requireFunctionBind();
2700
+ var $apply = requireFunctionApply();
2701
+ var $call = requireFunctionCall();
2702
+ var $reflectApply = requireReflectApply();
2703
+ actualApply = $reflectApply || bind.call($call, $apply);
2704
+ return actualApply;
2705
+ }
2706
+ var callBindApplyHelpers;
2707
+ var hasRequiredCallBindApplyHelpers;
2708
+ function requireCallBindApplyHelpers() {
2709
+ if (hasRequiredCallBindApplyHelpers) return callBindApplyHelpers;
2710
+ hasRequiredCallBindApplyHelpers = 1;
2711
+ var bind = requireFunctionBind();
2712
+ var $TypeError = /* @__PURE__ */ requireType();
2713
+ var $call = requireFunctionCall();
2714
+ var $actualApply = requireActualApply();
2715
+ callBindApplyHelpers = function callBindBasic(args) {
2716
+ if (args.length < 1 || typeof args[0] !== "function") {
2717
+ throw new $TypeError("a function is required");
2718
+ }
2719
+ return $actualApply(bind, $call, args);
2720
+ };
2721
+ return callBindApplyHelpers;
2722
+ }
2723
+ var get;
2724
+ var hasRequiredGet;
2725
+ function requireGet() {
2726
+ if (hasRequiredGet) return get;
2727
+ hasRequiredGet = 1;
2728
+ var callBind2 = requireCallBindApplyHelpers();
2729
+ var gOPD2 = /* @__PURE__ */ requireGopd();
2730
+ var hasProtoAccessor;
2731
+ try {
2732
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
2733
+ [].__proto__ === Array.prototype;
2734
+ } catch (e) {
2735
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
2736
+ throw e;
2737
+ }
2738
+ }
2739
+ var desc = !!hasProtoAccessor && gOPD2 && gOPD2(
2740
+ Object.prototype,
2741
+ /** @type {keyof typeof Object.prototype} */
2742
+ "__proto__"
2743
+ );
2744
+ var $Object = Object;
2745
+ var $getPrototypeOf = $Object.getPrototypeOf;
2746
+ get = desc && typeof desc.get === "function" ? callBind2([desc.get]) : typeof $getPrototypeOf === "function" ? (
2747
+ /** @type {import('./get')} */
2748
+ function getDunder(value) {
2749
+ return $getPrototypeOf(value == null ? value : $Object(value));
2750
+ }
2751
+ ) : false;
2752
+ return get;
2753
+ }
2754
+ var getProto;
2755
+ var hasRequiredGetProto;
2756
+ function requireGetProto() {
2757
+ if (hasRequiredGetProto) return getProto;
2758
+ hasRequiredGetProto = 1;
2759
+ var reflectGetProto = requireReflect_getPrototypeOf();
2760
+ var originalGetProto = requireObject_getPrototypeOf();
2761
+ var getDunderProto = /* @__PURE__ */ requireGet();
2762
+ getProto = reflectGetProto ? function getProto2(O) {
2763
+ return reflectGetProto(O);
2764
+ } : originalGetProto ? function getProto2(O) {
2765
+ if (!O || typeof O !== "object" && typeof O !== "function") {
2766
+ throw new TypeError("getProto: not an object");
2767
+ }
2768
+ return originalGetProto(O);
2769
+ } : getDunderProto ? function getProto2(O) {
2770
+ return getDunderProto(O);
2771
+ } : null;
2772
+ return getProto;
2773
+ }
2545
2774
  var hasown;
2546
2775
  var hasRequiredHasown;
2547
2776
  function requireHasown() {
@@ -2559,6 +2788,7 @@ var __async = (__this, __arguments, generator) => {
2559
2788
  if (hasRequiredGetIntrinsic) return getIntrinsic;
2560
2789
  hasRequiredGetIntrinsic = 1;
2561
2790
  var undefined$1;
2791
+ var $Object = /* @__PURE__ */ requireEsObjectAtoms();
2562
2792
  var $Error = /* @__PURE__ */ requireEsErrors();
2563
2793
  var $EvalError = /* @__PURE__ */ require_eval();
2564
2794
  var $RangeError = /* @__PURE__ */ requireRange();
@@ -2566,6 +2796,13 @@ var __async = (__this, __arguments, generator) => {
2566
2796
  var $SyntaxError = /* @__PURE__ */ requireSyntax();
2567
2797
  var $TypeError = /* @__PURE__ */ requireType();
2568
2798
  var $URIError = /* @__PURE__ */ requireUri();
2799
+ var abs2 = /* @__PURE__ */ requireAbs();
2800
+ var floor2 = /* @__PURE__ */ requireFloor();
2801
+ var max2 = /* @__PURE__ */ requireMax();
2802
+ var min2 = /* @__PURE__ */ requireMin();
2803
+ var pow2 = /* @__PURE__ */ requirePow();
2804
+ var round2 = /* @__PURE__ */ requireRound();
2805
+ var sign2 = /* @__PURE__ */ requireSign();
2569
2806
  var $Function = Function;
2570
2807
  var getEvalledConstructor = function(expressionSyntax) {
2571
2808
  try {
@@ -2573,14 +2810,8 @@ var __async = (__this, __arguments, generator) => {
2573
2810
  } catch (e) {
2574
2811
  }
2575
2812
  };
2576
- var $gOPD = Object.getOwnPropertyDescriptor;
2577
- if ($gOPD) {
2578
- try {
2579
- $gOPD({}, "");
2580
- } catch (e) {
2581
- $gOPD = null;
2582
- }
2583
- }
2813
+ var $gOPD = /* @__PURE__ */ requireGopd();
2814
+ var $defineProperty = /* @__PURE__ */ requireEsDefineProperty();
2584
2815
  var throwTypeError = function() {
2585
2816
  throw new $TypeError();
2586
2817
  };
@@ -2597,18 +2828,19 @@ var __async = (__this, __arguments, generator) => {
2597
2828
  }
2598
2829
  }() : throwTypeError;
2599
2830
  var hasSymbols2 = requireHasSymbols()();
2600
- var hasProto2 = /* @__PURE__ */ requireHasProto()();
2601
- var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
2602
- return x.__proto__;
2603
- } : null);
2831
+ var getProto2 = requireGetProto();
2832
+ var $ObjectGPO = requireObject_getPrototypeOf();
2833
+ var $ReflectGPO = requireReflect_getPrototypeOf();
2834
+ var $apply = requireFunctionApply();
2835
+ var $call = requireFunctionCall();
2604
2836
  var needsEval = {};
2605
- var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2837
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto2 ? undefined$1 : getProto2(Uint8Array);
2606
2838
  var INTRINSICS = {
2607
2839
  __proto__: null,
2608
2840
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
2609
2841
  "%Array%": Array,
2610
2842
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
2611
- "%ArrayIteratorPrototype%": hasSymbols2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
2843
+ "%ArrayIteratorPrototype%": hasSymbols2 && getProto2 ? getProto2([][Symbol.iterator]()) : undefined$1,
2612
2844
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
2613
2845
  "%AsyncFunction%": needsEval,
2614
2846
  "%AsyncGenerator%": needsEval,
@@ -2629,6 +2861,7 @@ var __async = (__this, __arguments, generator) => {
2629
2861
  "%eval%": eval,
2630
2862
  // eslint-disable-line no-eval
2631
2863
  "%EvalError%": $EvalError,
2864
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined$1 : Float16Array,
2632
2865
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
2633
2866
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
2634
2867
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
@@ -2639,13 +2872,14 @@ var __async = (__this, __arguments, generator) => {
2639
2872
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
2640
2873
  "%isFinite%": isFinite,
2641
2874
  "%isNaN%": isNaN,
2642
- "%IteratorPrototype%": hasSymbols2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
2875
+ "%IteratorPrototype%": hasSymbols2 && getProto2 ? getProto2(getProto2([][Symbol.iterator]())) : undefined$1,
2643
2876
  "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
2644
2877
  "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
2645
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2878
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto2 ? undefined$1 : getProto2((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2646
2879
  "%Math%": Math,
2647
2880
  "%Number%": Number,
2648
- "%Object%": Object,
2881
+ "%Object%": $Object,
2882
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
2649
2883
  "%parseFloat%": parseFloat,
2650
2884
  "%parseInt%": parseInt,
2651
2885
  "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
@@ -2655,10 +2889,10 @@ var __async = (__this, __arguments, generator) => {
2655
2889
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
2656
2890
  "%RegExp%": RegExp,
2657
2891
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
2658
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2892
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto2 ? undefined$1 : getProto2((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2659
2893
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
2660
2894
  "%String%": String,
2661
- "%StringIteratorPrototype%": hasSymbols2 && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
2895
+ "%StringIteratorPrototype%": hasSymbols2 && getProto2 ? getProto2(""[Symbol.iterator]()) : undefined$1,
2662
2896
  "%Symbol%": hasSymbols2 ? Symbol : undefined$1,
2663
2897
  "%SyntaxError%": $SyntaxError,
2664
2898
  "%ThrowTypeError%": ThrowTypeError,
@@ -2671,13 +2905,25 @@ var __async = (__this, __arguments, generator) => {
2671
2905
  "%URIError%": $URIError,
2672
2906
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
2673
2907
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
2674
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
2908
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet,
2909
+ "%Function.prototype.call%": $call,
2910
+ "%Function.prototype.apply%": $apply,
2911
+ "%Object.defineProperty%": $defineProperty,
2912
+ "%Object.getPrototypeOf%": $ObjectGPO,
2913
+ "%Math.abs%": abs2,
2914
+ "%Math.floor%": floor2,
2915
+ "%Math.max%": max2,
2916
+ "%Math.min%": min2,
2917
+ "%Math.pow%": pow2,
2918
+ "%Math.round%": round2,
2919
+ "%Math.sign%": sign2,
2920
+ "%Reflect.getPrototypeOf%": $ReflectGPO
2675
2921
  };
2676
- if (getProto) {
2922
+ if (getProto2) {
2677
2923
  try {
2678
2924
  null.error;
2679
2925
  } catch (e) {
2680
- var errorProto = getProto(getProto(e));
2926
+ var errorProto = getProto2(getProto2(e));
2681
2927
  INTRINSICS["%Error.prototype%"] = errorProto;
2682
2928
  }
2683
2929
  }
@@ -2696,8 +2942,8 @@ var __async = (__this, __arguments, generator) => {
2696
2942
  }
2697
2943
  } else if (name === "%AsyncIteratorPrototype%") {
2698
2944
  var gen = doEval2("%AsyncGenerator%");
2699
- if (gen && getProto) {
2700
- value = getProto(gen.prototype);
2945
+ if (gen && getProto2) {
2946
+ value = getProto2(gen.prototype);
2701
2947
  }
2702
2948
  }
2703
2949
  INTRINSICS[name] = value;
@@ -2759,11 +3005,11 @@ var __async = (__this, __arguments, generator) => {
2759
3005
  };
2760
3006
  var bind = requireFunctionBind();
2761
3007
  var hasOwn = /* @__PURE__ */ requireHasown();
2762
- var $concat = bind.call(Function.call, Array.prototype.concat);
2763
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
2764
- var $replace = bind.call(Function.call, String.prototype.replace);
2765
- var $strSlice = bind.call(Function.call, String.prototype.slice);
2766
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
3008
+ var $concat = bind.call($call, Array.prototype.concat);
3009
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
3010
+ var $replace = bind.call($call, String.prototype.replace);
3011
+ var $strSlice = bind.call($call, String.prototype.slice);
3012
+ var $exec = bind.call($call, RegExp.prototype.exec);
2767
3013
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2768
3014
  var reEscapeChar = /\\(\\)?/g;
2769
3015
  var stringToPath = function stringToPath2(string) {
@@ -2867,40 +3113,6 @@ var __async = (__this, __arguments, generator) => {
2867
3113
  return getIntrinsic;
2868
3114
  }
2869
3115
  var callBind = { exports: {} };
2870
- var esDefineProperty;
2871
- var hasRequiredEsDefineProperty;
2872
- function requireEsDefineProperty() {
2873
- if (hasRequiredEsDefineProperty) return esDefineProperty;
2874
- hasRequiredEsDefineProperty = 1;
2875
- var GetIntrinsic = /* @__PURE__ */ requireGetIntrinsic();
2876
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
2877
- if ($defineProperty) {
2878
- try {
2879
- $defineProperty({}, "a", { value: 1 });
2880
- } catch (e) {
2881
- $defineProperty = false;
2882
- }
2883
- }
2884
- esDefineProperty = $defineProperty;
2885
- return esDefineProperty;
2886
- }
2887
- var gopd;
2888
- var hasRequiredGopd;
2889
- function requireGopd() {
2890
- if (hasRequiredGopd) return gopd;
2891
- hasRequiredGopd = 1;
2892
- var GetIntrinsic = /* @__PURE__ */ requireGetIntrinsic();
2893
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
2894
- if ($gOPD) {
2895
- try {
2896
- $gOPD([], "length");
2897
- } catch (e) {
2898
- $gOPD = null;
2899
- }
2900
- }
2901
- gopd = $gOPD;
2902
- return gopd;
2903
- }
2904
3116
  var defineDataProperty;
2905
3117
  var hasRequiredDefineDataProperty;
2906
3118
  function requireDefineDataProperty() {
@@ -2979,7 +3191,7 @@ var __async = (__this, __arguments, generator) => {
2979
3191
  var GetIntrinsic = /* @__PURE__ */ requireGetIntrinsic();
2980
3192
  var define2 = /* @__PURE__ */ requireDefineDataProperty();
2981
3193
  var hasDescriptors = /* @__PURE__ */ requireHasPropertyDescriptors()();
2982
- var gOPD = /* @__PURE__ */ requireGopd();
3194
+ var gOPD2 = /* @__PURE__ */ requireGopd();
2983
3195
  var $TypeError = /* @__PURE__ */ requireType();
2984
3196
  var $floor = GetIntrinsic("%Math.floor%");
2985
3197
  setFunctionLength = function setFunctionLength2(fn, length) {
@@ -2992,8 +3204,8 @@ var __async = (__this, __arguments, generator) => {
2992
3204
  var loose = arguments.length > 2 && !!arguments[2];
2993
3205
  var functionLengthIsConfigurable = true;
2994
3206
  var functionLengthIsWritable = true;
2995
- if ("length" in fn && gOPD) {
2996
- var desc = gOPD(fn, "length");
3207
+ if ("length" in fn && gOPD2) {
3208
+ var desc = gOPD2(fn, "length");
2997
3209
  if (desc && !desc.configurable) {
2998
3210
  functionLengthIsConfigurable = false;
2999
3211
  }
@@ -3113,7 +3325,7 @@ var __async = (__this, __arguments, generator) => {
3113
3325
  var fnToStr = Function.prototype.toString;
3114
3326
  var isFnRegex = /^\s*(?:function)?\*/;
3115
3327
  var hasToStringTag = requireShams()();
3116
- var getProto = Object.getPrototypeOf;
3328
+ var getProto2 = Object.getPrototypeOf;
3117
3329
  var getGeneratorFunc = function() {
3118
3330
  if (!hasToStringTag) {
3119
3331
  return false;
@@ -3135,14 +3347,14 @@ var __async = (__this, __arguments, generator) => {
3135
3347
  var str = toStr.call(fn);
3136
3348
  return str === "[object GeneratorFunction]";
3137
3349
  }
3138
- if (!getProto) {
3350
+ if (!getProto2) {
3139
3351
  return false;
3140
3352
  }
3141
3353
  if (typeof GeneratorFunction === "undefined") {
3142
3354
  var generatorFunc = getGeneratorFunc();
3143
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
3355
+ GeneratorFunction = generatorFunc ? getProto2(generatorFunc) : false;
3144
3356
  }
3145
- return getProto(fn) === GeneratorFunction;
3357
+ return getProto2(fn) === GeneratorFunction;
3146
3358
  };
3147
3359
  return isGeneratorFunction;
3148
3360
  }
@@ -3152,10 +3364,10 @@ var __async = (__this, __arguments, generator) => {
3152
3364
  if (hasRequiredIsCallable) return isCallable;
3153
3365
  hasRequiredIsCallable = 1;
3154
3366
  var fnToStr = Function.prototype.toString;
3155
- var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
3367
+ var reflectApply2 = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
3156
3368
  var badArrayLike;
3157
3369
  var isCallableMarker;
3158
- if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
3370
+ if (typeof reflectApply2 === "function" && typeof Object.defineProperty === "function") {
3159
3371
  try {
3160
3372
  badArrayLike = Object.defineProperty({}, "length", {
3161
3373
  get: function() {
@@ -3163,16 +3375,16 @@ var __async = (__this, __arguments, generator) => {
3163
3375
  }
3164
3376
  });
3165
3377
  isCallableMarker = {};
3166
- reflectApply(function() {
3378
+ reflectApply2(function() {
3167
3379
  throw 42;
3168
3380
  }, null, badArrayLike);
3169
3381
  } catch (_) {
3170
3382
  if (_ !== isCallableMarker) {
3171
- reflectApply = null;
3383
+ reflectApply2 = null;
3172
3384
  }
3173
3385
  }
3174
3386
  } else {
3175
- reflectApply = null;
3387
+ reflectApply2 = null;
3176
3388
  }
3177
3389
  var constructorRegex = /^\s*class\b/;
3178
3390
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -3221,7 +3433,7 @@ var __async = (__this, __arguments, generator) => {
3221
3433
  };
3222
3434
  }
3223
3435
  }
3224
- isCallable = reflectApply ? function isCallable2(value) {
3436
+ isCallable = reflectApply2 ? function isCallable2(value) {
3225
3437
  if (isDDA(value)) {
3226
3438
  return true;
3227
3439
  }
@@ -3232,7 +3444,7 @@ var __async = (__this, __arguments, generator) => {
3232
3444
  return false;
3233
3445
  }
3234
3446
  try {
3235
- reflectApply(value, null, badArrayLike);
3447
+ reflectApply2(value, null, badArrayLike);
3236
3448
  } catch (e) {
3237
3449
  if (e !== isCallableMarker) {
3238
3450
  return false;
@@ -3368,7 +3580,7 @@ var __async = (__this, __arguments, generator) => {
3368
3580
  var availableTypedArrays2 = /* @__PURE__ */ requireAvailableTypedArrays();
3369
3581
  var callBind2 = requireCallBind();
3370
3582
  var callBound2 = requireCallBound();
3371
- var gOPD = /* @__PURE__ */ requireGopd();
3583
+ var gOPD2 = /* @__PURE__ */ requireGopd();
3372
3584
  var $toString = callBound2("Object.prototype.toString");
3373
3585
  var hasToStringTag = requireShams()();
3374
3586
  var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
@@ -3384,15 +3596,15 @@ var __async = (__this, __arguments, generator) => {
3384
3596
  return -1;
3385
3597
  };
3386
3598
  var cache = { __proto__: null };
3387
- if (hasToStringTag && gOPD && getPrototypeOf) {
3599
+ if (hasToStringTag && gOPD2 && getPrototypeOf) {
3388
3600
  forEach(typedArrays, function(typedArray) {
3389
3601
  var arr = new g[typedArray]();
3390
3602
  if (Symbol.toStringTag in arr) {
3391
3603
  var proto = getPrototypeOf(arr);
3392
- var descriptor = gOPD(proto, Symbol.toStringTag);
3604
+ var descriptor = gOPD2(proto, Symbol.toStringTag);
3393
3605
  if (!descriptor) {
3394
3606
  var superProto = getPrototypeOf(proto);
3395
- descriptor = gOPD(superProto, Symbol.toStringTag);
3607
+ descriptor = gOPD2(superProto, Symbol.toStringTag);
3396
3608
  }
3397
3609
  cache["$" + typedArray] = callBind2(descriptor.get);
3398
3610
  }
@@ -3461,7 +3673,7 @@ var __async = (__this, __arguments, generator) => {
3461
3673
  }
3462
3674
  return trySlices(value);
3463
3675
  }
3464
- if (!gOPD) {
3676
+ if (!gOPD2) {
3465
3677
  return null;
3466
3678
  }
3467
3679
  return tryTypedArrays(value);
@@ -4953,7 +5165,7 @@ var __async = (__this, __arguments, generator) => {
4953
5165
  // because otherwise some prototype manipulation in
4954
5166
  // userland will fail
4955
5167
  enumerable: false,
4956
- get: function get() {
5168
+ get: function get2() {
4957
5169
  return this._writableState && this._writableState.getBuffer();
4958
5170
  }
4959
5171
  });
@@ -4968,7 +5180,7 @@ var __async = (__this, __arguments, generator) => {
4968
5180
  // because otherwise some prototype manipulation in
4969
5181
  // userland will fail
4970
5182
  enumerable: false,
4971
- get: function get() {
5183
+ get: function get2() {
4972
5184
  return this._writableState.highWaterMark;
4973
5185
  }
4974
5186
  });
@@ -5138,7 +5350,7 @@ var __async = (__this, __arguments, generator) => {
5138
5350
  // because otherwise some prototype manipulation in
5139
5351
  // userland will fail
5140
5352
  enumerable: false,
5141
- get: function get() {
5353
+ get: function get2() {
5142
5354
  return this._writableState.length;
5143
5355
  }
5144
5356
  });
@@ -5211,7 +5423,7 @@ var __async = (__this, __arguments, generator) => {
5211
5423
  // because otherwise some prototype manipulation in
5212
5424
  // userland will fail
5213
5425
  enumerable: false,
5214
- get: function get() {
5426
+ get: function get2() {
5215
5427
  if (this._writableState === void 0) {
5216
5428
  return false;
5217
5429
  }
@@ -5273,7 +5485,7 @@ var __async = (__this, __arguments, generator) => {
5273
5485
  // because otherwise some prototype manipulation in
5274
5486
  // userland will fail
5275
5487
  enumerable: false,
5276
- get: function get() {
5488
+ get: function get2() {
5277
5489
  return this._writableState.highWaterMark;
5278
5490
  }
5279
5491
  });
@@ -5282,7 +5494,7 @@ var __async = (__this, __arguments, generator) => {
5282
5494
  // because otherwise some prototype manipulation in
5283
5495
  // userland will fail
5284
5496
  enumerable: false,
5285
- get: function get() {
5497
+ get: function get2() {
5286
5498
  return this._writableState && this._writableState.getBuffer();
5287
5499
  }
5288
5500
  });
@@ -5291,7 +5503,7 @@ var __async = (__this, __arguments, generator) => {
5291
5503
  // because otherwise some prototype manipulation in
5292
5504
  // userland will fail
5293
5505
  enumerable: false,
5294
- get: function get() {
5506
+ get: function get2() {
5295
5507
  return this._writableState.length;
5296
5508
  }
5297
5509
  });
@@ -5307,7 +5519,7 @@ var __async = (__this, __arguments, generator) => {
5307
5519
  // because otherwise some prototype manipulation in
5308
5520
  // userland will fail
5309
5521
  enumerable: false,
5310
- get: function get() {
5522
+ get: function get2() {
5311
5523
  if (this._readableState === void 0 || this._writableState === void 0) {
5312
5524
  return false;
5313
5525
  }
@@ -5986,7 +6198,7 @@ var __async = (__this, __arguments, generator) => {
5986
6198
  // because otherwise some prototype manipulation in
5987
6199
  // userland will fail
5988
6200
  enumerable: false,
5989
- get: function get() {
6201
+ get: function get2() {
5990
6202
  if (this._readableState === void 0) {
5991
6203
  return false;
5992
6204
  }
@@ -6530,7 +6742,7 @@ var __async = (__this, __arguments, generator) => {
6530
6742
  // because otherwise some prototype manipulation in
6531
6743
  // userland will fail
6532
6744
  enumerable: false,
6533
- get: function get() {
6745
+ get: function get2() {
6534
6746
  return this._readableState.highWaterMark;
6535
6747
  }
6536
6748
  });
@@ -6539,7 +6751,7 @@ var __async = (__this, __arguments, generator) => {
6539
6751
  // because otherwise some prototype manipulation in
6540
6752
  // userland will fail
6541
6753
  enumerable: false,
6542
- get: function get() {
6754
+ get: function get2() {
6543
6755
  return this._readableState && this._readableState.buffer;
6544
6756
  }
6545
6757
  });
@@ -6548,7 +6760,7 @@ var __async = (__this, __arguments, generator) => {
6548
6760
  // because otherwise some prototype manipulation in
6549
6761
  // userland will fail
6550
6762
  enumerable: false,
6551
- get: function get() {
6763
+ get: function get2() {
6552
6764
  return this._readableState.flowing;
6553
6765
  },
6554
6766
  set: function set(state2) {
@@ -6563,7 +6775,7 @@ var __async = (__this, __arguments, generator) => {
6563
6775
  // because otherwise some prototype manipulation in
6564
6776
  // userland will fail
6565
6777
  enumerable: false,
6566
- get: function get() {
6778
+ get: function get2() {
6567
6779
  return this._readableState.length;
6568
6780
  }
6569
6781
  });
@@ -8279,7 +8491,7 @@ var __async = (__this, __arguments, generator) => {
8279
8491
  if (!String.fromCodePoint) {
8280
8492
  (function() {
8281
8493
  var stringFromCharCode = String.fromCharCode;
8282
- var floor = Math.floor;
8494
+ var floor2 = Math.floor;
8283
8495
  var fromCodePoint = function() {
8284
8496
  var MAX_SIZE = 16384;
8285
8497
  var codeUnits = [];
@@ -8296,7 +8508,7 @@ var __async = (__this, __arguments, generator) => {
8296
8508
  if (!isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`
8297
8509
  codePoint < 0 || // not a valid Unicode code point
8298
8510
  codePoint > 1114111 || // not a valid Unicode code point
8299
- floor(codePoint) !== codePoint) {
8511
+ floor2(codePoint) !== codePoint) {
8300
8512
  throw RangeError("Invalid code point: " + codePoint);
8301
8513
  }
8302
8514
  if (codePoint <= 65535) {
@@ -12469,26 +12681,29 @@ var __async = (__this, __arguments, generator) => {
12469
12681
  constructor({ name, description, title } = { name: "", description: "", title: "" }) {
12470
12682
  super("wp:docPr");
12471
12683
  __publicField(this, "docPropertiesUniqueNumericId", docPropertiesUniqueNumericIdGen());
12472
- this.root.push(
12473
- new NextAttributeComponent({
12474
- id: {
12475
- key: "id",
12476
- value: this.docPropertiesUniqueNumericId()
12477
- },
12478
- name: {
12479
- key: "name",
12480
- value: name
12481
- },
12482
- description: {
12483
- key: "descr",
12484
- value: description
12485
- },
12486
- title: {
12487
- key: "title",
12488
- value: title
12489
- }
12490
- })
12491
- );
12684
+ const attributes = {
12685
+ id: {
12686
+ key: "id",
12687
+ value: this.docPropertiesUniqueNumericId()
12688
+ },
12689
+ name: {
12690
+ key: "name",
12691
+ value: name
12692
+ }
12693
+ };
12694
+ if (description !== null && description !== void 0) {
12695
+ attributes.description = {
12696
+ key: "descr",
12697
+ value: description
12698
+ };
12699
+ }
12700
+ if (title !== null && title !== void 0) {
12701
+ attributes.title = {
12702
+ key: "title",
12703
+ value: title
12704
+ };
12705
+ }
12706
+ this.root.push(new NextAttributeComponent(attributes));
12492
12707
  }
12493
12708
  prepForXml(context) {
12494
12709
  for (let i = context.stack.length - 1; i >= 0; i--) {
@@ -13375,11 +13590,15 @@ var __async = (__this, __arguments, generator) => {
13375
13590
  });
13376
13591
  }
13377
13592
  }
13378
- const VerticalAlign = {
13379
- BOTTOM: "bottom",
13593
+ const VerticalAlignTable = {
13594
+ TOP: "top",
13380
13595
  CENTER: "center",
13381
- TOP: "top"
13596
+ BOTTOM: "bottom"
13382
13597
  };
13598
+ const VerticalAlignSection = __spreadProps(__spreadValues({}, VerticalAlignTable), {
13599
+ BOTH: "both"
13600
+ });
13601
+ const VerticalAlign = VerticalAlignSection;
13383
13602
  class VerticalAlignAttributes extends XmlAttributeComponent {
13384
13603
  constructor() {
13385
13604
  super(...arguments);
@@ -21118,8 +21337,19 @@ var __async = (__this, __arguments, generator) => {
21118
21337
  PARAGRAPH: "paragraph"
21119
21338
  };
21120
21339
  const imageReplacer = new ImageReplacer();
21121
- const UTF16LE = Buffer.from([255, 254]);
21122
- const UTF16BE = Buffer.from([254, 255]);
21340
+ const UTF16LE = new Uint8Array([255, 254]);
21341
+ const UTF16BE = new Uint8Array([254, 255]);
21342
+ const compareByteArrays = (a, b) => {
21343
+ if (a.length !== b.length) {
21344
+ return false;
21345
+ }
21346
+ for (let i = 0; i < a.length; i++) {
21347
+ if (a[i] !== b[i]) {
21348
+ return false;
21349
+ }
21350
+ }
21351
+ return true;
21352
+ };
21123
21353
  const patchDocument = (_0) => __async(this, [_0], function* ({
21124
21354
  outputType,
21125
21355
  data,
@@ -21145,7 +21375,7 @@ var __async = (__this, __arguments, generator) => {
21145
21375
  for (const [key, value] of Object.entries(zipContent.files)) {
21146
21376
  const binaryValue = yield value.async("uint8array");
21147
21377
  const startBytes = binaryValue.slice(0, 2);
21148
- if (UTF16LE.equals(startBytes) || UTF16BE.equals(startBytes)) {
21378
+ if (compareByteArrays(startBytes, UTF16LE) || compareByteArrays(startBytes, UTF16BE)) {
21149
21379
  binaryContentMap.set(key, binaryValue);
21150
21380
  continue;
21151
21381
  }
@@ -21550,6 +21780,8 @@ var __async = (__this, __arguments, generator) => {
21550
21780
  exports2.VerticalAlign = VerticalAlign;
21551
21781
  exports2.VerticalAlignAttributes = VerticalAlignAttributes;
21552
21782
  exports2.VerticalAlignElement = VerticalAlignElement;
21783
+ exports2.VerticalAlignSection = VerticalAlignSection;
21784
+ exports2.VerticalAlignTable = VerticalAlignTable;
21553
21785
  exports2.VerticalMerge = VerticalMerge;
21554
21786
  exports2.VerticalMergeType = VerticalMergeType;
21555
21787
  exports2.VerticalPositionAlign = VerticalPositionAlign;