Created
April 15, 2019 19:50
-
-
Save ryankshaw/8ece6a9cb9b5aecbc8089dc76101e568 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!(function(t) { | |
var e = {}; | |
function n(r) { | |
if (e[r]) return e[r].exports; | |
var o = (e[r] = { i: r, l: !1, exports: {} }); | |
return t[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports; | |
} | |
(n.m = t), | |
(n.c = e), | |
(n.d = function(t, e, r) { | |
n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: r }); | |
}), | |
(n.r = function(t) { | |
"undefined" != typeof Symbol && | |
Symbol.toStringTag && | |
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), | |
Object.defineProperty(t, "__esModule", { value: !0 }); | |
}), | |
(n.t = function(t, e) { | |
if ((1 & e && (t = n(t)), 8 & e)) return t; | |
if (4 & e && "object" == typeof t && t && t.__esModule) return t; | |
var r = Object.create(null); | |
if ( | |
(n.r(r), | |
Object.defineProperty(r, "default", { enumerable: !0, value: t }), | |
2 & e && "string" != typeof t) | |
) | |
for (var o in t) | |
n.d( | |
r, | |
o, | |
function(e) { | |
return t[e]; | |
}.bind(null, o) | |
); | |
return r; | |
}), | |
(n.n = function(t) { | |
var e = | |
t && t.__esModule | |
? function() { | |
return t.default; | |
} | |
: function() { | |
return t; | |
}; | |
return n.d(e, "a", e), e; | |
}), | |
(n.o = function(t, e) { | |
return Object.prototype.hasOwnProperty.call(t, e); | |
}), | |
(n.p = ""), | |
n((n.s = 38)); | |
})([ | |
function(t, e, n) { | |
var r = n(17)("wks"), | |
o = n(16), | |
i = n(1).Symbol, | |
a = "function" == typeof i; | |
(t.exports = function(t) { | |
return r[t] || (r[t] = (a && i[t]) || (a ? i : o)("Symbol." + t)); | |
}).store = r; | |
}, | |
function(t, e) { | |
var n = (t.exports = | |
"undefined" != typeof window && window.Math == Math | |
? window | |
: "undefined" != typeof self && self.Math == Math | |
? self | |
: Function("return this")()); | |
"number" == typeof __g && (__g = n); | |
}, | |
function(t, e) { | |
var n = (t.exports = { version: "2.6.5" }); | |
"number" == typeof __e && (__e = n); | |
}, | |
function(t, e, n) { | |
var r = n(5); | |
t.exports = function(t) { | |
if (!r(t)) throw TypeError(t + " is not an object!"); | |
return t; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(11), | |
o = n(27); | |
t.exports = n(6) | |
? function(t, e, n) { | |
return r.f(t, e, o(1, n)); | |
} | |
: function(t, e, n) { | |
return (t[e] = n), t; | |
}; | |
}, | |
function(t, e) { | |
t.exports = function(t) { | |
return "object" == typeof t ? null !== t : "function" == typeof t; | |
}; | |
}, | |
function(t, e, n) { | |
t.exports = !n(26)(function() { | |
return ( | |
7 != | |
Object.defineProperty({}, "a", { | |
get: function() { | |
return 7; | |
} | |
}).a | |
); | |
}); | |
}, | |
function(t, e, n) { | |
var r = n(1), | |
o = n(4), | |
i = n(12), | |
a = n(16)("src"), | |
s = n(46), | |
c = ("" + s).split("toString"); | |
(n(2).inspectSource = function(t) { | |
return s.call(t); | |
}), | |
(t.exports = function(t, e, n, s) { | |
var u = "function" == typeof n; | |
u && (i(n, "name") || o(n, "name", e)), | |
t[e] !== n && | |
(u && (i(n, a) || o(n, a, t[e] ? "" + t[e] : c.join(String(e)))), | |
t === r | |
? (t[e] = n) | |
: s | |
? t[e] | |
? (t[e] = n) | |
: o(t, e, n) | |
: (delete t[e], o(t, e, n))); | |
})(Function.prototype, "toString", function() { | |
return ("function" == typeof this && this[a]) || s.call(this); | |
}); | |
}, | |
function(t, e, n) { | |
var r = n(13); | |
t.exports = function(t, e, n) { | |
if ((r(t), void 0 === e)) return t; | |
switch (n) { | |
case 1: | |
return function(n) { | |
return t.call(e, n); | |
}; | |
case 2: | |
return function(n, r) { | |
return t.call(e, n, r); | |
}; | |
case 3: | |
return function(n, r, o) { | |
return t.call(e, n, r, o); | |
}; | |
} | |
return function() { | |
return t.apply(e, arguments); | |
}; | |
}; | |
}, | |
function(t, e) { | |
var n = {}.toString; | |
t.exports = function(t) { | |
return n.call(t).slice(8, -1); | |
}; | |
}, | |
function(t, e) { | |
t.exports = {}; | |
}, | |
function(t, e, n) { | |
var r = n(3), | |
o = n(44), | |
i = n(45), | |
a = Object.defineProperty; | |
e.f = n(6) | |
? Object.defineProperty | |
: function(t, e, n) { | |
if ((r(t), (e = i(e, !0)), r(n), o)) | |
try { | |
return a(t, e, n); | |
} catch (t) {} | |
if ("get" in n || "set" in n) | |
throw TypeError("Accessors not supported!"); | |
return "value" in n && (t[e] = n.value), t; | |
}; | |
}, | |
function(t, e) { | |
var n = {}.hasOwnProperty; | |
t.exports = function(t, e) { | |
return n.call(t, e); | |
}; | |
}, | |
function(t, e) { | |
t.exports = function(t) { | |
if ("function" != typeof t) throw TypeError(t + " is not a function!"); | |
return t; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(1), | |
o = n(2), | |
i = n(4), | |
a = n(7), | |
s = n(8), | |
c = function(t, e, n) { | |
var u, | |
l, | |
d, | |
f, | |
h = t & c.F, | |
p = t & c.G, | |
y = t & c.S, | |
v = t & c.P, | |
m = t & c.B, | |
_ = p ? r : y ? r[e] || (r[e] = {}) : (r[e] || {}).prototype, | |
g = p ? o : o[e] || (o[e] = {}), | |
b = g.prototype || (g.prototype = {}); | |
for (u in (p && (n = e), n)) | |
(d = ((l = !h && _ && void 0 !== _[u]) ? _ : n)[u]), | |
(f = | |
m && l | |
? s(d, r) | |
: v && "function" == typeof d | |
? s(Function.call, d) | |
: d), | |
_ && a(_, u, d, t & c.U), | |
g[u] != d && i(g, u, f), | |
v && b[u] != d && (b[u] = d); | |
}; | |
(r.core = o), | |
(c.F = 1), | |
(c.G = 2), | |
(c.S = 4), | |
(c.P = 8), | |
(c.B = 16), | |
(c.W = 32), | |
(c.U = 64), | |
(c.R = 128), | |
(t.exports = c); | |
}, | |
function(t, e, n) { | |
var r = n(5), | |
o = n(1).document, | |
i = r(o) && r(o.createElement); | |
t.exports = function(t) { | |
return i ? o.createElement(t) : {}; | |
}; | |
}, | |
function(t, e) { | |
var n = 0, | |
r = Math.random(); | |
t.exports = function(t) { | |
return "Symbol(".concat( | |
void 0 === t ? "" : t, | |
")_", | |
(++n + r).toString(36) | |
); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(2), | |
o = n(1), | |
i = o["__core-js_shared__"] || (o["__core-js_shared__"] = {}); | |
(t.exports = function(t, e) { | |
return i[t] || (i[t] = void 0 !== e ? e : {}); | |
})("versions", []).push({ | |
version: r.version, | |
mode: n(18) ? "pure" : "global", | |
copyright: "© 2019 Denis Pushkarev (zloirock.ru)" | |
}); | |
}, | |
function(t, e) { | |
t.exports = !1; | |
}, | |
function(t, e) { | |
t.exports = function(t) { | |
if (null == t) throw TypeError("Can't call method on " + t); | |
return t; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(21), | |
o = Math.min; | |
t.exports = function(t) { | |
return t > 0 ? o(r(t), 9007199254740991) : 0; | |
}; | |
}, | |
function(t, e) { | |
var n = Math.ceil, | |
r = Math.floor; | |
t.exports = function(t) { | |
return isNaN((t = +t)) ? 0 : (t > 0 ? r : n)(t); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(9), | |
o = n(0)("toStringTag"), | |
i = | |
"Arguments" == | |
r( | |
(function() { | |
return arguments; | |
})() | |
); | |
t.exports = function(t) { | |
var e, n, a; | |
return void 0 === t | |
? "Undefined" | |
: null === t | |
? "Null" | |
: "string" == | |
typeof (n = (function(t, e) { | |
try { | |
return t[e]; | |
} catch (t) {} | |
})((e = Object(t)), o)) | |
? n | |
: i | |
? r(e) | |
: "Object" == (a = r(e)) && "function" == typeof e.callee | |
? "Arguments" | |
: a; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(28), | |
o = n(19); | |
t.exports = function(t) { | |
return r(o(t)); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(17)("keys"), | |
o = n(16); | |
t.exports = function(t) { | |
return r[t] || (r[t] = o(t)); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(11).f, | |
o = n(12), | |
i = n(0)("toStringTag"); | |
t.exports = function(t, e, n) { | |
t && | |
!o((t = n ? t : t.prototype), i) && | |
r(t, i, { configurable: !0, value: e }); | |
}; | |
}, | |
function(t, e) { | |
t.exports = function(t) { | |
try { | |
return !!t(); | |
} catch (t) { | |
return !0; | |
} | |
}; | |
}, | |
function(t, e) { | |
t.exports = function(t, e) { | |
return { | |
enumerable: !(1 & t), | |
configurable: !(2 & t), | |
writable: !(4 & t), | |
value: e | |
}; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(9); | |
t.exports = Object("z").propertyIsEnumerable(0) | |
? Object | |
: function(t) { | |
return "String" == r(t) ? t.split("") : Object(t); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(19); | |
t.exports = function(t) { | |
return Object(r(t)); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(0)("unscopables"), | |
o = Array.prototype; | |
null == o[r] && n(4)(o, r, {}), | |
(t.exports = function(t) { | |
o[r][t] = !0; | |
}); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(18), | |
o = n(14), | |
i = n(7), | |
a = n(4), | |
s = n(10), | |
c = n(55), | |
u = n(25), | |
l = n(61), | |
d = n(0)("iterator"), | |
f = !([].keys && "next" in [].keys()), | |
h = function() { | |
return this; | |
}; | |
t.exports = function(t, e, n, p, y, v, m) { | |
c(n, e, p); | |
var _, | |
g, | |
b, | |
w = function(t) { | |
if (!f && t in C) return C[t]; | |
switch (t) { | |
case "keys": | |
case "values": | |
return function() { | |
return new n(this, t); | |
}; | |
} | |
return function() { | |
return new n(this, t); | |
}; | |
}, | |
E = e + " Iterator", | |
N = "values" == y, | |
S = !1, | |
C = t.prototype, | |
x = C[d] || C["@@iterator"] || (y && C[y]), | |
T = x || w(y), | |
O = y ? (N ? w("entries") : T) : void 0, | |
M = ("Array" == e && C.entries) || x; | |
if ( | |
(M && | |
(b = l(M.call(new t()))) !== Object.prototype && | |
b.next && | |
(u(b, E, !0), r || "function" == typeof b[d] || a(b, d, h)), | |
N && | |
x && | |
"values" !== x.name && | |
((S = !0), | |
(T = function() { | |
return x.call(this); | |
})), | |
(r && !m) || (!f && !S && C[d]) || a(C, d, T), | |
(s[e] = T), | |
(s[E] = h), | |
y) | |
) | |
if ( | |
((_ = { | |
values: N ? T : w("values"), | |
keys: v ? T : w("keys"), | |
entries: O | |
}), | |
m) | |
) | |
for (g in _) g in C || i(C, g, _[g]); | |
else o(o.P + o.F * (f || S), e, _); | |
return _; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(58), | |
o = n(33); | |
t.exports = | |
Object.keys || | |
function(t) { | |
return r(t, o); | |
}; | |
}, | |
function(t, e) { | |
t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split( | |
"," | |
); | |
}, | |
function(t, e, n) { | |
var r = n(1).document; | |
t.exports = r && r.documentElement; | |
}, | |
function(t, e, n) { | |
var r, | |
o, | |
i, | |
a = n(8), | |
s = n(72), | |
c = n(34), | |
u = n(15), | |
l = n(1), | |
d = l.process, | |
f = l.setImmediate, | |
h = l.clearImmediate, | |
p = l.MessageChannel, | |
y = l.Dispatch, | |
v = 0, | |
m = {}, | |
_ = function() { | |
var t = +this; | |
if (m.hasOwnProperty(t)) { | |
var e = m[t]; | |
delete m[t], e(); | |
} | |
}, | |
g = function(t) { | |
_.call(t.data); | |
}; | |
(f && h) || | |
((f = function(t) { | |
for (var e = [], n = 1; arguments.length > n; ) e.push(arguments[n++]); | |
return ( | |
(m[++v] = function() { | |
s("function" == typeof t ? t : Function(t), e); | |
}), | |
r(v), | |
v | |
); | |
}), | |
(h = function(t) { | |
delete m[t]; | |
}), | |
"process" == n(9)(d) | |
? (r = function(t) { | |
d.nextTick(a(_, t, 1)); | |
}) | |
: y && y.now | |
? (r = function(t) { | |
y.now(a(_, t, 1)); | |
}) | |
: p | |
? ((i = (o = new p()).port2), | |
(o.port1.onmessage = g), | |
(r = a(i.postMessage, i, 1))) | |
: l.addEventListener && | |
"function" == typeof postMessage && | |
!l.importScripts | |
? ((r = function(t) { | |
l.postMessage(t + "", "*"); | |
}), | |
l.addEventListener("message", g, !1)) | |
: (r = | |
"onreadystatechange" in u("script") | |
? function(t) { | |
c.appendChild(u("script")).onreadystatechange = function() { | |
c.removeChild(this), _.call(t); | |
}; | |
} | |
: function(t) { | |
setTimeout(a(_, t, 1), 0); | |
})), | |
(t.exports = { set: f, clear: h }); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(13); | |
function o(t) { | |
var e, n; | |
(this.promise = new t(function(t, r) { | |
if (void 0 !== e || void 0 !== n) | |
throw TypeError("Bad Promise constructor"); | |
(e = t), (n = r); | |
})), | |
(this.resolve = r(e)), | |
(this.reject = r(n)); | |
} | |
t.exports.f = function(t) { | |
return new o(t); | |
}; | |
}, | |
function(t, e) { | |
var n; | |
n = (function() { | |
return this; | |
})(); | |
try { | |
n = n || new Function("return this")(); | |
} catch (t) { | |
"object" == typeof window && (n = window); | |
} | |
t.exports = n; | |
}, | |
function(t, e, n) { | |
n(39), (t.exports = n(40)); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
n.r(e), | |
n.d(e, "Headers", function() { | |
return u; | |
}), | |
n.d(e, "Request", function() { | |
return v; | |
}), | |
n.d(e, "Response", function() { | |
return _; | |
}), | |
n.d(e, "DOMException", function() { | |
return b; | |
}), | |
n.d(e, "fetch", function() { | |
return w; | |
}); | |
var r = { | |
searchParams: "URLSearchParams" in self, | |
iterable: "Symbol" in self && "iterator" in Symbol, | |
blob: | |
"FileReader" in self && | |
"Blob" in self && | |
(function() { | |
try { | |
return new Blob(), !0; | |
} catch (t) { | |
return !1; | |
} | |
})(), | |
formData: "FormData" in self, | |
arrayBuffer: "ArrayBuffer" in self | |
}; | |
if (r.arrayBuffer) | |
var o = [ | |
"[object Int8Array]", | |
"[object Uint8Array]", | |
"[object Uint8ClampedArray]", | |
"[object Int16Array]", | |
"[object Uint16Array]", | |
"[object Int32Array]", | |
"[object Uint32Array]", | |
"[object Float32Array]", | |
"[object Float64Array]" | |
], | |
i = | |
ArrayBuffer.isView || | |
function(t) { | |
return t && o.indexOf(Object.prototype.toString.call(t)) > -1; | |
}; | |
function a(t) { | |
if ( | |
("string" != typeof t && (t = String(t)), | |
/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t)) | |
) | |
throw new TypeError("Invalid character in header field name"); | |
return t.toLowerCase(); | |
} | |
function s(t) { | |
return "string" != typeof t && (t = String(t)), t; | |
} | |
function c(t) { | |
var e = { | |
next: function() { | |
var e = t.shift(); | |
return { done: void 0 === e, value: e }; | |
} | |
}; | |
return ( | |
r.iterable && | |
(e[Symbol.iterator] = function() { | |
return e; | |
}), | |
e | |
); | |
} | |
function u(t) { | |
(this.map = {}), | |
t instanceof u | |
? t.forEach(function(t, e) { | |
this.append(e, t); | |
}, this) | |
: Array.isArray(t) | |
? t.forEach(function(t) { | |
this.append(t[0], t[1]); | |
}, this) | |
: t && | |
Object.getOwnPropertyNames(t).forEach(function(e) { | |
this.append(e, t[e]); | |
}, this); | |
} | |
function l(t) { | |
if (t.bodyUsed) return Promise.reject(new TypeError("Already read")); | |
t.bodyUsed = !0; | |
} | |
function d(t) { | |
return new Promise(function(e, n) { | |
(t.onload = function() { | |
e(t.result); | |
}), | |
(t.onerror = function() { | |
n(t.error); | |
}); | |
}); | |
} | |
function f(t) { | |
var e = new FileReader(), | |
n = d(e); | |
return e.readAsArrayBuffer(t), n; | |
} | |
function h(t) { | |
if (t.slice) return t.slice(0); | |
var e = new Uint8Array(t.byteLength); | |
return e.set(new Uint8Array(t)), e.buffer; | |
} | |
function p() { | |
return ( | |
(this.bodyUsed = !1), | |
(this._initBody = function(t) { | |
var e; | |
(this._bodyInit = t), | |
t | |
? "string" == typeof t | |
? (this._bodyText = t) | |
: r.blob && Blob.prototype.isPrototypeOf(t) | |
? (this._bodyBlob = t) | |
: r.formData && FormData.prototype.isPrototypeOf(t) | |
? (this._bodyFormData = t) | |
: r.searchParams && URLSearchParams.prototype.isPrototypeOf(t) | |
? (this._bodyText = t.toString()) | |
: r.arrayBuffer && | |
r.blob && | |
((e = t) && DataView.prototype.isPrototypeOf(e)) | |
? ((this._bodyArrayBuffer = h(t.buffer)), | |
(this._bodyInit = new Blob([this._bodyArrayBuffer]))) | |
: r.arrayBuffer && | |
(ArrayBuffer.prototype.isPrototypeOf(t) || i(t)) | |
? (this._bodyArrayBuffer = h(t)) | |
: (this._bodyText = t = Object.prototype.toString.call(t)) | |
: (this._bodyText = ""), | |
this.headers.get("content-type") || | |
("string" == typeof t | |
? this.headers.set("content-type", "text/plain;charset=UTF-8") | |
: this._bodyBlob && this._bodyBlob.type | |
? this.headers.set("content-type", this._bodyBlob.type) | |
: r.searchParams && | |
URLSearchParams.prototype.isPrototypeOf(t) && | |
this.headers.set( | |
"content-type", | |
"application/x-www-form-urlencoded;charset=UTF-8" | |
)); | |
}), | |
r.blob && | |
((this.blob = function() { | |
var t = l(this); | |
if (t) return t; | |
if (this._bodyBlob) return Promise.resolve(this._bodyBlob); | |
if (this._bodyArrayBuffer) | |
return Promise.resolve(new Blob([this._bodyArrayBuffer])); | |
if (this._bodyFormData) | |
throw new Error("could not read FormData body as blob"); | |
return Promise.resolve(new Blob([this._bodyText])); | |
}), | |
(this.arrayBuffer = function() { | |
return this._bodyArrayBuffer | |
? l(this) || Promise.resolve(this._bodyArrayBuffer) | |
: this.blob().then(f); | |
})), | |
(this.text = function() { | |
var t, | |
e, | |
n, | |
r = l(this); | |
if (r) return r; | |
if (this._bodyBlob) | |
return ( | |
(t = this._bodyBlob), | |
(e = new FileReader()), | |
(n = d(e)), | |
e.readAsText(t), | |
n | |
); | |
if (this._bodyArrayBuffer) | |
return Promise.resolve( | |
(function(t) { | |
for ( | |
var e = new Uint8Array(t), n = new Array(e.length), r = 0; | |
r < e.length; | |
r++ | |
) | |
n[r] = String.fromCharCode(e[r]); | |
return n.join(""); | |
})(this._bodyArrayBuffer) | |
); | |
if (this._bodyFormData) | |
throw new Error("could not read FormData body as text"); | |
return Promise.resolve(this._bodyText); | |
}), | |
r.formData && | |
(this.formData = function() { | |
return this.text().then(m); | |
}), | |
(this.json = function() { | |
return this.text().then(JSON.parse); | |
}), | |
this | |
); | |
} | |
(u.prototype.append = function(t, e) { | |
(t = a(t)), (e = s(e)); | |
var n = this.map[t]; | |
this.map[t] = n ? n + ", " + e : e; | |
}), | |
(u.prototype.delete = function(t) { | |
delete this.map[a(t)]; | |
}), | |
(u.prototype.get = function(t) { | |
return (t = a(t)), this.has(t) ? this.map[t] : null; | |
}), | |
(u.prototype.has = function(t) { | |
return this.map.hasOwnProperty(a(t)); | |
}), | |
(u.prototype.set = function(t, e) { | |
this.map[a(t)] = s(e); | |
}), | |
(u.prototype.forEach = function(t, e) { | |
for (var n in this.map) | |
this.map.hasOwnProperty(n) && t.call(e, this.map[n], n, this); | |
}), | |
(u.prototype.keys = function() { | |
var t = []; | |
return ( | |
this.forEach(function(e, n) { | |
t.push(n); | |
}), | |
c(t) | |
); | |
}), | |
(u.prototype.values = function() { | |
var t = []; | |
return ( | |
this.forEach(function(e) { | |
t.push(e); | |
}), | |
c(t) | |
); | |
}), | |
(u.prototype.entries = function() { | |
var t = []; | |
return ( | |
this.forEach(function(e, n) { | |
t.push([n, e]); | |
}), | |
c(t) | |
); | |
}), | |
r.iterable && (u.prototype[Symbol.iterator] = u.prototype.entries); | |
var y = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; | |
function v(t, e) { | |
var n, | |
r, | |
o = (e = e || {}).body; | |
if (t instanceof v) { | |
if (t.bodyUsed) throw new TypeError("Already read"); | |
(this.url = t.url), | |
(this.credentials = t.credentials), | |
e.headers || (this.headers = new u(t.headers)), | |
(this.method = t.method), | |
(this.mode = t.mode), | |
(this.signal = t.signal), | |
o || null == t._bodyInit || ((o = t._bodyInit), (t.bodyUsed = !0)); | |
} else this.url = String(t); | |
if ( | |
((this.credentials = | |
e.credentials || this.credentials || "same-origin"), | |
(!e.headers && this.headers) || (this.headers = new u(e.headers)), | |
(this.method = ((n = e.method || this.method || "GET"), | |
(r = n.toUpperCase()), | |
y.indexOf(r) > -1 ? r : n)), | |
(this.mode = e.mode || this.mode || null), | |
(this.signal = e.signal || this.signal), | |
(this.referrer = null), | |
("GET" === this.method || "HEAD" === this.method) && o) | |
) | |
throw new TypeError("Body not allowed for GET or HEAD requests"); | |
this._initBody(o); | |
} | |
function m(t) { | |
var e = new FormData(); | |
return ( | |
t | |
.trim() | |
.split("&") | |
.forEach(function(t) { | |
if (t) { | |
var n = t.split("="), | |
r = n.shift().replace(/\+/g, " "), | |
o = n.join("=").replace(/\+/g, " "); | |
e.append(decodeURIComponent(r), decodeURIComponent(o)); | |
} | |
}), | |
e | |
); | |
} | |
function _(t, e) { | |
e || (e = {}), | |
(this.type = "default"), | |
(this.status = void 0 === e.status ? 200 : e.status), | |
(this.ok = this.status >= 200 && this.status < 300), | |
(this.statusText = "statusText" in e ? e.statusText : "OK"), | |
(this.headers = new u(e.headers)), | |
(this.url = e.url || ""), | |
this._initBody(t); | |
} | |
(v.prototype.clone = function() { | |
return new v(this, { body: this._bodyInit }); | |
}), | |
p.call(v.prototype), | |
p.call(_.prototype), | |
(_.prototype.clone = function() { | |
return new _(this._bodyInit, { | |
status: this.status, | |
statusText: this.statusText, | |
headers: new u(this.headers), | |
url: this.url | |
}); | |
}), | |
(_.error = function() { | |
var t = new _(null, { status: 0, statusText: "" }); | |
return (t.type = "error"), t; | |
}); | |
var g = [301, 302, 303, 307, 308]; | |
_.redirect = function(t, e) { | |
if (-1 === g.indexOf(e)) throw new RangeError("Invalid status code"); | |
return new _(null, { status: e, headers: { location: t } }); | |
}; | |
var b = self.DOMException; | |
try { | |
new b(); | |
} catch (t) { | |
((b = function(t, e) { | |
(this.message = t), (this.name = e); | |
var n = Error(t); | |
this.stack = n.stack; | |
}).prototype = Object.create(Error.prototype)), | |
(b.prototype.constructor = b); | |
} | |
function w(t, e) { | |
return new Promise(function(n, o) { | |
var i = new v(t, e); | |
if (i.signal && i.signal.aborted) | |
return o(new b("Aborted", "AbortError")); | |
var a = new XMLHttpRequest(); | |
function s() { | |
a.abort(); | |
} | |
(a.onload = function() { | |
var t, | |
e, | |
r = { | |
status: a.status, | |
statusText: a.statusText, | |
headers: ((t = a.getAllResponseHeaders() || ""), | |
(e = new u()), | |
t | |
.replace(/\r?\n[\t ]+/g, " ") | |
.split(/\r?\n/) | |
.forEach(function(t) { | |
var n = t.split(":"), | |
r = n.shift().trim(); | |
if (r) { | |
var o = n.join(":").trim(); | |
e.append(r, o); | |
} | |
}), | |
e) | |
}; | |
r.url = | |
"responseURL" in a ? a.responseURL : r.headers.get("X-Request-URL"); | |
var o = "response" in a ? a.response : a.responseText; | |
n(new _(o, r)); | |
}), | |
(a.onerror = function() { | |
o(new TypeError("Network request failed")); | |
}), | |
(a.ontimeout = function() { | |
o(new TypeError("Network request failed")); | |
}), | |
(a.onabort = function() { | |
o(new b("Aborted", "AbortError")); | |
}), | |
a.open(i.method, i.url, !0), | |
"include" === i.credentials | |
? (a.withCredentials = !0) | |
: "omit" === i.credentials && (a.withCredentials = !1), | |
"responseType" in a && r.blob && (a.responseType = "blob"), | |
i.headers.forEach(function(t, e) { | |
a.setRequestHeader(e, t); | |
}), | |
i.signal && | |
(i.signal.addEventListener("abort", s), | |
(a.onreadystatechange = function() { | |
4 === a.readyState && i.signal.removeEventListener("abort", s); | |
})), | |
a.send(void 0 === i._bodyInit ? null : i._bodyInit); | |
}); | |
} | |
(w.polyfill = !0), | |
self.fetch || | |
((self.fetch = w), | |
(self.Headers = u), | |
(self.Request = v), | |
(self.Response = _)); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
Object.defineProperty(e, "__esModule", { value: !0 }), n(41), n(85); | |
}, | |
function(t, e, n) { | |
"ActiveXObject" in window && (n(42), n(51)), | |
n(80), | |
n(81), | |
document.createElement("div").attachShadow || (n(82), n(83)), | |
"object" != typeof customElements && n(84); | |
}, | |
function(t, e, n) { | |
n(43), (t.exports = n(2).Array.find); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(14), | |
o = n(47)(5), | |
i = !0; | |
"find" in [] && | |
Array(1).find(function() { | |
i = !1; | |
}), | |
r(r.P + r.F * i, "Array", { | |
find: function(t) { | |
return o(this, t, arguments.length > 1 ? arguments[1] : void 0); | |
} | |
}), | |
n(30)("find"); | |
}, | |
function(t, e, n) { | |
t.exports = | |
!n(6) && | |
!n(26)(function() { | |
return ( | |
7 != | |
Object.defineProperty(n(15)("div"), "a", { | |
get: function() { | |
return 7; | |
} | |
}).a | |
); | |
}); | |
}, | |
function(t, e, n) { | |
var r = n(5); | |
t.exports = function(t, e) { | |
if (!r(t)) return t; | |
var n, o; | |
if (e && "function" == typeof (n = t.toString) && !r((o = n.call(t)))) | |
return o; | |
if ("function" == typeof (n = t.valueOf) && !r((o = n.call(t)))) return o; | |
if (!e && "function" == typeof (n = t.toString) && !r((o = n.call(t)))) | |
return o; | |
throw TypeError("Can't convert object to primitive value"); | |
}; | |
}, | |
function(t, e, n) { | |
t.exports = n(17)("native-function-to-string", Function.toString); | |
}, | |
function(t, e, n) { | |
var r = n(8), | |
o = n(28), | |
i = n(29), | |
a = n(20), | |
s = n(48); | |
t.exports = function(t, e) { | |
var n = 1 == t, | |
c = 2 == t, | |
u = 3 == t, | |
l = 4 == t, | |
d = 6 == t, | |
f = 5 == t || d, | |
h = e || s; | |
return function(e, s, p) { | |
for ( | |
var y, | |
v, | |
m = i(e), | |
_ = o(m), | |
g = r(s, p, 3), | |
b = a(_.length), | |
w = 0, | |
E = n ? h(e, b) : c ? h(e, 0) : void 0; | |
b > w; | |
w++ | |
) | |
if ((f || w in _) && ((v = g((y = _[w]), w, m)), t)) | |
if (n) E[w] = v; | |
else if (v) | |
switch (t) { | |
case 3: | |
return !0; | |
case 5: | |
return y; | |
case 6: | |
return w; | |
case 2: | |
E.push(y); | |
} | |
else if (l) return !1; | |
return d ? -1 : u || l ? l : E; | |
}; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(49); | |
t.exports = function(t, e) { | |
return new (r(t))(e); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(5), | |
o = n(50), | |
i = n(0)("species"); | |
t.exports = function(t) { | |
var e; | |
return ( | |
o(t) && | |
("function" != typeof (e = t.constructor) || | |
(e !== Array && !o(e.prototype)) || | |
(e = void 0), | |
r(e) && null === (e = e[i]) && (e = void 0)), | |
void 0 === e ? Array : e | |
); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(9); | |
t.exports = | |
Array.isArray || | |
function(t) { | |
return "Array" == r(t); | |
}; | |
}, | |
function(t, e, n) { | |
n(52), n(53), n(62), n(65), (t.exports = n(2).Promise); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(22), | |
o = {}; | |
(o[n(0)("toStringTag")] = "z"), | |
o + "" != "[object z]" && | |
n(7)( | |
Object.prototype, | |
"toString", | |
function() { | |
return "[object " + r(this) + "]"; | |
}, | |
!0 | |
); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(54)(!0); | |
n(31)( | |
String, | |
"String", | |
function(t) { | |
(this._t = String(t)), (this._i = 0); | |
}, | |
function() { | |
var t, | |
e = this._t, | |
n = this._i; | |
return n >= e.length | |
? { value: void 0, done: !0 } | |
: ((t = r(e, n)), (this._i += t.length), { value: t, done: !1 }); | |
} | |
); | |
}, | |
function(t, e, n) { | |
var r = n(21), | |
o = n(19); | |
t.exports = function(t) { | |
return function(e, n) { | |
var i, | |
a, | |
s = String(o(e)), | |
c = r(n), | |
u = s.length; | |
return c < 0 || c >= u | |
? t | |
? "" | |
: void 0 | |
: (i = s.charCodeAt(c)) < 55296 || | |
i > 56319 || | |
c + 1 === u || | |
(a = s.charCodeAt(c + 1)) < 56320 || | |
a > 57343 | |
? t | |
? s.charAt(c) | |
: i | |
: t | |
? s.slice(c, c + 2) | |
: a - 56320 + ((i - 55296) << 10) + 65536; | |
}; | |
}; | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(56), | |
o = n(27), | |
i = n(25), | |
a = {}; | |
n(4)(a, n(0)("iterator"), function() { | |
return this; | |
}), | |
(t.exports = function(t, e, n) { | |
(t.prototype = r(a, { next: o(1, n) })), i(t, e + " Iterator"); | |
}); | |
}, | |
function(t, e, n) { | |
var r = n(3), | |
o = n(57), | |
i = n(33), | |
a = n(24)("IE_PROTO"), | |
s = function() {}, | |
c = function() { | |
var t, | |
e = n(15)("iframe"), | |
r = i.length; | |
for ( | |
e.style.display = "none", | |
n(34).appendChild(e), | |
e.src = "javascript:", | |
(t = e.contentWindow.document).open(), | |
t.write("<script>document.F=Object</script>"), | |
t.close(), | |
c = t.F; | |
r--; | |
) | |
delete c.prototype[i[r]]; | |
return c(); | |
}; | |
t.exports = | |
Object.create || | |
function(t, e) { | |
var n; | |
return ( | |
null !== t | |
? ((s.prototype = r(t)), | |
(n = new s()), | |
(s.prototype = null), | |
(n[a] = t)) | |
: (n = c()), | |
void 0 === e ? n : o(n, e) | |
); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(11), | |
o = n(3), | |
i = n(32); | |
t.exports = n(6) | |
? Object.defineProperties | |
: function(t, e) { | |
o(t); | |
for (var n, a = i(e), s = a.length, c = 0; s > c; ) | |
r.f(t, (n = a[c++]), e[n]); | |
return t; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(12), | |
o = n(23), | |
i = n(59)(!1), | |
a = n(24)("IE_PROTO"); | |
t.exports = function(t, e) { | |
var n, | |
s = o(t), | |
c = 0, | |
u = []; | |
for (n in s) n != a && r(s, n) && u.push(n); | |
for (; e.length > c; ) r(s, (n = e[c++])) && (~i(u, n) || u.push(n)); | |
return u; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(23), | |
o = n(20), | |
i = n(60); | |
t.exports = function(t) { | |
return function(e, n, a) { | |
var s, | |
c = r(e), | |
u = o(c.length), | |
l = i(a, u); | |
if (t && n != n) { | |
for (; u > l; ) if ((s = c[l++]) != s) return !0; | |
} else | |
for (; u > l; l++) | |
if ((t || l in c) && c[l] === n) return t || l || 0; | |
return !t && -1; | |
}; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(21), | |
o = Math.max, | |
i = Math.min; | |
t.exports = function(t, e) { | |
return (t = r(t)) < 0 ? o(t + e, 0) : i(t, e); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(12), | |
o = n(29), | |
i = n(24)("IE_PROTO"), | |
a = Object.prototype; | |
t.exports = | |
Object.getPrototypeOf || | |
function(t) { | |
return ( | |
(t = o(t)), | |
r(t, i) | |
? t[i] | |
: "function" == typeof t.constructor && t instanceof t.constructor | |
? t.constructor.prototype | |
: t instanceof Object | |
? a | |
: null | |
); | |
}; | |
}, | |
function(t, e, n) { | |
for ( | |
var r = n(63), | |
o = n(32), | |
i = n(7), | |
a = n(1), | |
s = n(4), | |
c = n(10), | |
u = n(0), | |
l = u("iterator"), | |
d = u("toStringTag"), | |
f = c.Array, | |
h = { | |
CSSRuleList: !0, | |
CSSStyleDeclaration: !1, | |
CSSValueList: !1, | |
ClientRectList: !1, | |
DOMRectList: !1, | |
DOMStringList: !1, | |
DOMTokenList: !0, | |
DataTransferItemList: !1, | |
FileList: !1, | |
HTMLAllCollection: !1, | |
HTMLCollection: !1, | |
HTMLFormElement: !1, | |
HTMLSelectElement: !1, | |
MediaList: !0, | |
MimeTypeArray: !1, | |
NamedNodeMap: !1, | |
NodeList: !0, | |
PaintRequestList: !1, | |
Plugin: !1, | |
PluginArray: !1, | |
SVGLengthList: !1, | |
SVGNumberList: !1, | |
SVGPathSegList: !1, | |
SVGPointList: !1, | |
SVGStringList: !1, | |
SVGTransformList: !1, | |
SourceBufferList: !1, | |
StyleSheetList: !0, | |
TextTrackCueList: !1, | |
TextTrackList: !1, | |
TouchList: !1 | |
}, | |
p = o(h), | |
y = 0; | |
y < p.length; | |
y++ | |
) { | |
var v, | |
m = p[y], | |
_ = h[m], | |
g = a[m], | |
b = g && g.prototype; | |
if (b && (b[l] || s(b, l, f), b[d] || s(b, d, m), (c[m] = f), _)) | |
for (v in r) b[v] || i(b, v, r[v], !0); | |
} | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(30), | |
o = n(64), | |
i = n(10), | |
a = n(23); | |
(t.exports = n(31)( | |
Array, | |
"Array", | |
function(t, e) { | |
(this._t = a(t)), (this._i = 0), (this._k = e); | |
}, | |
function() { | |
var t = this._t, | |
e = this._k, | |
n = this._i++; | |
return !t || n >= t.length | |
? ((this._t = void 0), o(1)) | |
: o(0, "keys" == e ? n : "values" == e ? t[n] : [n, t[n]]); | |
}, | |
"values" | |
)), | |
(i.Arguments = i.Array), | |
r("keys"), | |
r("values"), | |
r("entries"); | |
}, | |
function(t, e) { | |
t.exports = function(t, e) { | |
return { value: e, done: !!t }; | |
}; | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r, | |
o, | |
i, | |
a, | |
s = n(18), | |
c = n(1), | |
u = n(8), | |
l = n(22), | |
d = n(14), | |
f = n(5), | |
h = n(13), | |
p = n(66), | |
y = n(67), | |
v = n(71), | |
m = n(35).set, | |
_ = n(73)(), | |
g = n(36), | |
b = n(74), | |
w = n(75), | |
E = n(76), | |
N = c.TypeError, | |
S = c.process, | |
C = S && S.versions, | |
x = (C && C.v8) || "", | |
T = c.Promise, | |
O = "process" == l(S), | |
M = function() {}, | |
D = (o = g.f), | |
A = !!(function() { | |
try { | |
var t = T.resolve(1), | |
e = ((t.constructor = {})[n(0)("species")] = function(t) { | |
t(M, M); | |
}); | |
return ( | |
(O || "function" == typeof PromiseRejectionEvent) && | |
t.then(M) instanceof e && | |
0 !== x.indexOf("6.6") && | |
-1 === w.indexOf("Chrome/66") | |
); | |
} catch (t) {} | |
})(), | |
j = function(t) { | |
var e; | |
return !(!f(t) || "function" != typeof (e = t.then)) && e; | |
}, | |
L = function(t, e) { | |
if (!t._n) { | |
t._n = !0; | |
var n = t._c; | |
_(function() { | |
for ( | |
var r = t._v, | |
o = 1 == t._s, | |
i = 0, | |
a = function(e) { | |
var n, | |
i, | |
a, | |
s = o ? e.ok : e.fail, | |
c = e.resolve, | |
u = e.reject, | |
l = e.domain; | |
try { | |
s | |
? (o || (2 == t._h && R(t), (t._h = 1)), | |
!0 === s | |
? (n = r) | |
: (l && l.enter(), | |
(n = s(r)), | |
l && (l.exit(), (a = !0))), | |
n === e.promise | |
? u(N("Promise-chain cycle")) | |
: (i = j(n)) | |
? i.call(n, c, u) | |
: c(n)) | |
: u(r); | |
} catch (t) { | |
l && !a && l.exit(), u(t); | |
} | |
}; | |
n.length > i; | |
) | |
a(n[i++]); | |
(t._c = []), (t._n = !1), e && !t._h && P(t); | |
}); | |
} | |
}, | |
P = function(t) { | |
m.call(c, function() { | |
var e, | |
n, | |
r, | |
o = t._v, | |
i = k(t); | |
if ( | |
(i && | |
((e = b(function() { | |
O | |
? S.emit("unhandledRejection", o, t) | |
: (n = c.onunhandledrejection) | |
? n({ promise: t, reason: o }) | |
: (r = c.console) && | |
r.error && | |
r.error("Unhandled promise rejection", o); | |
})), | |
(t._h = O || k(t) ? 2 : 1)), | |
(t._a = void 0), | |
i && e.e) | |
) | |
throw e.v; | |
}); | |
}, | |
k = function(t) { | |
return 1 !== t._h && 0 === (t._a || t._c).length; | |
}, | |
R = function(t) { | |
m.call(c, function() { | |
var e; | |
O | |
? S.emit("rejectionHandled", t) | |
: (e = c.onrejectionhandled) && e({ promise: t, reason: t._v }); | |
}); | |
}, | |
F = function(t) { | |
var e = this; | |
e._d || | |
((e._d = !0), | |
((e = e._w || e)._v = t), | |
(e._s = 2), | |
e._a || (e._a = e._c.slice()), | |
L(e, !0)); | |
}, | |
H = function(t) { | |
var e, | |
n = this; | |
if (!n._d) { | |
(n._d = !0), (n = n._w || n); | |
try { | |
if (n === t) throw N("Promise can't be resolved itself"); | |
(e = j(t)) | |
? _(function() { | |
var r = { _w: n, _d: !1 }; | |
try { | |
e.call(t, u(H, r, 1), u(F, r, 1)); | |
} catch (t) { | |
F.call(r, t); | |
} | |
}) | |
: ((n._v = t), (n._s = 1), L(n, !1)); | |
} catch (t) { | |
F.call({ _w: n, _d: !1 }, t); | |
} | |
} | |
}; | |
A || | |
((T = function(t) { | |
p(this, T, "Promise", "_h"), h(t), r.call(this); | |
try { | |
t(u(H, this, 1), u(F, this, 1)); | |
} catch (t) { | |
F.call(this, t); | |
} | |
}), | |
((r = function(t) { | |
(this._c = []), | |
(this._a = void 0), | |
(this._s = 0), | |
(this._d = !1), | |
(this._v = void 0), | |
(this._h = 0), | |
(this._n = !1); | |
}).prototype = n(77)(T.prototype, { | |
then: function(t, e) { | |
var n = D(v(this, T)); | |
return ( | |
(n.ok = "function" != typeof t || t), | |
(n.fail = "function" == typeof e && e), | |
(n.domain = O ? S.domain : void 0), | |
this._c.push(n), | |
this._a && this._a.push(n), | |
this._s && L(this, !1), | |
n.promise | |
); | |
}, | |
catch: function(t) { | |
return this.then(void 0, t); | |
} | |
})), | |
(i = function() { | |
var t = new r(); | |
(this.promise = t), | |
(this.resolve = u(H, t, 1)), | |
(this.reject = u(F, t, 1)); | |
}), | |
(g.f = D = function(t) { | |
return t === T || t === a ? new i(t) : o(t); | |
})), | |
d(d.G + d.W + d.F * !A, { Promise: T }), | |
n(25)(T, "Promise"), | |
n(78)("Promise"), | |
(a = n(2).Promise), | |
d(d.S + d.F * !A, "Promise", { | |
reject: function(t) { | |
var e = D(this); | |
return (0, e.reject)(t), e.promise; | |
} | |
}), | |
d(d.S + d.F * (s || !A), "Promise", { | |
resolve: function(t) { | |
return E(s && this === a ? T : this, t); | |
} | |
}), | |
d( | |
d.S + | |
d.F * | |
!( | |
A && | |
n(79)(function(t) { | |
T.all(t).catch(M); | |
}) | |
), | |
"Promise", | |
{ | |
all: function(t) { | |
var e = this, | |
n = D(e), | |
r = n.resolve, | |
o = n.reject, | |
i = b(function() { | |
var n = [], | |
i = 0, | |
a = 1; | |
y(t, !1, function(t) { | |
var s = i++, | |
c = !1; | |
n.push(void 0), | |
a++, | |
e.resolve(t).then(function(t) { | |
c || ((c = !0), (n[s] = t), --a || r(n)); | |
}, o); | |
}), | |
--a || r(n); | |
}); | |
return i.e && o(i.v), n.promise; | |
}, | |
race: function(t) { | |
var e = this, | |
n = D(e), | |
r = n.reject, | |
o = b(function() { | |
y(t, !1, function(t) { | |
e.resolve(t).then(n.resolve, r); | |
}); | |
}); | |
return o.e && r(o.v), n.promise; | |
} | |
} | |
); | |
}, | |
function(t, e) { | |
t.exports = function(t, e, n, r) { | |
if (!(t instanceof e) || (void 0 !== r && r in t)) | |
throw TypeError(n + ": incorrect invocation!"); | |
return t; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(8), | |
o = n(68), | |
i = n(69), | |
a = n(3), | |
s = n(20), | |
c = n(70), | |
u = {}, | |
l = {}; | |
((e = t.exports = function(t, e, n, d, f) { | |
var h, | |
p, | |
y, | |
v, | |
m = f | |
? function() { | |
return t; | |
} | |
: c(t), | |
_ = r(n, d, e ? 2 : 1), | |
g = 0; | |
if ("function" != typeof m) throw TypeError(t + " is not iterable!"); | |
if (i(m)) { | |
for (h = s(t.length); h > g; g++) | |
if ((v = e ? _(a((p = t[g]))[0], p[1]) : _(t[g])) === u || v === l) | |
return v; | |
} else | |
for (y = m.call(t); !(p = y.next()).done; ) | |
if ((v = o(y, _, p.value, e)) === u || v === l) return v; | |
}).BREAK = u), | |
(e.RETURN = l); | |
}, | |
function(t, e, n) { | |
var r = n(3); | |
t.exports = function(t, e, n, o) { | |
try { | |
return o ? e(r(n)[0], n[1]) : e(n); | |
} catch (e) { | |
var i = t.return; | |
throw (void 0 !== i && r(i.call(t)), e); | |
} | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(10), | |
o = n(0)("iterator"), | |
i = Array.prototype; | |
t.exports = function(t) { | |
return void 0 !== t && (r.Array === t || i[o] === t); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(22), | |
o = n(0)("iterator"), | |
i = n(10); | |
t.exports = n(2).getIteratorMethod = function(t) { | |
if (null != t) return t[o] || t["@@iterator"] || i[r(t)]; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(3), | |
o = n(13), | |
i = n(0)("species"); | |
t.exports = function(t, e) { | |
var n, | |
a = r(t).constructor; | |
return void 0 === a || null == (n = r(a)[i]) ? e : o(n); | |
}; | |
}, | |
function(t, e) { | |
t.exports = function(t, e, n) { | |
var r = void 0 === n; | |
switch (e.length) { | |
case 0: | |
return r ? t() : t.call(n); | |
case 1: | |
return r ? t(e[0]) : t.call(n, e[0]); | |
case 2: | |
return r ? t(e[0], e[1]) : t.call(n, e[0], e[1]); | |
case 3: | |
return r ? t(e[0], e[1], e[2]) : t.call(n, e[0], e[1], e[2]); | |
case 4: | |
return r | |
? t(e[0], e[1], e[2], e[3]) | |
: t.call(n, e[0], e[1], e[2], e[3]); | |
} | |
return t.apply(n, e); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(1), | |
o = n(35).set, | |
i = r.MutationObserver || r.WebKitMutationObserver, | |
a = r.process, | |
s = r.Promise, | |
c = "process" == n(9)(a); | |
t.exports = function() { | |
var t, | |
e, | |
n, | |
u = function() { | |
var r, o; | |
for (c && (r = a.domain) && r.exit(); t; ) { | |
(o = t.fn), (t = t.next); | |
try { | |
o(); | |
} catch (r) { | |
throw (t ? n() : (e = void 0), r); | |
} | |
} | |
(e = void 0), r && r.enter(); | |
}; | |
if (c) | |
n = function() { | |
a.nextTick(u); | |
}; | |
else if (!i || (r.navigator && r.navigator.standalone)) | |
if (s && s.resolve) { | |
var l = s.resolve(void 0); | |
n = function() { | |
l.then(u); | |
}; | |
} else | |
n = function() { | |
o.call(r, u); | |
}; | |
else { | |
var d = !0, | |
f = document.createTextNode(""); | |
new i(u).observe(f, { characterData: !0 }), | |
(n = function() { | |
f.data = d = !d; | |
}); | |
} | |
return function(r) { | |
var o = { fn: r, next: void 0 }; | |
e && (e.next = o), t || ((t = o), n()), (e = o); | |
}; | |
}; | |
}, | |
function(t, e) { | |
t.exports = function(t) { | |
try { | |
return { e: !1, v: t() }; | |
} catch (t) { | |
return { e: !0, v: t }; | |
} | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(1).navigator; | |
t.exports = (r && r.userAgent) || ""; | |
}, | |
function(t, e, n) { | |
var r = n(3), | |
o = n(5), | |
i = n(36); | |
t.exports = function(t, e) { | |
if ((r(t), o(e) && e.constructor === t)) return e; | |
var n = i.f(t); | |
return (0, n.resolve)(e), n.promise; | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(7); | |
t.exports = function(t, e, n) { | |
for (var o in e) r(t, o, e[o], n); | |
return t; | |
}; | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = n(1), | |
o = n(11), | |
i = n(6), | |
a = n(0)("species"); | |
t.exports = function(t) { | |
var e = r[t]; | |
i && | |
e && | |
!e[a] && | |
o.f(e, a, { | |
configurable: !0, | |
get: function() { | |
return this; | |
} | |
}); | |
}; | |
}, | |
function(t, e, n) { | |
var r = n(0)("iterator"), | |
o = !1; | |
try { | |
var i = [7][r](); | |
(i.return = function() { | |
o = !0; | |
}), | |
Array.from(i, function() { | |
throw 2; | |
}); | |
} catch (t) {} | |
t.exports = function(t, e) { | |
if (!e && !o) return !1; | |
var n = !1; | |
try { | |
var i = [7], | |
a = i[r](); | |
(a.next = function() { | |
return { done: (n = !0) }; | |
}), | |
(i[r] = function() { | |
return a; | |
}), | |
t(i); | |
} catch (t) {} | |
return n; | |
}; | |
}, | |
function(t, e) { | |
/** | |
* @license | |
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved. | |
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | |
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | |
* Code distributed by Google as part of the polymer project is also | |
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | |
*/ | |
!(function() { | |
"use strict"; | |
var t; | |
if ( | |
!((t = document.createEvent("Event")).initEvent("foo", !0, !0), | |
t.preventDefault(), | |
t.defaultPrevented) | |
) { | |
var e = Event.prototype.preventDefault; | |
Event.prototype.preventDefault = function() { | |
this.cancelable && | |
(e.call(this), | |
Object.defineProperty(this, "defaultPrevented", { | |
get: function() { | |
return !0; | |
}, | |
configurable: !0 | |
})); | |
}; | |
} | |
var n = /Trident/.test(navigator.userAgent); | |
if (!window.Event || (n && "function" != typeof window.Event)) { | |
var r = window.Event; | |
if ( | |
((window.Event = function(t, e) { | |
e = e || {}; | |
var n = document.createEvent("Event"); | |
return n.initEvent(t, Boolean(e.bubbles), Boolean(e.cancelable)), n; | |
}), | |
r) | |
) { | |
for (var o in r) window.Event[o] = r[o]; | |
window.Event.prototype = r.prototype; | |
} | |
} | |
if ( | |
((!window.CustomEvent || | |
(n && "function" != typeof window.CustomEvent)) && | |
((window.CustomEvent = function(t, e) { | |
e = e || {}; | |
var n = document.createEvent("CustomEvent"); | |
return ( | |
n.initCustomEvent( | |
t, | |
Boolean(e.bubbles), | |
Boolean(e.cancelable), | |
e.detail | |
), | |
n | |
); | |
}), | |
(window.CustomEvent.prototype = window.Event.prototype)), | |
!window.MouseEvent || (n && "function" != typeof window.MouseEvent)) | |
) { | |
var i = window.MouseEvent; | |
if ( | |
((window.MouseEvent = function(t, e) { | |
e = e || {}; | |
var n = document.createEvent("MouseEvent"); | |
return ( | |
n.initMouseEvent( | |
t, | |
Boolean(e.bubbles), | |
Boolean(e.cancelable), | |
e.view || window, | |
e.detail, | |
e.screenX, | |
e.screenY, | |
e.clientX, | |
e.clientY, | |
e.ctrlKey, | |
e.altKey, | |
e.shiftKey, | |
e.metaKey, | |
e.button, | |
e.relatedTarget | |
), | |
n | |
); | |
}), | |
i) | |
) | |
for (var o in i) window.MouseEvent[o] = i[o]; | |
window.MouseEvent.prototype = i.prototype; | |
} | |
if ( | |
(Array.from || | |
(Array.from = function(t) { | |
return [].slice.call(t); | |
}), | |
!Object.assign) | |
) { | |
var a = function(t, e) { | |
for ( | |
var n, r = Object.getOwnPropertyNames(e), o = 0; | |
o < r.length; | |
o++ | |
) | |
t[(n = r[o])] = e[n]; | |
}; | |
Object.assign = function(t, e) { | |
for (var n, r = [].slice.call(arguments, 1), o = 0; o < r.length; o++) | |
(n = r[o]) && a(t, n); | |
return t; | |
}; | |
} | |
})(); | |
}, | |
function(t, e) { | |
/** | |
* @license | |
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved. | |
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | |
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | |
* Code distributed by Google as part of the polymer project is also | |
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | |
*/ | |
!(function() { | |
"use strict"; | |
var t = "undefined" == typeof HTMLTemplateElement, | |
e = !( | |
document.createDocumentFragment().cloneNode() instanceof | |
DocumentFragment | |
), | |
n = !1; | |
/Trident/.test(navigator.userAgent) && | |
(function() { | |
n = !0; | |
var t = Node.prototype.cloneNode; | |
(Node.prototype.cloneNode = function(e) { | |
var n = t.call(this, e); | |
return ( | |
this instanceof DocumentFragment && | |
(n.__proto__ = DocumentFragment.prototype), | |
n | |
); | |
}), | |
(DocumentFragment.prototype.querySelectorAll = | |
HTMLElement.prototype.querySelectorAll), | |
(DocumentFragment.prototype.querySelector = | |
HTMLElement.prototype.querySelector), | |
Object.defineProperties(DocumentFragment.prototype, { | |
nodeType: { | |
get: function() { | |
return Node.DOCUMENT_FRAGMENT_NODE; | |
}, | |
configurable: !0 | |
}, | |
localName: { get: function() {}, configurable: !0 }, | |
nodeName: { | |
get: function() { | |
return "#document-fragment"; | |
}, | |
configurable: !0 | |
} | |
}); | |
var e = Node.prototype.insertBefore; | |
function r(t, n) { | |
if (t instanceof DocumentFragment) | |
for (var r; (r = t.firstChild); ) e.call(this, r, n); | |
else e.call(this, t, n); | |
return t; | |
} | |
Node.prototype.insertBefore = r; | |
var o = Node.prototype.appendChild; | |
Node.prototype.appendChild = function(t) { | |
return ( | |
t instanceof DocumentFragment | |
? r.call(this, t, null) | |
: o.call(this, t), | |
t | |
); | |
}; | |
var i = Node.prototype.removeChild, | |
a = Node.prototype.replaceChild; | |
(Node.prototype.replaceChild = function(t, e) { | |
return ( | |
t instanceof DocumentFragment | |
? (r.call(this, t, e), i.call(this, e)) | |
: a.call(this, t, e), | |
e | |
); | |
}), | |
(Document.prototype.createDocumentFragment = function() { | |
var t = this.createElement("df"); | |
return (t.__proto__ = DocumentFragment.prototype), t; | |
}); | |
var s = Document.prototype.importNode; | |
Document.prototype.importNode = function(t, e) { | |
e = e || !1; | |
var n = s.call(this, t, e); | |
return ( | |
t instanceof DocumentFragment && | |
(n.__proto__ = DocumentFragment.prototype), | |
n | |
); | |
}; | |
})(); | |
var r = Node.prototype.cloneNode, | |
o = Document.prototype.createElement, | |
i = Document.prototype.importNode, | |
a = Node.prototype.removeChild, | |
s = Node.prototype.appendChild, | |
c = Node.prototype.replaceChild, | |
u = DOMParser.prototype.parseFromString, | |
l = Object.getOwnPropertyDescriptor( | |
window.HTMLElement.prototype, | |
"innerHTML" | |
) || { | |
get: function() { | |
return this.innerHTML; | |
}, | |
set: function(t) { | |
this.innerHTML = t; | |
} | |
}, | |
d = Object.getOwnPropertyDescriptor( | |
window.Node.prototype, | |
"childNodes" | |
) || { | |
get: function() { | |
return this.childNodes; | |
} | |
}, | |
f = Element.prototype.querySelectorAll, | |
h = Document.prototype.querySelectorAll, | |
p = DocumentFragment.prototype.querySelectorAll; | |
function y(t, e) { | |
if (!t.childNodes.length) return []; | |
switch (t.nodeType) { | |
case Node.DOCUMENT_NODE: | |
return h.call(t, e); | |
case Node.DOCUMENT_FRAGMENT_NODE: | |
return p.call(t, e); | |
default: | |
return f.call(t, e); | |
} | |
} | |
var v = (function() { | |
if (!t) { | |
var n = document.createElement("template"), | |
r = document.createElement("template"); | |
r.content.appendChild(document.createElement("div")), | |
n.content.appendChild(r); | |
var o = n.cloneNode(!0); | |
return ( | |
0 === o.content.childNodes.length || | |
0 === o.content.firstChild.content.childNodes.length || | |
e | |
); | |
} | |
})(), | |
m = function() {}; | |
if (t) { | |
var _ = document.implementation.createHTMLDocument("template"), | |
g = !0, | |
b = document.createElement("style"); | |
b.textContent = "template{display:none;}"; | |
var w = document.head; | |
w.insertBefore(b, w.firstElementChild), | |
(m.prototype = Object.create(HTMLElement.prototype)); | |
var E = !document.createElement("div").hasOwnProperty("innerHTML"); | |
m.decorate = function(t) { | |
if ( | |
!t.content && | |
t.namespaceURI === document.documentElement.namespaceURI | |
) { | |
var e; | |
for (t.content = _.createDocumentFragment(); (e = t.firstChild); ) | |
s.call(t.content, e); | |
if (E) t.__proto__ = m.prototype; | |
else if ( | |
((t.cloneNode = function(t) { | |
return m._cloneNode(this, t); | |
}), | |
g) | |
) | |
try { | |
S(t), C(t); | |
} catch (t) { | |
g = !1; | |
} | |
m.bootstrap(t.content); | |
} | |
}; | |
var N = { | |
option: ["select"], | |
thead: ["table"], | |
col: ["colgroup", "table"], | |
tr: ["tbody", "table"], | |
th: ["tr", "tbody", "table"], | |
td: ["tr", "tbody", "table"] | |
}, | |
S = function(t) { | |
Object.defineProperty(t, "innerHTML", { | |
get: function() { | |
return P(this); | |
}, | |
set: function(t) { | |
var e = | |
N[ | |
(function(t) { | |
return (/<([a-z][^\/\0>\x20\t\r\n\f]+)/i.exec(t) || [ | |
"", | |
"" | |
])[1].toLowerCase(); | |
})(t) | |
]; | |
if (e) | |
for (var n = 0; n < e.length; n++) | |
t = "<" + e[n] + ">" + t + "</" + e[n] + ">"; | |
for ( | |
_.body.innerHTML = t, m.bootstrap(_); | |
this.content.firstChild; | |
) | |
a.call(this.content, this.content.firstChild); | |
var r = _.body; | |
if (e) for (var o = 0; o < e.length; o++) r = r.lastChild; | |
for (; r.firstChild; ) s.call(this.content, r.firstChild); | |
}, | |
configurable: !0 | |
}); | |
}, | |
C = function(t) { | |
Object.defineProperty(t, "outerHTML", { | |
get: function() { | |
return "<template>" + this.innerHTML + "</template>"; | |
}, | |
set: function(t) { | |
if (!this.parentNode) | |
throw new Error( | |
"Failed to set the 'outerHTML' property on 'Element': This element has no parent node." | |
); | |
_.body.innerHTML = t; | |
for ( | |
var e = this.ownerDocument.createDocumentFragment(); | |
_.body.firstChild; | |
) | |
s.call(e, _.body.firstChild); | |
c.call(this.parentNode, e, this); | |
}, | |
configurable: !0 | |
}); | |
}; | |
S(m.prototype), | |
C(m.prototype), | |
(m.bootstrap = function(t) { | |
for ( | |
var e, n = y(t, "template"), r = 0, o = n.length; | |
r < o && (e = n[r]); | |
r++ | |
) | |
m.decorate(e); | |
}), | |
document.addEventListener("DOMContentLoaded", function() { | |
m.bootstrap(document); | |
}), | |
(Document.prototype.createElement = function() { | |
var t = o.apply(this, arguments); | |
return "template" === t.localName && m.decorate(t), t; | |
}), | |
(DOMParser.prototype.parseFromString = function() { | |
var t = u.apply(this, arguments); | |
return m.bootstrap(t), t; | |
}), | |
Object.defineProperty(HTMLElement.prototype, "innerHTML", { | |
get: function() { | |
return P(this); | |
}, | |
set: function(t) { | |
l.set.call(this, t), m.bootstrap(this); | |
}, | |
configurable: !0, | |
enumerable: !0 | |
}); | |
var x = /[&\u00A0"]/g, | |
T = /[&\u00A0<>]/g, | |
O = function(t) { | |
switch (t) { | |
case "&": | |
return "&"; | |
case "<": | |
return "<"; | |
case ">": | |
return ">"; | |
case '"': | |
return """; | |
case " ": | |
return " "; | |
} | |
}, | |
M = function(t) { | |
return t.replace(x, O); | |
}, | |
D = function(t) { | |
for (var e = {}, n = 0; n < t.length; n++) e[t[n]] = !0; | |
return e; | |
}, | |
A = D([ | |
"area", | |
"base", | |
"br", | |
"col", | |
"command", | |
"embed", | |
"hr", | |
"img", | |
"input", | |
"keygen", | |
"link", | |
"meta", | |
"param", | |
"source", | |
"track", | |
"wbr" | |
]), | |
j = D([ | |
"style", | |
"script", | |
"xmp", | |
"iframe", | |
"noembed", | |
"noframes", | |
"plaintext", | |
"noscript" | |
]), | |
L = function(t, e, n) { | |
switch (t.nodeType) { | |
case Node.ELEMENT_NODE: | |
for ( | |
var r, o = t.localName, i = "<" + o, a = t.attributes, s = 0; | |
(r = a[s]); | |
s++ | |
) | |
i += " " + r.name + '="' + M(r.value) + '"'; | |
return (i += ">"), A[o] ? i : i + P(t, n) + "</" + o + ">"; | |
case Node.TEXT_NODE: | |
var c = t.data; | |
return e && j[e.localName] | |
? c | |
: (function(t) { | |
return t.replace(T, O); | |
})(c); | |
case Node.COMMENT_NODE: | |
return "\x3c!--" + t.data + "--\x3e"; | |
default: | |
throw (window.console.error(t), new Error("not implemented")); | |
} | |
}, | |
P = function(t, e) { | |
"template" === t.localName && (t = t.content); | |
for ( | |
var n, r = "", o = e ? e(t) : d.get.call(t), i = 0, a = o.length; | |
i < a && (n = o[i]); | |
i++ | |
) | |
r += L(n, t, e); | |
return r; | |
}; | |
} | |
if (t || v) { | |
m._cloneNode = function(t, e) { | |
var n = r.call(t, !1); | |
return ( | |
this.decorate && this.decorate(n), | |
e && | |
(s.call(n.content, r.call(t.content, !0)), | |
k(n.content, t.content)), | |
n | |
); | |
}; | |
var k = function(t, e) { | |
if (e.querySelectorAll) { | |
var n = y(e, "template"); | |
if (0 !== n.length) | |
for ( | |
var r, o, i = y(t, "template"), a = 0, s = i.length; | |
a < s; | |
a++ | |
) | |
(o = n[a]), | |
(r = i[a]), | |
m && m.decorate && m.decorate(o), | |
c.call(r.parentNode, R.call(o, !0), r); | |
} | |
}, | |
R = (Node.prototype.cloneNode = function(t) { | |
var o; | |
if (!n && e && this instanceof DocumentFragment) { | |
if (!t) return this.ownerDocument.createDocumentFragment(); | |
o = F.call(this.ownerDocument, this, !0); | |
} else | |
o = | |
this.nodeType === Node.ELEMENT_NODE && | |
"template" === this.localName && | |
this.namespaceURI == document.documentElement.namespaceURI | |
? m._cloneNode(this, t) | |
: r.call(this, t); | |
return t && k(o, this), o; | |
}), | |
F = (Document.prototype.importNode = function(t, e) { | |
if (((e = e || !1), "template" === t.localName)) | |
return m._cloneNode(t, e); | |
var n = i.call(this, t, e); | |
return ( | |
e && | |
(k(n, t), | |
(function(t) { | |
for ( | |
var e, | |
n, | |
r = y( | |
t, | |
'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]' | |
), | |
i = 0; | |
i < r.length; | |
i++ | |
) { | |
(n = r[i]), | |
((e = o.call(document, "script")).textContent = | |
n.textContent); | |
for (var a, s = n.attributes, u = 0; u < s.length; u++) | |
(a = s[u]), e.setAttribute(a.name, a.value); | |
c.call(n.parentNode, e, n); | |
} | |
})(n)), | |
n | |
); | |
}); | |
} | |
t && (window.HTMLTemplateElement = m); | |
})(); | |
}, | |
function(t, e, n) { | |
(function(t) { | |
(function() { | |
"use strict"; | |
var e, | |
n = | |
"undefined" != typeof window && window === this | |
? this | |
: void 0 !== t && null != t | |
? t | |
: this, | |
r = | |
"function" == typeof Object.defineProperties | |
? Object.defineProperty | |
: function(t, e, n) { | |
t != Array.prototype && | |
t != Object.prototype && | |
(t[e] = n.value); | |
}; | |
function o() { | |
(o = function() {}), n.Symbol || (n.Symbol = a); | |
} | |
var i, | |
a = ((i = 0), | |
function(t) { | |
return "jscomp_symbol_" + (t || "") + i++; | |
}); | |
function s() { | |
o(); | |
var t = n.Symbol.iterator; | |
t || (t = n.Symbol.iterator = n.Symbol("iterator")), | |
"function" != typeof Array.prototype[t] && | |
r(Array.prototype, t, { | |
configurable: !0, | |
writable: !0, | |
value: function() { | |
return c(this); | |
} | |
}), | |
(s = function() {}); | |
} | |
function c(t) { | |
var e = 0; | |
return (function(t) { | |
return ( | |
s(), | |
((t = { next: t })[n.Symbol.iterator] = function() { | |
return this; | |
}), | |
t | |
); | |
})(function() { | |
return e < t.length ? { done: !1, value: t[e++] } : { done: !0 }; | |
}); | |
} | |
function u(t) { | |
s(); | |
var e = t[Symbol.iterator]; | |
return e ? e.call(t) : c(t); | |
} | |
function l(t, e) { | |
return { index: t, o: [], w: e }; | |
} | |
function d(t, e, n, r) { | |
var o = 0, | |
i = 0, | |
a = 0, | |
s = 0, | |
c = Math.min(e - o, r - i); | |
if (0 == o && 0 == i) | |
t: { | |
for (a = 0; a < c; a++) if (t[a] !== n[a]) break t; | |
a = c; | |
} | |
if (e == t.length && r == n.length) { | |
s = t.length; | |
for (var u = n.length, d = 0; d < c - a && f(t[--s], n[--u]); ) d++; | |
s = d; | |
} | |
if (((i += a), (r -= s), 0 == (e -= s) - (o += a) && 0 == r - i)) | |
return []; | |
if (o == e) { | |
for (e = l(o, 0); i < r; ) e.o.push(n[i++]); | |
return [e]; | |
} | |
if (i == r) return [l(o, e - o)]; | |
for ( | |
r = r - (a = i) + 1, s = e - (c = o) + 1, e = Array(r), u = 0; | |
u < r; | |
u++ | |
) | |
(e[u] = Array(s)), (e[u][0] = u); | |
for (u = 0; u < s; u++) e[0][u] = u; | |
for (u = 1; u < r; u++) | |
for (d = 1; d < s; d++) | |
if (t[c + d - 1] === n[a + u - 1]) e[u][d] = e[u - 1][d - 1]; | |
else { | |
var h = e[u - 1][d] + 1, | |
p = e[u][d - 1] + 1; | |
e[u][d] = h < p ? h : p; | |
} | |
for ( | |
c = e.length - 1, a = e[0].length - 1, r = e[c][a], t = []; | |
0 < c || 0 < a; | |
) | |
0 == c | |
? (t.push(2), a--) | |
: 0 == a | |
? (t.push(3), c--) | |
: ((s = e[c - 1][a - 1]), | |
(h = | |
(u = e[c - 1][a]) < (d = e[c][a - 1]) | |
? u < s | |
? u | |
: s | |
: d < s | |
? d | |
: s) == s | |
? (s == r ? t.push(0) : (t.push(1), (r = s)), c--, a--) | |
: h == u | |
? (t.push(3), c--, (r = u)) | |
: (t.push(2), a--, (r = d))); | |
for (t.reverse(), e = void 0, c = [], a = 0; a < t.length; a++) | |
switch (t[a]) { | |
case 0: | |
e && (c.push(e), (e = void 0)), o++, i++; | |
break; | |
case 1: | |
e || (e = l(o, 0)), e.w++, o++, e.o.push(n[i]), i++; | |
break; | |
case 2: | |
e || (e = l(o, 0)), e.w++, o++; | |
break; | |
case 3: | |
e || (e = l(o, 0)), e.o.push(n[i]), i++; | |
} | |
return e && c.push(e), c; | |
} | |
function f(t, e) { | |
return t === e; | |
} | |
function h() { | |
(this.M = this.root = null), | |
(this.B = !1), | |
(this.h = this.v = this.G = this.assignedSlot = this.assignedNodes = this.l = null), | |
(this.childNodes = this.nextSibling = this.previousSibling = this.lastChild = this.firstChild = this.parentNode = this.m = void 0), | |
(this.I = this.J = !1), | |
(this.u = {}); | |
} | |
function p(t) { | |
return t.__shady || (t.__shady = new h()), t.__shady; | |
} | |
function y(t) { | |
return t && t.__shady; | |
} | |
h.prototype.toJSON = function() { | |
return {}; | |
}; | |
var v = window.ShadyDOM || {}; | |
v.W = !(!Element.prototype.attachShadow || !Node.prototype.getRootNode); | |
var m = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild"); | |
function _(t) { | |
return (t = y(t)) && void 0 !== t.firstChild; | |
} | |
function g(t) { | |
return "ShadyRoot" === t.T; | |
} | |
function b(t) { | |
return (t = (t = y(t)) && t.root) && Ot(t); | |
} | |
(v.c = !!(m && m.configurable && m.get)), | |
(v.H = v.force || !v.W), | |
(v.j = v.noPatch || !1), | |
(v.L = v.preferPerformance); | |
var w = Element.prototype, | |
E = | |
w.matches || | |
w.matchesSelector || | |
w.mozMatchesSelector || | |
w.msMatchesSelector || | |
w.oMatchesSelector || | |
w.webkitMatchesSelector, | |
N = document.createTextNode(""), | |
S = 0, | |
C = []; | |
function x(t) { | |
C.push(t), (N.textContent = S++); | |
} | |
new MutationObserver(function() { | |
for (; C.length; ) | |
try { | |
C.shift()(); | |
} catch (t) { | |
throw ((N.textContent = S++), t); | |
} | |
}).observe(N, { characterData: !0 }); | |
var T = !!document.contains; | |
function O(t, e) { | |
for (; e; ) { | |
if (e == t) return !0; | |
e = e.__shady_parentNode; | |
} | |
return !1; | |
} | |
function M(t) { | |
for (var e = t.length - 1; 0 <= e; e--) { | |
var n = t[e], | |
r = n.getAttribute("id") || n.getAttribute("name"); | |
r && "length" !== r && isNaN(r) && (t[r] = n); | |
} | |
return ( | |
(t.item = function(e) { | |
return t[e]; | |
}), | |
(t.namedItem = function(e) { | |
if ("length" !== e && isNaN(e) && t[e]) return t[e]; | |
for (var n = u(t), r = n.next(); !r.done; r = n.next()) | |
if ( | |
((r = r.value).getAttribute("id") || | |
r.getAttribute("name")) == e | |
) | |
return r; | |
return null; | |
}), | |
t | |
); | |
} | |
function D(t, e, n, r) { | |
for (var o in ((n = void 0 === n ? "" : n), e)) { | |
var i = e[o]; | |
if (!(r && 0 <= r.indexOf(o))) { | |
i.configurable = !0; | |
var a = n + o; | |
if (i.value) t[a] = i.value; | |
else | |
try { | |
Object.defineProperty(t, a, i); | |
} catch (t) {} | |
} | |
} | |
} | |
function A(t) { | |
var e = {}; | |
return ( | |
Object.getOwnPropertyNames(t).forEach(function(n) { | |
e[n] = Object.getOwnPropertyDescriptor(t, n); | |
}), | |
e | |
); | |
} | |
var j, | |
L = []; | |
function P(t) { | |
j || ((j = !0), x(k)), L.push(t); | |
} | |
function k() { | |
j = !1; | |
for (var t = !!L.length; L.length; ) L.shift()(); | |
return t; | |
} | |
k.list = L; | |
var R, | |
F = A({ | |
get childNodes() { | |
return this.__shady_childNodes; | |
}, | |
get firstChild() { | |
return this.__shady_firstChild; | |
}, | |
get lastChild() { | |
return this.__shady_lastChild; | |
}, | |
get textContent() { | |
return this.__shady_textContent; | |
}, | |
set textContent(t) { | |
this.__shady_textContent = t; | |
}, | |
get childElementCount() { | |
return this.__shady_childElementCount; | |
}, | |
get children() { | |
return this.__shady_children; | |
}, | |
get firstElementChild() { | |
return this.__shady_firstElementChild; | |
}, | |
get lastElementChild() { | |
return this.__shady_lastElementChild; | |
}, | |
get innerHTML() { | |
return this.__shady_innerHTML; | |
}, | |
set innerHTML(t) { | |
return (this.__shady_innerHTML = t); | |
}, | |
get shadowRoot() { | |
return this.__shady_shadowRoot; | |
} | |
}), | |
H = A({ | |
get parentElement() { | |
return this.__shady_parentElement; | |
}, | |
get parentNode() { | |
return this.__shady_parentNode; | |
}, | |
get nextSibling() { | |
return this.__shady_nextSibling; | |
}, | |
get previousSibling() { | |
return this.__shady_previousSibling; | |
}, | |
get nextElementSibling() { | |
return this.__shady_nextElementSibling; | |
}, | |
get previousElementSibling() { | |
return this.__shady_previousElementSibling; | |
}, | |
get className() { | |
return this.__shady_className; | |
}, | |
set className(t) { | |
return (this.__shady_className = t); | |
} | |
}); | |
for (R in F) F[R].enumerable = !1; | |
for (var B in H) H[B].enumerable = !1; | |
var I = v.c || v.j, | |
U = I | |
? function() {} | |
: function(t) { | |
var e = p(t); | |
e.J || ((e.J = !0), D(t, H)); | |
}, | |
q = I | |
? function() {} | |
: function(t) { | |
var e = p(t); | |
e.I || ((e.I = !0), D(t, F)); | |
}; | |
function W(t, e, n) { | |
U(t), (n = n || null); | |
var r = p(t), | |
o = p(e), | |
i = n ? p(n) : null; | |
(r.previousSibling = n ? i.previousSibling : e.__shady_lastChild), | |
(i = y(r.previousSibling)) && (i.nextSibling = t), | |
(i = y((r.nextSibling = n))) && (i.previousSibling = t), | |
(r.parentNode = e), | |
n | |
? n === o.firstChild && (o.firstChild = t) | |
: ((o.lastChild = t), o.firstChild || (o.firstChild = t)), | |
(o.childNodes = null); | |
} | |
function V(t) { | |
var e = p(t); | |
if (void 0 === e.firstChild) { | |
e.childNodes = null; | |
var n, | |
r = (e.firstChild = t.__shady_native_firstChild || null); | |
for ( | |
e.lastChild = t.__shady_native_lastChild || null, q(t), e = r; | |
e; | |
e = e.__shady_native_nextSibling | |
) | |
((r = p(e)).parentNode = t), | |
(r.nextSibling = e.__shady_native_nextSibling || null), | |
(r.previousSibling = n || null), | |
(n = e), | |
U(e); | |
} | |
} | |
var G = window.document, | |
z = v.L, | |
X = Object.getOwnPropertyDescriptor(Node.prototype, "isConnected"), | |
$ = X && X.get; | |
function K(t) { | |
for (var e; (e = t.__shady_firstChild); ) t.__shady_removeChild(e); | |
} | |
function J(t, e, n) { | |
(t = (t = y(t)) && t.l) && | |
(e && t.addedNodes.push(e), | |
n && t.removedNodes.push(n), | |
(function(t) { | |
t.a || | |
((t.a = !0), | |
x(function() { | |
t.flush(); | |
})); | |
})(t)); | |
} | |
var Z = A({ | |
get parentNode() { | |
var t = y(this); | |
return void 0 !== (t = t && t.parentNode) | |
? t | |
: this.__shady_native_parentNode; | |
}, | |
get firstChild() { | |
var t = y(this); | |
return void 0 !== (t = t && t.firstChild) | |
? t | |
: this.__shady_native_firstChild; | |
}, | |
get lastChild() { | |
var t = y(this); | |
return void 0 !== (t = t && t.lastChild) | |
? t | |
: this.__shady_native_lastChild; | |
}, | |
get nextSibling() { | |
var t = y(this); | |
return void 0 !== (t = t && t.nextSibling) | |
? t | |
: this.__shady_native_nextSibling; | |
}, | |
get previousSibling() { | |
var t = y(this); | |
return void 0 !== (t = t && t.previousSibling) | |
? t | |
: this.__shady_native_previousSibling; | |
}, | |
get childNodes() { | |
if (_(this)) { | |
var t = y(this); | |
if (!t.childNodes) { | |
t.childNodes = []; | |
for ( | |
var e = this.__shady_firstChild; | |
e; | |
e = e.__shady_nextSibling | |
) | |
t.childNodes.push(e); | |
} | |
var n = t.childNodes; | |
} else n = this.__shady_native_childNodes; | |
return ( | |
(n.item = function(t) { | |
return n[t]; | |
}), | |
n | |
); | |
}, | |
get parentElement() { | |
var t = y(this); | |
return ( | |
(t = t && t.parentNode) && | |
t.nodeType !== Node.ELEMENT_NODE && | |
(t = null), | |
void 0 !== t ? t : this.__shady_native_parentElement | |
); | |
}, | |
get isConnected() { | |
if ($ && $.call(this)) return !0; | |
if (this.nodeType == Node.DOCUMENT_FRAGMENT_NODE) return !1; | |
var t = this.ownerDocument; | |
if (T) { | |
if (t.__shady_native_contains(this)) return !0; | |
} else if ( | |
t.documentElement && | |
t.documentElement.__shady_native_contains(this) | |
) | |
return !0; | |
for (t = this; t && !(t instanceof Document); ) | |
t = t.__shady_parentNode || (g(t) ? t.host : void 0); | |
return !!(t && t instanceof Document); | |
}, | |
get textContent() { | |
if (_(this)) { | |
for ( | |
var t, e = [], n = 0, r = this.__shady_childNodes; | |
(t = r[n]); | |
n++ | |
) | |
t.nodeType !== Node.COMMENT_NODE && | |
e.push(t.__shady_textContent); | |
return e.join(""); | |
} | |
return this.__shady_native_textContent; | |
}, | |
set textContent(t) { | |
switch ((null == t && (t = ""), this.nodeType)) { | |
case Node.ELEMENT_NODE: | |
case Node.DOCUMENT_FRAGMENT_NODE: | |
if (!_(this) && v.c) { | |
var e = this.__shady_firstChild; | |
(e != this.__shady_lastChild || | |
(e && e.nodeType != Node.TEXT_NODE)) && | |
K(this), | |
(this.__shady_native_textContent = t); | |
} else | |
K(this), | |
(0 < t.length || this.nodeType === Node.ELEMENT_NODE) && | |
this.__shady_insertBefore(document.createTextNode(t)); | |
break; | |
default: | |
this.nodeValue = t; | |
} | |
}, | |
insertBefore: function(t, e) { | |
if (this.ownerDocument !== G && t.ownerDocument !== G) | |
return this.__shady_native_insertBefore(t, e), t; | |
if (t === this) | |
throw Error( | |
"Failed to execute 'appendChild' on 'Node': The new child element contains the parent." | |
); | |
if (e) { | |
var n = y(e); | |
if ( | |
(void 0 !== (n = n && n.parentNode) && n !== this) || | |
(void 0 === n && e.__shady_native_parentNode !== this) | |
) | |
throw Error( | |
"Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node." | |
); | |
} | |
if (e === t) return t; | |
var r = [], | |
o = (n = At(this)) ? n.host.localName : ge(this), | |
i = t.__shady_parentNode; | |
if (i) { | |
var a = ge(t), | |
s = !!n || !At(t) || (z && void 0 !== this.__noInsertionPoint); | |
i.__shady_removeChild(t, s); | |
} | |
i = !0; | |
var c = | |
(!z || | |
(void 0 === t.__noInsertionPoint && | |
void 0 === this.__noInsertionPoint)) && | |
!(function t(e, n) { | |
var r = me(); | |
if (!r) return !0; | |
if (e.nodeType === Node.DOCUMENT_FRAGMENT_NODE) { | |
(r = !0), (e = e.__shady_childNodes); | |
for (var o = 0; r && o < e.length; o++) r = r && t(e[o], n); | |
return r; | |
} | |
return ( | |
e.nodeType !== Node.ELEMENT_NODE || | |
r.currentScopeForNode(e) === n | |
); | |
})(t, o), | |
l = | |
n && | |
!t.__noInsertionPoint && | |
(!z || t.nodeType === Node.DOCUMENT_FRAGMENT_NODE); | |
return ( | |
(l || c) && | |
(c && (a = a || ge(t)), | |
be(t, function(t) { | |
if ((l && "slot" === t.localName && r.push(t), c)) { | |
var e = a; | |
me() && (e && _e(t, e), (e = me()) && e.scopeNode(t, o)); | |
} | |
})), | |
("slot" === this.localName || r.length) && | |
(r.length && | |
((n.f = n.f || []), | |
(n.a = n.a || []), | |
(n.b = n.b || {}), | |
n.f.push.apply( | |
n.f, | |
r instanceof Array | |
? r | |
: (function(t) { | |
for (var e, n = []; !(e = t.next()).done; ) | |
n.push(e.value); | |
return n; | |
})(u(r)) | |
)), | |
n && bt(n)), | |
_(this) && | |
((function(t, e, n) { | |
q(e); | |
var r = p(e); | |
if ( | |
(void 0 !== r.firstChild && (r.childNodes = null), | |
t.nodeType === Node.DOCUMENT_FRAGMENT_NODE) | |
) { | |
r = t.__shady_childNodes; | |
for (var o = 0; o < r.length; o++) W(r[o], e, n); | |
(e = void 0 !== (t = p(t)).firstChild ? null : void 0), | |
(t.firstChild = t.lastChild = e), | |
(t.childNodes = e); | |
} else W(t, e, n); | |
})(t, this, e), | |
(n = y(this)), | |
b(this) ? (bt(n.root), (i = !1)) : n.root && (i = !1)), | |
i | |
? ((n = g(this) ? this.host : this), | |
e | |
? ((e = (function t(e) { | |
var n = e; | |
return ( | |
e && | |
"slot" === e.localName && | |
(n = | |
(n = (n = y(e)) && n.h) && n.length | |
? n[0] | |
: t(e.__shady_nextSibling)), | |
n | |
); | |
})(e)), | |
n.__shady_native_insertBefore(t, e)) | |
: n.__shady_native_appendChild(t)) | |
: t.ownerDocument !== this.ownerDocument && | |
this.ownerDocument.adoptNode(t), | |
J(this, t), | |
t | |
); | |
}, | |
appendChild: function(t) { | |
return this.__shady_insertBefore(t); | |
}, | |
removeChild: function(t, e) { | |
if (((e = void 0 !== e && e), this.ownerDocument !== G)) | |
return this.__shady_native_removeChild(t); | |
if (t.__shady_parentNode !== this) | |
throw Error( | |
"The node to be removed is not a child of this node: " + t | |
); | |
var n = At(t), | |
r = | |
n && | |
(function(t, e) { | |
if (t.a) { | |
Ct(t); | |
var n, | |
r = t.b; | |
for (n in r) | |
for (var o = r[n], i = 0; i < o.length; i++) { | |
var a = o[i]; | |
if (O(e, a)) { | |
o.splice(i, 1); | |
var s = t.a.indexOf(a); | |
if ( | |
(0 <= s && | |
(t.a.splice(s, 1), | |
(s = y(a.__shady_parentNode)) && s.s && s.s--), | |
i--, | |
(a = y(a)), | |
(s = a.h)) | |
) | |
for (var c = 0; c < s.length; c++) { | |
var u = s[c], | |
l = u.__shady_native_parentNode; | |
l && l.__shady_native_removeChild(u); | |
} | |
(a.h = []), (a.assignedNodes = []), (s = !0); | |
} | |
} | |
return s; | |
} | |
})(n, t), | |
o = y(this); | |
if ( | |
_(this) && | |
((function(t, e) { | |
var n = p(t); | |
t === (e = p(e)).firstChild && (e.firstChild = n.nextSibling), | |
t === e.lastChild && (e.lastChild = n.previousSibling), | |
(t = n.previousSibling); | |
var r = n.nextSibling; | |
t && (p(t).nextSibling = r), | |
r && (p(r).previousSibling = t), | |
(n.parentNode = n.previousSibling = n.nextSibling = void 0), | |
void 0 !== e.childNodes && (e.childNodes = null); | |
})(t, this), | |
b(this)) | |
) { | |
bt(o.root); | |
var i = !0; | |
} | |
if (me() && !e && n) { | |
var a = ge(t); | |
be(t, function(t) { | |
_e(t, a); | |
}); | |
} | |
return ( | |
(function t(e) { | |
var n = y(e); | |
if (n && void 0 !== n.m) | |
for ( | |
var r, o = 0, i = (n = e.__shady_childNodes).length; | |
o < i && (r = n[o]); | |
o++ | |
) | |
t(r); | |
(e = y(e)) && (e.m = void 0); | |
})(t), | |
n && | |
((e = this && "slot" === this.localName) && (i = !0), | |
(r || e) && bt(n)), | |
i || | |
((i = g(this) ? this.host : this), | |
((!o.root && "slot" !== t.localName) || | |
i === t.__shady_native_parentNode) && | |
i.__shady_native_removeChild(t)), | |
J(this, null, t), | |
t | |
); | |
}, | |
replaceChild: function(t, e) { | |
return ( | |
this.__shady_insertBefore(t, e), this.__shady_removeChild(e), t | |
); | |
}, | |
cloneNode: function(t) { | |
if ("template" == this.localName) | |
return this.__shady_native_cloneNode(t); | |
var e = this.__shady_native_cloneNode(!1); | |
if (t && e.nodeType !== Node.ATTRIBUTE_NODE) { | |
t = this.__shady_childNodes; | |
for (var n, r = 0; r < t.length; r++) | |
(n = t[r].__shady_cloneNode(!0)), e.__shady_appendChild(n); | |
} | |
return e; | |
}, | |
getRootNode: function(t) { | |
if (this && this.nodeType) { | |
var e = p(this), | |
n = e.m; | |
return ( | |
void 0 === n && | |
(g(this) | |
? ((n = this), (e.m = n)) | |
: ((n = (n = this.__shady_parentNode) | |
? n.__shady_getRootNode(t) | |
: this), | |
document.documentElement.__shady_native_contains(this) && | |
(e.m = n))), | |
n | |
); | |
} | |
}, | |
contains: function(t) { | |
return O(this, t); | |
} | |
}); | |
function Y(t, e, n) { | |
var r = []; | |
return ( | |
(function t(e, n, r, o) { | |
for (var i, a = 0, s = e.length; a < s && (i = e[a]); a++) { | |
var c; | |
if ((c = i.nodeType === Node.ELEMENT_NODE)) { | |
var u = n, | |
l = r, | |
d = o, | |
f = u((c = i)); | |
f && d.push(c), | |
l && l(f) | |
? (c = f) | |
: (t(c.__shady_childNodes, u, l, d), (c = void 0)); | |
} | |
if (c) break; | |
} | |
})(t.__shady_childNodes, e, n, r), | |
r | |
); | |
} | |
var Q = A({ | |
get firstElementChild() { | |
var t = y(this); | |
if (t && void 0 !== t.firstChild) { | |
for ( | |
t = this.__shady_firstChild; | |
t && t.nodeType !== Node.ELEMENT_NODE; | |
) | |
t = t.__shady_nextSibling; | |
return t; | |
} | |
return this.__shady_native_firstElementChild; | |
}, | |
get lastElementChild() { | |
var t = y(this); | |
if (t && void 0 !== t.lastChild) { | |
for ( | |
t = this.__shady_lastChild; | |
t && t.nodeType !== Node.ELEMENT_NODE; | |
) | |
t = t.__shady_previousSibling; | |
return t; | |
} | |
return this.__shady_native_lastElementChild; | |
}, | |
get children() { | |
return _(this) | |
? M( | |
Array.prototype.filter.call( | |
this.__shady_childNodes, | |
function(t) { | |
return t.nodeType === Node.ELEMENT_NODE; | |
} | |
) | |
) | |
: this.__shady_native_children; | |
}, | |
get childElementCount() { | |
var t = this.__shady_children; | |
return t ? t.length : 0; | |
} | |
}), | |
tt = A({ | |
querySelector: function(t) { | |
return ( | |
Y( | |
this, | |
function(e) { | |
return E.call(e, t); | |
}, | |
function(t) { | |
return !!t; | |
} | |
)[0] || null | |
); | |
}, | |
querySelectorAll: function(t, e) { | |
if (e) { | |
e = Array.prototype.slice.call( | |
this.__shady_native_querySelectorAll(t) | |
); | |
var n = this.__shady_getRootNode(); | |
return e.filter(function(t) { | |
return t.__shady_getRootNode() == n; | |
}); | |
} | |
return Y(this, function(e) { | |
return E.call(e, t); | |
}); | |
} | |
}), | |
et = v.L && !v.j ? Object.assign({}, Q) : Q; | |
Object.assign(Q, tt); | |
var nt = A({ | |
getElementById: function(t) { | |
return "" === t | |
? null | |
: Y( | |
this, | |
function(e) { | |
return e.id == t; | |
}, | |
function(t) { | |
return !!t; | |
} | |
)[0] || null; | |
} | |
}), | |
rt = A({ | |
get activeElement() { | |
var t = v.c | |
? document.__shady_native_activeElement | |
: document.activeElement; | |
if (!t || !t.nodeType) return null; | |
var e = !!g(this); | |
if ( | |
!( | |
this === document || | |
(e && this.host !== t && this.host.__shady_native_contains(t)) | |
) | |
) | |
return null; | |
for (e = At(t); e && e !== this; ) e = At((t = e.host)); | |
return this === document ? (e ? null : t) : e === this ? t : null; | |
} | |
}), | |
ot = /[&\u00A0"]/g, | |
it = /[&\u00A0<>]/g; | |
function at(t) { | |
switch (t) { | |
case "&": | |
return "&"; | |
case "<": | |
return "<"; | |
case ">": | |
return ">"; | |
case '"': | |
return """; | |
case " ": | |
return " "; | |
} | |
} | |
function st(t) { | |
for (var e = {}, n = 0; n < t.length; n++) e[t[n]] = !0; | |
return e; | |
} | |
var ct = st( | |
"area base br col command embed hr img input keygen link meta param source track wbr".split( | |
" " | |
) | |
), | |
ut = st( | |
"style script xmp iframe noembed noframes plaintext noscript".split( | |
" " | |
) | |
); | |
function lt(t, e) { | |
"template" === t.localName && (t = t.content); | |
for ( | |
var n, r = "", o = e ? e(t) : t.childNodes, i = 0, a = o.length; | |
i < a && (n = o[i]); | |
i++ | |
) { | |
t: { | |
var s = n, | |
c = t, | |
u = e; | |
switch (s.nodeType) { | |
case Node.ELEMENT_NODE: | |
for ( | |
var l = s.localName, d = "<" + l, f = s.attributes, h = 0; | |
(c = f[h]); | |
h++ | |
) | |
d += " " + c.name + '="' + c.value.replace(ot, at) + '"'; | |
(d += ">"), (s = ct[l] ? d : d + lt(s, u) + "</" + l + ">"); | |
break t; | |
case Node.TEXT_NODE: | |
(s = s.data), | |
(s = c && ut[c.localName] ? s : s.replace(it, at)); | |
break t; | |
case Node.COMMENT_NODE: | |
s = "\x3c!--" + s.data + "--\x3e"; | |
break t; | |
default: | |
throw (window.console.error(s), Error("not implemented")); | |
} | |
} | |
r += s; | |
} | |
return r; | |
} | |
var dt = document.implementation.createHTMLDocument("inert"), | |
ft = A({ | |
get innerHTML() { | |
return _(this) | |
? lt( | |
"template" === this.localName ? this.content : this, | |
function(t) { | |
return t.__shady_childNodes; | |
} | |
) | |
: this.__shady_native_innerHTML; | |
}, | |
set innerHTML(t) { | |
if ("template" === this.localName) | |
this.__shady_native_innerHTML = t; | |
else { | |
K(this); | |
var e = this.localName || "div"; | |
for ( | |
e = | |
this.namespaceURI && this.namespaceURI !== dt.namespaceURI | |
? dt.createElementNS(this.namespaceURI, e) | |
: dt.createElement(e), | |
v.c ? (e.__shady_native_innerHTML = t) : (e.innerHTML = t); | |
(t = e.__shady_firstChild); | |
) | |
this.__shady_insertBefore(t); | |
} | |
} | |
}), | |
ht = A({ | |
addEventListener: function(t, e, n) { | |
"object" != typeof n && (n = { capture: !!n }), | |
(n.i = n.i || this), | |
this.host.__shady_addEventListener(t, e, n); | |
}, | |
removeEventListener: function(t, e, n) { | |
"object" != typeof n && (n = { capture: !!n }), | |
(n.i = n.i || this), | |
this.host.__shady_removeEventListener(t, e, n); | |
} | |
}); | |
function pt(t, e) { | |
D(t, ht, e), | |
D(t, rt, e), | |
D(t, ft, e), | |
D(t, Q, e), | |
v.j && !e ? (D(t, Z, e), D(t, nt, e)) : v.c || (D(t, H), D(t, F)); | |
} | |
var yt, | |
vt = {}, | |
mt = v.deferConnectionCallbacks && "loading" === document.readyState; | |
function _t(t) { | |
var e = []; | |
do { | |
e.unshift(t); | |
} while ((t = t.__shady_parentNode)); | |
return e; | |
} | |
function gt(t, e, n) { | |
if (t !== vt) throw new TypeError("Illegal constructor"); | |
if ( | |
((this.T = "ShadyRoot"), | |
(this.host = e), | |
(this.mode = n && n.mode), | |
V(e), | |
((t = p(e)).root = this), | |
(t.M = "closed" !== this.mode ? this : null), | |
((t = p( | |
this | |
)).firstChild = t.lastChild = t.parentNode = t.nextSibling = t.previousSibling = null), | |
(t.childNodes = []), | |
(this.F = this.g = !1), | |
(this.f = this.b = this.a = null), | |
v.preferPerformance) | |
) | |
for (; (t = e.__shady_native_firstChild); ) | |
e.__shady_native_removeChild(t); | |
else bt(this); | |
} | |
function bt(t) { | |
t.g || | |
((t.g = !0), | |
P(function() { | |
return wt(t); | |
})); | |
} | |
function wt(t) { | |
var e; | |
if ((e = t.g)) { | |
for (var n; t; ) | |
t.g && (n = t), | |
(g((t = (e = t).host.__shady_getRootNode())) && | |
(e = y(e.host)) && | |
0 < e.s) || | |
(t = void 0); | |
e = n; | |
} | |
(n = e) && n._renderSelf(); | |
} | |
function Et(t, e, n) { | |
var r = p(e), | |
o = r.v; | |
(r.v = null), | |
n || (n = (t = t.b[e.__shady_slot || "__catchall"]) && t[0]), | |
n | |
? (p(n).assignedNodes.push(e), (r.assignedSlot = n)) | |
: (r.assignedSlot = void 0), | |
o !== r.assignedSlot && | |
r.assignedSlot && | |
(p(r.assignedSlot).B = !0); | |
} | |
function Nt(t, e, n) { | |
for (var r, o = 0; o < n.length && (r = n[o]); o++) | |
if ("slot" == r.localName) { | |
var i = y(r).assignedNodes; | |
i && i.length && Nt(t, e, i); | |
} else e.push(n[o]); | |
} | |
function St(t, e) { | |
e.__shady_native_dispatchEvent(new Event("slotchange")), | |
(e = y(e)).assignedSlot && St(t, e.assignedSlot); | |
} | |
function Ct(t) { | |
if (t.f && t.f.length) { | |
for (var e, n = t.f, r = 0; r < n.length; r++) { | |
var o = n[r]; | |
V(o); | |
var i = o.__shady_parentNode; | |
V(i), | |
((i = y(i)).s = (i.s || 0) + 1), | |
(i = xt(o)), | |
t.b[i] | |
? (((e = e || {})[i] = !0), t.b[i].push(o)) | |
: (t.b[i] = [o]), | |
t.a.push(o); | |
} | |
if (e) for (var a in e) t.b[a] = Tt(t.b[a]); | |
t.f = []; | |
} | |
} | |
function xt(t) { | |
var e = t.name || t.getAttribute("name") || "__catchall"; | |
return (t.R = e); | |
} | |
function Tt(t) { | |
return t.sort(function(t, e) { | |
t = _t(t); | |
for (var n = _t(e), r = 0; r < t.length; r++) { | |
e = t[r]; | |
var o = n[r]; | |
if (e !== o) | |
return ( | |
(t = Array.from( | |
e.__shady_parentNode.__shady_childNodes | |
)).indexOf(e) - t.indexOf(o) | |
); | |
} | |
}); | |
} | |
function Ot(t) { | |
return Ct(t), !(!t.a || !t.a.length); | |
} | |
if ( | |
((gt.prototype._renderSelf = function() { | |
var t = mt; | |
if (((mt = !0), (this.g = !1), this.a)) { | |
Ct(this); | |
for (var e, n = 0; n < this.a.length; n++) { | |
var r = y((e = this.a[n])), | |
o = r.assignedNodes; | |
if (((r.assignedNodes = []), (r.h = []), (r.G = o))) | |
for (r = 0; r < o.length; r++) { | |
var i = y(o[r]); | |
(i.v = i.assignedSlot), | |
i.assignedSlot === e && (i.assignedSlot = null); | |
} | |
} | |
for ( | |
e = this.host.__shady_firstChild; | |
e; | |
e = e.__shady_nextSibling | |
) | |
Et(this, e); | |
for (n = 0; n < this.a.length; n++) { | |
if (!(o = y((e = this.a[n]))).assignedNodes.length) | |
for (r = e.__shady_firstChild; r; r = r.__shady_nextSibling) | |
Et(this, r, e); | |
if ( | |
((r = (r = y(e.__shady_parentNode)) && r.root) && | |
(Ot(r) || r.g) && | |
r._renderSelf(), | |
Nt(this, o.h, o.assignedNodes), | |
(r = o.G)) | |
) { | |
for (i = 0; i < r.length; i++) y(r[i]).v = null; | |
(o.G = null), r.length > o.assignedNodes.length && (o.B = !0); | |
} | |
o.B && ((o.B = !1), St(this, e)); | |
} | |
for (n = this.a, e = [], o = 0; o < n.length; o++) | |
((i = y((r = n[o].__shady_parentNode))) && i.root) || | |
!(0 > e.indexOf(r)) || | |
e.push(r); | |
for (n = 0; n < e.length; n++) { | |
(r = (o = e[n]) === this ? this.host : o), | |
(i = []), | |
(o = o.__shady_childNodes); | |
for (var a = 0; a < o.length; a++) { | |
var s = o[a]; | |
if ("slot" == s.localName) { | |
s = y(s).h; | |
for (var c = 0; c < s.length; c++) i.push(s[c]); | |
} else i.push(s); | |
} | |
(o = void 0), | |
(a = Array.prototype.slice.call(r.__shady_native_childNodes)), | |
(s = d(i, i.length, a, a.length)); | |
for (var u = (c = 0); c < s.length && (o = s[c]); c++) { | |
for (var l, f = 0; f < o.o.length && (l = o.o[f]); f++) | |
l.__shady_native_parentNode === r && | |
r.__shady_native_removeChild(l), | |
a.splice(o.index + u, 1); | |
u -= o.w; | |
} | |
for (u = 0; u < s.length && (o = s[u]); u++) | |
for (c = a[o.index], f = o.index; f < o.index + o.w; f++) | |
(l = i[f]), | |
r.__shady_native_insertBefore(l, c), | |
a.splice(f, 0, l); | |
} | |
} | |
if (!v.preferPerformance && !this.F) | |
for ( | |
e = 0, n = (l = this.host.__shady_childNodes).length; | |
e < n; | |
e++ | |
) | |
(r = y((o = l[e]))), | |
o.__shady_native_parentNode !== this.host || | |
("slot" !== o.localName && r.assignedSlot) || | |
this.host.__shady_native_removeChild(o); | |
(this.F = !0), (mt = t), yt && yt(); | |
}), | |
(function(t) { | |
(t.__proto__ = DocumentFragment.prototype), | |
pt(t, "__shady_"), | |
pt(t), | |
Object.defineProperties(t, { | |
nodeType: { | |
value: Node.DOCUMENT_FRAGMENT_NODE, | |
configurable: !0 | |
}, | |
nodeName: { value: "#document-fragment", configurable: !0 }, | |
nodeValue: { value: null, configurable: !0 } | |
}), | |
["localName", "namespaceURI", "prefix"].forEach(function(e) { | |
Object.defineProperty(t, e, { | |
value: void 0, | |
configurable: !0 | |
}); | |
}), | |
["ownerDocument", "baseURI", "isConnected"].forEach(function(e) { | |
Object.defineProperty(t, e, { | |
get: function() { | |
return this.host[e]; | |
}, | |
configurable: !0 | |
}); | |
}); | |
})(gt.prototype), | |
window.customElements && v.H && !v.preferPerformance) | |
) { | |
var Mt = new Map(); | |
(yt = function() { | |
var t = []; | |
Mt.forEach(function(e, n) { | |
t.push([n, e]); | |
}), | |
Mt.clear(); | |
for (var e = 0; e < t.length; e++) { | |
var n = t[e][0]; | |
t[e][1] ? n.O() : n.P(); | |
} | |
}), | |
mt && | |
document.addEventListener( | |
"readystatechange", | |
function() { | |
(mt = !1), yt(); | |
}, | |
{ once: !0 } | |
); | |
var Dt = window.customElements.define; | |
Object.defineProperty( | |
window.CustomElementRegistry.prototype, | |
"define", | |
{ | |
value: function(t, e) { | |
var n = e.prototype.connectedCallback, | |
r = e.prototype.disconnectedCallback; | |
Dt.call( | |
window.customElements, | |
t, | |
(function(t, e, n) { | |
var r = 0, | |
o = "__isConnected" + r++; | |
return ( | |
(e || n) && | |
((t.prototype.connectedCallback = t.prototype.O = function() { | |
mt | |
? Mt.set(this, !0) | |
: this[o] || ((this[o] = !0), e && e.call(this)); | |
}), | |
(t.prototype.disconnectedCallback = t.prototype.P = function() { | |
mt | |
? this.isConnected || Mt.set(this, !1) | |
: this[o] && ((this[o] = !1), n && n.call(this)); | |
})), | |
t | |
); | |
})(e, n, r) | |
), | |
(e.prototype.connectedCallback = n), | |
(e.prototype.disconnectedCallback = r); | |
} | |
} | |
); | |
} | |
function At(t) { | |
if (g((t = t.__shady_getRootNode()))) return t; | |
} | |
function jt() { | |
(this.a = !1), | |
(this.addedNodes = []), | |
(this.removedNodes = []), | |
(this.A = new Set()); | |
} | |
(jt.prototype.flush = function() { | |
if (this.a) { | |
this.a = !1; | |
var t = this.takeRecords(); | |
t.length && | |
this.A.forEach(function(e) { | |
e(t); | |
}); | |
} | |
}), | |
(jt.prototype.takeRecords = function() { | |
if (this.addedNodes.length || this.removedNodes.length) { | |
var t = [ | |
{ addedNodes: this.addedNodes, removedNodes: this.removedNodes } | |
]; | |
return (this.addedNodes = []), (this.removedNodes = []), t; | |
} | |
return []; | |
}); | |
var Lt = "__eventWrappers" + Date.now(), | |
Pt = (function() { | |
var t = Object.getOwnPropertyDescriptor( | |
Event.prototype, | |
"composed" | |
); | |
return t | |
? function(e) { | |
return t.get.call(e); | |
} | |
: null; | |
})(), | |
kt = (function() { | |
function t() {} | |
var e = !1, | |
n = { | |
get capture() { | |
e = !0; | |
} | |
}; | |
return ( | |
window.addEventListener("test", t, n), | |
window.removeEventListener("test", t, n), | |
e | |
); | |
})(); | |
function Rt(t) { | |
if (t && "object" == typeof t) | |
var e = !!t.capture, | |
n = !!t.once, | |
r = !!t.passive, | |
o = t.i; | |
else (e = !!t), (r = n = !1); | |
return { N: o, capture: e, once: n, passive: r, K: kt ? t : e }; | |
} | |
var Ft = { | |
blur: !0, | |
focus: !0, | |
focusin: !0, | |
focusout: !0, | |
click: !0, | |
dblclick: !0, | |
mousedown: !0, | |
mouseenter: !0, | |
mouseleave: !0, | |
mousemove: !0, | |
mouseout: !0, | |
mouseover: !0, | |
mouseup: !0, | |
wheel: !0, | |
beforeinput: !0, | |
input: !0, | |
keydown: !0, | |
keyup: !0, | |
compositionstart: !0, | |
compositionupdate: !0, | |
compositionend: !0, | |
touchstart: !0, | |
touchend: !0, | |
touchmove: !0, | |
touchcancel: !0, | |
pointerover: !0, | |
pointerenter: !0, | |
pointerdown: !0, | |
pointermove: !0, | |
pointerup: !0, | |
pointercancel: !0, | |
pointerout: !0, | |
pointerleave: !0, | |
gotpointercapture: !0, | |
lostpointercapture: !0, | |
dragstart: !0, | |
drag: !0, | |
dragenter: !0, | |
dragleave: !0, | |
dragover: !0, | |
drop: !0, | |
dragend: !0, | |
DOMActivate: !0, | |
DOMFocusIn: !0, | |
DOMFocusOut: !0, | |
keypress: !0 | |
}, | |
Ht = { | |
DOMAttrModified: !0, | |
DOMAttributeNameChanged: !0, | |
DOMCharacterDataModified: !0, | |
DOMElementNameChanged: !0, | |
DOMNodeInserted: !0, | |
DOMNodeInsertedIntoDocument: !0, | |
DOMNodeRemoved: !0, | |
DOMNodeRemovedFromDocument: !0, | |
DOMSubtreeModified: !0 | |
}; | |
function Bt(t) { | |
return t instanceof Node ? t.__shady_getRootNode() : t; | |
} | |
function It(t, e) { | |
var n = [], | |
r = t; | |
for (t = Bt(t); r; ) | |
n.push(r), | |
(r = r.__shady_assignedSlot | |
? r.__shady_assignedSlot | |
: r.nodeType === Node.DOCUMENT_FRAGMENT_NODE && | |
r.host && | |
(e || r !== t) | |
? r.host | |
: r.__shady_parentNode); | |
return n[n.length - 1] === document && n.push(window), n; | |
} | |
function Ut(t, e) { | |
if (!g) return t; | |
t = It(t, !0); | |
for (var n, r, o, i, a = 0; a < e.length; a++) | |
if ( | |
((o = Bt((n = e[a]))) !== r && ((i = t.indexOf(o)), (r = o)), | |
!g(o) || -1 < i) | |
) | |
return n; | |
} | |
function qt(t) { | |
function e(e, n) { | |
return ((e = new t(e, n)).__composed = n && !!n.composed), e; | |
} | |
return (e.__proto__ = t), (e.prototype = t.prototype), e; | |
} | |
var Wt = { focus: !0, blur: !0 }; | |
function Vt(t) { | |
return ( | |
t.__target !== t.target || t.__relatedTarget !== t.relatedTarget | |
); | |
} | |
function Gt(t, e, n) { | |
if ( | |
(n = | |
e.__handlers && e.__handlers[t.type] && e.__handlers[t.type][n]) | |
) | |
for ( | |
var r, o = 0; | |
(r = n[o]) && | |
(!Vt(t) || t.target !== t.relatedTarget) && | |
(r.call(e, t), !t.__immediatePropagationStopped); | |
o++ | |
); | |
} | |
function zt(t) { | |
var e, | |
n = t.composedPath(); | |
Object.defineProperty(t, "currentTarget", { | |
get: function() { | |
return o; | |
}, | |
configurable: !0 | |
}); | |
for (var r = n.length - 1; 0 <= r; r--) { | |
var o = n[r]; | |
if ((Gt(t, o, "capture"), t.D)) return; | |
} | |
for ( | |
Object.defineProperty(t, "eventPhase", { | |
get: function() { | |
return Event.AT_TARGET; | |
} | |
}), | |
r = 0; | |
r < n.length; | |
r++ | |
) { | |
var i = y((o = n[r])); | |
if ( | |
((i = i && i.root), | |
(0 === r || (i && i === e)) && | |
(Gt(t, o, "bubble"), | |
o !== window && (e = o.__shady_getRootNode()), | |
t.D)) | |
) | |
break; | |
} | |
} | |
function Xt(t, e, n, r, o, i) { | |
for (var a = 0; a < t.length; a++) { | |
var s = t[a], | |
c = s.type, | |
u = s.capture, | |
l = s.once, | |
d = s.passive; | |
if (e === s.node && n === c && r === u && o === l && i === d) | |
return a; | |
} | |
return -1; | |
} | |
function $t(t, e, n) { | |
var r = Rt(n); | |
n = r.capture; | |
var o = r.once, | |
i = r.passive, | |
a = r.N, | |
s = r.K; | |
if (e) { | |
var c = typeof e; | |
if ( | |
("function" === c || "object" === c) && | |
("object" !== c || | |
(e.handleEvent && "function" == typeof e.handleEvent)) | |
) { | |
if (Ht[t]) return this.__shady_native_addEventListener(t, e, s); | |
var u = a || this; | |
if ((r = e[Lt])) { | |
if (-1 < Xt(r, u, t, n, o, i)) return; | |
} else e[Lt] = []; | |
(r = function(n) { | |
if ( | |
(o && this.__shady_removeEventListener(t, e, s), | |
n.__target || Zt(n), | |
u !== this) | |
) { | |
var r = Object.getOwnPropertyDescriptor(n, "currentTarget"); | |
Object.defineProperty(n, "currentTarget", { | |
get: function() { | |
return u; | |
}, | |
configurable: !0 | |
}); | |
} | |
if ( | |
((n.__previousCurrentTarget = n.currentTarget), | |
((!g(u) && "slot" !== u.localName) || | |
-1 != n.composedPath().indexOf(u)) && | |
(n.composed || -1 < n.composedPath().indexOf(u))) | |
) | |
if (Vt(n) && n.target === n.relatedTarget) | |
n.eventPhase === Event.BUBBLING_PHASE && | |
n.stopImmediatePropagation(); | |
else if ( | |
n.eventPhase === Event.CAPTURING_PHASE || | |
n.bubbles || | |
n.target === u || | |
u instanceof Window | |
) { | |
var i = | |
"function" === c | |
? e.call(u, n) | |
: e.handleEvent && e.handleEvent(n); | |
return ( | |
u !== this && | |
(r | |
? (Object.defineProperty(n, "currentTarget", r), | |
(r = null)) | |
: delete n.currentTarget), | |
i | |
); | |
} | |
}), | |
e[Lt].push({ | |
node: u, | |
type: t, | |
capture: n, | |
once: o, | |
passive: i, | |
X: r | |
}), | |
Wt[t] | |
? ((this.__handlers = this.__handlers || {}), | |
(this.__handlers[t] = this.__handlers[t] || { | |
capture: [], | |
bubble: [] | |
}), | |
this.__handlers[t][n ? "capture" : "bubble"].push(r)) | |
: this.__shady_native_addEventListener(t, r, s); | |
} | |
} | |
} | |
function Kt(t, e, n) { | |
if (e) { | |
var r = Rt(n); | |
n = r.capture; | |
var o = r.once, | |
i = r.passive, | |
a = r.N; | |
if (((r = r.K), Ht[t])) | |
return this.__shady_native_removeEventListener(t, e, r); | |
var s = a || this; | |
a = void 0; | |
var c = null; | |
try { | |
c = e[Lt]; | |
} catch (t) {} | |
c && | |
(-1 < (o = Xt(c, s, t, n, o, i)) && | |
((a = c.splice(o, 1)[0].X), c.length || (e[Lt] = void 0))), | |
this.__shady_native_removeEventListener(t, a || e, r), | |
a && | |
Wt[t] && | |
this.__handlers && | |
this.__handlers[t] && | |
(-1 < | |
(e = (t = this.__handlers[t][ | |
n ? "capture" : "bubble" | |
]).indexOf(a)) && | |
t.splice(e, 1)); | |
} | |
} | |
var Jt = A({ | |
get composed() { | |
return ( | |
void 0 === this.__composed && | |
(Pt | |
? (this.__composed = | |
"focusin" === this.type || | |
"focusout" === this.type || | |
Pt(this)) | |
: !1 !== this.isTrusted && (this.__composed = Ft[this.type])), | |
this.__composed || !1 | |
); | |
}, | |
composedPath: function() { | |
return ( | |
this.__composedPath || | |
(this.__composedPath = It(this.__target, this.composed)), | |
this.__composedPath | |
); | |
}, | |
get target() { | |
return Ut( | |
this.currentTarget || this.__previousCurrentTarget, | |
this.composedPath() | |
); | |
}, | |
get relatedTarget() { | |
return this.__relatedTarget | |
? (this.__relatedTargetComposedPath || | |
(this.__relatedTargetComposedPath = It( | |
this.__relatedTarget, | |
!0 | |
)), | |
Ut( | |
this.currentTarget || this.__previousCurrentTarget, | |
this.__relatedTargetComposedPath | |
)) | |
: null; | |
}, | |
stopPropagation: function() { | |
Event.prototype.stopPropagation.call(this), (this.D = !0); | |
}, | |
stopImmediatePropagation: function() { | |
Event.prototype.stopImmediatePropagation.call(this), | |
(this.D = this.__immediatePropagationStopped = !0); | |
} | |
}); | |
function Zt(t) { | |
if ( | |
((t.__target = t.target), | |
(t.__relatedTarget = t.relatedTarget), | |
v.c) | |
) { | |
var e = Object.getPrototypeOf(t); | |
if (!Object.hasOwnProperty(e, "__shady_patchedProto")) { | |
var n = Object.create(e); | |
(n.__shady_sourceProto = e), | |
D(n, Jt), | |
(e.__shady_patchedProto = n); | |
} | |
t.__proto__ = e.__shady_patchedProto; | |
} else D(t, Jt); | |
} | |
var Yt = qt(Event), | |
Qt = qt(CustomEvent), | |
te = qt(MouseEvent); | |
var ee = Object.getOwnPropertyNames(Document.prototype).filter(function( | |
t | |
) { | |
return "on" === t.substring(0, 2); | |
}), | |
ne = v.c, | |
re = { | |
querySelector: function(t) { | |
return this.__shady_native_querySelector(t); | |
}, | |
querySelectorAll: function(t) { | |
return this.__shady_native_querySelectorAll(t); | |
} | |
}, | |
oe = {}; | |
function ie(t) { | |
oe[t] = function(e) { | |
return e["__shady_native_" + t]; | |
}; | |
} | |
function ae(t, e) { | |
for (var n in (D(t, e, "__shady_native_"), e)) ie(n); | |
} | |
function se(t, e) { | |
e = void 0 === e ? [] : e; | |
for (var n = 0; n < e.length; n++) { | |
var r = e[n], | |
o = Object.getOwnPropertyDescriptor(t, r); | |
o && | |
(Object.defineProperty(t, "__shady_native_" + r, o), | |
o.value ? re[r] || (re[r] = o.value) : ie(r)); | |
} | |
} | |
var ce = document.createTreeWalker( | |
document, | |
NodeFilter.SHOW_ALL, | |
null, | |
!1 | |
), | |
ue = document.createTreeWalker( | |
document, | |
NodeFilter.SHOW_ELEMENT, | |
null, | |
!1 | |
), | |
le = document.implementation.createHTMLDocument("inert"); | |
function de(t) { | |
for (var e; (e = t.__shady_native_firstChild); ) | |
t.__shady_native_removeChild(e); | |
} | |
var fe = [ | |
"firstElementChild", | |
"lastElementChild", | |
"children", | |
"childElementCount" | |
], | |
he = ["querySelector", "querySelectorAll"]; | |
var pe = A({ | |
dispatchEvent: function(t) { | |
return k(), this.__shady_native_dispatchEvent(t); | |
}, | |
addEventListener: $t, | |
removeEventListener: Kt | |
}), | |
ye = A({ | |
get assignedSlot() { | |
var t = this.__shady_parentNode; | |
return ( | |
(t = t && t.__shady_shadowRoot) && wt(t), | |
((t = y(this)) && t.assignedSlot) || null | |
); | |
} | |
}), | |
ve = null; | |
function me() { | |
return ( | |
ve || (ve = window.ShadyCSS && window.ShadyCSS.ScopingShim), | |
ve || null | |
); | |
} | |
function _e(t, e) { | |
var n = me(); | |
n && n.unscopeNode(t, e); | |
} | |
function ge(t) { | |
if (t.nodeType !== Node.ELEMENT_NODE) return ""; | |
var e = me(); | |
return e ? e.currentScopeForNode(t) : ""; | |
} | |
function be(t, e) { | |
if (t) { | |
t.nodeType === Node.ELEMENT_NODE && e(t), | |
(t = t.__shady_childNodes); | |
for (var n, r = 0; r < t.length; r++) | |
(n = t[r]).nodeType === Node.ELEMENT_NODE && be(n, e); | |
} | |
} | |
var we = window.document; | |
function Ee(t, e) { | |
if ("slot" === e) b((t = t.__shady_parentNode)) && bt(y(t).root); | |
else if ("slot" === t.localName && "name" === e && (e = At(t))) { | |
if (e.a) { | |
Ct(e); | |
var n = t.R, | |
r = xt(t); | |
if (r !== n) { | |
var o = (n = e.b[n]).indexOf(t); | |
0 <= o && n.splice(o, 1), | |
(n = e.b[r] || (e.b[r] = [])).push(t), | |
1 < n.length && (e.b[r] = Tt(n)); | |
} | |
} | |
bt(e); | |
} | |
} | |
var Ne = A({ | |
get previousElementSibling() { | |
var t = y(this); | |
if (t && void 0 !== t.previousSibling) { | |
for ( | |
t = this.__shady_previousSibling; | |
t && t.nodeType !== Node.ELEMENT_NODE; | |
) | |
t = t.__shady_previousSibling; | |
return t; | |
} | |
return this.__shady_native_previousElementSibling; | |
}, | |
get nextElementSibling() { | |
var t = y(this); | |
if (t && void 0 !== t.nextSibling) { | |
for ( | |
t = this.__shady_nextSibling; | |
t && t.nodeType !== Node.ELEMENT_NODE; | |
) | |
t = t.__shady_nextSibling; | |
return t; | |
} | |
return this.__shady_native_nextElementSibling; | |
}, | |
get slot() { | |
return this.getAttribute("slot"); | |
}, | |
set slot(t) { | |
this.__shady_setAttribute("slot", t); | |
}, | |
get shadowRoot() { | |
var t = y(this); | |
return (t && t.M) || null; | |
}, | |
get className() { | |
return this.getAttribute("class") || ""; | |
}, | |
set className(t) { | |
this.__shady_setAttribute("class", t); | |
}, | |
setAttribute: function(t, e) { | |
var n; | |
this.ownerDocument !== we | |
? this.__shady_native_setAttribute(t, e) | |
: ((n = me()) && "class" === t | |
? (n.setElementClass(this, e), (n = !0)) | |
: (n = !1), | |
n || (this.__shady_native_setAttribute(t, e), Ee(this, t))); | |
}, | |
removeAttribute: function(t) { | |
this.__shady_native_removeAttribute(t), Ee(this, t); | |
}, | |
attachShadow: function(t) { | |
if (!this) throw Error("Must provide a host."); | |
if (!t) throw Error("Not enough arguments."); | |
return new gt(vt, this, t); | |
} | |
}), | |
Se = A({ | |
blur: function() { | |
var t = y(this); | |
(t = (t = t && t.root) && t.activeElement) | |
? t.__shady_blur() | |
: this.__shady_native_blur(); | |
} | |
}); | |
ee.forEach(function(t) { | |
Se[t] = { | |
set: function(e) { | |
var n = p(this), | |
r = t.substring(2); | |
n.u[t] && this.removeEventListener(r, n.u[t]), | |
this.__shady_addEventListener(r, e), | |
(n.u[t] = e); | |
}, | |
get: function() { | |
var e = y(this); | |
return e && e.u[t]; | |
}, | |
configurable: !0 | |
}; | |
}); | |
var Ce = A({ | |
assignedNodes: function(t) { | |
if ("slot" === this.localName) { | |
var e = this.__shady_getRootNode(); | |
return ( | |
e && g(e) && wt(e), | |
((e = y(this)) && (t && t.flatten ? e.h : e.assignedNodes)) || | |
[] | |
); | |
} | |
}, | |
addEventListener: function(t, e, n) { | |
if ("slot" !== this.localName || "slotchange" === t) | |
$t.call(this, t, e, n); | |
else { | |
"object" != typeof n && (n = { capture: !!n }); | |
var r = this.__shady_parentNode; | |
if (!r) | |
throw Error( | |
"ShadyDOM cannot attach event to slot unless it has a `parentNode`" | |
); | |
(n.i = this), r.__shady_addEventListener(t, e, n); | |
} | |
}, | |
removeEventListener: function(t, e, n) { | |
if ("slot" !== this.localName || "slotchange" === t) | |
Kt.call(this, t, e, n); | |
else { | |
"object" != typeof n && (n = { capture: !!n }); | |
var r = this.__shady_parentNode; | |
if (!r) | |
throw Error( | |
"ShadyDOM cannot attach event to slot unless it has a `parentNode`" | |
); | |
(n.i = this), r.__shady_removeEventListener(t, e, n); | |
} | |
} | |
}), | |
xe = window.document, | |
Te = A({ | |
importNode: function(t, e) { | |
if (t.ownerDocument !== xe || "template" === t.localName) | |
return this.__shady_native_importNode(t, e); | |
var n = this.__shady_native_importNode(t, !1); | |
if (e) { | |
(t = t.__shady_childNodes), (e = 0); | |
for (var r; e < t.length; e++) | |
(r = this.__shady_importNode(t[e], !0)), | |
n.__shady_appendChild(r); | |
} | |
return n; | |
} | |
}), | |
Oe = A({ | |
addEventListener: $t.bind(window), | |
removeEventListener: Kt.bind(window) | |
}), | |
Me = {}; | |
Object.getOwnPropertyDescriptor( | |
HTMLElement.prototype, | |
"parentElement" | |
) && (Me.parentElement = Z.parentElement), | |
Object.getOwnPropertyDescriptor(HTMLElement.prototype, "contains") && | |
(Me.contains = Z.contains), | |
Object.getOwnPropertyDescriptor(HTMLElement.prototype, "children") && | |
(Me.children = Q.children), | |
Object.getOwnPropertyDescriptor(HTMLElement.prototype, "innerHTML") && | |
(Me.innerHTML = ft.innerHTML), | |
Object.getOwnPropertyDescriptor(HTMLElement.prototype, "className") && | |
(Me.className = Ne.className); | |
var De = { | |
EventTarget: [pe], | |
Node: [Z, window.EventTarget ? null : pe], | |
Text: [ye], | |
Element: [ | |
Ne, | |
Q, | |
ye, | |
!v.c || "innerHTML" in Element.prototype ? ft : null, | |
window.HTMLSlotElement ? null : Ce | |
], | |
HTMLElement: [Se, Me], | |
HTMLSlotElement: [Ce], | |
DocumentFragment: [et, nt], | |
Document: [Te, et, nt, rt], | |
Window: [Oe] | |
}, | |
Ae = v.c ? null : ["innerHTML", "textContent"]; | |
function je(t) { | |
var e, | |
n = t ? null : Ae, | |
r = {}; | |
for (e in De) | |
(r.C = window[e] && window[e].prototype), | |
De[e].forEach( | |
(function(e) { | |
return function(r) { | |
return e.C && r && D(e.C, r, t, n); | |
}; | |
})(r) | |
), | |
(r = { C: r.C }); | |
} | |
function Le(t) { | |
this.node = t; | |
} | |
((e = Le.prototype).addEventListener = function(t, e, n) { | |
return this.node.__shady_addEventListener(t, e, n); | |
}), | |
(e.removeEventListener = function(t, e, n) { | |
return this.node.__shady_removeEventListener(t, e, n); | |
}), | |
(e.appendChild = function(t) { | |
return this.node.__shady_appendChild(t); | |
}), | |
(e.insertBefore = function(t, e) { | |
return this.node.__shady_insertBefore(t, e); | |
}), | |
(e.removeChild = function(t) { | |
return this.node.__shady_removeChild(t); | |
}), | |
(e.replaceChild = function(t, e) { | |
return this.node.__shady_replaceChild(t, e); | |
}), | |
(e.cloneNode = function(t) { | |
return this.node.__shady_cloneNode(t); | |
}), | |
(e.getRootNode = function(t) { | |
return this.node.__shady_getRootNode(t); | |
}), | |
(e.contains = function(t) { | |
return this.node.__shady_contains(t); | |
}), | |
(e.dispatchEvent = function(t) { | |
return this.node.__shady_dispatchEvent(t); | |
}), | |
(e.setAttribute = function(t, e) { | |
this.node.__shady_setAttribute(t, e); | |
}), | |
(e.getAttribute = function(t) { | |
return this.node.__shady_native_getAttribute(t); | |
}), | |
(e.removeAttribute = function(t) { | |
this.node.__shady_removeAttribute(t); | |
}), | |
(e.attachShadow = function(t) { | |
return this.node.__shady_attachShadow(t); | |
}), | |
(e.focus = function() { | |
this.node.__shady_native_focus(); | |
}), | |
(e.blur = function() { | |
this.node.__shady_blur(); | |
}), | |
(e.importNode = function(t, e) { | |
if (this.node.nodeType === Node.DOCUMENT_NODE) | |
return this.node.__shady_importNode(t, e); | |
}), | |
(e.getElementById = function(t) { | |
if (this.node.nodeType === Node.DOCUMENT_NODE) | |
return this.node.__shady_getElementById(t); | |
}), | |
(e.querySelector = function(t) { | |
return this.node.__shady_querySelector(t); | |
}), | |
(e.querySelectorAll = function(t, e) { | |
return this.node.__shady_querySelectorAll(t, e); | |
}), | |
(e.assignedNodes = function(t) { | |
if ("slot" === this.node.localName) | |
return this.node.__shady_assignedNodes(t); | |
}), | |
n.Object.defineProperties(Le.prototype, { | |
activeElement: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
if (g(this.node) || this.node.nodeType === Node.DOCUMENT_NODE) | |
return this.node.__shady_activeElement; | |
} | |
}, | |
_activeElement: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.activeElement; | |
} | |
}, | |
host: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
if (g(this.node)) return this.node.host; | |
} | |
}, | |
parentNode: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_parentNode; | |
} | |
}, | |
firstChild: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_firstChild; | |
} | |
}, | |
lastChild: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_lastChild; | |
} | |
}, | |
nextSibling: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_nextSibling; | |
} | |
}, | |
previousSibling: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_previousSibling; | |
} | |
}, | |
childNodes: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_childNodes; | |
} | |
}, | |
parentElement: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_parentElement; | |
} | |
}, | |
firstElementChild: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_firstElementChild; | |
} | |
}, | |
lastElementChild: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_lastElementChild; | |
} | |
}, | |
nextElementSibling: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_nextElementSibling; | |
} | |
}, | |
previousElementSibling: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_previousElementSibling; | |
} | |
}, | |
children: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_children; | |
} | |
}, | |
childElementCount: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_childElementCount; | |
} | |
}, | |
shadowRoot: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_shadowRoot; | |
} | |
}, | |
assignedSlot: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_assignedSlot; | |
} | |
}, | |
isConnected: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_isConnected; | |
} | |
}, | |
innerHTML: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_innerHTML; | |
}, | |
set: function(t) { | |
this.node.__shady_innerHTML = t; | |
} | |
}, | |
textContent: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_textContent; | |
}, | |
set: function(t) { | |
this.node.__shady_textContent = t; | |
} | |
}, | |
slot: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_slot; | |
}, | |
set: function(t) { | |
this.node.__shady_slot = t; | |
} | |
}, | |
className: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return this.node.__shady_className; | |
}, | |
set: function(t) { | |
return (this.node.__shady_className = t); | |
} | |
} | |
}), | |
ee.forEach(function(t) { | |
Object.defineProperty(Le.prototype, t, { | |
get: function() { | |
return this.node["__shady_" + t]; | |
}, | |
set: function(e) { | |
this.node["__shady_" + t] = e; | |
}, | |
configurable: !0 | |
}); | |
}); | |
var Pe = new WeakMap(); | |
v.H && | |
((window.ShadyDOM = { | |
inUse: v.H, | |
patch: function(t) { | |
return q(t), U(t), t; | |
}, | |
isShadyRoot: g, | |
enqueue: P, | |
flush: k, | |
flushInitial: function(t) { | |
!t.F && t.g && wt(t); | |
}, | |
settings: v, | |
filterMutations: function(t, e) { | |
var n = e.getRootNode(); | |
return t | |
.map(function(t) { | |
var e = n === t.target.getRootNode(); | |
if (e && t.addedNodes) { | |
if ( | |
(e = Array.from(t.addedNodes).filter(function(t) { | |
return n === t.getRootNode(); | |
})).length | |
) | |
return ( | |
(t = Object.create(t)), | |
Object.defineProperty(t, "addedNodes", { | |
value: e, | |
configurable: !0 | |
}), | |
t | |
); | |
} else if (e) return t; | |
}) | |
.filter(function(t) { | |
return t; | |
}); | |
}, | |
observeChildren: function(t, e) { | |
var n = p(t); | |
n.l || (n.l = new jt()), n.l.A.add(e); | |
var r = n.l; | |
return { | |
S: e, | |
V: r, | |
U: t, | |
takeRecords: function() { | |
return r.takeRecords(); | |
} | |
}; | |
}, | |
unobserveChildren: function(t) { | |
var e = t && t.V; | |
e && (e.A.delete(t.S), e.A.size || (p(t.U).l = null)); | |
}, | |
deferConnectionCallbacks: v.deferConnectionCallbacks, | |
preferPerformance: v.preferPerformance, | |
handlesDynamicScoping: !0, | |
wrap: v.j | |
? function(t) { | |
if (g(t) || t instanceof Le) return t; | |
var e = Pe.get(t); | |
return e || ((e = new Le(t)), Pe.set(t, e)), e; | |
} | |
: function(t) { | |
return t; | |
}, | |
Wrapper: Le, | |
composedPath: function(t) { | |
return ( | |
t.__composedPath || (t.__composedPath = It(t.target, !0)), | |
t.__composedPath | |
); | |
}, | |
noPatch: v.j, | |
nativeMethods: re, | |
nativeTree: oe | |
}), | |
(function() { | |
var t = [ | |
"dispatchEvent", | |
"addEventListener", | |
"removeEventListener" | |
]; | |
window.EventTarget | |
? se(window.EventTarget.prototype, t) | |
: (se(Node.prototype, t), se(Window.prototype, t)), | |
ne | |
? se( | |
Node.prototype, | |
"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split( | |
" " | |
) | |
) | |
: ae(Node.prototype, { | |
parentNode: { | |
get: function() { | |
return (ce.currentNode = this), ce.parentNode(); | |
} | |
}, | |
firstChild: { | |
get: function() { | |
return (ce.currentNode = this), ce.firstChild(); | |
} | |
}, | |
lastChild: { | |
get: function() { | |
return (ce.currentNode = this), ce.lastChild(); | |
} | |
}, | |
previousSibling: { | |
get: function() { | |
return (ce.currentNode = this), ce.previousSibling(); | |
} | |
}, | |
nextSibling: { | |
get: function() { | |
return (ce.currentNode = this), ce.nextSibling(); | |
} | |
}, | |
childNodes: { | |
get: function() { | |
var t = []; | |
ce.currentNode = this; | |
for (var e = ce.firstChild(); e; ) | |
t.push(e), (e = ce.nextSibling()); | |
return t; | |
} | |
}, | |
parentElement: { | |
get: function() { | |
return (ue.currentNode = this), ue.parentNode(); | |
} | |
}, | |
textContent: { | |
get: function() { | |
switch (this.nodeType) { | |
case Node.ELEMENT_NODE: | |
case Node.DOCUMENT_FRAGMENT_NODE: | |
for ( | |
var t, | |
e = document.createTreeWalker( | |
this, | |
NodeFilter.SHOW_TEXT, | |
null, | |
!1 | |
), | |
n = ""; | |
(t = e.nextNode()); | |
) | |
n += t.nodeValue; | |
return n; | |
default: | |
return this.nodeValue; | |
} | |
}, | |
set: function(t) { | |
switch ((null == t && (t = ""), this.nodeType)) { | |
case Node.ELEMENT_NODE: | |
case Node.DOCUMENT_FRAGMENT_NODE: | |
de(this), | |
(0 < t.length || | |
this.nodeType === Node.ELEMENT_NODE) && | |
this.__shady_native_insertBefore( | |
document.createTextNode(t), | |
void 0 | |
); | |
break; | |
default: | |
this.nodeValue = t; | |
} | |
} | |
} | |
}), | |
se( | |
Node.prototype, | |
"appendChild insertBefore removeChild replaceChild cloneNode contains".split( | |
" " | |
) | |
), | |
(t = { | |
firstElementChild: { | |
get: function() { | |
return (ue.currentNode = this), ue.firstChild(); | |
} | |
}, | |
lastElementChild: { | |
get: function() { | |
return (ue.currentNode = this), ue.lastChild(); | |
} | |
}, | |
children: { | |
get: function() { | |
var t = []; | |
ue.currentNode = this; | |
for (var e = ue.firstChild(); e; ) | |
t.push(e), (e = ue.nextSibling()); | |
return M(t); | |
} | |
}, | |
childElementCount: { | |
get: function() { | |
return this.children ? this.children.length : 0; | |
} | |
} | |
}), | |
ne | |
? (se(Element.prototype, fe), | |
se(Element.prototype, [ | |
"previousElementSibling", | |
"nextElementSibling", | |
"innerHTML" | |
]), | |
Object.getOwnPropertyDescriptor( | |
HTMLElement.prototype, | |
"children" | |
) && se(HTMLElement.prototype, ["children"]), | |
Object.getOwnPropertyDescriptor( | |
HTMLElement.prototype, | |
"innerHTML" | |
) && se(HTMLElement.prototype, ["innerHTML"])) | |
: (ae(Element.prototype, t), | |
ae(Element.prototype, { | |
previousElementSibling: { | |
get: function() { | |
return (ue.currentNode = this), ue.previousSibling(); | |
} | |
}, | |
nextElementSibling: { | |
get: function() { | |
return (ue.currentNode = this), ue.nextSibling(); | |
} | |
}, | |
innerHTML: { | |
get: function() { | |
return lt(this, function(t) { | |
return t.__shady_native_childNodes; | |
}); | |
}, | |
set: function(t) { | |
var e = | |
"template" === this.localName ? this.content : this; | |
de(e); | |
var n = this.localName || "div"; | |
for ( | |
(n = | |
this.namespaceURI && | |
this.namespaceURI !== le.namespaceURI | |
? le.createElementNS(this.namespaceURI, n) | |
: le.createElement(n)).innerHTML = t, | |
t = "template" === this.localName ? n.content : n; | |
(n = t.__shady_native_firstChild); | |
) | |
e.__shady_native_insertBefore(n, void 0); | |
} | |
} | |
})), | |
se( | |
Element.prototype, | |
"setAttribute getAttribute hasAttribute removeAttribute focus blur".split( | |
" " | |
) | |
), | |
se(Element.prototype, he), | |
se(HTMLElement.prototype, ["focus", "blur", "contains"]), | |
ne && | |
se(HTMLElement.prototype, [ | |
"parentElement", | |
"children", | |
"innerHTML" | |
]), | |
window.HTMLTemplateElement && | |
se(window.HTMLTemplateElement.prototype, ["innerHTML"]), | |
ne | |
? se(DocumentFragment.prototype, fe) | |
: ae(DocumentFragment.prototype, t), | |
se(DocumentFragment.prototype, he), | |
ne | |
? (se(Document.prototype, fe), | |
se(Document.prototype, ["activeElement"])) | |
: ae(Document.prototype, t), | |
se(Document.prototype, ["importNode", "getElementById"]), | |
se(Document.prototype, he); | |
})(), | |
je("__shady_"), | |
Object.defineProperty(document, "_activeElement", rt.activeElement), | |
D(Window.prototype, Oe, "__shady_"), | |
v.j || | |
(je(), | |
(function() { | |
if ( | |
!Pt && | |
Object.getOwnPropertyDescriptor(Event.prototype, "isTrusted") | |
) { | |
var t = function() { | |
var t = new MouseEvent("click", { | |
bubbles: !0, | |
cancelable: !0, | |
composed: !0 | |
}); | |
this.__shady_dispatchEvent(t); | |
}; | |
Element.prototype.click | |
? (Element.prototype.click = t) | |
: HTMLElement.prototype.click && | |
(HTMLElement.prototype.click = t); | |
} | |
})()), | |
(function() { | |
for (var t in Wt) | |
window.__shady_native_addEventListener( | |
t, | |
function(t) { | |
t.__target || (Zt(t), zt(t)); | |
}, | |
!0 | |
); | |
})(), | |
(window.Event = Yt), | |
(window.CustomEvent = Qt), | |
(window.MouseEvent = te), | |
(window.ShadowRoot = gt)); | |
}.call(this)); | |
}.call(this, n(37))); | |
}, | |
function(t, e, n) { | |
(function(t) { | |
(function() { | |
"use strict"; | |
var e, | |
n = | |
"undefined" != typeof window && window === this | |
? this | |
: void 0 !== t && null != t | |
? t | |
: this; | |
function r() { | |
(this.end = this.start = 0), | |
(this.rules = this.parent = this.previous = null), | |
(this.cssText = this.parsedCssText = ""), | |
(this.atRule = !1), | |
(this.type = 0), | |
(this.parsedSelector = this.selector = this.keyframesName = ""); | |
} | |
function o(t) { | |
var e = i, | |
n = (t = t.replace(f, "").replace(h, "")), | |
o = new r(); | |
(o.start = 0), (o.end = n.length); | |
for (var a = o, s = 0, c = n.length; s < c; s++) | |
if ("{" === n[s]) { | |
a.rules || (a.rules = []); | |
var u = a, | |
l = u.rules[u.rules.length - 1] || null; | |
((a = new r()).start = s + 1), | |
(a.parent = u), | |
(a.previous = l), | |
u.rules.push(a); | |
} else "}" === n[s] && ((a.end = s + 1), (a = a.parent || o)); | |
return e(o, t); | |
} | |
function i(t, e) { | |
var n = e.substring(t.start, t.end - 1); | |
if ( | |
((t.parsedCssText = t.cssText = n.trim()), | |
t.parent && | |
((n = (n = (n = (function(t) { | |
return t.replace(/\\([0-9a-f]{1,6})\s/gi, function(t, e) { | |
for (e = 6 - (t = e).length; e--; ) t = "0" + t; | |
return "\\" + t; | |
}); | |
})( | |
(n = e.substring( | |
t.previous ? t.previous.end : t.parent.start, | |
t.start - 1 | |
)) | |
)).replace(g, " ")).substring(n.lastIndexOf(";") + 1)), | |
(n = t.parsedSelector = t.selector = n.trim()), | |
(t.atRule = 0 === n.indexOf("@")), | |
t.atRule | |
? 0 === n.indexOf("@media") | |
? (t.type = l) | |
: n.match(_) && | |
((t.type = u), | |
(t.keyframesName = t.selector.split(g).pop())) | |
: (t.type = 0 === n.indexOf("--") ? d : c)), | |
(n = t.rules)) | |
) | |
for (var r = 0, o = n.length, a = void 0; r < o && (a = n[r]); r++) | |
i(a, e); | |
return t; | |
} | |
var a, | |
s, | |
c = 1, | |
u = 7, | |
l = 4, | |
d = 1e3, | |
f = /\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim, | |
h = /@import[^;]*;/gim, | |
p = /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim, | |
y = /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim, | |
v = /@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim, | |
m = /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim, | |
_ = /^@[^\s]*keyframes/, | |
g = /\s+/g, | |
b = !(window.ShadyDOM && window.ShadyDOM.inUse); | |
function w(t) { | |
a = | |
(!t || !t.shimcssproperties) && | |
(b || | |
!( | |
navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/) || | |
!window.CSS || | |
!CSS.supports || | |
!CSS.supports("box-shadow", "0 0 0 var(--foo)") | |
)); | |
} | |
window.ShadyCSS && | |
void 0 !== window.ShadyCSS.cssBuild && | |
(s = window.ShadyCSS.cssBuild); | |
var E = !(!window.ShadyCSS || !window.ShadyCSS.disableRuntime); | |
window.ShadyCSS && void 0 !== window.ShadyCSS.nativeCss | |
? (a = window.ShadyCSS.nativeCss) | |
: window.ShadyCSS | |
? (w(window.ShadyCSS), (window.ShadyCSS = void 0)) | |
: w(window.WebComponents && window.WebComponents.flags); | |
var N = a, | |
S = s, | |
C = /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi, | |
x = /(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi, | |
T = /(--[\w-]+)\s*([:,;)]|$)/gi, | |
O = /(animation\s*:)|(animation-name\s*:)/, | |
M = /@media\s(.*)/, | |
D = /\{[^}]*\}/g, | |
A = new Set(); | |
function j(t, e) { | |
return t | |
? ("string" == typeof t && (t = o(t)), | |
e && k(t, e), | |
(function t(e, n, r) { | |
r = void 0 === r ? "" : r; | |
var o = ""; | |
if (e.cssText || e.rules) { | |
var i, | |
a = e.rules; | |
if ( | |
((i = a) && | |
(i = !( | |
(i = a[0]) && | |
i.selector && | |
0 === i.selector.indexOf("--") | |
)), | |
i) | |
) { | |
i = 0; | |
for (var s = a.length, c = void 0; i < s && (c = a[i]); i++) | |
o = t(c, n, o); | |
} else | |
(n = n | |
? e.cssText | |
: (n = (n = e.cssText).replace(p, "").replace(y, "")) | |
.replace(v, "") | |
.replace(m, "")), | |
(o = n.trim()) && (o = " " + o + "\n"); | |
} | |
return ( | |
o && | |
(e.selector && (r += e.selector + " {\n"), | |
(r += o), | |
e.selector && (r += "}\n\n")), | |
r | |
); | |
})(t, N)) | |
: ""; | |
} | |
function L(t) { | |
return ( | |
!t.__cssRules && t.textContent && (t.__cssRules = o(t.textContent)), | |
t.__cssRules || null | |
); | |
} | |
function P(t) { | |
return !!t.parent && t.parent.type === u; | |
} | |
function k(t, e, n, r) { | |
if (t) { | |
var o = !1, | |
i = t.type; | |
if (r && i === l) { | |
var a = t.selector.match(M); | |
a && (window.matchMedia(a[1]).matches || (o = !0)); | |
} | |
if ( | |
(i === c ? e(t) : n && i === u ? n(t) : i === d && (o = !0), | |
(t = t.rules) && !o) | |
) | |
for (o = 0, i = t.length, a = void 0; o < i && (a = t[o]); o++) | |
k(a, e, n, r); | |
} | |
} | |
function R(t, e, n, r) { | |
var o = document.createElement("style"); | |
return ( | |
e && o.setAttribute("scope", e), (o.textContent = t), B(o, n, r), o | |
); | |
} | |
var F = null; | |
function H(t) { | |
t = document.createComment(" Shady DOM styles for " + t + " "); | |
var e = document.head; | |
return ( | |
e.insertBefore(t, (F ? F.nextSibling : null) || e.firstChild), | |
(F = t) | |
); | |
} | |
function B(t, e, n) { | |
(e = e || document.head).insertBefore( | |
t, | |
(n && n.nextSibling) || e.firstChild | |
), | |
F | |
? t.compareDocumentPosition(F) === | |
Node.DOCUMENT_POSITION_PRECEDING && (F = t) | |
: (F = t); | |
} | |
function I(t, e) { | |
for (var n = 0, r = t.length; e < r; e++) | |
if ("(" === t[e]) n++; | |
else if (")" === t[e] && 0 == --n) return e; | |
return -1; | |
} | |
function U(t, e) { | |
b | |
? t.setAttribute("class", e) | |
: window.ShadyDOM.nativeMethods.setAttribute.call(t, "class", e); | |
} | |
var q = | |
(window.ShadyDOM && window.ShadyDOM.wrap) || | |
function(t) { | |
return t; | |
}; | |
function W(t) { | |
var e = t.localName, | |
n = ""; | |
return ( | |
e | |
? -1 < e.indexOf("-") || | |
((n = e), (e = (t.getAttribute && t.getAttribute("is")) || "")) | |
: ((e = t.is), (n = t.extends)), | |
{ is: e, s: n } | |
); | |
} | |
function V(t) { | |
for (var e = [], n = "", r = 0; 0 <= r && r < t.length; r++) | |
if ("(" === t[r]) { | |
var o = I(t, r); | |
(n += t.slice(r, o + 1)), (r = o); | |
} else "," === t[r] ? (e.push(n), (n = "")) : (n += t[r]); | |
return n && e.push(n), e; | |
} | |
function G(t) { | |
if (void 0 !== S) return S; | |
if (void 0 === t.__cssBuild) { | |
var e = t.getAttribute("css-build"); | |
if (e) t.__cssBuild = e; | |
else { | |
if ( | |
"" !== | |
(e = | |
(e = | |
"template" === t.localName | |
? t.content.firstChild | |
: t.firstChild) instanceof Comment && | |
"css-build" === (e = e.textContent.trim().split(":"))[0] | |
? e[1] | |
: "") | |
) { | |
var n = | |
"template" === t.localName | |
? t.content.firstChild | |
: t.firstChild; | |
n.parentNode.removeChild(n); | |
} | |
t.__cssBuild = e; | |
} | |
} | |
return t.__cssBuild || ""; | |
} | |
function z(t) { | |
return ( | |
!("" === (t = void 0 === t ? "" : t) || !N) && | |
(b ? "shadow" === t : "shady" === t) | |
); | |
} | |
function X() {} | |
function $(t, e, n) { | |
var r; | |
if ( | |
(e.nodeType === Node.ELEMENT_NODE && n(e), | |
(r = | |
"template" === e.localName | |
? (e.content || e._content || e).childNodes | |
: e.children || e.childNodes)) | |
) | |
for (e = 0; e < r.length; e++) $(t, r[e], n); | |
} | |
function K(t, e, n) { | |
if (e) | |
if (t.classList) | |
n | |
? (t.classList.remove("style-scope"), t.classList.remove(e)) | |
: (t.classList.add("style-scope"), t.classList.add(e)); | |
else if (t.getAttribute) { | |
var r = t.getAttribute("class"); | |
n | |
? r && U(t, (e = r.replace("style-scope", "").replace(e, ""))) | |
: U(t, (r ? r + " " : "") + "style-scope " + e); | |
} | |
} | |
function J(t, e, n) { | |
$(ft, t, function(t) { | |
K(t, e, !0), K(t, n); | |
}); | |
} | |
function Z(t, e) { | |
$(ft, t, function(t) { | |
K(t, e || "", !0); | |
}); | |
} | |
function Y(t, e, n, r, o) { | |
var i = ft; | |
return ( | |
"" === (o = void 0 === o ? "" : o) && | |
(b || "shady" === (void 0 === r ? "" : r) | |
? (o = j(e, n)) | |
: (o = | |
(function(t, e, n, r, o) { | |
var i = Q(n, r); | |
return ( | |
(n = n ? "." + n : ""), | |
j(e, function(e) { | |
e.c || | |
((e.selector = e.g = tt(t, e, t.b, n, i)), | |
(e.c = !0)), | |
o && o(e, n, i); | |
}) | |
); | |
})(i, e, (t = W(t)).is, t.s, n) + "\n\n")), | |
o.trim() | |
); | |
} | |
function Q(t, e) { | |
return e ? "[is=" + t + "]" : t; | |
} | |
function tt(t, e, n, r, o) { | |
var i = V(e.selector); | |
if (!P(e)) { | |
e = 0; | |
for (var a = i.length, s = void 0; e < a && (s = i[e]); e++) | |
i[e] = n.call(t, s, r, o); | |
} | |
return i | |
.filter(function(t) { | |
return !!t; | |
}) | |
.join(","); | |
} | |
function et(t) { | |
return t.replace(ot, function(t, e, n) { | |
return ( | |
-1 < n.indexOf("+") | |
? (n = n.replace(/\+/g, "___")) | |
: -1 < n.indexOf("___") && (n = n.replace(/___/g, "+")), | |
":" + e + "(" + n + ")" | |
); | |
}); | |
} | |
function nt(t, e) { | |
t = t.split(/(\[.+?\])/); | |
for (var n = [], r = 0; r < t.length; r++) | |
if (1 == r % 2) n.push(t[r]); | |
else { | |
var o = t[r]; | |
("" === o && r === t.length - 1) || | |
(((o = o.split(":"))[0] += e), n.push(o.join(":"))); | |
} | |
return n.join(""); | |
} | |
function rt(t) { | |
":root" === t.selector && (t.selector = "html"); | |
} | |
(X.prototype.b = function(t, e, n) { | |
var r = !1; | |
t = t.trim(); | |
var o = ot.test(t); | |
o && | |
(t = et( | |
(t = t.replace(ot, function(t, e, n) { | |
return ":" + e + "(" + n.replace(/\s/g, "") + ")"; | |
})) | |
)); | |
var i = dt.test(t); | |
if (i) { | |
var a = (function(t) { | |
for (var e, n = []; (e = t.match(dt)); ) { | |
var r = e.index, | |
o = I(t, r); | |
if (-1 === o) throw Error(e.input + " selector missing ')'"); | |
(e = t.slice(r, o + 1)), (t = t.replace(e, "")), n.push(e); | |
} | |
return { A: t, matches: n }; | |
})(t); | |
(t = a.A), (a = a.matches); | |
} | |
return ( | |
(t = (t = t.replace(st, ":host $1")).replace(it, function(t, o, i) { | |
return ( | |
r || | |
((t = (function(t, e, n, r) { | |
var o = t.indexOf("::slotted"); | |
if ( | |
(0 <= t.indexOf(":host") | |
? (t = (function(t, e) { | |
var n = t.match(ct); | |
return (n = (n && n[2].trim()) || "") | |
? n[0].match(at) | |
? t.replace(ct, function(t, n, r) { | |
return e + r; | |
}) | |
: n.split(at)[0] === e | |
? n | |
: "should_not_match" | |
: t.replace(":host", e); | |
})(t, r)) | |
: 0 !== o && (t = n ? nt(t, n) : t), | |
(n = !1), | |
0 <= o && ((e = ""), (n = !0)), | |
n) | |
) { | |
var i = !0; | |
n && | |
(t = t.replace(ut, function(t, e) { | |
return " > " + e; | |
})); | |
} | |
return { value: t, G: e, stop: i }; | |
})(i, o, e, n)), | |
(r = r || t.stop), | |
(o = t.G), | |
(i = t.value)), | |
o + i | |
); | |
})), | |
i && | |
(t = (function(t, e) { | |
var n = t.split(""); | |
return e.reduce(function(t, e, r) { | |
return t + e + n[r + 1]; | |
}, n[0]); | |
})(t, a)), | |
o && (t = et(t)), | |
t.replace(lt, function(t, e, n, r) { | |
return ( | |
'[dir="' + | |
n + | |
'"] ' + | |
e + | |
r + | |
", " + | |
e + | |
'[dir="' + | |
n + | |
'"]' + | |
r | |
); | |
}) | |
); | |
}), | |
(X.prototype.c = function(t) { | |
return t.match(":host") | |
? "" | |
: t.match("::slotted") | |
? this.b(t, ":not(.style-scope)") | |
: nt(t.trim(), ":not(.style-scope)"); | |
}), | |
n.Object.defineProperties(X.prototype, { | |
a: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return "style-scope"; | |
} | |
} | |
}); | |
var ot = /:(nth[-\w]+)\(([^)]+)\)/, | |
it = /(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g, | |
at = /[[.:#*]/, | |
st = /^(::slotted)/, | |
ct = /(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/, | |
ut = /(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/, | |
lt = /(.*):dir\((?:(ltr|rtl))\)(.*)/, | |
dt = /:(?:matches|any|-(?:webkit|moz)-any)/, | |
ft = new X(); | |
function ht(t, e, n, r, o) { | |
(this.o = t || null), | |
(this.b = e || null), | |
(this.w = n || []), | |
(this.i = null), | |
(this.cssBuild = o || ""), | |
(this.s = r || ""), | |
(this.a = this.j = this.m = null); | |
} | |
function pt(t) { | |
return t ? t.__styleInfo : null; | |
} | |
function yt(t, e) { | |
return (t.__styleInfo = e); | |
} | |
function vt(t) { | |
var e = | |
this.matches || | |
this.matchesSelector || | |
this.mozMatchesSelector || | |
this.msMatchesSelector || | |
this.oMatchesSelector || | |
this.webkitMatchesSelector; | |
return e && e.call(this, t); | |
} | |
(ht.prototype.c = function() { | |
return this.o; | |
}), | |
(ht.prototype._getStyleRules = ht.prototype.c); | |
var mt = navigator.userAgent.match("Trident"); | |
function _t() {} | |
function gt(t) { | |
if (!t.f) { | |
var e = {}, | |
n = {}; | |
bt(t, n) && ((e.l = n), (t.rules = null)), | |
(e.cssText = t.parsedCssText.replace(D, "").replace(C, "")), | |
(t.f = e); | |
} | |
} | |
function bt(t, e) { | |
var n = t.f; | |
if (!n) { | |
n = t.parsedCssText; | |
for (var r; (t = C.exec(n)); ) | |
("inherit" === (r = (t[2] || t[3]).trim()) && "unset" === r) || | |
(e[t[1].trim()] = r), | |
(r = !0); | |
return r; | |
} | |
if (n.l) return Object.assign(e, n.l), !0; | |
} | |
function wt(t, e, n) { | |
return ( | |
e && | |
(e = | |
0 <= e.indexOf(";") | |
? Et(t, e, n) | |
: (function t(e, n) { | |
var r = e.indexOf("var("); | |
if (-1 === r) return n(e, "", "", ""); | |
var o = I(e, r + 3), | |
i = e.substring(r + 4, o); | |
return ( | |
(r = e.substring(0, r)), | |
(e = t(e.substring(o + 1), n)), | |
-1 === (o = i.indexOf(",")) | |
? n(r, i.trim(), "", e) | |
: n( | |
r, | |
i.substring(0, o).trim(), | |
i.substring(o + 1).trim(), | |
e | |
) | |
); | |
})(e, function(e, r, o, i) { | |
return r | |
? ((r = wt(t, n[r], n)) && "initial" !== r | |
? "apply-shim-inherit" === r && (r = "inherit") | |
: (r = wt(t, n[o] || o, n) || o), | |
e + (r || "") + i) | |
: e + i; | |
})), | |
(e && e.trim()) || "" | |
); | |
} | |
function Et(t, e, n) { | |
e = e.split(";"); | |
for (var r, o, i = 0; i < e.length; i++) | |
if ((r = e[i])) { | |
if (((x.lastIndex = 0), (o = x.exec(r)))) r = wt(t, n[o[1]], n); | |
else if (-1 !== (o = r.indexOf(":"))) { | |
var a = r.substring(o); | |
(a = wt(t, (a = a.trim()), n) || a), | |
(r = r.substring(0, o) + a); | |
} | |
e[i] = | |
r && r.lastIndexOf(";") === r.length - 1 | |
? r.slice(0, -1) | |
: r || ""; | |
} | |
return e.join(";"); | |
} | |
function Nt(t, e, n) { | |
var r = {}, | |
o = {}; | |
return ( | |
k( | |
e, | |
function(e) { | |
!(function(t, e, n, r) { | |
if ((e.f || gt(e), e.f.l)) { | |
var o = W(t); | |
(t = o.is), (o = o.s), (o = t ? Q(t, o) : "html"); | |
var i = e.parsedSelector, | |
a = ":host > *" === i || "html" === i, | |
s = 0 === i.indexOf(":host") && !a; | |
"shady" === n && | |
(s = | |
!(a = | |
i === o + " > *." + o || -1 !== i.indexOf("html")) && | |
0 === i.indexOf(o)), | |
(a || s) && | |
((n = o), | |
s && | |
(e.g || (e.g = tt(ft, e, ft.b, t ? "." + t : "", o)), | |
(n = e.g || o)), | |
r({ A: n, K: s, T: a })); | |
} | |
})(t, e, n, function(n) { | |
vt.call(t._element || t, n.A) && (n.K ? bt(e, r) : bt(e, o)); | |
}); | |
}, | |
null, | |
!0 | |
), | |
{ M: o, J: r } | |
); | |
} | |
function St(t, e, n, r) { | |
var o = W(e), | |
i = Q(o.is, o.s), | |
a = new RegExp( | |
"(?:^|[^.#[:])" + | |
(e.extends ? "\\" + i.slice(0, -1) + "\\]" : i) + | |
"($|[.:[\\s>+~])" | |
), | |
s = pt(e); | |
(o = s.o), (s = s.cssBuild); | |
var c = (function(t, e) { | |
t = t.b; | |
var n = {}; | |
if (!b && t) | |
for (var r = 0, o = t[r]; r < t.length; o = t[++r]) { | |
var i = o, | |
a = e; | |
(i.h = new RegExp("\\b" + i.keyframesName + "(?!\\B|-)", "g")), | |
(i.a = i.keyframesName + "-" + a), | |
(i.g = i.g || i.selector), | |
(i.selector = i.g.replace(i.keyframesName, i.a)), | |
(n[o.keyframesName] = Ct(o)); | |
} | |
return n; | |
})(o, r); | |
return Y( | |
e, | |
o, | |
function(e) { | |
var o = ""; | |
if ( | |
(e.f || gt(e), | |
e.f.cssText && (o = Et(t, e.f.cssText, n)), | |
(e.cssText = o), | |
!b && !P(e) && e.cssText) | |
) { | |
var s = (o = e.cssText); | |
if ((null == e.C && (e.C = O.test(o)), e.C)) | |
if (null == e.u) | |
for (var u in ((e.u = []), c)) | |
o !== (s = (s = c[u])(o)) && ((o = s), e.u.push(u)); | |
else { | |
for (u = 0; u < e.u.length; ++u) o = (s = c[e.u[u]])(o); | |
s = o; | |
} | |
(e.cssText = s), | |
(e.g = e.g || e.selector), | |
(o = "." + r), | |
(s = 0); | |
for ( | |
var l = (u = V(e.g)).length, d = void 0; | |
s < l && (d = u[s]); | |
s++ | |
) | |
u[s] = d.match(a) ? d.replace(i, o) : o + " " + d; | |
e.selector = u.join(","); | |
} | |
}, | |
s | |
); | |
} | |
function Ct(t) { | |
return function(e) { | |
return e.replace(t.h, t.a); | |
}; | |
} | |
function xt(t, e) { | |
var n = Tt, | |
r = L(t); | |
t.textContent = j(r, function(t) { | |
var r = (t.cssText = t.parsedCssText); | |
t.f && | |
t.f.cssText && | |
((r = r.replace(p, "").replace(y, "")), | |
(t.cssText = Et(n, r, e))); | |
}); | |
} | |
n.Object.defineProperties(_t.prototype, { | |
a: { | |
configurable: !0, | |
enumerable: !0, | |
get: function() { | |
return "x-scope"; | |
} | |
} | |
}); | |
var Tt = new _t(), | |
Ot = {}, | |
Mt = window.customElements; | |
if (Mt && !b && !E) { | |
var Dt = Mt.define; | |
Mt.define = function(t, e, n) { | |
Ot[t] || (Ot[t] = H(t)), Dt.call(Mt, t, e, n); | |
}; | |
} | |
function At() { | |
this.cache = {}; | |
} | |
function jt() {} | |
At.prototype.store = function(t, e, n, r) { | |
var o = this.cache[t] || []; | |
o.push({ l: e, styleElement: n, j: r }), | |
100 < o.length && o.shift(), | |
(this.cache[t] = o); | |
}; | |
var Lt = new RegExp(ft.a + "\\s*([^\\s]*)"); | |
function Pt(t) { | |
return (t = (t.classList && t.classList.value | |
? t.classList.value | |
: t.getAttribute("class") || "" | |
).match(Lt)) | |
? t[1] | |
: ""; | |
} | |
function kt(t) { | |
var e = q(t).getRootNode(); | |
return e === t || e === t.ownerDocument | |
? "" | |
: (t = e.host) | |
? W(t).is | |
: ""; | |
} | |
function Rt(t) { | |
for (var e = 0; e < t.length; e++) { | |
var n = t[e]; | |
if ( | |
n.target !== document.documentElement && | |
n.target !== document.head | |
) | |
for (var r = 0; r < n.addedNodes.length; r++) { | |
var o = n.addedNodes[r]; | |
if (o.nodeType === Node.ELEMENT_NODE) { | |
var i = o.getRootNode(), | |
a = Pt(o); | |
if ( | |
a && | |
i === o.ownerDocument && | |
(("style" !== o.localName && "template" !== o.localName) || | |
"" === G(o)) | |
) | |
Z(o, a); | |
else if (i instanceof ShadowRoot) | |
for ( | |
(i = kt(o)) !== a && J(o, a, i), | |
o = window.ShadyDOM.nativeMethods.querySelectorAll.call( | |
o, | |
":not(." + ft.a + ")" | |
), | |
a = 0; | |
a < o.length; | |
a++ | |
) { | |
var s = kt((i = o[a])); | |
s && K(i, s); | |
} | |
} | |
} | |
} | |
} | |
if ( | |
!(b || (window.ShadyDOM && window.ShadyDOM.handlesDynamicScoping)) | |
) { | |
var Ft = new MutationObserver(Rt), | |
Ht = function(t) { | |
Ft.observe(t, { childList: !0, subtree: !0 }); | |
}; | |
if ( | |
window.customElements && | |
!window.customElements.polyfillWrapFlushCallback | |
) | |
Ht(document); | |
else { | |
var Bt = function() { | |
Ht(document.body); | |
}; | |
window.HTMLImports | |
? window.HTMLImports.whenReady(Bt) | |
: requestAnimationFrame(function() { | |
if ("loading" === document.readyState) { | |
var t = function() { | |
Bt(), document.removeEventListener("readystatechange", t); | |
}; | |
document.addEventListener("readystatechange", t); | |
} else Bt(); | |
}); | |
} | |
jt = function() { | |
Rt(Ft.takeRecords()); | |
}; | |
} | |
var It = jt, | |
Ut = {}, | |
qt = Promise.resolve(); | |
function Wt(t) { | |
(t = Ut[t]) && | |
((t._applyShimCurrentVersion = t._applyShimCurrentVersion || 0), | |
(t._applyShimValidatingVersion = | |
t._applyShimValidatingVersion || 0), | |
(t._applyShimNextVersion = (t._applyShimNextVersion || 0) + 1)); | |
} | |
function Vt(t) { | |
return t._applyShimCurrentVersion === t._applyShimNextVersion; | |
} | |
var Gt = {}, | |
zt = new At(); | |
function Xt() { | |
(this.B = {}), (this.c = document.documentElement); | |
var t = new r(); | |
(t.rules = []), | |
(this.h = yt(this.c, new ht(t))), | |
(this.v = !1), | |
(this.b = this.a = null); | |
} | |
function $t(t) { | |
var e = W(t), | |
n = e.is; | |
e = e.s; | |
var r = Ot[n] || null, | |
o = Ut[n]; | |
if (o) | |
return ( | |
yt(t, (e = new ht((n = o._styleAst), r, o.a, e, (o = G(o))))), e | |
); | |
} | |
function Kt(t) { | |
!t.a && | |
window.ShadyCSS && | |
window.ShadyCSS.ApplyShim && | |
((t.a = window.ShadyCSS.ApplyShim), (t.a.invalidCallback = Wt)), | |
(function(t) { | |
!t.b && | |
window.ShadyCSS && | |
window.ShadyCSS.CustomStyleInterface && | |
((t.b = window.ShadyCSS.CustomStyleInterface), | |
(t.b.transformCallback = function(e) { | |
t.D(e); | |
}), | |
(t.b.validateCallback = function() { | |
requestAnimationFrame(function() { | |
(t.b.enqueued || t.v) && t.flushCustomStyles(); | |
}); | |
})); | |
})(t); | |
} | |
function Jt(t, e, n) { | |
var r = W(e).is; | |
if (n.i) { | |
var o, | |
i = n.i; | |
for (o in i) | |
null === o | |
? e.style.removeProperty(o) | |
: e.style.setProperty(o, i[o]); | |
} | |
(!(i = Ut[r]) && e !== t.c) || | |
(i && "" !== G(i)) || | |
!i || | |
!i._style || | |
Vt(i) || | |
((Vt(i) || | |
i._applyShimValidatingVersion !== i._applyShimNextVersion) && | |
(Kt(t), | |
t.a && t.a.transformRules(i._styleAst, r), | |
(i._style.textContent = Y(e, n.o)), | |
(function(t) { | |
(t._applyShimValidatingVersion = t._applyShimNextVersion), | |
t._validating || | |
((t._validating = !0), | |
qt.then(function() { | |
(t._applyShimCurrentVersion = t._applyShimNextVersion), | |
(t._validating = !1); | |
})); | |
})(i)), | |
b && | |
(t = e.shadowRoot) && | |
(t = t.querySelector("style")) && | |
(t.textContent = Y(e, n.o)), | |
(n.o = i._styleAst)); | |
} | |
function Zt(t, e) { | |
return (e = q(e).getRootNode().host) | |
? pt(e) || $t(e) | |
? e | |
: Zt(t, e) | |
: t.c; | |
} | |
function Yt(t, e, n) { | |
var r = Zt(t, e), | |
o = pt(r), | |
i = o.m; | |
for (var a in (r === t.c || i || (Yt(t, r, o), (i = o.m)), | |
(t = Object.create(i || null)), | |
(r = Nt(e, n.o, n.cssBuild)), | |
(e = (function(t, e) { | |
var n = {}, | |
r = []; | |
return ( | |
k( | |
t, | |
function(t) { | |
t.f || gt(t); | |
var o = t.g || t.parsedSelector; | |
e && | |
t.f.l && | |
o && | |
vt.call(e, o) && | |
(bt(t, n), | |
(t = t.index), | |
(o = parseInt(t / 32, 10)), | |
(r[o] = (r[o] || 0) | (1 << t % 32))); | |
}, | |
null, | |
!0 | |
), | |
{ l: n, key: r } | |
); | |
})(o.o, e).l), | |
Object.assign(t, r.J, e, r.M), | |
(e = n.i))) | |
((o = e[a]) || 0 === o) && (t[a] = o); | |
for ( | |
a = Tt, e = Object.getOwnPropertyNames(t), o = 0; | |
o < e.length; | |
o++ | |
) | |
t[(r = e[o])] = wt(a, t[r], t); | |
n.m = t; | |
} | |
((e = Xt.prototype).flush = function() { | |
It(); | |
}), | |
(e.I = function(t) { | |
return L(t); | |
}), | |
(e.R = function(t) { | |
return j(t); | |
}), | |
(e.prepareTemplate = function(t, e, n) { | |
this.prepareTemplateDom(t, e), this.prepareTemplateStyles(t, e, n); | |
}), | |
(e.prepareTemplateStyles = function(t, e, n) { | |
if (!t._prepared && !E) { | |
b || Ot[e] || (Ot[e] = H(e)), | |
(t._prepared = !0), | |
(t.name = e), | |
(t.extends = n), | |
(Ut[e] = t); | |
var r = G(t), | |
i = z(r); | |
n = { is: e, extends: n }; | |
for ( | |
var a = [], s = t.content.querySelectorAll("style"), c = 0; | |
c < s.length; | |
c++ | |
) { | |
var u = s[c]; | |
if (u.hasAttribute("shady-unscoped")) { | |
if (!b) { | |
var l = u.textContent; | |
A.has(l) || | |
(A.add(l), | |
(l = u.cloneNode(!0)), | |
document.head.appendChild(l)), | |
u.parentNode.removeChild(u); | |
} | |
} else a.push(u.textContent), u.parentNode.removeChild(u); | |
} | |
(a = a.join("").trim() + (Gt[e] || "")), | |
Kt(this), | |
i || | |
((s = !r) && | |
((s = x.test(a) || C.test(a)), | |
(x.lastIndex = 0), | |
(C.lastIndex = 0)), | |
(c = o(a)), | |
s && N && this.a && this.a.transformRules(c, e), | |
(t._styleAst = c)), | |
(s = []), | |
N || | |
(s = (function(t) { | |
var e = {}, | |
n = [], | |
r = 0; | |
for (var o in (k( | |
t, | |
function(t) { | |
gt(t), (t.index = r++), (t = t.f.cssText); | |
for (var n; (n = T.exec(t)); ) { | |
var o = n[1]; | |
":" !== n[2] && (e[o] = !0); | |
} | |
}, | |
function(t) { | |
n.push(t); | |
} | |
), | |
(t.b = n), | |
(t = []), | |
e)) | |
t.push(o); | |
return t; | |
})(t._styleAst)), | |
(s.length && !N) || | |
((c = b ? t.content : null), | |
(e = Ot[e] || null), | |
(r = (r = Y(n, t._styleAst, null, r, i ? a : "")).length | |
? R(r, n.is, c, e) | |
: null), | |
(t._style = r)), | |
(t.a = s); | |
} | |
}), | |
(e.L = function(t, e) { | |
Gt[e] = t.join(" "); | |
}), | |
(e.prepareTemplateDom = function(t, e) { | |
if (!E) { | |
var n = G(t); | |
b || | |
"shady" === n || | |
t._domPrepared || | |
((t._domPrepared = !0), | |
(function(t, e) { | |
$(ft, t, function(t) { | |
K(t, e || ""); | |
}); | |
})(t.content, e)); | |
} | |
}), | |
(e.flushCustomStyles = function() { | |
if (!E && (Kt(this), this.b)) { | |
var t = this.b.processStyles(); | |
if (this.b.enqueued && !z(this.h.cssBuild)) { | |
if (N) { | |
if (!this.h.cssBuild) | |
for (var e = 0; e < t.length; e++) { | |
var n = this.b.getStyleForCustomStyle(t[e]); | |
if (n && N && this.a) { | |
var r = L(n); | |
Kt(this), | |
this.a.transformRules(r), | |
(n.textContent = j(r)); | |
} | |
} | |
} else { | |
for (Yt(this, this.c, this.h), e = 0; e < t.length; e++) | |
(n = this.b.getStyleForCustomStyle(t[e])) && | |
xt(n, this.h.m); | |
this.v && this.styleDocument(); | |
} | |
this.b.enqueued = !1; | |
} | |
} | |
}), | |
(e.styleElement = function(t, e) { | |
if (E) { | |
if (e) { | |
pt(t) || yt(t, new ht(null)); | |
var n = pt(t); | |
(n.i = n.i || {}), Object.assign(n.i, e), Jt(this, t, n); | |
} | |
} else if ((n = pt(t) || $t(t))) | |
if ( | |
(t !== this.c && (this.v = !0), | |
e && ((n.i = n.i || {}), Object.assign(n.i, e)), | |
N) | |
) | |
Jt(this, t, n); | |
else if ((this.flush(), Yt(this, t, n), n.w && n.w.length)) { | |
var r; | |
e = W(t).is; | |
t: { | |
if ((r = zt.cache[e])) | |
for (var o = r.length - 1; 0 <= o; o--) { | |
var i = r[o]; | |
e: { | |
for (var a = n.w, s = 0; s < a.length; s++) { | |
var c = a[s]; | |
if (i.l[c] !== n.m[c]) { | |
a = !1; | |
break e; | |
} | |
} | |
a = !0; | |
} | |
if (a) { | |
r = i; | |
break t; | |
} | |
} | |
r = void 0; | |
} | |
(a = r ? r.styleElement : null), | |
(o = n.j), | |
(i = r && r.j) || | |
(i = e + "-" + (i = this.B[e] = (this.B[e] || 0) + 1)), | |
(n.j = i), | |
(i = n.j), | |
(s = Tt), | |
(s = a ? a.textContent || "" : St(s, t, n.m, i)); | |
var u = (c = pt(t)).a; | |
u && | |
!b && | |
u !== a && | |
(u._useCount--, | |
0 >= u._useCount && | |
u.parentNode && | |
u.parentNode.removeChild(u)), | |
b | |
? c.a | |
? ((c.a.textContent = s), (a = c.a)) | |
: s && (a = R(s, i, t.shadowRoot, c.b)) | |
: a | |
? a.parentNode || | |
(mt && -1 < s.indexOf("@media") && (a.textContent = s), | |
B(a, null, c.b)) | |
: s && (a = R(s, i, null, c.b)), | |
a && | |
((a._useCount = a._useCount || 0), | |
c.a != a && a._useCount++, | |
(c.a = a)), | |
(i = a), | |
b || | |
((a = n.j), | |
(c = s = t.getAttribute("class") || ""), | |
o && | |
(c = s.replace( | |
new RegExp("\\s*x-scope\\s*" + o + "\\s*", "g"), | |
" " | |
)), | |
s !== (c += (c ? " " : "") + "x-scope " + a) && U(t, c)), | |
r || zt.store(e, n.m, i, n.j); | |
} | |
}), | |
(e.styleDocument = function(t) { | |
this.styleSubtree(this.c, t); | |
}), | |
(e.styleSubtree = function(t, e) { | |
var n = q(t), | |
r = n.shadowRoot; | |
if ( | |
((r || t === this.c) && this.styleElement(t, e), | |
(t = r && (r.children || r.childNodes))) | |
) | |
for (n = 0; n < t.length; n++) this.styleSubtree(t[n]); | |
else if ((n = n.children || n.childNodes)) | |
for (t = 0; t < n.length; t++) this.styleSubtree(n[t]); | |
}), | |
(e.D = function(t) { | |
var e = this, | |
n = G(t); | |
if ((n !== this.h.cssBuild && (this.h.cssBuild = n), !z(n))) { | |
var r = L(t); | |
k(r, function(t) { | |
if (b) rt(t); | |
else { | |
var r = ft; | |
(t.selector = t.parsedSelector), | |
rt(t), | |
(t.selector = t.g = tt(r, t, r.c, void 0, void 0)); | |
} | |
N && "" === n && (Kt(e), e.a && e.a.transformRule(t)); | |
}), | |
N ? (t.textContent = j(r)) : this.h.o.rules.push(r); | |
} | |
}), | |
(e.getComputedStyleValue = function(t, e) { | |
var n; | |
return ( | |
N || (n = (pt(t) || pt(Zt(this, t))).m[e]), | |
(n = n || window.getComputedStyle(t).getPropertyValue(e)) | |
? n.trim() | |
: "" | |
); | |
}), | |
(e.P = function(t, e) { | |
var n = q(t).getRootNode(); | |
if ( | |
((e = e ? e.split(/\s/) : []), !(n = n.host && n.host.localName)) | |
) { | |
var r = t.getAttribute("class"); | |
if (r) { | |
r = r.split(/\s/); | |
for (var o = 0; o < r.length; o++) | |
if (r[o] === ft.a) { | |
n = r[o + 1]; | |
break; | |
} | |
} | |
} | |
n && e.push(ft.a, n), | |
N || ((n = pt(t)) && n.j && e.push(Tt.a, n.j)), | |
U(t, e.join(" ")); | |
}), | |
(e.F = function(t) { | |
return pt(t); | |
}), | |
(e.O = function(t, e) { | |
K(t, e); | |
}), | |
(e.S = function(t, e) { | |
K(t, e, !0); | |
}), | |
(e.N = function(t) { | |
return kt(t); | |
}), | |
(e.H = function(t) { | |
return Pt(t); | |
}), | |
(Xt.prototype.flush = Xt.prototype.flush), | |
(Xt.prototype.prepareTemplate = Xt.prototype.prepareTemplate), | |
(Xt.prototype.styleElement = Xt.prototype.styleElement), | |
(Xt.prototype.styleDocument = Xt.prototype.styleDocument), | |
(Xt.prototype.styleSubtree = Xt.prototype.styleSubtree), | |
(Xt.prototype.getComputedStyleValue = | |
Xt.prototype.getComputedStyleValue), | |
(Xt.prototype.setElementClass = Xt.prototype.P), | |
(Xt.prototype._styleInfoForNode = Xt.prototype.F), | |
(Xt.prototype.transformCustomStyleForDocument = Xt.prototype.D), | |
(Xt.prototype.getStyleAst = Xt.prototype.I), | |
(Xt.prototype.styleAstToString = Xt.prototype.R), | |
(Xt.prototype.flushCustomStyles = Xt.prototype.flushCustomStyles), | |
(Xt.prototype.scopeNode = Xt.prototype.O), | |
(Xt.prototype.unscopeNode = Xt.prototype.S), | |
(Xt.prototype.scopeForNode = Xt.prototype.N), | |
(Xt.prototype.currentScopeForNode = Xt.prototype.H), | |
(Xt.prototype.prepareAdoptedCssText = Xt.prototype.L), | |
Object.defineProperties(Xt.prototype, { | |
nativeShadow: { | |
get: function() { | |
return b; | |
} | |
}, | |
nativeCss: { | |
get: function() { | |
return N; | |
} | |
} | |
}); | |
var Qt, | |
te, | |
ee = new Xt(); | |
window.ShadyCSS && | |
((Qt = window.ShadyCSS.ApplyShim), | |
(te = window.ShadyCSS.CustomStyleInterface)), | |
(window.ShadyCSS = { | |
ScopingShim: ee, | |
prepareTemplate: function(t, e, n) { | |
ee.flushCustomStyles(), ee.prepareTemplate(t, e, n); | |
}, | |
prepareTemplateDom: function(t, e) { | |
ee.prepareTemplateDom(t, e); | |
}, | |
prepareTemplateStyles: function(t, e, n) { | |
ee.flushCustomStyles(), ee.prepareTemplateStyles(t, e, n); | |
}, | |
styleSubtree: function(t, e) { | |
ee.flushCustomStyles(), ee.styleSubtree(t, e); | |
}, | |
styleElement: function(t) { | |
ee.flushCustomStyles(), ee.styleElement(t); | |
}, | |
styleDocument: function(t) { | |
ee.flushCustomStyles(), ee.styleDocument(t); | |
}, | |
flushCustomStyles: function() { | |
ee.flushCustomStyles(); | |
}, | |
getComputedStyleValue: function(t, e) { | |
return ee.getComputedStyleValue(t, e); | |
}, | |
nativeCss: N, | |
nativeShadow: b, | |
cssBuild: S, | |
disableRuntime: E | |
}), | |
Qt && (window.ShadyCSS.ApplyShim = Qt), | |
te && (window.ShadyCSS.CustomStyleInterface = te); | |
}.call(this)); | |
}.call(this, n(37))); | |
}, | |
function(t, e) { | |
(function() { | |
"use strict"; | |
var t = new Set( | |
"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split( | |
" " | |
) | |
); | |
function e(e) { | |
var n = t.has(e); | |
return (e = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e)), !n && e; | |
} | |
function n(t) { | |
var e = t.isConnected; | |
if (void 0 !== e) return e; | |
for (; t && !(t.__CE_isImportDocument || t instanceof Document); ) | |
t = | |
t.parentNode || | |
(window.ShadowRoot && t instanceof ShadowRoot ? t.host : void 0); | |
return !(!t || !(t.__CE_isImportDocument || t instanceof Document)); | |
} | |
function r(t, e) { | |
for (; e && e !== t && !e.nextSibling; ) e = e.parentNode; | |
return e && e !== t ? e.nextSibling : null; | |
} | |
function o(t, e, n) { | |
n = void 0 === n ? new Set() : n; | |
for (var i = t; i; ) { | |
if (i.nodeType === Node.ELEMENT_NODE) { | |
var a = i; | |
e(a); | |
var s = a.localName; | |
if ("link" === s && "import" === a.getAttribute("rel")) { | |
if ((i = a.import) instanceof Node && !n.has(i)) | |
for (n.add(i), i = i.firstChild; i; i = i.nextSibling) | |
o(i, e, n); | |
i = r(t, a); | |
continue; | |
} | |
if ("template" === s) { | |
i = r(t, a); | |
continue; | |
} | |
if ((a = a.__CE_shadowRoot)) | |
for (a = a.firstChild; a; a = a.nextSibling) o(a, e, n); | |
} | |
i = i.firstChild ? i.firstChild : r(t, i); | |
} | |
} | |
function i(t, e, n) { | |
t[e] = n; | |
} | |
function a() { | |
(this.a = new Map()), | |
(this.f = new Map()), | |
(this.c = []), | |
(this.b = !1); | |
} | |
function s(t, e) { | |
(t.b = !0), t.c.push(e); | |
} | |
function c(t, e) { | |
t.b && | |
o(e, function(e) { | |
return u(t, e); | |
}); | |
} | |
function u(t, e) { | |
if (t.b && !e.__CE_patched) { | |
e.__CE_patched = !0; | |
for (var n = 0; n < t.c.length; n++) t.c[n](e); | |
} | |
} | |
function l(t, e) { | |
var n = []; | |
for ( | |
o(e, function(t) { | |
return n.push(t); | |
}), | |
e = 0; | |
e < n.length; | |
e++ | |
) { | |
var r = n[e]; | |
1 === r.__CE_state ? t.connectedCallback(r) : h(t, r); | |
} | |
} | |
function d(t, e) { | |
var n = []; | |
for ( | |
o(e, function(t) { | |
return n.push(t); | |
}), | |
e = 0; | |
e < n.length; | |
e++ | |
) { | |
var r = n[e]; | |
1 === r.__CE_state && t.disconnectedCallback(r); | |
} | |
} | |
function f(t, e, n) { | |
var r = (n = void 0 === n ? {} : n).u || new Set(), | |
i = | |
n.h || | |
function(e) { | |
return h(t, e); | |
}, | |
a = []; | |
if ( | |
(o( | |
e, | |
function(e) { | |
if ( | |
"link" === e.localName && | |
"import" === e.getAttribute("rel") | |
) { | |
var n = e.import; | |
n instanceof Node && | |
((n.__CE_isImportDocument = !0), (n.__CE_hasRegistry = !0)), | |
n && "complete" === n.readyState | |
? (n.__CE_documentLoadHandled = !0) | |
: e.addEventListener("load", function() { | |
var n = e.import; | |
if (!n.__CE_documentLoadHandled) { | |
n.__CE_documentLoadHandled = !0; | |
var o = new Set(r); | |
o.delete(n), f(t, n, { u: o, h: i }); | |
} | |
}); | |
} else a.push(e); | |
}, | |
r | |
), | |
t.b) | |
) | |
for (e = 0; e < a.length; e++) u(t, a[e]); | |
for (e = 0; e < a.length; e++) i(a[e]); | |
} | |
function h(t, e) { | |
if (void 0 === e.__CE_state) { | |
var r = e.ownerDocument; | |
if ( | |
(r.defaultView || | |
(r.__CE_isImportDocument && r.__CE_hasRegistry)) && | |
(r = t.a.get(e.localName)) | |
) { | |
r.constructionStack.push(e); | |
var o = r.constructorFunction; | |
try { | |
try { | |
if (new o() !== e) | |
throw Error( | |
"The custom element constructor did not produce the element being upgraded." | |
); | |
} finally { | |
r.constructionStack.pop(); | |
} | |
} catch (t) { | |
throw ((e.__CE_state = 2), t); | |
} | |
if ( | |
((e.__CE_state = 1), | |
(e.__CE_definition = r), | |
r.attributeChangedCallback) | |
) | |
for (r = r.observedAttributes, o = 0; o < r.length; o++) { | |
var i = r[o], | |
a = e.getAttribute(i); | |
null !== a && t.attributeChangedCallback(e, i, null, a, null); | |
} | |
n(e) && t.connectedCallback(e); | |
} | |
} | |
} | |
function p(t) { | |
var e = document; | |
(this.c = t), | |
(this.a = e), | |
(this.b = void 0), | |
f(this.c, this.a), | |
"loading" === this.a.readyState && | |
((this.b = new MutationObserver(this.f.bind(this))), | |
this.b.observe(this.a, { childList: !0, subtree: !0 })); | |
} | |
function y(t) { | |
t.b && t.b.disconnect(); | |
} | |
function v() { | |
var t = this; | |
(this.b = this.a = void 0), | |
(this.c = new Promise(function(e) { | |
(t.b = e), t.a && e(t.a); | |
})); | |
} | |
function m(t) { | |
if (t.a) throw Error("Already resolved."); | |
(t.a = void 0), t.b && t.b(void 0); | |
} | |
function _(t) { | |
(this.c = !1), | |
(this.a = t), | |
(this.j = new Map()), | |
(this.f = function(t) { | |
return t(); | |
}), | |
(this.b = !1), | |
(this.i = []), | |
(this.o = new p(t)); | |
} | |
(a.prototype.connectedCallback = function(t) { | |
var e = t.__CE_definition; | |
e.connectedCallback && e.connectedCallback.call(t); | |
}), | |
(a.prototype.disconnectedCallback = function(t) { | |
var e = t.__CE_definition; | |
e.disconnectedCallback && e.disconnectedCallback.call(t); | |
}), | |
(a.prototype.attributeChangedCallback = function(t, e, n, r, o) { | |
var i = t.__CE_definition; | |
i.attributeChangedCallback && | |
-1 < i.observedAttributes.indexOf(e) && | |
i.attributeChangedCallback.call(t, e, n, r, o); | |
}), | |
(p.prototype.f = function(t) { | |
var e = this.a.readyState; | |
for ( | |
("interactive" !== e && "complete" !== e) || y(this), e = 0; | |
e < t.length; | |
e++ | |
) | |
for (var n = t[e].addedNodes, r = 0; r < n.length; r++) | |
f(this.c, n[r]); | |
}), | |
(_.prototype.l = function(t, n) { | |
var r = this; | |
if (!(n instanceof Function)) | |
throw new TypeError( | |
"Custom element constructors must be functions." | |
); | |
if (!e(t)) | |
throw new SyntaxError("The element name '" + t + "' is not valid."); | |
if (this.a.a.get(t)) | |
throw Error( | |
"A custom element with name '" + t + "' has already been defined." | |
); | |
if (this.c) throw Error("A custom element is already being defined."); | |
this.c = !0; | |
try { | |
var o = function(t) { | |
var e = i[t]; | |
if (void 0 !== e && !(e instanceof Function)) | |
throw Error("The '" + t + "' callback must be a function."); | |
return e; | |
}, | |
i = n.prototype; | |
if (!(i instanceof Object)) | |
throw new TypeError( | |
"The custom element constructor's prototype is not an object." | |
); | |
var a = o("connectedCallback"), | |
s = o("disconnectedCallback"), | |
c = o("adoptedCallback"), | |
u = o("attributeChangedCallback"), | |
l = n.observedAttributes || []; | |
} catch (t) { | |
return; | |
} finally { | |
this.c = !1; | |
} | |
(n = { | |
localName: t, | |
constructorFunction: n, | |
connectedCallback: a, | |
disconnectedCallback: s, | |
adoptedCallback: c, | |
attributeChangedCallback: u, | |
observedAttributes: l, | |
constructionStack: [] | |
}), | |
(function(t, e, n) { | |
t.a.set(e, n), t.f.set(n.constructorFunction, n); | |
})(this.a, t, n), | |
this.i.push(n), | |
this.b || | |
((this.b = !0), | |
this.f(function() { | |
return (function(t) { | |
if (!1 !== t.b) { | |
t.b = !1; | |
for ( | |
var e = t.i, n = [], r = new Map(), o = 0; | |
o < e.length; | |
o++ | |
) | |
r.set(e[o].localName, []); | |
for ( | |
f(t.a, document, { | |
h: function(e) { | |
if (void 0 === e.__CE_state) { | |
var o = e.localName, | |
i = r.get(o); | |
i ? i.push(e) : t.a.a.get(o) && n.push(e); | |
} | |
} | |
}), | |
o = 0; | |
o < n.length; | |
o++ | |
) | |
h(t.a, n[o]); | |
for (; 0 < e.length; ) { | |
var i = e.shift(); | |
(o = i.localName), (i = r.get(i.localName)); | |
for (var a = 0; a < i.length; a++) h(t.a, i[a]); | |
(o = t.j.get(o)) && m(o); | |
} | |
} | |
})(r); | |
})); | |
}), | |
(_.prototype.h = function(t) { | |
f(this.a, t); | |
}), | |
(_.prototype.get = function(t) { | |
if ((t = this.a.a.get(t))) return t.constructorFunction; | |
}), | |
(_.prototype.m = function(t) { | |
if (!e(t)) | |
return Promise.reject( | |
new SyntaxError("'" + t + "' is not a valid custom element name.") | |
); | |
var n = this.j.get(t); | |
return n | |
? n.c | |
: ((n = new v()), | |
this.j.set(t, n), | |
this.a.a.get(t) && | |
!this.i.some(function(e) { | |
return e.localName === t; | |
}) && | |
m(n), | |
n.c); | |
}), | |
(_.prototype.s = function(t) { | |
y(this.o); | |
var e = this.f; | |
this.f = function(n) { | |
return t(function() { | |
return e(n); | |
}); | |
}; | |
}), | |
(window.CustomElementRegistry = _), | |
(_.prototype.define = _.prototype.l), | |
(_.prototype.upgrade = _.prototype.h), | |
(_.prototype.get = _.prototype.get), | |
(_.prototype.whenDefined = _.prototype.m), | |
(_.prototype.polyfillWrapFlushCallback = _.prototype.s); | |
var g = window.Document.prototype.createElement, | |
b = window.Document.prototype.createElementNS, | |
w = window.Document.prototype.importNode, | |
E = window.Document.prototype.prepend, | |
N = window.Document.prototype.append, | |
S = window.DocumentFragment.prototype.prepend, | |
C = window.DocumentFragment.prototype.append, | |
x = window.Node.prototype.cloneNode, | |
T = window.Node.prototype.appendChild, | |
O = window.Node.prototype.insertBefore, | |
M = window.Node.prototype.removeChild, | |
D = window.Node.prototype.replaceChild, | |
A = Object.getOwnPropertyDescriptor( | |
window.Node.prototype, | |
"textContent" | |
), | |
j = window.Element.prototype.attachShadow, | |
L = Object.getOwnPropertyDescriptor( | |
window.Element.prototype, | |
"innerHTML" | |
), | |
P = window.Element.prototype.getAttribute, | |
k = window.Element.prototype.setAttribute, | |
R = window.Element.prototype.removeAttribute, | |
F = window.Element.prototype.getAttributeNS, | |
H = window.Element.prototype.setAttributeNS, | |
B = window.Element.prototype.removeAttributeNS, | |
I = window.Element.prototype.insertAdjacentElement, | |
U = window.Element.prototype.insertAdjacentHTML, | |
q = window.Element.prototype.prepend, | |
W = window.Element.prototype.append, | |
V = window.Element.prototype.before, | |
G = window.Element.prototype.after, | |
z = window.Element.prototype.replaceWith, | |
X = window.Element.prototype.remove, | |
$ = window.HTMLElement, | |
K = Object.getOwnPropertyDescriptor( | |
window.HTMLElement.prototype, | |
"innerHTML" | |
), | |
J = window.HTMLElement.prototype.insertAdjacentElement, | |
Z = window.HTMLElement.prototype.insertAdjacentHTML, | |
Y = new function() {}(); | |
function Q(t, e, r) { | |
function o(e) { | |
return function(r) { | |
for (var o = [], i = 0; i < arguments.length; ++i) | |
o[i] = arguments[i]; | |
i = []; | |
for (var a = [], s = 0; s < o.length; s++) { | |
var c = o[s]; | |
if ( | |
(c instanceof Element && n(c) && a.push(c), | |
c instanceof DocumentFragment) | |
) | |
for (c = c.firstChild; c; c = c.nextSibling) i.push(c); | |
else i.push(c); | |
} | |
for (e.apply(this, o), o = 0; o < a.length; o++) d(t, a[o]); | |
if (n(this)) | |
for (o = 0; o < i.length; o++) | |
(a = i[o]) instanceof Element && l(t, a); | |
}; | |
} | |
void 0 !== r.g && (e.prepend = o(r.g)), | |
void 0 !== r.append && (e.append = o(r.append)); | |
} | |
var tt, | |
et = window.customElements; | |
if ( | |
!et || | |
et.forcePolyfill || | |
"function" != typeof et.define || | |
"function" != typeof et.get | |
) { | |
var nt = new a(); | |
(tt = nt), | |
(window.HTMLElement = (function() { | |
function t() { | |
var t = this.constructor, | |
e = tt.f.get(t); | |
if (!e) | |
throw Error( | |
"The custom element being constructed was not registered with `customElements`." | |
); | |
var n = e.constructionStack; | |
if (0 === n.length) | |
return ( | |
(n = g.call(document, e.localName)), | |
Object.setPrototypeOf(n, t.prototype), | |
(n.__CE_state = 1), | |
(n.__CE_definition = e), | |
u(tt, n), | |
n | |
); | |
var r = n[(e = n.length - 1)]; | |
if (r === Y) | |
throw Error( | |
"The HTMLElement constructor was either called reentrantly for this constructor or called multiple times." | |
); | |
return ( | |
(n[e] = Y), Object.setPrototypeOf(r, t.prototype), u(tt, r), r | |
); | |
} | |
return ( | |
(t.prototype = $.prototype), | |
Object.defineProperty(t.prototype, "constructor", { | |
writable: !0, | |
configurable: !0, | |
enumerable: !1, | |
value: t | |
}), | |
t | |
); | |
})()), | |
(function() { | |
var t = nt; | |
i(Document.prototype, "createElement", function(e) { | |
if (this.__CE_hasRegistry) { | |
var n = t.a.get(e); | |
if (n) return new n.constructorFunction(); | |
} | |
return (e = g.call(this, e)), u(t, e), e; | |
}), | |
i(Document.prototype, "importNode", function(e, n) { | |
return ( | |
(e = w.call(this, e, !!n)), | |
this.__CE_hasRegistry ? f(t, e) : c(t, e), | |
e | |
); | |
}), | |
i(Document.prototype, "createElementNS", function(e, n) { | |
if ( | |
this.__CE_hasRegistry && | |
(null === e || "http://www.w3.org/1999/xhtml" === e) | |
) { | |
var r = t.a.get(n); | |
if (r) return new r.constructorFunction(); | |
} | |
return (e = b.call(this, e, n)), u(t, e), e; | |
}), | |
Q(t, Document.prototype, { g: E, append: N }); | |
})(), | |
Q(nt, DocumentFragment.prototype, { g: S, append: C }), | |
(function() { | |
function t(t, r) { | |
Object.defineProperty(t, "textContent", { | |
enumerable: r.enumerable, | |
configurable: !0, | |
get: r.get, | |
set: function(t) { | |
if (this.nodeType === Node.TEXT_NODE) r.set.call(this, t); | |
else { | |
var o = void 0; | |
if (this.firstChild) { | |
var i = this.childNodes, | |
a = i.length; | |
if (0 < a && n(this)) { | |
o = Array(a); | |
for (var s = 0; s < a; s++) o[s] = i[s]; | |
} | |
} | |
if ((r.set.call(this, t), o)) | |
for (t = 0; t < o.length; t++) d(e, o[t]); | |
} | |
} | |
}); | |
} | |
var e = nt; | |
i(Node.prototype, "insertBefore", function(t, r) { | |
if (t instanceof DocumentFragment) { | |
var o = Array.prototype.slice.apply(t.childNodes); | |
if (((t = O.call(this, t, r)), n(this))) | |
for (r = 0; r < o.length; r++) l(e, o[r]); | |
return t; | |
} | |
return ( | |
(o = n(t)), | |
(r = O.call(this, t, r)), | |
o && d(e, t), | |
n(this) && l(e, t), | |
r | |
); | |
}), | |
i(Node.prototype, "appendChild", function(t) { | |
if (t instanceof DocumentFragment) { | |
var r = Array.prototype.slice.apply(t.childNodes); | |
if (((t = T.call(this, t)), n(this))) | |
for (var o = 0; o < r.length; o++) l(e, r[o]); | |
return t; | |
} | |
return ( | |
(r = n(t)), | |
(o = T.call(this, t)), | |
r && d(e, t), | |
n(this) && l(e, t), | |
o | |
); | |
}), | |
i(Node.prototype, "cloneNode", function(t) { | |
return ( | |
(t = x.call(this, !!t)), | |
this.ownerDocument.__CE_hasRegistry ? f(e, t) : c(e, t), | |
t | |
); | |
}), | |
i(Node.prototype, "removeChild", function(t) { | |
var r = n(t), | |
o = M.call(this, t); | |
return r && d(e, t), o; | |
}), | |
i(Node.prototype, "replaceChild", function(t, r) { | |
if (t instanceof DocumentFragment) { | |
var o = Array.prototype.slice.apply(t.childNodes); | |
if (((t = D.call(this, t, r)), n(this))) | |
for (d(e, r), r = 0; r < o.length; r++) l(e, o[r]); | |
return t; | |
} | |
o = n(t); | |
var i = D.call(this, t, r), | |
a = n(this); | |
return a && d(e, r), o && d(e, t), a && l(e, t), i; | |
}), | |
A && A.get | |
? t(Node.prototype, A) | |
: s(e, function(e) { | |
t(e, { | |
enumerable: !0, | |
configurable: !0, | |
get: function() { | |
for (var t = [], e = 0; e < this.childNodes.length; e++) | |
t.push(this.childNodes[e].textContent); | |
return t.join(""); | |
}, | |
set: function(t) { | |
for (; this.firstChild; ) M.call(this, this.firstChild); | |
T.call(this, document.createTextNode(t)); | |
} | |
}); | |
}); | |
})(), | |
(function() { | |
function t(t, e) { | |
Object.defineProperty(t, "innerHTML", { | |
enumerable: e.enumerable, | |
configurable: !0, | |
get: e.get, | |
set: function(t) { | |
var r = this, | |
i = void 0; | |
if ( | |
(n(this) && | |
((i = []), | |
o(this, function(t) { | |
t !== r && i.push(t); | |
})), | |
e.set.call(this, t), | |
i) | |
) | |
for (var s = 0; s < i.length; s++) { | |
var u = i[s]; | |
1 === u.__CE_state && a.disconnectedCallback(u); | |
} | |
return ( | |
this.ownerDocument.__CE_hasRegistry | |
? f(a, this) | |
: c(a, this), | |
t | |
); | |
} | |
}); | |
} | |
function e(t, e) { | |
i(t, "insertAdjacentElement", function(t, r) { | |
var o = n(r); | |
return ( | |
(t = e.call(this, t, r)), o && d(a, r), n(t) && l(a, r), t | |
); | |
}); | |
} | |
function r(t, e) { | |
function n(t, e) { | |
for (var n = []; t !== e; t = t.nextSibling) n.push(t); | |
for (e = 0; e < n.length; e++) f(a, n[e]); | |
} | |
i(t, "insertAdjacentHTML", function(t, r) { | |
if ("beforebegin" === (t = t.toLowerCase())) { | |
var o = this.previousSibling; | |
e.call(this, t, r), n(o || this.parentNode.firstChild, this); | |
} else if ("afterbegin" === t) | |
(o = this.firstChild), | |
e.call(this, t, r), | |
n(this.firstChild, o); | |
else if ("beforeend" === t) | |
(o = this.lastChild), | |
e.call(this, t, r), | |
n(o || this.firstChild, null); | |
else { | |
if ("afterend" !== t) | |
throw new SyntaxError( | |
"The value provided (" + | |
String(t) + | |
") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'." | |
); | |
(o = this.nextSibling), | |
e.call(this, t, r), | |
n(this.nextSibling, o); | |
} | |
}); | |
} | |
var a = nt; | |
j && | |
i(Element.prototype, "attachShadow", function(t) { | |
return (this.__CE_shadowRoot = j.call(this, t)); | |
}), | |
L && L.get | |
? t(Element.prototype, L) | |
: K && K.get | |
? t(HTMLElement.prototype, K) | |
: s(a, function(e) { | |
t(e, { | |
enumerable: !0, | |
configurable: !0, | |
get: function() { | |
return x.call(this, !0).innerHTML; | |
}, | |
set: function(t) { | |
var e = "template" === this.localName, | |
n = e ? this.content : this, | |
r = b.call( | |
document, | |
this.namespaceURI, | |
this.localName | |
); | |
for (r.innerHTML = t; 0 < n.childNodes.length; ) | |
M.call(n, n.childNodes[0]); | |
for (t = e ? r.content : r; 0 < t.childNodes.length; ) | |
T.call(n, t.childNodes[0]); | |
} | |
}); | |
}), | |
i(Element.prototype, "setAttribute", function(t, e) { | |
if (1 !== this.__CE_state) return k.call(this, t, e); | |
var n = P.call(this, t); | |
k.call(this, t, e), | |
(e = P.call(this, t)), | |
a.attributeChangedCallback(this, t, n, e, null); | |
}), | |
i(Element.prototype, "setAttributeNS", function(t, e, n) { | |
if (1 !== this.__CE_state) return H.call(this, t, e, n); | |
var r = F.call(this, t, e); | |
H.call(this, t, e, n), | |
(n = F.call(this, t, e)), | |
a.attributeChangedCallback(this, e, r, n, t); | |
}), | |
i(Element.prototype, "removeAttribute", function(t) { | |
if (1 !== this.__CE_state) return R.call(this, t); | |
var e = P.call(this, t); | |
R.call(this, t), | |
null !== e && | |
a.attributeChangedCallback(this, t, e, null, null); | |
}), | |
i(Element.prototype, "removeAttributeNS", function(t, e) { | |
if (1 !== this.__CE_state) return B.call(this, t, e); | |
var n = F.call(this, t, e); | |
B.call(this, t, e); | |
var r = F.call(this, t, e); | |
n !== r && a.attributeChangedCallback(this, e, n, r, t); | |
}), | |
J | |
? e(HTMLElement.prototype, J) | |
: I | |
? e(Element.prototype, I) | |
: console.warn( | |
"Custom Elements: `Element#insertAdjacentElement` was not patched." | |
), | |
Z | |
? r(HTMLElement.prototype, Z) | |
: U | |
? r(Element.prototype, U) | |
: console.warn( | |
"Custom Elements: `Element#insertAdjacentHTML` was not patched." | |
), | |
Q(a, Element.prototype, { g: q, append: W }), | |
(function(t) { | |
function e(e) { | |
return function(r) { | |
for (var o = [], i = 0; i < arguments.length; ++i) | |
o[i] = arguments[i]; | |
i = []; | |
for (var a = [], s = 0; s < o.length; s++) { | |
var c = o[s]; | |
if ( | |
(c instanceof Element && n(c) && a.push(c), | |
c instanceof DocumentFragment) | |
) | |
for (c = c.firstChild; c; c = c.nextSibling) i.push(c); | |
else i.push(c); | |
} | |
for (e.apply(this, o), o = 0; o < a.length; o++) d(t, a[o]); | |
if (n(this)) | |
for (o = 0; o < i.length; o++) | |
(a = i[o]) instanceof Element && l(t, a); | |
}; | |
} | |
var r = Element.prototype; | |
void 0 !== V && (r.before = e(V)), | |
void 0 !== V && (r.after = e(G)), | |
void 0 !== z && | |
i(r, "replaceWith", function(e) { | |
for (var r = [], o = 0; o < arguments.length; ++o) | |
r[o] = arguments[o]; | |
o = []; | |
for (var i = [], a = 0; a < r.length; a++) { | |
var s = r[a]; | |
if ( | |
(s instanceof Element && n(s) && i.push(s), | |
s instanceof DocumentFragment) | |
) | |
for (s = s.firstChild; s; s = s.nextSibling) | |
o.push(s); | |
else o.push(s); | |
} | |
for ( | |
a = n(this), z.apply(this, r), r = 0; | |
r < i.length; | |
r++ | |
) | |
d(t, i[r]); | |
if (a) | |
for (d(t, this), r = 0; r < o.length; r++) | |
(i = o[r]) instanceof Element && l(t, i); | |
}), | |
void 0 !== X && | |
i(r, "remove", function() { | |
var e = n(this); | |
X.call(this), e && d(t, this); | |
}); | |
})(a); | |
})(), | |
(document.__CE_hasRegistry = !0); | |
var rt = new _(nt); | |
Object.defineProperty(window, "customElements", { | |
configurable: !0, | |
enumerable: !0, | |
value: rt | |
}); | |
} | |
}.call(self)); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
var r = | |
(this && this.__makeTemplateObject) || | |
function(t, e) { | |
return ( | |
Object.defineProperty | |
? Object.defineProperty(t, "raw", { value: e }) | |
: (t.raw = e), | |
t | |
); | |
}, | |
o = | |
(this && this.__awaiter) || | |
function(t, e, n, r) { | |
return new (n || (n = Promise))(function(o, i) { | |
function a(t) { | |
try { | |
c(r.next(t)); | |
} catch (t) { | |
i(t); | |
} | |
} | |
function s(t) { | |
try { | |
c(r.throw(t)); | |
} catch (t) { | |
i(t); | |
} | |
} | |
function c(t) { | |
t.done | |
? o(t.value) | |
: new n(function(e) { | |
e(t.value); | |
}).then(a, s); | |
} | |
c((r = r.apply(t, e || [])).next()); | |
}); | |
}, | |
i = | |
(this && this.__generator) || | |
function(t, e) { | |
var n, | |
r, | |
o, | |
i, | |
a = { | |
label: 0, | |
sent: function() { | |
if (1 & o[0]) throw o[1]; | |
return o[1]; | |
}, | |
trys: [], | |
ops: [] | |
}; | |
return ( | |
(i = { next: s(0), throw: s(1), return: s(2) }), | |
"function" == typeof Symbol && | |
(i[Symbol.iterator] = function() { | |
return this; | |
}), | |
i | |
); | |
function s(i) { | |
return function(s) { | |
return (function(i) { | |
if (n) throw new TypeError("Generator is already executing."); | |
for (; a; ) | |
try { | |
if ( | |
((n = 1), | |
r && | |
(o = | |
2 & i[0] | |
? r.return | |
: i[0] | |
? r.throw || ((o = r.return) && o.call(r), 0) | |
: r.next) && | |
!(o = o.call(r, i[1])).done) | |
) | |
return o; | |
switch (((r = 0), o && (i = [2 & i[0], o.value]), i[0])) { | |
case 0: | |
case 1: | |
o = i; | |
break; | |
case 4: | |
return a.label++, { value: i[1], done: !1 }; | |
case 5: | |
a.label++, (r = i[1]), (i = [0]); | |
continue; | |
case 7: | |
(i = a.ops.pop()), a.trys.pop(); | |
continue; | |
default: | |
if ( | |
!(o = (o = a.trys).length > 0 && o[o.length - 1]) && | |
(6 === i[0] || 2 === i[0]) | |
) { | |
a = 0; | |
continue; | |
} | |
if ( | |
3 === i[0] && | |
(!o || (i[1] > o[0] && i[1] < o[3])) | |
) { | |
a.label = i[1]; | |
break; | |
} | |
if (6 === i[0] && a.label < o[1]) { | |
(a.label = o[1]), (o = i); | |
break; | |
} | |
if (o && a.label < o[2]) { | |
(a.label = o[2]), a.ops.push(i); | |
break; | |
} | |
o[2] && a.ops.pop(), a.trys.pop(); | |
continue; | |
} | |
i = e.call(t, a); | |
} catch (t) { | |
(i = [6, t]), (r = 0); | |
} finally { | |
n = o = 0; | |
} | |
if (5 & i[0]) throw i[1]; | |
return { value: i[0] ? i[1] : void 0, done: !0 }; | |
})([i, s]); | |
}; | |
} | |
}; | |
Object.defineProperty(e, "__esModule", { value: !0 }); | |
var a, | |
s, | |
c, | |
u, | |
l, | |
d = n(86), | |
f = window.fetch, | |
h = { "cache-control": "max-age=300" }; | |
function p(t, e, n, o) { | |
var i = { hide: o }; | |
return d.html( | |
s || | |
(s = r( | |
[ | |
"\n <div>\n <h4>", | |
" ", | |
'</h4>\n <table style="border-collapse: collapse; width: 100%;">\n <tbody>\n ', | |
"\n </tbody>\n </table>\n </div>\n " | |
], | |
[ | |
"\n <div>\n <h4>", | |
" ", | |
'</h4>\n <table style="border-collapse: collapse; width: 100%;">\n <tbody>\n ', | |
"\n </tbody>\n </table>\n </div>\n " | |
] | |
)), | |
e, | |
o && "(" + o + ")", | |
t.map(function(t) { | |
return ( | |
n[(e = t).type] && | |
(!o || e.airportCode === o) && | |
d.html( | |
a || | |
(a = r( | |
[ | |
'\n <tr style="border-bottom: solid 2px #fff;">\n <td class="', | |
'">', | |
'</td>\n <td class="', | |
'" style="padding: 0 30px">to</td>\n <td>', | |
" (", | |
")</td>\n <td>", | |
"</td>\n </tr>\n " | |
], | |
[ | |
'\n <tr style="border-bottom: solid 2px #fff;">\n <td class="', | |
'">', | |
'</td>\n <td class="', | |
'" style="padding: 0 30px">to</td>\n <td>', | |
" (", | |
")</td>\n <td>", | |
"</td>\n </tr>\n " | |
] | |
)), | |
i, | |
t.airportCode, | |
i, | |
t.to.city, | |
t.to.airportCode, | |
t.price | |
) | |
); | |
var e; | |
}) | |
); | |
} | |
function y(t) { | |
return o(this, void 0, void 0, function() { | |
var e, n, o, a, s; | |
return i(this, function(i) { | |
switch (i.label) { | |
case 0: | |
return i.trys.push([0, 3, , 4]), [4, t.referencesFetch]; | |
case 1: | |
return ( | |
(e = i.sent()), | |
(n = void 0), | |
(o = void 0), | |
e.codes[t.input.toUpperCase()] | |
? ((n = e.codes[t.input.toUpperCase()]), (o = t.input)) | |
: (n = e.cities[t.input] ? e.cities[t.input] : t.input), | |
[ | |
4, | |
f(t.pathToData + "/flights/" + n + ".json", { | |
headers: h | |
}).then(function(t) { | |
return t.json(); | |
}) | |
] | |
); | |
case 2: | |
return ( | |
(a = i.sent()), (t.results = p(a, n, t.sources, o)), [3, 4] | |
); | |
case 3: | |
return ( | |
(s = i.sent()), | |
console.error(s), | |
(t.results = d.html( | |
c || (c = r(["<h4>Not found</h4>"], ["<h4>Not found</h4>"])) | |
)), | |
[3, 4] | |
); | |
case 4: | |
return [2]; | |
} | |
}); | |
}); | |
} | |
function v(t, e) { | |
var n = e.target; | |
t.input = n.value; | |
} | |
function m(t) { | |
return function(e, n) { | |
var r = n.target; | |
e[t] = r.checked; | |
}; | |
} | |
(e.displayResults = p), | |
(e.queryFlights = y), | |
(e.handleInput = v), | |
(e.handleSourceChange = m), | |
(e.FlightPrices = { | |
input: "", | |
results: void 0, | |
pathToData: "", | |
referencesFetch: { | |
connect: function(t, e, n) { | |
t.pathToData && | |
(t.referencesFetch = f(t.pathToData + "/reference.json", { | |
headers: h | |
}).then(function(t) { | |
return t.json(); | |
})); | |
} | |
}, | |
domestic: !0, | |
international: !0, | |
sources: function(t) { | |
return { domestic: t.domestic, international: t.international }; | |
}, | |
render: function(t) { | |
var e = t.input, | |
n = t.results, | |
o = t.sources; | |
return d.html( | |
l || | |
(l = r( | |
[ | |
'\n <style>\n :host {\n background-color: #d6e1dc;\n display: inline-block;\n padding: 10px;\n font-family: \'Open Sans\', Arial, sans-serif;\n font-size: 16px;\n line-height: 30px;\n }\n .hide {\n display: none;\n }\n label, input, button {\n vertical-align: middle;\n }\n button {\n font-size: 14px;\n }\n\n h4 {\n text-align: center;\n font-size: 18px;\n margin: 0;\n margin-bottom: 5px;\n }\n tr {\n height: 60px;\n }\n </style>\n <label for="search-box">Airport code of origin: </label>\n <input id="search-box" type="text" value="', | |
'" oninput="', | |
'"/>\n <button onclick="', | |
'">Search</button>\n <div>\n <label for="domestic">Domestic</label>\n <input type="checkbox" id="domestic" value="domestic" checked="', | |
'" onchange="', | |
'">\n <label for="international">International</label>\n <input type="checkbox" id="international" value="international" checked="', | |
'" onchange="', | |
'">\n </div>\n ', | |
"\n " | |
], | |
[ | |
'\n <style>\n :host {\n background-color: #d6e1dc;\n display: inline-block;\n padding: 10px;\n font-family: \'Open Sans\', Arial, sans-serif;\n font-size: 16px;\n line-height: 30px;\n }\n .hide {\n display: none;\n }\n label, input, button {\n vertical-align: middle;\n }\n button {\n font-size: 14px;\n }\n\n h4 {\n text-align: center;\n font-size: 18px;\n margin: 0;\n margin-bottom: 5px;\n }\n tr {\n height: 60px;\n }\n </style>\n <label for="search-box">Airport code or city of origin: </label>\n <input id="search-box" type="text" value="', | |
'" oninput="', | |
'"/>\n <button onclick="', | |
'">Search</button>\n <div>\n <label for="domestic">Domestic</label>\n <input type="checkbox" id="domestic" value="domestic" checked="', | |
'" onchange="', | |
'">\n <label for="international">International</label>\n <input type="checkbox" id="international" value="international" checked="', | |
'" onchange="', | |
'">\n </div>\n ', | |
"\n " | |
] | |
)), | |
e, | |
v, | |
y, | |
o.domestic, | |
m("domestic"), | |
o.international, | |
m("international"), | |
n && | |
d.html( | |
u || | |
(u = r( | |
[ | |
'<div style="border-top: 2px solid #fff; margin-top: 15px;padding-top: 15px;">', | |
"</div>" | |
], | |
[ | |
'<div style="border-top: 2px solid #fff; margin-top: 15px;padding-top: 15px;">', | |
"</div>" | |
] | |
)), | |
n | |
) | |
); | |
} | |
}), | |
d.define("flight-prices", e.FlightPrices); | |
}, | |
function(t, e, n) { | |
"use strict"; | |
function r(t, e, n) { | |
return ( | |
e in t | |
? Object.defineProperty(t, e, { | |
value: n, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) | |
: (t[e] = n), | |
t | |
); | |
} | |
function o(t) { | |
return t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(); | |
} | |
function i(t, e) { | |
var n = | |
arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; | |
return t.dispatchEvent( | |
new CustomEvent( | |
e, | |
(function(t) { | |
for (var e = 1; e < arguments.length; e++) { | |
var n = null != arguments[e] ? arguments[e] : {}, | |
o = Object.keys(n); | |
"function" == typeof Object.getOwnPropertySymbols && | |
(o = o.concat( | |
Object.getOwnPropertySymbols(n).filter(function(t) { | |
return Object.getOwnPropertyDescriptor(n, t).enumerable; | |
}) | |
)), | |
o.forEach(function(e) { | |
r(t, e, n[e]); | |
}); | |
} | |
return t; | |
})({ bubbles: !1 }, n) | |
) | |
); | |
} | |
function a(t, e) { | |
var n = window.ShadyCSS; | |
return n && !n.nativeShadow ? t(n) : e; | |
} | |
function s(t) { | |
var e = String(t.tagName).toLowerCase(); | |
return "<".concat(e, ">"); | |
} | |
n.r(e); | |
var c = "ActiveXObject" in window; | |
function u(t) { | |
return (u = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
var l = function(t) { | |
return t; | |
}, | |
d = function(t) { | |
if ("object" !== u(t)) | |
throw TypeError( | |
"Assigned value must be an object: ".concat( | |
"undefined" == typeof v ? "undefined" : u(v) | |
) | |
); | |
return t && Object.freeze(t); | |
}; | |
function f(t, e) { | |
var n = u(t), | |
r = l; | |
switch (n) { | |
case "string": | |
r = String; | |
break; | |
case "number": | |
r = Number; | |
break; | |
case "boolean": | |
r = Boolean; | |
break; | |
case "function": | |
t = (r = t)(); | |
break; | |
case "object": | |
t && Object.freeze(t), (r = d); | |
} | |
return { | |
get: function(e) { | |
return arguments.length > 1 && void 0 !== arguments[1] | |
? arguments[1] | |
: t; | |
}, | |
set: function(t, e, n) { | |
return r(e, n); | |
}, | |
connect: | |
"object" !== n && "undefined" !== n | |
? function(n, r, i) { | |
if (n[r] === t) { | |
var a = o(r); | |
if (n.hasAttribute(a)) { | |
var s = n.getAttribute(a); | |
n[r] = "" === s || s; | |
} | |
} | |
return e && e(n, r, i); | |
} | |
: e | |
}; | |
} | |
function h(t, e, n) { | |
return ( | |
e in t | |
? Object.defineProperty(t, e, { | |
value: n, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) | |
: (t[e] = n), | |
t | |
); | |
} | |
function p(t) { | |
return (p = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
var y = new WeakMap(), | |
m = new WeakMap(), | |
_ = 1e3 / 60, | |
g = []; | |
function b(t) { | |
var e = t.composedPath()[0]; | |
e === t.currentTarget && | |
(g[0] || | |
requestAnimationFrame(function() { | |
return (function t() { | |
var e = | |
arguments.length > 0 && void 0 !== arguments[0] | |
? arguments[0] | |
: 0, | |
n = | |
arguments.length > 1 && void 0 !== arguments[1] | |
? arguments[1] | |
: 0; | |
if (n && performance.now() - n > _) | |
requestAnimationFrame(function() { | |
return t(e); | |
}); | |
else { | |
var r = g[e], | |
o = performance.now(); | |
if (r) { | |
if (y.has(r)) { | |
var i = y.get(r), | |
s = m.get(r); | |
try { | |
var c = r[i]; | |
c !== s && | |
(m.set(r, c), | |
c(), | |
s || | |
a(function(t) { | |
return t.styleElement(r); | |
})); | |
} catch (n) { | |
throw (t(e + 1, o), n); | |
} | |
} | |
t(e + 1, o); | |
} else | |
a(function(t) { | |
return g.forEach(function(e) { | |
return t.styleSubtree(e); | |
}); | |
}), | |
(g = []); | |
} | |
})(); | |
}), | |
-1 === g.indexOf(e) && g.push(e)); | |
} | |
function w(t) { | |
var e = | |
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
if ("function" != typeof t) | |
throw TypeError("The first argument must be a function: ".concat(p(t))); | |
var n = (function(t) { | |
for (var e = 1; e < arguments.length; e++) { | |
var n = null != arguments[e] ? arguments[e] : {}, | |
r = Object.keys(n); | |
"function" == typeof Object.getOwnPropertySymbols && | |
(r = r.concat( | |
Object.getOwnPropertySymbols(n).filter(function(t) { | |
return Object.getOwnPropertyDescriptor(n, t).enumerable; | |
}) | |
)), | |
r.forEach(function(e) { | |
h(t, e, n[e]); | |
}); | |
} | |
return t; | |
})({ shadowRoot: !0 }, e); | |
return { | |
get: function(e) { | |
var r = t(e); | |
return function() { | |
return r(e, n.shadowRoot ? e.shadowRoot : e); | |
}; | |
}, | |
connect: function(t, e) { | |
if (y.has(t)) | |
throw Error( | |
"Render factory already used in '".concat(y.get(t), "' key") | |
); | |
if (n.shadowRoot && !t.shadowRoot) { | |
var r = { mode: "open" }; | |
"object" === p(n.shadowRoot) && Object.assign(r, n.shadowRoot), | |
t.attachShadow(r); | |
} | |
return ( | |
t.addEventListener("@invalidate", b), | |
y.set(t, e), | |
function() { | |
t.removeEventListener("@invalidate", b), y.delete(t); | |
} | |
); | |
} | |
}; | |
} | |
var E = new WeakMap(); | |
function N(t, e) { | |
var n = E.get(t); | |
n || ((n = new Map()), E.set(t, n)); | |
var r = n.get(e); | |
return ( | |
r || | |
((r = { | |
target: t, | |
key: e, | |
value: void 0, | |
deps: new Set(), | |
state: 1, | |
checksum: 0 | |
}), | |
n.set(e, r)), | |
r | |
); | |
} | |
function S(t) { | |
var e = t.state, | |
n = t.deps, | |
r = e; | |
return ( | |
n.forEach(function(t) { | |
t.target[t.key], (r += t.state); | |
}), | |
r | |
); | |
} | |
var C = null; | |
function x(t, e) { | |
for (var n = 0; n < e.length; n++) { | |
var r = e[n]; | |
(r.enumerable = r.enumerable || !1), | |
(r.configurable = !0), | |
"value" in r && (r.writable = !0), | |
Object.defineProperty(t, r.key, r); | |
} | |
} | |
function T(t, e) { | |
return !e || ("object" !== j(e) && "function" != typeof e) | |
? (function(t) { | |
if (void 0 === t) | |
throw new ReferenceError( | |
"this hasn't been initialised - super() hasn't been called" | |
); | |
return t; | |
})(t) | |
: e; | |
} | |
function O(t) { | |
var e = "function" == typeof Map ? new Map() : void 0; | |
return (O = function(t) { | |
if ( | |
null === t || | |
((n = t), -1 === Function.toString.call(n).indexOf("[native code]")) | |
) | |
return t; | |
var n; | |
if ("function" != typeof t) | |
throw new TypeError( | |
"Super expression must either be null or a function" | |
); | |
if (void 0 !== e) { | |
if (e.has(t)) return e.get(t); | |
e.set(t, r); | |
} | |
function r() { | |
return M(t, arguments, A(this).constructor); | |
} | |
return ( | |
(r.prototype = Object.create(t.prototype, { | |
constructor: { | |
value: r, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
})), | |
D(r, t) | |
); | |
})(t); | |
} | |
function M(t, e, n) { | |
return (M = (function() { | |
if ("undefined" == typeof Reflect || !Reflect.construct) return !1; | |
if (Reflect.construct.sham) return !1; | |
if ("function" == typeof Proxy) return !0; | |
try { | |
return ( | |
Date.prototype.toString.call( | |
Reflect.construct(Date, [], function() {}) | |
), | |
!0 | |
); | |
} catch (t) { | |
return !1; | |
} | |
})() | |
? Reflect.construct | |
: function(t, e, n) { | |
var r = [null]; | |
r.push.apply(r, e); | |
var o = new (Function.bind.apply(t, r))(); | |
return n && D(o, n.prototype), o; | |
}).apply(null, arguments); | |
} | |
function D(t, e) { | |
return (D = | |
Object.setPrototypeOf || | |
function(t, e) { | |
return (t.__proto__ = e), t; | |
})(t, e); | |
} | |
function A(t) { | |
return (A = Object.setPrototypeOf | |
? Object.getPrototypeOf | |
: function(t) { | |
return t.__proto__ || Object.getPrototypeOf(t); | |
})(t); | |
} | |
function j(t) { | |
return (j = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
function L(t) { | |
i(t, "@invalidate", { bubbles: !0, composed: !0 }); | |
} | |
var P = function(t, e) { | |
return e; | |
}; | |
function k(t, e) { | |
(t.hybrids = e), | |
(t.connects = []), | |
Object.keys(e).forEach(function(n) { | |
var r, | |
o = e[n], | |
i = j(o); | |
(r = | |
"function" === i | |
? "render" === n | |
? w(o) | |
: { get: o } | |
: null !== o && | |
"object" === i && | |
("object" !== i || o.get || o.set || o.connect) | |
? { | |
get: o.get || P, | |
set: o.set || (!o.get && P) || void 0, | |
connect: o.connect | |
} | |
: f(o)), | |
Object.defineProperty(t.prototype, n, { | |
get: function() { | |
return (function(t, e, n) { | |
var r = N(t, e); | |
if (C === r) | |
throw ((C = null), | |
Error( | |
"Circular '" | |
.concat(e, "' get invocation in '") | |
.concat(s(t), "'") | |
)); | |
C && C.deps.add(r); | |
var o = C; | |
if (((C = r), r.checksum && r.checksum === S(r))) | |
return (C = o), r.value; | |
r.deps.clear(); | |
try { | |
var i = n(t, r.value); | |
i !== r.value && ((r.state += 1), (r.value = i)), | |
(r.checksum = S(r)), | |
(C = o); | |
} catch (t) { | |
throw ((C = null), t); | |
} | |
return r.value; | |
})(this, n, r.get); | |
}, | |
set: | |
r.set && | |
function(t) { | |
var e = this; | |
!(function(t, e, n, r, o) { | |
if (C) | |
throw ((C = null), | |
Error( | |
"Try to set '" | |
.concat(e, "' of '") | |
.concat(s(t), "' in get call") | |
)); | |
var i = N(t, e), | |
a = n(t, r, i.value); | |
a !== i.value && ((i.state += 1), (i.value = a), o()); | |
})(this, n, r.set, t, function() { | |
return L(e); | |
}); | |
}, | |
enumerable: !0, | |
configurable: !1 | |
}), | |
r.connect && | |
t.connects.push(function(t) { | |
return r.connect(t, n, function() { | |
(!(arguments.length > 0 && void 0 !== arguments[0]) || | |
arguments[0]) && | |
(function(t, e, n) { | |
if (C) | |
throw ((C = null), | |
Error( | |
"Try to invalidate '" | |
.concat(e, "' in '") | |
.concat(s(t), "' get call") | |
)); | |
var r = N(t, e); | |
(r.checksum = 0), n && (r.value = void 0); | |
})(t, n), | |
L(t); | |
}); | |
}); | |
}); | |
} | |
var R = new WeakMap(); | |
function F(t, e) { | |
var n = j(e); | |
if ("object" !== n && "function" !== n) | |
throw TypeError( | |
"Second argument must be an object or a function: ".concat(n) | |
); | |
var r = window.customElements.get(t); | |
if ("function" === n) | |
return r !== e ? window.customElements.define(t, e) : r; | |
if (r) { | |
if (r.hybrids === e) return r; | |
throw Error("Element '".concat(t, "' already defined")); | |
} | |
var o = (function(e) { | |
function n() { | |
return ( | |
(function(t, e) { | |
if (!(t instanceof e)) | |
throw new TypeError("Cannot call a class as a function"); | |
})(this, n), | |
T(this, A(n).apply(this, arguments)) | |
); | |
} | |
var r, o, i; | |
return ( | |
(function(t, e) { | |
if ("function" != typeof e && null !== e) | |
throw new TypeError( | |
"Super expression must either be null or a function" | |
); | |
(t.prototype = Object.create(e && e.prototype, { | |
constructor: { value: t, writable: !0, configurable: !0 } | |
})), | |
e && D(t, e); | |
})(n, O(HTMLElement)), | |
(r = n), | |
(i = [ | |
{ | |
key: "name", | |
get: function() { | |
return t; | |
} | |
} | |
]), | |
(o = [ | |
{ | |
key: "connectedCallback", | |
value: function() { | |
var t = this, | |
e = this.constructor.connects.reduce(function(e, n) { | |
var r = n(t); | |
return r && e.add(r), e; | |
}, new Set()); | |
R.set(this, e), L(this); | |
} | |
}, | |
{ | |
key: "disconnectedCallback", | |
value: function() { | |
R.get(this).forEach(function(t) { | |
return t(); | |
}); | |
} | |
} | |
]) && x(r.prototype, o), | |
i && x(r, i), | |
n | |
); | |
})(); | |
return k(o, e), customElements.define(t, o), o; | |
} | |
function H(t) { | |
return Object.keys(t).reduce(function(e, n) { | |
var r = o(n.replace(/((?!([A-Z]{2}|^))[A-Z])/g, "-$1")); | |
return (e[n] = F(r, t[n])), e; | |
}, {}); | |
} | |
function B() { | |
return "object" === j(arguments.length <= 0 ? void 0 : arguments[0]) | |
? H(arguments.length <= 0 ? void 0 : arguments[0]) | |
: F.apply(void 0, arguments); | |
} | |
var I = new WeakMap(); | |
function U(t) { | |
var e = | |
"function" == typeof t | |
? t | |
: function(e) { | |
return e === t; | |
}; | |
return { | |
get: function(t) { | |
return (function(t, e) { | |
for (var n = t.parentElement || t.parentNode.host; n; ) { | |
var r = n.constructor.hybrids; | |
if (r && e(r)) return n; | |
n = n.parentElement || (n.parentNode && n.parentNode.host); | |
} | |
return n || null; | |
})(t, e); | |
}, | |
connect: function(t, e, n) { | |
var r = t[e]; | |
if (r) { | |
var o = I.get(r); | |
return ( | |
o || ((o = new Set()), I.set(r, o)), | |
o.add(n), | |
function() { | |
o.delete(n), n(); | |
} | |
); | |
} | |
return !1; | |
} | |
}; | |
} | |
function q(t) { | |
var e = | |
arguments.length > 1 && void 0 !== arguments[1] | |
? arguments[1] | |
: { deep: !1, nested: !1 }, | |
n = | |
"function" == typeof t | |
? t | |
: function(e) { | |
return e === t; | |
}; | |
return { | |
get: function(t) { | |
return (function t(e, n, r) { | |
var o = | |
arguments.length > 3 && void 0 !== arguments[3] | |
? arguments[3] | |
: []; | |
return ( | |
Array.from(e.children).forEach(function(e) { | |
var i = e.constructor.hybrids; | |
i && n(i) | |
? (o.push(e), r.deep && r.nested && t(e, n, r, o)) | |
: r.deep && t(e, n, r, o); | |
}), | |
o | |
); | |
})(t, n, e); | |
}, | |
connect: function(t, n, r) { | |
var o = new MutationObserver(r), | |
i = new Set(), | |
a = function(e) { | |
var o = e.target; | |
i.size || | |
Promise.resolve().then(function() { | |
for (var e = t[n], o = 0; o < e.length; o += 1) | |
if (i.has(e[o])) { | |
r(!1); | |
break; | |
} | |
i.clear(); | |
}), | |
i.add(o); | |
}; | |
return ( | |
o.observe(t, { childList: !0, subtree: !!e.deep }), | |
t.addEventListener("@invalidate", a), | |
function() { | |
o.disconnect(), t.removeEventListener("@invalidate", a); | |
} | |
); | |
} | |
}; | |
} | |
document.addEventListener("@invalidate", function(t) { | |
var e = I.get(t.composedPath()[0]); | |
e && | |
e.forEach(function(t) { | |
return t(); | |
}); | |
}); | |
var W = new WeakMap(), | |
V = { | |
get: function(t, e) { | |
return W.has(t) ? W.get(t) : (void 0 !== e && W.set(t, e), e); | |
}, | |
set: function(t, e) { | |
return W.set(t, e), e; | |
} | |
}; | |
function G(t) { | |
for (var e; t && (e = V.get(t)) && e.endNode; ) t = e.endNode; | |
return t; | |
} | |
function z(t) { | |
var e = V.get(t), | |
n = e.startNode; | |
if (n) | |
for (var r = n, o = G(e.endNode).nextSibling; r; ) { | |
var i = r.nextSibling; | |
r.parentNode.removeChild(r), (r = i !== o && i); | |
} | |
} | |
var X = new WeakMap(); | |
function $(t, e, n) { | |
var r = X.get(e), | |
o = n.map(function(t, e) { | |
return { | |
id: Object.prototype.hasOwnProperty.call(t, "id") ? t.id : e, | |
value: t, | |
placeholder: null, | |
available: !0 | |
}; | |
}); | |
if ((X.set(e, o), r)) { | |
var i = new Set(); | |
o.forEach(function(t) { | |
return i.add(t.id); | |
}), | |
(r = r.filter(function(t) { | |
return ( | |
!!i.has(t.id) || | |
(z(t.placeholder), | |
t.placeholder.parentNode.removeChild(t.placeholder), | |
!1) | |
); | |
})); | |
} | |
var a = e, | |
s = n.length - 1, | |
c = V.get(e); | |
o.forEach(function(e, n) { | |
var o, | |
i = | |
r && | |
r.find(function(t) { | |
return t.available && t.id === e.id; | |
}); | |
i | |
? ((i.available = !1), | |
(o = i.placeholder).previousSibling !== a && | |
(function(t, e) { | |
var n = V.get(t), | |
r = n.startNode, | |
o = G(n.endNode); | |
e.parentNode.insertBefore(t, e.nextSibling); | |
for (var i = t, a = r; a; ) { | |
var s = a.nextSibling; | |
i.parentNode.insertBefore(a, i.nextSibling), | |
(i = a), | |
(a = s !== o.nextSibling && s); | |
} | |
})(o, a), | |
i.value !== e.value && J(t, o, e.value)) | |
: ((o = document.createTextNode("")), | |
a.parentNode.insertBefore(o, a.nextSibling), | |
J(t, o, e.value)), | |
(a = G(V.get(o).endNode || o)), | |
0 === n && (c.startNode = o), | |
n === s && (c.endNode = a), | |
(e.placeholder = o); | |
}), | |
r && | |
r.forEach(function(t) { | |
t.available && | |
(z(t.placeholder), | |
t.placeholder.parentNode.removeChild(t.placeholder)); | |
}); | |
} | |
function K(t) { | |
return (K = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
function J(t, e, n) { | |
var r = Array.isArray(n) ? "array" : K(n), | |
o = V.get(e, {}); | |
switch ( | |
(o.type !== r && | |
(z(e), | |
"array" === r && X.delete(e), | |
(o = V.set(e, { type: r })), | |
"" !== e.textContent && (e.textContent = "")), | |
r) | |
) { | |
case "function": | |
n(t, e); | |
break; | |
case "array": | |
$(t, e, n); | |
break; | |
default: | |
e.textContent = "number" === r || n ? n : ""; | |
} | |
} | |
function Z(t) { | |
return (Z = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
var Y = new WeakMap(); | |
function Q(t) { | |
return (Q = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
var tt = new WeakMap(); | |
function et(t, e, n) { | |
var r = tt.get(e) || new Set(), | |
o = (function(t) { | |
var e = | |
arguments.length > 1 && void 0 !== arguments[1] | |
? arguments[1] | |
: new Set(); | |
return ( | |
Array.isArray(t) | |
? t.forEach(function(t) { | |
return e.add(t); | |
}) | |
: null !== t && "object" === Q(t) | |
? Object.keys(t).forEach(function(n) { | |
return t[n] && e.add(n); | |
}) | |
: e.add(t), | |
e | |
); | |
})(n); | |
tt.set(e, o), | |
o.forEach(function(t) { | |
e.classList.add(t), r.delete(t); | |
}), | |
r.forEach(function(t) { | |
e.classList.remove(t); | |
}); | |
} | |
function nt(t) { | |
return (nt = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
var rt = new WeakMap(); | |
function ot(t, e, n) { | |
if (null === n || "object" !== nt(n)) | |
throw TypeError( | |
"Style value must be an object in ".concat(s(e), ":"), | |
n | |
); | |
var r = rt.get(e) || new Map(), | |
i = Object.keys(n).reduce(function(t, i) { | |
var a = o(i), | |
s = n[i]; | |
return ( | |
s || 0 === s | |
? e.style.setProperty(a, s) | |
: e.style.removeProperty(a), | |
t.set(a, s), | |
r.delete(a), | |
t | |
); | |
}, new Map()); | |
r.forEach(function(t, n) { | |
e.style[n] = ""; | |
}), | |
rt.set(e, i); | |
} | |
function it(t, e, n) { | |
if ("on" === e.substr(0, 2)) | |
return (function(t) { | |
return function(e, n, r, o) { | |
if ( | |
(o && | |
n.removeEventListener( | |
t, | |
Y.get(o), | |
void 0 !== o.options && o.options | |
), | |
r) | |
) { | |
if ("function" != typeof r) | |
throw Error("Event listener must be a function: ".concat(Z(r))); | |
Y.set(r, r.bind(null, e)), | |
n.addEventListener( | |
t, | |
Y.get(r), | |
void 0 !== r.options && r.options | |
); | |
} | |
}; | |
})(e.substr(2)); | |
switch (t) { | |
case "class": | |
return et; | |
case "style": | |
return ot; | |
default: | |
return function(r, o, i) { | |
if (n || o instanceof SVGElement || !(e in o)) | |
if (!1 === i || null == i) o.removeAttribute(t); | |
else { | |
var a = !0 === i ? "" : String(i); | |
o.setAttribute(t, a); | |
} | |
else o[e] !== i && (o[e] = i); | |
}; | |
} | |
} | |
function at(t, e) { | |
return ( | |
(function(t) { | |
if (Array.isArray(t)) return t; | |
})(t) || | |
(function(t, e) { | |
var n = [], | |
r = !0, | |
o = !1, | |
i = void 0; | |
try { | |
for ( | |
var a, s = t[Symbol.iterator](); | |
!(r = (a = s.next()).done) && | |
(n.push(a.value), !e || n.length !== e); | |
r = !0 | |
); | |
} catch (t) { | |
(o = !0), (i = t); | |
} finally { | |
try { | |
r || null == s.return || s.return(); | |
} finally { | |
if (o) throw i; | |
} | |
} | |
return n; | |
})(t, e) || | |
(function() { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance" | |
); | |
})() | |
); | |
} | |
function st(t) { | |
return (st = | |
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator | |
? function(t) { | |
return typeof t; | |
} | |
: function(t) { | |
return t && | |
"function" == typeof Symbol && | |
t.constructor === Symbol && | |
t !== Symbol.prototype | |
? "symbol" | |
: typeof t; | |
})(t); | |
} | |
var ct = Date.now(), | |
ut = function() { | |
var t = | |
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0; | |
return "{{h-".concat(ct, "-").concat(t, "}}"); | |
}, | |
lt = ut("(\\d+)"), | |
dt = new RegExp("^".concat(lt, "$")), | |
ft = new RegExp(lt, "g"), | |
ht = "--".concat(ct, "--"), | |
pt = new RegExp(ht, "g"), | |
yt = new WeakMap(); | |
var vt = | |
"object" === st(window.ShadyDOM) && window.ShadyDOM.inUse | |
? function(t) { | |
var e; | |
return { | |
get currentNode() { | |
return e; | |
}, | |
nextNode: function() { | |
return !!(e = | |
void 0 === e | |
? t.childNodes[0] | |
: e.childNodes.length | |
? e.childNodes[0] | |
: e.nextSibling | |
? e.nextSibling | |
: e.parentNode.nextSibling); | |
} | |
}; | |
} | |
: function(t) { | |
return document.createTreeWalker( | |
t, | |
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT, | |
null, | |
!1 | |
); | |
}, | |
mt = document.createElement("div"); | |
function _t(t, e, n) { | |
var r = document.createElement("template"), | |
o = [], | |
i = (function(t, e) { | |
var n = t.reduce(function(e, n, r) { | |
return 0 === r | |
? n | |
: t | |
.slice(r) | |
.join("") | |
.match(/^\s*<\/\s*(table|tr|thead|tbody|tfoot|colgroup)>/) | |
? "" | |
.concat(e, "\x3c!--") | |
.concat(ut(r - 1), "--\x3e") | |
.concat(n) | |
: e + ut(r - 1) + n; | |
}, ""); | |
return ( | |
e && | |
(n += "<style>\n".concat(e.join("\n/*------*/\n"), "\n</style>")), | |
c | |
? n.replace( | |
/style\s*=\s*(["][^"]+["]|['][^']+[']|[^\s"'<>\/]+)/g, | |
function(t) { | |
return "".concat(ht).concat(t); | |
} | |
) | |
: n | |
); | |
})(t, n); | |
if ( | |
(e && (i = "<svg>".concat(i, "</svg>")), | |
c | |
? (r.innerHTML = i) | |
: ((mt.innerHTML = "<template>".concat(i, "</template>")), | |
r.content.appendChild(mt.children[0].content)), | |
e) | |
) { | |
var s = r.content.firstChild; | |
r.content.removeChild(s), | |
Array.from(s.childNodes).forEach(function(t) { | |
return r.content.appendChild(t); | |
}); | |
} | |
!(function(t) { | |
for ( | |
var e, | |
n = document.createNodeIterator( | |
t, | |
NodeFilter.SHOW_COMMENT, | |
null, | |
!1 | |
); | |
(e = n.nextNode()); | |
) | |
dt.test(e.textContent) && | |
(e.parentNode.insertBefore( | |
document.createTextNode(e.textContent), | |
e | |
), | |
e.parentNode.removeChild(e)); | |
})(r.content); | |
for ( | |
var u = vt(r.content), | |
l = 0, | |
d = function() { | |
var n = u.currentNode; | |
if (n.nodeType === Node.TEXT_NODE) { | |
var r = n.textContent; | |
if (!r.match(dt)) { | |
var i = r.match(ft); | |
if (i) { | |
var a = n; | |
i.reduce( | |
function(t, e) { | |
var n = at(t.pop().split(e), 2), | |
r = n[0], | |
o = n[1]; | |
return r && t.push(r), t.push(e), o && t.push(o), t; | |
}, | |
[r] | |
).forEach(function(t, e) { | |
0 === e | |
? (a.textContent = t) | |
: (a = a.parentNode.insertBefore( | |
document.createTextNode(t), | |
a.nextSibling | |
)); | |
}); | |
} | |
} | |
var s = n.textContent.match(dt); | |
s && (c || (n.textContent = ""), (o[s[1]] = [l, J])); | |
} else | |
n.nodeType === Node.ELEMENT_NODE && | |
Array.from(n.attributes).forEach(function(r) { | |
var i = r.value.trim(), | |
a = c ? r.name.replace(ht, "") : r.name, | |
s = i.match(dt); | |
if (s) { | |
var u = t[s[1]] | |
.replace(/\s*=\s*['"]*$/g, "") | |
.split(" ") | |
.pop(); | |
(o[s[1]] = [l, it(a, u, e)]), n.removeAttribute(r.name); | |
} else { | |
var d = i.match(ft); | |
if (d) { | |
var f = "attr__".concat(a); | |
d.forEach(function(t, e) { | |
var n = at(t.match(dt), 2)[1]; | |
o[n] = [ | |
l, | |
function(n, r, o) { | |
var s = V.get(r, {}); | |
(s[f] = (s[f] || i).replace(t, null == o ? "" : o)), | |
(1 !== d.length && e + 1 !== d.length) || | |
(r.setAttribute(a, s[f]), (s[f] = void 0)); | |
} | |
]; | |
}), | |
(r.value = ""), | |
c && | |
a !== r.name && | |
(n.removeAttribute(r.name), n.setAttribute(a, "")); | |
} | |
} | |
}); | |
l += 1; | |
}; | |
u.nextNode(); | |
) | |
d(); | |
return function(t, e, n) { | |
var i = V.get(e, { type: "function" }); | |
if (r !== i.template) { | |
i.template && z(e); | |
var s = document.importNode( | |
(function(t, e) { | |
return e | |
? a(function(n) { | |
var r = yt.get(t); | |
r || ((r = new Map()), yt.set(t, r)); | |
var o = r.get(e); | |
if (!o) { | |
(o = document.createElement( | |
"template" | |
)).content.appendChild(t.content.cloneNode(!0)), | |
r.set(e, o); | |
var i = o.content.querySelectorAll("style"); | |
Array.from(i).forEach(function(t) { | |
for ( | |
var e = t.childNodes.length + 1, n = 0; | |
n < e; | |
n += 1 | |
) | |
t.parentNode.insertBefore( | |
document.createTextNode(ut()), | |
t | |
); | |
}), | |
n.prepareTemplate(o, e.toLowerCase()); | |
} | |
return o; | |
}, t) | |
: t; | |
})(r, t.tagName).content, | |
!0 | |
), | |
u = vt(s), | |
l = o.slice(0), | |
d = 0, | |
f = l.shift(), | |
h = []; | |
for (Object.assign(i, { template: r, markers: h }); u.nextNode(); ) { | |
var p = u.currentNode; | |
for ( | |
p.nodeType === Node.TEXT_NODE && | |
(dt.test(p.textContent) | |
? (p.textContent = "") | |
: c && (p.textContent = p.textContent.replace(pt, ""))); | |
f && f[0] === d; | |
) | |
h.push([p, f[1]]), (f = l.shift()); | |
d += 1; | |
} | |
var y = Array.from(s.childNodes); | |
if ( | |
((i.startNode = y[0]), | |
(i.endNode = y[y.length - 1]), | |
e.nodeType === Node.TEXT_NODE) | |
) { | |
var v = e; | |
y.forEach(function(t) { | |
e.parentNode.insertBefore(t, v.nextSibling), (v = t); | |
}); | |
} else e.appendChild(s); | |
} | |
i.markers.forEach(function(e, r) { | |
var o = at(e, 2), | |
a = o[0], | |
s = o[1]; | |
(i.lastArgs && i.lastArgs[r] === n[r]) || | |
s(t, a, n[r], i.lastArgs ? i.lastArgs[r] : void 0); | |
}), | |
(i.lastArgs = n); | |
}; | |
} | |
var gt = new WeakMap(); | |
function bt(t, e) { | |
var n = | |
arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 200; | |
return function(r, o) { | |
var i; | |
e && | |
(i = setTimeout(function() { | |
(i = void 0), | |
requestAnimationFrame(function() { | |
e(r, o); | |
}); | |
}, n)), | |
gt.set(o, t), | |
t.then(function(e) { | |
i && clearTimeout(i), gt.get(o) === t && (e(r, o), gt.set(o, null)); | |
}); | |
}; | |
} | |
var wt = ut(), | |
Et = new Map(), | |
Nt = new WeakMap(), | |
St = { | |
define: function(t) { | |
return B(t), this; | |
}, | |
key: function(t) { | |
return (this.id = t), this; | |
}, | |
style: function() { | |
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) | |
e[n] = arguments[n]; | |
return Nt.set(this, e), this; | |
} | |
}; | |
function Ct(t, e, n) { | |
return Object.assign(function r(o) { | |
var i = | |
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : o, | |
a = Nt.get(r), | |
s = "" | |
.concat(t.join(wt)) | |
.concat(a ? a.join(wt) : "") | |
.concat(n ? "svg" : ""), | |
c = Et.get(s); | |
c || ((c = _t(t, n, a)), Et.set(s, c)), c(o, i, e); | |
}, St); | |
} | |
function xt(t) { | |
for ( | |
var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; | |
r < e; | |
r++ | |
) | |
n[r - 1] = arguments[r]; | |
return Ct(t, n); | |
} | |
function Tt(t) { | |
for ( | |
var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; | |
r < e; | |
r++ | |
) | |
n[r - 1] = arguments[r]; | |
return Ct(t, n, !0); | |
} | |
Object.assign(xt, { resolve: bt }), | |
Object.assign(Tt, { resolve: bt }), | |
n.d(e, "define", function() { | |
return B; | |
}), | |
n.d(e, "property", function() { | |
return f; | |
}), | |
n.d(e, "parent", function() { | |
return U; | |
}), | |
n.d(e, "children", function() { | |
return q; | |
}), | |
n.d(e, "render", function() { | |
return w; | |
}), | |
n.d(e, "dispatch", function() { | |
return i; | |
}), | |
n.d(e, "html", function() { | |
return xt; | |
}), | |
n.d(e, "svg", function() { | |
return Tt; | |
}); | |
} | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment