@scrippsproduct/networks-ui-library 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ActionButton/ActionButton.test.js +3 -3
- package/dist/components/AdBlock/AdBlock.test.js +2 -2
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.test.js +2 -2
- package/dist/components/AirDateFormatter/AirDateFormatter.test.js +2 -2
- package/dist/components/AnchorTag/AnchorTag.test.js +3 -3
- package/dist/components/BCVideoPlayer/BCVideoPlayer.test.js +2 -2
- package/dist/components/BasicGridModule/BasicGridModule.test.js +2 -2
- package/dist/components/Button/Button.test.js +3 -3
- package/dist/components/ButtonAnchor/ButtonAnchor.test.js +3 -3
- package/dist/components/Carousel/Carousel.suspense-regression.test.js +2 -2
- package/dist/components/Carousel/Carousel.test.js +2 -2
- package/dist/components/Carousel/navigations/Pagination.test.js +2 -2
- package/dist/components/CarouselSlide/CarouselSlide.test.js +2 -2
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.test.js +2 -2
- package/dist/components/ChannelSearch/ChannelSearch.test.js +2 -2
- package/dist/components/ChoicesItem/ChoicesItem.test.js +2 -2
- package/dist/components/Concat/Concat.js +1 -1
- package/dist/components/Concat/Concat.test.js +2 -2
- package/dist/components/CtaBlock/CtaBlock.js +1 -1
- package/dist/components/CtaBlock/CtaBlock.test.js +3 -3
- package/dist/components/CustomSelect/CustomSelect.test.js +3 -3
- package/dist/components/DateNavigation/DateNavigation.test.js +3 -3
- package/dist/components/DatePicker/DatePicker.js +2309 -2324
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.test.js +2 -2
- package/dist/components/DrawerNavigation/DrawerNavigation.test.js +3 -3
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.test.js +2 -2
- package/dist/components/EqualSizeGrid/EqualSizeGrid.test.js +2 -2
- package/dist/components/ErrorHandler/ErrorHandler.js +1 -1
- package/dist/components/ErrorHandler/ErrorHandler.test.js +2 -2
- package/dist/components/FeaturedList/FeaturedList.test.js +3 -3
- package/dist/components/Figure/Figure.js +1 -1
- package/dist/components/Figure/Figure.test.js +2 -2
- package/dist/components/FindUs/FindUs.test.js +2 -2
- package/dist/components/FooterNavigation/FooterNavigation.test.js +2 -2
- package/dist/components/GenericList/GenericList.js +1 -1
- package/dist/components/GenericList/GenericList.test.js +2 -2
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.test.js +2 -2
- package/dist/components/GradientButton/GradientButton.test.js +2 -2
- package/dist/components/GridList/GridList.test.js +1 -1
- package/dist/components/ImageCard/ImageCard.test.js +2 -2
- package/dist/components/ImageCard/ImageCardCore.js +1 -1
- package/dist/components/ImageCard/ImageCardCore.test.js +2 -2
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.test.js +1 -1
- package/dist/components/InlineNavigation/InlineNavigation.test.js +1 -1
- package/dist/components/Input/Input.test.js +2 -2
- package/dist/components/InstructionsList/InstructionsList.js +1 -1
- package/dist/components/InstructionsList/InstructionsList.test.js +1 -1
- package/dist/components/LogoListItem/LogoListItem.test.js +1 -1
- package/dist/components/LogoNavigation/LogoNavigation.test.js +1 -1
- package/dist/components/ModalContainer/ModalContainer.js +1 -1
- package/dist/components/NavList/NavList.test.js +2 -2
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Overlay/Overlay.test.js +1 -1
- package/dist/components/PageHero/PageHero.test.js +1 -1
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.test.js +1 -1
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.test.js +2 -2
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +1 -1
- package/dist/components/PromotionsRowModule/PromotionsRowModule.test.js +2 -2
- package/dist/components/RescanInstructions/RescanInstructions.test.js +1 -1
- package/dist/components/ResponsiveImage/ResponsiveImage.test.js +2 -2
- package/dist/components/ResultsTable/ResultsTable.test.js +1 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.test.js +1 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.test.js +1 -1
- package/dist/components/ScheduleLayout/ScheduleContext.js +1893 -1123
- package/dist/components/SectionedContent/SectionedContent.js +1 -1
- package/dist/components/SectionedContent/SectionedContent.test.js +2 -2
- package/dist/components/Select/Select.test.js +2 -2
- package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.test.js +2 -2
- package/dist/components/ShowAboutLayout/ShowAboutLayout.test.js +2 -2
- package/dist/components/StringList/StringList.js +1 -1
- package/dist/components/StringList/StringList.test.js +1 -1
- package/dist/components/TabContent/TabContent.js +1 -1
- package/dist/components/TabContent/TabContent.test.js +1 -1
- package/dist/components/TabNavigation/TabNavigation.test.js +1 -1
- package/dist/components/TabbedContent/TabbedContent.test.js +1 -1
- package/dist/components/UpcomingList/UpcomingList.test.js +2 -2
- package/dist/index-BCErBUQT.mjs +3 -0
- package/dist/{index-sxnwPHiC.mjs → index-CHzqLQze.mjs} +181 -166
- package/dist/index-DnEp_Vsr.mjs +3085 -0
- package/dist/{index-5kXULIVv.mjs → index-DrfkaNHX.mjs} +16 -16
- package/dist/{magic-string.es-uPKorP4O.mjs → magic-string.es-DDAFx1CP.mjs} +93 -93
- package/dist/matchers-35e4d3bd-CfhTZpyY.mjs +2572 -0
- package/dist/react.esm-CX7MGXBg.mjs +52738 -0
- package/dist/src/icons/Facebook.d.ts +2 -1
- package/dist/src/icons/Tiktok.d.ts +2 -1
- package/dist/src/icons/Twitter.d.ts +2 -1
- package/dist/src/utils/analytics.d.ts +24 -5
- package/dist/test/setupTests.js +2 -2
- package/dist/utils/analytics.js +247 -446
- package/package.json +3 -3
- package/dist/index-B03xsUba.mjs +0 -3
- package/dist/index-C-uizG4-.mjs +0 -3098
- package/dist/matchers-35e4d3bd-BckKR3wh.mjs +0 -2404
- package/dist/react.esm-CUNRDkfQ.mjs +0 -49632
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as Re } from "./_commonjsHelpers-DaMA6jEr.mjs";
|
|
2
2
|
import ve from "react";
|
|
3
|
-
var F = {}, L = {}, B = {}, x = {}, M = {},
|
|
3
|
+
var F = {}, L = {}, B = {}, x = {}, M = {}, $ = {}, Z;
|
|
4
4
|
function me() {
|
|
5
|
-
return
|
|
5
|
+
return Z || (Z = 1, (function(r) {
|
|
6
6
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.Doctype = r.CDATA = r.Tag = r.Style = r.Script = r.Comment = r.Directive = r.Text = r.Root = r.isTag = r.ElementType = void 0;
|
|
7
7
|
var s;
|
|
8
8
|
(function(u) {
|
|
@@ -12,12 +12,12 @@ function me() {
|
|
|
12
12
|
return u.type === s.Tag || u.type === s.Script || u.type === s.Style;
|
|
13
13
|
}
|
|
14
14
|
r.isTag = f, r.Root = s.Root, r.Text = s.Text, r.Directive = s.Directive, r.Comment = s.Comment, r.Script = s.Script, r.Style = s.Style, r.Tag = s.Tag, r.CDATA = s.CDATA, r.Doctype = s.Doctype;
|
|
15
|
-
})(
|
|
15
|
+
})($)), $;
|
|
16
16
|
}
|
|
17
|
-
var g = {},
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
17
|
+
var g = {}, K;
|
|
18
|
+
function J() {
|
|
19
|
+
if (K) return g;
|
|
20
|
+
K = 1;
|
|
21
21
|
var r = g && g.__extends || /* @__PURE__ */ (function() {
|
|
22
22
|
var e = function(n, a) {
|
|
23
23
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, v) {
|
|
@@ -368,9 +368,9 @@ function Q() {
|
|
|
368
368
|
}
|
|
369
369
|
return g;
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Q;
|
|
372
372
|
function ge() {
|
|
373
|
-
return
|
|
373
|
+
return Q || (Q = 1, (function(r) {
|
|
374
374
|
var s = M && M.__createBinding || (Object.create ? (function(l, i, t, o) {
|
|
375
375
|
o === void 0 && (o = t);
|
|
376
376
|
var c = Object.getOwnPropertyDescriptor(i, t);
|
|
@@ -383,8 +383,8 @@ function ge() {
|
|
|
383
383
|
for (var t in l) t !== "default" && !Object.prototype.hasOwnProperty.call(i, t) && s(i, l, t);
|
|
384
384
|
};
|
|
385
385
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.DomHandler = void 0;
|
|
386
|
-
var u = /* @__PURE__ */ me(), m = /* @__PURE__ */
|
|
387
|
-
f(/* @__PURE__ */
|
|
386
|
+
var u = /* @__PURE__ */ me(), m = /* @__PURE__ */ J();
|
|
387
|
+
f(/* @__PURE__ */ J(), r);
|
|
388
388
|
var h = {
|
|
389
389
|
withStartIndices: !1,
|
|
390
390
|
withEndIndices: !1,
|
|
@@ -449,7 +449,7 @@ function ge() {
|
|
|
449
449
|
r.DomHandler = y, r.default = y;
|
|
450
450
|
})(M)), M;
|
|
451
451
|
}
|
|
452
|
-
var
|
|
452
|
+
var W = {}, ee;
|
|
453
453
|
function be() {
|
|
454
454
|
return ee || (ee = 1, (function(r) {
|
|
455
455
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.CARRIAGE_RETURN_PLACEHOLDER_REGEX = r.CARRIAGE_RETURN_PLACEHOLDER = r.CARRIAGE_RETURN_REGEX = r.CARRIAGE_RETURN = r.CASE_SENSITIVE_TAG_NAMES_MAP = r.CASE_SENSITIVE_TAG_NAMES = void 0, r.CASE_SENSITIVE_TAG_NAMES = [
|
|
@@ -487,7 +487,7 @@ function be() {
|
|
|
487
487
|
], r.CASE_SENSITIVE_TAG_NAMES_MAP = r.CASE_SENSITIVE_TAG_NAMES.reduce(function(s, f) {
|
|
488
488
|
return s[f.toLowerCase()] = f, s;
|
|
489
489
|
}, {}), r.CARRIAGE_RETURN = "\r", r.CARRIAGE_RETURN_REGEX = new RegExp(r.CARRIAGE_RETURN, "g"), r.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(), "__"), r.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(r.CARRIAGE_RETURN_PLACEHOLDER, "g");
|
|
490
|
-
})(
|
|
490
|
+
})(W)), W;
|
|
491
491
|
}
|
|
492
492
|
var te;
|
|
493
493
|
function Ee() {
|
|
@@ -1552,9 +1552,9 @@ function Oe() {
|
|
|
1552
1552
|
}, {});
|
|
1553
1553
|
return N.BOOLEAN = u, N.BOOLEANISH_STRING = f, N.NUMERIC = h, N.OVERLOADED_BOOLEAN = m, N.POSITIVE_NUMERIC = y, N.RESERVED = r, N.STRING = s, N.getPropertyInfo = l, N.isCustomAttribute = O, N.possibleStandardNames = k, N;
|
|
1554
1554
|
}
|
|
1555
|
-
var U = {}, j = {},
|
|
1555
|
+
var U = {}, j = {}, Y, oe;
|
|
1556
1556
|
function ke() {
|
|
1557
|
-
if (oe) return
|
|
1557
|
+
if (oe) return Y;
|
|
1558
1558
|
oe = 1;
|
|
1559
1559
|
var r = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, s = /\n/g, f = /^\s*/, u = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, m = /^:\s*/, h = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, y = /^[;\s]*/, l = /^\s+|\s+$/g, i = `
|
|
1560
1560
|
`, t = "/", o = "*", c = "", R = "comment", C = "declaration";
|
|
@@ -1640,7 +1640,7 @@ function ke() {
|
|
|
1640
1640
|
function E(p) {
|
|
1641
1641
|
return p ? p.replace(l, c) : c;
|
|
1642
1642
|
}
|
|
1643
|
-
return
|
|
1643
|
+
return Y = S, Y;
|
|
1644
1644
|
}
|
|
1645
1645
|
var le;
|
|
1646
1646
|
function we() {
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
var
|
|
2
|
-
for (let
|
|
3
|
-
const t =
|
|
4
|
-
|
|
1
|
+
var E = 44, k = 59, b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", v = new Uint8Array(64), L = new Uint8Array(128);
|
|
2
|
+
for (let l = 0; l < b.length; l++) {
|
|
3
|
+
const t = b.charCodeAt(l);
|
|
4
|
+
v[l] = t, L[t] = l;
|
|
5
5
|
}
|
|
6
|
-
function c(
|
|
7
|
-
let i = t - e;
|
|
8
|
-
i = i < 0 ? -i << 1 | 1 : i << 1;
|
|
6
|
+
function c(l, t) {
|
|
9
7
|
do {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
} while (
|
|
13
|
-
return t;
|
|
8
|
+
let e = t & 31;
|
|
9
|
+
t >>>= 5, t > 0 && (e |= 32), l.write(v[e]);
|
|
10
|
+
} while (t > 0);
|
|
14
11
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
function d(l) {
|
|
13
|
+
return l < 0 ? -l << 1 | 1 : l << 1;
|
|
14
|
+
}
|
|
15
|
+
var C = 1024 * 16, y = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
|
|
16
|
+
decode(l) {
|
|
17
|
+
return Buffer.from(l.buffer, l.byteOffset, l.byteLength).toString();
|
|
18
18
|
}
|
|
19
19
|
} : {
|
|
20
|
-
decode(
|
|
20
|
+
decode(l) {
|
|
21
21
|
let t = "";
|
|
22
|
-
for (let e = 0; e <
|
|
23
|
-
t += String.fromCharCode(
|
|
22
|
+
for (let e = 0; e < l.length; e++)
|
|
23
|
+
t += String.fromCharCode(l[e]);
|
|
24
24
|
return t;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, R = class {
|
|
27
27
|
constructor() {
|
|
28
|
-
this.pos = 0, this.out = "", this.buffer = new Uint8Array(
|
|
28
|
+
this.pos = 0, this.out = "", this.buffer = new Uint8Array(C);
|
|
29
29
|
}
|
|
30
|
-
write(
|
|
30
|
+
write(l) {
|
|
31
31
|
const { buffer: t } = this;
|
|
32
|
-
t[this.pos++] =
|
|
32
|
+
t[this.pos++] = l, this.pos === C && (this.out += y.decode(t), this.pos = 0);
|
|
33
33
|
}
|
|
34
34
|
flush() {
|
|
35
|
-
const { buffer:
|
|
36
|
-
return e > 0 ? t +
|
|
35
|
+
const { buffer: l, out: t, pos: e } = this;
|
|
36
|
+
return e > 0 ? t + y.decode(l.subarray(0, e)) : t;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
function
|
|
40
|
-
const t = new
|
|
39
|
+
function _(l) {
|
|
40
|
+
const t = new R();
|
|
41
41
|
let e = 0, i = 0, n = 0, r = 0;
|
|
42
|
-
for (let s = 0; s <
|
|
43
|
-
const h =
|
|
44
|
-
if (s > 0 && t.write(
|
|
42
|
+
for (let s = 0; s < l.length; s++) {
|
|
43
|
+
const h = l[s];
|
|
44
|
+
if (s > 0 && t.write(k), h.length === 0) continue;
|
|
45
45
|
let o = 0;
|
|
46
|
-
for (let
|
|
47
|
-
const a = h[
|
|
48
|
-
|
|
46
|
+
for (let u = 0; u < h.length; u++) {
|
|
47
|
+
const a = h[u];
|
|
48
|
+
u > 0 && t.write(E), c(t, d(a[0] - o)), o = a[0], a.length !== 1 && (c(t, d(a[1] - e)), c(t, d(a[2] - i)), c(t, d(a[3] - n)), e = a[1], i = a[2], n = a[3], a.length !== 4 && (c(t, d(a[4] - r)), r = a[4]));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
return t.flush();
|
|
52
52
|
}
|
|
53
|
-
class
|
|
53
|
+
class w {
|
|
54
54
|
constructor(t) {
|
|
55
|
-
this.bits = t instanceof
|
|
55
|
+
this.bits = t instanceof w ? t.bits.slice() : [];
|
|
56
56
|
}
|
|
57
57
|
add(t) {
|
|
58
58
|
this.bits[t >> 5] |= 1 << (t & 31);
|
|
@@ -61,7 +61,7 @@ class p {
|
|
|
61
61
|
return !!(this.bits[t >> 5] & 1 << (t & 31));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
class
|
|
64
|
+
class p {
|
|
65
65
|
constructor(t, e, i) {
|
|
66
66
|
this.start = t, this.end = e, this.original = i, this.intro = "", this.outro = "", this.content = i, this.storeName = !1, this.edited = !1, this.previous = null, this.next = null;
|
|
67
67
|
}
|
|
@@ -72,7 +72,7 @@ class g {
|
|
|
72
72
|
this.intro = this.intro + t;
|
|
73
73
|
}
|
|
74
74
|
clone() {
|
|
75
|
-
const t = new
|
|
75
|
+
const t = new p(this.start, this.end, this.original);
|
|
76
76
|
return t.intro = this.intro, t.outro = this.outro, t.content = this.content, t.storeName = this.storeName, t.edited = this.edited, t;
|
|
77
77
|
}
|
|
78
78
|
contains(t) {
|
|
@@ -103,7 +103,7 @@ class g {
|
|
|
103
103
|
split(t) {
|
|
104
104
|
const e = t - this.start, i = this.original.slice(0, e), n = this.original.slice(e);
|
|
105
105
|
this.original = i;
|
|
106
|
-
const r = new
|
|
106
|
+
const r = new p(t, this.end, n);
|
|
107
107
|
return r.outro = this.outro, this.outro = "", this.end = t, this.edited ? (r.edit("", !1), this.content = "") : this.content = i, r.next = this.next, r.next && (r.next.previous = r), r.previous = this, this.next = r, r;
|
|
108
108
|
}
|
|
109
109
|
toString() {
|
|
@@ -128,25 +128,25 @@ class g {
|
|
|
128
128
|
} else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (
|
|
131
|
+
function O() {
|
|
132
|
+
return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (l) => globalThis.btoa(unescape(encodeURIComponent(l))) : typeof Buffer == "function" ? (l) => Buffer.from(l, "utf-8").toString("base64") : () => {
|
|
133
133
|
throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
const
|
|
137
|
-
class
|
|
136
|
+
const N = /* @__PURE__ */ O();
|
|
137
|
+
class I {
|
|
138
138
|
constructor(t) {
|
|
139
|
-
this.version = 3, this.file = t.file, this.sources = t.sources, this.sourcesContent = t.sourcesContent, this.names = t.names, this.mappings =
|
|
139
|
+
this.version = 3, this.file = t.file, this.sources = t.sources, this.sourcesContent = t.sourcesContent, this.names = t.names, this.mappings = _(t.mappings), typeof t.x_google_ignoreList < "u" && (this.x_google_ignoreList = t.x_google_ignoreList), typeof t.debugId < "u" && (this.debugId = t.debugId);
|
|
140
140
|
}
|
|
141
141
|
toString() {
|
|
142
142
|
return JSON.stringify(this);
|
|
143
143
|
}
|
|
144
144
|
toUrl() {
|
|
145
|
-
return "data:application/json;charset=utf-8;base64," +
|
|
145
|
+
return "data:application/json;charset=utf-8;base64," + N(this.toString());
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
const t =
|
|
148
|
+
function A(l) {
|
|
149
|
+
const t = l.split(`
|
|
150
150
|
`), e = t.filter((r) => /^\t+/.test(r)), i = t.filter((r) => /^ {2,}/.test(r));
|
|
151
151
|
if (e.length === 0 && i.length === 0)
|
|
152
152
|
return null;
|
|
@@ -158,8 +158,8 @@ function I(u) {
|
|
|
158
158
|
}, 1 / 0);
|
|
159
159
|
return new Array(n + 1).join(" ");
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
const e =
|
|
161
|
+
function T(l, t) {
|
|
162
|
+
const e = l.split(/[/\\]/), i = t.split(/[/\\]/);
|
|
163
163
|
for (e.pop(); e[0] === i[0]; )
|
|
164
164
|
e.shift(), i.shift();
|
|
165
165
|
if (e.length) {
|
|
@@ -168,27 +168,27 @@ function A(u, t) {
|
|
|
168
168
|
}
|
|
169
169
|
return e.concat(i).join("/");
|
|
170
170
|
}
|
|
171
|
-
const
|
|
172
|
-
function
|
|
173
|
-
return
|
|
171
|
+
const j = Object.prototype.toString;
|
|
172
|
+
function $(l) {
|
|
173
|
+
return j.call(l) === "[object Object]";
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
const t =
|
|
175
|
+
function S(l) {
|
|
176
|
+
const t = l.split(`
|
|
177
177
|
`), e = [];
|
|
178
178
|
for (let i = 0, n = 0; i < t.length; i++)
|
|
179
179
|
e.push(n), n += t[i].length + 1;
|
|
180
180
|
return function(n) {
|
|
181
181
|
let r = 0, s = e.length;
|
|
182
182
|
for (; r < s; ) {
|
|
183
|
-
const
|
|
184
|
-
n < e[
|
|
183
|
+
const u = r + s >> 1;
|
|
184
|
+
n < e[u] ? s = u : r = u + 1;
|
|
185
185
|
}
|
|
186
186
|
const h = r - 1, o = n - e[h];
|
|
187
187
|
return { line: h, column: o };
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
class
|
|
190
|
+
const U = /\w/;
|
|
191
|
+
class B {
|
|
192
192
|
constructor(t) {
|
|
193
193
|
this.hires = t, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
|
|
194
194
|
}
|
|
@@ -198,8 +198,8 @@ class U {
|
|
|
198
198
|
let s = e.indexOf(`
|
|
199
199
|
`, 0), h = -1;
|
|
200
200
|
for (; s >= 0 && r > s; ) {
|
|
201
|
-
const
|
|
202
|
-
n >= 0 &&
|
|
201
|
+
const u = [this.generatedCodeColumn, t, i.line, i.column];
|
|
202
|
+
n >= 0 && u.push(n), this.rawSegments.push(u), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, h = s, s = e.indexOf(`
|
|
203
203
|
`, s + 1);
|
|
204
204
|
}
|
|
205
205
|
const o = [this.generatedCodeColumn, t, i.line, i.column];
|
|
@@ -215,8 +215,8 @@ class U {
|
|
|
215
215
|
n.line += 1, n.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, h = !0, o = !1;
|
|
216
216
|
else {
|
|
217
217
|
if (this.hires || h || r.has(s)) {
|
|
218
|
-
const
|
|
219
|
-
this.hires === "boundary" ?
|
|
218
|
+
const u = [this.generatedCodeColumn, t, n.line, n.column];
|
|
219
|
+
this.hires === "boundary" ? U.test(i[s]) ? o || (this.rawSegments.push(u), o = !0) : (this.rawSegments.push(u), o = !1) : this.rawSegments.push(u);
|
|
220
220
|
}
|
|
221
221
|
n.column += 1, this.generatedCodeColumn += 1, h = !1;
|
|
222
222
|
}
|
|
@@ -236,15 +236,15 @@ class U {
|
|
|
236
236
|
this.generatedCodeColumn += e[e.length - 1].length;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
const
|
|
239
|
+
const g = `
|
|
240
240
|
`, f = {
|
|
241
241
|
insertLeft: !1,
|
|
242
242
|
insertRight: !1,
|
|
243
243
|
storeName: !1
|
|
244
244
|
};
|
|
245
|
-
class
|
|
245
|
+
class x {
|
|
246
246
|
constructor(t, e = {}) {
|
|
247
|
-
const i = new
|
|
247
|
+
const i = new p(0, t.length, t);
|
|
248
248
|
Object.defineProperties(this, {
|
|
249
249
|
original: { writable: !0, value: t },
|
|
250
250
|
outro: { writable: !0, value: "" },
|
|
@@ -256,7 +256,7 @@ class v {
|
|
|
256
256
|
byEnd: { writable: !0, value: {} },
|
|
257
257
|
filename: { writable: !0, value: e.filename },
|
|
258
258
|
indentExclusionRanges: { writable: !0, value: e.indentExclusionRanges },
|
|
259
|
-
sourcemapLocations: { writable: !0, value: new
|
|
259
|
+
sourcemapLocations: { writable: !0, value: new w() },
|
|
260
260
|
storedNames: { writable: !0, value: {} },
|
|
261
261
|
indentStr: { writable: !0, value: void 0 },
|
|
262
262
|
ignoreList: { writable: !0, value: e.ignoreList },
|
|
@@ -283,18 +283,18 @@ class v {
|
|
|
283
283
|
return i ? i.appendRight(e) : this.outro += e, this;
|
|
284
284
|
}
|
|
285
285
|
clone() {
|
|
286
|
-
const t = new
|
|
286
|
+
const t = new x(this.original, { filename: this.filename, offset: this.offset });
|
|
287
287
|
let e = this.firstChunk, i = t.firstChunk = t.lastSearchedChunk = e.clone();
|
|
288
288
|
for (; e; ) {
|
|
289
289
|
t.byStart[i.start] = i, t.byEnd[i.end] = i;
|
|
290
290
|
const n = e.next, r = n && n.clone();
|
|
291
291
|
r && (i.next = r, r.previous = i, i = r), e = n;
|
|
292
292
|
}
|
|
293
|
-
return t.lastChunk = i, this.indentExclusionRanges && (t.indentExclusionRanges = this.indentExclusionRanges.slice()), t.sourcemapLocations = new
|
|
293
|
+
return t.lastChunk = i, this.indentExclusionRanges && (t.indentExclusionRanges = this.indentExclusionRanges.slice()), t.sourcemapLocations = new w(this.sourcemapLocations), t.intro = this.intro, t.outro = this.outro, t;
|
|
294
294
|
}
|
|
295
295
|
generateDecodedMap(t) {
|
|
296
296
|
t = t || {};
|
|
297
|
-
const e = 0, i = Object.keys(this.storedNames), n = new
|
|
297
|
+
const e = 0, i = Object.keys(this.storedNames), n = new B(t.hires), r = S(this.original);
|
|
298
298
|
return this.intro && n.advance(this.intro), this.firstChunk.eachNext((s) => {
|
|
299
299
|
const h = r(s.start);
|
|
300
300
|
s.intro.length && n.advance(s.intro), s.edited ? n.addEdit(
|
|
@@ -306,7 +306,7 @@ class v {
|
|
|
306
306
|
}), this.outro && n.advance(this.outro), {
|
|
307
307
|
file: t.file ? t.file.split(/[/\\]/).pop() : void 0,
|
|
308
308
|
sources: [
|
|
309
|
-
t.source ?
|
|
309
|
+
t.source ? T(t.file || "", t.source) : t.file || ""
|
|
310
310
|
],
|
|
311
311
|
sourcesContent: t.includeContent ? [this.original] : void 0,
|
|
312
312
|
names: i,
|
|
@@ -315,10 +315,10 @@ class v {
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
generateMap(t) {
|
|
318
|
-
return new
|
|
318
|
+
return new I(this.generateDecodedMap(t));
|
|
319
319
|
}
|
|
320
320
|
_ensureindentStr() {
|
|
321
|
-
this.indentStr === void 0 && (this.indentStr =
|
|
321
|
+
this.indentStr === void 0 && (this.indentStr = A(this.original));
|
|
322
322
|
}
|
|
323
323
|
_getRawIndentString() {
|
|
324
324
|
return this._ensureindentStr(), this.indentStr;
|
|
@@ -328,24 +328,24 @@ class v {
|
|
|
328
328
|
}
|
|
329
329
|
indent(t, e) {
|
|
330
330
|
const i = /^[^\r\n]/gm;
|
|
331
|
-
if (
|
|
331
|
+
if ($(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "") return this;
|
|
332
332
|
e = e || {};
|
|
333
333
|
const n = {};
|
|
334
334
|
e.exclude && (typeof e.exclude[0] == "number" ? [e.exclude] : e.exclude).forEach((a) => {
|
|
335
|
-
for (let
|
|
336
|
-
n[
|
|
335
|
+
for (let m = a[0]; m < a[1]; m += 1)
|
|
336
|
+
n[m] = !0;
|
|
337
337
|
});
|
|
338
338
|
let r = e.indentStart !== !1;
|
|
339
|
-
const s = (
|
|
339
|
+
const s = (u) => r ? `${t}${u}` : (r = !0, u);
|
|
340
340
|
this.intro = this.intro.replace(i, s);
|
|
341
341
|
let h = 0, o = this.firstChunk;
|
|
342
342
|
for (; o; ) {
|
|
343
|
-
const
|
|
343
|
+
const u = o.end;
|
|
344
344
|
if (o.edited)
|
|
345
345
|
n[h] || (o.content = o.content.replace(i, s), o.content.length && (r = o.content[o.content.length - 1] === `
|
|
346
346
|
`));
|
|
347
347
|
else
|
|
348
|
-
for (h = o.start; h <
|
|
348
|
+
for (h = o.start; h < u; ) {
|
|
349
349
|
if (!n[h]) {
|
|
350
350
|
const a = this.original[h];
|
|
351
351
|
a === `
|
|
@@ -377,8 +377,8 @@ class v {
|
|
|
377
377
|
this._split(t), this._split(e), this._split(i);
|
|
378
378
|
const n = this.byStart[t], r = this.byEnd[e], s = n.previous, h = r.next, o = this.byStart[i];
|
|
379
379
|
if (!o && r === this.lastChunk) return this;
|
|
380
|
-
const
|
|
381
|
-
return s && (s.next = h), h && (h.previous = s),
|
|
380
|
+
const u = o ? o.previous : this.lastChunk;
|
|
381
|
+
return s && (s.next = h), h && (h.previous = s), u && (u.next = n), o && (o.previous = r), n.previous || (this.firstChunk = r.next), r.next || (this.lastChunk = n.previous, this.lastChunk.next = null), n.previous = u, r.next = o || null, u || (this.firstChunk = n), o || (this.lastChunk = r), this;
|
|
382
382
|
}
|
|
383
383
|
overwrite(t, e, i, n) {
|
|
384
384
|
return n = n || {}, this.update(t, e, i, { ...n, overwrite: !n.contentOnly });
|
|
@@ -399,8 +399,8 @@ class v {
|
|
|
399
399
|
), f.storeName = !0), n = { storeName: !0 });
|
|
400
400
|
const r = n !== void 0 ? n.storeName : !1, s = n !== void 0 ? n.overwrite : !1;
|
|
401
401
|
if (r) {
|
|
402
|
-
const
|
|
403
|
-
Object.defineProperty(this.storedNames,
|
|
402
|
+
const u = this.original.slice(t, e);
|
|
403
|
+
Object.defineProperty(this.storedNames, u, {
|
|
404
404
|
writable: !0,
|
|
405
405
|
value: !0,
|
|
406
406
|
enumerable: !0
|
|
@@ -408,16 +408,16 @@ class v {
|
|
|
408
408
|
}
|
|
409
409
|
const h = this.byStart[t], o = this.byEnd[e];
|
|
410
410
|
if (h) {
|
|
411
|
-
let
|
|
412
|
-
for (;
|
|
413
|
-
if (
|
|
411
|
+
let u = h;
|
|
412
|
+
for (; u !== o; ) {
|
|
413
|
+
if (u.next !== this.byStart[u.end])
|
|
414
414
|
throw new Error("Cannot overwrite across a split point");
|
|
415
|
-
|
|
415
|
+
u = u.next, u.edit("", !1);
|
|
416
416
|
}
|
|
417
417
|
h.edit(i, r, !s);
|
|
418
418
|
} else {
|
|
419
|
-
const
|
|
420
|
-
o.next =
|
|
419
|
+
const u = new p(t, e, "").edit(i, r);
|
|
420
|
+
o.next = u, u.previous = o;
|
|
421
421
|
}
|
|
422
422
|
return this;
|
|
423
423
|
}
|
|
@@ -476,24 +476,24 @@ class v {
|
|
|
476
476
|
return this.intro.length ? this.intro[this.intro.length - 1] : "";
|
|
477
477
|
}
|
|
478
478
|
lastLine() {
|
|
479
|
-
let t = this.outro.lastIndexOf(
|
|
479
|
+
let t = this.outro.lastIndexOf(g);
|
|
480
480
|
if (t !== -1) return this.outro.substr(t + 1);
|
|
481
481
|
let e = this.outro, i = this.lastChunk;
|
|
482
482
|
do {
|
|
483
483
|
if (i.outro.length > 0) {
|
|
484
|
-
if (t = i.outro.lastIndexOf(
|
|
484
|
+
if (t = i.outro.lastIndexOf(g), t !== -1) return i.outro.substr(t + 1) + e;
|
|
485
485
|
e = i.outro + e;
|
|
486
486
|
}
|
|
487
487
|
if (i.content.length > 0) {
|
|
488
|
-
if (t = i.content.lastIndexOf(
|
|
488
|
+
if (t = i.content.lastIndexOf(g), t !== -1) return i.content.substr(t + 1) + e;
|
|
489
489
|
e = i.content + e;
|
|
490
490
|
}
|
|
491
491
|
if (i.intro.length > 0) {
|
|
492
|
-
if (t = i.intro.lastIndexOf(
|
|
492
|
+
if (t = i.intro.lastIndexOf(g), t !== -1) return i.intro.substr(t + 1) + e;
|
|
493
493
|
e = i.intro + e;
|
|
494
494
|
}
|
|
495
495
|
} while (i = i.previous);
|
|
496
|
-
return t = this.intro.lastIndexOf(
|
|
496
|
+
return t = this.intro.lastIndexOf(g), t !== -1 ? this.intro.substr(t + 1) + e : this.intro + e;
|
|
497
497
|
}
|
|
498
498
|
slice(t = 0, e = this.original.length - this.offset) {
|
|
499
499
|
if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
|
|
@@ -538,7 +538,7 @@ class v {
|
|
|
538
538
|
}
|
|
539
539
|
_splitChunk(t, e) {
|
|
540
540
|
if (t.edited && t.content.length) {
|
|
541
|
-
const n =
|
|
541
|
+
const n = S(this.original)(e);
|
|
542
542
|
throw new Error(
|
|
543
543
|
`Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${t.original}")`
|
|
544
544
|
);
|
|
@@ -658,6 +658,6 @@ class v {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
export {
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
I as SourceMap,
|
|
662
|
+
x as default
|
|
663
663
|
};
|