@webwriter/deep-learning-model 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +3 -3
  2. package/components/model-editor.ts +22 -7
  3. package/custom-elements.json +24 -0
  4. package/dist/widgets/webwriter-feature-engineering.js +1381 -859
  5. package/dist/widgets/webwriter-model-designing.js +1500 -880
  6. package/dist/widgets/webwriter-model-evaluation.js +515 -524
  7. package/dist/widgets/webwriter-model-prediction.js +503 -512
  8. package/dist/widgets/webwriter-model-training.js +633 -559
  9. package/lib/layers/index.ts +77 -15
  10. package/lib/tflib.ts +9 -5
  11. package/localization/ar.xlf +28 -7
  12. package/localization/bg.xlf +28 -7
  13. package/localization/cs.xlf +28 -7
  14. package/localization/da.xlf +28 -7
  15. package/localization/de.xlf +28 -7
  16. package/localization/el.xlf +28 -7
  17. package/localization/es.xlf +28 -7
  18. package/localization/et.xlf +28 -7
  19. package/localization/fi.xlf +28 -7
  20. package/localization/fr.xlf +28 -7
  21. package/localization/generated/ar.ts +1 -0
  22. package/localization/generated/bg.ts +1 -0
  23. package/localization/generated/cs.ts +1 -0
  24. package/localization/generated/da.ts +1 -0
  25. package/localization/generated/de.ts +1 -0
  26. package/localization/generated/el.ts +1 -0
  27. package/localization/generated/es.ts +1 -0
  28. package/localization/generated/et.ts +1 -0
  29. package/localization/generated/fi.ts +1 -0
  30. package/localization/generated/fr.ts +1 -0
  31. package/localization/generated/hu.ts +1 -0
  32. package/localization/generated/id.ts +1 -0
  33. package/localization/generated/it.ts +1 -0
  34. package/localization/generated/ja.ts +1 -0
  35. package/localization/generated/ko.ts +1 -0
  36. package/localization/generated/lt.ts +1 -0
  37. package/localization/generated/lv.ts +1 -0
  38. package/localization/generated/nb.ts +1 -0
  39. package/localization/generated/nl.ts +1 -0
  40. package/localization/generated/pl.ts +1 -0
  41. package/localization/generated/pt-BR.ts +1 -0
  42. package/localization/generated/pt-PT.ts +1 -0
  43. package/localization/generated/ro.ts +1 -0
  44. package/localization/generated/ru.ts +1 -0
  45. package/localization/generated/sk.ts +1 -0
  46. package/localization/generated/sl.ts +1 -0
  47. package/localization/generated/sv.ts +1 -0
  48. package/localization/generated/tr.ts +1 -0
  49. package/localization/generated/uk.ts +1 -0
  50. package/localization/generated/zh-hans.ts +1 -0
  51. package/localization/generated/zh-hant.ts +1 -0
  52. package/localization/hu.xlf +28 -7
  53. package/localization/id.xlf +28 -7
  54. package/localization/it.xlf +28 -7
  55. package/localization/ja.xlf +28 -7
  56. package/localization/ko.xlf +28 -7
  57. package/localization/lt.xlf +28 -7
  58. package/localization/lv.xlf +28 -7
  59. package/localization/nb.xlf +28 -7
  60. package/localization/nl.xlf +28 -7
  61. package/localization/pkg/ar.xliff +1 -1
  62. package/localization/pkg/bg.xliff +1 -1
  63. package/localization/pkg/cs.xliff +1 -1
  64. package/localization/pkg/da.xliff +1 -1
  65. package/localization/pkg/de.xliff +1 -1
  66. package/localization/pkg/el.xliff +1 -1
  67. package/localization/pkg/es.xliff +1 -1
  68. package/localization/pkg/et.xliff +1 -1
  69. package/localization/pkg/fi.xliff +1 -1
  70. package/localization/pkg/fr.xliff +1 -1
  71. package/localization/pkg/hu.xliff +1 -1
  72. package/localization/pkg/id.xliff +1 -1
  73. package/localization/pkg/it.xliff +1 -1
  74. package/localization/pkg/ja.xliff +1 -1
  75. package/localization/pkg/ko.xliff +1 -1
  76. package/localization/pkg/lt.xliff +1 -1
  77. package/localization/pkg/lv.xliff +1 -1
  78. package/localization/pkg/nb.xliff +1 -1
  79. package/localization/pkg/nl.xliff +1 -1
  80. package/localization/pkg/pl.xliff +1 -1
  81. package/localization/pkg/pt-BR.xliff +1 -1
  82. package/localization/pkg/pt-PT.xliff +1 -1
  83. package/localization/pkg/ro.xliff +1 -1
  84. package/localization/pkg/ru.xliff +1 -1
  85. package/localization/pkg/sk.xliff +1 -1
  86. package/localization/pkg/sl.xliff +1 -1
  87. package/localization/pkg/sv.xliff +1 -1
  88. package/localization/pkg/tr.xliff +1 -1
  89. package/localization/pkg/uk.xliff +1 -1
  90. package/localization/pkg/zh-hans.xliff +2 -2
  91. package/localization/pkg/zh-hant.xliff +2 -2
  92. package/localization/pl.xlf +28 -7
  93. package/localization/pt-BR.xlf +28 -7
  94. package/localization/pt-PT.xlf +28 -7
  95. package/localization/ro.xlf +28 -7
  96. package/localization/ru.xlf +28 -7
  97. package/localization/sk.xlf +28 -7
  98. package/localization/sl.xlf +28 -7
  99. package/localization/snippets/ar.xliff +1 -1
  100. package/localization/snippets/bg.xliff +1 -1
  101. package/localization/snippets/cs.xliff +1 -1
  102. package/localization/snippets/da.xliff +1 -1
  103. package/localization/snippets/de.xliff +1 -1
  104. package/localization/snippets/el.xliff +1 -1
  105. package/localization/snippets/es.xliff +1 -1
  106. package/localization/snippets/et.xliff +1 -1
  107. package/localization/snippets/fi.xliff +1 -1
  108. package/localization/snippets/fr.xliff +1 -1
  109. package/localization/snippets/hu.xliff +1 -1
  110. package/localization/snippets/id.xliff +1 -1
  111. package/localization/snippets/it.xliff +1 -1
  112. package/localization/snippets/ja.xliff +1 -1
  113. package/localization/snippets/ko.xliff +1 -1
  114. package/localization/snippets/lt.xliff +1 -1
  115. package/localization/snippets/lv.xliff +1 -1
  116. package/localization/snippets/nb.xliff +1 -1
  117. package/localization/snippets/nl.xliff +1 -1
  118. package/localization/snippets/pl.xliff +1 -1
  119. package/localization/snippets/pt-BR.xliff +1 -1
  120. package/localization/snippets/pt-PT.xliff +1 -1
  121. package/localization/snippets/ro.xliff +1 -1
  122. package/localization/snippets/ru.xliff +1 -1
  123. package/localization/snippets/sk.xliff +1 -1
  124. package/localization/snippets/sl.xliff +1 -1
  125. package/localization/snippets/sv.xliff +1 -1
  126. package/localization/snippets/tr.xliff +1 -1
  127. package/localization/snippets/uk.xliff +1 -1
  128. package/localization/snippets/zh-hans.xliff +2 -2
  129. package/localization/snippets/zh-hant.xliff +2 -2
  130. package/localization/sv.xlf +28 -7
  131. package/localization/tr.xlf +28 -7
  132. package/localization/uk.xlf +28 -7
  133. package/localization/zh-hans.xlf +28 -7
  134. package/localization/zh-hant.xlf +28 -7
  135. package/package.json +2 -2
  136. package/snippets/MNIST.html +1 -1
  137. package/widgets/webwriter-model-designing.ts +25 -2
  138. package/widgets/webwriter-model-training.ts +45 -20
@@ -638,18 +638,18 @@ function squeezeShape(shape, axis) {
638
638
  const keptDims = [];
639
639
  const isEmptyArray = axis != null && Array.isArray(axis) && axis.length === 0;
640
640
  const axes = axis == null || isEmptyArray ? null : parseAxisParam(axis, shape).sort();
641
- let j4 = 0;
641
+ let j3 = 0;
642
642
  for (let i11 = 0; i11 < shape.length; ++i11) {
643
643
  if (axes != null) {
644
- if (axes[j4] === i11 && shape[i11] !== 1) {
644
+ if (axes[j3] === i11 && shape[i11] !== 1) {
645
645
  throw new Error(`Can't squeeze axis ${i11} since its dim '${shape[i11]}' is not 1`);
646
646
  }
647
- if ((axes[j4] == null || axes[j4] > i11) && shape[i11] === 1) {
647
+ if ((axes[j3] == null || axes[j3] > i11) && shape[i11] === 1) {
648
648
  newShape.push(shape[i11]);
649
649
  keptDims.push(i11);
650
650
  }
651
- if (axes[j4] <= i11) {
652
- j4++;
651
+ if (axes[j3] <= i11) {
652
+ j3++;
653
653
  }
654
654
  }
655
655
  if (shape[i11] !== 1) {
@@ -2615,7 +2615,7 @@ function getFilteredNodesXToY(tape, xs, y5) {
2615
2615
  for (const inputName in nodeInputs) {
2616
2616
  const input2 = nodeInputs[inputName];
2617
2617
  let anyInputFromX = false;
2618
- for (let j4 = 0; j4 < xs.length; j4++) {
2618
+ for (let j3 = 0; j3 < xs.length; j3++) {
2619
2619
  if (tensorsFromX[input2.id]) {
2620
2620
  node.outputs.forEach((output) => tensorsFromX[output.id] = true);
2621
2621
  anyInputFromX = true;
@@ -2634,8 +2634,8 @@ function getFilteredNodesXToY(tape, xs, y5) {
2634
2634
  for (let i11 = tape.length - 1; i11 >= 0; i11--) {
2635
2635
  const node = tape[i11];
2636
2636
  const nodeInputs = node.inputs;
2637
- for (let j4 = 0; j4 < node.outputs.length; j4++) {
2638
- if (tensorsLeadToY[node.outputs[j4].id]) {
2637
+ for (let j3 = 0; j3 < node.outputs.length; j3++) {
2638
+ if (tensorsLeadToY[node.outputs[j3].id]) {
2639
2639
  for (const inputName in nodeInputs) {
2640
2640
  tensorsLeadToY[nodeInputs[inputName].id] = true;
2641
2641
  nodesToY[node.id] = true;
@@ -2732,8 +2732,8 @@ function computeMaxSizePerColumn(vals, shape, dtype, strides) {
2732
2732
  if (rank > 1) {
2733
2733
  for (let row = 0; row < n14 / numCols; row++) {
2734
2734
  const offset3 = row * numCols;
2735
- for (let j4 = 0; j4 < numCols; j4++) {
2736
- padPerCol[j4] = Math.max(padPerCol[j4], valToString(valuesOrTuples[offset3 + j4], 0, dtype).length);
2735
+ for (let j3 = 0; j3 < numCols; j3++) {
2736
+ padPerCol[j3] = Math.max(padPerCol[j3], valToString(valuesOrTuples[offset3 + j3], 0, dtype).length);
2737
2737
  }
2738
2738
  }
2739
2739
  }
@@ -6863,10 +6863,10 @@ function basicLSTMCell_(forgetBias, lstmKernel, lstmBias, data, c9, h8) {
6863
6863
  const sliceCols = res.shape[1] / 4;
6864
6864
  const sliceSize = [batchSize, sliceCols];
6865
6865
  const i11 = slice(res, [0, 0], sliceSize);
6866
- const j4 = slice(res, [0, sliceCols], sliceSize);
6866
+ const j3 = slice(res, [0, sliceCols], sliceSize);
6867
6867
  const f6 = slice(res, [0, sliceCols * 2], sliceSize);
6868
6868
  const o16 = slice(res, [0, sliceCols * 3], sliceSize);
6869
- const newC = add2(mul(sigmoid(i11), tanh2(j4)), mul($c, sigmoid(add2($forgetBias, f6))));
6869
+ const newC = add2(mul(sigmoid(i11), tanh2(j3)), mul($c, sigmoid(add2($forgetBias, f6))));
6870
6870
  const newH = mul(tanh2(newC), sigmoid(o16));
6871
6871
  return [newC, newH];
6872
6872
  }
@@ -10173,22 +10173,22 @@ var require_xorshift7 = __commonJS({
10173
10173
  return v4;
10174
10174
  };
10175
10175
  function init(me3, seed2) {
10176
- var j4, w4, X2 = [];
10176
+ var j3, w4, X2 = [];
10177
10177
  if (seed2 === (seed2 | 0)) {
10178
10178
  w4 = X2[0] = seed2;
10179
10179
  } else {
10180
10180
  seed2 = "" + seed2;
10181
- for (j4 = 0; j4 < seed2.length; ++j4) {
10182
- X2[j4 & 7] = X2[j4 & 7] << 15 ^ seed2.charCodeAt(j4) + X2[j4 + 1 & 7] << 13;
10181
+ for (j3 = 0; j3 < seed2.length; ++j3) {
10182
+ X2[j3 & 7] = X2[j3 & 7] << 15 ^ seed2.charCodeAt(j3) + X2[j3 + 1 & 7] << 13;
10183
10183
  }
10184
10184
  }
10185
10185
  while (X2.length < 8) X2.push(0);
10186
- for (j4 = 0; j4 < 8 && X2[j4] === 0; ++j4) ;
10187
- if (j4 == 8) w4 = X2[7] = -1;
10188
- else w4 = X2[j4];
10186
+ for (j3 = 0; j3 < 8 && X2[j3] === 0; ++j3) ;
10187
+ if (j3 == 8) w4 = X2[7] = -1;
10188
+ else w4 = X2[j3];
10189
10189
  me3.x = X2;
10190
10190
  me3.i = 0;
10191
- for (j4 = 256; j4 > 0; --j4) {
10191
+ for (j3 = 256; j3 > 0; --j3) {
10192
10192
  me3.next();
10193
10193
  }
10194
10194
  }
@@ -10259,7 +10259,7 @@ var require_xor4096 = __commonJS({
10259
10259
  return v4 + (w4 ^ w4 >>> 16) | 0;
10260
10260
  };
10261
10261
  function init(me3, seed2) {
10262
- var t9, v4, i11, j4, w4, X2 = [], limit = 128;
10262
+ var t9, v4, i11, j3, w4, X2 = [], limit = 128;
10263
10263
  if (seed2 === (seed2 | 0)) {
10264
10264
  v4 = seed2;
10265
10265
  seed2 = null;
@@ -10268,16 +10268,16 @@ var require_xor4096 = __commonJS({
10268
10268
  v4 = 0;
10269
10269
  limit = Math.max(limit, seed2.length);
10270
10270
  }
10271
- for (i11 = 0, j4 = -32; j4 < limit; ++j4) {
10272
- if (seed2) v4 ^= seed2.charCodeAt((j4 + 32) % seed2.length);
10273
- if (j4 === 0) w4 = v4;
10271
+ for (i11 = 0, j3 = -32; j3 < limit; ++j3) {
10272
+ if (seed2) v4 ^= seed2.charCodeAt((j3 + 32) % seed2.length);
10273
+ if (j3 === 0) w4 = v4;
10274
10274
  v4 ^= v4 << 10;
10275
10275
  v4 ^= v4 >>> 15;
10276
10276
  v4 ^= v4 << 4;
10277
10277
  v4 ^= v4 >>> 13;
10278
- if (j4 >= 0) {
10278
+ if (j3 >= 0) {
10279
10279
  w4 = w4 + 1640531527 | 0;
10280
- t9 = X2[j4 & 127] ^= v4 + w4;
10280
+ t9 = X2[j3 & 127] ^= v4 + w4;
10281
10281
  i11 = 0 == t9 ? i11 + 1 : 0;
10282
10282
  }
10283
10283
  }
@@ -10285,7 +10285,7 @@ var require_xor4096 = __commonJS({
10285
10285
  X2[(seed2 && seed2.length || 0) & 127] = -1;
10286
10286
  }
10287
10287
  i11 = 127;
10288
- for (j4 = 4 * 128; j4 > 0; --j4) {
10288
+ for (j3 = 4 * 128; j3 > 0; --j3) {
10289
10289
  v4 = X2[i11 + 34 & 127];
10290
10290
  t9 = X2[i11 = i11 + 1 & 127];
10291
10291
  v4 ^= v4 << 13;
@@ -10489,7 +10489,7 @@ var require_seedrandom = __commonJS({
10489
10489
  );
10490
10490
  }
10491
10491
  function ARC4(key) {
10492
- var t9, keylen = key.length, me2 = this, i11 = 0, j4 = me2.i = me2.j = 0, s8 = me2.S = [];
10492
+ var t9, keylen = key.length, me2 = this, i11 = 0, j3 = me2.i = me2.j = 0, s8 = me2.S = [];
10493
10493
  if (!keylen) {
10494
10494
  key = [keylen++];
10495
10495
  }
@@ -10497,17 +10497,17 @@ var require_seedrandom = __commonJS({
10497
10497
  s8[i11] = i11++;
10498
10498
  }
10499
10499
  for (i11 = 0; i11 < width; i11++) {
10500
- s8[i11] = s8[j4 = mask & j4 + key[i11 % keylen] + (t9 = s8[i11])];
10501
- s8[j4] = t9;
10500
+ s8[i11] = s8[j3 = mask & j3 + key[i11 % keylen] + (t9 = s8[i11])];
10501
+ s8[j3] = t9;
10502
10502
  }
10503
10503
  (me2.g = function(count2) {
10504
- var t10, r12 = 0, i12 = me2.i, j5 = me2.j, s9 = me2.S;
10504
+ var t10, r12 = 0, i12 = me2.i, j4 = me2.j, s9 = me2.S;
10505
10505
  while (count2--) {
10506
10506
  t10 = s9[i12 = mask & i12 + 1];
10507
- r12 = r12 * width + s9[mask & (s9[i12] = s9[j5 = mask & j5 + t10]) + (s9[j5] = t10)];
10507
+ r12 = r12 * width + s9[mask & (s9[i12] = s9[j4 = mask & j4 + t10]) + (s9[j4] = t10)];
10508
10508
  }
10509
10509
  me2.i = i12;
10510
- me2.j = j5;
10510
+ me2.j = j4;
10511
10511
  return r12;
10512
10512
  })(width);
10513
10513
  }
@@ -10531,9 +10531,9 @@ var require_seedrandom = __commonJS({
10531
10531
  return result.length ? result : typ == "string" ? obj : obj + "\0";
10532
10532
  }
10533
10533
  function mixkey(seed, key) {
10534
- var stringseed = seed + "", smear, j4 = 0;
10535
- while (j4 < stringseed.length) {
10536
- key[mask & j4] = mask & (smear ^= key[mask & j4] * 19) + stringseed.charCodeAt(j4++);
10534
+ var stringseed = seed + "", smear, j3 = 0;
10535
+ while (j3 < stringseed.length) {
10536
+ key[mask & j3] = mask & (smear ^= key[mask & j3] * 19) + stringseed.charCodeAt(j3++);
10537
10537
  }
10538
10538
  return tostring(key);
10539
10539
  }
@@ -13357,8 +13357,8 @@ function nonMaxSuppressionImpl_(boxes, scores, maxOutputSize, iouThreshold, scor
13357
13357
  break;
13358
13358
  }
13359
13359
  let ignoreCandidate = false;
13360
- for (let j4 = selectedIndices.length - 1; j4 >= suppressBeginIndex; --j4) {
13361
- const iou = intersectionOverUnion(boxes, boxIndex, selectedIndices[j4]);
13360
+ for (let j3 = selectedIndices.length - 1; j3 >= suppressBeginIndex; --j3) {
13361
+ const iou = intersectionOverUnion(boxes, boxIndex, selectedIndices[j3]);
13362
13362
  if (iou >= iouThreshold) {
13363
13363
  ignoreCandidate = true;
13364
13364
  break;
@@ -13393,9 +13393,9 @@ function nonMaxSuppressionImpl_(boxes, scores, maxOutputSize, iouThreshold, scor
13393
13393
  }
13394
13394
  return result;
13395
13395
  }
13396
- function intersectionOverUnion(boxes, i11, j4) {
13396
+ function intersectionOverUnion(boxes, i11, j3) {
13397
13397
  const iCoord = boxes.subarray(i11 * 4, i11 * 4 + 4);
13398
- const jCoord = boxes.subarray(j4 * 4, j4 * 4 + 4);
13398
+ const jCoord = boxes.subarray(j3 * 4, j3 * 4 + 4);
13399
13399
  const yminI = Math.min(iCoord[0], iCoord[2]);
13400
13400
  const xminI = Math.min(iCoord[1], iCoord[3]);
13401
13401
  const ymaxI = Math.max(iCoord[0], iCoord[2]);
@@ -13800,8 +13800,8 @@ function bandPart_(a7, numLower, numUpper) {
13800
13800
  $numUpper = where(less(numUpper, 0), N4, minimum(numUpper, N4));
13801
13801
  }
13802
13802
  const i11 = reshape(range(0, M4, 1, "int32"), [-1, 1]);
13803
- const j4 = range(0, N4, 1, "int32");
13804
- const ij = sub(i11, j4);
13803
+ const j3 = range(0, N4, 1, "int32");
13804
+ const ij = sub(i11, j3);
13805
13805
  const inBand = logicalAnd(lessEqual(ij, $numLower), greaterEqual(ij, neg($numUpper)));
13806
13806
  const zero = zeros([M4, N4], $a2.dtype);
13807
13807
  return reshape(stack(unstack(reshape($a2, [-1, M4, N4])).map((mat) => where(inBand, mat, zero))), shape);
@@ -13850,8 +13850,8 @@ function gramSchmidt_(xs) {
13850
13850
  ys.push(ENGINE.tidy(() => {
13851
13851
  let x4 = xs1d[i11];
13852
13852
  if (i11 > 0) {
13853
- for (let j4 = 0; j4 < i11; ++j4) {
13854
- const proj = mul(sum2(mul(ys[j4], x4)), ys[j4]);
13853
+ for (let j3 = 0; j3 < i11; ++j3) {
13854
+ const proj = mul(sum2(mul(ys[j3], x4)), ys[j3]);
13855
13855
  x4 = sub(x4, proj);
13856
13856
  }
13857
13857
  }
@@ -13916,14 +13916,14 @@ function qr2d(x4, fullMatrices = false) {
13916
13916
  const one2D = tensor2d([[1]], [1, 1]);
13917
13917
  let w4 = clone(one2D);
13918
13918
  const iters = m6 >= n14 ? n14 : m6;
13919
- for (let j4 = 0; j4 < iters; ++j4) {
13919
+ for (let j3 = 0; j3 < iters; ++j3) {
13920
13920
  const rTemp = r12;
13921
13921
  const wTemp = w4;
13922
13922
  const qTemp = q2;
13923
13923
  [w4, r12, q2] = ENGINE.tidy(() => {
13924
- const rjEnd1 = slice(r12, [j4, j4], [m6 - j4, 1]);
13924
+ const rjEnd1 = slice(r12, [j3, j3], [m6 - j3, 1]);
13925
13925
  const normX = norm(rjEnd1);
13926
- const rjj = slice(r12, [j4, j4], [1, 1]);
13926
+ const rjj = slice(r12, [j3, j3], [1, 1]);
13927
13927
  const s8 = where(greater(rjj, 0), tensor2d([[-1]]), tensor2d([[1]]));
13928
13928
  const u1 = sub(rjj, mul(s8, normX));
13929
13929
  const wPre = div(rjEnd1, u1);
@@ -13936,22 +13936,22 @@ function qr2d(x4, fullMatrices = false) {
13936
13936
  ], 0);
13937
13937
  }
13938
13938
  const tau = neg(div(matMul(s8, u1), normX));
13939
- const rjEndAll = slice(r12, [j4, 0], [m6 - j4, n14]);
13939
+ const rjEndAll = slice(r12, [j3, 0], [m6 - j3, n14]);
13940
13940
  const tauTimesW = mul(tau, w4);
13941
13941
  const wT = transpose(w4);
13942
- if (j4 === 0) {
13942
+ if (j3 === 0) {
13943
13943
  r12 = sub(rjEndAll, matMul(tauTimesW, matMul(wT, rjEndAll)));
13944
13944
  } else {
13945
13945
  const rTimesTau = sub(rjEndAll, matMul(tauTimesW, matMul(wT, rjEndAll)));
13946
- r12 = concat([slice(r12, [0, 0], [j4, n14]), rTimesTau], 0);
13946
+ r12 = concat([slice(r12, [0, 0], [j3, n14]), rTimesTau], 0);
13947
13947
  }
13948
13948
  const tawTimesWT = transpose(tauTimesW);
13949
- const qAllJEnd = slice(q2, [0, j4], [m6, q2.shape[1] - j4]);
13950
- if (j4 === 0) {
13949
+ const qAllJEnd = slice(q2, [0, j3], [m6, q2.shape[1] - j3]);
13950
+ if (j3 === 0) {
13951
13951
  q2 = sub(qAllJEnd, matMul(matMul(qAllJEnd, w4), tawTimesWT));
13952
13952
  } else {
13953
13953
  const qTimesTau = sub(qAllJEnd, matMul(matMul(qAllJEnd, w4), tawTimesWT));
13954
- q2 = concat([slice(q2, [0, 0], [m6, j4]), qTimesTau], 1);
13954
+ q2 = concat([slice(q2, [0, 0], [m6, j3]), qTimesTau], 1);
13955
13955
  }
13956
13956
  return [w4, r12, q2];
13957
13957
  });
@@ -16674,11 +16674,11 @@ async function toPixels(img, canvas) {
16674
16674
  rgba[d5] = value * multiplier;
16675
16675
  }
16676
16676
  }
16677
- const j4 = i11 * 4;
16678
- bytes[j4 + 0] = Math.round(rgba[0]);
16679
- bytes[j4 + 1] = Math.round(rgba[1]);
16680
- bytes[j4 + 2] = Math.round(rgba[2]);
16681
- bytes[j4 + 3] = Math.round(rgba[3]);
16677
+ const j3 = i11 * 4;
16678
+ bytes[j3 + 0] = Math.round(rgba[0]);
16679
+ bytes[j3 + 1] = Math.round(rgba[1]);
16680
+ bytes[j3 + 2] = Math.round(rgba[2]);
16681
+ bytes[j3 + 3] = Math.round(rgba[3]);
16682
16682
  }
16683
16683
  if (canvas != null) {
16684
16684
  if (!hasToPixelsWarned) {
@@ -17801,8 +17801,8 @@ function decodeEinsumEquation(equation, numTensors) {
17801
17801
  throw new Error(`Found duplicate axes in input component ${inputTerms[i11]}. Support for duplicate axes in input is not implemented yet.`);
17802
17802
  }
17803
17803
  idDims[i11] = [];
17804
- for (let j4 = 0; j4 < inputTerms[i11].length; ++j4) {
17805
- idDims[i11].push(allDims.indexOf(inputTerms[i11][j4]));
17804
+ for (let j3 = 0; j3 < inputTerms[i11].length; ++j3) {
17805
+ idDims[i11].push(allDims.indexOf(inputTerms[i11][j3]));
17806
17806
  }
17807
17807
  }
17808
17808
  const numDims = allDims.length;
@@ -17832,11 +17832,11 @@ function checkEinsumDimSizes(nDims, idDims, tensors) {
17832
17832
  const dimSizes = new Array(nDims);
17833
17833
  for (let i11 = 0; i11 < tensors.length; ++i11) {
17834
17834
  const shape = tensors[i11].shape;
17835
- for (let j4 = 0; j4 < idDims[i11].length; ++j4) {
17836
- if (dimSizes[idDims[i11][j4]] === void 0) {
17837
- dimSizes[idDims[i11][j4]] = shape[j4];
17835
+ for (let j3 = 0; j3 < idDims[i11].length; ++j3) {
17836
+ if (dimSizes[idDims[i11][j3]] === void 0) {
17837
+ dimSizes[idDims[i11][j3]] = shape[j3];
17838
17838
  } else {
17839
- assert(dimSizes[idDims[i11][j4]] === shape[j4], () => `Expected dimension ${dimSizes[idDims[i11][j4]]} at axis ${j4} of input shaped ${JSON.stringify(shape)}, but got dimension ${shape[j4]}`);
17839
+ assert(dimSizes[idDims[i11][j3]] === shape[j3], () => `Expected dimension ${dimSizes[idDims[i11][j3]]} at axis ${j3} of input shaped ${JSON.stringify(shape)}, but got dimension ${shape[j3]}`);
17840
17840
  }
17841
17841
  }
17842
17842
  }
@@ -19323,8 +19323,8 @@ function arrayRange(start, stop) {
19323
19323
  function arrayConcat(arrays) {
19324
19324
  const result = [];
19325
19325
  for (let i11 = 0; i11 < arrays.length; ++i11) {
19326
- for (let j4 = 0; j4 < arrays[i11].length; ++j4) {
19327
- result.push(arrays[i11][j4]);
19326
+ for (let j3 = 0; j3 < arrays[i11].length; ++j3) {
19327
+ result.push(arrays[i11][j3]);
19328
19328
  }
19329
19329
  }
19330
19330
  return result;
@@ -20839,8 +20839,8 @@ var init_Tile_grad = __esm({
20839
20839
  }
20840
20840
  } else if (x4.rank === 2) {
20841
20841
  for (let i11 = 0; i11 < reps[0]; ++i11) {
20842
- for (let j4 = 0; j4 < reps[1]; ++j4) {
20843
- xGrad = add2(xGrad, slice(dy, [i11 * x4.shape[0], j4 * x4.shape[1]], [
20842
+ for (let j3 = 0; j3 < reps[1]; ++j3) {
20843
+ xGrad = add2(xGrad, slice(dy, [i11 * x4.shape[0], j3 * x4.shape[1]], [
20844
20844
  x4.shape[0],
20845
20845
  x4.shape[1]
20846
20846
  ]));
@@ -20848,20 +20848,20 @@ var init_Tile_grad = __esm({
20848
20848
  }
20849
20849
  } else if (x4.rank === 3) {
20850
20850
  for (let i11 = 0; i11 < reps[0]; ++i11) {
20851
- for (let j4 = 0; j4 < reps[1]; ++j4) {
20851
+ for (let j3 = 0; j3 < reps[1]; ++j3) {
20852
20852
  for (let k4 = 0; k4 < reps[2]; ++k4) {
20853
- xGrad = add2(xGrad, slice(dy, [i11 * x4.shape[0], j4 * x4.shape[1], k4 * x4.shape[2]], [x4.shape[0], x4.shape[1], x4.shape[2]]));
20853
+ xGrad = add2(xGrad, slice(dy, [i11 * x4.shape[0], j3 * x4.shape[1], k4 * x4.shape[2]], [x4.shape[0], x4.shape[1], x4.shape[2]]));
20854
20854
  }
20855
20855
  }
20856
20856
  }
20857
20857
  } else if (x4.rank === 4) {
20858
20858
  for (let i11 = 0; i11 < reps[0]; ++i11) {
20859
- for (let j4 = 0; j4 < reps[1]; ++j4) {
20859
+ for (let j3 = 0; j3 < reps[1]; ++j3) {
20860
20860
  for (let k4 = 0; k4 < reps[2]; ++k4) {
20861
20861
  for (let l8 = 0; l8 < reps[3]; ++l8) {
20862
20862
  xGrad = add2(xGrad, slice(dy, [
20863
20863
  i11 * x4.shape[0],
20864
- j4 * x4.shape[1],
20864
+ j3 * x4.shape[1],
20865
20865
  k4 * x4.shape[2],
20866
20866
  l8 * x4.shape[3]
20867
20867
  ], [x4.shape[0], x4.shape[1], x4.shape[2], x4.shape[3]]));
@@ -27711,10 +27711,10 @@ var init_container = __esm({
27711
27711
  continue;
27712
27712
  }
27713
27713
  const inputShapes2 = [];
27714
- for (let j4 = 0; j4 < node.inboundLayers.length; j4++) {
27715
- const inboundLayer = node.inboundLayers[j4];
27716
- const nodeIndex2 = node.nodeIndices[j4];
27717
- const tensorIndex = node.tensorIndices[j4];
27714
+ for (let j3 = 0; j3 < node.inboundLayers.length; j3++) {
27715
+ const inboundLayer = node.inboundLayers[j3];
27716
+ const nodeIndex2 = node.nodeIndices[j3];
27717
+ const tensorIndex = node.tensorIndices[j3];
27718
27718
  const shapeKey = `${inboundLayer.name}_${nodeIndex2}_${tensorIndex}`;
27719
27719
  const inputShape2 = layersToOutputShapes[shapeKey];
27720
27720
  inputShapes2.push(inputShape2);
@@ -27722,9 +27722,9 @@ var init_container = __esm({
27722
27722
  const outputShape = layer.computeOutputShape(singletonOrArray(inputShapes2));
27723
27723
  const outputShapes2 = normalizeShapeList(outputShape);
27724
27724
  const nodeIndex = layer.inboundNodes.indexOf(node);
27725
- for (let j4 = 0; j4 < outputShapes2.length; j4++) {
27726
- const shapeKey = `${layer.name}_${nodeIndex}_${j4}`;
27727
- layersToOutputShapes[shapeKey] = outputShapes2[j4];
27725
+ for (let j3 = 0; j3 < outputShapes2.length; j3++) {
27726
+ const shapeKey = `${layer.name}_${nodeIndex}_${j3}`;
27727
+ layersToOutputShapes[shapeKey] = outputShapes2[j3];
27728
27728
  }
27729
27729
  }
27730
27730
  }
@@ -28626,12 +28626,12 @@ function standardizeInputData(data, names2, shapes, checkBatchAxis = true, excep
28626
28626
  if (array2.shape.length !== shapes[i11].length) {
28627
28627
  throw new ValueError(`Error when checking ${exceptionPrefix}: expected ${names2[i11]} to have ${shapes[i11].length} dimension(s). but got array with shape ${array2.shape}`);
28628
28628
  }
28629
- for (let j4 = 0; j4 < shapes[i11].length; ++j4) {
28630
- if (j4 === 0 && !checkBatchAxis) {
28629
+ for (let j3 = 0; j3 < shapes[i11].length; ++j3) {
28630
+ if (j3 === 0 && !checkBatchAxis) {
28631
28631
  continue;
28632
28632
  }
28633
- const dim = array2.shape[j4];
28634
- const refDim = shapes[i11][j4];
28633
+ const dim = array2.shape[j3];
28634
+ const refDim = shapes[i11][j3];
28635
28635
  if (refDim != null && refDim >= 0 && dim !== refDim) {
28636
28636
  throw new ValueError(`${exceptionPrefix} expected a batch of elements where each example has shape [${shapes[i11].slice(1, shapes[i11].length)}] (i.e.,tensor shape [*,${shapes[i11].slice(1, shapes[i11].length)}]) but the ${exceptionPrefix} received an input with ${array2.shape[0]} examples, each with shape [${array2.shape.slice(1, array2.shape.length)}] (tensor shape [${array2.shape}])`);
28637
28637
  }
@@ -28676,9 +28676,9 @@ function checkLossAndTargetCompatibility(targets, lossFns, outputShapes) {
28676
28676
  if (keyLosses.indexOf(loss) !== -1) {
28677
28677
  const slicedYShape = y5.shape.slice(1);
28678
28678
  const slicedShape = shape.slice(1);
28679
- for (let j4 = 0; j4 < slicedYShape.length; ++j4) {
28680
- const targetDim = slicedYShape[j4];
28681
- const outDim = slicedShape[j4];
28679
+ for (let j3 = 0; j3 < slicedYShape.length; ++j3) {
28680
+ const targetDim = slicedYShape[j3];
28681
+ const outDim = slicedShape[j3];
28682
28682
  if (outDim != null && targetDim !== outDim) {
28683
28683
  throw new ValueError(`A target Tensor with shape ${y5.shape} was passed for an output of shape ${shape}, while using a loss function that expects targets to have the same shape as the output.`);
28684
28684
  }
@@ -28708,12 +28708,12 @@ function checkInputData(data, names2, shapes, checkBatchAxis = true, exceptionPr
28708
28708
  if (array2.shape.length !== shapes[i11].length) {
28709
28709
  throw new ValueError(`Error when checking ${exceptionPrefix}: expected ${names2[i11]} to have ${shapes[i11].length} dimension(s), but got array with shape ${JSON.stringify(array2.shape)}`);
28710
28710
  }
28711
- for (let j4 = 0; j4 < shapes[i11].length; ++j4) {
28712
- if (j4 === 0 && !checkBatchAxis) {
28711
+ for (let j3 = 0; j3 < shapes[i11].length; ++j3) {
28712
+ if (j3 === 0 && !checkBatchAxis) {
28713
28713
  continue;
28714
28714
  }
28715
- const dim = array2.shape[j4];
28716
- const refDim = shapes[i11][j4];
28715
+ const dim = array2.shape[j3];
28716
+ const refDim = shapes[i11][j3];
28717
28717
  if (refDim != null) {
28718
28718
  if (refDim !== dim) {
28719
28719
  throw new ValueError(`Error when checking ${exceptionPrefix}: expected ${names2[i11]} to have shape ${JSON.stringify(shapes[i11])} but got array with shape ${JSON.stringify(array2.shape)}.`);
@@ -34296,15 +34296,15 @@ var init_merge = __esm({
34296
34296
  const outputShape = shape1.slice(0, shape1.length - shape2.length);
34297
34297
  for (let k4 = 0; k4 < shape2.length; ++k4) {
34298
34298
  const i11 = shape1[shape1.length - shape2.length + k4];
34299
- const j4 = shape2[k4];
34300
- if (i11 == null || j4 == null || i11 < 0 || j4 < 0) {
34299
+ const j3 = shape2[k4];
34300
+ if (i11 == null || j3 == null || i11 < 0 || j3 < 0) {
34301
34301
  outputShape.push(null);
34302
34302
  } else if (i11 === 1) {
34303
- outputShape.push(j4);
34304
- } else if (j4 === 1) {
34303
+ outputShape.push(j3);
34304
+ } else if (j3 === 1) {
34305
34305
  outputShape.push(i11);
34306
34306
  } else {
34307
- if (i11 !== j4) {
34307
+ if (i11 !== j3) {
34308
34308
  throw new ValueError("Operands could not be broadcast together with shapes " + JSON.stringify(shape1) + " " + JSON.stringify(shape2));
34309
34309
  }
34310
34310
  outputShape.push(i11);
@@ -51201,8 +51201,8 @@ function bincountReduceImpl(xBuf, weightsBuf, size3, binaryOutput = false) {
51201
51201
  const numCols = xBuf.shape[1];
51202
51202
  const outBuf = buffer([numRows, size3], weightsBuf.dtype);
51203
51203
  for (let i11 = 0; i11 < numRows; i11++) {
51204
- for (let j4 = 0; j4 < numCols; j4++) {
51205
- const value = xBuf.get(i11, j4);
51204
+ for (let j3 = 0; j3 < numCols; j3++) {
51205
+ const value = xBuf.get(i11, j3);
51206
51206
  if (value < 0) {
51207
51207
  throw new Error("Input x must be non-negative!");
51208
51208
  }
@@ -51213,7 +51213,7 @@ function bincountReduceImpl(xBuf, weightsBuf, size3, binaryOutput = false) {
51213
51213
  outBuf.set(1, i11, value);
51214
51214
  } else {
51215
51215
  if (weightsBuf.size > 0) {
51216
- outBuf.set(outBuf.get(i11, value) + weightsBuf.get(i11, j4), i11, value);
51216
+ outBuf.set(outBuf.get(i11, value) + weightsBuf.get(i11, j3), i11, value);
51217
51217
  } else {
51218
51218
  outBuf.set(outBuf.get(i11, value) + 1, i11, value);
51219
51219
  }
@@ -51434,9 +51434,9 @@ function gatherNdImpl(indicesData, paramsBuf, dtype, numSlices, sliceRank, slice
51434
51434
  for (let i11 = 0; i11 < numSlices; i11++) {
51435
51435
  const index = [];
51436
51436
  let flattenIndex = 0;
51437
- for (let j4 = 0; j4 < sliceRank; j4++) {
51438
- const dim = indicesData[i11 * sliceRank + j4];
51439
- flattenIndex += dim * strides[j4];
51437
+ for (let j3 = 0; j3 < sliceRank; j3++) {
51438
+ const dim = indicesData[i11 * sliceRank + j3];
51439
+ flattenIndex += dim * strides[j3];
51440
51440
  index.push(dim);
51441
51441
  }
51442
51442
  if (flattenIndex < 0 || flattenIndex >= paramsSize / sliceSize) {
@@ -51584,8 +51584,8 @@ function maxImpl(aVals, reduceSize, outShape, dtype) {
51584
51584
  for (let i11 = 0; i11 < vals.length; ++i11) {
51585
51585
  const offset3 = i11 * reduceSize;
51586
51586
  let max6 = aVals[offset3];
51587
- for (let j4 = 0; j4 < reduceSize; ++j4) {
51588
- const value = aVals[offset3 + j4];
51587
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
51588
+ const value = aVals[offset3 + j3];
51589
51589
  if (Number.isNaN(value) || value > max6) {
51590
51590
  max6 = value;
51591
51591
  }
@@ -51764,8 +51764,8 @@ function prodImpl(xShape, xDtype, xVals, reductionAxes) {
51764
51764
  for (let i11 = 0; i11 < outVals.length; ++i11) {
51765
51765
  const offset3 = i11 * reduceSize;
51766
51766
  let prod4 = 1;
51767
- for (let j4 = 0; j4 < reduceSize; ++j4) {
51768
- prod4 *= xVals[offset3 + j4];
51767
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
51768
+ prod4 *= xVals[offset3 + j3];
51769
51769
  }
51770
51770
  outVals[i11] = prod4;
51771
51771
  }
@@ -51862,8 +51862,8 @@ function makeSplits(indices, indicesShape, paramsNestedSplits, numParamsDenseVal
51862
51862
  if (outDim >= 0) {
51863
51863
  const outSplitsOutDim = outSplits[outDim];
51864
51864
  const delta = outSplitsOutDim[outSplitsOutDim.length - 1] - splits[start];
51865
- for (let j4 = start; j4 < limit; ++j4) {
51866
- outSplits[outDim].push(splits[j4 + 1] + delta);
51865
+ for (let j3 = start; j3 < limit; ++j3) {
51866
+ outSplits[outDim].push(splits[j3 + 1] + delta);
51867
51867
  }
51868
51868
  }
51869
51869
  start = splits[start];
@@ -51882,7 +51882,7 @@ function getSplits(outSplits) {
51882
51882
  const numSplits = outSplits[i11].length;
51883
51883
  const splits = util_exports.getArrayFromDType("int32", numSplits);
51884
51884
  splitsOut.push(splits);
51885
- outSplits[i11].forEach((value, j4) => splits[j4] = value);
51885
+ outSplits[i11].forEach((value, j3) => splits[j3] = value);
51886
51886
  }
51887
51887
  return splitsOut;
51888
51888
  }
@@ -51902,8 +51902,8 @@ function writeValueSlices(paramsDenseValues, paramsDenseValuesShape, valueSlices
51902
51902
  let outPos = 0;
51903
51903
  for (const slice4 of valueSlices) {
51904
51904
  for (let i11 = slice4[0]; i11 < slice4[1]; ++i11) {
51905
- for (let j4 = 0; j4 < valueSize; ++j4) {
51906
- values[outPos * valuesM + j4] = paramsDenseValues[i11 * denseM + j4];
51905
+ for (let j3 = 0; j3 < valueSize; ++j3) {
51906
+ values[outPos * valuesM + j3] = paramsDenseValues[i11 * denseM + j3];
51907
51907
  }
51908
51908
  ++outPos;
51909
51909
  }
@@ -52175,11 +52175,11 @@ var init_RaggedTensorToTensor_impl = __esm({
52175
52175
  if (parentOutputIndexCurrent === -1) {
52176
52176
  realLength = 0;
52177
52177
  }
52178
- for (let j4 = 0; j4 < realLength; ++j4) {
52178
+ for (let j3 = 0; j3 < realLength; ++j3) {
52179
52179
  result.push(parentOutputIndexCurrent);
52180
52180
  parentOutputIndexCurrent += outputIndexMultiplier;
52181
52181
  }
52182
- for (let j4 = 0; j4 < rowLength - realLength; ++j4) {
52182
+ for (let j3 = 0; j3 < rowLength - realLength; ++j3) {
52183
52183
  result.push(-1);
52184
52184
  }
52185
52185
  }
@@ -52430,10 +52430,10 @@ function scatterImpl(indices, updates, shape, outputSize, sliceSize, numUpdates,
52430
52430
  for (let i11 = 0; i11 < numUpdates; i11++) {
52431
52431
  const index = [];
52432
52432
  let flattenIndex = 0;
52433
- for (let j4 = 0; j4 < sliceRank; j4++) {
52434
- const dim = indicesData[i11 * sliceRank + j4];
52433
+ for (let j3 = 0; j3 < sliceRank; j3++) {
52434
+ const dim = indicesData[i11 * sliceRank + j3];
52435
52435
  index.push(dim);
52436
- flattenIndex += dim * strides[j4];
52436
+ flattenIndex += dim * strides[j3];
52437
52437
  }
52438
52438
  if (flattenIndex < 0 || flattenIndex >= outputSize / sliceSize) {
52439
52439
  throw new Error(`Invalid indices: ${index} does not index into ${shape}`);
@@ -52488,7 +52488,7 @@ function sliceImpl(vals, begin, size3, shape, dtype) {
52488
52488
  const outBuf = buffer(size3, dtype);
52489
52489
  for (let i11 = 0; i11 < outBuf.size; ++i11) {
52490
52490
  const outLoc = outBuf.indexToLoc(i11);
52491
- const inLoc = outLoc.map((idx, j4) => idx + begin[j4]);
52491
+ const inLoc = outLoc.map((idx, j3) => idx + begin[j3]);
52492
52492
  outBuf.set(inBuf.get(...inLoc), ...outLoc);
52493
52493
  }
52494
52494
  if (dtype === "string") {
@@ -52589,8 +52589,8 @@ function sparseFillEmptyRowsImpl(indices, indicesShape, indicesDType, values, va
52589
52589
  const offset3 = filledCount[row];
52590
52590
  const outputI = (row === 0 ? 0 : csrOffset[row - 1]) + offset3;
52591
52591
  filledCount[row]++;
52592
- for (let j4 = 0; j4 < rank; ++j4) {
52593
- outputIndices[outputI * rank + j4] = indices[i11 * rank + j4];
52592
+ for (let j3 = 0; j3 < rank; ++j3) {
52593
+ outputIndices[outputI * rank + j3] = indices[i11 * rank + j3];
52594
52594
  }
52595
52595
  outputValues[outputI] = values[i11];
52596
52596
  reverseIndexMap[i11] = outputI;
@@ -52677,12 +52677,12 @@ function sparseReshapeImpl(inputIndices, inputIndicesShape, inputDType, inputSha
52677
52677
  const newIndices = util_exports.getArrayFromDType(inputDType, nnz * outputRank);
52678
52678
  for (let i11 = 0; i11 < nnz; ++i11) {
52679
52679
  let id3 = 0;
52680
- for (let j4 = 0; j4 < inputRank; ++j4) {
52681
- id3 += inputIndices[i11 * inputRank + j4] * inputStrides[j4];
52680
+ for (let j3 = 0; j3 < inputRank; ++j3) {
52681
+ id3 += inputIndices[i11 * inputRank + j3] * inputStrides[j3];
52682
52682
  }
52683
- for (let j4 = 0; j4 < outputRank; ++j4) {
52684
- newIndices[i11 * outputRank + j4] = Math.trunc(id3 / outputStrides[j4]);
52685
- id3 %= outputStrides[j4];
52683
+ for (let j3 = 0; j3 < outputRank; ++j3) {
52684
+ newIndices[i11 * outputRank + j3] = Math.trunc(id3 / outputStrides[j3]);
52685
+ id3 %= outputStrides[j3];
52686
52686
  }
52687
52687
  }
52688
52688
  return [newIndices, [nnz, outputRank], outputShape];
@@ -52742,13 +52742,13 @@ function sparseSegmentReductionImpl(input2, inputShape, inputDType, indices, seg
52742
52742
  if (index < 0 || index >= inputFlat[0]) {
52743
52743
  throw new Error(backend_util_exports.getSparseSegmentReductionIndicesOutOfRangeErrorMessage(i11, indices[i11], inputFlat[0]));
52744
52744
  }
52745
- for (let j4 = 0; j4 < numCol; j4++) {
52746
- output[outIndex * numCol + j4] += input2[index * numCol + j4];
52745
+ for (let j3 = 0; j3 < numCol; j3++) {
52746
+ output[outIndex * numCol + j3] += input2[index * numCol + j3];
52747
52747
  }
52748
52748
  }
52749
52749
  if (isMean) {
52750
- for (let j4 = 0; j4 < numCol; j4++) {
52751
- output[outIndex * numCol + j4] /= end - start;
52750
+ for (let j3 = 0; j3 < numCol; j3++) {
52751
+ output[outIndex * numCol + j3] /= end - start;
52752
52752
  }
52753
52753
  }
52754
52754
  start = end;
@@ -52833,8 +52833,8 @@ function stridedSliceImpl(outShape, xBuf, strides, begin) {
52833
52833
  for (let i11 = 0; i11 < outBuf.size; i11++) {
52834
52834
  const loc = outBuf.indexToLoc(i11);
52835
52835
  const newLoc = new Array(loc.length);
52836
- for (let j4 = 0; j4 < newLoc.length; j4++) {
52837
- newLoc[j4] = loc[j4] * strides[j4] + begin[j4];
52836
+ for (let j3 = 0; j3 < newLoc.length; j3++) {
52837
+ newLoc[j3] = loc[j3] * strides[j3] + begin[j3];
52838
52838
  }
52839
52839
  outBuf.set(xBuf.get(...newLoc), ...loc);
52840
52840
  }
@@ -53039,9 +53039,9 @@ function stringSplitImpl(input2, delimiter, skipEmpty) {
53039
53039
  const shape = [batchSize, maxNumEntries];
53040
53040
  let c9 = 0;
53041
53041
  for (let i11 = 0; i11 < batchSize; ++i11) {
53042
- for (let j4 = 0; j4 < numIndices[i11]; ++j4) {
53042
+ for (let j3 = 0; j3 < numIndices[i11]; ++j3) {
53043
53043
  indices[c9 * 2] = i11;
53044
- indices[c9 * 2 + 1] = j4;
53044
+ indices[c9 * 2 + 1] = j3;
53045
53045
  values[c9] = tokens[c9];
53046
53046
  ++c9;
53047
53047
  }
@@ -53098,8 +53098,8 @@ function tileImpl(xBuf, reps) {
53098
53098
  for (let i11 = 0; i11 < result.values.length; ++i11) {
53099
53099
  const newLoc = result.indexToLoc(i11);
53100
53100
  const originalLoc = new Array(xBuf.rank);
53101
- for (let j4 = 0; j4 < originalLoc.length; j4++) {
53102
- originalLoc[j4] = newLoc[j4] % xBuf.shape[j4];
53101
+ for (let j3 = 0; j3 < originalLoc.length; j3++) {
53102
+ originalLoc[j3] = newLoc[j3] % xBuf.shape[j3];
53103
53103
  }
53104
53104
  const originalIndex = xBuf.locToIndex(originalLoc);
53105
53105
  result.values[i11] = xBuf.values[originalIndex];
@@ -53127,33 +53127,33 @@ function select(array2, k4, left = 0, right = array2.length - 1) {
53127
53127
  }
53128
53128
  const t9 = array2[k4];
53129
53129
  let i11 = left;
53130
- let j4 = right;
53130
+ let j3 = right;
53131
53131
  util_exports.swap(array2, left, k4);
53132
53132
  if (comparePair(array2[right], t9) > 0) {
53133
53133
  util_exports.swap(array2, left, right);
53134
53134
  }
53135
- while (i11 < j4) {
53136
- util_exports.swap(array2, i11, j4);
53135
+ while (i11 < j3) {
53136
+ util_exports.swap(array2, i11, j3);
53137
53137
  i11++;
53138
- j4--;
53138
+ j3--;
53139
53139
  while (comparePair(array2[i11], t9) < 0) {
53140
53140
  i11 = i11 + 1;
53141
53141
  }
53142
- while (comparePair(array2[j4], t9) > 0) {
53143
- j4 = j4 - 1;
53142
+ while (comparePair(array2[j3], t9) > 0) {
53143
+ j3 = j3 - 1;
53144
53144
  }
53145
53145
  }
53146
53146
  if (comparePair(array2[left], t9) === 0) {
53147
- util_exports.swap(array2, left, j4);
53147
+ util_exports.swap(array2, left, j3);
53148
53148
  } else {
53149
- j4 = j4 + 1;
53150
- util_exports.swap(array2, j4, right);
53149
+ j3 = j3 + 1;
53150
+ util_exports.swap(array2, j3, right);
53151
53151
  }
53152
- if (j4 <= k4) {
53153
- left = j4 + 1;
53152
+ if (j3 <= k4) {
53153
+ left = j3 + 1;
53154
53154
  }
53155
- if (k4 <= j4) {
53156
- right = j4 - 1;
53155
+ if (k4 <= j3) {
53156
+ right = j3 - 1;
53157
53157
  }
53158
53158
  }
53159
53159
  }
@@ -53604,7 +53604,7 @@ function batchMatMul(args) {
53604
53604
  for (let k02 = 0; k02 < sharedDim; k02 += blockSize) {
53605
53605
  const kBlock = Math.min(k02 + blockSize, sharedDim);
53606
53606
  for (let i11 = i0; i11 < iBlock; i11++) {
53607
- for (let j4 = j0; j4 < jBlock; j4++) {
53607
+ for (let j3 = j0; j3 < jBlock; j3++) {
53608
53608
  let sum5 = 0;
53609
53609
  for (let k4 = k02; k4 < kBlock; k4++) {
53610
53610
  const aVal = (
@@ -53613,11 +53613,11 @@ function batchMatMul(args) {
53613
53613
  );
53614
53614
  const bVal = (
53615
53615
  // tslint:disable-next-line: max-line-length
53616
- b3dValues[k4 * bInnerStep + j4 * bOuterStep + batchIndexB * bBatch]
53616
+ b3dValues[k4 * bInnerStep + j3 * bOuterStep + batchIndexB * bBatch]
53617
53617
  );
53618
53618
  sum5 += aVal * bVal;
53619
53619
  }
53620
- resVals[bi2 * size3 + (i11 * rightDim + j4)] += sum5;
53620
+ resVals[bi2 * size3 + (i11 * rightDim + j3)] += sum5;
53621
53621
  }
53622
53622
  }
53623
53623
  }
@@ -53723,8 +53723,8 @@ function addN2(args) {
53723
53723
  const outVals = outBuf.values;
53724
53724
  for (let i11 = 0; i11 < tensors.length; i11++) {
53725
53725
  const currVals = vals[i11];
53726
- for (let j4 = 0; j4 < outVals.length; j4++) {
53727
- outVals[j4] += currVals[j4];
53726
+ for (let j3 = 0; j3 < outVals.length; j3++) {
53727
+ outVals[j3] += currVals[j3];
53728
53728
  }
53729
53729
  }
53730
53730
  return backend2.makeTensorInfo(outBuf.shape, outBuf.dtype, outBuf.values);
@@ -53764,8 +53764,8 @@ function all2(args) {
53764
53764
  for (let i11 = 0; i11 < vals.length; ++i11) {
53765
53765
  const offset3 = i11 * reduceSize;
53766
53766
  let all4 = aVals[offset3];
53767
- for (let j4 = 0; j4 < reduceSize; ++j4) {
53768
- const value = aVals[offset3 + j4];
53767
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
53768
+ const value = aVals[offset3 + j3];
53769
53769
  all4 = all4 && value;
53770
53770
  }
53771
53771
  vals[i11] = all4;
@@ -53819,8 +53819,8 @@ function any2(args) {
53819
53819
  for (let i11 = 0; i11 < vals.length; ++i11) {
53820
53820
  const offset3 = i11 * reduceSize;
53821
53821
  let anyVal = aVals[offset3];
53822
- for (let j4 = 0; j4 < reduceSize; ++j4) {
53823
- const value = aVals[offset3 + j4];
53822
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
53823
+ const value = aVals[offset3 + j3];
53824
53824
  anyVal = anyVal || value;
53825
53825
  }
53826
53826
  vals[i11] = anyVal;
@@ -53878,11 +53878,11 @@ function argMax2(args) {
53878
53878
  const offset3 = i11 * reduceSize;
53879
53879
  let max6 = aVals[offset3];
53880
53880
  let maxIndex = 0;
53881
- for (let j4 = 0; j4 < reduceSize; ++j4) {
53882
- const value = aVals[offset3 + j4];
53881
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
53882
+ const value = aVals[offset3 + j3];
53883
53883
  if (value > max6) {
53884
53884
  max6 = value;
53885
- maxIndex = j4;
53885
+ maxIndex = j3;
53886
53886
  }
53887
53887
  }
53888
53888
  vals[i11] = maxIndex;
@@ -53930,11 +53930,11 @@ function argMin2(args) {
53930
53930
  const offset3 = i11 * reduceSize;
53931
53931
  let min6 = aVals[offset3];
53932
53932
  let minIndex = 0;
53933
- for (let j4 = 0; j4 < reduceSize; ++j4) {
53934
- const value = aVals[offset3 + j4];
53933
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
53934
+ const value = aVals[offset3 + j3];
53935
53935
  if (value < min6) {
53936
53936
  min6 = value;
53937
- minIndex = j4;
53937
+ minIndex = j3;
53938
53938
  }
53939
53939
  }
53940
53940
  vals[i11] = minIndex;
@@ -55364,14 +55364,14 @@ function cumprod2(args) {
55364
55364
  const vals = util_exports.makeOnesTypedArray(util_exports.sizeFromShape($x.shape), resultDtype);
55365
55365
  const aVals = backend2.data.get($x.dataId).values;
55366
55366
  const finalDim = $x.shape[$x.shape.length - 1];
55367
- const indexAdjuster = reverse4 ? (i11, j4) => i11 + finalDim - j4 - 1 : (i11, j4) => i11 + j4;
55367
+ const indexAdjuster = reverse4 ? (i11, j3) => i11 + finalDim - j3 - 1 : (i11, j3) => i11 + j3;
55368
55368
  for (let i11 = 0; i11 < aVals.length; i11 += finalDim) {
55369
- for (let j4 = 0; j4 < finalDim; j4++) {
55370
- const idx = indexAdjuster(i11, j4);
55371
- if (j4 === 0) {
55369
+ for (let j3 = 0; j3 < finalDim; j3++) {
55370
+ const idx = indexAdjuster(i11, j3);
55371
+ if (j3 === 0) {
55372
55372
  vals[idx] = exclusive ? 1 : aVals[idx];
55373
55373
  } else {
55374
- const prevIdx = indexAdjuster(i11, j4 - 1);
55374
+ const prevIdx = indexAdjuster(i11, j3 - 1);
55375
55375
  vals[idx] = exclusive ? aVals[prevIdx] * vals[prevIdx] : aVals[idx] * vals[prevIdx];
55376
55376
  }
55377
55377
  }
@@ -55419,14 +55419,14 @@ function cumsum2(args) {
55419
55419
  const vals = util_exports.makeZerosTypedArray(util_exports.sizeFromShape($x.shape), resultDtype);
55420
55420
  const aVals = backend2.data.get($x.dataId).values;
55421
55421
  const finalDim = $x.shape[$x.shape.length - 1];
55422
- const indexAdjuster = reverse4 ? (i11, j4) => i11 + finalDim - j4 - 1 : (i11, j4) => i11 + j4;
55422
+ const indexAdjuster = reverse4 ? (i11, j3) => i11 + finalDim - j3 - 1 : (i11, j3) => i11 + j3;
55423
55423
  for (let i11 = 0; i11 < aVals.length; i11 += finalDim) {
55424
- for (let j4 = 0; j4 < finalDim; j4++) {
55425
- const idx = indexAdjuster(i11, j4);
55426
- if (j4 === 0) {
55424
+ for (let j3 = 0; j3 < finalDim; j3++) {
55425
+ const idx = indexAdjuster(i11, j3);
55426
+ if (j3 === 0) {
55427
55427
  vals[idx] = exclusive ? 0 : aVals[idx];
55428
55428
  } else {
55429
- const prevIdx = indexAdjuster(i11, j4 - 1);
55429
+ const prevIdx = indexAdjuster(i11, j3 - 1);
55430
55430
  vals[idx] = exclusive ? aVals[prevIdx] + vals[prevIdx] : aVals[idx] + vals[prevIdx];
55431
55431
  }
55432
55432
  }
@@ -55986,11 +55986,11 @@ function draw2(args) {
55986
55986
  rgba[d5] = value * multiplier;
55987
55987
  }
55988
55988
  }
55989
- const j4 = i11 * 4;
55990
- bytes[j4 + 0] = Math.round(rgba[0]);
55991
- bytes[j4 + 1] = Math.round(rgba[1]);
55992
- bytes[j4 + 2] = Math.round(rgba[2]);
55993
- bytes[j4 + 3] = Math.round(rgba[3]);
55989
+ const j3 = i11 * 4;
55990
+ bytes[j3 + 0] = Math.round(rgba[0]);
55991
+ bytes[j3 + 1] = Math.round(rgba[1]);
55992
+ bytes[j3 + 2] = Math.round(rgba[2]);
55993
+ bytes[j3 + 3] = Math.round(rgba[3]);
55994
55994
  }
55995
55995
  canvas.width = width;
55996
55996
  canvas.height = height;
@@ -56041,8 +56041,8 @@ function sum3(args) {
56041
56041
  for (let i11 = 0; i11 < vals.length; ++i11) {
56042
56042
  const offset3 = i11 * reduceSize;
56043
56043
  let sum5 = 0;
56044
- for (let j4 = 0; j4 < reduceSize; ++j4) {
56045
- sum5 += aVals[offset3 + j4];
56044
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
56045
+ sum5 += aVals[offset3 + j3];
56046
56046
  }
56047
56047
  vals[i11] = sum5;
56048
56048
  }
@@ -57354,8 +57354,8 @@ function min4(args) {
57354
57354
  for (let i11 = 0; i11 < vals.length; ++i11) {
57355
57355
  const offset3 = i11 * reduceSize;
57356
57356
  let min6 = aVals[offset3];
57357
- for (let j4 = 0; j4 < reduceSize; ++j4) {
57358
- const value = aVals[offset3 + j4];
57357
+ for (let j3 = 0; j3 < reduceSize; ++j3) {
57358
+ const value = aVals[offset3 + j3];
57359
57359
  if (Number.isNaN(value) || value < min6) {
57360
57360
  min6 = value;
57361
57361
  }
@@ -58488,7 +58488,7 @@ function select2(args) {
58488
58488
  let index = 0;
58489
58489
  const offset3 = conditionRank === 0 || conditionRank > 1 || t9.shape.length === 1 ? 1 : util_exports.sizeFromShape(t9.shape.slice(1));
58490
58490
  for (let i11 = 0; i11 < values.length; i11++) {
58491
- for (let j4 = 0; j4 < offset3; j4++) {
58491
+ for (let j3 = 0; j3 < offset3; j3++) {
58492
58492
  if (values[i11] === 1) {
58493
58493
  newValues[index++] = tValues[i11];
58494
58494
  } else {
@@ -72154,12 +72154,12 @@ var init_gather_nd_gpu = __esm({
72154
72154
  const dtype = getCoordsDataType(shape.length);
72155
72155
  let mainLoop = `
72156
72156
  int index;`;
72157
- for (let j4 = 0; j4 < this.sliceDim; j4++) {
72157
+ for (let j3 = 0; j3 < this.sliceDim; j3++) {
72158
72158
  mainLoop += `
72159
- index = round(getIndices(coords[0], ${j4}));
72159
+ index = round(getIndices(coords[0], ${j3}));
72160
72160
  out_of_bounds = out_of_bounds || index < 0;
72161
- out_of_bounds = out_of_bounds || index >= ${this.paramsShape[j4]};
72162
- flattenIndex += index * ${this.strides[j4]};`;
72161
+ out_of_bounds = out_of_bounds || index >= ${this.paramsShape[j3]};
72162
+ flattenIndex += index * ${this.strides[j3]};`;
72163
72163
  }
72164
72164
  this.userCode = `
72165
72165
  void main() {
@@ -74219,7 +74219,7 @@ var init_pad_packed_gpu = __esm({
74219
74219
  ];
74220
74220
  const paddingArea = rank === 1 ? "rc < start || rc >= end" : "any(lessThan(rc, start)) || any(greaterThanEqual(rc, end))";
74221
74221
  let mainLoop = "";
74222
- for (let i11 = 0, j4 = rank === 1 ? 2 : 4; i11 < j4; i11++) {
74222
+ for (let i11 = 0, j3 = rank === 1 ? 2 : 4; i11 < j3; i11++) {
74223
74223
  mainLoop += `
74224
74224
  ${componentSetup[i11]}
74225
74225
  if (${paddingArea}) {
@@ -78222,6 +78222,7 @@ var init_ar = __esm({
78222
78222
  "s32f2fa78e3267c4e": `\u0627\u0644\u062E\u0635\u0627\u0626\u0635 \u0641\u0642\u0637`,
78223
78223
  "s334f9922638204ab": `\u0645\u062C\u0645\u0648\u0639\u0629 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0629`,
78224
78224
  "s34af392b321cbfa6": `\u062A\u062D\u0631\u064A\u0631 \u0643\u0644 \u0634\u064A\u0621`,
78225
+ "s38c7b3d048d88c07": `\u062D\u0630\u0641 \u0627\u0644\u0645\u062D\u062F\u062F`,
78225
78226
  "s38ddf839c081bbaf": str`
78226
78227
  ${0} الضباب
78227
78228
  `,
@@ -78381,6 +78382,7 @@ var init_bg = __esm({
78381
78382
  "s32f2fa78e3267c4e": `\u0441\u0430\u043C\u043E \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430`,
78382
78383
  "s334f9922638204ab": `\u0418\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u043D\u0430\u0431\u043E\u0440 \u043E\u0442 \u0434\u0430\u043D\u043D\u0438`,
78383
78384
  "s34af392b321cbfa6": `\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u0432\u0441\u0438\u0447\u043A\u043E`,
78385
+ "s38c7b3d048d88c07": `\u0418\u0437\u0442\u0440\u0438\u0439 \u0438\u0437\u0431\u0440\u0430\u043D\u043E\u0442\u043E`,
78384
78386
  "s38ddf839c081bbaf": str`
78385
78387
  ${0} th измерение
78386
78388
  `,
@@ -78539,6 +78541,7 @@ var init_cs = __esm({
78539
78541
  "s32f2fa78e3267c4e": `pouze vlastnosti`,
78540
78542
  "s334f9922638204ab": `Dataset pou\u017E\xEDvaj\xEDc\xED`,
78541
78543
  "s34af392b321cbfa6": `upravit v\u0161e`,
78544
+ "s38c7b3d048d88c07": `Odstranit vybran\xE9`,
78542
78545
  "s38ddf839c081bbaf": str`
78543
78546
  ${0} th dim
78544
78547
  `,
@@ -78698,6 +78701,7 @@ var init_da = __esm({
78698
78701
  "s32f2fa78e3267c4e": `kun egenskaber`,
78699
78702
  "s334f9922638204ab": `Dataset ved hj\xE6lp af`,
78700
78703
  "s34af392b321cbfa6": `rediger alt`,
78704
+ "s38c7b3d048d88c07": `Slet det valgte`,
78701
78705
  "s38ddf839c081bbaf": str`
78702
78706
  ${0} th dim
78703
78707
  `,
@@ -78856,6 +78860,7 @@ var init_de = __esm({
78856
78860
  "s32f2fa78e3267c4e": `nur Eigenschaften`,
78857
78861
  "s334f9922638204ab": `Datensatz unter Verwendung von`,
78858
78862
  "s34af392b321cbfa6": `alles bearbeiten`,
78863
+ "s38c7b3d048d88c07": `Ausgew\xE4hltes l\xF6schen`,
78859
78864
  "s38ddf839c081bbaf": str`
78860
78865
  ${0} Dim.
78861
78866
  `,
@@ -79014,6 +79019,7 @@ var init_el = __esm({
79014
79019
  "s32f2fa78e3267c4e": `\u03B9\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03BC\u03CC\u03BD\u03BF`,
79015
79020
  "s334f9922638204ab": `\u03A7\u03C1\u03AE\u03C3\u03B7 \u03C3\u03C5\u03BD\u03CC\u03BB\u03BF\u03C5 \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03C9\u03BD`,
79016
79021
  "s34af392b321cbfa6": `\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03CC\u03BB\u03C9\u03BD`,
79022
+ "s38c7b3d048d88c07": `\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03C9\u03BD`,
79017
79023
  "s38ddf839c081bbaf": str`
79018
79024
  ${0} η διάσταση
79019
79025
  `,
@@ -79174,6 +79180,7 @@ var init_es = __esm({
79174
79180
  "s32f2fa78e3267c4e": `solo propiedades`,
79175
79181
  "s334f9922638204ab": `Conjunto de datos utilizando`,
79176
79182
  "s34af392b321cbfa6": `editar todo`,
79183
+ "s38c7b3d048d88c07": `Eliminar los elementos seleccionados`,
79177
79184
  "s38ddf839c081bbaf": str`
79178
79185
  ${0} la dimensión
79179
79186
  `,
@@ -79333,6 +79340,7 @@ var init_et = __esm({
79333
79340
  "s32f2fa78e3267c4e": `ainult omadused`,
79334
79341
  "s334f9922638204ab": `Andmekogum kasutades`,
79335
79342
  "s34af392b321cbfa6": `k\xF5ike muuta`,
79343
+ "s38c7b3d048d88c07": `Kustuta valitud`,
79336
79344
  "s38ddf839c081bbaf": str`
79337
79345
  ${0} th dim
79338
79346
  `,
@@ -79492,6 +79500,7 @@ var init_fi = __esm({
79492
79500
  "s32f2fa78e3267c4e": `vain ominaisuudet`,
79493
79501
  "s334f9922638204ab": `K\xE4ytt\xE4m\xE4si tietojoukko`,
79494
79502
  "s34af392b321cbfa6": `muokkaa kaikkea`,
79503
+ "s38c7b3d048d88c07": `Poista valitut`,
79495
79504
  "s38ddf839c081bbaf": str`
79496
79505
  ${0} th dim
79497
79506
  `,
@@ -79650,6 +79659,7 @@ var init_fr = __esm({
79650
79659
  "s32f2fa78e3267c4e": `propri\xE9t\xE9s uniquement`,
79651
79660
  "s334f9922638204ab": `Ensemble de donn\xE9es utilisant`,
79652
79661
  "s34af392b321cbfa6": `modifier tout`,
79662
+ "s38c7b3d048d88c07": `Supprimer la s\xE9lection`,
79653
79663
  "s38ddf839c081bbaf": str`
79654
79664
  ${0} th dim
79655
79665
  `,
@@ -79809,6 +79819,7 @@ var init_hu = __esm({
79809
79819
  "s32f2fa78e3267c4e": `csak tulajdons\xE1gok`,
79810
79820
  "s334f9922638204ab": `Adatk\xE9szlet haszn\xE1lata`,
79811
79821
  "s34af392b321cbfa6": `mindent szerkeszteni`,
79822
+ "s38c7b3d048d88c07": `A kijel\xF6ltek t\xF6rl\xE9se`,
79812
79823
  "s38ddf839c081bbaf": str`
79813
79824
  ${0} th dim
79814
79825
  `,
@@ -79967,6 +79978,7 @@ var init_id = __esm({
79967
79978
  "s32f2fa78e3267c4e": `hanya properti`,
79968
79979
  "s334f9922638204ab": `Dataset yang menggunakan`,
79969
79980
  "s34af392b321cbfa6": `edit semuanya`,
79981
+ "s38c7b3d048d88c07": `Hapus yang dipilih`,
79970
79982
  "s38ddf839c081bbaf": str`
79971
79983
  ${0} dimensi ke-th
79972
79984
  `,
@@ -80126,6 +80138,7 @@ var init_it = __esm({
80126
80138
  "s32f2fa78e3267c4e": `solo propriet\xE0`,
80127
80139
  "s334f9922638204ab": `Set di dati utilizzando`,
80128
80140
  "s34af392b321cbfa6": `modifica tutto`,
80141
+ "s38c7b3d048d88c07": `Elimina selezionati`,
80129
80142
  "s38ddf839c081bbaf": str`
80130
80143
  ${0} la dimensione
80131
80144
  `,
@@ -80285,6 +80298,7 @@ var init_ja = __esm({
80285
80298
  "s32f2fa78e3267c4e": `\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u307F`,
80286
80299
  "s334f9922638204ab": `\u4F7F\u7528\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8`,
80287
80300
  "s34af392b321cbfa6": `\u3059\u3079\u3066\u3092\u7DE8\u96C6\u3059\u308B`,
80301
+ "s38c7b3d048d88c07": `\u9078\u629E\u3057\u305F\u9805\u76EE\u3092\u524A\u9664`,
80288
80302
  "s38ddf839c081bbaf": str`
80289
80303
  ${0} 第
80290
80304
  `,
@@ -80443,6 +80457,7 @@ var init_ko = __esm({
80443
80457
  "s32f2fa78e3267c4e": `\uC18D\uC131\uB9CC`,
80444
80458
  "s334f9922638204ab": `\uB370\uC774\uD130\uC14B \uC0AC\uC6A9`,
80445
80459
  "s34af392b321cbfa6": `\uBAA8\uB4E0 \uAC83\uC744 \uC218\uC815\uD558\uB2E4`,
80460
+ "s38c7b3d048d88c07": `\uC120\uD0DD\uD55C \uD56D\uBAA9 \uC0AD\uC81C`,
80446
80461
  "s38ddf839c081bbaf": str`
80447
80462
  ${0} th 차원
80448
80463
  `,
@@ -80601,6 +80616,7 @@ var init_lt = __esm({
80601
80616
  "s32f2fa78e3267c4e": `tik savyb\u0117s`,
80602
80617
  "s334f9922638204ab": `Duomen\u0173 rinkinys, naudojantis`,
80603
80618
  "s34af392b321cbfa6": `redaguoti visk\u0105`,
80619
+ "s38c7b3d048d88c07": `I\u0161trinti pa\u017Eym\u0117tus`,
80604
80620
  "s38ddf839c081bbaf": str`
80605
80621
  ${0} th dim
80606
80622
  `,
@@ -80759,6 +80775,7 @@ var init_lv = __esm({
80759
80775
  "s32f2fa78e3267c4e": `tikai \u012Bpa\u0161\u012Bbas`,
80760
80776
  "s334f9922638204ab": `Datu kopa, izmantojot`,
80761
80777
  "s34af392b321cbfa6": `redi\u0123\u0113t visu`,
80778
+ "s38c7b3d048d88c07": `Dz\u0113st atlas\u012Bto`,
80762
80779
  "s38ddf839c081bbaf": str`
80763
80780
  ${0} th dim
80764
80781
  `,
@@ -80917,6 +80934,7 @@ var init_nb = __esm({
80917
80934
  "s32f2fa78e3267c4e": `egenskaper kun`,
80918
80935
  "s334f9922638204ab": `Dataset ved bruk av`,
80919
80936
  "s34af392b321cbfa6": `rediger alt`,
80937
+ "s38c7b3d048d88c07": `Slett det valgte`,
80920
80938
  "s38ddf839c081bbaf": str`
80921
80939
  ${0} th dim
80922
80940
  `,
@@ -81075,6 +81093,7 @@ var init_nl = __esm({
81075
81093
  "s32f2fa78e3267c4e": `alleen eigenschappen`,
81076
81094
  "s334f9922638204ab": `Gebruikte dataset`,
81077
81095
  "s34af392b321cbfa6": `alles bewerken`,
81096
+ "s38c7b3d048d88c07": `Geselecteerde items verwijderen`,
81078
81097
  "s38ddf839c081bbaf": str`
81079
81098
  ${0} th dim
81080
81099
  `,
@@ -81233,6 +81252,7 @@ var init_pl = __esm({
81233
81252
  "s32f2fa78e3267c4e": `tylko w\u0142a\u015Bciwo\u015Bci`,
81234
81253
  "s334f9922638204ab": `Zbi\xF3r danych wykorzystuj\u0105cy`,
81235
81254
  "s34af392b321cbfa6": `edytuj wszystko`,
81255
+ "s38c7b3d048d88c07": `Usu\u0144 zaznaczone`,
81236
81256
  "s38ddf839c081bbaf": str`
81237
81257
  ${0} th dim
81238
81258
  `,
@@ -81392,6 +81412,7 @@ var init_pt_BR = __esm({
81392
81412
  "s32f2fa78e3267c4e": `apenas propriedades`,
81393
81413
  "s334f9922638204ab": `Conjunto de dados utilizando`,
81394
81414
  "s34af392b321cbfa6": `editar tudo`,
81415
+ "s38c7b3d048d88c07": `Excluir os itens selecionados`,
81395
81416
  "s38ddf839c081bbaf": str`
81396
81417
  ${0} a dimensão
81397
81418
  `,
@@ -81551,6 +81572,7 @@ var init_pt_PT = __esm({
81551
81572
  "s32f2fa78e3267c4e": `apenas propriedades`,
81552
81573
  "s334f9922638204ab": `Conjunto de dados utilizando`,
81553
81574
  "s34af392b321cbfa6": `editar tudo`,
81575
+ "s38c7b3d048d88c07": `Apagar os elementos selecionados`,
81554
81576
  "s38ddf839c081bbaf": str`
81555
81577
  ${0} a dimensão
81556
81578
  `,
@@ -81710,6 +81732,7 @@ var init_ro = __esm({
81710
81732
  "s32f2fa78e3267c4e": `numai propriet\u0103\u021Bi`,
81711
81733
  "s334f9922638204ab": `Set de date utilizat`,
81712
81734
  "s34af392b321cbfa6": `editeaz\u0103 totul`,
81735
+ "s38c7b3d048d88c07": `\u0218terge elementele selectate`,
81713
81736
  "s38ddf839c081bbaf": str`
81714
81737
  ${0} dim
81715
81738
  `,
@@ -81869,6 +81892,7 @@ var init_ru = __esm({
81869
81892
  "s32f2fa78e3267c4e": `\u0442\u043E\u043B\u044C\u043A\u043E \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430`,
81870
81893
  "s334f9922638204ab": `\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430\u0431\u043E\u0440\u0430 \u0434\u0430\u043D\u043D\u044B\u0445`,
81871
81894
  "s34af392b321cbfa6": `\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435`,
81895
+ "s38c7b3d048d88c07": `\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u043D\u043E\u0435`,
81872
81896
  "s38ddf839c081bbaf": str`
81873
81897
  ${0} th измерение
81874
81898
  `,
@@ -82028,6 +82052,7 @@ var init_sk = __esm({
82028
82052
  "s32f2fa78e3267c4e": `len vlastnosti`,
82029
82053
  "s334f9922638204ab": `Dataset pou\u017E\xEDvaj\xFAci`,
82030
82054
  "s34af392b321cbfa6": `upravi\u0165 v\u0161etko`,
82055
+ "s38c7b3d048d88c07": `Odstr\xE1ni\u0165 vybran\xE9`,
82031
82056
  "s38ddf839c081bbaf": str`
82032
82057
  ${0} th dim
82033
82058
  `,
@@ -82187,6 +82212,7 @@ var init_sl = __esm({
82187
82212
  "s32f2fa78e3267c4e": `samo lastnosti`,
82188
82213
  "s334f9922638204ab": `Podatkovna zbirka, ki uporablja`,
82189
82214
  "s34af392b321cbfa6": `uredi vse`,
82215
+ "s38c7b3d048d88c07": `Izbri\u0161i izbrano`,
82190
82216
  "s38ddf839c081bbaf": str`
82191
82217
  ${0} th dim
82192
82218
  `,
@@ -82346,6 +82372,7 @@ var init_sv = __esm({
82346
82372
  "s32f2fa78e3267c4e": `endast egenskaper`,
82347
82373
  "s334f9922638204ab": `Dataset som anv\xE4nder`,
82348
82374
  "s34af392b321cbfa6": `redigera allt`,
82375
+ "s38c7b3d048d88c07": `Ta bort det markerade`,
82349
82376
  "s38ddf839c081bbaf": str`
82350
82377
  ${0} th dim
82351
82378
  `,
@@ -82504,6 +82531,7 @@ var init_tr = __esm({
82504
82531
  "s32f2fa78e3267c4e": `sadece \xF6zellikler`,
82505
82532
  "s334f9922638204ab": `Kullan\u0131lan veri k\xFCmesi`,
82506
82533
  "s34af392b321cbfa6": `her \u015Feyi d\xFCzenle`,
82534
+ "s38c7b3d048d88c07": `Se\xE7ilenleri sil`,
82507
82535
  "s38ddf839c081bbaf": str`
82508
82536
  ${0} th dim
82509
82537
  `,
@@ -82662,6 +82690,7 @@ var init_uk = __esm({
82662
82690
  "s32f2fa78e3267c4e": `\u0442\u0456\u043B\u044C\u043A\u0438 \u0432\u043B\u0430\u0441\u0442\u0438\u0432\u043E\u0441\u0442\u0456`,
82663
82691
  "s334f9922638204ab": `\u041D\u0430\u0431\u0456\u0440 \u0434\u0430\u043D\u0438\u0445, \u0449\u043E \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u0442\u044C\u0441\u044F`,
82664
82692
  "s34af392b321cbfa6": `\u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0435`,
82693
+ "s38c7b3d048d88c07": `\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0432\u0438\u0431\u0440\u0430\u043D\u0435`,
82665
82694
  "s38ddf839c081bbaf": str`
82666
82695
  ${0} th dim
82667
82696
  `,
@@ -82871,6 +82900,7 @@ var init_zh_hans = __esm({
82871
82900
  "s6c5b5757b7756775": `Center View`,
82872
82901
  "s22fde937cb709859": `Zoom In`,
82873
82902
  "sb05582ce916894da": `Zoom Out`,
82903
+ "s38c7b3d048d88c07": `Delete selected`,
82874
82904
  "sdab07807ff1b6b12": `Model Design Widget hidden from students.`,
82875
82905
  "s026fba1543d336b2": `Feature Source`,
82876
82906
  "s32f2fa78e3267c4e": `properties only`,
@@ -83012,6 +83042,7 @@ var init_zh_hant = __esm({
83012
83042
  "s6c5b5757b7756775": `Center View`,
83013
83043
  "s22fde937cb709859": `Zoom In`,
83014
83044
  "sb05582ce916894da": `Zoom Out`,
83045
+ "s38c7b3d048d88c07": `Delete selected`,
83015
83046
  "sdab07807ff1b6b12": `Model Design Widget hidden from students.`,
83016
83047
  "s026fba1543d336b2": `Feature Source`,
83017
83048
  "s32f2fa78e3267c4e": `properties only`,
@@ -83730,13 +83761,13 @@ var N = (t9, i11) => {
83730
83761
  }
83731
83762
  return [V(t9, l8 + (t9[s8] || "<?>") + (2 === i11 ? "</svg>" : 3 === i11 ? "</math>" : "")), e13];
83732
83763
  };
83733
- var S2 = class _S {
83764
+ var S2 = class _S2 {
83734
83765
  constructor({ strings: t9, _$litType$: i11 }, e13) {
83735
83766
  let r12;
83736
83767
  this.parts = [];
83737
83768
  let l8 = 0, a7 = 0;
83738
83769
  const u6 = t9.length - 1, d5 = this.parts, [f6, v4] = N(t9, i11);
83739
- if (this.el = _S.createElement(f6, e13), P.currentNode = this.el.content, 2 === i11 || 3 === i11) {
83770
+ if (this.el = _S2.createElement(f6, e13), P.currentNode = this.el.content, 2 === i11 || 3 === i11) {
83740
83771
  const t10 = this.el.content.firstChild;
83741
83772
  t10.replaceWith(...t10.childNodes);
83742
83773
  }
@@ -83801,7 +83832,7 @@ var R = class {
83801
83832
  for (const s8 of this._$AV) void 0 !== s8 && (void 0 !== s8.strings ? (s8._$AI(t9, s8, i11), i11 += s8.strings.length - 2) : s8._$AI(t9[i11])), i11++;
83802
83833
  }
83803
83834
  };
83804
- var k = class _k {
83835
+ var k = class _k2 {
83805
83836
  get _$AU() {
83806
83837
  return this._$AM?._$AU ?? this._$Cv;
83807
83838
  }
@@ -83847,7 +83878,7 @@ var k = class _k {
83847
83878
  u2(this._$AH) || (this._$AH = [], this._$AR());
83848
83879
  const i11 = this._$AH;
83849
83880
  let s8, e13 = 0;
83850
- for (const h8 of t9) e13 === i11.length ? i11.push(s8 = new _k(this.O(c3()), this.O(c3()), this, this.options)) : s8 = i11[e13], s8._$AI(h8), e13++;
83881
+ for (const h8 of t9) e13 === i11.length ? i11.push(s8 = new _k2(this.O(c3()), this.O(c3()), this, this.options)) : s8 = i11[e13], s8._$AI(h8), e13++;
83851
83882
  e13 < i11.length && (this._$AR(s8 && s8._$AB.nextSibling, e13), i11.length = e13);
83852
83883
  }
83853
83884
  _$AR(t9 = this._$AA.nextSibling, s8) {
@@ -83927,7 +83958,7 @@ var Z = class {
83927
83958
  };
83928
83959
  var j2 = { M: h2, P: o3, A: n3, C: 1, L: N, R, D: d2, V: M, I: k, H, N: L, U: z, B: I, F: Z };
83929
83960
  var B = t2.litHtmlPolyfillSupport;
83930
- B?.(S2, k), (t2.litHtmlVersions ??= []).push("3.3.2");
83961
+ B?.(S2, k), (t2.litHtmlVersions ??= []).push("3.3.3");
83931
83962
  var D = (t9, i11, s8) => {
83932
83963
  const e13 = s8?.renderBefore ?? i11;
83933
83964
  let h8 = e13._$litPart$;
@@ -85342,9 +85373,14 @@ var LocalizeController = class {
85342
85373
  }
85343
85374
  getTranslationData(lang) {
85344
85375
  var _a3, _b;
85345
- const locale = new Intl.Locale(lang.replace(/_/g, "-"));
85346
- const language = locale === null || locale === void 0 ? void 0 : locale.language.toLowerCase();
85347
- const region = (_b = (_a3 = locale === null || locale === void 0 ? void 0 : locale.region) === null || _a3 === void 0 ? void 0 : _a3.toLowerCase()) !== null && _b !== void 0 ? _b : "";
85376
+ let locale;
85377
+ try {
85378
+ locale = new Intl.Locale(lang.replace(/_/g, "-"));
85379
+ } catch (_c) {
85380
+ return { locale: void 0, language: "", region: "", primary: void 0, secondary: void 0 };
85381
+ }
85382
+ const language = locale.language.toLowerCase();
85383
+ const region = (_b = (_a3 = locale.region) === null || _a3 === void 0 ? void 0 : _a3.toLowerCase()) !== null && _b !== void 0 ? _b : "";
85348
85384
  const primary = translations.get(`${language}-${region}`);
85349
85385
  const secondary = translations.get(language);
85350
85386
  return { locale, language, region, primary, secondary };
@@ -85931,10 +85967,6 @@ var oppositeSideMap = {
85931
85967
  bottom: "top",
85932
85968
  top: "bottom"
85933
85969
  };
85934
- var oppositeAlignmentMap = {
85935
- start: "end",
85936
- end: "start"
85937
- };
85938
85970
  function clamp(start, value, end) {
85939
85971
  return max(start, min(value, end));
85940
85972
  }
@@ -85953,9 +85985,9 @@ function getOppositeAxis(axis) {
85953
85985
  function getAxisLength(axis) {
85954
85986
  return axis === "y" ? "height" : "width";
85955
85987
  }
85956
- var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
85957
85988
  function getSideAxis(placement) {
85958
- return yAxisSides.has(getSide(placement)) ? "y" : "x";
85989
+ const firstChar = placement[0];
85990
+ return firstChar === "t" || firstChar === "b" ? "y" : "x";
85959
85991
  }
85960
85992
  function getAlignmentAxis(placement) {
85961
85993
  return getOppositeAxis(getSideAxis(placement));
@@ -85978,7 +86010,7 @@ function getExpandedPlacements(placement) {
85978
86010
  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
85979
86011
  }
85980
86012
  function getOppositeAlignmentPlacement(placement) {
85981
- return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
86013
+ return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
85982
86014
  }
85983
86015
  var lrPlacement = ["left", "right"];
85984
86016
  var rlPlacement = ["right", "left"];
@@ -86009,7 +86041,8 @@ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
86009
86041
  return list;
86010
86042
  }
86011
86043
  function getOppositePlacement(placement) {
86012
- return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
86044
+ const side = getSide(placement);
86045
+ return oppositeSideMap[side] + placement.slice(side.length);
86013
86046
  }
86014
86047
  function expandPaddingObject(padding) {
86015
86048
  return {
@@ -86103,6 +86136,63 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
86103
86136
  }
86104
86137
  return coords2;
86105
86138
  }
86139
+ async function detectOverflow(state, options) {
86140
+ var _await$platform$isEle;
86141
+ if (options === void 0) {
86142
+ options = {};
86143
+ }
86144
+ const {
86145
+ x: x4,
86146
+ y: y5,
86147
+ platform: platform2,
86148
+ rects,
86149
+ elements,
86150
+ strategy
86151
+ } = state;
86152
+ const {
86153
+ boundary = "clippingAncestors",
86154
+ rootBoundary = "viewport",
86155
+ elementContext = "floating",
86156
+ altBoundary = false,
86157
+ padding = 0
86158
+ } = evaluate(options, state);
86159
+ const paddingObject = getPaddingObject(padding);
86160
+ const altContext = elementContext === "floating" ? "reference" : "floating";
86161
+ const element = elements[altBoundary ? altContext : elementContext];
86162
+ const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
86163
+ element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
86164
+ boundary,
86165
+ rootBoundary,
86166
+ strategy
86167
+ }));
86168
+ const rect = elementContext === "floating" ? {
86169
+ x: x4,
86170
+ y: y5,
86171
+ width: rects.floating.width,
86172
+ height: rects.floating.height
86173
+ } : rects.reference;
86174
+ const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
86175
+ const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
86176
+ x: 1,
86177
+ y: 1
86178
+ } : {
86179
+ x: 1,
86180
+ y: 1
86181
+ };
86182
+ const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
86183
+ elements,
86184
+ rect,
86185
+ offsetParent,
86186
+ strategy
86187
+ }) : rect);
86188
+ return {
86189
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
86190
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
86191
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
86192
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
86193
+ };
86194
+ }
86195
+ var MAX_RESET_COUNT = 50;
86106
86196
  var computePosition = async (reference, floating, config) => {
86107
86197
  const {
86108
86198
  placement = "bottom",
@@ -86110,7 +86200,10 @@ var computePosition = async (reference, floating, config) => {
86110
86200
  middleware = [],
86111
86201
  platform: platform2
86112
86202
  } = config;
86113
- const validMiddleware = middleware.filter(Boolean);
86203
+ const platformWithDetectOverflow = platform2.detectOverflow ? platform2 : {
86204
+ ...platform2,
86205
+ detectOverflow
86206
+ };
86114
86207
  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
86115
86208
  let rects = await platform2.getElementRects({
86116
86209
  reference,
@@ -86122,13 +86215,17 @@ var computePosition = async (reference, floating, config) => {
86122
86215
  y: y5
86123
86216
  } = computeCoordsFromPlacement(rects, placement, rtl);
86124
86217
  let statefulPlacement = placement;
86125
- let middlewareData = {};
86126
86218
  let resetCount = 0;
86127
- for (let i11 = 0; i11 < validMiddleware.length; i11++) {
86219
+ const middlewareData = {};
86220
+ for (let i11 = 0; i11 < middleware.length; i11++) {
86221
+ const currentMiddleware = middleware[i11];
86222
+ if (!currentMiddleware) {
86223
+ continue;
86224
+ }
86128
86225
  const {
86129
86226
  name,
86130
86227
  fn
86131
- } = validMiddleware[i11];
86228
+ } = currentMiddleware;
86132
86229
  const {
86133
86230
  x: nextX,
86134
86231
  y: nextY,
@@ -86142,7 +86239,7 @@ var computePosition = async (reference, floating, config) => {
86142
86239
  strategy,
86143
86240
  middlewareData,
86144
86241
  rects,
86145
- platform: platform2,
86242
+ platform: platformWithDetectOverflow,
86146
86243
  elements: {
86147
86244
  reference,
86148
86245
  floating
@@ -86150,14 +86247,11 @@ var computePosition = async (reference, floating, config) => {
86150
86247
  });
86151
86248
  x4 = nextX != null ? nextX : x4;
86152
86249
  y5 = nextY != null ? nextY : y5;
86153
- middlewareData = {
86154
- ...middlewareData,
86155
- [name]: {
86156
- ...middlewareData[name],
86157
- ...data
86158
- }
86250
+ middlewareData[name] = {
86251
+ ...middlewareData[name],
86252
+ ...data
86159
86253
  };
86160
- if (reset && resetCount <= 50) {
86254
+ if (reset && resetCount < MAX_RESET_COUNT) {
86161
86255
  resetCount++;
86162
86256
  if (typeof reset === "object") {
86163
86257
  if (reset.placement) {
@@ -86186,62 +86280,6 @@ var computePosition = async (reference, floating, config) => {
86186
86280
  middlewareData
86187
86281
  };
86188
86282
  };
86189
- async function detectOverflow(state, options) {
86190
- var _await$platform$isEle;
86191
- if (options === void 0) {
86192
- options = {};
86193
- }
86194
- const {
86195
- x: x4,
86196
- y: y5,
86197
- platform: platform2,
86198
- rects,
86199
- elements,
86200
- strategy
86201
- } = state;
86202
- const {
86203
- boundary = "clippingAncestors",
86204
- rootBoundary = "viewport",
86205
- elementContext = "floating",
86206
- altBoundary = false,
86207
- padding = 0
86208
- } = evaluate(options, state);
86209
- const paddingObject = getPaddingObject(padding);
86210
- const altContext = elementContext === "floating" ? "reference" : "floating";
86211
- const element = elements[altBoundary ? altContext : elementContext];
86212
- const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
86213
- element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
86214
- boundary,
86215
- rootBoundary,
86216
- strategy
86217
- }));
86218
- const rect = elementContext === "floating" ? {
86219
- x: x4,
86220
- y: y5,
86221
- width: rects.floating.width,
86222
- height: rects.floating.height
86223
- } : rects.reference;
86224
- const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
86225
- const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
86226
- x: 1,
86227
- y: 1
86228
- } : {
86229
- x: 1,
86230
- y: 1
86231
- };
86232
- const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
86233
- elements,
86234
- rect,
86235
- offsetParent,
86236
- strategy
86237
- }) : rect);
86238
- return {
86239
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
86240
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
86241
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
86242
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
86243
- };
86244
- }
86245
86283
  var arrow = (options) => ({
86246
86284
  name: "arrow",
86247
86285
  options,
@@ -86343,7 +86381,7 @@ var flip = function(options) {
86343
86381
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
86344
86382
  }
86345
86383
  const placements2 = [initialPlacement, ...fallbackPlacements];
86346
- const overflow = await detectOverflow(state, detectOverflowOptions);
86384
+ const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
86347
86385
  const overflows = [];
86348
86386
  let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
86349
86387
  if (checkMainAxis) {
@@ -86492,7 +86530,8 @@ var shift = function(options) {
86492
86530
  const {
86493
86531
  x: x4,
86494
86532
  y: y5,
86495
- placement
86533
+ placement,
86534
+ platform: platform2
86496
86535
  } = state;
86497
86536
  const {
86498
86537
  mainAxis: checkMainAxis = true,
@@ -86515,7 +86554,7 @@ var shift = function(options) {
86515
86554
  x: x4,
86516
86555
  y: y5
86517
86556
  };
86518
- const overflow = await detectOverflow(state, detectOverflowOptions);
86557
+ const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
86519
86558
  const crossAxis = getSideAxis(getSide(placement));
86520
86559
  const mainAxis = getOppositeAxis(crossAxis);
86521
86560
  let mainAxisCoord = coords2[mainAxis];
@@ -86573,7 +86612,7 @@ var size = function(options) {
86573
86612
  },
86574
86613
  ...detectOverflowOptions
86575
86614
  } = evaluate(options, state);
86576
- const overflow = await detectOverflow(state, detectOverflowOptions);
86615
+ const overflow = await platform2.detectOverflow(state, detectOverflowOptions);
86577
86616
  const side = getSide(placement);
86578
86617
  const alignment = getAlignment(placement);
86579
86618
  const isYAxis = getSideAxis(placement) === "y";
@@ -86674,7 +86713,6 @@ function isShadowRoot(value) {
86674
86713
  }
86675
86714
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
86676
86715
  }
86677
- var invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
86678
86716
  function isOverflowElement(element) {
86679
86717
  const {
86680
86718
  overflow,
@@ -86682,29 +86720,31 @@ function isOverflowElement(element) {
86682
86720
  overflowY,
86683
86721
  display
86684
86722
  } = getComputedStyle2(element);
86685
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
86723
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
86686
86724
  }
86687
- var tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
86688
86725
  function isTableElement(element) {
86689
- return tableElements.has(getNodeName(element));
86726
+ return /^(table|td|th)$/.test(getNodeName(element));
86690
86727
  }
86691
- var topLayerSelectors = [":popover-open", ":modal"];
86692
86728
  function isTopLayer(element) {
86693
- return topLayerSelectors.some((selector) => {
86694
- try {
86695
- return element.matches(selector);
86696
- } catch (_e2) {
86697
- return false;
86729
+ try {
86730
+ if (element.matches(":popover-open")) {
86731
+ return true;
86698
86732
  }
86699
- });
86733
+ } catch (_e2) {
86734
+ }
86735
+ try {
86736
+ return element.matches(":modal");
86737
+ } catch (_e2) {
86738
+ return false;
86739
+ }
86700
86740
  }
86701
- var transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
86702
- var willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
86703
- var containValues = ["paint", "layout", "strict", "content"];
86741
+ var willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
86742
+ var containRe = /paint|layout|strict|content/;
86743
+ var isNotNone = (value) => !!value && value !== "none";
86744
+ var isWebKitValue;
86704
86745
  function isContainingBlock(elementOrCss) {
86705
- const webkit = isWebKit();
86706
86746
  const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
86707
- return transformProperties.some((value) => css[value] ? css[value] !== "none" : false) || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || willChangeValues.some((value) => (css.willChange || "").includes(value)) || containValues.some((value) => (css.contain || "").includes(value));
86747
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
86708
86748
  }
86709
86749
  function getContainingBlock(element) {
86710
86750
  let currentNode = getParentNode(element);
@@ -86719,12 +86759,13 @@ function getContainingBlock(element) {
86719
86759
  return null;
86720
86760
  }
86721
86761
  function isWebKit() {
86722
- if (typeof CSS === "undefined" || !CSS.supports) return false;
86723
- return CSS.supports("-webkit-backdrop-filter", "none");
86762
+ if (isWebKitValue == null) {
86763
+ isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
86764
+ }
86765
+ return isWebKitValue;
86724
86766
  }
86725
- var lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
86726
86767
  function isLastTraversableNode(node) {
86727
- return lastTraversableNodeNames.has(getNodeName(node));
86768
+ return /^(html|body|#document)$/.test(getNodeName(node));
86728
86769
  }
86729
86770
  function getComputedStyle2(element) {
86730
86771
  return getWindow(element).getComputedStyle(element);
@@ -86778,8 +86819,9 @@ function getOverflowAncestors(node, list, traverseIframes) {
86778
86819
  if (isBody) {
86779
86820
  const frameElement = getFrameElement(win);
86780
86821
  return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
86822
+ } else {
86823
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
86781
86824
  }
86782
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
86783
86825
  }
86784
86826
  function getFrameElement(win) {
86785
86827
  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
@@ -86943,7 +86985,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
86943
86985
  if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
86944
86986
  scroll = getNodeScroll(offsetParent);
86945
86987
  }
86946
- if (isHTMLElement(offsetParent)) {
86988
+ if (isOffsetParentAnElement) {
86947
86989
  const offsetRect = getBoundingClientRect(offsetParent);
86948
86990
  scale2 = getScale(offsetParent);
86949
86991
  offsets.x = offsetRect.x + offsetParent.clientLeft;
@@ -87017,7 +87059,6 @@ function getViewportRect(element, strategy) {
87017
87059
  y: y5
87018
87060
  };
87019
87061
  }
87020
- var absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
87021
87062
  function getInnerBoundingClientRect(element, strategy) {
87022
87063
  const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
87023
87064
  const top = clientRect.top + element.clientTop;
@@ -87075,7 +87116,7 @@ function getClippingElementAncestors(element, cache) {
87075
87116
  if (!currentNodeIsContaining && computedStyle.position === "fixed") {
87076
87117
  currentContainingBlockComputedStyle = null;
87077
87118
  }
87078
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
87119
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === "absolute" || currentContainingBlockComputedStyle.position === "fixed") || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
87079
87120
  if (shouldDropCurrentNode) {
87080
87121
  result = result.filter((ancestor) => ancestor !== currentNode);
87081
87122
  } else {
@@ -87095,20 +87136,23 @@ function getClippingRect(_ref) {
87095
87136
  } = _ref;
87096
87137
  const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
87097
87138
  const clippingAncestors = [...elementClippingAncestors, rootBoundary];
87098
- const firstClippingAncestor = clippingAncestors[0];
87099
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
87100
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
87101
- accRect.top = max(rect.top, accRect.top);
87102
- accRect.right = min(rect.right, accRect.right);
87103
- accRect.bottom = min(rect.bottom, accRect.bottom);
87104
- accRect.left = max(rect.left, accRect.left);
87105
- return accRect;
87106
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
87139
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
87140
+ let top = firstRect.top;
87141
+ let right = firstRect.right;
87142
+ let bottom = firstRect.bottom;
87143
+ let left = firstRect.left;
87144
+ for (let i11 = 1; i11 < clippingAncestors.length; i11++) {
87145
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i11], strategy);
87146
+ top = max(rect.top, top);
87147
+ right = min(rect.right, right);
87148
+ bottom = min(rect.bottom, bottom);
87149
+ left = max(rect.left, left);
87150
+ }
87107
87151
  return {
87108
- width: clippingRect.right - clippingRect.left,
87109
- height: clippingRect.bottom - clippingRect.top,
87110
- x: clippingRect.left,
87111
- y: clippingRect.top
87152
+ width: right - left,
87153
+ height: bottom - top,
87154
+ x: left,
87155
+ y: top
87112
87156
  };
87113
87157
  }
87114
87158
  function getDimensions(element) {
@@ -87317,7 +87361,7 @@ function autoUpdate(reference, floating, update2, options) {
87317
87361
  animationFrame = false
87318
87362
  } = options;
87319
87363
  const referenceEl = unwrapElement(reference);
87320
- const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...getOverflowAncestors(floating)] : [];
87364
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
87321
87365
  ancestors.forEach((ancestor) => {
87322
87366
  ancestorScroll && ancestor.addEventListener("scroll", update2, {
87323
87367
  passive: true
@@ -87330,7 +87374,7 @@ function autoUpdate(reference, floating, update2, options) {
87330
87374
  if (elementResize) {
87331
87375
  resizeObserver = new ResizeObserver((_ref) => {
87332
87376
  let [firstEntry] = _ref;
87333
- if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
87377
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
87334
87378
  resizeObserver.unobserve(floating);
87335
87379
  cancelAnimationFrame(reobserveFrame);
87336
87380
  reobserveFrame = requestAnimationFrame(() => {
@@ -87343,7 +87387,9 @@ function autoUpdate(reference, floating, update2, options) {
87343
87387
  if (referenceEl && !animationFrame) {
87344
87388
  resizeObserver.observe(referenceEl);
87345
87389
  }
87346
- resizeObserver.observe(floating);
87390
+ if (floating) {
87391
+ resizeObserver.observe(floating);
87392
+ }
87347
87393
  }
87348
87394
  let frameId;
87349
87395
  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
@@ -94643,8 +94689,8 @@ self.QrCreator = H2;
94643
94689
  h8 = c9.size / e13;
94644
94690
  a7.beginPath();
94645
94691
  for (r12 = 0; r12 < e13; r12 += 1) for (b5 = 0; b5 < e13; b5 += 1) {
94646
- var g4 = a7, x4 = c9.left + b5 * h8, u6 = c9.top + r12 * h8, p7 = r12, q2 = b5, f6 = d5.a, k4 = x4 + h8, m6 = u6 + h8, D3 = p7 - 1, E4 = p7 + 1, n14 = q2 - 1, l8 = q2 + 1, y6 = Math.floor(Math.min(0.5, Math.max(0, c9.R)) * h8), v5 = f6(p7, q2), I4 = f6(D3, n14), w5 = f6(D3, q2);
94647
- D3 = f6(D3, l8);
94692
+ var g4 = a7, x4 = c9.left + b5 * h8, u6 = c9.top + r12 * h8, p7 = r12, q2 = b5, f6 = d5.a, k4 = x4 + h8, m6 = u6 + h8, D4 = p7 - 1, E4 = p7 + 1, n14 = q2 - 1, l8 = q2 + 1, y6 = Math.floor(Math.min(0.5, Math.max(0, c9.R)) * h8), v5 = f6(p7, q2), I4 = f6(D4, n14), w5 = f6(D4, q2);
94693
+ D4 = f6(D4, l8);
94648
94694
  var F2 = f6(p7, l8);
94649
94695
  l8 = f6(E4, l8);
94650
94696
  q2 = f6(
@@ -94657,7 +94703,7 @@ self.QrCreator = H2;
94657
94703
  u6 = Math.round(u6);
94658
94704
  k4 = Math.round(k4);
94659
94705
  m6 = Math.round(m6);
94660
- v5 ? C4(g4, x4, u6, k4, m6, y6, !w5 && !p7, !w5 && !F2, !q2 && !F2, !q2 && !p7) : z4(g4, x4, u6, k4, m6, y6, w5 && p7 && I4, w5 && F2 && D3, q2 && F2 && l8, q2 && p7 && E4);
94706
+ v5 ? C4(g4, x4, u6, k4, m6, y6, !w5 && !p7, !w5 && !F2, !q2 && !F2, !q2 && !p7) : z4(g4, x4, u6, k4, m6, y6, w5 && p7 && I4, w5 && F2 && D4, q2 && F2 && l8, q2 && p7 && E4);
94661
94707
  }
94662
94708
  A4(a7, c9);
94663
94709
  a7.fill();
@@ -97041,10 +97087,10 @@ var n10 = e6(class extends f3 {
97041
97087
  }
97042
97088
  update(i11, [s8]) {
97043
97089
  const e13 = s8 !== this.G;
97044
- return e13 && void 0 !== this.G && this.rt(void 0), (e13 || this.lt !== this.ct) && (this.G = s8, this.ht = i11.options?.host, this.rt(this.ct = i11.element)), A;
97090
+ return e13 && this.rt(void 0), (e13 || this.lt !== this.ct) && (this.G = s8, this.ht = i11.options?.host, this.rt(this.ct = i11.element)), A;
97045
97091
  }
97046
97092
  rt(t9) {
97047
- if (this.isConnected || (t9 = void 0), "function" == typeof this.G) {
97093
+ if (void 0 !== this.G) if (this.isConnected || (t9 = void 0), "function" == typeof this.G) {
97048
97094
  const i11 = this.ht ?? globalThis;
97049
97095
  let s8 = o11.get(i11);
97050
97096
  void 0 === s8 && (s8 = /* @__PURE__ */ new WeakMap(), o11.set(i11, s8)), void 0 !== s8.get(this.G) && this.G.call(this.ht, void 0), s8.set(this.G, t9), void 0 !== t9 && this.G.call(this.ht, t9);
@@ -105714,8 +105760,8 @@ var __runInitializers = (array2, flags, self2, value) => {
105714
105760
  };
105715
105761
  var __decorateElement = (array2, flags, name, decorators, target, extra) => {
105716
105762
  var fn, it2, done, ctx, access, k23 = flags & 7, s42 = !!(flags & 8), p32 = !!(flags & 16);
105717
- var j22 = k23 > 3 ? array2.length + 1 : k23 ? s42 ? 1 : 2 : 0, key = __decoratorStrings[k23 + 5];
105718
- var initializers = k23 > 3 && (array2[j22 - 1] = []), extraInitializers = array2[j22] || (array2[j22] = []);
105763
+ var j3 = k23 > 3 ? array2.length + 1 : k23 ? s42 ? 1 : 2 : 0, key = __decoratorStrings[k23 + 5];
105764
+ var initializers = k23 > 3 && (array2[j3 - 1] = []), extraInitializers = array2[j3] || (array2[j3] = []);
105719
105765
  var desc = k23 && (!p32 && !s42 && (target = target.prototype), k23 < 5 && (k23 > 3 || !p32) && __getOwnPropDesc3(k23 < 4 ? target : { get [name]() {
105720
105766
  return __privateGet2(this, extra);
105721
105767
  }, set [name](x22) {
@@ -105921,13 +105967,15 @@ var y3 = class extends HTMLElement {
105921
105967
  const i52 = this.constructor, e52 = i52._$Eh.get(t32);
105922
105968
  if (void 0 !== e52 && this._$Em !== e52) {
105923
105969
  const t42 = i52.getPropertyOptions(e52), h32 = "function" == typeof t42.converter ? { fromAttribute: t42.converter } : void 0 !== t42.converter?.fromAttribute ? t42.converter : u4;
105924
- this._$Em = e52, this[e52] = h32.fromAttribute(s42, t42.type) ?? this._$Ej?.get(e52) ?? null, this._$Em = null;
105970
+ this._$Em = e52;
105971
+ const r52 = h32.fromAttribute(s42, t42.type);
105972
+ this[e52] = r52 ?? this._$Ej?.get(e52) ?? r52, this._$Em = null;
105925
105973
  }
105926
105974
  }
105927
- requestUpdate(t32, s42, i52) {
105975
+ requestUpdate(t32, s42, i52, e52 = false, h32) {
105928
105976
  if (void 0 !== t32) {
105929
- const e52 = this.constructor, h32 = this[t32];
105930
- if (i52 ??= e52.getPropertyOptions(t32), !((i52.hasChanged ?? f4)(h32, s42) || i52.useDefault && i52.reflect && h32 === this._$Ej?.get(t32) && !this.hasAttribute(e52._$Eu(t32, i52)))) return;
105977
+ const r52 = this.constructor;
105978
+ if (false === e52 && (h32 = this[t32]), i52 ??= r52.getPropertyOptions(t32), !((i52.hasChanged ?? f4)(h32, s42) || i52.useDefault && i52.reflect && h32 === this._$Ej?.get(t32) && !this.hasAttribute(r52._$Eu(t32, i52)))) return;
105931
105979
  this.C(t32, s42, i52);
105932
105980
  }
105933
105981
  false === this.isUpdatePending && (this._$ES = this._$EP());
@@ -105995,96 +106043,97 @@ var y3 = class extends HTMLElement {
105995
106043
  firstUpdated(t32) {
105996
106044
  }
105997
106045
  };
105998
- y3.elementStyles = [], y3.shadowRootOptions = { mode: "open" }, y3[d3("elementProperties")] = /* @__PURE__ */ new Map(), y3[d3("finalized")] = /* @__PURE__ */ new Map(), p4?.({ ReactiveElement: y3 }), (a4.reactiveElementVersions ??= []).push("2.1.0");
106046
+ y3.elementStyles = [], y3.shadowRootOptions = { mode: "open" }, y3[d3("elementProperties")] = /* @__PURE__ */ new Map(), y3[d3("finalized")] = /* @__PURE__ */ new Map(), p4?.({ ReactiveElement: y3 }), (a4.reactiveElementVersions ??= []).push("2.1.2");
105999
106047
  var t22 = globalThis;
106000
- var i32 = t22.trustedTypes;
106001
- var s22 = i32 ? i32.createPolicy("lit-html", { createHTML: (t32) => t32 }) : void 0;
106002
- var e32 = "$lit$";
106003
- var h22 = `lit$${Math.random().toFixed(9).slice(2)}$`;
106004
- var o32 = "?" + h22;
106005
- var n32 = `<${o32}>`;
106006
- var r32 = document;
106007
- var l22 = () => r32.createComment("");
106008
- var c32 = (t32) => null === t32 || "object" != typeof t32 && "function" != typeof t32;
106009
- var a22 = Array.isArray;
106010
- var u22 = (t32) => a22(t32) || "function" == typeof t32?.[Symbol.iterator];
106011
- var d22 = "[ \n\f\r]";
106012
- var f22 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
106013
- var v2 = /-->/g;
106014
- var _2 = />/g;
106015
- var m3 = RegExp(`>|${d22}(?:([^\\s"'>=/]+)(${d22}*=${d22}*(?:[^
106048
+ var i32 = (t32) => t32;
106049
+ var s22 = t22.trustedTypes;
106050
+ var e32 = s22 ? s22.createPolicy("lit-html", { createHTML: (t32) => t32 }) : void 0;
106051
+ var h22 = "$lit$";
106052
+ var o32 = `lit$${Math.random().toFixed(9).slice(2)}$`;
106053
+ var n32 = "?" + o32;
106054
+ var r32 = `<${n32}>`;
106055
+ var l22 = document;
106056
+ var c32 = () => l22.createComment("");
106057
+ var a22 = (t32) => null === t32 || "object" != typeof t32 && "function" != typeof t32;
106058
+ var u22 = Array.isArray;
106059
+ var d22 = (t32) => u22(t32) || "function" == typeof t32?.[Symbol.iterator];
106060
+ var f22 = "[ \n\f\r]";
106061
+ var v2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
106062
+ var _2 = /-->/g;
106063
+ var m3 = />/g;
106064
+ var p22 = RegExp(`>|${f22}(?:([^\\s"'>=/]+)(${f22}*=${f22}*(?:[^
106016
106065
  \f\r"'\`<>=]|("|')|))|$)`, "g");
106017
- var p22 = /'/g;
106018
- var g2 = /"/g;
106019
- var $3 = /^(?:script|style|textarea|title)$/i;
106020
- var y22 = (t32) => (i52, ...s42) => ({ _$litType$: t32, strings: i52, values: s42 });
106021
- var x2 = y22(1);
106022
- var b22 = y22(2);
106023
- var w2 = y22(3);
106024
- var T2 = Symbol.for("lit-noChange");
106025
- var E2 = Symbol.for("lit-nothing");
106026
- var A2 = /* @__PURE__ */ new WeakMap();
106027
- var C2 = r32.createTreeWalker(r32, 129);
106028
- function P2(t32, i52) {
106029
- if (!a22(t32) || !t32.hasOwnProperty("raw")) throw Error("invalid template strings array");
106030
- return void 0 !== s22 ? s22.createHTML(i52) : i52;
106031
- }
106032
- var V2 = (t32, i52) => {
106033
- const s42 = t32.length - 1, o62 = [];
106034
- let r52, l32 = 2 === i52 ? "<svg>" : 3 === i52 ? "<math>" : "", c42 = f22;
106066
+ var g2 = /'/g;
106067
+ var $3 = /"/g;
106068
+ var y22 = /^(?:script|style|textarea|title)$/i;
106069
+ var x2 = (t32) => (i52, ...s42) => ({ _$litType$: t32, strings: i52, values: s42 });
106070
+ var b22 = x2(1);
106071
+ var w2 = x2(2);
106072
+ var T2 = x2(3);
106073
+ var E2 = Symbol.for("lit-noChange");
106074
+ var A2 = Symbol.for("lit-nothing");
106075
+ var C2 = /* @__PURE__ */ new WeakMap();
106076
+ var P2 = l22.createTreeWalker(l22, 129);
106077
+ function V2(t32, i52) {
106078
+ if (!u22(t32) || !t32.hasOwnProperty("raw")) throw Error("invalid template strings array");
106079
+ return void 0 !== e32 ? e32.createHTML(i52) : i52;
106080
+ }
106081
+ var N2 = (t32, i52) => {
106082
+ const s42 = t32.length - 1, e52 = [];
106083
+ let n52, l32 = 2 === i52 ? "<svg>" : 3 === i52 ? "<math>" : "", c42 = v2;
106035
106084
  for (let i62 = 0; i62 < s42; i62++) {
106036
106085
  const s52 = t32[i62];
106037
- let a33, u32, d32 = -1, y32 = 0;
106038
- for (; y32 < s52.length && (c42.lastIndex = y32, u32 = c42.exec(s52), null !== u32); ) y32 = c42.lastIndex, c42 === f22 ? "!--" === u32[1] ? c42 = v2 : void 0 !== u32[1] ? c42 = _2 : void 0 !== u32[2] ? ($3.test(u32[2]) && (r52 = RegExp("</" + u32[2], "g")), c42 = m3) : void 0 !== u32[3] && (c42 = m3) : c42 === m3 ? ">" === u32[0] ? (c42 = r52 ?? f22, d32 = -1) : void 0 === u32[1] ? d32 = -2 : (d32 = c42.lastIndex - u32[2].length, a33 = u32[1], c42 = void 0 === u32[3] ? m3 : '"' === u32[3] ? g2 : p22) : c42 === g2 || c42 === p22 ? c42 = m3 : c42 === v2 || c42 === _2 ? c42 = f22 : (c42 = m3, r52 = void 0);
106039
- const x22 = c42 === m3 && t32[i62 + 1].startsWith("/>") ? " " : "";
106040
- l32 += c42 === f22 ? s52 + n32 : d32 >= 0 ? (o62.push(a33), s52.slice(0, d32) + e32 + s52.slice(d32) + h22 + x22) : s52 + h22 + (-2 === d32 ? i62 : x22);
106086
+ let a33, u32, d32 = -1, f32 = 0;
106087
+ for (; f32 < s52.length && (c42.lastIndex = f32, u32 = c42.exec(s52), null !== u32); ) f32 = c42.lastIndex, c42 === v2 ? "!--" === u32[1] ? c42 = _2 : void 0 !== u32[1] ? c42 = m3 : void 0 !== u32[2] ? (y22.test(u32[2]) && (n52 = RegExp("</" + u32[2], "g")), c42 = p22) : void 0 !== u32[3] && (c42 = p22) : c42 === p22 ? ">" === u32[0] ? (c42 = n52 ?? v2, d32 = -1) : void 0 === u32[1] ? d32 = -2 : (d32 = c42.lastIndex - u32[2].length, a33 = u32[1], c42 = void 0 === u32[3] ? p22 : '"' === u32[3] ? $3 : g2) : c42 === $3 || c42 === g2 ? c42 = p22 : c42 === _2 || c42 === m3 ? c42 = v2 : (c42 = p22, n52 = void 0);
106088
+ const x22 = c42 === p22 && t32[i62 + 1].startsWith("/>") ? " " : "";
106089
+ l32 += c42 === v2 ? s52 + r32 : d32 >= 0 ? (e52.push(a33), s52.slice(0, d32) + h22 + s52.slice(d32) + o32 + x22) : s52 + o32 + (-2 === d32 ? i62 : x22);
106041
106090
  }
106042
- return [P2(t32, l32 + (t32[s42] || "<?>") + (2 === i52 ? "</svg>" : 3 === i52 ? "</math>" : "")), o62];
106091
+ return [V2(t32, l32 + (t32[s42] || "<?>") + (2 === i52 ? "</svg>" : 3 === i52 ? "</math>" : "")), e52];
106043
106092
  };
106044
- var N2 = class _N {
106045
- constructor({ strings: t32, _$litType$: s42 }, n52) {
106093
+ var S22 = class _S {
106094
+ constructor({ strings: t32, _$litType$: i52 }, e52) {
106046
106095
  let r52;
106047
106096
  this.parts = [];
106048
- let c42 = 0, a33 = 0;
106049
- const u32 = t32.length - 1, d32 = this.parts, [f32, v22] = V2(t32, s42);
106050
- if (this.el = _N.createElement(f32, n52), C2.currentNode = this.el.content, 2 === s42 || 3 === s42) {
106097
+ let l32 = 0, a33 = 0;
106098
+ const u32 = t32.length - 1, d32 = this.parts, [f32, v22] = N2(t32, i52);
106099
+ if (this.el = _S.createElement(f32, e52), P2.currentNode = this.el.content, 2 === i52 || 3 === i52) {
106051
106100
  const t42 = this.el.content.firstChild;
106052
106101
  t42.replaceWith(...t42.childNodes);
106053
106102
  }
106054
- for (; null !== (r52 = C2.nextNode()) && d32.length < u32; ) {
106103
+ for (; null !== (r52 = P2.nextNode()) && d32.length < u32; ) {
106055
106104
  if (1 === r52.nodeType) {
106056
- if (r52.hasAttributes()) for (const t42 of r52.getAttributeNames()) if (t42.endsWith(e32)) {
106057
- const i52 = v22[a33++], s52 = r52.getAttribute(t42).split(h22), e52 = /([.?@])?(.*)/.exec(i52);
106058
- d32.push({ type: 1, index: c42, name: e52[2], strings: s52, ctor: "." === e52[1] ? H3 : "?" === e52[1] ? I2 : "@" === e52[1] ? L2 : k2 }), r52.removeAttribute(t42);
106059
- } else t42.startsWith(h22) && (d32.push({ type: 6, index: c42 }), r52.removeAttribute(t42));
106060
- if ($3.test(r52.tagName)) {
106061
- const t42 = r52.textContent.split(h22), s52 = t42.length - 1;
106062
- if (s52 > 0) {
106063
- r52.textContent = i32 ? i32.emptyScript : "";
106064
- for (let i52 = 0; i52 < s52; i52++) r52.append(t42[i52], l22()), C2.nextNode(), d32.push({ type: 2, index: ++c42 });
106065
- r52.append(t42[s52], l22());
106066
- }
106067
- }
106068
- } else if (8 === r52.nodeType) if (r52.data === o32) d32.push({ type: 2, index: c42 });
106105
+ if (r52.hasAttributes()) for (const t42 of r52.getAttributeNames()) if (t42.endsWith(h22)) {
106106
+ const i62 = v22[a33++], s42 = r52.getAttribute(t42).split(o32), e62 = /([.?@])?(.*)/.exec(i62);
106107
+ d32.push({ type: 1, index: l32, name: e62[2], strings: s42, ctor: "." === e62[1] ? I2 : "?" === e62[1] ? L2 : "@" === e62[1] ? z2 : H3 }), r52.removeAttribute(t42);
106108
+ } else t42.startsWith(o32) && (d32.push({ type: 6, index: l32 }), r52.removeAttribute(t42));
106109
+ if (y22.test(r52.tagName)) {
106110
+ const t42 = r52.textContent.split(o32), i62 = t42.length - 1;
106111
+ if (i62 > 0) {
106112
+ r52.textContent = s22 ? s22.emptyScript : "";
106113
+ for (let s42 = 0; s42 < i62; s42++) r52.append(t42[s42], c32()), P2.nextNode(), d32.push({ type: 2, index: ++l32 });
106114
+ r52.append(t42[i62], c32());
106115
+ }
106116
+ }
106117
+ } else if (8 === r52.nodeType) if (r52.data === n32) d32.push({ type: 2, index: l32 });
106069
106118
  else {
106070
106119
  let t42 = -1;
106071
- for (; -1 !== (t42 = r52.data.indexOf(h22, t42 + 1)); ) d32.push({ type: 7, index: c42 }), t42 += h22.length - 1;
106120
+ for (; -1 !== (t42 = r52.data.indexOf(o32, t42 + 1)); ) d32.push({ type: 7, index: l32 }), t42 += o32.length - 1;
106072
106121
  }
106073
- c42++;
106122
+ l32++;
106074
106123
  }
106075
106124
  }
106076
106125
  static createElement(t32, i52) {
106077
- const s42 = r32.createElement("template");
106126
+ const s42 = l22.createElement("template");
106078
106127
  return s42.innerHTML = t32, s42;
106079
106128
  }
106080
106129
  };
106081
- function S22(t32, i52, s42 = t32, e52) {
106082
- if (i52 === T2) return i52;
106130
+ function M2(t32, i52, s42 = t32, e52) {
106131
+ if (i52 === E2) return i52;
106083
106132
  let h32 = void 0 !== e52 ? s42._$Co?.[e52] : s42._$Cl;
106084
- const o62 = c32(i52) ? void 0 : i52._$litDirective$;
106085
- return h32?.constructor !== o62 && (h32?._$AO?.(false), void 0 === o62 ? h32 = void 0 : (h32 = new o62(t32), h32._$AT(t32, s42, e52)), void 0 !== e52 ? (s42._$Co ??= [])[e52] = h32 : s42._$Cl = h32), void 0 !== h32 && (i52 = S22(t32, h32._$AS(t32, i52.values), h32, e52)), i52;
106133
+ const o62 = a22(i52) ? void 0 : i52._$litDirective$;
106134
+ return h32?.constructor !== o62 && (h32?._$AO?.(false), void 0 === o62 ? h32 = void 0 : (h32 = new o62(t32), h32._$AT(t32, s42, e52)), void 0 !== e52 ? (s42._$Co ??= [])[e52] = h32 : s42._$Cl = h32), void 0 !== h32 && (i52 = M2(t32, h32._$AS(t32, i52.values), h32, e52)), i52;
106086
106135
  }
106087
- var M2 = class {
106136
+ var R2 = class {
106088
106137
  constructor(t32, i52) {
106089
106138
  this._$AV = [], this._$AN = void 0, this._$AD = t32, this._$AM = i52;
106090
106139
  }
@@ -106095,29 +106144,29 @@ var M2 = class {
106095
106144
  return this._$AM._$AU;
106096
106145
  }
106097
106146
  u(t32) {
106098
- const { el: { content: i52 }, parts: s42 } = this._$AD, e52 = (t32?.creationScope ?? r32).importNode(i52, true);
106099
- C2.currentNode = e52;
106100
- let h32 = C2.nextNode(), o62 = 0, n52 = 0, l32 = s42[0];
106101
- for (; void 0 !== l32; ) {
106102
- if (o62 === l32.index) {
106147
+ const { el: { content: i52 }, parts: s42 } = this._$AD, e52 = (t32?.creationScope ?? l22).importNode(i52, true);
106148
+ P2.currentNode = e52;
106149
+ let h32 = P2.nextNode(), o62 = 0, n52 = 0, r52 = s42[0];
106150
+ for (; void 0 !== r52; ) {
106151
+ if (o62 === r52.index) {
106103
106152
  let i62;
106104
- 2 === l32.type ? i62 = new R2(h32, h32.nextSibling, this, t32) : 1 === l32.type ? i62 = new l32.ctor(h32, l32.name, l32.strings, this, t32) : 6 === l32.type && (i62 = new z2(h32, this, t32)), this._$AV.push(i62), l32 = s42[++n52];
106153
+ 2 === r52.type ? i62 = new k2(h32, h32.nextSibling, this, t32) : 1 === r52.type ? i62 = new r52.ctor(h32, r52.name, r52.strings, this, t32) : 6 === r52.type && (i62 = new Z2(h32, this, t32)), this._$AV.push(i62), r52 = s42[++n52];
106105
106154
  }
106106
- o62 !== l32?.index && (h32 = C2.nextNode(), o62++);
106155
+ o62 !== r52?.index && (h32 = P2.nextNode(), o62++);
106107
106156
  }
106108
- return C2.currentNode = r32, e52;
106157
+ return P2.currentNode = l22, e52;
106109
106158
  }
106110
106159
  p(t32) {
106111
106160
  let i52 = 0;
106112
106161
  for (const s42 of this._$AV) void 0 !== s42 && (void 0 !== s42.strings ? (s42._$AI(t32, s42, i52), i52 += s42.strings.length - 2) : s42._$AI(t32[i52])), i52++;
106113
106162
  }
106114
106163
  };
106115
- var R2 = class _R {
106164
+ var k2 = class _k {
106116
106165
  get _$AU() {
106117
106166
  return this._$AM?._$AU ?? this._$Cv;
106118
106167
  }
106119
106168
  constructor(t32, i52, s42, e52) {
106120
- this.type = 2, this._$AH = E2, this._$AN = void 0, this._$AA = t32, this._$AB = i52, this._$AM = s42, this.options = e52, this._$Cv = e52?.isConnected ?? true;
106169
+ this.type = 2, this._$AH = A2, this._$AN = void 0, this._$AA = t32, this._$AB = i52, this._$AM = s42, this.options = e52, this._$Cv = e52?.isConnected ?? true;
106121
106170
  }
106122
106171
  get parentNode() {
106123
106172
  let t32 = this._$AA.parentNode;
@@ -106131,7 +106180,7 @@ var R2 = class _R {
106131
106180
  return this._$AB;
106132
106181
  }
106133
106182
  _$AI(t32, i52 = this) {
106134
- t32 = S22(this, t32, i52), c32(t32) ? t32 === E2 || null == t32 || "" === t32 ? (this._$AH !== E2 && this._$AR(), this._$AH = E2) : t32 !== this._$AH && t32 !== T2 && this._(t32) : void 0 !== t32._$litType$ ? this.$(t32) : void 0 !== t32.nodeType ? this.T(t32) : u22(t32) ? this.k(t32) : this._(t32);
106183
+ t32 = M2(this, t32, i52), a22(t32) ? t32 === A2 || null == t32 || "" === t32 ? (this._$AH !== A2 && this._$AR(), this._$AH = A2) : t32 !== this._$AH && t32 !== E2 && this._(t32) : void 0 !== t32._$litType$ ? this.$(t32) : void 0 !== t32.nodeType ? this.T(t32) : d22(t32) ? this.k(t32) : this._(t32);
106135
106184
  }
106136
106185
  O(t32) {
106137
106186
  return this._$AA.parentNode.insertBefore(t32, this._$AB);
@@ -106140,38 +106189,38 @@ var R2 = class _R {
106140
106189
  this._$AH !== t32 && (this._$AR(), this._$AH = this.O(t32));
106141
106190
  }
106142
106191
  _(t32) {
106143
- this._$AH !== E2 && c32(this._$AH) ? this._$AA.nextSibling.data = t32 : this.T(r32.createTextNode(t32)), this._$AH = t32;
106192
+ this._$AH !== A2 && a22(this._$AH) ? this._$AA.nextSibling.data = t32 : this.T(l22.createTextNode(t32)), this._$AH = t32;
106144
106193
  }
106145
106194
  $(t32) {
106146
- const { values: i52, _$litType$: s42 } = t32, e52 = "number" == typeof s42 ? this._$AC(t32) : (void 0 === s42.el && (s42.el = N2.createElement(P2(s42.h, s42.h[0]), this.options)), s42);
106195
+ const { values: i52, _$litType$: s42 } = t32, e52 = "number" == typeof s42 ? this._$AC(t32) : (void 0 === s42.el && (s42.el = S22.createElement(V2(s42.h, s42.h[0]), this.options)), s42);
106147
106196
  if (this._$AH?._$AD === e52) this._$AH.p(i52);
106148
106197
  else {
106149
- const t42 = new M2(e52, this), s52 = t42.u(this.options);
106198
+ const t42 = new R2(e52, this), s52 = t42.u(this.options);
106150
106199
  t42.p(i52), this.T(s52), this._$AH = t42;
106151
106200
  }
106152
106201
  }
106153
106202
  _$AC(t32) {
106154
- let i52 = A2.get(t32.strings);
106155
- return void 0 === i52 && A2.set(t32.strings, i52 = new N2(t32)), i52;
106203
+ let i52 = C2.get(t32.strings);
106204
+ return void 0 === i52 && C2.set(t32.strings, i52 = new S22(t32)), i52;
106156
106205
  }
106157
106206
  k(t32) {
106158
- a22(this._$AH) || (this._$AH = [], this._$AR());
106207
+ u22(this._$AH) || (this._$AH = [], this._$AR());
106159
106208
  const i52 = this._$AH;
106160
106209
  let s42, e52 = 0;
106161
- for (const h32 of t32) e52 === i52.length ? i52.push(s42 = new _R(this.O(l22()), this.O(l22()), this, this.options)) : s42 = i52[e52], s42._$AI(h32), e52++;
106210
+ for (const h32 of t32) e52 === i52.length ? i52.push(s42 = new _k(this.O(c32()), this.O(c32()), this, this.options)) : s42 = i52[e52], s42._$AI(h32), e52++;
106162
106211
  e52 < i52.length && (this._$AR(s42 && s42._$AB.nextSibling, e52), i52.length = e52);
106163
106212
  }
106164
- _$AR(t32 = this._$AA.nextSibling, i52) {
106165
- for (this._$AP?.(false, true, i52); t32 && t32 !== this._$AB; ) {
106166
- const i62 = t32.nextSibling;
106167
- t32.remove(), t32 = i62;
106213
+ _$AR(t32 = this._$AA.nextSibling, s42) {
106214
+ for (this._$AP?.(false, true, s42); t32 !== this._$AB; ) {
106215
+ const s52 = i32(t32).nextSibling;
106216
+ i32(t32).remove(), t32 = s52;
106168
106217
  }
106169
106218
  }
106170
106219
  setConnected(t32) {
106171
106220
  void 0 === this._$AM && (this._$Cv = t32, this._$AP?.(t32));
106172
106221
  }
106173
106222
  };
106174
- var k2 = class {
106223
+ var H3 = class {
106175
106224
  get tagName() {
106176
106225
  return this.element.tagName;
106177
106226
  }
@@ -106179,53 +106228,53 @@ var k2 = class {
106179
106228
  return this._$AM._$AU;
106180
106229
  }
106181
106230
  constructor(t32, i52, s42, e52, h32) {
106182
- this.type = 1, this._$AH = E2, this._$AN = void 0, this.element = t32, this.name = i52, this._$AM = e52, this.options = h32, s42.length > 2 || "" !== s42[0] || "" !== s42[1] ? (this._$AH = Array(s42.length - 1).fill(new String()), this.strings = s42) : this._$AH = E2;
106231
+ this.type = 1, this._$AH = A2, this._$AN = void 0, this.element = t32, this.name = i52, this._$AM = e52, this.options = h32, s42.length > 2 || "" !== s42[0] || "" !== s42[1] ? (this._$AH = Array(s42.length - 1).fill(new String()), this.strings = s42) : this._$AH = A2;
106183
106232
  }
106184
106233
  _$AI(t32, i52 = this, s42, e52) {
106185
106234
  const h32 = this.strings;
106186
106235
  let o62 = false;
106187
- if (void 0 === h32) t32 = S22(this, t32, i52, 0), o62 = !c32(t32) || t32 !== this._$AH && t32 !== T2, o62 && (this._$AH = t32);
106236
+ if (void 0 === h32) t32 = M2(this, t32, i52, 0), o62 = !a22(t32) || t32 !== this._$AH && t32 !== E2, o62 && (this._$AH = t32);
106188
106237
  else {
106189
106238
  const e62 = t32;
106190
106239
  let n52, r52;
106191
- for (t32 = h32[0], n52 = 0; n52 < h32.length - 1; n52++) r52 = S22(this, e62[s42 + n52], i52, n52), r52 === T2 && (r52 = this._$AH[n52]), o62 ||= !c32(r52) || r52 !== this._$AH[n52], r52 === E2 ? t32 = E2 : t32 !== E2 && (t32 += (r52 ?? "") + h32[n52 + 1]), this._$AH[n52] = r52;
106240
+ for (t32 = h32[0], n52 = 0; n52 < h32.length - 1; n52++) r52 = M2(this, e62[s42 + n52], i52, n52), r52 === E2 && (r52 = this._$AH[n52]), o62 ||= !a22(r52) || r52 !== this._$AH[n52], r52 === A2 ? t32 = A2 : t32 !== A2 && (t32 += (r52 ?? "") + h32[n52 + 1]), this._$AH[n52] = r52;
106192
106241
  }
106193
106242
  o62 && !e52 && this.j(t32);
106194
106243
  }
106195
106244
  j(t32) {
106196
- t32 === E2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t32 ?? "");
106245
+ t32 === A2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t32 ?? "");
106197
106246
  }
106198
106247
  };
106199
- var H3 = class extends k2 {
106248
+ var I2 = class extends H3 {
106200
106249
  constructor() {
106201
106250
  super(...arguments), this.type = 3;
106202
106251
  }
106203
106252
  j(t32) {
106204
- this.element[this.name] = t32 === E2 ? void 0 : t32;
106253
+ this.element[this.name] = t32 === A2 ? void 0 : t32;
106205
106254
  }
106206
106255
  };
106207
- var I2 = class extends k2 {
106256
+ var L2 = class extends H3 {
106208
106257
  constructor() {
106209
106258
  super(...arguments), this.type = 4;
106210
106259
  }
106211
106260
  j(t32) {
106212
- this.element.toggleAttribute(this.name, !!t32 && t32 !== E2);
106261
+ this.element.toggleAttribute(this.name, !!t32 && t32 !== A2);
106213
106262
  }
106214
106263
  };
106215
- var L2 = class extends k2 {
106264
+ var z2 = class extends H3 {
106216
106265
  constructor(t32, i52, s42, e52, h32) {
106217
106266
  super(t32, i52, s42, e52, h32), this.type = 5;
106218
106267
  }
106219
106268
  _$AI(t32, i52 = this) {
106220
- if ((t32 = S22(this, t32, i52, 0) ?? E2) === T2) return;
106221
- const s42 = this._$AH, e52 = t32 === E2 && s42 !== E2 || t32.capture !== s42.capture || t32.once !== s42.once || t32.passive !== s42.passive, h32 = t32 !== E2 && (s42 === E2 || e52);
106269
+ if ((t32 = M2(this, t32, i52, 0) ?? A2) === E2) return;
106270
+ const s42 = this._$AH, e52 = t32 === A2 && s42 !== A2 || t32.capture !== s42.capture || t32.once !== s42.once || t32.passive !== s42.passive, h32 = t32 !== A2 && (s42 === A2 || e52);
106222
106271
  e52 && this.element.removeEventListener(this.name, this, s42), h32 && this.element.addEventListener(this.name, this, t32), this._$AH = t32;
106223
106272
  }
106224
106273
  handleEvent(t32) {
106225
106274
  "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t32) : this._$AH.handleEvent(t32);
106226
106275
  }
106227
106276
  };
106228
- var z2 = class {
106277
+ var Z2 = class {
106229
106278
  constructor(t32, i52, s42) {
106230
106279
  this.element = t32, this.type = 6, this._$AN = void 0, this._$AM = i52, this.options = s42;
106231
106280
  }
@@ -106233,17 +106282,17 @@ var z2 = class {
106233
106282
  return this._$AM._$AU;
106234
106283
  }
106235
106284
  _$AI(t32) {
106236
- S22(this, t32);
106285
+ M2(this, t32);
106237
106286
  }
106238
106287
  };
106239
- var j3 = t22.litHtmlPolyfillSupport;
106240
- j3?.(N2, R2), (t22.litHtmlVersions ??= []).push("3.3.0");
106241
- var B2 = (t32, i52, s42) => {
106288
+ var B2 = t22.litHtmlPolyfillSupport;
106289
+ B2?.(S22, k2), (t22.litHtmlVersions ??= []).push("3.3.2");
106290
+ var D2 = (t32, i52, s42) => {
106242
106291
  const e52 = s42?.renderBefore ?? i52;
106243
106292
  let h32 = e52._$litPart$;
106244
106293
  if (void 0 === h32) {
106245
106294
  const t42 = s42?.renderBefore ?? null;
106246
- e52._$litPart$ = h32 = new R2(i52.insertBefore(l22(), t42), t42, void 0, s42 ?? {});
106295
+ e52._$litPart$ = h32 = new k2(i52.insertBefore(c32(), t42), t42, void 0, s42 ?? {});
106247
106296
  }
106248
106297
  return h32._$AI(t32), h32;
106249
106298
  };
@@ -106258,7 +106307,7 @@ var i42 = class extends y3 {
106258
106307
  }
106259
106308
  update(t32) {
106260
106309
  const r52 = this.render();
106261
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t32), this._$Do = B2(r52, this.renderRoot, this.renderOptions);
106310
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t32), this._$Do = D2(r52, this.renderRoot, this.renderOptions);
106262
106311
  }
106263
106312
  connectedCallback() {
106264
106313
  super.connectedCallback(), this._$Do?.setConnected(true);
@@ -106267,13 +106316,13 @@ var i42 = class extends y3 {
106267
106316
  super.disconnectedCallback(), this._$Do?.setConnected(false);
106268
106317
  }
106269
106318
  render() {
106270
- return T2;
106319
+ return E2;
106271
106320
  }
106272
106321
  };
106273
106322
  i42._$litElement$ = true, i42["finalized"] = true, s32.litElementHydrateSupport?.({ LitElement: i42 });
106274
106323
  var o42 = s32.litElementPolyfillSupport;
106275
106324
  o42?.({ LitElement: i42 });
106276
- (s32.litElementVersions ??= []).push("4.2.0");
106325
+ (s32.litElementVersions ??= []).push("4.2.2");
106277
106326
  var o52 = { attribute: true, type: String, converter: u4, reflect: false, hasChanged: f4 };
106278
106327
  var r42 = (t32 = o52, e52, r52) => {
106279
106328
  const { kind: n52, metadata: i52 } = r52;
@@ -106282,7 +106331,7 @@ var r42 = (t32 = o52, e52, r52) => {
106282
106331
  const { name: o62 } = r52;
106283
106332
  return { set(r62) {
106284
106333
  const n62 = e52.get.call(this);
106285
- e52.set.call(this, r62), this.requestUpdate(o62, n62, t32);
106334
+ e52.set.call(this, r62), this.requestUpdate(o62, n62, t32, true, r62);
106286
106335
  }, init(e62) {
106287
106336
  return void 0 !== e62 && this.C(o62, void 0, t32, e62), e62;
106288
106337
  } };
@@ -106291,7 +106340,7 @@ var r42 = (t32 = o52, e52, r52) => {
106291
106340
  const { name: o62 } = r52;
106292
106341
  return function(r62) {
106293
106342
  const n62 = this[o62];
106294
- e52.call(this, r62), this.requestUpdate(o62, n62, t32);
106343
+ e52.call(this, r62), this.requestUpdate(o62, n62, t32, true, r62);
106295
106344
  };
106296
106345
  }
106297
106346
  throw Error("Unsupported decorator location: " + n52);
@@ -106417,13 +106466,19 @@ var LitElementWw = class extends (_a = ScopedElementsMixin2(i42), _contentEditab
106417
106466
  constructor() {
106418
106467
  super(...arguments);
106419
106468
  __runInitializers(_init, 5, this);
106420
- __publicField2(this, "options");
106421
- __publicField2(this, "actions", {});
106422
106469
  __publicField2(this, "localize");
106423
106470
  __privateAdd2(this, _contentEditable, __runInitializers(_init, 8, this)), __runInitializers(_init, 11, this);
106424
106471
  __privateAdd2(this, _lang, "");
106425
106472
  __publicField2(this, "_inTransaction", false);
106426
106473
  }
106474
+ /** Declare attributes as options. Used by WebWriter to auto-generate input fields to modify these attributes. As the name suggests, this is mostly suited to simple attributes (boolean, string, etc.). As this is a getter, you can dynamically change options depending on the state of the widget. */
106475
+ get dynamicOptions() {
106476
+ return {};
106477
+ }
106478
+ /** Declare methods as actions. Used by WebWriter to treat all DOM changes triggered by the method as a single change (as a transaction). As this is a getter, you can dynamically change actions depending on the state of the widget. */
106479
+ get dynamicActions() {
106480
+ return {};
106481
+ }
106427
106482
  get lang() {
106428
106483
  return (__privateGet2(this, _lang) || this.parentElement?.closest("[lang]")?.lang) ?? "";
106429
106484
  }
@@ -106638,10 +106693,12 @@ var m4 = e6(c7);
106638
106693
  init_lit_localize();
106639
106694
 
106640
106695
  // lib/tflib.ts
106641
- async function getTF() {
106642
- if (window.TF == null)
106643
- window.TF = await Promise.resolve().then(() => (init_dist7(), dist_exports4));
106644
- return window.TF;
106696
+ function getTF() {
106697
+ const w4 = window;
106698
+ if (w4.__TFPromise == null) {
106699
+ w4.__TFPromise = w4.TF != null ? Promise.resolve(w4.TF) : Promise.resolve().then(() => (init_dist7(), dist_exports4)).then((tf4) => w4.TF = tf4);
106700
+ }
106701
+ return w4.__TFPromise;
106645
106702
  }
106646
106703
 
106647
106704
  // components/model-tests/bad-samples.ts
@@ -107206,7 +107263,7 @@ var O = { window: "undefined" == typeof window ? null : window, document: "undef
107206
107263
  function F() {
107207
107264
  return O.window;
107208
107265
  }
107209
- var D2 = class {
107266
+ var D3 = class {
107210
107267
  };
107211
107268
  var _3 = {};
107212
107269
  var N3 = "___SYMBOL___ROOT___";
@@ -107214,7 +107271,7 @@ function W(t9, e13 = E3) {
107214
107271
  return O.document.createElementNS(e13, t9);
107215
107272
  }
107216
107273
  function B3(t9, e13 = false) {
107217
- if (t9 instanceof D2) return t9;
107274
+ if (t9 instanceof D3) return t9;
107218
107275
  if ("object" == typeof t9) return U(t9);
107219
107276
  if (null == t9) return new _3[N3]();
107220
107277
  if ("string" == typeof t9 && "<" !== t9.charAt(0)) return U(O.document.querySelector(t9));
@@ -107226,7 +107283,7 @@ function G2(t9, e13) {
107226
107283
  }
107227
107284
  function V3(t9) {
107228
107285
  if (!t9) return null;
107229
- if (t9.instance instanceof D2) return t9.instance;
107286
+ if (t9.instance instanceof D3) return t9.instance;
107230
107287
  if ("#document-fragment" === t9.nodeName) return new _3.Fragment(t9);
107231
107288
  let e13 = P3(t9.nodeName || "Dom");
107232
107289
  return "LinearGradient" === e13 || "RadialGradient" === e13 ? e13 = "Gradient" : _3[e13] || (e13 = "Dom"), new _3[e13](t9);
@@ -107235,9 +107292,9 @@ var U = V3;
107235
107292
  function q(t9, e13 = t9.name, i11 = false) {
107236
107293
  return _3[e13] = t9, i11 && (_3[N3] = t9), S4(Object.getOwnPropertyNames(t9.prototype)), t9;
107237
107294
  }
107238
- var Z2 = 1e3;
107295
+ var Z3 = 1e3;
107239
107296
  function $4(t9) {
107240
- return "Svgjs" + P3(t9) + Z2++;
107297
+ return "Svgjs" + P3(t9) + Z3++;
107241
107298
  }
107242
107299
  function J(t9) {
107243
107300
  for (let e13 = t9.children.length - 1; e13 >= 0; e13--) J(t9.children[e13]);
@@ -107827,7 +107884,7 @@ function Xt(t9, e13, i11, a7) {
107827
107884
  }
107828
107885
  }));
107829
107886
  }
107830
- var Rt = class extends D2 {
107887
+ var Rt = class extends D3 {
107831
107888
  addEventListener() {
107832
107889
  }
107833
107890
  dispatch(t9, e13, i11) {
@@ -112097,7 +112154,7 @@ var ta = (function() {
112097
112154
  if (d5 || s8 || r12 || (f6 = Math.ceil((x4 - o16) / (b5 + o16))) > 16 && v3.getPrimeFactors(f6).length < 2 && f6++, !d5 && i11.forceNiceScale && 0 === h8.yValueDecimal && f6 > x4 && (f6 = x4, b5 = Math.round(x4 / f6)), f6 > a7 && (!d5 && !c9 || i11.forceNiceScale)) {
112098
112155
  var z4 = v3.getPrimeFactors(f6), X2 = z4.length - 1, R4 = f6;
112099
112156
  t: for (var E4 = 0; E4 < X2; E4++) for (var Y2 = 0; Y2 <= X2 - E4; Y2++) {
112100
- for (var H5 = Math.min(Y2 + E4, X2), O2 = R4, F2 = 1, D3 = Y2; D3 <= H5; D3++) F2 *= z4[D3];
112157
+ for (var H5 = Math.min(Y2 + E4, X2), O2 = R4, F2 = 1, D4 = Y2; D4 <= H5; D4++) F2 *= z4[D4];
112101
112158
  if ((O2 /= F2) < a7) {
112102
112159
  R4 = O2;
112103
112160
  break t;
@@ -115312,7 +115369,7 @@ var Ba = (function() {
115312
115369
  return e14 - t11 / M4[l8] + 2 * (a7.isReversed ? t11 / M4[l8] : 0);
115313
115370
  }, Y2 = d5, H5 = S5.config.chart.stacked && !S5.globals.comboCharts || S5.config.chart.stacked && S5.globals.comboCharts && (!this.w.config.chart.stackOnlyBar || "bar" === (null === (e13 = this.w.config.series[o16]) || void 0 === e13 ? void 0 : e13.type) || "column" === (null === (i11 = this.w.config.series[o16]) || void 0 === i11 ? void 0 : i11.type)), O2 = S5.config.stroke.curve;
115314
115371
  Array.isArray(O2) && (O2 = Array.isArray(b5) ? O2[b5[h8]] : O2[h8]);
115315
- for (var F2, D3 = 0, _4 = 0; _4 < n14 && 0 !== r12[h8].length; _4++) {
115372
+ for (var F2, D4 = 0, _4 = 0; _4 < n14 && 0 !== r12[h8].length; _4++) {
115316
115373
  var N4 = void 0 === r12[h8][_4 + 1] || null === r12[h8][_4 + 1];
115317
115374
  if (S5.globals.isXNumeric) {
115318
115375
  var W2 = S5.globals.seriesX[o16][_4 + 1];
@@ -115329,8 +115386,8 @@ var Ba = (function() {
115329
115386
  } else m6 = this.zeroY;
115330
115387
  else m6 = this.zeroY;
115331
115388
  N4 ? d5 = E4(R4, m6) : (d5 = E4(r12[h8][_4 + 1], m6), "rangeArea" === s8 && (Y2 = E4(C4[h8][_4 + 1], m6))), y5.push(null === r12[h8][_4 + 1] ? null : c9), !N4 || "smooth" !== S5.config.stroke.curve && "monotoneCubic" !== S5.config.stroke.curve ? (w4.push(d5), k4.push(Y2)) : (w4.push(null), k4.push(null));
115332
- var B4 = this.lineHelpers.calculatePoints({ series: r12, x: c9, y: d5, realIndex: o16, i: h8, j: _4, prevY: P4 }), G3 = this._createPaths({ type: s8, series: r12, i: h8, realIndex: o16, j: _4, x: c9, y: d5, y2: Y2, xArrj: y5, yArrj: w4, y2Arrj: k4, pX: u6, pY: g4, pathState: D3, segmentStartX: F2, linePath: I4, areaPath: T4, linePaths: f6, areaPaths: x4, curve: O2, isRangeStart: A4 });
115333
- x4 = G3.areaPaths, f6 = G3.linePaths, u6 = G3.pX, g4 = G3.pY, D3 = G3.pathState, F2 = G3.segmentStartX, T4 = G3.areaPath, I4 = G3.linePath, !this.appendPathFrom || S5.globals.hasNullValues || "monotoneCubic" === O2 && "rangeArea" === s8 || (z4 += L4.line(c9, this.areaBottomY), X2 += L4.line(c9, this.areaBottomY)), this.handleNullDataPoints(r12, B4, h8, _4, o16), this._handleMarkersAndLabels({ type: s8, pointsPos: B4, i: h8, j: _4, realIndex: o16, isRangeStart: A4 });
115389
+ var B4 = this.lineHelpers.calculatePoints({ series: r12, x: c9, y: d5, realIndex: o16, i: h8, j: _4, prevY: P4 }), G3 = this._createPaths({ type: s8, series: r12, i: h8, realIndex: o16, j: _4, x: c9, y: d5, y2: Y2, xArrj: y5, yArrj: w4, y2Arrj: k4, pX: u6, pY: g4, pathState: D4, segmentStartX: F2, linePath: I4, areaPath: T4, linePaths: f6, areaPaths: x4, curve: O2, isRangeStart: A4 });
115390
+ x4 = G3.areaPaths, f6 = G3.linePaths, u6 = G3.pX, g4 = G3.pY, D4 = G3.pathState, F2 = G3.segmentStartX, T4 = G3.areaPath, I4 = G3.linePath, !this.appendPathFrom || S5.globals.hasNullValues || "monotoneCubic" === O2 && "rangeArea" === s8 || (z4 += L4.line(c9, this.areaBottomY), X2 += L4.line(c9, this.areaBottomY)), this.handleNullDataPoints(r12, B4, h8, _4, o16), this._handleMarkersAndLabels({ type: s8, pointsPos: B4, i: h8, j: _4, realIndex: o16, isRangeStart: A4 });
115334
115391
  }
115335
115392
  return { yArrj: w4, xArrj: y5, pathFromArea: X2, areaPaths: x4, pathFromLine: z4, linePaths: f6, linePath: I4, areaPath: T4 };
115336
115393
  } }, { key: "_handleMarkersAndLabels", value: function(t10) {
@@ -115437,8 +115494,8 @@ var Ba = (function() {
115437
115494
  break;
115438
115495
  }
115439
115496
  if (p7 = 1, r12 < i11[a7].length - 2) {
115440
- var D3 = F2(y5, n14, o16);
115441
- x4 += D3, b5 += D3;
115497
+ var D4 = F2(y5, n14, o16);
115498
+ x4 += D4, b5 += D4;
115442
115499
  break;
115443
115500
  }
115444
115501
  case 1:
@@ -118892,86 +118949,27 @@ lit-html/directives/style-map.js:
118892
118949
  *)
118893
118950
 
118894
118951
  @lit/reactive-element/reactive-element.js:
118895
- (**
118896
- * @license
118897
- * Copyright 2017 Google LLC
118898
- * SPDX-License-Identifier: BSD-3-Clause
118899
- *)
118900
-
118901
118952
  lit-html/lit-html.js:
118902
- (**
118903
- * @license
118904
- * Copyright 2017 Google LLC
118905
- * SPDX-License-Identifier: BSD-3-Clause
118906
- *)
118907
-
118908
118953
  lit-element/lit-element.js:
118909
- (**
118910
- * @license
118911
- * Copyright 2017 Google LLC
118912
- * SPDX-License-Identifier: BSD-3-Clause
118913
- *)
118914
-
118915
- lit-html/is-server.js:
118916
- (**
118917
- * @license
118918
- * Copyright 2022 Google LLC
118919
- * SPDX-License-Identifier: BSD-3-Clause
118920
- *)
118921
-
118922
118954
  @lit/reactive-element/decorators/custom-element.js:
118923
- (**
118924
- * @license
118925
- * Copyright 2017 Google LLC
118926
- * SPDX-License-Identifier: BSD-3-Clause
118927
- *)
118928
-
118929
118955
  @lit/reactive-element/decorators/property.js:
118930
- (**
118931
- * @license
118932
- * Copyright 2017 Google LLC
118933
- * SPDX-License-Identifier: BSD-3-Clause
118934
- *)
118935
-
118936
118956
  @lit/reactive-element/decorators/state.js:
118937
- (**
118938
- * @license
118939
- * Copyright 2017 Google LLC
118940
- * SPDX-License-Identifier: BSD-3-Clause
118941
- *)
118942
-
118943
118957
  @lit/reactive-element/decorators/event-options.js:
118944
- (**
118945
- * @license
118946
- * Copyright 2017 Google LLC
118947
- * SPDX-License-Identifier: BSD-3-Clause
118948
- *)
118949
-
118950
118958
  @lit/reactive-element/decorators/base.js:
118951
- (**
118952
- * @license
118953
- * Copyright 2017 Google LLC
118954
- * SPDX-License-Identifier: BSD-3-Clause
118955
- *)
118956
-
118957
118959
  @lit/reactive-element/decorators/query.js:
118958
- (**
118959
- * @license
118960
- * Copyright 2017 Google LLC
118961
- * SPDX-License-Identifier: BSD-3-Clause
118962
- *)
118963
-
118964
118960
  @lit/reactive-element/decorators/query-all.js:
118961
+ @lit/reactive-element/decorators/query-async.js:
118962
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
118965
118963
  (**
118966
118964
  * @license
118967
118965
  * Copyright 2017 Google LLC
118968
118966
  * SPDX-License-Identifier: BSD-3-Clause
118969
118967
  *)
118970
118968
 
118971
- @lit/reactive-element/decorators/query-async.js:
118969
+ lit-html/is-server.js:
118972
118970
  (**
118973
118971
  * @license
118974
- * Copyright 2017 Google LLC
118972
+ * Copyright 2022 Google LLC
118975
118973
  * SPDX-License-Identifier: BSD-3-Clause
118976
118974
  *)
118977
118975
 
@@ -118981,13 +118979,6 @@ lit-html/directives/style-map.js:
118981
118979
  * Copyright 2021 Google LLC
118982
118980
  * SPDX-License-Identifier: BSD-3-Clause
118983
118981
  *)
118984
-
118985
- @lit/reactive-element/decorators/query-assigned-nodes.js:
118986
- (**
118987
- * @license
118988
- * Copyright 2017 Google LLC
118989
- * SPDX-License-Identifier: BSD-3-Clause
118990
- *)
118991
118982
  *)
118992
118983
 
118993
118984
  apexcharts/dist/apexcharts.esm.js: