Skip to content

Instantly share code, notes, and snippets.

@joakin
Created October 2, 2017 10:08
Show Gist options
  • Save joakin/ecbc28e676bad2bbddee7e122130ad80 to your computer and use it in GitHub Desktop.
Save joakin/ecbc28e676bad2bbddee7e122130ad80 to your computer and use it in GitHub Desktop.
Compiled runtime and vendor
!(function(e) {
function n(r) {
if (t[r]) return t[r].exports;
var o = (t[r] = { i: r, l: !1, exports: {} });
return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
}
var r = window.webpackJsonp;
window.webpackJsonp = function(t, a, c) {
for (var u, i, f, s = 0, d = []; s < t.length; s++)
(i = t[s]), o[i] && d.push(o[i][0]), (o[i] = 0);
for (u in a) Object.prototype.hasOwnProperty.call(a, u) && (e[u] = a[u]);
for (r && r(t, a, c); d.length; ) d.shift()();
if (c) for (s = 0; s < c.length; s++) f = n((n.s = c[s]));
return f;
};
var t = {},
o = { 7: 0 };
(n.e = function(e) {
function r() {
(u.onerror = u.onload = null), clearTimeout(i);
var n = o[e];
0 !== n &&
(n && n[1](new Error("Loading chunk " + e + " failed.")),
(o[e] = void 0));
}
var t = o[e];
if (0 === t)
return new Promise(function(e) {
e();
});
if (t) return t[2];
var a = new Promise(function(n, r) {
t = o[e] = [n, r];
});
t[2] = a;
var c = document.getElementsByTagName("head")[0],
u = document.createElement("script");
(u.type = "text/javascript"),
(u.charset = "utf-8"),
(u.async = !0),
(u.timeout = 12e4),
n.nc && u.setAttribute("nonce", n.nc),
(u.src =
n.p +
"" +
({
0: "pages/summary",
1: "pages/style-guide",
2: "pages/not-found",
3: "pages/home",
4: "pages/about",
5: "index",
6: "vendor"
}[e] || e) +
"." +
{
0: "dbb545f62ce80b7ea45d",
1: "43aa981d3a8dbc266e76",
2: "4699834e4dad3b6a4680",
3: "2c41b77f8bf793483431",
4: "a7d0bab9086c4c2dfd96",
5: "925778ff9b18e74f4a54",
6: "be0eb951a32cd662052a"
}[e] +
".js");
var i = setTimeout(r, 12e4);
return (u.onerror = u.onload = r), c.appendChild(u), a;
}),
(n.m = e),
(n.c = t),
(n.d = function(e, r, t) {
n.o(e, r) ||
Object.defineProperty(e, r, {
configurable: !1,
enumerable: !0,
get: t
});
}),
(n.n = function(e) {
var r =
e && e.__esModule
? function() {
return e.default;
}
: function() {
return e;
};
return n.d(r, "a", r), r;
}),
(n.o = function(e, n) {
return Object.prototype.hasOwnProperty.call(e, n);
}),
(n.p = "/public/"),
(n.oe = function(e) {
throw (console.error(e), e);
});
})([]);
//# sourceMappingURL=runtime.16e5445a23da2bc55c52.js.map
webpackJsonp([6], {
"./node_modules/history/DOMUtils.js": function(e, t, n) {
"use strict";
t.__esModule = !0;
(t.canUseDOM = !(
"undefined" == typeof window ||
!window.document ||
!window.document.createElement
)),
(t.addEventListener = function(e, t, n) {
return e.addEventListener
? e.addEventListener(t, n, !1)
: e.attachEvent("on" + t, n);
}),
(t.removeEventListener = function(e, t, n) {
return e.removeEventListener
? e.removeEventListener(t, n, !1)
: e.detachEvent("on" + t, n);
}),
(t.getConfirmation = function(e, t) {
return t(window.confirm(e));
}),
(t.supportsHistory = function() {
var e = window.navigator.userAgent;
return (
((-1 === e.indexOf("Android 2.") &&
-1 === e.indexOf("Android 4.0")) ||
-1 === e.indexOf("Mobile Safari") ||
-1 !== e.indexOf("Chrome") ||
-1 !== e.indexOf("Windows Phone")) &&
(window.history && "pushState" in window.history)
);
}),
(t.supportsPopStateOnHashChange = function() {
return -1 === window.navigator.userAgent.indexOf("Trident");
}),
(t.supportsGoWithoutReloadUsingHash = function() {
return -1 === window.navigator.userAgent.indexOf("Firefox");
}),
(t.isExtraneousPopstateEvent = function(e) {
return (
void 0 === e.state && -1 === navigator.userAgent.indexOf("CriOS")
);
});
},
"./node_modules/history/LocationUtils.js": function(e, t, n) {
"use strict";
function r(e) {
return e && e.__esModule ? e : { default: e };
}
(t.__esModule = !0), (t.locationsAreEqual = t.createLocation = void 0);
var o =
Object.assign ||
function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
},
i = n("./node_modules/resolve-pathname/index.js"),
a = r(i),
s = n("./node_modules/value-equal/index.js"),
u = r(s),
l = n("./node_modules/history/PathUtils.js");
(t.createLocation = function(e, t, n, r) {
var i = void 0;
"string" == typeof e
? ((i = (0, l.parsePath)(e)), (i.state = t))
: ((i = o({}, e)),
void 0 === i.pathname && (i.pathname = ""),
i.search
? "?" !== i.search.charAt(0) && (i.search = "?" + i.search)
: (i.search = ""),
i.hash
? "#" !== i.hash.charAt(0) && (i.hash = "#" + i.hash)
: (i.hash = ""),
void 0 !== t && void 0 === i.state && (i.state = t));
try {
i.pathname = decodeURI(i.pathname);
} catch (e) {
throw e instanceof URIError
? new URIError(
'Pathname "' +
i.pathname +
'" could not be decoded. This is likely caused by an invalid percent-encoding.'
)
: e;
}
return (
n && (i.key = n),
r
? i.pathname
? "/" !== i.pathname.charAt(0) &&
(i.pathname = (0, a.default)(i.pathname, r.pathname))
: (i.pathname = r.pathname)
: i.pathname || (i.pathname = "/"),
i
);
}),
(t.locationsAreEqual = function(e, t) {
return (
e.pathname === t.pathname &&
e.search === t.search &&
e.hash === t.hash &&
e.key === t.key &&
(0, u.default)(e.state, t.state)
);
});
},
"./node_modules/history/PathUtils.js": function(e, t, n) {
"use strict";
t.__esModule = !0;
var r = ((t.addLeadingSlash = function(e) {
return "/" === e.charAt(0) ? e : "/" + e;
}),
(t.stripLeadingSlash = function(e) {
return "/" === e.charAt(0) ? e.substr(1) : e;
}),
(t.hasBasename = function(e, t) {
return new RegExp("^" + t + "(\\/|\\?|#|$)", "i").test(e);
}));
(t.stripBasename = function(e, t) {
return r(e, t) ? e.substr(t.length) : e;
}),
(t.stripTrailingSlash = function(e) {
return "/" === e.charAt(e.length - 1) ? e.slice(0, -1) : e;
}),
(t.parsePath = function(e) {
var t = e || "/",
n = "",
r = "",
o = t.indexOf("#");
-1 !== o && ((r = t.substr(o)), (t = t.substr(0, o)));
var i = t.indexOf("?");
return (
-1 !== i && ((n = t.substr(i)), (t = t.substr(0, i))),
{ pathname: t, search: "?" === n ? "" : n, hash: "#" === r ? "" : r }
);
}),
(t.createPath = function(e) {
var t = e.pathname,
n = e.search,
r = e.hash,
o = t || "/";
return (
n && "?" !== n && (o += "?" === n.charAt(0) ? n : "?" + n),
r && "#" !== r && (o += "#" === r.charAt(0) ? r : "#" + r),
o
);
});
},
"./node_modules/history/createBrowserHistory.js": function(e, t, n) {
"use strict";
function r(e) {
return e && e.__esModule ? e : { default: e };
}
t.__esModule = !0;
var o =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function(e) {
return typeof e;
}
: function(e) {
return e &&
"function" == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? "symbol"
: typeof e;
},
i =
Object.assign ||
function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
},
a = n("./node_modules/warning/browser.js"),
s = r(a),
u = n("./node_modules/invariant/browser.js"),
l = r(u),
c = n("./node_modules/history/LocationUtils.js"),
f = n("./node_modules/history/PathUtils.js"),
p = n("./node_modules/history/createTransitionManager.js"),
d = r(p),
h = n("./node_modules/history/DOMUtils.js"),
v = function() {
try {
return window.history.state || {};
} catch (e) {
return {};
}
},
m = function() {
var e =
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
(0, l.default)(h.canUseDOM, "Browser history needs a DOM");
var t = window.history,
n = (0, h.supportsHistory)(),
r = !(0, h.supportsPopStateOnHashChange)(),
a = e.forceRefresh,
u = void 0 !== a && a,
p = e.getUserConfirmation,
m = void 0 === p ? h.getConfirmation : p,
y = e.keyLength,
g = void 0 === y ? 6 : y,
_ = e.basename
? (0, f.stripTrailingSlash)((0, f.addLeadingSlash)(e.basename))
: "",
b = function(e) {
var t = e || {},
n = t.key,
r = t.state,
o = window.location,
i = o.pathname,
a = o.search,
u = o.hash,
l = i + a + u;
return (
(0, s.default)(
!_ || (0, f.hasBasename)(l, _),
'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' +
l +
'" to begin with "' +
_ +
'".'
),
_ && (l = (0, f.stripBasename)(l, _)),
(0, c.createLocation)(l, r, n)
);
},
w = function() {
return Math.random()
.toString(36)
.substr(2, g);
},
x = (0, d.default)(),
C = function(e) {
i(I, e),
(I.length = t.length),
x.notifyListeners(I.location, I.action);
},
E = function(e) {
(0, h.isExtraneousPopstateEvent)(e) || j(b(e.state));
},
k = function() {
j(b(v()));
},
S = !1,
j = function(e) {
if (S) (S = !1), C();
else {
x.confirmTransitionTo(e, "POP", m, function(t) {
t ? C({ action: "POP", location: e }) : L(e);
});
}
},
L = function(e) {
var t = I.location,
n = O.indexOf(t.key);
-1 === n && (n = 0);
var r = O.indexOf(e.key);
-1 === r && (r = 0);
var o = n - r;
o && ((S = !0), M(o));
},
P = b(v()),
O = [P.key],
A = function(e) {
return _ + (0, f.createPath)(e);
},
T = function(e, r) {
(0, s.default)(
!(
"object" === (void 0 === e ? "undefined" : o(e)) &&
void 0 !== e.state &&
void 0 !== r
),
"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored"
);
var i = (0, c.createLocation)(e, r, w(), I.location);
x.confirmTransitionTo(i, "PUSH", m, function(e) {
if (e) {
var r = A(i),
o = i.key,
a = i.state;
if (n)
if ((t.pushState({ key: o, state: a }, null, r), u))
window.location.href = r;
else {
var l = O.indexOf(I.location.key),
c = O.slice(0, -1 === l ? 0 : l + 1);
c.push(i.key), (O = c), C({ action: "PUSH", location: i });
}
else
(0, s.default)(
void 0 === a,
"Browser history cannot push state in browsers that do not support HTML5 history"
),
(window.location.href = r);
}
});
},
U = function(e, r) {
(0, s.default)(
!(
"object" === (void 0 === e ? "undefined" : o(e)) &&
void 0 !== e.state &&
void 0 !== r
),
"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored"
);
var i = (0, c.createLocation)(e, r, w(), I.location);
x.confirmTransitionTo(i, "REPLACE", m, function(e) {
if (e) {
var r = A(i),
o = i.key,
a = i.state;
if (n)
if ((t.replaceState({ key: o, state: a }, null, r), u))
window.location.replace(r);
else {
var l = O.indexOf(I.location.key);
-1 !== l && (O[l] = i.key),
C({ action: "REPLACE", location: i });
}
else
(0, s.default)(
void 0 === a,
"Browser history cannot replace state in browsers that do not support HTML5 history"
),
window.location.replace(r);
}
});
},
M = function(e) {
t.go(e);
},
N = function() {
return M(-1);
},
B = function() {
return M(1);
},
R = 0,
H = function(e) {
(R += e),
1 === R
? ((0, h.addEventListener)(window, "popstate", E),
r && (0, h.addEventListener)(window, "hashchange", k))
: 0 === R &&
((0, h.removeEventListener)(window, "popstate", E),
r && (0, h.removeEventListener)(window, "hashchange", k));
},
W = !1,
$ = function() {
var e =
arguments.length > 0 && void 0 !== arguments[0] && arguments[0],
t = x.setPrompt(e);
return (
W || (H(1), (W = !0)),
function() {
return W && ((W = !1), H(-1)), t();
}
);
},
D = function(e) {
var t = x.appendListener(e);
return (
H(1),
function() {
H(-1), t();
}
);
},
I = {
length: t.length,
action: "POP",
location: P,
createHref: A,
push: T,
replace: U,
go: M,
goBack: N,
goForward: B,
block: $,
listen: D
};
return I;
};
t.default = m;
},
"./node_modules/history/createTransitionManager.js": function(e, t, n) {
"use strict";
t.__esModule = !0;
var r = n("./node_modules/warning/browser.js"),
o = (function(e) {
return e && e.__esModule ? e : { default: e };
})(r),
i = function() {
var e = null,
t = function(t) {
return (
(0, o.default)(
null == e,
"A history supports only one prompt at a time"
),
(e = t),
function() {
e === t && (e = null);
}
);
},
n = function(t, n, r, i) {
if (null != e) {
var a = "function" == typeof e ? e(t, n) : e;
"string" == typeof a
? "function" == typeof r
? r(a, i)
: ((0, o.default)(
!1,
"A history needs a getUserConfirmation function in order to use a prompt message"
),
i(!0))
: i(!1 !== a);
} else i(!0);
},
r = [];
return {
setPrompt: t,
confirmTransitionTo: n,
appendListener: function(e) {
var t = !0,
n = function() {
t && e.apply(void 0, arguments);
};
return (
r.push(n),
function() {
(t = !1),
(r = r.filter(function(e) {
return e !== n;
}));
}
);
},
notifyListeners: function() {
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
r.forEach(function(e) {
return e.apply(void 0, t);
});
}
};
};
t.default = i;
},
"./node_modules/invariant/browser.js": function(e, t, n) {
"use strict";
var r = function(e, t, n, r, o, i, a, s) {
if (!e) {
var u;
if (void 0 === t)
u = new Error(
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
);
else {
var l = [n, r, o, i, a, s],
c = 0;
(u = new Error(
t.replace(/%s/g, function() {
return l[c++];
})
)),
(u.name = "Invariant Violation");
}
throw ((u.framesToPop = 1), u);
}
};
e.exports = r;
},
"./node_modules/path-to-regexp/index.js": function(e, t) {
function n(e, t) {
for (
var n,
r = [],
o = 0,
s = 0,
u = "",
l = (t && t.delimiter) || "/",
c = (t && t.delimiters) || "./",
f = !1;
null !== (n = d.exec(e));
) {
var p = n[0],
h = n[1],
v = n.index;
if (((u += e.slice(s, v)), (s = v + p.length), h))
(u += h[1]), (f = !0);
else {
var m = "",
y = e[s],
g = n[2],
_ = n[3],
b = n[4],
w = n[5];
if (!f && u.length) {
var x = u.length - 1;
c.indexOf(u[x]) > -1 && ((m = u[x]), (u = u.slice(0, x)));
}
u && (r.push(u), (u = ""), (f = !1));
var C = "" !== m && void 0 !== y && y !== m,
E = "+" === w || "*" === w,
k = "?" === w || "*" === w,
S = m || l,
j = _ || b;
r.push({
name: g || o++,
prefix: m,
delimiter: S,
optional: k,
repeat: E,
partial: C,
pattern: j ? a(j) : "[^" + i(S) + "]+?"
});
}
}
return (u || s < e.length) && r.push(u + e.substr(s)), r;
}
function r(e, t) {
return o(n(e, t));
}
function o(e) {
for (var t = new Array(e.length), n = 0; n < e.length; n++)
"object" == typeof e[n] &&
(t[n] = new RegExp("^(?:" + e[n].pattern + ")$"));
return function(n, r) {
for (
var o = "", i = (r && r.encode) || encodeURIComponent, a = 0;
a < e.length;
a++
) {
var s = e[a];
if ("string" != typeof s) {
var u,
l = n ? n[s.name] : void 0;
if (Array.isArray(l)) {
if (!s.repeat)
throw new TypeError(
'Expected "' + s.name + '" to not repeat, but got array'
);
if (0 === l.length) {
if (s.optional) continue;
throw new TypeError(
'Expected "' + s.name + '" to not be empty'
);
}
for (var c = 0; c < l.length; c++) {
if (((u = i(l[c])), !t[a].test(u)))
throw new TypeError(
'Expected all "' + s.name + '" to match "' + s.pattern + '"'
);
o += (0 === c ? s.prefix : s.delimiter) + u;
}
} else if (
"string" != typeof l &&
"number" != typeof l &&
"boolean" != typeof l
) {
if (!s.optional)
throw new TypeError(
'Expected "' +
s.name +
'" to be ' +
(s.repeat ? "an array" : "a string")
);
s.partial && (o += s.prefix);
} else {
if (((u = i(String(l))), !t[a].test(u)))
throw new TypeError(
'Expected "' +
s.name +
'" to match "' +
s.pattern +
'", but got "' +
u +
'"'
);
o += s.prefix + u;
}
} else o += s;
}
return o;
};
}
function i(e) {
return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
}
function a(e) {
return e.replace(/([=!:$\/()])/g, "\\$1");
}
function s(e) {
return e && e.sensitive ? "" : "i";
}
function u(e, t) {
if (!t) return e;
var n = e.source.match(/\((?!\?)/g);
if (n)
for (var r = 0; r < n.length; r++)
t.push({
name: r,
prefix: null,
delimiter: null,
optional: !1,
repeat: !1,
partial: !1,
pattern: null
});
return e;
}
function l(e, t, n) {
for (var r = [], o = 0; o < e.length; o++) r.push(p(e[o], t, n).source);
return new RegExp("(?:" + r.join("|") + ")", s(n));
}
function c(e, t, r) {
return f(n(e, r), t, r);
}
function f(e, t, n) {
n = n || {};
for (
var r = n.strict,
o = !1 !== n.end,
a = i(n.delimiter || "/"),
u = []
.concat(n.endsWith || [])
.map(i)
.concat("$")
.join("|"),
l = "",
c = 0;
c < e.length;
c++
) {
var f = e[c];
if ("string" == typeof f) l += i(f);
else {
var p = i(f.prefix),
d = "(?:" + f.pattern + ")";
t && t.push(f),
f.repeat && (d += "(?:" + p + d + ")*"),
(d = f.optional
? f.partial ? p + "(" + d + ")?" : "(?:" + p + "(" + d + "))?"
: p + "(" + d + ")"),
(l += d);
}
}
return (
r || (l += "(?:" + a + "(?=" + u + "))?"),
(l += o
? "$" === u ? u : "(?=" + u + ")"
: "(?=" + a + "|" + u + ")"),
new RegExp("^" + l, s(n))
);
}
function p(e, t, n) {
return e instanceof RegExp
? u(e, t)
: Array.isArray(e) ? l(e, t, n) : c(e, t, n);
}
(e.exports = p),
(e.exports.parse = n),
(e.exports.compile = r),
(e.exports.tokensToFunction = o),
(e.exports.tokensToRegExp = f);
var d = new RegExp(
[
"(\\\\.)",
"(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"
].join("|"),
"g"
);
},
"./node_modules/preact/dist/preact.esm.js": function(e, t, n) {
"use strict";
function r() {}
function o(e, t) {
var n,
o,
i,
a,
s = M;
for (a = arguments.length; a-- > 2; ) U.push(arguments[a]);
for (
t &&
null != t.children &&
(U.length || U.push(t.children), delete t.children);
U.length;
)
if ((o = U.pop()) && void 0 !== o.pop)
for (a = o.length; a--; ) U.push(o[a]);
else
"boolean" == typeof o && (o = null),
(i = "function" != typeof e) &&
(null == o
? (o = "")
: "number" == typeof o
? (o = String(o))
: "string" != typeof o && (i = !1)),
i && n ? (s[s.length - 1] += o) : s === M ? (s = [o]) : s.push(o),
(n = i);
var u = new r();
return (
(u.nodeName = e),
(u.children = s),
(u.attributes = null == t ? void 0 : t),
(u.key = null == t ? void 0 : t.key),
void 0 !== T.vnode && T.vnode(u),
u
);
}
function i(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
function a(e) {
!e._dirty &&
(e._dirty = !0) &&
1 == R.push(e) &&
(T.debounceRendering || N)(s);
}
function s() {
var e,
t = R;
for (R = []; (e = t.pop()); ) e._dirty && j(e);
}
function u(e, t, n) {
return "string" == typeof t || "number" == typeof t
? void 0 !== e.splitText
: "string" == typeof t.nodeName
? !e._componentConstructor && l(e, t.nodeName)
: n || e._componentConstructor === t.nodeName;
}
function l(e, t) {
return (
e.normalizedNodeName === t ||
e.nodeName.toLowerCase() === t.toLowerCase()
);
}
function c(e) {
var t = i({}, e.attributes);
t.children = e.children;
var n = e.nodeName.defaultProps;
if (void 0 !== n) for (var r in n) void 0 === t[r] && (t[r] = n[r]);
return t;
}
function f(e, t) {
var n = t
? document.createElementNS("http://www.w3.org/2000/svg", e)
: document.createElement(e);
return (n.normalizedNodeName = e), n;
}
function p(e) {
var t = e.parentNode;
t && t.removeChild(e);
}
function d(e, t, n, r, o) {
if (("className" === t && (t = "class"), "key" === t));
else if ("ref" === t) n && n(null), r && r(e);
else if ("class" !== t || o)
if ("style" === t) {
if (
((r && "string" != typeof r && "string" != typeof n) ||
(e.style.cssText = r || ""),
r && "object" == typeof r)
) {
if ("string" != typeof n)
for (var i in n) i in r || (e.style[i] = "");
for (var i in r)
e.style[i] =
"number" == typeof r[i] && !1 === B.test(i)
? r[i] + "px"
: r[i];
}
} else if ("dangerouslySetInnerHTML" === t)
r && (e.innerHTML = r.__html || "");
else if ("o" == t[0] && "n" == t[1]) {
var a = t !== (t = t.replace(/Capture$/, ""));
(t = t.toLowerCase().substring(2)),
r
? n || e.addEventListener(t, v, a)
: e.removeEventListener(t, v, a),
((e._listeners || (e._listeners = {}))[t] = r);
} else if ("list" !== t && "type" !== t && !o && t in e)
h(e, t, null == r ? "" : r),
(null != r && !1 !== r) || e.removeAttribute(t);
else {
var s = o && t !== (t = t.replace(/^xlink\:?/, ""));
null == r || !1 === r
? s
? e.removeAttributeNS(
"http://www.w3.org/1999/xlink",
t.toLowerCase()
)
: e.removeAttribute(t)
: "function" != typeof r &&
(s
? e.setAttributeNS(
"http://www.w3.org/1999/xlink",
t.toLowerCase(),
r
)
: e.setAttribute(t, r));
}
else e.className = r || "";
}
function h(e, t, n) {
try {
e[t] = n;
} catch (e) {}
}
function v(e) {
return this._listeners[e.type]((T.event && T.event(e)) || e);
}
function m() {
for (var e; (e = H.pop()); )
T.afterMount && T.afterMount(e),
e.componentDidMount && e.componentDidMount();
}
function y(e, t, n, r, o, i) {
W++ ||
(($ = null != o && void 0 !== o.ownerSVGElement),
(D = null != e && !("__preactattr_" in e)));
var a = g(e, t, n, r, i);
return (
o && a.parentNode !== o && o.appendChild(a),
--W || ((D = !1), i || m()),
a
);
}
function g(e, t, n, r, o) {
var i = e,
a = $;
if (
((null != t && "boolean" != typeof t) || (t = ""),
"string" == typeof t || "number" == typeof t)
)
return (
e && void 0 !== e.splitText && e.parentNode && (!e._component || o)
? e.nodeValue != t && (e.nodeValue = t)
: ((i = document.createTextNode(t)),
e && (e.parentNode && e.parentNode.replaceChild(i, e), b(e, !0))),
(i.__preactattr_ = !0),
i
);
var s = t.nodeName;
if ("function" == typeof s) return L(e, t, n, r);
if (
(($ = "svg" === s || ("foreignObject" !== s && $)),
(s = String(s)),
(!e || !l(e, s)) && ((i = f(s, $)), e))
) {
for (; e.firstChild; ) i.appendChild(e.firstChild);
e.parentNode && e.parentNode.replaceChild(i, e), b(e, !0);
}
var u = i.firstChild,
c = i.__preactattr_,
p = t.children;
if (null == c) {
c = i.__preactattr_ = {};
for (var d = i.attributes, h = d.length; h--; )
c[d[h].name] = d[h].value;
}
return (
!D &&
p &&
1 === p.length &&
"string" == typeof p[0] &&
null != u &&
void 0 !== u.splitText &&
null == u.nextSibling
? u.nodeValue != p[0] && (u.nodeValue = p[0])
: ((p && p.length) || null != u) &&
_(i, p, n, r, D || null != c.dangerouslySetInnerHTML),
x(i, t.attributes, c),
($ = a),
i
);
}
function _(e, t, n, r, o) {
var i,
a,
s,
l,
c,
f = e.childNodes,
d = [],
h = {},
v = 0,
m = 0,
y = f.length,
_ = 0,
w = t ? t.length : 0;
if (0 !== y)
for (var x = 0; x < y; x++) {
var C = f[x],
E = C.__preactattr_,
k = w && E ? (C._component ? C._component.__key : E.key) : null;
null != k
? (v++, (h[k] = C))
: (E || (void 0 !== C.splitText ? !o || C.nodeValue.trim() : o)) &&
(d[_++] = C);
}
if (0 !== w)
for (var x = 0; x < w; x++) {
(l = t[x]), (c = null);
var k = l.key;
if (null != k)
v && void 0 !== h[k] && ((c = h[k]), (h[k] = void 0), v--);
else if (!c && m < _)
for (i = m; i < _; i++)
if (void 0 !== d[i] && u((a = d[i]), l, o)) {
(c = a), (d[i] = void 0), i === _ - 1 && _--, i === m && m++;
break;
}
(c = g(c, l, n, r)),
(s = f[x]),
c &&
c !== e &&
c !== s &&
(null == s
? e.appendChild(c)
: c === s.nextSibling ? p(s) : e.insertBefore(c, s));
}
if (v) for (var x in h) void 0 !== h[x] && b(h[x], !1);
for (; m <= _; ) void 0 !== (c = d[_--]) && b(c, !1);
}
function b(e, t) {
var n = e._component;
n
? P(n)
: (null != e.__preactattr_ &&
e.__preactattr_.ref &&
e.__preactattr_.ref(null),
(!1 !== t && null != e.__preactattr_) || p(e),
w(e));
}
function w(e) {
for (e = e.lastChild; e; ) {
var t = e.previousSibling;
b(e, !0), (e = t);
}
}
function x(e, t, n) {
var r;
for (r in n)
(t && null != t[r]) ||
null == n[r] ||
d(e, r, n[r], (n[r] = void 0), $);
for (r in t)
"children" === r ||
"innerHTML" === r ||
(r in n &&
t[r] === ("value" === r || "checked" === r ? e[r] : n[r])) ||
d(e, r, n[r], (n[r] = t[r]), $);
}
function C(e) {
var t = e.constructor.name;
(I[t] || (I[t] = [])).push(e);
}
function E(e, t, n) {
var r,
o = I[e.name];
if (
(e.prototype && e.prototype.render
? ((r = new e(t, n)), O.call(r, t, n))
: ((r = new O(t, n)), (r.constructor = e), (r.render = k)),
o)
)
for (var i = o.length; i--; )
if (o[i].constructor === e) {
(r.nextBase = o[i].nextBase), o.splice(i, 1);
break;
}
return r;
}
function k(e, t, n) {
return this.constructor(e, n);
}
function S(e, t, n, r, o) {
e._disable ||
((e._disable = !0),
(e.__ref = t.ref) && delete t.ref,
(e.__key = t.key) && delete t.key,
!e.base || o
? e.componentWillMount && e.componentWillMount()
: e.componentWillReceiveProps && e.componentWillReceiveProps(t, r),
r &&
r !== e.context &&
(e.prevContext || (e.prevContext = e.context), (e.context = r)),
e.prevProps || (e.prevProps = e.props),
(e.props = t),
(e._disable = !1),
0 !== n &&
(1 !== n && !1 === T.syncComponentUpdates && e.base
? a(e)
: j(e, 1, o)),
e.__ref && e.__ref(e));
}
function j(e, t, n, r) {
if (!e._disable) {
var o,
a,
s,
u = e.props,
l = e.state,
f = e.context,
p = e.prevProps || u,
d = e.prevState || l,
h = e.prevContext || f,
v = e.base,
g = e.nextBase,
_ = v || g,
w = e._component,
x = !1;
if (
(v &&
((e.props = p),
(e.state = d),
(e.context = h),
2 !== t &&
e.shouldComponentUpdate &&
!1 === e.shouldComponentUpdate(u, l, f)
? (x = !0)
: e.componentWillUpdate && e.componentWillUpdate(u, l, f),
(e.props = u),
(e.state = l),
(e.context = f)),
(e.prevProps = e.prevState = e.prevContext = e.nextBase = null),
(e._dirty = !1),
!x)
) {
(o = e.render(u, l, f)),
e.getChildContext && (f = i(i({}, f), e.getChildContext()));
var C,
k,
L = o && o.nodeName;
if ("function" == typeof L) {
var O = c(o);
(a = w),
a && a.constructor === L && O.key == a.__key
? S(a, O, 1, f, !1)
: ((C = a),
(e._component = a = E(L, O, f)),
(a.nextBase = a.nextBase || g),
(a._parentComponent = e),
S(a, O, 0, f, !1),
j(a, 1, n, !0)),
(k = a.base);
} else
(s = _),
(C = w),
C && (s = e._component = null),
(_ || 1 === t) &&
(s && (s._component = null),
(k = y(s, o, f, n || !v, _ && _.parentNode, !0)));
if (_ && k !== _ && a !== w) {
var A = _.parentNode;
A &&
k !== A &&
(A.replaceChild(k, _), C || ((_._component = null), b(_, !1)));
}
if ((C && P(C), (e.base = k), k && !r)) {
for (var U = e, M = e; (M = M._parentComponent); ) (U = M).base = k;
(k._component = U), (k._componentConstructor = U.constructor);
}
}
if (
(!v || n
? H.unshift(e)
: x ||
(e.componentDidUpdate && e.componentDidUpdate(p, d, h),
T.afterUpdate && T.afterUpdate(e)),
null != e._renderCallbacks)
)
for (; e._renderCallbacks.length; ) e._renderCallbacks.pop().call(e);
W || r || m();
}
}
function L(e, t, n, r) {
for (
var o = e && e._component,
i = o,
a = e,
s = o && e._componentConstructor === t.nodeName,
u = s,
l = c(t);
o && !u && (o = o._parentComponent);
)
u = o.constructor === t.nodeName;
return (
o && u && (!r || o._component)
? (S(o, l, 3, n, r), (e = o.base))
: (i && !s && (P(i), (e = a = null)),
(o = E(t.nodeName, l, n)),
e && !o.nextBase && ((o.nextBase = e), (a = null)),
S(o, l, 1, n, r),
(e = o.base),
a && e !== a && ((a._component = null), b(a, !1))),
e
);
}
function P(e) {
T.beforeUnmount && T.beforeUnmount(e);
var t = e.base;
(e._disable = !0),
e.componentWillUnmount && e.componentWillUnmount(),
(e.base = null);
var n = e._component;
n
? P(n)
: t &&
(t.__preactattr_ && t.__preactattr_.ref && t.__preactattr_.ref(null),
(e.nextBase = t),
p(t),
C(e),
w(t)),
e.__ref && e.__ref(null);
}
function O(e, t) {
(this._dirty = !0),
(this.context = t),
(this.props = e),
(this.state = this.state || {});
}
function A(e, t, n) {
return y(n, e, {}, !1, t, !1);
}
n.d(t, "b", function() {
return o;
}),
n.d(t, "a", function() {
return O;
}),
n.d(t, "c", function() {
return A;
});
var T = {},
U = [],
M = [],
N =
"function" == typeof Promise
? Promise.resolve().then.bind(Promise.resolve())
: setTimeout,
B = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,
R = [],
H = [],
W = 0,
$ = !1,
D = !1,
I = {};
i(O.prototype, {
setState: function(e, t) {
var n = this.state;
this.prevState || (this.prevState = i({}, n)),
i(n, "function" == typeof e ? e(n, this.props) : e),
t && (this._renderCallbacks = this._renderCallbacks || []).push(t),
a(this);
},
forceUpdate: function(e) {
e && (this._renderCallbacks = this._renderCallbacks || []).push(e),
j(this, 2);
},
render: function() {}
});
},
"./node_modules/resolve-pathname/index.js": function(e, t, n) {
"use strict";
function r(e) {
return "/" === e.charAt(0);
}
function o(e, t) {
for (var n = t, r = n + 1, o = e.length; r < o; n += 1, r += 1)
e[n] = e[r];
e.pop();
}
function i(e) {
var t =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "",
n = (e && e.split("/")) || [],
i = (t && t.split("/")) || [],
a = e && r(e),
s = t && r(t),
u = a || s;
if (
(e && r(e) ? (i = n) : n.length && (i.pop(), (i = i.concat(n))),
!i.length)
)
return "/";
var l = void 0;
if (i.length) {
var c = i[i.length - 1];
l = "." === c || ".." === c || "" === c;
} else l = !1;
for (var f = 0, p = i.length; p >= 0; p--) {
var d = i[p];
"." === d ? o(i, p) : ".." === d ? (o(i, p), f++) : f && (o(i, p), f--);
}
if (!u) for (; f--; f) i.unshift("..");
!u || "" === i[0] || (i[0] && r(i[0])) || i.unshift("");
var h = i.join("/");
return l && "/" !== h.substr(-1) && (h += "/"), h;
}
Object.defineProperty(t, "__esModule", { value: !0 }), (t.default = i);
},
"./node_modules/value-equal/index.js": function(e, t, n) {
"use strict";
function r(e, t) {
if (e === t) return !0;
if (null == e || null == t) return !1;
if (Array.isArray(e))
return (
Array.isArray(t) &&
e.length === t.length &&
e.every(function(e, n) {
return r(e, t[n]);
})
);
var n = void 0 === e ? "undefined" : o(e);
if (n !== (void 0 === t ? "undefined" : o(t))) return !1;
if ("object" === n) {
var i = e.valueOf(),
a = t.valueOf();
if (i !== e || a !== t) return r(i, a);
var s = Object.keys(e),
u = Object.keys(t);
return (
s.length === u.length &&
s.every(function(n) {
return r(e[n], t[n]);
})
);
}
return !1;
}
Object.defineProperty(t, "__esModule", { value: !0 });
var o =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function(e) {
return typeof e;
}
: function(e) {
return e &&
"function" == typeof Symbol &&
e.constructor === Symbol &&
e !== Symbol.prototype
? "symbol"
: typeof e;
};
t.default = r;
},
"./node_modules/warning/browser.js": function(e, t, n) {
"use strict";
var r = function() {};
e.exports = r;
}
});
//# sourceMappingURL=vendor.be0eb951a32cd662052a.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment