@stencil/core 4.17.1 → 4.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +87 -83
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +7 -8
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +7 -8
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +13986 -20
- package/internal/package.json +1 -1
- package/internal/testing/index.js +8 -9
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +3 -3
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +16 -16
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
package/cli/index.cjs
CHANGED
package/cli/index.js
CHANGED
package/cli/package.json
CHANGED
package/compiler/package.json
CHANGED
package/compiler/stencil.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Compiler v4.17.
|
|
2
|
+
Stencil Compiler v4.17.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -231262,16 +231262,16 @@ ${e.message}`;
|
|
|
231262
231262
|
var typescript_5_4_5_bundle_cache_min_default = ts;
|
|
231263
231263
|
|
|
231264
231264
|
// src/version.ts
|
|
231265
|
-
var buildId = "
|
|
231266
|
-
var minfyJsId = "terser5.30.
|
|
231265
|
+
var buildId = "1714400760";
|
|
231266
|
+
var minfyJsId = "terser5.30.4_7";
|
|
231267
231267
|
var optimizeCssId = "autoprefixer10.4.19_postcss8.4.38_7";
|
|
231268
231268
|
var parse5Version = "7.1.2";
|
|
231269
231269
|
var rollupVersion = "2.56.3";
|
|
231270
231270
|
var jqueryVersion = "4.0.0-pre";
|
|
231271
|
-
var terserVersion = "5.30.
|
|
231271
|
+
var terserVersion = "5.30.4";
|
|
231272
231272
|
var typescriptVersion = "5.4.5";
|
|
231273
|
-
var vermoji = "\u{
|
|
231274
|
-
var version = "4.17.
|
|
231273
|
+
var vermoji = "\u{1F3CA}";
|
|
231274
|
+
var version = "4.17.2";
|
|
231275
231275
|
var versions = {
|
|
231276
231276
|
stencil: version,
|
|
231277
231277
|
parse5: parse5Version,
|
|
@@ -238056,9 +238056,9 @@ function parseStyleDocs(styleDocs, styleText) {
|
|
|
238056
238056
|
if (typeof styleText !== "string") {
|
|
238057
238057
|
return;
|
|
238058
238058
|
}
|
|
238059
|
-
let
|
|
238060
|
-
while (
|
|
238061
|
-
styleText = styleText.substring(
|
|
238059
|
+
let match2 = styleText.match(CSS_DOC_START);
|
|
238060
|
+
while (match2 !== null) {
|
|
238061
|
+
styleText = styleText.substring(match2.index + match2[0].length);
|
|
238062
238062
|
const endIndex = styleText.indexOf(CSS_DOC_END);
|
|
238063
238063
|
if (endIndex === -1) {
|
|
238064
238064
|
break;
|
|
@@ -238066,6 +238066,7 @@ function parseStyleDocs(styleDocs, styleText) {
|
|
|
238066
238066
|
const comment = styleText.substring(0, endIndex);
|
|
238067
238067
|
parseCssComment(styleDocs, comment);
|
|
238068
238068
|
styleText = styleText.substring(endIndex + CSS_DOC_END.length);
|
|
238069
|
+
match2 = styleText.match(CSS_DOC_START);
|
|
238069
238070
|
}
|
|
238070
238071
|
}
|
|
238071
238072
|
function parseCssComment(styleDocs, comment) {
|
|
@@ -238097,7 +238098,7 @@ function parseCssComment(styleDocs, comment) {
|
|
|
238097
238098
|
}
|
|
238098
238099
|
});
|
|
238099
238100
|
}
|
|
238100
|
-
var CSS_DOC_START =
|
|
238101
|
+
var CSS_DOC_START = /\/\*(\*|\!)/;
|
|
238101
238102
|
var CSS_DOC_END = "*/";
|
|
238102
238103
|
var CSS_PROP_ANNOTATION = "@prop";
|
|
238103
238104
|
|
|
@@ -239977,7 +239978,7 @@ var SourceMapGenerator = class {
|
|
|
239977
239978
|
}
|
|
239978
239979
|
};
|
|
239979
239980
|
|
|
239980
|
-
// scripts/build/terser-
|
|
239981
|
+
// scripts/build/terser-5_30_4-bundle-cache.min.js
|
|
239981
239982
|
function characters(e) {
|
|
239982
239983
|
return e.split("");
|
|
239983
239984
|
}
|
|
@@ -240600,7 +240601,7 @@ function parse3(e, t) {
|
|
|
240600
240601
|
}
|
|
240601
240602
|
function A() {
|
|
240602
240603
|
f("(");
|
|
240603
|
-
var e2 =
|
|
240604
|
+
var e2 = Ae(true);
|
|
240604
240605
|
return f(")"), e2;
|
|
240605
240606
|
}
|
|
240606
240607
|
function T(e2) {
|
|
@@ -240668,12 +240669,12 @@ function parse3(e, t) {
|
|
|
240668
240669
|
return a(), h(), new AST_Debugger();
|
|
240669
240670
|
case "do":
|
|
240670
240671
|
a();
|
|
240671
|
-
var x2 =
|
|
240672
|
+
var x2 = Te(e2);
|
|
240672
240673
|
_("keyword", "while");
|
|
240673
240674
|
var B2 = A();
|
|
240674
240675
|
return h(true), new AST_Do({ body: x2, condition: B2 });
|
|
240675
240676
|
case "while":
|
|
240676
|
-
return a(), new AST_While({ condition: A(), body:
|
|
240677
|
+
return a(), new AST_While({ condition: A(), body: Te(function() {
|
|
240677
240678
|
return e2(false, true);
|
|
240678
240679
|
}) });
|
|
240679
240680
|
case "for":
|
|
@@ -240684,10 +240685,10 @@ function parse3(e, t) {
|
|
|
240684
240685
|
if (o("punc", ";"))
|
|
240685
240686
|
t2 && l(t2, e3);
|
|
240686
240687
|
else {
|
|
240687
|
-
n5 = o("keyword", "var") ? (a(), L(true)) : o("keyword", "let") ? (a(), V(true)) : o("keyword", "const") ? (a(), U(true)) :
|
|
240688
|
+
n5 = o("keyword", "var") ? (a(), L(true)) : o("keyword", "let") ? (a(), V(true)) : o("keyword", "const") ? (a(), U(true)) : Ae(true, true);
|
|
240688
240689
|
var r2 = o("operator", "in"), s2 = o("name", "of");
|
|
240689
240690
|
if (t2 && !s2 && l(t2, e3), r2 || s2)
|
|
240690
|
-
return n5 instanceof AST_Definitions ? n5.definitions.length > 1 && l(n5.start, "Only one variable declaration allowed in for..in loop") :
|
|
240691
|
+
return n5 instanceof AST_Definitions ? n5.definitions.length > 1 && l(n5.start, "Only one variable declaration allowed in for..in loop") : de(n5) || (n5 = me(n5)) instanceof AST_Destructuring || l(n5.start, "Invalid left-hand side in for..in loop"), a(), r2 ? k(n5) : C2(n5, !!t2);
|
|
240691
240692
|
}
|
|
240692
240693
|
return v(n5);
|
|
240693
240694
|
}();
|
|
@@ -240700,11 +240701,11 @@ function parse3(e, t) {
|
|
|
240700
240701
|
case "return":
|
|
240701
240702
|
0 != i.in_function || t.bare_returns || u("'return' outside of function"), a();
|
|
240702
240703
|
var K2 = null;
|
|
240703
|
-
return o("punc", ";") ? a() : d() || (K2 =
|
|
240704
|
+
return o("punc", ";") ? a() : d() || (K2 = Ae(true), h()), new AST_Return({ value: K2 });
|
|
240704
240705
|
case "switch":
|
|
240705
|
-
return a(), new AST_Switch({ expression: A(), body:
|
|
240706
|
+
return a(), new AST_Switch({ expression: A(), body: Te(P) });
|
|
240706
240707
|
case "throw":
|
|
240707
|
-
return a(), p(i.token) && u("Illegal newline after 'throw'"), K2 =
|
|
240708
|
+
return a(), p(i.token) && u("Illegal newline after 'throw'"), K2 = Ae(true), h(), new AST_Throw({ value: K2 });
|
|
240708
240709
|
case "try":
|
|
240709
240710
|
return a(), function() {
|
|
240710
240711
|
var e3, t2 = null, n5 = null;
|
|
@@ -240742,7 +240743,7 @@ function parse3(e, t) {
|
|
|
240742
240743
|
}), new AST_LabeledStatement({ body: t2, label: e2 });
|
|
240743
240744
|
}
|
|
240744
240745
|
function y(e2) {
|
|
240745
|
-
return new AST_SimpleStatement({ body: (e2 =
|
|
240746
|
+
return new AST_SimpleStatement({ body: (e2 = Ae(true), h(), e2) });
|
|
240746
240747
|
}
|
|
240747
240748
|
function D(e2) {
|
|
240748
240749
|
var t2, n4 = null;
|
|
@@ -240752,22 +240753,22 @@ function parse3(e, t) {
|
|
|
240752
240753
|
}
|
|
240753
240754
|
function v(e2) {
|
|
240754
240755
|
f(";");
|
|
240755
|
-
var t2 = o("punc", ";") ? null :
|
|
240756
|
+
var t2 = o("punc", ";") ? null : Ae(true);
|
|
240756
240757
|
f(";");
|
|
240757
|
-
var n4 = o("punc", ")") ? null :
|
|
240758
|
-
return f(")"), new AST_For({ init: e2, condition: t2, step: n4, body:
|
|
240758
|
+
var n4 = o("punc", ")") ? null : Ae(true);
|
|
240759
|
+
return f(")"), new AST_For({ init: e2, condition: t2, step: n4, body: Te(function() {
|
|
240759
240760
|
return g(false, true);
|
|
240760
240761
|
}) });
|
|
240761
240762
|
}
|
|
240762
240763
|
function C2(e2, t2) {
|
|
240763
|
-
var n4 = e2 instanceof AST_Definitions ? e2.definitions[0].name : null, i2 =
|
|
240764
|
-
return f(")"), new AST_ForOf({ await: t2, init: e2, name: n4, object: i2, body:
|
|
240764
|
+
var n4 = e2 instanceof AST_Definitions ? e2.definitions[0].name : null, i2 = Ae(true);
|
|
240765
|
+
return f(")"), new AST_ForOf({ await: t2, init: e2, name: n4, object: i2, body: Te(function() {
|
|
240765
240766
|
return g(false, true);
|
|
240766
240767
|
}) });
|
|
240767
240768
|
}
|
|
240768
240769
|
function k(e2) {
|
|
240769
|
-
var t2 =
|
|
240770
|
-
return f(")"), new AST_ForIn({ init: e2, object: t2, body:
|
|
240770
|
+
var t2 = Ae(true);
|
|
240771
|
+
return f(")"), new AST_ForIn({ init: e2, object: t2, body: Te(function() {
|
|
240771
240772
|
return g(false, true);
|
|
240772
240773
|
}) });
|
|
240773
240774
|
}
|
|
@@ -240819,7 +240820,7 @@ function parse3(e, t) {
|
|
|
240819
240820
|
}
|
|
240820
240821
|
function N(e2, t2) {
|
|
240821
240822
|
var n4, r2 = false;
|
|
240822
|
-
return void 0 === e2 && (e2 = new F(true, i.input.has_directive("use strict"))), o("expand", "...") && (r2 = i.token, e2.mark_spread(i.token), a()), n4 = M(e2, t2), o("operator", "=") && false === r2 && (e2.mark_default_assignment(i.token), a(), n4 = new AST_DefaultAssign({ start: n4.start, left: n4, operator: "=", right:
|
|
240823
|
+
return void 0 === e2 && (e2 = new F(true, i.input.has_directive("use strict"))), o("expand", "...") && (r2 = i.token, e2.mark_spread(i.token), a()), n4 = M(e2, t2), o("operator", "=") && false === r2 && (e2.mark_default_assignment(i.token), a(), n4 = new AST_DefaultAssign({ start: n4.start, left: n4, operator: "=", right: Ae(false), end: i.token })), false !== r2 && (o("punc", ")") || c(), n4 = new AST_Expansion({ start: r2, expression: n4, end: r2 })), e2.check_strict(), n4;
|
|
240823
240824
|
}
|
|
240824
240825
|
function M(e2, t2) {
|
|
240825
240826
|
var n4, l2 = [], _2 = true, p2 = false, d2 = i.token;
|
|
@@ -240845,7 +240846,7 @@ function parse3(e, t) {
|
|
|
240845
240846
|
}
|
|
240846
240847
|
else
|
|
240847
240848
|
o("name") ? (e2.add_parameter(i.token), l2.push(ae(t2))) : u("Invalid function parameter");
|
|
240848
|
-
o("operator", "=") && false === p2 && (e2.mark_default_assignment(i.token), a(), l2[l2.length - 1] = new AST_DefaultAssign({ start: l2[l2.length - 1].start, left: l2[l2.length - 1], operator: "=", right:
|
|
240849
|
+
o("operator", "=") && false === p2 && (e2.mark_default_assignment(i.token), a(), l2[l2.length - 1] = new AST_DefaultAssign({ start: l2[l2.length - 1].start, left: l2[l2.length - 1], operator: "=", right: Ae(false), end: i.token })), p2 && (o("punc", "]") || u("Rest element must be last element"), l2[l2.length - 1] = new AST_Expansion({ start: n4, expression: l2[l2.length - 1], end: n4 }));
|
|
240849
240850
|
}
|
|
240850
240851
|
return f("]"), e2.check_strict(), new AST_Destructuring({ start: d2, names: l2, is_array: true, end: s() });
|
|
240851
240852
|
}
|
|
@@ -240861,7 +240862,7 @@ function parse3(e, t) {
|
|
|
240861
240862
|
var h2 = i.token, A2 = ne();
|
|
240862
240863
|
null === A2 ? c(s()) : "name" !== s().type || o("punc", ":") ? (f(":"), l2.push(new AST_ObjectKeyVal({ start: h2, quote: h2.quote, key: A2, value: M(e2, t2), end: s() }))) : l2.push(new AST_ObjectKeyVal({ start: s(), key: A2, value: new t2({ start: s(), name: A2, end: s() }), end: s() }));
|
|
240863
240864
|
}
|
|
240864
|
-
p2 ? o("punc", "}") || u("Rest element must be last element") : o("operator", "=") && (e2.mark_default_assignment(i.token), a(), l2[l2.length - 1].value = new AST_DefaultAssign({ start: l2[l2.length - 1].value.start, left: l2[l2.length - 1].value, operator: "=", right:
|
|
240865
|
+
p2 ? o("punc", "}") || u("Rest element must be last element") : o("operator", "=") && (e2.mark_default_assignment(i.token), a(), l2[l2.length - 1].value = new AST_DefaultAssign({ start: l2[l2.length - 1].value.start, left: l2[l2.length - 1].value, operator: "=", right: Ae(false), end: i.token }));
|
|
240865
240866
|
}
|
|
240866
240867
|
return f("}"), e2.check_strict(), new AST_Destructuring({ start: d2, names: l2, is_array: false, end: s() });
|
|
240867
240868
|
}
|
|
@@ -240884,7 +240885,7 @@ function parse3(e, t) {
|
|
|
240884
240885
|
var p2 = I();
|
|
240885
240886
|
r2 && re(r2), s2 && s2.forEach(re), i.input.pop_directives_stack();
|
|
240886
240887
|
} else
|
|
240887
|
-
p2 = [new AST_Return({ start: i.token, value:
|
|
240888
|
+
p2 = [new AST_Return({ start: i.token, value: Ae(false), end: i.token })];
|
|
240888
240889
|
return --i.in_function, i.in_loop = u2, i.labels = l2, i.in_generator = c2, i.in_async = _2, p2;
|
|
240889
240890
|
}
|
|
240890
240891
|
function w() {
|
|
@@ -240900,13 +240901,13 @@ function parse3(e, t) {
|
|
|
240900
240901
|
function P() {
|
|
240901
240902
|
f("{");
|
|
240902
240903
|
for (var e2, t2 = [], n4 = null, r2 = null; !o("punc", "}"); )
|
|
240903
|
-
o("eof") && c(), o("keyword", "case") ? (r2 && (r2.end = s()), n4 = [], r2 = new AST_Case({ start: (e2 = i.token, a(), e2), expression:
|
|
240904
|
+
o("eof") && c(), o("keyword", "case") ? (r2 && (r2.end = s()), n4 = [], r2 = new AST_Case({ start: (e2 = i.token, a(), e2), expression: Ae(true), body: n4 }), t2.push(r2), f(":")) : o("keyword", "default") ? (r2 && (r2.end = s()), n4 = [], r2 = new AST_Default({ start: (e2 = i.token, a(), f(":"), e2), body: n4 }), t2.push(r2)) : (n4 || c(), n4.push(g()));
|
|
240904
240905
|
return r2 && (r2.end = s()), a(), t2;
|
|
240905
240906
|
}
|
|
240906
240907
|
function B(e2, t2) {
|
|
240907
240908
|
for (var n4, r2 = []; ; ) {
|
|
240908
240909
|
var l2 = "var" === t2 ? AST_SymbolVar : "const" === t2 ? AST_SymbolConst : "let" === t2 ? AST_SymbolLet : null;
|
|
240909
|
-
if (o("punc", "{") || o("punc", "[") ? n4 = new AST_VarDef({ start: i.token, name: M(void 0, l2), value: o("operator", "=") ? (_("operator", "="),
|
|
240910
|
+
if (o("punc", "{") || o("punc", "[") ? n4 = new AST_VarDef({ start: i.token, name: M(void 0, l2), value: o("operator", "=") ? (_("operator", "="), Ae(false, e2)) : null, end: s() }) : "import" == (n4 = new AST_VarDef({ start: i.token, name: ae(l2), value: o("operator", "=") ? (a(), Ae(false, e2)) : e2 || "const" !== t2 ? null : u("Missing initializer in const declaration"), end: s() })).name.name && u("Unexpected token: import"), r2.push(n4), !o("punc", ","))
|
|
240910
240911
|
break;
|
|
240911
240912
|
a();
|
|
240912
240913
|
}
|
|
@@ -240983,12 +240984,12 @@ function parse3(e, t) {
|
|
|
240983
240984
|
var d2 = function(e3, t3) {
|
|
240984
240985
|
var n4, r2, u3, l3 = [];
|
|
240985
240986
|
for (f("("); !o("punc", ")"); )
|
|
240986
|
-
n4 && c(n4), o("expand", "...") ? (n4 = i.token, t3 && (r2 = i.token), a(), l3.push(new AST_Expansion({ start: s(), expression:
|
|
240987
|
+
n4 && c(n4), o("expand", "...") ? (n4 = i.token, t3 && (r2 = i.token), a(), l3.push(new AST_Expansion({ start: s(), expression: Ae(), end: i.token }))) : l3.push(Ae()), o("punc", ")") || (f(","), o("punc", ")") && (u3 = s(), t3 && (r2 = u3)));
|
|
240987
240988
|
return f(")"), e3 && o("arrow", "=>") ? n4 && u3 && c(u3) : r2 && c(r2), l3;
|
|
240988
240989
|
}(t2, !p2);
|
|
240989
240990
|
if (t2 && o("arrow", "=>"))
|
|
240990
240991
|
return R(l2, d2.map((e3) => G(e3)), !!p2);
|
|
240991
|
-
var m2 = p2 ? new AST_Call({ expression: p2, args: d2 }) :
|
|
240992
|
+
var m2 = p2 ? new AST_Call({ expression: p2, args: d2 }) : he(l2, d2);
|
|
240992
240993
|
if (m2.start) {
|
|
240993
240994
|
const e3 = l2.comments_before.length;
|
|
240994
240995
|
if (n3.set(l2, e3), m2.start.comments_before.unshift(...l2.comments_before), l2.comments_before = m2.start.comments_before, 0 == e3 && l2.comments_before.length > 0) {
|
|
@@ -241028,12 +241029,12 @@ function parse3(e, t) {
|
|
|
241028
241029
|
function X() {
|
|
241029
241030
|
var e2 = [], t2 = i.token;
|
|
241030
241031
|
for (e2.push(new AST_TemplateSegment({ start: i.token, raw: TEMPLATE_RAWS.get(i.token), value: i.token.value, end: i.token })); !i.token.template_end; )
|
|
241031
|
-
a(), E(), e2.push(
|
|
241032
|
+
a(), E(), e2.push(Ae(true)), e2.push(new AST_TemplateSegment({ start: i.token, raw: TEMPLATE_RAWS.get(i.token), value: i.token.value, end: i.token }));
|
|
241032
241033
|
return a(), new AST_TemplateString({ start: t2, segments: e2, end: i.token });
|
|
241033
241034
|
}
|
|
241034
241035
|
function z(e2, t2, n4) {
|
|
241035
241036
|
for (var r2 = true, u2 = []; !o("punc", e2) && (r2 ? r2 = false : f(","), !t2 || !o("punc", e2)); )
|
|
241036
|
-
o("punc", ",") && n4 ? u2.push(new AST_Hole({ start: i.token, end: i.token })) : o("expand", "...") ? (a(), u2.push(new AST_Expansion({ start: s(), expression:
|
|
241037
|
+
o("punc", ",") && n4 ? u2.push(new AST_Hole({ start: i.token, end: i.token })) : o("expand", "...") ? (a(), u2.push(new AST_Expansion({ start: s(), expression: Ae(), end: i.token }))) : u2.push(Ae(false));
|
|
241037
241038
|
return a(), u2;
|
|
241038
241039
|
}
|
|
241039
241040
|
var W = T(function() {
|
|
@@ -241042,13 +241043,13 @@ function parse3(e, t) {
|
|
|
241042
241043
|
var e2 = i.token, n4 = true, r2 = [];
|
|
241043
241044
|
for (f("{"); !o("punc", "}") && (n4 ? n4 = false : f(","), t.strict || !o("punc", "}")); ) {
|
|
241044
241045
|
if ("expand" == (e2 = i.token).type) {
|
|
241045
|
-
a(), r2.push(new AST_Expansion({ start: e2, expression:
|
|
241046
|
+
a(), r2.push(new AST_Expansion({ start: e2, expression: Ae(false), end: s() }));
|
|
241046
241047
|
continue;
|
|
241047
241048
|
}
|
|
241048
241049
|
o("privatename") && u("private fields are not allowed in an object");
|
|
241049
241050
|
var l2, _2 = ne();
|
|
241050
241051
|
if (o("punc", ":"))
|
|
241051
|
-
null === _2 ? c(s()) : (a(), l2 =
|
|
241052
|
+
null === _2 ? c(s()) : (a(), l2 = Ae(false));
|
|
241052
241053
|
else {
|
|
241053
241054
|
var p2 = $(_2, e2);
|
|
241054
241055
|
if (p2) {
|
|
@@ -241057,7 +241058,7 @@ function parse3(e, t) {
|
|
|
241057
241058
|
}
|
|
241058
241059
|
l2 = new AST_SymbolRef({ start: s(), name: _2, end: s() });
|
|
241059
241060
|
}
|
|
241060
|
-
o("operator", "=") && (a(), l2 = new AST_Assign({ start: e2, left: l2, operator: "=", right:
|
|
241061
|
+
o("operator", "=") && (a(), l2 = new AST_Assign({ start: e2, left: l2, operator: "=", right: Ae(false), logical: false, end: s() }));
|
|
241061
241062
|
const t2 = new AST_ObjectKeyVal({ start: e2, quote: e2.quote, key: _2 instanceof AST_Node ? _2 : "" + _2, value: l2, end: s() });
|
|
241062
241063
|
r2.push(se(t2));
|
|
241063
241064
|
}
|
|
@@ -241065,7 +241066,7 @@ function parse3(e, t) {
|
|
|
241065
241066
|
});
|
|
241066
241067
|
function j(e2, t2) {
|
|
241067
241068
|
var n4, r2, u2, l2, _2 = [];
|
|
241068
|
-
i.input.push_directives_stack(), i.input.add_directive("use strict"), "name" == i.token.type && "extends" != i.token.value && (u2 = ae(e2 === AST_DefClass ? AST_SymbolDefClass : AST_SymbolClass)), e2 !== AST_DefClass || u2 || (t2 ? e2 = AST_ClassExpression : c()), "extends" == i.token.value && (a(), l2 =
|
|
241069
|
+
i.input.push_directives_stack(), i.input.add_directive("use strict"), "name" == i.token.type && "extends" != i.token.value && (u2 = ae(e2 === AST_DefClass ? AST_SymbolDefClass : AST_SymbolClass)), e2 !== AST_DefClass || u2 || (t2 ? e2 = AST_ClassExpression : c()), "extends" == i.token.value && (a(), l2 = Ae(true)), f("{");
|
|
241069
241070
|
const p2 = i.in_class;
|
|
241070
241071
|
for (i.in_class = true; o("punc", ";"); )
|
|
241071
241072
|
a();
|
|
@@ -241105,7 +241106,7 @@ function parse3(e, t) {
|
|
|
241105
241106
|
if (n4) {
|
|
241106
241107
|
const n5 = r2(e2, AST_SymbolClassProperty), i2 = n5 instanceof AST_SymbolClassProperty ? m2.quote : void 0, u3 = p2 ? AST_ClassPrivateProperty : AST_ClassProperty;
|
|
241107
241108
|
if (o("operator", "="))
|
|
241108
|
-
return a(), se(new u3({ start: t2, static: _2, quote: i2, key: n5, value:
|
|
241109
|
+
return a(), se(new u3({ start: t2, static: _2, quote: i2, key: n5, value: Ae(false), end: s() }));
|
|
241109
241110
|
if (o("name") || o("privatename") || o("operator", "*") || o("punc", ";") || o("punc", "}"))
|
|
241110
241111
|
return se(new u3({ start: t2, static: _2, quote: i2, key: n5, end: s() }));
|
|
241111
241112
|
}
|
|
@@ -241158,7 +241159,7 @@ function parse3(e, t) {
|
|
|
241158
241159
|
}
|
|
241159
241160
|
return new AST_Export({ start: _2, is_default: e2, exported_names: t2, end: s() });
|
|
241160
241161
|
}
|
|
241161
|
-
return o("punc", "{") || e2 && (o("keyword", "class") || o("keyword", "function")) && is_token(r(), "punc") ? (u2 =
|
|
241162
|
+
return o("punc", "{") || e2 && (o("keyword", "class") || o("keyword", "function")) && is_token(r(), "punc") ? (u2 = Ae(false), h()) : (n4 = g(e2)) instanceof AST_Definitions && e2 ? c(n4.start) : n4 instanceof AST_Definitions || n4 instanceof AST_Defun || n4 instanceof AST_DefClass ? l2 = n4 : n4 instanceof AST_ClassExpression || n4 instanceof AST_Function ? u2 = n4 : n4 instanceof AST_SimpleStatement ? u2 = n4.body : c(n4.start), new AST_Export({ start: _2, is_default: e2, exported_value: u2, exported_definition: l2, end: s(), assert_clause: null });
|
|
241162
241163
|
}
|
|
241163
241164
|
function ne() {
|
|
241164
241165
|
var e2 = i.token;
|
|
@@ -241166,7 +241167,7 @@ function parse3(e, t) {
|
|
|
241166
241167
|
case "punc":
|
|
241167
241168
|
if ("[" === e2.value) {
|
|
241168
241169
|
a();
|
|
241169
|
-
var t2 =
|
|
241170
|
+
var t2 = Ae(false);
|
|
241170
241171
|
return f("]"), t2;
|
|
241171
241172
|
}
|
|
241172
241173
|
c(e2);
|
|
@@ -241243,7 +241244,7 @@ function parse3(e, t) {
|
|
|
241243
241244
|
}
|
|
241244
241245
|
if (o("punc", "[")) {
|
|
241245
241246
|
a();
|
|
241246
|
-
var l2 =
|
|
241247
|
+
var l2 = Ae(true);
|
|
241247
241248
|
return f("]"), se(ue(new AST_Sub({ start: r2, expression: e2, optional: false, property: l2, end: s() }), t2, n4));
|
|
241248
241249
|
}
|
|
241249
241250
|
if (t2 && o("punc", "(")) {
|
|
@@ -241263,7 +241264,7 @@ function parse3(e, t) {
|
|
|
241263
241264
|
n5 = se(ue(new a2({ start: r2, expression: e2, optional: true, property: ie(), end: s() }), t2, true));
|
|
241264
241265
|
} else if (o("punc", "[")) {
|
|
241265
241266
|
a();
|
|
241266
|
-
const i2 =
|
|
241267
|
+
const i2 = Ae(true);
|
|
241267
241268
|
f("]"), n5 = se(ue(new AST_Sub({ start: r2, expression: e2, optional: true, property: i2, end: s() }), t2, true));
|
|
241268
241269
|
}
|
|
241269
241270
|
return n5 || c(), n5 instanceof AST_Chain ? n5 : new AST_Chain({ start: r2, expression: n5, end: s() });
|
|
@@ -241272,7 +241273,7 @@ function parse3(e, t) {
|
|
|
241272
241273
|
};
|
|
241273
241274
|
function le() {
|
|
241274
241275
|
for (var e2 = []; !o("punc", ")"); )
|
|
241275
|
-
o("expand", "...") ? (a(), e2.push(new AST_Expansion({ start: s(), expression:
|
|
241276
|
+
o("expand", "...") ? (a(), e2.push(new AST_Expansion({ start: s(), expression: Ae(false), end: s() }))) : e2.push(Ae(false)), o("punc", ")") || f(",");
|
|
241276
241277
|
return a(), e2;
|
|
241277
241278
|
}
|
|
241278
241279
|
var ce = function(e2, t2) {
|
|
@@ -241293,7 +241294,7 @@ function parse3(e, t) {
|
|
|
241293
241294
|
switch (o2) {
|
|
241294
241295
|
case "++":
|
|
241295
241296
|
case "--":
|
|
241296
|
-
|
|
241297
|
+
de(n4) || u("Invalid use of " + o2 + " operator", t2.line, t2.col, t2.pos);
|
|
241297
241298
|
break;
|
|
241298
241299
|
case "delete":
|
|
241299
241300
|
n4 instanceof AST_SymbolRef && i.input.has_directive("use strict") && u("Calling delete on expression not allowed in strict mode", n4.start.line, n4.start.col, n4.start.pos);
|
|
@@ -241306,26 +241307,36 @@ function parse3(e, t) {
|
|
|
241306
241307
|
var s2 = null != r2 ? PRECEDENCE[r2] : null;
|
|
241307
241308
|
if (null != s2 && (s2 > t2 || "**" === r2 && t2 === s2)) {
|
|
241308
241309
|
a();
|
|
241309
|
-
var u2 =
|
|
241310
|
+
var u2 = pe(n4, s2, true);
|
|
241310
241311
|
return fe(new AST_Binary({ start: e2.start, left: e2, operator: r2, right: u2, end: u2.end }), t2, n4);
|
|
241311
241312
|
}
|
|
241312
241313
|
return e2;
|
|
241313
241314
|
};
|
|
241314
|
-
function pe(e2) {
|
|
241315
|
-
|
|
241315
|
+
function pe(e2, t2, n4, r2) {
|
|
241316
|
+
if (!e2 && t2 < PRECEDENCE.in && o("privatename")) {
|
|
241317
|
+
i.in_class || u("Private field must be used in an enclosing class");
|
|
241318
|
+
const t3 = i.token, n5 = new AST_SymbolPrivateProperty({ start: t3, name: t3.value, end: t3 });
|
|
241319
|
+
a(), _("operator", "in");
|
|
241320
|
+
const o2 = new AST_PrivateIn({ start: t3, key: n5, value: pe(e2, PRECEDENCE.in, true), end: s() });
|
|
241321
|
+
return fe(o2, 0, e2);
|
|
241322
|
+
}
|
|
241323
|
+
return fe(ce(n4, r2), t2, e2);
|
|
241316
241324
|
}
|
|
241317
241325
|
function de(e2) {
|
|
241326
|
+
return e2 instanceof AST_PropAccess || e2 instanceof AST_SymbolRef;
|
|
241327
|
+
}
|
|
241328
|
+
function me(e2) {
|
|
241318
241329
|
if (e2 instanceof AST_Object)
|
|
241319
|
-
e2 = new AST_Destructuring({ start: e2.start, names: e2.properties.map(
|
|
241330
|
+
e2 = new AST_Destructuring({ start: e2.start, names: e2.properties.map(me), is_array: false, end: e2.end });
|
|
241320
241331
|
else if (e2 instanceof AST_Array) {
|
|
241321
241332
|
for (var t2 = [], n4 = 0; n4 < e2.elements.length; n4++)
|
|
241322
|
-
e2.elements[n4] instanceof AST_Expansion && (n4 + 1 !== e2.elements.length && l(e2.elements[n4].start, "Spread must the be last element in destructuring array"), e2.elements[n4].expression =
|
|
241333
|
+
e2.elements[n4] instanceof AST_Expansion && (n4 + 1 !== e2.elements.length && l(e2.elements[n4].start, "Spread must the be last element in destructuring array"), e2.elements[n4].expression = me(e2.elements[n4].expression)), t2.push(me(e2.elements[n4]));
|
|
241323
241334
|
e2 = new AST_Destructuring({ start: e2.start, names: t2, is_array: true, end: e2.end });
|
|
241324
241335
|
} else
|
|
241325
|
-
e2 instanceof AST_ObjectProperty ? e2.value =
|
|
241336
|
+
e2 instanceof AST_ObjectProperty ? e2.value = me(e2.value) : e2 instanceof AST_Assign && (e2 = new AST_DefaultAssign({ start: e2.start, left: e2.left, operator: "=", right: e2.right, end: e2.end }));
|
|
241326
241337
|
return e2;
|
|
241327
241338
|
}
|
|
241328
|
-
var
|
|
241339
|
+
var Se = function(e2) {
|
|
241329
241340
|
E();
|
|
241330
241341
|
var t2 = i.token;
|
|
241331
241342
|
if ("name" == t2.type && "yield" == t2.value) {
|
|
@@ -241333,47 +241344,38 @@ function parse3(e, t) {
|
|
|
241333
241344
|
return a(), function() {
|
|
241334
241345
|
m() || u("Unexpected yield expression outside generator function", i.prev.line, i.prev.col, i.prev.pos);
|
|
241335
241346
|
var e3 = i.token, t3 = false, n5 = true;
|
|
241336
|
-
return d() || o("punc") && PUNC_AFTER_EXPRESSION.has(i.token.value) ? n5 = false : o("operator", "*") && (t3 = true, a()), new AST_Yield({ start: e3, is_star: t3, expression: n5 ?
|
|
241347
|
+
return d() || o("punc") && PUNC_AFTER_EXPRESSION.has(i.token.value) ? n5 = false : o("operator", "*") && (t3 = true, a()), new AST_Yield({ start: e3, is_star: t3, expression: n5 ? Ae() : null, end: s() });
|
|
241337
241348
|
}();
|
|
241338
241349
|
i.input.has_directive("use strict") && l(i.token, "Unexpected yield identifier inside strict mode");
|
|
241339
241350
|
}
|
|
241340
241351
|
var n4 = function(e3) {
|
|
241341
|
-
var t3 = i.token, n5 =
|
|
241342
|
-
if (!e4 && o("privatename")) {
|
|
241343
|
-
i.in_class || u("Private field must be used in an enclosing class");
|
|
241344
|
-
const t4 = i.token, n6 = new AST_SymbolPrivateProperty({ start: t4, name: t4.value, end: t4 });
|
|
241345
|
-
a(), _("operator", "in");
|
|
241346
|
-
const o2 = new AST_PrivateIn({ start: t4, key: n6, value: fe(ce(true), PRECEDENCE.in, e4), end: s() });
|
|
241347
|
-
return fe(o2, 0, e4);
|
|
241348
|
-
}
|
|
241349
|
-
return fe(ce(true, true), 0, e4);
|
|
241350
|
-
}(e3);
|
|
241352
|
+
var t3 = i.token, n5 = pe(e3, 0, true, true);
|
|
241351
241353
|
if (o("operator", "?")) {
|
|
241352
241354
|
a();
|
|
241353
|
-
var r3 =
|
|
241354
|
-
return f(":"), new AST_Conditional({ start: t3, condition: n5, consequent: r3, alternative:
|
|
241355
|
+
var r3 = Ae(false);
|
|
241356
|
+
return f(":"), new AST_Conditional({ start: t3, condition: n5, consequent: r3, alternative: Ae(false, e3), end: s() });
|
|
241355
241357
|
}
|
|
241356
241358
|
return n5;
|
|
241357
241359
|
}(e2), r2 = i.token.value;
|
|
241358
241360
|
if (o("operator") && ASSIGNMENT.has(r2)) {
|
|
241359
|
-
if (
|
|
241360
|
-
return a(), new AST_Assign({ start: t2, left: n4, operator: r2, right:
|
|
241361
|
+
if (de(n4) || (n4 = me(n4)) instanceof AST_Destructuring)
|
|
241362
|
+
return a(), new AST_Assign({ start: t2, left: n4, operator: r2, right: Se(e2), logical: LOGICAL_ASSIGNMENT.has(r2), end: s() });
|
|
241361
241363
|
u("Invalid assignment");
|
|
241362
241364
|
}
|
|
241363
241365
|
return n4;
|
|
241364
|
-
}, Se = function(e2, t2) {
|
|
241365
|
-
return 1 === t2.length ? t2[0] : t2.length > 1 ? new AST_Sequence({ start: e2, expressions: t2, end: r() }) : void u("Invalid parenthesized expression");
|
|
241366
241366
|
}, he = function(e2, t2) {
|
|
241367
|
-
|
|
241367
|
+
return 1 === t2.length ? t2[0] : t2.length > 1 ? new AST_Sequence({ start: e2, expressions: t2, end: r() }) : void u("Invalid parenthesized expression");
|
|
241368
|
+
}, Ae = function(e2, t2) {
|
|
241369
|
+
for (var n4 = i.token, r2 = []; r2.push(Se(t2)), e2 && o("punc", ","); )
|
|
241368
241370
|
a(), e2 = true;
|
|
241369
|
-
return
|
|
241371
|
+
return he(n4, r2);
|
|
241370
241372
|
};
|
|
241371
|
-
function
|
|
241373
|
+
function Te(e2) {
|
|
241372
241374
|
++i.in_loop;
|
|
241373
241375
|
var t2 = e2();
|
|
241374
241376
|
return --i.in_loop, t2;
|
|
241375
241377
|
}
|
|
241376
|
-
return t.expression ?
|
|
241378
|
+
return t.expression ? Ae(true) : function() {
|
|
241377
241379
|
var e2 = i.token, n4 = [];
|
|
241378
241380
|
for (i.input.push_directives_stack(), t.module && i.input.add_directive("use strict"); !o("eof"); )
|
|
241379
241381
|
n4.push(g());
|
|
@@ -254277,13 +254279,15 @@ var getDocsStyles = (cmpMeta) => {
|
|
|
254277
254279
|
if (!cmpMeta.styleDocs) {
|
|
254278
254280
|
return [];
|
|
254279
254281
|
}
|
|
254280
|
-
return sortBy(cmpMeta.styleDocs, (
|
|
254281
|
-
|
|
254282
|
-
|
|
254283
|
-
|
|
254284
|
-
|
|
254285
|
-
|
|
254286
|
-
|
|
254282
|
+
return sortBy(cmpMeta.styleDocs, (compilerStyleDoc) => compilerStyleDoc.name.toLowerCase()).map(
|
|
254283
|
+
(compilerStyleDoc) => {
|
|
254284
|
+
return {
|
|
254285
|
+
name: compilerStyleDoc.name,
|
|
254286
|
+
annotation: compilerStyleDoc.annotation || "",
|
|
254287
|
+
docs: compilerStyleDoc.docs || ""
|
|
254288
|
+
};
|
|
254289
|
+
}
|
|
254290
|
+
);
|
|
254287
254291
|
};
|
|
254288
254292
|
var getDocsListeners = (listeners) => {
|
|
254289
254293
|
return listeners.map((listener) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.17.
|
|
1
|
+
<!doctype html><html><head><meta charset="utf-8"><title>Stencil Dev Server Connector 4.17.2 ⚡</title><style>body{background:black;color:white;font:18px monospace;text-align:center}</style></head><body>
|
|
2
2
|
|
|
3
|
-
Stencil Dev Server Connector 4.17.
|
|
3
|
+
Stencil Dev Server Connector 4.17.2 ⚡
|
|
4
4
|
|
|
5
5
|
<script>!function(e,t,n,r){"use strict";var o="#dev-server-modal * { box-sizing: border-box !important; } #dev-server-modal { direction: ltr !important; display: block !important; position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 100000; margin: 0 !important; padding: 0 !important; font-family: -apple-system, 'Roboto', BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important; font-size: 14px !important; line-height: 1.5 !important; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; text-size-adjust: none; word-wrap: break-word; color: #333 !important; background-color: white !important; box-sizing: border-box !important; overflow: hidden; user-select: auto; } #dev-server-modal-inner { position: relative !important; padding: 0 0 30px 0 !important; width: 100% !important; height: 100%; overflow-x: hidden; overflow-y: scroll; -webkit-overflow-scrolling: touch; } .dev-server-diagnostic { margin: 20px !important; border: 1px solid #ddd !important; border-radius: 3px !important; } .dev-server-diagnostic-masthead { padding: 8px 12px 12px 12px !important; } .dev-server-diagnostic-title { margin: 0 !important; font-weight: bold !important; color: #222 !important; } .dev-server-diagnostic-message { margin-top: 4px !important; color: #555 !important; } .dev-server-diagnostic-file { position: relative !important; border-top: 1px solid #ddd !important; } .dev-server-diagnostic-file-header { display: block !important; padding: 5px 10px !important; color: #555 !important; border-bottom: 1px solid #ddd !important; border-top-left-radius: 2px !important; border-top-right-radius: 2px !important; background-color: #f9f9f9 !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; } a.dev-server-diagnostic-file-header { color: #0000ee !important; text-decoration: underline !important; } a.dev-server-diagnostic-file-header:hover { text-decoration: none !important; background-color: #f4f4f4 !important; } .dev-server-diagnostic-file-name { font-weight: bold !important; } .dev-server-diagnostic-blob { overflow-x: auto !important; overflow-y: hidden !important; border-bottom-right-radius: 3px !important; border-bottom-left-radius: 3px !important; } .dev-server-diagnostic-table { margin: 0 !important; padding: 0 !important; border-spacing: 0 !important; border-collapse: collapse !important; border-width: 0 !important; border-style: none !important; -moz-tab-size: 2; tab-size: 2; } .dev-server-diagnostic-table td, .dev-server-diagnostic-table th { padding: 0 !important; border-width: 0 !important; border-style: none !important; } td.dev-server-diagnostic-blob-num { padding-right: 10px !important; padding-left: 10px !important; width: 1% !important; min-width: 50px !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; line-height: 20px !important; color: rgba(0, 0, 0, 0.3) !important; text-align: right !important; white-space: nowrap !important; vertical-align: top !important; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: solid #eee !important; border-width: 0 1px 0 0 !important; } td.dev-server-diagnostic-blob-num::before { content: attr(data-line-number) !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num { background-color: #ffdddd !important; border-color: #ffc9c9 !important; } .dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-code { background: rgba(255, 221, 221, 0.25) !important; z-index: -1; } .dev-server-diagnostic-open-in-editor td.dev-server-diagnostic-blob-num:hover { cursor: pointer; background-color: #ffffe3 !important; font-weight: bold; } .dev-server-diagnostic-open-in-editor.dev-server-diagnostic-error-line td.dev-server-diagnostic-blob-num:hover { background-color: #ffdada !important; } td.dev-server-diagnostic-blob-code { position: relative !important; padding-right: 10px !important; padding-left: 10px !important; line-height: 20px !important; vertical-align: top !important; overflow: visible !important; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; font-size: 12px !important; color: #333 !important; word-wrap: normal !important; white-space: pre !important; } td.dev-server-diagnostic-blob-code::before { content: '' !important; } .dev-server-diagnostic-error-chr { position: relative !important; } .dev-server-diagnostic-error-chr::before { position: absolute !important; z-index: -1; top: -3px !important; left: 0px !important; width: 8px !important; height: 20px !important; background-color: #ffdddd !important; content: '' !important; } /** * GitHub Gist Theme * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro * https://highlightjs.org/ */ .hljs-comment, .hljs-meta { color: #969896; } .hljs-string, .hljs-variable, .hljs-template-variable, .hljs-strong, .hljs-emphasis, .hljs-quote { color: #df5000; } .hljs-keyword, .hljs-selector-tag, .hljs-type { color: #a71d5d; } .hljs-literal, .hljs-symbol, .hljs-bullet, .hljs-attribute { color: #0086b3; } .hljs-section, .hljs-name { color: #63a35c; } .hljs-tag { color: #333333; } .hljs-title, .hljs-attr, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #795da3; } .hljs-addition { color: #55a532; background-color: #eaffea; } .hljs-deletion { color: #bd2c00; background-color: #ffecec; } .hljs-link { text-decoration: underline; }",i=function(e){var t,n,r={diagnostics:[],status:null};return e&&e.window&&Array.isArray(e.buildResults.diagnostics)&&(t=e.buildResults.diagnostics.filter((function(e){return"error"===e.level}))).length>0&&(n=s(e.window.document),t.forEach((function(t){r.diagnostics.push(t),a(e.window.document,e.openInEditor,n,t)})),r.status="error"),r},a=function(e,t,n,r){var o,i,a,s,d,m,f,g,v,h,b,w,y,k,E,C,j=e.createElement("div");j.className="dev-server-diagnostic",(d=e.createElement("div")).className="dev-server-diagnostic-masthead",d.title="".concat(c(r.type)," error: ").concat(c(null!==(o=r.code)&&void 0!==o?o:"unknown error")),j.appendChild(d),(m=e.createElement("div")).className="dev-server-diagnostic-title","string"==typeof r.header&&r.header.trim().length>0?m.textContent=r.header:m.textContent="".concat(A(r.type)," ").concat(A(r.level)),d.appendChild(m),(f=e.createElement("div")).className="dev-server-diagnostic-message",f.textContent=r.messageText,d.appendChild(f),(g=e.createElement("div")).className="dev-server-diagnostic-file",j.appendChild(g),v="string"==typeof r.absFilePath&&0===r.absFilePath.indexOf("http"),h="function"==typeof t&&"string"==typeof r.absFilePath&&!v,v?((b=e.createElement("a")).href=null!==(i=r.absFilePath)&&void 0!==i?i:"",b.setAttribute("target","_blank"),b.setAttribute("rel","noopener noreferrer"),b.className="dev-server-diagnostic-file-header",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=null!==(a=r.absFilePath)&&void 0!==a?a:"",b.appendChild(w),g.appendChild(b)):r.relFilePath&&((b=e.createElement(h?"a":"div")).className="dev-server-diagnostic-file-header",r.absFilePath&&(b.title=c(r.absFilePath),h&&l(t,b,r.absFilePath,r.lineNumber,r.columnNumber)),y=r.relFilePath.split("/"),(k=e.createElement("span")).className="dev-server-diagnostic-file-name",k.textContent=null!==(s=y.pop())&&void 0!==s?s:"",(w=e.createElement("span")).className="dev-server-diagnostic-file-path",w.textContent=y.join("/")+"/",b.appendChild(w),b.appendChild(k),g.appendChild(b)),r.lines&&r.lines.length>0&&((E=e.createElement("div")).className="dev-server-diagnostic-blob",g.appendChild(E),(C=e.createElement("table")).className="dev-server-diagnostic-table",E.appendChild(C),u(r.lines).forEach((function(n){var o,i,a,s,d,A,u,m=e.createElement("tr");n.errorCharStart>0&&m.classList.add("dev-server-diagnostic-error-line"),h&&m.classList.add("dev-server-diagnostic-open-in-editor"),C.appendChild(m),(s=e.createElement("td")).className="dev-server-diagnostic-blob-num",n.lineNumber>0&&(s.setAttribute("data-line-number",n.lineNumber+""),s.title=c(null!==(o=r.relFilePath)&&void 0!==o?o:"")+", line "+n.lineNumber,d=r.absFilePath,h&&d&&(A=n.lineNumber===r.lineNumber?r.columnNumber:1,l(t,s,d,n.lineNumber,A))),m.appendChild(s),(u=e.createElement("td")).className="dev-server-diagnostic-blob-code",u.innerHTML=p(null!==(i=n.text)&&void 0!==i?i:"",n.errorCharStart,null!==(a=n.errorLength)&&void 0!==a?a:0),m.appendChild(u)}))),n.appendChild(j)},l=function(e,t,n,r,o){var i,a;"A"===t.tagName&&(t.href="#open-in-editor"),i="number"!=typeof r||r<1?1:r,a="number"!=typeof o||o<1?1:o,t.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e({file:n,line:i,column:a})}))},s=function(e){var t=e.getElementById(f);return t||((t=e.createElement("div")).id=f,t.setAttribute("role","dialog"),e.body.appendChild(t)),t.innerHTML="<style>".concat(o,'</style><div id="').concat(f,'-inner"></div>'),e.getElementById("".concat(f,"-inner"))},d=function(e){var t=e.window.document.getElementById(f);(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)},c=function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""},A=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},p=function(e,t,n){if("string"!=typeof e)return"";var r=t+n;return e.split("").map((function(e,n){var o;return o="<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":"&"===e?"&":e,n>=t&&n<r&&(o='<span class="dev-server-diagnostic-error-chr">'.concat(o,"</span>")),o})).join("")},u=function(e){var t,n,r,o,i,a=JSON.parse(JSON.stringify(e));for(o=0;o<100;o++){if(!m(a))return a;for(i=0;i<a.length;i++)if(a[i].text=null!==(n=null===(t=a[i].text)||void 0===t?void 0:t.slice(1))&&void 0!==n?n:"",a[i].errorCharStart--,!(null===(r=a[i].text)||void 0===r?void 0:r.length))return a}return a},m=function(e){var t,n,r,o,i;if(!e.length)return!1;for(o=0;o<e.length;o++){if(!e[o].text||(null!==(n=null===(t=e[o].text)||void 0===t?void 0:t.length)&&void 0!==n?n:0)<1)return!1;if(" "!==(i=null===(r=e[o].text)||void 0===r?void 0:r.charAt(0))&&"\t"!==i)return!1}return!0},f="dev-server-modal",g=function(e,t){e.dispatchEvent(new CustomEvent(k,{detail:t}))},v=function(e,t){e.dispatchEvent(new CustomEvent(E,{detail:t}))},h=function(e,t){e.dispatchEvent(new CustomEvent(C,{detail:t}))},b=function(e,t){e.addEventListener(k,(function(e){t(e.detail)}))},w=function(e,t){e.addEventListener(E,(function(e){t(e.detail)}))},y=function(e,t){e.addEventListener(C,(function(e){t(e.detail)}))},k="devserver:buildlog",E="devserver:buildresults",C="devserver:buildstatus",j=function(e,t,n){return"string"==typeof n&&""!==n.trim()&&L(t)===L(n)?H(n,e):n},L=function(e){var t=e.split("/");return t[t.length-1].split("&")[0].split("?")[0]},x=function(e){var t={};return"string"==typeof e&&e.split("&").forEach((function(e){var n=e.split("=");t[n[0]]=n[1]?n[1]:""})),t},I=function(e){return Object.keys(e).map((function(t){return t+"="+e[t]})).join("&")},Q=function(e,t,n){var r=e.split("?"),o=r[0],i=x(r[1]);return i[t]=n,o+"?"+I(i)},H=function(e,t){return Q(e,"s-hmr",t)},S=function(e,t,n){for(var r,o,i=/url\((['"]?)(.*)\1\)/gi,a=n;null!==(r=i.exec(n));)o=r[2],a=a.replace(o,j(e,t,o));return a},B=function(e){return"link"===e.nodeName.toLowerCase()&&!!e.href&&!!e.rel&&"stylesheet"===e.rel.toLowerCase()},U=function(e){return"template"===e.nodeName.toLowerCase()&&!!e.content&&11===e.content.nodeType},N=function(e,t){e.setAttribute("data-hmr",t)},D=function(e){return!!e.shadowRoot&&11===e.shadowRoot.nodeType&&e.shadowRoot!==e},F=function(e){return!!e&&1===e.nodeType&&!!e.getAttribute},T=function(e,t,n){var r=[];return n.forEach((function(n){R(r,e,t,n)})),r.sort()},R=function(e,t,n,r){if(t.nodeName.toLowerCase()===r&&"function"==typeof t["s-hmr"]&&(t["s-hmr"](n),N(t,n),-1===e.indexOf(r)&&e.push(r)),D(t)&&R(e,t.shadowRoot,n,r),t.children)for(var o=0;o<t.children.length;o++)R(e,t.children[o],n,r)},O=function(e,t,n){if(B(e)&&n.forEach((function(n){M(e,t,n)})),U(e)&&O(e.content,t,n),D(e)&&O(e.shadowRoot,t,n),e.children)for(var r=0;r<e.children.length;r++)O(e.children[r],t,n);return n.sort()},M=function(e,t,n){var r=e.getAttribute("href"),o=j(t,n,e.href);o!==r&&(e.setAttribute("href",o),N(e,t))},z=function(e,t,n,r){return"file:"!==e.location.protocol&&t.styleSheets&&K(t,n,r),Y(e,t.documentElement,n,r),r.sort()},K=function(e,t,n){var r,o=Object.keys(e.documentElement.style).filter((function(e){return e.endsWith("Image")}));for(r=0;r<e.styleSheets.length;r++)P(o,e.styleSheets[r],t,n)},P=function(e,t,n,r){var o,i,a;try{for(o=t.cssRules,i=0;i<o.length;i++)switch((a=o[i]).type){case CSSRule.IMPORT_RULE:P(e,a.styleSheet,n,r);break;case CSSRule.STYLE_RULE:J(e,a,n,r);break;case CSSRule.MEDIA_RULE:P(e,a,n,r)}}catch(e){console.error("hmrStyleSheetImages: "+e)}},J=function(e,t,n,r){e.forEach((function(e){r.forEach((function(r){var o=t.style[e],i=S(n,r,o);o!==i&&(t.style[e]=i)}))}))},Y=function(e,t,n,r){var o,i,a=t.nodeName.toLowerCase();if("img"===a&&W(t,n,r),F(t)&&(o=t.getAttribute("style"))&&X(t,n,r,o),"style"===a&&q(t,n,r),"file:"!==e.location.protocol&&B(t)&&G(t,n,r),U(t)&&Y(e,t.content,n,r),D(t)&&Y(e,t.shadowRoot,n,r),t.children)for(i=0;i<t.children.length;i++)Y(e,t.children[i],n,r)},W=function(e,t,n){n.forEach((function(n){var r=e.getAttribute("src"),o=j(t,n,r);o!==r&&(e.setAttribute("src",o),N(e,t))}))},X=function(e,t,n,r){n.forEach((function(n){var o=S(t,n,r);o!==r&&(e.setAttribute("style",o),N(e,t))}))},q=function(e,t,n){n.forEach((function(n){var r=e.innerHTML,o=S(t,n,r);o!==r&&(e.innerHTML=o,N(e,t))}))},G=function(e,t,n){e.href=Q(e.href,"s-hmr-urls",n.sort().join(",")),e.href=H(e.href,t),e.setAttribute("data-hmr",t)},Z=function(e,t,n){var r,o=n;if(F(e)&&"style"===e.nodeName.toLowerCase()&&o.forEach((function(n){V(e,t,n)})),U(e)&&Z(e.content,t,o),D(e)&&Z(e.shadowRoot,t,o),e.children)for(r=0;r<e.children.length;r++)Z(e.children[r],t,o);return o.map((function(e){return e.styleTag})).reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[]).sort()},V=function(e,t,n){e.getAttribute("sty-id")===n.styleId&&n.styleText&&(e.innerHTML=n.styleText.replace(/\\n/g,"\n"),e.setAttribute("data-hmr",t))},_=function(e){var t,n,r,o,i,a={updatedComponents:[],updatedExternalStyles:[],updatedInlineStyles:[],updatedImages:[],versionId:""};try{if(!(e&&e.window&&e.window.document.documentElement&&e.hmr&&"string"==typeof e.hmr.versionId))return a;n=(t=e.window).document,r=e.hmr,o=n.documentElement,i=r.versionId,a.versionId=i,r.componentsUpdated&&(a.updatedComponents=T(o,i,r.componentsUpdated)),r.inlineStylesUpdated&&(a.updatedInlineStyles=Z(o,i,r.inlineStylesUpdated)),r.externalStylesUpdated&&(a.updatedExternalStyles=O(o,i,r.externalStylesUpdated)),r.imagesUpdated&&(a.updatedImages=z(t,n,i,r.imagesUpdated)),N(o,i)}catch(e){console.error(e)}return a},$=function(e){return oe(le,"Build",e)},ee=function(e){return te("Reload",e)},te=function(e,t){return oe(ie,e,t)},ne=function(e,t){return oe(se,e,t)},re=function(e){var t,n=e,r=ae,o="Error";"warn"===n.level&&(r=ie,o="Warning"),n.header&&(o=n.header),t="",n.relFilePath&&(t+=n.relFilePath,"number"==typeof n.lineNumber&&n.lineNumber>0&&(t+=", line "+n.lineNumber,"number"==typeof n.columnNumber&&n.columnNumber>0&&(t+=", column "+n.columnNumber)),t+="\n"),t+=n.messageText,oe(r,o,t)},oe=function(e,t,n){"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.indexOf("Trident")>-1?console.log(t,n):console.log.apply(console,["%c"+t,"background: ".concat(e,"; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;"),n])},ie="#f39c12",ae="#c0392b",le="#3498db",se="#717171",de=function(e){function t(){clearTimeout(l),clearTimeout(a);var e=o();if(!e)return function(){var e=p.createElement("div");e.id=c,e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.zIndex="100001",e.style.width="100%",e.style.height="2px",e.style.transform="scaleX(0)",e.style.opacity="1",e.style.background=u,e.style.transformOrigin="left center",e.style.transition="transform .1s ease-in-out, opacity .5s ease-in",e.style.contain="strict",p.body.appendChild(e)}(),void(i=setTimeout(t,16));e.style.background=u,e.style.opacity="1",e.style.transform="scaleX(".concat(Math.min(1,r()),")"),null==s&&(s=setInterval((function(){d+=.05*Math.random()+.01,r()<.9?t():clearInterval(s)}),800))}function n(){clearInterval(s),d=.05,s=null,clearTimeout(l),clearTimeout(i),clearTimeout(a);var e=o();e&&(f>=1&&(e.style.transform="scaleX(1)"),l=setTimeout((function(){try{var e=o();e&&(e.style.opacity="0")}catch(e){}}),150),a=setTimeout((function(){try{var e=o();e&&e.parentNode.removeChild(e)}catch(e){}}),1e3))}function r(){var e=f+d;return Math.max(0,Math.min(1,e))}function o(){return p.getElementById(c)}var i,a,l,s,d,c,A=e.window,p=A.document,u="#5851ff",m="#b70c19",f=0;n(),b(A,(function(e){(f=e.progress)>=0&&f<1?t():n()})),w(A,(function(e){if(e.hasError){var t=o();t&&(t.style.transform="scaleX(1)",t.style.background=m)}n()})),y(A,(function(e){"disabled"===e&&n()})),"tmpl-initial-load"===p.head.dataset.tmpl&&t(),c="dev-server-progress-bar"},ce=function(e){var t=e.window,n=t.document,r=ue(n);r.forEach((function(e){e.href&&(e.dataset.href=e.href,e.dataset.type=e.type)})),y(t,(function(e){Ae(n,e)}))},Ae=function(e,t){ue(e).forEach((function(e){pe(e,t)}))},pe=function(e,t){"pending"===t?(e.href=fe,e.type=he,e.setAttribute("data-status",t)):"error"===t?(e.href=ge,e.type=he,e.setAttribute("data-status",t)):"disabled"===t?(e.href=ve,e.type=he,e.setAttribute("data-status",t)):(e.removeAttribute("data-status"),e.dataset.href?(e.href=e.dataset.href,e.type=e.dataset.type):(e.href=me,e.type=he))},ue=function(e){var t,n,r=[],o=e.querySelectorAll("link");for(t=0;t<o.length;t++)o[t].href&&o[t].rel&&(o[t].rel.indexOf("shortcut")>-1||o[t].rel.indexOf("icon")>-1)&&r.push(o[t]);return 0===r.length&&((n=e.createElement("link")).rel="shortcut icon",e.head.appendChild(n),r.push(n)),r},me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AAAAnFBMVEUAAAAAAAAAAA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="/~dev-server",we="".concat(be,"-init"),ye="".concat(be,"-open-in-editor"),ke=function(e,t){w(e,(function(n){Ee(e,t,n)}))},Ee=function(e,t,n){var r,o;try{if(n.buildId===e["s-build-id"])return;if(e["s-build-id"]=n.buildId,d({window:e}),n.hasError)return r=Array.isArray(t.editors)&&t.editors.length>0?t.editors[0].id:null,(o=i({window:e,buildResults:n,openInEditor:r?function(t){var n={file:t.file,line:t.line,column:t.column,editor:r},o="".concat(ye,"?").concat(Object.keys(n).map((function(e){return"".concat(e,"=").concat(n[e])})).join("&"));e.fetch(o)}:null})).diagnostics.forEach(re),void h(e,o.status);if(e["s-initial-load"])return void je(e,t,(function(){ee("Initial load"),e.location.reload()}));n.hmr&&Ce(e,n.hmr)}catch(e){console.error(e)}},Ce=function(e,t){var n,r=!1;"pageReload"===t.reloadStrategy&&(r=!0),t.indexHtmlUpdated&&(ee("Updated index.html"),r=!0),t.serviceWorkerUpdated&&(ee("Updated Service Worker: sw.js"),r=!0),t.scriptsAdded&&t.scriptsAdded.length>0&&(ee("Added scripts: ".concat(t.scriptsAdded.join(", "))),r=!0),t.scriptsDeleted&&t.scriptsDeleted.length>0&&(ee("Deleted scripts: ".concat(t.scriptsDeleted.join(", "))),r=!0),t.excludeHmr&&t.excludeHmr.length>0&&(ee("Excluded From Hmr: ".concat(t.excludeHmr.join(", "))),r=!0),r?e.location.reload():((n=_({window:e,hmr:t})).updatedComponents.length>0&&$("Updated component".concat(n.updatedComponents.length>1?"s":"",": ").concat(n.updatedComponents.join(", "))),n.updatedInlineStyles.length>0&&$("Updated styles: ".concat(n.updatedInlineStyles.join(", "))),n.updatedExternalStyles.length>0&&$("Updated stylesheets: ".concat(n.updatedExternalStyles.join(", "))),n.updatedImages.length>0&&$("Updated images: ".concat(n.updatedImages.join(", "))))},je=function(e,t,n){e.history.replaceState({},"App",t.basePath),e.navigator.serviceWorker&&e.navigator.serviceWorker.getRegistration?e.navigator.serviceWorker.getRegistration().then((function(e){e?e.unregister().then((function(e){e&&$("unregistered service worker"),n()})):n()})).catch((function(e){te("Service Worker",e),n()})):n()},Le=function(e,t){function n(){var t=this;A>0&&h(e,"pending"),p||(c=setInterval((function(){if(u++,!p&&t.readyState===WebSocket.OPEN&&u<500){t.send(JSON.stringify({requestBuildResults:!0}))}else clearInterval(c)}),He)),clearTimeout(d)}function r(){l()}function o(t){h(e,"disabled"),t.code>Qe?te("Dev Server","web socket closed: ".concat(t.code," ").concat(t.reason)):ne("Dev Server","Disconnected, attempting to reconnect..."),l()}function i(t){var n=JSON.parse(t.data);if(A>0){if(n.isActivelyBuilding)return;if(n.buildResults)return ee("Reconnected to dev server"),p=!0,u=0,clearInterval(c),e["s-build-id"]!==n.buildResults.buildId&&e.location.reload(),void(e["s-build-id"]=n.buildResults.buildId)}return n.buildLog?(n.buildLog.progress<1&&h(e,"pending"),void g(e,n.buildLog)):n.buildResults?(p=!0,u=0,clearInterval(c),h(e,"default"),void v(e,n.buildResults)):void 0}function a(){clearTimeout(d),(s=new e.WebSocket(t.socketUrl,["xmpp"])).addEventListener("open",n),s.addEventListener("error",r),s.addEventListener("close",o),s.addEventListener("message",i)}function l(){p=!1,s&&(s.readyState!==WebSocket.OPEN&&s.readyState!==WebSocket.CONNECTING||s.close(Qe),s.removeEventListener("open",n),s.removeEventListener("error",r),s.removeEventListener("close",o),s.removeEventListener("message",i),s=null),clearTimeout(d),A>=xe?te("Dev Server","Canceling reconnect attempts"):(A++,d=setTimeout(a,Ie),h(e,"disabled"))}var s,d,c,A=0,p=!1,u=0;a()},xe=1e3,Ie=2500,Qe=1e3,He=500,Se=function(e,t){try{if(e["s-dev-server"])return;e["s-dev-server"]=!0,ce({window:e}),de({window:e}),ke(e,t),Be(e,t)?(e["s-initial-load"]=!0,je(e,t,(function(){Le(e,t)}))):Le(e,t)}catch(e){console.error(e)}},Be=function(e,t){var n=e.location.pathname;return(n="/"+n.substring(t.basePath.length))===we},Ue=function(e){De(),Ne(e)},Ne=function(e){function t(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof e.CustomEvent&&(t.prototype=e.Event.prototype,e.CustomEvent=t)},De=function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e){var t,n,r,o,i,a,l=[];for(t=1;t<arguments.length;t++)l[t-1]=arguments[t];for(n=Object(e),r=0,o=l;r<o.length;r++)if(null!=(i=o[r]))for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a]);return n},writable:!0,configurable:!0})},Fe={basePath:t.location.pathname,editors:[],reloadStrategy:"hmr",socketUrl:"".concat("https:"===location.protocol?"wss:":"ws:","//").concat(location.hostname).concat(""!==location.port?":"+location.port:"","/")};Ue(e),Se(t,Object.assign({},Fe,t.devServerConfig,n))}(window,window.parent,window.__DEV_CLIENT_CONFIG__);
|
|
6
6
|
</script></body></html>
|
package/dev-server/index.js
CHANGED
package/dev-server/package.json
CHANGED