@pdfme/ui 6.2.7 → 6.2.8-dev.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.
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var __esmMin = (fn, res, err) => () => {
16
16
  throw err = [e], e;
17
17
  }
18
18
  };
19
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
19
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
20
20
  var __exportAll = (all, no_symbols) => {
21
21
  let target = {};
22
22
  for (var name in all) __defProp(target, name, {
@@ -426,7 +426,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
426
426
  exports.useTransition = function() {
427
427
  return ReactSharedInternals.H.useTransition();
428
428
  };
429
- exports.version = "19.3.0";
429
+ exports.version = "19.3.1";
430
430
  }));
431
431
  //#endregion
432
432
  //#region ../../node_modules/react/index.js
@@ -741,6 +741,17 @@ function prefixIssues(path, issues) {
741
741
  function unwrapMessage(message) {
742
742
  return typeof message === "string" ? message : message?.message;
743
743
  }
744
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
745
+ function sizeCaps(defChecks) {
746
+ const caps = [];
747
+ for (const ch of defChecks ?? []) {
748
+ const d = ch._zod.def;
749
+ if (!/_(length|size)$|_equals$/.test(d.check)) break;
750
+ const max = d.maximum ?? d.length ?? d.size;
751
+ if (max >= 0) caps.push([max, ch]);
752
+ }
753
+ return caps;
754
+ }
744
755
  function attachSchema(issues, start, inst) {
745
756
  var _a;
746
757
  for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
@@ -833,6 +844,7 @@ function hide(inst, key, value) {
833
844
  return own(inst, key, value, false);
834
845
  }
835
846
  /** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
847
+ /* @__NO_SIDE_EFFECTS__ */
836
848
  function derived(computes, table) {
837
849
  for (const key in computes) {
838
850
  const compute = computes[key];
@@ -984,6 +996,7 @@ function newError(Definition) {
984
996
  }
985
997
  return new Definition();
986
998
  }
999
+ /* @__NO_SIDE_EFFECTS__ */
987
1000
  function $constructor(name, initializer, proto, params) {
988
1001
  const zodProto = {};
989
1002
  function Internals(def) {
@@ -1114,8 +1127,7 @@ var initializer$1 = (inst, def) => {
1114
1127
  });
1115
1128
  }
1116
1129
  };
1117
- var $ZodError = $constructor("$ZodError", initializer$1);
1118
- $constructor("$ZodError", initializer$1, void 0, { Parent: Error });
1130
+ var $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
1119
1131
  /** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
1120
1132
  * ("toString", "constructor") would otherwise read through to the prototype, and assigning
1121
1133
  * "__proto__" would hit the setter instead of creating a key. */
@@ -1788,7 +1800,7 @@ var Doc = class {
1788
1800
  var version$3 = {
1789
1801
  major: 4,
1790
1802
  minor: 6,
1791
- patch: 5
1803
+ patch: 7
1792
1804
  };
1793
1805
  //#endregion
1794
1806
  //#region ../../node_modules/zod/v4/core/schemas.js
@@ -2311,6 +2323,26 @@ var $ZodDate = /*@__PURE__*/ $constructor("$ZodDate", (inst, def) => {
2311
2323
  return payload;
2312
2324
  };
2313
2325
  });
2326
+ function capSize(inst, size) {
2327
+ const caps = sizeCaps(inst._zod.def.checks);
2328
+ if (!caps.length) return;
2329
+ const cap = Math.min(...caps.map((c) => c[0]));
2330
+ const parse = inst._zod.parse;
2331
+ inst._zod.parse = (payload, ctx) => {
2332
+ const n = size(payload.value);
2333
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
2334
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
2335
+ const start = payload.issues.length;
2336
+ ch._zod.check(payload);
2337
+ payload.issues[start].continue = false;
2338
+ attachSchema(payload.issues, start, inst);
2339
+ return payload;
2340
+ }
2341
+ }
2342
+ return parse(payload, ctx);
2343
+ };
2344
+ }
2345
+ var arraySize = (input) => Array.isArray(input) ? input.length : -1;
2314
2346
  function handleArrayResult(result, final, index) {
2315
2347
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
2316
2348
  final.value[index] = result.value;
@@ -2348,6 +2380,7 @@ var $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
2348
2380
  if (proms.length) return Promise.all(proms).then(() => payload);
2349
2381
  return payload;
2350
2382
  };
2383
+ capSize(inst, arraySize);
2351
2384
  });
2352
2385
  function handlePropertyResult(result, final, key, input, optin, optout) {
2353
2386
  const isPresent = key in input;
@@ -5173,7 +5206,7 @@ var ZodError = /*@__PURE__*/ $constructor("ZodError", initializer);
5173
5206
  var ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
5174
5207
  //#endregion
5175
5208
  //#region ../../node_modules/zod/v4/classic/parse.js
5176
- var parse$3 = /* @__PURE__ */ _parse(ZodRealError);
5209
+ var parse$4 = /* @__PURE__ */ _parse(ZodRealError);
5177
5210
  var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
5178
5211
  var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
5179
5212
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
@@ -5305,7 +5338,7 @@ var ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
5305
5338
  own(this, "~standard", value);
5306
5339
  },
5307
5340
  parse: function _parse(data, params) {
5308
- return parse$3(this, data, params, { callee: _parse });
5341
+ return parse$4(this, data, params, { callee: _parse });
5309
5342
  },
5310
5343
  parseAsync: async function _parseAsync(data, params) {
5311
5344
  return await parseAsync(this, data, params, { callee: _parseAsync });
@@ -6952,8 +6985,8 @@ var require_deflate$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
6952
6985
  if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) continue;
6953
6986
  scan += 2;
6954
6987
  match++;
6955
- do ;
6956
- while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
6988
+ do;
6989
+ while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
6957
6990
  len = MAX_MATCH - (strend - scan);
6958
6991
  scan = strend - MAX_MATCH;
6959
6992
  if (len > best_len) {
@@ -7210,8 +7243,8 @@ while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[
7210
7243
  prev = _win[scan];
7211
7244
  if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
7212
7245
  strend = s.strstart + MAX_MATCH;
7213
- do ;
7214
- while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
7246
+ do;
7247
+ while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
7215
7248
  s.match_length = MAX_MATCH - (strend - scan);
7216
7249
  if (s.match_length > s.lookahead) s.match_length = s.lookahead;
7217
7250
  }
@@ -10177,7 +10210,7 @@ var Encodings = {
10177
10210
  WinAnsi: new Encoding("WinAnsi", allUnicodeMappings.win1252)
10178
10211
  };
10179
10212
  //#endregion
10180
- //#region \0@oxc-project+runtime@0.151.0/helpers/esm/typeof.js
10213
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
10181
10214
  function _typeof$19(o) {
10182
10215
  "@babel/helpers - typeof";
10183
10216
  return _typeof$19 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -10187,7 +10220,7 @@ function _typeof$19(o) {
10187
10220
  }, _typeof$19(o);
10188
10221
  }
10189
10222
  //#endregion
10190
- //#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPrimitive.js
10223
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
10191
10224
  function toPrimitive$3(t, r) {
10192
10225
  if ("object" != _typeof$19(t) || !t) return t;
10193
10226
  var e = t[Symbol.toPrimitive];
@@ -10199,13 +10232,13 @@ function toPrimitive$3(t, r) {
10199
10232
  return ("string" === r ? String : Number)(t);
10200
10233
  }
10201
10234
  //#endregion
10202
- //#region \0@oxc-project+runtime@0.151.0/helpers/esm/toPropertyKey.js
10235
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
10203
10236
  function toPropertyKey$3(t) {
10204
10237
  var i = toPrimitive$3(t, "string");
10205
10238
  return "symbol" == _typeof$19(i) ? i : i + "";
10206
10239
  }
10207
10240
  //#endregion
10208
- //#region \0@oxc-project+runtime@0.151.0/helpers/esm/defineProperty.js
10241
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
10209
10242
  function _defineProperty$14(e, r, t) {
10210
10243
  return (r = toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, {
10211
10244
  value: t,
@@ -10980,8 +11013,8 @@ var longest_match = (s, cur_match) => {
10980
11013
  if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) continue;
10981
11014
  scan += 2;
10982
11015
  match++;
10983
- do ;
10984
- while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
11016
+ do;
11017
+ while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
10985
11018
  len = MAX_MATCH - (strend - scan);
10986
11019
  scan = strend - MAX_MATCH;
10987
11020
  if (len > best_len) {
@@ -11269,8 +11302,8 @@ var deflate_rle = (s, flush) => {
11269
11302
  prev = _win[scan];
11270
11303
  if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
11271
11304
  strend = s.strstart + MAX_MATCH;
11272
- do ;
11273
- while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
11305
+ do;
11306
+ while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
11274
11307
  s.match_length = MAX_MATCH - (strend - scan);
11275
11308
  if (s.match_length > s.lookahead) s.match_length = s.lookahead;
11276
11309
  }
@@ -13012,8 +13045,8 @@ var require_deflate$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
13012
13045
  if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) continue;
13013
13046
  scan += 2;
13014
13047
  match++;
13015
- do ;
13016
- while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
13048
+ do;
13049
+ while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
13017
13050
  len = MAX_MATCH - (strend - scan);
13018
13051
  scan = strend - MAX_MATCH;
13019
13052
  if (len > best_len) {
@@ -13270,8 +13303,8 @@ while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[
13270
13303
  prev = _win[scan];
13271
13304
  if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
13272
13305
  strend = s.strstart + MAX_MATCH;
13273
- do ;
13274
- while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
13306
+ do;
13307
+ while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
13275
13308
  s.match_length = MAX_MATCH - (strend - scan);
13276
13309
  if (s.match_length > s.lookahead) s.match_length = s.lookahead;
13277
13310
  }
@@ -20743,8 +20776,8 @@ function zeroArray(array, length) {
20743
20776
  }
20744
20777
  //#endregion
20745
20778
  //#region ../../node_modules/html-entities/dist/commonjs/named-references.js
20746
- var require_named_references = /* @__PURE__ */ __commonJSMin(((exports) => {
20747
- var __assign = exports && exports.__assign || function() {
20779
+ var require_named_references = /* @__PURE__ */ __commonJSMin(((exports, module, this$12) => {
20780
+ var __assign = this$12 && this$12.__assign || function() {
20748
20781
  __assign = Object.assign || function(t) {
20749
20782
  for (var s, i = 1, n = arguments.length; i < n; i++) {
20750
20783
  s = arguments[i];
@@ -20847,8 +20880,8 @@ var require_surrogate_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
20847
20880
  }));
20848
20881
  //#endregion
20849
20882
  //#region ../../node_modules/html-entities/dist/commonjs/index.js
20850
- var require_commonjs = /* @__PURE__ */ __commonJSMin(((exports) => {
20851
- var __assign = exports && exports.__assign || function() {
20883
+ var require_commonjs = /* @__PURE__ */ __commonJSMin(((exports, module, this$11) => {
20884
+ var __assign = this$11 && this$11.__assign || function() {
20852
20885
  __assign = Object.assign || function(t) {
20853
20886
  for (var s, i = 1, n = arguments.length; i < n; i++) {
20854
20887
  s = arguments[i];
@@ -29711,7 +29744,7 @@ var parameters = /* @__PURE__ */ new Map([
29711
29744
  ["Z", 0],
29712
29745
  ["z", 0]
29713
29746
  ]);
29714
- var parse$2$1 = (path) => {
29747
+ var parse$2 = (path) => {
29715
29748
  let cmd;
29716
29749
  const ret = [];
29717
29750
  let args = [];
@@ -30016,7 +30049,7 @@ var segmentToBezier = (cx1, cy1, th0, th1, rx, ry, sinTh, cosTh) => {
30016
30049
  a10 * x3 + a11 * y3
30017
30050
  ];
30018
30051
  };
30019
- var svgPathToOperators = (path) => apply$1(parse$2$1(path));
30052
+ var svgPathToOperators = (path) => apply$1(parse$2(path));
30020
30053
  var clipSpace = ({ topLeft, topRight, bottomRight, bottomLeft }) => [
30021
30054
  moveTo(topLeft.x, topLeft.y),
30022
30055
  lineTo(topRight.x, topRight.y),
@@ -40834,8 +40867,10 @@ var astralIdentifierCodes = [
40834
40867
  4,
40835
40868
  318,
40836
40869
  1,
40837
- 78,
40838
- 5,
40870
+ 31,
40871
+ 4,
40872
+ 33,
40873
+ 15,
40839
40874
  71,
40840
40875
  10,
40841
40876
  50,
@@ -41016,7 +41051,9 @@ var astralIdentifierCodes = [
41016
41051
  9,
41017
41052
  55,
41018
41053
  9,
41019
- 266,
41054
+ 7,
41055
+ 0,
41056
+ 259,
41020
41057
  3,
41021
41058
  10,
41022
41059
  1,
@@ -41064,7 +41101,9 @@ var astralIdentifierCodes = [
41064
41101
  45,
41065
41102
  3,
41066
41103
  22,
41067
- 543,
41104
+ 481,
41105
+ 1,
41106
+ 61,
41068
41107
  4,
41069
41108
  4,
41070
41109
  5,
@@ -41076,7 +41115,15 @@ var astralIdentifierCodes = [
41076
41115
  3,
41077
41116
  149,
41078
41117
  2,
41079
- 1418,
41118
+ 12,
41119
+ 2,
41120
+ 9,
41121
+ 1,
41122
+ 3,
41123
+ 0,
41124
+ 33,
41125
+ 1,
41126
+ 1357,
41080
41127
  49,
41081
41128
  513,
41082
41129
  54,
@@ -41209,8 +41256,8 @@ var astralIdentifierStartCodes = [
41209
41256
  2,
41210
41257
  41,
41211
41258
  2,
41212
- 8,
41213
- 70,
41259
+ 13,
41260
+ 65,
41214
41261
  5,
41215
41262
  3,
41216
41263
  0,
@@ -41282,7 +41329,9 @@ var astralIdentifierStartCodes = [
41282
41329
  1,
41283
41330
  17,
41284
41331
  5,
41285
- 57,
41332
+ 18,
41333
+ 21,
41334
+ 18,
41286
41335
  28,
41287
41336
  11,
41288
41337
  0,
@@ -41440,7 +41489,9 @@ var astralIdentifierStartCodes = [
41440
41489
  0,
41441
41490
  19,
41442
41491
  72,
41443
- 200,
41492
+ 18,
41493
+ 0,
41494
+ 182,
41444
41495
  32,
41445
41496
  32,
41446
41497
  8,
@@ -41468,7 +41519,9 @@ var astralIdentifierStartCodes = [
41468
41519
  0,
41469
41520
  24,
41470
41521
  43,
41471
- 261,
41522
+ 22,
41523
+ 0,
41524
+ 239,
41472
41525
  18,
41473
41526
  16,
41474
41527
  0,
@@ -41481,10 +41534,12 @@ var astralIdentifierStartCodes = [
41481
41534
  80,
41482
41535
  921,
41483
41536
  103,
41484
- 110,
41485
- 18,
41486
- 195,
41487
- 2637,
41537
+ 111,
41538
+ 6,
41539
+ 206,
41540
+ 13,
41541
+ 310,
41542
+ 2314,
41488
41543
  96,
41489
41544
  16,
41490
41545
  1071,
@@ -41533,28 +41588,32 @@ var astralIdentifierStartCodes = [
41533
41588
  15,
41534
41589
  4,
41535
41590
  10,
41536
- 7381,
41537
- 42,
41538
- 31,
41539
- 98,
41591
+ 7386,
41592
+ 37,
41593
+ 33,
41594
+ 96,
41540
41595
  114,
41541
- 8702,
41596
+ 14,
41597
+ 913,
41598
+ 15,
41599
+ 50,
41600
+ 7710,
41542
41601
  3,
41543
41602
  2,
41544
41603
  6,
41545
41604
  2,
41546
41605
  1,
41547
41606
  2,
41548
- 290,
41549
- 16,
41607
+ 296,
41608
+ 10,
41550
41609
  0,
41551
41610
  30,
41552
41611
  2,
41553
41612
  3,
41554
41613
  0,
41555
41614
  15,
41556
- 3,
41557
- 9,
41615
+ 4,
41616
+ 8,
41558
41617
  395,
41559
41618
  2309,
41560
41619
  106,
@@ -41601,8 +41660,8 @@ var astralIdentifierStartCodes = [
41601
41660
  4,
41602
41661
  6,
41603
41662
  2,
41604
- 339,
41605
- 3,
41663
+ 340,
41664
+ 2,
41606
41665
  24,
41607
41666
  2,
41608
41667
  24,
@@ -41625,10 +41684,12 @@ var astralIdentifierStartCodes = [
41625
41684
  2,
41626
41685
  7,
41627
41686
  1845,
41628
- 30,
41629
- 7,
41630
- 5,
41631
- 262,
41687
+ 129,
41688
+ 15,
41689
+ 6,
41690
+ 55,
41691
+ 50,
41692
+ 49,
41632
41693
  61,
41633
41694
  147,
41634
41695
  44,
@@ -41741,8 +41802,8 @@ var astralIdentifierStartCodes = [
41741
41802
  4421,
41742
41803
  42719,
41743
41804
  33,
41744
- 4381,
41745
- 3,
41805
+ 4382,
41806
+ 2,
41746
41807
  5773,
41747
41808
  3,
41748
41809
  7472,
@@ -41753,10 +41814,12 @@ var astralIdentifierStartCodes = [
41753
41814
  1507,
41754
41815
  4938,
41755
41816
  6,
41756
- 8489
41817
+ 8489,
41818
+ 39815,
41819
+ 11327
41757
41820
  ];
41758
- var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
41759
- var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
41821
+ var nonASCIIidentifierChars = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄ-׉ؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୓-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫰ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
41822
+ var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆ՘ՙՠ-ֈ֋֌א-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿ₏-₟ℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-꟝꟢꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩ꭬꭭ꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
41760
41823
  var reservedWords = {
41761
41824
  3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
41762
41825
  5: "class enum extends super const export import",
@@ -42244,7 +42307,7 @@ pp$9.strictDirective = function(start) {
42244
42307
  skipWhiteSpace.lastIndex = start + match[0].length;
42245
42308
  var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
42246
42309
  var next = this.input.charAt(end);
42247
- return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
42310
+ return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=" || next === "i" && keywordOpAt(this, end));
42248
42311
  }
42249
42312
  start += match[0].length;
42250
42313
  skipWhiteSpace.lastIndex = start;
@@ -42252,6 +42315,15 @@ pp$9.strictDirective = function(start) {
42252
42315
  if (this.input[start] === ";") start++;
42253
42316
  }
42254
42317
  };
42318
+ function keywordOpAt(parser, pos) {
42319
+ var end = pos + 1, stop = Math.min(parser.input.length, pos + 11);
42320
+ while (end < stop) {
42321
+ var ch = parser.fullCharCodeAt(end);
42322
+ if (!isIdentifierChar(ch, true)) break;
42323
+ end += ch <= 65535 ? 1 : 2;
42324
+ }
42325
+ return end === pos + 2 && parser.input.slice(pos, end) === "in" || end === pos + 10 && parser.input.slice(pos, end) === "instanceof";
42326
+ }
42255
42327
  pp$9.eat = function(type) {
42256
42328
  if (this.type === type) {
42257
42329
  this.next();
@@ -43565,8 +43637,11 @@ pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse
43565
43637
  var node = this.startNodeAt(startPos, startLoc);
43566
43638
  node.operator = this.value;
43567
43639
  if (this.type === types$1.eq) left = this.toAssignable(left, false, refDestructuringErrors);
43568
- if (!ownDestructuringErrors) refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;
43569
- if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;
43640
+ if (!ownDestructuringErrors) {
43641
+ refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;
43642
+ if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;
43643
+ if (refDestructuringErrors.doubleProto >= left.start) refDestructuringErrors.doubleProto = -1;
43644
+ }
43570
43645
  if (this.type === types$1.eq) this.checkLValPattern(left);
43571
43646
  else this.checkLValSimple(left);
43572
43647
  node.left = left;
@@ -43672,13 +43747,24 @@ function isPrivateFieldAccess(node) {
43672
43747
  }
43673
43748
  pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
43674
43749
  var startPos = this.start, startLoc = this.startLoc;
43750
+ var oldDoubleProto = -1, oldShorthandAssign = -1;
43751
+ if (refDestructuringErrors) {
43752
+ oldDoubleProto = refDestructuringErrors.doubleProto;
43753
+ oldShorthandAssign = refDestructuringErrors.shorthandAssign;
43754
+ refDestructuringErrors.doubleProto = refDestructuringErrors.shorthandAssign = -1;
43755
+ }
43675
43756
  var expr = this.parseExprAtom(refDestructuringErrors, forInit);
43676
43757
  if (expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return expr;
43677
43758
  var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);
43678
- if (refDestructuringErrors && result.type === "MemberExpression") {
43679
- if (refDestructuringErrors.parenthesizedAssign >= result.start) refDestructuringErrors.parenthesizedAssign = -1;
43680
- if (refDestructuringErrors.parenthesizedBind >= result.start) refDestructuringErrors.parenthesizedBind = -1;
43681
- if (refDestructuringErrors.trailingComma >= result.start) refDestructuringErrors.trailingComma = -1;
43759
+ if (refDestructuringErrors) {
43760
+ if (result.end > expr.end) {
43761
+ this.checkExpressionErrors(refDestructuringErrors, true);
43762
+ if (refDestructuringErrors.parenthesizedAssign >= result.start) refDestructuringErrors.parenthesizedAssign = -1;
43763
+ if (refDestructuringErrors.parenthesizedBind >= result.start) refDestructuringErrors.parenthesizedBind = -1;
43764
+ if (refDestructuringErrors.trailingComma >= result.start) refDestructuringErrors.trailingComma = -1;
43765
+ }
43766
+ if (oldDoubleProto > -1) refDestructuringErrors.doubleProto = oldDoubleProto;
43767
+ if (oldShorthandAssign > -1) refDestructuringErrors.shorthandAssign = oldShorthandAssign;
43682
43768
  }
43683
43769
  return result;
43684
43770
  };
@@ -43688,7 +43774,7 @@ pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {
43688
43774
  while (true) {
43689
43775
  var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);
43690
43776
  if (element.optional) optionalChained = true;
43691
- if (element === base || element.type === "ArrowFunctionExpression") {
43777
+ if (element.end === base.end || element.type === "ArrowFunctionExpression") {
43692
43778
  if (optionalChained) {
43693
43779
  var chainNode = this.startNodeAt(startPos, startLoc);
43694
43780
  chainNode.expression = element;
@@ -43697,6 +43783,7 @@ pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {
43697
43783
  return element;
43698
43784
  }
43699
43785
  base = element;
43786
+ maybeAsyncArrow = false;
43700
43787
  }
43701
43788
  };
43702
43789
  pp$5.shouldParseAsyncArrow = function() {
@@ -45926,7 +46013,7 @@ pp.readWord = function() {
45926
46013
  };
45927
46014
  Parser.acorn = {
45928
46015
  Parser,
45929
- version: "8.18.0",
46016
+ version: "8.19.0",
45930
46017
  defaultOptions: defaultOptions$1,
45931
46018
  Position,
45932
46019
  SourceLocation,
@@ -45950,7 +46037,7 @@ function parseExpressionAt(input, pos, options) {
45950
46037
  }
45951
46038
  //#endregion
45952
46039
  //#region ../common/dist/index.js
45953
- var PDFME_VERSION = "6.2.7";
46040
+ var PDFME_VERSION = "6.2.8";
45954
46041
  var PAGE_SIZE_PRESETS = {
45955
46042
  A3: {
45956
46043
  width: 297,
@@ -47645,7 +47732,7 @@ var require_react_dom_production = /* @__PURE__ */ __commonJSMin(((exports) => {
47645
47732
  exports.useFormStatus = function() {
47646
47733
  return ReactSharedInternals.H.useHostTransitionStatus();
47647
47734
  };
47648
- exports.version = "19.3.0";
47735
+ exports.version = "19.3.1";
47649
47736
  }));
47650
47737
  //#endregion
47651
47738
  //#region ../../node_modules/react-dom/index.js
@@ -58200,7 +58287,7 @@ var require_react_dom_client_production = /* @__PURE__ */ __commonJSMin(((export
58200
58287
  }
58201
58288
  };
58202
58289
  var isomorphicReactPackageVersion$jscomp$inline_2043 = React.version;
58203
- if ("19.3.0" !== isomorphicReactPackageVersion$jscomp$inline_2043) throw Error(formatProdErrorMessage(527, isomorphicReactPackageVersion$jscomp$inline_2043, "19.3.0"));
58290
+ if ("19.3.1" !== isomorphicReactPackageVersion$jscomp$inline_2043) throw Error(formatProdErrorMessage(527, isomorphicReactPackageVersion$jscomp$inline_2043, "19.3.1"));
58204
58291
  ReactDOMSharedInternals.findDOMNode = function(componentOrElement) {
58205
58292
  var fiber = componentOrElement._reactInternals;
58206
58293
  if (void 0 === fiber) {
@@ -58215,10 +58302,10 @@ var require_react_dom_client_production = /* @__PURE__ */ __commonJSMin(((export
58215
58302
  };
58216
58303
  var internals$jscomp$inline_2586 = {
58217
58304
  bundleType: 0,
58218
- version: "19.3.0",
58305
+ version: "19.3.1",
58219
58306
  rendererPackageName: "react-dom",
58220
58307
  currentDispatcherRef: ReactSharedInternals,
58221
- reconcilerVersion: "19.3.0"
58308
+ reconcilerVersion: "19.3.1"
58222
58309
  };
58223
58310
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
58224
58311
  var hook$jscomp$inline_2587 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -89663,7 +89750,7 @@ var require_decoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89663
89750
  }
89664
89751
  }));
89665
89752
  //#endregion
89666
- //#region ../schemas/dist/dynamicTemplate-CkX3dzIQ.js
89753
+ //#region ../schemas/dist/dynamicTemplate-DbxdkEGp.js
89667
89754
  var import_jpeg_js = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
89668
89755
  module.exports = {
89669
89756
  encode: require_encoder(),
@@ -90609,7 +90696,7 @@ var getDynamicLayoutForTable = async (value, args) => {
90609
90696
  };
90610
90697
  };
90611
90698
  //#endregion
90612
- //#region ../schemas/dist/utils-C361jF7a.js
90699
+ //#region ../schemas/dist/utils-CbHtVsNs.js
90613
90700
  var convertForPdfLayoutProps = ({ schema, pageHeight, applyRotateTranslate = true }) => {
90614
90701
  const { width: mmWidth, height: mmHeight, position, rotate, opacity } = schema;
90615
90702
  const { x: mmX, y: mmY } = position;
@@ -90789,7 +90876,7 @@ var createSvgStr = (icon, attrs) => {
90789
90876
  //#endregion
90790
90877
  //#region ../../node_modules/lucide/dist/esm/icons/arrow-down-to-line.mjs
90791
90878
  /**
90792
- * @license lucide v1.48.0 - ISC
90879
+ * @license lucide v1.59.0 - ISC
90793
90880
  *
90794
90881
  * This source code is licensed under the ISC license.
90795
90882
  * See the LICENSE file in the root directory of this source tree.
@@ -90802,7 +90889,7 @@ var ArrowDownToLine = [
90802
90889
  //#endregion
90803
90890
  //#region ../../node_modules/lucide/dist/esm/icons/arrow-up-to-line.mjs
90804
90891
  /**
90805
- * @license lucide v1.48.0 - ISC
90892
+ * @license lucide v1.59.0 - ISC
90806
90893
  *
90807
90894
  * This source code is licensed under the ISC license.
90808
90895
  * See the LICENSE file in the root directory of this source tree.
@@ -90815,7 +90902,7 @@ var ArrowUpToLine = [
90815
90902
  //#endregion
90816
90903
  //#region ../../node_modules/lucide/dist/esm/icons/strikethrough.mjs
90817
90904
  /**
90818
- * @license lucide v1.48.0 - ISC
90905
+ * @license lucide v1.59.0 - ISC
90819
90906
  *
90820
90907
  * This source code is licensed under the ISC license.
90821
90908
  * See the LICENSE file in the root directory of this source tree.
@@ -90833,7 +90920,7 @@ var Strikethrough = [
90833
90920
  //#endregion
90834
90921
  //#region ../../node_modules/lucide/dist/esm/icons/text-align-center.mjs
90835
90922
  /**
90836
- * @license lucide v1.48.0 - ISC
90923
+ * @license lucide v1.59.0 - ISC
90837
90924
  *
90838
90925
  * This source code is licensed under the ISC license.
90839
90926
  * See the LICENSE file in the root directory of this source tree.
@@ -90846,7 +90933,7 @@ var TextAlignCenter = [
90846
90933
  //#endregion
90847
90934
  //#region ../../node_modules/lucide/dist/esm/icons/text-align-end.mjs
90848
90935
  /**
90849
- * @license lucide v1.48.0 - ISC
90936
+ * @license lucide v1.59.0 - ISC
90850
90937
  *
90851
90938
  * This source code is licensed under the ISC license.
90852
90939
  * See the LICENSE file in the root directory of this source tree.
@@ -90859,7 +90946,7 @@ var TextAlignEnd = [
90859
90946
  //#endregion
90860
90947
  //#region ../../node_modules/lucide/dist/esm/icons/text-align-justify.mjs
90861
90948
  /**
90862
- * @license lucide v1.48.0 - ISC
90949
+ * @license lucide v1.59.0 - ISC
90863
90950
  *
90864
90951
  * This source code is licensed under the ISC license.
90865
90952
  * See the LICENSE file in the root directory of this source tree.
@@ -90872,7 +90959,7 @@ var TextAlignJustify = [
90872
90959
  //#endregion
90873
90960
  //#region ../../node_modules/lucide/dist/esm/icons/text-align-start.mjs
90874
90961
  /**
90875
- * @license lucide v1.48.0 - ISC
90962
+ * @license lucide v1.59.0 - ISC
90876
90963
  *
90877
90964
  * This source code is licensed under the ISC license.
90878
90965
  * See the LICENSE file in the root directory of this source tree.
@@ -90885,7 +90972,7 @@ var TextAlignStart = [
90885
90972
  //#endregion
90886
90973
  //#region ../../node_modules/lucide/dist/esm/icons/text-cursor-input.mjs
90887
90974
  /**
90888
- * @license lucide v1.48.0 - ISC
90975
+ * @license lucide v1.59.0 - ISC
90889
90976
  *
90890
90977
  * This source code is licensed under the ISC license.
90891
90978
  * See the LICENSE file in the root directory of this source tree.
@@ -90900,7 +90987,7 @@ var TextCursorInput = [
90900
90987
  //#endregion
90901
90988
  //#region ../../node_modules/lucide/dist/esm/icons/underline.mjs
90902
90989
  /**
90903
- * @license lucide v1.48.0 - ISC
90990
+ * @license lucide v1.59.0 - ISC
90904
90991
  *
90905
90992
  * This source code is licensed under the ISC license.
90906
90993
  * See the LICENSE file in the root directory of this source tree.
@@ -90912,7 +90999,7 @@ var Underline = [["path", { d: "M6 4v6a6 6 0 0 0 12 0V4" }], ["line", {
90912
90999
  y2: "20"
90913
91000
  }]];
90914
91001
  //#endregion
90915
- //#region ../schemas/dist/builtins-BW_NgJf9.js
91002
+ //#region ../schemas/dist/builtins-BU9zSggO.js
90916
91003
  var addUriLinkAnnotation = (arg) => {
90917
91004
  const { pdfDoc, page, uri, rect, borderWidth = 0 } = arg;
90918
91005
  const safeUri = normalizeSafeLinkUri(uri);
@@ -95308,10 +95395,10 @@ var DndContext = /*#__PURE__*/ (0, import_react$9.memo)(function DndContext(_ref
95308
95395
  });
95309
95396
  var NullContext = /*#__PURE__*/ (0, import_react$9.createContext)(null);
95310
95397
  var defaultRole = "button";
95311
- var ID_PREFIX$1 = "Draggable";
95398
+ var ID_PREFIX$2 = "Draggable";
95312
95399
  function useDraggable(_ref) {
95313
95400
  let { id, data, disabled = false, attributes } = _ref;
95314
- const key = useUniqueId(ID_PREFIX$1);
95401
+ const key = useUniqueId(ID_PREFIX$2);
95315
95402
  const { activators, activatorEvent, active, activeNodeRect, ariaDescribedById, draggableNodes, over } = (0, import_react$9.useContext)(InternalContext);
95316
95403
  const { role = defaultRole, roleDescription = "draggable", tabIndex = 0 } = attributes != null ? attributes : {};
95317
95404
  const isDragging = (active == null ? void 0 : active.id) === id;
@@ -95364,11 +95451,11 @@ function useDraggable(_ref) {
95364
95451
  function useDndContext() {
95365
95452
  return (0, import_react$9.useContext)(PublicContext);
95366
95453
  }
95367
- var ID_PREFIX$1$1 = "Droppable";
95454
+ var ID_PREFIX$1 = "Droppable";
95368
95455
  var defaultResizeObserverConfig = { timeout: 25 };
95369
95456
  function useDroppable(_ref) {
95370
95457
  let { data, disabled = false, id, resizeObserverConfig } = _ref;
95371
- const key = useUniqueId(ID_PREFIX$1$1);
95458
+ const key = useUniqueId(ID_PREFIX$1);
95372
95459
  const { active, dispatch, over, measureDroppableContainers } = (0, import_react$9.useContext)(InternalContext);
95373
95460
  const previous = (0, import_react$9.useRef)({ disabled });
95374
95461
  const resizeObserverConnected = (0, import_react$9.useRef)(false);
@@ -99651,7 +99738,7 @@ function getFontSizes(base) {
99651
99738
  }
99652
99739
  //#endregion
99653
99740
  //#region node_modules/antd/es/version/index.js
99654
- var version_default = "6.6.5";
99741
+ var version_default = "6.6.6";
99655
99742
  //#endregion
99656
99743
  //#region node_modules/antd/es/theme/themes/seed.js
99657
99744
  var defaultPresetColors = {
@@ -104770,6 +104857,7 @@ function useNoticeTimer(duration, onClose, onUpdate) {
104770
104857
  }
104771
104858
  const onPause = import_react$9.useCallback(() => {
104772
104859
  syncPassTime();
104860
+ lastRafTimeRef.current = null;
104773
104861
  setWalking(false);
104774
104862
  }, []);
104775
104863
  const onResume = import_react$9.useCallback(() => {
@@ -104887,17 +104975,21 @@ var Notification = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
104887
104975
  event.stopPropagation();
104888
104976
  onInternalClose();
104889
104977
  }
104978
+ const destroy = useEvent(() => {
104979
+ if (hovering) onInternalMouseLeave();
104980
+ });
104981
+ import_react$9.useEffect(() => destroy, [destroy]);
104890
104982
  const offsetRef = import_react$9.useRef(offset);
104891
104983
  if (offset !== void 0) offsetRef.current = offset;
104892
104984
  const notificationIndexRef = import_react$9.useRef(notificationIndex);
104893
104985
  if (notificationIndex !== void 0) notificationIndexRef.current = notificationIndex;
104894
104986
  const mergedOffset = offset ?? offsetRef.current;
104895
104987
  const mergedNotificationIndex = notificationIndex ?? notificationIndexRef.current ?? 0;
104896
- const titleNode = title !== void 0 && title !== null ? /*#__PURE__*/ import_react$9.createElement("div", {
104988
+ const titleNode = isNonNullable$1(title) ? /*#__PURE__*/ import_react$9.createElement("div", {
104897
104989
  className: clsx(`${noticePrefixCls}-title`, classNames?.title),
104898
104990
  style: styles?.title
104899
104991
  }, title) : null;
104900
- const descNode = description !== void 0 && description !== null ? /*#__PURE__*/ import_react$9.createElement("div", {
104992
+ const descNode = isNonNullable$1(description) ? /*#__PURE__*/ import_react$9.createElement("div", {
104901
104993
  className: clsx(`${noticePrefixCls}-description`, classNames?.description),
104902
104994
  style: styles?.description
104903
104995
  }, description) : null;
@@ -104909,14 +105001,14 @@ var Notification = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
104909
105001
  style: styles?.section
104910
105002
  }, titleNode, descNode);
104911
105003
  else contentNode = titleNode || descNode;
104912
- if (icon !== void 0 && icon !== null) contentNode = /*#__PURE__*/ import_react$9.createElement("div", {
105004
+ if (isNonNullable$1(icon)) contentNode = /*#__PURE__*/ import_react$9.createElement("div", {
104913
105005
  className: clsx(`${noticePrefixCls}-wrapper`, classNames?.wrapper),
104914
105006
  style: styles?.wrapper
104915
105007
  }, /*#__PURE__*/ import_react$9.createElement("div", {
104916
105008
  className: clsx(`${noticePrefixCls}-icon`, classNames?.icon),
104917
105009
  style: styles?.icon
104918
105010
  }, icon), contentNode);
104919
- const actionsNode = actions ? /*#__PURE__*/ import_react$9.createElement("div", {
105011
+ const actionsNode = isReactRenderable(actions) ? /*#__PURE__*/ import_react$9.createElement("div", {
104920
105012
  className: clsx(`${noticePrefixCls}-actions`, classNames?.actions),
104921
105013
  style: styles?.actions
104922
105014
  }, actions) : null;
@@ -105099,12 +105191,6 @@ var NotificationList = (props) => {
105099
105191
  [`${prefixCls}-stack-expanded`]: expanded,
105100
105192
  [`${listPrefixCls}-hovered`]: listHovering
105101
105193
  }),
105102
- onMouseEnter: () => {
105103
- setListHovering(true);
105104
- },
105105
- onMouseLeave: () => {
105106
- setListHovering(false);
105107
- },
105108
105194
  style: {
105109
105195
  ...styles?.list,
105110
105196
  ...style
@@ -105116,7 +105202,13 @@ var NotificationList = (props) => {
105116
105202
  topNoticeWidth,
105117
105203
  className: classNames?.listContent,
105118
105204
  style: styles?.listContent,
105119
- ref: contentRef
105205
+ ref: contentRef,
105206
+ onMouseEnter: () => {
105207
+ setListHovering(true);
105208
+ },
105209
+ onMouseLeave: () => {
105210
+ setListHovering(false);
105211
+ }
105120
105212
  }, /*#__PURE__*/ import_react$9.createElement(CSSMotionList_default, _extends$137({
105121
105213
  component: false,
105122
105214
  keys,
@@ -105952,13 +106044,16 @@ var genPlacementStyle = (token, config) => {
105952
106044
  opacity: 1,
105953
106045
  transform: baseTransform
105954
106046
  },
105955
- [`${noticeMotionCls}-leave-start`]: {
105956
- opacity: 1,
105957
- transform: baseTransform
105958
- },
105959
- [`${noticeMotionCls}-leave-active`]: {
105960
- opacity: 0,
105961
- transform: enterTransform
106047
+ [`${noticeMotionCls}-leave`]: {
106048
+ pointerEvents: "none",
106049
+ "&-start": {
106050
+ opacity: 1,
106051
+ transform: baseTransform
106052
+ },
106053
+ "&-active": {
106054
+ opacity: 0,
106055
+ transform: enterTransform
106056
+ }
105962
106057
  },
105963
106058
  [`&${componentCls}-stack:not(${componentCls}-stack-expanded)`]: {
105964
106059
  [noticeCls]: { clipPath: getPlacementStackClipPath(token, vertical) },
@@ -106026,6 +106121,7 @@ var genNotificationListContentStyle = (token) => {
106026
106121
  width: "100%",
106027
106122
  willChange: "height, transform",
106028
106123
  transition: "none",
106124
+ pointerEvents: "auto",
106029
106125
  [`&${listContentCls}-decrease`]: { transition: `height calc(${motionDurationSlow} * 2) ${motionEaseInOut} ${motionDurationMid}` }
106030
106126
  },
106031
106127
  [`${componentCls}-fade`]: {
@@ -106061,7 +106157,6 @@ var genNotificationListStyle = (token, config) => {
106061
106157
  overflowY: "auto",
106062
106158
  overscrollBehavior: "contain",
106063
106159
  scrollbarWidth: "none",
106064
- msOverflowStyle: "none",
106065
106160
  pointerEvents: "none",
106066
106161
  "&::-webkit-scrollbar": {
106067
106162
  display: "none",
@@ -109424,7 +109519,7 @@ var Button = /* @__PURE__ */ import_react$9.forwardRef((props, ref) => {
109424
109519
  */
109425
109520
  let iconNode;
109426
109521
  if (icon && !innerLoading) iconNode = iconWrapperElement(icon);
109427
- else if (loading && mergedLoadingIcon) iconNode = iconWrapperElement(mergedLoadingIcon);
109522
+ else if (innerLoading && mergedLoadingIcon) iconNode = iconWrapperElement(mergedLoadingIcon);
109428
109523
  else iconNode = defaultLoadingIconElement;
109429
109524
  const contentNode = isReactRenderable(children) ? spaceChildren(children, needInserted && mergedInsertSpace, mergedStyles.content, mergedClassNames.content) : null;
109430
109525
  if (linkButtonRestProps.href !== void 0) return /*#__PURE__*/ import_react$9.createElement("a", {
@@ -117987,7 +118082,7 @@ var genItemStyle = (token) => {
117987
118082
  minHeight: optionHeight,
117988
118083
  padding: optionPadding,
117989
118084
  color: token.colorText,
117990
- fontWeight: "normal",
118085
+ fontWeight: 400,
117991
118086
  fontSize: optionFontSize,
117992
118087
  lineHeight: optionLineHeight,
117993
118088
  boxSizing: "border-box"
@@ -118187,7 +118282,7 @@ var genSelectInputMultipleStyle = (token) => {
118187
118282
  display: "inline-flex",
118188
118283
  alignItems: "center",
118189
118284
  color: colorIcon,
118190
- fontWeight: "bold",
118285
+ fontWeight: 700,
118191
118286
  fontSize: 10,
118192
118287
  lineHeight: "inherit",
118193
118288
  cursor: "pointer",
@@ -118543,7 +118638,7 @@ var genBaseStyle$9 = (token) => {
118543
118638
  ...resetComponent(token),
118544
118639
  [`${componentCls}-selection-item`]: {
118545
118640
  flex: 1,
118546
- fontWeight: "normal",
118641
+ fontWeight: 400,
118547
118642
  position: "relative",
118548
118643
  userSelect: "none",
118549
118644
  ...textEllipsis,
@@ -121161,7 +121256,7 @@ var genBaseStyle$8 = (token) => {
121161
121256
  value: 0
121162
121257
  },
121163
121258
  zIndex: zIndexPopup,
121164
- fontWeight: "normal",
121259
+ fontWeight: 400,
121165
121260
  whiteSpace: "normal",
121166
121261
  textAlign: "start",
121167
121262
  cursor: "auto",
@@ -126695,7 +126790,7 @@ var genBaseStyle$7 = (token) => {
126695
126790
  margin: 0,
126696
126791
  padding: `${unit$1(paddingBlock)} ${unit$1(controlPaddingHorizontal)}`,
126697
126792
  color: token.colorText,
126698
- fontWeight: "normal",
126793
+ fontWeight: 400,
126699
126794
  fontSize,
126700
126795
  lineHeight: token.lineHeight,
126701
126796
  cursor: "pointer",
@@ -126914,10 +127009,10 @@ Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
126914
127009
  var button_default = Button;
126915
127010
  //#endregion
126916
127011
  //#region ../../node_modules/dayjs/dayjs.min.js
126917
- var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127012
+ var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module, this$10) => {
126918
127013
  (function(t, e) {
126919
127014
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
126920
- })(exports, (function() {
127015
+ })(this$10, (function() {
126921
127016
  "use strict";
126922
127017
  var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
126923
127018
  name: "en",
@@ -127212,10 +127307,10 @@ var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127212
127307
  }));
127213
127308
  //#endregion
127214
127309
  //#region ../../node_modules/dayjs/plugin/weekday.js
127215
- var require_weekday = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127310
+ var require_weekday = /* @__PURE__ */ __commonJSMin(((exports, module, this$9) => {
127216
127311
  (function(e, t) {
127217
127312
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekday = t();
127218
- })(exports, (function() {
127313
+ })(this$9, (function() {
127219
127314
  "use strict";
127220
127315
  return function(e, t) {
127221
127316
  t.prototype.weekday = function(e) {
@@ -127227,10 +127322,10 @@ var require_weekday = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127227
127322
  }));
127228
127323
  //#endregion
127229
127324
  //#region ../../node_modules/dayjs/plugin/localeData.js
127230
- var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127325
+ var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module, this$8) => {
127231
127326
  (function(n, e) {
127232
127327
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (n = "undefined" != typeof globalThis ? globalThis : n || self).dayjs_plugin_localeData = e();
127233
- })(exports, (function() {
127328
+ })(this$8, (function() {
127234
127329
  "use strict";
127235
127330
  return function(n, e, t) {
127236
127331
  var r = e.prototype, o = function(n) {
@@ -127325,10 +127420,10 @@ var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127325
127420
  }));
127326
127421
  //#endregion
127327
127422
  //#region ../../node_modules/dayjs/plugin/weekOfYear.js
127328
- var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127423
+ var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module, this$7) => {
127329
127424
  (function(e, t) {
127330
127425
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekOfYear = t();
127331
- })(exports, (function() {
127426
+ })(this$7, (function() {
127332
127427
  "use strict";
127333
127428
  var e = "week", t = "year";
127334
127429
  return function(i, n, r) {
@@ -127350,10 +127445,10 @@ var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127350
127445
  }));
127351
127446
  //#endregion
127352
127447
  //#region ../../node_modules/dayjs/plugin/weekYear.js
127353
- var require_weekYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127448
+ var require_weekYear = /* @__PURE__ */ __commonJSMin(((exports, module, this$6) => {
127354
127449
  (function(e, t) {
127355
127450
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekYear = t();
127356
- })(exports, (function() {
127451
+ })(this$6, (function() {
127357
127452
  "use strict";
127358
127453
  return function(e, t) {
127359
127454
  t.prototype.weekYear = function() {
@@ -127365,10 +127460,10 @@ var require_weekYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127365
127460
  }));
127366
127461
  //#endregion
127367
127462
  //#region ../../node_modules/dayjs/plugin/advancedFormat.js
127368
- var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127463
+ var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) => {
127369
127464
  (function(e, t) {
127370
127465
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
127371
- })(exports, (function() {
127466
+ })(this$5, (function() {
127372
127467
  "use strict";
127373
127468
  return function(e, t) {
127374
127469
  var r = t.prototype, n = r.format;
@@ -127402,10 +127497,10 @@ var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) =>
127402
127497
  }));
127403
127498
  //#endregion
127404
127499
  //#region ../../node_modules/dayjs/plugin/customParseFormat.js
127405
- var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127500
+ var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module, this$4) => {
127406
127501
  (function(e, t) {
127407
127502
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
127408
- })(exports, (function() {
127503
+ })(this$4, (function() {
127409
127504
  "use strict";
127410
127505
  var e = {
127411
127506
  LTS: "h:mm:ss A",
@@ -134241,7 +134336,7 @@ var genInputGroupStyle = (token) => {
134241
134336
  position: "relative",
134242
134337
  padding: `0 ${unit$1(token.paddingInline)}`,
134243
134338
  color: token.colorText,
134244
- fontWeight: "normal",
134339
+ fontWeight: 400,
134245
134340
  fontSize: token.inputFontSize,
134246
134341
  textAlign: "center",
134247
134342
  borderRadius: token.borderRadius,
@@ -134620,7 +134715,7 @@ var genOverflowStyle = (token) => {
134620
134715
  display: "inline-flex",
134621
134716
  alignItems: "center",
134622
134717
  color: colorIcon,
134623
- fontWeight: "bold",
134718
+ fontWeight: 700,
134624
134719
  fontSize: 10,
134625
134720
  lineHeight: "inherit",
134626
134721
  cursor: "pointer",
@@ -134886,7 +134981,7 @@ var genPanelStyle = (token) => {
134886
134981
  "th, td": {
134887
134982
  position: "relative",
134888
134983
  minWidth: cellHeight,
134889
- fontWeight: "normal"
134984
+ fontWeight: 400
134890
134985
  },
134891
134986
  th: {
134892
134987
  height: token.calc(cellHeight).add(token.calc(pickerCellPaddingVertical).mul(2)).equal(),
@@ -136862,7 +136957,7 @@ var genDropdownStyle = (token) => {
136862
136957
  margin: 0,
136863
136958
  padding: `${unit$1(token.paddingXXS)} ${unit$1(token.paddingSM)}`,
136864
136959
  color: token.colorText,
136865
- fontWeight: "normal",
136960
+ fontWeight: 400,
136866
136961
  fontSize: token.fontSize,
136867
136962
  lineHeight: token.lineHeight,
136868
136963
  cursor: "pointer",
@@ -137537,7 +137632,7 @@ var genCardHeadStyle = (token) => {
137537
137632
  clear: "both",
137538
137633
  marginBottom: tabsMarginBottom,
137539
137634
  color: token.colorText,
137540
- fontWeight: "normal",
137635
+ fontWeight: 400,
137541
137636
  fontSize: token.fontSize,
137542
137637
  "&-bar": { borderBottom: `${unit$1(token.lineWidth)} ${token.lineType} ${token.colorBorderSecondary}` }
137543
137638
  }
@@ -137657,7 +137752,7 @@ var genCardStyle = (token) => {
137657
137752
  [`${componentCls}-extra`]: {
137658
137753
  marginInlineStart: "auto",
137659
137754
  color: extraColor,
137660
- fontWeight: "normal",
137755
+ fontWeight: 400,
137661
137756
  fontSize: token.fontSize
137662
137757
  },
137663
137758
  [`${componentCls}-body`]: {
@@ -137811,7 +137906,7 @@ var Card$1 = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
137811
137906
  const hasActiveTabKey = activeTabKey !== void 0;
137812
137907
  const extraProps = {
137813
137908
  ...tabProps,
137814
- [hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey,
137909
+ [hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey ?? tabProps.defaultActiveKey,
137815
137910
  tabBarExtraContent
137816
137911
  };
137817
137912
  let head;
@@ -140249,7 +140344,7 @@ var CheckboxGroup = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
140249
140344
  const rootCls = useCSSVarCls(prefixCls);
140250
140345
  const [hashId, cssVarCls] = style_default$20(prefixCls, rootCls);
140251
140346
  const domProps = omit(restProps, ["value", "disabled"]);
140252
- const childrenNode = Array.isArray(memoizedOptions) && memoizedOptions.length > 0 ? memoizedOptions.map((option) => /*#__PURE__*/ import_react$9.createElement(Checkbox$1, {
140347
+ const childrenNode = memoizedOptions.length > 0 ? memoizedOptions.map((option) => /*#__PURE__*/ import_react$9.createElement(Checkbox$1, {
140253
140348
  prefixCls,
140254
140349
  key: option.value.toString(),
140255
140350
  disabled: "disabled" in option ? option.disabled : restProps.disabled,
@@ -140528,7 +140623,7 @@ var genSharedDividerStyle = (token) => {
140528
140623
  },
140529
140624
  [`&-plain${componentCls}-with-text`]: {
140530
140625
  color: token.colorText,
140531
- fontWeight: "normal",
140626
+ fontWeight: 400,
140532
140627
  fontSize: token.fontSize
140533
140628
  },
140534
140629
  [`&-horizontal${componentCls}-with-text-start${componentCls}-no-default-orientation-margin-start`]: {
@@ -140571,7 +140666,7 @@ var Divider = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
140571
140666
  const railCls = `${prefixCls}-rail`;
140572
140667
  const [hashId, cssVarCls] = style_default$19(prefixCls);
140573
140668
  const sizeFullName = useSize(customSize);
140574
- const hasChildren = !!children;
140669
+ const hasChildren = isReactRenderable(children);
140575
140670
  const validTitlePlacement = titlePlacementList.includes(orientation || "");
140576
140671
  const mergedTitlePlacement = import_react$9.useMemo(() => {
140577
140672
  const placement = titlePlacement ?? (validTitlePlacement ? orientation : "center");
@@ -140610,8 +140705,8 @@ var Divider = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
140610
140705
  [`${prefixCls}-no-default-orientation-margin-end`]: hasMarginEnd,
140611
140706
  [`${prefixCls}-md`]: sizeFullName === "medium" || sizeFullName === "middle",
140612
140707
  [`${prefixCls}-sm`]: sizeFullName === "small",
140613
- [railCls]: !children,
140614
- [mergedClassNames.rail]: mergedClassNames.rail && !children
140708
+ [railCls]: !hasChildren,
140709
+ [mergedClassNames.rail]: mergedClassNames.rail && !hasChildren
140615
140710
  }, className, rootClassName, mergedClassNames.root);
140616
140711
  const memoizedPlacementMargin = import_react$9.useMemo(() => {
140617
140712
  if (isNumber$2(orientationMargin)) return orientationMargin;
@@ -140629,12 +140724,12 @@ var Divider = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
140629
140724
  className: classString,
140630
140725
  style: {
140631
140726
  ...mergedStyles.root,
140632
- ...children ? {} : mergedStyles.rail,
140727
+ ...hasChildren ? {} : mergedStyles.rail,
140633
140728
  ...style
140634
140729
  },
140635
140730
  ...restProps,
140636
140731
  role: "separator"
140637
- }, children && !mergedVertical && /*#__PURE__*/ import_react$9.createElement(import_react$9.Fragment, null, /*#__PURE__*/ import_react$9.createElement("div", {
140732
+ }, hasChildren && !mergedVertical && /*#__PURE__*/ import_react$9.createElement(import_react$9.Fragment, null, /*#__PURE__*/ import_react$9.createElement("div", {
140638
140733
  className: clsx(railCls, `${railCls}-start`, mergedClassNames.rail),
140639
140734
  style: mergedStyles.rail
140640
140735
  }), /*#__PURE__*/ import_react$9.createElement("span", {
@@ -142354,7 +142449,7 @@ var genInputNumberStyles = (token) => {
142354
142449
  ...resetIcon(),
142355
142450
  userSelect: "none",
142356
142451
  overflow: "hidden",
142357
- fontWeight: "bold",
142452
+ fontWeight: 700,
142358
142453
  lineHeight: 0,
142359
142454
  textAlign: "center",
142360
142455
  cursor: "pointer",
@@ -146387,7 +146482,7 @@ var generateRangePicker = (generateConfig) => {
146387
146482
  suffixIcon: suffixIcon === void 0 ? contextSuffixIcon : suffixIcon
146388
146483
  });
146389
146484
  (0, import_react$9.useImperativeHandle)(ref, () => innerRef.current);
146390
- const [contextLocale] = useLocale$1("Calendar", locale$1);
146485
+ const [contextLocale] = useLocale$1("DatePicker", locale$1);
146391
146486
  const locale = merge$1(contextLocale, props.locale || {});
146392
146487
  const [zIndex] = useZIndex("DatePicker", mergedStyles?.popup?.root?.zIndex);
146393
146488
  return /*#__PURE__*/ import_react$9.createElement(ContextIsolator, { space: true }, /*#__PURE__*/ import_react$9.createElement(RefRangePicker, {
@@ -146959,7 +147054,7 @@ var DrawerPanel = (props) => {
146959
147054
  }, extra), closablePlacement === "end" && mergedCloseButton);
146960
147055
  };
146961
147056
  const renderFooter = () => {
146962
- if (!footer) return null;
147057
+ if (!isReactRenderable(footer)) return null;
146963
147058
  return /*#__PURE__*/ import_react$9.createElement("div", {
146964
147059
  className: clsx(`${prefixCls}-footer`, mergedClassNames.footer),
146965
147060
  style: {
@@ -150975,14 +151070,16 @@ var OTP = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
150975
151070
  nativeElement: containerRef.current
150976
151071
  }));
150977
151072
  const internalFormatter = (txt) => formatter ? formatter(txt) : txt;
150978
- const [valueCells, setValueCells] = import_react$9.useState(() => strToArr(internalFormatter(defaultValue || "")));
151073
+ const [getValueCells, setValueCells] = useSyncState$2(strToArr(internalFormatter(defaultValue || "")));
151074
+ const valueCells = getValueCells();
150979
151075
  import_react$9.useEffect(() => {
150980
151076
  if (value !== void 0) setValueCells(strToArr(value));
150981
151077
  }, [value]);
150982
151078
  const triggerValueCellsChange = useEvent((nextValueCells) => {
151079
+ const prevCells = getValueCells();
150983
151080
  setValueCells(nextValueCells);
150984
151081
  if (onInput) onInput(nextValueCells);
150985
- if (onChange && nextValueCells.length === length && nextValueCells.every((c) => c) && nextValueCells.some((c, index) => valueCells[index] !== c)) onChange(nextValueCells.join(""));
151082
+ if (onChange && nextValueCells.length === length && nextValueCells.every((c) => c) && nextValueCells.some((c, index) => prevCells[index] !== c)) onChange(nextValueCells.join(""));
150986
151083
  });
150987
151084
  const patchValue = useEvent((index, txt) => {
150988
151085
  let nextCells = _toConsumableArray$14(valueCells);
@@ -151003,14 +151100,14 @@ var OTP = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
151003
151100
  const onInputChange = (index, txt) => {
151004
151101
  const nextCells = patchValue(index, txt);
151005
151102
  const nextIndex = Math.min(index + txt.length, length - 1);
151006
- if (nextIndex !== index && nextCells[index] !== void 0) inputsRef.current[nextIndex]?.focus();
151007
151103
  triggerValueCellsChange(nextCells);
151104
+ if (nextIndex !== index && nextCells[index] !== void 0) inputsRef.current[nextIndex]?.focus();
151008
151105
  };
151009
151106
  const onInputActiveChange = (nextIndex) => {
151010
151107
  inputsRef.current[nextIndex]?.focus();
151011
151108
  };
151012
151109
  const onInputFocus = (event, index) => {
151013
- for (let i = 0; i < index; i += 1) if (!inputsRef.current[i]?.input?.value) {
151110
+ for (let i = 0; i < index; i += 1) if (!getValueCells()[i]) {
151014
151111
  inputsRef.current[i]?.focus();
151015
151112
  break;
151016
151113
  }
@@ -153357,7 +153454,7 @@ var genBaseStyle$5 = (token) => {
153357
153454
  [`${componentCls}-title`]: {
153358
153455
  fontWeight: fontWeightStrong,
153359
153456
  color: colorTextHeading,
153360
- "&:only-child": { fontWeight: "normal" }
153457
+ "&:only-child": { fontWeight: 400 }
153361
153458
  },
153362
153459
  [`${componentCls}-description`]: {
153363
153460
  marginTop: marginXXS,
@@ -154111,7 +154208,7 @@ var Line = (props) => {
154111
154208
  const { align: infoAlign, type: infoPosition } = percentPosition;
154112
154209
  const mergedRailColor = railColor ?? trailColor;
154113
154210
  const borderRadius = strokeLinecap === "square" || strokeLinecap === "butt" ? 0 : void 0;
154114
- const [width, height] = getSize$1(size ?? [-1, strokeWidth || (size === "small" ? 6 : 8)], "line", { strokeWidth });
154211
+ const [width, height] = getSize$1(size ?? [-1, strokeWidth || 8], "line", { strokeWidth });
154115
154212
  const railStyle = {
154116
154213
  backgroundColor: mergedRailColor || void 0,
154117
154214
  borderRadius,
@@ -158533,6 +158630,10 @@ var useSelection = (config, rowSelection) => {
158533
158630
  import_react$9.useEffect(() => {
158534
158631
  updatePreserveRecordsCache(mergedSelectedKeyList);
158535
158632
  }, [mergedSelectedKeyList, updatePreserveRecordsCache]);
158633
+ const getSelectedRecord = (0, import_react$9.useCallback)((key) => {
158634
+ const record = getRecordByKey(key);
158635
+ return !record && preserveSelectedRowKeys ? preserveRecordsRef.current.get(key) : record;
158636
+ }, [getRecordByKey, preserveSelectedRowKeys]);
158536
158637
  const flattedData = (0, import_react$9.useMemo)(() => flattenData(childrenColumnName, pageData), [childrenColumnName, pageData]);
158537
158638
  const { keyEntities } = (0, import_react$9.useMemo)(() => {
158538
158639
  if (checkStrictly) return { keyEntities: null };
@@ -158620,13 +158721,14 @@ var useSelection = (config, rowSelection) => {
158620
158721
  ]);
158621
158722
  const triggerSingleSelection = (0, import_react$9.useCallback)((key, selected, keys, event) => {
158622
158723
  if (onSelect) {
158623
- const rows = keys.map(getRecordByKey);
158724
+ const rows = keys.map(getSelectedRecord);
158624
158725
  onSelect(getRecordByKey(key), selected, rows, event);
158625
158726
  }
158626
158727
  setSelectedKeys(keys, "single");
158627
158728
  }, [
158628
158729
  onSelect,
158629
158730
  getRecordByKey,
158731
+ getSelectedRecord,
158630
158732
  setSelectedKeys
158631
158733
  ]);
158632
158734
  const mergedSelections = (0, import_react$9.useMemo)(() => {
@@ -158641,7 +158743,7 @@ var useSelection = (config, rowSelection) => {
158641
158743
  key: "all",
158642
158744
  text: tableLocale.selectionAll,
158643
158745
  onSelect() {
158644
- setSelectedKeys(data.reduce((keys, record, index) => {
158746
+ setSelectedKeys(flattenData(childrenColumnName, data).reduce((keys, record, index) => {
158645
158747
  const key = getRowKey(record, index);
158646
158748
  if (!isCheckboxDisabled(record) || derivedSelectedKeySet.has(key)) keys.push(key);
158647
158749
  return keys;
@@ -158697,6 +158799,7 @@ var useSelection = (config, rowSelection) => {
158697
158799
  isCheckboxDisabled,
158698
158800
  derivedSelectedKeySet,
158699
158801
  data,
158802
+ childrenColumnName,
158700
158803
  pageData,
158701
158804
  getRowKey,
158702
158805
  onSelectInvert,
@@ -158726,7 +158829,7 @@ var useSelection = (config, rowSelection) => {
158726
158829
  }
158727
158830
  });
158728
158831
  const keys = Array.from(keySet);
158729
- onSelectAll?.(!checkedCurrentAll, keys.map(getRecordByKey), changeKeys.map(getRecordByKey));
158832
+ onSelectAll?.(!checkedCurrentAll, keys.map(getSelectedRecord), changeKeys.map(getRecordByKey));
158730
158833
  setSelectedKeys(keys, "all");
158731
158834
  updatePrevSelectedIndex(null);
158732
158835
  };
@@ -158833,7 +158936,7 @@ var useSelection = (config, rowSelection) => {
158833
158936
  if (shiftKey && checkStrictly && isMultiple) {
158834
158937
  const changedKeys = multipleSelect(currentSelectedIndex, recordKeys, keySet);
158835
158938
  const keys = Array.from(keySet);
158836
- onSelectMultiple?.(!checked, keys.map(getRecordByKey), changedKeys.map(getRecordByKey));
158939
+ onSelectMultiple?.(!checked, keys.map(getSelectedRecord), changedKeys.map(getRecordByKey));
158837
158940
  setSelectedKeys(keys, "multiple");
158838
158941
  } else {
158839
158942
  const originCheckedKeys = derivedSelectedKeys;
@@ -159758,7 +159861,7 @@ function calcRangeKeys({ treeData, expandedKeys, startKey, endKey, fieldNames })
159758
159861
  function matchKey(key) {
159759
159862
  return key === startKey || key === endKey;
159760
159863
  }
159761
- traverseNodesKey(treeData, (key) => {
159864
+ traverseNodesKey(treeData, (key, node) => {
159762
159865
  if (record === RECORD_END) return false;
159763
159866
  if (matchKey(key)) {
159764
159867
  keys.push(key);
@@ -159767,7 +159870,7 @@ function calcRangeKeys({ treeData, expandedKeys, startKey, endKey, fieldNames })
159767
159870
  record = RECORD_END;
159768
159871
  return false;
159769
159872
  }
159770
- } else if (record === RECORD_START) keys.push(key);
159873
+ } else if (record === RECORD_START && !node.disabled && node.selectable !== false) keys.push(key);
159771
159874
  return expandedKeys.includes(key);
159772
159875
  }, fillFieldNames$1(fieldNames));
159773
159876
  return keys;
@@ -159803,7 +159906,7 @@ var DirectoryTree = /*#__PURE__*/ import_react$9.forwardRef((oriProps, ref) => {
159803
159906
  const { keyEntities } = convertDataToEntities(getTreeData(props), { fieldNames: props.fieldNames });
159804
159907
  let initExpandedKeys;
159805
159908
  const mergedExpandedKeys = props.expandedKeys || defaultExpandedKeys || [];
159806
- if (defaultExpandAll) initExpandedKeys = Object.keys(keyEntities);
159909
+ if (defaultExpandAll) initExpandedKeys = Object.values(keyEntities).map(({ key }) => key);
159807
159910
  else if (defaultExpandParent) initExpandedKeys = conductExpandParent(mergedExpandedKeys, keyEntities);
159808
159911
  else initExpandedKeys = mergedExpandedKeys;
159809
159912
  return initExpandedKeys;
@@ -160179,7 +160282,8 @@ var FilterDropdown = (props) => {
160179
160282
  open: mergedVisible,
160180
160283
  onOpenChange: onDropdownOpenChange,
160181
160284
  popupRender: () => {
160182
- if (isFunction$4(filterDropdownProps?.dropdownRender)) return filterDropdownProps.dropdownRender(dropdownContent);
160285
+ const customRender = filterDropdownProps?.popupRender ?? filterDropdownProps?.dropdownRender;
160286
+ if (isFunction$4(customRender)) return customRender(dropdownContent);
160183
160287
  return dropdownContent;
160184
160288
  }
160185
160289
  });
@@ -160341,7 +160445,7 @@ var useFilter = (props) => {
160341
160445
  var useLazyKVMap = (data, childrenColumnName, getRowKey) => {
160342
160446
  const mapCacheRef = import_react$9.useRef({});
160343
160447
  function getRecordByKey(key) {
160344
- if (!mapCacheRef.current || mapCacheRef.current.data !== data || mapCacheRef.current.childrenColumnName !== childrenColumnName || mapCacheRef.current.getRowKey !== getRowKey) {
160448
+ if (mapCacheRef.current.data !== data || mapCacheRef.current.childrenColumnName !== childrenColumnName || mapCacheRef.current.getRowKey !== getRowKey) {
160345
160449
  const kvMap = /* @__PURE__ */ new Map();
160346
160450
  function dig(records) {
160347
160451
  records.forEach((record, index) => {
@@ -161184,7 +161288,7 @@ var genSelectionStyle = (token) => {
161184
161288
  textAlign: "center",
161185
161289
  [`${antCls}-radio-wrapper`]: { marginInlineEnd: 0 }
161186
161290
  },
161187
- [`table tr th${componentCls}-selection-column${componentCls}-cell-fix-left`]: { zIndex: calc(token.zIndexTableFixed).add(1).equal({ unit: false }) },
161291
+ [`table tr th${componentCls}-selection-column${componentCls}-cell-fix-start`]: { zIndex: `calc(var(--z-offset, 0) + ${token.zIndexTableFixed})` },
161188
161292
  [`table tr th${componentCls}-selection-column::after`]: { backgroundColor: "transparent !important" },
161189
161293
  [`${componentCls}-selection`]: {
161190
161294
  position: "relative",
@@ -161753,7 +161857,7 @@ var InternalTable = (props, ref) => {
161753
161857
  if (changeInfo.pagination?.current) changeInfo.pagination.current = 1;
161754
161858
  if (pagination) pagination.onChange?.(1, changeInfo.pagination?.pageSize);
161755
161859
  }
161756
- if (scroll && scroll.scrollToFirstRowOnChange !== false && internalRef.body.current) scrollTo(0, { getContainer: () => internalRef.body.current });
161860
+ if (mergedScroll && mergedScroll.scrollToFirstRowOnChange !== false && internalRef.body.current) scrollTo(0, { getContainer: () => internalRef.body.current });
161757
161861
  onChange?.(changeInfo.pagination, changeInfo.filters, changeInfo.sorter, {
161758
161862
  currentDataSource: getFilterData(getSortData(rawData, changeInfo.sorterStates, childrenColumnName), changeInfo.filterStates, childrenColumnName),
161759
161863
  action
@@ -163088,7 +163192,7 @@ var InternalTreeSelect = (props, ref) => {
163088
163192
  const mergedAllowClear = allowClear === true ? { clearIcon } : allowClear;
163089
163193
  let mergedNotFound;
163090
163194
  if (notFoundContent !== void 0) mergedNotFound = notFoundContent;
163091
- else mergedNotFound = renderEmpty?.("Select") || /*#__PURE__*/ import_react$9.createElement(DefaultRenderEmpty, { componentName: "Select" });
163195
+ else mergedNotFound = renderEmpty?.("TreeSelect") || /*#__PURE__*/ import_react$9.createElement(DefaultRenderEmpty, { componentName: "TreeSelect" });
163092
163196
  const selectProps = omit(restProps, [
163093
163197
  "suffixIcon",
163094
163198
  "removeIcon",
@@ -163409,7 +163513,7 @@ var getEditableStyles = (token) => {
163409
163513
  insetInlineEnd: token.calc(token.marginXS).add(2).equal(),
163410
163514
  insetBlockEnd: token.marginXS,
163411
163515
  color: token.colorIcon,
163412
- fontWeight: "normal",
163516
+ fontWeight: 400,
163413
163517
  fontSize: token.fontSize,
163414
163518
  fontStyle: "normal",
163415
163519
  pointerEvents: "none"
@@ -164032,7 +164136,7 @@ var DECORATION_PROPS = [
164032
164136
  "italic"
164033
164137
  ];
164034
164138
  var Base = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
164035
- const { prefixCls: customizePrefixCls, className, style, classNames, styles, direction: typographyDirection, type, disabled, children, ellipsis, editable, copyable, actions, component, title, onMouseEnter, onMouseLeave, ...restProps } = props;
164139
+ const { prefixCls: customizePrefixCls, className, style, classNames, styles, direction: typographyDirection, type, disabled, children, ellipsis, editable, copyable, actions, component, title, onClick, onMouseEnter, onMouseLeave, ...restProps } = props;
164036
164140
  const [textLocale] = useLocale$1("Text");
164037
164141
  const typographyRef = import_react$9.useRef(null);
164038
164142
  const editIconRef = import_react$9.useRef(null);
@@ -164280,7 +164384,10 @@ var Base = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
164280
164384
  component,
164281
164385
  ref: composeRef(resizeRef, typographyRef, ref),
164282
164386
  direction,
164283
- onClick: triggerType.includes("text") ? onEditClick : void 0,
164387
+ onClick: (e) => {
164388
+ if (triggerType.includes("text")) onEditClick(e);
164389
+ onClick?.(e);
164390
+ },
164284
164391
  "aria-label": topAriaLabel?.toString(),
164285
164392
  title,
164286
164393
  ...textProps
@@ -165492,7 +165599,10 @@ var ListItem = /*#__PURE__*/ import_react$9.forwardRef(({ prefixCls, className,
165492
165599
  title: file.name,
165493
165600
  ...linkProps,
165494
165601
  href: file.url,
165495
- onClick: (e) => onPreview(file, e)
165602
+ onClick: (e) => {
165603
+ linkProps?.onClick?.(e);
165604
+ if (!e.defaultPrevented) onPreview(file, e);
165605
+ }
165496
165606
  }, file.name, extra) : /*#__PURE__*/ import_react$9.createElement("span", {
165497
165607
  key: "view",
165498
165608
  className: listItemNameClass,
@@ -165991,7 +166101,7 @@ Upload.LIST_IGNORE = LIST_IGNORE;
165991
166101
  //#endregion
165992
166102
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
165993
166103
  /**
165994
- * @license lucide-react v1.48.0 - ISC
166104
+ * @license lucide-react v1.59.0 - ISC
165995
166105
  *
165996
166106
  * This source code is licensed under the ISC license.
165997
166107
  * See the LICENSE file in the root directory of this source tree.
@@ -166000,7 +166110,7 @@ var toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toL
166000
166110
  //#endregion
166001
166111
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
166002
166112
  /**
166003
- * @license lucide-react v1.48.0 - ISC
166113
+ * @license lucide-react v1.59.0 - ISC
166004
166114
  *
166005
166115
  * This source code is licensed under the ISC license.
166006
166116
  * See the LICENSE file in the root directory of this source tree.
@@ -166017,7 +166127,7 @@ function toLucideIconData(iconName, iconNode, aliases = []) {
166017
166127
  //#endregion
166018
166128
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
166019
166129
  /**
166020
- * @license lucide-react v1.48.0 - ISC
166130
+ * @license lucide-react v1.59.0 - ISC
166021
166131
  *
166022
166132
  * This source code is licensed under the ISC license.
166023
166133
  * See the LICENSE file in the root directory of this source tree.
@@ -166039,7 +166149,7 @@ var toCamelCase = (string) => {
166039
166149
  //#endregion
166040
166150
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
166041
166151
  /**
166042
- * @license lucide-react v1.48.0 - ISC
166152
+ * @license lucide-react v1.59.0 - ISC
166043
166153
  *
166044
166154
  * This source code is licensed under the ISC license.
166045
166155
  * See the LICENSE file in the root directory of this source tree.
@@ -166051,7 +166161,7 @@ var toPascalCase = (string) => {
166051
166161
  //#endregion
166052
166162
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
166053
166163
  /**
166054
- * @license lucide-react v1.48.0 - ISC
166164
+ * @license lucide-react v1.59.0 - ISC
166055
166165
  *
166056
166166
  * This source code is licensed under the ISC license.
166057
166167
  * See the LICENSE file in the root directory of this source tree.
@@ -166062,7 +166172,7 @@ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
166062
166172
  //#endregion
166063
166173
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
166064
166174
  /**
166065
- * @license lucide-react v1.48.0 - ISC
166175
+ * @license lucide-react v1.59.0 - ISC
166066
166176
  *
166067
166177
  * This source code is licensed under the ISC license.
166068
166178
  * See the LICENSE file in the root directory of this source tree.
@@ -166081,7 +166191,7 @@ var defaultAttributes$1 = {
166081
166191
  //#endregion
166082
166192
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
166083
166193
  /**
166084
- * @license lucide-react v1.48.0 - ISC
166194
+ * @license lucide-react v1.59.0 - ISC
166085
166195
  *
166086
166196
  * This source code is licensed under the ISC license.
166087
166197
  * See the LICENSE file in the root directory of this source tree.
@@ -166136,7 +166246,7 @@ function buildLucideIconNode(icon, params = {}) {
166136
166246
  //#endregion
166137
166247
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
166138
166248
  /**
166139
- * @license lucide-react v1.48.0 - ISC
166249
+ * @license lucide-react v1.59.0 - ISC
166140
166250
  *
166141
166251
  * This source code is licensed under the ISC license.
166142
166252
  * See the LICENSE file in the root directory of this source tree.
@@ -166157,7 +166267,7 @@ function buildLucideIconForReact(icon, params = {}) {
166157
166267
  //#endregion
166158
166268
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
166159
166269
  /**
166160
- * @license lucide-react v1.48.0 - ISC
166270
+ * @license lucide-react v1.59.0 - ISC
166161
166271
  *
166162
166272
  * This source code is licensed under the ISC license.
166163
166273
  * See the LICENSE file in the root directory of this source tree.
@@ -166169,7 +166279,7 @@ var hasA11yProp = (props) => {
166169
166279
  //#endregion
166170
166280
  //#region ../../node_modules/lucide-react/dist/esm/context.mjs
166171
166281
  /**
166172
- * @license lucide-react v1.48.0 - ISC
166282
+ * @license lucide-react v1.59.0 - ISC
166173
166283
  *
166174
166284
  * This source code is licensed under the ISC license.
166175
166285
  * See the LICENSE file in the root directory of this source tree.
@@ -166179,7 +166289,7 @@ var useLucideContext = () => (0, import_react$9.useContext)(LucideContext);
166179
166289
  //#endregion
166180
166290
  //#region ../../node_modules/lucide-react/dist/esm/Icon.mjs
166181
166291
  /**
166182
- * @license lucide-react v1.48.0 - ISC
166292
+ * @license lucide-react v1.59.0 - ISC
166183
166293
  *
166184
166294
  * This source code is licensed under the ISC license.
166185
166295
  * See the LICENSE file in the root directory of this source tree.
@@ -166210,7 +166320,7 @@ var Icon = (0, import_react$9.forwardRef)(({ color, size, width, height, strokeW
166210
166320
  //#endregion
166211
166321
  //#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.mjs
166212
166322
  /**
166213
- * @license lucide-react v1.48.0 - ISC
166323
+ * @license lucide-react v1.59.0 - ISC
166214
166324
  *
166215
166325
  * This source code is licensed under the ISC license.
166216
166326
  * See the LICENSE file in the root directory of this source tree.
@@ -166229,7 +166339,7 @@ function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
166229
166339
  //#endregion
166230
166340
  //#region ../../node_modules/lucide-react/dist/esm/icons/align-center-horizontal.mjs
166231
166341
  /**
166232
- * @license lucide-react v1.48.0 - ISC
166342
+ * @license lucide-react v1.59.0 - ISC
166233
166343
  *
166234
166344
  * This source code is licensed under the ISC license.
166235
166345
  * See the LICENSE file in the root directory of this source tree.
@@ -166265,7 +166375,7 @@ var AlignCenterHorizontal = createLucideIcon(__iconData$24);
166265
166375
  //#endregion
166266
166376
  //#region ../../node_modules/lucide-react/dist/esm/icons/align-center-vertical.mjs
166267
166377
  /**
166268
- * @license lucide-react v1.48.0 - ISC
166378
+ * @license lucide-react v1.59.0 - ISC
166269
166379
  *
166270
166380
  * This source code is licensed under the ISC license.
166271
166381
  * See the LICENSE file in the root directory of this source tree.
@@ -166299,81 +166409,81 @@ var __iconData$23 = {
166299
166409
  __iconData$23.node;
166300
166410
  var AlignCenterVertical = createLucideIcon(__iconData$23);
166301
166411
  //#endregion
166302
- //#region ../../node_modules/lucide-react/dist/esm/icons/align-end-vertical.mjs
166412
+ //#region ../../node_modules/lucide-react/dist/esm/icons/align-end-horizontal.mjs
166303
166413
  /**
166304
- * @license lucide-react v1.48.0 - ISC
166414
+ * @license lucide-react v1.59.0 - ISC
166305
166415
  *
166306
166416
  * This source code is licensed under the ISC license.
166307
166417
  * See the LICENSE file in the root directory of this source tree.
166308
166418
  */
166309
166419
  var __iconData$22 = {
166310
- name: "align-end-vertical",
166420
+ name: "align-end-horizontal",
166311
166421
  size: 24,
166312
166422
  node: [
166313
166423
  ["rect", {
166314
- width: "16",
166315
- height: "6",
166316
- x: "2",
166317
- y: "4",
166424
+ width: "6",
166425
+ height: "16",
166426
+ x: "4",
166427
+ y: "2",
166318
166428
  rx: "2",
166319
- key: "10wcwx"
166429
+ key: "z5wdxg"
166320
166430
  }],
166321
166431
  ["rect", {
166322
- width: "9",
166323
- height: "6",
166324
- x: "9",
166325
- y: "14",
166432
+ width: "6",
166433
+ height: "9",
166434
+ x: "14",
166435
+ y: "9",
166326
166436
  rx: "2",
166327
- key: "4p5bwg"
166437
+ key: "um7a8w"
166328
166438
  }],
166329
166439
  ["path", {
166330
- d: "M22 22V2",
166331
- key: "12ipfv"
166440
+ d: "M22 22H2",
166441
+ key: "19qnx5"
166332
166442
  }]
166333
166443
  ]
166334
166444
  };
166335
166445
  __iconData$22.node;
166336
- var AlignEndVertical = createLucideIcon(__iconData$22);
166446
+ var AlignEndHorizontal = createLucideIcon(__iconData$22);
166337
166447
  //#endregion
166338
- //#region ../../node_modules/lucide-react/dist/esm/icons/align-end-horizontal.mjs
166448
+ //#region ../../node_modules/lucide-react/dist/esm/icons/align-end-vertical.mjs
166339
166449
  /**
166340
- * @license lucide-react v1.48.0 - ISC
166450
+ * @license lucide-react v1.59.0 - ISC
166341
166451
  *
166342
166452
  * This source code is licensed under the ISC license.
166343
166453
  * See the LICENSE file in the root directory of this source tree.
166344
166454
  */
166345
166455
  var __iconData$21 = {
166346
- name: "align-end-horizontal",
166456
+ name: "align-end-vertical",
166347
166457
  size: 24,
166348
166458
  node: [
166349
166459
  ["rect", {
166350
- width: "6",
166351
- height: "16",
166352
- x: "4",
166353
- y: "2",
166460
+ width: "16",
166461
+ height: "6",
166462
+ x: "2",
166463
+ y: "4",
166354
166464
  rx: "2",
166355
- key: "z5wdxg"
166465
+ key: "10wcwx"
166356
166466
  }],
166357
166467
  ["rect", {
166358
- width: "6",
166359
- height: "9",
166360
- x: "14",
166361
- y: "9",
166468
+ width: "9",
166469
+ height: "6",
166470
+ x: "9",
166471
+ y: "14",
166362
166472
  rx: "2",
166363
- key: "um7a8w"
166473
+ key: "4p5bwg"
166364
166474
  }],
166365
166475
  ["path", {
166366
- d: "M22 22H2",
166367
- key: "19qnx5"
166476
+ d: "M22 22V2",
166477
+ key: "12ipfv"
166368
166478
  }]
166369
166479
  ]
166370
166480
  };
166371
166481
  __iconData$21.node;
166372
- var AlignEndHorizontal = createLucideIcon(__iconData$21);
166482
+ var AlignEndVertical = createLucideIcon(__iconData$21);
166373
166483
  //#endregion
166374
166484
  //#region ../../node_modules/lucide-react/dist/esm/icons/align-horizontal-space-around.mjs
166375
166485
  /**
166376
- * @license lucide-react v1.48.0 - ISC
166486
+ * @license lucide-react v1.59.0 - ISC
166377
166487
  *
166378
166488
  * This source code is licensed under the ISC license.
166379
166489
  * See the LICENSE file in the root directory of this source tree.
@@ -166405,7 +166515,7 @@ var AlignHorizontalSpaceAround = createLucideIcon(__iconData$20);
166405
166515
  //#endregion
166406
166516
  //#region ../../node_modules/lucide-react/dist/esm/icons/align-start-horizontal.mjs
166407
166517
  /**
166408
- * @license lucide-react v1.48.0 - ISC
166518
+ * @license lucide-react v1.59.0 - ISC
166409
166519
  *
166410
166520
  * This source code is licensed under the ISC license.
166411
166521
  * See the LICENSE file in the root directory of this source tree.
@@ -166441,7 +166551,7 @@ var AlignStartHorizontal = createLucideIcon(__iconData$19);
166441
166551
  //#endregion
166442
166552
  //#region ../../node_modules/lucide-react/dist/esm/icons/align-start-vertical.mjs
166443
166553
  /**
166444
- * @license lucide-react v1.48.0 - ISC
166554
+ * @license lucide-react v1.59.0 - ISC
166445
166555
  *
166446
166556
  * This source code is licensed under the ISC license.
166447
166557
  * See the LICENSE file in the root directory of this source tree.
@@ -166477,7 +166587,7 @@ var AlignStartVertical = createLucideIcon(__iconData$18);
166477
166587
  //#endregion
166478
166588
  //#region ../../node_modules/lucide-react/dist/esm/icons/align-vertical-space-around.mjs
166479
166589
  /**
166480
- * @license lucide-react v1.48.0 - ISC
166590
+ * @license lucide-react v1.59.0 - ISC
166481
166591
  *
166482
166592
  * This source code is licensed under the ISC license.
166483
166593
  * See the LICENSE file in the root directory of this source tree.
@@ -166509,7 +166619,7 @@ var AlignVerticalSpaceAround = createLucideIcon(__iconData$17);
166509
166619
  //#endregion
166510
166620
  //#region ../../node_modules/lucide-react/dist/esm/icons/arrow-left.mjs
166511
166621
  /**
166512
- * @license lucide-react v1.48.0 - ISC
166622
+ * @license lucide-react v1.59.0 - ISC
166513
166623
  *
166514
166624
  * This source code is licensed under the ISC license.
166515
166625
  * See the LICENSE file in the root directory of this source tree.
@@ -166530,7 +166640,7 @@ var ArrowLeft = createLucideIcon(__iconData$16);
166530
166640
  //#endregion
166531
166641
  //#region ../../node_modules/lucide-react/dist/esm/icons/arrow-right.mjs
166532
166642
  /**
166533
- * @license lucide-react v1.48.0 - ISC
166643
+ * @license lucide-react v1.59.0 - ISC
166534
166644
  *
166535
166645
  * This source code is licensed under the ISC license.
166536
166646
  * See the LICENSE file in the root directory of this source tree.
@@ -166551,7 +166661,7 @@ var ArrowRight = createLucideIcon(__iconData$15);
166551
166661
  //#endregion
166552
166662
  //#region ../../node_modules/lucide-react/dist/esm/icons/chevron-left.mjs
166553
166663
  /**
166554
- * @license lucide-react v1.48.0 - ISC
166664
+ * @license lucide-react v1.59.0 - ISC
166555
166665
  *
166556
166666
  * This source code is licensed under the ISC license.
166557
166667
  * See the LICENSE file in the root directory of this source tree.
@@ -166569,7 +166679,7 @@ var ChevronLeft = createLucideIcon(__iconData$14);
166569
166679
  //#endregion
166570
166680
  //#region ../../node_modules/lucide-react/dist/esm/icons/chevron-right.mjs
166571
166681
  /**
166572
- * @license lucide-react v1.48.0 - ISC
166682
+ * @license lucide-react v1.59.0 - ISC
166573
166683
  *
166574
166684
  * This source code is licensed under the ISC license.
166575
166685
  * See the LICENSE file in the root directory of this source tree.
@@ -166587,7 +166697,7 @@ var ChevronRight = createLucideIcon(__iconData$13);
166587
166697
  //#endregion
166588
166698
  //#region ../../node_modules/lucide-react/dist/esm/icons/chevrons-left.mjs
166589
166699
  /**
166590
- * @license lucide-react v1.48.0 - ISC
166700
+ * @license lucide-react v1.59.0 - ISC
166591
166701
  *
166592
166702
  * This source code is licensed under the ISC license.
166593
166703
  * See the LICENSE file in the root directory of this source tree.
@@ -166608,7 +166718,7 @@ var ChevronsLeft = createLucideIcon(__iconData$12);
166608
166718
  //#endregion
166609
166719
  //#region ../../node_modules/lucide-react/dist/esm/icons/chevrons-right.mjs
166610
166720
  /**
166611
- * @license lucide-react v1.48.0 - ISC
166721
+ * @license lucide-react v1.59.0 - ISC
166612
166722
  *
166613
166723
  * This source code is licensed under the ISC license.
166614
166724
  * See the LICENSE file in the root directory of this source tree.
@@ -166629,7 +166739,7 @@ var ChevronsRight = createLucideIcon(__iconData$11);
166629
166739
  //#endregion
166630
166740
  //#region ../../node_modules/lucide-react/dist/esm/icons/circle-alert.mjs
166631
166741
  /**
166632
- * @license lucide-react v1.48.0 - ISC
166742
+ * @license lucide-react v1.59.0 - ISC
166633
166743
  *
166634
166744
  * This source code is licensed under the ISC license.
166635
166745
  * See the LICENSE file in the root directory of this source tree.
@@ -166666,7 +166776,7 @@ var CircleAlert = createLucideIcon(__iconData$10);
166666
166776
  //#endregion
166667
166777
  //#region ../../node_modules/lucide-react/dist/esm/icons/ellipsis.mjs
166668
166778
  /**
166669
- * @license lucide-react v1.48.0 - ISC
166779
+ * @license lucide-react v1.59.0 - ISC
166670
166780
  *
166671
166781
  * This source code is licensed under the ISC license.
166672
166782
  * See the LICENSE file in the root directory of this source tree.
@@ -166701,7 +166811,7 @@ var Ellipsis = createLucideIcon(__iconData$9);
166701
166811
  //#endregion
166702
166812
  //#region ../../node_modules/lucide-react/dist/esm/icons/grip-vertical.mjs
166703
166813
  /**
166704
- * @license lucide-react v1.48.0 - ISC
166814
+ * @license lucide-react v1.59.0 - ISC
166705
166815
  *
166706
166816
  * This source code is licensed under the ISC license.
166707
166817
  * See the LICENSE file in the root directory of this source tree.
@@ -166753,7 +166863,7 @@ var GripVertical = createLucideIcon(__iconData$8);
166753
166863
  //#endregion
166754
166864
  //#region ../../node_modules/lucide-react/dist/esm/icons/loader-circle.mjs
166755
166865
  /**
166756
- * @license lucide-react v1.48.0 - ISC
166866
+ * @license lucide-react v1.59.0 - ISC
166757
166867
  *
166758
166868
  * This source code is licensed under the ISC license.
166759
166869
  * See the LICENSE file in the root directory of this source tree.
@@ -166772,7 +166882,7 @@ var LoaderCircle = createLucideIcon(__iconData$7);
166772
166882
  //#endregion
166773
166883
  //#region ../../node_modules/lucide-react/dist/esm/icons/lock.mjs
166774
166884
  /**
166775
- * @license lucide-react v1.48.0 - ISC
166885
+ * @license lucide-react v1.59.0 - ISC
166776
166886
  *
166777
166887
  * This source code is licensed under the ISC license.
166778
166888
  * See the LICENSE file in the root directory of this source tree.
@@ -166798,7 +166908,7 @@ var Lock = createLucideIcon(__iconData$6);
166798
166908
  //#endregion
166799
166909
  //#region ../../node_modules/lucide-react/dist/esm/icons/menu.mjs
166800
166910
  /**
166801
- * @license lucide-react v1.48.0 - ISC
166911
+ * @license lucide-react v1.59.0 - ISC
166802
166912
  *
166803
166913
  * This source code is licensed under the ISC license.
166804
166914
  * See the LICENSE file in the root directory of this source tree.
@@ -166826,7 +166936,7 @@ var Menu = createLucideIcon(__iconData$5);
166826
166936
  //#endregion
166827
166937
  //#region ../../node_modules/lucide-react/dist/esm/icons/minus.mjs
166828
166938
  /**
166829
- * @license lucide-react v1.48.0 - ISC
166939
+ * @license lucide-react v1.59.0 - ISC
166830
166940
  *
166831
166941
  * This source code is licensed under the ISC license.
166832
166942
  * See the LICENSE file in the root directory of this source tree.
@@ -166844,7 +166954,7 @@ var Minus = createLucideIcon(__iconData$4);
166844
166954
  //#endregion
166845
166955
  //#region ../../node_modules/lucide-react/dist/esm/icons/move-horizontal.mjs
166846
166956
  /**
166847
- * @license lucide-react v1.48.0 - ISC
166957
+ * @license lucide-react v1.59.0 - ISC
166848
166958
  *
166849
166959
  * This source code is licensed under the ISC license.
166850
166960
  * See the LICENSE file in the root directory of this source tree.
@@ -166872,7 +166982,7 @@ var MoveHorizontal = createLucideIcon(__iconData$3);
166872
166982
  //#endregion
166873
166983
  //#region ../../node_modules/lucide-react/dist/esm/icons/move-vertical.mjs
166874
166984
  /**
166875
- * @license lucide-react v1.48.0 - ISC
166985
+ * @license lucide-react v1.59.0 - ISC
166876
166986
  *
166877
166987
  * This source code is licensed under the ISC license.
166878
166988
  * See the LICENSE file in the root directory of this source tree.
@@ -166900,7 +167010,7 @@ var MoveVertical = createLucideIcon(__iconData$2);
166900
167010
  //#endregion
166901
167011
  //#region ../../node_modules/lucide-react/dist/esm/icons/plus.mjs
166902
167012
  /**
166903
- * @license lucide-react v1.48.0 - ISC
167013
+ * @license lucide-react v1.59.0 - ISC
166904
167014
  *
166905
167015
  * This source code is licensed under the ISC license.
166906
167016
  * See the LICENSE file in the root directory of this source tree.
@@ -166921,7 +167031,7 @@ var Plus = createLucideIcon(__iconData$1);
166921
167031
  //#endregion
166922
167032
  //#region ../../node_modules/lucide-react/dist/esm/icons/x.mjs
166923
167033
  /**
166924
- * @license lucide-react v1.48.0 - ISC
167034
+ * @license lucide-react v1.59.0 - ISC
166925
167035
  *
166926
167036
  * This source code is licensed under the ISC license.
166927
167037
  * See the LICENSE file in the root directory of this source tree.
@@ -168003,7 +168113,7 @@ var useInitEvents = ({ pageCursor, pageSizes, activeElements, template, schemasL
168003
168113
  };
168004
168114
  //#endregion
168005
168115
  //#region ../../node_modules/dompurify/dist/purify.es.mjs
168006
- /*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */
168116
+ /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
168007
168117
  function _OverloadYield(e, d) {
168008
168118
  this.v = e, this.k = d;
168009
168119
  }
@@ -168127,9 +168237,12 @@ Array.prototype.indexOf;
168127
168237
  var arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
168128
168238
  var arrayPop = unapply(Array.prototype.pop);
168129
168239
  var arrayPush$1 = unapply(Array.prototype.push);
168130
- Array.prototype.slice;
168240
+ var arraySlice = unapply(Array.prototype.slice);
168131
168241
  var arraySplice = unapply(Array.prototype.splice);
168132
168242
  var arrayIsArray = Array.isArray;
168243
+ var setCreate = unconstruct(Set);
168244
+ var setAdd = unapply(Set.prototype.add);
168245
+ var setHas = unapply(Set.prototype.has);
168133
168246
  var stringToLowerCase = unapply(String.prototype.toLowerCase);
168134
168247
  var stringToString = unapply(String.prototype.toString);
168135
168248
  var stringMatch = unapply(String.prototype.match);
@@ -168274,6 +168387,25 @@ function lookupGetter(object, prop) {
168274
168387
  }
168275
168388
  return fallbackValue;
168276
168389
  }
168390
+ /**
168391
+ * Like lookupGetter, but for accessor properties only, and returns null
168392
+ * instead of a null-returning fallback when no getter exists on the chain.
168393
+ * Lets a caller fall back to a direct property read in environments that
168394
+ * lack the getter, where a fallback returning null would be indistinguishable
168395
+ * from a legitimate null value (e.g. namespaceURI of a no-namespace element).
168396
+ *
168397
+ * @param object - The object (usually a prototype) to start the lookup at.
168398
+ * @param prop - The accessor property name.
168399
+ * @returns The unapplied getter, or null if none was found.
168400
+ */
168401
+ function lookupAccessor(object, prop) {
168402
+ while (object !== null) {
168403
+ const desc = getOwnPropertyDescriptor(object, prop);
168404
+ if (desc) return desc.get ? unapply(desc.get) : null;
168405
+ object = getPrototypeOf(object);
168406
+ }
168407
+ return null;
168408
+ }
168277
168409
  function isRegex(value) {
168278
168410
  try {
168279
168411
  regExpTest(value, "");
@@ -168958,7 +169090,7 @@ var NODE_TYPE = {
168958
169090
  documentFragment: 11,
168959
169091
  notation: 12
168960
169092
  };
168961
- var LITERAL_TEXT_ELEMENT_NAMES = [
169093
+ var LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, [
168962
169094
  "style",
168963
169095
  "script",
168964
169096
  "xmp",
@@ -168967,15 +169099,7 @@ var LITERAL_TEXT_ELEMENT_NAMES = [
168967
169099
  "noframes",
168968
169100
  "plaintext",
168969
169101
  "noscript"
168970
- ];
168971
- var LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, LITERAL_TEXT_ELEMENT_NAMES));
168972
- var LITERAL_TEXT_CLOSE = function() {
168973
- const map = {};
168974
- arrayForEach(LITERAL_TEXT_ELEMENT_NAMES, (name) => {
168975
- map[name] = seal(new RegExp("</" + name + "(?=[\\t\\n\\f\\r />])", "i"));
168976
- });
168977
- return freeze(map);
168978
- }();
169102
+ ]));
168979
169103
  var getGlobal = function getGlobal() {
168980
169104
  return typeof window === "undefined" ? null : window;
168981
169105
  };
@@ -169053,7 +169177,7 @@ var _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback)
169053
169177
  function createDOMPurify() {
169054
169178
  let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
169055
169179
  const DOMPurify = (root) => createDOMPurify(root);
169056
- DOMPurify.version = "3.4.16";
169180
+ DOMPurify.version = "3.4.17";
169057
169181
  DOMPurify.removed = [];
169058
169182
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
169059
169183
  DOMPurify.isSupported = false;
@@ -169085,6 +169209,10 @@ function createDOMPurify() {
169085
169209
  const _readNodeName = function _readNodeName(node) {
169086
169210
  return getNodeName ? getNodeName(node) : node.nodeName;
169087
169211
  };
169212
+ const getNamespaceURI = lookupAccessor(ElementPrototype, "namespaceURI");
169213
+ const _readNamespaceURI = function _readNamespaceURI(element) {
169214
+ return getNamespaceURI ? getNamespaceURI(element) : element.namespaceURI;
169215
+ };
169088
169216
  if (typeof HTMLTemplateElement === "function") {
169089
169217
  const template = document.createElement("template");
169090
169218
  if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
@@ -169205,6 +169333,7 @@ function createDOMPurify() {
169205
169333
  const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
169206
169334
  let KEEP_CONTENT = true;
169207
169335
  let IN_PLACE = false;
169336
+ let IN_PLACE_VISITED = null;
169208
169337
  let USE_PROFILES = {};
169209
169338
  let FORBID_CONTENTS = null;
169210
169339
  const DEFAULT_FORBID_CONTENTS = addToSet({}, [
@@ -169478,18 +169607,23 @@ function createDOMPurify() {
169478
169607
  * return. Return true otherwise.
169479
169608
  */
169480
169609
  const _checkValidNamespace = function _checkValidNamespace(element) {
169481
- let parent = getParentNode(element);
169482
- if (!parent || !parent.tagName) parent = {
169483
- namespaceURI: NAMESPACE,
169484
- tagName: "template"
169485
- };
169486
- const tagName = stringToLowerCase(element.tagName);
169487
- const parentTagName = stringToLowerCase(parent.tagName);
169488
- if (!ALLOWED_NAMESPACES[element.namespaceURI]) return false;
169489
- if (element.namespaceURI === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);
169490
- if (element.namespaceURI === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);
169491
- if (element.namespaceURI === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);
169492
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) return true;
169610
+ const elementNamespace = _readNamespaceURI(element);
169611
+ const tagName = stringToLowerCase(_readNodeName(element));
169612
+ const parentNode = getParentNode(element);
169613
+ let parent;
169614
+ let parentTagName;
169615
+ if (parentNode && _readNodeType(parentNode) === NODE_TYPE.element) {
169616
+ parent = { namespaceURI: _readNamespaceURI(parentNode) };
169617
+ parentTagName = stringToLowerCase(_readNodeName(parentNode));
169618
+ } else {
169619
+ parent = { namespaceURI: NAMESPACE };
169620
+ parentTagName = "template";
169621
+ }
169622
+ if (!ALLOWED_NAMESPACES[elementNamespace]) return false;
169623
+ if (elementNamespace === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);
169624
+ if (elementNamespace === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);
169625
+ if (elementNamespace === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);
169626
+ if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[elementNamespace]) return true;
169493
169627
  return false;
169494
169628
  };
169495
169629
  /**
@@ -169533,36 +169667,21 @@ function createDOMPurify() {
169533
169667
  }
169534
169668
  };
169535
169669
  /**
169536
- * _neutralizeRoot
169537
- *
169538
- * Fail-closed teardown of an in-place root after the sanitize walk aborts
169539
- * (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
169540
- * custom element's reaction detaches a node so `_forceRemove`'s deliberate
169541
- * parentless guard throws, or any other re-entrant engine mutation — would
169542
- * otherwise leave the caller's *live* tree half-sanitized, with everything
169543
- * after the abort point still carrying its handlers. There is no safe way
169544
- * to resume the walk (the tree mutated under us), so we strip the root bare:
169545
- * remove every child and every attribute, then let the caller's catch see
169546
- * the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
169547
- * getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
169670
+ * Fail-closed teardown of an in-place root: strip every disallowed attribute
169671
+ * in the subtree first, so nothing armed is left behind, then remove all
169672
+ * children and the root's own attributes.
169548
169673
  *
169549
169674
  * @param root the in-place root to empty
169550
169675
  */
169551
169676
  const _neutralizeRoot = function _neutralizeRoot(root) {
169552
169677
  _neutralizeSubtree(root);
169553
169678
  const childNodes = getChildNodes(root);
169554
- if (childNodes) {
169555
- const snapshot = [];
169556
- arrayForEach(childNodes, (child) => {
169557
- arrayPush$1(snapshot, child);
169558
- });
169559
- arrayForEach(snapshot, (child) => {
169560
- try {
169561
- remove(child);
169562
- } catch (_) {}
169563
- });
169564
- }
169565
- const attributes = getAttributes(root);
169679
+ if (childNodes) arrayForEach(arraySlice(childNodes), (child) => {
169680
+ try {
169681
+ remove(child);
169682
+ } catch (_) {}
169683
+ });
169684
+ const attributes = _readNodeType(root) === NODE_TYPE.element ? getAttributes(root) : null;
169566
169685
  if (attributes) for (let i = attributes.length - 1; i >= 0; --i) {
169567
169686
  const attribute = attributes[i];
169568
169687
  const name = attribute && attribute.name;
@@ -169570,18 +169689,9 @@ function createDOMPurify() {
169570
169689
  }
169571
169690
  };
169572
169691
  /**
169573
- * _removeAttribute
169574
- *
169575
- * Name-based getAttributeNode()/removeAttribute() ASCII-lowercase their
169576
- * lookup key for HTML elements in an HTML document, so they silently miss an
169577
- * attribute whose stored qualified name still contains uppercase ASCII
169578
- * letters. That happens when the node came from a case-preserving source
169579
- * (an XML/XHTML document imported via importNode(), or createAttributeNS()),
169580
- * where e.g. `ONERROR` survives the walk: the policy check lowercases to
169581
- * `onerror` and rejects it, but `removeAttribute('ONERROR')` looks up
169582
- * `onerror` and finds nothing. Remove the exact Attr node instead, which is
169583
- * case- and namespace-exact, and fall back to name-based removal only when
169584
- * the caller could not supply the node.
169692
+ * Removes an attribute, preferably as its exact Attr node: name-based
169693
+ * removal lowercases the name in HTML documents and misses case-preserved
169694
+ * names, e.g. from imported XHTML.
169585
169695
  *
169586
169696
  * @param name an Attribute name
169587
169697
  * @param element a DOM node
@@ -169615,12 +169725,8 @@ function createDOMPurify() {
169615
169725
  }
169616
169726
  };
169617
169727
  /**
169618
- * _stripDisallowedAttributes
169619
- *
169620
- * Removes every attribute the active configuration does not allow from a
169621
- * single element, using the same allowlist as the main attribute pass (so
169622
- * `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
169623
- * neutralise nodes that are being discarded from an in-place tree.
169728
+ * Removes every attribute the configuration does not allow. Used to
169729
+ * neutralize nodes discarded from an in-place tree.
169624
169730
  *
169625
169731
  * @param element the element to strip
169626
169732
  */
@@ -169635,77 +169741,158 @@ function createDOMPurify() {
169635
169741
  }
169636
169742
  };
169637
169743
  /**
169638
- * _neutralizeSubtree
169639
- *
169640
- * Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
169641
- * move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
169642
- * namespace, comment, processing-instruction and KEEP_CONTENT:false removals
169643
- * all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
169644
- * those dropped nodes are detached from the caller's LIVE tree but a
169645
- * handler-bearing original among them (an `<img onerror>`/`<video>` that was
169646
- * loading) keeps its queued resource event, which fires in page scope after
169647
- * sanitize returns. This walks a removed subtree and strips every attribute
169648
- * the active configuration does not allow — so `on*` handlers are cancelled
169649
- * through the SAME allowlist that governs kept nodes, not a separate `/^on/`
169650
- * blocklist. Run synchronously before sanitize returns, i.e. before any
169651
- * queued event can fire. Hook-free by design: these nodes leave the output,
169652
- * so firing attribute hooks for them would be surprising. Clobber-safe reads;
169653
- * a doomed clobbered node may shadow `removeAttribute` (its own attributes are
169654
- * irrelevant — it is discarded — while its non-clobbered descendants, e.g.
169655
- * the `<img>`, are reached and scrubbed).
169744
+ * Iterative depth-first walk, so deep trees cannot overflow the call stack,
169745
+ * reading through the cached getters, so clobbering cannot hide children.
169746
+ * When `visit` returns false, the node's children are skipped. With
169747
+ * `intoShadow`, open shadow roots are walked after their host's children.
169656
169748
  *
169657
- * @param root the root of a removed subtree to neutralise
169749
+ * @param root where to start
169750
+ * @param visit called for every node
169751
+ * @param intoShadow whether to enter open shadow roots
169658
169752
  */
169659
- const _neutralizeSubtree = function _neutralizeSubtree(root) {
169753
+ const _walkTree = function _walkTree(root, visit) {
169754
+ let intoShadow = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
169660
169755
  const stack = [root];
169661
169756
  while (stack.length > 0) {
169662
169757
  const node = stack.pop();
169663
- if (_readNodeType(node) === NODE_TYPE.element) _stripDisallowedAttributes(node);
169758
+ if (visit(node) === false) continue;
169759
+ if (intoShadow && _readNodeType(node) === NODE_TYPE.element) {
169760
+ const shadowRoot = getShadowRoot(node);
169761
+ if (_isDocumentFragment(shadowRoot)) stack.push(shadowRoot);
169762
+ }
169664
169763
  const childNodes = getChildNodes(node);
169665
169764
  if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
169666
169765
  }
169667
169766
  };
169668
169767
  /**
169669
- * _neutralizePatchLinkage
169768
+ * Strips disallowed attributes from every element of a discarded subtree,
169769
+ * so a handler that is already queued (a loading image) cannot fire.
169770
+ *
169771
+ * @param root the root of a removed subtree
169772
+ */
169773
+ const _neutralizeSubtree = function _neutralizeSubtree(root) {
169774
+ _walkTree(root, (node) => {
169775
+ if (_readNodeType(node) === NODE_TYPE.element) _stripDisallowedAttributes(node);
169776
+ });
169777
+ };
169778
+ /**
169779
+ * All nodes under `root`, root first, including open shadow roots. Template
169780
+ * content is not entered, it is inert.
169670
169781
  *
169671
- * IN_PLACE entry pre-pass (declarative-partial-updates / streaming
169672
- * hardening, https://github.com/WICG/declarative-partial-updates).
169782
+ * @param root the in-place root
169783
+ * @return the nodes
169784
+ */
169785
+ const _collectLiveNodes = function _collectLiveNodes(root) {
169786
+ const nodes = [];
169787
+ _walkTree(root, (node) => {
169788
+ nodes.push(node);
169789
+ }, true);
169790
+ return nodes;
169791
+ };
169792
+ /**
169793
+ * Strips disallowed attributes from every element that was under the
169794
+ * in-place root when the call started and no longer is, whatever removed
169795
+ * or moved it.
169673
169796
  *
169674
- * The main walk strips patch linkage (`for`/`patchsrc`) and removes range
169675
- * markers (PIs / markup comments) node-by-node, in document order, AS it
169676
- * reaches each node. On a live in-place root that leaves a window: from the
169677
- * moment the root is connected until the walk arrives at a given node, that
169678
- * node's linkage is live. A patch applied on connection/stream can fire as
169679
- * a microtask during the walk and inject or teleport an unsanitized DOM
169680
- * range into a region the iterator has already passed and will not revisit,
169681
- * so the post-return "tree is sanitized" contract is violated. Sweep the
169682
- * whole tree once up front and sever every linkage before the walk begins,
169683
- * closing that window.
169797
+ * @param root the in-place root
169798
+ * @param before the root's nodes, collected before the walk
169799
+ */
169800
+ const _neutralizeEscapedElements = function _neutralizeEscapedElements(root, before) {
169801
+ const reachable = setCreate();
169802
+ arrayForEach(_collectLiveNodes(root), (node) => {
169803
+ if (_readNodeType(node) === NODE_TYPE.element) setAdd(reachable, node);
169804
+ });
169805
+ arrayForEach(before, (node) => {
169806
+ if (_readNodeType(node) === NODE_TYPE.element && !setHas(reachable, node)) _stripDisallowedAttributes(node);
169807
+ });
169808
+ };
169809
+ /**
169810
+ * Neutralizes everything that left the in-place tree during the call: what
169811
+ * DOMPurify removed, and what hooks or custom elements removed or moved out.
169684
169812
  *
169685
- * This CANNOT undo a patch that already fired before sanitize ran — that is
169686
- * the irreducible "do not IN_PLACE a live-connected attacker tree" caveat —
169687
- * but it closes everything from sanitize-start onward. Gated on SAFE_FOR_XML
169688
- * to group with the rest of the declarative-partial-updates handling and
169689
- * stay overridable, consistent with the codebase.
169813
+ * @param root the in-place root
169814
+ * @param before the root's nodes, collected before the walk
169815
+ * @return true if the root itself was removed
169816
+ */
169817
+ const _neutralizeDiscarded = function _neutralizeDiscarded(root, before) {
169818
+ let rootRemoved = false;
169819
+ arrayForEach(DOMPurify.removed, (entry) => {
169820
+ if (entry.element) {
169821
+ rootRemoved = rootRemoved || entry.element === root;
169822
+ _neutralizeSubtree(entry.element);
169823
+ }
169824
+ });
169825
+ _neutralizeEscapedElements(root, before);
169826
+ return rootRemoved;
169827
+ };
169828
+ const MAX_UNVISITED_ROUNDS = 8;
169829
+ /**
169830
+ * The walk only moves forward, so a node moved to a position it already
169831
+ * passed is never visited. Give every original node that is still in the
169832
+ * tree but unvisited the normal treatment, hooks included. Nodes created
169833
+ * during the call are left alone. Fails closed if the tree keeps changing.
169690
169834
  *
169691
- * Clobber-safe traversal (cached childNodes getter); per-node try/catch so a
169692
- * clobbered root cannot defeat the sweep of its non-clobbered descendants.
169835
+ * @param root the in-place root
169836
+ * @param before the root's nodes, collected before the walk
169837
+ */
169838
+ const _sanitizeUnvisitedNodes = function _sanitizeUnvisitedNodes(root, before) {
169839
+ const visited = IN_PLACE_VISITED;
169840
+ let original = null;
169841
+ const getOriginal = () => {
169842
+ if (!original) {
169843
+ original = setCreate();
169844
+ arrayForEach(before, (beforeNode) => {
169845
+ setAdd(original, beforeNode);
169846
+ });
169847
+ }
169848
+ return original;
169849
+ };
169850
+ for (let round = 0;; round++) {
169851
+ const live = _collectLiveNodes(root);
169852
+ const containers = [root];
169853
+ let pending = false;
169854
+ arrayForEach(live, (node) => {
169855
+ if (_readNodeType(node) === NODE_TYPE.documentFragment) arrayPush$1(containers, node);
169856
+ else if (!pending && !setHas(visited, node)) pending = setHas(getOriginal(), node);
169857
+ });
169858
+ if (!pending) return;
169859
+ if (round >= MAX_UNVISITED_ROUNDS) throw typeErrorCreate("the tree kept changing during in-place sanitization; refusing to return it");
169860
+ arrayForEach(containers, (container, index) => {
169861
+ _sanitizeUnvisitedIn(container, index > 0, root, getOriginal());
169862
+ });
169863
+ }
169864
+ };
169865
+ /**
169866
+ * One _sanitizeUnvisitedNodes pass over the root or an open shadow root.
169693
169867
  *
169694
- * NOTE (pending real-Chrome confirmation, see test/declarative-patch-probe
169695
- * .html Q1): this mirrors the existing policy of keeping `for` on
169696
- * <label>/<output>. If the shipping feature can drive a patch through a
169697
- * surviving `for`-on-label/output + `id` pair, this pre-pass and the
169698
- * attribute check at _isBasicCustomElement's caller must additionally drop
169699
- * that pair on the IN_PLACE path. Left as-is until the taxonomy is verified.
169868
+ * @param container the root or an open shadow root
169869
+ * @param inShadow whether container is a shadow root
169870
+ * @param root the in-place root
169871
+ * @param original the root's nodes collected before the walk, as a set
169872
+ */
169873
+ const _sanitizeUnvisitedIn = function _sanitizeUnvisitedIn(container, inShadow, root, original) {
169874
+ const iterator = _createNodeIterator(container);
169875
+ let node;
169876
+ while (node = iterator.nextNode()) {
169877
+ if (!setHas(original, node) || setHas(IN_PLACE_VISITED, node)) continue;
169878
+ if (inShadow) _executeHooks(hooks.uponSanitizeShadowNode, node, null);
169879
+ _sanitizeElements(node, root);
169880
+ _sanitizeAttributes(node, root);
169881
+ if (_isDocumentFragment(node.content)) _sanitizeShadowDOM2(node.content);
169882
+ }
169883
+ };
169884
+ /**
169885
+ * Records that _sanitizeElements processed `node`. No-op outside IN_PLACE.
169700
169886
  *
169701
- * @param root the in-place root to sweep
169887
+ * @param node the node being processed
169702
169888
  */
169889
+ const _markVisited = function _markVisited(node) {
169890
+ if (IN_PLACE_VISITED) setAdd(IN_PLACE_VISITED, node);
169891
+ };
169703
169892
  /**
169704
- * Central policy for declarative-partial-updates patch-linkage attributes,
169705
- * shared by the _neutralizePatchLinkage pre-pass and _isValidAttribute so
169706
- * the two sites cannot drift: `patchsrc` always links, `for` links
169707
- * everywhere except on <label>/<output>, and the whole policy is gated on
169708
- * SAFE_FOR_XML (see the rationale block in _isValidAttribute).
169893
+ * Patch-linkage attributes (declarative partial updates): `patchsrc`
169894
+ * always, `for` everywhere except on <label> and <output>. Gated on
169895
+ * SAFE_FOR_XML. Shared by the IN_PLACE pre-pass and _isValidAttribute.
169709
169896
  *
169710
169897
  * @param lcName the transformCaseFunc'd attribute name
169711
169898
  * @param lcTag the transformCaseFunc'd tag name of the carrying element
@@ -169716,17 +169903,26 @@ function createDOMPurify() {
169716
169903
  if (lcName === "patchsrc") return true;
169717
169904
  return lcName === "for" && lcTag !== "label" && lcTag !== "output";
169718
169905
  };
169906
+ /**
169907
+ * IN_PLACE pre-pass: sever all patch linkage before the walk, so no patch
169908
+ * can fire mid-walk into a part of the tree the walker already passed.
169909
+ * Removes range markers (processing instructions, comments with markup)
169910
+ * and strips linkage attributes. It cannot undo a patch that already fired.
169911
+ *
169912
+ * TODO: if the shipped feature can patch through `for` on <label>/<output>,
169913
+ * drop that pair here too (see test/declarative-patch-probe.html).
169914
+ *
169915
+ * @param root the in-place root to sweep
169916
+ */
169719
169917
  const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
169720
169918
  if (!SAFE_FOR_XML) return;
169721
- const stack = [root];
169722
- while (stack.length > 0) {
169723
- const node = stack.pop();
169919
+ _walkTree(root, (node) => {
169724
169920
  const nodeType = _readNodeType(node);
169725
169921
  if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
169726
169922
  try {
169727
169923
  remove(node);
169728
169924
  } catch (_) {}
169729
- continue;
169925
+ return false;
169730
169926
  }
169731
169927
  if (nodeType === NODE_TYPE.element) {
169732
169928
  const element = node;
@@ -169736,9 +169932,8 @@ function createDOMPurify() {
169736
169932
  if (element.hasAttribute && element.hasAttribute("for") && _isPatchLinkageAttribute("for", lcTag)) element.removeAttribute("for");
169737
169933
  } catch (_) {}
169738
169934
  }
169739
- const childNodes = getChildNodes(node);
169740
- if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
169741
- }
169935
+ return true;
169936
+ });
169742
169937
  };
169743
169938
  /**
169744
169939
  * _initDocument
@@ -169815,6 +170010,27 @@ function createDOMPurify() {
169815
170010
  */
169816
170011
  const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
169817
170012
  var _node$querySelectorAl;
170013
+ _scrubOwnCharacterData(node);
170014
+ const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
170015
+ if (templates) arrayForEach(templates, (tmpl) => {
170016
+ if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
170017
+ });
170018
+ };
170019
+ /**
170020
+ * _scrubOwnCharacterData
170021
+ *
170022
+ * Non-recursive core of _scrubTemplateExpressions: normalize `node` and
170023
+ * strip template expressions from its own character data only. Does not
170024
+ * enter <template>.content or attached shadow roots (NodeIterator never
170025
+ * does). Used by _sanitizeShadowDOM, where every nested template content
170026
+ * and shadow root is already walked - and therefore scrubbed - by its own
170027
+ * recursive _sanitizeShadowDOM call; recursing here as well would rescrub
170028
+ * each nested fragment once per ancestor, which is quadratic in nesting
170029
+ * depth.
170030
+ *
170031
+ * @param node The root whose own character data should be scrubbed.
170032
+ */
170033
+ const _scrubOwnCharacterData = function _scrubOwnCharacterData(node) {
169818
170034
  node.normalize();
169819
170035
  const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
169820
170036
  const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
@@ -169823,10 +170039,6 @@ function createDOMPurify() {
169823
170039
  currentNode.data = _stripTemplateExpressions(currentNode.data);
169824
170040
  currentNode = walker.nextNode();
169825
170041
  }
169826
- const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
169827
- if (templates) arrayForEach(templates, (tmpl) => {
169828
- if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
169829
- });
169830
170042
  };
169831
170043
  /**
169832
170044
  * _isClobbered
@@ -169902,7 +170114,7 @@ function createDOMPurify() {
169902
170114
  */
169903
170115
  const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
169904
170116
  if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) return true;
169905
- if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && LITERAL_TEXT_ELEMENTS[tagName] && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === "string" && regExpTest(LITERAL_TEXT_CLOSE[tagName], currentNode.textContent))) return true;
170117
+ if (SAFE_FOR_XML && LITERAL_TEXT_ELEMENTS[tagName] && _readNodeType(currentNode) === NODE_TYPE.element && _readNamespaceURI(currentNode) === HTML_NAMESPACE && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === "string" && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent))) return true;
169906
170118
  if (currentNode.nodeType === NODE_TYPE.processingInstruction) return true;
169907
170119
  if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) return true;
169908
170120
  return false;
@@ -169946,7 +170158,7 @@ function createDOMPurify() {
169946
170158
  */
169947
170159
  const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
169948
170160
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
169949
- if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
170161
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName] && !FORBID_CONTENTS[stringToLowerCase(tagName)]) {
169950
170162
  const parentNode = getParentNode(currentNode);
169951
170163
  const childNodes = getChildNodes(currentNode);
169952
170164
  if (childNodes && parentNode) {
@@ -169979,35 +170191,13 @@ function createDOMPurify() {
169979
170191
  return set === defaultSet || set === setConfigSet ? clone(set) : set;
169980
170192
  };
169981
170193
  /**
169982
- * Shared guard for a node that a hook has detached from the walk tree,
169983
- * used after each element-hook site in _sanitizeElements. Detaching is a
169984
- * long-standing user pattern (issue #469; draw.io-style foreignObject
169985
- * filtering). Per the cached, unclobberable parentNode getter the node is
169986
- * genuinely out of the tree, so it can reach neither the serialized
169987
- * output nor an IN_PLACE live tree; treat it as removed and stop
169988
- * processing it. Without this guard, the unsafe-node / namespace checks
169989
- * would call _forceRemove on a parentless node and hit the REPORT-3
169990
- * fail-closed throw — which exists for nodes DOMPurify wants gone but
169991
- * *cannot* detach (clobbered / parentless roots), the opposite of a node
169992
- * that is already safely gone. The walk root is exempt: a detached
169993
- * IN_PLACE root is legitimate input and must still be fully sanitized,
169994
- * and a kill-decision on it must keep hitting the REPORT-3 throw.
169995
- *
169996
- * Nodes detached by hooks stay the hook's responsibility for placement:
169997
- * they are not recorded in DOMPurify.removed, so the post-walk IN_PLACE
169998
- * pass (which iterates DOMPurify.removed) does not reach them. But a
169999
- * hook-detached subtree can still hold a queued resource-event handler -
170000
- * e.g. an <img onload> that began loading when the caller built the live
170001
- * tree - which fires in page scope after sanitize returns even though the
170002
- * handler never reached the returned tree. That is the audit-5 F1 hazard,
170003
- * and the documented node.remove() hook pattern walks straight into it.
170004
- * So on the IN_PLACE path we neutralize the detached subtree inline,
170005
- * stripping its non-allow-listed attributes before returning, exactly as
170006
- * the post-walk pass does for _forceRemove'd subtrees.
170194
+ * A hook may have detached the node it was called for. If so, treat it as
170195
+ * removed and stop processing it; the walk root is exempt. On the IN_PLACE
170196
+ * path the detached subtree is neutralized right away.
170007
170197
  *
170008
170198
  * @param currentNode the node a hook may have detached
170009
170199
  * @param root the current walk root
170010
- * @return true if the node is detached and now handled, false otherwise
170200
+ * @return true if the node was detached
170011
170201
  */
170012
170202
  const _handleHookDetachedNode = function _handleHookDetachedNode(currentNode, root) {
170013
170203
  if (currentNode === root || getParentNode(currentNode) !== null) return false;
@@ -170024,6 +170214,7 @@ function createDOMPurify() {
170024
170214
  * @return true if node was killed, false if left alive
170025
170215
  */
170026
170216
  const _sanitizeElements = function _sanitizeElements(currentNode, root) {
170217
+ _markVisited(currentNode);
170027
170218
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
170028
170219
  if (_handleHookDetachedNode(currentNode, root)) return true;
170029
170220
  if (_isClobbered(currentNode)) {
@@ -170167,6 +170358,22 @@ function createDOMPurify() {
170167
170358
  }
170168
170359
  };
170169
170360
  /**
170361
+ * _isUnsafeAttributeValue
170362
+ *
170363
+ * Value-based attribute checks that the attribute walk applies before any
170364
+ * hook can force-keep an attribute, shared with the public
170365
+ * isValidAttribute() so that it never approves a value sanitize() would
170366
+ * strip.
170367
+ *
170368
+ * @param name the attribute name as found on the node (case preserved)
170369
+ * @param value the attribute value
170370
+ * @returns true if the attribute must be removed because of its value
170371
+ */
170372
+ const _isUnsafeAttributeValue = function _isUnsafeAttributeValue(name, value) {
170373
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) return true;
170374
+ return stringToLowerCase(name) === "attributename" && stringMatch(value, "href") !== null;
170375
+ };
170376
+ /**
170170
170377
  * _sanitizeAttributes
170171
170378
  *
170172
170379
  * @protect attributes
@@ -170210,11 +170417,7 @@ function createDOMPurify() {
170210
170417
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
170211
170418
  recreatedNamedProp = true;
170212
170419
  }
170213
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
170214
- _removeAttribute(name, currentNode, attr);
170215
- continue;
170216
- }
170217
- if (lcName === "attributename" && stringMatch(value, "href")) {
170420
+ if (_isUnsafeAttributeValue(name, value)) {
170218
170421
  _removeAttribute(name, currentNode, attr);
170219
170422
  continue;
170220
170423
  }
@@ -170262,24 +170465,13 @@ function createDOMPurify() {
170262
170465
  }
170263
170466
  }
170264
170467
  }
170468
+ if (SAFE_FOR_TEMPLATES) _scrubOwnCharacterData(fragment);
170265
170469
  _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
170266
170470
  };
170267
170471
  /**
170268
- * _sanitizeAttachedShadowRoots
170269
- *
170270
- * Walks `root` and feeds every attached shadow root we encounter into
170271
- * the existing _sanitizeShadowDOM pipeline. The default node iterator
170272
- * does not descend into shadow trees, so nodes inside an attached
170273
- * shadow root would otherwise be skipped entirely.
170274
- *
170275
- * Two real input paths put attached shadow roots in front of us:
170276
- * 1. IN_PLACE on a DOM node that already has shadow roots attached.
170277
- * 2. DOM-node input where importNode(dirty, true) deep-clones the
170278
- * shadow root because it was created with `clonable: true`.
170279
- *
170280
- * This pass runs once, up front, so the main iteration loop (and the
170281
- * existing _sanitizeShadowDOM template-content recursion) stay
170282
- * untouched — string-input paths are not affected.
170472
+ * Sanitizes every attached shadow root under `root`, since the node
170473
+ * iterator does not enter shadow trees. Needed for IN_PLACE input and for
170474
+ * DOM input whose clonable shadow roots were copied by importNode().
170283
170475
  *
170284
170476
  * @param root the subtree root to walk for attached shadow roots
170285
170477
  */
@@ -170344,6 +170536,8 @@ function createDOMPurify() {
170344
170536
  if (hooks.uponSanitizeAttribute.length > 0) ALLOWED_ATTR = clone(ALLOWED_ATTR);
170345
170537
  DOMPurify.removed = [];
170346
170538
  const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
170539
+ let inPlaceNodes = [];
170540
+ const outerVisited = IN_PLACE_VISITED;
170347
170541
  if (inPlace) {
170348
170542
  _neutralizePatchLinkage(dirty);
170349
170543
  const nn = _readNodeName(dirty);
@@ -170358,12 +170552,8 @@ function createDOMPurify() {
170358
170552
  _neutralizeRoot(dirty);
170359
170553
  throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
170360
170554
  }
170361
- try {
170362
- _sanitizeAttachedShadowRoots(dirty);
170363
- } catch (error) {
170364
- _neutralizeRoot(dirty);
170365
- throw error;
170366
- }
170555
+ inPlaceNodes = _collectLiveNodes(dirty);
170556
+ IN_PLACE_VISITED = setCreate();
170367
170557
  } else if (_isNode(dirty)) {
170368
170558
  body = _initDocument("<!---->");
170369
170559
  importedNode = body.ownerDocument.importNode(dirty, true);
@@ -170379,30 +170569,25 @@ function createDOMPurify() {
170379
170569
  if (body && FORCE_BODY) _forceRemove(body.firstChild);
170380
170570
  const walkRoot = inPlace ? dirty : body;
170381
170571
  try {
170572
+ if (inPlace) _sanitizeAttachedShadowRoots(dirty);
170382
170573
  const nodeIterator = _createNodeIterator(walkRoot);
170383
170574
  while (currentNode = nodeIterator.nextNode()) {
170384
170575
  _sanitizeElements(currentNode, walkRoot);
170385
170576
  _sanitizeAttributes(currentNode, walkRoot);
170386
170577
  if (_isDocumentFragment(currentNode.content)) _sanitizeShadowDOM2(currentNode.content);
170387
170578
  }
170579
+ if (inPlace) _sanitizeUnvisitedNodes(dirty, inPlaceNodes);
170388
170580
  } catch (error) {
170389
170581
  if (inPlace) {
170390
170582
  _neutralizeRoot(dirty);
170391
- arrayForEach(DOMPurify.removed, (entry) => {
170392
- if (entry.element) _neutralizeSubtree(entry.element);
170393
- });
170583
+ _neutralizeDiscarded(dirty, inPlaceNodes);
170394
170584
  }
170395
170585
  throw error;
170586
+ } finally {
170587
+ IN_PLACE_VISITED = outerVisited;
170396
170588
  }
170397
170589
  if (inPlace) {
170398
- let rootWasRemoved = false;
170399
- arrayForEach(DOMPurify.removed, (entry) => {
170400
- if (entry.element) {
170401
- if (entry.element === dirty) rootWasRemoved = true;
170402
- _neutralizeSubtree(entry.element);
170403
- }
170404
- });
170405
- if (rootWasRemoved) throw typeErrorCreate("a node selected for removal could not be safely returned; refusing to sanitize in place");
170590
+ if (_neutralizeDiscarded(dirty, inPlaceNodes)) throw typeErrorCreate("a node selected for removal could not be safely returned; refusing to sanitize in place");
170406
170591
  if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(dirty);
170407
170592
  return dirty;
170408
170593
  }
@@ -170439,6 +170624,7 @@ function createDOMPurify() {
170439
170624
  if (!CONFIG) _parseConfig({});
170440
170625
  const lcTag = transformCaseFunc(tag);
170441
170626
  const lcName = transformCaseFunc(attr);
170627
+ if (typeof value === "string" && (_isUnsafeAttributeValue(attr, value) || !ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value))) return false;
170442
170628
  return _isValidAttribute(lcTag, lcName, value);
170443
170629
  };
170444
170630
  DOMPurify.addHook = function(entryPoint, hookFunction) {
@@ -180782,10 +180968,10 @@ var locales_default = {
180782
180968
  "moveUp": "上移"
180783
180969
  }
180784
180970
  };
180785
- (/* @__PURE__ */ __commonJSMin(((exports, module) => {
180971
+ (/* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
180786
180972
  (function(e, _) {
180787
180973
  "object" == typeof exports && "undefined" != typeof module ? module.exports = _(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], _) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_zh_cn = _(e.dayjs);
180788
- })(exports, (function(e) {
180974
+ })(this$3, (function(e) {
180789
180975
  "use strict";
180790
180976
  function _(e) {
180791
180977
  return e && "object" == typeof e && "default" in e ? e : { default: e };
@@ -181306,16 +181492,16 @@ var require__export = /* @__PURE__ */ __commonJSMin(((exports, module) => {
181306
181492
  var IS_PROTO = type & $export.P;
181307
181493
  var IS_BIND = type & $export.B;
181308
181494
  var IS_WRAP = type & $export.W;
181309
- var exports$1 = IS_GLOBAL ? core : core[name] || (core[name] = {});
181310
- var expProto = exports$1[PROTOTYPE];
181495
+ var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
181496
+ var expProto = exports[PROTOTYPE];
181311
181497
  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
181312
181498
  var key, own, out;
181313
181499
  if (IS_GLOBAL) source = name;
181314
181500
  for (key in source) {
181315
181501
  own = !IS_FORCED && target && target[key] !== void 0;
181316
- if (own && has(exports$1, key)) continue;
181502
+ if (own && has(exports, key)) continue;
181317
181503
  out = own ? target[key] : source[key];
181318
- exports$1[key] = IS_GLOBAL && typeof target[key] != "function" ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? (function(C) {
181504
+ exports[key] = IS_GLOBAL && typeof target[key] != "function" ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? (function(C) {
181319
181505
  var F = function(a, b, c) {
181320
181506
  if (this instanceof C) {
181321
181507
  switch (arguments.length) {
@@ -181331,7 +181517,7 @@ var require__export = /* @__PURE__ */ __commonJSMin(((exports, module) => {
181331
181517
  return F;
181332
181518
  })(out) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
181333
181519
  if (IS_PROTO) {
181334
- (exports$1.virtual || (exports$1.virtual = {}))[key] = out;
181520
+ (exports.virtual || (exports.virtual = {}))[key] = out;
181335
181521
  if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
181336
181522
  }
181337
181523
  }
@@ -185993,10 +186179,10 @@ var init_es = __esmMin((() => {
185993
186179
  }));
185994
186180
  //#endregion
185995
186181
  //#region ../../node_modules/tinycolor2/cjs/tinycolor.js
185996
- var require_tinycolor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
186182
+ var require_tinycolor = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
185997
186183
  (function(global, factory) {
185998
186184
  typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.tinycolor = factory());
185999
- })(exports, (function() {
186185
+ })(this$2, (function() {
186000
186186
  "use strict";
186001
186187
  function _typeof(obj) {
186002
186188
  "@babel/helpers - typeof";
@@ -188518,10 +188704,10 @@ var Color = function Color(props) {
188518
188704
  };
188519
188705
  //#endregion
188520
188706
  //#region ../../node_modules/form-render/es/widgets/utils/index.js
188521
- var import_quarterOfYear = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
188707
+ var import_quarterOfYear = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
188522
188708
  (function(t, n) {
188523
188709
  "object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_quarterOfYear = n();
188524
- })(exports, (function() {
188710
+ })(this$1, (function() {
188525
188711
  "use strict";
188526
188712
  var t = "month", n = "quarter";
188527
188713
  return function(e, i) {
@@ -216409,7 +216595,7 @@ var scaleDragPosAdjustment = (adjustment, scale) => {
216409
216595
  return 0;
216410
216596
  };
216411
216597
  var MIN_CANVAS_WIDTH = 100;
216412
- var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPageCursorChange, onChangeSelection, onRegisterSchemaSelectionHandler, onUpdateTemplatePageApplied, updateTemplatePage }) => {
216598
+ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPageCursorChange, onChangeSelection, onRegisterSchemaSelectionHandler, onUpdateTemplatePageApplied, updateTemplatePage, sidebarOpenRequest }) => {
216413
216599
  const past = (0, import_react$9.useRef)([]);
216414
216600
  const future = (0, import_react$9.useRef)([]);
216415
216601
  const schemasListRef = (0, import_react$9.useRef)([[]]);
@@ -216437,8 +216623,14 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
216437
216623
  pageCursorRef.current = pageCursor;
216438
216624
  const [pendingScrollPage, setPendingScrollPage] = (0, import_react$9.useState)(null);
216439
216625
  const [sidebarOpen, setSidebarOpen] = (0, import_react$9.useState)(options.sidebarOpen ?? canvasWidth - rightSidebarWidth >= MIN_CANVAS_WIDTH);
216626
+ const [appliedSidebarOpenRequest, setAppliedSidebarOpenRequest] = (0, import_react$9.useState)(sidebarOpenRequest);
216627
+ if (sidebarOpenRequest !== appliedSidebarOpenRequest) {
216628
+ setAppliedSidebarOpenRequest(sidebarOpenRequest);
216629
+ if (sidebarOpenRequest) setSidebarOpen(sidebarOpenRequest.open);
216630
+ }
216440
216631
  const [canvasHeight, setCanvasHeight] = (0, import_react$9.useState)(0);
216441
216632
  const [prevTemplate, setPrevTemplate] = (0, import_react$9.useState)(null);
216633
+ const [pageSource, setPageSource] = (0, import_react$9.useState)(template);
216442
216634
  const sizeExcSidebars = (0, import_react$9.useMemo)(() => ({
216443
216635
  width: Math.max(sidebarOpen ? canvasWidth - rightSidebarWidth : canvasWidth, 0),
216444
216636
  height: size.height
@@ -216448,8 +216640,8 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
216448
216640
  sidebarOpen,
216449
216641
  size.height
216450
216642
  ]);
216451
- const { backgrounds, pageSizes, baseScale, error, refresh } = useUIPreProcessor({
216452
- template,
216643
+ const { backgrounds, pageSizes, baseScale, error } = useUIPreProcessor({
216644
+ template: pageSource,
216453
216645
  size: sizeExcSidebars,
216454
216646
  zoomLevel: 1,
216455
216647
  maxZoom
@@ -216551,9 +216743,6 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
216551
216743
  previousOptionsZoomLevelRef.current = options.zoomLevel;
216552
216744
  if (typeof options.zoomLevel === "number") setZoomLevel(options.zoomLevel);
216553
216745
  }, [options.zoomLevel, setZoomLevel]);
216554
- (0, import_react$9.useEffect)(() => {
216555
- if (typeof options.sidebarOpen === "boolean") setSidebarOpen(options.sidebarOpen);
216556
- }, [options.sidebarOpen]);
216557
216746
  const armScrollSuppression = (fallbackMs) => {
216558
216747
  const token = ++scrollSuppressTokenRef.current;
216559
216748
  suppressScrollPageCursorRef.current = true;
@@ -216644,7 +216833,7 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
216644
216833
  const newTemplate = schemasList2template(next, basePdf);
216645
216834
  onChangeTemplate(newTemplate);
216646
216835
  if (options.notifyPageCursor === "always") onPageCursorChange(clampedCursor, next.length);
216647
- if (pageCountChanged) refresh(newTemplate);
216836
+ if (pageCountChanged) setPageSource(newTemplate);
216648
216837
  if (cursorChanged) {
216649
216838
  if (pageCountChanged) {
216650
216839
  armScrollSuppression(SCROLL_SUPPRESS_FALLBACK_MS);
@@ -216662,7 +216851,6 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
216662
216851
  onChangeTemplate,
216663
216852
  onPageCursorChange,
216664
216853
  pageSizes,
216665
- refresh,
216666
216854
  template.basePdf
216667
216855
  ]);
216668
216856
  const commitSchemas = (0, import_react$9.useCallback)((newSchemas) => {
@@ -216861,6 +217049,7 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
216861
217049
  };
216862
217050
  if (prevTemplate !== template) {
216863
217051
  setPrevTemplate(template);
217052
+ setPageSource(template);
216864
217053
  updateTemplate(template, updateTemplatePage);
216865
217054
  }
216866
217055
  if (error) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorScreen, {
@@ -217158,6 +217347,17 @@ var Designer = class extends BaseUIClass {
217158
217347
  _defineProperty$14(this, "selection", EMPTY_DESIGNER_SELECTION);
217159
217348
  _defineProperty$14(this, "selectSchemasHandler", null);
217160
217349
  _defineProperty$14(this, "updateTemplatePage", void 0);
217350
+ _defineProperty$14(
217351
+ this,
217352
+ /**
217353
+ * Template the editor loads. A new reference makes the editor discard its
217354
+ * document, selection and schema ids, so it changes only when the host
217355
+ * supplies a template; edits made in the editor update `this.template` only.
217356
+ */
217357
+ "editorTemplate",
217358
+ void 0
217359
+ );
217360
+ _defineProperty$14(this, "sidebarOpenRequest", void 0);
217161
217361
  _defineProperty$14(this, "handleSaveTemplate", (template) => {
217162
217362
  this.template = template;
217163
217363
  this.template.pdfmeVersion = PDFME_VERSION;
@@ -217186,6 +217386,12 @@ var Designer = class extends BaseUIClass {
217186
217386
  if (Object.is(this.updateTemplatePage, page)) this.updateTemplatePage = void 0;
217187
217387
  });
217188
217388
  checkDesignerProps(props);
217389
+ this.editorTemplate = this.template;
217390
+ }
217391
+ updateOptions(options) {
217392
+ checkUIOptions(options);
217393
+ if (typeof options.sidebarOpen === "boolean") this.sidebarOpenRequest = { open: options.sidebarOpen };
217394
+ super.updateOptions(options);
217189
217395
  }
217190
217396
  saveTemplate() {
217191
217397
  if (!this.domContainer) throw Error(DESTROYED_ERR_MSG);
@@ -217195,6 +217401,7 @@ var Designer = class extends BaseUIClass {
217195
217401
  checkTemplate(template);
217196
217402
  if (!this.domContainer) throw Error(DESTROYED_ERR_MSG);
217197
217403
  this.template = cloneDeep$1(template);
217404
+ this.editorTemplate = this.template;
217198
217405
  this.updateTemplatePage = options.page;
217199
217406
  if (this.onChangeTemplateCallback) this.onChangeTemplateCallback(template);
217200
217407
  this.render();
@@ -217237,7 +217444,7 @@ var Designer = class extends BaseUIClass {
217237
217444
  plugins: this.getPluginsRegistry(),
217238
217445
  options: this.getOptions(),
217239
217446
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TemplateEditor, {
217240
- template: this.template,
217447
+ template: this.editorTemplate,
217241
217448
  onSaveTemplate: this.handleSaveTemplate,
217242
217449
  onChangeTemplate: this.handleChangeTemplate,
217243
217450
  onPageCursorChange: this.handlePageCursorChange,
@@ -217245,6 +217452,7 @@ var Designer = class extends BaseUIClass {
217245
217452
  onRegisterSchemaSelectionHandler: this.handleRegisterSchemaSelectionHandler,
217246
217453
  onUpdateTemplatePageApplied: this.handleUpdateTemplatePageApplied,
217247
217454
  updateTemplatePage: this.updateTemplatePage,
217455
+ sidebarOpenRequest: this.sidebarOpenRequest,
217248
217456
  size: this.size
217249
217457
  })
217250
217458
  }));