@appsurify-testmap/rrweb-player 2.1.1-alpha.6 → 2.1.1-alpha.7

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.
@@ -50,7 +50,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
50
50
  function noop() {
51
51
  }
52
52
  function assign(tar, src) {
53
- for (const k in src) tar[k] = src[k];
53
+ for (const k in src)
54
+ tar[k] = src[k];
54
55
  return (
55
56
  /** @type {T & S} */
56
57
  tar
@@ -76,7 +77,9 @@ function is_empty(obj) {
76
77
  }
77
78
  function exclude_internal_props(props) {
78
79
  const result2 = {};
79
- for (const k in props) if (k[0] !== "$") result2[k] = props[k];
80
+ for (const k in props)
81
+ if (k[0] !== "$")
82
+ result2[k] = props[k];
80
83
  return result2;
81
84
  }
82
85
  function append(target, node2) {
@@ -92,7 +95,8 @@ function detach(node2) {
92
95
  }
93
96
  function destroy_each(iterations, detaching) {
94
97
  for (let i = 0; i < iterations.length; i += 1) {
95
- if (iterations[i]) iterations[i].d(detaching);
98
+ if (iterations[i])
99
+ iterations[i].d(detaching);
96
100
  }
97
101
  }
98
102
  function element(name) {
@@ -115,15 +119,18 @@ function listen(node2, event, handler, options) {
115
119
  return () => node2.removeEventListener(event, handler, options);
116
120
  }
117
121
  function attr(node2, attribute, value) {
118
- if (value == null) node2.removeAttribute(attribute);
119
- else if (node2.getAttribute(attribute) !== value) node2.setAttribute(attribute, value);
122
+ if (value == null)
123
+ node2.removeAttribute(attribute);
124
+ else if (node2.getAttribute(attribute) !== value)
125
+ node2.setAttribute(attribute, value);
120
126
  }
121
127
  function children(element2) {
122
128
  return Array.from(element2.childNodes);
123
129
  }
124
130
  function set_data(text2, data) {
125
131
  data = "" + data;
126
- if (text2.data === data) return;
132
+ if (text2.data === data)
133
+ return;
127
134
  text2.data = /** @type {string} */
128
135
  data;
129
136
  }
@@ -145,7 +152,8 @@ function set_current_component(component) {
145
152
  current_component = component;
146
153
  }
147
154
  function get_current_component() {
148
- if (!current_component) throw new Error("Function called outside component initialization");
155
+ if (!current_component)
156
+ throw new Error("Function called outside component initialization");
149
157
  return current_component;
150
158
  }
151
159
  function onMount(fn) {
@@ -217,7 +225,8 @@ function flush() {
217
225
  set_current_component(null);
218
226
  dirty_components.length = 0;
219
227
  flushidx = 0;
220
- while (binding_callbacks.length) binding_callbacks.pop()();
228
+ while (binding_callbacks.length)
229
+ binding_callbacks.pop()();
221
230
  for (let i = 0; i < render_callbacks.length; i += 1) {
222
231
  const callback = render_callbacks[i];
223
232
  if (!seen_callbacks.has(callback)) {
@@ -275,12 +284,14 @@ function transition_in(block, local) {
275
284
  }
276
285
  function transition_out(block, local, detach2, callback) {
277
286
  if (block && block.o) {
278
- if (outroing.has(block)) return;
287
+ if (outroing.has(block))
288
+ return;
279
289
  outroing.add(block);
280
290
  outros.c.push(() => {
281
291
  outroing.delete(block);
282
292
  if (callback) {
283
- if (detach2) block.d(1);
293
+ if (detach2)
294
+ block.d(1);
284
295
  callback();
285
296
  }
286
297
  });
@@ -363,8 +374,10 @@ function init(component, options, instance2, create_fragment2, not_equal, props,
363
374
  $$.ctx = instance2 ? instance2(component, options.props || {}, (i, ret, ...rest) => {
364
375
  const value = rest.length ? rest[0] : ret;
365
376
  if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
366
- if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value);
367
- if (ready) make_dirty(component, i);
377
+ if (!$$.skip_bound && $$.bound[i])
378
+ $$.bound[i](value);
379
+ if (ready)
380
+ make_dirty(component, i);
368
381
  }
369
382
  return ret;
370
383
  }) : [];
@@ -380,7 +393,8 @@ function init(component, options, instance2, create_fragment2, not_equal, props,
380
393
  } else {
381
394
  $$.fragment && $$.fragment.c();
382
395
  }
383
- if (options.intro) transition_in(component.$$.fragment);
396
+ if (options.intro)
397
+ transition_in(component.$$.fragment);
384
398
  mount_component(component, options.target, options.anchor);
385
399
  flush();
386
400
  }
@@ -410,7 +424,8 @@ class SvelteComponent {
410
424
  callbacks.push(callback);
411
425
  return () => {
412
426
  const index2 = callbacks.indexOf(callback);
413
- if (index2 !== -1) callbacks.splice(index2, 1);
427
+ if (index2 !== -1)
428
+ callbacks.splice(index2, 1);
414
429
  };
415
430
  }
416
431
  /**
@@ -454,7 +469,8 @@ class Mirror {
454
469
  }
455
470
  getId(n2) {
456
471
  var _a2;
457
- if (!n2) return -1;
472
+ if (!n2)
473
+ return -1;
458
474
  const id = (_a2 = this.getMeta(n2)) == null ? void 0 : _a2.id;
459
475
  return id != null ? id : -1;
460
476
  }
@@ -493,7 +509,8 @@ class Mirror {
493
509
  const oldNode = this.getNode(id);
494
510
  if (oldNode) {
495
511
  const meta = this.nodeMetaMap.get(oldNode);
496
- if (meta) this.nodeMetaMap.set(n2, meta);
512
+ if (meta)
513
+ this.nodeMetaMap.set(n2, meta);
497
514
  }
498
515
  this.idNodeMap.set(id, n2);
499
516
  }
@@ -509,7 +526,8 @@ function toLowerCase(str) {
509
526
  return str.toLowerCase();
510
527
  }
511
528
  function isNodeMetaEqual(a2, b) {
512
- if (!a2 || !b || a2.type !== b.type) return false;
529
+ if (!a2 || !b || a2.type !== b.type)
530
+ return false;
513
531
  if (a2.type === NodeType$3.Document)
514
532
  return a2.compatMode === b.compatMode;
515
533
  else if (a2.type === NodeType$3.DocumentType)
@@ -649,7 +667,8 @@ function getDefaultExportFromCjs$1(x2) {
649
667
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
650
668
  }
651
669
  function getAugmentedNamespace$1(n2) {
652
- if (n2.__esModule) return n2;
670
+ if (n2.__esModule)
671
+ return n2;
653
672
  var f2 = n2.default;
654
673
  if (typeof f2 == "function") {
655
674
  var a2 = function a22() {
@@ -659,7 +678,8 @@ function getAugmentedNamespace$1(n2) {
659
678
  return f2.apply(this, arguments);
660
679
  };
661
680
  a2.prototype = f2.prototype;
662
- } else a2 = {};
681
+ } else
682
+ a2 = {};
663
683
  Object.defineProperty(a2, "__esModule", { value: true });
664
684
  Object.keys(n2).forEach(function(k) {
665
685
  var d = Object.getOwnPropertyDescriptor(n2, k);
@@ -727,11 +747,14 @@ let CssSyntaxError$3$1 = class CssSyntaxError extends Error {
727
747
  this.message += ": " + this.reason;
728
748
  }
729
749
  showSourceCode(color) {
730
- if (!this.source) return "";
750
+ if (!this.source)
751
+ return "";
731
752
  let css = this.source;
732
- if (color == null) color = pico$1.isColorSupported;
753
+ if (color == null)
754
+ color = pico$1.isColorSupported;
733
755
  if (terminalHighlight$1$1) {
734
- if (color) css = terminalHighlight$1$1(css);
756
+ if (color)
757
+ css = terminalHighlight$1$1(css);
735
758
  }
736
759
  let lines = css.split(/\r?\n/);
737
760
  let start = Math.max(this.line - 3, 0);
@@ -824,7 +847,8 @@ let Stringifier$2$1 = class Stringifier {
824
847
  if (value.includes("\n")) {
825
848
  let indent = this.raw(node2, null, "indent");
826
849
  if (indent.length) {
827
- for (let step = 0; step < depth; step++) value += indent;
850
+ for (let step = 0; step < depth; step++)
851
+ value += indent;
828
852
  }
829
853
  }
830
854
  return value;
@@ -839,20 +863,23 @@ let Stringifier$2$1 = class Stringifier {
839
863
  } else {
840
864
  after = this.raw(node2, "after", "emptyBody");
841
865
  }
842
- if (after) this.builder(after);
866
+ if (after)
867
+ this.builder(after);
843
868
  this.builder("}", node2, "end");
844
869
  }
845
870
  body(node2) {
846
871
  let last = node2.nodes.length - 1;
847
872
  while (last > 0) {
848
- if (node2.nodes[last].type !== "comment") break;
873
+ if (node2.nodes[last].type !== "comment")
874
+ break;
849
875
  last -= 1;
850
876
  }
851
877
  let semicolon = this.raw(node2, "semicolon");
852
878
  for (let i2 = 0; i2 < node2.nodes.length; i2++) {
853
879
  let child = node2.nodes[i2];
854
880
  let before = this.raw(child, "before");
855
- if (before) this.builder(before);
881
+ if (before)
882
+ this.builder(before);
856
883
  this.stringify(child, last !== i2 || semicolon);
857
884
  }
858
885
  }
@@ -867,7 +894,8 @@ let Stringifier$2$1 = class Stringifier {
867
894
  if (node2.important) {
868
895
  string += node2.raws.important || " !important";
869
896
  }
870
- if (semicolon) string += ";";
897
+ if (semicolon)
898
+ string += ";";
871
899
  this.builder(string, node2);
872
900
  }
873
901
  document(node2) {
@@ -875,10 +903,12 @@ let Stringifier$2$1 = class Stringifier {
875
903
  }
876
904
  raw(node2, own, detect) {
877
905
  let value;
878
- if (!detect) detect = own;
906
+ if (!detect)
907
+ detect = own;
879
908
  if (own) {
880
909
  value = node2.raws[own];
881
- if (typeof value !== "undefined") return value;
910
+ if (typeof value !== "undefined")
911
+ return value;
882
912
  }
883
913
  let parent = node2.parent;
884
914
  if (detect === "before") {
@@ -889,9 +919,11 @@ let Stringifier$2$1 = class Stringifier {
889
919
  return "";
890
920
  }
891
921
  }
892
- if (!parent) return DEFAULT_RAW$1[detect];
922
+ if (!parent)
923
+ return DEFAULT_RAW$1[detect];
893
924
  let root2 = node2.root();
894
- if (!root2.rawCache) root2.rawCache = {};
925
+ if (!root2.rawCache)
926
+ root2.rawCache = {};
895
927
  if (typeof root2.rawCache[detect] !== "undefined") {
896
928
  return root2.rawCache[detect];
897
929
  }
@@ -904,11 +936,13 @@ let Stringifier$2$1 = class Stringifier {
904
936
  } else {
905
937
  root2.walk((i2) => {
906
938
  value = i2.raws[own];
907
- if (typeof value !== "undefined") return false;
939
+ if (typeof value !== "undefined")
940
+ return false;
908
941
  });
909
942
  }
910
943
  }
911
- if (typeof value === "undefined") value = DEFAULT_RAW$1[detect];
944
+ if (typeof value === "undefined")
945
+ value = DEFAULT_RAW$1[detect];
912
946
  root2.rawCache[detect] = value;
913
947
  return value;
914
948
  }
@@ -925,7 +959,8 @@ let Stringifier$2$1 = class Stringifier {
925
959
  }
926
960
  }
927
961
  });
928
- if (value) value = value.replace(/\S/g, "");
962
+ if (value)
963
+ value = value.replace(/\S/g, "");
929
964
  return value;
930
965
  }
931
966
  rawBeforeComment(root2, node2) {
@@ -969,7 +1004,8 @@ let Stringifier$2$1 = class Stringifier {
969
1004
  root2.walk((i2) => {
970
1005
  if (i2.type !== "decl") {
971
1006
  value = i2.raws.between;
972
- if (typeof value !== "undefined") return false;
1007
+ if (typeof value !== "undefined")
1008
+ return false;
973
1009
  }
974
1010
  });
975
1011
  return value;
@@ -987,7 +1023,8 @@ let Stringifier$2$1 = class Stringifier {
987
1023
  }
988
1024
  }
989
1025
  });
990
- if (value) value = value.replace(/\S/g, "");
1026
+ if (value)
1027
+ value = value.replace(/\S/g, "");
991
1028
  return value;
992
1029
  }
993
1030
  rawColon(root2) {
@@ -1005,13 +1042,15 @@ let Stringifier$2$1 = class Stringifier {
1005
1042
  root2.walk((i2) => {
1006
1043
  if (i2.nodes && i2.nodes.length === 0) {
1007
1044
  value = i2.raws.after;
1008
- if (typeof value !== "undefined") return false;
1045
+ if (typeof value !== "undefined")
1046
+ return false;
1009
1047
  }
1010
1048
  });
1011
1049
  return value;
1012
1050
  }
1013
1051
  rawIndent(root2) {
1014
- if (root2.raws.indent) return root2.raws.indent;
1052
+ if (root2.raws.indent)
1053
+ return root2.raws.indent;
1015
1054
  let value;
1016
1055
  root2.walk((i2) => {
1017
1056
  let p = i2.parent;
@@ -1031,7 +1070,8 @@ let Stringifier$2$1 = class Stringifier {
1031
1070
  root2.walk((i2) => {
1032
1071
  if (i2.nodes && i2.nodes.length && i2.last.type === "decl") {
1033
1072
  value = i2.raws.semicolon;
1034
- if (typeof value !== "undefined") return false;
1073
+ if (typeof value !== "undefined")
1074
+ return false;
1035
1075
  }
1036
1076
  });
1037
1077
  return value;
@@ -1046,7 +1086,8 @@ let Stringifier$2$1 = class Stringifier {
1046
1086
  }
1047
1087
  root(node2) {
1048
1088
  this.body(node2);
1049
- if (node2.raws.after) this.builder(node2.raws.after);
1089
+ if (node2.raws.after)
1090
+ this.builder(node2.raws.after);
1050
1091
  }
1051
1092
  rule(node2) {
1052
1093
  this.block(node2, this.rawValue(node2, "selector"));
@@ -1082,17 +1123,20 @@ function cloneNode$1(obj, parent) {
1082
1123
  if (!Object.prototype.hasOwnProperty.call(obj, i2)) {
1083
1124
  continue;
1084
1125
  }
1085
- if (i2 === "proxyCache") continue;
1126
+ if (i2 === "proxyCache")
1127
+ continue;
1086
1128
  let value = obj[i2];
1087
1129
  let type = typeof value;
1088
1130
  if (i2 === "parent" && type === "object") {
1089
- if (parent) cloned[i2] = parent;
1131
+ if (parent)
1132
+ cloned[i2] = parent;
1090
1133
  } else if (i2 === "source") {
1091
1134
  cloned[i2] = value;
1092
1135
  } else if (Array.isArray(value)) {
1093
1136
  cloned[i2] = value.map((j) => cloneNode$1(j, cloned));
1094
1137
  } else {
1095
- if (type === "object" && value !== null) value = cloneNode$1(value);
1138
+ if (type === "object" && value !== null)
1139
+ value = cloneNode$1(value);
1096
1140
  cloned[i2] = value;
1097
1141
  }
1098
1142
  }
@@ -1146,7 +1190,8 @@ let Node$5$1 = class Node2 {
1146
1190
  cleanRaws(keepBetween) {
1147
1191
  delete this.raws.before;
1148
1192
  delete this.raws.after;
1149
- if (!keepBetween) delete this.raws.between;
1193
+ if (!keepBetween)
1194
+ delete this.raws.between;
1150
1195
  }
1151
1196
  clone(overrides = {}) {
1152
1197
  let cloned = cloneNode$1(this);
@@ -1189,7 +1234,8 @@ let Node$5$1 = class Node2 {
1189
1234
  }
1190
1235
  },
1191
1236
  set(node2, prop, value) {
1192
- if (node2[prop] === value) return true;
1237
+ if (node2[prop] === value)
1238
+ return true;
1193
1239
  node2[prop] = value;
1194
1240
  if (prop === "prop" || prop === "value" || prop === "name" || prop === "params" || prop === "important" || /* c8 ignore next */
1195
1241
  prop === "text") {
@@ -1209,7 +1255,8 @@ let Node$5$1 = class Node2 {
1209
1255
  }
1210
1256
  }
1211
1257
  next() {
1212
- if (!this.parent) return void 0;
1258
+ if (!this.parent)
1259
+ return void 0;
1213
1260
  let index2 = this.parent.index(this);
1214
1261
  return this.parent.nodes[index2 + 1];
1215
1262
  }
@@ -1220,7 +1267,8 @@ let Node$5$1 = class Node2 {
1220
1267
  } else if (opts.word) {
1221
1268
  stringRepresentation = this.toString();
1222
1269
  let index2 = stringRepresentation.indexOf(opts.word);
1223
- if (index2 !== -1) pos = this.positionInside(index2, stringRepresentation);
1270
+ if (index2 !== -1)
1271
+ pos = this.positionInside(index2, stringRepresentation);
1224
1272
  }
1225
1273
  return pos;
1226
1274
  }
@@ -1239,7 +1287,8 @@ let Node$5$1 = class Node2 {
1239
1287
  return { column, line };
1240
1288
  }
1241
1289
  prev() {
1242
- if (!this.parent) return void 0;
1290
+ if (!this.parent)
1291
+ return void 0;
1243
1292
  let index2 = this.parent.index(this);
1244
1293
  return this.parent.nodes[index2 - 1];
1245
1294
  }
@@ -1334,7 +1383,8 @@ let Node$5$1 = class Node2 {
1334
1383
  if (!Object.prototype.hasOwnProperty.call(this, name)) {
1335
1384
  continue;
1336
1385
  }
1337
- if (name === "parent" || name === "proxyCache") continue;
1386
+ if (name === "parent" || name === "proxyCache")
1387
+ continue;
1338
1388
  let value = this[name];
1339
1389
  if (Array.isArray(value)) {
1340
1390
  fixed[name] = value.map((i2) => {
@@ -1374,7 +1424,8 @@ let Node$5$1 = class Node2 {
1374
1424
  return this.proxyCache;
1375
1425
  }
1376
1426
  toString(stringifier2 = stringify$3$1) {
1377
- if (stringifier2.stringify) stringifier2 = stringifier2.stringify;
1427
+ if (stringifier2.stringify)
1428
+ stringifier2 = stringifier2.stringify;
1378
1429
  let result2 = "";
1379
1430
  stringifier2(this, (i2) => {
1380
1431
  result2 += i2;
@@ -1383,7 +1434,8 @@ let Node$5$1 = class Node2 {
1383
1434
  }
1384
1435
  warn(result2, text2, opts) {
1385
1436
  let data = { node: this };
1386
- for (let i2 in opts) data[i2] = opts[i2];
1437
+ for (let i2 in opts)
1438
+ data[i2] = opts[i2];
1387
1439
  return result2.warn(text2, data);
1388
1440
  }
1389
1441
  get proxyOf() {
@@ -1439,7 +1491,8 @@ function fromBase64$1(str) {
1439
1491
  }
1440
1492
  let PreviousMap$2$1 = class PreviousMap {
1441
1493
  constructor(css, opts) {
1442
- if (opts.map === false) return;
1494
+ if (opts.map === false)
1495
+ return;
1443
1496
  this.loadAnnotation(css);
1444
1497
  this.inline = this.startWith(this.annotation, "data:");
1445
1498
  let prev = opts.map ? opts.map.prev : void 0;
@@ -1447,8 +1500,10 @@ let PreviousMap$2$1 = class PreviousMap {
1447
1500
  if (!this.mapFile && opts.from) {
1448
1501
  this.mapFile = opts.from;
1449
1502
  }
1450
- if (this.mapFile) this.root = dirname$1$1(this.mapFile);
1451
- if (text2) this.text = text2;
1503
+ if (this.mapFile)
1504
+ this.root = dirname$1$1(this.mapFile);
1505
+ if (text2)
1506
+ this.text = text2;
1452
1507
  }
1453
1508
  consumer() {
1454
1509
  if (!this.consumerCache) {
@@ -1474,12 +1529,14 @@ let PreviousMap$2$1 = class PreviousMap {
1474
1529
  return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
1475
1530
  }
1476
1531
  isMap(map) {
1477
- if (typeof map !== "object") return false;
1532
+ if (typeof map !== "object")
1533
+ return false;
1478
1534
  return typeof map.mappings === "string" || typeof map._mappings === "string" || Array.isArray(map.sections);
1479
1535
  }
1480
1536
  loadAnnotation(css) {
1481
1537
  let comments = css.match(/\/\*\s*# sourceMappingURL=/gm);
1482
- if (!comments) return;
1538
+ if (!comments)
1539
+ return;
1483
1540
  let start = css.lastIndexOf(comments.pop());
1484
1541
  let end = css.indexOf("*/", start);
1485
1542
  if (start > -1 && end > -1) {
@@ -1494,7 +1551,8 @@ let PreviousMap$2$1 = class PreviousMap {
1494
1551
  }
1495
1552
  }
1496
1553
  loadMap(file, prev) {
1497
- if (prev === false) return false;
1554
+ if (prev === false)
1555
+ return false;
1498
1556
  if (prev) {
1499
1557
  if (typeof prev === "string") {
1500
1558
  return prev;
@@ -1524,12 +1582,14 @@ let PreviousMap$2$1 = class PreviousMap {
1524
1582
  return this.decodeInline(this.annotation);
1525
1583
  } else if (this.annotation) {
1526
1584
  let map = this.annotation;
1527
- if (file) map = join$1(dirname$1$1(file), map);
1585
+ if (file)
1586
+ map = join$1(dirname$1$1(file), map);
1528
1587
  return this.loadFile(map);
1529
1588
  }
1530
1589
  }
1531
1590
  startWith(string, start) {
1532
- if (!string) return false;
1591
+ if (!string)
1592
+ return false;
1533
1593
  return string.substr(0, start.length) === start;
1534
1594
  }
1535
1595
  withContent() {
@@ -1572,13 +1632,15 @@ let Input$4$1 = class Input {
1572
1632
  if (map.text) {
1573
1633
  this.map = map;
1574
1634
  let file = map.consumer().file;
1575
- if (!this.file && file) this.file = this.mapResolve(file);
1635
+ if (!this.file && file)
1636
+ this.file = this.mapResolve(file);
1576
1637
  }
1577
1638
  }
1578
1639
  if (!this.file) {
1579
1640
  this.id = "<input css " + nanoid$2(6) + ">";
1580
1641
  }
1581
- if (this.map) this.map.file = this.from;
1642
+ if (this.map)
1643
+ this.map.file = this.from;
1582
1644
  }
1583
1645
  error(message, line, column, opts = {}) {
1584
1646
  let result2, endLine, endColumn;
@@ -1680,10 +1742,12 @@ let Input$4$1 = class Input {
1680
1742
  return resolve$1$1(this.map.consumer().sourceRoot || this.map.root || ".", file);
1681
1743
  }
1682
1744
  origin(line, column, endLine, endColumn) {
1683
- if (!this.map) return false;
1745
+ if (!this.map)
1746
+ return false;
1684
1747
  let consumer = this.map.consumer();
1685
1748
  let from = consumer.originalPositionFor({ column, line });
1686
- if (!from.source) return false;
1749
+ if (!from.source)
1750
+ return false;
1687
1751
  let to;
1688
1752
  if (typeof endLine === "number") {
1689
1753
  to = consumer.originalPositionFor({ column: endColumn, line: endLine });
@@ -1712,7 +1776,8 @@ let Input$4$1 = class Input {
1712
1776
  }
1713
1777
  }
1714
1778
  let source = consumer.sourceContentFor(from.source);
1715
- if (source) result2.source = source;
1779
+ if (source)
1780
+ result2.source = source;
1716
1781
  return result2;
1717
1782
  }
1718
1783
  toJSON() {
@@ -1770,7 +1835,8 @@ let MapGenerator$2$1 = class MapGenerator {
1770
1835
  content = this.outputFile() + ".map";
1771
1836
  }
1772
1837
  let eol = "\n";
1773
- if (this.css.includes("\r\n")) eol = "\r\n";
1838
+ if (this.css.includes("\r\n"))
1839
+ eol = "\r\n";
1774
1840
  this.css += eol + "/*# sourceMappingURL=" + content + " */";
1775
1841
  }
1776
1842
  applyPrevMaps() {
@@ -1790,12 +1856,14 @@ let MapGenerator$2$1 = class MapGenerator {
1790
1856
  }
1791
1857
  }
1792
1858
  clearAnnotation() {
1793
- if (this.mapOpts.annotation === false) return;
1859
+ if (this.mapOpts.annotation === false)
1860
+ return;
1794
1861
  if (this.root) {
1795
1862
  let node2;
1796
1863
  for (let i2 = this.root.nodes.length - 1; i2 >= 0; i2--) {
1797
1864
  node2 = this.root.nodes[i2];
1798
- if (node2.type !== "comment") continue;
1865
+ if (node2.type !== "comment")
1866
+ continue;
1799
1867
  if (node2.text.indexOf("# sourceMappingURL=") === 0) {
1800
1868
  this.root.removeChild(i2);
1801
1869
  }
@@ -1836,9 +1904,12 @@ let MapGenerator$2$1 = class MapGenerator {
1836
1904
  source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
1837
1905
  });
1838
1906
  }
1839
- if (this.isSourcesContent()) this.setSourcesContent();
1840
- if (this.root && this.previous().length > 0) this.applyPrevMaps();
1841
- if (this.isAnnotation()) this.addAnnotation();
1907
+ if (this.isSourcesContent())
1908
+ this.setSourcesContent();
1909
+ if (this.root && this.previous().length > 0)
1910
+ this.applyPrevMaps();
1911
+ if (this.isAnnotation())
1912
+ this.addAnnotation();
1842
1913
  if (this.isInline()) {
1843
1914
  return [this.css];
1844
1915
  } else {
@@ -1958,11 +2029,15 @@ let MapGenerator$2$1 = class MapGenerator {
1958
2029
  }
1959
2030
  }
1960
2031
  path(file) {
1961
- if (this.mapOpts.absolute) return file;
1962
- if (file.charCodeAt(0) === 60) return file;
1963
- if (/^\w+:\/\//.test(file)) return file;
2032
+ if (this.mapOpts.absolute)
2033
+ return file;
2034
+ if (file.charCodeAt(0) === 60)
2035
+ return file;
2036
+ if (/^\w+:\/\//.test(file))
2037
+ return file;
1964
2038
  let cached = this.memoizedPaths.get(file);
1965
- if (cached) return cached;
2039
+ if (cached)
2040
+ return cached;
1966
2041
  let from = this.opts.to ? dirname$2(this.opts.to) : ".";
1967
2042
  if (typeof this.mapOpts.annotation === "string") {
1968
2043
  from = dirname$2(resolve$2(from, this.mapOpts.annotation));
@@ -1985,7 +2060,8 @@ let MapGenerator$2$1 = class MapGenerator {
1985
2060
  });
1986
2061
  } else {
1987
2062
  let input2 = new Input$3$1(this.originalCSS, this.opts);
1988
- if (input2.map) this.previousMaps.push(input2.map);
2063
+ if (input2.map)
2064
+ this.previousMaps.push(input2.map);
1989
2065
  }
1990
2066
  }
1991
2067
  return this.previousMaps;
@@ -2026,7 +2102,8 @@ let MapGenerator$2$1 = class MapGenerator {
2026
2102
  }
2027
2103
  toFileUrl(path) {
2028
2104
  let cached = this.memoizedFileURLs.get(path);
2029
- if (cached) return cached;
2105
+ if (cached)
2106
+ return cached;
2030
2107
  if (pathToFileURL$2) {
2031
2108
  let fileURL = pathToFileURL$2(path).toString();
2032
2109
  this.memoizedFileURLs.set(path, fileURL);
@@ -2039,7 +2116,8 @@ let MapGenerator$2$1 = class MapGenerator {
2039
2116
  }
2040
2117
  toUrl(path) {
2041
2118
  let cached = this.memoizedURLs.get(path);
2042
- if (cached) return cached;
2119
+ if (cached)
2120
+ return cached;
2043
2121
  if (sep$1 === "\\") {
2044
2122
  path = path.replace(/\\/g, "/");
2045
2123
  }
@@ -2068,7 +2146,8 @@ let AtRule$4$1;
2068
2146
  let Root$6$1;
2069
2147
  function cleanSource$1(nodes) {
2070
2148
  return nodes.map((i2) => {
2071
- if (i2.nodes) i2.nodes = cleanSource$1(i2.nodes);
2149
+ if (i2.nodes)
2150
+ i2.nodes = cleanSource$1(i2.nodes);
2072
2151
  delete i2.source;
2073
2152
  return i2;
2074
2153
  });
@@ -2085,7 +2164,8 @@ let Container$7$1 = class Container extends Node$2$1 {
2085
2164
  append(...children2) {
2086
2165
  for (let child of children2) {
2087
2166
  let nodes = this.normalize(child, this.last);
2088
- for (let node2 of nodes) this.proxyOf.nodes.push(node2);
2167
+ for (let node2 of nodes)
2168
+ this.proxyOf.nodes.push(node2);
2089
2169
  }
2090
2170
  this.markDirty();
2091
2171
  return this;
@@ -2093,17 +2173,20 @@ let Container$7$1 = class Container extends Node$2$1 {
2093
2173
  cleanRaws(keepBetween) {
2094
2174
  super.cleanRaws(keepBetween);
2095
2175
  if (this.nodes) {
2096
- for (let node2 of this.nodes) node2.cleanRaws(keepBetween);
2176
+ for (let node2 of this.nodes)
2177
+ node2.cleanRaws(keepBetween);
2097
2178
  }
2098
2179
  }
2099
2180
  each(callback) {
2100
- if (!this.proxyOf.nodes) return void 0;
2181
+ if (!this.proxyOf.nodes)
2182
+ return void 0;
2101
2183
  let iterator = this.getIterator();
2102
2184
  let index2, result2;
2103
2185
  while (this.indexes[iterator] < this.proxyOf.nodes.length) {
2104
2186
  index2 = this.indexes[iterator];
2105
2187
  result2 = callback(this.proxyOf.nodes[index2], index2);
2106
- if (result2 === false) break;
2188
+ if (result2 === false)
2189
+ break;
2107
2190
  this.indexes[iterator] += 1;
2108
2191
  }
2109
2192
  delete this.indexes[iterator];
@@ -2113,8 +2196,10 @@ let Container$7$1 = class Container extends Node$2$1 {
2113
2196
  return this.nodes.every(condition);
2114
2197
  }
2115
2198
  getIterator() {
2116
- if (!this.lastEach) this.lastEach = 0;
2117
- if (!this.indexes) this.indexes = {};
2199
+ if (!this.lastEach)
2200
+ this.lastEach = 0;
2201
+ if (!this.indexes)
2202
+ this.indexes = {};
2118
2203
  this.lastEach += 1;
2119
2204
  let iterator = this.lastEach;
2120
2205
  this.indexes[iterator] = 0;
@@ -2156,7 +2241,8 @@ let Container$7$1 = class Container extends Node$2$1 {
2156
2241
  }
2157
2242
  },
2158
2243
  set(node2, prop, value) {
2159
- if (node2[prop] === value) return true;
2244
+ if (node2[prop] === value)
2245
+ return true;
2160
2246
  node2[prop] = value;
2161
2247
  if (prop === "name" || prop === "params" || prop === "selector") {
2162
2248
  node2.markDirty();
@@ -2166,15 +2252,18 @@ let Container$7$1 = class Container extends Node$2$1 {
2166
2252
  };
2167
2253
  }
2168
2254
  index(child) {
2169
- if (typeof child === "number") return child;
2170
- if (child.proxyOf) child = child.proxyOf;
2255
+ if (typeof child === "number")
2256
+ return child;
2257
+ if (child.proxyOf)
2258
+ child = child.proxyOf;
2171
2259
  return this.proxyOf.nodes.indexOf(child);
2172
2260
  }
2173
2261
  insertAfter(exist, add) {
2174
2262
  let existIndex = this.index(exist);
2175
2263
  let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse();
2176
2264
  existIndex = this.index(exist);
2177
- for (let node2 of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node2);
2265
+ for (let node2 of nodes)
2266
+ this.proxyOf.nodes.splice(existIndex + 1, 0, node2);
2178
2267
  let index2;
2179
2268
  for (let id in this.indexes) {
2180
2269
  index2 = this.indexes[id];
@@ -2190,7 +2279,8 @@ let Container$7$1 = class Container extends Node$2$1 {
2190
2279
  let type = existIndex === 0 ? "prepend" : false;
2191
2280
  let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse();
2192
2281
  existIndex = this.index(exist);
2193
- for (let node2 of nodes) this.proxyOf.nodes.splice(existIndex, 0, node2);
2282
+ for (let node2 of nodes)
2283
+ this.proxyOf.nodes.splice(existIndex, 0, node2);
2194
2284
  let index2;
2195
2285
  for (let id in this.indexes) {
2196
2286
  index2 = this.indexes[id];
@@ -2209,12 +2299,14 @@ let Container$7$1 = class Container extends Node$2$1 {
2209
2299
  } else if (Array.isArray(nodes)) {
2210
2300
  nodes = nodes.slice(0);
2211
2301
  for (let i2 of nodes) {
2212
- if (i2.parent) i2.parent.removeChild(i2, "ignore");
2302
+ if (i2.parent)
2303
+ i2.parent.removeChild(i2, "ignore");
2213
2304
  }
2214
2305
  } else if (nodes.type === "root" && this.type !== "document") {
2215
2306
  nodes = nodes.nodes.slice(0);
2216
2307
  for (let i2 of nodes) {
2217
- if (i2.parent) i2.parent.removeChild(i2, "ignore");
2308
+ if (i2.parent)
2309
+ i2.parent.removeChild(i2, "ignore");
2218
2310
  }
2219
2311
  } else if (nodes.type) {
2220
2312
  nodes = [nodes];
@@ -2235,10 +2327,13 @@ let Container$7$1 = class Container extends Node$2$1 {
2235
2327
  throw new Error("Unknown node type in node creation");
2236
2328
  }
2237
2329
  let processed = nodes.map((i2) => {
2238
- if (!i2[my$1$1]) Container.rebuild(i2);
2330
+ if (!i2[my$1$1])
2331
+ Container.rebuild(i2);
2239
2332
  i2 = i2.proxyOf;
2240
- if (i2.parent) i2.parent.removeChild(i2);
2241
- if (i2[isClean$1$1]) markDirtyUp$1(i2);
2333
+ if (i2.parent)
2334
+ i2.parent.removeChild(i2);
2335
+ if (i2[isClean$1$1])
2336
+ markDirtyUp$1(i2);
2242
2337
  if (typeof i2.raws.before === "undefined") {
2243
2338
  if (sample && typeof sample.raws.before !== "undefined") {
2244
2339
  i2.raws.before = sample.raws.before.replace(/\S/g, "");
@@ -2253,7 +2348,8 @@ let Container$7$1 = class Container extends Node$2$1 {
2253
2348
  children2 = children2.reverse();
2254
2349
  for (let child of children2) {
2255
2350
  let nodes = this.normalize(child, this.first, "prepend").reverse();
2256
- for (let node2 of nodes) this.proxyOf.nodes.unshift(node2);
2351
+ for (let node2 of nodes)
2352
+ this.proxyOf.nodes.unshift(node2);
2257
2353
  for (let id in this.indexes) {
2258
2354
  this.indexes[id] = this.indexes[id] + nodes.length;
2259
2355
  }
@@ -2267,7 +2363,8 @@ let Container$7$1 = class Container extends Node$2$1 {
2267
2363
  return this;
2268
2364
  }
2269
2365
  removeAll() {
2270
- for (let node2 of this.proxyOf.nodes) node2.parent = void 0;
2366
+ for (let node2 of this.proxyOf.nodes)
2367
+ node2.parent = void 0;
2271
2368
  this.proxyOf.nodes = [];
2272
2369
  this.markDirty();
2273
2370
  return this;
@@ -2292,8 +2389,10 @@ let Container$7$1 = class Container extends Node$2$1 {
2292
2389
  opts = {};
2293
2390
  }
2294
2391
  this.walkDecls((decl) => {
2295
- if (opts.props && !opts.props.includes(decl.prop)) return;
2296
- if (opts.fast && !decl.value.includes(opts.fast)) return;
2392
+ if (opts.props && !opts.props.includes(decl.prop))
2393
+ return;
2394
+ if (opts.fast && !decl.value.includes(opts.fast))
2395
+ return;
2297
2396
  decl.value = decl.value.replace(pattern, callback);
2298
2397
  });
2299
2398
  this.markDirty();
@@ -2390,11 +2489,13 @@ let Container$7$1 = class Container extends Node$2$1 {
2390
2489
  });
2391
2490
  }
2392
2491
  get first() {
2393
- if (!this.proxyOf.nodes) return void 0;
2492
+ if (!this.proxyOf.nodes)
2493
+ return void 0;
2394
2494
  return this.proxyOf.nodes[0];
2395
2495
  }
2396
2496
  get last() {
2397
- if (!this.proxyOf.nodes) return void 0;
2497
+ if (!this.proxyOf.nodes)
2498
+ return void 0;
2398
2499
  return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
2399
2500
  }
2400
2501
  };
@@ -2456,7 +2557,8 @@ var document$1$1 = Document$3$1;
2456
2557
  Document$3$1.default = Document$3$1;
2457
2558
  let printed$1 = {};
2458
2559
  var warnOnce$2$1 = function warnOnce(message) {
2459
- if (printed$1[message]) return;
2560
+ if (printed$1[message])
2561
+ return;
2460
2562
  printed$1[message] = true;
2461
2563
  if (typeof console !== "undefined" && console.warn) {
2462
2564
  console.warn(message);
@@ -2473,7 +2575,8 @@ let Warning$2$1 = class Warning {
2473
2575
  this.endLine = range.end.line;
2474
2576
  this.endColumn = range.end.column;
2475
2577
  }
2476
- for (let opt in opts) this[opt] = opts[opt];
2578
+ for (let opt in opts)
2579
+ this[opt] = opts[opt];
2477
2580
  }
2478
2581
  toString() {
2479
2582
  if (this.node) {
@@ -2565,8 +2668,10 @@ var tokenize$1 = function tokenizer(input2, options = {}) {
2565
2668
  return returned.length === 0 && pos >= length;
2566
2669
  }
2567
2670
  function nextToken(opts) {
2568
- if (returned.length) return returned.pop();
2569
- if (pos >= length) return;
2671
+ if (returned.length)
2672
+ return returned.pop();
2673
+ if (pos >= length)
2674
+ return;
2570
2675
  let ignoreUnclosed = opts ? opts.ignoreUnclosed : false;
2571
2676
  code = css.charCodeAt(pos);
2572
2677
  switch (code) {
@@ -2738,11 +2843,13 @@ let AtRule$3$1 = class AtRule extends Container$5$1 {
2738
2843
  this.type = "atrule";
2739
2844
  }
2740
2845
  append(...children2) {
2741
- if (!this.proxyOf.nodes) this.nodes = [];
2846
+ if (!this.proxyOf.nodes)
2847
+ this.nodes = [];
2742
2848
  return super.append(...children2);
2743
2849
  }
2744
2850
  prepend(...children2) {
2745
- if (!this.proxyOf.nodes) this.nodes = [];
2851
+ if (!this.proxyOf.nodes)
2852
+ this.nodes = [];
2746
2853
  return super.prepend(...children2);
2747
2854
  }
2748
2855
  };
@@ -2756,7 +2863,8 @@ let Root$5$1 = class Root extends Container$4$1 {
2756
2863
  constructor(defaults) {
2757
2864
  super(defaults);
2758
2865
  this.type = "root";
2759
- if (!this.nodes) this.nodes = [];
2866
+ if (!this.nodes)
2867
+ this.nodes = [];
2760
2868
  }
2761
2869
  normalize(child, sample, type) {
2762
2870
  let nodes = super.normalize(child);
@@ -2827,19 +2935,23 @@ let list$2$1 = {
2827
2935
  } else if (letter === "(") {
2828
2936
  func += 1;
2829
2937
  } else if (letter === ")") {
2830
- if (func > 0) func -= 1;
2938
+ if (func > 0)
2939
+ func -= 1;
2831
2940
  } else if (func === 0) {
2832
- if (separators.includes(letter)) split = true;
2941
+ if (separators.includes(letter))
2942
+ split = true;
2833
2943
  }
2834
2944
  if (split) {
2835
- if (current !== "") array.push(current.trim());
2945
+ if (current !== "")
2946
+ array.push(current.trim());
2836
2947
  current = "";
2837
2948
  split = false;
2838
2949
  } else {
2839
2950
  current += letter;
2840
2951
  }
2841
2952
  }
2842
- if (last || current !== "") array.push(current.trim());
2953
+ if (last || current !== "")
2954
+ array.push(current.trim());
2843
2955
  return array;
2844
2956
  }
2845
2957
  };
@@ -2851,7 +2963,8 @@ let Rule$3$1 = class Rule extends Container$3$1 {
2851
2963
  constructor(defaults) {
2852
2964
  super(defaults);
2853
2965
  this.type = "rule";
2854
- if (!this.nodes) this.nodes = [];
2966
+ if (!this.nodes)
2967
+ this.nodes = [];
2855
2968
  }
2856
2969
  get selectors() {
2857
2970
  return list$1$1.comma(this.selector);
@@ -2879,7 +2992,8 @@ function findLastWithPosition$1(tokens) {
2879
2992
  for (let i2 = tokens.length - 1; i2 >= 0; i2--) {
2880
2993
  let token = tokens[i2];
2881
2994
  let pos = token[3] || token[2];
2882
- if (pos) return pos;
2995
+ if (pos)
2996
+ return pos;
2883
2997
  }
2884
2998
  }
2885
2999
  let Parser$1$1 = class Parser {
@@ -2972,14 +3086,16 @@ let Parser$1$1 = class Parser {
2972
3086
  }
2973
3087
  checkMissedSemicolon(tokens) {
2974
3088
  let colon = this.colon(tokens);
2975
- if (colon === false) return;
3089
+ if (colon === false)
3090
+ return;
2976
3091
  let founded = 0;
2977
3092
  let token;
2978
3093
  for (let j = colon - 1; j >= 0; j--) {
2979
3094
  token = tokens[j];
2980
3095
  if (token[0] !== "space") {
2981
3096
  founded += 1;
2982
- if (founded === 2) break;
3097
+ if (founded === 2)
3098
+ break;
2983
3099
  }
2984
3100
  }
2985
3101
  throw this.input.error(
@@ -3045,7 +3161,8 @@ let Parser$1$1 = class Parser {
3045
3161
  );
3046
3162
  node2.source.end.offset++;
3047
3163
  while (tokens[0][0] !== "word") {
3048
- if (tokens.length === 1) this.unknownWord(tokens);
3164
+ if (tokens.length === 1)
3165
+ this.unknownWord(tokens);
3049
3166
  node2.raws.before += tokens.shift()[1];
3050
3167
  }
3051
3168
  node2.source.start = this.getPosition(tokens[0][2]);
@@ -3079,7 +3196,8 @@ let Parser$1$1 = class Parser {
3079
3196
  let next;
3080
3197
  while (tokens.length) {
3081
3198
  next = tokens[0][0];
3082
- if (next !== "space" && next !== "comment") break;
3199
+ if (next !== "space" && next !== "comment")
3200
+ break;
3083
3201
  firstSpaces.push(tokens.shift());
3084
3202
  }
3085
3203
  this.precheckMissedSemicolon(tokens);
@@ -3089,7 +3207,8 @@ let Parser$1$1 = class Parser {
3089
3207
  node2.important = true;
3090
3208
  let string = this.stringFrom(tokens, i2);
3091
3209
  string = this.spacesFromEnd(tokens) + string;
3092
- if (string !== " !important") node2.raws.important = string;
3210
+ if (string !== " !important")
3211
+ node2.raws.important = string;
3093
3212
  break;
3094
3213
  } else if (token[1].toLowerCase() === "important") {
3095
3214
  let cache = tokens.slice(0);
@@ -3151,7 +3270,8 @@ let Parser$1$1 = class Parser {
3151
3270
  }
3152
3271
  }
3153
3272
  endFile() {
3154
- if (this.current.parent) this.unclosedBlock();
3273
+ if (this.current.parent)
3274
+ this.unclosedBlock();
3155
3275
  if (this.current.nodes && this.current.nodes.length) {
3156
3276
  this.current.raws.semicolon = this.semicolon;
3157
3277
  }
@@ -3185,7 +3305,8 @@ let Parser$1$1 = class Parser {
3185
3305
  };
3186
3306
  node2.raws.before = this.spaces;
3187
3307
  this.spaces = "";
3188
- if (node2.type !== "comment") this.semicolon = false;
3308
+ if (node2.type !== "comment")
3309
+ this.semicolon = false;
3189
3310
  }
3190
3311
  other(start) {
3191
3312
  let end = false;
@@ -3200,10 +3321,12 @@ let Parser$1$1 = class Parser {
3200
3321
  type = token[0];
3201
3322
  tokens.push(token);
3202
3323
  if (type === "(" || type === "[") {
3203
- if (!bracket) bracket = token;
3324
+ if (!bracket)
3325
+ bracket = token;
3204
3326
  brackets.push(type === "(" ? ")" : "]");
3205
3327
  } else if (customProperty && colon && type === "{") {
3206
- if (!bracket) bracket = token;
3328
+ if (!bracket)
3329
+ bracket = token;
3207
3330
  brackets.push("}");
3208
3331
  } else if (brackets.length === 0) {
3209
3332
  if (type === ";") {
@@ -3225,17 +3348,21 @@ let Parser$1$1 = class Parser {
3225
3348
  }
3226
3349
  } else if (type === brackets[brackets.length - 1]) {
3227
3350
  brackets.pop();
3228
- if (brackets.length === 0) bracket = null;
3351
+ if (brackets.length === 0)
3352
+ bracket = null;
3229
3353
  }
3230
3354
  token = this.tokenizer.nextToken();
3231
3355
  }
3232
- if (this.tokenizer.endOfFile()) end = true;
3233
- if (brackets.length > 0) this.unclosedBracket(bracket);
3356
+ if (this.tokenizer.endOfFile())
3357
+ end = true;
3358
+ if (brackets.length > 0)
3359
+ this.unclosedBracket(bracket);
3234
3360
  if (end && colon) {
3235
3361
  if (!customProperty) {
3236
3362
  while (tokens.length) {
3237
3363
  token = tokens[tokens.length - 1][0];
3238
- if (token !== "space" && token !== "comment") break;
3364
+ if (token !== "space" && token !== "comment")
3365
+ break;
3239
3366
  this.tokenizer.back(tokens.pop());
3240
3367
  }
3241
3368
  }
@@ -3322,7 +3449,8 @@ let Parser$1$1 = class Parser {
3322
3449
  let spaces = "";
3323
3450
  while (tokens.length) {
3324
3451
  lastTokenType = tokens[tokens.length - 1][0];
3325
- if (lastTokenType !== "space" && lastTokenType !== "comment") break;
3452
+ if (lastTokenType !== "space" && lastTokenType !== "comment")
3453
+ break;
3326
3454
  spaces = tokens.pop()[1] + spaces;
3327
3455
  }
3328
3456
  return spaces;
@@ -3333,7 +3461,8 @@ let Parser$1$1 = class Parser {
3333
3461
  let spaces = "";
3334
3462
  while (tokens.length) {
3335
3463
  next = tokens[0][0];
3336
- if (next !== "space" && next !== "comment") break;
3464
+ if (next !== "space" && next !== "comment")
3465
+ break;
3337
3466
  spaces += tokens.shift()[1];
3338
3467
  }
3339
3468
  return spaces;
@@ -3343,7 +3472,8 @@ let Parser$1$1 = class Parser {
3343
3472
  let spaces = "";
3344
3473
  while (tokens.length) {
3345
3474
  lastTokenType = tokens[tokens.length - 1][0];
3346
- if (lastTokenType !== "space") break;
3475
+ if (lastTokenType !== "space")
3476
+ break;
3347
3477
  spaces = tokens.pop()[1] + spaces;
3348
3478
  }
3349
3479
  return spaces;
@@ -3505,7 +3635,8 @@ function toStack$1(node2) {
3505
3635
  }
3506
3636
  function cleanMarks$1(node2) {
3507
3637
  node2[isClean$3] = false;
3508
- if (node2.nodes) node2.nodes.forEach((i2) => cleanMarks$1(i2));
3638
+ if (node2.nodes)
3639
+ node2.nodes.forEach((i2) => cleanMarks$1(i2));
3509
3640
  return node2;
3510
3641
  }
3511
3642
  let postcss$2$1 = {};
@@ -3519,15 +3650,20 @@ let LazyResult$2$1 = class LazyResult {
3519
3650
  } else if (css instanceof LazyResult || css instanceof Result$2$1) {
3520
3651
  root2 = cleanMarks$1(css.root);
3521
3652
  if (css.map) {
3522
- if (typeof opts.map === "undefined") opts.map = {};
3523
- if (!opts.map.inline) opts.map.inline = false;
3653
+ if (typeof opts.map === "undefined")
3654
+ opts.map = {};
3655
+ if (!opts.map.inline)
3656
+ opts.map.inline = false;
3524
3657
  opts.map.prev = css.map;
3525
3658
  }
3526
3659
  } else {
3527
3660
  let parser2 = parse$2$1;
3528
- if (opts.syntax) parser2 = opts.syntax.parse;
3529
- if (opts.parser) parser2 = opts.parser;
3530
- if (parser2.parse) parser2 = parser2.parse;
3661
+ if (opts.syntax)
3662
+ parser2 = opts.syntax.parse;
3663
+ if (opts.parser)
3664
+ parser2 = opts.parser;
3665
+ if (parser2.parse)
3666
+ parser2 = parser2.parse;
3531
3667
  try {
3532
3668
  root2 = parser2(css, opts);
3533
3669
  } catch (error) {
@@ -3549,8 +3685,10 @@ let LazyResult$2$1 = class LazyResult {
3549
3685
  });
3550
3686
  }
3551
3687
  async() {
3552
- if (this.error) return Promise.reject(this.error);
3553
- if (this.processed) return Promise.resolve(this.result);
3688
+ if (this.error)
3689
+ return Promise.reject(this.error);
3690
+ if (this.processed)
3691
+ return Promise.resolve(this.result);
3554
3692
  if (!this.processing) {
3555
3693
  this.processing = this.runAsync();
3556
3694
  }
@@ -3568,7 +3706,8 @@ let LazyResult$2$1 = class LazyResult {
3568
3706
  handleError(error, node2) {
3569
3707
  let plugin22 = this.result.lastPlugin;
3570
3708
  try {
3571
- if (node2) node2.addToError(error);
3709
+ if (node2)
3710
+ node2.addToError(error);
3572
3711
  this.error = error;
3573
3712
  if (error.name === "CssSyntaxError" && !error.plugin) {
3574
3713
  error.plugin = plugin22.postcssPlugin;
@@ -3588,14 +3727,16 @@ let LazyResult$2$1 = class LazyResult {
3588
3727
  }
3589
3728
  }
3590
3729
  } catch (err) {
3591
- if (console && console.error) console.error(err);
3730
+ if (console && console.error)
3731
+ console.error(err);
3592
3732
  }
3593
3733
  return error;
3594
3734
  }
3595
3735
  prepareVisitors() {
3596
3736
  this.listeners = {};
3597
3737
  let add = (plugin22, type, cb) => {
3598
- if (!this.listeners[type]) this.listeners[type] = [];
3738
+ if (!this.listeners[type])
3739
+ this.listeners[type] = [];
3599
3740
  this.listeners[type].push([plugin22, cb]);
3600
3741
  };
3601
3742
  for (let plugin22 of this.plugins) {
@@ -3702,15 +3843,20 @@ let LazyResult$2$1 = class LazyResult {
3702
3843
  }
3703
3844
  }
3704
3845
  stringify() {
3705
- if (this.error) throw this.error;
3706
- if (this.stringified) return this.result;
3846
+ if (this.error)
3847
+ throw this.error;
3848
+ if (this.stringified)
3849
+ return this.result;
3707
3850
  this.stringified = true;
3708
3851
  this.sync();
3709
3852
  let opts = this.result.opts;
3710
3853
  let str = stringify$2$1;
3711
- if (opts.syntax) str = opts.syntax.stringify;
3712
- if (opts.stringifier) str = opts.stringifier;
3713
- if (str.stringify) str = str.stringify;
3854
+ if (opts.syntax)
3855
+ str = opts.syntax.stringify;
3856
+ if (opts.stringifier)
3857
+ str = opts.stringifier;
3858
+ if (str.stringify)
3859
+ str = str.stringify;
3714
3860
  let map = new MapGenerator$1$1(str, this.result.root, this.result.opts);
3715
3861
  let data = map.generate();
3716
3862
  this.result.css = data[0];
@@ -3718,8 +3864,10 @@ let LazyResult$2$1 = class LazyResult {
3718
3864
  return this.result;
3719
3865
  }
3720
3866
  sync() {
3721
- if (this.error) throw this.error;
3722
- if (this.processed) return this.result;
3867
+ if (this.error)
3868
+ throw this.error;
3869
+ if (this.processed)
3870
+ return this.result;
3723
3871
  this.processed = true;
3724
3872
  if (this.processing) {
3725
3873
  throw this.getAsyncError();
@@ -3838,13 +3986,15 @@ let LazyResult$2$1 = class LazyResult {
3838
3986
  if (event === CHILDREN$1) {
3839
3987
  if (node2.nodes) {
3840
3988
  node2.each((child) => {
3841
- if (!child[isClean$3]) this.walkSync(child);
3989
+ if (!child[isClean$3])
3990
+ this.walkSync(child);
3842
3991
  });
3843
3992
  }
3844
3993
  } else {
3845
3994
  let visitors = this.listeners[event];
3846
3995
  if (visitors) {
3847
- if (this.visitSync(visitors, node2.toProxy())) return;
3996
+ if (this.visitSync(visitors, node2.toProxy()))
3997
+ return;
3848
3998
  }
3849
3999
  }
3850
4000
  }
@@ -3922,7 +4072,8 @@ let NoWorkResult$1$1 = class NoWorkResult {
3922
4072
  }
3923
4073
  }
3924
4074
  async() {
3925
- if (this.error) return Promise.reject(this.error);
4075
+ if (this.error)
4076
+ return Promise.reject(this.error);
3926
4077
  return Promise.resolve(this.result);
3927
4078
  }
3928
4079
  catch(onRejected) {
@@ -3932,7 +4083,8 @@ let NoWorkResult$1$1 = class NoWorkResult {
3932
4083
  return this.async().then(onFinally, onFinally);
3933
4084
  }
3934
4085
  sync() {
3935
- if (this.error) throw this.error;
4086
+ if (this.error)
4087
+ throw this.error;
3936
4088
  return this.result;
3937
4089
  }
3938
4090
  then(onFulfilled, onRejected) {
@@ -4052,7 +4204,8 @@ let Input$1$1 = input$1;
4052
4204
  let Root$1$1 = root$1;
4053
4205
  let Rule$1$1 = rule$1;
4054
4206
  function fromJSON$1$1(json, inputs) {
4055
- if (Array.isArray(json)) return json.map((n2) => fromJSON$1$1(n2));
4207
+ if (Array.isArray(json))
4208
+ return json.map((n2) => fromJSON$1$1(n2));
4056
4209
  let _a2 = json, { inputs: ownInputs } = _a2, defaults = __objRest(_a2, ["inputs"]);
4057
4210
  if (ownInputs) {
4058
4211
  inputs = [];
@@ -4138,7 +4291,8 @@ postcss$3.plugin = function plugin(name, initializer) {
4138
4291
  let cache;
4139
4292
  Object.defineProperty(creator, "postcss", {
4140
4293
  get() {
4141
- if (!cache) cache = creator();
4294
+ if (!cache)
4295
+ cache = creator();
4142
4296
  return cache;
4143
4297
  }
4144
4298
  });
@@ -4247,7 +4401,8 @@ function getTagName(n2) {
4247
4401
  }
4248
4402
  function adaptCssForReplay(cssText, cache) {
4249
4403
  const cachedStyle = cache == null ? void 0 : cache.stylesWithHoverClass.get(cssText);
4250
- if (cachedStyle) return cachedStyle;
4404
+ if (cachedStyle)
4405
+ return cachedStyle;
4251
4406
  let result2 = cssText;
4252
4407
  try {
4253
4408
  const ast = postcss$1$1([
@@ -4368,12 +4523,14 @@ function buildNode(n2, options) {
4368
4523
  if (value === null) {
4369
4524
  continue;
4370
4525
  }
4371
- if (value === true) value = "";
4526
+ if (value === true)
4527
+ value = "";
4372
4528
  if (name.startsWith("rr_")) {
4373
4529
  specialAttributes[name] = value;
4374
4530
  continue;
4375
4531
  }
4376
- if (typeof value !== "string") ;
4532
+ if (typeof value !== "string")
4533
+ ;
4377
4534
  else if (tagName === "style" && name === "_cssText") {
4378
4535
  buildStyleNode(n2, node2, value, options);
4379
4536
  continue;
@@ -4496,7 +4653,8 @@ function buildNodeWithSN(n2, options) {
4496
4653
  if (mirror2.has(n2.id)) {
4497
4654
  const nodeInMirror = mirror2.getNode(n2.id);
4498
4655
  const meta = mirror2.getMeta(nodeInMirror);
4499
- if (isNodeMetaEqual(meta, n2)) return mirror2.getNode(n2.id);
4656
+ if (isNodeMetaEqual(meta, n2))
4657
+ return mirror2.getNode(n2.id);
4500
4658
  }
4501
4659
  let node2 = buildNode(n2, { doc, hackCss, cache });
4502
4660
  if (!node2) {
@@ -4542,7 +4700,8 @@ function buildNodeWithSN(n2, options) {
4542
4700
  const htmlElement = childNode;
4543
4701
  let body = null;
4544
4702
  htmlElement.childNodes.forEach((child) => {
4545
- if (child.nodeName === "BODY") body = child;
4703
+ if (child.nodeName === "BODY")
4704
+ body = child;
4546
4705
  });
4547
4706
  if (body) {
4548
4707
  htmlElement.removeChild(body);
@@ -4628,7 +4787,8 @@ let Mirror$1 = class Mirror2 {
4628
4787
  }
4629
4788
  getId(n2) {
4630
4789
  var _a2;
4631
- if (!n2) return -1;
4790
+ if (!n2)
4791
+ return -1;
4632
4792
  const id = (_a2 = this.getMeta(n2)) == null ? void 0 : _a2.id;
4633
4793
  return id != null ? id : -1;
4634
4794
  }
@@ -4667,7 +4827,8 @@ let Mirror$1 = class Mirror2 {
4667
4827
  const oldNode = this.getNode(id);
4668
4828
  if (oldNode) {
4669
4829
  const meta = this.nodeMetaMap.get(oldNode);
4670
- if (meta) this.nodeMetaMap.set(n2, meta);
4830
+ if (meta)
4831
+ this.nodeMetaMap.set(n2, meta);
4671
4832
  }
4672
4833
  this.idNodeMap.set(id, n2);
4673
4834
  }
@@ -4762,7 +4923,8 @@ function getDefaultExportFromCjs(x2) {
4762
4923
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
4763
4924
  }
4764
4925
  function getAugmentedNamespace(n2) {
4765
- if (n2.__esModule) return n2;
4926
+ if (n2.__esModule)
4927
+ return n2;
4766
4928
  var f2 = n2.default;
4767
4929
  if (typeof f2 == "function") {
4768
4930
  var a2 = function a22() {
@@ -4772,7 +4934,8 @@ function getAugmentedNamespace(n2) {
4772
4934
  return f2.apply(this, arguments);
4773
4935
  };
4774
4936
  a2.prototype = f2.prototype;
4775
- } else a2 = {};
4937
+ } else
4938
+ a2 = {};
4776
4939
  Object.defineProperty(a2, "__esModule", { value: true });
4777
4940
  Object.keys(n2).forEach(function(k) {
4778
4941
  var d = Object.getOwnPropertyDescriptor(n2, k);
@@ -4840,11 +5003,14 @@ let CssSyntaxError$3 = class CssSyntaxError2 extends Error {
4840
5003
  this.message += ": " + this.reason;
4841
5004
  }
4842
5005
  showSourceCode(color) {
4843
- if (!this.source) return "";
5006
+ if (!this.source)
5007
+ return "";
4844
5008
  let css = this.source;
4845
- if (color == null) color = pico.isColorSupported;
5009
+ if (color == null)
5010
+ color = pico.isColorSupported;
4846
5011
  if (terminalHighlight$1) {
4847
- if (color) css = terminalHighlight$1(css);
5012
+ if (color)
5013
+ css = terminalHighlight$1(css);
4848
5014
  }
4849
5015
  let lines = css.split(/\r?\n/);
4850
5016
  let start = Math.max(this.line - 3, 0);
@@ -4937,7 +5103,8 @@ let Stringifier$2 = class Stringifier2 {
4937
5103
  if (value.includes("\n")) {
4938
5104
  let indent = this.raw(node2, null, "indent");
4939
5105
  if (indent.length) {
4940
- for (let step = 0; step < depth; step++) value += indent;
5106
+ for (let step = 0; step < depth; step++)
5107
+ value += indent;
4941
5108
  }
4942
5109
  }
4943
5110
  return value;
@@ -4952,20 +5119,23 @@ let Stringifier$2 = class Stringifier2 {
4952
5119
  } else {
4953
5120
  after = this.raw(node2, "after", "emptyBody");
4954
5121
  }
4955
- if (after) this.builder(after);
5122
+ if (after)
5123
+ this.builder(after);
4956
5124
  this.builder("}", node2, "end");
4957
5125
  }
4958
5126
  body(node2) {
4959
5127
  let last = node2.nodes.length - 1;
4960
5128
  while (last > 0) {
4961
- if (node2.nodes[last].type !== "comment") break;
5129
+ if (node2.nodes[last].type !== "comment")
5130
+ break;
4962
5131
  last -= 1;
4963
5132
  }
4964
5133
  let semicolon = this.raw(node2, "semicolon");
4965
5134
  for (let i2 = 0; i2 < node2.nodes.length; i2++) {
4966
5135
  let child = node2.nodes[i2];
4967
5136
  let before = this.raw(child, "before");
4968
- if (before) this.builder(before);
5137
+ if (before)
5138
+ this.builder(before);
4969
5139
  this.stringify(child, last !== i2 || semicolon);
4970
5140
  }
4971
5141
  }
@@ -4980,7 +5150,8 @@ let Stringifier$2 = class Stringifier2 {
4980
5150
  if (node2.important) {
4981
5151
  string += node2.raws.important || " !important";
4982
5152
  }
4983
- if (semicolon) string += ";";
5153
+ if (semicolon)
5154
+ string += ";";
4984
5155
  this.builder(string, node2);
4985
5156
  }
4986
5157
  document(node2) {
@@ -4988,10 +5159,12 @@ let Stringifier$2 = class Stringifier2 {
4988
5159
  }
4989
5160
  raw(node2, own, detect) {
4990
5161
  let value;
4991
- if (!detect) detect = own;
5162
+ if (!detect)
5163
+ detect = own;
4992
5164
  if (own) {
4993
5165
  value = node2.raws[own];
4994
- if (typeof value !== "undefined") return value;
5166
+ if (typeof value !== "undefined")
5167
+ return value;
4995
5168
  }
4996
5169
  let parent = node2.parent;
4997
5170
  if (detect === "before") {
@@ -5002,9 +5175,11 @@ let Stringifier$2 = class Stringifier2 {
5002
5175
  return "";
5003
5176
  }
5004
5177
  }
5005
- if (!parent) return DEFAULT_RAW[detect];
5178
+ if (!parent)
5179
+ return DEFAULT_RAW[detect];
5006
5180
  let root2 = node2.root();
5007
- if (!root2.rawCache) root2.rawCache = {};
5181
+ if (!root2.rawCache)
5182
+ root2.rawCache = {};
5008
5183
  if (typeof root2.rawCache[detect] !== "undefined") {
5009
5184
  return root2.rawCache[detect];
5010
5185
  }
@@ -5017,11 +5192,13 @@ let Stringifier$2 = class Stringifier2 {
5017
5192
  } else {
5018
5193
  root2.walk((i2) => {
5019
5194
  value = i2.raws[own];
5020
- if (typeof value !== "undefined") return false;
5195
+ if (typeof value !== "undefined")
5196
+ return false;
5021
5197
  });
5022
5198
  }
5023
5199
  }
5024
- if (typeof value === "undefined") value = DEFAULT_RAW[detect];
5200
+ if (typeof value === "undefined")
5201
+ value = DEFAULT_RAW[detect];
5025
5202
  root2.rawCache[detect] = value;
5026
5203
  return value;
5027
5204
  }
@@ -5038,7 +5215,8 @@ let Stringifier$2 = class Stringifier2 {
5038
5215
  }
5039
5216
  }
5040
5217
  });
5041
- if (value) value = value.replace(/\S/g, "");
5218
+ if (value)
5219
+ value = value.replace(/\S/g, "");
5042
5220
  return value;
5043
5221
  }
5044
5222
  rawBeforeComment(root2, node2) {
@@ -5082,7 +5260,8 @@ let Stringifier$2 = class Stringifier2 {
5082
5260
  root2.walk((i2) => {
5083
5261
  if (i2.type !== "decl") {
5084
5262
  value = i2.raws.between;
5085
- if (typeof value !== "undefined") return false;
5263
+ if (typeof value !== "undefined")
5264
+ return false;
5086
5265
  }
5087
5266
  });
5088
5267
  return value;
@@ -5100,7 +5279,8 @@ let Stringifier$2 = class Stringifier2 {
5100
5279
  }
5101
5280
  }
5102
5281
  });
5103
- if (value) value = value.replace(/\S/g, "");
5282
+ if (value)
5283
+ value = value.replace(/\S/g, "");
5104
5284
  return value;
5105
5285
  }
5106
5286
  rawColon(root2) {
@@ -5118,13 +5298,15 @@ let Stringifier$2 = class Stringifier2 {
5118
5298
  root2.walk((i2) => {
5119
5299
  if (i2.nodes && i2.nodes.length === 0) {
5120
5300
  value = i2.raws.after;
5121
- if (typeof value !== "undefined") return false;
5301
+ if (typeof value !== "undefined")
5302
+ return false;
5122
5303
  }
5123
5304
  });
5124
5305
  return value;
5125
5306
  }
5126
5307
  rawIndent(root2) {
5127
- if (root2.raws.indent) return root2.raws.indent;
5308
+ if (root2.raws.indent)
5309
+ return root2.raws.indent;
5128
5310
  let value;
5129
5311
  root2.walk((i2) => {
5130
5312
  let p = i2.parent;
@@ -5144,7 +5326,8 @@ let Stringifier$2 = class Stringifier2 {
5144
5326
  root2.walk((i2) => {
5145
5327
  if (i2.nodes && i2.nodes.length && i2.last.type === "decl") {
5146
5328
  value = i2.raws.semicolon;
5147
- if (typeof value !== "undefined") return false;
5329
+ if (typeof value !== "undefined")
5330
+ return false;
5148
5331
  }
5149
5332
  });
5150
5333
  return value;
@@ -5159,7 +5342,8 @@ let Stringifier$2 = class Stringifier2 {
5159
5342
  }
5160
5343
  root(node2) {
5161
5344
  this.body(node2);
5162
- if (node2.raws.after) this.builder(node2.raws.after);
5345
+ if (node2.raws.after)
5346
+ this.builder(node2.raws.after);
5163
5347
  }
5164
5348
  rule(node2) {
5165
5349
  this.block(node2, this.rawValue(node2, "selector"));
@@ -5195,17 +5379,20 @@ function cloneNode(obj, parent) {
5195
5379
  if (!Object.prototype.hasOwnProperty.call(obj, i2)) {
5196
5380
  continue;
5197
5381
  }
5198
- if (i2 === "proxyCache") continue;
5382
+ if (i2 === "proxyCache")
5383
+ continue;
5199
5384
  let value = obj[i2];
5200
5385
  let type = typeof value;
5201
5386
  if (i2 === "parent" && type === "object") {
5202
- if (parent) cloned[i2] = parent;
5387
+ if (parent)
5388
+ cloned[i2] = parent;
5203
5389
  } else if (i2 === "source") {
5204
5390
  cloned[i2] = value;
5205
5391
  } else if (Array.isArray(value)) {
5206
5392
  cloned[i2] = value.map((j) => cloneNode(j, cloned));
5207
5393
  } else {
5208
- if (type === "object" && value !== null) value = cloneNode(value);
5394
+ if (type === "object" && value !== null)
5395
+ value = cloneNode(value);
5209
5396
  cloned[i2] = value;
5210
5397
  }
5211
5398
  }
@@ -5259,7 +5446,8 @@ let Node$5 = class Node22 {
5259
5446
  cleanRaws(keepBetween) {
5260
5447
  delete this.raws.before;
5261
5448
  delete this.raws.after;
5262
- if (!keepBetween) delete this.raws.between;
5449
+ if (!keepBetween)
5450
+ delete this.raws.between;
5263
5451
  }
5264
5452
  clone(overrides = {}) {
5265
5453
  let cloned = cloneNode(this);
@@ -5302,7 +5490,8 @@ let Node$5 = class Node22 {
5302
5490
  }
5303
5491
  },
5304
5492
  set(node2, prop, value) {
5305
- if (node2[prop] === value) return true;
5493
+ if (node2[prop] === value)
5494
+ return true;
5306
5495
  node2[prop] = value;
5307
5496
  if (prop === "prop" || prop === "value" || prop === "name" || prop === "params" || prop === "important" || /* c8 ignore next */
5308
5497
  prop === "text") {
@@ -5322,7 +5511,8 @@ let Node$5 = class Node22 {
5322
5511
  }
5323
5512
  }
5324
5513
  next() {
5325
- if (!this.parent) return void 0;
5514
+ if (!this.parent)
5515
+ return void 0;
5326
5516
  let index2 = this.parent.index(this);
5327
5517
  return this.parent.nodes[index2 + 1];
5328
5518
  }
@@ -5333,7 +5523,8 @@ let Node$5 = class Node22 {
5333
5523
  } else if (opts.word) {
5334
5524
  stringRepresentation = this.toString();
5335
5525
  let index2 = stringRepresentation.indexOf(opts.word);
5336
- if (index2 !== -1) pos = this.positionInside(index2, stringRepresentation);
5526
+ if (index2 !== -1)
5527
+ pos = this.positionInside(index2, stringRepresentation);
5337
5528
  }
5338
5529
  return pos;
5339
5530
  }
@@ -5352,7 +5543,8 @@ let Node$5 = class Node22 {
5352
5543
  return { column, line };
5353
5544
  }
5354
5545
  prev() {
5355
- if (!this.parent) return void 0;
5546
+ if (!this.parent)
5547
+ return void 0;
5356
5548
  let index2 = this.parent.index(this);
5357
5549
  return this.parent.nodes[index2 - 1];
5358
5550
  }
@@ -5447,7 +5639,8 @@ let Node$5 = class Node22 {
5447
5639
  if (!Object.prototype.hasOwnProperty.call(this, name)) {
5448
5640
  continue;
5449
5641
  }
5450
- if (name === "parent" || name === "proxyCache") continue;
5642
+ if (name === "parent" || name === "proxyCache")
5643
+ continue;
5451
5644
  let value = this[name];
5452
5645
  if (Array.isArray(value)) {
5453
5646
  fixed[name] = value.map((i2) => {
@@ -5487,7 +5680,8 @@ let Node$5 = class Node22 {
5487
5680
  return this.proxyCache;
5488
5681
  }
5489
5682
  toString(stringifier2 = stringify$3) {
5490
- if (stringifier2.stringify) stringifier2 = stringifier2.stringify;
5683
+ if (stringifier2.stringify)
5684
+ stringifier2 = stringifier2.stringify;
5491
5685
  let result2 = "";
5492
5686
  stringifier2(this, (i2) => {
5493
5687
  result2 += i2;
@@ -5496,7 +5690,8 @@ let Node$5 = class Node22 {
5496
5690
  }
5497
5691
  warn(result2, text2, opts) {
5498
5692
  let data = { node: this };
5499
- for (let i2 in opts) data[i2] = opts[i2];
5693
+ for (let i2 in opts)
5694
+ data[i2] = opts[i2];
5500
5695
  return result2.warn(text2, data);
5501
5696
  }
5502
5697
  get proxyOf() {
@@ -5552,7 +5747,8 @@ function fromBase64(str) {
5552
5747
  }
5553
5748
  let PreviousMap$2 = class PreviousMap2 {
5554
5749
  constructor(css, opts) {
5555
- if (opts.map === false) return;
5750
+ if (opts.map === false)
5751
+ return;
5556
5752
  this.loadAnnotation(css);
5557
5753
  this.inline = this.startWith(this.annotation, "data:");
5558
5754
  let prev = opts.map ? opts.map.prev : void 0;
@@ -5560,8 +5756,10 @@ let PreviousMap$2 = class PreviousMap2 {
5560
5756
  if (!this.mapFile && opts.from) {
5561
5757
  this.mapFile = opts.from;
5562
5758
  }
5563
- if (this.mapFile) this.root = dirname$1(this.mapFile);
5564
- if (text2) this.text = text2;
5759
+ if (this.mapFile)
5760
+ this.root = dirname$1(this.mapFile);
5761
+ if (text2)
5762
+ this.text = text2;
5565
5763
  }
5566
5764
  consumer() {
5567
5765
  if (!this.consumerCache) {
@@ -5587,12 +5785,14 @@ let PreviousMap$2 = class PreviousMap2 {
5587
5785
  return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
5588
5786
  }
5589
5787
  isMap(map) {
5590
- if (typeof map !== "object") return false;
5788
+ if (typeof map !== "object")
5789
+ return false;
5591
5790
  return typeof map.mappings === "string" || typeof map._mappings === "string" || Array.isArray(map.sections);
5592
5791
  }
5593
5792
  loadAnnotation(css) {
5594
5793
  let comments = css.match(/\/\*\s*# sourceMappingURL=/gm);
5595
- if (!comments) return;
5794
+ if (!comments)
5795
+ return;
5596
5796
  let start = css.lastIndexOf(comments.pop());
5597
5797
  let end = css.indexOf("*/", start);
5598
5798
  if (start > -1 && end > -1) {
@@ -5607,7 +5807,8 @@ let PreviousMap$2 = class PreviousMap2 {
5607
5807
  }
5608
5808
  }
5609
5809
  loadMap(file, prev) {
5610
- if (prev === false) return false;
5810
+ if (prev === false)
5811
+ return false;
5611
5812
  if (prev) {
5612
5813
  if (typeof prev === "string") {
5613
5814
  return prev;
@@ -5637,12 +5838,14 @@ let PreviousMap$2 = class PreviousMap2 {
5637
5838
  return this.decodeInline(this.annotation);
5638
5839
  } else if (this.annotation) {
5639
5840
  let map = this.annotation;
5640
- if (file) map = join(dirname$1(file), map);
5841
+ if (file)
5842
+ map = join(dirname$1(file), map);
5641
5843
  return this.loadFile(map);
5642
5844
  }
5643
5845
  }
5644
5846
  startWith(string, start) {
5645
- if (!string) return false;
5847
+ if (!string)
5848
+ return false;
5646
5849
  return string.substr(0, start.length) === start;
5647
5850
  }
5648
5851
  withContent() {
@@ -5685,13 +5888,15 @@ let Input$4 = class Input2 {
5685
5888
  if (map.text) {
5686
5889
  this.map = map;
5687
5890
  let file = map.consumer().file;
5688
- if (!this.file && file) this.file = this.mapResolve(file);
5891
+ if (!this.file && file)
5892
+ this.file = this.mapResolve(file);
5689
5893
  }
5690
5894
  }
5691
5895
  if (!this.file) {
5692
5896
  this.id = "<input css " + nanoid(6) + ">";
5693
5897
  }
5694
- if (this.map) this.map.file = this.from;
5898
+ if (this.map)
5899
+ this.map.file = this.from;
5695
5900
  }
5696
5901
  error(message, line, column, opts = {}) {
5697
5902
  let result2, endLine, endColumn;
@@ -5793,10 +5998,12 @@ let Input$4 = class Input2 {
5793
5998
  return resolve$1(this.map.consumer().sourceRoot || this.map.root || ".", file);
5794
5999
  }
5795
6000
  origin(line, column, endLine, endColumn) {
5796
- if (!this.map) return false;
6001
+ if (!this.map)
6002
+ return false;
5797
6003
  let consumer = this.map.consumer();
5798
6004
  let from = consumer.originalPositionFor({ column, line });
5799
- if (!from.source) return false;
6005
+ if (!from.source)
6006
+ return false;
5800
6007
  let to;
5801
6008
  if (typeof endLine === "number") {
5802
6009
  to = consumer.originalPositionFor({ column: endColumn, line: endLine });
@@ -5825,7 +6032,8 @@ let Input$4 = class Input2 {
5825
6032
  }
5826
6033
  }
5827
6034
  let source = consumer.sourceContentFor(from.source);
5828
- if (source) result2.source = source;
6035
+ if (source)
6036
+ result2.source = source;
5829
6037
  return result2;
5830
6038
  }
5831
6039
  toJSON() {
@@ -5883,7 +6091,8 @@ let MapGenerator$2 = class MapGenerator2 {
5883
6091
  content = this.outputFile() + ".map";
5884
6092
  }
5885
6093
  let eol = "\n";
5886
- if (this.css.includes("\r\n")) eol = "\r\n";
6094
+ if (this.css.includes("\r\n"))
6095
+ eol = "\r\n";
5887
6096
  this.css += eol + "/*# sourceMappingURL=" + content + " */";
5888
6097
  }
5889
6098
  applyPrevMaps() {
@@ -5903,12 +6112,14 @@ let MapGenerator$2 = class MapGenerator2 {
5903
6112
  }
5904
6113
  }
5905
6114
  clearAnnotation() {
5906
- if (this.mapOpts.annotation === false) return;
6115
+ if (this.mapOpts.annotation === false)
6116
+ return;
5907
6117
  if (this.root) {
5908
6118
  let node2;
5909
6119
  for (let i2 = this.root.nodes.length - 1; i2 >= 0; i2--) {
5910
6120
  node2 = this.root.nodes[i2];
5911
- if (node2.type !== "comment") continue;
6121
+ if (node2.type !== "comment")
6122
+ continue;
5912
6123
  if (node2.text.indexOf("# sourceMappingURL=") === 0) {
5913
6124
  this.root.removeChild(i2);
5914
6125
  }
@@ -5949,9 +6160,12 @@ let MapGenerator$2 = class MapGenerator2 {
5949
6160
  source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
5950
6161
  });
5951
6162
  }
5952
- if (this.isSourcesContent()) this.setSourcesContent();
5953
- if (this.root && this.previous().length > 0) this.applyPrevMaps();
5954
- if (this.isAnnotation()) this.addAnnotation();
6163
+ if (this.isSourcesContent())
6164
+ this.setSourcesContent();
6165
+ if (this.root && this.previous().length > 0)
6166
+ this.applyPrevMaps();
6167
+ if (this.isAnnotation())
6168
+ this.addAnnotation();
5955
6169
  if (this.isInline()) {
5956
6170
  return [this.css];
5957
6171
  } else {
@@ -6071,11 +6285,15 @@ let MapGenerator$2 = class MapGenerator2 {
6071
6285
  }
6072
6286
  }
6073
6287
  path(file) {
6074
- if (this.mapOpts.absolute) return file;
6075
- if (file.charCodeAt(0) === 60) return file;
6076
- if (/^\w+:\/\//.test(file)) return file;
6288
+ if (this.mapOpts.absolute)
6289
+ return file;
6290
+ if (file.charCodeAt(0) === 60)
6291
+ return file;
6292
+ if (/^\w+:\/\//.test(file))
6293
+ return file;
6077
6294
  let cached = this.memoizedPaths.get(file);
6078
- if (cached) return cached;
6295
+ if (cached)
6296
+ return cached;
6079
6297
  let from = this.opts.to ? dirname(this.opts.to) : ".";
6080
6298
  if (typeof this.mapOpts.annotation === "string") {
6081
6299
  from = dirname(resolve(from, this.mapOpts.annotation));
@@ -6098,7 +6316,8 @@ let MapGenerator$2 = class MapGenerator2 {
6098
6316
  });
6099
6317
  } else {
6100
6318
  let input2 = new Input$3(this.originalCSS, this.opts);
6101
- if (input2.map) this.previousMaps.push(input2.map);
6319
+ if (input2.map)
6320
+ this.previousMaps.push(input2.map);
6102
6321
  }
6103
6322
  }
6104
6323
  return this.previousMaps;
@@ -6139,7 +6358,8 @@ let MapGenerator$2 = class MapGenerator2 {
6139
6358
  }
6140
6359
  toFileUrl(path) {
6141
6360
  let cached = this.memoizedFileURLs.get(path);
6142
- if (cached) return cached;
6361
+ if (cached)
6362
+ return cached;
6143
6363
  if (pathToFileURL) {
6144
6364
  let fileURL = pathToFileURL(path).toString();
6145
6365
  this.memoizedFileURLs.set(path, fileURL);
@@ -6152,7 +6372,8 @@ let MapGenerator$2 = class MapGenerator2 {
6152
6372
  }
6153
6373
  toUrl(path) {
6154
6374
  let cached = this.memoizedURLs.get(path);
6155
- if (cached) return cached;
6375
+ if (cached)
6376
+ return cached;
6156
6377
  if (sep === "\\") {
6157
6378
  path = path.replace(/\\/g, "/");
6158
6379
  }
@@ -6181,7 +6402,8 @@ let AtRule$4;
6181
6402
  let Root$6;
6182
6403
  function cleanSource(nodes) {
6183
6404
  return nodes.map((i2) => {
6184
- if (i2.nodes) i2.nodes = cleanSource(i2.nodes);
6405
+ if (i2.nodes)
6406
+ i2.nodes = cleanSource(i2.nodes);
6185
6407
  delete i2.source;
6186
6408
  return i2;
6187
6409
  });
@@ -6198,7 +6420,8 @@ let Container$7 = class Container2 extends Node$2 {
6198
6420
  append(...children2) {
6199
6421
  for (let child of children2) {
6200
6422
  let nodes = this.normalize(child, this.last);
6201
- for (let node2 of nodes) this.proxyOf.nodes.push(node2);
6423
+ for (let node2 of nodes)
6424
+ this.proxyOf.nodes.push(node2);
6202
6425
  }
6203
6426
  this.markDirty();
6204
6427
  return this;
@@ -6206,17 +6429,20 @@ let Container$7 = class Container2 extends Node$2 {
6206
6429
  cleanRaws(keepBetween) {
6207
6430
  super.cleanRaws(keepBetween);
6208
6431
  if (this.nodes) {
6209
- for (let node2 of this.nodes) node2.cleanRaws(keepBetween);
6432
+ for (let node2 of this.nodes)
6433
+ node2.cleanRaws(keepBetween);
6210
6434
  }
6211
6435
  }
6212
6436
  each(callback) {
6213
- if (!this.proxyOf.nodes) return void 0;
6437
+ if (!this.proxyOf.nodes)
6438
+ return void 0;
6214
6439
  let iterator = this.getIterator();
6215
6440
  let index2, result2;
6216
6441
  while (this.indexes[iterator] < this.proxyOf.nodes.length) {
6217
6442
  index2 = this.indexes[iterator];
6218
6443
  result2 = callback(this.proxyOf.nodes[index2], index2);
6219
- if (result2 === false) break;
6444
+ if (result2 === false)
6445
+ break;
6220
6446
  this.indexes[iterator] += 1;
6221
6447
  }
6222
6448
  delete this.indexes[iterator];
@@ -6226,8 +6452,10 @@ let Container$7 = class Container2 extends Node$2 {
6226
6452
  return this.nodes.every(condition);
6227
6453
  }
6228
6454
  getIterator() {
6229
- if (!this.lastEach) this.lastEach = 0;
6230
- if (!this.indexes) this.indexes = {};
6455
+ if (!this.lastEach)
6456
+ this.lastEach = 0;
6457
+ if (!this.indexes)
6458
+ this.indexes = {};
6231
6459
  this.lastEach += 1;
6232
6460
  let iterator = this.lastEach;
6233
6461
  this.indexes[iterator] = 0;
@@ -6269,7 +6497,8 @@ let Container$7 = class Container2 extends Node$2 {
6269
6497
  }
6270
6498
  },
6271
6499
  set(node2, prop, value) {
6272
- if (node2[prop] === value) return true;
6500
+ if (node2[prop] === value)
6501
+ return true;
6273
6502
  node2[prop] = value;
6274
6503
  if (prop === "name" || prop === "params" || prop === "selector") {
6275
6504
  node2.markDirty();
@@ -6279,15 +6508,18 @@ let Container$7 = class Container2 extends Node$2 {
6279
6508
  };
6280
6509
  }
6281
6510
  index(child) {
6282
- if (typeof child === "number") return child;
6283
- if (child.proxyOf) child = child.proxyOf;
6511
+ if (typeof child === "number")
6512
+ return child;
6513
+ if (child.proxyOf)
6514
+ child = child.proxyOf;
6284
6515
  return this.proxyOf.nodes.indexOf(child);
6285
6516
  }
6286
6517
  insertAfter(exist, add) {
6287
6518
  let existIndex = this.index(exist);
6288
6519
  let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse();
6289
6520
  existIndex = this.index(exist);
6290
- for (let node2 of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node2);
6521
+ for (let node2 of nodes)
6522
+ this.proxyOf.nodes.splice(existIndex + 1, 0, node2);
6291
6523
  let index2;
6292
6524
  for (let id in this.indexes) {
6293
6525
  index2 = this.indexes[id];
@@ -6303,7 +6535,8 @@ let Container$7 = class Container2 extends Node$2 {
6303
6535
  let type = existIndex === 0 ? "prepend" : false;
6304
6536
  let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse();
6305
6537
  existIndex = this.index(exist);
6306
- for (let node2 of nodes) this.proxyOf.nodes.splice(existIndex, 0, node2);
6538
+ for (let node2 of nodes)
6539
+ this.proxyOf.nodes.splice(existIndex, 0, node2);
6307
6540
  let index2;
6308
6541
  for (let id in this.indexes) {
6309
6542
  index2 = this.indexes[id];
@@ -6322,12 +6555,14 @@ let Container$7 = class Container2 extends Node$2 {
6322
6555
  } else if (Array.isArray(nodes)) {
6323
6556
  nodes = nodes.slice(0);
6324
6557
  for (let i2 of nodes) {
6325
- if (i2.parent) i2.parent.removeChild(i2, "ignore");
6558
+ if (i2.parent)
6559
+ i2.parent.removeChild(i2, "ignore");
6326
6560
  }
6327
6561
  } else if (nodes.type === "root" && this.type !== "document") {
6328
6562
  nodes = nodes.nodes.slice(0);
6329
6563
  for (let i2 of nodes) {
6330
- if (i2.parent) i2.parent.removeChild(i2, "ignore");
6564
+ if (i2.parent)
6565
+ i2.parent.removeChild(i2, "ignore");
6331
6566
  }
6332
6567
  } else if (nodes.type) {
6333
6568
  nodes = [nodes];
@@ -6348,10 +6583,13 @@ let Container$7 = class Container2 extends Node$2 {
6348
6583
  throw new Error("Unknown node type in node creation");
6349
6584
  }
6350
6585
  let processed = nodes.map((i2) => {
6351
- if (!i2[my$1]) Container2.rebuild(i2);
6586
+ if (!i2[my$1])
6587
+ Container2.rebuild(i2);
6352
6588
  i2 = i2.proxyOf;
6353
- if (i2.parent) i2.parent.removeChild(i2);
6354
- if (i2[isClean$1]) markDirtyUp(i2);
6589
+ if (i2.parent)
6590
+ i2.parent.removeChild(i2);
6591
+ if (i2[isClean$1])
6592
+ markDirtyUp(i2);
6355
6593
  if (typeof i2.raws.before === "undefined") {
6356
6594
  if (sample && typeof sample.raws.before !== "undefined") {
6357
6595
  i2.raws.before = sample.raws.before.replace(/\S/g, "");
@@ -6366,7 +6604,8 @@ let Container$7 = class Container2 extends Node$2 {
6366
6604
  children2 = children2.reverse();
6367
6605
  for (let child of children2) {
6368
6606
  let nodes = this.normalize(child, this.first, "prepend").reverse();
6369
- for (let node2 of nodes) this.proxyOf.nodes.unshift(node2);
6607
+ for (let node2 of nodes)
6608
+ this.proxyOf.nodes.unshift(node2);
6370
6609
  for (let id in this.indexes) {
6371
6610
  this.indexes[id] = this.indexes[id] + nodes.length;
6372
6611
  }
@@ -6380,7 +6619,8 @@ let Container$7 = class Container2 extends Node$2 {
6380
6619
  return this;
6381
6620
  }
6382
6621
  removeAll() {
6383
- for (let node2 of this.proxyOf.nodes) node2.parent = void 0;
6622
+ for (let node2 of this.proxyOf.nodes)
6623
+ node2.parent = void 0;
6384
6624
  this.proxyOf.nodes = [];
6385
6625
  this.markDirty();
6386
6626
  return this;
@@ -6405,8 +6645,10 @@ let Container$7 = class Container2 extends Node$2 {
6405
6645
  opts = {};
6406
6646
  }
6407
6647
  this.walkDecls((decl) => {
6408
- if (opts.props && !opts.props.includes(decl.prop)) return;
6409
- if (opts.fast && !decl.value.includes(opts.fast)) return;
6648
+ if (opts.props && !opts.props.includes(decl.prop))
6649
+ return;
6650
+ if (opts.fast && !decl.value.includes(opts.fast))
6651
+ return;
6410
6652
  decl.value = decl.value.replace(pattern, callback);
6411
6653
  });
6412
6654
  this.markDirty();
@@ -6503,11 +6745,13 @@ let Container$7 = class Container2 extends Node$2 {
6503
6745
  });
6504
6746
  }
6505
6747
  get first() {
6506
- if (!this.proxyOf.nodes) return void 0;
6748
+ if (!this.proxyOf.nodes)
6749
+ return void 0;
6507
6750
  return this.proxyOf.nodes[0];
6508
6751
  }
6509
6752
  get last() {
6510
- if (!this.proxyOf.nodes) return void 0;
6753
+ if (!this.proxyOf.nodes)
6754
+ return void 0;
6511
6755
  return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
6512
6756
  }
6513
6757
  };
@@ -6569,7 +6813,8 @@ var document$1 = Document$3;
6569
6813
  Document$3.default = Document$3;
6570
6814
  let printed = {};
6571
6815
  var warnOnce$2 = function warnOnce2(message) {
6572
- if (printed[message]) return;
6816
+ if (printed[message])
6817
+ return;
6573
6818
  printed[message] = true;
6574
6819
  if (typeof console !== "undefined" && console.warn) {
6575
6820
  console.warn(message);
@@ -6586,7 +6831,8 @@ let Warning$2 = class Warning2 {
6586
6831
  this.endLine = range.end.line;
6587
6832
  this.endColumn = range.end.column;
6588
6833
  }
6589
- for (let opt in opts) this[opt] = opts[opt];
6834
+ for (let opt in opts)
6835
+ this[opt] = opts[opt];
6590
6836
  }
6591
6837
  toString() {
6592
6838
  if (this.node) {
@@ -6678,8 +6924,10 @@ var tokenize = function tokenizer2(input2, options = {}) {
6678
6924
  return returned.length === 0 && pos >= length;
6679
6925
  }
6680
6926
  function nextToken(opts) {
6681
- if (returned.length) return returned.pop();
6682
- if (pos >= length) return;
6927
+ if (returned.length)
6928
+ return returned.pop();
6929
+ if (pos >= length)
6930
+ return;
6683
6931
  let ignoreUnclosed = opts ? opts.ignoreUnclosed : false;
6684
6932
  code = css.charCodeAt(pos);
6685
6933
  switch (code) {
@@ -6851,11 +7099,13 @@ let AtRule$3 = class AtRule2 extends Container$5 {
6851
7099
  this.type = "atrule";
6852
7100
  }
6853
7101
  append(...children2) {
6854
- if (!this.proxyOf.nodes) this.nodes = [];
7102
+ if (!this.proxyOf.nodes)
7103
+ this.nodes = [];
6855
7104
  return super.append(...children2);
6856
7105
  }
6857
7106
  prepend(...children2) {
6858
- if (!this.proxyOf.nodes) this.nodes = [];
7107
+ if (!this.proxyOf.nodes)
7108
+ this.nodes = [];
6859
7109
  return super.prepend(...children2);
6860
7110
  }
6861
7111
  };
@@ -6869,7 +7119,8 @@ let Root$5 = class Root2 extends Container$4 {
6869
7119
  constructor(defaults) {
6870
7120
  super(defaults);
6871
7121
  this.type = "root";
6872
- if (!this.nodes) this.nodes = [];
7122
+ if (!this.nodes)
7123
+ this.nodes = [];
6873
7124
  }
6874
7125
  normalize(child, sample, type) {
6875
7126
  let nodes = super.normalize(child);
@@ -6940,19 +7191,23 @@ let list$2 = {
6940
7191
  } else if (letter === "(") {
6941
7192
  func += 1;
6942
7193
  } else if (letter === ")") {
6943
- if (func > 0) func -= 1;
7194
+ if (func > 0)
7195
+ func -= 1;
6944
7196
  } else if (func === 0) {
6945
- if (separators.includes(letter)) split = true;
7197
+ if (separators.includes(letter))
7198
+ split = true;
6946
7199
  }
6947
7200
  if (split) {
6948
- if (current !== "") array.push(current.trim());
7201
+ if (current !== "")
7202
+ array.push(current.trim());
6949
7203
  current = "";
6950
7204
  split = false;
6951
7205
  } else {
6952
7206
  current += letter;
6953
7207
  }
6954
7208
  }
6955
- if (last || current !== "") array.push(current.trim());
7209
+ if (last || current !== "")
7210
+ array.push(current.trim());
6956
7211
  return array;
6957
7212
  }
6958
7213
  };
@@ -6964,7 +7219,8 @@ let Rule$3 = class Rule2 extends Container$3 {
6964
7219
  constructor(defaults) {
6965
7220
  super(defaults);
6966
7221
  this.type = "rule";
6967
- if (!this.nodes) this.nodes = [];
7222
+ if (!this.nodes)
7223
+ this.nodes = [];
6968
7224
  }
6969
7225
  get selectors() {
6970
7226
  return list$1.comma(this.selector);
@@ -6992,7 +7248,8 @@ function findLastWithPosition(tokens) {
6992
7248
  for (let i2 = tokens.length - 1; i2 >= 0; i2--) {
6993
7249
  let token = tokens[i2];
6994
7250
  let pos = token[3] || token[2];
6995
- if (pos) return pos;
7251
+ if (pos)
7252
+ return pos;
6996
7253
  }
6997
7254
  }
6998
7255
  let Parser$1 = class Parser2 {
@@ -7085,14 +7342,16 @@ let Parser$1 = class Parser2 {
7085
7342
  }
7086
7343
  checkMissedSemicolon(tokens) {
7087
7344
  let colon = this.colon(tokens);
7088
- if (colon === false) return;
7345
+ if (colon === false)
7346
+ return;
7089
7347
  let founded = 0;
7090
7348
  let token;
7091
7349
  for (let j = colon - 1; j >= 0; j--) {
7092
7350
  token = tokens[j];
7093
7351
  if (token[0] !== "space") {
7094
7352
  founded += 1;
7095
- if (founded === 2) break;
7353
+ if (founded === 2)
7354
+ break;
7096
7355
  }
7097
7356
  }
7098
7357
  throw this.input.error(
@@ -7158,7 +7417,8 @@ let Parser$1 = class Parser2 {
7158
7417
  );
7159
7418
  node2.source.end.offset++;
7160
7419
  while (tokens[0][0] !== "word") {
7161
- if (tokens.length === 1) this.unknownWord(tokens);
7420
+ if (tokens.length === 1)
7421
+ this.unknownWord(tokens);
7162
7422
  node2.raws.before += tokens.shift()[1];
7163
7423
  }
7164
7424
  node2.source.start = this.getPosition(tokens[0][2]);
@@ -7192,7 +7452,8 @@ let Parser$1 = class Parser2 {
7192
7452
  let next;
7193
7453
  while (tokens.length) {
7194
7454
  next = tokens[0][0];
7195
- if (next !== "space" && next !== "comment") break;
7455
+ if (next !== "space" && next !== "comment")
7456
+ break;
7196
7457
  firstSpaces.push(tokens.shift());
7197
7458
  }
7198
7459
  this.precheckMissedSemicolon(tokens);
@@ -7202,7 +7463,8 @@ let Parser$1 = class Parser2 {
7202
7463
  node2.important = true;
7203
7464
  let string = this.stringFrom(tokens, i2);
7204
7465
  string = this.spacesFromEnd(tokens) + string;
7205
- if (string !== " !important") node2.raws.important = string;
7466
+ if (string !== " !important")
7467
+ node2.raws.important = string;
7206
7468
  break;
7207
7469
  } else if (token[1].toLowerCase() === "important") {
7208
7470
  let cache = tokens.slice(0);
@@ -7264,7 +7526,8 @@ let Parser$1 = class Parser2 {
7264
7526
  }
7265
7527
  }
7266
7528
  endFile() {
7267
- if (this.current.parent) this.unclosedBlock();
7529
+ if (this.current.parent)
7530
+ this.unclosedBlock();
7268
7531
  if (this.current.nodes && this.current.nodes.length) {
7269
7532
  this.current.raws.semicolon = this.semicolon;
7270
7533
  }
@@ -7298,7 +7561,8 @@ let Parser$1 = class Parser2 {
7298
7561
  };
7299
7562
  node2.raws.before = this.spaces;
7300
7563
  this.spaces = "";
7301
- if (node2.type !== "comment") this.semicolon = false;
7564
+ if (node2.type !== "comment")
7565
+ this.semicolon = false;
7302
7566
  }
7303
7567
  other(start) {
7304
7568
  let end = false;
@@ -7313,10 +7577,12 @@ let Parser$1 = class Parser2 {
7313
7577
  type = token[0];
7314
7578
  tokens.push(token);
7315
7579
  if (type === "(" || type === "[") {
7316
- if (!bracket) bracket = token;
7580
+ if (!bracket)
7581
+ bracket = token;
7317
7582
  brackets.push(type === "(" ? ")" : "]");
7318
7583
  } else if (customProperty && colon && type === "{") {
7319
- if (!bracket) bracket = token;
7584
+ if (!bracket)
7585
+ bracket = token;
7320
7586
  brackets.push("}");
7321
7587
  } else if (brackets.length === 0) {
7322
7588
  if (type === ";") {
@@ -7338,17 +7604,21 @@ let Parser$1 = class Parser2 {
7338
7604
  }
7339
7605
  } else if (type === brackets[brackets.length - 1]) {
7340
7606
  brackets.pop();
7341
- if (brackets.length === 0) bracket = null;
7607
+ if (brackets.length === 0)
7608
+ bracket = null;
7342
7609
  }
7343
7610
  token = this.tokenizer.nextToken();
7344
7611
  }
7345
- if (this.tokenizer.endOfFile()) end = true;
7346
- if (brackets.length > 0) this.unclosedBracket(bracket);
7612
+ if (this.tokenizer.endOfFile())
7613
+ end = true;
7614
+ if (brackets.length > 0)
7615
+ this.unclosedBracket(bracket);
7347
7616
  if (end && colon) {
7348
7617
  if (!customProperty) {
7349
7618
  while (tokens.length) {
7350
7619
  token = tokens[tokens.length - 1][0];
7351
- if (token !== "space" && token !== "comment") break;
7620
+ if (token !== "space" && token !== "comment")
7621
+ break;
7352
7622
  this.tokenizer.back(tokens.pop());
7353
7623
  }
7354
7624
  }
@@ -7435,7 +7705,8 @@ let Parser$1 = class Parser2 {
7435
7705
  let spaces = "";
7436
7706
  while (tokens.length) {
7437
7707
  lastTokenType = tokens[tokens.length - 1][0];
7438
- if (lastTokenType !== "space" && lastTokenType !== "comment") break;
7708
+ if (lastTokenType !== "space" && lastTokenType !== "comment")
7709
+ break;
7439
7710
  spaces = tokens.pop()[1] + spaces;
7440
7711
  }
7441
7712
  return spaces;
@@ -7446,7 +7717,8 @@ let Parser$1 = class Parser2 {
7446
7717
  let spaces = "";
7447
7718
  while (tokens.length) {
7448
7719
  next = tokens[0][0];
7449
- if (next !== "space" && next !== "comment") break;
7720
+ if (next !== "space" && next !== "comment")
7721
+ break;
7450
7722
  spaces += tokens.shift()[1];
7451
7723
  }
7452
7724
  return spaces;
@@ -7456,7 +7728,8 @@ let Parser$1 = class Parser2 {
7456
7728
  let spaces = "";
7457
7729
  while (tokens.length) {
7458
7730
  lastTokenType = tokens[tokens.length - 1][0];
7459
- if (lastTokenType !== "space") break;
7731
+ if (lastTokenType !== "space")
7732
+ break;
7460
7733
  spaces = tokens.pop()[1] + spaces;
7461
7734
  }
7462
7735
  return spaces;
@@ -7618,7 +7891,8 @@ function toStack(node2) {
7618
7891
  }
7619
7892
  function cleanMarks(node2) {
7620
7893
  node2[isClean] = false;
7621
- if (node2.nodes) node2.nodes.forEach((i2) => cleanMarks(i2));
7894
+ if (node2.nodes)
7895
+ node2.nodes.forEach((i2) => cleanMarks(i2));
7622
7896
  return node2;
7623
7897
  }
7624
7898
  let postcss$2 = {};
@@ -7632,15 +7906,20 @@ let LazyResult$2 = class LazyResult2 {
7632
7906
  } else if (css instanceof LazyResult2 || css instanceof Result$2) {
7633
7907
  root2 = cleanMarks(css.root);
7634
7908
  if (css.map) {
7635
- if (typeof opts.map === "undefined") opts.map = {};
7636
- if (!opts.map.inline) opts.map.inline = false;
7909
+ if (typeof opts.map === "undefined")
7910
+ opts.map = {};
7911
+ if (!opts.map.inline)
7912
+ opts.map.inline = false;
7637
7913
  opts.map.prev = css.map;
7638
7914
  }
7639
7915
  } else {
7640
7916
  let parser2 = parse$2;
7641
- if (opts.syntax) parser2 = opts.syntax.parse;
7642
- if (opts.parser) parser2 = opts.parser;
7643
- if (parser2.parse) parser2 = parser2.parse;
7917
+ if (opts.syntax)
7918
+ parser2 = opts.syntax.parse;
7919
+ if (opts.parser)
7920
+ parser2 = opts.parser;
7921
+ if (parser2.parse)
7922
+ parser2 = parser2.parse;
7644
7923
  try {
7645
7924
  root2 = parser2(css, opts);
7646
7925
  } catch (error) {
@@ -7662,8 +7941,10 @@ let LazyResult$2 = class LazyResult2 {
7662
7941
  });
7663
7942
  }
7664
7943
  async() {
7665
- if (this.error) return Promise.reject(this.error);
7666
- if (this.processed) return Promise.resolve(this.result);
7944
+ if (this.error)
7945
+ return Promise.reject(this.error);
7946
+ if (this.processed)
7947
+ return Promise.resolve(this.result);
7667
7948
  if (!this.processing) {
7668
7949
  this.processing = this.runAsync();
7669
7950
  }
@@ -7681,7 +7962,8 @@ let LazyResult$2 = class LazyResult2 {
7681
7962
  handleError(error, node2) {
7682
7963
  let plugin22 = this.result.lastPlugin;
7683
7964
  try {
7684
- if (node2) node2.addToError(error);
7965
+ if (node2)
7966
+ node2.addToError(error);
7685
7967
  this.error = error;
7686
7968
  if (error.name === "CssSyntaxError" && !error.plugin) {
7687
7969
  error.plugin = plugin22.postcssPlugin;
@@ -7701,14 +7983,16 @@ let LazyResult$2 = class LazyResult2 {
7701
7983
  }
7702
7984
  }
7703
7985
  } catch (err) {
7704
- if (console && console.error) console.error(err);
7986
+ if (console && console.error)
7987
+ console.error(err);
7705
7988
  }
7706
7989
  return error;
7707
7990
  }
7708
7991
  prepareVisitors() {
7709
7992
  this.listeners = {};
7710
7993
  let add = (plugin22, type, cb) => {
7711
- if (!this.listeners[type]) this.listeners[type] = [];
7994
+ if (!this.listeners[type])
7995
+ this.listeners[type] = [];
7712
7996
  this.listeners[type].push([plugin22, cb]);
7713
7997
  };
7714
7998
  for (let plugin22 of this.plugins) {
@@ -7815,15 +8099,20 @@ let LazyResult$2 = class LazyResult2 {
7815
8099
  }
7816
8100
  }
7817
8101
  stringify() {
7818
- if (this.error) throw this.error;
7819
- if (this.stringified) return this.result;
8102
+ if (this.error)
8103
+ throw this.error;
8104
+ if (this.stringified)
8105
+ return this.result;
7820
8106
  this.stringified = true;
7821
8107
  this.sync();
7822
8108
  let opts = this.result.opts;
7823
8109
  let str = stringify$2;
7824
- if (opts.syntax) str = opts.syntax.stringify;
7825
- if (opts.stringifier) str = opts.stringifier;
7826
- if (str.stringify) str = str.stringify;
8110
+ if (opts.syntax)
8111
+ str = opts.syntax.stringify;
8112
+ if (opts.stringifier)
8113
+ str = opts.stringifier;
8114
+ if (str.stringify)
8115
+ str = str.stringify;
7827
8116
  let map = new MapGenerator$1(str, this.result.root, this.result.opts);
7828
8117
  let data = map.generate();
7829
8118
  this.result.css = data[0];
@@ -7831,8 +8120,10 @@ let LazyResult$2 = class LazyResult2 {
7831
8120
  return this.result;
7832
8121
  }
7833
8122
  sync() {
7834
- if (this.error) throw this.error;
7835
- if (this.processed) return this.result;
8123
+ if (this.error)
8124
+ throw this.error;
8125
+ if (this.processed)
8126
+ return this.result;
7836
8127
  this.processed = true;
7837
8128
  if (this.processing) {
7838
8129
  throw this.getAsyncError();
@@ -7951,13 +8242,15 @@ let LazyResult$2 = class LazyResult2 {
7951
8242
  if (event === CHILDREN) {
7952
8243
  if (node2.nodes) {
7953
8244
  node2.each((child) => {
7954
- if (!child[isClean]) this.walkSync(child);
8245
+ if (!child[isClean])
8246
+ this.walkSync(child);
7955
8247
  });
7956
8248
  }
7957
8249
  } else {
7958
8250
  let visitors = this.listeners[event];
7959
8251
  if (visitors) {
7960
- if (this.visitSync(visitors, node2.toProxy())) return;
8252
+ if (this.visitSync(visitors, node2.toProxy()))
8253
+ return;
7961
8254
  }
7962
8255
  }
7963
8256
  }
@@ -8035,7 +8328,8 @@ let NoWorkResult$1 = class NoWorkResult2 {
8035
8328
  }
8036
8329
  }
8037
8330
  async() {
8038
- if (this.error) return Promise.reject(this.error);
8331
+ if (this.error)
8332
+ return Promise.reject(this.error);
8039
8333
  return Promise.resolve(this.result);
8040
8334
  }
8041
8335
  catch(onRejected) {
@@ -8045,7 +8339,8 @@ let NoWorkResult$1 = class NoWorkResult2 {
8045
8339
  return this.async().then(onFinally, onFinally);
8046
8340
  }
8047
8341
  sync() {
8048
- if (this.error) throw this.error;
8342
+ if (this.error)
8343
+ throw this.error;
8049
8344
  return this.result;
8050
8345
  }
8051
8346
  then(onFulfilled, onRejected) {
@@ -8165,7 +8460,8 @@ let Input$1 = input;
8165
8460
  let Root$1 = root;
8166
8461
  let Rule$1 = rule;
8167
8462
  function fromJSON$1(json, inputs) {
8168
- if (Array.isArray(json)) return json.map((n2) => fromJSON$1(n2));
8463
+ if (Array.isArray(json))
8464
+ return json.map((n2) => fromJSON$1(n2));
8169
8465
  let _a2 = json, { inputs: ownInputs } = _a2, defaults = __objRest(_a2, ["inputs"]);
8170
8466
  if (ownInputs) {
8171
8467
  inputs = [];
@@ -8251,7 +8547,8 @@ postcss.plugin = function plugin2(name, initializer) {
8251
8547
  let cache;
8252
8548
  Object.defineProperty(creator, "postcss", {
8253
8549
  get() {
8254
- if (!cache) cache = creator();
8550
+ if (!cache)
8551
+ cache = creator();
8255
8552
  return cache;
8256
8553
  }
8257
8554
  });
@@ -8337,7 +8634,8 @@ function toCSSText(style) {
8337
8634
  const properties = [];
8338
8635
  for (const name in style) {
8339
8636
  const value = style[name];
8340
- if (typeof value !== "string") continue;
8637
+ if (typeof value !== "string")
8638
+ continue;
8341
8639
  const normalizedName = hyphenate(name);
8342
8640
  properties.push(`${normalizedName}: ${value};`);
8343
8641
  }
@@ -8346,7 +8644,8 @@ function toCSSText(style) {
8346
8644
  const camelizeRE = /-([a-z])/g;
8347
8645
  const CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
8348
8646
  const camelize = (str) => {
8349
- if (CUSTOM_PROPERTY_REGEX.test(str)) return str;
8647
+ if (CUSTOM_PROPERTY_REGEX.test(str))
8648
+ return str;
8350
8649
  return str.replace(camelizeRE, (_, c2) => c2 ? c2.toUpperCase() : "");
8351
8650
  };
8352
8651
  const hyphenateRE = /\B([A-Z])/g;
@@ -8379,11 +8678,15 @@ class BaseRRNode {
8379
8678
  return childNodes2;
8380
8679
  }
8381
8680
  contains(node2) {
8382
- if (!(node2 instanceof BaseRRNode)) return false;
8383
- else if (node2.ownerDocument !== this.ownerDocument) return false;
8384
- else if (node2 === this) return true;
8681
+ if (!(node2 instanceof BaseRRNode))
8682
+ return false;
8683
+ else if (node2.ownerDocument !== this.ownerDocument)
8684
+ return false;
8685
+ else if (node2 === this)
8686
+ return true;
8385
8687
  while (node2.parentNode) {
8386
- if (node2.parentNode === this) return true;
8688
+ if (node2.parentNode === this)
8689
+ return true;
8387
8690
  node2 = node2.parentNode;
8388
8691
  }
8389
8692
  return false;
@@ -8591,15 +8894,20 @@ class BaseRRElement extends BaseRRNode {
8591
8894
  const style = this.attributes.style ? parseCSSText(this.attributes.style) : {};
8592
8895
  const hyphenateRE2 = /\B([A-Z])/g;
8593
8896
  style.setProperty = (name, value, priority) => {
8594
- if (hyphenateRE2.test(name)) return;
8897
+ if (hyphenateRE2.test(name))
8898
+ return;
8595
8899
  const normalizedName = camelize(name);
8596
- if (!value) delete style[normalizedName];
8597
- else style[normalizedName] = value;
8598
- if (priority === "important") style[normalizedName] += " !important";
8900
+ if (!value)
8901
+ delete style[normalizedName];
8902
+ else
8903
+ style[normalizedName] = value;
8904
+ if (priority === "important")
8905
+ style[normalizedName] += " !important";
8599
8906
  this.attributes.style = toCSSText(style);
8600
8907
  };
8601
8908
  style.removeProperty = (name) => {
8602
- if (hyphenateRE2.test(name)) return "";
8909
+ if (hyphenateRE2.test(name))
8910
+ return "";
8603
8911
  const normalizedName = camelize(name);
8604
8912
  const value = style[normalizedName] || "";
8605
8913
  delete style[normalizedName];
@@ -8609,7 +8917,8 @@ class BaseRRElement extends BaseRRNode {
8609
8917
  return style;
8610
8918
  }
8611
8919
  getAttribute(name) {
8612
- if (this.attributes[name] === void 0) return null;
8920
+ if (this.attributes[name] === void 0)
8921
+ return null;
8613
8922
  return this.attributes[name];
8614
8923
  }
8615
8924
  setAttribute(name, attribute) {
@@ -8760,7 +9069,8 @@ class ClassList {
8760
9069
  __publicField22(this, "add", (...classNames) => {
8761
9070
  for (const item of classNames) {
8762
9071
  const className = String(item);
8763
- if (this.classes.indexOf(className) >= 0) continue;
9072
+ if (this.classes.indexOf(className) >= 0)
9073
+ continue;
8764
9074
  this.classes.push(className);
8765
9075
  }
8766
9076
  this.onChange && this.onChange(this.classes.join(" "));
@@ -8779,7 +9089,8 @@ class ClassList {
8779
9089
  }
8780
9090
  }
8781
9091
  function appendChild(parent, newChild) {
8782
- if (newChild.parentNode) newChild.parentNode.removeChild(newChild);
9092
+ if (newChild.parentNode)
9093
+ newChild.parentNode.removeChild(newChild);
8783
9094
  if (parent.lastChild) {
8784
9095
  parent.lastChild.nextSibling = newChild;
8785
9096
  newChild.previousSibling = parent.lastChild;
@@ -8795,18 +9106,23 @@ function appendChild(parent, newChild) {
8795
9106
  return newChild;
8796
9107
  }
8797
9108
  function insertBefore(parent, newChild, refChild) {
8798
- if (!refChild) return appendChild(parent, newChild);
9109
+ if (!refChild)
9110
+ return appendChild(parent, newChild);
8799
9111
  if (refChild.parentNode !== parent)
8800
9112
  throw new Error(
8801
9113
  "Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode."
8802
9114
  );
8803
- if (newChild === refChild) return newChild;
8804
- if (newChild.parentNode) newChild.parentNode.removeChild(newChild);
9115
+ if (newChild === refChild)
9116
+ return newChild;
9117
+ if (newChild.parentNode)
9118
+ newChild.parentNode.removeChild(newChild);
8805
9119
  newChild.previousSibling = refChild.previousSibling;
8806
9120
  refChild.previousSibling = newChild;
8807
9121
  newChild.nextSibling = refChild;
8808
- if (newChild.previousSibling) newChild.previousSibling.nextSibling = newChild;
8809
- else parent.firstChild = newChild;
9122
+ if (newChild.previousSibling)
9123
+ newChild.previousSibling.nextSibling = newChild;
9124
+ else
9125
+ parent.firstChild = newChild;
8810
9126
  newChild.parentElement = parent;
8811
9127
  newChild.parentNode = parent;
8812
9128
  newChild.ownerDocument = parent.ownerDocument;
@@ -8819,10 +9135,12 @@ function removeChild(parent, child) {
8819
9135
  );
8820
9136
  if (child.previousSibling)
8821
9137
  child.previousSibling.nextSibling = child.nextSibling;
8822
- else parent.firstChild = child.nextSibling;
9138
+ else
9139
+ parent.firstChild = child.nextSibling;
8823
9140
  if (child.nextSibling)
8824
9141
  child.nextSibling.previousSibling = child.previousSibling;
8825
- else parent.lastChild = child.previousSibling;
9142
+ else
9143
+ parent.lastChild = child.previousSibling;
8826
9144
  child.previousSibling = null;
8827
9145
  child.nextSibling = null;
8828
9146
  child.parentElement = null;
@@ -8935,7 +9253,8 @@ function diffBeforeUpdatingChildren(oldTree, newTree, replayer, rrnodeMirror) {
8935
9253
  switch (newRRElement.tagName) {
8936
9254
  case "IFRAME": {
8937
9255
  const oldContentDocument = oldTree.contentDocument;
8938
- if (!oldContentDocument) break;
9256
+ if (!oldContentDocument)
9257
+ break;
8939
9258
  diff(
8940
9259
  oldContentDocument,
8941
9260
  newTree.contentDocument,
@@ -8946,7 +9265,8 @@ function diffBeforeUpdatingChildren(oldTree, newTree, replayer, rrnodeMirror) {
8946
9265
  }
8947
9266
  }
8948
9267
  if (newRRElement.shadowRoot) {
8949
- if (!oldElement.shadowRoot) oldElement.attachShadow({ mode: "open" });
9268
+ if (!oldElement.shadowRoot)
9269
+ oldElement.attachShadow({ mode: "open" });
8950
9270
  diffChildren(
8951
9271
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8952
9272
  oldElement.shadowRoot,
@@ -9030,11 +9350,14 @@ function diffAfterUpdatingChildren(oldTree, newTree, replayer) {
9030
9350
  const shouldBeModal = rrDialog.isModal;
9031
9351
  const modalChanged = wasModal !== shouldBeModal;
9032
9352
  const openChanged = wasOpen !== shouldBeOpen;
9033
- if (modalChanged || wasOpen && openChanged) dialog.close();
9353
+ if (modalChanged || wasOpen && openChanged)
9354
+ dialog.close();
9034
9355
  if (shouldBeOpen && (openChanged || modalChanged)) {
9035
9356
  try {
9036
- if (shouldBeModal) dialog.showModal();
9037
- else dialog.show();
9357
+ if (shouldBeModal)
9358
+ dialog.showModal();
9359
+ else
9360
+ dialog.show();
9038
9361
  } catch (e2) {
9039
9362
  console.warn(e2);
9040
9363
  }
@@ -9074,7 +9397,8 @@ function diffProps(oldTree, newTree, rrnodeMirror) {
9074
9397
  ctx.drawImage(image, 0, 0, image.width, image.height);
9075
9398
  }
9076
9399
  };
9077
- } else if (newTree.tagName === "IFRAME" && name === "srcdoc") continue;
9400
+ } else if (newTree.tagName === "IFRAME" && name === "srcdoc")
9401
+ continue;
9078
9402
  else {
9079
9403
  try {
9080
9404
  oldTree.setAttribute(name, newValue);
@@ -9084,14 +9408,16 @@ function diffProps(oldTree, newTree, rrnodeMirror) {
9084
9408
  }
9085
9409
  }
9086
9410
  for (const { name } of Array.from(oldAttributes))
9087
- if (!(name in newAttributes)) oldTree.removeAttribute(name);
9411
+ if (!(name in newAttributes))
9412
+ oldTree.removeAttribute(name);
9088
9413
  newTree.scrollLeft && (oldTree.scrollLeft = newTree.scrollLeft);
9089
9414
  newTree.scrollTop && (oldTree.scrollTop = newTree.scrollTop);
9090
9415
  }
9091
9416
  function diffChildren(oldTree, newTree, replayer, rrnodeMirror) {
9092
9417
  const oldChildren = Array.from(oldTree.childNodes);
9093
9418
  const newChildren = newTree.childNodes;
9094
- if (oldChildren.length === 0 && newChildren.length === 0) return;
9419
+ if (oldChildren.length === 0 && newChildren.length === 0)
9420
+ return;
9095
9421
  let oldStartIndex = 0, oldEndIndex = oldChildren.length - 1, newStartIndex = 0, newEndIndex = newChildren.length - 1;
9096
9422
  let oldStartNode = oldChildren[oldStartIndex], oldEndNode = oldChildren[oldEndIndex], newStartNode = newChildren[newStartIndex], newEndNode = newChildren[newEndIndex];
9097
9423
  let oldIdToIndex = void 0, indexInOld = void 0;
@@ -9202,7 +9528,8 @@ function diffChildren(oldTree, newTree, replayer, rrnodeMirror) {
9202
9528
  } else if (newStartIndex > newEndIndex) {
9203
9529
  for (; oldStartIndex <= oldEndIndex; oldStartIndex++) {
9204
9530
  const node2 = oldChildren[oldStartIndex];
9205
- if (!node2 || node2.parentNode !== oldTree) continue;
9531
+ if (!node2 || node2.parentNode !== oldTree)
9532
+ continue;
9206
9533
  try {
9207
9534
  oldTree.removeChild(node2);
9208
9535
  replayer.mirror.removeNodeFromMap(node2);
@@ -9223,8 +9550,10 @@ function createOrGetNode(rrNode, domMirror, rrnodeMirror) {
9223
9550
  const nodeId = rrnodeMirror.getId(rrNode);
9224
9551
  const sn = rrnodeMirror.getMeta(rrNode);
9225
9552
  let node2 = null;
9226
- if (nodeId > -1) node2 = domMirror.getNode(nodeId);
9227
- if (node2 !== null && sameNodeType(node2, rrNode)) return node2;
9553
+ if (nodeId > -1)
9554
+ node2 = domMirror.getNode(nodeId);
9555
+ if (node2 !== null && sameNodeType(node2, rrNode))
9556
+ return node2;
9228
9557
  switch (rrNode.RRNodeType) {
9229
9558
  case NodeType$1.Document:
9230
9559
  node2 = new Document();
@@ -9241,7 +9570,8 @@ function createOrGetNode(rrNode, domMirror, rrnodeMirror) {
9241
9570
  tagName = SVGTagMap[tagName] || tagName;
9242
9571
  if (sn && "isSVG" in sn && (sn == null ? void 0 : sn.isSVG)) {
9243
9572
  node2 = document.createElementNS(NAMESPACES["svg"], tagName);
9244
- } else node2 = document.createElement(rrNode.tagName);
9573
+ } else
9574
+ node2 = document.createElement(rrNode.tagName);
9245
9575
  break;
9246
9576
  }
9247
9577
  case NodeType$1.Text:
@@ -9254,7 +9584,8 @@ function createOrGetNode(rrNode, domMirror, rrnodeMirror) {
9254
9584
  node2 = document.createCDATASection(rrNode.data);
9255
9585
  break;
9256
9586
  }
9257
- if (sn) domMirror.add(node2, __spreadValues({}, sn));
9587
+ if (sn)
9588
+ domMirror.add(node2, __spreadValues({}, sn));
9258
9589
  try {
9259
9590
  createdNodeSet == null ? void 0 : createdNodeSet.add(node2);
9260
9591
  } catch (e2) {
@@ -9262,13 +9593,15 @@ function createOrGetNode(rrNode, domMirror, rrnodeMirror) {
9262
9593
  return node2;
9263
9594
  }
9264
9595
  function sameNodeType(node1, node2) {
9265
- if (node1.nodeType !== node2.nodeType) return false;
9596
+ if (node1.nodeType !== node2.nodeType)
9597
+ return false;
9266
9598
  return node1.nodeType !== node1.ELEMENT_NODE || node1.tagName.toUpperCase() === node2.tagName;
9267
9599
  }
9268
9600
  function nodeMatching(node1, node2, domMirror, rrdomMirror) {
9269
9601
  const node1Id = domMirror.getId(node1);
9270
9602
  const node2Id = rrdomMirror.getId(node2);
9271
- if (node1Id === -1 || node1Id !== node2Id) return false;
9603
+ if (node1Id === -1 || node1Id !== node2Id)
9604
+ return false;
9272
9605
  return sameNodeType(node1, node2);
9273
9606
  }
9274
9607
  class RRDocument extends BaseRRDocument {
@@ -9459,7 +9792,8 @@ function buildFromNode(node2, rrdom, domMirror, parentRRNode) {
9459
9792
  function buildFromDom(dom, domMirror = createMirror$1(), rrdom = new RRDocument()) {
9460
9793
  function walk2(node2, parentRRNode) {
9461
9794
  const rrNode = buildFromNode(node2, rrdom, domMirror, parentRRNode);
9462
- if (rrNode === null) return;
9795
+ if (rrNode === null)
9796
+ return;
9463
9797
  if (
9464
9798
  // if the parentRRNode isn't a RRIFrameElement
9465
9799
  (parentRRNode == null ? void 0 : parentRRNode.nodeName) !== "IFRAME" && // if node isn't a shadow root
@@ -9491,7 +9825,8 @@ class Mirror22 {
9491
9825
  }
9492
9826
  getId(n2) {
9493
9827
  var _a2;
9494
- if (!n2) return -1;
9828
+ if (!n2)
9829
+ return -1;
9495
9830
  const id = (_a2 = this.getMeta(n2)) == null ? void 0 : _a2.id;
9496
9831
  return id != null ? id : -1;
9497
9832
  }
@@ -9528,7 +9863,8 @@ class Mirror22 {
9528
9863
  const oldNode = this.getNode(id);
9529
9864
  if (oldNode) {
9530
9865
  const meta = this.nodeMetaMap.get(oldNode);
9531
- if (meta) this.nodeMetaMap.set(n2, meta);
9866
+ if (meta)
9867
+ this.nodeMetaMap.set(n2, meta);
9532
9868
  }
9533
9869
  this.idNodeMap.set(id, n2);
9534
9870
  }
@@ -9635,10 +9971,12 @@ function getUntaintedPrototype(key) {
9635
9971
  const iframeEl = document.createElement("iframe");
9636
9972
  document.body.appendChild(iframeEl);
9637
9973
  const win = iframeEl.contentWindow;
9638
- if (!win) return defaultObj.prototype;
9974
+ if (!win)
9975
+ return defaultObj.prototype;
9639
9976
  const untaintedObject = win[key].prototype;
9640
9977
  document.body.removeChild(iframeEl);
9641
- if (!untaintedObject) return defaultPrototype;
9978
+ if (!untaintedObject)
9979
+ return defaultPrototype;
9642
9980
  return untaintedBasePrototype[key] = untaintedObject;
9643
9981
  } catch (e2) {
9644
9982
  return defaultPrototype;
@@ -9657,7 +9995,8 @@ function getUntaintedAccessor(key, instance2, accessor) {
9657
9995
  untaintedPrototype,
9658
9996
  accessor
9659
9997
  )) == null ? void 0 : _a2.get;
9660
- if (!untaintedAccessor) return instance2[accessor];
9998
+ if (!untaintedAccessor)
9999
+ return instance2[accessor];
9661
10000
  untaintedAccessorCache[cacheKey] = untaintedAccessor;
9662
10001
  return untaintedAccessor.call(instance2);
9663
10002
  }
@@ -9670,7 +10009,8 @@ function getUntaintedMethod(key, instance2, method) {
9670
10009
  );
9671
10010
  const untaintedPrototype = getUntaintedPrototype(key);
9672
10011
  const untaintedMethod = untaintedPrototype[method];
9673
- if (typeof untaintedMethod !== "function") return instance2[method];
10012
+ if (typeof untaintedMethod !== "function")
10013
+ return instance2[method];
9674
10014
  untaintedMethodCache[cacheKey] = untaintedMethod;
9675
10015
  return untaintedMethod.bind(instance2);
9676
10016
  }
@@ -9693,14 +10033,16 @@ function getRootNode(n2) {
9693
10033
  return getUntaintedMethod("Node", n2, "getRootNode")();
9694
10034
  }
9695
10035
  function host(n2) {
9696
- if (!n2 || !("host" in n2)) return null;
10036
+ if (!n2 || !("host" in n2))
10037
+ return null;
9697
10038
  return getUntaintedAccessor("ShadowRoot", n2, "host");
9698
10039
  }
9699
10040
  function styleSheets(n2) {
9700
10041
  return n2.styleSheets;
9701
10042
  }
9702
10043
  function shadowRoot(n2) {
9703
- if (!n2 || !("shadowRoot" in n2)) return null;
10044
+ if (!n2 || !("shadowRoot" in n2))
10045
+ return null;
9704
10046
  return getUntaintedAccessor("Element", n2, "shadowRoot");
9705
10047
  }
9706
10048
  function querySelector(n2, selectors) {
@@ -9900,7 +10242,8 @@ function getBaseDimension(node2, rootIframe) {
9900
10242
  };
9901
10243
  }
9902
10244
  function hasShadowRoot(n2) {
9903
- if (!n2) return false;
10245
+ if (!n2)
10246
+ return false;
9904
10247
  if (n2 instanceof BaseRRNode && "shadowRoot" in n2) {
9905
10248
  return Boolean(n2.shadowRoot);
9906
10249
  }
@@ -9951,11 +10294,13 @@ class StyleSheetMirror {
9951
10294
  * @returns If the stylesheet is in the mirror, returns the id of the stylesheet. If not, return the new assigned id.
9952
10295
  */
9953
10296
  add(stylesheet, id) {
9954
- if (this.has(stylesheet)) return this.getId(stylesheet);
10297
+ if (this.has(stylesheet))
10298
+ return this.getId(stylesheet);
9955
10299
  let newId;
9956
10300
  if (id === void 0) {
9957
10301
  newId = this.id++;
9958
- } else newId = id;
10302
+ } else
10303
+ newId = id;
9959
10304
  this.styleIDMap.set(stylesheet, newId);
9960
10305
  this.idStyleMap.set(newId, stylesheet);
9961
10306
  return newId;
@@ -10443,17 +10788,20 @@ PERFORMANCE OF THIS SOFTWARE.
10443
10788
  ***************************************************************************** */
10444
10789
  function t(t2, n2) {
10445
10790
  var e2 = "function" == typeof Symbol && t2[Symbol.iterator];
10446
- if (!e2) return t2;
10791
+ if (!e2)
10792
+ return t2;
10447
10793
  var r2, o2, i2 = e2.call(t2), a2 = [];
10448
10794
  try {
10449
- for (; (void 0 === n2 || n2-- > 0) && !(r2 = i2.next()).done; ) a2.push(r2.value);
10795
+ for (; (void 0 === n2 || n2-- > 0) && !(r2 = i2.next()).done; )
10796
+ a2.push(r2.value);
10450
10797
  } catch (t3) {
10451
10798
  o2 = { error: t3 };
10452
10799
  } finally {
10453
10800
  try {
10454
10801
  r2 && !r2.done && (e2 = i2.return) && e2.call(i2);
10455
10802
  } finally {
10456
- if (o2) throw o2.error;
10803
+ if (o2)
10804
+ throw o2.error;
10457
10805
  }
10458
10806
  }
10459
10807
  return a2;
@@ -10507,14 +10855,17 @@ function s(n2, o2) {
10507
10855
  try {
10508
10856
  for (var h = function(t2) {
10509
10857
  var n3 = "function" == typeof Symbol && Symbol.iterator, e3 = n3 && t2[n3], r2 = 0;
10510
- if (e3) return e3.call(t2);
10511
- if (t2 && "number" == typeof t2.length) return { next: function() {
10512
- return t2 && r2 >= t2.length && (t2 = void 0), { value: t2 && t2[r2++], done: !t2 };
10513
- } };
10858
+ if (e3)
10859
+ return e3.call(t2);
10860
+ if (t2 && "number" == typeof t2.length)
10861
+ return { next: function() {
10862
+ return t2 && r2 >= t2.length && (t2 = void 0), { value: t2 && t2[r2++], done: !t2 };
10863
+ } };
10514
10864
  throw new TypeError(n3 ? "Object is not iterable." : "Symbol.iterator is not defined.");
10515
10865
  }(m), b = h.next(); !b.done; b = h.next()) {
10516
10866
  var S = b.value;
10517
- if (void 0 === S) return c(p, g);
10867
+ if (void 0 === S)
10868
+ return c(p, g);
10518
10869
  var w = "string" == typeof S ? { target: S } : S, j = w.target, E = w.actions, R = void 0 === E ? [] : E, N = w.cond, O = void 0 === N ? function() {
10519
10870
  return true;
10520
10871
  } : N, _ = void 0 === j, k = null != j ? j : p, T = n2.states[k];
@@ -10533,7 +10884,8 @@ function s(n2, o2) {
10533
10884
  try {
10534
10885
  b && !b.done && (l3 = h.return) && l3.call(h);
10535
10886
  } finally {
10536
- if (s3) throw s3.error;
10887
+ if (s3)
10888
+ throw s3.error;
10537
10889
  }
10538
10890
  }
10539
10891
  }
@@ -10830,12 +11182,14 @@ function variableListFor(ctx, ctor) {
10830
11182
  function deserializeArg(imageMap, ctx, preload) {
10831
11183
  return async (arg) => {
10832
11184
  if (arg && typeof arg === "object" && "rr_type" in arg) {
10833
- if (preload) preload.isUnchanged = false;
11185
+ if (preload)
11186
+ preload.isUnchanged = false;
10834
11187
  if (arg.rr_type === "ImageBitmap" && "args" in arg) {
10835
11188
  const args = await deserializeArg(imageMap, ctx, preload)(arg.args);
10836
11189
  return await createImageBitmap.apply(null, args);
10837
11190
  } else if ("index" in arg) {
10838
- if (preload || ctx === null) return arg;
11191
+ if (preload || ctx === null)
11192
+ return arg;
10839
11193
  const { rr_type: name, index: index2 } = arg;
10840
11194
  return variableListFor(ctx, name)[index2];
10841
11195
  } else if ("args" in arg) {
@@ -10899,11 +11253,14 @@ const WebGLVariableConstructorsNames = [
10899
11253
  "WebGLVertexArrayObject"
10900
11254
  ];
10901
11255
  function saveToWebGLVarMap(ctx, result2) {
10902
- if (!(result2 == null ? void 0 : result2.constructor)) return;
11256
+ if (!(result2 == null ? void 0 : result2.constructor))
11257
+ return;
10903
11258
  const { name } = result2.constructor;
10904
- if (!WebGLVariableConstructorsNames.includes(name)) return;
11259
+ if (!WebGLVariableConstructorsNames.includes(name))
11260
+ return;
10905
11261
  const variables = variableListFor(ctx, name);
10906
- if (!variables.includes(result2)) variables.push(result2);
11262
+ if (!variables.includes(result2))
11263
+ variables.push(result2);
10907
11264
  }
10908
11265
  async function webglMutation({
10909
11266
  mutation,
@@ -10914,7 +11271,8 @@ async function webglMutation({
10914
11271
  }) {
10915
11272
  try {
10916
11273
  const ctx = getContext(target, type);
10917
- if (!ctx) return;
11274
+ if (!ctx)
11275
+ return;
10918
11276
  if (mutation.setter) {
10919
11277
  ctx[mutation.property] = mutation.args[0];
10920
11278
  return;
@@ -10926,7 +11284,8 @@ async function webglMutation({
10926
11284
  const result2 = original.apply(ctx, args);
10927
11285
  saveToWebGLVarMap(ctx, result2);
10928
11286
  const debugMode = false;
10929
- if (debugMode) ;
11287
+ if (debugMode)
11288
+ ;
10930
11289
  } catch (error) {
10931
11290
  errorHandler2(mutation, error);
10932
11291
  }
@@ -11065,12 +11424,15 @@ class MediaManager {
11065
11424
  }
11066
11425
  }
11067
11426
  waitForMetadata(target) {
11068
- if (this.metadataCallbackMap.has(target)) return;
11069
- if (!("addEventListener" in target)) return;
11427
+ if (this.metadataCallbackMap.has(target))
11428
+ return;
11429
+ if (!("addEventListener" in target))
11430
+ return;
11070
11431
  const onLoadedMetadata = () => {
11071
11432
  this.metadataCallbackMap.delete(target);
11072
11433
  const mediaState = this.mediaMap.get(target);
11073
- if (!mediaState) return;
11434
+ if (!mediaState)
11435
+ return;
11074
11436
  this.seekTo({
11075
11437
  time: this.getCurrentTime(),
11076
11438
  target,
@@ -11104,7 +11466,8 @@ class MediaManager {
11104
11466
  }
11105
11467
  syncTargetWithState(target) {
11106
11468
  const mediaState = this.mediaMap.get(target);
11107
- if (!mediaState) return;
11469
+ if (!mediaState)
11470
+ return;
11108
11471
  const { muted, loop, volume, isPlaying } = mediaState;
11109
11472
  const playerIsPaused = this.service.state.matches("paused");
11110
11473
  const playbackRate = mediaState.playbackRate * this.speedService.state.context.timer.speed;
@@ -11135,10 +11498,12 @@ class MediaManager {
11135
11498
  }
11136
11499
  }
11137
11500
  addMediaElements(node2, timeOffset, mirror2) {
11138
- if (!["AUDIO", "VIDEO"].includes(node2.nodeName)) return;
11501
+ if (!["AUDIO", "VIDEO"].includes(node2.nodeName))
11502
+ return;
11139
11503
  const target = node2;
11140
11504
  const serializedNode = mirror2.getMeta(target);
11141
- if (!serializedNode || !("attributes" in serializedNode)) return;
11505
+ if (!serializedNode || !("attributes" in serializedNode))
11506
+ return;
11142
11507
  const playerIsPaused = this.service.state.matches("paused");
11143
11508
  const mediaAttributes = serializedNode.attributes;
11144
11509
  let isPlaying = false;
@@ -11147,7 +11512,8 @@ class MediaManager {
11147
11512
  } else {
11148
11513
  isPlaying = target.getAttribute("autoplay") !== null;
11149
11514
  }
11150
- if (isPlaying && playerIsPaused) target.pause();
11515
+ if (isPlaying && playerIsPaused)
11516
+ target.pause();
11151
11517
  let playbackRate = 1;
11152
11518
  if (typeof mediaAttributes.rr_mediaPlaybackRate === "number") {
11153
11519
  playbackRate = mediaAttributes.rr_mediaPlaybackRate;
@@ -11206,7 +11572,8 @@ class MediaManager {
11206
11572
  }
11207
11573
  }
11208
11574
  function applyDialogToTopLevel(node2, attributeMutation) {
11209
- if (node2.nodeName !== "DIALOG" || node2 instanceof BaseRRNode) return;
11575
+ if (node2.nodeName !== "DIALOG" || node2 instanceof BaseRRNode)
11576
+ return;
11210
11577
  const dialog = node2;
11211
11578
  const oldIsOpen = dialog.open;
11212
11579
  const oldIsModalState = oldIsOpen && dialog.matches("dialog:modal");
@@ -11215,18 +11582,24 @@ function applyDialogToTopLevel(node2, attributeMutation) {
11215
11582
  const newIsModalState = rrOpenMode === "modal";
11216
11583
  const newIsNonModalState = rrOpenMode === "non-modal";
11217
11584
  const modalStateChanged = oldIsModalState && newIsNonModalState || !oldIsModalState && newIsModalState;
11218
- if (oldIsOpen && !modalStateChanged) return;
11585
+ if (oldIsOpen && !modalStateChanged)
11586
+ return;
11219
11587
  if (!dialog.isConnected) {
11220
11588
  console.warn("dialog is not attached to the dom", dialog);
11221
11589
  return;
11222
11590
  }
11223
- if (oldIsOpen) dialog.close();
11224
- if (!newIsOpen) return;
11225
- if (newIsModalState) dialog.showModal();
11226
- else dialog.show();
11591
+ if (oldIsOpen)
11592
+ dialog.close();
11593
+ if (!newIsOpen)
11594
+ return;
11595
+ if (newIsModalState)
11596
+ dialog.showModal();
11597
+ else
11598
+ dialog.show();
11227
11599
  }
11228
11600
  function removeDialogFromTopLevel(node2, attributeMutation) {
11229
- if (node2.nodeName !== "DIALOG" || node2 instanceof BaseRRNode) return;
11601
+ if (node2.nodeName !== "DIALOG" || node2 instanceof BaseRRNode)
11602
+ return;
11230
11603
  const dialog = node2;
11231
11604
  if (!dialog.isConnected) {
11232
11605
  console.warn("dialog is not attached to the dom", dialog);
@@ -11388,7 +11761,8 @@ class Replayer {
11388
11761
  castFn();
11389
11762
  }
11390
11763
  for (const plugin3 of this.config.plugins || []) {
11391
- if (plugin3.handler) plugin3.handler(event, isSync, { replayer: this });
11764
+ if (plugin3.handler)
11765
+ plugin3.handler(event, isSync, { replayer: this });
11392
11766
  }
11393
11767
  this.service.send({ type: "CAST_EVENT", payload: { event } });
11394
11768
  const lastIndex = this.service.state.context.events.length - 1;
@@ -11441,7 +11815,8 @@ class Replayer {
11441
11815
  this.emitter.on(ReplayerEvents.Resize, this.handleResize);
11442
11816
  this.setupDom();
11443
11817
  for (const plugin3 of this.config.plugins || []) {
11444
- if (plugin3.getMirror) plugin3.getMirror({ nodeMirror: this.mirror });
11818
+ if (plugin3.getMirror)
11819
+ plugin3.getMirror({ nodeMirror: this.mirror });
11445
11820
  }
11446
11821
  this.emitter.on(ReplayerEvents.Flush, () => {
11447
11822
  if (this.usingVirtualDom) {
@@ -11467,7 +11842,8 @@ class Replayer {
11467
11842
  },
11468
11843
  afterAppend: (node2, id) => {
11469
11844
  for (const plugin3 of this.config.plugins || []) {
11470
- if (plugin3.onBuild) plugin3.onBuild(node2, { id, replayer: this });
11845
+ if (plugin3.onBuild)
11846
+ plugin3.onBuild(node2, { id, replayer: this });
11471
11847
  }
11472
11848
  }
11473
11849
  };
@@ -11921,7 +12297,8 @@ class Replayer {
11921
12297
  head
11922
12298
  );
11923
12299
  }
11924
- if (this.usingVirtualDom) return;
12300
+ if (this.usingVirtualDom)
12301
+ return;
11925
12302
  for (const plugin3 of this.config.plugins || []) {
11926
12303
  if (plugin3.onBuild)
11927
12304
  plugin3.onBuild(builtNode, {
@@ -12235,10 +12612,12 @@ class Replayer {
12235
12612
  case IncrementalSource$1.StyleSheetRule:
12236
12613
  case IncrementalSource$1.StyleDeclaration: {
12237
12614
  if (this.usingVirtualDom) {
12238
- if (d.styleId) this.constructedStyleMutations.push(d);
12615
+ if (d.styleId)
12616
+ this.constructedStyleMutations.push(d);
12239
12617
  else if (d.id)
12240
12618
  (_b2 = this.virtualDom.mirror.getNode(d.id)) == null ? void 0 : _b2.rules.push(d);
12241
- } else this.applyStyleSheetMutation(d);
12619
+ } else
12620
+ this.applyStyleSheetMutation(d);
12242
12621
  break;
12243
12622
  }
12244
12623
  case IncrementalSource$1.CanvasMutation: {
@@ -12294,8 +12673,10 @@ class Replayer {
12294
12673
  break;
12295
12674
  }
12296
12675
  case IncrementalSource$1.AdoptedStyleSheet: {
12297
- if (this.usingVirtualDom) this.adoptedStyleSheets.push(d);
12298
- else this.applyAdoptedStyleSheet(d);
12676
+ if (this.usingVirtualDom)
12677
+ this.adoptedStyleSheets.push(d);
12678
+ else
12679
+ this.applyAdoptedStyleSheet(d);
12299
12680
  break;
12300
12681
  }
12301
12682
  }
@@ -12318,7 +12699,8 @@ class Replayer {
12318
12699
  this.virtualDom,
12319
12700
  this.mirror
12320
12701
  );
12321
- if (virtualNode) value.node = virtualNode;
12702
+ if (virtualNode)
12703
+ value.node = virtualNode;
12322
12704
  } catch (error) {
12323
12705
  this.warn(error);
12324
12706
  }
@@ -12397,7 +12779,8 @@ class Replayer {
12397
12779
  if (!hasShadowRoot(parent)) {
12398
12780
  parent.attachShadow({ mode: "open" });
12399
12781
  parent = parent.shadowRoot;
12400
- } else parent = parent.shadowRoot;
12782
+ } else
12783
+ parent = parent.shadowRoot;
12401
12784
  }
12402
12785
  let previous = null;
12403
12786
  let next = null;
@@ -12422,10 +12805,12 @@ class Replayer {
12422
12805
  return;
12423
12806
  }
12424
12807
  const afterAppend = (node2, id) => {
12425
- if (this.usingVirtualDom) return;
12808
+ if (this.usingVirtualDom)
12809
+ return;
12426
12810
  applyDialogToTopLevel(node2);
12427
12811
  for (const plugin3 of this.config.plugins || []) {
12428
- if (plugin3.onBuild) plugin3.onBuild(node2, { id, replayer: this });
12812
+ if (plugin3.onBuild)
12813
+ plugin3.onBuild(node2, { id, replayer: this });
12429
12814
  }
12430
12815
  };
12431
12816
  const target = buildNodeWithSN(mutation.node, {
@@ -12560,7 +12945,8 @@ class Replayer {
12560
12945
  }
12561
12946
  if (this.usingVirtualDom) {
12562
12947
  const parent = target.parentNode;
12563
- if (((_a2 = parent == null ? void 0 : parent.rules) == null ? void 0 : _a2.length) > 0) parent.rules = [];
12948
+ if (((_a2 = parent == null ? void 0 : parent.rules) == null ? void 0 : _a2.length) > 0)
12949
+ parent.rules = [];
12564
12950
  }
12565
12951
  });
12566
12952
  d.attributes.forEach((mutation) => {
@@ -12713,7 +13099,8 @@ class Replayer {
12713
13099
  const ranges = d.ranges.map(({ start, startOffset, end, endOffset }) => {
12714
13100
  const startContainer = this.mirror.getNode(start);
12715
13101
  const endContainer = this.mirror.getNode(end);
12716
- if (!startContainer || !endContainer) return;
13102
+ if (!startContainer || !endContainer)
13103
+ return;
12717
13104
  const result2 = new Range();
12718
13105
  result2.setStart(startContainer, startOffset);
12719
13106
  result2.setEnd(endContainer, endOffset);
@@ -12736,10 +13123,12 @@ class Replayer {
12736
13123
  applyStyleSheetMutation(data) {
12737
13124
  var _a2;
12738
13125
  let styleSheet = null;
12739
- if (data.styleId) styleSheet = this.styleMirror.getStyle(data.styleId);
13126
+ if (data.styleId)
13127
+ styleSheet = this.styleMirror.getStyle(data.styleId);
12740
13128
  else if (data.id)
12741
13129
  styleSheet = ((_a2 = this.mirror.getNode(data.id)) == null ? void 0 : _a2.sheet) || null;
12742
- if (!styleSheet) return;
13130
+ if (!styleSheet)
13131
+ return;
12743
13132
  if (data.source === IncrementalSource$1.StyleSheetRule)
12744
13133
  this.applyStyleSheetRule(data, styleSheet);
12745
13134
  else if (data.source === IncrementalSource$1.StyleDeclaration)
@@ -12806,7 +13195,8 @@ class Replayer {
12806
13195
  applyAdoptedStyleSheet(data) {
12807
13196
  var _a2;
12808
13197
  const targetHost = this.mirror.getNode(data.id);
12809
- if (!targetHost) return;
13198
+ if (!targetHost)
13199
+ return;
12810
13200
  (_a2 = data.styles) == null ? void 0 : _a2.forEach((style) => {
12811
13201
  var _a3;
12812
13202
  let newStyleSheet = null;
@@ -12815,7 +13205,8 @@ class Replayer {
12815
13205
  hostWindow = ((_a3 = targetHost.ownerDocument) == null ? void 0 : _a3.defaultView) || null;
12816
13206
  else if (targetHost.nodeName === "#document")
12817
13207
  hostWindow = targetHost.defaultView;
12818
- if (!hostWindow) return;
13208
+ if (!hostWindow)
13209
+ return;
12819
13210
  try {
12820
13211
  newStyleSheet = new hostWindow.CSSStyleSheet();
12821
13212
  this.styleMirror.add(newStyleSheet, style.styleId);
@@ -13491,7 +13882,8 @@ function getInactivePeriods(events, inactivePeriodThreshold) {
13491
13882
  const inactivePeriods = [];
13492
13883
  let lastActiveTime = events[0].timestamp;
13493
13884
  for (const event of events) {
13494
- if (!isUserInteraction(event)) continue;
13885
+ if (!isUserInteraction(event))
13886
+ continue;
13495
13887
  if (event.timestamp - lastActiveTime > inactivePeriodThreshold) {
13496
13888
  inactivePeriods.push([lastActiveTime, event.timestamp]);
13497
13889
  }
@@ -13597,11 +13989,12 @@ function create_fragment$2(ctx) {
13597
13989
  );
13598
13990
  }
13599
13991
  if (dirty & /*label*/
13600
- 8) set_data(
13601
- t2,
13602
- /*label*/
13603
- ctx2[3]
13604
- );
13992
+ 8)
13993
+ set_data(
13994
+ t2,
13995
+ /*label*/
13996
+ ctx2[3]
13997
+ );
13605
13998
  if (dirty & /*disabled*/
13606
13999
  2) {
13607
14000
  toggle_class(
@@ -13633,10 +14026,14 @@ function instance$2($$self, $$props, $$invalidate) {
13633
14026
  $$invalidate(0, checked);
13634
14027
  }
13635
14028
  $$self.$$set = ($$props2) => {
13636
- if ("disabled" in $$props2) $$invalidate(1, disabled = $$props2.disabled);
13637
- if ("checked" in $$props2) $$invalidate(0, checked = $$props2.checked);
13638
- if ("id" in $$props2) $$invalidate(2, id = $$props2.id);
13639
- if ("label" in $$props2) $$invalidate(3, label = $$props2.label);
14029
+ if ("disabled" in $$props2)
14030
+ $$invalidate(1, disabled = $$props2.disabled);
14031
+ if ("checked" in $$props2)
14032
+ $$invalidate(0, checked = $$props2.checked);
14033
+ if ("id" in $$props2)
14034
+ $$invalidate(2, id = $$props2.id);
14035
+ if ("label" in $$props2)
14036
+ $$invalidate(3, label = $$props2.label);
13640
14037
  };
13641
14038
  return [checked, disabled, id, label, input_change_handler];
13642
14039
  }
@@ -13716,7 +14113,8 @@ function create_if_block$1(ctx) {
13716
14113
  if (
13717
14114
  /*playerState*/
13718
14115
  ctx2[7] === "playing"
13719
- ) return create_if_block_1;
14116
+ )
14117
+ return create_if_block_1;
13720
14118
  return create_else_block;
13721
14119
  }
13722
14120
  let current_block_type = select_block_type(ctx);
@@ -13895,7 +14293,8 @@ function create_if_block$1(ctx) {
13895
14293
  64) && t0_value !== (t0_value = formatTime(
13896
14294
  /*currentTime*/
13897
14295
  ctx2[6]
13898
- ) + "")) set_data(t0, t0_value);
14296
+ ) + ""))
14297
+ set_data(t0, t0_value);
13899
14298
  if (!current || dirty[0] & /*percentage*/
13900
14299
  4096) {
13901
14300
  set_style(
@@ -13971,7 +14370,8 @@ function create_if_block$1(ctx) {
13971
14370
  256) && t6_value !== (t6_value = formatTime(
13972
14371
  /*meta*/
13973
14372
  ctx2[8].totalTime
13974
- ) + "")) set_data(t6, t6_value);
14373
+ ) + ""))
14374
+ set_data(t6, t6_value);
13975
14375
  if (current_block_type !== (current_block_type = select_block_type(ctx2))) {
13976
14376
  if_block.d(1);
13977
14377
  if_block = current_block_type(ctx2);
@@ -14004,8 +14404,9 @@ function create_if_block$1(ctx) {
14004
14404
  }
14005
14405
  const switch_1_changes = {};
14006
14406
  if (dirty[0] & /*speedState*/
14007
- 1024) switch_1_changes.disabled = /*speedState*/
14008
- ctx2[10] === "skipping";
14407
+ 1024)
14408
+ switch_1_changes.disabled = /*speedState*/
14409
+ ctx2[10] === "skipping";
14009
14410
  if (!updating_checked && dirty[0] & /*skipInactive*/
14010
14411
  1) {
14011
14412
  updating_checked = true;
@@ -14016,7 +14417,8 @@ function create_if_block$1(ctx) {
14016
14417
  switch_1.$set(switch_1_changes);
14017
14418
  },
14018
14419
  i(local) {
14019
- if (current) return;
14420
+ if (current)
14421
+ return;
14020
14422
  transition_in(switch_1.$$.fragment, local);
14021
14423
  current = true;
14022
14424
  },
@@ -14277,7 +14679,8 @@ function create_each_block(ctx) {
14277
14679
  ctx = new_ctx;
14278
14680
  if (dirty[0] & /*speedOption*/
14279
14681
  8 && t0_value !== (t0_value = /*s*/
14280
- ctx[38] + "")) set_data(t0, t0_value);
14682
+ ctx[38] + ""))
14683
+ set_data(t0, t0_value);
14281
14684
  if (dirty[0] & /*speedState*/
14282
14685
  1024 && button_disabled_value !== (button_disabled_value = /*speedState*/
14283
14686
  ctx[10] === "skipping")) {
@@ -14313,11 +14716,13 @@ function create_fragment$1(ctx) {
14313
14716
  );
14314
14717
  return {
14315
14718
  c() {
14316
- if (if_block) if_block.c();
14719
+ if (if_block)
14720
+ if_block.c();
14317
14721
  if_block_anchor = empty();
14318
14722
  },
14319
14723
  m(target, anchor) {
14320
- if (if_block) if_block.m(target, anchor);
14724
+ if (if_block)
14725
+ if_block.m(target, anchor);
14321
14726
  insert(target, if_block_anchor, anchor);
14322
14727
  current = true;
14323
14728
  },
@@ -14347,7 +14752,8 @@ function create_fragment$1(ctx) {
14347
14752
  }
14348
14753
  },
14349
14754
  i(local) {
14350
- if (current) return;
14755
+ if (current)
14756
+ return;
14351
14757
  transition_in(if_block);
14352
14758
  current = true;
14353
14759
  },
@@ -14359,7 +14765,8 @@ function create_fragment$1(ctx) {
14359
14765
  if (detaching) {
14360
14766
  detach(if_block_anchor);
14361
14767
  }
14362
- if (if_block) if_block.d(detaching);
14768
+ if (if_block)
14769
+ if_block.d(detaching);
14363
14770
  }
14364
14771
  };
14365
14772
  }
@@ -14566,14 +14973,22 @@ function instance$1($$self, $$props, $$invalidate) {
14566
14973
  }
14567
14974
  const click_handler_1 = () => dispatch("fullscreen");
14568
14975
  $$self.$$set = ($$props2) => {
14569
- if ("replayer" in $$props2) $$invalidate(17, replayer = $$props2.replayer);
14570
- if ("showController" in $$props2) $$invalidate(2, showController = $$props2.showController);
14571
- if ("autoPlay" in $$props2) $$invalidate(18, autoPlay = $$props2.autoPlay);
14572
- if ("skipInactive" in $$props2) $$invalidate(0, skipInactive = $$props2.skipInactive);
14573
- if ("speedOption" in $$props2) $$invalidate(3, speedOption = $$props2.speedOption);
14574
- if ("speed" in $$props2) $$invalidate(1, speed = $$props2.speed);
14575
- if ("tags" in $$props2) $$invalidate(19, tags = $$props2.tags);
14576
- if ("inactiveColor" in $$props2) $$invalidate(20, inactiveColor = $$props2.inactiveColor);
14976
+ if ("replayer" in $$props2)
14977
+ $$invalidate(17, replayer = $$props2.replayer);
14978
+ if ("showController" in $$props2)
14979
+ $$invalidate(2, showController = $$props2.showController);
14980
+ if ("autoPlay" in $$props2)
14981
+ $$invalidate(18, autoPlay = $$props2.autoPlay);
14982
+ if ("skipInactive" in $$props2)
14983
+ $$invalidate(0, skipInactive = $$props2.skipInactive);
14984
+ if ("speedOption" in $$props2)
14985
+ $$invalidate(3, speedOption = $$props2.speedOption);
14986
+ if ("speed" in $$props2)
14987
+ $$invalidate(1, speed = $$props2.speed);
14988
+ if ("tags" in $$props2)
14989
+ $$invalidate(19, tags = $$props2.tags);
14990
+ if ("inactiveColor" in $$props2)
14991
+ $$invalidate(20, inactiveColor = $$props2.inactiveColor);
14577
14992
  };
14578
14993
  $$self.$$.update = () => {
14579
14994
  if ($$self.$$.dirty[0] & /*currentTime*/
@@ -14789,30 +15204,38 @@ function create_if_block(ctx) {
14789
15204
  p(ctx2, dirty) {
14790
15205
  const controller_1_changes = {};
14791
15206
  if (dirty[0] & /*replayer*/
14792
- 128) controller_1_changes.replayer = /*replayer*/
14793
- ctx2[7];
15207
+ 128)
15208
+ controller_1_changes.replayer = /*replayer*/
15209
+ ctx2[7];
14794
15210
  if (dirty[0] & /*showController*/
14795
- 8) controller_1_changes.showController = /*showController*/
14796
- ctx2[3];
15211
+ 8)
15212
+ controller_1_changes.showController = /*showController*/
15213
+ ctx2[3];
14797
15214
  if (dirty[0] & /*autoPlay*/
14798
- 2) controller_1_changes.autoPlay = /*autoPlay*/
14799
- ctx2[1];
15215
+ 2)
15216
+ controller_1_changes.autoPlay = /*autoPlay*/
15217
+ ctx2[1];
14800
15218
  if (dirty[0] & /*speedOption*/
14801
- 4) controller_1_changes.speedOption = /*speedOption*/
14802
- ctx2[2];
15219
+ 4)
15220
+ controller_1_changes.speedOption = /*speedOption*/
15221
+ ctx2[2];
14803
15222
  if (dirty[0] & /*skipInactive*/
14804
- 1) controller_1_changes.skipInactive = /*skipInactive*/
14805
- ctx2[0];
15223
+ 1)
15224
+ controller_1_changes.skipInactive = /*skipInactive*/
15225
+ ctx2[0];
14806
15226
  if (dirty[0] & /*tags*/
14807
- 16) controller_1_changes.tags = /*tags*/
14808
- ctx2[4];
15227
+ 16)
15228
+ controller_1_changes.tags = /*tags*/
15229
+ ctx2[4];
14809
15230
  if (dirty[0] & /*inactiveColor*/
14810
- 32) controller_1_changes.inactiveColor = /*inactiveColor*/
14811
- ctx2[5];
15231
+ 32)
15232
+ controller_1_changes.inactiveColor = /*inactiveColor*/
15233
+ ctx2[5];
14812
15234
  controller_1.$set(controller_1_changes);
14813
15235
  },
14814
15236
  i(local) {
14815
- if (current) return;
15237
+ if (current)
15238
+ return;
14816
15239
  transition_in(controller_1.$$.fragment, local);
14817
15240
  current = true;
14818
15241
  },
@@ -14840,7 +15263,8 @@ function create_fragment(ctx) {
14840
15263
  div1 = element("div");
14841
15264
  div0 = element("div");
14842
15265
  t2 = space();
14843
- if (if_block) if_block.c();
15266
+ if (if_block)
15267
+ if_block.c();
14844
15268
  attr(div0, "class", "rr-player__frame");
14845
15269
  attr(
14846
15270
  div0,
@@ -14861,7 +15285,8 @@ function create_fragment(ctx) {
14861
15285
  append(div1, div0);
14862
15286
  ctx[31](div0);
14863
15287
  append(div1, t2);
14864
- if (if_block) if_block.m(div1, null);
15288
+ if (if_block)
15289
+ if_block.m(div1, null);
14865
15290
  ctx[34](div1);
14866
15291
  current = true;
14867
15292
  },
@@ -14909,7 +15334,8 @@ function create_fragment(ctx) {
14909
15334
  }
14910
15335
  },
14911
15336
  i(local) {
14912
- if (current) return;
15337
+ if (current)
15338
+ return;
14913
15339
  transition_in(if_block);
14914
15340
  current = true;
14915
15341
  },
@@ -14922,7 +15348,8 @@ function create_fragment(ctx) {
14922
15348
  detach(div1);
14923
15349
  }
14924
15350
  ctx[31](null);
14925
- if (if_block) if_block.d();
15351
+ if (if_block)
15352
+ if_block.d();
14926
15353
  ctx[34](null);
14927
15354
  }
14928
15355
  };
@@ -14954,7 +15381,8 @@ function instance($$self, $$props, $$invalidate) {
14954
15381
  const widthScale = width / frameDimension.width;
14955
15382
  const heightScale = height / frameDimension.height;
14956
15383
  const scale = [widthScale, heightScale];
14957
- if (maxScale) scale.push(maxScale);
15384
+ if (maxScale)
15385
+ scale.push(maxScale);
14958
15386
  el.style.transform = `scale(${Math.min(...scale)})translate(-50%, -50%)`;
14959
15387
  };
14960
15388
  const triggerResize = () => {
@@ -15084,17 +15512,28 @@ function instance($$self, $$props, $$invalidate) {
15084
15512
  }
15085
15513
  $$self.$$set = ($$new_props) => {
15086
15514
  $$invalidate(39, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
15087
- if ("width" in $$new_props) $$invalidate(13, width = $$new_props.width);
15088
- if ("height" in $$new_props) $$invalidate(14, height = $$new_props.height);
15089
- if ("maxScale" in $$new_props) $$invalidate(15, maxScale = $$new_props.maxScale);
15090
- if ("events" in $$new_props) $$invalidate(16, events = $$new_props.events);
15091
- if ("skipInactive" in $$new_props) $$invalidate(0, skipInactive = $$new_props.skipInactive);
15092
- if ("autoPlay" in $$new_props) $$invalidate(1, autoPlay = $$new_props.autoPlay);
15093
- if ("speedOption" in $$new_props) $$invalidate(2, speedOption = $$new_props.speedOption);
15094
- if ("speed" in $$new_props) $$invalidate(17, speed = $$new_props.speed);
15095
- if ("showController" in $$new_props) $$invalidate(3, showController = $$new_props.showController);
15096
- if ("tags" in $$new_props) $$invalidate(4, tags = $$new_props.tags);
15097
- if ("inactiveColor" in $$new_props) $$invalidate(5, inactiveColor = $$new_props.inactiveColor);
15515
+ if ("width" in $$new_props)
15516
+ $$invalidate(13, width = $$new_props.width);
15517
+ if ("height" in $$new_props)
15518
+ $$invalidate(14, height = $$new_props.height);
15519
+ if ("maxScale" in $$new_props)
15520
+ $$invalidate(15, maxScale = $$new_props.maxScale);
15521
+ if ("events" in $$new_props)
15522
+ $$invalidate(16, events = $$new_props.events);
15523
+ if ("skipInactive" in $$new_props)
15524
+ $$invalidate(0, skipInactive = $$new_props.skipInactive);
15525
+ if ("autoPlay" in $$new_props)
15526
+ $$invalidate(1, autoPlay = $$new_props.autoPlay);
15527
+ if ("speedOption" in $$new_props)
15528
+ $$invalidate(2, speedOption = $$new_props.speedOption);
15529
+ if ("speed" in $$new_props)
15530
+ $$invalidate(17, speed = $$new_props.speed);
15531
+ if ("showController" in $$new_props)
15532
+ $$invalidate(3, showController = $$new_props.showController);
15533
+ if ("tags" in $$new_props)
15534
+ $$invalidate(4, tags = $$new_props.tags);
15535
+ if ("inactiveColor" in $$new_props)
15536
+ $$invalidate(5, inactiveColor = $$new_props.inactiveColor);
15098
15537
  };
15099
15538
  $$self.$$.update = () => {
15100
15539
  if ($$self.$$.dirty[0] & /*width, height*/