file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
crates/swc_ecma_minifier/tests/fixture/next/feedback-3/579-dcac359116b2707c/input.js
JavaScript
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([[579], { /***/ 7029: /***/ (function (module, __unused_webpack_exports, __webpack_require__) { !function (t, e) { if (true) module.exports = e(); else { var o, r; } }(__webpack_require__.g, (function () { return (() => { var t = { 873: t => { t.exports = function (t) { if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t }, t.exports.default = t.exports, t.exports.__esModule = !0 }, 575: t => { t.exports = function (t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") }, t.exports.default = t.exports, t.exports.__esModule = !0 }, 754: t => { function e(r) { return t.exports = e = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { return t.__proto__ || Object.getPrototypeOf(t) }, t.exports.default = t.exports, t.exports.__esModule = !0, e(r) } t.exports = e, t.exports.default = t.exports, t.exports.__esModule = !0 }, 205: (t, e, r) => { var o = r(489); t.exports = 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 && o(t, e) }, t.exports.default = t.exports, t.exports.__esModule = !0 }, 585: (t, e, r) => { var o = r(8).default, n = r(873); t.exports = function (t, e) { return !e || "object" !== o(e) && "function" != typeof e ? n(t) : e }, t.exports.default = t.exports, t.exports.__esModule = !0 }, 489: t => { function e(r, o) { return t.exports = e = Object.setPrototypeOf || function (t, e) { return t.__proto__ = e, t }, t.exports.default = t.exports, t.exports.__esModule = !0, e(r, o) } t.exports = e, t.exports.default = t.exports, t.exports.__esModule = !0 }, 8: t => { function e(r) { return "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? (t.exports = e = function (t) { return typeof t }, t.exports.default = t.exports, t.exports.__esModule = !0) : (t.exports = e = function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, t.exports.default = t.exports, t.exports.__esModule = !0), e(r) } t.exports = e, t.exports.default = t.exports, t.exports.__esModule = !0 }, 924: (t, e, r) => { "use strict"; var o = r(210), n = r(559), i = n(o("String.prototype.indexOf")); t.exports = function (t, e) { var r = o(t, !!e); return "function" == typeof r && i(t, ".prototype.") > -1 ? n(r) : r } }, 559: (t, e, r) => { "use strict"; var o = r(612), n = r(210), i = n("%Function.prototype.apply%"), a = n("%Function.prototype.call%"), p = n("%Reflect.apply%", !0) || o.call(a, i), c = n("%Object.getOwnPropertyDescriptor%", !0), u = n("%Object.defineProperty%", !0), f = n("%Math.max%"); if (u) try { u({}, "a", { value: 1 }) } catch (t) { u = null } t.exports = function (t) { var e = p(o, a, arguments); if (c && u) { var r = c(e, "length"); r.configurable && u(e, "length", { value: 1 + f(0, t.length - (arguments.length - 1)) }) } return e }; var l = function () { return p(o, i, arguments) }; u ? u(t.exports, "apply", { value: l }) : t.exports.apply = l }, 729: t => { "use strict"; var e = Object.prototype.hasOwnProperty, r = "~"; function o() { } function n(t, e, r) { this.fn = t, this.context = e, this.once = r || !1 } function i(t, e, o, i, a) { if ("function" != typeof o) throw new TypeError("The listener must be a function"); var p = new n(o, i || t, a), c = r ? r + e : e; return t._events[c] ? t._events[c].fn ? t._events[c] = [t._events[c], p] : t._events[c].push(p) : (t._events[c] = p, t._eventsCount++), t } function a(t, e) { 0 == --t._eventsCount ? t._events = new o : delete t._events[e] } function p() { this._events = new o, this._eventsCount = 0 } Object.create && (o.prototype = Object.create(null), (new o).__proto__ || (r = !1)), p.prototype.eventNames = function () { var t, o, n = []; if (0 === this._eventsCount) return n; for (o in t = this._events) e.call(t, o) && n.push(r ? o.slice(1) : o); return Object.getOwnPropertySymbols ? n.concat(Object.getOwnPropertySymbols(t)) : n }, p.prototype.listeners = function (t) { var e = r ? r + t : t, o = this._events[e]; if (!o) return []; if (o.fn) return [o.fn]; for (var n = 0, i = o.length, a = new Array(i); n < i; n++)a[n] = o[n].fn; return a }, p.prototype.listenerCount = function (t) { var e = r ? r + t : t, o = this._events[e]; return o ? o.fn ? 1 : o.length : 0 }, p.prototype.emit = function (t, e, o, n, i, a) { var p = r ? r + t : t; if (!this._events[p]) return !1; var c, u, f = this._events[p], l = arguments.length; if (f.fn) { switch (f.once && this.removeListener(t, f.fn, void 0, !0), l) { case 1: return f.fn.call(f.context), !0; case 2: return f.fn.call(f.context, e), !0; case 3: return f.fn.call(f.context, e, o), !0; case 4: return f.fn.call(f.context, e, o, n), !0; case 5: return f.fn.call(f.context, e, o, n, i), !0; case 6: return f.fn.call(f.context, e, o, n, i, a), !0 }for (u = 1, c = new Array(l - 1); u < l; u++)c[u - 1] = arguments[u]; f.fn.apply(f.context, c) } else { var s, y = f.length; for (u = 0; u < y; u++)switch (f[u].once && this.removeListener(t, f[u].fn, void 0, !0), l) { case 1: f[u].fn.call(f[u].context); break; case 2: f[u].fn.call(f[u].context, e); break; case 3: f[u].fn.call(f[u].context, e, o); break; case 4: f[u].fn.call(f[u].context, e, o, n); break; default: if (!c) for (s = 1, c = new Array(l - 1); s < l; s++)c[s - 1] = arguments[s]; f[u].fn.apply(f[u].context, c) } } return !0 }, p.prototype.on = function (t, e, r) { return i(this, t, e, r, !1) }, p.prototype.once = function (t, e, r) { return i(this, t, e, r, !0) }, p.prototype.removeListener = function (t, e, o, n) { var i = r ? r + t : t; if (!this._events[i]) return this; if (!e) return a(this, i), this; var p = this._events[i]; if (p.fn) p.fn !== e || n && !p.once || o && p.context !== o || a(this, i); else { for (var c = 0, u = [], f = p.length; c < f; c++)(p[c].fn !== e || n && !p[c].once || o && p[c].context !== o) && u.push(p[c]); u.length ? this._events[i] = 1 === u.length ? u[0] : u : a(this, i) } return this }, p.prototype.removeAllListeners = function (t) { var e; return t ? (e = r ? r + t : t, this._events[e] && a(this, e)) : (this._events = new o, this._eventsCount = 0), this }, p.prototype.off = p.prototype.removeListener, p.prototype.addListener = p.prototype.on, p.prefixed = r, p.EventEmitter = p, t.exports = p }, 648: t => { "use strict"; var e = "Function.prototype.bind called on incompatible ", r = Array.prototype.slice, o = Object.prototype.toString, n = "[object Function]"; t.exports = function (t) { var i = this; if ("function" != typeof i || o.call(i) !== n) throw new TypeError(e + i); for (var a, p = r.call(arguments, 1), c = function () { if (this instanceof a) { var e = i.apply(this, p.concat(r.call(arguments))); return Object(e) === e ? e : this } return i.apply(t, p.concat(r.call(arguments))) }, u = Math.max(0, i.length - p.length), f = [], l = 0; l < u; l++)f.push("$" + l); if (a = Function("binder", "return function (" + f.join(",") + "){ return binder.apply(this,arguments); }")(c), i.prototype) { var s = function () { }; s.prototype = i.prototype, a.prototype = new s, s.prototype = null } return a } }, 612: (t, e, r) => { "use strict"; var o = r(648); t.exports = Function.prototype.bind || o }, 210: (t, e, r) => { "use strict"; var o, n = SyntaxError, i = Function, a = TypeError, p = function (t) { try { return i('"use strict"; return (' + t + ").constructor;")() } catch (t) { } }, c = Object.getOwnPropertyDescriptor; if (c) try { c({}, "") } catch (t) { c = null } var u = function () { throw new a }, f = c ? function () { try { return u } catch (t) { try { return c(arguments, "callee").get } catch (t) { return u } } }() : u, l = r(405)(), s = Object.getPrototypeOf || function (t) { return t.__proto__ }, y = {}, d = "undefined" == typeof Uint8Array ? o : s(Uint8Array), b = { "%AggregateError%": "undefined" == typeof AggregateError ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? o : ArrayBuffer, "%ArrayIteratorPrototype%": l ? s([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": "undefined" == typeof Atomics ? o : Atomics, "%BigInt%": "undefined" == typeof BigInt ? o : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? o : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? o : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": y, "%Int8Array%": "undefined" == typeof Int8Array ? o : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? o : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": l ? s(s([][Symbol.iterator]())) : o, "%JSON%": "object" == typeof JSON ? JSON : o, "%Map%": "undefined" == typeof Map ? o : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && l ? s((new Map)[Symbol.iterator]()) : o, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? o : Promise, "%Proxy%": "undefined" == typeof Proxy ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? o : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? o : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && l ? s((new Set)[Symbol.iterator]()) : o, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": l ? s(""[Symbol.iterator]()) : o, "%Symbol%": l ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": f, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": "undefined" == typeof Uint8Array ? o : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? o : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? o : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? o : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? o : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? o : WeakSet }, h = function t(e) { var r; if ("%AsyncFunction%" === e) r = p("async function () {}"); else if ("%GeneratorFunction%" === e) r = p("function* () {}"); else if ("%AsyncGeneratorFunction%" === e) r = p("async function* () {}"); else if ("%AsyncGenerator%" === e) { var o = t("%AsyncGeneratorFunction%"); o && (r = o.prototype) } else if ("%AsyncIteratorPrototype%" === e) { var n = t("%AsyncGenerator%"); n && (r = s(n.prototype)) } return b[e] = r, r }, g = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, m = r(612), v = r(642), S = m.call(Function.call, Array.prototype.concat), x = m.call(Function.apply, Array.prototype.splice), j = m.call(Function.call, String.prototype.replace), O = m.call(Function.call, String.prototype.slice), w = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, A = /\\(\\)?/g, P = function (t) { var e = O(t, 0, 1), r = O(t, -1); if ("%" === e && "%" !== r) throw new n("invalid intrinsic syntax, expected closing `%`"); if ("%" === r && "%" !== e) throw new n("invalid intrinsic syntax, expected opening `%`"); var o = []; return j(t, w, (function (t, e, r, n) { o[o.length] = r ? j(n, A, "$1") : e || t })), o }, _ = function (t, e) { var r, o = t; if (v(g, o) && (o = "%" + (r = g[o])[0] + "%"), v(b, o)) { var i = b[o]; if (i === y && (i = h(o)), void 0 === i && !e) throw new a("intrinsic " + t + " exists, but is not available. Please file an issue!"); return { alias: r, name: o, value: i } } throw new n("intrinsic " + t + " does not exist!") }; t.exports = function (t, e) { if ("string" != typeof t || 0 === t.length) throw new a("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" != typeof e) throw new a('"allowMissing" argument must be a boolean'); var r = P(t), o = r.length > 0 ? r[0] : "", i = _("%" + o + "%", e), p = i.name, u = i.value, f = !1, l = i.alias; l && (o = l[0], x(r, S([0, 1], l))); for (var s = 1, y = !0; s < r.length; s += 1) { var d = r[s], h = O(d, 0, 1), g = O(d, -1); if (('"' === h || "'" === h || "`" === h || '"' === g || "'" === g || "`" === g) && h !== g) throw new n("property names with quotes must have matching quotes"); if ("constructor" !== d && y || (f = !0), v(b, p = "%" + (o += "." + d) + "%")) u = b[p]; else if (null != u) { if (!(d in u)) { if (!e) throw new a("base intrinsic for " + t + " exists, but the property is not available."); return } if (c && s + 1 >= r.length) { var m = c(u, d); u = (y = !!m) && "get" in m && !("originalValue" in m.get) ? m.get : u[d] } else y = v(u, d), u = u[d]; y && !f && (b[p] = u) } } return u } }, 405: (t, e, r) => { "use strict"; var o = "undefined" != typeof Symbol && Symbol, n = r(419); t.exports = function () { return "function" == typeof o && "function" == typeof Symbol && "symbol" == typeof o("foo") && "symbol" == typeof Symbol("bar") && n() } }, 419: t => { "use strict"; t.exports = function () { if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) return !1; if ("symbol" == typeof Symbol.iterator) return !0; var t = {}, e = Symbol("test"), r = Object(e); if ("string" == typeof e) return !1; if ("[object Symbol]" !== Object.prototype.toString.call(e)) return !1; if ("[object Symbol]" !== Object.prototype.toString.call(r)) return !1; for (e in t[e] = 42, t) return !1; if ("function" == typeof Object.keys && 0 !== Object.keys(t).length) return !1; if ("function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(t).length) return !1; var o = Object.getOwnPropertySymbols(t); if (1 !== o.length || o[0] !== e) return !1; if (!Object.prototype.propertyIsEnumerable.call(t, e)) return !1; if ("function" == typeof Object.getOwnPropertyDescriptor) { var n = Object.getOwnPropertyDescriptor(t, e); if (42 !== n.value || !0 !== n.enumerable) return !1 } return !0 } }, 642: (t, e, r) => { "use strict"; var o = r(612); t.exports = o.call(Function.call, Object.prototype.hasOwnProperty) }, 631: (t, e, r) => { var o = "function" == typeof Map && Map.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, i = o && n && "function" == typeof n.get ? n.get : null, a = o && Map.prototype.forEach, p = "function" == typeof Set && Set.prototype, c = Object.getOwnPropertyDescriptor && p ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = p && c && "function" == typeof c.get ? c.get : null, f = p && Set.prototype.forEach, l = "function" == typeof WeakMap && WeakMap.prototype ? WeakMap.prototype.has : null, s = "function" == typeof WeakSet && WeakSet.prototype ? WeakSet.prototype.has : null, y = "function" == typeof WeakRef && WeakRef.prototype ? WeakRef.prototype.deref : null, d = Boolean.prototype.valueOf, b = Object.prototype.toString, h = Function.prototype.toString, g = String.prototype.match, m = "function" == typeof BigInt ? BigInt.prototype.valueOf : null, v = Object.getOwnPropertySymbols, S = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? Symbol.prototype.toString : null, x = "function" == typeof Symbol && "object" == typeof Symbol.iterator, j = Object.prototype.propertyIsEnumerable, O = ("function" == typeof Reflect ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function (t) { return t.__proto__ } : null), w = r(794).custom, A = w && R(w) ? w : null, P = "function" == typeof Symbol && void 0 !== Symbol.toStringTag ? Symbol.toStringTag : null; function _(t, e, r) { var o = "double" === (r.quoteStyle || e) ? '"' : "'"; return o + t + o } function E(t) { return String(t).replace(/"/g, "&quot;") } function k(t) { return !("[object Array]" !== I(t) || P && "object" == typeof t && P in t) } function R(t) { if (x) return t && "object" == typeof t && t instanceof Symbol; if ("symbol" == typeof t) return !0; if (!t || "object" != typeof t || !S) return !1; try { return S.call(t), !0 } catch (t) { } return !1 } t.exports = function t(e, r, o, n) { var p = r || {}; if (M(p, "quoteStyle") && "single" !== p.quoteStyle && "double" !== p.quoteStyle) throw new TypeError('option "quoteStyle" must be "single" or "double"'); if (M(p, "maxStringLength") && ("number" == typeof p.maxStringLength ? p.maxStringLength < 0 && p.maxStringLength !== 1 / 0 : null !== p.maxStringLength)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); var c = !M(p, "customInspect") || p.customInspect; if ("boolean" != typeof c && "symbol" !== c) throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); if (M(p, "indent") && null !== p.indent && "\t" !== p.indent && !(parseInt(p.indent, 10) === p.indent && p.indent > 0)) throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`'); if (void 0 === e) return "undefined"; if (null === e) return "null"; if ("boolean" == typeof e) return e ? "true" : "false"; if ("string" == typeof e) return D(e, p); if ("number" == typeof e) return 0 === e ? 1 / 0 / e > 0 ? "0" : "-0" : String(e); if ("bigint" == typeof e) return String(e) + "n"; var b = void 0 === p.depth ? 5 : p.depth; if (void 0 === o && (o = 0), o >= b && b > 0 && "object" == typeof e) return k(e) ? "[Array]" : "[Object]"; var v, j = function (t, e) { var r; if ("\t" === t.indent) r = "\t"; else { if (!("number" == typeof t.indent && t.indent > 0)) return null; r = Array(t.indent + 1).join(" ") } return { base: r, prev: Array(e + 1).join(r) } }(p, o); if (void 0 === n) n = []; else if (N(n, e) >= 0) return "[Circular]"; function w(e, r, i) { if (r && (n = n.slice()).push(r), i) { var a = { depth: p.depth }; return M(p, "quoteStyle") && (a.quoteStyle = p.quoteStyle), t(e, a, o + 1, n) } return t(e, p, o + 1, n) } if ("function" == typeof e) { var F = function (t) { if (t.name) return t.name; var e = g.call(h.call(t), /^function\s*([\w$]+)/); return e ? e[1] : null }(e), U = B(e, w); return "[Function" + (F ? ": " + F : " (anonymous)") + "]" + (U.length > 0 ? " { " + U.join(", ") + " }" : "") } if (R(e)) { var G = x ? String(e).replace(/^(Symbol\(.*\))_[^)]*$/, "$1") : S.call(e); return "object" != typeof e || x ? G : C(G) } if ((v = e) && "object" == typeof v && ("undefined" != typeof HTMLElement && v instanceof HTMLElement || "string" == typeof v.nodeName && "function" == typeof v.getAttribute)) { for (var H = "<" + String(e.nodeName).toLowerCase(), q = e.attributes || [], V = 0; V < q.length; V++)H += " " + q[V].name + "=" + _(E(q[V].value), "double", p); return H += ">", e.childNodes && e.childNodes.length && (H += "..."), H + "</" + String(e.nodeName).toLowerCase() + ">" } if (k(e)) { if (0 === e.length) return "[]"; var z = B(e, w); return j && !function (t) { for (var e = 0; e < t.length; e++)if (N(t[e], "\n") >= 0) return !1; return !0 }(z) ? "[" + W(z, j) + "]" : "[ " + z.join(", ") + " ]" } if (function (t) { return !("[object Error]" !== I(t) || P && "object" == typeof t && P in t) }(e)) { var $ = B(e, w); return 0 === $.length ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.join(", ") + " }" } if ("object" == typeof e && c) { if (A && "function" == typeof e[A]) return e[A](); if ("symbol" !== c && "function" == typeof e.inspect) return e.inspect() } if (function (t) { if (!i || !t || "object" != typeof t) return !1; try { i.call(t); try { u.call(t) } catch (t) { return !0 } return t instanceof Map } catch (t) { } return !1 }(e)) { var Q = []; return a.call(e, (function (t, r) { Q.push(w(r, e, !0) + " => " + w(t, e)) })), L("Map", i.call(e), Q, j) } if (function (t) { if (!u || !t || "object" != typeof t) return !1; try { u.call(t); try { i.call(t) } catch (t) { return !0 } return t instanceof Set } catch (t) { } return !1 }(e)) { var J = []; return f.call(e, (function (t) { J.push(w(t, e)) })), L("Set", u.call(e), J, j) } if (function (t) { if (!l || !t || "object" != typeof t) return !1; try { l.call(t, l); try { s.call(t, s) } catch (t) { return !0 } return t instanceof WeakMap } catch (t) { } return !1 }(e)) return T("WeakMap"); if (function (t) { if (!s || !t || "object" != typeof t) return !1; try { s.call(t, s); try { l.call(t, l) } catch (t) { return !0 } return t instanceof WeakSet } catch (t) { } return !1 }(e)) return T("WeakSet"); if (function (t) { if (!y || !t || "object" != typeof t) return !1; try { return y.call(t), !0 } catch (t) { } return !1 }(e)) return T("WeakRef"); if (function (t) { return !("[object Number]" !== I(t) || P && "object" == typeof t && P in t) }(e)) return C(w(Number(e))); if (function (t) { if (!t || "object" != typeof t || !m) return !1; try { return m.call(t), !0 } catch (t) { } return !1 }(e)) return C(w(m.call(e))); if (function (t) { return !("[object Boolean]" !== I(t) || P && "object" == typeof t && P in t) }(e)) return C(d.call(e)); if (function (t) { return !("[object String]" !== I(t) || P && "object" == typeof t && P in t) }(e)) return C(w(String(e))); if (!function (t) { return !("[object Date]" !== I(t) || P && "object" == typeof t && P in t) }(e) && !function (t) { return !("[object RegExp]" !== I(t) || P && "object" == typeof t && P in t) }(e)) { var K = B(e, w), X = O ? O(e) === Object.prototype : e instanceof Object || e.constructor === Object, Y = e instanceof Object ? "" : "null prototype", Z = !X && P && Object(e) === e && P in e ? I(e).slice(8, -1) : Y ? "Object" : "", tt = (X || "function" != typeof e.constructor ? "" : e.constructor.name ? e.constructor.name + " " : "") + (Z || Y ? "[" + [].concat(Z || [], Y || []).join(": ") + "] " : ""); return 0 === K.length ? tt + "{}" : j ? tt + "{" + W(K, j) + "}" : tt + "{ " + K.join(", ") + " }" } return String(e) }; var F = Object.prototype.hasOwnProperty || function (t) { return t in this }; function M(t, e) { return F.call(t, e) } function I(t) { return b.call(t) } function N(t, e) { if (t.indexOf) return t.indexOf(e); for (var r = 0, o = t.length; r < o; r++)if (t[r] === e) return r; return -1 } function D(t, e) { if (t.length > e.maxStringLength) { var r = t.length - e.maxStringLength, o = "... " + r + " more character" + (r > 1 ? "s" : ""); return D(t.slice(0, e.maxStringLength), e) + o } return _(t.replace(/(['\\])/g, "\\$1").replace(/[\x00-\x1f]/g, U), "single", e) } function U(t) { var e = t.charCodeAt(0), r = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[e]; return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + e.toString(16).toUpperCase() } function C(t) { return "Object(" + t + ")" } function T(t) { return t + " { ? }" } function L(t, e, r, o) { return t + " (" + e + ") {" + (o ? W(r, o) : r.join(", ")) + "}" } function W(t, e) { if (0 === t.length) return ""; var r = "\n" + e.prev + e.base; return r + t.join("," + r) + "\n" + e.prev } function B(t, e) { var r = k(t), o = []; if (r) { o.length = t.length; for (var n = 0; n < t.length; n++)o[n] = M(t, n) ? e(t[n], t) : "" } var i, a = "function" == typeof v ? v(t) : []; if (x) { i = {}; for (var p = 0; p < a.length; p++)i["$" + a[p]] = a[p] } for (var c in t) M(t, c) && (r && String(Number(c)) === c && c < t.length || x && i["$" + c] instanceof Symbol || (/[^\w$]/.test(c) ? o.push(e(c, t) + ": " + e(t[c], t)) : o.push(c + ": " + e(t[c], t)))); if ("function" == typeof v) for (var u = 0; u < a.length; u++)j.call(t, a[u]) && o.push("[" + e(a[u]) + "]: " + e(t[a[u]], t)); return o } }, 794: (t, e, r) => { t.exports = r(669).inspect }, 798: t => { "use strict"; var e = String.prototype.replace, r = /%20/g, o = "RFC3986"; t.exports = { default: o, formatters: { RFC1738: function (t) { return e.call(t, r, "+") }, RFC3986: function (t) { return String(t) } }, RFC1738: "RFC1738", RFC3986: o } }, 129: (t, e, r) => { "use strict"; var o = r(261), n = r(235), i = r(798); t.exports = { formats: i, parse: n, stringify: o } }, 235: (t, e, r) => { "use strict"; var o = r(769), n = Object.prototype.hasOwnProperty, i = Array.isArray, a = { allowDots: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decoder: o.decode, delimiter: "&", depth: 5, ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictNullHandling: !1 }, p = function (t) { return t.replace(/&#(\d+);/g, (function (t, e) { return String.fromCharCode(parseInt(e, 10)) })) }, c = function (t, e) { return t && "string" == typeof t && e.comma && t.indexOf(",") > -1 ? t.split(",") : t }, u = function (t, e, r, o) { if (t) { var i = r.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, a = /(\[[^[\]]*])/g, p = r.depth > 0 && /(\[[^[\]]*])/.exec(i), u = p ? i.slice(0, p.index) : i, f = []; if (u) { if (!r.plainObjects && n.call(Object.prototype, u) && !r.allowPrototypes) return; f.push(u) } for (var l = 0; r.depth > 0 && null !== (p = a.exec(i)) && l < r.depth;) { if (l += 1, !r.plainObjects && n.call(Object.prototype, p[1].slice(1, -1)) && !r.allowPrototypes) return; f.push(p[1]) } return p && f.push("[" + i.slice(p.index) + "]"), function (t, e, r, o) { for (var n = o ? e : c(e, r), i = t.length - 1; i >= 0; --i) { var a, p = t[i]; if ("[]" === p && r.parseArrays) a = [].concat(n); else { a = r.plainObjects ? Object.create(null) : {}; var u = "[" === p.charAt(0) && "]" === p.charAt(p.length - 1) ? p.slice(1, -1) : p, f = parseInt(u, 10); r.parseArrays || "" !== u ? !isNaN(f) && p !== u && String(f) === u && f >= 0 && r.parseArrays && f <= r.arrayLimit ? (a = [])[f] = n : a[u] = n : a = { 0: n } } n = a } return n }(f, e, r, o) } }; t.exports = function (t, e) { var r = function (t) { if (!t) return a; if (null !== t.decoder && void 0 !== t.decoder && "function" != typeof t.decoder) throw new TypeError("Decoder has to be a function."); if (void 0 !== t.charset && "utf-8" !== t.charset && "iso-8859-1" !== t.charset) throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var e = void 0 === t.charset ? a.charset : t.charset; return { allowDots: void 0 === t.allowDots ? a.allowDots : !!t.allowDots, allowPrototypes: "boolean" == typeof t.allowPrototypes ? t.allowPrototypes : a.allowPrototypes, allowSparse: "boolean" == typeof t.allowSparse ? t.allowSparse : a.allowSparse, arrayLimit: "number" == typeof t.arrayLimit ? t.arrayLimit : a.arrayLimit, charset: e, charsetSentinel: "boolean" == typeof t.charsetSentinel ? t.charsetSentinel : a.charsetSentinel, comma: "boolean" == typeof t.comma ? t.comma : a.comma, decoder: "function" == typeof t.decoder ? t.decoder : a.decoder, delimiter: "string" == typeof t.delimiter || o.isRegExp(t.delimiter) ? t.delimiter : a.delimiter, depth: "number" == typeof t.depth || !1 === t.depth ? +t.depth : a.depth, ignoreQueryPrefix: !0 === t.ignoreQueryPrefix, interpretNumericEntities: "boolean" == typeof t.interpretNumericEntities ? t.interpretNumericEntities : a.interpretNumericEntities, parameterLimit: "number" == typeof t.parameterLimit ? t.parameterLimit : a.parameterLimit, parseArrays: !1 !== t.parseArrays, plainObjects: "boolean" == typeof t.plainObjects ? t.plainObjects : a.plainObjects, strictNullHandling: "boolean" == typeof t.strictNullHandling ? t.strictNullHandling : a.strictNullHandling } }(e); if ("" === t || null == t) return r.plainObjects ? Object.create(null) : {}; for (var f = "string" == typeof t ? function (t, e) { var r, u = {}, f = e.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, l = e.parameterLimit === 1 / 0 ? void 0 : e.parameterLimit, s = f.split(e.delimiter, l), y = -1, d = e.charset; if (e.charsetSentinel) for (r = 0; r < s.length; ++r)0 === s[r].indexOf("utf8=") && ("utf8=%E2%9C%93" === s[r] ? d = "utf-8" : "utf8=%26%2310003%3B" === s[r] && (d = "iso-8859-1"), y = r, r = s.length); for (r = 0; r < s.length; ++r)if (r !== y) { var b, h, g = s[r], m = g.indexOf("]="), v = -1 === m ? g.indexOf("=") : m + 1; -1 === v ? (b = e.decoder(g, a.decoder, d, "key"), h = e.strictNullHandling ? null : "") : (b = e.decoder(g.slice(0, v), a.decoder, d, "key"), h = o.maybeMap(c(g.slice(v + 1), e), (function (t) { return e.decoder(t, a.decoder, d, "value") }))), h && e.interpretNumericEntities && "iso-8859-1" === d && (h = p(h)), g.indexOf("[]=") > -1 && (h = i(h) ? [h] : h), n.call(u, b) ? u[b] = o.combine(u[b], h) : u[b] = h } return u }(t, r) : t, l = r.plainObjects ? Object.create(null) : {}, s = Object.keys(f), y = 0; y < s.length; ++y) { var d = s[y], b = u(d, f[d], r, "string" == typeof t); l = o.merge(l, b, r) } return !0 === r.allowSparse ? l : o.compact(l) } }, 261: (t, e, r) => { "use strict"; var o = r(478), n = r(769), i = r(798), a = Object.prototype.hasOwnProperty, p = { brackets: function (t) { return t + "[]" }, comma: "comma", indices: function (t, e) { return t + "[" + e + "]" }, repeat: function (t) { return t } }, c = Array.isArray, u = Array.prototype.push, f = function (t, e) { u.apply(t, c(e) ? e : [e]) }, l = Date.prototype.toISOString, s = i.default, y = { addQueryPrefix: !1, allowDots: !1, charset: "utf-8", charsetSentinel: !1, delimiter: "&", encode: !0, encoder: n.encode, encodeValuesOnly: !1, format: s, formatter: i.formatters[s], indices: !1, serializeDate: function (t) { return l.call(t) }, skipNulls: !1, strictNullHandling: !1 }, d = function t(e, r, i, a, p, u, l, s, d, b, h, g, m, v, S) { var x, j = e; if (S.has(e)) throw new RangeError("Cyclic object value"); if ("function" == typeof l ? j = l(r, j) : j instanceof Date ? j = b(j) : "comma" === i && c(j) && (j = n.maybeMap(j, (function (t) { return t instanceof Date ? b(t) : t }))), null === j) { if (a) return u && !m ? u(r, y.encoder, v, "key", h) : r; j = "" } if ("string" == typeof (x = j) || "number" == typeof x || "boolean" == typeof x || "symbol" == typeof x || "bigint" == typeof x || n.isBuffer(j)) return u ? [g(m ? r : u(r, y.encoder, v, "key", h)) + "=" + g(u(j, y.encoder, v, "value", h))] : [g(r) + "=" + g(String(j))]; var O, w = []; if (void 0 === j) return w; if ("comma" === i && c(j)) O = [{ value: j.length > 0 ? j.join(",") || null : void 0 }]; else if (c(l)) O = l; else { var A = Object.keys(j); O = s ? A.sort(s) : A } for (var P = 0; P < O.length; ++P) { var _ = O[P], E = "object" == typeof _ && void 0 !== _.value ? _.value : j[_]; if (!p || null !== E) { var k = c(j) ? "function" == typeof i ? i(r, _) : r : r + (d ? "." + _ : "[" + _ + "]"); S.set(e, !0); var R = o(); f(w, t(E, k, i, a, p, u, l, s, d, b, h, g, m, v, R)) } } return w }; t.exports = function (t, e) { var r, n = t, u = function (t) { if (!t) return y; if (null !== t.encoder && void 0 !== t.encoder && "function" != typeof t.encoder) throw new TypeError("Encoder has to be a function."); var e = t.charset || y.charset; if (void 0 !== t.charset && "utf-8" !== t.charset && "iso-8859-1" !== t.charset) throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var r = i.default; if (void 0 !== t.format) { if (!a.call(i.formatters, t.format)) throw new TypeError("Unknown format option provided."); r = t.format } var o = i.formatters[r], n = y.filter; return ("function" == typeof t.filter || c(t.filter)) && (n = t.filter), { addQueryPrefix: "boolean" == typeof t.addQueryPrefix ? t.addQueryPrefix : y.addQueryPrefix, allowDots: void 0 === t.allowDots ? y.allowDots : !!t.allowDots, charset: e, charsetSentinel: "boolean" == typeof t.charsetSentinel ? t.charsetSentinel : y.charsetSentinel, delimiter: void 0 === t.delimiter ? y.delimiter : t.delimiter, encode: "boolean" == typeof t.encode ? t.encode : y.encode, encoder: "function" == typeof t.encoder ? t.encoder : y.encoder, encodeValuesOnly: "boolean" == typeof t.encodeValuesOnly ? t.encodeValuesOnly : y.encodeValuesOnly, filter: n, format: r, formatter: o, serializeDate: "function" == typeof t.serializeDate ? t.serializeDate : y.serializeDate, skipNulls: "boolean" == typeof t.skipNulls ? t.skipNulls : y.skipNulls, sort: "function" == typeof t.sort ? t.sort : null, strictNullHandling: "boolean" == typeof t.strictNullHandling ? t.strictNullHandling : y.strictNullHandling } }(e); "function" == typeof u.filter ? n = (0, u.filter)("", n) : c(u.filter) && (r = u.filter); var l, s = []; if ("object" != typeof n || null === n) return ""; l = e && e.arrayFormat in p ? e.arrayFormat : e && "indices" in e ? e.indices ? "indices" : "repeat" : "indices"; var b = p[l]; r || (r = Object.keys(n)), u.sort && r.sort(u.sort); for (var h = o(), g = 0; g < r.length; ++g) { var m = r[g]; u.skipNulls && null === n[m] || f(s, d(n[m], m, b, u.strictNullHandling, u.skipNulls, u.encode ? u.encoder : null, u.filter, u.sort, u.allowDots, u.serializeDate, u.format, u.formatter, u.encodeValuesOnly, u.charset, h)) } var v = s.join(u.delimiter), S = !0 === u.addQueryPrefix ? "?" : ""; return u.charsetSentinel && ("iso-8859-1" === u.charset ? S += "utf8=%26%2310003%3B&" : S += "utf8=%E2%9C%93&"), v.length > 0 ? S + v : "" } }, 769: (t, e, r) => { "use strict"; var o = r(798), n = Object.prototype.hasOwnProperty, i = Array.isArray, a = function () { for (var t = [], e = 0; e < 256; ++e)t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase()); return t }(), p = function (t, e) { for (var r = e && e.plainObjects ? Object.create(null) : {}, o = 0; o < t.length; ++o)void 0 !== t[o] && (r[o] = t[o]); return r }; t.exports = { arrayToObject: p, assign: function (t, e) { return Object.keys(e).reduce((function (t, r) { return t[r] = e[r], t }), t) }, combine: function (t, e) { return [].concat(t, e) }, compact: function (t) { for (var e = [{ obj: { o: t }, prop: "o" }], r = [], o = 0; o < e.length; ++o)for (var n = e[o], a = n.obj[n.prop], p = Object.keys(a), c = 0; c < p.length; ++c) { var u = p[c], f = a[u]; "object" == typeof f && null !== f && -1 === r.indexOf(f) && (e.push({ obj: a, prop: u }), r.push(f)) } return function (t) { for (; t.length > 1;) { var e = t.pop(), r = e.obj[e.prop]; if (i(r)) { for (var o = [], n = 0; n < r.length; ++n)void 0 !== r[n] && o.push(r[n]); e.obj[e.prop] = o } } }(e), t }, decode: function (t, e, r) { var o = t.replace(/\+/g, " "); if ("iso-8859-1" === r) return o.replace(/%[0-9a-f]{2}/gi, unescape); try { return decodeURIComponent(o) } catch (t) { return o } }, encode: function (t, e, r, n, i) { if (0 === t.length) return t; var p = t; if ("symbol" == typeof t ? p = Symbol.prototype.toString.call(t) : "string" != typeof t && (p = String(t)), "iso-8859-1" === r) return escape(p).replace(/%u[0-9a-f]{4}/gi, (function (t) { return "%26%23" + parseInt(t.slice(2), 16) + "%3B" })); for (var c = "", u = 0; u < p.length; ++u) { var f = p.charCodeAt(u); 45 === f || 46 === f || 95 === f || 126 === f || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || i === o.RFC1738 && (40 === f || 41 === f) ? c += p.charAt(u) : f < 128 ? c += a[f] : f < 2048 ? c += a[192 | f >> 6] + a[128 | 63 & f] : f < 55296 || f >= 57344 ? c += a[224 | f >> 12] + a[128 | f >> 6 & 63] + a[128 | 63 & f] : (u += 1, f = 65536 + ((1023 & f) << 10 | 1023 & p.charCodeAt(u)), c += a[240 | f >> 18] + a[128 | f >> 12 & 63] + a[128 | f >> 6 & 63] + a[128 | 63 & f]) } return c }, isBuffer: function (t) { return !(!t || "object" != typeof t || !(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t))) }, isRegExp: function (t) { return "[object RegExp]" === Object.prototype.toString.call(t) }, maybeMap: function (t, e) { if (i(t)) { for (var r = [], o = 0; o < t.length; o += 1)r.push(e(t[o])); return r } return e(t) }, merge: function t(e, r, o) { if (!r) return e; if ("object" != typeof r) { if (i(e)) e.push(r); else { if (!e || "object" != typeof e) return [e, r]; (o && (o.plainObjects || o.allowPrototypes) || !n.call(Object.prototype, r)) && (e[r] = !0) } return e } if (!e || "object" != typeof e) return [e].concat(r); var a = e; return i(e) && !i(r) && (a = p(e, o)), i(e) && i(r) ? (r.forEach((function (r, i) { if (n.call(e, i)) { var a = e[i]; a && "object" == typeof a && r && "object" == typeof r ? e[i] = t(a, r, o) : e.push(r) } else e[i] = r })), e) : Object.keys(r).reduce((function (e, i) { var a = r[i]; return n.call(e, i) ? e[i] = t(e[i], a, o) : e[i] = a, e }), a) } } }, 478: (t, e, r) => { "use strict"; var o = r(210), n = r(924), i = r(631), a = o("%TypeError%"), p = o("%WeakMap%", !0), c = o("%Map%", !0), u = n("WeakMap.prototype.get", !0), f = n("WeakMap.prototype.set", !0), l = n("WeakMap.prototype.has", !0), s = n("Map.prototype.get", !0), y = n("Map.prototype.set", !0), d = n("Map.prototype.has", !0), b = function (t, e) { for (var r, o = t; null !== (r = o.next); o = r)if (r.key === e) return o.next = r.next, r.next = t.next, t.next = r, r }; t.exports = function () { var t, e, r, o = { assert: function (t) { if (!o.has(t)) throw new a("Side channel does not contain " + i(t)) }, get: function (o) { if (p && o && ("object" == typeof o || "function" == typeof o)) { if (t) return u(t, o) } else if (c) { if (e) return s(e, o) } else if (r) return function (t, e) { var r = b(t, e); return r && r.value }(r, o) }, has: function (o) { if (p && o && ("object" == typeof o || "function" == typeof o)) { if (t) return l(t, o) } else if (c) { if (e) return d(e, o) } else if (r) return function (t, e) { return !!b(t, e) }(r, o); return !1 }, set: function (o, n) { p && o && ("object" == typeof o || "function" == typeof o) ? (t || (t = new p), f(t, o, n)) : c ? (e || (e = new c), y(e, o, n)) : (r || (r = { key: {}, next: null }), function (t, e, r) { var o = b(t, e); o ? o.value = r : t.next = { key: e, next: t.next, value: r } }(r, o, n)) } }; return o } }, 669: t => { "use strict"; t.exports = __webpack_require__(9720) } }, e = {}; function r(o) { var n = e[o]; if (void 0 !== n) return n.exports; var i = e[o] = { exports: {} }; return t[o](i, i.exports, r), i.exports } r.n = t => { var e = t && t.__esModule ? () => t.default : () => t; return r.d(e, { a: e }), e }, r.d = (t, e) => { for (var o in e) r.o(e, o) && !r.o(t, o) && Object.defineProperty(t, o, { enumerable: !0, get: e[o] }) }, r.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e), r.r = t => { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }; var o = {}; return (() => { "use strict"; r.r(o), r.d(o, { default: () => d }); var t = r(575), e = r.n(t), n = r(205), i = r.n(n), a = r(585), p = r.n(a), c = r(754), u = r.n(c), f = r(729), l = r.n(f), s = r(129), y = r.n(s); const d = new (function (t) { i()(a, t); var r, o, n = (r = a, o = function () { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; if (Reflect.construct.sham) return !1; if ("function" == typeof Proxy) return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function () { }))), !0 } catch (t) { return !1 } }(), function () { var t, e = u()(r); if (o) { var n = u()(this).constructor; t = Reflect.construct(e, arguments, n) } else t = e.apply(this, arguments); return p()(this, t) }); function a() { var t; return e()(this, a), (t = n.call(this)).ready = !1, console.log(y()), t } return a }(l())) })(), o })() })); /***/ }), /***/ 9720: /***/ (function (module, __unused_webpack_exports, __webpack_require__) { var __dirname = "/"; /* provided dependency */ var Buffer = __webpack_require__(1876)["Buffer"]; /* provided dependency */ var process = __webpack_require__(3454); (function () { var r = { 992: function (r) { r.exports = function (r, t, n) { if (r.filter) return r.filter(t, n); if (void 0 === r || null === r) throw new TypeError; if ("function" != typeof t) throw new TypeError; var o = []; for (var i = 0; i < r.length; i++) { if (!e.call(r, i)) continue; var a = r[i]; if (t.call(n, a, i, r)) o.push(a) } return o }; var e = Object.prototype.hasOwnProperty }, 256: function (r, e, t) { "use strict"; var n = t(500); var o = t(139); var i = o(n("String.prototype.indexOf")); r.exports = function callBoundIntrinsic(r, e) { var t = n(r, !!e); if (typeof t === "function" && i(r, ".prototype.") > -1) { return o(t) } return t } }, 139: function (r, e, t) { "use strict"; var n = t(174); var o = t(500); var i = o("%Function.prototype.apply%"); var a = o("%Function.prototype.call%"); var f = o("%Reflect.apply%", true) || n.call(a, i); var u = o("%Object.getOwnPropertyDescriptor%", true); var s = o("%Object.defineProperty%", true); var y = o("%Math.max%"); if (s) { try { s({}, "a", { value: 1 }) } catch (r) { s = null } } r.exports = function callBind(r) { var e = f(n, a, arguments); if (u && s) { var t = u(e, "length"); if (t.configurable) { s(e, "length", { value: 1 + y(0, r.length - (arguments.length - 1)) }) } } return e }; var c = function applyBind() { return f(n, i, arguments) }; if (s) { s(r.exports, "apply", { value: c }) } else { r.exports.apply = c } }, 144: function (r) { var e = Object.prototype.hasOwnProperty; var t = Object.prototype.toString; r.exports = function forEach(r, n, o) { if (t.call(n) !== "[object Function]") { throw new TypeError("iterator must be a function") } var i = r.length; if (i === +i) { for (var a = 0; a < i; a++) { n.call(o, r[a], a, r) } } else { for (var f in r) { if (e.call(r, f)) { n.call(o, r[f], f, r) } } } } }, 426: function (r) { "use strict"; var e = "Function.prototype.bind called on incompatible "; var t = Array.prototype.slice; var n = Object.prototype.toString; var o = "[object Function]"; r.exports = function bind(r) { var i = this; if (typeof i !== "function" || n.call(i) !== o) { throw new TypeError(e + i) } var a = t.call(arguments, 1); var f; var binder = function () { if (this instanceof f) { var e = i.apply(this, a.concat(t.call(arguments))); if (Object(e) === e) { return e } return this } else { return i.apply(r, a.concat(t.call(arguments))) } }; var u = Math.max(0, i.length - a.length); var s = []; for (var y = 0; y < u; y++) { s.push("$" + y) } f = Function("binder", "return function (" + s.join(",") + "){ return binder.apply(this,arguments); }")(binder); if (i.prototype) { var c = function Empty() { }; c.prototype = i.prototype; f.prototype = new c; c.prototype = null } return f } }, 174: function (r, e, t) { "use strict"; var n = t(426); r.exports = Function.prototype.bind || n }, 500: function (r, e, t) { "use strict"; var n; var o = SyntaxError; var i = Function; var a = TypeError; var getEvalledConstructor = function (r) { try { return i('"use strict"; return (' + r + ").constructor;")() } catch (r) { } }; var f = Object.getOwnPropertyDescriptor; if (f) { try { f({}, "") } catch (r) { f = null } } var throwTypeError = function () { throw new a }; var u = f ? function () { try { arguments.callee; return throwTypeError } catch (r) { try { return f(arguments, "callee").get } catch (r) { return throwTypeError } } }() : throwTypeError; var s = t(115)(); var y = Object.getPrototypeOf || function (r) { return r.__proto__ }; var c = {}; var p = typeof Uint8Array === "undefined" ? n : y(Uint8Array); var l = { "%AggregateError%": typeof AggregateError === "undefined" ? n : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? n : ArrayBuffer, "%ArrayIteratorPrototype%": s ? y([][Symbol.iterator]()) : n, "%AsyncFromSyncIteratorPrototype%": n, "%AsyncFunction%": c, "%AsyncGenerator%": c, "%AsyncGeneratorFunction%": c, "%AsyncIteratorPrototype%": c, "%Atomics%": typeof Atomics === "undefined" ? n : Atomics, "%BigInt%": typeof BigInt === "undefined" ? n : BigInt, "%Boolean%": Boolean, "%DataView%": typeof DataView === "undefined" ? n : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array === "undefined" ? n : Float32Array, "%Float64Array%": typeof Float64Array === "undefined" ? n : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? n : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": c, "%Int8Array%": typeof Int8Array === "undefined" ? n : Int8Array, "%Int16Array%": typeof Int16Array === "undefined" ? n : Int16Array, "%Int32Array%": typeof Int32Array === "undefined" ? n : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": s ? y(y([][Symbol.iterator]())) : n, "%JSON%": typeof JSON === "object" ? JSON : n, "%Map%": typeof Map === "undefined" ? n : Map, "%MapIteratorPrototype%": typeof Map === "undefined" || !s ? n : y((new Map)[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise === "undefined" ? n : Promise, "%Proxy%": typeof Proxy === "undefined" ? n : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect === "undefined" ? n : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set === "undefined" ? n : Set, "%SetIteratorPrototype%": typeof Set === "undefined" || !s ? n : y((new Set)[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? n : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": s ? y(""[Symbol.iterator]()) : n, "%Symbol%": s ? Symbol : n, "%SyntaxError%": o, "%ThrowTypeError%": u, "%TypedArray%": p, "%TypeError%": a, "%Uint8Array%": typeof Uint8Array === "undefined" ? n : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? n : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array === "undefined" ? n : Uint16Array, "%Uint32Array%": typeof Uint32Array === "undefined" ? n : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap === "undefined" ? n : WeakMap, "%WeakRef%": typeof WeakRef === "undefined" ? n : WeakRef, "%WeakSet%": typeof WeakSet === "undefined" ? n : WeakSet }; var g = function doEval(r) { var e; if (r === "%AsyncFunction%") { e = getEvalledConstructor("async function () {}") } else if (r === "%GeneratorFunction%") { e = getEvalledConstructor("function* () {}") } else if (r === "%AsyncGeneratorFunction%") { e = getEvalledConstructor("async function* () {}") } else if (r === "%AsyncGenerator%") { var t = doEval("%AsyncGeneratorFunction%"); if (t) { e = t.prototype } } else if (r === "%AsyncIteratorPrototype%") { var n = doEval("%AsyncGenerator%"); if (n) { e = y(n.prototype) } } l[r] = e; return e }; var b = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }; var d = t(174); var v = t(101); var m = d.call(Function.call, Array.prototype.concat); var S = d.call(Function.apply, Array.prototype.splice); var A = d.call(Function.call, String.prototype.replace); var h = d.call(Function.call, String.prototype.slice); var O = d.call(Function.call, RegExp.prototype.exec); var j = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var w = /\\(\\)?/g; var P = function stringToPath(r) { var e = h(r, 0, 1); var t = h(r, -1); if (e === "%" && t !== "%") { throw new o("invalid intrinsic syntax, expected closing `%`") } else if (t === "%" && e !== "%") { throw new o("invalid intrinsic syntax, expected opening `%`") } var n = []; A(r, j, (function (r, e, t, o) { n[n.length] = t ? A(o, w, "$1") : e || r })); return n }; var E = function getBaseIntrinsic(r, e) { var t = r; var n; if (v(b, t)) { n = b[t]; t = "%" + n[0] + "%" } if (v(l, t)) { var i = l[t]; if (i === c) { i = g(t) } if (typeof i === "undefined" && !e) { throw new a("intrinsic " + r + " exists, but is not available. Please file an issue!") } return { alias: n, name: t, value: i } } throw new o("intrinsic " + r + " does not exist!") }; r.exports = function GetIntrinsic(r, e) { if (typeof r !== "string" || r.length === 0) { throw new a("intrinsic name must be a non-empty string") } if (arguments.length > 1 && typeof e !== "boolean") { throw new a('"allowMissing" argument must be a boolean') } if (O(/^%?[^%]*%?$/g, r) === null) { throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name") } var t = P(r); var i = t.length > 0 ? t[0] : ""; var u = E("%" + i + "%", e); var s = u.name; var y = u.value; var c = false; var p = u.alias; if (p) { i = p[0]; S(t, m([0, 1], p)) } for (var g = 1, b = true; g < t.length; g += 1) { var d = t[g]; var A = h(d, 0, 1); var j = h(d, -1); if ((A === '"' || A === "'" || A === "`" || (j === '"' || j === "'" || j === "`")) && A !== j) { throw new o("property names with quotes must have matching quotes") } if (d === "constructor" || !b) { c = true } i += "." + d; s = "%" + i + "%"; if (v(l, s)) { y = l[s] } else if (y != null) { if (!(d in y)) { if (!e) { throw new a("base intrinsic for " + r + " exists, but the property is not available.") } return void n } if (f && g + 1 >= t.length) { var w = f(y, d); b = !!w; if (b && "get" in w && !("originalValue" in w.get)) { y = w.get } else { y = y[d] } } else { b = v(y, d); y = y[d] } if (b && !c) { l[s] = y } } } return y } }, 942: function (r, e, t) { "use strict"; var n = typeof Symbol !== "undefined" && Symbol; var o = t(773); r.exports = function hasNativeSymbols() { if (typeof n !== "function") { return false } if (typeof Symbol !== "function") { return false } if (typeof n("foo") !== "symbol") { return false } if (typeof Symbol("bar") !== "symbol") { return false } return o() } }, 773: function (r) { "use strict"; r.exports = function hasSymbols() { if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") { return false } if (typeof Symbol.iterator === "symbol") { return true } var r = {}; var e = Symbol("test"); var t = Object(e); if (typeof e === "string") { return false } if (Object.prototype.toString.call(e) !== "[object Symbol]") { return false } if (Object.prototype.toString.call(t) !== "[object Symbol]") { return false } var n = 42; r[e] = n; for (e in r) { return false } if (typeof Object.keys === "function" && Object.keys(r).length !== 0) { return false } if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(r).length !== 0) { return false } var o = Object.getOwnPropertySymbols(r); if (o.length !== 1 || o[0] !== e) { return false } if (!Object.prototype.propertyIsEnumerable.call(r, e)) { return false } if (typeof Object.getOwnPropertyDescriptor === "function") { var i = Object.getOwnPropertyDescriptor(r, e); if (i.value !== n || i.enumerable !== true) { return false } } return true } }, 115: function (r, e, t) { "use strict"; var n = typeof Symbol !== "undefined" && Symbol; var o = t(832); r.exports = function hasNativeSymbols() { if (typeof n !== "function") { return false } if (typeof Symbol !== "function") { return false } if (typeof n("foo") !== "symbol") { return false } if (typeof Symbol("bar") !== "symbol") { return false } return o() } }, 832: function (r) { "use strict"; r.exports = function hasSymbols() { if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") { return false } if (typeof Symbol.iterator === "symbol") { return true } var r = {}; var e = Symbol("test"); var t = Object(e); if (typeof e === "string") { return false } if (Object.prototype.toString.call(e) !== "[object Symbol]") { return false } if (Object.prototype.toString.call(t) !== "[object Symbol]") { return false } var n = 42; r[e] = n; for (e in r) { return false } if (typeof Object.keys === "function" && Object.keys(r).length !== 0) { return false } if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(r).length !== 0) { return false } var o = Object.getOwnPropertySymbols(r); if (o.length !== 1 || o[0] !== e) { return false } if (!Object.prototype.propertyIsEnumerable.call(r, e)) { return false } if (typeof Object.getOwnPropertyDescriptor === "function") { var i = Object.getOwnPropertyDescriptor(r, e); if (i.value !== n || i.enumerable !== true) { return false } } return true } }, 101: function (r, e, t) { "use strict"; var n = t(174); r.exports = n.call(Function.call, Object.prototype.hasOwnProperty) }, 782: function (r) { if (typeof Object.create === "function") { r.exports = function inherits(r, e) { if (e) { r.super_ = e; r.prototype = Object.create(e.prototype, { constructor: { value: r, enumerable: false, writable: true, configurable: true } }) } } } else { r.exports = function inherits(r, e) { if (e) { r.super_ = e; var TempCtor = function () { }; TempCtor.prototype = e.prototype; r.prototype = new TempCtor; r.prototype.constructor = r } } } }, 157: function (r) { "use strict"; var e = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol"; var t = Object.prototype.toString; var n = function isArguments(r) { if (e && r && typeof r === "object" && Symbol.toStringTag in r) { return false } return t.call(r) === "[object Arguments]" }; var o = function isArguments(r) { if (n(r)) { return true } return r !== null && typeof r === "object" && typeof r.length === "number" && r.length >= 0 && t.call(r) !== "[object Array]" && t.call(r.callee) === "[object Function]" }; var i = function () { return n(arguments) }(); n.isLegacyArguments = o; r.exports = i ? n : o }, 391: function (r) { "use strict"; var e = Object.prototype.toString; var t = Function.prototype.toString; var n = /^\s*(?:function)?\*/; var o = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol"; var i = Object.getPrototypeOf; var getGeneratorFunc = function () { if (!o) { return false } try { return Function("return function*() {}")() } catch (r) { } }; var a = getGeneratorFunc(); var f = a ? i(a) : {}; r.exports = function isGeneratorFunction(r) { if (typeof r !== "function") { return false } if (n.test(t.call(r))) { return true } if (!o) { var a = e.call(r); return a === "[object GeneratorFunction]" } return i(r) === f } }, 994: function (r, e, t) { "use strict"; var n = t(144); var o = t(349); var i = t(256); var a = i("Object.prototype.toString"); var f = t(942)(); var u = f && typeof Symbol.toStringTag === "symbol"; var s = o(); var y = i("Array.prototype.indexOf", true) || function indexOf(r, e) { for (var t = 0; t < r.length; t += 1) { if (r[t] === e) { return t } } return -1 }; var c = i("String.prototype.slice"); var p = {}; var l = t(466); var g = Object.getPrototypeOf; if (u && l && g) { n(s, (function (r) { var e = new __webpack_require__.g[r]; if (!(Symbol.toStringTag in e)) { throw new EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.") } var t = g(e); var n = l(t, Symbol.toStringTag); if (!n) { var o = g(t); n = l(o, Symbol.toStringTag) } p[r] = n.get })) } var b = function tryAllTypedArrays(r) { var e = false; n(p, (function (t, n) { if (!e) { try { e = t.call(r) === n } catch (r) { } } })); return e }; r.exports = function isTypedArray(r) { if (!r || typeof r !== "object") { return false } if (!u) { var e = c(a(r), 8, -1); return y(s, e) > -1 } if (!l) { return false } return b(r) } }, 369: function (r) { r.exports = function isBuffer(r) { return r instanceof Buffer } }, 584: function (r, e, t) { "use strict"; var n = t(157); var o = t(391); var i = t(490); var a = t(994); function uncurryThis(r) { return r.call.bind(r) } var f = typeof BigInt !== "undefined"; var u = typeof Symbol !== "undefined"; var s = uncurryThis(Object.prototype.toString); var y = uncurryThis(Number.prototype.valueOf); var c = uncurryThis(String.prototype.valueOf); var p = uncurryThis(Boolean.prototype.valueOf); if (f) { var l = uncurryThis(BigInt.prototype.valueOf) } if (u) { var g = uncurryThis(Symbol.prototype.valueOf) } function checkBoxedPrimitive(r, e) { if (typeof r !== "object") { return false } try { e(r); return true } catch (r) { return false } } e.isArgumentsObject = n; e.isGeneratorFunction = o; e.isTypedArray = a; function isPromise(r) { return typeof Promise !== "undefined" && r instanceof Promise || r !== null && typeof r === "object" && typeof r.then === "function" && typeof r.catch === "function" } e.isPromise = isPromise; function isArrayBufferView(r) { if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) { return ArrayBuffer.isView(r) } return a(r) || isDataView(r) } e.isArrayBufferView = isArrayBufferView; function isUint8Array(r) { return i(r) === "Uint8Array" } e.isUint8Array = isUint8Array; function isUint8ClampedArray(r) { return i(r) === "Uint8ClampedArray" } e.isUint8ClampedArray = isUint8ClampedArray; function isUint16Array(r) { return i(r) === "Uint16Array" } e.isUint16Array = isUint16Array; function isUint32Array(r) { return i(r) === "Uint32Array" } e.isUint32Array = isUint32Array; function isInt8Array(r) { return i(r) === "Int8Array" } e.isInt8Array = isInt8Array; function isInt16Array(r) { return i(r) === "Int16Array" } e.isInt16Array = isInt16Array; function isInt32Array(r) { return i(r) === "Int32Array" } e.isInt32Array = isInt32Array; function isFloat32Array(r) { return i(r) === "Float32Array" } e.isFloat32Array = isFloat32Array; function isFloat64Array(r) { return i(r) === "Float64Array" } e.isFloat64Array = isFloat64Array; function isBigInt64Array(r) { return i(r) === "BigInt64Array" } e.isBigInt64Array = isBigInt64Array; function isBigUint64Array(r) { return i(r) === "BigUint64Array" } e.isBigUint64Array = isBigUint64Array; function isMapToString(r) { return s(r) === "[object Map]" } isMapToString.working = typeof Map !== "undefined" && isMapToString(new Map); function isMap(r) { if (typeof Map === "undefined") { return false } return isMapToString.working ? isMapToString(r) : r instanceof Map } e.isMap = isMap; function isSetToString(r) { return s(r) === "[object Set]" } isSetToString.working = typeof Set !== "undefined" && isSetToString(new Set); function isSet(r) { if (typeof Set === "undefined") { return false } return isSetToString.working ? isSetToString(r) : r instanceof Set } e.isSet = isSet; function isWeakMapToString(r) { return s(r) === "[object WeakMap]" } isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(new WeakMap); function isWeakMap(r) { if (typeof WeakMap === "undefined") { return false } return isWeakMapToString.working ? isWeakMapToString(r) : r instanceof WeakMap } e.isWeakMap = isWeakMap; function isWeakSetToString(r) { return s(r) === "[object WeakSet]" } isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(new WeakSet); function isWeakSet(r) { return isWeakSetToString(r) } e.isWeakSet = isWeakSet; function isArrayBufferToString(r) { return s(r) === "[object ArrayBuffer]" } isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer); function isArrayBuffer(r) { if (typeof ArrayBuffer === "undefined") { return false } return isArrayBufferToString.working ? isArrayBufferToString(r) : r instanceof ArrayBuffer } e.isArrayBuffer = isArrayBuffer; function isDataViewToString(r) { return s(r) === "[object DataView]" } isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1)); function isDataView(r) { if (typeof DataView === "undefined") { return false } return isDataViewToString.working ? isDataViewToString(r) : r instanceof DataView } e.isDataView = isDataView; var b = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : undefined; function isSharedArrayBufferToString(r) { return s(r) === "[object SharedArrayBuffer]" } function isSharedArrayBuffer(r) { if (typeof b === "undefined") { return false } if (typeof isSharedArrayBufferToString.working === "undefined") { isSharedArrayBufferToString.working = isSharedArrayBufferToString(new b) } return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(r) : r instanceof b } e.isSharedArrayBuffer = isSharedArrayBuffer; function isAsyncFunction(r) { return s(r) === "[object AsyncFunction]" } e.isAsyncFunction = isAsyncFunction; function isMapIterator(r) { return s(r) === "[object Map Iterator]" } e.isMapIterator = isMapIterator; function isSetIterator(r) { return s(r) === "[object Set Iterator]" } e.isSetIterator = isSetIterator; function isGeneratorObject(r) { return s(r) === "[object Generator]" } e.isGeneratorObject = isGeneratorObject; function isWebAssemblyCompiledModule(r) { return s(r) === "[object WebAssembly.Module]" } e.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule; function isNumberObject(r) { return checkBoxedPrimitive(r, y) } e.isNumberObject = isNumberObject; function isStringObject(r) { return checkBoxedPrimitive(r, c) } e.isStringObject = isStringObject; function isBooleanObject(r) { return checkBoxedPrimitive(r, p) } e.isBooleanObject = isBooleanObject; function isBigIntObject(r) { return f && checkBoxedPrimitive(r, l) } e.isBigIntObject = isBigIntObject; function isSymbolObject(r) { return u && checkBoxedPrimitive(r, g) } e.isSymbolObject = isSymbolObject; function isBoxedPrimitive(r) { return isNumberObject(r) || isStringObject(r) || isBooleanObject(r) || isBigIntObject(r) || isSymbolObject(r) } e.isBoxedPrimitive = isBoxedPrimitive; function isAnyArrayBuffer(r) { return typeof Uint8Array !== "undefined" && (isArrayBuffer(r) || isSharedArrayBuffer(r)) } e.isAnyArrayBuffer = isAnyArrayBuffer;["isProxy", "isExternal", "isModuleNamespaceObject"].forEach((function (r) { Object.defineProperty(e, r, { enumerable: false, value: function () { throw new Error(r + " is not supported in userland") } }) })) }, 177: function (r, e, t) { var n = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(r) { var e = Object.keys(r); var t = {}; for (var n = 0; n < e.length; n++) { t[e[n]] = Object.getOwnPropertyDescriptor(r, e[n]) } return t }; var o = /%[sdj%]/g; e.format = function (r) { if (!isString(r)) { var e = []; for (var t = 0; t < arguments.length; t++) { e.push(inspect(arguments[t])) } return e.join(" ") } var t = 1; var n = arguments; var i = n.length; var a = String(r).replace(o, (function (r) { if (r === "%%") return "%"; if (t >= i) return r; switch (r) { case "%s": return String(n[t++]); case "%d": return Number(n[t++]); case "%j": try { return JSON.stringify(n[t++]) } catch (r) { return "[Circular]" } default: return r } })); for (var f = n[t]; t < i; f = n[++t]) { if (isNull(f) || !isObject(f)) { a += " " + f } else { a += " " + inspect(f) } } return a }; e.deprecate = function (r, t) { if (typeof process !== "undefined" && process.noDeprecation === true) { return r } if (typeof process === "undefined") { return function () { return e.deprecate(r, t).apply(this, arguments) } } var n = false; function deprecated() { if (!n) { if (process.throwDeprecation) { throw new Error(t) } else if (process.traceDeprecation) { console.trace(t) } else { console.error(t) } n = true } return r.apply(this, arguments) } return deprecated }; var i = {}; var a = /^$/; if (process.env.NODE_DEBUG) { var f = process.env.NODE_DEBUG; f = f.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(); a = new RegExp("^" + f + "$", "i") } e.debuglog = function (r) { r = r.toUpperCase(); if (!i[r]) { if (a.test(r)) { var t = process.pid; i[r] = function () { var n = e.format.apply(e, arguments); console.error("%s %d: %s", r, t, n) } } else { i[r] = function () { } } } return i[r] }; function inspect(r, t) { var n = { seen: [], stylize: stylizeNoColor }; if (arguments.length >= 3) n.depth = arguments[2]; if (arguments.length >= 4) n.colors = arguments[3]; if (isBoolean(t)) { n.showHidden = t } else if (t) { e._extend(n, t) } if (isUndefined(n.showHidden)) n.showHidden = false; if (isUndefined(n.depth)) n.depth = 2; if (isUndefined(n.colors)) n.colors = false; if (isUndefined(n.customInspect)) n.customInspect = true; if (n.colors) n.stylize = stylizeWithColor; return formatValue(n, r, n.depth) } e.inspect = inspect; inspect.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }; inspect.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }; function stylizeWithColor(r, e) { var t = inspect.styles[e]; if (t) { return "[" + inspect.colors[t][0] + "m" + r + "[" + inspect.colors[t][1] + "m" } else { return r } } function stylizeNoColor(r, e) { return r } function arrayToHash(r) { var e = {}; r.forEach((function (r, t) { e[r] = true })); return e } function formatValue(r, t, n) { if (r.customInspect && t && isFunction(t.inspect) && t.inspect !== e.inspect && !(t.constructor && t.constructor.prototype === t)) { var o = t.inspect(n, r); if (!isString(o)) { o = formatValue(r, o, n) } return o } var i = formatPrimitive(r, t); if (i) { return i } var a = Object.keys(t); var f = arrayToHash(a); if (r.showHidden) { a = Object.getOwnPropertyNames(t) } if (isError(t) && (a.indexOf("message") >= 0 || a.indexOf("description") >= 0)) { return formatError(t) } if (a.length === 0) { if (isFunction(t)) { var u = t.name ? ": " + t.name : ""; return r.stylize("[Function" + u + "]", "special") } if (isRegExp(t)) { return r.stylize(RegExp.prototype.toString.call(t), "regexp") } if (isDate(t)) { return r.stylize(Date.prototype.toString.call(t), "date") } if (isError(t)) { return formatError(t) } } var s = "", y = false, c = ["{", "}"]; if (isArray(t)) { y = true; c = ["[", "]"] } if (isFunction(t)) { var p = t.name ? ": " + t.name : ""; s = " [Function" + p + "]" } if (isRegExp(t)) { s = " " + RegExp.prototype.toString.call(t) } if (isDate(t)) { s = " " + Date.prototype.toUTCString.call(t) } if (isError(t)) { s = " " + formatError(t) } if (a.length === 0 && (!y || t.length == 0)) { return c[0] + s + c[1] } if (n < 0) { if (isRegExp(t)) { return r.stylize(RegExp.prototype.toString.call(t), "regexp") } else { return r.stylize("[Object]", "special") } } r.seen.push(t); var l; if (y) { l = formatArray(r, t, n, f, a) } else { l = a.map((function (e) { return formatProperty(r, t, n, f, e, y) })) } r.seen.pop(); return reduceToSingleString(l, s, c) } function formatPrimitive(r, e) { if (isUndefined(e)) return r.stylize("undefined", "undefined"); if (isString(e)) { var t = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; return r.stylize(t, "string") } if (isNumber(e)) return r.stylize("" + e, "number"); if (isBoolean(e)) return r.stylize("" + e, "boolean"); if (isNull(e)) return r.stylize("null", "null") } function formatError(r) { return "[" + Error.prototype.toString.call(r) + "]" } function formatArray(r, e, t, n, o) { var i = []; for (var a = 0, f = e.length; a < f; ++a) { if (hasOwnProperty(e, String(a))) { i.push(formatProperty(r, e, t, n, String(a), true)) } else { i.push("") } } o.forEach((function (o) { if (!o.match(/^\d+$/)) { i.push(formatProperty(r, e, t, n, o, true)) } })); return i } function formatProperty(r, e, t, n, o, i) { var a, f, u; u = Object.getOwnPropertyDescriptor(e, o) || { value: e[o] }; if (u.get) { if (u.set) { f = r.stylize("[Getter/Setter]", "special") } else { f = r.stylize("[Getter]", "special") } } else { if (u.set) { f = r.stylize("[Setter]", "special") } } if (!hasOwnProperty(n, o)) { a = "[" + o + "]" } if (!f) { if (r.seen.indexOf(u.value) < 0) { if (isNull(t)) { f = formatValue(r, u.value, null) } else { f = formatValue(r, u.value, t - 1) } if (f.indexOf("\n") > -1) { if (i) { f = f.split("\n").map((function (r) { return " " + r })).join("\n").substr(2) } else { f = "\n" + f.split("\n").map((function (r) { return " " + r })).join("\n") } } } else { f = r.stylize("[Circular]", "special") } } if (isUndefined(a)) { if (i && o.match(/^\d+$/)) { return f } a = JSON.stringify("" + o); if (a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { a = a.substr(1, a.length - 2); a = r.stylize(a, "name") } else { a = a.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); a = r.stylize(a, "string") } } return a + ": " + f } function reduceToSingleString(r, e, t) { var n = 0; var o = r.reduce((function (r, e) { n++; if (e.indexOf("\n") >= 0) n++; return r + e.replace(/\u001b\[\d\d?m/g, "").length + 1 }), 0); if (o > 60) { return t[0] + (e === "" ? "" : e + "\n ") + " " + r.join(",\n ") + " " + t[1] } return t[0] + e + " " + r.join(", ") + " " + t[1] } e.types = t(584); function isArray(r) { return Array.isArray(r) } e.isArray = isArray; function isBoolean(r) { return typeof r === "boolean" } e.isBoolean = isBoolean; function isNull(r) { return r === null } e.isNull = isNull; function isNullOrUndefined(r) { return r == null } e.isNullOrUndefined = isNullOrUndefined; function isNumber(r) { return typeof r === "number" } e.isNumber = isNumber; function isString(r) { return typeof r === "string" } e.isString = isString; function isSymbol(r) { return typeof r === "symbol" } e.isSymbol = isSymbol; function isUndefined(r) { return r === void 0 } e.isUndefined = isUndefined; function isRegExp(r) { return isObject(r) && objectToString(r) === "[object RegExp]" } e.isRegExp = isRegExp; e.types.isRegExp = isRegExp; function isObject(r) { return typeof r === "object" && r !== null } e.isObject = isObject; function isDate(r) { return isObject(r) && objectToString(r) === "[object Date]" } e.isDate = isDate; e.types.isDate = isDate; function isError(r) { return isObject(r) && (objectToString(r) === "[object Error]" || r instanceof Error) } e.isError = isError; e.types.isNativeError = isError; function isFunction(r) { return typeof r === "function" } e.isFunction = isFunction; function isPrimitive(r) { return r === null || typeof r === "boolean" || typeof r === "number" || typeof r === "string" || typeof r === "symbol" || typeof r === "undefined" } e.isPrimitive = isPrimitive; e.isBuffer = t(369); function objectToString(r) { return Object.prototype.toString.call(r) } function pad(r) { return r < 10 ? "0" + r.toString(10) : r.toString(10) } var u = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; function timestamp() { var r = new Date; var e = [pad(r.getHours()), pad(r.getMinutes()), pad(r.getSeconds())].join(":"); return [r.getDate(), u[r.getMonth()], e].join(" ") } e.log = function () { console.log("%s - %s", timestamp(), e.format.apply(e, arguments)) }; e.inherits = t(782); e._extend = function (r, e) { if (!e || !isObject(e)) return r; var t = Object.keys(e); var n = t.length; while (n--) { r[t[n]] = e[t[n]] } return r }; function hasOwnProperty(r, e) { return Object.prototype.hasOwnProperty.call(r, e) } var s = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : undefined; e.promisify = function promisify(r) { if (typeof r !== "function") throw new TypeError('The "original" argument must be of type Function'); if (s && r[s]) { var e = r[s]; if (typeof e !== "function") { throw new TypeError('The "util.promisify.custom" argument must be of type Function') } Object.defineProperty(e, s, { value: e, enumerable: false, writable: false, configurable: true }); return e } function e() { var e, t; var n = new Promise((function (r, n) { e = r; t = n })); var o = []; for (var i = 0; i < arguments.length; i++) { o.push(arguments[i]) } o.push((function (r, n) { if (r) { t(r) } else { e(n) } })); try { r.apply(this, o) } catch (r) { t(r) } return n } Object.setPrototypeOf(e, Object.getPrototypeOf(r)); if (s) Object.defineProperty(e, s, { value: e, enumerable: false, writable: false, configurable: true }); return Object.defineProperties(e, n(r)) }; e.promisify.custom = s; function callbackifyOnRejected(r, e) { if (!r) { var t = new Error("Promise was rejected with a falsy value"); t.reason = r; r = t } return e(r) } function callbackify(r) { if (typeof r !== "function") { throw new TypeError('The "original" argument must be of type Function') } function callbackified() { var e = []; for (var t = 0; t < arguments.length; t++) { e.push(arguments[t]) } var n = e.pop(); if (typeof n !== "function") { throw new TypeError("The last argument must be of type Function") } var o = this; var cb = function () { return n.apply(o, arguments) }; r.apply(this, e).then((function (r) { process.nextTick(cb.bind(null, null, r)) }), (function (r) { process.nextTick(callbackifyOnRejected.bind(null, r, cb)) })) } Object.setPrototypeOf(callbackified, Object.getPrototypeOf(r)); Object.defineProperties(callbackified, n(r)); return callbackified } e.callbackify = callbackify }, 490: function (r, e, t) { "use strict"; var n = t(144); var o = t(349); var i = t(256); var a = i("Object.prototype.toString"); var f = t(942)(); var u = f && typeof Symbol.toStringTag === "symbol"; var s = o(); var y = i("String.prototype.slice"); var c = {}; var p = t(466); var l = Object.getPrototypeOf; if (u && p && l) { n(s, (function (r) { if (typeof __webpack_require__.g[r] === "function") { var e = new __webpack_require__.g[r]; if (!(Symbol.toStringTag in e)) { throw new EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this.") } var t = l(e); var n = p(t, Symbol.toStringTag); if (!n) { var o = l(t); n = p(o, Symbol.toStringTag) } c[r] = n.get } })) } var g = function tryAllTypedArrays(r) { var e = false; n(c, (function (t, n) { if (!e) { try { var o = t.call(r); if (o === n) { e = o } } catch (r) { } } })); return e }; var b = t(994); r.exports = function whichTypedArray(r) { if (!b(r)) { return false } if (!u) { return y(a(r), 8, -1) } return g(r) } }, 349: function (r, e, t) { "use strict"; var n = t(992); r.exports = function availableTypedArrays() { return n(["BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray"], (function (r) { return typeof __webpack_require__.g[r] === "function" })) } }, 466: function (r, e, t) { "use strict"; var n = t(500); var o = n("%Object.getOwnPropertyDescriptor%", true); if (o) { try { o([], "length") } catch (r) { o = null } } r.exports = o } }; var e = {}; function __nccwpck_require__(t) { var n = e[t]; if (n !== undefined) { return n.exports } var o = e[t] = { exports: {} }; var i = true; try { r[t](o, o.exports, __nccwpck_require__); i = false } finally { if (i) delete e[t] } return o.exports } if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/"; var t = __nccwpck_require__(177); module.exports = t })(); /***/ }), /***/ 1664: /***/ (function (module, __unused_webpack_exports, __webpack_require__) { module.exports = __webpack_require__(8418) /***/ }) }]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/feedback-3/579-dcac359116b2707c/output.js
JavaScript
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 579 ], { /***/ 7029: /***/ function(t, e, r) { r.g, t.exports = (()=>{ var t = { 873: (t)=>{ t.exports = function(t) { if (void 0 === t) throw ReferenceError("this hasn't been initialised - super() hasn't been called"); return t; }, t.exports.default = t.exports, t.exports.__esModule = !0; }, 575: (t)=>{ t.exports = function(t, e) { if (!(t instanceof e)) throw TypeError("Cannot call a class as a function"); }, t.exports.default = t.exports, t.exports.__esModule = !0; }, 754: (t)=>{ function e(r) { return t.exports = e = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) { return t.__proto__ || Object.getPrototypeOf(t); }, t.exports.default = t.exports, t.exports.__esModule = !0, e(r); } t.exports = e, t.exports.default = t.exports, t.exports.__esModule = !0; }, 205: (t, e, r)=>{ var o = r(489); t.exports = function(t, e) { if ("function" != typeof e && null !== e) throw 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 && o(t, e); }, t.exports.default = t.exports, t.exports.__esModule = !0; }, 585: (t, e, r)=>{ var o = r(8).default, n = r(873); t.exports = function(t, e) { return e && ("object" === o(e) || "function" == typeof e) ? e : n(t); }, t.exports.default = t.exports, t.exports.__esModule = !0; }, 489: (t)=>{ function e(r, o) { return t.exports = e = Object.setPrototypeOf || function(t, e) { return t.__proto__ = e, t; }, t.exports.default = t.exports, t.exports.__esModule = !0, e(r, o); } t.exports = e, t.exports.default = t.exports, t.exports.__esModule = !0; }, 8: (t)=>{ function e(r) { return "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? t.exports = e = function(t) { return typeof t; } : t.exports = e = function(t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, t.exports.default = t.exports, t.exports.__esModule = !0, e(r); } t.exports = e, t.exports.default = t.exports, t.exports.__esModule = !0; }, 924: (t, e, r)=>{ "use strict"; var o = r(210), n = r(559), i = n(o("String.prototype.indexOf")); t.exports = function(t, e) { var r = o(t, !!e); return "function" == typeof r && i(t, ".prototype.") > -1 ? n(r) : r; }; }, 559: (t, e, r)=>{ "use strict"; var o = r(612), n = r(210), i = n("%Function.prototype.apply%"), a = n("%Function.prototype.call%"), p = n("%Reflect.apply%", !0) || o.call(a, i), c = n("%Object.getOwnPropertyDescriptor%", !0), u = n("%Object.defineProperty%", !0), f = n("%Math.max%"); if (u) try { u({}, "a", { value: 1 }); } catch (t) { u = null; } t.exports = function(t) { var e = p(o, a, arguments); return c && u && c(e, "length").configurable && u(e, "length", { value: 1 + f(0, t.length - (arguments.length - 1)) }), e; }; var y = function() { return p(o, i, arguments); }; u ? u(t.exports, "apply", { value: y }) : t.exports.apply = y; }, 729: (t)=>{ "use strict"; var e = Object.prototype.hasOwnProperty, r = "~"; function o() {} function n(t, e, r) { this.fn = t, this.context = e, this.once = r || !1; } function i(t, e, o, i, a) { if ("function" != typeof o) throw TypeError("The listener must be a function"); var p = new n(o, i || t, a), c = r ? r + e : e; return t._events[c] ? t._events[c].fn ? t._events[c] = [ t._events[c], p ] : t._events[c].push(p) : (t._events[c] = p, t._eventsCount++), t; } function a(t, e) { 0 == --t._eventsCount ? t._events = new o : delete t._events[e]; } function p() { this._events = new o, this._eventsCount = 0; } Object.create && (o.prototype = Object.create(null), (new o).__proto__ || (r = !1)), p.prototype.eventNames = function() { var t, o, n = []; if (0 === this._eventsCount) return n; for(o in t = this._events)e.call(t, o) && n.push(r ? o.slice(1) : o); return Object.getOwnPropertySymbols ? n.concat(Object.getOwnPropertySymbols(t)) : n; }, p.prototype.listeners = function(t) { var e = r ? r + t : t, o = this._events[e]; if (!o) return []; if (o.fn) return [ o.fn ]; for(var n = 0, i = o.length, a = Array(i); n < i; n++)a[n] = o[n].fn; return a; }, p.prototype.listenerCount = function(t) { var e = r ? r + t : t, o = this._events[e]; return o ? o.fn ? 1 : o.length : 0; }, p.prototype.emit = function(t, e, o, n, i, a) { var p = r ? r + t : t; if (!this._events[p]) return !1; var c, u, f = this._events[p], y = arguments.length; if (f.fn) { switch(f.once && this.removeListener(t, f.fn, void 0, !0), y){ case 1: return f.fn.call(f.context), !0; case 2: return f.fn.call(f.context, e), !0; case 3: return f.fn.call(f.context, e, o), !0; case 4: return f.fn.call(f.context, e, o, n), !0; case 5: return f.fn.call(f.context, e, o, n, i), !0; case 6: return f.fn.call(f.context, e, o, n, i, a), !0; } for(u = 1, c = Array(y - 1); u < y; u++)c[u - 1] = arguments[u]; f.fn.apply(f.context, c); } else { var l, s = f.length; for(u = 0; u < s; u++)switch(f[u].once && this.removeListener(t, f[u].fn, void 0, !0), y){ case 1: f[u].fn.call(f[u].context); break; case 2: f[u].fn.call(f[u].context, e); break; case 3: f[u].fn.call(f[u].context, e, o); break; case 4: f[u].fn.call(f[u].context, e, o, n); break; default: if (!c) for(l = 1, c = Array(y - 1); l < y; l++)c[l - 1] = arguments[l]; f[u].fn.apply(f[u].context, c); } } return !0; }, p.prototype.on = function(t, e, r) { return i(this, t, e, r, !1); }, p.prototype.once = function(t, e, r) { return i(this, t, e, r, !0); }, p.prototype.removeListener = function(t, e, o, n) { var i = r ? r + t : t; if (!this._events[i]) return this; if (!e) return a(this, i), this; var p = this._events[i]; if (p.fn) p.fn !== e || n && !p.once || o && p.context !== o || a(this, i); else { for(var c = 0, u = [], f = p.length; c < f; c++)(p[c].fn !== e || n && !p[c].once || o && p[c].context !== o) && u.push(p[c]); u.length ? this._events[i] = 1 === u.length ? u[0] : u : a(this, i); } return this; }, p.prototype.removeAllListeners = function(t) { var e; return t ? (e = r ? r + t : t, this._events[e] && a(this, e)) : (this._events = new o, this._eventsCount = 0), this; }, p.prototype.off = p.prototype.removeListener, p.prototype.addListener = p.prototype.on, p.prefixed = r, p.EventEmitter = p, t.exports = p; }, 648: (t)=>{ "use strict"; var e = Array.prototype.slice, r = Object.prototype.toString; t.exports = function(t) { var o = this; if ("function" != typeof o || "[object Function]" !== r.call(o)) throw TypeError("Function.prototype.bind called on incompatible " + o); for(var n, i = e.call(arguments, 1), a = Math.max(0, o.length - i.length), p = [], c = 0; c < a; c++)p.push("$" + c); if (n = Function("binder", "return function (" + p.join(",") + "){ return binder.apply(this,arguments); }")(function() { if (this instanceof n) { var r = o.apply(this, i.concat(e.call(arguments))); return Object(r) === r ? r : this; } return o.apply(t, i.concat(e.call(arguments))); }), o.prototype) { var u = function() {}; u.prototype = o.prototype, n.prototype = new u, u.prototype = null; } return n; }; }, 612: (t, e, r)=>{ "use strict"; var o = r(648); t.exports = Function.prototype.bind || o; }, 210: (t, e, r)=>{ "use strict"; var o, n = SyntaxError, i = Function, a = TypeError, p = function(t) { try { return i('"use strict"; return (' + t + ").constructor;")(); } catch (t) {} }, c = Object.getOwnPropertyDescriptor; if (c) try { c({}, ""); } catch (t) { c = null; } var u = function() { throw new a; }, f = c ? function() { try { return u; } catch (t) { try { return c(arguments, "callee").get; } catch (t) { return u; } } }() : u, y = r(405)(), l = Object.getPrototypeOf || function(t) { return t.__proto__; }, s = {}, d = "undefined" == typeof Uint8Array ? o : l(Uint8Array), b = { "%AggregateError%": "undefined" == typeof AggregateError ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? o : ArrayBuffer, "%ArrayIteratorPrototype%": y ? l([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": s, "%AsyncGenerator%": s, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": s, "%Atomics%": "undefined" == typeof Atomics ? o : Atomics, "%BigInt%": "undefined" == typeof BigInt ? o : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? o : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? o : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": s, "%Int8Array%": "undefined" == typeof Int8Array ? o : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? o : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": y ? l(l([][Symbol.iterator]())) : o, "%JSON%": "object" == typeof JSON ? JSON : o, "%Map%": "undefined" == typeof Map ? o : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && y ? l((new Map)[Symbol.iterator]()) : o, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? o : Promise, "%Proxy%": "undefined" == typeof Proxy ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? o : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? o : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && y ? l((new Set)[Symbol.iterator]()) : o, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": y ? l(""[Symbol.iterator]()) : o, "%Symbol%": y ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": f, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": "undefined" == typeof Uint8Array ? o : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? o : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? o : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? o : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? o : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? o : WeakSet }, g = function t(e) { var r; if ("%AsyncFunction%" === e) r = p("async function () {}"); else if ("%GeneratorFunction%" === e) r = p("function* () {}"); else if ("%AsyncGeneratorFunction%" === e) r = p("async function* () {}"); else if ("%AsyncGenerator%" === e) { var o = t("%AsyncGeneratorFunction%"); o && (r = o.prototype); } else if ("%AsyncIteratorPrototype%" === e) { var n = t("%AsyncGenerator%"); n && (r = l(n.prototype)); } return b[e] = r, r; }, h = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype" ], "%ArrayPrototype%": [ "Array", "prototype" ], "%ArrayProto_entries%": [ "Array", "prototype", "entries" ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach" ], "%ArrayProto_keys%": [ "Array", "prototype", "keys" ], "%ArrayProto_values%": [ "Array", "prototype", "values" ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype" ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype" ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype" ], "%BooleanPrototype%": [ "Boolean", "prototype" ], "%DataViewPrototype%": [ "DataView", "prototype" ], "%DatePrototype%": [ "Date", "prototype" ], "%ErrorPrototype%": [ "Error", "prototype" ], "%EvalErrorPrototype%": [ "EvalError", "prototype" ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype" ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype" ], "%FunctionPrototype%": [ "Function", "prototype" ], "%Generator%": [ "GeneratorFunction", "prototype" ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype" ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype" ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype" ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype" ], "%JSONParse%": [ "JSON", "parse" ], "%JSONStringify%": [ "JSON", "stringify" ], "%MapPrototype%": [ "Map", "prototype" ], "%NumberPrototype%": [ "Number", "prototype" ], "%ObjectPrototype%": [ "Object", "prototype" ], "%ObjProto_toString%": [ "Object", "prototype", "toString" ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf" ], "%PromisePrototype%": [ "Promise", "prototype" ], "%PromiseProto_then%": [ "Promise", "prototype", "then" ], "%Promise_all%": [ "Promise", "all" ], "%Promise_reject%": [ "Promise", "reject" ], "%Promise_resolve%": [ "Promise", "resolve" ], "%RangeErrorPrototype%": [ "RangeError", "prototype" ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype" ], "%RegExpPrototype%": [ "RegExp", "prototype" ], "%SetPrototype%": [ "Set", "prototype" ], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype" ], "%StringPrototype%": [ "String", "prototype" ], "%SymbolPrototype%": [ "Symbol", "prototype" ], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype" ], "%TypedArrayPrototype%": [ "TypedArray", "prototype" ], "%TypeErrorPrototype%": [ "TypeError", "prototype" ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype" ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype" ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype" ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype" ], "%URIErrorPrototype%": [ "URIError", "prototype" ], "%WeakMapPrototype%": [ "WeakMap", "prototype" ], "%WeakSetPrototype%": [ "WeakSet", "prototype" ] }, m = r(612), v = r(642), S = m.call(Function.call, Array.prototype.concat), A = m.call(Function.apply, Array.prototype.splice), O = m.call(Function.call, String.prototype.replace), j = m.call(Function.call, String.prototype.slice), P = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, x = /\\(\\)?/g, w = function(t) { var e = j(t, 0, 1), r = j(t, -1); if ("%" === e && "%" !== r) throw new n("invalid intrinsic syntax, expected closing `%`"); if ("%" === r && "%" !== e) throw new n("invalid intrinsic syntax, expected opening `%`"); var o = []; return O(t, P, function(t, e, r, n) { o[o.length] = r ? O(n, x, "$1") : e || t; }), o; }, E = function(t, e) { var r, o = t; if (v(h, o) && (o = "%" + (r = h[o])[0] + "%"), v(b, o)) { var i = b[o]; if (i === s && (i = g(o)), void 0 === i && !e) throw new a("intrinsic " + t + " exists, but is not available. Please file an issue!"); return { alias: r, name: o, value: i }; } throw new n("intrinsic " + t + " does not exist!"); }; t.exports = function(t, e) { if ("string" != typeof t || 0 === t.length) throw new a("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" != typeof e) throw new a('"allowMissing" argument must be a boolean'); var r = w(t), o = r.length > 0 ? r[0] : "", i = E("%" + o + "%", e), p = i.name, u = i.value, f = !1, y = i.alias; y && (o = y[0], A(r, S([ 0, 1 ], y))); for(var l = 1, s = !0; l < r.length; l += 1){ var d = r[l], g = j(d, 0, 1), h = j(d, -1); if (('"' === g || "'" === g || "`" === g || '"' === h || "'" === h || "`" === h) && g !== h) throw new n("property names with quotes must have matching quotes"); if ("constructor" !== d && s || (f = !0), v(b, p = "%" + (o += "." + d) + "%")) u = b[p]; else if (null != u) { if (!(d in u)) { if (!e) throw new a("base intrinsic for " + t + " exists, but the property is not available."); return; } if (c && l + 1 >= r.length) { var m = c(u, d); u = (s = !!m) && "get" in m && !("originalValue" in m.get) ? m.get : u[d]; } else s = v(u, d), u = u[d]; s && !f && (b[p] = u); } } return u; }; }, 405: (t, e, r)=>{ "use strict"; var o = "undefined" != typeof Symbol && Symbol, n = r(419); t.exports = function() { return "function" == typeof o && "function" == typeof Symbol && "symbol" == typeof o("foo") && "symbol" == typeof Symbol("bar") && n(); }; }, 419: (t)=>{ "use strict"; t.exports = function() { if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) return !1; if ("symbol" == typeof Symbol.iterator) return !0; var t = {}, e = Symbol("test"), r = Object(e); if ("string" == typeof e || "[object Symbol]" !== Object.prototype.toString.call(e) || "[object Symbol]" !== Object.prototype.toString.call(r)) return !1; for(e in t[e] = 42, t)return !1; if ("function" == typeof Object.keys && 0 !== Object.keys(t).length || "function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(t).length) return !1; var o = Object.getOwnPropertySymbols(t); if (1 !== o.length || o[0] !== e || !Object.prototype.propertyIsEnumerable.call(t, e)) return !1; if ("function" == typeof Object.getOwnPropertyDescriptor) { var n = Object.getOwnPropertyDescriptor(t, e); if (42 !== n.value || !0 !== n.enumerable) return !1; } return !0; }; }, 642: (t, e, r)=>{ "use strict"; t.exports = r(612).call(Function.call, Object.prototype.hasOwnProperty); }, 631: (t, e, r)=>{ var o = "function" == typeof Map && Map.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, i = o && n && "function" == typeof n.get ? n.get : null, a = o && Map.prototype.forEach, p = "function" == typeof Set && Set.prototype, c = Object.getOwnPropertyDescriptor && p ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = p && c && "function" == typeof c.get ? c.get : null, f = p && Set.prototype.forEach, y = "function" == typeof WeakMap && WeakMap.prototype ? WeakMap.prototype.has : null, l = "function" == typeof WeakSet && WeakSet.prototype ? WeakSet.prototype.has : null, s = "function" == typeof WeakRef && WeakRef.prototype ? WeakRef.prototype.deref : null, d = Boolean.prototype.valueOf, b = Object.prototype.toString, g = Function.prototype.toString, h = String.prototype.match, m = "function" == typeof BigInt ? BigInt.prototype.valueOf : null, v = Object.getOwnPropertySymbols, S = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? Symbol.prototype.toString : null, A = "function" == typeof Symbol && "object" == typeof Symbol.iterator, O = Object.prototype.propertyIsEnumerable, j = ("function" == typeof Reflect ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) { return t.__proto__; } : null), P = r(794).custom, x = P && I(P) ? P : null, w = "function" == typeof Symbol && void 0 !== Symbol.toStringTag ? Symbol.toStringTag : null; function E(t, e, r) { var o = "double" === (r.quoteStyle || e) ? '"' : "'"; return o + t + o; } function F(t) { return !("[object Array]" !== R(t) || w && "object" == typeof t && w in t); } function I(t) { if (A) return t && "object" == typeof t && t instanceof Symbol; if ("symbol" == typeof t) return !0; if (!t || "object" != typeof t || !S) return !1; try { return S.call(t), !0; } catch (t) {} return !1; } t.exports = function t(e, r, o, n) { var p = r || {}; if (_(p, "quoteStyle") && "single" !== p.quoteStyle && "double" !== p.quoteStyle) throw TypeError('option "quoteStyle" must be "single" or "double"'); if (_(p, "maxStringLength") && ("number" == typeof p.maxStringLength ? p.maxStringLength < 0 && p.maxStringLength !== 1 / 0 : null !== p.maxStringLength)) throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); var c = !_(p, "customInspect") || p.customInspect; if ("boolean" != typeof c && "symbol" !== c) throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`"); if (_(p, "indent") && null !== p.indent && "\t" !== p.indent && !(parseInt(p.indent, 10) === p.indent && p.indent > 0)) throw TypeError('options "indent" must be "\\t", an integer > 0, or `null`'); if (void 0 === e) return "undefined"; if (null === e) return "null"; if ("boolean" == typeof e) return e ? "true" : "false"; if ("string" == typeof e) return function t(e, r) { if (e.length > r.maxStringLength) { var o = e.length - r.maxStringLength; return t(e.slice(0, r.maxStringLength), r) + "... " + o + " more character" + (o > 1 ? "s" : ""); } return E(e.replace(/(['\\])/g, "\\$1").replace(/[\x00-\x1f]/g, M), "single", r); }(e, p); if ("number" == typeof e) return 0 === e ? 1 / 0 / e > 0 ? "0" : "-0" : String(e); if ("bigint" == typeof e) return String(e) + "n"; var b = void 0 === p.depth ? 5 : p.depth; if (void 0 === o && (o = 0), o >= b && b > 0 && "object" == typeof e) return F(e) ? "[Array]" : "[Object]"; var v = function(t, e) { var r; if ("\t" === t.indent) r = "\t"; else { if (!("number" == typeof t.indent && t.indent > 0)) return null; r = Array(t.indent + 1).join(" "); } return { base: r, prev: Array(e + 1).join(r) }; }(p, o); if (void 0 === n) n = []; else if (U(n, e) >= 0) return "[Circular]"; function O(e, r, i) { if (r && (n = n.slice()).push(r), i) { var a = { depth: p.depth }; return _(p, "quoteStyle") && (a.quoteStyle = p.quoteStyle), t(e, a, o + 1, n); } return t(e, p, o + 1, n); } if ("function" == typeof e) { var P = function(t) { if (t.name) return t.name; var e = h.call(g.call(t), /^function\s*([\w$]+)/); return e ? e[1] : null; }(e), k = C(e, O); return "[Function" + (P ? ": " + P : " (anonymous)") + "]" + (k.length > 0 ? " { " + k.join(", ") + " }" : ""); } if (I(e)) { var W = A ? String(e).replace(/^(Symbol\(.*\))_[^)]*$/, "$1") : S.call(e); return "object" != typeof e || A ? W : N(W); } if (e && "object" == typeof e && ("undefined" != typeof HTMLElement && e instanceof HTMLElement || "string" == typeof e.nodeName && "function" == typeof e.getAttribute)) { for(var G = "<" + String(e.nodeName).toLowerCase(), z = e.attributes || [], L = 0; L < z.length; L++)G += " " + z[L].name + "=" + E(String(z[L].value).replace(/"/g, "&quot;"), "double", p); return G += ">", e.childNodes && e.childNodes.length && (G += "..."), G + "</" + String(e.nodeName).toLowerCase() + ">"; } if (F(e)) { if (0 === e.length) return "[]"; var V = C(e, O); return v && !function(t) { for(var e = 0; e < t.length; e++)if (U(t[e], "\n") >= 0) return !1; return !0; }(V) ? "[" + T(V, v) + "]" : "[ " + V.join(", ") + " ]"; } if (!("[object Error]" !== R(e) || w && "object" == typeof e && w in e)) { var $ = C(e, O); return 0 === $.length ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.join(", ") + " }"; } if ("object" == typeof e && c) { if (x && "function" == typeof e[x]) return e[x](); if ("symbol" !== c && "function" == typeof e.inspect) return e.inspect(); } if (function(t) { if (!i || !t || "object" != typeof t) return !1; try { i.call(t); try { u.call(t); } catch (t) { return !0; } return t instanceof Map; } catch (t) {} return !1; }(e)) { var J = []; return a.call(e, function(t, r) { J.push(O(r, e, !0) + " => " + O(t, e)); }), D("Map", i.call(e), J, v); } if (function(t) { if (!u || !t || "object" != typeof t) return !1; try { u.call(t); try { i.call(t); } catch (t) { return !0; } return t instanceof Set; } catch (t) {} return !1; }(e)) { var H = []; return f.call(e, function(t) { H.push(O(t, e)); }), D("Set", u.call(e), H, v); } if (function(t) { if (!y || !t || "object" != typeof t) return !1; try { y.call(t, y); try { l.call(t, l); } catch (t) { return !0; } return t instanceof WeakMap; } catch (t) {} return !1; }(e)) return B("WeakMap"); if (function(t) { if (!l || !t || "object" != typeof t) return !1; try { l.call(t, l); try { y.call(t, y); } catch (t) { return !0; } return t instanceof WeakSet; } catch (t) {} return !1; }(e)) return B("WeakSet"); if (function(t) { if (!s || !t || "object" != typeof t) return !1; try { return s.call(t), !0; } catch (t) {} return !1; }(e)) return B("WeakRef"); if (!("[object Number]" !== R(e) || w && "object" == typeof e && w in e)) return N(O(Number(e))); if (function(t) { if (!t || "object" != typeof t || !m) return !1; try { return m.call(t), !0; } catch (t) {} return !1; }(e)) return N(O(m.call(e))); if (!("[object Boolean]" !== R(e) || w && "object" == typeof e && w in e)) return N(d.call(e)); if (!("[object String]" !== R(e) || w && "object" == typeof e && w in e)) return N(O(String(e))); if (("[object Date]" !== R(e) || w && "object" == typeof e && w in e) && ("[object RegExp]" !== R(e) || w && "object" == typeof e && w in e)) { var q = C(e, O), Q = j ? j(e) === Object.prototype : e instanceof Object || e.constructor === Object, Z = e instanceof Object ? "" : "null prototype", K = !Q && w && Object(e) === e && w in e ? R(e).slice(8, -1) : Z ? "Object" : "", X = (Q || "function" != typeof e.constructor ? "" : e.constructor.name ? e.constructor.name + " " : "") + (K || Z ? "[" + [].concat(K || [], Z || []).join(": ") + "] " : ""); return 0 === q.length ? X + "{}" : v ? X + "{" + T(q, v) + "}" : X + "{ " + q.join(", ") + " }"; } return String(e); }; var k = Object.prototype.hasOwnProperty || function(t) { return t in this; }; function _(t, e) { return k.call(t, e); } function R(t) { return b.call(t); } function U(t, e) { if (t.indexOf) return t.indexOf(e); for(var r = 0, o = t.length; r < o; r++)if (t[r] === e) return r; return -1; } function M(t) { var e = t.charCodeAt(0), r = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[e]; return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + e.toString(16).toUpperCase(); } function N(t) { return "Object(" + t + ")"; } function B(t) { return t + " { ? }"; } function D(t, e, r, o) { return t + " (" + e + ") {" + (o ? T(r, o) : r.join(", ")) + "}"; } function T(t, e) { if (0 === t.length) return ""; var r = "\n" + e.prev + e.base; return r + t.join("," + r) + "\n" + e.prev; } function C(t, e) { var r = F(t), o = []; if (r) { o.length = t.length; for(var n = 0; n < t.length; n++)o[n] = _(t, n) ? e(t[n], t) : ""; } var i, a = "function" == typeof v ? v(t) : []; if (A) { i = {}; for(var p = 0; p < a.length; p++)i["$" + a[p]] = a[p]; } for(var c in t)_(t, c) && (r && String(Number(c)) === c && c < t.length || A && i["$" + c] instanceof Symbol || (/[^\w$]/.test(c) ? o.push(e(c, t) + ": " + e(t[c], t)) : o.push(c + ": " + e(t[c], t)))); if ("function" == typeof v) for(var u = 0; u < a.length; u++)O.call(t, a[u]) && o.push("[" + e(a[u]) + "]: " + e(t[a[u]], t)); return o; } }, 794: (t, e, r)=>{ t.exports = r(669).inspect; }, 798: (t)=>{ "use strict"; var e = String.prototype.replace, r = /%20/g, o = "RFC3986"; t.exports = { default: o, formatters: { RFC1738: function(t) { return e.call(t, r, "+"); }, RFC3986: function(t) { return String(t); } }, RFC1738: "RFC1738", RFC3986: o }; }, 129: (t, e, r)=>{ "use strict"; var o = r(261), n = r(235); t.exports = { formats: r(798), parse: n, stringify: o }; }, 235: (t, e, r)=>{ "use strict"; var o = r(769), n = Object.prototype.hasOwnProperty, i = Array.isArray, a = { allowDots: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decoder: o.decode, delimiter: "&", depth: 5, ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictNullHandling: !1 }, p = function(t, e) { return t && "string" == typeof t && e.comma && t.indexOf(",") > -1 ? t.split(",") : t; }, c = function(t, e, r, o) { if (t) { var i = r.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, a = /(\[[^[\]]*])/g, c = r.depth > 0 && /(\[[^[\]]*])/.exec(i), u = c ? i.slice(0, c.index) : i, f = []; if (u) { if (!r.plainObjects && n.call(Object.prototype, u) && !r.allowPrototypes) return; f.push(u); } for(var y = 0; r.depth > 0 && null !== (c = a.exec(i)) && y < r.depth;){ if (y += 1, !r.plainObjects && n.call(Object.prototype, c[1].slice(1, -1)) && !r.allowPrototypes) return; f.push(c[1]); } return c && f.push("[" + i.slice(c.index) + "]"), function(t, e, r, o) { for(var n = o ? e : p(e, r), i = t.length - 1; i >= 0; --i){ var a, c = t[i]; if ("[]" === c && r.parseArrays) a = [].concat(n); else { a = r.plainObjects ? Object.create(null) : {}; var u = "[" === c.charAt(0) && "]" === c.charAt(c.length - 1) ? c.slice(1, -1) : c, f = parseInt(u, 10); r.parseArrays || "" !== u ? !isNaN(f) && c !== u && String(f) === u && f >= 0 && r.parseArrays && f <= r.arrayLimit ? (a = [])[f] = n : a[u] = n : a = { 0: n }; } n = a; } return n; }(f, e, r, o); } }; t.exports = function(t, e) { var r = function(t) { if (!t) return a; if (null !== t.decoder && void 0 !== t.decoder && "function" != typeof t.decoder) throw TypeError("Decoder has to be a function."); if (void 0 !== t.charset && "utf-8" !== t.charset && "iso-8859-1" !== t.charset) throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var e = void 0 === t.charset ? a.charset : t.charset; return { allowDots: void 0 === t.allowDots ? a.allowDots : !!t.allowDots, allowPrototypes: "boolean" == typeof t.allowPrototypes ? t.allowPrototypes : a.allowPrototypes, allowSparse: "boolean" == typeof t.allowSparse ? t.allowSparse : a.allowSparse, arrayLimit: "number" == typeof t.arrayLimit ? t.arrayLimit : a.arrayLimit, charset: e, charsetSentinel: "boolean" == typeof t.charsetSentinel ? t.charsetSentinel : a.charsetSentinel, comma: "boolean" == typeof t.comma ? t.comma : a.comma, decoder: "function" == typeof t.decoder ? t.decoder : a.decoder, delimiter: "string" == typeof t.delimiter || o.isRegExp(t.delimiter) ? t.delimiter : a.delimiter, depth: "number" == typeof t.depth || !1 === t.depth ? +t.depth : a.depth, ignoreQueryPrefix: !0 === t.ignoreQueryPrefix, interpretNumericEntities: "boolean" == typeof t.interpretNumericEntities ? t.interpretNumericEntities : a.interpretNumericEntities, parameterLimit: "number" == typeof t.parameterLimit ? t.parameterLimit : a.parameterLimit, parseArrays: !1 !== t.parseArrays, plainObjects: "boolean" == typeof t.plainObjects ? t.plainObjects : a.plainObjects, strictNullHandling: "boolean" == typeof t.strictNullHandling ? t.strictNullHandling : a.strictNullHandling }; }(e); if ("" === t || null == t) return r.plainObjects ? Object.create(null) : {}; for(var u = "string" == typeof t ? function(t, e) { var r, c = {}, u = e.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, f = e.parameterLimit === 1 / 0 ? void 0 : e.parameterLimit, y = u.split(e.delimiter, f), l = -1, s = e.charset; if (e.charsetSentinel) for(r = 0; r < y.length; ++r)0 === y[r].indexOf("utf8=") && ("utf8=%E2%9C%93" === y[r] ? s = "utf-8" : "utf8=%26%2310003%3B" === y[r] && (s = "iso-8859-1"), l = r, r = y.length); for(r = 0; r < y.length; ++r)if (r !== l) { var d, b, g = y[r], h = g.indexOf("]="), m = -1 === h ? g.indexOf("=") : h + 1; -1 === m ? (d = e.decoder(g, a.decoder, s, "key"), b = e.strictNullHandling ? null : "") : (d = e.decoder(g.slice(0, m), a.decoder, s, "key"), b = o.maybeMap(p(g.slice(m + 1), e), function(t) { return e.decoder(t, a.decoder, s, "value"); })), b && e.interpretNumericEntities && "iso-8859-1" === s && (b = b.replace(/&#(\d+);/g, function(t, e) { return String.fromCharCode(parseInt(e, 10)); })), g.indexOf("[]=") > -1 && (b = i(b) ? [ b ] : b), n.call(c, d) ? c[d] = o.combine(c[d], b) : c[d] = b; } return c; }(t, r) : t, f = r.plainObjects ? Object.create(null) : {}, y = Object.keys(u), l = 0; l < y.length; ++l){ var s = y[l], d = c(s, u[s], r, "string" == typeof t); f = o.merge(f, d, r); } return !0 === r.allowSparse ? f : o.compact(f); }; }, 261: (t, e, r)=>{ "use strict"; var o = r(478), n = r(769), i = r(798), a = Object.prototype.hasOwnProperty, p = { brackets: function(t) { return t + "[]"; }, comma: "comma", indices: function(t, e) { return t + "[" + e + "]"; }, repeat: function(t) { return t; } }, c = Array.isArray, u = Array.prototype.push, f = function(t, e) { u.apply(t, c(e) ? e : [ e ]); }, y = Date.prototype.toISOString, l = i.default, s = { addQueryPrefix: !1, allowDots: !1, charset: "utf-8", charsetSentinel: !1, delimiter: "&", encode: !0, encoder: n.encode, encodeValuesOnly: !1, format: l, formatter: i.formatters[l], indices: !1, serializeDate: function(t) { return y.call(t); }, skipNulls: !1, strictNullHandling: !1 }, d = function t(e, r, i, a, p, u, y, l, d, b, g, h, m, v, S) { var A, O = e; if (S.has(e)) throw RangeError("Cyclic object value"); if ("function" == typeof y ? O = y(r, O) : O instanceof Date ? O = b(O) : "comma" === i && c(O) && (O = n.maybeMap(O, function(t) { return t instanceof Date ? b(t) : t; })), null === O) { if (a) return u && !m ? u(r, s.encoder, v, "key", g) : r; O = ""; } if ("string" == typeof (A = O) || "number" == typeof A || "boolean" == typeof A || "symbol" == typeof A || "bigint" == typeof A || n.isBuffer(O)) return u ? [ h(m ? r : u(r, s.encoder, v, "key", g)) + "=" + h(u(O, s.encoder, v, "value", g)) ] : [ h(r) + "=" + h(String(O)) ]; var j, P = []; if (void 0 === O) return P; if ("comma" === i && c(O)) j = [ { value: O.length > 0 ? O.join(",") || null : void 0 } ]; else if (c(y)) j = y; else { var x = Object.keys(O); j = l ? x.sort(l) : x; } for(var w = 0; w < j.length; ++w){ var E = j[w], F = "object" == typeof E && void 0 !== E.value ? E.value : O[E]; if (!p || null !== F) { var I = c(O) ? "function" == typeof i ? i(r, E) : r : r + (d ? "." + E : "[" + E + "]"); S.set(e, !0), f(P, t(F, I, i, a, p, u, y, l, d, b, g, h, m, v, o())); } } return P; }; t.exports = function(t, e) { var r, n = t, u = function(t) { if (!t) return s; if (null !== t.encoder && void 0 !== t.encoder && "function" != typeof t.encoder) throw TypeError("Encoder has to be a function."); var e = t.charset || s.charset; if (void 0 !== t.charset && "utf-8" !== t.charset && "iso-8859-1" !== t.charset) throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var r = i.default; if (void 0 !== t.format) { if (!a.call(i.formatters, t.format)) throw TypeError("Unknown format option provided."); r = t.format; } var o = i.formatters[r], n = s.filter; return ("function" == typeof t.filter || c(t.filter)) && (n = t.filter), { addQueryPrefix: "boolean" == typeof t.addQueryPrefix ? t.addQueryPrefix : s.addQueryPrefix, allowDots: void 0 === t.allowDots ? s.allowDots : !!t.allowDots, charset: e, charsetSentinel: "boolean" == typeof t.charsetSentinel ? t.charsetSentinel : s.charsetSentinel, delimiter: void 0 === t.delimiter ? s.delimiter : t.delimiter, encode: "boolean" == typeof t.encode ? t.encode : s.encode, encoder: "function" == typeof t.encoder ? t.encoder : s.encoder, encodeValuesOnly: "boolean" == typeof t.encodeValuesOnly ? t.encodeValuesOnly : s.encodeValuesOnly, filter: n, format: r, formatter: o, serializeDate: "function" == typeof t.serializeDate ? t.serializeDate : s.serializeDate, skipNulls: "boolean" == typeof t.skipNulls ? t.skipNulls : s.skipNulls, sort: "function" == typeof t.sort ? t.sort : null, strictNullHandling: "boolean" == typeof t.strictNullHandling ? t.strictNullHandling : s.strictNullHandling }; }(e); "function" == typeof u.filter ? n = (0, u.filter)("", n) : c(u.filter) && (r = u.filter); var y, l = []; if ("object" != typeof n || null === n) return ""; y = e && e.arrayFormat in p ? e.arrayFormat : e && "indices" in e ? e.indices ? "indices" : "repeat" : "indices"; var b = p[y]; r || (r = Object.keys(n)), u.sort && r.sort(u.sort); for(var g = o(), h = 0; h < r.length; ++h){ var m = r[h]; u.skipNulls && null === n[m] || f(l, d(n[m], m, b, u.strictNullHandling, u.skipNulls, u.encode ? u.encoder : null, u.filter, u.sort, u.allowDots, u.serializeDate, u.format, u.formatter, u.encodeValuesOnly, u.charset, g)); } var v = l.join(u.delimiter), S = !0 === u.addQueryPrefix ? "?" : ""; return u.charsetSentinel && ("iso-8859-1" === u.charset ? S += "utf8=%26%2310003%3B&" : S += "utf8=%E2%9C%93&"), v.length > 0 ? S + v : ""; }; }, 769: (t, e, r)=>{ "use strict"; var o = r(798), n = Object.prototype.hasOwnProperty, i = Array.isArray, a = function() { for(var t = [], e = 0; e < 256; ++e)t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase()); return t; }(), p = function(t, e) { for(var r = e && e.plainObjects ? Object.create(null) : {}, o = 0; o < t.length; ++o)void 0 !== t[o] && (r[o] = t[o]); return r; }; t.exports = { arrayToObject: p, assign: function(t, e) { return Object.keys(e).reduce(function(t, r) { return t[r] = e[r], t; }, t); }, combine: function(t, e) { return [].concat(t, e); }, compact: function(t) { for(var e = [ { obj: { o: t }, prop: "o" } ], r = [], o = 0; o < e.length; ++o)for(var n = e[o], a = n.obj[n.prop], p = Object.keys(a), c = 0; c < p.length; ++c){ var u = p[c], f = a[u]; "object" == typeof f && null !== f && -1 === r.indexOf(f) && (e.push({ obj: a, prop: u }), r.push(f)); } return function(t) { for(; t.length > 1;){ var e = t.pop(), r = e.obj[e.prop]; if (i(r)) { for(var o = [], n = 0; n < r.length; ++n)void 0 !== r[n] && o.push(r[n]); e.obj[e.prop] = o; } } }(e), t; }, decode: function(t, e, r) { var o = t.replace(/\+/g, " "); if ("iso-8859-1" === r) return o.replace(/%[0-9a-f]{2}/gi, unescape); try { return decodeURIComponent(o); } catch (t) { return o; } }, encode: function(t, e, r, n, i) { if (0 === t.length) return t; var p = t; if ("symbol" == typeof t ? p = Symbol.prototype.toString.call(t) : "string" != typeof t && (p = String(t)), "iso-8859-1" === r) return escape(p).replace(/%u[0-9a-f]{4}/gi, function(t) { return "%26%23" + parseInt(t.slice(2), 16) + "%3B"; }); for(var c = "", u = 0; u < p.length; ++u){ var f = p.charCodeAt(u); 45 === f || 46 === f || 95 === f || 126 === f || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || i === o.RFC1738 && (40 === f || 41 === f) ? c += p.charAt(u) : f < 128 ? c += a[f] : f < 2048 ? c += a[192 | f >> 6] + a[128 | 63 & f] : f < 55296 || f >= 57344 ? c += a[224 | f >> 12] + a[128 | f >> 6 & 63] + a[128 | 63 & f] : (u += 1, c += a[240 | (f = 65536 + ((1023 & f) << 10 | 1023 & p.charCodeAt(u))) >> 18] + a[128 | f >> 12 & 63] + a[128 | f >> 6 & 63] + a[128 | 63 & f]); } return c; }, isBuffer: function(t) { return !(!t || "object" != typeof t || !(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t))); }, isRegExp: function(t) { return "[object RegExp]" === Object.prototype.toString.call(t); }, maybeMap: function(t, e) { if (i(t)) { for(var r = [], o = 0; o < t.length; o += 1)r.push(e(t[o])); return r; } return e(t); }, merge: function t(e, r, o) { if (!r) return e; if ("object" != typeof r) { if (i(e)) e.push(r); else { if (!e || "object" != typeof e) return [ e, r ]; (o && (o.plainObjects || o.allowPrototypes) || !n.call(Object.prototype, r)) && (e[r] = !0); } return e; } if (!e || "object" != typeof e) return [ e ].concat(r); var a = e; return i(e) && !i(r) && (a = p(e, o)), i(e) && i(r) ? (r.forEach(function(r, i) { if (n.call(e, i)) { var a = e[i]; a && "object" == typeof a && r && "object" == typeof r ? e[i] = t(a, r, o) : e.push(r); } else e[i] = r; }), e) : Object.keys(r).reduce(function(e, i) { var a = r[i]; return n.call(e, i) ? e[i] = t(e[i], a, o) : e[i] = a, e; }, a); } }; }, 478: (t, e, r)=>{ "use strict"; var o = r(210), n = r(924), i = r(631), a = o("%TypeError%"), p = o("%WeakMap%", !0), c = o("%Map%", !0), u = n("WeakMap.prototype.get", !0), f = n("WeakMap.prototype.set", !0), y = n("WeakMap.prototype.has", !0), l = n("Map.prototype.get", !0), s = n("Map.prototype.set", !0), d = n("Map.prototype.has", !0), b = function(t, e) { for(var r, o = t; null !== (r = o.next); o = r)if (r.key === e) return o.next = r.next, r.next = t.next, t.next = r, r; }; t.exports = function() { var t, e, r, o = { assert: function(t) { if (!o.has(t)) throw new a("Side channel does not contain " + i(t)); }, get: function(o) { if (p && o && ("object" == typeof o || "function" == typeof o)) { if (t) return u(t, o); } else if (c) { if (e) return l(e, o); } else if (r) { var n; return (n = b(r, o)) && n.value; } }, has: function(o) { if (p && o && ("object" == typeof o || "function" == typeof o)) { if (t) return y(t, o); } else if (c) { if (e) return d(e, o); } else if (r) return !!b(r, o); return !1; }, set: function(o, n) { var i, a; p && o && ("object" == typeof o || "function" == typeof o) ? (t || (t = new p), f(t, o, n)) : c ? (e || (e = new c), s(e, o, n)) : (r || (r = { key: {}, next: null }), (a = b(i = r, o)) ? a.value = n : i.next = { key: o, next: i.next, value: n }); } }; return o; }; }, 669: (t)=>{ "use strict"; t.exports = r(9720); } }, e = {}; function o(r) { var n = e[r]; if (void 0 !== n) return n.exports; var i = e[r] = { exports: {} }; return t[r](i, i.exports, o), i.exports; } o.n = (t)=>{ var e = t && t.__esModule ? ()=>t.default : ()=>t; return o.d(e, { a: e }), e; }, o.d = (t, e)=>{ for(var r in e)o.o(e, r) && !o.o(t, r) && Object.defineProperty(t, r, { enumerable: !0, get: e[r] }); }, o.o = (t, e)=>Object.prototype.hasOwnProperty.call(t, e), o.r = (t)=>{ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }); }; var n = {}; return (()=>{ "use strict"; o.r(n), o.d(n, { default: ()=>d }); var t = o(575), e = o.n(t), r = o(205), i = o.n(r), a = o(585), p = o.n(a), c = o(754), u = o.n(c), f = o(729), y = o.n(f), l = o(129), s = o.n(l); const d = new (function(t) { i()(n, t); var r, o = (r = function() { if ("undefined" == typeof Reflect || !Reflect.construct || Reflect.construct.sham) return !1; if ("function" == typeof Proxy) return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0; } catch (t) { return !1; } }(), function() { var t, e = u()(n); return t = r ? Reflect.construct(e, arguments, u()(this).constructor) : e.apply(this, arguments), p()(this, t); }); function n() { var t; return e()(this, n), (t = o.call(this)).ready = !1, console.log(s()), t; } return n; }(y())); })(), n; })(); /***/ }, /***/ 9720: /***/ function(t, e, r) { /* provided dependency */ var o = r(1876).Buffer, n = r(3454); !function() { var e = { 992: function(t) { t.exports = function(t, r, o) { if (t.filter) return t.filter(r, o); if (null == t || "function" != typeof r) throw TypeError(); for(var n = [], i = 0; i < t.length; i++)if (e.call(t, i)) { var a = t[i]; r.call(o, a, i, t) && n.push(a); } return n; }; var e = Object.prototype.hasOwnProperty; }, 256: function(t, e, r) { "use strict"; var o = r(500), n = r(139), i = n(o("String.prototype.indexOf")); t.exports = function(t, e) { var r = o(t, !!e); return "function" == typeof r && i(t, ".prototype.") > -1 ? n(r) : r; }; }, 139: function(t, e, r) { "use strict"; var o = r(174), n = r(500), i = n("%Function.prototype.apply%"), a = n("%Function.prototype.call%"), p = n("%Reflect.apply%", !0) || o.call(a, i), c = n("%Object.getOwnPropertyDescriptor%", !0), u = n("%Object.defineProperty%", !0), f = n("%Math.max%"); if (u) try { u({}, "a", { value: 1 }); } catch (t) { u = null; } t.exports = function(t) { var e = p(o, a, arguments); return c && u && c(e, "length").configurable && u(e, "length", { value: 1 + f(0, t.length - (arguments.length - 1)) }), e; }; var y = function() { return p(o, i, arguments); }; u ? u(t.exports, "apply", { value: y }) : t.exports.apply = y; }, 144: function(t) { var e = Object.prototype.hasOwnProperty, r = Object.prototype.toString; t.exports = function(t, o, n) { if ("[object Function]" !== r.call(o)) throw TypeError("iterator must be a function"); var i = t.length; if (i === +i) for(var a = 0; a < i; a++)o.call(n, t[a], a, t); else for(var p in t)e.call(t, p) && o.call(n, t[p], p, t); }; }, 426: function(t) { "use strict"; var e = Array.prototype.slice, r = Object.prototype.toString; t.exports = function(t) { var o, n = this; if ("function" != typeof n || "[object Function]" !== r.call(n)) throw TypeError("Function.prototype.bind called on incompatible " + n); for(var i = e.call(arguments, 1), a = Math.max(0, n.length - i.length), p = [], c = 0; c < a; c++)p.push("$" + c); if (o = Function("binder", "return function (" + p.join(",") + "){ return binder.apply(this,arguments); }")(function() { if (!(this instanceof o)) return n.apply(t, i.concat(e.call(arguments))); var r = n.apply(this, i.concat(e.call(arguments))); return Object(r) === r ? r : this; }), n.prototype) { var u = function() {}; u.prototype = n.prototype, o.prototype = new u, u.prototype = null; } return o; }; }, 174: function(t, e, r) { "use strict"; var o = r(426); t.exports = Function.prototype.bind || o; }, 500: function(t, e, r) { "use strict"; var o, n = SyntaxError, i = Function, a = TypeError, p = function(t) { try { return i('"use strict"; return (' + t + ").constructor;")(); } catch (t) {} }, c = Object.getOwnPropertyDescriptor; if (c) try { c({}, ""); } catch (t) { c = null; } var u = function() { throw new a; }, f = c ? function() { try { return arguments.callee, u; } catch (t) { try { return c(arguments, "callee").get; } catch (t) { return u; } } }() : u, y = r(115)(), l = Object.getPrototypeOf || function(t) { return t.__proto__; }, s = {}, d = "undefined" == typeof Uint8Array ? o : l(Uint8Array), b = { "%AggregateError%": "undefined" == typeof AggregateError ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? o : ArrayBuffer, "%ArrayIteratorPrototype%": y ? l([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": s, "%AsyncGenerator%": s, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": s, "%Atomics%": "undefined" == typeof Atomics ? o : Atomics, "%BigInt%": "undefined" == typeof BigInt ? o : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? o : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? o : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": s, "%Int8Array%": "undefined" == typeof Int8Array ? o : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? o : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": y ? l(l([][Symbol.iterator]())) : o, "%JSON%": "object" == typeof JSON ? JSON : o, "%Map%": "undefined" == typeof Map ? o : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && y ? l((new Map)[Symbol.iterator]()) : o, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? o : Promise, "%Proxy%": "undefined" == typeof Proxy ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? o : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? o : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && y ? l((new Set)[Symbol.iterator]()) : o, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": y ? l(""[Symbol.iterator]()) : o, "%Symbol%": y ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": f, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": "undefined" == typeof Uint8Array ? o : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? o : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? o : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? o : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? o : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? o : WeakSet }, g = function t(e) { var r; if ("%AsyncFunction%" === e) r = p("async function () {}"); else if ("%GeneratorFunction%" === e) r = p("function* () {}"); else if ("%AsyncGeneratorFunction%" === e) r = p("async function* () {}"); else if ("%AsyncGenerator%" === e) { var o = t("%AsyncGeneratorFunction%"); o && (r = o.prototype); } else if ("%AsyncIteratorPrototype%" === e) { var n = t("%AsyncGenerator%"); n && (r = l(n.prototype)); } return b[e] = r, r; }, h = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype" ], "%ArrayPrototype%": [ "Array", "prototype" ], "%ArrayProto_entries%": [ "Array", "prototype", "entries" ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach" ], "%ArrayProto_keys%": [ "Array", "prototype", "keys" ], "%ArrayProto_values%": [ "Array", "prototype", "values" ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype" ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype" ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype" ], "%BooleanPrototype%": [ "Boolean", "prototype" ], "%DataViewPrototype%": [ "DataView", "prototype" ], "%DatePrototype%": [ "Date", "prototype" ], "%ErrorPrototype%": [ "Error", "prototype" ], "%EvalErrorPrototype%": [ "EvalError", "prototype" ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype" ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype" ], "%FunctionPrototype%": [ "Function", "prototype" ], "%Generator%": [ "GeneratorFunction", "prototype" ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype" ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype" ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype" ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype" ], "%JSONParse%": [ "JSON", "parse" ], "%JSONStringify%": [ "JSON", "stringify" ], "%MapPrototype%": [ "Map", "prototype" ], "%NumberPrototype%": [ "Number", "prototype" ], "%ObjectPrototype%": [ "Object", "prototype" ], "%ObjProto_toString%": [ "Object", "prototype", "toString" ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf" ], "%PromisePrototype%": [ "Promise", "prototype" ], "%PromiseProto_then%": [ "Promise", "prototype", "then" ], "%Promise_all%": [ "Promise", "all" ], "%Promise_reject%": [ "Promise", "reject" ], "%Promise_resolve%": [ "Promise", "resolve" ], "%RangeErrorPrototype%": [ "RangeError", "prototype" ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype" ], "%RegExpPrototype%": [ "RegExp", "prototype" ], "%SetPrototype%": [ "Set", "prototype" ], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype" ], "%StringPrototype%": [ "String", "prototype" ], "%SymbolPrototype%": [ "Symbol", "prototype" ], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype" ], "%TypedArrayPrototype%": [ "TypedArray", "prototype" ], "%TypeErrorPrototype%": [ "TypeError", "prototype" ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype" ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype" ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype" ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype" ], "%URIErrorPrototype%": [ "URIError", "prototype" ], "%WeakMapPrototype%": [ "WeakMap", "prototype" ], "%WeakSetPrototype%": [ "WeakSet", "prototype" ] }, m = r(174), v = r(101), S = m.call(Function.call, Array.prototype.concat), A = m.call(Function.apply, Array.prototype.splice), O = m.call(Function.call, String.prototype.replace), j = m.call(Function.call, String.prototype.slice), P = m.call(Function.call, RegExp.prototype.exec), x = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, w = /\\(\\)?/g, E = function(t) { var e = j(t, 0, 1), r = j(t, -1); if ("%" === e && "%" !== r) throw new n("invalid intrinsic syntax, expected closing `%`"); if ("%" === r && "%" !== e) throw new n("invalid intrinsic syntax, expected opening `%`"); var o = []; return O(t, x, function(t, e, r, n) { o[o.length] = r ? O(n, w, "$1") : e || t; }), o; }, F = function(t, e) { var r, o = t; if (v(h, o) && (o = "%" + (r = h[o])[0] + "%"), v(b, o)) { var i = b[o]; if (i === s && (i = g(o)), void 0 === i && !e) throw new a("intrinsic " + t + " exists, but is not available. Please file an issue!"); return { alias: r, name: o, value: i }; } throw new n("intrinsic " + t + " does not exist!"); }; t.exports = function(t, e) { if ("string" != typeof t || 0 === t.length) throw new a("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" != typeof e) throw new a('"allowMissing" argument must be a boolean'); if (null === P(/^%?[^%]*%?$/g, t)) throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); var r = E(t), o = r.length > 0 ? r[0] : "", i = F("%" + o + "%", e), p = i.name, u = i.value, f = !1, y = i.alias; y && (o = y[0], A(r, S([ 0, 1 ], y))); for(var l = 1, s = !0; l < r.length; l += 1){ var d = r[l], g = j(d, 0, 1), h = j(d, -1); if (('"' === g || "'" === g || "`" === g || '"' === h || "'" === h || "`" === h) && g !== h) throw new n("property names with quotes must have matching quotes"); if ("constructor" !== d && s || (f = !0), o += "." + d, v(b, p = "%" + o + "%")) u = b[p]; else if (null != u) { if (!(d in u)) { if (!e) throw new a("base intrinsic for " + t + " exists, but the property is not available."); return; } if (c && l + 1 >= r.length) { var m = c(u, d); u = (s = !!m) && "get" in m && !("originalValue" in m.get) ? m.get : u[d]; } else s = v(u, d), u = u[d]; s && !f && (b[p] = u); } } return u; }; }, 942: function(t, e, r) { "use strict"; var o = "undefined" != typeof Symbol && Symbol, n = r(773); t.exports = function() { return "function" == typeof o && "function" == typeof Symbol && "symbol" == typeof o("foo") && "symbol" == typeof Symbol("bar") && n(); }; }, 773: function(t) { "use strict"; t.exports = function() { if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) return !1; if ("symbol" == typeof Symbol.iterator) return !0; var t = {}, e = Symbol("test"), r = Object(e); if ("string" == typeof e || "[object Symbol]" !== Object.prototype.toString.call(e) || "[object Symbol]" !== Object.prototype.toString.call(r)) return !1; for(e in t[e] = 42, t)return !1; if ("function" == typeof Object.keys && 0 !== Object.keys(t).length || "function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(t).length) return !1; var o = Object.getOwnPropertySymbols(t); if (1 !== o.length || o[0] !== e || !Object.prototype.propertyIsEnumerable.call(t, e)) return !1; if ("function" == typeof Object.getOwnPropertyDescriptor) { var n = Object.getOwnPropertyDescriptor(t, e); if (42 !== n.value || !0 !== n.enumerable) return !1; } return !0; }; }, 115: function(t, e, r) { "use strict"; var o = "undefined" != typeof Symbol && Symbol, n = r(832); t.exports = function() { return "function" == typeof o && "function" == typeof Symbol && "symbol" == typeof o("foo") && "symbol" == typeof Symbol("bar") && n(); }; }, 832: function(t) { "use strict"; t.exports = function() { if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) return !1; if ("symbol" == typeof Symbol.iterator) return !0; var t = {}, e = Symbol("test"), r = Object(e); if ("string" == typeof e || "[object Symbol]" !== Object.prototype.toString.call(e) || "[object Symbol]" !== Object.prototype.toString.call(r)) return !1; for(e in t[e] = 42, t)return !1; if ("function" == typeof Object.keys && 0 !== Object.keys(t).length || "function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(t).length) return !1; var o = Object.getOwnPropertySymbols(t); if (1 !== o.length || o[0] !== e || !Object.prototype.propertyIsEnumerable.call(t, e)) return !1; if ("function" == typeof Object.getOwnPropertyDescriptor) { var n = Object.getOwnPropertyDescriptor(t, e); if (42 !== n.value || !0 !== n.enumerable) return !1; } return !0; }; }, 101: function(t, e, r) { "use strict"; t.exports = r(174).call(Function.call, Object.prototype.hasOwnProperty); }, 782: function(t) { "function" == typeof Object.create ? t.exports = function(t, e) { e && (t.super_ = e, t.prototype = Object.create(e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } })); } : t.exports = function(t, e) { if (e) { t.super_ = e; var r = function() {}; r.prototype = e.prototype, t.prototype = new r, t.prototype.constructor = t; } }; }, 157: function(t) { "use strict"; var e = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag, r = Object.prototype.toString, o = function(t) { return (!e || !t || "object" != typeof t || !(Symbol.toStringTag in t)) && "[object Arguments]" === r.call(t); }, n = function(t) { return !!o(t) || null !== t && "object" == typeof t && "number" == typeof t.length && t.length >= 0 && "[object Array]" !== r.call(t) && "[object Function]" === r.call(t.callee); }, i = function() { return o(arguments); }(); o.isLegacyArguments = n, t.exports = i ? o : n; }, 391: function(t) { "use strict"; var e = Object.prototype.toString, r = Function.prototype.toString, o = /^\s*(?:function)?\*/, n = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag, i = Object.getPrototypeOf, a = function() { if (!n) return !1; try { return Function("return function*() {}")(); } catch (t) {} }(), p = a ? i(a) : {}; t.exports = function(t) { return "function" == typeof t && (!!o.test(r.call(t)) || (n ? i(t) === p : "[object GeneratorFunction]" === e.call(t))); }; }, 994: function(t, e, o) { "use strict"; var n = o(144), i = o(349), a = o(256), p = a("Object.prototype.toString"), c = o(942)() && "symbol" == typeof Symbol.toStringTag, u = i(), f = a("Array.prototype.indexOf", !0) || function(t, e) { for(var r = 0; r < t.length; r += 1)if (t[r] === e) return r; return -1; }, y = a("String.prototype.slice"), l = {}, s = o(466), d = Object.getPrototypeOf; c && s && d && n(u, function(t) { var e = new r.g[t]; if (!(Symbol.toStringTag in e)) throw EvalError("this engine has support for Symbol.toStringTag, but " + t + " does not have the property! Please report this."); var o = d(e), n = s(o, Symbol.toStringTag); n || (n = s(d(o), Symbol.toStringTag)), l[t] = n.get; }); var b = function(t) { var e = !1; return n(l, function(r, o) { if (!e) try { e = r.call(t) === o; } catch (t) {} }), e; }; t.exports = function(t) { return !!t && "object" == typeof t && (c ? !!s && b(t) : f(u, y(p(t), 8, -1)) > -1); }; }, 369: function(t) { t.exports = function(t) { return t instanceof o; }; }, 584: function(t, e, r) { "use strict"; var o = r(157), n = r(391), i = r(490), a = r(994); function p(t) { return t.call.bind(t); } var c = "undefined" != typeof BigInt, u = "undefined" != typeof Symbol, f = p(Object.prototype.toString), y = p(Number.prototype.valueOf), l = p(String.prototype.valueOf), s = p(Boolean.prototype.valueOf); if (c) var d = p(BigInt.prototype.valueOf); if (u) var b = p(Symbol.prototype.valueOf); function g(t, e) { if ("object" != typeof t) return !1; try { return e(t), !0; } catch (t) { return !1; } } function h(t) { return "[object Map]" === f(t); } function m(t) { return "[object Set]" === f(t); } function v(t) { return "[object WeakMap]" === f(t); } function S(t) { return "[object WeakSet]" === f(t); } function A(t) { return "[object ArrayBuffer]" === f(t); } function O(t) { return "undefined" != typeof ArrayBuffer && (A.working ? A(t) : t instanceof ArrayBuffer); } function j(t) { return "[object DataView]" === f(t); } function P(t) { return "undefined" != typeof DataView && (j.working ? j(t) : t instanceof DataView); } e.isArgumentsObject = o, e.isGeneratorFunction = n, e.isTypedArray = a, e.isPromise = function(t) { return "undefined" != typeof Promise && t instanceof Promise || null !== t && "object" == typeof t && "function" == typeof t.then && "function" == typeof t.catch; }, e.isArrayBufferView = function(t) { return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(t) : a(t) || P(t); }, e.isUint8Array = function(t) { return "Uint8Array" === i(t); }, e.isUint8ClampedArray = function(t) { return "Uint8ClampedArray" === i(t); }, e.isUint16Array = function(t) { return "Uint16Array" === i(t); }, e.isUint32Array = function(t) { return "Uint32Array" === i(t); }, e.isInt8Array = function(t) { return "Int8Array" === i(t); }, e.isInt16Array = function(t) { return "Int16Array" === i(t); }, e.isInt32Array = function(t) { return "Int32Array" === i(t); }, e.isFloat32Array = function(t) { return "Float32Array" === i(t); }, e.isFloat64Array = function(t) { return "Float64Array" === i(t); }, e.isBigInt64Array = function(t) { return "BigInt64Array" === i(t); }, e.isBigUint64Array = function(t) { return "BigUint64Array" === i(t); }, h.working = "undefined" != typeof Map && h(new Map), e.isMap = function(t) { return "undefined" != typeof Map && (h.working ? h(t) : t instanceof Map); }, m.working = "undefined" != typeof Set && m(new Set), e.isSet = function(t) { return "undefined" != typeof Set && (m.working ? m(t) : t instanceof Set); }, v.working = "undefined" != typeof WeakMap && v(new WeakMap), e.isWeakMap = function(t) { return "undefined" != typeof WeakMap && (v.working ? v(t) : t instanceof WeakMap); }, S.working = "undefined" != typeof WeakSet && S(new WeakSet), e.isWeakSet = function(t) { return S(t); }, A.working = "undefined" != typeof ArrayBuffer && A(new ArrayBuffer), e.isArrayBuffer = O, j.working = "undefined" != typeof ArrayBuffer && "undefined" != typeof DataView && j(new DataView(new ArrayBuffer(1), 0, 1)), e.isDataView = P; var x = "undefined" != typeof SharedArrayBuffer ? SharedArrayBuffer : void 0; function w(t) { return "[object SharedArrayBuffer]" === f(t); } function E(t) { return void 0 !== x && (void 0 === w.working && (w.working = w(new x)), w.working ? w(t) : t instanceof x); } function F(t) { return g(t, y); } function I(t) { return g(t, l); } function k(t) { return g(t, s); } function _(t) { return c && g(t, d); } function R(t) { return u && g(t, b); } e.isSharedArrayBuffer = E, e.isAsyncFunction = function(t) { return "[object AsyncFunction]" === f(t); }, e.isMapIterator = function(t) { return "[object Map Iterator]" === f(t); }, e.isSetIterator = function(t) { return "[object Set Iterator]" === f(t); }, e.isGeneratorObject = function(t) { return "[object Generator]" === f(t); }, e.isWebAssemblyCompiledModule = function(t) { return "[object WebAssembly.Module]" === f(t); }, e.isNumberObject = F, e.isStringObject = I, e.isBooleanObject = k, e.isBigIntObject = _, e.isSymbolObject = R, e.isBoxedPrimitive = function(t) { return F(t) || I(t) || k(t) || _(t) || R(t); }, e.isAnyArrayBuffer = function(t) { return "undefined" != typeof Uint8Array && (O(t) || E(t)); }, [ "isProxy", "isExternal", "isModuleNamespaceObject" ].forEach(function(t) { Object.defineProperty(e, t, { enumerable: !1, value: function() { throw Error(t + " is not supported in userland"); } }); }); }, 177: function(t, e, r) { var o = Object.getOwnPropertyDescriptors || function(t) { for(var e = Object.keys(t), r = {}, o = 0; o < e.length; o++)r[e[o]] = Object.getOwnPropertyDescriptor(t, e[o]); return r; }, i = /%[sdj%]/g; e.format = function(t) { if (!v(t)) { for(var e = [], r = 0; r < arguments.length; r++)e.push(u(arguments[r])); return e.join(" "); } for(var r = 1, o = arguments, n = o.length, a = String(t).replace(i, function(t) { if ("%%" === t) return "%"; if (r >= n) return t; switch(t){ case "%s": return String(o[r++]); case "%d": return Number(o[r++]); case "%j": try { return JSON.stringify(o[r++]); } catch (t) { return "[Circular]"; } default: return t; } }), p = o[r]; r < n; p = o[++r])h(p) || !O(p) ? a += " " + p : a += " " + u(p); return a; }, e.deprecate = function(t, r) { if (void 0 !== n && !0 === n.noDeprecation) return t; if (void 0 === n) return function() { return e.deprecate(t, r).apply(this, arguments); }; var o = !1; return function() { if (!o) { if (n.throwDeprecation) throw Error(r); n.traceDeprecation ? console.trace(r) : console.error(r), o = !0; } return t.apply(this, arguments); }; }; var a = {}, p = /^$/; if (n.env.NODE_DEBUG) { var c = n.env.NODE_DEBUG; p = RegExp("^" + (c = c.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase()) + "$", "i"); } function u(t, r) { var o = { seen: [], stylize: y }; return arguments.length >= 3 && (o.depth = arguments[2]), arguments.length >= 4 && (o.colors = arguments[3]), g(r) ? o.showHidden = r : r && e._extend(o, r), S(o.showHidden) && (o.showHidden = !1), S(o.depth) && (o.depth = 2), S(o.colors) && (o.colors = !1), S(o.customInspect) && (o.customInspect = !0), o.colors && (o.stylize = f), l(o, t, o.depth); } function f(t, e) { var r = u.styles[e]; return r ? "[" + u.colors[r][0] + "m" + t + "[" + u.colors[r][1] + "m" : t; } function y(t, e) { return t; } function l(t, r, o) { if (t.customInspect && r && x(r.inspect) && r.inspect !== e.inspect && !(r.constructor && r.constructor.prototype === r)) { var n, i, a, p, c, u = r.inspect(o, t); return v(u) || (u = l(t, u, o)), u; } var f = function(t, e) { if (S(e)) return t.stylize("undefined", "undefined"); if (v(e)) { var r = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; return t.stylize(r, "string"); } return m(e) ? t.stylize("" + e, "number") : g(e) ? t.stylize("" + e, "boolean") : h(e) ? t.stylize("null", "null") : void 0; }(t, r); if (f) return f; var y = Object.keys(r), O = (p = {}, y.forEach(function(t, e) { p[t] = !0; }), p); if (t.showHidden && (y = Object.getOwnPropertyNames(r)), P(r) && (y.indexOf("message") >= 0 || y.indexOf("description") >= 0)) return s(r); if (0 === y.length) { if (x(r)) { var w = r.name ? ": " + r.name : ""; return t.stylize("[Function" + w + "]", "special"); } if (A(r)) return t.stylize(RegExp.prototype.toString.call(r), "regexp"); if (j(r)) return t.stylize(Date.prototype.toString.call(r), "date"); if (P(r)) return s(r); } var E = "", F = !1, k = [ "{", "}" ]; return (b(r) && (F = !0, k = [ "[", "]" ]), x(r) && (E = " [Function" + (r.name ? ": " + r.name : "") + "]"), A(r) && (E = " " + RegExp.prototype.toString.call(r)), j(r) && (E = " " + Date.prototype.toUTCString.call(r)), P(r) && (E = " " + s(r)), 0 !== y.length || F && 0 != r.length) ? o < 0 ? A(r) ? t.stylize(RegExp.prototype.toString.call(r), "regexp") : t.stylize("[Object]", "special") : (t.seen.push(r), c = F ? function(t, e, r, o, n) { for(var i = [], a = 0, p = e.length; a < p; ++a)I(e, String(a)) ? i.push(d(t, e, r, o, String(a), !0)) : i.push(""); return n.forEach(function(n) { n.match(/^\d+$/) || i.push(d(t, e, r, o, n, !0)); }), i; }(t, r, o, O, y) : y.map(function(e) { return d(t, r, o, O, e, F); }), t.seen.pop(), n = E, i = k, a = 0, c.reduce(function(t, e) { return a++, e.indexOf("\n") >= 0 && a++, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1; }, 0) > 60 ? i[0] + ("" === n ? "" : n + "\n ") + " " + c.join(",\n ") + " " + i[1] : i[0] + n + " " + c.join(", ") + " " + i[1]) : k[0] + E + k[1]; } function s(t) { return "[" + Error.prototype.toString.call(t) + "]"; } function d(t, e, r, o, n, i) { var a, p, c; if ((c = Object.getOwnPropertyDescriptor(e, n) || { value: e[n] }).get ? p = c.set ? t.stylize("[Getter/Setter]", "special") : t.stylize("[Getter]", "special") : c.set && (p = t.stylize("[Setter]", "special")), I(o, n) || (a = "[" + n + "]"), !p && (0 > t.seen.indexOf(c.value) ? (p = h(r) ? l(t, c.value, null) : l(t, c.value, r - 1)).indexOf("\n") > -1 && (p = i ? p.split("\n").map(function(t) { return " " + t; }).join("\n").substr(2) : "\n" + p.split("\n").map(function(t) { return " " + t; }).join("\n")) : p = t.stylize("[Circular]", "special")), S(a)) { if (i && n.match(/^\d+$/)) return p; (a = JSON.stringify("" + n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (a = a.substr(1, a.length - 2), a = t.stylize(a, "name")) : (a = a.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), a = t.stylize(a, "string")); } return a + ": " + p; } function b(t) { return Array.isArray(t); } function g(t) { return "boolean" == typeof t; } function h(t) { return null === t; } function m(t) { return "number" == typeof t; } function v(t) { return "string" == typeof t; } function S(t) { return void 0 === t; } function A(t) { return O(t) && "[object RegExp]" === w(t); } function O(t) { return "object" == typeof t && null !== t; } function j(t) { return O(t) && "[object Date]" === w(t); } function P(t) { return O(t) && ("[object Error]" === w(t) || t instanceof Error); } function x(t) { return "function" == typeof t; } function w(t) { return Object.prototype.toString.call(t); } function E(t) { return t < 10 ? "0" + t.toString(10) : t.toString(10); } e.debuglog = function(t) { if (!a[t = t.toUpperCase()]) { if (p.test(t)) { var r = n.pid; a[t] = function() { var o = e.format.apply(e, arguments); console.error("%s %d: %s", t, r, o); }; } else a[t] = function() {}; } return a[t]; }, e.inspect = u, u.colors = { bold: [ 1, 22 ], italic: [ 3, 23 ], underline: [ 4, 24 ], inverse: [ 7, 27 ], white: [ 37, 39 ], grey: [ 90, 39 ], black: [ 30, 39 ], blue: [ 34, 39 ], cyan: [ 36, 39 ], green: [ 32, 39 ], magenta: [ 35, 39 ], red: [ 31, 39 ], yellow: [ 33, 39 ] }, u.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, e.types = r(584), e.isArray = b, e.isBoolean = g, e.isNull = h, e.isNullOrUndefined = function(t) { return null == t; }, e.isNumber = m, e.isString = v, e.isSymbol = function(t) { return "symbol" == typeof t; }, e.isUndefined = S, e.isRegExp = A, e.types.isRegExp = A, e.isObject = O, e.isDate = j, e.types.isDate = j, e.isError = P, e.types.isNativeError = P, e.isFunction = x, e.isPrimitive = function(t) { return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t; }, e.isBuffer = r(369); var F = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]; function I(t, e) { return Object.prototype.hasOwnProperty.call(t, e); } e.log = function() { var t, r; console.log("%s - %s", (r = [ E((t = new Date).getHours()), E(t.getMinutes()), E(t.getSeconds()) ].join(":"), [ t.getDate(), F[t.getMonth()], r ].join(" ")), e.format.apply(e, arguments)); }, e.inherits = r(782), e._extend = function(t, e) { if (!e || !O(e)) return t; for(var r = Object.keys(e), o = r.length; o--;)t[r[o]] = e[r[o]]; return t; }; var k = "undefined" != typeof Symbol ? Symbol("util.promisify.custom") : void 0; function _(t, e) { if (!t) { var r = Error("Promise was rejected with a falsy value"); r.reason = t, t = r; } return e(t); } e.promisify = function(t) { if ("function" != typeof t) throw TypeError('The "original" argument must be of type Function'); if (k && t[k]) { var e = t[k]; if ("function" != typeof e) throw TypeError('The "util.promisify.custom" argument must be of type Function'); return Object.defineProperty(e, k, { value: e, enumerable: !1, writable: !1, configurable: !0 }), e; } function e() { for(var e, r, o = new Promise(function(t, o) { e = t, r = o; }), n = [], i = 0; i < arguments.length; i++)n.push(arguments[i]); n.push(function(t, o) { t ? r(t) : e(o); }); try { t.apply(this, n); } catch (t) { r(t); } return o; } return Object.setPrototypeOf(e, Object.getPrototypeOf(t)), k && Object.defineProperty(e, k, { value: e, enumerable: !1, writable: !1, configurable: !0 }), Object.defineProperties(e, o(t)); }, e.promisify.custom = k, e.callbackify = function(t) { if ("function" != typeof t) throw TypeError('The "original" argument must be of type Function'); function e() { for(var e = [], r = 0; r < arguments.length; r++)e.push(arguments[r]); var o = e.pop(); if ("function" != typeof o) throw TypeError("The last argument must be of type Function"); var i = this, a = function() { return o.apply(i, arguments); }; t.apply(this, e).then(function(t) { n.nextTick(a.bind(null, null, t)); }, function(t) { n.nextTick(_.bind(null, t, a)); }); } return Object.setPrototypeOf(e, Object.getPrototypeOf(t)), Object.defineProperties(e, o(t)), e; }; }, 490: function(t, e, o) { "use strict"; var n = o(144), i = o(349), a = o(256), p = a("Object.prototype.toString"), c = o(942)() && "symbol" == typeof Symbol.toStringTag, u = i(), f = a("String.prototype.slice"), y = {}, l = o(466), s = Object.getPrototypeOf; c && l && s && n(u, function(t) { if ("function" == typeof r.g[t]) { var e = new r.g[t]; if (!(Symbol.toStringTag in e)) throw EvalError("this engine has support for Symbol.toStringTag, but " + t + " does not have the property! Please report this."); var o = s(e), n = l(o, Symbol.toStringTag); n || (n = l(s(o), Symbol.toStringTag)), y[t] = n.get; } }); var d = function(t) { var e = !1; return n(y, function(r, o) { if (!e) try { var n = r.call(t); n === o && (e = n); } catch (t) {} }), e; }, b = o(994); t.exports = function(t) { return !!b(t) && (c ? d(t) : f(p(t), 8, -1)); }; }, 349: function(t, e, o) { "use strict"; var n = o(992); t.exports = function() { return n([ "BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray" ], function(t) { return "function" == typeof r.g[t]; }); }; }, 466: function(t, e, r) { "use strict"; var o = r(500)("%Object.getOwnPropertyDescriptor%", !0); if (o) try { o([], "length"); } catch (t) { o = null; } t.exports = o; } }, i = {}; function a(t) { var r = i[t]; if (void 0 !== r) return r.exports; var o = i[t] = { exports: {} }, n = !0; try { e[t](o, o.exports, a), n = !1; } finally{ n && delete i[t]; } return o.exports; } a.ab = "//", t.exports = a(177); }(); /***/ }, /***/ 1664: /***/ function(t, e, r) { t.exports = r(8418); /***/ } } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/feedback-regex/input.js
JavaScript
export const rtlRegEx = new RegExp( /* eslint-disable prettier/prettier */ '[' + String.fromCharCode(0x00591) + '-' + String.fromCharCode(0x008ff) + String.fromCharCode(0x0fb1d) + '-' + String.fromCharCode(0x0fdff) + String.fromCharCode(0x0fe70) + '-' + String.fromCharCode(0x0fefc) + String.fromCharCode(0x10800) + '-' + String.fromCharCode(0x10fff) + String.fromCharCode(0x1e800) + '-' + String.fromCharCode(0x1efff) + ']' /* eslint-enable prettier/prettier */ );
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/feedback-regex/output.js
JavaScript
export const rtlRegEx = RegExp(/* eslint-disable prettier/prettier */ '[' + String.fromCharCode(0x00591) + '-' + String.fromCharCode(0x008ff) + String.fromCharCode(0x0fb1d) + '-' + String.fromCharCode(0x0fdff) + String.fromCharCode(0x0fe70) + '-' + String.fromCharCode(0x0fefc) + String.fromCharCode(0x10800) + '-' + String.fromCharCode(0x10fff) + String.fromCharCode(0x1e800) + '-' + String.fromCharCode(0x1efff) + ']');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/feedback-util-promisify/chunks/pages/_app-72ad41192608e93a/input.js
JavaScript
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ [888], { /***/ 3454: /***/ function (module, __unused_webpack_exports, __webpack_require__) { "use strict"; var ref, ref1; module.exports = ((ref = __webpack_require__.g.process) === null || ref === void 0 ? void 0 : ref.env) && typeof ((ref1 = __webpack_require__.g.process) === null || ref1 === void 0 ? void 0 : ref1.env) === "object" ? __webpack_require__.g.process : __webpack_require__(7663); //# sourceMappingURL=process.js.map /***/ }, /***/ 1780: /***/ function ( __unused_webpack_module, __unused_webpack_exports, __webpack_require__ ) { (window.__NEXT_P = window.__NEXT_P || []).push([ "/_app", function () { return __webpack_require__(8484); }, ]); if (false) { } /***/ }, /***/ 8484: /***/ function ( __unused_webpack_module, __webpack_exports__, __webpack_require__ ) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4051); /* harmony import */ var _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n( _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__ ); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5893); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7294); /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9720); /* harmony import */ var util__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n( util__WEBPACK_IMPORTED_MODULE_3__ ); /* harmony import */ var _styles_globals_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6774); /* harmony import */ var _styles_globals_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n( _styles_globals_css__WEBPACK_IMPORTED_MODULE_4__ ); function asyncGeneratorStep( gen, resolve, reject, _next, _throw, key, arg ) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep( gen, resolve, reject, _next, _throw, "next", value ); } function _throw(err) { asyncGeneratorStep( gen, resolve, reject, _next, _throw, "throw", err ); } _next(undefined); }); }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true, }); } else { obj[key] = value; } return obj; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if ( typeof Object.getOwnPropertySymbols === "function" ) { ownKeys = ownKeys.concat( Object.getOwnPropertySymbols(source).filter( function (sym) { return Object.getOwnPropertyDescriptor( source, sym ).enumerable; } ) ); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } var initBranch = (function () { var _ref = _asyncToGenerator( _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark( function _callee() { return _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().wrap( function _callee$(_ctx) { while (1) switch ((_ctx.prev = _ctx.next)) { case 0: try { // load Branch (function ( b, r, a, n, c, h, _, s, d, k ) { if ( !b[n] || !b[n]._q ) { for ( ; s < _.length; ) c( h, _[s++] ); d = r.createElement( a ); d.async = 1; d.src = "https://cdn.branch.io/branch-latest.min.js"; k = r.getElementsByTagName( a )[0]; k.parentNode.insertBefore( d, k ); b[n] = h; } })( window, document, "script", "branch", function (b, r) { b[r] = function () { b._q.push( [ r, arguments, ] ); }; }, { _q: [], _v: 1, }, "addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent logEvent disableTracking".split( " " ), 0 ); window.branch.initAsync = util__WEBPACK_IMPORTED_MODULE_3___default().promisify( window.branch .init ); // const branchData = await window.branch.initAsync('key_live_YOUR_KEY_GOES_HERE'); // return branchData; } catch (error) { console.error(error); } case 1: case "end": return _ctx.stop(); } }, _callee ); } ) ); return function initBranch() { return _ref.apply(this, arguments); }; })(); function MyApp(param) { var Component = param.Component, pageProps = param.pageProps; (0, react__WEBPACK_IMPORTED_MODULE_2__.useEffect)( function () { initBranch(); }, [] ); return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)( Component, _objectSpread({}, pageProps) ); } /* harmony default export */ __webpack_exports__["default"] = MyApp; /***/ }, /***/ 1876: /***/ function (module) { var __dirname = "/"; (function () { var e = { 991: function (e, r) { "use strict"; r.byteLength = byteLength; r.toByteArray = toByteArray; r.fromByteArray = fromByteArray; var t = []; var f = []; var n = typeof Uint8Array !== "undefined" ? Uint8Array : Array; var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; for (var o = 0, u = i.length; o < u; ++o) { t[o] = i[o]; f[i.charCodeAt(o)] = o; } f["-".charCodeAt(0)] = 62; f["_".charCodeAt(0)] = 63; function getLens(e) { var r = e.length; if (r % 4 > 0) { throw new Error( "Invalid string. Length must be a multiple of 4" ); } var t = e.indexOf("="); if (t === -1) t = r; var f = t === r ? 0 : 4 - (t % 4); return [t, f]; } function byteLength(e) { var r = getLens(e); var t = r[0]; var f = r[1]; return ((t + f) * 3) / 4 - f; } function _byteLength(e, r, t) { return ((r + t) * 3) / 4 - t; } function toByteArray(e) { var r; var t = getLens(e); var i = t[0]; var o = t[1]; var u = new n(_byteLength(e, i, o)); var a = 0; var s = o > 0 ? i - 4 : i; var h; for (h = 0; h < s; h += 4) { r = (f[e.charCodeAt(h)] << 18) | (f[e.charCodeAt(h + 1)] << 12) | (f[e.charCodeAt(h + 2)] << 6) | f[e.charCodeAt(h + 3)]; u[a++] = (r >> 16) & 255; u[a++] = (r >> 8) & 255; u[a++] = r & 255; } if (o === 2) { r = (f[e.charCodeAt(h)] << 2) | (f[e.charCodeAt(h + 1)] >> 4); u[a++] = r & 255; } if (o === 1) { r = (f[e.charCodeAt(h)] << 10) | (f[e.charCodeAt(h + 1)] << 4) | (f[e.charCodeAt(h + 2)] >> 2); u[a++] = (r >> 8) & 255; u[a++] = r & 255; } return u; } function tripletToBase64(e) { return ( t[(e >> 18) & 63] + t[(e >> 12) & 63] + t[(e >> 6) & 63] + t[e & 63] ); } function encodeChunk(e, r, t) { var f; var n = []; for (var i = r; i < t; i += 3) { f = ((e[i] << 16) & 16711680) + ((e[i + 1] << 8) & 65280) + (e[i + 2] & 255); n.push(tripletToBase64(f)); } return n.join(""); } function fromByteArray(e) { var r; var f = e.length; var n = f % 3; var i = []; var o = 16383; for (var u = 0, a = f - n; u < a; u += o) { i.push( encodeChunk(e, u, u + o > a ? a : u + o) ); } if (n === 1) { r = e[f - 1]; i.push(t[r >> 2] + t[(r << 4) & 63] + "=="); } else if (n === 2) { r = (e[f - 2] << 8) + e[f - 1]; i.push( t[r >> 10] + t[(r >> 4) & 63] + t[(r << 2) & 63] + "=" ); } return i.join(""); } }, 293: function (e, r, t) { "use strict"; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ var f = t(991); var n = t(759); var i = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("nodejs.util.inspect.custom") : null; r.Buffer = Buffer; r.SlowBuffer = SlowBuffer; r.INSPECT_MAX_BYTES = 50; var o = 2147483647; r.kMaxLength = o; Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport(); if ( !Buffer.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function" ) { console.error( "This browser lacks typed array (Uint8Array) support which is required by " + "`buffer` v5.x. Use `buffer` v4.x if you require old browser support." ); } function typedArraySupport() { try { var e = new Uint8Array(1); var r = { foo: function () { return 42; }, }; Object.setPrototypeOf( r, Uint8Array.prototype ); Object.setPrototypeOf(e, r); return e.foo() === 42; } catch (e) { return false; } } Object.defineProperty(Buffer.prototype, "parent", { enumerable: true, get: function () { if (!Buffer.isBuffer(this)) return undefined; return this.buffer; }, }); Object.defineProperty(Buffer.prototype, "offset", { enumerable: true, get: function () { if (!Buffer.isBuffer(this)) return undefined; return this.byteOffset; }, }); function createBuffer(e) { if (e > o) { throw new RangeError( 'The value "' + e + '" is invalid for option "size"' ); } var r = new Uint8Array(e); Object.setPrototypeOf(r, Buffer.prototype); return r; } function Buffer(e, r, t) { if (typeof e === "number") { if (typeof r === "string") { throw new TypeError( 'The "string" argument must be of type string. Received type number' ); } return allocUnsafe(e); } return from(e, r, t); } Buffer.poolSize = 8192; function from(e, r, t) { if (typeof e === "string") { return fromString(e, r); } if (ArrayBuffer.isView(e)) { return fromArrayLike(e); } if (e == null) { throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, " + "or Array-like Object. Received type " + typeof e ); } if ( isInstance(e, ArrayBuffer) || (e && isInstance(e.buffer, ArrayBuffer)) ) { return fromArrayBuffer(e, r, t); } if ( typeof SharedArrayBuffer !== "undefined" && (isInstance(e, SharedArrayBuffer) || (e && isInstance( e.buffer, SharedArrayBuffer ))) ) { return fromArrayBuffer(e, r, t); } if (typeof e === "number") { throw new TypeError( 'The "value" argument must not be of type number. Received type number' ); } var f = e.valueOf && e.valueOf(); if (f != null && f !== e) { return Buffer.from(f, r, t); } var n = fromObject(e); if (n) return n; if ( typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof e[Symbol.toPrimitive] === "function" ) { return Buffer.from( e[Symbol.toPrimitive]("string"), r, t ); } throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, " + "or Array-like Object. Received type " + typeof e ); } Buffer.from = function (e, r, t) { return from(e, r, t); }; Object.setPrototypeOf( Buffer.prototype, Uint8Array.prototype ); Object.setPrototypeOf(Buffer, Uint8Array); function assertSize(e) { if (typeof e !== "number") { throw new TypeError( '"size" argument must be of type number' ); } else if (e < 0) { throw new RangeError( 'The value "' + e + '" is invalid for option "size"' ); } } function alloc(e, r, t) { assertSize(e); if (e <= 0) { return createBuffer(e); } if (r !== undefined) { return typeof t === "string" ? createBuffer(e).fill(r, t) : createBuffer(e).fill(r); } return createBuffer(e); } Buffer.alloc = function (e, r, t) { return alloc(e, r, t); }; function allocUnsafe(e) { assertSize(e); return createBuffer(e < 0 ? 0 : checked(e) | 0); } Buffer.allocUnsafe = function (e) { return allocUnsafe(e); }; Buffer.allocUnsafeSlow = function (e) { return allocUnsafe(e); }; function fromString(e, r) { if (typeof r !== "string" || r === "") { r = "utf8"; } if (!Buffer.isEncoding(r)) { throw new TypeError( "Unknown encoding: " + r ); } var t = byteLength(e, r) | 0; var f = createBuffer(t); var n = f.write(e, r); if (n !== t) { f = f.slice(0, n); } return f; } function fromArrayLike(e) { var r = e.length < 0 ? 0 : checked(e.length) | 0; var t = createBuffer(r); for (var f = 0; f < r; f += 1) { t[f] = e[f] & 255; } return t; } function fromArrayBuffer(e, r, t) { if (r < 0 || e.byteLength < r) { throw new RangeError( '"offset" is outside of buffer bounds' ); } if (e.byteLength < r + (t || 0)) { throw new RangeError( '"length" is outside of buffer bounds' ); } var f; if (r === undefined && t === undefined) { f = new Uint8Array(e); } else if (t === undefined) { f = new Uint8Array(e, r); } else { f = new Uint8Array(e, r, t); } Object.setPrototypeOf(f, Buffer.prototype); return f; } function fromObject(e) { if (Buffer.isBuffer(e)) { var r = checked(e.length) | 0; var t = createBuffer(r); if (t.length === 0) { return t; } e.copy(t, 0, 0, r); return t; } if (e.length !== undefined) { if ( typeof e.length !== "number" || numberIsNaN(e.length) ) { return createBuffer(0); } return fromArrayLike(e); } if ( e.type === "Buffer" && Array.isArray(e.data) ) { return fromArrayLike(e.data); } } function checked(e) { if (e >= o) { throw new RangeError( "Attempt to allocate Buffer larger than maximum " + "size: 0x" + o.toString(16) + " bytes" ); } return e | 0; } function SlowBuffer(e) { if (+e != e) { e = 0; } return Buffer.alloc(+e); } Buffer.isBuffer = function isBuffer(e) { return ( e != null && e._isBuffer === true && e !== Buffer.prototype ); }; Buffer.compare = function compare(e, r) { if (isInstance(e, Uint8Array)) e = Buffer.from(e, e.offset, e.byteLength); if (isInstance(r, Uint8Array)) r = Buffer.from(r, r.offset, r.byteLength); if ( !Buffer.isBuffer(e) || !Buffer.isBuffer(r) ) { throw new TypeError( 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' ); } if (e === r) return 0; var t = e.length; var f = r.length; for ( var n = 0, i = Math.min(t, f); n < i; ++n ) { if (e[n] !== r[n]) { t = e[n]; f = r[n]; break; } } if (t < f) return -1; if (f < t) return 1; return 0; }; Buffer.isEncoding = function isEncoding(e) { switch (String(e).toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "latin1": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return true; default: return false; } }; Buffer.concat = function concat(e, r) { if (!Array.isArray(e)) { throw new TypeError( '"list" argument must be an Array of Buffers' ); } if (e.length === 0) { return Buffer.alloc(0); } var t; if (r === undefined) { r = 0; for (t = 0; t < e.length; ++t) { r += e[t].length; } } var f = Buffer.allocUnsafe(r); var n = 0; for (t = 0; t < e.length; ++t) { var i = e[t]; if (isInstance(i, Uint8Array)) { i = Buffer.from(i); } if (!Buffer.isBuffer(i)) { throw new TypeError( '"list" argument must be an Array of Buffers' ); } i.copy(f, n); n += i.length; } return f; }; function byteLength(e, r) { if (Buffer.isBuffer(e)) { return e.length; } if ( ArrayBuffer.isView(e) || isInstance(e, ArrayBuffer) ) { return e.byteLength; } if (typeof e !== "string") { throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + "Received type " + typeof e ); } var t = e.length; var f = arguments.length > 2 && arguments[2] === true; if (!f && t === 0) return 0; var n = false; for (;;) { switch (r) { case "ascii": case "latin1": case "binary": return t; case "utf8": case "utf-8": return utf8ToBytes(e).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return t * 2; case "hex": return t >>> 1; case "base64": return base64ToBytes(e).length; default: if (n) { return f ? -1 : utf8ToBytes(e).length; } r = ("" + r).toLowerCase(); n = true; } } } Buffer.byteLength = byteLength; function slowToString(e, r, t) { var f = false; if (r === undefined || r < 0) { r = 0; } if (r > this.length) { return ""; } if (t === undefined || t > this.length) { t = this.length; } if (t <= 0) { return ""; } t >>>= 0; r >>>= 0; if (t <= r) { return ""; } if (!e) e = "utf8"; while (true) { switch (e) { case "hex": return hexSlice(this, r, t); case "utf8": case "utf-8": return utf8Slice(this, r, t); case "ascii": return asciiSlice(this, r, t); case "latin1": case "binary": return latin1Slice(this, r, t); case "base64": return base64Slice(this, r, t); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return utf16leSlice(this, r, t); default: if (f) throw new TypeError( "Unknown encoding: " + e ); e = (e + "").toLowerCase(); f = true; } } } Buffer.prototype._isBuffer = true; function swap(e, r, t) { var f = e[r]; e[r] = e[t]; e[t] = f; } Buffer.prototype.swap16 = function swap16() { var e = this.length; if (e % 2 !== 0) { throw new RangeError( "Buffer size must be a multiple of 16-bits" ); } for (var r = 0; r < e; r += 2) { swap(this, r, r + 1); } return this; }; Buffer.prototype.swap32 = function swap32() { var e = this.length; if (e % 4 !== 0) { throw new RangeError( "Buffer size must be a multiple of 32-bits" ); } for (var r = 0; r < e; r += 4) { swap(this, r, r + 3); swap(this, r + 1, r + 2); } return this; }; Buffer.prototype.swap64 = function swap64() { var e = this.length; if (e % 8 !== 0) { throw new RangeError( "Buffer size must be a multiple of 64-bits" ); } for (var r = 0; r < e; r += 8) { swap(this, r, r + 7); swap(this, r + 1, r + 6); swap(this, r + 2, r + 5); swap(this, r + 3, r + 4); } return this; }; Buffer.prototype.toString = function toString() { var e = this.length; if (e === 0) return ""; if (arguments.length === 0) return utf8Slice(this, 0, e); return slowToString.apply(this, arguments); }; Buffer.prototype.toLocaleString = Buffer.prototype.toString; Buffer.prototype.equals = function equals(e) { if (!Buffer.isBuffer(e)) throw new TypeError( "Argument must be a Buffer" ); if (this === e) return true; return Buffer.compare(this, e) === 0; }; Buffer.prototype.inspect = function inspect() { var e = ""; var t = r.INSPECT_MAX_BYTES; e = this.toString("hex", 0, t) .replace(/(.{2})/g, "$1 ") .trim(); if (this.length > t) e += " ... "; return "<Buffer " + e + ">"; }; if (i) { Buffer.prototype[i] = Buffer.prototype.inspect; } Buffer.prototype.compare = function compare( e, r, t, f, n ) { if (isInstance(e, Uint8Array)) { e = Buffer.from(e, e.offset, e.byteLength); } if (!Buffer.isBuffer(e)) { throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. ' + "Received type " + typeof e ); } if (r === undefined) { r = 0; } if (t === undefined) { t = e ? e.length : 0; } if (f === undefined) { f = 0; } if (n === undefined) { n = this.length; } if ( r < 0 || t > e.length || f < 0 || n > this.length ) { throw new RangeError("out of range index"); } if (f >= n && r >= t) { return 0; } if (f >= n) { return -1; } if (r >= t) { return 1; } r >>>= 0; t >>>= 0; f >>>= 0; n >>>= 0; if (this === e) return 0; var i = n - f; var o = t - r; var u = Math.min(i, o); var a = this.slice(f, n); var s = e.slice(r, t); for (var h = 0; h < u; ++h) { if (a[h] !== s[h]) { i = a[h]; o = s[h]; break; } } if (i < o) return -1; if (o < i) return 1; return 0; }; function bidirectionalIndexOf(e, r, t, f, n) { if (e.length === 0) return -1; if (typeof t === "string") { f = t; t = 0; } else if (t > 2147483647) { t = 2147483647; } else if (t < -2147483648) { t = -2147483648; } t = +t; if (numberIsNaN(t)) { t = n ? 0 : e.length - 1; } if (t < 0) t = e.length + t; if (t >= e.length) { if (n) return -1; else t = e.length - 1; } else if (t < 0) { if (n) t = 0; else return -1; } if (typeof r === "string") { r = Buffer.from(r, f); } if (Buffer.isBuffer(r)) { if (r.length === 0) { return -1; } return arrayIndexOf(e, r, t, f, n); } else if (typeof r === "number") { r = r & 255; if ( typeof Uint8Array.prototype.indexOf === "function" ) { if (n) { return Uint8Array.prototype.indexOf.call( e, r, t ); } else { return Uint8Array.prototype.lastIndexOf.call( e, r, t ); } } return arrayIndexOf(e, [r], t, f, n); } throw new TypeError( "val must be string, number or Buffer" ); } function arrayIndexOf(e, r, t, f, n) { var i = 1; var o = e.length; var u = r.length; if (f !== undefined) { f = String(f).toLowerCase(); if ( f === "ucs2" || f === "ucs-2" || f === "utf16le" || f === "utf-16le" ) { if (e.length < 2 || r.length < 2) { return -1; } i = 2; o /= 2; u /= 2; t /= 2; } } function read(e, r) { if (i === 1) { return e[r]; } else { return e.readUInt16BE(r * i); } } var a; if (n) { var s = -1; for (a = t; a < o; a++) { if ( read(e, a) === read(r, s === -1 ? 0 : a - s) ) { if (s === -1) s = a; if (a - s + 1 === u) return s * i; } else { if (s !== -1) a -= a - s; s = -1; } } } else { if (t + u > o) t = o - u; for (a = t; a >= 0; a--) { var h = true; for (var c = 0; c < u; c++) { if (read(e, a + c) !== read(r, c)) { h = false; break; } } if (h) return a; } } return -1; } Buffer.prototype.includes = function includes( e, r, t ) { return this.indexOf(e, r, t) !== -1; }; Buffer.prototype.indexOf = function indexOf( e, r, t ) { return bidirectionalIndexOf( this, e, r, t, true ); }; Buffer.prototype.lastIndexOf = function lastIndexOf( e, r, t ) { return bidirectionalIndexOf( this, e, r, t, false ); }; function hexWrite(e, r, t, f) { t = Number(t) || 0; var n = e.length - t; if (!f) { f = n; } else { f = Number(f); if (f > n) { f = n; } } var i = r.length; if (f > i / 2) { f = i / 2; } for (var o = 0; o < f; ++o) { var u = parseInt(r.substr(o * 2, 2), 16); if (numberIsNaN(u)) return o; e[t + o] = u; } return o; } function utf8Write(e, r, t, f) { return blitBuffer( utf8ToBytes(r, e.length - t), e, t, f ); } function asciiWrite(e, r, t, f) { return blitBuffer(asciiToBytes(r), e, t, f); } function latin1Write(e, r, t, f) { return asciiWrite(e, r, t, f); } function base64Write(e, r, t, f) { return blitBuffer(base64ToBytes(r), e, t, f); } function ucs2Write(e, r, t, f) { return blitBuffer( utf16leToBytes(r, e.length - t), e, t, f ); } Buffer.prototype.write = function write( e, r, t, f ) { if (r === undefined) { f = "utf8"; t = this.length; r = 0; } else if ( t === undefined && typeof r === "string" ) { f = r; t = this.length; r = 0; } else if (isFinite(r)) { r = r >>> 0; if (isFinite(t)) { t = t >>> 0; if (f === undefined) f = "utf8"; } else { f = t; t = undefined; } } else { throw new Error( "Buffer.write(string, encoding, offset[, length]) is no longer supported" ); } var n = this.length - r; if (t === undefined || t > n) t = n; if ( (e.length > 0 && (t < 0 || r < 0)) || r > this.length ) { throw new RangeError( "Attempt to write outside buffer bounds" ); } if (!f) f = "utf8"; var i = false; for (;;) { switch (f) { case "hex": return hexWrite(this, e, r, t); case "utf8": case "utf-8": return utf8Write(this, e, r, t); case "ascii": return asciiWrite(this, e, r, t); case "latin1": case "binary": return latin1Write(this, e, r, t); case "base64": return base64Write(this, e, r, t); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return ucs2Write(this, e, r, t); default: if (i) throw new TypeError( "Unknown encoding: " + f ); f = ("" + f).toLowerCase(); i = true; } } }; Buffer.prototype.toJSON = function toJSON() { return { type: "Buffer", data: Array.prototype.slice.call( this._arr || this, 0 ), }; }; function base64Slice(e, r, t) { if (r === 0 && t === e.length) { return f.fromByteArray(e); } else { return f.fromByteArray(e.slice(r, t)); } } function utf8Slice(e, r, t) { t = Math.min(e.length, t); var f = []; var n = r; while (n < t) { var i = e[n]; var o = null; var u = i > 239 ? 4 : i > 223 ? 3 : i > 191 ? 2 : 1; if (n + u <= t) { var a, s, h, c; switch (u) { case 1: if (i < 128) { o = i; } break; case 2: a = e[n + 1]; if ((a & 192) === 128) { c = ((i & 31) << 6) | (a & 63); if (c > 127) { o = c; } } break; case 3: a = e[n + 1]; s = e[n + 2]; if ( (a & 192) === 128 && (s & 192) === 128 ) { c = ((i & 15) << 12) | ((a & 63) << 6) | (s & 63); if ( c > 2047 && (c < 55296 || c > 57343) ) { o = c; } } break; case 4: a = e[n + 1]; s = e[n + 2]; h = e[n + 3]; if ( (a & 192) === 128 && (s & 192) === 128 && (h & 192) === 128 ) { c = ((i & 15) << 18) | ((a & 63) << 12) | ((s & 63) << 6) | (h & 63); if ( c > 65535 && c < 1114112 ) { o = c; } } } } if (o === null) { o = 65533; u = 1; } else if (o > 65535) { o -= 65536; f.push(((o >>> 10) & 1023) | 55296); o = 56320 | (o & 1023); } f.push(o); n += u; } return decodeCodePointsArray(f); } var u = 4096; function decodeCodePointsArray(e) { var r = e.length; if (r <= u) { return String.fromCharCode.apply(String, e); } var t = ""; var f = 0; while (f < r) { t += String.fromCharCode.apply( String, e.slice(f, (f += u)) ); } return t; } function asciiSlice(e, r, t) { var f = ""; t = Math.min(e.length, t); for (var n = r; n < t; ++n) { f += String.fromCharCode(e[n] & 127); } return f; } function latin1Slice(e, r, t) { var f = ""; t = Math.min(e.length, t); for (var n = r; n < t; ++n) { f += String.fromCharCode(e[n]); } return f; } function hexSlice(e, r, t) { var f = e.length; if (!r || r < 0) r = 0; if (!t || t < 0 || t > f) t = f; var n = ""; for (var i = r; i < t; ++i) { n += s[e[i]]; } return n; } function utf16leSlice(e, r, t) { var f = e.slice(r, t); var n = ""; for (var i = 0; i < f.length; i += 2) { n += String.fromCharCode( f[i] + f[i + 1] * 256 ); } return n; } Buffer.prototype.slice = function slice(e, r) { var t = this.length; e = ~~e; r = r === undefined ? t : ~~r; if (e < 0) { e += t; if (e < 0) e = 0; } else if (e > t) { e = t; } if (r < 0) { r += t; if (r < 0) r = 0; } else if (r > t) { r = t; } if (r < e) r = e; var f = this.subarray(e, r); Object.setPrototypeOf(f, Buffer.prototype); return f; }; function checkOffset(e, r, t) { if (e % 1 !== 0 || e < 0) throw new RangeError("offset is not uint"); if (e + r > t) throw new RangeError( "Trying to access beyond buffer length" ); } Buffer.prototype.readUIntLE = function readUIntLE( e, r, t ) { e = e >>> 0; r = r >>> 0; if (!t) checkOffset(e, r, this.length); var f = this[e]; var n = 1; var i = 0; while (++i < r && (n *= 256)) { f += this[e + i] * n; } return f; }; Buffer.prototype.readUIntBE = function readUIntBE( e, r, t ) { e = e >>> 0; r = r >>> 0; if (!t) { checkOffset(e, r, this.length); } var f = this[e + --r]; var n = 1; while (r > 0 && (n *= 256)) { f += this[e + --r] * n; } return f; }; Buffer.prototype.readUInt8 = function readUInt8( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 1, this.length); return this[e]; }; Buffer.prototype.readUInt16LE = function readUInt16LE(e, r) { e = e >>> 0; if (!r) checkOffset(e, 2, this.length); return this[e] | (this[e + 1] << 8); }; Buffer.prototype.readUInt16BE = function readUInt16BE(e, r) { e = e >>> 0; if (!r) checkOffset(e, 2, this.length); return (this[e] << 8) | this[e + 1]; }; Buffer.prototype.readUInt32LE = function readUInt32LE(e, r) { e = e >>> 0; if (!r) checkOffset(e, 4, this.length); return ( (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) + this[e + 3] * 16777216 ); }; Buffer.prototype.readUInt32BE = function readUInt32BE(e, r) { e = e >>> 0; if (!r) checkOffset(e, 4, this.length); return ( this[e] * 16777216 + ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3]) ); }; Buffer.prototype.readIntLE = function readIntLE( e, r, t ) { e = e >>> 0; r = r >>> 0; if (!t) checkOffset(e, r, this.length); var f = this[e]; var n = 1; var i = 0; while (++i < r && (n *= 256)) { f += this[e + i] * n; } n *= 128; if (f >= n) f -= Math.pow(2, 8 * r); return f; }; Buffer.prototype.readIntBE = function readIntBE( e, r, t ) { e = e >>> 0; r = r >>> 0; if (!t) checkOffset(e, r, this.length); var f = r; var n = 1; var i = this[e + --f]; while (f > 0 && (n *= 256)) { i += this[e + --f] * n; } n *= 128; if (i >= n) i -= Math.pow(2, 8 * r); return i; }; Buffer.prototype.readInt8 = function readInt8( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 1, this.length); if (!(this[e] & 128)) return this[e]; return (255 - this[e] + 1) * -1; }; Buffer.prototype.readInt16LE = function readInt16LE( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 2, this.length); var t = this[e] | (this[e + 1] << 8); return t & 32768 ? t | 4294901760 : t; }; Buffer.prototype.readInt16BE = function readInt16BE( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 2, this.length); var t = this[e + 1] | (this[e] << 8); return t & 32768 ? t | 4294901760 : t; }; Buffer.prototype.readInt32LE = function readInt32LE( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 4, this.length); return ( this[e] | (this[e + 1] << 8) | (this[e + 2] << 16) | (this[e + 3] << 24) ); }; Buffer.prototype.readInt32BE = function readInt32BE( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 4, this.length); return ( (this[e] << 24) | (this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3] ); }; Buffer.prototype.readFloatLE = function readFloatLE( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 4, this.length); return n.read(this, e, true, 23, 4); }; Buffer.prototype.readFloatBE = function readFloatBE( e, r ) { e = e >>> 0; if (!r) checkOffset(e, 4, this.length); return n.read(this, e, false, 23, 4); }; Buffer.prototype.readDoubleLE = function readDoubleLE(e, r) { e = e >>> 0; if (!r) checkOffset(e, 8, this.length); return n.read(this, e, true, 52, 8); }; Buffer.prototype.readDoubleBE = function readDoubleBE(e, r) { e = e >>> 0; if (!r) checkOffset(e, 8, this.length); return n.read(this, e, false, 52, 8); }; function checkInt(e, r, t, f, n, i) { if (!Buffer.isBuffer(e)) throw new TypeError( '"buffer" argument must be a Buffer instance' ); if (r > n || r < i) throw new RangeError( '"value" argument is out of bounds' ); if (t + f > e.length) throw new RangeError("Index out of range"); } Buffer.prototype.writeUIntLE = function writeUIntLE( e, r, t, f ) { e = +e; r = r >>> 0; t = t >>> 0; if (!f) { var n = Math.pow(2, 8 * t) - 1; checkInt(this, e, r, t, n, 0); } var i = 1; var o = 0; this[r] = e & 255; while (++o < t && (i *= 256)) { this[r + o] = (e / i) & 255; } return r + t; }; Buffer.prototype.writeUIntBE = function writeUIntBE( e, r, t, f ) { e = +e; r = r >>> 0; t = t >>> 0; if (!f) { var n = Math.pow(2, 8 * t) - 1; checkInt(this, e, r, t, n, 0); } var i = t - 1; var o = 1; this[r + i] = e & 255; while (--i >= 0 && (o *= 256)) { this[r + i] = (e / o) & 255; } return r + t; }; Buffer.prototype.writeUInt8 = function writeUInt8( e, r, t ) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 1, 255, 0); this[r] = e & 255; return r + 1; }; Buffer.prototype.writeUInt16LE = function writeUInt16LE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 2, 65535, 0); this[r] = e & 255; this[r + 1] = e >>> 8; return r + 2; }; Buffer.prototype.writeUInt16BE = function writeUInt16BE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 2, 65535, 0); this[r] = e >>> 8; this[r + 1] = e & 255; return r + 2; }; Buffer.prototype.writeUInt32LE = function writeUInt32LE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 4, 4294967295, 0); this[r + 3] = e >>> 24; this[r + 2] = e >>> 16; this[r + 1] = e >>> 8; this[r] = e & 255; return r + 4; }; Buffer.prototype.writeUInt32BE = function writeUInt32BE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 4, 4294967295, 0); this[r] = e >>> 24; this[r + 1] = e >>> 16; this[r + 2] = e >>> 8; this[r + 3] = e & 255; return r + 4; }; Buffer.prototype.writeIntLE = function writeIntLE( e, r, t, f ) { e = +e; r = r >>> 0; if (!f) { var n = Math.pow(2, 8 * t - 1); checkInt(this, e, r, t, n - 1, -n); } var i = 0; var o = 1; var u = 0; this[r] = e & 255; while (++i < t && (o *= 256)) { if ( e < 0 && u === 0 && this[r + i - 1] !== 0 ) { u = 1; } this[r + i] = (((e / o) >> 0) - u) & 255; } return r + t; }; Buffer.prototype.writeIntBE = function writeIntBE( e, r, t, f ) { e = +e; r = r >>> 0; if (!f) { var n = Math.pow(2, 8 * t - 1); checkInt(this, e, r, t, n - 1, -n); } var i = t - 1; var o = 1; var u = 0; this[r + i] = e & 255; while (--i >= 0 && (o *= 256)) { if ( e < 0 && u === 0 && this[r + i + 1] !== 0 ) { u = 1; } this[r + i] = (((e / o) >> 0) - u) & 255; } return r + t; }; Buffer.prototype.writeInt8 = function writeInt8( e, r, t ) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 1, 127, -128); if (e < 0) e = 255 + e + 1; this[r] = e & 255; return r + 1; }; Buffer.prototype.writeInt16LE = function writeInt16LE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 2, 32767, -32768); this[r] = e & 255; this[r + 1] = e >>> 8; return r + 2; }; Buffer.prototype.writeInt16BE = function writeInt16BE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt(this, e, r, 2, 32767, -32768); this[r] = e >>> 8; this[r + 1] = e & 255; return r + 2; }; Buffer.prototype.writeInt32LE = function writeInt32LE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt( this, e, r, 4, 2147483647, -2147483648 ); this[r] = e & 255; this[r + 1] = e >>> 8; this[r + 2] = e >>> 16; this[r + 3] = e >>> 24; return r + 4; }; Buffer.prototype.writeInt32BE = function writeInt32BE(e, r, t) { e = +e; r = r >>> 0; if (!t) checkInt( this, e, r, 4, 2147483647, -2147483648 ); if (e < 0) e = 4294967295 + e + 1; this[r] = e >>> 24; this[r + 1] = e >>> 16; this[r + 2] = e >>> 8; this[r + 3] = e & 255; return r + 4; }; function checkIEEE754(e, r, t, f, n, i) { if (t + f > e.length) throw new RangeError("Index out of range"); if (t < 0) throw new RangeError("Index out of range"); } function writeFloat(e, r, t, f, i) { r = +r; t = t >>> 0; if (!i) { checkIEEE754( e, r, t, 4, 34028234663852886e22, -34028234663852886e22 ); } n.write(e, r, t, f, 23, 4); return t + 4; } Buffer.prototype.writeFloatLE = function writeFloatLE(e, r, t) { return writeFloat(this, e, r, true, t); }; Buffer.prototype.writeFloatBE = function writeFloatBE(e, r, t) { return writeFloat(this, e, r, false, t); }; function writeDouble(e, r, t, f, i) { r = +r; t = t >>> 0; if (!i) { checkIEEE754( e, r, t, 8, 17976931348623157e292, -17976931348623157e292 ); } n.write(e, r, t, f, 52, 8); return t + 8; } Buffer.prototype.writeDoubleLE = function writeDoubleLE(e, r, t) { return writeDouble(this, e, r, true, t); }; Buffer.prototype.writeDoubleBE = function writeDoubleBE(e, r, t) { return writeDouble(this, e, r, false, t); }; Buffer.prototype.copy = function copy(e, r, t, f) { if (!Buffer.isBuffer(e)) throw new TypeError( "argument should be a Buffer" ); if (!t) t = 0; if (!f && f !== 0) f = this.length; if (r >= e.length) r = e.length; if (!r) r = 0; if (f > 0 && f < t) f = t; if (f === t) return 0; if (e.length === 0 || this.length === 0) return 0; if (r < 0) { throw new RangeError( "targetStart out of bounds" ); } if (t < 0 || t >= this.length) throw new RangeError("Index out of range"); if (f < 0) throw new RangeError( "sourceEnd out of bounds" ); if (f > this.length) f = this.length; if (e.length - r < f - t) { f = e.length - r + t; } var n = f - t; if ( this === e && typeof Uint8Array.prototype.copyWithin === "function" ) { this.copyWithin(r, t, f); } else if (this === e && t < r && r < f) { for (var i = n - 1; i >= 0; --i) { e[i + r] = this[i + t]; } } else { Uint8Array.prototype.set.call( e, this.subarray(t, f), r ); } return n; }; Buffer.prototype.fill = function fill(e, r, t, f) { if (typeof e === "string") { if (typeof r === "string") { f = r; r = 0; t = this.length; } else if (typeof t === "string") { f = t; t = this.length; } if ( f !== undefined && typeof f !== "string" ) { throw new TypeError( "encoding must be a string" ); } if ( typeof f === "string" && !Buffer.isEncoding(f) ) { throw new TypeError( "Unknown encoding: " + f ); } if (e.length === 1) { var n = e.charCodeAt(0); if ( (f === "utf8" && n < 128) || f === "latin1" ) { e = n; } } } else if (typeof e === "number") { e = e & 255; } else if (typeof e === "boolean") { e = Number(e); } if ( r < 0 || this.length < r || this.length < t ) { throw new RangeError("Out of range index"); } if (t <= r) { return this; } r = r >>> 0; t = t === undefined ? this.length : t >>> 0; if (!e) e = 0; var i; if (typeof e === "number") { for (i = r; i < t; ++i) { this[i] = e; } } else { var o = Buffer.isBuffer(e) ? e : Buffer.from(e, f); var u = o.length; if (u === 0) { throw new TypeError( 'The value "' + e + '" is invalid for argument "value"' ); } for (i = 0; i < t - r; ++i) { this[i + r] = o[i % u]; } } return this; }; var a = /[^+/0-9A-Za-z-_]/g; function base64clean(e) { e = e.split("=")[0]; e = e.trim().replace(a, ""); if (e.length < 2) return ""; while (e.length % 4 !== 0) { e = e + "="; } return e; } function utf8ToBytes(e, r) { r = r || Infinity; var t; var f = e.length; var n = null; var i = []; for (var o = 0; o < f; ++o) { t = e.charCodeAt(o); if (t > 55295 && t < 57344) { if (!n) { if (t > 56319) { if ((r -= 3) > -1) i.push(239, 191, 189); continue; } else if (o + 1 === f) { if ((r -= 3) > -1) i.push(239, 191, 189); continue; } n = t; continue; } if (t < 56320) { if ((r -= 3) > -1) i.push(239, 191, 189); n = t; continue; } t = (((n - 55296) << 10) | (t - 56320)) + 65536; } else if (n) { if ((r -= 3) > -1) i.push(239, 191, 189); } n = null; if (t < 128) { if ((r -= 1) < 0) break; i.push(t); } else if (t < 2048) { if ((r -= 2) < 0) break; i.push((t >> 6) | 192, (t & 63) | 128); } else if (t < 65536) { if ((r -= 3) < 0) break; i.push( (t >> 12) | 224, ((t >> 6) & 63) | 128, (t & 63) | 128 ); } else if (t < 1114112) { if ((r -= 4) < 0) break; i.push( (t >> 18) | 240, ((t >> 12) & 63) | 128, ((t >> 6) & 63) | 128, (t & 63) | 128 ); } else { throw new Error("Invalid code point"); } } return i; } function asciiToBytes(e) { var r = []; for (var t = 0; t < e.length; ++t) { r.push(e.charCodeAt(t) & 255); } return r; } function utf16leToBytes(e, r) { var t, f, n; var i = []; for (var o = 0; o < e.length; ++o) { if ((r -= 2) < 0) break; t = e.charCodeAt(o); f = t >> 8; n = t % 256; i.push(n); i.push(f); } return i; } function base64ToBytes(e) { return f.toByteArray(base64clean(e)); } function blitBuffer(e, r, t, f) { for (var n = 0; n < f; ++n) { if (n + t >= r.length || n >= e.length) break; r[n + t] = e[n]; } return n; } function isInstance(e, r) { return ( e instanceof r || (e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === r.name) ); } function numberIsNaN(e) { return e !== e; } var s = (function () { var e = "0123456789abcdef"; var r = new Array(256); for (var t = 0; t < 16; ++t) { var f = t * 16; for (var n = 0; n < 16; ++n) { r[f + n] = e[t] + e[n]; } } return r; })(); }, 759: function (e, r) { r.read = function (e, r, t, f, n) { var i, o; var u = n * 8 - f - 1; var a = (1 << u) - 1; var s = a >> 1; var h = -7; var c = t ? n - 1 : 0; var l = t ? -1 : 1; var p = e[r + c]; c += l; i = p & ((1 << -h) - 1); p >>= -h; h += u; for ( ; h > 0; i = i * 256 + e[r + c], c += l, h -= 8 ) {} o = i & ((1 << -h) - 1); i >>= -h; h += f; for ( ; h > 0; o = o * 256 + e[r + c], c += l, h -= 8 ) {} if (i === 0) { i = 1 - s; } else if (i === a) { return o ? NaN : (p ? -1 : 1) * Infinity; } else { o = o + Math.pow(2, f); i = i - s; } return (p ? -1 : 1) * o * Math.pow(2, i - f); }; r.write = function (e, r, t, f, n, i) { var o, u, a; var s = i * 8 - n - 1; var h = (1 << s) - 1; var c = h >> 1; var l = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0; var p = f ? 0 : i - 1; var y = f ? 1 : -1; var g = r < 0 || (r === 0 && 1 / r < 0) ? 1 : 0; r = Math.abs(r); if (isNaN(r) || r === Infinity) { u = isNaN(r) ? 1 : 0; o = h; } else { o = Math.floor(Math.log(r) / Math.LN2); if (r * (a = Math.pow(2, -o)) < 1) { o--; a *= 2; } if (o + c >= 1) { r += l / a; } else { r += l * Math.pow(2, 1 - c); } if (r * a >= 2) { o++; a /= 2; } if (o + c >= h) { u = 0; o = h; } else if (o + c >= 1) { u = (r * a - 1) * Math.pow(2, n); o = o + c; } else { u = r * Math.pow(2, c - 1) * Math.pow(2, n); o = 0; } } for ( ; n >= 8; e[t + p] = u & 255, p += y, u /= 256, n -= 8 ) {} o = (o << n) | u; s += n; for ( ; s > 0; e[t + p] = o & 255, p += y, o /= 256, s -= 8 ) {} e[t + p - y] |= g * 128; }; }, }; var r = {}; function __nccwpck_require__(t) { var f = r[t]; if (f !== undefined) { return f.exports; } var n = (r[t] = { exports: {}, }); var i = true; try { e[t](n, n.exports, __nccwpck_require__); i = false; } finally { if (i) delete r[t]; } return n.exports; } if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/"; var t = __nccwpck_require__(293); module.exports = t; })(); /***/ }, /***/ 6774: /***/ function () { // extracted by mini-css-extract-plugin /***/ }, /***/ 7663: /***/ function (module) { var __dirname = "/"; (function () { var e = { 162: function (e) { var t = (e.exports = {}); var r; var n; function defaultSetTimout() { throw new Error( "setTimeout has not been defined" ); } function defaultClearTimeout() { throw new Error( "clearTimeout has not been defined" ); } (function () { try { if (typeof setTimeout === "function") { r = setTimeout; } else { r = defaultSetTimout; } } catch (e) { r = defaultSetTimout; } try { if (typeof clearTimeout === "function") { n = clearTimeout; } else { n = defaultClearTimeout; } } catch (e) { n = defaultClearTimeout; } })(); function runTimeout(e) { if (r === setTimeout) { return setTimeout(e, 0); } if ( (r === defaultSetTimout || !r) && setTimeout ) { r = setTimeout; return setTimeout(e, 0); } try { return r(e, 0); } catch (t) { try { return r.call(null, e, 0); } catch (t) { return r.call(this, e, 0); } } } function runClearTimeout(e) { if (n === clearTimeout) { return clearTimeout(e); } if ( (n === defaultClearTimeout || !n) && clearTimeout ) { n = clearTimeout; return clearTimeout(e); } try { return n(e); } catch (t) { try { return n.call(null, e); } catch (t) { return n.call(this, e); } } } var i = []; var o = false; var u; var a = -1; function cleanUpNextTick() { if (!o || !u) { return; } o = false; if (u.length) { i = u.concat(i); } else { a = -1; } if (i.length) { drainQueue(); } } function drainQueue() { if (o) { return; } var e = runTimeout(cleanUpNextTick); o = true; var t = i.length; while (t) { u = i; i = []; while (++a < t) { if (u) { u[a].run(); } } a = -1; t = i.length; } u = null; o = false; runClearTimeout(e); } t.nextTick = function (e) { var t = new Array(arguments.length - 1); if (arguments.length > 1) { for (var r = 1; r < arguments.length; r++) { t[r - 1] = arguments[r]; } } i.push(new Item(e, t)); if (i.length === 1 && !o) { runTimeout(drainQueue); } }; function Item(e, t) { this.fun = e; this.array = t; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; t.title = "browser"; t.browser = true; t.env = {}; t.argv = []; t.version = ""; t.versions = {}; function noop() {} t.on = noop; t.addListener = noop; t.once = noop; t.off = noop; t.removeListener = noop; t.removeAllListeners = noop; t.emit = noop; t.prependListener = noop; t.prependOnceListener = noop; t.listeners = function (e) { return []; }; t.binding = function (e) { throw new Error( "process.binding is not supported" ); }; t.cwd = function () { return "/"; }; t.chdir = function (e) { throw new Error( "process.chdir is not supported" ); }; t.umask = function () { return 0; }; }, }; var t = {}; function __nccwpck_require__(r) { var n = t[r]; if (n !== undefined) { return n.exports; } var i = (t[r] = { exports: {}, }); var o = true; try { e[r](i, i.exports, __nccwpck_require__); o = false; } finally { if (o) delete t[r]; } return i.exports; } if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/"; var r = __nccwpck_require__(162); module.exports = r; })(); /***/ }, /***/ 9720: /***/ function (module, __unused_webpack_exports, __webpack_require__) { var __dirname = "/"; /* provided dependency */ var Buffer = __webpack_require__(1876)["Buffer"]; /* provided dependency */ var process = __webpack_require__(3454); (function () { var r = { 901: function (r) { r.exports = function (r, e, o) { if (r.filter) return r.filter(e, o); if (void 0 === r || null === r) throw new TypeError(); if ("function" != typeof e) throw new TypeError(); var n = []; for (var i = 0; i < r.length; i++) { if (!t.call(r, i)) continue; var a = r[i]; if (e.call(o, a, i, r)) n.push(a); } return n; }; var t = Object.prototype.hasOwnProperty; }, 749: function (r, t, e) { "use strict"; var o = e(91); var n = e(112); var i = n(o("String.prototype.indexOf")); r.exports = function callBoundIntrinsic(r, t) { var e = o(r, !!t); if ( typeof e === "function" && i(r, ".prototype.") > -1 ) { return n(e); } return e; }; }, 112: function (r, t, e) { "use strict"; var o = e(517); var n = e(91); var i = n("%Function.prototype.apply%"); var a = n("%Function.prototype.call%"); var y = n("%Reflect.apply%", true) || o.call(a, i); var p = n( "%Object.getOwnPropertyDescriptor%", true ); var f = n("%Object.defineProperty%", true); var u = n("%Math.max%"); if (f) { try { f({}, "a", { value: 1, }); } catch (r) { f = null; } } r.exports = function callBind(r) { var t = y(o, a, arguments); if (p && f) { var e = p(t, "length"); if (e.configurable) { f(t, "length", { value: 1 + u( 0, r.length - (arguments.length - 1) ), }); } } return t; }; var s = function applyBind() { return y(o, i, arguments); }; if (f) { f(r.exports, "apply", { value: s, }); } else { r.exports.apply = s; } }, 91: function (r, t, e) { "use strict"; var o; var n = SyntaxError; var i = Function; var a = TypeError; var getEvalledConstructor = function (r) { try { return Function( '"use strict"; return (' + r + ").constructor;" )(); } catch (r) {} }; var y = Object.getOwnPropertyDescriptor; if (y) { try { y({}, ""); } catch (r) { y = null; } } var throwTypeError = function () { throw new a(); }; var p = y ? (function () { try { arguments.callee; return throwTypeError; } catch (r) { try { return y(arguments, "callee").get; } catch (r) { return throwTypeError; } } })() : throwTypeError; var f = e(449)(); var u = Object.getPrototypeOf || function (r) { return r.__proto__; }; var s = getEvalledConstructor( "async function* () {}" ); var c = s ? s.prototype : o; var l = c ? c.prototype : o; var d = typeof Uint8Array === "undefined" ? o : u(Uint8Array); var g = { "%AggregateError%": typeof AggregateError === "undefined" ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? o : ArrayBuffer, "%ArrayIteratorPrototype%": f ? u([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": getEvalledConstructor( "async function () {}" ), "%AsyncGenerator%": c, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": l ? u(l) : o, "%Atomics%": typeof Atomics === "undefined" ? o : Atomics, "%BigInt%": typeof BigInt === "undefined" ? o : BigInt, "%Boolean%": Boolean, "%DataView%": typeof DataView === "undefined" ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array === "undefined" ? o : Float32Array, "%Float64Array%": typeof Float64Array === "undefined" ? o : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": getEvalledConstructor("function* () {}"), "%Int8Array%": typeof Int8Array === "undefined" ? o : Int8Array, "%Int16Array%": typeof Int16Array === "undefined" ? o : Int16Array, "%Int32Array%": typeof Int32Array === "undefined" ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": f ? u(u([][Symbol.iterator]())) : o, "%JSON%": typeof JSON === "object" ? JSON : o, "%Map%": typeof Map === "undefined" ? o : Map, "%MapIteratorPrototype%": typeof Map === "undefined" || !f ? o : u(new Map()[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise === "undefined" ? o : Promise, "%Proxy%": typeof Proxy === "undefined" ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect === "undefined" ? o : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set === "undefined" ? o : Set, "%SetIteratorPrototype%": typeof Set === "undefined" || !f ? o : u(new Set()[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": f ? u(""[Symbol.iterator]()) : o, "%Symbol%": f ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": typeof Uint8Array === "undefined" ? o : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? o : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array === "undefined" ? o : Uint16Array, "%Uint32Array%": typeof Uint32Array === "undefined" ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap === "undefined" ? o : WeakMap, "%WeakRef%": typeof WeakRef === "undefined" ? o : WeakRef, "%WeakSet%": typeof WeakSet === "undefined" ? o : WeakSet, }; var A = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype", ], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": [ "Array", "prototype", "entries", ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach", ], "%ArrayProto_keys%": [ "Array", "prototype", "keys", ], "%ArrayProto_values%": [ "Array", "prototype", "values", ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype", ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype", ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype", ], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": [ "DataView", "prototype", ], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": [ "EvalError", "prototype", ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype", ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype", ], "%FunctionPrototype%": [ "Function", "prototype", ], "%Generator%": [ "GeneratorFunction", "prototype", ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype", ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype", ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype", ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype", ], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": [ "Object", "prototype", "toString", ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf", ], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": [ "Promise", "prototype", "then", ], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": [ "RangeError", "prototype", ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype", ], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype", ], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype", ], "%TypedArrayPrototype%": [ "TypedArray", "prototype", ], "%TypeErrorPrototype%": [ "TypeError", "prototype", ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype", ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype", ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype", ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype", ], "%URIErrorPrototype%": [ "URIError", "prototype", ], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"], }; var v = e(517); var b = e(793); var S = v.call( Function.call, Array.prototype.concat ); var m = v.call( Function.apply, Array.prototype.splice ); var P = v.call( Function.call, String.prototype.replace ); var h = v.call( Function.call, String.prototype.slice ); var O = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var w = /\\(\\)?/g; var E = function stringToPath(r) { var t = h(r, 0, 1); var e = h(r, -1); if (t === "%" && e !== "%") { throw new n( "invalid intrinsic syntax, expected closing `%`" ); } else if (e === "%" && t !== "%") { throw new n( "invalid intrinsic syntax, expected opening `%`" ); } var o = []; P(r, O, function (r, t, e, n) { o[o.length] = e ? P(n, w, "$1") : t || r; }); return o; }; var j = function getBaseIntrinsic(r, t) { var e = r; var o; if (b(A, e)) { o = A[e]; e = "%" + o[0] + "%"; } if (b(g, e)) { var i = g[e]; if (typeof i === "undefined" && !t) { throw new a( "intrinsic " + r + " exists, but is not available. Please file an issue!" ); } return { alias: o, name: e, value: i, }; } throw new n( "intrinsic " + r + " does not exist!" ); }; r.exports = function GetIntrinsic(r, t) { if (typeof r !== "string" || r.length === 0) { throw new a( "intrinsic name must be a non-empty string" ); } if ( arguments.length > 1 && typeof t !== "boolean" ) { throw new a( '"allowMissing" argument must be a boolean' ); } var e = E(r); var i = e.length > 0 ? e[0] : ""; var p = j("%" + i + "%", t); var f = p.name; var u = p.value; var s = false; var c = p.alias; if (c) { i = c[0]; m(e, S([0, 1], c)); } for ( var l = 1, d = true; l < e.length; l += 1 ) { var A = e[l]; var v = h(A, 0, 1); var P = h(A, -1); if ( (v === '"' || v === "'" || v === "`" || P === '"' || P === "'" || P === "`") && v !== P ) { throw new n( "property names with quotes must have matching quotes" ); } if (A === "constructor" || !d) { s = true; } i += "." + A; f = "%" + i + "%"; if (b(g, f)) { u = g[f]; } else if (u != null) { if (!(A in u)) { if (!t) { throw new a( "base intrinsic for " + r + " exists, but the property is not available." ); } return void o; } if (y && l + 1 >= e.length) { var O = y(u, A); d = !!O; if ( d && "get" in O && !("originalValue" in O.get) ) { u = O.get; } else { u = u[A]; } } else { d = b(u, A); u = u[A]; } if (d && !s) { g[f] = u; } } } return u; }; }, 219: function (r) { var t = Object.prototype.hasOwnProperty; var e = Object.prototype.toString; r.exports = function forEach(r, o, n) { if (e.call(o) !== "[object Function]") { throw new TypeError( "iterator must be a function" ); } var i = r.length; if (i === +i) { for (var a = 0; a < i; a++) { o.call(n, r[a], a, r); } } else { for (var y in r) { if (t.call(r, y)) { o.call(n, r[y], y, r); } } } }; }, 733: function (r) { "use strict"; var t = "Function.prototype.bind called on incompatible "; var e = Array.prototype.slice; var o = Object.prototype.toString; var n = "[object Function]"; r.exports = function bind(r) { var i = this; if ( typeof i !== "function" || o.call(i) !== n ) { throw new TypeError(t + i); } var a = e.call(arguments, 1); var y; var binder = function () { if (this instanceof y) { var t = i.apply( this, a.concat(e.call(arguments)) ); if (Object(t) === t) { return t; } return this; } else { return i.apply( r, a.concat(e.call(arguments)) ); } }; var p = Math.max(0, i.length - a.length); var f = []; for (var u = 0; u < p; u++) { f.push("$" + u); } y = Function( "binder", "return function (" + f.join(",") + "){ return binder.apply(this,arguments); }" )(binder); if (i.prototype) { var s = function Empty() {}; s.prototype = i.prototype; y.prototype = new s(); s.prototype = null; } return y; }; }, 517: function (r, t, e) { "use strict"; var o = e(733); r.exports = Function.prototype.bind || o; }, 879: function (r, t, e) { "use strict"; var o; var n = SyntaxError; var i = Function; var a = TypeError; var getEvalledConstructor = function (r) { try { return i( '"use strict"; return (' + r + ").constructor;" )(); } catch (r) {} }; var y = Object.getOwnPropertyDescriptor; if (y) { try { y({}, ""); } catch (r) { y = null; } } var throwTypeError = function () { throw new a(); }; var p = y ? (function () { try { arguments.callee; return throwTypeError; } catch (r) { try { return y(arguments, "callee").get; } catch (r) { return throwTypeError; } } })() : throwTypeError; var f = e(449)(); var u = Object.getPrototypeOf || function (r) { return r.__proto__; }; var s = {}; var c = typeof Uint8Array === "undefined" ? o : u(Uint8Array); var l = { "%AggregateError%": typeof AggregateError === "undefined" ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? o : ArrayBuffer, "%ArrayIteratorPrototype%": f ? u([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": s, "%AsyncGenerator%": s, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": s, "%Atomics%": typeof Atomics === "undefined" ? o : Atomics, "%BigInt%": typeof BigInt === "undefined" ? o : BigInt, "%Boolean%": Boolean, "%DataView%": typeof DataView === "undefined" ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array === "undefined" ? o : Float32Array, "%Float64Array%": typeof Float64Array === "undefined" ? o : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": s, "%Int8Array%": typeof Int8Array === "undefined" ? o : Int8Array, "%Int16Array%": typeof Int16Array === "undefined" ? o : Int16Array, "%Int32Array%": typeof Int32Array === "undefined" ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": f ? u(u([][Symbol.iterator]())) : o, "%JSON%": typeof JSON === "object" ? JSON : o, "%Map%": typeof Map === "undefined" ? o : Map, "%MapIteratorPrototype%": typeof Map === "undefined" || !f ? o : u(new Map()[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise === "undefined" ? o : Promise, "%Proxy%": typeof Proxy === "undefined" ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect === "undefined" ? o : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set === "undefined" ? o : Set, "%SetIteratorPrototype%": typeof Set === "undefined" || !f ? o : u(new Set()[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": f ? u(""[Symbol.iterator]()) : o, "%Symbol%": f ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": c, "%TypeError%": a, "%Uint8Array%": typeof Uint8Array === "undefined" ? o : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? o : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array === "undefined" ? o : Uint16Array, "%Uint32Array%": typeof Uint32Array === "undefined" ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap === "undefined" ? o : WeakMap, "%WeakRef%": typeof WeakRef === "undefined" ? o : WeakRef, "%WeakSet%": typeof WeakSet === "undefined" ? o : WeakSet, }; var d = function doEval(r) { var t; if (r === "%AsyncFunction%") { t = getEvalledConstructor( "async function () {}" ); } else if (r === "%GeneratorFunction%") { t = getEvalledConstructor( "function* () {}" ); } else if (r === "%AsyncGeneratorFunction%") { t = getEvalledConstructor( "async function* () {}" ); } else if (r === "%AsyncGenerator%") { var e = doEval("%AsyncGeneratorFunction%"); if (e) { t = e.prototype; } } else if (r === "%AsyncIteratorPrototype%") { var o = doEval("%AsyncGenerator%"); if (o) { t = u(o.prototype); } } l[r] = t; return t; }; var g = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype", ], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": [ "Array", "prototype", "entries", ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach", ], "%ArrayProto_keys%": [ "Array", "prototype", "keys", ], "%ArrayProto_values%": [ "Array", "prototype", "values", ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype", ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype", ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype", ], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": [ "DataView", "prototype", ], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": [ "EvalError", "prototype", ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype", ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype", ], "%FunctionPrototype%": [ "Function", "prototype", ], "%Generator%": [ "GeneratorFunction", "prototype", ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype", ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype", ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype", ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype", ], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": [ "Object", "prototype", "toString", ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf", ], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": [ "Promise", "prototype", "then", ], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": [ "RangeError", "prototype", ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype", ], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype", ], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype", ], "%TypedArrayPrototype%": [ "TypedArray", "prototype", ], "%TypeErrorPrototype%": [ "TypeError", "prototype", ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype", ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype", ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype", ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype", ], "%URIErrorPrototype%": [ "URIError", "prototype", ], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"], }; var A = e(517); var v = e(793); var b = A.call( Function.call, Array.prototype.concat ); var S = A.call( Function.apply, Array.prototype.splice ); var m = A.call( Function.call, String.prototype.replace ); var P = A.call( Function.call, String.prototype.slice ); var h = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var O = /\\(\\)?/g; var w = function stringToPath(r) { var t = P(r, 0, 1); var e = P(r, -1); if (t === "%" && e !== "%") { throw new n( "invalid intrinsic syntax, expected closing `%`" ); } else if (e === "%" && t !== "%") { throw new n( "invalid intrinsic syntax, expected opening `%`" ); } var o = []; m(r, h, function (r, t, e, n) { o[o.length] = e ? m(n, O, "$1") : t || r; }); return o; }; var E = function getBaseIntrinsic(r, t) { var e = r; var o; if (v(g, e)) { o = g[e]; e = "%" + o[0] + "%"; } if (v(l, e)) { var i = l[e]; if (i === s) { i = d(e); } if (typeof i === "undefined" && !t) { throw new a( "intrinsic " + r + " exists, but is not available. Please file an issue!" ); } return { alias: o, name: e, value: i, }; } throw new n( "intrinsic " + r + " does not exist!" ); }; r.exports = function GetIntrinsic(r, t) { if (typeof r !== "string" || r.length === 0) { throw new a( "intrinsic name must be a non-empty string" ); } if ( arguments.length > 1 && typeof t !== "boolean" ) { throw new a( '"allowMissing" argument must be a boolean' ); } var e = w(r); var i = e.length > 0 ? e[0] : ""; var p = E("%" + i + "%", t); var f = p.name; var u = p.value; var s = false; var c = p.alias; if (c) { i = c[0]; S(e, b([0, 1], c)); } for ( var d = 1, g = true; d < e.length; d += 1 ) { var A = e[d]; var m = P(A, 0, 1); var h = P(A, -1); if ( (m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h ) { throw new n( "property names with quotes must have matching quotes" ); } if (A === "constructor" || !g) { s = true; } i += "." + A; f = "%" + i + "%"; if (v(l, f)) { u = l[f]; } else if (u != null) { if (!(A in u)) { if (!t) { throw new a( "base intrinsic for " + r + " exists, but the property is not available." ); } return void o; } if (y && d + 1 >= e.length) { var O = y(u, A); g = !!O; if ( g && "get" in O && !("originalValue" in O.get) ) { u = O.get; } else { u = u[A]; } } else { g = v(u, A); u = u[A]; } if (g && !s) { l[f] = u; } } } return u; }; }, 449: function (r, t, e) { "use strict"; var o = __webpack_require__.g.Symbol; var n = e(545); r.exports = function hasNativeSymbols() { if (typeof o !== "function") { return false; } if (typeof Symbol !== "function") { return false; } if (typeof o("foo") !== "symbol") { return false; } if (typeof Symbol("bar") !== "symbol") { return false; } return n(); }; }, 545: function (r) { "use strict"; r.exports = function hasSymbols() { if ( typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function" ) { return false; } if (typeof Symbol.iterator === "symbol") { return true; } var r = {}; var t = Symbol("test"); var e = Object(t); if (typeof t === "string") { return false; } if ( Object.prototype.toString.call(t) !== "[object Symbol]" ) { return false; } if ( Object.prototype.toString.call(e) !== "[object Symbol]" ) { return false; } var o = 42; r[t] = o; for (t in r) { return false; } if ( typeof Object.keys === "function" && Object.keys(r).length !== 0 ) { return false; } if ( typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(r).length !== 0 ) { return false; } var n = Object.getOwnPropertySymbols(r); if (n.length !== 1 || n[0] !== t) { return false; } if ( !Object.prototype.propertyIsEnumerable.call( r, t ) ) { return false; } if ( typeof Object.getOwnPropertyDescriptor === "function" ) { var i = Object.getOwnPropertyDescriptor( r, t ); if ( i.value !== o || i.enumerable !== true ) { return false; } } return true; }; }, 793: function (r, t, e) { "use strict"; var o = e(517); r.exports = o.call( Function.call, Object.prototype.hasOwnProperty ); }, 526: function (r) { if (typeof Object.create === "function") { r.exports = function inherits(r, t) { if (t) { r.super_ = t; r.prototype = Object.create( t.prototype, { constructor: { value: r, enumerable: false, writable: true, configurable: true, }, } ); } }; } else { r.exports = function inherits(r, t) { if (t) { r.super_ = t; var TempCtor = function () {}; TempCtor.prototype = t.prototype; r.prototype = new TempCtor(); r.prototype.constructor = r; } }; } }, 312: function (r) { "use strict"; var t = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol"; var e = Object.prototype.toString; var o = function isArguments(r) { if ( t && r && typeof r === "object" && Symbol.toStringTag in r ) { return false; } return e.call(r) === "[object Arguments]"; }; var n = function isArguments(r) { if (o(r)) { return true; } return ( r !== null && typeof r === "object" && typeof r.length === "number" && r.length >= 0 && e.call(r) !== "[object Array]" && e.call(r.callee) === "[object Function]" ); }; var i = (function () { return o(arguments); })(); o.isLegacyArguments = n; r.exports = i ? o : n; }, 906: function (r) { "use strict"; var t = Object.prototype.toString; var e = Function.prototype.toString; var o = /^\s*(?:function)?\*/; var n = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol"; var i = Object.getPrototypeOf; var getGeneratorFunc = function () { if (!n) { return false; } try { return Function("return function*() {}")(); } catch (r) {} }; var a = getGeneratorFunc(); var y = a ? i(a) : {}; r.exports = function isGeneratorFunction(r) { if (typeof r !== "function") { return false; } if (o.test(e.call(r))) { return true; } if (!n) { var a = t.call(r); return a === "[object GeneratorFunction]"; } return i(r) === y; }; }, 234: function (r, t, e) { "use strict"; var o = e(219); var n = e(627); var i = e(749); var a = i("Object.prototype.toString"); var y = e(449)(); var p = y && typeof Symbol.toStringTag === "symbol"; var f = n(); var u = i("Array.prototype.indexOf", true) || function indexOf(r, t) { for (var e = 0; e < r.length; e += 1) { if (r[e] === t) { return e; } } return -1; }; var s = i("String.prototype.slice"); var c = {}; var l = e(982); var d = Object.getPrototypeOf; if (p && l && d) { o(f, function (r) { var t = new __webpack_require__.g[r](); if (!(Symbol.toStringTag in t)) { throw new EvalError( "this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this." ); } var e = d(t); var o = l(e, Symbol.toStringTag); if (!o) { var n = d(e); o = l(n, Symbol.toStringTag); } c[r] = o.get; }); } var g = function tryAllTypedArrays(r) { var t = false; o(c, function (e, o) { if (!t) { try { t = e.call(r) === o; } catch (r) {} } }); return t; }; r.exports = function isTypedArray(r) { if (!r || typeof r !== "object") { return false; } if (!p) { var t = s(a(r), 8, -1); return u(f, t) > -1; } if (!l) { return false; } return g(r); }; }, 982: function (r, t, e) { "use strict"; var o = e(879); var n = o("%Object.getOwnPropertyDescriptor%"); if (n) { try { n([], "length"); } catch (r) { n = null; } } r.exports = n; }, 536: function (r) { r.exports = function isBuffer(r) { return r instanceof Buffer; }; }, 3: function (r, t, e) { "use strict"; var o = e(312); var n = e(906); var i = e(715); var a = e(234); function uncurryThis(r) { return r.call.bind(r); } var y = typeof BigInt !== "undefined"; var p = typeof Symbol !== "undefined"; var f = uncurryThis(Object.prototype.toString); var u = uncurryThis(Number.prototype.valueOf); var s = uncurryThis(String.prototype.valueOf); var c = uncurryThis(Boolean.prototype.valueOf); if (y) { var l = uncurryThis(BigInt.prototype.valueOf); } if (p) { var d = uncurryThis(Symbol.prototype.valueOf); } function checkBoxedPrimitive(r, t) { if (typeof r !== "object") { return false; } try { t(r); return true; } catch (r) { return false; } } t.isArgumentsObject = o; t.isGeneratorFunction = n; t.isTypedArray = a; function isPromise(r) { return ( (typeof Promise !== "undefined" && r instanceof Promise) || (r !== null && typeof r === "object" && typeof r.then === "function" && typeof r.catch === "function") ); } t.isPromise = isPromise; function isArrayBufferView(r) { if ( typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView ) { return ArrayBuffer.isView(r); } return a(r) || isDataView(r); } t.isArrayBufferView = isArrayBufferView; function isUint8Array(r) { return i(r) === "Uint8Array"; } t.isUint8Array = isUint8Array; function isUint8ClampedArray(r) { return i(r) === "Uint8ClampedArray"; } t.isUint8ClampedArray = isUint8ClampedArray; function isUint16Array(r) { return i(r) === "Uint16Array"; } t.isUint16Array = isUint16Array; function isUint32Array(r) { return i(r) === "Uint32Array"; } t.isUint32Array = isUint32Array; function isInt8Array(r) { return i(r) === "Int8Array"; } t.isInt8Array = isInt8Array; function isInt16Array(r) { return i(r) === "Int16Array"; } t.isInt16Array = isInt16Array; function isInt32Array(r) { return i(r) === "Int32Array"; } t.isInt32Array = isInt32Array; function isFloat32Array(r) { return i(r) === "Float32Array"; } t.isFloat32Array = isFloat32Array; function isFloat64Array(r) { return i(r) === "Float64Array"; } t.isFloat64Array = isFloat64Array; function isBigInt64Array(r) { return i(r) === "BigInt64Array"; } t.isBigInt64Array = isBigInt64Array; function isBigUint64Array(r) { return i(r) === "BigUint64Array"; } t.isBigUint64Array = isBigUint64Array; function isMapToString(r) { return f(r) === "[object Map]"; } isMapToString.working = typeof Map !== "undefined" && isMapToString(new Map()); function isMap(r) { if (typeof Map === "undefined") { return false; } return isMapToString.working ? isMapToString(r) : r instanceof Map; } t.isMap = isMap; function isSetToString(r) { return f(r) === "[object Set]"; } isSetToString.working = typeof Set !== "undefined" && isSetToString(new Set()); function isSet(r) { if (typeof Set === "undefined") { return false; } return isSetToString.working ? isSetToString(r) : r instanceof Set; } t.isSet = isSet; function isWeakMapToString(r) { return f(r) === "[object WeakMap]"; } isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(new WeakMap()); function isWeakMap(r) { if (typeof WeakMap === "undefined") { return false; } return isWeakMapToString.working ? isWeakMapToString(r) : r instanceof WeakMap; } t.isWeakMap = isWeakMap; function isWeakSetToString(r) { return f(r) === "[object WeakSet]"; } isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(new WeakSet()); function isWeakSet(r) { return isWeakSetToString(r); } t.isWeakSet = isWeakSet; function isArrayBufferToString(r) { return f(r) === "[object ArrayBuffer]"; } isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer()); function isArrayBuffer(r) { if (typeof ArrayBuffer === "undefined") { return false; } return isArrayBufferToString.working ? isArrayBufferToString(r) : r instanceof ArrayBuffer; } t.isArrayBuffer = isArrayBuffer; function isDataViewToString(r) { return f(r) === "[object DataView]"; } isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString( new DataView(new ArrayBuffer(1), 0, 1) ); function isDataView(r) { if (typeof DataView === "undefined") { return false; } return isDataViewToString.working ? isDataViewToString(r) : r instanceof DataView; } t.isDataView = isDataView; var g = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : undefined; function isSharedArrayBufferToString(r) { return f(r) === "[object SharedArrayBuffer]"; } function isSharedArrayBuffer(r) { if (typeof g === "undefined") { return false; } if ( typeof isSharedArrayBufferToString.working === "undefined" ) { isSharedArrayBufferToString.working = isSharedArrayBufferToString(new g()); } return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(r) : r instanceof g; } t.isSharedArrayBuffer = isSharedArrayBuffer; function isAsyncFunction(r) { return f(r) === "[object AsyncFunction]"; } t.isAsyncFunction = isAsyncFunction; function isMapIterator(r) { return f(r) === "[object Map Iterator]"; } t.isMapIterator = isMapIterator; function isSetIterator(r) { return f(r) === "[object Set Iterator]"; } t.isSetIterator = isSetIterator; function isGeneratorObject(r) { return f(r) === "[object Generator]"; } t.isGeneratorObject = isGeneratorObject; function isWebAssemblyCompiledModule(r) { return f(r) === "[object WebAssembly.Module]"; } t.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule; function isNumberObject(r) { return checkBoxedPrimitive(r, u); } t.isNumberObject = isNumberObject; function isStringObject(r) { return checkBoxedPrimitive(r, s); } t.isStringObject = isStringObject; function isBooleanObject(r) { return checkBoxedPrimitive(r, c); } t.isBooleanObject = isBooleanObject; function isBigIntObject(r) { return y && checkBoxedPrimitive(r, l); } t.isBigIntObject = isBigIntObject; function isSymbolObject(r) { return p && checkBoxedPrimitive(r, d); } t.isSymbolObject = isSymbolObject; function isBoxedPrimitive(r) { return ( isNumberObject(r) || isStringObject(r) || isBooleanObject(r) || isBigIntObject(r) || isSymbolObject(r) ); } t.isBoxedPrimitive = isBoxedPrimitive; function isAnyArrayBuffer(r) { return ( typeof Uint8Array !== "undefined" && (isArrayBuffer(r) || isSharedArrayBuffer(r)) ); } t.isAnyArrayBuffer = isAnyArrayBuffer; [ "isProxy", "isExternal", "isModuleNamespaceObject", ].forEach(function (r) { Object.defineProperty(t, r, { enumerable: false, value: function () { throw new Error( r + " is not supported in userland" ); }, }); }); }, 650: function (r, t, e) { var o = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(r) { var t = Object.keys(r); var e = {}; for (var o = 0; o < t.length; o++) { e[t[o]] = Object.getOwnPropertyDescriptor( r, t[o] ); } return e; }; var n = /%[sdj%]/g; t.format = function (r) { if (!isString(r)) { var t = []; for (var e = 0; e < arguments.length; e++) { t.push(inspect(arguments[e])); } return t.join(" "); } var e = 1; var o = arguments; var i = o.length; var a = String(r).replace(n, function (r) { if (r === "%%") return "%"; if (e >= i) return r; switch (r) { case "%s": return String(o[e++]); case "%d": return Number(o[e++]); case "%j": try { return JSON.stringify(o[e++]); } catch (r) { return "[Circular]"; } default: return r; } }); for (var y = o[e]; e < i; y = o[++e]) { if (isNull(y) || !isObject(y)) { a += " " + y; } else { a += " " + inspect(y); } } return a; }; t.deprecate = function (r, e) { if ( typeof process !== "undefined" && process.noDeprecation === true ) { return r; } if (typeof process === "undefined") { return function () { return t .deprecate(r, e) .apply(this, arguments); }; } var o = false; function deprecated() { if (!o) { if (process.throwDeprecation) { throw new Error(e); } else if (process.traceDeprecation) { console.trace(e); } else { console.error(e); } o = true; } return r.apply(this, arguments); } return deprecated; }; var i = {}; var a = /^$/; if (process.env.NODE_DEBUG) { var y = process.env.NODE_DEBUG; y = y .replace(/[|\\{}()[\]^$+?.]/g, "\\$&") .replace(/\*/g, ".*") .replace(/,/g, "$|^") .toUpperCase(); a = new RegExp("^" + y + "$", "i"); } t.debuglog = function (r) { r = r.toUpperCase(); if (!i[r]) { if (a.test(r)) { var e = process.pid; i[r] = function () { var o = t.format.apply( t, arguments ); console.error("%s %d: %s", r, e, o); }; } else { i[r] = function () {}; } } return i[r]; }; function inspect(r, e) { var o = { seen: [], stylize: stylizeNoColor, }; if (arguments.length >= 3) o.depth = arguments[2]; if (arguments.length >= 4) o.colors = arguments[3]; if (isBoolean(e)) { o.showHidden = e; } else if (e) { t._extend(o, e); } if (isUndefined(o.showHidden)) o.showHidden = false; if (isUndefined(o.depth)) o.depth = 2; if (isUndefined(o.colors)) o.colors = false; if (isUndefined(o.customInspect)) o.customInspect = true; if (o.colors) o.stylize = stylizeWithColor; return formatValue(o, r, o.depth); } t.inspect = inspect; inspect.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39], }; inspect.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red", }; function stylizeWithColor(r, t) { var e = inspect.styles[t]; if (e) { return ( "[" + inspect.colors[e][0] + "m" + r + "[" + inspect.colors[e][1] + "m" ); } else { return r; } } function stylizeNoColor(r, t) { return r; } function arrayToHash(r) { var t = {}; r.forEach(function (r, e) { t[r] = true; }); return t; } function formatValue(r, e, o) { if ( r.customInspect && e && isFunction(e.inspect) && e.inspect !== t.inspect && !( e.constructor && e.constructor.prototype === e ) ) { var n = e.inspect(o, r); if (!isString(n)) { n = formatValue(r, n, o); } return n; } var i = formatPrimitive(r, e); if (i) { return i; } var a = Object.keys(e); var y = arrayToHash(a); if (r.showHidden) { a = Object.getOwnPropertyNames(e); } if ( isError(e) && (a.indexOf("message") >= 0 || a.indexOf("description") >= 0) ) { return formatError(e); } if (a.length === 0) { if (isFunction(e)) { var p = e.name ? ": " + e.name : ""; return r.stylize( "[Function" + p + "]", "special" ); } if (isRegExp(e)) { return r.stylize( RegExp.prototype.toString.call(e), "regexp" ); } if (isDate(e)) { return r.stylize( Date.prototype.toString.call(e), "date" ); } if (isError(e)) { return formatError(e); } } var f = "", u = false, s = ["{", "}"]; if (isArray(e)) { u = true; s = ["[", "]"]; } if (isFunction(e)) { var c = e.name ? ": " + e.name : ""; f = " [Function" + c + "]"; } if (isRegExp(e)) { f = " " + RegExp.prototype.toString.call(e); } if (isDate(e)) { f = " " + Date.prototype.toUTCString.call(e); } if (isError(e)) { f = " " + formatError(e); } if (a.length === 0 && (!u || e.length == 0)) { return s[0] + f + s[1]; } if (o < 0) { if (isRegExp(e)) { return r.stylize( RegExp.prototype.toString.call(e), "regexp" ); } else { return r.stylize("[Object]", "special"); } } r.seen.push(e); var l; if (u) { l = formatArray(r, e, o, y, a); } else { l = a.map(function (t) { return formatProperty(r, e, o, y, t, u); }); } r.seen.pop(); return reduceToSingleString(l, f, s); } function formatPrimitive(r, t) { if (isUndefined(t)) return r.stylize("undefined", "undefined"); if (isString(t)) { var e = "'" + JSON.stringify(t) .replace(/^"|"$/g, "") .replace(/'/g, "\\'") .replace(/\\"/g, '"') + "'"; return r.stylize(e, "string"); } if (isNumber(t)) return r.stylize("" + t, "number"); if (isBoolean(t)) return r.stylize("" + t, "boolean"); if (isNull(t)) return r.stylize("null", "null"); } function formatError(r) { return ( "[" + Error.prototype.toString.call(r) + "]" ); } function formatArray(r, t, e, o, n) { var i = []; for (var a = 0, y = t.length; a < y; ++a) { if (hasOwnProperty(t, String(a))) { i.push( formatProperty( r, t, e, o, String(a), true ) ); } else { i.push(""); } } n.forEach(function (n) { if (!n.match(/^\d+$/)) { i.push( formatProperty(r, t, e, o, n, true) ); } }); return i; } function formatProperty(r, t, e, o, n, i) { var a, y, p; p = Object.getOwnPropertyDescriptor(t, n) || { value: t[n], }; if (p.get) { if (p.set) { y = r.stylize( "[Getter/Setter]", "special" ); } else { y = r.stylize("[Getter]", "special"); } } else { if (p.set) { y = r.stylize("[Setter]", "special"); } } if (!hasOwnProperty(o, n)) { a = "[" + n + "]"; } if (!y) { if (r.seen.indexOf(p.value) < 0) { if (isNull(e)) { y = formatValue(r, p.value, null); } else { y = formatValue(r, p.value, e - 1); } if (y.indexOf("\n") > -1) { if (i) { y = y .split("\n") .map(function (r) { return " " + r; }) .join("\n") .substr(2); } else { y = "\n" + y .split("\n") .map(function (r) { return " " + r; }) .join("\n"); } } } else { y = r.stylize("[Circular]", "special"); } } if (isUndefined(a)) { if (i && n.match(/^\d+$/)) { return y; } a = JSON.stringify("" + n); if ( a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ) { a = a.substr(1, a.length - 2); a = r.stylize(a, "name"); } else { a = a .replace(/'/g, "\\'") .replace(/\\"/g, '"') .replace(/(^"|"$)/g, "'"); a = r.stylize(a, "string"); } } return a + ": " + y; } function reduceToSingleString(r, t, e) { var o = 0; var n = r.reduce(function (r, t) { o++; if (t.indexOf("\n") >= 0) o++; return ( r + t.replace(/\u001b\[\d\d?m/g, "") .length + 1 ); }, 0); if (n > 60) { return ( e[0] + (t === "" ? "" : t + "\n ") + " " + r.join(",\n ") + " " + e[1] ); } return ( e[0] + t + " " + r.join(", ") + " " + e[1] ); } t.types = e(3); function isArray(r) { return Array.isArray(r); } t.isArray = isArray; function isBoolean(r) { return typeof r === "boolean"; } t.isBoolean = isBoolean; function isNull(r) { return r === null; } t.isNull = isNull; function isNullOrUndefined(r) { return r == null; } t.isNullOrUndefined = isNullOrUndefined; function isNumber(r) { return typeof r === "number"; } t.isNumber = isNumber; function isString(r) { return typeof r === "string"; } t.isString = isString; function isSymbol(r) { return typeof r === "symbol"; } t.isSymbol = isSymbol; function isUndefined(r) { return r === void 0; } t.isUndefined = isUndefined; function isRegExp(r) { return ( isObject(r) && objectToString(r) === "[object RegExp]" ); } t.isRegExp = isRegExp; t.types.isRegExp = isRegExp; function isObject(r) { return typeof r === "object" && r !== null; } t.isObject = isObject; function isDate(r) { return ( isObject(r) && objectToString(r) === "[object Date]" ); } t.isDate = isDate; t.types.isDate = isDate; function isError(r) { return ( isObject(r) && (objectToString(r) === "[object Error]" || r instanceof Error) ); } t.isError = isError; t.types.isNativeError = isError; function isFunction(r) { return typeof r === "function"; } t.isFunction = isFunction; function isPrimitive(r) { return ( r === null || typeof r === "boolean" || typeof r === "number" || typeof r === "string" || typeof r === "symbol" || typeof r === "undefined" ); } t.isPrimitive = isPrimitive; t.isBuffer = e(536); function objectToString(r) { return Object.prototype.toString.call(r); } function pad(r) { return r < 10 ? "0" + r.toString(10) : r.toString(10); } var p = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ]; function timestamp() { var r = new Date(); var t = [ pad(r.getHours()), pad(r.getMinutes()), pad(r.getSeconds()), ].join(":"); return [r.getDate(), p[r.getMonth()], t].join( " " ); } t.log = function () { console.log( "%s - %s", timestamp(), t.format.apply(t, arguments) ); }; t.inherits = e(526); t._extend = function (r, t) { if (!t || !isObject(t)) return r; var e = Object.keys(t); var o = e.length; while (o--) { r[e[o]] = t[e[o]]; } return r; }; function hasOwnProperty(r, t) { return Object.prototype.hasOwnProperty.call( r, t ); } var f = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : undefined; t.promisify = function promisify(r) { if (typeof r !== "function") throw new TypeError( 'The "original" argument must be of type Function' ); if (f && r[f]) { var t = r[f]; if (typeof t !== "function") { throw new TypeError( 'The "util.promisify.custom" argument must be of type Function' ); } Object.defineProperty(t, f, { value: t, enumerable: false, writable: false, configurable: true, }); return t; } function t() { var t, e; var o = new Promise(function (r, o) { t = r; e = o; }); var n = []; for (var i = 0; i < arguments.length; i++) { n.push(arguments[i]); } n.push(function (r, o) { if (r) { e(r); } else { t(o); } }); try { r.apply(this, n); } catch (r) { e(r); } return o; } Object.setPrototypeOf( t, Object.getPrototypeOf(r) ); if (f) Object.defineProperty(t, f, { value: t, enumerable: false, writable: false, configurable: true, }); return Object.defineProperties(t, o(r)); }; t.promisify.custom = f; function callbackifyOnRejected(r, t) { if (!r) { var e = new Error( "Promise was rejected with a falsy value" ); e.reason = r; r = e; } return t(r); } function callbackify(r) { if (typeof r !== "function") { throw new TypeError( 'The "original" argument must be of type Function' ); } function callbackified() { var t = []; for (var e = 0; e < arguments.length; e++) { t.push(arguments[e]); } var o = t.pop(); if (typeof o !== "function") { throw new TypeError( "The last argument must be of type Function" ); } var n = this; var cb = function () { return o.apply(n, arguments); }; r.apply(this, t).then( function (r) { process.nextTick( cb.bind(null, null, r) ); }, function (r) { process.nextTick( callbackifyOnRejected.bind( null, r, cb ) ); } ); } Object.setPrototypeOf( callbackified, Object.getPrototypeOf(r) ); Object.defineProperties(callbackified, o(r)); return callbackified; } t.callbackify = callbackify; }, 715: function (r, t, e) { "use strict"; var o = e(219); var n = e(627); var i = e(749); var a = i("Object.prototype.toString"); var y = e(449)(); var p = y && typeof Symbol.toStringTag === "symbol"; var f = n(); var u = i("String.prototype.slice"); var s = {}; var c = e(850); var l = Object.getPrototypeOf; if (p && c && l) { o(f, function (r) { if ( typeof __webpack_require__.g[r] === "function" ) { var t = new __webpack_require__.g[r](); if (!(Symbol.toStringTag in t)) { throw new EvalError( "this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this." ); } var e = l(t); var o = c(e, Symbol.toStringTag); if (!o) { var n = l(e); o = c(n, Symbol.toStringTag); } s[r] = o.get; } }); } var d = function tryAllTypedArrays(r) { var t = false; o(s, function (e, o) { if (!t) { try { var n = e.call(r); if (n === o) { t = n; } } catch (r) {} } }); return t; }; var g = e(234); r.exports = function whichTypedArray(r) { if (!g(r)) { return false; } if (!p) { return u(a(r), 8, -1); } return d(r); }; }, 227: function (r, t, e) { "use strict"; var o; var n = SyntaxError; var i = Function; var a = TypeError; var getEvalledConstructor = function (r) { try { return Function( '"use strict"; return (' + r + ").constructor;" )(); } catch (r) {} }; var y = Object.getOwnPropertyDescriptor; if (y) { try { y({}, ""); } catch (r) { y = null; } } var throwTypeError = function () { throw new a(); }; var p = y ? (function () { try { arguments.callee; return throwTypeError; } catch (r) { try { return y(arguments, "callee").get; } catch (r) { return throwTypeError; } } })() : throwTypeError; var f = e(449)(); var u = Object.getPrototypeOf || function (r) { return r.__proto__; }; var s = getEvalledConstructor( "async function* () {}" ); var c = s ? s.prototype : o; var l = c ? c.prototype : o; var d = typeof Uint8Array === "undefined" ? o : u(Uint8Array); var g = { "%AggregateError%": typeof AggregateError === "undefined" ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? o : ArrayBuffer, "%ArrayIteratorPrototype%": f ? u([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": getEvalledConstructor( "async function () {}" ), "%AsyncGenerator%": c, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": l ? u(l) : o, "%Atomics%": typeof Atomics === "undefined" ? o : Atomics, "%BigInt%": typeof BigInt === "undefined" ? o : BigInt, "%Boolean%": Boolean, "%DataView%": typeof DataView === "undefined" ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array === "undefined" ? o : Float32Array, "%Float64Array%": typeof Float64Array === "undefined" ? o : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": getEvalledConstructor("function* () {}"), "%Int8Array%": typeof Int8Array === "undefined" ? o : Int8Array, "%Int16Array%": typeof Int16Array === "undefined" ? o : Int16Array, "%Int32Array%": typeof Int32Array === "undefined" ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": f ? u(u([][Symbol.iterator]())) : o, "%JSON%": typeof JSON === "object" ? JSON : o, "%Map%": typeof Map === "undefined" ? o : Map, "%MapIteratorPrototype%": typeof Map === "undefined" || !f ? o : u(new Map()[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise === "undefined" ? o : Promise, "%Proxy%": typeof Proxy === "undefined" ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect === "undefined" ? o : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set === "undefined" ? o : Set, "%SetIteratorPrototype%": typeof Set === "undefined" || !f ? o : u(new Set()[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": f ? u(""[Symbol.iterator]()) : o, "%Symbol%": f ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": typeof Uint8Array === "undefined" ? o : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? o : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array === "undefined" ? o : Uint16Array, "%Uint32Array%": typeof Uint32Array === "undefined" ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap === "undefined" ? o : WeakMap, "%WeakRef%": typeof WeakRef === "undefined" ? o : WeakRef, "%WeakSet%": typeof WeakSet === "undefined" ? o : WeakSet, }; var A = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype", ], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": [ "Array", "prototype", "entries", ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach", ], "%ArrayProto_keys%": [ "Array", "prototype", "keys", ], "%ArrayProto_values%": [ "Array", "prototype", "values", ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype", ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype", ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype", ], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": [ "DataView", "prototype", ], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": [ "EvalError", "prototype", ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype", ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype", ], "%FunctionPrototype%": [ "Function", "prototype", ], "%Generator%": [ "GeneratorFunction", "prototype", ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype", ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype", ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype", ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype", ], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": [ "Object", "prototype", "toString", ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf", ], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": [ "Promise", "prototype", "then", ], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": [ "RangeError", "prototype", ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype", ], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype", ], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype", ], "%TypedArrayPrototype%": [ "TypedArray", "prototype", ], "%TypeErrorPrototype%": [ "TypeError", "prototype", ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype", ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype", ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype", ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype", ], "%URIErrorPrototype%": [ "URIError", "prototype", ], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"], }; var v = e(517); var b = e(793); var S = v.call( Function.call, Array.prototype.concat ); var m = v.call( Function.apply, Array.prototype.splice ); var P = v.call( Function.call, String.prototype.replace ); var h = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var O = /\\(\\)?/g; var w = function stringToPath(r) { var t = []; P(r, h, function (r, e, o, n) { t[t.length] = o ? P(n, O, "$1") : e || r; }); return t; }; var E = function getBaseIntrinsic(r, t) { var e = r; var o; if (b(A, e)) { o = A[e]; e = "%" + o[0] + "%"; } if (b(g, e)) { var i = g[e]; if (typeof i === "undefined" && !t) { throw new a( "intrinsic " + r + " exists, but is not available. Please file an issue!" ); } return { alias: o, name: e, value: i, }; } throw new n( "intrinsic " + r + " does not exist!" ); }; r.exports = function GetIntrinsic(r, t) { if (typeof r !== "string" || r.length === 0) { throw new a( "intrinsic name must be a non-empty string" ); } if ( arguments.length > 1 && typeof t !== "boolean" ) { throw new a( '"allowMissing" argument must be a boolean' ); } var e = w(r); var o = e.length > 0 ? e[0] : ""; var n = E("%" + o + "%", t); var i = n.name; var p = n.value; var f = false; var u = n.alias; if (u) { o = u[0]; m(e, S([0, 1], u)); } for ( var s = 1, c = true; s < e.length; s += 1 ) { var l = e[s]; if (l === "constructor" || !c) { f = true; } o += "." + l; i = "%" + o + "%"; if (b(g, i)) { p = g[i]; } else if (p != null) { if (y && s + 1 >= e.length) { var d = y(p, l); c = !!d; if (!t && !(l in p)) { throw new a( "base intrinsic for " + r + " exists, but the property is not available." ); } if ( c && "get" in d && !("originalValue" in d.get) ) { p = d.get; } else { p = p[l]; } } else { c = b(p, l); p = p[l]; } if (c && !f) { g[i] = p; } } } return p; }; }, 850: function (r, t, e) { "use strict"; var o = e(227); var n = o("%Object.getOwnPropertyDescriptor%"); if (n) { try { n([], "length"); } catch (r) { n = null; } } r.exports = n; }, 627: function (r, t, e) { "use strict"; var o = e(901); r.exports = function availableTypedArrays() { return o( [ "BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray", ], function (r) { return ( typeof __webpack_require__.g[r] === "function" ); } ); }; }, }; var t = {}; function __nccwpck_require__(e) { var o = t[e]; if (o !== undefined) { return o.exports; } var n = (t[e] = { exports: {}, }); var i = true; try { r[e](n, n.exports, __nccwpck_require__); i = false; } finally { if (i) delete t[e]; } return n.exports; } if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/"; var e = __nccwpck_require__(650); module.exports = e; })(); /***/ }, }, /******/ function (__webpack_require__) { // webpackRuntimeModules /******/ var __webpack_exec__ = function (moduleId) { return __webpack_require__((__webpack_require__.s = moduleId)); }; /******/ __webpack_require__.O(0, [774, 179], function () { return __webpack_exec__(1780), __webpack_exec__(880); }); /******/ var __webpack_exports__ = __webpack_require__.O(); /******/ _N_E = __webpack_exports__; /******/ }, ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/feedback-util-promisify/chunks/pages/_app-72ad41192608e93a/output.js
JavaScript
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 888 ], { /***/ 3454: /***/ function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var ref, ref1; module.exports = (null === (ref = __webpack_require__.g.process) || void 0 === ref ? void 0 : ref.env) && "object" == typeof (null === (ref1 = __webpack_require__.g.process) || void 0 === ref1 ? void 0 : ref1.env) ? __webpack_require__.g.process : __webpack_require__(7663); //# sourceMappingURL=process.js.map /***/ }, /***/ 1780: /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { (window.__NEXT_P = window.__NEXT_P || []).push([ "/_app", function() { return __webpack_require__(8484); } ]); /***/ }, /***/ 8484: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var fn, _ref, _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4051), _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__), react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5893), react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7294), util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9720), util__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/ __webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_3__); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg), value = info.value; } catch (error) { reject(error); return; } info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); } __webpack_require__(6774); var initBranch = (fn = _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() { return _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().wrap(function(_ctx) { for(;;)switch(_ctx.prev = _ctx.next){ case 0: try { // load Branch (function(b, r, a, n, c, h, _, s, d, k) { if (!b[n] || !b[n]._q) { for(; s < _.length;)c(h, _[s++]); (d = r.createElement(a)).async = 1, d.src = "https://cdn.branch.io/branch-latest.min.js", (k = r.getElementsByTagName(a)[0]).parentNode.insertBefore(d, k), b[n] = h; } })(window, document, "script", "branch", function(b, r) { b[r] = function() { b._q.push([ r, arguments ]); }; }, { _q: [], _v: 1 }, "addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent logEvent disableTracking".split(" "), 0), window.branch.initAsync = util__WEBPACK_IMPORTED_MODULE_3___default().promisify(window.branch.init); // const branchData = await window.branch.initAsync('key_live_YOUR_KEY_GOES_HERE'); // return branchData; } catch (error) { console.error(error); } case 1: case "end": return _ctx.stop(); } }, _callee); }), _ref = function() { var self1 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self1, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }, function() { return _ref.apply(this, arguments); }); /* harmony default export */ __webpack_exports__.default = function(param) { var Component = param.Component, pageProps = param.pageProps; return (0, react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function() { initBranch(); }, []), /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Component, function(target) { for(var i = 1; i < arguments.length; i++){ var source = null != arguments[i] ? arguments[i] : {}, ownKeys = Object.keys(source); "function" == typeof Object.getOwnPropertySymbols && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; }))), ownKeys.forEach(function(key) { var value; value = source[key], key in target ? Object.defineProperty(target, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }) : target[key] = value; }); } return target; }({}, pageProps)); }; /***/ }, /***/ 1876: /***/ function(module) { !function() { var e = { 991: function(e, r) { "use strict"; r.byteLength = function(e) { var r = getLens(e), t = r[0], f = r[1]; return (t + f) * 3 / 4 - f; }, r.toByteArray = function(e) { var r, h, t = getLens(e), i = t[0], o = t[1], u = new n((i + o) * 3 / 4 - o), a = 0, s = o > 0 ? i - 4 : i; for(h = 0; h < s; h += 4)r = f[e.charCodeAt(h)] << 18 | f[e.charCodeAt(h + 1)] << 12 | f[e.charCodeAt(h + 2)] << 6 | f[e.charCodeAt(h + 3)], u[a++] = r >> 16 & 255, u[a++] = r >> 8 & 255, u[a++] = 255 & r; return 2 === o && (r = f[e.charCodeAt(h)] << 2 | f[e.charCodeAt(h + 1)] >> 4, u[a++] = 255 & r), 1 === o && (r = f[e.charCodeAt(h)] << 10 | f[e.charCodeAt(h + 1)] << 4 | f[e.charCodeAt(h + 2)] >> 2, u[a++] = r >> 8 & 255, u[a++] = 255 & r), u; }, r.fromByteArray = function(e) { for(var r, f = e.length, n = f % 3, i = [], u = 0, a = f - n; u < a; u += 16383)i.push(function(e, r, t1) { for(var f, n = [], i = r; i < t1; i += 3)n.push(t[(f = (e[i] << 16 & 16711680) + (e[i + 1] << 8 & 65280) + (255 & e[i + 2])) >> 18 & 63] + t[f >> 12 & 63] + t[f >> 6 & 63] + t[63 & f]); return n.join(""); }(e, u, u + 16383 > a ? a : u + 16383)); return 1 === n ? i.push(t[(r = e[f - 1]) >> 2] + t[r << 4 & 63] + "==") : 2 === n && i.push(t[(r = (e[f - 2] << 8) + e[f - 1]) >> 10] + t[r >> 4 & 63] + t[r << 2 & 63] + "="), i.join(""); }; for(var t = [], f = [], n = "undefined" != typeof Uint8Array ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, u = i.length; o < u; ++o)t[o] = i[o], f[i.charCodeAt(o)] = o; function getLens(e) { var r = e.length; if (r % 4 > 0) throw Error("Invalid string. Length must be a multiple of 4"); var t = e.indexOf("="); -1 === t && (t = r); var f = t === r ? 0 : 4 - t % 4; return [ t, f ]; } f["-".charCodeAt(0)] = 62, f["_".charCodeAt(0)] = 63; }, 293: function(e, r, t) { "use strict"; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ var f = t(991), n = t(759), i = "function" == typeof Symbol && "function" == typeof Symbol.for ? Symbol.for("nodejs.util.inspect.custom") : null; function createBuffer(e) { if (e > 2147483647) throw RangeError('The value "' + e + '" is invalid for option "size"'); var r = new Uint8Array(e); return Object.setPrototypeOf(r, Buffer.prototype), r; } function Buffer(e, r, t) { if ("number" == typeof e) { if ("string" == typeof r) throw TypeError('The "string" argument must be of type string. Received type number'); return allocUnsafe(e); } return from(e, r, t); } function from(e, r, t) { if ("string" == typeof e) return function(e, r) { if (("string" != typeof r || "" === r) && (r = "utf8"), !Buffer.isEncoding(r)) throw TypeError("Unknown encoding: " + r); var t = 0 | byteLength(e, r), f = createBuffer(t), n = f.write(e, r); return n !== t && (f = f.slice(0, n)), f; }(e, r); if (ArrayBuffer.isView(e)) return fromArrayLike(e); if (null == e) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e); if (isInstance(e, ArrayBuffer) || e && isInstance(e.buffer, ArrayBuffer) || "undefined" != typeof SharedArrayBuffer && (isInstance(e, SharedArrayBuffer) || e && isInstance(e.buffer, SharedArrayBuffer))) return function(e, r, t) { var f; if (r < 0 || e.byteLength < r) throw RangeError('"offset" is outside of buffer bounds'); if (e.byteLength < r + (t || 0)) throw RangeError('"length" is outside of buffer bounds'); return Object.setPrototypeOf(f = void 0 === r && void 0 === t ? new Uint8Array(e) : void 0 === t ? new Uint8Array(e, r) : new Uint8Array(e, r, t), Buffer.prototype), f; }(e, r, t); if ("number" == typeof e) throw TypeError('The "value" argument must not be of type number. Received type number'); var f = e.valueOf && e.valueOf(); if (null != f && f !== e) return Buffer.from(f, r, t); var n = function(e) { if (Buffer.isBuffer(e)) { var e1, r = 0 | checked(e.length), t = createBuffer(r); return 0 === t.length || e.copy(t, 0, 0, r), t; } return void 0 !== e.length ? "number" != typeof e.length || (e1 = e.length) != e1 ? createBuffer(0) : fromArrayLike(e) : "Buffer" === e.type && Array.isArray(e.data) ? fromArrayLike(e.data) : void 0; }(e); if (n) return n; if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof e[Symbol.toPrimitive]) return Buffer.from(e[Symbol.toPrimitive]("string"), r, t); throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e); } function assertSize(e) { if ("number" != typeof e) throw TypeError('"size" argument must be of type number'); if (e < 0) throw RangeError('The value "' + e + '" is invalid for option "size"'); } function allocUnsafe(e) { return assertSize(e), createBuffer(e < 0 ? 0 : 0 | checked(e)); } function fromArrayLike(e) { for(var r = e.length < 0 ? 0 : 0 | checked(e.length), t = createBuffer(r), f = 0; f < r; f += 1)t[f] = 255 & e[f]; return t; } function checked(e) { if (e >= 2147483647) throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes"); return 0 | e; } function byteLength(e, r) { if (Buffer.isBuffer(e)) return e.length; if (ArrayBuffer.isView(e) || isInstance(e, ArrayBuffer)) return e.byteLength; if ("string" != typeof e) throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e); var t = e.length, f = arguments.length > 2 && !0 === arguments[2]; if (!f && 0 === t) return 0; for(var n = !1;;)switch(r){ case "ascii": case "latin1": case "binary": return t; case "utf8": case "utf-8": return utf8ToBytes(e).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return 2 * t; case "hex": return t >>> 1; case "base64": return base64ToBytes(e).length; default: if (n) return f ? -1 : utf8ToBytes(e).length; r = ("" + r).toLowerCase(), n = !0; } } function slowToString(e, r, t) { var r1, t1, f1 = !1; if ((void 0 === r || r < 0) && (r = 0), r > this.length || ((void 0 === t || t > this.length) && (t = this.length), t <= 0 || (t >>>= 0) <= (r >>>= 0))) return ""; for(e || (e = "utf8");;)switch(e){ case "hex": return function(e, r, t) { var f = e.length; (!r || r < 0) && (r = 0), (!t || t < 0 || t > f) && (t = f); for(var n = "", i = r; i < t; ++i)n += s[e[i]]; return n; }(this, r, t); case "utf8": case "utf-8": return utf8Slice(this, r, t); case "ascii": return function(e, r, t) { var f = ""; t = Math.min(e.length, t); for(var n = r; n < t; ++n)f += String.fromCharCode(127 & e[n]); return f; }(this, r, t); case "latin1": case "binary": return function(e, r, t) { var f = ""; t = Math.min(e.length, t); for(var n = r; n < t; ++n)f += String.fromCharCode(e[n]); return f; }(this, r, t); case "base64": return r1 = r, t1 = t, 0 === r1 && t1 === this.length ? f.fromByteArray(this) : f.fromByteArray(this.slice(r1, t1)); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return function(e, r, t) { for(var f = e.slice(r, t), n = "", i = 0; i < f.length; i += 2)n += String.fromCharCode(f[i] + 256 * f[i + 1]); return n; }(this, r, t); default: if (f1) throw TypeError("Unknown encoding: " + e); e = (e + "").toLowerCase(), f1 = !0; } } function swap(e, r, t) { var f = e[r]; e[r] = e[t], e[t] = f; } function bidirectionalIndexOf(e, r, t, f, n) { var e1; if (0 === e.length) return -1; if ("string" == typeof t ? (f = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), (e1 = t *= 1) != e1 && (t = n ? 0 : e.length - 1), t < 0 && (t = e.length + t), t >= e.length) { if (n) return -1; t = e.length - 1; } else if (t < 0) { if (!n) return -1; t = 0; } if ("string" == typeof r && (r = Buffer.from(r, f)), Buffer.isBuffer(r)) return 0 === r.length ? -1 : arrayIndexOf(e, r, t, f, n); if ("number" == typeof r) return (r &= 255, "function" == typeof Uint8Array.prototype.indexOf) ? n ? Uint8Array.prototype.indexOf.call(e, r, t) : Uint8Array.prototype.lastIndexOf.call(e, r, t) : arrayIndexOf(e, [ r ], t, f, n); throw TypeError("val must be string, number or Buffer"); } function arrayIndexOf(e, r, t, f, n) { var a, i = 1, o = e.length, u = r.length; if (void 0 !== f && ("ucs2" === (f = String(f).toLowerCase()) || "ucs-2" === f || "utf16le" === f || "utf-16le" === f)) { if (e.length < 2 || r.length < 2) return -1; i = 2, o /= 2, u /= 2, t /= 2; } function read(e, r) { return 1 === i ? e[r] : e.readUInt16BE(r * i); } if (n) { var s = -1; for(a = t; a < o; a++)if (read(e, a) === read(r, -1 === s ? 0 : a - s)) { if (-1 === s && (s = a), a - s + 1 === u) return s * i; } else -1 !== s && (a -= a - s), s = -1; } else for(t + u > o && (t = o - u), a = t; a >= 0; a--){ for(var h = !0, c = 0; c < u; c++)if (read(e, a + c) !== read(r, c)) { h = !1; break; } if (h) return a; } return -1; } function utf8Slice(e, r, t) { t = Math.min(e.length, t); for(var f = [], n = r; n < t;){ var a, s, h, c, i = e[n], o = null, u = i > 239 ? 4 : i > 223 ? 3 : i > 191 ? 2 : 1; if (n + u <= t) switch(u){ case 1: i < 128 && (o = i); break; case 2: (192 & (a = e[n + 1])) == 128 && (c = (31 & i) << 6 | 63 & a) > 127 && (o = c); break; case 3: a = e[n + 1], s = e[n + 2], (192 & a) == 128 && (192 & s) == 128 && (c = (15 & i) << 12 | (63 & a) << 6 | 63 & s) > 2047 && (c < 55296 || c > 57343) && (o = c); break; case 4: a = e[n + 1], s = e[n + 2], h = e[n + 3], (192 & a) == 128 && (192 & s) == 128 && (192 & h) == 128 && (c = (15 & i) << 18 | (63 & a) << 12 | (63 & s) << 6 | 63 & h) > 65535 && c < 1114112 && (o = c); } null === o ? (o = 65533, u = 1) : o > 65535 && (o -= 65536, f.push(o >>> 10 & 1023 | 55296), o = 56320 | 1023 & o), f.push(o), n += u; } return function(e) { var r = e.length; if (r <= 4096) return String.fromCharCode.apply(String, e); for(var t = "", f = 0; f < r;)t += String.fromCharCode.apply(String, e.slice(f, f += 4096)); return t; }(f); } function checkOffset(e, r, t) { if (e % 1 != 0 || e < 0) throw RangeError("offset is not uint"); if (e + r > t) throw RangeError("Trying to access beyond buffer length"); } function checkInt(e, r, t, f, n, i) { if (!Buffer.isBuffer(e)) throw TypeError('"buffer" argument must be a Buffer instance'); if (r > n || r < i) throw RangeError('"value" argument is out of bounds'); if (t + f > e.length) throw RangeError("Index out of range"); } function checkIEEE754(e, r, t, f, n, i) { if (t + f > e.length || t < 0) throw RangeError("Index out of range"); } function writeFloat(e, r, t, f, i) { return r *= 1, t >>>= 0, i || checkIEEE754(e, r, t, 4, 34028234663852886e22, -340282346638528860000000000000000000000), n.write(e, r, t, f, 23, 4), t + 4; } function writeDouble(e, r, t, f, i) { return r *= 1, t >>>= 0, i || checkIEEE754(e, r, t, 8, 17976931348623157e292, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000), n.write(e, r, t, f, 52, 8), t + 8; } r.Buffer = Buffer, r.SlowBuffer = function(e) { return +e != e && (e = 0), Buffer.alloc(+e); }, r.INSPECT_MAX_BYTES = 50, r.kMaxLength = 2147483647, Buffer.TYPED_ARRAY_SUPPORT = function() { try { var e = new Uint8Array(1), r = { foo: function() { return 42; } }; return Object.setPrototypeOf(r, Uint8Array.prototype), Object.setPrototypeOf(e, r), 42 === e.foo(); } catch (e) { return !1; } }(), Buffer.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(Buffer.prototype, "parent", { enumerable: !0, get: function() { if (Buffer.isBuffer(this)) return this.buffer; } }), Object.defineProperty(Buffer.prototype, "offset", { enumerable: !0, get: function() { if (Buffer.isBuffer(this)) return this.byteOffset; } }), Buffer.poolSize = 8192, Buffer.from = function(e, r, t) { return from(e, r, t); }, Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype), Object.setPrototypeOf(Buffer, Uint8Array), Buffer.alloc = function(e, r, t) { return (assertSize(e), e <= 0) ? createBuffer(e) : void 0 !== r ? "string" == typeof t ? createBuffer(e).fill(r, t) : createBuffer(e).fill(r) : createBuffer(e); }, Buffer.allocUnsafe = function(e) { return allocUnsafe(e); }, Buffer.allocUnsafeSlow = function(e) { return allocUnsafe(e); }, Buffer.isBuffer = function(e) { return null != e && !0 === e._isBuffer && e !== Buffer.prototype; }, Buffer.compare = function(e, r) { if (isInstance(e, Uint8Array) && (e = Buffer.from(e, e.offset, e.byteLength)), isInstance(r, Uint8Array) && (r = Buffer.from(r, r.offset, r.byteLength)), !Buffer.isBuffer(e) || !Buffer.isBuffer(r)) throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); if (e === r) return 0; for(var t = e.length, f = r.length, n = 0, i = Math.min(t, f); n < i; ++n)if (e[n] !== r[n]) { t = e[n], f = r[n]; break; } return t < f ? -1 : +(f < t); }, Buffer.isEncoding = function(e) { switch(String(e).toLowerCase()){ case "hex": case "utf8": case "utf-8": case "ascii": case "latin1": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return !0; default: return !1; } }, Buffer.concat = function(e, r) { if (!Array.isArray(e)) throw TypeError('"list" argument must be an Array of Buffers'); if (0 === e.length) return Buffer.alloc(0); if (void 0 === r) for(t = 0, r = 0; t < e.length; ++t)r += e[t].length; var t, f = Buffer.allocUnsafe(r), n = 0; for(t = 0; t < e.length; ++t){ var i = e[t]; if (isInstance(i, Uint8Array) && (i = Buffer.from(i)), !Buffer.isBuffer(i)) throw TypeError('"list" argument must be an Array of Buffers'); i.copy(f, n), n += i.length; } return f; }, Buffer.byteLength = byteLength, Buffer.prototype._isBuffer = !0, Buffer.prototype.swap16 = function() { var e = this.length; if (e % 2 != 0) throw RangeError("Buffer size must be a multiple of 16-bits"); for(var r = 0; r < e; r += 2)swap(this, r, r + 1); return this; }, Buffer.prototype.swap32 = function() { var e = this.length; if (e % 4 != 0) throw RangeError("Buffer size must be a multiple of 32-bits"); for(var r = 0; r < e; r += 4)swap(this, r, r + 3), swap(this, r + 1, r + 2); return this; }, Buffer.prototype.swap64 = function() { var e = this.length; if (e % 8 != 0) throw RangeError("Buffer size must be a multiple of 64-bits"); for(var r = 0; r < e; r += 8)swap(this, r, r + 7), swap(this, r + 1, r + 6), swap(this, r + 2, r + 5), swap(this, r + 3, r + 4); return this; }, Buffer.prototype.toString = function() { var e = this.length; return 0 === e ? "" : 0 == arguments.length ? utf8Slice(this, 0, e) : slowToString.apply(this, arguments); }, Buffer.prototype.toLocaleString = Buffer.prototype.toString, Buffer.prototype.equals = function(e) { if (!Buffer.isBuffer(e)) throw TypeError("Argument must be a Buffer"); return this === e || 0 === Buffer.compare(this, e); }, Buffer.prototype.inspect = function() { var e = "", t = r.INSPECT_MAX_BYTES; return e = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (e += " ... "), "<Buffer " + e + ">"; }, i && (Buffer.prototype[i] = Buffer.prototype.inspect), Buffer.prototype.compare = function(e, r, t, f, n) { if (isInstance(e, Uint8Array) && (e = Buffer.from(e, e.offset, e.byteLength)), !Buffer.isBuffer(e)) throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e); if (void 0 === r && (r = 0), void 0 === t && (t = e ? e.length : 0), void 0 === f && (f = 0), void 0 === n && (n = this.length), r < 0 || t > e.length || f < 0 || n > this.length) throw RangeError("out of range index"); if (f >= n && r >= t) return 0; if (f >= n) return -1; if (r >= t) return 1; if (r >>>= 0, t >>>= 0, f >>>= 0, n >>>= 0, this === e) return 0; for(var i = n - f, o = t - r, u = Math.min(i, o), a = this.slice(f, n), s = e.slice(r, t), h = 0; h < u; ++h)if (a[h] !== s[h]) { i = a[h], o = s[h]; break; } return i < o ? -1 : +(o < i); }, Buffer.prototype.includes = function(e, r, t) { return -1 !== this.indexOf(e, r, t); }, Buffer.prototype.indexOf = function(e, r, t) { return bidirectionalIndexOf(this, e, r, t, !0); }, Buffer.prototype.lastIndexOf = function(e, r, t) { return bidirectionalIndexOf(this, e, r, t, !1); }, Buffer.prototype.write = function(e, r, t, f) { if (void 0 === r) f = "utf8", t = this.length, r = 0; else if (void 0 === t && "string" == typeof r) f = r, t = this.length, r = 0; else if (isFinite(r)) r >>>= 0, isFinite(t) ? (t >>>= 0, void 0 === f && (f = "utf8")) : (f = t, t = void 0); else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); var t1, f1, t2, f2, t3, f3, t4, f4, t5, f5, n = this.length - r; if ((void 0 === t || t > n) && (t = n), e.length > 0 && (t < 0 || r < 0) || r > this.length) throw RangeError("Attempt to write outside buffer bounds"); f || (f = "utf8"); for(var i = !1;;)switch(f){ case "hex": return function(e, r, t, f) { t = Number(t) || 0; var n = e.length - t; f ? (f = Number(f)) > n && (f = n) : f = n; var i = r.length; f > i / 2 && (f = i / 2); for(var o = 0; o < f; ++o){ var u = parseInt(r.substr(2 * o, 2), 16); if (u != u) break; e[t + o] = u; } return o; }(this, e, r, t); case "utf8": case "utf-8": return t2 = r, f2 = t, blitBuffer(utf8ToBytes(e, this.length - t2), this, t2, f2); case "ascii": return t3 = r, f3 = t, blitBuffer(asciiToBytes(e), this, t3, f3); case "latin1": case "binary": return t1 = r, f1 = t, blitBuffer(asciiToBytes(e), this, t1, f1); case "base64": return t4 = r, f4 = t, blitBuffer(base64ToBytes(e), this, t4, f4); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return t5 = r, f5 = t, blitBuffer(function(e, r) { for(var t, f, i = [], o = 0; o < e.length && !((r -= 2) < 0); ++o)f = (t = e.charCodeAt(o)) >> 8, i.push(t % 256), i.push(f); return i; }(e, this.length - t5), this, t5, f5); default: if (i) throw TypeError("Unknown encoding: " + f); f = ("" + f).toLowerCase(), i = !0; } }, Buffer.prototype.toJSON = function() { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; }, Buffer.prototype.slice = function(e, r) { var t = this.length; e = ~~e, r = void 0 === r ? t : ~~r, e < 0 ? (e += t) < 0 && (e = 0) : e > t && (e = t), r < 0 ? (r += t) < 0 && (r = 0) : r > t && (r = t), r < e && (r = e); var f = this.subarray(e, r); return Object.setPrototypeOf(f, Buffer.prototype), f; }, Buffer.prototype.readUIntLE = function(e, r, t) { e >>>= 0, r >>>= 0, t || checkOffset(e, r, this.length); for(var f = this[e], n = 1, i = 0; ++i < r && (n *= 256);)f += this[e + i] * n; return f; }, Buffer.prototype.readUIntBE = function(e, r, t) { e >>>= 0, r >>>= 0, t || checkOffset(e, r, this.length); for(var f = this[e + --r], n = 1; r > 0 && (n *= 256);)f += this[e + --r] * n; return f; }, Buffer.prototype.readUInt8 = function(e, r) { return e >>>= 0, r || checkOffset(e, 1, this.length), this[e]; }, Buffer.prototype.readUInt16LE = function(e, r) { return e >>>= 0, r || checkOffset(e, 2, this.length), this[e] | this[e + 1] << 8; }, Buffer.prototype.readUInt16BE = function(e, r) { return e >>>= 0, r || checkOffset(e, 2, this.length), this[e] << 8 | this[e + 1]; }, Buffer.prototype.readUInt32LE = function(e, r) { return e >>>= 0, r || checkOffset(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3]; }, Buffer.prototype.readUInt32BE = function(e, r) { return e >>>= 0, r || checkOffset(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]); }, Buffer.prototype.readIntLE = function(e, r, t) { e >>>= 0, r >>>= 0, t || checkOffset(e, r, this.length); for(var f = this[e], n = 1, i = 0; ++i < r && (n *= 256);)f += this[e + i] * n; return f >= (n *= 128) && (f -= Math.pow(2, 8 * r)), f; }, Buffer.prototype.readIntBE = function(e, r, t) { e >>>= 0, r >>>= 0, t || checkOffset(e, r, this.length); for(var f = r, n = 1, i = this[e + --f]; f > 0 && (n *= 256);)i += this[e + --f] * n; return i >= (n *= 128) && (i -= Math.pow(2, 8 * r)), i; }, Buffer.prototype.readInt8 = function(e, r) { return (e >>>= 0, r || checkOffset(e, 1, this.length), 128 & this[e]) ? -((255 - this[e] + 1) * 1) : this[e]; }, Buffer.prototype.readInt16LE = function(e, r) { e >>>= 0, r || checkOffset(e, 2, this.length); var t = this[e] | this[e + 1] << 8; return 32768 & t ? 4294901760 | t : t; }, Buffer.prototype.readInt16BE = function(e, r) { e >>>= 0, r || checkOffset(e, 2, this.length); var t = this[e + 1] | this[e] << 8; return 32768 & t ? 4294901760 | t : t; }, Buffer.prototype.readInt32LE = function(e, r) { return e >>>= 0, r || checkOffset(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24; }, Buffer.prototype.readInt32BE = function(e, r) { return e >>>= 0, r || checkOffset(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]; }, Buffer.prototype.readFloatLE = function(e, r) { return e >>>= 0, r || checkOffset(e, 4, this.length), n.read(this, e, !0, 23, 4); }, Buffer.prototype.readFloatBE = function(e, r) { return e >>>= 0, r || checkOffset(e, 4, this.length), n.read(this, e, !1, 23, 4); }, Buffer.prototype.readDoubleLE = function(e, r) { return e >>>= 0, r || checkOffset(e, 8, this.length), n.read(this, e, !0, 52, 8); }, Buffer.prototype.readDoubleBE = function(e, r) { return e >>>= 0, r || checkOffset(e, 8, this.length), n.read(this, e, !1, 52, 8); }, Buffer.prototype.writeUIntLE = function(e, r, t, f) { if (e *= 1, r >>>= 0, t >>>= 0, !f) { var n = Math.pow(2, 8 * t) - 1; checkInt(this, e, r, t, n, 0); } var i = 1, o = 0; for(this[r] = 255 & e; ++o < t && (i *= 256);)this[r + o] = e / i & 255; return r + t; }, Buffer.prototype.writeUIntBE = function(e, r, t, f) { if (e *= 1, r >>>= 0, t >>>= 0, !f) { var n = Math.pow(2, 8 * t) - 1; checkInt(this, e, r, t, n, 0); } var i = t - 1, o = 1; for(this[r + i] = 255 & e; --i >= 0 && (o *= 256);)this[r + i] = e / o & 255; return r + t; }, Buffer.prototype.writeUInt8 = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 1, 255, 0), this[r] = 255 & e, r + 1; }, Buffer.prototype.writeUInt16LE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 2, 65535, 0), this[r] = 255 & e, this[r + 1] = e >>> 8, r + 2; }, Buffer.prototype.writeUInt16BE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 2, 65535, 0), this[r] = e >>> 8, this[r + 1] = 255 & e, r + 2; }, Buffer.prototype.writeUInt32LE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 4, 4294967295, 0), this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = 255 & e, r + 4; }, Buffer.prototype.writeUInt32BE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 4, 4294967295, 0), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = 255 & e, r + 4; }, Buffer.prototype.writeIntLE = function(e, r, t, f) { if (e *= 1, r >>>= 0, !f) { var n = Math.pow(2, 8 * t - 1); checkInt(this, e, r, t, n - 1, -n); } var i = 0, o = 1, u = 0; for(this[r] = 255 & e; ++i < t && (o *= 256);)e < 0 && 0 === u && 0 !== this[r + i - 1] && (u = 1), this[r + i] = (e / o >> 0) - u & 255; return r + t; }, Buffer.prototype.writeIntBE = function(e, r, t, f) { if (e *= 1, r >>>= 0, !f) { var n = Math.pow(2, 8 * t - 1); checkInt(this, e, r, t, n - 1, -n); } var i = t - 1, o = 1, u = 0; for(this[r + i] = 255 & e; --i >= 0 && (o *= 256);)e < 0 && 0 === u && 0 !== this[r + i + 1] && (u = 1), this[r + i] = (e / o >> 0) - u & 255; return r + t; }, Buffer.prototype.writeInt8 = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[r] = 255 & e, r + 1; }, Buffer.prototype.writeInt16LE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 2, 32767, -32768), this[r] = 255 & e, this[r + 1] = e >>> 8, r + 2; }, Buffer.prototype.writeInt16BE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 2, 32767, -32768), this[r] = e >>> 8, this[r + 1] = 255 & e, r + 2; }, Buffer.prototype.writeInt32LE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 4, 2147483647, -2147483648), this[r] = 255 & e, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24, r + 4; }, Buffer.prototype.writeInt32BE = function(e, r, t) { return e *= 1, r >>>= 0, t || checkInt(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = 255 & e, r + 4; }, Buffer.prototype.writeFloatLE = function(e, r, t) { return writeFloat(this, e, r, !0, t); }, Buffer.prototype.writeFloatBE = function(e, r, t) { return writeFloat(this, e, r, !1, t); }, Buffer.prototype.writeDoubleLE = function(e, r, t) { return writeDouble(this, e, r, !0, t); }, Buffer.prototype.writeDoubleBE = function(e, r, t) { return writeDouble(this, e, r, !1, t); }, Buffer.prototype.copy = function(e, r, t, f) { if (!Buffer.isBuffer(e)) throw TypeError("argument should be a Buffer"); if (t || (t = 0), f || 0 === f || (f = this.length), r >= e.length && (r = e.length), r || (r = 0), f > 0 && f < t && (f = t), f === t || 0 === e.length || 0 === this.length) return 0; if (r < 0) throw RangeError("targetStart out of bounds"); if (t < 0 || t >= this.length) throw RangeError("Index out of range"); if (f < 0) throw RangeError("sourceEnd out of bounds"); f > this.length && (f = this.length), e.length - r < f - t && (f = e.length - r + t); var n = f - t; if (this === e && "function" == typeof Uint8Array.prototype.copyWithin) this.copyWithin(r, t, f); else if (this === e && t < r && r < f) for(var i = n - 1; i >= 0; --i)e[i + r] = this[i + t]; else Uint8Array.prototype.set.call(e, this.subarray(t, f), r); return n; }, Buffer.prototype.fill = function(e, r, t, f) { if ("string" == typeof e) { if ("string" == typeof r ? (f = r, r = 0, t = this.length) : "string" == typeof t && (f = t, t = this.length), void 0 !== f && "string" != typeof f) throw TypeError("encoding must be a string"); if ("string" == typeof f && !Buffer.isEncoding(f)) throw TypeError("Unknown encoding: " + f); if (1 === e.length) { var i, n = e.charCodeAt(0); ("utf8" === f && n < 128 || "latin1" === f) && (e = n); } } else "number" == typeof e ? e &= 255 : "boolean" == typeof e && (e = Number(e)); if (r < 0 || this.length < r || this.length < t) throw RangeError("Out of range index"); if (t <= r) return this; if (r >>>= 0, t = void 0 === t ? this.length : t >>> 0, e || (e = 0), "number" == typeof e) for(i = r; i < t; ++i)this[i] = e; else { var o = Buffer.isBuffer(e) ? e : Buffer.from(e, f), u = o.length; if (0 === u) throw TypeError('The value "' + e + '" is invalid for argument "value"'); for(i = 0; i < t - r; ++i)this[i + r] = o[i % u]; } return this; }; var a = /[^+/0-9A-Za-z-_]/g; function utf8ToBytes(e, r) { r = r || 1 / 0; for(var t, f = e.length, n = null, i = [], o = 0; o < f; ++o){ if ((t = e.charCodeAt(o)) > 55295 && t < 57344) { if (!n) { if (t > 56319 || o + 1 === f) { (r -= 3) > -1 && i.push(239, 191, 189); continue; } n = t; continue; } if (t < 56320) { (r -= 3) > -1 && i.push(239, 191, 189), n = t; continue; } t = (n - 55296 << 10 | t - 56320) + 65536; } else n && (r -= 3) > -1 && i.push(239, 191, 189); if (n = null, t < 128) { if ((r -= 1) < 0) break; i.push(t); } else if (t < 2048) { if ((r -= 2) < 0) break; i.push(t >> 6 | 192, 63 & t | 128); } else if (t < 65536) { if ((r -= 3) < 0) break; i.push(t >> 12 | 224, t >> 6 & 63 | 128, 63 & t | 128); } else if (t < 1114112) { if ((r -= 4) < 0) break; i.push(t >> 18 | 240, t >> 12 & 63 | 128, t >> 6 & 63 | 128, 63 & t | 128); } else throw Error("Invalid code point"); } return i; } function asciiToBytes(e) { for(var r = [], t = 0; t < e.length; ++t)r.push(255 & e.charCodeAt(t)); return r; } function base64ToBytes(e) { return f.toByteArray(function(e) { if ((e = (e = e.split("=")[0]).trim().replace(a, "")).length < 2) return ""; for(; e.length % 4 != 0;)e += "="; return e; }(e)); } function blitBuffer(e, r, t, f) { for(var n = 0; n < f && !(n + t >= r.length) && !(n >= e.length); ++n)r[n + t] = e[n]; return n; } function isInstance(e, r) { return e instanceof r || null != e && null != e.constructor && null != e.constructor.name && e.constructor.name === r.name; } var s = function() { for(var e = "0123456789abcdef", r = Array(256), t = 0; t < 16; ++t)for(var f = 16 * t, n = 0; n < 16; ++n)r[f + n] = e[t] + e[n]; return r; }(); }, 759: function(e, r) { r.read = function(e, r, t, f, n) { var i, o, u = 8 * n - f - 1, a = (1 << u) - 1, s = a >> 1, h = -7, c = t ? n - 1 : 0, l = t ? -1 : 1, p = e[r + c]; for(c += l, i = p & (1 << -h) - 1, p >>= -h, h += u; h > 0; i = 256 * i + e[r + c], c += l, h -= 8); for(o = i & (1 << -h) - 1, i >>= -h, h += f; h > 0; o = 256 * o + e[r + c], c += l, h -= 8); if (0 === i) i = 1 - s; else { if (i === a) return o ? NaN : 1 / 0 * (p ? -1 : 1); o += Math.pow(2, f), i -= s; } return (p ? -1 : 1) * o * Math.pow(2, i - f); }, r.write = function(e, r, t, f, n, i) { var o, u, a, s = 8 * i - n - 1, h = (1 << s) - 1, c = h >> 1, l = 0.00000005960464477539062 * (23 === n), p = f ? 0 : i - 1, y = f ? 1 : -1, g = +(r < 0 || 0 === r && 1 / r < 0); for(isNaN(r = Math.abs(r)) || r === 1 / 0 ? (u = +!!isNaN(r), o = h) : (o = Math.floor(Math.log(r) / Math.LN2), r * (a = Math.pow(2, -o)) < 1 && (o--, a *= 2), o + c >= 1 ? r += l / a : r += l * Math.pow(2, 1 - c), r * a >= 2 && (o++, a /= 2), o + c >= h ? (u = 0, o = h) : o + c >= 1 ? (u = (r * a - 1) * Math.pow(2, n), o += c) : (u = r * Math.pow(2, c - 1) * Math.pow(2, n), o = 0)); n >= 8; e[t + p] = 255 & u, p += y, u /= 256, n -= 8); for(o = o << n | u, s += n; s > 0; e[t + p] = 255 & o, p += y, o /= 256, s -= 8); e[t + p - y] |= 128 * g; }; } }, r = {}; function __nccwpck_require__(t) { var f = r[t]; if (void 0 !== f) return f.exports; var n = r[t] = { exports: {} }, i = !0; try { e[t](n, n.exports, __nccwpck_require__), i = !1; } finally{ i && delete r[t]; } return n.exports; } __nccwpck_require__.ab = "//", module.exports = __nccwpck_require__(293); }(); /***/ }, /***/ 6774: /***/ function() { // extracted by mini-css-extract-plugin /***/ }, /***/ 7663: /***/ function(module) { !function() { var e = { 162: function(e) { var r, n, u, t = e.exports = {}; function defaultSetTimout() { throw Error("setTimeout has not been defined"); } function defaultClearTimeout() { throw Error("clearTimeout has not been defined"); } function runTimeout(e) { if (r === setTimeout) return setTimeout(e, 0); if ((r === defaultSetTimout || !r) && setTimeout) return r = setTimeout, setTimeout(e, 0); try { return r(e, 0); } catch (t) { try { return r.call(null, e, 0); } catch (t) { return r.call(this, e, 0); } } } !function() { try { r = "function" == typeof setTimeout ? setTimeout : defaultSetTimout; } catch (e) { r = defaultSetTimout; } try { n = "function" == typeof clearTimeout ? clearTimeout : defaultClearTimeout; } catch (e) { n = defaultClearTimeout; } }(); var i = [], o = !1, a = -1; function cleanUpNextTick() { o && u && (o = !1, u.length ? i = u.concat(i) : a = -1, i.length && drainQueue()); } function drainQueue() { if (!o) { var e = runTimeout(cleanUpNextTick); o = !0; for(var t = i.length; t;){ for(u = i, i = []; ++a < t;)u && u[a].run(); a = -1, t = i.length; } u = null, o = !1, function(e) { if (n === clearTimeout) return clearTimeout(e); if ((n === defaultClearTimeout || !n) && clearTimeout) return n = clearTimeout, clearTimeout(e); try { n(e); } catch (t) { try { return n.call(null, e); } catch (t) { return n.call(this, e); } } }(e); } } function Item(e, t) { this.fun = e, this.array = t; } function noop() {} t.nextTick = function(e) { var t = Array(arguments.length - 1); if (arguments.length > 1) for(var r = 1; r < arguments.length; r++)t[r - 1] = arguments[r]; i.push(new Item(e, t)), 1 !== i.length || o || runTimeout(drainQueue); }, Item.prototype.run = function() { this.fun.apply(null, this.array); }, t.title = "browser", t.browser = !0, t.env = {}, t.argv = [], t.version = "", t.versions = {}, t.on = noop, t.addListener = noop, t.once = noop, t.off = noop, t.removeListener = noop, t.removeAllListeners = noop, t.emit = noop, t.prependListener = noop, t.prependOnceListener = noop, t.listeners = function(e) { return []; }, t.binding = function(e) { throw Error("process.binding is not supported"); }, t.cwd = function() { return "/"; }, t.chdir = function(e) { throw Error("process.chdir is not supported"); }, t.umask = function() { return 0; }; } }, t = {}; function __nccwpck_require__(r) { var n = t[r]; if (void 0 !== n) return n.exports; var i = t[r] = { exports: {} }, o = !0; try { e[r](i, i.exports, __nccwpck_require__), o = !1; } finally{ o && delete t[r]; } return i.exports; } __nccwpck_require__.ab = "//", module.exports = __nccwpck_require__(162); }(); /***/ }, /***/ 9720: /***/ function(module, __unused_webpack_exports, __webpack_require__) { /* provided dependency */ var Buffer = __webpack_require__(1876).Buffer, process = __webpack_require__(3454); !function() { var r = { 901: function(r) { r.exports = function(r, e, o) { if (r.filter) return r.filter(e, o); if (null == r || "function" != typeof e) throw TypeError(); for(var n = [], i = 0; i < r.length; i++)if (t.call(r, i)) { var a = r[i]; e.call(o, a, i, r) && n.push(a); } return n; }; var t = Object.prototype.hasOwnProperty; }, 749: function(r, t, e) { "use strict"; var o = e(91), n = e(112), i = n(o("String.prototype.indexOf")); r.exports = function(r, t) { var e = o(r, !!t); return "function" == typeof e && i(r, ".prototype.") > -1 ? n(e) : e; }; }, 112: function(r, t, e) { "use strict"; var o = e(517), n = e(91), i = n("%Function.prototype.apply%"), a = n("%Function.prototype.call%"), y = n("%Reflect.apply%", !0) || o.call(a, i), p = n("%Object.getOwnPropertyDescriptor%", !0), f = n("%Object.defineProperty%", !0), u = n("%Math.max%"); if (f) try { f({}, "a", { value: 1 }); } catch (r) { f = null; } r.exports = function(r) { var t = y(o, a, arguments); return p && f && p(t, "length").configurable && f(t, "length", { value: 1 + u(0, r.length - (arguments.length - 1)) }), t; }; var s = function() { return y(o, i, arguments); }; f ? f(r.exports, "apply", { value: s }) : r.exports.apply = s; }, 91: function(r, t, e) { "use strict"; var o, n = SyntaxError, i = Function, a = TypeError, getEvalledConstructor = function(r) { try { return Function('"use strict"; return (' + r + ").constructor;")(); } catch (r) {} }, y = Object.getOwnPropertyDescriptor; if (y) try { y({}, ""); } catch (r) { y = null; } var throwTypeError = function() { throw new a(); }, p = y ? function() { try { return arguments.callee, throwTypeError; } catch (r) { try { return y(arguments, "callee").get; } catch (r) { return throwTypeError; } } }() : throwTypeError, f = e(449)(), u = Object.getPrototypeOf || function(r) { return r.__proto__; }, s = getEvalledConstructor("async function* () {}"), c = s ? s.prototype : o, l = c ? c.prototype : o, d = "undefined" == typeof Uint8Array ? o : u(Uint8Array), g = { "%AggregateError%": "undefined" == typeof AggregateError ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? o : ArrayBuffer, "%ArrayIteratorPrototype%": f ? u([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": getEvalledConstructor("async function () {}"), "%AsyncGenerator%": c, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": l ? u(l) : o, "%Atomics%": "undefined" == typeof Atomics ? o : Atomics, "%BigInt%": "undefined" == typeof BigInt ? o : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? o : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? o : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": getEvalledConstructor("function* () {}"), "%Int8Array%": "undefined" == typeof Int8Array ? o : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? o : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": f ? u(u([][Symbol.iterator]())) : o, "%JSON%": "object" == typeof JSON ? JSON : o, "%Map%": "undefined" == typeof Map ? o : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && f ? u(new Map()[Symbol.iterator]()) : o, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? o : Promise, "%Proxy%": "undefined" == typeof Proxy ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? o : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? o : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && f ? u(new Set()[Symbol.iterator]()) : o, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": f ? u(""[Symbol.iterator]()) : o, "%Symbol%": f ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": "undefined" == typeof Uint8Array ? o : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? o : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? o : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? o : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? o : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? o : WeakSet }, A = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype" ], "%ArrayPrototype%": [ "Array", "prototype" ], "%ArrayProto_entries%": [ "Array", "prototype", "entries" ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach" ], "%ArrayProto_keys%": [ "Array", "prototype", "keys" ], "%ArrayProto_values%": [ "Array", "prototype", "values" ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype" ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype" ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype" ], "%BooleanPrototype%": [ "Boolean", "prototype" ], "%DataViewPrototype%": [ "DataView", "prototype" ], "%DatePrototype%": [ "Date", "prototype" ], "%ErrorPrototype%": [ "Error", "prototype" ], "%EvalErrorPrototype%": [ "EvalError", "prototype" ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype" ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype" ], "%FunctionPrototype%": [ "Function", "prototype" ], "%Generator%": [ "GeneratorFunction", "prototype" ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype" ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype" ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype" ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype" ], "%JSONParse%": [ "JSON", "parse" ], "%JSONStringify%": [ "JSON", "stringify" ], "%MapPrototype%": [ "Map", "prototype" ], "%NumberPrototype%": [ "Number", "prototype" ], "%ObjectPrototype%": [ "Object", "prototype" ], "%ObjProto_toString%": [ "Object", "prototype", "toString" ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf" ], "%PromisePrototype%": [ "Promise", "prototype" ], "%PromiseProto_then%": [ "Promise", "prototype", "then" ], "%Promise_all%": [ "Promise", "all" ], "%Promise_reject%": [ "Promise", "reject" ], "%Promise_resolve%": [ "Promise", "resolve" ], "%RangeErrorPrototype%": [ "RangeError", "prototype" ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype" ], "%RegExpPrototype%": [ "RegExp", "prototype" ], "%SetPrototype%": [ "Set", "prototype" ], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype" ], "%StringPrototype%": [ "String", "prototype" ], "%SymbolPrototype%": [ "Symbol", "prototype" ], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype" ], "%TypedArrayPrototype%": [ "TypedArray", "prototype" ], "%TypeErrorPrototype%": [ "TypeError", "prototype" ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype" ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype" ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype" ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype" ], "%URIErrorPrototype%": [ "URIError", "prototype" ], "%WeakMapPrototype%": [ "WeakMap", "prototype" ], "%WeakSetPrototype%": [ "WeakSet", "prototype" ] }, v = e(517), b = e(793), S = v.call(Function.call, Array.prototype.concat), m = v.call(Function.apply, Array.prototype.splice), P = v.call(Function.call, String.prototype.replace), h = v.call(Function.call, String.prototype.slice), O = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, w = /\\(\\)?/g, E = function(r) { var t = h(r, 0, 1), e = h(r, -1); if ("%" === t && "%" !== e) throw new n("invalid intrinsic syntax, expected closing `%`"); if ("%" === e && "%" !== t) throw new n("invalid intrinsic syntax, expected opening `%`"); var o = []; return P(r, O, function(r, t, e, n) { o[o.length] = e ? P(n, w, "$1") : t || r; }), o; }, j = function(r, t) { var o, e = r; if (b(A, e) && (e = "%" + (o = A[e])[0] + "%"), b(g, e)) { var i = g[e]; if (void 0 === i && !t) throw new a("intrinsic " + r + " exists, but is not available. Please file an issue!"); return { alias: o, name: e, value: i }; } throw new n("intrinsic " + r + " does not exist!"); }; r.exports = function(r, t) { if ("string" != typeof r || 0 === r.length) throw new a("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" != typeof t) throw new a('"allowMissing" argument must be a boolean'); var e = E(r), i = e.length > 0 ? e[0] : "", p = j("%" + i + "%", t), f = p.name, u = p.value, s = !1, c = p.alias; c && (i = c[0], m(e, S([ 0, 1 ], c))); for(var l = 1, d = !0; l < e.length; l += 1){ var A = e[l], v = h(A, 0, 1), P = h(A, -1); if (('"' === v || "'" === v || "`" === v || '"' === P || "'" === P || "`" === P) && v !== P) throw new n("property names with quotes must have matching quotes"); if ("constructor" !== A && d || (s = !0), i += "." + A, b(g, f = "%" + i + "%")) u = g[f]; else if (null != u) { if (!(A in u)) { if (!t) throw new a("base intrinsic for " + r + " exists, but the property is not available."); return; } if (y && l + 1 >= e.length) { var O = y(u, A); u = (d = !!O) && "get" in O && !("originalValue" in O.get) ? O.get : u[A]; } else d = b(u, A), u = u[A]; d && !s && (g[f] = u); } } return u; }; }, 219: function(r) { var t = Object.prototype.hasOwnProperty, e = Object.prototype.toString; r.exports = function(r, o, n) { if ("[object Function]" !== e.call(o)) throw TypeError("iterator must be a function"); var i = r.length; if (i === +i) for(var a = 0; a < i; a++)o.call(n, r[a], a, r); else for(var y in r)t.call(r, y) && o.call(n, r[y], y, r); }; }, 733: function(r) { "use strict"; var e = Array.prototype.slice, o = Object.prototype.toString; r.exports = function(r) { var y, i = this; if ("function" != typeof i || "[object Function]" !== o.call(i)) throw TypeError("Function.prototype.bind called on incompatible " + i); for(var a = e.call(arguments, 1), p = Math.max(0, i.length - a.length), f = [], u = 0; u < p; u++)f.push("$" + u); if (y = Function("binder", "return function (" + f.join(",") + "){ return binder.apply(this,arguments); }")(function() { if (!(this instanceof y)) return i.apply(r, a.concat(e.call(arguments))); var t = i.apply(this, a.concat(e.call(arguments))); return Object(t) === t ? t : this; }), i.prototype) { var s = function() {}; s.prototype = i.prototype, y.prototype = new s(), s.prototype = null; } return y; }; }, 517: function(r, t, e) { "use strict"; var o = e(733); r.exports = Function.prototype.bind || o; }, 879: function(r, t, e) { "use strict"; var o, n = SyntaxError, i = Function, a = TypeError, getEvalledConstructor = function(r) { try { return i('"use strict"; return (' + r + ").constructor;")(); } catch (r) {} }, y = Object.getOwnPropertyDescriptor; if (y) try { y({}, ""); } catch (r) { y = null; } var throwTypeError = function() { throw new a(); }, p = y ? function() { try { return arguments.callee, throwTypeError; } catch (r) { try { return y(arguments, "callee").get; } catch (r) { return throwTypeError; } } }() : throwTypeError, f = e(449)(), u = Object.getPrototypeOf || function(r) { return r.__proto__; }, s = {}, c = "undefined" == typeof Uint8Array ? o : u(Uint8Array), l = { "%AggregateError%": "undefined" == typeof AggregateError ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? o : ArrayBuffer, "%ArrayIteratorPrototype%": f ? u([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": s, "%AsyncGenerator%": s, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": s, "%Atomics%": "undefined" == typeof Atomics ? o : Atomics, "%BigInt%": "undefined" == typeof BigInt ? o : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? o : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? o : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": s, "%Int8Array%": "undefined" == typeof Int8Array ? o : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? o : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": f ? u(u([][Symbol.iterator]())) : o, "%JSON%": "object" == typeof JSON ? JSON : o, "%Map%": "undefined" == typeof Map ? o : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && f ? u(new Map()[Symbol.iterator]()) : o, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? o : Promise, "%Proxy%": "undefined" == typeof Proxy ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? o : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? o : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && f ? u(new Set()[Symbol.iterator]()) : o, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": f ? u(""[Symbol.iterator]()) : o, "%Symbol%": f ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": c, "%TypeError%": a, "%Uint8Array%": "undefined" == typeof Uint8Array ? o : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? o : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? o : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? o : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? o : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? o : WeakSet }, d = function doEval(r) { var t; if ("%AsyncFunction%" === r) t = getEvalledConstructor("async function () {}"); else if ("%GeneratorFunction%" === r) t = getEvalledConstructor("function* () {}"); else if ("%AsyncGeneratorFunction%" === r) t = getEvalledConstructor("async function* () {}"); else if ("%AsyncGenerator%" === r) { var e = doEval("%AsyncGeneratorFunction%"); e && (t = e.prototype); } else if ("%AsyncIteratorPrototype%" === r) { var o = doEval("%AsyncGenerator%"); o && (t = u(o.prototype)); } return l[r] = t, t; }, g = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype" ], "%ArrayPrototype%": [ "Array", "prototype" ], "%ArrayProto_entries%": [ "Array", "prototype", "entries" ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach" ], "%ArrayProto_keys%": [ "Array", "prototype", "keys" ], "%ArrayProto_values%": [ "Array", "prototype", "values" ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype" ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype" ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype" ], "%BooleanPrototype%": [ "Boolean", "prototype" ], "%DataViewPrototype%": [ "DataView", "prototype" ], "%DatePrototype%": [ "Date", "prototype" ], "%ErrorPrototype%": [ "Error", "prototype" ], "%EvalErrorPrototype%": [ "EvalError", "prototype" ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype" ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype" ], "%FunctionPrototype%": [ "Function", "prototype" ], "%Generator%": [ "GeneratorFunction", "prototype" ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype" ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype" ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype" ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype" ], "%JSONParse%": [ "JSON", "parse" ], "%JSONStringify%": [ "JSON", "stringify" ], "%MapPrototype%": [ "Map", "prototype" ], "%NumberPrototype%": [ "Number", "prototype" ], "%ObjectPrototype%": [ "Object", "prototype" ], "%ObjProto_toString%": [ "Object", "prototype", "toString" ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf" ], "%PromisePrototype%": [ "Promise", "prototype" ], "%PromiseProto_then%": [ "Promise", "prototype", "then" ], "%Promise_all%": [ "Promise", "all" ], "%Promise_reject%": [ "Promise", "reject" ], "%Promise_resolve%": [ "Promise", "resolve" ], "%RangeErrorPrototype%": [ "RangeError", "prototype" ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype" ], "%RegExpPrototype%": [ "RegExp", "prototype" ], "%SetPrototype%": [ "Set", "prototype" ], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype" ], "%StringPrototype%": [ "String", "prototype" ], "%SymbolPrototype%": [ "Symbol", "prototype" ], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype" ], "%TypedArrayPrototype%": [ "TypedArray", "prototype" ], "%TypeErrorPrototype%": [ "TypeError", "prototype" ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype" ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype" ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype" ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype" ], "%URIErrorPrototype%": [ "URIError", "prototype" ], "%WeakMapPrototype%": [ "WeakMap", "prototype" ], "%WeakSetPrototype%": [ "WeakSet", "prototype" ] }, A = e(517), v = e(793), b = A.call(Function.call, Array.prototype.concat), S = A.call(Function.apply, Array.prototype.splice), m = A.call(Function.call, String.prototype.replace), P = A.call(Function.call, String.prototype.slice), h = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, O = /\\(\\)?/g, w = function(r) { var t = P(r, 0, 1), e = P(r, -1); if ("%" === t && "%" !== e) throw new n("invalid intrinsic syntax, expected closing `%`"); if ("%" === e && "%" !== t) throw new n("invalid intrinsic syntax, expected opening `%`"); var o = []; return m(r, h, function(r, t, e, n) { o[o.length] = e ? m(n, O, "$1") : t || r; }), o; }, E = function(r, t) { var o, e = r; if (v(g, e) && (e = "%" + (o = g[e])[0] + "%"), v(l, e)) { var i = l[e]; if (i === s && (i = d(e)), void 0 === i && !t) throw new a("intrinsic " + r + " exists, but is not available. Please file an issue!"); return { alias: o, name: e, value: i }; } throw new n("intrinsic " + r + " does not exist!"); }; r.exports = function(r, t) { if ("string" != typeof r || 0 === r.length) throw new a("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" != typeof t) throw new a('"allowMissing" argument must be a boolean'); var e = w(r), i = e.length > 0 ? e[0] : "", p = E("%" + i + "%", t), f = p.name, u = p.value, s = !1, c = p.alias; c && (i = c[0], S(e, b([ 0, 1 ], c))); for(var d = 1, g = !0; d < e.length; d += 1){ var A = e[d], m = P(A, 0, 1), h = P(A, -1); if (('"' === m || "'" === m || "`" === m || '"' === h || "'" === h || "`" === h) && m !== h) throw new n("property names with quotes must have matching quotes"); if ("constructor" !== A && g || (s = !0), i += "." + A, v(l, f = "%" + i + "%")) u = l[f]; else if (null != u) { if (!(A in u)) { if (!t) throw new a("base intrinsic for " + r + " exists, but the property is not available."); return; } if (y && d + 1 >= e.length) { var O = y(u, A); u = (g = !!O) && "get" in O && !("originalValue" in O.get) ? O.get : u[A]; } else g = v(u, A), u = u[A]; g && !s && (l[f] = u); } } return u; }; }, 449: function(r, t, e) { "use strict"; var o = __webpack_require__.g.Symbol, n = e(545); r.exports = function() { return "function" == typeof o && "function" == typeof Symbol && "symbol" == typeof o("foo") && "symbol" == typeof Symbol("bar") && n(); }; }, 545: function(r) { "use strict"; r.exports = function() { if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) return !1; if ("symbol" == typeof Symbol.iterator) return !0; var r = {}, t = Symbol("test"), e = Object(t); if ("string" == typeof t || "[object Symbol]" !== Object.prototype.toString.call(t) || "[object Symbol]" !== Object.prototype.toString.call(e)) return !1; for(t in r[t] = 42, r)return !1; if ("function" == typeof Object.keys && 0 !== Object.keys(r).length || "function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(r).length) return !1; var n = Object.getOwnPropertySymbols(r); if (1 !== n.length || n[0] !== t || !Object.prototype.propertyIsEnumerable.call(r, t)) return !1; if ("function" == typeof Object.getOwnPropertyDescriptor) { var i = Object.getOwnPropertyDescriptor(r, t); if (42 !== i.value || !0 !== i.enumerable) return !1; } return !0; }; }, 793: function(r, t, e) { "use strict"; r.exports = e(517).call(Function.call, Object.prototype.hasOwnProperty); }, 526: function(r) { "function" == typeof Object.create ? r.exports = function(r, t) { t && (r.super_ = t, r.prototype = Object.create(t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } })); } : r.exports = function(r, t) { if (t) { r.super_ = t; var TempCtor = function() {}; TempCtor.prototype = t.prototype, r.prototype = new TempCtor(), r.prototype.constructor = r; } }; }, 312: function(r) { "use strict"; var t = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag, e = Object.prototype.toString, o = function(r) { return (!t || !r || "object" != typeof r || !(Symbol.toStringTag in r)) && "[object Arguments]" === e.call(r); }, n = function(r) { return !!o(r) || null !== r && "object" == typeof r && "number" == typeof r.length && r.length >= 0 && "[object Array]" !== e.call(r) && "[object Function]" === e.call(r.callee); }, i = function() { return o(arguments); }(); o.isLegacyArguments = n, r.exports = i ? o : n; }, 906: function(r) { "use strict"; var t = Object.prototype.toString, e = Function.prototype.toString, o = /^\s*(?:function)?\*/, n = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag, i = Object.getPrototypeOf, a = function() { if (!n) return !1; try { return Function("return function*() {}")(); } catch (r) {} }(), y = a ? i(a) : {}; r.exports = function(r) { return "function" == typeof r && (!!o.test(e.call(r)) || (n ? i(r) === y : "[object GeneratorFunction]" === t.call(r))); }; }, 234: function(r, t, e) { "use strict"; var o = e(219), n = e(627), i = e(749), a = i("Object.prototype.toString"), p = e(449)() && "symbol" == typeof Symbol.toStringTag, f = n(), u = i("Array.prototype.indexOf", !0) || function(r, t) { for(var e = 0; e < r.length; e += 1)if (r[e] === t) return e; return -1; }, s = i("String.prototype.slice"), c = {}, l = e(982), d = Object.getPrototypeOf; p && l && d && o(f, function(r) { var t = new __webpack_require__.g[r](); if (!(Symbol.toStringTag in t)) throw EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this."); var e = d(t), o = l(e, Symbol.toStringTag); o || (o = l(d(e), Symbol.toStringTag)), c[r] = o.get; }); var g = function(r) { var t = !1; return o(c, function(e, o) { if (!t) try { t = e.call(r) === o; } catch (r) {} }), t; }; r.exports = function(r) { return !!r && "object" == typeof r && (p ? !!l && g(r) : u(f, s(a(r), 8, -1)) > -1); }; }, 982: function(r, t, e) { "use strict"; var n = e(879)("%Object.getOwnPropertyDescriptor%"); if (n) try { n([], "length"); } catch (r) { n = null; } r.exports = n; }, 536: function(r) { r.exports = function(r) { return r instanceof Buffer; }; }, 3: function(r, t, e) { "use strict"; var o = e(312), n = e(906), i = e(715), a = e(234); function uncurryThis(r) { return r.call.bind(r); } var y = "undefined" != typeof BigInt, p = "undefined" != typeof Symbol, f = uncurryThis(Object.prototype.toString), u = uncurryThis(Number.prototype.valueOf), s = uncurryThis(String.prototype.valueOf), c = uncurryThis(Boolean.prototype.valueOf); if (y) var l = uncurryThis(BigInt.prototype.valueOf); if (p) var d = uncurryThis(Symbol.prototype.valueOf); function checkBoxedPrimitive(r, t) { if ("object" != typeof r) return !1; try { return t(r), !0; } catch (r) { return !1; } } function isMapToString(r) { return "[object Map]" === f(r); } function isSetToString(r) { return "[object Set]" === f(r); } function isWeakMapToString(r) { return "[object WeakMap]" === f(r); } function isWeakSetToString(r) { return "[object WeakSet]" === f(r); } function isArrayBufferToString(r) { return "[object ArrayBuffer]" === f(r); } function isArrayBuffer(r) { return "undefined" != typeof ArrayBuffer && (isArrayBufferToString.working ? isArrayBufferToString(r) : r instanceof ArrayBuffer); } function isDataViewToString(r) { return "[object DataView]" === f(r); } function isDataView(r) { return "undefined" != typeof DataView && (isDataViewToString.working ? isDataViewToString(r) : r instanceof DataView); } t.isArgumentsObject = o, t.isGeneratorFunction = n, t.isTypedArray = a, t.isPromise = function(r) { return "undefined" != typeof Promise && r instanceof Promise || null !== r && "object" == typeof r && "function" == typeof r.then && "function" == typeof r.catch; }, t.isArrayBufferView = function(r) { return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(r) : a(r) || isDataView(r); }, t.isUint8Array = function(r) { return "Uint8Array" === i(r); }, t.isUint8ClampedArray = function(r) { return "Uint8ClampedArray" === i(r); }, t.isUint16Array = function(r) { return "Uint16Array" === i(r); }, t.isUint32Array = function(r) { return "Uint32Array" === i(r); }, t.isInt8Array = function(r) { return "Int8Array" === i(r); }, t.isInt16Array = function(r) { return "Int16Array" === i(r); }, t.isInt32Array = function(r) { return "Int32Array" === i(r); }, t.isFloat32Array = function(r) { return "Float32Array" === i(r); }, t.isFloat64Array = function(r) { return "Float64Array" === i(r); }, t.isBigInt64Array = function(r) { return "BigInt64Array" === i(r); }, t.isBigUint64Array = function(r) { return "BigUint64Array" === i(r); }, isMapToString.working = "undefined" != typeof Map && isMapToString(new Map()), t.isMap = function(r) { return "undefined" != typeof Map && (isMapToString.working ? isMapToString(r) : r instanceof Map); }, isSetToString.working = "undefined" != typeof Set && isSetToString(new Set()), t.isSet = function(r) { return "undefined" != typeof Set && (isSetToString.working ? isSetToString(r) : r instanceof Set); }, isWeakMapToString.working = "undefined" != typeof WeakMap && isWeakMapToString(new WeakMap()), t.isWeakMap = function(r) { return "undefined" != typeof WeakMap && (isWeakMapToString.working ? isWeakMapToString(r) : r instanceof WeakMap); }, isWeakSetToString.working = "undefined" != typeof WeakSet && isWeakSetToString(new WeakSet()), t.isWeakSet = function(r) { return isWeakSetToString(r); }, isArrayBufferToString.working = "undefined" != typeof ArrayBuffer && isArrayBufferToString(new ArrayBuffer()), t.isArrayBuffer = isArrayBuffer, isDataViewToString.working = "undefined" != typeof ArrayBuffer && "undefined" != typeof DataView && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1)), t.isDataView = isDataView; var g = "undefined" != typeof SharedArrayBuffer ? SharedArrayBuffer : void 0; function isSharedArrayBufferToString(r) { return "[object SharedArrayBuffer]" === f(r); } function isSharedArrayBuffer(r) { return void 0 !== g && (void 0 === isSharedArrayBufferToString.working && (isSharedArrayBufferToString.working = isSharedArrayBufferToString(new g())), isSharedArrayBufferToString.working ? isSharedArrayBufferToString(r) : r instanceof g); } function isNumberObject(r) { return checkBoxedPrimitive(r, u); } function isStringObject(r) { return checkBoxedPrimitive(r, s); } function isBooleanObject(r) { return checkBoxedPrimitive(r, c); } function isBigIntObject(r) { return y && checkBoxedPrimitive(r, l); } function isSymbolObject(r) { return p && checkBoxedPrimitive(r, d); } t.isSharedArrayBuffer = isSharedArrayBuffer, t.isAsyncFunction = function(r) { return "[object AsyncFunction]" === f(r); }, t.isMapIterator = function(r) { return "[object Map Iterator]" === f(r); }, t.isSetIterator = function(r) { return "[object Set Iterator]" === f(r); }, t.isGeneratorObject = function(r) { return "[object Generator]" === f(r); }, t.isWebAssemblyCompiledModule = function(r) { return "[object WebAssembly.Module]" === f(r); }, t.isNumberObject = isNumberObject, t.isStringObject = isStringObject, t.isBooleanObject = isBooleanObject, t.isBigIntObject = isBigIntObject, t.isSymbolObject = isSymbolObject, t.isBoxedPrimitive = function(r) { return isNumberObject(r) || isStringObject(r) || isBooleanObject(r) || isBigIntObject(r) || isSymbolObject(r); }, t.isAnyArrayBuffer = function(r) { return "undefined" != typeof Uint8Array && (isArrayBuffer(r) || isSharedArrayBuffer(r)); }, [ "isProxy", "isExternal", "isModuleNamespaceObject" ].forEach(function(r) { Object.defineProperty(t, r, { enumerable: !1, value: function() { throw Error(r + " is not supported in userland"); } }); }); }, 650: function(r, t, e) { var o = Object.getOwnPropertyDescriptors || function(r) { for(var t = Object.keys(r), e = {}, o = 0; o < t.length; o++)e[t[o]] = Object.getOwnPropertyDescriptor(r, t[o]); return e; }, n = /%[sdj%]/g; t.format = function(r) { if (!isString(r)) { for(var t = [], e = 0; e < arguments.length; e++)t.push(inspect(arguments[e])); return t.join(" "); } for(var e = 1, o = arguments, i = o.length, a = String(r).replace(n, function(r) { if ("%%" === r) return "%"; if (e >= i) return r; switch(r){ case "%s": return String(o[e++]); case "%d": return Number(o[e++]); case "%j": try { return JSON.stringify(o[e++]); } catch (r) { return "[Circular]"; } default: return r; } }), y = o[e]; e < i; y = o[++e])isNull(y) || !isObject(y) ? a += " " + y : a += " " + inspect(y); return a; }, t.deprecate = function(r, e) { if (void 0 !== process && !0 === process.noDeprecation) return r; if (void 0 === process) return function() { return t.deprecate(r, e).apply(this, arguments); }; var o = !1; return function() { if (!o) { if (process.throwDeprecation) throw Error(e); process.traceDeprecation ? console.trace(e) : console.error(e), o = !0; } return r.apply(this, arguments); }; }; var i = {}, a = /^$/; if (process.env.NODE_DEBUG) { var y = process.env.NODE_DEBUG; a = RegExp("^" + (y = y.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase()) + "$", "i"); } function inspect(r, e) { var o = { seen: [], stylize: stylizeNoColor }; return arguments.length >= 3 && (o.depth = arguments[2]), arguments.length >= 4 && (o.colors = arguments[3]), isBoolean(e) ? o.showHidden = e : e && t._extend(o, e), isUndefined(o.showHidden) && (o.showHidden = !1), isUndefined(o.depth) && (o.depth = 2), isUndefined(o.colors) && (o.colors = !1), isUndefined(o.customInspect) && (o.customInspect = !0), o.colors && (o.stylize = stylizeWithColor), formatValue(o, r, o.depth); } function stylizeWithColor(r, t) { var e = inspect.styles[t]; return e ? "[" + inspect.colors[e][0] + "m" + r + "[" + inspect.colors[e][1] + "m" : r; } function stylizeNoColor(r, t) { return r; } function formatValue(r, e, o) { if (r.customInspect && e && isFunction(e.inspect) && e.inspect !== t.inspect && !(e.constructor && e.constructor.prototype === e)) { var t1, e1, o1, t2, l, n = e.inspect(o, r); return isString(n) || (n = formatValue(r, n, o)), n; } var i = function(r, t) { if (isUndefined(t)) return r.stylize("undefined", "undefined"); if (isString(t)) { var e = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; return r.stylize(e, "string"); } return isNumber(t) ? r.stylize("" + t, "number") : isBoolean(t) ? r.stylize("" + t, "boolean") : isNull(t) ? r.stylize("null", "null") : void 0; }(r, e); if (i) return i; var a = Object.keys(e), y = (t2 = {}, a.forEach(function(r, e) { t2[r] = !0; }), t2); if (r.showHidden && (a = Object.getOwnPropertyNames(e)), isError(e) && (a.indexOf("message") >= 0 || a.indexOf("description") >= 0)) return formatError(e); if (0 === a.length) { if (isFunction(e)) { var p = e.name ? ": " + e.name : ""; return r.stylize("[Function" + p + "]", "special"); } if (isRegExp(e)) return r.stylize(RegExp.prototype.toString.call(e), "regexp"); if (isDate(e)) return r.stylize(Date.prototype.toString.call(e), "date"); if (isError(e)) return formatError(e); } var f = "", u = !1, s = [ "{", "}" ]; return (isArray(e) && (u = !0, s = [ "[", "]" ]), isFunction(e) && (f = " [Function" + (e.name ? ": " + e.name : "") + "]"), isRegExp(e) && (f = " " + RegExp.prototype.toString.call(e)), isDate(e) && (f = " " + Date.prototype.toUTCString.call(e)), isError(e) && (f = " " + formatError(e)), 0 !== a.length || u && 0 != e.length) ? o < 0 ? isRegExp(e) ? r.stylize(RegExp.prototype.toString.call(e), "regexp") : r.stylize("[Object]", "special") : (r.seen.push(e), l = u ? function(r, t, e, o, n) { for(var i = [], a = 0, y = t.length; a < y; ++a)hasOwnProperty(t, String(a)) ? i.push(formatProperty(r, t, e, o, String(a), !0)) : i.push(""); return n.forEach(function(n) { n.match(/^\d+$/) || i.push(formatProperty(r, t, e, o, n, !0)); }), i; }(r, e, o, y, a) : a.map(function(t) { return formatProperty(r, e, o, y, t, u); }), r.seen.pop(), t1 = f, e1 = s, o1 = 0, l.reduce(function(r, t) { return o1++, t.indexOf("\n") >= 0 && o1++, r + t.replace(/\u001b\[\d\d?m/g, "").length + 1; }, 0) > 60 ? e1[0] + ("" === t1 ? "" : t1 + "\n ") + " " + l.join(",\n ") + " " + e1[1] : e1[0] + t1 + " " + l.join(", ") + " " + e1[1]) : s[0] + f + s[1]; } function formatError(r) { return "[" + Error.prototype.toString.call(r) + "]"; } function formatProperty(r, t, e, o, n, i) { var a, y, p; if ((p = Object.getOwnPropertyDescriptor(t, n) || { value: t[n] }).get ? y = p.set ? r.stylize("[Getter/Setter]", "special") : r.stylize("[Getter]", "special") : p.set && (y = r.stylize("[Setter]", "special")), hasOwnProperty(o, n) || (a = "[" + n + "]"), !y && (0 > r.seen.indexOf(p.value) ? (y = isNull(e) ? formatValue(r, p.value, null) : formatValue(r, p.value, e - 1)).indexOf("\n") > -1 && (y = i ? y.split("\n").map(function(r) { return " " + r; }).join("\n").substr(2) : "\n" + y.split("\n").map(function(r) { return " " + r; }).join("\n")) : y = r.stylize("[Circular]", "special")), isUndefined(a)) { if (i && n.match(/^\d+$/)) return y; (a = JSON.stringify("" + n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (a = a.substr(1, a.length - 2), a = r.stylize(a, "name")) : (a = a.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), a = r.stylize(a, "string")); } return a + ": " + y; } function isArray(r) { return Array.isArray(r); } function isBoolean(r) { return "boolean" == typeof r; } function isNull(r) { return null === r; } function isNumber(r) { return "number" == typeof r; } function isString(r) { return "string" == typeof r; } function isUndefined(r) { return void 0 === r; } function isRegExp(r) { return isObject(r) && "[object RegExp]" === objectToString(r); } function isObject(r) { return "object" == typeof r && null !== r; } function isDate(r) { return isObject(r) && "[object Date]" === objectToString(r); } function isError(r) { return isObject(r) && ("[object Error]" === objectToString(r) || r instanceof Error); } function isFunction(r) { return "function" == typeof r; } function objectToString(r) { return Object.prototype.toString.call(r); } function pad(r) { return r < 10 ? "0" + r.toString(10) : r.toString(10); } t.debuglog = function(r) { if (!i[r = r.toUpperCase()]) { if (a.test(r)) { var e = process.pid; i[r] = function() { var o = t.format.apply(t, arguments); console.error("%s %d: %s", r, e, o); }; } else i[r] = function() {}; } return i[r]; }, t.inspect = inspect, inspect.colors = { bold: [ 1, 22 ], italic: [ 3, 23 ], underline: [ 4, 24 ], inverse: [ 7, 27 ], white: [ 37, 39 ], grey: [ 90, 39 ], black: [ 30, 39 ], blue: [ 34, 39 ], cyan: [ 36, 39 ], green: [ 32, 39 ], magenta: [ 35, 39 ], red: [ 31, 39 ], yellow: [ 33, 39 ] }, inspect.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, t.types = e(3), t.isArray = isArray, t.isBoolean = isBoolean, t.isNull = isNull, t.isNullOrUndefined = function(r) { return null == r; }, t.isNumber = isNumber, t.isString = isString, t.isSymbol = function(r) { return "symbol" == typeof r; }, t.isUndefined = isUndefined, t.isRegExp = isRegExp, t.types.isRegExp = isRegExp, t.isObject = isObject, t.isDate = isDate, t.types.isDate = isDate, t.isError = isError, t.types.isNativeError = isError, t.isFunction = isFunction, t.isPrimitive = function(r) { return null === r || "boolean" == typeof r || "number" == typeof r || "string" == typeof r || "symbol" == typeof r || void 0 === r; }, t.isBuffer = e(536); var p = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]; function hasOwnProperty(r, t) { return Object.prototype.hasOwnProperty.call(r, t); } t.log = function() { var r, t1; console.log("%s - %s", (t1 = [ pad((r = new Date()).getHours()), pad(r.getMinutes()), pad(r.getSeconds()) ].join(":"), [ r.getDate(), p[r.getMonth()], t1 ].join(" ")), t.format.apply(t, arguments)); }, t.inherits = e(526), t._extend = function(r, t) { if (!t || !isObject(t)) return r; for(var e = Object.keys(t), o = e.length; o--;)r[e[o]] = t[e[o]]; return r; }; var f = "undefined" != typeof Symbol ? Symbol("util.promisify.custom") : void 0; function callbackifyOnRejected(r, t) { if (!r) { var e = Error("Promise was rejected with a falsy value"); e.reason = r, r = e; } return t(r); } t.promisify = function(r) { if ("function" != typeof r) throw TypeError('The "original" argument must be of type Function'); if (f && r[f]) { var t = r[f]; if ("function" != typeof t) throw TypeError('The "util.promisify.custom" argument must be of type Function'); return Object.defineProperty(t, f, { value: t, enumerable: !1, writable: !1, configurable: !0 }), t; } function t() { for(var t, e, o = new Promise(function(r, o) { t = r, e = o; }), n = [], i = 0; i < arguments.length; i++)n.push(arguments[i]); n.push(function(r, o) { r ? e(r) : t(o); }); try { r.apply(this, n); } catch (r) { e(r); } return o; } return Object.setPrototypeOf(t, Object.getPrototypeOf(r)), f && Object.defineProperty(t, f, { value: t, enumerable: !1, writable: !1, configurable: !0 }), Object.defineProperties(t, o(r)); }, t.promisify.custom = f, t.callbackify = function(r) { if ("function" != typeof r) throw TypeError('The "original" argument must be of type Function'); function callbackified() { for(var t = [], e = 0; e < arguments.length; e++)t.push(arguments[e]); var o = t.pop(); if ("function" != typeof o) throw TypeError("The last argument must be of type Function"); var n = this, cb = function() { return o.apply(n, arguments); }; r.apply(this, t).then(function(r) { process.nextTick(cb.bind(null, null, r)); }, function(r) { process.nextTick(callbackifyOnRejected.bind(null, r, cb)); }); } return Object.setPrototypeOf(callbackified, Object.getPrototypeOf(r)), Object.defineProperties(callbackified, o(r)), callbackified; }; }, 715: function(r, t, e) { "use strict"; var o = e(219), n = e(627), i = e(749), a = i("Object.prototype.toString"), p = e(449)() && "symbol" == typeof Symbol.toStringTag, f = n(), u = i("String.prototype.slice"), s = {}, c = e(850), l = Object.getPrototypeOf; p && c && l && o(f, function(r) { if ("function" == typeof __webpack_require__.g[r]) { var t = new __webpack_require__.g[r](); if (!(Symbol.toStringTag in t)) throw EvalError("this engine has support for Symbol.toStringTag, but " + r + " does not have the property! Please report this."); var e = l(t), o = c(e, Symbol.toStringTag); o || (o = c(l(e), Symbol.toStringTag)), s[r] = o.get; } }); var d = function(r) { var t = !1; return o(s, function(e, o) { if (!t) try { var n = e.call(r); n === o && (t = n); } catch (r) {} }), t; }, g = e(234); r.exports = function(r) { return !!g(r) && (p ? d(r) : u(a(r), 8, -1)); }; }, 227: function(r, t, e) { "use strict"; var o, n = SyntaxError, i = Function, a = TypeError, getEvalledConstructor = function(r) { try { return Function('"use strict"; return (' + r + ").constructor;")(); } catch (r) {} }, y = Object.getOwnPropertyDescriptor; if (y) try { y({}, ""); } catch (r) { y = null; } var throwTypeError = function() { throw new a(); }, p = y ? function() { try { return arguments.callee, throwTypeError; } catch (r) { try { return y(arguments, "callee").get; } catch (r) { return throwTypeError; } } }() : throwTypeError, f = e(449)(), u = Object.getPrototypeOf || function(r) { return r.__proto__; }, s = getEvalledConstructor("async function* () {}"), c = s ? s.prototype : o, l = c ? c.prototype : o, d = "undefined" == typeof Uint8Array ? o : u(Uint8Array), g = { "%AggregateError%": "undefined" == typeof AggregateError ? o : AggregateError, "%Array%": Array, "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? o : ArrayBuffer, "%ArrayIteratorPrototype%": f ? u([][Symbol.iterator]()) : o, "%AsyncFromSyncIteratorPrototype%": o, "%AsyncFunction%": getEvalledConstructor("async function () {}"), "%AsyncGenerator%": c, "%AsyncGeneratorFunction%": s, "%AsyncIteratorPrototype%": l ? u(l) : o, "%Atomics%": "undefined" == typeof Atomics ? o : Atomics, "%BigInt%": "undefined" == typeof BigInt ? o : BigInt, "%Boolean%": Boolean, "%DataView%": "undefined" == typeof DataView ? o : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": "undefined" == typeof Float32Array ? o : Float32Array, "%Float64Array%": "undefined" == typeof Float64Array ? o : Float64Array, "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? o : FinalizationRegistry, "%Function%": i, "%GeneratorFunction%": getEvalledConstructor("function* () {}"), "%Int8Array%": "undefined" == typeof Int8Array ? o : Int8Array, "%Int16Array%": "undefined" == typeof Int16Array ? o : Int16Array, "%Int32Array%": "undefined" == typeof Int32Array ? o : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": f ? u(u([][Symbol.iterator]())) : o, "%JSON%": "object" == typeof JSON ? JSON : o, "%Map%": "undefined" == typeof Map ? o : Map, "%MapIteratorPrototype%": "undefined" != typeof Map && f ? u(new Map()[Symbol.iterator]()) : o, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": "undefined" == typeof Promise ? o : Promise, "%Proxy%": "undefined" == typeof Proxy ? o : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": "undefined" == typeof Reflect ? o : Reflect, "%RegExp%": RegExp, "%Set%": "undefined" == typeof Set ? o : Set, "%SetIteratorPrototype%": "undefined" != typeof Set && f ? u(new Set()[Symbol.iterator]()) : o, "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? o : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": f ? u(""[Symbol.iterator]()) : o, "%Symbol%": f ? Symbol : o, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": d, "%TypeError%": a, "%Uint8Array%": "undefined" == typeof Uint8Array ? o : Uint8Array, "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? o : Uint8ClampedArray, "%Uint16Array%": "undefined" == typeof Uint16Array ? o : Uint16Array, "%Uint32Array%": "undefined" == typeof Uint32Array ? o : Uint32Array, "%URIError%": URIError, "%WeakMap%": "undefined" == typeof WeakMap ? o : WeakMap, "%WeakRef%": "undefined" == typeof WeakRef ? o : WeakRef, "%WeakSet%": "undefined" == typeof WeakSet ? o : WeakSet }, A = { "%ArrayBufferPrototype%": [ "ArrayBuffer", "prototype" ], "%ArrayPrototype%": [ "Array", "prototype" ], "%ArrayProto_entries%": [ "Array", "prototype", "entries" ], "%ArrayProto_forEach%": [ "Array", "prototype", "forEach" ], "%ArrayProto_keys%": [ "Array", "prototype", "keys" ], "%ArrayProto_values%": [ "Array", "prototype", "values" ], "%AsyncFunctionPrototype%": [ "AsyncFunction", "prototype" ], "%AsyncGenerator%": [ "AsyncGeneratorFunction", "prototype" ], "%AsyncGeneratorPrototype%": [ "AsyncGeneratorFunction", "prototype", "prototype" ], "%BooleanPrototype%": [ "Boolean", "prototype" ], "%DataViewPrototype%": [ "DataView", "prototype" ], "%DatePrototype%": [ "Date", "prototype" ], "%ErrorPrototype%": [ "Error", "prototype" ], "%EvalErrorPrototype%": [ "EvalError", "prototype" ], "%Float32ArrayPrototype%": [ "Float32Array", "prototype" ], "%Float64ArrayPrototype%": [ "Float64Array", "prototype" ], "%FunctionPrototype%": [ "Function", "prototype" ], "%Generator%": [ "GeneratorFunction", "prototype" ], "%GeneratorPrototype%": [ "GeneratorFunction", "prototype", "prototype" ], "%Int8ArrayPrototype%": [ "Int8Array", "prototype" ], "%Int16ArrayPrototype%": [ "Int16Array", "prototype" ], "%Int32ArrayPrototype%": [ "Int32Array", "prototype" ], "%JSONParse%": [ "JSON", "parse" ], "%JSONStringify%": [ "JSON", "stringify" ], "%MapPrototype%": [ "Map", "prototype" ], "%NumberPrototype%": [ "Number", "prototype" ], "%ObjectPrototype%": [ "Object", "prototype" ], "%ObjProto_toString%": [ "Object", "prototype", "toString" ], "%ObjProto_valueOf%": [ "Object", "prototype", "valueOf" ], "%PromisePrototype%": [ "Promise", "prototype" ], "%PromiseProto_then%": [ "Promise", "prototype", "then" ], "%Promise_all%": [ "Promise", "all" ], "%Promise_reject%": [ "Promise", "reject" ], "%Promise_resolve%": [ "Promise", "resolve" ], "%RangeErrorPrototype%": [ "RangeError", "prototype" ], "%ReferenceErrorPrototype%": [ "ReferenceError", "prototype" ], "%RegExpPrototype%": [ "RegExp", "prototype" ], "%SetPrototype%": [ "Set", "prototype" ], "%SharedArrayBufferPrototype%": [ "SharedArrayBuffer", "prototype" ], "%StringPrototype%": [ "String", "prototype" ], "%SymbolPrototype%": [ "Symbol", "prototype" ], "%SyntaxErrorPrototype%": [ "SyntaxError", "prototype" ], "%TypedArrayPrototype%": [ "TypedArray", "prototype" ], "%TypeErrorPrototype%": [ "TypeError", "prototype" ], "%Uint8ArrayPrototype%": [ "Uint8Array", "prototype" ], "%Uint8ClampedArrayPrototype%": [ "Uint8ClampedArray", "prototype" ], "%Uint16ArrayPrototype%": [ "Uint16Array", "prototype" ], "%Uint32ArrayPrototype%": [ "Uint32Array", "prototype" ], "%URIErrorPrototype%": [ "URIError", "prototype" ], "%WeakMapPrototype%": [ "WeakMap", "prototype" ], "%WeakSetPrototype%": [ "WeakSet", "prototype" ] }, v = e(517), b = e(793), S = v.call(Function.call, Array.prototype.concat), m = v.call(Function.apply, Array.prototype.splice), P = v.call(Function.call, String.prototype.replace), h = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, O = /\\(\\)?/g, w = function(r) { var t = []; return P(r, h, function(r, e, o, n) { t[t.length] = o ? P(n, O, "$1") : e || r; }), t; }, E = function(r, t) { var o, e = r; if (b(A, e) && (e = "%" + (o = A[e])[0] + "%"), b(g, e)) { var i = g[e]; if (void 0 === i && !t) throw new a("intrinsic " + r + " exists, but is not available. Please file an issue!"); return { alias: o, name: e, value: i }; } throw new n("intrinsic " + r + " does not exist!"); }; r.exports = function(r, t) { if ("string" != typeof r || 0 === r.length) throw new a("intrinsic name must be a non-empty string"); if (arguments.length > 1 && "boolean" != typeof t) throw new a('"allowMissing" argument must be a boolean'); var e = w(r), o = e.length > 0 ? e[0] : "", n = E("%" + o + "%", t), i = n.name, p = n.value, f = !1, u = n.alias; u && (o = u[0], m(e, S([ 0, 1 ], u))); for(var s = 1, c = !0; s < e.length; s += 1){ var l = e[s]; if ("constructor" !== l && c || (f = !0), o += "." + l, b(g, i = "%" + o + "%")) p = g[i]; else if (null != p) { if (y && s + 1 >= e.length) { var d = y(p, l); if (c = !!d, !t && !(l in p)) throw new a("base intrinsic for " + r + " exists, but the property is not available."); p = c && "get" in d && !("originalValue" in d.get) ? d.get : p[l]; } else c = b(p, l), p = p[l]; c && !f && (g[i] = p); } } return p; }; }, 850: function(r, t, e) { "use strict"; var n = e(227)("%Object.getOwnPropertyDescriptor%"); if (n) try { n([], "length"); } catch (r) { n = null; } r.exports = n; }, 627: function(r, t, e) { "use strict"; var o = e(901); r.exports = function() { return o([ "BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray" ], function(r) { return "function" == typeof __webpack_require__.g[r]; }); }; } }, t = {}; function __nccwpck_require__(e) { var o = t[e]; if (void 0 !== o) return o.exports; var n = t[e] = { exports: {} }, i = !0; try { r[e](n, n.exports, __nccwpck_require__), i = !1; } finally{ i && delete t[e]; } return n.exports; } __nccwpck_require__.ab = "//", module.exports = __nccwpck_require__(650); }(); /***/ } }, /******/ function(__webpack_require__) { // webpackRuntimeModules /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }; /******/ __webpack_require__.O(0, [ 774, 179 ], function() { return __webpack_exec__(1780), __webpack_exec__(880); }), /******/ _N_E = __webpack_require__.O(); /******/ } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/joda/input.js
JavaScript
"use strict"; (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([[715], { /***/ 3266: /***/ (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "h": function () { return /* binding */ LocalDate; } /* harmony export */ }); var isInit = false; function init() { if (isInit) { return; } isInit = true; } init(); }) }]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/joda/output.js
JavaScript
"use strict"; (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 715 ], { /***/ 3266: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ h: function() { return /* binding */ LocalDate; } }); } } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/octokit/static/chunks/357-72bd409f1472b1b8/input.js
JavaScript
export default (function (module, __unused_webpack_exports, __webpack_require__) { /** * This file contains the Bottleneck library (MIT), compiled to ES2017, and without Clustering support. * https://github.com/SGrondin/bottleneck */ (function (global, factory) { true ? module.exports = factory() : 0; }(this, (function () { 'use strict'; var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof self !== 'undefined' ? self : {}; function getCjsExportFromNamespace(n) { return n && n['default'] || n; } var load = function (received, defaults, onto = {}) { var k, ref, v; for (k in defaults) { v = defaults[k]; onto[k] = (ref = received[k]) != null ? ref : v; } return onto; }; var overwrite = function (received, defaults, onto = {}) { var k, v; for (k in received) { v = received[k]; if (defaults[k] !== void 0) { onto[k] = v; } } return onto; }; var parser = { load: load, overwrite: overwrite }; var DLList; DLList = class DLList { constructor(incr, decr) { this.incr = incr; this.decr = decr; this._first = null; this._last = null; this.length = 0; } push(value) { var node; this.length++; if (typeof this.incr === "function") { this.incr(); } node = { value, prev: this._last, next: null }; if (this._last != null) { this._last.next = node; this._last = node; } else { this._first = this._last = node; } return void 0; } shift() { var value; if (this._first == null) { return; } else { this.length--; if (typeof this.decr === "function") { this.decr(); } } value = this._first.value; if ((this._first = this._first.next) != null) { this._first.prev = null; } else { this._last = null; } return value; } first() { if (this._first != null) { return this._first.value; } } getArray() { var node, ref, results; node = this._first; results = []; while (node != null) { results.push((ref = node, node = node.next, ref.value)); } return results; } forEachShift(cb) { var node; node = this.shift(); while (node != null) { (cb(node), node = this.shift()); } return void 0; } debug() { var node, ref, ref1, ref2, results; node = this._first; results = []; while (node != null) { results.push((ref = node, node = node.next, { value: ref.value, prev: (ref1 = ref.prev) != null ? ref1.value : void 0, next: (ref2 = ref.next) != null ? ref2.value : void 0 })); } return results; } }; var DLList_1 = DLList; var Events; Events = class Events { constructor(instance) { this.instance = instance; this._events = {}; if ((this.instance.on != null) || (this.instance.once != null) || (this.instance.removeAllListeners != null)) { throw new Error("An Emitter already exists for this object"); } this.instance.on = (name, cb) => { return this._addListener(name, "many", cb); }; this.instance.once = (name, cb) => { return this._addListener(name, "once", cb); }; this.instance.removeAllListeners = (name = null) => { if (name != null) { return delete this._events[name]; } else { return this._events = {}; } }; } _addListener(name, status, cb) { var base; if ((base = this._events)[name] == null) { base[name] = []; } this._events[name].push({ cb, status }); return this.instance; } listenerCount(name) { if (this._events[name] != null) { return this._events[name].length; } else { return 0; } } async trigger(name, ...args) { var e, promises; try { if (name !== "debug") { this.trigger("debug", `Event triggered: ${name}`, args); } if (this._events[name] == null) { return; } this._events[name] = this._events[name].filter(function (listener) { return listener.status !== "none"; }); promises = this._events[name].map(async (listener) => { var e, returned; if (listener.status === "none") { return; } if (listener.status === "once") { listener.status = "none"; } try { returned = typeof listener.cb === "function" ? listener.cb(...args) : void 0; if (typeof (returned != null ? returned.then : void 0) === "function") { return (await returned); } else { return returned; } } catch (error) { e = error; { this.trigger("error", e); } return null; } }); return ((await Promise.all(promises))).find(function (x) { return x != null; }); } catch (error) { e = error; { this.trigger("error", e); } return null; } } }; var Events_1 = Events; var DLList$1, Events$1, Queues; DLList$1 = DLList_1; Events$1 = Events_1; Queues = class Queues { constructor(num_priorities) { var i; this.Events = new Events$1(this); this._length = 0; this._lists = (function () { var j, ref, results; results = []; for (i = j = 1, ref = num_priorities; (1 <= ref ? j <= ref : j >= ref); i = 1 <= ref ? ++j : --j) { results.push(new DLList$1((() => { return this.incr(); }), (() => { return this.decr(); }))); } return results; }).call(this); } incr() { if (this._length++ === 0) { return this.Events.trigger("leftzero"); } } decr() { if (--this._length === 0) { return this.Events.trigger("zero"); } } push(job) { return this._lists[job.options.priority].push(job); } queued(priority) { if (priority != null) { return this._lists[priority].length; } else { return this._length; } } shiftAll(fn) { return this._lists.forEach(function (list) { return list.forEachShift(fn); }); } getFirst(arr = this._lists) { var j, len, list; for (j = 0, len = arr.length; j < len; j++) { list = arr[j]; if (list.length > 0) { return list; } } return []; } shiftLastFrom(priority) { return this.getFirst(this._lists.slice(priority).reverse()).shift(); } }; var Queues_1 = Queues; var BottleneckError; BottleneckError = class BottleneckError extends Error { }; var BottleneckError_1 = BottleneckError; var BottleneckError$1, DEFAULT_PRIORITY, Job, NUM_PRIORITIES, parser$1; NUM_PRIORITIES = 10; DEFAULT_PRIORITY = 5; parser$1 = parser; BottleneckError$1 = BottleneckError_1; Job = class Job { constructor(task, args, options, jobDefaults, rejectOnDrop, Events, _states, Promise) { this.task = task; this.args = args; this.rejectOnDrop = rejectOnDrop; this.Events = Events; this._states = _states; this.Promise = Promise; this.options = parser$1.load(options, jobDefaults); this.options.priority = this._sanitizePriority(this.options.priority); if (this.options.id === jobDefaults.id) { this.options.id = `${this.options.id}-${this._randomIndex()}`; } this.promise = new this.Promise((_resolve, _reject) => { this._resolve = _resolve; this._reject = _reject; }); this.retryCount = 0; } _sanitizePriority(priority) { var sProperty; sProperty = ~~priority !== priority ? DEFAULT_PRIORITY : priority; if (sProperty < 0) { return 0; } else if (sProperty > NUM_PRIORITIES - 1) { return NUM_PRIORITIES - 1; } else { return sProperty; } } _randomIndex() { return Math.random().toString(36).slice(2); } doDrop({ error, message = "This job has been dropped by Bottleneck" } = {}) { if (this._states.remove(this.options.id)) { if (this.rejectOnDrop) { this._reject(error != null ? error : new BottleneckError$1(message)); } this.Events.trigger("dropped", { args: this.args, options: this.options, task: this.task, promise: this.promise }); return true; } else { return false; } } _assertStatus(expected) { var status; status = this._states.jobStatus(this.options.id); if (!(status === expected || (expected === "DONE" && status === null))) { throw new BottleneckError$1(`Invalid job status ${status}, expected ${expected}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`); } } doReceive() { this._states.start(this.options.id); return this.Events.trigger("received", { args: this.args, options: this.options }); } doQueue(reachedHWM, blocked) { this._assertStatus("RECEIVED"); this._states.next(this.options.id); return this.Events.trigger("queued", { args: this.args, options: this.options, reachedHWM, blocked }); } doRun() { if (this.retryCount === 0) { this._assertStatus("QUEUED"); this._states.next(this.options.id); } else { this._assertStatus("EXECUTING"); } return this.Events.trigger("scheduled", { args: this.args, options: this.options }); } async doExecute(chained, clearGlobalState, run, free) { var error, eventInfo, passed; if (this.retryCount === 0) { this._assertStatus("RUNNING"); this._states.next(this.options.id); } else { this._assertStatus("EXECUTING"); } eventInfo = { args: this.args, options: this.options, retryCount: this.retryCount }; this.Events.trigger("executing", eventInfo); try { passed = (await (chained != null ? chained.schedule(this.options, this.task, ...this.args) : this.task(...this.args))); if (clearGlobalState()) { this.doDone(eventInfo); await free(this.options, eventInfo); this._assertStatus("DONE"); return this._resolve(passed); } } catch (error1) { error = error1; return this._onFailure(error, eventInfo, clearGlobalState, run, free); } } doExpire(clearGlobalState, run, free) { var error, eventInfo; if (this._states.jobStatus(this.options.id === "RUNNING")) { this._states.next(this.options.id); } this._assertStatus("EXECUTING"); eventInfo = { args: this.args, options: this.options, retryCount: this.retryCount }; error = new BottleneckError$1(`This job timed out after ${this.options.expiration} ms.`); return this._onFailure(error, eventInfo, clearGlobalState, run, free); } async _onFailure(error, eventInfo, clearGlobalState, run, free) { var retry, retryAfter; if (clearGlobalState()) { retry = (await this.Events.trigger("failed", error, eventInfo)); if (retry != null) { retryAfter = ~~retry; this.Events.trigger("retry", `Retrying ${this.options.id} after ${retryAfter} ms`, eventInfo); this.retryCount++; return run(retryAfter); } else { this.doDone(eventInfo); await free(this.options, eventInfo); this._assertStatus("DONE"); return this._reject(error); } } } doDone(eventInfo) { this._assertStatus("EXECUTING"); this._states.next(this.options.id); return this.Events.trigger("done", eventInfo); } }; var Job_1 = Job; var BottleneckError$2, LocalDatastore, parser$2; parser$2 = parser; BottleneckError$2 = BottleneckError_1; LocalDatastore = class LocalDatastore { constructor(instance, storeOptions, storeInstanceOptions) { this.instance = instance; this.storeOptions = storeOptions; this.clientId = this.instance._randomIndex(); parser$2.load(storeInstanceOptions, storeInstanceOptions, this); this._nextRequest = this._lastReservoirRefresh = this._lastReservoirIncrease = Date.now(); this._running = 0; this._done = 0; this._unblockTime = 0; this.ready = this.Promise.resolve(); this.clients = {}; this._startHeartbeat(); } _startHeartbeat() { var base; if ((this.heartbeat == null) && (((this.storeOptions.reservoirRefreshInterval != null) && (this.storeOptions.reservoirRefreshAmount != null)) || ((this.storeOptions.reservoirIncreaseInterval != null) && (this.storeOptions.reservoirIncreaseAmount != null)))) { return typeof (base = (this.heartbeat = setInterval(() => { var amount, incr, maximum, now, reservoir; now = Date.now(); if ((this.storeOptions.reservoirRefreshInterval != null) && now >= this._lastReservoirRefresh + this.storeOptions.reservoirRefreshInterval) { this._lastReservoirRefresh = now; this.storeOptions.reservoir = this.storeOptions.reservoirRefreshAmount; this.instance._drainAll(this.computeCapacity()); } if ((this.storeOptions.reservoirIncreaseInterval != null) && now >= this._lastReservoirIncrease + this.storeOptions.reservoirIncreaseInterval) { ({ reservoirIncreaseAmount: amount, reservoirIncreaseMaximum: maximum, reservoir } = this.storeOptions); this._lastReservoirIncrease = now; incr = maximum != null ? Math.min(amount, maximum - reservoir) : amount; if (incr > 0) { this.storeOptions.reservoir += incr; return this.instance._drainAll(this.computeCapacity()); } } }, this.heartbeatInterval))).unref === "function" ? base.unref() : void 0; } else { return clearInterval(this.heartbeat); } } async __publish__(message) { await this.yieldLoop(); return this.instance.Events.trigger("message", message.toString()); } async __disconnect__(flush) { await this.yieldLoop(); clearInterval(this.heartbeat); return this.Promise.resolve(); } yieldLoop(t = 0) { return new this.Promise(function (resolve, reject) { return setTimeout(resolve, t); }); } computePenalty() { var ref; return (ref = this.storeOptions.penalty) != null ? ref : (15 * this.storeOptions.minTime) || 5000; } async __updateSettings__(options) { await this.yieldLoop(); parser$2.overwrite(options, options, this.storeOptions); this._startHeartbeat(); this.instance._drainAll(this.computeCapacity()); return true; } async __running__() { await this.yieldLoop(); return this._running; } async __queued__() { await this.yieldLoop(); return this.instance.queued(); } async __done__() { await this.yieldLoop(); return this._done; } async __groupCheck__(time) { await this.yieldLoop(); return (this._nextRequest + this.timeout) < time; } computeCapacity() { var maxConcurrent, reservoir; ({ maxConcurrent, reservoir } = this.storeOptions); if ((maxConcurrent != null) && (reservoir != null)) { return Math.min(maxConcurrent - this._running, reservoir); } else if (maxConcurrent != null) { return maxConcurrent - this._running; } else if (reservoir != null) { return reservoir; } else { return null; } } conditionsCheck(weight) { var capacity; capacity = this.computeCapacity(); return (capacity == null) || weight <= capacity; } async __incrementReservoir__(incr) { var reservoir; await this.yieldLoop(); reservoir = this.storeOptions.reservoir += incr; this.instance._drainAll(this.computeCapacity()); return reservoir; } async __currentReservoir__() { await this.yieldLoop(); return this.storeOptions.reservoir; } isBlocked(now) { return this._unblockTime >= now; } check(weight, now) { return this.conditionsCheck(weight) && (this._nextRequest - now) <= 0; } async __check__(weight) { var now; await this.yieldLoop(); now = Date.now(); return this.check(weight, now); } async __register__(index, weight, expiration) { var now, wait; await this.yieldLoop(); now = Date.now(); if (this.conditionsCheck(weight)) { this._running += weight; if (this.storeOptions.reservoir != null) { this.storeOptions.reservoir -= weight; } wait = Math.max(this._nextRequest - now, 0); this._nextRequest = now + wait + this.storeOptions.minTime; return { success: true, wait, reservoir: this.storeOptions.reservoir }; } else { return { success: false }; } } strategyIsBlock() { return this.storeOptions.strategy === 3; } async __submit__(queueLength, weight) { var blocked, now, reachedHWM; await this.yieldLoop(); if ((this.storeOptions.maxConcurrent != null) && weight > this.storeOptions.maxConcurrent) { throw new BottleneckError$2(`Impossible to add a job having a weight of ${weight} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`); } now = Date.now(); reachedHWM = (this.storeOptions.highWater != null) && queueLength === this.storeOptions.highWater && !this.check(weight, now); blocked = this.strategyIsBlock() && (reachedHWM || this.isBlocked(now)); if (blocked) { this._unblockTime = now + this.computePenalty(); this._nextRequest = this._unblockTime + this.storeOptions.minTime; this.instance._dropAllQueued(); } return { reachedHWM, blocked, strategy: this.storeOptions.strategy }; } async __free__(index, weight) { await this.yieldLoop(); this._running -= weight; this._done += weight; this.instance._drainAll(this.computeCapacity()); return { running: this._running }; } }; var LocalDatastore_1 = LocalDatastore; var BottleneckError$3, States; BottleneckError$3 = BottleneckError_1; States = class States { constructor(status1) { this.status = status1; this._jobs = {}; this.counts = this.status.map(function () { return 0; }); } next(id) { var current, next; current = this._jobs[id]; next = current + 1; if ((current != null) && next < this.status.length) { this.counts[current]--; this.counts[next]++; return this._jobs[id]++; } else if (current != null) { this.counts[current]--; return delete this._jobs[id]; } } start(id) { var initial; initial = 0; this._jobs[id] = initial; return this.counts[initial]++; } remove(id) { var current; current = this._jobs[id]; if (current != null) { this.counts[current]--; delete this._jobs[id]; } return current != null; } jobStatus(id) { var ref; return (ref = this.status[this._jobs[id]]) != null ? ref : null; } statusJobs(status) { var k, pos, ref, results, v; if (status != null) { pos = this.status.indexOf(status); if (pos < 0) { throw new BottleneckError$3(`status must be one of ${this.status.join(', ')}`); } ref = this._jobs; results = []; for (k in ref) { v = ref[k]; if (v === pos) { results.push(k); } } return results; } else { return Object.keys(this._jobs); } } statusCounts() { return this.counts.reduce(((acc, v, i) => { acc[this.status[i]] = v; return acc; }), {}); } }; var States_1 = States; var DLList$2, Sync; DLList$2 = DLList_1; Sync = class Sync { constructor(name, Promise) { this.schedule = this.schedule.bind(this); this.name = name; this.Promise = Promise; this._running = 0; this._queue = new DLList$2(); } isEmpty() { return this._queue.length === 0; } async _tryToRun() { var args, cb, error, reject, resolve, returned, task; if ((this._running < 1) && this._queue.length > 0) { this._running++; ({ task, args, resolve, reject } = this._queue.shift()); cb = (await (async function () { try { returned = (await task(...args)); return function () { return resolve(returned); }; } catch (error1) { error = error1; return function () { return reject(error); }; } })()); this._running--; this._tryToRun(); return cb(); } } schedule(task, ...args) { var promise, reject, resolve; resolve = reject = null; promise = new this.Promise(function (_resolve, _reject) { resolve = _resolve; return reject = _reject; }); this._queue.push({ task, args, resolve, reject }); this._tryToRun(); return promise; } }; var Sync_1 = Sync; var version = "2.19.5"; var version$1 = { version: version }; var version$2 = /*#__PURE__*/Object.freeze({ version: version, default: version$1 }); var require$$2 = () => console.log('You must import the full version of Bottleneck in order to use this feature.'); var require$$3 = () => console.log('You must import the full version of Bottleneck in order to use this feature.'); var require$$4 = () => console.log('You must import the full version of Bottleneck in order to use this feature.'); var Events$2, Group, IORedisConnection$1, RedisConnection$1, Scripts$1, parser$3; parser$3 = parser; Events$2 = Events_1; RedisConnection$1 = require$$2; IORedisConnection$1 = require$$3; Scripts$1 = require$$4; Group = (function () { class Group { constructor(limiterOptions = {}) { this.deleteKey = this.deleteKey.bind(this); this.limiterOptions = limiterOptions; parser$3.load(this.limiterOptions, this.defaults, this); this.Events = new Events$2(this); this.instances = {}; this.Bottleneck = Bottleneck_1; this._startAutoCleanup(); this.sharedConnection = this.connection != null; if (this.connection == null) { if (this.limiterOptions.datastore === "redis") { this.connection = new RedisConnection$1(Object.assign({}, this.limiterOptions, { Events: this.Events })); } else if (this.limiterOptions.datastore === "ioredis") { this.connection = new IORedisConnection$1(Object.assign({}, this.limiterOptions, { Events: this.Events })); } } } key(key = "") { var ref; return (ref = this.instances[key]) != null ? ref : (() => { var limiter; limiter = this.instances[key] = new this.Bottleneck(Object.assign(this.limiterOptions, { id: `${this.id}-${key}`, timeout: this.timeout, connection: this.connection })); this.Events.trigger("created", limiter, key); return limiter; })(); } async deleteKey(key = "") { var deleted, instance; instance = this.instances[key]; if (this.connection) { deleted = (await this.connection.__runCommand__(['del', ...Scripts$1.allKeys(`${this.id}-${key}`)])); } if (instance != null) { delete this.instances[key]; await instance.disconnect(); } return (instance != null) || deleted > 0; } limiters() { var k, ref, results, v; ref = this.instances; results = []; for (k in ref) { v = ref[k]; results.push({ key: k, limiter: v }); } return results; } keys() { return Object.keys(this.instances); } async clusterKeys() { var cursor, end, found, i, k, keys, len, next, start; if (this.connection == null) { return this.Promise.resolve(this.keys()); } keys = []; cursor = null; start = `b_${this.id}-`.length; end = "_settings".length; while (cursor !== 0) { [next, found] = (await this.connection.__runCommand__(["scan", cursor != null ? cursor : 0, "match", `b_${this.id}-*_settings`, "count", 10000])); cursor = ~~next; for (i = 0, len = found.length; i < len; i++) { k = found[i]; keys.push(k.slice(start, -end)); } } return keys; } _startAutoCleanup() { var base; clearInterval(this.interval); return typeof (base = (this.interval = setInterval(async () => { var e, k, ref, results, time, v; time = Date.now(); ref = this.instances; results = []; for (k in ref) { v = ref[k]; try { if ((await v._store.__groupCheck__(time))) { results.push(this.deleteKey(k)); } else { results.push(void 0); } } catch (error) { e = error; results.push(v.Events.trigger("error", e)); } } return results; }, this.timeout / 2))).unref === "function" ? base.unref() : void 0; } updateSettings(options = {}) { parser$3.overwrite(options, this.defaults, this); parser$3.overwrite(options, options, this.limiterOptions); if (options.timeout != null) { return this._startAutoCleanup(); } } disconnect(flush = true) { var ref; if (!this.sharedConnection) { return (ref = this.connection) != null ? ref.disconnect(flush) : void 0; } } } Group.prototype.defaults = { timeout: 1000 * 60 * 5, connection: null, Promise: Promise, id: "group-key" }; return Group; }).call(commonjsGlobal); var Group_1 = Group; var Batcher, Events$3, parser$4; parser$4 = parser; Events$3 = Events_1; Batcher = (function () { class Batcher { constructor(options = {}) { this.options = options; parser$4.load(this.options, this.defaults, this); this.Events = new Events$3(this); this._arr = []; this._resetPromise(); this._lastFlush = Date.now(); } _resetPromise() { return this._promise = new this.Promise((res, rej) => { return this._resolve = res; }); } _flush() { clearTimeout(this._timeout); this._lastFlush = Date.now(); this._resolve(); this.Events.trigger("batch", this._arr); this._arr = []; return this._resetPromise(); } add(data) { var ret; this._arr.push(data); ret = this._promise; if (this._arr.length === this.maxSize) { this._flush(); } else if ((this.maxTime != null) && this._arr.length === 1) { this._timeout = setTimeout(() => { return this._flush(); }, this.maxTime); } return ret; } } Batcher.prototype.defaults = { maxTime: null, maxSize: null, Promise: Promise }; return Batcher; }).call(commonjsGlobal); var Batcher_1 = Batcher; var require$$4$1 = () => console.log('You must import the full version of Bottleneck in order to use this feature.'); var require$$8 = getCjsExportFromNamespace(version$2); var Bottleneck, DEFAULT_PRIORITY$1, Events$4, Job$1, LocalDatastore$1, NUM_PRIORITIES$1, Queues$1, RedisDatastore$1, States$1, Sync$1, parser$5, splice = [].splice; NUM_PRIORITIES$1 = 10; DEFAULT_PRIORITY$1 = 5; parser$5 = parser; Queues$1 = Queues_1; Job$1 = Job_1; LocalDatastore$1 = LocalDatastore_1; RedisDatastore$1 = require$$4$1; Events$4 = Events_1; States$1 = States_1; Sync$1 = Sync_1; Bottleneck = (function () { class Bottleneck { constructor(options = {}, ...invalid) { var storeInstanceOptions, storeOptions; this._addToQueue = this._addToQueue.bind(this); this._validateOptions(options, invalid); parser$5.load(options, this.instanceDefaults, this); this._queues = new Queues$1(NUM_PRIORITIES$1); this._scheduled = {}; this._states = new States$1(["RECEIVED", "QUEUED", "RUNNING", "EXECUTING"].concat(this.trackDoneStatus ? ["DONE"] : [])); this._limiter = null; this.Events = new Events$4(this); this._submitLock = new Sync$1("submit", this.Promise); this._registerLock = new Sync$1("register", this.Promise); storeOptions = parser$5.load(options, this.storeDefaults, {}); this._store = (function () { if (this.datastore === "redis" || this.datastore === "ioredis" || (this.connection != null)) { storeInstanceOptions = parser$5.load(options, this.redisStoreDefaults, {}); return new RedisDatastore$1(this, storeOptions, storeInstanceOptions); } else if (this.datastore === "local") { storeInstanceOptions = parser$5.load(options, this.localStoreDefaults, {}); return new LocalDatastore$1(this, storeOptions, storeInstanceOptions); } else { throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`); } }).call(this); this._queues.on("leftzero", () => { var ref; return (ref = this._store.heartbeat) != null ? typeof ref.ref === "function" ? ref.ref() : void 0 : void 0; }); this._queues.on("zero", () => { var ref; return (ref = this._store.heartbeat) != null ? typeof ref.unref === "function" ? ref.unref() : void 0 : void 0; }); } _validateOptions(options, invalid) { if (!((options != null) && typeof options === "object" && invalid.length === 0)) { throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1."); } } ready() { return this._store.ready; } clients() { return this._store.clients; } channel() { return `b_${this.id}`; } channel_client() { return `b_${this.id}_${this._store.clientId}`; } publish(message) { return this._store.__publish__(message); } disconnect(flush = true) { return this._store.__disconnect__(flush); } chain(_limiter) { this._limiter = _limiter; return this; } queued(priority) { return this._queues.queued(priority); } clusterQueued() { return this._store.__queued__(); } empty() { return this.queued() === 0 && this._submitLock.isEmpty(); } running() { return this._store.__running__(); } done() { return this._store.__done__(); } jobStatus(id) { return this._states.jobStatus(id); } jobs(status) { return this._states.statusJobs(status); } counts() { return this._states.statusCounts(); } _randomIndex() { return Math.random().toString(36).slice(2); } check(weight = 1) { return this._store.__check__(weight); } _clearGlobalState(index) { if (this._scheduled[index] != null) { clearTimeout(this._scheduled[index].expiration); delete this._scheduled[index]; return true; } else { return false; } } async _free(index, job, options, eventInfo) { var e, running; try { ({ running } = (await this._store.__free__(index, options.weight))); this.Events.trigger("debug", `Freed ${options.id}`, eventInfo); if (running === 0 && this.empty()) { return this.Events.trigger("idle"); } } catch (error1) { e = error1; return this.Events.trigger("error", e); } } _run(index, job, wait) { var clearGlobalState, free, run; job.doRun(); clearGlobalState = this._clearGlobalState.bind(this, index); run = this._run.bind(this, index, job); free = this._free.bind(this, index, job); return this._scheduled[index] = { timeout: setTimeout(() => { return job.doExecute(this._limiter, clearGlobalState, run, free); }, wait), expiration: job.options.expiration != null ? setTimeout(function () { return job.doExpire(clearGlobalState, run, free); }, wait + job.options.expiration) : void 0, job: job }; } _drainOne(capacity) { return this._registerLock.schedule(() => { var args, index, next, options, queue; if (this.queued() === 0) { return this.Promise.resolve(null); } queue = this._queues.getFirst(); ({ options, args } = next = queue.first()); if ((capacity != null) && options.weight > capacity) { return this.Promise.resolve(null); } this.Events.trigger("debug", `Draining ${options.id}`, { args, options }); index = this._randomIndex(); return this._store.__register__(index, options.weight, options.expiration).then(({ success, wait, reservoir }) => { var empty; this.Events.trigger("debug", `Drained ${options.id}`, { success, args, options }); if (success) { queue.shift(); empty = this.empty(); if (empty) { this.Events.trigger("empty"); } if (reservoir === 0) { this.Events.trigger("depleted", empty); } this._run(index, next, wait); return this.Promise.resolve(options.weight); } else { return this.Promise.resolve(null); } }); }); } _drainAll(capacity, total = 0) { return this._drainOne(capacity).then((drained) => { var newCapacity; if (drained != null) { newCapacity = capacity != null ? capacity - drained : capacity; return this._drainAll(newCapacity, total + drained); } else { return this.Promise.resolve(total); } }).catch((e) => { return this.Events.trigger("error", e); }); } _dropAllQueued(message) { return this._queues.shiftAll(function (job) { return job.doDrop({ message }); }); } stop(options = {}) { var done, waitForExecuting; options = parser$5.load(options, this.stopDefaults); waitForExecuting = (at) => { var finished; finished = () => { var counts; counts = this._states.counts; return (counts[0] + counts[1] + counts[2] + counts[3]) === at; }; return new this.Promise((resolve, reject) => { if (finished()) { return resolve(); } else { return this.on("done", () => { if (finished()) { this.removeAllListeners("done"); return resolve(); } }); } }); }; done = options.dropWaitingJobs ? (this._run = function (index, next) { return next.doDrop({ message: options.dropErrorMessage }); }, this._drainOne = () => { return this.Promise.resolve(null); }, this._registerLock.schedule(() => { return this._submitLock.schedule(() => { var k, ref, v; ref = this._scheduled; for (k in ref) { v = ref[k]; if (this.jobStatus(v.job.options.id) === "RUNNING") { clearTimeout(v.timeout); clearTimeout(v.expiration); v.job.doDrop({ message: options.dropErrorMessage }); } } this._dropAllQueued(options.dropErrorMessage); return waitForExecuting(0); }); })) : this.schedule({ priority: NUM_PRIORITIES$1 - 1, weight: 0 }, () => { return waitForExecuting(1); }); this._receive = function (job) { return job._reject(new Bottleneck.prototype.BottleneckError(options.enqueueErrorMessage)); }; this.stop = () => { return this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called")); }; return done; } async _addToQueue(job) { var args, blocked, error, options, reachedHWM, shifted, strategy; ({ args, options } = job); try { ({ reachedHWM, blocked, strategy } = (await this._store.__submit__(this.queued(), options.weight))); } catch (error1) { error = error1; this.Events.trigger("debug", `Could not queue ${options.id}`, { args, options, error }); job.doDrop({ error }); return false; } if (blocked) { job.doDrop(); return true; } else if (reachedHWM) { shifted = strategy === Bottleneck.prototype.strategy.LEAK ? this._queues.shiftLastFrom(options.priority) : strategy === Bottleneck.prototype.strategy.OVERFLOW_PRIORITY ? this._queues.shiftLastFrom(options.priority + 1) : strategy === Bottleneck.prototype.strategy.OVERFLOW ? job : void 0; if (shifted != null) { shifted.doDrop(); } if ((shifted == null) || strategy === Bottleneck.prototype.strategy.OVERFLOW) { if (shifted == null) { job.doDrop(); } return reachedHWM; } } job.doQueue(reachedHWM, blocked); this._queues.push(job); await this._drainAll(); return reachedHWM; } _receive(job) { if (this._states.jobStatus(job.options.id) != null) { job._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${job.options.id})`)); return false; } else { job.doReceive(); return this._submitLock.schedule(this._addToQueue, job); } } submit(...args) { var cb, fn, job, options, ref, ref1, task; if (typeof args[0] === "function") { ref = args, [fn, ...args] = ref, [cb] = splice.call(args, -1); options = parser$5.load({}, this.jobDefaults); } else { ref1 = args, [options, fn, ...args] = ref1, [cb] = splice.call(args, -1); options = parser$5.load(options, this.jobDefaults); } task = (...args) => { return new this.Promise(function (resolve, reject) { return fn(...args, function (...args) { return (args[0] != null ? reject : resolve)(args); }); }); }; job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise); job.promise.then(function (args) { return typeof cb === "function" ? cb(...args) : void 0; }).catch(function (args) { if (Array.isArray(args)) { return typeof cb === "function" ? cb(...args) : void 0; } else { return typeof cb === "function" ? cb(args) : void 0; } }); return this._receive(job); } schedule(...args) { var job, options, task; if (typeof args[0] === "function") { [task, ...args] = args; options = {}; } else { [options, task, ...args] = args; } job = new Job$1(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise); this._receive(job); return job.promise; } wrap(fn) { var schedule, wrapped; schedule = this.schedule.bind(this); wrapped = function (...args) { return schedule(fn.bind(this), ...args); }; wrapped.withOptions = function (options, ...args) { return schedule(options, fn, ...args); }; return wrapped; } async updateSettings(options = {}) { await this._store.__updateSettings__(parser$5.overwrite(options, this.storeDefaults)); parser$5.overwrite(options, this.instanceDefaults, this); return this; } currentReservoir() { return this._store.__currentReservoir__(); } incrementReservoir(incr = 0) { return this._store.__incrementReservoir__(incr); } } Bottleneck.default = Bottleneck; Bottleneck.Events = Events$4; Bottleneck.version = Bottleneck.prototype.version = require$$8.version; Bottleneck.strategy = Bottleneck.prototype.strategy = { LEAK: 1, OVERFLOW: 2, OVERFLOW_PRIORITY: 4, BLOCK: 3 }; Bottleneck.BottleneckError = Bottleneck.prototype.BottleneckError = BottleneckError_1; Bottleneck.Group = Bottleneck.prototype.Group = Group_1; Bottleneck.RedisConnection = Bottleneck.prototype.RedisConnection = require$$2; Bottleneck.IORedisConnection = Bottleneck.prototype.IORedisConnection = require$$3; Bottleneck.Batcher = Bottleneck.prototype.Batcher = Batcher_1; Bottleneck.prototype.jobDefaults = { priority: DEFAULT_PRIORITY$1, weight: 1, expiration: null, id: "<no-id>" }; Bottleneck.prototype.storeDefaults = { maxConcurrent: null, minTime: 0, highWater: null, strategy: Bottleneck.prototype.strategy.LEAK, penalty: null, reservoir: null, reservoirRefreshInterval: null, reservoirRefreshAmount: null, reservoirIncreaseInterval: null, reservoirIncreaseAmount: null, reservoirIncreaseMaximum: null }; Bottleneck.prototype.localStoreDefaults = { Promise: Promise, timeout: null, heartbeatInterval: 250 }; Bottleneck.prototype.redisStoreDefaults = { Promise: Promise, timeout: null, heartbeatInterval: 5000, clientTimeout: 10000, Redis: null, clientOptions: {}, clusterNodes: null, clearDatastore: false, connection: null }; Bottleneck.prototype.instanceDefaults = { datastore: "local", connection: null, id: "<no-id>", rejectOnDrop: true, trackDoneStatus: false, Promise: Promise }; Bottleneck.prototype.stopDefaults = { enqueueErrorMessage: "This limiter has been stopped and cannot accept new jobs.", dropWaitingJobs: true, dropErrorMessage: "This limiter has been stopped." }; return Bottleneck; }).call(commonjsGlobal); var Bottleneck_1 = Bottleneck; var lib = Bottleneck_1; return lib; }))); /***/ })
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/octokit/static/chunks/357-72bd409f1472b1b8/output.js
JavaScript
export default function(module, __unused_webpack_exports, __webpack_require__) { var commonjsGlobal, parser, BottleneckError_1, version, version$2, require$$2, require$$3, DLList, Events, Queues, Job, LocalDatastore, States, Sync, Group, Scripts$1, Batcher, RedisDatastore$1, require$$8, splice, Bottleneck_1; commonjsGlobal = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== __webpack_require__.g ? __webpack_require__.g : 'undefined' != typeof self ? self : {}, parser = { load: function(received, defaults, onto = {}) { var k, ref, v; for(k in defaults)v = defaults[k], onto[k] = null != (ref = received[k]) ? ref : v; return onto; }, overwrite: function(received, defaults, onto = {}) { var k, v; for(k in received)v = received[k], void 0 !== defaults[k] && (onto[k] = v); return onto; } }, DLList = class { constructor(incr, decr){ this.incr = incr, this.decr = decr, this._first = null, this._last = null, this.length = 0; } push(value) { var node; this.length++, "function" == typeof this.incr && this.incr(), node = { value, prev: this._last, next: null }, null != this._last ? (this._last.next = node, this._last = node) : this._first = this._last = node; } shift() { var value; return null == this._first ? void 0 : (this.length--, "function" == typeof this.decr && this.decr(), value = this._first.value, null != (this._first = this._first.next) ? this._first.prev = null : this._last = null, value); } first() { if (null != this._first) return this._first.value; } getArray() { var node, ref, results; for(node = this._first, results = []; null != node;)results.push((ref = node, node = node.next, ref.value)); return results; } forEachShift(cb) { var node; for(node = this.shift(); null != node;)cb(node), node = this.shift(); } debug() { var node, ref, ref1, ref2, results; for(node = this._first, results = []; null != node;)results.push((ref = node, node = node.next, { value: ref.value, prev: null != (ref1 = ref.prev) ? ref1.value : void 0, next: null != (ref2 = ref.next) ? ref2.value : void 0 })); return results; } }, Events = class { constructor(instance){ if (this.instance = instance, this._events = {}, null != this.instance.on || null != this.instance.once || null != this.instance.removeAllListeners) throw Error("An Emitter already exists for this object"); this.instance.on = (name, cb)=>this._addListener(name, "many", cb), this.instance.once = (name, cb)=>this._addListener(name, "once", cb), this.instance.removeAllListeners = (name = null)=>null != name ? delete this._events[name] : this._events = {}; } _addListener(name, status, cb) { var base; return null == (base = this._events)[name] && (base[name] = []), this._events[name].push({ cb, status }), this.instance; } listenerCount(name) { return null != this._events[name] ? this._events[name].length : 0; } async trigger(name, ...args) { var promises; try { if ("debug" !== name && this.trigger("debug", `Event triggered: ${name}`, args), null == this._events[name]) return; return this._events[name] = this._events[name].filter(function(listener) { return "none" !== listener.status; }), promises = this._events[name].map(async (listener)=>{ var returned; if ("none" !== listener.status) { "once" === listener.status && (listener.status = "none"); try { if (returned = "function" == typeof listener.cb ? listener.cb(...args) : void 0, "function" == typeof (null != returned ? returned.then : void 0)) return await returned; return returned; } catch (error) { return this.trigger("error", error), null; } } }), (await Promise.all(promises)).find(function(x) { return null != x; }); } catch (error) { return this.trigger("error", error), null; } } }, Queues = class { constructor(num_priorities){ this.Events = new Events(this), this._length = 0, this._lists = (function() { var j, results; for(results = [], j = 1; 1 <= num_priorities ? j <= num_priorities : j >= num_priorities; 1 <= num_priorities ? ++j : --j)results.push(new DLList(()=>this.incr(), ()=>this.decr())); return results; }).call(this); } incr() { if (0 == this._length++) return this.Events.trigger("leftzero"); } decr() { if (0 == --this._length) return this.Events.trigger("zero"); } push(job) { return this._lists[job.options.priority].push(job); } queued(priority) { return null != priority ? this._lists[priority].length : this._length; } shiftAll(fn) { return this._lists.forEach(function(list) { return list.forEachShift(fn); }); } getFirst(arr = this._lists) { var j, len, list; for(j = 0, len = arr.length; j < len; j++)if ((list = arr[j]).length > 0) return list; return []; } shiftLastFrom(priority) { return this.getFirst(this._lists.slice(priority).reverse()).shift(); } }, BottleneckError_1 = class extends Error { }, Job = class { constructor(task, args, options, jobDefaults, rejectOnDrop, Events, _states, Promise1){ this.task = task, this.args = args, this.rejectOnDrop = rejectOnDrop, this.Events = Events, this._states = _states, this.Promise = Promise1, this.options = parser.load(options, jobDefaults), this.options.priority = this._sanitizePriority(this.options.priority), this.options.id === jobDefaults.id && (this.options.id = `${this.options.id}-${this._randomIndex()}`), this.promise = new this.Promise((_resolve, _reject)=>{ this._resolve = _resolve, this._reject = _reject; }), this.retryCount = 0; } _sanitizePriority(priority) { var sProperty; return (sProperty = ~~priority !== priority ? 5 : priority) < 0 ? 0 : sProperty > 9 ? 9 : sProperty; } _randomIndex() { return Math.random().toString(36).slice(2); } doDrop({ error, message = "This job has been dropped by Bottleneck" } = {}) { return !!this._states.remove(this.options.id) && (this.rejectOnDrop && this._reject(null != error ? error : new BottleneckError_1(message)), this.Events.trigger("dropped", { args: this.args, options: this.options, task: this.task, promise: this.promise }), !0); } _assertStatus(expected) { var status; if ((status = this._states.jobStatus(this.options.id)) !== expected && ("DONE" !== expected || null !== status)) throw new BottleneckError_1(`Invalid job status ${status}, expected ${expected}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`); } doReceive() { return this._states.start(this.options.id), this.Events.trigger("received", { args: this.args, options: this.options }); } doQueue(reachedHWM, blocked) { return this._assertStatus("RECEIVED"), this._states.next(this.options.id), this.Events.trigger("queued", { args: this.args, options: this.options, reachedHWM, blocked }); } doRun() { return 0 === this.retryCount ? (this._assertStatus("QUEUED"), this._states.next(this.options.id)) : this._assertStatus("EXECUTING"), this.Events.trigger("scheduled", { args: this.args, options: this.options }); } async doExecute(chained, clearGlobalState, run, free) { var eventInfo, passed; 0 === this.retryCount ? (this._assertStatus("RUNNING"), this._states.next(this.options.id)) : this._assertStatus("EXECUTING"), eventInfo = { args: this.args, options: this.options, retryCount: this.retryCount }, this.Events.trigger("executing", eventInfo); try { if (passed = await (null != chained ? chained.schedule(this.options, this.task, ...this.args) : this.task(...this.args)), clearGlobalState()) return this.doDone(eventInfo), await free(this.options, eventInfo), this._assertStatus("DONE"), this._resolve(passed); } catch (error1) { return this._onFailure(error1, eventInfo, clearGlobalState, run, free); } } doExpire(clearGlobalState, run, free) { var error, eventInfo; return this._states.jobStatus("RUNNING" === this.options.id) && this._states.next(this.options.id), this._assertStatus("EXECUTING"), eventInfo = { args: this.args, options: this.options, retryCount: this.retryCount }, error = new BottleneckError_1(`This job timed out after ${this.options.expiration} ms.`), this._onFailure(error, eventInfo, clearGlobalState, run, free); } async _onFailure(error, eventInfo, clearGlobalState, run, free) { var retry, retryAfter; if (clearGlobalState()) return null != (retry = await this.Events.trigger("failed", error, eventInfo)) ? (retryAfter = ~~retry, this.Events.trigger("retry", `Retrying ${this.options.id} after ${retryAfter} ms`, eventInfo), this.retryCount++, run(retryAfter)) : (this.doDone(eventInfo), await free(this.options, eventInfo), this._assertStatus("DONE"), this._reject(error)); } doDone(eventInfo) { return this._assertStatus("EXECUTING"), this._states.next(this.options.id), this.Events.trigger("done", eventInfo); } }, LocalDatastore = class { constructor(instance, storeOptions, storeInstanceOptions){ this.instance = instance, this.storeOptions = storeOptions, this.clientId = this.instance._randomIndex(), parser.load(storeInstanceOptions, storeInstanceOptions, this), this._nextRequest = this._lastReservoirRefresh = this._lastReservoirIncrease = Date.now(), this._running = 0, this._done = 0, this._unblockTime = 0, this.ready = this.Promise.resolve(), this.clients = {}, this._startHeartbeat(); } _startHeartbeat() { var base; return null == this.heartbeat && (null != this.storeOptions.reservoirRefreshInterval && null != this.storeOptions.reservoirRefreshAmount || null != this.storeOptions.reservoirIncreaseInterval && null != this.storeOptions.reservoirIncreaseAmount) ? "function" == typeof (base = this.heartbeat = setInterval(()=>{ var amount, incr, maximum, now, reservoir; if (now = Date.now(), null != this.storeOptions.reservoirRefreshInterval && now >= this._lastReservoirRefresh + this.storeOptions.reservoirRefreshInterval && (this._lastReservoirRefresh = now, this.storeOptions.reservoir = this.storeOptions.reservoirRefreshAmount, this.instance._drainAll(this.computeCapacity())), null != this.storeOptions.reservoirIncreaseInterval && now >= this._lastReservoirIncrease + this.storeOptions.reservoirIncreaseInterval && ({ reservoirIncreaseAmount: amount, reservoirIncreaseMaximum: maximum, reservoir } = this.storeOptions, this._lastReservoirIncrease = now, (incr = null != maximum ? Math.min(amount, maximum - reservoir) : amount) > 0)) return this.storeOptions.reservoir += incr, this.instance._drainAll(this.computeCapacity()); }, this.heartbeatInterval)).unref ? base.unref() : void 0 : clearInterval(this.heartbeat); } async __publish__(message) { return await this.yieldLoop(), this.instance.Events.trigger("message", message.toString()); } async __disconnect__(flush) { return await this.yieldLoop(), clearInterval(this.heartbeat), this.Promise.resolve(); } yieldLoop(t = 0) { return new this.Promise(function(resolve, reject) { return setTimeout(resolve, t); }); } computePenalty() { var ref; return null != (ref = this.storeOptions.penalty) ? ref : 15 * this.storeOptions.minTime || 5000; } async __updateSettings__(options) { return await this.yieldLoop(), parser.overwrite(options, options, this.storeOptions), this._startHeartbeat(), this.instance._drainAll(this.computeCapacity()), !0; } async __running__() { return await this.yieldLoop(), this._running; } async __queued__() { return await this.yieldLoop(), this.instance.queued(); } async __done__() { return await this.yieldLoop(), this._done; } async __groupCheck__(time) { return await this.yieldLoop(), this._nextRequest + this.timeout < time; } computeCapacity() { var maxConcurrent, reservoir; return ({ maxConcurrent, reservoir } = this.storeOptions, null != maxConcurrent && null != reservoir) ? Math.min(maxConcurrent - this._running, reservoir) : null != maxConcurrent ? maxConcurrent - this._running : null != reservoir ? reservoir : null; } conditionsCheck(weight) { var capacity; return null == (capacity = this.computeCapacity()) || weight <= capacity; } async __incrementReservoir__(incr) { var reservoir; return await this.yieldLoop(), reservoir = this.storeOptions.reservoir += incr, this.instance._drainAll(this.computeCapacity()), reservoir; } async __currentReservoir__() { return await this.yieldLoop(), this.storeOptions.reservoir; } isBlocked(now) { return this._unblockTime >= now; } check(weight, now) { return this.conditionsCheck(weight) && this._nextRequest - now <= 0; } async __check__(weight) { var now; return await this.yieldLoop(), now = Date.now(), this.check(weight, now); } async __register__(index, weight, expiration) { var now, wait; return (await this.yieldLoop(), now = Date.now(), this.conditionsCheck(weight)) ? (this._running += weight, null != this.storeOptions.reservoir && (this.storeOptions.reservoir -= weight), wait = Math.max(this._nextRequest - now, 0), this._nextRequest = now + wait + this.storeOptions.minTime, { success: !0, wait, reservoir: this.storeOptions.reservoir }) : { success: !1 }; } strategyIsBlock() { return 3 === this.storeOptions.strategy; } async __submit__(queueLength, weight) { var blocked, now, reachedHWM; if (await this.yieldLoop(), null != this.storeOptions.maxConcurrent && weight > this.storeOptions.maxConcurrent) throw new BottleneckError_1(`Impossible to add a job having a weight of ${weight} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`); return now = Date.now(), reachedHWM = null != this.storeOptions.highWater && queueLength === this.storeOptions.highWater && !this.check(weight, now), (blocked = this.strategyIsBlock() && (reachedHWM || this.isBlocked(now))) && (this._unblockTime = now + this.computePenalty(), this._nextRequest = this._unblockTime + this.storeOptions.minTime, this.instance._dropAllQueued()), { reachedHWM, blocked, strategy: this.storeOptions.strategy }; } async __free__(index, weight) { return await this.yieldLoop(), this._running -= weight, this._done += weight, this.instance._drainAll(this.computeCapacity()), { running: this._running }; } }, States = class { constructor(status1){ this.status = status1, this._jobs = {}, this.counts = this.status.map(function() { return 0; }); } next(id) { var current, next; return (next = (current = this._jobs[id]) + 1, null != current && next < this.status.length) ? (this.counts[current]--, this.counts[next]++, this._jobs[id]++) : null != current ? (this.counts[current]--, delete this._jobs[id]) : void 0; } start(id) { return this._jobs[id] = 0, this.counts[0]++; } remove(id) { var current; return null != (current = this._jobs[id]) && (this.counts[current]--, delete this._jobs[id]), null != current; } jobStatus(id) { var ref; return null != (ref = this.status[this._jobs[id]]) ? ref : null; } statusJobs(status) { var k, pos, ref, results; if (null == status) return Object.keys(this._jobs); if ((pos = this.status.indexOf(status)) < 0) throw new BottleneckError_1(`status must be one of ${this.status.join(', ')}`); for(k in ref = this._jobs, results = [], ref)ref[k] === pos && results.push(k); return results; } statusCounts() { return this.counts.reduce((acc, v, i)=>(acc[this.status[i]] = v, acc), {}); } }, Sync = class { constructor(name, Promise1){ this.schedule = this.schedule.bind(this), this.name = name, this.Promise = Promise1, this._running = 0, this._queue = new DLList(); } isEmpty() { return 0 === this._queue.length; } async _tryToRun() { var args, cb, reject, resolve, returned, task; if (this._running < 1 && this._queue.length > 0) return this._running++, { task, args, resolve, reject } = this._queue.shift(), cb = await async function() { try { return returned = await task(...args), function() { return resolve(returned); }; } catch (error1) { return function() { return reject(error1); }; } }(), this._running--, this._tryToRun(), cb(); } schedule(task, ...args) { var promise, reject, resolve; return resolve = reject = null, promise = new this.Promise(function(_resolve, _reject) { return resolve = _resolve, reject = _reject; }), this._queue.push({ task, args, resolve, reject }), this._tryToRun(), promise; } }, version$2 = /*#__PURE__*/ Object.freeze({ version: version = "2.19.5", default: { version: version } }), require$$2 = ()=>console.log('You must import the full version of Bottleneck in order to use this feature.'), require$$3 = ()=>console.log('You must import the full version of Bottleneck in order to use this feature.'), Scripts$1 = ()=>console.log('You must import the full version of Bottleneck in order to use this feature.'), Group = (function() { class Group { constructor(limiterOptions = {}){ this.deleteKey = this.deleteKey.bind(this), this.limiterOptions = limiterOptions, parser.load(this.limiterOptions, this.defaults, this), this.Events = new Events(this), this.instances = {}, this.Bottleneck = Bottleneck_1, this._startAutoCleanup(), this.sharedConnection = null != this.connection, null == this.connection && ("redis" === this.limiterOptions.datastore ? this.connection = new require$$2(Object.assign({}, this.limiterOptions, { Events: this.Events })) : "ioredis" === this.limiterOptions.datastore && (this.connection = new require$$3(Object.assign({}, this.limiterOptions, { Events: this.Events })))); } key(key = "") { var ref; return null != (ref = this.instances[key]) ? ref : (()=>{ var limiter; return limiter = this.instances[key] = new this.Bottleneck(Object.assign(this.limiterOptions, { id: `${this.id}-${key}`, timeout: this.timeout, connection: this.connection })), this.Events.trigger("created", limiter, key), limiter; })(); } async deleteKey(key = "") { var deleted, instance; return instance = this.instances[key], this.connection && (deleted = await this.connection.__runCommand__([ 'del', ...Scripts$1.allKeys(`${this.id}-${key}`) ])), null != instance && (delete this.instances[key], await instance.disconnect()), null != instance || deleted > 0; } limiters() { var k, ref, results, v; for(k in ref = this.instances, results = [], ref)v = ref[k], results.push({ key: k, limiter: v }); return results; } keys() { return Object.keys(this.instances); } async clusterKeys() { var cursor, found, i, k, keys, len, next, start; if (null == this.connection) return this.Promise.resolve(this.keys()); for(keys = [], cursor = null, start = `b_${this.id}-`.length; 0 !== cursor;)for(i = 0, [next, found] = await this.connection.__runCommand__([ "scan", null != cursor ? cursor : 0, "match", `b_${this.id}-*_settings`, "count", 10000 ]), cursor = ~~next, len = found.length; i < len; i++)k = found[i], keys.push(k.slice(start, -9)); return keys; } _startAutoCleanup() { var base; return clearInterval(this.interval), "function" == typeof (base = this.interval = setInterval(async ()=>{ var k, ref, results, time, v; for(k in time = Date.now(), ref = this.instances, results = [], ref){ v = ref[k]; try { await v._store.__groupCheck__(time) ? results.push(this.deleteKey(k)) : results.push(void 0); } catch (error) { results.push(v.Events.trigger("error", error)); } } return results; }, this.timeout / 2)).unref ? base.unref() : void 0; } updateSettings(options = {}) { if (parser.overwrite(options, this.defaults, this), parser.overwrite(options, options, this.limiterOptions), null != options.timeout) return this._startAutoCleanup(); } disconnect(flush = !0) { var ref; if (!this.sharedConnection) return null != (ref = this.connection) ? ref.disconnect(flush) : void 0; } } return Group.prototype.defaults = { timeout: 300000, connection: null, Promise: Promise, id: "group-key" }, Group; }).call(commonjsGlobal), Batcher = (function() { class Batcher { constructor(options = {}){ this.options = options, parser.load(this.options, this.defaults, this), this.Events = new Events(this), this._arr = [], this._resetPromise(), this._lastFlush = Date.now(); } _resetPromise() { return this._promise = new this.Promise((res, rej)=>this._resolve = res); } _flush() { return clearTimeout(this._timeout), this._lastFlush = Date.now(), this._resolve(), this.Events.trigger("batch", this._arr), this._arr = [], this._resetPromise(); } add(data) { var ret; return this._arr.push(data), ret = this._promise, this._arr.length === this.maxSize ? this._flush() : null != this.maxTime && 1 === this._arr.length && (this._timeout = setTimeout(()=>this._flush(), this.maxTime)), ret; } } return Batcher.prototype.defaults = { maxTime: null, maxSize: null, Promise: Promise }, Batcher; }).call(commonjsGlobal), require$$8 = version$2 && version$2.default || version$2, splice = [].splice, RedisDatastore$1 = ()=>console.log('You must import the full version of Bottleneck in order to use this feature.'), module.exports = Bottleneck_1 = (function() { class Bottleneck { constructor(options = {}, ...invalid){ var storeOptions; this._addToQueue = this._addToQueue.bind(this), this._validateOptions(options, invalid), parser.load(options, this.instanceDefaults, this), this._queues = new Queues(10), this._scheduled = {}, this._states = new States([ "RECEIVED", "QUEUED", "RUNNING", "EXECUTING" ].concat(this.trackDoneStatus ? [ "DONE" ] : [])), this._limiter = null, this.Events = new Events(this), this._submitLock = new Sync("submit", this.Promise), this._registerLock = new Sync("register", this.Promise), storeOptions = parser.load(options, this.storeDefaults, {}), this._store = (function() { if ("redis" === this.datastore || "ioredis" === this.datastore || null != this.connection) return new RedisDatastore$1(this, storeOptions, parser.load(options, this.redisStoreDefaults, {})); if ("local" === this.datastore) return new LocalDatastore(this, storeOptions, parser.load(options, this.localStoreDefaults, {})); throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`); }).call(this), this._queues.on("leftzero", ()=>{ var ref; return null != (ref = this._store.heartbeat) && "function" == typeof ref.ref ? ref.ref() : void 0; }), this._queues.on("zero", ()=>{ var ref; return null != (ref = this._store.heartbeat) && "function" == typeof ref.unref ? ref.unref() : void 0; }); } _validateOptions(options, invalid) { if (null == options || "object" != typeof options || 0 !== invalid.length) throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1."); } ready() { return this._store.ready; } clients() { return this._store.clients; } channel() { return `b_${this.id}`; } channel_client() { return `b_${this.id}_${this._store.clientId}`; } publish(message) { return this._store.__publish__(message); } disconnect(flush = !0) { return this._store.__disconnect__(flush); } chain(_limiter) { return this._limiter = _limiter, this; } queued(priority) { return this._queues.queued(priority); } clusterQueued() { return this._store.__queued__(); } empty() { return 0 === this.queued() && this._submitLock.isEmpty(); } running() { return this._store.__running__(); } done() { return this._store.__done__(); } jobStatus(id) { return this._states.jobStatus(id); } jobs(status) { return this._states.statusJobs(status); } counts() { return this._states.statusCounts(); } _randomIndex() { return Math.random().toString(36).slice(2); } check(weight = 1) { return this._store.__check__(weight); } _clearGlobalState(index) { return null != this._scheduled[index] && (clearTimeout(this._scheduled[index].expiration), delete this._scheduled[index], !0); } async _free(index, job, options, eventInfo) { var running; try { if ({ running } = await this._store.__free__(index, options.weight), this.Events.trigger("debug", `Freed ${options.id}`, eventInfo), 0 === running && this.empty()) return this.Events.trigger("idle"); } catch (error1) { return this.Events.trigger("error", error1); } } _run(index, job, wait) { var clearGlobalState, free, run; return job.doRun(), clearGlobalState = this._clearGlobalState.bind(this, index), run = this._run.bind(this, index, job), free = this._free.bind(this, index, job), this._scheduled[index] = { timeout: setTimeout(()=>job.doExecute(this._limiter, clearGlobalState, run, free), wait), expiration: null != job.options.expiration ? setTimeout(function() { return job.doExpire(clearGlobalState, run, free); }, wait + job.options.expiration) : void 0, job: job }; } _drainOne(capacity) { return this._registerLock.schedule(()=>{ var args, index, next, options, queue; return 0 === this.queued() ? this.Promise.resolve(null) : (queue = this._queues.getFirst(), { options, args } = next = queue.first(), null != capacity && options.weight > capacity) ? this.Promise.resolve(null) : (this.Events.trigger("debug", `Draining ${options.id}`, { args, options }), index = this._randomIndex(), this._store.__register__(index, options.weight, options.expiration).then(({ success, wait, reservoir })=>{ var empty; return (this.Events.trigger("debug", `Drained ${options.id}`, { success, args, options }), success) ? (queue.shift(), (empty = this.empty()) && this.Events.trigger("empty"), 0 === reservoir && this.Events.trigger("depleted", empty), this._run(index, next, wait), this.Promise.resolve(options.weight)) : this.Promise.resolve(null); })); }); } _drainAll(capacity, total = 0) { return this._drainOne(capacity).then((drained)=>null != drained ? this._drainAll(null != capacity ? capacity - drained : capacity, total + drained) : this.Promise.resolve(total)).catch((e)=>this.Events.trigger("error", e)); } _dropAllQueued(message) { return this._queues.shiftAll(function(job) { return job.doDrop({ message }); }); } stop(options = {}) { var done, waitForExecuting; return options = parser.load(options, this.stopDefaults), waitForExecuting = (at)=>{ var finished; return finished = ()=>{ var counts; return (counts = this._states.counts)[0] + counts[1] + counts[2] + counts[3] === at; }, new this.Promise((resolve, reject)=>finished() ? resolve() : this.on("done", ()=>{ if (finished()) return this.removeAllListeners("done"), resolve(); })); }, done = options.dropWaitingJobs ? (this._run = function(index, next) { return next.doDrop({ message: options.dropErrorMessage }); }, this._drainOne = ()=>this.Promise.resolve(null), this._registerLock.schedule(()=>this._submitLock.schedule(()=>{ var k, ref, v; for(k in ref = this._scheduled)v = ref[k], "RUNNING" === this.jobStatus(v.job.options.id) && (clearTimeout(v.timeout), clearTimeout(v.expiration), v.job.doDrop({ message: options.dropErrorMessage })); return this._dropAllQueued(options.dropErrorMessage), waitForExecuting(0); }))) : this.schedule({ priority: 9, weight: 0 }, ()=>waitForExecuting(1)), this._receive = function(job) { return job._reject(new Bottleneck.prototype.BottleneckError(options.enqueueErrorMessage)); }, this.stop = ()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called")), done; } async _addToQueue(job) { var args, blocked, options, reachedHWM, shifted, strategy; ({ args, options } = job); try { ({ reachedHWM, blocked, strategy } = await this._store.__submit__(this.queued(), options.weight)); } catch (error1) { return this.Events.trigger("debug", `Could not queue ${options.id}`, { args, options, error: error1 }), job.doDrop({ error: error1 }), !1; } return blocked ? (job.doDrop(), !0) : (reachedHWM && (null != (shifted = strategy === Bottleneck.prototype.strategy.LEAK ? this._queues.shiftLastFrom(options.priority) : strategy === Bottleneck.prototype.strategy.OVERFLOW_PRIORITY ? this._queues.shiftLastFrom(options.priority + 1) : strategy === Bottleneck.prototype.strategy.OVERFLOW ? job : void 0) && shifted.doDrop(), null == shifted || strategy === Bottleneck.prototype.strategy.OVERFLOW) ? null == shifted && job.doDrop() : (job.doQueue(reachedHWM, blocked), this._queues.push(job), await this._drainAll()), reachedHWM); } _receive(job) { return null != this._states.jobStatus(job.options.id) ? (job._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${job.options.id})`)), !1) : (job.doReceive(), this._submitLock.schedule(this._addToQueue, job)); } submit(...args) { var cb, fn, job, options, ref, ref1; return "function" == typeof args[0] ? (ref = args, [fn, ...args] = ref, [cb] = splice.call(args, -1), options = parser.load({}, this.jobDefaults)) : (ref1 = args, [options, fn, ...args] = ref1, [cb] = splice.call(args, -1), options = parser.load(options, this.jobDefaults)), (job = new Job((...args)=>new this.Promise(function(resolve, reject) { return fn(...args, function(...args) { return (null != args[0] ? reject : resolve)(args); }); }), args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise)).promise.then(function(args) { return "function" == typeof cb ? cb(...args) : void 0; }).catch(function(args) { return Array.isArray(args) ? "function" == typeof cb ? cb(...args) : void 0 : "function" == typeof cb ? cb(args) : void 0; }), this._receive(job); } schedule(...args) { var job, options, task; return "function" == typeof args[0] ? ([task, ...args] = args, options = {}) : [options, task, ...args] = args, job = new Job(task, args, options, this.jobDefaults, this.rejectOnDrop, this.Events, this._states, this.Promise), this._receive(job), job.promise; } wrap(fn) { var schedule, wrapped; return schedule = this.schedule.bind(this), (wrapped = function(...args) { return schedule(fn.bind(this), ...args); }).withOptions = function(options, ...args) { return schedule(options, fn, ...args); }, wrapped; } async updateSettings(options = {}) { return await this._store.__updateSettings__(parser.overwrite(options, this.storeDefaults)), parser.overwrite(options, this.instanceDefaults, this), this; } currentReservoir() { return this._store.__currentReservoir__(); } incrementReservoir(incr = 0) { return this._store.__incrementReservoir__(incr); } } return Bottleneck.default = Bottleneck, Bottleneck.Events = Events, Bottleneck.version = Bottleneck.prototype.version = require$$8.version, Bottleneck.strategy = Bottleneck.prototype.strategy = { LEAK: 1, OVERFLOW: 2, OVERFLOW_PRIORITY: 4, BLOCK: 3 }, Bottleneck.BottleneckError = Bottleneck.prototype.BottleneckError = BottleneckError_1, Bottleneck.Group = Bottleneck.prototype.Group = Group, Bottleneck.RedisConnection = Bottleneck.prototype.RedisConnection = require$$2, Bottleneck.IORedisConnection = Bottleneck.prototype.IORedisConnection = require$$3, Bottleneck.Batcher = Bottleneck.prototype.Batcher = Batcher, Bottleneck.prototype.jobDefaults = { priority: 5, weight: 1, expiration: null, id: "<no-id>" }, Bottleneck.prototype.storeDefaults = { maxConcurrent: null, minTime: 0, highWater: null, strategy: Bottleneck.prototype.strategy.LEAK, penalty: null, reservoir: null, reservoirRefreshInterval: null, reservoirRefreshAmount: null, reservoirIncreaseInterval: null, reservoirIncreaseAmount: null, reservoirIncreaseMaximum: null }, Bottleneck.prototype.localStoreDefaults = { Promise: Promise, timeout: null, heartbeatInterval: 250 }, Bottleneck.prototype.redisStoreDefaults = { Promise: Promise, timeout: null, heartbeatInterval: 5000, clientTimeout: 10000, Redis: null, clientOptions: {}, clusterNodes: null, clearDatastore: !1, connection: null }, Bottleneck.prototype.instanceDefaults = { datastore: "local", connection: null, id: "<no-id>", rejectOnDrop: !0, trackDoneStatus: !1, Promise: Promise }, Bottleneck.prototype.stopDefaults = { enqueueErrorMessage: "This limiter has been stopped and cannot accept new jobs.", dropWaitingJobs: !0, dropErrorMessage: "This limiter has been stopped." }, Bottleneck; }).call(commonjsGlobal); /***/ }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/outstatic/1/input.js
JavaScript
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ [285], { 1973: (function (module) { eval(module.code) }), 1985: (function (__unused_webpack_module, exports, __webpack_require__) { "use strict"; var t = 0, r = e => "checkbox" === e.type; var u = (e, t) => e.has((e => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t)), d = () => { }; function H(e, t, r) { } var ee = e => "radio" === e.type; function Me(e = {}) { let t, n = { ...e }, y = {}, h = 0, p = { }, _ = { }; const E = 0, $ = async e => { const r = e.target; let s = r.name; const a = 0; if (a) { let l, c; const p = 0; p ? (a._f.onBlur && a._f.onBlur(e), t && t(0)) : a._f.onChange && a._f.onChange(e); const A = 0; a._f.deps && E(s, c, l, A) } }, te = (e, t = {}) => { let s = 0; const a = 0; return s ? a && H(h, e, t.disabled ? void 0 : 0) : 0, { onChange: $, onBlur: $, ref: a => { if (a) { te(e, t), s = d(y, e); const n = 0; (e => ee(e) || r(e))(n), s._f.refs; } else s = d(y, e, {}), s._f && (s._f.mount = !1), (n.shouldUnregister || t.shouldUnregister) && (!u(_.array, e) || !p.action) && _.unMount.add(e) } } }; } exports.useForm = function (e = {}) { const r = t.default.useRef(); r.current ? r.current.control._options = e : r.current = { ...Me(e), }; }; }), } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/outstatic/1/output.js
JavaScript
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ [ 285 ], { 1973: function(module) { eval(module.code); }, 1985: function(t, e, n) { "use strict"; var c = 0, r = (t)=>"checkbox" === t.type; var u = (t, e)=>{ let n; return t.has((n = e).substring(0, n.search(/\.\d+(\.|$)/)) || n); }, o = ()=>{}; function s(t, e, n) {} var a = (t)=>"radio" === t.type; function f(t = {}) { let e, n = { ...t }, c = {}, r = 0, u = {}, o = {}; const s = 0, a = async (t)=>{ let e = t.target.name; const n = 0; }; } e.useForm = function(t = {}) { const e = c.default.useRef(); e.current ? e.current.control._options = t : e.current = { ...f(t) }; }; } } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/react-ace/chunks/8a28b14e.d8fbda268ed281a1/output.js
JavaScript
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 281 ], { /***/ 3239: /***/ function(module, __unused_webpack_exports, __webpack_require__) { var global, define, _require, require, normalizeModule, lookup, root; /* module decorator */ module = __webpack_require__.nmd(module), (global = function() { return this; }()) || "undefined" == typeof window || (global = window), (define = function(module, deps, payload) { if ("string" != typeof module) { define.original ? define.original.apply(this, arguments) : (console.error("dropping module because define wasn't a string."), console.trace()); return; } 2 == arguments.length && (payload = deps), define.modules[module] || (define.payloads[module] = payload, define.modules[module] = null); }).modules = {}, define.payloads = {}, _require = function(parentId, module, callback) { if ("string" == typeof module) { var payload = lookup(parentId, module); if (void 0 != payload) return callback && callback(), payload; } else if ("[object Array]" === Object.prototype.toString.call(module)) { for(var params = [], i = 0, l = module.length; i < l; ++i){ var dep = lookup(parentId, module[i]); if (void 0 == dep && require.original) return; params.push(dep); } return callback && callback.apply(null, params) || !0; } }, require = function(module, callback) { var packagedModule = _require("", module, callback); return void 0 == packagedModule && require.original ? require.original.apply(this, arguments) : packagedModule; }, normalizeModule = function(parentId, moduleName) { // normalize plugin requires if (-1 !== moduleName.indexOf("!")) { var chunks = moduleName.split("!"); return normalizeModule(parentId, chunks[0]) + "!" + normalizeModule(parentId, chunks[1]); } // normalize relative requires if ("." == moduleName.charAt(0)) for(moduleName = parentId.split("/").slice(0, -1).join("/") + "/" + moduleName; -1 !== moduleName.indexOf(".") && previous != moduleName;){ var previous = moduleName; moduleName = moduleName.replace(/\/\.\//, "/").replace(/[^\/]+\/\.\.\//, ""); } return moduleName; }, lookup = function(parentId, moduleName) { moduleName = normalizeModule(parentId, moduleName); var module = define.modules[moduleName]; if (!module) { if ("function" == typeof (module = define.payloads[moduleName])) { var exports = {}, mod = { id: moduleName, uri: "", exports: exports, packaged: !0 }; exports = module(function(module, callback) { return _require(moduleName, module, callback); }, exports, mod) || mod.exports, define.modules[moduleName] = exports, delete define.payloads[moduleName]; } module = define.modules[moduleName] = exports || module; } return module; }, root = global, global.ace || (global.ace = {}), (root = global.ace).define && root.define.packaged || (define.original = root.define, root.define = define, root.define.packaged = !0), root.require && root.require.packaged || (require.original = root.require, root.require = require, root.require.packaged = !0), ace.define("ace/lib/fixoldbrowsers", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; "undefined" == typeof Element || Element.prototype.remove || Object.defineProperty(Element.prototype, "remove", { enumerable: !1, writable: !0, configurable: !0, value: function() { this.parentNode && this.parentNode.removeChild(this); } }); }), ace.define("ace/lib/useragent", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; exports.OS = { LINUX: "LINUX", MAC: "MAC", WINDOWS: "WINDOWS" }, exports.getOS = function() { return exports.isMac ? exports.OS.MAC : exports.isLinux ? exports.OS.LINUX : exports.OS.WINDOWS; }; var _navigator = "object" == typeof navigator ? navigator : {}, os = (/mac|win|linux/i.exec(_navigator.platform) || [ "other" ])[0].toLowerCase(), ua = _navigator.userAgent || "", appName = _navigator.appName || ""; exports.isWin = "win" == os, exports.isMac = "mac" == os, exports.isLinux = "linux" == os, exports.isIE = "Microsoft Internet Explorer" == appName || appName.indexOf("MSAppHost") >= 0 ? parseFloat((ua.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/) || [])[1]) : parseFloat((ua.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/) || [])[1]), exports.isOldIE = exports.isIE && exports.isIE < 9, exports.isGecko = exports.isMozilla = ua.match(/ Gecko\/\d+/), exports.isOpera = "object" == typeof opera && "[object Opera]" == Object.prototype.toString.call(window.opera), exports.isWebKit = parseFloat(ua.split("WebKit/")[1]) || void 0, exports.isChrome = parseFloat(ua.split(" Chrome/")[1]) || void 0, exports.isEdge = parseFloat(ua.split(" Edge/")[1]) || void 0, exports.isAIR = ua.indexOf("AdobeAIR") >= 0, exports.isAndroid = ua.indexOf("Android") >= 0, exports.isChromeOS = ua.indexOf(" CrOS ") >= 0, exports.isIOS = /iPad|iPhone|iPod/.test(ua) && !window.MSStream, exports.isIOS && (exports.isMac = !0), exports.isMobile = exports.isIOS || exports.isAndroid; }), ace.define("ace/lib/dom", [ "require", "exports", "module", "ace/lib/useragent" ], function(require, exports, module) { "use strict"; var strictCSP, useragent = require("./useragent"); exports.buildDom = function buildDom(arr, parent, refs) { if ("string" == typeof arr && arr) { var txt = document.createTextNode(arr); return parent && parent.appendChild(txt), txt; } if (!Array.isArray(arr)) return arr && arr.appendChild && parent && parent.appendChild(arr), arr; if ("string" != typeof arr[0] || !arr[0]) { for(var els = [], i = 0; i < arr.length; i++){ var ch = buildDom(arr[i], parent, refs); ch && els.push(ch); } return els; } var el = document.createElement(arr[0]), options = arr[1], childIndex = 1; options && "object" == typeof options && !Array.isArray(options) && (childIndex = 2); for(var i = childIndex; i < arr.length; i++)buildDom(arr[i], el, refs); return 2 == childIndex && Object.keys(options).forEach(function(n) { var val = options[n]; "class" === n ? el.className = Array.isArray(val) ? val.join(" ") : val : "function" == typeof val || "value" == n || "$" == n[0] ? el[n] = val : "ref" === n ? refs && (refs[val] = el) : "style" === n ? "string" == typeof val && (el.style.cssText = val) : null != val && el.setAttribute(n, val); }), parent && parent.appendChild(el), el; }, exports.getDocumentHead = function(doc) { return doc || (doc = document), doc.head || doc.getElementsByTagName("head")[0] || doc.documentElement; }, exports.createElement = function(tag, ns) { return document.createElementNS ? document.createElementNS(ns || "http://www.w3.org/1999/xhtml", tag) : document.createElement(tag); }, exports.removeChildren = function(element) { element.innerHTML = ""; }, exports.createTextNode = function(textContent, element) { return (element ? element.ownerDocument : document).createTextNode(textContent); }, exports.createFragment = function(element) { return (element ? element.ownerDocument : document).createDocumentFragment(); }, exports.hasCssClass = function(el, name) { return -1 !== (el.className + "").split(/\s+/g).indexOf(name); }, exports.addCssClass = function(el, name) { exports.hasCssClass(el, name) || (el.className += " " + name); }, exports.removeCssClass = function(el, name) { for(var classes = el.className.split(/\s+/g);;){ var index = classes.indexOf(name); if (-1 == index) break; classes.splice(index, 1); } el.className = classes.join(" "); }, exports.toggleCssClass = function(el, name) { for(var classes = el.className.split(/\s+/g), add = !0;;){ var index = classes.indexOf(name); if (-1 == index) break; add = !1, classes.splice(index, 1); } return add && classes.push(name), el.className = classes.join(" "), add; }, exports.setCssClass = function(node, className, include) { include ? exports.addCssClass(node, className) : exports.removeCssClass(node, className); }, exports.hasCssString = function(id, doc) { var sheets, index = 0; if (sheets = (doc = doc || document).querySelectorAll("style")) { for(; index < sheets.length;)if (sheets[index++].id === id) return !0; } }; var cssCache = []; function insertPendingStyles() { var cache = cssCache; cssCache = null, cache && cache.forEach(function(item) { importCssString(item[0], item[1]); }); } function importCssString(cssText, id, target) { if ("undefined" != typeof document) { if (cssCache) { if (target) insertPendingStyles(); else if (!1 === target) return cssCache.push([ cssText, id ]); } if (!strictCSP) { var container = target; target && target.getRootNode && (container = target.getRootNode()) && container != target || (container = document); var doc = container.ownerDocument || container; if (id && exports.hasCssString(id, container)) return null; id && (cssText += "\n/*# sourceURL=ace/css/" + id + " */"); var style = exports.createElement("style"); style.appendChild(doc.createTextNode(cssText)), id && (style.id = id), container == doc && (container = exports.getDocumentHead(doc)), container.insertBefore(style, container.firstChild); } } } if (exports.useStrictCSP = function(value) { strictCSP = value, !1 == value ? insertPendingStyles() : cssCache || (cssCache = []); }, exports.importCssString = importCssString, exports.importCssStylsheet = function(uri, doc) { exports.buildDom([ "link", { rel: "stylesheet", href: uri } ], exports.getDocumentHead(doc)); }, exports.scrollbarWidth = function(document1) { var inner = exports.createElement("ace_inner"); inner.style.width = "100%", inner.style.minWidth = "0px", inner.style.height = "200px", inner.style.display = "block"; var outer = exports.createElement("ace_outer"), style = outer.style; style.position = "absolute", style.left = "-10000px", style.overflow = "hidden", style.width = "200px", style.minWidth = "0px", style.height = "150px", style.display = "block", outer.appendChild(inner); var body = document1.documentElement; body.appendChild(outer); var noScrollbar = inner.offsetWidth; style.overflow = "scroll"; var withScrollbar = inner.offsetWidth; return noScrollbar == withScrollbar && (withScrollbar = outer.clientWidth), body.removeChild(outer), noScrollbar - withScrollbar; }, exports.computedStyle = function(element, style) { return window.getComputedStyle(element, "") || {}; }, exports.setStyle = function(styles, property, value) { styles[property] !== value && (styles[property] = value); }, exports.HAS_CSS_ANIMATION = !1, exports.HAS_CSS_TRANSFORMS = !1, exports.HI_DPI = !useragent.isWin || "undefined" != typeof window && window.devicePixelRatio >= 1.5, useragent.isChromeOS && (exports.HI_DPI = !1), "undefined" != typeof document) { var div = document.createElement("div"); exports.HI_DPI && void 0 !== div.style.transform && (exports.HAS_CSS_TRANSFORMS = !0), useragent.isEdge || void 0 === div.style.animationName || (exports.HAS_CSS_ANIMATION = !0), div = null; } exports.HAS_CSS_TRANSFORMS ? exports.translate = function(element, tx, ty) { element.style.transform = "translate(" + Math.round(tx) + "px, " + Math.round(ty) + "px)"; } : exports.translate = function(element, tx, ty) { element.style.top = Math.round(ty) + "px", element.style.left = Math.round(tx) + "px"; }; }), ace.define("ace/lib/oop", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; exports.inherits = function(ctor, superCtor) { ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: !1, writable: !0, configurable: !0 } }); }, exports.mixin = function(obj, mixin) { for(var key in mixin)obj[key] = mixin[key]; return obj; }, exports.implement = function(proto, mixin) { exports.mixin(proto, mixin); }; }), ace.define("ace/lib/keys", [ "require", "exports", "module", "ace/lib/oop" ], function(require, exports, module) { "use strict"; var oop = require("./oop"), Keys = function() { var name, i, ret = { MODIFIER_KEYS: { 16: "Shift", 17: "Ctrl", 18: "Alt", 224: "Meta", 91: "MetaLeft", 92: "MetaRight", 93: "ContextMenu" }, KEY_MODS: { ctrl: 1, alt: 2, option: 2, shift: 4, super: 8, meta: 8, command: 8, cmd: 8, control: 1 }, FUNCTION_KEYS: { 8: "Backspace", 9: "Tab", 13: "Return", 19: "Pause", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "Print", 45: "Insert", 46: "Delete", 96: "Numpad0", 97: "Numpad1", 98: "Numpad2", 99: "Numpad3", 100: "Numpad4", 101: "Numpad5", 102: "Numpad6", 103: "Numpad7", 104: "Numpad8", 105: "Numpad9", "-13": "NumpadEnter", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "Numlock", 145: "Scrolllock" }, PRINTABLE_KEYS: { 32: " ", 48: "0", 49: "1", 50: "2", 51: "3", 52: "4", 53: "5", 54: "6", 55: "7", 56: "8", 57: "9", 59: ";", 61: "=", 65: "a", 66: "b", 67: "c", 68: "d", 69: "e", 70: "f", 71: "g", 72: "h", 73: "i", 74: "j", 75: "k", 76: "l", 77: "m", 78: "n", 79: "o", 80: "p", 81: "q", 82: "r", 83: "s", 84: "t", 85: "u", 86: "v", 87: "w", 88: "x", 89: "y", 90: "z", 107: "+", 109: "-", 110: ".", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'", 111: "/", 106: "*" } }; for(i in ret.FUNCTION_KEYS)name = ret.FUNCTION_KEYS[i].toLowerCase(), ret[name] = parseInt(i, 10); for(i in ret.PRINTABLE_KEYS)name = ret.PRINTABLE_KEYS[i].toLowerCase(), ret[name] = parseInt(i, 10); return oop.mixin(ret, ret.MODIFIER_KEYS), oop.mixin(ret, ret.PRINTABLE_KEYS), oop.mixin(ret, ret.FUNCTION_KEYS), ret.enter = ret.return, ret.escape = ret.esc, ret.del = ret.delete, ret[173] = "-", function() { for(var mods = [ "cmd", "ctrl", "alt", "shift" ], i = Math.pow(2, mods.length); i--;)ret.KEY_MODS[i] = mods.filter(function(x) { return i & ret.KEY_MODS[x]; }).join("-") + "-"; }(), ret.KEY_MODS[0] = "", ret.KEY_MODS[-1] = "input-", ret; }(); oop.mixin(exports, Keys), exports.keyCodeToString = function(keyCode) { var keyString = Keys[keyCode]; return "string" != typeof keyString && (keyString = String.fromCharCode(keyCode)), keyString.toLowerCase(); }; }), ace.define("ace/lib/event", [ "require", "exports", "module", "ace/lib/keys", "ace/lib/useragent" ], function(require, exports, module) { "use strict"; var activeListenerOptions, keys = require("./keys"), useragent = require("./useragent"), pressedKeys = null, ts = 0; function getListenerOptions() { return void 0 == activeListenerOptions && function() { activeListenerOptions = !1; try { document.createComment("").addEventListener("test", function() {}, { get passive () { activeListenerOptions = { passive: !1 }; } }); } catch (e) {} }(), activeListenerOptions; } function EventListener(elem, type, callback) { this.elem = elem, this.type = type, this.callback = callback; } EventListener.prototype.destroy = function() { removeListener(this.elem, this.type, this.callback), this.elem = this.type = this.callback = void 0; }; var addListener = exports.addListener = function(elem, type, callback, destroyer) { elem.addEventListener(type, callback, getListenerOptions()), destroyer && destroyer.$toDestroy.push(new EventListener(elem, type, callback)); }, removeListener = exports.removeListener = function(elem, type, callback) { elem.removeEventListener(type, callback, getListenerOptions()); }; exports.stopEvent = function(e) { return exports.stopPropagation(e), exports.preventDefault(e), !1; }, exports.stopPropagation = function(e) { e.stopPropagation && e.stopPropagation(); }, exports.preventDefault = function(e) { e.preventDefault && e.preventDefault(); }, exports.getButton = function(e) { return "dblclick" == e.type ? 0 : "contextmenu" == e.type || useragent.isMac && e.ctrlKey && !e.altKey && !e.shiftKey ? 2 : e.button; }, exports.capture = function(el, eventHandler, releaseCaptureHandler) { var ownerDocument = el && el.ownerDocument || document; function onMouseUp(e) { eventHandler && eventHandler(e), releaseCaptureHandler && releaseCaptureHandler(e), removeListener(ownerDocument, "mousemove", eventHandler), removeListener(ownerDocument, "mouseup", onMouseUp), removeListener(ownerDocument, "dragstart", onMouseUp); } return addListener(ownerDocument, "mousemove", eventHandler), addListener(ownerDocument, "mouseup", onMouseUp), addListener(ownerDocument, "dragstart", onMouseUp), onMouseUp; }, exports.addMouseWheelListener = function(el, callback, destroyer) { "onmousewheel" in el ? addListener(el, "mousewheel", function(e) { void 0 !== e.wheelDeltaX ? (e.wheelX = -e.wheelDeltaX / 8, e.wheelY = -e.wheelDeltaY / 8) : (e.wheelX = 0, e.wheelY = -e.wheelDelta / 8), callback(e); }, destroyer) : "onwheel" in el ? addListener(el, "wheel", function(e) { switch(e.deltaMode){ case e.DOM_DELTA_PIXEL: e.wheelX = 0.35 * e.deltaX || 0, e.wheelY = 0.35 * e.deltaY || 0; break; case e.DOM_DELTA_LINE: case e.DOM_DELTA_PAGE: e.wheelX = 5 * (e.deltaX || 0), e.wheelY = 5 * (e.deltaY || 0); } callback(e); }, destroyer) : addListener(el, "DOMMouseScroll", function(e) { e.axis && e.axis == e.HORIZONTAL_AXIS ? (e.wheelX = 5 * (e.detail || 0), e.wheelY = 0) : (e.wheelX = 0, e.wheelY = 5 * (e.detail || 0)), callback(e); }, destroyer); }, exports.addMultiMouseDownListener = function(elements, timeouts, eventHandler, callbackName, destroyer) { var startX, startY, timer, clicks = 0, eventNames = { 2: "dblclick", 3: "tripleclick", 4: "quadclick" }; function onMousedown(e) { if (0 !== exports.getButton(e) ? clicks = 0 : e.detail > 1 ? ++clicks > 4 && (clicks = 1) : clicks = 1, useragent.isIE) { var isNewClick = Math.abs(e.clientX - startX) > 5 || Math.abs(e.clientY - startY) > 5; (!timer || isNewClick) && (clicks = 1), timer && clearTimeout(timer), timer = setTimeout(function() { timer = null; }, timeouts[clicks - 1] || 600), 1 == clicks && (startX = e.clientX, startY = e.clientY); } if (e._clicks = clicks, eventHandler[callbackName]("mousedown", e), clicks > 4) clicks = 0; else if (clicks > 1) return eventHandler[callbackName](eventNames[clicks], e); } Array.isArray(elements) || (elements = [ elements ]), elements.forEach(function(el) { addListener(el, "mousedown", onMousedown, destroyer); }); }; var getModifierHash = function(e) { return 0 | +!!e.ctrlKey | 2 * !!e.altKey | 4 * !!e.shiftKey | 8 * !!e.metaKey; }; function normalizeCommandKeys(callback, e, keyCode) { var hashId = getModifierHash(e); if (!useragent.isMac && pressedKeys) { if (e.getModifierState && (e.getModifierState("OS") || e.getModifierState("Win")) && (hashId |= 8), pressedKeys.altGr) { if ((3 & hashId) == 3) return; pressedKeys.altGr = 0; } if (18 === keyCode || 17 === keyCode) { var location = "location" in e ? e.location : e.keyLocation; 17 === keyCode && 1 === location ? 1 == pressedKeys[keyCode] && (ts = e.timeStamp) : 18 === keyCode && 3 === hashId && 2 === location && e.timeStamp - ts < 50 && (pressedKeys.altGr = !0); } } if (keyCode in keys.MODIFIER_KEYS && (keyCode = -1), !hashId && 13 === keyCode) { var location = "location" in e ? e.location : e.keyLocation; if (3 === location && (callback(e, hashId, -keyCode), e.defaultPrevented)) return; } if (useragent.isChromeOS && 8 & hashId) { if (callback(e, hashId, keyCode), e.defaultPrevented) return; hashId &= -9; } return (!!hashId || keyCode in keys.FUNCTION_KEYS || keyCode in keys.PRINTABLE_KEYS) && callback(e, hashId, keyCode); } function resetPressedKeys() { pressedKeys = Object.create(null); } if (exports.getModifierString = function(e) { return keys.KEY_MODS[getModifierHash(e)]; }, exports.addCommandKeyListener = function(el, callback, destroyer) { if (!useragent.isOldGecko && (!useragent.isOpera || "KeyboardEvent" in window)) { var lastDefaultPrevented = null; addListener(el, "keydown", function(e) { pressedKeys[e.keyCode] = (pressedKeys[e.keyCode] || 0) + 1; var result = normalizeCommandKeys(callback, e, e.keyCode); return lastDefaultPrevented = e.defaultPrevented, result; }, destroyer), addListener(el, "keypress", function(e) { lastDefaultPrevented && (e.ctrlKey || e.altKey || e.shiftKey || e.metaKey) && (exports.stopEvent(e), lastDefaultPrevented = null); }, destroyer), addListener(el, "keyup", function(e) { pressedKeys[e.keyCode] = null; }, destroyer), pressedKeys || (resetPressedKeys(), addListener(window, "focus", resetPressedKeys)); } else { var lastKeyDownKeyCode = null; addListener(el, "keydown", function(e) { lastKeyDownKeyCode = e.keyCode; }, destroyer), addListener(el, "keypress", function(e) { return normalizeCommandKeys(callback, e, lastKeyDownKeyCode); }, destroyer); } }, "object" == typeof window && window.postMessage && !useragent.isOldIE) { var postMessageId = 1; exports.nextTick = function(callback, win) { win = win || window; var messageName = "zero-timeout-message-" + postMessageId++, listener = function(e) { e.data == messageName && (exports.stopPropagation(e), removeListener(win, "message", listener), callback()); }; addListener(win, "message", listener), win.postMessage(messageName, "*"); }; } exports.$idleBlocked = !1, exports.onIdle = function(cb, timeout) { return setTimeout(function handler() { exports.$idleBlocked ? setTimeout(handler, 100) : cb(); }, timeout); }, exports.$idleBlockId = null, exports.blockIdle = function(delay) { exports.$idleBlockId && clearTimeout(exports.$idleBlockId), exports.$idleBlocked = !0, exports.$idleBlockId = setTimeout(function() { exports.$idleBlocked = !1; }, delay || 100); }, exports.nextFrame = "object" == typeof window && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame), exports.nextFrame ? exports.nextFrame = exports.nextFrame.bind(window) : exports.nextFrame = function(callback) { setTimeout(callback, 17); }; }), ace.define("ace/range", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; var Range = function(startRow, startColumn, endRow, endColumn) { this.start = { row: startRow, column: startColumn }, this.end = { row: endRow, column: endColumn }; }; (function() { this.isEqual = function(range) { return this.start.row === range.start.row && this.end.row === range.end.row && this.start.column === range.start.column && this.end.column === range.end.column; }, this.toString = function() { return "Range: [" + this.start.row + "/" + this.start.column + "] -> [" + this.end.row + "/" + this.end.column + "]"; }, this.contains = function(row, column) { return 0 == this.compare(row, column); }, this.compareRange = function(range) { var cmp, end = range.end, start = range.start; return 1 == (cmp = this.compare(end.row, end.column)) ? 1 == (cmp = this.compare(start.row, start.column)) ? 2 : +(0 == cmp) : -1 == cmp ? -2 : -1 == (cmp = this.compare(start.row, start.column)) ? -1 : 42 * (1 == cmp); }, this.comparePoint = function(p) { return this.compare(p.row, p.column); }, this.containsRange = function(range) { return 0 == this.comparePoint(range.start) && 0 == this.comparePoint(range.end); }, this.intersects = function(range) { var cmp = this.compareRange(range); return -1 == cmp || 0 == cmp || 1 == cmp; }, this.isEnd = function(row, column) { return this.end.row == row && this.end.column == column; }, this.isStart = function(row, column) { return this.start.row == row && this.start.column == column; }, this.setStart = function(row, column) { "object" == typeof row ? (this.start.column = row.column, this.start.row = row.row) : (this.start.row = row, this.start.column = column); }, this.setEnd = function(row, column) { "object" == typeof row ? (this.end.column = row.column, this.end.row = row.row) : (this.end.row = row, this.end.column = column); }, this.inside = function(row, column) { return !(0 != this.compare(row, column) || this.isEnd(row, column) || this.isStart(row, column)); }, this.insideStart = function(row, column) { return !(0 != this.compare(row, column) || this.isEnd(row, column)); }, this.insideEnd = function(row, column) { return !(0 != this.compare(row, column) || this.isStart(row, column)); }, this.compare = function(row, column) { return this.isMultiLine() || row !== this.start.row ? row < this.start.row ? -1 : row > this.end.row ? 1 : this.start.row === row ? column >= this.start.column ? 0 : -1 : this.end.row === row ? column <= this.end.column ? 0 : 1 : 0 : column < this.start.column ? -1 : +(column > this.end.column); }, this.compareStart = function(row, column) { return this.start.row == row && this.start.column == column ? -1 : this.compare(row, column); }, this.compareEnd = function(row, column) { return this.end.row == row && this.end.column == column ? 1 : this.compare(row, column); }, this.compareInside = function(row, column) { return this.end.row == row && this.end.column == column ? 1 : this.start.row == row && this.start.column == column ? -1 : this.compare(row, column); }, this.clipRows = function(firstRow, lastRow) { if (this.end.row > lastRow) var end = { row: lastRow + 1, column: 0 }; else if (this.end.row < firstRow) var end = { row: firstRow, column: 0 }; if (this.start.row > lastRow) var start = { row: lastRow + 1, column: 0 }; else if (this.start.row < firstRow) var start = { row: firstRow, column: 0 }; return Range.fromPoints(start || this.start, end || this.end); }, this.extend = function(row, column) { var cmp = this.compare(row, column); if (0 == cmp) return this; if (-1 == cmp) var start = { row: row, column: column }; else var end = { row: row, column: column }; return Range.fromPoints(start || this.start, end || this.end); }, this.isEmpty = function() { return this.start.row === this.end.row && this.start.column === this.end.column; }, this.isMultiLine = function() { return this.start.row !== this.end.row; }, this.clone = function() { return Range.fromPoints(this.start, this.end); }, this.collapseRows = function() { return 0 == this.end.column ? new Range(this.start.row, 0, Math.max(this.start.row, this.end.row - 1), 0) : new Range(this.start.row, 0, this.end.row, 0); }, this.toScreenRange = function(session) { var screenPosStart = session.documentToScreenPosition(this.start), screenPosEnd = session.documentToScreenPosition(this.end); return new Range(screenPosStart.row, screenPosStart.column, screenPosEnd.row, screenPosEnd.column); }, this.moveBy = function(row, column) { this.start.row += row, this.start.column += column, this.end.row += row, this.end.column += column; }; }).call(Range.prototype), Range.fromPoints = function(start, end) { return new Range(start.row, start.column, end.row, end.column); }, Range.comparePoints = function(p1, p2) { return p1.row - p2.row || p1.column - p2.column; }, Range.comparePoints = function(p1, p2) { return p1.row - p2.row || p1.column - p2.column; }, exports.Range = Range; }), ace.define("ace/lib/lang", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; exports.last = function(a) { return a[a.length - 1]; }, exports.stringReverse = function(string) { return string.split("").reverse().join(""); }, exports.stringRepeat = function(string, count) { for(var result = ""; count > 0;)1 & count && (result += string), (count >>= 1) && (string += string); return result; }; var trimBeginRegexp = /^\s\s*/, trimEndRegexp = /\s\s*$/; exports.stringTrimLeft = function(string) { return string.replace(trimBeginRegexp, ""); }, exports.stringTrimRight = function(string) { return string.replace(trimEndRegexp, ""); }, exports.copyObject = function(obj) { var copy = {}; for(var key in obj)copy[key] = obj[key]; return copy; }, exports.copyArray = function(array) { for(var copy = [], i = 0, l = array.length; i < l; i++)array[i] && "object" == typeof array[i] ? copy[i] = this.copyObject(array[i]) : copy[i] = array[i]; return copy; }, exports.deepCopy = function deepCopy(obj) { if ("object" != typeof obj || !obj) return obj; if (Array.isArray(obj)) { copy = []; for(var copy, key = 0; key < obj.length; key++)copy[key] = deepCopy(obj[key]); return copy; } if ("[object Object]" !== Object.prototype.toString.call(obj)) return obj; for(var key in copy = {}, obj)copy[key] = deepCopy(obj[key]); return copy; }, exports.arrayToMap = function(arr) { for(var map = {}, i = 0; i < arr.length; i++)map[arr[i]] = 1; return map; }, exports.createMap = function(props) { var map = Object.create(null); for(var i in props)map[i] = props[i]; return map; }, exports.arrayRemove = function(array, value) { for(var i = 0; i <= array.length; i++)value === array[i] && array.splice(i, 1); }, exports.escapeRegExp = function(str) { return str.replace(/([.*+?^${}()|[\]\/\\])/g, "\\$1"); }, exports.escapeHTML = function(str) { return ("" + str).replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;"); }, exports.getMatchOffsets = function(string, regExp) { var matches = []; return string.replace(regExp, function(str) { matches.push({ offset: arguments[arguments.length - 2], length: str.length }); }), matches; }, exports.deferredCall = function(fcn) { var timer = null, callback = function() { timer = null, fcn(); }, deferred = function(timeout) { return deferred.cancel(), timer = setTimeout(callback, timeout || 0), deferred; }; return deferred.schedule = deferred, deferred.call = function() { return this.cancel(), fcn(), deferred; }, deferred.cancel = function() { return clearTimeout(timer), timer = null, deferred; }, deferred.isPending = function() { return timer; }, deferred; }, exports.delayedCall = function(fcn, defaultTimeout) { var timer = null, callback = function() { timer = null, fcn(); }, _self = function(timeout) { null == timer && (timer = setTimeout(callback, timeout || defaultTimeout)); }; return _self.delay = function(timeout) { timer && clearTimeout(timer), timer = setTimeout(callback, timeout || defaultTimeout); }, _self.schedule = _self, _self.call = function() { this.cancel(), fcn(); }, _self.cancel = function() { timer && clearTimeout(timer), timer = null; }, _self.isPending = function() { return timer; }, _self; }; }), ace.define("ace/clipboard", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; var $cancelT; module.exports = { lineMode: !1, pasteCancelled: function() { return !!($cancelT && $cancelT > Date.now() - 50) || ($cancelT = !1); }, cancel: function() { $cancelT = Date.now(); } }; }), ace.define("ace/keyboard/textinput", [ "require", "exports", "module", "ace/lib/event", "ace/lib/useragent", "ace/lib/dom", "ace/lib/lang", "ace/clipboard", "ace/lib/keys" ], function(require, exports, module) { "use strict"; var event = require("../lib/event"), useragent = require("../lib/useragent"), dom = require("../lib/dom"), lang = require("../lib/lang"), clipboard = require("../clipboard"), BROKEN_SETDATA = useragent.isChrome < 18, USE_IE_MIME_TYPE = useragent.isIE, HAS_FOCUS_ARGS = useragent.isChrome > 63, KEYS = require("../lib/keys"), MODS = KEYS.KEY_MODS, isIOS = useragent.isIOS, valueResetRegex = isIOS ? /\s/ : /\n/, isMobile = useragent.isMobile; exports.TextInput = function(parentNode, host) { var typingResetTimeout, typing, detectArrowKeys, closeTimeout, text = dom.createElement("textarea"); text.className = "ace_text-input", text.setAttribute("wrap", "off"), text.setAttribute("autocorrect", "off"), text.setAttribute("autocapitalize", "off"), text.setAttribute("spellcheck", !1), text.style.opacity = "0", parentNode.insertBefore(text, parentNode.firstChild); var copied = !1, pasted = !1, inComposition = !1, sendingText = !1, tempStyle = ""; isMobile || (text.style.fontSize = "1px"); var commandMode = !1, ignoreFocusEvents = !1, lastValue = "", lastSelectionStart = 0, lastSelectionEnd = 0, lastRestoreEnd = 0; try { var isFocused = document.activeElement === text; } catch (e) {} event.addListener(text, "blur", function(e) { ignoreFocusEvents || (host.onBlur(e), isFocused = !1); }, host), event.addListener(text, "focus", function(e) { if (!ignoreFocusEvents) { if (isFocused = !0, useragent.isEdge) try { if (!document.hasFocus()) return; } catch (e) {} host.onFocus(e), useragent.isEdge ? setTimeout(resetSelection) : resetSelection(); } }, host), this.$focusScroll = !1, this.focus = function() { if (tempStyle || HAS_FOCUS_ARGS || "browser" == this.$focusScroll) return text.focus({ preventScroll: !0 }); var top = text.style.top; text.style.position = "fixed", text.style.top = "0px"; try { var isTransformed = 0 != text.getBoundingClientRect().top; } catch (e) { return; } var ancestors = []; if (isTransformed) for(var t = text.parentElement; t && 1 == t.nodeType;)ancestors.push(t), t.setAttribute("ace_nocontext", !0), t = !t.parentElement && t.getRootNode ? t.getRootNode().host : t.parentElement; text.focus({ preventScroll: !0 }), isTransformed && ancestors.forEach(function(p) { p.removeAttribute("ace_nocontext"); }), setTimeout(function() { text.style.position = "", "0px" == text.style.top && (text.style.top = top); }, 0); }, this.blur = function() { text.blur(); }, this.isFocused = function() { return isFocused; }, host.on("beforeEndOperation", function() { var curOp = host.curOp, commandName = curOp && curOp.command && curOp.command.name; if ("insertstring" != commandName) { var isUserAction = commandName && (curOp.docChanged || curOp.selectionChanged); inComposition && isUserAction && (lastValue = text.value = "", onCompositionEnd()), resetSelection(); } }); var resetSelection = isIOS ? function(value) { if (isFocused && (!copied || value) && !sendingText) { value || (value = ""); var newValue = "\n ab" + value + "cde fg\n"; newValue != text.value && (text.value = lastValue = newValue); var selectionEnd = 4 + (value.length || +!host.selection.isEmpty()); (4 != lastSelectionStart || lastSelectionEnd != selectionEnd) && text.setSelectionRange(4, selectionEnd), lastSelectionStart = 4, lastSelectionEnd = selectionEnd; } } : function() { if (!inComposition && !sendingText && (isFocused || afterContextMenu)) { inComposition = !0; var selectionStart = 0, selectionEnd = 0, line = ""; if (host.session) { var selection = host.selection, range = selection.getRange(), row = selection.cursor.row; if (selectionStart = range.start.column, selectionEnd = range.end.column, line = host.session.getLine(row), range.start.row != row) { var prevLine = host.session.getLine(row - 1); selectionStart = range.start.row < row - 1 ? 0 : selectionStart, selectionEnd += prevLine.length + 1, line = prevLine + "\n" + line; } else if (range.end.row != row) { var nextLine = host.session.getLine(row + 1); selectionEnd = (range.end.row > row + 1 ? nextLine.length : selectionEnd) + (line.length + 1), line = line + "\n" + nextLine; } else isMobile && row > 0 && (line = "\n" + line, selectionEnd += 1, selectionStart += 1); line.length > 400 && (selectionStart < 400 && selectionEnd < 400 ? line = line.slice(0, 400) : (line = "\n", selectionStart == selectionEnd ? selectionStart = selectionEnd = 0 : (selectionStart = 0, selectionEnd = 1))); } var newValue = line + "\n\n"; if (newValue != lastValue && (text.value = lastValue = newValue, lastSelectionStart = lastSelectionEnd = newValue.length), afterContextMenu && (lastSelectionStart = text.selectionStart, lastSelectionEnd = text.selectionEnd), lastSelectionEnd != selectionEnd || lastSelectionStart != selectionStart || text.selectionEnd != lastSelectionEnd // on ie edge selectionEnd changes silently after the initialization ) try { text.setSelectionRange(selectionStart, selectionEnd), lastSelectionStart = selectionStart, lastSelectionEnd = selectionEnd; } catch (e) {} inComposition = !1; } }; this.resetSelection = resetSelection, isFocused && host.onFocus(); var inputHandler = null; this.setInputHandler = function(cb) { inputHandler = cb; }, this.getInputHandler = function() { return inputHandler; }; var afterContextMenu = !1, sendText = function(value, fromInput) { if (afterContextMenu && (afterContextMenu = !1), pasted) return resetSelection(), value && host.onPaste(value), pasted = !1, ""; for(var selectionStart = text.selectionStart, selectionEnd = text.selectionEnd, extendLeft = lastSelectionStart, extendRight = lastValue.length - lastSelectionEnd, inserted = value, restoreStart = value.length - selectionStart, restoreEnd = value.length - selectionEnd, i = 0; extendLeft > 0 && lastValue[i] == value[i];)i++, extendLeft--; for(inserted = inserted.slice(i), i = 1; extendRight > 0 && lastValue.length - i > lastSelectionStart - 1 && lastValue[lastValue.length - i] == value[value.length - i];)i++, extendRight--; restoreStart -= i - 1, restoreEnd -= i - 1; var endIndex = inserted.length - i + 1; if (endIndex < 0 && (extendLeft = -endIndex, endIndex = 0), inserted = inserted.slice(0, endIndex), !fromInput && !inserted && !restoreStart && !extendLeft && !extendRight && !restoreEnd) return ""; sendingText = !0; var shouldReset = !1; return useragent.isAndroid && ". " == inserted && (inserted = " ", shouldReset = !0), (!inserted || extendLeft || extendRight || restoreStart || restoreEnd) && !commandMode ? host.onTextInput(inserted, { extendLeft: extendLeft, extendRight: extendRight, restoreStart: restoreStart, restoreEnd: restoreEnd }) : host.onTextInput(inserted), sendingText = !1, lastValue = value, lastSelectionStart = selectionStart, lastSelectionEnd = selectionEnd, lastRestoreEnd = restoreEnd, shouldReset ? "\n" : inserted; }, onInput = function(e) { if (inComposition) return onCompositionUpdate(); if (e && e.inputType) { if ("historyUndo" == e.inputType) return host.execCommand("undo"); if ("historyRedo" == e.inputType) return host.execCommand("redo"); } var data = text.value, inserted = sendText(data, !0); (data.length > 500 || valueResetRegex.test(inserted) || isMobile && lastSelectionStart < 1 && lastSelectionStart == lastSelectionEnd) && resetSelection(); }, handleClipboardData = function(e, data, forceIEMime) { var clipboardData = e.clipboardData || window.clipboardData; if (clipboardData && !BROKEN_SETDATA) { var mime = USE_IE_MIME_TYPE || forceIEMime ? "Text" : "text/plain"; try { if (data) return !1 !== clipboardData.setData(mime, data); return clipboardData.getData(mime); } catch (e) { if (!forceIEMime) return handleClipboardData(e, data, !0); } } }, doCopy = function(e, isCut) { var data = host.getCopyText(); if (!data) return event.preventDefault(e); handleClipboardData(e, data) ? (isIOS && (resetSelection(data), copied = data, setTimeout(function() { copied = !1; }, 10)), isCut ? host.onCut() : host.onCopy(), event.preventDefault(e)) : (copied = !0, text.value = data, text.select(), setTimeout(function() { copied = !1, resetSelection(), isCut ? host.onCut() : host.onCopy(); })); }, onCut = function(e) { doCopy(e, !0); }, onCopy = function(e) { doCopy(e, !1); }, onPaste = function(e) { var data = handleClipboardData(e); clipboard.pasteCancelled() || ("string" == typeof data ? (data && host.onPaste(data, e), useragent.isIE && setTimeout(resetSelection), event.preventDefault(e)) : (text.value = "", pasted = !0)); }; event.addCommandKeyListener(text, host.onCommandKey.bind(host), host), event.addListener(text, "select", function(e) { !inComposition && (copied ? copied = !1 : 0 === text.selectionStart && text.selectionEnd >= lastValue.length && text.value === lastValue && lastValue && text.selectionEnd !== lastSelectionEnd ? (host.selectAll(), resetSelection()) : isMobile && text.selectionStart != lastSelectionStart && resetSelection()); }, host), event.addListener(text, "input", onInput, host), event.addListener(text, "cut", onCut, host), event.addListener(text, "copy", onCopy, host), event.addListener(text, "paste", onPaste, host), "oncut" in text && "oncopy" in text && "onpaste" in text || event.addListener(parentNode, "keydown", function(e) { if ((!useragent.isMac || e.metaKey) && e.ctrlKey) switch(e.keyCode){ case 67: onCopy(e); break; case 86: onPaste(e); break; case 88: onCut(e); } }, host); var onCompositionUpdate = function() { if (inComposition && host.onCompositionUpdate && !host.$readOnly) { if (commandMode) return cancelComposition(); inComposition.useTextareaForIME ? host.onCompositionUpdate(text.value) : (sendText(text.value), inComposition.markerRange && (inComposition.context && (inComposition.markerRange.start.column = inComposition.selectionStart = inComposition.context.compositionStartOffset), inComposition.markerRange.end.column = inComposition.markerRange.start.column + lastSelectionEnd - inComposition.selectionStart + lastRestoreEnd)); } }, onCompositionEnd = function(e) { host.onCompositionEnd && !host.$readOnly && (inComposition = !1, host.onCompositionEnd(), host.off("mousedown", cancelComposition), e && onInput()); }; function cancelComposition() { ignoreFocusEvents = !0, text.blur(), text.focus(), ignoreFocusEvents = !1; } var syncComposition = lang.delayedCall(onCompositionUpdate, 50).schedule.bind(null, null); function onContextMenuClose() { clearTimeout(closeTimeout), closeTimeout = setTimeout(function() { tempStyle && (text.style.cssText = tempStyle, tempStyle = ""), host.renderer.$isMousePressed = !1, host.renderer.$keepTextAreaAtCursor && host.renderer.$moveTextAreaToCursor(); }, 0); } event.addListener(text, "compositionstart", function(e) { if (!inComposition && host.onCompositionStart && !host.$readOnly && (inComposition = {}, !commandMode)) { e.data && (inComposition.useTextareaForIME = !1), setTimeout(onCompositionUpdate, 0), host._signal("compositionStart"), host.on("mousedown", cancelComposition); var range = host.getSelectionRange(); range.end.row = range.start.row, range.end.column = range.start.column, inComposition.markerRange = range, inComposition.selectionStart = lastSelectionStart, host.onCompositionStart(inComposition), inComposition.useTextareaForIME ? (lastValue = text.value = "", lastSelectionStart = 0, lastSelectionEnd = 0) : (text.msGetInputContext && (inComposition.context = text.msGetInputContext()), text.getInputContext && (inComposition.context = text.getInputContext())); } }, host), event.addListener(text, "compositionupdate", onCompositionUpdate, host), event.addListener(text, "keyup", function(e) { 27 == e.keyCode && text.value.length < text.selectionStart && (inComposition || (lastValue = text.value), lastSelectionStart = lastSelectionEnd = -1, resetSelection()), syncComposition(); }, host), event.addListener(text, "keydown", syncComposition, host), event.addListener(text, "compositionend", onCompositionEnd, host), this.getElement = function() { return text; }, this.setCommandMode = function(value) { commandMode = value, text.readOnly = !1; }, this.setReadOnly = function(readOnly) { commandMode || (text.readOnly = readOnly); }, this.setCopyWithEmptySelection = function(value) {}, this.onContextMenu = function(e) { afterContextMenu = !0, resetSelection(), host._emit("nativecontextmenu", { target: host, domEvent: e }), this.moveToMouse(e, !0); }, this.moveToMouse = function(e, bringToFront) { tempStyle || (tempStyle = text.style.cssText), text.style.cssText = (bringToFront ? "z-index:100000;" : "") + (useragent.isIE ? "opacity:0.1;" : "") + "text-indent: -" + (lastSelectionStart + lastSelectionEnd) * host.renderer.characterWidth * 0.5 + "px;"; var rect = host.container.getBoundingClientRect(), style = dom.computedStyle(host.container), top = rect.top + (parseInt(style.borderTopWidth) || 0), left = rect.left + (parseInt(rect.borderLeftWidth) || 0), maxTop = rect.bottom - top - text.clientHeight - 2, move = function(e) { dom.translate(text, e.clientX - left - 2, Math.min(e.clientY - top - 2, maxTop)); }; move(e), "mousedown" == e.type && (host.renderer.$isMousePressed = !0, clearTimeout(closeTimeout), useragent.isWin && event.capture(host.container, move, onContextMenuClose)); }, this.onContextMenuClose = onContextMenuClose; var onContextMenu = function(e) { host.textInput.onContextMenu(e), onContextMenuClose(); }; event.addListener(text, "mouseup", onContextMenu, host), event.addListener(text, "mousedown", function(e) { e.preventDefault(), onContextMenuClose(); }, host), event.addListener(host.renderer.scroller, "contextmenu", onContextMenu, host), event.addListener(text, "contextmenu", onContextMenu, host), isIOS && (typingResetTimeout = null, typing = !1, text.addEventListener("keydown", function(e) { typingResetTimeout && clearTimeout(typingResetTimeout), typing = !0; }, !0), text.addEventListener("keyup", function(e) { typingResetTimeout = setTimeout(function() { typing = !1; }, 100); }, !0), detectArrowKeys = function(e) { if (document.activeElement === text && !typing && !inComposition && !host.$mouseHandler.isMousePressed && !copied) { var selectionStart = text.selectionStart, selectionEnd = text.selectionEnd, key = null, modifier = 0; if (0 == selectionStart ? key = KEYS.up : 1 == selectionStart ? key = KEYS.home : selectionEnd > lastSelectionEnd && "\n" == lastValue[selectionEnd] ? key = KEYS.end : selectionStart < lastSelectionStart && " " == lastValue[selectionStart - 1] ? (key = KEYS.left, modifier = MODS.option) : selectionStart < lastSelectionStart || selectionStart == lastSelectionStart && lastSelectionEnd != lastSelectionStart && selectionStart == selectionEnd ? key = KEYS.left : selectionEnd > lastSelectionEnd && lastValue.slice(0, selectionEnd).split("\n").length > 2 ? key = KEYS.down : selectionEnd > lastSelectionEnd && " " == lastValue[selectionEnd - 1] ? (key = KEYS.right, modifier = MODS.option) : (selectionEnd > lastSelectionEnd || selectionEnd == lastSelectionEnd && lastSelectionEnd != lastSelectionStart && selectionStart == selectionEnd) && (key = KEYS.right), selectionStart !== selectionEnd && (modifier |= MODS.shift), key) { if (!host.onCommandKey({}, modifier, key) && host.commands) { key = KEYS.keyCodeToString(key); var command = host.commands.findKeyCommand(modifier, key); command && host.execCommand(command); } lastSelectionStart = selectionStart, lastSelectionEnd = selectionEnd, resetSelection(""); } } }, document.addEventListener("selectionchange", detectArrowKeys), host.on("destroy", function() { document.removeEventListener("selectionchange", detectArrowKeys); })); }, exports.$setUserAgentForTests = function(_isMobile, _isIOS) { isMobile = _isMobile, isIOS = _isIOS; }; }), ace.define("ace/mouse/default_handlers", [ "require", "exports", "module", "ace/lib/useragent" ], function(require, exports, module) { "use strict"; var useragent = require("../lib/useragent"); function DefaultHandlers(mouseHandler) { mouseHandler.$clickSelection = null; var editor = mouseHandler.editor; editor.setDefaultHandler("mousedown", this.onMouseDown.bind(mouseHandler)), editor.setDefaultHandler("dblclick", this.onDoubleClick.bind(mouseHandler)), editor.setDefaultHandler("tripleclick", this.onTripleClick.bind(mouseHandler)), editor.setDefaultHandler("quadclick", this.onQuadClick.bind(mouseHandler)), editor.setDefaultHandler("mousewheel", this.onMouseWheel.bind(mouseHandler)), [ "select", "startSelect", "selectEnd", "selectAllEnd", "selectByWordsEnd", "selectByLinesEnd", "dragWait", "dragWaitEnd", "focusWait" ].forEach(function(x) { mouseHandler[x] = this[x]; }, this), mouseHandler.selectByLines = this.extendSelectionBy.bind(mouseHandler, "getLineRange"), mouseHandler.selectByWords = this.extendSelectionBy.bind(mouseHandler, "getWordRange"); } function calcRangeOrientation(range, cursor) { if (range.start.row == range.end.row) var cmp = 2 * cursor.column - range.start.column - range.end.column; else if (range.start.row != range.end.row - 1 || range.start.column || range.end.column) var cmp = 2 * cursor.row - range.start.row - range.end.row; else var cmp = cursor.column - 4; return cmp < 0 ? { cursor: range.start, anchor: range.end } : { cursor: range.end, anchor: range.start }; } (function() { this.onMouseDown = function(ev) { var inSelection = ev.inSelection(), pos = ev.getDocumentPosition(); this.mousedownEvent = ev; var editor = this.editor, button = ev.getButton(); if (0 !== button) { (editor.getSelectionRange().isEmpty() || 1 == button) && editor.selection.moveToPosition(pos), 2 != button || (editor.textInput.onContextMenu(ev.domEvent), useragent.isMozilla || ev.preventDefault()); return; } if (this.mousedownEvent.time = Date.now(), inSelection && !editor.isFocused() && (editor.focus(), this.$focusTimeout && !this.$clickSelection && !editor.inMultiSelectMode)) { this.setState("focusWait"), this.captureMouse(ev); return; } return this.captureMouse(ev), this.startSelect(pos, ev.domEvent._clicks > 1), ev.preventDefault(); }, this.startSelect = function(pos, waitForClickSelection) { pos = pos || this.editor.renderer.screenToTextCoordinates(this.x, this.y); var editor = this.editor; this.mousedownEvent && (this.mousedownEvent.getShiftKey() ? editor.selection.selectToPosition(pos) : waitForClickSelection || editor.selection.moveToPosition(pos), waitForClickSelection || this.select(), editor.renderer.scroller.setCapture && editor.renderer.scroller.setCapture(), editor.setStyle("ace_selecting"), this.setState("select")); }, this.select = function() { var anchor, editor = this.editor, cursor = editor.renderer.screenToTextCoordinates(this.x, this.y); if (this.$clickSelection) { var cmp = this.$clickSelection.comparePoint(cursor); if (-1 == cmp) anchor = this.$clickSelection.end; else if (1 == cmp) anchor = this.$clickSelection.start; else { var orientedRange = calcRangeOrientation(this.$clickSelection, cursor); cursor = orientedRange.cursor, anchor = orientedRange.anchor; } editor.selection.setSelectionAnchor(anchor.row, anchor.column); } editor.selection.selectToPosition(cursor), editor.renderer.scrollCursorIntoView(); }, this.extendSelectionBy = function(unitName) { var anchor, editor = this.editor, cursor = editor.renderer.screenToTextCoordinates(this.x, this.y), range = editor.selection[unitName](cursor.row, cursor.column); if (this.$clickSelection) { var cmpStart = this.$clickSelection.comparePoint(range.start), cmpEnd = this.$clickSelection.comparePoint(range.end); if (-1 == cmpStart && cmpEnd <= 0) anchor = this.$clickSelection.end, (range.end.row != cursor.row || range.end.column != cursor.column) && (cursor = range.start); else if (1 == cmpEnd && cmpStart >= 0) anchor = this.$clickSelection.start, (range.start.row != cursor.row || range.start.column != cursor.column) && (cursor = range.end); else if (-1 == cmpStart && 1 == cmpEnd) cursor = range.end, anchor = range.start; else { var orientedRange = calcRangeOrientation(this.$clickSelection, cursor); cursor = orientedRange.cursor, anchor = orientedRange.anchor; } editor.selection.setSelectionAnchor(anchor.row, anchor.column); } editor.selection.selectToPosition(cursor), editor.renderer.scrollCursorIntoView(); }, this.selectEnd = this.selectAllEnd = this.selectByWordsEnd = this.selectByLinesEnd = function() { this.$clickSelection = null, this.editor.unsetStyle("ace_selecting"), this.editor.renderer.scroller.releaseCapture && this.editor.renderer.scroller.releaseCapture(); }, this.focusWait = function() { var ax, ay, distance = (ax = this.mousedownEvent.x, ay = this.mousedownEvent.y, Math.sqrt(Math.pow(this.x - ax, 2) + Math.pow(this.y - ay, 2))), time = Date.now(); (distance > 0 || time - this.mousedownEvent.time > this.$focusTimeout) && this.startSelect(this.mousedownEvent.getDocumentPosition()); }, this.onDoubleClick = function(ev) { var pos = ev.getDocumentPosition(), editor = this.editor, range = editor.session.getBracketRange(pos); range ? (range.isEmpty() && (range.start.column--, range.end.column++), this.setState("select")) : (range = editor.selection.getWordRange(pos.row, pos.column), this.setState("selectByWords")), this.$clickSelection = range, this.select(); }, this.onTripleClick = function(ev) { var pos = ev.getDocumentPosition(), editor = this.editor; this.setState("selectByLines"); var range = editor.getSelectionRange(); range.isMultiLine() && range.contains(pos.row, pos.column) ? (this.$clickSelection = editor.selection.getLineRange(range.start.row), this.$clickSelection.end = editor.selection.getLineRange(range.end.row).end) : this.$clickSelection = editor.selection.getLineRange(pos.row), this.select(); }, this.onQuadClick = function(ev) { var editor = this.editor; editor.selectAll(), this.$clickSelection = editor.getSelectionRange(), this.setState("selectAll"); }, this.onMouseWheel = function(ev) { if (!ev.getAccelKey()) { ev.getShiftKey() && ev.wheelY && !ev.wheelX && (ev.wheelX = ev.wheelY, ev.wheelY = 0); var editor = this.editor; this.$lastScroll || (this.$lastScroll = { t: 0, vx: 0, vy: 0, allowed: 0 }); var prevScroll = this.$lastScroll, t = ev.domEvent.timeStamp, dt = t - prevScroll.t, vx = dt ? ev.wheelX / dt : prevScroll.vx, vy = dt ? ev.wheelY / dt : prevScroll.vy; dt < 550 && (vx = (vx + prevScroll.vx) / 2, vy = (vy + prevScroll.vy) / 2); var direction = Math.abs(vx / vy), canScroll = !1; if (direction >= 1 && editor.renderer.isScrollableBy(ev.wheelX * ev.speed, 0) && (canScroll = !0), direction <= 1 && editor.renderer.isScrollableBy(0, ev.wheelY * ev.speed) && (canScroll = !0), canScroll ? prevScroll.allowed = t : t - prevScroll.allowed < 550 && (Math.abs(vx) <= 1.5 * Math.abs(prevScroll.vx) && Math.abs(vy) <= 1.5 * Math.abs(prevScroll.vy) ? (canScroll = !0, prevScroll.allowed = t) : prevScroll.allowed = 0), prevScroll.t = t, prevScroll.vx = vx, prevScroll.vy = vy, canScroll) return editor.renderer.scrollBy(ev.wheelX * ev.speed, ev.wheelY * ev.speed), ev.stop(); } }; }).call(DefaultHandlers.prototype), exports.DefaultHandlers = DefaultHandlers; }), ace.define("ace/tooltip", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/dom" ], function(require, exports, module) { "use strict"; require("./lib/oop"); var dom = require("./lib/dom"); function Tooltip(parentNode) { this.isOpen = !1, this.$element = null, this.$parentNode = parentNode; } (function() { this.$init = function() { return this.$element = dom.createElement("div"), this.$element.className = "ace_tooltip", this.$element.style.display = "none", this.$parentNode.appendChild(this.$element), this.$element; }, this.getElement = function() { return this.$element || this.$init(); }, this.setText = function(text) { this.getElement().textContent = text; }, this.setHtml = function(html) { this.getElement().innerHTML = html; }, this.setPosition = function(x, y) { this.getElement().style.left = x + "px", this.getElement().style.top = y + "px"; }, this.setClassName = function(className) { dom.addCssClass(this.getElement(), className); }, this.show = function(text, x, y) { null != text && this.setText(text), null != x && null != y && this.setPosition(x, y), this.isOpen || (this.getElement().style.display = "block", this.isOpen = !0); }, this.hide = function() { this.isOpen && (this.getElement().style.display = "none", this.isOpen = !1); }, this.getHeight = function() { return this.getElement().offsetHeight; }, this.getWidth = function() { return this.getElement().offsetWidth; }, this.destroy = function() { this.isOpen = !1, this.$element && this.$element.parentNode && this.$element.parentNode.removeChild(this.$element); }; }).call(Tooltip.prototype), exports.Tooltip = Tooltip; }), ace.define("ace/mouse/default_gutter_handler", [ "require", "exports", "module", "ace/lib/dom", "ace/lib/oop", "ace/lib/event", "ace/tooltip" ], function(require, exports, module) { "use strict"; var dom = require("../lib/dom"), oop = require("../lib/oop"), event = require("../lib/event"), Tooltip = require("../tooltip").Tooltip; function GutterTooltip(parentNode) { Tooltip.call(this, parentNode); } oop.inherits(GutterTooltip, Tooltip), (function() { this.setPosition = function(x, y) { var windowWidth = window.innerWidth || document.documentElement.clientWidth, windowHeight = window.innerHeight || document.documentElement.clientHeight, width = this.getWidth(), height = this.getHeight(); y += 15, (x += 15) + width > windowWidth && (x -= x + width - windowWidth), y + height > windowHeight && (y -= 20 + height), Tooltip.prototype.setPosition.call(this, x, y); }; }).call(GutterTooltip.prototype), exports.GutterHandler = function(mouseHandler) { var tooltipTimeout, mouseEvent, tooltipAnnotation, editor = mouseHandler.editor, gutter = editor.renderer.$gutterLayer, tooltip = new GutterTooltip(editor.container); function hideTooltip() { tooltipTimeout && (tooltipTimeout = clearTimeout(tooltipTimeout)), tooltipAnnotation && (tooltip.hide(), tooltipAnnotation = null, editor._signal("hideGutterTooltip", tooltip), editor.off("mousewheel", hideTooltip)); } function moveTooltip(e) { tooltip.setPosition(e.x, e.y); } mouseHandler.editor.setDefaultHandler("guttermousedown", function(e) { if (editor.isFocused() && 0 == e.getButton() && "foldWidgets" != gutter.getRegion(e)) { var row = e.getDocumentPosition().row, selection = editor.session.selection; if (e.getShiftKey()) selection.selectTo(row, 0); else { if (2 == e.domEvent.detail) return editor.selectAll(), e.preventDefault(); mouseHandler.$clickSelection = editor.selection.getLineRange(row); } return mouseHandler.setState("selectByLines"), mouseHandler.captureMouse(e), e.preventDefault(); } }), mouseHandler.editor.setDefaultHandler("guttermousemove", function(e) { var target = e.domEvent.target || e.domEvent.srcElement; if (dom.hasCssClass(target, "ace_fold-widget")) return hideTooltip(); tooltipAnnotation && mouseHandler.$tooltipFollowsMouse && moveTooltip(e), mouseEvent = e, tooltipTimeout || (tooltipTimeout = setTimeout(function() { tooltipTimeout = null, mouseEvent && !mouseHandler.isMousePressed ? function() { var row = mouseEvent.getDocumentPosition().row, annotation = gutter.$annotations[row]; if (!annotation) return hideTooltip(); if (row == editor.session.getLength()) { var screenRow = editor.renderer.pixelToScreenCoordinates(0, mouseEvent.y).row, pos = mouseEvent.$pos; if (screenRow > editor.session.documentToScreenRow(pos.row, pos.column)) return hideTooltip(); } if (tooltipAnnotation != annotation) { if (tooltipAnnotation = annotation.text.join("<br/>"), tooltip.setHtml(tooltipAnnotation), tooltip.show(), editor._signal("showGutterTooltip", tooltip), editor.on("mousewheel", hideTooltip), mouseHandler.$tooltipFollowsMouse) moveTooltip(mouseEvent); else { var rect = mouseEvent.domEvent.target.getBoundingClientRect(), style = tooltip.getElement().style; style.left = rect.right + "px", style.top = rect.bottom + "px"; } } }() : hideTooltip(); }, 50)); }), event.addListener(editor.renderer.$gutter, "mouseout", function(e) { mouseEvent = null, tooltipAnnotation && !tooltipTimeout && (tooltipTimeout = setTimeout(function() { tooltipTimeout = null, hideTooltip(); }, 50)); }, editor), editor.on("changeSession", hideTooltip); }; }), ace.define("ace/mouse/mouse_event", [ "require", "exports", "module", "ace/lib/event", "ace/lib/useragent" ], function(require, exports, module) { "use strict"; var event = require("../lib/event"), useragent = require("../lib/useragent"); (function() { this.stopPropagation = function() { event.stopPropagation(this.domEvent), this.propagationStopped = !0; }, this.preventDefault = function() { event.preventDefault(this.domEvent), this.defaultPrevented = !0; }, this.stop = function() { this.stopPropagation(), this.preventDefault(); }, this.getDocumentPosition = function() { return this.$pos || (this.$pos = this.editor.renderer.screenToTextCoordinates(this.clientX, this.clientY)), this.$pos; }, this.inSelection = function() { if (null !== this.$inSelection) return this.$inSelection; var selectionRange = this.editor.getSelectionRange(); if (selectionRange.isEmpty()) this.$inSelection = !1; else { var pos = this.getDocumentPosition(); this.$inSelection = selectionRange.contains(pos.row, pos.column); } return this.$inSelection; }, this.getButton = function() { return event.getButton(this.domEvent); }, this.getShiftKey = function() { return this.domEvent.shiftKey; }, this.getAccelKey = useragent.isMac ? function() { return this.domEvent.metaKey; } : function() { return this.domEvent.ctrlKey; }; }).call((exports.MouseEvent = function(domEvent, editor) { this.domEvent = domEvent, this.editor = editor, this.x = this.clientX = domEvent.clientX, this.y = this.clientY = domEvent.clientY, this.$pos = null, this.$inSelection = null, this.propagationStopped = !1, this.defaultPrevented = !1; }).prototype); }), ace.define("ace/mouse/dragdrop_handler", [ "require", "exports", "module", "ace/lib/dom", "ace/lib/event", "ace/lib/useragent" ], function(require, exports, module) { "use strict"; var dom = require("../lib/dom"), event = require("../lib/event"), useragent = require("../lib/useragent"); function DragdropHandler(mouseHandler) { var dragOperation, isInternal, autoScrollStartTime, cursorMovedTime, cursorPointOnCaretMoved, editor = mouseHandler.editor, dragImage = dom.createElement("div"); dragImage.style.cssText = "top:-100px;position:absolute;z-index:2147483647;opacity:0.5", dragImage.textContent = "\xa0", [ "dragWait", "dragWaitEnd", "startDrag", "dragReadyEnd", "onMouseDrag" ].forEach(function(x) { mouseHandler[x] = this[x]; }, this), editor.on("mousedown", this.onMouseDown.bind(mouseHandler)); var dragSelectionMarker, x, y, timerId, range, dragCursor, mouseTarget = editor.container, counter = 0; function onDragInterval() { var cursor, now, vMovement, hMovement, cursor1, now1, lineHeight, characterWidth, editorRect, offsets, nearestXOffset, nearestYOffset, scrollCursor, vScroll, hScroll, vMovement1, prevCursor = dragCursor; cursor = dragCursor = editor.renderer.screenToTextCoordinates(x, y), now = Date.now(), vMovement = !prevCursor || cursor.row != prevCursor.row, hMovement = !prevCursor || cursor.column != prevCursor.column, !cursorMovedTime || vMovement || hMovement ? (editor.moveCursorToPosition(cursor), cursorMovedTime = now, cursorPointOnCaretMoved = { x: x, y: y }) : calcDistance(cursorPointOnCaretMoved.x, cursorPointOnCaretMoved.y, x, y) > 5 ? cursorMovedTime = null : now - cursorMovedTime >= 200 && (editor.renderer.scrollCursorIntoView(), cursorMovedTime = null), cursor1 = dragCursor, now1 = Date.now(), lineHeight = editor.renderer.layerConfig.lineHeight, characterWidth = editor.renderer.layerConfig.characterWidth, editorRect = editor.renderer.scroller.getBoundingClientRect(), nearestXOffset = Math.min((offsets = { x: { left: x - editorRect.left, right: editorRect.right - x }, y: { top: y - editorRect.top, bottom: editorRect.bottom - y } }).x.left, offsets.x.right), nearestYOffset = Math.min(offsets.y.top, offsets.y.bottom), scrollCursor = { row: cursor1.row, column: cursor1.column }, nearestXOffset / characterWidth <= 2 && (scrollCursor.column += offsets.x.left < offsets.x.right ? -3 : 2), nearestYOffset / lineHeight <= 1 && (scrollCursor.row += offsets.y.top < offsets.y.bottom ? -1 : 1), vScroll = cursor1.row != scrollCursor.row, hScroll = cursor1.column != scrollCursor.column, vMovement1 = !prevCursor || cursor1.row != prevCursor.row, vScroll || hScroll && !vMovement1 ? autoScrollStartTime ? now1 - autoScrollStartTime >= 200 && editor.renderer.scrollCursorIntoView(scrollCursor) : autoScrollStartTime = now1 : autoScrollStartTime = null; } function addDragMarker() { range = editor.selection.toOrientedRange(), dragSelectionMarker = editor.session.addMarker(range, "ace_selection", editor.getSelectionStyle()), editor.clearSelection(), editor.isFocused() && editor.renderer.$cursorLayer.setBlinking(!1), clearInterval(timerId), onDragInterval(), timerId = setInterval(onDragInterval, 20), counter = 0, event.addListener(document, "mousemove", onMouseMove); } function clearDragMarker() { clearInterval(timerId), editor.session.removeMarker(dragSelectionMarker), dragSelectionMarker = null, editor.selection.fromOrientedRange(range), editor.isFocused() && !isInternal && editor.$resetCursorStyle(), range = null, dragCursor = null, counter = 0, autoScrollStartTime = null, cursorMovedTime = null, event.removeListener(document, "mousemove", onMouseMove); } this.onDragStart = function(e) { if (this.cancelDrag || !mouseTarget.draggable) { var self1 = this; return setTimeout(function() { self1.startSelect(), self1.captureMouse(e); }, 0), e.preventDefault(); } range = editor.getSelectionRange(); var dataTransfer = e.dataTransfer; dataTransfer.effectAllowed = editor.getReadOnly() ? "copy" : "copyMove", editor.container.appendChild(dragImage), dataTransfer.setDragImage && dataTransfer.setDragImage(dragImage, 0, 0), setTimeout(function() { editor.container.removeChild(dragImage); }), dataTransfer.clearData(), dataTransfer.setData("Text", editor.session.getTextRange()), isInternal = !0, this.setState("drag"); }, this.onDragEnd = function(e) { if (mouseTarget.draggable = !1, isInternal = !1, this.setState(null), !editor.getReadOnly()) { var dropEffect = e.dataTransfer.dropEffect; dragOperation || "move" != dropEffect || editor.session.remove(editor.getSelectionRange()), editor.$resetCursorStyle(); } this.editor.unsetStyle("ace_dragging"), this.editor.renderer.setCursorStyle(""); }, this.onDragEnter = function(e) { if (!editor.getReadOnly() && canAccept(e.dataTransfer)) return x = e.clientX, y = e.clientY, dragSelectionMarker || addDragMarker(), counter++, e.dataTransfer.dropEffect = dragOperation = getDropEffect(e), event.preventDefault(e); }, this.onDragOver = function(e) { if (!editor.getReadOnly() && canAccept(e.dataTransfer)) return x = e.clientX, y = e.clientY, !dragSelectionMarker && (addDragMarker(), counter++), null !== onMouseMoveTimer && (onMouseMoveTimer = null), e.dataTransfer.dropEffect = dragOperation = getDropEffect(e), event.preventDefault(e); }, this.onDragLeave = function(e) { if (--counter <= 0 && dragSelectionMarker) return clearDragMarker(), dragOperation = null, event.preventDefault(e); }, this.onDrop = function(e) { if (dragCursor) { var dataTransfer = e.dataTransfer; if (isInternal) switch(dragOperation){ case "move": range = range.contains(dragCursor.row, dragCursor.column) ? { start: dragCursor, end: dragCursor } : editor.moveText(range, dragCursor); break; case "copy": range = editor.moveText(range, dragCursor, !0); } else { var dropData = dataTransfer.getData("Text"); range = { start: dragCursor, end: editor.session.insert(dragCursor, dropData) }, editor.focus(), dragOperation = null; } return clearDragMarker(), event.preventDefault(e); } }, event.addListener(mouseTarget, "dragstart", this.onDragStart.bind(mouseHandler), editor), event.addListener(mouseTarget, "dragend", this.onDragEnd.bind(mouseHandler), editor), event.addListener(mouseTarget, "dragenter", this.onDragEnter.bind(mouseHandler), editor), event.addListener(mouseTarget, "dragover", this.onDragOver.bind(mouseHandler), editor), event.addListener(mouseTarget, "dragleave", this.onDragLeave.bind(mouseHandler), editor), event.addListener(mouseTarget, "drop", this.onDrop.bind(mouseHandler), editor); var onMouseMoveTimer = null; function onMouseMove() { null == onMouseMoveTimer && (onMouseMoveTimer = setTimeout(function() { null != onMouseMoveTimer && dragSelectionMarker && clearDragMarker(); }, 20)); } function canAccept(dataTransfer) { var types = dataTransfer.types; return !types || Array.prototype.some.call(types, function(type) { return "text/plain" == type || "Text" == type; }); } function getDropEffect(e) { var copyAllowed = [ "copy", "copymove", "all", "uninitialized" ], copyModifierState = useragent.isMac ? e.altKey : e.ctrlKey, effectAllowed = "uninitialized"; try { effectAllowed = e.dataTransfer.effectAllowed.toLowerCase(); } catch (e) {} var dropEffect = "none"; return copyModifierState && copyAllowed.indexOf(effectAllowed) >= 0 ? dropEffect = "copy" : [ "move", "copymove", "linkmove", "all", "uninitialized" ].indexOf(effectAllowed) >= 0 ? dropEffect = "move" : copyAllowed.indexOf(effectAllowed) >= 0 && (dropEffect = "copy"), dropEffect; } } function calcDistance(ax, ay, bx, by) { return Math.sqrt(Math.pow(bx - ax, 2) + Math.pow(by - ay, 2)); } (function() { this.dragWait = function() { Date.now() - this.mousedownEvent.time > this.editor.getDragDelay() && this.startDrag(); }, this.dragWaitEnd = function() { this.editor.container.draggable = !1, this.startSelect(this.mousedownEvent.getDocumentPosition()), this.selectEnd(); }, this.dragReadyEnd = function(e) { this.editor.$resetCursorStyle(), this.editor.unsetStyle("ace_dragging"), this.editor.renderer.setCursorStyle(""), this.dragWaitEnd(); }, this.startDrag = function() { this.cancelDrag = !1; var editor = this.editor; editor.container.draggable = !0, editor.renderer.$cursorLayer.setBlinking(!1), editor.setStyle("ace_dragging"); var cursorStyle = useragent.isWin ? "default" : "move"; editor.renderer.setCursorStyle(cursorStyle), this.setState("dragReady"); }, this.onMouseDrag = function(e) { var target = this.editor.container; if (useragent.isIE && "dragReady" == this.state) { var distance = calcDistance(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y); distance > 3 && target.dragDrop(); } if ("dragWait" === this.state) { var distance = calcDistance(this.mousedownEvent.x, this.mousedownEvent.y, this.x, this.y); distance > 0 && (target.draggable = !1, this.startSelect(this.mousedownEvent.getDocumentPosition())); } }, this.onMouseDown = function(e) { if (this.$dragEnabled) { this.mousedownEvent = e; var editor = this.editor, inSelection = e.inSelection(), button = e.getButton(); if (1 === (e.domEvent.detail || 1) && 0 === button && inSelection) { if (e.editor.inMultiSelectMode && (e.getAccelKey() || e.getShiftKey())) return; this.mousedownEvent.time = Date.now(); var eventTarget = e.domEvent.target || e.domEvent.srcElement; "unselectable" in eventTarget && (eventTarget.unselectable = "on"), editor.getDragDelay() ? (useragent.isWebKit && (this.cancelDrag = !0, editor.container.draggable = !0), this.setState("dragWait")) : this.startDrag(), this.captureMouse(e, this.onMouseDrag.bind(this)), e.defaultPrevented = !0; } } }; }).call(DragdropHandler.prototype), exports.DragdropHandler = DragdropHandler; }), ace.define("ace/mouse/touch_handler", [ "require", "exports", "module", "ace/mouse/mouse_event", "ace/lib/event", "ace/lib/dom" ], function(require, exports, module) { "use strict"; var MouseEvent = require("./mouse_event").MouseEvent, event = require("../lib/event"), dom = require("../lib/dom"); exports.addTouchListeners = function(el, editor) { var startX, startY, touchStartT, lastT, longTouchTimer, animationTimer, pos, pressed, contextMenu, mode = "scroll", animationSteps = 0, clickCount = 0, vX = 0, vY = 0; function showContextMenu() { if (!contextMenu) { var clipboard, isOpen, updateMenu, handleClick; clipboard = window.navigator && window.navigator.clipboard, isOpen = !1, updateMenu = function() { var selected = editor.getCopyText(), hasUndo = editor.session.getUndoManager().hasUndo(); contextMenu.replaceChild(dom.buildDom(isOpen ? [ "span", !selected && [ "span", { class: "ace_mobile-button", action: "selectall" }, "Select All" ], selected && [ "span", { class: "ace_mobile-button", action: "copy" }, "Copy" ], selected && [ "span", { class: "ace_mobile-button", action: "cut" }, "Cut" ], clipboard && [ "span", { class: "ace_mobile-button", action: "paste" }, "Paste" ], hasUndo && [ "span", { class: "ace_mobile-button", action: "undo" }, "Undo" ], [ "span", { class: "ace_mobile-button", action: "find" }, "Find" ], [ "span", { class: "ace_mobile-button", action: "openCommandPallete" }, "Pallete" ] ] : [ "span" ]), contextMenu.firstChild); }, handleClick = function(e) { var action = e.target.getAttribute("action"); if ("more" == action || !isOpen) return isOpen = !isOpen, updateMenu(); "paste" == action ? clipboard.readText().then(function(text) { editor.execCommand(action, text); }) : action && (("cut" == action || "copy" == action) && (clipboard ? clipboard.writeText(editor.getCopyText()) : document.execCommand("copy")), editor.execCommand(action)), contextMenu.firstChild.style.display = "none", isOpen = !1, "openCommandPallete" != action && editor.focus(); }, contextMenu = dom.buildDom([ "div", { class: "ace_mobile-menu", ontouchstart: function(e) { mode = "menu", e.stopPropagation(), e.preventDefault(), editor.textInput.focus(); }, ontouchend: function(e) { e.stopPropagation(), e.preventDefault(), handleClick(e); }, onclick: handleClick }, [ "span" ], [ "span", { class: "ace_mobile-button", action: "more" }, "..." ] ], editor.container); } var cursor = editor.selection.cursor, pagePos = editor.renderer.textToScreenCoordinates(cursor.row, cursor.column), leftOffset = editor.renderer.textToScreenCoordinates(0, 0).pageX, scrollLeft = editor.renderer.scrollLeft, rect = editor.container.getBoundingClientRect(); contextMenu.style.top = pagePos.pageY - rect.top - 3 + "px", pagePos.pageX - rect.left < rect.width - 70 ? (contextMenu.style.left = "", contextMenu.style.right = "10px") : (contextMenu.style.right = "", contextMenu.style.left = leftOffset + scrollLeft - rect.left + "px"), contextMenu.style.display = "", contextMenu.firstChild.style.display = "none", editor.on("input", hideContextMenu); } function hideContextMenu(e) { contextMenu && (contextMenu.style.display = "none"), editor.off("input", hideContextMenu); } function handleLongTap() { clearTimeout(longTouchTimer = null); var range = editor.selection.getRange(), inSelection = range.contains(pos.row, pos.column); (range.isEmpty() || !inSelection) && (editor.selection.moveToPosition(pos), editor.selection.selectWord()), mode = "wait", showContextMenu(); } event.addListener(el, "contextmenu", function(e) { pressed && editor.textInput.getElement().focus(); }, editor), event.addListener(el, "touchstart", function(e) { var range, touches = e.touches; if (longTouchTimer || touches.length > 1) { clearTimeout(longTouchTimer), longTouchTimer = null, touchStartT = -1, mode = "zoom"; return; } pressed = editor.$mouseHandler.isMousePressed = !0; var h = editor.renderer.layerConfig.lineHeight, w = editor.renderer.layerConfig.lineHeight, t = e.timeStamp; lastT = t; var touchObj = touches[0], x = touchObj.clientX, y = touchObj.clientY; if (Math.abs(startX - x) + Math.abs(startY - y) > h && (touchStartT = -1), startX = e.clientX = x, startY = e.clientY = y, vX = vY = 0, pos = new MouseEvent(e, editor).getDocumentPosition(), t - touchStartT < 500 && 1 == touches.length && !animationSteps) clickCount++, e.preventDefault(), e.button = 0, clearTimeout(longTouchTimer = null), editor.selection.moveToPosition(pos), (range = clickCount >= 2 ? editor.selection.getLineRange(pos.row) : editor.session.getBracketRange(pos)) && !range.isEmpty() ? editor.selection.setRange(range) : editor.selection.selectWord(), mode = "wait"; else { clickCount = 0; var cursor = editor.selection.cursor, anchor = editor.selection.isEmpty() ? cursor : editor.selection.anchor, cursorPos = editor.renderer.$cursorLayer.getPixelPosition(cursor, !0), anchorPos = editor.renderer.$cursorLayer.getPixelPosition(anchor, !0), rect = editor.renderer.scroller.getBoundingClientRect(), offsetTop = editor.renderer.layerConfig.offset, offsetLeft = editor.renderer.scrollLeft, weightedDistance = function(x, y) { return (x /= w) * x + (y = y / h - 0.75) * y; }; if (e.clientX < rect.left) { mode = "zoom"; return; } var diff1 = weightedDistance(e.clientX - rect.left - cursorPos.left + offsetLeft, e.clientY - rect.top - cursorPos.top + offsetTop), diff2 = weightedDistance(e.clientX - rect.left - anchorPos.left + offsetLeft, e.clientY - rect.top - anchorPos.top + offsetTop); diff1 < 3.5 && diff2 < 3.5 && (mode = diff1 > diff2 ? "cursor" : "anchor"), mode = diff2 < 3.5 ? "anchor" : diff1 < 3.5 ? "cursor" : "scroll", longTouchTimer = setTimeout(handleLongTap, 450); } touchStartT = t; }, editor), event.addListener(el, "touchend", function(e) { pressed = editor.$mouseHandler.isMousePressed = !1, animationTimer && clearInterval(animationTimer), "zoom" == mode ? (mode = "", animationSteps = 0) : longTouchTimer ? (editor.selection.moveToPosition(pos), animationSteps = 0, showContextMenu()) : "scroll" == mode ? (animationSteps += 60, animationTimer = setInterval(function() { animationSteps-- <= 0 && (clearInterval(animationTimer), animationTimer = null), 0.01 > Math.abs(vX) && (vX = 0), 0.01 > Math.abs(vY) && (vY = 0), animationSteps < 20 && (vX *= 0.9), animationSteps < 20 && (vY *= 0.9); var oldScrollTop = editor.session.getScrollTop(); editor.renderer.scrollBy(10 * vX, 10 * vY), oldScrollTop == editor.session.getScrollTop() && (animationSteps = 0); }, 10), hideContextMenu()) : showContextMenu(), clearTimeout(longTouchTimer), longTouchTimer = null; }, editor), event.addListener(el, "touchmove", function(e) { longTouchTimer && (clearTimeout(longTouchTimer), longTouchTimer = null); var touches = e.touches; if (!(touches.length > 1) && "zoom" != mode) { var touchObj = touches[0], wheelX = startX - touchObj.clientX, wheelY = startY - touchObj.clientY; if ("wait" == mode) { if (!(wheelX * wheelX + wheelY * wheelY > 4)) return e.preventDefault(); mode = "cursor"; } startX = touchObj.clientX, startY = touchObj.clientY, e.clientX = touchObj.clientX, e.clientY = touchObj.clientY; var t = e.timeStamp, dt = t - lastT; if (lastT = t, "scroll" == mode) { var mouseEvent = new MouseEvent(e, editor); mouseEvent.speed = 1, mouseEvent.wheelX = wheelX, mouseEvent.wheelY = wheelY, 10 * Math.abs(wheelX) < Math.abs(wheelY) && (wheelX = 0), 10 * Math.abs(wheelY) < Math.abs(wheelX) && (wheelY = 0), 0 != dt && (vX = wheelX / dt, vY = wheelY / dt), editor._emit("mousewheel", mouseEvent), mouseEvent.propagationStopped || (vX = vY = 0); } else { var pos = new MouseEvent(e, editor).getDocumentPosition(); "cursor" == mode ? editor.selection.moveCursorToPosition(pos) : "anchor" == mode && editor.selection.setSelectionAnchor(pos.row, pos.column), editor.renderer.scrollCursorIntoView(pos), e.preventDefault(); } } }, editor); }; }), ace.define("ace/lib/net", [ "require", "exports", "module", "ace/lib/dom" ], function(require, exports, module) { "use strict"; var dom = require("./dom"); exports.get = function(url, callback) { var xhr = new XMLHttpRequest(); xhr.open("GET", url, !0), xhr.onreadystatechange = function() { 4 === xhr.readyState && callback(xhr.responseText); }, xhr.send(null); }, exports.loadScript = function(path, callback) { var head = dom.getDocumentHead(), s = document.createElement("script"); s.src = path, head.appendChild(s), s.onload = s.onreadystatechange = function(_, isAbort) { !isAbort && s.readyState && "loaded" != s.readyState && "complete" != s.readyState || (s = s.onload = s.onreadystatechange = null, isAbort || callback()); }; }, exports.qualifyURL = function(url) { var a = document.createElement("a"); return a.href = url, a.href; }; }), ace.define("ace/lib/event_emitter", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; var EventEmitter = {}, stopPropagation = function() { this.propagationStopped = !0; }, preventDefault = function() { this.defaultPrevented = !0; }; EventEmitter._emit = EventEmitter._dispatchEvent = function(eventName, e) { this._eventRegistry || (this._eventRegistry = {}), this._defaultHandlers || (this._defaultHandlers = {}); var listeners = this._eventRegistry[eventName] || [], defaultHandler = this._defaultHandlers[eventName]; if (listeners.length || defaultHandler) { "object" == typeof e && e || (e = {}), e.type || (e.type = eventName), e.stopPropagation || (e.stopPropagation = stopPropagation), e.preventDefault || (e.preventDefault = preventDefault), listeners = listeners.slice(); for(var i = 0; i < listeners.length && (listeners[i](e, this), !e.propagationStopped); i++); if (defaultHandler && !e.defaultPrevented) return defaultHandler(e, this); } }, EventEmitter._signal = function(eventName, e) { var listeners = (this._eventRegistry || {})[eventName]; if (listeners) { listeners = listeners.slice(); for(var i = 0; i < listeners.length; i++)listeners[i](e, this); } }, EventEmitter.once = function(eventName, callback) { var _self = this; if (this.on(eventName, function newCallback() { _self.off(eventName, newCallback), callback.apply(null, arguments); }), !callback) return new Promise(function(resolve) { callback = resolve; }); }, EventEmitter.setDefaultHandler = function(eventName, callback) { var handlers = this._defaultHandlers; if (handlers || (handlers = this._defaultHandlers = { _disabled_: {} }), handlers[eventName]) { var old = handlers[eventName], disabled = handlers._disabled_[eventName]; disabled || (handlers._disabled_[eventName] = disabled = []), disabled.push(old); var i = disabled.indexOf(callback); -1 != i && disabled.splice(i, 1); } handlers[eventName] = callback; }, EventEmitter.removeDefaultHandler = function(eventName, callback) { var handlers = this._defaultHandlers; if (handlers) { var disabled = handlers._disabled_[eventName]; if (handlers[eventName] == callback) disabled && this.setDefaultHandler(eventName, disabled.pop()); else if (disabled) { var i = disabled.indexOf(callback); -1 != i && disabled.splice(i, 1); } } }, EventEmitter.on = EventEmitter.addEventListener = function(eventName, callback, capturing) { this._eventRegistry = this._eventRegistry || {}; var listeners = this._eventRegistry[eventName]; return listeners || (listeners = this._eventRegistry[eventName] = []), -1 == listeners.indexOf(callback) && listeners[capturing ? "unshift" : "push"](callback), callback; }, EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(eventName, callback) { this._eventRegistry = this._eventRegistry || {}; var listeners = this._eventRegistry[eventName]; if (listeners) { var index = listeners.indexOf(callback); -1 !== index && listeners.splice(index, 1); } }, EventEmitter.removeAllListeners = function(eventName) { eventName || (this._eventRegistry = this._defaultHandlers = void 0), this._eventRegistry && (this._eventRegistry[eventName] = void 0), this._defaultHandlers && (this._defaultHandlers[eventName] = void 0); }, exports.EventEmitter = EventEmitter; }), ace.define("ace/lib/app_config", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter" ], function(require, exports, module) { var oop = require("./oop"), EventEmitter = require("./event_emitter").EventEmitter, optionsProvider = { setOptions: function(optList) { Object.keys(optList).forEach(function(key) { this.setOption(key, optList[key]); }, this); }, getOptions: function(optionNames) { var result = {}; if (optionNames) Array.isArray(optionNames) || (optionNames = Object.keys(result = optionNames)); else { var options = this.$options; optionNames = Object.keys(options).filter(function(key) { return !options[key].hidden; }); } return optionNames.forEach(function(key) { result[key] = this.getOption(key); }, this), result; }, setOption: function(name, value) { if (this["$" + name] !== value) { var opt = this.$options[name]; if (!opt) return warn('misspelled option "' + name + '"'); if (opt.forwardTo) return this[opt.forwardTo] && this[opt.forwardTo].setOption(name, value); opt.handlesSet || (this["$" + name] = value), opt && opt.set && opt.set.call(this, value); } }, getOption: function(name) { var opt = this.$options[name]; return opt ? opt.forwardTo ? this[opt.forwardTo] && this[opt.forwardTo].getOption(name) : opt && opt.get ? opt.get.call(this) : this["$" + name] : warn('misspelled option "' + name + '"'); } }; function warn(message) { "undefined" != typeof console && console.warn && console.warn.apply(console, arguments); } function reportError(msg, data) { var e = Error(msg); e.data = data, "object" == typeof console && console.error && console.error(e), setTimeout(function() { throw e; }); } var AppConfig = function() { this.$defaultOptions = {}; }; (function() { oop.implement(this, EventEmitter), this.defineOptions = function(obj, path, options) { return obj.$options || (this.$defaultOptions[path] = obj.$options = {}), Object.keys(options).forEach(function(key) { var opt = options[key]; "string" == typeof opt && (opt = { forwardTo: opt }), opt.name || (opt.name = key), obj.$options[opt.name] = opt, "initialValue" in opt && (obj["$" + opt.name] = opt.initialValue); }), oop.implement(obj, optionsProvider), this; }, this.resetOptions = function(obj) { Object.keys(obj.$options).forEach(function(key) { var opt = obj.$options[key]; "value" in opt && obj.setOption(key, opt.value); }); }, this.setDefaultValue = function(path, name, value) { if (!path) { for(path in this.$defaultOptions)if (this.$defaultOptions[path][name]) break; if (!this.$defaultOptions[path][name]) return !1; } var opts = this.$defaultOptions[path] || (this.$defaultOptions[path] = {}); opts[name] && (opts.forwardTo ? this.setDefaultValue(opts.forwardTo, name, value) : opts[name].value = value); }, this.setDefaultValues = function(path, optionHash) { Object.keys(optionHash).forEach(function(key) { this.setDefaultValue(path, key, optionHash[key]); }, this); }, this.warn = warn, this.reportError = reportError; }).call(AppConfig.prototype), exports.AppConfig = AppConfig; }), ace.define("ace/config", [ "require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/lib/net", "ace/lib/dom", "ace/lib/app_config" ], function(require, exports, module) { var lang = require("./lib/lang"); require("./lib/oop"); var net = require("./lib/net"), dom = require("./lib/dom"); module.exports = exports = new (require("./lib/app_config")).AppConfig(); var global = function() { return this || "undefined" != typeof window && window; }(), options = { packaged: !1, workerPath: null, modePath: null, themePath: null, basePath: "", suffix: ".js", $moduleUrls: {}, loadWorkerFromBlob: !0, sharedPopups: !1, useStrictCSP: null }; exports.get = function(key) { if (!options.hasOwnProperty(key)) throw Error("Unknown config key: " + key); return options[key]; }, exports.set = function(key, value) { if (options.hasOwnProperty(key)) options[key] = value; else if (!1 == this.setDefaultValue("", key, value)) throw Error("Unknown config key: " + key); "useStrictCSP" == key && dom.useStrictCSP(value); }, exports.all = function() { return lang.copyObject(options); }, exports.$modes = {}, exports.moduleUrl = function(name, component) { if (options.$moduleUrls[name]) return options.$moduleUrls[name]; var parts = name.split("/"), sep = "snippets" == (component = component || parts[parts.length - 2] || "") ? "/" : "-", base = parts[parts.length - 1]; if ("worker" == component && "-" == sep) { var re = RegExp("^" + component + "[\\-_]|[\\-_]" + component + "$", "g"); base = base.replace(re, ""); } (!base || base == component) && parts.length > 1 && (base = parts[parts.length - 2]); var path = options[component + "Path"]; return null == path ? path = options.basePath : "/" == sep && (component = sep = ""), path && "/" != path.slice(-1) && (path += "/"), path + component + sep + base + this.get("suffix"); }, exports.setModuleUrl = function(name, subst) { return options.$moduleUrls[name] = subst; }, exports.$loading = {}, exports.loadModule = function(moduleName, onLoad) { Array.isArray(moduleName) && (moduleType = moduleName[0], moduleName = moduleName[1]); try { module = require(moduleName); } catch (e) {} if (module && !exports.$loading[moduleName]) return onLoad && onLoad(module); if (exports.$loading[moduleName] || (exports.$loading[moduleName] = []), exports.$loading[moduleName].push(onLoad), !(exports.$loading[moduleName].length > 1)) { var module, moduleType, afterLoad = function() { require([ moduleName ], function(module) { exports._emit("load.module", { name: moduleName, module: module }); var listeners = exports.$loading[moduleName]; exports.$loading[moduleName] = null, listeners.forEach(function(onLoad) { onLoad && onLoad(module); }); }); }; if (!exports.get("packaged")) return afterLoad(); net.loadScript(exports.moduleUrl(moduleName, moduleType), afterLoad), reportErrorIfPathIsNotConfigured(); } }; var reportErrorIfPathIsNotConfigured = function() { options.basePath || options.workerPath || options.modePath || options.themePath || Object.keys(options.$moduleUrls).length || (console.error("Unable to infer path to ace from script src,", "use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes", "or with webpack use ace/webpack-resolver"), reportErrorIfPathIsNotConfigured = function() {}); }; function init(packaged) { if (global && global.document) { options.packaged = packaged || require.packaged || module.packaged || global.define && __webpack_require__.amdD.packaged; for(var scriptOptions = {}, scriptUrl = "", currentScript = document.currentScript || document._currentScript, scripts = (currentScript && currentScript.ownerDocument || document).getElementsByTagName("script"), i = 0; i < scripts.length; i++){ var script = scripts[i], src = script.src || script.getAttribute("src"); if (src) { for(var attributes = script.attributes, j = 0, l = attributes.length; j < l; j++){ var attr = attributes[j]; 0 === attr.name.indexOf("data-ace-") && (scriptOptions[attr.name.replace(/^data-ace-/, "").replace(/-(.)/g, function(m, m1) { return m1.toUpperCase(); })] = attr.value); } var m = src.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/); m && (scriptUrl = m[1]); } } for(var key in scriptUrl && (scriptOptions.base = scriptOptions.base || scriptUrl, scriptOptions.packaged = !0), scriptOptions.basePath = scriptOptions.base, scriptOptions.workerPath = scriptOptions.workerPath || scriptOptions.base, scriptOptions.modePath = scriptOptions.modePath || scriptOptions.base, scriptOptions.themePath = scriptOptions.themePath || scriptOptions.base, delete scriptOptions.base, scriptOptions)void 0 !== scriptOptions[key] && exports.set(key, scriptOptions[key]); } } init(!0), exports.init = init, exports.version = "1.4.13"; }), ace.define("ace/mouse/mouse_handler", [ "require", "exports", "module", "ace/lib/event", "ace/lib/useragent", "ace/mouse/default_handlers", "ace/mouse/default_gutter_handler", "ace/mouse/mouse_event", "ace/mouse/dragdrop_handler", "ace/mouse/touch_handler", "ace/config" ], function(require, exports, module) { "use strict"; var event = require("../lib/event"), useragent = require("../lib/useragent"), DefaultHandlers = require("./default_handlers").DefaultHandlers, DefaultGutterHandler = require("./default_gutter_handler").GutterHandler, MouseEvent = require("./mouse_event").MouseEvent, DragdropHandler = require("./dragdrop_handler").DragdropHandler, addTouchListeners = require("./touch_handler").addTouchListeners, config = require("../config"), MouseHandler = function(editor) { var _self = this; this.editor = editor, new DefaultHandlers(this), new DefaultGutterHandler(this), new DragdropHandler(this); var focusEditor = function(e) { document.hasFocus && document.hasFocus() && (editor.isFocused() || document.activeElement != (editor.textInput && editor.textInput.getElement())) || window.focus(), editor.focus(); }, mouseTarget = editor.renderer.getMouseEventTarget(); event.addListener(mouseTarget, "click", this.onMouseEvent.bind(this, "click"), editor), event.addListener(mouseTarget, "mousemove", this.onMouseMove.bind(this, "mousemove"), editor), event.addMultiMouseDownListener([ mouseTarget, editor.renderer.scrollBarV && editor.renderer.scrollBarV.inner, editor.renderer.scrollBarH && editor.renderer.scrollBarH.inner, editor.textInput && editor.textInput.getElement() ].filter(Boolean), [ 400, 300, 250 ], this, "onMouseEvent", editor), event.addMouseWheelListener(editor.container, this.onMouseWheel.bind(this, "mousewheel"), editor), addTouchListeners(editor.container, editor); var gutterEl = editor.renderer.$gutter; event.addListener(gutterEl, "mousedown", this.onMouseEvent.bind(this, "guttermousedown"), editor), event.addListener(gutterEl, "click", this.onMouseEvent.bind(this, "gutterclick"), editor), event.addListener(gutterEl, "dblclick", this.onMouseEvent.bind(this, "gutterdblclick"), editor), event.addListener(gutterEl, "mousemove", this.onMouseEvent.bind(this, "guttermousemove"), editor), event.addListener(mouseTarget, "mousedown", focusEditor, editor), event.addListener(gutterEl, "mousedown", focusEditor, editor), useragent.isIE && editor.renderer.scrollBarV && (event.addListener(editor.renderer.scrollBarV.element, "mousedown", focusEditor, editor), event.addListener(editor.renderer.scrollBarH.element, "mousedown", focusEditor, editor)), editor.on("mousemove", function(e) { if (!_self.state && !_self.$dragDelay && _self.$dragEnabled) { var character = editor.renderer.screenToTextCoordinates(e.x, e.y), range = editor.session.selection.getRange(), renderer = editor.renderer; !range.isEmpty() && range.insideStart(character.row, character.column) ? renderer.setCursorStyle("default") : renderer.setCursorStyle(""); } }, editor); }; (function() { this.onMouseEvent = function(name, e) { this.editor.session && this.editor._emit(name, new MouseEvent(e, this.editor)); }, this.onMouseMove = function(name, e) { var listeners = this.editor._eventRegistry && this.editor._eventRegistry.mousemove; listeners && listeners.length && this.editor._emit(name, new MouseEvent(e, this.editor)); }, this.onMouseWheel = function(name, e) { var mouseEvent = new MouseEvent(e, this.editor); mouseEvent.speed = 2 * this.$scrollSpeed, mouseEvent.wheelX = e.wheelX, mouseEvent.wheelY = e.wheelY, this.editor._emit(name, mouseEvent); }, this.setState = function(state) { this.state = state; }, this.captureMouse = function(ev, mouseMoveHandler) { this.x = ev.x, this.y = ev.y, this.isMousePressed = !0; var editor = this.editor, renderer = this.editor.renderer; renderer.$isMousePressed = !0; var self1 = this, onMouseMove = function(e) { if (e) { if (useragent.isWebKit && !e.which && self1.releaseMouse) return self1.releaseMouse(); self1.x = e.clientX, self1.y = e.clientY, mouseMoveHandler && mouseMoveHandler(e), self1.mouseEvent = new MouseEvent(e, self1.editor), self1.$mouseMoved = !0; } }, onCaptureEnd = function(e) { editor.off("beforeEndOperation", onOperationEnd), clearInterval(timerId), editor.session && onCaptureInterval(), self1[self1.state + "End"] && self1[self1.state + "End"](e), self1.state = "", self1.isMousePressed = renderer.$isMousePressed = !1, renderer.$keepTextAreaAtCursor && renderer.$moveTextAreaToCursor(), self1.$onCaptureMouseMove = self1.releaseMouse = null, e && self1.onMouseEvent("mouseup", e), editor.endOperation(); }, onCaptureInterval = function() { self1[self1.state] && self1[self1.state](), self1.$mouseMoved = !1; }; if (useragent.isOldIE && "dblclick" == ev.domEvent.type) return setTimeout(function() { onCaptureEnd(ev); }); var onOperationEnd = function(e) { self1.releaseMouse && editor.curOp.command.name && editor.curOp.selectionChanged && (self1[self1.state + "End"] && self1[self1.state + "End"](), self1.state = "", self1.releaseMouse()); }; editor.on("beforeEndOperation", onOperationEnd), editor.startOperation({ command: { name: "mouse" } }), self1.$onCaptureMouseMove = onMouseMove, self1.releaseMouse = event.capture(this.editor.container, onMouseMove, onCaptureEnd); var timerId = setInterval(onCaptureInterval, 20); }, this.releaseMouse = null, this.cancelContextMenu = function() { var stop = (function(e) { (!e || !e.domEvent || "contextmenu" == e.domEvent.type) && (this.editor.off("nativecontextmenu", stop), e && e.domEvent && event.stopEvent(e.domEvent)); }).bind(this); setTimeout(stop, 10), this.editor.on("nativecontextmenu", stop); }, this.destroy = function() { this.releaseMouse && this.releaseMouse(); }; }).call(MouseHandler.prototype), config.defineOptions(MouseHandler.prototype, "mouseHandler", { scrollSpeed: { initialValue: 2 }, dragDelay: { initialValue: 150 * !!useragent.isMac }, dragEnabled: { initialValue: !0 }, focusTimeout: { initialValue: 0 }, tooltipFollowsMouse: { initialValue: !0 } }), exports.MouseHandler = MouseHandler; }), ace.define("ace/mouse/fold_handler", [ "require", "exports", "module", "ace/lib/dom" ], function(require, exports, module) { "use strict"; var dom = require("../lib/dom"); exports.FoldHandler = function(editor) { editor.on("click", function(e) { var position = e.getDocumentPosition(), session = editor.session, fold = session.getFoldAt(position.row, position.column, 1); fold && (e.getAccelKey() ? session.removeFold(fold) : session.expandFold(fold), e.stop()); var target = e.domEvent && e.domEvent.target; target && dom.hasCssClass(target, "ace_inline_button") && dom.hasCssClass(target, "ace_toggle_wrap") && (session.setOption("wrap", !session.getUseWrapMode()), editor.renderer.scrollCursorIntoView()); }), editor.on("gutterclick", function(e) { if ("foldWidgets" == editor.renderer.$gutterLayer.getRegion(e)) { var row = e.getDocumentPosition().row, session = editor.session; session.foldWidgets && session.foldWidgets[row] && editor.session.onFoldWidgetClick(row, e), editor.isFocused() || editor.focus(), e.stop(); } }), editor.on("gutterdblclick", function(e) { if ("foldWidgets" == editor.renderer.$gutterLayer.getRegion(e)) { var row = e.getDocumentPosition().row, session = editor.session, data = session.getParentFoldRangeData(row, !0), range = data.range || data.firstRange; if (range) { row = range.start.row; var fold = session.getFoldAt(row, session.getLine(row).length, 1); fold ? session.removeFold(fold) : (session.addFold("...", range), editor.renderer.scrollCursorIntoView({ row: range.start.row, column: 0 })); } e.stop(); } }); }; }), ace.define("ace/keyboard/keybinding", [ "require", "exports", "module", "ace/lib/keys", "ace/lib/event" ], function(require, exports, module) { "use strict"; var keyUtil = require("../lib/keys"), event = require("../lib/event"), KeyBinding = function(editor) { this.$editor = editor, this.$data = { editor: editor }, this.$handlers = [], this.setDefaultHandler(editor.commands); }; (function() { this.setDefaultHandler = function(kb) { this.removeKeyboardHandler(this.$defaultHandler), this.$defaultHandler = kb, this.addKeyboardHandler(kb, 0); }, this.setKeyboardHandler = function(kb) { var h = this.$handlers; if (h[h.length - 1] != kb) { for(; h[h.length - 1] && h[h.length - 1] != this.$defaultHandler;)this.removeKeyboardHandler(h[h.length - 1]); this.addKeyboardHandler(kb, 1); } }, this.addKeyboardHandler = function(kb, pos) { if (kb) { "function" != typeof kb || kb.handleKeyboard || (kb.handleKeyboard = kb); var i = this.$handlers.indexOf(kb); -1 != i && this.$handlers.splice(i, 1), void 0 == pos ? this.$handlers.push(kb) : this.$handlers.splice(pos, 0, kb), -1 == i && kb.attach && kb.attach(this.$editor); } }, this.removeKeyboardHandler = function(kb) { var i = this.$handlers.indexOf(kb); return -1 != i && (this.$handlers.splice(i, 1), kb.detach && kb.detach(this.$editor), !0); }, this.getKeyboardHandler = function() { return this.$handlers[this.$handlers.length - 1]; }, this.getStatusText = function() { var data = this.$data, editor = data.editor; return this.$handlers.map(function(h) { return h.getStatusText && h.getStatusText(editor, data) || ""; }).filter(Boolean).join(" "); }, this.$callKeyboardHandlers = function(hashId, keyString, keyCode, e) { for(var toExecute, success = !1, commands = this.$editor.commands, i = this.$handlers.length; i-- && (!(toExecute = this.$handlers[i].handleKeyboard(this.$data, hashId, keyString, keyCode, e)) || !toExecute.command || ((success = "null" == toExecute.command || commands.exec(toExecute.command, this.$editor, toExecute.args, e)) && e && -1 != hashId && !0 != toExecute.passEvent && !0 != toExecute.command.passEvent && event.stopEvent(e), !success));); return success || -1 != hashId || (toExecute = { command: "insertstring" }, success = commands.exec("insertstring", this.$editor, keyString)), success && this.$editor._signal && this.$editor._signal("keyboardActivity", toExecute), success; }, this.onCommandKey = function(e, hashId, keyCode) { var keyString = keyUtil.keyCodeToString(keyCode); return this.$callKeyboardHandlers(hashId, keyString, keyCode, e); }, this.onTextInput = function(text) { return this.$callKeyboardHandlers(-1, text); }; }).call(KeyBinding.prototype), exports.KeyBinding = KeyBinding; }), ace.define("ace/lib/bidiutil", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; var dir = 0, hiLevel = 0, lastArabic = !1, hasUBAT_B = !1, hasUBAT_S = !1, impTab_LTR = [ [ 0, 3, 0, 1, 0, 0, 0 ], [ 0, 3, 0, 1, 2, 2, 0 ], [ 0, 3, 0, 0x11, 2, 0, 1 ], [ 0, 3, 5, 5, 4, 1, 0 ], [ 0, 3, 0x15, 0x15, 4, 0, 1 ], [ 0, 3, 5, 5, 4, 2, 0 ] ], impTab_RTL = [ [ 2, 0, 1, 1, 0, 1, 0 ], [ 2, 0, 1, 1, 0, 2, 0 ], [ 2, 0, 2, 1, 3, 2, 0 ], [ 2, 0, 2, 0x21, 3, 1, 1 ] ], UnicodeTBL00 = [ 18, 18, 18, 18, 18, 18, 18, 18, 18, 6, 5, 6, 8, 5, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 5, 5, 5, 6, 8, 4, 4, 11, 11, 11, 4, 4, 4, 4, 4, 10, 9, 10, 9, 9, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 9, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 18, 18, 18, 18, 18, 18, 5, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 9, 4, 11, 11, 11, 11, 4, 4, 4, 4, 0, 4, 4, 18, 4, 4, 11, 11, 2, 2, 4, 0, 4, 4, 4, 2, 0, 4, 4, 4, 4, 4 ], UnicodeTBL20 = [ 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 18, 18, 18, 0, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 5, 13, 14, 15, 16, 17, 9, 11, 11, 11, 11, 11, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 9, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8 ]; function _invertLevel(lev, levels, _array) { if (!(hiLevel < lev)) { if (1 == lev && 1 == dir && !hasUBAT_B) { _array.reverse(); return; } for(var end, lo, hi, tmp, len = _array.length, start = 0; start < len;){ if (levels[start] >= lev) { for(end = start + 1; end < len && levels[end] >= lev;)end++; for(lo = start, hi = end - 1; lo < hi; lo++, hi--)tmp = _array[lo], _array[lo] = _array[hi], _array[hi] = tmp; start = end; } start++; } } } function _getCharacterType(ch) { var uc = ch.charCodeAt(0), hi = uc >> 8; return 0 == hi ? uc > 0x00bf ? 0 : UnicodeTBL00[uc] : 5 == hi ? +!!/[\u0591-\u05f4]/.test(ch) : 6 == hi ? /[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ch) ? 12 : /[\u0660-\u0669\u066b-\u066c]/.test(ch) ? 3 : 0x066a == uc ? 11 : /[\u06f0-\u06f9]/.test(ch) ? 2 : 7 : 0x20 == hi && uc <= 0x205f ? UnicodeTBL20[0xff & uc] : 0xfe == hi && uc >= 0xfe70 ? 7 : 4; } exports.L = 0, exports.R = 1, exports.EN = 2, exports.ON_R = 3, exports.AN = 4, exports.R_H = 5, exports.B = 6, exports.RLE = 7, exports.DOT = "\xB7", exports.doBidiReorder = function(text, textCharTypes, isRtl) { if (text.length < 2) return {}; var chars = text.split(""), logicalFromVisual = Array(chars.length), bidiLevels = Array(chars.length), levels = []; dir = +!!isRtl, function(chars, levels, len, charTypes) { var impTab = dir ? impTab_RTL : impTab_LTR, prevState = null, newClass = null, newLevel = null, newState = 0, action = null, condPos = -1, i = null, ix = null, classes = []; if (!charTypes) for(i = 0, charTypes = []; i < len; i++)charTypes[i] = _getCharacterType(chars[i]); for(ix = 0, hiLevel = dir, lastArabic = !1, hasUBAT_B = !1, hasUBAT_S = !1; ix < len; ix++){ if (prevState = newState, classes[ix] = newClass = function(chars, types, classes, ix) { var wType, nType, len, i, cType = types[ix]; switch(cType){ case 0: case 1: lastArabic = !1; case 4: case 3: return cType; case 2: return lastArabic ? 3 : 2; case 7: return lastArabic = !0, 1; case 8: return 4; case 9: if (ix < 1 || ix + 1 >= types.length || 2 != (wType = classes[ix - 1]) && 3 != wType || 2 != (nType = types[ix + 1]) && 3 != nType) return 4; return lastArabic && (nType = 3), nType == wType ? nType : 4; case 10: if (2 == (wType = ix > 0 ? classes[ix - 1] : 5) && ix + 1 < types.length && 2 == types[ix + 1]) return 2; return 4; case 11: if (ix > 0 && 2 == classes[ix - 1]) return 2; if (lastArabic) return 4; for(i = ix + 1, len = types.length; i < len && 11 == types[i];)i++; if (i < len && 2 == types[i]) return 2; return 4; case 12: for(len = types.length, i = ix + 1; i < len && 12 == types[i];)i++; if (i < len) { var c = chars[ix]; if (wType = types[i], (c >= 0x0591 && c <= 0x08ff || 0xfb1e == c) && (1 == wType || 7 == wType)) return 1; } if (ix < 1 || 5 == (wType = types[ix - 1])) return 4; return classes[ix - 1]; case 5: return lastArabic = !1, hasUBAT_B = !0, dir; case 6: return hasUBAT_S = !0, 4; case 13: case 14: case 16: case 17: case 15: lastArabic = !1; case 18: return 4; } }(chars, charTypes, classes, ix), action = 0xf0 & (newState = impTab[prevState][newClass]), newState &= 0x0f, levels[ix] = newLevel = impTab[newState][5], action > 0) { if (0x10 == action) { for(i = condPos; i < ix; i++)levels[i] = 1; condPos = -1; } else condPos = -1; } if (impTab[newState][6]) -1 == condPos && (condPos = ix); else if (condPos > -1) { for(i = condPos; i < ix; i++)levels[i] = newLevel; condPos = -1; } 5 == charTypes[ix] && (levels[ix] = 0), hiLevel |= newLevel; } if (hasUBAT_S) { for(i = 0; i < len; i++)if (6 == charTypes[i]) { levels[i] = dir; for(var j = i - 1; j >= 0; j--)if (8 == charTypes[j]) levels[j] = dir; else break; } } }(chars, levels, chars.length, textCharTypes); for(var i = 0; i < logicalFromVisual.length; logicalFromVisual[i] = i, i++); _invertLevel(2, levels, logicalFromVisual), _invertLevel(1, levels, logicalFromVisual); for(var i = 0; i < logicalFromVisual.length - 1; i++)//fix levels to reflect character width 3 === textCharTypes[i] ? levels[i] = exports.AN : 1 === levels[i] && (textCharTypes[i] > 7 && textCharTypes[i] < 13 || 4 === textCharTypes[i] || 18 === textCharTypes[i]) ? levels[i] = exports.ON_R : i > 0 && "\u0644" === chars[i - 1] && /\u0622|\u0623|\u0625|\u0627/.test(chars[i]) && (levels[i - 1] = levels[i] = exports.R_H, i++); chars[chars.length - 1] === exports.DOT && (levels[chars.length - 1] = exports.B), "\u202B" === chars[0] && (levels[0] = exports.RLE); for(var i = 0; i < logicalFromVisual.length; i++)bidiLevels[i] = levels[logicalFromVisual[i]]; return { logicalFromVisual: logicalFromVisual, bidiLevels: bidiLevels }; }, exports.hasBidiCharacters = function(text, textCharTypes) { for(var ret = !1, i = 0; i < text.length; i++)textCharTypes[i] = _getCharacterType(text.charAt(i)), ret || 1 != textCharTypes[i] && 7 != textCharTypes[i] && 3 != textCharTypes[i] || (ret = !0); return ret; }, exports.getVisualFromLogicalIdx = function(logIdx, rowMap) { for(var i = 0; i < rowMap.logicalFromVisual.length; i++)if (rowMap.logicalFromVisual[i] == logIdx) return i; return 0; }; }), ace.define("ace/bidihandler", [ "require", "exports", "module", "ace/lib/bidiutil", "ace/lib/lang" ], function(require, exports, module) { "use strict"; var bidiUtil = require("./lib/bidiutil"), lang = require("./lib/lang"), bidiRE = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/, BidiHandler = function(session) { this.session = session, this.bidiMap = {}, this.currentRow = null, this.bidiUtil = bidiUtil, this.charWidths = [], this.EOL = "\xAC", this.showInvisibles = !0, this.isRtlDir = !1, this.$isRtl = !1, this.line = "", this.wrapIndent = 0, this.EOF = "\xB6", this.RLE = "\u202B", this.contentWidth = 0, this.fontMetrics = null, this.rtlLineOffset = 0, this.wrapOffset = 0, this.isMoveLeftOperation = !1, this.seenBidi = bidiRE.test(session.getValue()); }; (function() { this.isBidiRow = function(screenRow, docRow, splitIndex) { return !!this.seenBidi && (screenRow !== this.currentRow && (this.currentRow = screenRow, this.updateRowLine(docRow, splitIndex), this.updateBidiMap()), this.bidiMap.bidiLevels); }, this.onChange = function(delta) { this.seenBidi ? this.currentRow = null : "insert" == delta.action && bidiRE.test(delta.lines.join("\n")) && (this.seenBidi = !0, this.currentRow = null); }, this.getDocumentRow = function() { var docRow = 0, rowCache = this.session.$screenRowCache; if (rowCache.length) { var index = this.session.$getRowCacheIndex(rowCache, this.currentRow); index >= 0 && (docRow = this.session.$docRowCache[index]); } return docRow; }, this.getSplitIndex = function() { var splitIndex = 0, rowCache = this.session.$screenRowCache; if (rowCache.length) for(var currentIndex, prevIndex = this.session.$getRowCacheIndex(rowCache, this.currentRow); this.currentRow - splitIndex > 0 && (currentIndex = this.session.$getRowCacheIndex(rowCache, this.currentRow - splitIndex - 1)) === prevIndex;)prevIndex = currentIndex, splitIndex++; else splitIndex = this.currentRow; return splitIndex; }, this.updateRowLine = function(docRow, splitIndex) { void 0 === docRow && (docRow = this.getDocumentRow()); var endOfLine = docRow === this.session.getLength() - 1 ? this.EOF : this.EOL; if (this.wrapIndent = 0, this.line = this.session.getLine(docRow), this.isRtlDir = this.$isRtl || this.line.charAt(0) === this.RLE, this.session.$useWrapMode) { var splits = this.session.$wrapData[docRow]; splits && (void 0 === splitIndex && (splitIndex = this.getSplitIndex()), splitIndex > 0 && splits.length ? (this.wrapIndent = splits.indent, this.wrapOffset = this.wrapIndent * this.charWidths[bidiUtil.L], this.line = splitIndex < splits.length ? this.line.substring(splits[splitIndex - 1], splits[splitIndex]) : this.line.substring(splits[splits.length - 1])) : this.line = this.line.substring(0, splits[splitIndex])), splitIndex == splits.length && (this.line += this.showInvisibles ? endOfLine : bidiUtil.DOT); } else this.line += this.showInvisibles ? endOfLine : bidiUtil.DOT; var size, session = this.session, shift = 0; this.line = this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g, function(ch, i) { return "\t" === ch || session.isFullWidth(ch.charCodeAt(0)) ? (size = "\t" === ch ? session.getScreenTabSize(i + shift) : 2, shift += size - 1, lang.stringRepeat(bidiUtil.DOT, size)) : ch; }), this.isRtlDir && (this.fontMetrics.$main.textContent = this.line.charAt(this.line.length - 1) == bidiUtil.DOT ? this.line.substr(0, this.line.length - 1) : this.line, this.rtlLineOffset = this.contentWidth - this.fontMetrics.$main.getBoundingClientRect().width); }, this.updateBidiMap = function() { var textCharTypes = []; bidiUtil.hasBidiCharacters(this.line, textCharTypes) || this.isRtlDir ? this.bidiMap = bidiUtil.doBidiReorder(this.line, textCharTypes, this.isRtlDir) : this.bidiMap = {}; }, this.markAsDirty = function() { this.currentRow = null; }, this.updateCharacterWidths = function(fontMetrics) { if (this.characterWidth !== fontMetrics.$characterSize.width) { this.fontMetrics = fontMetrics; var characterWidth = this.characterWidth = fontMetrics.$characterSize.width, bidiCharWidth = fontMetrics.$measureCharWidth("\u05d4"); this.charWidths[bidiUtil.L] = this.charWidths[bidiUtil.EN] = this.charWidths[bidiUtil.ON_R] = characterWidth, this.charWidths[bidiUtil.R] = this.charWidths[bidiUtil.AN] = bidiCharWidth, this.charWidths[bidiUtil.R_H] = 0.45 * bidiCharWidth, this.charWidths[bidiUtil.B] = this.charWidths[bidiUtil.RLE] = 0, this.currentRow = null; } }, this.setShowInvisibles = function(showInvisibles) { this.showInvisibles = showInvisibles, this.currentRow = null; }, this.setEolChar = function(eolChar) { this.EOL = eolChar; }, this.setContentWidth = function(width) { this.contentWidth = width; }, this.isRtlLine = function(row) { return !!this.$isRtl || (void 0 != row ? this.session.getLine(row).charAt(0) == this.RLE : this.isRtlDir); }, this.setRtlDirection = function(editor, isRtlDir) { for(var cursor = editor.getCursorPosition(), row = editor.selection.getSelectionAnchor().row; row <= cursor.row; row++)isRtlDir || editor.session.getLine(row).charAt(0) !== editor.session.$bidiHandler.RLE ? isRtlDir && editor.session.getLine(row).charAt(0) !== editor.session.$bidiHandler.RLE && editor.session.doc.insert({ column: 0, row: row }, editor.session.$bidiHandler.RLE) : editor.session.doc.removeInLine(row, 0, 1); }, this.getPosLeft = function(col) { col -= this.wrapIndent; var leftBoundary = +(this.line.charAt(0) === this.RLE), logicalIdx = col > leftBoundary ? this.session.getOverwrite() ? col : col - 1 : leftBoundary, visualIdx = bidiUtil.getVisualFromLogicalIdx(logicalIdx, this.bidiMap), levels = this.bidiMap.bidiLevels, left = 0; !this.session.getOverwrite() && col <= leftBoundary && levels[visualIdx] % 2 != 0 && visualIdx++; for(var i = 0; i < visualIdx; i++)left += this.charWidths[levels[i]]; return !this.session.getOverwrite() && col > leftBoundary && levels[visualIdx] % 2 == 0 && (left += this.charWidths[levels[visualIdx]]), this.wrapIndent && (left += this.isRtlDir ? -1 * this.wrapOffset : this.wrapOffset), this.isRtlDir && (left += this.rtlLineOffset), left; }, this.getSelections = function(startCol, endCol) { var level, map = this.bidiMap, levels = map.bidiLevels, selections = [], offset = 0, selColMin = Math.min(startCol, endCol) - this.wrapIndent, selColMax = Math.max(startCol, endCol) - this.wrapIndent, isSelected = !1, isSelectedPrev = !1, selectionStart = 0; this.wrapIndent && (offset += this.isRtlDir ? -1 * this.wrapOffset : this.wrapOffset); for(var logIdx, visIdx = 0; visIdx < levels.length; visIdx++)logIdx = map.logicalFromVisual[visIdx], level = levels[visIdx], (isSelected = logIdx >= selColMin && logIdx < selColMax) && !isSelectedPrev ? selectionStart = offset : !isSelected && isSelectedPrev && selections.push({ left: selectionStart, width: offset - selectionStart }), offset += this.charWidths[level], isSelectedPrev = isSelected; if (isSelected && visIdx === levels.length && selections.push({ left: selectionStart, width: offset - selectionStart }), this.isRtlDir) for(var i = 0; i < selections.length; i++)selections[i].left += this.rtlLineOffset; return selections; }, this.offsetToCol = function(posX) { this.isRtlDir && (posX -= this.rtlLineOffset); var logicalIdx = 0, posX = Math.max(posX, 0), offset = 0, visualIdx = 0, levels = this.bidiMap.bidiLevels, charWidth = this.charWidths[levels[visualIdx]]; for(this.wrapIndent && (posX -= this.isRtlDir ? -1 * this.wrapOffset : this.wrapOffset); posX > offset + charWidth / 2;){ if (offset += charWidth, visualIdx === levels.length - 1) { charWidth = 0; break; } charWidth = this.charWidths[levels[++visualIdx]]; } return visualIdx > 0 && levels[visualIdx - 1] % 2 != 0 && levels[visualIdx] % 2 == 0 ? (posX < offset && visualIdx--, logicalIdx = this.bidiMap.logicalFromVisual[visualIdx]) : visualIdx > 0 && levels[visualIdx - 1] % 2 == 0 && levels[visualIdx] % 2 != 0 ? logicalIdx = 1 + (posX > offset ? this.bidiMap.logicalFromVisual[visualIdx] : this.bidiMap.logicalFromVisual[visualIdx - 1]) : this.isRtlDir && visualIdx === levels.length - 1 && 0 === charWidth && levels[visualIdx - 1] % 2 == 0 || !this.isRtlDir && 0 === visualIdx && levels[visualIdx] % 2 != 0 ? logicalIdx = 1 + this.bidiMap.logicalFromVisual[visualIdx] : (visualIdx > 0 && levels[visualIdx - 1] % 2 != 0 && 0 !== charWidth && visualIdx--, logicalIdx = this.bidiMap.logicalFromVisual[visualIdx]), 0 === logicalIdx && this.isRtlDir && logicalIdx++, logicalIdx + this.wrapIndent; }; }).call(BidiHandler.prototype), exports.BidiHandler = BidiHandler; }), ace.define("ace/selection", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/lang", "ace/lib/event_emitter", "ace/range" ], function(require, exports, module) { "use strict"; var oop = require("./lib/oop"), lang = require("./lib/lang"), EventEmitter = require("./lib/event_emitter").EventEmitter, Range = require("./range").Range, Selection = function(session) { this.session = session, this.doc = session.getDocument(), this.clearSelection(), this.cursor = this.lead = this.doc.createAnchor(0, 0), this.anchor = this.doc.createAnchor(0, 0), this.$silent = !1; var self1 = this; this.cursor.on("change", function(e) { self1.$cursorChanged = !0, self1.$silent || self1._emit("changeCursor"), self1.$isEmpty || self1.$silent || self1._emit("changeSelection"), self1.$keepDesiredColumnOnChange || e.old.column == e.value.column || (self1.$desiredColumn = null); }), this.anchor.on("change", function() { self1.$anchorChanged = !0, self1.$isEmpty || self1.$silent || self1._emit("changeSelection"); }); }; (function() { oop.implement(this, EventEmitter), this.isEmpty = function() { return this.$isEmpty || this.anchor.row == this.lead.row && this.anchor.column == this.lead.column; }, this.isMultiLine = function() { return !this.$isEmpty && this.anchor.row != this.cursor.row; }, this.getCursor = function() { return this.lead.getPosition(); }, this.setSelectionAnchor = function(row, column) { this.$isEmpty = !1, this.anchor.setPosition(row, column); }, this.getAnchor = this.getSelectionAnchor = function() { return this.$isEmpty ? this.getSelectionLead() : this.anchor.getPosition(); }, this.getSelectionLead = function() { return this.lead.getPosition(); }, this.isBackwards = function() { var anchor = this.anchor, lead = this.lead; return anchor.row > lead.row || anchor.row == lead.row && anchor.column > lead.column; }, this.getRange = function() { var anchor = this.anchor, lead = this.lead; return this.$isEmpty ? Range.fromPoints(lead, lead) : this.isBackwards() ? Range.fromPoints(lead, anchor) : Range.fromPoints(anchor, lead); }, this.clearSelection = function() { this.$isEmpty || (this.$isEmpty = !0, this._emit("changeSelection")); }, this.selectAll = function() { this.$setSelection(0, 0, Number.MAX_VALUE, Number.MAX_VALUE); }, this.setRange = this.setSelectionRange = function(range, reverse) { var start = reverse ? range.end : range.start, end = reverse ? range.start : range.end; this.$setSelection(start.row, start.column, end.row, end.column); }, this.$setSelection = function(anchorRow, anchorColumn, cursorRow, cursorColumn) { if (!this.$silent) { var wasEmpty = this.$isEmpty, wasMultiselect = this.inMultiSelectMode; this.$silent = !0, this.$cursorChanged = this.$anchorChanged = !1, this.anchor.setPosition(anchorRow, anchorColumn), this.cursor.setPosition(cursorRow, cursorColumn), this.$isEmpty = !Range.comparePoints(this.anchor, this.cursor), this.$silent = !1, this.$cursorChanged && this._emit("changeCursor"), (this.$cursorChanged || this.$anchorChanged || wasEmpty != this.$isEmpty || wasMultiselect) && this._emit("changeSelection"); } }, this.$moveSelection = function(mover) { var lead = this.lead; this.$isEmpty && this.setSelectionAnchor(lead.row, lead.column), mover.call(this); }, this.selectTo = function(row, column) { this.$moveSelection(function() { this.moveCursorTo(row, column); }); }, this.selectToPosition = function(pos) { this.$moveSelection(function() { this.moveCursorToPosition(pos); }); }, this.moveTo = function(row, column) { this.clearSelection(), this.moveCursorTo(row, column); }, this.moveToPosition = function(pos) { this.clearSelection(), this.moveCursorToPosition(pos); }, this.selectUp = function() { this.$moveSelection(this.moveCursorUp); }, this.selectDown = function() { this.$moveSelection(this.moveCursorDown); }, this.selectRight = function() { this.$moveSelection(this.moveCursorRight); }, this.selectLeft = function() { this.$moveSelection(this.moveCursorLeft); }, this.selectLineStart = function() { this.$moveSelection(this.moveCursorLineStart); }, this.selectLineEnd = function() { this.$moveSelection(this.moveCursorLineEnd); }, this.selectFileEnd = function() { this.$moveSelection(this.moveCursorFileEnd); }, this.selectFileStart = function() { this.$moveSelection(this.moveCursorFileStart); }, this.selectWordRight = function() { this.$moveSelection(this.moveCursorWordRight); }, this.selectWordLeft = function() { this.$moveSelection(this.moveCursorWordLeft); }, this.getWordRange = function(row, column) { if (void 0 === column) { var cursor = row || this.lead; row = cursor.row, column = cursor.column; } return this.session.getWordRange(row, column); }, this.selectWord = function() { this.setSelectionRange(this.getWordRange()); }, this.selectAWord = function() { var cursor = this.getCursor(), range = this.session.getAWordRange(cursor.row, cursor.column); this.setSelectionRange(range); }, this.getLineRange = function(row, excludeLastChar) { var rowEnd, rowStart = "number" == typeof row ? row : this.lead.row, foldLine = this.session.getFoldLine(rowStart); return (foldLine ? (rowStart = foldLine.start.row, rowEnd = foldLine.end.row) : rowEnd = rowStart, !0 === excludeLastChar) ? new Range(rowStart, 0, rowEnd, this.session.getLine(rowEnd).length) : new Range(rowStart, 0, rowEnd + 1, 0); }, this.selectLine = function() { this.setSelectionRange(this.getLineRange()); }, this.moveCursorUp = function() { this.moveCursorBy(-1, 0); }, this.moveCursorDown = function() { this.moveCursorBy(1, 0); }, this.wouldMoveIntoSoftTab = function(cursor, tabSize, direction) { var start = cursor.column, end = cursor.column + tabSize; return direction < 0 && (start = cursor.column - tabSize, end = cursor.column), this.session.isTabStop(cursor) && this.doc.getLine(cursor.row).slice(start, end).split(" ").length - 1 == tabSize; }, this.moveCursorLeft = function() { var fold, cursor = this.lead.getPosition(); if (fold = this.session.getFoldAt(cursor.row, cursor.column, -1)) this.moveCursorTo(fold.start.row, fold.start.column); else if (0 === cursor.column) cursor.row > 0 && this.moveCursorTo(cursor.row - 1, this.doc.getLine(cursor.row - 1).length); else { var tabSize = this.session.getTabSize(); this.wouldMoveIntoSoftTab(cursor, tabSize, -1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, -tabSize) : this.moveCursorBy(0, -1); } }, this.moveCursorRight = function() { var fold, cursor = this.lead.getPosition(); if (fold = this.session.getFoldAt(cursor.row, cursor.column, 1)) this.moveCursorTo(fold.end.row, fold.end.column); else if (this.lead.column == this.doc.getLine(this.lead.row).length) this.lead.row < this.doc.getLength() - 1 && this.moveCursorTo(this.lead.row + 1, 0); else { var tabSize = this.session.getTabSize(), cursor = this.lead; this.wouldMoveIntoSoftTab(cursor, tabSize, 1) && !this.session.getNavigateWithinSoftTabs() ? this.moveCursorBy(0, tabSize) : this.moveCursorBy(0, 1); } }, this.moveCursorLineStart = function() { var row = this.lead.row, column = this.lead.column, screenRow = this.session.documentToScreenRow(row, column), firstColumnPosition = this.session.screenToDocumentPosition(screenRow, 0), leadingSpace = this.session.getDisplayLine(row, null, firstColumnPosition.row, firstColumnPosition.column).match(/^\s*/); leadingSpace[0].length == column || this.session.$useEmacsStyleLineStart || (firstColumnPosition.column += leadingSpace[0].length), this.moveCursorToPosition(firstColumnPosition); }, this.moveCursorLineEnd = function() { var lead = this.lead, lineEnd = this.session.getDocumentLastRowColumnPosition(lead.row, lead.column); if (this.lead.column == lineEnd.column) { var line = this.session.getLine(lineEnd.row); if (lineEnd.column == line.length) { var textEnd = line.search(/\s+$/); textEnd > 0 && (lineEnd.column = textEnd); } } this.moveCursorTo(lineEnd.row, lineEnd.column); }, this.moveCursorFileEnd = function() { var row = this.doc.getLength() - 1, column = this.doc.getLine(row).length; this.moveCursorTo(row, column); }, this.moveCursorFileStart = function() { this.moveCursorTo(0, 0); }, this.moveCursorLongWordRight = function() { var row = this.lead.row, column = this.lead.column, line = this.doc.getLine(row), rightOfCursor = line.substring(column); this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0; var fold = this.session.getFoldAt(row, column, 1); if (fold) { this.moveCursorTo(fold.end.row, fold.end.column); return; } if (this.session.nonTokenRe.exec(rightOfCursor) && (column += this.session.nonTokenRe.lastIndex, this.session.nonTokenRe.lastIndex = 0, rightOfCursor = line.substring(column)), column >= line.length) { this.moveCursorTo(row, line.length), this.moveCursorRight(), row < this.doc.getLength() - 1 && this.moveCursorWordRight(); return; } this.session.tokenRe.exec(rightOfCursor) && (column += this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(row, column); }, this.moveCursorLongWordLeft = function() { var fold, row = this.lead.row, column = this.lead.column; if (fold = this.session.getFoldAt(row, column, -1)) { this.moveCursorTo(fold.start.row, fold.start.column); return; } var str = this.session.getFoldStringAt(row, column, -1); null == str && (str = this.doc.getLine(row).substring(0, column)); var leftOfCursor = lang.stringReverse(str); if (this.session.nonTokenRe.lastIndex = 0, this.session.tokenRe.lastIndex = 0, this.session.nonTokenRe.exec(leftOfCursor) && (column -= this.session.nonTokenRe.lastIndex, leftOfCursor = leftOfCursor.slice(this.session.nonTokenRe.lastIndex), this.session.nonTokenRe.lastIndex = 0), column <= 0) { this.moveCursorTo(row, 0), this.moveCursorLeft(), row > 0 && this.moveCursorWordLeft(); return; } this.session.tokenRe.exec(leftOfCursor) && (column -= this.session.tokenRe.lastIndex, this.session.tokenRe.lastIndex = 0), this.moveCursorTo(row, column); }, this.$shortWordEndIndex = function(rightOfCursor) { var ch, index = 0, whitespaceRe = /\s/, tokenRe = this.session.tokenRe; if (tokenRe.lastIndex = 0, this.session.tokenRe.exec(rightOfCursor)) index = this.session.tokenRe.lastIndex; else { for(; (ch = rightOfCursor[index]) && whitespaceRe.test(ch);)index++; if (index < 1) { for(tokenRe.lastIndex = 0; (ch = rightOfCursor[index]) && !tokenRe.test(ch);)if (tokenRe.lastIndex = 0, index++, whitespaceRe.test(ch)) { if (index > 2) { index--; break; } for(; (ch = rightOfCursor[index]) && whitespaceRe.test(ch);)index++; if (index > 2) break; } } } return tokenRe.lastIndex = 0, index; }, this.moveCursorShortWordRight = function() { var row = this.lead.row, column = this.lead.column, line = this.doc.getLine(row), rightOfCursor = line.substring(column), fold = this.session.getFoldAt(row, column, 1); if (fold) return this.moveCursorTo(fold.end.row, fold.end.column); if (column == line.length) { var l = this.doc.getLength(); do row++, rightOfCursor = this.doc.getLine(row); while (row < l && /^\s*$/.test(rightOfCursor)) /^\s+/.test(rightOfCursor) || (rightOfCursor = ""), column = 0; } var index = this.$shortWordEndIndex(rightOfCursor); this.moveCursorTo(row, column + index); }, this.moveCursorShortWordLeft = function() { var fold, row = this.lead.row, column = this.lead.column; if (fold = this.session.getFoldAt(row, column, -1)) return this.moveCursorTo(fold.start.row, fold.start.column); var line = this.session.getLine(row).substring(0, column); if (0 === column) { do row--, line = this.doc.getLine(row); while (row > 0 && /^\s*$/.test(line)) column = line.length, /\s+$/.test(line) || (line = ""); } var leftOfCursor = lang.stringReverse(line), index = this.$shortWordEndIndex(leftOfCursor); return this.moveCursorTo(row, column - index); }, this.moveCursorWordRight = function() { this.session.$selectLongWords ? this.moveCursorLongWordRight() : this.moveCursorShortWordRight(); }, this.moveCursorWordLeft = function() { this.session.$selectLongWords ? this.moveCursorLongWordLeft() : this.moveCursorShortWordLeft(); }, this.moveCursorBy = function(rows, chars) { var offsetX, screenPos = this.session.documentToScreenPosition(this.lead.row, this.lead.column); if (0 === chars && (0 !== rows && (this.session.$bidiHandler.isBidiRow(screenPos.row, this.lead.row) ? (offsetX = this.session.$bidiHandler.getPosLeft(screenPos.column), screenPos.column = Math.round(offsetX / this.session.$bidiHandler.charWidths[0])) : offsetX = screenPos.column * this.session.$bidiHandler.charWidths[0]), this.$desiredColumn ? screenPos.column = this.$desiredColumn : this.$desiredColumn = screenPos.column), 0 != rows && this.session.lineWidgets && this.session.lineWidgets[this.lead.row]) { var widget = this.session.lineWidgets[this.lead.row]; rows < 0 ? rows -= widget.rowsAbove || 0 : rows > 0 && (rows += widget.rowCount - (widget.rowsAbove || 0)); } var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenPos.column, offsetX); 0 !== rows && 0 === chars && docPos.row === this.lead.row && (docPos.column, this.lead.column), this.moveCursorTo(docPos.row, docPos.column + chars, 0 === chars); }, this.moveCursorToPosition = function(position) { this.moveCursorTo(position.row, position.column); }, this.moveCursorTo = function(row, column, keepDesiredColumn) { var fold = this.session.getFoldAt(row, column, 1); fold && (row = fold.start.row, column = fold.start.column), this.$keepDesiredColumnOnChange = !0; var line = this.session.getLine(row); /[\uDC00-\uDFFF]/.test(line.charAt(column)) && line.charAt(column - 1) && (this.lead.row == row && this.lead.column == column + 1 ? column -= 1 : column += 1), this.lead.setPosition(row, column), this.$keepDesiredColumnOnChange = !1, keepDesiredColumn || (this.$desiredColumn = null); }, this.moveCursorToScreen = function(row, column, keepDesiredColumn) { var pos = this.session.screenToDocumentPosition(row, column); this.moveCursorTo(pos.row, pos.column, keepDesiredColumn); }, this.detach = function() { this.lead.detach(), this.anchor.detach(); }, this.fromOrientedRange = function(range) { this.setSelectionRange(range, range.cursor == range.start), this.$desiredColumn = range.desiredColumn || this.$desiredColumn; }, this.toOrientedRange = function(range) { var r = this.getRange(); return range ? (range.start.column = r.start.column, range.start.row = r.start.row, range.end.column = r.end.column, range.end.row = r.end.row) : range = r, range.cursor = this.isBackwards() ? range.start : range.end, range.desiredColumn = this.$desiredColumn, range; }, this.getRangeOfMovements = function(func) { var start = this.getCursor(); try { func(this); var end = this.getCursor(); return Range.fromPoints(start, end); } catch (e) { return Range.fromPoints(start, start); } finally{ this.moveCursorToPosition(start); } }, this.toJSON = function() { if (this.rangeCount) var data = this.ranges.map(function(r) { var r1 = r.clone(); return r1.isBackwards = r.cursor == r.start, r1; }); else { var data = this.getRange(); data.isBackwards = this.isBackwards(); } return data; }, this.fromJSON = function(data) { if (void 0 == data.start) { if (this.rangeList && data.length > 1) { this.toSingleRange(data[0]); for(var i = data.length; i--;){ var r = Range.fromPoints(data[i].start, data[i].end); data[i].isBackwards && (r.cursor = r.start), this.addRange(r, !0); } return; } data = data[0]; } this.rangeList && this.toSingleRange(data), this.setSelectionRange(data, data.isBackwards); }, this.isEqual = function(data) { if ((data.length || this.rangeCount) && data.length != this.rangeCount) return !1; if (!data.length || !this.ranges) return this.getRange().isEqual(data); for(var i = this.ranges.length; i--;)if (!this.ranges[i].isEqual(data[i])) return !1; return !0; }; }).call(Selection.prototype), exports.Selection = Selection; }), ace.define("ace/tokenizer", [ "require", "exports", "module", "ace/config" ], function(require, exports, module) { "use strict"; var config = require("./config"), MAX_TOKEN_COUNT = 2000, Tokenizer = function(rules) { for(var key in this.states = rules, this.regExps = {}, this.matchMappings = {}, this.states){ for(var state = this.states[key], ruleRegExps = [], matchTotal = 0, mapping = this.matchMappings[key] = { defaultToken: "text" }, flag = "g", splitterRurles = [], i = 0; i < state.length; i++){ var rule = state[i]; if (rule.defaultToken && (mapping.defaultToken = rule.defaultToken), rule.caseInsensitive && (flag = "gi"), null != rule.regex) { rule.regex instanceof RegExp && (rule.regex = rule.regex.toString().slice(1, -1)); var adjustedregex = rule.regex, matchcount = RegExp("(?:(" + adjustedregex + ")|(.))").exec("a").length - 2; Array.isArray(rule.token) ? 1 == rule.token.length || 1 == matchcount ? rule.token = rule.token[0] : matchcount - 1 != rule.token.length ? (this.reportError("number of classes and regexp groups doesn't match", { rule: rule, groupCount: matchcount - 1 }), rule.token = rule.token[0]) : (rule.tokenArray = rule.token, rule.token = null, rule.onMatch = this.$arrayTokens) : "function" != typeof rule.token || rule.onMatch || (matchcount > 1 ? rule.onMatch = this.$applyToken : rule.onMatch = rule.token), matchcount > 1 && (/\\\d/.test(rule.regex) ? adjustedregex = rule.regex.replace(/\\([0-9]+)/g, function(match, digit) { return "\\" + (parseInt(digit, 10) + matchTotal + 1); }) : (matchcount = 1, adjustedregex = this.removeCapturingGroups(rule.regex)), rule.splitRegex || "string" == typeof rule.token || splitterRurles.push(rule)), mapping[matchTotal] = i, matchTotal += matchcount, ruleRegExps.push(adjustedregex), rule.onMatch || (rule.onMatch = null); } } ruleRegExps.length || (mapping[0] = 0, ruleRegExps.push("$")), splitterRurles.forEach(function(rule) { rule.splitRegex = this.createSplitterRegexp(rule.regex, flag); }, this), this.regExps[key] = RegExp("(" + ruleRegExps.join(")|(") + ")|($)", flag); } }; (function() { this.$setMaxTokenCount = function(m) { MAX_TOKEN_COUNT = 0 | m; }, this.$applyToken = function(str) { var values = this.splitRegex.exec(str).slice(1), types = this.token.apply(this, values); if ("string" == typeof types) return [ { type: types, value: str } ]; for(var tokens = [], i = 0, l = types.length; i < l; i++)values[i] && (tokens[tokens.length] = { type: types[i], value: values[i] }); return tokens; }, this.$arrayTokens = function(str) { if (!str) return []; var values = this.splitRegex.exec(str); if (!values) return "text"; for(var tokens = [], types = this.tokenArray, i = 0, l = types.length; i < l; i++)values[i + 1] && (tokens[tokens.length] = { type: types[i], value: values[i + 1] }); return tokens; }, this.removeCapturingGroups = function(src) { return src.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g, function(x, y) { return y ? "(?:" : x; }); }, this.createSplitterRegexp = function(src, flag) { if (-1 != src.indexOf("(?=")) { var stack = 0, inChClass = !1, lastCapture = {}; src.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g, function(m, esc, parenOpen, parenClose, square, index) { return inChClass ? inChClass = "]" != square : square ? inChClass = !0 : parenClose ? (stack == lastCapture.stack && (lastCapture.end = index + 1, lastCapture.stack = -1), stack--) : parenOpen && (stack++, 1 != parenOpen.length && (lastCapture.stack = stack, lastCapture.start = index)), m; }), null != lastCapture.end && /^\)*$/.test(src.substr(lastCapture.end)) && (src = src.substring(0, lastCapture.start) + src.substr(lastCapture.end)); } return "^" != src.charAt(0) && (src = "^" + src), "$" != src.charAt(src.length - 1) && (src += "$"), new RegExp(src, (flag || "").replace("g", "")); }, this.getLineTokens = function(line, startState) { if (startState && "string" != typeof startState) { var stack = startState.slice(0); "#tmp" === (startState = stack[0]) && (stack.shift(), startState = stack.shift()); } else var stack = []; var currentState = startState || "start", state = this.states[currentState]; state || (currentState = "start", state = this.states[currentState]); var mapping = this.matchMappings[currentState], re = this.regExps[currentState]; re.lastIndex = 0; for(var match, tokens = [], lastIndex = 0, matchAttempts = 0, token = { type: null, value: "" }; match = re.exec(line);){ var type = mapping.defaultToken, rule = null, value = match[0], index = re.lastIndex; if (index - value.length > lastIndex) { var skipped = line.substring(lastIndex, index - value.length); token.type == type ? token.value += skipped : (token.type && tokens.push(token), token = { type: type, value: skipped }); } for(var i = 0; i < match.length - 2; i++)if (void 0 !== match[i + 1]) { type = (rule = state[mapping[i]]).onMatch ? rule.onMatch(value, currentState, stack, line) : rule.token, rule.next && (currentState = "string" == typeof rule.next ? rule.next : rule.next(currentState, stack), (state = this.states[currentState]) || (this.reportError("state doesn't exist", currentState), currentState = "start", state = this.states[currentState]), mapping = this.matchMappings[currentState], lastIndex = index, (re = this.regExps[currentState]).lastIndex = index), rule.consumeLineEnd && (lastIndex = index); break; } if (value) { if ("string" == typeof type) rule && !1 === rule.merge || token.type !== type ? (token.type && tokens.push(token), token = { type: type, value: value }) : token.value += value; else if (type) { token.type && tokens.push(token), token = { type: null, value: "" }; for(var i = 0; i < type.length; i++)tokens.push(type[i]); } } if (lastIndex == line.length) break; if (lastIndex = index, matchAttempts++ > MAX_TOKEN_COUNT) { for(matchAttempts > 2 * line.length && this.reportError("infinite loop with in ace tokenizer", { startState: startState, line: line }); lastIndex < line.length;)token.type && tokens.push(token), token = { value: line.substring(lastIndex, lastIndex += 500), type: "overflow" }; currentState = "start", stack = []; break; } } return token.type && tokens.push(token), stack.length > 1 && stack[0] !== currentState && stack.unshift("#tmp", currentState), { tokens: tokens, state: stack.length ? stack : currentState }; }, this.reportError = config.reportError; }).call(Tokenizer.prototype), exports.Tokenizer = Tokenizer; }), ace.define("ace/mode/text_highlight_rules", [ "require", "exports", "module", "ace/lib/lang" ], function(require, exports, module) { "use strict"; var lang = require("../lib/lang"), TextHighlightRules = function() { this.$rules = { start: [ { token: "empty_line", regex: "^$" }, { defaultToken: "text" } ] }; }; (function() { this.addRules = function(rules, prefix) { if (!prefix) { for(var key in rules)this.$rules[key] = rules[key]; return; } for(var key in rules){ for(var state = rules[key], i = 0; i < state.length; i++){ var rule = state[i]; (rule.next || rule.onMatch) && ("string" == typeof rule.next && 0 !== rule.next.indexOf(prefix) && (rule.next = prefix + rule.next), rule.nextState && 0 !== rule.nextState.indexOf(prefix) && (rule.nextState = prefix + rule.nextState)); } this.$rules[prefix + key] = state; } }, this.getRules = function() { return this.$rules; }, this.embedRules = function(HighlightRules, prefix, escapeRules, states, append) { var embedRules = "function" == typeof HighlightRules ? new HighlightRules().getRules() : HighlightRules; if (states) for(var i = 0; i < states.length; i++)states[i] = prefix + states[i]; else for(var key in states = [], embedRules)states.push(prefix + key); if (this.addRules(embedRules, prefix), escapeRules) for(var addRules = Array.prototype[append ? "push" : "unshift"], i = 0; i < states.length; i++)addRules.apply(this.$rules[states[i]], lang.deepCopy(escapeRules)); this.$embeds || (this.$embeds = []), this.$embeds.push(prefix); }, this.getEmbeds = function() { return this.$embeds; }; var pushState = function(currentState, stack) { return ("start" != currentState || stack.length) && stack.unshift(this.nextState, currentState), this.nextState; }, popState = function(currentState, stack) { return stack.shift(), stack.shift() || "start"; }; this.normalizeRules = function() { var id = 0, rules = this.$rules; Object.keys(rules).forEach(function processState(key) { var state = rules[key]; state.processed = !0; for(var i = 0; i < state.length; i++){ var rule = state[i], toInsert = null; Array.isArray(rule) && (toInsert = rule, rule = {}), !rule.regex && rule.start && (rule.regex = rule.start, rule.next || (rule.next = []), rule.next.push({ defaultToken: rule.token }, { token: rule.token + ".end", regex: rule.end || rule.start, next: "pop" }), rule.token = rule.token + ".start", rule.push = !0); var next = rule.next || rule.push; if (next && Array.isArray(next)) { var stateName = rule.stateName; !stateName && ("string" != typeof (stateName = rule.token) && (stateName = stateName[0] || ""), rules[stateName] && (stateName += id++)), rules[stateName] = next, rule.next = stateName, processState(stateName); } else "pop" == next && (rule.next = popState); if (rule.push && (rule.nextState = rule.next || rule.push, rule.next = pushState, delete rule.push), rule.rules) for(var r in rule.rules)rules[r] ? rules[r].push && rules[r].push.apply(rules[r], rule.rules[r]) : rules[r] = rule.rules[r]; var includeName = "string" == typeof rule ? rule : rule.include; if (includeName && (toInsert = Array.isArray(includeName) ? includeName.map(function(x) { return rules[x]; }) : rules[includeName]), toInsert) { var args = [ i, 1 ].concat(toInsert); rule.noEscape && (args = args.filter(function(x) { return !x.next; })), state.splice.apply(state, args), i--; } rule.keywordMap && (rule.token = this.createKeywordMapper(rule.keywordMap, rule.defaultToken || "text", rule.caseInsensitive), delete rule.defaultToken); } }, this); }, this.createKeywordMapper = function(map, defaultToken, ignoreCase, splitChar) { var keywords = Object.create(null); return this.$keywordList = [], Object.keys(map).forEach(function(className) { for(var list = map[className].split(splitChar || "|"), i = list.length; i--;){ var word = list[i]; this.$keywordList.push(word), ignoreCase && (word = word.toLowerCase()), keywords[word] = className; } }, this), map = null, ignoreCase ? function(value) { return keywords[value.toLowerCase()] || defaultToken; } : function(value) { return keywords[value] || defaultToken; }; }, this.getKeywords = function() { return this.$keywords; }; }).call(TextHighlightRules.prototype), exports.TextHighlightRules = TextHighlightRules; }), ace.define("ace/mode/behaviour", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; var Behaviour = function() { this.$behaviours = {}; }; (function() { this.add = function(name, action, callback) { switch(void 0){ case this.$behaviours: this.$behaviours = {}; case this.$behaviours[name]: this.$behaviours[name] = {}; } this.$behaviours[name][action] = callback; }, this.addBehaviours = function(behaviours) { for(var key in behaviours)for(var action in behaviours[key])this.add(key, action, behaviours[key][action]); }, this.remove = function(name) { this.$behaviours && this.$behaviours[name] && delete this.$behaviours[name]; }, this.inherit = function(mode, filter) { if ("function" == typeof mode) var behaviours = new mode().getBehaviours(filter); else var behaviours = mode.getBehaviours(filter); this.addBehaviours(behaviours); }, this.getBehaviours = function(filter) { if (!filter) return this.$behaviours; for(var ret = {}, i = 0; i < filter.length; i++)this.$behaviours[filter[i]] && (ret[filter[i]] = this.$behaviours[filter[i]]); return ret; }; }).call(Behaviour.prototype), exports.Behaviour = Behaviour; }), ace.define("ace/token_iterator", [ "require", "exports", "module", "ace/range" ], function(require, exports, module) { "use strict"; var Range = require("./range").Range, TokenIterator = function(session, initialRow, initialColumn) { this.$session = session, this.$row = initialRow, this.$rowTokens = session.getTokens(initialRow); var token = session.getTokenAt(initialRow, initialColumn); this.$tokenIndex = token ? token.index : -1; }; (function() { this.stepBackward = function() { for(this.$tokenIndex -= 1; this.$tokenIndex < 0;){ if (this.$row -= 1, this.$row < 0) return this.$row = 0, null; this.$rowTokens = this.$session.getTokens(this.$row), this.$tokenIndex = this.$rowTokens.length - 1; } return this.$rowTokens[this.$tokenIndex]; }, this.stepForward = function() { var rowCount; for(this.$tokenIndex += 1; this.$tokenIndex >= this.$rowTokens.length;){ if (this.$row += 1, rowCount || (rowCount = this.$session.getLength()), this.$row >= rowCount) return this.$row = rowCount - 1, null; this.$rowTokens = this.$session.getTokens(this.$row), this.$tokenIndex = 0; } return this.$rowTokens[this.$tokenIndex]; }, this.getCurrentToken = function() { return this.$rowTokens[this.$tokenIndex]; }, this.getCurrentTokenRow = function() { return this.$row; }, this.getCurrentTokenColumn = function() { var rowTokens = this.$rowTokens, tokenIndex = this.$tokenIndex, column = rowTokens[tokenIndex].start; if (void 0 !== column) return column; for(column = 0; tokenIndex > 0;)tokenIndex -= 1, column += rowTokens[tokenIndex].value.length; return column; }, this.getCurrentTokenPosition = function() { return { row: this.$row, column: this.getCurrentTokenColumn() }; }, this.getCurrentTokenRange = function() { var token = this.$rowTokens[this.$tokenIndex], column = this.getCurrentTokenColumn(); return new Range(this.$row, column, this.$row, column + token.value.length); }; }).call(TokenIterator.prototype), exports.TokenIterator = TokenIterator; }), ace.define("ace/mode/behaviour/cstyle", [ "require", "exports", "module", "ace/lib/oop", "ace/mode/behaviour", "ace/token_iterator", "ace/lib/lang" ], function(require, exports, module) { "use strict"; var context, oop = require("../../lib/oop"), Behaviour = require("../behaviour").Behaviour, TokenIterator = require("../../token_iterator").TokenIterator, lang = require("../../lib/lang"), SAFE_INSERT_IN_TOKENS = [ "text", "paren.rparen", "rparen", "paren", "punctuation.operator" ], SAFE_INSERT_BEFORE_TOKENS = [ "text", "paren.rparen", "rparen", "paren", "punctuation.operator", "comment" ], contextCache = {}, defaultQuotes = { '"': '"', "'": "'" }, initContext = function(editor) { var id = -1; if (editor.multiSelect && (id = editor.selection.index, contextCache.rangeCount != editor.multiSelect.rangeCount && (contextCache = { rangeCount: editor.multiSelect.rangeCount })), contextCache[id]) return context = contextCache[id]; context = contextCache[id] = { autoInsertedBrackets: 0, autoInsertedRow: -1, autoInsertedLineEnd: "", maybeInsertedBrackets: 0, maybeInsertedRow: -1, maybeInsertedLineStart: "", maybeInsertedLineEnd: "" }; }, getWrapped = function(selection, selected, opening, closing) { var rowDiff = selection.end.row - selection.start.row; return { text: opening + selected + closing, selection: [ 0, selection.start.column + 1, rowDiff, selection.end.column + +!rowDiff ] }; }, CstyleBehaviour = function(options) { this.add("braces", "insertion", function(state, action, editor, session, text) { var cursor = editor.getCursorPosition(), line = session.doc.getLine(cursor.row); if ("{" == text) { initContext(editor); var selection = editor.getSelectionRange(), selected = session.doc.getTextRange(selection); if ("" !== selected && "{" !== selected && editor.getWrapBehavioursEnabled()) return getWrapped(selection, selected, "{", "}"); if (CstyleBehaviour.isSaneInsertion(editor, session)) return /[\]\}\)]/.test(line[cursor.column]) || editor.inMultiSelectMode || options && options.braces ? (CstyleBehaviour.recordAutoInsert(editor, session, "}"), { text: "{}", selection: [ 1, 1 ] }) : (CstyleBehaviour.recordMaybeInsert(editor, session, "{"), { text: "{", selection: [ 1, 1 ] }); } else if ("}" == text) { initContext(editor); var rightChar = line.substring(cursor.column, cursor.column + 1); if ("}" == rightChar && null !== session.$findOpeningBracket("}", { column: cursor.column + 1, row: cursor.row }) && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) return CstyleBehaviour.popAutoInsertedClosing(), { text: "", selection: [ 1, 1 ] }; } else if ("\n" == text || "\r\n" == text) { initContext(editor); var closing = ""; CstyleBehaviour.isMaybeInsertedClosing(cursor, line) && (closing = lang.stringRepeat("}", context.maybeInsertedBrackets), CstyleBehaviour.clearMaybeInsertedClosing()); var rightChar = line.substring(cursor.column, cursor.column + 1); if ("}" === rightChar) { var openBracePos = session.findMatchingBracket({ row: cursor.row, column: cursor.column + 1 }, "}"); if (!openBracePos) return null; var next_indent = this.$getIndent(session.getLine(openBracePos.row)); } else if (closing) var next_indent = this.$getIndent(line); else { CstyleBehaviour.clearMaybeInsertedClosing(); return; } var indent = next_indent + session.getTabString(); return { text: "\n" + indent + "\n" + next_indent + closing, selection: [ 1, indent.length, 1, indent.length ] }; } else CstyleBehaviour.clearMaybeInsertedClosing(); }), this.add("braces", "deletion", function(state, action, editor, session, range) { var selected = session.doc.getTextRange(range); if (!range.isMultiLine() && "{" == selected) { if (initContext(editor), "}" == session.doc.getLine(range.start.row).substring(range.end.column, range.end.column + 1)) return range.end.column++, range; context.maybeInsertedBrackets--; } }), this.add("parens", "insertion", function(state, action, editor, session, text) { if ("(" == text) { initContext(editor); var selection = editor.getSelectionRange(), selected = session.doc.getTextRange(selection); if ("" !== selected && editor.getWrapBehavioursEnabled()) return getWrapped(selection, selected, "(", ")"); if (CstyleBehaviour.isSaneInsertion(editor, session)) return CstyleBehaviour.recordAutoInsert(editor, session, ")"), { text: "()", selection: [ 1, 1 ] }; } else if (")" == text) { initContext(editor); var cursor = editor.getCursorPosition(), line = session.doc.getLine(cursor.row); if (")" == line.substring(cursor.column, cursor.column + 1) && null !== session.$findOpeningBracket(")", { column: cursor.column + 1, row: cursor.row }) && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) return CstyleBehaviour.popAutoInsertedClosing(), { text: "", selection: [ 1, 1 ] }; } }), this.add("parens", "deletion", function(state, action, editor, session, range) { var selected = session.doc.getTextRange(range); if (!range.isMultiLine() && "(" == selected && (initContext(editor), ")" == session.doc.getLine(range.start.row).substring(range.start.column + 1, range.start.column + 2))) return range.end.column++, range; }), this.add("brackets", "insertion", function(state, action, editor, session, text) { if ("[" == text) { initContext(editor); var selection = editor.getSelectionRange(), selected = session.doc.getTextRange(selection); if ("" !== selected && editor.getWrapBehavioursEnabled()) return getWrapped(selection, selected, "[", "]"); if (CstyleBehaviour.isSaneInsertion(editor, session)) return CstyleBehaviour.recordAutoInsert(editor, session, "]"), { text: "[]", selection: [ 1, 1 ] }; } else if ("]" == text) { initContext(editor); var cursor = editor.getCursorPosition(), line = session.doc.getLine(cursor.row); if ("]" == line.substring(cursor.column, cursor.column + 1) && null !== session.$findOpeningBracket("]", { column: cursor.column + 1, row: cursor.row }) && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) return CstyleBehaviour.popAutoInsertedClosing(), { text: "", selection: [ 1, 1 ] }; } }), this.add("brackets", "deletion", function(state, action, editor, session, range) { var selected = session.doc.getTextRange(range); if (!range.isMultiLine() && "[" == selected && (initContext(editor), "]" == session.doc.getLine(range.start.row).substring(range.start.column + 1, range.start.column + 2))) return range.end.column++, range; }), this.add("string_dquotes", "insertion", function(state, action, editor, session, text) { var quotes = session.$mode.$quotes || defaultQuotes; if (1 == text.length && quotes[text]) { if (this.lineCommentStart && -1 != this.lineCommentStart.indexOf(text)) return; initContext(editor); var selection = editor.getSelectionRange(), selected = session.doc.getTextRange(selection); if ("" !== selected && (1 != selected.length || !quotes[selected]) && editor.getWrapBehavioursEnabled()) return getWrapped(selection, selected, text, text); if (!selected) { var pair, cursor = editor.getCursorPosition(), line = session.doc.getLine(cursor.row), leftChar = line.substring(cursor.column - 1, cursor.column), rightChar = line.substring(cursor.column, cursor.column + 1), token = session.getTokenAt(cursor.row, cursor.column), rightToken = session.getTokenAt(cursor.row, cursor.column + 1); if ("\\" == leftChar && token && /escape/.test(token.type)) return null; var stringBefore = token && /string|escape/.test(token.type), stringAfter = !rightToken || /string|escape/.test(rightToken.type); if (rightChar == text) (pair = stringBefore !== stringAfter) && /string\.end/.test(rightToken.type) && (pair = !1); else { if (stringBefore && !stringAfter || stringBefore && stringAfter) return null; // wrap string with different quote var wordRe = session.$mode.tokenRe; wordRe.lastIndex = 0; var isWordBefore = wordRe.test(leftChar); wordRe.lastIndex = 0; var isWordAfter = wordRe.test(leftChar); if (isWordBefore || isWordAfter || rightChar && !/[\s;,.})\]\\]/.test(rightChar)) return null; // before or after alphanumeric var charBefore = line[cursor.column - 2]; if (leftChar == text && (charBefore == text || wordRe.test(charBefore))) return null; pair = !0; } return { text: pair ? text + text : "", selection: [ 1, 1 ] }; } } }), this.add("string_dquotes", "deletion", function(state, action, editor, session, range) { var quotes = session.$mode.$quotes || defaultQuotes, selected = session.doc.getTextRange(range); if (!range.isMultiLine() && quotes.hasOwnProperty(selected) && (initContext(editor), session.doc.getLine(range.start.row).substring(range.start.column + 1, range.start.column + 2) == selected)) return range.end.column++, range; }); }; CstyleBehaviour.isSaneInsertion = function(editor, session) { var cursor = editor.getCursorPosition(), iterator = new TokenIterator(session, cursor.row, cursor.column); if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) { if (/[)}\]]/.test(editor.session.getLine(cursor.row)[cursor.column])) return !0; var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1); if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) return !1; } return iterator.stepForward(), iterator.getCurrentTokenRow() !== cursor.row || this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS); }, CstyleBehaviour.$matchTokenType = function(token, types) { return types.indexOf(token.type || token) > -1; }, CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) { var cursor = editor.getCursorPosition(), line = session.doc.getLine(cursor.row); this.isAutoInsertedClosing(cursor, line, context.autoInsertedLineEnd[0]) || (context.autoInsertedBrackets = 0), context.autoInsertedRow = cursor.row, context.autoInsertedLineEnd = bracket + line.substr(cursor.column), context.autoInsertedBrackets++; }, CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) { var cursor = editor.getCursorPosition(), line = session.doc.getLine(cursor.row); this.isMaybeInsertedClosing(cursor, line) || (context.maybeInsertedBrackets = 0), context.maybeInsertedRow = cursor.row, context.maybeInsertedLineStart = line.substr(0, cursor.column) + bracket, context.maybeInsertedLineEnd = line.substr(cursor.column), context.maybeInsertedBrackets++; }, CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) { return context.autoInsertedBrackets > 0 && cursor.row === context.autoInsertedRow && bracket === context.autoInsertedLineEnd[0] && line.substr(cursor.column) === context.autoInsertedLineEnd; }, CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) { return context.maybeInsertedBrackets > 0 && cursor.row === context.maybeInsertedRow && line.substr(cursor.column) === context.maybeInsertedLineEnd && line.substr(0, cursor.column) == context.maybeInsertedLineStart; }, CstyleBehaviour.popAutoInsertedClosing = function() { context.autoInsertedLineEnd = context.autoInsertedLineEnd.substr(1), context.autoInsertedBrackets--; }, CstyleBehaviour.clearMaybeInsertedClosing = function() { context && (context.maybeInsertedBrackets = 0, context.maybeInsertedRow = -1); }, oop.inherits(CstyleBehaviour, Behaviour), exports.CstyleBehaviour = CstyleBehaviour; }), ace.define("ace/unicode", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; for(var wordChars = [ 48, 9, 8, 25, 5, 0, 2, 25, 48, 0, 11, 0, 5, 0, 6, 22, 2, 30, 2, 457, 5, 11, 15, 4, 8, 0, 2, 0, 18, 116, 2, 1, 3, 3, 9, 0, 2, 2, 2, 0, 2, 19, 2, 82, 2, 138, 2, 4, 3, 155, 12, 37, 3, 0, 8, 38, 10, 44, 2, 0, 2, 1, 2, 1, 2, 0, 9, 26, 6, 2, 30, 10, 7, 61, 2, 9, 5, 101, 2, 7, 3, 9, 2, 18, 3, 0, 17, 58, 3, 100, 15, 53, 5, 0, 6, 45, 211, 57, 3, 18, 2, 5, 3, 11, 3, 9, 2, 1, 7, 6, 2, 2, 2, 7, 3, 1, 3, 21, 2, 6, 2, 0, 4, 3, 3, 8, 3, 1, 3, 3, 9, 0, 5, 1, 2, 4, 3, 11, 16, 2, 2, 5, 5, 1, 3, 21, 2, 6, 2, 1, 2, 1, 2, 1, 3, 0, 2, 4, 5, 1, 3, 2, 4, 0, 8, 3, 2, 0, 8, 15, 12, 2, 2, 8, 2, 2, 2, 21, 2, 6, 2, 1, 2, 4, 3, 9, 2, 2, 2, 2, 3, 0, 16, 3, 3, 9, 18, 2, 2, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 3, 8, 3, 1, 3, 2, 9, 1, 5, 1, 2, 4, 3, 9, 2, 0, 17, 1, 2, 5, 4, 2, 2, 3, 4, 1, 2, 0, 2, 1, 4, 1, 4, 2, 4, 11, 5, 4, 4, 2, 2, 3, 3, 0, 7, 0, 15, 9, 18, 2, 2, 7, 2, 2, 2, 22, 2, 9, 2, 4, 4, 7, 2, 2, 2, 3, 8, 1, 2, 1, 7, 3, 3, 9, 19, 1, 2, 7, 2, 2, 2, 22, 2, 9, 2, 4, 3, 8, 2, 2, 2, 3, 8, 1, 8, 0, 2, 3, 3, 9, 19, 1, 2, 7, 2, 2, 2, 22, 2, 15, 4, 7, 2, 2, 2, 3, 10, 0, 9, 3, 3, 9, 11, 5, 3, 1, 2, 17, 4, 23, 2, 8, 2, 0, 3, 6, 4, 0, 5, 5, 2, 0, 2, 7, 19, 1, 14, 57, 6, 14, 2, 9, 40, 1, 2, 0, 3, 1, 2, 0, 3, 0, 7, 3, 2, 6, 2, 2, 2, 0, 2, 0, 3, 1, 2, 12, 2, 2, 3, 4, 2, 0, 2, 5, 3, 9, 3, 1, 35, 0, 24, 1, 7, 9, 12, 0, 2, 0, 2, 0, 5, 9, 2, 35, 5, 19, 2, 5, 5, 7, 2, 35, 10, 0, 58, 73, 7, 77, 3, 37, 11, 42, 2, 0, 4, 328, 2, 3, 3, 6, 2, 0, 2, 3, 3, 40, 2, 3, 3, 32, 2, 3, 3, 6, 2, 0, 2, 3, 3, 14, 2, 56, 2, 3, 3, 66, 5, 0, 33, 15, 17, 84, 13, 619, 3, 16, 2, 25, 6, 74, 22, 12, 2, 6, 12, 20, 12, 19, 13, 12, 2, 2, 2, 1, 13, 51, 3, 29, 4, 0, 5, 1, 3, 9, 34, 2, 3, 9, 7, 87, 9, 42, 6, 69, 11, 28, 4, 11, 5, 11, 11, 39, 3, 4, 12, 43, 5, 25, 7, 10, 38, 27, 5, 62, 2, 28, 3, 10, 7, 9, 14, 0, 89, 75, 5, 9, 18, 8, 13, 42, 4, 11, 71, 55, 9, 9, 4, 48, 83, 2, 2, 30, 14, 230, 23, 280, 3, 5, 3, 37, 3, 5, 3, 7, 2, 0, 2, 0, 2, 0, 2, 30, 3, 52, 2, 6, 2, 0, 4, 2, 2, 6, 4, 3, 3, 5, 5, 12, 6, 2, 2, 6, 67, 1, 20, 0, 29, 0, 14, 0, 17, 4, 60, 12, 5, 0, 4, 11, 18, 0, 5, 0, 3, 9, 2, 0, 4, 4, 7, 0, 2, 0, 2, 0, 2, 3, 2, 10, 3, 3, 6, 4, 5, 0, 53, 1, 2684, 46, 2, 46, 2, 132, 7, 6, 15, 37, 11, 53, 10, 0, 17, 22, 10, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 31, 48, 0, 470, 1, 36, 5, 2, 4, 6, 1, 5, 85, 3, 1, 3, 2, 2, 89, 2, 3, 6, 40, 4, 93, 18, 23, 57, 15, 513, 6581, 75, 20939, 53, 1164, 68, 45, 3, 268, 4, 27, 21, 31, 3, 13, 13, 1, 2, 24, 9, 69, 11, 1, 38, 8, 3, 102, 3, 1, 111, 44, 25, 51, 13, 68, 12, 9, 7, 23, 4, 0, 5, 45, 3, 35, 13, 28, 4, 64, 15, 10, 39, 54, 10, 13, 3, 9, 7, 22, 4, 1, 5, 66, 25, 2, 227, 42, 2, 1, 3, 9, 7, 11171, 13, 22, 5, 48, 8453, 301, 3, 61, 3, 105, 39, 6, 13, 4, 6, 11, 2, 12, 2, 4, 2, 0, 2, 1, 2, 1, 2, 107, 34, 362, 19, 63, 3, 53, 41, 11, 5, 15, 17, 6, 13, 1, 25, 2, 33, 4, 2, 134, 20, 9, 8, 25, 5, 0, 2, 25, 12, 88, 4, 5, 3, 5, 3, 5, 3, 2 ], code = 0, str = [], i = 0; i < wordChars.length; i += 2)str.push(code += wordChars[i]), wordChars[i + 1] && str.push(45, code += wordChars[i + 1]); exports.wordChars = String.fromCharCode.apply(null, str); }), ace.define("ace/mode/text", [ "require", "exports", "module", "ace/config", "ace/tokenizer", "ace/mode/text_highlight_rules", "ace/mode/behaviour/cstyle", "ace/unicode", "ace/lib/lang", "ace/token_iterator", "ace/range" ], function(require, exports, module) { "use strict"; var config = require("../config"), Tokenizer = require("../tokenizer").Tokenizer, TextHighlightRules = require("./text_highlight_rules").TextHighlightRules, CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour, unicode = require("../unicode"), lang = require("../lib/lang"), TokenIterator = require("../token_iterator").TokenIterator, Range = require("../range").Range, Mode = function() { this.HighlightRules = TextHighlightRules; }; (function() { this.$defaultBehaviour = new CstyleBehaviour(), this.tokenRe = RegExp("^[" + unicode.wordChars + "\\$_]+", "g"), this.nonTokenRe = RegExp("^(?:[^" + unicode.wordChars + "\\$_]|\\s])+", "g"), this.getTokenizer = function() { return this.$tokenizer || (this.$highlightRules = this.$highlightRules || new this.HighlightRules(this.$highlightRuleConfig), this.$tokenizer = new Tokenizer(this.$highlightRules.getRules())), this.$tokenizer; }, this.lineCommentStart = "", this.blockComment = "", this.toggleCommentLines = function(state, session, startRow, endRow) { var doc = session.doc, ignoreBlankLines = !0, shouldRemove = !0, minIndent = 1 / 0, tabSize = session.getTabSize(), insertAtTabStop = !1; if (this.lineCommentStart) { if (Array.isArray(this.lineCommentStart)) var regexpStart = this.lineCommentStart.map(lang.escapeRegExp).join("|"), lineCommentStart = this.lineCommentStart[0]; else var regexpStart = lang.escapeRegExp(this.lineCommentStart), lineCommentStart = this.lineCommentStart; regexpStart = RegExp("^(\\s*)(?:" + regexpStart + ") ?"), insertAtTabStop = session.getUseSoftTabs(); var uncomment = function(line, i) { var m = line.match(regexpStart); if (m) { var start = m[1].length, end = m[0].length; !shouldInsertSpace(line, start, end) && " " == m[0][end - 1] && end--, doc.removeInLine(i, start, end); } }, commentWithSpace = lineCommentStart + " ", comment = function(line, i) { (!ignoreBlankLines || /\S/.test(line)) && (shouldInsertSpace(line, minIndent, minIndent) ? doc.insertInLine({ row: i, column: minIndent }, commentWithSpace) : doc.insertInLine({ row: i, column: minIndent }, lineCommentStart)); }, testRemove = function(line, i) { return regexpStart.test(line); }, shouldInsertSpace = function(line, before, after) { for(var spaces = 0; before-- && " " == line.charAt(before);)spaces++; if (spaces % tabSize != 0) return !1; for(var spaces = 0; " " == line.charAt(after++);)spaces++; return tabSize > 2 ? spaces % tabSize != tabSize - 1 : spaces % tabSize == 0; }; } else { if (!this.blockComment) return !1; var lineCommentStart = this.blockComment.start, lineCommentEnd = this.blockComment.end, regexpStart = RegExp("^(\\s*)(?:" + lang.escapeRegExp(lineCommentStart) + ")"), regexpEnd = RegExp("(?:" + lang.escapeRegExp(lineCommentEnd) + ")\\s*$"), comment = function(line, i) { !testRemove(line, i) && (!ignoreBlankLines || /\S/.test(line)) && (doc.insertInLine({ row: i, column: line.length }, lineCommentEnd), doc.insertInLine({ row: i, column: minIndent }, lineCommentStart)); }, uncomment = function(line, i) { var m; (m = line.match(regexpEnd)) && doc.removeInLine(i, line.length - m[0].length, line.length), (m = line.match(regexpStart)) && doc.removeInLine(i, m[1].length, m[0].length); }, testRemove = function(line, row) { if (regexpStart.test(line)) return !0; for(var tokens = session.getTokens(row), i = 0; i < tokens.length; i++)if ("comment" === tokens[i].type) return !0; }; } function iter(fun) { for(var i = startRow; i <= endRow; i++)fun(doc.getLine(i), i); } var minEmptyLength = 1 / 0; iter(function(line, i) { var indent = line.search(/\S/); -1 !== indent ? (indent < minIndent && (minIndent = indent), shouldRemove && !testRemove(line, i) && (shouldRemove = !1)) : minEmptyLength > line.length && (minEmptyLength = line.length); }), minIndent == 1 / 0 && (minIndent = minEmptyLength, ignoreBlankLines = !1, shouldRemove = !1), insertAtTabStop && minIndent % tabSize != 0 && (minIndent = Math.floor(minIndent / tabSize) * tabSize), iter(shouldRemove ? uncomment : comment); }, this.toggleBlockComment = function(state, session, range, cursor) { var comment = this.blockComment; if (comment) { !comment.start && comment[0] && (comment = comment[0]); var iterator = new TokenIterator(session, cursor.row, cursor.column), token = iterator.getCurrentToken(); session.selection; var initialRange = session.selection.toOrientedRange(); if (token && /comment/.test(token.type)) { for(; token && /comment/.test(token.type);){ var startRow, colDiff, startRange, endRange, i = token.value.indexOf(comment.start); if (-1 != i) { var row = iterator.getCurrentTokenRow(), column = iterator.getCurrentTokenColumn() + i; startRange = new Range(row, column, row, column + comment.start.length); break; } token = iterator.stepBackward(); } for(var iterator = new TokenIterator(session, cursor.row, cursor.column), token = iterator.getCurrentToken(); token && /comment/.test(token.type);){ var i = token.value.indexOf(comment.end); if (-1 != i) { var row = iterator.getCurrentTokenRow(), column = iterator.getCurrentTokenColumn() + i; endRange = new Range(row, column, row, column + comment.end.length); break; } token = iterator.stepForward(); } endRange && session.remove(endRange), startRange && (session.remove(startRange), startRow = startRange.start.row, colDiff = -comment.start.length); } else colDiff = comment.start.length, startRow = range.start.row, session.insert(range.end, comment.end), session.insert(range.start, comment.start); initialRange.start.row == startRow && (initialRange.start.column += colDiff), initialRange.end.row == startRow && (initialRange.end.column += colDiff), session.selection.fromOrientedRange(initialRange); } }, this.getNextLineIndent = function(state, line, tab) { return this.$getIndent(line); }, this.checkOutdent = function(state, line, input) { return !1; }, this.autoOutdent = function(state, doc, row) {}, this.$getIndent = function(line) { return line.match(/^\s*/)[0]; }, this.createWorker = function(session) { return null; }, this.createModeDelegates = function(mapping) { for(var i in this.$embeds = [], this.$modes = {}, mapping)if (mapping[i]) { var Mode = mapping[i], id = Mode.prototype.$id, mode = config.$modes[id]; mode || (config.$modes[id] = mode = new Mode()), config.$modes[i] || (config.$modes[i] = mode), this.$embeds.push(i), this.$modes[i] = mode; } for(var delegations = [ "toggleBlockComment", "toggleCommentLines", "getNextLineIndent", "checkOutdent", "autoOutdent", "transformAction", "getCompletions" ], i = 0; i < delegations.length; i++)!function(scope) { var functionName = delegations[i], defaultHandler = scope[functionName]; scope[delegations[i]] = function() { return this.$delegator(functionName, arguments, defaultHandler); }; }(this); }, this.$delegator = function(method, args, defaultHandler) { var state = args[0] || "start"; if ("string" != typeof state) { if (Array.isArray(state[2])) { var language = state[2][state[2].length - 1], mode = this.$modes[language]; if (mode) return mode[method].apply(mode, [ state[1] ].concat([].slice.call(args, 1))); } state = state[0] || "start"; } for(var i = 0; i < this.$embeds.length; i++)if (this.$modes[this.$embeds[i]]) { var split = state.split(this.$embeds[i]); if (!split[0] && split[1]) { args[0] = split[1]; var mode = this.$modes[this.$embeds[i]]; return mode[method].apply(mode, args); } } var ret = defaultHandler.apply(this, args); return defaultHandler ? ret : void 0; }, this.transformAction = function(state, action, editor, session, param) { if (this.$behaviour) { var behaviours = this.$behaviour.getBehaviours(); for(var key in behaviours)if (behaviours[key][action]) { var ret = behaviours[key][action].apply(this, arguments); if (ret) return ret; } } }, this.getKeywords = function(append) { if (!this.completionKeywords) { var rules = this.$tokenizer.rules, completionKeywords = []; for(var rule in rules)for(var ruleItr = rules[rule], r = 0, l = ruleItr.length; r < l; r++)if ("string" == typeof ruleItr[r].token) /keyword|support|storage/.test(ruleItr[r].token) && completionKeywords.push(ruleItr[r].regex); else if ("object" == typeof ruleItr[r].token) { for(var a = 0, aLength = ruleItr[r].token.length; a < aLength; a++)if (/keyword|support|storage/.test(ruleItr[r].token[a])) { var rule = ruleItr[r].regex.match(/\(.+?\)/g)[a]; completionKeywords.push(rule.substr(1, rule.length - 2)); } } this.completionKeywords = completionKeywords; } return append ? completionKeywords.concat(this.$keywordList || []) : this.$keywordList; }, this.$createKeywordList = function() { return this.$highlightRules || this.getTokenizer(), this.$keywordList = this.$highlightRules.$keywordList || []; }, this.getCompletions = function(state, session, pos, prefix) { return (this.$keywordList || this.$createKeywordList()).map(function(word) { return { name: word, value: word, score: 0, meta: "keyword" }; }); }, this.$id = "ace/mode/text"; }).call(Mode.prototype), exports.Mode = Mode; }), ace.define("ace/apply_delta", [ "require", "exports", "module" ], function(require, exports, module) { "use strict"; exports.applyDelta = function(docLines, delta, doNotValidate) { var row = delta.start.row, startColumn = delta.start.column, line = docLines[row] || ""; switch(delta.action){ case "insert": if (1 === delta.lines.length) docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn); else { var args = [ row, 1 ].concat(delta.lines); docLines.splice.apply(docLines, args), docLines[row] = line.substring(0, startColumn) + docLines[row], docLines[row + delta.lines.length - 1] += line.substring(startColumn); } break; case "remove": var endColumn = delta.end.column, endRow = delta.end.row; row === endRow ? docLines[row] = line.substring(0, startColumn) + line.substring(endColumn) : docLines.splice(row, endRow - row + 1, line.substring(0, startColumn) + docLines[endRow].substring(endColumn)); } }; }), ace.define("ace/anchor", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter" ], function(require, exports, module) { "use strict"; var oop = require("./lib/oop"), EventEmitter = require("./lib/event_emitter").EventEmitter; (function() { function $pointsInOrder(point1, point2, equalPointsInOrder) { var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column; return point1.row < point2.row || point1.row == point2.row && bColIsAfter; } oop.implement(this, EventEmitter), this.getPosition = function() { return this.$clipPositionToDocument(this.row, this.column); }, this.getDocument = function() { return this.document; }, this.$insertRight = !1, this.onChange = function(delta) { if ((delta.start.row != delta.end.row || delta.start.row == this.row) && !(delta.start.row > this.row)) { var point, moveIfEqual, deltaIsInsert, deltaRowShift, deltaColShift, deltaStart, deltaEnd, point1 = (point = { row: this.row, column: this.column }, moveIfEqual = this.$insertRight, deltaRowShift = ((deltaIsInsert = "insert" == delta.action) ? 1 : -1) * (delta.end.row - delta.start.row), deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column), deltaStart = delta.start, deltaEnd = deltaIsInsert ? deltaStart : delta.end, $pointsInOrder(point, deltaStart, moveIfEqual) ? { row: point.row, column: point.column } : $pointsInOrder(deltaEnd, point, !moveIfEqual) ? { row: point.row + deltaRowShift, column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0) } : { row: deltaStart.row, column: deltaStart.column }); this.setPosition(point1.row, point1.column, !0); } }, this.setPosition = function(row, column, noClip) { if (pos = noClip ? { row: row, column: column } : this.$clipPositionToDocument(row, column), this.row != pos.row || this.column != pos.column) { var pos, old = { row: this.row, column: this.column }; this.row = pos.row, this.column = pos.column, this._signal("change", { old: old, value: pos }); } }, this.detach = function() { this.document.off("change", this.$onChange); }, this.attach = function(doc) { this.document = doc || this.document, this.document.on("change", this.$onChange); }, this.$clipPositionToDocument = function(row, column) { var pos = {}; return row >= this.document.getLength() ? (pos.row = Math.max(0, this.document.getLength() - 1), pos.column = this.document.getLine(pos.row).length) : row < 0 ? (pos.row = 0, pos.column = 0) : (pos.row = row, pos.column = Math.min(this.document.getLine(pos.row).length, Math.max(0, column))), column < 0 && (pos.column = 0), pos; }; }).call((exports.Anchor = function(doc, row, column) { this.$onChange = this.onChange.bind(this), this.attach(doc), void 0 === column ? this.setPosition(row.row, row.column) : this.setPosition(row, column); }).prototype); }), ace.define("ace/document", [ "require", "exports", "module", "ace/lib/oop", "ace/apply_delta", "ace/lib/event_emitter", "ace/range", "ace/anchor" ], function(require, exports, module) { "use strict"; var oop = require("./lib/oop"), applyDelta = require("./apply_delta").applyDelta, EventEmitter = require("./lib/event_emitter").EventEmitter, Range = require("./range").Range, Anchor = require("./anchor").Anchor, Document = function(textOrLines) { this.$lines = [ "" ], 0 === textOrLines.length ? this.$lines = [ "" ] : Array.isArray(textOrLines) ? this.insertMergedLines({ row: 0, column: 0 }, textOrLines) : this.insert({ row: 0, column: 0 }, textOrLines); }; (function() { oop.implement(this, EventEmitter), this.setValue = function(text) { var len = this.getLength() - 1; this.remove(new Range(0, 0, len, this.getLine(len).length)), this.insert({ row: 0, column: 0 }, text); }, this.getValue = function() { return this.getAllLines().join(this.getNewLineCharacter()); }, this.createAnchor = function(row, column) { return new Anchor(this, row, column); }, 0 === "aaa".split(/a/).length ? this.$split = function(text) { return text.replace(/\r\n|\r/g, "\n").split("\n"); } : this.$split = function(text) { return text.split(/\r\n|\r|\n/); }, this.$detectNewLine = function(text) { var match = text.match(/^.*?(\r\n|\r|\n)/m); this.$autoNewLine = match ? match[1] : "\n", this._signal("changeNewLineMode"); }, this.getNewLineCharacter = function() { switch(this.$newLineMode){ case "windows": return "\r\n"; case "unix": return "\n"; default: return this.$autoNewLine || "\n"; } }, this.$autoNewLine = "", this.$newLineMode = "auto", this.setNewLineMode = function(newLineMode) { this.$newLineMode !== newLineMode && (this.$newLineMode = newLineMode, this._signal("changeNewLineMode")); }, this.getNewLineMode = function() { return this.$newLineMode; }, this.isNewLine = function(text) { return "\r\n" == text || "\r" == text || "\n" == text; }, this.getLine = function(row) { return this.$lines[row] || ""; }, this.getLines = function(firstRow, lastRow) { return this.$lines.slice(firstRow, lastRow + 1); }, this.getAllLines = function() { return this.getLines(0, this.getLength()); }, this.getLength = function() { return this.$lines.length; }, this.getTextRange = function(range) { return this.getLinesForRange(range).join(this.getNewLineCharacter()); }, this.getLinesForRange = function(range) { var lines; if (range.start.row === range.end.row) lines = [ this.getLine(range.start.row).substring(range.start.column, range.end.column) ]; else { (lines = this.getLines(range.start.row, range.end.row))[0] = (lines[0] || "").substring(range.start.column); var l = lines.length - 1; range.end.row - range.start.row == l && (lines[l] = lines[l].substring(0, range.end.column)); } return lines; }, this.insertLines = function(row, lines) { return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."), this.insertFullLines(row, lines); }, this.removeLines = function(firstRow, lastRow) { return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."), this.removeFullLines(firstRow, lastRow); }, this.insertNewLine = function(position) { return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."), this.insertMergedLines(position, [ "", "" ]); }, this.insert = function(position, text) { return 1 >= this.getLength() && this.$detectNewLine(text), this.insertMergedLines(position, this.$split(text)); }, this.insertInLine = function(position, text) { var start = this.clippedPos(position.row, position.column), end = this.pos(position.row, position.column + text.length); return this.applyDelta({ start: start, end: end, action: "insert", lines: [ text ] }, !0), this.clonePos(end); }, this.clippedPos = function(row, column) { var length = this.getLength(); void 0 === row ? row = length : row < 0 ? row = 0 : row >= length && (row = length - 1, column = void 0); var line = this.getLine(row); return void 0 == column && (column = line.length), { row: row, column: column = Math.min(Math.max(column, 0), line.length) }; }, this.clonePos = function(pos) { return { row: pos.row, column: pos.column }; }, this.pos = function(row, column) { return { row: row, column: column }; }, this.$clipPosition = function(position) { var length = this.getLength(); return position.row >= length ? (position.row = Math.max(0, length - 1), position.column = this.getLine(length - 1).length) : (position.row = Math.max(0, position.row), position.column = Math.min(Math.max(position.column, 0), this.getLine(position.row).length)), position; }, this.insertFullLines = function(row, lines) { row = Math.min(Math.max(row, 0), this.getLength()); var column = 0; row < this.getLength() ? (lines = lines.concat([ "" ]), column = 0) : (lines = [ "" ].concat(lines), row--, column = this.$lines[row].length), this.insertMergedLines({ row: row, column: column }, lines); }, this.insertMergedLines = function(position, lines) { var start = this.clippedPos(position.row, position.column), end = { row: start.row + lines.length - 1, column: (1 == lines.length ? start.column : 0) + lines[lines.length - 1].length }; return this.applyDelta({ start: start, end: end, action: "insert", lines: lines }), this.clonePos(end); }, this.remove = function(range) { var start = this.clippedPos(range.start.row, range.start.column), end = this.clippedPos(range.end.row, range.end.column); return this.applyDelta({ start: start, end: end, action: "remove", lines: this.getLinesForRange({ start: start, end: end }) }), this.clonePos(start); }, this.removeInLine = function(row, startColumn, endColumn) { var start = this.clippedPos(row, startColumn), end = this.clippedPos(row, endColumn); return this.applyDelta({ start: start, end: end, action: "remove", lines: this.getLinesForRange({ start: start, end: end }) }, !0), this.clonePos(start); }, this.removeFullLines = function(firstRow, lastRow) { firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1); var deleteFirstNewLine = (lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1)) == this.getLength() - 1 && firstRow > 0, deleteLastNewLine = lastRow < this.getLength() - 1, startRow = deleteFirstNewLine ? firstRow - 1 : firstRow, startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0, endRow = deleteLastNewLine ? lastRow + 1 : lastRow, endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length, range = new Range(startRow, startCol, endRow, endCol), deletedLines = this.$lines.slice(firstRow, lastRow + 1); return this.applyDelta({ start: range.start, end: range.end, action: "remove", lines: this.getLinesForRange(range) }), deletedLines; }, this.removeNewLine = function(row) { row < this.getLength() - 1 && row >= 0 && this.applyDelta({ start: this.pos(row, this.getLine(row).length), end: this.pos(row + 1, 0), action: "remove", lines: [ "", "" ] }); }, this.replace = function(range, text) { return (range instanceof Range || (range = Range.fromPoints(range.start, range.end)), 0 === text.length && range.isEmpty()) ? range.start : text == this.getTextRange(range) ? range.end : (this.remove(range), text ? this.insert(range.start, text) : range.start); }, this.applyDeltas = function(deltas) { for(var i = 0; i < deltas.length; i++)this.applyDelta(deltas[i]); }, this.revertDeltas = function(deltas) { for(var i = deltas.length - 1; i >= 0; i--)this.revertDelta(deltas[i]); }, this.applyDelta = function(delta, doNotValidate) { var isInsert = "insert" == delta.action; (isInsert ? !(delta.lines.length <= 1) || delta.lines[0] : Range.comparePoints(delta.start, delta.end)) && (isInsert && delta.lines.length > 20000 ? this.$splitAndapplyLargeDelta(delta, 20000) : (applyDelta(this.$lines, delta, doNotValidate), this._signal("change", delta))); }, this.$safeApplyDelta = function(delta) { var docLength = this.$lines.length; ("remove" == delta.action && delta.start.row < docLength && delta.end.row < docLength || "insert" == delta.action && delta.start.row <= docLength) && this.applyDelta(delta); }, this.$splitAndapplyLargeDelta = function(delta, MAX) { for(var lines = delta.lines, l = lines.length - MAX + 1, row = delta.start.row, column = delta.start.column, from = 0, to = 0; from < l; from = to){ to += MAX - 1; var chunk = lines.slice(from, to); chunk.push(""), this.applyDelta({ start: this.pos(row + from, column), end: this.pos(row + to, column = 0), action: delta.action, lines: chunk }, !0); } delta.lines = lines.slice(from), delta.start.row = row + from, delta.start.column = column, this.applyDelta(delta, !0); }, this.revertDelta = function(delta) { this.$safeApplyDelta({ start: this.clonePos(delta.start), end: this.clonePos(delta.end), action: "insert" == delta.action ? "remove" : "insert", lines: delta.lines.slice() }); }, this.indexToPosition = function(index, startRow) { for(var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, i = startRow || 0, l = lines.length; i < l; i++)if ((index -= lines[i].length + newlineLength) < 0) return { row: i, column: index + lines[i].length + newlineLength }; return { row: l - 1, column: index + lines[l - 1].length + newlineLength }; }, this.positionToIndex = function(pos, startRow) { for(var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, index = 0, row = Math.min(pos.row, lines.length), i = startRow || 0; i < row; ++i)index += lines[i].length + newlineLength; return index + pos.column; }; }).call(Document.prototype), exports.Document = Document; }), ace.define("ace/background_tokenizer", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter" ], function(require, exports, module) { "use strict"; var oop = require("./lib/oop"), EventEmitter = require("./lib/event_emitter").EventEmitter, BackgroundTokenizer = function(tokenizer, editor) { this.running = !1, this.lines = [], this.states = [], this.currentLine = 0, this.tokenizer = tokenizer; var self1 = this; this.$worker = function() { if (self1.running) { for(var workerStart = new Date(), currentLine = self1.currentLine, endLine = -1, doc = self1.doc, startLine = currentLine; self1.lines[currentLine];)currentLine++; var len = doc.getLength(), processedLines = 0; for(self1.running = !1; currentLine < len;){ self1.$tokenizeRow(currentLine), endLine = currentLine; do currentLine++; while (self1.lines[currentLine]) if (++processedLines % 5 == 0 && new Date() - workerStart > 20) { self1.running = setTimeout(self1.$worker, 20); break; } } self1.currentLine = currentLine, -1 == endLine && (endLine = currentLine), startLine <= endLine && self1.fireUpdateEvent(startLine, endLine); } }; }; (function() { oop.implement(this, EventEmitter), this.setTokenizer = function(tokenizer) { this.tokenizer = tokenizer, this.lines = [], this.states = [], this.start(0); }, this.setDocument = function(doc) { this.doc = doc, this.lines = [], this.states = [], this.stop(); }, this.fireUpdateEvent = function(firstRow, lastRow) { this._signal("update", { data: { first: firstRow, last: lastRow } }); }, this.start = function(startRow) { this.currentLine = Math.min(startRow || 0, this.currentLine, this.doc.getLength()), this.lines.splice(this.currentLine, this.lines.length), this.states.splice(this.currentLine, this.states.length), this.stop(), this.running = setTimeout(this.$worker, 700); }, this.scheduleStart = function() { this.running || (this.running = setTimeout(this.$worker, 700)); }, this.$updateOnChange = function(delta) { var startRow = delta.start.row, len = delta.end.row - startRow; if (0 === len) this.lines[startRow] = null; else if ("remove" == delta.action) this.lines.splice(startRow, len + 1, null), this.states.splice(startRow, len + 1, null); else { var args = Array(len + 1); args.unshift(startRow, 1), this.lines.splice.apply(this.lines, args), this.states.splice.apply(this.states, args); } this.currentLine = Math.min(startRow, this.currentLine, this.doc.getLength()), this.stop(); }, this.stop = function() { this.running && clearTimeout(this.running), this.running = !1; }, this.getTokens = function(row) { return this.lines[row] || this.$tokenizeRow(row); }, this.getState = function(row) { return this.currentLine == row && this.$tokenizeRow(row), this.states[row] || "start"; }, this.$tokenizeRow = function(row) { var line = this.doc.getLine(row), state = this.states[row - 1], data = this.tokenizer.getLineTokens(line, state, row); return this.states[row] + "" != data.state + "" ? (this.states[row] = data.state, this.lines[row + 1] = null, this.currentLine > row + 1 && (this.currentLine = row + 1)) : this.currentLine == row && (this.currentLine = row + 1), this.lines[row] = data.tokens; }; }).call(BackgroundTokenizer.prototype), exports.BackgroundTokenizer = BackgroundTokenizer; }), ace.define("ace/search_highlight", [ "require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/range" ], function(require, exports, module) { "use strict"; var lang = require("./lib/lang"); require("./lib/oop"); var Range = require("./range").Range, SearchHighlight = function(regExp, clazz, type) { this.setRegexp(regExp), this.clazz = clazz, this.type = type || "text"; }; (function() { this.MAX_RANGES = 500, this.setRegexp = function(regExp) { this.regExp + "" != regExp + "" && (this.regExp = regExp, this.cache = []); }, this.update = function(html, markerLayer, session, config) { if (this.regExp) for(var start = config.firstRow, end = config.lastRow, i = start; i <= end; i++){ var ranges = this.cache[i]; null == ranges && ((ranges = lang.getMatchOffsets(session.getLine(i), this.regExp)).length > this.MAX_RANGES && (ranges = ranges.slice(0, this.MAX_RANGES)), ranges = ranges.map(function(match) { return new Range(i, match.offset, i, match.offset + match.length); }), this.cache[i] = ranges.length ? ranges : ""); for(var j = ranges.length; j--;)markerLayer.drawSingleLineMarker(html, ranges[j].toScreenRange(session), this.clazz, config); } }; }).call(SearchHighlight.prototype), exports.SearchHighlight = SearchHighlight; }), ace.define("ace/edit_session/fold_line", [ "require", "exports", "module", "ace/range" ], function(require, exports, module) { "use strict"; var Range = require("../range").Range; function FoldLine(foldData, folds) { this.foldData = foldData, Array.isArray(folds) ? this.folds = folds : folds = this.folds = [ folds ]; var last = folds[folds.length - 1]; this.range = new Range(folds[0].start.row, folds[0].start.column, last.end.row, last.end.column), this.start = this.range.start, this.end = this.range.end, this.folds.forEach(function(fold) { fold.setFoldLine(this); }, this); } (function() { this.shiftRow = function(shift) { this.start.row += shift, this.end.row += shift, this.folds.forEach(function(fold) { fold.start.row += shift, fold.end.row += shift; }); }, this.addFold = function(fold) { if (fold.sameRow) { if (fold.start.row < this.startRow || fold.endRow > this.endRow) throw Error("Can't add a fold to this FoldLine as it has no connection"); this.folds.push(fold), this.folds.sort(function(a, b) { return -a.range.compareEnd(b.start.row, b.start.column); }), this.range.compareEnd(fold.start.row, fold.start.column) > 0 ? (this.end.row = fold.end.row, this.end.column = fold.end.column) : 0 > this.range.compareStart(fold.end.row, fold.end.column) && (this.start.row = fold.start.row, this.start.column = fold.start.column); } else if (fold.start.row == this.end.row) this.folds.push(fold), this.end.row = fold.end.row, this.end.column = fold.end.column; else if (fold.end.row == this.start.row) this.folds.unshift(fold), this.start.row = fold.start.row, this.start.column = fold.start.column; else throw Error("Trying to add fold to FoldRow that doesn't have a matching row"); fold.foldLine = this; }, this.containsRow = function(row) { return row >= this.start.row && row <= this.end.row; }, this.walk = function(callback, endRow, endColumn) { var fold, cmp, lastEnd = 0, folds = this.folds, isNewRow = !0; null == endRow && (endRow = this.end.row, endColumn = this.end.column); for(var i = 0; i < folds.length; i++){ if (-1 == (cmp = (fold = folds[i]).range.compareStart(endRow, endColumn))) { callback(null, endRow, endColumn, lastEnd, isNewRow); return; } if (!callback(null, fold.start.row, fold.start.column, lastEnd, isNewRow) && callback(fold.placeholder, fold.start.row, fold.start.column, lastEnd) || 0 === cmp) return; isNewRow = !fold.sameRow, lastEnd = fold.end.column; } callback(null, endRow, endColumn, lastEnd, isNewRow); }, this.getNextFoldTo = function(row, column) { for(var fold, cmp, i = 0; i < this.folds.length; i++){ if (-1 == (cmp = (fold = this.folds[i]).range.compareEnd(row, column))) return { fold: fold, kind: "after" }; if (0 === cmp) return { fold: fold, kind: "inside" }; } return null; }, this.addRemoveChars = function(row, column, len) { var fold, folds, ret = this.getNextFoldTo(row, column); if (ret) { if (fold = ret.fold, "inside" == ret.kind && fold.start.column != column && fold.start.row != row) window.console && window.console.log(row, column, fold); else if (fold.start.row == row) { var i = (folds = this.folds).indexOf(fold); for(0 === i && (this.start.column += len); i < folds.length; i++){ if (fold = folds[i], fold.start.column += len, !fold.sameRow) return; fold.end.column += len; } this.end.column += len; } } }, this.split = function(row, column) { var pos = this.getNextFoldTo(row, column); if (!pos || "inside" == pos.kind) return null; var fold = pos.fold, folds = this.folds, foldData = this.foldData, i = folds.indexOf(fold), foldBefore = folds[i - 1]; this.end.row = foldBefore.end.row, this.end.column = foldBefore.end.column; var newFoldLine = new FoldLine(foldData, folds = folds.splice(i, folds.length - i)); return foldData.splice(foldData.indexOf(this) + 1, 0, newFoldLine), newFoldLine; }, this.merge = function(foldLineNext) { for(var folds = foldLineNext.folds, i = 0; i < folds.length; i++)this.addFold(folds[i]); var foldData = this.foldData; foldData.splice(foldData.indexOf(foldLineNext), 1); }, this.toString = function() { var ret = [ this.range.toString() + ": [" ]; return this.folds.forEach(function(fold) { ret.push(" " + fold.toString()); }), ret.push("]"), ret.join("\n"); }, this.idxToPosition = function(idx) { for(var lastFoldEndColumn = 0, i = 0; i < this.folds.length; i++){ var fold = this.folds[i]; if ((idx -= fold.start.column - lastFoldEndColumn) < 0) return { row: fold.start.row, column: fold.start.column + idx }; if ((idx -= fold.placeholder.length) < 0) return fold.start; lastFoldEndColumn = fold.end.column; } return { row: this.end.row, column: this.end.column + idx }; }; }).call(FoldLine.prototype), exports.FoldLine = FoldLine; }), ace.define("ace/range_list", [ "require", "exports", "module", "ace/range" ], function(require, exports, module) { "use strict"; var comparePoints = require("./range").Range.comparePoints, RangeList = function() { this.ranges = [], this.$bias = 1; }; (function() { this.comparePoints = comparePoints, this.pointIndex = function(pos, excludeEdges, startIndex) { for(var list = this.ranges, i = startIndex || 0; i < list.length; i++){ var range = list[i], cmpEnd = comparePoints(pos, range.end); if (!(cmpEnd > 0)) { var cmpStart = comparePoints(pos, range.start); if (0 === cmpEnd) return excludeEdges && 0 !== cmpStart ? -i - 2 : i; if (cmpStart > 0 || 0 === cmpStart && !excludeEdges) return i; break; } } return -i - 1; }, this.add = function(range) { var excludeEdges = !range.isEmpty(), startIndex = this.pointIndex(range.start, excludeEdges); startIndex < 0 && (startIndex = -startIndex - 1); var endIndex = this.pointIndex(range.end, excludeEdges, startIndex); return endIndex < 0 ? endIndex = -endIndex - 1 : endIndex++, this.ranges.splice(startIndex, endIndex - startIndex, range); }, this.addList = function(list) { for(var removed = [], i = list.length; i--;)removed.push.apply(removed, this.add(list[i])); return removed; }, this.substractPoint = function(pos) { var i = this.pointIndex(pos); if (i >= 0) return this.ranges.splice(i, 1); }, this.merge = function() { for(var range, removed = [], list = this.ranges, next = (list = list.sort(function(a, b) { return comparePoints(a.start, b.start); }))[0], i = 1; i < list.length; i++){ range = next, next = list[i]; var cmp = comparePoints(range.end, next.start); !(cmp < 0) && (0 != cmp || range.isEmpty() || next.isEmpty()) && (0 > comparePoints(range.end, next.end) && (range.end.row = next.end.row, range.end.column = next.end.column), list.splice(i, 1), removed.push(next), next = range, i--); } return this.ranges = list, removed; }, this.contains = function(row, column) { return this.pointIndex({ row: row, column: column }) >= 0; }, this.containsPoint = function(pos) { return this.pointIndex(pos) >= 0; }, this.rangeAtPoint = function(pos) { var i = this.pointIndex(pos); if (i >= 0) return this.ranges[i]; }, this.clipRows = function(startRow, endRow) { var list = this.ranges; if (list[0].start.row > endRow || list[list.length - 1].start.row < startRow) return []; var startIndex = this.pointIndex({ row: startRow, column: 0 }); startIndex < 0 && (startIndex = -startIndex - 1); var endIndex = this.pointIndex({ row: endRow, column: 0 }, startIndex); endIndex < 0 && (endIndex = -endIndex - 1); for(var clipped = [], i = startIndex; i < endIndex; i++)clipped.push(list[i]); return clipped; }, this.removeAll = function() { return this.ranges.splice(0, this.ranges.length); }, this.attach = function(session) { this.session && this.detach(), this.session = session, this.onChange = this.$onChange.bind(this), this.session.on("change", this.onChange); }, this.detach = function() { this.session && (this.session.removeListener("change", this.onChange), this.session = null); }, this.$onChange = function(delta) { for(var start = delta.start, end = delta.end, startRow = start.row, endRow = end.row, ranges = this.ranges, i = 0, n = ranges.length; i < n; i++){ var r = ranges[i]; if (r.end.row >= startRow) break; } if ("insert" == delta.action) for(var lineDif = endRow - startRow, colDiff = -start.column + end.column; i < n; i++){ var r = ranges[i]; if (r.start.row > startRow) break; if (r.start.row == startRow && r.start.column >= start.column && (r.start.column == start.column && this.$bias <= 0 || (r.start.column += colDiff, r.start.row += lineDif)), r.end.row == startRow && r.end.column >= start.column) { if (r.end.column == start.column && this.$bias < 0) continue; r.end.column == start.column && colDiff > 0 && i < n - 1 && r.end.column > r.start.column && r.end.column == ranges[i + 1].start.column && (r.end.column -= colDiff), r.end.column += colDiff, r.end.row += lineDif; } } else for(var lineDif = startRow - endRow, colDiff = start.column - end.column; i < n; i++){ var r = ranges[i]; if (r.start.row > endRow) break; r.end.row < endRow && (startRow < r.end.row || startRow == r.end.row && start.column < r.end.column) ? (r.end.row = startRow, r.end.column = start.column) : r.end.row == endRow ? r.end.column <= end.column ? (lineDif || r.end.column > start.column) && (r.end.column = start.column, r.end.row = start.row) : (r.end.column += colDiff, r.end.row += lineDif) : r.end.row > endRow && (r.end.row += lineDif), r.start.row < endRow && (startRow < r.start.row || startRow == r.start.row && start.column < r.start.column) ? (r.start.row = startRow, r.start.column = start.column) : r.start.row == endRow ? r.start.column <= end.column ? (lineDif || r.start.column > start.column) && (r.start.column = start.column, r.start.row = start.row) : (r.start.column += colDiff, r.start.row += lineDif) : r.start.row > endRow && (r.start.row += lineDif); } if (0 != lineDif && i < n) for(; i < n; i++){ var r = ranges[i]; r.start.row += lineDif, r.end.row += lineDif; } }; }).call(RangeList.prototype), exports.RangeList = RangeList; }), ace.define("ace/edit_session/fold", [ "require", "exports", "module", "ace/range_list", "ace/lib/oop" ], function(require, exports, module) { "use strict"; var RangeList = require("../range_list").RangeList, oop = require("../lib/oop"), Fold = exports.Fold = function(range, placeholder) { this.foldLine = null, this.placeholder = placeholder, this.range = range, this.start = range.start, this.end = range.end, this.sameRow = range.start.row == range.end.row, this.subFolds = this.ranges = []; }; function consumePoint(point, anchor) { point.row -= anchor.row, 0 == point.row && (point.column -= anchor.column); } function restorePoint(point, anchor) { 0 == point.row && (point.column += anchor.column), point.row += anchor.row; } oop.inherits(Fold, RangeList), (function() { this.toString = function() { return '"' + this.placeholder + '" ' + this.range.toString(); }, this.setFoldLine = function(foldLine) { this.foldLine = foldLine, this.subFolds.forEach(function(fold) { fold.setFoldLine(foldLine); }); }, this.clone = function() { var fold = new Fold(this.range.clone(), this.placeholder); return this.subFolds.forEach(function(subFold) { fold.subFolds.push(subFold.clone()); }), fold.collapseChildren = this.collapseChildren, fold; }, this.addSubFold = function(fold) { if (!this.range.isEqual(fold)) { anchor = this.start, consumePoint(fold.start, anchor), consumePoint(fold.end, anchor); for(var anchor, row = fold.start.row, column = fold.start.column, i = 0, cmp = -1; i < this.subFolds.length && 1 == (cmp = this.subFolds[i].range.compare(row, column)); i++); var afterStart = this.subFolds[i], firstConsumed = 0; if (0 == cmp) { if (afterStart.range.containsRange(fold)) return afterStart.addSubFold(fold); firstConsumed = 1; } for(var row = fold.range.end.row, column = fold.range.end.column, j = i, cmp = -1; j < this.subFolds.length && 1 == (cmp = this.subFolds[j].range.compare(row, column)); j++); 0 == cmp && j++; for(var consumedFolds = this.subFolds.splice(i, j - i, fold), last = 0 == cmp ? consumedFolds.length - 1 : consumedFolds.length, k = firstConsumed; k < last; k++)fold.addSubFold(consumedFolds[k]); return fold.setFoldLine(this.foldLine), fold; } }, this.restoreRange = function(range) { var anchor; return anchor = this.start, void (restorePoint(range.start, anchor), restorePoint(range.end, anchor)); }; }).call(Fold.prototype); }), ace.define("ace/edit_session/folding", [ "require", "exports", "module", "ace/range", "ace/edit_session/fold_line", "ace/edit_session/fold", "ace/token_iterator" ], function(require, exports, module) { "use strict"; var Range = require("../range").Range, FoldLine = require("./fold_line").FoldLine, Fold = require("./fold").Fold, TokenIterator = require("../token_iterator").TokenIterator; exports.Folding = function() { this.getFoldAt = function(row, column, side) { var foldLine = this.getFoldLine(row); if (!foldLine) return null; for(var folds = foldLine.folds, i = 0; i < folds.length; i++){ var range = folds[i].range; if (range.contains(row, column)) { if (1 == side && range.isEnd(row, column) && !range.isEmpty() || -1 == side && range.isStart(row, column) && !range.isEmpty()) continue; return folds[i]; } } }, this.getFoldsInRange = function(range) { var start = range.start, end = range.end, foldLines = this.$foldData, foundFolds = []; start.column += 1, end.column -= 1; for(var i = 0; i < foldLines.length; i++){ var cmp = foldLines[i].range.compareRange(range); if (2 != cmp) { if (-2 == cmp) break; for(var folds = foldLines[i].folds, j = 0; j < folds.length; j++){ var fold = folds[j]; if (-2 == (cmp = fold.range.compareRange(range))) break; if (2 != cmp) { if (42 == cmp) break; foundFolds.push(fold); } } } } return start.column -= 1, end.column += 1, foundFolds; }, this.getFoldsInRangeList = function(ranges) { if (Array.isArray(ranges)) { var folds = []; ranges.forEach(function(range) { folds = folds.concat(this.getFoldsInRange(range)); }, this); } else var folds = this.getFoldsInRange(ranges); return folds; }, this.getAllFolds = function() { for(var folds = [], foldLines = this.$foldData, i = 0; i < foldLines.length; i++)for(var j = 0; j < foldLines[i].folds.length; j++)folds.push(foldLines[i].folds[j]); return folds; }, this.getFoldStringAt = function(row, column, trim, foldLine) { if (!(foldLine = foldLine || this.getFoldLine(row))) return null; for(var str, fold, lastFold = { end: { column: 0 } }, i = 0; i < foldLine.folds.length; i++){ var cmp = (fold = foldLine.folds[i]).range.compareEnd(row, column); if (-1 == cmp) { str = this.getLine(fold.start.row).substring(lastFold.end.column, fold.start.column); break; } if (0 === cmp) return null; lastFold = fold; } return (str || (str = this.getLine(fold.start.row).substring(lastFold.end.column)), -1 == trim) ? str.substring(0, column - lastFold.end.column) : 1 == trim ? str.substring(column - lastFold.end.column) : str; }, this.getFoldLine = function(docRow, startFoldLine) { var foldData = this.$foldData, i = 0; for(startFoldLine && (i = foldData.indexOf(startFoldLine)), -1 == i && (i = 0); i < foldData.length; i++){ var foldLine = foldData[i]; if (foldLine.start.row <= docRow && foldLine.end.row >= docRow) return foldLine; if (foldLine.end.row > docRow) break; } return null; }, this.getNextFoldLine = function(docRow, startFoldLine) { var foldData = this.$foldData, i = 0; for(startFoldLine && (i = foldData.indexOf(startFoldLine)), -1 == i && (i = 0); i < foldData.length; i++){ var foldLine = foldData[i]; if (foldLine.end.row >= docRow) return foldLine; } return null; }, this.getFoldedRowCount = function(first, last) { for(var foldData = this.$foldData, rowCount = last - first + 1, i = 0; i < foldData.length; i++){ var foldLine = foldData[i], end = foldLine.end.row, start = foldLine.start.row; if (end >= last) { start < last && (start >= first ? rowCount -= last - start : rowCount = 0); break; } end >= first && (start >= first ? // fold inside range rowCount -= end - start : rowCount -= end - first + 1); } return rowCount; }, this.$addFoldLine = function(foldLine) { return this.$foldData.push(foldLine), this.$foldData.sort(function(a, b) { return a.start.row - b.start.row; }), foldLine; }, this.addFold = function(placeholder, range) { var fold, foldData = this.$foldData, added = !1; placeholder instanceof Fold ? fold = placeholder : (fold = new Fold(range, placeholder)).collapseChildren = range.collapseChildren, this.$clipRangeToDocument(fold.range); var startRow = fold.start.row, startColumn = fold.start.column, endRow = fold.end.row, endColumn = fold.end.column, startFold = this.getFoldAt(startRow, startColumn, 1), endFold = this.getFoldAt(endRow, endColumn, -1); if (startFold && endFold == startFold) return startFold.addSubFold(fold); startFold && !startFold.range.isStart(startRow, startColumn) && this.removeFold(startFold), endFold && !endFold.range.isEnd(endRow, endColumn) && this.removeFold(endFold); var folds = this.getFoldsInRange(fold.range); folds.length > 0 && (this.removeFolds(folds), fold.collapseChildren || folds.forEach(function(subFold) { fold.addSubFold(subFold); })); for(var i = 0; i < foldData.length; i++){ var foldLine = foldData[i]; if (endRow == foldLine.start.row) { foldLine.addFold(fold), added = !0; break; } if (startRow == foldLine.end.row) { if (foldLine.addFold(fold), added = !0, !fold.sameRow) { var foldLineNext = foldData[i + 1]; foldLineNext && foldLineNext.start.row == endRow && foldLine.merge(foldLineNext); } break; } if (endRow <= foldLine.start.row) break; } return added || (foldLine = this.$addFoldLine(new FoldLine(this.$foldData, fold))), this.$useWrapMode ? this.$updateWrapData(foldLine.start.row, foldLine.start.row) : this.$updateRowLengthCache(foldLine.start.row, foldLine.start.row), this.$modified = !0, this._signal("changeFold", { data: fold, action: "add" }), fold; }, this.addFolds = function(folds) { folds.forEach(function(fold) { this.addFold(fold); }, this); }, this.removeFold = function(fold) { var foldLine = fold.foldLine, startRow = foldLine.start.row, endRow = foldLine.end.row, foldLines = this.$foldData, folds = foldLine.folds; if (1 == folds.length) foldLines.splice(foldLines.indexOf(foldLine), 1); else if (foldLine.range.isEnd(fold.end.row, fold.end.column)) folds.pop(), foldLine.end.row = folds[folds.length - 1].end.row, foldLine.end.column = folds[folds.length - 1].end.column; else if (foldLine.range.isStart(fold.start.row, fold.start.column)) folds.shift(), foldLine.start.row = folds[0].start.row, foldLine.start.column = folds[0].start.column; else if (fold.sameRow) folds.splice(folds.indexOf(fold), 1); else { var newFoldLine = foldLine.split(fold.start.row, fold.start.column); (folds = newFoldLine.folds).shift(), newFoldLine.start.row = folds[0].start.row, newFoldLine.start.column = folds[0].start.column; } this.$updating || (this.$useWrapMode ? this.$updateWrapData(startRow, endRow) : this.$updateRowLengthCache(startRow, endRow)), this.$modified = !0, this._signal("changeFold", { data: fold, action: "remove" }); }, this.removeFolds = function(folds) { for(var cloneFolds = [], i = 0; i < folds.length; i++)cloneFolds.push(folds[i]); cloneFolds.forEach(function(fold) { this.removeFold(fold); }, this), this.$modified = !0; }, this.expandFold = function(fold) { this.removeFold(fold), fold.subFolds.forEach(function(subFold) { fold.restoreRange(subFold), this.addFold(subFold); }, this), fold.collapseChildren > 0 && this.foldAll(fold.start.row + 1, fold.end.row, fold.collapseChildren - 1), fold.subFolds = []; }, this.expandFolds = function(folds) { folds.forEach(function(fold) { this.expandFold(fold); }, this); }, this.unfold = function(location, expandInner) { if (null == location) range = new Range(0, 0, this.getLength(), 0), null == expandInner && (expandInner = !0); else if ("number" == typeof location) range = new Range(location, 0, location, this.getLine(location).length); else if ("row" in location) range = Range.fromPoints(location, location); else { if (Array.isArray(location)) return folds = [], location.forEach(function(range) { folds = folds.concat(this.unfold(range)); }, this), folds; range = location; } for(var range, folds = this.getFoldsInRangeList(range), outermostFolds = folds; 1 == folds.length && 0 > Range.comparePoints(folds[0].start, range.start) && Range.comparePoints(folds[0].end, range.end) > 0;)this.expandFolds(folds), folds = this.getFoldsInRangeList(range); if (!1 != expandInner ? this.removeFolds(folds) : this.expandFolds(folds), outermostFolds.length) return outermostFolds; }, this.isRowFolded = function(docRow, startFoldRow) { return !!this.getFoldLine(docRow, startFoldRow); }, this.getRowFoldEnd = function(docRow, startFoldRow) { var foldLine = this.getFoldLine(docRow, startFoldRow); return foldLine ? foldLine.end.row : docRow; }, this.getRowFoldStart = function(docRow, startFoldRow) { var foldLine = this.getFoldLine(docRow, startFoldRow); return foldLine ? foldLine.start.row : docRow; }, this.getFoldDisplayLine = function(foldLine, endRow, endColumn, startRow, startColumn) { null == startRow && (startRow = foldLine.start.row), null == startColumn && (startColumn = 0), null == endRow && (endRow = foldLine.end.row), null == endColumn && (endColumn = this.getLine(endRow).length); var doc = this.doc, textLine = ""; return foldLine.walk(function(placeholder, row, column, lastColumn) { if (!(row < startRow)) { if (row == startRow) { if (column < startColumn) return; lastColumn = Math.max(startColumn, lastColumn); } null != placeholder ? textLine += placeholder : textLine += doc.getLine(row).substring(lastColumn, column); } }, endRow, endColumn), textLine; }, this.getDisplayLine = function(row, endColumn, startRow, startColumn) { var line, foldLine = this.getFoldLine(row); return foldLine ? this.getFoldDisplayLine(foldLine, row, endColumn, startRow, startColumn) : (line = this.doc.getLine(row)).substring(startColumn || 0, endColumn || line.length); }, this.$cloneFoldData = function() { var fd = []; return fd = this.$foldData.map(function(foldLine) { var folds = foldLine.folds.map(function(fold) { return fold.clone(); }); return new FoldLine(fd, folds); }); }, this.toggleFold = function(tryToUnfold) { var fold, bracketPos, range = this.selection.getRange(); if (range.isEmpty()) { var cursor = range.start; if (fold = this.getFoldAt(cursor.row, cursor.column)) { this.expandFold(fold); return; } (bracketPos = this.findMatchingBracket(cursor)) ? 1 == range.comparePoint(bracketPos) ? range.end = bracketPos : (range.start = bracketPos, range.start.column++, range.end.column--) : (bracketPos = this.findMatchingBracket({ row: cursor.row, column: cursor.column + 1 })) ? (1 == range.comparePoint(bracketPos) ? range.end = bracketPos : range.start = bracketPos, range.start.column++) : range = this.getCommentFoldRange(cursor.row, cursor.column) || range; } else { var folds = this.getFoldsInRange(range); if (tryToUnfold && folds.length) { this.expandFolds(folds); return; } 1 == folds.length && (fold = folds[0]); } if (fold || (fold = this.getFoldAt(range.start.row, range.start.column)), fold && fold.range.toString() == range.toString()) { this.expandFold(fold); return; } var placeholder = "..."; if (!range.isMultiLine()) { if ((placeholder = this.getTextRange(range)).length < 4) return; placeholder = placeholder.trim().substring(0, 2) + ".."; } this.addFold(placeholder, range); }, this.getCommentFoldRange = function(row, column, dir) { var iterator = new TokenIterator(this, row, column), token = iterator.getCurrentToken(), type = token && token.type; if (token && /^comment|string/.test(type)) { "comment" == (type = type.match(/comment|string/)[0]) && (type += "|doc-start"); var re = new RegExp(type), range = new Range(); if (1 != dir) { do token = iterator.stepBackward(); while (token && re.test(token.type)) iterator.stepForward(); } if (range.start.row = iterator.getCurrentTokenRow(), range.start.column = iterator.getCurrentTokenColumn() + 2, iterator = new TokenIterator(this, row, column), -1 != dir) { var lastRow = -1; do if (token = iterator.stepForward(), -1 == lastRow) { var state = this.getState(iterator.$row); re.test(state) || (lastRow = iterator.$row); } else if (iterator.$row > lastRow) break; while (token && re.test(token.type)) token = iterator.stepBackward(); } else token = iterator.getCurrentToken(); return range.end.row = iterator.getCurrentTokenRow(), range.end.column = iterator.getCurrentTokenColumn() + token.value.length - 2, range; } }, this.foldAll = function(startRow, endRow, depth, test) { void 0 == depth && (depth = 100000); // JSON.stringify doesn't hanle Infinity var foldWidgets = this.foldWidgets; if (foldWidgets) { endRow = endRow || this.getLength(), startRow = startRow || 0; for(var row = startRow; row < endRow; row++)if (null == foldWidgets[row] && (foldWidgets[row] = this.getFoldWidget(row)), "start" == foldWidgets[row] && (!test || test(row))) { var range = this.getFoldWidgetRange(row); range && range.isMultiLine() && range.end.row <= endRow && range.start.row >= startRow && (row = range.end.row, range.collapseChildren = depth, this.addFold("...", range)); } } // mode doesn't support folding }, this.foldToLevel = function(level) { for(this.foldAll(); level-- > 0;)this.unfold(null, !1); }, this.foldAllComments = function() { var session = this; this.foldAll(null, null, null, function(row) { for(var tokens = session.getTokens(row), i = 0; i < tokens.length; i++){ var token = tokens[i]; if (!("text" == token.type && /^\s+$/.test(token.value))) { if (/comment/.test(token.type)) return !0; return !1; } } }); }, this.$foldStyles = { manual: 1, markbegin: 1, markbeginend: 1 }, this.$foldStyle = "markbegin", this.setFoldStyle = function(style) { if (!this.$foldStyles[style]) throw Error("invalid fold style: " + style + "[" + Object.keys(this.$foldStyles).join(", ") + "]"); if (this.$foldStyle != style) { this.$foldStyle = style, "manual" == style && this.unfold(); var mode = this.$foldMode; this.$setFolding(null), this.$setFolding(mode); } }, this.$setFolding = function(foldMode) { if (this.$foldMode != foldMode) { if (this.$foldMode = foldMode, this.off("change", this.$updateFoldWidgets), this.off("tokenizerUpdate", this.$tokenizerUpdateFoldWidgets), this._signal("changeAnnotation"), !foldMode || "manual" == this.$foldStyle) { this.foldWidgets = null; return; } this.foldWidgets = [], this.getFoldWidget = foldMode.getFoldWidget.bind(foldMode, this, this.$foldStyle), this.getFoldWidgetRange = foldMode.getFoldWidgetRange.bind(foldMode, this, this.$foldStyle), this.$updateFoldWidgets = this.updateFoldWidgets.bind(this), this.$tokenizerUpdateFoldWidgets = this.tokenizerUpdateFoldWidgets.bind(this), this.on("change", this.$updateFoldWidgets), this.on("tokenizerUpdate", this.$tokenizerUpdateFoldWidgets); } }, this.getParentFoldRangeData = function(row, ignoreCurrent) { var fw = this.foldWidgets; if (!fw || ignoreCurrent && fw[row]) return {}; for(var firstRange, i = row - 1; i >= 0;){ var c = fw[i]; if (null == c && (c = fw[i] = this.getFoldWidget(i)), "start" == c) { var range = this.getFoldWidgetRange(i); if (firstRange || (firstRange = range), range && range.end.row >= row) break; } i--; } return { range: -1 !== i && range, firstRange: firstRange }; }, this.onFoldWidgetClick = function(row, e) { var options = { children: (e = e.domEvent).shiftKey, all: e.ctrlKey || e.metaKey, siblings: e.altKey }; if (!this.$toggleFoldWidget(row, options)) { var el = e.target || e.srcElement; el && /ace_fold-widget/.test(el.className) && (el.className += " ace_invalid"); } }, this.$toggleFoldWidget = function(row, options) { if (this.getFoldWidget) { var type = this.getFoldWidget(row), line = this.getLine(row), dir = "end" === type ? -1 : 1, fold = this.getFoldAt(row, -1 === dir ? 0 : line.length, dir); if (fold) return options.children || options.all ? this.removeFold(fold) : this.expandFold(fold), fold; var range = this.getFoldWidgetRange(row, !0); if (range && !range.isMultiLine() && (fold = this.getFoldAt(range.start.row, range.start.column, 1)) && range.isEqual(fold.range)) return this.removeFold(fold), fold; if (options.siblings) { var data = this.getParentFoldRangeData(row); if (data.range) var startRow = data.range.start.row + 1, endRow = data.range.end.row; this.foldAll(startRow, endRow, 10000 * !!options.all); } else options.children ? (endRow = range ? range.end.row : this.getLength(), this.foldAll(row + 1, endRow, 10000 * !!options.all)) : range && (options.all && (range.collapseChildren = 10000), this.addFold("...", range)); return range; } }, this.toggleFoldWidget = function(toggleParent) { var row = this.selection.getCursor().row; row = this.getRowFoldStart(row); var range = this.$toggleFoldWidget(row, {}); if (!range) { var data = this.getParentFoldRangeData(row, !0); if (range = data.range || data.firstRange) { row = range.start.row; var fold = this.getFoldAt(row, this.getLine(row).length, 1); fold ? this.removeFold(fold) : this.addFold("...", range); } } }, this.updateFoldWidgets = function(delta) { var firstRow = delta.start.row, len = delta.end.row - firstRow; if (0 === len) this.foldWidgets[firstRow] = null; else if ("remove" == delta.action) this.foldWidgets.splice(firstRow, len + 1, null); else { var args = Array(len + 1); args.unshift(firstRow, 1), this.foldWidgets.splice.apply(this.foldWidgets, args); } }, this.tokenizerUpdateFoldWidgets = function(e) { var rows = e.data; rows.first != rows.last && this.foldWidgets.length > rows.first && this.foldWidgets.splice(rows.first, this.foldWidgets.length); }; }; }), ace.define("ace/edit_session/bracket_match", [ "require", "exports", "module", "ace/token_iterator", "ace/range" ], function(require, exports, module) { "use strict"; var TokenIterator = require("../token_iterator").TokenIterator, Range = require("../range").Range; exports.BracketMatch = function() { this.findMatchingBracket = function(position, chr) { if (0 == position.column) return null; var charBeforeCursor = chr || this.getLine(position.row).charAt(position.column - 1); if ("" == charBeforeCursor) return null; var match = charBeforeCursor.match(/([\(\[\{])|([\)\]\}])/); return match ? match[1] ? this.$findClosingBracket(match[1], position) : this.$findOpeningBracket(match[2], position) : null; }, this.getBracketRange = function(pos) { var range, line = this.getLine(pos.row), before = !0, chr = line.charAt(pos.column - 1), match = chr && chr.match(/([\(\[\{])|([\)\]\}])/); if (match || (chr = line.charAt(pos.column), pos = { row: pos.row, column: pos.column + 1 }, match = chr && chr.match(/([\(\[\{])|([\)\]\}])/), before = !1), !match) return null; if (match[1]) { var bracketPos = this.$findClosingBracket(match[1], pos); if (!bracketPos) return null; range = Range.fromPoints(pos, bracketPos), !before && (range.end.column++, range.start.column--), range.cursor = range.end; } else { var bracketPos = this.$findOpeningBracket(match[2], pos); if (!bracketPos) return null; range = Range.fromPoints(bracketPos, pos), !before && (range.start.column++, range.end.column--), range.cursor = range.start; } return range; }, this.getMatchingBracketRanges = function(pos) { var line = this.getLine(pos.row), chr = line.charAt(pos.column - 1), match = chr && chr.match(/([\(\[\{])|([\)\]\}])/); if (match || (chr = line.charAt(pos.column), pos = { row: pos.row, column: pos.column + 1 }, match = chr && chr.match(/([\(\[\{])|([\)\]\}])/)), !match) return null; var startRange = new Range(pos.row, pos.column - 1, pos.row, pos.column), bracketPos = match[1] ? this.$findClosingBracket(match[1], pos) : this.$findOpeningBracket(match[2], pos); return bracketPos ? [ startRange, new Range(bracketPos.row, bracketPos.column, bracketPos.row, bracketPos.column + 1) ] : [ startRange ]; }, this.$brackets = { ")": "(", "(": ")", "]": "[", "[": "]", "{": "}", "}": "{", "<": ">", ">": "<" }, this.$findOpeningBracket = function(bracket, position, typeRe) { var openBracket = this.$brackets[bracket], depth = 1, iterator = new TokenIterator(this, position.row, position.column), token = iterator.getCurrentToken(); if (token || (token = iterator.stepForward()), token) { typeRe || (typeRe = RegExp("(\\.?" + token.type.replace(".", "\\.").replace("rparen", ".paren").replace(/\b(?:end)\b/, "(?:start|begin|end)") + ")+")); for(var valueIndex = position.column - iterator.getCurrentTokenColumn() - 2, value = token.value;;){ for(; valueIndex >= 0;){ var chr = value.charAt(valueIndex); if (chr == openBracket) { if (0 == (depth -= 1)) return { row: iterator.getCurrentTokenRow(), column: valueIndex + iterator.getCurrentTokenColumn() }; } else chr == bracket && (depth += 1); valueIndex -= 1; } do token = iterator.stepBackward(); while (token && !typeRe.test(token.type)) if (null == token) break; valueIndex = (value = token.value).length - 1; } return null; } }, this.$findClosingBracket = function(bracket, position, typeRe) { var closingBracket = this.$brackets[bracket], depth = 1, iterator = new TokenIterator(this, position.row, position.column), token = iterator.getCurrentToken(); if (token || (token = iterator.stepForward()), token) { typeRe || (typeRe = RegExp("(\\.?" + token.type.replace(".", "\\.").replace("lparen", ".paren").replace(/\b(?:start|begin)\b/, "(?:start|begin|end)") + ")+")); for(var valueIndex = position.column - iterator.getCurrentTokenColumn();;){ for(var value = token.value, valueLength = value.length; valueIndex < valueLength;){ var chr = value.charAt(valueIndex); if (chr == closingBracket) { if (0 == (depth -= 1)) return { row: iterator.getCurrentTokenRow(), column: valueIndex + iterator.getCurrentTokenColumn() }; } else chr == bracket && (depth += 1); valueIndex += 1; } do token = iterator.stepForward(); while (token && !typeRe.test(token.type)) if (null == token) break; valueIndex = 0; } return null; } }; }; }), ace.define("ace/edit_session", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/lang", "ace/bidihandler", "ace/config", "ace/lib/event_emitter", "ace/selection", "ace/mode/text", "ace/range", "ace/document", "ace/background_tokenizer", "ace/search_highlight", "ace/edit_session/folding", "ace/edit_session/bracket_match" ], function(require, exports, module) { "use strict"; var oop = require("./lib/oop"), lang = require("./lib/lang"), BidiHandler = require("./bidihandler").BidiHandler, config = require("./config"), EventEmitter = require("./lib/event_emitter").EventEmitter, Selection = require("./selection").Selection, TextMode = require("./mode/text").Mode, Range = require("./range").Range, Document = require("./document").Document, BackgroundTokenizer = require("./background_tokenizer").BackgroundTokenizer, SearchHighlight = require("./search_highlight").SearchHighlight, EditSession = function(text, mode) { this.$breakpoints = [], this.$decorations = [], this.$frontMarkers = {}, this.$backMarkers = {}, this.$markerId = 1, this.$undoSelect = !0, this.$foldData = [], this.id = "session" + ++EditSession.$uid, this.$foldData.toString = function() { return this.join("\n"); }, this.on("changeFold", this.onChangeFold.bind(this)), this.$onChange = this.onChange.bind(this), "object" == typeof text && text.getLine || (text = new Document(text)), this.setDocument(text), this.selection = new Selection(this), this.$bidiHandler = new BidiHandler(this), config.resetOptions(this), this.setMode(mode), config._signal("session", this); }; EditSession.$uid = 0, (function() { oop.implement(this, EventEmitter), this.setDocument = function(doc) { this.doc && this.doc.off("change", this.$onChange), this.doc = doc, doc.on("change", this.$onChange), this.bgTokenizer && this.bgTokenizer.setDocument(this.getDocument()), this.resetCaches(); }, this.getDocument = function() { return this.doc; }, this.$resetRowCache = function(docRow) { if (!docRow) { this.$docRowCache = [], this.$screenRowCache = []; return; } var l = this.$docRowCache.length, i = this.$getRowCacheIndex(this.$docRowCache, docRow) + 1; l > i && (this.$docRowCache.splice(i, l), this.$screenRowCache.splice(i, l)); }, this.$getRowCacheIndex = function(cacheArray, val) { for(var low = 0, hi = cacheArray.length - 1; low <= hi;){ var mid = low + hi >> 1, c = cacheArray[mid]; if (val > c) low = mid + 1; else { if (!(val < c)) return mid; hi = mid - 1; } } return low - 1; }, this.resetCaches = function() { this.$modified = !0, this.$wrapData = [], this.$rowLengthCache = [], this.$resetRowCache(0), this.bgTokenizer && this.bgTokenizer.start(0); }, this.onChangeFold = function(e) { var fold = e.data; this.$resetRowCache(fold.start.row); }, this.onChange = function(delta) { this.$modified = !0, this.$bidiHandler.onChange(delta), this.$resetRowCache(delta.start.row); var removedFolds = this.$updateInternalDataOnChange(delta); !this.$fromUndo && this.$undoManager && (removedFolds && removedFolds.length && (this.$undoManager.add({ action: "removeFolds", folds: removedFolds }, this.mergeUndoDeltas), this.mergeUndoDeltas = !0), this.$undoManager.add(delta, this.mergeUndoDeltas), this.mergeUndoDeltas = !0, this.$informUndoManager.schedule()), this.bgTokenizer && this.bgTokenizer.$updateOnChange(delta), this._signal("change", delta); }, this.setValue = function(text) { this.doc.setValue(text), this.selection.moveTo(0, 0), this.$resetRowCache(0), this.setUndoManager(this.$undoManager), this.getUndoManager().reset(); }, this.getValue = this.toString = function() { return this.doc.getValue(); }, this.getSelection = function() { return this.selection; }, this.getState = function(row) { return this.bgTokenizer.getState(row); }, this.getTokens = function(row) { return this.bgTokenizer.getTokens(row); }, this.getTokenAt = function(row, column) { var token, tokens = this.bgTokenizer.getTokens(row), c = 0; if (null == column) { var i = tokens.length - 1; c = this.getLine(row).length; } else for(var i = 0; i < tokens.length && !((c += tokens[i].value.length) >= column); i++); return (token = tokens[i]) ? (token.index = i, token.start = c - token.value.length, token) : null; }, this.setUndoManager = function(undoManager) { if (this.$undoManager = undoManager, this.$informUndoManager && this.$informUndoManager.cancel(), undoManager) { var self1 = this; undoManager.addSession(this), this.$syncInformUndoManager = function() { self1.$informUndoManager.cancel(), self1.mergeUndoDeltas = !1; }, this.$informUndoManager = lang.delayedCall(this.$syncInformUndoManager); } else this.$syncInformUndoManager = function() {}; }, this.markUndoGroup = function() { this.$syncInformUndoManager && this.$syncInformUndoManager(); }, this.$defaultUndoManager = { undo: function() {}, redo: function() {}, hasUndo: function() {}, hasRedo: function() {}, reset: function() {}, add: function() {}, addSelection: function() {}, startNewGroup: function() {}, addSession: function() {} }, this.getUndoManager = function() { return this.$undoManager || this.$defaultUndoManager; }, this.getTabString = function() { return this.getUseSoftTabs() ? lang.stringRepeat(" ", this.getTabSize()) : "\t"; }, this.setUseSoftTabs = function(val) { this.setOption("useSoftTabs", val); }, this.getUseSoftTabs = function() { return this.$useSoftTabs && !this.$mode.$indentWithTabs; }, this.setTabSize = function(tabSize) { this.setOption("tabSize", tabSize); }, this.getTabSize = function() { return this.$tabSize; }, this.isTabStop = function(position) { return this.$useSoftTabs && position.column % this.$tabSize == 0; }, this.setNavigateWithinSoftTabs = function(navigateWithinSoftTabs) { this.setOption("navigateWithinSoftTabs", navigateWithinSoftTabs); }, this.getNavigateWithinSoftTabs = function() { return this.$navigateWithinSoftTabs; }, this.$overwrite = !1, this.setOverwrite = function(overwrite) { this.setOption("overwrite", overwrite); }, this.getOverwrite = function() { return this.$overwrite; }, this.toggleOverwrite = function() { this.setOverwrite(!this.$overwrite); }, this.addGutterDecoration = function(row, className) { this.$decorations[row] || (this.$decorations[row] = ""), this.$decorations[row] += " " + className, this._signal("changeBreakpoint", {}); }, this.removeGutterDecoration = function(row, className) { this.$decorations[row] = (this.$decorations[row] || "").replace(" " + className, ""), this._signal("changeBreakpoint", {}); }, this.getBreakpoints = function() { return this.$breakpoints; }, this.setBreakpoints = function(rows) { this.$breakpoints = []; for(var i = 0; i < rows.length; i++)this.$breakpoints[rows[i]] = "ace_breakpoint"; this._signal("changeBreakpoint", {}); }, this.clearBreakpoints = function() { this.$breakpoints = [], this._signal("changeBreakpoint", {}); }, this.setBreakpoint = function(row, className) { void 0 === className && (className = "ace_breakpoint"), className ? this.$breakpoints[row] = className : delete this.$breakpoints[row], this._signal("changeBreakpoint", {}); }, this.clearBreakpoint = function(row) { delete this.$breakpoints[row], this._signal("changeBreakpoint", {}); }, this.addMarker = function(range, clazz, type, inFront) { var id = this.$markerId++, marker = { range: range, type: type || "line", renderer: "function" == typeof type ? type : null, clazz: clazz, inFront: !!inFront, id: id }; return inFront ? (this.$frontMarkers[id] = marker, this._signal("changeFrontMarker")) : (this.$backMarkers[id] = marker, this._signal("changeBackMarker")), id; }, this.addDynamicMarker = function(marker, inFront) { if (marker.update) { var id = this.$markerId++; return marker.id = id, marker.inFront = !!inFront, inFront ? (this.$frontMarkers[id] = marker, this._signal("changeFrontMarker")) : (this.$backMarkers[id] = marker, this._signal("changeBackMarker")), marker; } }, this.removeMarker = function(markerId) { var marker = this.$frontMarkers[markerId] || this.$backMarkers[markerId]; if (marker) { var markers = marker.inFront ? this.$frontMarkers : this.$backMarkers; delete markers[markerId], this._signal(marker.inFront ? "changeFrontMarker" : "changeBackMarker"); } }, this.getMarkers = function(inFront) { return inFront ? this.$frontMarkers : this.$backMarkers; }, this.highlight = function(re) { if (!this.$searchHighlight) { var highlight = new SearchHighlight(null, "ace_selected-word", "text"); this.$searchHighlight = this.addDynamicMarker(highlight); } this.$searchHighlight.setRegexp(re); }, this.highlightLines = function(startRow, endRow, clazz, inFront) { "number" != typeof endRow && (clazz = endRow, endRow = startRow), clazz || (clazz = "ace_step"); var range = new Range(startRow, 0, endRow, 1 / 0); return range.id = this.addMarker(range, clazz, "fullLine", inFront), range; }, this.setAnnotations = function(annotations) { this.$annotations = annotations, this._signal("changeAnnotation", {}); }, this.getAnnotations = function() { return this.$annotations || []; }, this.clearAnnotations = function() { this.setAnnotations([]); }, this.$detectNewLine = function(text) { var match = text.match(/^.*?(\r?\n)/m); match ? this.$autoNewLine = match[1] : this.$autoNewLine = "\n"; }, this.getWordRange = function(row, column) { var line = this.getLine(row), inToken = !1; if (column > 0 && (inToken = !!line.charAt(column - 1).match(this.tokenRe)), inToken || (inToken = !!line.charAt(column).match(this.tokenRe)), inToken) var re = this.tokenRe; else if (/^\s+$/.test(line.slice(column - 1, column + 1))) var re = /\s/; else var re = this.nonTokenRe; var start = column; if (start > 0) { do start--; while (start >= 0 && line.charAt(start).match(re)) start++; } for(var end = column; end < line.length && line.charAt(end).match(re);)end++; return new Range(row, start, row, end); }, this.getAWordRange = function(row, column) { for(var wordRange = this.getWordRange(row, column), line = this.getLine(wordRange.end.row); line.charAt(wordRange.end.column).match(/[ \t]/);)wordRange.end.column += 1; return wordRange; }, this.setNewLineMode = function(newLineMode) { this.doc.setNewLineMode(newLineMode); }, this.getNewLineMode = function() { return this.doc.getNewLineMode(); }, this.setUseWorker = function(useWorker) { this.setOption("useWorker", useWorker); }, this.getUseWorker = function() { return this.$useWorker; }, this.onReloadTokenizer = function(e) { var rows = e.data; this.bgTokenizer.start(rows.first), this._signal("tokenizerUpdate", e); }, this.$modes = config.$modes, this.$mode = null, this.$modeId = null, this.setMode = function(mode, cb) { if (mode && "object" == typeof mode) { if (mode.getTokenizer) return this.$onChangeMode(mode); var options = mode, path = options.path; } else path = mode || "ace/mode/text"; if (this.$modes["ace/mode/text"] || (this.$modes["ace/mode/text"] = new TextMode()), this.$modes[path] && !options) { this.$onChangeMode(this.$modes[path]), cb && cb(); return; } this.$modeId = path, config.loadModule([ "mode", path ], (function(m) { if (this.$modeId !== path) return cb && cb(); this.$modes[path] && !options ? this.$onChangeMode(this.$modes[path]) : m && m.Mode && (m = new m.Mode(options), options || (this.$modes[path] = m, m.$id = path), this.$onChangeMode(m)), cb && cb(); }).bind(this)), this.$mode || this.$onChangeMode(this.$modes["ace/mode/text"], !0); }, this.$onChangeMode = function(mode, $isPlaceholder) { if ($isPlaceholder || (this.$modeId = mode.$id), this.$mode !== mode) { var oldMode = this.$mode; this.$mode = mode, this.$stopWorker(), this.$useWorker && this.$startWorker(); var tokenizer = mode.getTokenizer(); if (void 0 !== tokenizer.on) { var onReloadTokenizer = this.onReloadTokenizer.bind(this); tokenizer.on("update", onReloadTokenizer); } if (this.bgTokenizer) this.bgTokenizer.setTokenizer(tokenizer); else { this.bgTokenizer = new BackgroundTokenizer(tokenizer); var _self = this; this.bgTokenizer.on("update", function(e) { _self._signal("tokenizerUpdate", e); }); } this.bgTokenizer.setDocument(this.getDocument()), this.tokenRe = mode.tokenRe, this.nonTokenRe = mode.nonTokenRe, $isPlaceholder || (mode.attachToSession && mode.attachToSession(this), this.$options.wrapMethod.set.call(this, this.$wrapMethod), this.$setFolding(mode.foldingRules), this.bgTokenizer.start(0), this._emit("changeMode", { oldMode: oldMode, mode: mode })); } }, this.$stopWorker = function() { this.$worker && (this.$worker.terminate(), this.$worker = null); }, this.$startWorker = function() { try { this.$worker = this.$mode.createWorker(this); } catch (e) { config.warn("Could not load worker", e), this.$worker = null; } }, this.getMode = function() { return this.$mode; }, this.$scrollTop = 0, this.setScrollTop = function(scrollTop) { this.$scrollTop === scrollTop || isNaN(scrollTop) || (this.$scrollTop = scrollTop, this._signal("changeScrollTop", scrollTop)); }, this.getScrollTop = function() { return this.$scrollTop; }, this.$scrollLeft = 0, this.setScrollLeft = function(scrollLeft) { this.$scrollLeft === scrollLeft || isNaN(scrollLeft) || (this.$scrollLeft = scrollLeft, this._signal("changeScrollLeft", scrollLeft)); }, this.getScrollLeft = function() { return this.$scrollLeft; }, this.getScreenWidth = function() { return (this.$computeWidth(), this.lineWidgets) ? Math.max(this.getLineWidgetMaxWidth(), this.screenWidth) : this.screenWidth; }, this.getLineWidgetMaxWidth = function() { if (null != this.lineWidgetsWidth) return this.lineWidgetsWidth; var width = 0; return this.lineWidgets.forEach(function(w) { w && w.screenWidth > width && (width = w.screenWidth); }), this.lineWidgetWidth = width; }, this.$computeWidth = function(force) { if (this.$modified || force) { if (this.$modified = !1, this.$useWrapMode) return this.screenWidth = this.$wrapLimit; for(var lines = this.doc.getAllLines(), cache = this.$rowLengthCache, longestScreenLine = 0, foldIndex = 0, foldLine = this.$foldData[foldIndex], foldStart = foldLine ? foldLine.start.row : 1 / 0, len = lines.length, i = 0; i < len; i++){ if (i > foldStart) { if ((i = foldLine.end.row + 1) >= len) break; foldStart = (foldLine = this.$foldData[foldIndex++]) ? foldLine.start.row : 1 / 0; } null == cache[i] && (cache[i] = this.$getStringScreenWidth(lines[i])[0]), cache[i] > longestScreenLine && (longestScreenLine = cache[i]); } this.screenWidth = longestScreenLine; } }, this.getLine = function(row) { return this.doc.getLine(row); }, this.getLines = function(firstRow, lastRow) { return this.doc.getLines(firstRow, lastRow); }, this.getLength = function() { return this.doc.getLength(); }, this.getTextRange = function(range) { return this.doc.getTextRange(range || this.selection.getRange()); }, this.insert = function(position, text) { return this.doc.insert(position, text); }, this.remove = function(range) { return this.doc.remove(range); }, this.removeFullLines = function(firstRow, lastRow) { return this.doc.removeFullLines(firstRow, lastRow); }, this.undoChanges = function(deltas, dontSelect) { if (deltas.length) { this.$fromUndo = !0; for(var i = deltas.length - 1; -1 != i; i--){ var delta = deltas[i]; "insert" == delta.action || "remove" == delta.action ? this.doc.revertDelta(delta) : delta.folds && this.addFolds(delta.folds); } !dontSelect && this.$undoSelect && (deltas.selectionBefore ? this.selection.fromJSON(deltas.selectionBefore) : this.selection.setRange(this.$getUndoSelection(deltas, !0))), this.$fromUndo = !1; } }, this.redoChanges = function(deltas, dontSelect) { if (deltas.length) { this.$fromUndo = !0; for(var i = 0; i < deltas.length; i++){ var delta = deltas[i]; ("insert" == delta.action || "remove" == delta.action) && this.doc.$safeApplyDelta(delta); } !dontSelect && this.$undoSelect && (deltas.selectionAfter ? this.selection.fromJSON(deltas.selectionAfter) : this.selection.setRange(this.$getUndoSelection(deltas, !1))), this.$fromUndo = !1; } }, this.setUndoSelect = function(enable) { this.$undoSelect = enable; }, this.$getUndoSelection = function(deltas, isUndo) { function isInsert(delta) { return isUndo ? "insert" !== delta.action : "insert" === delta.action; } for(var range, point, i = 0; i < deltas.length; i++){ var delta = deltas[i]; if (delta.start) { if (!range) { range = isInsert(delta) ? Range.fromPoints(delta.start, delta.end) : Range.fromPoints(delta.start, delta.start); continue; } isInsert(delta) ? (point = delta.start, -1 == range.compare(point.row, point.column) && range.setStart(point), point = delta.end, 1 == range.compare(point.row, point.column) && range.setEnd(point)) : (point = delta.start, -1 == range.compare(point.row, point.column) && (range = Range.fromPoints(delta.start, delta.start))); } // skip folds } return range; }, this.replace = function(range, text) { return this.doc.replace(range, text); }, this.moveText = function(fromRange, toPosition, copy) { var text = this.getTextRange(fromRange), folds = this.getFoldsInRange(fromRange), toRange = Range.fromPoints(toPosition, toPosition); if (!copy) { this.remove(fromRange); var rowDiff = fromRange.start.row - fromRange.end.row, collDiff = rowDiff ? -fromRange.end.column : fromRange.start.column - fromRange.end.column; collDiff && (toRange.start.row == fromRange.end.row && toRange.start.column > fromRange.end.column && (toRange.start.column += collDiff), toRange.end.row == fromRange.end.row && toRange.end.column > fromRange.end.column && (toRange.end.column += collDiff)), rowDiff && toRange.start.row >= fromRange.end.row && (toRange.start.row += rowDiff, toRange.end.row += rowDiff); } if (toRange.end = this.insert(toRange.start, text), folds.length) { var oldStart = fromRange.start, newStart = toRange.start, rowDiff = newStart.row - oldStart.row, collDiff = newStart.column - oldStart.column; this.addFolds(folds.map(function(x) { return (x = x.clone()).start.row == oldStart.row && (x.start.column += collDiff), x.end.row == oldStart.row && (x.end.column += collDiff), x.start.row += rowDiff, x.end.row += rowDiff, x; })); } return toRange; }, this.indentRows = function(startRow, endRow, indentString) { indentString = indentString.replace(/\t/g, this.getTabString()); for(var row = startRow; row <= endRow; row++)this.doc.insertInLine({ row: row, column: 0 }, indentString); }, this.outdentRows = function(range) { for(var rowRange = range.collapseRows(), deleteRange = new Range(0, 0, 0, 0), size = this.getTabSize(), i = rowRange.start.row; i <= rowRange.end.row; ++i){ var line = this.getLine(i); deleteRange.start.row = i, deleteRange.end.row = i; for(var j = 0; j < size && " " == line.charAt(j); ++j); j < size && "\t" == line.charAt(j) ? (deleteRange.start.column = j, deleteRange.end.column = j + 1) : (deleteRange.start.column = 0, deleteRange.end.column = j), this.remove(deleteRange); } }, this.$moveLines = function(firstRow, lastRow, dir) { if (firstRow = this.getRowFoldStart(firstRow), lastRow = this.getRowFoldEnd(lastRow), dir < 0) { var row = this.getRowFoldStart(firstRow + dir); if (row < 0) return 0; var diff = row - firstRow; } else if (dir > 0) { var row = this.getRowFoldEnd(lastRow + dir); if (row > this.doc.getLength() - 1) return 0; var diff = row - lastRow; } else { firstRow = this.$clipRowToDocument(firstRow); var diff = (lastRow = this.$clipRowToDocument(lastRow)) - firstRow + 1; } var range = new Range(firstRow, 0, lastRow, Number.MAX_VALUE), folds = this.getFoldsInRange(range).map(function(x) { return x = x.clone(), x.start.row += diff, x.end.row += diff, x; }), lines = 0 == dir ? this.doc.getLines(firstRow, lastRow) : this.doc.removeFullLines(firstRow, lastRow); return this.doc.insertFullLines(firstRow + diff, lines), folds.length && this.addFolds(folds), diff; }, this.moveLinesUp = function(firstRow, lastRow) { return this.$moveLines(firstRow, lastRow, -1); }, this.moveLinesDown = function(firstRow, lastRow) { return this.$moveLines(firstRow, lastRow, 1); }, this.duplicateLines = function(firstRow, lastRow) { return this.$moveLines(firstRow, lastRow, 0); }, this.$clipRowToDocument = function(row) { return Math.max(0, Math.min(row, this.doc.getLength() - 1)); }, this.$clipColumnToRow = function(row, column) { return column < 0 ? 0 : Math.min(this.doc.getLine(row).length, column); }, this.$clipPositionToDocument = function(row, column) { if (column = Math.max(0, column), row < 0) row = 0, column = 0; else { var len = this.doc.getLength(); row >= len ? (row = len - 1, column = this.doc.getLine(len - 1).length) : column = Math.min(this.doc.getLine(row).length, column); } return { row: row, column: column }; }, this.$clipRangeToDocument = function(range) { range.start.row < 0 ? (range.start.row = 0, range.start.column = 0) : range.start.column = this.$clipColumnToRow(range.start.row, range.start.column); var len = this.doc.getLength() - 1; return range.end.row > len ? (range.end.row = len, range.end.column = this.doc.getLine(len).length) : range.end.column = this.$clipColumnToRow(range.end.row, range.end.column), range; }, this.$wrapLimit = 80, this.$useWrapMode = !1, this.$wrapLimitRange = { min: null, max: null }, this.setUseWrapMode = function(useWrapMode) { if (useWrapMode != this.$useWrapMode) { if (this.$useWrapMode = useWrapMode, this.$modified = !0, this.$resetRowCache(0), useWrapMode) { var len = this.getLength(); this.$wrapData = Array(len), this.$updateWrapData(0, len - 1); } this._signal("changeWrapMode"); } }, this.getUseWrapMode = function() { return this.$useWrapMode; }, this.setWrapLimitRange = function(min, max) { (this.$wrapLimitRange.min !== min || this.$wrapLimitRange.max !== max) && (this.$wrapLimitRange = { min: min, max: max }, this.$modified = !0, this.$bidiHandler.markAsDirty(), this.$useWrapMode && this._signal("changeWrapMode")); }, this.adjustWrapLimit = function(desiredLimit, $printMargin) { var limits = this.$wrapLimitRange; limits.max < 0 && (limits = { min: $printMargin, max: $printMargin }); var wrapLimit = this.$constrainWrapLimit(desiredLimit, limits.min, limits.max); return wrapLimit != this.$wrapLimit && wrapLimit > 1 && (this.$wrapLimit = wrapLimit, this.$modified = !0, this.$useWrapMode && (this.$updateWrapData(0, this.getLength() - 1), this.$resetRowCache(0), this._signal("changeWrapLimit")), !0); }, this.$constrainWrapLimit = function(wrapLimit, min, max) { return min && (wrapLimit = Math.max(min, wrapLimit)), max && (wrapLimit = Math.min(max, wrapLimit)), wrapLimit; }, this.getWrapLimit = function() { return this.$wrapLimit; }, this.setWrapLimit = function(limit) { this.setWrapLimitRange(limit, limit); }, this.getWrapLimitRange = function() { return { min: this.$wrapLimitRange.min, max: this.$wrapLimitRange.max }; }, this.$updateInternalDataOnChange = function(delta) { var useWrapMode = this.$useWrapMode, action = delta.action, start = delta.start, end = delta.end, firstRow = start.row, lastRow = end.row, len = lastRow - firstRow, removedFolds = null; if (this.$updating = !0, 0 != len) { if ("remove" === action) { this[useWrapMode ? "$wrapData" : "$rowLengthCache"].splice(firstRow, len); var foldLines = this.$foldData; removedFolds = this.getFoldsInRange(delta), this.removeFolds(removedFolds); var foldLine = this.getFoldLine(end.row), idx = 0; if (foldLine) { foldLine.addRemoveChars(end.row, end.column, start.column - end.column), foldLine.shiftRow(-len); var foldLineBefore = this.getFoldLine(firstRow); foldLineBefore && foldLineBefore !== foldLine && (foldLineBefore.merge(foldLine), foldLine = foldLineBefore), idx = foldLines.indexOf(foldLine) + 1; } for(; idx < foldLines.length; idx++){ var foldLine = foldLines[idx]; foldLine.start.row >= end.row && foldLine.shiftRow(-len); } lastRow = firstRow; } else { var args = Array(len); args.unshift(firstRow, 0); var arr = useWrapMode ? this.$wrapData : this.$rowLengthCache; arr.splice.apply(arr, args); var foldLines = this.$foldData, foldLine = this.getFoldLine(firstRow), idx = 0; if (foldLine) { var cmp = foldLine.range.compareInside(start.row, start.column); 0 == cmp ? (foldLine = foldLine.split(start.row, start.column)) && (foldLine.shiftRow(len), foldLine.addRemoveChars(lastRow, 0, end.column - start.column)) : -1 == cmp && (foldLine.addRemoveChars(firstRow, 0, end.column - start.column), foldLine.shiftRow(len)), idx = foldLines.indexOf(foldLine) + 1; } for(; idx < foldLines.length; idx++){ var foldLine = foldLines[idx]; foldLine.start.row >= firstRow && foldLine.shiftRow(len); } } } else { len = Math.abs(delta.start.column - delta.end.column), "remove" === action && (removedFolds = this.getFoldsInRange(delta), this.removeFolds(removedFolds), len = -len); var foldLine = this.getFoldLine(firstRow); foldLine && foldLine.addRemoveChars(firstRow, start.column, len); } return useWrapMode && this.$wrapData.length != this.doc.getLength() && console.error("doc.getLength() and $wrapData.length have to be the same!"), this.$updating = !1, useWrapMode ? this.$updateWrapData(firstRow, lastRow) : this.$updateRowLengthCache(firstRow, lastRow), removedFolds; }, this.$updateRowLengthCache = function(firstRow, lastRow, b) { this.$rowLengthCache[firstRow] = null, this.$rowLengthCache[lastRow] = null; }, this.$updateWrapData = function(firstRow, lastRow) { var tokens, foldLine, lines = this.doc.getAllLines(), tabSize = this.getTabSize(), wrapData = this.$wrapData, wrapLimit = this.$wrapLimit, row = firstRow; for(lastRow = Math.min(lastRow, lines.length - 1); row <= lastRow;)(foldLine = this.getFoldLine(row, foldLine)) ? (tokens = [], foldLine.walk((function(placeholder, row, column, lastColumn) { var walkTokens; if (null != placeholder) { (walkTokens = this.$getDisplayTokens(placeholder, tokens.length))[0] = PLACEHOLDER_START; for(var i = 1; i < walkTokens.length; i++)walkTokens[i] = PLACEHOLDER_BODY; } else walkTokens = this.$getDisplayTokens(lines[row].substring(lastColumn, column), tokens.length); tokens = tokens.concat(walkTokens); }).bind(this), foldLine.end.row, lines[foldLine.end.row].length + 1), wrapData[foldLine.start.row] = this.$computeWrapSplits(tokens, wrapLimit, tabSize), row = foldLine.end.row + 1) : (tokens = this.$getDisplayTokens(lines[row]), wrapData[row] = this.$computeWrapSplits(tokens, wrapLimit, tabSize), row++); }; var PLACEHOLDER_START = 3, PLACEHOLDER_BODY = 4; function isFullWidth(c) { return !(c < 0x1100) && (c >= 0x1100 && c <= 0x115f || c >= 0x11a3 && c <= 0x11a7 || c >= 0x11fa && c <= 0x11ff || c >= 0x2329 && c <= 0x232a || c >= 0x2e80 && c <= 0x2e99 || c >= 0x2e9b && c <= 0x2ef3 || c >= 0x2f00 && c <= 0x2fd5 || c >= 0x2ff0 && c <= 0x2ffb || c >= 0x3000 && c <= 0x303e || c >= 0x3041 && c <= 0x3096 || c >= 0x3099 && c <= 0x30ff || c >= 0x3105 && c <= 0x312d || c >= 0x3131 && c <= 0x318e || c >= 0x3190 && c <= 0x31ba || c >= 0x31c0 && c <= 0x31e3 || c >= 0x31f0 && c <= 0x321e || c >= 0x3220 && c <= 0x3247 || c >= 0x3250 && c <= 0x32fe || c >= 0x3300 && c <= 0x4dbf || c >= 0x4e00 && c <= 0xa48c || c >= 0xa490 && c <= 0xa4c6 || c >= 0xa960 && c <= 0xa97c || c >= 0xac00 && c <= 0xd7a3 || c >= 0xd7b0 && c <= 0xd7c6 || c >= 0xd7cb && c <= 0xd7fb || c >= 0xf900 && c <= 0xfaff || c >= 0xfe10 && c <= 0xfe19 || c >= 0xfe30 && c <= 0xfe52 || c >= 0xfe54 && c <= 0xfe66 || c >= 0xfe68 && c <= 0xfe6b || c >= 0xff01 && c <= 0xff60 || c >= 0xffe0 && c <= 0xffe6); } this.$computeWrapSplits = function(tokens, wrapLimit, tabSize) { if (0 == tokens.length) return []; var splits = [], displayLength = tokens.length, lastSplit = 0, lastDocSplit = 0, isCode = this.$wrapAsCode, indentedSoftWrap = this.$indentedSoftWrap, maxIndent = wrapLimit <= Math.max(2 * tabSize, 8) || !1 === indentedSoftWrap ? 0 : Math.floor(wrapLimit / 2); function addSplit(screenPos) { for(var len = screenPos - lastSplit, i = lastSplit; i < screenPos; i++){ var ch = tokens[i]; (12 === ch || 2 === ch) && (len -= 1); } splits.length || (splits.indent = indent = function() { var indentation = 0; if (0 === maxIndent) return indentation; if (indentedSoftWrap) for(var i = 0; i < tokens.length; i++){ var token = tokens[i]; if (10 == token) indentation += 1; else if (11 == token) indentation += tabSize; else if (12 == token) continue; else break; } return isCode && !1 !== indentedSoftWrap && (indentation += tabSize), Math.min(indentation, maxIndent); }()), lastDocSplit += len, splits.push(lastDocSplit), lastSplit = screenPos; } for(var indent = 0; displayLength - lastSplit > wrapLimit - indent;){ var split = lastSplit + wrapLimit - indent; if (tokens[split - 1] >= 10 && tokens[split] >= 10) { addSplit(split); continue; } if (tokens[split] == PLACEHOLDER_START || tokens[split] == PLACEHOLDER_BODY) { for(; split != lastSplit - 1 && tokens[split] != PLACEHOLDER_START; split--); if (split > lastSplit) { addSplit(split); continue; } for(split = lastSplit + wrapLimit; split < tokens.length && tokens[split] == PLACEHOLDER_BODY; split++); if (split == tokens.length) break; // Breaks the while-loop. addSplit(split); continue; } for(var minSplit = Math.max(split - (wrapLimit - (wrapLimit >> 2)), lastSplit - 1); split > minSplit && tokens[split] < PLACEHOLDER_START;)split--; if (isCode) { for(; split > minSplit && tokens[split] < PLACEHOLDER_START;)split--; for(; split > minSplit && 9 == tokens[split];)split--; } else for(; split > minSplit && tokens[split] < 10;)split--; if (split > minSplit) { addSplit(++split); continue; } 2 == tokens[split = lastSplit + wrapLimit] && split--, addSplit(split - indent); } return splits; }, this.$getDisplayTokens = function(str, offset) { var tabSize, arr = []; offset = offset || 0; for(var i = 0; i < str.length; i++){ var c = str.charCodeAt(i); if (9 == c) { tabSize = this.getScreenTabSize(arr.length + offset), arr.push(11); for(var n = 1; n < tabSize; n++)arr.push(12); } else 32 == c ? arr.push(10) : c > 39 && c < 48 || c > 57 && c < 64 ? arr.push(9) : c >= 0x1100 && isFullWidth(c) ? arr.push(1, 2) : arr.push(1); } return arr; }, this.$getStringScreenWidth = function(str, maxScreenColumn, screenColumn) { var c, column; if (0 == maxScreenColumn) return [ 0, 0 ]; for(null == maxScreenColumn && (maxScreenColumn = 1 / 0), screenColumn = screenColumn || 0, column = 0; column < str.length && (9 == (c = str.charCodeAt(column)) ? screenColumn += this.getScreenTabSize(screenColumn) : c >= 0x1100 && isFullWidth(c) ? screenColumn += 2 : screenColumn += 1, !(screenColumn > maxScreenColumn)); column++); return [ screenColumn, column ]; }, this.lineWidgets = null, this.getRowLength = function(row) { var h = 1; return (this.lineWidgets && (h += this.lineWidgets[row] && this.lineWidgets[row].rowCount || 0), this.$useWrapMode && this.$wrapData[row]) ? this.$wrapData[row].length + h : h; }, this.getRowLineCount = function(row) { return this.$useWrapMode && this.$wrapData[row] ? this.$wrapData[row].length + 1 : 1; }, this.getRowWrapIndent = function(screenRow) { if (!this.$useWrapMode) return 0; var pos = this.screenToDocumentPosition(screenRow, Number.MAX_VALUE), splits = this.$wrapData[pos.row]; return splits.length && splits[0] < pos.column ? splits.indent : 0; }, this.getScreenLastRowColumn = function(screenRow) { var pos = this.screenToDocumentPosition(screenRow, Number.MAX_VALUE); return this.documentToScreenColumn(pos.row, pos.column); }, this.getDocumentLastRowColumn = function(docRow, docColumn) { var screenRow = this.documentToScreenRow(docRow, docColumn); return this.getScreenLastRowColumn(screenRow); }, this.getDocumentLastRowColumnPosition = function(docRow, docColumn) { var screenRow = this.documentToScreenRow(docRow, docColumn); return this.screenToDocumentPosition(screenRow, Number.MAX_VALUE / 10); }, this.getRowSplitData = function(row) { if (this.$useWrapMode) return this.$wrapData[row]; }, this.getScreenTabSize = function(screenColumn) { return this.$tabSize - (screenColumn % this.$tabSize | 0); }, this.screenToDocumentRow = function(screenRow, screenColumn) { return this.screenToDocumentPosition(screenRow, screenColumn).row; }, this.screenToDocumentColumn = function(screenRow, screenColumn) { return this.screenToDocumentPosition(screenRow, screenColumn).column; }, this.screenToDocumentPosition = function(screenRow, screenColumn, offsetX) { if (screenRow < 0) return { row: 0, column: 0 }; var line, column, docRow = 0, docColumn = 0, row = 0, rowLength = 0, rowCache = this.$screenRowCache, i = this.$getRowCacheIndex(rowCache, screenRow), l = rowCache.length; if (l && i >= 0) var row = rowCache[i], docRow = this.$docRowCache[i], doCache = screenRow > rowCache[l - 1]; else var doCache = !l; for(var maxRow = this.getLength() - 1, foldLine = this.getNextFoldLine(docRow), foldStart = foldLine ? foldLine.start.row : 1 / 0; row <= screenRow && !(row + (rowLength = this.getRowLength(docRow)) > screenRow) && !(docRow >= maxRow);)row += rowLength, ++docRow > foldStart && (docRow = foldLine.end.row + 1, foldStart = (foldLine = this.getNextFoldLine(docRow, foldLine)) ? foldLine.start.row : 1 / 0), doCache && (this.$docRowCache.push(docRow), this.$screenRowCache.push(row)); if (foldLine && foldLine.start.row <= docRow) line = this.getFoldDisplayLine(foldLine), docRow = foldLine.start.row; else { if (row + rowLength <= screenRow || docRow > maxRow) return { row: maxRow, column: this.getLine(maxRow).length }; line = this.getLine(docRow), foldLine = null; } var wrapIndent = 0, splitIndex = Math.floor(screenRow - row); if (this.$useWrapMode) { var splits = this.$wrapData[docRow]; splits && (column = splits[splitIndex], splitIndex > 0 && splits.length && (wrapIndent = splits.indent, docColumn = splits[splitIndex - 1] || splits[splits.length - 1], line = line.substring(docColumn))); } return (void 0 !== offsetX && this.$bidiHandler.isBidiRow(row + splitIndex, docRow, splitIndex) && (screenColumn = this.$bidiHandler.offsetToCol(offsetX)), docColumn += this.$getStringScreenWidth(line, screenColumn - wrapIndent)[1], this.$useWrapMode && docColumn >= column && (docColumn = column - 1), foldLine) ? foldLine.idxToPosition(docColumn) : { row: docRow, column: docColumn }; }, this.documentToScreenPosition = function(docRow, docColumn) { if (void 0 === docColumn) var pos = this.$clipPositionToDocument(docRow.row, docRow.column); else pos = this.$clipPositionToDocument(docRow, docColumn); docRow = pos.row, docColumn = pos.column; var screenRow = 0, foldStartRow = null, fold = null; (fold = this.getFoldAt(docRow, docColumn, 1)) && (docRow = fold.start.row, docColumn = fold.start.column); var rowEnd, row = 0, rowCache = this.$docRowCache, i = this.$getRowCacheIndex(rowCache, docRow), l = rowCache.length; if (l && i >= 0) var row = rowCache[i], screenRow = this.$screenRowCache[i], doCache = docRow > rowCache[l - 1]; else var doCache = !l; for(var foldLine = this.getNextFoldLine(row), foldStart = foldLine ? foldLine.start.row : 1 / 0; row < docRow;){ if (row >= foldStart) { if ((rowEnd = foldLine.end.row + 1) > docRow) break; foldStart = (foldLine = this.getNextFoldLine(rowEnd, foldLine)) ? foldLine.start.row : 1 / 0; } else rowEnd = row + 1; screenRow += this.getRowLength(row), row = rowEnd, doCache && (this.$docRowCache.push(row), this.$screenRowCache.push(screenRow)); } var textLine = ""; foldLine && row >= foldStart ? (textLine = this.getFoldDisplayLine(foldLine, docRow, docColumn), foldStartRow = foldLine.start.row) : (textLine = this.getLine(docRow).substring(0, docColumn), foldStartRow = docRow); var wrapIndent = 0; if (this.$useWrapMode) { var wrapRow = this.$wrapData[foldStartRow]; if (wrapRow) { for(var screenRowOffset = 0; textLine.length >= wrapRow[screenRowOffset];)screenRow++, screenRowOffset++; textLine = textLine.substring(wrapRow[screenRowOffset - 1] || 0, textLine.length), wrapIndent = screenRowOffset > 0 ? wrapRow.indent : 0; } } return this.lineWidgets && this.lineWidgets[row] && this.lineWidgets[row].rowsAbove && (screenRow += this.lineWidgets[row].rowsAbove), { row: screenRow, column: wrapIndent + this.$getStringScreenWidth(textLine)[0] }; }, this.documentToScreenColumn = function(row, docColumn) { return this.documentToScreenPosition(row, docColumn).column; }, this.documentToScreenRow = function(docRow, docColumn) { return this.documentToScreenPosition(docRow, docColumn).row; }, this.getScreenLength = function() { var screenRows = 0, fold = null; if (this.$useWrapMode) for(var lastRow = this.$wrapData.length, row = 0, i = 0, fold = this.$foldData[i++], foldStart = fold ? fold.start.row : 1 / 0; row < lastRow;){ var splits = this.$wrapData[row]; screenRows += splits ? splits.length + 1 : 1, ++row > foldStart && (row = fold.end.row + 1, foldStart = (fold = this.$foldData[i++]) ? fold.start.row : 1 / 0); } else { screenRows = this.getLength(); for(var foldData = this.$foldData, i = 0; i < foldData.length; i++)screenRows -= (fold = foldData[i]).end.row - fold.start.row; } return this.lineWidgets && (screenRows += this.$getWidgetScreenLength()), screenRows; }, this.$setFontMetrics = function(fm) { this.$enableVarChar && (this.$getStringScreenWidth = function(str, maxScreenColumn, screenColumn) { var c, column; if (0 === maxScreenColumn) return [ 0, 0 ]; for(maxScreenColumn || (maxScreenColumn = 1 / 0), screenColumn = screenColumn || 0, column = 0; column < str.length && ("\t" === (c = str.charAt(column)) ? screenColumn += this.getScreenTabSize(screenColumn) : screenColumn += fm.getCharacterWidth(c), !(screenColumn > maxScreenColumn)); column++); return [ screenColumn, column ]; }); }, this.destroy = function() { this.bgTokenizer && (this.bgTokenizer.setDocument(null), this.bgTokenizer = null), this.$stopWorker(), this.removeAllListeners(), this.doc && this.doc.off("change", this.$onChange), this.selection.detach(); }, this.isFullWidth = isFullWidth; }).call(EditSession.prototype), require("./edit_session/folding").Folding.call(EditSession.prototype), require("./edit_session/bracket_match").BracketMatch.call(EditSession.prototype), config.defineOptions(EditSession.prototype, "session", { wrap: { set: function(value) { if (value && "off" != value ? "free" == value ? value = !0 : "printMargin" == value ? value = -1 : "string" == typeof value && (value = parseInt(value, 10) || !1) : value = !1, this.$wrap != value) { if (this.$wrap = value, value) { var col = "number" == typeof value ? value : null; this.setWrapLimitRange(col, col), this.setUseWrapMode(!0); } else this.setUseWrapMode(!1); } }, get: function() { return this.getUseWrapMode() ? -1 == this.$wrap ? "printMargin" : this.getWrapLimitRange().min ? this.$wrap : "free" : "off"; }, handlesSet: !0 }, wrapMethod: { set: function(val) { (val = "auto" == val ? "text" != this.$mode.type : "text" != val) != this.$wrapAsCode && (this.$wrapAsCode = val, this.$useWrapMode && (this.$useWrapMode = !1, this.setUseWrapMode(!0))); }, initialValue: "auto" }, indentedSoftWrap: { set: function() { this.$useWrapMode && (this.$useWrapMode = !1, this.setUseWrapMode(!0)); }, initialValue: !0 }, firstLineNumber: { set: function() { this._signal("changeBreakpoint"); }, initialValue: 1 }, useWorker: { set: function(useWorker) { this.$useWorker = useWorker, this.$stopWorker(), useWorker && this.$startWorker(); }, initialValue: !0 }, useSoftTabs: { initialValue: !0 }, tabSize: { set: function(tabSize) { (tabSize = parseInt(tabSize)) > 0 && this.$tabSize !== tabSize && (this.$modified = !0, this.$rowLengthCache = [], this.$tabSize = tabSize, this._signal("changeTabSize")); }, initialValue: 4, handlesSet: !0 }, navigateWithinSoftTabs: { initialValue: !1 }, foldStyle: { set: function(val) { this.setFoldStyle(val); }, handlesSet: !0 }, overwrite: { set: function(val) { this._signal("changeOverwrite"); }, initialValue: !1 }, newLineMode: { set: function(val) { this.doc.setNewLineMode(val); }, get: function() { return this.doc.getNewLineMode(); }, handlesSet: !0 }, mode: { set: function(val) { this.setMode(val); }, get: function() { return this.$modeId; }, handlesSet: !0 } }), exports.EditSession = EditSession; }), ace.define("ace/search", [ "require", "exports", "module", "ace/lib/lang", "ace/lib/oop", "ace/range" ], function(require, exports, module) { "use strict"; var lang = require("./lib/lang"), oop = require("./lib/oop"), Range = require("./range").Range, Search = function() { this.$options = {}; }; (function() { this.set = function(options) { return oop.mixin(this.$options, options), this; }, this.getOptions = function() { return lang.copyObject(this.$options); }, this.setOptions = function(options) { this.$options = options; }, this.find = function(session) { var options = this.$options, iterator = this.$matchIterator(session, options); if (!iterator) return !1; var firstRange = null; return iterator.forEach(function(sr, sc, er, ec) { return firstRange = new Range(sr, sc, er, ec), !(sc == ec && options.start && options.start.start && !1 != options.skipCurrent && firstRange.isEqual(options.start)) || (firstRange = null, !1); }), firstRange; }, this.findAll = function(session) { var options = this.$options; if (!options.needle) return []; this.$assembleRegExp(options); var range = options.range, lines = range ? session.getLines(range.start.row, range.end.row) : session.doc.getAllLines(), ranges = [], re = options.re; if (options.$isMultiLine) { var prevRange, len = re.length, maxRow = lines.length - len; outer: for(var row = re.offset || 0; row <= maxRow; row++){ for(var j = 0; j < len; j++)if (-1 == lines[row + j].search(re[j])) continue outer; var startLine = lines[row], line = lines[row + len - 1], startIndex = startLine.length - startLine.match(re[0])[0].length, endIndex = line.match(re[len - 1])[0].length; prevRange && prevRange.end.row === row && prevRange.end.column > startIndex || (ranges.push(prevRange = new Range(row, startIndex, row + len - 1, endIndex)), len > 2 && (row = row + len - 2)); } } else for(var i = 0; i < lines.length; i++)for(var matches = lang.getMatchOffsets(lines[i], re), j = 0; j < matches.length; j++){ var match = matches[j]; ranges.push(new Range(i, match.offset, i, match.offset + match.length)); } if (range) { for(var startColumn = range.start.column, endColumn = range.start.column, i = 0, j = ranges.length - 1; i < j && ranges[i].start.column < startColumn && ranges[i].start.row == range.start.row;)i++; for(; i < j && ranges[j].end.column > endColumn && ranges[j].end.row == range.end.row;)j--; for(ranges = ranges.slice(i, j + 1), i = 0, j = ranges.length; i < j; i++)ranges[i].start.row += range.start.row, ranges[i].end.row += range.start.row; } return ranges; }, this.replace = function(input, replacement) { var options = this.$options, re = this.$assembleRegExp(options); if (options.$isMultiLine) return replacement; if (re) { var match = re.exec(input); if (!match || match[0].length != input.length) return null; if (replacement = input.replace(re, replacement), options.preserveCase) { replacement = replacement.split(""); for(var i = Math.min(input.length, input.length); i--;){ var ch = input[i]; ch && ch.toLowerCase() != ch ? replacement[i] = replacement[i].toUpperCase() : replacement[i] = replacement[i].toLowerCase(); } replacement = replacement.join(""); } return replacement; } }, this.$assembleRegExp = function(options, $disableFakeMultiline) { if (options.needle instanceof RegExp) return options.re = options.needle; var needle = options.needle; if (!options.needle) return options.re = !1; options.regExp || (needle = lang.escapeRegExp(needle)), options.wholeWord && (needle = function(needle, options) { function wordBoundary(c) { return /\w/.test(c) || options.regExp ? "\\b" : ""; } return wordBoundary(needle[0]) + needle + wordBoundary(needle[needle.length - 1]); }(needle, options)); var modifier = options.caseSensitive ? "gm" : "gmi"; if (options.$isMultiLine = !$disableFakeMultiline && /[\n\r]/.test(needle), options.$isMultiLine) return options.re = this.$assembleMultilineRegExp(needle, modifier); try { var re = new RegExp(needle, modifier); } catch (e) { re = !1; } return options.re = re; }, this.$assembleMultilineRegExp = function(needle, modifier) { for(var parts = needle.replace(/\r\n|\r|\n/g, "$\n^").split("\n"), re = [], i = 0; i < parts.length; i++)try { re.push(new RegExp(parts[i], modifier)); } catch (e) { return !1; } return re; }, this.$matchIterator = function(session, options) { var re = this.$assembleRegExp(options); if (!re) return !1; var backwards = !0 == options.backwards, skipCurrent = !1 != options.skipCurrent, range = options.range, start = options.start; start || (start = range ? range[backwards ? "end" : "start"] : session.selection.getRange()), start.start && (start = start[skipCurrent != backwards ? "end" : "start"]); var firstRow = range ? range.start.row : 0, lastRow = range ? range.end.row : session.getLength() - 1; if (backwards) var forEach = function(callback) { var row = start.row; if (!forEachInLine(row, start.column, callback)) { for(row--; row >= firstRow; row--)if (forEachInLine(row, Number.MAX_VALUE, callback)) return; if (!1 != options.wrap) { for(row = lastRow, firstRow = start.row; row >= firstRow; row--)if (forEachInLine(row, Number.MAX_VALUE, callback)) return; } } }; else var forEach = function(callback) { var row = start.row; if (!forEachInLine(row, start.column, callback)) { for(row += 1; row <= lastRow; row++)if (forEachInLine(row, 0, callback)) return; if (!1 != options.wrap) { for(row = firstRow, lastRow = start.row; row <= lastRow; row++)if (forEachInLine(row, 0, callback)) return; } } }; if (options.$isMultiLine) var len = re.length, forEachInLine = function(row, offset, callback) { var startRow = backwards ? row - len + 1 : row; if (!(startRow < 0 || startRow + len > session.getLength())) { var line = session.getLine(startRow), startIndex = line.search(re[0]); if ((backwards || !(startIndex < offset)) && -1 !== startIndex) { for(var i = 1; i < len; i++)if (-1 == (line = session.getLine(startRow + i)).search(re[i])) return; var endIndex = line.match(re[len - 1])[0].length; if ((!backwards || !(endIndex > offset)) && callback(startRow, startIndex, startRow + len - 1, endIndex)) return !0; } } }; else if (backwards) var forEachInLine = function(row, endIndex, callback) { var m, line = session.getLine(row), matches = [], last = 0; for(re.lastIndex = 0; m = re.exec(line);){ var length = m[0].length; if (last = m.index, !length) { if (last >= line.length) break; re.lastIndex = last += 1; } if (m.index + length > endIndex) break; matches.push(m.index, length); } for(var i = matches.length - 1; i >= 0; i -= 2){ var column = matches[i - 1], length = matches[i]; if (callback(row, column, row, column + length)) return !0; } }; else var forEachInLine = function(row, startIndex, callback) { var last, m, line = session.getLine(row); for(re.lastIndex = startIndex; m = re.exec(line);){ var length = m[0].length; if (callback(row, last = m.index, row, last + length)) return !0; if (!length && (re.lastIndex = last += 1, last >= line.length)) return !1; } }; return { forEach: forEach }; }; }).call(Search.prototype), exports.Search = Search; }), ace.define("ace/keyboard/hash_handler", [ "require", "exports", "module", "ace/lib/keys", "ace/lib/useragent" ], function(require, exports, module) { "use strict"; var keyUtil = require("../lib/keys"), useragent = require("../lib/useragent"), KEY_MODS = keyUtil.KEY_MODS; function HashHandler(config, platform) { this.platform = platform || (useragent.isMac ? "mac" : "win"), this.commands = {}, this.commandKeyBinding = {}, this.addCommands(config), this.$singleCommand = !0; } function MultiHashHandler(config, platform) { HashHandler.call(this, config, platform), this.$singleCommand = !1; } MultiHashHandler.prototype = HashHandler.prototype, (function() { function getPosition(command) { return "object" == typeof command && command.bindKey && command.bindKey.position || (command.isDefault ? -100 : 0); } this.addCommand = function(command) { this.commands[command.name] && this.removeCommand(command), this.commands[command.name] = command, command.bindKey && this._buildKeyHash(command); }, this.removeCommand = function(command, keepCommand) { var name = command && ("string" == typeof command ? command : command.name); command = this.commands[name], keepCommand || delete this.commands[name]; var ckb = this.commandKeyBinding; for(var keyId in ckb){ var cmdGroup = ckb[keyId]; if (cmdGroup == command) delete ckb[keyId]; else if (Array.isArray(cmdGroup)) { var i = cmdGroup.indexOf(command); -1 != i && (cmdGroup.splice(i, 1), 1 == cmdGroup.length && (ckb[keyId] = cmdGroup[0])); } } }, this.bindKey = function(key, command, position) { if ("object" == typeof key && key && (void 0 == position && (position = key.position), key = key[this.platform]), key) { if ("function" == typeof command) return this.addCommand({ exec: command, bindKey: key, name: command.name || key }); key.split("|").forEach(function(keyPart) { var chain = ""; if (-1 != keyPart.indexOf(" ")) { var parts = keyPart.split(/\s+/); keyPart = parts.pop(), parts.forEach(function(keyPart) { var binding = this.parseKeys(keyPart), id = KEY_MODS[binding.hashId] + binding.key; chain += (chain ? " " : "") + id, this._addCommandToBinding(chain, "chainKeys"); }, this), chain += " "; } var binding = this.parseKeys(keyPart), id = KEY_MODS[binding.hashId] + binding.key; this._addCommandToBinding(chain + id, command, position); }, this); } }, this._addCommandToBinding = function(keyId, command, position) { var i, ckb = this.commandKeyBinding; if (command) { if (!ckb[keyId] || this.$singleCommand) ckb[keyId] = command; else { Array.isArray(ckb[keyId]) ? -1 != (i = ckb[keyId].indexOf(command)) && ckb[keyId].splice(i, 1) : ckb[keyId] = [ ckb[keyId] ], "number" != typeof position && (position = getPosition(command)); var commands = ckb[keyId]; for(i = 0; i < commands.length && !(getPosition(commands[i]) > position); i++); commands.splice(i, 0, command); } } else delete ckb[keyId]; }, this.addCommands = function(commands) { commands && Object.keys(commands).forEach(function(name) { var command = commands[name]; if (command) { if ("string" == typeof command) return this.bindKey(command, name); "function" == typeof command && (command = { exec: command }), "object" == typeof command && (command.name || (command.name = name), this.addCommand(command)); } }, this); }, this.removeCommands = function(commands) { Object.keys(commands).forEach(function(name) { this.removeCommand(commands[name]); }, this); }, this.bindKeys = function(keyList) { Object.keys(keyList).forEach(function(key) { this.bindKey(key, keyList[key]); }, this); }, this._buildKeyHash = function(command) { this.bindKey(command.bindKey, command); }, this.parseKeys = function(keys) { var parts = keys.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(x) { return x; }), key = parts.pop(), keyCode = keyUtil[key]; if (keyUtil.FUNCTION_KEYS[keyCode]) key = keyUtil.FUNCTION_KEYS[keyCode].toLowerCase(); else if (!parts.length) return { key: key, hashId: -1 }; else if (1 == parts.length && "shift" == parts[0]) return { key: key.toUpperCase(), hashId: -1 }; for(var hashId = 0, i = parts.length; i--;){ var modifier = keyUtil.KEY_MODS[parts[i]]; if (null == modifier) return "undefined" != typeof console && console.error("invalid modifier " + parts[i] + " in " + keys), !1; hashId |= modifier; } return { key: key, hashId: hashId }; }, this.findKeyCommand = function(hashId, keyString) { var key = KEY_MODS[hashId] + keyString; return this.commandKeyBinding[key]; }, this.handleKeyboard = function(data, hashId, keyString, keyCode) { if (!(keyCode < 0)) { var key = KEY_MODS[hashId] + keyString, command = this.commandKeyBinding[key]; return (data.$keyChain && (data.$keyChain += " " + key, command = this.commandKeyBinding[data.$keyChain] || command), command && ("chainKeys" == command || "chainKeys" == command[command.length - 1])) ? (data.$keyChain = data.$keyChain || key, { command: "null" }) : (data.$keyChain && (hashId && 4 != hashId || 1 != keyString.length ? (-1 == hashId || keyCode > 0) && (data.$keyChain = "") : data.$keyChain = data.$keyChain.slice(0, -key.length - 1)), { command: command }); } }, this.getStatusText = function(editor, data) { return data.$keyChain || ""; }; }).call(HashHandler.prototype), exports.HashHandler = HashHandler, exports.MultiHashHandler = MultiHashHandler; }), ace.define("ace/commands/command_manager", [ "require", "exports", "module", "ace/lib/oop", "ace/keyboard/hash_handler", "ace/lib/event_emitter" ], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"), MultiHashHandler = require("../keyboard/hash_handler").MultiHashHandler, EventEmitter = require("../lib/event_emitter").EventEmitter, CommandManager = function(platform, commands) { MultiHashHandler.call(this, commands, platform), this.byName = this.commands, this.setDefaultHandler("exec", function(e) { return e.command.exec(e.editor, e.args || {}); }); }; oop.inherits(CommandManager, MultiHashHandler), (function() { oop.implement(this, EventEmitter), this.exec = function(command, editor, args) { if (Array.isArray(command)) { for(var i = command.length; i--;)if (this.exec(command[i], editor, args)) return !0; return !1; } if ("string" == typeof command && (command = this.commands[command]), !command || editor && editor.$readOnly && !command.readOnly || !1 != this.$checkCommandState && command.isAvailable && !command.isAvailable(editor)) return !1; var e = { editor: editor, command: command, args: args }; return e.returnValue = this._emit("exec", e), this._signal("afterExec", e), !1 !== e.returnValue; }, this.toggleRecording = function(editor) { if (!this.$inReplay) return (editor && editor._emit("changeStatus"), this.recording) ? (this.macro.pop(), this.off("exec", this.$addCommandToMacro), this.macro.length || (this.macro = this.oldMacro), this.recording = !1) : (this.$addCommandToMacro || (this.$addCommandToMacro = (function(e) { this.macro.push([ e.command, e.args ]); }).bind(this)), this.oldMacro = this.macro, this.macro = [], this.on("exec", this.$addCommandToMacro), this.recording = !0); }, this.replay = function(editor) { if (!this.$inReplay && this.macro) { if (this.recording) return this.toggleRecording(editor); try { this.$inReplay = !0, this.macro.forEach(function(x) { "string" == typeof x ? this.exec(x, editor) : this.exec(x[0], editor, x[1]); }, this); } finally{ this.$inReplay = !1; } } }, this.trimMacro = function(m) { return m.map(function(x) { return "string" != typeof x[0] && (x[0] = x[0].name), x[1] || (x = x[0]), x; }); }; }).call(CommandManager.prototype), exports.CommandManager = CommandManager; }), ace.define("ace/commands/default_commands", [ "require", "exports", "module", "ace/lib/lang", "ace/config", "ace/range" ], function(require, exports, module) { "use strict"; var lang = require("../lib/lang"), config = require("../config"), Range = require("../range").Range; function bindKey(win, mac) { return { win: win, mac: mac }; } exports.commands = [ { name: "showSettingsMenu", description: "Show settings menu", bindKey: bindKey("Ctrl-,", "Command-,"), exec: function(editor) { config.loadModule("ace/ext/settings_menu", function(module) { module.init(editor), editor.showSettingsMenu(); }); }, readOnly: !0 }, { name: "goToNextError", description: "Go to next error", bindKey: bindKey("Alt-E", "F4"), exec: function(editor) { config.loadModule("./ext/error_marker", function(module) { module.showErrorMarker(editor, 1); }); }, scrollIntoView: "animate", readOnly: !0 }, { name: "goToPreviousError", description: "Go to previous error", bindKey: bindKey("Alt-Shift-E", "Shift-F4"), exec: function(editor) { config.loadModule("./ext/error_marker", function(module) { module.showErrorMarker(editor, -1); }); }, scrollIntoView: "animate", readOnly: !0 }, { name: "selectall", description: "Select all", bindKey: bindKey("Ctrl-A", "Command-A"), exec: function(editor) { editor.selectAll(); }, readOnly: !0 }, { name: "centerselection", description: "Center selection", bindKey: bindKey(null, "Ctrl-L"), exec: function(editor) { editor.centerSelection(); }, readOnly: !0 }, { name: "gotoline", description: "Go to line...", bindKey: bindKey("Ctrl-L", "Command-L"), exec: function(editor, line) { "number" != typeof line || isNaN(line) || editor.gotoLine(line), editor.prompt({ $type: "gotoLine" }); }, readOnly: !0 }, { name: "fold", bindKey: bindKey("Alt-L|Ctrl-F1", "Command-Alt-L|Command-F1"), exec: function(editor) { editor.session.toggleFold(!1); }, multiSelectAction: "forEach", scrollIntoView: "center", readOnly: !0 }, { name: "unfold", bindKey: bindKey("Alt-Shift-L|Ctrl-Shift-F1", "Command-Alt-Shift-L|Command-Shift-F1"), exec: function(editor) { editor.session.toggleFold(!0); }, multiSelectAction: "forEach", scrollIntoView: "center", readOnly: !0 }, { name: "toggleFoldWidget", description: "Toggle fold widget", bindKey: bindKey("F2", "F2"), exec: function(editor) { editor.session.toggleFoldWidget(); }, multiSelectAction: "forEach", scrollIntoView: "center", readOnly: !0 }, { name: "toggleParentFoldWidget", description: "Toggle parent fold widget", bindKey: bindKey("Alt-F2", "Alt-F2"), exec: function(editor) { editor.session.toggleFoldWidget(!0); }, multiSelectAction: "forEach", scrollIntoView: "center", readOnly: !0 }, { name: "foldall", description: "Fold all", bindKey: bindKey(null, "Ctrl-Command-Option-0"), exec: function(editor) { editor.session.foldAll(); }, scrollIntoView: "center", readOnly: !0 }, { name: "foldAllComments", description: "Fold all comments", bindKey: bindKey(null, "Ctrl-Command-Option-0"), exec: function(editor) { editor.session.foldAllComments(); }, scrollIntoView: "center", readOnly: !0 }, { name: "foldOther", description: "Fold other", bindKey: bindKey("Alt-0", "Command-Option-0"), exec: function(editor) { editor.session.foldAll(), editor.session.unfold(editor.selection.getAllRanges()); }, scrollIntoView: "center", readOnly: !0 }, { name: "unfoldall", description: "Unfold all", bindKey: bindKey("Alt-Shift-0", "Command-Option-Shift-0"), exec: function(editor) { editor.session.unfold(); }, scrollIntoView: "center", readOnly: !0 }, { name: "findnext", description: "Find next", bindKey: bindKey("Ctrl-K", "Command-G"), exec: function(editor) { editor.findNext(); }, multiSelectAction: "forEach", scrollIntoView: "center", readOnly: !0 }, { name: "findprevious", description: "Find previous", bindKey: bindKey("Ctrl-Shift-K", "Command-Shift-G"), exec: function(editor) { editor.findPrevious(); }, multiSelectAction: "forEach", scrollIntoView: "center", readOnly: !0 }, { name: "selectOrFindNext", description: "Select or find next", bindKey: bindKey("Alt-K", "Ctrl-G"), exec: function(editor) { editor.selection.isEmpty() ? editor.selection.selectWord() : editor.findNext(); }, readOnly: !0 }, { name: "selectOrFindPrevious", description: "Select or find previous", bindKey: bindKey("Alt-Shift-K", "Ctrl-Shift-G"), exec: function(editor) { editor.selection.isEmpty() ? editor.selection.selectWord() : editor.findPrevious(); }, readOnly: !0 }, { name: "find", description: "Find", bindKey: bindKey("Ctrl-F", "Command-F"), exec: function(editor) { config.loadModule("ace/ext/searchbox", function(e) { e.Search(editor); }); }, readOnly: !0 }, { name: "overwrite", description: "Overwrite", bindKey: "Insert", exec: function(editor) { editor.toggleOverwrite(); }, readOnly: !0 }, { name: "selecttostart", description: "Select to start", bindKey: bindKey("Ctrl-Shift-Home", "Command-Shift-Home|Command-Shift-Up"), exec: function(editor) { editor.getSelection().selectFileStart(); }, multiSelectAction: "forEach", readOnly: !0, scrollIntoView: "animate", aceCommandGroup: "fileJump" }, { name: "gotostart", description: "Go to start", bindKey: bindKey("Ctrl-Home", "Command-Home|Command-Up"), exec: function(editor) { editor.navigateFileStart(); }, multiSelectAction: "forEach", readOnly: !0, scrollIntoView: "animate", aceCommandGroup: "fileJump" }, { name: "selectup", description: "Select up", bindKey: bindKey("Shift-Up", "Shift-Up|Ctrl-Shift-P"), exec: function(editor) { editor.getSelection().selectUp(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "golineup", description: "Go line up", bindKey: bindKey("Up", "Up|Ctrl-P"), exec: function(editor, args) { editor.navigateUp(args.times); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selecttoend", description: "Select to end", bindKey: bindKey("Ctrl-Shift-End", "Command-Shift-End|Command-Shift-Down"), exec: function(editor) { editor.getSelection().selectFileEnd(); }, multiSelectAction: "forEach", readOnly: !0, scrollIntoView: "animate", aceCommandGroup: "fileJump" }, { name: "gotoend", description: "Go to end", bindKey: bindKey("Ctrl-End", "Command-End|Command-Down"), exec: function(editor) { editor.navigateFileEnd(); }, multiSelectAction: "forEach", readOnly: !0, scrollIntoView: "animate", aceCommandGroup: "fileJump" }, { name: "selectdown", description: "Select down", bindKey: bindKey("Shift-Down", "Shift-Down|Ctrl-Shift-N"), exec: function(editor) { editor.getSelection().selectDown(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "golinedown", description: "Go line down", bindKey: bindKey("Down", "Down|Ctrl-N"), exec: function(editor, args) { editor.navigateDown(args.times); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selectwordleft", description: "Select word left", bindKey: bindKey("Ctrl-Shift-Left", "Option-Shift-Left"), exec: function(editor) { editor.getSelection().selectWordLeft(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "gotowordleft", description: "Go to word left", bindKey: bindKey("Ctrl-Left", "Option-Left"), exec: function(editor) { editor.navigateWordLeft(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selecttolinestart", description: "Select to line start", bindKey: bindKey("Alt-Shift-Left", "Command-Shift-Left|Ctrl-Shift-A"), exec: function(editor) { editor.getSelection().selectLineStart(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "gotolinestart", description: "Go to line start", bindKey: bindKey("Alt-Left|Home", "Command-Left|Home|Ctrl-A"), exec: function(editor) { editor.navigateLineStart(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selectleft", description: "Select left", bindKey: bindKey("Shift-Left", "Shift-Left|Ctrl-Shift-B"), exec: function(editor) { editor.getSelection().selectLeft(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "gotoleft", description: "Go to left", bindKey: bindKey("Left", "Left|Ctrl-B"), exec: function(editor, args) { editor.navigateLeft(args.times); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selectwordright", description: "Select word right", bindKey: bindKey("Ctrl-Shift-Right", "Option-Shift-Right"), exec: function(editor) { editor.getSelection().selectWordRight(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "gotowordright", description: "Go to word right", bindKey: bindKey("Ctrl-Right", "Option-Right"), exec: function(editor) { editor.navigateWordRight(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selecttolineend", description: "Select to line end", bindKey: bindKey("Alt-Shift-Right", "Command-Shift-Right|Shift-End|Ctrl-Shift-E"), exec: function(editor) { editor.getSelection().selectLineEnd(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "gotolineend", description: "Go to line end", bindKey: bindKey("Alt-Right|End", "Command-Right|End|Ctrl-E"), exec: function(editor) { editor.navigateLineEnd(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selectright", description: "Select right", bindKey: bindKey("Shift-Right", "Shift-Right"), exec: function(editor) { editor.getSelection().selectRight(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "gotoright", description: "Go to right", bindKey: bindKey("Right", "Right|Ctrl-F"), exec: function(editor, args) { editor.navigateRight(args.times); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selectpagedown", description: "Select page down", bindKey: "Shift-PageDown", exec: function(editor) { editor.selectPageDown(); }, readOnly: !0 }, { name: "pagedown", description: "Page down", bindKey: bindKey(null, "Option-PageDown"), exec: function(editor) { editor.scrollPageDown(); }, readOnly: !0 }, { name: "gotopagedown", description: "Go to page down", bindKey: bindKey("PageDown", "PageDown|Ctrl-V"), exec: function(editor) { editor.gotoPageDown(); }, readOnly: !0 }, { name: "selectpageup", description: "Select page up", bindKey: "Shift-PageUp", exec: function(editor) { editor.selectPageUp(); }, readOnly: !0 }, { name: "pageup", description: "Page up", bindKey: bindKey(null, "Option-PageUp"), exec: function(editor) { editor.scrollPageUp(); }, readOnly: !0 }, { name: "gotopageup", description: "Go to page up", bindKey: "PageUp", exec: function(editor) { editor.gotoPageUp(); }, readOnly: !0 }, { name: "scrollup", description: "Scroll up", bindKey: bindKey("Ctrl-Up", null), exec: function(e) { e.renderer.scrollBy(0, -2 * e.renderer.layerConfig.lineHeight); }, readOnly: !0 }, { name: "scrolldown", description: "Scroll down", bindKey: bindKey("Ctrl-Down", null), exec: function(e) { e.renderer.scrollBy(0, 2 * e.renderer.layerConfig.lineHeight); }, readOnly: !0 }, { name: "selectlinestart", description: "Select line start", bindKey: "Shift-Home", exec: function(editor) { editor.getSelection().selectLineStart(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "selectlineend", description: "Select line end", bindKey: "Shift-End", exec: function(editor) { editor.getSelection().selectLineEnd(); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "togglerecording", description: "Toggle recording", bindKey: bindKey("Ctrl-Alt-E", "Command-Option-E"), exec: function(editor) { editor.commands.toggleRecording(editor); }, readOnly: !0 }, { name: "replaymacro", description: "Replay macro", bindKey: bindKey("Ctrl-Shift-E", "Command-Shift-E"), exec: function(editor) { editor.commands.replay(editor); }, readOnly: !0 }, { name: "jumptomatching", description: "Jump to matching", bindKey: bindKey("Ctrl-\\|Ctrl-P", "Command-\\"), exec: function(editor) { editor.jumpToMatching(); }, multiSelectAction: "forEach", scrollIntoView: "animate", readOnly: !0 }, { name: "selecttomatching", description: "Select to matching", bindKey: bindKey("Ctrl-Shift-\\|Ctrl-Shift-P", "Command-Shift-\\"), exec: function(editor) { editor.jumpToMatching(!0); }, multiSelectAction: "forEach", scrollIntoView: "animate", readOnly: !0 }, { name: "expandToMatching", description: "Expand to matching", bindKey: bindKey("Ctrl-Shift-M", "Ctrl-Shift-M"), exec: function(editor) { editor.jumpToMatching(!0, !0); }, multiSelectAction: "forEach", scrollIntoView: "animate", readOnly: !0 }, { name: "passKeysToBrowser", description: "Pass keys to browser", bindKey: bindKey(null, null), exec: function() {}, passEvent: !0, readOnly: !0 }, { name: "copy", description: "Copy", exec: function(editor) {}, readOnly: !0 }, { name: "cut", description: "Cut", exec: function(editor) { var range = editor.$copyWithEmptySelection && editor.selection.isEmpty() ? editor.selection.getLineRange() : editor.selection.getRange(); editor._emit("cut", range), range.isEmpty() || editor.session.remove(range), editor.clearSelection(); }, scrollIntoView: "cursor", multiSelectAction: "forEach" }, { name: "paste", description: "Paste", exec: function(editor, args) { editor.$handlePaste(args); }, scrollIntoView: "cursor" }, { name: "removeline", description: "Remove line", bindKey: bindKey("Ctrl-D", "Command-D"), exec: function(editor) { editor.removeLines(); }, scrollIntoView: "cursor", multiSelectAction: "forEachLine" }, { name: "duplicateSelection", description: "Duplicate selection", bindKey: bindKey("Ctrl-Shift-D", "Command-Shift-D"), exec: function(editor) { editor.duplicateSelection(); }, scrollIntoView: "cursor", multiSelectAction: "forEach" }, { name: "sortlines", description: "Sort lines", bindKey: bindKey("Ctrl-Alt-S", "Command-Alt-S"), exec: function(editor) { editor.sortLines(); }, scrollIntoView: "selection", multiSelectAction: "forEachLine" }, { name: "togglecomment", description: "Toggle comment", bindKey: bindKey("Ctrl-/", "Command-/"), exec: function(editor) { editor.toggleCommentLines(); }, multiSelectAction: "forEachLine", scrollIntoView: "selectionPart" }, { name: "toggleBlockComment", description: "Toggle block comment", bindKey: bindKey("Ctrl-Shift-/", "Command-Shift-/"), exec: function(editor) { editor.toggleBlockComment(); }, multiSelectAction: "forEach", scrollIntoView: "selectionPart" }, { name: "modifyNumberUp", description: "Modify number up", bindKey: bindKey("Ctrl-Shift-Up", "Alt-Shift-Up"), exec: function(editor) { editor.modifyNumber(1); }, scrollIntoView: "cursor", multiSelectAction: "forEach" }, { name: "modifyNumberDown", description: "Modify number down", bindKey: bindKey("Ctrl-Shift-Down", "Alt-Shift-Down"), exec: function(editor) { editor.modifyNumber(-1); }, scrollIntoView: "cursor", multiSelectAction: "forEach" }, { name: "replace", description: "Replace", bindKey: bindKey("Ctrl-H", "Command-Option-F"), exec: function(editor) { config.loadModule("ace/ext/searchbox", function(e) { e.Search(editor, !0); }); } }, { name: "undo", description: "Undo", bindKey: bindKey("Ctrl-Z", "Command-Z"), exec: function(editor) { editor.undo(); } }, { name: "redo", description: "Redo", bindKey: bindKey("Ctrl-Shift-Z|Ctrl-Y", "Command-Shift-Z|Command-Y"), exec: function(editor) { editor.redo(); } }, { name: "copylinesup", description: "Copy lines up", bindKey: bindKey("Alt-Shift-Up", "Command-Option-Up"), exec: function(editor) { editor.copyLinesUp(); }, scrollIntoView: "cursor" }, { name: "movelinesup", description: "Move lines up", bindKey: bindKey("Alt-Up", "Option-Up"), exec: function(editor) { editor.moveLinesUp(); }, scrollIntoView: "cursor" }, { name: "copylinesdown", description: "Copy lines down", bindKey: bindKey("Alt-Shift-Down", "Command-Option-Down"), exec: function(editor) { editor.copyLinesDown(); }, scrollIntoView: "cursor" }, { name: "movelinesdown", description: "Move lines down", bindKey: bindKey("Alt-Down", "Option-Down"), exec: function(editor) { editor.moveLinesDown(); }, scrollIntoView: "cursor" }, { name: "del", description: "Delete", bindKey: bindKey("Delete", "Delete|Ctrl-D|Shift-Delete"), exec: function(editor) { editor.remove("right"); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "backspace", description: "Backspace", bindKey: bindKey("Shift-Backspace|Backspace", "Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"), exec: function(editor) { editor.remove("left"); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "cut_or_delete", description: "Cut or delete", bindKey: bindKey("Shift-Delete", null), exec: function(editor) { if (!editor.selection.isEmpty()) return !1; editor.remove("left"); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "removetolinestart", description: "Remove to line start", bindKey: bindKey("Alt-Backspace", "Command-Backspace"), exec: function(editor) { editor.removeToLineStart(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "removetolineend", description: "Remove to line end", bindKey: bindKey("Alt-Delete", "Ctrl-K|Command-Delete"), exec: function(editor) { editor.removeToLineEnd(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "removetolinestarthard", description: "Remove to line start hard", bindKey: bindKey("Ctrl-Shift-Backspace", null), exec: function(editor) { var range = editor.selection.getRange(); range.start.column = 0, editor.session.remove(range); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "removetolineendhard", description: "Remove to line end hard", bindKey: bindKey("Ctrl-Shift-Delete", null), exec: function(editor) { var range = editor.selection.getRange(); range.end.column = Number.MAX_VALUE, editor.session.remove(range); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "removewordleft", description: "Remove word left", bindKey: bindKey("Ctrl-Backspace", "Alt-Backspace|Ctrl-Alt-Backspace"), exec: function(editor) { editor.removeWordLeft(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "removewordright", description: "Remove word right", bindKey: bindKey("Ctrl-Delete", "Alt-Delete"), exec: function(editor) { editor.removeWordRight(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "outdent", description: "Outdent", bindKey: bindKey("Shift-Tab", "Shift-Tab"), exec: function(editor) { editor.blockOutdent(); }, multiSelectAction: "forEach", scrollIntoView: "selectionPart" }, { name: "indent", description: "Indent", bindKey: bindKey("Tab", "Tab"), exec: function(editor) { editor.indent(); }, multiSelectAction: "forEach", scrollIntoView: "selectionPart" }, { name: "blockoutdent", description: "Block outdent", bindKey: bindKey("Ctrl-[", "Ctrl-["), exec: function(editor) { editor.blockOutdent(); }, multiSelectAction: "forEachLine", scrollIntoView: "selectionPart" }, { name: "blockindent", description: "Block indent", bindKey: bindKey("Ctrl-]", "Ctrl-]"), exec: function(editor) { editor.blockIndent(); }, multiSelectAction: "forEachLine", scrollIntoView: "selectionPart" }, { name: "insertstring", description: "Insert string", exec: function(editor, str) { editor.insert(str); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "inserttext", description: "Insert text", exec: function(editor, args) { editor.insert(lang.stringRepeat(args.text || "", args.times || 1)); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "splitline", description: "Split line", bindKey: bindKey(null, "Ctrl-O"), exec: function(editor) { editor.splitLine(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "transposeletters", description: "Transpose letters", bindKey: bindKey("Alt-Shift-X", "Ctrl-T"), exec: function(editor) { editor.transposeLetters(); }, multiSelectAction: function(editor) { editor.transposeSelections(1); }, scrollIntoView: "cursor" }, { name: "touppercase", description: "To uppercase", bindKey: bindKey("Ctrl-U", "Ctrl-U"), exec: function(editor) { editor.toUpperCase(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "tolowercase", description: "To lowercase", bindKey: bindKey("Ctrl-Shift-U", "Ctrl-Shift-U"), exec: function(editor) { editor.toLowerCase(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "autoindent", description: "Auto Indent", bindKey: bindKey(null, null), exec: function(editor) { editor.autoIndent(); }, multiSelectAction: "forEachLine", scrollIntoView: "animate" }, { name: "expandtoline", description: "Expand to line", bindKey: bindKey("Ctrl-Shift-L", "Command-Shift-L"), exec: function(editor) { var range = editor.selection.getRange(); range.start.column = range.end.column = 0, range.end.row++, editor.selection.setRange(range, !1); }, multiSelectAction: "forEach", scrollIntoView: "cursor", readOnly: !0 }, { name: "joinlines", description: "Join lines", bindKey: bindKey(null, null), exec: function(editor) { for(var isBackwards = editor.selection.isBackwards(), selectionStart = isBackwards ? editor.selection.getSelectionLead() : editor.selection.getSelectionAnchor(), selectionEnd = isBackwards ? editor.selection.getSelectionAnchor() : editor.selection.getSelectionLead(), firstLineEndCol = editor.session.doc.getLine(selectionStart.row).length, selectedCount = editor.session.doc.getTextRange(editor.selection.getRange()).replace(/\n\s*/, " ").length, insertLine = editor.session.doc.getLine(selectionStart.row), i = selectionStart.row + 1; i <= selectionEnd.row + 1; i++){ var curLine = lang.stringTrimLeft(lang.stringTrimRight(editor.session.doc.getLine(i))); 0 !== curLine.length && (curLine = " " + curLine), insertLine += curLine; } selectionEnd.row + 1 < editor.session.doc.getLength() - 1 && (insertLine += editor.session.doc.getNewLineCharacter()), editor.clearSelection(), editor.session.doc.replace(new Range(selectionStart.row, 0, selectionEnd.row + 2, 0), insertLine), selectedCount > 0 ? (editor.selection.moveCursorTo(selectionStart.row, selectionStart.column), editor.selection.selectTo(selectionStart.row, selectionStart.column + selectedCount)) : (firstLineEndCol = editor.session.doc.getLine(selectionStart.row).length > firstLineEndCol ? firstLineEndCol + 1 : firstLineEndCol, editor.selection.moveCursorTo(selectionStart.row, firstLineEndCol)); }, multiSelectAction: "forEach", readOnly: !0 }, { name: "invertSelection", description: "Invert selection", bindKey: bindKey(null, null), exec: function(editor) { var endRow = editor.session.doc.getLength() - 1, endCol = editor.session.doc.getLine(endRow).length, ranges = editor.selection.rangeList.ranges, newRanges = []; ranges.length < 1 && (ranges = [ editor.selection.getRange() ]); for(var i = 0; i < ranges.length; i++)i == ranges.length - 1 && (ranges[i].end.row !== endRow || ranges[i].end.column !== endCol) && newRanges.push(new Range(ranges[i].end.row, ranges[i].end.column, endRow, endCol)), 0 === i ? (0 !== ranges[i].start.row || 0 !== ranges[i].start.column) && newRanges.push(new Range(0, 0, ranges[i].start.row, ranges[i].start.column)) : newRanges.push(new Range(ranges[i - 1].end.row, ranges[i - 1].end.column, ranges[i].start.row, ranges[i].start.column)); editor.exitMultiSelectMode(), editor.clearSelection(); for(var i = 0; i < newRanges.length; i++)editor.selection.addRange(newRanges[i], !1); }, readOnly: !0, scrollIntoView: "none" }, { name: "addLineAfter", description: "Add new line after the current line", exec: function(editor) { editor.selection.clearSelection(), editor.navigateLineEnd(), editor.insert("\n"); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "addLineBefore", description: "Add new line before the current line", exec: function(editor) { editor.selection.clearSelection(); var cursor = editor.getCursorPosition(); editor.selection.moveTo(cursor.row - 1, Number.MAX_VALUE), editor.insert("\n"), 0 === cursor.row && editor.navigateUp(); }, multiSelectAction: "forEach", scrollIntoView: "cursor" }, { name: "openCommandPallete", description: "Open command pallete", bindKey: bindKey("F1", "F1"), exec: function(editor) { editor.prompt({ $type: "commands" }); }, readOnly: !0 }, { name: "modeSelect", description: "Change language mode...", bindKey: bindKey(null, null), exec: function(editor) { editor.prompt({ $type: "modes" }); }, readOnly: !0 } ]; for(var i = 1; i < 9; i++)exports.commands.push({ name: "foldToLevel" + i, description: "Fold To Level " + i, level: i, exec: function(editor) { editor.session.foldToLevel(this.level); }, scrollIntoView: "center", readOnly: !0 }); }), ace.define("ace/editor", [ "require", "exports", "module", "ace/lib/fixoldbrowsers", "ace/lib/oop", "ace/lib/dom", "ace/lib/lang", "ace/lib/useragent", "ace/keyboard/textinput", "ace/mouse/mouse_handler", "ace/mouse/fold_handler", "ace/keyboard/keybinding", "ace/edit_session", "ace/search", "ace/range", "ace/lib/event_emitter", "ace/commands/command_manager", "ace/commands/default_commands", "ace/config", "ace/token_iterator", "ace/clipboard" ], function(require, exports, module) { "use strict"; require("./lib/fixoldbrowsers"); var oop = require("./lib/oop"), dom = require("./lib/dom"), lang = require("./lib/lang"), useragent = require("./lib/useragent"), TextInput = require("./keyboard/textinput").TextInput, MouseHandler = require("./mouse/mouse_handler").MouseHandler, FoldHandler = require("./mouse/fold_handler").FoldHandler, KeyBinding = require("./keyboard/keybinding").KeyBinding, EditSession = require("./edit_session").EditSession, Search = require("./search").Search, Range = require("./range").Range, EventEmitter = require("./lib/event_emitter").EventEmitter, CommandManager = require("./commands/command_manager").CommandManager, defaultCommands = require("./commands/default_commands").commands, config = require("./config"), TokenIterator = require("./token_iterator").TokenIterator, clipboard = require("./clipboard"), Editor = function(renderer, session, options) { this.$toDestroy = []; var container = renderer.getContainerElement(); this.container = container, this.renderer = renderer, this.id = "editor" + ++Editor.$uid, this.commands = new CommandManager(useragent.isMac ? "mac" : "win", defaultCommands), "object" == typeof document && (this.textInput = new TextInput(renderer.getTextAreaContainer(), this), this.renderer.textarea = this.textInput.getElement(), this.$mouseHandler = new MouseHandler(this), new FoldHandler(this)), this.keyBinding = new KeyBinding(this), this.$search = new Search().set({ wrap: !0 }), this.$historyTracker = this.$historyTracker.bind(this), this.commands.on("exec", this.$historyTracker), this.$initOperationListeners(), this._$emitInputEvent = lang.delayedCall((function() { this._signal("input", {}), this.session && this.session.bgTokenizer && this.session.bgTokenizer.scheduleStart(); }).bind(this)), this.on("change", function(_, _self) { _self._$emitInputEvent.schedule(31); }), this.setSession(session || options && options.session || new EditSession("")), config.resetOptions(this), options && this.setOptions(options), config._signal("editor", this); }; Editor.$uid = 0, (function() { oop.implement(this, EventEmitter), this.$initOperationListeners = function() { this.commands.on("exec", this.startOperation.bind(this), !0), this.commands.on("afterExec", this.endOperation.bind(this), !0), this.$opResetTimer = lang.delayedCall(this.endOperation.bind(this, !0)), this.on("change", (function() { this.curOp || (this.startOperation(), this.curOp.selectionBefore = this.$lastSel), this.curOp.docChanged = !0; }).bind(this), !0), this.on("changeSelection", (function() { this.curOp || (this.startOperation(), this.curOp.selectionBefore = this.$lastSel), this.curOp.selectionChanged = !0; }).bind(this), !0); }, this.curOp = null, this.prevOp = {}, this.startOperation = function(commandEvent) { if (this.curOp) { if (!commandEvent || this.curOp.command) return; this.prevOp = this.curOp; } commandEvent || (this.previousCommand = null, commandEvent = {}), this.$opResetTimer.schedule(), this.curOp = this.session.curOp = { command: commandEvent.command || {}, args: commandEvent.args, scrollTop: this.renderer.scrollTop }, this.curOp.selectionBefore = this.selection.toJSON(); }, this.endOperation = function(e) { if (this.curOp && this.session) { if (e && !1 === e.returnValue || !this.session) return this.curOp = null; if ((!0 != e || !this.curOp.command || "mouse" != this.curOp.command.name) && (this._signal("beforeEndOperation"), this.curOp)) { var command = this.curOp.command, scrollIntoView = command && command.scrollIntoView; if (scrollIntoView) { switch(scrollIntoView){ case "center-animate": scrollIntoView = "animate"; case "center": this.renderer.scrollCursorIntoView(null, 0.5); break; case "animate": case "cursor": this.renderer.scrollCursorIntoView(); break; case "selectionPart": var range = this.selection.getRange(), config = this.renderer.layerConfig; (range.start.row >= config.lastRow || range.end.row <= config.firstRow) && this.renderer.scrollSelectionIntoView(this.selection.anchor, this.selection.lead); } "animate" == scrollIntoView && this.renderer.animateScrolling(this.curOp.scrollTop); } var sel = this.selection.toJSON(); this.curOp.selectionAfter = sel, this.$lastSel = this.selection.toJSON(), this.session.getUndoManager().addSelection(sel), this.prevOp = this.curOp, this.curOp = null; } } }, this.$mergeableCommands = [ "backspace", "del", "insertstring" ], this.$historyTracker = function(e) { if (this.$mergeUndoDeltas) { var prev = this.prevOp, mergeableCommands = this.$mergeableCommands, shouldMerge = prev.command && e.command.name == prev.command.name; if ("insertstring" == e.command.name) { var text = e.args; void 0 === this.mergeNextCommand && (this.mergeNextCommand = !0), shouldMerge = shouldMerge && this.mergeNextCommand && // previous command allows to coalesce with (!/\s/.test(text) || /\s/.test(prev.args)), this.mergeNextCommand = !0; } else shouldMerge = shouldMerge && -1 !== mergeableCommands.indexOf(e.command.name); // the command is mergeable "always" != this.$mergeUndoDeltas && Date.now() - this.sequenceStartTime > 2000 && (shouldMerge = !1), shouldMerge ? this.session.mergeUndoDeltas = !0 : -1 !== mergeableCommands.indexOf(e.command.name) && (this.sequenceStartTime = Date.now()); } }, this.setKeyboardHandler = function(keyboardHandler, cb) { if (keyboardHandler && "string" == typeof keyboardHandler && "ace" != keyboardHandler) { this.$keybindingId = keyboardHandler; var _self = this; config.loadModule([ "keybinding", keyboardHandler ], function(module) { _self.$keybindingId == keyboardHandler && _self.keyBinding.setKeyboardHandler(module && module.handler), cb && cb(); }); } else this.$keybindingId = null, this.keyBinding.setKeyboardHandler(keyboardHandler), cb && cb(); }, this.getKeyboardHandler = function() { return this.keyBinding.getKeyboardHandler(); }, this.setSession = function(session) { if (this.session != session) { this.curOp && this.endOperation(), this.curOp = {}; var oldSession = this.session; if (oldSession) { this.session.off("change", this.$onDocumentChange), this.session.off("changeMode", this.$onChangeMode), this.session.off("tokenizerUpdate", this.$onTokenizerUpdate), this.session.off("changeTabSize", this.$onChangeTabSize), this.session.off("changeWrapLimit", this.$onChangeWrapLimit), this.session.off("changeWrapMode", this.$onChangeWrapMode), this.session.off("changeFold", this.$onChangeFold), this.session.off("changeFrontMarker", this.$onChangeFrontMarker), this.session.off("changeBackMarker", this.$onChangeBackMarker), this.session.off("changeBreakpoint", this.$onChangeBreakpoint), this.session.off("changeAnnotation", this.$onChangeAnnotation), this.session.off("changeOverwrite", this.$onCursorChange), this.session.off("changeScrollTop", this.$onScrollTopChange), this.session.off("changeScrollLeft", this.$onScrollLeftChange); var selection = this.session.getSelection(); selection.off("changeCursor", this.$onCursorChange), selection.off("changeSelection", this.$onSelectionChange); } this.session = session, session ? (this.$onDocumentChange = this.onDocumentChange.bind(this), session.on("change", this.$onDocumentChange), this.renderer.setSession(session), this.$onChangeMode = this.onChangeMode.bind(this), session.on("changeMode", this.$onChangeMode), this.$onTokenizerUpdate = this.onTokenizerUpdate.bind(this), session.on("tokenizerUpdate", this.$onTokenizerUpdate), this.$onChangeTabSize = this.renderer.onChangeTabSize.bind(this.renderer), session.on("changeTabSize", this.$onChangeTabSize), this.$onChangeWrapLimit = this.onChangeWrapLimit.bind(this), session.on("changeWrapLimit", this.$onChangeWrapLimit), this.$onChangeWrapMode = this.onChangeWrapMode.bind(this), session.on("changeWrapMode", this.$onChangeWrapMode), this.$onChangeFold = this.onChangeFold.bind(this), session.on("changeFold", this.$onChangeFold), this.$onChangeFrontMarker = this.onChangeFrontMarker.bind(this), this.session.on("changeFrontMarker", this.$onChangeFrontMarker), this.$onChangeBackMarker = this.onChangeBackMarker.bind(this), this.session.on("changeBackMarker", this.$onChangeBackMarker), this.$onChangeBreakpoint = this.onChangeBreakpoint.bind(this), this.session.on("changeBreakpoint", this.$onChangeBreakpoint), this.$onChangeAnnotation = this.onChangeAnnotation.bind(this), this.session.on("changeAnnotation", this.$onChangeAnnotation), this.$onCursorChange = this.onCursorChange.bind(this), this.session.on("changeOverwrite", this.$onCursorChange), this.$onScrollTopChange = this.onScrollTopChange.bind(this), this.session.on("changeScrollTop", this.$onScrollTopChange), this.$onScrollLeftChange = this.onScrollLeftChange.bind(this), this.session.on("changeScrollLeft", this.$onScrollLeftChange), this.selection = session.getSelection(), this.selection.on("changeCursor", this.$onCursorChange), this.$onSelectionChange = this.onSelectionChange.bind(this), this.selection.on("changeSelection", this.$onSelectionChange), this.onChangeMode(), this.onCursorChange(), this.onScrollTopChange(), this.onScrollLeftChange(), this.onSelectionChange(), this.onChangeFrontMarker(), this.onChangeBackMarker(), this.onChangeBreakpoint(), this.onChangeAnnotation(), this.session.getUseWrapMode() && this.renderer.adjustWrapLimit(), this.renderer.updateFull()) : (this.selection = null, this.renderer.setSession(session)), this._signal("changeSession", { session: session, oldSession: oldSession }), this.curOp = null, oldSession && oldSession._signal("changeEditor", { oldEditor: this }), session && session._signal("changeEditor", { editor: this }), session && session.bgTokenizer && session.bgTokenizer.scheduleStart(); } }, this.getSession = function() { return this.session; }, this.setValue = function(val, cursorPos) { return this.session.doc.setValue(val), cursorPos ? 1 == cursorPos ? this.navigateFileEnd() : -1 == cursorPos && this.navigateFileStart() : this.selectAll(), val; }, this.getValue = function() { return this.session.getValue(); }, this.getSelection = function() { return this.selection; }, this.resize = function(force) { this.renderer.onResize(force); }, this.setTheme = function(theme, cb) { this.renderer.setTheme(theme, cb); }, this.getTheme = function() { return this.renderer.getTheme(); }, this.setStyle = function(style) { this.renderer.setStyle(style); }, this.unsetStyle = function(style) { this.renderer.unsetStyle(style); }, this.getFontSize = function() { return this.getOption("fontSize") || dom.computedStyle(this.container).fontSize; }, this.setFontSize = function(size) { this.setOption("fontSize", size); }, this.$highlightBrackets = function() { if (!this.$highlightPending) { var self1 = this; this.$highlightPending = !0, setTimeout(function() { self1.$highlightPending = !1; var session = self1.session; if (session && session.bgTokenizer) { session.$bracketHighlight && (session.$bracketHighlight.markerIds.forEach(function(id) { session.removeMarker(id); }), session.$bracketHighlight = null); var ranges = session.getMatchingBracketRanges(self1.getCursorPosition()); if (!ranges && session.$mode.getMatching && (ranges = session.$mode.getMatching(self1.session)), ranges) { var markerType = "ace_bracket"; Array.isArray(ranges) ? 1 == ranges.length && (markerType = "ace_error_bracket") : ranges = [ ranges ], 2 == ranges.length && (0 == Range.comparePoints(ranges[0].end, ranges[1].start) ? ranges = [ Range.fromPoints(ranges[0].start, ranges[1].end) ] : 0 == Range.comparePoints(ranges[0].start, ranges[1].end) && (ranges = [ Range.fromPoints(ranges[1].start, ranges[0].end) ])), session.$bracketHighlight = { ranges: ranges, markerIds: ranges.map(function(range) { return session.addMarker(range, markerType, "text"); }) }; } } }, 50); } }, this.$highlightTags = function() { if (!this.$highlightTagPending) { var self1 = this; this.$highlightTagPending = !0, setTimeout(function() { self1.$highlightTagPending = !1; var session = self1.session; if (session && session.bgTokenizer) { var pos = self1.getCursorPosition(), iterator = new TokenIterator(self1.session, pos.row, pos.column), token = iterator.getCurrentToken(); if (!token || !/\b(?:tag-open|tag-name)/.test(token.type)) { session.removeMarker(session.$tagHighlight), session.$tagHighlight = null; return; } if (-1 !== token.type.indexOf("tag-open") && !(token = iterator.stepForward())) return; var tag = token.value, currentTag = token.value, depth = 0, prevToken = iterator.stepBackward(); if ("<" === prevToken.value) do prevToken = token, (token = iterator.stepForward()) && (-1 !== token.type.indexOf("tag-name") ? tag === (currentTag = token.value) && ("<" === prevToken.value ? depth++ : "</" === prevToken.value && depth--) : tag === currentTag && "/>" === token.value && // self closing tag depth--); while (token && depth >= 0) else { do if (token = prevToken, prevToken = iterator.stepBackward(), token) { if (-1 !== token.type.indexOf("tag-name")) tag === token.value && ("<" === prevToken.value ? depth++ : "</" === prevToken.value && depth--); else if ("/>" === token.value) { for(// self closing tag var stepCount = 0, tmpToken = prevToken; tmpToken;){ if (-1 !== tmpToken.type.indexOf("tag-name") && tmpToken.value === tag) { depth--; break; } if ("<" === tmpToken.value) break; tmpToken = iterator.stepBackward(), stepCount++; } for(var i = 0; i < stepCount; i++)iterator.stepForward(); } } while (prevToken && depth <= 0) iterator.stepForward(); } if (!token) { session.removeMarker(session.$tagHighlight), session.$tagHighlight = null; return; } var row = iterator.getCurrentTokenRow(), column = iterator.getCurrentTokenColumn(), range = new Range(row, column, row, column + token.value.length), sbm = session.$backMarkers[session.$tagHighlight]; session.$tagHighlight && void 0 != sbm && 0 !== range.compareRange(sbm.range) && (session.removeMarker(session.$tagHighlight), session.$tagHighlight = null), session.$tagHighlight || (session.$tagHighlight = session.addMarker(range, "ace_bracket", "text")); } }, 50); } }, this.focus = function() { var _self = this; setTimeout(function() { _self.isFocused() || _self.textInput.focus(); }), this.textInput.focus(); }, this.isFocused = function() { return this.textInput.isFocused(); }, this.blur = function() { this.textInput.blur(); }, this.onFocus = function(e) { this.$isFocused || (this.$isFocused = !0, this.renderer.showCursor(), this.renderer.visualizeFocus(), this._emit("focus", e)); }, this.onBlur = function(e) { this.$isFocused && (this.$isFocused = !1, this.renderer.hideCursor(), this.renderer.visualizeBlur(), this._emit("blur", e)); }, this.$cursorChange = function() { this.renderer.updateCursor(), this.$highlightBrackets(), this.$highlightTags(), this.$updateHighlightActiveLine(); }, this.onDocumentChange = function(delta) { var wrap = this.session.$useWrapMode, lastRow = delta.start.row == delta.end.row ? delta.end.row : 1 / 0; this.renderer.updateLines(delta.start.row, lastRow, wrap), this._signal("change", delta), this.$cursorChange(); }, this.onTokenizerUpdate = function(e) { var rows = e.data; this.renderer.updateLines(rows.first, rows.last); }, this.onScrollTopChange = function() { this.renderer.scrollToY(this.session.getScrollTop()); }, this.onScrollLeftChange = function() { this.renderer.scrollToX(this.session.getScrollLeft()); }, this.onCursorChange = function() { this.$cursorChange(), this._signal("changeSelection"); }, this.$updateHighlightActiveLine = function() { var highlight, session = this.getSession(); if (this.$highlightActiveLine && ("line" == this.$selectionStyle && this.selection.isMultiLine() || (highlight = this.getCursorPosition()), this.renderer.theme && this.renderer.theme.$selectionColorConflict && !this.selection.isEmpty() && (highlight = !1), this.renderer.$maxLines && 1 === this.session.getLength() && !(this.renderer.$minLines > 1) && (highlight = !1)), session.$highlightLineMarker && !highlight) session.removeMarker(session.$highlightLineMarker.id), session.$highlightLineMarker = null; else if (!session.$highlightLineMarker && highlight) { var range = new Range(highlight.row, highlight.column, highlight.row, 1 / 0); range.id = session.addMarker(range, "ace_active-line", "screenLine"), session.$highlightLineMarker = range; } else highlight && (session.$highlightLineMarker.start.row = highlight.row, session.$highlightLineMarker.end.row = highlight.row, session.$highlightLineMarker.start.column = highlight.column, session._signal("changeBackMarker")); }, this.onSelectionChange = function(e) { var session = this.session; if (session.$selectionMarker && session.removeMarker(session.$selectionMarker), session.$selectionMarker = null, this.selection.isEmpty()) this.$updateHighlightActiveLine(); else { var range = this.selection.getRange(), style = this.getSelectionStyle(); session.$selectionMarker = session.addMarker(range, "ace_selection", style); } var re = this.$highlightSelectedWord && this.$getSelectionHighLightRegexp(); this.session.highlight(re), this._signal("changeSelection"); }, this.$getSelectionHighLightRegexp = function() { var session = this.session, selection = this.getSelectionRange(); if (!(selection.isEmpty() || selection.isMultiLine())) { var startColumn = selection.start.column, endColumn = selection.end.column, line = session.getLine(selection.start.row), needle = line.substring(startColumn, endColumn); if (!(needle.length > 5000) && /[\w\d]/.test(needle)) { var re = this.$search.$assembleRegExp({ wholeWord: !0, caseSensitive: !0, needle: needle }), wordWithBoundary = line.substring(startColumn - 1, endColumn + 1); if (re.test(wordWithBoundary)) return re; } } }, this.onChangeFrontMarker = function() { this.renderer.updateFrontMarkers(); }, this.onChangeBackMarker = function() { this.renderer.updateBackMarkers(); }, this.onChangeBreakpoint = function() { this.renderer.updateBreakpoints(); }, this.onChangeAnnotation = function() { this.renderer.setAnnotations(this.session.getAnnotations()); }, this.onChangeMode = function(e) { this.renderer.updateText(), this._emit("changeMode", e); }, this.onChangeWrapLimit = function() { this.renderer.updateFull(); }, this.onChangeWrapMode = function() { this.renderer.onResize(!0); }, this.onChangeFold = function() { this.$updateHighlightActiveLine(), this.renderer.updateFull(); }, this.getSelectedText = function() { return this.session.getTextRange(this.getSelectionRange()); }, this.getCopyText = function() { var text = this.getSelectedText(), nl = this.session.doc.getNewLineCharacter(), copyLine = !1; if (!text && this.$copyWithEmptySelection) { copyLine = !0; for(var ranges = this.selection.getAllRanges(), i = 0; i < ranges.length; i++){ var range = ranges[i]; i && ranges[i - 1].start.row == range.start.row || (text += this.session.getLine(range.start.row) + nl); } } var e = { text: text }; return this._signal("copy", e), clipboard.lineMode = !!copyLine && e.text, e.text; }, this.onCopy = function() { this.commands.exec("copy", this); }, this.onCut = function() { this.commands.exec("cut", this); }, this.onPaste = function(text, event) { this.commands.exec("paste", this, { text: text, event: event }); }, this.$handlePaste = function(e) { "string" == typeof e && (e = { text: e }), this._signal("paste", e); var text = e.text, lineMode = text === clipboard.lineMode, session = this.session; if (!this.inMultiSelectMode || this.inVirtualSelectionMode) lineMode ? session.insert({ row: this.selection.lead.row, column: 0 }, text) : this.insert(text); else if (lineMode) this.selection.rangeList.ranges.forEach(function(range) { session.insert({ row: range.start.row, column: 0 }, text); }); else { var lines = text.split(/\r\n|\r|\n/), ranges = this.selection.rangeList.ranges, isFullLine = 2 == lines.length && (!lines[0] || !lines[1]); if (lines.length != ranges.length || isFullLine) return this.commands.exec("insertstring", this, text); for(var i = ranges.length; i--;){ var range = ranges[i]; range.isEmpty() || session.remove(range), session.insert(range.start, lines[i]); } } }, this.execCommand = function(command, args) { return this.commands.exec(command, this, args); }, this.insert = function(text, pasted) { var session = this.session, mode = session.getMode(), cursor = this.getCursorPosition(); if (this.getBehavioursEnabled() && !pasted) { var transform = mode.transformAction(session.getState(cursor.row), "insertion", this, session, text); transform && (text === transform.text || this.inVirtualSelectionMode || (this.session.mergeUndoDeltas = !1, this.mergeNextCommand = !1), text = transform.text); } if ("\t" == text && (text = this.session.getTabString()), this.selection.isEmpty()) { if (this.session.getOverwrite() && -1 == text.indexOf("\n")) { var range = new Range.fromPoints(cursor, cursor); range.end.column += text.length, this.session.remove(range); } } else { var range = this.getSelectionRange(); cursor = this.session.remove(range), this.clearSelection(); } if ("\n" == text || "\r\n" == text) { var line = session.getLine(cursor.row); if (cursor.column > line.search(/\S|$/)) { var d = line.substr(cursor.column).search(/\S|$/); session.doc.removeInLine(cursor.row, cursor.column, cursor.column + d); } } this.clearSelection(); var start = cursor.column, lineState = session.getState(cursor.row), line = session.getLine(cursor.row), shouldOutdent = mode.checkOutdent(lineState, line, text); if (session.insert(cursor, text), transform && transform.selection && (2 == transform.selection.length ? // Transform relative to the current column this.selection.setSelectionRange(new Range(cursor.row, start + transform.selection[0], cursor.row, start + transform.selection[1])) : // Transform relative to the current row. this.selection.setSelectionRange(new Range(cursor.row + transform.selection[0], transform.selection[1], cursor.row + transform.selection[2], transform.selection[3]))), this.$enableAutoIndent) { if (session.getDocument().isNewLine(text)) { var lineIndent = mode.getNextLineIndent(lineState, line.slice(0, cursor.column), session.getTabString()); session.insert({ row: cursor.row + 1, column: 0 }, lineIndent); } shouldOutdent && mode.autoOutdent(lineState, session, cursor.row); } }, this.autoIndent = function() { var startRow, endRow, line, currIndent, range, session = this.session, mode = session.getMode(); if (this.selection.isEmpty()) startRow = 0, endRow = session.doc.getLength() - 1; else { var selectedRange = this.getSelectionRange(); startRow = selectedRange.start.row, endRow = selectedRange.end.row; } for(var prevLineState = "", prevLine = "", lineIndent = "", tab = session.getTabString(), row = startRow; row <= endRow; row++)row > 0 && (prevLineState = session.getState(row - 1), prevLine = session.getLine(row - 1), lineIndent = mode.getNextLineIndent(prevLineState, prevLine, tab)), line = session.getLine(row), lineIndent !== (currIndent = mode.$getIndent(line)) && (currIndent.length > 0 && (range = new Range(row, 0, row, currIndent.length), session.remove(range)), lineIndent.length > 0 && session.insert({ row: row, column: 0 }, lineIndent)), mode.autoOutdent(prevLineState, session, row); }, this.onTextInput = function(text, composition) { if (!composition) return this.keyBinding.onTextInput(text); this.startOperation({ command: { name: "insertstring" } }); var applyComposition = this.applyComposition.bind(this, text, composition); this.selection.rangeCount ? this.forEachSelection(applyComposition) : applyComposition(), this.endOperation(); }, this.applyComposition = function(text, composition) { if (composition.extendLeft || composition.extendRight) { var r = this.selection.getRange(); r.start.column -= composition.extendLeft, r.end.column += composition.extendRight, r.start.column < 0 && (r.start.row--, r.start.column += this.session.getLine(r.start.row).length + 1), this.selection.setRange(r), text || r.isEmpty() || this.remove(); } if ((text || !this.selection.isEmpty()) && this.insert(text, !0), composition.restoreStart || composition.restoreEnd) { var r = this.selection.getRange(); r.start.column -= composition.restoreStart, r.end.column -= composition.restoreEnd, this.selection.setRange(r); } }, this.onCommandKey = function(e, hashId, keyCode) { return this.keyBinding.onCommandKey(e, hashId, keyCode); }, this.setOverwrite = function(overwrite) { this.session.setOverwrite(overwrite); }, this.getOverwrite = function() { return this.session.getOverwrite(); }, this.toggleOverwrite = function() { this.session.toggleOverwrite(); }, this.setScrollSpeed = function(speed) { this.setOption("scrollSpeed", speed); }, this.getScrollSpeed = function() { return this.getOption("scrollSpeed"); }, this.setDragDelay = function(dragDelay) { this.setOption("dragDelay", dragDelay); }, this.getDragDelay = function() { return this.getOption("dragDelay"); }, this.setSelectionStyle = function(val) { this.setOption("selectionStyle", val); }, this.getSelectionStyle = function() { return this.getOption("selectionStyle"); }, this.setHighlightActiveLine = function(shouldHighlight) { this.setOption("highlightActiveLine", shouldHighlight); }, this.getHighlightActiveLine = function() { return this.getOption("highlightActiveLine"); }, this.setHighlightGutterLine = function(shouldHighlight) { this.setOption("highlightGutterLine", shouldHighlight); }, this.getHighlightGutterLine = function() { return this.getOption("highlightGutterLine"); }, this.setHighlightSelectedWord = function(shouldHighlight) { this.setOption("highlightSelectedWord", shouldHighlight); }, this.getHighlightSelectedWord = function() { return this.$highlightSelectedWord; }, this.setAnimatedScroll = function(shouldAnimate) { this.renderer.setAnimatedScroll(shouldAnimate); }, this.getAnimatedScroll = function() { return this.renderer.getAnimatedScroll(); }, this.setShowInvisibles = function(showInvisibles) { this.renderer.setShowInvisibles(showInvisibles); }, this.getShowInvisibles = function() { return this.renderer.getShowInvisibles(); }, this.setDisplayIndentGuides = function(display) { this.renderer.setDisplayIndentGuides(display); }, this.getDisplayIndentGuides = function() { return this.renderer.getDisplayIndentGuides(); }, this.setShowPrintMargin = function(showPrintMargin) { this.renderer.setShowPrintMargin(showPrintMargin); }, this.getShowPrintMargin = function() { return this.renderer.getShowPrintMargin(); }, this.setPrintMarginColumn = function(showPrintMargin) { this.renderer.setPrintMarginColumn(showPrintMargin); }, this.getPrintMarginColumn = function() { return this.renderer.getPrintMarginColumn(); }, this.setReadOnly = function(readOnly) { this.setOption("readOnly", readOnly); }, this.getReadOnly = function() { return this.getOption("readOnly"); }, this.setBehavioursEnabled = function(enabled) { this.setOption("behavioursEnabled", enabled); }, this.getBehavioursEnabled = function() { return this.getOption("behavioursEnabled"); }, this.setWrapBehavioursEnabled = function(enabled) { this.setOption("wrapBehavioursEnabled", enabled); }, this.getWrapBehavioursEnabled = function() { return this.getOption("wrapBehavioursEnabled"); }, this.setShowFoldWidgets = function(show) { this.setOption("showFoldWidgets", show); }, this.getShowFoldWidgets = function() { return this.getOption("showFoldWidgets"); }, this.setFadeFoldWidgets = function(fade) { this.setOption("fadeFoldWidgets", fade); }, this.getFadeFoldWidgets = function() { return this.getOption("fadeFoldWidgets"); }, this.remove = function(dir) { this.selection.isEmpty() && ("left" == dir ? this.selection.selectLeft() : this.selection.selectRight()); var range = this.getSelectionRange(); if (this.getBehavioursEnabled()) { var session = this.session, state = session.getState(range.start.row), new_range = session.getMode().transformAction(state, "deletion", this, session, range); if (0 === range.end.column) { var text = session.getTextRange(range); if ("\n" == text[text.length - 1]) { var line = session.getLine(range.end.row); /^\s+$/.test(line) && (range.end.column = line.length); } } new_range && (range = new_range); } this.session.remove(range), this.clearSelection(); }, this.removeWordRight = function() { this.selection.isEmpty() && this.selection.selectWordRight(), this.session.remove(this.getSelectionRange()), this.clearSelection(); }, this.removeWordLeft = function() { this.selection.isEmpty() && this.selection.selectWordLeft(), this.session.remove(this.getSelectionRange()), this.clearSelection(); }, this.removeToLineStart = function() { this.selection.isEmpty() && this.selection.selectLineStart(), this.selection.isEmpty() && this.selection.selectLeft(), this.session.remove(this.getSelectionRange()), this.clearSelection(); }, this.removeToLineEnd = function() { this.selection.isEmpty() && this.selection.selectLineEnd(); var range = this.getSelectionRange(); range.start.column == range.end.column && range.start.row == range.end.row && (range.end.column = 0, range.end.row++), this.session.remove(range), this.clearSelection(); }, this.splitLine = function() { this.selection.isEmpty() || (this.session.remove(this.getSelectionRange()), this.clearSelection()); var cursor = this.getCursorPosition(); this.insert("\n"), this.moveCursorToPosition(cursor); }, this.transposeLetters = function() { if (this.selection.isEmpty()) { var swap, range, cursor = this.getCursorPosition(), column = cursor.column; if (0 !== column) { var line = this.session.getLine(cursor.row); column < line.length ? (swap = line.charAt(column) + line.charAt(column - 1), range = new Range(cursor.row, column - 1, cursor.row, column + 1)) : (swap = line.charAt(column - 1) + line.charAt(column - 2), range = new Range(cursor.row, column - 2, cursor.row, column)), this.session.replace(range, swap), this.session.selection.moveToPosition(range.end); } } }, this.toLowerCase = function() { var originalRange = this.getSelectionRange(); this.selection.isEmpty() && this.selection.selectWord(); var range = this.getSelectionRange(), text = this.session.getTextRange(range); this.session.replace(range, text.toLowerCase()), this.selection.setSelectionRange(originalRange); }, this.toUpperCase = function() { var originalRange = this.getSelectionRange(); this.selection.isEmpty() && this.selection.selectWord(); var range = this.getSelectionRange(), text = this.session.getTextRange(range); this.session.replace(range, text.toUpperCase()), this.selection.setSelectionRange(originalRange); }, this.indent = function() { var session = this.session, range = this.getSelectionRange(); if (range.start.row < range.end.row) { var rows = this.$getSelectedRows(); session.indentRows(rows.first, rows.last, "\t"); return; } if (range.start.column < range.end.column) { var text = session.getTextRange(range); if (!/^\s+$/.test(text)) { var rows = this.$getSelectedRows(); session.indentRows(rows.first, rows.last, "\t"); return; } } var line = session.getLine(range.start.row), position = range.start, size = session.getTabSize(), column = session.documentToScreenColumn(position.row, position.column); if (this.session.getUseSoftTabs()) var count = size - column % size, indentString = lang.stringRepeat(" ", count); else { for(var count = column % size; " " == line[range.start.column - 1] && count;)range.start.column--, count--; this.selection.setSelectionRange(range), indentString = "\t"; } return this.insert(indentString); }, this.blockIndent = function() { var rows = this.$getSelectedRows(); this.session.indentRows(rows.first, rows.last, "\t"); }, this.blockOutdent = function() { var selection = this.session.getSelection(); this.session.outdentRows(selection.getRange()); }, this.sortLines = function() { for(var rows = this.$getSelectedRows(), session = this.session, lines = [], i = rows.first; i <= rows.last; i++)lines.push(session.getLine(i)); lines.sort(function(a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : +(a.toLowerCase() > b.toLowerCase()); }); for(var deleteRange = new Range(0, 0, 0, 0), i = rows.first; i <= rows.last; i++){ var line = session.getLine(i); deleteRange.start.row = i, deleteRange.end.row = i, deleteRange.end.column = line.length, session.replace(deleteRange, lines[i - rows.first]); } }, this.toggleCommentLines = function() { var state = this.session.getState(this.getCursorPosition().row), rows = this.$getSelectedRows(); this.session.getMode().toggleCommentLines(state, this.session, rows.first, rows.last); }, this.toggleBlockComment = function() { var cursor = this.getCursorPosition(), state = this.session.getState(cursor.row), range = this.getSelectionRange(); this.session.getMode().toggleBlockComment(state, this.session, range, cursor); }, this.getNumberAt = function(row, column) { var _numberRx = /[\-]?[0-9]+(?:\.[0-9]+)?/g; _numberRx.lastIndex = 0; for(var s = this.session.getLine(row); _numberRx.lastIndex < column;){ var m = _numberRx.exec(s); if (m.index <= column && m.index + m[0].length >= column) return { value: m[0], start: m.index, end: m.index + m[0].length }; } return null; }, this.modifyNumber = function(amount) { var row = this.selection.getCursor().row, column = this.selection.getCursor().column, charRange = new Range(row, column - 1, row, column), c = this.session.getTextRange(charRange); if (!isNaN(parseFloat(c)) && isFinite(c)) { var nr = this.getNumberAt(row, column); if (nr) { var fp = nr.value.indexOf(".") >= 0 ? nr.start + nr.value.indexOf(".") + 1 : nr.end, decimals = nr.start + nr.value.length - fp, t = parseFloat(nr.value); t *= Math.pow(10, decimals), fp !== nr.end && column < fp ? amount *= Math.pow(10, nr.end - column - 1) : amount *= Math.pow(10, nr.end - column), t += amount; var nnr = (t /= Math.pow(10, decimals)).toFixed(decimals), replaceRange = new Range(row, nr.start, row, nr.end); this.session.replace(replaceRange, nnr), this.moveCursorTo(row, Math.max(nr.start + 1, column + nnr.length - nr.value.length)); } } else this.toggleWord(); }, this.$toggleWordPairs = [ [ "first", "last" ], [ "true", "false" ], [ "yes", "no" ], [ "width", "height" ], [ "top", "bottom" ], [ "right", "left" ], [ "on", "off" ], [ "x", "y" ], [ "get", "set" ], [ "max", "min" ], [ "horizontal", "vertical" ], [ "show", "hide" ], [ "add", "remove" ], [ "up", "down" ], [ "before", "after" ], [ "even", "odd" ], [ "in", "out" ], [ "inside", "outside" ], [ "next", "previous" ], [ "increase", "decrease" ], [ "attach", "detach" ], [ "&&", "||" ], [ "==", "!=" ] ], this.toggleWord = function() { var reg, row = this.selection.getCursor().row, column = this.selection.getCursor().column; this.selection.selectWord(); var currentState = this.getSelectedText(), currWordStart = this.selection.getWordRange().start.column, wordParts = currentState.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g, "$1 ").split(/\s/), delta = column - currWordStart - 1; delta < 0 && (delta = 0); var curLength = 0, itLength = 0, that = this; currentState.match(/[A-Za-z0-9_]+/) && wordParts.forEach(function(item, i) { itLength = curLength + item.length, delta >= curLength && delta <= itLength && (currentState = item, that.selection.clearSelection(), that.moveCursorTo(row, curLength + currWordStart), that.selection.selectTo(row, itLength + currWordStart)), curLength = itLength; }); for(var wordPairs = this.$toggleWordPairs, i = 0; i < wordPairs.length; i++)for(var item = wordPairs[i], j = 0; j <= 1; j++){ var negate = +!j, firstCondition = currentState.match(RegExp("^\\s?_?(" + lang.escapeRegExp(item[j]) + ")\\s?$", "i")); firstCondition && currentState.match(RegExp("([_]|^|\\s)(" + lang.escapeRegExp(firstCondition[1]) + ")($|\\s)", "g")) && (reg = currentState.replace(RegExp(lang.escapeRegExp(item[j]), "i"), function(result) { var res = item[negate]; return result.toUpperCase() == result ? res = res.toUpperCase() : result.charAt(0).toUpperCase() == result.charAt(0) && (res = res.substr(0, 0) + item[negate].charAt(0).toUpperCase() + res.substr(1)), res; }), this.insert(reg), reg = ""); } }, this.removeLines = function() { var rows = this.$getSelectedRows(); this.session.removeFullLines(rows.first, rows.last), this.clearSelection(); }, this.duplicateSelection = function() { var sel = this.selection, doc = this.session, range = sel.getRange(), reverse = sel.isBackwards(); if (range.isEmpty()) { var row = range.start.row; doc.duplicateLines(row, row); } else { var point = reverse ? range.start : range.end, endPoint = doc.insert(point, doc.getTextRange(range), !1); range.start = point, range.end = endPoint, sel.setSelectionRange(range, reverse); } }, this.moveLinesDown = function() { this.$moveLines(1, !1); }, this.moveLinesUp = function() { this.$moveLines(-1, !1); }, this.moveText = function(range, toPosition, copy) { return this.session.moveText(range, toPosition, copy); }, this.copyLinesUp = function() { this.$moveLines(-1, !0); }, this.copyLinesDown = function() { this.$moveLines(1, !0); }, this.$moveLines = function(dir, copy) { var rows, moved, selection = this.selection; if (!selection.inMultiSelectMode || this.inVirtualSelectionMode) { var range = selection.toOrientedRange(); rows = this.$getSelectedRows(range), moved = this.session.$moveLines(rows.first, rows.last, copy ? 0 : dir), copy && -1 == dir && (moved = 0), range.moveBy(moved, 0), selection.fromOrientedRange(range); } else { var ranges = selection.rangeList.ranges; selection.rangeList.detach(this.session), this.inVirtualSelectionMode = !0; for(var diff = 0, totalDiff = 0, l = ranges.length, i = 0; i < l; i++){ var rangeIndex = i; ranges[i].moveBy(diff, 0); for(var first = (rows = this.$getSelectedRows(ranges[i])).first, last = rows.last; ++i < l;){ totalDiff && ranges[i].moveBy(totalDiff, 0); var subRows = this.$getSelectedRows(ranges[i]); if (copy && subRows.first != last || !copy && subRows.first > last + 1) break; last = subRows.last; } for(i--, diff = this.session.$moveLines(first, last, copy ? 0 : dir), copy && -1 == dir && (rangeIndex = i + 1); rangeIndex <= i;)ranges[rangeIndex].moveBy(diff, 0), rangeIndex++; copy || (diff = 0), totalDiff += diff; } selection.fromOrientedRange(selection.ranges[0]), selection.rangeList.attach(this.session), this.inVirtualSelectionMode = !1; } }, this.$getSelectedRows = function(range) { return range = (range || this.getSelectionRange()).collapseRows(), { first: this.session.getRowFoldStart(range.start.row), last: this.session.getRowFoldEnd(range.end.row) }; }, this.onCompositionStart = function(compositionState) { this.renderer.showComposition(compositionState); }, this.onCompositionUpdate = function(text) { this.renderer.setCompositionText(text); }, this.onCompositionEnd = function() { this.renderer.hideComposition(); }, this.getFirstVisibleRow = function() { return this.renderer.getFirstVisibleRow(); }, this.getLastVisibleRow = function() { return this.renderer.getLastVisibleRow(); }, this.isRowVisible = function(row) { return row >= this.getFirstVisibleRow() && row <= this.getLastVisibleRow(); }, this.isRowFullyVisible = function(row) { return row >= this.renderer.getFirstFullyVisibleRow() && row <= this.renderer.getLastFullyVisibleRow(); }, this.$getVisibleRowCount = function() { return this.renderer.getScrollBottomRow() - this.renderer.getScrollTopRow() + 1; }, this.$moveByPage = function(dir, select) { var renderer = this.renderer, config = this.renderer.layerConfig, rows = dir * Math.floor(config.height / config.lineHeight); !0 === select ? this.selection.$moveSelection(function() { this.moveCursorBy(rows, 0); }) : !1 === select && (this.selection.moveCursorBy(rows, 0), this.selection.clearSelection()); var scrollTop = renderer.scrollTop; renderer.scrollBy(0, rows * config.lineHeight), null != select && renderer.scrollCursorIntoView(null, 0.5), renderer.animateScrolling(scrollTop); }, this.selectPageDown = function() { this.$moveByPage(1, !0); }, this.selectPageUp = function() { this.$moveByPage(-1, !0); }, this.gotoPageDown = function() { this.$moveByPage(1, !1); }, this.gotoPageUp = function() { this.$moveByPage(-1, !1); }, this.scrollPageDown = function() { this.$moveByPage(1); }, this.scrollPageUp = function() { this.$moveByPage(-1); }, this.scrollToRow = function(row) { this.renderer.scrollToRow(row); }, this.scrollToLine = function(line, center, animate, callback) { this.renderer.scrollToLine(line, center, animate, callback); }, this.centerSelection = function() { var range = this.getSelectionRange(), pos = { row: Math.floor(range.start.row + (range.end.row - range.start.row) / 2), column: Math.floor(range.start.column + (range.end.column - range.start.column) / 2) }; this.renderer.alignCursor(pos, 0.5); }, this.getCursorPosition = function() { return this.selection.getCursor(); }, this.getCursorPositionScreen = function() { return this.session.documentToScreenPosition(this.getCursorPosition()); }, this.getSelectionRange = function() { return this.selection.getRange(); }, this.selectAll = function() { this.selection.selectAll(); }, this.clearSelection = function() { this.selection.clearSelection(); }, this.moveCursorTo = function(row, column) { this.selection.moveCursorTo(row, column); }, this.moveCursorToPosition = function(pos) { this.selection.moveCursorToPosition(pos); }, this.jumpToMatching = function(select, expand) { var matchType, bracketType, range, pos, cursor = this.getCursorPosition(), iterator = new TokenIterator(this.session, cursor.row, cursor.column), prevToken = iterator.getCurrentToken(), token = prevToken || iterator.stepForward(); if (token) { var found = !1, depth = {}, i = cursor.column - token.start, brackets = { ")": "(", "(": "(", "]": "[", "[": "[", "{": "{", "}": "{" }; do { if (token.value.match(/[{}()\[\]]/g)) { for(; i < token.value.length && !found; i++)if (brackets[token.value[i]]) switch(isNaN(depth[bracketType = brackets[token.value[i]] + "." + token.type.replace("rparen", "lparen")]) && (depth[bracketType] = 0), token.value[i]){ case "(": case "[": case "{": depth[bracketType]++; break; case ")": case "]": case "}": depth[bracketType]--, -1 === depth[bracketType] && (matchType = "bracket", found = !0); } } else -1 !== token.type.indexOf("tag-name") && (isNaN(depth[token.value]) && (depth[token.value] = 0), "<" === prevToken.value ? depth[token.value]++ : "</" === prevToken.value && depth[token.value]--, -1 === depth[token.value] && (matchType = "tag", found = !0)); found || (prevToken = token, token = iterator.stepForward(), i = 0); }while (token && !found) if (matchType) { if ("bracket" === matchType) !(range = this.session.getBracketRange(cursor)) && (pos = (range = new Range(iterator.getCurrentTokenRow(), iterator.getCurrentTokenColumn() + i - 1, iterator.getCurrentTokenRow(), iterator.getCurrentTokenColumn() + i - 1)).start, (expand || pos.row === cursor.row && 2 > Math.abs(pos.column - cursor.column)) && (range = this.session.getBracketRange(pos))); else if ("tag" === matchType) { if (!token || -1 === token.type.indexOf("tag-name")) return; var tag = token.value; if (0 === (range = new Range(iterator.getCurrentTokenRow(), iterator.getCurrentTokenColumn() - 2, iterator.getCurrentTokenRow(), iterator.getCurrentTokenColumn() - 2)).compare(cursor.row, cursor.column)) { found = !1; do token = prevToken, (prevToken = iterator.stepBackward()) && (-1 !== prevToken.type.indexOf("tag-close") && range.setEnd(iterator.getCurrentTokenRow(), iterator.getCurrentTokenColumn() + 1), token.value === tag && -1 !== token.type.indexOf("tag-name") && ("<" === prevToken.value ? depth[tag]++ : "</" === prevToken.value && depth[tag]--, 0 === depth[tag] && (found = !0))); while (prevToken && !found) } token && token.type.indexOf("tag-name") && (pos = range.start).row == cursor.row && 2 > Math.abs(pos.column - cursor.column) && (pos = range.end); } (pos = range && range.cursor || pos) && (select ? range && expand ? this.selection.setRange(range) : range && range.isEqual(this.getSelectionRange()) ? this.clearSelection() : this.selection.selectTo(pos.row, pos.column) : this.selection.moveTo(pos.row, pos.column)); } } }, this.gotoLine = function(lineNumber, column, animate) { this.selection.clearSelection(), this.session.unfold({ row: lineNumber - 1, column: column || 0 }), this.exitMultiSelectMode && this.exitMultiSelectMode(), this.moveCursorTo(lineNumber - 1, column || 0), this.isRowFullyVisible(lineNumber - 1) || this.scrollToLine(lineNumber - 1, !0, animate); }, this.navigateTo = function(row, column) { this.selection.moveTo(row, column); }, this.navigateUp = function(times) { if (this.selection.isMultiLine() && !this.selection.isBackwards()) { var selectionStart = this.selection.anchor.getPosition(); return this.moveCursorToPosition(selectionStart); } this.selection.clearSelection(), this.selection.moveCursorBy(-times || -1, 0); }, this.navigateDown = function(times) { if (this.selection.isMultiLine() && this.selection.isBackwards()) { var selectionEnd = this.selection.anchor.getPosition(); return this.moveCursorToPosition(selectionEnd); } this.selection.clearSelection(), this.selection.moveCursorBy(times || 1, 0); }, this.navigateLeft = function(times) { if (this.selection.isEmpty()) for(times = times || 1; times--;)this.selection.moveCursorLeft(); else { var selectionStart = this.getSelectionRange().start; this.moveCursorToPosition(selectionStart); } this.clearSelection(); }, this.navigateRight = function(times) { if (this.selection.isEmpty()) for(times = times || 1; times--;)this.selection.moveCursorRight(); else { var selectionEnd = this.getSelectionRange().end; this.moveCursorToPosition(selectionEnd); } this.clearSelection(); }, this.navigateLineStart = function() { this.selection.moveCursorLineStart(), this.clearSelection(); }, this.navigateLineEnd = function() { this.selection.moveCursorLineEnd(), this.clearSelection(); }, this.navigateFileEnd = function() { this.selection.moveCursorFileEnd(), this.clearSelection(); }, this.navigateFileStart = function() { this.selection.moveCursorFileStart(), this.clearSelection(); }, this.navigateWordRight = function() { this.selection.moveCursorWordRight(), this.clearSelection(); }, this.navigateWordLeft = function() { this.selection.moveCursorWordLeft(), this.clearSelection(); }, this.replace = function(replacement, options) { options && this.$search.set(options); var range = this.$search.find(this.session), replaced = 0; return range && (this.$tryReplace(range, replacement) && (replaced = 1), this.selection.setSelectionRange(range), this.renderer.scrollSelectionIntoView(range.start, range.end)), replaced; }, this.replaceAll = function(replacement, options) { options && this.$search.set(options); var ranges = this.$search.findAll(this.session), replaced = 0; if (!ranges.length) return replaced; var selection = this.getSelectionRange(); this.selection.moveTo(0, 0); for(var i = ranges.length - 1; i >= 0; --i)this.$tryReplace(ranges[i], replacement) && replaced++; return this.selection.setSelectionRange(selection), replaced; }, this.$tryReplace = function(range, replacement) { var input = this.session.getTextRange(range); return null !== (replacement = this.$search.replace(input, replacement)) ? (range.end = this.session.replace(range, replacement), range) : null; }, this.getLastSearchOptions = function() { return this.$search.getOptions(); }, this.find = function(needle, options, animate) { options || (options = {}), "string" == typeof needle || needle instanceof RegExp ? options.needle = needle : "object" == typeof needle && oop.mixin(options, needle); var range = this.selection.getRange(); null == options.needle && ((needle = this.session.getTextRange(range) || this.$search.$options.needle) || (range = this.session.getWordRange(range.start.row, range.start.column), needle = this.session.getTextRange(range)), this.$search.set({ needle: needle })), this.$search.set(options), options.start || this.$search.set({ start: range }); var newRange = this.$search.find(this.session); return options.preventScroll ? newRange : newRange ? (this.revealRange(newRange, animate), newRange) : void (options.backwards ? range.start = range.end : range.end = range.start, this.selection.setRange(range)); }, this.findNext = function(options, animate) { this.find({ skipCurrent: !0, backwards: !1 }, options, animate); }, this.findPrevious = function(options, animate) { this.find(options, { skipCurrent: !0, backwards: !0 }, animate); }, this.revealRange = function(range, animate) { this.session.unfold(range), this.selection.setSelectionRange(range); var scrollTop = this.renderer.scrollTop; this.renderer.scrollSelectionIntoView(range.start, range.end, 0.5), !1 !== animate && this.renderer.animateScrolling(scrollTop); }, this.undo = function() { this.session.getUndoManager().undo(this.session), this.renderer.scrollCursorIntoView(null, 0.5); }, this.redo = function() { this.session.getUndoManager().redo(this.session), this.renderer.scrollCursorIntoView(null, 0.5); }, this.destroy = function() { this.$toDestroy && (this.$toDestroy.forEach(function(el) { el.destroy(); }), this.$toDestroy = null), this.$mouseHandler && this.$mouseHandler.destroy(), this.renderer.destroy(), this._signal("destroy", this), this.session && this.session.destroy(), this._$emitInputEvent && this._$emitInputEvent.cancel(), this.removeAllListeners(); }, this.setAutoScrollEditorIntoView = function(enable) { if (enable) { var rect, self1 = this, shouldScroll = !1; this.$scrollAnchor || (this.$scrollAnchor = document.createElement("div")); var scrollAnchor = this.$scrollAnchor; scrollAnchor.style.cssText = "position:absolute", this.container.insertBefore(scrollAnchor, this.container.firstChild); var onChangeSelection = this.on("changeSelection", function() { shouldScroll = !0; }), onBeforeRender = this.renderer.on("beforeRender", function() { shouldScroll && (rect = self1.renderer.container.getBoundingClientRect()); }), onAfterRender = this.renderer.on("afterRender", function() { if (shouldScroll && rect && (self1.isFocused() || self1.searchBox && self1.searchBox.isFocused())) { var renderer = self1.renderer, pos = renderer.$cursorLayer.$pixelPos, config = renderer.layerConfig, top = pos.top - config.offset; null != (shouldScroll = pos.top >= 0 && top + rect.top < 0 || (!(pos.top < config.height) || !(pos.top + rect.top + config.lineHeight > window.innerHeight)) && null) && (scrollAnchor.style.top = top + "px", scrollAnchor.style.left = pos.left + "px", scrollAnchor.style.height = config.lineHeight + "px", scrollAnchor.scrollIntoView(shouldScroll)), shouldScroll = rect = null; } }); this.setAutoScrollEditorIntoView = function(enable) { enable || (delete this.setAutoScrollEditorIntoView, this.off("changeSelection", onChangeSelection), this.renderer.off("afterRender", onAfterRender), this.renderer.off("beforeRender", onBeforeRender)); }; } }, this.$resetCursorStyle = function() { var style = this.$cursorStyle || "ace", cursorLayer = this.renderer.$cursorLayer; cursorLayer && (cursorLayer.setSmoothBlinking(/smooth/.test(style)), cursorLayer.isBlinking = !this.$readOnly && "wide" != style, dom.setCssClass(cursorLayer.element, "ace_slim-cursors", /slim/.test(style))); }, this.prompt = function(message, options, callback) { var editor = this; config.loadModule("./ext/prompt", function(module) { module.prompt(editor, message, options, callback); }); }; }).call(Editor.prototype), config.defineOptions(Editor.prototype, "editor", { selectionStyle: { set: function(style) { this.onSelectionChange(), this._signal("changeSelectionStyle", { data: style }); }, initialValue: "line" }, highlightActiveLine: { set: function() { this.$updateHighlightActiveLine(); }, initialValue: !0 }, highlightSelectedWord: { set: function(shouldHighlight) { this.$onSelectionChange(); }, initialValue: !0 }, readOnly: { set: function(readOnly) { this.textInput.setReadOnly(readOnly), this.$resetCursorStyle(); }, initialValue: !1 }, copyWithEmptySelection: { set: function(value) { this.textInput.setCopyWithEmptySelection(value); }, initialValue: !1 }, cursorStyle: { set: function(val) { this.$resetCursorStyle(); }, values: [ "ace", "slim", "smooth", "wide" ], initialValue: "ace" }, mergeUndoDeltas: { values: [ !1, !0, "always" ], initialValue: !0 }, behavioursEnabled: { initialValue: !0 }, wrapBehavioursEnabled: { initialValue: !0 }, enableAutoIndent: { initialValue: !0 }, autoScrollEditorIntoView: { set: function(val) { this.setAutoScrollEditorIntoView(val); } }, keyboardHandler: { set: function(val) { this.setKeyboardHandler(val); }, get: function() { return this.$keybindingId; }, handlesSet: !0 }, value: { set: function(val) { this.session.setValue(val); }, get: function() { return this.getValue(); }, handlesSet: !0, hidden: !0 }, session: { set: function(val) { this.setSession(val); }, get: function() { return this.session; }, handlesSet: !0, hidden: !0 }, showLineNumbers: { set: function(show) { this.renderer.$gutterLayer.setShowLineNumbers(show), this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER), show && this.$relativeLineNumbers ? relativeNumberRenderer.attach(this) : relativeNumberRenderer.detach(this); }, initialValue: !0 }, relativeLineNumbers: { set: function(value) { this.$showLineNumbers && value ? relativeNumberRenderer.attach(this) : relativeNumberRenderer.detach(this); } }, placeholder: { set: function(message) { this.$updatePlaceholder || (this.$updatePlaceholder = (function() { var value = this.session && (this.renderer.$composition || this.getValue()); if (value && this.renderer.placeholderNode) this.renderer.off("afterRender", this.$updatePlaceholder), dom.removeCssClass(this.container, "ace_hasPlaceholder"), this.renderer.placeholderNode.remove(), this.renderer.placeholderNode = null; else if (value || this.renderer.placeholderNode) !value && this.renderer.placeholderNode && (this.renderer.placeholderNode.textContent = this.$placeholder || ""); else { this.renderer.on("afterRender", this.$updatePlaceholder), dom.addCssClass(this.container, "ace_hasPlaceholder"); var el = dom.createElement("div"); el.className = "ace_placeholder", el.textContent = this.$placeholder || "", this.renderer.placeholderNode = el, this.renderer.content.appendChild(this.renderer.placeholderNode); } }).bind(this), this.on("input", this.$updatePlaceholder)), this.$updatePlaceholder(); } }, hScrollBarAlwaysVisible: "renderer", vScrollBarAlwaysVisible: "renderer", highlightGutterLine: "renderer", animatedScroll: "renderer", showInvisibles: "renderer", showPrintMargin: "renderer", printMarginColumn: "renderer", printMargin: "renderer", fadeFoldWidgets: "renderer", showFoldWidgets: "renderer", displayIndentGuides: "renderer", showGutter: "renderer", fontSize: "renderer", fontFamily: "renderer", maxLines: "renderer", minLines: "renderer", scrollPastEnd: "renderer", fixedWidthGutter: "renderer", theme: "renderer", hasCssTransforms: "renderer", maxPixelHeight: "renderer", useTextareaForIME: "renderer", scrollSpeed: "$mouseHandler", dragDelay: "$mouseHandler", dragEnabled: "$mouseHandler", focusTimeout: "$mouseHandler", tooltipFollowsMouse: "$mouseHandler", firstLineNumber: "session", overwrite: "session", newLineMode: "session", useWorker: "session", useSoftTabs: "session", navigateWithinSoftTabs: "session", tabSize: "session", wrap: "session", indentedSoftWrap: "session", foldStyle: "session", mode: "session" }); var relativeNumberRenderer = { getText: function(session, row) { return (Math.abs(session.selection.lead.row - row) || row + 1 + (row < 9 ? "\xb7" : "")) + ""; }, getWidth: function(session, lastLineNumber, config) { return Math.max(lastLineNumber.toString().length, (config.lastRow + 1).toString().length, 2) * config.characterWidth; }, update: function(e, editor) { editor.renderer.$loop.schedule(editor.renderer.CHANGE_GUTTER); }, attach: function(editor) { editor.renderer.$gutterLayer.$renderer = this, editor.on("changeSelection", this.update), this.update(null, editor); }, detach: function(editor) { editor.renderer.$gutterLayer.$renderer == this && (editor.renderer.$gutterLayer.$renderer = null), editor.off("changeSelection", this.update), this.update(null, editor); } }; exports.Editor = Editor; }), ace.define("ace/undomanager", [ "require", "exports", "module", "ace/range" ], function(require, exports, module) { "use strict"; var UndoManager = function() { this.$maxRev = 0, this.$fromUndo = !1, this.reset(); }; (function() { this.addSession = function(session) { this.$session = session; }, this.add = function(delta, allowMerge, session) { this.$fromUndo || delta == this.$lastDelta || (this.$keepRedoStack || (this.$redoStack.length = 0), !1 !== allowMerge && this.lastDeltas || (this.lastDeltas = [], this.$undoStack.push(this.lastDeltas), delta.id = this.$rev = ++this.$maxRev), ("remove" == delta.action || "insert" == delta.action) && (this.$lastDelta = delta), this.lastDeltas.push(delta)); }, this.addSelection = function(selection, rev) { this.selections.push({ value: selection, rev: rev || this.$rev }); }, this.startNewGroup = function() { return this.lastDeltas = null, this.$rev; }, this.markIgnored = function(from, to) { null == to && (to = this.$rev + 1); for(var stack = this.$undoStack, i = stack.length; i--;){ var delta = stack[i][0]; if (delta.id <= from) break; delta.id < to && (delta.ignore = !0); } this.lastDeltas = null; }, this.getSelection = function(rev, after) { for(var stack = this.selections, i = stack.length; i--;){ var selection = stack[i]; if (selection.rev < rev) return after && (selection = stack[i + 1]), selection; } }, this.getRevision = function() { return this.$rev; }, this.getDeltas = function(from, to) { null == to && (to = this.$rev + 1); for(var stack = this.$undoStack, end = null, start = 0, i = stack.length; i--;){ var delta = stack[i][0]; if (delta.id < to && !end && (end = i + 1), delta.id <= from) { start = i + 1; break; } } return stack.slice(start, end); }, this.getChangedRanges = function(from, to) { null == to && (to = this.$rev + 1); }, this.getChangedLines = function(from, to) { null == to && (to = this.$rev + 1); }, this.undo = function(session, dontSelect) { this.lastDeltas = null; var stack = this.$undoStack; if (function(stack, pos) { for(var i = pos; i--;){ var deltaSet = stack[i]; if (deltaSet && !deltaSet[0].ignore) { for(; i < pos - 1;){ var swapped = function(ds1, ds2) { for(var i = ds1.length; i--;)for(var j = 0; j < ds2.length; j++)if (!swap(ds1[i], ds2[j])) { for(; i < ds1.length;){ for(; j--;)swap(ds2[j], ds1[i]); j = ds2.length, i++; } return [ ds1, ds2 ]; } return ds1.selectionBefore = ds2.selectionBefore = ds1.selectionAfter = ds2.selectionAfter = null, [ ds2, ds1 ]; }(stack[i], stack[i + 1]); stack[i] = swapped[0], stack[i + 1] = swapped[1], i++; } return !0; } } }(stack, stack.length)) { session || (session = this.$session), this.$redoStackBaseRev !== this.$rev && this.$redoStack.length && (this.$redoStack = []), this.$fromUndo = !0; var deltaSet = stack.pop(), undoSelectionRange = null; return deltaSet && (undoSelectionRange = session.undoChanges(deltaSet, dontSelect), this.$redoStack.push(deltaSet), this.$syncRev()), this.$fromUndo = !1, undoSelectionRange; } }, this.redo = function(session, dontSelect) { if (this.lastDeltas = null, session || (session = this.$session), this.$fromUndo = !0, this.$redoStackBaseRev != this.$rev) { var diff = this.getDeltas(this.$redoStackBaseRev, this.$rev + 1); (function(redoStack, deltaSets) { for(var i = 0; i < deltaSets.length; i++)for(var deltas = deltaSets[i], j = 0; j < deltas.length; j++)!function(redoStack, d) { var d1; d = { start: clonePos((d1 = d).start), end: clonePos(d1.end), action: d1.action, lines: d1.lines.slice() }; for(var j = redoStack.length; j--;){ for(var deltaSet = redoStack[j], i = 0; i < deltaSet.length; i++){ var xformed = function(d1, c1) { var before, after, i1 = "insert" == d1.action, i2 = "insert" == c1.action; if (i1 && i2) 0 > cmp(d1.start, c1.start) ? shift(c1, d1, 1) : shift(d1, c1, 1); else if (i1 && !i2) cmp(d1.start, c1.end) >= 0 ? shift(d1, c1, -1) : (0 >= cmp(d1.start, c1.start) || shift(d1, Range.fromPoints(c1.start, d1.start), -1), shift(c1, d1, 1)); else if (!i1 && i2) cmp(c1.start, d1.end) >= 0 ? shift(c1, d1, -1) : (0 >= cmp(c1.start, d1.start) || shift(c1, Range.fromPoints(d1.start, c1.start), -1), shift(d1, c1, 1)); else if (!i1 && !i2) { if (cmp(c1.start, d1.end) >= 0) shift(c1, d1, -1); else { if (!(0 >= cmp(c1.end, d1.start))) return 0 > cmp(d1.start, c1.start) && (before = d1, d1 = splitDelta(d1, c1.start)), cmp(d1.end, c1.end) > 0 && (after = splitDelta(d1, c1.end)), shiftPos(c1.end, d1.start, d1.end, -1), after && !before && (d1.lines = after.lines, d1.start = after.start, d1.end = after.end, after = d1), [ c1, before, after ].filter(Boolean); shift(d1, c1, -1); } } return [ c1, d1 ]; }(deltaSet[i], d); d = xformed[0], 2 != xformed.length && (xformed[2] ? (deltaSet.splice(i + 1, 1, xformed[1], xformed[2]), i++) : !xformed[1] && (deltaSet.splice(i, 1), i--)); } deltaSet.length || redoStack.splice(j, 1); } }(redoStack, deltas[j]); })(this.$redoStack, diff), this.$redoStackBaseRev = this.$rev, this.$redoStack.forEach(function(x) { x[0].id = ++this.$maxRev; }, this); } var deltaSet = this.$redoStack.pop(), redoSelectionRange = null; return deltaSet && (redoSelectionRange = session.redoChanges(deltaSet, dontSelect), this.$undoStack.push(deltaSet), this.$syncRev()), this.$fromUndo = !1, redoSelectionRange; }, this.$syncRev = function() { var stack = this.$undoStack, nextDelta = stack[stack.length - 1], id = nextDelta && nextDelta[0].id || 0; this.$redoStackBaseRev = id, this.$rev = id; }, this.reset = function() { this.lastDeltas = null, this.$lastDelta = null, this.$undoStack = [], this.$redoStack = [], this.$rev = 0, this.mark = 0, this.$redoStackBaseRev = this.$rev, this.selections = []; }, this.canUndo = function() { return this.$undoStack.length > 0; }, this.canRedo = function() { return this.$redoStack.length > 0; }, this.bookmark = function(rev) { void 0 == rev && (rev = this.$rev), this.mark = rev; }, this.isAtBookmark = function() { return this.$rev === this.mark; }, this.toJSON = function() {}, this.fromJSON = function() {}, this.hasUndo = this.canUndo, this.hasRedo = this.canRedo, this.isClean = this.isAtBookmark, this.markClean = this.bookmark, this.$prettyPrint = function(delta) { return delta ? stringifyDelta(delta) : stringifyDelta(this.$undoStack) + "\n---\n" + stringifyDelta(this.$redoStack); }; }).call(UndoManager.prototype); var Range = require("./range").Range, cmp = Range.comparePoints; function clonePos(pos) { return { row: pos.row, column: pos.column }; } function stringifyDelta(d) { if (Array.isArray(d = d || this)) return d.map(stringifyDelta).join("\n"); var type = ""; return d.action ? type = ("insert" == d.action ? "+" : "-") + "[" + d.lines + "]" : d.value && (type = Array.isArray(d.value) ? d.value.map(stringifyRange).join("\n") : stringifyRange(d.value)), d.start && (type += stringifyRange(d)), (d.id || d.rev) && (type += "\t(" + (d.id || d.rev) + ")"), type; } function stringifyRange(r) { return r.start.row + ":" + r.start.column + "=>" + r.end.row + ":" + r.end.column; } function swap(d1, d2) { var i1 = "insert" == d1.action, i2 = "insert" == d2.action; if (i1 && i2) { if (cmp(d2.start, d1.end) >= 0) shift(d2, d1, -1); else { if (!(0 >= cmp(d2.start, d1.start))) return null; shift(d1, d2, 1); } } else if (i1 && !i2) { if (cmp(d2.start, d1.end) >= 0) shift(d2, d1, -1); else { if (!(0 >= cmp(d2.end, d1.start))) return null; shift(d1, d2, -1); } } else if (!i1 && i2) { if (cmp(d2.start, d1.start) >= 0) shift(d2, d1, 1); else { if (!(0 >= cmp(d2.start, d1.start))) return null; shift(d1, d2, 1); } } else if (!i1 && !i2) { if (cmp(d2.start, d1.start) >= 0) shift(d2, d1, 1); else { if (!(0 >= cmp(d2.end, d1.start))) return null; shift(d1, d2, -1); } } return [ d2, d1 ]; } function shift(d1, d2, dir) { shiftPos(d1.start, d2.start, d2.end, dir), shiftPos(d1.end, d2.start, d2.end, dir); } function shiftPos(pos, start, end, dir) { pos.row == (1 == dir ? start : end).row && (pos.column += dir * (end.column - start.column)), pos.row += dir * (end.row - start.row); } function splitDelta(c, pos) { var lines = c.lines, end = c.end; c.end = clonePos(pos); var rowsBefore = c.end.row - c.start.row, otherLines = lines.splice(rowsBefore, lines.length), col = rowsBefore ? pos.column : pos.column - c.start.column; return lines.push(otherLines[0].substring(0, col)), otherLines[0] = otherLines[0].substr(col), { start: clonePos(pos), end: end, lines: otherLines, action: c.action }; } Range.comparePoints, exports.UndoManager = UndoManager; }), ace.define("ace/layer/lines", [ "require", "exports", "module", "ace/lib/dom" ], function(require, exports, module) { "use strict"; var dom = require("../lib/dom"), Lines = function(element, canvasHeight) { this.element = element, this.canvasHeight = canvasHeight || 500000, this.element.style.height = 2 * this.canvasHeight + "px", this.cells = [], this.cellCache = [], this.$offsetCoefficient = 0; }; (function() { this.moveContainer = function(config) { dom.translate(this.element, 0, -(config.firstRowScreen * config.lineHeight % this.canvasHeight) - config.offset * this.$offsetCoefficient); }, this.pageChanged = function(oldConfig, newConfig) { return Math.floor(oldConfig.firstRowScreen * oldConfig.lineHeight / this.canvasHeight) !== Math.floor(newConfig.firstRowScreen * newConfig.lineHeight / this.canvasHeight); }, this.computeLineTop = function(row, config, session) { var screenPage = Math.floor(config.firstRowScreen * config.lineHeight / this.canvasHeight); return session.documentToScreenRow(row, 0) * config.lineHeight - screenPage * this.canvasHeight; }, this.computeLineHeight = function(row, config, session) { return config.lineHeight * session.getRowLineCount(row); }, this.getLength = function() { return this.cells.length; }, this.get = function(index) { return this.cells[index]; }, this.shift = function() { this.$cacheCell(this.cells.shift()); }, this.pop = function() { this.$cacheCell(this.cells.pop()); }, this.push = function(cell) { if (Array.isArray(cell)) { this.cells.push.apply(this.cells, cell); for(var fragment = dom.createFragment(this.element), i = 0; i < cell.length; i++)fragment.appendChild(cell[i].element); this.element.appendChild(fragment); } else this.cells.push(cell), this.element.appendChild(cell.element); }, this.unshift = function(cell) { if (Array.isArray(cell)) { this.cells.unshift.apply(this.cells, cell); for(var fragment = dom.createFragment(this.element), i = 0; i < cell.length; i++)fragment.appendChild(cell[i].element); this.element.firstChild ? this.element.insertBefore(fragment, this.element.firstChild) : this.element.appendChild(fragment); } else this.cells.unshift(cell), this.element.insertAdjacentElement("afterbegin", cell.element); }, this.last = function() { return this.cells.length ? this.cells[this.cells.length - 1] : null; }, this.$cacheCell = function(cell) { cell && (cell.element.remove(), this.cellCache.push(cell)); }, this.createCell = function(row, config, session, initElement) { var cell = this.cellCache.pop(); if (!cell) { var element = dom.createElement("div"); initElement && initElement(element), this.element.appendChild(element), cell = { element: element, text: "", row: row }; } return cell.row = row, cell; }; }).call(Lines.prototype), exports.Lines = Lines; }), ace.define("ace/layer/gutter", [ "require", "exports", "module", "ace/lib/dom", "ace/lib/oop", "ace/lib/lang", "ace/lib/event_emitter", "ace/layer/lines" ], function(require, exports, module) { "use strict"; var dom = require("../lib/dom"), oop = require("../lib/oop"), lang = require("../lib/lang"), EventEmitter = require("../lib/event_emitter").EventEmitter, Lines = require("./lines").Lines, Gutter = function(parentEl) { this.element = dom.createElement("div"), this.element.className = "ace_layer ace_gutter-layer", parentEl.appendChild(this.element), this.setShowFoldWidgets(this.$showFoldWidgets), this.gutterWidth = 0, this.$annotations = [], this.$updateAnnotations = this.$updateAnnotations.bind(this), this.$lines = new Lines(this.element), this.$lines.$offsetCoefficient = 1; }; function onCreateCell(element) { var textNode = document.createTextNode(""); element.appendChild(textNode); var foldWidget = dom.createElement("span"); return element.appendChild(foldWidget), element; } (function() { oop.implement(this, EventEmitter), this.setSession = function(session) { this.session && this.session.off("change", this.$updateAnnotations), this.session = session, session && session.on("change", this.$updateAnnotations); }, this.addGutterDecoration = function(row, className) { window.console && console.warn && console.warn("deprecated use session.addGutterDecoration"), this.session.addGutterDecoration(row, className); }, this.removeGutterDecoration = function(row, className) { window.console && console.warn && console.warn("deprecated use session.removeGutterDecoration"), this.session.removeGutterDecoration(row, className); }, this.setAnnotations = function(annotations) { this.$annotations = []; for(var i = 0; i < annotations.length; i++){ var annotation = annotations[i], row = annotation.row, rowInfo = this.$annotations[row]; rowInfo || (rowInfo = this.$annotations[row] = { text: [] }); var annoText = annotation.text; annoText = annoText ? lang.escapeHTML(annoText) : annotation.html || "", -1 === rowInfo.text.indexOf(annoText) && rowInfo.text.push(annoText); var type = annotation.type; "error" == type ? rowInfo.className = " ace_error" : "warning" == type && " ace_error" != rowInfo.className ? rowInfo.className = " ace_warning" : "info" != type || rowInfo.className || (rowInfo.className = " ace_info"); } }, this.$updateAnnotations = function(delta) { if (this.$annotations.length) { var firstRow = delta.start.row, len = delta.end.row - firstRow; if (0 === len) ; else if ("remove" == delta.action) this.$annotations.splice(firstRow, len + 1, null); else { var args = Array(len + 1); args.unshift(firstRow, 1), this.$annotations.splice.apply(this.$annotations, args); } } }, this.update = function(config) { this.config = config; var session = this.session, firstRow = config.firstRow, lastRow = Math.min(config.lastRow + config.gutterOffset, session.getLength() - 1); this.oldLastRow = lastRow, this.config = config, this.$lines.moveContainer(config), this.$updateCursorRow(); for(var fold = session.getNextFoldLine(firstRow), foldStart = fold ? fold.start.row : 1 / 0, cell = null, index = -1, row = firstRow;;){ if (row > foldStart && (row = fold.end.row + 1, foldStart = (fold = session.getNextFoldLine(row, fold)) ? fold.start.row : 1 / 0), row > lastRow) { for(; this.$lines.getLength() > index + 1;)this.$lines.pop(); break; } (cell = this.$lines.get(++index)) ? cell.row = row : (cell = this.$lines.createCell(row, config, this.session, onCreateCell), this.$lines.push(cell)), this.$renderCell(cell, config, fold, row), row++; } this._signal("afterRender"), this.$updateGutterWidth(config); }, this.$updateGutterWidth = function(config) { var session = this.session, gutterRenderer = session.gutterRenderer || this.$renderer, firstLineNumber = session.$firstLineNumber, lastLineText = this.$lines.last() ? this.$lines.last().text : ""; (this.$fixedWidth || session.$useWrapMode) && (lastLineText = session.getLength() + firstLineNumber - 1); var gutterWidth = gutterRenderer ? gutterRenderer.getWidth(session, lastLineText, config) : lastLineText.toString().length * config.characterWidth, padding = this.$padding || this.$computePadding(); (gutterWidth += padding.left + padding.right) === this.gutterWidth || isNaN(gutterWidth) || (this.gutterWidth = gutterWidth, this.element.parentNode.style.width = this.element.style.width = Math.ceil(this.gutterWidth) + "px", this._signal("changeGutterWidth", gutterWidth)); }, this.$updateCursorRow = function() { if (this.$highlightGutterLine) { var position = this.session.selection.getCursor(); this.$cursorRow !== position.row && (this.$cursorRow = position.row); } }, this.updateLineHighlight = function() { if (this.$highlightGutterLine) { var row = this.session.selection.cursor.row; if (this.$cursorRow = row, !this.$cursorCell || this.$cursorCell.row != row) { this.$cursorCell && (this.$cursorCell.element.className = this.$cursorCell.element.className.replace("ace_gutter-active-line ", "")); var cells = this.$lines.cells; this.$cursorCell = null; for(var i = 0; i < cells.length; i++){ var cell = cells[i]; if (cell.row >= this.$cursorRow) { if (cell.row > this.$cursorRow) { var fold = this.session.getFoldLine(this.$cursorRow); if (i > 0 && fold && fold.start.row == cells[i - 1].row) cell = cells[i - 1]; else break; } cell.element.className = "ace_gutter-active-line " + cell.element.className, this.$cursorCell = cell; break; } } } } }, this.scrollLines = function(config) { var oldConfig = this.config; if (this.config = config, this.$updateCursorRow(), this.$lines.pageChanged(oldConfig, config)) return this.update(config); this.$lines.moveContainer(config); var lastRow = Math.min(config.lastRow + config.gutterOffset, this.session.getLength() - 1), oldLastRow = this.oldLastRow; if (this.oldLastRow = lastRow, !oldConfig || oldLastRow < config.firstRow || lastRow < oldConfig.firstRow) return this.update(config); if (oldConfig.firstRow < config.firstRow) for(var row = this.session.getFoldedRowCount(oldConfig.firstRow, config.firstRow - 1); row > 0; row--)this.$lines.shift(); if (oldLastRow > lastRow) for(var row = this.session.getFoldedRowCount(lastRow + 1, oldLastRow); row > 0; row--)this.$lines.pop(); config.firstRow < oldConfig.firstRow && this.$lines.unshift(this.$renderLines(config, config.firstRow, oldConfig.firstRow - 1)), lastRow > oldLastRow && this.$lines.push(this.$renderLines(config, oldLastRow + 1, lastRow)), this.updateLineHighlight(), this._signal("afterRender"), this.$updateGutterWidth(config); }, this.$renderLines = function(config, firstRow, lastRow) { for(var fragment = [], row = firstRow, foldLine = this.session.getNextFoldLine(row), foldStart = foldLine ? foldLine.start.row : 1 / 0; row > foldStart && (row = foldLine.end.row + 1, foldStart = (foldLine = this.session.getNextFoldLine(row, foldLine)) ? foldLine.start.row : 1 / 0), !(row > lastRow);){ var cell = this.$lines.createCell(row, config, this.session, onCreateCell); this.$renderCell(cell, config, foldLine, row), fragment.push(cell), row++; } return fragment; }, this.$renderCell = function(cell, config, fold, row) { var element = cell.element, session = this.session, textNode = element.childNodes[0], foldWidget = element.childNodes[1], firstLineNumber = session.$firstLineNumber, breakpoints = session.$breakpoints, decorations = session.$decorations, gutterRenderer = session.gutterRenderer || this.$renderer, foldWidgets = this.$showFoldWidgets && session.foldWidgets, foldStart = fold ? fold.start.row : Number.MAX_VALUE, className = "ace_gutter-cell "; if (this.$highlightGutterLine && (row == this.$cursorRow || fold && row < this.$cursorRow && row >= foldStart && this.$cursorRow <= fold.end.row) && (className += "ace_gutter-active-line ", this.$cursorCell != cell && (this.$cursorCell && (this.$cursorCell.element.className = this.$cursorCell.element.className.replace("ace_gutter-active-line ", "")), this.$cursorCell = cell)), breakpoints[row] && (className += breakpoints[row]), decorations[row] && (className += decorations[row]), this.$annotations[row] && (className += this.$annotations[row].className), element.className != className && (element.className = className), foldWidgets) { var c = foldWidgets[row]; null == c && (c = foldWidgets[row] = session.getFoldWidget(row)); } if (c) { var className = "ace_fold-widget ace_" + c; "start" == c && row == foldStart && row < fold.end.row ? className += " ace_closed" : className += " ace_open", foldWidget.className != className && (foldWidget.className = className); var foldHeight = config.lineHeight + "px"; dom.setStyle(foldWidget.style, "height", foldHeight), dom.setStyle(foldWidget.style, "display", "inline-block"); } else foldWidget && dom.setStyle(foldWidget.style, "display", "none"); var text = (gutterRenderer ? gutterRenderer.getText(session, row) : row + firstLineNumber).toString(); return text !== textNode.data && (textNode.data = text), dom.setStyle(cell.element.style, "height", this.$lines.computeLineHeight(row, config, session) + "px"), dom.setStyle(cell.element.style, "top", this.$lines.computeLineTop(row, config, session) + "px"), cell.text = text, cell; }, this.$fixedWidth = !1, this.$highlightGutterLine = !0, this.$renderer = "", this.setHighlightGutterLine = function(highlightGutterLine) { this.$highlightGutterLine = highlightGutterLine; }, this.$showLineNumbers = !0, this.$renderer = "", this.setShowLineNumbers = function(show) { this.$renderer = !show && { getWidth: function() { return 0; }, getText: function() { return ""; } }; }, this.getShowLineNumbers = function() { return this.$showLineNumbers; }, this.$showFoldWidgets = !0, this.setShowFoldWidgets = function(show) { show ? dom.addCssClass(this.element, "ace_folding-enabled") : dom.removeCssClass(this.element, "ace_folding-enabled"), this.$showFoldWidgets = show, this.$padding = null; }, this.getShowFoldWidgets = function() { return this.$showFoldWidgets; }, this.$computePadding = function() { if (!this.element.firstChild) return { left: 0, right: 0 }; var style = dom.computedStyle(this.element.firstChild); return this.$padding = {}, this.$padding.left = (parseInt(style.borderLeftWidth) || 0) + (parseInt(style.paddingLeft) || 0) + 1, this.$padding.right = (parseInt(style.borderRightWidth) || 0) + (parseInt(style.paddingRight) || 0), this.$padding; }, this.getRegion = function(point) { var padding = this.$padding || this.$computePadding(), rect = this.element.getBoundingClientRect(); return point.x < padding.left + rect.left ? "markers" : this.$showFoldWidgets && point.x > rect.right - padding.right ? "foldWidgets" : void 0; }; }).call(Gutter.prototype), exports.Gutter = Gutter; }), ace.define("ace/layer/marker", [ "require", "exports", "module", "ace/range", "ace/lib/dom" ], function(require, exports, module) { "use strict"; var Range = require("../range").Range, dom = require("../lib/dom"), Marker = function(parentEl) { this.element = dom.createElement("div"), this.element.className = "ace_layer ace_marker-layer", parentEl.appendChild(this.element); }; (function() { this.$padding = 0, this.setPadding = function(padding) { this.$padding = padding; }, this.setSession = function(session) { this.session = session; }, this.setMarkers = function(markers) { this.markers = markers; }, this.elt = function(className, css) { var x = -1 != this.i && this.element.childNodes[this.i]; x ? this.i++ : (x = document.createElement("div"), this.element.appendChild(x), this.i = -1), x.style.cssText = css, x.className = className; }, this.update = function(config) { if (config) { for(var key in this.config = config, this.i = 0, this.markers){ var html, marker = this.markers[key]; if (!marker.range) { marker.update(html, this, this.session, config); continue; } var range = marker.range.clipRows(config.firstRow, config.lastRow); if (!range.isEmpty()) { if (range = range.toScreenRange(this.session), marker.renderer) { var top = this.$getTop(range.start.row, config), left = this.$padding + range.start.column * config.characterWidth; marker.renderer(html, range, left, top, config); } else "fullLine" == marker.type ? this.drawFullLineMarker(html, range, marker.clazz, config) : "screenLine" == marker.type ? this.drawScreenLineMarker(html, range, marker.clazz, config) : range.isMultiLine() ? "text" == marker.type ? this.drawTextMarker(html, range, marker.clazz, config) : this.drawMultiLineMarker(html, range, marker.clazz, config) : this.drawSingleLineMarker(html, range, marker.clazz + " ace_start ace_br15", config); } } if (-1 != this.i) for(; this.i < this.element.childElementCount;)this.element.removeChild(this.element.lastChild); } }, this.$getTop = function(row, layerConfig) { return (row - layerConfig.firstRowScreen) * layerConfig.lineHeight; }, this.drawTextMarker = function(stringBuilder, range, clazz, layerConfig, extraStyle) { for(var session = this.session, start = range.start.row, end = range.end.row, row = start, prev = 0, curr = 0, next = session.getScreenLastRowColumn(row), lineRange = new Range(row, range.start.column, row, curr); row <= end; row++)lineRange.start.row = lineRange.end.row = row, lineRange.start.column = row == start ? range.start.column : session.getRowWrapIndent(row), lineRange.end.column = next, prev = curr, curr = next, next = row + 1 < end ? session.getScreenLastRowColumn(row + 1) : row == end ? 0 : range.end.column, this.drawSingleLineMarker(stringBuilder, lineRange, clazz + (row == start ? " ace_start" : "") + " ace_br" + (+!!(row == start || row == start + 1 && range.start.column) | 2 * (prev < curr) | 4 * (curr > next) | 8 * (row == end)), layerConfig, +(row != end), extraStyle); }, this.drawMultiLineMarker = function(stringBuilder, range, clazz, config, extraStyle) { var padding = this.$padding, height = config.lineHeight, top = this.$getTop(range.start.row, config), left = padding + range.start.column * config.characterWidth; if (extraStyle = extraStyle || "", this.session.$bidiHandler.isBidiRow(range.start.row)) { var range1 = range.clone(); range1.end.row = range1.start.row, range1.end.column = this.session.getLine(range1.start.row).length, this.drawBidiSingleLineMarker(stringBuilder, range1, clazz + " ace_br1 ace_start", config, null, extraStyle); } else this.elt(clazz + " ace_br1 ace_start", "height:" + height + "px;right:0;top:" + top + "px;left:" + left + "px;" + (extraStyle || "")); if (this.session.$bidiHandler.isBidiRow(range.end.row)) { var range1 = range.clone(); range1.start.row = range1.end.row, range1.start.column = 0, this.drawBidiSingleLineMarker(stringBuilder, range1, clazz + " ace_br12", config, null, extraStyle); } else { top = this.$getTop(range.end.row, config); var width = range.end.column * config.characterWidth; this.elt(clazz + " ace_br12", "height:" + height + "px;width:" + width + "px;top:" + top + "px;left:" + padding + "px;" + (extraStyle || "")); } if (!((height = (range.end.row - range.start.row - 1) * config.lineHeight) <= 0)) { top = this.$getTop(range.start.row + 1, config); var radiusClass = +!!range.start.column | 8 * !range.end.column; this.elt(clazz + (radiusClass ? " ace_br" + radiusClass : ""), "height:" + height + "px;right:0;top:" + top + "px;left:" + padding + "px;" + (extraStyle || "")); } }, this.drawSingleLineMarker = function(stringBuilder, range, clazz, config, extraLength, extraStyle) { if (this.session.$bidiHandler.isBidiRow(range.start.row)) return this.drawBidiSingleLineMarker(stringBuilder, range, clazz, config, extraLength, extraStyle); var height = config.lineHeight, width = (range.end.column + (extraLength || 0) - range.start.column) * config.characterWidth, top = this.$getTop(range.start.row, config), left = this.$padding + range.start.column * config.characterWidth; this.elt(clazz, "height:" + height + "px;width:" + width + "px;top:" + top + "px;left:" + left + "px;" + (extraStyle || "")); }, this.drawBidiSingleLineMarker = function(stringBuilder, range, clazz, config, extraLength, extraStyle) { var height = config.lineHeight, top = this.$getTop(range.start.row, config), padding = this.$padding; this.session.$bidiHandler.getSelections(range.start.column, range.end.column).forEach(function(selection) { this.elt(clazz, "height:" + height + "px;width:" + selection.width + (extraLength || 0) + "px;top:" + top + "px;left:" + (padding + selection.left) + "px;" + (extraStyle || "")); }, this); }, this.drawFullLineMarker = function(stringBuilder, range, clazz, config, extraStyle) { var top = this.$getTop(range.start.row, config), height = config.lineHeight; range.start.row != range.end.row && (height += this.$getTop(range.end.row, config) - top), this.elt(clazz, "height:" + height + "px;top:" + top + "px;left:0;right:0;" + (extraStyle || "")); }, this.drawScreenLineMarker = function(stringBuilder, range, clazz, config, extraStyle) { var top = this.$getTop(range.start.row, config), height = config.lineHeight; this.elt(clazz, "height:" + height + "px;top:" + top + "px;left:0;right:0;" + (extraStyle || "")); }; }).call(Marker.prototype), exports.Marker = Marker; }), ace.define("ace/layer/text", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/lib/lang", "ace/layer/lines", "ace/lib/event_emitter" ], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"), dom = require("../lib/dom"), lang = require("../lib/lang"), Lines = require("./lines").Lines, EventEmitter = require("../lib/event_emitter").EventEmitter, Text = function(parentEl) { this.dom = dom, this.element = this.dom.createElement("div"), this.element.className = "ace_layer ace_text-layer", parentEl.appendChild(this.element), this.$updateEolChar = this.$updateEolChar.bind(this), this.$lines = new Lines(this.element); }; (function() { oop.implement(this, EventEmitter), this.EOF_CHAR = "\xB6", this.EOL_CHAR_LF = "\xAC", this.EOL_CHAR_CRLF = "\xa4", this.EOL_CHAR = this.EOL_CHAR_LF, this.TAB_CHAR = "\u2014", this.SPACE_CHAR = "\xB7", this.$padding = 0, this.MAX_LINE_LENGTH = 10000, this.$updateEolChar = function() { var doc = this.session.doc, EOL_CHAR = "\n" == doc.getNewLineCharacter() && "windows" != doc.getNewLineMode() ? this.EOL_CHAR_LF : this.EOL_CHAR_CRLF; if (this.EOL_CHAR != EOL_CHAR) return this.EOL_CHAR = EOL_CHAR, !0; }, this.setPadding = function(padding) { this.$padding = padding, this.element.style.margin = "0 " + padding + "px"; }, this.getLineHeight = function() { return this.$fontMetrics.$characterSize.height || 0; }, this.getCharacterWidth = function() { return this.$fontMetrics.$characterSize.width || 0; }, this.$setFontMetrics = function(measure) { this.$fontMetrics = measure, this.$fontMetrics.on("changeCharacterSize", (function(e) { this._signal("changeCharacterSize", e); }).bind(this)), this.$pollSizeChanges(); }, this.checkForSizeChanges = function() { this.$fontMetrics.checkForSizeChanges(); }, this.$pollSizeChanges = function() { return this.$pollSizeChangesTimer = this.$fontMetrics.$pollSizeChanges(); }, this.setSession = function(session) { this.session = session, session && this.$computeTabString(); }, this.showInvisibles = !1, this.showSpaces = !1, this.showTabs = !1, this.showEOL = !1, this.setShowInvisibles = function(showInvisibles) { return this.showInvisibles != showInvisibles && (this.showInvisibles = showInvisibles, "string" == typeof showInvisibles ? (this.showSpaces = /tab/i.test(showInvisibles), this.showTabs = /space/i.test(showInvisibles), this.showEOL = /eol/i.test(showInvisibles)) : this.showSpaces = this.showTabs = this.showEOL = showInvisibles, this.$computeTabString(), !0); }, this.displayIndentGuides = !0, this.setDisplayIndentGuides = function(display) { return this.displayIndentGuides != display && (this.displayIndentGuides = display, this.$computeTabString(), !0); }, this.$tabStrings = [], this.onChangeTabSize = this.$computeTabString = function() { var tabSize = this.session.getTabSize(); this.tabSize = tabSize; for(var tabStr = this.$tabStrings = [ 0 ], i = 1; i < tabSize + 1; i++)if (this.showTabs) { var span = this.dom.createElement("span"); span.className = "ace_invisible ace_invisible_tab", span.textContent = lang.stringRepeat(this.TAB_CHAR, i), tabStr.push(span); } else tabStr.push(this.dom.createTextNode(lang.stringRepeat(" ", i), this.element)); if (this.displayIndentGuides) { this.$indentGuideRe = /\s\S| \t|\t |\s$/; var className = "ace_indent-guide", spaceClass = this.showSpaces ? " ace_invisible ace_invisible_space" : "", spaceContent = this.showSpaces ? lang.stringRepeat(this.SPACE_CHAR, this.tabSize) : lang.stringRepeat(" ", this.tabSize), tabClass = this.showTabs ? " ace_invisible ace_invisible_tab" : "", tabContent = this.showTabs ? lang.stringRepeat(this.TAB_CHAR, this.tabSize) : spaceContent, span = this.dom.createElement("span"); span.className = className + spaceClass, span.textContent = spaceContent, this.$tabStrings[" "] = span; var span = this.dom.createElement("span"); span.className = className + tabClass, span.textContent = tabContent, this.$tabStrings["\t"] = span; } }, this.updateLines = function(config, firstRow, lastRow) { if (this.config.lastRow != config.lastRow || this.config.firstRow != config.firstRow) return this.update(config); this.config = config; for(var first = Math.max(firstRow, config.firstRow), last = Math.min(lastRow, config.lastRow), lineElements = this.element.childNodes, lineElementsIdx = 0, row = config.firstRow; row < first; row++){ var foldLine = this.session.getFoldLine(row); if (foldLine) { if (foldLine.containsRow(first)) { first = foldLine.start.row; break; } row = foldLine.end.row; } lineElementsIdx++; } for(var heightChanged = !1, row = first, foldLine = this.session.getNextFoldLine(row), foldStart = foldLine ? foldLine.start.row : 1 / 0; row > foldStart && (row = foldLine.end.row + 1, foldStart = (foldLine = this.session.getNextFoldLine(row, foldLine)) ? foldLine.start.row : 1 / 0), !(row > last);){ var lineElement = lineElements[lineElementsIdx++]; if (lineElement) { this.dom.removeChildren(lineElement), this.$renderLine(lineElement, row, row == foldStart && foldLine), heightChanged && (lineElement.style.top = this.$lines.computeLineTop(row, config, this.session) + "px"); var height = config.lineHeight * this.session.getRowLength(row) + "px"; lineElement.style.height != height && (heightChanged = !0, lineElement.style.height = height); } row++; } if (heightChanged) for(; lineElementsIdx < this.$lines.cells.length;){ var cell = this.$lines.cells[lineElementsIdx++]; cell.element.style.top = this.$lines.computeLineTop(cell.row, config, this.session) + "px"; } }, this.scrollLines = function(config) { var oldConfig = this.config; if (this.config = config, this.$lines.pageChanged(oldConfig, config)) return this.update(config); this.$lines.moveContainer(config); var lastRow = config.lastRow, oldLastRow = oldConfig ? oldConfig.lastRow : -1; if (!oldConfig || oldLastRow < config.firstRow || lastRow < oldConfig.firstRow || !oldConfig || oldConfig.lastRow < config.firstRow || config.lastRow < oldConfig.firstRow) return this.update(config); if (oldConfig.firstRow < config.firstRow) for(var row = this.session.getFoldedRowCount(oldConfig.firstRow, config.firstRow - 1); row > 0; row--)this.$lines.shift(); if (oldConfig.lastRow > config.lastRow) for(var row = this.session.getFoldedRowCount(config.lastRow + 1, oldConfig.lastRow); row > 0; row--)this.$lines.pop(); config.firstRow < oldConfig.firstRow && this.$lines.unshift(this.$renderLinesFragment(config, config.firstRow, oldConfig.firstRow - 1)), config.lastRow > oldConfig.lastRow && this.$lines.push(this.$renderLinesFragment(config, oldConfig.lastRow + 1, config.lastRow)); }, this.$renderLinesFragment = function(config, firstRow, lastRow) { for(var fragment = [], row = firstRow, foldLine = this.session.getNextFoldLine(row), foldStart = foldLine ? foldLine.start.row : 1 / 0; row > foldStart && (row = foldLine.end.row + 1, foldStart = (foldLine = this.session.getNextFoldLine(row, foldLine)) ? foldLine.start.row : 1 / 0), !(row > lastRow);){ var line = this.$lines.createCell(row, config, this.session), lineEl = line.element; this.dom.removeChildren(lineEl), dom.setStyle(lineEl.style, "height", this.$lines.computeLineHeight(row, config, this.session) + "px"), dom.setStyle(lineEl.style, "top", this.$lines.computeLineTop(row, config, this.session) + "px"), this.$renderLine(lineEl, row, row == foldStart && foldLine), this.$useLineGroups() ? lineEl.className = "ace_line_group" : lineEl.className = "ace_line", fragment.push(line), row++; } return fragment; }, this.update = function(config) { this.$lines.moveContainer(config), this.config = config; for(var firstRow = config.firstRow, lastRow = config.lastRow, lines = this.$lines; lines.getLength();)lines.pop(); lines.push(this.$renderLinesFragment(config, firstRow, lastRow)); }, this.$textToken = { text: !0, rparen: !0, lparen: !0 }, this.$renderToken = function(parent, screenColumn, token, value) { for(var m, re = /(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g, valueFragment = this.dom.createFragment(this.element), i = 0; m = re.exec(value);){ var tab = m[1], simpleSpace = m[2], controlCharacter = m[3], cjkSpace = m[4], cjk = m[5]; if (this.showSpaces || !simpleSpace) { var before = i != m.index ? value.slice(i, m.index) : ""; if (i = m.index + m[0].length, before && valueFragment.appendChild(this.dom.createTextNode(before, this.element)), tab) { var tabSize = this.session.getScreenTabSize(screenColumn + m.index); valueFragment.appendChild(this.$tabStrings[tabSize].cloneNode(!0)), screenColumn += tabSize - 1; } else if (simpleSpace) { if (this.showSpaces) { var span = this.dom.createElement("span"); span.className = "ace_invisible ace_invisible_space", span.textContent = lang.stringRepeat(this.SPACE_CHAR, simpleSpace.length), valueFragment.appendChild(span); } else valueFragment.appendChild(this.com.createTextNode(simpleSpace, this.element)); } else if (controlCharacter) { var span = this.dom.createElement("span"); span.className = "ace_invisible ace_invisible_space ace_invalid", span.textContent = lang.stringRepeat(this.SPACE_CHAR, controlCharacter.length), valueFragment.appendChild(span); } else if (cjkSpace) { screenColumn += 1; var span = this.dom.createElement("span"); span.style.width = 2 * this.config.characterWidth + "px", span.className = this.showSpaces ? "ace_cjk ace_invisible ace_invisible_space" : "ace_cjk", span.textContent = this.showSpaces ? this.SPACE_CHAR : cjkSpace, valueFragment.appendChild(span); } else if (cjk) { screenColumn += 1; var span = this.dom.createElement("span"); span.style.width = 2 * this.config.characterWidth + "px", span.className = "ace_cjk", span.textContent = cjk, valueFragment.appendChild(span); } } } if (valueFragment.appendChild(this.dom.createTextNode(i ? value.slice(i) : value, this.element)), this.$textToken[token.type]) parent.appendChild(valueFragment); else { var classes = "ace_" + token.type.replace(/\./g, " ace_"), span = this.dom.createElement("span"); "fold" == token.type && (span.style.width = token.value.length * this.config.characterWidth + "px"), span.className = classes, span.appendChild(valueFragment), parent.appendChild(span); } return screenColumn + value.length; }, this.renderIndentGuide = function(parent, value, max) { var cols = value.search(this.$indentGuideRe); if (cols <= 0 || cols >= max) return value; if (" " == value[0]) { for(var count = (cols -= cols % this.tabSize) / this.tabSize, i = 0; i < count; i++)parent.appendChild(this.$tabStrings[" "].cloneNode(!0)); return value.substr(cols); } if ("\t" == value[0]) { for(var i = 0; i < cols; i++)parent.appendChild(this.$tabStrings["\t"].cloneNode(!0)); return value.substr(cols); } return value; }, this.$createLineElement = function(parent) { var lineEl = this.dom.createElement("div"); return lineEl.className = "ace_line", lineEl.style.height = this.config.lineHeight + "px", lineEl; }, this.$renderWrappedLine = function(parent, tokens, splits) { var chars = 0, split = 0, splitChars = splits[0], screenColumn = 0, lineEl = this.$createLineElement(); parent.appendChild(lineEl); for(var i = 0; i < tokens.length; i++){ var token = tokens[i], value = token.value; if (0 == i && this.displayIndentGuides) { if (chars = value.length, !(value = this.renderIndentGuide(lineEl, value, splitChars))) continue; chars -= value.length; } if (chars + value.length < splitChars) screenColumn = this.$renderToken(lineEl, screenColumn, token, value), chars += value.length; else { for(; chars + value.length >= splitChars;)screenColumn = this.$renderToken(lineEl, screenColumn, token, value.substring(0, splitChars - chars)), value = value.substring(splitChars - chars), chars = splitChars, lineEl = this.$createLineElement(), parent.appendChild(lineEl), lineEl.appendChild(this.dom.createTextNode(lang.stringRepeat("\xa0", splits.indent), this.element)), screenColumn = 0, splitChars = splits[++split] || Number.MAX_VALUE; 0 != value.length && (chars += value.length, screenColumn = this.$renderToken(lineEl, screenColumn, token, value)); } } splits[splits.length - 1] > this.MAX_LINE_LENGTH && this.$renderOverflowMessage(lineEl, screenColumn, null, "", !0); }, this.$renderSimpleLine = function(parent, tokens) { var screenColumn = 0, token = tokens[0], value = token.value; this.displayIndentGuides && (value = this.renderIndentGuide(parent, value)), value && (screenColumn = this.$renderToken(parent, screenColumn, token, value)); for(var i = 1; i < tokens.length; i++){ if (screenColumn + (value = (token = tokens[i]).value).length > this.MAX_LINE_LENGTH) return this.$renderOverflowMessage(parent, screenColumn, token, value); screenColumn = this.$renderToken(parent, screenColumn, token, value); } }, this.$renderOverflowMessage = function(parent, screenColumn, token, value, hide) { token && this.$renderToken(parent, screenColumn, token, value.slice(0, this.MAX_LINE_LENGTH - screenColumn)); var overflowEl = this.dom.createElement("span"); overflowEl.className = "ace_inline_button ace_keyword ace_toggle_wrap", overflowEl.textContent = hide ? "<hide>" : "<click to see more...>", parent.appendChild(overflowEl); }, this.$renderLine = function(parent, row, foldLine) { if (foldLine || !1 == foldLine || (foldLine = this.session.getFoldLine(row)), foldLine) var tokens = this.$getFoldLineTokens(row, foldLine); else var tokens = this.session.getTokens(row); var lastLineEl = parent; if (tokens.length) { var splits = this.session.getRowSplitData(row); if (splits && splits.length) { this.$renderWrappedLine(parent, tokens, splits); var lastLineEl = parent.lastChild; } else { var lastLineEl = parent; this.$useLineGroups() && (lastLineEl = this.$createLineElement(), parent.appendChild(lastLineEl)), this.$renderSimpleLine(lastLineEl, tokens); } } else this.$useLineGroups() && (lastLineEl = this.$createLineElement(), parent.appendChild(lastLineEl)); if (this.showEOL && lastLineEl) { foldLine && (row = foldLine.end.row); var invisibleEl = this.dom.createElement("span"); invisibleEl.className = "ace_invisible ace_invisible_eol", invisibleEl.textContent = row == this.session.getLength() - 1 ? this.EOF_CHAR : this.EOL_CHAR, lastLineEl.appendChild(invisibleEl); } }, this.$getFoldLineTokens = function(row, foldLine) { var session = this.session, renderTokens = [], tokens = session.getTokens(row); return foldLine.walk(function(placeholder, row, column, lastColumn, isNewRow) { null != placeholder ? renderTokens.push({ type: "fold", value: placeholder }) : (isNewRow && (tokens = session.getTokens(row)), tokens.length && function(tokens, from, to) { for(var idx = 0, col = 0; col + tokens[idx].value.length < from;)if (col += tokens[idx].value.length, ++idx == tokens.length) return; if (col != from) { var value = tokens[idx].value.substring(from - col); value.length > to - from && (value = value.substring(0, to - from)), renderTokens.push({ type: tokens[idx].type, value: value }), col = from + value.length, idx += 1; } for(; col < to && idx < tokens.length;){ var value = tokens[idx].value; value.length + col > to ? renderTokens.push({ type: tokens[idx].type, value: value.substring(0, to - col) }) : renderTokens.push(tokens[idx]), col += value.length, idx += 1; } }(tokens, lastColumn, column)); }, foldLine.end.row, this.session.getLine(foldLine.end.row).length), renderTokens; }, this.$useLineGroups = function() { return this.session.getUseWrapMode(); }, this.destroy = function() {}; }).call(Text.prototype), exports.Text = Text; }), ace.define("ace/layer/cursor", [ "require", "exports", "module", "ace/lib/dom" ], function(require, exports, module) { "use strict"; var dom = require("../lib/dom"), Cursor = function(parentEl) { this.element = dom.createElement("div"), this.element.className = "ace_layer ace_cursor-layer", parentEl.appendChild(this.element), this.isVisible = !1, this.isBlinking = !0, this.blinkInterval = 1000, this.smoothBlinking = !1, this.cursors = [], this.cursor = this.addCursor(), dom.addCssClass(this.element, "ace_hidden-cursors"), this.$updateCursors = this.$updateOpacity.bind(this); }; (function() { this.$updateOpacity = function(val) { for(var cursors = this.cursors, i = cursors.length; i--;)dom.setStyle(cursors[i].style, "opacity", val ? "" : "0"); }, this.$startCssAnimation = function() { for(var cursors = this.cursors, i = cursors.length; i--;)cursors[i].style.animationDuration = this.blinkInterval + "ms"; this.$isAnimating = !0, setTimeout((function() { this.$isAnimating && dom.addCssClass(this.element, "ace_animate-blinking"); }).bind(this)); }, this.$stopCssAnimation = function() { this.$isAnimating = !1, dom.removeCssClass(this.element, "ace_animate-blinking"); }, this.$padding = 0, this.setPadding = function(padding) { this.$padding = padding; }, this.setSession = function(session) { this.session = session; }, this.setBlinking = function(blinking) { blinking != this.isBlinking && (this.isBlinking = blinking, this.restartTimer()); }, this.setBlinkInterval = function(blinkInterval) { blinkInterval != this.blinkInterval && (this.blinkInterval = blinkInterval, this.restartTimer()); }, this.setSmoothBlinking = function(smoothBlinking) { smoothBlinking != this.smoothBlinking && (this.smoothBlinking = smoothBlinking, dom.setCssClass(this.element, "ace_smooth-blinking", smoothBlinking), this.$updateCursors(!0), this.restartTimer()); }, this.addCursor = function() { var el = dom.createElement("div"); return el.className = "ace_cursor", this.element.appendChild(el), this.cursors.push(el), el; }, this.removeCursor = function() { if (this.cursors.length > 1) { var el = this.cursors.pop(); return el.parentNode.removeChild(el), el; } }, this.hideCursor = function() { this.isVisible = !1, dom.addCssClass(this.element, "ace_hidden-cursors"), this.restartTimer(); }, this.showCursor = function() { this.isVisible = !0, dom.removeCssClass(this.element, "ace_hidden-cursors"), this.restartTimer(); }, this.restartTimer = function() { var update = this.$updateCursors; if (clearInterval(this.intervalId), clearTimeout(this.timeoutId), this.$stopCssAnimation(), this.smoothBlinking && (this.$isSmoothBlinking = !1, dom.removeCssClass(this.element, "ace_smooth-blinking")), update(!0), !this.isBlinking || !this.blinkInterval || !this.isVisible) { this.$stopCssAnimation(); return; } if (this.smoothBlinking && (this.$isSmoothBlinking = !0, setTimeout((function() { this.$isSmoothBlinking && dom.addCssClass(this.element, "ace_smooth-blinking"); }).bind(this))), dom.HAS_CSS_ANIMATION) this.$startCssAnimation(); else { var blink = (function() { this.timeoutId = setTimeout(function() { update(!1); }, 0.6 * this.blinkInterval); }).bind(this); this.intervalId = setInterval(function() { update(!0), blink(); }, this.blinkInterval), blink(); } }, this.getPixelPosition = function(position, onScreen) { if (!this.config || !this.session) return { left: 0, top: 0 }; position || (position = this.session.selection.getCursor()); var pos = this.session.documentToScreenPosition(position); return { left: this.$padding + (this.session.$bidiHandler.isBidiRow(pos.row, position.row) ? this.session.$bidiHandler.getPosLeft(pos.column) : pos.column * this.config.characterWidth), top: (pos.row - (onScreen ? this.config.firstRowScreen : 0)) * this.config.lineHeight }; }, this.isCursorInView = function(pixelPos, config) { return pixelPos.top >= 0 && pixelPos.top < config.maxHeight; }, this.update = function(config) { this.config = config; var selections = this.session.$selectionMarkers, i = 0, cursorIndex = 0; (void 0 === selections || 0 === selections.length) && (selections = [ { cursor: null } ]); for(var i = 0, n = selections.length; i < n; i++){ var pixelPos = this.getPixelPosition(selections[i].cursor, !0); if (!(pixelPos.top > config.height + config.offset) && !(pixelPos.top < 0) || !(i > 1)) { var element = this.cursors[cursorIndex++] || this.addCursor(), style = element.style; this.drawCursor ? this.drawCursor(element, pixelPos, config, selections[i], this.session) : this.isCursorInView(pixelPos, config) ? (dom.setStyle(style, "display", "block"), dom.translate(element, pixelPos.left, pixelPos.top), dom.setStyle(style, "width", Math.round(config.characterWidth) + "px"), dom.setStyle(style, "height", config.lineHeight + "px")) : dom.setStyle(style, "display", "none"); } } for(; this.cursors.length > cursorIndex;)this.removeCursor(); var overwrite = this.session.getOverwrite(); this.$setOverwrite(overwrite), this.$pixelPos = pixelPos, this.restartTimer(); }, this.drawCursor = null, this.$setOverwrite = function(overwrite) { overwrite != this.overwrite && (this.overwrite = overwrite, overwrite ? dom.addCssClass(this.element, "ace_overwrite-cursors") : dom.removeCssClass(this.element, "ace_overwrite-cursors")); }, this.destroy = function() { clearInterval(this.intervalId), clearTimeout(this.timeoutId); }; }).call(Cursor.prototype), exports.Cursor = Cursor; }), ace.define("ace/scrollbar", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/lib/event", "ace/lib/event_emitter" ], function(require, exports, module) { "use strict"; var oop = require("./lib/oop"), dom = require("./lib/dom"), event = require("./lib/event"), EventEmitter = require("./lib/event_emitter").EventEmitter, ScrollBar = function(parent) { this.element = dom.createElement("div"), this.element.className = "ace_scrollbar ace_scrollbar" + this.classSuffix, this.inner = dom.createElement("div"), this.inner.className = "ace_scrollbar-inner", this.inner.textContent = "\xa0", this.element.appendChild(this.inner), parent.appendChild(this.element), this.setVisible(!1), this.skipEvent = !1, event.addListener(this.element, "scroll", this.onScroll.bind(this)), event.addListener(this.element, "mousedown", event.preventDefault); }; (function() { oop.implement(this, EventEmitter), this.setVisible = function(isVisible) { this.element.style.display = isVisible ? "" : "none", this.isVisible = isVisible, this.coeff = 1; }; }).call(ScrollBar.prototype); var VScrollBar = function(parent, renderer) { ScrollBar.call(this, parent), this.scrollTop = 0, this.scrollHeight = 0, renderer.$scrollbarWidth = this.width = dom.scrollbarWidth(parent.ownerDocument), this.inner.style.width = this.element.style.width = (this.width || 15) + 5 + "px", this.$minWidth = 0; }; oop.inherits(VScrollBar, ScrollBar), (function() { this.classSuffix = "-v", this.onScroll = function() { if (!this.skipEvent) { if (this.scrollTop = this.element.scrollTop, 1 != this.coeff) { var h = this.element.clientHeight / this.scrollHeight; this.scrollTop = this.scrollTop * (1 - h) / (this.coeff - h); } this._emit("scroll", { data: this.scrollTop }); } this.skipEvent = !1; }, this.getWidth = function() { return Math.max(this.isVisible ? this.width : 0, this.$minWidth || 0); }, this.setHeight = function(height) { this.element.style.height = height + "px"; }, this.setInnerHeight = this.setScrollHeight = function(height) { this.scrollHeight = height, height > 0x8000 ? (this.coeff = 0x8000 / height, height = 0x8000) : 1 != this.coeff && (this.coeff = 1), this.inner.style.height = height + "px"; }, this.setScrollTop = function(scrollTop) { this.scrollTop != scrollTop && (this.skipEvent = !0, this.scrollTop = scrollTop, this.element.scrollTop = scrollTop * this.coeff); }; }).call(VScrollBar.prototype); var HScrollBar = function(parent, renderer) { ScrollBar.call(this, parent), this.scrollLeft = 0, this.height = renderer.$scrollbarWidth, this.inner.style.height = this.element.style.height = (this.height || 15) + 5 + "px"; }; oop.inherits(HScrollBar, ScrollBar), (function() { this.classSuffix = "-h", this.onScroll = function() { this.skipEvent || (this.scrollLeft = this.element.scrollLeft, this._emit("scroll", { data: this.scrollLeft })), this.skipEvent = !1; }, this.getHeight = function() { return this.isVisible ? this.height : 0; }, this.setWidth = function(width) { this.element.style.width = width + "px"; }, this.setInnerWidth = function(width) { this.inner.style.width = width + "px"; }, this.setScrollWidth = function(width) { this.inner.style.width = width + "px"; }, this.setScrollLeft = function(scrollLeft) { this.scrollLeft != scrollLeft && (this.skipEvent = !0, this.scrollLeft = this.element.scrollLeft = scrollLeft); }; }).call(HScrollBar.prototype), exports.ScrollBar = VScrollBar, exports.ScrollBarV = VScrollBar, exports.ScrollBarH = HScrollBar, exports.VScrollBar = VScrollBar, exports.HScrollBar = HScrollBar; }), ace.define("ace/renderloop", [ "require", "exports", "module", "ace/lib/event" ], function(require, exports, module) { "use strict"; var event = require("./lib/event"), RenderLoop = function(onRender, win) { this.onRender = onRender, this.pending = !1, this.changes = 0, this.$recursionLimit = 2, this.window = win || window; var _self = this; this._flush = function(ts) { _self.pending = !1; var changes = _self.changes; if (changes && (event.blockIdle(100), _self.changes = 0, _self.onRender(changes)), _self.changes) { if (_self.$recursionLimit-- < 0) return; _self.schedule(); } else _self.$recursionLimit = 2; }; }; (function() { this.schedule = function(change) { this.changes = this.changes | change, this.changes && !this.pending && (event.nextFrame(this._flush), this.pending = !0); }, this.clear = function(change) { var changes = this.changes; return this.changes = 0, changes; }; }).call(RenderLoop.prototype), exports.RenderLoop = RenderLoop; }), ace.define("ace/layer/font_metrics", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/lib/lang", "ace/lib/event", "ace/lib/useragent", "ace/lib/event_emitter" ], function(require, exports, module) { var oop = require("../lib/oop"), dom = require("../lib/dom"), lang = require("../lib/lang"), event = require("../lib/event"), useragent = require("../lib/useragent"), EventEmitter = require("../lib/event_emitter").EventEmitter, USE_OBSERVER = "function" == typeof ResizeObserver; (function() { oop.implement(this, EventEmitter), this.$characterSize = { width: 0, height: 0 }, this.$setMeasureNodeStyles = function(style, isRoot) { style.width = style.height = "auto", style.left = style.top = "0px", style.visibility = "hidden", style.position = "absolute", style.whiteSpace = "pre", useragent.isIE < 8 ? style["font-family"] = "inherit" : style.font = "inherit", style.overflow = isRoot ? "hidden" : "visible"; }, this.checkForSizeChanges = function(size) { if (void 0 === size && (size = this.$measureSizes()), size && (this.$characterSize.width !== size.width || this.$characterSize.height !== size.height)) { this.$measureNode.style.fontWeight = "bold"; var boldSize = this.$measureSizes(); this.$measureNode.style.fontWeight = "", this.$characterSize = size, this.charSizes = Object.create(null), this.allowBoldFonts = boldSize && boldSize.width === size.width && boldSize.height === size.height, this._emit("changeCharacterSize", { data: size }); } }, this.$addObserver = function() { var self1 = this; this.$observer = new window.ResizeObserver(function(e) { self1.checkForSizeChanges(); }), this.$observer.observe(this.$measureNode); }, this.$pollSizeChanges = function() { if (this.$pollSizeChangesTimer || this.$observer) return this.$pollSizeChangesTimer; var self1 = this; return this.$pollSizeChangesTimer = event.onIdle(function cb() { self1.checkForSizeChanges(), event.onIdle(cb, 500); }, 500); }, this.setPolling = function(val) { val ? this.$pollSizeChanges() : this.$pollSizeChangesTimer && (clearInterval(this.$pollSizeChangesTimer), this.$pollSizeChangesTimer = 0); }, this.$measureSizes = function(node) { var size = { height: (node || this.$measureNode).clientHeight, width: (node || this.$measureNode).clientWidth / 256 }; return 0 === size.width || 0 === size.height ? null : size; }, this.$measureCharWidth = function(ch) { return this.$main.textContent = lang.stringRepeat(ch, 256), this.$main.getBoundingClientRect().width / 256; }, this.getCharacterWidth = function(ch) { var w = this.charSizes[ch]; return void 0 === w && (w = this.charSizes[ch] = this.$measureCharWidth(ch) / this.$characterSize.width), w; }, this.destroy = function() { clearInterval(this.$pollSizeChangesTimer), this.$observer && this.$observer.disconnect(), this.el && this.el.parentNode && this.el.parentNode.removeChild(this.el); }, this.$getZoom = function getZoom(element) { return element && element.parentElement ? (window.getComputedStyle(element).zoom || 1) * getZoom(element.parentElement) : 1; }, this.$initTransformMeasureNodes = function() { var t = function(t, l) { return [ "div", { style: "position: absolute;top:" + t + "px;left:" + l + "px;" } ]; }; this.els = dom.buildDom([ t(0, 0), t(200, 0), t(0, 200), t(200, 200) ], this.el); }, this.transformCoordinates = function(clientPos, elPos) { function solve(l1, l2, r) { var det = l1[1] * l2[0] - l1[0] * l2[1]; return [ (-l2[1] * r[0] + l2[0] * r[1]) / det, (+l1[1] * r[0] - l1[0] * r[1]) / det ]; } function sub(a, b) { return [ a[0] - b[0], a[1] - b[1] ]; } function add(a, b) { return [ a[0] + b[0], a[1] + b[1] ]; } function mul(a, b) { return [ a * b[0], a * b[1] ]; } function p(el) { var r = el.getBoundingClientRect(); return [ r.left, r.top ]; } clientPos && (clientPos = mul(1 / this.$getZoom(this.el), clientPos)), this.els || this.$initTransformMeasureNodes(); var a = p(this.els[0]), b = p(this.els[1]), c = p(this.els[2]), d = p(this.els[3]), h = solve(sub(d, b), sub(d, c), sub(add(b, c), add(d, a))), m1 = mul(1 + h[0], sub(b, a)), m2 = mul(1 + h[1], sub(c, a)); if (elPos) { var k = h[0] * elPos[0] / 200 + h[1] * elPos[1] / 200 + 1, ut = add(mul(elPos[0], m1), mul(elPos[1], m2)); return add(mul(1 / k / 200, ut), a); } var u = sub(clientPos, a), f = solve(sub(m1, mul(h[0], u)), sub(m2, mul(h[1], u)), u); return mul(200, f); }; }).call((exports.FontMetrics = function(parentEl) { this.el = dom.createElement("div"), this.$setMeasureNodeStyles(this.el.style, !0), this.$main = dom.createElement("div"), this.$setMeasureNodeStyles(this.$main.style), this.$measureNode = dom.createElement("div"), this.$setMeasureNodeStyles(this.$measureNode.style), this.el.appendChild(this.$main), this.el.appendChild(this.$measureNode), parentEl.appendChild(this.el), this.$measureNode.textContent = lang.stringRepeat("X", 256), this.$characterSize = { width: 0, height: 0 }, USE_OBSERVER ? this.$addObserver() : this.checkForSizeChanges(); }).prototype); }), ace.define("ace/virtual_renderer", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/dom", "ace/config", "ace/layer/gutter", "ace/layer/marker", "ace/layer/text", "ace/layer/cursor", "ace/scrollbar", "ace/scrollbar", "ace/renderloop", "ace/layer/font_metrics", "ace/lib/event_emitter", "ace/lib/useragent" ], function(require, exports, module) { "use strict"; var oop = require("./lib/oop"), dom = require("./lib/dom"), config = require("./config"), GutterLayer = require("./layer/gutter").Gutter, MarkerLayer = require("./layer/marker").Marker, TextLayer = require("./layer/text").Text, CursorLayer = require("./layer/cursor").Cursor, HScrollBar = require("./scrollbar").HScrollBar, VScrollBar = require("./scrollbar").VScrollBar, RenderLoop = require("./renderloop").RenderLoop, FontMetrics = require("./layer/font_metrics").FontMetrics, EventEmitter = require("./lib/event_emitter").EventEmitter, editorCss = '\ .ace_br1 {border-top-left-radius : 3px;}\ .ace_br2 {border-top-right-radius : 3px;}\ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\ .ace_br4 {border-bottom-right-radius: 3px;}\ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\ .ace_br8 {border-bottom-left-radius : 3px;}\ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\ .ace_editor {\ position: relative;\ overflow: hidden;\ padding: 0;\ font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;\ direction: ltr;\ text-align: left;\ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\ }\ .ace_scroller {\ position: absolute;\ overflow: hidden;\ top: 0;\ bottom: 0;\ background-color: inherit;\ -ms-user-select: none;\ -moz-user-select: none;\ -webkit-user-select: none;\ user-select: none;\ cursor: text;\ }\ .ace_content {\ position: absolute;\ box-sizing: border-box;\ min-width: 100%;\ contain: style size layout;\ font-variant-ligatures: no-common-ligatures;\ }\ .ace_dragging .ace_scroller:before{\ position: absolute;\ top: 0;\ left: 0;\ right: 0;\ bottom: 0;\ content: \'\';\ background: rgba(250, 250, 250, 0.01);\ z-index: 1000;\ }\ .ace_dragging.ace_dark .ace_scroller:before{\ background: rgba(0, 0, 0, 0.01);\ }\ .ace_selecting, .ace_selecting * {\ cursor: text !important;\ }\ .ace_gutter {\ position: absolute;\ overflow : hidden;\ width: auto;\ top: 0;\ bottom: 0;\ left: 0;\ cursor: default;\ z-index: 4;\ -ms-user-select: none;\ -moz-user-select: none;\ -webkit-user-select: none;\ user-select: none;\ contain: style size layout;\ }\ .ace_gutter-active-line {\ position: absolute;\ left: 0;\ right: 0;\ }\ .ace_scroller.ace_scroll-left {\ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\ }\ .ace_gutter-cell {\ position: absolute;\ top: 0;\ left: 0;\ right: 0;\ padding-left: 19px;\ padding-right: 6px;\ background-repeat: no-repeat;\ }\ .ace_gutter-cell.ace_error {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\ background-repeat: no-repeat;\ background-position: 2px center;\ }\ .ace_gutter-cell.ace_warning {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\ background-position: 2px center;\ }\ .ace_gutter-cell.ace_info {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\ background-position: 2px center;\ }\ .ace_dark .ace_gutter-cell.ace_info {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\ }\ .ace_scrollbar {\ contain: strict;\ position: absolute;\ right: 0;\ bottom: 0;\ z-index: 6;\ }\ .ace_scrollbar-inner {\ position: absolute;\ cursor: text;\ left: 0;\ top: 0;\ }\ .ace_scrollbar-v{\ overflow-x: hidden;\ overflow-y: scroll;\ top: 0;\ }\ .ace_scrollbar-h {\ overflow-x: scroll;\ overflow-y: hidden;\ left: 0;\ }\ .ace_print-margin {\ position: absolute;\ height: 100%;\ }\ .ace_text-input {\ position: absolute;\ z-index: 0;\ width: 0.5em;\ height: 1em;\ opacity: 0;\ background: transparent;\ -moz-appearance: none;\ appearance: none;\ border: none;\ resize: none;\ outline: none;\ overflow: hidden;\ font: inherit;\ padding: 0 1px;\ margin: 0 -1px;\ contain: strict;\ -ms-user-select: text;\ -moz-user-select: text;\ -webkit-user-select: text;\ user-select: text;\ white-space: pre!important;\ }\ .ace_text-input.ace_composition {\ background: transparent;\ color: inherit;\ z-index: 1000;\ opacity: 1;\ }\ .ace_composition_placeholder { color: transparent }\ .ace_composition_marker { \ border-bottom: 1px solid;\ position: absolute;\ border-radius: 0;\ margin-top: 1px;\ }\ [ace_nocontext=true] {\ transform: none!important;\ filter: none!important;\ clip-path: none!important;\ mask : none!important;\ contain: none!important;\ perspective: none!important;\ mix-blend-mode: initial!important;\ z-index: auto;\ }\ .ace_layer {\ z-index: 1;\ position: absolute;\ overflow: hidden;\ word-wrap: normal;\ white-space: pre;\ height: 100%;\ width: 100%;\ box-sizing: border-box;\ pointer-events: none;\ }\ .ace_gutter-layer {\ position: relative;\ width: auto;\ text-align: right;\ pointer-events: auto;\ height: 1000000px;\ contain: style size layout;\ }\ .ace_text-layer {\ font: inherit !important;\ position: absolute;\ height: 1000000px;\ width: 1000000px;\ contain: style size layout;\ }\ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\ contain: style size layout;\ position: absolute;\ top: 0;\ left: 0;\ right: 0;\ }\ .ace_hidpi .ace_text-layer,\ .ace_hidpi .ace_gutter-layer,\ .ace_hidpi .ace_content,\ .ace_hidpi .ace_gutter {\ contain: strict;\ will-change: transform;\ }\ .ace_hidpi .ace_text-layer > .ace_line, \ .ace_hidpi .ace_text-layer > .ace_line_group {\ contain: strict;\ }\ .ace_cjk {\ display: inline-block;\ text-align: center;\ }\ .ace_cursor-layer {\ z-index: 4;\ }\ .ace_cursor {\ z-index: 4;\ position: absolute;\ box-sizing: border-box;\ border-left: 2px solid;\ transform: translatez(0);\ }\ .ace_multiselect .ace_cursor {\ border-left-width: 1px;\ }\ .ace_slim-cursors .ace_cursor {\ border-left-width: 1px;\ }\ .ace_overwrite-cursors .ace_cursor {\ border-left-width: 0;\ border-bottom: 1px solid;\ }\ .ace_hidden-cursors .ace_cursor {\ opacity: 0.2;\ }\ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\ opacity: 0;\ }\ .ace_smooth-blinking .ace_cursor {\ transition: opacity 0.18s;\ }\ .ace_animate-blinking .ace_cursor {\ animation-duration: 1000ms;\ animation-timing-function: step-end;\ animation-name: blink-ace-animate;\ animation-iteration-count: infinite;\ }\ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {\ animation-duration: 1000ms;\ animation-timing-function: ease-in-out;\ animation-name: blink-ace-animate-smooth;\ }\ @keyframes blink-ace-animate {\ from, to { opacity: 1; }\ 60% { opacity: 0; }\ }\ @keyframes blink-ace-animate-smooth {\ from, to { opacity: 1; }\ 45% { opacity: 1; }\ 60% { opacity: 0; }\ 85% { opacity: 0; }\ }\ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\ position: absolute;\ z-index: 3;\ }\ .ace_marker-layer .ace_selection {\ position: absolute;\ z-index: 5;\ }\ .ace_marker-layer .ace_bracket {\ position: absolute;\ z-index: 6;\ }\ .ace_marker-layer .ace_error_bracket {\ position: absolute;\ border-bottom: 1px solid #DE5555;\ border-radius: 0;\ }\ .ace_marker-layer .ace_active-line {\ position: absolute;\ z-index: 2;\ }\ .ace_marker-layer .ace_selected-word {\ position: absolute;\ z-index: 4;\ box-sizing: border-box;\ }\ .ace_line .ace_fold {\ box-sizing: border-box;\ display: inline-block;\ height: 11px;\ margin-top: -2px;\ vertical-align: middle;\ background-image:\ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\ background-repeat: no-repeat, repeat-x;\ background-position: center center, top left;\ color: transparent;\ border: 1px solid black;\ border-radius: 2px;\ cursor: pointer;\ pointer-events: auto;\ }\ .ace_dark .ace_fold {\ }\ .ace_fold:hover{\ background-image:\ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\ }\ .ace_tooltip {\ background-color: #FFF;\ background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));\ border: 1px solid gray;\ border-radius: 1px;\ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\ color: black;\ max-width: 100%;\ padding: 3px 4px;\ position: fixed;\ z-index: 999999;\ box-sizing: border-box;\ cursor: default;\ white-space: pre;\ word-wrap: break-word;\ line-height: normal;\ font-style: normal;\ font-weight: normal;\ letter-spacing: normal;\ pointer-events: none;\ }\ .ace_folding-enabled > .ace_gutter-cell {\ padding-right: 13px;\ }\ .ace_fold-widget {\ box-sizing: border-box;\ margin: 0 -12px 0 1px;\ display: none;\ width: 11px;\ vertical-align: top;\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\ background-repeat: no-repeat;\ background-position: center;\ border-radius: 3px;\ border: 1px solid transparent;\ cursor: pointer;\ }\ .ace_folding-enabled .ace_fold-widget {\ display: inline-block; \ }\ .ace_fold-widget.ace_end {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\ }\ .ace_fold-widget.ace_closed {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\ }\ .ace_fold-widget:hover {\ border: 1px solid rgba(0, 0, 0, 0.3);\ background-color: rgba(255, 255, 255, 0.2);\ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\ }\ .ace_fold-widget:active {\ border: 1px solid rgba(0, 0, 0, 0.4);\ background-color: rgba(0, 0, 0, 0.05);\ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\ }\ .ace_dark .ace_fold-widget {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\ }\ .ace_dark .ace_fold-widget.ace_end {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\ }\ .ace_dark .ace_fold-widget.ace_closed {\ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\ }\ .ace_dark .ace_fold-widget:hover {\ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\ background-color: rgba(255, 255, 255, 0.1);\ }\ .ace_dark .ace_fold-widget:active {\ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\ }\ .ace_inline_button {\ border: 1px solid lightgray;\ display: inline-block;\ margin: -1px 8px;\ padding: 0 5px;\ pointer-events: auto;\ cursor: pointer;\ }\ .ace_inline_button:hover {\ border-color: gray;\ background: rgba(200,200,200,0.2);\ display: inline-block;\ pointer-events: auto;\ }\ .ace_fold-widget.ace_invalid {\ background-color: #FFB4B4;\ border-color: #DE5555;\ }\ .ace_fade-fold-widgets .ace_fold-widget {\ transition: opacity 0.4s ease 0.05s;\ opacity: 0;\ }\ .ace_fade-fold-widgets:hover .ace_fold-widget {\ transition: opacity 0.05s ease 0.05s;\ opacity:1;\ }\ .ace_underline {\ text-decoration: underline;\ }\ .ace_bold {\ font-weight: bold;\ }\ .ace_nobold .ace_bold {\ font-weight: normal;\ }\ .ace_italic {\ font-style: italic;\ }\ .ace_error-marker {\ background-color: rgba(255, 0, 0,0.2);\ position: absolute;\ z-index: 9;\ }\ .ace_highlight-marker {\ background-color: rgba(255, 255, 0,0.2);\ position: absolute;\ z-index: 8;\ }\ .ace_mobile-menu {\ position: absolute;\ line-height: 1.5;\ border-radius: 4px;\ -ms-user-select: none;\ -moz-user-select: none;\ -webkit-user-select: none;\ user-select: none;\ background: white;\ box-shadow: 1px 3px 2px grey;\ border: 1px solid #dcdcdc;\ color: black;\ }\ .ace_dark > .ace_mobile-menu {\ background: #333;\ color: #ccc;\ box-shadow: 1px 3px 2px grey;\ border: 1px solid #444;\ }\ .ace_mobile-button {\ padding: 2px;\ cursor: pointer;\ overflow: hidden;\ }\ .ace_mobile-button:hover {\ background-color: #eee;\ opacity:1;\ }\ .ace_mobile-button:active {\ background-color: #ddd;\ }\ .ace_placeholder {\ font-family: arial;\ transform: scale(0.9);\ transform-origin: left;\ white-space: pre;\ opacity: 0.7;\ margin: 0 10px;\ }', useragent = require("./lib/useragent"), HIDE_TEXTAREA = useragent.isIE; dom.importCssString(editorCss, "ace_editor.css", !1); var VirtualRenderer = function(container, theme) { var _self = this; this.container = container || dom.createElement("div"), dom.addCssClass(this.container, "ace_editor"), dom.HI_DPI && dom.addCssClass(this.container, "ace_hidpi"), this.setTheme(theme), null == config.get("useStrictCSP") && config.set("useStrictCSP", !1), this.$gutter = dom.createElement("div"), this.$gutter.className = "ace_gutter", this.container.appendChild(this.$gutter), this.$gutter.setAttribute("aria-hidden", !0), this.scroller = dom.createElement("div"), this.scroller.className = "ace_scroller", this.container.appendChild(this.scroller), this.content = dom.createElement("div"), this.content.className = "ace_content", this.scroller.appendChild(this.content), this.$gutterLayer = new GutterLayer(this.$gutter), this.$gutterLayer.on("changeGutterWidth", this.onGutterResize.bind(this)), this.$markerBack = new MarkerLayer(this.content); var textLayer = this.$textLayer = new TextLayer(this.content); this.canvas = textLayer.element, this.$markerFront = new MarkerLayer(this.content), this.$cursorLayer = new CursorLayer(this.content), this.$horizScroll = !1, this.$vScroll = !1, this.scrollBar = this.scrollBarV = new VScrollBar(this.container, this), this.scrollBarH = new HScrollBar(this.container, this), this.scrollBarV.on("scroll", function(e) { _self.$scrollAnimation || _self.session.setScrollTop(e.data - _self.scrollMargin.top); }), this.scrollBarH.on("scroll", function(e) { _self.$scrollAnimation || _self.session.setScrollLeft(e.data - _self.scrollMargin.left); }), this.scrollTop = 0, this.scrollLeft = 0, this.cursorPos = { row: 0, column: 0 }, this.$fontMetrics = new FontMetrics(this.container), this.$textLayer.$setFontMetrics(this.$fontMetrics), this.$textLayer.on("changeCharacterSize", function(e) { _self.updateCharacterSize(), _self.onResize(!0, _self.gutterWidth, _self.$size.width, _self.$size.height), _self._signal("changeCharacterSize", e); }), this.$size = { width: 0, height: 0, scrollerHeight: 0, scrollerWidth: 0, $dirty: !0 }, this.layerConfig = { width: 1, padding: 0, firstRow: 0, firstRowScreen: 0, lastRow: 0, lineHeight: 0, characterWidth: 0, minHeight: 1, maxHeight: 1, offset: 0, height: 1, gutterOffset: 1 }, this.scrollMargin = { left: 0, right: 0, top: 0, bottom: 0, v: 0, h: 0 }, this.margin = { left: 0, right: 0, top: 0, bottom: 0, v: 0, h: 0 }, this.$keepTextAreaAtCursor = !useragent.isIOS, this.$loop = new RenderLoop(this.$renderChanges.bind(this), this.container.ownerDocument.defaultView), this.$loop.schedule(this.CHANGE_FULL), this.updateCharacterSize(), this.setPadding(4), config.resetOptions(this), config._signal("renderer", this); }; (function() { this.CHANGE_CURSOR = 1, this.CHANGE_MARKER = 2, this.CHANGE_GUTTER = 4, this.CHANGE_SCROLL = 8, this.CHANGE_LINES = 16, this.CHANGE_TEXT = 32, this.CHANGE_SIZE = 64, this.CHANGE_MARKER_BACK = 128, this.CHANGE_MARKER_FRONT = 256, this.CHANGE_FULL = 512, this.CHANGE_H_SCROLL = 1024, oop.implement(this, EventEmitter), this.updateCharacterSize = function() { this.$textLayer.allowBoldFonts != this.$allowBoldFonts && (this.$allowBoldFonts = this.$textLayer.allowBoldFonts, this.setStyle("ace_nobold", !this.$allowBoldFonts)), this.layerConfig.characterWidth = this.characterWidth = this.$textLayer.getCharacterWidth(), this.layerConfig.lineHeight = this.lineHeight = this.$textLayer.getLineHeight(), this.$updatePrintMargin(), dom.setStyle(this.scroller.style, "line-height", this.lineHeight + "px"); }, this.setSession = function(session) { this.session && this.session.doc.off("changeNewLineMode", this.onChangeNewLineMode), this.session = session, session && this.scrollMargin.top && 0 >= session.getScrollTop() && session.setScrollTop(-this.scrollMargin.top), this.$cursorLayer.setSession(session), this.$markerBack.setSession(session), this.$markerFront.setSession(session), this.$gutterLayer.setSession(session), this.$textLayer.setSession(session), session && (this.$loop.schedule(this.CHANGE_FULL), this.session.$setFontMetrics(this.$fontMetrics), this.scrollBarH.scrollLeft = this.scrollBarV.scrollTop = null, this.onChangeNewLineMode = this.onChangeNewLineMode.bind(this), this.onChangeNewLineMode(), this.session.doc.on("changeNewLineMode", this.onChangeNewLineMode)); }, this.updateLines = function(firstRow, lastRow, force) { if (void 0 === lastRow && (lastRow = 1 / 0), this.$changedLines ? (this.$changedLines.firstRow > firstRow && (this.$changedLines.firstRow = firstRow), this.$changedLines.lastRow < lastRow && (this.$changedLines.lastRow = lastRow)) : this.$changedLines = { firstRow: firstRow, lastRow: lastRow }, this.$changedLines.lastRow < this.layerConfig.firstRow) { if (!force) return; this.$changedLines.lastRow = this.layerConfig.lastRow; } this.$changedLines.firstRow > this.layerConfig.lastRow || this.$loop.schedule(this.CHANGE_LINES); }, this.onChangeNewLineMode = function() { this.$loop.schedule(this.CHANGE_TEXT), this.$textLayer.$updateEolChar(), this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR); }, this.onChangeTabSize = function() { this.$loop.schedule(this.CHANGE_TEXT | this.CHANGE_MARKER), this.$textLayer.onChangeTabSize(); }, this.updateText = function() { this.$loop.schedule(this.CHANGE_TEXT); }, this.updateFull = function(force) { force ? this.$renderChanges(this.CHANGE_FULL, !0) : this.$loop.schedule(this.CHANGE_FULL); }, this.updateFontSize = function() { this.$textLayer.checkForSizeChanges(); }, this.$changes = 0, this.$updateSizeAsync = function() { this.$loop.pending ? this.$size.$dirty = !0 : this.onResize(); }, this.onResize = function(force, gutterWidth, width, height) { if (!(this.resizing > 2)) { this.resizing > 0 ? this.resizing++ : this.resizing = +!!force; var el = this.container; height || (height = el.clientHeight || el.scrollHeight), width || (width = el.clientWidth || el.scrollWidth); var changes = this.$updateCachedSize(force, gutterWidth, width, height); if (!this.$size.scrollerHeight || !width && !height) return this.resizing = 0; force && (this.$gutterLayer.$padding = null), force ? this.$renderChanges(changes | this.$changes, !0) : this.$loop.schedule(changes | this.$changes), this.resizing && (this.resizing = 0), this.scrollBarH.scrollLeft = this.scrollBarV.scrollTop = null; } }, this.$updateCachedSize = function(force, gutterWidth, width, height) { height -= this.$extraHeight || 0; var changes = 0, size = this.$size, oldSize = { width: size.width, height: size.height, scrollerHeight: size.scrollerHeight, scrollerWidth: size.scrollerWidth }; if (height && (force || size.height != height) && (size.height = height, changes |= this.CHANGE_SIZE, size.scrollerHeight = size.height, this.$horizScroll && (size.scrollerHeight -= this.scrollBarH.getHeight()), this.scrollBarV.element.style.bottom = this.scrollBarH.getHeight() + "px", changes |= this.CHANGE_SCROLL), width && (force || size.width != width)) { changes |= this.CHANGE_SIZE, size.width = width, null == gutterWidth && (gutterWidth = this.$showGutter ? this.$gutter.offsetWidth : 0), this.gutterWidth = gutterWidth, dom.setStyle(this.scrollBarH.element.style, "left", gutterWidth + "px"), dom.setStyle(this.scroller.style, "left", gutterWidth + this.margin.left + "px"), size.scrollerWidth = Math.max(0, width - gutterWidth - this.scrollBarV.getWidth() - this.margin.h), dom.setStyle(this.$gutter.style, "left", this.margin.left + "px"); var right = this.scrollBarV.getWidth() + "px"; dom.setStyle(this.scrollBarH.element.style, "right", right), dom.setStyle(this.scroller.style, "right", right), dom.setStyle(this.scroller.style, "bottom", this.scrollBarH.getHeight()), (this.session && this.session.getUseWrapMode() && this.adjustWrapLimit() || force) && (changes |= this.CHANGE_FULL); } return size.$dirty = !width || !height, changes && this._signal("resize", oldSize), changes; }, this.onGutterResize = function(width) { var gutterWidth = this.$showGutter ? width : 0; gutterWidth != this.gutterWidth && (this.$changes |= this.$updateCachedSize(!0, gutterWidth, this.$size.width, this.$size.height)), this.session.getUseWrapMode() && this.adjustWrapLimit() ? this.$loop.schedule(this.CHANGE_FULL) : this.$size.$dirty ? this.$loop.schedule(this.CHANGE_FULL) : this.$computeLayerConfig(); }, this.adjustWrapLimit = function() { var limit = Math.floor((this.$size.scrollerWidth - 2 * this.$padding) / this.characterWidth); return this.session.adjustWrapLimit(limit, this.$showPrintMargin && this.$printMarginColumn); }, this.setAnimatedScroll = function(shouldAnimate) { this.setOption("animatedScroll", shouldAnimate); }, this.getAnimatedScroll = function() { return this.$animatedScroll; }, this.setShowInvisibles = function(showInvisibles) { this.setOption("showInvisibles", showInvisibles), this.session.$bidiHandler.setShowInvisibles(showInvisibles); }, this.getShowInvisibles = function() { return this.getOption("showInvisibles"); }, this.getDisplayIndentGuides = function() { return this.getOption("displayIndentGuides"); }, this.setDisplayIndentGuides = function(display) { this.setOption("displayIndentGuides", display); }, this.setShowPrintMargin = function(showPrintMargin) { this.setOption("showPrintMargin", showPrintMargin); }, this.getShowPrintMargin = function() { return this.getOption("showPrintMargin"); }, this.setPrintMarginColumn = function(showPrintMargin) { this.setOption("printMarginColumn", showPrintMargin); }, this.getPrintMarginColumn = function() { return this.getOption("printMarginColumn"); }, this.getShowGutter = function() { return this.getOption("showGutter"); }, this.setShowGutter = function(show) { return this.setOption("showGutter", show); }, this.getFadeFoldWidgets = function() { return this.getOption("fadeFoldWidgets"); }, this.setFadeFoldWidgets = function(show) { this.setOption("fadeFoldWidgets", show); }, this.setHighlightGutterLine = function(shouldHighlight) { this.setOption("highlightGutterLine", shouldHighlight); }, this.getHighlightGutterLine = function() { return this.getOption("highlightGutterLine"); }, this.$updatePrintMargin = function() { if (this.$showPrintMargin || this.$printMarginEl) { if (!this.$printMarginEl) { var containerEl = dom.createElement("div"); containerEl.className = "ace_layer ace_print-margin-layer", this.$printMarginEl = dom.createElement("div"), this.$printMarginEl.className = "ace_print-margin", containerEl.appendChild(this.$printMarginEl), this.content.insertBefore(containerEl, this.content.firstChild); } var style = this.$printMarginEl.style; style.left = Math.round(this.characterWidth * this.$printMarginColumn + this.$padding) + "px", style.visibility = this.$showPrintMargin ? "visible" : "hidden", this.session && -1 == this.session.$wrap && this.adjustWrapLimit(); } }, this.getContainerElement = function() { return this.container; }, this.getMouseEventTarget = function() { return this.scroller; }, this.getTextAreaContainer = function() { return this.container; }, this.$moveTextAreaToCursor = function() { if (!this.$isMousePressed) { var style = this.textarea.style, composition = this.$composition; if (!this.$keepTextAreaAtCursor && !composition) { dom.translate(this.textarea, -100, 0); return; } var pixelPos = this.$cursorLayer.$pixelPos; if (pixelPos) { composition && composition.markerRange && (pixelPos = this.$cursorLayer.getPixelPosition(composition.markerRange.start, !0)); var config = this.layerConfig, posTop = pixelPos.top, posLeft = pixelPos.left; posTop -= config.offset; var h = composition && composition.useTextareaForIME ? this.lineHeight : +!HIDE_TEXTAREA; if (posTop < 0 || posTop > config.height - h) { dom.translate(this.textarea, 0, 0); return; } var w = 1, maxTop = this.$size.height - h; if (composition) { if (composition.useTextareaForIME) { var val = this.textarea.value; w = this.characterWidth * this.session.$getStringScreenWidth(val)[0]; } else posTop += this.lineHeight + 2; } else posTop += this.lineHeight; (posLeft -= this.scrollLeft) > this.$size.scrollerWidth - w && (posLeft = this.$size.scrollerWidth - w), posLeft += this.gutterWidth + this.margin.left, dom.setStyle(style, "height", h + "px"), dom.setStyle(style, "width", w + "px"), dom.translate(this.textarea, Math.min(posLeft, this.$size.scrollerWidth - w), Math.min(posTop, maxTop)); } } }, this.getFirstVisibleRow = function() { return this.layerConfig.firstRow; }, this.getFirstFullyVisibleRow = function() { return this.layerConfig.firstRow + +(0 !== this.layerConfig.offset); }, this.getLastFullyVisibleRow = function() { var config = this.layerConfig, lastRow = config.lastRow; return this.session.documentToScreenRow(lastRow, 0) * config.lineHeight - this.session.getScrollTop() > config.height - config.lineHeight ? lastRow - 1 : lastRow; }, this.getLastVisibleRow = function() { return this.layerConfig.lastRow; }, this.$padding = null, this.setPadding = function(padding) { this.$padding = padding, this.$textLayer.setPadding(padding), this.$cursorLayer.setPadding(padding), this.$markerFront.setPadding(padding), this.$markerBack.setPadding(padding), this.$loop.schedule(this.CHANGE_FULL), this.$updatePrintMargin(); }, this.setScrollMargin = function(top, bottom, left, right) { var sm = this.scrollMargin; sm.top = 0 | top, sm.bottom = 0 | bottom, sm.right = 0 | right, sm.left = 0 | left, sm.v = sm.top + sm.bottom, sm.h = sm.left + sm.right, sm.top && this.scrollTop <= 0 && this.session && this.session.setScrollTop(-sm.top), this.updateFull(); }, this.setMargin = function(top, bottom, left, right) { var sm = this.margin; sm.top = 0 | top, sm.bottom = 0 | bottom, sm.right = 0 | right, sm.left = 0 | left, sm.v = sm.top + sm.bottom, sm.h = sm.left + sm.right, this.$updateCachedSize(!0, this.gutterWidth, this.$size.width, this.$size.height), this.updateFull(); }, this.getHScrollBarAlwaysVisible = function() { return this.$hScrollBarAlwaysVisible; }, this.setHScrollBarAlwaysVisible = function(alwaysVisible) { this.setOption("hScrollBarAlwaysVisible", alwaysVisible); }, this.getVScrollBarAlwaysVisible = function() { return this.$vScrollBarAlwaysVisible; }, this.setVScrollBarAlwaysVisible = function(alwaysVisible) { this.setOption("vScrollBarAlwaysVisible", alwaysVisible); }, this.$updateScrollBarV = function() { var scrollHeight = this.layerConfig.maxHeight, scrollerHeight = this.$size.scrollerHeight; !this.$maxLines && this.$scrollPastEnd && (scrollHeight -= (scrollerHeight - this.lineHeight) * this.$scrollPastEnd, this.scrollTop > scrollHeight - scrollerHeight && (scrollHeight = this.scrollTop + scrollerHeight, this.scrollBarV.scrollTop = null)), this.scrollBarV.setScrollHeight(scrollHeight + this.scrollMargin.v), this.scrollBarV.setScrollTop(this.scrollTop + this.scrollMargin.top); }, this.$updateScrollBarH = function() { this.scrollBarH.setScrollWidth(this.layerConfig.width + 2 * this.$padding + this.scrollMargin.h), this.scrollBarH.setScrollLeft(this.scrollLeft + this.scrollMargin.left); }, this.$frozen = !1, this.freeze = function() { this.$frozen = !0; }, this.unfreeze = function() { this.$frozen = !1; }, this.$renderChanges = function(changes, force) { if (this.$changes && (changes |= this.$changes, this.$changes = 0), !this.session || !this.container.offsetWidth || this.$frozen || !changes && !force) { this.$changes |= changes; return; } if (this.$size.$dirty) return this.$changes |= changes, this.onResize(!0); this.lineHeight || this.$textLayer.checkForSizeChanges(), this._signal("beforeRender", changes), this.session && this.session.$bidiHandler && this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics); var config = this.layerConfig; if (changes & this.CHANGE_FULL || changes & this.CHANGE_SIZE || changes & this.CHANGE_TEXT || changes & this.CHANGE_LINES || changes & this.CHANGE_SCROLL || changes & this.CHANGE_H_SCROLL) { if (changes |= this.$computeLayerConfig() | this.$loop.clear(), config.firstRow != this.layerConfig.firstRow && config.firstRowScreen == this.layerConfig.firstRowScreen) { var st = this.scrollTop + (config.firstRow - this.layerConfig.firstRow) * this.lineHeight; st > 0 && (this.scrollTop = st, changes |= this.CHANGE_SCROLL, changes |= this.$computeLayerConfig() | this.$loop.clear()); } config = this.layerConfig, this.$updateScrollBarV(), changes & this.CHANGE_H_SCROLL && this.$updateScrollBarH(), dom.translate(this.content, -this.scrollLeft, -config.offset); var width = config.width + 2 * this.$padding + "px", height = config.minHeight + "px"; dom.setStyle(this.content.style, "width", width), dom.setStyle(this.content.style, "height", height); } if (changes & this.CHANGE_H_SCROLL && (dom.translate(this.content, -this.scrollLeft, -config.offset), this.scroller.className = this.scrollLeft <= 0 ? "ace_scroller" : "ace_scroller ace_scroll-left"), changes & this.CHANGE_FULL) { this.$changedLines = null, this.$textLayer.update(config), this.$showGutter && this.$gutterLayer.update(config), this.$markerBack.update(config), this.$markerFront.update(config), this.$cursorLayer.update(config), this.$moveTextAreaToCursor(), this._signal("afterRender", changes); return; } if (changes & this.CHANGE_SCROLL) { this.$changedLines = null, changes & this.CHANGE_TEXT || changes & this.CHANGE_LINES ? this.$textLayer.update(config) : this.$textLayer.scrollLines(config), this.$showGutter && (changes & this.CHANGE_GUTTER || changes & this.CHANGE_LINES ? this.$gutterLayer.update(config) : this.$gutterLayer.scrollLines(config)), this.$markerBack.update(config), this.$markerFront.update(config), this.$cursorLayer.update(config), this.$moveTextAreaToCursor(), this._signal("afterRender", changes); return; } changes & this.CHANGE_TEXT ? (this.$changedLines = null, this.$textLayer.update(config), this.$showGutter && this.$gutterLayer.update(config)) : changes & this.CHANGE_LINES ? (this.$updateLines() || changes & this.CHANGE_GUTTER && this.$showGutter) && this.$gutterLayer.update(config) : changes & this.CHANGE_TEXT || changes & this.CHANGE_GUTTER ? this.$showGutter && this.$gutterLayer.update(config) : changes & this.CHANGE_CURSOR && this.$highlightGutterLine && this.$gutterLayer.updateLineHighlight(config), changes & this.CHANGE_CURSOR && (this.$cursorLayer.update(config), this.$moveTextAreaToCursor()), changes & (this.CHANGE_MARKER | this.CHANGE_MARKER_FRONT) && this.$markerFront.update(config), changes & (this.CHANGE_MARKER | this.CHANGE_MARKER_BACK) && this.$markerBack.update(config), this._signal("afterRender", changes); }, this.$autosize = function() { var height = this.session.getScreenLength() * this.lineHeight, maxHeight = this.$maxLines * this.lineHeight, desiredHeight = Math.min(maxHeight, Math.max((this.$minLines || 1) * this.lineHeight, height)) + this.scrollMargin.v + (this.$extraHeight || 0); this.$horizScroll && (desiredHeight += this.scrollBarH.getHeight()), this.$maxPixelHeight && desiredHeight > this.$maxPixelHeight && (desiredHeight = this.$maxPixelHeight); var vScroll = !(desiredHeight <= 2 * this.lineHeight) && height > maxHeight; if (desiredHeight != this.desiredHeight || this.$size.height != this.desiredHeight || vScroll != this.$vScroll) { vScroll != this.$vScroll && (this.$vScroll = vScroll, this.scrollBarV.setVisible(vScroll)); var w = this.container.clientWidth; this.container.style.height = desiredHeight + "px", this.$updateCachedSize(!0, this.$gutterWidth, w, desiredHeight), this.desiredHeight = desiredHeight, this._signal("autosize"); } }, this.$computeLayerConfig = function() { var firstRowScreen, firstRowHeight, session = this.session, size = this.$size, hideScrollbars = size.height <= 2 * this.lineHeight, maxHeight = this.session.getScreenLength() * this.lineHeight, longestLine = this.$getLongestLine(), horizScroll = !hideScrollbars && (this.$hScrollBarAlwaysVisible || size.scrollerWidth - longestLine - 2 * this.$padding < 0), hScrollChanged = this.$horizScroll !== horizScroll; hScrollChanged && (this.$horizScroll = horizScroll, this.scrollBarH.setVisible(horizScroll)); var vScrollBefore = this.$vScroll; // autosize can change vscroll value in which case we need to update longestLine this.$maxLines && this.lineHeight > 1 && this.$autosize(); var minHeight = size.scrollerHeight + this.lineHeight, scrollPastEnd = !this.$maxLines && this.$scrollPastEnd ? (size.scrollerHeight - this.lineHeight) * this.$scrollPastEnd : 0; maxHeight += scrollPastEnd; var sm = this.scrollMargin; this.session.setScrollTop(Math.max(-sm.top, Math.min(this.scrollTop, maxHeight - size.scrollerHeight + sm.bottom))), this.session.setScrollLeft(Math.max(-sm.left, Math.min(this.scrollLeft, longestLine + 2 * this.$padding - size.scrollerWidth + sm.right))); var vScroll = !hideScrollbars && (this.$vScrollBarAlwaysVisible || size.scrollerHeight - maxHeight + scrollPastEnd < 0 || this.scrollTop > sm.top), vScrollChanged = vScrollBefore !== vScroll; vScrollChanged && (this.$vScroll = vScroll, this.scrollBarV.setVisible(vScroll)); var offset = this.scrollTop % this.lineHeight, lineCount = Math.ceil(minHeight / this.lineHeight) - 1, firstRow = Math.max(0, Math.round((this.scrollTop - offset) / this.lineHeight)), lastRow = firstRow + lineCount, lineHeight = this.lineHeight; firstRow = session.screenToDocumentRow(firstRow, 0); var foldLine = session.getFoldLine(firstRow); foldLine && (firstRow = foldLine.start.row), firstRowScreen = session.documentToScreenRow(firstRow, 0), firstRowHeight = session.getRowLength(firstRow) * lineHeight, lastRow = Math.min(session.screenToDocumentRow(lastRow, 0), session.getLength() - 1), minHeight = size.scrollerHeight + session.getRowLength(lastRow) * lineHeight + firstRowHeight, offset = this.scrollTop - firstRowScreen * lineHeight; var changes = 0; return (this.layerConfig.width != longestLine || hScrollChanged) && (changes = this.CHANGE_H_SCROLL), (hScrollChanged || vScrollChanged) && (changes |= this.$updateCachedSize(!0, this.gutterWidth, size.width, size.height), this._signal("scrollbarVisibilityChanged"), vScrollChanged && (longestLine = this.$getLongestLine())), this.layerConfig = { width: longestLine, padding: this.$padding, firstRow: firstRow, firstRowScreen: firstRowScreen, lastRow: lastRow, lineHeight: lineHeight, characterWidth: this.characterWidth, minHeight: minHeight, maxHeight: maxHeight, offset: offset, gutterOffset: lineHeight ? Math.max(0, Math.ceil((offset + size.height - size.scrollerHeight) / lineHeight)) : 0, height: this.$size.scrollerHeight }, this.session.$bidiHandler && this.session.$bidiHandler.setContentWidth(longestLine - this.$padding), changes; }, this.$updateLines = function() { if (this.$changedLines) { var firstRow = this.$changedLines.firstRow, lastRow = this.$changedLines.lastRow; this.$changedLines = null; var layerConfig = this.layerConfig; if (!(firstRow > layerConfig.lastRow + 1) && !(lastRow < layerConfig.firstRow)) { if (lastRow === 1 / 0) { this.$showGutter && this.$gutterLayer.update(layerConfig), this.$textLayer.update(layerConfig); return; } return this.$textLayer.updateLines(layerConfig, firstRow, lastRow), !0; } } }, this.$getLongestLine = function() { var charCount = this.session.getScreenWidth(); return this.showInvisibles && !this.session.$useWrapMode && (charCount += 1), this.$textLayer && charCount > this.$textLayer.MAX_LINE_LENGTH && (charCount = this.$textLayer.MAX_LINE_LENGTH + 30), Math.max(this.$size.scrollerWidth - 2 * this.$padding, Math.round(charCount * this.characterWidth)); }, this.updateFrontMarkers = function() { this.$markerFront.setMarkers(this.session.getMarkers(!0)), this.$loop.schedule(this.CHANGE_MARKER_FRONT); }, this.updateBackMarkers = function() { this.$markerBack.setMarkers(this.session.getMarkers()), this.$loop.schedule(this.CHANGE_MARKER_BACK); }, this.addGutterDecoration = function(row, className) { this.$gutterLayer.addGutterDecoration(row, className); }, this.removeGutterDecoration = function(row, className) { this.$gutterLayer.removeGutterDecoration(row, className); }, this.updateBreakpoints = function(rows) { this.$loop.schedule(this.CHANGE_GUTTER); }, this.setAnnotations = function(annotations) { this.$gutterLayer.setAnnotations(annotations), this.$loop.schedule(this.CHANGE_GUTTER); }, this.updateCursor = function() { this.$loop.schedule(this.CHANGE_CURSOR); }, this.hideCursor = function() { this.$cursorLayer.hideCursor(); }, this.showCursor = function() { this.$cursorLayer.showCursor(); }, this.scrollSelectionIntoView = function(anchor, lead, offset) { this.scrollCursorIntoView(anchor, offset), this.scrollCursorIntoView(lead, offset); }, this.scrollCursorIntoView = function(cursor, offset, $viewMargin) { if (0 !== this.$size.scrollerHeight) { var pos = this.$cursorLayer.getPixelPosition(cursor), left = pos.left, top = pos.top, topMargin = $viewMargin && $viewMargin.top || 0, bottomMargin = $viewMargin && $viewMargin.bottom || 0, scrollTop = this.$scrollAnimation ? this.session.getScrollTop() : this.scrollTop; scrollTop + topMargin > top ? (offset && scrollTop + topMargin > top + this.lineHeight && (top -= offset * this.$size.scrollerHeight), 0 === top && (top = -this.scrollMargin.top), this.session.setScrollTop(top)) : scrollTop + this.$size.scrollerHeight - bottomMargin < top + this.lineHeight && (offset && scrollTop + this.$size.scrollerHeight - bottomMargin < top - this.lineHeight && (top += offset * this.$size.scrollerHeight), this.session.setScrollTop(top + this.lineHeight + bottomMargin - this.$size.scrollerHeight)); var scrollLeft = this.scrollLeft; scrollLeft > left ? (left < this.$padding + 2 * this.layerConfig.characterWidth && (left = -this.scrollMargin.left), this.session.setScrollLeft(left)) : scrollLeft + this.$size.scrollerWidth < left + this.characterWidth ? this.session.setScrollLeft(Math.round(left + this.characterWidth - this.$size.scrollerWidth)) : scrollLeft <= this.$padding && left - scrollLeft < this.characterWidth && this.session.setScrollLeft(0); } }, this.getScrollTop = function() { return this.session.getScrollTop(); }, this.getScrollLeft = function() { return this.session.getScrollLeft(); }, this.getScrollTopRow = function() { return this.scrollTop / this.lineHeight; }, this.getScrollBottomRow = function() { return Math.max(0, Math.floor((this.scrollTop + this.$size.scrollerHeight) / this.lineHeight) - 1); }, this.scrollToRow = function(row) { this.session.setScrollTop(row * this.lineHeight); }, this.alignCursor = function(cursor, alignment) { "number" == typeof cursor && (cursor = { row: cursor, column: 0 }); var pos = this.$cursorLayer.getPixelPosition(cursor), h = this.$size.scrollerHeight - this.lineHeight, offset = pos.top - h * (alignment || 0); return this.session.setScrollTop(offset), offset; }, this.STEPS = 8, this.$calcSteps = function(fromValue, toValue) { var i = 0, l = this.STEPS, steps = []; for(i = 0; i < l; ++i)steps.push((toValue - fromValue) * (Math.pow(i / this.STEPS - 1, 3) + 1) + fromValue); return steps; }, this.scrollToLine = function(line, center, animate, callback) { var offset = this.$cursorLayer.getPixelPosition({ row: line, column: 0 }).top; center && (offset -= this.$size.scrollerHeight / 2); var initialScroll = this.scrollTop; this.session.setScrollTop(offset), !1 !== animate && this.animateScrolling(initialScroll, callback); }, this.animateScrolling = function(fromValue, callback) { var toValue = this.scrollTop; if (this.$animatedScroll) { var _self = this; if (fromValue != toValue) { if (this.$scrollAnimation) { var oldSteps = this.$scrollAnimation.steps; if (oldSteps.length && (fromValue = oldSteps[0]) == toValue) return; } var steps = _self.$calcSteps(fromValue, toValue); this.$scrollAnimation = { from: fromValue, to: toValue, steps: steps }, clearInterval(this.$timer), _self.session.setScrollTop(steps.shift()), _self.session.$scrollTop = toValue, this.$timer = setInterval(function() { if (!_self.session) return clearInterval(_self.$timer); steps.length ? (_self.session.setScrollTop(steps.shift()), _self.session.$scrollTop = toValue) : null != toValue ? (_self.session.$scrollTop = -1, _self.session.setScrollTop(toValue), toValue = null) : (_self.$timer = clearInterval(_self.$timer), _self.$scrollAnimation = null, callback && callback()); }, 10); } } }, this.scrollToY = function(scrollTop) { this.scrollTop !== scrollTop && (this.$loop.schedule(this.CHANGE_SCROLL), this.scrollTop = scrollTop); }, this.scrollToX = function(scrollLeft) { this.scrollLeft !== scrollLeft && (this.scrollLeft = scrollLeft), this.$loop.schedule(this.CHANGE_H_SCROLL); }, this.scrollTo = function(x, y) { this.session.setScrollTop(y), this.session.setScrollLeft(x); }, this.scrollBy = function(deltaX, deltaY) { deltaY && this.session.setScrollTop(this.session.getScrollTop() + deltaY), deltaX && this.session.setScrollLeft(this.session.getScrollLeft() + deltaX); }, this.isScrollableBy = function(deltaX, deltaY) { if (deltaY < 0 && this.session.getScrollTop() >= 1 - this.scrollMargin.top || deltaY > 0 && this.session.getScrollTop() + this.$size.scrollerHeight - this.layerConfig.maxHeight < -1 + this.scrollMargin.bottom || deltaX < 0 && this.session.getScrollLeft() >= 1 - this.scrollMargin.left || deltaX > 0 && this.session.getScrollLeft() + this.$size.scrollerWidth - this.layerConfig.width < -1 + this.scrollMargin.right) return !0; }, this.pixelToScreenCoordinates = function(x, y) { if (this.$hasCssTransforms) { var canvasPos = { top: 0, left: 0 }, p = this.$fontMetrics.transformCoordinates([ x, y ]); x = p[1] - this.gutterWidth - this.margin.left, y = p[0]; } else canvasPos = this.scroller.getBoundingClientRect(); var offsetX = x + this.scrollLeft - canvasPos.left - this.$padding, offset = offsetX / this.characterWidth, row = Math.floor((y + this.scrollTop - canvasPos.top) / this.lineHeight), col = this.$blockCursor ? Math.floor(offset) : Math.round(offset); return { row: row, column: col, side: offset - col > 0 ? 1 : -1, offsetX: offsetX }; }, this.screenToTextCoordinates = function(x, y) { if (this.$hasCssTransforms) { var canvasPos = { top: 0, left: 0 }, p = this.$fontMetrics.transformCoordinates([ x, y ]); x = p[1] - this.gutterWidth - this.margin.left, y = p[0]; } else canvasPos = this.scroller.getBoundingClientRect(); var offsetX = x + this.scrollLeft - canvasPos.left - this.$padding, offset = offsetX / this.characterWidth, col = this.$blockCursor ? Math.floor(offset) : Math.round(offset), row = Math.floor((y + this.scrollTop - canvasPos.top) / this.lineHeight); return this.session.screenToDocumentPosition(row, Math.max(col, 0), offsetX); }, this.textToScreenCoordinates = function(row, column) { var canvasPos = this.scroller.getBoundingClientRect(), pos = this.session.documentToScreenPosition(row, column), x = this.$padding + (this.session.$bidiHandler.isBidiRow(pos.row, row) ? this.session.$bidiHandler.getPosLeft(pos.column) : Math.round(pos.column * this.characterWidth)), y = pos.row * this.lineHeight; return { pageX: canvasPos.left + x - this.scrollLeft, pageY: canvasPos.top + y - this.scrollTop }; }, this.visualizeFocus = function() { dom.addCssClass(this.container, "ace_focus"); }, this.visualizeBlur = function() { dom.removeCssClass(this.container, "ace_focus"); }, this.showComposition = function(composition) { this.$composition = composition, composition.cssText || (composition.cssText = this.textarea.style.cssText), void 0 == composition.useTextareaForIME && (composition.useTextareaForIME = this.$useTextareaForIME), this.$useTextareaForIME ? (dom.addCssClass(this.textarea, "ace_composition"), this.textarea.style.cssText = "", this.$moveTextAreaToCursor(), this.$cursorLayer.element.style.display = "none") : composition.markerId = this.session.addMarker(composition.markerRange, "ace_composition_marker", "text"); }, this.setCompositionText = function(text) { var cursor = this.session.selection.cursor; this.addToken(text, "composition_placeholder", cursor.row, cursor.column), this.$moveTextAreaToCursor(); }, this.hideComposition = function() { if (this.$composition) { this.$composition.markerId && this.session.removeMarker(this.$composition.markerId), dom.removeCssClass(this.textarea, "ace_composition"), this.textarea.style.cssText = this.$composition.cssText; var cursor = this.session.selection.cursor; this.removeExtraToken(cursor.row, cursor.column), this.$composition = null, this.$cursorLayer.element.style.display = ""; } }, this.addToken = function(text, type, row, column) { var session = this.session; session.bgTokenizer.lines[row] = null; var newToken = { type: type, value: text }, tokens = session.getTokens(row); if (null == column) tokens.push(newToken); else for(var l = 0, i = 0; i < tokens.length; i++){ var token = tokens[i]; if (column <= (l += token.value.length)) { var diff = token.value.length - (l - column), before = token.value.slice(0, diff), after = token.value.slice(diff); tokens.splice(i, 1, { type: token.type, value: before }, newToken, { type: token.type, value: after }); break; } } this.updateLines(row, row); }, this.removeExtraToken = function(row, column) { this.updateLines(row, row); }, this.setTheme = function(theme, cb) { var _self = this; if (this.$themeId = theme, _self._dispatchEvent("themeChange", { theme: theme }), theme && "string" != typeof theme) afterLoad(theme); else { var moduleName = theme || this.$options.theme.initialValue; config.loadModule([ "theme", moduleName ], afterLoad); } function afterLoad(module) { if (_self.$themeId != theme) return cb && cb(); if (!module || !module.cssClass) throw Error("couldn't load module " + theme + " or it didn't call define"); module.$id && (_self.$themeId = module.$id), dom.importCssString(module.cssText, module.cssClass, _self.container), _self.theme && dom.removeCssClass(_self.container, _self.theme.cssClass); var padding = "padding" in module ? module.padding : "padding" in (_self.theme || {}) ? 4 : _self.$padding; _self.$padding && padding != _self.$padding && _self.setPadding(padding), _self.$theme = module.cssClass, _self.theme = module, dom.addCssClass(_self.container, module.cssClass), dom.setCssClass(_self.container, "ace_dark", module.isDark), _self.$size && (_self.$size.width = 0, _self.$updateSizeAsync()), _self._dispatchEvent("themeLoaded", { theme: module }), cb && cb(); } }, this.getTheme = function() { return this.$themeId; }, this.setStyle = function(style, include) { dom.setCssClass(this.container, style, !1 !== include); }, this.unsetStyle = function(style) { dom.removeCssClass(this.container, style); }, this.setCursorStyle = function(style) { dom.setStyle(this.scroller.style, "cursor", style); }, this.setMouseCursor = function(cursorStyle) { dom.setStyle(this.scroller.style, "cursor", cursorStyle); }, this.attachToShadowRoot = function() { dom.importCssString(editorCss, "ace_editor.css", this.container); }, this.destroy = function() { this.freeze(), this.$fontMetrics.destroy(), this.$cursorLayer.destroy(), this.removeAllListeners(), this.container.textContent = ""; }; }).call(VirtualRenderer.prototype), config.defineOptions(VirtualRenderer.prototype, "renderer", { animatedScroll: { initialValue: !1 }, showInvisibles: { set: function(value) { this.$textLayer.setShowInvisibles(value) && this.$loop.schedule(this.CHANGE_TEXT); }, initialValue: !1 }, showPrintMargin: { set: function() { this.$updatePrintMargin(); }, initialValue: !0 }, printMarginColumn: { set: function() { this.$updatePrintMargin(); }, initialValue: 80 }, printMargin: { set: function(val) { "number" == typeof val && (this.$printMarginColumn = val), this.$showPrintMargin = !!val, this.$updatePrintMargin(); }, get: function() { return this.$showPrintMargin && this.$printMarginColumn; } }, showGutter: { set: function(show) { this.$gutter.style.display = show ? "block" : "none", this.$loop.schedule(this.CHANGE_FULL), this.onGutterResize(); }, initialValue: !0 }, fadeFoldWidgets: { set: function(show) { dom.setCssClass(this.$gutter, "ace_fade-fold-widgets", show); }, initialValue: !1 }, showFoldWidgets: { set: function(show) { this.$gutterLayer.setShowFoldWidgets(show), this.$loop.schedule(this.CHANGE_GUTTER); }, initialValue: !0 }, displayIndentGuides: { set: function(show) { this.$textLayer.setDisplayIndentGuides(show) && this.$loop.schedule(this.CHANGE_TEXT); }, initialValue: !0 }, highlightGutterLine: { set: function(shouldHighlight) { this.$gutterLayer.setHighlightGutterLine(shouldHighlight), this.$loop.schedule(this.CHANGE_GUTTER); }, initialValue: !0 }, hScrollBarAlwaysVisible: { set: function(val) { this.$hScrollBarAlwaysVisible && this.$horizScroll || this.$loop.schedule(this.CHANGE_SCROLL); }, initialValue: !1 }, vScrollBarAlwaysVisible: { set: function(val) { this.$vScrollBarAlwaysVisible && this.$vScroll || this.$loop.schedule(this.CHANGE_SCROLL); }, initialValue: !1 }, fontSize: { set: function(size) { "number" == typeof size && (size += "px"), this.container.style.fontSize = size, this.updateFontSize(); }, initialValue: 12 }, fontFamily: { set: function(name) { this.container.style.fontFamily = name, this.updateFontSize(); } }, maxLines: { set: function(val) { this.updateFull(); } }, minLines: { set: function(val) { this.$minLines < 0x1ffffffffffff || (this.$minLines = 0), this.updateFull(); } }, maxPixelHeight: { set: function(val) { this.updateFull(); }, initialValue: 0 }, scrollPastEnd: { set: function(val) { val = +val || 0, this.$scrollPastEnd != val && (this.$scrollPastEnd = val, this.$loop.schedule(this.CHANGE_SCROLL)); }, initialValue: 0, handlesSet: !0 }, fixedWidthGutter: { set: function(val) { this.$gutterLayer.$fixedWidth = !!val, this.$loop.schedule(this.CHANGE_GUTTER); } }, theme: { set: function(val) { this.setTheme(val); }, get: function() { return this.$themeId || this.theme; }, initialValue: "./theme/textmate", handlesSet: !0 }, hasCssTransforms: {}, useTextareaForIME: { initialValue: !useragent.isMobile && !useragent.isIE } }), exports.VirtualRenderer = VirtualRenderer; }), ace.define("ace/worker/worker_client", [ "require", "exports", "module", "ace/lib/oop", "ace/lib/net", "ace/lib/event_emitter", "ace/config" ], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"), net = require("../lib/net"), EventEmitter = require("../lib/event_emitter").EventEmitter, config = require("../config"); function createWorker(workerUrl) { if ("undefined" == typeof Worker) return { postMessage: function() {}, terminate: function() {} }; if (config.get("loadWorkerFromBlob")) { var blob = function(workerUrl) { var script = "importScripts('" + net.qualifyURL(workerUrl) + "');"; try { return new Blob([ script ], { type: "application/javascript" }); } catch (e) { var blobBuilder = new (window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder)(); return blobBuilder.append(script), blobBuilder.getBlob("application/javascript"); } }(workerUrl); return new Worker((window.URL || window.webkitURL).createObjectURL(blob)); } return new Worker(workerUrl); } var WorkerClient = function(worker) { worker.postMessage || (worker = this.$createWorkerFromOldConfig.apply(this, arguments)), this.$worker = worker, this.$sendDeltaQueue = this.$sendDeltaQueue.bind(this), this.changeListener = this.changeListener.bind(this), this.onMessage = this.onMessage.bind(this), this.callbackId = 1, this.callbacks = {}, this.$worker.onmessage = this.onMessage; }; (function() { oop.implement(this, EventEmitter), this.$createWorkerFromOldConfig = function(topLevelNamespaces, mod, classname, workerUrl, importScripts) { if (require.nameToUrl && !require.toUrl && (require.toUrl = require.nameToUrl), config.get("packaged") || !require.toUrl) workerUrl = workerUrl || config.moduleUrl(mod, "worker"); else { var normalizePath = this.$normalizePath; workerUrl = workerUrl || normalizePath(require.toUrl("ace/worker/worker.js", null, "_")); var tlns = {}; topLevelNamespaces.forEach(function(ns) { tlns[ns] = normalizePath(require.toUrl(ns, null, "_").replace(/(\.js)?(\?.*)?$/, "")); }); } return this.$worker = createWorker(workerUrl), importScripts && this.send("importScripts", importScripts), this.$worker.postMessage({ init: !0, tlns: tlns, module: mod, classname: classname }), this.$worker; }, this.onMessage = function(e) { var msg = e.data; switch(msg.type){ case "event": this._signal(msg.name, { data: msg.data }); break; case "call": var callback = this.callbacks[msg.id]; callback && (callback(msg.data), delete this.callbacks[msg.id]); break; case "error": this.reportError(msg.data); break; case "log": window.console && console.log && console.log.apply(console, msg.data); } }, this.reportError = function(err) { window.console && console.error && console.error(err); }, this.$normalizePath = function(path) { return net.qualifyURL(path); }, this.terminate = function() { this._signal("terminate", {}), this.deltaQueue = null, this.$worker.terminate(), this.$worker = null, this.$doc && this.$doc.off("change", this.changeListener), this.$doc = null; }, this.send = function(cmd, args) { this.$worker.postMessage({ command: cmd, args: args }); }, this.call = function(cmd, args, callback) { if (callback) { var id = this.callbackId++; this.callbacks[id] = callback, args.push(id); } this.send(cmd, args); }, this.emit = function(event, data) { try { data.data && data.data.err && (data.data.err = { message: data.data.err.message, stack: data.data.err.stack, code: data.data.err.code }), this.$worker.postMessage({ event: event, data: { data: data.data } }); } catch (ex) { console.error(ex.stack); } }, this.attachToDocument = function(doc) { this.$doc && this.terminate(), this.$doc = doc, this.call("setValue", [ doc.getValue() ]), doc.on("change", this.changeListener); }, this.changeListener = function(delta) { this.deltaQueue || (this.deltaQueue = [], setTimeout(this.$sendDeltaQueue, 0)), "insert" == delta.action ? this.deltaQueue.push(delta.start, delta.lines) : this.deltaQueue.push(delta.start, delta.end); }, this.$sendDeltaQueue = function() { var q = this.deltaQueue; q && (this.deltaQueue = null, q.length > 50 && q.length > this.$doc.getLength() >> 1 ? this.call("setValue", [ this.$doc.getValue() ]) : this.emit("change", { data: q })); }; }).call(WorkerClient.prototype), exports.UIWorkerClient = function(topLevelNamespaces, mod, classname) { var main = null, emitSync = !1, sender = Object.create(EventEmitter), messageBuffer = [], workerClient = new WorkerClient({ messageBuffer: messageBuffer, terminate: function() {}, postMessage: function(e) { messageBuffer.push(e), main && (emitSync ? setTimeout(processNext) : processNext()); } }); workerClient.setEmitSync = function(val) { emitSync = val; }; var processNext = function() { var msg = messageBuffer.shift(); msg.command ? main[msg.command].apply(main, msg.args) : msg.event && sender._signal(msg.event, msg.data); }; return sender.postMessage = function(msg) { workerClient.onMessage({ data: msg }); }, sender.callback = function(data, callbackId) { this.postMessage({ type: "call", id: callbackId, data: data }); }, sender.emit = function(name, data) { this.postMessage({ type: "event", name: name, data: data }); }, config.loadModule([ "worker", mod ], function(Main) { for(main = new Main[classname](sender); messageBuffer.length;)processNext(); }), workerClient; }, exports.WorkerClient = WorkerClient, exports.createWorker = createWorker; }), ace.define("ace/placeholder", [ "require", "exports", "module", "ace/range", "ace/lib/event_emitter", "ace/lib/oop" ], function(require, exports, module) { "use strict"; var Range = require("./range").Range, EventEmitter = require("./lib/event_emitter").EventEmitter, oop = require("./lib/oop"), PlaceHolder = function(session, length, pos, others, mainClass, othersClass) { var _self = this; this.length = length, this.session = session, this.doc = session.getDocument(), this.mainClass = mainClass, this.othersClass = othersClass, this.$onUpdate = this.onUpdate.bind(this), this.doc.on("change", this.$onUpdate), this.$others = others, this.$onCursorChange = function() { setTimeout(function() { _self.onCursorChange(); }); }, this.$pos = pos; var undoStack = session.getUndoManager().$undoStack || session.getUndoManager().$undostack || { length: -1 }; this.$undoStackDepth = undoStack.length, this.setup(), session.selection.on("changeCursor", this.$onCursorChange); }; (function() { oop.implement(this, EventEmitter), this.setup = function() { var _self = this, doc = this.doc, session = this.session; this.selectionBefore = session.selection.toJSON(), session.selection.inMultiSelectMode && session.selection.toSingleRange(), this.pos = doc.createAnchor(this.$pos.row, this.$pos.column); var pos = this.pos; pos.$insertRight = !0, pos.detach(), pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + this.length), this.mainClass, null, !1), this.others = [], this.$others.forEach(function(other) { var anchor = doc.createAnchor(other.row, other.column); anchor.$insertRight = !0, anchor.detach(), _self.others.push(anchor); }), session.setUndoSelect(!1); }, this.showOtherMarkers = function() { if (!this.othersActive) { var session = this.session, _self = this; this.othersActive = !0, this.others.forEach(function(anchor) { anchor.markerId = session.addMarker(new Range(anchor.row, anchor.column, anchor.row, anchor.column + _self.length), _self.othersClass, null, !1); }); } }, this.hideOtherMarkers = function() { if (this.othersActive) { this.othersActive = !1; for(var i = 0; i < this.others.length; i++)this.session.removeMarker(this.others[i].markerId); } }, this.onUpdate = function(delta) { if (this.$updating) return this.updateAnchors(delta); if (delta.start.row === delta.end.row && delta.start.row === this.pos.row) { this.$updating = !0; var lengthDiff = "insert" === delta.action ? delta.end.column - delta.start.column : delta.start.column - delta.end.column, inMainRange = delta.start.column >= this.pos.column && delta.start.column <= this.pos.column + this.length + 1, distanceFromStart = delta.start.column - this.pos.column; if (this.updateAnchors(delta), inMainRange && (this.length += lengthDiff), inMainRange && !this.session.$fromUndo) { if ("insert" === delta.action) for(var i = this.others.length - 1; i >= 0; i--){ var otherPos = this.others[i], newPos = { row: otherPos.row, column: otherPos.column + distanceFromStart }; this.doc.insertMergedLines(newPos, delta.lines); } else if ("remove" === delta.action) for(var i = this.others.length - 1; i >= 0; i--){ var otherPos = this.others[i], newPos = { row: otherPos.row, column: otherPos.column + distanceFromStart }; this.doc.remove(new Range(newPos.row, newPos.column, newPos.row, newPos.column - lengthDiff)); } } this.$updating = !1, this.updateMarkers(); } }, this.updateAnchors = function(delta) { this.pos.onChange(delta); for(var i = this.others.length; i--;)this.others[i].onChange(delta); this.updateMarkers(); }, this.updateMarkers = function() { if (!this.$updating) { var _self = this, session = this.session, updateMarker = function(pos, className) { session.removeMarker(pos.markerId), pos.markerId = session.addMarker(new Range(pos.row, pos.column, pos.row, pos.column + _self.length), className, null, !1); }; updateMarker(this.pos, this.mainClass); for(var i = this.others.length; i--;)updateMarker(this.others[i], this.othersClass); } }, this.onCursorChange = function(event) { if (!this.$updating && this.session) { var pos = this.session.selection.getCursor(); pos.row === this.pos.row && pos.column >= this.pos.column && pos.column <= this.pos.column + this.length ? (this.showOtherMarkers(), this._emit("cursorEnter", event)) : (this.hideOtherMarkers(), this._emit("cursorLeave", event)); } }, this.detach = function() { this.session.removeMarker(this.pos && this.pos.markerId), this.hideOtherMarkers(), this.doc.off("change", this.$onUpdate), this.session.selection.off("changeCursor", this.$onCursorChange), this.session.setUndoSelect(!0), this.session = null; }, this.cancel = function() { if (-1 !== this.$undoStackDepth) { for(var undoManager = this.session.getUndoManager(), undosRequired = (undoManager.$undoStack || undoManager.$undostack).length - this.$undoStackDepth, i = 0; i < undosRequired; i++)undoManager.undo(this.session, !0); this.selectionBefore && this.session.selection.fromJSON(this.selectionBefore); } }; }).call(PlaceHolder.prototype), exports.PlaceHolder = PlaceHolder; }), ace.define("ace/mouse/multi_select_handler", [ "require", "exports", "module", "ace/lib/event", "ace/lib/useragent" ], function(require, exports, module) { var event = require("../lib/event"), useragent = require("../lib/useragent"); function isSamePoint(p1, p2) { return p1.row == p2.row && p1.column == p2.column; } exports.onMouseDown = function(e) { var ev = e.domEvent, alt = ev.altKey, shift = ev.shiftKey, ctrl = ev.ctrlKey, accel = e.getAccelKey(), button = e.getButton(); if (ctrl && useragent.isMac && (button = ev.button), e.editor.inMultiSelectMode && 2 == button) { e.editor.textInput.onContextMenu(e.domEvent); return; } if (!ctrl && !alt && !accel) { 0 === button && e.editor.inMultiSelectMode && e.editor.exitMultiSelectMode(); return; } if (0 === button) { var editor = e.editor, selection = editor.selection, isMultiSelect = editor.inMultiSelectMode, pos = e.getDocumentPosition(), cursor = selection.getCursor(), inSelection = e.inSelection() || selection.isEmpty() && isSamePoint(pos, cursor), mouseX = e.x, mouseY = e.y, session = editor.session, screenAnchor = editor.renderer.pixelToScreenCoordinates(mouseX, mouseY), screenCursor = screenAnchor; if (editor.$mouseHandler.$enableJumpToDef) ctrl && alt || accel && alt ? selectionMode = shift ? "block" : "add" : alt && editor.$blockSelectEnabled && (selectionMode = "block"); else if (accel && !alt) { if (selectionMode = "add", !isMultiSelect && shift) return; } else alt && editor.$blockSelectEnabled && (selectionMode = "block"); if (selectionMode && useragent.isMac && ev.ctrlKey && editor.$mouseHandler.cancelContextMenu(), "add" == selectionMode) { if (!isMultiSelect && inSelection) return; // dragging if (!isMultiSelect) { var range = selection.toOrientedRange(); editor.addSelectionMarker(range); } var oldRange = selection.rangeList.rangeAtPoint(pos); editor.inVirtualSelectionMode = !0, shift && (oldRange = null, range = selection.ranges[0] || range, editor.removeSelectionMarker(range)), editor.once("mouseup", function() { var tmpSel = selection.toOrientedRange(); oldRange && tmpSel.isEmpty() && isSamePoint(oldRange.cursor, tmpSel.cursor) ? selection.substractPoint(tmpSel.cursor) : (shift ? selection.substractPoint(range.cursor) : range && (editor.removeSelectionMarker(range), selection.addRange(range)), selection.addRange(tmpSel)), editor.inVirtualSelectionMode = !1; }); } else if ("block" == selectionMode) { e.stop(), editor.inVirtualSelectionMode = !0; var selectionMode, initialRange, rectSel = [], blockSelect = function() { var newCursor = editor.renderer.pixelToScreenCoordinates(mouseX, mouseY), cursor = session.screenToDocumentPosition(newCursor.row, newCursor.column, newCursor.offsetX); isSamePoint(screenCursor, newCursor) && isSamePoint(cursor, selection.lead) || (screenCursor = newCursor, editor.selection.moveToPosition(cursor), editor.renderer.scrollCursorIntoView(), editor.removeSelectionMarkers(rectSel), rectSel = selection.rectangularRangeBlock(screenCursor, screenAnchor), editor.$mouseHandler.$clickSelection && 1 == rectSel.length && rectSel[0].isEmpty() && (rectSel[0] = editor.$mouseHandler.$clickSelection.clone()), rectSel.forEach(editor.addSelectionMarker, editor), editor.updateSelectionMarkers()); }; isMultiSelect && !accel ? selection.toSingleRange() : !isMultiSelect && accel && (initialRange = selection.toOrientedRange(), editor.addSelectionMarker(initialRange)), shift ? screenAnchor = session.documentToScreenPosition(selection.lead) : selection.moveToPosition(pos), screenCursor = { row: -1, column: -1 }, event.capture(editor.container, function(e) { mouseX = e.clientX, mouseY = e.clientY; }, function(e) { blockSelect(), clearInterval(timerId), editor.removeSelectionMarkers(rectSel), rectSel.length || (rectSel = [ selection.toOrientedRange() ]), initialRange && (editor.removeSelectionMarker(initialRange), selection.toSingleRange(initialRange)); for(var i = 0; i < rectSel.length; i++)selection.addRange(rectSel[i]); editor.inVirtualSelectionMode = !1, editor.$mouseHandler.$clickSelection = null; }); var timerId = setInterval(function() { blockSelect(); }, 20); return e.preventDefault(); } } }; }), ace.define("ace/commands/multi_select_commands", [ "require", "exports", "module", "ace/keyboard/hash_handler" ], function(require, exports, module) { exports.defaultCommands = [ { name: "addCursorAbove", description: "Add cursor above", exec: function(editor) { editor.selectMoreLines(-1); }, bindKey: { win: "Ctrl-Alt-Up", mac: "Ctrl-Alt-Up" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "addCursorBelow", description: "Add cursor below", exec: function(editor) { editor.selectMoreLines(1); }, bindKey: { win: "Ctrl-Alt-Down", mac: "Ctrl-Alt-Down" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "addCursorAboveSkipCurrent", description: "Add cursor above (skip current)", exec: function(editor) { editor.selectMoreLines(-1, !0); }, bindKey: { win: "Ctrl-Alt-Shift-Up", mac: "Ctrl-Alt-Shift-Up" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "addCursorBelowSkipCurrent", description: "Add cursor below (skip current)", exec: function(editor) { editor.selectMoreLines(1, !0); }, bindKey: { win: "Ctrl-Alt-Shift-Down", mac: "Ctrl-Alt-Shift-Down" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "selectMoreBefore", description: "Select more before", exec: function(editor) { editor.selectMore(-1); }, bindKey: { win: "Ctrl-Alt-Left", mac: "Ctrl-Alt-Left" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "selectMoreAfter", description: "Select more after", exec: function(editor) { editor.selectMore(1); }, bindKey: { win: "Ctrl-Alt-Right", mac: "Ctrl-Alt-Right" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "selectNextBefore", description: "Select next before", exec: function(editor) { editor.selectMore(-1, !0); }, bindKey: { win: "Ctrl-Alt-Shift-Left", mac: "Ctrl-Alt-Shift-Left" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "selectNextAfter", description: "Select next after", exec: function(editor) { editor.selectMore(1, !0); }, bindKey: { win: "Ctrl-Alt-Shift-Right", mac: "Ctrl-Alt-Shift-Right" }, scrollIntoView: "cursor", readOnly: !0 }, { name: "toggleSplitSelectionIntoLines", description: "Split into lines", exec: function(editor) { editor.multiSelect.rangeCount > 1 ? editor.multiSelect.joinSelections() : editor.multiSelect.splitIntoLines(); }, bindKey: { win: "Ctrl-Alt-L", mac: "Ctrl-Alt-L" }, readOnly: !0 }, { name: "splitSelectionIntoLines", description: "Split into lines", exec: function(editor) { editor.multiSelect.splitIntoLines(); }, readOnly: !0 }, { name: "alignCursors", description: "Align cursors", exec: function(editor) { editor.alignCursors(); }, bindKey: { win: "Ctrl-Alt-A", mac: "Ctrl-Alt-A" }, scrollIntoView: "cursor" }, { name: "findAll", description: "Find all", exec: function(editor) { editor.findAll(); }, bindKey: { win: "Ctrl-Alt-K", mac: "Ctrl-Alt-G" }, scrollIntoView: "cursor", readOnly: !0 } ], exports.multiSelectCommands = [ { name: "singleSelection", description: "Single selection", bindKey: "esc", exec: function(editor) { editor.exitMultiSelectMode(); }, scrollIntoView: "cursor", readOnly: !0, isAvailable: function(editor) { return editor && editor.inMultiSelectMode; } } ], exports.keyboardHandler = new (require("../keyboard/hash_handler")).HashHandler(exports.multiSelectCommands); }), ace.define("ace/multi_select", [ "require", "exports", "module", "ace/range_list", "ace/range", "ace/selection", "ace/mouse/multi_select_handler", "ace/lib/event", "ace/lib/lang", "ace/commands/multi_select_commands", "ace/search", "ace/edit_session", "ace/editor", "ace/config" ], function(require, exports, module) { var RangeList = require("./range_list").RangeList, Range = require("./range").Range, Selection = require("./selection").Selection, onMouseDown = require("./mouse/multi_select_handler").onMouseDown, event = require("./lib/event"), lang = require("./lib/lang"), commands = require("./commands/multi_select_commands"); exports.commands = commands.defaultCommands.concat(commands.multiSelectCommands); var search = new (require("./search")).Search(); (function() { this.getSelectionMarkers = function() { return this.$selectionMarkers; }; }).call(require("./edit_session").EditSession.prototype), (function() { this.ranges = null, this.rangeList = null, this.addRange = function(range, $blockChangeEvents) { if (range) { if (!this.inMultiSelectMode && 0 === this.rangeCount) { var oldRange = this.toOrientedRange(); if (this.rangeList.add(oldRange), this.rangeList.add(range), 2 != this.rangeList.ranges.length) return this.rangeList.removeAll(), $blockChangeEvents || this.fromOrientedRange(range); this.rangeList.removeAll(), this.rangeList.add(oldRange), this.$onAddRange(oldRange); } range.cursor || (range.cursor = range.end); var removed = this.rangeList.add(range); return this.$onAddRange(range), removed.length && this.$onRemoveRange(removed), this.rangeCount > 1 && !this.inMultiSelectMode && (this._signal("multiSelect"), this.inMultiSelectMode = !0, this.session.$undoSelect = !1, this.rangeList.attach(this.session)), $blockChangeEvents || this.fromOrientedRange(range); } }, this.toSingleRange = function(range) { range = range || this.ranges[0]; var removed = this.rangeList.removeAll(); removed.length && this.$onRemoveRange(removed), range && this.fromOrientedRange(range); }, this.substractPoint = function(pos) { var removed = this.rangeList.substractPoint(pos); if (removed) return this.$onRemoveRange(removed), removed[0]; }, this.mergeOverlappingRanges = function() { var removed = this.rangeList.merge(); removed.length && this.$onRemoveRange(removed); }, this.$onAddRange = function(range) { this.rangeCount = this.rangeList.ranges.length, this.ranges.unshift(range), this._signal("addRange", { range: range }); }, this.$onRemoveRange = function(removed) { if (this.rangeCount = this.rangeList.ranges.length, 1 == this.rangeCount && this.inMultiSelectMode) { var lastRange = this.rangeList.ranges.pop(); removed.push(lastRange), this.rangeCount = 0; } for(var i = removed.length; i--;){ var index = this.ranges.indexOf(removed[i]); this.ranges.splice(index, 1); } this._signal("removeRange", { ranges: removed }), 0 === this.rangeCount && this.inMultiSelectMode && (this.inMultiSelectMode = !1, this._signal("singleSelect"), this.session.$undoSelect = !0, this.rangeList.detach(this.session)), (lastRange = lastRange || this.ranges[0]) && !lastRange.isEqual(this.getRange()) && this.fromOrientedRange(lastRange); }, this.$initRangeList = function() { this.rangeList || (this.rangeList = new RangeList(), this.ranges = [], this.rangeCount = 0); }, this.getAllRanges = function() { return this.rangeCount ? this.rangeList.ranges.concat() : [ this.getRange() ]; }, this.splitIntoLines = function() { for(var ranges = this.ranges.length ? this.ranges : [ this.getRange() ], newRanges = [], i = 0; i < ranges.length; i++){ var range = ranges[i], row = range.start.row, endRow = range.end.row; if (row === endRow) newRanges.push(range.clone()); else { for(newRanges.push(new Range(row, range.start.column, row, this.session.getLine(row).length)); ++row < endRow;)newRanges.push(this.getLineRange(row, !0)); newRanges.push(new Range(endRow, 0, endRow, range.end.column)); } 0 != i || this.isBackwards() || (newRanges = newRanges.reverse()); } this.toSingleRange(); for(var i = newRanges.length; i--;)this.addRange(newRanges[i]); }, this.joinSelections = function() { var ranges = this.rangeList.ranges, lastRange = ranges[ranges.length - 1], range = Range.fromPoints(ranges[0].start, lastRange.end); this.toSingleRange(), this.setSelectionRange(range, lastRange.cursor == lastRange.start); }, this.toggleBlockSelection = function() { if (this.rangeCount > 1) { var ranges = this.rangeList.ranges, lastRange = ranges[ranges.length - 1], range = Range.fromPoints(ranges[0].start, lastRange.end); this.toSingleRange(), this.setSelectionRange(range, lastRange.cursor == lastRange.start); } else { var cursor = this.session.documentToScreenPosition(this.cursor), anchor = this.session.documentToScreenPosition(this.anchor); this.rectangularRangeBlock(cursor, anchor).forEach(this.addRange, this); } }, this.rectangularRangeBlock = function(screenCursor, screenAnchor, includeEmptyLines) { var docEnd, rectSel = [], xBackwards = screenCursor.column < screenAnchor.column; if (xBackwards) var startColumn = screenCursor.column, endColumn = screenAnchor.column, startOffsetX = screenCursor.offsetX, endOffsetX = screenAnchor.offsetX; else var startColumn = screenAnchor.column, endColumn = screenCursor.column, startOffsetX = screenAnchor.offsetX, endOffsetX = screenCursor.offsetX; var yBackwards = screenCursor.row < screenAnchor.row; if (yBackwards) var startRow = screenCursor.row, endRow = screenAnchor.row; else var startRow = screenAnchor.row, endRow = screenCursor.row; startColumn < 0 && (startColumn = 0), startRow < 0 && (startRow = 0), startRow == endRow && (includeEmptyLines = !0); for(var row = startRow; row <= endRow; row++){ var p1, p2, range = Range.fromPoints(this.session.screenToDocumentPosition(row, startColumn, startOffsetX), this.session.screenToDocumentPosition(row, endColumn, endOffsetX)); if (range.isEmpty()) { if (docEnd && (p1 = range.end, p2 = docEnd, p1.row == p2.row && p1.column == p2.column)) break; docEnd = range.end; } range.cursor = xBackwards ? range.start : range.end, rectSel.push(range); } if (yBackwards && rectSel.reverse(), !includeEmptyLines) { for(var end = rectSel.length - 1; rectSel[end].isEmpty() && end > 0;)end--; if (end > 0) for(var start = 0; rectSel[start].isEmpty();)start++; for(var i = end; i >= start; i--)rectSel[i].isEmpty() && rectSel.splice(i, 1); } return rectSel; }; }).call(Selection.prototype); var Editor = require("./editor").Editor; function MultiSelect(editor) { editor.$multiselectOnSessionChange || (editor.$onAddRange = editor.$onAddRange.bind(editor), editor.$onRemoveRange = editor.$onRemoveRange.bind(editor), editor.$onMultiSelect = editor.$onMultiSelect.bind(editor), editor.$onSingleSelect = editor.$onSingleSelect.bind(editor), editor.$multiselectOnSessionChange = exports.onSessionChange.bind(editor), editor.$checkMultiselectChange = editor.$checkMultiselectChange.bind(editor), editor.$multiselectOnSessionChange(editor), editor.on("changeSession", editor.$multiselectOnSessionChange), editor.on("mousedown", onMouseDown), editor.commands.addCommands(commands.defaultCommands), function(editor) { if (editor.textInput) { var el = editor.textInput.getElement(), altCursor = !1; event.addListener(el, "keydown", function(e) { var altDown = 18 == e.keyCode && !(e.ctrlKey || e.shiftKey || e.metaKey); editor.$blockSelectEnabled && altDown ? altCursor || (editor.renderer.setMouseCursor("crosshair"), altCursor = !0) : altCursor && reset(); }, editor), event.addListener(el, "keyup", reset, editor), event.addListener(el, "blur", reset, editor); } function reset(e) { altCursor && (editor.renderer.setMouseCursor(""), altCursor = !1); } }(editor)); } (function() { this.updateSelectionMarkers = function() { this.renderer.updateCursor(), this.renderer.updateBackMarkers(); }, this.addSelectionMarker = function(orientedRange) { orientedRange.cursor || (orientedRange.cursor = orientedRange.end); var style = this.getSelectionStyle(); return orientedRange.marker = this.session.addMarker(orientedRange, "ace_selection", style), this.session.$selectionMarkers.push(orientedRange), this.session.selectionMarkerCount = this.session.$selectionMarkers.length, orientedRange; }, this.removeSelectionMarker = function(range) { if (range.marker) { this.session.removeMarker(range.marker); var index = this.session.$selectionMarkers.indexOf(range); -1 != index && this.session.$selectionMarkers.splice(index, 1), this.session.selectionMarkerCount = this.session.$selectionMarkers.length; } }, this.removeSelectionMarkers = function(ranges) { for(var markerList = this.session.$selectionMarkers, i = ranges.length; i--;){ var range = ranges[i]; if (range.marker) { this.session.removeMarker(range.marker); var index = markerList.indexOf(range); -1 != index && markerList.splice(index, 1); } } this.session.selectionMarkerCount = markerList.length; }, this.$onAddRange = function(e) { this.addSelectionMarker(e.range), this.renderer.updateCursor(), this.renderer.updateBackMarkers(); }, this.$onRemoveRange = function(e) { this.removeSelectionMarkers(e.ranges), this.renderer.updateCursor(), this.renderer.updateBackMarkers(); }, this.$onMultiSelect = function(e) { this.inMultiSelectMode || (this.inMultiSelectMode = !0, this.setStyle("ace_multiselect"), this.keyBinding.addKeyboardHandler(commands.keyboardHandler), this.commands.setDefaultHandler("exec", this.$onMultiSelectExec), this.renderer.updateCursor(), this.renderer.updateBackMarkers()); }, this.$onSingleSelect = function(e) { this.session.multiSelect.inVirtualMode || (this.inMultiSelectMode = !1, this.unsetStyle("ace_multiselect"), this.keyBinding.removeKeyboardHandler(commands.keyboardHandler), this.commands.removeDefaultHandler("exec", this.$onMultiSelectExec), this.renderer.updateCursor(), this.renderer.updateBackMarkers(), this._emit("changeSelection")); }, this.$onMultiSelectExec = function(e) { var command = e.command, editor = e.editor; if (editor.multiSelect) { if (command.multiSelectAction) "forEach" == command.multiSelectAction ? result = editor.forEachSelection(command, e.args) : "forEachLine" == command.multiSelectAction ? result = editor.forEachSelection(command, e.args, !0) : "single" == command.multiSelectAction ? (editor.exitMultiSelectMode(), result = command.exec(editor, e.args || {})) : result = command.multiSelectAction(editor, e.args || {}); else { var result = command.exec(editor, e.args || {}); editor.multiSelect.addRange(editor.multiSelect.toOrientedRange()), editor.multiSelect.mergeOverlappingRanges(); } return result; } }, this.forEachSelection = function(cmd, args, options) { if (!this.inVirtualSelectionMode) { var result, keepOrder = options && options.keepOrder, $byLines = !0 == options || options && options.$byLines, session = this.session, selection = this.selection, rangeList = selection.rangeList, ranges = (keepOrder ? selection : rangeList).ranges; if (!ranges.length) return cmd.exec ? cmd.exec(this, args || {}) : cmd(this, args || {}); var reg = selection._eventRegistry; selection._eventRegistry = {}; var tmpSel = new Selection(session); this.inVirtualSelectionMode = !0; for(var i = ranges.length; i--;){ if ($byLines) for(; i > 0 && ranges[i].start.row == ranges[i - 1].end.row;)i--; tmpSel.fromOrientedRange(ranges[i]), tmpSel.index = i, this.selection = session.selection = tmpSel; var cmdResult = cmd.exec ? cmd.exec(this, args || {}) : cmd(this, args || {}); result || void 0 === cmdResult || (result = cmdResult), tmpSel.toOrientedRange(ranges[i]); } tmpSel.detach(), this.selection = session.selection = selection, this.inVirtualSelectionMode = !1, selection._eventRegistry = reg, selection.mergeOverlappingRanges(), selection.ranges[0] && selection.fromOrientedRange(selection.ranges[0]); var anim = this.renderer.$scrollAnimation; return this.onCursorChange(), this.onSelectionChange(), anim && anim.from == anim.to && this.renderer.animateScrolling(anim.from), result; } }, this.exitMultiSelectMode = function() { this.inMultiSelectMode && !this.inVirtualSelectionMode && this.multiSelect.toSingleRange(); }, this.getSelectedText = function() { var text = ""; if (this.inMultiSelectMode && !this.inVirtualSelectionMode) { for(var ranges = this.multiSelect.rangeList.ranges, buf = [], i = 0; i < ranges.length; i++)buf.push(this.session.getTextRange(ranges[i])); var nl = this.session.getDocument().getNewLineCharacter(); (text = buf.join(nl)).length == (buf.length - 1) * nl.length && (text = ""); } else this.selection.isEmpty() || (text = this.session.getTextRange(this.getSelectionRange())); return text; }, this.$checkMultiselectChange = function(e, anchor) { if (this.inMultiSelectMode && !this.inVirtualSelectionMode) { var range = this.multiSelect.ranges[0]; if (!this.multiSelect.isEmpty() || anchor != this.multiSelect.anchor) { var pos = anchor == this.multiSelect.anchor ? range.cursor == range.start ? range.end : range.start : range.cursor; pos.row != anchor.row || this.session.$clipPositionToDocument(pos.row, pos.column).column != anchor.column ? this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()) : this.multiSelect.mergeOverlappingRanges(); } } }, this.findAll = function(needle, options, additive) { if ((options = options || {}).needle = needle || options.needle, void 0 == options.needle) { var range = this.selection.isEmpty() ? this.selection.getWordRange() : this.selection.getRange(); options.needle = this.session.getTextRange(range); } this.$search.set(options); var ranges = this.$search.findAll(this.session); if (!ranges.length) return 0; var selection = this.multiSelect; additive || selection.toSingleRange(ranges[0]); for(var i = ranges.length; i--;)selection.addRange(ranges[i], !0); return range && selection.rangeList.rangeAtPoint(range.start) && selection.addRange(range, !0), ranges.length; }, this.selectMoreLines = function(dir, skip) { var range = this.selection.toOrientedRange(), isBackwards = range.cursor == range.end, screenLead = this.session.documentToScreenPosition(range.cursor); this.selection.$desiredColumn && (screenLead.column = this.selection.$desiredColumn); var lead = this.session.screenToDocumentPosition(screenLead.row + dir, screenLead.column); if (range.isEmpty()) var anchor = lead; else var screenAnchor = this.session.documentToScreenPosition(isBackwards ? range.end : range.start), anchor = this.session.screenToDocumentPosition(screenAnchor.row + dir, screenAnchor.column); if (isBackwards) { var newRange = Range.fromPoints(lead, anchor); newRange.cursor = newRange.start; } else { var newRange = Range.fromPoints(anchor, lead); newRange.cursor = newRange.end; } if (newRange.desiredColumn = screenLead.column, this.selection.inMultiSelectMode) { if (skip) var toRemove = range.cursor; } else this.selection.addRange(range); this.selection.addRange(newRange), toRemove && this.selection.substractPoint(toRemove); }, this.transposeSelections = function(dir) { for(var session = this.session, sel = session.multiSelect, all = sel.ranges, i = all.length; i--;){ var range = all[i]; if (range.isEmpty()) { var tmp = session.getWordRange(range.start.row, range.start.column); range.start.row = tmp.start.row, range.start.column = tmp.start.column, range.end.row = tmp.end.row, range.end.column = tmp.end.column; } } sel.mergeOverlappingRanges(); for(var words = [], i = all.length; i--;){ var range = all[i]; words.unshift(session.getTextRange(range)); } dir < 0 ? words.unshift(words.pop()) : words.push(words.shift()); for(var i = all.length; i--;){ var range = all[i], tmp = range.clone(); session.replace(range, words[i]), range.start.row = tmp.start.row, range.start.column = tmp.start.column; } sel.fromOrientedRange(sel.ranges[0]); }, this.selectMore = function(dir, skip, stopAtFirst) { var session = this.session, range = session.multiSelect.toOrientedRange(); if (!range.isEmpty() || ((range = session.getWordRange(range.start.row, range.start.column)).cursor = -1 == dir ? range.start : range.end, this.multiSelect.addRange(range), !stopAtFirst)) { var needle = session.getTextRange(range), newRange = (search.$options.wrap = !0, search.$options.needle = needle, search.$options.backwards = -1 == dir, search.find(session)); newRange && (newRange.cursor = -1 == dir ? newRange.start : newRange.end, this.session.unfold(newRange), this.multiSelect.addRange(newRange), this.renderer.scrollCursorIntoView(null, 0.5)), skip && this.multiSelect.substractPoint(range.cursor); } }, this.alignCursors = function() { var session = this.session, sel = session.multiSelect, ranges = sel.ranges, row = -1, sameRowRanges = ranges.filter(function(r) { if (r.cursor.row == row) return !0; row = r.cursor.row; }); if (ranges.length && sameRowRanges.length != ranges.length - 1) { sameRowRanges.forEach(function(r) { sel.substractPoint(r.cursor); }); var maxCol = 0, minSpace = 1 / 0, spaceOffsets = ranges.map(function(r) { var p = r.cursor, spaceOffset = session.getLine(p.row).substr(p.column).search(/\S/g); return -1 == spaceOffset && (spaceOffset = 0), p.column > maxCol && (maxCol = p.column), spaceOffset < minSpace && (minSpace = spaceOffset), spaceOffset; }); ranges.forEach(function(r, i) { var p = r.cursor, l = maxCol - p.column, d = spaceOffsets[i] - minSpace; l > d ? session.insert(p, lang.stringRepeat(" ", l - d)) : session.remove(new Range(p.row, p.column, p.row, p.column - l + d)), r.start.column = r.end.column = maxCol, r.start.row = r.end.row = p.row, r.cursor = r.end; }), sel.fromOrientedRange(ranges[0]), this.renderer.updateCursor(), this.renderer.updateBackMarkers(); } else { var range = this.selection.getRange(), fr = range.start.row, lr = range.end.row, guessRange = fr == lr; if (guessRange) { var line, max = this.session.getLength(); do line = this.session.getLine(lr); while (/[=:]/.test(line) && ++lr < max) do line = this.session.getLine(fr); while (/[=:]/.test(line) && --fr > 0) fr < 0 && (fr = 0), lr >= max && (lr = max - 1); } var lines = this.session.removeFullLines(fr, lr); lines = this.$reAlignText(lines, guessRange), this.session.insert({ row: fr, column: 0 }, lines.join("\n") + "\n"), guessRange || (range.start.column = 0, range.end.column = lines[lines.length - 1].length), this.selection.setRange(range); } }, this.$reAlignText = function(lines, forceLeft) { var startW, textW, endW, isLeftAligned = !0, isRightAligned = !0; return lines.map(function(line) { var m = line.match(/(\s*)(.*?)(\s*)([=:].*)/); return m ? (null == startW ? (startW = m[1].length, textW = m[2].length, endW = m[3].length) : (startW + textW + endW != m[1].length + m[2].length + m[3].length && (isRightAligned = !1), startW != m[1].length && (isLeftAligned = !1), startW > m[1].length && (startW = m[1].length), textW < m[2].length && (textW = m[2].length), endW > m[3].length && (endW = m[3].length)), m) : [ line ]; }).map(forceLeft ? alignLeft : isLeftAligned ? isRightAligned ? function(m) { return m[2] ? spaces(startW + textW - m[2].length) + m[2] + spaces(endW) + m[4].replace(/^([=:])\s+/, "$1 ") : m[0]; } : alignLeft : function(m) { return m[2] ? spaces(startW) + m[2] + spaces(endW) + m[4].replace(/^([=:])\s+/, "$1 ") : m[0]; }); function spaces(n) { return lang.stringRepeat(" ", n); } function alignLeft(m) { return m[2] ? spaces(startW) + m[2] + spaces(textW - m[2].length + endW) + m[4].replace(/^([=:])\s+/, "$1 ") : m[0]; } }; }).call(Editor.prototype), exports.onSessionChange = function(e) { var session = e.session; session && !session.multiSelect && (session.$selectionMarkers = [], session.selection.$initRangeList(), session.multiSelect = session.selection), this.multiSelect = session && session.multiSelect; var oldSession = e.oldSession; oldSession && (oldSession.multiSelect.off("addRange", this.$onAddRange), oldSession.multiSelect.off("removeRange", this.$onRemoveRange), oldSession.multiSelect.off("multiSelect", this.$onMultiSelect), oldSession.multiSelect.off("singleSelect", this.$onSingleSelect), oldSession.multiSelect.lead.off("change", this.$checkMultiselectChange), oldSession.multiSelect.anchor.off("change", this.$checkMultiselectChange)), session && (session.multiSelect.on("addRange", this.$onAddRange), session.multiSelect.on("removeRange", this.$onRemoveRange), session.multiSelect.on("multiSelect", this.$onMultiSelect), session.multiSelect.on("singleSelect", this.$onSingleSelect), session.multiSelect.lead.on("change", this.$checkMultiselectChange), session.multiSelect.anchor.on("change", this.$checkMultiselectChange)), session && this.inMultiSelectMode != session.selection.inMultiSelectMode && (session.selection.inMultiSelectMode ? this.$onMultiSelect() : this.$onSingleSelect()); }, exports.MultiSelect = MultiSelect, require("./config").defineOptions(Editor.prototype, "editor", { enableMultiselect: { set: function(val) { MultiSelect(this), val ? (this.on("changeSession", this.$multiselectOnSessionChange), this.on("mousedown", onMouseDown)) : (this.off("changeSession", this.$multiselectOnSessionChange), this.off("mousedown", onMouseDown)); }, value: !0 }, enableBlockSelect: { set: function(val) { this.$blockSelectEnabled = val; }, value: !0 } }); }), ace.define("ace/mode/folding/fold_mode", [ "require", "exports", "module", "ace/range" ], function(require, exports, module) { "use strict"; var Range = require("../../range").Range; (function() { this.foldingStartMarker = null, this.foldingStopMarker = null, this.getFoldWidget = function(session, foldStyle, row) { var line = session.getLine(row); return this.foldingStartMarker.test(line) ? "start" : "markbeginend" == foldStyle && this.foldingStopMarker && this.foldingStopMarker.test(line) ? "end" : ""; }, this.getFoldWidgetRange = function(session, foldStyle, row) { return null; }, this.indentationBlock = function(session, row, column) { var re = /\S/, line = session.getLine(row), startLevel = line.search(re); if (-1 != startLevel) { for(var startColumn = column || line.length, maxRow = session.getLength(), startRow = row, endRow = row; ++row < maxRow;){ var level = session.getLine(row).search(re); if (-1 != level) { if (level <= startLevel) { var token = session.getTokenAt(row, 0); if (!token || "string" !== token.type) break; } endRow = row; } } if (endRow > startRow) { var endColumn = session.getLine(endRow).length; return new Range(startRow, startColumn, endRow, endColumn); } } }, this.openingBracketBlock = function(session, bracket, row, column, typeRe) { var start = { row: row, column: column + 1 }, end = session.$findClosingBracket(bracket, start, typeRe); if (end) { var fw = session.foldWidgets[end.row]; return null == fw && (fw = session.getFoldWidget(end.row)), "start" == fw && end.row > start.row && (end.row--, end.column = session.getLine(end.row).length), Range.fromPoints(start, end); } }, this.closingBracketBlock = function(session, bracket, row, column, typeRe) { var end = { row: row, column: column }, start = session.$findOpeningBracket(bracket, end); if (start) return start.column++, end.column--, Range.fromPoints(start, end); }; }).call((exports.FoldMode = function() {}).prototype); }), ace.define("ace/theme/textmate", [ "require", "exports", "module", "ace/lib/dom" ], function(require, exports, module) { "use strict"; exports.isDark = !1, exports.cssClass = "ace-tm", exports.cssText = '.ace-tm .ace_gutter {\ background: #f0f0f0;\ color: #333;\ }\ .ace-tm .ace_print-margin {\ width: 1px;\ background: #e8e8e8;\ }\ .ace-tm .ace_fold {\ background-color: #6B72E6;\ }\ .ace-tm {\ background-color: #FFFFFF;\ color: black;\ }\ .ace-tm .ace_cursor {\ color: black;\ }\ .ace-tm .ace_invisible {\ color: rgb(191, 191, 191);\ }\ .ace-tm .ace_storage,\ .ace-tm .ace_keyword {\ color: blue;\ }\ .ace-tm .ace_constant {\ color: rgb(197, 6, 11);\ }\ .ace-tm .ace_constant.ace_buildin {\ color: rgb(88, 72, 246);\ }\ .ace-tm .ace_constant.ace_language {\ color: rgb(88, 92, 246);\ }\ .ace-tm .ace_constant.ace_library {\ color: rgb(6, 150, 14);\ }\ .ace-tm .ace_invalid {\ background-color: rgba(255, 0, 0, 0.1);\ color: red;\ }\ .ace-tm .ace_support.ace_function {\ color: rgb(60, 76, 114);\ }\ .ace-tm .ace_support.ace_constant {\ color: rgb(6, 150, 14);\ }\ .ace-tm .ace_support.ace_type,\ .ace-tm .ace_support.ace_class {\ color: rgb(109, 121, 222);\ }\ .ace-tm .ace_keyword.ace_operator {\ color: rgb(104, 118, 135);\ }\ .ace-tm .ace_string {\ color: rgb(3, 106, 7);\ }\ .ace-tm .ace_comment {\ color: rgb(76, 136, 107);\ }\ .ace-tm .ace_comment.ace_doc {\ color: rgb(0, 102, 255);\ }\ .ace-tm .ace_comment.ace_doc.ace_tag {\ color: rgb(128, 159, 191);\ }\ .ace-tm .ace_constant.ace_numeric {\ color: rgb(0, 0, 205);\ }\ .ace-tm .ace_variable {\ color: rgb(49, 132, 149);\ }\ .ace-tm .ace_xml-pe {\ color: rgb(104, 104, 91);\ }\ .ace-tm .ace_entity.ace_name.ace_function {\ color: #0000A2;\ }\ .ace-tm .ace_heading {\ color: rgb(12, 7, 255);\ }\ .ace-tm .ace_list {\ color:rgb(185, 6, 144);\ }\ .ace-tm .ace_meta.ace_tag {\ color:rgb(0, 22, 142);\ }\ .ace-tm .ace_string.ace_regex {\ color: rgb(255, 0, 0)\ }\ .ace-tm .ace_marker-layer .ace_selection {\ background: rgb(181, 213, 255);\ }\ .ace-tm.ace_multiselect .ace_selection.ace_start {\ box-shadow: 0 0 3px 0px white;\ }\ .ace-tm .ace_marker-layer .ace_step {\ background: rgb(252, 255, 0);\ }\ .ace-tm .ace_marker-layer .ace_stack {\ background: rgb(164, 229, 101);\ }\ .ace-tm .ace_marker-layer .ace_bracket {\ margin: -1px 0 0 -1px;\ border: 1px solid rgb(192, 192, 192);\ }\ .ace-tm .ace_marker-layer .ace_active-line {\ background: rgba(0, 0, 0, 0.07);\ }\ .ace-tm .ace_gutter-active-line {\ background-color : #dcdcdc;\ }\ .ace-tm .ace_marker-layer .ace_selected-word {\ background: rgb(250, 250, 255);\ border: 1px solid rgb(200, 200, 250);\ }\ .ace-tm .ace_indent-guide {\ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\ }\ ', exports.$id = "ace/theme/textmate", require("../lib/dom").importCssString(exports.cssText, exports.cssClass, !1); }), ace.define("ace/line_widgets", [ "require", "exports", "module", "ace/lib/dom" ], function(require, exports, module) { "use strict"; var dom = require("./lib/dom"); function LineWidgets(session) { this.session = session, this.session.widgetManager = this, this.session.getRowLength = this.getRowLength, this.session.$getWidgetScreenLength = this.$getWidgetScreenLength, this.updateOnChange = this.updateOnChange.bind(this), this.renderWidgets = this.renderWidgets.bind(this), this.measureWidgets = this.measureWidgets.bind(this), this.session._changedWidgets = [], this.$onChangeEditor = this.$onChangeEditor.bind(this), this.session.on("change", this.updateOnChange), this.session.on("changeFold", this.updateOnFold), this.session.on("changeEditor", this.$onChangeEditor); } (function() { this.getRowLength = function(row) { var h; return (h = this.lineWidgets && this.lineWidgets[row] && this.lineWidgets[row].rowCount || 0, this.$useWrapMode && this.$wrapData[row]) ? this.$wrapData[row].length + 1 + h : 1 + h; }, this.$getWidgetScreenLength = function() { var screenRows = 0; return this.lineWidgets.forEach(function(w) { w && w.rowCount && !w.hidden && (screenRows += w.rowCount); }), screenRows; }, this.$onChangeEditor = function(e) { this.attach(e.editor); }, this.attach = function(editor) { editor && editor.widgetManager && editor.widgetManager != this && editor.widgetManager.detach(), this.editor != editor && (this.detach(), this.editor = editor, editor && (editor.widgetManager = this, editor.renderer.on("beforeRender", this.measureWidgets), editor.renderer.on("afterRender", this.renderWidgets))); }, this.detach = function(e) { var editor = this.editor; if (editor) { this.editor = null, editor.widgetManager = null, editor.renderer.off("beforeRender", this.measureWidgets), editor.renderer.off("afterRender", this.renderWidgets); var lineWidgets = this.session.lineWidgets; lineWidgets && lineWidgets.forEach(function(w) { w && w.el && w.el.parentNode && (w._inDocument = !1, w.el.parentNode.removeChild(w.el)); }); } }, this.updateOnFold = function(e, session) { var lineWidgets = session.lineWidgets; if (lineWidgets && e.action) { for(var fold = e.data, start = fold.start.row, end = fold.end.row, hide = "add" == e.action, i = start + 1; i < end; i++)lineWidgets[i] && (lineWidgets[i].hidden = hide); lineWidgets[end] && (hide ? lineWidgets[start] ? lineWidgets[end].hidden = hide : lineWidgets[start] = lineWidgets[end] : (lineWidgets[start] == lineWidgets[end] && (lineWidgets[start] = void 0), lineWidgets[end].hidden = hide)); } }, this.updateOnChange = function(delta) { var lineWidgets = this.session.lineWidgets; if (lineWidgets) { var startRow = delta.start.row, len = delta.end.row - startRow; if (0 === len) ; else if ("remove" == delta.action) { var removed = lineWidgets.splice(startRow + 1, len); !lineWidgets[startRow] && removed[removed.length - 1] && (lineWidgets[startRow] = removed.pop()), removed.forEach(function(w) { w && this.removeLineWidget(w); }, this), this.$updateRows(); } else { var args = Array(len); lineWidgets[startRow] && null != lineWidgets[startRow].column && delta.start.column > lineWidgets[startRow].column && startRow++, args.unshift(startRow, 0), lineWidgets.splice.apply(lineWidgets, args), this.$updateRows(); } } }, this.$updateRows = function() { var lineWidgets = this.session.lineWidgets; if (lineWidgets) { var noWidgets = !0; lineWidgets.forEach(function(w, i) { if (w) for(noWidgets = !1, w.row = i; w.$oldWidget;)w.$oldWidget.row = i, w = w.$oldWidget; }), noWidgets && (this.session.lineWidgets = null); } }, this.$registerLineWidget = function(w) { this.session.lineWidgets || (this.session.lineWidgets = Array(this.session.getLength())); var old = this.session.lineWidgets[w.row]; return old && (w.$oldWidget = old, old.el && old.el.parentNode && (old.el.parentNode.removeChild(old.el), old._inDocument = !1)), this.session.lineWidgets[w.row] = w, w; }, this.addLineWidget = function(w) { if (this.$registerLineWidget(w), w.session = this.session, !this.editor) return w; var renderer = this.editor.renderer; w.html && !w.el && (w.el = dom.createElement("div"), w.el.innerHTML = w.html), w.el && (dom.addCssClass(w.el, "ace_lineWidgetContainer"), w.el.style.position = "absolute", w.el.style.zIndex = 5, renderer.container.appendChild(w.el), w._inDocument = !0, w.coverGutter || (w.el.style.zIndex = 3), null == w.pixelHeight && (w.pixelHeight = w.el.offsetHeight)), null == w.rowCount && (w.rowCount = w.pixelHeight / renderer.layerConfig.lineHeight); var fold = this.session.getFoldAt(w.row, 0); if (w.$fold = fold, fold) { var lineWidgets = this.session.lineWidgets; w.row != fold.end.row || lineWidgets[fold.start.row] ? w.hidden = !0 : lineWidgets[fold.start.row] = w; } return this.session._emit("changeFold", { data: { start: { row: w.row } } }), this.$updateRows(), this.renderWidgets(null, renderer), this.onWidgetChanged(w), w; }, this.removeLineWidget = function(w) { if (w._inDocument = !1, w.session = null, w.el && w.el.parentNode && w.el.parentNode.removeChild(w.el), w.editor && w.editor.destroy) try { w.editor.destroy(); } catch (e) {} if (this.session.lineWidgets) { var w1 = this.session.lineWidgets[w.row]; if (w1 == w) this.session.lineWidgets[w.row] = w.$oldWidget, w.$oldWidget && this.onWidgetChanged(w.$oldWidget); else for(; w1;){ if (w1.$oldWidget == w) { w1.$oldWidget = w.$oldWidget; break; } w1 = w1.$oldWidget; } } this.session._emit("changeFold", { data: { start: { row: w.row } } }), this.$updateRows(); }, this.getWidgetsAtRow = function(row) { for(var lineWidgets = this.session.lineWidgets, w = lineWidgets && lineWidgets[row], list = []; w;)list.push(w), w = w.$oldWidget; return list; }, this.onWidgetChanged = function(w) { this.session._changedWidgets.push(w), this.editor && this.editor.renderer.updateFull(); }, this.measureWidgets = function(e, renderer) { var changedWidgets = this.session._changedWidgets, config = renderer.layerConfig; if (changedWidgets && changedWidgets.length) { for(var min = 1 / 0, i = 0; i < changedWidgets.length; i++){ var w = changedWidgets[i]; if (w && w.el && w.session == this.session) { if (!w._inDocument) { if (this.session.lineWidgets[w.row] != w) continue; w._inDocument = !0, renderer.container.appendChild(w.el); } w.h = w.el.offsetHeight, w.fixedWidth || (w.w = w.el.offsetWidth, w.screenWidth = Math.ceil(w.w / config.characterWidth)); var rowCount = w.h / config.lineHeight; w.coverLine && (rowCount -= this.session.getRowLineCount(w.row)) < 0 && (rowCount = 0), w.rowCount != rowCount && (w.rowCount = rowCount, w.row < min && (min = w.row)); } } min != 1 / 0 && (this.session._emit("changeFold", { data: { start: { row: min } } }), this.session.lineWidgetWidth = null), this.session._changedWidgets = []; } }, this.renderWidgets = function(e, renderer) { var config = renderer.layerConfig, lineWidgets = this.session.lineWidgets; if (lineWidgets) { for(var first = Math.min(this.firstRow, config.firstRow), last = Math.max(this.lastRow, config.lastRow, lineWidgets.length); first > 0 && !lineWidgets[first];)first--; this.firstRow = config.firstRow, this.lastRow = config.lastRow, renderer.$cursorLayer.config = config; for(var i = first; i <= last; i++){ var w = lineWidgets[i]; if (w && w.el) { if (w.hidden) { w.el.style.top = -100 - (w.pixelHeight || 0) + "px"; continue; } w._inDocument || (w._inDocument = !0, renderer.container.appendChild(w.el)); var top = renderer.$cursorLayer.getPixelPosition({ row: i, column: 0 }, !0).top; w.coverLine || (top += config.lineHeight * this.session.getRowLineCount(w.row)), w.el.style.top = top - config.offset + "px"; var left = w.coverGutter ? 0 : renderer.gutterWidth; w.fixedWidth || (left -= renderer.scrollLeft), w.el.style.left = left + "px", w.fullWidth && w.screenWidth && (w.el.style.minWidth = config.width + 2 * config.padding + "px"), w.fixedWidth ? w.el.style.right = renderer.scrollBar.getWidth() + "px" : w.el.style.right = ""; } } } }; }).call(LineWidgets.prototype), exports.LineWidgets = LineWidgets; }), ace.define("ace/ext/error_marker", [ "require", "exports", "module", "ace/line_widgets", "ace/lib/dom", "ace/range" ], function(require, exports, module) { "use strict"; var LineWidgets = require("../line_widgets").LineWidgets, dom = require("../lib/dom"), Range = require("../range").Range; exports.showErrorMarker = function(editor, dir) { var gutterAnno, session = editor.session; session.widgetManager || (session.widgetManager = new LineWidgets(session), session.widgetManager.attach(editor)); var pos = editor.getCursorPosition(), row = pos.row, oldWidget = session.widgetManager.getWidgetsAtRow(row).filter(function(w) { return "errorMarker" == w.type; })[0]; oldWidget ? oldWidget.destroy() : row -= dir; var annotations = function(session, row, dir) { var annotations = session.getAnnotations().sort(Range.comparePoints); if (annotations.length) { var i = function(array, needle, comparator) { for(var first = 0, last = array.length - 1; first <= last;){ var mid = first + last >> 1, c = comparator(needle, array[mid]); if (c > 0) first = mid + 1; else { if (!(c < 0)) return mid; last = mid - 1; } } return -(first + 1); }(annotations, { row: row, column: -1 }, Range.comparePoints); i < 0 && (i = -i - 1), i >= annotations.length ? i = dir > 0 ? 0 : annotations.length - 1 : 0 === i && dir < 0 && (i = annotations.length - 1); var annotation = annotations[i]; if (annotation && dir) { if (annotation.row === row) { do annotation = annotations[i += dir]; while (annotation && annotation.row === row) if (!annotation) return annotations.slice(); } var matched = []; row = annotation.row; do matched[dir < 0 ? "unshift" : "push"](annotation), annotation = annotations[i += dir]; while (annotation && annotation.row == row) return matched.length && matched; } } }(session, row, dir); if (annotations) { var annotation = annotations[0]; pos.column = (annotation.pos && "number" != typeof annotation.column ? annotation.pos.sc : annotation.column) || 0, pos.row = annotation.row, gutterAnno = editor.renderer.$gutterLayer.$annotations[pos.row]; } else { if (oldWidget) return; gutterAnno = { text: [ "Looks good!" ], className: "ace_ok" }; } editor.session.unfold(pos.row), editor.selection.moveToPosition(pos); var w = { row: pos.row, fixedWidth: !0, coverGutter: !0, el: dom.createElement("div"), type: "errorMarker" }, el = w.el.appendChild(dom.createElement("div")), arrow = w.el.appendChild(dom.createElement("div")); arrow.className = "error_widget_arrow " + gutterAnno.className; var left = editor.renderer.$cursorLayer.getPixelPosition(pos).left; arrow.style.left = left + editor.renderer.gutterWidth - 5 + "px", w.el.className = "error_widget_wrapper", el.className = "error_widget " + gutterAnno.className, el.innerHTML = gutterAnno.text.join("<br>"), el.appendChild(dom.createElement("div")); var kb = function(_, hashId, keyString) { if (0 === hashId && ("esc" === keyString || "return" === keyString)) return w.destroy(), { command: "null" }; }; w.destroy = function() { editor.$mouseHandler.isMousePressed || (editor.keyBinding.removeKeyboardHandler(kb), session.widgetManager.removeLineWidget(w), editor.off("changeSelection", w.destroy), editor.off("changeSession", w.destroy), editor.off("mouseup", w.destroy), editor.off("change", w.destroy)); }, editor.keyBinding.addKeyboardHandler(kb), editor.on("changeSelection", w.destroy), editor.on("changeSession", w.destroy), editor.on("mouseup", w.destroy), editor.on("change", w.destroy), editor.session.widgetManager.addLineWidget(w), w.el.onmousedown = editor.focus.bind(editor), editor.renderer.scrollCursorIntoView(null, 0.5, { bottom: w.el.offsetHeight }); }, dom.importCssString("\ .error_widget_wrapper {\ background: inherit;\ color: inherit;\ border:none\ }\ .error_widget {\ border-top: solid 2px;\ border-bottom: solid 2px;\ margin: 5px 0;\ padding: 10px 40px;\ white-space: pre-wrap;\ }\ .error_widget.ace_error, .error_widget_arrow.ace_error{\ border-color: #ff5a5a\ }\ .error_widget.ace_warning, .error_widget_arrow.ace_warning{\ border-color: #F1D817\ }\ .error_widget.ace_info, .error_widget_arrow.ace_info{\ border-color: #5a5a5a\ }\ .error_widget.ace_ok, .error_widget_arrow.ace_ok{\ border-color: #5aaa5a\ }\ .error_widget_arrow {\ position: absolute;\ border: solid 5px;\ border-top-color: transparent!important;\ border-right-color: transparent!important;\ border-left-color: transparent!important;\ top: -5px;\ }\ ", "error_marker.css", !1); }), ace.define("ace/ace", [ "require", "exports", "module", "ace/lib/fixoldbrowsers", "ace/lib/dom", "ace/lib/event", "ace/range", "ace/editor", "ace/edit_session", "ace/undomanager", "ace/virtual_renderer", "ace/worker/worker_client", "ace/keyboard/hash_handler", "ace/placeholder", "ace/multi_select", "ace/mode/folding/fold_mode", "ace/theme/textmate", "ace/ext/error_marker", "ace/config" ], function(require, exports, module) { "use strict"; require("./lib/fixoldbrowsers"); var dom = require("./lib/dom"), event = require("./lib/event"), Range = require("./range").Range, Editor = require("./editor").Editor, EditSession = require("./edit_session").EditSession, UndoManager = require("./undomanager").UndoManager, Renderer = require("./virtual_renderer").VirtualRenderer; require("./worker/worker_client"), require("./keyboard/hash_handler"), require("./placeholder"), require("./multi_select"), require("./mode/folding/fold_mode"), require("./theme/textmate"), require("./ext/error_marker"), exports.config = require("./config"), exports.require = require, exports.define = __webpack_require__.amdD, exports.edit = function(el, options) { if ("string" == typeof el) { var _id = el; if (!(el = document.getElementById(_id))) throw Error("ace.edit can't find div #" + _id); } if (el && el.env && el.env.editor instanceof Editor) return el.env.editor; var value = ""; if (el && /input|textarea/i.test(el.tagName)) { var oldNode = el; value = oldNode.value, el = dom.createElement("pre"), oldNode.parentNode.replaceChild(el, oldNode); } else el && (value = el.textContent, el.innerHTML = ""); var doc = exports.createEditSession(value), editor = new Editor(new Renderer(el), doc, options), env = { document: doc, editor: editor, onResize: editor.resize.bind(editor, null) }; return oldNode && (env.textarea = oldNode), event.addListener(window, "resize", env.onResize), editor.on("destroy", function() { event.removeListener(window, "resize", env.onResize), env.editor.container.env = null; }), editor.container.env = editor.env = env, editor; }, exports.createEditSession = function(text, mode) { var doc = new EditSession(text, mode); return doc.setUndoManager(new UndoManager()), doc; }, exports.Range = Range, exports.Editor = Editor, exports.EditSession = EditSession, exports.UndoManager = UndoManager, exports.VirtualRenderer = Renderer, exports.version = exports.config.version; }), ace.require([ "ace/ace" ], function(a) { for(var key in a && (a.config.init(!0), a.define = ace.define), window.ace || (window.ace = a), a)a.hasOwnProperty(key) && (window.ace[key] = a[key]); window.ace.default = window.ace, module && (module.exports = window.ace); }); /***/ } } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/react-chartjs/input.js
JavaScript
var _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__ = globalThis._chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__ || {} export function generateTicks$1(generationOptions, dataRange) { const ticks = []; const MIN_SPACING = 1e-14; const { bounds, step, min, max, precision, count, maxTicks, maxDigits, includeBounds } = generationOptions; const unit = step || 1; const maxSpaces = maxTicks - 1; const { min: rmin, max: rmax } = dataRange; const minDefined = !(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(min); const maxDefined = !(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(max); const countDefined = !(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(count); const minSpacing = (rmax - rmin) / (maxDigits + 1); let spacing = (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aI)((rmax - rmin) / maxSpaces / unit) * unit; let factor, niceMin, niceMax, numSpaces; if (spacing < MIN_SPACING && !minDefined && !maxDefined) { return [{ value: rmin }, { value: rmax }]; } numSpaces = Math.ceil(rmax / spacing) - Math.floor(rmin / spacing); if (numSpaces > maxSpaces) { spacing = (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aI)(numSpaces * spacing / maxSpaces / unit) * unit; } if (!(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(precision)) { factor = Math.pow(10, precision); spacing = Math.ceil(spacing * factor) / factor; } if (bounds === 'ticks') { niceMin = Math.floor(rmin / spacing) * spacing; niceMax = Math.ceil(rmax / spacing) * spacing; } else { niceMin = rmin; niceMax = rmax; } if (minDefined && maxDefined && step && (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aJ)((max - min) / step, spacing / 1000)) { numSpaces = Math.round(Math.min((max - min) / spacing, maxTicks)); spacing = (max - min) / numSpaces; niceMin = min; niceMax = max; } else if (countDefined) { niceMin = minDefined ? min : niceMin; niceMax = maxDefined ? max : niceMax; numSpaces = count - 1; spacing = (niceMax - niceMin) / numSpaces; } else { numSpaces = (niceMax - niceMin) / spacing; if ((0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aK)(numSpaces, Math.round(numSpaces), spacing / 1000)) { numSpaces = Math.round(numSpaces); } else { numSpaces = Math.ceil(numSpaces); } } const decimalPlaces = Math.max( (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aL)(spacing), (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aL)(niceMin) ); factor = Math.pow(10, (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(precision) ? decimalPlaces : precision); niceMin = Math.round(niceMin * factor) / factor; niceMax = Math.round(niceMax * factor) / factor; let j = 0; if (minDefined) { if (includeBounds && niceMin !== min) { ticks.push({ value: min }); if (niceMin < min) { j++; } if ((0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aK)(Math.round((niceMin + j * spacing) * factor) / factor, min, relativeLabelSize(min, minSpacing, generationOptions))) { j++; } } else if (niceMin < min) { j++; } } for (; j < numSpaces; ++j) { ticks.push({ value: Math.round((niceMin + j * spacing) * factor) / factor }); } if (maxDefined && includeBounds && niceMax !== max) { if (ticks.length && (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aK)(ticks[ticks.length - 1].value, max, relativeLabelSize(max, minSpacing, generationOptions))) { ticks[ticks.length - 1].value = max; } else { ticks.push({ value: max }); } } else if (!maxDefined || niceMax === max) { ticks.push({ value: niceMax }); } return ticks; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/react-chartjs/output.js
JavaScript
var _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__ = globalThis._chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__ || {}; export function generateTicks$1(generationOptions, dataRange) { let factor, niceMin, niceMax, numSpaces; const ticks = []; const { bounds, step, min, max, precision, count, maxTicks, maxDigits, includeBounds } = generationOptions; const unit = step || 1; const maxSpaces = maxTicks - 1; const { min: rmin, max: rmax } = dataRange; const minDefined = !(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(min); const maxDefined = !(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(max); const countDefined = !(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(count); const minSpacing = (rmax - rmin) / (maxDigits + 1); let spacing = (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aI)((rmax - rmin) / maxSpaces / unit) * unit; if (spacing < 1e-14 && !minDefined && !maxDefined) { return [ { value: rmin }, { value: rmax } ]; } numSpaces = Math.ceil(rmax / spacing) - Math.floor(rmin / spacing); if (numSpaces > maxSpaces) spacing = (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aI)(numSpaces * spacing / maxSpaces / unit) * unit; if (!(0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(precision)) spacing = Math.ceil(spacing * (factor = Math.pow(10, precision))) / factor; if ('ticks' === bounds) { niceMin = Math.floor(rmin / spacing) * spacing; niceMax = Math.ceil(rmax / spacing) * spacing; } else { niceMin = rmin; niceMax = rmax; } if (minDefined && maxDefined && step && (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aJ)((max - min) / step, spacing / 1000)) { numSpaces = Math.round(Math.min((max - min) / spacing, maxTicks)); spacing = (max - min) / numSpaces; niceMin = min; niceMax = max; } else if (countDefined) { niceMin = minDefined ? min : niceMin; spacing = ((niceMax = maxDefined ? max : niceMax) - niceMin) / (numSpaces = count - 1); } else { numSpaces = (niceMax - niceMin) / spacing; numSpaces = (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aK)(numSpaces, Math.round(numSpaces), spacing / 1000) ? Math.round(numSpaces) : Math.ceil(numSpaces); } const decimalPlaces = Math.max((0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aL)(spacing), (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aL)(niceMin)); niceMin = Math.round(niceMin * (factor = Math.pow(10, (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.k)(precision) ? decimalPlaces : precision))) / factor; niceMax = Math.round(niceMax * factor) / factor; let j = 0; if (minDefined) { if (includeBounds && niceMin !== min) { ticks.push({ value: min }); if (niceMin < min) j++; if ((0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aK)(Math.round((niceMin + j * spacing) * factor) / factor, min, relativeLabelSize(min, minSpacing, generationOptions))) j++; } else if (niceMin < min) j++; } for(; j < numSpaces; ++j)ticks.push({ value: Math.round((niceMin + j * spacing) * factor) / factor }); if (maxDefined && includeBounds && niceMax !== max) if (ticks.length && (0, _chunks_helpers_segment_mjs__WEBPACK_IMPORTED_MODULE_0__.aK)(ticks[ticks.length - 1].value, max, relativeLabelSize(max, minSpacing, generationOptions))) ticks[ticks.length - 1].value = max; else ticks.push({ value: max }); else if (!maxDefined || niceMax === max) ticks.push({ value: niceMax }); return ticks; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/input.js
JavaScript
"use strict"; (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ [774], { /***/ 2967: /***/ function ( __unused_webpack_module, exports, __webpack_require__ ) { /** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* Modernizr 3.0.0pre (Custom Build) | MIT */ var aa = __webpack_require__(2784), ba = __webpack_require__(2941); function p(a) { for ( var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++ ) b += "&args[]=" + encodeURIComponent(arguments[c]); return ( "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } var da = new Set(), ea = {}; function fa(a, b) { ha(a, b); ha(a + "Capture", b); } function ha(a, b) { ea[a] = b; for (a = 0; a < b.length; a++) da.add(b[a]); } var ia = !( "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ), ja = Object.prototype.hasOwnProperty, ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {}; function na(a) { if (ja.call(ma, a)) return !0; if (ja.call(la, a)) return !1; if (ka.test(a)) return (ma[a] = !0); la[a] = !0; return !1; } function oa(a, b, c, d) { if (null !== c && 0 === c.type) return !1; switch (typeof b) { case "function": case "symbol": return !0; case "boolean": if (d) return !1; if (null !== c) return !c.acceptsBooleans; a = a.toLowerCase().slice(0, 5); return "data-" !== a && "aria-" !== a; default: return !1; } } function pa(a, b, c, d) { if (null === b || "undefined" === typeof b || oa(a, b, c, d)) return !0; if (d) return !1; if (null !== c) switch (c.type) { case 3: return !b; case 4: return !1 === b; case 5: return isNaN(b); case 6: return isNaN(b) || 1 > b; } return !1; } function t(a, b, c, d, e, f, g) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b; this.attributeName = d; this.attributeNamespace = e; this.mustUseProperty = c; this.propertyName = a; this.type = b; this.sanitizeURL = f; this.removeEmptyString = g; } var z = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style" .split(" ") .forEach(function (a) { z[a] = new t(a, 0, !1, a, null, !1, !1); }); [ ["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"], ].forEach(function (a) { var b = a[0]; z[b] = new t(b, 1, !1, a[1], null, !1, !1); }); ["contentEditable", "draggable", "spellCheck", "value"].forEach( function (a) { z[a] = new t(a, 2, !1, a.toLowerCase(), null, !1, !1); } ); [ "autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha", ].forEach(function (a) { z[a] = new t(a, 2, !1, a, null, !1, !1); }); "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope" .split(" ") .forEach(function (a) { z[a] = new t(a, 3, !1, a.toLowerCase(), null, !1, !1); }); ["checked", "multiple", "muted", "selected"].forEach(function (a) { z[a] = new t(a, 3, !0, a, null, !1, !1); }); ["capture", "download"].forEach(function (a) { z[a] = new t(a, 4, !1, a, null, !1, !1); }); ["cols", "rows", "size", "span"].forEach(function (a) { z[a] = new t(a, 6, !1, a, null, !1, !1); }); ["rowSpan", "start"].forEach(function (a) { z[a] = new t(a, 5, !1, a.toLowerCase(), null, !1, !1); }); var qa = /[\-:]([a-z])/g; function ra(a) { return a[1].toUpperCase(); } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height" .split(" ") .forEach(function (a) { var b = a.replace(qa, ra); z[b] = new t(b, 1, !1, a, null, !1, !1); }); "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type" .split(" ") .forEach(function (a) { var b = a.replace(qa, ra); z[b] = new t( b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1 ); }); ["xml:base", "xml:lang", "xml:space"].forEach(function (a) { var b = a.replace(qa, ra); z[b] = new t( b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1 ); }); ["tabIndex", "crossOrigin"].forEach(function (a) { z[a] = new t(a, 1, !1, a.toLowerCase(), null, !1, !1); }); z.xlinkHref = new t( "xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1 ); ["src", "href", "action", "formAction"].forEach(function (a) { z[a] = new t(a, 1, !1, a.toLowerCase(), null, !0, !0); }); function sa(a, b, c, d) { var e = z.hasOwnProperty(b) ? z[b] : null; if ( null !== e ? 0 !== e.type : d || !(2 < b.length) || ("o" !== b[0] && "O" !== b[0]) || ("n" !== b[1] && "N" !== b[1]) ) pa(b, c, e, d) && (c = null), d || null === e ? na(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? (a[e.propertyName] = null === c ? (3 === e.type ? !1 : "") : c) : ((b = e.attributeName), (d = e.attributeNamespace), null === c ? a.removeAttribute(b) : ((e = e.type), (c = 3 === e || (4 === e && !0 === c) ? "" : "" + c), d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))); } var ta = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ua = Symbol.for("react.element"), va = Symbol.for("react.portal"), wa = Symbol.for("react.fragment"), xa = Symbol.for("react.strict_mode"), za = Symbol.for("react.profiler"), Aa = Symbol.for("react.provider"), Ba = Symbol.for("react.context"), Ca = Symbol.for("react.forward_ref"), Da = Symbol.for("react.suspense"), Ea = Symbol.for("react.suspense_list"), Fa = Symbol.for("react.memo"), Ga = Symbol.for("react.lazy"); Symbol.for("react.scope"); Symbol.for("react.debug_trace_mode"); var Ha = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"); Symbol.for("react.cache"); Symbol.for("react.tracing_marker"); var Ia = Symbol.iterator; function Ja(a) { if (null === a || "object" !== typeof a) return null; a = (Ia && a[Ia]) || a["@@iterator"]; return "function" === typeof a ? a : null; } var A = Object.assign, Ka; function La(a) { if (void 0 === Ka) try { throw Error(); } catch (c) { var b = c.stack.trim().match(/\n( *(at )?)/); Ka = (b && b[1]) || ""; } return "\n" + Ka + a; } var Ma = !1; function Na(a, b) { if (!a || Ma) return ""; Ma = !0; var c = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { if (b) if ( ((b = function () { throw Error(); }), Object.defineProperty(b.prototype, "props", { set: function () { throw Error(); }, }), "object" === typeof Reflect && Reflect.construct) ) { try { Reflect.construct(b, []); } catch (l) { var d = l; } Reflect.construct(a, [], b); } else { try { b.call(); } catch (l) { d = l; } a.call(b.prototype); } else { try { throw Error(); } catch (l) { d = l; } a(); } } catch (l) { if (l && d && "string" === typeof l.stack) { for ( var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h]; ) h--; for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) { if (1 !== g || 1 !== h) { do if ( (g--, h--, 0 > h || e[g] !== f[h]) ) { var k = "\n" + e[g].replace( " at new ", " at " ); a.displayName && k.includes("<anonymous>") && (k = k.replace( "<anonymous>", a.displayName )); return k; } while (1 <= g && 0 <= h); } break; } } } finally { (Ma = !1), (Error.prepareStackTrace = c); } return (a = a ? a.displayName || a.name : "") ? La(a) : ""; } function Oa(a) { switch (a.tag) { case 5: return La(a.type); case 16: return La("Lazy"); case 13: return La("Suspense"); case 19: return La("SuspenseList"); case 0: case 2: case 15: return (a = Na(a.type, !1)), a; case 11: return (a = Na(a.type.render, !1)), a; case 1: return (a = Na(a.type, !0)), a; default: return ""; } } function Pa(a) { if (null == a) return null; if ("function" === typeof a) return a.displayName || a.name || null; if ("string" === typeof a) return a; switch (a) { case wa: return "Fragment"; case va: return "Portal"; case za: return "Profiler"; case xa: return "StrictMode"; case Da: return "Suspense"; case Ea: return "SuspenseList"; } if ("object" === typeof a) switch (a.$$typeof) { case Ba: return (a.displayName || "Context") + ".Consumer"; case Aa: return ( (a._context.displayName || "Context") + ".Provider" ); case Ca: var b = a.render; a = a.displayName; a || ((a = b.displayName || b.name || ""), (a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef")); return a; case Fa: return ( (b = a.displayName || null), null !== b ? b : Pa(a.type) || "Memo" ); case Ga: b = a._payload; a = a._init; try { return Pa(a(b)); } catch (c) {} } return null; } function Qa(a) { var b = a.type; switch (a.tag) { case 24: return "Cache"; case 9: return (b.displayName || "Context") + ".Consumer"; case 10: return ( (b._context.displayName || "Context") + ".Provider" ); case 18: return "DehydratedFragment"; case 11: return ( (a = b.render), (a = a.displayName || a.name || ""), b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef") ); case 7: return "Fragment"; case 5: return b; case 4: return "Portal"; case 3: return "Root"; case 6: return "Text"; case 16: return Pa(b); case 8: return b === xa ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: return "Profiler"; case 21: return "Scope"; case 13: return "Suspense"; case 19: return "SuspenseList"; case 25: return "TracingMarker"; case 1: case 0: case 17: case 2: case 14: case 15: if ("function" === typeof b) return b.displayName || b.name || null; if ("string" === typeof b) return b; } return null; } function Ra(a) { switch (typeof a) { case "boolean": case "number": case "string": case "undefined": return a; case "object": return a; default: return ""; } } function Sa(a) { var b = a.type; return ( (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b) ); } function Ta(a) { var b = Sa(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor( a.constructor.prototype, b ), d = "" + a[b]; if ( !a.hasOwnProperty(b) && "undefined" !== typeof c && "function" === typeof c.get && "function" === typeof c.set ) { var e = c.get, f = c.set; Object.defineProperty(a, b, { configurable: !0, get: function () { return e.call(this); }, set: function (a) { d = "" + a; f.call(this, a); }, }); Object.defineProperty(a, b, { enumerable: c.enumerable }); return { getValue: function () { return d; }, setValue: function (a) { d = "" + a; }, stopTracking: function () { a._valueTracker = null; delete a[b]; }, }; } } function Ua(a) { a._valueTracker || (a._valueTracker = Ta(a)); } function Va(a) { if (!a) return !1; var b = a._valueTracker; if (!b) return !0; var c = b.getValue(); var d = ""; a && (d = Sa(a) ? (a.checked ? "true" : "false") : a.value); a = d; return a !== c ? (b.setValue(a), !0) : !1; } function Wa(a) { a = a || ("undefined" !== typeof document ? document : void 0); if ("undefined" === typeof a) return null; try { return a.activeElement || a.body; } catch (b) { return a.body; } } function Xa(a, b) { var c = b.checked; return A({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c ? c : a._wrapperState.initialChecked, }); } function Ya(a, b) { var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked; c = Ra(null != b.value ? b.value : c); a._wrapperState = { initialChecked: d, initialValue: c, controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value, }; } function Za(a, b) { b = b.checked; null != b && sa(a, "checked", b, !1); } function $a(a, b) { Za(a, b); var c = Ra(b.value), d = b.type; if (null != c) if ("number" === d) { if ((0 === c && "" === a.value) || a.value != c) a.value = "" + c; } else a.value !== "" + c && (a.value = "" + c); else if ("submit" === d || "reset" === d) { a.removeAttribute("value"); return; } b.hasOwnProperty("value") ? bb(a, b.type, c) : b.hasOwnProperty("defaultValue") && bb(a, b.type, Ra(b.defaultValue)); null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); } function cb(a, b, c) { if ( b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue") ) { var d = b.type; if ( !( ("submit" !== d && "reset" !== d) || (void 0 !== b.value && null !== b.value) ) ) return; b = "" + a._wrapperState.initialValue; c || b === a.value || (a.value = b); a.defaultValue = b; } c = a.name; "" !== c && (a.name = ""); a.defaultChecked = !!a._wrapperState.initialChecked; "" !== c && (a.name = c); } function bb(a, b, c) { if ("number" !== b || Wa(a.ownerDocument) !== a) null == c ? (a.defaultValue = "" + a._wrapperState.initialValue) : a.defaultValue !== "" + c && (a.defaultValue = "" + c); } var db = Array.isArray; function eb(a, b, c, d) { a = a.options; if (b) { b = {}; for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; for (c = 0; c < a.length; c++) (e = b.hasOwnProperty("$" + a[c].value)), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0); } else { c = "" + Ra(c); b = null; for (e = 0; e < a.length; e++) { if (a[e].value === c) { a[e].selected = !0; d && (a[e].defaultSelected = !0); return; } null !== b || a[e].disabled || (b = a[e]); } null !== b && (b.selected = !0); } } function fb(a, b) { if (null != b.dangerouslySetInnerHTML) throw Error(p(91)); return A({}, b, { value: void 0, defaultValue: void 0, children: "" + a._wrapperState.initialValue, }); } function gb(a, b) { var c = b.value; if (null == c) { c = b.children; b = b.defaultValue; if (null != c) { if (null != b) throw Error(p(92)); if (db(c)) { if (1 < c.length) throw Error(p(93)); c = c[0]; } b = c; } null == b && (b = ""); c = b; } a._wrapperState = { initialValue: Ra(c) }; } function hb(a, b) { var c = Ra(b.value), d = Ra(b.defaultValue); null != c && ((c = "" + c), c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)); null != d && (a.defaultValue = "" + d); } function ib(a) { var b = a.textContent; b === a._wrapperState.initialValue && "" !== b && null !== b && (a.value = b); } function jb(a) { switch (a) { case "svg": return "http://www.w3.org/2000/svg"; case "math": return "http://www.w3.org/1998/Math/MathML"; default: return "http://www.w3.org/1999/xhtml"; } } function kb(a, b) { return null == a || "http://www.w3.org/1999/xhtml" === a ? jb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a; } var lb, mb = (function (a) { return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) { MSApp.execUnsafeLocalFunction(function () { return a(b, c, d, e); }); } : a; })(function (a, b) { if ( "http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a ) a.innerHTML = b; else { lb = lb || document.createElement("div"); lb.innerHTML = "<svg>" + b.valueOf().toString() + "</svg>"; for (b = lb.firstChild; a.firstChild; ) a.removeChild(a.firstChild); for (; b.firstChild; ) a.appendChild(b.firstChild); } }); function nb(a, b) { if (b) { var c = a.firstChild; if (c && c === a.lastChild && 3 === c.nodeType) { c.nodeValue = b; return; } } a.textContent = b; } var ob = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0, }, pb = ["Webkit", "ms", "Moz", "O"]; Object.keys(ob).forEach(function (a) { pb.forEach(function (b) { b = b + a.charAt(0).toUpperCase() + a.substring(1); ob[b] = ob[a]; }); }); function qb(a, b, c) { return null == b || "boolean" === typeof b || "" === b ? "" : c || "number" !== typeof b || 0 === b || (ob.hasOwnProperty(a) && ob[a]) ? ("" + b).trim() : b + "px"; } function rb(a, b) { a = a.style; for (var c in b) if (b.hasOwnProperty(c)) { var d = 0 === c.indexOf("--"), e = qb(c, b[c], d); "float" === c && (c = "cssFloat"); d ? a.setProperty(c, e) : (a[c] = e); } } var sb = A( { menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0, } ); function tb(a, b) { if (b) { if ( sb[a] && (null != b.children || null != b.dangerouslySetInnerHTML) ) throw Error(p(137, a)); if (null != b.dangerouslySetInnerHTML) { if (null != b.children) throw Error(p(60)); if ( "object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML) ) throw Error(p(61)); } if (null != b.style && "object" !== typeof b.style) throw Error(p(62)); } } function ub(a, b) { if (-1 === a.indexOf("-")) return "string" === typeof b.is; switch (a) { case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": return !1; default: return !0; } } var vb = null; function wb(a) { a = a.target || a.srcElement || window; a.correspondingUseElement && (a = a.correspondingUseElement); return 3 === a.nodeType ? a.parentNode : a; } var xb = null, yb = null, zb = null; function Ab(a) { if ((a = Bb(a))) { if ("function" !== typeof xb) throw Error(p(280)); var b = a.stateNode; b && ((b = Cb(b)), xb(a.stateNode, a.type, b)); } } function Db(a) { yb ? (zb ? zb.push(a) : (zb = [a])) : (yb = a); } function Eb() { if (yb) { var a = yb, b = zb; zb = yb = null; Ab(a); if (b) for (a = 0; a < b.length; a++) Ab(b[a]); } } function Fb(a, b) { return a(b); } function Gb() {} var Hb = !1; function Ib(a, b, c) { if (Hb) return a(b, c); Hb = !0; try { return Fb(a, b, c); } finally { if (((Hb = !1), null !== yb || null !== zb)) Gb(), Eb(); } } function Jb(a, b) { var c = a.stateNode; if (null === c) return null; var d = Cb(c); if (null === d) return null; c = d[b]; a: switch (b) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (d = !d.disabled) || ((a = a.type), (d = !( "button" === a || "input" === a || "select" === a || "textarea" === a ))); a = !d; break a; default: a = !1; } if (a) return null; if (c && "function" !== typeof c) throw Error(p(231, b, typeof c)); return c; } var Kb = !1; if (ia) try { var Lb = {}; Object.defineProperty(Lb, "passive", { get: function () { Kb = !0; }, }); window.addEventListener("test", Lb, Lb); window.removeEventListener("test", Lb, Lb); } catch (a) { Kb = !1; } function Mb(a, b, c, d, e, f, g, h, k) { var l = Array.prototype.slice.call(arguments, 3); try { b.apply(c, l); } catch (n) { this.onError(n); } } var Nb = !1, Ob = null, Pb = !1, Qb = null, Rb = { onError: function (a) { Nb = !0; Ob = a; }, }; function Sb(a, b, c, d, e, f, g, h, k) { Nb = !1; Ob = null; Mb.apply(Rb, arguments); } function Tb(a, b, c, d, e, f, g, h, k) { Sb.apply(this, arguments); if (Nb) { if (Nb) { var l = Ob; Nb = !1; Ob = null; } else throw Error(p(198)); Pb || ((Pb = !0), (Qb = l)); } } function Ub(a) { var b = a, c = a; if (a.alternate) for (; b.return; ) b = b.return; else { a = b; do (b = a), 0 !== (b.flags & 4098) && (c = b.return), (a = b.return); while (a); } return 3 === b.tag ? c : null; } function Vb(a) { if (13 === a.tag) { var b = a.memoizedState; null === b && ((a = a.alternate), null !== a && (b = a.memoizedState)); if (null !== b) return b.dehydrated; } return null; } function Wb(a) { if (Ub(a) !== a) throw Error(p(188)); } function Xb(a) { var b = a.alternate; if (!b) { b = Ub(a); if (null === b) throw Error(p(188)); return b !== a ? null : a; } for (var c = a, d = b; ; ) { var e = c.return; if (null === e) break; var f = e.alternate; if (null === f) { d = e.return; if (null !== d) { c = d; continue; } break; } if (e.child === f.child) { for (f = e.child; f; ) { if (f === c) return Wb(e), a; if (f === d) return Wb(e), b; f = f.sibling; } throw Error(p(188)); } if (c.return !== d.return) (c = e), (d = f); else { for (var g = !1, h = e.child; h; ) { if (h === c) { g = !0; c = e; d = f; break; } if (h === d) { g = !0; d = e; c = f; break; } h = h.sibling; } if (!g) { for (h = f.child; h; ) { if (h === c) { g = !0; c = f; d = e; break; } if (h === d) { g = !0; d = f; c = e; break; } h = h.sibling; } if (!g) throw Error(p(189)); } } if (c.alternate !== d) throw Error(p(190)); } if (3 !== c.tag) throw Error(p(188)); return c.stateNode.current === c ? a : b; } function Yb(a) { a = Xb(a); return null !== a ? Zb(a) : null; } function Zb(a) { if (5 === a.tag || 6 === a.tag) return a; for (a = a.child; null !== a; ) { var b = Zb(a); if (null !== b) return b; a = a.sibling; } return null; } var $b = ba.unstable_scheduleCallback, ac = ba.unstable_cancelCallback, bc = ba.unstable_shouldYield, cc = ba.unstable_requestPaint, B = ba.unstable_now, dc = ba.unstable_getCurrentPriorityLevel, ec = ba.unstable_ImmediatePriority, fc = ba.unstable_UserBlockingPriority, gc = ba.unstable_NormalPriority, hc = ba.unstable_LowPriority, ic = ba.unstable_IdlePriority, jc = null, kc = null; function lc(a) { if (kc && "function" === typeof kc.onCommitFiberRoot) try { kc.onCommitFiberRoot( jc, a, void 0, 128 === (a.current.flags & 128) ); } catch (b) {} } var nc = Math.clz32 ? Math.clz32 : mc, oc = Math.log, pc = Math.LN2; function mc(a) { a >>>= 0; return 0 === a ? 32 : (31 - ((oc(a) / pc) | 0)) | 0; } var qc = 64, rc = 4194304; function sc(a) { switch (a & -a) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return a & 4194240; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return a & 130023424; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return a; } } function tc(a, b) { var c = a.pendingLanes; if (0 === c) return 0; var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = c & 268435455; if (0 !== g) { var h = g & ~e; 0 !== h ? (d = sc(h)) : ((f &= g), 0 !== f && (d = sc(f))); } else (g = c & ~e), 0 !== g ? (d = sc(g)) : 0 !== f && (d = sc(f)); if (0 === d) return 0; if ( 0 !== b && b !== d && 0 === (b & e) && ((e = d & -d), (f = b & -b), e >= f || (16 === e && 0 !== (f & 4194240))) ) return b; 0 !== (d & 4) && (d |= c & 16); b = a.entangledLanes; if (0 !== b) for (a = a.entanglements, b &= d; 0 < b; ) (c = 31 - nc(b)), (e = 1 << c), (d |= a[c]), (b &= ~e); return d; } function uc(a, b) { switch (a) { case 1: case 2: case 4: return b + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return b + 5e3; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return -1; case 134217728: case 268435456: case 536870912: case 1073741824: return -1; default: return -1; } } function vc(a, b) { for ( var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f; ) { var g = 31 - nc(f), h = 1 << g, k = e[g]; if (-1 === k) { if (0 === (h & c) || 0 !== (h & d)) e[g] = uc(h, b); } else k <= b && (a.expiredLanes |= h); f &= ~h; } } function wc(a) { a = a.pendingLanes & -1073741825; return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0; } function xc() { var a = qc; qc <<= 1; 0 === (qc & 4194240) && (qc = 64); return a; } function yc(a) { for (var b = [], c = 0; 31 > c; c++) b.push(a); return b; } function zc(a, b, c) { a.pendingLanes |= b; 536870912 !== b && ((a.suspendedLanes = 0), (a.pingedLanes = 0)); a = a.eventTimes; b = 31 - nc(b); a[b] = c; } function Ac(a, b) { var c = a.pendingLanes & ~b; a.pendingLanes = b; a.suspendedLanes = 0; a.pingedLanes = 0; a.expiredLanes &= b; a.mutableReadLanes &= b; a.entangledLanes &= b; b = a.entanglements; var d = a.eventTimes; for (a = a.expirationTimes; 0 < c; ) { var e = 31 - nc(c), f = 1 << e; b[e] = 0; d[e] = -1; a[e] = -1; c &= ~f; } } function Bc(a, b) { var c = (a.entangledLanes |= b); for (a = a.entanglements; c; ) { var d = 31 - nc(c), e = 1 << d; (e & b) | (a[d] & b) && (a[d] |= b); c &= ~e; } } var C = 0; function Cc(a) { a &= -a; return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1; } var Dc, Ec, Fc, Gc, Hc, Ic = !1, Jc = [], Kc = null, Lc = null, Mc = null, Nc = new Map(), Oc = new Map(), Pc = [], Qc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split( " " ); function Rc(a, b) { switch (a) { case "focusin": case "focusout": Kc = null; break; case "dragenter": case "dragleave": Lc = null; break; case "mouseover": case "mouseout": Mc = null; break; case "pointerover": case "pointerout": Nc.delete(b.pointerId); break; case "gotpointercapture": case "lostpointercapture": Oc.delete(b.pointerId); } } function Sc(a, b, c, d, e, f) { if (null === a || a.nativeEvent !== f) return ( (a = { blockedOn: b, domEventName: c, eventSystemFlags: d, nativeEvent: f, targetContainers: [e], }), null !== b && ((b = Bb(b)), null !== b && Ec(b)), a ); a.eventSystemFlags |= d; b = a.targetContainers; null !== e && -1 === b.indexOf(e) && b.push(e); return a; } function Tc(a, b, c, d, e) { switch (b) { case "focusin": return (Kc = Sc(Kc, a, b, c, d, e)), !0; case "dragenter": return (Lc = Sc(Lc, a, b, c, d, e)), !0; case "mouseover": return (Mc = Sc(Mc, a, b, c, d, e)), !0; case "pointerover": var f = e.pointerId; Nc.set(f, Sc(Nc.get(f) || null, a, b, c, d, e)); return !0; case "gotpointercapture": return ( (f = e.pointerId), Oc.set(f, Sc(Oc.get(f) || null, a, b, c, d, e)), !0 ); } return !1; } function Uc(a) { var b = Vc(a.target); if (null !== b) { var c = Ub(b); if (null !== c) if (((b = c.tag), 13 === b)) { if (((b = Vb(c)), null !== b)) { a.blockedOn = b; Hc(a.priority, function () { Fc(c); }); return; } } else if ( 3 === b && c.stateNode.current.memoizedState.isDehydrated ) { a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null; return; } } a.blockedOn = null; } function Wc(a) { if (null !== a.blockedOn) return !1; for (var b = a.targetContainers; 0 < b.length; ) { var c = Xc( a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent ); if (null === c) { c = a.nativeEvent; var d = new c.constructor(c.type, c); vb = d; c.target.dispatchEvent(d); vb = null; } else return ( (b = Bb(c)), null !== b && Ec(b), (a.blockedOn = c), !1 ); b.shift(); } return !0; } function Yc(a, b, c) { Wc(a) && c.delete(b); } function Zc() { Ic = !1; null !== Kc && Wc(Kc) && (Kc = null); null !== Lc && Wc(Lc) && (Lc = null); null !== Mc && Wc(Mc) && (Mc = null); Nc.forEach(Yc); Oc.forEach(Yc); } function $c(a, b) { a.blockedOn === b && ((a.blockedOn = null), Ic || ((Ic = !0), ba.unstable_scheduleCallback( ba.unstable_NormalPriority, Zc ))); } function ad(a) { function b(b) { return $c(b, a); } if (0 < Jc.length) { $c(Jc[0], a); for (var c = 1; c < Jc.length; c++) { var d = Jc[c]; d.blockedOn === a && (d.blockedOn = null); } } null !== Kc && $c(Kc, a); null !== Lc && $c(Lc, a); null !== Mc && $c(Mc, a); Nc.forEach(b); Oc.forEach(b); for (c = 0; c < Pc.length; c++) (d = Pc[c]), d.blockedOn === a && (d.blockedOn = null); for (; 0 < Pc.length && ((c = Pc[0]), null === c.blockedOn); ) Uc(c), null === c.blockedOn && Pc.shift(); } var bd = ta.ReactCurrentBatchConfig, cd = !0; function dd(a, b, c, d) { var e = C, f = bd.transition; bd.transition = null; try { (C = 1), ed(a, b, c, d); } finally { (C = e), (bd.transition = f); } } function fd(a, b, c, d) { var e = C, f = bd.transition; bd.transition = null; try { (C = 4), ed(a, b, c, d); } finally { (C = e), (bd.transition = f); } } function ed(a, b, c, d) { if (cd) { var e = Xc(a, b, c, d); if (null === e) gd(a, b, d, hd, c), Rc(a, d); else if (Tc(e, a, b, c, d)) d.stopPropagation(); else if ((Rc(a, d), b & 4 && -1 < Qc.indexOf(a))) { for (; null !== e; ) { var f = Bb(e); null !== f && Dc(f); f = Xc(a, b, c, d); null === f && gd(a, b, d, hd, c); if (f === e) break; e = f; } null !== e && d.stopPropagation(); } else gd(a, b, d, null, c); } } var hd = null; function Xc(a, b, c, d) { hd = null; a = wb(d); a = Vc(a); if (null !== a) if (((b = Ub(a)), null === b)) a = null; else if (((c = b.tag), 13 === c)) { a = Vb(b); if (null !== a) return a; a = null; } else if (3 === c) { if (b.stateNode.current.memoizedState.isDehydrated) return 3 === b.tag ? b.stateNode.containerInfo : null; a = null; } else b !== a && (a = null); hd = a; return null; } function id(a) { switch (a) { case "cancel": case "click": case "close": case "contextmenu": case "copy": case "cut": case "auxclick": case "dblclick": case "dragend": case "dragstart": case "drop": case "focusin": case "focusout": case "input": case "invalid": case "keydown": case "keypress": case "keyup": case "mousedown": case "mouseup": case "paste": case "pause": case "play": case "pointercancel": case "pointerdown": case "pointerup": case "ratechange": case "reset": case "resize": case "seeked": case "submit": case "touchcancel": case "touchend": case "touchstart": case "volumechange": case "change": case "selectionchange": case "textInput": case "compositionstart": case "compositionend": case "compositionupdate": case "beforeblur": case "afterblur": case "beforeinput": case "blur": case "fullscreenchange": case "focus": case "hashchange": case "popstate": case "select": case "selectstart": return 1; case "drag": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "mousemove": case "mouseout": case "mouseover": case "pointermove": case "pointerout": case "pointerover": case "scroll": case "toggle": case "touchmove": case "wheel": case "mouseenter": case "mouseleave": case "pointerenter": case "pointerleave": return 4; case "message": switch (dc()) { case ec: return 1; case fc: return 4; case gc: case hc: return 16; case ic: return 536870912; default: return 16; } default: return 16; } } var jd = null, kd = null, ld = null; function md() { if (ld) return ld; var a, b = kd, c = b.length, d, e = "value" in jd ? jd.value : jd.textContent, f = e.length; for (a = 0; a < c && b[a] === e[a]; a++); var g = c - a; for (d = 1; d <= g && b[c - d] === e[f - d]; d++); return (ld = e.slice(a, 1 < d ? 1 - d : void 0)); } function nd(a) { var b = a.keyCode; "charCode" in a ? ((a = a.charCode), 0 === a && 13 === b && (a = 13)) : (a = b); 10 === a && (a = 13); return 32 <= a || 13 === a ? a : 0; } function od() { return !0; } function pd() { return !1; } function qd(a) { function b(b, d, e, f, g) { this._reactName = b; this._targetInst = e; this.type = d; this.nativeEvent = f; this.target = g; this.currentTarget = null; for (var c in a) a.hasOwnProperty(c) && ((b = a[c]), (this[c] = b ? b(f) : f[c])); this.isDefaultPrevented = ( null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue ) ? od : pd; this.isPropagationStopped = pd; return this; } A(b.prototype, { preventDefault: function () { this.defaultPrevented = !0; var a = this.nativeEvent; a && (a.preventDefault ? a.preventDefault() : "unknown" !== typeof a.returnValue && (a.returnValue = !1), (this.isDefaultPrevented = od)); }, stopPropagation: function () { var a = this.nativeEvent; a && (a.stopPropagation ? a.stopPropagation() : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), (this.isPropagationStopped = od)); }, persist: function () {}, isPersistent: od, }); return b; } var rd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (a) { return a.timeStamp || Date.now(); }, defaultPrevented: 0, isTrusted: 0, }, sd = qd(rd), td = A({}, rd, { view: 0, detail: 0 }), ud = qd(td), vd, wd, xd, zd = A({}, td, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: yd, button: 0, buttons: 0, relatedTarget: function (a) { return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget; }, movementX: function (a) { if ("movementX" in a) return a.movementX; a !== xd && (xd && "mousemove" === a.type ? ((vd = a.screenX - xd.screenX), (wd = a.screenY - xd.screenY)) : (wd = vd = 0), (xd = a)); return vd; }, movementY: function (a) { return "movementY" in a ? a.movementY : wd; }, }), Ad = qd(zd), Bd = A({}, zd, { dataTransfer: 0 }), Cd = qd(Bd), Dd = A({}, td, { relatedTarget: 0 }), Ed = qd(Dd), Fd = A({}, rd, { animationName: 0, elapsedTime: 0, pseudoElement: 0, }), Gd = qd(Fd), Hd = A({}, rd, { clipboardData: function (a) { return "clipboardData" in a ? a.clipboardData : window.clipboardData; }, }), Id = qd(Hd), Jd = A({}, rd, { data: 0 }), Kd = qd(Jd), Ld = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified", }, Md = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta", }, Nd = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey", }; function Od(a) { var b = this.nativeEvent; return b.getModifierState ? b.getModifierState(a) : (a = Nd[a]) ? !!b[a] : !1; } function yd() { return Od; } var Pd = A({}, td, { key: function (a) { if (a.key) { var b = Ld[a.key] || a.key; if ("Unidentified" !== b) return b; } return "keypress" === a.type ? ((a = nd(a)), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Md[a.keyCode] || "Unidentified" : ""; }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: yd, charCode: function (a) { return "keypress" === a.type ? nd(a) : 0; }, keyCode: function (a) { return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; }, which: function (a) { return "keypress" === a.type ? nd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; }, }), Qd = qd(Pd), Rd = A({}, zd, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0, }), Sd = qd(Rd), Td = A({}, td, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: yd, }), Ud = qd(Td), Vd = A({}, rd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0, }), Wd = qd(Vd), Xd = A({}, zd, { deltaX: function (a) { return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; }, deltaY: function (a) { return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; }, deltaZ: 0, deltaMode: 0, }), Yd = qd(Xd), Zd = [9, 13, 27, 32], $d = ia && "CompositionEvent" in window, ae = null; ia && "documentMode" in document && (ae = document.documentMode); var be = ia && "TextEvent" in window && !ae, ce = ia && (!$d || (ae && 8 < ae && 11 >= ae)), de = String.fromCharCode(32), ee = !1; function fe(a, b) { switch (a) { case "keyup": return -1 !== Zd.indexOf(b.keyCode); case "keydown": return 229 !== b.keyCode; case "keypress": case "mousedown": case "focusout": return !0; default: return !1; } } function ge(a) { a = a.detail; return "object" === typeof a && "data" in a ? a.data : null; } var he = !1; function ie(a, b) { switch (a) { case "compositionend": return ge(b); case "keypress": if (32 !== b.which) return null; ee = !0; return de; case "textInput": return (a = b.data), a === de && ee ? null : a; default: return null; } } function je(a, b) { if (he) return "compositionend" === a || (!$d && fe(a, b)) ? ((a = md()), (ld = kd = jd = null), (he = !1), a) : null; switch (a) { case "paste": return null; case "keypress": if ( !(b.ctrlKey || b.altKey || b.metaKey) || (b.ctrlKey && b.altKey) ) { if (b.char && 1 < b.char.length) return b.char; if (b.which) return String.fromCharCode(b.which); } return null; case "compositionend": return ce && "ko" !== b.locale ? null : b.data; default: return null; } } var ke = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, }; function le(a) { var b = a && a.nodeName && a.nodeName.toLowerCase(); return "input" === b ? !!ke[a.type] : "textarea" === b ? !0 : !1; } function me(a, b, c, d) { Db(d); b = ne(b, "onChange"); 0 < b.length && ((c = new sd("onChange", "change", null, c, d)), a.push({ event: c, listeners: b })); } var oe = null, pe = null; function qe(a) { re(a, 0); } function se(a) { var b = te(a); if (Va(b)) return a; } function ue(a, b) { if ("change" === a) return b; } var ve = !1; if (ia) { var we; if (ia) { var xe = "oninput" in document; if (!xe) { var ye = document.createElement("div"); ye.setAttribute("oninput", "return;"); xe = "function" === typeof ye.oninput; } we = xe; } else we = !1; ve = we && (!document.documentMode || 9 < document.documentMode); } function ze() { oe && (oe.detachEvent("onpropertychange", Ae), (pe = oe = null)); } function Ae(a) { if ("value" === a.propertyName && se(pe)) { var b = []; me(b, pe, a, wb(a)); Ib(qe, b); } } function Be(a, b, c) { "focusin" === a ? (ze(), (oe = b), (pe = c), oe.attachEvent("onpropertychange", Ae)) : "focusout" === a && ze(); } function Ce(a) { if ("selectionchange" === a || "keyup" === a || "keydown" === a) return se(pe); } function De(a, b) { if ("click" === a) return se(b); } function Ee(a, b) { if ("input" === a || "change" === a) return se(b); } function Fe(a, b) { return ( (a === b && (0 !== a || 1 / a === 1 / b)) || (a !== a && b !== b) ); } var Ge = "function" === typeof Object.is ? Object.is : Fe; function He(a, b) { if (Ge(a, b)) return !0; if ( "object" !== typeof a || null === a || "object" !== typeof b || null === b ) return !1; var c = Object.keys(a), d = Object.keys(b); if (c.length !== d.length) return !1; for (d = 0; d < c.length; d++) { var e = c[d]; if (!ja.call(b, e) || !Ge(a[e], b[e])) return !1; } return !0; } function Ie(a) { for (; a && a.firstChild; ) a = a.firstChild; return a; } function Je(a, b) { var c = Ie(a); a = 0; for (var d; c; ) { if (3 === c.nodeType) { d = a + c.textContent.length; if (a <= b && d >= b) return { node: c, offset: b - a }; a = d; } a: { for (; c; ) { if (c.nextSibling) { c = c.nextSibling; break a; } c = c.parentNode; } c = void 0; } c = Ie(c); } } function Ke(a, b) { return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Ke(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1; } function Le() { for ( var a = window, b = Wa(); b instanceof a.HTMLIFrameElement; ) { try { var c = "string" === typeof b.contentWindow.location.href; } catch (d) { c = !1; } if (c) a = b.contentWindow; else break; b = Wa(a.document); } return b; } function Me(a) { var b = a && a.nodeName && a.nodeName.toLowerCase(); return ( b && (("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type)) || "textarea" === b || "true" === a.contentEditable) ); } function Ne(a) { var b = Le(), c = a.focusedElem, d = a.selectionRange; if ( b !== c && c && c.ownerDocument && Ke(c.ownerDocument.documentElement, c) ) { if (null !== d && Me(c)) if ( ((b = d.start), (a = d.end), void 0 === a && (a = b), "selectionStart" in c) ) (c.selectionStart = b), (c.selectionEnd = Math.min(a, c.value.length)); else if ( ((a = ((b = c.ownerDocument || document) && b.defaultView) || window), a.getSelection) ) { a = a.getSelection(); var e = c.textContent.length, f = Math.min(d.start, e); d = void 0 === d.end ? f : Math.min(d.end, e); !a.extend && f > d && ((e = d), (d = f), (f = e)); e = Je(c, f); var g = Je(c, d); e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && ((b = b.createRange()), b.setStart(e.node, e.offset), a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b))); } b = []; for (a = c; (a = a.parentNode); ) 1 === a.nodeType && b.push({ element: a, left: a.scrollLeft, top: a.scrollTop, }); "function" === typeof c.focus && c.focus(); for (c = 0; c < b.length; c++) (a = b[c]), (a.element.scrollLeft = a.left), (a.element.scrollTop = a.top); } } var Oe = ia && "documentMode" in document && 11 >= document.documentMode, Pe = null, Qe = null, Re = null, Se = !1; function Te(a, b, c) { var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument; Se || null == Pe || Pe !== Wa(d) || ((d = Pe), "selectionStart" in d && Me(d) ? (d = { start: d.selectionStart, end: d.selectionEnd }) : ((d = ( (d.ownerDocument && d.ownerDocument.defaultView) || window ).getSelection()), (d = { anchorNode: d.anchorNode, anchorOffset: d.anchorOffset, focusNode: d.focusNode, focusOffset: d.focusOffset, })), (Re && He(Re, d)) || ((Re = d), (d = ne(Qe, "onSelect")), 0 < d.length && ((b = new sd("onSelect", "select", null, b, c)), a.push({ event: b, listeners: d }), (b.target = Pe)))); } function Ue(a, b) { var c = {}; c[a.toLowerCase()] = b.toLowerCase(); c["Webkit" + a] = "webkit" + b; c["Moz" + a] = "moz" + b; return c; } var Ve = { animationend: Ue("Animation", "AnimationEnd"), animationiteration: Ue("Animation", "AnimationIteration"), animationstart: Ue("Animation", "AnimationStart"), transitionend: Ue("Transition", "TransitionEnd"), }, We = {}, Xe = {}; ia && ((Xe = document.createElement("div").style), "AnimationEvent" in window || (delete Ve.animationend.animation, delete Ve.animationiteration.animation, delete Ve.animationstart.animation), "TransitionEvent" in window || delete Ve.transitionend.transition); function Ye(a) { if (We[a]) return We[a]; if (!Ve[a]) return a; var b = Ve[a], c; for (c in b) if (b.hasOwnProperty(c) && c in Xe) return (We[a] = b[c]); return a; } var Ze = Ye("animationend"), $e = Ye("animationiteration"), af = Ye("animationstart"), bf = Ye("transitionend"), cf = new Map(), df = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split( " " ); function ef(a, b) { cf.set(a, b); fa(b, [a]); } for (var ff = 0; ff < df.length; ff++) { var gf = df[ff], hf = gf.toLowerCase(), jf = gf[0].toUpperCase() + gf.slice(1); ef(hf, "on" + jf); } ef(Ze, "onAnimationEnd"); ef($e, "onAnimationIteration"); ef(af, "onAnimationStart"); ef("dblclick", "onDoubleClick"); ef("focusin", "onFocus"); ef("focusout", "onBlur"); ef(bf, "onTransitionEnd"); ha("onMouseEnter", ["mouseout", "mouseover"]); ha("onMouseLeave", ["mouseout", "mouseover"]); ha("onPointerEnter", ["pointerout", "pointerover"]); ha("onPointerLeave", ["pointerout", "pointerover"]); fa( "onChange", "change click focusin focusout input keydown keyup selectionchange".split( " " ) ); fa( "onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split( " " ) ); fa("onBeforeInput", [ "compositionend", "keypress", "textInput", "paste", ]); fa( "onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split( " " ) ); fa( "onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split( " " ) ); fa( "onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split( " " ) ); var kf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split( " " ), lf = new Set( "cancel close invalid load scroll toggle" .split(" ") .concat(kf) ); function mf(a, b, c) { var d = a.type || "unknown-event"; a.currentTarget = c; Tb(d, b, void 0, a); a.currentTarget = null; } function re(a, b) { b = 0 !== (b & 4); for (var c = 0; c < a.length; c++) { var d = a[c], e = d.event; d = d.listeners; a: { var f = void 0; if (b) for (var g = d.length - 1; 0 <= g; g--) { var h = d[g], k = h.instance, l = h.currentTarget; h = h.listener; if (k !== f && e.isPropagationStopped()) break a; mf(e, h, l); f = k; } else for (g = 0; g < d.length; g++) { h = d[g]; k = h.instance; l = h.currentTarget; h = h.listener; if (k !== f && e.isPropagationStopped()) break a; mf(e, h, l); f = k; } } } if (Pb) throw ((a = Qb), (Pb = !1), (Qb = null), a); } function D(a, b) { var c = b[nf]; void 0 === c && (c = b[nf] = new Set()); var d = a + "__bubble"; c.has(d) || (of(b, a, 2, !1), c.add(d)); } function pf(a, b, c) { var d = 0; b && (d |= 4); of(c, a, d, b); } var qf = "_reactListening" + Math.random().toString(36).slice(2); function rf(a) { if (!a[qf]) { a[qf] = !0; da.forEach(function (b) { "selectionchange" !== b && (lf.has(b) || pf(b, !1, a), pf(b, !0, a)); }); var b = 9 === a.nodeType ? a : a.ownerDocument; null === b || b[qf] || ((b[qf] = !0), pf("selectionchange", !1, b)); } } function of(a, b, c, d) { switch (id(b)) { case 1: var e = dd; break; case 4: e = fd; break; default: e = ed; } c = e.bind(null, b, c, a); e = void 0; !Kb || ("touchstart" !== b && "touchmove" !== b && "wheel" !== b) || (e = !0); d ? void 0 !== e ? a.addEventListener(b, c, { capture: !0, passive: e }) : a.addEventListener(b, c, !0) : void 0 !== e ? a.addEventListener(b, c, { passive: e }) : a.addEventListener(b, c, !1); } function gd(a, b, c, d, e) { var f = d; if (0 === (b & 1) && 0 === (b & 2) && null !== d) a: for (;;) { if (null === d) return; var g = d.tag; if (3 === g || 4 === g) { var h = d.stateNode.containerInfo; if ( h === e || (8 === h.nodeType && h.parentNode === e) ) break; if (4 === g) for (g = d.return; null !== g; ) { var k = g.tag; if (3 === k || 4 === k) if ( ((k = g.stateNode.containerInfo), k === e || (8 === k.nodeType && k.parentNode === e)) ) return; g = g.return; } for (; null !== h; ) { g = Vc(h); if (null === g) return; k = g.tag; if (5 === k || 6 === k) { d = f = g; continue a; } h = h.parentNode; } } d = d.return; } Ib(function () { var d = f, e = wb(c), g = []; a: { var h = cf.get(a); if (void 0 !== h) { var k = sd, m = a; switch (a) { case "keypress": if (0 === nd(c)) break a; case "keydown": case "keyup": k = Qd; break; case "focusin": m = "focus"; k = Ed; break; case "focusout": m = "blur"; k = Ed; break; case "beforeblur": case "afterblur": k = Ed; break; case "click": if (2 === c.button) break a; case "auxclick": case "dblclick": case "mousedown": case "mousemove": case "mouseup": case "mouseout": case "mouseover": case "contextmenu": k = Ad; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": k = Cd; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": k = Ud; break; case Ze: case $e: case af: k = Gd; break; case bf: k = Wd; break; case "scroll": k = ud; break; case "wheel": k = Yd; break; case "copy": case "cut": case "paste": k = Id; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": k = Sd; } var w = 0 !== (b & 4), J = !w && "scroll" === a, v = w ? (null !== h ? h + "Capture" : null) : h; w = []; for (var x = d, r; null !== x; ) { r = x; var F = r.stateNode; 5 === r.tag && null !== F && ((r = F), null !== v && ((F = Jb(x, v)), null != F && w.push(sf(x, F, r)))); if (J) break; x = x.return; } 0 < w.length && ((h = new k(h, m, null, c, e)), g.push({ event: h, listeners: w })); } } if (0 === (b & 7)) { a: { h = "mouseover" === a || "pointerover" === a; k = "mouseout" === a || "pointerout" === a; if ( h && c !== vb && (m = c.relatedTarget || c.fromElement) && (Vc(m) || m[tf]) ) break a; if (k || h) { h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window; if (k) { if ( ((m = c.relatedTarget || c.toElement), (k = d), (m = m ? Vc(m) : null), null !== m && ((J = Ub(m)), m !== J || (5 !== m.tag && 6 !== m.tag))) ) m = null; } else (k = null), (m = d); if (k !== m) { w = Ad; F = "onMouseLeave"; v = "onMouseEnter"; x = "mouse"; if ( "pointerout" === a || "pointerover" === a ) (w = Sd), (F = "onPointerLeave"), (v = "onPointerEnter"), (x = "pointer"); J = null == k ? h : te(k); r = null == m ? h : te(m); h = new w(F, x + "leave", k, c, e); h.target = J; h.relatedTarget = r; F = null; Vc(e) === d && ((w = new w(v, x + "enter", m, c, e)), (w.target = r), (w.relatedTarget = J), (F = w)); J = F; if (k && m) b: { w = k; v = m; x = 0; for (r = w; r; r = uf(r)) x++; r = 0; for (F = v; F; F = uf(F)) r++; for (; 0 < x - r; ) (w = uf(w)), x--; for (; 0 < r - x; ) (v = uf(v)), r--; for (; x--; ) { if ( w === v || (null !== v && w === v.alternate) ) break b; w = uf(w); v = uf(v); } w = null; } else w = null; null !== k && vf(g, h, k, w, !1); null !== m && null !== J && vf(g, J, m, w, !0); } } } a: { h = d ? te(d) : window; k = h.nodeName && h.nodeName.toLowerCase(); if ( "select" === k || ("input" === k && "file" === h.type) ) var Z = ue; else if (le(h)) if (ve) Z = Ee; else { Z = Ce; var ya = Be; } else (k = h.nodeName) && "input" === k.toLowerCase() && ("checkbox" === h.type || "radio" === h.type) && (Z = De); if (Z && (Z = Z(a, d))) { me(g, Z, c, e); break a; } ya && ya(a, h, d); "focusout" === a && (ya = h._wrapperState) && ya.controlled && "number" === h.type && bb(h, "number", h.value); } ya = d ? te(d) : window; switch (a) { case "focusin": if (le(ya) || "true" === ya.contentEditable) (Pe = ya), (Qe = d), (Re = null); break; case "focusout": Re = Qe = Pe = null; break; case "mousedown": Se = !0; break; case "contextmenu": case "mouseup": case "dragend": Se = !1; Te(g, c, e); break; case "selectionchange": if (Oe) break; case "keydown": case "keyup": Te(g, c, e); } var ab; if ($d) b: { switch (a) { case "compositionstart": var ca = "onCompositionStart"; break b; case "compositionend": ca = "onCompositionEnd"; break b; case "compositionupdate": ca = "onCompositionUpdate"; break b; } ca = void 0; } else he ? fe(a, c) && (ca = "onCompositionEnd") : "keydown" === a && 229 === c.keyCode && (ca = "onCompositionStart"); ca && (ce && "ko" !== c.locale && (he || "onCompositionStart" !== ca ? "onCompositionEnd" === ca && he && (ab = md()) : ((jd = e), (kd = "value" in jd ? jd.value : jd.textContent), (he = !0))), (ya = ne(d, ca)), 0 < ya.length && ((ca = new Kd(ca, a, null, c, e)), g.push({ event: ca, listeners: ya }), ab ? (ca.data = ab) : ((ab = ge(c)), null !== ab && (ca.data = ab)))); if ((ab = be ? ie(a, c) : je(a, c))) (d = ne(d, "onBeforeInput")), 0 < d.length && ((e = new Kd( "onBeforeInput", "beforeinput", null, c, e )), g.push({ event: e, listeners: d }), (e.data = ab)); } re(g, b); }); } function sf(a, b, c) { return { instance: a, listener: b, currentTarget: c }; } function ne(a, b) { for (var c = b + "Capture", d = []; null !== a; ) { var e = a, f = e.stateNode; 5 === e.tag && null !== f && ((e = f), (f = Jb(a, c)), null != f && d.unshift(sf(a, f, e)), (f = Jb(a, b)), null != f && d.push(sf(a, f, e))); a = a.return; } return d; } function uf(a) { if (null === a) return null; do a = a.return; while (a && 5 !== a.tag); return a ? a : null; } function vf(a, b, c, d, e) { for (var f = b._reactName, g = []; null !== c && c !== d; ) { var h = c, k = h.alternate, l = h.stateNode; if (null !== k && k === d) break; 5 === h.tag && null !== l && ((h = l), e ? ((k = Jb(c, f)), null != k && g.unshift(sf(c, k, h))) : e || ((k = Jb(c, f)), null != k && g.push(sf(c, k, h)))); c = c.return; } 0 !== g.length && a.push({ event: b, listeners: g }); } var wf = /\r\n?/g, xf = /\u0000|\uFFFD/g; function yf(a) { return ("string" === typeof a ? a : "" + a) .replace(wf, "\n") .replace(xf, ""); } function zf(a, b, c) { b = yf(b); if (yf(a) !== b && c) throw Error(p(425)); } function Af() {} var Bf = null, Cf = null; function Df(a, b) { return ( "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || ("object" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html) ); } var Ef = "function" === typeof setTimeout ? setTimeout : void 0, Ff = "function" === typeof clearTimeout ? clearTimeout : void 0, Gf = "function" === typeof Promise ? Promise : void 0, If = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Gf ? function (a) { return Gf.resolve(null).then(a).catch(Hf); } : Ef; function Hf(a) { setTimeout(function () { throw a; }); } function Jf(a, b) { var c = b, d = 0; do { var e = c.nextSibling; a.removeChild(c); if (e && 8 === e.nodeType) if (((c = e.data), "/$" === c)) { if (0 === d) { a.removeChild(e); ad(b); return; } d--; } else ("$" !== c && "$?" !== c && "$!" !== c) || d++; c = e; } while (c); ad(b); } function Kf(a) { for (; null != a; a = a.nextSibling) { var b = a.nodeType; if (1 === b || 3 === b) break; if (8 === b) { b = a.data; if ("$" === b || "$!" === b || "$?" === b) break; if ("/$" === b) return null; } } return a; } function Lf(a) { a = a.previousSibling; for (var b = 0; a; ) { if (8 === a.nodeType) { var c = a.data; if ("$" === c || "$!" === c || "$?" === c) { if (0 === b) return a; b--; } else "/$" === c && b++; } a = a.previousSibling; } return null; } var Mf = Math.random().toString(36).slice(2), Nf = "__reactFiber$" + Mf, Of = "__reactProps$" + Mf, tf = "__reactContainer$" + Mf, nf = "__reactEvents$" + Mf, Pf = "__reactListeners$" + Mf, Qf = "__reactHandles$" + Mf; function Vc(a) { var b = a[Nf]; if (b) return b; for (var c = a.parentNode; c; ) { if ((b = c[tf] || c[Nf])) { c = b.alternate; if ( null !== b.child || (null !== c && null !== c.child) ) for (a = Lf(a); null !== a; ) { if ((c = a[Nf])) return c; a = Lf(a); } return b; } a = c; c = a.parentNode; } return null; } function Bb(a) { a = a[Nf] || a[tf]; return !a || (5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag) ? null : a; } function te(a) { if (5 === a.tag || 6 === a.tag) return a.stateNode; throw Error(p(33)); } function Cb(a) { return a[Of] || null; } var Rf = [], Sf = -1; function Tf(a) { return { current: a }; } function E(a) { 0 > Sf || ((a.current = Rf[Sf]), (Rf[Sf] = null), Sf--); } function G(a, b) { Sf++; Rf[Sf] = a.current; a.current = b; } var Uf = {}, H = Tf(Uf), Vf = Tf(!1), Wf = Uf; function Xf(a, b) { var c = a.type.contextTypes; if (!c) return Uf; var d = a.stateNode; if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; var e = {}, f; for (f in c) e[f] = b[f]; d && ((a = a.stateNode), (a.__reactInternalMemoizedUnmaskedChildContext = b), (a.__reactInternalMemoizedMaskedChildContext = e)); return e; } function Yf(a) { a = a.childContextTypes; return null !== a && void 0 !== a; } function Zf() { E(Vf); E(H); } function $f(a, b, c) { if (H.current !== Uf) throw Error(p(168)); G(H, b); G(Vf, c); } function ag(a, b, c) { var d = a.stateNode; b = b.childContextTypes; if ("function" !== typeof d.getChildContext) return c; d = d.getChildContext(); for (var e in d) if (!(e in b)) throw Error(p(108, Qa(a) || "Unknown", e)); return A({}, c, d); } function bg(a) { a = ((a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext) || Uf; Wf = H.current; G(H, a); G(Vf, Vf.current); return !0; } function cg(a, b, c) { var d = a.stateNode; if (!d) throw Error(p(169)); c ? ((a = ag(a, b, Wf)), (d.__reactInternalMemoizedMergedChildContext = a), E(Vf), E(H), G(H, a)) : E(Vf); G(Vf, c); } var dg = null, eg = !1, fg = !1; function gg(a) { null === dg ? (dg = [a]) : dg.push(a); } function hg(a) { eg = !0; gg(a); } function ig() { if (!fg && null !== dg) { fg = !0; var a = 0, b = C; try { var c = dg; for (C = 1; a < c.length; a++) { var d = c[a]; do d = d(!0); while (null !== d); } dg = null; eg = !1; } catch (e) { throw ( (null !== dg && (dg = dg.slice(a + 1)), $b(ec, ig), e) ); } finally { (C = b), (fg = !1); } } return null; } var jg = ta.ReactCurrentBatchConfig; function kg(a, b) { if (a && a.defaultProps) { b = A({}, b); a = a.defaultProps; for (var c in a) void 0 === b[c] && (b[c] = a[c]); return b; } return b; } var lg = Tf(null), mg = null, ng = null, og = null; function pg() { og = ng = mg = null; } function qg(a) { var b = lg.current; E(lg); a._currentValue = b; } function rg(a, b, c) { for (; null !== a; ) { var d = a.alternate; (a.childLanes & b) !== b ? ((a.childLanes |= b), null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b); if (a === c) break; a = a.return; } } function sg(a, b) { mg = a; og = ng = null; a = a.dependencies; null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (tg = !0), (a.firstContext = null)); } function ug(a) { var b = a._currentValue; if (og !== a) if ( ((a = { context: a, memoizedValue: b, next: null }), null === ng) ) { if (null === mg) throw Error(p(308)); ng = a; mg.dependencies = { lanes: 0, firstContext: a }; } else ng = ng.next = a; return b; } var vg = null, wg = !1; function xg(a) { a.updateQueue = { baseState: a.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null, }; } function yg(a, b) { a = a.updateQueue; b.updateQueue === a && (b.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects, }); } function zg(a, b) { return { eventTime: a, lane: b, tag: 0, payload: null, callback: null, next: null, }; } function Ag(a, b) { var c = a.updateQueue; null !== c && ((c = c.shared), Bg(a) ? ((a = c.interleaved), null === a ? ((b.next = b), null === vg ? (vg = [c]) : vg.push(c)) : ((b.next = a.next), (a.next = b)), (c.interleaved = b)) : ((a = c.pending), null === a ? (b.next = b) : ((b.next = a.next), (a.next = b)), (c.pending = b))); } function Cg(a, b, c) { b = b.updateQueue; if (null !== b && ((b = b.shared), 0 !== (c & 4194240))) { var d = b.lanes; d &= a.pendingLanes; c |= d; b.lanes = c; Bc(a, c); } } function Dg(a, b) { var c = a.updateQueue, d = a.alternate; if (null !== d && ((d = d.updateQueue), c === d)) { var e = null, f = null; c = c.firstBaseUpdate; if (null !== c) { do { var g = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null, }; null === f ? (e = f = g) : (f = f.next = g); c = c.next; } while (null !== c); null === f ? (e = f = b) : (f = f.next = b); } else e = f = b; c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f, shared: d.shared, effects: d.effects, }; a.updateQueue = c; return; } a = c.lastBaseUpdate; null === a ? (c.firstBaseUpdate = b) : (a.next = b); c.lastBaseUpdate = b; } function Eg(a, b, c, d) { var e = a.updateQueue; wg = !1; var f = e.firstBaseUpdate, g = e.lastBaseUpdate, h = e.shared.pending; if (null !== h) { e.shared.pending = null; var k = h, l = k.next; k.next = null; null === g ? (f = l) : (g.next = l); g = k; var n = a.alternate; null !== n && ((n = n.updateQueue), (h = n.lastBaseUpdate), h !== g && (null === h ? (n.firstBaseUpdate = l) : (h.next = l), (n.lastBaseUpdate = k))); } if (null !== f) { var u = e.baseState; g = 0; n = l = k = null; h = f; do { var q = h.lane, y = h.eventTime; if ((d & q) === q) { null !== n && (n = n.next = { eventTime: y, lane: 0, tag: h.tag, payload: h.payload, callback: h.callback, next: null, }); a: { var m = a, w = h; q = b; y = c; switch (w.tag) { case 1: m = w.payload; if ("function" === typeof m) { u = m.call(y, u, q); break a; } u = m; break a; case 3: m.flags = (m.flags & -65537) | 128; case 0: m = w.payload; q = "function" === typeof m ? m.call(y, u, q) : m; if (null === q || void 0 === q) break a; u = A({}, u, q); break a; case 2: wg = !0; } } null !== h.callback && 0 !== h.lane && ((a.flags |= 64), (q = e.effects), null === q ? (e.effects = [h]) : q.push(h)); } else (y = { eventTime: y, lane: q, tag: h.tag, payload: h.payload, callback: h.callback, next: null, }), null === n ? ((l = n = y), (k = u)) : (n = n.next = y), (g |= q); h = h.next; if (null === h) if (((h = e.shared.pending), null === h)) break; else (q = h), (h = q.next), (q.next = null), (e.lastBaseUpdate = q), (e.shared.pending = null); } while (1); null === n && (k = u); e.baseState = k; e.firstBaseUpdate = l; e.lastBaseUpdate = n; b = e.shared.interleaved; if (null !== b) { e = b; do (g |= e.lane), (e = e.next); while (e !== b); } else null === f && (e.shared.lanes = 0); Fg |= g; a.lanes = g; a.memoizedState = u; } } function Gg(a, b, c) { a = b.effects; b.effects = null; if (null !== a) for (b = 0; b < a.length; b++) { var d = a[b], e = d.callback; if (null !== e) { d.callback = null; d = c; if ("function" !== typeof e) throw Error(p(191, e)); e.call(d); } } } var Hg = new aa.Component().refs; function Ig(a, b, c, d) { b = a.memoizedState; c = c(d, b); c = null === c || void 0 === c ? b : A({}, b, c); a.memoizedState = c; 0 === a.lanes && (a.updateQueue.baseState = c); } var Mg = { isMounted: function (a) { return (a = a._reactInternals) ? Ub(a) === a : !1; }, enqueueSetState: function (a, b, c) { a = a._reactInternals; var d = Jg(), e = Kg(a), f = zg(d, e); f.payload = b; void 0 !== c && null !== c && (f.callback = c); Ag(a, f); b = Lg(a, e, d); null !== b && Cg(b, a, e); }, enqueueReplaceState: function (a, b, c) { a = a._reactInternals; var d = Jg(), e = Kg(a), f = zg(d, e); f.tag = 1; f.payload = b; void 0 !== c && null !== c && (f.callback = c); Ag(a, f); b = Lg(a, e, d); null !== b && Cg(b, a, e); }, enqueueForceUpdate: function (a, b) { a = a._reactInternals; var c = Jg(), d = Kg(a), e = zg(c, d); e.tag = 2; void 0 !== b && null !== b && (e.callback = b); Ag(a, e); b = Lg(a, d, c); null !== b && Cg(b, a, d); }, }; function Ng(a, b, c, d, e, f, g) { a = a.stateNode; return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !He(c, d) || !He(e, f) : !0; } function Og(a, b, c) { var d = !1, e = Uf; var f = b.contextType; "object" === typeof f && null !== f ? (f = ug(f)) : ((e = Yf(b) ? Wf : H.current), (d = b.contextTypes), (f = (d = null !== d && void 0 !== d) ? Xf(a, e) : Uf)); b = new b(c, f); a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null; b.updater = Mg; a.stateNode = b; b._reactInternals = a; d && ((a = a.stateNode), (a.__reactInternalMemoizedUnmaskedChildContext = e), (a.__reactInternalMemoizedMaskedChildContext = f)); return b; } function Pg(a, b, c, d) { a = b.state; "function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d); "function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d); b.state !== a && Mg.enqueueReplaceState(b, b.state, null); } function Qg(a, b, c, d) { var e = a.stateNode; e.props = c; e.state = a.memoizedState; e.refs = Hg; xg(a); var f = b.contextType; "object" === typeof f && null !== f ? (e.context = ug(f)) : ((f = Yf(b) ? Wf : H.current), (e.context = Xf(a, f))); e.state = a.memoizedState; f = b.getDerivedStateFromProps; "function" === typeof f && (Ig(a, b, f, c), (e.state = a.memoizedState)); "function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || ("function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount) || ((b = e.state), "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Mg.enqueueReplaceState(e, e.state, null), Eg(a, c, e, d), (e.state = a.memoizedState)); "function" === typeof e.componentDidMount && (a.flags |= 4194308); } var Rg = [], Sg = 0, Tg = null, Ug = 0, Vg = [], Wg = 0, Xg = null, Yg = 1, Zg = ""; function $g(a, b) { Rg[Sg++] = Ug; Rg[Sg++] = Tg; Tg = a; Ug = b; } function ah(a, b, c) { Vg[Wg++] = Yg; Vg[Wg++] = Zg; Vg[Wg++] = Xg; Xg = a; var d = Yg; a = Zg; var e = 32 - nc(d) - 1; d &= ~(1 << e); c += 1; var f = 32 - nc(b) + e; if (30 < f) { var g = e - (e % 5); f = (d & ((1 << g) - 1)).toString(32); d >>= g; e -= g; Yg = (1 << (32 - nc(b) + e)) | (c << e) | d; Zg = f + a; } else (Yg = (1 << f) | (c << e) | d), (Zg = a); } function bh(a) { null !== a.return && ($g(a, 1), ah(a, 1, 0)); } function ch(a) { for (; a === Tg; ) (Tg = Rg[--Sg]), (Rg[Sg] = null), (Ug = Rg[--Sg]), (Rg[Sg] = null); for (; a === Xg; ) (Xg = Vg[--Wg]), (Vg[Wg] = null), (Zg = Vg[--Wg]), (Vg[Wg] = null), (Yg = Vg[--Wg]), (Vg[Wg] = null); } var dh = null, eh = null, I = !1, fh = null; function gh(a, b) { var c = hh(5, null, null, 0); c.elementType = "DELETED"; c.stateNode = b; c.return = a; b = a.deletions; null === b ? ((a.deletions = [c]), (a.flags |= 16)) : b.push(c); } function ih(a, b) { switch (a.tag) { case 5: var c = a.type; b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b; return null !== b ? ((a.stateNode = b), (dh = a), (eh = Kf(b.firstChild)), !0) : !1; case 6: return ( (b = "" === a.pendingProps || 3 !== b.nodeType ? null : b), null !== b ? ((a.stateNode = b), (dh = a), (eh = null), !0) : !1 ); case 13: return ( (b = 8 !== b.nodeType ? null : b), null !== b ? ((c = null !== Xg ? { id: Yg, overflow: Zg } : null), (a.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824, }), (c = hh(18, null, null, 0)), (c.stateNode = b), (c.return = a), (a.child = c), (dh = a), (eh = null), !0) : !1 ); default: return !1; } } function jh(a) { return 0 !== (a.mode & 1) && 0 === (a.flags & 128); } function kh(a) { if (I) { var b = eh; if (b) { var c = b; if (!ih(a, b)) { if (jh(a)) throw Error(p(418)); b = Kf(c.nextSibling); var d = dh; b && ih(a, b) ? gh(d, c) : ((a.flags = (a.flags & -4097) | 2), (I = !1), (dh = a)); } } else { if (jh(a)) throw Error(p(418)); a.flags = (a.flags & -4097) | 2; I = !1; dh = a; } } } function lh(a) { for ( a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; ) a = a.return; dh = a; } function mh(a) { if (a !== dh) return !1; if (!I) return lh(a), (I = !0), !1; var b; (b = 3 !== a.tag) && !(b = 5 !== a.tag) && ((b = a.type), (b = "head" !== b && "body" !== b && !Df(a.type, a.memoizedProps))); if (b && (b = eh)) { if (jh(a)) { for (a = eh; a; ) a = Kf(a.nextSibling); throw Error(p(418)); } for (; b; ) gh(a, b), (b = Kf(b.nextSibling)); } lh(a); if (13 === a.tag) { a = a.memoizedState; a = null !== a ? a.dehydrated : null; if (!a) throw Error(p(317)); a: { a = a.nextSibling; for (b = 0; a; ) { if (8 === a.nodeType) { var c = a.data; if ("/$" === c) { if (0 === b) { eh = Kf(a.nextSibling); break a; } b--; } else ("$" !== c && "$!" !== c && "$?" !== c) || b++; } a = a.nextSibling; } eh = null; } } else eh = dh ? Kf(a.stateNode.nextSibling) : null; return !0; } function nh() { eh = dh = null; I = !1; } function oh(a) { null === fh ? (fh = [a]) : fh.push(a); } function ph(a, b, c) { a = c.ref; if ( null !== a && "function" !== typeof a && "object" !== typeof a ) { if (c._owner) { c = c._owner; if (c) { if (1 !== c.tag) throw Error(p(309)); var d = c.stateNode; } if (!d) throw Error(p(147, a)); var e = d, f = "" + a; if ( null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f ) return b.ref; b = function (a) { var b = e.refs; b === Hg && (b = e.refs = {}); null === a ? delete b[f] : (b[f] = a); }; b._stringRef = f; return b; } if ("string" !== typeof a) throw Error(p(284)); if (!c._owner) throw Error(p(290, a)); } return a; } function qh(a, b) { a = Object.prototype.toString.call(b); throw Error( p( 31, "[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a ) ); } function rh(a) { var b = a._init; return b(a._payload); } function sh(a) { function b(b, c) { if (a) { var d = b.deletions; null === d ? ((b.deletions = [c]), (b.flags |= 16)) : d.push(c); } } function c(c, d) { if (!a) return null; for (; null !== d; ) b(c, d), (d = d.sibling); return null; } function d(a, b) { for (a = new Map(); null !== b; ) null !== b.key ? a.set(b.key, b) : a.set(b.index, b), (b = b.sibling); return a; } function e(a, b) { a = th(a, b); a.index = 0; a.sibling = null; return a; } function f(b, c, d) { b.index = d; if (!a) return (b.flags |= 1048576), c; d = b.alternate; if (null !== d) return (d = d.index), d < c ? ((b.flags |= 2), c) : d; b.flags |= 2; return c; } function g(b) { a && null === b.alternate && (b.flags |= 2); return b; } function h(a, b, c, d) { if (null === b || 6 !== b.tag) return (b = uh(c, a.mode, d)), (b.return = a), b; b = e(b, c); b.return = a; return b; } function k(a, b, c, d) { var f = c.type; if (f === wa) return n(a, b, c.props.children, d, c.key); if ( null !== b && (b.elementType === f || ("object" === typeof f && null !== f && f.$$typeof === Ga && rh(f) === b.type)) ) return ( (d = e(b, c.props)), (d.ref = ph(a, b, c)), (d.return = a), d ); d = vh(c.type, c.key, c.props, null, a.mode, d); d.ref = ph(a, b, c); d.return = a; return d; } function l(a, b, c, d) { if ( null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation ) return (b = wh(c, a.mode, d)), (b.return = a), b; b = e(b, c.children || []); b.return = a; return b; } function n(a, b, c, d, f) { if (null === b || 7 !== b.tag) return (b = xh(c, a.mode, d, f)), (b.return = a), b; b = e(b, c); b.return = a; return b; } function u(a, b, c) { if ( ("string" === typeof b && "" !== b) || "number" === typeof b ) return (b = uh("" + b, a.mode, c)), (b.return = a), b; if ("object" === typeof b && null !== b) { switch (b.$$typeof) { case ua: return ( (c = vh( b.type, b.key, b.props, null, a.mode, c )), (c.ref = ph(a, null, b)), (c.return = a), c ); case va: return ( (b = wh(b, a.mode, c)), (b.return = a), b ); case Ga: var d = b._init; return u(a, d(b._payload), c); } if (db(b) || Ja(b)) return ( (b = xh(b, a.mode, c, null)), (b.return = a), b ); qh(a, b); } return null; } function q(a, b, c, d) { var e = null !== b ? b.key : null; if ( ("string" === typeof c && "" !== c) || "number" === typeof c ) return null !== e ? null : h(a, b, "" + c, d); if ("object" === typeof c && null !== c) { switch (c.$$typeof) { case ua: return c.key === e ? k(a, b, c, d) : null; case va: return c.key === e ? l(a, b, c, d) : null; case Ga: return (e = c._init), q(a, b, e(c._payload), d); } if (db(c) || Ja(c)) return null !== e ? null : n(a, b, c, d, null); qh(a, c); } return null; } function y(a, b, c, d, e) { if ( ("string" === typeof d && "" !== d) || "number" === typeof d ) return (a = a.get(c) || null), h(b, a, "" + d, e); if ("object" === typeof d && null !== d) { switch (d.$$typeof) { case ua: return ( (a = a.get(null === d.key ? c : d.key) || null), k(b, a, d, e) ); case va: return ( (a = a.get(null === d.key ? c : d.key) || null), l(b, a, d, e) ); case Ga: var f = d._init; return y(a, b, c, f(d._payload), e); } if (db(d) || Ja(d)) return (a = a.get(c) || null), n(b, a, d, e, null); qh(b, d); } return null; } function m(e, g, h, k) { for ( var l = null, n = null, r = g, m = (g = 0), x = null; null !== r && m < h.length; m++ ) { r.index > m ? ((x = r), (r = null)) : (x = r.sibling); var v = q(e, r, h[m], k); if (null === v) { null === r && (r = x); break; } a && r && null === v.alternate && b(e, r); g = f(v, g, m); null === n ? (l = v) : (n.sibling = v); n = v; r = x; } if (m === h.length) return c(e, r), I && $g(e, m), l; if (null === r) { for (; m < h.length; m++) (r = u(e, h[m], k)), null !== r && ((g = f(r, g, m)), null === n ? (l = r) : (n.sibling = r), (n = r)); I && $g(e, m); return l; } for (r = d(e, r); m < h.length; m++) (x = y(r, e, m, h[m], k)), null !== x && (a && null !== x.alternate && r.delete(null === x.key ? m : x.key), (g = f(x, g, m)), null === n ? (l = x) : (n.sibling = x), (n = x)); a && r.forEach(function (a) { return b(e, a); }); I && $g(e, m); return l; } function w(e, g, h, k) { var l = Ja(h); if ("function" !== typeof l) throw Error(p(150)); h = l.call(h); if (null == h) throw Error(p(151)); for ( var n = (l = null), m = g, r = (g = 0), x = null, v = h.next(); null !== m && !v.done; r++, v = h.next() ) { m.index > r ? ((x = m), (m = null)) : (x = m.sibling); var w = q(e, m, v.value, k); if (null === w) { null === m && (m = x); break; } a && m && null === w.alternate && b(e, m); g = f(w, g, r); null === n ? (l = w) : (n.sibling = w); n = w; m = x; } if (v.done) return c(e, m), I && $g(e, r), l; if (null === m) { for (; !v.done; r++, v = h.next()) (v = u(e, v.value, k)), null !== v && ((g = f(v, g, r)), null === n ? (l = v) : (n.sibling = v), (n = v)); I && $g(e, r); return l; } for (m = d(e, m); !v.done; r++, v = h.next()) (v = y(m, e, r, v.value, k)), null !== v && (a && null !== v.alternate && m.delete(null === v.key ? r : v.key), (g = f(v, g, r)), null === n ? (l = v) : (n.sibling = v), (n = v)); a && m.forEach(function (a) { return b(e, a); }); I && $g(e, r); return l; } function J(a, d, f, h) { "object" === typeof f && null !== f && f.type === wa && null === f.key && (f = f.props.children); if ("object" === typeof f && null !== f) { switch (f.$$typeof) { case ua: a: { for (var k = f.key, l = d; null !== l; ) { if (l.key === k) { k = f.type; if (k === wa) { if (7 === l.tag) { c(a, l.sibling); d = e(l, f.props.children); d.return = a; a = d; break a; } } else if ( l.elementType === k || ("object" === typeof k && null !== k && k.$$typeof === Ga && rh(k) === l.type) ) { c(a, l.sibling); d = e(l, f.props); d.ref = ph(a, l, f); d.return = a; a = d; break a; } c(a, l); break; } else b(a, l); l = l.sibling; } f.type === wa ? ((d = xh( f.props.children, a.mode, h, f.key )), (d.return = a), (a = d)) : ((h = vh( f.type, f.key, f.props, null, a.mode, h )), (h.ref = ph(a, d, f)), (h.return = a), (a = h)); } return g(a); case va: a: { for (l = f.key; null !== d; ) { if (d.key === l) if ( 4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation ) { c(a, d.sibling); d = e(d, f.children || []); d.return = a; a = d; break a; } else { c(a, d); break; } else b(a, d); d = d.sibling; } d = wh(f, a.mode, h); d.return = a; a = d; } return g(a); case Ga: return (l = f._init), J(a, d, l(f._payload), h); } if (db(f)) return m(a, d, f, h); if (Ja(f)) return w(a, d, f, h); qh(a, f); } return ("string" === typeof f && "" !== f) || "number" === typeof f ? ((f = "" + f), null !== d && 6 === d.tag ? (c(a, d.sibling), (d = e(d, f)), (d.return = a), (a = d)) : (c(a, d), (d = uh(f, a.mode, h)), (d.return = a), (a = d)), g(a)) : c(a, d); } return J; } var yh = sh(!0), zh = sh(!1), Ah = {}, Bh = Tf(Ah), Ch = Tf(Ah), Dh = Tf(Ah); function Eh(a) { if (a === Ah) throw Error(p(174)); return a; } function Fh(a, b) { G(Dh, b); G(Ch, a); G(Bh, Ah); a = b.nodeType; switch (a) { case 9: case 11: b = (b = b.documentElement) ? b.namespaceURI : kb(null, ""); break; default: (a = 8 === a ? b.parentNode : b), (b = a.namespaceURI || null), (a = a.tagName), (b = kb(b, a)); } E(Bh); G(Bh, b); } function Gh() { E(Bh); E(Ch); E(Dh); } function Hh(a) { Eh(Dh.current); var b = Eh(Bh.current); var c = kb(b, a.type); b !== c && (G(Ch, a), G(Bh, c)); } function Ih(a) { Ch.current === a && (E(Bh), E(Ch)); } var K = Tf(0); function Jh(a) { for (var b = a; null !== b; ) { if (13 === b.tag) { var c = b.memoizedState; if ( null !== c && ((c = c.dehydrated), null === c || "$?" === c.data || "$!" === c.data) ) return b; } else if ( 19 === b.tag && void 0 !== b.memoizedProps.revealOrder ) { if (0 !== (b.flags & 128)) return b; } else if (null !== b.child) { b.child.return = b; b = b.child; continue; } if (b === a) break; for (; null === b.sibling; ) { if (null === b.return || b.return === a) return null; b = b.return; } b.sibling.return = b.return; b = b.sibling; } return null; } var Kh = []; function Lh() { for (var a = 0; a < Kh.length; a++) Kh[a]._workInProgressVersionPrimary = null; Kh.length = 0; } var Mh = ta.ReactCurrentDispatcher, Nh = ta.ReactCurrentBatchConfig, Oh = 0, L = null, M = null, N = null, Ph = !1, Qh = !1, Rh = 0, Sh = 0; function O() { throw Error(p(321)); } function Th(a, b) { if (null === b) return !1; for (var c = 0; c < b.length && c < a.length; c++) if (!Ge(a[c], b[c])) return !1; return !0; } function Uh(a, b, c, d, e, f) { Oh = f; L = b; b.memoizedState = null; b.updateQueue = null; b.lanes = 0; Mh.current = null === a || null === a.memoizedState ? Vh : Wh; a = c(d, e); if (Qh) { f = 0; do { Qh = !1; Rh = 0; if (25 <= f) throw Error(p(301)); f += 1; N = M = null; b.updateQueue = null; Mh.current = Xh; a = c(d, e); } while (Qh); } Mh.current = Yh; b = null !== M && null !== M.next; Oh = 0; N = M = L = null; Ph = !1; if (b) throw Error(p(300)); return a; } function Zh() { var a = 0 !== Rh; Rh = 0; return a; } function $h() { var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null, }; null === N ? (L.memoizedState = N = a) : (N = N.next = a); return N; } function ai() { if (null === M) { var a = L.alternate; a = null !== a ? a.memoizedState : null; } else a = M.next; var b = null === N ? L.memoizedState : N.next; if (null !== b) (N = b), (M = a); else { if (null === a) throw Error(p(310)); M = a; a = { memoizedState: M.memoizedState, baseState: M.baseState, baseQueue: M.baseQueue, queue: M.queue, next: null, }; null === N ? (L.memoizedState = N = a) : (N = N.next = a); } return N; } function bi(a, b) { return "function" === typeof b ? b(a) : b; } function ci(a) { var b = ai(), c = b.queue; if (null === c) throw Error(p(311)); c.lastRenderedReducer = a; var d = M, e = d.baseQueue, f = c.pending; if (null !== f) { if (null !== e) { var g = e.next; e.next = f.next; f.next = g; } d.baseQueue = e = f; c.pending = null; } if (null !== e) { f = e.next; d = d.baseState; var h = (g = null), k = null, l = f; do { var n = l.lane; if ((Oh & n) === n) null !== k && (k = k.next = { lane: 0, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null, }), (d = l.hasEagerState ? l.eagerState : a(d, l.action)); else { var u = { lane: n, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null, }; null === k ? ((h = k = u), (g = d)) : (k = k.next = u); L.lanes |= n; Fg |= n; } l = l.next; } while (null !== l && l !== f); null === k ? (g = d) : (k.next = h); Ge(d, b.memoizedState) || (tg = !0); b.memoizedState = d; b.baseState = g; b.baseQueue = k; c.lastRenderedState = d; } a = c.interleaved; if (null !== a) { e = a; do (f = e.lane), (L.lanes |= f), (Fg |= f), (e = e.next); while (e !== a); } else null === e && (c.lanes = 0); return [b.memoizedState, c.dispatch]; } function di(a) { var b = ai(), c = b.queue; if (null === c) throw Error(p(311)); c.lastRenderedReducer = a; var d = c.dispatch, e = c.pending, f = b.memoizedState; if (null !== e) { c.pending = null; var g = (e = e.next); do (f = a(f, g.action)), (g = g.next); while (g !== e); Ge(f, b.memoizedState) || (tg = !0); b.memoizedState = f; null === b.baseQueue && (b.baseState = f); c.lastRenderedState = f; } return [f, d]; } function ei() {} function fi(a, b) { var c = L, d = ai(), e = b(), f = !Ge(d.memoizedState, e); f && ((d.memoizedState = e), (tg = !0)); d = d.queue; gi(hi.bind(null, c, d, a), [a]); if ( d.getSnapshot !== b || f || (null !== N && N.memoizedState.tag & 1) ) { c.flags |= 2048; ii(9, ji.bind(null, c, d, e, b), void 0, null); if (null === P) throw Error(p(349)); 0 !== (Oh & 30) || ki(c, b, e); } return e; } function ki(a, b, c) { a.flags |= 16384; a = { getSnapshot: b, value: c }; b = L.updateQueue; null === b ? ((b = { lastEffect: null, stores: null }), (L.updateQueue = b), (b.stores = [a])) : ((c = b.stores), null === c ? (b.stores = [a]) : c.push(a)); } function ji(a, b, c, d) { b.value = c; b.getSnapshot = d; li(b) && Lg(a, 1, -1); } function hi(a, b, c) { return c(function () { li(b) && Lg(a, 1, -1); }); } function li(a) { var b = a.getSnapshot; a = a.value; try { var c = b(); return !Ge(a, c); } catch (d) { return !0; } } function mi(a) { var b = $h(); "function" === typeof a && (a = a()); b.memoizedState = b.baseState = a; a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: bi, lastRenderedState: a, }; b.queue = a; a = a.dispatch = ni.bind(null, L, a); return [b.memoizedState, a]; } function ii(a, b, c, d) { a = { tag: a, create: b, destroy: c, deps: d, next: null }; b = L.updateQueue; null === b ? ((b = { lastEffect: null, stores: null }), (L.updateQueue = b), (b.lastEffect = a.next = a)) : ((c = b.lastEffect), null === c ? (b.lastEffect = a.next = a) : ((d = c.next), (c.next = a), (a.next = d), (b.lastEffect = a))); return a; } function oi() { return ai().memoizedState; } function pi(a, b, c, d) { var e = $h(); L.flags |= a; e.memoizedState = ii(1 | b, c, void 0, void 0 === d ? null : d); } function qi(a, b, c, d) { var e = ai(); d = void 0 === d ? null : d; var f = void 0; if (null !== M) { var g = M.memoizedState; f = g.destroy; if (null !== d && Th(d, g.deps)) { e.memoizedState = ii(b, c, f, d); return; } } L.flags |= a; e.memoizedState = ii(1 | b, c, f, d); } function ri(a, b) { return pi(8390656, 8, a, b); } function gi(a, b) { return qi(2048, 8, a, b); } function si(a, b) { return qi(4, 2, a, b); } function ti(a, b) { return qi(4, 4, a, b); } function ui(a, b) { if ("function" === typeof b) return ( (a = a()), b(a), function () { b(null); } ); if (null !== b && void 0 !== b) return ( (a = a()), (b.current = a), function () { b.current = null; } ); } function vi(a, b, c) { c = null !== c && void 0 !== c ? c.concat([a]) : null; return qi(4, 4, ui.bind(null, b, a), c); } function wi() {} function xi(a, b) { var c = ai(); b = void 0 === b ? null : b; var d = c.memoizedState; if (null !== d && null !== b && Th(b, d[1])) return d[0]; c.memoizedState = [a, b]; return a; } function yi(a, b) { var c = ai(); b = void 0 === b ? null : b; var d = c.memoizedState; if (null !== d && null !== b && Th(b, d[1])) return d[0]; a = a(); c.memoizedState = [a, b]; return a; } function zi(a, b, c) { if (0 === (Oh & 21)) return ( a.baseState && ((a.baseState = !1), (tg = !0)), (a.memoizedState = c) ); Ge(c, b) || ((c = xc()), (L.lanes |= c), (Fg |= c), (a.baseState = !0)); return b; } function Ai(a, b) { var c = C; C = 0 !== c && 4 > c ? c : 4; a(!0); var d = Nh.transition; Nh.transition = {}; try { a(!1), b(); } finally { (C = c), (Nh.transition = d); } } function Bi() { return ai().memoizedState; } function Ci(a, b, c) { var d = Kg(a); c = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null, }; Di(a) ? Ei(b, c) : (Fi(a, b, c), (c = Jg()), (a = Lg(a, d, c)), null !== a && Gi(a, b, d)); } function ni(a, b, c) { var d = Kg(a), e = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null, }; if (Di(a)) Ei(b, e); else { Fi(a, b, e); var f = a.alternate; if ( 0 === a.lanes && (null === f || 0 === f.lanes) && ((f = b.lastRenderedReducer), null !== f) ) try { var g = b.lastRenderedState, h = f(g, c); e.hasEagerState = !0; e.eagerState = h; if (Ge(h, g)) return; } catch (k) { } finally { } c = Jg(); a = Lg(a, d, c); null !== a && Gi(a, b, d); } } function Di(a) { var b = a.alternate; return a === L || (null !== b && b === L); } function Ei(a, b) { Qh = Ph = !0; var c = a.pending; null === c ? (b.next = b) : ((b.next = c.next), (c.next = b)); a.pending = b; } function Fi(a, b, c) { Bg(a) ? ((a = b.interleaved), null === a ? ((c.next = c), null === vg ? (vg = [b]) : vg.push(b)) : ((c.next = a.next), (a.next = c)), (b.interleaved = c)) : ((a = b.pending), null === a ? (c.next = c) : ((c.next = a.next), (a.next = c)), (b.pending = c)); } function Gi(a, b, c) { if (0 !== (c & 4194240)) { var d = b.lanes; d &= a.pendingLanes; c |= d; b.lanes = c; Bc(a, c); } } var Yh = { readContext: ug, useCallback: O, useContext: O, useEffect: O, useImperativeHandle: O, useInsertionEffect: O, useLayoutEffect: O, useMemo: O, useReducer: O, useRef: O, useState: O, useDebugValue: O, useDeferredValue: O, useTransition: O, useMutableSource: O, useSyncExternalStore: O, useId: O, unstable_isNewReconciler: !1, }, Vh = { readContext: ug, useCallback: function (a, b) { $h().memoizedState = [a, void 0 === b ? null : b]; return a; }, useContext: ug, useEffect: ri, useImperativeHandle: function (a, b, c) { c = null !== c && void 0 !== c ? c.concat([a]) : null; return pi(4194308, 4, ui.bind(null, b, a), c); }, useLayoutEffect: function (a, b) { return pi(4194308, 4, a, b); }, useInsertionEffect: function (a, b) { return pi(4, 2, a, b); }, useMemo: function (a, b) { var c = $h(); b = void 0 === b ? null : b; a = a(); c.memoizedState = [a, b]; return a; }, useReducer: function (a, b, c) { var d = $h(); b = void 0 !== c ? c(b) : b; d.memoizedState = d.baseState = b; a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b, }; d.queue = a; a = a.dispatch = Ci.bind(null, L, a); return [d.memoizedState, a]; }, useRef: function (a) { var b = $h(); a = { current: a }; return (b.memoizedState = a); }, useState: mi, useDebugValue: wi, useDeferredValue: function (a) { return ($h().memoizedState = a); }, useTransition: function () { var a = mi(!1), b = a[0]; a = Ai.bind(null, a[1]); $h().memoizedState = a; return [b, a]; }, useMutableSource: function () {}, useSyncExternalStore: function (a, b, c) { var d = L, e = $h(); if (I) { if (void 0 === c) throw Error(p(407)); c = c(); } else { c = b(); if (null === P) throw Error(p(349)); 0 !== (Oh & 30) || ki(d, b, c); } e.memoizedState = c; var f = { value: c, getSnapshot: b }; e.queue = f; ri(hi.bind(null, d, f, a), [a]); d.flags |= 2048; ii(9, ji.bind(null, d, f, c, b), void 0, null); return c; }, useId: function () { var a = $h(), b = P.identifierPrefix; if (I) { var c = Zg; var d = Yg; c = (d & ~(1 << (32 - nc(d) - 1))).toString(32) + c; b = ":" + b + "R" + c; c = Rh++; 0 < c && (b += "H" + c.toString(32)); b += ":"; } else (c = Sh++), (b = ":" + b + "r" + c.toString(32) + ":"); return (a.memoizedState = b); }, unstable_isNewReconciler: !1, }, Wh = { readContext: ug, useCallback: xi, useContext: ug, useEffect: gi, useImperativeHandle: vi, useInsertionEffect: si, useLayoutEffect: ti, useMemo: yi, useReducer: ci, useRef: oi, useState: function () { return ci(bi); }, useDebugValue: wi, useDeferredValue: function (a) { var b = ai(); return zi(b, M.memoizedState, a); }, useTransition: function () { var a = ci(bi)[0], b = ai().memoizedState; return [a, b]; }, useMutableSource: ei, useSyncExternalStore: fi, useId: Bi, unstable_isNewReconciler: !1, }, Xh = { readContext: ug, useCallback: xi, useContext: ug, useEffect: gi, useImperativeHandle: vi, useInsertionEffect: si, useLayoutEffect: ti, useMemo: yi, useReducer: di, useRef: oi, useState: function () { return di(bi); }, useDebugValue: wi, useDeferredValue: function (a) { var b = ai(); return null === M ? (b.memoizedState = a) : zi(b, M.memoizedState, a); }, useTransition: function () { var a = di(bi)[0], b = ai().memoizedState; return [a, b]; }, useMutableSource: ei, useSyncExternalStore: fi, useId: Bi, unstable_isNewReconciler: !1, }; function Hi(a, b) { try { var c = "", d = b; do (c += Oa(d)), (d = d.return); while (d); var e = c; } catch (f) { e = "\nError generating stack: " + f.message + "\n" + f.stack; } return { value: a, source: b, stack: e }; } function Ii(a, b) { try { console.error(b.value); } catch (c) { setTimeout(function () { throw c; }); } } var Ji = "function" === typeof WeakMap ? WeakMap : Map; function Ki(a, b, c) { c = zg(-1, c); c.tag = 3; c.payload = { element: null }; var d = b.value; c.callback = function () { Li || ((Li = !0), (Mi = d)); Ii(a, b); }; return c; } function Ni(a, b, c) { c = zg(-1, c); c.tag = 3; var d = a.type.getDerivedStateFromError; if ("function" === typeof d) { var e = b.value; c.payload = function () { return d(e); }; c.callback = function () { Ii(a, b); }; } var f = a.stateNode; null !== f && "function" === typeof f.componentDidCatch && (c.callback = function () { Ii(a, b); "function" !== typeof d && (null === Oi ? (Oi = new Set([this])) : Oi.add(this)); var c = b.stack; this.componentDidCatch(b.value, { componentStack: null !== c ? c : "", }); }); return c; } function Pi(a, b, c) { var d = a.pingCache; if (null === d) { d = a.pingCache = new Ji(); var e = new Set(); d.set(b, e); } else (e = d.get(b)), void 0 === e && ((e = new Set()), d.set(b, e)); e.has(c) || (e.add(c), (a = Qi.bind(null, a, b, c)), b.then(a, a)); } function Ri(a) { do { var b; if ((b = 13 === a.tag)) (b = a.memoizedState), (b = null !== b ? null !== b.dehydrated ? !0 : !1 : !0); if (b) return a; a = a.return; } while (null !== a); return null; } function Si(a, b, c, d, e) { if (0 === (a.mode & 1)) return ( a === b ? (a.flags |= 65536) : ((a.flags |= 128), (c.flags |= 131072), (c.flags &= -52805), 1 === c.tag && (null === c.alternate ? (c.tag = 17) : ((b = zg(-1, 1)), (b.tag = 2), Ag(c, b))), (c.lanes |= 1)), a ); a.flags |= 65536; a.lanes = e; return a; } var Ti, Ui, Vi, Wi; Ti = function (a, b) { for (var c = b.child; null !== c; ) { if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode); else if (4 !== c.tag && null !== c.child) { c.child.return = c; c = c.child; continue; } if (c === b) break; for (; null === c.sibling; ) { if (null === c.return || c.return === b) return; c = c.return; } c.sibling.return = c.return; c = c.sibling; } }; Ui = function () {}; Vi = function (a, b, c, d) { var e = a.memoizedProps; if (e !== d) { a = b.stateNode; Eh(Bh.current); var f = null; switch (c) { case "input": e = Xa(a, e); d = Xa(a, d); f = []; break; case "select": e = A({}, e, { value: void 0 }); d = A({}, d, { value: void 0 }); f = []; break; case "textarea": e = fb(a, e); d = fb(a, d); f = []; break; default: "function" !== typeof e.onClick && "function" === typeof d.onClick && (a.onclick = Af); } tb(c, d); var g; c = null; for (l in e) if ( !d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l] ) if ("style" === l) { var h = e[l]; for (g in h) h.hasOwnProperty(g) && (c || (c = {}), (c[g] = "")); } else "dangerouslySetInnerHTML" !== l && "children" !== l && "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (ea.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null)); for (l in d) { var k = d[l]; h = null != e ? e[l] : void 0; if ( d.hasOwnProperty(l) && k !== h && (null != k || null != h) ) if ("style" === l) if (h) { for (g in h) !h.hasOwnProperty(g) || (k && k.hasOwnProperty(g)) || (c || (c = {}), (c[g] = "")); for (g in k) k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), (c[g] = k[g])); } else c || (f || (f = []), f.push(l, c)), (c = k); else "dangerouslySetInnerHTML" === l ? ((k = k ? k.__html : void 0), (h = h ? h.__html : void 0), null != k && h !== k && (f = f || []).push(l, k)) : "children" === l ? ("string" !== typeof k && "number" !== typeof k) || (f = f || []).push(l, "" + k) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && (ea.hasOwnProperty(l) ? (null != k && "onScroll" === l && D("scroll", a), f || h === k || (f = [])) : (f = f || []).push(l, k)); } c && (f = f || []).push("style", c); var l = f; if ((b.updateQueue = l)) b.flags |= 4; } }; Wi = function (a, b, c, d) { c !== d && (b.flags |= 4); }; function Xi(a, b) { if (!I) switch (a.tailMode) { case "hidden": b = a.tail; for (var c = null; null !== b; ) null !== b.alternate && (c = b), (b = b.sibling); null === c ? (a.tail = null) : (c.sibling = null); break; case "collapsed": c = a.tail; for (var d = null; null !== c; ) null !== c.alternate && (d = c), (c = c.sibling); null === d ? b || null === a.tail ? (a.tail = null) : (a.tail.sibling = null) : (d.sibling = null); } } function Q(a) { var b = null !== a.alternate && a.alternate.child === a.child, c = 0, d = 0; if (b) for (var e = a.child; null !== e; ) (c |= e.lanes | e.childLanes), (d |= e.subtreeFlags & 14680064), (d |= e.flags & 14680064), (e.return = a), (e = e.sibling); else for (e = a.child; null !== e; ) (c |= e.lanes | e.childLanes), (d |= e.subtreeFlags), (d |= e.flags), (e.return = a), (e = e.sibling); a.subtreeFlags |= d; a.childLanes = c; return b; } function Yi(a, b, c) { var d = b.pendingProps; ch(b); switch (b.tag) { case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return Q(b), null; case 1: return Yf(b.type) && Zf(), Q(b), null; case 3: d = b.stateNode; Gh(); E(Vf); E(H); Lh(); d.pendingContext && ((d.context = d.pendingContext), (d.pendingContext = null)); if (null === a || null === a.child) mh(b) ? (b.flags |= 4) : null === a || (a.memoizedState.isDehydrated && 0 === (b.flags & 256)) || ((b.flags |= 1024), null !== fh && (Zi(fh), (fh = null))); Ui(a, b); Q(b); return null; case 5: Ih(b); var e = Eh(Dh.current); c = b.type; if (null !== a && null != b.stateNode) Vi(a, b, c, d, e), a.ref !== b.ref && ((b.flags |= 512), (b.flags |= 2097152)); else { if (!d) { if (null === b.stateNode) throw Error(p(166)); Q(b); return null; } a = Eh(Bh.current); if (mh(b)) { d = b.stateNode; c = b.type; var f = b.memoizedProps; d[Nf] = b; d[Of] = f; a = 0 !== (b.mode & 1); switch (c) { case "dialog": D("cancel", d); D("close", d); break; case "iframe": case "object": case "embed": D("load", d); break; case "video": case "audio": for (e = 0; e < kf.length; e++) D(kf[e], d); break; case "source": D("error", d); break; case "img": case "image": case "link": D("error", d); D("load", d); break; case "details": D("toggle", d); break; case "input": Ya(d, f); D("invalid", d); break; case "select": d._wrapperState = { wasMultiple: !!f.multiple, }; D("invalid", d); break; case "textarea": gb(d, f), D("invalid", d); } tb(c, f); e = null; for (var g in f) if (f.hasOwnProperty(g)) { var h = f[g]; "children" === g ? "string" === typeof h ? d.textContent !== h && (!0 !== f.suppressHydrationWarning && zf(d.textContent, h, a), (e = ["children", h])) : "number" === typeof h && d.textContent !== "" + h && (!0 !== f.suppressHydrationWarning && zf(d.textContent, h, a), (e = ["children", "" + h])) : ea.hasOwnProperty(g) && null != h && "onScroll" === g && D("scroll", d); } switch (c) { case "input": Ua(d); cb(d, f, !0); break; case "textarea": Ua(d); ib(d); break; case "select": case "option": break; default: "function" === typeof f.onClick && (d.onclick = Af); } d = e; b.updateQueue = d; null !== d && (b.flags |= 4); } else { g = 9 === e.nodeType ? e : e.ownerDocument; "http://www.w3.org/1999/xhtml" === a && (a = jb(c)); "http://www.w3.org/1999/xhtml" === a ? "script" === c ? ((a = g.createElement("div")), (a.innerHTML = "<script>\x3c/script>"), (a = a.removeChild(a.firstChild))) : "string" === typeof d.is ? (a = g.createElement(c, { is: d.is })) : ((a = g.createElement(c)), "select" === c && ((g = a), d.multiple ? (g.multiple = !0) : d.size && (g.size = d.size))) : (a = g.createElementNS(a, c)); a[Nf] = b; a[Of] = d; Ti(a, b, !1, !1); b.stateNode = a; a: { g = ub(c, d); switch (c) { case "dialog": D("cancel", a); D("close", a); e = d; break; case "iframe": case "object": case "embed": D("load", a); e = d; break; case "video": case "audio": for (e = 0; e < kf.length; e++) D(kf[e], a); e = d; break; case "source": D("error", a); e = d; break; case "img": case "image": case "link": D("error", a); D("load", a); e = d; break; case "details": D("toggle", a); e = d; break; case "input": Ya(a, d); e = Xa(a, d); D("invalid", a); break; case "option": e = d; break; case "select": a._wrapperState = { wasMultiple: !!d.multiple, }; e = A({}, d, { value: void 0 }); D("invalid", a); break; case "textarea": gb(a, d); e = fb(a, d); D("invalid", a); break; default: e = d; } tb(c, e); h = e; for (f in h) if (h.hasOwnProperty(f)) { var k = h[f]; "style" === f ? rb(a, k) : "dangerouslySetInnerHTML" === f ? ((k = k ? k.__html : void 0), null != k && mb(a, k)) : "children" === f ? "string" === typeof k ? ("textarea" !== c || "" !== k) && nb(a, k) : "number" === typeof k && nb(a, "" + k) : "suppressContentEditableWarning" !== f && "suppressHydrationWarning" !== f && "autoFocus" !== f && (ea.hasOwnProperty(f) ? null != k && "onScroll" === f && D("scroll", a) : null != k && sa(a, f, k, g)); } switch (c) { case "input": Ua(a); cb(a, d, !1); break; case "textarea": Ua(a); ib(a); break; case "option": null != d.value && a.setAttribute( "value", "" + Ra(d.value) ); break; case "select": a.multiple = !!d.multiple; f = d.value; null != f ? eb(a, !!d.multiple, f, !1) : null != d.defaultValue && eb( a, !!d.multiple, d.defaultValue, !0 ); break; default: "function" === typeof e.onClick && (a.onclick = Af); } switch (c) { case "button": case "input": case "select": case "textarea": d = !!d.autoFocus; break a; case "img": d = !0; break a; default: d = !1; } } d && (b.flags |= 4); } null !== b.ref && ((b.flags |= 512), (b.flags |= 2097152)); } Q(b); return null; case 6: if (a && null != b.stateNode) Wi(a, b, a.memoizedProps, d); else { if ("string" !== typeof d && null === b.stateNode) throw Error(p(166)); c = Eh(Dh.current); Eh(Bh.current); if (mh(b)) { d = b.stateNode; c = b.memoizedProps; d[Nf] = b; if ((f = d.nodeValue !== c)) if (((a = dh), null !== a)) switch (a.tag) { case 3: zf( d.nodeValue, c, 0 !== (a.mode & 1) ); break; case 5: !0 !== a.memoizedProps .suppressHydrationWarning && zf( d.nodeValue, c, 0 !== (a.mode & 1) ); } f && (b.flags |= 4); } else (d = ( 9 === c.nodeType ? c : c.ownerDocument ).createTextNode(d)), (d[Nf] = b), (b.stateNode = d); } Q(b); return null; case 13: E(K); d = b.memoizedState; if ( I && null !== eh && 0 !== (b.mode & 1) && 0 === (b.flags & 128) ) { for (d = eh; d; ) d = Kf(d.nextSibling); nh(); b.flags |= 98560; return b; } if (null !== d && null !== d.dehydrated) { d = mh(b); if (null === a) { if (!d) throw Error(p(318)); d = b.memoizedState; d = null !== d ? d.dehydrated : null; if (!d) throw Error(p(317)); d[Nf] = b; } else nh(), 0 === (b.flags & 128) && (b.memoizedState = null), (b.flags |= 4); Q(b); return null; } null !== fh && (Zi(fh), (fh = null)); if (0 !== (b.flags & 128)) return (b.lanes = c), b; d = null !== d; c = !1; null === a ? mh(b) : (c = null !== a.memoizedState); d !== c && d && ((b.child.flags |= 8192), 0 !== (b.mode & 1) && (null === a || 0 !== (K.current & 1) ? 0 === R && (R = 3) : $i())); null !== b.updateQueue && (b.flags |= 4); Q(b); return null; case 4: return ( Gh(), Ui(a, b), null === a && rf(b.stateNode.containerInfo), Q(b), null ); case 10: return qg(b.type._context), Q(b), null; case 17: return Yf(b.type) && Zf(), Q(b), null; case 19: E(K); f = b.memoizedState; if (null === f) return Q(b), null; d = 0 !== (b.flags & 128); g = f.rendering; if (null === g) if (d) Xi(f, !1); else { if ( 0 !== R || (null !== a && 0 !== (a.flags & 128)) ) for (a = b.child; null !== a; ) { g = Jh(a); if (null !== g) { b.flags |= 128; Xi(f, !1); d = g.updateQueue; null !== d && ((b.updateQueue = d), (b.flags |= 4)); b.subtreeFlags = 0; d = c; for (c = b.child; null !== c; ) (f = c), (a = d), (f.flags &= 14680066), (g = f.alternate), null === g ? ((f.childLanes = 0), (f.lanes = a), (f.child = null), (f.subtreeFlags = 0), (f.memoizedProps = null), (f.memoizedState = null), (f.updateQueue = null), (f.dependencies = null), (f.stateNode = null)) : ((f.childLanes = g.childLanes), (f.lanes = g.lanes), (f.child = g.child), (f.subtreeFlags = 0), (f.deletions = null), (f.memoizedProps = g.memoizedProps), (f.memoizedState = g.memoizedState), (f.updateQueue = g.updateQueue), (f.type = g.type), (a = g.dependencies), (f.dependencies = null === a ? null : { lanes: a.lanes, firstContext: a.firstContext, })), (c = c.sibling); G(K, (K.current & 1) | 2); return b.child; } a = a.sibling; } null !== f.tail && B() > aj && ((b.flags |= 128), (d = !0), Xi(f, !1), (b.lanes = 4194304)); } else { if (!d) if (((a = Jh(g)), null !== a)) { if ( ((b.flags |= 128), (d = !0), (c = a.updateQueue), null !== c && ((b.updateQueue = c), (b.flags |= 4)), Xi(f, !0), null === f.tail && "hidden" === f.tailMode && !g.alternate && !I) ) return Q(b), null; } else 2 * B() - f.renderingStartTime > aj && 1073741824 !== c && ((b.flags |= 128), (d = !0), Xi(f, !1), (b.lanes = 4194304)); f.isBackwards ? ((g.sibling = b.child), (b.child = g)) : ((c = f.last), null !== c ? (c.sibling = g) : (b.child = g), (f.last = g)); } if (null !== f.tail) return ( (b = f.tail), (f.rendering = b), (f.tail = b.sibling), (f.renderingStartTime = B()), (b.sibling = null), (c = K.current), G(K, d ? (c & 1) | 2 : c & 1), b ); Q(b); return null; case 22: case 23: return ( bj(), (d = null !== b.memoizedState), null !== a && (null !== a.memoizedState) !== d && (b.flags |= 8192), d && 0 !== (b.mode & 1) ? 0 !== (cj & 1073741824) && (Q(b), b.subtreeFlags & 6 && (b.flags |= 8192)) : Q(b), null ); case 24: return null; case 25: return null; } throw Error(p(156, b.tag)); } var dj = ta.ReactCurrentOwner, tg = !1; function ej(a, b, c, d) { b.child = null === a ? zh(b, null, c, d) : yh(b, a.child, c, d); } function fj(a, b, c, d, e) { c = c.render; var f = b.ref; sg(b, e); d = Uh(a, b, c, d, f, e); c = Zh(); if (null !== a && !tg) return ( (b.updateQueue = a.updateQueue), (b.flags &= -2053), (a.lanes &= ~e), gj(a, b, e) ); I && c && bh(b); b.flags |= 1; ej(a, b, d, e); return b.child; } function hj(a, b, c, d, e) { if (null === a) { var f = c.type; if ( "function" === typeof f && !ij(f) && void 0 === f.defaultProps && null === c.compare && void 0 === c.defaultProps ) return (b.tag = 15), (b.type = f), jj(a, b, f, d, e); a = vh(c.type, null, d, b, b.mode, e); a.ref = b.ref; a.return = b; return (b.child = a); } f = a.child; if (0 === (a.lanes & e)) { var g = f.memoizedProps; c = c.compare; c = null !== c ? c : He; if (c(g, d) && a.ref === b.ref) return gj(a, b, e); } b.flags |= 1; a = th(f, d); a.ref = b.ref; a.return = b; return (b.child = a); } function jj(a, b, c, d, e) { if (null !== a) { var f = a.memoizedProps; if (He(f, d) && a.ref === b.ref) if ( ((tg = !1), (b.pendingProps = d = f), 0 !== (a.lanes & e)) ) 0 !== (a.flags & 131072) && (tg = !0); else return (b.lanes = a.lanes), gj(a, b, e); } return kj(a, b, c, d, e); } function lj(a, b, c) { var d = b.pendingProps, e = d.children, f = null !== a ? a.memoizedState : null; if ("hidden" === d.mode) if (0 === (b.mode & 1)) (b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null, }), G(mj, cj), (cj |= c); else if (0 !== (c & 1073741824)) (b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null, }), (d = null !== f ? f.baseLanes : c), G(mj, cj), (cj |= d); else return ( (a = null !== f ? f.baseLanes | c : c), (b.lanes = b.childLanes = 1073741824), (b.memoizedState = { baseLanes: a, cachePool: null, transitions: null, }), (b.updateQueue = null), G(mj, cj), (cj |= a), null ); else null !== f ? ((d = f.baseLanes | c), (b.memoizedState = null)) : (d = c), G(mj, cj), (cj |= d); ej(a, b, e, c); return b.child; } function nj(a, b) { var c = b.ref; if ((null === a && null !== c) || (null !== a && a.ref !== c)) (b.flags |= 512), (b.flags |= 2097152); } function kj(a, b, c, d, e) { var f = Yf(c) ? Wf : H.current; f = Xf(b, f); sg(b, e); c = Uh(a, b, c, d, f, e); d = Zh(); if (null !== a && !tg) return ( (b.updateQueue = a.updateQueue), (b.flags &= -2053), (a.lanes &= ~e), gj(a, b, e) ); I && d && bh(b); b.flags |= 1; ej(a, b, c, e); return b.child; } function oj(a, b, c, d, e) { if (Yf(c)) { var f = !0; bg(b); } else f = !1; sg(b, e); if (null === b.stateNode) null !== a && ((a.alternate = null), (b.alternate = null), (b.flags |= 2)), Og(b, c, d), Qg(b, c, d, e), (d = !0); else if (null === a) { var g = b.stateNode, h = b.memoizedProps; g.props = h; var k = g.context, l = c.contextType; "object" === typeof l && null !== l ? (l = ug(l)) : ((l = Yf(c) ? Wf : H.current), (l = Xf(b, l))); var n = c.getDerivedStateFromProps, u = "function" === typeof n || "function" === typeof g.getSnapshotBeforeUpdate; u || ("function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps) || ((h !== d || k !== l) && Pg(b, g, d, l)); wg = !1; var q = b.memoizedState; g.state = q; Eg(b, d, g, e); k = b.memoizedState; h !== d || q !== k || Vf.current || wg ? ("function" === typeof n && (Ig(b, c, n, d), (k = b.memoizedState)), (h = wg || Ng(b, c, h, d, q, k, l)) ? (u || ("function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount) || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), (b.memoizedProps = d), (b.memoizedState = k)), (g.props = d), (g.state = k), (g.context = l), (d = h)) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), (d = !1)); } else { g = b.stateNode; yg(a, b); h = b.memoizedProps; l = b.type === b.elementType ? h : kg(b.type, h); g.props = l; u = b.pendingProps; q = g.context; k = c.contextType; "object" === typeof k && null !== k ? (k = ug(k)) : ((k = Yf(c) ? Wf : H.current), (k = Xf(b, k))); var y = c.getDerivedStateFromProps; (n = "function" === typeof y || "function" === typeof g.getSnapshotBeforeUpdate) || ("function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps) || ((h !== u || q !== k) && Pg(b, g, d, k)); wg = !1; q = b.memoizedState; g.state = q; Eg(b, d, g, e); var m = b.memoizedState; h !== u || q !== m || Vf.current || wg ? ("function" === typeof y && (Ig(b, c, y, d), (m = b.memoizedState)), (l = wg || Ng(b, c, l, d, q, m, k) || !1) ? (n || ("function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate) || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, m, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, m, k)), "function" === typeof g.componentDidUpdate && (b.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || (h === a.memoizedProps && q === a.memoizedState) || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || (h === a.memoizedProps && q === a.memoizedState) || (b.flags |= 1024), (b.memoizedProps = d), (b.memoizedState = m)), (g.props = d), (g.state = m), (g.context = k), (d = l)) : ("function" !== typeof g.componentDidUpdate || (h === a.memoizedProps && q === a.memoizedState) || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || (h === a.memoizedProps && q === a.memoizedState) || (b.flags |= 1024), (d = !1)); } return pj(a, b, c, d, f, e); } function pj(a, b, c, d, e, f) { nj(a, b); var g = 0 !== (b.flags & 128); if (!d && !g) return e && cg(b, c, !1), gj(a, b, f); d = b.stateNode; dj.current = b; var h = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render(); b.flags |= 1; null !== a && g ? ((b.child = yh(b, a.child, null, f)), (b.child = yh(b, null, h, f))) : ej(a, b, h, f); b.memoizedState = d.state; e && cg(b, c, !0); return b.child; } function qj(a) { var b = a.stateNode; b.pendingContext ? $f(a, b.pendingContext, b.pendingContext !== b.context) : b.context && $f(a, b.context, !1); Fh(a, b.containerInfo); } function rj(a, b, c, d, e) { nh(); oh(e); b.flags |= 256; ej(a, b, c, d); return b.child; } var sj = { dehydrated: null, treeContext: null, retryLane: 0 }; function tj(a) { return { baseLanes: a, cachePool: null, transitions: null }; } function uj(a, b) { return { baseLanes: a.baseLanes | b, cachePool: null, transitions: a.transitions, }; } function vj(a, b, c) { var d = b.pendingProps, e = K.current, f = !1, g = 0 !== (b.flags & 128), h; (h = g) || (h = null !== a && null === a.memoizedState ? !1 : 0 !== (e & 2)); if (h) (f = !0), (b.flags &= -129); else if (null === a || null !== a.memoizedState) e |= 1; G(K, e & 1); if (null === a) { kh(b); a = b.memoizedState; if (null !== a && ((a = a.dehydrated), null !== a)) return ( 0 === (b.mode & 1) ? (b.lanes = 1) : "$!" === a.data ? (b.lanes = 8) : (b.lanes = 1073741824), null ); e = d.children; a = d.fallback; return f ? ((d = b.mode), (f = b.child), (e = { mode: "hidden", children: e }), 0 === (d & 1) && null !== f ? ((f.childLanes = 0), (f.pendingProps = e)) : (f = wj(e, d, 0, null)), (a = xh(a, d, c, null)), (f.return = b), (a.return = b), (f.sibling = a), (b.child = f), (b.child.memoizedState = tj(c)), (b.memoizedState = sj), a) : xj(b, e); } e = a.memoizedState; if (null !== e) { h = e.dehydrated; if (null !== h) { if (g) { if (b.flags & 256) return ( (b.flags &= -257), yj(a, b, c, Error(p(422))) ); if (null !== b.memoizedState) return ( (b.child = a.child), (b.flags |= 128), null ); f = d.fallback; e = b.mode; d = wj( { mode: "visible", children: d.children }, e, 0, null ); f = xh(f, e, c, null); f.flags |= 2; d.return = b; f.return = b; d.sibling = f; b.child = d; 0 !== (b.mode & 1) && yh(b, a.child, null, c); b.child.memoizedState = tj(c); b.memoizedState = sj; return f; } if (0 === (b.mode & 1)) b = yj(a, b, c, null); else if ("$!" === h.data) b = yj(a, b, c, Error(p(419))); else if (((d = 0 !== (c & a.childLanes)), tg || d)) { d = P; if (null !== d) { switch (c & -c) { case 4: f = 2; break; case 16: f = 8; break; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: f = 32; break; case 536870912: f = 268435456; break; default: f = 0; } d = 0 !== (f & (d.suspendedLanes | c)) ? 0 : f; 0 !== d && d !== e.retryLane && ((e.retryLane = d), Lg(a, d, -1)); } $i(); b = yj(a, b, c, Error(p(421))); } else "$?" === h.data ? ((b.flags |= 128), (b.child = a.child), (b = zj.bind(null, a)), (h._reactRetry = b), (b = null)) : ((c = e.treeContext), (eh = Kf(h.nextSibling)), (dh = b), (I = !0), (fh = null), null !== c && ((Vg[Wg++] = Yg), (Vg[Wg++] = Zg), (Vg[Wg++] = Xg), (Yg = c.id), (Zg = c.overflow), (Xg = b)), (b = xj(b, b.pendingProps.children)), (b.flags |= 4096)); return b; } if (f) return ( (d = Aj(a, b, d.children, d.fallback, c)), (f = b.child), (e = a.child.memoizedState), (f.memoizedState = null === e ? tj(c) : uj(e, c)), (f.childLanes = a.childLanes & ~c), (b.memoizedState = sj), d ); c = Bj(a, b, d.children, c); b.memoizedState = null; return c; } if (f) return ( (d = Aj(a, b, d.children, d.fallback, c)), (f = b.child), (e = a.child.memoizedState), (f.memoizedState = null === e ? tj(c) : uj(e, c)), (f.childLanes = a.childLanes & ~c), (b.memoizedState = sj), d ); c = Bj(a, b, d.children, c); b.memoizedState = null; return c; } function xj(a, b) { b = wj({ mode: "visible", children: b }, a.mode, 0, null); b.return = a; return (a.child = b); } function Bj(a, b, c, d) { var e = a.child; a = e.sibling; c = th(e, { mode: "visible", children: c }); 0 === (b.mode & 1) && (c.lanes = d); c.return = b; c.sibling = null; null !== a && ((d = b.deletions), null === d ? ((b.deletions = [a]), (b.flags |= 16)) : d.push(a)); return (b.child = c); } function Aj(a, b, c, d, e) { var f = b.mode; a = a.child; var g = a.sibling, h = { mode: "hidden", children: c }; 0 === (f & 1) && b.child !== a ? ((c = b.child), (c.childLanes = 0), (c.pendingProps = h), (b.deletions = null)) : ((c = th(a, h)), (c.subtreeFlags = a.subtreeFlags & 14680064)); null !== g ? (d = th(g, d)) : ((d = xh(d, f, e, null)), (d.flags |= 2)); d.return = b; c.return = b; c.sibling = d; b.child = c; return d; } function yj(a, b, c, d) { null !== d && oh(d); yh(b, a.child, null, c); a = xj(b, b.pendingProps.children); a.flags |= 2; b.memoizedState = null; return a; } function Cj(a, b, c) { a.lanes |= b; var d = a.alternate; null !== d && (d.lanes |= b); rg(a.return, b, c); } function Dj(a, b, c, d, e) { var f = a.memoizedState; null === f ? (a.memoizedState = { isBackwards: b, rendering: null, renderingStartTime: 0, last: d, tail: c, tailMode: e, }) : ((f.isBackwards = b), (f.rendering = null), (f.renderingStartTime = 0), (f.last = d), (f.tail = c), (f.tailMode = e)); } function Ej(a, b, c) { var d = b.pendingProps, e = d.revealOrder, f = d.tail; ej(a, b, d.children, c); d = K.current; if (0 !== (d & 2)) (d = (d & 1) | 2), (b.flags |= 128); else { if (null !== a && 0 !== (a.flags & 128)) a: for (a = b.child; null !== a; ) { if (13 === a.tag) null !== a.memoizedState && Cj(a, c, b); else if (19 === a.tag) Cj(a, c, b); else if (null !== a.child) { a.child.return = a; a = a.child; continue; } if (a === b) break a; for (; null === a.sibling; ) { if (null === a.return || a.return === b) break a; a = a.return; } a.sibling.return = a.return; a = a.sibling; } d &= 1; } G(K, d); if (0 === (b.mode & 1)) b.memoizedState = null; else switch (e) { case "forwards": c = b.child; for (e = null; null !== c; ) (a = c.alternate), null !== a && null === Jh(a) && (e = c), (c = c.sibling); c = e; null === c ? ((e = b.child), (b.child = null)) : ((e = c.sibling), (c.sibling = null)); Dj(b, !1, e, c, f); break; case "backwards": c = null; e = b.child; for (b.child = null; null !== e; ) { a = e.alternate; if (null !== a && null === Jh(a)) { b.child = e; break; } a = e.sibling; e.sibling = c; c = e; e = a; } Dj(b, !0, c, null, f); break; case "together": Dj(b, !1, null, null, void 0); break; default: b.memoizedState = null; } return b.child; } function gj(a, b, c) { null !== a && (b.dependencies = a.dependencies); Fg |= b.lanes; if (0 === (c & b.childLanes)) return null; if (null !== a && b.child !== a.child) throw Error(p(153)); if (null !== b.child) { a = b.child; c = th(a, a.pendingProps); b.child = c; for (c.return = b; null !== a.sibling; ) (a = a.sibling), (c = c.sibling = th(a, a.pendingProps)), (c.return = b); c.sibling = null; } return b.child; } function Fj(a, b, c) { switch (b.tag) { case 3: qj(b); nh(); break; case 5: Hh(b); break; case 1: Yf(b.type) && bg(b); break; case 4: Fh(b, b.stateNode.containerInfo); break; case 10: var d = b.type._context, e = b.memoizedProps.value; G(lg, d._currentValue); d._currentValue = e; break; case 13: d = b.memoizedState; if (null !== d) { if (null !== d.dehydrated) return ( G(K, K.current & 1), (b.flags |= 128), null ); if (0 !== (c & b.child.childLanes)) return vj(a, b, c); G(K, K.current & 1); a = gj(a, b, c); return null !== a ? a.sibling : null; } G(K, K.current & 1); break; case 19: d = 0 !== (c & b.childLanes); if (0 !== (a.flags & 128)) { if (d) return Ej(a, b, c); b.flags |= 128; } e = b.memoizedState; null !== e && ((e.rendering = null), (e.tail = null), (e.lastEffect = null)); G(K, K.current); if (d) break; else return null; case 22: case 23: return (b.lanes = 0), lj(a, b, c); } return gj(a, b, c); } function Gj(a, b) { ch(b); switch (b.tag) { case 1: return ( Yf(b.type) && Zf(), (a = b.flags), a & 65536 ? ((b.flags = (a & -65537) | 128), b) : null ); case 3: return ( Gh(), E(Vf), E(H), Lh(), (a = b.flags), 0 !== (a & 65536) && 0 === (a & 128) ? ((b.flags = (a & -65537) | 128), b) : null ); case 5: return Ih(b), null; case 13: E(K); a = b.memoizedState; if (null !== a && null !== a.dehydrated) { if (null === b.alternate) throw Error(p(340)); nh(); } a = b.flags; return a & 65536 ? ((b.flags = (a & -65537) | 128), b) : null; case 19: return E(K), null; case 4: return Gh(), null; case 10: return qg(b.type._context), null; case 22: case 23: return bj(), null; case 24: return null; default: return null; } } var Hj = !1, S = !1, Ij = "function" === typeof WeakSet ? WeakSet : Set, T = null; function Jj(a, b) { var c = a.ref; if (null !== c) if ("function" === typeof c) try { c(null); } catch (d) { U(a, b, d); } else c.current = null; } function Kj(a, b, c) { try { c(); } catch (d) { U(a, b, d); } } var Lj = !1; function Mj(a, b) { Bf = cd; a = Le(); if (Me(a)) { if ("selectionStart" in a) var c = { start: a.selectionStart, end: a.selectionEnd, }; else a: { c = ((c = a.ownerDocument) && c.defaultView) || window; var d = c.getSelection && c.getSelection(); if (d && 0 !== d.rangeCount) { c = d.anchorNode; var e = d.anchorOffset, f = d.focusNode; d = d.focusOffset; try { c.nodeType, f.nodeType; } catch (Z) { c = null; break a; } var g = 0, h = -1, k = -1, l = 0, n = 0, u = a, q = null; b: for (;;) { for (var y; ; ) { u !== c || (0 !== e && 3 !== u.nodeType) || (h = g + e); u !== f || (0 !== d && 3 !== u.nodeType) || (k = g + d); 3 === u.nodeType && (g += u.nodeValue.length); if (null === (y = u.firstChild)) break; q = u; u = y; } for (;;) { if (u === a) break b; q === c && ++l === e && (h = g); q === f && ++n === d && (k = g); if (null !== (y = u.nextSibling)) break; u = q; q = u.parentNode; } u = y; } c = -1 === h || -1 === k ? null : { start: h, end: k }; } else c = null; } c = c || { start: 0, end: 0 }; } else c = null; Cf = { focusedElem: a, selectionRange: c }; cd = !1; for (T = b; null !== T; ) if ( ((b = T), (a = b.child), 0 !== (b.subtreeFlags & 1028) && null !== a) ) (a.return = b), (T = a); else for (; null !== T; ) { b = T; try { var m = b.alternate; if (0 !== (b.flags & 1024)) switch (b.tag) { case 0: case 11: case 15: break; case 1: if (null !== m) { var w = m.memoizedProps, J = m.memoizedState, v = b.stateNode, x = v.getSnapshotBeforeUpdate( b.elementType === b.type ? w : kg(b.type, w), J ); v.__reactInternalSnapshotBeforeUpdate = x; } break; case 3: var r = b.stateNode.containerInfo; if (1 === r.nodeType) r.textContent = ""; else if (9 === r.nodeType) { var F = r.body; null != F && (F.textContent = ""); } break; case 5: case 6: case 4: case 17: break; default: throw Error(p(163)); } } catch (Z) { U(b, b.return, Z); } a = b.sibling; if (null !== a) { a.return = b.return; T = a; break; } T = b.return; } m = Lj; Lj = !1; return m; } function Nj(a, b, c) { var d = b.updateQueue; d = null !== d ? d.lastEffect : null; if (null !== d) { var e = (d = d.next); do { if ((e.tag & a) === a) { var f = e.destroy; e.destroy = void 0; void 0 !== f && Kj(b, c, f); } e = e.next; } while (e !== d); } } function Oj(a, b) { b = b.updateQueue; b = null !== b ? b.lastEffect : null; if (null !== b) { var c = (b = b.next); do { if ((c.tag & a) === a) { var d = c.create; c.destroy = d(); } c = c.next; } while (c !== b); } } function Pj(a) { var b = a.ref; if (null !== b) { var c = a.stateNode; switch (a.tag) { case 5: a = c; break; default: a = c; } "function" === typeof b ? b(a) : (b.current = a); } } function Qj(a) { var b = a.alternate; null !== b && ((a.alternate = null), Qj(b)); a.child = null; a.deletions = null; a.sibling = null; 5 === a.tag && ((b = a.stateNode), null !== b && (delete b[Nf], delete b[Of], delete b[nf], delete b[Pf], delete b[Qf])); a.stateNode = null; a.return = null; a.dependencies = null; a.memoizedProps = null; a.memoizedState = null; a.pendingProps = null; a.stateNode = null; a.updateQueue = null; } function Rj(a) { return 5 === a.tag || 3 === a.tag || 4 === a.tag; } function Sj(a) { a: for (;;) { for (; null === a.sibling; ) { if (null === a.return || Rj(a.return)) return null; a = a.return; } a.sibling.return = a.return; for ( a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag; ) { if (a.flags & 2) continue a; if (null === a.child || 4 === a.tag) continue a; else (a.child.return = a), (a = a.child); } if (!(a.flags & 2)) return a.stateNode; } } function Tj(a, b, c) { var d = a.tag; if (5 === d || 6 === d) (a = a.stateNode), b ? 8 === c.nodeType ? c.parentNode.insertBefore(a, b) : c.insertBefore(a, b) : (8 === c.nodeType ? ((b = c.parentNode), b.insertBefore(a, c)) : ((b = c), b.appendChild(a)), (c = c._reactRootContainer), (null !== c && void 0 !== c) || null !== b.onclick || (b.onclick = Af)); else if (4 !== d && ((a = a.child), null !== a)) for (Tj(a, b, c), a = a.sibling; null !== a; ) Tj(a, b, c), (a = a.sibling); } function Uj(a, b, c) { var d = a.tag; if (5 === d || 6 === d) (a = a.stateNode), b ? c.insertBefore(a, b) : c.appendChild(a); else if (4 !== d && ((a = a.child), null !== a)) for (Uj(a, b, c), a = a.sibling; null !== a; ) Uj(a, b, c), (a = a.sibling); } var V = null, Vj = !1; function Wj(a, b, c) { for (c = c.child; null !== c; ) Xj(a, b, c), (c = c.sibling); } function Xj(a, b, c) { if (kc && "function" === typeof kc.onCommitFiberUnmount) try { kc.onCommitFiberUnmount(jc, c); } catch (h) {} switch (c.tag) { case 5: S || Jj(c, b); case 6: var d = V, e = Vj; V = null; Wj(a, b, c); V = d; Vj = e; null !== V && (Vj ? ((a = V), (c = c.stateNode), 8 === a.nodeType ? a.parentNode.removeChild(c) : a.removeChild(c)) : V.removeChild(c.stateNode)); break; case 18: null !== V && (Vj ? ((a = V), (c = c.stateNode), 8 === a.nodeType ? Jf(a.parentNode, c) : 1 === a.nodeType && Jf(a, c), ad(a)) : Jf(V, c.stateNode)); break; case 4: d = V; e = Vj; V = c.stateNode.containerInfo; Vj = !0; Wj(a, b, c); V = d; Vj = e; break; case 0: case 11: case 14: case 15: if ( !S && ((d = c.updateQueue), null !== d && ((d = d.lastEffect), null !== d)) ) { e = d = d.next; do { var f = e, g = f.destroy; f = f.tag; void 0 !== g && (0 !== (f & 2) ? Kj(c, b, g) : 0 !== (f & 4) && Kj(c, b, g)); e = e.next; } while (e !== d); } Wj(a, b, c); break; case 1: if ( !S && (Jj(c, b), (d = c.stateNode), "function" === typeof d.componentWillUnmount) ) try { (d.props = c.memoizedProps), (d.state = c.memoizedState), d.componentWillUnmount(); } catch (h) { U(c, b, h); } Wj(a, b, c); break; case 21: Wj(a, b, c); break; case 22: c.mode & 1 ? ((S = (d = S) || null !== c.memoizedState), Wj(a, b, c), (S = d)) : Wj(a, b, c); break; default: Wj(a, b, c); } } function Yj(a) { var b = a.updateQueue; if (null !== b) { a.updateQueue = null; var c = a.stateNode; null === c && (c = a.stateNode = new Ij()); b.forEach(function (b) { var d = Zj.bind(null, a, b); c.has(b) || (c.add(b), b.then(d, d)); }); } } function ak(a, b) { var c = b.deletions; if (null !== c) for (var d = 0; d < c.length; d++) { var e = c[d]; try { var f = a, g = b, h = g; a: for (; null !== h; ) { switch (h.tag) { case 5: V = h.stateNode; Vj = !1; break a; case 3: V = h.stateNode.containerInfo; Vj = !0; break a; case 4: V = h.stateNode.containerInfo; Vj = !0; break a; } h = h.return; } if (null === V) throw Error(p(160)); Xj(f, g, e); V = null; Vj = !1; var k = e.alternate; null !== k && (k.return = null); e.return = null; } catch (l) { U(e, b, l); } } if (b.subtreeFlags & 12854) for (b = b.child; null !== b; ) bk(b, a), (b = b.sibling); } function bk(a, b) { var c = a.alternate, d = a.flags; switch (a.tag) { case 0: case 11: case 14: case 15: ak(b, a); ck(a); if (d & 4) { try { Nj(3, a, a.return), Oj(3, a); } catch (m) { U(a, a.return, m); } try { Nj(5, a, a.return); } catch (m) { U(a, a.return, m); } } break; case 1: ak(b, a); ck(a); d & 512 && null !== c && Jj(c, c.return); break; case 5: ak(b, a); ck(a); d & 512 && null !== c && Jj(c, c.return); if (a.flags & 32) { var e = a.stateNode; try { nb(e, ""); } catch (m) { U(a, a.return, m); } } if (d & 4 && ((e = a.stateNode), null != e)) { var f = a.memoizedProps, g = null !== c ? c.memoizedProps : f, h = a.type, k = a.updateQueue; a.updateQueue = null; if (null !== k) try { "input" === h && "radio" === f.type && null != f.name && Za(e, f); ub(h, g); var l = ub(h, f); for (g = 0; g < k.length; g += 2) { var n = k[g], u = k[g + 1]; "style" === n ? rb(e, u) : "dangerouslySetInnerHTML" === n ? mb(e, u) : "children" === n ? nb(e, u) : sa(e, n, u, l); } switch (h) { case "input": $a(e, f); break; case "textarea": hb(e, f); break; case "select": var q = e._wrapperState.wasMultiple; e._wrapperState.wasMultiple = !!f.multiple; var y = f.value; null != y ? eb(e, !!f.multiple, y, !1) : q !== !!f.multiple && (null != f.defaultValue ? eb( e, !!f.multiple, f.defaultValue, !0 ) : eb( e, !!f.multiple, f.multiple ? [] : "", !1 )); } e[Of] = f; } catch (m) { U(a, a.return, m); } } break; case 6: ak(b, a); ck(a); if (d & 4) { if (null === a.stateNode) throw Error(p(162)); l = a.stateNode; n = a.memoizedProps; try { l.nodeValue = n; } catch (m) { U(a, a.return, m); } } break; case 3: ak(b, a); ck(a); if (d & 4 && null !== c && c.memoizedState.isDehydrated) try { ad(b.containerInfo); } catch (m) { U(a, a.return, m); } break; case 4: ak(b, a); ck(a); break; case 13: ak(b, a); ck(a); l = a.child; l.flags & 8192 && null !== l.memoizedState && (null === l.alternate || null === l.alternate.memoizedState) && (dk = B()); d & 4 && Yj(a); break; case 22: l = null !== c && null !== c.memoizedState; a.mode & 1 ? ((S = (n = S) || l), ak(b, a), (S = n)) : ak(b, a); ck(a); if (d & 8192) { n = null !== a.memoizedState; a: for (u = null, q = a; ; ) { if (5 === q.tag) { if (null === u) { u = q; try { (e = q.stateNode), n ? ((f = e.style), "function" === typeof f.setProperty ? f.setProperty( "display", "none", "important" ) : (f.display = "none")) : ((h = q.stateNode), (k = q.memoizedProps .style), (g = void 0 !== k && null !== k && k.hasOwnProperty( "display" ) ? k.display : null), (h.style.display = qb( "display", g ))); } catch (m) { U(a, a.return, m); } } } else if (6 === q.tag) { if (null === u) try { q.stateNode.nodeValue = n ? "" : q.memoizedProps; } catch (m) { U(a, a.return, m); } } else if ( ((22 !== q.tag && 23 !== q.tag) || null === q.memoizedState || q === a) && null !== q.child ) { q.child.return = q; q = q.child; continue; } if (q === a) break a; for (; null === q.sibling; ) { if (null === q.return || q.return === a) break a; u === q && (u = null); q = q.return; } u === q && (u = null); q.sibling.return = q.return; q = q.sibling; } if (n && !l && 0 !== (a.mode & 1)) for (T = a, a = a.child; null !== a; ) { for (l = T = a; null !== T; ) { n = T; u = n.child; switch (n.tag) { case 0: case 11: case 14: case 15: Nj(4, n, n.return); break; case 1: Jj(n, n.return); f = n.stateNode; if ( "function" === typeof f.componentWillUnmount ) { q = n; y = n.return; try { (e = q), (f.props = e.memoizedProps), (f.state = e.memoizedState), f.componentWillUnmount(); } catch (m) { U(q, y, m); } } break; case 5: Jj(n, n.return); break; case 22: if (null !== n.memoizedState) { ek(l); continue; } } null !== u ? ((u.return = n), (T = u)) : ek(l); } a = a.sibling; } } break; case 19: ak(b, a); ck(a); d & 4 && Yj(a); break; case 21: break; default: ak(b, a), ck(a); } } function ck(a) { var b = a.flags; if (b & 2) { try { a: { for (var c = a.return; null !== c; ) { if (Rj(c)) { var d = c; break a; } c = c.return; } throw Error(p(160)); } switch (d.tag) { case 5: var e = d.stateNode; d.flags & 32 && (nb(e, ""), (d.flags &= -33)); var f = Sj(a); Uj(a, f, e); break; case 3: case 4: var g = d.stateNode.containerInfo, h = Sj(a); Tj(a, h, g); break; default: throw Error(p(161)); } } catch (k) { U(a, a.return, k); } a.flags &= -3; } b & 4096 && (a.flags &= -4097); } function fk(a, b, c) { T = a; gk(a, b, c); } function gk(a, b, c) { for (var d = 0 !== (a.mode & 1); null !== T; ) { var e = T, f = e.child; if (22 === e.tag && d) { var g = null !== e.memoizedState || Hj; if (!g) { var h = e.alternate, k = (null !== h && null !== h.memoizedState) || S; h = Hj; var l = S; Hj = g; if ((S = k) && !l) for (T = e; null !== T; ) (g = T), (k = g.child), 22 === g.tag && null !== g.memoizedState ? hk(e) : null !== k ? ((k.return = g), (T = k)) : hk(e); for (; null !== f; ) (T = f), gk(f, b, c), (f = f.sibling); T = e; Hj = h; S = l; } ik(a, b, c); } else 0 !== (e.subtreeFlags & 8772) && null !== f ? ((f.return = e), (T = f)) : ik(a, b, c); } } function ik(a) { for (; null !== T; ) { var b = T; if (0 !== (b.flags & 8772)) { var c = b.alternate; try { if (0 !== (b.flags & 8772)) switch (b.tag) { case 0: case 11: case 15: S || Oj(5, b); break; case 1: var d = b.stateNode; if (b.flags & 4 && !S) if (null === c) d.componentDidMount(); else { var e = b.elementType === b.type ? c.memoizedProps : kg( b.type, c.memoizedProps ); d.componentDidUpdate( e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate ); } var f = b.updateQueue; null !== f && Gg(b, f, d); break; case 3: var g = b.updateQueue; if (null !== g) { c = null; if (null !== b.child) switch (b.child.tag) { case 5: c = b.child.stateNode; break; case 1: c = b.child.stateNode; } Gg(b, g, c); } break; case 5: var h = b.stateNode; if (null === c && b.flags & 4) { c = h; var k = b.memoizedProps; switch (b.type) { case "button": case "input": case "select": case "textarea": k.autoFocus && c.focus(); break; case "img": k.src && (c.src = k.src); } } break; case 6: break; case 4: break; case 12: break; case 13: if (null === b.memoizedState) { var l = b.alternate; if (null !== l) { var n = l.memoizedState; if (null !== n) { var u = n.dehydrated; null !== u && ad(u); } } } break; case 19: case 17: case 21: case 22: case 23: break; default: throw Error(p(163)); } S || (b.flags & 512 && Pj(b)); } catch (q) { U(b, b.return, q); } } if (b === a) { T = null; break; } c = b.sibling; if (null !== c) { c.return = b.return; T = c; break; } T = b.return; } } function ek(a) { for (; null !== T; ) { var b = T; if (b === a) { T = null; break; } var c = b.sibling; if (null !== c) { c.return = b.return; T = c; break; } T = b.return; } } function hk(a) { for (; null !== T; ) { var b = T; try { switch (b.tag) { case 0: case 11: case 15: var c = b.return; try { Oj(4, b); } catch (k) { U(b, c, k); } break; case 1: var d = b.stateNode; if ("function" === typeof d.componentDidMount) { var e = b.return; try { d.componentDidMount(); } catch (k) { U(b, e, k); } } var f = b.return; try { Pj(b); } catch (k) { U(b, f, k); } break; case 5: var g = b.return; try { Pj(b); } catch (k) { U(b, g, k); } } } catch (k) { U(b, b.return, k); } if (b === a) { T = null; break; } var h = b.sibling; if (null !== h) { h.return = b.return; T = h; break; } T = b.return; } } var jk = Math.ceil, kk = ta.ReactCurrentDispatcher, lk = ta.ReactCurrentOwner, mk = ta.ReactCurrentBatchConfig, W = 0, P = null, X = null, Y = 0, cj = 0, mj = Tf(0), R = 0, nk = null, Fg = 0, ok = 0, pk = 0, qk = null, rk = null, dk = 0, aj = Infinity, sk = null, Li = !1, Mi = null, Oi = null, tk = !1, uk = null, vk = 0, wk = 0, xk = null, yk = -1, zk = 0; function Jg() { return 0 !== (W & 6) ? B() : -1 !== yk ? yk : (yk = B()); } function Kg(a) { if (0 === (a.mode & 1)) return 1; if (0 !== (W & 2) && 0 !== Y) return Y & -Y; if (null !== jg.transition) return 0 === zk && (zk = xc()), zk; a = C; if (0 !== a) return a; a = window.event; a = void 0 === a ? 16 : id(a.type); return a; } function Lg(a, b, c) { if (50 < wk) throw ((wk = 0), (xk = null), Error(p(185))); var d = Ak(a, b); if (null === d) return null; zc(d, b, c); if (0 === (W & 2) || d !== P) d === P && (0 === (W & 2) && (ok |= b), 4 === R && Bk(d, Y)), Ck(d, c), 1 === b && 0 === W && 0 === (a.mode & 1) && ((aj = B() + 500), eg && ig()); return d; } function Ak(a, b) { a.lanes |= b; var c = a.alternate; null !== c && (c.lanes |= b); c = a; for (a = a.return; null !== a; ) (a.childLanes |= b), (c = a.alternate), null !== c && (c.childLanes |= b), (c = a), (a = a.return); return 3 === c.tag ? c.stateNode : null; } function Bg(a) { return ( (null !== P || null !== vg) && 0 !== (a.mode & 1) && 0 === (W & 2) ); } function Ck(a, b) { var c = a.callbackNode; vc(a, b); var d = tc(a, a === P ? Y : 0); if (0 === d) null !== c && ac(c), (a.callbackNode = null), (a.callbackPriority = 0); else if (((b = d & -d), a.callbackPriority !== b)) { null != c && ac(c); if (1 === b) 0 === a.tag ? hg(Dk.bind(null, a)) : gg(Dk.bind(null, a)), If(function () { 0 === W && ig(); }), (c = null); else { switch (Cc(d)) { case 1: c = ec; break; case 4: c = fc; break; case 16: c = gc; break; case 536870912: c = ic; break; default: c = gc; } c = Ek(c, Fk.bind(null, a)); } a.callbackPriority = b; a.callbackNode = c; } } function Fk(a, b) { yk = -1; zk = 0; if (0 !== (W & 6)) throw Error(p(327)); var c = a.callbackNode; if (Gk() && a.callbackNode !== c) return null; var d = tc(a, a === P ? Y : 0); if (0 === d) return null; if (0 !== (d & 30) || 0 !== (d & a.expiredLanes) || b) b = Hk(a, d); else { b = d; var e = W; W |= 2; var f = Ik(); if (P !== a || Y !== b) (sk = null), (aj = B() + 500), Jk(a, b); do try { Kk(); break; } catch (h) { Lk(a, h); } while (1); pg(); kk.current = f; W = e; null !== X ? (b = 0) : ((P = null), (Y = 0), (b = R)); } if (0 !== b) { 2 === b && ((e = wc(a)), 0 !== e && ((d = e), (b = Mk(a, e)))); if (1 === b) throw ((c = nk), Jk(a, 0), Bk(a, d), Ck(a, B()), c); if (6 === b) Bk(a, d); else { e = a.current.alternate; if ( 0 === (d & 30) && !Nk(e) && ((b = Hk(a, d)), 2 === b && ((f = wc(a)), 0 !== f && ((d = f), (b = Mk(a, f)))), 1 === b) ) throw ((c = nk), Jk(a, 0), Bk(a, d), Ck(a, B()), c); a.finishedWork = e; a.finishedLanes = d; switch (b) { case 0: case 1: throw Error(p(345)); case 2: Ok(a, rk, sk); break; case 3: Bk(a, d); if ( (d & 130023424) === d && ((b = dk + 500 - B()), 10 < b) ) { if (0 !== tc(a, 0)) break; e = a.suspendedLanes; if ((e & d) !== d) { Jg(); a.pingedLanes |= a.suspendedLanes & e; break; } a.timeoutHandle = Ef( Ok.bind(null, a, rk, sk), b ); break; } Ok(a, rk, sk); break; case 4: Bk(a, d); if ((d & 4194240) === d) break; b = a.eventTimes; for (e = -1; 0 < d; ) { var g = 31 - nc(d); f = 1 << g; g = b[g]; g > e && (e = g); d &= ~f; } d = e; d = B() - d; d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3e3 > d ? 3e3 : 4320 > d ? 4320 : 1960 * jk(d / 1960)) - d; if (10 < d) { a.timeoutHandle = Ef( Ok.bind(null, a, rk, sk), d ); break; } Ok(a, rk, sk); break; case 5: Ok(a, rk, sk); break; default: throw Error(p(329)); } } } Ck(a, B()); return a.callbackNode === c ? Fk.bind(null, a) : null; } function Mk(a, b) { var c = qk; a.current.memoizedState.isDehydrated && (Jk(a, b).flags |= 256); a = Hk(a, b); 2 !== a && ((b = rk), (rk = c), null !== b && Zi(b)); return a; } function Zi(a) { null === rk ? (rk = a) : rk.push.apply(rk, a); } function Nk(a) { for (var b = a; ; ) { if (b.flags & 16384) { var c = b.updateQueue; if (null !== c && ((c = c.stores), null !== c)) for (var d = 0; d < c.length; d++) { var e = c[d], f = e.getSnapshot; e = e.value; try { if (!Ge(f(), e)) return !1; } catch (g) { return !1; } } } c = b.child; if (b.subtreeFlags & 16384 && null !== c) (c.return = b), (b = c); else { if (b === a) break; for (; null === b.sibling; ) { if (null === b.return || b.return === a) return !0; b = b.return; } b.sibling.return = b.return; b = b.sibling; } } return !0; } function Bk(a, b) { b &= ~pk; b &= ~ok; a.suspendedLanes |= b; a.pingedLanes &= ~b; for (a = a.expirationTimes; 0 < b; ) { var c = 31 - nc(b), d = 1 << c; a[c] = -1; b &= ~d; } } function Dk(a) { if (0 !== (W & 6)) throw Error(p(327)); Gk(); var b = tc(a, 0); if (0 === (b & 1)) return Ck(a, B()), null; var c = Hk(a, b); if (0 !== a.tag && 2 === c) { var d = wc(a); 0 !== d && ((b = d), (c = Mk(a, d))); } if (1 === c) throw ((c = nk), Jk(a, 0), Bk(a, b), Ck(a, B()), c); if (6 === c) throw Error(p(345)); a.finishedWork = a.current.alternate; a.finishedLanes = b; Ok(a, rk, sk); Ck(a, B()); return null; } function Pk(a, b) { var c = W; W |= 1; try { return a(b); } finally { (W = c), 0 === W && ((aj = B() + 500), eg && ig()); } } function Qk(a) { null !== uk && 0 === uk.tag && 0 === (W & 6) && Gk(); var b = W; W |= 1; var c = mk.transition, d = C; try { if (((mk.transition = null), (C = 1), a)) return a(); } finally { (C = d), (mk.transition = c), (W = b), 0 === (W & 6) && ig(); } } function bj() { cj = mj.current; E(mj); } function Jk(a, b) { a.finishedWork = null; a.finishedLanes = 0; var c = a.timeoutHandle; -1 !== c && ((a.timeoutHandle = -1), Ff(c)); if (null !== X) for (c = X.return; null !== c; ) { var d = c; ch(d); switch (d.tag) { case 1: d = d.type.childContextTypes; null !== d && void 0 !== d && Zf(); break; case 3: Gh(); E(Vf); E(H); Lh(); break; case 5: Ih(d); break; case 4: Gh(); break; case 13: E(K); break; case 19: E(K); break; case 10: qg(d.type._context); break; case 22: case 23: bj(); } c = c.return; } P = a; X = a = th(a.current, null); Y = cj = b; R = 0; nk = null; pk = ok = Fg = 0; rk = qk = null; if (null !== vg) { for (b = 0; b < vg.length; b++) if (((c = vg[b]), (d = c.interleaved), null !== d)) { c.interleaved = null; var e = d.next, f = c.pending; if (null !== f) { var g = f.next; f.next = e; d.next = g; } c.pending = d; } vg = null; } return a; } function Lk(a, b) { do { var c = X; try { pg(); Mh.current = Yh; if (Ph) { for (var d = L.memoizedState; null !== d; ) { var e = d.queue; null !== e && (e.pending = null); d = d.next; } Ph = !1; } Oh = 0; N = M = L = null; Qh = !1; Rh = 0; lk.current = null; if (null === c || null === c.return) { R = 1; nk = b; X = null; break; } a: { var f = a, g = c.return, h = c, k = b; b = Y; h.flags |= 32768; if ( null !== k && "object" === typeof k && "function" === typeof k.then ) { var l = k, n = h, u = n.tag; if ( 0 === (n.mode & 1) && (0 === u || 11 === u || 15 === u) ) { var q = n.alternate; q ? ((n.updateQueue = q.updateQueue), (n.memoizedState = q.memoizedState), (n.lanes = q.lanes)) : ((n.updateQueue = null), (n.memoizedState = null)); } var y = Ri(g); if (null !== y) { y.flags &= -257; Si(y, g, h, f, b); y.mode & 1 && Pi(f, l, b); b = y; k = l; var m = b.updateQueue; if (null === m) { var w = new Set(); w.add(k); b.updateQueue = w; } else m.add(k); break a; } else { if (0 === (b & 1)) { Pi(f, l, b); $i(); break a; } k = Error(p(426)); } } else if (I && h.mode & 1) { var J = Ri(g); if (null !== J) { 0 === (J.flags & 65536) && (J.flags |= 256); Si(J, g, h, f, b); oh(k); break a; } } f = k; 4 !== R && (R = 2); null === qk ? (qk = [f]) : qk.push(f); k = Hi(k, h); h = g; do { switch (h.tag) { case 3: h.flags |= 65536; b &= -b; h.lanes |= b; var v = Ki(h, k, b); Dg(h, v); break a; case 1: f = k; var x = h.type, r = h.stateNode; if ( 0 === (h.flags & 128) && ("function" === typeof x.getDerivedStateFromError || (null !== r && "function" === typeof r.componentDidCatch && (null === Oi || !Oi.has(r)))) ) { h.flags |= 65536; b &= -b; h.lanes |= b; var F = Ni(h, f, b); Dg(h, F); break a; } } h = h.return; } while (null !== h); } Rk(c); } catch (Z) { b = Z; X === c && null !== c && (X = c = c.return); continue; } break; } while (1); } function Ik() { var a = kk.current; kk.current = Yh; return null === a ? Yh : a; } function $i() { if (0 === R || 3 === R || 2 === R) R = 4; null === P || (0 === (Fg & 268435455) && 0 === (ok & 268435455)) || Bk(P, Y); } function Hk(a, b) { var c = W; W |= 2; var d = Ik(); if (P !== a || Y !== b) (sk = null), Jk(a, b); do try { Sk(); break; } catch (e) { Lk(a, e); } while (1); pg(); W = c; kk.current = d; if (null !== X) throw Error(p(261)); P = null; Y = 0; return R; } function Sk() { for (; null !== X; ) Tk(X); } function Kk() { for (; null !== X && !bc(); ) Tk(X); } function Tk(a) { var b = Uk(a.alternate, a, cj); a.memoizedProps = a.pendingProps; null === b ? Rk(a) : (X = b); lk.current = null; } function Rk(a) { var b = a; do { var c = b.alternate; a = b.return; if (0 === (b.flags & 32768)) { if (((c = Yi(c, b, cj)), null !== c)) { X = c; return; } } else { c = Gj(c, b); if (null !== c) { c.flags &= 32767; X = c; return; } if (null !== a) (a.flags |= 32768), (a.subtreeFlags = 0), (a.deletions = null); else { R = 6; X = null; return; } } b = b.sibling; if (null !== b) { X = b; return; } X = b = a; } while (null !== b); 0 === R && (R = 5); } function Ok(a, b, c) { var d = C, e = mk.transition; try { (mk.transition = null), (C = 1), Vk(a, b, c, d); } finally { (mk.transition = e), (C = d); } return null; } function Vk(a, b, c, d) { do Gk(); while (null !== uk); if (0 !== (W & 6)) throw Error(p(327)); c = a.finishedWork; var e = a.finishedLanes; if (null === c) return null; a.finishedWork = null; a.finishedLanes = 0; if (c === a.current) throw Error(p(177)); a.callbackNode = null; a.callbackPriority = 0; var f = c.lanes | c.childLanes; Ac(a, f); a === P && ((X = P = null), (Y = 0)); (0 === (c.subtreeFlags & 2064) && 0 === (c.flags & 2064)) || tk || ((tk = !0), Ek(gc, function () { Gk(); return null; })); f = 0 !== (c.flags & 15990); if (0 !== (c.subtreeFlags & 15990) || f) { f = mk.transition; mk.transition = null; var g = C; C = 1; var h = W; W |= 4; lk.current = null; Mj(a, c); bk(c, a); Ne(Cf); cd = !!Bf; Cf = Bf = null; a.current = c; fk(c, a, e); cc(); W = h; C = g; mk.transition = f; } else a.current = c; tk && ((tk = !1), (uk = a), (vk = e)); f = a.pendingLanes; 0 === f && (Oi = null); lc(c.stateNode, d); Ck(a, B()); if (null !== b) for (d = a.onRecoverableError, c = 0; c < b.length; c++) d(b[c]); if (Li) throw ((Li = !1), (a = Mi), (Mi = null), a); 0 !== (vk & 1) && 0 !== a.tag && Gk(); f = a.pendingLanes; 0 !== (f & 1) ? a === xk ? wk++ : ((wk = 0), (xk = a)) : (wk = 0); ig(); return null; } function Gk() { if (null !== uk) { var a = Cc(vk), b = mk.transition, c = C; try { mk.transition = null; C = 16 > a ? 16 : a; if (null === uk) var d = !1; else { a = uk; uk = null; vk = 0; if (0 !== (W & 6)) throw Error(p(331)); var e = W; W |= 4; for (T = a.current; null !== T; ) { var f = T, g = f.child; if (0 !== (T.flags & 16)) { var h = f.deletions; if (null !== h) { for (var k = 0; k < h.length; k++) { var l = h[k]; for (T = l; null !== T; ) { var n = T; switch (n.tag) { case 0: case 11: case 15: Nj(8, n, f); } var u = n.child; if (null !== u) (u.return = n), (T = u); else for (; null !== T; ) { n = T; var q = n.sibling, y = n.return; Qj(n); if (n === l) { T = null; break; } if (null !== q) { q.return = y; T = q; break; } T = y; } } } var m = f.alternate; if (null !== m) { var w = m.child; if (null !== w) { m.child = null; do { var J = w.sibling; w.sibling = null; w = J; } while (null !== w); } } T = f; } } if (0 !== (f.subtreeFlags & 2064) && null !== g) (g.return = f), (T = g); else b: for (; null !== T; ) { f = T; if (0 !== (f.flags & 2048)) switch (f.tag) { case 0: case 11: case 15: Nj(9, f, f.return); } var v = f.sibling; if (null !== v) { v.return = f.return; T = v; break b; } T = f.return; } } var x = a.current; for (T = x; null !== T; ) { g = T; var r = g.child; if (0 !== (g.subtreeFlags & 2064) && null !== r) (r.return = g), (T = r); else b: for (g = x; null !== T; ) { h = T; if (0 !== (h.flags & 2048)) try { switch (h.tag) { case 0: case 11: case 15: Oj(9, h); } } catch (Z) { U(h, h.return, Z); } if (h === g) { T = null; break b; } var F = h.sibling; if (null !== F) { F.return = h.return; T = F; break b; } T = h.return; } } W = e; ig(); if ( kc && "function" === typeof kc.onPostCommitFiberRoot ) try { kc.onPostCommitFiberRoot(jc, a); } catch (Z) {} d = !0; } return d; } finally { (C = c), (mk.transition = b); } } return !1; } function Wk(a, b, c) { b = Hi(c, b); b = Ki(a, b, 1); Ag(a, b); b = Jg(); a = Ak(a, 1); null !== a && (zc(a, 1, b), Ck(a, b)); } function U(a, b, c) { if (3 === a.tag) Wk(a, a, c); else for (; null !== b; ) { if (3 === b.tag) { Wk(b, a, c); break; } else if (1 === b.tag) { var d = b.stateNode; if ( "function" === typeof b.type.getDerivedStateFromError || ("function" === typeof d.componentDidCatch && (null === Oi || !Oi.has(d))) ) { a = Hi(c, a); a = Ni(b, a, 1); Ag(b, a); a = Jg(); b = Ak(b, 1); null !== b && (zc(b, 1, a), Ck(b, a)); break; } } b = b.return; } } function Qi(a, b, c) { var d = a.pingCache; null !== d && d.delete(b); b = Jg(); a.pingedLanes |= a.suspendedLanes & c; P === a && (Y & c) === c && (4 === R || (3 === R && (Y & 130023424) === Y && 500 > B() - dk) ? Jk(a, 0) : (pk |= c)); Ck(a, b); } function Xk(a, b) { 0 === b && (0 === (a.mode & 1) ? (b = 1) : ((b = rc), (rc <<= 1), 0 === (rc & 130023424) && (rc = 4194304))); var c = Jg(); a = Ak(a, b); null !== a && (zc(a, b, c), Ck(a, c)); } function zj(a) { var b = a.memoizedState, c = 0; null !== b && (c = b.retryLane); Xk(a, c); } function Zj(a, b) { var c = 0; switch (a.tag) { case 13: var d = a.stateNode; var e = a.memoizedState; null !== e && (c = e.retryLane); break; case 19: d = a.stateNode; break; default: throw Error(p(314)); } null !== d && d.delete(b); Xk(a, c); } var Uk; Uk = function (a, b, c) { if (null !== a) if (a.memoizedProps !== b.pendingProps || Vf.current) tg = !0; else { if (0 === (a.lanes & c) && 0 === (b.flags & 128)) return (tg = !1), Fj(a, b, c); tg = 0 !== (a.flags & 131072) ? !0 : !1; } else (tg = !1), I && 0 !== (b.flags & 1048576) && ah(b, Ug, b.index); b.lanes = 0; switch (b.tag) { case 2: var d = b.type; null !== a && ((a.alternate = null), (b.alternate = null), (b.flags |= 2)); a = b.pendingProps; var e = Xf(b, H.current); sg(b, c); e = Uh(null, b, d, a, e, c); var f = Zh(); b.flags |= 1; "object" === typeof e && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? ((b.tag = 1), (b.memoizedState = null), (b.updateQueue = null), Yf(d) ? ((f = !0), bg(b)) : (f = !1), (b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null), xg(b), (e.updater = Mg), (b.stateNode = e), (e._reactInternals = b), Qg(b, d, a, c), (b = pj(null, b, d, !0, f, c))) : ((b.tag = 0), I && f && bh(b), ej(null, b, e, c), (b = b.child)); return b; case 16: d = b.elementType; a: { null !== a && ((a.alternate = null), (b.alternate = null), (b.flags |= 2)); a = b.pendingProps; e = d._init; d = e(d._payload); b.type = d; e = b.tag = Yk(d); a = kg(d, a); switch (e) { case 0: b = kj(null, b, d, a, c); break a; case 1: b = oj(null, b, d, a, c); break a; case 11: b = fj(null, b, d, a, c); break a; case 14: b = hj(null, b, d, kg(d.type, a), c); break a; } throw Error(p(306, d, "")); } return b; case 0: return ( (d = b.type), (e = b.pendingProps), (e = b.elementType === d ? e : kg(d, e)), kj(a, b, d, e, c) ); case 1: return ( (d = b.type), (e = b.pendingProps), (e = b.elementType === d ? e : kg(d, e)), oj(a, b, d, e, c) ); case 3: a: { qj(b); if (null === a) throw Error(p(387)); d = b.pendingProps; f = b.memoizedState; e = f.element; yg(a, b); Eg(b, d, null, c); var g = b.memoizedState; d = g.element; if (f.isDehydrated) if ( ((f = { element: d, isDehydrated: !1, cache: g.cache, pendingSuspenseBoundaries: g.pendingSuspenseBoundaries, transitions: g.transitions, }), (b.updateQueue.baseState = f), (b.memoizedState = f), b.flags & 256) ) { e = Error(p(423)); b = rj(a, b, d, c, e); break a; } else if (d !== e) { e = Error(p(424)); b = rj(a, b, d, c, e); break a; } else for ( eh = Kf( b.stateNode.containerInfo.firstChild ), dh = b, I = !0, fh = null, c = zh(b, null, d, c), b.child = c; c; ) (c.flags = (c.flags & -3) | 4096), (c = c.sibling); else { nh(); if (d === e) { b = gj(a, b, c); break a; } ej(a, b, d, c); } b = b.child; } return b; case 5: return ( Hh(b), null === a && kh(b), (d = b.type), (e = b.pendingProps), (f = null !== a ? a.memoizedProps : null), (g = e.children), Df(d, e) ? (g = null) : null !== f && Df(d, f) && (b.flags |= 32), nj(a, b), ej(a, b, g, c), b.child ); case 6: return null === a && kh(b), null; case 13: return vj(a, b, c); case 4: return ( Fh(b, b.stateNode.containerInfo), (d = b.pendingProps), null === a ? (b.child = yh(b, null, d, c)) : ej(a, b, d, c), b.child ); case 11: return ( (d = b.type), (e = b.pendingProps), (e = b.elementType === d ? e : kg(d, e)), fj(a, b, d, e, c) ); case 7: return ej(a, b, b.pendingProps, c), b.child; case 8: return ej(a, b, b.pendingProps.children, c), b.child; case 12: return ej(a, b, b.pendingProps.children, c), b.child; case 10: a: { d = b.type._context; e = b.pendingProps; f = b.memoizedProps; g = e.value; G(lg, d._currentValue); d._currentValue = g; if (null !== f) if (Ge(f.value, g)) { if ( f.children === e.children && !Vf.current ) { b = gj(a, b, c); break a; } } else for ( f = b.child, null !== f && (f.return = b); null !== f; ) { var h = f.dependencies; if (null !== h) { g = f.child; for ( var k = h.firstContext; null !== k; ) { if (k.context === d) { if (1 === f.tag) { k = zg(-1, c & -c); k.tag = 2; var l = f.updateQueue; if (null !== l) { l = l.shared; var n = l.pending; null === n ? (k.next = k) : ((k.next = n.next), (n.next = k)); l.pending = k; } } f.lanes |= c; k = f.alternate; null !== k && (k.lanes |= c); rg(f.return, c, b); h.lanes |= c; break; } k = k.next; } } else if (10 === f.tag) g = f.type === b.type ? null : f.child; else if (18 === f.tag) { g = f.return; if (null === g) throw Error(p(341)); g.lanes |= c; h = g.alternate; null !== h && (h.lanes |= c); rg(g, c, b); g = f.sibling; } else g = f.child; if (null !== g) g.return = f; else for (g = f; null !== g; ) { if (g === b) { g = null; break; } f = g.sibling; if (null !== f) { f.return = g.return; g = f; break; } g = g.return; } f = g; } ej(a, b, e.children, c); b = b.child; } return b; case 9: return ( (e = b.type), (d = b.pendingProps.children), sg(b, c), (e = ug(e)), (d = d(e)), (b.flags |= 1), ej(a, b, d, c), b.child ); case 14: return ( (d = b.type), (e = kg(d, b.pendingProps)), (e = kg(d.type, e)), hj(a, b, d, e, c) ); case 15: return jj(a, b, b.type, b.pendingProps, c); case 17: return ( (d = b.type), (e = b.pendingProps), (e = b.elementType === d ? e : kg(d, e)), null !== a && ((a.alternate = null), (b.alternate = null), (b.flags |= 2)), (b.tag = 1), Yf(d) ? ((a = !0), bg(b)) : (a = !1), sg(b, c), Og(b, d, e), Qg(b, d, e, c), pj(null, b, d, !0, a, c) ); case 19: return Ej(a, b, c); case 22: return lj(a, b, c); } throw Error(p(156, b.tag)); }; function Ek(a, b) { return $b(a, b); } function Zk(a, b, c, d) { this.tag = a; this.key = c; this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; this.index = 0; this.ref = null; this.pendingProps = b; this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; this.mode = d; this.subtreeFlags = this.flags = 0; this.deletions = null; this.childLanes = this.lanes = 0; this.alternate = null; } function hh(a, b, c, d) { return new Zk(a, b, c, d); } function ij(a) { a = a.prototype; return !(!a || !a.isReactComponent); } function Yk(a) { if ("function" === typeof a) return ij(a) ? 1 : 0; if (void 0 !== a && null !== a) { a = a.$$typeof; if (a === Ca) return 11; if (a === Fa) return 14; } return 2; } function th(a, b) { var c = a.alternate; null === c ? ((c = hh(a.tag, b, a.key, a.mode)), (c.elementType = a.elementType), (c.type = a.type), (c.stateNode = a.stateNode), (c.alternate = a), (a.alternate = c)) : ((c.pendingProps = b), (c.type = a.type), (c.flags = 0), (c.subtreeFlags = 0), (c.deletions = null)); c.flags = a.flags & 14680064; c.childLanes = a.childLanes; c.lanes = a.lanes; c.child = a.child; c.memoizedProps = a.memoizedProps; c.memoizedState = a.memoizedState; c.updateQueue = a.updateQueue; b = a.dependencies; c.dependencies = null === b ? null : { lanes: b.lanes, firstContext: b.firstContext }; c.sibling = a.sibling; c.index = a.index; c.ref = a.ref; return c; } function vh(a, b, c, d, e, f) { var g = 2; d = a; if ("function" === typeof a) ij(a) && (g = 1); else if ("string" === typeof a) g = 5; else a: switch (a) { case wa: return xh(c.children, e, f, b); case xa: g = 8; e |= 8; break; case za: return ( (a = hh(12, c, b, e | 2)), (a.elementType = za), (a.lanes = f), a ); case Da: return ( (a = hh(13, c, b, e)), (a.elementType = Da), (a.lanes = f), a ); case Ea: return ( (a = hh(19, c, b, e)), (a.elementType = Ea), (a.lanes = f), a ); case Ha: return wj(c, e, f, b); default: if ("object" === typeof a && null !== a) switch (a.$$typeof) { case Aa: g = 10; break a; case Ba: g = 9; break a; case Ca: g = 11; break a; case Fa: g = 14; break a; case Ga: g = 16; d = null; break a; } throw Error(p(130, null == a ? a : typeof a, "")); } b = hh(g, c, b, e); b.elementType = a; b.type = d; b.lanes = f; return b; } function xh(a, b, c, d) { a = hh(7, a, d, b); a.lanes = c; return a; } function wj(a, b, c, d) { a = hh(22, a, d, b); a.elementType = Ha; a.lanes = c; a.stateNode = {}; return a; } function uh(a, b, c) { a = hh(6, a, null, b); a.lanes = c; return a; } function wh(a, b, c) { b = hh(4, null !== a.children ? a.children : [], a.key, b); b.lanes = c; b.stateNode = { containerInfo: a.containerInfo, pendingChildren: null, implementation: a.implementation, }; return b; } function $k(a, b, c, d, e) { this.tag = b; this.containerInfo = a; this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; this.timeoutHandle = -1; this.callbackNode = this.pendingContext = this.context = null; this.callbackPriority = 0; this.eventTimes = yc(0); this.expirationTimes = yc(-1); this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; this.entanglements = yc(0); this.identifierPrefix = d; this.onRecoverableError = e; this.mutableSourceEagerHydrationData = null; } function al(a, b, c, d, e, f, g, h, k) { a = new $k(a, b, c, h, k); 1 === b ? ((b = 1), !0 === f && (b |= 8)) : (b = 0); f = hh(3, null, null, b); a.current = f; f.stateNode = a; f.memoizedState = { element: d, isDehydrated: c, cache: null, transitions: null, pendingSuspenseBoundaries: null, }; xg(f); return a; } function bl(a, b, c) { var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { $$typeof: va, key: null == d ? null : "" + d, children: a, containerInfo: b, implementation: c, }; } function cl(a) { if (!a) return Uf; a = a._reactInternals; a: { if (Ub(a) !== a || 1 !== a.tag) throw Error(p(170)); var b = a; do { switch (b.tag) { case 3: b = b.stateNode.context; break a; case 1: if (Yf(b.type)) { b = b.stateNode .__reactInternalMemoizedMergedChildContext; break a; } } b = b.return; } while (null !== b); throw Error(p(171)); } if (1 === a.tag) { var c = a.type; if (Yf(c)) return ag(a, c, b); } return b; } function dl(a, b, c, d, e, f, g, h, k) { a = al(c, d, !0, a, e, f, g, h, k); a.context = cl(null); c = a.current; d = Jg(); e = Kg(c); f = zg(d, e); f.callback = void 0 !== b && null !== b ? b : null; Ag(c, f); a.current.lanes = e; zc(a, e, d); Ck(a, d); return a; } function el(a, b, c, d) { var e = b.current, f = Jg(), g = Kg(e); c = cl(c); null === b.context ? (b.context = c) : (b.pendingContext = c); b = zg(f, g); b.payload = { element: a }; d = void 0 === d ? null : d; null !== d && (b.callback = d); Ag(e, b); a = Lg(e, g, f); null !== a && Cg(a, e, g); return g; } function fl(a) { a = a.current; if (!a.child) return null; switch (a.child.tag) { case 5: return a.child.stateNode; default: return a.child.stateNode; } } function gl(a, b) { a = a.memoizedState; if (null !== a && null !== a.dehydrated) { var c = a.retryLane; a.retryLane = 0 !== c && c < b ? c : b; } } function hl(a, b) { gl(a, b); (a = a.alternate) && gl(a, b); } function il() { return null; } var jl = "function" === typeof reportError ? reportError : function (a) { console.error(a); }; function kl(a) { this._internalRoot = a; } ll.prototype.render = kl.prototype.render = function (a) { var b = this._internalRoot; if (null === b) throw Error(p(409)); el(a, b, null, null); }; ll.prototype.unmount = kl.prototype.unmount = function () { var a = this._internalRoot; if (null !== a) { this._internalRoot = null; var b = a.containerInfo; Qk(function () { el(null, a, null, null); }); b[tf] = null; } }; function ll(a) { this._internalRoot = a; } ll.prototype.unstable_scheduleHydration = function (a) { if (a) { var b = Gc(); a = { blockedOn: null, target: a, priority: b }; for ( var c = 0; c < Pc.length && 0 !== b && b < Pc[c].priority; c++ ); Pc.splice(c, 0, a); 0 === c && Uc(a); } }; function ml(a) { return !( !a || (1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType) ); } function nl(a) { return !( !a || (1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue)) ); } function ol() {} function pl(a, b, c, d, e) { if (e) { if ("function" === typeof d) { var f = d; d = function () { var a = fl(g); f.call(a); }; } var g = dl(b, d, a, 0, null, !1, !1, "", ol); a._reactRootContainer = g; a[tf] = g.current; rf(8 === a.nodeType ? a.parentNode : a); Qk(); return g; } for (; (e = a.lastChild); ) a.removeChild(e); if ("function" === typeof d) { var h = d; d = function () { var a = fl(k); h.call(a); }; } var k = al(a, 0, !1, null, null, !1, !1, "", ol); a._reactRootContainer = k; a[tf] = k.current; rf(8 === a.nodeType ? a.parentNode : a); Qk(function () { el(b, k, c, d); }); return k; } function ql(a, b, c, d, e) { var f = c._reactRootContainer; if (f) { var g = f; if ("function" === typeof e) { var h = e; e = function () { var a = fl(g); h.call(a); }; } el(b, g, a, e); } else g = pl(c, b, a, e, d); return fl(g); } Dc = function (a) { switch (a.tag) { case 3: var b = a.stateNode; if (b.current.memoizedState.isDehydrated) { var c = sc(b.pendingLanes); 0 !== c && (Bc(b, c | 1), Ck(b, B()), 0 === (W & 6) && ((aj = B() + 500), ig())); } break; case 13: var d = Jg(); Qk(function () { return Lg(a, 1, d); }); hl(a, 1); } }; Ec = function (a) { if (13 === a.tag) { var b = Jg(); Lg(a, 134217728, b); hl(a, 134217728); } }; Fc = function (a) { if (13 === a.tag) { var b = Jg(), c = Kg(a); Lg(a, c, b); hl(a, c); } }; Gc = function () { return C; }; Hc = function (a, b) { var c = C; try { return (C = a), b(); } finally { C = c; } }; xb = function (a, b, c) { switch (b) { case "input": $a(a, c); b = c.name; if ("radio" === c.type && null != b) { for (c = a; c.parentNode; ) c = c.parentNode; c = c.querySelectorAll( "input[name=" + JSON.stringify("" + b) + '][type="radio"]' ); for (b = 0; b < c.length; b++) { var d = c[b]; if (d !== a && d.form === a.form) { var e = Cb(d); if (!e) throw Error(p(90)); Va(d); $a(d, e); } } } break; case "textarea": hb(a, c); break; case "select": (b = c.value), null != b && eb(a, !!c.multiple, b, !1); } }; Fb = Pk; Gb = Qk; var rl = { usingClientEntryPoint: !1, Events: [Bb, te, Cb, Db, Eb, Pk], }, sl = { findFiberByHostInstance: Vc, bundleType: 0, version: "18.1.0", rendererPackageName: "react-dom", }; var tl = { bundleType: sl.bundleType, version: sl.version, rendererPackageName: sl.rendererPackageName, rendererConfig: sl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ta.ReactCurrentDispatcher, findHostInstanceByFiber: function (a) { a = Yb(a); return null === a ? null : a.stateNode; }, findFiberByHostInstance: sl.findFiberByHostInstance || il, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.1.0-next-22edb9f77-20220426", }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var ul = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (!ul.isDisabled && ul.supportsFiber) try { (jc = ul.inject(tl)), (kc = ul); } catch (a) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = rl; exports.createPortal = function (a, b) { var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!ml(b)) throw Error(p(200)); return bl(a, b, null, c); }; exports.createRoot = function (a, b) { if (!ml(a)) throw Error(p(299)); var c = !1, d = "", e = jl; null !== b && void 0 !== b && (!0 === b.unstable_strictMode && (c = !0), void 0 !== b.identifierPrefix && (d = b.identifierPrefix), void 0 !== b.onRecoverableError && (e = b.onRecoverableError)); b = al(a, 1, !1, null, null, c, !1, d, e); a[tf] = b.current; rf(8 === a.nodeType ? a.parentNode : a); return new kl(b); }; exports.findDOMNode = function (a) { if (null == a) return null; if (1 === a.nodeType) return a; var b = a._reactInternals; if (void 0 === b) { if ("function" === typeof a.render) throw Error(p(188)); a = Object.keys(a).join(","); throw Error(p(268, a)); } a = Yb(b); a = null === a ? null : a.stateNode; return a; }; exports.flushSync = function (a) { return Qk(a); }; exports.hydrate = function (a, b, c) { if (!nl(b)) throw Error(p(200)); return ql(null, a, b, !0, c); }; exports.hydrateRoot = function (a, b, c) { if (!ml(a)) throw Error(p(405)); var d = (null != c && c.hydratedSources) || null, e = !1, f = "", g = jl; null !== c && void 0 !== c && (!0 === c.unstable_strictMode && (e = !0), void 0 !== c.identifierPrefix && (f = c.identifierPrefix), void 0 !== c.onRecoverableError && (g = c.onRecoverableError)); b = dl(b, null, a, 1, null != c ? c : null, e, !1, f, g); a[tf] = b.current; rf(a); if (d) for (a = 0; a < d.length; a++) (c = d[a]), (e = c._getVersion), (e = e(c._source)), null == b.mutableSourceEagerHydrationData ? (b.mutableSourceEagerHydrationData = [c, e]) : b.mutableSourceEagerHydrationData.push(c, e); return new ll(b); }; exports.render = function (a, b, c) { if (!nl(b)) throw Error(p(200)); return ql(null, a, b, !1, c); }; exports.unmountComponentAtNode = function (a) { if (!nl(a)) throw Error(p(40)); return a._reactRootContainer ? (Qk(function () { ql(null, null, a, !1, function () { a._reactRootContainer = null; a[tf] = null; }); }), !0) : !1; }; exports.unstable_batchedUpdates = Pk; exports.unstable_renderSubtreeIntoContainer = function ( a, b, c, d ) { if (!nl(c)) throw Error(p(200)); if (null == a || void 0 === a._reactInternals) throw Error(p(38)); return ql(a, b, c, !1, d); }; exports.version = "18.1.0-next-22edb9f77-20220426"; /***/ }, /***/ 7029: /***/ function ( __unused_webpack_module, exports, __webpack_require__ ) { var m = __webpack_require__(8316); if (true) { exports.createRoot = m.createRoot; exports.hydrateRoot = m.hydrateRoot; } else { var i; } /***/ }, /***/ 8316: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { function checkDCE() { /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function" ) { return; } if (false) { } try { // Verify that the code above has been dead code eliminated (DCE'd). __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); } catch (err) { // DevTools shouldn't crash React, no matter what. // We should still report in case we break this code. console.error(err); } } if (true) { // DCE check should happen before ReactDOM bundle executes so that // DevTools can report bad minification during injection. checkDCE(); module.exports = __webpack_require__(2967); } else { } /***/ }, /***/ 9670: /***/ function (__unused_webpack_module, exports) { /** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ function f(a, b) { var c = a.length; a.push(b); a: for (; 0 < c; ) { var d = (c - 1) >>> 1, e = a[d]; if (0 < g(e, b)) (a[d] = b), (a[c] = e), (c = d); else break a; } } function h(a) { return 0 === a.length ? null : a[0]; } function k(a) { if (0 === a.length) return null; var b = a[0], c = a.pop(); if (c !== b) { a[0] = c; a: for (var d = 0, e = a.length, w = e >>> 1; d < w; ) { var m = 2 * (d + 1) - 1, C = a[m], n = m + 1, x = a[n]; if (0 > g(C, c)) n < e && 0 > g(x, C) ? ((a[d] = x), (a[n] = c), (d = n)) : ((a[d] = C), (a[m] = c), (d = m)); else if (n < e && 0 > g(x, c)) (a[d] = x), (a[n] = c), (d = n); else break a; } } return b; } function g(a, b) { var c = a.sortIndex - b.sortIndex; return 0 !== c ? c : a.id - b.id; } if ( "object" === typeof performance && "function" === typeof performance.now ) { var l = performance; exports.unstable_now = function () { return l.now(); }; } else { var p = Date, q = p.now(); exports.unstable_now = function () { return p.now() - q; }; } var r = [], t = [], u = 1, v = null, y = 3, z = !1, A = !1, B = !1, D = "function" === typeof setTimeout ? setTimeout : null, E = "function" === typeof clearTimeout ? clearTimeout : null, F = "undefined" !== typeof setImmediate ? setImmediate : null; "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); function G(a) { for (var b = h(t); null !== b; ) { if (null === b.callback) k(t); else if (b.startTime <= a) k(t), (b.sortIndex = b.expirationTime), f(r, b); else break; b = h(t); } } function H(a) { B = !1; G(a); if (!A) if (null !== h(r)) (A = !0), I(J); else { var b = h(t); null !== b && K(H, b.startTime - a); } } function J(a, b) { A = !1; B && ((B = !1), E(L), (L = -1)); z = !0; var c = y; try { G(b); for ( v = h(r); null !== v && (!(v.expirationTime > b) || (a && !M())); ) { var d = v.callback; if ("function" === typeof d) { v.callback = null; y = v.priorityLevel; var e = d(v.expirationTime <= b); b = exports.unstable_now(); "function" === typeof e ? (v.callback = e) : v === h(r) && k(r); G(b); } else k(r); v = h(r); } if (null !== v) var w = !0; else { var m = h(t); null !== m && K(H, m.startTime - b); w = !1; } return w; } finally { (v = null), (y = c), (z = !1); } } var N = !1, O = null, L = -1, P = 5, Q = -1; function M() { return exports.unstable_now() - Q < P ? !1 : !0; } function R() { if (null !== O) { var a = exports.unstable_now(); Q = a; var b = !0; try { b = O(!0, a); } finally { b ? S() : ((N = !1), (O = null)); } } else N = !1; } var S; if ("function" === typeof F) S = function () { F(R); }; else if ("undefined" !== typeof MessageChannel) { var T = new MessageChannel(), U = T.port2; T.port1.onmessage = R; S = function () { U.postMessage(null); }; } else S = function () { D(R, 0); }; function I(a) { O = a; N || ((N = !0), S()); } function K(a, b) { L = D(function () { a(exports.unstable_now()); }, b); } exports.unstable_IdlePriority = 5; exports.unstable_ImmediatePriority = 1; exports.unstable_LowPriority = 4; exports.unstable_NormalPriority = 3; exports.unstable_Profiling = null; exports.unstable_UserBlockingPriority = 2; exports.unstable_cancelCallback = function (a) { a.callback = null; }; exports.unstable_continueExecution = function () { A || z || ((A = !0), I(J)); }; exports.unstable_forceFrameRate = function (a) { 0 > a || 125 < a ? console.error( "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" ) : (P = 0 < a ? Math.floor(1e3 / a) : 5); }; exports.unstable_getCurrentPriorityLevel = function () { return y; }; exports.unstable_getFirstCallbackNode = function () { return h(r); }; exports.unstable_next = function (a) { switch (y) { case 1: case 2: case 3: var b = 3; break; default: b = y; } var c = y; y = b; try { return a(); } finally { y = c; } }; exports.unstable_pauseExecution = function () {}; exports.unstable_requestPaint = function () {}; exports.unstable_runWithPriority = function (a, b) { switch (a) { case 1: case 2: case 3: case 4: case 5: break; default: a = 3; } var c = y; y = a; try { return b(); } finally { y = c; } }; exports.unstable_scheduleCallback = function (a, b, c) { var d = exports.unstable_now(); "object" === typeof c && null !== c ? ((c = c.delay), (c = "number" === typeof c && 0 < c ? d + c : d)) : (c = d); switch (a) { case 1: var e = -1; break; case 2: e = 250; break; case 5: e = 1073741823; break; case 4: e = 1e4; break; default: e = 5e3; } e = c + e; a = { id: u++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1, }; c > d ? ((a.sortIndex = c), f(t, a), null === h(r) && a === h(t) && (B ? (E(L), (L = -1)) : (B = !0), K(H, c - d))) : ((a.sortIndex = e), f(r, a), A || z || ((A = !0), I(J))); return a; }; exports.unstable_shouldYield = M; exports.unstable_wrapCallback = function (a) { var b = y; return function () { var c = y; y = b; try { return a.apply(this, arguments); } finally { y = c; } }; }; /***/ }, /***/ 2941: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { if (true) { module.exports = __webpack_require__(9670); } else { } /***/ }, /***/ 1837: /***/ function ( __unused_webpack_module, exports, __webpack_require__ ) { /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var f = __webpack_require__(2784), k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED .ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 }; function q(c, a, g) { var b, d = {}, e = null, h = null; void 0 !== g && (e = "" + g); void 0 !== a.key && (e = "" + a.key); void 0 !== a.ref && (h = a.ref); for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]); if (c && c.defaultProps) for (b in ((a = c.defaultProps), a)) void 0 === d[b] && (d[b] = a[b]); return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current, }; } exports.Fragment = l; exports.jsx = q; exports.jsxs = q; /***/ }, /***/ 3426: /***/ function (__unused_webpack_module, exports) { /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator; function A(a) { if (null === a || "object" !== typeof a) return null; a = (z && a[z]) || a["@@iterator"]; return "function" === typeof a ? a : null; } var B = { isMounted: function () { return !1; }, enqueueForceUpdate: function () {}, enqueueReplaceState: function () {}, enqueueSetState: function () {}, }, C = Object.assign, D = {}; function E(a, b, e) { this.props = a; this.context = b; this.refs = D; this.updater = e || B; } E.prototype.isReactComponent = {}; E.prototype.setState = function (a, b) { if ( "object" !== typeof a && "function" !== typeof a && null != a ) throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ); this.updater.enqueueSetState(this, a, b, "setState"); }; E.prototype.forceUpdate = function (a) { this.updater.enqueueForceUpdate(this, a, "forceUpdate"); }; function F() {} F.prototype = E.prototype; function G(a, b, e) { this.props = a; this.context = b; this.refs = D; this.updater = e || B; } var H = (G.prototype = new F()); H.constructor = G; C(H, E.prototype); H.isPureReactComponent = !0; var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L = { key: !0, ref: !0, __self: !0, __source: !0 }; function M(a, b, e) { var d, c = {}, k = null, h = null; if (null != b) for (d in (void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); var g = arguments.length - 2; if (1 === g) c.children = e; else if (1 < g) { for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2]; c.children = f; } if (a && a.defaultProps) for (d in ((g = a.defaultProps), g)) void 0 === c[d] && (c[d] = g[d]); return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current, }; } function N(a, b) { return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner, }; } function O(a) { return "object" === typeof a && null !== a && a.$$typeof === l; } function escape(a) { var b = { "=": "=0", ":": "=2" }; return ( "$" + a.replace(/[=:]/g, function (a) { return b[a]; }) ); } var P = /\/+/g; function Q(a, b) { return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); } function R(a, b, e, d, c) { var k = typeof a; if ("undefined" === k || "boolean" === k) a = null; var h = !1; if (null === a) h = !0; else switch (k) { case "string": case "number": h = !0; break; case "object": switch (a.$$typeof) { case l: case n: h = !0; } } if (h) return ( (h = a), (c = c(h)), (a = "" === d ? "." + Q(h, 0) : d), I(c) ? ((e = ""), null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function (a) { return a; })) : null != c && (O(c) && (c = N( c, e + (!c.key || (h && h.key === c.key) ? "" : ("" + c.key).replace(P, "$&/") + "/") + a )), b.push(c)), 1 ); h = 0; d = "" === d ? "." : d + ":"; if (I(a)) for (var g = 0; g < a.length; g++) { k = a[g]; var f = d + Q(k, g); h += R(k, b, e, f, c); } else if (((f = A(a)), "function" === typeof f)) for (a = f.call(a), g = 0; !(k = a.next()).done; ) (k = k.value), (f = d + Q(k, g++)), (h += R(k, b, e, f, c)); else if ("object" === k) throw ( ((b = String(a)), Error( "Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead." )) ); return h; } function S(a, b, e) { if (null == a) return a; var d = [], c = 0; R(a, d, "", "", function (a) { return b.call(e, a, c++); }); return d; } function T(a) { if (-1 === a._status) { var b = a._result; b = b(); b.then( function (b) { if (0 === a._status || -1 === a._status) (a._status = 1), (a._result = b); }, function (b) { if (0 === a._status || -1 === a._status) (a._status = 2), (a._result = b); } ); -1 === a._status && ((a._status = 0), (a._result = b)); } if (1 === a._status) return a._result.default; throw a._result; } var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K, }; exports.Children = { map: S, forEach: function (a, b, e) { S( a, function () { b.apply(this, arguments); }, e ); }, count: function (a) { var b = 0; S(a, function () { b++; }); return b; }, toArray: function (a) { return ( S(a, function (a) { return a; }) || [] ); }, only: function (a) { if (!O(a)) throw Error( "React.Children.only expected to receive a single React element child." ); return a; }, }; exports.Component = E; exports.Fragment = p; exports.Profiler = r; exports.PureComponent = G; exports.StrictMode = q; exports.Suspense = w; exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; exports.cloneElement = function (a, b, e) { if (null === a || void 0 === a) throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + a + "." ); var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner; if (null != b) { void 0 !== b.ref && ((k = b.ref), (h = K.current)); void 0 !== b.key && (c = "" + b.key); if (a.type && a.type.defaultProps) var g = a.type.defaultProps; for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); } var f = arguments.length - 2; if (1 === f) d.children = e; else if (1 < f) { g = Array(f); for (var m = 0; m < f; m++) g[m] = arguments[m + 2]; d.children = g; } return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h, }; }; exports.createContext = function (a) { a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null, }; a.Provider = { $$typeof: t, _context: a }; return (a.Consumer = a); }; exports.createElement = M; exports.createFactory = function (a) { var b = M.bind(null, a); b.type = a; return b; }; exports.createRef = function () { return { current: null }; }; exports.forwardRef = function (a) { return { $$typeof: v, render: a }; }; exports.isValidElement = O; exports.lazy = function (a) { return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T, }; }; exports.memo = function (a, b) { return { $$typeof: x, type: a, compare: void 0 === b ? null : b, }; }; exports.startTransition = function (a) { var b = V.transition; V.transition = {}; try { a(); } finally { V.transition = b; } }; exports.unstable_act = function () { throw Error( "act(...) is not supported in production builds of React." ); }; exports.useCallback = function (a, b) { return U.current.useCallback(a, b); }; exports.useContext = function (a) { return U.current.useContext(a); }; exports.useDebugValue = function () {}; exports.useDeferredValue = function (a) { return U.current.useDeferredValue(a); }; exports.useEffect = function (a, b) { return U.current.useEffect(a, b); }; exports.useId = function () { return U.current.useId(); }; exports.useImperativeHandle = function (a, b, e) { return U.current.useImperativeHandle(a, b, e); }; exports.useInsertionEffect = function (a, b) { return U.current.useInsertionEffect(a, b); }; exports.useLayoutEffect = function (a, b) { return U.current.useLayoutEffect(a, b); }; exports.useMemo = function (a, b) { return U.current.useMemo(a, b); }; exports.useReducer = function (a, b, e) { return U.current.useReducer(a, b, e); }; exports.useRef = function (a) { return U.current.useRef(a); }; exports.useState = function (a) { return U.current.useState(a); }; exports.useSyncExternalStore = function (a, b, e) { return U.current.useSyncExternalStore(a, b, e); }; exports.useTransition = function () { return U.current.useTransition(); }; exports.version = "18.1.0"; /***/ }, /***/ 2784: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { if (true) { module.exports = __webpack_require__(3426); } else { } /***/ }, /***/ 2322: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { if (true) { module.exports = __webpack_require__(1837); } else { } /***/ }, }, ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/regression-1/framework-798bab57daac3897/output.js
JavaScript
"use strict"; (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 774 ], { /***/ 2967: /***/ function(__unused_webpack_module, exports, __webpack_require__) { /** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* Modernizr 3.0.0pre (Custom Build) | MIT */ var we, Ti, Ui, Vi, Wi, Uk, aa = __webpack_require__(2784), ba = __webpack_require__(2941); function p(a) { for(var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)b += "&args[]=" + encodeURIComponent(arguments[c]); return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var da = new Set(), ea = {}; function fa(a, b) { ha(a, b), ha(a + "Capture", b); } function ha(a, b) { for(ea[a] = b, a = 0; a < b.length; a++)da.add(b[a]); } var ia = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement, ja = Object.prototype.hasOwnProperty, ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {}; function t(a, b, c, d, e, f, g) { this.acceptsBooleans = 2 === b || 3 === b || 4 === b, this.attributeName = d, this.attributeNamespace = e, this.mustUseProperty = c, this.propertyName = a, this.type = b, this.sanitizeURL = f, this.removeEmptyString = g; } var z = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) { z[a] = new t(a, 0, !1, a, null, !1, !1); }), [ [ "acceptCharset", "accept-charset" ], [ "className", "class" ], [ "htmlFor", "for" ], [ "httpEquiv", "http-equiv" ] ].forEach(function(a) { var b = a[0]; z[b] = new t(b, 1, !1, a[1], null, !1, !1); }), [ "contentEditable", "draggable", "spellCheck", "value" ].forEach(function(a) { z[a] = new t(a, 2, !1, a.toLowerCase(), null, !1, !1); }), [ "autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha" ].forEach(function(a) { z[a] = new t(a, 2, !1, a, null, !1, !1); }), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) { z[a] = new t(a, 3, !1, a.toLowerCase(), null, !1, !1); }), [ "checked", "multiple", "muted", "selected" ].forEach(function(a) { z[a] = new t(a, 3, !0, a, null, !1, !1); }), [ "capture", "download" ].forEach(function(a) { z[a] = new t(a, 4, !1, a, null, !1, !1); }), [ "cols", "rows", "size", "span" ].forEach(function(a) { z[a] = new t(a, 6, !1, a, null, !1, !1); }), [ "rowSpan", "start" ].forEach(function(a) { z[a] = new t(a, 5, !1, a.toLowerCase(), null, !1, !1); }); var qa = /[\-:]([a-z])/g; function ra(a) { return a[1].toUpperCase(); } function sa(a, b, c, d) { var a1, e = z.hasOwnProperty(b) ? z[b] : null; (null !== e ? 0 !== e.type : d || !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1]) && (function(a, b, c, d) { if (null == b || function(a, b, c, d) { if (null !== c && 0 === c.type) return !1; switch(typeof b){ case "function": case "symbol": return !0; case "boolean": if (d) return !1; if (null !== c) return !c.acceptsBooleans; return "data-" !== (a = a.toLowerCase().slice(0, 5)) && "aria-" !== a; default: return !1; } }(a, b, c, d)) return !0; if (d) return !1; if (null !== c) switch(c.type){ case 3: return !b; case 4: return !1 === b; case 5: return isNaN(b); case 6: return isNaN(b) || 1 > b; } return !1; }(b, c, e, d) && (c = null), d || null === e ? (a1 = b, (!!ja.call(ma, a1) || !ja.call(la, a1) && (ka.test(a1) ? ma[a1] = !0 : (la[a1] = !0, !1))) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c))) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 !== e.type && "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (c = 3 === (e = e.type) || 4 === e && !0 === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))); } "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a) { var b = a.replace(qa, ra); z[b] = new t(b, 1, !1, a, null, !1, !1); }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) { var b = a.replace(qa, ra); z[b] = new t(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1); }), [ "xml:base", "xml:lang", "xml:space" ].forEach(function(a) { var b = a.replace(qa, ra); z[b] = new t(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1); }), [ "tabIndex", "crossOrigin" ].forEach(function(a) { z[a] = new t(a, 1, !1, a.toLowerCase(), null, !1, !1); }), z.xlinkHref = new t("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), [ "src", "href", "action", "formAction" ].forEach(function(a) { z[a] = new t(a, 1, !1, a.toLowerCase(), null, !0, !0); }); var ta = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ua = Symbol.for("react.element"), va = Symbol.for("react.portal"), wa = Symbol.for("react.fragment"), xa = Symbol.for("react.strict_mode"), za = Symbol.for("react.profiler"), Aa = Symbol.for("react.provider"), Ba = Symbol.for("react.context"), Ca = Symbol.for("react.forward_ref"), Da = Symbol.for("react.suspense"), Ea = Symbol.for("react.suspense_list"), Fa = Symbol.for("react.memo"), Ga = Symbol.for("react.lazy"); Symbol.for("react.scope"), Symbol.for("react.debug_trace_mode"); var Ha = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"), Symbol.for("react.cache"), Symbol.for("react.tracing_marker"); var Ia = Symbol.iterator; function Ja(a) { return null === a || "object" != typeof a ? null : "function" == typeof (a = Ia && a[Ia] || a["@@iterator"]) ? a : null; } var Ka, A = Object.assign; function La(a) { if (void 0 === Ka) try { throw Error(); } catch (c) { var b = c.stack.trim().match(/\n( *(at )?)/); Ka = b && b[1] || ""; } return "\n" + Ka + a; } var Ma = !1; function Na(a, b) { if (!a || Ma) return ""; Ma = !0; var c = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { if (b) { if (b = function() { throw Error(); }, Object.defineProperty(b.prototype, "props", { set: function() { throw Error(); } }), "object" == typeof Reflect && Reflect.construct) { try { Reflect.construct(b, []); } catch (l) { var d = l; } Reflect.construct(a, [], b); } else { try { b.call(); } catch (l) { d = l; } a.call(b.prototype); } } else { try { throw Error(); } catch (l) { d = l; } a(); } } catch (l) { if (l && d && "string" == typeof l.stack) { for(var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h];)h--; for(; 1 <= g && 0 <= h; g--, h--)if (e[g] !== f[h]) { if (1 !== g || 1 !== h) do if (g--, 0 > --h || e[g] !== f[h]) { var k = "\n" + e[g].replace(" at new ", " at "); return a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName)), k; } while (1 <= g && 0 <= h) break; } } } finally{ Ma = !1, Error.prepareStackTrace = c; } return (a = a ? a.displayName || a.name : "") ? La(a) : ""; } function Ra(a) { switch(typeof a){ case "boolean": case "number": case "string": case "undefined": case "object": return a; default: return ""; } } function Sa(a) { var b = a.type; return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); } function Ua(a) { a._valueTracker || (a._valueTracker = function(a) { var b = Sa(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = "" + a[b]; if (!a.hasOwnProperty(b) && void 0 !== c && "function" == typeof c.get && "function" == typeof c.set) { var e = c.get, f = c.set; return Object.defineProperty(a, b, { configurable: !0, get: function() { return e.call(this); }, set: function(a) { d = "" + a, f.call(this, a); } }), Object.defineProperty(a, b, { enumerable: c.enumerable }), { getValue: function() { return d; }, setValue: function(a) { d = "" + a; }, stopTracking: function() { a._valueTracker = null, delete a[b]; } }; } }(a)); } function Va(a) { if (!a) return !1; var b = a._valueTracker; if (!b) return !0; var c = b.getValue(), d = ""; return a && (d = Sa(a) ? a.checked ? "true" : "false" : a.value), (a = d) !== c && (b.setValue(a), !0); } function Wa(a) { if (void 0 === (a = a || ("undefined" != typeof document ? document : void 0))) return null; try { return a.activeElement || a.body; } catch (b) { return a.body; } } function Xa(a, b) { var c = b.checked; return A({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c ? c : a._wrapperState.initialChecked }); } function Ya(a, b) { var c = null == b.defaultValue ? "" : b.defaultValue; a._wrapperState = { initialChecked: null != b.checked ? b.checked : b.defaultChecked, initialValue: c = Ra(null != b.value ? b.value : c), controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value }; } function Za(a, b) { null != (b = b.checked) && sa(a, "checked", b, !1); } function $a(a, b) { Za(a, b); var c = Ra(b.value), d = b.type; if (null != c) "number" === d ? (0 === c && "" === a.value || a.value != c) && (a.value = "" + c) : a.value !== "" + c && (a.value = "" + c); else if ("submit" === d || "reset" === d) { a.removeAttribute("value"); return; } b.hasOwnProperty("value") ? bb(a, b.type, c) : b.hasOwnProperty("defaultValue") && bb(a, b.type, Ra(b.defaultValue)), null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); } function cb(a, b, c) { if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { var d = b.type; if (("submit" === d || "reset" === d) && (void 0 === b.value || null === b.value)) return; b = "" + a._wrapperState.initialValue, c || b === a.value || (a.value = b), a.defaultValue = b; } "" !== (c = a.name) && (a.name = ""), a.defaultChecked = !!a._wrapperState.initialChecked, "" !== c && (a.name = c); } function bb(a, b, c) { ("number" !== b || Wa(a.ownerDocument) !== a) && (null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c)); } var db = Array.isArray; function eb(a, b, c, d) { if (a = a.options, b) { b = {}; for(var e = 0; e < c.length; e++)b["$" + c[e]] = !0; for(c = 0; c < a.length; c++)e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0); } else { for(e = 0, c = "" + Ra(c), b = null; e < a.length; e++){ if (a[e].value === c) { a[e].selected = !0, d && (a[e].defaultSelected = !0); return; } null !== b || a[e].disabled || (b = a[e]); } null !== b && (b.selected = !0); } } function fb(a, b) { if (null != b.dangerouslySetInnerHTML) throw Error(p(91)); return A({}, b, { value: void 0, defaultValue: void 0, children: "" + a._wrapperState.initialValue }); } function gb(a, b) { var c = b.value; if (null == c) { if (c = b.children, b = b.defaultValue, null != c) { if (null != b) throw Error(p(92)); if (db(c)) { if (1 < c.length) throw Error(p(93)); c = c[0]; } b = c; } null == b && (b = ""), c = b; } a._wrapperState = { initialValue: Ra(c) }; } function hb(a, b) { var c = Ra(b.value), d = Ra(b.defaultValue); null != c && ((c = "" + c) !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)), null != d && (a.defaultValue = "" + d); } function ib(a) { var b = a.textContent; b === a._wrapperState.initialValue && "" !== b && null !== b && (a.value = b); } function jb(a) { switch(a){ case "svg": return "http://www.w3.org/2000/svg"; case "math": return "http://www.w3.org/1998/Math/MathML"; default: return "http://www.w3.org/1999/xhtml"; } } function kb(a, b) { return null == a || "http://www.w3.org/1999/xhtml" === a ? jb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a; } var a, lb, mb = (a = function(a, b) { if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b; else { for((lb = lb || document.createElement("div")).innerHTML = "<svg>" + b.valueOf().toString() + "</svg>", b = lb.firstChild; a.firstChild;)a.removeChild(a.firstChild); for(; b.firstChild;)a.appendChild(b.firstChild); } }, "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) { MSApp.execUnsafeLocalFunction(function() { return a(b, c, d, e); }); } : a); function nb(a, b) { if (b) { var c = a.firstChild; if (c && c === a.lastChild && 3 === c.nodeType) { c.nodeValue = b; return; } } a.textContent = b; } var ob = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 }, pb = [ "Webkit", "ms", "Moz", "O" ]; function qb(a, b, c) { return null == b || "boolean" == typeof b || "" === b ? "" : c || "number" != typeof b || 0 === b || ob.hasOwnProperty(a) && ob[a] ? ("" + b).trim() : b + "px"; } function rb(a, b) { for(var c in a = a.style, b)if (b.hasOwnProperty(c)) { var d = 0 === c.indexOf("--"), e = qb(c, b[c], d); "float" === c && (c = "cssFloat"), d ? a.setProperty(c, e) : a[c] = e; } } Object.keys(ob).forEach(function(a) { pb.forEach(function(b) { ob[b = b + a.charAt(0).toUpperCase() + a.substring(1)] = ob[a]; }); }); var sb = A({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); function tb(a, b) { if (b) { if (sb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a)); if (null != b.dangerouslySetInnerHTML) { if (null != b.children) throw Error(p(60)); if ("object" != typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61)); } if (null != b.style && "object" != typeof b.style) throw Error(p(62)); } } function ub(a, b) { if (-1 === a.indexOf("-")) return "string" == typeof b.is; switch(a){ case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": return !1; default: return !0; } } var vb = null; function wb(a) { return (a = a.target || a.srcElement || window).correspondingUseElement && (a = a.correspondingUseElement), 3 === a.nodeType ? a.parentNode : a; } var xb = null, yb = null, zb = null; function Ab(a) { if (a = Bb(a)) { if ("function" != typeof xb) throw Error(p(280)); var b = a.stateNode; b && (b = Cb(b), xb(a.stateNode, a.type, b)); } } function Db(a) { yb ? zb ? zb.push(a) : zb = [ a ] : yb = a; } function Eb() { if (yb) { var a = yb, b = zb; if (zb = yb = null, Ab(a), b) for(a = 0; a < b.length; a++)Ab(b[a]); } } function Fb(a, b) { return a(b); } function Gb() {} var Hb = !1; function Ib(a, b, c) { if (Hb) return a(b, c); Hb = !0; try { return Fb(a, b, c); } finally{ Hb = !1, (null !== yb || null !== zb) && (Gb(), Eb()); } } function Jb(a, b) { var c = a.stateNode; if (null === c) return null; var d = Cb(c); if (null === d) return null; switch(c = d[b], b){ case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (d = !d.disabled) || (d = "button" !== (a = a.type) && "input" !== a && "select" !== a && "textarea" !== a), a = !d; break; default: a = !1; } if (a) return null; if (c && "function" != typeof c) throw Error(p(231, b, typeof c)); return c; } var Kb = !1; if (ia) try { var Lb = {}; Object.defineProperty(Lb, "passive", { get: function() { Kb = !0; } }), window.addEventListener("test", Lb, Lb), window.removeEventListener("test", Lb, Lb); } catch (a) { Kb = !1; } function Mb(a, b, c, d, e, f, g, h, k) { var l = Array.prototype.slice.call(arguments, 3); try { b.apply(c, l); } catch (n) { this.onError(n); } } var Nb = !1, Ob = null, Pb = !1, Qb = null, Rb = { onError: function(a) { Nb = !0, Ob = a; } }; function Sb(a, b, c, d, e, f, g, h, k) { Nb = !1, Ob = null, Mb.apply(Rb, arguments); } function Ub(a) { var b = a, c = a; if (a.alternate) for(; b.return;)b = b.return; else { a = b; do 0 != (4098 & (b = a).flags) && (c = b.return), a = b.return; while (a) } return 3 === b.tag ? c : null; } function Vb(a) { if (13 === a.tag) { var b = a.memoizedState; if (null === b && null !== (a = a.alternate) && (b = a.memoizedState), null !== b) return b.dehydrated; } return null; } function Wb(a) { if (Ub(a) !== a) throw Error(p(188)); } function Yb(a) { return null !== (a = function(a) { var b = a.alternate; if (!b) { if (null === (b = Ub(a))) throw Error(p(188)); return b !== a ? null : a; } for(var c = a, d = b;;){ var e = c.return; if (null === e) break; var f = e.alternate; if (null === f) { if (null !== (d = e.return)) { c = d; continue; } break; } if (e.child === f.child) { for(f = e.child; f;){ if (f === c) return Wb(e), a; if (f === d) return Wb(e), b; f = f.sibling; } throw Error(p(188)); } if (c.return !== d.return) c = e, d = f; else { for(var g = !1, h = e.child; h;){ if (h === c) { g = !0, c = e, d = f; break; } if (h === d) { g = !0, d = e, c = f; break; } h = h.sibling; } if (!g) { for(h = f.child; h;){ if (h === c) { g = !0, c = f, d = e; break; } if (h === d) { g = !0, d = f, c = e; break; } h = h.sibling; } if (!g) throw Error(p(189)); } } if (c.alternate !== d) throw Error(p(190)); } if (3 !== c.tag) throw Error(p(188)); return c.stateNode.current === c ? a : b; }(a)) ? function Zb(a) { if (5 === a.tag || 6 === a.tag) return a; for(a = a.child; null !== a;){ var b = Zb(a); if (null !== b) return b; a = a.sibling; } return null; }(a) : null; } var $b = ba.unstable_scheduleCallback, ac = ba.unstable_cancelCallback, bc = ba.unstable_shouldYield, cc = ba.unstable_requestPaint, B = ba.unstable_now, dc = ba.unstable_getCurrentPriorityLevel, ec = ba.unstable_ImmediatePriority, fc = ba.unstable_UserBlockingPriority, gc = ba.unstable_NormalPriority, hc = ba.unstable_LowPriority, ic = ba.unstable_IdlePriority, jc = null, kc = null, nc = Math.clz32 ? Math.clz32 : function(a) { return 0 == (a >>>= 0) ? 32 : 31 - (oc(a) / pc | 0) | 0; }, oc = Math.log, pc = Math.LN2, qc = 64, rc = 4194304; function sc(a) { switch(a & -a){ case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return 4194240 & a; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return 130023424 & a; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return a; } } function tc(a, b) { var c = a.pendingLanes; if (0 === c) return 0; var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = 268435455 & c; if (0 !== g) { var h = g & ~e; 0 !== h ? d = sc(h) : 0 != (f &= g) && (d = sc(f)); } else 0 != (g = c & ~e) ? d = sc(g) : 0 !== f && (d = sc(f)); if (0 === d) return 0; if (0 !== b && b !== d && 0 == (b & e) && ((e = d & -d) >= (f = b & -b) || 16 === e && 0 != (4194240 & f))) return b; if (0 != (4 & d) && (d |= 16 & c), 0 !== (b = a.entangledLanes)) for(a = a.entanglements, b &= d; 0 < b;)e = 1 << (c = 31 - nc(b)), d |= a[c], b &= ~e; return d; } function wc(a) { return 0 != (a = -1073741825 & a.pendingLanes) ? a : 1073741824 & a ? 1073741824 : 0; } function xc() { var a = qc; return 0 == (4194240 & (qc <<= 1)) && (qc = 64), a; } function yc(a) { for(var b = [], c = 0; 31 > c; c++)b.push(a); return b; } function zc(a, b, c) { a.pendingLanes |= b, 536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0), (a = a.eventTimes)[b = 31 - nc(b)] = c; } function Bc(a, b) { var c = a.entangledLanes |= b; for(a = a.entanglements; c;){ var d = 31 - nc(c), e = 1 << d; e & b | a[d] & b && (a[d] |= b), c &= ~e; } } var C = 0; function Cc(a) { return 1 < (a &= -a) ? 4 < a ? 0 != (268435455 & a) ? 16 : 536870912 : 4 : 1; } var Dc, Ec, Fc, Gc, Hc, Ic = !1, Jc = [], Kc = null, Lc = null, Mc = null, Nc = new Map(), Oc = new Map(), Pc = [], Qc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); function Rc(a, b) { switch(a){ case "focusin": case "focusout": Kc = null; break; case "dragenter": case "dragleave": Lc = null; break; case "mouseover": case "mouseout": Mc = null; break; case "pointerover": case "pointerout": Nc.delete(b.pointerId); break; case "gotpointercapture": case "lostpointercapture": Oc.delete(b.pointerId); } } function Sc(a, b, c, d, e, f) { return null === a || a.nativeEvent !== f ? (a = { blockedOn: b, domEventName: c, eventSystemFlags: d, nativeEvent: f, targetContainers: [ e ] }, null !== b && null !== (b = Bb(b)) && Ec(b)) : (a.eventSystemFlags |= d, b = a.targetContainers, null !== e && -1 === b.indexOf(e) && b.push(e)), a; } function Uc(a) { var b = Vc(a.target); if (null !== b) { var c = Ub(b); if (null !== c) { if (13 === (b = c.tag)) { if (null !== (b = Vb(c))) { a.blockedOn = b, Hc(a.priority, function() { Fc(c); }); return; } } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) { a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null; return; } } } a.blockedOn = null; } function Wc(a) { if (null !== a.blockedOn) return !1; for(var b = a.targetContainers; 0 < b.length;){ var c = Xc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent); if (null !== c) return null !== (b = Bb(c)) && Ec(b), a.blockedOn = c, !1; var d = new (c = a.nativeEvent).constructor(c.type, c); vb = d, c.target.dispatchEvent(d), vb = null, b.shift(); } return !0; } function Yc(a, b, c) { Wc(a) && c.delete(b); } function Zc() { Ic = !1, null !== Kc && Wc(Kc) && (Kc = null), null !== Lc && Wc(Lc) && (Lc = null), null !== Mc && Wc(Mc) && (Mc = null), Nc.forEach(Yc), Oc.forEach(Yc); } function $c(a, b) { a.blockedOn === b && (a.blockedOn = null, Ic || (Ic = !0, ba.unstable_scheduleCallback(ba.unstable_NormalPriority, Zc))); } function ad(a) { function b(b) { return $c(b, a); } if (0 < Jc.length) { $c(Jc[0], a); for(var c = 1; c < Jc.length; c++){ var d = Jc[c]; d.blockedOn === a && (d.blockedOn = null); } } for(null !== Kc && $c(Kc, a), null !== Lc && $c(Lc, a), null !== Mc && $c(Mc, a), Nc.forEach(b), Oc.forEach(b), c = 0; c < Pc.length; c++)(d = Pc[c]).blockedOn === a && (d.blockedOn = null); for(; 0 < Pc.length && null === (c = Pc[0]).blockedOn;)Uc(c), null === c.blockedOn && Pc.shift(); } var bd = ta.ReactCurrentBatchConfig, cd = !0; function dd(a, b, c, d) { var e = C, f = bd.transition; bd.transition = null; try { C = 1, ed(a, b, c, d); } finally{ C = e, bd.transition = f; } } function fd(a, b, c, d) { var e = C, f = bd.transition; bd.transition = null; try { C = 4, ed(a, b, c, d); } finally{ C = e, bd.transition = f; } } function ed(a, b, c, d) { if (cd) { var e = Xc(a, b, c, d); if (null === e) gd(a, b, d, hd, c), Rc(a, d); else if (function(a, b, c, d, e) { switch(b){ case "focusin": return Kc = Sc(Kc, a, b, c, d, e), !0; case "dragenter": return Lc = Sc(Lc, a, b, c, d, e), !0; case "mouseover": return Mc = Sc(Mc, a, b, c, d, e), !0; case "pointerover": var f = e.pointerId; return Nc.set(f, Sc(Nc.get(f) || null, a, b, c, d, e)), !0; case "gotpointercapture": return f = e.pointerId, Oc.set(f, Sc(Oc.get(f) || null, a, b, c, d, e)), !0; } return !1; }(e, a, b, c, d)) d.stopPropagation(); else if (Rc(a, d), 4 & b && -1 < Qc.indexOf(a)) { for(; null !== e;){ var f = Bb(e); if (null !== f && Dc(f), null === (f = Xc(a, b, c, d)) && gd(a, b, d, hd, c), f === e) break; e = f; } null !== e && d.stopPropagation(); } else gd(a, b, d, null, c); } } var hd = null; function Xc(a, b, c, d) { if (hd = null, null !== (a = Vc(a = wb(d)))) { if (null === (b = Ub(a))) a = null; else if (13 === (c = b.tag)) { if (null !== (a = Vb(b))) return a; a = null; } else if (3 === c) { if (b.stateNode.current.memoizedState.isDehydrated) return 3 === b.tag ? b.stateNode.containerInfo : null; a = null; } else b !== a && (a = null); } return hd = a, null; } function id(a) { switch(a){ case "cancel": case "click": case "close": case "contextmenu": case "copy": case "cut": case "auxclick": case "dblclick": case "dragend": case "dragstart": case "drop": case "focusin": case "focusout": case "input": case "invalid": case "keydown": case "keypress": case "keyup": case "mousedown": case "mouseup": case "paste": case "pause": case "play": case "pointercancel": case "pointerdown": case "pointerup": case "ratechange": case "reset": case "resize": case "seeked": case "submit": case "touchcancel": case "touchend": case "touchstart": case "volumechange": case "change": case "selectionchange": case "textInput": case "compositionstart": case "compositionend": case "compositionupdate": case "beforeblur": case "afterblur": case "beforeinput": case "blur": case "fullscreenchange": case "focus": case "hashchange": case "popstate": case "select": case "selectstart": return 1; case "drag": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "mousemove": case "mouseout": case "mouseover": case "pointermove": case "pointerout": case "pointerover": case "scroll": case "toggle": case "touchmove": case "wheel": case "mouseenter": case "mouseleave": case "pointerenter": case "pointerleave": return 4; case "message": switch(dc()){ case ec: return 1; case fc: return 4; case gc: case hc: return 16; case ic: return 536870912; default: return 16; } default: return 16; } } var jd = null, kd = null, ld = null; function md() { if (ld) return ld; var a, d, b = kd, c = b.length, e = "value" in jd ? jd.value : jd.textContent, f = e.length; for(a = 0; a < c && b[a] === e[a]; a++); var g = c - a; for(d = 1; d <= g && b[c - d] === e[f - d]; d++); return ld = e.slice(a, 1 < d ? 1 - d : void 0); } function nd(a) { var b = a.keyCode; return "charCode" in a ? 0 === (a = a.charCode) && 13 === b && (a = 13) : a = b, 10 === a && (a = 13), 32 <= a || 13 === a ? a : 0; } function od() { return !0; } function pd() { return !1; } function qd(a) { function b(b, d, e, f, g) { for(var c in this._reactName = b, this._targetInst = e, this.type = d, this.nativeEvent = f, this.target = g, this.currentTarget = null, a)a.hasOwnProperty(c) && (b = a[c], this[c] = b ? b(f) : f[c]); return this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue) ? od : pd, this.isPropagationStopped = pd, this; } return A(b.prototype, { preventDefault: function() { this.defaultPrevented = !0; var a = this.nativeEvent; a && (a.preventDefault ? a.preventDefault() : "unknown" != typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = od); }, stopPropagation: function() { var a = this.nativeEvent; a && (a.stopPropagation ? a.stopPropagation() : "unknown" != typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = od); }, persist: function() {}, isPersistent: od }), b; } var vd, wd, xd, rd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a) { return a.timeStamp || Date.now(); }, defaultPrevented: 0, isTrusted: 0 }, sd = qd(rd), td = A({}, rd, { view: 0, detail: 0 }), ud = qd(td), zd = A({}, td, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: yd, button: 0, buttons: 0, relatedTarget: function(a) { return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget; }, movementX: function(a) { return "movementX" in a ? a.movementX : (a !== xd && (xd && "mousemove" === a.type ? (vd = a.screenX - xd.screenX, wd = a.screenY - xd.screenY) : wd = vd = 0, xd = a), vd); }, movementY: function(a) { return "movementY" in a ? a.movementY : wd; } }), Ad = qd(zd), Cd = qd(A({}, zd, { dataTransfer: 0 })), Ed = qd(A({}, td, { relatedTarget: 0 })), Gd = qd(A({}, rd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 })), Id = qd(A({}, rd, { clipboardData: function(a) { return "clipboardData" in a ? a.clipboardData : window.clipboardData; } })), Kd = qd(A({}, rd, { data: 0 })), Ld = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, Md = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta" }, Nd = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function Od(a) { var b = this.nativeEvent; return b.getModifierState ? b.getModifierState(a) : !!(a = Nd[a]) && !!b[a]; } function yd() { return Od; } var Qd = qd(A({}, td, { key: function(a) { if (a.key) { var b = Ld[a.key] || a.key; if ("Unidentified" !== b) return b; } return "keypress" === a.type ? 13 === (a = nd(a)) ? "Enter" : String.fromCharCode(a) : "keydown" === a.type || "keyup" === a.type ? Md[a.keyCode] || "Unidentified" : ""; }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: yd, charCode: function(a) { return "keypress" === a.type ? nd(a) : 0; }, keyCode: function(a) { return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; }, which: function(a) { return "keypress" === a.type ? nd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; } })), Sd = qd(A({}, zd, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 })), Ud = qd(A({}, td, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: yd })), Wd = qd(A({}, rd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 })), Yd = qd(A({}, zd, { deltaX: function(a) { return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; }, deltaY: function(a) { return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; }, deltaZ: 0, deltaMode: 0 })), Zd = [ 9, 13, 27, 32 ], $d = ia && "CompositionEvent" in window, ae = null; ia && "documentMode" in document && (ae = document.documentMode); var be = ia && "TextEvent" in window && !ae, ce = ia && (!$d || ae && 8 < ae && 11 >= ae), ee = !1; function fe(a, b) { switch(a){ case "keyup": return -1 !== Zd.indexOf(b.keyCode); case "keydown": return 229 !== b.keyCode; case "keypress": case "mousedown": case "focusout": return !0; default: return !1; } } function ge(a) { return "object" == typeof (a = a.detail) && "data" in a ? a.data : null; } var he = !1, ke = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function le(a) { var b = a && a.nodeName && a.nodeName.toLowerCase(); return "input" === b ? !!ke[a.type] : "textarea" === b; } function me(a, b, c, d) { Db(d), 0 < (b = ne(b, "onChange")).length && (c = new sd("onChange", "change", null, c, d), a.push({ event: c, listeners: b })); } var oe = null, pe = null; function qe(a) { re(a, 0); } function se(a) { if (Va(te(a))) return a; } function ue(a, b) { if ("change" === a) return b; } var ve = !1; if (ia) { if (ia) { var xe = "oninput" in document; if (!xe) { var ye = document.createElement("div"); ye.setAttribute("oninput", "return;"), xe = "function" == typeof ye.oninput; } we = xe; } else we = !1; ve = we && (!document.documentMode || 9 < document.documentMode); } function ze() { oe && (oe.detachEvent("onpropertychange", Ae), pe = oe = null); } function Ae(a) { if ("value" === a.propertyName && se(pe)) { var b = []; me(b, pe, a, wb(a)), Ib(qe, b); } } function Be(a, b, c) { "focusin" === a ? (ze(), oe = b, pe = c, oe.attachEvent("onpropertychange", Ae)) : "focusout" === a && ze(); } function Ce(a) { if ("selectionchange" === a || "keyup" === a || "keydown" === a) return se(pe); } function De(a, b) { if ("click" === a) return se(b); } function Ee(a, b) { if ("input" === a || "change" === a) return se(b); } var Ge = "function" == typeof Object.is ? Object.is : function(a, b) { return a === b && (0 !== a || 1 / a == 1 / b) || a != a && b != b; }; function He(a, b) { if (Ge(a, b)) return !0; if ("object" != typeof a || null === a || "object" != typeof b || null === b) return !1; var c = Object.keys(a), d = Object.keys(b); if (c.length !== d.length) return !1; for(d = 0; d < c.length; d++){ var e = c[d]; if (!ja.call(b, e) || !Ge(a[e], b[e])) return !1; } return !0; } function Ie(a) { for(; a && a.firstChild;)a = a.firstChild; return a; } function Je(a, b) { var d, c = Ie(a); for(a = 0; c;){ if (3 === c.nodeType) { if (d = a + c.textContent.length, a <= b && d >= b) return { node: c, offset: b - a }; a = d; } a: { for(; c;){ if (c.nextSibling) { c = c.nextSibling; break a; } c = c.parentNode; } c = void 0; } c = Ie(c); } } function Le() { for(var a = window, b = Wa(); b instanceof a.HTMLIFrameElement;){ try { var c = "string" == typeof b.contentWindow.location.href; } catch (d) { c = !1; } if (c) a = b.contentWindow; else break; b = Wa(a.document); } return b; } function Me(a) { var b = a && a.nodeName && a.nodeName.toLowerCase(); return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable); } var Oe = ia && "documentMode" in document && 11 >= document.documentMode, Pe = null, Qe = null, Re = null, Se = !1; function Te(a, b, c) { var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument; Se || null == Pe || Pe !== Wa(d) || (d = "selectionStart" in (d = Pe) && Me(d) ? { start: d.selectionStart, end: d.selectionEnd } : { anchorNode: (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection()).anchorNode, anchorOffset: d.anchorOffset, focusNode: d.focusNode, focusOffset: d.focusOffset }, Re && He(Re, d) || (Re = d, 0 < (d = ne(Qe, "onSelect")).length && (b = new sd("onSelect", "select", null, b, c), a.push({ event: b, listeners: d }), b.target = Pe))); } function Ue(a, b) { var c = {}; return c[a.toLowerCase()] = b.toLowerCase(), c["Webkit" + a] = "webkit" + b, c["Moz" + a] = "moz" + b, c; } var Ve = { animationend: Ue("Animation", "AnimationEnd"), animationiteration: Ue("Animation", "AnimationIteration"), animationstart: Ue("Animation", "AnimationStart"), transitionend: Ue("Transition", "TransitionEnd") }, We = {}, Xe = {}; function Ye(a) { if (We[a]) return We[a]; if (!Ve[a]) return a; var c, b = Ve[a]; for(c in b)if (b.hasOwnProperty(c) && c in Xe) return We[a] = b[c]; return a; } ia && (Xe = document.createElement("div").style, "AnimationEvent" in window || (delete Ve.animationend.animation, delete Ve.animationiteration.animation, delete Ve.animationstart.animation), "TransitionEvent" in window || delete Ve.transitionend.transition); var Ze = Ye("animationend"), $e = Ye("animationiteration"), af = Ye("animationstart"), bf = Ye("transitionend"), cf = new Map(), df = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); function ef(a, b) { cf.set(a, b), fa(b, [ a ]); } for(var ff = 0; ff < df.length; ff++){ var gf = df[ff]; ef(gf.toLowerCase(), "on" + (gf[0].toUpperCase() + gf.slice(1))); } ef(Ze, "onAnimationEnd"), ef($e, "onAnimationIteration"), ef(af, "onAnimationStart"), ef("dblclick", "onDoubleClick"), ef("focusin", "onFocus"), ef("focusout", "onBlur"), ef(bf, "onTransitionEnd"), ha("onMouseEnter", [ "mouseout", "mouseover" ]), ha("onMouseLeave", [ "mouseout", "mouseover" ]), ha("onPointerEnter", [ "pointerout", "pointerover" ]), ha("onPointerLeave", [ "pointerout", "pointerover" ]), fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), fa("onBeforeInput", [ "compositionend", "keypress", "textInput", "paste" ]), fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); var kf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), lf = new Set("cancel close invalid load scroll toggle".split(" ").concat(kf)); function mf(a, b, c) { var d = a.type || "unknown-event"; a.currentTarget = c, function(a, b, c, d, e, f, g, h, k) { if (Sb.apply(this, arguments), Nb) { if (Nb) { var l = Ob; Nb = !1, Ob = null; } else throw Error(p(198)); Pb || (Pb = !0, Qb = l); } }(d, b, void 0, a), a.currentTarget = null; } function re(a, b) { b = 0 != (4 & b); for(var c = 0; c < a.length; c++){ var d = a[c], e = d.event; d = d.listeners; a: { var f = void 0; if (b) for(var g = d.length - 1; 0 <= g; g--){ var h = d[g], k = h.instance, l = h.currentTarget; if (h = h.listener, k !== f && e.isPropagationStopped()) break a; mf(e, h, l), f = k; } else for(g = 0; g < d.length; g++){ if (k = (h = d[g]).instance, l = h.currentTarget, h = h.listener, k !== f && e.isPropagationStopped()) break a; mf(e, h, l), f = k; } } } if (Pb) throw a = Qb, Pb = !1, Qb = null, a; } function D(a, b) { var c = b[nf]; void 0 === c && (c = b[nf] = new Set()); var d = a + "__bubble"; c.has(d) || (of(b, a, 2, !1), c.add(d)); } function pf(a, b, c) { var d = 0; b && (d |= 4), of(c, a, d, b); } var qf = "_reactListening" + Math.random().toString(36).slice(2); function rf(a) { if (!a[qf]) { a[qf] = !0, da.forEach(function(b) { "selectionchange" !== b && (lf.has(b) || pf(b, !1, a), pf(b, !0, a)); }); var b = 9 === a.nodeType ? a : a.ownerDocument; null === b || b[qf] || (b[qf] = !0, pf("selectionchange", !1, b)); } } function of(a, b, c, d) { switch(id(b)){ case 1: var e = dd; break; case 4: e = fd; break; default: e = ed; } c = e.bind(null, b, c, a), e = void 0, Kb && ("touchstart" === b || "touchmove" === b || "wheel" === b) && (e = !0), d ? void 0 !== e ? a.addEventListener(b, c, { capture: !0, passive: e }) : a.addEventListener(b, c, !0) : void 0 !== e ? a.addEventListener(b, c, { passive: e }) : a.addEventListener(b, c, !1); } function gd(a, b, c, d, e) { var f = d; if (0 == (1 & b) && 0 == (2 & b) && null !== d) a: for(;;){ if (null === d) return; var g = d.tag; if (3 === g || 4 === g) { var h = d.stateNode.containerInfo; if (h === e || 8 === h.nodeType && h.parentNode === e) break; if (4 === g) for(g = d.return; null !== g;){ var k = g.tag; if ((3 === k || 4 === k) && ((k = g.stateNode.containerInfo) === e || 8 === k.nodeType && k.parentNode === e)) return; g = g.return; } for(; null !== h;){ if (null === (g = Vc(h))) return; if (5 === (k = g.tag) || 6 === k) { d = f = g; continue a; } h = h.parentNode; } } d = d.return; } Ib(function() { var d = f, e = wb(c), g = []; a: { var h = cf.get(a); if (void 0 !== h) { var k = sd, m = a; switch(a){ case "keypress": if (0 === nd(c)) break a; case "keydown": case "keyup": k = Qd; break; case "focusin": m = "focus", k = Ed; break; case "focusout": m = "blur", k = Ed; break; case "beforeblur": case "afterblur": k = Ed; break; case "click": if (2 === c.button) break a; case "auxclick": case "dblclick": case "mousedown": case "mousemove": case "mouseup": case "mouseout": case "mouseover": case "contextmenu": k = Ad; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": k = Cd; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": k = Ud; break; case Ze: case $e: case af: k = Gd; break; case bf: k = Wd; break; case "scroll": k = ud; break; case "wheel": k = Yd; break; case "copy": case "cut": case "paste": k = Id; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": k = Sd; } var w = 0 != (4 & b), J = !w && "scroll" === a, v = w ? null !== h ? h + "Capture" : null : h; w = []; for(var r, x = d; null !== x;){ var F = (r = x).stateNode; if (5 === r.tag && null !== F && (r = F, null !== v && null != (F = Jb(x, v)) && w.push(sf(x, F, r))), J) break; x = x.return; } 0 < w.length && (h = new k(h, m, null, c, e), g.push({ event: h, listeners: w })); } } if (0 == (7 & b)) { if (h = "mouseover" === a || "pointerover" === a, k = "mouseout" === a || "pointerout" === a, !(h && c !== vb && (m = c.relatedTarget || c.fromElement) && (Vc(m) || m[tf])) && (k || h) && (h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window, k ? (m = c.relatedTarget || c.toElement, k = d, null !== (m = m ? Vc(m) : null) && (J = Ub(m), m !== J || 5 !== m.tag && 6 !== m.tag) && (m = null)) : (k = null, m = d), k !== m)) { if (w = Ad, F = "onMouseLeave", v = "onMouseEnter", x = "mouse", ("pointerout" === a || "pointerover" === a) && (w = Sd, F = "onPointerLeave", v = "onPointerEnter", x = "pointer"), J = null == k ? h : te(k), r = null == m ? h : te(m), (h = new w(F, x + "leave", k, c, e)).target = J, h.relatedTarget = r, F = null, Vc(e) === d && ((w = new w(v, x + "enter", m, c, e)).target = r, w.relatedTarget = J, F = w), J = F, k && m) b: { for(w = k, v = m, x = 0, r = w; r; r = uf(r))x++; for(r = 0, F = v; F; F = uf(F))r++; for(; 0 < x - r;)w = uf(w), x--; for(; 0 < r - x;)v = uf(v), r--; for(; x--;){ if (w === v || null !== v && w === v.alternate) break b; w = uf(w), v = uf(v); } w = null; } else w = null; null !== k && vf(g, h, k, w, !1), null !== m && null !== J && vf(g, J, m, w, !0); } a: { if ("select" === (k = (h = d ? te(d) : window).nodeName && h.nodeName.toLowerCase()) || "input" === k && "file" === h.type) var ab, Z = ue; else if (le(h)) { if (ve) Z = Ee; else { Z = Ce; var ya = Be; } } else (k = h.nodeName) && "input" === k.toLowerCase() && ("checkbox" === h.type || "radio" === h.type) && (Z = De); if (Z && (Z = Z(a, d))) { me(g, Z, c, e); break a; } ya && ya(a, h, d), "focusout" === a && (ya = h._wrapperState) && ya.controlled && "number" === h.type && bb(h, "number", h.value); } switch(ya = d ? te(d) : window, a){ case "focusin": (le(ya) || "true" === ya.contentEditable) && (Pe = ya, Qe = d, Re = null); break; case "focusout": Re = Qe = Pe = null; break; case "mousedown": Se = !0; break; case "contextmenu": case "mouseup": case "dragend": Se = !1, Te(g, c, e); break; case "selectionchange": if (Oe) break; case "keydown": case "keyup": Te(g, c, e); } if ($d) b: { switch(a){ case "compositionstart": var ca = "onCompositionStart"; break b; case "compositionend": ca = "onCompositionEnd"; break b; case "compositionupdate": ca = "onCompositionUpdate"; break b; } ca = void 0; } else he ? fe(a, c) && (ca = "onCompositionEnd") : "keydown" === a && 229 === c.keyCode && (ca = "onCompositionStart"); ca && (ce && "ko" !== c.locale && (he || "onCompositionStart" !== ca ? "onCompositionEnd" === ca && he && (ab = md()) : (kd = "value" in (jd = e) ? jd.value : jd.textContent, he = !0)), 0 < (ya = ne(d, ca)).length && (ca = new Kd(ca, a, null, c, e), g.push({ event: ca, listeners: ya }), ab ? ca.data = ab : null !== (ab = ge(c)) && (ca.data = ab))), (ab = be ? function(a, b) { switch(a){ case "compositionend": return ge(b); case "keypress": if (32 !== b.which) return null; return ee = !0, " "; case "textInput": return " " === (a = b.data) && ee ? null : a; default: return null; } }(a, c) : function(a, b) { if (he) return "compositionend" === a || !$d && fe(a, b) ? (a = md(), ld = kd = jd = null, he = !1, a) : null; switch(a){ case "paste": default: return null; case "keypress": if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { if (b.char && 1 < b.char.length) return b.char; if (b.which) return String.fromCharCode(b.which); } return null; case "compositionend": return ce && "ko" !== b.locale ? null : b.data; } }(a, c)) && 0 < (d = ne(d, "onBeforeInput")).length && (e = new Kd("onBeforeInput", "beforeinput", null, c, e), g.push({ event: e, listeners: d }), e.data = ab); } re(g, b); }); } function sf(a, b, c) { return { instance: a, listener: b, currentTarget: c }; } function ne(a, b) { for(var c = b + "Capture", d = []; null !== a;){ var e = a, f = e.stateNode; 5 === e.tag && null !== f && (e = f, null != (f = Jb(a, c)) && d.unshift(sf(a, f, e)), null != (f = Jb(a, b)) && d.push(sf(a, f, e))), a = a.return; } return d; } function uf(a) { if (null === a) return null; do a = a.return; while (a && 5 !== a.tag) return a || null; } function vf(a, b, c, d, e) { for(var f = b._reactName, g = []; null !== c && c !== d;){ var h = c, k = h.alternate, l = h.stateNode; if (null !== k && k === d) break; 5 === h.tag && null !== l && (h = l, e ? null != (k = Jb(c, f)) && g.unshift(sf(c, k, h)) : e || null != (k = Jb(c, f)) && g.push(sf(c, k, h))), c = c.return; } 0 !== g.length && a.push({ event: b, listeners: g }); } var wf = /\r\n?/g, xf = /\u0000|\uFFFD/g; function yf(a) { return ("string" == typeof a ? a : "" + a).replace(wf, "\n").replace(xf, ""); } function zf(a, b, c) { if (b = yf(b), yf(a) !== b && c) throw Error(p(425)); } function Af() {} var Bf = null, Cf = null; function Df(a, b) { return "textarea" === a || "noscript" === a || "string" == typeof b.children || "number" == typeof b.children || "object" == typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html; } var Ef = "function" == typeof setTimeout ? setTimeout : void 0, Ff = "function" == typeof clearTimeout ? clearTimeout : void 0, Gf = "function" == typeof Promise ? Promise : void 0, If = "function" == typeof queueMicrotask ? queueMicrotask : void 0 !== Gf ? function(a) { return Gf.resolve(null).then(a).catch(Hf); } : Ef; function Hf(a) { setTimeout(function() { throw a; }); } function Jf(a, b) { var c = b, d = 0; do { var e = c.nextSibling; if (a.removeChild(c), e && 8 === e.nodeType) { if ("/$" === (c = e.data)) { if (0 === d) { a.removeChild(e), ad(b); return; } d--; } else "$" !== c && "$?" !== c && "$!" !== c || d++; } c = e; }while (c) ad(b); } function Kf(a) { for(; null != a; a = a.nextSibling){ var b = a.nodeType; if (1 === b || 3 === b) break; if (8 === b) { if ("$" === (b = a.data) || "$!" === b || "$?" === b) break; if ("/$" === b) return null; } } return a; } function Lf(a) { a = a.previousSibling; for(var b = 0; a;){ if (8 === a.nodeType) { var c = a.data; if ("$" === c || "$!" === c || "$?" === c) { if (0 === b) return a; b--; } else "/$" === c && b++; } a = a.previousSibling; } return null; } var Mf = Math.random().toString(36).slice(2), Nf = "__reactFiber$" + Mf, Of = "__reactProps$" + Mf, tf = "__reactContainer$" + Mf, nf = "__reactEvents$" + Mf, Pf = "__reactListeners$" + Mf, Qf = "__reactHandles$" + Mf; function Vc(a) { var b = a[Nf]; if (b) return b; for(var c = a.parentNode; c;){ if (b = c[tf] || c[Nf]) { if (c = b.alternate, null !== b.child || null !== c && null !== c.child) for(a = Lf(a); null !== a;){ if (c = a[Nf]) return c; a = Lf(a); } return b; } c = (a = c).parentNode; } return null; } function Bb(a) { return (a = a[Nf] || a[tf]) && (5 === a.tag || 6 === a.tag || 13 === a.tag || 3 === a.tag) ? a : null; } function te(a) { if (5 === a.tag || 6 === a.tag) return a.stateNode; throw Error(p(33)); } function Cb(a) { return a[Of] || null; } var Rf = [], Sf = -1; function Tf(a) { return { current: a }; } function E(a) { 0 > Sf || (a.current = Rf[Sf], Rf[Sf] = null, Sf--); } function G(a, b) { Rf[++Sf] = a.current, a.current = b; } var Uf = {}, H = Tf(Uf), Vf = Tf(!1), Wf = Uf; function Xf(a, b) { var c = a.type.contextTypes; if (!c) return Uf; var d = a.stateNode; if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; var f, e = {}; for(f in c)e[f] = b[f]; return d && ((a = a.stateNode).__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e), e; } function Yf(a) { return null != (a = a.childContextTypes); } function Zf() { E(Vf), E(H); } function $f(a, b, c) { if (H.current !== Uf) throw Error(p(168)); G(H, b), G(Vf, c); } function ag(a, b, c) { var d = a.stateNode; if (b = b.childContextTypes, "function" != typeof d.getChildContext) return c; for(var e in d = d.getChildContext())if (!(e in b)) throw Error(p(108, function(a) { var b = a.type; switch(a.tag){ case 24: return "Cache"; case 9: return (b.displayName || "Context") + ".Consumer"; case 10: return (b._context.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: return a = (a = b.render).displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); case 7: return "Fragment"; case 5: return b; case 4: return "Portal"; case 3: return "Root"; case 6: return "Text"; case 16: return function Pa(a) { if (null == a) return null; if ("function" == typeof a) return a.displayName || a.name || null; if ("string" == typeof a) return a; switch(a){ case wa: return "Fragment"; case va: return "Portal"; case za: return "Profiler"; case xa: return "StrictMode"; case Da: return "Suspense"; case Ea: return "SuspenseList"; } if ("object" == typeof a) switch(a.$$typeof){ case Ba: return (a.displayName || "Context") + ".Consumer"; case Aa: return (a._context.displayName || "Context") + ".Provider"; case Ca: var b = a.render; return (a = a.displayName) || (a = "" !== (a = b.displayName || b.name || "") ? "ForwardRef(" + a + ")" : "ForwardRef"), a; case Fa: return null !== (b = a.displayName || null) ? b : Pa(a.type) || "Memo"; case Ga: b = a._payload, a = a._init; try { return Pa(a(b)); } catch (c) {} } return null; }(b); case 8: return b === xa ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: return "Profiler"; case 21: return "Scope"; case 13: return "Suspense"; case 19: return "SuspenseList"; case 25: return "TracingMarker"; case 1: case 0: case 17: case 2: case 14: case 15: if ("function" == typeof b) return b.displayName || b.name || null; if ("string" == typeof b) return b; } return null; }(a) || "Unknown", e)); return A({}, c, d); } function bg(a) { return a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Uf, Wf = H.current, G(H, a), G(Vf, Vf.current), !0; } function cg(a, b, c) { var d = a.stateNode; if (!d) throw Error(p(169)); c ? (d.__reactInternalMemoizedMergedChildContext = a = ag(a, b, Wf), E(Vf), E(H), G(H, a)) : E(Vf), G(Vf, c); } var dg = null, eg = !1, fg = !1; function gg(a) { null === dg ? dg = [ a ] : dg.push(a); } function ig() { if (!fg && null !== dg) { fg = !0; var a = 0, b = C; try { var c = dg; for(C = 1; a < c.length; a++){ var d = c[a]; do d = d(!0); while (null !== d) } dg = null, eg = !1; } catch (e) { throw null !== dg && (dg = dg.slice(a + 1)), $b(ec, ig), e; } finally{ C = b, fg = !1; } } return null; } var jg = ta.ReactCurrentBatchConfig; function kg(a, b) { if (a && a.defaultProps) for(var c in b = A({}, b), a = a.defaultProps)void 0 === b[c] && (b[c] = a[c]); return b; } var lg = Tf(null), mg = null, ng = null, og = null; function pg() { og = ng = mg = null; } function qg(a) { var b = lg.current; E(lg), a._currentValue = b; } function rg(a, b, c) { for(; null !== a;){ var d = a.alternate; if ((a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b), a === c) break; a = a.return; } } function sg(a, b) { mg = a, og = ng = null, null !== (a = a.dependencies) && null !== a.firstContext && (0 != (a.lanes & b) && (tg = !0), a.firstContext = null); } function ug(a) { var b = a._currentValue; if (og !== a) { if (a = { context: a, memoizedValue: b, next: null }, null === ng) { if (null === mg) throw Error(p(308)); ng = a, mg.dependencies = { lanes: 0, firstContext: a }; } else ng = ng.next = a; } return b; } var vg = null, wg = !1; function xg(a) { a.updateQueue = { baseState: a.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; } function yg(a, b) { a = a.updateQueue, b.updateQueue === a && (b.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects }); } function zg(a, b) { return { eventTime: a, lane: b, tag: 0, payload: null, callback: null, next: null }; } function Ag(a, b) { var c = a.updateQueue; null !== c && (c = c.shared, Bg(a) ? (null === (a = c.interleaved) ? (b.next = b, null === vg ? vg = [ c ] : vg.push(c)) : (b.next = a.next, a.next = b), c.interleaved = b) : (null === (a = c.pending) ? b.next = b : (b.next = a.next, a.next = b), c.pending = b)); } function Cg(a, b, c) { if (null !== (b = b.updateQueue) && (b = b.shared, 0 != (4194240 & c))) { var d = b.lanes; d &= a.pendingLanes, c |= d, b.lanes = c, Bc(a, c); } } function Dg(a, b) { var c = a.updateQueue, d = a.alternate; if (null !== d && c === (d = d.updateQueue)) { var e = null, f = null; if (null !== (c = c.firstBaseUpdate)) { do { var g = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null }; null === f ? e = f = g : f = f.next = g, c = c.next; }while (null !== c) null === f ? e = f = b : f = f.next = b; } else e = f = b; c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f, shared: d.shared, effects: d.effects }, a.updateQueue = c; return; } null === (a = c.lastBaseUpdate) ? c.firstBaseUpdate = b : a.next = b, c.lastBaseUpdate = b; } function Eg(a, b, c, d) { var e = a.updateQueue; wg = !1; var f = e.firstBaseUpdate, g = e.lastBaseUpdate, h = e.shared.pending; if (null !== h) { e.shared.pending = null; var k = h, l = k.next; k.next = null, null === g ? f = l : g.next = l, g = k; var n = a.alternate; null !== n && (h = (n = n.updateQueue).lastBaseUpdate) !== g && (null === h ? n.firstBaseUpdate = l : h.next = l, n.lastBaseUpdate = k); } if (null !== f) { var u = e.baseState; for(g = 0, n = l = k = null, h = f;;){ var q = h.lane, y = h.eventTime; if ((d & q) === q) { null !== n && (n = n.next = { eventTime: y, lane: 0, tag: h.tag, payload: h.payload, callback: h.callback, next: null }); a: { var m = a, w = h; switch(q = b, y = c, w.tag){ case 1: if ("function" == typeof (m = w.payload)) { u = m.call(y, u, q); break a; } u = m; break a; case 3: m.flags = -65537 & m.flags | 128; case 0: if (null == (q = "function" == typeof (m = w.payload) ? m.call(y, u, q) : m)) break a; u = A({}, u, q); break a; case 2: wg = !0; } } null !== h.callback && 0 !== h.lane && (a.flags |= 64, null === (q = e.effects) ? e.effects = [ h ] : q.push(h)); } else y = { eventTime: y, lane: q, tag: h.tag, payload: h.payload, callback: h.callback, next: null }, null === n ? (l = n = y, k = u) : n = n.next = y, g |= q; if (null === (h = h.next)) { if (null === (h = e.shared.pending)) break; h = (q = h).next, q.next = null, e.lastBaseUpdate = q, e.shared.pending = null; } } if (null === n && (k = u), e.baseState = k, e.firstBaseUpdate = l, e.lastBaseUpdate = n, null !== (b = e.shared.interleaved)) { e = b; do g |= e.lane, e = e.next; while (e !== b) } else null === f && (e.shared.lanes = 0); Fg |= g, a.lanes = g, a.memoizedState = u; } } function Gg(a, b, c) { if (a = b.effects, b.effects = null, null !== a) for(b = 0; b < a.length; b++){ var d = a[b], e = d.callback; if (null !== e) { if (d.callback = null, d = c, "function" != typeof e) throw Error(p(191, e)); e.call(d); } } } var Hg = new aa.Component().refs; function Ig(a, b, c, d) { c = null == (c = c(d, b = a.memoizedState)) ? b : A({}, b, c), a.memoizedState = c, 0 === a.lanes && (a.updateQueue.baseState = c); } var Mg = { isMounted: function(a) { return !!(a = a._reactInternals) && Ub(a) === a; }, enqueueSetState: function(a, b, c) { a = a._reactInternals; var d = Jg(), e = Kg(a), f = zg(d, e); f.payload = b, null != c && (f.callback = c), Ag(a, f), null !== (b = Lg(a, e, d)) && Cg(b, a, e); }, enqueueReplaceState: function(a, b, c) { a = a._reactInternals; var d = Jg(), e = Kg(a), f = zg(d, e); f.tag = 1, f.payload = b, null != c && (f.callback = c), Ag(a, f), null !== (b = Lg(a, e, d)) && Cg(b, a, e); }, enqueueForceUpdate: function(a, b) { a = a._reactInternals; var c = Jg(), d = Kg(a), e = zg(c, d); e.tag = 2, null != b && (e.callback = b), Ag(a, e), null !== (b = Lg(a, d, c)) && Cg(b, a, d); } }; function Ng(a, b, c, d, e, f, g) { return "function" == typeof (a = a.stateNode).shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : !b.prototype || !b.prototype.isPureReactComponent || !He(c, d) || !He(e, f); } function Og(a, b, c) { var d = !1, e = Uf, f = b.contextType; return "object" == typeof f && null !== f ? f = ug(f) : (e = Yf(b) ? Wf : H.current, f = (d = null != (d = b.contextTypes)) ? Xf(a, e) : Uf), b = new b(c, f), a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null, b.updater = Mg, a.stateNode = b, b._reactInternals = a, d && ((a = a.stateNode).__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f), b; } function Pg(a, b, c, d) { a = b.state, "function" == typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d), "function" == typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d), b.state !== a && Mg.enqueueReplaceState(b, b.state, null); } function Qg(a, b, c, d) { var e = a.stateNode; e.props = c, e.state = a.memoizedState, e.refs = Hg, xg(a); var f = b.contextType; "object" == typeof f && null !== f ? e.context = ug(f) : e.context = Xf(a, f = Yf(b) ? Wf : H.current), e.state = a.memoizedState, "function" == typeof (f = b.getDerivedStateFromProps) && (Ig(a, b, f, c), e.state = a.memoizedState), "function" == typeof b.getDerivedStateFromProps || "function" == typeof e.getSnapshotBeforeUpdate || "function" != typeof e.UNSAFE_componentWillMount && "function" != typeof e.componentWillMount || (b = e.state, "function" == typeof e.componentWillMount && e.componentWillMount(), "function" == typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Mg.enqueueReplaceState(e, e.state, null), Eg(a, c, e, d), e.state = a.memoizedState), "function" == typeof e.componentDidMount && (a.flags |= 4194308); } var Rg = [], Sg = 0, Tg = null, Ug = 0, Vg = [], Wg = 0, Xg = null, Yg = 1, Zg = ""; function $g(a, b) { Rg[Sg++] = Ug, Rg[Sg++] = Tg, Tg = a, Ug = b; } function ah(a, b, c) { Vg[Wg++] = Yg, Vg[Wg++] = Zg, Vg[Wg++] = Xg, Xg = a; var d = Yg; a = Zg; var e = 32 - nc(d) - 1; d &= ~(1 << e), c += 1; var f = 32 - nc(b) + e; if (30 < f) { var g = e - e % 5; f = (d & (1 << g) - 1).toString(32), d >>= g, e -= g, Yg = 1 << 32 - nc(b) + e | c << e | d, Zg = f + a; } else Yg = 1 << f | c << e | d, Zg = a; } function bh(a) { null !== a.return && ($g(a, 1), ah(a, 1, 0)); } function ch(a) { for(; a === Tg;)Tg = Rg[--Sg], Rg[Sg] = null, Ug = Rg[--Sg], Rg[Sg] = null; for(; a === Xg;)Xg = Vg[--Wg], Vg[Wg] = null, Zg = Vg[--Wg], Vg[Wg] = null, Yg = Vg[--Wg], Vg[Wg] = null; } var dh = null, eh = null, I = !1, fh = null; function gh(a, b) { var c = hh(5, null, null, 0); c.elementType = "DELETED", c.stateNode = b, c.return = a, null === (b = a.deletions) ? (a.deletions = [ c ], a.flags |= 16) : b.push(c); } function ih(a, b) { switch(a.tag){ case 5: var c = a.type; return null !== (b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b) && (a.stateNode = b, dh = a, eh = Kf(b.firstChild), !0); case 6: return null !== (b = "" === a.pendingProps || 3 !== b.nodeType ? null : b) && (a.stateNode = b, dh = a, eh = null, !0); case 13: return null !== (b = 8 !== b.nodeType ? null : b) && (a.memoizedState = { dehydrated: b, treeContext: c = null !== Xg ? { id: Yg, overflow: Zg } : null, retryLane: 1073741824 }, (c = hh(18, null, null, 0)).stateNode = b, c.return = a, a.child = c, dh = a, eh = null, !0); default: return !1; } } function jh(a) { return 0 != (1 & a.mode) && 0 == (128 & a.flags); } function kh(a) { if (I) { var b = eh; if (b) { var c = b; if (!ih(a, b)) { if (jh(a)) throw Error(p(418)); b = Kf(c.nextSibling); var d = dh; b && ih(a, b) ? gh(d, c) : (a.flags = -4097 & a.flags | 2, I = !1, dh = a); } } else { if (jh(a)) throw Error(p(418)); a.flags = -4097 & a.flags | 2, I = !1, dh = a; } } } function lh(a) { for(a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;)a = a.return; dh = a; } function mh(a) { if (a !== dh) return !1; if (!I) return lh(a), I = !0, !1; if ((b = 3 !== a.tag) && !(b = 5 !== a.tag) && (b = "head" !== (b = a.type) && "body" !== b && !Df(a.type, a.memoizedProps)), b && (b = eh)) { if (jh(a)) { for(a = eh; a;)a = Kf(a.nextSibling); throw Error(p(418)); } for(; b;)gh(a, b), b = Kf(b.nextSibling); } if (lh(a), 13 === a.tag) { if (!(a = null !== (a = a.memoizedState) ? a.dehydrated : null)) throw Error(p(317)); a: { for(b = 0, a = a.nextSibling; a;){ if (8 === a.nodeType) { var b, c = a.data; if ("/$" === c) { if (0 === b) { eh = Kf(a.nextSibling); break a; } b--; } else "$" !== c && "$!" !== c && "$?" !== c || b++; } a = a.nextSibling; } eh = null; } } else eh = dh ? Kf(a.stateNode.nextSibling) : null; return !0; } function nh() { eh = dh = null, I = !1; } function oh(a) { null === fh ? fh = [ a ] : fh.push(a); } function ph(a, b, c) { if (null !== (a = c.ref) && "function" != typeof a && "object" != typeof a) { if (c._owner) { if (c = c._owner) { if (1 !== c.tag) throw Error(p(309)); var d = c.stateNode; } if (!d) throw Error(p(147, a)); var e = d, f = "" + a; return null !== b && null !== b.ref && "function" == typeof b.ref && b.ref._stringRef === f ? b.ref : ((b = function(a) { var b = e.refs; b === Hg && (b = e.refs = {}), null === a ? delete b[f] : b[f] = a; })._stringRef = f, b); } if ("string" != typeof a) throw Error(p(284)); if (!c._owner) throw Error(p(290, a)); } return a; } function qh(a, b) { throw Error(p(31, "[object Object]" === (a = Object.prototype.toString.call(b)) ? "object with keys {" + Object.keys(b).join(", ") + "}" : a)); } function rh(a) { return (0, a._init)(a._payload); } function sh(a) { function b(b, c) { if (a) { var d = b.deletions; null === d ? (b.deletions = [ c ], b.flags |= 16) : d.push(c); } } function c(c, d) { if (!a) return null; for(; null !== d;)b(c, d), d = d.sibling; return null; } function d(a, b) { for(a = new Map(); null !== b;)null !== b.key ? a.set(b.key, b) : a.set(b.index, b), b = b.sibling; return a; } function e(a, b) { return (a = th(a, b)).index = 0, a.sibling = null, a; } function f(b, c, d) { return (b.index = d, a) ? null !== (d = b.alternate) ? (d = d.index) < c ? (b.flags |= 2, c) : d : (b.flags |= 2, c) : (b.flags |= 1048576, c); } function g(b) { return a && null === b.alternate && (b.flags |= 2), b; } function h(a, b, c, d) { return null === b || 6 !== b.tag ? (b = uh(c, a.mode, d)).return = a : (b = e(b, c)).return = a, b; } function k(a, b, c, d) { var f = c.type; return f === wa ? n(a, b, c.props.children, d, c.key) : (null !== b && (b.elementType === f || "object" == typeof f && null !== f && f.$$typeof === Ga && rh(f) === b.type) ? (d = e(b, c.props)).ref = ph(a, b, c) : (d = vh(c.type, c.key, c.props, null, a.mode, d)).ref = ph(a, b, c), d.return = a, d); } function l(a, b, c, d) { return null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation ? (b = wh(c, a.mode, d)).return = a : (b = e(b, c.children || [])).return = a, b; } function n(a, b, c, d, f) { return null === b || 7 !== b.tag ? (b = xh(c, a.mode, d, f)).return = a : (b = e(b, c)).return = a, b; } function u(a, b, c) { if ("string" == typeof b && "" !== b || "number" == typeof b) return (b = uh("" + b, a.mode, c)).return = a, b; if ("object" == typeof b && null !== b) { switch(b.$$typeof){ case ua: return (c = vh(b.type, b.key, b.props, null, a.mode, c)).ref = ph(a, null, b), c.return = a, c; case va: return (b = wh(b, a.mode, c)).return = a, b; case Ga: return u(a, (0, b._init)(b._payload), c); } if (db(b) || Ja(b)) return (b = xh(b, a.mode, c, null)).return = a, b; qh(a, b); } return null; } function q(a, b, c, d) { var e = null !== b ? b.key : null; if ("string" == typeof c && "" !== c || "number" == typeof c) return null !== e ? null : h(a, b, "" + c, d); if ("object" == typeof c && null !== c) { switch(c.$$typeof){ case ua: return c.key === e ? k(a, b, c, d) : null; case va: return c.key === e ? l(a, b, c, d) : null; case Ga: return q(a, b, (e = c._init)(c._payload), d); } if (db(c) || Ja(c)) return null !== e ? null : n(a, b, c, d, null); qh(a, c); } return null; } function y(a, b, c, d, e) { if ("string" == typeof d && "" !== d || "number" == typeof d) return h(b, a = a.get(c) || null, "" + d, e); if ("object" == typeof d && null !== d) { switch(d.$$typeof){ case ua: return k(b, a = a.get(null === d.key ? c : d.key) || null, d, e); case va: return l(b, a = a.get(null === d.key ? c : d.key) || null, d, e); case Ga: return y(a, b, c, (0, d._init)(d._payload), e); } if (db(d) || Ja(d)) return n(b, a = a.get(c) || null, d, e, null); qh(b, d); } return null; } return function J(a1, d1, f1, h) { if ("object" == typeof f1 && null !== f1 && f1.type === wa && null === f1.key && (f1 = f1.props.children), "object" == typeof f1 && null !== f1) { switch(f1.$$typeof){ case ua: a: { for(var k = f1.key, l = d1; null !== l;){ if (l.key === k) { if ((k = f1.type) === wa) { if (7 === l.tag) { c(a1, l.sibling), (d1 = e(l, f1.props.children)).return = a1, a1 = d1; break a; } } else if (l.elementType === k || "object" == typeof k && null !== k && k.$$typeof === Ga && rh(k) === l.type) { c(a1, l.sibling), (d1 = e(l, f1.props)).ref = ph(a1, l, f1), d1.return = a1, a1 = d1; break a; } c(a1, l); break; } b(a1, l), l = l.sibling; } f1.type === wa ? ((d1 = xh(f1.props.children, a1.mode, h, f1.key)).return = a1, a1 = d1) : ((h = vh(f1.type, f1.key, f1.props, null, a1.mode, h)).ref = ph(a1, d1, f1), h.return = a1, a1 = h); } return g(a1); case va: a: { for(l = f1.key; null !== d1;){ if (d1.key === l) { if (4 === d1.tag && d1.stateNode.containerInfo === f1.containerInfo && d1.stateNode.implementation === f1.implementation) { c(a1, d1.sibling), (d1 = e(d1, f1.children || [])).return = a1, a1 = d1; break a; } c(a1, d1); break; } b(a1, d1), d1 = d1.sibling; } (d1 = wh(f1, a1.mode, h)).return = a1, a1 = d1; } return g(a1); case Ga: return J(a1, d1, (l = f1._init)(f1._payload), h); } if (db(f1)) return function(e, g, h, k) { for(var l = null, n = null, r = g, m = g = 0, x = null; null !== r && m < h.length; m++){ r.index > m ? (x = r, r = null) : x = r.sibling; var v = q(e, r, h[m], k); if (null === v) { null === r && (r = x); break; } a && r && null === v.alternate && b(e, r), g = f(v, g, m), null === n ? l = v : n.sibling = v, n = v, r = x; } if (m === h.length) return c(e, r), I && $g(e, m), l; if (null === r) { for(; m < h.length; m++)null !== (r = u(e, h[m], k)) && (g = f(r, g, m), null === n ? l = r : n.sibling = r, n = r); return I && $g(e, m), l; } for(r = d(e, r); m < h.length; m++)null !== (x = y(r, e, m, h[m], k)) && (a && null !== x.alternate && r.delete(null === x.key ? m : x.key), g = f(x, g, m), null === n ? l = x : n.sibling = x, n = x); return a && r.forEach(function(a) { return b(e, a); }), I && $g(e, m), l; }(a1, d1, f1, h); if (Ja(f1)) return function(e, g, h, k) { var l = Ja(h); if ("function" != typeof l) throw Error(p(150)); if (null == (h = l.call(h))) throw Error(p(151)); for(var n = l = null, m = g, r = g = 0, x = null, v = h.next(); null !== m && !v.done; r++, v = h.next()){ m.index > r ? (x = m, m = null) : x = m.sibling; var w = q(e, m, v.value, k); if (null === w) { null === m && (m = x); break; } a && m && null === w.alternate && b(e, m), g = f(w, g, r), null === n ? l = w : n.sibling = w, n = w, m = x; } if (v.done) return c(e, m), I && $g(e, r), l; if (null === m) { for(; !v.done; r++, v = h.next())null !== (v = u(e, v.value, k)) && (g = f(v, g, r), null === n ? l = v : n.sibling = v, n = v); return I && $g(e, r), l; } for(m = d(e, m); !v.done; r++, v = h.next())null !== (v = y(m, e, r, v.value, k)) && (a && null !== v.alternate && m.delete(null === v.key ? r : v.key), g = f(v, g, r), null === n ? l = v : n.sibling = v, n = v); return a && m.forEach(function(a) { return b(e, a); }), I && $g(e, r), l; }(a1, d1, f1, h); qh(a1, f1); } return "string" == typeof f1 && "" !== f1 || "number" == typeof f1 ? (f1 = "" + f1, null !== d1 && 6 === d1.tag ? (c(a1, d1.sibling), (d1 = e(d1, f1)).return = a1) : (c(a1, d1), (d1 = uh(f1, a1.mode, h)).return = a1), g(a1 = d1)) : c(a1, d1); }; } var yh = sh(!0), zh = sh(!1), Ah = {}, Bh = Tf(Ah), Ch = Tf(Ah), Dh = Tf(Ah); function Eh(a) { if (a === Ah) throw Error(p(174)); return a; } function Fh(a, b) { switch(G(Dh, b), G(Ch, a), G(Bh, Ah), a = b.nodeType){ case 9: case 11: b = (b = b.documentElement) ? b.namespaceURI : kb(null, ""); break; default: b = kb(b = (a = 8 === a ? b.parentNode : b).namespaceURI || null, a = a.tagName); } E(Bh), G(Bh, b); } function Gh() { E(Bh), E(Ch), E(Dh); } function Hh(a) { Eh(Dh.current); var b = Eh(Bh.current), c = kb(b, a.type); b !== c && (G(Ch, a), G(Bh, c)); } function Ih(a) { Ch.current === a && (E(Bh), E(Ch)); } var K = Tf(0); function Jh(a) { for(var b = a; null !== b;){ if (13 === b.tag) { var c = b.memoizedState; if (null !== c && (null === (c = c.dehydrated) || "$?" === c.data || "$!" === c.data)) return b; } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) { if (0 != (128 & b.flags)) return b; } else if (null !== b.child) { b.child.return = b, b = b.child; continue; } if (b === a) break; for(; null === b.sibling;){ if (null === b.return || b.return === a) return null; b = b.return; } b.sibling.return = b.return, b = b.sibling; } return null; } var Kh = []; function Lh() { for(var a = 0; a < Kh.length; a++)Kh[a]._workInProgressVersionPrimary = null; Kh.length = 0; } var Mh = ta.ReactCurrentDispatcher, Nh = ta.ReactCurrentBatchConfig, Oh = 0, L = null, M = null, N = null, Ph = !1, Qh = !1, Rh = 0, Sh = 0; function O() { throw Error(p(321)); } function Th(a, b) { if (null === b) return !1; for(var c = 0; c < b.length && c < a.length; c++)if (!Ge(a[c], b[c])) return !1; return !0; } function Uh(a, b, c, d, e, f) { if (Oh = f, L = b, b.memoizedState = null, b.updateQueue = null, b.lanes = 0, Mh.current = null === a || null === a.memoizedState ? Vh : Wh, a = c(d, e), Qh) { f = 0; do { if (Qh = !1, Rh = 0, 25 <= f) throw Error(p(301)); f += 1, N = M = null, b.updateQueue = null, Mh.current = Xh, a = c(d, e); }while (Qh) } if (Mh.current = Yh, b = null !== M && null !== M.next, Oh = 0, N = M = L = null, Ph = !1, b) throw Error(p(300)); return a; } function Zh() { var a = 0 !== Rh; return Rh = 0, a; } function $h() { var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; return null === N ? L.memoizedState = N = a : N = N.next = a, N; } function ai() { if (null === M) { var a = L.alternate; a = null !== a ? a.memoizedState : null; } else a = M.next; var b = null === N ? L.memoizedState : N.next; if (null !== b) N = b, M = a; else { if (null === a) throw Error(p(310)); a = { memoizedState: (M = a).memoizedState, baseState: M.baseState, baseQueue: M.baseQueue, queue: M.queue, next: null }, null === N ? L.memoizedState = N = a : N = N.next = a; } return N; } function bi(a, b) { return "function" == typeof b ? b(a) : b; } function ci(a) { var b = ai(), c = b.queue; if (null === c) throw Error(p(311)); c.lastRenderedReducer = a; var d = M, e = d.baseQueue, f = c.pending; if (null !== f) { if (null !== e) { var g = e.next; e.next = f.next, f.next = g; } d.baseQueue = e = f, c.pending = null; } if (null !== e) { f = e.next, d = d.baseState; var h = g = null, k = null, l = f; do { var n = l.lane; if ((Oh & n) === n) null !== k && (k = k.next = { lane: 0, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null }), d = l.hasEagerState ? l.eagerState : a(d, l.action); else { var u = { lane: n, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null }; null === k ? (h = k = u, g = d) : k = k.next = u, L.lanes |= n, Fg |= n; } l = l.next; }while (null !== l && l !== f) null === k ? g = d : k.next = h, Ge(d, b.memoizedState) || (tg = !0), b.memoizedState = d, b.baseState = g, b.baseQueue = k, c.lastRenderedState = d; } if (null !== (a = c.interleaved)) { e = a; do f = e.lane, L.lanes |= f, Fg |= f, e = e.next; while (e !== a) } else null === e && (c.lanes = 0); return [ b.memoizedState, c.dispatch ]; } function di(a) { var b = ai(), c = b.queue; if (null === c) throw Error(p(311)); c.lastRenderedReducer = a; var d = c.dispatch, e = c.pending, f = b.memoizedState; if (null !== e) { c.pending = null; var g = e = e.next; do f = a(f, g.action), g = g.next; while (g !== e) Ge(f, b.memoizedState) || (tg = !0), b.memoizedState = f, null === b.baseQueue && (b.baseState = f), c.lastRenderedState = f; } return [ f, d ]; } function ei() {} function fi(a, b) { var c = L, d = ai(), e = b(), f = !Ge(d.memoizedState, e); if (f && (d.memoizedState = e, tg = !0), d = d.queue, gi(hi.bind(null, c, d, a), [ a ]), d.getSnapshot !== b || f || null !== N && 1 & N.memoizedState.tag) { if (c.flags |= 2048, ii(9, ji.bind(null, c, d, e, b), void 0, null), null === P) throw Error(p(349)); 0 != (30 & Oh) || ki(c, b, e); } return e; } function ki(a, b, c) { a.flags |= 16384, a = { getSnapshot: b, value: c }, null === (b = L.updateQueue) ? (b = { lastEffect: null, stores: null }, L.updateQueue = b, b.stores = [ a ]) : null === (c = b.stores) ? b.stores = [ a ] : c.push(a); } function ji(a, b, c, d) { b.value = c, b.getSnapshot = d, li(b) && Lg(a, 1, -1); } function hi(a, b, c) { return c(function() { li(b) && Lg(a, 1, -1); }); } function li(a) { var b = a.getSnapshot; a = a.value; try { var c = b(); return !Ge(a, c); } catch (d) { return !0; } } function mi(a) { var b = $h(); return "function" == typeof a && (a = a()), b.memoizedState = b.baseState = a, b.queue = a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: bi, lastRenderedState: a }, a = a.dispatch = ni.bind(null, L, a), [ b.memoizedState, a ]; } function ii(a, b, c, d) { return a = { tag: a, create: b, destroy: c, deps: d, next: null }, null === (b = L.updateQueue) ? (b = { lastEffect: null, stores: null }, L.updateQueue = b, b.lastEffect = a.next = a) : null === (c = b.lastEffect) ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a), a; } function oi() { return ai().memoizedState; } function pi(a, b, c, d) { var e = $h(); L.flags |= a, e.memoizedState = ii(1 | b, c, void 0, void 0 === d ? null : d); } function qi(a, b, c, d) { var e = ai(); d = void 0 === d ? null : d; var f = void 0; if (null !== M) { var g = M.memoizedState; if (f = g.destroy, null !== d && Th(d, g.deps)) { e.memoizedState = ii(b, c, f, d); return; } } L.flags |= a, e.memoizedState = ii(1 | b, c, f, d); } function ri(a, b) { return pi(8390656, 8, a, b); } function gi(a, b) { return qi(2048, 8, a, b); } function si(a, b) { return qi(4, 2, a, b); } function ti(a, b) { return qi(4, 4, a, b); } function ui(a, b) { return "function" == typeof b ? (b(a = a()), function() { b(null); }) : null != b ? (b.current = a = a(), function() { b.current = null; }) : void 0; } function vi(a, b, c) { return c = null != c ? c.concat([ a ]) : null, qi(4, 4, ui.bind(null, b, a), c); } function wi() {} function xi(a, b) { var c = ai(); b = void 0 === b ? null : b; var d = c.memoizedState; return null !== d && null !== b && Th(b, d[1]) ? d[0] : (c.memoizedState = [ a, b ], a); } function yi(a, b) { var c = ai(); b = void 0 === b ? null : b; var d = c.memoizedState; return null !== d && null !== b && Th(b, d[1]) ? d[0] : (c.memoizedState = [ a = a(), b ], a); } function zi(a, b, c) { return 0 == (21 & Oh) ? (a.baseState && (a.baseState = !1, tg = !0), a.memoizedState = c) : (Ge(c, b) || (c = xc(), L.lanes |= c, Fg |= c, a.baseState = !0), b); } function Ai(a, b) { var c = C; C = 0 !== c && 4 > c ? c : 4, a(!0); var d = Nh.transition; Nh.transition = {}; try { a(!1), b(); } finally{ C = c, Nh.transition = d; } } function Bi() { return ai().memoizedState; } function Ci(a, b, c) { var d = Kg(a); c = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }, Di(a) ? Ei(b, c) : (Fi(a, b, c), null !== (a = Lg(a, d, c = Jg())) && Gi(a, b, d)); } function ni(a, b, c) { var d = Kg(a), e = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }; if (Di(a)) Ei(b, e); else { Fi(a, b, e); var f = a.alternate; if (0 === a.lanes && (null === f || 0 === f.lanes) && null !== (f = b.lastRenderedReducer)) try { var g = b.lastRenderedState, h = f(g, c); if (e.hasEagerState = !0, e.eagerState = h, Ge(h, g)) return; } catch (k) {} finally{} null !== (a = Lg(a, d, c = Jg())) && Gi(a, b, d); } } function Di(a) { var b = a.alternate; return a === L || null !== b && b === L; } function Ei(a, b) { Qh = Ph = !0; var c = a.pending; null === c ? b.next = b : (b.next = c.next, c.next = b), a.pending = b; } function Fi(a, b, c) { Bg(a) ? (null === (a = b.interleaved) ? (c.next = c, null === vg ? vg = [ b ] : vg.push(b)) : (c.next = a.next, a.next = c), b.interleaved = c) : (null === (a = b.pending) ? c.next = c : (c.next = a.next, a.next = c), b.pending = c); } function Gi(a, b, c) { if (0 != (4194240 & c)) { var d = b.lanes; d &= a.pendingLanes, b.lanes = c |= d, Bc(a, c); } } var Yh = { readContext: ug, useCallback: O, useContext: O, useEffect: O, useImperativeHandle: O, useInsertionEffect: O, useLayoutEffect: O, useMemo: O, useReducer: O, useRef: O, useState: O, useDebugValue: O, useDeferredValue: O, useTransition: O, useMutableSource: O, useSyncExternalStore: O, useId: O, unstable_isNewReconciler: !1 }, Vh = { readContext: ug, useCallback: function(a, b) { return $h().memoizedState = [ a, void 0 === b ? null : b ], a; }, useContext: ug, useEffect: ri, useImperativeHandle: function(a, b, c) { return c = null != c ? c.concat([ a ]) : null, pi(4194308, 4, ui.bind(null, b, a), c); }, useLayoutEffect: function(a, b) { return pi(4194308, 4, a, b); }, useInsertionEffect: function(a, b) { return pi(4, 2, a, b); }, useMemo: function(a, b) { return b = void 0 === b ? null : b, $h().memoizedState = [ a = a(), b ], a; }, useReducer: function(a, b, c) { var d = $h(); return d.memoizedState = d.baseState = b = void 0 !== c ? c(b) : b, d.queue = a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b }, a = a.dispatch = Ci.bind(null, L, a), [ d.memoizedState, a ]; }, useRef: function(a) { return $h().memoizedState = a = { current: a }; }, useState: mi, useDebugValue: wi, useDeferredValue: function(a) { return $h().memoizedState = a; }, useTransition: function() { var a = mi(!1), b = a[0]; return a = Ai.bind(null, a[1]), $h().memoizedState = a, [ b, a ]; }, useMutableSource: function() {}, useSyncExternalStore: function(a, b, c) { var d = L, e = $h(); if (I) { if (void 0 === c) throw Error(p(407)); c = c(); } else { if (c = b(), null === P) throw Error(p(349)); 0 != (30 & Oh) || ki(d, b, c); } e.memoizedState = c; var f = { value: c, getSnapshot: b }; return e.queue = f, ri(hi.bind(null, d, f, a), [ a ]), d.flags |= 2048, ii(9, ji.bind(null, d, f, c, b), void 0, null), c; }, useId: function() { var a = $h(), b = P.identifierPrefix; if (I) { var c = Zg, d = Yg; b = ":" + b + "R" + (c = (d & ~(1 << 32 - nc(d) - 1)).toString(32) + c), 0 < (c = Rh++) && (b += "H" + c.toString(32)), b += ":"; } else b = ":" + b + "r" + (c = Sh++).toString(32) + ":"; return a.memoizedState = b; }, unstable_isNewReconciler: !1 }, Wh = { readContext: ug, useCallback: xi, useContext: ug, useEffect: gi, useImperativeHandle: vi, useInsertionEffect: si, useLayoutEffect: ti, useMemo: yi, useReducer: ci, useRef: oi, useState: function() { return ci(bi); }, useDebugValue: wi, useDeferredValue: function(a) { return zi(ai(), M.memoizedState, a); }, useTransition: function() { return [ ci(bi)[0], ai().memoizedState ]; }, useMutableSource: ei, useSyncExternalStore: fi, useId: Bi, unstable_isNewReconciler: !1 }, Xh = { readContext: ug, useCallback: xi, useContext: ug, useEffect: gi, useImperativeHandle: vi, useInsertionEffect: si, useLayoutEffect: ti, useMemo: yi, useReducer: di, useRef: oi, useState: function() { return di(bi); }, useDebugValue: wi, useDeferredValue: function(a) { var b = ai(); return null === M ? b.memoizedState = a : zi(b, M.memoizedState, a); }, useTransition: function() { return [ di(bi)[0], ai().memoizedState ]; }, useMutableSource: ei, useSyncExternalStore: fi, useId: Bi, unstable_isNewReconciler: !1 }; function Hi(a, b) { try { var c = "", d = b; do c += function(a) { switch(a.tag){ case 5: return La(a.type); case 16: return La("Lazy"); case 13: return La("Suspense"); case 19: return La("SuspenseList"); case 0: case 2: case 15: return a = Na(a.type, !1); case 11: return a = Na(a.type.render, !1); case 1: return a = Na(a.type, !0); default: return ""; } }(d), d = d.return; while (d) var e = c; } catch (f) { e = "\nError generating stack: " + f.message + "\n" + f.stack; } return { value: a, source: b, stack: e }; } function Ii(a, b) { try { console.error(b.value); } catch (c) { setTimeout(function() { throw c; }); } } var Ji = "function" == typeof WeakMap ? WeakMap : Map; function Ki(a, b, c) { (c = zg(-1, c)).tag = 3, c.payload = { element: null }; var d = b.value; return c.callback = function() { Li || (Li = !0, Mi = d), Ii(a, b); }, c; } function Ni(a, b, c) { (c = zg(-1, c)).tag = 3; var d = a.type.getDerivedStateFromError; if ("function" == typeof d) { var e = b.value; c.payload = function() { return d(e); }, c.callback = function() { Ii(a, b); }; } var f = a.stateNode; return null !== f && "function" == typeof f.componentDidCatch && (c.callback = function() { Ii(a, b), "function" != typeof d && (null === Oi ? Oi = new Set([ this ]) : Oi.add(this)); var c = b.stack; this.componentDidCatch(b.value, { componentStack: null !== c ? c : "" }); }), c; } function Pi(a, b, c) { var d = a.pingCache; if (null === d) { d = a.pingCache = new Ji(); var e = new Set(); d.set(b, e); } else void 0 === (e = d.get(b)) && (e = new Set(), d.set(b, e)); e.has(c) || (e.add(c), a = Qi.bind(null, a, b, c), b.then(a, a)); } function Ri(a) { do { var b; if ((b = 13 === a.tag) && (b = null === (b = a.memoizedState) || null !== b.dehydrated), b) return a; a = a.return; }while (null !== a) return null; } function Si(a, b, c, d, e) { return 0 == (1 & a.mode) ? a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : ((b = zg(-1, 1)).tag = 2, Ag(c, b))), c.lanes |= 1) : (a.flags |= 65536, a.lanes = e), a; } function Xi(a, b) { if (!I) switch(a.tailMode){ case "hidden": b = a.tail; for(var c = null; null !== b;)null !== b.alternate && (c = b), b = b.sibling; null === c ? a.tail = null : c.sibling = null; break; case "collapsed": c = a.tail; for(var d = null; null !== c;)null !== c.alternate && (d = c), c = c.sibling; null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null; } } function Q(a) { var b = null !== a.alternate && a.alternate.child === a.child, c = 0, d = 0; if (b) for(var e = a.child; null !== e;)c |= e.lanes | e.childLanes, d |= 14680064 & e.subtreeFlags, d |= 14680064 & e.flags, e.return = a, e = e.sibling; else for(e = a.child; null !== e;)c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a, e = e.sibling; return a.subtreeFlags |= d, a.childLanes = c, b; } Ti = function(a, b) { for(var c = b.child; null !== c;){ if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode); else if (4 !== c.tag && null !== c.child) { c.child.return = c, c = c.child; continue; } if (c === b) break; for(; null === c.sibling;){ if (null === c.return || c.return === b) return; c = c.return; } c.sibling.return = c.return, c = c.sibling; } }, Ui = function() {}, Vi = function(a, b, c, d) { var e = a.memoizedProps; if (e !== d) { a = b.stateNode, Eh(Bh.current); var g, f = null; switch(c){ case "input": e = Xa(a, e), d = Xa(a, d), f = []; break; case "select": e = A({}, e, { value: void 0 }), d = A({}, d, { value: void 0 }), f = []; break; case "textarea": e = fb(a, e), d = fb(a, d), f = []; break; default: "function" != typeof e.onClick && "function" == typeof d.onClick && (a.onclick = Af); } for(l in tb(c, d), c = null, e)if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l]) { if ("style" === l) { var h = e[l]; for(g in h)h.hasOwnProperty(g) && (c || (c = {}), c[g] = ""); } else "dangerouslySetInnerHTML" !== l && "children" !== l && "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (ea.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null)); } for(l in d){ var k = d[l]; if (h = null != e ? e[l] : void 0, d.hasOwnProperty(l) && k !== h && (null != k || null != h)) { if ("style" === l) { if (h) { for(g in h)!h.hasOwnProperty(g) || k && k.hasOwnProperty(g) || (c || (c = {}), c[g] = ""); for(g in k)k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), c[g] = k[g]); } else c || (f || (f = []), f.push(l, c)), c = k; } else "dangerouslySetInnerHTML" === l ? (k = k ? k.__html : void 0, h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(l, k)) : "children" === l ? "string" != typeof k && "number" != typeof k || (f = f || []).push(l, "" + k) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && (ea.hasOwnProperty(l) ? (null != k && "onScroll" === l && D("scroll", a), f || h === k || (f = [])) : (f = f || []).push(l, k)); } } c && (f = f || []).push("style", c); var l = f; (b.updateQueue = l) && (b.flags |= 4); } }, Wi = function(a, b, c, d) { c !== d && (b.flags |= 4); }; var dj = ta.ReactCurrentOwner, tg = !1; function ej(a, b, c, d) { b.child = null === a ? zh(b, null, c, d) : yh(b, a.child, c, d); } function fj(a, b, c, d, e) { c = c.render; var f = b.ref; return (sg(b, e), d = Uh(a, b, c, d, f, e), c = Zh(), null === a || tg) ? (I && c && bh(b), b.flags |= 1, ej(a, b, d, e), b.child) : (b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, gj(a, b, e)); } function hj(a, b, c, d, e) { if (null === a) { var f = c.type; return "function" != typeof f || ij(f) || void 0 !== f.defaultProps || null !== c.compare || void 0 !== c.defaultProps ? ((a = vh(c.type, null, d, b, b.mode, e)).ref = b.ref, a.return = b, b.child = a) : (b.tag = 15, b.type = f, jj(a, b, f, d, e)); } if (f = a.child, 0 == (a.lanes & e)) { var g = f.memoizedProps; if ((c = null !== (c = c.compare) ? c : He)(g, d) && a.ref === b.ref) return gj(a, b, e); } return b.flags |= 1, (a = th(f, d)).ref = b.ref, a.return = b, b.child = a; } function jj(a, b, c, d, e) { if (null !== a) { var f = a.memoizedProps; if (He(f, d) && a.ref === b.ref) { if (tg = !1, b.pendingProps = d = f, 0 == (a.lanes & e)) return b.lanes = a.lanes, gj(a, b, e); 0 != (131072 & a.flags) && (tg = !0); } } return kj(a, b, c, d, e); } function lj(a, b, c) { var d = b.pendingProps, e = d.children, f = null !== a ? a.memoizedState : null; if ("hidden" === d.mode) { if (0 == (1 & b.mode)) b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(mj, cj), cj |= c; else { if (0 == (1073741824 & c)) return a = null !== f ? f.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b.updateQueue = null, G(mj, cj), cj |= a, null; b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, d = null !== f ? f.baseLanes : c, G(mj, cj), cj |= d; } } else null !== f ? (d = f.baseLanes | c, b.memoizedState = null) : d = c, G(mj, cj), cj |= d; return ej(a, b, e, c), b.child; } function nj(a, b) { var c = b.ref; (null === a && null !== c || null !== a && a.ref !== c) && (b.flags |= 512, b.flags |= 2097152); } function kj(a, b, c, d, e) { var f = Yf(c) ? Wf : H.current; return (f = Xf(b, f), sg(b, e), c = Uh(a, b, c, d, f, e), d = Zh(), null === a || tg) ? (I && d && bh(b), b.flags |= 1, ej(a, b, c, e), b.child) : (b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, gj(a, b, e)); } function oj(a, b, c, d, e) { if (Yf(c)) { var f = !0; bg(b); } else f = !1; if (sg(b, e), null === b.stateNode) null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2), Og(b, c, d), Qg(b, c, d, e), d = !0; else if (null === a) { var g = b.stateNode, h = b.memoizedProps; g.props = h; var k = g.context, l = c.contextType; l = "object" == typeof l && null !== l ? ug(l) : Xf(b, l = Yf(c) ? Wf : H.current); var n = c.getDerivedStateFromProps, u = "function" == typeof n || "function" == typeof g.getSnapshotBeforeUpdate; u || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== d || k !== l) && Pg(b, g, d, l), wg = !1; var q = b.memoizedState; g.state = q, Eg(b, d, g, e), k = b.memoizedState, h !== d || q !== k || Vf.current || wg ? ("function" == typeof n && (Ig(b, c, n, d), k = b.memoizedState), (h = wg || Ng(b, c, h, d, q, k, l)) ? (u || "function" != typeof g.UNSAFE_componentWillMount && "function" != typeof g.componentWillMount || ("function" == typeof g.componentWillMount && g.componentWillMount(), "function" == typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" == typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" == typeof g.componentDidMount && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" == typeof g.componentDidMount && (b.flags |= 4194308), d = !1); } else { g = b.stateNode, yg(a, b), h = b.memoizedProps, l = b.type === b.elementType ? h : kg(b.type, h), g.props = l, u = b.pendingProps, q = g.context, k = "object" == typeof (k = c.contextType) && null !== k ? ug(k) : Xf(b, k = Yf(c) ? Wf : H.current); var y = c.getDerivedStateFromProps; (n = "function" == typeof y || "function" == typeof g.getSnapshotBeforeUpdate) || "function" != typeof g.UNSAFE_componentWillReceiveProps && "function" != typeof g.componentWillReceiveProps || (h !== u || q !== k) && Pg(b, g, d, k), wg = !1, q = b.memoizedState, g.state = q, Eg(b, d, g, e); var m = b.memoizedState; h !== u || q !== m || Vf.current || wg ? ("function" == typeof y && (Ig(b, c, y, d), m = b.memoizedState), (l = wg || Ng(b, c, l, d, q, m, k) || !1) ? (n || "function" != typeof g.UNSAFE_componentWillUpdate && "function" != typeof g.componentWillUpdate || ("function" == typeof g.componentWillUpdate && g.componentWillUpdate(d, m, k), "function" == typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, m, k)), "function" == typeof g.componentDidUpdate && (b.flags |= 4), "function" == typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" != typeof g.componentDidUpdate || h === a.memoizedProps && q === a.memoizedState || (b.flags |= 4), "function" != typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && q === a.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = m), g.props = d, g.state = m, g.context = k, d = l) : ("function" != typeof g.componentDidUpdate || h === a.memoizedProps && q === a.memoizedState || (b.flags |= 4), "function" != typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && q === a.memoizedState || (b.flags |= 1024), d = !1); } return pj(a, b, c, d, f, e); } function pj(a, b, c, d, e, f) { nj(a, b); var g = 0 != (128 & b.flags); if (!d && !g) return e && cg(b, c, !1), gj(a, b, f); d = b.stateNode, dj.current = b; var h = g && "function" != typeof c.getDerivedStateFromError ? null : d.render(); return b.flags |= 1, null !== a && g ? (b.child = yh(b, a.child, null, f), b.child = yh(b, null, h, f)) : ej(a, b, h, f), b.memoizedState = d.state, e && cg(b, c, !0), b.child; } function qj(a) { var b = a.stateNode; b.pendingContext ? $f(a, b.pendingContext, b.pendingContext !== b.context) : b.context && $f(a, b.context, !1), Fh(a, b.containerInfo); } function rj(a, b, c, d, e) { return nh(), oh(e), b.flags |= 256, ej(a, b, c, d), b.child; } var sj = { dehydrated: null, treeContext: null, retryLane: 0 }; function tj(a) { return { baseLanes: a, cachePool: null, transitions: null }; } function vj(a, b, c) { var a1, b1, c1, d, e, f, g, h, a2, b2, c2, d1, e1, a3, b3, h1, d2 = b.pendingProps, e2 = K.current, f1 = !1, g1 = 0 != (128 & b.flags); if ((h1 = g1) || (h1 = (null === a || null !== a.memoizedState) && 0 != (2 & e2)), h1 ? (f1 = !0, b.flags &= -129) : (null === a || null !== a.memoizedState) && (e2 |= 1), G(K, 1 & e2), null === a) return (kh(b), null !== (a = b.memoizedState) && null !== (a = a.dehydrated)) ? (0 == (1 & b.mode) ? b.lanes = 1 : "$!" === a.data ? b.lanes = 8 : b.lanes = 1073741824, null) : (e2 = d2.children, a = d2.fallback, f1 ? (d2 = b.mode, f1 = b.child, e2 = { mode: "hidden", children: e2 }, 0 == (1 & d2) && null !== f1 ? (f1.childLanes = 0, f1.pendingProps = e2) : f1 = wj(e2, d2, 0, null), a = xh(a, d2, c, null), f1.return = b, a.return = b, f1.sibling = a, b.child = f1, b.child.memoizedState = tj(c), b.memoizedState = sj, a) : xj(b, e2)); if (null !== (e2 = a.memoizedState) && null !== (h1 = e2.dehydrated)) { if (g1) return 256 & b.flags ? (b.flags &= -257, yj(a, b, c, Error(p(422)))) : null !== b.memoizedState ? (b.child = a.child, b.flags |= 128, null) : (f1 = d2.fallback, e2 = b.mode, d2 = wj({ mode: "visible", children: d2.children }, e2, 0, null), f1 = xh(f1, e2, c, null), f1.flags |= 2, d2.return = b, f1.return = b, d2.sibling = f1, b.child = d2, 0 != (1 & b.mode) && yh(b, a.child, null, c), b.child.memoizedState = tj(c), b.memoizedState = sj, f1); if (0 == (1 & b.mode)) b = yj(a, b, c, null); else if ("$!" === h1.data) b = yj(a, b, c, Error(p(419))); else if (d2 = 0 != (c & a.childLanes), tg || d2) { if (null !== (d2 = P)) { switch(c & -c){ case 4: f1 = 2; break; case 16: f1 = 8; break; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: f1 = 32; break; case 536870912: f1 = 268435456; break; default: f1 = 0; } 0 !== (d2 = 0 != (f1 & (d2.suspendedLanes | c)) ? 0 : f1) && d2 !== e2.retryLane && (e2.retryLane = d2, Lg(a, d2, -1)); } $i(), b = yj(a, b, c, Error(p(421))); } else "$?" === h1.data ? (b.flags |= 128, b.child = a.child, b = zj.bind(null, a), h1._reactRetry = b, b = null) : (c = e2.treeContext, eh = Kf(h1.nextSibling), dh = b, I = !0, fh = null, null !== c && (Vg[Wg++] = Yg, Vg[Wg++] = Zg, Vg[Wg++] = Xg, Yg = c.id, Zg = c.overflow, Xg = b), b = xj(b, b.pendingProps.children), b.flags |= 4096); return b; } return f1 ? (a1 = a, b1 = b, c1 = d2.children, d = d2.fallback, e = c, f = b1.mode, g = (a1 = a1.child).sibling, h = { mode: "hidden", children: c1 }, 0 == (1 & f) && b1.child !== a1 ? ((c1 = b1.child).childLanes = 0, c1.pendingProps = h, b1.deletions = null) : (c1 = th(a1, h)).subtreeFlags = 14680064 & a1.subtreeFlags, null !== g ? d = th(g, d) : (d = xh(d, f, e, null), d.flags |= 2), d.return = b1, c1.return = b1, c1.sibling = d, b1.child = c1, d2 = d, f1 = b.child, e2 = a.child.memoizedState, f1.memoizedState = null === e2 ? tj(c) : (a3 = e2, b3 = c, { baseLanes: a3.baseLanes | b3, cachePool: null, transitions: a3.transitions }), f1.childLanes = a.childLanes & ~c, b.memoizedState = sj, d2) : (a2 = a, b2 = b, c2 = d2.children, d1 = c, a2 = (e1 = a2.child).sibling, c2 = th(e1, { mode: "visible", children: c2 }), 0 == (1 & b2.mode) && (c2.lanes = d1), c2.return = b2, c2.sibling = null, null !== a2 && (null === (d1 = b2.deletions) ? (b2.deletions = [ a2 ], b2.flags |= 16) : d1.push(a2)), c = b2.child = c2, b.memoizedState = null, c); } function xj(a, b) { return (b = wj({ mode: "visible", children: b }, a.mode, 0, null)).return = a, a.child = b; } function yj(a, b, c, d) { return null !== d && oh(d), yh(b, a.child, null, c), a = xj(b, b.pendingProps.children), a.flags |= 2, b.memoizedState = null, a; } function Cj(a, b, c) { a.lanes |= b; var d = a.alternate; null !== d && (d.lanes |= b), rg(a.return, b, c); } function Dj(a, b, c, d, e) { var f = a.memoizedState; null === f ? a.memoizedState = { isBackwards: b, rendering: null, renderingStartTime: 0, last: d, tail: c, tailMode: e } : (f.isBackwards = b, f.rendering = null, f.renderingStartTime = 0, f.last = d, f.tail = c, f.tailMode = e); } function Ej(a, b, c) { var d = b.pendingProps, e = d.revealOrder, f = d.tail; if (ej(a, b, d.children, c), 0 != (2 & (d = K.current))) d = 1 & d | 2, b.flags |= 128; else { if (null !== a && 0 != (128 & a.flags)) a: for(a = b.child; null !== a;){ if (13 === a.tag) null !== a.memoizedState && Cj(a, c, b); else if (19 === a.tag) Cj(a, c, b); else if (null !== a.child) { a.child.return = a, a = a.child; continue; } if (a === b) break; for(; null === a.sibling;){ if (null === a.return || a.return === b) break a; a = a.return; } a.sibling.return = a.return, a = a.sibling; } d &= 1; } if (G(K, d), 0 == (1 & b.mode)) b.memoizedState = null; else switch(e){ case "forwards": for(e = null, c = b.child; null !== c;)null !== (a = c.alternate) && null === Jh(a) && (e = c), c = c.sibling; null === (c = e) ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null), Dj(b, !1, e, c, f); break; case "backwards": for(c = null, e = b.child, b.child = null; null !== e;){ if (null !== (a = e.alternate) && null === Jh(a)) { b.child = e; break; } a = e.sibling, e.sibling = c, c = e, e = a; } Dj(b, !0, c, null, f); break; case "together": Dj(b, !1, null, null, void 0); break; default: b.memoizedState = null; } return b.child; } function gj(a, b, c) { if (null !== a && (b.dependencies = a.dependencies), Fg |= b.lanes, 0 == (c & b.childLanes)) return null; if (null !== a && b.child !== a.child) throw Error(p(153)); if (null !== b.child) { for(c = th(a = b.child, a.pendingProps), b.child = c, c.return = b; null !== a.sibling;)a = a.sibling, (c = c.sibling = th(a, a.pendingProps)).return = b; c.sibling = null; } return b.child; } var Hj = !1, S = !1, Ij = "function" == typeof WeakSet ? WeakSet : Set, T = null; function Jj(a, b) { var c = a.ref; if (null !== c) { if ("function" == typeof c) try { c(null); } catch (d) { U(a, b, d); } else c.current = null; } } function Kj(a, b, c) { try { c(); } catch (d) { U(a, b, d); } } var Lj = !1; function Nj(a, b, c) { var d = b.updateQueue; if (null !== (d = null !== d ? d.lastEffect : null)) { var e = d = d.next; do { if ((e.tag & a) === a) { var f = e.destroy; e.destroy = void 0, void 0 !== f && Kj(b, c, f); } e = e.next; }while (e !== d) } } function Oj(a, b) { if (null !== (b = null !== (b = b.updateQueue) ? b.lastEffect : null)) { var c = b = b.next; do { if ((c.tag & a) === a) { var d = c.create; c.destroy = d(); } c = c.next; }while (c !== b) } } function Pj(a) { var b = a.ref; if (null !== b) { var c = a.stateNode; a.tag, a = c, "function" == typeof b ? b(a) : b.current = a; } } function Rj(a) { return 5 === a.tag || 3 === a.tag || 4 === a.tag; } function Sj(a) { a: for(;;){ for(; null === a.sibling;){ if (null === a.return || Rj(a.return)) return null; a = a.return; } for(a.sibling.return = a.return, a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag;){ if (2 & a.flags || null === a.child || 4 === a.tag) continue a; a.child.return = a, a = a.child; } if (!(2 & a.flags)) return a.stateNode; } } var V = null, Vj = !1; function Wj(a, b, c) { for(c = c.child; null !== c;)Xj(a, b, c), c = c.sibling; } function Xj(a, b, c) { if (kc && "function" == typeof kc.onCommitFiberUnmount) try { kc.onCommitFiberUnmount(jc, c); } catch (h) {} switch(c.tag){ case 5: S || Jj(c, b); case 6: var d = V, e = Vj; V = null, Wj(a, b, c), V = d, Vj = e, null !== V && (Vj ? (a = V, c = c.stateNode, 8 === a.nodeType ? a.parentNode.removeChild(c) : a.removeChild(c)) : V.removeChild(c.stateNode)); break; case 18: null !== V && (Vj ? (a = V, c = c.stateNode, 8 === a.nodeType ? Jf(a.parentNode, c) : 1 === a.nodeType && Jf(a, c), ad(a)) : Jf(V, c.stateNode)); break; case 4: d = V, e = Vj, V = c.stateNode.containerInfo, Vj = !0, Wj(a, b, c), V = d, Vj = e; break; case 0: case 11: case 14: case 15: if (!S && null !== (d = c.updateQueue) && null !== (d = d.lastEffect)) { e = d = d.next; do { var f = e, g = f.destroy; f = f.tag, void 0 !== g && (0 != (2 & f) ? Kj(c, b, g) : 0 != (4 & f) && Kj(c, b, g)), e = e.next; }while (e !== d) } Wj(a, b, c); break; case 1: if (!S && (Jj(c, b), "function" == typeof (d = c.stateNode).componentWillUnmount)) try { d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount(); } catch (h) { U(c, b, h); } Wj(a, b, c); break; case 21: default: Wj(a, b, c); break; case 22: 1 & c.mode ? (S = (d = S) || null !== c.memoizedState, Wj(a, b, c), S = d) : Wj(a, b, c); } } function Yj(a) { var b = a.updateQueue; if (null !== b) { a.updateQueue = null; var c = a.stateNode; null === c && (c = a.stateNode = new Ij()), b.forEach(function(b) { var d = Zj.bind(null, a, b); c.has(b) || (c.add(b), b.then(d, d)); }); } } function ak(a, b) { var c = b.deletions; if (null !== c) for(var d = 0; d < c.length; d++){ var e = c[d]; try { var g = b, h = g; a: for(; null !== h;){ switch(h.tag){ case 5: V = h.stateNode, Vj = !1; break a; case 3: case 4: V = h.stateNode.containerInfo, Vj = !0; break a; } h = h.return; } if (null === V) throw Error(p(160)); Xj(a, g, e), V = null, Vj = !1; var k = e.alternate; null !== k && (k.return = null), e.return = null; } catch (l) { U(e, b, l); } } if (12854 & b.subtreeFlags) for(b = b.child; null !== b;)bk(b, a), b = b.sibling; } function bk(a, b) { var c = a.alternate, d = a.flags; switch(a.tag){ case 0: case 11: case 14: case 15: if (ak(b, a), ck(a), 4 & d) { try { Nj(3, a, a.return), Oj(3, a); } catch (m) { U(a, a.return, m); } try { Nj(5, a, a.return); } catch (m) { U(a, a.return, m); } } break; case 1: ak(b, a), ck(a), 512 & d && null !== c && Jj(c, c.return); break; case 5: if (ak(b, a), ck(a), 512 & d && null !== c && Jj(c, c.return), 32 & a.flags) { var e = a.stateNode; try { nb(e, ""); } catch (m) { U(a, a.return, m); } } if (4 & d && null != (e = a.stateNode)) { var f = a.memoizedProps, g = null !== c ? c.memoizedProps : f, h = a.type, k = a.updateQueue; if (a.updateQueue = null, null !== k) try { "input" === h && "radio" === f.type && null != f.name && Za(e, f), ub(h, g); var l = ub(h, f); for(g = 0; g < k.length; g += 2){ var n = k[g], u = k[g + 1]; "style" === n ? rb(e, u) : "dangerouslySetInnerHTML" === n ? mb(e, u) : "children" === n ? nb(e, u) : sa(e, n, u, l); } switch(h){ case "input": $a(e, f); break; case "textarea": hb(e, f); break; case "select": var q = e._wrapperState.wasMultiple; e._wrapperState.wasMultiple = !!f.multiple; var y = f.value; null != y ? eb(e, !!f.multiple, y, !1) : !!f.multiple !== q && (null != f.defaultValue ? eb(e, !!f.multiple, f.defaultValue, !0) : eb(e, !!f.multiple, f.multiple ? [] : "", !1)); } e[Of] = f; } catch (m) { U(a, a.return, m); } } break; case 6: if (ak(b, a), ck(a), 4 & d) { if (null === a.stateNode) throw Error(p(162)); l = a.stateNode, n = a.memoizedProps; try { l.nodeValue = n; } catch (m) { U(a, a.return, m); } } break; case 3: if (ak(b, a), ck(a), 4 & d && null !== c && c.memoizedState.isDehydrated) try { ad(b.containerInfo); } catch (m) { U(a, a.return, m); } break; case 4: default: ak(b, a), ck(a); break; case 13: ak(b, a), ck(a), 8192 & (l = a.child).flags && null !== l.memoizedState && (null === l.alternate || null === l.alternate.memoizedState) && (dk = B()), 4 & d && Yj(a); break; case 22: if (l = null !== c && null !== c.memoizedState, 1 & a.mode ? (S = (n = S) || l, ak(b, a), S = n) : ak(b, a), ck(a), 8192 & d) { n = null !== a.memoizedState; a: for(u = null, q = a;;){ if (5 === q.tag) { if (null === u) { u = q; try { e = q.stateNode, n ? (f = e.style, "function" == typeof f.setProperty ? f.setProperty("display", "none", "important") : f.display = "none") : (h = q.stateNode, g = null != (k = q.memoizedProps.style) && k.hasOwnProperty("display") ? k.display : null, h.style.display = qb("display", g)); } catch (m) { U(a, a.return, m); } } } else if (6 === q.tag) { if (null === u) try { q.stateNode.nodeValue = n ? "" : q.memoizedProps; } catch (m) { U(a, a.return, m); } } else if ((22 !== q.tag && 23 !== q.tag || null === q.memoizedState || q === a) && null !== q.child) { q.child.return = q, q = q.child; continue; } if (q === a) break; for(; null === q.sibling;){ if (null === q.return || q.return === a) break a; u === q && (u = null), q = q.return; } u === q && (u = null), q.sibling.return = q.return, q = q.sibling; } if (n && !l && 0 != (1 & a.mode)) for(T = a, a = a.child; null !== a;){ for(l = T = a; null !== T;){ switch(u = (n = T).child, n.tag){ case 0: case 11: case 14: case 15: Nj(4, n, n.return); break; case 1: if (Jj(n, n.return), "function" == typeof (f = n.stateNode).componentWillUnmount) { q = n, y = n.return; try { e = q, f.props = e.memoizedProps, f.state = e.memoizedState, f.componentWillUnmount(); } catch (m) { U(q, y, m); } } break; case 5: Jj(n, n.return); break; case 22: if (null !== n.memoizedState) { ek(l); continue; } } null !== u ? (u.return = n, T = u) : ek(l); } a = a.sibling; } } break; case 19: ak(b, a), ck(a), 4 & d && Yj(a); case 21: } } function ck(a) { var b = a.flags; if (2 & b) { try { a: { for(var c = a.return; null !== c;){ if (Rj(c)) { var d = c; break a; } c = c.return; } throw Error(p(160)); } switch(d.tag){ case 5: var e = d.stateNode; 32 & d.flags && (nb(e, ""), d.flags &= -33); var f = Sj(a); !function Uj(a, b, c) { var d = a.tag; if (5 === d || 6 === d) a = a.stateNode, b ? c.insertBefore(a, b) : c.appendChild(a); else if (4 !== d && null !== (a = a.child)) for(Uj(a, b, c), a = a.sibling; null !== a;)Uj(a, b, c), a = a.sibling; }(a, f, e); break; case 3: case 4: var g = d.stateNode.containerInfo, h = Sj(a); !function Tj(a, b, c) { var d = a.tag; if (5 === d || 6 === d) a = a.stateNode, b ? 8 === c.nodeType ? c.parentNode.insertBefore(a, b) : c.insertBefore(a, b) : (8 === c.nodeType ? (b = c.parentNode).insertBefore(a, c) : (b = c).appendChild(a), null != (c = c._reactRootContainer) || null !== b.onclick || (b.onclick = Af)); else if (4 !== d && null !== (a = a.child)) for(Tj(a, b, c), a = a.sibling; null !== a;)Tj(a, b, c), a = a.sibling; }(a, h, g); break; default: throw Error(p(161)); } } catch (k) { U(a, a.return, k); } a.flags &= -3; } 4096 & b && (a.flags &= -4097); } function ik(a) { for(; null !== T;){ var b = T; if (0 != (8772 & b.flags)) { var c = b.alternate; try { if (0 != (8772 & b.flags)) switch(b.tag){ case 0: case 11: case 15: S || Oj(5, b); break; case 1: var d = b.stateNode; if (4 & b.flags && !S) { if (null === c) d.componentDidMount(); else { var e = b.elementType === b.type ? c.memoizedProps : kg(b.type, c.memoizedProps); d.componentDidUpdate(e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate); } } var f = b.updateQueue; null !== f && Gg(b, f, d); break; case 3: var g = b.updateQueue; if (null !== g) { if (c = null, null !== b.child) switch(b.child.tag){ case 5: case 1: c = b.child.stateNode; } Gg(b, g, c); } break; case 5: var h = b.stateNode; if (null === c && 4 & b.flags) { c = h; var k = b.memoizedProps; switch(b.type){ case "button": case "input": case "select": case "textarea": k.autoFocus && c.focus(); break; case "img": k.src && (c.src = k.src); } } break; case 6: case 4: case 12: case 19: case 17: case 21: case 22: case 23: break; case 13: if (null === b.memoizedState) { var l = b.alternate; if (null !== l) { var n = l.memoizedState; if (null !== n) { var u = n.dehydrated; null !== u && ad(u); } } } break; default: throw Error(p(163)); } S || 512 & b.flags && Pj(b); } catch (q) { U(b, b.return, q); } } if (b === a) { T = null; break; } if (null !== (c = b.sibling)) { c.return = b.return, T = c; break; } T = b.return; } } function ek(a) { for(; null !== T;){ var b = T; if (b === a) { T = null; break; } var c = b.sibling; if (null !== c) { c.return = b.return, T = c; break; } T = b.return; } } function hk(a) { for(; null !== T;){ var b = T; try { switch(b.tag){ case 0: case 11: case 15: var c = b.return; try { Oj(4, b); } catch (k) { U(b, c, k); } break; case 1: var d = b.stateNode; if ("function" == typeof d.componentDidMount) { var e = b.return; try { d.componentDidMount(); } catch (k) { U(b, e, k); } } var f = b.return; try { Pj(b); } catch (k) { U(b, f, k); } break; case 5: var g = b.return; try { Pj(b); } catch (k) { U(b, g, k); } } } catch (k) { U(b, b.return, k); } if (b === a) { T = null; break; } var h = b.sibling; if (null !== h) { h.return = b.return, T = h; break; } T = b.return; } } var jk = Math.ceil, kk = ta.ReactCurrentDispatcher, lk = ta.ReactCurrentOwner, mk = ta.ReactCurrentBatchConfig, W = 0, P = null, X = null, Y = 0, cj = 0, mj = Tf(0), R = 0, nk = null, Fg = 0, ok = 0, pk = 0, qk = null, rk = null, dk = 0, aj = 1 / 0, sk = null, Li = !1, Mi = null, Oi = null, tk = !1, uk = null, vk = 0, wk = 0, xk = null, yk = -1, zk = 0; function Jg() { return 0 != (6 & W) ? B() : -1 !== yk ? yk : yk = B(); } function Kg(a) { return 0 == (1 & a.mode) ? 1 : 0 != (2 & W) && 0 !== Y ? Y & -Y : null !== jg.transition ? (0 === zk && (zk = xc()), zk) : 0 !== (a = C) ? a : a = void 0 === (a = window.event) ? 16 : id(a.type); } function Lg(a, b, c) { if (50 < wk) throw wk = 0, xk = null, Error(p(185)); var d = Ak(a, b); return null === d ? null : (zc(d, b, c), (0 == (2 & W) || d !== P) && (d === P && (0 == (2 & W) && (ok |= b), 4 === R && Bk(d, Y)), Ck(d, c), 1 === b && 0 === W && 0 == (1 & a.mode) && (aj = B() + 500, eg && ig())), d); } function Ak(a, b) { a.lanes |= b; var c = a.alternate; for(null !== c && (c.lanes |= b), c = a, a = a.return; null !== a;)a.childLanes |= b, null !== (c = a.alternate) && (c.childLanes |= b), c = a, a = a.return; return 3 === c.tag ? c.stateNode : null; } function Bg(a) { return (null !== P || null !== vg) && 0 != (1 & a.mode) && 0 == (2 & W); } function Ck(a, b) { var a1, c = a.callbackNode; !function(a, b) { for(var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f;){ var g = 31 - nc(f), h = 1 << g, k = e[g]; -1 === k ? (0 == (h & c) || 0 != (h & d)) && (e[g] = function(a, b) { switch(a){ case 1: case 2: case 4: return b + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return b + 5e3; default: return -1; } }(h, b)) : k <= b && (a.expiredLanes |= h), f &= ~h; } }(a, b); var d = tc(a, a === P ? Y : 0); if (0 === d) null !== c && ac(c), a.callbackNode = null, a.callbackPriority = 0; else if (b = d & -d, a.callbackPriority !== b) { if (null != c && ac(c), 1 === b) 0 === a.tag ? (a1 = Dk.bind(null, a), eg = !0, gg(a1)) : gg(Dk.bind(null, a)), If(function() { 0 === W && ig(); }), c = null; else { switch(Cc(d)){ case 1: c = ec; break; case 4: c = fc; break; case 16: default: c = gc; break; case 536870912: c = ic; } c = $b(c, Fk.bind(null, a)); } a.callbackPriority = b, a.callbackNode = c; } } function Fk(a, b) { if (yk = -1, zk = 0, 0 != (6 & W)) throw Error(p(327)); var c = a.callbackNode; if (Gk() && a.callbackNode !== c) return null; var d = tc(a, a === P ? Y : 0); if (0 === d) return null; if (0 != (30 & d) || 0 != (d & a.expiredLanes) || b) b = Hk(a, d); else { b = d; var e = W; W |= 2; var f = Ik(); for((P !== a || Y !== b) && (sk = null, aj = B() + 500, Jk(a, b));;)try { !function() { for(; null !== X && !bc();)Tk(X); }(); break; } catch (h) { Lk(a, h); } pg(), kk.current = f, W = e, null !== X ? b = 0 : (P = null, Y = 0, b = R); } if (0 !== b) { if (2 === b && 0 !== (e = wc(a)) && (d = e, b = Mk(a, e)), 1 === b) throw c = nk, Jk(a, 0), Bk(a, d), Ck(a, B()), c; if (6 === b) Bk(a, d); else { if (e = a.current.alternate, 0 == (30 & d) && !function(a) { for(var b = a;;){ if (16384 & b.flags) { var c = b.updateQueue; if (null !== c && null !== (c = c.stores)) for(var d = 0; d < c.length; d++){ var e = c[d], f = e.getSnapshot; e = e.value; try { if (!Ge(f(), e)) return !1; } catch (g) { return !1; } } } if (c = b.child, 16384 & b.subtreeFlags && null !== c) c.return = b, b = c; else { if (b === a) break; for(; null === b.sibling;){ if (null === b.return || b.return === a) return !0; b = b.return; } b.sibling.return = b.return, b = b.sibling; } } return !0; }(e) && (2 === (b = Hk(a, d)) && 0 !== (f = wc(a)) && (d = f, b = Mk(a, f)), 1 === b)) throw c = nk, Jk(a, 0), Bk(a, d), Ck(a, B()), c; switch(a.finishedWork = e, a.finishedLanes = d, b){ case 0: case 1: throw Error(p(345)); case 2: case 5: Ok(a, rk, sk); break; case 3: if (Bk(a, d), (130023424 & d) === d && 10 < (b = dk + 500 - B())) { if (0 !== tc(a, 0)) break; if (((e = a.suspendedLanes) & d) !== d) { Jg(), a.pingedLanes |= a.suspendedLanes & e; break; } a.timeoutHandle = Ef(Ok.bind(null, a, rk, sk), b); break; } Ok(a, rk, sk); break; case 4: if (Bk(a, d), (4194240 & d) === d) break; for(e = -1, b = a.eventTimes; 0 < d;){ var g = 31 - nc(d); f = 1 << g, (g = b[g]) > e && (e = g), d &= ~f; } if (d = e, 10 < (d = (120 > (d = B() - d) ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3e3 > d ? 3e3 : 4320 > d ? 4320 : 1960 * jk(d / 1960)) - d)) { a.timeoutHandle = Ef(Ok.bind(null, a, rk, sk), d); break; } Ok(a, rk, sk); break; default: throw Error(p(329)); } } } return Ck(a, B()), a.callbackNode === c ? Fk.bind(null, a) : null; } function Mk(a, b) { var c = qk; return a.current.memoizedState.isDehydrated && (Jk(a, b).flags |= 256), 2 !== (a = Hk(a, b)) && (b = rk, rk = c, null !== b && Zi(b)), a; } function Zi(a) { null === rk ? rk = a : rk.push.apply(rk, a); } function Bk(a, b) { for(b &= ~pk, b &= ~ok, a.suspendedLanes |= b, a.pingedLanes &= ~b, a = a.expirationTimes; 0 < b;){ var c = 31 - nc(b), d = 1 << c; a[c] = -1, b &= ~d; } } function Dk(a) { if (0 != (6 & W)) throw Error(p(327)); Gk(); var b = tc(a, 0); if (0 == (1 & b)) return Ck(a, B()), null; var c = Hk(a, b); if (0 !== a.tag && 2 === c) { var d = wc(a); 0 !== d && (b = d, c = Mk(a, d)); } if (1 === c) throw c = nk, Jk(a, 0), Bk(a, b), Ck(a, B()), c; if (6 === c) throw Error(p(345)); return a.finishedWork = a.current.alternate, a.finishedLanes = b, Ok(a, rk, sk), Ck(a, B()), null; } function Pk(a, b) { var c = W; W |= 1; try { return a(b); } finally{ 0 === (W = c) && (aj = B() + 500, eg && ig()); } } function Qk(a) { null !== uk && 0 === uk.tag && 0 == (6 & W) && Gk(); var b = W; W |= 1; var c = mk.transition, d = C; try { if (mk.transition = null, C = 1, a) return a(); } finally{ C = d, mk.transition = c, 0 == (6 & (W = b)) && ig(); } } function bj() { cj = mj.current, E(mj); } function Jk(a, b) { a.finishedWork = null, a.finishedLanes = 0; var c = a.timeoutHandle; if (-1 !== c && (a.timeoutHandle = -1, Ff(c)), null !== X) for(c = X.return; null !== c;){ var d = c; switch(ch(d), d.tag){ case 1: null != (d = d.type.childContextTypes) && Zf(); break; case 3: Gh(), E(Vf), E(H), Lh(); break; case 5: Ih(d); break; case 4: Gh(); break; case 13: case 19: E(K); break; case 10: qg(d.type._context); break; case 22: case 23: bj(); } c = c.return; } if (P = a, X = a = th(a.current, null), Y = cj = b, R = 0, nk = null, pk = ok = Fg = 0, rk = qk = null, null !== vg) { for(b = 0; b < vg.length; b++)if (null !== (d = (c = vg[b]).interleaved)) { c.interleaved = null; var e = d.next, f = c.pending; if (null !== f) { var g = f.next; f.next = e, d.next = g; } c.pending = d; } vg = null; } return a; } function Lk(a, b) { for(;;){ var c = X; try { if (pg(), Mh.current = Yh, Ph) { for(var d = L.memoizedState; null !== d;){ var e = d.queue; null !== e && (e.pending = null), d = d.next; } Ph = !1; } if (Oh = 0, N = M = L = null, Qh = !1, Rh = 0, lk.current = null, null === c || null === c.return) { R = 1, nk = b, X = null; break; } a: { var f = a, g = c.return, h = c, k = b; if (b = Y, h.flags |= 32768, null !== k && "object" == typeof k && "function" == typeof k.then) { var l = k, n = h, u = n.tag; if (0 == (1 & n.mode) && (0 === u || 11 === u || 15 === u)) { var q = n.alternate; q ? (n.updateQueue = q.updateQueue, n.memoizedState = q.memoizedState, n.lanes = q.lanes) : (n.updateQueue = null, n.memoizedState = null); } var y = Ri(g); if (null !== y) { y.flags &= -257, Si(y, g, h, f, b), 1 & y.mode && Pi(f, l, b), b = y, k = l; var m = b.updateQueue; if (null === m) { var w = new Set(); w.add(k), b.updateQueue = w; } else m.add(k); break a; } if (0 == (1 & b)) { Pi(f, l, b), $i(); break a; } k = Error(p(426)); } else if (I && 1 & h.mode) { var J = Ri(g); if (null !== J) { 0 == (65536 & J.flags) && (J.flags |= 256), Si(J, g, h, f, b), oh(k); break a; } } f = k, 4 !== R && (R = 2), null === qk ? qk = [ f ] : qk.push(f), k = Hi(k, h), h = g; do { switch(h.tag){ case 3: h.flags |= 65536, b &= -b, h.lanes |= b; var v = Ki(h, k, b); Dg(h, v); break a; case 1: f = k; var x = h.type, r = h.stateNode; if (0 == (128 & h.flags) && ("function" == typeof x.getDerivedStateFromError || null !== r && "function" == typeof r.componentDidCatch && (null === Oi || !Oi.has(r)))) { h.flags |= 65536, b &= -b, h.lanes |= b; var F = Ni(h, f, b); Dg(h, F); break a; } } h = h.return; }while (null !== h) } Rk(c); } catch (Z) { b = Z, X === c && null !== c && (X = c = c.return); continue; } break; } } function Ik() { var a = kk.current; return kk.current = Yh, null === a ? Yh : a; } function $i() { (0 === R || 3 === R || 2 === R) && (R = 4), null === P || 0 == (268435455 & Fg) && 0 == (268435455 & ok) || Bk(P, Y); } function Hk(a, b) { var c = W; W |= 2; var d = Ik(); for((P !== a || Y !== b) && (sk = null, Jk(a, b));;)try { !function() { for(; null !== X;)Tk(X); }(); break; } catch (e) { Lk(a, e); } if (pg(), W = c, kk.current = d, null !== X) throw Error(p(261)); return P = null, Y = 0, R; } function Tk(a) { var b = Uk(a.alternate, a, cj); a.memoizedProps = a.pendingProps, null === b ? Rk(a) : X = b, lk.current = null; } function Rk(a) { var b = a; do { var c = b.alternate; if (a = b.return, 0 == (32768 & b.flags)) { if (null !== (c = function(a, b, c) { var d = b.pendingProps; switch(ch(b), b.tag){ case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return Q(b), null; case 1: case 17: return Yf(b.type) && Zf(), Q(b), null; case 3: return d = b.stateNode, Gh(), E(Vf), E(H), Lh(), d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null), (null === a || null === a.child) && (mh(b) ? b.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 == (256 & b.flags) || (b.flags |= 1024, null !== fh && (Zi(fh), fh = null))), Ui(a, b), Q(b), null; case 5: Ih(b); var e = Eh(Dh.current); if (c = b.type, null !== a && null != b.stateNode) Vi(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152); else { if (!d) { if (null === b.stateNode) throw Error(p(166)); return Q(b), null; } if (a = Eh(Bh.current), mh(b)) { d = b.stateNode, c = b.type; var f = b.memoizedProps; switch(d[Nf] = b, d[Of] = f, a = 0 != (1 & b.mode), c){ case "dialog": D("cancel", d), D("close", d); break; case "iframe": case "object": case "embed": D("load", d); break; case "video": case "audio": for(e = 0; e < kf.length; e++)D(kf[e], d); break; case "source": D("error", d); break; case "img": case "image": case "link": D("error", d), D("load", d); break; case "details": D("toggle", d); break; case "input": Ya(d, f), D("invalid", d); break; case "select": d._wrapperState = { wasMultiple: !!f.multiple }, D("invalid", d); break; case "textarea": gb(d, f), D("invalid", d); } for(var g in tb(c, f), e = null, f)if (f.hasOwnProperty(g)) { var h = f[g]; "children" === g ? "string" == typeof h ? d.textContent !== h && (!0 !== f.suppressHydrationWarning && zf(d.textContent, h, a), e = [ "children", h ]) : "number" == typeof h && d.textContent !== "" + h && (!0 !== f.suppressHydrationWarning && zf(d.textContent, h, a), e = [ "children", "" + h ]) : ea.hasOwnProperty(g) && null != h && "onScroll" === g && D("scroll", d); } switch(c){ case "input": Ua(d), cb(d, f, !0); break; case "textarea": Ua(d), ib(d); break; case "select": case "option": break; default: "function" == typeof f.onClick && (d.onclick = Af); } d = e, b.updateQueue = d, null !== d && (b.flags |= 4); } else { g = 9 === e.nodeType ? e : e.ownerDocument, "http://www.w3.org/1999/xhtml" === a && (a = jb(c)), "http://www.w3.org/1999/xhtml" === a ? "script" === c ? ((a = g.createElement("div")).innerHTML = "<script>\x3c/script>", a = a.removeChild(a.firstChild)) : "string" == typeof d.is ? a = g.createElement(c, { is: d.is }) : (a = g.createElement(c), "select" === c && (g = a, d.multiple ? g.multiple = !0 : d.size && (g.size = d.size))) : a = g.createElementNS(a, c), a[Nf] = b, a[Of] = d, Ti(a, b, !1, !1), b.stateNode = a; a: { switch(g = ub(c, d), c){ case "dialog": D("cancel", a), D("close", a), e = d; break; case "iframe": case "object": case "embed": D("load", a), e = d; break; case "video": case "audio": for(e = 0; e < kf.length; e++)D(kf[e], a); e = d; break; case "source": D("error", a), e = d; break; case "img": case "image": case "link": D("error", a), D("load", a), e = d; break; case "details": D("toggle", a), e = d; break; case "input": Ya(a, d), e = Xa(a, d), D("invalid", a); break; case "option": default: e = d; break; case "select": a._wrapperState = { wasMultiple: !!d.multiple }, e = A({}, d, { value: void 0 }), D("invalid", a); break; case "textarea": gb(a, d), e = fb(a, d), D("invalid", a); } for(f in tb(c, e), h = e)if (h.hasOwnProperty(f)) { var k = h[f]; "style" === f ? rb(a, k) : "dangerouslySetInnerHTML" === f ? null != (k = k ? k.__html : void 0) && mb(a, k) : "children" === f ? "string" == typeof k ? ("textarea" !== c || "" !== k) && nb(a, k) : "number" == typeof k && nb(a, "" + k) : "suppressContentEditableWarning" !== f && "suppressHydrationWarning" !== f && "autoFocus" !== f && (ea.hasOwnProperty(f) ? null != k && "onScroll" === f && D("scroll", a) : null != k && sa(a, f, k, g)); } switch(c){ case "input": Ua(a), cb(a, d, !1); break; case "textarea": Ua(a), ib(a); break; case "option": null != d.value && a.setAttribute("value", "" + Ra(d.value)); break; case "select": a.multiple = !!d.multiple, null != (f = d.value) ? eb(a, !!d.multiple, f, !1) : null != d.defaultValue && eb(a, !!d.multiple, d.defaultValue, !0); break; default: "function" == typeof e.onClick && (a.onclick = Af); } switch(c){ case "button": case "input": case "select": case "textarea": d = !!d.autoFocus; break a; case "img": d = !0; break a; default: d = !1; } } d && (b.flags |= 4); } null !== b.ref && (b.flags |= 512, b.flags |= 2097152); } return Q(b), null; case 6: if (a && null != b.stateNode) Wi(a, b, a.memoizedProps, d); else { if ("string" != typeof d && null === b.stateNode) throw Error(p(166)); if (c = Eh(Dh.current), Eh(Bh.current), mh(b)) { if (d = b.stateNode, c = b.memoizedProps, d[Nf] = b, (f = d.nodeValue !== c) && null !== (a = dh)) switch(a.tag){ case 3: zf(d.nodeValue, c, 0 != (1 & a.mode)); break; case 5: !0 !== a.memoizedProps.suppressHydrationWarning && zf(d.nodeValue, c, 0 != (1 & a.mode)); } f && (b.flags |= 4); } else (d = (9 === c.nodeType ? c : c.ownerDocument).createTextNode(d))[Nf] = b, b.stateNode = d; } return Q(b), null; case 13: if (E(K), d = b.memoizedState, I && null !== eh && 0 != (1 & b.mode) && 0 == (128 & b.flags)) { for(d = eh; d;)d = Kf(d.nextSibling); return nh(), b.flags |= 98560, b; } if (null !== d && null !== d.dehydrated) { if (d = mh(b), null === a) { if (!d) throw Error(p(318)); if (!(d = null !== (d = b.memoizedState) ? d.dehydrated : null)) throw Error(p(317)); d[Nf] = b; } else nh(), 0 == (128 & b.flags) && (b.memoizedState = null), b.flags |= 4; return Q(b), null; } if (null !== fh && (Zi(fh), fh = null), 0 != (128 & b.flags)) return b.lanes = c, b; return d = null !== d, c = !1, null === a ? mh(b) : c = null !== a.memoizedState, d !== c && d && (b.child.flags |= 8192, 0 != (1 & b.mode) && (null === a || 0 != (1 & K.current) ? 0 === R && (R = 3) : $i())), null !== b.updateQueue && (b.flags |= 4), Q(b), null; case 4: return Gh(), Ui(a, b), null === a && rf(b.stateNode.containerInfo), Q(b), null; case 10: return qg(b.type._context), Q(b), null; case 19: if (E(K), null === (f = b.memoizedState)) return Q(b), null; if (d = 0 != (128 & b.flags), null === (g = f.rendering)) { if (d) Xi(f, !1); else { if (0 !== R || null !== a && 0 != (128 & a.flags)) for(a = b.child; null !== a;){ if (null !== (g = Jh(a))) { for(b.flags |= 128, Xi(f, !1), null !== (d = g.updateQueue) && (b.updateQueue = d, b.flags |= 4), b.subtreeFlags = 0, d = c, c = b.child; null !== c;)f = c, a = d, f.flags &= 14680066, null === (g = f.alternate) ? (f.childLanes = 0, f.lanes = a, f.child = null, f.subtreeFlags = 0, f.memoizedProps = null, f.memoizedState = null, f.updateQueue = null, f.dependencies = null, f.stateNode = null) : (f.childLanes = g.childLanes, f.lanes = g.lanes, f.child = g.child, f.subtreeFlags = 0, f.deletions = null, f.memoizedProps = g.memoizedProps, f.memoizedState = g.memoizedState, f.updateQueue = g.updateQueue, f.type = g.type, a = g.dependencies, f.dependencies = null === a ? null : { lanes: a.lanes, firstContext: a.firstContext }), c = c.sibling; return G(K, 1 & K.current | 2), b.child; } a = a.sibling; } null !== f.tail && B() > aj && (b.flags |= 128, d = !0, Xi(f, !1), b.lanes = 4194304); } } else { if (!d) { if (null !== (a = Jh(g))) { if (b.flags |= 128, d = !0, null !== (c = a.updateQueue) && (b.updateQueue = c, b.flags |= 4), Xi(f, !0), null === f.tail && "hidden" === f.tailMode && !g.alternate && !I) return Q(b), null; } else 2 * B() - f.renderingStartTime > aj && 1073741824 !== c && (b.flags |= 128, d = !0, Xi(f, !1), b.lanes = 4194304); } f.isBackwards ? (g.sibling = b.child, b.child = g) : (null !== (c = f.last) ? c.sibling = g : b.child = g, f.last = g); } if (null !== f.tail) return b = f.tail, f.rendering = b, f.tail = b.sibling, f.renderingStartTime = B(), b.sibling = null, c = K.current, G(K, d ? 1 & c | 2 : 1 & c), b; return Q(b), null; case 22: case 23: return bj(), d = null !== b.memoizedState, null !== a && null !== a.memoizedState !== d && (b.flags |= 8192), d && 0 != (1 & b.mode) ? 0 != (1073741824 & cj) && (Q(b), 6 & b.subtreeFlags && (b.flags |= 8192)) : Q(b), null; case 24: case 25: return null; } throw Error(p(156, b.tag)); }(c, b, cj))) { X = c; return; } } else { if (null !== (c = function(a, b) { switch(ch(b), b.tag){ case 1: return Yf(b.type) && Zf(), 65536 & (a = b.flags) ? (b.flags = -65537 & a | 128, b) : null; case 3: return Gh(), E(Vf), E(H), Lh(), 0 != (65536 & (a = b.flags)) && 0 == (128 & a) ? (b.flags = -65537 & a | 128, b) : null; case 5: return Ih(b), null; case 13: if (E(K), null !== (a = b.memoizedState) && null !== a.dehydrated) { if (null === b.alternate) throw Error(p(340)); nh(); } return 65536 & (a = b.flags) ? (b.flags = -65537 & a | 128, b) : null; case 19: return E(K), null; case 4: return Gh(), null; case 10: return qg(b.type._context), null; case 22: case 23: return bj(), null; default: return null; } }(c, b))) { c.flags &= 32767, X = c; return; } if (null !== a) a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null; else { R = 6, X = null; return; } } if (null !== (b = b.sibling)) { X = b; return; } X = b = a; }while (null !== b) 0 === R && (R = 5); } function Ok(a, b, c) { var d = C, e = mk.transition; try { mk.transition = null, C = 1, function(a, b, c, d) { do Gk(); while (null !== uk) if (0 != (6 & W)) throw Error(p(327)); c = a.finishedWork; var e = a.finishedLanes; if (null !== c) { if (a.finishedWork = null, a.finishedLanes = 0, c === a.current) throw Error(p(177)); a.callbackNode = null, a.callbackPriority = 0; var f = c.lanes | c.childLanes; if (function(a, b) { var c = a.pendingLanes & ~b; a.pendingLanes = b, a.suspendedLanes = 0, a.pingedLanes = 0, a.expiredLanes &= b, a.mutableReadLanes &= b, a.entangledLanes &= b, b = a.entanglements; var d = a.eventTimes; for(a = a.expirationTimes; 0 < c;){ var e = 31 - nc(c), f = 1 << e; b[e] = 0, d[e] = -1, a[e] = -1, c &= ~f; } }(a, f), a === P && (X = P = null, Y = 0), 0 == (2064 & c.subtreeFlags) && 0 == (2064 & c.flags) || tk || (tk = !0, $b(gc, function() { return Gk(), null; })), f = 0 != (15990 & c.flags), 0 != (15990 & c.subtreeFlags) || f) { f = mk.transition, mk.transition = null; var a1, b1, g = C; C = 1; var h = W; W |= 4, lk.current = null, function(a, b) { if (Bf = cd, Me(a = Le())) { if ("selectionStart" in a) var c = { start: a.selectionStart, end: a.selectionEnd }; else a: { var d = (c = (c = a.ownerDocument) && c.defaultView || window).getSelection && c.getSelection(); if (d && 0 !== d.rangeCount) { c = d.anchorNode; var y, e = d.anchorOffset, f = d.focusNode; d = d.focusOffset; try { c.nodeType, f.nodeType; } catch (Z) { c = null; break a; } var g = 0, h = -1, k = -1, l = 0, n = 0, u = a, q = null; b: for(;;){ for(; u !== c || 0 !== e && 3 !== u.nodeType || (h = g + e), u !== f || 0 !== d && 3 !== u.nodeType || (k = g + d), 3 === u.nodeType && (g += u.nodeValue.length), null !== (y = u.firstChild);)q = u, u = y; for(;;){ if (u === a) break b; if (q === c && ++l === e && (h = g), q === f && ++n === d && (k = g), null !== (y = u.nextSibling)) break; q = (u = q).parentNode; } u = y; } c = -1 === h || -1 === k ? null : { start: h, end: k }; } else c = null; } c = c || { start: 0, end: 0 }; } else c = null; for(Cf = { focusedElem: a, selectionRange: c }, cd = !1, T = b; null !== T;)if (a = (b = T).child, 0 != (1028 & b.subtreeFlags) && null !== a) a.return = b, T = a; else for(; null !== T;){ b = T; try { var m = b.alternate; if (0 != (1024 & b.flags)) switch(b.tag){ case 0: case 11: case 15: case 5: case 6: case 4: case 17: break; case 1: if (null !== m) { var w = m.memoizedProps, J = m.memoizedState, v = b.stateNode, x = v.getSnapshotBeforeUpdate(b.elementType === b.type ? w : kg(b.type, w), J); v.__reactInternalSnapshotBeforeUpdate = x; } break; case 3: var r = b.stateNode.containerInfo; if (1 === r.nodeType) r.textContent = ""; else if (9 === r.nodeType) { var F = r.body; null != F && (F.textContent = ""); } break; default: throw Error(p(163)); } } catch (Z) { U(b, b.return, Z); } if (null !== (a = b.sibling)) { a.return = b.return, T = a; break; } T = b.return; } m = Lj, Lj = !1; }(a, c), bk(c, a), function(a) { var b = Le(), c = a.focusedElem, d = a.selectionRange; if (b !== c && c && c.ownerDocument && function Ke(a, b) { return !!a && !!b && (a === b || (!a || 3 !== a.nodeType) && (b && 3 === b.nodeType ? Ke(a, b.parentNode) : "contains" in a ? a.contains(b) : !!a.compareDocumentPosition && !!(16 & a.compareDocumentPosition(b)))); }(c.ownerDocument.documentElement, c)) { if (null !== d && Me(c)) { if (b = d.start, void 0 === (a = d.end) && (a = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a, c.value.length); else if ((a = (b = c.ownerDocument || document) && b.defaultView || window).getSelection) { a = a.getSelection(); var e = c.textContent.length, f = Math.min(d.start, e); d = void 0 === d.end ? f : Math.min(d.end, e), !a.extend && f > d && (e = d, d = f, f = e), e = Je(c, f); var g = Je(c, d); e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && ((b = b.createRange()).setStart(e.node, e.offset), a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b))); } } for(b = [], a = c; a = a.parentNode;)1 === a.nodeType && b.push({ element: a, left: a.scrollLeft, top: a.scrollTop }); for("function" == typeof c.focus && c.focus(), c = 0; c < b.length; c++)(a = b[c]).element.scrollLeft = a.left, a.element.scrollTop = a.top; } }(Cf), cd = !!Bf, Cf = Bf = null, a.current = c, a1 = c, b1 = a, T = a1, function gk(a, b, c) { for(var d = 0 != (1 & a.mode); null !== T;){ var e = T, f = e.child; if (22 === e.tag && d) { var g = null !== e.memoizedState || Hj; if (!g) { var h = e.alternate, k = null !== h && null !== h.memoizedState || S; h = Hj; var l = S; if (Hj = g, (S = k) && !l) for(T = e; null !== T;)k = (g = T).child, 22 === g.tag && null !== g.memoizedState ? hk(e) : null !== k ? (k.return = g, T = k) : hk(e); for(; null !== f;)T = f, gk(f, b, c), f = f.sibling; T = e, Hj = h, S = l; } ik(a, b, c); } else 0 != (8772 & e.subtreeFlags) && null !== f ? (f.return = e, T = f) : ik(a, b, c); } }(a1, b1, e), cc(), W = h, C = g, mk.transition = f; } else a.current = c; if (tk && (tk = !1, uk = a, vk = e), 0 === (f = a.pendingLanes) && (Oi = null), function(a) { if (kc && "function" == typeof kc.onCommitFiberRoot) try { kc.onCommitFiberRoot(jc, a, void 0, 128 == (128 & a.current.flags)); } catch (b) {} }(c.stateNode, d), Ck(a, B()), null !== b) for(d = a.onRecoverableError, c = 0; c < b.length; c++)d(b[c]); if (Li) throw Li = !1, a = Mi, Mi = null, a; 0 != (1 & vk) && 0 !== a.tag && Gk(), 0 != (1 & (f = a.pendingLanes)) ? a === xk ? wk++ : (wk = 0, xk = a) : wk = 0, ig(); } }(a, b, c, d); } finally{ mk.transition = e, C = d; } return null; } function Gk() { if (null !== uk) { var a = Cc(vk), b = mk.transition, c = C; try { if (mk.transition = null, C = 16 > a ? 16 : a, null === uk) var d = !1; else { if (a = uk, uk = null, vk = 0, 0 != (6 & W)) throw Error(p(331)); var e = W; for(W |= 4, T = a.current; null !== T;){ var f = T, g = f.child; if (0 != (16 & T.flags)) { var h = f.deletions; if (null !== h) { for(var k = 0; k < h.length; k++){ var l = h[k]; for(T = l; null !== T;){ var n = T; switch(n.tag){ case 0: case 11: case 15: Nj(8, n, f); } var u = n.child; if (null !== u) u.return = n, T = u; else for(; null !== T;){ var q = (n = T).sibling, y = n.return; if (!function Qj(a) { var b = a.alternate; null !== b && (a.alternate = null, Qj(b)), a.child = null, a.deletions = null, a.sibling = null, 5 === a.tag && null !== (b = a.stateNode) && (delete b[Nf], delete b[Of], delete b[nf], delete b[Pf], delete b[Qf]), a.stateNode = null, a.return = null, a.dependencies = null, a.memoizedProps = null, a.memoizedState = null, a.pendingProps = null, a.stateNode = null, a.updateQueue = null; }(n), n === l) { T = null; break; } if (null !== q) { q.return = y, T = q; break; } T = y; } } } var m = f.alternate; if (null !== m) { var w = m.child; if (null !== w) { m.child = null; do { var J = w.sibling; w.sibling = null, w = J; }while (null !== w) } } T = f; } } if (0 != (2064 & f.subtreeFlags) && null !== g) g.return = f, T = g; else for(; null !== T;){ if (f = T, 0 != (2048 & f.flags)) switch(f.tag){ case 0: case 11: case 15: Nj(9, f, f.return); } var v = f.sibling; if (null !== v) { v.return = f.return, T = v; break; } T = f.return; } } var x = a.current; for(T = x; null !== T;){ var r = (g = T).child; if (0 != (2064 & g.subtreeFlags) && null !== r) r.return = g, T = r; else for(g = x; null !== T;){ if (h = T, 0 != (2048 & h.flags)) try { switch(h.tag){ case 0: case 11: case 15: Oj(9, h); } } catch (Z) { U(h, h.return, Z); } if (h === g) { T = null; break; } var F = h.sibling; if (null !== F) { F.return = h.return, T = F; break; } T = h.return; } } if (W = e, ig(), kc && "function" == typeof kc.onPostCommitFiberRoot) try { kc.onPostCommitFiberRoot(jc, a); } catch (Z) {} d = !0; } return d; } finally{ C = c, mk.transition = b; } } return !1; } function Wk(a, b, c) { b = Ki(a, b = Hi(c, b), 1), Ag(a, b), b = Jg(), null !== (a = Ak(a, 1)) && (zc(a, 1, b), Ck(a, b)); } function U(a, b, c) { if (3 === a.tag) Wk(a, a, c); else for(; null !== b;){ if (3 === b.tag) { Wk(b, a, c); break; } if (1 === b.tag) { var d = b.stateNode; if ("function" == typeof b.type.getDerivedStateFromError || "function" == typeof d.componentDidCatch && (null === Oi || !Oi.has(d))) { a = Ni(b, a = Hi(c, a), 1), Ag(b, a), a = Jg(), null !== (b = Ak(b, 1)) && (zc(b, 1, a), Ck(b, a)); break; } } b = b.return; } } function Qi(a, b, c) { var d = a.pingCache; null !== d && d.delete(b), b = Jg(), a.pingedLanes |= a.suspendedLanes & c, P === a && (Y & c) === c && (4 === R || 3 === R && (130023424 & Y) === Y && 500 > B() - dk ? Jk(a, 0) : pk |= c), Ck(a, b); } function Xk(a, b) { 0 === b && (0 == (1 & a.mode) ? b = 1 : (b = rc, 0 == (130023424 & (rc <<= 1)) && (rc = 4194304))); var c = Jg(); null !== (a = Ak(a, b)) && (zc(a, b, c), Ck(a, c)); } function zj(a) { var b = a.memoizedState, c = 0; null !== b && (c = b.retryLane), Xk(a, c); } function Zj(a, b) { var c = 0; switch(a.tag){ case 13: var d = a.stateNode, e = a.memoizedState; null !== e && (c = e.retryLane); break; case 19: d = a.stateNode; break; default: throw Error(p(314)); } null !== d && d.delete(b), Xk(a, c); } function Zk(a, b, c, d) { this.tag = a, this.key = c, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = b, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = d, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; } function hh(a, b, c, d) { return new Zk(a, b, c, d); } function ij(a) { return !(!(a = a.prototype) || !a.isReactComponent); } function th(a, b) { var c = a.alternate; return null === c ? ((c = hh(a.tag, b, a.key, a.mode)).elementType = a.elementType, c.type = a.type, c.stateNode = a.stateNode, c.alternate = a, a.alternate = c) : (c.pendingProps = b, c.type = a.type, c.flags = 0, c.subtreeFlags = 0, c.deletions = null), c.flags = 14680064 & a.flags, c.childLanes = a.childLanes, c.lanes = a.lanes, c.child = a.child, c.memoizedProps = a.memoizedProps, c.memoizedState = a.memoizedState, c.updateQueue = a.updateQueue, b = a.dependencies, c.dependencies = null === b ? null : { lanes: b.lanes, firstContext: b.firstContext }, c.sibling = a.sibling, c.index = a.index, c.ref = a.ref, c; } function vh(a, b, c, d, e, f) { var g = 2; if (d = a, "function" == typeof a) ij(a) && (g = 1); else if ("string" == typeof a) g = 5; else a: switch(a){ case wa: return xh(c.children, e, f, b); case xa: g = 8, e |= 8; break; case za: return (a = hh(12, c, b, 2 | e)).elementType = za, a.lanes = f, a; case Da: return (a = hh(13, c, b, e)).elementType = Da, a.lanes = f, a; case Ea: return (a = hh(19, c, b, e)).elementType = Ea, a.lanes = f, a; case Ha: return wj(c, e, f, b); default: if ("object" == typeof a && null !== a) switch(a.$$typeof){ case Aa: g = 10; break a; case Ba: g = 9; break a; case Ca: g = 11; break a; case Fa: g = 14; break a; case Ga: g = 16, d = null; break a; } throw Error(p(130, null == a ? a : typeof a, "")); } return (b = hh(g, c, b, e)).elementType = a, b.type = d, b.lanes = f, b; } function xh(a, b, c, d) { return (a = hh(7, a, d, b)).lanes = c, a; } function wj(a, b, c, d) { return (a = hh(22, a, d, b)).elementType = Ha, a.lanes = c, a.stateNode = {}, a; } function uh(a, b, c) { return (a = hh(6, a, null, b)).lanes = c, a; } function wh(a, b, c) { return (b = hh(4, null !== a.children ? a.children : [], a.key, b)).lanes = c, b.stateNode = { containerInfo: a.containerInfo, pendingChildren: null, implementation: a.implementation }, b; } function $k(a, b, c, d, e) { this.tag = b, this.containerInfo = a, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = yc(0), this.expirationTimes = yc(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = yc(0), this.identifierPrefix = d, this.onRecoverableError = e, this.mutableSourceEagerHydrationData = null; } function al(a, b, c, d, e, f, g, h, k) { return a = new $k(a, b, c, h, k), 1 === b ? (b = 1, !0 === f && (b |= 8)) : b = 0, f = hh(3, null, null, b), a.current = f, f.stateNode = a, f.memoizedState = { element: d, isDehydrated: c, cache: null, transitions: null, pendingSuspenseBoundaries: null }, xg(f), a; } function cl(a) { if (!a) return Uf; a = a._reactInternals; a: { if (Ub(a) !== a || 1 !== a.tag) throw Error(p(170)); var b = a; do { switch(b.tag){ case 3: b = b.stateNode.context; break a; case 1: if (Yf(b.type)) { b = b.stateNode.__reactInternalMemoizedMergedChildContext; break a; } } b = b.return; }while (null !== b) throw Error(p(171)); } if (1 === a.tag) { var c = a.type; if (Yf(c)) return ag(a, c, b); } return b; } function dl(a, b, c, d, e, f, g, h, k) { return (a = al(c, d, !0, a, e, f, g, h, k)).context = cl(null), c = a.current, (f = zg(d = Jg(), e = Kg(c))).callback = null != b ? b : null, Ag(c, f), a.current.lanes = e, zc(a, e, d), Ck(a, d), a; } function el(a, b, c, d) { var e = b.current, f = Jg(), g = Kg(e); return c = cl(c), null === b.context ? b.context = c : b.pendingContext = c, (b = zg(f, g)).payload = { element: a }, null !== (d = void 0 === d ? null : d) && (b.callback = d), Ag(e, b), null !== (a = Lg(e, g, f)) && Cg(a, e, g), g; } function fl(a) { return (a = a.current).child ? (a.child.tag, a.child.stateNode) : null; } function gl(a, b) { if (null !== (a = a.memoizedState) && null !== a.dehydrated) { var c = a.retryLane; a.retryLane = 0 !== c && c < b ? c : b; } } function hl(a, b) { gl(a, b), (a = a.alternate) && gl(a, b); } Uk = function(a, b, c) { if (null !== a) { if (a.memoizedProps !== b.pendingProps || Vf.current) tg = !0; else { if (0 == (a.lanes & c) && 0 == (128 & b.flags)) return tg = !1, function(a, b, c) { switch(b.tag){ case 3: qj(b), nh(); break; case 5: Hh(b); break; case 1: Yf(b.type) && bg(b); break; case 4: Fh(b, b.stateNode.containerInfo); break; case 10: var d = b.type._context, e = b.memoizedProps.value; G(lg, d._currentValue), d._currentValue = e; break; case 13: if (null !== (d = b.memoizedState)) { if (null !== d.dehydrated) return G(K, 1 & K.current), b.flags |= 128, null; if (0 != (c & b.child.childLanes)) return vj(a, b, c); return G(K, 1 & K.current), null !== (a = gj(a, b, c)) ? a.sibling : null; } G(K, 1 & K.current); break; case 19: if (d = 0 != (c & b.childLanes), 0 != (128 & a.flags)) { if (d) return Ej(a, b, c); b.flags |= 128; } if (null !== (e = b.memoizedState) && (e.rendering = null, e.tail = null, e.lastEffect = null), G(K, K.current), !d) return null; break; case 22: case 23: return b.lanes = 0, lj(a, b, c); } return gj(a, b, c); }(a, b, c); tg = 0 != (131072 & a.flags); } } else tg = !1, I && 0 != (1048576 & b.flags) && ah(b, Ug, b.index); switch(b.lanes = 0, b.tag){ case 2: var d = b.type; null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2), a = b.pendingProps; var e = Xf(b, H.current); sg(b, c), e = Uh(null, b, d, a, e, c); var f = Zh(); return b.flags |= 1, "object" == typeof e && null !== e && "function" == typeof e.render && void 0 === e.$$typeof ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Yf(d) ? (f = !0, bg(b)) : f = !1, b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, xg(b), e.updater = Mg, b.stateNode = e, e._reactInternals = b, Qg(b, d, a, c), b = pj(null, b, d, !0, f, c)) : (b.tag = 0, I && f && bh(b), ej(null, b, e, c), b = b.child), b; case 16: d = b.elementType; a: { switch(null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2), a = b.pendingProps, d = (e = d._init)(d._payload), b.type = d, e = b.tag = function(a) { if ("function" == typeof a) return +!!ij(a); if (null != a) { if ((a = a.$$typeof) === Ca) return 11; if (a === Fa) return 14; } return 2; }(d), a = kg(d, a), e){ case 0: b = kj(null, b, d, a, c); break a; case 1: b = oj(null, b, d, a, c); break a; case 11: b = fj(null, b, d, a, c); break a; case 14: b = hj(null, b, d, kg(d.type, a), c); break a; } throw Error(p(306, d, "")); } return b; case 0: return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : kg(d, e), kj(a, b, d, e, c); case 1: return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : kg(d, e), oj(a, b, d, e, c); case 3: a: { if (qj(b), null === a) throw Error(p(387)); d = b.pendingProps, e = (f = b.memoizedState).element, yg(a, b), Eg(b, d, null, c); var g = b.memoizedState; if (d = g.element, f.isDehydrated) { if (f = { element: d, isDehydrated: !1, cache: g.cache, pendingSuspenseBoundaries: g.pendingSuspenseBoundaries, transitions: g.transitions }, b.updateQueue.baseState = f, b.memoizedState = f, 256 & b.flags) { b = rj(a, b, d, c, e = Error(p(423))); break a; } if (d !== e) { b = rj(a, b, d, c, e = Error(p(424))); break a; } for(eh = Kf(b.stateNode.containerInfo.firstChild), dh = b, I = !0, fh = null, c = zh(b, null, d, c), b.child = c; c;)c.flags = -3 & c.flags | 4096, c = c.sibling; } else { if (nh(), d === e) { b = gj(a, b, c); break a; } ej(a, b, d, c); } b = b.child; } return b; case 5: return Hh(b), null === a && kh(b), d = b.type, e = b.pendingProps, f = null !== a ? a.memoizedProps : null, g = e.children, Df(d, e) ? g = null : null !== f && Df(d, f) && (b.flags |= 32), nj(a, b), ej(a, b, g, c), b.child; case 6: return null === a && kh(b), null; case 13: return vj(a, b, c); case 4: return Fh(b, b.stateNode.containerInfo), d = b.pendingProps, null === a ? b.child = yh(b, null, d, c) : ej(a, b, d, c), b.child; case 11: return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : kg(d, e), fj(a, b, d, e, c); case 7: return ej(a, b, b.pendingProps, c), b.child; case 8: case 12: return ej(a, b, b.pendingProps.children, c), b.child; case 10: a: { if (d = b.type._context, e = b.pendingProps, f = b.memoizedProps, g = e.value, G(lg, d._currentValue), d._currentValue = g, null !== f) { if (Ge(f.value, g)) { if (f.children === e.children && !Vf.current) { b = gj(a, b, c); break a; } } else for(null !== (f = b.child) && (f.return = b); null !== f;){ var h = f.dependencies; if (null !== h) { g = f.child; for(var k = h.firstContext; null !== k;){ if (k.context === d) { if (1 === f.tag) { (k = zg(-1, c & -c)).tag = 2; var l = f.updateQueue; if (null !== l) { var n = (l = l.shared).pending; null === n ? k.next = k : (k.next = n.next, n.next = k), l.pending = k; } } f.lanes |= c, null !== (k = f.alternate) && (k.lanes |= c), rg(f.return, c, b), h.lanes |= c; break; } k = k.next; } } else if (10 === f.tag) g = f.type === b.type ? null : f.child; else if (18 === f.tag) { if (null === (g = f.return)) throw Error(p(341)); g.lanes |= c, null !== (h = g.alternate) && (h.lanes |= c), rg(g, c, b), g = f.sibling; } else g = f.child; if (null !== g) g.return = f; else for(g = f; null !== g;){ if (g === b) { g = null; break; } if (null !== (f = g.sibling)) { f.return = g.return, g = f; break; } g = g.return; } f = g; } } ej(a, b, e.children, c), b = b.child; } return b; case 9: return e = b.type, d = b.pendingProps.children, sg(b, c), d = d(e = ug(e)), b.flags |= 1, ej(a, b, d, c), b.child; case 14: return e = kg(d = b.type, b.pendingProps), e = kg(d.type, e), hj(a, b, d, e, c); case 15: return jj(a, b, b.type, b.pendingProps, c); case 17: return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : kg(d, e), null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2), b.tag = 1, Yf(d) ? (a = !0, bg(b)) : a = !1, sg(b, c), Og(b, d, e), Qg(b, d, e, c), pj(null, b, d, !0, a, c); case 19: return Ej(a, b, c); case 22: return lj(a, b, c); } throw Error(p(156, b.tag)); }; var jl = "function" == typeof reportError ? reportError : function(a) { console.error(a); }; function kl(a) { this._internalRoot = a; } function ll(a) { this._internalRoot = a; } function ml(a) { return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType); } function nl(a) { return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue)); } function ol() {} function ql(a, b, c, d, e) { var f = c._reactRootContainer; if (f) { var g = f; if ("function" == typeof e) { var h = e; e = function() { var a = fl(g); h.call(a); }; } el(b, g, a, e); } else g = function(a, b, c, d, e) { if (e) { if ("function" == typeof d) { var f = d; d = function() { var a = fl(g); f.call(a); }; } var g = dl(b, d, a, 0, null, !1, !1, "", ol); return a._reactRootContainer = g, a[tf] = g.current, rf(8 === a.nodeType ? a.parentNode : a), Qk(), g; } for(; e = a.lastChild;)a.removeChild(e); if ("function" == typeof d) { var h = d; d = function() { var a = fl(k); h.call(a); }; } var k = al(a, 0, !1, null, null, !1, !1, "", ol); return a._reactRootContainer = k, a[tf] = k.current, rf(8 === a.nodeType ? a.parentNode : a), Qk(function() { el(b, k, c, d); }), k; }(c, b, a, e, d); return fl(g); } ll.prototype.render = kl.prototype.render = function(a) { var b = this._internalRoot; if (null === b) throw Error(p(409)); el(a, b, null, null); }, ll.prototype.unmount = kl.prototype.unmount = function() { var a = this._internalRoot; if (null !== a) { this._internalRoot = null; var b = a.containerInfo; Qk(function() { el(null, a, null, null); }), b[tf] = null; } }, ll.prototype.unstable_scheduleHydration = function(a) { if (a) { var b = Gc(); a = { blockedOn: null, target: a, priority: b }; for(var c = 0; c < Pc.length && 0 !== b && b < Pc[c].priority; c++); Pc.splice(c, 0, a), 0 === c && Uc(a); } }, Dc = function(a) { switch(a.tag){ case 3: var b = a.stateNode; if (b.current.memoizedState.isDehydrated) { var c = sc(b.pendingLanes); 0 !== c && (Bc(b, 1 | c), Ck(b, B()), 0 == (6 & W) && (aj = B() + 500, ig())); } break; case 13: var d = Jg(); Qk(function() { return Lg(a, 1, d); }), hl(a, 1); } }, Ec = function(a) { 13 === a.tag && (Lg(a, 134217728, Jg()), hl(a, 134217728)); }, Fc = function(a) { if (13 === a.tag) { var b = Jg(), c = Kg(a); Lg(a, c, b), hl(a, c); } }, Gc = function() { return C; }, Hc = function(a, b) { var c = C; try { return C = a, b(); } finally{ C = c; } }, xb = function(a, b, c) { switch(b){ case "input": if ($a(a, c), b = c.name, "radio" === c.type && null != b) { for(c = a; c.parentNode;)c = c.parentNode; for(c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'), b = 0; b < c.length; b++){ var d = c[b]; if (d !== a && d.form === a.form) { var e = Cb(d); if (!e) throw Error(p(90)); Va(d), $a(d, e); } } } break; case "textarea": hb(a, c); break; case "select": null != (b = c.value) && eb(a, !!c.multiple, b, !1); } }, Fb = Pk, Gb = Qk; var sl = { findFiberByHostInstance: Vc, bundleType: 0, version: "18.1.0", rendererPackageName: "react-dom" }, tl = { bundleType: sl.bundleType, version: sl.version, rendererPackageName: sl.rendererPackageName, rendererConfig: sl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: ta.ReactCurrentDispatcher, findHostInstanceByFiber: function(a) { return null === (a = Yb(a)) ? null : a.stateNode; }, findFiberByHostInstance: sl.findFiberByHostInstance || function() { return null; }, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.1.0-next-22edb9f77-20220426" }; if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var ul = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (!ul.isDisabled && ul.supportsFiber) try { jc = ul.inject(tl), kc = ul; } catch (a) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { usingClientEntryPoint: !1, Events: [ Bb, te, Cb, Db, Eb, Pk ] }, exports.createPortal = function(a, b) { var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; if (!ml(b)) throw Error(p(200)); return function(a, b, c) { var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; return { $$typeof: va, key: null == d ? null : "" + d, children: a, containerInfo: b, implementation: c }; }(a, b, null, c); }, exports.createRoot = function(a, b) { if (!ml(a)) throw Error(p(299)); var c = !1, d = "", e = jl; return null != b && (!0 === b.unstable_strictMode && (c = !0), void 0 !== b.identifierPrefix && (d = b.identifierPrefix), void 0 !== b.onRecoverableError && (e = b.onRecoverableError)), b = al(a, 1, !1, null, null, c, !1, d, e), a[tf] = b.current, rf(8 === a.nodeType ? a.parentNode : a), new kl(b); }, exports.findDOMNode = function(a) { if (null == a) return null; if (1 === a.nodeType) return a; var b = a._reactInternals; if (void 0 === b) { if ("function" == typeof a.render) throw Error(p(188)); throw Error(p(268, a = Object.keys(a).join(","))); } return a = null === (a = Yb(b)) ? null : a.stateNode; }, exports.flushSync = function(a) { return Qk(a); }, exports.hydrate = function(a, b, c) { if (!nl(b)) throw Error(p(200)); return ql(null, a, b, !0, c); }, exports.hydrateRoot = function(a, b, c) { if (!ml(a)) throw Error(p(405)); var d = null != c && c.hydratedSources || null, e = !1, f = "", g = jl; if (null != c && (!0 === c.unstable_strictMode && (e = !0), void 0 !== c.identifierPrefix && (f = c.identifierPrefix), void 0 !== c.onRecoverableError && (g = c.onRecoverableError)), b = dl(b, null, a, 1, null != c ? c : null, e, !1, f, g), a[tf] = b.current, rf(a), d) for(a = 0; a < d.length; a++)e = (e = (c = d[a])._getVersion)(c._source), null == b.mutableSourceEagerHydrationData ? b.mutableSourceEagerHydrationData = [ c, e ] : b.mutableSourceEagerHydrationData.push(c, e); return new ll(b); }, exports.render = function(a, b, c) { if (!nl(b)) throw Error(p(200)); return ql(null, a, b, !1, c); }, exports.unmountComponentAtNode = function(a) { if (!nl(a)) throw Error(p(40)); return !!a._reactRootContainer && (Qk(function() { ql(null, null, a, !1, function() { a._reactRootContainer = null, a[tf] = null; }); }), !0); }, exports.unstable_batchedUpdates = Pk, exports.unstable_renderSubtreeIntoContainer = function(a, b, c, d) { if (!nl(c)) throw Error(p(200)); if (null == a || void 0 === a._reactInternals) throw Error(p(38)); return ql(a, b, c, !1, d); }, exports.version = "18.1.0-next-22edb9f77-20220426"; /***/ }, /***/ 7029: /***/ function(__unused_webpack_module, exports, __webpack_require__) { var m = __webpack_require__(8316); exports.createRoot = m.createRoot, exports.hydrateRoot = m.hydrateRoot; /***/ }, /***/ 8316: /***/ function(module, __unused_webpack_exports, __webpack_require__) { !// DCE check should happen before ReactDOM bundle executes so that // DevTools can report bad minification during injection. function checkDCE() { /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) try { // Verify that the code above has been dead code eliminated (DCE'd). __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); } catch (err) { // DevTools shouldn't crash React, no matter what. // We should still report in case we break this code. console.error(err); } }(), module.exports = __webpack_require__(2967); /***/ }, /***/ 9670: /***/ function(__unused_webpack_module, exports) { /** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ function f(a, b) { var c = a.length; for(a.push(b); 0 < c;){ var d = c - 1 >>> 1, e = a[d]; if (0 < g(e, b)) a[d] = b, a[c] = e, c = d; else break; } } function h(a) { return 0 === a.length ? null : a[0]; } function k(a) { if (0 === a.length) return null; var b = a[0], c = a.pop(); if (c !== b) { a[0] = c; for(var d = 0, e = a.length, w = e >>> 1; d < w;){ var m = 2 * (d + 1) - 1, C = a[m], n = m + 1, x = a[n]; if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m); else if (n < e && 0 > g(x, c)) a[d] = x, a[n] = c, d = n; else break; } } return b; } function g(a, b) { var c = a.sortIndex - b.sortIndex; return 0 !== c ? c : a.id - b.id; } if ("object" == typeof performance && "function" == typeof performance.now) { var S, l = performance; exports.unstable_now = function() { return l.now(); }; } else { var p = Date, q = p.now(); exports.unstable_now = function() { return p.now() - q; }; } var r = [], t = [], u = 1, v = null, y = 3, z = !1, A = !1, B = !1, D = "function" == typeof setTimeout ? setTimeout : null, E = "function" == typeof clearTimeout ? clearTimeout : null, F = "undefined" != typeof setImmediate ? setImmediate : null; function G(a) { for(var b = h(t); null !== b;){ if (null === b.callback) k(t); else if (b.startTime <= a) k(t), b.sortIndex = b.expirationTime, f(r, b); else break; b = h(t); } } function H(a) { if (B = !1, G(a), !A) { if (null !== h(r)) A = !0, I(J); else { var b = h(t); null !== b && K(H, b.startTime - a); } } } function J(a, b) { A = !1, B && (B = !1, E(L), L = -1), z = !0; var c = y; try { for(G(b), v = h(r); null !== v && (!(v.expirationTime > b) || a && !M());){ var d = v.callback; if ("function" == typeof d) { v.callback = null, y = v.priorityLevel; var e = d(v.expirationTime <= b); b = exports.unstable_now(), "function" == typeof e ? v.callback = e : v === h(r) && k(r), G(b); } else k(r); v = h(r); } if (null !== v) var w = !0; else { var m = h(t); null !== m && K(H, m.startTime - b), w = !1; } return w; } finally{ v = null, y = c, z = !1; } } "undefined" != typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); var N = !1, O = null, L = -1, P = 5, Q = -1; function M() { return !(exports.unstable_now() - Q < P); } function R() { if (null !== O) { var a = exports.unstable_now(); Q = a; var b = !0; try { b = O(!0, a); } finally{ b ? S() : (N = !1, O = null); } } else N = !1; } if ("function" == typeof F) S = function() { F(R); }; else if ("undefined" != typeof MessageChannel) { var T = new MessageChannel(), U = T.port2; T.port1.onmessage = R, S = function() { U.postMessage(null); }; } else S = function() { D(R, 0); }; function I(a) { O = a, N || (N = !0, S()); } function K(a, b) { L = D(function() { a(exports.unstable_now()); }, b); } exports.unstable_IdlePriority = 5, exports.unstable_ImmediatePriority = 1, exports.unstable_LowPriority = 4, exports.unstable_NormalPriority = 3, exports.unstable_Profiling = null, exports.unstable_UserBlockingPriority = 2, exports.unstable_cancelCallback = function(a) { a.callback = null; }, exports.unstable_continueExecution = function() { A || z || (A = !0, I(J)); }, exports.unstable_forceFrameRate = function(a) { 0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1e3 / a) : 5; }, exports.unstable_getCurrentPriorityLevel = function() { return y; }, exports.unstable_getFirstCallbackNode = function() { return h(r); }, exports.unstable_next = function(a) { switch(y){ case 1: case 2: case 3: var b = 3; break; default: b = y; } var c = y; y = b; try { return a(); } finally{ y = c; } }, exports.unstable_pauseExecution = function() {}, exports.unstable_requestPaint = function() {}, exports.unstable_runWithPriority = function(a, b) { switch(a){ case 1: case 2: case 3: case 4: case 5: break; default: a = 3; } var c = y; y = a; try { return b(); } finally{ y = c; } }, exports.unstable_scheduleCallback = function(a, b, c) { var d = exports.unstable_now(); switch(c = "object" == typeof c && null !== c && "number" == typeof (c = c.delay) && 0 < c ? d + c : d, a){ case 1: var e = -1; break; case 2: e = 250; break; case 5: e = 1073741823; break; case 4: e = 1e4; break; default: e = 5e3; } return e = c + e, a = { id: u++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 }, c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = !0, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = !0, I(J))), a; }, exports.unstable_shouldYield = M, exports.unstable_wrapCallback = function(a) { var b = y; return function() { var c = y; y = b; try { return a.apply(this, arguments); } finally{ y = c; } }; }; /***/ }, /***/ 2941: /***/ function(module, __unused_webpack_exports, __webpack_require__) { module.exports = __webpack_require__(9670); /***/ }, /***/ 1837: /***/ function(__unused_webpack_module, exports, __webpack_require__) { /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var f = __webpack_require__(2784), k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 }; function q(c, a, g) { var b, d = {}, e = null, h = null; for(b in void 0 !== g && (e = "" + g), void 0 !== a.key && (e = "" + a.key), void 0 !== a.ref && (h = a.ref), a)m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]); if (c && c.defaultProps) for(b in a = c.defaultProps)void 0 === d[b] && (d[b] = a[b]); return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current }; } exports.Fragment = l, exports.jsx = q, exports.jsxs = q; /***/ }, /***/ 3426: /***/ function(__unused_webpack_module, exports) { /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator, B = { isMounted: function() { return !1; }, enqueueForceUpdate: function() {}, enqueueReplaceState: function() {}, enqueueSetState: function() {} }, C = Object.assign, D = {}; function E(a, b, e) { this.props = a, this.context = b, this.refs = D, this.updater = e || B; } function F() {} function G(a, b, e) { this.props = a, this.context = b, this.refs = D, this.updater = e || B; } E.prototype.isReactComponent = {}, E.prototype.setState = function(a, b) { if ("object" != typeof a && "function" != typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); this.updater.enqueueSetState(this, a, b, "setState"); }, E.prototype.forceUpdate = function(a) { this.updater.enqueueForceUpdate(this, a, "forceUpdate"); }, F.prototype = E.prototype; var H = G.prototype = new F(); H.constructor = G, C(H, E.prototype), H.isPureReactComponent = !0; var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L = { key: !0, ref: !0, __self: !0, __source: !0 }; function M(a, b, e) { var d, c = {}, k = null, h = null; if (null != b) for(d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); var g = arguments.length - 2; if (1 === g) c.children = e; else if (1 < g) { for(var f = Array(g), m = 0; m < g; m++)f[m] = arguments[m + 2]; c.children = f; } if (a && a.defaultProps) for(d in g = a.defaultProps)void 0 === c[d] && (c[d] = g[d]); return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current }; } function O(a) { return "object" == typeof a && null !== a && a.$$typeof === l; } var P = /\/+/g; function Q(a, b) { var a1, b1; return "object" == typeof a && null !== a && null != a.key ? (a1 = "" + a.key, b1 = { "=": "=0", ":": "=2" }, "$" + a1.replace(/[=:]/g, function(a) { return b1[a]; })) : b.toString(36); } function S(a, b, e) { if (null == a) return a; var d = [], c = 0; return !function R(a, b, e, d, c) { var a1, b1, a2, k = typeof a; ("undefined" === k || "boolean" === k) && (a = null); var h = !1; if (null === a) h = !0; else switch(k){ case "string": case "number": h = !0; break; case "object": switch(a.$$typeof){ case l: case n: h = !0; } } if (h) return c = c(h = a), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a) { return a; })) : null != c && (O(c) && (a1 = c, b1 = e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a, c = { $$typeof: l, type: a1.type, key: b1, ref: a1.ref, props: a1.props, _owner: a1._owner }), b.push(c)), 1; if (h = 0, d = "" === d ? "." : d + ":", I(a)) for(var g = 0; g < a.length; g++){ var f = d + Q(k = a[g], g); h += R(k, b, e, f, c); } else if ("function" == typeof (f = null === (a2 = a) || "object" != typeof a2 ? null : "function" == typeof (a2 = z && a2[z] || a2["@@iterator"]) ? a2 : null)) for(a = f.call(a), g = 0; !(k = a.next()).done;)f = d + Q(k = k.value, g++), h += R(k, b, e, f, c); else if ("object" === k) throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === (b = String(a)) ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); return h; }(a, d, "", "", function(a) { return b.call(e, a, c++); }), d; } function T(a) { if (-1 === a._status) { var b = a._result; (b = b()).then(function(b) { (0 === a._status || -1 === a._status) && (a._status = 1, a._result = b); }, function(b) { (0 === a._status || -1 === a._status) && (a._status = 2, a._result = b); }), -1 === a._status && (a._status = 0, a._result = b); } if (1 === a._status) return a._result.default; throw a._result; } var U = { current: null }, V = { transition: null }; exports.Children = { map: S, forEach: function(a, b, e) { S(a, function() { b.apply(this, arguments); }, e); }, count: function(a) { var b = 0; return S(a, function() { b++; }), b; }, toArray: function(a) { return S(a, function(a) { return a; }) || []; }, only: function(a) { if (!O(a)) throw Error("React.Children.only expected to receive a single React element child."); return a; } }, exports.Component = E, exports.Fragment = p, exports.Profiler = r, exports.PureComponent = G, exports.StrictMode = q, exports.Suspense = w, exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K }, exports.cloneElement = function(a, b, e) { if (null == a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner; if (null != b) { if (void 0 !== b.ref && (k = b.ref, h = K.current), void 0 !== b.key && (c = "" + b.key), a.type && a.type.defaultProps) var g = a.type.defaultProps; for(f in b)J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); } var f = arguments.length - 2; if (1 === f) d.children = e; else if (1 < f) { g = Array(f); for(var m = 0; m < f; m++)g[m] = arguments[m + 2]; d.children = g; } return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h }; }, exports.createContext = function(a) { return (a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }).Provider = { $$typeof: t, _context: a }, a.Consumer = a; }, exports.createElement = M, exports.createFactory = function(a) { var b = M.bind(null, a); return b.type = a, b; }, exports.createRef = function() { return { current: null }; }, exports.forwardRef = function(a) { return { $$typeof: v, render: a }; }, exports.isValidElement = O, exports.lazy = function(a) { return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T }; }, exports.memo = function(a, b) { return { $$typeof: x, type: a, compare: void 0 === b ? null : b }; }, exports.startTransition = function(a) { var b = V.transition; V.transition = {}; try { a(); } finally{ V.transition = b; } }, exports.unstable_act = function() { throw Error("act(...) is not supported in production builds of React."); }, exports.useCallback = function(a, b) { return U.current.useCallback(a, b); }, exports.useContext = function(a) { return U.current.useContext(a); }, exports.useDebugValue = function() {}, exports.useDeferredValue = function(a) { return U.current.useDeferredValue(a); }, exports.useEffect = function(a, b) { return U.current.useEffect(a, b); }, exports.useId = function() { return U.current.useId(); }, exports.useImperativeHandle = function(a, b, e) { return U.current.useImperativeHandle(a, b, e); }, exports.useInsertionEffect = function(a, b) { return U.current.useInsertionEffect(a, b); }, exports.useLayoutEffect = function(a, b) { return U.current.useLayoutEffect(a, b); }, exports.useMemo = function(a, b) { return U.current.useMemo(a, b); }, exports.useReducer = function(a, b, e) { return U.current.useReducer(a, b, e); }, exports.useRef = function(a) { return U.current.useRef(a); }, exports.useState = function(a) { return U.current.useState(a); }, exports.useSyncExternalStore = function(a, b, e) { return U.current.useSyncExternalStore(a, b, e); }, exports.useTransition = function() { return U.current.useTransition(); }, exports.version = "18.1.0"; /***/ }, /***/ 2784: /***/ function(module, __unused_webpack_exports, __webpack_require__) { module.exports = __webpack_require__(3426); /***/ }, /***/ 2322: /***/ function(module, __unused_webpack_exports, __webpack_require__) { module.exports = __webpack_require__(1837); /***/ } } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/styled-components/1/input.js
JavaScript
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ [888], { /***/ 7689: /***/ function (module) { // this file was prevaled // This file needs to be a JavaScript file using CommonJS to be compatible with preval // Cache bust: 2022-03-24 12:00:00 GMT (This file is cached by our deployment tooling, update this timestamp to rebuild this file) module.exports = { theme: { animation: { easeOutCubic: "cubic-bezier(0.33, 1, 0.68, 1)", }, borderWidths: [0, "1px"], breakpoints: ["544px", "768px", "1012px", "1280px"], fonts: { normal: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"', mono: 'SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace', }, fontSizes: [ "12px", "14px", "16px", "20px", "24px", "32px", "40px", "48px", ], fontWeights: { light: 300, normal: 400, semibold: 500, bold: 600, }, lineHeights: { condensedUltra: 1, condensed: 1.25, default: 1.5, }, radii: ["0", "3px", "6px", "100px"], sizes: { small: "544px", medium: "768px", large: "1012px", xlarge: "1280px", }, space: [ "0", "4px", "8px", "16px", "24px", "32px", "40px", "48px", "64px", "80px", "96px", "112px", "128px", ], colorSchemes: { light: { colors: { canvasDefaultTransparent: "rgba(255,255,255,0)", pageHeaderBg: "#f6f8fa", marketingIcon: { primary: "#218bff", secondary: "#54aeff", }, diffBlob: { addition: { numText: "#24292f", fg: "#24292f", numBg: "#CCFFD8", lineBg: "#E6FFEC", wordBg: "#ABF2BC", }, deletion: { numText: "#24292f", fg: "#24292f", numBg: "#FFD7D5", lineBg: "#FFEBE9", wordBg: "rgba(255,129,130,0.4)", }, hunk: { numBg: "rgba(84,174,255,0.4)", }, expander: { icon: "#57606a", }, }, diffstat: { deletionBorder: "rgba(27,31,36,0.15)", additionBorder: "rgba(27,31,36,0.15)", additionBg: "#2da44e", }, searchKeyword: { hl: "#fff8c5", }, prettylights: { syntax: { comment: "#6e7781", constant: "#0550ae", entity: "#8250df", storageModifierImport: "#24292f", entityTag: "#116329", keyword: "#cf222e", string: "#0a3069", variable: "#953800", brackethighlighterUnmatched: "#82071e", invalidIllegalText: "#f6f8fa", invalidIllegalBg: "#82071e", carriageReturnText: "#f6f8fa", carriageReturnBg: "#cf222e", stringRegexp: "#116329", markupList: "#3b2300", markupHeading: "#0550ae", markupItalic: "#24292f", markupBold: "#24292f", markupDeletedText: "#82071e", markupDeletedBg: "#FFEBE9", markupInsertedText: "#116329", markupInsertedBg: "#dafbe1", markupChangedText: "#953800", markupChangedBg: "#ffd8b5", markupIgnoredText: "#eaeef2", markupIgnoredBg: "#0550ae", metaDiffRange: "#8250df", brackethighlighterAngle: "#57606a", sublimelinterGutterMark: "#8c959f", constantOtherReferenceLink: "#0a3069", }, }, codemirror: { text: "#24292f", bg: "#ffffff", guttersBg: "#ffffff", guttermarkerText: "#ffffff", guttermarkerSubtleText: "#6e7781", linenumberText: "#57606a", cursor: "#24292f", selectionBg: "rgba(84,174,255,0.4)", activelineBg: "rgba(234,238,242,0.5)", matchingbracketText: "#24292f", linesBg: "#ffffff", syntax: { comment: "#24292f", constant: "#0550ae", entity: "#8250df", keyword: "#cf222e", storage: "#cf222e", string: "#0a3069", support: "#0550ae", variable: "#953800", }, }, checks: { bg: "#24292f", textPrimary: "#f6f8fa", textSecondary: "#8c959f", textLink: "#54aeff", btnIcon: "#afb8c1", btnHoverIcon: "#f6f8fa", btnHoverBg: "rgba(255,255,255,0.125)", inputText: "#eaeef2", inputPlaceholderText: "#8c959f", inputFocusText: "#8c959f", inputBg: "#32383f", donutError: "#fa4549", donutPending: "#bf8700", donutSuccess: "#2da44e", donutNeutral: "#afb8c1", dropdownText: "#afb8c1", dropdownBg: "#32383f", dropdownBorder: "#424a53", dropdownShadow: "rgba(27,31,36,0.3)", dropdownHoverText: "#f6f8fa", dropdownHoverBg: "#424a53", dropdownBtnHoverText: "#f6f8fa", dropdownBtnHoverBg: "#32383f", scrollbarThumbBg: "#57606a", headerLabelText: "#d0d7de", headerLabelOpenText: "#f6f8fa", headerBorder: "#32383f", headerIcon: "#8c959f", lineText: "#d0d7de", lineNumText: "rgba(140,149,159,0.75)", lineTimestampText: "#8c959f", lineHoverBg: "#32383f", lineSelectedBg: "rgba(33,139,255,0.15)", lineSelectedNumText: "#54aeff", lineDtFmText: "#24292f", lineDtFmBg: "#9a6700", gateBg: "rgba(125,78,0,0.15)", gateText: "#d0d7de", gateWaitingText: "#d4a72c", stepHeaderOpenBg: "#32383f", stepErrorText: "#ff8182", stepWarningText: "#d4a72c", loglineText: "#8c959f", loglineNumText: "rgba(140,149,159,0.75)", loglineDebugText: "#c297ff", loglineErrorText: "#d0d7de", loglineErrorNumText: "#ff8182", loglineErrorBg: "rgba(164,14,38,0.15)", loglineWarningText: "#d0d7de", loglineWarningNumText: "#d4a72c", loglineWarningBg: "rgba(125,78,0,0.15)", loglineCommandText: "#54aeff", loglineSectionText: "#4ac26b", ansi: { black: "#24292f", blackBright: "#32383f", white: "#d0d7de", whiteBright: "#d0d7de", gray: "#8c959f", red: "#ff8182", redBright: "#ffaba8", green: "#4ac26b", greenBright: "#6fdd8b", yellow: "#d4a72c", yellowBright: "#eac54f", blue: "#54aeff", blueBright: "#80ccff", magenta: "#c297ff", magentaBright: "#d8b9ff", cyan: "#76e3ea", cyanBright: "#b3f0ff", }, }, project: { headerBg: "#24292f", sidebarBg: "#ffffff", gradientIn: "#ffffff", gradientOut: "rgba(255,255,255,0)", }, mktg: { btn: { bg: "#1b1f23", }, }, avatar: { bg: "#ffffff", border: "rgba(27,31,36,0.15)", stackFade: "#afb8c1", stackFadeMore: "#d0d7de", }, topicTag: { border: "rgba(0,0,0,0)", }, counter: { border: "rgba(0,0,0,0)", }, selectMenu: { backdropBorder: "rgba(0,0,0,0)", tapHighlight: "rgba(175,184,193,0.5)", tapFocusBg: "#b6e3ff", }, header: { text: "rgba(255,255,255,0.7)", bg: "#24292f", divider: "#57606a", logo: "#ffffff", }, headerSearch: { bg: "#24292f", border: "#57606a", }, sidenav: { selectedBg: "#ffffff", }, menu: { bgActive: "rgba(0,0,0,0)", }, input: { disabledBg: "rgba(175,184,193,0.2)", }, timeline: { badgeBg: "#eaeef2", }, ansi: { black: "#24292f", blackBright: "#57606a", white: "#6e7781", whiteBright: "#8c959f", gray: "#6e7781", red: "#cf222e", redBright: "#a40e26", green: "#116329", greenBright: "#1a7f37", yellow: "#4d2d00", yellowBright: "#633c01", blue: "#0969da", blueBright: "#218bff", magenta: "#8250df", magentaBright: "#a475f9", cyan: "#1b7c83", cyanBright: "#3192aa", }, btn: { text: "#24292f", bg: "#f6f8fa", border: "rgba(27,31,36,0.15)", hoverBg: "#f3f4f6", hoverBorder: "rgba(27,31,36,0.15)", activeBg: "hsla(220,14%,93%,1)", activeBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(220,14%,94%,1)", focusBg: "#f6f8fa", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(27,31,36,0.08)", primary: { text: "#ffffff", bg: "#2da44e", border: "rgba(27,31,36,0.15)", hoverBg: "#2c974b", hoverBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(137,55%,36%,1)", disabledText: "rgba(255,255,255,0.8)", disabledBg: "#94d3a2", disabledBorder: "rgba(27,31,36,0.15)", focusBg: "#2da44e", focusBorder: "rgba(27,31,36,0.15)", icon: "rgba(255,255,255,0.8)", counterBg: "rgba(255,255,255,0.2)", }, outline: { text: "#0969da", hoverText: "#ffffff", hoverBg: "#0969da", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(212,92%,42%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(9,105,218,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(9,105,218,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(9,105,218,0.1)", }, danger: { text: "#cf222e", hoverText: "#ffffff", hoverBg: "#a40e26", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(356,72%,44%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(207,34,46,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(207,34,46,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(207,34,46,0.1)", icon: "#cf222e", hoverIcon: "#ffffff", }, }, underlinenav: { icon: "#6e7781", borderHover: "rgba(175,184,193,0.2)", }, actionListItem: { inlineDivider: "rgba(208,215,222,0.48)", default: { hoverBg: "rgba(208,215,222,0.32)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(208,215,222,0.48)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(208,215,222,0.24)", }, danger: { hoverBg: "rgba(255,235,233,0.64)", activeBg: "#FFEBE9", hoverText: "#cf222e", }, }, switchTrack: { bg: "#eaeef2", border: "#afb8c1", checked: { bg: "#ddf4ff", hoverBg: "#b6e3ff", activeBg: "#80ccff", border: "#54aeff", }, }, switchKnob: { checked: { bg: "#0969da", disabledBg: "#6e7781", }, }, fg: { default: "#24292f", muted: "#57606a", subtle: "#6e7781", onEmphasis: "#ffffff", }, canvas: { default: "#ffffff", overlay: "#ffffff", inset: "#f6f8fa", subtle: "#f6f8fa", }, border: { default: "#d0d7de", muted: "hsla(210,18%,87%,1)", subtle: "rgba(27,31,36,0.15)", }, neutral: { emphasisPlus: "#24292f", emphasis: "#6e7781", muted: "rgba(175,184,193,0.2)", subtle: "rgba(234,238,242,0.5)", }, accent: { fg: "#0969da", emphasis: "#0969da", muted: "rgba(84,174,255,0.4)", subtle: "#ddf4ff", }, success: { fg: "#1a7f37", emphasis: "#2da44e", muted: "rgba(74,194,107,0.4)", subtle: "#dafbe1", }, attention: { fg: "#9a6700", emphasis: "#bf8700", muted: "rgba(212,167,44,0.4)", subtle: "#fff8c5", }, severe: { fg: "#bc4c00", emphasis: "#bc4c00", muted: "rgba(251,143,68,0.4)", subtle: "#fff1e5", }, danger: { fg: "#cf222e", emphasis: "#cf222e", muted: "rgba(255,129,130,0.4)", subtle: "#FFEBE9", }, open: { fg: "#1a7f37", emphasis: "#2da44e", muted: "rgba(74,194,107,0.4)", subtle: "#dafbe1", }, closed: { fg: "#cf222e", emphasis: "#cf222e", muted: "rgba(255,129,130,0.4)", subtle: "#FFEBE9", }, done: { fg: "#8250df", emphasis: "#8250df", muted: "rgba(194,151,255,0.4)", subtle: "#fbefff", }, sponsors: { fg: "#bf3989", emphasis: "#bf3989", muted: "rgba(255,128,200,0.4)", subtle: "#ffeff7", }, primer: { fg: { disabled: "#8c959f", }, canvas: { backdrop: "rgba(27,31,36,0.5)", sticky: "rgba(255,255,255,0.95)", }, border: { active: "#FD8C73", contrast: "rgba(27,31,36,0.1)", }, }, }, shadows: { mktg: { btn: { shadow: { outline: "rgb(0 0 0 / 15%) 0 0 0 1px inset", focus: "rgb(0 0 0 / 15%) 0 0 0 4px", hover: "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)", hoverMuted: "rgb(0 0 0 / 70%) 0 0 0 2px inset", }, }, }, avatar: { childShadow: "-2px -2px 0 rgba(255,255,255,0.8)", }, overlay: { shadow: "0 1px 3px rgba(27,31,36,0.12), 0 8px 24px rgba(66,74,83,0.12)", }, btn: { shadow: "0 1px 0 rgba(27,31,36,0.04)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.25)", focusShadow: "0 0 0 3px rgba(9,105,218,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(27,31,36,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(9,105,218,0.3)", primary: { shadow: "0 1px 0 rgba(27,31,36,0.1)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,45,17,0.2)", focusShadow: "0 0 0 3px rgba(45,164,78,0.4)", }, outline: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,33,85,0.2)", focusShadow: "0 0 0 3px rgba(5,80,174,0.4)", }, danger: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(76,0,20,0.2)", focusShadow: "0 0 0 3px rgba(164,14,38,0.4)", }, }, shadow: { small: "0 1px 0 rgba(27,31,36,0.04)", medium: "0 3px 6px rgba(140,149,159,0.15)", large: "0 8px 24px rgba(140,149,159,0.2)", extraLarge: "0 12px 28px rgba(140,149,159,0.3)", }, primer: { shadow: { highlight: "inset 0 1px 0 rgba(255,255,255,0.25)", inset: "inset 0 1px 0 rgba(208,215,222,0.2)", focus: "0 0 0 3px rgba(9,105,218,0.3)", }, }, }, }, light_high_contrast: { colors: { canvasDefaultTransparent: "rgba(255,255,255,0)", pageHeaderBg: "#ffffff", marketingIcon: { primary: "#1168e3", secondary: "#368cf9", }, diffBlob: { addition: { numText: "#0E1116", fg: "#ffffff", numBg: "#CCFFD8", lineBg: "#E6FFEC", wordBg: "#055d20", }, deletion: { numText: "#0E1116", fg: "#ffffff", numBg: "#FFD7D5", lineBg: "#fff0ee", wordBg: "#a0111f", }, hunk: { numBg: "#9cd7ff", }, expander: { icon: "#0E1116", }, }, diffstat: { deletionBorder: "rgba(1,4,9,0.8)", additionBorder: "rgba(1,4,9,0.8)", additionBg: "#117f32", }, searchKeyword: { hl: "#fcf7be", }, prettylights: { syntax: { comment: "#66707B", constant: "#023b95", entity: "#622cbc", storageModifierImport: "#0E1116", entityTag: "#024c1a", keyword: "#a0111f", string: "#032563", variable: "#702c00", brackethighlighterUnmatched: "#6e011a", invalidIllegalText: "#FFFFFF", invalidIllegalBg: "#6e011a", carriageReturnText: "#FFFFFF", carriageReturnBg: "#a0111f", stringRegexp: "#024c1a", markupList: "#2e1800", markupHeading: "#023b95", markupItalic: "#0E1116", markupBold: "#0E1116", markupDeletedText: "#6e011a", markupDeletedBg: "#fff0ee", markupInsertedText: "#024c1a", markupInsertedBg: "#d2fedb", markupChangedText: "#702c00", markupChangedBg: "#ffc67b", markupIgnoredText: "#E7ECF0", markupIgnoredBg: "#023b95", metaDiffRange: "#622cbc", brackethighlighterAngle: "#4B535D", sublimelinterGutterMark: "#88929D", constantOtherReferenceLink: "#032563", }, }, codemirror: { text: "#0E1116", bg: "#ffffff", guttersBg: "#ffffff", guttermarkerText: "#ffffff", guttermarkerSubtleText: "#66707B", linenumberText: "#0E1116", cursor: "#0E1116", selectionBg: "#368cf9", activelineBg: "#E7ECF0", matchingbracketText: "#0E1116", linesBg: "#ffffff", syntax: { comment: "#0E1116", constant: "#023b95", entity: "#622cbc", keyword: "#a0111f", storage: "#a0111f", string: "#032563", support: "#023b95", variable: "#702c00", }, }, checks: { bg: "#0E1116", textPrimary: "#FFFFFF", textSecondary: "#88929D", textLink: "#368cf9", btnIcon: "#ACB6C0", btnHoverIcon: "#FFFFFF", btnHoverBg: "rgba(255,255,255,0.125)", inputText: "#E7ECF0", inputPlaceholderText: "#88929D", inputFocusText: "#88929D", inputBg: "#20252C", donutError: "#d5232c", donutPending: "#956400", donutSuccess: "#117f32", donutNeutral: "#ACB6C0", dropdownText: "#ACB6C0", dropdownBg: "#20252C", dropdownBorder: "#343B43", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#FFFFFF", dropdownHoverBg: "#343B43", dropdownBtnHoverText: "#FFFFFF", dropdownBtnHoverBg: "#20252C", scrollbarThumbBg: "#4B535D", headerLabelText: "#CED5DC", headerLabelOpenText: "#FFFFFF", headerBorder: "#20252C", headerIcon: "#88929D", lineText: "#CED5DC", lineNumText: "rgba(136,146,157,0.75)", lineTimestampText: "#88929D", lineHoverBg: "#20252C", lineSelectedBg: "rgba(17,104,227,0.15)", lineSelectedNumText: "#368cf9", lineDtFmText: "#0E1116", lineDtFmBg: "#744500", gateBg: "rgba(96,55,0,0.15)", gateText: "#CED5DC", gateWaitingText: "#b58407", stepHeaderOpenBg: "#20252C", stepErrorText: "#ee5a5d", stepWarningText: "#b58407", loglineText: "#88929D", loglineNumText: "rgba(136,146,157,0.75)", loglineDebugText: "#a371f7", loglineErrorText: "#CED5DC", loglineErrorNumText: "#ee5a5d", loglineErrorBg: "rgba(134,6,29,0.15)", loglineWarningText: "#CED5DC", loglineWarningNumText: "#b58407", loglineWarningBg: "rgba(96,55,0,0.15)", loglineCommandText: "#368cf9", loglineSectionText: "#26a148", ansi: { black: "#0E1116", blackBright: "#20252C", white: "#CED5DC", whiteBright: "#CED5DC", gray: "#88929D", red: "#ee5a5d", redBright: "#ff8e8a", green: "#26a148", greenBright: "#43c663", yellow: "#b58407", yellowBright: "#d5a824", blue: "#368cf9", blueBright: "#67b3fd", magenta: "#a371f7", magentaBright: "#c49bff", cyan: "#76e3ea", cyanBright: "#b3f0ff", }, }, project: { headerBg: "#0E1116", sidebarBg: "#ffffff", gradientIn: "#ffffff", gradientOut: "rgba(255,255,255,0)", }, mktg: { btn: { bg: "#1b1f23", }, }, avatar: { bg: "#ffffff", border: "rgba(1,4,9,0.8)", stackFade: "#ACB6C0", stackFadeMore: "#CED5DC", }, topicTag: { border: "#0349b4", }, counter: { border: "#20252C", }, selectMenu: { backdropBorder: "rgba(0,0,0,0)", tapHighlight: "rgba(172,182,192,0.5)", tapFocusBg: "#9cd7ff", }, header: { text: "rgba(255,255,255,0.7)", bg: "#0E1116", divider: "#ACB6C0", logo: "#ffffff", }, headerSearch: { bg: "#0E1116", border: "#4B535D", }, sidenav: { selectedBg: "#ffffff", }, menu: { bgActive: "rgba(0,0,0,0)", }, input: { disabledBg: "rgba(172,182,192,0.2)", }, timeline: { badgeBg: "#E7ECF0", }, ansi: { black: "#0E1116", blackBright: "#4B535D", white: "#66707B", whiteBright: "#88929D", gray: "#66707B", red: "#a0111f", redBright: "#86061d", green: "#024c1a", greenBright: "#055d20", yellow: "#3f2200", yellowBright: "#4e2c00", blue: "#0349b4", blueBright: "#1168e3", magenta: "#622cbc", magentaBright: "#844ae7", cyan: "#1b7c83", cyanBright: "#3192aa", }, btn: { text: "#0E1116", bg: "#E7ECF0", border: "rgba(1,4,9,0.8)", hoverBg: "#CED5DC", hoverBorder: "rgba(1,4,9,0.8)", activeBg: "#ACB6C0", activeBorder: "rgba(1,4,9,0.8)", selectedBg: "#ACB6C0", focusBg: "#CED5DC", focusBorder: "rgba(1,4,9,0.8)", counterBg: "rgba(1,4,9,0.08)", primary: { text: "#ffffff", bg: "#055d20", border: "#013d14", hoverBg: "#024c1a", hoverBorder: "#013d14", selectedBg: "hsla(139,95%,13%,1)", disabledText: "rgba(255,255,255,0.8)", disabledBg: "#94d3a2", disabledBorder: "rgba(1,4,9,0.8)", focusBg: "#013d14", focusBorder: "#013d14", icon: "rgba(255,255,255,0.8)", counterBg: "rgba(255,255,255,0.2)", }, outline: { text: "#023b95", hoverText: "#ffffff", hoverBg: "#0349b4", hoverBorder: "#022f7a", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#022f7a", selectedBorder: "#022f7a", disabledText: "rgba(3,73,180,0.5)", disabledBg: "#E7ECF0", disabledCounterBg: "rgba(3,73,180,0.05)", focusBorder: "#022f7a", counterBg: "rgba(3,73,180,0.1)", }, danger: { text: "#86061d", hoverText: "#ffffff", hoverBg: "#a0111f", hoverBorder: "#6e011a", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#6e011a", selectedBorder: "#6e011a", disabledText: "rgba(160,17,31,0.5)", disabledBg: "#E7ECF0", disabledCounterBg: "rgba(160,17,31,0.05)", focusBorder: "#6e011a", counterBg: "rgba(160,17,31,0.1)", icon: "#86061d", hoverIcon: "#ffffff", }, }, underlinenav: { icon: "#66707B", borderHover: "rgba(172,182,192,0.2)", }, actionListItem: { inlineDivider: "#88929D", default: { hoverBg: "#E7ECF0", hoverBorder: "#88929D", activeBg: "#CED5DC", activeBorder: "#20252C", selectedBg: "#CED5DC", }, danger: { hoverBg: "#a0111f", activeBg: "#6e011a", hoverText: "#ffffff", }, }, switchTrack: { bg: "#ffffff", border: "#20252C", checked: { bg: "#dff7ff", hoverBg: "#9cd7ff", activeBg: "#67b3fd", border: "#0349b4", }, }, switchKnob: { checked: { bg: "#0349b4", disabledBg: "#66707B", }, }, fg: { default: "#0E1116", muted: "#0E1116", subtle: "#66707B", onEmphasis: "#ffffff", }, canvas: { default: "#ffffff", overlay: "#ffffff", inset: "#ffffff", subtle: "#E7ECF0", }, border: { default: "#20252C", muted: "#88929D", subtle: "rgba(1,4,9,0.8)", }, neutral: { emphasisPlus: "#0E1116", emphasis: "#66707B", muted: "rgba(172,182,192,0.2)", subtle: "#E7ECF0", }, accent: { fg: "#0349b4", emphasis: "#0349b4", muted: "#368cf9", subtle: "#dff7ff", }, success: { fg: "#055d20", emphasis: "#055d20", muted: "#26a148", subtle: "#d2fedb", }, attention: { fg: "#744500", emphasis: "#744500", muted: "#b58407", subtle: "#fcf7be", }, severe: { fg: "#873800", emphasis: "#873800", muted: "#dc6d1a", subtle: "#fff2d5", }, danger: { fg: "#a0111f", emphasis: "#a0111f", muted: "#ee5a5d", subtle: "#fff0ee", }, open: { fg: "#055d20", emphasis: "#117f32", muted: "rgba(38,161,72,0.4)", subtle: "#d2fedb", }, closed: { fg: "#a0111f", emphasis: "#a0111f", muted: "rgba(238,90,93,0.4)", subtle: "#fff0ee", }, done: { fg: "#622cbc", emphasis: "#622cbc", muted: "#a371f7", subtle: "#faf0fe", }, sponsors: { fg: "#971368", emphasis: "#971368", muted: "#ed4baf", subtle: "#feeff7", }, primer: { fg: { disabled: "#88929D", }, canvas: { backdrop: "rgba(1,4,9,0.5)", sticky: "rgba(255,255,255,0.95)", }, border: { active: "#ef5b48", contrast: "rgba(1,4,9,0.1)", }, }, }, shadows: { mktg: { btn: { shadow: { outline: "rgb(0 0 0 / 15%) 0 0 0 1px inset", focus: "rgb(0 0 0 / 15%) 0 0 0 4px", hover: "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)", hoverMuted: "rgb(0 0 0 / 70%) 0 0 0 2px inset", }, }, }, avatar: { childShadow: "-2px -2px 0 rgba(255,255,255,0.8)", }, overlay: { shadow: "0 1px 3px rgba(1,4,9,0.12), 0 8px 24px rgba(52,59,67,0.12)", }, btn: { shadow: "0 1px 0 rgba(1,4,9,0.04)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.25)", focusShadow: "0 0 0 3px rgba(3,73,180,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(3,73,180,0.3)", primary: { shadow: "0 1px 0 rgba(1,4,9,0.1)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,35,11,0.2)", focusShadow: "0 0 0 3px rgba(1,61,20,0.4)", }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(2,26,74,0.2)", focusShadow: "0 0 0 3px rgba(2,59,149,0.4)", }, danger: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(67,0,17,0.2)", focusShadow: "0 0 0 3px rgba(134,6,29,0.4)", }, }, shadow: { small: "0 1px 0 rgba(1,4,9,0.04)", medium: "0 3px 6px rgba(136,146,157,0.15)", large: "0 8px 24px rgba(136,146,157,0.2)", extraLarge: "0 12px 28px rgba(136,146,157,0.3)", }, primer: { shadow: { highlight: "inset 0 1px 0 rgba(255,255,255,0.25)", inset: "inset 0 1px 0 rgba(206,213,220,0.2)", focus: "0 0 0 3px rgba(3,73,180,0.3)", }, }, }, }, light_colorblind: { colors: { canvasDefaultTransparent: "rgba(255,255,255,0)", pageHeaderBg: "#f6f8fa", marketingIcon: { primary: "#218bff", secondary: "#54aeff", }, diffBlob: { addition: { numText: "#24292f", fg: "#24292f", numBg: "rgba(84,174,255,0.4)", lineBg: "rgba(221,244,255,0.5)", wordBg: "rgba(84,174,255,0.4)", }, deletion: { numText: "#24292f", fg: "#24292f", numBg: "rgba(247,153,57,0.4)", lineBg: "rgba(255,245,232,0.5)", wordBg: "rgba(255,188,109,0.5)", }, hunk: { numBg: "rgba(84,174,255,0.4)", }, expander: { icon: "#57606a", }, }, diffstat: { deletionBorder: "rgba(27,31,36,0.15)", additionBorder: "rgba(27,31,36,0.15)", additionBg: "#218bff", }, searchKeyword: { hl: "#fff8c5", }, prettylights: { syntax: { comment: "#6e7781", constant: "#0550ae", entity: "#8250df", storageModifierImport: "#24292f", entityTag: "#0550ae", keyword: "#b35900", string: "#0a3069", variable: "#8a4600", brackethighlighterUnmatched: "#6f3800", invalidIllegalText: "#f6f8fa", invalidIllegalBg: "#6f3800", carriageReturnText: "#f6f8fa", carriageReturnBg: "#b35900", stringRegexp: "#0550ae", markupList: "#3b2300", markupHeading: "#0550ae", markupItalic: "#24292f", markupBold: "#24292f", markupDeletedText: "#6f3800", markupDeletedBg: "#fff5e8", markupInsertedText: "#0550ae", markupInsertedBg: "#ddf4ff", markupChangedText: "#8a4600", markupChangedBg: "#ffddb0", markupIgnoredText: "#eaeef2", markupIgnoredBg: "#0550ae", metaDiffRange: "#8250df", brackethighlighterAngle: "#57606a", sublimelinterGutterMark: "#8c959f", constantOtherReferenceLink: "#0a3069", }, }, codemirror: { text: "#24292f", bg: "#ffffff", guttersBg: "#ffffff", guttermarkerText: "#ffffff", guttermarkerSubtleText: "#6e7781", linenumberText: "#57606a", cursor: "#24292f", selectionBg: "rgba(84,174,255,0.4)", activelineBg: "rgba(234,238,242,0.5)", matchingbracketText: "#24292f", linesBg: "#ffffff", syntax: { comment: "#24292f", constant: "#0550ae", entity: "#8250df", keyword: "#b35900", storage: "#b35900", string: "#0a3069", support: "#0550ae", variable: "#8a4600", }, }, checks: { bg: "#24292f", textPrimary: "#f6f8fa", textSecondary: "#8c959f", textLink: "#54aeff", btnIcon: "#afb8c1", btnHoverIcon: "#f6f8fa", btnHoverBg: "rgba(255,255,255,0.125)", inputText: "#eaeef2", inputPlaceholderText: "#8c959f", inputFocusText: "#8c959f", inputBg: "#32383f", donutError: "#dd7815", donutPending: "#bf8700", donutSuccess: "#218bff", donutNeutral: "#afb8c1", dropdownText: "#afb8c1", dropdownBg: "#32383f", dropdownBorder: "#424a53", dropdownShadow: "rgba(27,31,36,0.3)", dropdownHoverText: "#f6f8fa", dropdownHoverBg: "#424a53", dropdownBtnHoverText: "#f6f8fa", dropdownBtnHoverBg: "#32383f", scrollbarThumbBg: "#57606a", headerLabelText: "#d0d7de", headerLabelOpenText: "#f6f8fa", headerBorder: "#32383f", headerIcon: "#8c959f", lineText: "#d0d7de", lineNumText: "rgba(140,149,159,0.75)", lineTimestampText: "#8c959f", lineHoverBg: "#32383f", lineSelectedBg: "rgba(33,139,255,0.15)", lineSelectedNumText: "#54aeff", lineDtFmText: "#24292f", lineDtFmBg: "#9a6700", gateBg: "rgba(125,78,0,0.15)", gateText: "#d0d7de", gateWaitingText: "#d4a72c", stepHeaderOpenBg: "#32383f", stepErrorText: "#f79939", stepWarningText: "#d4a72c", loglineText: "#8c959f", loglineNumText: "rgba(140,149,159,0.75)", loglineDebugText: "#c297ff", loglineErrorText: "#d0d7de", loglineErrorNumText: "#f79939", loglineErrorBg: "rgba(138,70,0,0.15)", loglineWarningText: "#d0d7de", loglineWarningNumText: "#d4a72c", loglineWarningBg: "rgba(125,78,0,0.15)", loglineCommandText: "#54aeff", loglineSectionText: "#54aeff", ansi: { black: "#24292f", blackBright: "#32383f", white: "#d0d7de", whiteBright: "#d0d7de", gray: "#8c959f", red: "#f79939", redBright: "#ffbc6d", green: "#54aeff", greenBright: "#80ccff", yellow: "#d4a72c", yellowBright: "#eac54f", blue: "#54aeff", blueBright: "#80ccff", magenta: "#c297ff", magentaBright: "#d8b9ff", cyan: "#76e3ea", cyanBright: "#b3f0ff", }, }, project: { headerBg: "#24292f", sidebarBg: "#ffffff", gradientIn: "#ffffff", gradientOut: "rgba(255,255,255,0)", }, mktg: { btn: { bg: "#1b1f23", }, }, avatar: { bg: "#ffffff", border: "rgba(27,31,36,0.15)", stackFade: "#afb8c1", stackFadeMore: "#d0d7de", }, topicTag: { border: "rgba(0,0,0,0)", }, counter: { border: "rgba(0,0,0,0)", }, selectMenu: { backdropBorder: "rgba(0,0,0,0)", tapHighlight: "rgba(175,184,193,0.5)", tapFocusBg: "#b6e3ff", }, header: { text: "rgba(255,255,255,0.7)", bg: "#24292f", divider: "#57606a", logo: "#ffffff", }, headerSearch: { bg: "#24292f", border: "#57606a", }, sidenav: { selectedBg: "#ffffff", }, menu: { bgActive: "rgba(0,0,0,0)", }, input: { disabledBg: "rgba(175,184,193,0.2)", }, timeline: { badgeBg: "#eaeef2", }, ansi: { black: "#24292f", blackBright: "#57606a", white: "#6e7781", whiteBright: "#8c959f", gray: "#6e7781", red: "#b35900", redBright: "#8a4600", green: "#0550ae", greenBright: "#0969da", yellow: "#4d2d00", yellowBright: "#633c01", blue: "#0969da", blueBright: "#218bff", magenta: "#8250df", magentaBright: "#a475f9", cyan: "#1b7c83", cyanBright: "#3192aa", }, btn: { text: "#24292f", bg: "#f6f8fa", border: "rgba(27,31,36,0.15)", hoverBg: "#f3f4f6", hoverBorder: "rgba(27,31,36,0.15)", activeBg: "hsla(220,14%,93%,1)", activeBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(220,14%,94%,1)", focusBg: "#f6f8fa", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(27,31,36,0.08)", primary: { text: "#ffffff", bg: "#218bff", border: "rgba(27,31,36,0.15)", hoverBg: "#0969da", hoverBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(212,92%,43%,1)", disabledText: "rgba(255,255,255,0.8)", disabledBg: "#80ccff", disabledBorder: "rgba(27,31,36,0.15)", focusBg: "#218bff", focusBorder: "rgba(27,31,36,0.15)", icon: "rgba(255,255,255,0.8)", counterBg: "rgba(255,255,255,0.2)", }, outline: { text: "#0969da", hoverText: "#ffffff", hoverBg: "#0969da", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(212,92%,42%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(9,105,218,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(9,105,218,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(9,105,218,0.1)", }, danger: { text: "#b35900", hoverText: "#ffffff", hoverBg: "#8a4600", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(30,100%,32%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(179,89,0,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(179,89,0,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(179,89,0,0.1)", icon: "#b35900", hoverIcon: "#ffffff", }, }, underlinenav: { icon: "#6e7781", borderHover: "rgba(175,184,193,0.2)", }, actionListItem: { inlineDivider: "rgba(208,215,222,0.48)", default: { hoverBg: "rgba(208,215,222,0.32)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(208,215,222,0.48)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(208,215,222,0.24)", }, danger: { hoverBg: "rgba(255,245,232,0.64)", activeBg: "#fff5e8", hoverText: "#b35900", }, }, switchTrack: { bg: "#eaeef2", border: "#afb8c1", checked: { bg: "#ddf4ff", hoverBg: "#b6e3ff", activeBg: "#80ccff", border: "#54aeff", }, }, switchKnob: { checked: { bg: "#0969da", disabledBg: "#6e7781", }, }, fg: { default: "#24292f", muted: "#57606a", subtle: "#6e7781", onEmphasis: "#ffffff", }, canvas: { default: "#ffffff", overlay: "#ffffff", inset: "#f6f8fa", subtle: "#f6f8fa", }, border: { default: "#d0d7de", muted: "hsla(210,18%,87%,1)", subtle: "rgba(27,31,36,0.15)", }, neutral: { emphasisPlus: "#24292f", emphasis: "#6e7781", muted: "rgba(175,184,193,0.2)", subtle: "rgba(234,238,242,0.5)", }, accent: { fg: "#0969da", emphasis: "#0969da", muted: "rgba(84,174,255,0.4)", subtle: "#ddf4ff", }, success: { fg: "#0969da", emphasis: "#218bff", muted: "rgba(84,174,255,0.4)", subtle: "#ddf4ff", }, attention: { fg: "#9a6700", emphasis: "#bf8700", muted: "rgba(212,167,44,0.4)", subtle: "#fff8c5", }, severe: { fg: "#b35900", emphasis: "#b35900", muted: "rgba(247,153,57,0.4)", subtle: "#fff5e8", }, danger: { fg: "#b35900", emphasis: "#b35900", muted: "rgba(247,153,57,0.4)", subtle: "#fff5e8", }, open: { fg: "#b35900", emphasis: "#dd7815", muted: "rgba(247,153,57,0.4)", subtle: "#fff5e8", }, closed: { fg: "#6e7781", emphasis: "#6e7781", muted: "rgba(175,184,193,0.4)", subtle: "#f6f8fa", }, done: { fg: "#8250df", emphasis: "#8250df", muted: "rgba(194,151,255,0.4)", subtle: "#fbefff", }, sponsors: { fg: "#bf3989", emphasis: "#bf3989", muted: "rgba(255,128,200,0.4)", subtle: "#ffeff7", }, primer: { fg: { disabled: "#8c959f", }, canvas: { backdrop: "rgba(27,31,36,0.5)", sticky: "rgba(255,255,255,0.95)", }, border: { active: "#FD8C73", contrast: "rgba(27,31,36,0.1)", }, }, }, shadows: { mktg: { btn: { shadow: { outline: "rgb(0 0 0 / 15%) 0 0 0 1px inset", focus: "rgb(0 0 0 / 15%) 0 0 0 4px", hover: "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)", hoverMuted: "rgb(0 0 0 / 70%) 0 0 0 2px inset", }, }, }, avatar: { childShadow: "-2px -2px 0 rgba(255,255,255,0.8)", }, overlay: { shadow: "0 1px 3px rgba(27,31,36,0.12), 0 8px 24px rgba(66,74,83,0.12)", }, btn: { shadow: "0 1px 0 rgba(27,31,36,0.04)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.25)", focusShadow: "0 0 0 3px rgba(9,105,218,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(27,31,36,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(9,105,218,0.3)", primary: { shadow: "0 1px 0 rgba(27,31,36,0.1)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,33,85,0.2)", focusShadow: "0 0 0 3px rgba(33,139,255,0.4)", }, outline: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,33,85,0.2)", focusShadow: "0 0 0 3px rgba(5,80,174,0.4)", }, danger: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(65,32,0,0.2)", focusShadow: "0 0 0 3px rgba(138,70,0,0.4)", }, }, shadow: { small: "0 1px 0 rgba(27,31,36,0.04)", medium: "0 3px 6px rgba(140,149,159,0.15)", large: "0 8px 24px rgba(140,149,159,0.2)", extraLarge: "0 12px 28px rgba(140,149,159,0.3)", }, primer: { shadow: { highlight: "inset 0 1px 0 rgba(255,255,255,0.25)", inset: "inset 0 1px 0 rgba(208,215,222,0.2)", focus: "0 0 0 3px rgba(9,105,218,0.3)", }, }, }, }, dark: { colors: { canvasDefaultTransparent: "rgba(13,17,23,0)", pageHeaderBg: "#0d1117", marketingIcon: { primary: "#79c0ff", secondary: "#1f6feb", }, diffBlob: { addition: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(63,185,80,0.3)", lineBg: "rgba(46,160,67,0.15)", wordBg: "rgba(46,160,67,0.4)", }, deletion: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(248,81,73,0.3)", lineBg: "rgba(248,81,73,0.15)", wordBg: "rgba(248,81,73,0.4)", }, hunk: { numBg: "rgba(56,139,253,0.4)", }, expander: { icon: "#8b949e", }, }, diffstat: { deletionBorder: "rgba(240,246,252,0.1)", additionBorder: "rgba(240,246,252,0.1)", additionBg: "#3fb950", }, searchKeyword: { hl: "rgba(210,153,34,0.4)", }, prettylights: { syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", storageModifierImport: "#c9d1d9", entityTag: "#7ee787", keyword: "#ff7b72", string: "#a5d6ff", variable: "#ffa657", brackethighlighterUnmatched: "#f85149", invalidIllegalText: "#f0f6fc", invalidIllegalBg: "#8e1519", carriageReturnText: "#f0f6fc", carriageReturnBg: "#b62324", stringRegexp: "#7ee787", markupList: "#f2cc60", markupHeading: "#1f6feb", markupItalic: "#c9d1d9", markupBold: "#c9d1d9", markupDeletedText: "#ffdcd7", markupDeletedBg: "#67060c", markupInsertedText: "#aff5b4", markupInsertedBg: "#033a16", markupChangedText: "#ffdfb6", markupChangedBg: "#5a1e02", markupIgnoredText: "#c9d1d9", markupIgnoredBg: "#1158c7", metaDiffRange: "#d2a8ff", brackethighlighterAngle: "#8b949e", sublimelinterGutterMark: "#484f58", constantOtherReferenceLink: "#a5d6ff", }, }, codemirror: { text: "#c9d1d9", bg: "#0d1117", guttersBg: "#0d1117", guttermarkerText: "#0d1117", guttermarkerSubtleText: "#6e7681", linenumberText: "#8b949e", cursor: "#c9d1d9", selectionBg: "rgba(56,139,253,0.4)", activelineBg: "rgba(110,118,129,0.1)", matchingbracketText: "#c9d1d9", linesBg: "#0d1117", syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", keyword: "#ff7b72", storage: "#ff7b72", string: "#a5d6ff", support: "#79c0ff", variable: "#ffa657", }, }, checks: { bg: "#010409", textPrimary: "#c9d1d9", textSecondary: "#8b949e", textLink: "#58a6ff", btnIcon: "#8b949e", btnHoverIcon: "#c9d1d9", btnHoverBg: "rgba(110,118,129,0.1)", inputText: "#8b949e", inputPlaceholderText: "#6e7681", inputFocusText: "#c9d1d9", inputBg: "#161b22", donutError: "#f85149", donutPending: "#d29922", donutSuccess: "#2ea043", donutNeutral: "#8b949e", dropdownText: "#c9d1d9", dropdownBg: "#161b22", dropdownBorder: "#30363d", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#c9d1d9", dropdownHoverBg: "rgba(110,118,129,0.1)", dropdownBtnHoverText: "#c9d1d9", dropdownBtnHoverBg: "rgba(110,118,129,0.1)", scrollbarThumbBg: "rgba(110,118,129,0.4)", headerLabelText: "#8b949e", headerLabelOpenText: "#c9d1d9", headerBorder: "#21262d", headerIcon: "#8b949e", lineText: "#8b949e", lineNumText: "#6e7681", lineTimestampText: "#6e7681", lineHoverBg: "rgba(110,118,129,0.1)", lineSelectedBg: "rgba(56,139,253,0.15)", lineSelectedNumText: "#58a6ff", lineDtFmText: "#ffffff", lineDtFmBg: "#9e6a03", gateBg: "rgba(187,128,9,0.15)", gateText: "#8b949e", gateWaitingText: "#d29922", stepHeaderOpenBg: "#161b22", stepErrorText: "#f85149", stepWarningText: "#d29922", loglineText: "#8b949e", loglineNumText: "#6e7681", loglineDebugText: "#a371f7", loglineErrorText: "#8b949e", loglineErrorNumText: "#6e7681", loglineErrorBg: "rgba(248,81,73,0.15)", loglineWarningText: "#8b949e", loglineWarningNumText: "#d29922", loglineWarningBg: "rgba(187,128,9,0.15)", loglineCommandText: "#58a6ff", loglineSectionText: "#3fb950", ansi: { black: "#0d1117", blackBright: "#161b22", white: "#b1bac4", whiteBright: "#b1bac4", gray: "#6e7681", red: "#ff7b72", redBright: "#ffa198", green: "#3fb950", greenBright: "#56d364", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#76e3ea", cyanBright: "#b3f0ff", }, }, project: { headerBg: "#0d1117", sidebarBg: "#161b22", gradientIn: "#161b22", gradientOut: "rgba(22,27,34,0)", }, mktg: { btn: { bg: "#f6f8fa", }, }, avatar: { bg: "rgba(255,255,255,0.1)", border: "rgba(240,246,252,0.1)", stackFade: "#30363d", stackFadeMore: "#21262d", }, topicTag: { border: "rgba(0,0,0,0)", }, counter: { border: "rgba(0,0,0,0)", }, selectMenu: { backdropBorder: "#484f58", tapHighlight: "rgba(48,54,61,0.5)", tapFocusBg: "#0c2d6b", }, header: { text: "rgba(255,255,255,0.7)", bg: "#161b22", divider: "#8b949e", logo: "#f0f6fc", }, headerSearch: { bg: "#0d1117", border: "#30363d", }, sidenav: { selectedBg: "#21262d", }, menu: { bgActive: "#161b22", }, input: { disabledBg: "rgba(110,118,129,0)", }, timeline: { badgeBg: "#21262d", }, ansi: { black: "#484f58", blackBright: "#6e7681", white: "#b1bac4", whiteBright: "#ffffff", gray: "#6e7681", red: "#ff7b72", redBright: "#ffa198", green: "#3fb950", greenBright: "#56d364", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#39c5cf", cyanBright: "#56d4dd", }, btn: { text: "#c9d1d9", bg: "#21262d", border: "rgba(240,246,252,0.1)", hoverBg: "#30363d", hoverBorder: "#8b949e", activeBg: "hsla(212,12%,18%,1)", activeBorder: "#6e7681", selectedBg: "#161b22", focusBg: "#21262d", focusBorder: "#8b949e", counterBg: "#30363d", primary: { text: "#ffffff", bg: "#238636", border: "rgba(240,246,252,0.1)", hoverBg: "#2ea043", hoverBorder: "rgba(240,246,252,0.1)", selectedBg: "#238636", disabledText: "rgba(255,255,255,0.5)", disabledBg: "rgba(35,134,54,0.6)", disabledBorder: "rgba(240,246,252,0.1)", focusBg: "#238636", focusBorder: "rgba(240,246,252,0.1)", icon: "#ffffff", counterBg: "rgba(255,255,255,0.2)", }, outline: { text: "#58a6ff", hoverText: "#58a6ff", hoverBg: "#30363d", hoverBorder: "rgba(240,246,252,0.1)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#0d419d", selectedBorder: "rgba(240,246,252,0.1)", disabledText: "rgba(88,166,255,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(31,111,235,0.05)", focusBorder: "rgba(240,246,252,0.1)", counterBg: "rgba(31,111,235,0.1)", }, danger: { text: "#f85149", hoverText: "#ffffff", hoverBg: "#da3633", hoverBorder: "#f85149", hoverIcon: "#ffffff", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#b62324", selectedBorder: "#ff7b72", disabledText: "rgba(248,81,73,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(218,54,51,0.05)", focusBorder: "#f85149", counterBg: "rgba(218,54,51,0.1)", icon: "#f85149", }, }, underlinenav: { icon: "#6e7681", borderHover: "rgba(110,118,129,0.4)", }, actionListItem: { inlineDivider: "rgba(48,54,61,0.48)", default: { hoverBg: "rgba(177,186,196,0.12)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(177,186,196,0.2)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(177,186,196,0.08)", }, danger: { hoverBg: "rgba(248,81,73,0.16)", activeBg: "rgba(248,81,73,0.24)", hoverText: "#ff7b72", }, }, switchTrack: { bg: "#010409", border: "#6e7681", checked: { bg: "rgba(31,111,235,0.35)", hoverBg: "rgba(31,111,235,0.5)", activeBg: "rgba(31,111,235,0.65)", border: "#58a6ff", }, }, switchKnob: { checked: { bg: "#1f6feb", disabledBg: "#484f58", }, }, fg: { default: "#c9d1d9", muted: "#8b949e", subtle: "#6e7681", onEmphasis: "#ffffff", }, canvas: { default: "#0d1117", overlay: "#161b22", inset: "#010409", subtle: "#161b22", }, border: { default: "#30363d", muted: "#21262d", subtle: "rgba(240,246,252,0.1)", }, neutral: { emphasisPlus: "#6e7681", emphasis: "#6e7681", muted: "rgba(110,118,129,0.4)", subtle: "rgba(110,118,129,0.1)", }, accent: { fg: "#58a6ff", emphasis: "#1f6feb", muted: "rgba(56,139,253,0.4)", subtle: "rgba(56,139,253,0.15)", }, success: { fg: "#3fb950", emphasis: "#238636", muted: "rgba(46,160,67,0.4)", subtle: "rgba(46,160,67,0.15)", }, attention: { fg: "#d29922", emphasis: "#9e6a03", muted: "rgba(187,128,9,0.4)", subtle: "rgba(187,128,9,0.15)", }, severe: { fg: "#db6d28", emphasis: "#bd561d", muted: "rgba(219,109,40,0.4)", subtle: "rgba(219,109,40,0.15)", }, danger: { fg: "#f85149", emphasis: "#da3633", muted: "rgba(248,81,73,0.4)", subtle: "rgba(248,81,73,0.15)", }, open: { fg: "#3fb950", emphasis: "#238636", muted: "rgba(46,160,67,0.4)", subtle: "rgba(46,160,67,0.15)", }, closed: { fg: "#f85149", emphasis: "#da3633", muted: "rgba(248,81,73,0.4)", subtle: "rgba(248,81,73,0.15)", }, done: { fg: "#a371f7", emphasis: "#8957e5", muted: "rgba(163,113,247,0.4)", subtle: "rgba(163,113,247,0.15)", }, sponsors: { fg: "#db61a2", emphasis: "#bf4b8a", muted: "rgba(219,97,162,0.4)", subtle: "rgba(219,97,162,0.15)", }, primer: { fg: { disabled: "#484f58", }, canvas: { backdrop: "rgba(1,4,9,0.8)", sticky: "rgba(13,17,23,0.95)", }, border: { active: "#F78166", contrast: "rgba(255,255,255,0.2)", }, }, }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)", }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset", }, }, }, avatar: { childShadow: "-2px -2px 0 #0d1117", }, overlay: { shadow: "0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,0.85)", }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(139,148,158,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(31,111,235,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)", }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(17,88,199,0.4)", }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(248,81,73,0.4)", }, }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #010409", large: "0 8px 24px #010409", extraLarge: "0 12px 48px #010409", }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #0c2d6b", }, }, }, }, dark_dimmed: { colors: { canvasDefaultTransparent: "rgba(34,39,46,0)", pageHeaderBg: "#22272e", marketingIcon: { primary: "#6cb6ff", secondary: "#316dca", }, diffBlob: { addition: { numText: "#adbac7", fg: "#adbac7", numBg: "rgba(87,171,90,0.3)", lineBg: "rgba(70,149,74,0.15)", wordBg: "rgba(70,149,74,0.4)", }, deletion: { numText: "#adbac7", fg: "#adbac7", numBg: "rgba(229,83,75,0.3)", lineBg: "rgba(229,83,75,0.15)", wordBg: "rgba(229,83,75,0.4)", }, hunk: { numBg: "rgba(65,132,228,0.4)", }, expander: { icon: "#768390", }, }, diffstat: { deletionBorder: "rgba(205,217,229,0.1)", additionBorder: "rgba(205,217,229,0.1)", additionBg: "#57ab5a", }, searchKeyword: { hl: "rgba(198,144,38,0.4)", }, prettylights: { syntax: { comment: "#768390", constant: "#6cb6ff", entity: "#dcbdfb", storageModifierImport: "#adbac7", entityTag: "#8ddb8c", keyword: "#f47067", string: "#96d0ff", variable: "#f69d50", brackethighlighterUnmatched: "#e5534b", invalidIllegalText: "#cdd9e5", invalidIllegalBg: "#922323", carriageReturnText: "#cdd9e5", carriageReturnBg: "#ad2e2c", stringRegexp: "#8ddb8c", markupList: "#eac55f", markupHeading: "#316dca", markupItalic: "#adbac7", markupBold: "#adbac7", markupDeletedText: "#ffd8d3", markupDeletedBg: "#78191b", markupInsertedText: "#b4f1b4", markupInsertedBg: "#1b4721", markupChangedText: "#ffddb0", markupChangedBg: "#682d0f", markupIgnoredText: "#adbac7", markupIgnoredBg: "#255ab2", metaDiffRange: "#dcbdfb", brackethighlighterAngle: "#768390", sublimelinterGutterMark: "#545d68", constantOtherReferenceLink: "#96d0ff", }, }, codemirror: { text: "#adbac7", bg: "#22272e", guttersBg: "#22272e", guttermarkerText: "#22272e", guttermarkerSubtleText: "#636e7b", linenumberText: "#768390", cursor: "#adbac7", selectionBg: "rgba(65,132,228,0.4)", activelineBg: "rgba(99,110,123,0.1)", matchingbracketText: "#adbac7", linesBg: "#22272e", syntax: { comment: "#768390", constant: "#6cb6ff", entity: "#dcbdfb", keyword: "#f47067", storage: "#f47067", string: "#96d0ff", support: "#6cb6ff", variable: "#f69d50", }, }, checks: { bg: "#1c2128", textPrimary: "#adbac7", textSecondary: "#768390", textLink: "#539bf5", btnIcon: "#768390", btnHoverIcon: "#adbac7", btnHoverBg: "rgba(99,110,123,0.1)", inputText: "#768390", inputPlaceholderText: "#636e7b", inputFocusText: "#adbac7", inputBg: "#2d333b", donutError: "#e5534b", donutPending: "#c69026", donutSuccess: "#46954a", donutNeutral: "#768390", dropdownText: "#adbac7", dropdownBg: "#2d333b", dropdownBorder: "#444c56", dropdownShadow: "rgba(28,33,40,0.3)", dropdownHoverText: "#adbac7", dropdownHoverBg: "rgba(99,110,123,0.1)", dropdownBtnHoverText: "#adbac7", dropdownBtnHoverBg: "rgba(99,110,123,0.1)", scrollbarThumbBg: "rgba(99,110,123,0.4)", headerLabelText: "#768390", headerLabelOpenText: "#adbac7", headerBorder: "#373e47", headerIcon: "#768390", lineText: "#768390", lineNumText: "#636e7b", lineTimestampText: "#636e7b", lineHoverBg: "rgba(99,110,123,0.1)", lineSelectedBg: "rgba(65,132,228,0.15)", lineSelectedNumText: "#539bf5", lineDtFmText: "#cdd9e5", lineDtFmBg: "#966600", gateBg: "rgba(174,124,20,0.15)", gateText: "#768390", gateWaitingText: "#c69026", stepHeaderOpenBg: "#2d333b", stepErrorText: "#e5534b", stepWarningText: "#c69026", loglineText: "#768390", loglineNumText: "#636e7b", loglineDebugText: "#986ee2", loglineErrorText: "#768390", loglineErrorNumText: "#636e7b", loglineErrorBg: "rgba(229,83,75,0.15)", loglineWarningText: "#768390", loglineWarningNumText: "#c69026", loglineWarningBg: "rgba(174,124,20,0.15)", loglineCommandText: "#539bf5", loglineSectionText: "#57ab5a", ansi: { black: "#22272e", blackBright: "#2d333b", white: "#909dab", whiteBright: "#909dab", gray: "#636e7b", red: "#f47067", redBright: "#ff938a", green: "#57ab5a", greenBright: "#6bc46d", yellow: "#c69026", yellowBright: "#daaa3f", blue: "#539bf5", blueBright: "#6cb6ff", magenta: "#b083f0", magentaBright: "#dcbdfb", cyan: "#76e3ea", cyanBright: "#b3f0ff", }, }, project: { headerBg: "#22272e", sidebarBg: "#2d333b", gradientIn: "#2d333b", gradientOut: "rgba(45,51,59,0)", }, mktg: { btn: { bg: "#f6f8fa", }, }, avatar: { bg: "rgba(205,217,229,0.1)", border: "rgba(205,217,229,0.1)", stackFade: "#444c56", stackFadeMore: "#373e47", }, topicTag: { border: "rgba(0,0,0,0)", }, counter: { border: "rgba(0,0,0,0)", }, selectMenu: { backdropBorder: "#545d68", tapHighlight: "rgba(68,76,86,0.5)", tapFocusBg: "#143d79", }, header: { text: "rgba(205,217,229,0.7)", bg: "#2d333b", divider: "#768390", logo: "#cdd9e5", }, headerSearch: { bg: "#22272e", border: "#444c56", }, sidenav: { selectedBg: "#373e47", }, menu: { bgActive: "#2d333b", }, input: { disabledBg: "rgba(99,110,123,0)", }, timeline: { badgeBg: "#373e47", }, ansi: { black: "#545d68", blackBright: "#636e7b", white: "#909dab", whiteBright: "#cdd9e5", gray: "#636e7b", red: "#f47067", redBright: "#ff938a", green: "#57ab5a", greenBright: "#6bc46d", yellow: "#c69026", yellowBright: "#daaa3f", blue: "#539bf5", blueBright: "#6cb6ff", magenta: "#b083f0", magentaBright: "#dcbdfb", cyan: "#39c5cf", cyanBright: "#56d4dd", }, btn: { text: "#adbac7", bg: "#373e47", border: "rgba(205,217,229,0.1)", hoverBg: "#444c56", hoverBorder: "#768390", activeBg: "hsla(213,12%,27%,1)", activeBorder: "#636e7b", selectedBg: "#2d333b", focusBg: "#373e47", focusBorder: "#768390", counterBg: "#444c56", primary: { text: "#ffffff", bg: "#347d39", border: "rgba(205,217,229,0.1)", hoverBg: "#46954a", hoverBorder: "rgba(205,217,229,0.1)", selectedBg: "#347d39", disabledText: "rgba(205,217,229,0.5)", disabledBg: "rgba(52,125,57,0.6)", disabledBorder: "rgba(205,217,229,0.1)", focusBg: "#347d39", focusBorder: "rgba(205,217,229,0.1)", icon: "#cdd9e5", counterBg: "rgba(205,217,229,0.2)", }, outline: { text: "#539bf5", hoverText: "#539bf5", hoverBg: "#444c56", hoverBorder: "rgba(205,217,229,0.1)", hoverCounterBg: "rgba(205,217,229,0.2)", selectedText: "#cdd9e5", selectedBg: "#1b4b91", selectedBorder: "rgba(205,217,229,0.1)", disabledText: "rgba(83,155,245,0.5)", disabledBg: "#22272e", disabledCounterBg: "rgba(49,109,202,0.05)", focusBorder: "rgba(205,217,229,0.1)", counterBg: "rgba(49,109,202,0.1)", }, danger: { text: "#e5534b", hoverText: "#cdd9e5", hoverBg: "#c93c37", hoverBorder: "#e5534b", hoverIcon: "#cdd9e5", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#ad2e2c", selectedBorder: "#f47067", disabledText: "rgba(229,83,75,0.5)", disabledBg: "#22272e", disabledCounterBg: "rgba(201,60,55,0.05)", focusBorder: "#e5534b", counterBg: "rgba(201,60,55,0.1)", icon: "#e5534b", }, }, underlinenav: { icon: "#636e7b", borderHover: "rgba(99,110,123,0.4)", }, actionListItem: { inlineDivider: "rgba(68,76,86,0.48)", default: { hoverBg: "rgba(144,157,171,0.12)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(144,157,171,0.2)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(144,157,171,0.08)", }, danger: { hoverBg: "rgba(229,83,75,0.16)", activeBg: "rgba(229,83,75,0.24)", hoverText: "#f47067", }, }, switchTrack: { bg: "#1c2128", border: "#636e7b", checked: { bg: "rgba(49,109,202,0.35)", hoverBg: "rgba(49,109,202,0.5)", activeBg: "rgba(49,109,202,0.65)", border: "#539bf5", }, }, switchKnob: { checked: { bg: "#316dca", disabledBg: "#545d68", }, }, fg: { default: "#adbac7", muted: "#768390", subtle: "#636e7b", onEmphasis: "#cdd9e5", }, canvas: { default: "#22272e", overlay: "#2d333b", inset: "#1c2128", subtle: "#2d333b", }, border: { default: "#444c56", muted: "#373e47", subtle: "rgba(205,217,229,0.1)", }, neutral: { emphasisPlus: "#636e7b", emphasis: "#636e7b", muted: "rgba(99,110,123,0.4)", subtle: "rgba(99,110,123,0.1)", }, accent: { fg: "#539bf5", emphasis: "#316dca", muted: "rgba(65,132,228,0.4)", subtle: "rgba(65,132,228,0.15)", }, success: { fg: "#57ab5a", emphasis: "#347d39", muted: "rgba(70,149,74,0.4)", subtle: "rgba(70,149,74,0.15)", }, attention: { fg: "#c69026", emphasis: "#966600", muted: "rgba(174,124,20,0.4)", subtle: "rgba(174,124,20,0.15)", }, severe: { fg: "#cc6b2c", emphasis: "#ae5622", muted: "rgba(204,107,44,0.4)", subtle: "rgba(204,107,44,0.15)", }, danger: { fg: "#e5534b", emphasis: "#c93c37", muted: "rgba(229,83,75,0.4)", subtle: "rgba(229,83,75,0.15)", }, open: { fg: "#57ab5a", emphasis: "#347d39", muted: "rgba(70,149,74,0.4)", subtle: "rgba(70,149,74,0.15)", }, closed: { fg: "#e5534b", emphasis: "#c93c37", muted: "rgba(229,83,75,0.4)", subtle: "rgba(229,83,75,0.15)", }, done: { fg: "#986ee2", emphasis: "#8256d0", muted: "rgba(152,110,226,0.4)", subtle: "rgba(152,110,226,0.15)", }, sponsors: { fg: "#c96198", emphasis: "#ae4c82", muted: "rgba(201,97,152,0.4)", subtle: "rgba(201,97,152,0.15)", }, primer: { fg: { disabled: "#545d68", }, canvas: { backdrop: "rgba(28,33,40,0.8)", sticky: "rgba(34,39,46,0.95)", }, border: { active: "#EC775C", contrast: "rgba(205,217,229,0.2)", }, }, }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)", }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset", }, }, }, avatar: { childShadow: "-2px -2px 0 #22272e", }, overlay: { shadow: "0 0 0 1px #444c56, 0 16px 32px rgba(28,33,40,0.85)", }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(118,131,144,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(28,33,40,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(49,109,202,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)", }, outline: { hoverShadow: "0 1px 0 rgba(28,33,40,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(205,217,229,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(37,90,178,0.4)", }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(229,83,75,0.4)", }, }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #1c2128", large: "0 8px 24px #1c2128", extraLarge: "0 12px 48px #1c2128", }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #143d79", }, }, }, }, dark_high_contrast: { colors: { canvasDefaultTransparent: "rgba(10,12,16,0)", pageHeaderBg: "#0a0c10", marketingIcon: { primary: "#91cbff", secondary: "#409eff", }, diffBlob: { addition: { numText: "#f0f3f6", fg: "#0a0c10", numBg: "rgba(38,205,77,0.3)", lineBg: "rgba(9,180,58,0.15)", wordBg: "#09b43a", }, deletion: { numText: "#f0f3f6", fg: "#0a0c10", numBg: "rgba(255,106,105,0.3)", lineBg: "rgba(255,106,105,0.15)", wordBg: "#ff6a69", }, hunk: { numBg: "rgba(64,158,255,0.4)", }, expander: { icon: "#f0f3f6", }, }, diffstat: { deletionBorder: "#ffb1af", additionBorder: "#4ae168", additionBg: "#26cd4d", }, searchKeyword: { hl: "rgba(240,183,47,0.4)", }, prettylights: { syntax: { comment: "#bdc4cc", constant: "#91cbff", entity: "#dbb7ff", storageModifierImport: "#f0f3f6", entityTag: "#72f088", keyword: "#ff9492", string: "#addcff", variable: "#ffb757", brackethighlighterUnmatched: "#ff6a69", invalidIllegalText: "#ffffff", invalidIllegalBg: "#e82a2f", carriageReturnText: "#ffffff", carriageReturnBg: "#ff4445", stringRegexp: "#72f088", markupList: "#fbd669", markupHeading: "#409eff", markupItalic: "#f0f3f6", markupBold: "#f0f3f6", markupDeletedText: "#ffdedb", markupDeletedBg: "#cc1421", markupInsertedText: "#acf7b6", markupInsertedBg: "#007728", markupChangedText: "#ffe1b4", markupChangedBg: "#a74c00", markupIgnoredText: "#f0f3f6", markupIgnoredBg: "#318bf8", metaDiffRange: "#dbb7ff", brackethighlighterAngle: "#bdc4cc", sublimelinterGutterMark: "#7a828e", constantOtherReferenceLink: "#addcff", }, }, codemirror: { text: "#f0f3f6", bg: "#0a0c10", guttersBg: "#0a0c10", guttermarkerText: "#0a0c10", guttermarkerSubtleText: "#9ea7b3", linenumberText: "#f0f3f6", cursor: "#f0f3f6", selectionBg: "rgba(64,158,255,0.4)", activelineBg: "rgba(158,167,179,0.1)", matchingbracketText: "#f0f3f6", linesBg: "#0a0c10", syntax: { comment: "#bdc4cc", constant: "#91cbff", entity: "#dbb7ff", keyword: "#ff9492", storage: "#ff9492", string: "#addcff", support: "#91cbff", variable: "#ffb757", }, }, checks: { bg: "#010409", textPrimary: "#f0f3f6", textSecondary: "#f0f3f6", textLink: "#71b7ff", btnIcon: "#f0f3f6", btnHoverIcon: "#f0f3f6", btnHoverBg: "rgba(158,167,179,0.1)", inputText: "#f0f3f6", inputPlaceholderText: "#9ea7b3", inputFocusText: "#f0f3f6", inputBg: "#272b33", donutError: "#ff6a69", donutPending: "#f0b72f", donutSuccess: "#09b43a", donutNeutral: "#bdc4cc", dropdownText: "#f0f3f6", dropdownBg: "#272b33", dropdownBorder: "#7a828e", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#f0f3f6", dropdownHoverBg: "rgba(158,167,179,0.1)", dropdownBtnHoverText: "#f0f3f6", dropdownBtnHoverBg: "rgba(158,167,179,0.1)", scrollbarThumbBg: "rgba(158,167,179,0.4)", headerLabelText: "#f0f3f6", headerLabelOpenText: "#f0f3f6", headerBorder: "#7a828e", headerIcon: "#f0f3f6", lineText: "#f0f3f6", lineNumText: "#9ea7b3", lineTimestampText: "#9ea7b3", lineHoverBg: "rgba(158,167,179,0.1)", lineSelectedBg: "rgba(64,158,255,0.15)", lineSelectedNumText: "#71b7ff", lineDtFmText: "#0a0c10", lineDtFmBg: "#e09b13", gateBg: "rgba(224,155,19,0.15)", gateText: "#f0f3f6", gateWaitingText: "#f0b72f", stepHeaderOpenBg: "#272b33", stepErrorText: "#ff6a69", stepWarningText: "#f0b72f", loglineText: "#f0f3f6", loglineNumText: "#9ea7b3", loglineDebugText: "#b780ff", loglineErrorText: "#f0f3f6", loglineErrorNumText: "#9ea7b3", loglineErrorBg: "rgba(255,106,105,0.15)", loglineWarningText: "#f0f3f6", loglineWarningNumText: "#f0b72f", loglineWarningBg: "rgba(224,155,19,0.15)", loglineCommandText: "#71b7ff", loglineSectionText: "#26cd4d", ansi: { black: "#0a0c10", blackBright: "#272b33", white: "#d9dee3", whiteBright: "#d9dee3", gray: "#9ea7b3", red: "#ff9492", redBright: "#ffb1af", green: "#26cd4d", greenBright: "#4ae168", yellow: "#f0b72f", yellowBright: "#f7c843", blue: "#71b7ff", blueBright: "#91cbff", magenta: "#cb9eff", magentaBright: "#dbb7ff", cyan: "#76e3ea", cyanBright: "#b3f0ff", }, }, project: { headerBg: "#0a0c10", sidebarBg: "#272b33", gradientIn: "#272b33", gradientOut: "rgba(39,43,51,0)", }, mktg: { btn: { bg: "#f6f8fa", }, }, avatar: { bg: "rgba(255,255,255,0.1)", border: "rgba(255,255,255,0.9)", stackFade: "#525964", stackFadeMore: "#272b33", }, topicTag: { border: "#409eff", }, counter: { border: "rgba(0,0,0,0)", }, selectMenu: { backdropBorder: "#7a828e", tapHighlight: "rgba(82,89,100,0.5)", tapFocusBg: "#1e60d5", }, header: { text: "rgba(255,255,255,0.7)", bg: "#272b33", divider: "#bdc4cc", logo: "#ffffff", }, headerSearch: { bg: "#0a0c10", border: "#525964", }, sidenav: { selectedBg: "#272b33", }, menu: { bgActive: "#272b33", }, input: { disabledBg: "rgba(158,167,179,0)", }, timeline: { badgeBg: "#272b33", }, ansi: { black: "#7a828e", blackBright: "#9ea7b3", white: "#d9dee3", whiteBright: "#ffffff", gray: "#9ea7b3", red: "#ff9492", redBright: "#ffb1af", green: "#26cd4d", greenBright: "#4ae168", yellow: "#f0b72f", yellowBright: "#f7c843", blue: "#71b7ff", blueBright: "#91cbff", magenta: "#cb9eff", magentaBright: "#dbb7ff", cyan: "#39c5cf", cyanBright: "#56d4dd", }, btn: { text: "#f0f3f6", bg: "#272b33", border: "#7a828e", hoverBg: "#525964", hoverBorder: "#bdc4cc", activeBg: "hsla(217,10%,33%,1)", activeBorder: "#9ea7b3", selectedBg: "rgba(82,89,100,0.9)", focusBg: "#272b33", focusBorder: "#bdc4cc", counterBg: "#525964", primary: { text: "#0a0c10", bg: "#09b43a", border: "#4ae168", hoverBg: "#26cd4d", hoverBorder: "#4ae168", selectedBg: "#09b43a", disabledText: "rgba(10,12,16,0.5)", disabledBg: "rgba(9,180,58,0.6)", disabledBorder: "rgba(74,225,104,0.4)", focusBg: "#09b43a", focusBorder: "#7a828e", icon: "#0a0c10", counterBg: "rgba(1,4,9,0.15)", }, outline: { text: "#71b7ff", hoverText: "#71b7ff", hoverBg: "#525964", hoverBorder: "#7a828e", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#2672f3", selectedBorder: "#7a828e", disabledText: "rgba(113,183,255,0.5)", disabledBg: "#0a0c10", disabledCounterBg: "rgba(64,158,255,0.05)", focusBorder: "#7a828e", counterBg: "rgba(64,158,255,0.1)", }, danger: { text: "#ff6a69", hoverText: "#0a0c10", hoverBg: "#ff6a69", hoverBorder: "#ff6a69", hoverIcon: "#0a0c10", hoverCounterBg: "rgba(1,4,9,0.15)", selectedText: "#ffffff", selectedBg: "#ff4445", selectedBorder: "#ff9492", disabledText: "rgba(255,106,105,0.5)", disabledBg: "#0a0c10", disabledCounterBg: "rgba(255,106,105,0.05)", focusBorder: "#ff6a69", counterBg: "rgba(1,4,9,0.15)", icon: "#ff6a69", }, }, underlinenav: { icon: "#f0f3f6", borderHover: "#bdc4cc", }, actionListItem: { inlineDivider: "#7a828e", default: { hoverBg: "#272b33", hoverBorder: "#7a828e", activeBg: "#525964", activeBorder: "#9ea7b3", selectedBg: "#525964", }, danger: { hoverBg: "#ff6a69", activeBg: "#ff4445", hoverText: "#0a0c10", }, }, switchTrack: { bg: "#010409", border: "#7a828e", checked: { bg: "rgba(64,158,255,0.35)", hoverBg: "rgba(64,158,255,0.5)", activeBg: "rgba(64,158,255,0.65)", border: "#409eff", }, }, switchKnob: { checked: { bg: "#409eff", disabledBg: "#7a828e", }, }, fg: { default: "#f0f3f6", muted: "#f0f3f6", subtle: "#9ea7b3", onEmphasis: "#0a0c10", }, canvas: { default: "#0a0c10", overlay: "#272b33", inset: "#010409", subtle: "#272b33", }, border: { default: "#7a828e", muted: "#7a828e", subtle: "#7a828e", }, neutral: { emphasisPlus: "#ffffff", emphasis: "#9ea7b3", muted: "rgba(158,167,179,0.4)", subtle: "rgba(158,167,179,0.1)", }, accent: { fg: "#71b7ff", emphasis: "#409eff", muted: "#409eff", subtle: "rgba(64,158,255,0.15)", }, success: { fg: "#26cd4d", emphasis: "#09b43a", muted: "#09b43a", subtle: "rgba(9,180,58,0.15)", }, attention: { fg: "#f0b72f", emphasis: "#e09b13", muted: "#e09b13", subtle: "rgba(224,155,19,0.15)", }, severe: { fg: "#e7811d", emphasis: "#e7811d", muted: "#e7811d", subtle: "rgba(231,129,29,0.15)", }, danger: { fg: "#ff6a69", emphasis: "#ff6a69", muted: "#ff6a69", subtle: "rgba(255,106,105,0.15)", }, open: { fg: "#26cd4d", emphasis: "#09b43a", muted: "rgba(9,180,58,0.4)", subtle: "rgba(9,180,58,0.15)", }, closed: { fg: "#ff6a69", emphasis: "#ff6a69", muted: "rgba(255,106,105,0.4)", subtle: "rgba(255,106,105,0.15)", }, done: { fg: "#b780ff", emphasis: "#b87fff", muted: "#b780ff", subtle: "rgba(183,128,255,0.15)", }, sponsors: { fg: "#ef6eb1", emphasis: "#ef6eb1", muted: "#ef6eb1", subtle: "rgba(239,110,177,0.15)", }, primer: { fg: { disabled: "#7a828e", }, canvas: { backdrop: "rgba(1,4,9,0.8)", sticky: "rgba(10,12,16,0.95)", }, border: { active: "#FF967D", contrast: "rgba(255,255,255,0.2)", }, }, }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)", }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset", }, }, }, avatar: { childShadow: "-2px -2px 0 #0a0c10", }, overlay: { shadow: "0 0 0 1px #525964, 0 16px 32px rgba(1,4,9,0.85)", }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(189,196,204,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(64,158,255,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)", }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(49,139,248,0.4)", }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(255,106,105,0.4)", }, }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #010409", large: "0 8px 24px #010409", extraLarge: "0 12px 48px #010409", }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #1e60d5", }, }, }, }, dark_colorblind: { colors: { canvasDefaultTransparent: "rgba(13,17,23,0)", pageHeaderBg: "#0d1117", marketingIcon: { primary: "#79c0ff", secondary: "#1f6feb", }, diffBlob: { addition: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(88,166,255,0.3)", lineBg: "rgba(56,139,253,0.15)", wordBg: "rgba(56,139,253,0.4)", }, deletion: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(212,118,22,0.3)", lineBg: "rgba(212,118,22,0.15)", wordBg: "rgba(212,118,22,0.4)", }, hunk: { numBg: "rgba(56,139,253,0.4)", }, expander: { icon: "#8b949e", }, }, diffstat: { deletionBorder: "rgba(240,246,252,0.1)", additionBorder: "rgba(240,246,252,0.1)", additionBg: "#58a6ff", }, searchKeyword: { hl: "rgba(210,153,34,0.4)", }, prettylights: { syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", storageModifierImport: "#c9d1d9", entityTag: "#a5d6ff", keyword: "#ec8e2c", string: "#a5d6ff", variable: "#fdac54", brackethighlighterUnmatched: "#d47616", invalidIllegalText: "#f0f6fc", invalidIllegalBg: "#6c3906", carriageReturnText: "#f0f6fc", carriageReturnBg: "#914d04", stringRegexp: "#a5d6ff", markupList: "#f2cc60", markupHeading: "#1f6feb", markupItalic: "#c9d1d9", markupBold: "#c9d1d9", markupDeletedText: "#ffe2bb", markupDeletedBg: "#4e2906", markupInsertedText: "#cae8ff", markupInsertedBg: "#0c2d6b", markupChangedText: "#ffe2bb", markupChangedBg: "#4e2906", markupIgnoredText: "#c9d1d9", markupIgnoredBg: "#1158c7", metaDiffRange: "#d2a8ff", brackethighlighterAngle: "#8b949e", sublimelinterGutterMark: "#484f58", constantOtherReferenceLink: "#a5d6ff", }, }, codemirror: { text: "#c9d1d9", bg: "#0d1117", guttersBg: "#0d1117", guttermarkerText: "#0d1117", guttermarkerSubtleText: "#6e7681", linenumberText: "#8b949e", cursor: "#c9d1d9", selectionBg: "rgba(56,139,253,0.4)", activelineBg: "rgba(110,118,129,0.1)", matchingbracketText: "#c9d1d9", linesBg: "#0d1117", syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", keyword: "#ec8e2c", storage: "#ec8e2c", string: "#a5d6ff", support: "#79c0ff", variable: "#fdac54", }, }, checks: { bg: "#010409", textPrimary: "#c9d1d9", textSecondary: "#8b949e", textLink: "#58a6ff", btnIcon: "#8b949e", btnHoverIcon: "#c9d1d9", btnHoverBg: "rgba(110,118,129,0.1)", inputText: "#8b949e", inputPlaceholderText: "#6e7681", inputFocusText: "#c9d1d9", inputBg: "#161b22", donutError: "#d47616", donutPending: "#d29922", donutSuccess: "#388bfd", donutNeutral: "#8b949e", dropdownText: "#c9d1d9", dropdownBg: "#161b22", dropdownBorder: "#30363d", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#c9d1d9", dropdownHoverBg: "rgba(110,118,129,0.1)", dropdownBtnHoverText: "#c9d1d9", dropdownBtnHoverBg: "rgba(110,118,129,0.1)", scrollbarThumbBg: "rgba(110,118,129,0.4)", headerLabelText: "#8b949e", headerLabelOpenText: "#c9d1d9", headerBorder: "#21262d", headerIcon: "#8b949e", lineText: "#8b949e", lineNumText: "#6e7681", lineTimestampText: "#6e7681", lineHoverBg: "rgba(110,118,129,0.1)", lineSelectedBg: "rgba(56,139,253,0.15)", lineSelectedNumText: "#58a6ff", lineDtFmText: "#ffffff", lineDtFmBg: "#9e6a03", gateBg: "rgba(187,128,9,0.15)", gateText: "#8b949e", gateWaitingText: "#d29922", stepHeaderOpenBg: "#161b22", stepErrorText: "#d47616", stepWarningText: "#d29922", loglineText: "#8b949e", loglineNumText: "#6e7681", loglineDebugText: "#a371f7", loglineErrorText: "#8b949e", loglineErrorNumText: "#6e7681", loglineErrorBg: "rgba(212,118,22,0.15)", loglineWarningText: "#8b949e", loglineWarningNumText: "#d29922", loglineWarningBg: "rgba(187,128,9,0.15)", loglineCommandText: "#58a6ff", loglineSectionText: "#58a6ff", ansi: { black: "#0d1117", blackBright: "#161b22", white: "#b1bac4", whiteBright: "#b1bac4", gray: "#6e7681", red: "#ec8e2c", redBright: "#fdac54", green: "#58a6ff", greenBright: "#79c0ff", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#76e3ea", cyanBright: "#b3f0ff", }, }, project: { headerBg: "#0d1117", sidebarBg: "#161b22", gradientIn: "#161b22", gradientOut: "rgba(22,27,34,0)", }, mktg: { btn: { bg: "#f6f8fa", }, }, avatar: { bg: "rgba(255,255,255,0.1)", border: "rgba(240,246,252,0.1)", stackFade: "#30363d", stackFadeMore: "#21262d", }, topicTag: { border: "rgba(0,0,0,0)", }, counter: { border: "rgba(0,0,0,0)", }, selectMenu: { backdropBorder: "#484f58", tapHighlight: "rgba(48,54,61,0.5)", tapFocusBg: "#0c2d6b", }, header: { text: "rgba(255,255,255,0.7)", bg: "#161b22", divider: "#8b949e", logo: "#f0f6fc", }, headerSearch: { bg: "#0d1117", border: "#30363d", }, sidenav: { selectedBg: "#21262d", }, menu: { bgActive: "#161b22", }, input: { disabledBg: "rgba(110,118,129,0)", }, timeline: { badgeBg: "#21262d", }, ansi: { black: "#484f58", blackBright: "#6e7681", white: "#b1bac4", whiteBright: "#ffffff", gray: "#6e7681", red: "#ec8e2c", redBright: "#fdac54", green: "#58a6ff", greenBright: "#79c0ff", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#39c5cf", cyanBright: "#56d4dd", }, btn: { text: "#c9d1d9", bg: "#21262d", border: "rgba(240,246,252,0.1)", hoverBg: "#30363d", hoverBorder: "#8b949e", activeBg: "hsla(212,12%,18%,1)", activeBorder: "#6e7681", selectedBg: "#161b22", focusBg: "#21262d", focusBorder: "#8b949e", counterBg: "#30363d", primary: { text: "#ffffff", bg: "#1f6feb", border: "rgba(240,246,252,0.1)", hoverBg: "#388bfd", hoverBorder: "rgba(240,246,252,0.1)", selectedBg: "#1f6feb", disabledText: "rgba(255,255,255,0.5)", disabledBg: "rgba(31,111,235,0.6)", disabledBorder: "rgba(240,246,252,0.1)", focusBg: "#1f6feb", focusBorder: "rgba(240,246,252,0.1)", icon: "#ffffff", counterBg: "rgba(255,255,255,0.2)", }, outline: { text: "#58a6ff", hoverText: "#58a6ff", hoverBg: "#30363d", hoverBorder: "rgba(240,246,252,0.1)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#0d419d", selectedBorder: "rgba(240,246,252,0.1)", disabledText: "rgba(88,166,255,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(31,111,235,0.05)", focusBorder: "rgba(240,246,252,0.1)", counterBg: "rgba(31,111,235,0.1)", }, danger: { text: "#d47616", hoverText: "#ffffff", hoverBg: "#b76100", hoverBorder: "#d47616", hoverIcon: "#ffffff", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#914d04", selectedBorder: "#ec8e2c", disabledText: "rgba(212,118,22,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(183,97,0,0.05)", focusBorder: "#d47616", counterBg: "rgba(183,97,0,0.1)", icon: "#d47616", }, }, underlinenav: { icon: "#6e7681", borderHover: "rgba(110,118,129,0.4)", }, actionListItem: { inlineDivider: "rgba(48,54,61,0.48)", default: { hoverBg: "rgba(177,186,196,0.12)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(177,186,196,0.2)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(177,186,196,0.08)", }, danger: { hoverBg: "rgba(212,118,22,0.16)", activeBg: "rgba(212,118,22,0.24)", hoverText: "#ec8e2c", }, }, switchTrack: { bg: "#010409", border: "#6e7681", checked: { bg: "rgba(31,111,235,0.35)", hoverBg: "rgba(31,111,235,0.5)", activeBg: "rgba(31,111,235,0.65)", border: "#58a6ff", }, }, switchKnob: { checked: { bg: "#1f6feb", disabledBg: "#484f58", }, }, fg: { default: "#c9d1d9", muted: "#8b949e", subtle: "#6e7681", onEmphasis: "#ffffff", }, canvas: { default: "#0d1117", overlay: "#161b22", inset: "#010409", subtle: "#161b22", }, border: { default: "#30363d", muted: "#21262d", subtle: "rgba(240,246,252,0.1)", }, neutral: { emphasisPlus: "#6e7681", emphasis: "#6e7681", muted: "rgba(110,118,129,0.4)", subtle: "rgba(110,118,129,0.1)", }, accent: { fg: "#58a6ff", emphasis: "#1f6feb", muted: "rgba(56,139,253,0.4)", subtle: "rgba(56,139,253,0.15)", }, success: { fg: "#58a6ff", emphasis: "#1f6feb", muted: "rgba(56,139,253,0.4)", subtle: "rgba(56,139,253,0.15)", }, attention: { fg: "#d29922", emphasis: "#9e6a03", muted: "rgba(187,128,9,0.4)", subtle: "rgba(187,128,9,0.15)", }, severe: { fg: "#d47616", emphasis: "#b76100", muted: "rgba(212,118,22,0.4)", subtle: "rgba(212,118,22,0.15)", }, danger: { fg: "#d47616", emphasis: "#b76100", muted: "rgba(212,118,22,0.4)", subtle: "rgba(212,118,22,0.15)", }, open: { fg: "#ec8e2c", emphasis: "#b76100", muted: "rgba(212,118,22,0.4)", subtle: "rgba(212,118,22,0.15)", }, closed: { fg: "#8b949e", emphasis: "#6e7681", muted: "rgba(110,118,129,0.4)", subtle: "rgba(110,118,129,0.1)", }, done: { fg: "#a371f7", emphasis: "#8957e5", muted: "rgba(163,113,247,0.4)", subtle: "rgba(163,113,247,0.15)", }, sponsors: { fg: "#db61a2", emphasis: "#bf4b8a", muted: "rgba(219,97,162,0.4)", subtle: "rgba(219,97,162,0.15)", }, primer: { fg: { disabled: "#484f58", }, canvas: { backdrop: "rgba(1,4,9,0.8)", sticky: "rgba(13,17,23,0.95)", }, border: { active: "#F78166", contrast: "rgba(255,255,255,0.2)", }, }, }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)", }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset", }, }, }, avatar: { childShadow: "-2px -2px 0 #0d1117", }, overlay: { shadow: "0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,0.85)", }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(139,148,158,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(31,111,235,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)", }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(17,88,199,0.4)", }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(212,118,22,0.4)", }, }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #010409", large: "0 8px 24px #010409", extraLarge: "0 12px 48px #010409", }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #0c2d6b", }, }, }, }, }, }, }; /***/ }, /***/ 9996: /***/ function (module) { "use strict"; var isMergeableObject = function isMergeableObject(value) { return isNonNullObject(value) && !isSpecial(value); }; function isNonNullObject(value) { return !!value && typeof value === "object"; } function isSpecial(value) { var stringValue = Object.prototype.toString.call(value); return ( stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value) ); } // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 var canUseSymbol = typeof Symbol === "function" && Symbol.for; var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 0xeac7; function isReactElement(value) { return value.$$typeof === REACT_ELEMENT_TYPE; } function emptyTarget(val) { return Array.isArray(val) ? [] : {}; } function cloneUnlessOtherwiseSpecified(value, options) { return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value; } function defaultArrayMerge(target, source, options) { return target.concat(source).map(function (element) { return cloneUnlessOtherwiseSpecified(element, options); }); } function getMergeFunction(key, options) { if (!options.customMerge) { return deepmerge; } var customMerge = options.customMerge(key); return typeof customMerge === "function" ? customMerge : deepmerge; } function getEnumerableOwnPropertySymbols(target) { return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function ( symbol ) { return target.propertyIsEnumerable(symbol); }) : []; } function getKeys(target) { return Object.keys(target).concat( getEnumerableOwnPropertySymbols(target) ); } function propertyIsOnObject(object, property) { try { return property in object; } catch (_) { return false; } } // Protects from prototype poisoning and unexpected merging up the prototype chain. function propertyIsUnsafe(target, key) { return ( propertyIsOnObject(target, key) && // Properties are safe to merge if they don't exist in the target yet, !( Object.hasOwnProperty.call(target, key) && // unsafe if they exist up the prototype chain, Object.propertyIsEnumerable.call(target, key) ) ); // and also unsafe if they're nonenumerable. } function mergeObject(target, source, options) { var destination = {}; if (options.isMergeableObject(target)) { getKeys(target).forEach(function (key) { destination[key] = cloneUnlessOtherwiseSpecified( target[key], options ); }); } getKeys(source).forEach(function (key) { if (propertyIsUnsafe(target, key)) { return; } if ( propertyIsOnObject(target, key) && options.isMergeableObject(source[key]) ) { destination[key] = getMergeFunction(key, options)( target[key], source[key], options ); } else { destination[key] = cloneUnlessOtherwiseSpecified( source[key], options ); } }); return destination; } function deepmerge(target, source, options) { options = options || {}; options.arrayMerge = options.arrayMerge || defaultArrayMerge; options.isMergeableObject = options.isMergeableObject || isMergeableObject; // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge() // implementations can use it. The caller may not replace it. options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified; var sourceIsArray = Array.isArray(source); var targetIsArray = Array.isArray(target); var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; if (!sourceAndTargetTypesMatch) { return cloneUnlessOtherwiseSpecified(source, options); } else if (sourceIsArray) { return options.arrayMerge(target, source, options); } else { return mergeObject(target, source, options); } } deepmerge.all = function deepmergeAll(array, options) { if (!Array.isArray(array)) { throw new Error("first argument should be an array"); } return array.reduce(function (prev, next) { return deepmerge(prev, next, options); }, {}); }; var deepmerge_1 = deepmerge; module.exports = deepmerge_1; /***/ }, /***/ 5202: /***/ function () { (function (global, factory) { true ? factory() : 0; })(this, function () { "use strict"; /** * Applies the :focus-visible polyfill at the given scope. * A scope in this case is either the top-level Document or a Shadow Root. * * @param {(Document|ShadowRoot)} scope * @see https://github.com/WICG/focus-visible */ function applyFocusVisiblePolyfill(scope) { var hadKeyboardEvent = true; var hadFocusVisibleRecently = false; var hadFocusVisibleRecentlyTimeout = null; var inputTypesAllowlist = { text: true, search: true, url: true, tel: true, email: true, password: true, number: true, date: true, month: true, week: true, time: true, datetime: true, "datetime-local": true, }; /** * Helper function for legacy browsers and iframes which sometimes focus * elements like document, body, and non-interactive SVG. * @param {Element} el */ function isValidFocusTarget(el) { if ( el && el !== document && el.nodeName !== "HTML" && el.nodeName !== "BODY" && "classList" in el && "contains" in el.classList ) { return true; } return false; } /** * Computes whether the given element should automatically trigger the * `focus-visible` class being added, i.e. whether it should always match * `:focus-visible` when focused. * @param {Element} el * @return {boolean} */ function focusTriggersKeyboardModality(el) { var type = el.type; var tagName = el.tagName; if ( tagName === "INPUT" && inputTypesAllowlist[type] && !el.readOnly ) { return true; } if (tagName === "TEXTAREA" && !el.readOnly) { return true; } if (el.isContentEditable) { return true; } return false; } /** * Add the `focus-visible` class to the given element if it was not added by * the author. * @param {Element} el */ function addFocusVisibleClass(el) { if (el.classList.contains("focus-visible")) { return; } el.classList.add("focus-visible"); el.setAttribute("data-focus-visible-added", ""); } /** * Remove the `focus-visible` class from the given element if it was not * originally added by the author. * @param {Element} el */ function removeFocusVisibleClass(el) { if (!el.hasAttribute("data-focus-visible-added")) { return; } el.classList.remove("focus-visible"); el.removeAttribute("data-focus-visible-added"); } /** * If the most recent user interaction was via the keyboard; * and the key press did not include a meta, alt/option, or control key; * then the modality is keyboard. Otherwise, the modality is not keyboard. * Apply `focus-visible` to any current active element and keep track * of our keyboard modality state with `hadKeyboardEvent`. * @param {KeyboardEvent} e */ function onKeyDown(e) { if (e.metaKey || e.altKey || e.ctrlKey) { return; } if (isValidFocusTarget(scope.activeElement)) { addFocusVisibleClass(scope.activeElement); } hadKeyboardEvent = true; } /** * If at any point a user clicks with a pointing device, ensure that we change * the modality away from keyboard. * This avoids the situation where a user presses a key on an already focused * element, and then clicks on a different element, focusing it with a * pointing device, while we still think we're in keyboard modality. * @param {Event} e */ function onPointerDown(e) { hadKeyboardEvent = false; } /** * On `focus`, add the `focus-visible` class to the target if: * - the target received focus as a result of keyboard navigation, or * - the event target is an element that will likely require interaction * via the keyboard (e.g. a text box) * @param {Event} e */ function onFocus(e) { // Prevent IE from focusing the document or HTML element. if (!isValidFocusTarget(e.target)) { return; } if ( hadKeyboardEvent || focusTriggersKeyboardModality(e.target) ) { addFocusVisibleClass(e.target); } } /** * On `blur`, remove the `focus-visible` class from the target. * @param {Event} e */ function onBlur(e) { if (!isValidFocusTarget(e.target)) { return; } if ( e.target.classList.contains("focus-visible") || e.target.hasAttribute("data-focus-visible-added") ) { // To detect a tab/window switch, we look for a blur event followed // rapidly by a visibility change. // If we don't see a visibility change within 100ms, it's probably a // regular focus change. hadFocusVisibleRecently = true; window.clearTimeout(hadFocusVisibleRecentlyTimeout); hadFocusVisibleRecentlyTimeout = window.setTimeout( function () { hadFocusVisibleRecently = false; }, 100 ); removeFocusVisibleClass(e.target); } } /** * If the user changes tabs, keep track of whether or not the previously * focused element had .focus-visible. * @param {Event} e */ function onVisibilityChange(e) { if (document.visibilityState === "hidden") { // If the tab becomes active again, the browser will handle calling focus // on the element (Safari actually calls it twice). // If this tab change caused a blur on an element with focus-visible, // re-apply the class when the user switches back to the tab. if (hadFocusVisibleRecently) { hadKeyboardEvent = true; } addInitialPointerMoveListeners(); } } /** * Add a group of listeners to detect usage of any pointing devices. * These listeners will be added when the polyfill first loads, and anytime * the window is blurred, so that they are active when the window regains * focus. */ function addInitialPointerMoveListeners() { document.addEventListener( "mousemove", onInitialPointerMove ); document.addEventListener( "mousedown", onInitialPointerMove ); document.addEventListener( "mouseup", onInitialPointerMove ); document.addEventListener( "pointermove", onInitialPointerMove ); document.addEventListener( "pointerdown", onInitialPointerMove ); document.addEventListener( "pointerup", onInitialPointerMove ); document.addEventListener( "touchmove", onInitialPointerMove ); document.addEventListener( "touchstart", onInitialPointerMove ); document.addEventListener( "touchend", onInitialPointerMove ); } function removeInitialPointerMoveListeners() { document.removeEventListener( "mousemove", onInitialPointerMove ); document.removeEventListener( "mousedown", onInitialPointerMove ); document.removeEventListener( "mouseup", onInitialPointerMove ); document.removeEventListener( "pointermove", onInitialPointerMove ); document.removeEventListener( "pointerdown", onInitialPointerMove ); document.removeEventListener( "pointerup", onInitialPointerMove ); document.removeEventListener( "touchmove", onInitialPointerMove ); document.removeEventListener( "touchstart", onInitialPointerMove ); document.removeEventListener( "touchend", onInitialPointerMove ); } /** * When the polfyill first loads, assume the user is in keyboard modality. * If any event is received from a pointing device (e.g. mouse, pointer, * touch), turn off keyboard modality. * This accounts for situations where focus enters the page from the URL bar. * @param {Event} e */ function onInitialPointerMove(e) { // Work around a Safari quirk that fires a mousemove on <html> whenever the // window blurs, even if you're tabbing out of the page. ¯\_(ツ)_/¯ if ( e.target.nodeName && e.target.nodeName.toLowerCase() === "html" ) { return; } hadKeyboardEvent = false; removeInitialPointerMoveListeners(); } // For some kinds of state, we are interested in changes at the global scope // only. For example, global pointer input, global key presses and global // visibility change should affect the state at every scope: document.addEventListener("keydown", onKeyDown, true); document.addEventListener("mousedown", onPointerDown, true); document.addEventListener( "pointerdown", onPointerDown, true ); document.addEventListener( "touchstart", onPointerDown, true ); document.addEventListener( "visibilitychange", onVisibilityChange, true ); addInitialPointerMoveListeners(); // For focus and blur, we specifically care about state changes in the local // scope. This is because focus / blur events that originate from within a // shadow root are not re-dispatched from the host element if it was already // the active element in its own scope: scope.addEventListener("focus", onFocus, true); scope.addEventListener("blur", onBlur, true); // We detect that a node is a ShadowRoot by ensuring that it is a // DocumentFragment and also has a host property. This check covers native // implementation and polyfill implementation transparently. If we only cared // about the native implementation, we could just check if the scope was // an instance of a ShadowRoot. if ( scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host ) { // Since a ShadowRoot is a special kind of DocumentFragment, it does not // have a root element to add a class to. So, we add this attribute to the // host element instead: scope.host.setAttribute("data-js-focus-visible", ""); } else if (scope.nodeType === Node.DOCUMENT_NODE) { document.documentElement.classList.add( "js-focus-visible" ); document.documentElement.setAttribute( "data-js-focus-visible", "" ); } } // It is important to wrap all references to global window and document in // these checks to support server-side rendering use cases // @see https://github.com/WICG/focus-visible/issues/199 if ( typeof window !== "undefined" && typeof document !== "undefined" ) { // Make the polyfill helper globally available. This can be used as a signal // to interested libraries that wish to coordinate with the polyfill for e.g., // applying the polyfill to a shadow root: window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill; // Notify interested libraries of the polyfill's presence, in case the // polyfill was loaded lazily: var event; try { event = new CustomEvent("focus-visible-polyfill-ready"); } catch (error) { // IE11 does not support using CustomEvent as a constructor directly: event = document.createEvent("CustomEvent"); event.initCustomEvent( "focus-visible-polyfill-ready", false, false, {} ); } window.dispatchEvent(event); } if (typeof document !== "undefined") { // Apply the polyfill to the global document, so that no JavaScript // coordination is required to use the polyfill in the top-level document: applyFocusVisiblePolyfill(document); } }); /***/ }, /***/ 8679: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { "use strict"; var reactIs = __webpack_require__(1296); /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ var REACT_STATICS = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true, }; var KNOWN_STATICS = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true, }; var FORWARD_REF_STATICS = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true, }; var MEMO_STATICS = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true, }; var TYPE_STATICS = {}; TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; function getStatics(component) { // React v16.11 and below if (reactIs.isMemo(component)) { return MEMO_STATICS; } // React v16.12 and above return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS; } var defineProperty = Object.defineProperty; var getOwnPropertyNames = Object.getOwnPropertyNames; var getOwnPropertySymbols = Object.getOwnPropertySymbols; var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; var getPrototypeOf = Object.getPrototypeOf; var objectPrototype = Object.prototype; function hoistNonReactStatics( targetComponent, sourceComponent, blacklist ) { if (typeof sourceComponent !== "string") { // don't hoist over string (html) components if (objectPrototype) { var inheritedComponent = getPrototypeOf(sourceComponent); if ( inheritedComponent && inheritedComponent !== objectPrototype ) { hoistNonReactStatics( targetComponent, inheritedComponent, blacklist ); } } var keys = getOwnPropertyNames(sourceComponent); if (getOwnPropertySymbols) { keys = keys.concat( getOwnPropertySymbols(sourceComponent) ); } var targetStatics = getStatics(targetComponent); var sourceStatics = getStatics(sourceComponent); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; if ( !KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key]) ) { var descriptor = getOwnPropertyDescriptor( sourceComponent, key ); try { // Avoid failures from read-only properties defineProperty( targetComponent, key, descriptor ); } catch (e) {} } } } return targetComponent; } module.exports = hoistNonReactStatics; /***/ }, /***/ 6103: /***/ function (__unused_webpack_module, exports) { "use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119; function z(a) { if ("object" === typeof a && null !== a) { var u = a.$$typeof; switch (u) { case c: switch (((a = a.type), a)) { case l: case m: case e: case g: case f: case p: return a; default: switch (((a = a && a.$$typeof), a)) { case k: case n: case t: case r: case h: return a; default: return u; } } case d: return u; } } } function A(a) { return z(a) === m; } exports.AsyncMode = l; exports.ConcurrentMode = m; exports.ContextConsumer = k; exports.ContextProvider = h; exports.Element = c; exports.ForwardRef = n; exports.Fragment = e; exports.Lazy = t; exports.Memo = r; exports.Portal = d; exports.Profiler = g; exports.StrictMode = f; exports.Suspense = p; exports.isAsyncMode = function (a) { return A(a) || z(a) === l; }; exports.isConcurrentMode = A; exports.isContextConsumer = function (a) { return z(a) === k; }; exports.isContextProvider = function (a) { return z(a) === h; }; exports.isElement = function (a) { return "object" === typeof a && null !== a && a.$$typeof === c; }; exports.isForwardRef = function (a) { return z(a) === n; }; exports.isFragment = function (a) { return z(a) === e; }; exports.isLazy = function (a) { return z(a) === t; }; exports.isMemo = function (a) { return z(a) === r; }; exports.isPortal = function (a) { return z(a) === d; }; exports.isProfiler = function (a) { return z(a) === g; }; exports.isStrictMode = function (a) { return z(a) === f; }; exports.isSuspense = function (a) { return z(a) === p; }; exports.isValidElementType = function (a) { return ( "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || ("object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v)) ); }; exports.typeOf = z; /***/ }, /***/ 1296: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { "use strict"; if (true) { module.exports = __webpack_require__(6103); } else { } /***/ }, /***/ 6086: /***/ function (module) { "use strict"; var assign = Object.assign.bind(Object); module.exports = assign; module.exports["default"] = module.exports; //# sourceMappingURL=object-assign.js.map /***/ }, /***/ 3454: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { "use strict"; var ref, ref1; module.exports = ((ref = __webpack_require__.g.process) === null || ref === void 0 ? void 0 : ref.env) && typeof ((ref1 = __webpack_require__.g.process) === null || ref1 === void 0 ? void 0 : ref1.env) === "object" ? __webpack_require__.g.process : __webpack_require__(7663); //# sourceMappingURL=process.js.map /***/ }, /***/ 1118: /***/ function ( __unused_webpack_module, __unused_webpack_exports, __webpack_require__ ) { (window.__NEXT_P = window.__NEXT_P || []).push([ "/_app", function () { return __webpack_require__(2078); }, ]); if (false) { } /***/ }, /***/ 2078: /***/ function ( __unused_webpack_module, __webpack_exports__, __webpack_require__ ) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { default: function () { return /* binding */ _app; }, }); // NAMESPACE OBJECT: ./node_modules/styled-system/dist/index.esm.js var styled_system_dist_index_esm_namespaceObject = {}; __webpack_require__.r(styled_system_dist_index_esm_namespaceObject); __webpack_require__.d( styled_system_dist_index_esm_namespaceObject, { alignContent: function () { return alignContent; }, alignItems: function () { return alignItems; }, alignSelf: function () { return alignSelf; }, background: function () { return background; }, backgroundImage: function () { return backgroundImage; }, backgroundPosition: function () { return backgroundPosition; }, backgroundRepeat: function () { return backgroundRepeat; }, backgroundSize: function () { return backgroundSize; }, border: function () { return border; }, borderBottom: function () { return borderBottom; }, borderColor: function () { return borderColor; }, borderLeft: function () { return borderLeft; }, borderRadius: function () { return borderRadius; }, borderRight: function () { return borderRight; }, borderStyle: function () { return borderStyle; }, borderTop: function () { return borderTop; }, borderWidth: function () { return borderWidth; }, borders: function () { return border_dist_index_esm; }, bottom: function () { return bottom; }, boxShadow: function () { return shadow_dist_index_esm; }, buttonStyle: function () { return buttonStyle; }, color: function () { return color; }, colorStyle: function () { return colorStyle; }, compose: function () { return compose; }, createParser: function () { return createParser; }, createStyleFunction: function () { return createStyleFunction; }, display: function () { return display; }, flex: function () { return flex; }, flexBasis: function () { return flexBasis; }, flexDirection: function () { return flexDirection; }, flexGrow: function () { return flexGrow; }, flexShrink: function () { return flexShrink; }, flexWrap: function () { return flexWrap; }, flexbox: function () { return flexbox; }, fontFamily: function () { return fontFamily; }, fontSize: function () { return fontSize; }, fontStyle: function () { return fontStyle; }, fontWeight: function () { return fontWeight; }, get: function () { return get; }, grid: function () { return grid; }, gridArea: function () { return gridArea; }, gridAutoColumns: function () { return gridAutoColumns; }, gridAutoFlow: function () { return gridAutoFlow; }, gridAutoRows: function () { return gridAutoRows; }, gridColumn: function () { return gridColumn; }, gridColumnGap: function () { return gridColumnGap; }, gridGap: function () { return gridGap; }, gridRow: function () { return gridRow; }, gridRowGap: function () { return gridRowGap; }, gridTemplateAreas: function () { return gridTemplateAreas; }, gridTemplateColumns: function () { return gridTemplateColumns; }, gridTemplateRows: function () { return gridTemplateRows; }, height: function () { return height; }, justifyContent: function () { return justifyContent; }, justifyItems: function () { return justifyItems; }, justifySelf: function () { return justifySelf; }, layout: function () { return layout; }, left: function () { return left; }, letterSpacing: function () { return letterSpacing; }, lineHeight: function () { return lineHeight; }, margin: function () { return margin; }, maxHeight: function () { return maxHeight; }, maxWidth: function () { return maxWidth; }, minHeight: function () { return minHeight; }, minWidth: function () { return minWidth; }, opacity: function () { return opacity; }, order: function () { return order; }, overflow: function () { return overflow; }, overflowX: function () { return overflowX; }, overflowY: function () { return overflowY; }, padding: function () { return padding; }, position: function () { return position; }, right: function () { return right; }, shadow: function () { return shadow; }, size: function () { return size; }, space: function () { return space; }, style: function () { return style; }, system: function () { return system; }, textAlign: function () { return textAlign; }, textShadow: function () { return shadow_dist_index_esm; }, textStyle: function () { return textStyle; }, top: function () { return index_esm_top; }, typography: function () { return typography; }, variant: function () { return variant; }, verticalAlign: function () { return verticalAlign; }, width: function () { return width; }, zIndex: function () { return zIndex; }, } ); // EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js var jsx_runtime = __webpack_require__(5893); // EXTERNAL MODULE: ./node_modules/react-is/index.js var react_is = __webpack_require__(9864); // EXTERNAL MODULE: ./node_modules/react/index.js var react = __webpack_require__(7294); // EXTERNAL MODULE: ./node_modules/shallowequal/index.js var shallowequal = __webpack_require__(6774); var shallowequal_default = /*#__PURE__*/ __webpack_require__.n(shallowequal); // CONCATENATED MODULE: ./node_modules/@emotion/stylis/dist/stylis.browser.esm.js function stylis_min(W) { function M(d, c, e, h, a) { for ( var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = (k = q = 0), l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = "", p = "", F = "", G = "", C; l < B; ) { g = e.charCodeAt(l); l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), (n = v = m = 0), B++, J++); if (0 === b + n + v + m) { if ( l === J && (0 < r && (f = f.replace(N, "")), 0 < f.trim().length) ) { switch (g) { case 32: case 9: case 59: case 13: case 10: break; default: f += e.charAt(l); } g = 59; } switch (g) { case 123: f = f.trim(); q = f.charCodeAt(0); k = 1; for (t = ++l; l < B; ) { switch ((g = e.charCodeAt(l))) { case 123: k++; break; case 125: k--; break; case 47: switch ( (g = e.charCodeAt(l + 1)) ) { case 42: case 47: a: { for ( u = l + 1; u < J; ++u ) { switch ( e.charCodeAt( u ) ) { case 47: if ( 42 === g && 42 === e.charCodeAt( u - 1 ) && l + 2 !== u ) { l = u + 1; break a; } break; case 10: if ( 47 === g ) { l = u + 1; break a; } } } l = u; } } break; case 91: g++; case 40: g++; case 34: case 39: for ( ; l++ < J && e.charCodeAt(l) !== g; ) {} } if (0 === k) break; l++; } k = e.substring(t, l); 0 === q && (q = (f = f .replace(ca, "") .trim()).charCodeAt(0)); switch (q) { case 64: 0 < r && (f = f.replace(N, "")); g = f.charCodeAt(1); switch (g) { case 100: case 109: case 115: case 45: r = c; break; default: r = O; } k = M(c, r, k, g, a + 1); t = k.length; 0 < A && ((r = X(O, f, I)), (C = H( 3, k, r, c, D, z, t, g, a, h )), (f = r.join("")), void 0 !== C && 0 === (t = (k = C.trim()) .length) && ((g = 0), (k = ""))); if (0 < t) switch (g) { case 115: f = f.replace(da, ea); case 100: case 109: case 45: k = f + "{" + k + "}"; break; case 107: f = f.replace( fa, "$1 $2" ); k = f + "{" + k + "}"; k = 1 === w || (2 === w && L("@" + k, 3)) ? "@-webkit-" + k + "@" + k : "@" + k; break; default: (k = f + k), 112 === h && (k = ((p += k), "")); } else k = ""; break; default: k = M(c, X(c, f, I), k, h, a + 1); } F += k; k = I = r = u = q = 0; f = ""; g = e.charCodeAt(++l); break; case 125: case 59: f = (0 < r ? f.replace(N, "") : f).trim(); if (1 < (t = f.length)) switch ( (0 === u && ((q = f.charCodeAt(0)), 45 === q || (96 < q && 123 > q)) && (t = (f = f.replace(" ", ":")) .length), 0 < A && void 0 !== (C = H( 1, f, c, d, D, z, p.length, h, a, h )) && 0 === (t = (f = C.trim()) .length) && (f = "\x00\x00"), (q = f.charCodeAt(0)), (g = f.charCodeAt(1)), q) ) { case 0: break; case 64: if (105 === g || 99 === g) { G += f + e.charAt(l); break; } default: 58 !== f.charCodeAt(t - 1) && (p += P( f, q, g, f.charCodeAt(2) )); } I = r = u = q = 0; f = ""; g = e.charCodeAt(++l); } } switch (g) { case 13: case 10: 47 === b ? (b = 0) : 0 === 1 + q && 107 !== h && 0 < f.length && ((r = 1), (f += "\x00")); 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h); z = 1; D++; break; case 59: case 125: if (0 === b + n + v + m) { z++; break; } default: z++; y = e.charAt(l); switch (g) { case 9: case 32: if (0 === n + m + b) switch (x) { case 44: case 58: case 9: case 32: y = ""; break; default: 32 !== g && (y = " "); } break; case 0: y = "\\0"; break; case 12: y = "\\f"; break; case 11: y = "\\v"; break; case 38: 0 === n + b + m && ((r = I = 1), (y = "\f" + y)); break; case 108: if (0 === n + b + m + E && 0 < u) switch (l - u) { case 2: 112 === x && 58 === e.charCodeAt( l - 3 ) && (E = x); case 8: 111 === K && (E = K); } break; case 58: 0 === n + b + m && (u = l); break; case 44: 0 === b + v + n + m && ((r = 1), (y += "\r")); break; case 34: case 39: 0 === b && (n = n === g ? 0 : 0 === n ? g : n); break; case 91: 0 === n + b + v && m++; break; case 93: 0 === n + b + v && m--; break; case 41: 0 === n + b + m && v--; break; case 40: if (0 === n + b + m) { if (0 === q) switch (2 * x + 3 * K) { case 533: break; default: q = 1; } v++; } break; case 64: 0 === b + v + n + m + u + k && (k = 1); break; case 42: case 47: if (!(0 < n + m + v)) switch (b) { case 0: switch ( 2 * g + 3 * e.charCodeAt(l + 1) ) { case 235: b = 47; break; case 220: (t = l), (b = 42); } break; case 42: 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt( t + 2 ) && (p += e.substring( t, l + 1 )), (y = ""), (b = 0)); } } 0 === b && (f += y); } K = x; x = g; l++; } t = p.length; if (0 < t) { r = c; if ( 0 < A && ((C = H(2, p, r, d, D, z, t, h, a, h)), void 0 !== C && 0 === (p = C).length) ) return G + p + F; p = r.join(",") + "{" + p + "}"; if (0 !== w * E) { 2 !== w || L(p, 2) || (E = 0); switch (E) { case 111: p = p.replace(ha, ":-moz-$1") + p; break; case 112: p = p.replace(Q, "::-webkit-input-$1") + p.replace(Q, "::-moz-$1") + p.replace(Q, ":-ms-input-$1") + p; } E = 0; } } return G + p + F; } function X(d, c, e) { var h = c.trim().split(ia); c = h; var a = h.length, m = d.length; switch (m) { case 0: case 1: var b = 0; for (d = 0 === m ? "" : d[0] + " "; b < a; ++b) { c[b] = Z(d, c[b], e).trim(); } break; default: var v = (b = 0); for (c = []; b < a; ++b) { for (var n = 0; n < m; ++n) { c[v++] = Z(d[n] + " ", h[b], e).trim(); } } } return c; } function Z(d, c, e) { var h = c.charCodeAt(0); 33 > h && (h = (c = c.trim()).charCodeAt(0)); switch (h) { case 38: return c.replace(F, "$1" + d.trim()); case 58: return d.trim() + c.replace(F, "$1" + d.trim()); default: if (0 < 1 * e && 0 < c.indexOf("\f")) return c.replace( F, (58 === d.charCodeAt(0) ? "" : "$1") + d.trim() ); } return d + c; } function P(d, c, e, h) { var a = d + ";", m = 2 * c + 3 * e + 4 * h; if (944 === m) { d = a.indexOf(":", 9) + 1; var b = a.substring(d, a.length - 1).trim(); b = a.substring(0, d).trim() + b + ";"; return 1 === w || (2 === w && L(b, 1)) ? "-webkit-" + b + b : b; } if (0 === w || (2 === w && !L(a, 1))) return a; switch (m) { case 1015: return 97 === a.charCodeAt(10) ? "-webkit-" + a + a : a; case 951: return 116 === a.charCodeAt(3) ? "-webkit-" + a + a : a; case 963: return 110 === a.charCodeAt(5) ? "-webkit-" + a + a : a; case 1009: if (100 !== a.charCodeAt(4)) break; case 969: case 942: return "-webkit-" + a + a; case 978: return "-webkit-" + a + "-moz-" + a + a; case 1019: case 983: return ( "-webkit-" + a + "-moz-" + a + "-ms-" + a + a ); case 883: if (45 === a.charCodeAt(8)) return "-webkit-" + a + a; if (0 < a.indexOf("image-set(", 11)) return a.replace(ja, "$1-webkit-$2") + a; break; case 932: if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) { case 103: return ( "-webkit-box-" + a.replace("-grow", "") + "-webkit-" + a + "-ms-" + a.replace("grow", "positive") + a ); case 115: return ( "-webkit-" + a + "-ms-" + a.replace("shrink", "negative") + a ); case 98: return ( "-webkit-" + a + "-ms-" + a.replace( "basis", "preferred-size" ) + a ); } return "-webkit-" + a + "-ms-" + a + a; case 964: return "-webkit-" + a + "-ms-flex-" + a + a; case 1023: if (99 !== a.charCodeAt(8)) break; b = a .substring(a.indexOf(":", 15)) .replace("flex-", "") .replace("space-between", "justify"); return ( "-webkit-box-pack" + b + "-webkit-" + a + "-ms-flex-pack" + b + a ); case 1005: return ka.test(a) ? a.replace(aa, ":-webkit-") + a.replace(aa, ":-moz-") + a : a; case 1e3: b = a.substring(13).trim(); c = b.indexOf("-") + 1; switch (b.charCodeAt(0) + b.charCodeAt(c)) { case 226: b = a.replace(G, "tb"); break; case 232: b = a.replace(G, "tb-rl"); break; case 220: b = a.replace(G, "lr"); break; default: return a; } return "-webkit-" + a + "-ms-" + b + a; case 1017: if (-1 === a.indexOf("sticky", 9)) break; case 975: c = (a = d).length - 10; b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a) .substring(d.indexOf(":", 7) + 1) .trim(); switch ( (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) ) { case 203: if (111 > b.charCodeAt(8)) break; case 115: a = a.replace(b, "-webkit-" + b) + ";" + a; break; case 207: case 102: a = a.replace( b, "-webkit-" + (102 < m ? "inline-" : "") + "box" ) + ";" + a.replace(b, "-webkit-" + b) + ";" + a.replace(b, "-ms-" + b + "box") + ";" + a; } return a + ";"; case 938: if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) { case 105: return ( (b = a.replace("-items", "")), "-webkit-" + a + "-webkit-box-" + b + "-ms-flex-" + b + a ); case 115: return ( "-webkit-" + a + "-ms-flex-item-" + a.replace(ba, "") + a ); default: return ( "-webkit-" + a + "-ms-flex-line-pack" + a .replace("align-content", "") .replace(ba, "") + a ); } break; case 973: case 989: if ( 45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4) ) break; case 931: case 953: if (!0 === la.test(d)) return 115 === (b = d.substring( d.indexOf(":") + 1 )).charCodeAt(0) ? P( d.replace( "stretch", "fill-available" ), c, e, h ).replace(":fill-available", ":stretch") : a.replace(b, "-webkit-" + b) + a.replace( b, "-moz-" + b.replace("fill-", "") ) + a; break; case 962: if ( ((a = "-webkit-" + a + (102 === a.charCodeAt(5) ? "-ms-" + a : "") + a), 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf("transform", 10)) ) return ( a .substring(0, a.indexOf(";", 27) + 1) .replace(ma, "$1-webkit-$2") + a ); } return a; } function L(d, c) { var e = d.indexOf(1 === c ? ":" : "{"), h = d.substring(0, 3 !== c ? e : 10); e = d.substring(e + 1, d.length - 1); return R(2 !== c ? h : h.replace(na, "$1"), e, c); } function ea(d, c) { var e = P( c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2) ); return e !== c + ";" ? e.replace(oa, " or ($1)").substring(4) : "(" + c + ")"; } function H(d, c, e, h, a, m, b, v, n, q) { for (var g = 0, x = c, w; g < A; ++g) { switch ( (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) ) { case void 0: case !1: case !0: case null: break; default: x = w; } } if (x !== c) return x; } function T(d) { switch (d) { case void 0: case null: A = S.length = 0; break; default: if ("function" === typeof d) S[A++] = d; else if ("object" === typeof d) for (var c = 0, e = d.length; c < e; ++c) { T(d[c]); } else Y = !!d | 0; } return T; } function U(d) { d = d.prefix; void 0 !== d && ((R = null), d ? "function" !== typeof d ? (w = 1) : ((w = 2), (R = d)) : (w = 0)); return U; } function B(d, c) { var e = d; 33 > e.charCodeAt(0) && (e = e.trim()); V = e; e = [V]; if (0 < A) { var h = H(-1, c, e, e, D, z, 0, 0, 0, 0); void 0 !== h && "string" === typeof h && (c = h); } var a = M(O, e, c, 0, 0); 0 < A && ((h = H(-2, a, e, e, D, z, a.length, 0, 0, 0)), void 0 !== h && (a = h)); V = ""; E = 0; z = D = 1; return a; } var ca = /^\0+/g, N = /[\0\r\f]/g, aa = /: */g, ka = /zoo|gra/, ma = /([,: ])(transform)/g, ia = /,\r+?/g, F = /([\t\r\n ])*\f?&/g, fa = /@(k\w+)\s*(\S*)\s*/, Q = /::(place)/g, ha = /:(read-only)/g, G = /[svh]\w+-[tblr]{2}/, da = /\(\s*(.*)\s*\)/g, oa = /([\s\S]*?);/g, ba = /-self|flex-/g, na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, la = /stretch|:\s*\w+\-(?:conte|avail)/, ja = /([^-])(image-set\()/, z = 1, D = 1, E = 0, w = 1, O = [], S = [], A = 0, R = null, Y = 0, V = ""; B.use = T; B.set = U; void 0 !== W && U(W); return B; } /* harmony default export */ var stylis_browser_esm = stylis_min; // CONCATENATED MODULE: ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js var unitlessKeys = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, // SVG-related properties fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1, }; /* harmony default export */ var unitless_browser_esm = unitlessKeys; // CONCATENATED MODULE: ./node_modules/@emotion/memoize/dist/emotion-memoize.browser.esm.js function memoize(fn) { var cache = Object.create(null); return function (arg) { if (cache[arg] === undefined) cache[arg] = fn(arg); return cache[arg]; }; } /* harmony default export */ var emotion_memoize_browser_esm = memoize; // CONCATENATED MODULE: ./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.browser.esm.js var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23 var isPropValid = /* #__PURE__ */ emotion_memoize_browser_esm( function (prop) { return ( reactPropsRegex.test(prop) || (prop.charCodeAt(0) === 111 && /* o */ prop.charCodeAt(1) === 110 && /* n */ prop.charCodeAt(2) < 91) ); } /* Z+1 */ ); /* harmony default export */ var emotion_is_prop_valid_browser_esm = isPropValid; // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js var hoist_non_react_statics_cjs = __webpack_require__(8679); var hoist_non_react_statics_cjs_default = /*#__PURE__*/ __webpack_require__.n( hoist_non_react_statics_cjs ); // CONCATENATED MODULE: ./node_modules/styled-components/dist/styled-components.browser.esm.js /* provided dependency */ var process = __webpack_require__(3454); function v() { return (v = 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; }).apply(this, arguments); } var g = function (e, t) { for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]); return n; }, S = function (t) { return ( null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !(0, react_is.typeOf)(t) ); }, w = Object.freeze([]), E = Object.freeze({}); function b(e) { return "function" == typeof e; } function _(e) { return false || e.displayName || e.name || "Component"; } function N(e) { return e && "string" == typeof e.styledComponentId; } var A = ("undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR)) || "data-styled", C = "5.3.5", I = "undefined" != typeof window && "HTMLElement" in window, P = Boolean( "boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== "production" ), O = {}, R = false ? 0 : {}; function D() { for ( var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1 ) t.push( n < 0 || arguments.length <= n ? void 0 : arguments[n] ); return ( t.forEach(function (t) { e = e.replace(/%[a-z]/, t); }), e ); } function j(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; throw true ? new Error( "An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "") ) : 0; } var T = (function () { function e(e) { (this.groupSizes = new Uint32Array(512)), (this.length = 512), (this.tag = e); } var t = e.prototype; return ( (t.indexOfGroup = function (e) { for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n]; return t; }), (t.insertRules = function (e, t) { if (e >= this.groupSizes.length) { for ( var n = this.groupSizes, r = n.length, o = r; e >= o; ) (o <<= 1) < 0 && j(16, "" + e); (this.groupSizes = new Uint32Array(o)), this.groupSizes.set(n), (this.length = o); for (var s = r; s < o; s++) this.groupSizes[s] = 0; } for ( var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++ ) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++); }), (t.clearGroup = function (e) { if (e < this.length) { var t = this.groupSizes[e], n = this.indexOfGroup(e), r = n + t; this.groupSizes[e] = 0; for (var o = n; o < r; o++) this.tag.deleteRule(n); } }), (t.getGroup = function (e) { var t = ""; if (e >= this.length || 0 === this.groupSizes[e]) return t; for ( var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++ ) t += this.tag.getRule(s) + "/*!sc*/\n"; return t; }), e ); })(), x = new Map(), k = new Map(), V = 1, B = function (e) { if (x.has(e)) return x.get(e); for (; k.has(V); ) V++; var t = V++; return false && 0, x.set(e, t), k.set(t, e), t; }, z = function (e) { return k.get(e); }, M = function (e, t) { t >= V && (V = t + 1), x.set(e, t), k.set(t, e); }, G = "style[" + A + '][data-styled-version="5.3.5"]', L = new RegExp( "^" + A + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)' ), F = function (e, t, n) { for ( var r, o = n.split(","), s = 0, i = o.length; s < i; s++ ) (r = o[s]) && e.registerName(t, r); }, Y = function (e, t) { for ( var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++ ) { var i = n[o].trim(); if (i) { var a = i.match(L); if (a) { var c = 0 | parseInt(a[1], 10), u = a[2]; 0 !== c && (M(u, c), F(e, u, a[3]), e.getTag().insertRules(c, r)), (r.length = 0); } else r.push(i); } } }, q = function () { return "undefined" != typeof window && void 0 !== window.__webpack_nonce__ ? window.__webpack_nonce__ : null; }, H = function (e) { var t = document.head, n = e || t, r = document.createElement("style"), o = (function (e) { for ( var t = e.childNodes, n = t.length; n >= 0; n-- ) { var r = t[n]; if (r && 1 === r.nodeType && r.hasAttribute(A)) return r; } })(n), s = void 0 !== o ? o.nextSibling : null; r.setAttribute(A, "active"), r.setAttribute("data-styled-version", "5.3.5"); var i = q(); return ( i && r.setAttribute("nonce", i), n.insertBefore(r, s), r ); }, $ = (function () { function e(e) { var t = (this.element = H(e)); t.appendChild(document.createTextNode("")), (this.sheet = (function (e) { if (e.sheet) return e.sheet; for ( var t = document.styleSheets, n = 0, r = t.length; n < r; n++ ) { var o = t[n]; if (o.ownerNode === e) return o; } j(17); })(t)), (this.length = 0); } var t = e.prototype; return ( (t.insertRule = function (e, t) { try { return ( this.sheet.insertRule(t, e), this.length++, !0 ); } catch (e) { return !1; } }), (t.deleteRule = function (e) { this.sheet.deleteRule(e), this.length--; }), (t.getRule = function (e) { var t = this.sheet.cssRules[e]; return void 0 !== t && "string" == typeof t.cssText ? t.cssText : ""; }), e ); })(), W = (function () { function e(e) { var t = (this.element = H(e)); (this.nodes = t.childNodes), (this.length = 0); } var t = e.prototype; return ( (t.insertRule = function (e, t) { if (e <= this.length && e >= 0) { var n = document.createTextNode(t), r = this.nodes[e]; return ( this.element.insertBefore(n, r || null), this.length++, !0 ); } return !1; }), (t.deleteRule = function (e) { this.element.removeChild(this.nodes[e]), this.length--; }), (t.getRule = function (e) { return e < this.length ? this.nodes[e].textContent : ""; }), e ); })(), U = (function () { function e(e) { (this.rules = []), (this.length = 0); } var t = e.prototype; return ( (t.insertRule = function (e, t) { return ( e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0) ); }), (t.deleteRule = function (e) { this.rules.splice(e, 1), this.length--; }), (t.getRule = function (e) { return e < this.length ? this.rules[e] : ""; }), e ); })(), J = I, X = { isServer: !I, useCSSOMInjection: !P }, Z = (function () { function e(e, t, n) { void 0 === e && (e = E), void 0 === t && (t = {}), (this.options = v({}, X, {}, e)), (this.gs = t), (this.names = new Map(n)), (this.server = !!e.isServer), !this.server && I && J && ((J = !1), (function (e) { for ( var t = document.querySelectorAll(G), n = 0, r = t.length; n < r; n++ ) { var o = t[n]; o && "active" !== o.getAttribute(A) && (Y(e, o), o.parentNode && o.parentNode.removeChild(o)); } })(this)); } e.registerId = function (e) { return B(e); }; var t = e.prototype; return ( (t.reconstructWithOptions = function (t, n) { return ( void 0 === n && (n = !0), new e( v({}, this.options, {}, t), this.gs, (n && this.names) || void 0 ) ); }), (t.allocateGSInstance = function (e) { return (this.gs[e] = (this.gs[e] || 0) + 1); }), (t.getTag = function () { return ( this.tag || (this.tag = ((n = (t = this.options).isServer), (r = t.useCSSOMInjection), (o = t.target), (e = n ? new U(o) : r ? new $(o) : new W(o)), new T(e))) ); var e, t, n, r, o; }), (t.hasNameForId = function (e, t) { return ( this.names.has(e) && this.names.get(e).has(t) ); }), (t.registerName = function (e, t) { if ((B(e), this.names.has(e))) this.names.get(e).add(t); else { var n = new Set(); n.add(t), this.names.set(e, n); } }), (t.insertRules = function (e, t, n) { this.registerName(e, t), this.getTag().insertRules(B(e), n); }), (t.clearNames = function (e) { this.names.has(e) && this.names.get(e).clear(); }), (t.clearRules = function (e) { this.getTag().clearGroup(B(e)), this.clearNames(e); }), (t.clearTag = function () { this.tag = void 0; }), (t.toString = function () { return (function (e) { for ( var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++ ) { var s = z(o); if (void 0 !== s) { var i = e.names.get(s), a = t.getGroup(o); if (i && a && i.size) { var c = A + ".g" + o + '[id="' + s + '"]', u = ""; void 0 !== i && i.forEach(function (e) { e.length > 0 && (u += e + ","); }), (r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n'); } } } return r; })(this); }), e ); })(), K = /(a)(d)/gi, Q = function (e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; function ee(e) { var t, n = ""; for (t = Math.abs(e); t > 52; t = (t / 52) | 0) n = Q(t % 52) + n; return (Q(t % 52) + n).replace(K, "$1-$2"); } var te = function (e, t) { for (var n = t.length; n; ) e = (33 * e) ^ t.charCodeAt(--n); return e; }, ne = function (e) { return te(5381, e); }; function re(e) { for (var t = 0; t < e.length; t += 1) { var n = e[t]; if (b(n) && !N(n)) return !1; } return !0; } var oe = ne("5.3.5"), se = (function () { function e(e, t, n) { (this.rules = e), (this.staticRulesId = ""), (this.isStatic = true && (void 0 === n || n.isStatic) && re(e)), (this.componentId = t), (this.baseHash = te(oe, t)), (this.baseStyle = n), Z.registerId(t); } return ( (e.prototype.generateAndInjectStyles = function ( e, t, n ) { var r = this.componentId, o = []; if ( (this.baseStyle && o.push( this.baseStyle.generateAndInjectStyles( e, t, n ) ), this.isStatic && !n.hash) ) if ( this.staticRulesId && t.hasNameForId(r, this.staticRulesId) ) o.push(this.staticRulesId); else { var s = Ne(this.rules, e, t, n).join(""), i = ee(te(this.baseHash, s) >>> 0); if (!t.hasNameForId(r, i)) { var a = n(s, "." + i, void 0, r); t.insertRules(r, i, a); } o.push(i), (this.staticRulesId = i); } else { for ( var c = this.rules.length, u = te(this.baseHash, n.hash), l = "", d = 0; d < c; d++ ) { var h = this.rules[d]; if ("string" == typeof h) (l += h), false && 0; else if (h) { var p = Ne(h, e, t, n), f = Array.isArray(p) ? p.join("") : p; (u = te(u, f + d)), (l += f); } } if (l) { var m = ee(u >>> 0); if (!t.hasNameForId(r, m)) { var y = n(l, "." + m, void 0, r); t.insertRules(r, m, y); } o.push(m); } } return o.join(" "); }), e ); })(), ie = /^\s*\/\/.*$/gm, ae = [":", "[", ".", "#"]; function ce(e) { var t, n, r, o, s = void 0 === e ? E : e, i = s.options, a = void 0 === i ? E : i, c = s.plugins, u = void 0 === c ? w : c, l = new stylis_browser_esm(a), d = [], h = (function (e) { function t(t) { if (t) try { e(t + "}"); } catch (e) {} } return function (n, r, o, s, i, a, c, u, l, d) { switch (n) { case 1: if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), ""; break; case 2: if (0 === u) return r + "/*|*/"; break; case 3: switch (u) { case 102: case 112: return e(o[0] + r), ""; default: return r + (0 === d ? "/*|*/" : ""); } case -2: r.split("/*|*/}").forEach(t); } }; })(function (e) { d.push(e); }), f = function (e, r, s) { return (0 === r && -1 !== ae.indexOf(s[n.length])) || s.match(o) ? e : "." + t; }; function m(e, s, i, a) { void 0 === a && (a = "&"); var c = e.replace(ie, ""), u = s && i ? i + " " + s + " { " + c + " }" : c; return ( (t = a), (n = s), (r = new RegExp("\\" + n + "\\b", "g")), (o = new RegExp("(\\" + n + "\\b){2,}")), l(i || !s ? "" : s, u) ); } return ( l.use( [].concat(u, [ function (e, t, o) { 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f)); }, h, function (e) { if (-2 === e) { var t = d; return (d = []), t; } }, ]) ), (m.hash = u.length ? u .reduce(function (e, t) { return t.name || j(15), te(e, t.name); }, 5381) .toString() : ""), m ); } var ue = react.createContext(), le = ue.Consumer, de = react.createContext(), he = (de.Consumer, new Z()), pe = ce(); function fe() { return (0, react.useContext)(ue) || he; } function me() { return (0, react.useContext)(de) || pe; } function ye(e) { var t = (0, react.useState)(e.stylisPlugins), n = t[0], s = t[1], c = fe(), u = (0, react.useMemo)( function () { var t = c; return ( e.sheet ? (t = e.sheet) : e.target && (t = t.reconstructWithOptions( { target: e.target }, !1 )), e.disableCSSOMInjection && (t = t.reconstructWithOptions({ useCSSOMInjection: !1, })), t ); }, [e.disableCSSOMInjection, e.sheet, e.target] ), l = (0, react.useMemo)( function () { return ce({ options: { prefix: !e.disableVendorPrefixes }, plugins: n, }); }, [e.disableVendorPrefixes, n] ); return ( (0, react.useEffect)( function () { shallowequal_default()(n, e.stylisPlugins) || s(e.stylisPlugins); }, [e.stylisPlugins] ), react.createElement( ue.Provider, { value: u }, react.createElement( de.Provider, { value: l }, false ? 0 : e.children ) ) ); } var ve = (function () { function e(e, t) { var n = this; (this.inject = function (e, t) { void 0 === t && (t = pe); var r = n.name + t.hash; e.hasNameForId(n.id, r) || e.insertRules( n.id, r, t(n.rules, r, "@keyframes") ); }), (this.toString = function () { return j(12, String(n.name)); }), (this.name = e), (this.id = "sc-keyframes-" + e), (this.rules = t); } return ( (e.prototype.getName = function (e) { return void 0 === e && (e = pe), this.name + e.hash; }), e ); })(), ge = /([A-Z])/, Se = /([A-Z])/g, we = /^ms-/, Ee = function (e) { return "-" + e.toLowerCase(); }; function be(e) { return ge.test(e) ? e.replace(Se, Ee).replace(we, "-ms-") : e; } var _e = function (e) { return null == e || !1 === e || "" === e; }; function Ne(e, n, r, o) { if (Array.isArray(e)) { for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = Ne(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s)); return i; } if (_e(e)) return ""; if (N(e)) return "." + e.styledComponentId; if (b(e)) { if ( "function" != typeof (l = e) || (l.prototype && l.prototype.isReactComponent) || !n ) return e; var u = e(n); return false && 0, Ne(u, n, r, o); } var l; return e instanceof ve ? r ? (e.inject(r, o), e.getName(o)) : e : S(e) ? (function e(t, n) { var r, o, s = []; for (var i in t) t.hasOwnProperty(i) && !_e(t[i]) && ((Array.isArray(t[i]) && t[i].isCss) || b(t[i]) ? s.push(be(i) + ":", t[i], ";") : S(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push( be(i) + ": " + ((r = i), null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitless_browser_esm ? String(o).trim() : o + "px") + ";" )); return n ? [n + " {"].concat(s, ["}"]) : s; })(e) : e.toString(); } var Ae = function (e) { return Array.isArray(e) && (e.isCss = !0), e; }; function Ce(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; return b(e) || S(e) ? Ae(Ne(g(w, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ae(Ne(g(e, n))); } var Ie = /invalid hook call/i, Pe = new Set(), Oe = function (e, t) { if (false) { var o, n, r; } }, Re = function (e, t, n) { return ( void 0 === n && (n = E), (e.theme !== n.theme && e.theme) || t || n.theme ); }, De = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, je = /(^-|-$)/g; function Te(e) { return e.replace(De, "-").replace(je, ""); } var xe = function (e) { return ee(ne(e) >>> 0); }; function ke(e) { return "string" == typeof e && (true || 0); } var Ve = function (e) { return ( "function" == typeof e || ("object" == typeof e && null !== e && !Array.isArray(e)) ); }, Be = function (e) { return ( "__proto__" !== e && "constructor" !== e && "prototype" !== e ); }; function ze(e, t, n) { var r = e[n]; Ve(t) && Ve(r) ? Me(r, t) : (e[n] = t); } function Me(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; for (var o = 0, s = n; o < s.length; o++) { var i = s[o]; if (Ve(i)) for (var a in i) Be(a) && ze(e, i[a], a); } return e; } var Ge = react.createContext(), Le = Ge.Consumer; function Fe(e) { var t = (0, react.useContext)(Ge), n = (0, react.useMemo)( function () { return (function (e, t) { if (!e) return j(14); if (b(e)) { var n = e(t); return true ? n : 0; } return Array.isArray(e) || "object" != typeof e ? j(8) : t ? v({}, t, {}, e) : e; })(e.theme, t); }, [e.theme, t] ); return e.children ? react.createElement(Ge.Provider, { value: n }, e.children) : null; } var Ye = {}; function qe(e, t, n) { var o = N(e), i = !ke(e), a = t.attrs, c = void 0 === a ? w : a, d = t.componentId, h = void 0 === d ? (function (e, t) { var n = "string" != typeof e ? "sc" : Te(e); Ye[n] = (Ye[n] || 0) + 1; var r = n + "-" + xe("5.3.5" + n + Ye[n]); return t ? t + "-" + r : r; })(t.displayName, t.parentComponentId) : d, p = t.displayName, f = void 0 === p ? (function (e) { return ke(e) ? "styled." + e : "Styled(" + _(e) + ")"; })(e) : p, g = t.displayName && t.componentId ? Te(t.displayName) + "-" + t.componentId : t.componentId || h, S = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, A = t.shouldForwardProp; o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) { return ( e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o) ); } : e.shouldForwardProp); var C, I = new se(n, g, o ? e.componentStyle : void 0), P = I.isStatic && 0 === c.length, O = function (e, t) { return (function (e, t, n, r) { var o = e.attrs, i = e.componentStyle, a = e.defaultProps, c = e.foldedComponentIds, d = e.shouldForwardProp, h = e.styledComponentId, p = e.target; false && 0; var f = (function (e, t, n) { void 0 === e && (e = E); var r = v({}, t, { theme: e }), o = {}; return ( n.forEach(function (e) { var t, n, s, i = e; for (t in (b(i) && (i = i(r)), i)) r[t] = o[t] = "className" === t ? ((n = o[t]), (s = i[t]), n && s ? n + " " + s : n || s) : i[t]; }), [r, o] ); })( Re(t, (0, react.useContext)(Ge), a) || E, t, o ), y = f[0], g = f[1], S = (function (e, t, n, r) { var o = fe(), s = me(), i = t ? e.generateAndInjectStyles(E, o, s) : e.generateAndInjectStyles( n, o, s ); return false && 0, false && 0, i; })(i, r, y, false ? 0 : void 0), w = n, _ = g.$as || t.$as || g.as || t.as || p, N = ke(_), A = g !== t ? v({}, t, {}, g) : t, C = {}; for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? (C.as = A[I]) : (d ? d( I, emotion_is_prop_valid_browser_esm, _ ) : !N || emotion_is_prop_valid_browser_esm( I )) && (C[I] = A[I])); return ( t.style && g.style !== t.style && (C.style = v({}, t.style, {}, g.style)), (C.className = Array.prototype .concat( c, h, S !== h ? S : null, t.className, g.className ) .filter(Boolean) .join(" ")), (C.ref = w), (0, react.createElement)(_, C) ); })(C, e, t, P); }; return ( (O.displayName = f), ((C = react.forwardRef(O)).attrs = S), (C.componentStyle = I), (C.displayName = f), (C.shouldForwardProp = A), (C.foldedComponentIds = o ? Array.prototype.concat( e.foldedComponentIds, e.styledComponentId ) : w), (C.styledComponentId = g), (C.target = o ? e.target : e), (C.withComponent = function (e) { var r = t.componentId, o = (function (e, t) { if (null == e) return {}; var n, r, o = {}, s = Object.keys(e); for (r = 0; r < s.length; r++) (n = s[r]), t.indexOf(n) >= 0 || (o[n] = e[n]); return o; })(t, ["componentId"]), s = r && r + "-" + (ke(e) ? e : Te(_(e))); return qe(e, v({}, o, { attrs: S, componentId: s }), n); }), Object.defineProperty(C, "defaultProps", { get: function () { return this._foldedDefaultProps; }, set: function (t) { this._foldedDefaultProps = o ? Me({}, e.defaultProps, t) : t; }, }), false && 0, (C.toString = function () { return "." + C.styledComponentId; }), i && hoist_non_react_statics_cjs_default()(C, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0, }), C ); } var He = function (e) { return (function e(t, r, o) { if ( (void 0 === o && (o = E), !(0, react_is.isValidElementType)(r)) ) return j(1, String(r)); var s = function () { return t(r, o, Ce.apply(void 0, arguments)); }; return ( (s.withConfig = function (n) { return e(t, r, v({}, o, {}, n)); }), (s.attrs = function (n) { return e( t, r, v({}, o, { attrs: Array.prototype .concat(o.attrs, n) .filter(Boolean), }) ); }), s ); })(qe, e); }; [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan", ].forEach(function (e) { He[e] = He(e); }); var $e = (function () { function e(e, t) { (this.rules = e), (this.componentId = t), (this.isStatic = re(e)), Z.registerId(this.componentId + 1); } var t = e.prototype; return ( (t.createStyles = function (e, t, n, r) { var o = r(Ne(this.rules, t, n, r).join(""), ""), s = this.componentId + e; n.insertRules(s, s, o); }), (t.removeStyles = function (e, t) { t.clearRules(this.componentId + e); }), (t.renderStyles = function (e, t, n, r) { e > 2 && Z.registerId(this.componentId + e), this.removeStyles(e, n), this.createStyles(e, t, n, r); }), e ); })(); function We(e) { for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++ ) n[o - 1] = arguments[o]; var i = Ce.apply(void 0, [e].concat(n)), a = "sc-global-" + xe(JSON.stringify(i)), u = new $e(i, a); function l(e) { var t = fe(), n = me(), o = (0, react.useContext)(Ge), l = (0, react.useRef)(t.allocateGSInstance(a)).current; return ( false && 0, false && 0, t.server && h(l, e, t, o, n), (0, react.useLayoutEffect)( function () { if (!t.server) return ( h(l, e, t, o, n), function () { return u.removeStyles(l, t); } ); }, [l, e, t, o, n] ), null ); } function h(e, t, n, r, o) { if (u.isStatic) u.renderStyles(e, O, n, o); else { var s = v({}, t, { theme: Re(t, r, l.defaultProps) }); u.renderStyles(e, s, n, o); } } return false && 0, react.memo(l); } function Ue(e) { false && 0; for ( var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r]; var o = Ce.apply(void 0, [e].concat(n)).join(""), s = xe(o); return new ve(s, o); } var Je = (function () { function e() { var e = this; (this._emitSheetCSS = function () { var t = e.instance.toString(); if (!t) return ""; var n = q(); return ( "<style " + [ n && 'nonce="' + n + '"', A + '="true"', 'data-styled-version="5.3.5"', ] .filter(Boolean) .join(" ") + ">" + t + "</style>" ); }), (this.getStyleTags = function () { return e.sealed ? j(2) : e._emitSheetCSS(); }), (this.getStyleElement = function () { var t; if (e.sealed) return j(2); var n = (((t = {})[A] = ""), (t["data-styled-version"] = "5.3.5"), (t.dangerouslySetInnerHTML = { __html: e.instance.toString(), }), t), o = q(); return ( o && (n.nonce = o), [ react.createElement( "style", v({}, n, { key: "sc-0-0" }) ), ] ); }), (this.seal = function () { e.sealed = !0; }), (this.instance = new Z({ isServer: !0 })), (this.sealed = !1); } var t = e.prototype; return ( (t.collectStyles = function (e) { return this.sealed ? j(2) : react.createElement( ye, { sheet: this.instance }, e ); }), (t.interleaveWithNodeStream = function (e) { return j(3); }), e ); })(), Xe = function (e) { var t = r.forwardRef(function (t, n) { var o = s(Ge), i = e.defaultProps, a = Re(t, o, i); return ( false && 0, r.createElement(e, v({}, t, { theme: a, ref: n })) ); }); return ( y(t, e), (t.displayName = "WithTheme(" + _(e) + ")"), t ); }, Ze = function () { return s(Ge); }, Ke = { StyleSheet: Z, masterSheet: he }; false && 0, false && 0; /* harmony default export */ var styled_components_browser_esm = He; //# sourceMappingURL=styled-components.browser.esm.js.map // EXTERNAL MODULE: ./node_modules/next/dist/build/polyfills/object-assign.js var object_assign = __webpack_require__(6086); var object_assign_default = /*#__PURE__*/ __webpack_require__.n(object_assign); // CONCATENATED MODULE: ./node_modules/@styled-system/core/dist/index.esm.js var merge = function merge(a, b) { var result = object_assign_default()({}, a, b); for (var key in a) { var _assign; if (!a[key] || typeof b[key] !== "object") continue; object_assign_default()( result, ((_assign = {}), (_assign[key] = object_assign_default()( a[key], b[key] )), _assign) ); } return result; }; // sort object-value responsive styles var sort = function sort(obj) { var next = {}; Object.keys(obj) .sort(function (a, b) { return a.localeCompare(b, undefined, { numeric: true, sensitivity: "base", }); }) .forEach(function (key) { next[key] = obj[key]; }); return next; }; var defaults = { breakpoints: [40, 52, 64].map(function (n) { return n + "em"; }), }; var createMediaQuery = function createMediaQuery(n) { return "@media screen and (min-width: " + n + ")"; }; var getValue = function getValue(n, scale) { return get(scale, n, n); }; var get = function get(obj, key, def, p, undef) { key = key && key.split ? key.split(".") : [key]; for (p = 0; p < key.length; p++) { obj = obj ? obj[key[p]] : undef; } return obj === undef ? def : obj; }; var createParser = function createParser(config) { var cache = {}; var parse = function parse(props) { var styles = {}; var shouldSort = false; var isCacheDisabled = props.theme && props.theme.disableStyledSystemCache; for (var key in props) { if (!config[key]) continue; var sx = config[key]; var raw = props[key]; var scale = get(props.theme, sx.scale, sx.defaults); if (typeof raw === "object") { cache.breakpoints = (!isCacheDisabled && cache.breakpoints) || get( props.theme, "breakpoints", defaults.breakpoints ); if (Array.isArray(raw)) { cache.media = (!isCacheDisabled && cache.media) || [null].concat( cache.breakpoints.map(createMediaQuery) ); styles = merge( styles, parseResponsiveStyle( cache.media, sx, scale, raw, props ) ); continue; } if (raw !== null) { styles = merge( styles, parseResponsiveObject( cache.breakpoints, sx, scale, raw, props ) ); shouldSort = true; } continue; } object_assign_default()(styles, sx(raw, scale, props)); } // sort object-based responsive styles if (shouldSort) { styles = sort(styles); } return styles; }; parse.config = config; parse.propNames = Object.keys(config); parse.cache = cache; var keys = Object.keys(config).filter(function (k) { return k !== "config"; }); if (keys.length > 1) { keys.forEach(function (key) { var _createParser; parse[key] = createParser( ((_createParser = {}), (_createParser[key] = config[key]), _createParser) ); }); } return parse; }; var parseResponsiveStyle = function parseResponsiveStyle( mediaQueries, sx, scale, raw, _props ) { var styles = {}; raw.slice(0, mediaQueries.length).forEach(function (value, i) { var media = mediaQueries[i]; var style = sx(value, scale, _props); if (!media) { object_assign_default()(styles, style); } else { var _assign2; object_assign_default()( styles, ((_assign2 = {}), (_assign2[media] = object_assign_default()( {}, styles[media], style )), _assign2) ); } }); return styles; }; var parseResponsiveObject = function parseResponsiveObject( breakpoints, sx, scale, raw, _props ) { var styles = {}; for (var key in raw) { var breakpoint = breakpoints[key]; var value = raw[key]; var style = sx(value, scale, _props); if (!breakpoint) { object_assign_default()(styles, style); } else { var _assign3; var media = createMediaQuery(breakpoint); object_assign_default()( styles, ((_assign3 = {}), (_assign3[media] = object_assign_default()( {}, styles[media], style )), _assign3) ); } } return styles; }; var createStyleFunction = function createStyleFunction(_ref) { var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform = _ref$transform === void 0 ? getValue : _ref$transform, defaultScale = _ref.defaultScale; properties = properties || [property]; var sx = function sx(value, scale, _props) { var result = {}; var n = transform(value, scale, _props); if (n === null) return; properties.forEach(function (prop) { result[prop] = n; }); return result; }; sx.scale = scale; sx.defaults = defaultScale; return sx; }; // new v5 API var system = function system(args) { if (args === void 0) { args = {}; } var config = {}; Object.keys(args).forEach(function (key) { var conf = args[key]; if (conf === true) { // shortcut definition config[key] = createStyleFunction({ property: key, scale: key, }); return; } if (typeof conf === "function") { config[key] = conf; return; } config[key] = createStyleFunction(conf); }); var parser = createParser(config); return parser; }; var compose = function compose() { var config = {}; for ( var _len = arguments.length, parsers = new Array(_len), _key = 0; _key < _len; _key++ ) { parsers[_key] = arguments[_key]; } parsers.forEach(function (parser) { if (!parser || !parser.config) return; object_assign_default()(config, parser.config); }); var parser = createParser(config); return parser; }; // CONCATENATED MODULE: ./node_modules/@styled-system/layout/dist/index.esm.js var isNumber = function isNumber(n) { return typeof n === "number" && !isNaN(n); }; var getWidth = function getWidth(n, scale) { return get(scale, n, !isNumber(n) || n > 1 ? n : n * 100 + "%"); }; var config = { width: { property: "width", scale: "sizes", transform: getWidth, }, height: { property: "height", scale: "sizes", }, minWidth: { property: "minWidth", scale: "sizes", }, minHeight: { property: "minHeight", scale: "sizes", }, maxWidth: { property: "maxWidth", scale: "sizes", }, maxHeight: { property: "maxHeight", scale: "sizes", }, size: { properties: ["width", "height"], scale: "sizes", }, overflow: true, overflowX: true, overflowY: true, display: true, verticalAlign: true, }; var layout = system(config); /* harmony default export */ var index_esm = layout; // CONCATENATED MODULE: ./node_modules/@styled-system/color/dist/index.esm.js var index_esm_config = { color: { property: "color", scale: "colors", }, backgroundColor: { property: "backgroundColor", scale: "colors", }, opacity: true, }; index_esm_config.bg = index_esm_config.backgroundColor; var color = system(index_esm_config); /* harmony default export */ var dist_index_esm = color; // CONCATENATED MODULE: ./node_modules/@styled-system/typography/dist/index.esm.js var index_esm_defaults = { fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72], }; var dist_index_esm_config = { fontFamily: { property: "fontFamily", scale: "fonts", }, fontSize: { property: "fontSize", scale: "fontSizes", defaultScale: index_esm_defaults.fontSizes, }, fontWeight: { property: "fontWeight", scale: "fontWeights", }, lineHeight: { property: "lineHeight", scale: "lineHeights", }, letterSpacing: { property: "letterSpacing", scale: "letterSpacings", }, textAlign: true, fontStyle: true, }; var typography = system(dist_index_esm_config); /* harmony default export */ var typography_dist_index_esm = typography; // CONCATENATED MODULE: ./node_modules/@styled-system/flexbox/dist/index.esm.js var flexbox_dist_index_esm_config = { alignItems: true, alignContent: true, justifyItems: true, justifyContent: true, flexWrap: true, flexDirection: true, // item flex: true, flexGrow: true, flexShrink: true, flexBasis: true, justifySelf: true, alignSelf: true, order: true, }; var flexbox = system(flexbox_dist_index_esm_config); /* harmony default export */ var flexbox_dist_index_esm = flexbox; // CONCATENATED MODULE: ./node_modules/@styled-system/grid/dist/index.esm.js var dist_index_esm_defaults = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512], }; var grid_dist_index_esm_config = { gridGap: { property: "gridGap", scale: "space", defaultScale: dist_index_esm_defaults.space, }, gridColumnGap: { property: "gridColumnGap", scale: "space", defaultScale: dist_index_esm_defaults.space, }, gridRowGap: { property: "gridRowGap", scale: "space", defaultScale: dist_index_esm_defaults.space, }, gridColumn: true, gridRow: true, gridAutoFlow: true, gridAutoColumns: true, gridAutoRows: true, gridTemplateColumns: true, gridTemplateRows: true, gridTemplateAreas: true, gridArea: true, }; var grid = system(grid_dist_index_esm_config); /* harmony default export */ var grid_dist_index_esm = grid; // CONCATENATED MODULE: ./node_modules/@styled-system/border/dist/index.esm.js var border_dist_index_esm_config = { border: { property: "border", scale: "borders", }, borderWidth: { property: "borderWidth", scale: "borderWidths", }, borderStyle: { property: "borderStyle", scale: "borderStyles", }, borderColor: { property: "borderColor", scale: "colors", }, borderRadius: { property: "borderRadius", scale: "radii", }, borderTop: { property: "borderTop", scale: "borders", }, borderTopLeftRadius: { property: "borderTopLeftRadius", scale: "radii", }, borderTopRightRadius: { property: "borderTopRightRadius", scale: "radii", }, borderRight: { property: "borderRight", scale: "borders", }, borderBottom: { property: "borderBottom", scale: "borders", }, borderBottomLeftRadius: { property: "borderBottomLeftRadius", scale: "radii", }, borderBottomRightRadius: { property: "borderBottomRightRadius", scale: "radii", }, borderLeft: { property: "borderLeft", scale: "borders", }, borderX: { properties: ["borderLeft", "borderRight"], scale: "borders", }, borderY: { properties: ["borderTop", "borderBottom"], scale: "borders", }, }; border_dist_index_esm_config.borderTopWidth = { property: "borderTopWidth", scale: "borderWidths", }; border_dist_index_esm_config.borderTopColor = { property: "borderTopColor", scale: "colors", }; border_dist_index_esm_config.borderTopStyle = { property: "borderTopStyle", scale: "borderStyles", }; border_dist_index_esm_config.borderTopLeftRadius = { property: "borderTopLeftRadius", scale: "radii", }; border_dist_index_esm_config.borderTopRightRadius = { property: "borderTopRightRadius", scale: "radii", }; border_dist_index_esm_config.borderBottomWidth = { property: "borderBottomWidth", scale: "borderWidths", }; border_dist_index_esm_config.borderBottomColor = { property: "borderBottomColor", scale: "colors", }; border_dist_index_esm_config.borderBottomStyle = { property: "borderBottomStyle", scale: "borderStyles", }; border_dist_index_esm_config.borderBottomLeftRadius = { property: "borderBottomLeftRadius", scale: "radii", }; border_dist_index_esm_config.borderBottomRightRadius = { property: "borderBottomRightRadius", scale: "radii", }; border_dist_index_esm_config.borderLeftWidth = { property: "borderLeftWidth", scale: "borderWidths", }; border_dist_index_esm_config.borderLeftColor = { property: "borderLeftColor", scale: "colors", }; border_dist_index_esm_config.borderLeftStyle = { property: "borderLeftStyle", scale: "borderStyles", }; border_dist_index_esm_config.borderRightWidth = { property: "borderRightWidth", scale: "borderWidths", }; border_dist_index_esm_config.borderRightColor = { property: "borderRightColor", scale: "colors", }; border_dist_index_esm_config.borderRightStyle = { property: "borderRightStyle", scale: "borderStyles", }; var border = system(border_dist_index_esm_config); /* harmony default export */ var border_dist_index_esm = border; // CONCATENATED MODULE: ./node_modules/@styled-system/background/dist/index.esm.js var background_dist_index_esm_config = { background: true, backgroundImage: true, backgroundSize: true, backgroundPosition: true, backgroundRepeat: true, }; background_dist_index_esm_config.bgImage = background_dist_index_esm_config.backgroundImage; background_dist_index_esm_config.bgSize = background_dist_index_esm_config.backgroundSize; background_dist_index_esm_config.bgPosition = background_dist_index_esm_config.backgroundPosition; background_dist_index_esm_config.bgRepeat = background_dist_index_esm_config.backgroundRepeat; var background = system(background_dist_index_esm_config); /* harmony default export */ var background_dist_index_esm = background; // CONCATENATED MODULE: ./node_modules/@styled-system/position/dist/index.esm.js var position_dist_index_esm_defaults = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512], }; var position_dist_index_esm_config = { position: true, zIndex: { property: "zIndex", scale: "zIndices", }, top: { property: "top", scale: "space", defaultScale: position_dist_index_esm_defaults.space, }, right: { property: "right", scale: "space", defaultScale: position_dist_index_esm_defaults.space, }, bottom: { property: "bottom", scale: "space", defaultScale: position_dist_index_esm_defaults.space, }, left: { property: "left", scale: "space", defaultScale: position_dist_index_esm_defaults.space, }, }; var position = system(position_dist_index_esm_config); /* harmony default export */ var position_dist_index_esm = position; // CONCATENATED MODULE: ./node_modules/@styled-system/space/dist/index.esm.js var space_dist_index_esm_defaults = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512], }; var index_esm_isNumber = function isNumber(n) { return typeof n === "number" && !isNaN(n); }; var getMargin = function getMargin(n, scale) { if (!index_esm_isNumber(n)) { return get(scale, n, n); } var isNegative = n < 0; var absolute = Math.abs(n); var value = get(scale, absolute, absolute); if (!index_esm_isNumber(value)) { return isNegative ? "-" + value : value; } return value * (isNegative ? -1 : 1); }; var configs = {}; configs.margin = { margin: { property: "margin", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults.space, }, marginTop: { property: "marginTop", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults.space, }, marginRight: { property: "marginRight", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults.space, }, marginBottom: { property: "marginBottom", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults.space, }, marginLeft: { property: "marginLeft", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults.space, }, marginX: { properties: ["marginLeft", "marginRight"], scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults.space, }, marginY: { properties: ["marginTop", "marginBottom"], scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults.space, }, }; configs.margin.m = configs.margin.margin; configs.margin.mt = configs.margin.marginTop; configs.margin.mr = configs.margin.marginRight; configs.margin.mb = configs.margin.marginBottom; configs.margin.ml = configs.margin.marginLeft; configs.margin.mx = configs.margin.marginX; configs.margin.my = configs.margin.marginY; configs.padding = { padding: { property: "padding", scale: "space", defaultScale: space_dist_index_esm_defaults.space, }, paddingTop: { property: "paddingTop", scale: "space", defaultScale: space_dist_index_esm_defaults.space, }, paddingRight: { property: "paddingRight", scale: "space", defaultScale: space_dist_index_esm_defaults.space, }, paddingBottom: { property: "paddingBottom", scale: "space", defaultScale: space_dist_index_esm_defaults.space, }, paddingLeft: { property: "paddingLeft", scale: "space", defaultScale: space_dist_index_esm_defaults.space, }, paddingX: { properties: ["paddingLeft", "paddingRight"], scale: "space", defaultScale: space_dist_index_esm_defaults.space, }, paddingY: { properties: ["paddingTop", "paddingBottom"], scale: "space", defaultScale: space_dist_index_esm_defaults.space, }, }; configs.padding.p = configs.padding.padding; configs.padding.pt = configs.padding.paddingTop; configs.padding.pr = configs.padding.paddingRight; configs.padding.pb = configs.padding.paddingBottom; configs.padding.pl = configs.padding.paddingLeft; configs.padding.px = configs.padding.paddingX; configs.padding.py = configs.padding.paddingY; var margin = system(configs.margin); var padding = system(configs.padding); var space = compose(margin, padding); /* harmony default export */ var space_dist_index_esm = /* unused pure expression or super */ null && space; // CONCATENATED MODULE: ./node_modules/@styled-system/shadow/dist/index.esm.js var shadow = system({ boxShadow: { property: "boxShadow", scale: "shadows", }, textShadow: { property: "textShadow", scale: "shadows", }, }); /* harmony default export */ var shadow_dist_index_esm = shadow; // CONCATENATED MODULE: ./node_modules/@styled-system/css/dist/index.esm.js function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if ( Object.prototype.hasOwnProperty.call( source, key ) ) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } // based on https://github.com/developit/dlv var index_esm_get = function get(obj, key, def, p, undef) { key = key && key.split ? key.split(".") : [key]; for (p = 0; p < key.length; p++) { obj = obj ? obj[key[p]] : undef; } return obj === undef ? def : obj; }; var defaultBreakpoints = [40, 52, 64].map(function (n) { return n + "em"; }); var defaultTheme = { space: [0, 4, 8, 16, 32, 64, 128, 256, 512], fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72], }; var aliases = { bg: "backgroundColor", m: "margin", mt: "marginTop", mr: "marginRight", mb: "marginBottom", ml: "marginLeft", mx: "marginX", my: "marginY", p: "padding", pt: "paddingTop", pr: "paddingRight", pb: "paddingBottom", pl: "paddingLeft", px: "paddingX", py: "paddingY", }; var multiples = { marginX: ["marginLeft", "marginRight"], marginY: ["marginTop", "marginBottom"], paddingX: ["paddingLeft", "paddingRight"], paddingY: ["paddingTop", "paddingBottom"], size: ["width", "height"], }; var scales = { color: "colors", backgroundColor: "colors", borderColor: "colors", margin: "space", marginTop: "space", marginRight: "space", marginBottom: "space", marginLeft: "space", marginX: "space", marginY: "space", padding: "space", paddingTop: "space", paddingRight: "space", paddingBottom: "space", paddingLeft: "space", paddingX: "space", paddingY: "space", top: "space", right: "space", bottom: "space", left: "space", gridGap: "space", gridColumnGap: "space", gridRowGap: "space", gap: "space", columnGap: "space", rowGap: "space", fontFamily: "fonts", fontSize: "fontSizes", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", border: "borders", borderTop: "borders", borderRight: "borders", borderBottom: "borders", borderLeft: "borders", borderWidth: "borderWidths", borderStyle: "borderStyles", borderRadius: "radii", borderTopRightRadius: "radii", borderTopLeftRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", borderTopWidth: "borderWidths", borderTopColor: "colors", borderTopStyle: "borderStyles", borderBottomWidth: "borderWidths", borderBottomColor: "colors", borderBottomStyle: "borderStyles", borderLeftWidth: "borderWidths", borderLeftColor: "colors", borderLeftStyle: "borderStyles", borderRightWidth: "borderWidths", borderRightColor: "colors", borderRightStyle: "borderStyles", outlineColor: "colors", boxShadow: "shadows", textShadow: "shadows", zIndex: "zIndices", width: "sizes", minWidth: "sizes", maxWidth: "sizes", height: "sizes", minHeight: "sizes", maxHeight: "sizes", flexBasis: "sizes", size: "sizes", // svg fill: "colors", stroke: "colors", }; var positiveOrNegative = function positiveOrNegative(scale, value) { if (typeof value !== "number" || value >= 0) { return index_esm_get(scale, value, value); } var absolute = Math.abs(value); var n = index_esm_get(scale, absolute, absolute); if (typeof n === "string") return "-" + n; return n * -1; }; var transforms = [ "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right", ].reduce(function (acc, curr) { var _extends2; return _extends( {}, acc, ((_extends2 = {}), (_extends2[curr] = positiveOrNegative), _extends2) ); }, {}); var responsive = function responsive(styles) { return function (theme) { var next = {}; var breakpoints = index_esm_get( theme, "breakpoints", defaultBreakpoints ); var mediaQueries = [null].concat( breakpoints.map(function (n) { return "@media screen and (min-width: " + n + ")"; }) ); for (var key in styles) { var value = typeof styles[key] === "function" ? styles[key](theme) : styles[key]; if (value == null) continue; if (!Array.isArray(value)) { next[key] = value; continue; } for ( var i = 0; i < value.slice(0, mediaQueries.length).length; i++ ) { var media = mediaQueries[i]; if (!media) { next[key] = value[i]; continue; } next[media] = next[media] || {}; if (value[i] == null) continue; next[media][key] = value[i]; } } return next; }; }; var css = function css(args) { return function (props) { if (props === void 0) { props = {}; } var theme = _extends( {}, defaultTheme, {}, props.theme || props ); var result = {}; var obj = typeof args === "function" ? args(theme) : args; var styles = responsive(obj)(theme); for (var key in styles) { var x = styles[key]; var val = typeof x === "function" ? x(theme) : x; if (key === "variant") { var variant = css(index_esm_get(theme, val))(theme); result = _extends({}, result, {}, variant); continue; } if (val && typeof val === "object") { result[key] = css(val)(theme); continue; } var prop = index_esm_get(aliases, key, key); var scaleName = index_esm_get(scales, prop); var scale = index_esm_get( theme, scaleName, index_esm_get(theme, prop, {}) ); var transform = index_esm_get( transforms, prop, index_esm_get ); var value = transform(scale, val, val); if (multiples[prop]) { var dirs = multiples[prop]; for (var i = 0; i < dirs.length; i++) { result[dirs[i]] = value; } } else { result[prop] = value; } } return result; }; }; /* harmony default export */ var css_dist_index_esm = css; // CONCATENATED MODULE: ./node_modules/@styled-system/variant/dist/index.esm.js var variant = function variant(_ref) { var _config; var scale = _ref.scale, _ref$prop = _ref.prop, prop = _ref$prop === void 0 ? "variant" : _ref$prop, _ref$variants = _ref.variants, variants = _ref$variants === void 0 ? {} : _ref$variants, key = _ref.key; var sx; if (Object.keys(variants).length) { sx = function sx(value, scale, props) { return css_dist_index_esm(get(scale, value, null))( props.theme ); }; } else { sx = function sx(value, scale) { return get(scale, value, null); }; } sx.scale = scale || key; sx.defaults = variants; var config = ((_config = {}), (_config[prop] = sx), _config); var parser = createParser(config); return parser; }; /* harmony default export */ var variant_dist_index_esm = /* unused pure expression or super */ null && variant; var buttonStyle = variant({ key: "buttons", }); var textStyle = variant({ key: "textStyles", prop: "textStyle", }); var colorStyle = variant({ key: "colorStyles", prop: "colors", }); // CONCATENATED MODULE: ./node_modules/styled-system/dist/index.esm.js // v4 api shims var width = index_esm.width, height = index_esm.height, minWidth = index_esm.minWidth, minHeight = index_esm.minHeight, maxWidth = index_esm.maxWidth, maxHeight = index_esm.maxHeight, size = index_esm.size, verticalAlign = index_esm.verticalAlign, display = index_esm.display, overflow = index_esm.overflow, overflowX = index_esm.overflowX, overflowY = index_esm.overflowY; var opacity = dist_index_esm.opacity; var fontSize = typography_dist_index_esm.fontSize, fontFamily = typography_dist_index_esm.fontFamily, fontWeight = typography_dist_index_esm.fontWeight, lineHeight = typography_dist_index_esm.lineHeight, textAlign = typography_dist_index_esm.textAlign, fontStyle = typography_dist_index_esm.fontStyle, letterSpacing = typography_dist_index_esm.letterSpacing; var alignItems = flexbox_dist_index_esm.alignItems, alignContent = flexbox_dist_index_esm.alignContent, justifyItems = flexbox_dist_index_esm.justifyItems, justifyContent = flexbox_dist_index_esm.justifyContent, flexWrap = flexbox_dist_index_esm.flexWrap, flexDirection = flexbox_dist_index_esm.flexDirection, flex = flexbox_dist_index_esm.flex, flexGrow = flexbox_dist_index_esm.flexGrow, flexShrink = flexbox_dist_index_esm.flexShrink, flexBasis = flexbox_dist_index_esm.flexBasis, justifySelf = flexbox_dist_index_esm.justifySelf, alignSelf = flexbox_dist_index_esm.alignSelf, order = flexbox_dist_index_esm.order; var gridGap = grid_dist_index_esm.gridGap, gridColumnGap = grid_dist_index_esm.gridColumnGap, gridRowGap = grid_dist_index_esm.gridRowGap, gridColumn = grid_dist_index_esm.gridColumn, gridRow = grid_dist_index_esm.gridRow, gridAutoFlow = grid_dist_index_esm.gridAutoFlow, gridAutoColumns = grid_dist_index_esm.gridAutoColumns, gridAutoRows = grid_dist_index_esm.gridAutoRows, gridTemplateColumns = grid_dist_index_esm.gridTemplateColumns, gridTemplateRows = grid_dist_index_esm.gridTemplateRows, gridTemplateAreas = grid_dist_index_esm.gridTemplateAreas, gridArea = grid_dist_index_esm.gridArea; var borderWidth = border_dist_index_esm.borderWidth, borderStyle = border_dist_index_esm.borderStyle, borderColor = border_dist_index_esm.borderColor, borderTop = border_dist_index_esm.borderTop, borderRight = border_dist_index_esm.borderRight, borderBottom = border_dist_index_esm.borderBottom, borderLeft = border_dist_index_esm.borderLeft, borderRadius = border_dist_index_esm.borderRadius; var backgroundImage = background_dist_index_esm.backgroundImage, backgroundSize = background_dist_index_esm.backgroundSize, backgroundPosition = background_dist_index_esm.backgroundPosition, backgroundRepeat = background_dist_index_esm.backgroundRepeat; var zIndex = position_dist_index_esm.zIndex, index_esm_top = position_dist_index_esm.top, right = position_dist_index_esm.right, bottom = position_dist_index_esm.bottom, left = position_dist_index_esm.left; // v4 style API shim var style = function style(_ref) { var prop = _ref.prop, cssProperty = _ref.cssProperty, alias = _ref.alias, key = _ref.key, transformValue = _ref.transformValue, scale = _ref.scale, properties = _ref.properties; var config = {}; config[prop] = createStyleFunction({ properties: properties, property: cssProperty || prop, scale: key, defaultScale: scale, transform: transformValue, }); if (alias) config[alias] = config[prop]; var parse = createParser(config); return parse; }; // EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js var cjs = __webpack_require__(9996); var cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs); // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/sx.js const sx = (props) => css_dist_index_esm(props.sx); /* harmony default export */ var lib_esm_sx = sx; // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Box.js const Box = styled_components_browser_esm.div.withConfig({ displayName: "Box", componentId: "sc-1gh2r6s-0", })( space, color, typography, layout, flexbox, grid, background, border, position, shadow, lib_esm_sx ); /* harmony default export */ var lib_esm_Box = Box; // EXTERNAL MODULE: ./node_modules/@primer/react/lib-esm/theme-preval.js var theme_preval = __webpack_require__(7689); // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/theme.js /* harmony default export */ var lib_esm_theme = theme_preval.theme; // NOTE: for now, ThemeColors and ThemeShadows are handcrafted types. It would be nice if these // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/ThemeProvider.js // were exports from primitives (or a different shape but derived from those exports). const defaultColorMode = "day"; const defaultDayScheme = "light"; const defaultNightScheme = "dark"; // eslint-disable-next-line @typescript-eslint/no-explicit-any const ThemeContext = /*#__PURE__*/ react.createContext({ setColorMode: () => null, setDayScheme: () => null, setNightScheme: () => null, }); // inspired from __NEXT_DATA__, we use application/json to avoid CSRF policy with inline scripts const getServerHandoff = () => { try { var _document$getElementB; const serverData = (_document$getElementB = document.getElementById("__PRIMER_DATA__")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.textContent; if (serverData) return JSON.parse(serverData); } catch (error) { // if document/element does not exist or JSON is invalid, supress error } return {}; }; const ThemeProvider = ({ children, ...props }) => { var _ref, _props$theme, _ref2, _props$colorMode, _ref3, _props$dayScheme, _ref4, _props$nightScheme; // Get fallback values from parent ThemeProvider (if exists) const { theme: fallbackTheme, colorMode: fallbackColorMode, dayScheme: fallbackDayScheme, nightScheme: fallbackNightScheme, } = useTheme(); // Initialize state const theme = (_ref = (_props$theme = props.theme) !== null && _props$theme !== void 0 ? _props$theme : fallbackTheme) !== null && _ref !== void 0 ? _ref : lib_esm_theme; const { resolvedServerColorMode } = getServerHandoff(); const resolvedColorModePassthrough = react.useRef( resolvedServerColorMode ); const [colorMode, setColorMode] = react.useState( (_ref2 = (_props$colorMode = props.colorMode) !== null && _props$colorMode !== void 0 ? _props$colorMode : fallbackColorMode) !== null && _ref2 !== void 0 ? _ref2 : defaultColorMode ); const [dayScheme, setDayScheme] = react.useState( (_ref3 = (_props$dayScheme = props.dayScheme) !== null && _props$dayScheme !== void 0 ? _props$dayScheme : fallbackDayScheme) !== null && _ref3 !== void 0 ? _ref3 : defaultDayScheme ); const [nightScheme, setNightScheme] = react.useState( (_ref4 = (_props$nightScheme = props.nightScheme) !== null && _props$nightScheme !== void 0 ? _props$nightScheme : fallbackNightScheme) !== null && _ref4 !== void 0 ? _ref4 : defaultNightScheme ); const systemColorMode = useSystemColorMode(); const resolvedColorMode = resolvedColorModePassthrough.current || resolveColorMode(colorMode, systemColorMode); const colorScheme = chooseColorScheme( resolvedColorMode, dayScheme, nightScheme ); const { resolvedTheme, resolvedColorScheme } = react.useMemo( () => applyColorScheme(theme, colorScheme), [theme, colorScheme] ); // this effect will only run on client react.useEffect( function updateColorModeAfterServerPassthrough() { const resolvedColorModeOnClient = resolveColorMode( colorMode, systemColorMode ); if (resolvedColorModePassthrough.current) { // if the resolved color mode passed on from the server is not the resolved color mode on client, change it! if ( resolvedColorModePassthrough.current !== resolvedColorModeOnClient ) { window.setTimeout(() => { // override colorMode to whatever is resolved on the client to get a re-render setColorMode(resolvedColorModeOnClient); // immediately after that, set the colorMode to what the user passed to respond to system color mode changes setColorMode(colorMode); }); } resolvedColorModePassthrough.current = null; } }, [colorMode, systemColorMode] ); // Update state if props change react.useEffect(() => { var _ref5, _props$colorMode2; setColorMode( (_ref5 = (_props$colorMode2 = props.colorMode) !== null && _props$colorMode2 !== void 0 ? _props$colorMode2 : fallbackColorMode) !== null && _ref5 !== void 0 ? _ref5 : defaultColorMode ); }, [props.colorMode, fallbackColorMode]); react.useEffect(() => { setColorMode(resolvedColorMode); }, [resolvedColorMode]); react.useEffect(() => { var _ref6, _props$dayScheme2; setDayScheme( (_ref6 = (_props$dayScheme2 = props.dayScheme) !== null && _props$dayScheme2 !== void 0 ? _props$dayScheme2 : fallbackDayScheme) !== null && _ref6 !== void 0 ? _ref6 : defaultDayScheme ); }, [props.dayScheme, fallbackDayScheme]); react.useEffect(() => { var _ref7, _props$nightScheme2; setNightScheme( (_ref7 = (_props$nightScheme2 = props.nightScheme) !== null && _props$nightScheme2 !== void 0 ? _props$nightScheme2 : fallbackNightScheme) !== null && _ref7 !== void 0 ? _ref7 : defaultNightScheme ); }, [props.nightScheme, fallbackNightScheme]); return /*#__PURE__*/ react.createElement( ThemeContext.Provider, { value: { theme: resolvedTheme, colorScheme, colorMode, resolvedColorMode, resolvedColorScheme, dayScheme, nightScheme, setColorMode, setDayScheme, setNightScheme, }, }, /*#__PURE__*/ react.createElement( Fe, { theme: resolvedTheme, }, children, props.preventSSRMismatch ? /*#__PURE__*/ react.createElement("script", { type: "application/json", id: "__PRIMER_DATA__", dangerouslySetInnerHTML: { __html: JSON.stringify({ resolvedServerColorMode: resolvedColorMode, }), }, }) : null ) ); }; ThemeProvider.displayName = "ThemeProvider"; function useTheme() { return react.useContext(ThemeContext); } function useColorSchemeVar(values, fallback) { var _values$colorScheme; const { colorScheme = "" } = useTheme(); return (_values$colorScheme = values[colorScheme]) !== null && _values$colorScheme !== void 0 ? _values$colorScheme : fallback; } function useSystemColorMode() { const [systemColorMode, setSystemColorMode] = react.useState(getSystemColorMode); react.useEffect(() => { var _window, _window$matchMedia; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition const media = (_window = window) === null || _window === void 0 ? void 0 : (_window$matchMedia = _window.matchMedia) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.call( _window, "(prefers-color-scheme: dark)" ); function handleChange(event) { const isNight = event.matches; setSystemColorMode(isNight ? "night" : "day"); } // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (media) { // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (media.addEventListener !== undefined) { media.addEventListener("change", handleChange); return function cleanup() { media.removeEventListener( "change", handleChange ); }; } // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition else if (media.addListener !== undefined) { media.addListener(handleChange); return function cleanup() { media.removeListener(handleChange); }; } } }, []); return systemColorMode; } function getSystemColorMode() { var _window$matchMedia2, _window2, _window$matchMedia2$c; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if ( typeof window !== "undefined" && (_window$matchMedia2 = (_window2 = window).matchMedia) !== null && _window$matchMedia2 !== void 0 && (_window$matchMedia2$c = _window$matchMedia2.call( _window2, "(prefers-color-scheme: dark)" )) !== null && _window$matchMedia2$c !== void 0 && _window$matchMedia2$c.matches ) { return "night"; } return "day"; } function resolveColorMode(colorMode, systemColorMode) { switch (colorMode) { case "auto": return systemColorMode; default: return colorMode; } } function chooseColorScheme(colorMode, dayScheme, nightScheme) { switch (colorMode) { case "day": return dayScheme; case "night": return nightScheme; } } function applyColorScheme(theme, colorScheme) { if (!theme.colorSchemes) { return { resolvedTheme: theme, resolvedColorScheme: undefined, }; } if (!theme.colorSchemes[colorScheme]) { // eslint-disable-next-line no-console console.error( `\`${colorScheme}\` scheme not defined in \`theme.colorSchemes\`` ); // Apply the first defined color scheme const defaultColorScheme = Object.keys( theme.colorSchemes )[0]; return { resolvedTheme: cjs_default()( theme, theme.colorSchemes[defaultColorScheme] ), resolvedColorScheme: defaultColorScheme, }; } return { resolvedTheme: cjs_default()( theme, theme.colorSchemes[colorScheme] ), resolvedColorScheme: colorScheme, }; } /* harmony default export */ var lib_esm_ThemeProvider = ThemeProvider; // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/types.js const StyledButton = styled_components_browser_esm.button.withConfig({ displayName: "types__StyledButton", componentId: "sc-ws60qy-0", })(lib_esm_sx); // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/styles.js const TEXT_ROW_HEIGHT = "20px"; // custom value off the scale const focusOutlineStyles = { outline: "2px solid", outlineColor: "accent.fg", outlineOffset: "-2px", }; const fallbackFocus = { ...focusOutlineStyles, ":not(:focus-visible)": { outline: "solid 1px transparent", }, }; const getVariantStyles = (variant = "default", theme) => { const style = { default: { color: "btn.text", backgroundColor: "btn.bg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.shadow }, ${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.insetShadow }`, "&:hover:not([disabled])": { backgroundColor: "btn.hoverBg", }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { backgroundColor: "btn.activeBg", borderColor: "btn.activeBorder", }, "&:disabled": { color: "primer.fg.disabled", "[data-component=ButtonCounter]": { color: "inherit", }, }, "&[aria-expanded=true]": { backgroundColor: "btn.activeBg", borderColor: "btn.activeBorder", }, }, primary: { color: "btn.primary.text", backgroundColor: "btn.primary.bg", borderColor: "border.subtle", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.primary.shadow }`, "&:hover:not([disabled])": { color: "btn.primary.hoverText", backgroundColor: "btn.primary.hoverBg", }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { boxShadow: "inset 0 0 0 3px", ...fallbackFocus, }, "&:focus-visible:not([disabled])": { ...focusOutlineStyles, boxShadow: "inset 0 0 0 3px", }, "&:active:not([disabled])": { backgroundColor: "btn.primary.selectedBg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.primary.selectedShadow }`, }, "&:disabled": { color: "btn.primary.disabledText", backgroundColor: "btn.primary.disabledBg", "[data-component=ButtonCounter]": { color: "inherit", }, }, "[data-component=ButtonCounter]": { backgroundColor: "btn.primary.counterBg", color: "btn.primary.text", }, "&[aria-expanded=true]": { backgroundColor: "btn.primary.selectedBg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.primary.selectedShadow }`, }, }, danger: { color: "btn.danger.text", backgroundColor: "btn.bg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.shadow }`, "&:hover:not([disabled])": { color: "btn.danger.hoverText", backgroundColor: "btn.danger.hoverBg", borderColor: "btn.danger.hoverBorder", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.danger.hoverShadow }`, "[data-component=ButtonCounter]": { backgroundColor: "btn.danger.hoverCounterBg", color: "btn.danger.hoverText", }, }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { color: "btn.danger.selectedText", backgroundColor: "btn.danger.selectedBg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.danger.selectedShadow }`, borderColor: "btn.danger.selectedBorder", }, "&:disabled": { color: "btn.danger.disabledText", backgroundColor: "btn.danger.disabledBg", borderColor: "btn.danger.disabledBorder", "[data-component=ButtonCounter]": { color: "inherit", backgroundColor: "btn.danger.disabledCounterBg", }, }, "[data-component=ButtonCounter]": { color: "btn.danger.text", backgroundColor: "btn.danger.counterBg", }, "&[aria-expanded=true]": { color: "btn.danger.selectedText", backgroundColor: "btn.danger.selectedBg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.danger.selectedShadow }`, borderColor: "btn.danger.selectedBorder", }, }, invisible: { color: "accent.fg", backgroundColor: "transparent", border: "0", boxShadow: "none", "&:hover:not([disabled])": { backgroundColor: "btn.hoverBg", }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { backgroundColor: "btn.selectedBg", }, "&:disabled": { color: "primer.fg.disabled", "[data-component=ButtonCounter]": { color: "inherit", }, }, "&[aria-expanded=true]": { backgroundColor: "btn.selectedBg", }, }, outline: { color: "btn.outline.text", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.shadow }`, borderColor: "btn.border", backgroundColor: "btn.bg", "&:hover:not([disabled])": { color: "btn.outline.hoverText", backgroundColor: "btn.outline.hoverBg", borderColor: "outline.hoverBorder", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.outline.hoverShadow }`, "[data-component=ButtonCounter]": { backgroundColor: "btn.outline.hoverCounterBg", color: "inherit", }, }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { color: "btn.outline.selectedText", backgroundColor: "btn.outline.selectedBg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.outline.selectedShadow }`, borderColor: "btn.outline.selectedBorder", }, "&:disabled": { color: "btn.outline.disabledText", backgroundColor: "btn.outline.disabledBg", borderColor: "btn.border", "[data-component=ButtonCounter]": { backgroundColor: "btn.outline.disabledCounterBg", color: "inherit", }, }, "[data-component=ButtonCounter]": { backgroundColor: "btn.outline.counterBg", color: "btn.outline.text", }, "&[aria-expanded=true]": { color: "btn.outline.selectedText", backgroundColor: "btn.outline.selectedBg", boxShadow: `${ theme === null || theme === void 0 ? void 0 : theme.shadows.btn.outline.selectedShadow }`, borderColor: "btn.outline.selectedBorder", }, }, }; return style[variant]; }; /* The button heights have to amount to small - 28 medium - 32 large - 34 In icon these have to be square. */ const getSizeStyles = ( size = "medium", variant = "default", iconOnly ) => { let paddingY, paddingX, fontSize; switch (size) { case "small": paddingY = 3; paddingX = 12; fontSize = 0; break; case "large": paddingY = 9; paddingX = 20; fontSize = 2; break; case "medium": default: paddingY = 5; paddingX = 16; fontSize = 1; } if (iconOnly) { // when `size !== 'medium'`, vertical alignment of the icon is thrown off // because changing the font size draws an em-box that does not match the // bounding box of the SVG fontSize = 1; paddingX = paddingY + 3; // to make it a square } if (variant === "invisible") { paddingY = paddingY + 1; // to make up for absence of border } return { paddingY: `${paddingY}px`, paddingX: `${paddingX}px`, fontSize, "[data-component=ButtonCounter]": { fontSize, }, }; }; const getBaseStyles = (theme) => ({ borderRadius: "2", border: "1px solid", borderColor: theme === null || theme === void 0 ? void 0 : theme.colors.btn.border, fontFamily: "inherit", fontWeight: "bold", lineHeight: TEXT_ROW_HEIGHT, whiteSpace: "nowrap", verticalAlign: "middle", cursor: "pointer", appearance: "none", userSelect: "none", textDecoration: "none", textAlign: "center", "&:disabled": { cursor: "default", }, "&:disabled svg": { opacity: "0.6", }, "@media (forced-colors: active)": { "&:focus": { // Support for Windows high contrast https://sarahmhigley.com/writing/whcm-quick-tips outline: "solid 1px transparent", }, }, }); const getButtonStyles = (theme) => { const styles = { ...getBaseStyles(theme), display: "grid", gridTemplateAreas: '"leadingIcon text trailingIcon"', "& > :not(:last-child)": { mr: "2", }, '[data-component="leadingIcon"]': { gridArea: "leadingIcon", }, '[data-component="text"]': { gridArea: "text", }, '[data-component="trailingIcon"]': { gridArea: "trailingIcon", }, }; return styles; }; // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/ButtonBase.js function ButtonBase_extends() { ButtonBase_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if ( Object.prototype.hasOwnProperty.call( source, key ) ) { target[key] = source[key]; } } } return target; }; return ButtonBase_extends.apply(this, arguments); } const ButtonBase = /*#__PURE__*/ (0, react.forwardRef)( ( { children, as: Component = "button", sx: sxProp = {}, ...props }, forwardedRef ) => { const { leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, variant = "default", size = "medium", } = props; const { theme } = useTheme(); const iconWrapStyles = { display: "inline-block", }; const sxStyles = cjs_default().all([ getButtonStyles(theme), getSizeStyles(size, variant, false), getVariantStyles(variant, theme), sxProp, ]); return /*#__PURE__*/ react.createElement( StyledButton, ButtonBase_extends( { as: Component, sx: sxStyles, }, props, { ref: forwardedRef, } ), LeadingIcon && /*#__PURE__*/ react.createElement( lib_esm_Box, { as: "span", "data-component": "leadingIcon", sx: iconWrapStyles, }, /*#__PURE__*/ react.createElement( LeadingIcon, null ) ), children && /*#__PURE__*/ react.createElement( "span", { "data-component": "text", }, children ), TrailingIcon && /*#__PURE__*/ react.createElement( lib_esm_Box, { as: "span", "data-component": "trailingIcon", sx: { ...iconWrapStyles, ml: 2 }, }, /*#__PURE__*/ react.createElement( TrailingIcon, null ) ) ); } ); // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/Button.js function Button_extends() { Button_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if ( Object.prototype.hasOwnProperty.call( source, key ) ) { target[key] = source[key]; } } } return target; }; return Button_extends.apply(this, arguments); } const ButtonComponent = /*#__PURE__*/ (0, react.forwardRef)( ({ children, ...props }, forwardedRef) => { return /*#__PURE__*/ react.createElement( ButtonBase, Button_extends( { ref: forwardedRef, }, props, { as: "button", } ), children ); } ); ButtonComponent.displayName = "Button"; // CONCATENATED MODULE: ./node_modules/@styled-system/theme-get/dist/index.esm.js var themeGet = function themeGet(path, fallback) { if (fallback === void 0) { fallback = null; } return function (props) { return get(props.theme, path, fallback); }; }; /* harmony default export */ var theme_get_dist_index_esm = /* unused pure expression or super */ null && themeGet; // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/constants.js // eslint-disable-next-line import/no-namespace const { get: getKey, compose: constants_compose, system: constants_system, } = styled_system_dist_index_esm_namespaceObject; const constants_get = (key) => themeGet(key, getKey(lib_esm_theme, key)); // Common props const COMMON = constants_compose(space, color, display); // Typography props const whiteSpace = constants_system({ whiteSpace: { property: "whiteSpace", // cssProperty: 'whiteSpace', }, }); const TYPOGRAPHY = constants_compose(typography, whiteSpace); // Border props const BORDER = constants_compose(border, shadow); // Layout props const LAYOUT = layout; // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/CounterLabel.js const colorStyles = ({ scheme, ...props }) => { return { color: scheme === "secondary" ? constants_get("colors.fg.default")(props) : scheme === "primary" ? constants_get("colors.fg.onEmphasis")(props) : constants_get("colors.fg.default")(props), }; }; const bgStyles = ({ scheme, ...props }) => { return { backgroundColor: scheme === "secondary" ? constants_get("colors.neutral.muted")(props) : scheme === "primary" ? constants_get("colors.neutral.emphasis")(props) : constants_get("colors.neutral.muted")(props), }; }; const CounterLabel = styled_components_browser_esm.span.withConfig({ displayName: "CounterLabel", componentId: "sc-13ceqbg-0", })( [ "display:inline-block;padding:2px 5px;font-size:", ";font-weight:", ";line-height:", ";border-radius:20px;", ";", ";&:empty{display:none;}", ";", ], constants_get("fontSizes.0"), constants_get("fontWeights.bold"), constants_get("lineHeights.condensedUltra"), colorStyles, bgStyles, lib_esm_sx ); /* harmony default export */ var lib_esm_CounterLabel = CounterLabel; // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/ButtonCounter.js function ButtonCounter_extends() { ButtonCounter_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if ( Object.prototype.hasOwnProperty.call( source, key ) ) { target[key] = source[key]; } } } return target; }; return ButtonCounter_extends.apply(this, arguments); } const Counter = ({ children, sx: sxProp = {}, ...props }) => { return /*#__PURE__*/ react.createElement( lib_esm_CounterLabel, ButtonCounter_extends( { "data-component": "ButtonCounter", sx: { ml: 2, ...sxProp, }, }, props ), children ); }; Counter.displayName = "Counter"; // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/index.js const Button = Object.assign(ButtonComponent, { Counter: Counter, }); // CONCATENATED MODULE: ./node_modules/@react-aria/ssr/dist/module.js // Default context value to use in case there is no SSRProvider. This is fine for // client-only apps. In order to support multiple copies of React Aria potentially // being on the page at once, the prefix is set to a random number. SSRProvider // will reset this to zero for consistency between server and client, so in the // SSR case multiple copies of React Aria is not supported. const $f01a183cc7bdff77849e49ad26eb904$var$defaultContext = { prefix: String(Math.round(Math.random() * 10000000000)), current: 0, }; const $f01a183cc7bdff77849e49ad26eb904$var$SSRContext = /*#__PURE__*/ react.createContext( $f01a183cc7bdff77849e49ad26eb904$var$defaultContext ); /** * When using SSR with React Aria, applications must be wrapped in an SSRProvider. * This ensures that auto generated ids are consistent between the client and server. */ function SSRProvider(props) { let cur = (0, react.useContext)( $f01a183cc7bdff77849e49ad26eb904$var$SSRContext ); let value = (0, react.useMemo)( () => ({ // If this is the first SSRProvider, start with an empty string prefix, otherwise // append and increment the counter. prefix: cur === $f01a183cc7bdff77849e49ad26eb904$var$defaultContext ? "" : cur.prefix + "-" + ++cur.current, current: 0, }), [cur] ); return /*#__PURE__*/ react.createElement( $f01a183cc7bdff77849e49ad26eb904$var$SSRContext.Provider, { value: value, }, props.children ); } let $f01a183cc7bdff77849e49ad26eb904$var$canUseDOM = Boolean( typeof window !== "undefined" && window.document && window.document.createElement ); /** @private */ function useSSRSafeId(defaultId) { let ctx = useContext( $f01a183cc7bdff77849e49ad26eb904$var$SSRContext ); // If we are rendering in a non-DOM environment, and there's no SSRProvider, // provide a warning to hint to the developer to add one. if ( ctx === $f01a183cc7bdff77849e49ad26eb904$var$defaultContext && !$f01a183cc7bdff77849e49ad26eb904$var$canUseDOM ) { console.warn( "When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server." ); } return useMemo( () => defaultId || "react-aria" + ctx.prefix + "-" + ++ctx.current, [defaultId] ); } /** * Returns whether the component is currently being server side rendered or * hydrated on the client. Can be used to delay browser-specific rendering * until after hydration. */ function useIsSSR() { let cur = useContext( $f01a183cc7bdff77849e49ad26eb904$var$SSRContext ); let isInSSRContext = cur !== $f01a183cc7bdff77849e49ad26eb904$var$defaultContext; let [isSSR, setIsSSR] = useState(isInSSRContext); // If on the client, and the component was initially server rendered, // then schedule a layout effect to update the component after hydration. if (typeof window !== "undefined" && isInSSRContext) { // This if statement technically breaks the rules of hooks, but is safe // because the condition never changes after mounting. // eslint-disable-next-line react-hooks/rules-of-hooks useLayoutEffect(() => { setIsSSR(false); }, []); } return isSSR; } // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/BaseStyles.js //# sourceMappingURL=module.js.map function BaseStyles_extends() { BaseStyles_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if ( Object.prototype.hasOwnProperty.call( source, key ) ) { target[key] = source[key]; } } } return target; }; return BaseStyles_extends.apply(this, arguments); } const GlobalStyle = We([ '*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}', ]); const Base = styled_components_browser_esm.div.withConfig({ displayName: "BaseStyles__Base", componentId: "sc-nfjs56-0", })(["", ";", ";"], TYPOGRAPHY, COMMON); function BaseStyles(props) { const { children, ...rest } = props; // load polyfill for :focus-visible __webpack_require__(5202); return /*#__PURE__*/ react.createElement( Base, BaseStyles_extends({}, rest, { "data-portal-root": true, }), /*#__PURE__*/ react.createElement(GlobalStyle, null), children ); } BaseStyles.displayName = "BaseStyles"; BaseStyles.defaultProps = { color: "fg.default", fontFamily: "normal", lineHeight: "default", }; /* harmony default export */ var lib_esm_BaseStyles = BaseStyles; // CONCATENATED MODULE: ./pages/_app.js var ThemedApp = function () { var ref = (0, react.useState)(false), render = ref[0], setRender = ref[1]; (0, react.useEffect)(function () { console.log("PRERENDER: useEffect"); setRender(true); }, []); console.log("Env:", "production"); console.log("PRERENDER: ".concat(render)); return /*#__PURE__*/ (0, jsx_runtime.jsx)(lib_esm_Box, { children: !!render && /*#__PURE__*/ (0, jsx_runtime.jsx)(Button, { variant: "danger", children: "Test", }), }); }; var App = function () { return /*#__PURE__*/ (0, jsx_runtime.jsx)(SSRProvider, { children: /*#__PURE__*/ (0, jsx_runtime.jsx)( lib_esm_ThemeProvider, { children: /*#__PURE__*/ (0, jsx_runtime.jsx)( lib_esm_BaseStyles, { children: /*#__PURE__*/ (0, jsx_runtime.jsx)(ThemedApp, {}), } ), } ), }); }; /* harmony default export */ var _app = App; /***/ }, /***/ 7663: /***/ function (module) { var __dirname = "/"; (function () { var e = { 162: function (e) { var t = (e.exports = {}); var r; var n; function defaultSetTimout() { throw new Error("setTimeout has not been defined"); } function defaultClearTimeout() { throw new Error( "clearTimeout has not been defined" ); } (function () { try { if (typeof setTimeout === "function") { r = setTimeout; } else { r = defaultSetTimout; } } catch (e) { r = defaultSetTimout; } try { if (typeof clearTimeout === "function") { n = clearTimeout; } else { n = defaultClearTimeout; } } catch (e) { n = defaultClearTimeout; } })(); function runTimeout(e) { if (r === setTimeout) { return setTimeout(e, 0); } if ((r === defaultSetTimout || !r) && setTimeout) { r = setTimeout; return setTimeout(e, 0); } try { return r(e, 0); } catch (t) { try { return r.call(null, e, 0); } catch (t) { return r.call(this, e, 0); } } } function runClearTimeout(e) { if (n === clearTimeout) { return clearTimeout(e); } if ( (n === defaultClearTimeout || !n) && clearTimeout ) { n = clearTimeout; return clearTimeout(e); } try { return n(e); } catch (t) { try { return n.call(null, e); } catch (t) { return n.call(this, e); } } } var i = []; var o = false; var u; var a = -1; function cleanUpNextTick() { if (!o || !u) { return; } o = false; if (u.length) { i = u.concat(i); } else { a = -1; } if (i.length) { drainQueue(); } } function drainQueue() { if (o) { return; } var e = runTimeout(cleanUpNextTick); o = true; var t = i.length; while (t) { u = i; i = []; while (++a < t) { if (u) { u[a].run(); } } a = -1; t = i.length; } u = null; o = false; runClearTimeout(e); } t.nextTick = function (e) { var t = new Array(arguments.length - 1); if (arguments.length > 1) { for (var r = 1; r < arguments.length; r++) { t[r - 1] = arguments[r]; } } i.push(new Item(e, t)); if (i.length === 1 && !o) { runTimeout(drainQueue); } }; function Item(e, t) { this.fun = e; this.array = t; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; t.title = "browser"; t.browser = true; t.env = {}; t.argv = []; t.version = ""; t.versions = {}; function noop() {} t.on = noop; t.addListener = noop; t.once = noop; t.off = noop; t.removeListener = noop; t.removeAllListeners = noop; t.emit = noop; t.prependListener = noop; t.prependOnceListener = noop; t.listeners = function (e) { return []; }; t.binding = function (e) { throw new Error("process.binding is not supported"); }; t.cwd = function () { return "/"; }; t.chdir = function (e) { throw new Error("process.chdir is not supported"); }; t.umask = function () { return 0; }; }, }; var t = {}; function __nccwpck_require__(r) { var n = t[r]; if (n !== undefined) { return n.exports; } var i = (t[r] = { exports: {} }); var o = true; try { e[r](i, i.exports, __nccwpck_require__); o = false; } finally { if (o) delete t[r]; } return i.exports; } if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/"; var r = __nccwpck_require__(162); module.exports = r; })(); /***/ }, /***/ 9921: /***/ function (__unused_webpack_module, exports) { "use strict"; var __webpack_unused_export__; /** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u; u = Symbol.for("react.module.reference"); function v(a) { if ("object" === typeof a && null !== a) { var r = a.$$typeof; switch (r) { case b: switch (((a = a.type), a)) { case d: case f: case e: case m: case n: return a; default: switch (((a = a && a.$$typeof), a)) { case k: case h: case l: case q: case p: case g: return a; default: return r; } } case c: return r; } } } __webpack_unused_export__ = h; __webpack_unused_export__ = g; __webpack_unused_export__ = b; __webpack_unused_export__ = l; __webpack_unused_export__ = d; __webpack_unused_export__ = q; __webpack_unused_export__ = p; __webpack_unused_export__ = c; __webpack_unused_export__ = f; __webpack_unused_export__ = e; __webpack_unused_export__ = m; __webpack_unused_export__ = n; __webpack_unused_export__ = function () { return !1; }; __webpack_unused_export__ = function () { return !1; }; __webpack_unused_export__ = function (a) { return v(a) === h; }; __webpack_unused_export__ = function (a) { return v(a) === g; }; __webpack_unused_export__ = function (a) { return "object" === typeof a && null !== a && a.$$typeof === b; }; __webpack_unused_export__ = function (a) { return v(a) === l; }; __webpack_unused_export__ = function (a) { return v(a) === d; }; __webpack_unused_export__ = function (a) { return v(a) === q; }; __webpack_unused_export__ = function (a) { return v(a) === p; }; __webpack_unused_export__ = function (a) { return v(a) === c; }; __webpack_unused_export__ = function (a) { return v(a) === f; }; __webpack_unused_export__ = function (a) { return v(a) === e; }; __webpack_unused_export__ = function (a) { return v(a) === m; }; __webpack_unused_export__ = function (a) { return v(a) === n; }; exports.isValidElementType = function (a) { return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || ("object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId)) ? !0 : !1; }; exports.typeOf = v; /***/ }, /***/ 9864: /***/ function ( module, __unused_webpack_exports, __webpack_require__ ) { "use strict"; if (true) { module.exports = __webpack_require__(9921); } else { } /***/ }, /***/ 6774: /***/ function (module) { // module.exports = function shallowEqual( objA, objB, compare, compareContext ) { var ret = compare ? compare.call(compareContext, objA, objB) : void 0; if (ret !== void 0) { return !!ret; } if (objA === objB) { return true; } if ( typeof objA !== "object" || !objA || typeof objB !== "object" || !objB ) { return false; } var keysA = Object.keys(objA); var keysB = Object.keys(objB); if (keysA.length !== keysB.length) { return false; } var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); // Test for A's keys different from B. for (var idx = 0; idx < keysA.length; idx++) { var key = keysA[idx]; if (!bHasOwnProperty(key)) { return false; } var valueA = objA[key]; var valueB = objB[key]; ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; if ( ret === false || (ret === void 0 && valueA !== valueB) ) { return false; } } return true; }; /***/ }, }, /******/ function (__webpack_require__) { // webpackRuntimeModules /******/ var __webpack_exec__ = function (moduleId) { return __webpack_require__((__webpack_require__.s = moduleId)); }; /******/ __webpack_require__.O(0, [774, 179], function () { return __webpack_exec__(1118), __webpack_exec__(880); }); /******/ var __webpack_exports__ = __webpack_require__.O(); /******/ _N_E = __webpack_exports__; /******/ }, ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/styled-components/1/output.js
JavaScript
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 888 ], { /***/ 7689: /***/ function(module) { // this file was prevaled // This file needs to be a JavaScript file using CommonJS to be compatible with preval // Cache bust: 2022-03-24 12:00:00 GMT (This file is cached by our deployment tooling, update this timestamp to rebuild this file) module.exports = { theme: { animation: { easeOutCubic: "cubic-bezier(0.33, 1, 0.68, 1)" }, borderWidths: [ 0, "1px" ], breakpoints: [ "544px", "768px", "1012px", "1280px" ], fonts: { normal: '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"', mono: 'SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace' }, fontSizes: [ "12px", "14px", "16px", "20px", "24px", "32px", "40px", "48px" ], fontWeights: { light: 300, normal: 400, semibold: 500, bold: 600 }, lineHeights: { condensedUltra: 1, condensed: 1.25, default: 1.5 }, radii: [ "0", "3px", "6px", "100px" ], sizes: { small: "544px", medium: "768px", large: "1012px", xlarge: "1280px" }, space: [ "0", "4px", "8px", "16px", "24px", "32px", "40px", "48px", "64px", "80px", "96px", "112px", "128px" ], colorSchemes: { light: { colors: { canvasDefaultTransparent: "rgba(255,255,255,0)", pageHeaderBg: "#f6f8fa", marketingIcon: { primary: "#218bff", secondary: "#54aeff" }, diffBlob: { addition: { numText: "#24292f", fg: "#24292f", numBg: "#CCFFD8", lineBg: "#E6FFEC", wordBg: "#ABF2BC" }, deletion: { numText: "#24292f", fg: "#24292f", numBg: "#FFD7D5", lineBg: "#FFEBE9", wordBg: "rgba(255,129,130,0.4)" }, hunk: { numBg: "rgba(84,174,255,0.4)" }, expander: { icon: "#57606a" } }, diffstat: { deletionBorder: "rgba(27,31,36,0.15)", additionBorder: "rgba(27,31,36,0.15)", additionBg: "#2da44e" }, searchKeyword: { hl: "#fff8c5" }, prettylights: { syntax: { comment: "#6e7781", constant: "#0550ae", entity: "#8250df", storageModifierImport: "#24292f", entityTag: "#116329", keyword: "#cf222e", string: "#0a3069", variable: "#953800", brackethighlighterUnmatched: "#82071e", invalidIllegalText: "#f6f8fa", invalidIllegalBg: "#82071e", carriageReturnText: "#f6f8fa", carriageReturnBg: "#cf222e", stringRegexp: "#116329", markupList: "#3b2300", markupHeading: "#0550ae", markupItalic: "#24292f", markupBold: "#24292f", markupDeletedText: "#82071e", markupDeletedBg: "#FFEBE9", markupInsertedText: "#116329", markupInsertedBg: "#dafbe1", markupChangedText: "#953800", markupChangedBg: "#ffd8b5", markupIgnoredText: "#eaeef2", markupIgnoredBg: "#0550ae", metaDiffRange: "#8250df", brackethighlighterAngle: "#57606a", sublimelinterGutterMark: "#8c959f", constantOtherReferenceLink: "#0a3069" } }, codemirror: { text: "#24292f", bg: "#ffffff", guttersBg: "#ffffff", guttermarkerText: "#ffffff", guttermarkerSubtleText: "#6e7781", linenumberText: "#57606a", cursor: "#24292f", selectionBg: "rgba(84,174,255,0.4)", activelineBg: "rgba(234,238,242,0.5)", matchingbracketText: "#24292f", linesBg: "#ffffff", syntax: { comment: "#24292f", constant: "#0550ae", entity: "#8250df", keyword: "#cf222e", storage: "#cf222e", string: "#0a3069", support: "#0550ae", variable: "#953800" } }, checks: { bg: "#24292f", textPrimary: "#f6f8fa", textSecondary: "#8c959f", textLink: "#54aeff", btnIcon: "#afb8c1", btnHoverIcon: "#f6f8fa", btnHoverBg: "rgba(255,255,255,0.125)", inputText: "#eaeef2", inputPlaceholderText: "#8c959f", inputFocusText: "#8c959f", inputBg: "#32383f", donutError: "#fa4549", donutPending: "#bf8700", donutSuccess: "#2da44e", donutNeutral: "#afb8c1", dropdownText: "#afb8c1", dropdownBg: "#32383f", dropdownBorder: "#424a53", dropdownShadow: "rgba(27,31,36,0.3)", dropdownHoverText: "#f6f8fa", dropdownHoverBg: "#424a53", dropdownBtnHoverText: "#f6f8fa", dropdownBtnHoverBg: "#32383f", scrollbarThumbBg: "#57606a", headerLabelText: "#d0d7de", headerLabelOpenText: "#f6f8fa", headerBorder: "#32383f", headerIcon: "#8c959f", lineText: "#d0d7de", lineNumText: "rgba(140,149,159,0.75)", lineTimestampText: "#8c959f", lineHoverBg: "#32383f", lineSelectedBg: "rgba(33,139,255,0.15)", lineSelectedNumText: "#54aeff", lineDtFmText: "#24292f", lineDtFmBg: "#9a6700", gateBg: "rgba(125,78,0,0.15)", gateText: "#d0d7de", gateWaitingText: "#d4a72c", stepHeaderOpenBg: "#32383f", stepErrorText: "#ff8182", stepWarningText: "#d4a72c", loglineText: "#8c959f", loglineNumText: "rgba(140,149,159,0.75)", loglineDebugText: "#c297ff", loglineErrorText: "#d0d7de", loglineErrorNumText: "#ff8182", loglineErrorBg: "rgba(164,14,38,0.15)", loglineWarningText: "#d0d7de", loglineWarningNumText: "#d4a72c", loglineWarningBg: "rgba(125,78,0,0.15)", loglineCommandText: "#54aeff", loglineSectionText: "#4ac26b", ansi: { black: "#24292f", blackBright: "#32383f", white: "#d0d7de", whiteBright: "#d0d7de", gray: "#8c959f", red: "#ff8182", redBright: "#ffaba8", green: "#4ac26b", greenBright: "#6fdd8b", yellow: "#d4a72c", yellowBright: "#eac54f", blue: "#54aeff", blueBright: "#80ccff", magenta: "#c297ff", magentaBright: "#d8b9ff", cyan: "#76e3ea", cyanBright: "#b3f0ff" } }, project: { headerBg: "#24292f", sidebarBg: "#ffffff", gradientIn: "#ffffff", gradientOut: "rgba(255,255,255,0)" }, mktg: { btn: { bg: "#1b1f23" } }, avatar: { bg: "#ffffff", border: "rgba(27,31,36,0.15)", stackFade: "#afb8c1", stackFadeMore: "#d0d7de" }, topicTag: { border: "rgba(0,0,0,0)" }, counter: { border: "rgba(0,0,0,0)" }, selectMenu: { backdropBorder: "rgba(0,0,0,0)", tapHighlight: "rgba(175,184,193,0.5)", tapFocusBg: "#b6e3ff" }, header: { text: "rgba(255,255,255,0.7)", bg: "#24292f", divider: "#57606a", logo: "#ffffff" }, headerSearch: { bg: "#24292f", border: "#57606a" }, sidenav: { selectedBg: "#ffffff" }, menu: { bgActive: "rgba(0,0,0,0)" }, input: { disabledBg: "rgba(175,184,193,0.2)" }, timeline: { badgeBg: "#eaeef2" }, ansi: { black: "#24292f", blackBright: "#57606a", white: "#6e7781", whiteBright: "#8c959f", gray: "#6e7781", red: "#cf222e", redBright: "#a40e26", green: "#116329", greenBright: "#1a7f37", yellow: "#4d2d00", yellowBright: "#633c01", blue: "#0969da", blueBright: "#218bff", magenta: "#8250df", magentaBright: "#a475f9", cyan: "#1b7c83", cyanBright: "#3192aa" }, btn: { text: "#24292f", bg: "#f6f8fa", border: "rgba(27,31,36,0.15)", hoverBg: "#f3f4f6", hoverBorder: "rgba(27,31,36,0.15)", activeBg: "hsla(220,14%,93%,1)", activeBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(220,14%,94%,1)", focusBg: "#f6f8fa", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(27,31,36,0.08)", primary: { text: "#ffffff", bg: "#2da44e", border: "rgba(27,31,36,0.15)", hoverBg: "#2c974b", hoverBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(137,55%,36%,1)", disabledText: "rgba(255,255,255,0.8)", disabledBg: "#94d3a2", disabledBorder: "rgba(27,31,36,0.15)", focusBg: "#2da44e", focusBorder: "rgba(27,31,36,0.15)", icon: "rgba(255,255,255,0.8)", counterBg: "rgba(255,255,255,0.2)" }, outline: { text: "#0969da", hoverText: "#ffffff", hoverBg: "#0969da", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(212,92%,42%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(9,105,218,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(9,105,218,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(9,105,218,0.1)" }, danger: { text: "#cf222e", hoverText: "#ffffff", hoverBg: "#a40e26", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(356,72%,44%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(207,34,46,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(207,34,46,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(207,34,46,0.1)", icon: "#cf222e", hoverIcon: "#ffffff" } }, underlinenav: { icon: "#6e7781", borderHover: "rgba(175,184,193,0.2)" }, actionListItem: { inlineDivider: "rgba(208,215,222,0.48)", default: { hoverBg: "rgba(208,215,222,0.32)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(208,215,222,0.48)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(208,215,222,0.24)" }, danger: { hoverBg: "rgba(255,235,233,0.64)", activeBg: "#FFEBE9", hoverText: "#cf222e" } }, switchTrack: { bg: "#eaeef2", border: "#afb8c1", checked: { bg: "#ddf4ff", hoverBg: "#b6e3ff", activeBg: "#80ccff", border: "#54aeff" } }, switchKnob: { checked: { bg: "#0969da", disabledBg: "#6e7781" } }, fg: { default: "#24292f", muted: "#57606a", subtle: "#6e7781", onEmphasis: "#ffffff" }, canvas: { default: "#ffffff", overlay: "#ffffff", inset: "#f6f8fa", subtle: "#f6f8fa" }, border: { default: "#d0d7de", muted: "hsla(210,18%,87%,1)", subtle: "rgba(27,31,36,0.15)" }, neutral: { emphasisPlus: "#24292f", emphasis: "#6e7781", muted: "rgba(175,184,193,0.2)", subtle: "rgba(234,238,242,0.5)" }, accent: { fg: "#0969da", emphasis: "#0969da", muted: "rgba(84,174,255,0.4)", subtle: "#ddf4ff" }, success: { fg: "#1a7f37", emphasis: "#2da44e", muted: "rgba(74,194,107,0.4)", subtle: "#dafbe1" }, attention: { fg: "#9a6700", emphasis: "#bf8700", muted: "rgba(212,167,44,0.4)", subtle: "#fff8c5" }, severe: { fg: "#bc4c00", emphasis: "#bc4c00", muted: "rgba(251,143,68,0.4)", subtle: "#fff1e5" }, danger: { fg: "#cf222e", emphasis: "#cf222e", muted: "rgba(255,129,130,0.4)", subtle: "#FFEBE9" }, open: { fg: "#1a7f37", emphasis: "#2da44e", muted: "rgba(74,194,107,0.4)", subtle: "#dafbe1" }, closed: { fg: "#cf222e", emphasis: "#cf222e", muted: "rgba(255,129,130,0.4)", subtle: "#FFEBE9" }, done: { fg: "#8250df", emphasis: "#8250df", muted: "rgba(194,151,255,0.4)", subtle: "#fbefff" }, sponsors: { fg: "#bf3989", emphasis: "#bf3989", muted: "rgba(255,128,200,0.4)", subtle: "#ffeff7" }, primer: { fg: { disabled: "#8c959f" }, canvas: { backdrop: "rgba(27,31,36,0.5)", sticky: "rgba(255,255,255,0.95)" }, border: { active: "#FD8C73", contrast: "rgba(27,31,36,0.1)" } } }, shadows: { mktg: { btn: { shadow: { outline: "rgb(0 0 0 / 15%) 0 0 0 1px inset", focus: "rgb(0 0 0 / 15%) 0 0 0 4px", hover: "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)", hoverMuted: "rgb(0 0 0 / 70%) 0 0 0 2px inset" } } }, avatar: { childShadow: "-2px -2px 0 rgba(255,255,255,0.8)" }, overlay: { shadow: "0 1px 3px rgba(27,31,36,0.12), 0 8px 24px rgba(66,74,83,0.12)" }, btn: { shadow: "0 1px 0 rgba(27,31,36,0.04)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.25)", focusShadow: "0 0 0 3px rgba(9,105,218,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(27,31,36,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(9,105,218,0.3)", primary: { shadow: "0 1px 0 rgba(27,31,36,0.1)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,45,17,0.2)", focusShadow: "0 0 0 3px rgba(45,164,78,0.4)" }, outline: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,33,85,0.2)", focusShadow: "0 0 0 3px rgba(5,80,174,0.4)" }, danger: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(76,0,20,0.2)", focusShadow: "0 0 0 3px rgba(164,14,38,0.4)" } }, shadow: { small: "0 1px 0 rgba(27,31,36,0.04)", medium: "0 3px 6px rgba(140,149,159,0.15)", large: "0 8px 24px rgba(140,149,159,0.2)", extraLarge: "0 12px 28px rgba(140,149,159,0.3)" }, primer: { shadow: { highlight: "inset 0 1px 0 rgba(255,255,255,0.25)", inset: "inset 0 1px 0 rgba(208,215,222,0.2)", focus: "0 0 0 3px rgba(9,105,218,0.3)" } } } }, light_high_contrast: { colors: { canvasDefaultTransparent: "rgba(255,255,255,0)", pageHeaderBg: "#ffffff", marketingIcon: { primary: "#1168e3", secondary: "#368cf9" }, diffBlob: { addition: { numText: "#0E1116", fg: "#ffffff", numBg: "#CCFFD8", lineBg: "#E6FFEC", wordBg: "#055d20" }, deletion: { numText: "#0E1116", fg: "#ffffff", numBg: "#FFD7D5", lineBg: "#fff0ee", wordBg: "#a0111f" }, hunk: { numBg: "#9cd7ff" }, expander: { icon: "#0E1116" } }, diffstat: { deletionBorder: "rgba(1,4,9,0.8)", additionBorder: "rgba(1,4,9,0.8)", additionBg: "#117f32" }, searchKeyword: { hl: "#fcf7be" }, prettylights: { syntax: { comment: "#66707B", constant: "#023b95", entity: "#622cbc", storageModifierImport: "#0E1116", entityTag: "#024c1a", keyword: "#a0111f", string: "#032563", variable: "#702c00", brackethighlighterUnmatched: "#6e011a", invalidIllegalText: "#FFFFFF", invalidIllegalBg: "#6e011a", carriageReturnText: "#FFFFFF", carriageReturnBg: "#a0111f", stringRegexp: "#024c1a", markupList: "#2e1800", markupHeading: "#023b95", markupItalic: "#0E1116", markupBold: "#0E1116", markupDeletedText: "#6e011a", markupDeletedBg: "#fff0ee", markupInsertedText: "#024c1a", markupInsertedBg: "#d2fedb", markupChangedText: "#702c00", markupChangedBg: "#ffc67b", markupIgnoredText: "#E7ECF0", markupIgnoredBg: "#023b95", metaDiffRange: "#622cbc", brackethighlighterAngle: "#4B535D", sublimelinterGutterMark: "#88929D", constantOtherReferenceLink: "#032563" } }, codemirror: { text: "#0E1116", bg: "#ffffff", guttersBg: "#ffffff", guttermarkerText: "#ffffff", guttermarkerSubtleText: "#66707B", linenumberText: "#0E1116", cursor: "#0E1116", selectionBg: "#368cf9", activelineBg: "#E7ECF0", matchingbracketText: "#0E1116", linesBg: "#ffffff", syntax: { comment: "#0E1116", constant: "#023b95", entity: "#622cbc", keyword: "#a0111f", storage: "#a0111f", string: "#032563", support: "#023b95", variable: "#702c00" } }, checks: { bg: "#0E1116", textPrimary: "#FFFFFF", textSecondary: "#88929D", textLink: "#368cf9", btnIcon: "#ACB6C0", btnHoverIcon: "#FFFFFF", btnHoverBg: "rgba(255,255,255,0.125)", inputText: "#E7ECF0", inputPlaceholderText: "#88929D", inputFocusText: "#88929D", inputBg: "#20252C", donutError: "#d5232c", donutPending: "#956400", donutSuccess: "#117f32", donutNeutral: "#ACB6C0", dropdownText: "#ACB6C0", dropdownBg: "#20252C", dropdownBorder: "#343B43", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#FFFFFF", dropdownHoverBg: "#343B43", dropdownBtnHoverText: "#FFFFFF", dropdownBtnHoverBg: "#20252C", scrollbarThumbBg: "#4B535D", headerLabelText: "#CED5DC", headerLabelOpenText: "#FFFFFF", headerBorder: "#20252C", headerIcon: "#88929D", lineText: "#CED5DC", lineNumText: "rgba(136,146,157,0.75)", lineTimestampText: "#88929D", lineHoverBg: "#20252C", lineSelectedBg: "rgba(17,104,227,0.15)", lineSelectedNumText: "#368cf9", lineDtFmText: "#0E1116", lineDtFmBg: "#744500", gateBg: "rgba(96,55,0,0.15)", gateText: "#CED5DC", gateWaitingText: "#b58407", stepHeaderOpenBg: "#20252C", stepErrorText: "#ee5a5d", stepWarningText: "#b58407", loglineText: "#88929D", loglineNumText: "rgba(136,146,157,0.75)", loglineDebugText: "#a371f7", loglineErrorText: "#CED5DC", loglineErrorNumText: "#ee5a5d", loglineErrorBg: "rgba(134,6,29,0.15)", loglineWarningText: "#CED5DC", loglineWarningNumText: "#b58407", loglineWarningBg: "rgba(96,55,0,0.15)", loglineCommandText: "#368cf9", loglineSectionText: "#26a148", ansi: { black: "#0E1116", blackBright: "#20252C", white: "#CED5DC", whiteBright: "#CED5DC", gray: "#88929D", red: "#ee5a5d", redBright: "#ff8e8a", green: "#26a148", greenBright: "#43c663", yellow: "#b58407", yellowBright: "#d5a824", blue: "#368cf9", blueBright: "#67b3fd", magenta: "#a371f7", magentaBright: "#c49bff", cyan: "#76e3ea", cyanBright: "#b3f0ff" } }, project: { headerBg: "#0E1116", sidebarBg: "#ffffff", gradientIn: "#ffffff", gradientOut: "rgba(255,255,255,0)" }, mktg: { btn: { bg: "#1b1f23" } }, avatar: { bg: "#ffffff", border: "rgba(1,4,9,0.8)", stackFade: "#ACB6C0", stackFadeMore: "#CED5DC" }, topicTag: { border: "#0349b4" }, counter: { border: "#20252C" }, selectMenu: { backdropBorder: "rgba(0,0,0,0)", tapHighlight: "rgba(172,182,192,0.5)", tapFocusBg: "#9cd7ff" }, header: { text: "rgba(255,255,255,0.7)", bg: "#0E1116", divider: "#ACB6C0", logo: "#ffffff" }, headerSearch: { bg: "#0E1116", border: "#4B535D" }, sidenav: { selectedBg: "#ffffff" }, menu: { bgActive: "rgba(0,0,0,0)" }, input: { disabledBg: "rgba(172,182,192,0.2)" }, timeline: { badgeBg: "#E7ECF0" }, ansi: { black: "#0E1116", blackBright: "#4B535D", white: "#66707B", whiteBright: "#88929D", gray: "#66707B", red: "#a0111f", redBright: "#86061d", green: "#024c1a", greenBright: "#055d20", yellow: "#3f2200", yellowBright: "#4e2c00", blue: "#0349b4", blueBright: "#1168e3", magenta: "#622cbc", magentaBright: "#844ae7", cyan: "#1b7c83", cyanBright: "#3192aa" }, btn: { text: "#0E1116", bg: "#E7ECF0", border: "rgba(1,4,9,0.8)", hoverBg: "#CED5DC", hoverBorder: "rgba(1,4,9,0.8)", activeBg: "#ACB6C0", activeBorder: "rgba(1,4,9,0.8)", selectedBg: "#ACB6C0", focusBg: "#CED5DC", focusBorder: "rgba(1,4,9,0.8)", counterBg: "rgba(1,4,9,0.08)", primary: { text: "#ffffff", bg: "#055d20", border: "#013d14", hoverBg: "#024c1a", hoverBorder: "#013d14", selectedBg: "hsla(139,95%,13%,1)", disabledText: "rgba(255,255,255,0.8)", disabledBg: "#94d3a2", disabledBorder: "rgba(1,4,9,0.8)", focusBg: "#013d14", focusBorder: "#013d14", icon: "rgba(255,255,255,0.8)", counterBg: "rgba(255,255,255,0.2)" }, outline: { text: "#023b95", hoverText: "#ffffff", hoverBg: "#0349b4", hoverBorder: "#022f7a", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#022f7a", selectedBorder: "#022f7a", disabledText: "rgba(3,73,180,0.5)", disabledBg: "#E7ECF0", disabledCounterBg: "rgba(3,73,180,0.05)", focusBorder: "#022f7a", counterBg: "rgba(3,73,180,0.1)" }, danger: { text: "#86061d", hoverText: "#ffffff", hoverBg: "#a0111f", hoverBorder: "#6e011a", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#6e011a", selectedBorder: "#6e011a", disabledText: "rgba(160,17,31,0.5)", disabledBg: "#E7ECF0", disabledCounterBg: "rgba(160,17,31,0.05)", focusBorder: "#6e011a", counterBg: "rgba(160,17,31,0.1)", icon: "#86061d", hoverIcon: "#ffffff" } }, underlinenav: { icon: "#66707B", borderHover: "rgba(172,182,192,0.2)" }, actionListItem: { inlineDivider: "#88929D", default: { hoverBg: "#E7ECF0", hoverBorder: "#88929D", activeBg: "#CED5DC", activeBorder: "#20252C", selectedBg: "#CED5DC" }, danger: { hoverBg: "#a0111f", activeBg: "#6e011a", hoverText: "#ffffff" } }, switchTrack: { bg: "#ffffff", border: "#20252C", checked: { bg: "#dff7ff", hoverBg: "#9cd7ff", activeBg: "#67b3fd", border: "#0349b4" } }, switchKnob: { checked: { bg: "#0349b4", disabledBg: "#66707B" } }, fg: { default: "#0E1116", muted: "#0E1116", subtle: "#66707B", onEmphasis: "#ffffff" }, canvas: { default: "#ffffff", overlay: "#ffffff", inset: "#ffffff", subtle: "#E7ECF0" }, border: { default: "#20252C", muted: "#88929D", subtle: "rgba(1,4,9,0.8)" }, neutral: { emphasisPlus: "#0E1116", emphasis: "#66707B", muted: "rgba(172,182,192,0.2)", subtle: "#E7ECF0" }, accent: { fg: "#0349b4", emphasis: "#0349b4", muted: "#368cf9", subtle: "#dff7ff" }, success: { fg: "#055d20", emphasis: "#055d20", muted: "#26a148", subtle: "#d2fedb" }, attention: { fg: "#744500", emphasis: "#744500", muted: "#b58407", subtle: "#fcf7be" }, severe: { fg: "#873800", emphasis: "#873800", muted: "#dc6d1a", subtle: "#fff2d5" }, danger: { fg: "#a0111f", emphasis: "#a0111f", muted: "#ee5a5d", subtle: "#fff0ee" }, open: { fg: "#055d20", emphasis: "#117f32", muted: "rgba(38,161,72,0.4)", subtle: "#d2fedb" }, closed: { fg: "#a0111f", emphasis: "#a0111f", muted: "rgba(238,90,93,0.4)", subtle: "#fff0ee" }, done: { fg: "#622cbc", emphasis: "#622cbc", muted: "#a371f7", subtle: "#faf0fe" }, sponsors: { fg: "#971368", emphasis: "#971368", muted: "#ed4baf", subtle: "#feeff7" }, primer: { fg: { disabled: "#88929D" }, canvas: { backdrop: "rgba(1,4,9,0.5)", sticky: "rgba(255,255,255,0.95)" }, border: { active: "#ef5b48", contrast: "rgba(1,4,9,0.1)" } } }, shadows: { mktg: { btn: { shadow: { outline: "rgb(0 0 0 / 15%) 0 0 0 1px inset", focus: "rgb(0 0 0 / 15%) 0 0 0 4px", hover: "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)", hoverMuted: "rgb(0 0 0 / 70%) 0 0 0 2px inset" } } }, avatar: { childShadow: "-2px -2px 0 rgba(255,255,255,0.8)" }, overlay: { shadow: "0 1px 3px rgba(1,4,9,0.12), 0 8px 24px rgba(52,59,67,0.12)" }, btn: { shadow: "0 1px 0 rgba(1,4,9,0.04)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.25)", focusShadow: "0 0 0 3px rgba(3,73,180,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(3,73,180,0.3)", primary: { shadow: "0 1px 0 rgba(1,4,9,0.1)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,35,11,0.2)", focusShadow: "0 0 0 3px rgba(1,61,20,0.4)" }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(2,26,74,0.2)", focusShadow: "0 0 0 3px rgba(2,59,149,0.4)" }, danger: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(67,0,17,0.2)", focusShadow: "0 0 0 3px rgba(134,6,29,0.4)" } }, shadow: { small: "0 1px 0 rgba(1,4,9,0.04)", medium: "0 3px 6px rgba(136,146,157,0.15)", large: "0 8px 24px rgba(136,146,157,0.2)", extraLarge: "0 12px 28px rgba(136,146,157,0.3)" }, primer: { shadow: { highlight: "inset 0 1px 0 rgba(255,255,255,0.25)", inset: "inset 0 1px 0 rgba(206,213,220,0.2)", focus: "0 0 0 3px rgba(3,73,180,0.3)" } } } }, light_colorblind: { colors: { canvasDefaultTransparent: "rgba(255,255,255,0)", pageHeaderBg: "#f6f8fa", marketingIcon: { primary: "#218bff", secondary: "#54aeff" }, diffBlob: { addition: { numText: "#24292f", fg: "#24292f", numBg: "rgba(84,174,255,0.4)", lineBg: "rgba(221,244,255,0.5)", wordBg: "rgba(84,174,255,0.4)" }, deletion: { numText: "#24292f", fg: "#24292f", numBg: "rgba(247,153,57,0.4)", lineBg: "rgba(255,245,232,0.5)", wordBg: "rgba(255,188,109,0.5)" }, hunk: { numBg: "rgba(84,174,255,0.4)" }, expander: { icon: "#57606a" } }, diffstat: { deletionBorder: "rgba(27,31,36,0.15)", additionBorder: "rgba(27,31,36,0.15)", additionBg: "#218bff" }, searchKeyword: { hl: "#fff8c5" }, prettylights: { syntax: { comment: "#6e7781", constant: "#0550ae", entity: "#8250df", storageModifierImport: "#24292f", entityTag: "#0550ae", keyword: "#b35900", string: "#0a3069", variable: "#8a4600", brackethighlighterUnmatched: "#6f3800", invalidIllegalText: "#f6f8fa", invalidIllegalBg: "#6f3800", carriageReturnText: "#f6f8fa", carriageReturnBg: "#b35900", stringRegexp: "#0550ae", markupList: "#3b2300", markupHeading: "#0550ae", markupItalic: "#24292f", markupBold: "#24292f", markupDeletedText: "#6f3800", markupDeletedBg: "#fff5e8", markupInsertedText: "#0550ae", markupInsertedBg: "#ddf4ff", markupChangedText: "#8a4600", markupChangedBg: "#ffddb0", markupIgnoredText: "#eaeef2", markupIgnoredBg: "#0550ae", metaDiffRange: "#8250df", brackethighlighterAngle: "#57606a", sublimelinterGutterMark: "#8c959f", constantOtherReferenceLink: "#0a3069" } }, codemirror: { text: "#24292f", bg: "#ffffff", guttersBg: "#ffffff", guttermarkerText: "#ffffff", guttermarkerSubtleText: "#6e7781", linenumberText: "#57606a", cursor: "#24292f", selectionBg: "rgba(84,174,255,0.4)", activelineBg: "rgba(234,238,242,0.5)", matchingbracketText: "#24292f", linesBg: "#ffffff", syntax: { comment: "#24292f", constant: "#0550ae", entity: "#8250df", keyword: "#b35900", storage: "#b35900", string: "#0a3069", support: "#0550ae", variable: "#8a4600" } }, checks: { bg: "#24292f", textPrimary: "#f6f8fa", textSecondary: "#8c959f", textLink: "#54aeff", btnIcon: "#afb8c1", btnHoverIcon: "#f6f8fa", btnHoverBg: "rgba(255,255,255,0.125)", inputText: "#eaeef2", inputPlaceholderText: "#8c959f", inputFocusText: "#8c959f", inputBg: "#32383f", donutError: "#dd7815", donutPending: "#bf8700", donutSuccess: "#218bff", donutNeutral: "#afb8c1", dropdownText: "#afb8c1", dropdownBg: "#32383f", dropdownBorder: "#424a53", dropdownShadow: "rgba(27,31,36,0.3)", dropdownHoverText: "#f6f8fa", dropdownHoverBg: "#424a53", dropdownBtnHoverText: "#f6f8fa", dropdownBtnHoverBg: "#32383f", scrollbarThumbBg: "#57606a", headerLabelText: "#d0d7de", headerLabelOpenText: "#f6f8fa", headerBorder: "#32383f", headerIcon: "#8c959f", lineText: "#d0d7de", lineNumText: "rgba(140,149,159,0.75)", lineTimestampText: "#8c959f", lineHoverBg: "#32383f", lineSelectedBg: "rgba(33,139,255,0.15)", lineSelectedNumText: "#54aeff", lineDtFmText: "#24292f", lineDtFmBg: "#9a6700", gateBg: "rgba(125,78,0,0.15)", gateText: "#d0d7de", gateWaitingText: "#d4a72c", stepHeaderOpenBg: "#32383f", stepErrorText: "#f79939", stepWarningText: "#d4a72c", loglineText: "#8c959f", loglineNumText: "rgba(140,149,159,0.75)", loglineDebugText: "#c297ff", loglineErrorText: "#d0d7de", loglineErrorNumText: "#f79939", loglineErrorBg: "rgba(138,70,0,0.15)", loglineWarningText: "#d0d7de", loglineWarningNumText: "#d4a72c", loglineWarningBg: "rgba(125,78,0,0.15)", loglineCommandText: "#54aeff", loglineSectionText: "#54aeff", ansi: { black: "#24292f", blackBright: "#32383f", white: "#d0d7de", whiteBright: "#d0d7de", gray: "#8c959f", red: "#f79939", redBright: "#ffbc6d", green: "#54aeff", greenBright: "#80ccff", yellow: "#d4a72c", yellowBright: "#eac54f", blue: "#54aeff", blueBright: "#80ccff", magenta: "#c297ff", magentaBright: "#d8b9ff", cyan: "#76e3ea", cyanBright: "#b3f0ff" } }, project: { headerBg: "#24292f", sidebarBg: "#ffffff", gradientIn: "#ffffff", gradientOut: "rgba(255,255,255,0)" }, mktg: { btn: { bg: "#1b1f23" } }, avatar: { bg: "#ffffff", border: "rgba(27,31,36,0.15)", stackFade: "#afb8c1", stackFadeMore: "#d0d7de" }, topicTag: { border: "rgba(0,0,0,0)" }, counter: { border: "rgba(0,0,0,0)" }, selectMenu: { backdropBorder: "rgba(0,0,0,0)", tapHighlight: "rgba(175,184,193,0.5)", tapFocusBg: "#b6e3ff" }, header: { text: "rgba(255,255,255,0.7)", bg: "#24292f", divider: "#57606a", logo: "#ffffff" }, headerSearch: { bg: "#24292f", border: "#57606a" }, sidenav: { selectedBg: "#ffffff" }, menu: { bgActive: "rgba(0,0,0,0)" }, input: { disabledBg: "rgba(175,184,193,0.2)" }, timeline: { badgeBg: "#eaeef2" }, ansi: { black: "#24292f", blackBright: "#57606a", white: "#6e7781", whiteBright: "#8c959f", gray: "#6e7781", red: "#b35900", redBright: "#8a4600", green: "#0550ae", greenBright: "#0969da", yellow: "#4d2d00", yellowBright: "#633c01", blue: "#0969da", blueBright: "#218bff", magenta: "#8250df", magentaBright: "#a475f9", cyan: "#1b7c83", cyanBright: "#3192aa" }, btn: { text: "#24292f", bg: "#f6f8fa", border: "rgba(27,31,36,0.15)", hoverBg: "#f3f4f6", hoverBorder: "rgba(27,31,36,0.15)", activeBg: "hsla(220,14%,93%,1)", activeBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(220,14%,94%,1)", focusBg: "#f6f8fa", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(27,31,36,0.08)", primary: { text: "#ffffff", bg: "#218bff", border: "rgba(27,31,36,0.15)", hoverBg: "#0969da", hoverBorder: "rgba(27,31,36,0.15)", selectedBg: "hsla(212,92%,43%,1)", disabledText: "rgba(255,255,255,0.8)", disabledBg: "#80ccff", disabledBorder: "rgba(27,31,36,0.15)", focusBg: "#218bff", focusBorder: "rgba(27,31,36,0.15)", icon: "rgba(255,255,255,0.8)", counterBg: "rgba(255,255,255,0.2)" }, outline: { text: "#0969da", hoverText: "#ffffff", hoverBg: "#0969da", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(212,92%,42%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(9,105,218,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(9,105,218,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(9,105,218,0.1)" }, danger: { text: "#b35900", hoverText: "#ffffff", hoverBg: "#8a4600", hoverBorder: "rgba(27,31,36,0.15)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "hsla(30,100%,32%,1)", selectedBorder: "rgba(27,31,36,0.15)", disabledText: "rgba(179,89,0,0.5)", disabledBg: "#f6f8fa", disabledCounterBg: "rgba(179,89,0,0.05)", focusBorder: "rgba(27,31,36,0.15)", counterBg: "rgba(179,89,0,0.1)", icon: "#b35900", hoverIcon: "#ffffff" } }, underlinenav: { icon: "#6e7781", borderHover: "rgba(175,184,193,0.2)" }, actionListItem: { inlineDivider: "rgba(208,215,222,0.48)", default: { hoverBg: "rgba(208,215,222,0.32)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(208,215,222,0.48)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(208,215,222,0.24)" }, danger: { hoverBg: "rgba(255,245,232,0.64)", activeBg: "#fff5e8", hoverText: "#b35900" } }, switchTrack: { bg: "#eaeef2", border: "#afb8c1", checked: { bg: "#ddf4ff", hoverBg: "#b6e3ff", activeBg: "#80ccff", border: "#54aeff" } }, switchKnob: { checked: { bg: "#0969da", disabledBg: "#6e7781" } }, fg: { default: "#24292f", muted: "#57606a", subtle: "#6e7781", onEmphasis: "#ffffff" }, canvas: { default: "#ffffff", overlay: "#ffffff", inset: "#f6f8fa", subtle: "#f6f8fa" }, border: { default: "#d0d7de", muted: "hsla(210,18%,87%,1)", subtle: "rgba(27,31,36,0.15)" }, neutral: { emphasisPlus: "#24292f", emphasis: "#6e7781", muted: "rgba(175,184,193,0.2)", subtle: "rgba(234,238,242,0.5)" }, accent: { fg: "#0969da", emphasis: "#0969da", muted: "rgba(84,174,255,0.4)", subtle: "#ddf4ff" }, success: { fg: "#0969da", emphasis: "#218bff", muted: "rgba(84,174,255,0.4)", subtle: "#ddf4ff" }, attention: { fg: "#9a6700", emphasis: "#bf8700", muted: "rgba(212,167,44,0.4)", subtle: "#fff8c5" }, severe: { fg: "#b35900", emphasis: "#b35900", muted: "rgba(247,153,57,0.4)", subtle: "#fff5e8" }, danger: { fg: "#b35900", emphasis: "#b35900", muted: "rgba(247,153,57,0.4)", subtle: "#fff5e8" }, open: { fg: "#b35900", emphasis: "#dd7815", muted: "rgba(247,153,57,0.4)", subtle: "#fff5e8" }, closed: { fg: "#6e7781", emphasis: "#6e7781", muted: "rgba(175,184,193,0.4)", subtle: "#f6f8fa" }, done: { fg: "#8250df", emphasis: "#8250df", muted: "rgba(194,151,255,0.4)", subtle: "#fbefff" }, sponsors: { fg: "#bf3989", emphasis: "#bf3989", muted: "rgba(255,128,200,0.4)", subtle: "#ffeff7" }, primer: { fg: { disabled: "#8c959f" }, canvas: { backdrop: "rgba(27,31,36,0.5)", sticky: "rgba(255,255,255,0.95)" }, border: { active: "#FD8C73", contrast: "rgba(27,31,36,0.1)" } } }, shadows: { mktg: { btn: { shadow: { outline: "rgb(0 0 0 / 15%) 0 0 0 1px inset", focus: "rgb(0 0 0 / 15%) 0 0 0 4px", hover: "0 3px 2px rgba(0, 0, 0, 0.07), 0 7px 5px rgba(0, 0, 0, 0.04), 0 12px 10px rgba(0, 0, 0, 0.03), 0 22px 18px rgba(0, 0, 0, 0.03), 0 42px 33px rgba(0, 0, 0, 0.02), 0 100px 80px rgba(0, 0, 0, 0.02)", hoverMuted: "rgb(0 0 0 / 70%) 0 0 0 2px inset" } } }, avatar: { childShadow: "-2px -2px 0 rgba(255,255,255,0.8)" }, overlay: { shadow: "0 1px 3px rgba(27,31,36,0.12), 0 8px 24px rgba(66,74,83,0.12)" }, btn: { shadow: "0 1px 0 rgba(27,31,36,0.04)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.25)", focusShadow: "0 0 0 3px rgba(9,105,218,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(27,31,36,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(9,105,218,0.3)", primary: { shadow: "0 1px 0 rgba(27,31,36,0.1)", insetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,33,85,0.2)", focusShadow: "0 0 0 3px rgba(33,139,255,0.4)" }, outline: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(0,33,85,0.2)", focusShadow: "0 0 0 3px rgba(5,80,174,0.4)" }, danger: { hoverShadow: "0 1px 0 rgba(27,31,36,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "inset 0 1px 0 rgba(65,32,0,0.2)", focusShadow: "0 0 0 3px rgba(138,70,0,0.4)" } }, shadow: { small: "0 1px 0 rgba(27,31,36,0.04)", medium: "0 3px 6px rgba(140,149,159,0.15)", large: "0 8px 24px rgba(140,149,159,0.2)", extraLarge: "0 12px 28px rgba(140,149,159,0.3)" }, primer: { shadow: { highlight: "inset 0 1px 0 rgba(255,255,255,0.25)", inset: "inset 0 1px 0 rgba(208,215,222,0.2)", focus: "0 0 0 3px rgba(9,105,218,0.3)" } } } }, dark: { colors: { canvasDefaultTransparent: "rgba(13,17,23,0)", pageHeaderBg: "#0d1117", marketingIcon: { primary: "#79c0ff", secondary: "#1f6feb" }, diffBlob: { addition: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(63,185,80,0.3)", lineBg: "rgba(46,160,67,0.15)", wordBg: "rgba(46,160,67,0.4)" }, deletion: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(248,81,73,0.3)", lineBg: "rgba(248,81,73,0.15)", wordBg: "rgba(248,81,73,0.4)" }, hunk: { numBg: "rgba(56,139,253,0.4)" }, expander: { icon: "#8b949e" } }, diffstat: { deletionBorder: "rgba(240,246,252,0.1)", additionBorder: "rgba(240,246,252,0.1)", additionBg: "#3fb950" }, searchKeyword: { hl: "rgba(210,153,34,0.4)" }, prettylights: { syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", storageModifierImport: "#c9d1d9", entityTag: "#7ee787", keyword: "#ff7b72", string: "#a5d6ff", variable: "#ffa657", brackethighlighterUnmatched: "#f85149", invalidIllegalText: "#f0f6fc", invalidIllegalBg: "#8e1519", carriageReturnText: "#f0f6fc", carriageReturnBg: "#b62324", stringRegexp: "#7ee787", markupList: "#f2cc60", markupHeading: "#1f6feb", markupItalic: "#c9d1d9", markupBold: "#c9d1d9", markupDeletedText: "#ffdcd7", markupDeletedBg: "#67060c", markupInsertedText: "#aff5b4", markupInsertedBg: "#033a16", markupChangedText: "#ffdfb6", markupChangedBg: "#5a1e02", markupIgnoredText: "#c9d1d9", markupIgnoredBg: "#1158c7", metaDiffRange: "#d2a8ff", brackethighlighterAngle: "#8b949e", sublimelinterGutterMark: "#484f58", constantOtherReferenceLink: "#a5d6ff" } }, codemirror: { text: "#c9d1d9", bg: "#0d1117", guttersBg: "#0d1117", guttermarkerText: "#0d1117", guttermarkerSubtleText: "#6e7681", linenumberText: "#8b949e", cursor: "#c9d1d9", selectionBg: "rgba(56,139,253,0.4)", activelineBg: "rgba(110,118,129,0.1)", matchingbracketText: "#c9d1d9", linesBg: "#0d1117", syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", keyword: "#ff7b72", storage: "#ff7b72", string: "#a5d6ff", support: "#79c0ff", variable: "#ffa657" } }, checks: { bg: "#010409", textPrimary: "#c9d1d9", textSecondary: "#8b949e", textLink: "#58a6ff", btnIcon: "#8b949e", btnHoverIcon: "#c9d1d9", btnHoverBg: "rgba(110,118,129,0.1)", inputText: "#8b949e", inputPlaceholderText: "#6e7681", inputFocusText: "#c9d1d9", inputBg: "#161b22", donutError: "#f85149", donutPending: "#d29922", donutSuccess: "#2ea043", donutNeutral: "#8b949e", dropdownText: "#c9d1d9", dropdownBg: "#161b22", dropdownBorder: "#30363d", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#c9d1d9", dropdownHoverBg: "rgba(110,118,129,0.1)", dropdownBtnHoverText: "#c9d1d9", dropdownBtnHoverBg: "rgba(110,118,129,0.1)", scrollbarThumbBg: "rgba(110,118,129,0.4)", headerLabelText: "#8b949e", headerLabelOpenText: "#c9d1d9", headerBorder: "#21262d", headerIcon: "#8b949e", lineText: "#8b949e", lineNumText: "#6e7681", lineTimestampText: "#6e7681", lineHoverBg: "rgba(110,118,129,0.1)", lineSelectedBg: "rgba(56,139,253,0.15)", lineSelectedNumText: "#58a6ff", lineDtFmText: "#ffffff", lineDtFmBg: "#9e6a03", gateBg: "rgba(187,128,9,0.15)", gateText: "#8b949e", gateWaitingText: "#d29922", stepHeaderOpenBg: "#161b22", stepErrorText: "#f85149", stepWarningText: "#d29922", loglineText: "#8b949e", loglineNumText: "#6e7681", loglineDebugText: "#a371f7", loglineErrorText: "#8b949e", loglineErrorNumText: "#6e7681", loglineErrorBg: "rgba(248,81,73,0.15)", loglineWarningText: "#8b949e", loglineWarningNumText: "#d29922", loglineWarningBg: "rgba(187,128,9,0.15)", loglineCommandText: "#58a6ff", loglineSectionText: "#3fb950", ansi: { black: "#0d1117", blackBright: "#161b22", white: "#b1bac4", whiteBright: "#b1bac4", gray: "#6e7681", red: "#ff7b72", redBright: "#ffa198", green: "#3fb950", greenBright: "#56d364", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#76e3ea", cyanBright: "#b3f0ff" } }, project: { headerBg: "#0d1117", sidebarBg: "#161b22", gradientIn: "#161b22", gradientOut: "rgba(22,27,34,0)" }, mktg: { btn: { bg: "#f6f8fa" } }, avatar: { bg: "rgba(255,255,255,0.1)", border: "rgba(240,246,252,0.1)", stackFade: "#30363d", stackFadeMore: "#21262d" }, topicTag: { border: "rgba(0,0,0,0)" }, counter: { border: "rgba(0,0,0,0)" }, selectMenu: { backdropBorder: "#484f58", tapHighlight: "rgba(48,54,61,0.5)", tapFocusBg: "#0c2d6b" }, header: { text: "rgba(255,255,255,0.7)", bg: "#161b22", divider: "#8b949e", logo: "#f0f6fc" }, headerSearch: { bg: "#0d1117", border: "#30363d" }, sidenav: { selectedBg: "#21262d" }, menu: { bgActive: "#161b22" }, input: { disabledBg: "rgba(110,118,129,0)" }, timeline: { badgeBg: "#21262d" }, ansi: { black: "#484f58", blackBright: "#6e7681", white: "#b1bac4", whiteBright: "#ffffff", gray: "#6e7681", red: "#ff7b72", redBright: "#ffa198", green: "#3fb950", greenBright: "#56d364", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#39c5cf", cyanBright: "#56d4dd" }, btn: { text: "#c9d1d9", bg: "#21262d", border: "rgba(240,246,252,0.1)", hoverBg: "#30363d", hoverBorder: "#8b949e", activeBg: "hsla(212,12%,18%,1)", activeBorder: "#6e7681", selectedBg: "#161b22", focusBg: "#21262d", focusBorder: "#8b949e", counterBg: "#30363d", primary: { text: "#ffffff", bg: "#238636", border: "rgba(240,246,252,0.1)", hoverBg: "#2ea043", hoverBorder: "rgba(240,246,252,0.1)", selectedBg: "#238636", disabledText: "rgba(255,255,255,0.5)", disabledBg: "rgba(35,134,54,0.6)", disabledBorder: "rgba(240,246,252,0.1)", focusBg: "#238636", focusBorder: "rgba(240,246,252,0.1)", icon: "#ffffff", counterBg: "rgba(255,255,255,0.2)" }, outline: { text: "#58a6ff", hoverText: "#58a6ff", hoverBg: "#30363d", hoverBorder: "rgba(240,246,252,0.1)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#0d419d", selectedBorder: "rgba(240,246,252,0.1)", disabledText: "rgba(88,166,255,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(31,111,235,0.05)", focusBorder: "rgba(240,246,252,0.1)", counterBg: "rgba(31,111,235,0.1)" }, danger: { text: "#f85149", hoverText: "#ffffff", hoverBg: "#da3633", hoverBorder: "#f85149", hoverIcon: "#ffffff", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#b62324", selectedBorder: "#ff7b72", disabledText: "rgba(248,81,73,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(218,54,51,0.05)", focusBorder: "#f85149", counterBg: "rgba(218,54,51,0.1)", icon: "#f85149" } }, underlinenav: { icon: "#6e7681", borderHover: "rgba(110,118,129,0.4)" }, actionListItem: { inlineDivider: "rgba(48,54,61,0.48)", default: { hoverBg: "rgba(177,186,196,0.12)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(177,186,196,0.2)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(177,186,196,0.08)" }, danger: { hoverBg: "rgba(248,81,73,0.16)", activeBg: "rgba(248,81,73,0.24)", hoverText: "#ff7b72" } }, switchTrack: { bg: "#010409", border: "#6e7681", checked: { bg: "rgba(31,111,235,0.35)", hoverBg: "rgba(31,111,235,0.5)", activeBg: "rgba(31,111,235,0.65)", border: "#58a6ff" } }, switchKnob: { checked: { bg: "#1f6feb", disabledBg: "#484f58" } }, fg: { default: "#c9d1d9", muted: "#8b949e", subtle: "#6e7681", onEmphasis: "#ffffff" }, canvas: { default: "#0d1117", overlay: "#161b22", inset: "#010409", subtle: "#161b22" }, border: { default: "#30363d", muted: "#21262d", subtle: "rgba(240,246,252,0.1)" }, neutral: { emphasisPlus: "#6e7681", emphasis: "#6e7681", muted: "rgba(110,118,129,0.4)", subtle: "rgba(110,118,129,0.1)" }, accent: { fg: "#58a6ff", emphasis: "#1f6feb", muted: "rgba(56,139,253,0.4)", subtle: "rgba(56,139,253,0.15)" }, success: { fg: "#3fb950", emphasis: "#238636", muted: "rgba(46,160,67,0.4)", subtle: "rgba(46,160,67,0.15)" }, attention: { fg: "#d29922", emphasis: "#9e6a03", muted: "rgba(187,128,9,0.4)", subtle: "rgba(187,128,9,0.15)" }, severe: { fg: "#db6d28", emphasis: "#bd561d", muted: "rgba(219,109,40,0.4)", subtle: "rgba(219,109,40,0.15)" }, danger: { fg: "#f85149", emphasis: "#da3633", muted: "rgba(248,81,73,0.4)", subtle: "rgba(248,81,73,0.15)" }, open: { fg: "#3fb950", emphasis: "#238636", muted: "rgba(46,160,67,0.4)", subtle: "rgba(46,160,67,0.15)" }, closed: { fg: "#f85149", emphasis: "#da3633", muted: "rgba(248,81,73,0.4)", subtle: "rgba(248,81,73,0.15)" }, done: { fg: "#a371f7", emphasis: "#8957e5", muted: "rgba(163,113,247,0.4)", subtle: "rgba(163,113,247,0.15)" }, sponsors: { fg: "#db61a2", emphasis: "#bf4b8a", muted: "rgba(219,97,162,0.4)", subtle: "rgba(219,97,162,0.15)" }, primer: { fg: { disabled: "#484f58" }, canvas: { backdrop: "rgba(1,4,9,0.8)", sticky: "rgba(13,17,23,0.95)" }, border: { active: "#F78166", contrast: "rgba(255,255,255,0.2)" } } }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)" }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset" } } }, avatar: { childShadow: "-2px -2px 0 #0d1117" }, overlay: { shadow: "0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,0.85)" }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(139,148,158,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(31,111,235,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)" }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(17,88,199,0.4)" }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(248,81,73,0.4)" } }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #010409", large: "0 8px 24px #010409", extraLarge: "0 12px 48px #010409" }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #0c2d6b" } } } }, dark_dimmed: { colors: { canvasDefaultTransparent: "rgba(34,39,46,0)", pageHeaderBg: "#22272e", marketingIcon: { primary: "#6cb6ff", secondary: "#316dca" }, diffBlob: { addition: { numText: "#adbac7", fg: "#adbac7", numBg: "rgba(87,171,90,0.3)", lineBg: "rgba(70,149,74,0.15)", wordBg: "rgba(70,149,74,0.4)" }, deletion: { numText: "#adbac7", fg: "#adbac7", numBg: "rgba(229,83,75,0.3)", lineBg: "rgba(229,83,75,0.15)", wordBg: "rgba(229,83,75,0.4)" }, hunk: { numBg: "rgba(65,132,228,0.4)" }, expander: { icon: "#768390" } }, diffstat: { deletionBorder: "rgba(205,217,229,0.1)", additionBorder: "rgba(205,217,229,0.1)", additionBg: "#57ab5a" }, searchKeyword: { hl: "rgba(198,144,38,0.4)" }, prettylights: { syntax: { comment: "#768390", constant: "#6cb6ff", entity: "#dcbdfb", storageModifierImport: "#adbac7", entityTag: "#8ddb8c", keyword: "#f47067", string: "#96d0ff", variable: "#f69d50", brackethighlighterUnmatched: "#e5534b", invalidIllegalText: "#cdd9e5", invalidIllegalBg: "#922323", carriageReturnText: "#cdd9e5", carriageReturnBg: "#ad2e2c", stringRegexp: "#8ddb8c", markupList: "#eac55f", markupHeading: "#316dca", markupItalic: "#adbac7", markupBold: "#adbac7", markupDeletedText: "#ffd8d3", markupDeletedBg: "#78191b", markupInsertedText: "#b4f1b4", markupInsertedBg: "#1b4721", markupChangedText: "#ffddb0", markupChangedBg: "#682d0f", markupIgnoredText: "#adbac7", markupIgnoredBg: "#255ab2", metaDiffRange: "#dcbdfb", brackethighlighterAngle: "#768390", sublimelinterGutterMark: "#545d68", constantOtherReferenceLink: "#96d0ff" } }, codemirror: { text: "#adbac7", bg: "#22272e", guttersBg: "#22272e", guttermarkerText: "#22272e", guttermarkerSubtleText: "#636e7b", linenumberText: "#768390", cursor: "#adbac7", selectionBg: "rgba(65,132,228,0.4)", activelineBg: "rgba(99,110,123,0.1)", matchingbracketText: "#adbac7", linesBg: "#22272e", syntax: { comment: "#768390", constant: "#6cb6ff", entity: "#dcbdfb", keyword: "#f47067", storage: "#f47067", string: "#96d0ff", support: "#6cb6ff", variable: "#f69d50" } }, checks: { bg: "#1c2128", textPrimary: "#adbac7", textSecondary: "#768390", textLink: "#539bf5", btnIcon: "#768390", btnHoverIcon: "#adbac7", btnHoverBg: "rgba(99,110,123,0.1)", inputText: "#768390", inputPlaceholderText: "#636e7b", inputFocusText: "#adbac7", inputBg: "#2d333b", donutError: "#e5534b", donutPending: "#c69026", donutSuccess: "#46954a", donutNeutral: "#768390", dropdownText: "#adbac7", dropdownBg: "#2d333b", dropdownBorder: "#444c56", dropdownShadow: "rgba(28,33,40,0.3)", dropdownHoverText: "#adbac7", dropdownHoverBg: "rgba(99,110,123,0.1)", dropdownBtnHoverText: "#adbac7", dropdownBtnHoverBg: "rgba(99,110,123,0.1)", scrollbarThumbBg: "rgba(99,110,123,0.4)", headerLabelText: "#768390", headerLabelOpenText: "#adbac7", headerBorder: "#373e47", headerIcon: "#768390", lineText: "#768390", lineNumText: "#636e7b", lineTimestampText: "#636e7b", lineHoverBg: "rgba(99,110,123,0.1)", lineSelectedBg: "rgba(65,132,228,0.15)", lineSelectedNumText: "#539bf5", lineDtFmText: "#cdd9e5", lineDtFmBg: "#966600", gateBg: "rgba(174,124,20,0.15)", gateText: "#768390", gateWaitingText: "#c69026", stepHeaderOpenBg: "#2d333b", stepErrorText: "#e5534b", stepWarningText: "#c69026", loglineText: "#768390", loglineNumText: "#636e7b", loglineDebugText: "#986ee2", loglineErrorText: "#768390", loglineErrorNumText: "#636e7b", loglineErrorBg: "rgba(229,83,75,0.15)", loglineWarningText: "#768390", loglineWarningNumText: "#c69026", loglineWarningBg: "rgba(174,124,20,0.15)", loglineCommandText: "#539bf5", loglineSectionText: "#57ab5a", ansi: { black: "#22272e", blackBright: "#2d333b", white: "#909dab", whiteBright: "#909dab", gray: "#636e7b", red: "#f47067", redBright: "#ff938a", green: "#57ab5a", greenBright: "#6bc46d", yellow: "#c69026", yellowBright: "#daaa3f", blue: "#539bf5", blueBright: "#6cb6ff", magenta: "#b083f0", magentaBright: "#dcbdfb", cyan: "#76e3ea", cyanBright: "#b3f0ff" } }, project: { headerBg: "#22272e", sidebarBg: "#2d333b", gradientIn: "#2d333b", gradientOut: "rgba(45,51,59,0)" }, mktg: { btn: { bg: "#f6f8fa" } }, avatar: { bg: "rgba(205,217,229,0.1)", border: "rgba(205,217,229,0.1)", stackFade: "#444c56", stackFadeMore: "#373e47" }, topicTag: { border: "rgba(0,0,0,0)" }, counter: { border: "rgba(0,0,0,0)" }, selectMenu: { backdropBorder: "#545d68", tapHighlight: "rgba(68,76,86,0.5)", tapFocusBg: "#143d79" }, header: { text: "rgba(205,217,229,0.7)", bg: "#2d333b", divider: "#768390", logo: "#cdd9e5" }, headerSearch: { bg: "#22272e", border: "#444c56" }, sidenav: { selectedBg: "#373e47" }, menu: { bgActive: "#2d333b" }, input: { disabledBg: "rgba(99,110,123,0)" }, timeline: { badgeBg: "#373e47" }, ansi: { black: "#545d68", blackBright: "#636e7b", white: "#909dab", whiteBright: "#cdd9e5", gray: "#636e7b", red: "#f47067", redBright: "#ff938a", green: "#57ab5a", greenBright: "#6bc46d", yellow: "#c69026", yellowBright: "#daaa3f", blue: "#539bf5", blueBright: "#6cb6ff", magenta: "#b083f0", magentaBright: "#dcbdfb", cyan: "#39c5cf", cyanBright: "#56d4dd" }, btn: { text: "#adbac7", bg: "#373e47", border: "rgba(205,217,229,0.1)", hoverBg: "#444c56", hoverBorder: "#768390", activeBg: "hsla(213,12%,27%,1)", activeBorder: "#636e7b", selectedBg: "#2d333b", focusBg: "#373e47", focusBorder: "#768390", counterBg: "#444c56", primary: { text: "#ffffff", bg: "#347d39", border: "rgba(205,217,229,0.1)", hoverBg: "#46954a", hoverBorder: "rgba(205,217,229,0.1)", selectedBg: "#347d39", disabledText: "rgba(205,217,229,0.5)", disabledBg: "rgba(52,125,57,0.6)", disabledBorder: "rgba(205,217,229,0.1)", focusBg: "#347d39", focusBorder: "rgba(205,217,229,0.1)", icon: "#cdd9e5", counterBg: "rgba(205,217,229,0.2)" }, outline: { text: "#539bf5", hoverText: "#539bf5", hoverBg: "#444c56", hoverBorder: "rgba(205,217,229,0.1)", hoverCounterBg: "rgba(205,217,229,0.2)", selectedText: "#cdd9e5", selectedBg: "#1b4b91", selectedBorder: "rgba(205,217,229,0.1)", disabledText: "rgba(83,155,245,0.5)", disabledBg: "#22272e", disabledCounterBg: "rgba(49,109,202,0.05)", focusBorder: "rgba(205,217,229,0.1)", counterBg: "rgba(49,109,202,0.1)" }, danger: { text: "#e5534b", hoverText: "#cdd9e5", hoverBg: "#c93c37", hoverBorder: "#e5534b", hoverIcon: "#cdd9e5", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#ad2e2c", selectedBorder: "#f47067", disabledText: "rgba(229,83,75,0.5)", disabledBg: "#22272e", disabledCounterBg: "rgba(201,60,55,0.05)", focusBorder: "#e5534b", counterBg: "rgba(201,60,55,0.1)", icon: "#e5534b" } }, underlinenav: { icon: "#636e7b", borderHover: "rgba(99,110,123,0.4)" }, actionListItem: { inlineDivider: "rgba(68,76,86,0.48)", default: { hoverBg: "rgba(144,157,171,0.12)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(144,157,171,0.2)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(144,157,171,0.08)" }, danger: { hoverBg: "rgba(229,83,75,0.16)", activeBg: "rgba(229,83,75,0.24)", hoverText: "#f47067" } }, switchTrack: { bg: "#1c2128", border: "#636e7b", checked: { bg: "rgba(49,109,202,0.35)", hoverBg: "rgba(49,109,202,0.5)", activeBg: "rgba(49,109,202,0.65)", border: "#539bf5" } }, switchKnob: { checked: { bg: "#316dca", disabledBg: "#545d68" } }, fg: { default: "#adbac7", muted: "#768390", subtle: "#636e7b", onEmphasis: "#cdd9e5" }, canvas: { default: "#22272e", overlay: "#2d333b", inset: "#1c2128", subtle: "#2d333b" }, border: { default: "#444c56", muted: "#373e47", subtle: "rgba(205,217,229,0.1)" }, neutral: { emphasisPlus: "#636e7b", emphasis: "#636e7b", muted: "rgba(99,110,123,0.4)", subtle: "rgba(99,110,123,0.1)" }, accent: { fg: "#539bf5", emphasis: "#316dca", muted: "rgba(65,132,228,0.4)", subtle: "rgba(65,132,228,0.15)" }, success: { fg: "#57ab5a", emphasis: "#347d39", muted: "rgba(70,149,74,0.4)", subtle: "rgba(70,149,74,0.15)" }, attention: { fg: "#c69026", emphasis: "#966600", muted: "rgba(174,124,20,0.4)", subtle: "rgba(174,124,20,0.15)" }, severe: { fg: "#cc6b2c", emphasis: "#ae5622", muted: "rgba(204,107,44,0.4)", subtle: "rgba(204,107,44,0.15)" }, danger: { fg: "#e5534b", emphasis: "#c93c37", muted: "rgba(229,83,75,0.4)", subtle: "rgba(229,83,75,0.15)" }, open: { fg: "#57ab5a", emphasis: "#347d39", muted: "rgba(70,149,74,0.4)", subtle: "rgba(70,149,74,0.15)" }, closed: { fg: "#e5534b", emphasis: "#c93c37", muted: "rgba(229,83,75,0.4)", subtle: "rgba(229,83,75,0.15)" }, done: { fg: "#986ee2", emphasis: "#8256d0", muted: "rgba(152,110,226,0.4)", subtle: "rgba(152,110,226,0.15)" }, sponsors: { fg: "#c96198", emphasis: "#ae4c82", muted: "rgba(201,97,152,0.4)", subtle: "rgba(201,97,152,0.15)" }, primer: { fg: { disabled: "#545d68" }, canvas: { backdrop: "rgba(28,33,40,0.8)", sticky: "rgba(34,39,46,0.95)" }, border: { active: "#EC775C", contrast: "rgba(205,217,229,0.2)" } } }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)" }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset" } } }, avatar: { childShadow: "-2px -2px 0 #22272e" }, overlay: { shadow: "0 0 0 1px #444c56, 0 16px 32px rgba(28,33,40,0.85)" }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(118,131,144,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(28,33,40,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(49,109,202,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)" }, outline: { hoverShadow: "0 1px 0 rgba(28,33,40,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(205,217,229,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(37,90,178,0.4)" }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(229,83,75,0.4)" } }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #1c2128", large: "0 8px 24px #1c2128", extraLarge: "0 12px 48px #1c2128" }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #143d79" } } } }, dark_high_contrast: { colors: { canvasDefaultTransparent: "rgba(10,12,16,0)", pageHeaderBg: "#0a0c10", marketingIcon: { primary: "#91cbff", secondary: "#409eff" }, diffBlob: { addition: { numText: "#f0f3f6", fg: "#0a0c10", numBg: "rgba(38,205,77,0.3)", lineBg: "rgba(9,180,58,0.15)", wordBg: "#09b43a" }, deletion: { numText: "#f0f3f6", fg: "#0a0c10", numBg: "rgba(255,106,105,0.3)", lineBg: "rgba(255,106,105,0.15)", wordBg: "#ff6a69" }, hunk: { numBg: "rgba(64,158,255,0.4)" }, expander: { icon: "#f0f3f6" } }, diffstat: { deletionBorder: "#ffb1af", additionBorder: "#4ae168", additionBg: "#26cd4d" }, searchKeyword: { hl: "rgba(240,183,47,0.4)" }, prettylights: { syntax: { comment: "#bdc4cc", constant: "#91cbff", entity: "#dbb7ff", storageModifierImport: "#f0f3f6", entityTag: "#72f088", keyword: "#ff9492", string: "#addcff", variable: "#ffb757", brackethighlighterUnmatched: "#ff6a69", invalidIllegalText: "#ffffff", invalidIllegalBg: "#e82a2f", carriageReturnText: "#ffffff", carriageReturnBg: "#ff4445", stringRegexp: "#72f088", markupList: "#fbd669", markupHeading: "#409eff", markupItalic: "#f0f3f6", markupBold: "#f0f3f6", markupDeletedText: "#ffdedb", markupDeletedBg: "#cc1421", markupInsertedText: "#acf7b6", markupInsertedBg: "#007728", markupChangedText: "#ffe1b4", markupChangedBg: "#a74c00", markupIgnoredText: "#f0f3f6", markupIgnoredBg: "#318bf8", metaDiffRange: "#dbb7ff", brackethighlighterAngle: "#bdc4cc", sublimelinterGutterMark: "#7a828e", constantOtherReferenceLink: "#addcff" } }, codemirror: { text: "#f0f3f6", bg: "#0a0c10", guttersBg: "#0a0c10", guttermarkerText: "#0a0c10", guttermarkerSubtleText: "#9ea7b3", linenumberText: "#f0f3f6", cursor: "#f0f3f6", selectionBg: "rgba(64,158,255,0.4)", activelineBg: "rgba(158,167,179,0.1)", matchingbracketText: "#f0f3f6", linesBg: "#0a0c10", syntax: { comment: "#bdc4cc", constant: "#91cbff", entity: "#dbb7ff", keyword: "#ff9492", storage: "#ff9492", string: "#addcff", support: "#91cbff", variable: "#ffb757" } }, checks: { bg: "#010409", textPrimary: "#f0f3f6", textSecondary: "#f0f3f6", textLink: "#71b7ff", btnIcon: "#f0f3f6", btnHoverIcon: "#f0f3f6", btnHoverBg: "rgba(158,167,179,0.1)", inputText: "#f0f3f6", inputPlaceholderText: "#9ea7b3", inputFocusText: "#f0f3f6", inputBg: "#272b33", donutError: "#ff6a69", donutPending: "#f0b72f", donutSuccess: "#09b43a", donutNeutral: "#bdc4cc", dropdownText: "#f0f3f6", dropdownBg: "#272b33", dropdownBorder: "#7a828e", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#f0f3f6", dropdownHoverBg: "rgba(158,167,179,0.1)", dropdownBtnHoverText: "#f0f3f6", dropdownBtnHoverBg: "rgba(158,167,179,0.1)", scrollbarThumbBg: "rgba(158,167,179,0.4)", headerLabelText: "#f0f3f6", headerLabelOpenText: "#f0f3f6", headerBorder: "#7a828e", headerIcon: "#f0f3f6", lineText: "#f0f3f6", lineNumText: "#9ea7b3", lineTimestampText: "#9ea7b3", lineHoverBg: "rgba(158,167,179,0.1)", lineSelectedBg: "rgba(64,158,255,0.15)", lineSelectedNumText: "#71b7ff", lineDtFmText: "#0a0c10", lineDtFmBg: "#e09b13", gateBg: "rgba(224,155,19,0.15)", gateText: "#f0f3f6", gateWaitingText: "#f0b72f", stepHeaderOpenBg: "#272b33", stepErrorText: "#ff6a69", stepWarningText: "#f0b72f", loglineText: "#f0f3f6", loglineNumText: "#9ea7b3", loglineDebugText: "#b780ff", loglineErrorText: "#f0f3f6", loglineErrorNumText: "#9ea7b3", loglineErrorBg: "rgba(255,106,105,0.15)", loglineWarningText: "#f0f3f6", loglineWarningNumText: "#f0b72f", loglineWarningBg: "rgba(224,155,19,0.15)", loglineCommandText: "#71b7ff", loglineSectionText: "#26cd4d", ansi: { black: "#0a0c10", blackBright: "#272b33", white: "#d9dee3", whiteBright: "#d9dee3", gray: "#9ea7b3", red: "#ff9492", redBright: "#ffb1af", green: "#26cd4d", greenBright: "#4ae168", yellow: "#f0b72f", yellowBright: "#f7c843", blue: "#71b7ff", blueBright: "#91cbff", magenta: "#cb9eff", magentaBright: "#dbb7ff", cyan: "#76e3ea", cyanBright: "#b3f0ff" } }, project: { headerBg: "#0a0c10", sidebarBg: "#272b33", gradientIn: "#272b33", gradientOut: "rgba(39,43,51,0)" }, mktg: { btn: { bg: "#f6f8fa" } }, avatar: { bg: "rgba(255,255,255,0.1)", border: "rgba(255,255,255,0.9)", stackFade: "#525964", stackFadeMore: "#272b33" }, topicTag: { border: "#409eff" }, counter: { border: "rgba(0,0,0,0)" }, selectMenu: { backdropBorder: "#7a828e", tapHighlight: "rgba(82,89,100,0.5)", tapFocusBg: "#1e60d5" }, header: { text: "rgba(255,255,255,0.7)", bg: "#272b33", divider: "#bdc4cc", logo: "#ffffff" }, headerSearch: { bg: "#0a0c10", border: "#525964" }, sidenav: { selectedBg: "#272b33" }, menu: { bgActive: "#272b33" }, input: { disabledBg: "rgba(158,167,179,0)" }, timeline: { badgeBg: "#272b33" }, ansi: { black: "#7a828e", blackBright: "#9ea7b3", white: "#d9dee3", whiteBright: "#ffffff", gray: "#9ea7b3", red: "#ff9492", redBright: "#ffb1af", green: "#26cd4d", greenBright: "#4ae168", yellow: "#f0b72f", yellowBright: "#f7c843", blue: "#71b7ff", blueBright: "#91cbff", magenta: "#cb9eff", magentaBright: "#dbb7ff", cyan: "#39c5cf", cyanBright: "#56d4dd" }, btn: { text: "#f0f3f6", bg: "#272b33", border: "#7a828e", hoverBg: "#525964", hoverBorder: "#bdc4cc", activeBg: "hsla(217,10%,33%,1)", activeBorder: "#9ea7b3", selectedBg: "rgba(82,89,100,0.9)", focusBg: "#272b33", focusBorder: "#bdc4cc", counterBg: "#525964", primary: { text: "#0a0c10", bg: "#09b43a", border: "#4ae168", hoverBg: "#26cd4d", hoverBorder: "#4ae168", selectedBg: "#09b43a", disabledText: "rgba(10,12,16,0.5)", disabledBg: "rgba(9,180,58,0.6)", disabledBorder: "rgba(74,225,104,0.4)", focusBg: "#09b43a", focusBorder: "#7a828e", icon: "#0a0c10", counterBg: "rgba(1,4,9,0.15)" }, outline: { text: "#71b7ff", hoverText: "#71b7ff", hoverBg: "#525964", hoverBorder: "#7a828e", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#2672f3", selectedBorder: "#7a828e", disabledText: "rgba(113,183,255,0.5)", disabledBg: "#0a0c10", disabledCounterBg: "rgba(64,158,255,0.05)", focusBorder: "#7a828e", counterBg: "rgba(64,158,255,0.1)" }, danger: { text: "#ff6a69", hoverText: "#0a0c10", hoverBg: "#ff6a69", hoverBorder: "#ff6a69", hoverIcon: "#0a0c10", hoverCounterBg: "rgba(1,4,9,0.15)", selectedText: "#ffffff", selectedBg: "#ff4445", selectedBorder: "#ff9492", disabledText: "rgba(255,106,105,0.5)", disabledBg: "#0a0c10", disabledCounterBg: "rgba(255,106,105,0.05)", focusBorder: "#ff6a69", counterBg: "rgba(1,4,9,0.15)", icon: "#ff6a69" } }, underlinenav: { icon: "#f0f3f6", borderHover: "#bdc4cc" }, actionListItem: { inlineDivider: "#7a828e", default: { hoverBg: "#272b33", hoverBorder: "#7a828e", activeBg: "#525964", activeBorder: "#9ea7b3", selectedBg: "#525964" }, danger: { hoverBg: "#ff6a69", activeBg: "#ff4445", hoverText: "#0a0c10" } }, switchTrack: { bg: "#010409", border: "#7a828e", checked: { bg: "rgba(64,158,255,0.35)", hoverBg: "rgba(64,158,255,0.5)", activeBg: "rgba(64,158,255,0.65)", border: "#409eff" } }, switchKnob: { checked: { bg: "#409eff", disabledBg: "#7a828e" } }, fg: { default: "#f0f3f6", muted: "#f0f3f6", subtle: "#9ea7b3", onEmphasis: "#0a0c10" }, canvas: { default: "#0a0c10", overlay: "#272b33", inset: "#010409", subtle: "#272b33" }, border: { default: "#7a828e", muted: "#7a828e", subtle: "#7a828e" }, neutral: { emphasisPlus: "#ffffff", emphasis: "#9ea7b3", muted: "rgba(158,167,179,0.4)", subtle: "rgba(158,167,179,0.1)" }, accent: { fg: "#71b7ff", emphasis: "#409eff", muted: "#409eff", subtle: "rgba(64,158,255,0.15)" }, success: { fg: "#26cd4d", emphasis: "#09b43a", muted: "#09b43a", subtle: "rgba(9,180,58,0.15)" }, attention: { fg: "#f0b72f", emphasis: "#e09b13", muted: "#e09b13", subtle: "rgba(224,155,19,0.15)" }, severe: { fg: "#e7811d", emphasis: "#e7811d", muted: "#e7811d", subtle: "rgba(231,129,29,0.15)" }, danger: { fg: "#ff6a69", emphasis: "#ff6a69", muted: "#ff6a69", subtle: "rgba(255,106,105,0.15)" }, open: { fg: "#26cd4d", emphasis: "#09b43a", muted: "rgba(9,180,58,0.4)", subtle: "rgba(9,180,58,0.15)" }, closed: { fg: "#ff6a69", emphasis: "#ff6a69", muted: "rgba(255,106,105,0.4)", subtle: "rgba(255,106,105,0.15)" }, done: { fg: "#b780ff", emphasis: "#b87fff", muted: "#b780ff", subtle: "rgba(183,128,255,0.15)" }, sponsors: { fg: "#ef6eb1", emphasis: "#ef6eb1", muted: "#ef6eb1", subtle: "rgba(239,110,177,0.15)" }, primer: { fg: { disabled: "#7a828e" }, canvas: { backdrop: "rgba(1,4,9,0.8)", sticky: "rgba(10,12,16,0.95)" }, border: { active: "#FF967D", contrast: "rgba(255,255,255,0.2)" } } }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)" }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset" } } }, avatar: { childShadow: "-2px -2px 0 #0a0c10" }, overlay: { shadow: "0 0 0 1px #525964, 0 16px 32px rgba(1,4,9,0.85)" }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(189,196,204,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(64,158,255,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)" }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(49,139,248,0.4)" }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(255,106,105,0.4)" } }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #010409", large: "0 8px 24px #010409", extraLarge: "0 12px 48px #010409" }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #1e60d5" } } } }, dark_colorblind: { colors: { canvasDefaultTransparent: "rgba(13,17,23,0)", pageHeaderBg: "#0d1117", marketingIcon: { primary: "#79c0ff", secondary: "#1f6feb" }, diffBlob: { addition: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(88,166,255,0.3)", lineBg: "rgba(56,139,253,0.15)", wordBg: "rgba(56,139,253,0.4)" }, deletion: { numText: "#c9d1d9", fg: "#c9d1d9", numBg: "rgba(212,118,22,0.3)", lineBg: "rgba(212,118,22,0.15)", wordBg: "rgba(212,118,22,0.4)" }, hunk: { numBg: "rgba(56,139,253,0.4)" }, expander: { icon: "#8b949e" } }, diffstat: { deletionBorder: "rgba(240,246,252,0.1)", additionBorder: "rgba(240,246,252,0.1)", additionBg: "#58a6ff" }, searchKeyword: { hl: "rgba(210,153,34,0.4)" }, prettylights: { syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", storageModifierImport: "#c9d1d9", entityTag: "#a5d6ff", keyword: "#ec8e2c", string: "#a5d6ff", variable: "#fdac54", brackethighlighterUnmatched: "#d47616", invalidIllegalText: "#f0f6fc", invalidIllegalBg: "#6c3906", carriageReturnText: "#f0f6fc", carriageReturnBg: "#914d04", stringRegexp: "#a5d6ff", markupList: "#f2cc60", markupHeading: "#1f6feb", markupItalic: "#c9d1d9", markupBold: "#c9d1d9", markupDeletedText: "#ffe2bb", markupDeletedBg: "#4e2906", markupInsertedText: "#cae8ff", markupInsertedBg: "#0c2d6b", markupChangedText: "#ffe2bb", markupChangedBg: "#4e2906", markupIgnoredText: "#c9d1d9", markupIgnoredBg: "#1158c7", metaDiffRange: "#d2a8ff", brackethighlighterAngle: "#8b949e", sublimelinterGutterMark: "#484f58", constantOtherReferenceLink: "#a5d6ff" } }, codemirror: { text: "#c9d1d9", bg: "#0d1117", guttersBg: "#0d1117", guttermarkerText: "#0d1117", guttermarkerSubtleText: "#6e7681", linenumberText: "#8b949e", cursor: "#c9d1d9", selectionBg: "rgba(56,139,253,0.4)", activelineBg: "rgba(110,118,129,0.1)", matchingbracketText: "#c9d1d9", linesBg: "#0d1117", syntax: { comment: "#8b949e", constant: "#79c0ff", entity: "#d2a8ff", keyword: "#ec8e2c", storage: "#ec8e2c", string: "#a5d6ff", support: "#79c0ff", variable: "#fdac54" } }, checks: { bg: "#010409", textPrimary: "#c9d1d9", textSecondary: "#8b949e", textLink: "#58a6ff", btnIcon: "#8b949e", btnHoverIcon: "#c9d1d9", btnHoverBg: "rgba(110,118,129,0.1)", inputText: "#8b949e", inputPlaceholderText: "#6e7681", inputFocusText: "#c9d1d9", inputBg: "#161b22", donutError: "#d47616", donutPending: "#d29922", donutSuccess: "#388bfd", donutNeutral: "#8b949e", dropdownText: "#c9d1d9", dropdownBg: "#161b22", dropdownBorder: "#30363d", dropdownShadow: "rgba(1,4,9,0.3)", dropdownHoverText: "#c9d1d9", dropdownHoverBg: "rgba(110,118,129,0.1)", dropdownBtnHoverText: "#c9d1d9", dropdownBtnHoverBg: "rgba(110,118,129,0.1)", scrollbarThumbBg: "rgba(110,118,129,0.4)", headerLabelText: "#8b949e", headerLabelOpenText: "#c9d1d9", headerBorder: "#21262d", headerIcon: "#8b949e", lineText: "#8b949e", lineNumText: "#6e7681", lineTimestampText: "#6e7681", lineHoverBg: "rgba(110,118,129,0.1)", lineSelectedBg: "rgba(56,139,253,0.15)", lineSelectedNumText: "#58a6ff", lineDtFmText: "#ffffff", lineDtFmBg: "#9e6a03", gateBg: "rgba(187,128,9,0.15)", gateText: "#8b949e", gateWaitingText: "#d29922", stepHeaderOpenBg: "#161b22", stepErrorText: "#d47616", stepWarningText: "#d29922", loglineText: "#8b949e", loglineNumText: "#6e7681", loglineDebugText: "#a371f7", loglineErrorText: "#8b949e", loglineErrorNumText: "#6e7681", loglineErrorBg: "rgba(212,118,22,0.15)", loglineWarningText: "#8b949e", loglineWarningNumText: "#d29922", loglineWarningBg: "rgba(187,128,9,0.15)", loglineCommandText: "#58a6ff", loglineSectionText: "#58a6ff", ansi: { black: "#0d1117", blackBright: "#161b22", white: "#b1bac4", whiteBright: "#b1bac4", gray: "#6e7681", red: "#ec8e2c", redBright: "#fdac54", green: "#58a6ff", greenBright: "#79c0ff", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#76e3ea", cyanBright: "#b3f0ff" } }, project: { headerBg: "#0d1117", sidebarBg: "#161b22", gradientIn: "#161b22", gradientOut: "rgba(22,27,34,0)" }, mktg: { btn: { bg: "#f6f8fa" } }, avatar: { bg: "rgba(255,255,255,0.1)", border: "rgba(240,246,252,0.1)", stackFade: "#30363d", stackFadeMore: "#21262d" }, topicTag: { border: "rgba(0,0,0,0)" }, counter: { border: "rgba(0,0,0,0)" }, selectMenu: { backdropBorder: "#484f58", tapHighlight: "rgba(48,54,61,0.5)", tapFocusBg: "#0c2d6b" }, header: { text: "rgba(255,255,255,0.7)", bg: "#161b22", divider: "#8b949e", logo: "#f0f6fc" }, headerSearch: { bg: "#0d1117", border: "#30363d" }, sidenav: { selectedBg: "#21262d" }, menu: { bgActive: "#161b22" }, input: { disabledBg: "rgba(110,118,129,0)" }, timeline: { badgeBg: "#21262d" }, ansi: { black: "#484f58", blackBright: "#6e7681", white: "#b1bac4", whiteBright: "#ffffff", gray: "#6e7681", red: "#ec8e2c", redBright: "#fdac54", green: "#58a6ff", greenBright: "#79c0ff", yellow: "#d29922", yellowBright: "#e3b341", blue: "#58a6ff", blueBright: "#79c0ff", magenta: "#bc8cff", magentaBright: "#d2a8ff", cyan: "#39c5cf", cyanBright: "#56d4dd" }, btn: { text: "#c9d1d9", bg: "#21262d", border: "rgba(240,246,252,0.1)", hoverBg: "#30363d", hoverBorder: "#8b949e", activeBg: "hsla(212,12%,18%,1)", activeBorder: "#6e7681", selectedBg: "#161b22", focusBg: "#21262d", focusBorder: "#8b949e", counterBg: "#30363d", primary: { text: "#ffffff", bg: "#1f6feb", border: "rgba(240,246,252,0.1)", hoverBg: "#388bfd", hoverBorder: "rgba(240,246,252,0.1)", selectedBg: "#1f6feb", disabledText: "rgba(255,255,255,0.5)", disabledBg: "rgba(31,111,235,0.6)", disabledBorder: "rgba(240,246,252,0.1)", focusBg: "#1f6feb", focusBorder: "rgba(240,246,252,0.1)", icon: "#ffffff", counterBg: "rgba(255,255,255,0.2)" }, outline: { text: "#58a6ff", hoverText: "#58a6ff", hoverBg: "#30363d", hoverBorder: "rgba(240,246,252,0.1)", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#0d419d", selectedBorder: "rgba(240,246,252,0.1)", disabledText: "rgba(88,166,255,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(31,111,235,0.05)", focusBorder: "rgba(240,246,252,0.1)", counterBg: "rgba(31,111,235,0.1)" }, danger: { text: "#d47616", hoverText: "#ffffff", hoverBg: "#b76100", hoverBorder: "#d47616", hoverIcon: "#ffffff", hoverCounterBg: "rgba(255,255,255,0.2)", selectedText: "#ffffff", selectedBg: "#914d04", selectedBorder: "#ec8e2c", disabledText: "rgba(212,118,22,0.5)", disabledBg: "#0d1117", disabledCounterBg: "rgba(183,97,0,0.05)", focusBorder: "#d47616", counterBg: "rgba(183,97,0,0.1)", icon: "#d47616" } }, underlinenav: { icon: "#6e7681", borderHover: "rgba(110,118,129,0.4)" }, actionListItem: { inlineDivider: "rgba(48,54,61,0.48)", default: { hoverBg: "rgba(177,186,196,0.12)", hoverBorder: "rgba(0,0,0,0)", activeBg: "rgba(177,186,196,0.2)", activeBorder: "rgba(0,0,0,0)", selectedBg: "rgba(177,186,196,0.08)" }, danger: { hoverBg: "rgba(212,118,22,0.16)", activeBg: "rgba(212,118,22,0.24)", hoverText: "#ec8e2c" } }, switchTrack: { bg: "#010409", border: "#6e7681", checked: { bg: "rgba(31,111,235,0.35)", hoverBg: "rgba(31,111,235,0.5)", activeBg: "rgba(31,111,235,0.65)", border: "#58a6ff" } }, switchKnob: { checked: { bg: "#1f6feb", disabledBg: "#484f58" } }, fg: { default: "#c9d1d9", muted: "#8b949e", subtle: "#6e7681", onEmphasis: "#ffffff" }, canvas: { default: "#0d1117", overlay: "#161b22", inset: "#010409", subtle: "#161b22" }, border: { default: "#30363d", muted: "#21262d", subtle: "rgba(240,246,252,0.1)" }, neutral: { emphasisPlus: "#6e7681", emphasis: "#6e7681", muted: "rgba(110,118,129,0.4)", subtle: "rgba(110,118,129,0.1)" }, accent: { fg: "#58a6ff", emphasis: "#1f6feb", muted: "rgba(56,139,253,0.4)", subtle: "rgba(56,139,253,0.15)" }, success: { fg: "#58a6ff", emphasis: "#1f6feb", muted: "rgba(56,139,253,0.4)", subtle: "rgba(56,139,253,0.15)" }, attention: { fg: "#d29922", emphasis: "#9e6a03", muted: "rgba(187,128,9,0.4)", subtle: "rgba(187,128,9,0.15)" }, severe: { fg: "#d47616", emphasis: "#b76100", muted: "rgba(212,118,22,0.4)", subtle: "rgba(212,118,22,0.15)" }, danger: { fg: "#d47616", emphasis: "#b76100", muted: "rgba(212,118,22,0.4)", subtle: "rgba(212,118,22,0.15)" }, open: { fg: "#ec8e2c", emphasis: "#b76100", muted: "rgba(212,118,22,0.4)", subtle: "rgba(212,118,22,0.15)" }, closed: { fg: "#8b949e", emphasis: "#6e7681", muted: "rgba(110,118,129,0.4)", subtle: "rgba(110,118,129,0.1)" }, done: { fg: "#a371f7", emphasis: "#8957e5", muted: "rgba(163,113,247,0.4)", subtle: "rgba(163,113,247,0.15)" }, sponsors: { fg: "#db61a2", emphasis: "#bf4b8a", muted: "rgba(219,97,162,0.4)", subtle: "rgba(219,97,162,0.15)" }, primer: { fg: { disabled: "#484f58" }, canvas: { backdrop: "rgba(1,4,9,0.8)", sticky: "rgba(13,17,23,0.95)" }, border: { active: "#F78166", contrast: "rgba(255,255,255,0.2)" } } }, shadows: { checks: { inputShadow: "0 0 0 1px (obj) => get_1.default(obj, path)" }, mktg: { btn: { shadow: { outline: "rgb(255 255 255 / 25%) 0 0 0 1px inset", focus: "rgb(255 255 255 / 25%) 0 0 0 4px", hover: "0 4px 7px rgba(0, 0, 0, 0.15), 0 100px 80px rgba(255, 255, 255, 0.02), 0 42px 33px rgba(255, 255, 255, 0.024), 0 22px 18px rgba(255, 255, 255, 0.028), 0 12px 10px rgba(255, 255, 255, 0.034), 0 7px 5px rgba(255, 255, 255, 0.04), 0 3px 2px rgba(255, 255, 255, 0.07)", hoverMuted: "rgb(255 255 255) 0 0 0 2px inset" } } }, avatar: { childShadow: "-2px -2px 0 #0d1117" }, overlay: { shadow: "0 0 0 1px #30363d, 0 16px 32px rgba(1,4,9,0.85)" }, btn: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(139,148,158,0.3)", shadowActive: "inset 0 0.15em 0.3em rgba(1,4,9,0.15)", shadowInputFocus: "0 0 0 0.2em rgba(31,111,235,0.3)", primary: { shadow: "0 0 transparent", insetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(46,164,79,0.4)" }, outline: { hoverShadow: "0 1px 0 rgba(1,4,9,0.1)", hoverInsetShadow: "inset 0 1px 0 rgba(255,255,255,0.03)", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(17,88,199,0.4)" }, danger: { hoverShadow: "0 0 transparent", hoverInsetShadow: "0 0 transparent", selectedShadow: "0 0 transparent", focusShadow: "0 0 0 3px rgba(212,118,22,0.4)" } }, shadow: { small: "0 0 transparent", medium: "0 3px 6px #010409", large: "0 8px 24px #010409", extraLarge: "0 12px 48px #010409" }, primer: { shadow: { highlight: "0 0 transparent", inset: "0 0 transparent", focus: "0 0 0 3px #0c2d6b" } } } } } } }; /***/ }, /***/ 9996: /***/ function(module) { "use strict"; var isMergeableObject = function(value) { var stringValue; return !!value && "object" == typeof value && "[object RegExp]" !== (stringValue = Object.prototype.toString.call(value)) && "[object Date]" !== stringValue && value.$$typeof !== REACT_ELEMENT_TYPE; }, REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.element") : 0xeac7; function cloneUnlessOtherwiseSpecified(value, options) { return !1 !== options.clone && options.isMergeableObject(value) ? deepmerge(Array.isArray(value) ? [] : {}, value, options) : value; } function defaultArrayMerge(target, source, options) { return target.concat(source).map(function(element) { return cloneUnlessOtherwiseSpecified(element, options); }); } function getKeys(target) { return Object.keys(target).concat(Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) { return target.propertyIsEnumerable(symbol); }) : []); } function propertyIsOnObject(object, property) { try { return property in object; } catch (_) { return !1; } } function deepmerge(target, source, options) { (options = options || {}).arrayMerge = options.arrayMerge || defaultArrayMerge, options.isMergeableObject = options.isMergeableObject || isMergeableObject, // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge() // implementations can use it. The caller may not replace it. options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified; var options1, destination, sourceIsArray = Array.isArray(source); return sourceIsArray !== Array.isArray(target) ? cloneUnlessOtherwiseSpecified(source, options) : sourceIsArray ? options.arrayMerge(target, source, options) : (destination = {}, (options1 = options).isMergeableObject(target) && getKeys(target).forEach(function(key) { destination[key] = cloneUnlessOtherwiseSpecified(target[key], options1); }), getKeys(source).forEach(function(key) { (!propertyIsOnObject(target, key) || Object.hasOwnProperty.call(target, key) && // unsafe if they exist up the prototype chain, Object.propertyIsEnumerable.call(target, key)) && (propertyIsOnObject(target, key) && options1.isMergeableObject(source[key]) ? destination[key] = (function(key, options) { if (!options.customMerge) return deepmerge; var customMerge = options.customMerge(key); return "function" == typeof customMerge ? customMerge : deepmerge; })(key, options1)(target[key], source[key], options1) : destination[key] = cloneUnlessOtherwiseSpecified(source[key], options1)); }), destination); } deepmerge.all = function(array, options) { if (!Array.isArray(array)) throw Error("first argument should be an array"); return array.reduce(function(prev, next) { return deepmerge(prev, next, options); }, {}); }, module.exports = deepmerge; /***/ }, /***/ 5202: /***/ function() { !function() { "use strict"; /** * Applies the :focus-visible polyfill at the given scope. * A scope in this case is either the top-level Document or a Shadow Root. * * @param {(Document|ShadowRoot)} scope * @see https://github.com/WICG/focus-visible */ function applyFocusVisiblePolyfill(scope) { var hadKeyboardEvent = !0, hadFocusVisibleRecently = !1, hadFocusVisibleRecentlyTimeout = null, inputTypesAllowlist = { text: !0, search: !0, url: !0, tel: !0, email: !0, password: !0, number: !0, date: !0, month: !0, week: !0, time: !0, datetime: !0, "datetime-local": !0 }; /** * Helper function for legacy browsers and iframes which sometimes focus * elements like document, body, and non-interactive SVG. * @param {Element} el */ function isValidFocusTarget(el) { return !!el && el !== document && "HTML" !== el.nodeName && "BODY" !== el.nodeName && "classList" in el && "contains" in el.classList; } /** * Add the `focus-visible` class to the given element if it was not added by * the author. * @param {Element} el */ function addFocusVisibleClass(el) { el.classList.contains("focus-visible") || (el.classList.add("focus-visible"), el.setAttribute("data-focus-visible-added", "")); } /** * If at any point a user clicks with a pointing device, ensure that we change * the modality away from keyboard. * This avoids the situation where a user presses a key on an already focused * element, and then clicks on a different element, focusing it with a * pointing device, while we still think we're in keyboard modality. * @param {Event} e */ function onPointerDown(e) { hadKeyboardEvent = !1; } /** * Add a group of listeners to detect usage of any pointing devices. * These listeners will be added when the polyfill first loads, and anytime * the window is blurred, so that they are active when the window regains * focus. */ function addInitialPointerMoveListeners() { document.addEventListener("mousemove", onInitialPointerMove), document.addEventListener("mousedown", onInitialPointerMove), document.addEventListener("mouseup", onInitialPointerMove), document.addEventListener("pointermove", onInitialPointerMove), document.addEventListener("pointerdown", onInitialPointerMove), document.addEventListener("pointerup", onInitialPointerMove), document.addEventListener("touchmove", onInitialPointerMove), document.addEventListener("touchstart", onInitialPointerMove), document.addEventListener("touchend", onInitialPointerMove); } /** * When the polfyill first loads, assume the user is in keyboard modality. * If any event is received from a pointing device (e.g. mouse, pointer, * touch), turn off keyboard modality. * This accounts for situations where focus enters the page from the URL bar. * @param {Event} e */ function onInitialPointerMove(e) { // Work around a Safari quirk that fires a mousemove on <html> whenever the // window blurs, even if you're tabbing out of the page. ¯\_(ツ)_/¯ e.target.nodeName && "html" === e.target.nodeName.toLowerCase() || (hadKeyboardEvent = !1, document.removeEventListener("mousemove", onInitialPointerMove), document.removeEventListener("mousedown", onInitialPointerMove), document.removeEventListener("mouseup", onInitialPointerMove), document.removeEventListener("pointermove", onInitialPointerMove), document.removeEventListener("pointerdown", onInitialPointerMove), document.removeEventListener("pointerup", onInitialPointerMove), document.removeEventListener("touchmove", onInitialPointerMove), document.removeEventListener("touchstart", onInitialPointerMove), document.removeEventListener("touchend", onInitialPointerMove)); } // For some kinds of state, we are interested in changes at the global scope // only. For example, global pointer input, global key presses and global // visibility change should affect the state at every scope: document.addEventListener("keydown", /** * If the most recent user interaction was via the keyboard; * and the key press did not include a meta, alt/option, or control key; * then the modality is keyboard. Otherwise, the modality is not keyboard. * Apply `focus-visible` to any current active element and keep track * of our keyboard modality state with `hadKeyboardEvent`. * @param {KeyboardEvent} e */ function(e) { e.metaKey || e.altKey || e.ctrlKey || (isValidFocusTarget(scope.activeElement) && addFocusVisibleClass(scope.activeElement), hadKeyboardEvent = !0); }, !0), document.addEventListener("mousedown", onPointerDown, !0), document.addEventListener("pointerdown", onPointerDown, !0), document.addEventListener("touchstart", onPointerDown, !0), document.addEventListener("visibilitychange", /** * If the user changes tabs, keep track of whether or not the previously * focused element had .focus-visible. * @param {Event} e */ function(e) { "hidden" === document.visibilityState && (hadFocusVisibleRecently && (hadKeyboardEvent = !0), addInitialPointerMoveListeners()); }, !0), addInitialPointerMoveListeners(), // For focus and blur, we specifically care about state changes in the local // scope. This is because focus / blur events that originate from within a // shadow root are not re-dispatched from the host element if it was already // the active element in its own scope: scope.addEventListener("focus", /** * On `focus`, add the `focus-visible` class to the target if: * - the target received focus as a result of keyboard navigation, or * - the event target is an element that will likely require interaction * via the keyboard (e.g. a text box) * @param {Event} e */ function(e) { var el, type, tagName; // Prevent IE from focusing the document or HTML element. isValidFocusTarget(e.target) && (hadKeyboardEvent || (type = (el = e.target).type, "INPUT" === (tagName = el.tagName) && inputTypesAllowlist[type] && !el.readOnly || "TEXTAREA" === tagName && !el.readOnly || el.isContentEditable)) && addFocusVisibleClass(e.target); }, !0), scope.addEventListener("blur", /** * On `blur`, remove the `focus-visible` class from the target. * @param {Event} e */ function(e) { if (isValidFocusTarget(e.target)) { var el; (e.target.classList.contains("focus-visible") || e.target.hasAttribute("data-focus-visible-added")) && (// To detect a tab/window switch, we look for a blur event followed // rapidly by a visibility change. // If we don't see a visibility change within 100ms, it's probably a // regular focus change. hadFocusVisibleRecently = !0, window.clearTimeout(hadFocusVisibleRecentlyTimeout), hadFocusVisibleRecentlyTimeout = window.setTimeout(function() { hadFocusVisibleRecently = !1; }, 100), (el = e.target).hasAttribute("data-focus-visible-added") && (el.classList.remove("focus-visible"), el.removeAttribute("data-focus-visible-added"))); } }, !0), scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host ? // Since a ShadowRoot is a special kind of DocumentFragment, it does not // have a root element to add a class to. So, we add this attribute to the // host element instead: scope.host.setAttribute("data-js-focus-visible", "") : scope.nodeType === Node.DOCUMENT_NODE && (document.documentElement.classList.add("js-focus-visible"), document.documentElement.setAttribute("data-js-focus-visible", "")); } // It is important to wrap all references to global window and document in // these checks to support server-side rendering use cases // @see https://github.com/WICG/focus-visible/issues/199 if ("undefined" != typeof window && "undefined" != typeof document) { var event; // Make the polyfill helper globally available. This can be used as a signal // to interested libraries that wish to coordinate with the polyfill for e.g., // applying the polyfill to a shadow root: window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill; try { event = new CustomEvent("focus-visible-polyfill-ready"); } catch (error) { // IE11 does not support using CustomEvent as a constructor directly: (event = document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready", !1, !1, {}); } window.dispatchEvent(event); } "undefined" != typeof document && // Apply the polyfill to the global document, so that no JavaScript // coordination is required to use the polyfill in the top-level document: applyFocusVisiblePolyfill(document); }(); /***/ }, /***/ 8679: /***/ function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var reactIs = __webpack_require__(1296), REACT_STATICS = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, KNOWN_STATICS = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, MEMO_STATICS = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, TYPE_STATICS = {}; function getStatics(component) { return(// React v16.11 and below reactIs.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS // React v16.12 and above ); } TYPE_STATICS[reactIs.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype; module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { if ("string" != typeof sourceComponent) { // don't hoist over string (html) components if (objectPrototype) { var inheritedComponent = getPrototypeOf(sourceComponent); inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); } var keys = getOwnPropertyNames(sourceComponent); getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent))); for(var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys.length; ++i){ var key = keys[i]; if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { var descriptor = getOwnPropertyDescriptor(sourceComponent, key); try { // Avoid failures from read-only properties defineProperty(targetComponent, key, descriptor); } catch (e) {} } } } return targetComponent; }; /***/ }, /***/ 6103: /***/ function(__unused_webpack_module, exports) { "use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var b = "function" == typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119; function z(a) { if ("object" == typeof a && null !== a) { var u = a.$$typeof; switch(u){ case c: switch(a = a.type){ case l: case m: case e: case g: case f: case p: return a; default: switch(a = a && a.$$typeof){ case k: case n: case t: case r: case h: return a; default: return u; } } case d: return u; } } } function A(a) { return z(a) === m; } exports.AsyncMode = l, exports.ConcurrentMode = m, exports.ContextConsumer = k, exports.ContextProvider = h, exports.Element = c, exports.ForwardRef = n, exports.Fragment = e, exports.Lazy = t, exports.Memo = r, exports.Portal = d, exports.Profiler = g, exports.StrictMode = f, exports.Suspense = p, exports.isAsyncMode = function(a) { return A(a) || z(a) === l; }, exports.isConcurrentMode = A, exports.isContextConsumer = function(a) { return z(a) === k; }, exports.isContextProvider = function(a) { return z(a) === h; }, exports.isElement = function(a) { return "object" == typeof a && null !== a && a.$$typeof === c; }, exports.isForwardRef = function(a) { return z(a) === n; }, exports.isFragment = function(a) { return z(a) === e; }, exports.isLazy = function(a) { return z(a) === t; }, exports.isMemo = function(a) { return z(a) === r; }, exports.isPortal = function(a) { return z(a) === d; }, exports.isProfiler = function(a) { return z(a) === g; }, exports.isStrictMode = function(a) { return z(a) === f; }, exports.isSuspense = function(a) { return z(a) === p; }, exports.isValidElementType = function(a) { return "string" == typeof a || "function" == typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" == typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v); }, exports.typeOf = z; /***/ }, /***/ 1296: /***/ function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; module.exports = __webpack_require__(6103); /***/ }, /***/ 6086: /***/ function(module) { "use strict"; module.exports = Object.assign.bind(Object), module.exports.default = module.exports; //# sourceMappingURL=object-assign.js.map /***/ }, /***/ 3454: /***/ function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; var ref, ref1; module.exports = (null === (ref = __webpack_require__.g.process) || void 0 === ref ? void 0 : ref.env) && "object" == typeof (null === (ref1 = __webpack_require__.g.process) || void 0 === ref1 ? void 0 : ref1.env) ? __webpack_require__.g.process : __webpack_require__(7663); //# sourceMappingURL=process.js.map /***/ }, /***/ 1118: /***/ function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { (window.__NEXT_P = window.__NEXT_P || []).push([ "/_app", function() { return __webpack_require__(2078); } ]); /***/ }, /***/ 2078: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__), // EXPORTS __webpack_require__.d(__webpack_exports__, { default: function() { return /* binding */ _app; } }); // NAMESPACE OBJECT: ./node_modules/styled-system/dist/index.esm.js var cache, t, styled_system_dist_index_esm_namespaceObject = {}; __webpack_require__.r(styled_system_dist_index_esm_namespaceObject), __webpack_require__.d(styled_system_dist_index_esm_namespaceObject, { alignContent: function() { return alignContent; }, alignItems: function() { return alignItems; }, alignSelf: function() { return alignSelf; }, background: function() { return background; }, backgroundImage: function() { return backgroundImage; }, backgroundPosition: function() { return backgroundPosition; }, backgroundRepeat: function() { return backgroundRepeat; }, backgroundSize: function() { return backgroundSize; }, border: function() { return border; }, borderBottom: function() { return borderBottom; }, borderColor: function() { return borderColor; }, borderLeft: function() { return borderLeft; }, borderRadius: function() { return borderRadius; }, borderRight: function() { return borderRight; }, borderStyle: function() { return borderStyle; }, borderTop: function() { return borderTop; }, borderWidth: function() { return borderWidth; }, borders: function() { return border_dist_index_esm; }, bottom: function() { return bottom; }, boxShadow: function() { return shadow_dist_index_esm; }, buttonStyle: function() { return buttonStyle; }, color: function() { return color; }, colorStyle: function() { return colorStyle; }, compose: function() { return compose; }, createParser: function() { return createParser; }, createStyleFunction: function() { return createStyleFunction; }, display: function() { return display; }, flex: function() { return flex; }, flexBasis: function() { return flexBasis; }, flexDirection: function() { return flexDirection; }, flexGrow: function() { return flexGrow; }, flexShrink: function() { return flexShrink; }, flexWrap: function() { return flexWrap; }, flexbox: function() { return flexbox; }, fontFamily: function() { return fontFamily; }, fontSize: function() { return fontSize; }, fontStyle: function() { return fontStyle; }, fontWeight: function() { return fontWeight; }, get: function() { return get; }, grid: function() { return grid; }, gridArea: function() { return gridArea; }, gridAutoColumns: function() { return gridAutoColumns; }, gridAutoFlow: function() { return gridAutoFlow; }, gridAutoRows: function() { return gridAutoRows; }, gridColumn: function() { return gridColumn; }, gridColumnGap: function() { return gridColumnGap; }, gridGap: function() { return gridGap; }, gridRow: function() { return gridRow; }, gridRowGap: function() { return gridRowGap; }, gridTemplateAreas: function() { return gridTemplateAreas; }, gridTemplateColumns: function() { return gridTemplateColumns; }, gridTemplateRows: function() { return gridTemplateRows; }, height: function() { return height; }, justifyContent: function() { return justifyContent; }, justifyItems: function() { return justifyItems; }, justifySelf: function() { return justifySelf; }, layout: function() { return layout; }, left: function() { return left; }, letterSpacing: function() { return letterSpacing; }, lineHeight: function() { return lineHeight; }, margin: function() { return margin; }, maxHeight: function() { return maxHeight; }, maxWidth: function() { return maxWidth; }, minHeight: function() { return minHeight; }, minWidth: function() { return minWidth; }, opacity: function() { return opacity; }, order: function() { return order; }, overflow: function() { return overflow; }, overflowX: function() { return overflowX; }, overflowY: function() { return overflowY; }, padding: function() { return padding; }, position: function() { return position; }, right: function() { return right; }, shadow: function() { return shadow; }, size: function() { return size; }, space: function() { return space; }, style: function() { return style; }, system: function() { return system; }, textAlign: function() { return textAlign; }, textShadow: function() { return shadow_dist_index_esm; }, textStyle: function() { return textStyle; }, top: function() { return index_esm_top; }, typography: function() { return typography; }, variant: function() { return variant; }, verticalAlign: function() { return verticalAlign; }, width: function() { return width; }, zIndex: function() { return zIndex; } }); // EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js var jsx_runtime = __webpack_require__(5893), react_is = __webpack_require__(9864), react = __webpack_require__(7294), shallowequal = __webpack_require__(6774), shallowequal_default = /*#__PURE__*/ __webpack_require__.n(shallowequal), stylis_browser_esm = function(W) { function X(d, c, e) { var h = c.trim().split(ia); c = h; var a = h.length, m = d.length; switch(m){ case 0: case 1: var b = 0; for(d = 0 === m ? "" : d[0] + " "; b < a; ++b)c[b] = Z(d, c[b], e).trim(); break; default: var v = b = 0; for(c = []; b < a; ++b)for(var n = 0; n < m; ++n)c[v++] = Z(d[n] + " ", h[b], e).trim(); } return c; } function Z(d, c, e) { var h = c.charCodeAt(0); switch(33 > h && (h = (c = c.trim()).charCodeAt(0)), h){ case 38: return c.replace(F, "$1" + d.trim()); case 58: return d.trim() + c.replace(F, "$1" + d.trim()); default: if (0 < +e && 0 < c.indexOf("\f")) return c.replace(F, (58 === d.charCodeAt(0) ? "" : "$1") + d.trim()); } return d + c; } function P(d, c, e, h) { var a = d + ";", m = 2 * c + 3 * e + 4 * h; if (944 === m) { d = a.indexOf(":", 9) + 1; var b = a.substring(d, a.length - 1).trim(); return b = a.substring(0, d).trim() + b + ";", 1 === w || 2 === w && L(b, 1) ? "-webkit-" + b + b : b; } if (0 === w || 2 === w && !L(a, 1)) return a; switch(m){ case 1015: return 97 === a.charCodeAt(10) ? "-webkit-" + a + a : a; case 951: return 116 === a.charCodeAt(3) ? "-webkit-" + a + a : a; case 963: return 110 === a.charCodeAt(5) ? "-webkit-" + a + a : a; case 1009: if (100 !== a.charCodeAt(4)) break; case 969: case 942: return "-webkit-" + a + a; case 978: return "-webkit-" + a + "-moz-" + a + a; case 1019: case 983: return "-webkit-" + a + "-moz-" + a + "-ms-" + a + a; case 883: if (45 === a.charCodeAt(8)) return "-webkit-" + a + a; if (0 < a.indexOf("image-set(", 11)) return a.replace(ja, "$1-webkit-$2") + a; break; case 932: if (45 === a.charCodeAt(4)) switch(a.charCodeAt(5)){ case 103: return "-webkit-box-" + a.replace("-grow", "") + "-webkit-" + a + "-ms-" + a.replace("grow", "positive") + a; case 115: return "-webkit-" + a + "-ms-" + a.replace("shrink", "negative") + a; case 98: return "-webkit-" + a + "-ms-" + a.replace("basis", "preferred-size") + a; } return "-webkit-" + a + "-ms-" + a + a; case 964: return "-webkit-" + a + "-ms-flex-" + a + a; case 1023: if (99 !== a.charCodeAt(8)) break; return "-webkit-box-pack" + (b = a.substring(a.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify")) + "-webkit-" + a + "-ms-flex-pack" + b + a; case 1005: return ka.test(a) ? a.replace(aa, ":-webkit-") + a.replace(aa, ":-moz-") + a : a; case 1e3: switch(c = (b = a.substring(13).trim()).indexOf("-") + 1, b.charCodeAt(0) + b.charCodeAt(c)){ case 226: b = a.replace(G, "tb"); break; case 232: b = a.replace(G, "tb-rl"); break; case 220: b = a.replace(G, "lr"); break; default: return a; } return "-webkit-" + a + "-ms-" + b + a; case 1017: if (-1 === a.indexOf("sticky", 9)) break; case 975: switch(c = (a = d).length - 10, m = (b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(":", 7) + 1).trim()).charCodeAt(0) + (0 | b.charCodeAt(7))){ case 203: if (111 > b.charCodeAt(8)) break; case 115: a = a.replace(b, "-webkit-" + b) + ";" + a; break; case 207: case 102: a = a.replace(b, "-webkit-" + (102 < m ? "inline-" : "") + "box") + ";" + a.replace(b, "-webkit-" + b) + ";" + a.replace(b, "-ms-" + b + "box") + ";" + a; } return a + ";"; case 938: if (45 === a.charCodeAt(5)) switch(a.charCodeAt(6)){ case 105: return b = a.replace("-items", ""), "-webkit-" + a + "-webkit-box-" + b + "-ms-flex-" + b + a; case 115: return "-webkit-" + a + "-ms-flex-item-" + a.replace(ba, "") + a; default: return "-webkit-" + a + "-ms-flex-line-pack" + a.replace("align-content", "").replace(ba, "") + a; } break; case 973: case 989: if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break; case 931: case 953: if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(":") + 1)).charCodeAt(0) ? P(d.replace("stretch", "fill-available"), c, e, h).replace(":fill-available", ":stretch") : a.replace(b, "-webkit-" + b) + a.replace(b, "-moz-" + b.replace("fill-", "")) + a; break; case 962: if (a = "-webkit-" + a + (102 === a.charCodeAt(5) ? "-ms-" + a : "") + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf("transform", 10)) return a.substring(0, a.indexOf(";", 27) + 1).replace(ma, "$1-webkit-$2") + a; } return a; } function L(d, c) { var e = d.indexOf(1 === c ? ":" : "{"), h = d.substring(0, 3 !== c ? e : 10); return e = d.substring(e + 1, d.length - 1), R(2 !== c ? h : h.replace(na, "$1"), e, c); } function ea(d, c) { var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2)); return e !== c + ";" ? e.replace(oa, " or ($1)").substring(4) : "(" + c + ")"; } function H(d, c, e, h, a, m, b, v, n, q) { for(var w, g = 0, x = c; g < A; ++g)switch(w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)){ case void 0: case !1: case !0: case null: break; default: x = w; } if (x !== c) return x; } function U(d) { return void 0 !== (d = d.prefix) && (R = null, d ? "function" != typeof d ? w = 1 : (w = 2, R = d) : w = 0), U; } function B(d, c) { var e = d; if (33 > e.charCodeAt(0) && (e = e.trim()), e = [ e ], 0 < A) { var h = H(-1, c, e, e, D, z, 0, 0, 0, 0); void 0 !== h && "string" == typeof h && (c = h); } var a = function M(d, c, e, h, a) { for(var q, g, k, y, C, m = 0, b = 0, v = 0, n = 0, x = 0, K = 0, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, f = "", p = "", F = "", G = ""; l < B;){ if (g = e.charCodeAt(l), l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++), 0 === b + n + v + m) { if (l === J && (0 < r && (f = f.replace(N, "")), 0 < f.trim().length)) { switch(g){ case 32: case 9: case 59: case 13: case 10: break; default: f += e.charAt(l); } g = 59; } switch(g){ case 123: for(q = (f = f.trim()).charCodeAt(0), k = 1, t = ++l; l < B;){ switch(g = e.charCodeAt(l)){ case 123: k++; break; case 125: k--; break; case 47: switch(g = e.charCodeAt(l + 1)){ case 42: case 47: a: { for(u = l + 1; u < J; ++u)switch(e.charCodeAt(u)){ case 47: if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) { l = u + 1; break a; } break; case 10: if (47 === g) { l = u + 1; break a; } } l = u; } } break; case 91: g++; case 40: g++; case 34: case 39: for(; l++ < J && e.charCodeAt(l) !== g;); } if (0 === k) break; l++; } if (k = e.substring(t, l), 0 === q && (q = (f = f.replace(ca, "").trim()).charCodeAt(0)), 64 === q) { switch(0 < r && (f = f.replace(N, "")), g = f.charCodeAt(1)){ case 100: case 109: case 115: case 45: r = c; break; default: r = O; } if (t = (k = M(c, r, k, g, a + 1)).length, 0 < A && (C = H(3, k, r = X(O, f, I), c, D, z, t, g, a, h), f = r.join(""), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = "")), 0 < t) switch(g){ case 115: f = f.replace(da, ea); case 100: case 109: case 45: k = f + "{" + k + "}"; break; case 107: k = (f = f.replace(fa, "$1 $2")) + "{" + k + "}", k = 1 === w || 2 === w && L("@" + k, 3) ? "@-webkit-" + k + "@" + k : "@" + k; break; default: k = f + k, 112 === h && (p += k, k = ""); } else k = ""; } else k = M(c, X(c, f, I), k, h, a + 1); F += k, k = I = r = u = q = 0, f = "", g = e.charCodeAt(++l); break; case 125: case 59: if (1 < (t = (f = (0 < r ? f.replace(N, "") : f).trim()).length)) switch(0 === u && (45 === (q = f.charCodeAt(0)) || 96 < q && 123 > q) && (t = (f = f.replace(" ", ":")).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = "\x00\x00"), q = f.charCodeAt(0), g = f.charCodeAt(1), q){ case 0: break; case 64: if (105 === g || 99 === g) { G += f + e.charAt(l); break; } default: 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2))); } I = r = u = q = 0, f = "", g = e.charCodeAt(++l); } } switch(g){ case 13: case 10: 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += "\x00"), 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h), z = 1, D++; break; case 59: case 125: if (0 === b + n + v + m) { z++; break; } default: switch(z++, y = e.charAt(l), g){ case 9: case 32: if (0 === n + m + b) switch(x){ case 44: case 58: case 9: case 32: y = ""; break; default: 32 !== g && (y = " "); } break; case 0: y = "\\0"; break; case 12: y = "\\f"; break; case 11: y = "\\v"; break; case 38: 0 === n + b + m && (r = I = 1, y = "\f" + y); break; case 108: if (0 === n + b + m + E && 0 < u) switch(l - u){ case 2: 112 === x && 58 === e.charCodeAt(l - 3) && (E = x); case 8: 111 === K && (E = K); } break; case 58: 0 === n + b + m && (u = l); break; case 44: 0 === b + v + n + m && (r = 1, y += "\r"); break; case 34: case 39: 0 === b && (n = n === g ? 0 : 0 === n ? g : n); break; case 91: 0 === n + b + v && m++; break; case 93: 0 === n + b + v && m--; break; case 41: 0 === n + b + m && v--; break; case 40: 0 === n + b + m && (0 === q && (2 * x + 3 * K == 533 || (q = 1)), v++); break; case 64: 0 === b + v + n + m + u + k && (k = 1); break; case 42: case 47: if (!(0 < n + m + v)) switch(b){ case 0: switch(2 * g + 3 * e.charCodeAt(l + 1)){ case 235: b = 47; break; case 220: t = l, b = 42; } break; case 42: 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = "", b = 0); } } 0 === b && (f += y); } K = x, x = g, l++; } if (0 < (t = p.length)) { if (r = c, 0 < A && void 0 !== (C = H(2, p, r, d, D, z, t, h, a, h)) && 0 === (p = C).length) return G + p + F; if (p = r.join(",") + "{" + p + "}", 0 != w * E) { switch(2 !== w || L(p, 2) || (E = 0), E){ case 111: p = p.replace(ha, ":-moz-$1") + p; break; case 112: p = p.replace(Q, "::-webkit-input-$1") + p.replace(Q, "::-moz-$1") + p.replace(Q, ":-ms-input-$1") + p; } E = 0; } } return G + p + F; }(O, e, c, 0, 0); return 0 < A && void 0 !== (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0)) && (a = h), E = 0, z = D = 1, a; } var ca = /^\0+/g, N = /[\0\r\f]/g, aa = /: */g, ka = /zoo|gra/, ma = /([,: ])(transform)/g, ia = /,\r+?/g, F = /([\t\r\n ])*\f?&/g, fa = /@(k\w+)\s*(\S*)\s*/, Q = /::(place)/g, ha = /:(read-only)/g, G = /[svh]\w+-[tblr]{2}/, da = /\(\s*(.*)\s*\)/g, oa = /([\s\S]*?);/g, ba = /-self|flex-/g, na = /[^]*?(:[rp][el]a[\w-]+)[^]*/, la = /stretch|:\s*\w+\-(?:conte|avail)/, ja = /([^-])(image-set\()/, z = 1, D = 1, E = 0, w = 1, O = [], S = [], A = 0, R = null, Y = 0; return B.use = function T(d) { switch(d){ case void 0: case null: A = S.length = 0; break; default: if ("function" == typeof d) S[A++] = d; else if ("object" == typeof d) for(var c = 0, e = d.length; c < e; ++c)T(d[c]); else Y = 0 | !!d; } return T; }, B.set = U, void 0 !== W && U(W), B; }, unitless_browser_esm = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, // SVG-related properties fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }, reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, isPropValid = (cache = Object.create(null), function(arg) { return void 0 === cache[arg] && (cache[arg] = reactPropsRegex.test(arg) || 111 === arg.charCodeAt(0) && /* o */ 110 === arg.charCodeAt(1) && /* n */ 91 > arg.charCodeAt(2)), cache[arg]; }), hoist_non_react_statics_cjs = __webpack_require__(8679), hoist_non_react_statics_cjs_default = /*#__PURE__*/ __webpack_require__.n(hoist_non_react_statics_cjs), process = __webpack_require__(3454); function v() { return (v = 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; }).apply(this, arguments); } var g = function(e, t) { for(var n = [ e[0] ], r = 0, o = t.length; r < o; r += 1)n.push(t[r], e[r + 1]); return n; }, S = function(t) { return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !(0, react_is.typeOf)(t); }, w = Object.freeze([]), E = Object.freeze({}); function b(e) { return "function" == typeof e; } function _(e) { return e.displayName || e.name || "Component"; } function N(e) { return e && "string" == typeof e.styledComponentId; } var A = void 0 !== process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", I = "undefined" != typeof window && "HTMLElement" in window, P = !!("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : void 0 !== process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : void 0 !== process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY && "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY), O = {}; function j(e) { for(var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r]; throw Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "")); } var T = function() { function e(e) { this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e; } var t = e.prototype; return t.indexOfGroup = function(e) { for(var t = 0, n = 0; n < e; n++)t += this.groupSizes[n]; return t; }, t.insertRules = function(e, t) { if (e >= this.groupSizes.length) { for(var n = this.groupSizes, r = n.length, o = r; e >= o;)(o <<= 1) < 0 && j(16, "" + e); this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o; for(var s = r; s < o; s++)this.groupSizes[s] = 0; } for(var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++)this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++); }, t.clearGroup = function(e) { if (e < this.length) { var t = this.groupSizes[e], n = this.indexOfGroup(e), r = n + t; this.groupSizes[e] = 0; for(var o = n; o < r; o++)this.tag.deleteRule(n); } }, t.getGroup = function(e) { var t = ""; if (e >= this.length || 0 === this.groupSizes[e]) return t; for(var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++)t += this.tag.getRule(s) + "/*!sc*/\n"; return t; }, e; }(), x = new Map(), k = new Map(), V = 1, B = function(e) { if (x.has(e)) return x.get(e); for(; k.has(V);)V++; var t = V++; return x.set(e, t), k.set(t, e), t; }, M = function(e, t) { t >= V && (V = t + 1), x.set(e, t), k.set(t, e); }, G = "style[" + A + '][data-styled-version="5.3.5"]', L = RegExp("^" + A + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), F = function(e, t, n) { for(var r, o = n.split(","), s = 0, i = o.length; s < i; s++)(r = o[s]) && e.registerName(t, r); }, Y = function(e, t) { for(var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++){ var i = n[o].trim(); if (i) { var a = i.match(L); if (a) { var c = 0 | parseInt(a[1], 10), u = a[2]; 0 !== c && (M(u, c), F(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0; } else r.push(i); } } }, q = function() { return "undefined" != typeof window && void 0 !== window.__webpack_nonce__ ? window.__webpack_nonce__ : null; }, H = function(e) { var t = document.head, n = e || t, r = document.createElement("style"), o = function(e) { for(var t = e.childNodes, n = t.length; n >= 0; n--){ var r = t[n]; if (r && 1 === r.nodeType && r.hasAttribute(A)) return r; } }(n), s = void 0 !== o ? o.nextSibling : null; r.setAttribute(A, "active"), r.setAttribute("data-styled-version", "5.3.5"); var i = q(); return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r; }, $ = function() { function e(e) { var t = this.element = H(e); t.appendChild(document.createTextNode("")), this.sheet = function(e) { if (e.sheet) return e.sheet; for(var t = document.styleSheets, n = 0, r = t.length; n < r; n++){ var o = t[n]; if (o.ownerNode === e) return o; } j(17); }(t), this.length = 0; } var t = e.prototype; return t.insertRule = function(e, t) { try { return this.sheet.insertRule(t, e), this.length++, !0; } catch (e) { return !1; } }, t.deleteRule = function(e) { this.sheet.deleteRule(e), this.length--; }, t.getRule = function(e) { var t = this.sheet.cssRules[e]; return void 0 !== t && "string" == typeof t.cssText ? t.cssText : ""; }, e; }(), W = function() { function e(e) { var t = this.element = H(e); this.nodes = t.childNodes, this.length = 0; } var t = e.prototype; return t.insertRule = function(e, t) { if (e <= this.length && e >= 0) { var n = document.createTextNode(t), r = this.nodes[e]; return this.element.insertBefore(n, r || null), this.length++, !0; } return !1; }, t.deleteRule = function(e) { this.element.removeChild(this.nodes[e]), this.length--; }, t.getRule = function(e) { return e < this.length ? this.nodes[e].textContent : ""; }, e; }(), U = function() { function e(e) { this.rules = [], this.length = 0; } var t = e.prototype; return t.insertRule = function(e, t) { return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0); }, t.deleteRule = function(e) { this.rules.splice(e, 1), this.length--; }, t.getRule = function(e) { return e < this.length ? this.rules[e] : ""; }, e; }(), J = I, X = { isServer: !I, useCSSOMInjection: !P }, Z = function() { function e(e, t, n) { void 0 === e && (e = E), void 0 === t && (t = {}), this.options = v({}, X, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && I && J && (J = !1, function(e) { for(var t = document.querySelectorAll(G), n = 0, r = t.length; n < r; n++){ var o = t[n]; o && "active" !== o.getAttribute(A) && (Y(e, o), o.parentNode && o.parentNode.removeChild(o)); } }(this)); } e.registerId = function(e) { return B(e); }; var t = e.prototype; return t.reconstructWithOptions = function(t, n) { return void 0 === n && (n = !0), new e(v({}, this.options, {}, t), this.gs, n && this.names || void 0); }, t.allocateGSInstance = function(e) { return this.gs[e] = (this.gs[e] || 0) + 1; }, t.getTag = function() { var t, n, r, o; return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, new T(n ? new U(o) : r ? new $(o) : new W(o)))); }, t.hasNameForId = function(e, t) { return this.names.has(e) && this.names.get(e).has(t); }, t.registerName = function(e, t) { if (B(e), this.names.has(e)) this.names.get(e).add(t); else { var n = new Set(); n.add(t), this.names.set(e, n); } }, t.insertRules = function(e, t, n) { this.registerName(e, t), this.getTag().insertRules(B(e), n); }, t.clearNames = function(e) { this.names.has(e) && this.names.get(e).clear(); }, t.clearRules = function(e) { this.getTag().clearGroup(B(e)), this.clearNames(e); }, t.clearTag = function() { this.tag = void 0; }, t.toString = function() { return function(e) { for(var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++){ var e1, s = (e1 = o, k.get(e1)); if (void 0 !== s) { var i = e.names.get(s), a = t.getGroup(o); if (i && a && i.size) { var c = A + ".g" + o + '[id="' + s + '"]', u = ""; void 0 !== i && i.forEach(function(e) { e.length > 0 && (u += e + ","); }), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n'; } } } return r; }(this); }, e; }(), K = /(a)(d)/gi, Q = function(e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)); }; function ee(e) { var t, n = ""; for(t = Math.abs(e); t > 52; t = t / 52 | 0)n = Q(t % 52) + n; return (Q(t % 52) + n).replace(K, "$1-$2"); } var te = function(e, t) { for(var n = t.length; n;)e = 33 * e ^ t.charCodeAt(--n); return e; }, ne = function(e) { return te(5381, e); }; function re(e) { for(var t = 0; t < e.length; t += 1){ var n = e[t]; if (b(n) && !N(n)) return !1; } return !0; } var oe = ne("5.3.5"), se = function() { function e(e, t, n) { this.rules = e, this.staticRulesId = "", this.isStatic = (void 0 === n || n.isStatic) && re(e), this.componentId = t, this.baseHash = te(oe, t), this.baseStyle = n, Z.registerId(t); } return e.prototype.generateAndInjectStyles = function(e, t, n) { var r = this.componentId, o = []; if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) { if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId); else { var s = Ne(this.rules, e, t, n).join(""), i = ee(te(this.baseHash, s) >>> 0); if (!t.hasNameForId(r, i)) { var a = n(s, "." + i, void 0, r); t.insertRules(r, i, a); } o.push(i), this.staticRulesId = i; } } else { for(var c = this.rules.length, u = te(this.baseHash, n.hash), l = "", d = 0; d < c; d++){ var h = this.rules[d]; if ("string" == typeof h) l += h; else if (h) { var p = Ne(h, e, t, n), f = Array.isArray(p) ? p.join("") : p; u = te(u, f + d), l += f; } } if (l) { var m = ee(u >>> 0); if (!t.hasNameForId(r, m)) { var y = n(l, "." + m, void 0, r); t.insertRules(r, m, y); } o.push(m); } } return o.join(" "); }, e; }(), ie = /^\s*\/\/.*$/gm, ae = [ ":", "[", ".", "#" ]; function ce(e) { var t, n, r, o, s = void 0 === e ? E : e, i = s.options, a = void 0 === i ? E : i, c = s.plugins, u = void 0 === c ? w : c, l = new stylis_browser_esm(a), d = [], h = function(e) { function t(t) { if (t) try { e(t + "}"); } catch (e) {} } return function(n, r, o, s, i, a, c, u, l, d) { switch(n){ case 1: if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), ""; break; case 2: if (0 === u) return r + "/*|*/"; break; case 3: switch(u){ case 102: case 112: return e(o[0] + r), ""; default: return r + (0 === d ? "/*|*/" : ""); } case -2: r.split("/*|*/}").forEach(t); } }; }(function(e) { d.push(e); }), f = function(e, r, s) { return 0 === r && -1 !== ae.indexOf(s[n.length]) || s.match(o) ? e : "." + t; }; function m(e, s, i, a) { void 0 === a && (a = "&"); var c = e.replace(ie, ""), u = s && i ? i + " " + s + " { " + c + " }" : c; return t = a, r = RegExp("\\" + (n = s) + "\\b", "g"), o = RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u); } return l.use([].concat(u, [ function(e, t, o) { 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f)); }, h, function(e) { if (-2 === e) { var t = d; return d = [], t; } } ])), m.hash = u.length ? u.reduce(function(e, t) { return t.name || j(15), te(e, t.name); }, 5381).toString() : "", m; } var ue = react.createContext(), de = (ue.Consumer, react.createContext()), he = (de.Consumer, new Z()), pe = ce(); function fe() { return (0, react.useContext)(ue) || he; } function me() { return (0, react.useContext)(de) || pe; } function ye(e) { var t = (0, react.useState)(e.stylisPlugins), n = t[0], s = t[1], c = fe(), u = (0, react.useMemo)(function() { var t = c; return e.sheet ? t = e.sheet : e.target && (t = t.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (t = t.reconstructWithOptions({ useCSSOMInjection: !1 })), t; }, [ e.disableCSSOMInjection, e.sheet, e.target ]), l = (0, react.useMemo)(function() { return ce({ options: { prefix: !e.disableVendorPrefixes }, plugins: n }); }, [ e.disableVendorPrefixes, n ]); return (0, react.useEffect)(function() { shallowequal_default()(n, e.stylisPlugins) || s(e.stylisPlugins); }, [ e.stylisPlugins ]), react.createElement(ue.Provider, { value: u }, react.createElement(de.Provider, { value: l }, e.children)); } var ve = function() { function e(e, t) { var n = this; this.inject = function(e, t) { void 0 === t && (t = pe); var r = n.name + t.hash; e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes")); }, this.toString = function() { return j(12, String(n.name)); }, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t; } return e.prototype.getName = function(e) { return void 0 === e && (e = pe), this.name + e.hash; }, e; }(), ge = /([A-Z])/, Se = /([A-Z])/g, we = /^ms-/, Ee = function(e) { return "-" + e.toLowerCase(); }; function be(e) { return ge.test(e) ? e.replace(Se, Ee).replace(we, "-ms-") : e; } var _e = function(e) { return null == e || !1 === e || "" === e; }; function Ne(e, n, r, o) { if (Array.isArray(e)) { for(var s, i = [], a = 0, c = e.length; a < c; a += 1)"" !== (s = Ne(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s)); return i; } return _e(e) ? "" : N(e) ? "." + e.styledComponentId : b(e) ? "function" != typeof e || e.prototype && e.prototype.isReactComponent || !n ? e : Ne(e(n), n, r, o) : e instanceof ve ? r ? (e.inject(r, o), e.getName(o)) : e : S(e) ? function e(t, n) { var o, s = []; for(var i in t)t.hasOwnProperty(i) && !_e(t[i]) && (Array.isArray(t[i]) && t[i].isCss || b(t[i]) ? s.push(be(i) + ":", t[i], ";") : S(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(be(i) + ": " + (null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || i in unitless_browser_esm ? String(o).trim() : o + "px") + ";")); return n ? [ n + " {" ].concat(s, [ "}" ]) : s; }(e) : e.toString(); } var Ae = function(e) { return Array.isArray(e) && (e.isCss = !0), e; }; function Ce(e) { for(var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r]; return b(e) || S(e) ? Ae(Ne(g(w, [ e ].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ae(Ne(g(e, n))); } var Re = function(e, t, n) { return void 0 === n && (n = E), e.theme !== n.theme && e.theme || t || n.theme; }, De = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, je = /(^-|-$)/g; function Te(e) { return e.replace(De, "-").replace(je, ""); } var xe = function(e) { return ee(ne(e) >>> 0); }; function ke(e) { return "string" == typeof e; } var Ve = function(e) { return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e); }, Ge = react.createContext(); function Fe(e) { var t = (0, react.useContext)(Ge), n = (0, react.useMemo)(function() { var e1; return (e1 = e.theme) ? b(e1) ? e1(t) : Array.isArray(e1) || "object" != typeof e1 ? j(8) : t ? v({}, t, {}, e1) : e1 : j(14); }, [ e.theme, t ]); return e.children ? react.createElement(Ge.Provider, { value: n }, e.children) : null; } Ge.Consumer; var Ye = {}, He = function(e) { return function e(t, r, o) { if (void 0 === o && (o = E), !(0, react_is.isValidElementType)(r)) return j(1, String(r)); var s = function() { return t(r, o, Ce.apply(void 0, arguments)); }; return s.withConfig = function(n) { return e(t, r, v({}, o, {}, n)); }, s.attrs = function(n) { return e(t, r, v({}, o, { attrs: Array.prototype.concat(o.attrs, n).filter(Boolean) })); }, s; }(function qe(e, t, n) { var o = N(e), i = !ke(e), a = t.attrs, c = void 0 === a ? w : a, d = t.componentId, h = void 0 === d ? (e1 = t.displayName, t1 = t.parentComponentId, Ye[n1 = "string" != typeof e1 ? "sc" : Te(e1)] = (Ye[n1] || 0) + 1, r = n1 + "-" + xe("5.3.5" + n1 + Ye[n1]), t1 ? t1 + "-" + r : r) : d, p = t.displayName, f = void 0 === p ? ke(e) ? "styled." + e : "Styled(" + _(e) + ")" : p, g = t.displayName && t.componentId ? Te(t.displayName) + "-" + t.componentId : t.componentId || h, S = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c, A = t.shouldForwardProp; o && e.shouldForwardProp && (A = t.shouldForwardProp ? function(n, r, o) { return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o); } : e.shouldForwardProp); var e1, t1, n1, r, C, I = new se(n, g, o ? e.componentStyle : void 0), P = I.isStatic && 0 === c.length, O = function(e, t) { return function(e, t, n, r) { var e1, r1, o, o1, s, o2 = e.attrs, i = e.componentStyle, a = e.defaultProps, c = e.foldedComponentIds, d = e.shouldForwardProp, h = e.styledComponentId, p = e.target, f = (void 0 === (e1 = Re(t, (0, react.useContext)(Ge), a) || E) && (e1 = E), r1 = v({}, t, { theme: e1 }), o = {}, o2.forEach(function(e) { var t, n, s, i = e; for(t in b(i) && (i = i(r1)), i)r1[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t]; }), [ r1, o ]), y = f[0], g = f[1], S = (o1 = fe(), s = me(), r ? i.generateAndInjectStyles(E, o1, s) : i.generateAndInjectStyles(y, o1, s)), _ = g.$as || t.$as || g.as || t.as || p, N = ke(_), A = g !== t ? v({}, t, {}, g) : t, C = {}; for(var I in A)"$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I])); return t.style && g.style !== t.style && (C.style = v({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = n, (0, react.createElement)(_, C); }(C, e, t, P); }; return O.displayName = f, (C = react.forwardRef(O)).attrs = S, C.componentStyle = I, C.displayName = f, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : w, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function(e) { var r = t.componentId, o = function(e, t) { if (null == e) return {}; var n, r, o = {}, s = Object.keys(e); for(r = 0; r < s.length; r++)t.indexOf(n = s[r]) >= 0 || (o[n] = e[n]); return o; }(t, [ "componentId" ]), s = r && r + "-" + (ke(e) ? e : Te(_(e))); return qe(e, v({}, o, { attrs: S, componentId: s }), n); }, Object.defineProperty(C, "defaultProps", { get: function() { return this._foldedDefaultProps; }, set: function(t) { this._foldedDefaultProps = o ? function Me(e) { for(var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)n[r - 1] = arguments[r]; for(var o = 0; o < n.length; o++){ var i = n[o]; if (Ve(i)) for(var a in i)"__proto__" !== a && "constructor" !== a && "prototype" !== a && function(e, t, n) { var r = e[n]; Ve(t) && Ve(r) ? Me(r, t) : e[n] = t; }(e, i[a], a); } return e; }({}, e.defaultProps, t) : t; } }), C.toString = function() { return "." + C.styledComponentId; }, i && hoist_non_react_statics_cjs_default()(C, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0 }), C; }, e); }; [ "a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan" ].forEach(function(e) { He[e] = He(e); }); var $e = function() { function e(e, t) { this.rules = e, this.componentId = t, this.isStatic = re(e), Z.registerId(this.componentId + 1); } var t = e.prototype; return t.createStyles = function(e, t, n, r) { var o = r(Ne(this.rules, t, n, r).join(""), ""), s = this.componentId + e; n.insertRules(s, s, o); }, t.removeStyles = function(e, t) { t.clearRules(this.componentId + e); }, t.renderStyles = function(e, t, n, r) { e > 2 && Z.registerId(this.componentId + e), this.removeStyles(e, n), this.createStyles(e, t, n, r); }, e; }(); (t = (function() { var e = this; this._emitSheetCSS = function() { var t = e.instance.toString(); if (!t) return ""; var n = q(); return "<style " + [ n && 'nonce="' + n + '"', A + '="true"', 'data-styled-version="5.3.5"' ].filter(Boolean).join(" ") + ">" + t + "</style>"; }, this.getStyleTags = function() { return e.sealed ? j(2) : e._emitSheetCSS(); }, this.getStyleElement = function() { if (e.sealed) return j(2); var t, n = ((t = {})[A] = "", t["data-styled-version"] = "5.3.5", t.dangerouslySetInnerHTML = { __html: e.instance.toString() }, t), o = q(); return o && (n.nonce = o), [ react.createElement("style", v({}, n, { key: "sc-0-0" })) ]; }, this.seal = function() { e.sealed = !0; }, this.instance = new Z({ isServer: !0 }), this.sealed = !1; }).prototype).collectStyles = function(e) { return this.sealed ? j(2) : react.createElement(ye, { sheet: this.instance }, e); }, t.interleaveWithNodeStream = function(e) { return j(3); }; //# sourceMappingURL=styled-components.browser.esm.js.map // EXTERNAL MODULE: ./node_modules/next/dist/build/polyfills/object-assign.js var object_assign = __webpack_require__(6086), object_assign_default = /*#__PURE__*/ __webpack_require__.n(object_assign), merge = function(a, b) { var _assign, result = object_assign_default()({}, a, b); for(var key in a)a[key] && "object" == typeof b[key] && object_assign_default()(result, ((_assign = {})[key] = object_assign_default()(a[key], b[key]), _assign)); return result; }, sort = function(obj) { var next = {}; return Object.keys(obj).sort(function(a, b) { return a.localeCompare(b, void 0, { numeric: !0, sensitivity: "base" }); }).forEach(function(key) { next[key] = obj[key]; }), next; }, defaults = { breakpoints: [ 40, 52, 64 ].map(function(n) { return n + "em"; }) }, createMediaQuery = function(n) { return "@media screen and (min-width: " + n + ")"; }, getValue = function(n, scale) { return get(scale, n, n); }, get = function(obj, key, def, p, undef) { for(p = 0, key = key && key.split ? key.split(".") : [ key ]; p < key.length; p++)obj = obj ? obj[key[p]] : undef; return obj === undef ? def : obj; }, createParser = function createParser(config) { var cache = {}, parse = function(props) { var styles = {}, shouldSort = !1, isCacheDisabled = props.theme && props.theme.disableStyledSystemCache; for(var key in props)if (config[key]) { var sx = config[key], raw = props[key], scale = get(props.theme, sx.scale, sx.defaults); if ("object" == typeof raw) { if (cache.breakpoints = !isCacheDisabled && cache.breakpoints || get(props.theme, "breakpoints", defaults.breakpoints), Array.isArray(raw)) { cache.media = !isCacheDisabled && cache.media || [ null ].concat(cache.breakpoints.map(createMediaQuery)), styles = merge(styles, parseResponsiveStyle(cache.media, sx, scale, raw, props)); continue; } null !== raw && (styles = merge(styles, parseResponsiveObject(cache.breakpoints, sx, scale, raw, props)), shouldSort = !0); continue; } object_assign_default()(styles, sx(raw, scale, props)); } // sort object-based responsive styles return shouldSort && (styles = sort(styles)), styles; }; parse.config = config, parse.propNames = Object.keys(config), parse.cache = cache; var keys = Object.keys(config).filter(function(k) { return "config" !== k; }); return keys.length > 1 && keys.forEach(function(key) { var _createParser; parse[key] = createParser(((_createParser = {})[key] = config[key], _createParser)); }), parse; }, parseResponsiveStyle = function(mediaQueries, sx, scale, raw, _props) { var styles = {}; return raw.slice(0, mediaQueries.length).forEach(function(value, i) { var _assign2, media = mediaQueries[i], style = sx(value, scale, _props); media ? object_assign_default()(styles, ((_assign2 = {})[media] = object_assign_default()({}, styles[media], style), _assign2)) : object_assign_default()(styles, style); }), styles; }, parseResponsiveObject = function(breakpoints, sx, scale, raw, _props) { var styles = {}; for(var key in raw){ var breakpoint = breakpoints[key], style = sx(raw[key], scale, _props); if (breakpoint) { var _assign3, media = createMediaQuery(breakpoint); object_assign_default()(styles, ((_assign3 = {})[media] = object_assign_default()({}, styles[media], style), _assign3)); } else object_assign_default()(styles, style); } return styles; }, createStyleFunction = function(_ref) { var properties = _ref.properties, property = _ref.property, scale = _ref.scale, _ref$transform = _ref.transform, transform = void 0 === _ref$transform ? getValue : _ref$transform, defaultScale = _ref.defaultScale; properties = properties || [ property ]; var sx = function(value, scale, _props) { var result = {}, n = transform(value, scale, _props); if (null !== n) return properties.forEach(function(prop) { result[prop] = n; }), result; }; return sx.scale = scale, sx.defaults = defaultScale, sx; }, system = function(args) { void 0 === args && (args = {}); var config = {}; return Object.keys(args).forEach(function(key) { var conf = args[key]; if (!0 === conf) { // shortcut definition config[key] = createStyleFunction({ property: key, scale: key }); return; } if ("function" == typeof conf) { config[key] = conf; return; } config[key] = createStyleFunction(conf); }), createParser(config); }, compose = function() { for(var config = {}, _len = arguments.length, parsers = Array(_len), _key = 0; _key < _len; _key++)parsers[_key] = arguments[_key]; return parsers.forEach(function(parser) { parser && parser.config && object_assign_default()(config, parser.config); }), createParser(config); }, layout = system({ width: { property: "width", scale: "sizes", transform: function(n, scale) { return get(scale, n, !("number" == typeof n && !isNaN(n)) || n > 1 ? n : 100 * n + "%"); } }, height: { property: "height", scale: "sizes" }, minWidth: { property: "minWidth", scale: "sizes" }, minHeight: { property: "minHeight", scale: "sizes" }, maxWidth: { property: "maxWidth", scale: "sizes" }, maxHeight: { property: "maxHeight", scale: "sizes" }, size: { properties: [ "width", "height" ], scale: "sizes" }, overflow: !0, overflowX: !0, overflowY: !0, display: !0, verticalAlign: !0 }), index_esm_config = { color: { property: "color", scale: "colors" }, backgroundColor: { property: "backgroundColor", scale: "colors" }, opacity: !0 }; index_esm_config.bg = index_esm_config.backgroundColor; var color = system(index_esm_config), typography = system({ fontFamily: { property: "fontFamily", scale: "fonts" }, fontSize: { property: "fontSize", scale: "fontSizes", defaultScale: [ 12, 14, 16, 20, 24, 32, 48, 64, 72 ] }, fontWeight: { property: "fontWeight", scale: "fontWeights" }, lineHeight: { property: "lineHeight", scale: "lineHeights" }, letterSpacing: { property: "letterSpacing", scale: "letterSpacings" }, textAlign: !0, fontStyle: !0 }), flexbox = system({ alignItems: !0, alignContent: !0, justifyItems: !0, justifyContent: !0, flexWrap: !0, flexDirection: !0, // item flex: !0, flexGrow: !0, flexShrink: !0, flexBasis: !0, justifySelf: !0, alignSelf: !0, order: !0 }), dist_index_esm_defaults_space = [ 0, 4, 8, 16, 32, 64, 128, 256, 512 ], grid = system({ gridGap: { property: "gridGap", scale: "space", defaultScale: dist_index_esm_defaults_space }, gridColumnGap: { property: "gridColumnGap", scale: "space", defaultScale: dist_index_esm_defaults_space }, gridRowGap: { property: "gridRowGap", scale: "space", defaultScale: dist_index_esm_defaults_space }, gridColumn: !0, gridRow: !0, gridAutoFlow: !0, gridAutoColumns: !0, gridAutoRows: !0, gridTemplateColumns: !0, gridTemplateRows: !0, gridTemplateAreas: !0, gridArea: !0 }), border_dist_index_esm_config = { border: { property: "border", scale: "borders" }, borderWidth: { property: "borderWidth", scale: "borderWidths" }, borderStyle: { property: "borderStyle", scale: "borderStyles" }, borderColor: { property: "borderColor", scale: "colors" }, borderRadius: { property: "borderRadius", scale: "radii" }, borderTop: { property: "borderTop", scale: "borders" }, borderTopLeftRadius: { property: "borderTopLeftRadius", scale: "radii" }, borderTopRightRadius: { property: "borderTopRightRadius", scale: "radii" }, borderRight: { property: "borderRight", scale: "borders" }, borderBottom: { property: "borderBottom", scale: "borders" }, borderBottomLeftRadius: { property: "borderBottomLeftRadius", scale: "radii" }, borderBottomRightRadius: { property: "borderBottomRightRadius", scale: "radii" }, borderLeft: { property: "borderLeft", scale: "borders" }, borderX: { properties: [ "borderLeft", "borderRight" ], scale: "borders" }, borderY: { properties: [ "borderTop", "borderBottom" ], scale: "borders" } }; border_dist_index_esm_config.borderTopWidth = { property: "borderTopWidth", scale: "borderWidths" }, border_dist_index_esm_config.borderTopColor = { property: "borderTopColor", scale: "colors" }, border_dist_index_esm_config.borderTopStyle = { property: "borderTopStyle", scale: "borderStyles" }, border_dist_index_esm_config.borderTopLeftRadius = { property: "borderTopLeftRadius", scale: "radii" }, border_dist_index_esm_config.borderTopRightRadius = { property: "borderTopRightRadius", scale: "radii" }, border_dist_index_esm_config.borderBottomWidth = { property: "borderBottomWidth", scale: "borderWidths" }, border_dist_index_esm_config.borderBottomColor = { property: "borderBottomColor", scale: "colors" }, border_dist_index_esm_config.borderBottomStyle = { property: "borderBottomStyle", scale: "borderStyles" }, border_dist_index_esm_config.borderBottomLeftRadius = { property: "borderBottomLeftRadius", scale: "radii" }, border_dist_index_esm_config.borderBottomRightRadius = { property: "borderBottomRightRadius", scale: "radii" }, border_dist_index_esm_config.borderLeftWidth = { property: "borderLeftWidth", scale: "borderWidths" }, border_dist_index_esm_config.borderLeftColor = { property: "borderLeftColor", scale: "colors" }, border_dist_index_esm_config.borderLeftStyle = { property: "borderLeftStyle", scale: "borderStyles" }, border_dist_index_esm_config.borderRightWidth = { property: "borderRightWidth", scale: "borderWidths" }, border_dist_index_esm_config.borderRightColor = { property: "borderRightColor", scale: "colors" }, border_dist_index_esm_config.borderRightStyle = { property: "borderRightStyle", scale: "borderStyles" }; var border = system(border_dist_index_esm_config), border_dist_index_esm = border, background_dist_index_esm_config = { background: !0, backgroundImage: !0, backgroundSize: !0, backgroundPosition: !0, backgroundRepeat: !0 }; background_dist_index_esm_config.bgImage = background_dist_index_esm_config.backgroundImage, background_dist_index_esm_config.bgSize = background_dist_index_esm_config.backgroundSize, background_dist_index_esm_config.bgPosition = background_dist_index_esm_config.backgroundPosition, background_dist_index_esm_config.bgRepeat = background_dist_index_esm_config.backgroundRepeat; var background = system(background_dist_index_esm_config), position_dist_index_esm_defaults_space = [ 0, 4, 8, 16, 32, 64, 128, 256, 512 ], position = system({ position: !0, zIndex: { property: "zIndex", scale: "zIndices" }, top: { property: "top", scale: "space", defaultScale: position_dist_index_esm_defaults_space }, right: { property: "right", scale: "space", defaultScale: position_dist_index_esm_defaults_space }, bottom: { property: "bottom", scale: "space", defaultScale: position_dist_index_esm_defaults_space }, left: { property: "left", scale: "space", defaultScale: position_dist_index_esm_defaults_space } }), space_dist_index_esm_defaults_space = [ 0, 4, 8, 16, 32, 64, 128, 256, 512 ], index_esm_isNumber = function(n) { return "number" == typeof n && !isNaN(n); }, getMargin = function(n, scale) { if (!index_esm_isNumber(n)) return get(scale, n, n); var isNegative = n < 0, absolute = Math.abs(n), value = get(scale, absolute, absolute); return index_esm_isNumber(value) ? value * (isNegative ? -1 : 1) : isNegative ? "-" + value : value; }, configs = {}; configs.margin = { margin: { property: "margin", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults_space }, marginTop: { property: "marginTop", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults_space }, marginRight: { property: "marginRight", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults_space }, marginBottom: { property: "marginBottom", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults_space }, marginLeft: { property: "marginLeft", scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults_space }, marginX: { properties: [ "marginLeft", "marginRight" ], scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults_space }, marginY: { properties: [ "marginTop", "marginBottom" ], scale: "space", transform: getMargin, defaultScale: space_dist_index_esm_defaults_space } }, configs.margin.m = configs.margin.margin, configs.margin.mt = configs.margin.marginTop, configs.margin.mr = configs.margin.marginRight, configs.margin.mb = configs.margin.marginBottom, configs.margin.ml = configs.margin.marginLeft, configs.margin.mx = configs.margin.marginX, configs.margin.my = configs.margin.marginY, configs.padding = { padding: { property: "padding", scale: "space", defaultScale: space_dist_index_esm_defaults_space }, paddingTop: { property: "paddingTop", scale: "space", defaultScale: space_dist_index_esm_defaults_space }, paddingRight: { property: "paddingRight", scale: "space", defaultScale: space_dist_index_esm_defaults_space }, paddingBottom: { property: "paddingBottom", scale: "space", defaultScale: space_dist_index_esm_defaults_space }, paddingLeft: { property: "paddingLeft", scale: "space", defaultScale: space_dist_index_esm_defaults_space }, paddingX: { properties: [ "paddingLeft", "paddingRight" ], scale: "space", defaultScale: space_dist_index_esm_defaults_space }, paddingY: { properties: [ "paddingTop", "paddingBottom" ], scale: "space", defaultScale: space_dist_index_esm_defaults_space } }, configs.padding.p = configs.padding.padding, configs.padding.pt = configs.padding.paddingTop, configs.padding.pr = configs.padding.paddingRight, configs.padding.pb = configs.padding.paddingBottom, configs.padding.pl = configs.padding.paddingLeft, configs.padding.px = configs.padding.paddingX, configs.padding.py = configs.padding.paddingY; var margin = system(configs.margin), padding = system(configs.padding), space = compose(margin, padding), shadow = system({ boxShadow: { property: "boxShadow", scale: "shadows" }, textShadow: { property: "textShadow", scale: "shadows" } }), shadow_dist_index_esm = shadow; function _extends() { return (_extends = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; }).apply(this, arguments); } // based on https://github.com/developit/dlv var index_esm_get = function(obj, key, def, p, undef) { for(p = 0, key = key && key.split ? key.split(".") : [ key ]; p < key.length; p++)obj = obj ? obj[key[p]] : undef; return obj === undef ? def : obj; }, defaultBreakpoints = [ 40, 52, 64 ].map(function(n) { return n + "em"; }), defaultTheme = { space: [ 0, 4, 8, 16, 32, 64, 128, 256, 512 ], fontSizes: [ 12, 14, 16, 20, 24, 32, 48, 64, 72 ] }, aliases = { bg: "backgroundColor", m: "margin", mt: "marginTop", mr: "marginRight", mb: "marginBottom", ml: "marginLeft", mx: "marginX", my: "marginY", p: "padding", pt: "paddingTop", pr: "paddingRight", pb: "paddingBottom", pl: "paddingLeft", px: "paddingX", py: "paddingY" }, multiples = { marginX: [ "marginLeft", "marginRight" ], marginY: [ "marginTop", "marginBottom" ], paddingX: [ "paddingLeft", "paddingRight" ], paddingY: [ "paddingTop", "paddingBottom" ], size: [ "width", "height" ] }, scales = { color: "colors", backgroundColor: "colors", borderColor: "colors", margin: "space", marginTop: "space", marginRight: "space", marginBottom: "space", marginLeft: "space", marginX: "space", marginY: "space", padding: "space", paddingTop: "space", paddingRight: "space", paddingBottom: "space", paddingLeft: "space", paddingX: "space", paddingY: "space", top: "space", right: "space", bottom: "space", left: "space", gridGap: "space", gridColumnGap: "space", gridRowGap: "space", gap: "space", columnGap: "space", rowGap: "space", fontFamily: "fonts", fontSize: "fontSizes", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", border: "borders", borderTop: "borders", borderRight: "borders", borderBottom: "borders", borderLeft: "borders", borderWidth: "borderWidths", borderStyle: "borderStyles", borderRadius: "radii", borderTopRightRadius: "radii", borderTopLeftRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", borderTopWidth: "borderWidths", borderTopColor: "colors", borderTopStyle: "borderStyles", borderBottomWidth: "borderWidths", borderBottomColor: "colors", borderBottomStyle: "borderStyles", borderLeftWidth: "borderWidths", borderLeftColor: "colors", borderLeftStyle: "borderStyles", borderRightWidth: "borderWidths", borderRightColor: "colors", borderRightStyle: "borderStyles", outlineColor: "colors", boxShadow: "shadows", textShadow: "shadows", zIndex: "zIndices", width: "sizes", minWidth: "sizes", maxWidth: "sizes", height: "sizes", minHeight: "sizes", maxHeight: "sizes", flexBasis: "sizes", size: "sizes", // svg fill: "colors", stroke: "colors" }, positiveOrNegative = function(scale, value) { if ("number" != typeof value || value >= 0) return index_esm_get(scale, value, value); var absolute = Math.abs(value), n = index_esm_get(scale, absolute, absolute); return "string" == typeof n ? "-" + n : -1 * n; }, transforms = [ "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "top", "bottom", "left", "right" ].reduce(function(acc, curr) { var _extends2; return _extends({}, acc, ((_extends2 = {})[curr] = positiveOrNegative, _extends2)); }, {}), css_dist_index_esm = function css(args) { return function(props) { void 0 === props && (props = {}); var styles, theme = _extends({}, defaultTheme, {}, props.theme || props), result = {}, styles1 = (styles = "function" == typeof args ? args(theme) : args, function(theme) { var next = {}, mediaQueries = [ null ].concat(index_esm_get(theme, "breakpoints", defaultBreakpoints).map(function(n) { return "@media screen and (min-width: " + n + ")"; })); for(var key in styles){ var value = "function" == typeof styles[key] ? styles[key](theme) : styles[key]; if (null != value) { if (!Array.isArray(value)) { next[key] = value; continue; } for(var i = 0; i < value.slice(0, mediaQueries.length).length; i++){ var media = mediaQueries[i]; if (!media) { next[key] = value[i]; continue; } next[media] = next[media] || {}, null != value[i] && (next[media][key] = value[i]); } } } return next; })(theme); for(var key in styles1){ var x = styles1[key], val = "function" == typeof x ? x(theme) : x; if ("variant" === key) { var variant = css(index_esm_get(theme, val))(theme); result = _extends({}, result, {}, variant); continue; } if (val && "object" == typeof val) { result[key] = css(val)(theme); continue; } var prop = index_esm_get(aliases, key, key), scaleName = index_esm_get(scales, prop), scale = index_esm_get(theme, scaleName, index_esm_get(theme, prop, {})), value = index_esm_get(transforms, prop, index_esm_get)(scale, val, val); if (multiples[prop]) for(var dirs = multiples[prop], i = 0; i < dirs.length; i++)result[dirs[i]] = value; else result[prop] = value; } return result; }; }, variant = function(_ref) { var _config, sx, scale = _ref.scale, _ref$prop = _ref.prop, _ref$variants = _ref.variants, variants = void 0 === _ref$variants ? {} : _ref$variants, key = _ref.key; return (sx = Object.keys(variants).length ? function(value, scale, props) { return css_dist_index_esm(get(scale, value, null))(props.theme); } : function(value, scale) { return get(scale, value, null); }).scale = scale || key, sx.defaults = variants, createParser(((_config = {})[void 0 === _ref$prop ? "variant" : _ref$prop] = sx, _config)); }, buttonStyle = variant({ key: "buttons" }), textStyle = variant({ key: "textStyles", prop: "textStyle" }), colorStyle = variant({ key: "colorStyles", prop: "colors" }), width = layout.width, height = layout.height, minWidth = layout.minWidth, minHeight = layout.minHeight, maxWidth = layout.maxWidth, maxHeight = layout.maxHeight, size = layout.size, verticalAlign = layout.verticalAlign, display = layout.display, overflow = layout.overflow, overflowX = layout.overflowX, overflowY = layout.overflowY, opacity = color.opacity, fontSize = typography.fontSize, fontFamily = typography.fontFamily, fontWeight = typography.fontWeight, lineHeight = typography.lineHeight, textAlign = typography.textAlign, fontStyle = typography.fontStyle, letterSpacing = typography.letterSpacing, alignItems = flexbox.alignItems, alignContent = flexbox.alignContent, justifyItems = flexbox.justifyItems, justifyContent = flexbox.justifyContent, flexWrap = flexbox.flexWrap, flexDirection = flexbox.flexDirection, flex = flexbox.flex, flexGrow = flexbox.flexGrow, flexShrink = flexbox.flexShrink, flexBasis = flexbox.flexBasis, justifySelf = flexbox.justifySelf, alignSelf = flexbox.alignSelf, order = flexbox.order, gridGap = grid.gridGap, gridColumnGap = grid.gridColumnGap, gridRowGap = grid.gridRowGap, gridColumn = grid.gridColumn, gridRow = grid.gridRow, gridAutoFlow = grid.gridAutoFlow, gridAutoColumns = grid.gridAutoColumns, gridAutoRows = grid.gridAutoRows, gridTemplateColumns = grid.gridTemplateColumns, gridTemplateRows = grid.gridTemplateRows, gridTemplateAreas = grid.gridTemplateAreas, gridArea = grid.gridArea, borderWidth = border_dist_index_esm.borderWidth, borderStyle = border_dist_index_esm.borderStyle, borderColor = border_dist_index_esm.borderColor, borderTop = border_dist_index_esm.borderTop, borderRight = border_dist_index_esm.borderRight, borderBottom = border_dist_index_esm.borderBottom, borderLeft = border_dist_index_esm.borderLeft, borderRadius = border_dist_index_esm.borderRadius, backgroundImage = background.backgroundImage, backgroundSize = background.backgroundSize, backgroundPosition = background.backgroundPosition, backgroundRepeat = background.backgroundRepeat, zIndex = position.zIndex, index_esm_top = position.top, right = position.right, bottom = position.bottom, left = position.left, style = function(_ref) { var prop = _ref.prop, cssProperty = _ref.cssProperty, alias = _ref.alias, key = _ref.key, transformValue = _ref.transformValue, scale = _ref.scale, properties = _ref.properties, config = {}; return config[prop] = createStyleFunction({ properties: properties, property: cssProperty || prop, scale: key, defaultScale: scale, transform: transformValue }), alias && (config[alias] = config[prop]), createParser(config); }, cjs = __webpack_require__(9996), cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs), lib_esm_sx = (props)=>css_dist_index_esm(props.sx); const Box = He.div.withConfig({ displayName: "Box", componentId: "sc-1gh2r6s-0" })(space, color, typography, layout, flexbox, grid, background, border, position, shadow, lib_esm_sx); /* harmony default export */ var lib_esm_theme = __webpack_require__(7689).theme; // NOTE: for now, ThemeColors and ThemeShadows are handcrafted types. It would be nice if these // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/ThemeProvider.js const defaultDayScheme = "light", defaultNightScheme = "dark", ThemeContext = /*#__PURE__*/ react.createContext({ setColorMode: ()=>null, setDayScheme: ()=>null, setNightScheme: ()=>null }), getServerHandoff = ()=>{ try { var _document$getElementB; const serverData = null === (_document$getElementB = document.getElementById("__PRIMER_DATA__")) || void 0 === _document$getElementB ? void 0 : _document$getElementB.textContent; if (serverData) return JSON.parse(serverData); } catch (error) { // if document/element does not exist or JSON is invalid, supress error } return {}; }, ThemeProvider = ({ children, ...props })=>{ var _ref, _props$theme, _ref2, _props$colorMode, _ref3, _props$dayScheme, _ref4, _props$nightScheme; // Get fallback values from parent ThemeProvider (if exists) const { theme: fallbackTheme, colorMode: fallbackColorMode, dayScheme: fallbackDayScheme, nightScheme: fallbackNightScheme } = useTheme(), theme = null !== (_ref = null !== (_props$theme = props.theme) && void 0 !== _props$theme ? _props$theme : fallbackTheme) && void 0 !== _ref ? _ref : lib_esm_theme, { resolvedServerColorMode } = getServerHandoff(), resolvedColorModePassthrough = react.useRef(resolvedServerColorMode), [colorMode, setColorMode] = react.useState(null !== (_ref2 = null !== (_props$colorMode = props.colorMode) && void 0 !== _props$colorMode ? _props$colorMode : fallbackColorMode) && void 0 !== _ref2 ? _ref2 : "day"), [dayScheme, setDayScheme] = react.useState(null !== (_ref3 = null !== (_props$dayScheme = props.dayScheme) && void 0 !== _props$dayScheme ? _props$dayScheme : fallbackDayScheme) && void 0 !== _ref3 ? _ref3 : defaultDayScheme), [nightScheme, setNightScheme] = react.useState(null !== (_ref4 = null !== (_props$nightScheme = props.nightScheme) && void 0 !== _props$nightScheme ? _props$nightScheme : fallbackNightScheme) && void 0 !== _ref4 ? _ref4 : defaultNightScheme), systemColorMode = function() { const [systemColorMode, setSystemColorMode] = react.useState(getSystemColorMode); return react.useEffect(()=>{ var _window, _window$matchMedia; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition const media = null === (_window = window) || void 0 === _window ? void 0 : null === (_window$matchMedia = _window.matchMedia) || void 0 === _window$matchMedia ? void 0 : _window$matchMedia.call(_window, "(prefers-color-scheme: dark)"); function handleChange(event) { setSystemColorMode(event.matches ? "night" : "day"); } // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (media) { // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (void 0 !== media.addEventListener) return media.addEventListener("change", handleChange), function() { media.removeEventListener("change", handleChange); }; if (void 0 !== media.addListener) return media.addListener(handleChange), function() { media.removeListener(handleChange); }; } }, []), systemColorMode; }(), resolvedColorMode = resolvedColorModePassthrough.current || resolveColorMode(colorMode, systemColorMode), colorScheme = function(colorMode, dayScheme, nightScheme) { switch(colorMode){ case "day": return dayScheme; case "night": return nightScheme; } }(resolvedColorMode, dayScheme, nightScheme), { resolvedTheme, resolvedColorScheme } = react.useMemo(()=>(function(theme, colorScheme) { if (!theme.colorSchemes) return { resolvedTheme: theme, resolvedColorScheme: void 0 }; if (!theme.colorSchemes[colorScheme]) { // eslint-disable-next-line no-console console.error(`\`${colorScheme}\` scheme not defined in \`theme.colorSchemes\``); // Apply the first defined color scheme const defaultColorScheme = Object.keys(theme.colorSchemes)[0]; return { resolvedTheme: cjs_default()(theme, theme.colorSchemes[defaultColorScheme]), resolvedColorScheme: defaultColorScheme }; } return { resolvedTheme: cjs_default()(theme, theme.colorSchemes[colorScheme]), resolvedColorScheme: colorScheme }; })(theme, colorScheme), [ theme, colorScheme ]); // Initialize state return react.useEffect(function() { const resolvedColorModeOnClient = resolveColorMode(colorMode, systemColorMode); resolvedColorModePassthrough.current && (resolvedColorModePassthrough.current !== resolvedColorModeOnClient && window.setTimeout(()=>{ // override colorMode to whatever is resolved on the client to get a re-render setColorMode(resolvedColorModeOnClient), setColorMode(colorMode); }), resolvedColorModePassthrough.current = null); }, [ colorMode, systemColorMode ]), react.useEffect(()=>{ var _ref5, _props$colorMode2; setColorMode(null !== (_ref5 = null !== (_props$colorMode2 = props.colorMode) && void 0 !== _props$colorMode2 ? _props$colorMode2 : fallbackColorMode) && void 0 !== _ref5 ? _ref5 : "day"); }, [ props.colorMode, fallbackColorMode ]), react.useEffect(()=>{ setColorMode(resolvedColorMode); }, [ resolvedColorMode ]), react.useEffect(()=>{ var _ref6, _props$dayScheme2; setDayScheme(null !== (_ref6 = null !== (_props$dayScheme2 = props.dayScheme) && void 0 !== _props$dayScheme2 ? _props$dayScheme2 : fallbackDayScheme) && void 0 !== _ref6 ? _ref6 : defaultDayScheme); }, [ props.dayScheme, fallbackDayScheme ]), react.useEffect(()=>{ var _ref7, _props$nightScheme2; setNightScheme(null !== (_ref7 = null !== (_props$nightScheme2 = props.nightScheme) && void 0 !== _props$nightScheme2 ? _props$nightScheme2 : fallbackNightScheme) && void 0 !== _ref7 ? _ref7 : defaultNightScheme); }, [ props.nightScheme, fallbackNightScheme ]), /*#__PURE__*/ react.createElement(ThemeContext.Provider, { value: { theme: resolvedTheme, colorScheme, colorMode, resolvedColorMode, resolvedColorScheme, dayScheme, nightScheme, setColorMode, setDayScheme, setNightScheme } }, /*#__PURE__*/ react.createElement(Fe, { theme: resolvedTheme }, children, props.preventSSRMismatch ? /*#__PURE__*/ react.createElement("script", { type: "application/json", id: "__PRIMER_DATA__", dangerouslySetInnerHTML: { __html: JSON.stringify({ resolvedServerColorMode: resolvedColorMode }) } }) : null)); }; function useTheme() { return react.useContext(ThemeContext); } function getSystemColorMode() { var _window$matchMedia2, _window2, _window$matchMedia2$c; return(// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition "undefined" != typeof window && null !== (_window$matchMedia2 = (_window2 = window).matchMedia) && void 0 !== _window$matchMedia2 && null !== (_window$matchMedia2$c = _window$matchMedia2.call(_window2, "(prefers-color-scheme: dark)")) && void 0 !== _window$matchMedia2$c && _window$matchMedia2$c.matches ? "night" : "day"); } function resolveColorMode(colorMode, systemColorMode) { return "auto" === colorMode ? systemColorMode : colorMode; } ThemeProvider.displayName = "ThemeProvider"; const StyledButton = He.button.withConfig({ displayName: "types__StyledButton", componentId: "sc-ws60qy-0" })(lib_esm_sx), focusOutlineStyles = { outline: "2px solid", outlineColor: "accent.fg", outlineOffset: "-2px" }, fallbackFocus = { ...focusOutlineStyles, ":not(:focus-visible)": { outline: "solid 1px transparent" } }, getVariantStyles = (variant = "default", theme)=>({ default: { color: "btn.text", backgroundColor: "btn.bg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.shadow}, ${null == theme ? void 0 : theme.shadows.btn.insetShadow}`, "&:hover:not([disabled])": { backgroundColor: "btn.hoverBg" }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { backgroundColor: "btn.activeBg", borderColor: "btn.activeBorder" }, "&:disabled": { color: "primer.fg.disabled", "[data-component=ButtonCounter]": { color: "inherit" } }, "&[aria-expanded=true]": { backgroundColor: "btn.activeBg", borderColor: "btn.activeBorder" } }, primary: { color: "btn.primary.text", backgroundColor: "btn.primary.bg", borderColor: "border.subtle", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.primary.shadow}`, "&:hover:not([disabled])": { color: "btn.primary.hoverText", backgroundColor: "btn.primary.hoverBg" }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { boxShadow: "inset 0 0 0 3px", ...fallbackFocus }, "&:focus-visible:not([disabled])": { ...focusOutlineStyles, boxShadow: "inset 0 0 0 3px" }, "&:active:not([disabled])": { backgroundColor: "btn.primary.selectedBg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.primary.selectedShadow}` }, "&:disabled": { color: "btn.primary.disabledText", backgroundColor: "btn.primary.disabledBg", "[data-component=ButtonCounter]": { color: "inherit" } }, "[data-component=ButtonCounter]": { backgroundColor: "btn.primary.counterBg", color: "btn.primary.text" }, "&[aria-expanded=true]": { backgroundColor: "btn.primary.selectedBg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.primary.selectedShadow}` } }, danger: { color: "btn.danger.text", backgroundColor: "btn.bg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.shadow}`, "&:hover:not([disabled])": { color: "btn.danger.hoverText", backgroundColor: "btn.danger.hoverBg", borderColor: "btn.danger.hoverBorder", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.danger.hoverShadow}`, "[data-component=ButtonCounter]": { backgroundColor: "btn.danger.hoverCounterBg", color: "btn.danger.hoverText" } }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { color: "btn.danger.selectedText", backgroundColor: "btn.danger.selectedBg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.danger.selectedShadow}`, borderColor: "btn.danger.selectedBorder" }, "&:disabled": { color: "btn.danger.disabledText", backgroundColor: "btn.danger.disabledBg", borderColor: "btn.danger.disabledBorder", "[data-component=ButtonCounter]": { color: "inherit", backgroundColor: "btn.danger.disabledCounterBg" } }, "[data-component=ButtonCounter]": { color: "btn.danger.text", backgroundColor: "btn.danger.counterBg" }, "&[aria-expanded=true]": { color: "btn.danger.selectedText", backgroundColor: "btn.danger.selectedBg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.danger.selectedShadow}`, borderColor: "btn.danger.selectedBorder" } }, invisible: { color: "accent.fg", backgroundColor: "transparent", border: "0", boxShadow: "none", "&:hover:not([disabled])": { backgroundColor: "btn.hoverBg" }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { backgroundColor: "btn.selectedBg" }, "&:disabled": { color: "primer.fg.disabled", "[data-component=ButtonCounter]": { color: "inherit" } }, "&[aria-expanded=true]": { backgroundColor: "btn.selectedBg" } }, outline: { color: "btn.outline.text", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.shadow}`, borderColor: "btn.border", backgroundColor: "btn.bg", "&:hover:not([disabled])": { color: "btn.outline.hoverText", backgroundColor: "btn.outline.hoverBg", borderColor: "outline.hoverBorder", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.outline.hoverShadow}`, "[data-component=ButtonCounter]": { backgroundColor: "btn.outline.hoverCounterBg", color: "inherit" } }, // focus must come before :active so that the active box shadow overrides "&:focus:not([disabled])": { ...fallbackFocus }, "&:focus-visible:not([disabled])": focusOutlineStyles, "&:active:not([disabled])": { color: "btn.outline.selectedText", backgroundColor: "btn.outline.selectedBg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.outline.selectedShadow}`, borderColor: "btn.outline.selectedBorder" }, "&:disabled": { color: "btn.outline.disabledText", backgroundColor: "btn.outline.disabledBg", borderColor: "btn.border", "[data-component=ButtonCounter]": { backgroundColor: "btn.outline.disabledCounterBg", color: "inherit" } }, "[data-component=ButtonCounter]": { backgroundColor: "btn.outline.counterBg", color: "btn.outline.text" }, "&[aria-expanded=true]": { color: "btn.outline.selectedText", backgroundColor: "btn.outline.selectedBg", boxShadow: `${null == theme ? void 0 : theme.shadows.btn.outline.selectedShadow}`, borderColor: "btn.outline.selectedBorder" } } })[variant], getSizeStyles = (size = "medium", variant = "default", iconOnly)=>{ let paddingY, paddingX, fontSize; switch(size){ case "small": paddingY = 3, paddingX = 12, fontSize = 0; break; case "large": paddingY = 9, paddingX = 20, fontSize = 2; break; default: paddingY = 5, paddingX = 16, fontSize = 1; } return iconOnly && (// when `size !== 'medium'`, vertical alignment of the icon is thrown off // because changing the font size draws an em-box that does not match the // bounding box of the SVG fontSize = 1, paddingX = paddingY + 3), "invisible" === variant && (paddingY += 1), { paddingY: `${paddingY}px`, paddingX: `${paddingX}px`, fontSize, "[data-component=ButtonCounter]": { fontSize } }; }, getBaseStyles = (theme)=>({ borderRadius: "2", border: "1px solid", borderColor: null == theme ? void 0 : theme.colors.btn.border, fontFamily: "inherit", fontWeight: "bold", lineHeight: "20px", whiteSpace: "nowrap", verticalAlign: "middle", cursor: "pointer", appearance: "none", userSelect: "none", textDecoration: "none", textAlign: "center", "&:disabled": { cursor: "default" }, "&:disabled svg": { opacity: "0.6" }, "@media (forced-colors: active)": { "&:focus": { // Support for Windows high contrast https://sarahmhigley.com/writing/whcm-quick-tips outline: "solid 1px transparent" } } }), getButtonStyles = (theme)=>({ ...getBaseStyles(theme), display: "grid", gridTemplateAreas: '"leadingIcon text trailingIcon"', "& > :not(:last-child)": { mr: "2" }, '[data-component="leadingIcon"]': { gridArea: "leadingIcon" }, '[data-component="text"]': { gridArea: "text" }, '[data-component="trailingIcon"]': { gridArea: "trailingIcon" } }); // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/styles.js function ButtonBase_extends() { return (ButtonBase_extends = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; }).apply(this, arguments); } const ButtonBase = /*#__PURE__*/ (0, react.forwardRef)(({ children, as: Component = "button", sx: sxProp = {}, ...props }, forwardedRef)=>{ const { leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, variant = "default", size = "medium" } = props, { theme } = useTheme(), iconWrapStyles = { display: "inline-block" }, sxStyles = cjs_default().all([ getButtonStyles(theme), getSizeStyles(size, variant, !1), getVariantStyles(variant, theme), sxProp ]); return /*#__PURE__*/ react.createElement(StyledButton, ButtonBase_extends({ as: Component, sx: sxStyles }, props, { ref: forwardedRef }), LeadingIcon && /*#__PURE__*/ react.createElement(Box, { as: "span", "data-component": "leadingIcon", sx: iconWrapStyles }, /*#__PURE__*/ react.createElement(LeadingIcon, null)), children && /*#__PURE__*/ react.createElement("span", { "data-component": "text" }, children), TrailingIcon && /*#__PURE__*/ react.createElement(Box, { as: "span", "data-component": "trailingIcon", sx: { ...iconWrapStyles, ml: 2 } }, /*#__PURE__*/ react.createElement(TrailingIcon, null))); }); // CONCATENATED MODULE: ./node_modules/@primer/react/lib-esm/Button/Button.js function Button_extends() { return (Button_extends = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; }).apply(this, arguments); } const ButtonComponent = /*#__PURE__*/ (0, react.forwardRef)(({ children, ...props }, forwardedRef)=>/*#__PURE__*/ react.createElement(ButtonBase, Button_extends({ ref: forwardedRef }, props, { as: "button" }), children)); ButtonComponent.displayName = "Button"; // eslint-disable-next-line import/no-namespace const { get: getKey, compose: constants_compose, system: constants_system } = styled_system_dist_index_esm_namespaceObject, constants_get = (key)=>{ var fallback; return void 0 === (fallback = getKey(lib_esm_theme, key)) && (fallback = null), function(props) { return get(props.theme, key, fallback); }; }, COMMON = constants_compose(space, color, display), TYPOGRAPHY = constants_compose(typography, constants_system({ whiteSpace: { property: "whiteSpace" } })); constants_compose(border, shadow); const CounterLabel = He.span.withConfig({ displayName: "CounterLabel", componentId: "sc-13ceqbg-0" })([ "display:inline-block;padding:2px 5px;font-size:", ";font-weight:", ";line-height:", ";border-radius:20px;", ";", ";&:empty{display:none;}", ";" ], constants_get("fontSizes.0"), constants_get("fontWeights.bold"), constants_get("lineHeights.condensedUltra"), ({ scheme, ...props })=>({ color: "secondary" === scheme ? constants_get("colors.fg.default")(props) : "primary" === scheme ? constants_get("colors.fg.onEmphasis")(props) : constants_get("colors.fg.default")(props) }), ({ scheme, ...props })=>({ backgroundColor: "secondary" === scheme ? constants_get("colors.neutral.muted")(props) : "primary" === scheme ? constants_get("colors.neutral.emphasis")(props) : constants_get("colors.neutral.muted")(props) }), lib_esm_sx); function ButtonCounter_extends() { return (ButtonCounter_extends = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; }).apply(this, arguments); } const Counter = ({ children, sx: sxProp = {}, ...props })=>/*#__PURE__*/ react.createElement(CounterLabel, ButtonCounter_extends({ "data-component": "ButtonCounter", sx: { ml: 2, ...sxProp } }, props), children); Counter.displayName = "Counter"; const Button = Object.assign(ButtonComponent, { Counter: Counter }), $f01a183cc7bdff77849e49ad26eb904$var$defaultContext = { prefix: String(Math.round(10000000000 * Math.random())), current: 0 }, $f01a183cc7bdff77849e49ad26eb904$var$SSRContext = /*#__PURE__*/ react.createContext($f01a183cc7bdff77849e49ad26eb904$var$defaultContext); // CONCATENATED MODULE: ./node_modules/@react-aria/ssr/dist/module.js /** * When using SSR with React Aria, applications must be wrapped in an SSRProvider. * This ensures that auto generated ids are consistent between the client and server. */ function SSRProvider(props) { let cur = (0, react.useContext)($f01a183cc7bdff77849e49ad26eb904$var$SSRContext), value = (0, react.useMemo)(()=>({ // If this is the first SSRProvider, start with an empty string prefix, otherwise // append and increment the counter. prefix: cur === $f01a183cc7bdff77849e49ad26eb904$var$defaultContext ? "" : cur.prefix + "-" + ++cur.current, current: 0 }), [ cur ]); return /*#__PURE__*/ react.createElement($f01a183cc7bdff77849e49ad26eb904$var$SSRContext.Provider, { value: value }, props.children); } //# sourceMappingURL=module.js.map function BaseStyles_extends() { return (BaseStyles_extends = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; }).apply(this, arguments); } "undefined" != typeof window && window.document && window.document.createElement; const GlobalStyle = function(e) { for(var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)n[o - 1] = arguments[o]; var i = Ce.apply(void 0, [ e ].concat(n)), a = "sc-global-" + xe(JSON.stringify(i)), u = new $e(i, a); function l(e) { var t = fe(), n = me(), o = (0, react.useContext)(Ge), l = (0, react.useRef)(t.allocateGSInstance(a)).current; return t.server && h(l, e, t, o, n), (0, react.useLayoutEffect)(function() { if (!t.server) return h(l, e, t, o, n), function() { return u.removeStyles(l, t); }; }, [ l, e, t, o, n ]), null; } function h(e, t, n, r, o) { if (u.isStatic) u.renderStyles(e, O, n, o); else { var s = v({}, t, { theme: Re(t, r, l.defaultProps) }); u.renderStyles(e, s, n, o); } } return react.memo(l); }([ '*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}' ]), Base = He.div.withConfig({ displayName: "BaseStyles__Base", componentId: "sc-nfjs56-0" })([ "", ";", ";" ], TYPOGRAPHY, COMMON); function BaseStyles(props) { const { children, ...rest } = props; // load polyfill for :focus-visible return __webpack_require__(5202), /*#__PURE__*/ react.createElement(Base, BaseStyles_extends({}, rest, { "data-portal-root": !0 }), /*#__PURE__*/ react.createElement(GlobalStyle, null), children); } BaseStyles.displayName = "BaseStyles", BaseStyles.defaultProps = { color: "fg.default", fontFamily: "normal", lineHeight: "default" }; var ThemedApp = function() { var ref = (0, react.useState)(!1), render = ref[0], setRender = ref[1]; return (0, react.useEffect)(function() { console.log("PRERENDER: useEffect"), setRender(!0); }, []), console.log("Env:", "production"), console.log("PRERENDER: ".concat(render)), /*#__PURE__*/ (0, jsx_runtime.jsx)(Box, { children: !!render && /*#__PURE__*/ (0, jsx_runtime.jsx)(Button, { variant: "danger", children: "Test" }) }); }, _app = function() { return /*#__PURE__*/ (0, jsx_runtime.jsx)(SSRProvider, { children: /*#__PURE__*/ (0, jsx_runtime.jsx)(ThemeProvider, { children: /*#__PURE__*/ (0, jsx_runtime.jsx)(BaseStyles, { children: /*#__PURE__*/ (0, jsx_runtime.jsx)(ThemedApp, {}) }) }) }); }; /***/ }, /***/ 7663: /***/ function(module) { !function() { var e = { 162: function(e) { var r, n, u, t = e.exports = {}; function defaultSetTimout() { throw Error("setTimeout has not been defined"); } function defaultClearTimeout() { throw Error("clearTimeout has not been defined"); } function runTimeout(e) { if (r === setTimeout) return setTimeout(e, 0); if ((r === defaultSetTimout || !r) && setTimeout) return r = setTimeout, setTimeout(e, 0); try { return r(e, 0); } catch (t) { try { return r.call(null, e, 0); } catch (t) { return r.call(this, e, 0); } } } !function() { try { r = "function" == typeof setTimeout ? setTimeout : defaultSetTimout; } catch (e) { r = defaultSetTimout; } try { n = "function" == typeof clearTimeout ? clearTimeout : defaultClearTimeout; } catch (e) { n = defaultClearTimeout; } }(); var i = [], o = !1, a = -1; function cleanUpNextTick() { o && u && (o = !1, u.length ? i = u.concat(i) : a = -1, i.length && drainQueue()); } function drainQueue() { if (!o) { var e = runTimeout(cleanUpNextTick); o = !0; for(var t = i.length; t;){ for(u = i, i = []; ++a < t;)u && u[a].run(); a = -1, t = i.length; } u = null, o = !1, function(e) { if (n === clearTimeout) return clearTimeout(e); if ((n === defaultClearTimeout || !n) && clearTimeout) return n = clearTimeout, clearTimeout(e); try { n(e); } catch (t) { try { return n.call(null, e); } catch (t) { return n.call(this, e); } } }(e); } } function Item(e, t) { this.fun = e, this.array = t; } function noop() {} t.nextTick = function(e) { var t = Array(arguments.length - 1); if (arguments.length > 1) for(var r = 1; r < arguments.length; r++)t[r - 1] = arguments[r]; i.push(new Item(e, t)), 1 !== i.length || o || runTimeout(drainQueue); }, Item.prototype.run = function() { this.fun.apply(null, this.array); }, t.title = "browser", t.browser = !0, t.env = {}, t.argv = [], t.version = "", t.versions = {}, t.on = noop, t.addListener = noop, t.once = noop, t.off = noop, t.removeListener = noop, t.removeAllListeners = noop, t.emit = noop, t.prependListener = noop, t.prependOnceListener = noop, t.listeners = function(e) { return []; }, t.binding = function(e) { throw Error("process.binding is not supported"); }, t.cwd = function() { return "/"; }, t.chdir = function(e) { throw Error("process.chdir is not supported"); }, t.umask = function() { return 0; }; } }, t = {}; function __nccwpck_require__(r) { var n = t[r]; if (void 0 !== n) return n.exports; var i = t[r] = { exports: {} }, o = !0; try { e[r](i, i.exports, __nccwpck_require__), o = !1; } finally{ o && delete t[r]; } return i.exports; } __nccwpck_require__.ab = "//", module.exports = __nccwpck_require__(162); }(); /***/ }, /***/ 9921: /***/ function(__unused_webpack_module, exports) { "use strict"; /** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var u, b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"); u = Symbol.for("react.module.reference"), exports.isValidElementType = function(a) { return "string" == typeof a || "function" == typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" == typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) || !1; }, exports.typeOf = function(a) { if ("object" == typeof a && null !== a) { var r = a.$$typeof; switch(r){ case b: switch(a = a.type){ case d: case f: case e: case m: case n: return a; default: switch(a = a && a.$$typeof){ case k: case h: case l: case q: case p: case g: return a; default: return r; } } case c: return r; } } }; /***/ }, /***/ 9864: /***/ function(module, __unused_webpack_exports, __webpack_require__) { "use strict"; module.exports = __webpack_require__(9921); /***/ }, /***/ 6774: /***/ function(module) { // module.exports = function(objA, objB, compare, compareContext) { var ret = compare ? compare.call(compareContext, objA, objB) : void 0; if (void 0 !== ret) return !!ret; if (objA === objB) return !0; if ("object" != typeof objA || !objA || "object" != typeof objB || !objB) return !1; var keysA = Object.keys(objA), keysB = Object.keys(objB); if (keysA.length !== keysB.length) return !1; // Test for A's keys different from B. for(var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB), idx = 0; idx < keysA.length; idx++){ var key = keysA[idx]; if (!bHasOwnProperty(key)) return !1; var valueA = objA[key], valueB = objB[key]; if (!1 === (ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0) || void 0 === ret && valueA !== valueB) return !1; } return !0; }; /***/ } }, /******/ function(__webpack_require__) { // webpackRuntimeModules /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }; /******/ __webpack_require__.O(0, [ 774, 179 ], function() { return __webpack_exec__(1118), __webpack_exec__(880); }), /******/ _N_E = __webpack_require__.O(); /******/ } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/swc-4559/input.js
JavaScript
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([ [657], { /***/ 4816: /***/ function ( __unused_webpack_module, __webpack_exports__, __webpack_require__ ) { "use strict"; return new Error( [ `MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${MAX_PAGE_SIZE} is available in the MIT version.`, "", "You need to upgrade to the DataGridPro component to unlock this feature.", ].join("\n") ); }, }, ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/swc-4559/output.js
JavaScript
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 657 ], { /***/ 4816: /***/ function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { return Error(`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop. Only page size below ${MAX_PAGE_SIZE} is available in the MIT version. You need to upgrade to the DataGridPro component to unlock this feature.`); } } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/target-es2015/static/chunks/main-04b5934c26266542/input.js
JavaScript
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([[179],{ /***/ 932: /***/ (function(__unused_webpack_module, exports) { "use strict"; var __webpack_unused_export__; __webpack_unused_export__ = ({ value: true }); exports.Z = _asyncToGenerator; function _asyncToGenerator(fn) { return function() { var self = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } /***/ }), /***/ 6495: /***/ (function(__unused_webpack_module, exports) { "use strict"; var __webpack_unused_export__; __webpack_unused_export__ = ({ value: true }); exports.Z = _extends; function _extends() { return extends_.apply(this, arguments); } function extends_() { extends_ = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source){ if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return extends_.apply(this, arguments); } /***/ }), /***/ 2648: /***/ (function(__unused_webpack_module, exports) { "use strict"; var __webpack_unused_export__; __webpack_unused_export__ = ({ value: true }); exports.Z = _interopRequireDefault; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), /***/ 1598: /***/ (function(__unused_webpack_module, exports) { "use strict"; var __webpack_unused_export__; __webpack_unused_export__ = ({ value: true }); exports.Z = _interopRequireWildcard; function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for(var key in obj){ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _getRequireWildcardCache(nodeInterop1) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop1); } /***/ }), /***/ 7273: /***/ (function(__unused_webpack_module, exports) { "use strict"; var __webpack_unused_export__; __webpack_unused_export__ = ({ value: true }); exports.Z = _objectWithoutPropertiesLoose; function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for(i = 0; i < sourceKeys.length; i++){ key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } /***/ }), /***/ 37: /***/ (function() { "trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var t=/\((.*)\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if("function"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(o){return r.resolve(t()).then(function(){return o})},function(o){return r.resolve(t()).then(function(){throw o})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}); /***/ }), /***/ 8684: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.addBasePath = addBasePath; var _addPathPrefix = __webpack_require__(5391); var _normalizeTrailingSlash = __webpack_require__(2392); const basePath = false || ""; function addBasePath(path, required) { if (false) {} return (0, _normalizeTrailingSlash).normalizePathTrailingSlash((0, _addPathPrefix).addPathPrefix(path, basePath)); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=add-base-path.js.map /***/ }), /***/ 2725: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.addLocale = void 0; var _normalizeTrailingSlash = __webpack_require__(2392); const addLocale = function(path) { for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ args[_key - 1] = arguments[_key]; } if (false) {} return path; }; exports.addLocale = addLocale; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=add-locale.js.map /***/ }), /***/ 8748: /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.detectDomainLocale = void 0; const detectDomainLocale = function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } if (false) {} }; exports.detectDomainLocale = detectDomainLocale; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=detect-domain-locale.js.map /***/ }), /***/ 4119: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.hasBasePath = hasBasePath; var _pathHasPrefix = __webpack_require__(1259); const basePath = false || ""; function hasBasePath(path) { return (0, _pathHasPrefix).pathHasPrefix(path, basePath); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=has-base-path.js.map /***/ }), /***/ 6007: /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = initHeadManager; exports.isEqualNode = isEqualNode; exports.DOMAttributeNames = void 0; function initHeadManager() { return { mountedInstances: new Set(), updateHead: (head)=>{ const tags = {}; head.forEach((h)=>{ if (// it won't be inlined. In this case revert to the original behavior h.type === "link" && h.props["data-optimized-fonts"]) { if (document.querySelector('style[data-href="'.concat(h.props["data-href"], '"]'))) { return; } else { h.props.href = h.props["data-href"]; h.props["data-href"] = undefined; } } const components = tags[h.type] || []; components.push(h); tags[h.type] = components; }); const titleComponent = tags.title ? tags.title[0] : null; let title = ""; if (titleComponent) { const { children } = titleComponent.props; title = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : ""; } if (title !== document.title) document.title = title; [ "meta", "base", "link", "style", "script" ].forEach((type)=>{ updateElements(type, tags[type] || []); }); } }; } const DOMAttributeNames = { acceptCharset: "accept-charset", className: "class", htmlFor: "for", httpEquiv: "http-equiv", noModule: "noModule" }; exports.DOMAttributeNames = DOMAttributeNames; function reactElementToDOM(param) { let { type , props } = param; const el = document.createElement(type); for(const p in props){ if (!props.hasOwnProperty(p)) continue; if (p === "children" || p === "dangerouslySetInnerHTML") continue; // we don't render undefined props to the DOM if (props[p] === undefined) continue; const attr = DOMAttributeNames[p] || p.toLowerCase(); if (type === "script" && (attr === "async" || attr === "defer" || attr === "noModule")) { el[attr] = !!props[p]; } else { el.setAttribute(attr, props[p]); } } const { children , dangerouslySetInnerHTML } = props; if (dangerouslySetInnerHTML) { el.innerHTML = dangerouslySetInnerHTML.__html || ""; } else if (children) { el.textContent = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : ""; } return el; } function isEqualNode(oldTag, newTag) { if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) { const nonce = newTag.getAttribute("nonce"); // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not // be stripped if there is no content security policy response header that includes a nonce. if (nonce && !oldTag.getAttribute("nonce")) { const cloneTag = newTag.cloneNode(true); cloneTag.setAttribute("nonce", ""); cloneTag.nonce = nonce; return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag); } } return oldTag.isEqualNode(newTag); } function updateElements(type, components) { const headEl = document.getElementsByTagName("head")[0]; const headCountEl = headEl.querySelector("meta[name=next-head-count]"); if (false) {} const headCount = Number(headCountEl.content); const oldTags = []; for(let i = 0, j = headCountEl.previousElementSibling; i < headCount; i++, j = (j == null ? void 0 : j.previousElementSibling) || null){ var ref; if ((j == null ? void 0 : (ref = j.tagName) == null ? void 0 : ref.toLowerCase()) === type) { oldTags.push(j); } } const newTags = components.map(reactElementToDOM).filter((newTag)=>{ for(let k = 0, len = oldTags.length; k < len; k++){ const oldTag = oldTags[k]; if (isEqualNode(oldTag, newTag)) { oldTags.splice(k, 1); return false; } } return true; }); oldTags.forEach((t)=>{ var ref; return (ref = t.parentNode) == null ? void 0 : ref.removeChild(t); }); newTags.forEach((t)=>headEl.insertBefore(t, headCountEl)); headCountEl.content = (headCount - oldTags.length + newTags.length).toString(); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=head-manager.js.map /***/ }), /***/ 7339: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); const _interopRequireWildcard = (__webpack_require__(1598)/* ["default"] */ .Z); Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initialize = initialize; exports.hydrate = hydrate; exports.emitter = exports.router = exports.version = void 0; var _async_to_generator = (__webpack_require__(932)/* ["default"] */ .Z); var _extends = (__webpack_require__(6495)/* ["default"] */ .Z); var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _interop_require_wildcard = (__webpack_require__(1598)/* ["default"] */ .Z); __webpack_require__(37); var _react = _interop_require_default(__webpack_require__(7294)); var _headManagerContext = __webpack_require__(8404); var _mitt = _interop_require_default(__webpack_require__(5660)); var _routerContext = __webpack_require__(3462); var _isDynamic = __webpack_require__(8689); var _querystring = __webpack_require__(466); var _runtimeConfig = __webpack_require__(8027); var _utils = __webpack_require__(3794); var _portal = __webpack_require__(2207); var _headManager = _interop_require_default(__webpack_require__(6007)); var _pageLoader = _interop_require_default(__webpack_require__(5181)); var _performanceRelayer = _interop_require_default(__webpack_require__(9302)); var _routeAnnouncer = __webpack_require__(8982); var _router = __webpack_require__(387); var _isError = __webpack_require__(676); var _imageConfigContext = __webpack_require__(9977); var _removeBasePath = __webpack_require__(9320); var _hasBasePath = __webpack_require__(4119); const ReactDOM = true ? __webpack_require__(745) : 0; const version = "12.3.2-canary.13"; exports.version = version; let router; exports.router = router; const emitter = (0, _mitt).default(); exports.emitter = emitter; const looseToArray = (input)=>[].slice.call(input); let initialData; let defaultLocale = undefined; let asPath; let pageLoader; let appElement; let headManager; let initialMatchesMiddleware = false; let lastAppProps; let lastRenderReject; let webpackHMR; let CachedApp, onPerfEntry; let CachedComponent; self.__next_require__ = __webpack_require__; class Container extends _react.default.Component { componentDidCatch(componentErr, info) { this.props.fn(componentErr, info); } componentDidMount() { this.scrollToHash(); // We need to replace the router state if: // - the page was (auto) exported and has a query string or search (hash) // - it was auto exported and is a dynamic route (to provide params) // - if it is a client-side skeleton (fallback render) // - if middleware matches the current page (may have rewrite params) // - if rewrites in next.config.js match (may have rewrite params) if (router.isSsr && // We don't update for 404 requests as this can modify // the asPath unexpectedly e.g. adding basePath when // it wasn't originally present initialData.page !== "/404" && initialData.page !== "/_error" && (initialData.isFallback || initialData.nextExport && ((0, _isDynamic).isDynamicRoute(router.pathname) || location.search || false || initialMatchesMiddleware) || initialData.props && initialData.props.__N_SSG && (location.search || false || initialMatchesMiddleware))) { // update query on mount for exported pages router.replace(router.pathname + "?" + String((0, _querystring).assign((0, _querystring).urlQueryToSearchParams(router.query), new URLSearchParams(location.search))), asPath, { // @ts-ignore // WARNING: `_h` is an internal option for handing Next.js // client-side hydration. Your app should _never_ use this property. // It may change at any time without notice. _h: 1, // Fallback pages must trigger the data fetch, so the transition is // not shallow. // Other pages (strictly updating query) happens shallowly, as data // requirements would already be present. shallow: !initialData.isFallback && !initialMatchesMiddleware }).catch((err)=>{ if (!err.cancelled) throw err; }); } } componentDidUpdate() { this.scrollToHash(); } scrollToHash() { let { hash } = location; hash = hash && hash.substring(1); if (!hash) return; const el = document.getElementById(hash); if (!el) return; // If we call scrollIntoView() in here without a setTimeout // it won't scroll properly. setTimeout(()=>el.scrollIntoView(), 0); } render() { if (true) { return this.props.children; } else {} } } function initialize() { return _initialize.apply(this, arguments); } function _initialize() { _initialize = _async_to_generator(function*() { let opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; // This makes sure this specific lines are removed in production if (false) {} initialData = JSON.parse(document.getElementById("__NEXT_DATA__").textContent); window.__NEXT_DATA__ = initialData; defaultLocale = initialData.defaultLocale; const prefix = initialData.assetPrefix || ""; // With dynamic assetPrefix it's no longer possible to set assetPrefix at the build time // So, this is how we do it in the client side at runtime __webpack_require__.p = "".concat(prefix, "/_next/") //eslint-disable-line ; // Initialize next/config with the environment configuration (0, _runtimeConfig).setConfig({ serverRuntimeConfig: {}, publicRuntimeConfig: initialData.runtimeConfig || {} }); asPath = (0, _utils).getURL(); // make sure not to attempt stripping basePath for 404s if ((0, _hasBasePath).hasBasePath(asPath)) { asPath = (0, _removeBasePath).removeBasePath(asPath); } if (false) {} if (initialData.scriptLoader) { const { initScriptLoader } = __webpack_require__(699); initScriptLoader(initialData.scriptLoader); } pageLoader = new _pageLoader.default(initialData.buildId, prefix); const register = (param)=>{ let [r, f] = param; return pageLoader.routeLoader.onEntrypoint(r, f); }; if (window.__NEXT_P) { // Defer page registration for another tick. This will increase the overall // latency in hydrating the page, but reduce the total blocking time. window.__NEXT_P.map((p)=>setTimeout(()=>register(p), 0)); } window.__NEXT_P = []; window.__NEXT_P.push = register; headManager = (0, _headManager).default(); headManager.getIsSsr = ()=>{ return router.isSsr; }; appElement = document.getElementById("__next"); return { assetPrefix: prefix }; }); return _initialize.apply(this, arguments); } function renderApp(App, appProps) { return /*#__PURE__*/ _react.default.createElement(App, Object.assign({}, appProps)); } function AppContainer(param) { let { children } = param; return /*#__PURE__*/ _react.default.createElement(Container, { fn: (error)=>// eslint-disable-next-line @typescript-eslint/no-use-before-define renderError({ App: CachedApp, err: error }).catch((err)=>console.error("Error rendering page: ", err)) }, /*#__PURE__*/ _react.default.createElement(_routerContext.RouterContext.Provider, { value: (0, _router).makePublicRouterInstance(router) }, /*#__PURE__*/ _react.default.createElement(_headManagerContext.HeadManagerContext.Provider, { value: headManager }, /*#__PURE__*/ _react.default.createElement(_imageConfigContext.ImageConfigContext.Provider, { value: {"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","dangerouslyAllowSVG":false,"unoptimized":false} }, children)))); } const wrapApp = (App)=>(wrappedAppProps)=>{ const appProps = _extends({}, wrappedAppProps, { Component: CachedComponent, err: initialData.err, router }); return /*#__PURE__*/ _react.default.createElement(AppContainer, null, renderApp(App, appProps)); }; // This method handles all runtime and debug errors. // 404 and 500 errors are special kind of errors // and they are still handle via the main render method. function renderError(renderErrorProps) { let { App , err } = renderErrorProps; // In development runtime errors are caught by our overlay // In production we catch runtime errors using componentDidCatch which will trigger renderError if (false) {} // Make sure we log the error to the console, otherwise users can't track down issues. console.error(err); console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"); return pageLoader.loadPage("/_error").then((param)=>{ let { page: ErrorComponent , styleSheets } = param; return (lastAppProps == null ? void 0 : lastAppProps.Component) === ErrorComponent ? Promise.resolve().then(()=>/*#__PURE__*/ _interopRequireWildcard(__webpack_require__(9185))).then((errorModule)=>{ return Promise.resolve().then(()=>/*#__PURE__*/ _interopRequireWildcard(__webpack_require__(6029))).then((appModule)=>{ App = appModule.default; renderErrorProps.App = App; return errorModule; }); }).then((m)=>({ ErrorComponent: m.default, styleSheets: [] })) : { ErrorComponent, styleSheets }; }).then((param)=>{ let { ErrorComponent , styleSheets } = param; var ref; // In production we do a normal render with the `ErrorComponent` as component. // If we've gotten here upon initial render, we can use the props from the server. // Otherwise, we need to call `getInitialProps` on `App` before mounting. const AppTree = wrapApp(App); const appCtx = { Component: ErrorComponent, AppTree, router, ctx: { err, pathname: initialData.page, query: initialData.query, asPath, AppTree } }; return Promise.resolve(((ref = renderErrorProps.props) == null ? void 0 : ref.err) ? renderErrorProps.props : (0, _utils).loadGetInitialProps(App, appCtx)).then((initProps)=>// eslint-disable-next-line @typescript-eslint/no-use-before-define doRender(_extends({}, renderErrorProps, { err, Component: ErrorComponent, styleSheets, props: initProps }))); }); } // Dummy component that we render as a child of Root so that we can // toggle the correct styles before the page is rendered. function Head(param) { let { callback } = param; // We use `useLayoutEffect` to guarantee the callback is executed // as soon as React flushes the update. _react.default.useLayoutEffect(()=>callback(), [ callback ]); return null; } let reactRoot = null; // On initial render a hydrate should always happen let shouldHydrate = true; function clearMarks() { [ "beforeRender", "afterHydrate", "afterRender", "routeChange" ].forEach((mark)=>performance.clearMarks(mark)); } function markHydrateComplete() { if (!_utils.ST) return; performance.mark("afterHydrate") // mark end of hydration ; performance.measure("Next.js-before-hydration", "navigationStart", "beforeRender"); performance.measure("Next.js-hydration", "beforeRender", "afterHydrate"); if (onPerfEntry) { performance.getEntriesByName("Next.js-hydration").forEach(onPerfEntry); } clearMarks(); } function markRenderComplete() { if (!_utils.ST) return; performance.mark("afterRender") // mark end of render ; const navStartEntries = performance.getEntriesByName("routeChange", "mark"); if (!navStartEntries.length) return; performance.measure("Next.js-route-change-to-render", navStartEntries[0].name, "beforeRender"); performance.measure("Next.js-render", "beforeRender", "afterRender"); if (onPerfEntry) { performance.getEntriesByName("Next.js-render").forEach(onPerfEntry); performance.getEntriesByName("Next.js-route-change-to-render").forEach(onPerfEntry); } clearMarks(); [ "Next.js-route-change-to-render", "Next.js-render" ].forEach((measure)=>performance.clearMeasures(measure)); } function renderReactElement(domEl, fn) { // mark start of hydrate/render if (_utils.ST) { performance.mark("beforeRender"); } const reactEl = fn(shouldHydrate ? markHydrateComplete : markRenderComplete); if (true) { if (!reactRoot) { // Unlike with createRoot, you don't need a separate root.render() call here reactRoot = ReactDOM.hydrateRoot(domEl, reactEl); // TODO: Remove shouldHydrate variable when React 18 is stable as it can depend on `reactRoot` existing shouldHydrate = false; } else { const startTransition = _react.default.startTransition; startTransition(()=>{ reactRoot.render(reactEl); }); } } else {} } function Root(param) { let { callbacks , children } = param; // We use `useLayoutEffect` to guarantee the callbacks are executed // as soon as React flushes the update _react.default.useLayoutEffect(()=>callbacks.forEach((callback)=>callback()), [ callbacks ]); // We should ask to measure the Web Vitals after rendering completes so we // don't cause any hydration delay: _react.default.useEffect(()=>{ (0, _performanceRelayer).default(onPerfEntry); }, []); if (false) {} return children; } function doRender(input) { let { App , Component , props , err } = input; let styleSheets = "initial" in input ? undefined : input.styleSheets; Component = Component || lastAppProps.Component; props = props || lastAppProps.props; const appProps = _extends({}, props, { Component, err, router }); // lastAppProps has to be set before ReactDom.render to account for ReactDom throwing an error. lastAppProps = appProps; let canceled = false; let resolvePromise; const renderPromise = new Promise((resolve, reject)=>{ if (lastRenderReject) { lastRenderReject(); } resolvePromise = ()=>{ lastRenderReject = null; resolve(); }; lastRenderReject = ()=>{ canceled = true; lastRenderReject = null; const error = new Error("Cancel rendering route"); error.cancelled = true; reject(error); }; }); // This function has a return type to ensure it doesn't start returning a // Promise. It should remain synchronous. function onStart() { if (!styleSheets || // We use `style-loader` in development, so we don't need to do anything // unless we're in production: "production" !== "production") { return false; } const currentStyleTags = looseToArray(document.querySelectorAll("style[data-n-href]")); const currentHrefs = new Set(currentStyleTags.map((tag)=>tag.getAttribute("data-n-href"))); const noscript = document.querySelector("noscript[data-n-css]"); const nonce = noscript == null ? void 0 : noscript.getAttribute("data-n-css"); styleSheets.forEach((param)=>{ let { href , text } = param; if (!currentHrefs.has(href)) { const styleTag = document.createElement("style"); styleTag.setAttribute("data-n-href", href); styleTag.setAttribute("media", "x"); if (nonce) { styleTag.setAttribute("nonce", nonce); } document.head.appendChild(styleTag); styleTag.appendChild(document.createTextNode(text)); } }); return true; } function onHeadCommit() { if (// unless we're in production: true && // We can skip this during hydration. Running it wont cause any harm, but // we may as well save the CPU cycles: styleSheets && // Ensure this render was not canceled !canceled) { const desiredHrefs = new Set(styleSheets.map((s)=>s.href)); const currentStyleTags = looseToArray(document.querySelectorAll("style[data-n-href]")); const currentHrefs = currentStyleTags.map((tag)=>tag.getAttribute("data-n-href")); // Toggle `<style>` tags on or off depending on if they're needed: for(let idx = 0; idx < currentHrefs.length; ++idx){ if (desiredHrefs.has(currentHrefs[idx])) { currentStyleTags[idx].removeAttribute("media"); } else { currentStyleTags[idx].setAttribute("media", "x"); } } // Reorder styles into intended order: let referenceNode = document.querySelector("noscript[data-n-css]"); if (referenceNode) { styleSheets.forEach((param)=>{ let { href } = param; const targetTag = document.querySelector('style[data-n-href="'.concat(href, '"]')); if (targetTag) { referenceNode.parentNode.insertBefore(targetTag, referenceNode.nextSibling); referenceNode = targetTag; } }); } // Finally, clean up server rendered stylesheets: looseToArray(document.querySelectorAll("link[data-n-p]")).forEach((el)=>{ el.parentNode.removeChild(el); }); } if (input.scroll) { const htmlElement = document.documentElement; const existing = htmlElement.style.scrollBehavior; htmlElement.style.scrollBehavior = "auto"; window.scrollTo(input.scroll.x, input.scroll.y); htmlElement.style.scrollBehavior = existing; } } function onRootCommit() { resolvePromise(); } onStart(); const elem = /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(Head, { callback: onHeadCommit }), /*#__PURE__*/ _react.default.createElement(AppContainer, null, renderApp(App, appProps), /*#__PURE__*/ _react.default.createElement(_portal.Portal, { type: "next-route-announcer" }, /*#__PURE__*/ _react.default.createElement(_routeAnnouncer.RouteAnnouncer, null)))); // We catch runtime errors using componentDidCatch which will trigger renderError renderReactElement(appElement, (callback)=>/*#__PURE__*/ _react.default.createElement(Root, { callbacks: [ callback, onRootCommit ] }, true ? /*#__PURE__*/ _react.default.createElement(_react.default.StrictMode, null, elem) : 0)); return renderPromise; } function render(renderingProps) { return _render.apply(this, arguments); } function _render() { _render = _async_to_generator(function*(renderingProps) { if (renderingProps.err) { yield renderError(renderingProps); return; } try { yield doRender(renderingProps); } catch (err) { const renderErr = (0, _isError).getProperError(err); // bubble up cancelation errors if (renderErr.cancelled) { throw renderErr; } if (false) {} yield renderError(_extends({}, renderingProps, { err: renderErr })); } }); return _render.apply(this, arguments); } function hydrate(opts) { return _hydrate.apply(this, arguments); } function _hydrate() { _hydrate = _async_to_generator(function*(opts) { let initialErr = initialData.err; try { const appEntrypoint = yield pageLoader.routeLoader.whenEntrypoint("/_app"); if ("error" in appEntrypoint) { throw appEntrypoint.error; } const { component: app , exports: mod } = appEntrypoint; CachedApp = app; if (mod && mod.reportWebVitals) { onPerfEntry = (param)=>{ let { id , name , startTime , value , duration , entryType , entries } = param; // Combines timestamp with random number for unique ID const uniqueID = "".concat(Date.now(), "-").concat(Math.floor(Math.random() * (9e12 - 1)) + 1e12); let perfStartEntry; if (entries && entries.length) { perfStartEntry = entries[0].startTime; } const webVitals = { id: id || uniqueID, name, startTime: startTime || perfStartEntry, value: value == null ? duration : value, label: entryType === "mark" || entryType === "measure" ? "custom" : "web-vital" }; mod.reportWebVitals(webVitals); }; } const pageEntrypoint = // error, so we need to skip waiting for the entrypoint. false ? 0 : yield pageLoader.routeLoader.whenEntrypoint(initialData.page); if ("error" in pageEntrypoint) { throw pageEntrypoint.error; } CachedComponent = pageEntrypoint.component; if (false) {} } catch (error1) { // This catches errors like throwing in the top level of a module initialErr = (0, _isError).getProperError(error1); } if (false) {} if (window.__NEXT_PRELOADREADY) { yield window.__NEXT_PRELOADREADY(initialData.dynamicIds); } exports.router = router = (0, _router).createRouter(initialData.page, initialData.query, asPath, { initialProps: initialData.props, pageLoader, App: CachedApp, Component: CachedComponent, wrapApp, err: initialErr, isFallback: Boolean(initialData.isFallback), subscription: (info, App, scroll)=>render(Object.assign({}, info, { App, scroll })), locale: initialData.locale, locales: initialData.locales, defaultLocale, domainLocales: initialData.domainLocales, isPreview: initialData.isPreview }); initialMatchesMiddleware = yield router._initialMatchesMiddlewarePromise; const renderCtx = { App: CachedApp, initial: true, Component: CachedComponent, props: initialData.props, err: initialErr }; if (opts == null ? void 0 : opts.beforeRender) { yield opts.beforeRender(); } render(renderCtx); }); return _hydrate.apply(this, arguments); } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=index.js.map /***/ }), /***/ 2870: /***/ (function(module, exports, __webpack_require__) { "use strict"; var _ = __webpack_require__(7339); window.next = { version: _.version, // router is initialized later so it has to be live-binded get router () { return _.router; }, emitter: _.emitter }; (0, _).initialize({}).then(()=>(0, _).hydrate()).catch(console.error); if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=next.js.map /***/ }), /***/ 2392: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.normalizePathTrailingSlash = void 0; var _removeTrailingSlash = __webpack_require__(6316); var _parsePath = __webpack_require__(4943); const normalizePathTrailingSlash = (path)=>{ if (!path.startsWith("/")) { return path; } const { pathname , query , hash } = (0, _parsePath).parsePath(path); if (false) {} return "".concat((0, _removeTrailingSlash).removeTrailingSlash(pathname)).concat(query).concat(hash); }; exports.normalizePathTrailingSlash = normalizePathTrailingSlash; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=normalize-trailing-slash.js.map /***/ }), /***/ 5181: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _addBasePath = __webpack_require__(8684); var _router = __webpack_require__(6273); var _getAssetPathFromRoute = _interop_require_default(__webpack_require__(3891)); var _addLocale = __webpack_require__(2725); var _isDynamic = __webpack_require__(8689); var _parseRelativeUrl = __webpack_require__(6305); var _removeTrailingSlash = __webpack_require__(6316); var _routeLoader = __webpack_require__(2669); class PageLoader { getPageList() { if (true) { return (0, _routeLoader).getClientBuildManifest().then((manifest)=>manifest.sortedPages); } else {} } getMiddleware() { if (true) { const middlewareMatchers = []; window.__MIDDLEWARE_MATCHERS = middlewareMatchers ? middlewareMatchers : undefined; return window.__MIDDLEWARE_MATCHERS; } else {} } getDataHref(params) { const { asPath , href , locale } = params; const { pathname: hrefPathname , query , search } = (0, _parseRelativeUrl).parseRelativeUrl(href); const { pathname: asPathname } = (0, _parseRelativeUrl).parseRelativeUrl(asPath); const route = (0, _removeTrailingSlash).removeTrailingSlash(hrefPathname); if (route[0] !== "/") { throw new Error('Route name should start with a "/", got "'.concat(route, '"')); } const getHrefForSlug = (path)=>{ const dataRoute = (0, _getAssetPathFromRoute).default((0, _removeTrailingSlash).removeTrailingSlash((0, _addLocale).addLocale(path, locale)), ".json"); return (0, _addBasePath).addBasePath("/_next/data/".concat(this.buildId).concat(dataRoute).concat(search), true); }; return getHrefForSlug(params.skipInterpolation ? asPathname : (0, _isDynamic).isDynamicRoute(route) ? (0, _router).interpolateAs(hrefPathname, asPathname, query).result : route); } /** * @param {string} route - the route (file-system path) */ _isSsg(route) { return this.promisedSsgManifest.then((manifest)=>manifest.has(route)); } loadPage(route) { return this.routeLoader.loadRoute(route).then((res)=>{ if ("component" in res) { return { page: res.component, mod: res.exports, styleSheets: res.styles.map((o)=>({ href: o.href, text: o.content })) }; } throw res.error; }); } prefetch(route) { return this.routeLoader.prefetch(route); } constructor(buildId, assetPrefix){ this.routeLoader = (0, _routeLoader).createRouteLoader(assetPrefix); this.buildId = buildId; this.assetPrefix = assetPrefix; this.promisedSsgManifest = new Promise((resolve)=>{ if (window.__SSG_MANIFEST) { resolve(window.__SSG_MANIFEST); } else { window.__SSG_MANIFEST_CB = ()=>{ resolve(window.__SSG_MANIFEST); }; } }); } } exports["default"] = PageLoader; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=page-loader.js.map /***/ }), /***/ 9302: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _webVitals = __webpack_require__(8018); const initialHref = location.href; let isRegistered = false; let userReportHandler; function onReport(metric) { if (userReportHandler) { userReportHandler(metric); } // This code is not shipped, executed, or present in the client-side // JavaScript bundle unless explicitly enabled in your application. // // When this feature is enabled, we'll make it very clear by printing a // message during the build (`next build`). if (false) { var ref; } } var _default = (onPerfEntry)=>{ // Update function if it changes: userReportHandler = onPerfEntry; // Only register listeners once: if (isRegistered) { return; } isRegistered = true; (0, _webVitals).onCLS(onReport); (0, _webVitals).onFID(onReport); (0, _webVitals).onFCP(onReport); (0, _webVitals).onLCP(onReport); (0, _webVitals).onTTFB(onReport); (0, _webVitals).onINP(onReport); }; exports["default"] = _default; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=performance-relayer.js.map /***/ }), /***/ 2207: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Portal = void 0; var _react = __webpack_require__(7294); var _reactDom = __webpack_require__(3935); const Portal = (param)=>{ let { children , type } = param; const [portalNode, setPortalNode] = (0, _react).useState(null); (0, _react).useEffect(()=>{ const element = document.createElement(type); document.body.appendChild(element); setPortalNode(element); return ()=>{ document.body.removeChild(element); }; }, [ type ]); return portalNode ? /*#__PURE__*/ (0, _reactDom).createPortal(children, portalNode) : null; }; exports.Portal = Portal; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=index.js.map /***/ }), /***/ 9320: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removeBasePath = removeBasePath; var _hasBasePath = __webpack_require__(4119); const basePath = false || ""; function removeBasePath(path) { if (false) {} path = path.slice(basePath.length); if (!path.startsWith("/")) path = "/".concat(path); return path; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=remove-base-path.js.map /***/ }), /***/ 5776: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removeLocale = removeLocale; var _parsePath = __webpack_require__(4943); function removeLocale(path, locale) { if (false) {} return path; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=remove-locale.js.map /***/ }), /***/ 9311: /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.cancelIdleCallback = exports.requestIdleCallback = void 0; const requestIdleCallback = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) { let start = Date.now(); return setTimeout(function() { cb({ didTimeout: false, timeRemaining: function timeRemaining() { return Math.max(0, 50 - (Date.now() - start)); } }); }, 1); }; exports.requestIdleCallback = requestIdleCallback; const cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) { return clearTimeout(id); }; exports.cancelIdleCallback = cancelIdleCallback; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=request-idle-callback.js.map /***/ }), /***/ 8982: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = exports.RouteAnnouncer = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); var _router = __webpack_require__(387); const nextjsRouteAnnouncerStyles = { border: 0, clip: "rect(0 0 0 0)", height: "1px", margin: "-1px", overflow: "hidden", padding: 0, position: "absolute", width: "1px", // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe whiteSpace: "nowrap", wordWrap: "normal" }; const RouteAnnouncer = ()=>{ const { asPath } = (0, _router).useRouter(); const [routeAnnouncement, setRouteAnnouncement] = _react.default.useState(""); // Only announce the path change, but not for the first load because screen // reader will do that automatically. const previouslyLoadedPath = _react.default.useRef(asPath); // Every time the path changes, announce the new page’s title following this // priority: first the document title (from head), otherwise the first h1, or // if none of these exist, then the pathname from the URL. This methodology is // inspired by Marcy Sutton’s accessible client routing user testing. More // information can be found here: // https://www.gatsbyjs.com/blog/2019-07-11-user-testing-accessible-client-routing/ _react.default.useEffect(()=>{ // If the path hasn't change, we do nothing. if (previouslyLoadedPath.current === asPath) return; previouslyLoadedPath.current = asPath; if (document.title) { setRouteAnnouncement(document.title); } else { const pageHeader = document.querySelector("h1"); var ref; const content = (ref = pageHeader == null ? void 0 : pageHeader.innerText) != null ? ref : pageHeader == null ? void 0 : pageHeader.textContent; setRouteAnnouncement(content || asPath); } }, [ asPath ]); return /*#__PURE__*/ _react.default.createElement("p", { "aria-live": "assertive" // Make the announcement immediately. , id: "__next-route-announcer__", role: "alert", style: nextjsRouteAnnouncerStyles }, routeAnnouncement); }; exports.RouteAnnouncer = RouteAnnouncer; var _default = RouteAnnouncer; exports["default"] = _default; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=route-announcer.js.map /***/ }), /***/ 2669: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.markAssetError = markAssetError; exports.isAssetError = isAssetError; exports.getClientBuildManifest = getClientBuildManifest; exports.createRouteLoader = createRouteLoader; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _getAssetPathFromRoute = _interop_require_default(__webpack_require__(3891)); var _trustedTypes = __webpack_require__(4991); var _requestIdleCallback = __webpack_require__(9311); // 3.8s was arbitrarily chosen as it's what https://web.dev/interactive // considers as "Good" time-to-interactive. We must assume something went // wrong beyond this point, and then fall-back to a full page transition to // show the user something of value. const MS_MAX_IDLE_DELAY = 3800; function withFuture(key, map, generator) { let entry = map.get(key); if (entry) { if ("future" in entry) { return entry.future; } return Promise.resolve(entry); } let resolver; const prom = new Promise((resolve)=>{ resolver = resolve; }); map.set(key, entry = { resolve: resolver, future: prom }); return generator ? generator() // eslint-disable-next-line no-sequences .then((value)=>(resolver(value), value)).catch((err)=>{ map.delete(key); throw err; }) : prom; } function hasPrefetch(link) { try { link = document.createElement("link"); return(// with relList.support !!window.MSInputMethodContext && !!document.documentMode || link.relList.supports("prefetch")); } catch (e) { return false; } } const canPrefetch = hasPrefetch(); function prefetchViaDom(href, as, link) { return new Promise((res, rej)=>{ const selector = '\n link[rel="prefetch"][href^="'.concat(href, '"],\n link[rel="preload"][href^="').concat(href, '"],\n script[src^="').concat(href, '"]'); if (document.querySelector(selector)) { return res(); } link = document.createElement("link"); // The order of property assignment here is intentional: if (as) link.as = as; link.rel = "prefetch"; link.crossOrigin = undefined; link.onload = res; link.onerror = rej; // `href` should always be last: link.href = href; document.head.appendChild(link); }); } const ASSET_LOAD_ERROR = Symbol("ASSET_LOAD_ERROR"); function markAssetError(err) { return Object.defineProperty(err, ASSET_LOAD_ERROR, {}); } function isAssetError(err) { return err && ASSET_LOAD_ERROR in err; } function appendScript(src, script) { return new Promise((resolve, reject)=>{ script = document.createElement("script"); // The order of property assignment here is intentional. // 1. Setup success/failure hooks in case the browser synchronously // executes when `src` is set. script.onload = resolve; script.onerror = ()=>reject(markAssetError(new Error("Failed to load script: ".concat(src)))); // 2. Configure the cross-origin attribute before setting `src` in case the // browser begins to fetch. script.crossOrigin = undefined; // 3. Finally, set the source and inject into the DOM in case the child // must be appended for fetching to start. script.src = src; document.body.appendChild(script); }); } // We wait for pages to be built in dev before we start the route transition // timeout to prevent an un-necessary hard navigation in development. let devBuildPromise; // Resolve a promise that times out after given amount of milliseconds. function resolvePromiseWithTimeout(p, ms, err) { return new Promise((resolve, reject)=>{ let cancelled = false; p.then((r)=>{ // Resolved, cancel the timeout cancelled = true; resolve(r); }).catch(reject); // We wrap these checks separately for better dead-code elimination in // production bundles. if (false) {} if (true) { (0, _requestIdleCallback).requestIdleCallback(()=>setTimeout(()=>{ if (!cancelled) { reject(err); } }, ms)); } }); } function getClientBuildManifest() { if (self.__BUILD_MANIFEST) { return Promise.resolve(self.__BUILD_MANIFEST); } const onBuildManifest = new Promise((resolve)=>{ // Mandatory because this is not concurrent safe: const cb = self.__BUILD_MANIFEST_CB; self.__BUILD_MANIFEST_CB = ()=>{ resolve(self.__BUILD_MANIFEST); cb && cb(); }; }); return resolvePromiseWithTimeout(onBuildManifest, MS_MAX_IDLE_DELAY, markAssetError(new Error("Failed to load client build manifest"))); } function getFilesForRoute(assetPrefix, route) { if (false) {} return getClientBuildManifest().then((manifest)=>{ if (!(route in manifest)) { throw markAssetError(new Error("Failed to lookup route: ".concat(route))); } const allFiles = manifest[route].map((entry)=>assetPrefix + "/_next/" + encodeURI(entry)); return { scripts: allFiles.filter((v)=>v.endsWith(".js")).map((v)=>(0, _trustedTypes).__unsafeCreateTrustedScriptURL(v)), css: allFiles.filter((v)=>v.endsWith(".css")) }; }); } function createRouteLoader(assetPrefix) { const entrypoints = new Map(); const loadedScripts = new Map(); const styleSheets = new Map(); const routes = new Map(); function maybeExecuteScript(src) { // With HMR we might need to "reload" scripts when they are // disposed and readded. Executing scripts twice has no functional // differences if (true) { let prom = loadedScripts.get(src.toString()); if (prom) { return prom; } // Skip executing script if it's already in the DOM: if (document.querySelector('script[src^="'.concat(src, '"]'))) { return Promise.resolve(); } loadedScripts.set(src.toString(), prom = appendScript(src)); return prom; } else {} } function fetchStyleSheet(href) { let prom = styleSheets.get(href); if (prom) { return prom; } styleSheets.set(href, prom = fetch(href).then((res)=>{ if (!res.ok) { throw new Error("Failed to load stylesheet: ".concat(href)); } return res.text().then((text)=>({ href: href, content: text })); }).catch((err)=>{ throw markAssetError(err); })); return prom; } return { whenEntrypoint (route) { return withFuture(route, entrypoints); }, onEntrypoint (route, execute) { (execute ? Promise.resolve().then(()=>execute()).then((exports1)=>({ component: exports1 && exports1.default || exports1, exports: exports1 }), (err)=>({ error: err })) : Promise.resolve(undefined)).then((input)=>{ const old = entrypoints.get(route); if (old && "resolve" in old) { if (input) { entrypoints.set(route, input); old.resolve(input); } } else { if (input) { entrypoints.set(route, input); } else { entrypoints.delete(route); } // when this entrypoint has been resolved before // the route is outdated and we want to invalidate // this cache entry routes.delete(route); } }); }, loadRoute (route, prefetch) { return withFuture(route, routes, ()=>{ let devBuildPromiseResolve; if (false) {} return resolvePromiseWithTimeout(getFilesForRoute(assetPrefix, route).then((param)=>{ let { scripts , css } = param; return Promise.all([ entrypoints.has(route) ? [] : Promise.all(scripts.map(maybeExecuteScript)), Promise.all(css.map(fetchStyleSheet)) ]); }).then((res)=>{ return this.whenEntrypoint(route).then((entrypoint)=>({ entrypoint, styles: res[1] })); }), MS_MAX_IDLE_DELAY, markAssetError(new Error("Route did not complete loading: ".concat(route)))).then((param)=>{ let { entrypoint , styles } = param; const res = Object.assign({ styles: styles }, entrypoint); return "error" in entrypoint ? entrypoint : res; }).catch((err)=>{ if (prefetch) { // we don't want to cache errors during prefetch throw err; } return { error: err }; }).finally(()=>{ return devBuildPromiseResolve == null ? void 0 : devBuildPromiseResolve(); }); }); }, prefetch (route) { // https://github.com/GoogleChromeLabs/quicklink/blob/453a661fa1fa940e2d2e044452398e38c67a98fb/src/index.mjs#L115-L118 // License: Apache 2.0 let cn; if (cn = navigator.connection) { // Don't prefetch if using 2G or if Save-Data is enabled. if (cn.saveData || /2g/.test(cn.effectiveType)) return Promise.resolve(); } return getFilesForRoute(assetPrefix, route).then((output)=>Promise.all(canPrefetch ? output.scripts.map((script)=>prefetchViaDom(script.toString(), "script")) : [])).then(()=>{ (0, _requestIdleCallback).requestIdleCallback(()=>this.loadRoute(route, true).catch(()=>{})); }).catch(()=>{}); } }; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=route-loader.js.map /***/ }), /***/ 387: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "Router", ({ enumerable: true, get: function get() { return _router.default; } })); Object.defineProperty(exports, "withRouter", ({ enumerable: true, get: function get() { return _withRouter.default; } })); exports.useRouter = useRouter; exports.createRouter = createRouter; exports.makePublicRouterInstance = makePublicRouterInstance; exports["default"] = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); var _router = _interop_require_default(__webpack_require__(6273)); var _routerContext = __webpack_require__(3462); var _isError = _interop_require_default(__webpack_require__(676)); var _withRouter = _interop_require_default(__webpack_require__(8981)); const singletonRouter = { router: null, readyCallbacks: [], ready (cb) { if (this.router) return cb(); if (true) { this.readyCallbacks.push(cb); } } }; // Create public properties and methods of the router in the singletonRouter const urlPropertyFields = [ "pathname", "route", "query", "asPath", "components", "isFallback", "basePath", "locale", "locales", "defaultLocale", "isReady", "isPreview", "isLocaleDomain", "domainLocales" ]; const routerEvents = [ "routeChangeStart", "beforeHistoryChange", "routeChangeComplete", "routeChangeError", "hashChangeStart", "hashChangeComplete" ]; const coreMethodFields = [ "push", "replace", "reload", "back", "prefetch", "beforePopState" ]; // Events is a static property on the router, the router doesn't have to be initialized to use it Object.defineProperty(singletonRouter, "events", { get () { return _router.default.events; } }); function getRouter() { if (!singletonRouter.router) { const message = "No router instance found.\n" + 'You should only use "next/router" on the client side of your app.\n'; throw new Error(message); } return singletonRouter.router; } urlPropertyFields.forEach((field)=>{ // Here we need to use Object.defineProperty because we need to return // the property assigned to the actual router // The value might get changed as we change routes and this is the // proper way to access it Object.defineProperty(singletonRouter, field, { get () { const router = getRouter(); return router[field]; } }); }); coreMethodFields.forEach((field)=>{ singletonRouter[field] = function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } const router = getRouter(); return router[field](...args); }; }); routerEvents.forEach((event)=>{ singletonRouter.ready(()=>{ _router.default.events.on(event, function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } const eventField = "on".concat(event.charAt(0).toUpperCase()).concat(event.substring(1)); const _singletonRouter = singletonRouter; if (_singletonRouter[eventField]) { try { _singletonRouter[eventField](...args); } catch (err) { console.error("Error when running the Router event: ".concat(eventField)); console.error((0, _isError).default(err) ? "".concat(err.message, "\n").concat(err.stack) : err + ""); } } }); }); }); var _default = singletonRouter; exports["default"] = _default; function useRouter() { return _react.default.useContext(_routerContext.RouterContext); } function createRouter() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } singletonRouter.router = new _router.default(...args); singletonRouter.readyCallbacks.forEach((cb)=>cb()); singletonRouter.readyCallbacks = []; return singletonRouter.router; } function makePublicRouterInstance(router) { const scopedRouter = router; const instance = {}; for (const property of urlPropertyFields){ if (typeof scopedRouter[property] === "object") { instance[property] = Object.assign(Array.isArray(scopedRouter[property]) ? [] : {}, scopedRouter[property]) // makes sure query is not stateful ; continue; } instance[property] = scopedRouter[property]; } // Events is a static property on the router, the router doesn't have to be initialized to use it instance.events = _router.default.events; coreMethodFields.forEach((field)=>{ instance[field] = function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } return scopedRouter[field](...args); }; }); return instance; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=router.js.map /***/ }), /***/ 699: /***/ (function(module, exports, __webpack_require__) { "use strict"; "client"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.handleClientScriptLoad = handleClientScriptLoad; exports.initScriptLoader = initScriptLoader; exports["default"] = void 0; var _extends = (__webpack_require__(6495)/* ["default"] */ .Z); var _interop_require_wildcard = (__webpack_require__(1598)/* ["default"] */ .Z); var _object_without_properties_loose = (__webpack_require__(7273)/* ["default"] */ .Z); var _react = _interop_require_wildcard(__webpack_require__(7294)); var _headManagerContext = __webpack_require__(8404); var _headManager = __webpack_require__(6007); var _requestIdleCallback = __webpack_require__(9311); "client"; const ScriptCache = new Map(); const LoadCache = new Set(); const ignoreProps = [ "onLoad", "onReady", "dangerouslySetInnerHTML", "children", "onError", "strategy" ]; const loadScript = (props)=>{ const { src , id , onLoad =()=>{} , onReady =null , dangerouslySetInnerHTML , children ="" , strategy ="afterInteractive" , onError , } = props; const cacheKey = id || src; // Script has already loaded if (cacheKey && LoadCache.has(cacheKey)) { return; } // Contents of this script are already loading/loaded if (ScriptCache.has(src)) { LoadCache.add(cacheKey); // It is possible that multiple `next/script` components all have same "src", but has different "onLoad" // This is to make sure the same remote script will only load once, but "onLoad" are executed in order ScriptCache.get(src).then(onLoad, onError); return; } /** Execute after the script first loaded */ const afterLoad = ()=>{ // Run onReady for the first time after load event if (onReady) { onReady(); } // add cacheKey to LoadCache when load successfully LoadCache.add(cacheKey); }; const el = document.createElement("script"); const loadPromise = new Promise((resolve, reject)=>{ el.addEventListener("load", function(e) { resolve(); if (onLoad) { onLoad.call(this, e); } afterLoad(); }); el.addEventListener("error", function(e) { reject(e); }); }).catch(function(e) { if (onError) { onError(e); } }); if (dangerouslySetInnerHTML) { el.innerHTML = dangerouslySetInnerHTML.__html || ""; afterLoad(); } else if (children) { el.textContent = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : ""; afterLoad(); } else if (src) { el.src = src; // do not add cacheKey into LoadCache for remote script here // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above) ScriptCache.set(src, loadPromise); } for (const [k, value] of Object.entries(props)){ if (value === undefined || ignoreProps.includes(k)) { continue; } const attr = _headManager.DOMAttributeNames[k] || k.toLowerCase(); el.setAttribute(attr, value); } if (strategy === "worker") { el.setAttribute("type", "text/partytown"); } el.setAttribute("data-nscript", strategy); document.body.appendChild(el); }; function handleClientScriptLoad(props) { const { strategy ="afterInteractive" } = props; if (strategy === "lazyOnload") { window.addEventListener("load", ()=>{ (0, _requestIdleCallback).requestIdleCallback(()=>loadScript(props)); }); } else { loadScript(props); } } function loadLazyScript(props) { if (document.readyState === "complete") { (0, _requestIdleCallback).requestIdleCallback(()=>loadScript(props)); } else { window.addEventListener("load", ()=>{ (0, _requestIdleCallback).requestIdleCallback(()=>loadScript(props)); }); } } function addBeforeInteractiveToCache() { const scripts = [ ...document.querySelectorAll('[data-nscript="beforeInteractive"]'), ...document.querySelectorAll('[data-nscript="beforePageRender"]') ]; scripts.forEach((script)=>{ const cacheKey = script.id || script.getAttribute("src"); LoadCache.add(cacheKey); }); } function initScriptLoader(scriptLoaderItems) { scriptLoaderItems.forEach(handleClientScriptLoad); addBeforeInteractiveToCache(); } function Script(props) { const { id , src ="" , onLoad =()=>{} , onReady =null , strategy ="afterInteractive" , onError } = props, restProps = _object_without_properties_loose(props, [ "id", "src", "onLoad", "onReady", "strategy", "onError" ]); // Context is available only during SSR const { updateScripts , scripts , getIsSsr } = (0, _react).useContext(_headManagerContext.HeadManagerContext); /** * - First mount: * 1. The useEffect for onReady executes * 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache) * onReady is skipped, set hasOnReadyEffectCalled.current to true * 3. The useEffect for loadScript executes * 4. hasLoadScriptEffectCalled.current is false, loadScript executes * Once the script is loaded, the onLoad and onReady will be called by then * [If strict mode is enabled / is wrapped in <OffScreen /> component] * 5. The useEffect for onReady executes again * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped * 7. The useEffect for loadScript executes again * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped * * - Second mount: * 1. The useEffect for onReady executes * 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache) * onReady is called, set hasOnReadyEffectCalled.current to true * 3. The useEffect for loadScript executes * 4. The script is already loaded, loadScript bails out * [If strict mode is enabled / is wrapped in <OffScreen /> component] * 5. The useEffect for onReady executes again * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped * 7. The useEffect for loadScript executes again * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped */ const hasOnReadyEffectCalled = (0, _react).useRef(false); (0, _react).useEffect(()=>{ const cacheKey = id || src; if (!hasOnReadyEffectCalled.current) { // Run onReady if script has loaded before but component is re-mounted if (onReady && cacheKey && LoadCache.has(cacheKey)) { onReady(); } hasOnReadyEffectCalled.current = true; } }, [ onReady, id, src ]); const hasLoadScriptEffectCalled = (0, _react).useRef(false); (0, _react).useEffect(()=>{ if (!hasLoadScriptEffectCalled.current) { if (strategy === "afterInteractive") { loadScript(props); } else if (strategy === "lazyOnload") { loadLazyScript(props); } hasLoadScriptEffectCalled.current = true; } }, [ props, strategy ]); if (strategy === "beforeInteractive" || strategy === "worker") { if (updateScripts) { scripts[strategy] = (scripts[strategy] || []).concat([ _extends({ id, src, onLoad, onReady, onError }, restProps) ]); updateScripts(scripts); } else if (getIsSsr && getIsSsr()) { // Script has already loaded during SSR LoadCache.add(id || src); } else if (getIsSsr && !getIsSsr()) { loadScript(props); } } return null; } Object.defineProperty(Script, "__nextScript", { value: true }); var _default = Script; exports["default"] = _default; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=script.js.map /***/ }), /***/ 4991: /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.__unsafeCreateTrustedScriptURL = __unsafeCreateTrustedScriptURL; /** * Stores the Trusted Types Policy. Starts as undefined and can be set to null * if Trusted Types is not supported in the browser. */ let policy; /** * Getter for the Trusted Types Policy. If it is undefined, it is instantiated * here or set to null if Trusted Types is not supported in the browser. */ function getPolicy() { if (typeof policy === "undefined" && "object" !== "undefined") { var ref; policy = ((ref = window.trustedTypes) == null ? void 0 : ref.createPolicy("nextjs", { createHTML: (input)=>input, createScript: (input)=>input, createScriptURL: (input)=>input })) || null; } return policy; } function __unsafeCreateTrustedScriptURL(url) { var ref; return ((ref = getPolicy()) == null ? void 0 : ref.createScriptURL(url)) || url; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=trusted-types.js.map /***/ }), /***/ 8981: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = withRouter; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); var _router = __webpack_require__(387); function withRouter(ComposedComponent) { function WithRouterWrapper(props) { return /*#__PURE__*/ _react.default.createElement(ComposedComponent, Object.assign({ router: (0, _router).useRouter() }, props)); } WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps; WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps; if (false) {} return WithRouterWrapper; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=with-router.js.map /***/ }), /***/ 6029: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _async_to_generator = (__webpack_require__(932)/* ["default"] */ .Z); var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); var _utils = __webpack_require__(3794); function appGetInitialProps(_) { return _appGetInitialProps.apply(this, arguments); } function _appGetInitialProps() { _appGetInitialProps = /** * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization. * This allows for keeping state between navigation, custom error handling, injecting additional data. */ _async_to_generator(function*(param) { let { Component , ctx } = param; const pageProps = yield (0, _utils).loadGetInitialProps(Component, ctx); return { pageProps }; }); return _appGetInitialProps.apply(this, arguments); } var _Component; class App extends (_Component = _react.default.Component) { render() { const { Component , pageProps } = this.props; return /*#__PURE__*/ _react.default.createElement(Component, Object.assign({}, pageProps)); } } App.origGetInitialProps = appGetInitialProps; App.getInitialProps = appGetInitialProps; exports["default"] = App; //# sourceMappingURL=_app.js.map /***/ }), /***/ 9185: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); var _head = _interop_require_default(__webpack_require__(5443)); const statusCodes = { 400: "Bad Request", 404: "This page could not be found", 405: "Method Not Allowed", 500: "Internal Server Error" }; function _getInitialProps(param) { let { res , err } = param; const statusCode = res && res.statusCode ? res.statusCode : err ? err.statusCode : 404; return { statusCode }; } const styles = { error: { fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif', height: "100vh", textAlign: "center", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center" }, desc: { display: "inline-block", textAlign: "left", lineHeight: "49px", height: "49px", verticalAlign: "middle" }, h1: { display: "inline-block", margin: 0, marginRight: "20px", padding: "0 23px 0 0", fontSize: "24px", fontWeight: 500, verticalAlign: "top", lineHeight: "49px" }, h2: { fontSize: "14px", fontWeight: "normal", lineHeight: "49px", margin: 0, padding: 0 } }; var _Component; class Error extends (_Component = _react.default.Component) { render() { const { statusCode , withDarkMode =true } = this.props; const title = this.props.title || statusCodes[statusCode] || "An unexpected error has occurred"; return /*#__PURE__*/ _react.default.createElement("div", { style: styles.error }, /*#__PURE__*/ _react.default.createElement(_head.default, null, /*#__PURE__*/ _react.default.createElement("title", null, statusCode ? "".concat(statusCode, ": ").concat(title) : "Application error: a client-side exception has occurred")), /*#__PURE__*/ _react.default.createElement("div", null, /*#__PURE__*/ _react.default.createElement("style", { dangerouslySetInnerHTML: { __html: "\n body { margin: 0; color: #000; background: #fff; }\n .next-error-h1 {\n border-right: 1px solid rgba(0, 0, 0, .3);\n }\n\n ".concat(withDarkMode ? "@media (prefers-color-scheme: dark) {\n body { color: #fff; background: #000; }\n .next-error-h1 {\n border-right: 1px solid rgba(255, 255, 255, .3);\n }\n }" : "") } }), statusCode ? /*#__PURE__*/ _react.default.createElement("h1", { className: "next-error-h1", style: styles.h1 }, statusCode) : null, /*#__PURE__*/ _react.default.createElement("div", { style: styles.desc }, /*#__PURE__*/ _react.default.createElement("h2", { style: styles.h2 }, this.props.title || statusCode ? title : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, "Application error: a client-side exception has occurred (see the browser console for more information)"), ".")))); } } Error.displayName = "ErrorPage"; Error.getInitialProps = _getInitialProps; Error.origGetInitialProps = _getInitialProps; exports["default"] = Error; //# sourceMappingURL=_error.js.map /***/ }), /***/ 2227: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AmpStateContext = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); const AmpStateContext = _react.default.createContext({}); exports.AmpStateContext = AmpStateContext; if (false) {} //# sourceMappingURL=amp-context.js.map /***/ }), /***/ 7363: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isInAmpMode = isInAmpMode; function isInAmpMode() { let { ampFirst =false , hybrid =false , hasQuery =false , } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return ampFirst || hybrid && hasQuery; } //# sourceMappingURL=amp-mode.js.map /***/ }), /***/ 489: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.escapeStringRegexp = escapeStringRegexp; // regexp is based on https://github.com/sindresorhus/escape-string-regexp const reHasRegExp = /[|\\{}()[\]^$+*?.-]/; const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g; function escapeStringRegexp(str) { // see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23 if (reHasRegExp.test(str)) { return str.replace(reReplaceRegExp, "\\$&"); } return str; } //# sourceMappingURL=escape-regexp.js.map /***/ }), /***/ 8404: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HeadManagerContext = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); const HeadManagerContext = _react.default.createContext({}); exports.HeadManagerContext = HeadManagerContext; if (false) {} //# sourceMappingURL=head-manager-context.js.map /***/ }), /***/ 5443: /***/ (function(module, exports, __webpack_require__) { "use strict"; "client"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultHead = defaultHead; exports["default"] = void 0; var _extends = (__webpack_require__(6495)/* ["default"] */ .Z); var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _interop_require_wildcard = (__webpack_require__(1598)/* ["default"] */ .Z); var _react = _interop_require_wildcard(__webpack_require__(7294)); var _sideEffect = _interop_require_default(__webpack_require__(5188)); var _ampContext = __webpack_require__(2227); var _headManagerContext = __webpack_require__(8404); var _ampMode = __webpack_require__(7363); var _utils = __webpack_require__(3794); "client"; function defaultHead() { let inAmpMode = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; const head = [ /*#__PURE__*/ _react.default.createElement("meta", { charSet: "utf-8" }) ]; if (!inAmpMode) { head.push(/*#__PURE__*/ _react.default.createElement("meta", { name: "viewport", content: "width=device-width" })); } return head; } function onlyReactElement(list, child) { // React children can be "string" or "number" in this case we ignore them for backwards compat if (typeof child === "string" || typeof child === "number") { return list; } // Adds support for React.Fragment if (child.type === _react.default.Fragment) { return list.concat(_react.default.Children.toArray(child.props.children).reduce((fragmentList, fragmentChild)=>{ if (typeof fragmentChild === "string" || typeof fragmentChild === "number") { return fragmentList; } return fragmentList.concat(fragmentChild); }, [])); } return list.concat(child); } const METATYPES = [ "name", "httpEquiv", "charSet", "itemProp" ]; /* returns a function for filtering head child elements which shouldn't be duplicated, like <title/> Also adds support for deduplicated `key` properties */ function unique() { const keys = new Set(); const tags = new Set(); const metaTypes = new Set(); const metaCategories = {}; return (h)=>{ let isUnique = true; let hasKey = false; if (h.key && typeof h.key !== "number" && h.key.indexOf("$") > 0) { hasKey = true; const key = h.key.slice(h.key.indexOf("$") + 1); if (keys.has(key)) { isUnique = false; } else { keys.add(key); } } // eslint-disable-next-line default-case switch(h.type){ case "title": case "base": if (tags.has(h.type)) { isUnique = false; } else { tags.add(h.type); } break; case "meta": for(let i = 0, len = METATYPES.length; i < len; i++){ const metatype = METATYPES[i]; if (!h.props.hasOwnProperty(metatype)) continue; if (metatype === "charSet") { if (metaTypes.has(metatype)) { isUnique = false; } else { metaTypes.add(metatype); } } else { const category = h.props[metatype]; const categories = metaCategories[metatype] || new Set(); if ((metatype !== "name" || !hasKey) && categories.has(category)) { isUnique = false; } else { categories.add(category); metaCategories[metatype] = categories; } } } break; } return isUnique; }; } /** * * @param headChildrenElements List of children of <Head> */ function reduceComponents(headChildrenElements, props) { const { inAmpMode } = props; return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(unique()).reverse().map((c, i)=>{ const key = c.key || i; if ( true && !inAmpMode) { if (c.type === "link" && c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works. [ "https://fonts.googleapis.com/css", "https://use.typekit.net/" ].some((url)=>c.props["href"].startsWith(url))) { const newProps = _extends({}, c.props || {}); newProps["data-href"] = newProps["href"]; newProps["href"] = undefined; // Add this attribute to make it easy to identify optimized tags newProps["data-optimized-fonts"] = true; return /*#__PURE__*/ _react.default.cloneElement(c, newProps); } } if (false) {} return /*#__PURE__*/ _react.default.cloneElement(c, { key }); }); } /** * This component injects elements to `<head>` of your page. * To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once. */ function Head(param) { let { children } = param; const ampState = (0, _react).useContext(_ampContext.AmpStateContext); const headManager = (0, _react).useContext(_headManagerContext.HeadManagerContext); return /*#__PURE__*/ _react.default.createElement(_sideEffect.default, { reduceComponentsToState: reduceComponents, headManager: headManager, inAmpMode: (0, _ampMode).isInAmpMode(ampState) }, children); } var _default = Head; exports["default"] = _default; if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=head.js.map /***/ }), /***/ 4317: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.normalizeLocalePath = normalizeLocalePath; function normalizeLocalePath(pathname, locales) { let detectedLocale; // first item will be empty string from splitting at first char const pathnameParts = pathname.split("/"); (locales || []).some((locale)=>{ if (pathnameParts[1] && pathnameParts[1].toLowerCase() === locale.toLowerCase()) { detectedLocale = locale; pathnameParts.splice(1, 1); pathname = pathnameParts.join("/") || "/"; return true; } return false; }); return { pathname, detectedLocale }; } //# sourceMappingURL=normalize-locale-path.js.map /***/ }), /***/ 9977: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ImageConfigContext = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); var _imageConfig = __webpack_require__(9309); const ImageConfigContext = _react.default.createContext(_imageConfig.imageConfigDefault); exports.ImageConfigContext = ImageConfigContext; if (false) {} //# sourceMappingURL=image-config-context.js.map /***/ }), /***/ 9309: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.imageConfigDefault = exports.VALID_LOADERS = void 0; const VALID_LOADERS = [ "default", "imgix", "cloudinary", "akamai", "custom" ]; exports.VALID_LOADERS = VALID_LOADERS; const imageConfigDefault = { deviceSizes: [ 640, 750, 828, 1080, 1200, 1920, 2048, 3840 ], imageSizes: [ 16, 32, 48, 64, 96, 128, 256, 384 ], path: "/_next/image", loader: "default", domains: [], disableStaticImages: false, minimumCacheTTL: 60, formats: [ "image/webp" ], dangerouslyAllowSVG: false, contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;", remotePatterns: [], unoptimized: false }; exports.imageConfigDefault = imageConfigDefault; //# sourceMappingURL=image-config.js.map /***/ }), /***/ 8887: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getObjectClassLabel = getObjectClassLabel; exports.isPlainObject = isPlainObject; function getObjectClassLabel(value) { return Object.prototype.toString.call(value); } function isPlainObject(value) { if (getObjectClassLabel(value) !== "[object Object]") { return false; } const prototype = Object.getPrototypeOf(value); /** * this used to be previously: * * `return prototype === null || prototype === Object.prototype` * * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail. * * It was changed to the current implementation since it's resilient to serialization. */ return prototype === null || prototype.hasOwnProperty("isPrototypeOf"); } //# sourceMappingURL=is-plain-object.js.map /***/ }), /***/ 5660: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = mitt; function mitt() { const all = Object.create(null); return { on (type, handler) { (all[type] || (all[type] = [])).push(handler); }, off (type, handler) { if (all[type]) { all[type].splice(all[type].indexOf(handler) >>> 0, 1); } }, emit (type) { for(var _len = arguments.length, evts = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ evts[_key - 1] = arguments[_key]; } (all[type] || []).slice().map((handler)=>{ handler(...evts); }); } }; } //# sourceMappingURL=mitt.js.map /***/ }), /***/ 8317: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.denormalizePagePath = denormalizePagePath; var _utils = __webpack_require__(418); var _normalizePathSep = __webpack_require__(9892); function denormalizePagePath(page) { let _page = (0, _normalizePathSep).normalizePathSep(page); return _page.startsWith("/index/") && !(0, _utils).isDynamicRoute(_page) ? _page.slice(6) : _page !== "/index" ? _page : "/"; } //# sourceMappingURL=denormalize-page-path.js.map /***/ }), /***/ 9892: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.normalizePathSep = normalizePathSep; function normalizePathSep(path) { return path.replace(/\\/g, "/"); } //# sourceMappingURL=normalize-path-sep.js.map /***/ }), /***/ 3462: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RouterContext = void 0; var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _react = _interop_require_default(__webpack_require__(7294)); const RouterContext = _react.default.createContext(null); exports.RouterContext = RouterContext; if (false) {} //# sourceMappingURL=router-context.js.map /***/ }), /***/ 6273: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.matchesMiddleware = matchesMiddleware; exports.isLocalURL = isLocalURL; exports.interpolateAs = interpolateAs; exports.resolveHref = resolveHref; exports.createKey = createKey; exports["default"] = void 0; var _async_to_generator = (__webpack_require__(932)/* ["default"] */ .Z); var _extends = (__webpack_require__(6495)/* ["default"] */ .Z); var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); var _interop_require_wildcard = (__webpack_require__(1598)/* ["default"] */ .Z); var _normalizeTrailingSlash = __webpack_require__(2392); var _removeTrailingSlash = __webpack_require__(6316); var _routeLoader = __webpack_require__(2669); var _script = __webpack_require__(699); var _isError = _interop_require_wildcard(__webpack_require__(676)); var _denormalizePagePath = __webpack_require__(8317); var _normalizeLocalePath = __webpack_require__(4317); var _mitt = _interop_require_default(__webpack_require__(5660)); var _utils = __webpack_require__(3794); var _isDynamic = __webpack_require__(8689); var _parseRelativeUrl = __webpack_require__(6305); var _querystring = __webpack_require__(466); var _resolveRewrites = _interop_require_default(__webpack_require__(2431)); var _routeMatcher = __webpack_require__(3888); var _routeRegex = __webpack_require__(4095); var _formatUrl = __webpack_require__(4611); var _detectDomainLocale = __webpack_require__(8748); var _parsePath = __webpack_require__(4943); var _addLocale = __webpack_require__(2725); var _removeLocale = __webpack_require__(5776); var _removeBasePath = __webpack_require__(9320); var _addBasePath = __webpack_require__(8684); var _hasBasePath = __webpack_require__(4119); var _getNextPathnameInfo = __webpack_require__(159); var _formatNextPathnameInfo = __webpack_require__(4022); var _compareStates = __webpack_require__(610); var _isBot = __webpack_require__(9671); function buildCancellationError() { return Object.assign(new Error("Route Cancelled"), { cancelled: true }); } function matchesMiddleware(options) { return _matchesMiddleware.apply(this, arguments); } function _matchesMiddleware() { _matchesMiddleware = _async_to_generator(function*(options) { const matchers = yield Promise.resolve(options.router.pageLoader.getMiddleware()); if (!matchers) return false; const { pathname: asPathname } = (0, _parsePath).parsePath(options.asPath); // remove basePath first since path prefix has to be in the order of `/${basePath}/${locale}` const cleanedAs = (0, _hasBasePath).hasBasePath(asPathname) ? (0, _removeBasePath).removeBasePath(asPathname) : asPathname; const asWithBasePathAndLocale = (0, _addBasePath).addBasePath((0, _addLocale).addLocale(cleanedAs, options.locale)); // Check only path match on client. Matching "has" should be done on server // where we can access more info such as headers, HttpOnly cookie, etc. return matchers.some((m)=>new RegExp(m.regexp).test(asWithBasePathAndLocale)); }); return _matchesMiddleware.apply(this, arguments); } function stripOrigin(url) { const origin = (0, _utils).getLocationOrigin(); return url.startsWith(origin) ? url.substring(origin.length) : url; } function omit(object, keys) { const omitted = {}; Object.keys(object).forEach((key)=>{ if (!keys.includes(key)) { omitted[key] = object[key]; } }); return omitted; } function isLocalURL(url) { // prevent a hydration mismatch on href for url with anchor refs if (!(0, _utils).isAbsoluteUrl(url)) return true; try { // absolute urls can be local if they are on the same origin const locationOrigin = (0, _utils).getLocationOrigin(); const resolved = new URL(url, locationOrigin); return resolved.origin === locationOrigin && (0, _hasBasePath).hasBasePath(resolved.pathname); } catch (_) { return false; } } function interpolateAs(route, asPathname, query) { let interpolatedRoute = ""; const dynamicRegex = (0, _routeRegex).getRouteRegex(route); const dynamicGroups = dynamicRegex.groups; const dynamicMatches = (asPathname !== route ? (0, _routeMatcher).getRouteMatcher(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href // TODO: should this take priority; also need to change in the router. query; interpolatedRoute = route; const params = Object.keys(dynamicGroups); if (!params.every((param)=>{ let value = dynamicMatches[param] || ""; const { repeat , optional } = dynamicGroups[param]; // support single-level catch-all // TODO: more robust handling for user-error (passing `/`) let replaced = "[".concat(repeat ? "..." : "").concat(param, "]"); if (optional) { replaced = "".concat(!value ? "/" : "", "[").concat(replaced, "]"); } if (repeat && !Array.isArray(value)) value = [ value ]; return (optional || param in dynamicMatches) && // Interpolate group into data URL if present (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(// path delimiter escaped since they are being inserted // into the URL and we expect URL encoded segments // when parsing dynamic route params (segment)=>encodeURIComponent(segment)).join("/") : encodeURIComponent(value)) || "/"); })) { interpolatedRoute = "" // did not satisfy all requirements ; // n.b. We ignore this error because we handle warning for this case in // development in the `<Link>` component directly. } return { params, result: interpolatedRoute }; } function resolveHref(router, href, resolveAs) { // we use a dummy base url for relative urls let base; let urlAsString = typeof href === "string" ? href : (0, _formatUrl).formatWithValidation(href); // repeated slashes and backslashes in the URL are considered // invalid and will never match a Next.js page/file const urlProtoMatch = urlAsString.match(/^[a-zA-Z]{1,}:\/\//); const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString; const urlParts = urlAsStringNoProto.split("?"); if ((urlParts[0] || "").match(/(\/\/|\\)/)) { console.error("Invalid href passed to next/router: ".concat(urlAsString, ", repeated forward-slashes (//) or backslashes \\ are not valid in the href")); const normalizedUrl = (0, _utils).normalizeRepeatedSlashes(urlAsStringNoProto); urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl; } // Return because it cannot be routed by the Next.js router if (!isLocalURL(urlAsString)) { return resolveAs ? [ urlAsString ] : urlAsString; } try { base = new URL(urlAsString.startsWith("#") ? router.asPath : router.pathname, "http://n"); } catch (_) { // fallback to / for invalid asPath values e.g. // base = new URL("/", "http://n"); } try { const finalUrl = new URL(urlAsString, base); finalUrl.pathname = (0, _normalizeTrailingSlash).normalizePathTrailingSlash(finalUrl.pathname); let interpolatedAs = ""; if ((0, _isDynamic).isDynamicRoute(finalUrl.pathname) && finalUrl.searchParams && resolveAs) { const query = (0, _querystring).searchParamsToUrlQuery(finalUrl.searchParams); const { result , params } = interpolateAs(finalUrl.pathname, finalUrl.pathname, query); if (result) { interpolatedAs = (0, _formatUrl).formatWithValidation({ pathname: result, hash: finalUrl.hash, query: omit(query, params) }); } } // if the origin didn't change, it means we received a relative href const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href; return resolveAs ? [ resolvedHref, interpolatedAs || resolvedHref ] : resolvedHref; } catch (_1) { return resolveAs ? [ urlAsString ] : urlAsString; } } function prepareUrlAs(router, url, as) { // If url and as provided as an object representation, // we'll format them into the string version here. let [resolvedHref, resolvedAs] = resolveHref(router, url, true); const origin = (0, _utils).getLocationOrigin(); const hrefHadOrigin = resolvedHref.startsWith(origin); const asHadOrigin = resolvedAs && resolvedAs.startsWith(origin); resolvedHref = stripOrigin(resolvedHref); resolvedAs = resolvedAs ? stripOrigin(resolvedAs) : resolvedAs; const preparedUrl = hrefHadOrigin ? resolvedHref : (0, _addBasePath).addBasePath(resolvedHref); const preparedAs = as ? stripOrigin(resolveHref(router, as)) : resolvedAs || resolvedHref; return { url: preparedUrl, as: asHadOrigin ? preparedAs : (0, _addBasePath).addBasePath(preparedAs) }; } function resolveDynamicRoute(pathname, pages) { const cleanPathname = (0, _removeTrailingSlash).removeTrailingSlash((0, _denormalizePagePath).denormalizePagePath(pathname)); if (cleanPathname === "/404" || cleanPathname === "/_error") { return pathname; } // handle resolving href for dynamic routes if (!pages.includes(cleanPathname)) { // eslint-disable-next-line array-callback-return pages.some((page)=>{ if ((0, _isDynamic).isDynamicRoute(page) && (0, _routeRegex).getRouteRegex(page).re.test(cleanPathname)) { pathname = page; return true; } }); } return (0, _removeTrailingSlash).removeTrailingSlash(pathname); } function getMiddlewareData(source, response, options) { const nextConfig = { basePath: options.router.basePath, i18n: { locales: options.router.locales }, trailingSlash: Boolean(false) }; const rewriteHeader = response.headers.get("x-nextjs-rewrite"); let rewriteTarget = rewriteHeader || response.headers.get("x-nextjs-matched-path"); const matchedPath = response.headers.get("x-matched-path"); if (matchedPath && !rewriteTarget && !matchedPath.includes("__next_data_catchall") && !matchedPath.includes("/_error") && !matchedPath.includes("/404")) { // leverage x-matched-path to detect next.config.js rewrites rewriteTarget = matchedPath; } if (rewriteTarget) { if (rewriteTarget.startsWith("/")) { const parsedRewriteTarget = (0, _parseRelativeUrl).parseRelativeUrl(rewriteTarget); const pathnameInfo = (0, _getNextPathnameInfo).getNextPathnameInfo(parsedRewriteTarget.pathname, { nextConfig, parseData: true }); let fsPathname = (0, _removeTrailingSlash).removeTrailingSlash(pathnameInfo.pathname); return Promise.all([ options.router.pageLoader.getPageList(), (0, _routeLoader).getClientBuildManifest() ]).then((param)=>{ let [pages, { __rewrites: rewrites }] = param; let as = (0, _addLocale).addLocale(pathnameInfo.pathname, pathnameInfo.locale); if ((0, _isDynamic).isDynamicRoute(as) || !rewriteHeader && pages.includes((0, _normalizeLocalePath).normalizeLocalePath((0, _removeBasePath).removeBasePath(as), options.router.locales).pathname)) { const parsedSource = (0, _getNextPathnameInfo).getNextPathnameInfo((0, _parseRelativeUrl).parseRelativeUrl(source).pathname, { parseData: true }); as = (0, _addBasePath).addBasePath(parsedSource.pathname); parsedRewriteTarget.pathname = as; } if (false) {} else if (!pages.includes(fsPathname)) { const resolvedPathname = resolveDynamicRoute(fsPathname, pages); if (resolvedPathname !== fsPathname) { fsPathname = resolvedPathname; } } const resolvedHref = !pages.includes(fsPathname) ? resolveDynamicRoute((0, _normalizeLocalePath).normalizeLocalePath((0, _removeBasePath).removeBasePath(parsedRewriteTarget.pathname), options.router.locales).pathname, pages) : fsPathname; if ((0, _isDynamic).isDynamicRoute(resolvedHref)) { const matches = (0, _routeMatcher).getRouteMatcher((0, _routeRegex).getRouteRegex(resolvedHref))(as); Object.assign(parsedRewriteTarget.query, matches || {}); } return { type: "rewrite", parsedAs: parsedRewriteTarget, resolvedHref }; }); } const src = (0, _parsePath).parsePath(source); const pathname = (0, _formatNextPathnameInfo).formatNextPathnameInfo(_extends({}, (0, _getNextPathnameInfo).getNextPathnameInfo(src.pathname, { nextConfig, parseData: true }), { defaultLocale: options.router.defaultLocale, buildId: "" })); return Promise.resolve({ type: "redirect-external", destination: "".concat(pathname).concat(src.query).concat(src.hash) }); } const redirectTarget = response.headers.get("x-nextjs-redirect"); if (redirectTarget) { if (redirectTarget.startsWith("/")) { const src1 = (0, _parsePath).parsePath(redirectTarget); const pathname1 = (0, _formatNextPathnameInfo).formatNextPathnameInfo(_extends({}, (0, _getNextPathnameInfo).getNextPathnameInfo(src1.pathname, { nextConfig, parseData: true }), { defaultLocale: options.router.defaultLocale, buildId: "" })); return Promise.resolve({ type: "redirect-internal", newAs: "".concat(pathname1).concat(src1.query).concat(src1.hash), newUrl: "".concat(pathname1).concat(src1.query).concat(src1.hash) }); } return Promise.resolve({ type: "redirect-external", destination: redirectTarget }); } return Promise.resolve({ type: "next" }); } function withMiddlewareEffects(options) { return matchesMiddleware(options).then((matches)=>{ if (matches && options.fetchData) { return options.fetchData().then((data)=>getMiddlewareData(data.dataHref, data.response, options).then((effect)=>({ dataHref: data.dataHref, cacheKey: data.cacheKey, json: data.json, response: data.response, text: data.text, effect }))).catch((_err)=>{ /** * TODO: Revisit this in the future. * For now we will not consider middleware data errors to be fatal. * maybe we should revisit in the future. */ return null; }); } return null; }); } const manualScrollRestoration = (/* unused pure expression or super */ null && ( false && 0)); const SSG_DATA_NOT_FOUND = Symbol("SSG_DATA_NOT_FOUND"); function fetchRetry(url, attempts, options) { return fetch(url, { // Cookies are required to be present for Next.js' SSG "Preview Mode". // Cookies may also be required for `getServerSideProps`. // // > `fetch` won’t send cookies, unless you set the credentials init // > option. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch // // > For maximum browser compatibility when it comes to sending & // > receiving cookies, always supply the `credentials: 'same-origin'` // > option instead of relying on the default. // https://github.com/github/fetch#caveats credentials: "same-origin", method: options.method || "GET", headers: Object.assign({}, options.headers, { "x-nextjs-data": "1" }) }).then((response)=>{ return !response.ok && attempts > 1 && response.status >= 500 ? fetchRetry(url, attempts - 1, options) : response; }); } const backgroundCache = {}; function handleSmoothScroll(fn) { const htmlElement = document.documentElement; const existing = htmlElement.style.scrollBehavior; htmlElement.style.scrollBehavior = "auto"; fn(); htmlElement.style.scrollBehavior = existing; } function tryToParseAsJSON(text) { try { return JSON.parse(text); } catch (error) { return null; } } function fetchNextData(param) { let { dataHref , inflightCache , isPrefetch , hasMiddleware , isServerRender , parseJSON , persistCache , isBackground , unstable_skipClientCache } = param; const { href: cacheKey } = new URL(dataHref, window.location.href); var ref1; const getData = (params)=>{ return fetchRetry(dataHref, isServerRender ? 3 : 1, { headers: isPrefetch ? { purpose: "prefetch" } : {}, method: (ref1 = params == null ? void 0 : params.method) != null ? ref1 : "GET" }).then((response)=>{ if (response.ok && (params == null ? void 0 : params.method) === "HEAD") { return { dataHref, response, text: "", json: {}, cacheKey }; } return response.text().then((text)=>{ if (!response.ok) { /** * When the data response is a redirect because of a middleware * we do not consider it an error. The headers must bring the * mapped location. * TODO: Change the status code in the handler. */ if (hasMiddleware && [ 301, 302, 307, 308 ].includes(response.status)) { return { dataHref, response, text, json: {}, cacheKey }; } if (!hasMiddleware && response.status === 404) { var ref; if ((ref = tryToParseAsJSON(text)) == null ? void 0 : ref.notFound) { return { dataHref, json: { notFound: SSG_DATA_NOT_FOUND }, response, text, cacheKey }; } } const error = new Error("Failed to load static props"); /** * We should only trigger a server-side transition if this was * caused on a client-side transition. Otherwise, we'd get into * an infinite loop. */ if (!isServerRender) { (0, _routeLoader).markAssetError(error); } throw error; } return { dataHref, json: parseJSON ? tryToParseAsJSON(text) : null, response, text, cacheKey }; }); }).then((data)=>{ if (!persistCache || "production" !== "production" || data.response.headers.get("x-middleware-cache") === "no-cache") { delete inflightCache[cacheKey]; } return data; }).catch((err)=>{ delete inflightCache[cacheKey]; throw err; }); }; // when skipping client cache we wait to update // inflight cache until successful data response // this allows racing click event with fetching newer data // without blocking navigation when stale data is available if (unstable_skipClientCache && persistCache) { return getData({}).then((data)=>{ inflightCache[cacheKey] = Promise.resolve(data); return data; }); } if (inflightCache[cacheKey] !== undefined) { return inflightCache[cacheKey]; } return inflightCache[cacheKey] = getData(isBackground ? { method: "HEAD" } : {}); } function createKey() { return Math.random().toString(36).slice(2, 10); } function handleHardNavigation(param) { let { url , router } = param; // ensure we don't trigger a hard navigation to the same // URL as this can end up with an infinite refresh if (url === (0, _addBasePath).addBasePath((0, _addLocale).addLocale(router.asPath, router.locale))) { throw new Error("Invariant: attempted to hard navigate to the same URL ".concat(url, " ").concat(location.href)); } window.location.href = url; } const getCancelledHandler = (param)=>{ let { route , router } = param; let cancelled = false; const cancel = router.clc = ()=>{ cancelled = true; }; const handleCancelled = ()=>{ if (cancelled) { const error = new Error('Abort fetching component for route: "'.concat(route, '"')); error.cancelled = true; throw error; } if (cancel === router.clc) { router.clc = null; } }; return handleCancelled; }; class Router { reload() { window.location.reload(); } /** * Go back in history */ back() { window.history.back(); } /** * Performs a `pushState` with arguments * @param url of the route * @param as masks `url` for the browser * @param options object you can define `shallow` and other options */ push(url, as) { let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; if (false) {} ({ url , as } = prepareUrlAs(this, url, as)); return this.change("pushState", url, as, options); } /** * Performs a `replaceState` with arguments * @param url of the route * @param as masks `url` for the browser * @param options object you can define `shallow` and other options */ replace(url, as) { let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; ({ url , as } = prepareUrlAs(this, url, as)); return this.change("replaceState", url, as, options); } change(method, url, as, options, forcedScroll) { var _this = this; return _async_to_generator(function*() { if (!isLocalURL(url)) { handleHardNavigation({ url, router: _this }); return false; } // WARNING: `_h` is an internal option for handing Next.js client-side // hydration. Your app should _never_ use this property. It may change at // any time without notice. const isQueryUpdating = options._h; const shouldResolveHref = isQueryUpdating || options._shouldResolveHref || (0, _parsePath).parsePath(url).pathname === (0, _parsePath).parsePath(as).pathname; const nextState = _extends({}, _this.state); // for static pages with query params in the URL we delay // marking the router ready until after the query is updated // or a navigation has occurred const readyStateChange = _this.isReady !== true; _this.isReady = true; const isSsr = _this.isSsr; if (!isQueryUpdating) { _this.isSsr = false; } // if a route transition is already in progress before // the query updating is triggered ignore query updating if (isQueryUpdating && _this.clc) { return false; } const prevLocale = nextState.locale; if (false) { var ref; } // marking route changes as a navigation start entry if (_utils.ST) { performance.mark("routeChange"); } const { shallow =false , scroll =true } = options; const routeProps = { shallow }; if (_this._inFlightRoute && _this.clc) { if (!isSsr) { Router.events.emit("routeChangeError", buildCancellationError(), _this._inFlightRoute, routeProps); } _this.clc(); _this.clc = null; } as = (0, _addBasePath).addBasePath((0, _addLocale).addLocale((0, _hasBasePath).hasBasePath(as) ? (0, _removeBasePath).removeBasePath(as) : as, options.locale, _this.defaultLocale)); const cleanedAs = (0, _removeLocale).removeLocale((0, _hasBasePath).hasBasePath(as) ? (0, _removeBasePath).removeBasePath(as) : as, nextState.locale); _this._inFlightRoute = as; const localeChange = prevLocale !== nextState.locale; // If the url change is only related to a hash change // We should not proceed. We should only change the state. if (!isQueryUpdating && _this.onlyAHashChange(cleanedAs) && !localeChange) { nextState.asPath = cleanedAs; Router.events.emit("hashChangeStart", as, routeProps); // TODO: do we need the resolved href when only a hash change? _this.changeState(method, url, as, _extends({}, options, { scroll: false })); if (scroll) { _this.scrollToHash(cleanedAs); } try { yield _this.set(nextState, _this.components[nextState.route], null); } catch (err) { if ((0, _isError).default(err) && err.cancelled) { Router.events.emit("routeChangeError", err, cleanedAs, routeProps); } throw err; } Router.events.emit("hashChangeComplete", as, routeProps); return true; } let parsed = (0, _parseRelativeUrl).parseRelativeUrl(url); let { pathname , query } = parsed; // The build manifest needs to be loaded before auto-static dynamic pages // get their query parameters to allow ensuring they can be parsed properly // when rewritten to let pages, rewrites; try { [pages, { __rewrites: rewrites }] = yield Promise.all([ _this.pageLoader.getPageList(), (0, _routeLoader).getClientBuildManifest(), _this.pageLoader.getMiddleware() ]); } catch (err1) { // If we fail to resolve the page list or client-build manifest, we must // do a server-side transition: handleHardNavigation({ url: as, router: _this }); return false; } // If asked to change the current URL we should reload the current page // (not location.reload() but reload getInitialProps and other Next.js stuffs) // We also need to set the method = replaceState always // as this should not go into the history (That's how browsers work) // We should compare the new asPath to the current asPath, not the url if (!_this.urlIsNew(cleanedAs) && !localeChange) { method = "replaceState"; } // we need to resolve the as value using rewrites for dynamic SSG // pages to allow building the data URL correctly let resolvedAs = as; // url and as should always be prefixed with basePath by this // point by either next/link or router.push/replace so strip the // basePath from the pathname to match the pages dir 1-to-1 pathname = pathname ? (0, _removeTrailingSlash).removeTrailingSlash((0, _removeBasePath).removeBasePath(pathname)) : pathname; // we don't attempt resolve asPath when we need to execute // middleware as the resolving will occur server-side const isMiddlewareMatch = yield matchesMiddleware({ asPath: as, locale: nextState.locale, router: _this }); if (options.shallow && isMiddlewareMatch) { pathname = _this.pathname; } if (shouldResolveHref && pathname !== "/_error") { options._shouldResolveHref = true; if (false) {} else { parsed.pathname = resolveDynamicRoute(pathname, pages); if (parsed.pathname !== pathname) { pathname = parsed.pathname; parsed.pathname = (0, _addBasePath).addBasePath(pathname); if (!isMiddlewareMatch) { url = (0, _formatUrl).formatWithValidation(parsed); } } } } if (!isLocalURL(as)) { if (false) {} handleHardNavigation({ url: as, router: _this }); return false; } resolvedAs = (0, _removeLocale).removeLocale((0, _removeBasePath).removeBasePath(resolvedAs), nextState.locale); let route = (0, _removeTrailingSlash).removeTrailingSlash(pathname); let routeMatch = false; if ((0, _isDynamic).isDynamicRoute(route)) { const parsedAs1 = (0, _parseRelativeUrl).parseRelativeUrl(resolvedAs); const asPathname = parsedAs1.pathname; const routeRegex = (0, _routeRegex).getRouteRegex(route); routeMatch = (0, _routeMatcher).getRouteMatcher(routeRegex)(asPathname); const shouldInterpolate = route === asPathname; const interpolatedAs = shouldInterpolate ? interpolateAs(route, asPathname, query) : {}; if (!routeMatch || shouldInterpolate && !interpolatedAs.result) { const missingParams = Object.keys(routeRegex.groups).filter((param)=>!query[param]); if (missingParams.length > 0 && !isMiddlewareMatch) { if (false) {} throw new Error((shouldInterpolate ? "The provided `href` (".concat(url, ") value is missing query values (").concat(missingParams.join(", "), ") to be interpolated properly. ") : "The provided `as` value (".concat(asPathname, ") is incompatible with the `href` value (").concat(route, "). ")) + "Read more: https://nextjs.org/docs/messages/".concat(shouldInterpolate ? "href-interpolation-failed" : "incompatible-href-as")); } } else if (shouldInterpolate) { as = (0, _formatUrl).formatWithValidation(Object.assign({}, parsedAs1, { pathname: interpolatedAs.result, query: omit(query, interpolatedAs.params) })); } else { // Merge params into `query`, overwriting any specified in search Object.assign(query, routeMatch); } } if (!isQueryUpdating) { Router.events.emit("routeChangeStart", as, routeProps); } try { var ref2, ref3; let routeInfo = yield _this.getRouteInfo({ route, pathname, query, as, resolvedAs, routeProps, locale: nextState.locale, isPreview: nextState.isPreview, hasMiddleware: isMiddlewareMatch, unstable_skipClientCache: options.unstable_skipClientCache, isQueryUpdating: isQueryUpdating && !_this.isFallback }); if ("route" in routeInfo && isMiddlewareMatch) { pathname = routeInfo.route || route; route = pathname; if (!routeProps.shallow) { query = Object.assign({}, routeInfo.query || {}, query); } const cleanedParsedPathname = (0, _hasBasePath).hasBasePath(parsed.pathname) ? (0, _removeBasePath).removeBasePath(parsed.pathname) : parsed.pathname; if (routeMatch && pathname !== cleanedParsedPathname) { Object.keys(routeMatch).forEach((key)=>{ if (routeMatch && query[key] === routeMatch[key]) { delete query[key]; } }); } if ((0, _isDynamic).isDynamicRoute(pathname)) { const prefixedAs = !routeProps.shallow && routeInfo.resolvedAs ? routeInfo.resolvedAs : (0, _addBasePath).addBasePath((0, _addLocale).addLocale(new URL(as, location.href).pathname, nextState.locale), true); let rewriteAs = prefixedAs; if ((0, _hasBasePath).hasBasePath(rewriteAs)) { rewriteAs = (0, _removeBasePath).removeBasePath(rewriteAs); } if (false) {} const routeRegex1 = (0, _routeRegex).getRouteRegex(pathname); const curRouteMatch = (0, _routeMatcher).getRouteMatcher(routeRegex1)(rewriteAs); if (curRouteMatch) { Object.assign(query, curRouteMatch); } } } // If the routeInfo brings a redirect we simply apply it. if ("type" in routeInfo) { if (routeInfo.type === "redirect-internal") { return _this.change(method, routeInfo.newUrl, routeInfo.newAs, options); } else { handleHardNavigation({ url: routeInfo.destination, router: _this }); return new Promise(()=>{}); } } let { error , props , __N_SSG , __N_SSP } = routeInfo; const component = routeInfo.Component; if (component && component.unstable_scriptLoader) { const scripts = [].concat(component.unstable_scriptLoader()); scripts.forEach((script)=>{ (0, _script).handleClientScriptLoad(script.props); }); } // handle redirect on client-transition if ((__N_SSG || __N_SSP) && props) { if (props.pageProps && props.pageProps.__N_REDIRECT) { // Use the destination from redirect without adding locale options.locale = false; const destination = props.pageProps.__N_REDIRECT; // check if destination is internal (resolves to a page) and attempt // client-navigation if it is falling back to hard navigation if // it's not if (destination.startsWith("/") && props.pageProps.__N_REDIRECT_BASE_PATH !== false) { const parsedHref = (0, _parseRelativeUrl).parseRelativeUrl(destination); parsedHref.pathname = resolveDynamicRoute(parsedHref.pathname, pages); const { url: newUrl , as: newAs } = prepareUrlAs(_this, destination, destination); return _this.change(method, newUrl, newAs, options); } handleHardNavigation({ url: destination, router: _this }); return new Promise(()=>{}); } nextState.isPreview = !!props.__N_PREVIEW; // handle SSG data 404 if (props.notFound === SSG_DATA_NOT_FOUND) { let notFoundRoute; try { yield _this.fetchComponent("/404"); notFoundRoute = "/404"; } catch (_) { notFoundRoute = "/_error"; } routeInfo = yield _this.getRouteInfo({ route: notFoundRoute, pathname: notFoundRoute, query, as, resolvedAs, routeProps: { shallow: false }, locale: nextState.locale, isPreview: nextState.isPreview }); if ("type" in routeInfo) { throw new Error("Unexpected middleware effect on /404"); } } } Router.events.emit("beforeHistoryChange", as, routeProps); _this.changeState(method, url, as, options); if (isQueryUpdating && pathname === "/_error" && ((ref2 = self.__NEXT_DATA__.props) == null ? void 0 : (ref3 = ref2.pageProps) == null ? void 0 : ref3.statusCode) === 500 && (props == null ? void 0 : props.pageProps)) { // ensure statusCode is still correct for static 500 page // when updating query information props.pageProps.statusCode = 500; } var _route; // shallow routing is only allowed for same page URL changes. const isValidShallowRoute = options.shallow && nextState.route === ((_route = routeInfo.route) != null ? _route : route); var _scroll; const shouldScroll = (_scroll = options.scroll) != null ? _scroll : !options._h && !isValidShallowRoute; const resetScroll = shouldScroll ? { x: 0, y: 0 } : null; // the new state that the router gonna set const upcomingRouterState = _extends({}, nextState, { route, pathname, query, asPath: cleanedAs, isFallback: false }); const upcomingScrollState = forcedScroll != null ? forcedScroll : resetScroll; // for query updates we can skip it if the state is unchanged and we don't // need to scroll // https://github.com/vercel/next.js/issues/37139 const canSkipUpdating = options._h && !upcomingScrollState && !readyStateChange && !localeChange && (0, _compareStates).compareRouterStates(upcomingRouterState, _this.state); if (!canSkipUpdating) { yield _this.set(upcomingRouterState, routeInfo, upcomingScrollState).catch((e)=>{ if (e.cancelled) error = error || e; else throw e; }); if (error) { if (!isQueryUpdating) { Router.events.emit("routeChangeError", error, cleanedAs, routeProps); } throw error; } if (false) {} if (!isQueryUpdating) { Router.events.emit("routeChangeComplete", as, routeProps); } // A hash mark # is the optional last part of a URL const hashRegex = /#.+$/; if (shouldScroll && hashRegex.test(as)) { _this.scrollToHash(as); } } return true; } catch (err11) { if ((0, _isError).default(err11) && err11.cancelled) { return false; } throw err11; } })(); } changeState(method, url, as) { let options = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; if (false) {} if (method !== "pushState" || (0, _utils).getURL() !== as) { this._shallow = options.shallow; window.history[method]({ url, as, options, __N: true, key: this._key = method !== "pushState" ? this._key : createKey() }, // Passing the empty string here should be safe against future changes to the method. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState "", as); } } handleRouteInfoError(err, pathname, query, as, routeProps, loadErrorFail) { var _this = this; return _async_to_generator(function*() { console.error(err); if (err.cancelled) { // bubble up cancellation errors throw err; } if ((0, _routeLoader).isAssetError(err) || loadErrorFail) { Router.events.emit("routeChangeError", err, as, routeProps); // If we can't load the page it could be one of following reasons // 1. Page doesn't exists // 2. Page does exist in a different zone // 3. Internal error while loading the page // So, doing a hard reload is the proper way to deal with this. handleHardNavigation({ url: as, router: _this }); // Changing the URL doesn't block executing the current code path. // So let's throw a cancellation error stop the routing logic. throw buildCancellationError(); } try { let props; const { page: Component , styleSheets } = yield _this.fetchComponent("/_error"); const routeInfo = { props, Component, styleSheets, err, error: err }; if (!routeInfo.props) { try { routeInfo.props = yield _this.getInitialProps(Component, { err, pathname, query }); } catch (gipErr) { console.error("Error in error page `getInitialProps`: ", gipErr); routeInfo.props = {}; } } return routeInfo; } catch (routeInfoErr) { return _this.handleRouteInfoError((0, _isError).default(routeInfoErr) ? routeInfoErr : new Error(routeInfoErr + ""), pathname, query, as, routeProps, true); } })(); } getRouteInfo(param) { let { route: requestedRoute , pathname , query , as , resolvedAs , routeProps , locale , hasMiddleware , isPreview , unstable_skipClientCache , isQueryUpdating } = param; var _this = this; return _async_to_generator(function*() { /** * This `route` binding can change if there's a rewrite * so we keep a reference to the original requested route * so we can store the cache for it and avoid re-requesting every time * for shallow routing purposes. */ let route = requestedRoute; try { var ref, ref4, ref5; const handleCancelled = getCancelledHandler({ route, router: _this }); let existingInfo = _this.components[route]; if (routeProps.shallow && existingInfo && _this.route === route) { return existingInfo; } if (hasMiddleware) { existingInfo = undefined; } let cachedRouteInfo = existingInfo && !("initial" in existingInfo) && "production" !== "development" ? existingInfo : undefined; const fetchNextDataParams = { dataHref: _this.pageLoader.getDataHref({ href: (0, _formatUrl).formatWithValidation({ pathname, query }), skipInterpolation: true, asPath: resolvedAs, locale }), hasMiddleware: true, isServerRender: _this.isSsr, parseJSON: true, inflightCache: _this.sdc, persistCache: !isPreview, isPrefetch: false, unstable_skipClientCache, isBackground: isQueryUpdating }; const data = yield withMiddlewareEffects({ fetchData: ()=>fetchNextData(fetchNextDataParams), asPath: resolvedAs, locale: locale, router: _this }); if (isQueryUpdating && data) { data.json = self.__NEXT_DATA__.props; } handleCancelled(); if ((data == null ? void 0 : (ref = data.effect) == null ? void 0 : ref.type) === "redirect-internal" || (data == null ? void 0 : (ref4 = data.effect) == null ? void 0 : ref4.type) === "redirect-external") { return data.effect; } if ((data == null ? void 0 : (ref5 = data.effect) == null ? void 0 : ref5.type) === "rewrite") { route = (0, _removeTrailingSlash).removeTrailingSlash(data.effect.resolvedHref); pathname = data.effect.resolvedHref; query = _extends({}, query, data.effect.parsedAs.query); resolvedAs = (0, _removeBasePath).removeBasePath((0, _normalizeLocalePath).normalizeLocalePath(data.effect.parsedAs.pathname, _this.locales).pathname); // Check again the cache with the new destination. existingInfo = _this.components[route]; if (routeProps.shallow && existingInfo && _this.route === route && !hasMiddleware) { // If we have a match with the current route due to rewrite, // we can copy the existing information to the rewritten one. // Then, we return the information along with the matched route. return _extends({}, existingInfo, { route }); } } if (route === "/api" || route.startsWith("/api/")) { handleHardNavigation({ url: as, router: _this }); return new Promise(()=>{}); } const routeInfo = cachedRouteInfo || (yield _this.fetchComponent(route).then((res)=>({ Component: res.page, styleSheets: res.styleSheets, __N_SSG: res.mod.__N_SSG, __N_SSP: res.mod.__N_SSP }))); if (false) {} const shouldFetchData = routeInfo.__N_SSG || routeInfo.__N_SSP; const { props , cacheKey } = yield _this._getData(_async_to_generator(function*() { if (shouldFetchData) { const { json , cacheKey: _cacheKey } = (data == null ? void 0 : data.json) ? data : yield fetchNextData({ dataHref: _this.pageLoader.getDataHref({ href: (0, _formatUrl).formatWithValidation({ pathname, query }), asPath: resolvedAs, locale }), isServerRender: _this.isSsr, parseJSON: true, inflightCache: _this.sdc, persistCache: !isPreview, isPrefetch: false, unstable_skipClientCache }); return { cacheKey: _cacheKey, props: json || {} }; } return { headers: {}, cacheKey: "", props: yield _this.getInitialProps(routeInfo.Component, { pathname, query, asPath: as, locale, locales: _this.locales, defaultLocale: _this.defaultLocale }) }; })); // Only bust the data cache for SSP routes although // middleware can skip cache per request with // x-middleware-cache: no-cache as well if (routeInfo.__N_SSP && fetchNextDataParams.dataHref) { delete _this.sdc[cacheKey]; } // we kick off a HEAD request in the background // when a non-prefetch request is made to signal revalidation if (!_this.isPreview && routeInfo.__N_SSG && "production" !== "development") { fetchNextData(Object.assign({}, fetchNextDataParams, { isBackground: true, persistCache: false, inflightCache: backgroundCache })).catch(()=>{}); } props.pageProps = Object.assign({}, props.pageProps); routeInfo.props = props; routeInfo.route = route; routeInfo.query = query; routeInfo.resolvedAs = resolvedAs; _this.components[route] = routeInfo; return routeInfo; } catch (err) { return _this.handleRouteInfoError((0, _isError).getProperError(err), pathname, query, as, routeProps); } })(); } set(state, data, resetScroll) { this.state = state; return this.sub(data, this.components["/_app"].Component, resetScroll); } /** * Callback to execute before replacing router state * @param cb callback to be executed */ beforePopState(cb) { this._bps = cb; } onlyAHashChange(as) { if (!this.asPath) return false; const [oldUrlNoHash, oldHash] = this.asPath.split("#"); const [newUrlNoHash, newHash] = as.split("#"); // Makes sure we scroll to the provided hash if the url/hash are the same if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) { return true; } // If the urls are change, there's more than a hash change if (oldUrlNoHash !== newUrlNoHash) { return false; } // If the hash has changed, then it's a hash only change. // This check is necessary to handle both the enter and // leave hash === '' cases. The identity case falls through // and is treated as a next reload. return oldHash !== newHash; } scrollToHash(as) { const [, hash = ""] = as.split("#"); // Scroll to top if the hash is just `#` with no value or `#top` // To mirror browsers if (hash === "" || hash === "top") { handleSmoothScroll(()=>window.scrollTo(0, 0)); return; } // Decode hash to make non-latin anchor works. const rawHash = decodeURIComponent(hash); // First we check if the element by id is found const idEl = document.getElementById(rawHash); if (idEl) { handleSmoothScroll(()=>idEl.scrollIntoView()); return; } // If there's no element with the id, we check the `name` property // To mirror browsers const nameEl = document.getElementsByName(rawHash)[0]; if (nameEl) { handleSmoothScroll(()=>nameEl.scrollIntoView()); } } urlIsNew(asPath) { return this.asPath !== asPath; } /** * Prefetch page code, you may wait for the data during page rendering. * This feature only works in production! * @param url the href of prefetched page * @param asPath the as path of the prefetched page */ prefetch(url) { let asPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : url, options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; var _this = this; return _async_to_generator(function*() { if ( true && (0, _isBot).isBot(window.navigator.userAgent)) { // No prefetches for bots that render the link since they are typically navigating // links via the equivalent of a hard navigation and hence never utilize these // prefetches. return; } let parsed = (0, _parseRelativeUrl).parseRelativeUrl(url); let { pathname , query } = parsed; if (false) {} const pages = yield _this.pageLoader.getPageList(); let resolvedAs = asPath; const locale = typeof options.locale !== "undefined" ? options.locale || undefined : _this.locale; if (false) {} parsed.pathname = resolveDynamicRoute(parsed.pathname, pages); if ((0, _isDynamic).isDynamicRoute(parsed.pathname)) { pathname = parsed.pathname; parsed.pathname = pathname; Object.assign(query, (0, _routeMatcher).getRouteMatcher((0, _routeRegex).getRouteRegex(parsed.pathname))((0, _parsePath).parsePath(asPath).pathname) || {}); url = (0, _formatUrl).formatWithValidation(parsed); } // Prefetch is not supported in development mode because it would trigger on-demand-entries if (false) {} const route = (0, _removeTrailingSlash).removeTrailingSlash(pathname); yield Promise.all([ _this.pageLoader._isSsg(route).then((isSsg)=>{ return isSsg ? fetchNextData({ dataHref: _this.pageLoader.getDataHref({ href: url, asPath: resolvedAs, locale: locale }), isServerRender: false, parseJSON: true, inflightCache: _this.sdc, persistCache: !_this.isPreview, isPrefetch: true, unstable_skipClientCache: options.unstable_skipClientCache || options.priority && !!true }).then(()=>false) : false; }), _this.pageLoader[options.priority ? "loadPage" : "prefetch"](route) ]); })(); } fetchComponent(route) { var _this = this; return _async_to_generator(function*() { const handleCancelled = getCancelledHandler({ route, router: _this }); try { const componentResult = yield _this.pageLoader.loadPage(route); handleCancelled(); return componentResult; } catch (err) { handleCancelled(); throw err; } })(); } _getData(fn) { let cancelled = false; const cancel = ()=>{ cancelled = true; }; this.clc = cancel; return fn().then((data)=>{ if (cancel === this.clc) { this.clc = null; } if (cancelled) { const err = new Error("Loading initial props cancelled"); err.cancelled = true; throw err; } return data; }); } _getFlightData(dataHref) { // Do not cache RSC flight response since it's not a static resource return fetchNextData({ dataHref, isServerRender: true, parseJSON: false, inflightCache: this.sdc, persistCache: false, isPrefetch: false }).then((param)=>{ let { text } = param; return { data: text }; }); } getInitialProps(Component, ctx) { const { Component: App } = this.components["/_app"]; const AppTree = this._wrapApp(App); ctx.AppTree = AppTree; return (0, _utils).loadGetInitialProps(App, { AppTree, Component, router: this, ctx }); } get route() { return this.state.route; } get pathname() { return this.state.pathname; } get query() { return this.state.query; } get asPath() { return this.state.asPath; } get locale() { return this.state.locale; } get isFallback() { return this.state.isFallback; } get isPreview() { return this.state.isPreview; } constructor(pathname1, query1, as1, { initialProps , pageLoader , App , wrapApp , Component , err , subscription , isFallback , locale , locales , defaultLocale , domainLocales , isPreview }){ // Server Data Cache this.sdc = {}; this.isFirstPopStateEvent = true; this._key = createKey(); this.onPopState = (e)=>{ const { isFirstPopStateEvent } = this; this.isFirstPopStateEvent = false; const state = e.state; if (!state) { // We get state as undefined for two reasons. // 1. With older safari (< 8) and older chrome (< 34) // 2. When the URL changed with # // // In the both cases, we don't need to proceed and change the route. // (as it's already changed) // But we can simply replace the state with the new changes. // Actually, for (1) we don't need to nothing. But it's hard to detect that event. // So, doing the following for (1) does no harm. const { pathname , query } = this; this.changeState("replaceState", (0, _formatUrl).formatWithValidation({ pathname: (0, _addBasePath).addBasePath(pathname), query }), (0, _utils).getURL()); return; } // __NA is used to identify if the history entry can be handled by the app-router. if (state.__NA) { window.location.reload(); return; } if (!state.__N) { return; } // Safari fires popstateevent when reopening the browser. if (isFirstPopStateEvent && this.locale === state.options.locale && state.as === this.asPath) { return; } let forcedScroll; const { url , as , options , key } = state; if (false) {} this._key = key; const { pathname: pathname1 } = (0, _parseRelativeUrl).parseRelativeUrl(url); // Make sure we don't re-render on initial load, // can be caused by navigating back from an external site if (this.isSsr && as === (0, _addBasePath).addBasePath(this.asPath) && pathname1 === (0, _addBasePath).addBasePath(this.pathname)) { return; } // If the downstream application returns falsy, return. // They will then be responsible for handling the event. if (this._bps && !this._bps(state)) { return; } this.change("replaceState", url, as, Object.assign({}, options, { shallow: options.shallow && this._shallow, locale: options.locale || this.defaultLocale, // @ts-ignore internal value not exposed on types _h: 0 }), forcedScroll); }; // represents the current component key const route = (0, _removeTrailingSlash).removeTrailingSlash(pathname1); // set up the component cache (by route keys) this.components = {}; // We should not keep the cache, if there's an error // Otherwise, this cause issues when when going back and // come again to the errored page. if (pathname1 !== "/_error") { this.components[route] = { Component, initial: true, props: initialProps, err, __N_SSG: initialProps && initialProps.__N_SSG, __N_SSP: initialProps && initialProps.__N_SSP }; } this.components["/_app"] = { Component: App, styleSheets: [] }; // Backwards compat for Router.router.events // TODO: Should be remove the following major version as it was never documented this.events = Router.events; this.pageLoader = pageLoader; // if auto prerendered and dynamic route wait to update asPath // until after mount to prevent hydration mismatch const autoExportDynamic = (0, _isDynamic).isDynamicRoute(pathname1) && self.__NEXT_DATA__.autoExport; this.basePath = false || ""; this.sub = subscription; this.clc = null; this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating // back from external site this.isSsr = true; this.isLocaleDomain = false; this.isReady = !!(self.__NEXT_DATA__.gssp || self.__NEXT_DATA__.gip || self.__NEXT_DATA__.appGip && !self.__NEXT_DATA__.gsp || !autoExportDynamic && !self.location.search && !false); if (false) {} this.state = { route, pathname: pathname1, query: query1, asPath: autoExportDynamic ? pathname1 : as1, isPreview: !!isPreview, locale: false ? 0 : undefined, isFallback }; this._initialMatchesMiddlewarePromise = Promise.resolve(false); if (true) { // make sure "as" doesn't start with double slashes or else it can // throw an error as it's considered invalid if (!as1.startsWith("//")) { // in order for `e.state` to work on the `onpopstate` event // we have to register the initial route upon initialization const options = { locale }; const asPath = (0, _utils).getURL(); this._initialMatchesMiddlewarePromise = matchesMiddleware({ router: this, locale, asPath }).then((matches)=>{ options._shouldResolveHref = as1 !== pathname1; this.changeState("replaceState", matches ? asPath : (0, _formatUrl).formatWithValidation({ pathname: (0, _addBasePath).addBasePath(pathname1), query: query1 }), asPath, options); return matches; }); } window.addEventListener("popstate", this.onPopState); // enable custom scroll restoration handling when available // otherwise fallback to browser's default handling if (false) {} } } } Router.events = (0, _mitt).default(); exports["default"] = Router; //# sourceMappingURL=router.js.map /***/ }), /***/ 7459: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.addLocale = addLocale; var _addPathPrefix = __webpack_require__(5391); var _pathHasPrefix = __webpack_require__(1259); function addLocale(path, locale, defaultLocale, ignorePrefix) { if (locale && locale !== defaultLocale && (ignorePrefix || !(0, _pathHasPrefix).pathHasPrefix(path.toLowerCase(), "/".concat(locale.toLowerCase())) && !(0, _pathHasPrefix).pathHasPrefix(path.toLowerCase(), "/api"))) { return (0, _addPathPrefix).addPathPrefix(path, "/".concat(locale)); } return path; } //# sourceMappingURL=add-locale.js.map /***/ }), /***/ 5391: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.addPathPrefix = addPathPrefix; var _parsePath = __webpack_require__(4943); function addPathPrefix(path, prefix) { if (!path.startsWith("/") || !prefix) { return path; } const { pathname , query , hash } = (0, _parsePath).parsePath(path); return "".concat(prefix).concat(pathname).concat(query).concat(hash); } //# sourceMappingURL=add-path-prefix.js.map /***/ }), /***/ 4156: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.addPathSuffix = addPathSuffix; var _parsePath = __webpack_require__(4943); function addPathSuffix(path, suffix) { if (!path.startsWith("/") || !suffix) { return path; } const { pathname , query , hash } = (0, _parsePath).parsePath(path); return "".concat(pathname).concat(suffix).concat(query).concat(hash); } //# sourceMappingURL=add-path-suffix.js.map /***/ }), /***/ 610: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.compareRouterStates = compareRouterStates; function compareRouterStates(a, b) { const stateKeys = Object.keys(a); if (stateKeys.length !== Object.keys(b).length) return false; for(let i = stateKeys.length; i--;){ const key = stateKeys[i]; if (key === "query") { const queryKeys = Object.keys(a.query); if (queryKeys.length !== Object.keys(b.query).length) { return false; } for(let j = queryKeys.length; j--;){ const queryKey = queryKeys[j]; if (!b.query.hasOwnProperty(queryKey) || a.query[queryKey] !== b.query[queryKey]) { return false; } } } else if (!b.hasOwnProperty(key) || a[key] !== b[key]) { return false; } } return true; } //# sourceMappingURL=compare-states.js.map /***/ }), /***/ 4022: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.formatNextPathnameInfo = formatNextPathnameInfo; var _removeTrailingSlash = __webpack_require__(6316); var _addPathPrefix = __webpack_require__(5391); var _addPathSuffix = __webpack_require__(4156); var _addLocale = __webpack_require__(7459); function formatNextPathnameInfo(info) { let pathname = (0, _addLocale).addLocale(info.pathname, info.locale, info.buildId ? undefined : info.defaultLocale, info.ignorePrefix); if (info.buildId) { pathname = (0, _addPathSuffix).addPathSuffix((0, _addPathPrefix).addPathPrefix(pathname, "/_next/data/".concat(info.buildId)), info.pathname === "/" ? "index.json" : ".json"); } pathname = (0, _addPathPrefix).addPathPrefix(pathname, info.basePath); return info.trailingSlash ? !info.buildId && !pathname.endsWith("/") ? (0, _addPathSuffix).addPathSuffix(pathname, "/") : pathname : (0, _removeTrailingSlash).removeTrailingSlash(pathname); } //# sourceMappingURL=format-next-pathname-info.js.map /***/ }), /***/ 4611: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.formatUrl = formatUrl; exports.formatWithValidation = formatWithValidation; exports.urlObjectKeys = void 0; var _interop_require_wildcard = (__webpack_require__(1598)/* ["default"] */ .Z); var querystring = _interop_require_wildcard(__webpack_require__(466)); const slashedProtocols = /https?|ftp|gopher|file/; function formatUrl(urlObj) { let { auth , hostname } = urlObj; let protocol = urlObj.protocol || ""; let pathname = urlObj.pathname || ""; let hash = urlObj.hash || ""; let query = urlObj.query || ""; let host = false; auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : ""; if (urlObj.host) { host = auth + urlObj.host; } else if (hostname) { host = auth + (~hostname.indexOf(":") ? "[".concat(hostname, "]") : hostname); if (urlObj.port) { host += ":" + urlObj.port; } } if (query && typeof query === "object") { query = String(querystring.urlQueryToSearchParams(query)); } let search = urlObj.search || query && "?".concat(query) || ""; if (protocol && !protocol.endsWith(":")) protocol += ":"; if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) { host = "//" + (host || ""); if (pathname && pathname[0] !== "/") pathname = "/" + pathname; } else if (!host) { host = ""; } if (hash && hash[0] !== "#") hash = "#" + hash; if (search && search[0] !== "?") search = "?" + search; pathname = pathname.replace(/[?#]/g, encodeURIComponent); search = search.replace("#", "%23"); return "".concat(protocol).concat(host).concat(pathname).concat(search).concat(hash); } const urlObjectKeys = [ "auth", "hash", "host", "hostname", "href", "path", "pathname", "port", "protocol", "query", "search", "slashes" ]; exports.urlObjectKeys = urlObjectKeys; function formatWithValidation(url) { if (false) {} return formatUrl(url); } //# sourceMappingURL=format-url.js.map /***/ }), /***/ 3891: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = getAssetPathFromRoute; function getAssetPathFromRoute(route) { let ext = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; const path = route === "/" ? "/index" : /^\/index(\/|$)/.test(route) ? "/index".concat(route) : "".concat(route); return path + ext; } //# sourceMappingURL=get-asset-path-from-route.js.map /***/ }), /***/ 159: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getNextPathnameInfo = getNextPathnameInfo; var _normalizeLocalePath = __webpack_require__(4317); var _removePathPrefix = __webpack_require__(9244); var _pathHasPrefix = __webpack_require__(1259); function getNextPathnameInfo(pathname, options) { var _nextConfig; const { basePath , i18n , trailingSlash } = (_nextConfig = options.nextConfig) != null ? _nextConfig : {}; const info = { pathname: pathname, trailingSlash: pathname !== "/" ? pathname.endsWith("/") : trailingSlash }; if (basePath && (0, _pathHasPrefix).pathHasPrefix(info.pathname, basePath)) { info.pathname = (0, _removePathPrefix).removePathPrefix(info.pathname, basePath); info.basePath = basePath; } if (options.parseData === true && info.pathname.startsWith("/_next/data/") && info.pathname.endsWith(".json")) { const paths = info.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"); const buildId = paths[0]; info.pathname = paths[1] !== "index" ? "/".concat(paths.slice(1).join("/")) : "/"; info.buildId = buildId; } if (i18n) { const pathLocale = (0, _normalizeLocalePath).normalizeLocalePath(info.pathname, i18n.locales); info.locale = pathLocale == null ? void 0 : pathLocale.detectedLocale; info.pathname = (pathLocale == null ? void 0 : pathLocale.pathname) || info.pathname; } return info; } //# sourceMappingURL=get-next-pathname-info.js.map /***/ }), /***/ 418: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "getSortedRoutes", ({ enumerable: true, get: function get() { return _sortedRoutes.getSortedRoutes; } })); Object.defineProperty(exports, "isDynamicRoute", ({ enumerable: true, get: function get() { return _isDynamic.isDynamicRoute; } })); var _sortedRoutes = __webpack_require__(3907); var _isDynamic = __webpack_require__(8689); //# sourceMappingURL=index.js.map /***/ }), /***/ 9671: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isBot = isBot; function isBot(userAgent) { return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(userAgent); } //# sourceMappingURL=is-bot.js.map /***/ }), /***/ 8689: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isDynamicRoute = isDynamicRoute; // Identify /[param]/ in route string const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/; function isDynamicRoute(route) { return TEST_ROUTE.test(route); } //# sourceMappingURL=is-dynamic.js.map /***/ }), /***/ 4943: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.parsePath = parsePath; function parsePath(path) { const hashIndex = path.indexOf("#"); const queryIndex = path.indexOf("?"); const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex); if (hasQuery || hashIndex > -1) { return { pathname: path.substring(0, hasQuery ? queryIndex : hashIndex), query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : undefined) : "", hash: hashIndex > -1 ? path.slice(hashIndex) : "" }; } return { pathname: path, query: "", hash: "" }; } //# sourceMappingURL=parse-path.js.map /***/ }), /***/ 6305: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.parseRelativeUrl = parseRelativeUrl; var _utils = __webpack_require__(3794); var _querystring = __webpack_require__(466); function parseRelativeUrl(url, base) { const globalBase = new URL( false ? 0 : (0, _utils).getLocationOrigin()); const resolvedBase = base ? new URL(base, globalBase) : url.startsWith(".") ? new URL( false ? 0 : window.location.href) : globalBase; const { pathname , searchParams , search , hash , href , origin } = new URL(url, resolvedBase); if (origin !== globalBase.origin) { throw new Error("invariant: invalid relative URL, router received ".concat(url)); } return { pathname, query: (0, _querystring).searchParamsToUrlQuery(searchParams), search, hash, href: href.slice(globalBase.origin.length) }; } //# sourceMappingURL=parse-relative-url.js.map /***/ }), /***/ 1259: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.pathHasPrefix = pathHasPrefix; var _parsePath = __webpack_require__(4943); function pathHasPrefix(path, prefix) { if (typeof path !== "string") { return false; } const { pathname } = (0, _parsePath).parsePath(path); return pathname === prefix || pathname.startsWith(prefix + "/"); } //# sourceMappingURL=path-has-prefix.js.map /***/ }), /***/ 466: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.searchParamsToUrlQuery = searchParamsToUrlQuery; exports.urlQueryToSearchParams = urlQueryToSearchParams; exports.assign = assign; function searchParamsToUrlQuery(searchParams) { const query = {}; searchParams.forEach((value, key)=>{ if (typeof query[key] === "undefined") { query[key] = value; } else if (Array.isArray(query[key])) { query[key].push(value); } else { query[key] = [ query[key], value ]; } }); return query; } function stringifyUrlQueryParam(param) { if (typeof param === "string" || typeof param === "number" && !isNaN(param) || typeof param === "boolean") { return String(param); } else { return ""; } } function urlQueryToSearchParams(urlQuery) { const result = new URLSearchParams(); Object.entries(urlQuery).forEach((param)=>{ let [key, value] = param; if (Array.isArray(value)) { value.forEach((item)=>result.append(key, stringifyUrlQueryParam(item))); } else { result.set(key, stringifyUrlQueryParam(value)); } }); return result; } function assign(target) { for(var _len = arguments.length, searchParamsList = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ searchParamsList[_key - 1] = arguments[_key]; } searchParamsList.forEach((searchParams)=>{ Array.from(searchParams.keys()).forEach((key)=>target.delete(key)); searchParams.forEach((value, key)=>target.append(key, value)); }); return target; } //# sourceMappingURL=querystring.js.map /***/ }), /***/ 9244: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removePathPrefix = removePathPrefix; var _pathHasPrefix = __webpack_require__(1259); function removePathPrefix(path, prefix) { if ((0, _pathHasPrefix).pathHasPrefix(path, prefix)) { const withoutPrefix = path.slice(prefix.length); return withoutPrefix.startsWith("/") ? withoutPrefix : "/".concat(withoutPrefix); } return path; } //# sourceMappingURL=remove-path-prefix.js.map /***/ }), /***/ 6316: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.removeTrailingSlash = removeTrailingSlash; function removeTrailingSlash(route) { return route.replace(/\/$/, "") || "/"; } //# sourceMappingURL=remove-trailing-slash.js.map /***/ }), /***/ 3888: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRouteMatcher = getRouteMatcher; var _utils = __webpack_require__(3794); function getRouteMatcher(param) { let { re , groups } = param; return (pathname)=>{ const routeMatch = re.exec(pathname); if (!routeMatch) { return false; } const decode = (param)=>{ try { return decodeURIComponent(param); } catch (_) { throw new _utils.DecodeError("failed to decode param"); } }; const params = {}; Object.keys(groups).forEach((slugName)=>{ const g = groups[slugName]; const m = routeMatch[g.pos]; if (m !== undefined) { params[slugName] = ~m.indexOf("/") ? m.split("/").map((entry)=>decode(entry)) : g.repeat ? [ decode(m) ] : decode(m); } }); return params; }; } //# sourceMappingURL=route-matcher.js.map /***/ }), /***/ 4095: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getRouteRegex = getRouteRegex; exports.getNamedRouteRegex = getNamedRouteRegex; exports.getNamedMiddlewareRegex = getNamedMiddlewareRegex; var _extends = (__webpack_require__(6495)/* ["default"] */ .Z); var _escapeRegexp = __webpack_require__(489); var _removeTrailingSlash = __webpack_require__(6316); /** * Parses a given parameter from a route to a data structure that can be used * to generate the parametrized route. Examples: * - `[...slug]` -> `{ name: 'slug', repeat: true, optional: true }` * - `[foo]` -> `{ name: 'foo', repeat: false, optional: true }` * - `bar` -> `{ name: 'bar', repeat: false, optional: false }` */ function parseParameter(param) { const optional = param.startsWith("[") && param.endsWith("]"); if (optional) { param = param.slice(1, -1); } const repeat = param.startsWith("..."); if (repeat) { param = param.slice(3); } return { key: param, repeat, optional }; } function getParametrizedRoute(route) { const segments = (0, _removeTrailingSlash).removeTrailingSlash(route).slice(1).split("/"); const groups = {}; let groupIndex = 1; return { parameterizedRoute: segments.map((segment)=>{ if (segment.startsWith("[") && segment.endsWith("]")) { const { key , optional , repeat } = parseParameter(segment.slice(1, -1)); groups[key] = { pos: groupIndex++, repeat, optional }; return repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)"; } else { return "/".concat((0, _escapeRegexp).escapeStringRegexp(segment)); } }).join(""), groups }; } function getRouteRegex(normalizedRoute) { const { parameterizedRoute , groups } = getParametrizedRoute(normalizedRoute); return { re: new RegExp("^".concat(parameterizedRoute, "(?:/)?$")), groups: groups }; } /** * Builds a function to generate a minimal routeKey using only a-z and minimal * number of characters. */ function buildGetSafeRouteKey() { let routeKeyCharCode = 97; let routeKeyCharLength = 1; return ()=>{ let routeKey = ""; for(let i = 0; i < routeKeyCharLength; i++){ routeKey += String.fromCharCode(routeKeyCharCode); routeKeyCharCode++; if (routeKeyCharCode > 122) { routeKeyCharLength++; routeKeyCharCode = 97; } } return routeKey; }; } function getNamedParametrizedRoute(route) { const segments = (0, _removeTrailingSlash).removeTrailingSlash(route).slice(1).split("/"); const getSafeRouteKey = buildGetSafeRouteKey(); const routeKeys = {}; return { namedParameterizedRoute: segments.map((segment)=>{ if (segment.startsWith("[") && segment.endsWith("]")) { const { key , optional , repeat } = parseParameter(segment.slice(1, -1)); // replace any non-word characters since they can break // the named regex let cleanedKey = key.replace(/\W/g, ""); let invalidKey = false; // check if the key is still invalid and fallback to using a known // safe key if (cleanedKey.length === 0 || cleanedKey.length > 30) { invalidKey = true; } if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) { invalidKey = true; } if (invalidKey) { cleanedKey = getSafeRouteKey(); } routeKeys[cleanedKey] = key; return repeat ? optional ? "(?:/(?<".concat(cleanedKey, ">.+?))?") : "/(?<".concat(cleanedKey, ">.+?)") : "/(?<".concat(cleanedKey, ">[^/]+?)"); } else { return "/".concat((0, _escapeRegexp).escapeStringRegexp(segment)); } }).join(""), routeKeys }; } function getNamedRouteRegex(normalizedRoute) { const result = getNamedParametrizedRoute(normalizedRoute); return _extends({}, getRouteRegex(normalizedRoute), { namedRegex: "^".concat(result.namedParameterizedRoute, "(?:/)?$"), routeKeys: result.routeKeys }); } function getNamedMiddlewareRegex(normalizedRoute, options) { const { parameterizedRoute } = getParametrizedRoute(normalizedRoute); const { catchAll =true } = options; if (parameterizedRoute === "/") { let catchAllRegex = catchAll ? ".*" : ""; return { namedRegex: "^/".concat(catchAllRegex, "$") }; } const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute); let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : ""; return { namedRegex: "^".concat(namedParameterizedRoute).concat(catchAllGroupedRegex, "$") }; } //# sourceMappingURL=route-regex.js.map /***/ }), /***/ 3907: /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getSortedRoutes = getSortedRoutes; class UrlNode { insert(urlPath) { this._insert(urlPath.split("/").filter(Boolean), [], false); } smoosh() { return this._smoosh(); } _smoosh() { let prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "/"; const childrenPaths = [ ...this.children.keys() ].sort(); if (this.slugName !== null) { childrenPaths.splice(childrenPaths.indexOf("[]"), 1); } if (this.restSlugName !== null) { childrenPaths.splice(childrenPaths.indexOf("[...]"), 1); } if (this.optionalRestSlugName !== null) { childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1); } const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh("".concat(prefix).concat(c, "/"))).reduce((prev, curr)=>[ ...prev, ...curr ], []); if (this.slugName !== null) { routes.push(...this.children.get("[]")._smoosh("".concat(prefix, "[").concat(this.slugName, "]/"))); } if (!this.placeholder) { const r = prefix === "/" ? "/" : prefix.slice(0, -1); if (this.optionalRestSlugName != null) { throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(r, '" and "').concat(r, "[[...").concat(this.optionalRestSlugName, ']]").')); } routes.unshift(r); } if (this.restSlugName !== null) { routes.push(...this.children.get("[...]")._smoosh("".concat(prefix, "[...").concat(this.restSlugName, "]/"))); } if (this.optionalRestSlugName !== null) { routes.push(...this.children.get("[[...]]")._smoosh("".concat(prefix, "[[...").concat(this.optionalRestSlugName, "]]/"))); } return routes; } _insert(urlPaths, slugNames, isCatchAll) { if (urlPaths.length === 0) { this.placeholder = false; return; } if (isCatchAll) { throw new Error("Catch-all must be the last part of the URL."); } // The next segment in the urlPaths list let nextSegment = urlPaths[0]; // Check if the segment matches `[something]` if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) { // Strip `[` and `]`, leaving only `something` let segmentName = nextSegment.slice(1, -1); let isOptional = false; if (segmentName.startsWith("[") && segmentName.endsWith("]")) { // Strip optional `[` and `]`, leaving only `something` segmentName = segmentName.slice(1, -1); isOptional = true; } if (segmentName.startsWith("...")) { // Strip `...`, leaving only `something` segmentName = segmentName.substring(3); isCatchAll = true; } if (segmentName.startsWith("[") || segmentName.endsWith("]")) { throw new Error("Segment names may not start or end with extra brackets ('".concat(segmentName, "').")); } if (segmentName.startsWith(".")) { throw new Error("Segment names may not start with erroneous periods ('".concat(segmentName, "').")); } function handleSlug(previousSlug, nextSlug) { if (previousSlug !== null) { // If the specific segment already has a slug but the slug is not `something` // This prevents collisions like: // pages/[post]/index.js // pages/[id]/index.js // Because currently multiple dynamic params on the same segment level are not supported if (previousSlug !== nextSlug) { // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment. throw new Error("You cannot use different slug names for the same dynamic path ('".concat(previousSlug, "' !== '").concat(nextSlug, "').")); } } slugNames.forEach((slug)=>{ if (slug === nextSlug) { throw new Error('You cannot have the same slug name "'.concat(nextSlug, '" repeat within a single dynamic path')); } if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) { throw new Error('You cannot have the slug names "'.concat(slug, '" and "').concat(nextSlug, '" differ only by non-word symbols within a single dynamic path')); } }); slugNames.push(nextSlug); } if (isCatchAll) { if (isOptional) { if (this.restSlugName != null) { throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName, ']" and "').concat(urlPaths[0], '" ).')); } handleSlug(this.optionalRestSlugName, segmentName); // slugName is kept as it can only be one particular slugName this.optionalRestSlugName = segmentName; // nextSegment is overwritten to [[...]] so that it can later be sorted specifically nextSegment = "[[...]]"; } else { if (this.optionalRestSlugName != null) { throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName, ']]" and "').concat(urlPaths[0], '").')); } handleSlug(this.restSlugName, segmentName); // slugName is kept as it can only be one particular slugName this.restSlugName = segmentName; // nextSegment is overwritten to [...] so that it can later be sorted specifically nextSegment = "[...]"; } } else { if (isOptional) { throw new Error('Optional route parameters are not yet supported ("'.concat(urlPaths[0], '").')); } handleSlug(this.slugName, segmentName); // slugName is kept as it can only be one particular slugName this.slugName = segmentName; // nextSegment is overwritten to [] so that it can later be sorted specifically nextSegment = "[]"; } } // If this UrlNode doesn't have the nextSegment yet we create a new child UrlNode if (!this.children.has(nextSegment)) { this.children.set(nextSegment, new UrlNode()); } this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll); } constructor(){ this.placeholder = true; this.children = new Map(); this.slugName = null; this.restSlugName = null; this.optionalRestSlugName = null; } } function getSortedRoutes(normalizedPages) { // First the UrlNode is created, and every UrlNode can have only 1 dynamic segment // Eg you can't have pages/[post]/abc.js and pages/[hello]/something-else.js // Only 1 dynamic segment per nesting level // So in the case that is test/integration/dynamic-routing it'll be this: // pages/[post]/comments.js // pages/blog/[post]/comment/[id].js // Both are fine because `pages/[post]` and `pages/blog` are on the same level // So in this case `UrlNode` created here has `this.slugName === 'post'` // And since your PR passed through `slugName` as an array basically it'd including it in too many possibilities // Instead what has to be passed through is the upwards path's dynamic names const root = new UrlNode(); // Here the `root` gets injected multiple paths, and insert will break them up into sublevels normalizedPages.forEach((pagePath)=>root.insert(pagePath)); // Smoosh will then sort those sublevels up to the point where you get the correct route definition priority return root.smoosh(); } //# sourceMappingURL=sorted-routes.js.map /***/ }), /***/ 8027: /***/ (function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setConfig = setConfig; exports["default"] = void 0; let runtimeConfig; var _default = ()=>{ return runtimeConfig; }; exports["default"] = _default; function setConfig(configValue) { runtimeConfig = configValue; } if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { Object.defineProperty(exports.default, "__esModule", { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=runtime-config.js.map /***/ }), /***/ 5188: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = SideEffect; var _interop_require_wildcard = (__webpack_require__(1598)/* ["default"] */ .Z); var _react = _interop_require_wildcard(__webpack_require__(7294)); function SideEffect(props) { const { headManager , reduceComponentsToState } = props; function emitChange() { if (headManager && headManager.mountedInstances) { const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean)); headManager.updateHead(reduceComponentsToState(headElements, props)); } } if (isServer) { var ref; headManager == null ? void 0 : (ref = headManager.mountedInstances) == null ? void 0 : ref.add(props.children); emitChange(); } useClientOnlyLayoutEffect(()=>{ var ref1; headManager == null ? void 0 : (ref1 = headManager.mountedInstances) == null ? void 0 : ref1.add(props.children); return ()=>{ var ref; headManager == null ? void 0 : (ref = headManager.mountedInstances) == null ? void 0 : ref.delete(props.children); }; }); // We need to call `updateHead` method whenever the `SideEffect` is trigger in all // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s // being rendered, we only trigger the method from the last one. // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate` // singleton in the layout effect pass, and actually trigger it in the effect pass. useClientOnlyLayoutEffect(()=>{ if (headManager) { headManager._pendingUpdate = emitChange; } return ()=>{ if (headManager) { headManager._pendingUpdate = emitChange; } }; }); useClientOnlyEffect(()=>{ if (headManager && headManager._pendingUpdate) { headManager._pendingUpdate(); headManager._pendingUpdate = null; } return ()=>{ if (headManager && headManager._pendingUpdate) { headManager._pendingUpdate(); headManager._pendingUpdate = null; } }; }); return null; } const isServer = "object" === "undefined"; const useClientOnlyLayoutEffect = isServer ? ()=>{} : _react.useLayoutEffect; const useClientOnlyEffect = isServer ? ()=>{} : _react.useEffect; //# sourceMappingURL=side-effect.js.map /***/ }), /***/ 3794: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.execOnce = execOnce; exports.getLocationOrigin = getLocationOrigin; exports.getURL = getURL; exports.getDisplayName = getDisplayName; exports.isResSent = isResSent; exports.normalizeRepeatedSlashes = normalizeRepeatedSlashes; exports.loadGetInitialProps = loadGetInitialProps; exports.ST = exports.SP = exports.warnOnce = exports.isAbsoluteUrl = void 0; var _async_to_generator = (__webpack_require__(932)/* ["default"] */ .Z); function execOnce(fn) { let used = false; let result; return function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } if (!used) { used = true; result = fn(...args); } return result; }; } // Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 // Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/; const isAbsoluteUrl = (url)=>ABSOLUTE_URL_REGEX.test(url); exports.isAbsoluteUrl = isAbsoluteUrl; function getLocationOrigin() { const { protocol , hostname , port } = window.location; return "".concat(protocol, "//").concat(hostname).concat(port ? ":" + port : ""); } function getURL() { const { href } = window.location; const origin = getLocationOrigin(); return href.substring(origin.length); } function getDisplayName(Component) { return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown"; } function isResSent(res) { return res.finished || res.headersSent; } function normalizeRepeatedSlashes(url) { const urlParts = url.split("?"); const urlNoQuery = urlParts[0]; return urlNoQuery // first we replace any non-encoded backslashes with forward // then normalize repeated forward slashes .replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? "?".concat(urlParts.slice(1).join("?")) : ""); } function loadGetInitialProps(App, ctx) { return _loadGetInitialProps.apply(this, arguments); } function _loadGetInitialProps() { _loadGetInitialProps = _async_to_generator(function*(App, ctx) { if (false) { var ref; } // when called from _app `ctx` is nested in `ctx` const res = ctx.res || ctx.ctx && ctx.ctx.res; if (!App.getInitialProps) { if (ctx.ctx && ctx.Component) { // @ts-ignore pageProps default return { pageProps: yield loadGetInitialProps(ctx.Component, ctx.ctx) }; } return {}; } const props = yield App.getInitialProps(ctx); if (res && isResSent(res)) { return props; } if (!props) { const message1 = '"'.concat(getDisplayName(App), '.getInitialProps()" should resolve to an object. But found "').concat(props, '" instead.'); throw new Error(message1); } if (false) {} return props; }); return _loadGetInitialProps.apply(this, arguments); } let warnOnce = (_)=>{}; if (false) {} const SP = typeof performance !== "undefined"; exports.SP = SP; const ST = SP && [ "mark", "measure", "getEntriesByName" ].every((method)=>typeof performance[method] === "function"); exports.ST = ST; class DecodeError extends Error { } exports.DecodeError = DecodeError; class NormalizeError extends Error { } exports.NormalizeError = NormalizeError; class PageNotFoundError extends Error { constructor(page){ super(); this.code = "ENOENT"; this.message = "Cannot find module for page: ".concat(page); } } exports.PageNotFoundError = PageNotFoundError; class MissingStaticPage extends Error { constructor(page, message){ super(); this.message = "Failed to load static file for page: ".concat(page, " ").concat(message); } } exports.MissingStaticPage = MissingStaticPage; class MiddlewareNotFoundError extends Error { constructor(){ super(); this.code = "ENOENT"; this.message = "Cannot find the middleware module"; } } exports.MiddlewareNotFoundError = MiddlewareNotFoundError; exports.warnOnce = warnOnce; //# sourceMappingURL=utils.js.map /***/ }), /***/ 8018: /***/ (function(module) { var __dirname = "/"; (function(){"use strict";var n={};!function(){n.d=function(y,T){for(var C in T){if(n.o(T,C)&&!n.o(y,C)){Object.defineProperty(y,C,{enumerable:true,get:T[C]})}}}}();!function(){n.o=function(n,y){return Object.prototype.hasOwnProperty.call(n,y)}}();!function(){n.r=function(n){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(n,"__esModule",{value:true})}}();if(typeof n!=="undefined")n.ab=__dirname+"/";var y={};n.r(y);n.d(y,{getCLS:function(){return E},getFCP:function(){return g},getFID:function(){return F},getINP:function(){return O},getLCP:function(){return _},getTTFB:function(){return G},onCLS:function(){return E},onFCP:function(){return g},onFID:function(){return F},onINP:function(){return O},onLCP:function(){return _},onTTFB:function(){return G}});var T,C,w,P,I,k=-1,o=function(n){addEventListener("pageshow",(function(y){y.persisted&&(k=y.timeStamp,n(y))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},u=function(){var n=c();return n&&n.activationStart||0},f=function(n,y){var T=c(),C="navigate";return k>=0?C="back-forward-cache":T&&(C=document.prerendering||u()>0?"prerender":T.type.replace(/_/g,"-")),{name:n,value:void 0===y?-1:y,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:C}},s=function(n,y,T){try{if(PerformanceObserver.supportedEntryTypes.includes(n)){var C=new PerformanceObserver((function(n){y(n.getEntries())}));return C.observe(Object.assign({type:n,buffered:!0},T||{})),C}}catch(n){}},d=function(n,y){var T=function t(T){"pagehide"!==T.type&&"hidden"!==document.visibilityState||(n(T),y&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0)))};addEventListener("visibilitychange",T,!0),addEventListener("pagehide",T,!0)},l=function(n,y,T,C){var w,P;return function(I){y.value>=0&&(I||C)&&((P=y.value-(w||0))||void 0===w)&&(w=y.value,y.delta=P,y.rating=function(n,y){return n>y[1]?"poor":n>y[0]?"needs-improvement":"good"}(y.value,T),n(y))}},N=-1,v=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},m=function(){d((function(n){var y=n.timeStamp;N=y}),!0)},h=function(){return N<0&&(N=v(),m(),o((function(){setTimeout((function(){N=v(),m()}),0)}))),{get firstHiddenTime(){return N}}},g=function(n,y){y=y||{};var T,C=[1800,3e3],w=h(),P=f("FCP"),c=function(n){n.forEach((function(n){"first-contentful-paint"===n.name&&(k&&k.disconnect(),n.startTime<w.firstHiddenTime&&(P.value=n.startTime-u(),P.entries.push(n),T(!0)))}))},I=window.performance&&window.performance.getEntriesByName&&window.performance.getEntriesByName("first-contentful-paint")[0],k=I?null:s("paint",c);(I||k)&&(T=l(n,P,C,y.reportAllChanges),I&&c([I]),o((function(w){P=f("FCP"),T=l(n,P,C,y.reportAllChanges),requestAnimationFrame((function(){requestAnimationFrame((function(){P.value=performance.now()-w.timeStamp,T(!0)}))}))})))},j=!1,q=-1,E=function(n,y){y=y||{};var T=[.1,.25];j||(g((function(n){q=n.value})),j=!0);var C,i=function(y){q>-1&&n(y)},w=f("CLS",0),P=0,I=[],p=function(n){n.forEach((function(n){if(!n.hadRecentInput){var y=I[0],T=I[I.length-1];P&&n.startTime-T.startTime<1e3&&n.startTime-y.startTime<5e3?(P+=n.value,I.push(n)):(P=n.value,I=[n]),P>w.value&&(w.value=P,w.entries=I,C())}}))},k=s("layout-shift",p);k&&(C=l(i,w,T,y.reportAllChanges),d((function(){p(k.takeRecords()),C(!0)})),o((function(){P=0,q=-1,w=f("CLS",0),C=l(i,w,T,y.reportAllChanges)})))},x={passive:!0,capture:!0},z=new Date,L=function(n,y){T||(T=y,C=n,w=new Date,A(removeEventListener),S())},S=function(){if(C>=0&&C<w-z){var n={entryType:"first-input",name:T.type,target:T.target,cancelable:T.cancelable,startTime:T.timeStamp,processingStart:T.timeStamp+C};P.forEach((function(y){y(n)})),P=[]}},b=function(n){if(n.cancelable){var y=(n.timeStamp>1e12?new Date:performance.now())-n.timeStamp;"pointerdown"==n.type?function(n,y){var t=function(){L(n,y),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,x),removeEventListener("pointercancel",r,x)};addEventListener("pointerup",t,x),addEventListener("pointercancel",r,x)}(y,n):L(y,n)}},A=function(n){["mousedown","keydown","touchstart","pointerdown"].forEach((function(y){return n(y,b,x)}))},F=function(n,y){y=y||{};var w,I=[100,300],k=h(),N=f("FID"),v=function(n){n.startTime<k.firstHiddenTime&&(N.value=n.processingStart-n.startTime,N.entries.push(n),w(!0))},m=function(n){n.forEach(v)},j=s("first-input",m);w=l(n,N,I,y.reportAllChanges),j&&d((function(){m(j.takeRecords()),j.disconnect()}),!0),j&&o((function(){var k;N=f("FID"),w=l(n,N,I,y.reportAllChanges),P=[],C=-1,T=null,A(addEventListener),k=v,P.push(k),S()}))},J=0,K=1/0,Q=0,M=function(n){n.forEach((function(n){n.interactionId&&(K=Math.min(K,n.interactionId),Q=Math.max(Q,n.interactionId),J=Q?(Q-K)/7+1:0)}))},B=function(){return I?J:performance.interactionCount||0},D=function(){"interactionCount"in performance||I||(I=s("event",M,{type:"event",buffered:!0,durationThreshold:0}))},U=0,R=function(){return B()-U},V=[],W={},H=function(n){var y=V[V.length-1],T=W[n.interactionId];if(T||V.length<10||n.duration>y.latency){if(T)T.entries.push(n),T.latency=Math.max(T.latency,n.duration);else{var C={id:n.interactionId,latency:n.duration,entries:[n]};W[C.id]=C,V.push(C)}V.sort((function(n,y){return y.latency-n.latency})),V.splice(10).forEach((function(n){delete W[n.id]}))}},O=function(n,y){y=y||{};var T=[200,500];D();var C,w=f("INP"),a=function(n){n.forEach((function(n){(n.interactionId&&H(n),"first-input"===n.entryType)&&(!V.some((function(y){return y.entries.some((function(y){return n.duration===y.duration&&n.startTime===y.startTime}))}))&&H(n))}));var y,T=(y=Math.min(V.length-1,Math.floor(R()/50)),V[y]);T&&T.latency!==w.value&&(w.value=T.latency,w.entries=T.entries,C())},P=s("event",a,{durationThreshold:y.durationThreshold||40});C=l(n,w,T,y.reportAllChanges),P&&(P.observe({type:"first-input",buffered:!0}),d((function(){a(P.takeRecords()),w.value<0&&R()>0&&(w.value=0,w.entries=[]),C(!0)})),o((function(){V=[],U=B(),w=f("INP"),C=l(n,w,T,y.reportAllChanges)})))},X={},_=function(n,y){y=y||{};var T,C=[2500,4e3],w=h(),P=f("LCP"),c=function(n){var y=n[n.length-1];if(y){var C=y.startTime-u();C<w.firstHiddenTime&&(P.value=C,P.entries=[y],T())}},I=s("largest-contentful-paint",c);if(I){T=l(n,P,C,y.reportAllChanges);var v=function(){X[P.id]||(c(I.takeRecords()),I.disconnect(),X[P.id]=!0,T(!0))};["keydown","click"].forEach((function(n){addEventListener(n,v,{once:!0,capture:!0})})),d(v,!0),o((function(w){P=f("LCP"),T=l(n,P,C,y.reportAllChanges),requestAnimationFrame((function(){requestAnimationFrame((function(){P.value=performance.now()-w.timeStamp,X[P.id]=!0,T(!0)}))}))}))}},Y=function e(n){document.prerendering?addEventListener("prerenderingchange",(function(){return e(n)}),!0):"complete"!==document.readyState?addEventListener("load",(function(){return e(n)}),!0):setTimeout(n,0)},G=function(n,y){y=y||{};var T=[800,1800],C=f("TTFB"),w=l(n,C,T,y.reportAllChanges);Y((function(){var P=c();if(P){if(C.value=Math.max(P.responseStart-u(),0),C.value<0||C.value>performance.now())return;C.entries=[P],w(!0),o((function(){C=f("TTFB",0),(w=l(n,C,T,y.reportAllChanges))(!0)}))}}))};module.exports=y})(); /***/ }), /***/ 676: /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = isError; exports.getProperError = getProperError; var _isPlainObject = __webpack_require__(8887); function isError(err) { return typeof err === "object" && err !== null && "name" in err && "message" in err; } function getProperError(err) { if (isError(err)) { return err; } if (false) {} return new Error((0, _isPlainObject).isPlainObject(err) ? JSON.stringify(err) : err + ""); } //# sourceMappingURL=is-error.js.map /***/ }), /***/ 2431: /***/ (function() { /* (ignored) */ /***/ }) }, /******/ function(__webpack_require__) { // webpackRuntimeModules /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); } /******/ __webpack_require__.O(0, [774], function() { return __webpack_exec__(2870); }); /******/ var __webpack_exports__ = __webpack_require__.O(); /******/ _N_E = __webpack_exports__; /******/ } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/target-es2015/static/chunks/main-04b5934c26266542/output.js
JavaScript
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 179 ], { /***/ 932: /***/ function(__unused_webpack_module, exports) { "use strict"; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg), value = info.value; } catch (error) { reject(error); return; } info.done ? resolve(value) : Promise.resolve(value).then(_next, _throw); } exports.Z = function(fn) { return function() { var self1 = this, args = arguments; return new Promise(function(resolve, reject) { var gen = fn.apply(self1, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(void 0); }); }; }; /***/ }, /***/ 6495: /***/ function(__unused_webpack_module, exports) { "use strict"; function extends_() { return (extends_ = Object.assign || function(target) { for(var i = 1; i < arguments.length; i++){ var source = arguments[i]; for(var key in source)Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; }).apply(this, arguments); } exports.Z = function() { return extends_.apply(this, arguments); }; /***/ }, /***/ 2648: /***/ function(__unused_webpack_module, exports) { "use strict"; exports.Z = function(obj) { return obj && obj.__esModule ? obj : { default: obj }; }; /***/ }, /***/ 1598: /***/ function(__unused_webpack_module, exports) { "use strict"; function _getRequireWildcardCache(nodeInterop1) { if ("function" != typeof WeakMap) return null; var cacheBabelInterop = new WeakMap(), cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop1); } exports.Z = function(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) return obj; if (null === obj || "object" != typeof obj && "function" != typeof obj) return { default: obj }; var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) return cache.get(obj); var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for(var key in obj)if ("default" !== key && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key]; } return newObj.default = obj, cache && cache.set(obj, newObj), newObj; }; /***/ }, /***/ 7273: /***/ function(__unused_webpack_module, exports) { "use strict"; exports.Z = function(source, excluded) { if (null == source) return {}; var key, i, target = {}, sourceKeys = Object.keys(source); for(i = 0; i < sourceKeys.length; i++)key = sourceKeys[i], excluded.indexOf(key) >= 0 || (target[key] = source[key]); return target; }; /***/ }, /***/ 37: /***/ function() { "trimStart" in String.prototype || (String.prototype.trimStart = String.prototype.trimLeft), "trimEnd" in String.prototype || (String.prototype.trimEnd = String.prototype.trimRight), "description" in Symbol.prototype || Object.defineProperty(Symbol.prototype, "description", { configurable: !0, get: function() { var t = /\((.*)\)/.exec(this.toString()); return t ? t[1] : void 0; } }), Array.prototype.flat || (Array.prototype.flat = function(t, r) { return r = this.concat.apply([], this), t > 1 && r.some(Array.isArray) ? r.flat(t - 1) : r; }, Array.prototype.flatMap = function(t, r) { return this.map(t, r).flat(); }), Promise.prototype.finally || (Promise.prototype.finally = function(t) { if ("function" != typeof t) return this.then(t, t); var r = this.constructor || Promise; return this.then(function(o) { return r.resolve(t()).then(function() { return o; }); }, function(o) { return r.resolve(t()).then(function() { throw o; }); }); }), Object.fromEntries || (Object.fromEntries = function(t) { return Array.from(t).reduce(function(t, r) { return t[r[0]] = r[1], t; }, {}); }); /***/ }, /***/ 8684: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.addBasePath = function(path, required) { return _normalizeTrailingSlash.normalizePathTrailingSlash(_addPathPrefix.addPathPrefix(path, "")); }; var _addPathPrefix = __webpack_require__(5391), _normalizeTrailingSlash = __webpack_require__(2392); ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 2725: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.addLocale = void 0, __webpack_require__(2392), exports.addLocale = function(path) { for(var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)args[_key - 1] = arguments[_key]; return path; }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 8748: /***/ function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.detectDomainLocale = void 0, exports.detectDomainLocale = function() { for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 4119: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.hasBasePath = function(path) { return _pathHasPrefix.pathHasPrefix(path, ""); }; var _pathHasPrefix = __webpack_require__(1259); ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 6007: /***/ function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = function() { return { mountedInstances: new Set(), updateHead: (head)=>{ const tags = {}; head.forEach((h)=>{ if ("link" === h.type && h.props["data-optimized-fonts"]) { if (document.querySelector('style[data-href="'.concat(h.props["data-href"], '"]'))) return; h.props.href = h.props["data-href"], h.props["data-href"] = void 0; } const components = tags[h.type] || []; components.push(h), tags[h.type] = components; }); const titleComponent = tags.title ? tags.title[0] : null; let title = ""; if (titleComponent) { const { children } = titleComponent.props; title = "string" == typeof children ? children : Array.isArray(children) ? children.join("") : ""; } title !== document.title && (document.title = title), [ "meta", "base", "link", "style", "script" ].forEach((type)=>{ (function(type, components) { const headEl = document.getElementsByTagName("head")[0], headCountEl = headEl.querySelector("meta[name=next-head-count]"), headCount = Number(headCountEl.content), oldTags = []; for(let i = 0, j = headCountEl.previousElementSibling; i < headCount; i++, j = (null == j ? void 0 : j.previousElementSibling) || null){ var ref; (null == j ? void 0 : null == (ref = j.tagName) ? void 0 : ref.toLowerCase()) === type && oldTags.push(j); } const newTags = components.map(reactElementToDOM).filter((newTag)=>{ for(let k = 0, len = oldTags.length; k < len; k++)if (isEqualNode(oldTags[k], newTag)) return oldTags.splice(k, 1), !1; return !0; }); oldTags.forEach((t)=>{ var ref; return null == (ref = t.parentNode) ? void 0 : ref.removeChild(t); }), newTags.forEach((t)=>headEl.insertBefore(t, headCountEl)), headCountEl.content = (headCount - oldTags.length + newTags.length).toString(); })(type, tags[type] || []); }); } }; }, exports.isEqualNode = isEqualNode, exports.DOMAttributeNames = void 0; const DOMAttributeNames = { acceptCharset: "accept-charset", className: "class", htmlFor: "for", httpEquiv: "http-equiv", noModule: "noModule" }; function reactElementToDOM(param) { let { type, props } = param; const el = document.createElement(type); for(const p in props){ if (!props.hasOwnProperty(p) || "children" === p || "dangerouslySetInnerHTML" === p || void 0 === props[p]) continue; const attr = DOMAttributeNames[p] || p.toLowerCase(); "script" === type && ("async" === attr || "defer" === attr || "noModule" === attr) ? el[attr] = !!props[p] : el.setAttribute(attr, props[p]); } const { children, dangerouslySetInnerHTML } = props; return dangerouslySetInnerHTML ? el.innerHTML = dangerouslySetInnerHTML.__html || "" : children && (el.textContent = "string" == typeof children ? children : Array.isArray(children) ? children.join("") : ""), el; } function isEqualNode(oldTag, newTag) { if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) { const nonce = newTag.getAttribute("nonce"); // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not // be stripped if there is no content security policy response header that includes a nonce. if (nonce && !oldTag.getAttribute("nonce")) { const cloneTag = newTag.cloneNode(!0); return cloneTag.setAttribute("nonce", ""), cloneTag.nonce = nonce, nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag); } } return oldTag.isEqualNode(newTag); } exports.DOMAttributeNames = DOMAttributeNames, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 7339: /***/ function(module, exports, __webpack_require__) { "use strict"; let router, initialData, asPath, pageLoader, appElement, headManager, lastAppProps, lastRenderReject, CachedApp, onPerfEntry, CachedComponent, defaultLocale; Object.defineProperty(exports, "__esModule", { value: !0 }); const _interopRequireWildcard = __webpack_require__(1598)/* ["default"] */ .Z; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.initialize = function() { return _initialize.apply(this, arguments); }, exports.hydrate = function(opts) { return _hydrate.apply(this, arguments); }, exports.emitter = exports.router = exports.version = void 0; var _async_to_generator = __webpack_require__(932)/* ["default"] */ .Z, _extends = __webpack_require__(6495)/* ["default"] */ .Z, _interop_require_default = __webpack_require__(2648)/* ["default"] */ .Z; __webpack_require__(1598)/* ["default"] */ .Z, __webpack_require__(37); var _react = _interop_require_default(__webpack_require__(7294)), _headManagerContext = __webpack_require__(8404), _mitt = _interop_require_default(__webpack_require__(5660)), _routerContext = __webpack_require__(3462), _isDynamic = __webpack_require__(8689), _querystring = __webpack_require__(466), _runtimeConfig = __webpack_require__(8027), _utils = __webpack_require__(3794), _portal = __webpack_require__(2207), _headManager = _interop_require_default(__webpack_require__(6007)), _pageLoader = _interop_require_default(__webpack_require__(5181)), _performanceRelayer = _interop_require_default(__webpack_require__(9302)), _routeAnnouncer = __webpack_require__(8982), _router = __webpack_require__(387), _isError = __webpack_require__(676), _imageConfigContext = __webpack_require__(9977), _removeBasePath = __webpack_require__(9320), _hasBasePath = __webpack_require__(4119); const ReactDOM = __webpack_require__(745); exports.version = "12.3.2-canary.13", exports.router = router, exports.emitter = _mitt.default(); const looseToArray = (input)=>[].slice.call(input); let initialMatchesMiddleware = !1; self.__next_require__ = __webpack_require__; class Container extends _react.default.Component { componentDidCatch(componentErr, info) { this.props.fn(componentErr, info); } componentDidMount() { this.scrollToHash(), router.isSsr && // We don't update for 404 requests as this can modify // the asPath unexpectedly e.g. adding basePath when // it wasn't originally present "/404" !== initialData.page && "/_error" !== initialData.page && (initialData.isFallback || initialData.nextExport && (_isDynamic.isDynamicRoute(router.pathname) || location.search || initialMatchesMiddleware) || initialData.props && initialData.props.__N_SSG && (location.search || initialMatchesMiddleware)) && // update query on mount for exported pages router.replace(router.pathname + "?" + String(_querystring.assign(_querystring.urlQueryToSearchParams(router.query), new URLSearchParams(location.search))), asPath, { // @ts-ignore // WARNING: `_h` is an internal option for handing Next.js // client-side hydration. Your app should _never_ use this property. // It may change at any time without notice. _h: 1, // Fallback pages must trigger the data fetch, so the transition is // not shallow. // Other pages (strictly updating query) happens shallowly, as data // requirements would already be present. shallow: !initialData.isFallback && !initialMatchesMiddleware }).catch((err)=>{ if (!err.cancelled) throw err; }); } componentDidUpdate() { this.scrollToHash(); } scrollToHash() { let { hash } = location; if (!(hash = hash && hash.substring(1))) return; const el = document.getElementById(hash); el && // If we call scrollIntoView() in here without a setTimeout // it won't scroll properly. setTimeout(()=>el.scrollIntoView(), 0); } render() { return this.props.children; } } function _initialize() { return (_initialize = _async_to_generator(function*() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0], initialData = JSON.parse(document.getElementById("__NEXT_DATA__").textContent), window.__NEXT_DATA__ = initialData, defaultLocale = initialData.defaultLocale; const prefix = initialData.assetPrefix || ""; if (// With dynamic assetPrefix it's no longer possible to set assetPrefix at the build time // So, this is how we do it in the client side at runtime __webpack_require__.p = "".concat(prefix, "/_next/") //eslint-disable-line , // Initialize next/config with the environment configuration _runtimeConfig.setConfig({ serverRuntimeConfig: {}, publicRuntimeConfig: initialData.runtimeConfig || {} }), asPath = _utils.getURL(), _hasBasePath.hasBasePath(asPath) && (asPath = _removeBasePath.removeBasePath(asPath)), initialData.scriptLoader) { const { initScriptLoader } = __webpack_require__(699); initScriptLoader(initialData.scriptLoader); } pageLoader = new _pageLoader.default(initialData.buildId, prefix); const register = (param)=>{ let [r, f] = param; return pageLoader.routeLoader.onEntrypoint(r, f); }; return window.__NEXT_P && // Defer page registration for another tick. This will increase the overall // latency in hydrating the page, but reduce the total blocking time. window.__NEXT_P.map((p)=>setTimeout(()=>register(p), 0)), window.__NEXT_P = [], window.__NEXT_P.push = register, (headManager = _headManager.default()).getIsSsr = ()=>router.isSsr, appElement = document.getElementById("__next"), { assetPrefix: prefix }; })).apply(this, arguments); } function renderApp(App, appProps) { return /*#__PURE__*/ _react.default.createElement(App, Object.assign({}, appProps)); } function AppContainer(param) { let { children } = param; return /*#__PURE__*/ _react.default.createElement(Container, { fn: (error)=>renderError({ App: CachedApp, err: error }).catch((err)=>console.error("Error rendering page: ", err)) }, /*#__PURE__*/ _react.default.createElement(_routerContext.RouterContext.Provider, { value: _router.makePublicRouterInstance(router) }, /*#__PURE__*/ _react.default.createElement(_headManagerContext.HeadManagerContext.Provider, { value: headManager }, /*#__PURE__*/ _react.default.createElement(_imageConfigContext.ImageConfigContext.Provider, { value: { deviceSizes: [ 640, 750, 828, 1080, 1200, 1920, 2048, 3840 ], imageSizes: [ 16, 32, 48, 64, 96, 128, 256, 384 ], path: "/_next/image", loader: "default", dangerouslyAllowSVG: !1, unoptimized: !1 } }, children)))); } const wrapApp = (App)=>(wrappedAppProps)=>{ const appProps = _extends({}, wrappedAppProps, { Component: CachedComponent, err: initialData.err, router }); return /*#__PURE__*/ _react.default.createElement(AppContainer, null, renderApp(App, appProps)); }; // This method handles all runtime and debug errors. // 404 and 500 errors are special kind of errors // and they are still handle via the main render method. function renderError(renderErrorProps) { let { App, err } = renderErrorProps; return(// Make sure we log the error to the console, otherwise users can't track down issues. console.error(err), console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"), pageLoader.loadPage("/_error").then((param)=>{ let { page: ErrorComponent, styleSheets } = param; return (null == lastAppProps ? void 0 : lastAppProps.Component) === ErrorComponent ? Promise.resolve().then(()=>/*#__PURE__*/ _interopRequireWildcard(__webpack_require__(9185))).then((errorModule)=>Promise.resolve().then(()=>/*#__PURE__*/ _interopRequireWildcard(__webpack_require__(6029))).then((appModule)=>(renderErrorProps.App = App = appModule.default, errorModule))).then((m)=>({ ErrorComponent: m.default, styleSheets: [] })) : { ErrorComponent, styleSheets }; }).then((param)=>{ var ref; let { ErrorComponent, styleSheets } = param; // In production we do a normal render with the `ErrorComponent` as component. // If we've gotten here upon initial render, we can use the props from the server. // Otherwise, we need to call `getInitialProps` on `App` before mounting. const AppTree = wrapApp(App), appCtx = { Component: ErrorComponent, AppTree, router, ctx: { err, pathname: initialData.page, query: initialData.query, asPath, AppTree } }; return Promise.resolve((null == (ref = renderErrorProps.props) ? void 0 : ref.err) ? renderErrorProps.props : _utils.loadGetInitialProps(App, appCtx)).then((initProps)=>doRender(_extends({}, renderErrorProps, { err, Component: ErrorComponent, styleSheets, props: initProps }))); })); } // Dummy component that we render as a child of Root so that we can // toggle the correct styles before the page is rendered. function Head(param) { let { callback } = param; return(// We use `useLayoutEffect` to guarantee the callback is executed // as soon as React flushes the update. _react.default.useLayoutEffect(()=>callback(), [ callback ]), null); } let reactRoot = null, shouldHydrate = !0; function clearMarks() { [ "beforeRender", "afterHydrate", "afterRender", "routeChange" ].forEach((mark)=>performance.clearMarks(mark)); } function markHydrateComplete() { _utils.ST && (performance.mark("afterHydrate") // mark end of hydration , performance.measure("Next.js-before-hydration", "navigationStart", "beforeRender"), performance.measure("Next.js-hydration", "beforeRender", "afterHydrate"), onPerfEntry && performance.getEntriesByName("Next.js-hydration").forEach(onPerfEntry), clearMarks()); } function markRenderComplete() { if (!_utils.ST) return; performance.mark("afterRender") // mark end of render ; const navStartEntries = performance.getEntriesByName("routeChange", "mark"); navStartEntries.length && (performance.measure("Next.js-route-change-to-render", navStartEntries[0].name, "beforeRender"), performance.measure("Next.js-render", "beforeRender", "afterRender"), onPerfEntry && (performance.getEntriesByName("Next.js-render").forEach(onPerfEntry), performance.getEntriesByName("Next.js-route-change-to-render").forEach(onPerfEntry)), clearMarks(), [ "Next.js-route-change-to-render", "Next.js-render" ].forEach((measure)=>performance.clearMeasures(measure))); } function Root(param) { let { callbacks, children } = param; return(// We use `useLayoutEffect` to guarantee the callbacks are executed // as soon as React flushes the update _react.default.useLayoutEffect(()=>callbacks.forEach((callback)=>callback()), [ callbacks ]), // We should ask to measure the Web Vitals after rendering completes so we // don't cause any hydration delay: _react.default.useEffect(()=>{ _performanceRelayer.default(onPerfEntry); }, []), children); } function doRender(input) { let resolvePromise, { App, Component, props, err } = input, styleSheets = "initial" in input ? void 0 : input.styleSheets; Component = Component || lastAppProps.Component; const appProps = _extends({}, props = props || lastAppProps.props, { Component, err, router }); // lastAppProps has to be set before ReactDom.render to account for ReactDom throwing an error. lastAppProps = appProps; let canceled = !1; const renderPromise = new Promise((resolve, reject)=>{ lastRenderReject && lastRenderReject(), resolvePromise = ()=>{ lastRenderReject = null, resolve(); }, lastRenderReject = ()=>{ canceled = !0, lastRenderReject = null; const error = Error("Cancel rendering route"); error.cancelled = !0, reject(error); }; }); function onRootCommit() { resolvePromise(); } !// This function has a return type to ensure it doesn't start returning a // Promise. It should remain synchronous. function() { if (!styleSheets) return; const currentHrefs = new Set(looseToArray(document.querySelectorAll("style[data-n-href]")).map((tag)=>tag.getAttribute("data-n-href"))), noscript = document.querySelector("noscript[data-n-css]"), nonce = null == noscript ? void 0 : noscript.getAttribute("data-n-css"); styleSheets.forEach((param)=>{ let { href, text } = param; if (!currentHrefs.has(href)) { const styleTag = document.createElement("style"); styleTag.setAttribute("data-n-href", href), styleTag.setAttribute("media", "x"), nonce && styleTag.setAttribute("nonce", nonce), document.head.appendChild(styleTag), styleTag.appendChild(document.createTextNode(text)); } }); }(); const elem = /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(Head, { callback: function() { if (// We can skip this during hydration. Running it wont cause any harm, but // we may as well save the CPU cycles: styleSheets && // Ensure this render was not canceled !canceled) { const desiredHrefs = new Set(styleSheets.map((s)=>s.href)), currentStyleTags = looseToArray(document.querySelectorAll("style[data-n-href]")), currentHrefs = currentStyleTags.map((tag)=>tag.getAttribute("data-n-href")); // Toggle `<style>` tags on or off depending on if they're needed: for(let idx = 0; idx < currentHrefs.length; ++idx)desiredHrefs.has(currentHrefs[idx]) ? currentStyleTags[idx].removeAttribute("media") : currentStyleTags[idx].setAttribute("media", "x"); // Reorder styles into intended order: let referenceNode = document.querySelector("noscript[data-n-css]"); referenceNode && styleSheets.forEach((param)=>{ let { href } = param; const targetTag = document.querySelector('style[data-n-href="'.concat(href, '"]')); targetTag && (referenceNode.parentNode.insertBefore(targetTag, referenceNode.nextSibling), referenceNode = targetTag); }), // Finally, clean up server rendered stylesheets: looseToArray(document.querySelectorAll("link[data-n-p]")).forEach((el)=>{ el.parentNode.removeChild(el); }); } if (input.scroll) { const htmlElement = document.documentElement, existing = htmlElement.style.scrollBehavior; htmlElement.style.scrollBehavior = "auto", window.scrollTo(input.scroll.x, input.scroll.y), htmlElement.style.scrollBehavior = existing; } } }), /*#__PURE__*/ _react.default.createElement(AppContainer, null, renderApp(App, appProps), /*#__PURE__*/ _react.default.createElement(_portal.Portal, { type: "next-route-announcer" }, /*#__PURE__*/ _react.default.createElement(_routeAnnouncer.RouteAnnouncer, null)))); return !// We catch runtime errors using componentDidCatch which will trigger renderError function(domEl, fn) { // mark start of hydrate/render _utils.ST && performance.mark("beforeRender"); const reactEl = fn(shouldHydrate ? markHydrateComplete : markRenderComplete); reactRoot ? (0, _react.default.startTransition)(()=>{ reactRoot.render(reactEl); }) : (// Unlike with createRoot, you don't need a separate root.render() call here reactRoot = ReactDOM.hydrateRoot(domEl, reactEl), // TODO: Remove shouldHydrate variable when React 18 is stable as it can depend on `reactRoot` existing shouldHydrate = !1); }(appElement, (callback)=>/*#__PURE__*/ _react.default.createElement(Root, { callbacks: [ callback, onRootCommit ] }, /*#__PURE__*/ _react.default.createElement(_react.default.StrictMode, null, elem))), renderPromise; } function render(renderingProps) { return _render.apply(this, arguments); } function _render() { return (_render = _async_to_generator(function*(renderingProps) { if (renderingProps.err) { yield renderError(renderingProps); return; } try { yield doRender(renderingProps); } catch (err) { const renderErr = _isError.getProperError(err); // bubble up cancelation errors if (renderErr.cancelled) throw renderErr; yield renderError(_extends({}, renderingProps, { err: renderErr })); } })).apply(this, arguments); } function _hydrate() { return (_hydrate = _async_to_generator(function*(opts) { let initialErr = initialData.err; try { const appEntrypoint = yield pageLoader.routeLoader.whenEntrypoint("/_app"); if ("error" in appEntrypoint) throw appEntrypoint.error; const { component: app, exports: mod } = appEntrypoint; CachedApp = app, mod && mod.reportWebVitals && (onPerfEntry = (param)=>{ let perfStartEntry, { id, name, startTime, value, duration, entryType, entries } = param; // Combines timestamp with random number for unique ID const uniqueID = "".concat(Date.now(), "-").concat(Math.floor(Math.random() * (9e12 - 1)) + 1e12); entries && entries.length && (perfStartEntry = entries[0].startTime); const webVitals = { id: id || uniqueID, name, startTime: startTime || perfStartEntry, value: null == value ? duration : value, label: "mark" === entryType || "measure" === entryType ? "custom" : "web-vital" }; mod.reportWebVitals(webVitals); }); const pageEntrypoint = yield pageLoader.routeLoader.whenEntrypoint(initialData.page); if ("error" in pageEntrypoint) throw pageEntrypoint.error; CachedComponent = pageEntrypoint.component; } catch (error1) { // This catches errors like throwing in the top level of a module initialErr = _isError.getProperError(error1); } window.__NEXT_PRELOADREADY && (yield window.__NEXT_PRELOADREADY(initialData.dynamicIds)), exports.router = router = _router.createRouter(initialData.page, initialData.query, asPath, { initialProps: initialData.props, pageLoader, App: CachedApp, Component: CachedComponent, wrapApp, err: initialErr, isFallback: !!initialData.isFallback, subscription: (info, App, scroll)=>render(Object.assign({}, info, { App, scroll })), locale: initialData.locale, locales: initialData.locales, defaultLocale, domainLocales: initialData.domainLocales, isPreview: initialData.isPreview }), initialMatchesMiddleware = yield router._initialMatchesMiddlewarePromise; const renderCtx = { App: CachedApp, initial: !0, Component: CachedComponent, props: initialData.props, err: initialErr }; (null == opts ? void 0 : opts.beforeRender) && (yield opts.beforeRender()), render(renderCtx); })).apply(this, arguments); } ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 2870: /***/ function(module, exports, __webpack_require__) { "use strict"; var _ = __webpack_require__(7339); window.next = { version: _.version, // router is initialized later so it has to be live-binded get router () { return _.router; }, emitter: _.emitter }, _.initialize({}).then(()=>_.hydrate()).catch(console.error), ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 2392: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.normalizePathTrailingSlash = void 0; var _removeTrailingSlash = __webpack_require__(6316), _parsePath = __webpack_require__(4943); exports.normalizePathTrailingSlash = (path)=>{ if (!path.startsWith("/")) return path; const { pathname, query, hash } = _parsePath.parsePath(path); return "".concat(_removeTrailingSlash.removeTrailingSlash(pathname)).concat(query).concat(hash); }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 5181: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; var _interop_require_default = __webpack_require__(2648)/* ["default"] */ .Z, _addBasePath = __webpack_require__(8684), _router = __webpack_require__(6273), _getAssetPathFromRoute = _interop_require_default(__webpack_require__(3891)), _addLocale = __webpack_require__(2725), _isDynamic = __webpack_require__(8689), _parseRelativeUrl = __webpack_require__(6305), _removeTrailingSlash = __webpack_require__(6316), _routeLoader = __webpack_require__(2669); exports.default = class { getPageList() { return _routeLoader.getClientBuildManifest().then((manifest)=>manifest.sortedPages); } getMiddleware() { return window.__MIDDLEWARE_MATCHERS = [], window.__MIDDLEWARE_MATCHERS; } getDataHref(params) { const { asPath, href, locale } = params, { pathname: hrefPathname, query, search } = _parseRelativeUrl.parseRelativeUrl(href), { pathname: asPathname } = _parseRelativeUrl.parseRelativeUrl(asPath), route = _removeTrailingSlash.removeTrailingSlash(hrefPathname); if ("/" !== route[0]) throw Error('Route name should start with a "/", got "'.concat(route, '"')); return ((path)=>{ const dataRoute = _getAssetPathFromRoute.default(_removeTrailingSlash.removeTrailingSlash(_addLocale.addLocale(path, locale)), ".json"); return _addBasePath.addBasePath("/_next/data/".concat(this.buildId).concat(dataRoute).concat(search), !0); })(params.skipInterpolation ? asPathname : _isDynamic.isDynamicRoute(route) ? _router.interpolateAs(hrefPathname, asPathname, query).result : route); } /** * @param {string} route - the route (file-system path) */ _isSsg(route) { return this.promisedSsgManifest.then((manifest)=>manifest.has(route)); } loadPage(route) { return this.routeLoader.loadRoute(route).then((res)=>{ if ("component" in res) return { page: res.component, mod: res.exports, styleSheets: res.styles.map((o)=>({ href: o.href, text: o.content })) }; throw res.error; }); } prefetch(route) { return this.routeLoader.prefetch(route); } constructor(buildId, assetPrefix){ this.routeLoader = _routeLoader.createRouteLoader(assetPrefix), this.buildId = buildId, this.assetPrefix = assetPrefix, this.promisedSsgManifest = new Promise((resolve)=>{ window.__SSG_MANIFEST ? resolve(window.__SSG_MANIFEST) : window.__SSG_MANIFEST_CB = ()=>{ resolve(window.__SSG_MANIFEST); }; }); } }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 9302: /***/ function(module, exports, __webpack_require__) { "use strict"; let userReportHandler; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; var _webVitals = __webpack_require__(8018); location.href; let isRegistered = !1; function onReport(metric) { userReportHandler && userReportHandler(metric); } exports.default = (onPerfEntry)=>{ // Only register listeners once: // Update function if it changes: userReportHandler = onPerfEntry, isRegistered || (isRegistered = !0, _webVitals.onCLS(onReport), _webVitals.onFID(onReport), _webVitals.onFCP(onReport), _webVitals.onLCP(onReport), _webVitals.onTTFB(onReport), _webVitals.onINP(onReport)); }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 2207: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.Portal = void 0; var _react = __webpack_require__(7294), _reactDom = __webpack_require__(3935); exports.Portal = (param)=>{ let { children, type } = param; const [portalNode, setPortalNode] = _react.useState(null); return _react.useEffect(()=>{ const element = document.createElement(type); return document.body.appendChild(element), setPortalNode(element), ()=>{ document.body.removeChild(element); }; }, [ type ]), portalNode ? /*#__PURE__*/ _reactDom.createPortal(children, portalNode) : null; }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 9320: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.removeBasePath = function(path) { return (path = path.slice(0)).startsWith("/") || (path = "/".concat(path)), path; }, __webpack_require__(4119), ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 5776: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.removeLocale = function(path, locale) { return path; }, __webpack_require__(4943), ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 9311: /***/ function(module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.cancelIdleCallback = exports.requestIdleCallback = void 0, exports.requestIdleCallback = "undefined" != typeof self && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) { let start = Date.now(); return setTimeout(function() { cb({ didTimeout: !1, timeRemaining: function() { return Math.max(0, 50 - (Date.now() - start)); } }); }, 1); }, exports.cancelIdleCallback = "undefined" != typeof self && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) { return clearTimeout(id); }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 8982: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = exports.RouteAnnouncer = void 0; var _react = (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(7294)), _router = __webpack_require__(387); const nextjsRouteAnnouncerStyles = { border: 0, clip: "rect(0 0 0 0)", height: "1px", margin: "-1px", overflow: "hidden", padding: 0, position: "absolute", width: "1px", // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe whiteSpace: "nowrap", wordWrap: "normal" }, RouteAnnouncer = ()=>{ const { asPath } = _router.useRouter(), [routeAnnouncement, setRouteAnnouncement] = _react.default.useState(""), previouslyLoadedPath = _react.default.useRef(asPath); return(// Every time the path changes, announce the new page’s title following this // priority: first the document title (from head), otherwise the first h1, or // if none of these exist, then the pathname from the URL. This methodology is // inspired by Marcy Sutton’s accessible client routing user testing. More // information can be found here: // https://www.gatsbyjs.com/blog/2019-07-11-user-testing-accessible-client-routing/ _react.default.useEffect(()=>{ // If the path hasn't change, we do nothing. if (previouslyLoadedPath.current !== asPath) { if (previouslyLoadedPath.current = asPath, document.title) setRouteAnnouncement(document.title); else { var ref; const pageHeader = document.querySelector("h1"); setRouteAnnouncement((null != (ref = null == pageHeader ? void 0 : pageHeader.innerText) ? ref : null == pageHeader ? void 0 : pageHeader.textContent) || asPath); } } }, [ asPath ]), /*#__PURE__*/ _react.default.createElement("p", { "aria-live": "assertive" // Make the announcement immediately. , id: "__next-route-announcer__", role: "alert", style: nextjsRouteAnnouncerStyles }, routeAnnouncement)); }; exports.RouteAnnouncer = RouteAnnouncer, exports.default = RouteAnnouncer, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 2669: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.markAssetError = markAssetError, exports.isAssetError = function(err) { return err && ASSET_LOAD_ERROR in err; }, exports.getClientBuildManifest = getClientBuildManifest, exports.createRouteLoader = function(assetPrefix) { const entrypoints = new Map(), loadedScripts = new Map(), styleSheets = new Map(), routes = new Map(); function maybeExecuteScript(src) { { var script; let prom = loadedScripts.get(src.toString()); return prom || (document.querySelector('script[src^="'.concat(src, '"]')) ? Promise.resolve() : (loadedScripts.set(src.toString(), prom = new Promise((resolve, reject)=>{ // The order of property assignment here is intentional. // 1. Setup success/failure hooks in case the browser synchronously // executes when `src` is set. (script = document.createElement("script")).onload = resolve, script.onerror = ()=>reject(markAssetError(Error("Failed to load script: ".concat(src)))), // 2. Configure the cross-origin attribute before setting `src` in case the // browser begins to fetch. script.crossOrigin = void 0, // 3. Finally, set the source and inject into the DOM in case the child // must be appended for fetching to start. script.src = src, document.body.appendChild(script); })), prom)); } } function fetchStyleSheet(href) { let prom = styleSheets.get(href); return prom || styleSheets.set(href, prom = fetch(href).then((res)=>{ if (!res.ok) throw Error("Failed to load stylesheet: ".concat(href)); return res.text().then((text)=>({ href: href, content: text })); }).catch((err)=>{ throw markAssetError(err); })), prom; } return { whenEntrypoint: (route)=>withFuture(route, entrypoints), onEntrypoint (route, execute) { (execute ? Promise.resolve().then(()=>execute()).then((exports1)=>({ component: exports1 && exports1.default || exports1, exports: exports1 }), (err)=>({ error: err })) : Promise.resolve(void 0)).then((input)=>{ const old = entrypoints.get(route); old && "resolve" in old ? input && (entrypoints.set(route, input), old.resolve(input)) : (input ? entrypoints.set(route, input) : entrypoints.delete(route), // when this entrypoint has been resolved before // the route is outdated and we want to invalidate // this cache entry routes.delete(route)); }); }, loadRoute (route, prefetch) { return withFuture(route, routes, ()=>{ let devBuildPromiseResolve; return resolvePromiseWithTimeout(getFilesForRoute(assetPrefix, route).then((param)=>{ let { scripts, css } = param; return Promise.all([ entrypoints.has(route) ? [] : Promise.all(scripts.map(maybeExecuteScript)), Promise.all(css.map(fetchStyleSheet)) ]); }).then((res)=>this.whenEntrypoint(route).then((entrypoint)=>({ entrypoint, styles: res[1] }))), 3800, markAssetError(Error("Route did not complete loading: ".concat(route)))).then((param)=>{ let { entrypoint, styles } = param; const res = Object.assign({ styles: styles }, entrypoint); return "error" in entrypoint ? entrypoint : res; }).catch((err)=>{ if (prefetch) // we don't want to cache errors during prefetch throw err; return { error: err }; }).finally(()=>null == devBuildPromiseResolve ? void 0 : devBuildPromiseResolve()); }); }, prefetch (route) { // https://github.com/GoogleChromeLabs/quicklink/blob/453a661fa1fa940e2d2e044452398e38c67a98fb/src/index.mjs#L115-L118 // License: Apache 2.0 let cn; return (cn = navigator.connection) && (cn.saveData || /2g/.test(cn.effectiveType)) ? Promise.resolve() : getFilesForRoute(assetPrefix, route).then((output)=>Promise.all(canPrefetch ? output.scripts.map((script)=>{ var href, as, link; return href = script.toString(), as = "script", new Promise((res, rej)=>{ const selector = '\n link[rel="prefetch"][href^="'.concat(href, '"],\n link[rel="preload"][href^="').concat(href, '"],\n script[src^="').concat(href, '"]'); if (document.querySelector(selector)) return res(); link = document.createElement("link"), as && (link.as = as), link.rel = "prefetch", link.crossOrigin = void 0, link.onload = res, link.onerror = rej, // `href` should always be last: link.href = href, document.head.appendChild(link); }); }) : [])).then(()=>{ _requestIdleCallback.requestIdleCallback(()=>this.loadRoute(route, !0).catch(()=>{})); }).catch(()=>{}); } }; }, (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(3891)); var _trustedTypes = __webpack_require__(4991), _requestIdleCallback = __webpack_require__(9311); function withFuture(key, map, generator) { let resolver, entry = map.get(key); if (entry) return "future" in entry ? entry.future : Promise.resolve(entry); const prom = new Promise((resolve)=>{ resolver = resolve; }); return map.set(key, entry = { resolve: resolver, future: prom }), generator ? generator() // eslint-disable-next-line no-sequences .then((value)=>(resolver(value), value)).catch((err)=>{ throw map.delete(key), err; }) : prom; } const canPrefetch = function(link) { try { return link = document.createElement("link"), !!window.MSInputMethodContext && !!document.documentMode || link.relList.supports("prefetch"); } catch (e) { return !1; } }(), ASSET_LOAD_ERROR = Symbol("ASSET_LOAD_ERROR"); function markAssetError(err) { return Object.defineProperty(err, ASSET_LOAD_ERROR, {}); } // Resolve a promise that times out after given amount of milliseconds. function resolvePromiseWithTimeout(p, ms, err) { return new Promise((resolve, reject)=>{ let cancelled = !1; p.then((r)=>{ // Resolved, cancel the timeout cancelled = !0, resolve(r); }).catch(reject), _requestIdleCallback.requestIdleCallback(()=>setTimeout(()=>{ cancelled || reject(err); }, ms)); }); } function getClientBuildManifest() { return self.__BUILD_MANIFEST ? Promise.resolve(self.__BUILD_MANIFEST) : resolvePromiseWithTimeout(new Promise((resolve)=>{ // Mandatory because this is not concurrent safe: const cb = self.__BUILD_MANIFEST_CB; self.__BUILD_MANIFEST_CB = ()=>{ resolve(self.__BUILD_MANIFEST), cb && cb(); }; }), 3800, markAssetError(Error("Failed to load client build manifest"))); } function getFilesForRoute(assetPrefix, route) { return getClientBuildManifest().then((manifest)=>{ if (!(route in manifest)) throw markAssetError(Error("Failed to lookup route: ".concat(route))); const allFiles = manifest[route].map((entry)=>assetPrefix + "/_next/" + encodeURI(entry)); return { scripts: allFiles.filter((v)=>v.endsWith(".js")).map((v)=>_trustedTypes.__unsafeCreateTrustedScriptURL(v)), css: allFiles.filter((v)=>v.endsWith(".css")) }; }); } ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 387: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "Router", { enumerable: !0, get: function() { return _router.default; } }), Object.defineProperty(exports, "withRouter", { enumerable: !0, get: function() { return _withRouter.default; } }), exports.useRouter = function() { return _react.default.useContext(_routerContext.RouterContext); }, exports.createRouter = function() { for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; return singletonRouter.router = new _router.default(...args), singletonRouter.readyCallbacks.forEach((cb)=>cb()), singletonRouter.readyCallbacks = [], singletonRouter.router; }, exports.makePublicRouterInstance = function(router) { const instance = {}; for (const property of urlPropertyFields){ if ("object" == typeof router[property]) { instance[property] = Object.assign(Array.isArray(router[property]) ? [] : {}, router[property]) // makes sure query is not stateful ; continue; } instance[property] = router[property]; } return(// Events is a static property on the router, the router doesn't have to be initialized to use it instance.events = _router.default.events, coreMethodFields.forEach((field)=>{ instance[field] = function() { for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; return router[field](...args); }; }), instance); }, exports.default = void 0; var _interop_require_default = __webpack_require__(2648)/* ["default"] */ .Z, _react = _interop_require_default(__webpack_require__(7294)), _router = _interop_require_default(__webpack_require__(6273)), _routerContext = __webpack_require__(3462), _isError = _interop_require_default(__webpack_require__(676)), _withRouter = _interop_require_default(__webpack_require__(8981)); const singletonRouter = { router: null, readyCallbacks: [], ready (cb) { if (this.router) return cb(); this.readyCallbacks.push(cb); } }, urlPropertyFields = [ "pathname", "route", "query", "asPath", "components", "isFallback", "basePath", "locale", "locales", "defaultLocale", "isReady", "isPreview", "isLocaleDomain", "domainLocales" ], coreMethodFields = [ "push", "replace", "reload", "back", "prefetch", "beforePopState" ]; function getRouter() { if (!singletonRouter.router) throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'); return singletonRouter.router; } // Events is a static property on the router, the router doesn't have to be initialized to use it Object.defineProperty(singletonRouter, "events", { get: ()=>_router.default.events }), urlPropertyFields.forEach((field)=>{ // Here we need to use Object.defineProperty because we need to return // the property assigned to the actual router // The value might get changed as we change routes and this is the // proper way to access it Object.defineProperty(singletonRouter, field, { get: ()=>getRouter()[field] }); }), coreMethodFields.forEach((field)=>{ singletonRouter[field] = function() { for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; return getRouter()[field](...args); }; }), [ "routeChangeStart", "beforeHistoryChange", "routeChangeComplete", "routeChangeError", "hashChangeStart", "hashChangeComplete" ].forEach((event)=>{ singletonRouter.ready(()=>{ _router.default.events.on(event, function() { for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; const eventField = "on".concat(event.charAt(0).toUpperCase()).concat(event.substring(1)); if (singletonRouter[eventField]) try { singletonRouter[eventField](...args); } catch (err) { console.error("Error when running the Router event: ".concat(eventField)), console.error(_isError.default(err) ? "".concat(err.message, "\n").concat(err.stack) : err + ""); } }); }); }), exports.default = singletonRouter, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 699: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.handleClientScriptLoad = handleClientScriptLoad, exports.initScriptLoader = function(scriptLoaderItems) { scriptLoaderItems.forEach(handleClientScriptLoad), [ ...document.querySelectorAll('[data-nscript="beforeInteractive"]'), ...document.querySelectorAll('[data-nscript="beforePageRender"]') ].forEach((script)=>{ const cacheKey = script.id || script.getAttribute("src"); LoadCache.add(cacheKey); }); }, exports.default = void 0; var _extends = __webpack_require__(6495)/* ["default"] */ .Z, _interop_require_wildcard = __webpack_require__(1598)/* ["default"] */ .Z, _object_without_properties_loose = __webpack_require__(7273)/* ["default"] */ .Z, _react = _interop_require_wildcard(__webpack_require__(7294)), _headManagerContext = __webpack_require__(8404), _headManager = __webpack_require__(6007), _requestIdleCallback = __webpack_require__(9311); const ScriptCache = new Map(), LoadCache = new Set(), ignoreProps = [ "onLoad", "onReady", "dangerouslySetInnerHTML", "children", "onError", "strategy" ], loadScript = (props)=>{ const { src, id, onLoad = ()=>{}, onReady = null, dangerouslySetInnerHTML, children = "", strategy = "afterInteractive", onError } = props, cacheKey = id || src; // Script has already loaded if (cacheKey && LoadCache.has(cacheKey)) return; // Contents of this script are already loading/loaded if (ScriptCache.has(src)) { LoadCache.add(cacheKey), // It is possible that multiple `next/script` components all have same "src", but has different "onLoad" // This is to make sure the same remote script will only load once, but "onLoad" are executed in order ScriptCache.get(src).then(onLoad, onError); return; } /** Execute after the script first loaded */ const afterLoad = ()=>{ onReady && onReady(), // add cacheKey to LoadCache when load successfully LoadCache.add(cacheKey); }, el = document.createElement("script"), loadPromise = new Promise((resolve, reject)=>{ el.addEventListener("load", function(e) { resolve(), onLoad && onLoad.call(this, e), afterLoad(); }), el.addEventListener("error", function(e) { reject(e); }); }).catch(function(e) { onError && onError(e); }); for (const [k, value] of (dangerouslySetInnerHTML ? (el.innerHTML = dangerouslySetInnerHTML.__html || "", afterLoad()) : children ? (el.textContent = "string" == typeof children ? children : Array.isArray(children) ? children.join("") : "", afterLoad()) : src && (el.src = src, // do not add cacheKey into LoadCache for remote script here // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above) ScriptCache.set(src, loadPromise)), Object.entries(props))){ if (void 0 === value || ignoreProps.includes(k)) continue; const attr = _headManager.DOMAttributeNames[k] || k.toLowerCase(); el.setAttribute(attr, value); } "worker" === strategy && el.setAttribute("type", "text/partytown"), el.setAttribute("data-nscript", strategy), document.body.appendChild(el); }; function handleClientScriptLoad(props) { const { strategy = "afterInteractive" } = props; "lazyOnload" === strategy ? window.addEventListener("load", ()=>{ _requestIdleCallback.requestIdleCallback(()=>loadScript(props)); }) : loadScript(props); } function Script(props) { const { id, src = "", onLoad = ()=>{}, onReady = null, strategy = "afterInteractive", onError } = props, restProps = _object_without_properties_loose(props, [ "id", "src", "onLoad", "onReady", "strategy", "onError" ]), { updateScripts, scripts, getIsSsr } = _react.useContext(_headManagerContext.HeadManagerContext), hasOnReadyEffectCalled = _react.useRef(!1); _react.useEffect(()=>{ const cacheKey = id || src; hasOnReadyEffectCalled.current || (onReady && cacheKey && LoadCache.has(cacheKey) && onReady(), hasOnReadyEffectCalled.current = !0); }, [ onReady, id, src ]); const hasLoadScriptEffectCalled = _react.useRef(!1); return _react.useEffect(()=>{ hasLoadScriptEffectCalled.current || ("afterInteractive" === strategy ? loadScript(props) : "lazyOnload" === strategy && ("complete" === document.readyState ? _requestIdleCallback.requestIdleCallback(()=>loadScript(props)) : window.addEventListener("load", ()=>{ _requestIdleCallback.requestIdleCallback(()=>loadScript(props)); })), hasLoadScriptEffectCalled.current = !0); }, [ props, strategy ]), ("beforeInteractive" === strategy || "worker" === strategy) && (updateScripts ? (scripts[strategy] = (scripts[strategy] || []).concat([ _extends({ id, src, onLoad, onReady, onError }, restProps) ]), updateScripts(scripts)) : getIsSsr && getIsSsr() ? // Script has already loaded during SSR LoadCache.add(id || src) : getIsSsr && !getIsSsr() && loadScript(props)), null; } Object.defineProperty(Script, "__nextScript", { value: !0 }), exports.default = Script, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 4991: /***/ function(module, exports) { "use strict"; let policy; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.__unsafeCreateTrustedScriptURL = function(url) { var ref; return (null == (ref = /** * Getter for the Trusted Types Policy. If it is undefined, it is instantiated * here or set to null if Trusted Types is not supported in the browser. */ function() { if (void 0 === policy) { var ref; policy = (null == (ref = window.trustedTypes) ? void 0 : ref.createPolicy("nextjs", { createHTML: (input)=>input, createScript: (input)=>input, createScriptURL: (input)=>input })) || null; } return policy; }()) ? void 0 : ref.createScriptURL(url)) || url; }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 8981: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = function(ComposedComponent) { function WithRouterWrapper(props) { return /*#__PURE__*/ _react.default.createElement(ComposedComponent, Object.assign({ router: _router.useRouter() }, props)); } return WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps, WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps, WithRouterWrapper; }; var _react = (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(7294)), _router = __webpack_require__(387); ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 6029: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; var _Component, _async_to_generator = __webpack_require__(932)/* ["default"] */ .Z, _react = (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(7294)), _utils = __webpack_require__(3794); function appGetInitialProps(_) { return _appGetInitialProps.apply(this, arguments); } function _appGetInitialProps() { return (_appGetInitialProps = /** * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization. * This allows for keeping state between navigation, custom error handling, injecting additional data. */ _async_to_generator(function*(param) { let { Component, ctx } = param; return { pageProps: yield _utils.loadGetInitialProps(Component, ctx) }; })).apply(this, arguments); } class App extends (_Component = _react.default.Component) { render() { const { Component, pageProps } = this.props; return /*#__PURE__*/ _react.default.createElement(Component, Object.assign({}, pageProps)); } } App.origGetInitialProps = appGetInitialProps, App.getInitialProps = appGetInitialProps, exports.default = App; /***/ }, /***/ 9185: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = void 0; var _Component, _interop_require_default = __webpack_require__(2648)/* ["default"] */ .Z, _react = _interop_require_default(__webpack_require__(7294)), _head = _interop_require_default(__webpack_require__(5443)); const statusCodes = { 400: "Bad Request", 404: "This page could not be found", 405: "Method Not Allowed", 500: "Internal Server Error" }; function _getInitialProps(param) { let { res, err } = param; return { statusCode: res && res.statusCode ? res.statusCode : err ? err.statusCode : 404 }; } const styles = { error: { fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif', height: "100vh", textAlign: "center", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center" }, desc: { display: "inline-block", textAlign: "left", lineHeight: "49px", height: "49px", verticalAlign: "middle" }, h1: { display: "inline-block", margin: 0, marginRight: "20px", padding: "0 23px 0 0", fontSize: "24px", fontWeight: 500, verticalAlign: "top", lineHeight: "49px" }, h2: { fontSize: "14px", fontWeight: "normal", lineHeight: "49px", margin: 0, padding: 0 } }; class Error1 extends (_Component = _react.default.Component) { render() { const { statusCode, withDarkMode = !0 } = this.props, title = this.props.title || statusCodes[statusCode] || "An unexpected error has occurred"; return /*#__PURE__*/ _react.default.createElement("div", { style: styles.error }, /*#__PURE__*/ _react.default.createElement(_head.default, null, /*#__PURE__*/ _react.default.createElement("title", null, statusCode ? "".concat(statusCode, ": ").concat(title) : "Application error: a client-side exception has occurred")), /*#__PURE__*/ _react.default.createElement("div", null, /*#__PURE__*/ _react.default.createElement("style", { dangerouslySetInnerHTML: { __html: "\n body { margin: 0; color: #000; background: #fff; }\n .next-error-h1 {\n border-right: 1px solid rgba(0, 0, 0, .3);\n }\n\n ".concat(withDarkMode ? "@media (prefers-color-scheme: dark) {\n body { color: #fff; background: #000; }\n .next-error-h1 {\n border-right: 1px solid rgba(255, 255, 255, .3);\n }\n }" : "") } }), statusCode ? /*#__PURE__*/ _react.default.createElement("h1", { className: "next-error-h1", style: styles.h1 }, statusCode) : null, /*#__PURE__*/ _react.default.createElement("div", { style: styles.desc }, /*#__PURE__*/ _react.default.createElement("h2", { style: styles.h2 }, this.props.title || statusCode ? title : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, "Application error: a client-side exception has occurred (see the browser console for more information)"), ".")))); } } Error1.displayName = "ErrorPage", Error1.getInitialProps = _getInitialProps, Error1.origGetInitialProps = _getInitialProps, exports.default = Error1; /***/ }, /***/ 2227: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.AmpStateContext = void 0, exports.AmpStateContext = (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(7294)).default.createContext({}); /***/ }, /***/ 7363: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isInAmpMode = function() { let { ampFirst = !1, hybrid = !1, hasQuery = !1 } = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; return ampFirst || hybrid && hasQuery; } //# sourceMappingURL=amp-mode.js.map ; /***/ }, /***/ 489: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.escapeStringRegexp = function(str) { return(// see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23 reHasRegExp.test(str) ? str.replace(reReplaceRegExp, "\\$&") : str); } //# sourceMappingURL=escape-regexp.js.map ; // regexp is based on https://github.com/sindresorhus/escape-string-regexp const reHasRegExp = /[|\\{}()[\]^$+*?.-]/, reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g; /***/ }, /***/ 8404: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.HeadManagerContext = void 0, exports.HeadManagerContext = (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(7294)).default.createContext({}); /***/ }, /***/ 5443: /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.defaultHead = defaultHead, exports.default = void 0; var _extends = __webpack_require__(6495)/* ["default"] */ .Z, _interop_require_default = __webpack_require__(2648)/* ["default"] */ .Z, _react = (0, __webpack_require__(1598)/* ["default"] */ .Z)(__webpack_require__(7294)), _sideEffect = _interop_require_default(__webpack_require__(5188)), _ampContext = __webpack_require__(2227), _headManagerContext = __webpack_require__(8404), _ampMode = __webpack_require__(7363); function defaultHead() { let inAmpMode = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; const head = [ /*#__PURE__*/ _react.default.createElement("meta", { charSet: "utf-8" }) ]; return inAmpMode || head.push(/*#__PURE__*/ _react.default.createElement("meta", { name: "viewport", content: "width=device-width" })), head; } function onlyReactElement(list, child) { return(// React children can be "string" or "number" in this case we ignore them for backwards compat "string" == typeof child || "number" == typeof child ? list : child.type === _react.default.Fragment ? list.concat(_react.default.Children.toArray(child.props.children).reduce((fragmentList, fragmentChild)=>"string" == typeof fragmentChild || "number" == typeof fragmentChild ? fragmentList : fragmentList.concat(fragmentChild), [])) : list.concat(child)); } __webpack_require__(3794); const METATYPES = [ "name", "httpEquiv", "charSet", "itemProp" ]; /** * * @param headChildrenElements List of children of <Head> */ function reduceComponents(headChildrenElements, props) { const { inAmpMode } = props; return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(/* returns a function for filtering head child elements which shouldn't be duplicated, like <title/> Also adds support for deduplicated `key` properties */ function() { const keys = new Set(), tags = new Set(), metaTypes = new Set(), metaCategories = {}; return (h)=>{ let isUnique = !0, hasKey = !1; if (h.key && "number" != typeof h.key && h.key.indexOf("$") > 0) { hasKey = !0; const key = h.key.slice(h.key.indexOf("$") + 1); keys.has(key) ? isUnique = !1 : keys.add(key); } // eslint-disable-next-line default-case switch(h.type){ case "title": case "base": tags.has(h.type) ? isUnique = !1 : tags.add(h.type); break; case "meta": for(let i = 0, len = METATYPES.length; i < len; i++){ const metatype = METATYPES[i]; if (h.props.hasOwnProperty(metatype)) { if ("charSet" === metatype) metaTypes.has(metatype) ? isUnique = !1 : metaTypes.add(metatype); else { const category = h.props[metatype], categories = metaCategories[metatype] || new Set(); ("name" !== metatype || !hasKey) && categories.has(category) ? isUnique = !1 : (categories.add(category), metaCategories[metatype] = categories); } } } } return isUnique; }; }()).reverse().map((c, i)=>{ const key = c.key || i; if (!inAmpMode && "link" === c.type && c.props.href && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works. [ "https://fonts.googleapis.com/css", "https://use.typekit.net/" ].some((url)=>c.props.href.startsWith(url))) { const newProps = _extends({}, c.props || {}); return newProps["data-href"] = newProps.href, newProps.href = void 0, // Add this attribute to make it easy to identify optimized tags newProps["data-optimized-fonts"] = !0, /*#__PURE__*/ _react.default.cloneElement(c, newProps); } return /*#__PURE__*/ _react.default.cloneElement(c, { key }); }); } exports.default = /** * This component injects elements to `<head>` of your page. * To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once. */ function(param) { let { children } = param; const ampState = _react.useContext(_ampContext.AmpStateContext), headManager = _react.useContext(_headManagerContext.HeadManagerContext); return /*#__PURE__*/ _react.default.createElement(_sideEffect.default, { reduceComponentsToState: reduceComponents, headManager: headManager, inAmpMode: _ampMode.isInAmpMode(ampState) }, children); }, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 4317: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.normalizeLocalePath = function(pathname, locales) { let detectedLocale; // first item will be empty string from splitting at first char const pathnameParts = pathname.split("/"); return (locales || []).some((locale)=>!!pathnameParts[1] && pathnameParts[1].toLowerCase() === locale.toLowerCase() && (detectedLocale = locale, pathnameParts.splice(1, 1), pathname = pathnameParts.join("/") || "/", !0)), { pathname, detectedLocale }; } //# sourceMappingURL=normalize-locale-path.js.map ; /***/ }, /***/ 9977: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.ImageConfigContext = void 0; var _react = (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(7294)), _imageConfig = __webpack_require__(9309); exports.ImageConfigContext = _react.default.createContext(_imageConfig.imageConfigDefault); /***/ }, /***/ 9309: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.imageConfigDefault = exports.VALID_LOADERS = void 0, exports.VALID_LOADERS = [ "default", "imgix", "cloudinary", "akamai", "custom" ], exports.imageConfigDefault = { deviceSizes: [ 640, 750, 828, 1080, 1200, 1920, 2048, 3840 ], imageSizes: [ 16, 32, 48, 64, 96, 128, 256, 384 ], path: "/_next/image", loader: "default", domains: [], disableStaticImages: !1, minimumCacheTTL: 60, formats: [ "image/webp" ], dangerouslyAllowSVG: !1, contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;", remotePatterns: [], unoptimized: !1 }; /***/ }, /***/ 8887: /***/ function(__unused_webpack_module, exports) { "use strict"; function getObjectClassLabel(value) { return Object.prototype.toString.call(value); } Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getObjectClassLabel = getObjectClassLabel, exports.isPlainObject = function(value) { if ("[object Object]" !== getObjectClassLabel(value)) return !1; const prototype = Object.getPrototypeOf(value); /** * this used to be previously: * * `return prototype === null || prototype === Object.prototype` * * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail. * * It was changed to the current implementation since it's resilient to serialization. */ return null === prototype || prototype.hasOwnProperty("isPrototypeOf"); } //# sourceMappingURL=is-plain-object.js.map ; /***/ }, /***/ 5660: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = function() { const all = Object.create(null); return { on (type, handler) { (all[type] || (all[type] = [])).push(handler); }, off (type, handler) { all[type] && all[type].splice(all[type].indexOf(handler) >>> 0, 1); }, emit (type) { for(var _len = arguments.length, evts = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)evts[_key - 1] = arguments[_key]; (all[type] || []).slice().map((handler)=>{ handler(...evts); }); } }; } //# sourceMappingURL=mitt.js.map ; /***/ }, /***/ 8317: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.denormalizePagePath = function(page) { let _page = _normalizePathSep.normalizePathSep(page); return _page.startsWith("/index/") && !_utils.isDynamicRoute(_page) ? _page.slice(6) : "/index" !== _page ? _page : "/"; } //# sourceMappingURL=denormalize-page-path.js.map ; var _utils = __webpack_require__(418), _normalizePathSep = __webpack_require__(9892); /***/ }, /***/ 9892: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.normalizePathSep = function(path) { return path.replace(/\\/g, "/"); } //# sourceMappingURL=normalize-path-sep.js.map ; /***/ }, /***/ 3462: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.RouterContext = void 0, exports.RouterContext = (0, __webpack_require__(2648)/* ["default"] */ .Z)(__webpack_require__(7294)).default.createContext(null); /***/ }, /***/ 6273: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.matchesMiddleware = matchesMiddleware, exports.isLocalURL = isLocalURL, exports.interpolateAs = interpolateAs, exports.resolveHref = resolveHref, exports.createKey = createKey, exports.default = void 0; var _async_to_generator = __webpack_require__(932)/* ["default"] */ .Z, _extends = __webpack_require__(6495)/* ["default"] */ .Z, _interop_require_default = __webpack_require__(2648)/* ["default"] */ .Z, _interop_require_wildcard = __webpack_require__(1598)/* ["default"] */ .Z, _normalizeTrailingSlash = __webpack_require__(2392), _removeTrailingSlash = __webpack_require__(6316), _routeLoader = __webpack_require__(2669), _script = __webpack_require__(699), _isError = _interop_require_wildcard(__webpack_require__(676)), _denormalizePagePath = __webpack_require__(8317), _normalizeLocalePath = __webpack_require__(4317), _mitt = _interop_require_default(__webpack_require__(5660)), _utils = __webpack_require__(3794), _isDynamic = __webpack_require__(8689), _parseRelativeUrl = __webpack_require__(6305), _querystring = __webpack_require__(466); _interop_require_default(__webpack_require__(2431)); var _routeMatcher = __webpack_require__(3888), _routeRegex = __webpack_require__(4095), _formatUrl = __webpack_require__(4611); __webpack_require__(8748); var _parsePath = __webpack_require__(4943), _addLocale = __webpack_require__(2725), _removeLocale = __webpack_require__(5776), _removeBasePath = __webpack_require__(9320), _addBasePath = __webpack_require__(8684), _hasBasePath = __webpack_require__(4119), _getNextPathnameInfo = __webpack_require__(159), _formatNextPathnameInfo = __webpack_require__(4022), _compareStates = __webpack_require__(610), _isBot = __webpack_require__(9671); function buildCancellationError() { return Object.assign(Error("Route Cancelled"), { cancelled: !0 }); } function matchesMiddleware(options) { return _matchesMiddleware.apply(this, arguments); } function _matchesMiddleware() { return (_matchesMiddleware = _async_to_generator(function*(options) { const matchers = yield Promise.resolve(options.router.pageLoader.getMiddleware()); if (!matchers) return !1; const { pathname: asPathname } = _parsePath.parsePath(options.asPath), cleanedAs = _hasBasePath.hasBasePath(asPathname) ? _removeBasePath.removeBasePath(asPathname) : asPathname, asWithBasePathAndLocale = _addBasePath.addBasePath(_addLocale.addLocale(cleanedAs, options.locale)); // Check only path match on client. Matching "has" should be done on server // where we can access more info such as headers, HttpOnly cookie, etc. return matchers.some((m)=>new RegExp(m.regexp).test(asWithBasePathAndLocale)); })).apply(this, arguments); } function stripOrigin(url) { const origin = _utils.getLocationOrigin(); return url.startsWith(origin) ? url.substring(origin.length) : url; } function omit(object, keys) { const omitted = {}; return Object.keys(object).forEach((key)=>{ keys.includes(key) || (omitted[key] = object[key]); }), omitted; } function isLocalURL(url) { // prevent a hydration mismatch on href for url with anchor refs if (!_utils.isAbsoluteUrl(url)) return !0; try { // absolute urls can be local if they are on the same origin const locationOrigin = _utils.getLocationOrigin(), resolved = new URL(url, locationOrigin); return resolved.origin === locationOrigin && _hasBasePath.hasBasePath(resolved.pathname); } catch (_) { return !1; } } function interpolateAs(route, asPathname, query) { let interpolatedRoute = ""; const dynamicRegex = _routeRegex.getRouteRegex(route), dynamicGroups = dynamicRegex.groups, dynamicMatches = (asPathname !== route ? _routeMatcher.getRouteMatcher(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href // TODO: should this take priority; also need to change in the router. query; interpolatedRoute = route; const params = Object.keys(dynamicGroups); return params.every((param)=>{ let value = dynamicMatches[param] || ""; const { repeat, optional } = dynamicGroups[param]; // support single-level catch-all // TODO: more robust handling for user-error (passing `/`) let replaced = "[".concat(repeat ? "..." : "").concat(param, "]"); return optional && (replaced = "".concat(value ? "" : "/", "[").concat(replaced, "]")), repeat && !Array.isArray(value) && (value = [ value ]), (optional || param in dynamicMatches) && // Interpolate group into data URL if present (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(// into the URL and we expect URL encoded segments // when parsing dynamic route params (segment)=>encodeURIComponent(segment)).join("/") : encodeURIComponent(value)) || "/"); }) || (interpolatedRoute = "" // did not satisfy all requirements ), { params, result: interpolatedRoute }; } function resolveHref(router, href, resolveAs) { let base; let urlAsString = "string" == typeof href ? href : _formatUrl.formatWithValidation(href); // repeated slashes and backslashes in the URL are considered // invalid and will never match a Next.js page/file const urlProtoMatch = urlAsString.match(/^[a-zA-Z]{1,}:\/\//), urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString; if ((urlAsStringNoProto.split("?")[0] || "").match(/(\/\/|\\)/)) { console.error("Invalid href passed to next/router: ".concat(urlAsString, ", repeated forward-slashes (//) or backslashes \\ are not valid in the href")); const normalizedUrl = _utils.normalizeRepeatedSlashes(urlAsStringNoProto); urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl; } // Return because it cannot be routed by the Next.js router if (!isLocalURL(urlAsString)) return resolveAs ? [ urlAsString ] : urlAsString; try { base = new URL(urlAsString.startsWith("#") ? router.asPath : router.pathname, "http://n"); } catch (_) { // fallback to / for invalid asPath values e.g. // base = new URL("/", "http://n"); } try { const finalUrl = new URL(urlAsString, base); finalUrl.pathname = _normalizeTrailingSlash.normalizePathTrailingSlash(finalUrl.pathname); let interpolatedAs = ""; if (_isDynamic.isDynamicRoute(finalUrl.pathname) && finalUrl.searchParams && resolveAs) { const query = _querystring.searchParamsToUrlQuery(finalUrl.searchParams), { result, params } = interpolateAs(finalUrl.pathname, finalUrl.pathname, query); result && (interpolatedAs = _formatUrl.formatWithValidation({ pathname: result, hash: finalUrl.hash, query: omit(query, params) })); } // if the origin didn't change, it means we received a relative href const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href; return resolveAs ? [ resolvedHref, interpolatedAs || resolvedHref ] : resolvedHref; } catch (_1) { return resolveAs ? [ urlAsString ] : urlAsString; } } function prepareUrlAs(router, url, as) { // If url and as provided as an object representation, // we'll format them into the string version here. let [resolvedHref, resolvedAs] = resolveHref(router, url, !0); const origin = _utils.getLocationOrigin(), hrefHadOrigin = resolvedHref.startsWith(origin), asHadOrigin = resolvedAs && resolvedAs.startsWith(origin); resolvedHref = stripOrigin(resolvedHref), resolvedAs = resolvedAs ? stripOrigin(resolvedAs) : resolvedAs; const preparedUrl = hrefHadOrigin ? resolvedHref : _addBasePath.addBasePath(resolvedHref), preparedAs = as ? stripOrigin(resolveHref(router, as)) : resolvedAs || resolvedHref; return { url: preparedUrl, as: asHadOrigin ? preparedAs : _addBasePath.addBasePath(preparedAs) }; } function resolveDynamicRoute(pathname, pages) { const cleanPathname = _removeTrailingSlash.removeTrailingSlash(_denormalizePagePath.denormalizePagePath(pathname)); return "/404" === cleanPathname || "/_error" === cleanPathname ? pathname : (pages.includes(cleanPathname) || // eslint-disable-next-line array-callback-return pages.some((page)=>{ if (_isDynamic.isDynamicRoute(page) && _routeRegex.getRouteRegex(page).re.test(cleanPathname)) return pathname = page, !0; }), _removeTrailingSlash.removeTrailingSlash(pathname)); } const SSG_DATA_NOT_FOUND = Symbol("SSG_DATA_NOT_FOUND"), backgroundCache = {}; function handleSmoothScroll(fn) { const htmlElement = document.documentElement, existing = htmlElement.style.scrollBehavior; htmlElement.style.scrollBehavior = "auto", fn(), htmlElement.style.scrollBehavior = existing; } function tryToParseAsJSON(text) { try { return JSON.parse(text); } catch (error) { return null; } } function fetchNextData(param) { var ref1; let { dataHref, inflightCache, isPrefetch, hasMiddleware, isServerRender, parseJSON, persistCache, isBackground, unstable_skipClientCache } = param; const { href: cacheKey } = new URL(dataHref, window.location.href), getData = (params)=>(function fetchRetry(url, attempts, options) { return fetch(url, { // Cookies are required to be present for Next.js' SSG "Preview Mode". // Cookies may also be required for `getServerSideProps`. // // > `fetch` won’t send cookies, unless you set the credentials init // > option. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch // // > For maximum browser compatibility when it comes to sending & // > receiving cookies, always supply the `credentials: 'same-origin'` // > option instead of relying on the default. // https://github.com/github/fetch#caveats credentials: "same-origin", method: options.method || "GET", headers: Object.assign({}, options.headers, { "x-nextjs-data": "1" }) }).then((response)=>!response.ok && attempts > 1 && response.status >= 500 ? fetchRetry(url, attempts - 1, options) : response); })(dataHref, isServerRender ? 3 : 1, { headers: isPrefetch ? { purpose: "prefetch" } : {}, method: null != (ref1 = null == params ? void 0 : params.method) ? ref1 : "GET" }).then((response)=>response.ok && (null == params ? void 0 : params.method) === "HEAD" ? { dataHref, response, text: "", json: {}, cacheKey } : response.text().then((text)=>{ if (!response.ok) { /** * When the data response is a redirect because of a middleware * we do not consider it an error. The headers must bring the * mapped location. * TODO: Change the status code in the handler. */ if (hasMiddleware && [ 301, 302, 307, 308 ].includes(response.status)) return { dataHref, response, text, json: {}, cacheKey }; if (!hasMiddleware && 404 === response.status) { var ref; if (null == (ref = tryToParseAsJSON(text)) ? void 0 : ref.notFound) return { dataHref, json: { notFound: SSG_DATA_NOT_FOUND }, response, text, cacheKey }; } const error = Error("Failed to load static props"); throw isServerRender || _routeLoader.markAssetError(error), error; } return { dataHref, json: parseJSON ? tryToParseAsJSON(text) : null, response, text, cacheKey }; })).then((data)=>(persistCache && "no-cache" !== data.response.headers.get("x-middleware-cache") || delete inflightCache[cacheKey], data)).catch((err)=>{ throw delete inflightCache[cacheKey], err; }); return(// when skipping client cache we wait to update // inflight cache until successful data response // this allows racing click event with fetching newer data // without blocking navigation when stale data is available unstable_skipClientCache && persistCache ? getData({}).then((data)=>(inflightCache[cacheKey] = Promise.resolve(data), data)) : void 0 !== inflightCache[cacheKey] ? inflightCache[cacheKey] : inflightCache[cacheKey] = getData(isBackground ? { method: "HEAD" } : {})); } function createKey() { return Math.random().toString(36).slice(2, 10); } function handleHardNavigation(param) { let { url, router } = param; // ensure we don't trigger a hard navigation to the same // URL as this can end up with an infinite refresh if (url === _addBasePath.addBasePath(_addLocale.addLocale(router.asPath, router.locale))) throw Error("Invariant: attempted to hard navigate to the same URL ".concat(url, " ").concat(location.href)); window.location.href = url; } const getCancelledHandler = (param)=>{ let { route, router } = param, cancelled = !1; const cancel = router.clc = ()=>{ cancelled = !0; }; return ()=>{ if (cancelled) { const error = Error('Abort fetching component for route: "'.concat(route, '"')); throw error.cancelled = !0, error; } cancel === router.clc && (router.clc = null); }; }; class Router { reload() { window.location.reload(); } /** * Go back in history */ back() { window.history.back(); } /** * Performs a `pushState` with arguments * @param url of the route * @param as masks `url` for the browser * @param options object you can define `shallow` and other options */ push(url, as) { let options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; return { url, as } = prepareUrlAs(this, url, as), this.change("pushState", url, as, options); } /** * Performs a `replaceState` with arguments * @param url of the route * @param as masks `url` for the browser * @param options object you can define `shallow` and other options */ replace(url, as) { let options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; return { url, as } = prepareUrlAs(this, url, as), this.change("replaceState", url, as, options); } change(method, url, as, options, forcedScroll) { var _this = this; return _async_to_generator(function*() { let pages, rewrites; if (!isLocalURL(url)) return handleHardNavigation({ url, router: _this }), !1; // WARNING: `_h` is an internal option for handing Next.js client-side // hydration. Your app should _never_ use this property. It may change at // any time without notice. const isQueryUpdating = options._h, shouldResolveHref = isQueryUpdating || options._shouldResolveHref || _parsePath.parsePath(url).pathname === _parsePath.parsePath(as).pathname, nextState = _extends({}, _this.state), readyStateChange = !0 !== _this.isReady; _this.isReady = !0; const isSsr = _this.isSsr; // if a route transition is already in progress before // the query updating is triggered ignore query updating if (isQueryUpdating || (_this.isSsr = !1), isQueryUpdating && _this.clc) return !1; const prevLocale = nextState.locale; _utils.ST && performance.mark("routeChange"); const { shallow = !1, scroll = !0 } = options, routeProps = { shallow }; _this._inFlightRoute && _this.clc && (isSsr || Router.events.emit("routeChangeError", buildCancellationError(), _this._inFlightRoute, routeProps), _this.clc(), _this.clc = null), as = _addBasePath.addBasePath(_addLocale.addLocale(_hasBasePath.hasBasePath(as) ? _removeBasePath.removeBasePath(as) : as, options.locale, _this.defaultLocale)); const cleanedAs = _removeLocale.removeLocale(_hasBasePath.hasBasePath(as) ? _removeBasePath.removeBasePath(as) : as, nextState.locale); _this._inFlightRoute = as; const localeChange = prevLocale !== nextState.locale; // If the url change is only related to a hash change // We should not proceed. We should only change the state. if (!isQueryUpdating && _this.onlyAHashChange(cleanedAs) && !localeChange) { nextState.asPath = cleanedAs, Router.events.emit("hashChangeStart", as, routeProps), // TODO: do we need the resolved href when only a hash change? _this.changeState(method, url, as, _extends({}, options, { scroll: !1 })), scroll && _this.scrollToHash(cleanedAs); try { yield _this.set(nextState, _this.components[nextState.route], null); } catch (err) { throw _isError.default(err) && err.cancelled && Router.events.emit("routeChangeError", err, cleanedAs, routeProps), err; } return Router.events.emit("hashChangeComplete", as, routeProps), !0; } let parsed = _parseRelativeUrl.parseRelativeUrl(url), { pathname, query } = parsed; try { [pages, { __rewrites: rewrites }] = yield Promise.all([ _this.pageLoader.getPageList(), _routeLoader.getClientBuildManifest(), _this.pageLoader.getMiddleware() ]); } catch (err1) { return(// If we fail to resolve the page list or client-build manifest, we must // do a server-side transition: handleHardNavigation({ url: as, router: _this }), !1); } _this.urlIsNew(cleanedAs) || localeChange || (method = "replaceState"); // we need to resolve the as value using rewrites for dynamic SSG // pages to allow building the data URL correctly let resolvedAs = as; // url and as should always be prefixed with basePath by this // point by either next/link or router.push/replace so strip the // basePath from the pathname to match the pages dir 1-to-1 pathname = pathname ? _removeTrailingSlash.removeTrailingSlash(_removeBasePath.removeBasePath(pathname)) : pathname; // we don't attempt resolve asPath when we need to execute // middleware as the resolving will occur server-side const isMiddlewareMatch = yield matchesMiddleware({ asPath: as, locale: nextState.locale, router: _this }); if (options.shallow && isMiddlewareMatch && (pathname = _this.pathname), shouldResolveHref && "/_error" !== pathname && (options._shouldResolveHref = !0, parsed.pathname = resolveDynamicRoute(pathname, pages), parsed.pathname === pathname || (pathname = parsed.pathname, parsed.pathname = _addBasePath.addBasePath(pathname), isMiddlewareMatch || (url = _formatUrl.formatWithValidation(parsed)))), !isLocalURL(as)) return handleHardNavigation({ url: as, router: _this }), !1; resolvedAs = _removeLocale.removeLocale(_removeBasePath.removeBasePath(resolvedAs), nextState.locale); let route = _removeTrailingSlash.removeTrailingSlash(pathname), routeMatch = !1; if (_isDynamic.isDynamicRoute(route)) { const parsedAs1 = _parseRelativeUrl.parseRelativeUrl(resolvedAs), asPathname = parsedAs1.pathname, routeRegex = _routeRegex.getRouteRegex(route); routeMatch = _routeMatcher.getRouteMatcher(routeRegex)(asPathname); const shouldInterpolate = route === asPathname, interpolatedAs = shouldInterpolate ? interpolateAs(route, asPathname, query) : {}; if (routeMatch && (!shouldInterpolate || interpolatedAs.result)) shouldInterpolate ? as = _formatUrl.formatWithValidation(Object.assign({}, parsedAs1, { pathname: interpolatedAs.result, query: omit(query, interpolatedAs.params) })) : // Merge params into `query`, overwriting any specified in search Object.assign(query, routeMatch); else { const missingParams = Object.keys(routeRegex.groups).filter((param)=>!query[param]); if (missingParams.length > 0 && !isMiddlewareMatch) throw Error((shouldInterpolate ? "The provided `href` (".concat(url, ") value is missing query values (").concat(missingParams.join(", "), ") to be interpolated properly. ") : "The provided `as` value (".concat(asPathname, ") is incompatible with the `href` value (").concat(route, "). ")) + "Read more: https://nextjs.org/docs/messages/".concat(shouldInterpolate ? "href-interpolation-failed" : "incompatible-href-as")); } } isQueryUpdating || Router.events.emit("routeChangeStart", as, routeProps); try { var ref2, ref3, _route, _scroll; let routeInfo = yield _this.getRouteInfo({ route, pathname, query, as, resolvedAs, routeProps, locale: nextState.locale, isPreview: nextState.isPreview, hasMiddleware: isMiddlewareMatch, unstable_skipClientCache: options.unstable_skipClientCache, isQueryUpdating: isQueryUpdating && !_this.isFallback }); if ("route" in routeInfo && isMiddlewareMatch) { route = pathname = routeInfo.route || route, routeProps.shallow || (query = Object.assign({}, routeInfo.query || {}, query)); const cleanedParsedPathname = _hasBasePath.hasBasePath(parsed.pathname) ? _removeBasePath.removeBasePath(parsed.pathname) : parsed.pathname; if (routeMatch && pathname !== cleanedParsedPathname && Object.keys(routeMatch).forEach((key)=>{ routeMatch && query[key] === routeMatch[key] && delete query[key]; }), _isDynamic.isDynamicRoute(pathname)) { let rewriteAs = !routeProps.shallow && routeInfo.resolvedAs ? routeInfo.resolvedAs : _addBasePath.addBasePath(_addLocale.addLocale(new URL(as, location.href).pathname, nextState.locale), !0); _hasBasePath.hasBasePath(rewriteAs) && (rewriteAs = _removeBasePath.removeBasePath(rewriteAs)); const routeRegex1 = _routeRegex.getRouteRegex(pathname), curRouteMatch = _routeMatcher.getRouteMatcher(routeRegex1)(rewriteAs); curRouteMatch && Object.assign(query, curRouteMatch); } } // If the routeInfo brings a redirect we simply apply it. if ("type" in routeInfo) { if ("redirect-internal" === routeInfo.type) return _this.change(method, routeInfo.newUrl, routeInfo.newAs, options); return handleHardNavigation({ url: routeInfo.destination, router: _this }), new Promise(()=>{}); } let { error, props, __N_SSG, __N_SSP } = routeInfo; const component = routeInfo.Component; // handle redirect on client-transition if (component && component.unstable_scriptLoader && [].concat(component.unstable_scriptLoader()).forEach((script)=>{ _script.handleClientScriptLoad(script.props); }), (__N_SSG || __N_SSP) && props) { if (props.pageProps && props.pageProps.__N_REDIRECT) { // Use the destination from redirect without adding locale options.locale = !1; const destination = props.pageProps.__N_REDIRECT; // check if destination is internal (resolves to a page) and attempt // client-navigation if it is falling back to hard navigation if // it's not if (destination.startsWith("/") && !1 !== props.pageProps.__N_REDIRECT_BASE_PATH) { const parsedHref = _parseRelativeUrl.parseRelativeUrl(destination); parsedHref.pathname = resolveDynamicRoute(parsedHref.pathname, pages); const { url: newUrl, as: newAs } = prepareUrlAs(_this, destination, destination); return _this.change(method, newUrl, newAs, options); } return handleHardNavigation({ url: destination, router: _this }), new Promise(()=>{}); } // handle SSG data 404 if (nextState.isPreview = !!props.__N_PREVIEW, props.notFound === SSG_DATA_NOT_FOUND) { let notFoundRoute; try { yield _this.fetchComponent("/404"), notFoundRoute = "/404"; } catch (_) { notFoundRoute = "/_error"; } if (routeInfo = yield _this.getRouteInfo({ route: notFoundRoute, pathname: notFoundRoute, query, as, resolvedAs, routeProps: { shallow: !1 }, locale: nextState.locale, isPreview: nextState.isPreview }), "type" in routeInfo) throw Error("Unexpected middleware effect on /404"); } } Router.events.emit("beforeHistoryChange", as, routeProps), _this.changeState(method, url, as, options), isQueryUpdating && "/_error" === pathname && (null == (ref2 = self.__NEXT_DATA__.props) ? void 0 : null == (ref3 = ref2.pageProps) ? void 0 : ref3.statusCode) === 500 && (null == props ? void 0 : props.pageProps) && // ensure statusCode is still correct for static 500 page // when updating query information (props.pageProps.statusCode = 500); // shallow routing is only allowed for same page URL changes. const isValidShallowRoute = options.shallow && nextState.route === (null != (_route = routeInfo.route) ? _route : route), shouldScroll = null != (_scroll = options.scroll) ? _scroll : !options._h && !isValidShallowRoute, upcomingRouterState = _extends({}, nextState, { route, pathname, query, asPath: cleanedAs, isFallback: !1 }), upcomingScrollState = null != forcedScroll ? forcedScroll : shouldScroll ? { x: 0, y: 0 } : null; if (!(options._h && !upcomingScrollState && !readyStateChange && !localeChange && _compareStates.compareRouterStates(upcomingRouterState, _this.state))) { if (yield _this.set(upcomingRouterState, routeInfo, upcomingScrollState).catch((e)=>{ if (e.cancelled) error = error || e; else throw e; }), error) throw isQueryUpdating || Router.events.emit("routeChangeError", error, cleanedAs, routeProps), error; isQueryUpdating || Router.events.emit("routeChangeComplete", as, routeProps), shouldScroll && /#.+$/.test(as) && _this.scrollToHash(as); } return !0; } catch (err11) { if (_isError.default(err11) && err11.cancelled) return !1; throw err11; } })(); } changeState(method, url, as) { let options = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; ("pushState" !== method || _utils.getURL() !== as) && (this._shallow = options.shallow, window.history[method]({ url, as, options, __N: !0, key: this._key = "pushState" !== method ? this._key : createKey() }, // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState "", as)); } handleRouteInfoError(err, pathname, query, as, routeProps, loadErrorFail) { var _this = this; return _async_to_generator(function*() { if (console.error(err), err.cancelled) // bubble up cancellation errors throw err; if (_routeLoader.isAssetError(err) || loadErrorFail) // Changing the URL doesn't block executing the current code path. // So let's throw a cancellation error stop the routing logic. throw Router.events.emit("routeChangeError", err, as, routeProps), // If we can't load the page it could be one of following reasons // 1. Page doesn't exists // 2. Page does exist in a different zone // 3. Internal error while loading the page // So, doing a hard reload is the proper way to deal with this. handleHardNavigation({ url: as, router: _this }), buildCancellationError(); try { let props; const { page: Component, styleSheets } = yield _this.fetchComponent("/_error"), routeInfo = { props, Component, styleSheets, err, error: err }; if (!routeInfo.props) try { routeInfo.props = yield _this.getInitialProps(Component, { err, pathname, query }); } catch (gipErr) { console.error("Error in error page `getInitialProps`: ", gipErr), routeInfo.props = {}; } return routeInfo; } catch (routeInfoErr) { return _this.handleRouteInfoError(_isError.default(routeInfoErr) ? routeInfoErr : Error(routeInfoErr + ""), pathname, query, as, routeProps, !0); } })(); } getRouteInfo(param) { let { route: requestedRoute, pathname, query, as, resolvedAs, routeProps, locale, hasMiddleware, isPreview, unstable_skipClientCache, isQueryUpdating } = param; var _this = this; return _async_to_generator(function*() { /** * This `route` binding can change if there's a rewrite * so we keep a reference to the original requested route * so we can store the cache for it and avoid re-requesting every time * for shallow routing purposes. */ let route = requestedRoute; try { var ref, ref4, ref5, options; const handleCancelled = getCancelledHandler({ route, router: _this }); let existingInfo = _this.components[route]; if (routeProps.shallow && existingInfo && _this.route === route) return existingInfo; hasMiddleware && (existingInfo = void 0); let cachedRouteInfo = !existingInfo || "initial" in existingInfo ? void 0 : existingInfo; const fetchNextDataParams = { dataHref: _this.pageLoader.getDataHref({ href: _formatUrl.formatWithValidation({ pathname, query }), skipInterpolation: !0, asPath: resolvedAs, locale }), hasMiddleware: !0, isServerRender: _this.isSsr, parseJSON: !0, inflightCache: _this.sdc, persistCache: !isPreview, isPrefetch: !1, unstable_skipClientCache, isBackground: isQueryUpdating }, data = yield (options = { fetchData: ()=>fetchNextData(fetchNextDataParams), asPath: resolvedAs, locale: locale, router: _this }, matchesMiddleware(options).then((matches)=>matches && options.fetchData ? options.fetchData().then((data)=>(function(source, response, options) { const nextConfig = { basePath: options.router.basePath, i18n: { locales: options.router.locales }, trailingSlash: !1 }, rewriteHeader = response.headers.get("x-nextjs-rewrite"); let rewriteTarget = rewriteHeader || response.headers.get("x-nextjs-matched-path"); const matchedPath = response.headers.get("x-matched-path"); if (!matchedPath || rewriteTarget || matchedPath.includes("__next_data_catchall") || matchedPath.includes("/_error") || matchedPath.includes("/404") || // leverage x-matched-path to detect next.config.js rewrites (rewriteTarget = matchedPath), rewriteTarget) { if (rewriteTarget.startsWith("/")) { const parsedRewriteTarget = _parseRelativeUrl.parseRelativeUrl(rewriteTarget), pathnameInfo = _getNextPathnameInfo.getNextPathnameInfo(parsedRewriteTarget.pathname, { nextConfig, parseData: !0 }); let fsPathname = _removeTrailingSlash.removeTrailingSlash(pathnameInfo.pathname); return Promise.all([ options.router.pageLoader.getPageList(), _routeLoader.getClientBuildManifest() ]).then((param)=>{ let [pages, { __rewrites: rewrites }] = param, as = _addLocale.addLocale(pathnameInfo.pathname, pathnameInfo.locale); if (_isDynamic.isDynamicRoute(as) || !rewriteHeader && pages.includes(_normalizeLocalePath.normalizeLocalePath(_removeBasePath.removeBasePath(as), options.router.locales).pathname)) { const parsedSource = _getNextPathnameInfo.getNextPathnameInfo(_parseRelativeUrl.parseRelativeUrl(source).pathname, { parseData: !0 }); parsedRewriteTarget.pathname = as = _addBasePath.addBasePath(parsedSource.pathname); } if (!pages.includes(fsPathname)) { const resolvedPathname = resolveDynamicRoute(fsPathname, pages); resolvedPathname !== fsPathname && (fsPathname = resolvedPathname); } const resolvedHref = pages.includes(fsPathname) ? fsPathname : resolveDynamicRoute(_normalizeLocalePath.normalizeLocalePath(_removeBasePath.removeBasePath(parsedRewriteTarget.pathname), options.router.locales).pathname, pages); if (_isDynamic.isDynamicRoute(resolvedHref)) { const matches = _routeMatcher.getRouteMatcher(_routeRegex.getRouteRegex(resolvedHref))(as); Object.assign(parsedRewriteTarget.query, matches || {}); } return { type: "rewrite", parsedAs: parsedRewriteTarget, resolvedHref }; }); } const src = _parsePath.parsePath(source), pathname = _formatNextPathnameInfo.formatNextPathnameInfo(_extends({}, _getNextPathnameInfo.getNextPathnameInfo(src.pathname, { nextConfig, parseData: !0 }), { defaultLocale: options.router.defaultLocale, buildId: "" })); return Promise.resolve({ type: "redirect-external", destination: "".concat(pathname).concat(src.query).concat(src.hash) }); } const redirectTarget = response.headers.get("x-nextjs-redirect"); if (redirectTarget) { if (redirectTarget.startsWith("/")) { const src1 = _parsePath.parsePath(redirectTarget), pathname1 = _formatNextPathnameInfo.formatNextPathnameInfo(_extends({}, _getNextPathnameInfo.getNextPathnameInfo(src1.pathname, { nextConfig, parseData: !0 }), { defaultLocale: options.router.defaultLocale, buildId: "" })); return Promise.resolve({ type: "redirect-internal", newAs: "".concat(pathname1).concat(src1.query).concat(src1.hash), newUrl: "".concat(pathname1).concat(src1.query).concat(src1.hash) }); } return Promise.resolve({ type: "redirect-external", destination: redirectTarget }); } return Promise.resolve({ type: "next" }); })(data.dataHref, data.response, options).then((effect)=>({ dataHref: data.dataHref, cacheKey: data.cacheKey, json: data.json, response: data.response, text: data.text, effect }))).catch((_err)=>null) : null)); if (isQueryUpdating && data && (data.json = self.__NEXT_DATA__.props), handleCancelled(), (null == data ? void 0 : null == (ref = data.effect) ? void 0 : ref.type) === "redirect-internal" || (null == data ? void 0 : null == (ref4 = data.effect) ? void 0 : ref4.type) === "redirect-external") return data.effect; if ((null == data ? void 0 : null == (ref5 = data.effect) ? void 0 : ref5.type) === "rewrite" && (route = _removeTrailingSlash.removeTrailingSlash(data.effect.resolvedHref), pathname = data.effect.resolvedHref, query = _extends({}, query, data.effect.parsedAs.query), resolvedAs = _removeBasePath.removeBasePath(_normalizeLocalePath.normalizeLocalePath(data.effect.parsedAs.pathname, _this.locales).pathname), // Check again the cache with the new destination. existingInfo = _this.components[route], routeProps.shallow && existingInfo && _this.route === route && !hasMiddleware)) // If we have a match with the current route due to rewrite, // we can copy the existing information to the rewritten one. // Then, we return the information along with the matched route. return _extends({}, existingInfo, { route }); if ("/api" === route || route.startsWith("/api/")) return handleHardNavigation({ url: as, router: _this }), new Promise(()=>{}); const routeInfo = cachedRouteInfo || (yield _this.fetchComponent(route).then((res)=>({ Component: res.page, styleSheets: res.styleSheets, __N_SSG: res.mod.__N_SSG, __N_SSP: res.mod.__N_SSP }))), shouldFetchData = routeInfo.__N_SSG || routeInfo.__N_SSP, { props, cacheKey } = yield _this._getData(_async_to_generator(function*() { if (shouldFetchData) { const { json, cacheKey: _cacheKey } = (null == data ? void 0 : data.json) ? data : yield fetchNextData({ dataHref: _this.pageLoader.getDataHref({ href: _formatUrl.formatWithValidation({ pathname, query }), asPath: resolvedAs, locale }), isServerRender: _this.isSsr, parseJSON: !0, inflightCache: _this.sdc, persistCache: !isPreview, isPrefetch: !1, unstable_skipClientCache }); return { cacheKey: _cacheKey, props: json || {} }; } return { headers: {}, cacheKey: "", props: yield _this.getInitialProps(routeInfo.Component, { pathname, query, asPath: as, locale, locales: _this.locales, defaultLocale: _this.defaultLocale }) }; })); return routeInfo.__N_SSP && fetchNextDataParams.dataHref && delete _this.sdc[cacheKey], !_this.isPreview && routeInfo.__N_SSG && fetchNextData(Object.assign({}, fetchNextDataParams, { isBackground: !0, persistCache: !1, inflightCache: backgroundCache })).catch(()=>{}), props.pageProps = Object.assign({}, props.pageProps), routeInfo.props = props, routeInfo.route = route, routeInfo.query = query, routeInfo.resolvedAs = resolvedAs, _this.components[route] = routeInfo, routeInfo; } catch (err) { return _this.handleRouteInfoError(_isError.getProperError(err), pathname, query, as, routeProps); } })(); } set(state, data, resetScroll) { return this.state = state, this.sub(data, this.components["/_app"].Component, resetScroll); } /** * Callback to execute before replacing router state * @param cb callback to be executed */ beforePopState(cb) { this._bps = cb; } onlyAHashChange(as) { if (!this.asPath) return !1; const [oldUrlNoHash, oldHash] = this.asPath.split("#"), [newUrlNoHash, newHash] = as.split("#"); return(// Makes sure we scroll to the provided hash if the url/hash are the same !!newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash || oldUrlNoHash === newUrlNoHash && oldHash !== newHash); } scrollToHash(as) { const [, hash = ""] = as.split("#"); // Scroll to top if the hash is just `#` with no value or `#top` // To mirror browsers if ("" === hash || "top" === hash) { handleSmoothScroll(()=>window.scrollTo(0, 0)); return; } // Decode hash to make non-latin anchor works. const rawHash = decodeURIComponent(hash), idEl = document.getElementById(rawHash); if (idEl) { handleSmoothScroll(()=>idEl.scrollIntoView()); return; } // If there's no element with the id, we check the `name` property // To mirror browsers const nameEl = document.getElementsByName(rawHash)[0]; nameEl && handleSmoothScroll(()=>nameEl.scrollIntoView()); } urlIsNew(asPath) { return this.asPath !== asPath; } /** * Prefetch page code, you may wait for the data during page rendering. * This feature only works in production! * @param url the href of prefetched page * @param asPath the as path of the prefetched page */ prefetch(url) { let asPath = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : url, options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; var _this = this; return _async_to_generator(function*() { if (_isBot.isBot(window.navigator.userAgent)) // No prefetches for bots that render the link since they are typically navigating // links via the equivalent of a hard navigation and hence never utilize these // prefetches. return; let parsed = _parseRelativeUrl.parseRelativeUrl(url), { pathname, query } = parsed; const pages = yield _this.pageLoader.getPageList(), locale = void 0 !== options.locale ? options.locale || void 0 : _this.locale; parsed.pathname = resolveDynamicRoute(parsed.pathname, pages), _isDynamic.isDynamicRoute(parsed.pathname) && (pathname = parsed.pathname, parsed.pathname = pathname, Object.assign(query, _routeMatcher.getRouteMatcher(_routeRegex.getRouteRegex(parsed.pathname))(_parsePath.parsePath(asPath).pathname) || {}), url = _formatUrl.formatWithValidation(parsed)); const route = _removeTrailingSlash.removeTrailingSlash(pathname); yield Promise.all([ _this.pageLoader._isSsg(route).then((isSsg)=>!!isSsg && fetchNextData({ dataHref: _this.pageLoader.getDataHref({ href: url, asPath: asPath, locale: locale }), isServerRender: !1, parseJSON: !0, inflightCache: _this.sdc, persistCache: !_this.isPreview, isPrefetch: !0, unstable_skipClientCache: options.unstable_skipClientCache || options.priority && !0 }).then(()=>!1)), _this.pageLoader[options.priority ? "loadPage" : "prefetch"](route) ]); })(); } fetchComponent(route) { var _this = this; return _async_to_generator(function*() { const handleCancelled = getCancelledHandler({ route, router: _this }); try { const componentResult = yield _this.pageLoader.loadPage(route); return handleCancelled(), componentResult; } catch (err) { throw handleCancelled(), err; } })(); } _getData(fn) { let cancelled = !1; const cancel = ()=>{ cancelled = !0; }; return this.clc = cancel, fn().then((data)=>{ if (cancel === this.clc && (this.clc = null), cancelled) { const err = Error("Loading initial props cancelled"); throw err.cancelled = !0, err; } return data; }); } _getFlightData(dataHref) { // Do not cache RSC flight response since it's not a static resource return fetchNextData({ dataHref, isServerRender: !0, parseJSON: !1, inflightCache: this.sdc, persistCache: !1, isPrefetch: !1 }).then((param)=>{ let { text } = param; return { data: text }; }); } getInitialProps(Component, ctx) { const { Component: App } = this.components["/_app"], AppTree = this._wrapApp(App); return ctx.AppTree = AppTree, _utils.loadGetInitialProps(App, { AppTree, Component, router: this, ctx }); } get route() { return this.state.route; } get pathname() { return this.state.pathname; } get query() { return this.state.query; } get asPath() { return this.state.asPath; } get locale() { return this.state.locale; } get isFallback() { return this.state.isFallback; } get isPreview() { return this.state.isPreview; } constructor(pathname1, query1, as1, { initialProps, pageLoader, App, wrapApp, Component, err, subscription, isFallback, locale, locales, defaultLocale, domainLocales, isPreview }){ // Server Data Cache this.sdc = {}, this.isFirstPopStateEvent = !0, this._key = createKey(), this.onPopState = (e)=>{ let forcedScroll; const { isFirstPopStateEvent } = this; this.isFirstPopStateEvent = !1; const state = e.state; if (!state) { // We get state as undefined for two reasons. // 1. With older safari (< 8) and older chrome (< 34) // 2. When the URL changed with # // // In the both cases, we don't need to proceed and change the route. // (as it's already changed) // But we can simply replace the state with the new changes. // Actually, for (1) we don't need to nothing. But it's hard to detect that event. // So, doing the following for (1) does no harm. const { pathname, query } = this; this.changeState("replaceState", _formatUrl.formatWithValidation({ pathname: _addBasePath.addBasePath(pathname), query }), _utils.getURL()); return; } // __NA is used to identify if the history entry can be handled by the app-router. if (state.__NA) { window.location.reload(); return; } if (!state.__N || isFirstPopStateEvent && this.locale === state.options.locale && state.as === this.asPath) return; const { url, as, options, key } = state; this._key = key; const { pathname: pathname1 } = _parseRelativeUrl.parseRelativeUrl(url); // Make sure we don't re-render on initial load, // can be caused by navigating back from an external site (!this.isSsr || as !== _addBasePath.addBasePath(this.asPath) || pathname1 !== _addBasePath.addBasePath(this.pathname)) && (!this._bps || this._bps(state)) && this.change("replaceState", url, as, Object.assign({}, options, { shallow: options.shallow && this._shallow, locale: options.locale || this.defaultLocale, // @ts-ignore internal value not exposed on types _h: 0 }), forcedScroll); }; // represents the current component key const route = _removeTrailingSlash.removeTrailingSlash(pathname1); // set up the component cache (by route keys) this.components = {}, "/_error" !== pathname1 && (this.components[route] = { Component, initial: !0, props: initialProps, err, __N_SSG: initialProps && initialProps.__N_SSG, __N_SSP: initialProps && initialProps.__N_SSP }), this.components["/_app"] = { Component: App, styleSheets: [] }, // Backwards compat for Router.router.events // TODO: Should be remove the following major version as it was never documented this.events = Router.events, this.pageLoader = pageLoader; // if auto prerendered and dynamic route wait to update asPath // until after mount to prevent hydration mismatch const autoExportDynamic = _isDynamic.isDynamicRoute(pathname1) && self.__NEXT_DATA__.autoExport; // make sure "as" doesn't start with double slashes or else it can // throw an error as it's considered invalid if (this.basePath = "", this.sub = subscription, this.clc = null, this._wrapApp = wrapApp, // make sure to ignore extra popState in safari on navigating // back from external site this.isSsr = !0, this.isLocaleDomain = !1, this.isReady = !!(self.__NEXT_DATA__.gssp || self.__NEXT_DATA__.gip || self.__NEXT_DATA__.appGip && !self.__NEXT_DATA__.gsp || !autoExportDynamic && !self.location.search), this.state = { route, pathname: pathname1, query: query1, asPath: autoExportDynamic ? pathname1 : as1, isPreview: !!isPreview, locale: void 0, isFallback }, this._initialMatchesMiddlewarePromise = Promise.resolve(!1), !as1.startsWith("//")) { // in order for `e.state` to work on the `onpopstate` event // we have to register the initial route upon initialization const options = { locale }, asPath = _utils.getURL(); this._initialMatchesMiddlewarePromise = matchesMiddleware({ router: this, locale, asPath }).then((matches)=>(options._shouldResolveHref = as1 !== pathname1, this.changeState("replaceState", matches ? asPath : _formatUrl.formatWithValidation({ pathname: _addBasePath.addBasePath(pathname1), query: query1 }), asPath, options), matches)); } window.addEventListener("popstate", this.onPopState); } } Router.events = _mitt.default(), exports.default = Router; /***/ }, /***/ 7459: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.addLocale = function(path, locale, defaultLocale, ignorePrefix) { return locale && locale !== defaultLocale && (ignorePrefix || !_pathHasPrefix.pathHasPrefix(path.toLowerCase(), "/".concat(locale.toLowerCase())) && !_pathHasPrefix.pathHasPrefix(path.toLowerCase(), "/api")) ? _addPathPrefix.addPathPrefix(path, "/".concat(locale)) : path; } //# sourceMappingURL=add-locale.js.map ; var _addPathPrefix = __webpack_require__(5391), _pathHasPrefix = __webpack_require__(1259); /***/ }, /***/ 5391: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.addPathPrefix = function(path, prefix) { if (!path.startsWith("/") || !prefix) return path; const { pathname, query, hash } = _parsePath.parsePath(path); return "".concat(prefix).concat(pathname).concat(query).concat(hash); } //# sourceMappingURL=add-path-prefix.js.map ; var _parsePath = __webpack_require__(4943); /***/ }, /***/ 4156: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.addPathSuffix = function(path, suffix) { if (!path.startsWith("/") || !suffix) return path; const { pathname, query, hash } = _parsePath.parsePath(path); return "".concat(pathname).concat(suffix).concat(query).concat(hash); } //# sourceMappingURL=add-path-suffix.js.map ; var _parsePath = __webpack_require__(4943); /***/ }, /***/ 610: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.compareRouterStates = function(a, b) { const stateKeys = Object.keys(a); if (stateKeys.length !== Object.keys(b).length) return !1; for(let i = stateKeys.length; i--;){ const key = stateKeys[i]; if ("query" === key) { const queryKeys = Object.keys(a.query); if (queryKeys.length !== Object.keys(b.query).length) return !1; for(let j = queryKeys.length; j--;){ const queryKey = queryKeys[j]; if (!b.query.hasOwnProperty(queryKey) || a.query[queryKey] !== b.query[queryKey]) return !1; } } else if (!b.hasOwnProperty(key) || a[key] !== b[key]) return !1; } return !0; } //# sourceMappingURL=compare-states.js.map ; /***/ }, /***/ 4022: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.formatNextPathnameInfo = function(info) { let pathname = _addLocale.addLocale(info.pathname, info.locale, info.buildId ? void 0 : info.defaultLocale, info.ignorePrefix); return info.buildId && (pathname = _addPathSuffix.addPathSuffix(_addPathPrefix.addPathPrefix(pathname, "/_next/data/".concat(info.buildId)), "/" === info.pathname ? "index.json" : ".json")), pathname = _addPathPrefix.addPathPrefix(pathname, info.basePath), info.trailingSlash ? info.buildId || pathname.endsWith("/") ? pathname : _addPathSuffix.addPathSuffix(pathname, "/") : _removeTrailingSlash.removeTrailingSlash(pathname); } //# sourceMappingURL=format-next-pathname-info.js.map ; var _removeTrailingSlash = __webpack_require__(6316), _addPathPrefix = __webpack_require__(5391), _addPathSuffix = __webpack_require__(4156), _addLocale = __webpack_require__(7459); /***/ }, /***/ 4611: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.formatUrl = formatUrl, exports.formatWithValidation = function(url) { return formatUrl(url); } //# sourceMappingURL=format-url.js.map , exports.urlObjectKeys = void 0; var querystring = (0, __webpack_require__(1598)/* ["default"] */ .Z)(__webpack_require__(466)); const slashedProtocols = /https?|ftp|gopher|file/; function formatUrl(urlObj) { let { auth, hostname } = urlObj, protocol = urlObj.protocol || "", pathname = urlObj.pathname || "", hash = urlObj.hash || "", query = urlObj.query || "", host = !1; auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "", urlObj.host ? host = auth + urlObj.host : hostname && (host = auth + (~hostname.indexOf(":") ? "[".concat(hostname, "]") : hostname), urlObj.port && (host += ":" + urlObj.port)), query && "object" == typeof query && (query = String(querystring.urlQueryToSearchParams(query))); let search = urlObj.search || query && "?".concat(query) || ""; return protocol && !protocol.endsWith(":") && (protocol += ":"), urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && !1 !== host ? (host = "//" + (host || ""), pathname && "/" !== pathname[0] && (pathname = "/" + pathname)) : host || (host = ""), hash && "#" !== hash[0] && (hash = "#" + hash), search && "?" !== search[0] && (search = "?" + search), pathname = pathname.replace(/[?#]/g, encodeURIComponent), search = search.replace("#", "%23"), "".concat(protocol).concat(host).concat(pathname).concat(search).concat(hash); } exports.urlObjectKeys = [ "auth", "hash", "host", "hostname", "href", "path", "pathname", "port", "protocol", "query", "search", "slashes" ]; /***/ }, /***/ 3891: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = function(route) { let ext = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ""; return ("/" === route ? "/index" : /^\/index(\/|$)/.test(route) ? "/index".concat(route) : "".concat(route)) + ext; } //# sourceMappingURL=get-asset-path-from-route.js.map ; /***/ }, /***/ 159: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getNextPathnameInfo = function(pathname, options) { var _nextConfig; const { basePath, i18n, trailingSlash } = null != (_nextConfig = options.nextConfig) ? _nextConfig : {}, info = { pathname: pathname, trailingSlash: "/" !== pathname ? pathname.endsWith("/") : trailingSlash }; if (basePath && _pathHasPrefix.pathHasPrefix(info.pathname, basePath) && (info.pathname = _removePathPrefix.removePathPrefix(info.pathname, basePath), info.basePath = basePath), !0 === options.parseData && info.pathname.startsWith("/_next/data/") && info.pathname.endsWith(".json")) { const paths = info.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), buildId = paths[0]; info.pathname = "index" !== paths[1] ? "/".concat(paths.slice(1).join("/")) : "/", info.buildId = buildId; } if (i18n) { const pathLocale = _normalizeLocalePath.normalizeLocalePath(info.pathname, i18n.locales); info.locale = null == pathLocale ? void 0 : pathLocale.detectedLocale, info.pathname = (null == pathLocale ? void 0 : pathLocale.pathname) || info.pathname; } return info; } //# sourceMappingURL=get-next-pathname-info.js.map ; var _normalizeLocalePath = __webpack_require__(4317), _removePathPrefix = __webpack_require__(9244), _pathHasPrefix = __webpack_require__(1259); /***/ }, /***/ 418: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "getSortedRoutes", { enumerable: !0, get: function() { return _sortedRoutes.getSortedRoutes; } }), Object.defineProperty(exports, "isDynamicRoute", { enumerable: !0, get: function() { return _isDynamic.isDynamicRoute; } }); var _sortedRoutes = __webpack_require__(3907), _isDynamic = __webpack_require__(8689); /***/ }, /***/ 9671: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isBot = function(userAgent) { return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(userAgent); } //# sourceMappingURL=is-bot.js.map ; /***/ }, /***/ 8689: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isDynamicRoute = function(route) { return TEST_ROUTE.test(route); } //# sourceMappingURL=is-dynamic.js.map ; // Identify /[param]/ in route string const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/; /***/ }, /***/ 4943: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.parsePath = function(path) { const hashIndex = path.indexOf("#"), queryIndex = path.indexOf("?"), hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex); return hasQuery || hashIndex > -1 ? { pathname: path.substring(0, hasQuery ? queryIndex : hashIndex), query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "", hash: hashIndex > -1 ? path.slice(hashIndex) : "" } : { pathname: path, query: "", hash: "" }; } //# sourceMappingURL=parse-path.js.map ; /***/ }, /***/ 6305: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.parseRelativeUrl = function(url, base) { const globalBase = new URL(_utils.getLocationOrigin()), resolvedBase = base ? new URL(base, globalBase) : url.startsWith(".") ? new URL(window.location.href) : globalBase, { pathname, searchParams, search, hash, href, origin } = new URL(url, resolvedBase); if (origin !== globalBase.origin) throw Error("invariant: invalid relative URL, router received ".concat(url)); return { pathname, query: _querystring.searchParamsToUrlQuery(searchParams), search, hash, href: href.slice(globalBase.origin.length) }; } //# sourceMappingURL=parse-relative-url.js.map ; var _utils = __webpack_require__(3794), _querystring = __webpack_require__(466); /***/ }, /***/ 1259: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.pathHasPrefix = function(path, prefix) { if ("string" != typeof path) return !1; const { pathname } = _parsePath.parsePath(path); return pathname === prefix || pathname.startsWith(prefix + "/"); } //# sourceMappingURL=path-has-prefix.js.map ; var _parsePath = __webpack_require__(4943); /***/ }, /***/ 466: /***/ function(__unused_webpack_module, exports) { "use strict"; function stringifyUrlQueryParam(param) { return "string" != typeof param && ("number" != typeof param || isNaN(param)) && "boolean" != typeof param ? "" : String(param); } Object.defineProperty(exports, "__esModule", { value: !0 }), exports.searchParamsToUrlQuery = function(searchParams) { const query = {}; return searchParams.forEach((value, key)=>{ void 0 === query[key] ? query[key] = value : Array.isArray(query[key]) ? query[key].push(value) : query[key] = [ query[key], value ]; }), query; }, exports.urlQueryToSearchParams = function(urlQuery) { const result = new URLSearchParams(); return Object.entries(urlQuery).forEach((param)=>{ let [key, value] = param; Array.isArray(value) ? value.forEach((item)=>result.append(key, stringifyUrlQueryParam(item))) : result.set(key, stringifyUrlQueryParam(value)); }), result; }, exports.assign = function(target) { for(var _len = arguments.length, searchParamsList = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)searchParamsList[_key - 1] = arguments[_key]; return searchParamsList.forEach((searchParams)=>{ Array.from(searchParams.keys()).forEach((key)=>target.delete(key)), searchParams.forEach((value, key)=>target.append(key, value)); }), target; } //# sourceMappingURL=querystring.js.map ; /***/ }, /***/ 9244: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.removePathPrefix = function(path, prefix) { if (_pathHasPrefix.pathHasPrefix(path, prefix)) { const withoutPrefix = path.slice(prefix.length); return withoutPrefix.startsWith("/") ? withoutPrefix : "/".concat(withoutPrefix); } return path; } //# sourceMappingURL=remove-path-prefix.js.map ; var _pathHasPrefix = __webpack_require__(1259); /***/ }, /***/ 6316: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.removeTrailingSlash = function(route) { return route.replace(/\/$/, "") || "/"; } //# sourceMappingURL=remove-trailing-slash.js.map ; /***/ }, /***/ 3888: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getRouteMatcher = function(param) { let { re, groups } = param; return (pathname)=>{ const routeMatch = re.exec(pathname); if (!routeMatch) return !1; const decode = (param)=>{ try { return decodeURIComponent(param); } catch (_) { throw new _utils.DecodeError("failed to decode param"); } }, params = {}; return Object.keys(groups).forEach((slugName)=>{ const g = groups[slugName], m = routeMatch[g.pos]; void 0 !== m && (params[slugName] = ~m.indexOf("/") ? m.split("/").map((entry)=>decode(entry)) : g.repeat ? [ decode(m) ] : decode(m)); }), params; }; } //# sourceMappingURL=route-matcher.js.map ; var _utils = __webpack_require__(3794); /***/ }, /***/ 4095: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getRouteRegex = getRouteRegex, exports.getNamedRouteRegex = function(normalizedRoute) { const result = getNamedParametrizedRoute(normalizedRoute); return _extends({}, getRouteRegex(normalizedRoute), { namedRegex: "^".concat(result.namedParameterizedRoute, "(?:/)?$"), routeKeys: result.routeKeys }); }, exports.getNamedMiddlewareRegex = function(normalizedRoute, options) { const { parameterizedRoute } = getParametrizedRoute(normalizedRoute), { catchAll = !0 } = options; if ("/" === parameterizedRoute) return { namedRegex: "^/".concat(catchAll ? ".*" : "", "$") }; const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute); return { namedRegex: "^".concat(namedParameterizedRoute).concat(catchAll ? "(?:(/.*)?)" : "", "$") }; } //# sourceMappingURL=route-regex.js.map ; var _extends = __webpack_require__(6495)/* ["default"] */ .Z, _escapeRegexp = __webpack_require__(489), _removeTrailingSlash = __webpack_require__(6316); /** * Parses a given parameter from a route to a data structure that can be used * to generate the parametrized route. Examples: * - `[...slug]` -> `{ name: 'slug', repeat: true, optional: true }` * - `[foo]` -> `{ name: 'foo', repeat: false, optional: true }` * - `bar` -> `{ name: 'bar', repeat: false, optional: false }` */ function parseParameter(param) { const optional = param.startsWith("[") && param.endsWith("]"); optional && (param = param.slice(1, -1)); const repeat = param.startsWith("..."); return repeat && (param = param.slice(3)), { key: param, repeat, optional }; } function getParametrizedRoute(route) { const segments = _removeTrailingSlash.removeTrailingSlash(route).slice(1).split("/"), groups = {}; let groupIndex = 1; return { parameterizedRoute: segments.map((segment)=>{ if (!(segment.startsWith("[") && segment.endsWith("]"))) return "/".concat(_escapeRegexp.escapeStringRegexp(segment)); { const { key, optional, repeat } = parseParameter(segment.slice(1, -1)); return groups[key] = { pos: groupIndex++, repeat, optional }, repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)"; } }).join(""), groups }; } function getRouteRegex(normalizedRoute) { const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute); return { re: new RegExp("^".concat(parameterizedRoute, "(?:/)?$")), groups: groups }; } function getNamedParametrizedRoute(route) { let routeKeyCharCode, routeKeyCharLength; const segments = _removeTrailingSlash.removeTrailingSlash(route).slice(1).split("/"), getSafeRouteKey = (routeKeyCharCode = 97, routeKeyCharLength = 1, ()=>{ let routeKey = ""; for(let i = 0; i < routeKeyCharLength; i++)routeKey += String.fromCharCode(routeKeyCharCode), ++routeKeyCharCode > 122 && (routeKeyCharLength++, routeKeyCharCode = 97); return routeKey; }), routeKeys = {}; return { namedParameterizedRoute: segments.map((segment)=>{ if (!(segment.startsWith("[") && segment.endsWith("]"))) return "/".concat(_escapeRegexp.escapeStringRegexp(segment)); { const { key, optional, repeat } = parseParameter(segment.slice(1, -1)); // replace any non-word characters since they can break // the named regex let cleanedKey = key.replace(/\W/g, ""), invalidKey = !1; return (0 === cleanedKey.length || cleanedKey.length > 30) && (invalidKey = !0), isNaN(parseInt(cleanedKey.slice(0, 1))) || (invalidKey = !0), invalidKey && (cleanedKey = getSafeRouteKey()), routeKeys[cleanedKey] = key, repeat ? optional ? "(?:/(?<".concat(cleanedKey, ">.+?))?") : "/(?<".concat(cleanedKey, ">.+?)") : "/(?<".concat(cleanedKey, ">[^/]+?)"); } }).join(""), routeKeys }; } /***/ }, /***/ 3907: /***/ function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getSortedRoutes = function(normalizedPages) { // First the UrlNode is created, and every UrlNode can have only 1 dynamic segment // Eg you can't have pages/[post]/abc.js and pages/[hello]/something-else.js // Only 1 dynamic segment per nesting level // So in the case that is test/integration/dynamic-routing it'll be this: // pages/[post]/comments.js // pages/blog/[post]/comment/[id].js // Both are fine because `pages/[post]` and `pages/blog` are on the same level // So in this case `UrlNode` created here has `this.slugName === 'post'` // And since your PR passed through `slugName` as an array basically it'd including it in too many possibilities // Instead what has to be passed through is the upwards path's dynamic names const root = new UrlNode(); // Smoosh will then sort those sublevels up to the point where you get the correct route definition priority return(// Here the `root` gets injected multiple paths, and insert will break them up into sublevels normalizedPages.forEach((pagePath)=>root.insert(pagePath)), root.smoosh()); } //# sourceMappingURL=sorted-routes.js.map ; class UrlNode { insert(urlPath) { this._insert(urlPath.split("/").filter(Boolean), [], !1); } smoosh() { return this._smoosh(); } _smoosh() { let prefix = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "/"; const childrenPaths = [ ...this.children.keys() ].sort(); null !== this.slugName && childrenPaths.splice(childrenPaths.indexOf("[]"), 1), null !== this.restSlugName && childrenPaths.splice(childrenPaths.indexOf("[...]"), 1), null !== this.optionalRestSlugName && childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1); const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh("".concat(prefix).concat(c, "/"))).reduce((prev, curr)=>[ ...prev, ...curr ], []); if (null !== this.slugName && routes.push(...this.children.get("[]")._smoosh("".concat(prefix, "[").concat(this.slugName, "]/"))), !this.placeholder) { const r = "/" === prefix ? "/" : prefix.slice(0, -1); if (null != this.optionalRestSlugName) throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(r, '" and "').concat(r, "[[...").concat(this.optionalRestSlugName, ']]").')); routes.unshift(r); } return null !== this.restSlugName && routes.push(...this.children.get("[...]")._smoosh("".concat(prefix, "[...").concat(this.restSlugName, "]/"))), null !== this.optionalRestSlugName && routes.push(...this.children.get("[[...]]")._smoosh("".concat(prefix, "[[...").concat(this.optionalRestSlugName, "]]/"))), routes; } _insert(urlPaths, slugNames, isCatchAll) { if (0 === urlPaths.length) { this.placeholder = !1; return; } if (isCatchAll) throw Error("Catch-all must be the last part of the URL."); // The next segment in the urlPaths list let nextSegment = urlPaths[0]; // Check if the segment matches `[something]` if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) { // Strip `[` and `]`, leaving only `something` let segmentName = nextSegment.slice(1, -1), isOptional = !1; if (segmentName.startsWith("[") && segmentName.endsWith("]") && (// Strip optional `[` and `]`, leaving only `something` segmentName = segmentName.slice(1, -1), isOptional = !0), segmentName.startsWith("...") && (// Strip `...`, leaving only `something` segmentName = segmentName.substring(3), isCatchAll = !0), segmentName.startsWith("[") || segmentName.endsWith("]")) throw Error("Segment names may not start or end with extra brackets ('".concat(segmentName, "').")); if (segmentName.startsWith(".")) throw Error("Segment names may not start with erroneous periods ('".concat(segmentName, "').")); function handleSlug(previousSlug, nextSlug) { if (null !== previousSlug && previousSlug !== nextSlug) // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment. throw Error("You cannot use different slug names for the same dynamic path ('".concat(previousSlug, "' !== '").concat(nextSlug, "').")); slugNames.forEach((slug)=>{ if (slug === nextSlug) throw Error('You cannot have the same slug name "'.concat(nextSlug, '" repeat within a single dynamic path')); if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) throw Error('You cannot have the slug names "'.concat(slug, '" and "').concat(nextSlug, '" differ only by non-word symbols within a single dynamic path')); }), slugNames.push(nextSlug); } if (isCatchAll) { if (isOptional) { if (null != this.restSlugName) throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName, ']" and "').concat(urlPaths[0], '" ).')); handleSlug(this.optionalRestSlugName, segmentName), // slugName is kept as it can only be one particular slugName this.optionalRestSlugName = segmentName, // nextSegment is overwritten to [[...]] so that it can later be sorted specifically nextSegment = "[[...]]"; } else { if (null != this.optionalRestSlugName) throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName, ']]" and "').concat(urlPaths[0], '").')); handleSlug(this.restSlugName, segmentName), // slugName is kept as it can only be one particular slugName this.restSlugName = segmentName, // nextSegment is overwritten to [...] so that it can later be sorted specifically nextSegment = "[...]"; } } else { if (isOptional) throw Error('Optional route parameters are not yet supported ("'.concat(urlPaths[0], '").')); handleSlug(this.slugName, segmentName), // slugName is kept as it can only be one particular slugName this.slugName = segmentName, // nextSegment is overwritten to [] so that it can later be sorted specifically nextSegment = "[]"; } } this.children.has(nextSegment) || this.children.set(nextSegment, new UrlNode()), this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll); } constructor(){ this.placeholder = !0, this.children = new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null; } } /***/ }, /***/ 8027: /***/ function(module, exports) { "use strict"; let runtimeConfig; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.setConfig = function(configValue) { runtimeConfig = configValue; }, exports.default = void 0, exports.default = ()=>runtimeConfig, ("function" == typeof exports.default || "object" == typeof exports.default && null !== exports.default) && void 0 === exports.default.__esModule && (Object.defineProperty(exports.default, "__esModule", { value: !0 }), Object.assign(exports.default, exports), module.exports = exports.default); /***/ }, /***/ 5188: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = function(props) { const { headManager, reduceComponentsToState } = props; function emitChange() { if (headManager && headManager.mountedInstances) { const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean)); headManager.updateHead(reduceComponentsToState(headElements, props)); } } if (isServer) { var ref; null == headManager || null == (ref = headManager.mountedInstances) || ref.add(props.children), emitChange(); } return useClientOnlyLayoutEffect(()=>{ var ref1; return null == headManager || null == (ref1 = headManager.mountedInstances) || ref1.add(props.children), ()=>{ var ref; null == headManager || null == (ref = headManager.mountedInstances) || ref.delete(props.children); }; }), // We need to call `updateHead` method whenever the `SideEffect` is trigger in all // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s // being rendered, we only trigger the method from the last one. // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate` // singleton in the layout effect pass, and actually trigger it in the effect pass. useClientOnlyLayoutEffect(()=>(headManager && (headManager._pendingUpdate = emitChange), ()=>{ headManager && (headManager._pendingUpdate = emitChange); })), useClientOnlyEffect(()=>(headManager && headManager._pendingUpdate && (headManager._pendingUpdate(), headManager._pendingUpdate = null), ()=>{ headManager && headManager._pendingUpdate && (headManager._pendingUpdate(), headManager._pendingUpdate = null); })), null; }; var _react = (0, __webpack_require__(1598)/* ["default"] */ .Z)(__webpack_require__(7294)); const isServer = !1, useClientOnlyLayoutEffect = _react.useLayoutEffect, useClientOnlyEffect = isServer ? ()=>{} : _react.useEffect; /***/ }, /***/ 3794: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.execOnce = function(fn) { let result, used = !1; return function() { for(var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; return used || (used = !0, result = fn(...args)), result; }; }, exports.getLocationOrigin = getLocationOrigin, exports.getURL = function() { const { href } = window.location, origin = getLocationOrigin(); return href.substring(origin.length); }, exports.getDisplayName = getDisplayName, exports.isResSent = isResSent, exports.normalizeRepeatedSlashes = function(url) { const urlParts = url.split("?"); return urlParts[0]// then normalize repeated forward slashes .replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? "?".concat(urlParts.slice(1).join("?")) : ""); }, exports.loadGetInitialProps = loadGetInitialProps, exports.ST = exports.SP = exports.warnOnce = exports.isAbsoluteUrl = void 0; var _async_to_generator = __webpack_require__(932)/* ["default"] */ .Z; // Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 // Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/; function getLocationOrigin() { const { protocol, hostname, port } = window.location; return "".concat(protocol, "//").concat(hostname).concat(port ? ":" + port : ""); } function getDisplayName(Component) { return "string" == typeof Component ? Component : Component.displayName || Component.name || "Unknown"; } function isResSent(res) { return res.finished || res.headersSent; } function loadGetInitialProps(App, ctx) { return _loadGetInitialProps.apply(this, arguments); } function _loadGetInitialProps() { return (_loadGetInitialProps = _async_to_generator(function*(App, ctx) { // when called from _app `ctx` is nested in `ctx` const res = ctx.res || ctx.ctx && ctx.ctx.res; if (!App.getInitialProps) return ctx.ctx && ctx.Component ? { pageProps: yield loadGetInitialProps(ctx.Component, ctx.ctx) } : {}; const props = yield App.getInitialProps(ctx); if (res && isResSent(res)) return props; if (!props) throw Error('"'.concat(getDisplayName(App), '.getInitialProps()" should resolve to an object. But found "').concat(props, '" instead.')); return props; })).apply(this, arguments); } exports.isAbsoluteUrl = (url)=>ABSOLUTE_URL_REGEX.test(url); const SP = "undefined" != typeof performance; exports.SP = SP, exports.ST = SP && [ "mark", "measure", "getEntriesByName" ].every((method)=>"function" == typeof performance[method]), exports.DecodeError = class extends Error { }, exports.NormalizeError = class extends Error { }, exports.PageNotFoundError = class extends Error { constructor(page){ super(), this.code = "ENOENT", this.message = "Cannot find module for page: ".concat(page); } }, exports.MissingStaticPage = class extends Error { constructor(page, message){ super(), this.message = "Failed to load static file for page: ".concat(page, " ").concat(message); } }, exports.MiddlewareNotFoundError = class extends Error { constructor(){ super(), this.code = "ENOENT", this.message = "Cannot find the middleware module"; } }, exports.warnOnce = (_)=>{}; /***/ }, /***/ 8018: /***/ function(module) { var n, y, T, C, w, P, I, k, o, c, u, f, s, d, l, N, v, m, h, g, j, q, E, x, z, L, S, b, A, F, J, K, Q, M, B, D, U, R, V, W, H, O, X, _, Y, G; (n = {}).d = function(y, T) { for(var C in T)n.o(T, C) && !n.o(y, C) && Object.defineProperty(y, C, { enumerable: !0, get: T[C] }); }, n.o = function(n, y) { return Object.prototype.hasOwnProperty.call(n, y); }, n.r = function(n) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 }); }, void 0 !== n && (n.ab = "//"), y = {}, n.r(y), n.d(y, { getCLS: function() { return E; }, getFCP: function() { return g; }, getFID: function() { return F; }, getINP: function() { return O; }, getLCP: function() { return _; }, getTTFB: function() { return G; }, onCLS: function() { return E; }, onFCP: function() { return g; }, onFID: function() { return F; }, onINP: function() { return O; }, onLCP: function() { return _; }, onTTFB: function() { return G; } }), k = -1, o = function(n) { addEventListener("pageshow", function(y) { y.persisted && (k = y.timeStamp, n(y)); }, !0); }, c = function() { return window.performance && performance.getEntriesByType && performance.getEntriesByType("navigation")[0]; }, u = function() { var n = c(); return n && n.activationStart || 0; }, f = function(n, y) { var T = c(), C = "navigate"; return k >= 0 ? C = "back-forward-cache" : T && (C = document.prerendering || u() > 0 ? "prerender" : T.type.replace(/_/g, "-")), { name: n, value: void 0 === y ? -1 : y, rating: "good", delta: 0, entries: [], id: "v3-".concat(Date.now(), "-").concat(Math.floor(8999999999999 * Math.random()) + 1e12), navigationType: C }; }, s = function(n, y, T) { try { if (PerformanceObserver.supportedEntryTypes.includes(n)) { var C = new PerformanceObserver(function(n) { y(n.getEntries()); }); return C.observe(Object.assign({ type: n, buffered: !0 }, T || {})), C; } } catch (n) {} }, d = function(n, y) { var T = function t(T) { "pagehide" !== T.type && "hidden" !== document.visibilityState || (n(T), y && (removeEventListener("visibilitychange", t, !0), removeEventListener("pagehide", t, !0))); }; addEventListener("visibilitychange", T, !0), addEventListener("pagehide", T, !0); }, l = function(n, y, T, C) { var w, P; return function(I) { var n1; y.value >= 0 && (I || C) && ((P = y.value - (w || 0)) || void 0 === w) && (w = y.value, y.delta = P, n1 = y.value, y.rating = n1 > T[1] ? "poor" : n1 > T[0] ? "needs-improvement" : "good", n(y)); }; }, N = -1, v = function() { return "hidden" !== document.visibilityState || document.prerendering ? 1 / 0 : 0; }, m = function() { d(function(n) { N = n.timeStamp; }, !0); }, h = function() { return N < 0 && (N = v(), m(), o(function() { setTimeout(function() { N = v(), m(); }, 0); })), { get firstHiddenTime () { return N; } }; }, g = function(n, y) { y = y || {}; var T, C = [ 1800, 3e3 ], w = h(), P = f("FCP"), c = function(n) { n.forEach(function(n) { "first-contentful-paint" === n.name && (k && k.disconnect(), n.startTime < w.firstHiddenTime && (P.value = n.startTime - u(), P.entries.push(n), T(!0))); }); }, I = window.performance && window.performance.getEntriesByName && window.performance.getEntriesByName("first-contentful-paint")[0], k = I ? null : s("paint", c); (I || k) && (T = l(n, P, C, y.reportAllChanges), I && c([ I ]), o(function(w) { T = l(n, P = f("FCP"), C, y.reportAllChanges), requestAnimationFrame(function() { requestAnimationFrame(function() { P.value = performance.now() - w.timeStamp, T(!0); }); }); })); }, j = !1, q = -1, E = function(n, y) { y = y || {}; var T = [ .1, .25 ]; j || (g(function(n) { q = n.value; }), j = !0); var C, i = function(y) { q > -1 && n(y); }, w = f("CLS", 0), P = 0, I = [], p = function(n) { n.forEach(function(n) { if (!n.hadRecentInput) { var y = I[0], T = I[I.length - 1]; P && n.startTime - T.startTime < 1e3 && n.startTime - y.startTime < 5e3 ? (P += n.value, I.push(n)) : (P = n.value, I = [ n ]), P > w.value && (w.value = P, w.entries = I, C()); } }); }, k = s("layout-shift", p); k && (C = l(i, w, T, y.reportAllChanges), d(function() { p(k.takeRecords()), C(!0); }), o(function() { P = 0, q = -1, C = l(i, w = f("CLS", 0), T, y.reportAllChanges); })); }, x = { passive: !0, capture: !0 }, z = new Date, L = function(n, y) { T || (T = y, C = n, w = new Date, A(removeEventListener), S()); }, S = function() { if (C >= 0 && C < w - z) { var n = { entryType: "first-input", name: T.type, target: T.target, cancelable: T.cancelable, startTime: T.timeStamp, processingStart: T.timeStamp + C }; P.forEach(function(y) { y(n); }), P = []; } }, b = function(n) { if (n.cancelable) { var t, r, i, y = (n.timeStamp > 1e12 ? new Date : performance.now()) - n.timeStamp; "pointerdown" == n.type ? (t = function() { L(y, n), i(); }, r = function() { i(); }, i = function() { removeEventListener("pointerup", t, x), removeEventListener("pointercancel", r, x); }, addEventListener("pointerup", t, x), addEventListener("pointercancel", r, x)) : L(y, n); } }, A = function(n) { [ "mousedown", "keydown", "touchstart", "pointerdown" ].forEach(function(y) { return n(y, b, x); }); }, F = function(n, y) { y = y || {}; var w, I = [ 100, 300 ], k = h(), N = f("FID"), v = function(n) { n.startTime < k.firstHiddenTime && (N.value = n.processingStart - n.startTime, N.entries.push(n), w(!0)); }, m = function(n) { n.forEach(v); }, j = s("first-input", m); w = l(n, N, I, y.reportAllChanges), j && d(function() { m(j.takeRecords()), j.disconnect(); }, !0), j && o(function() { w = l(n, N = f("FID"), I, y.reportAllChanges), P = [], C = -1, T = null, A(addEventListener), P.push(v), S(); }); }, J = 0, K = 1 / 0, Q = 0, M = function(n) { n.forEach(function(n) { n.interactionId && (K = Math.min(K, n.interactionId), J = (Q = Math.max(Q, n.interactionId)) ? (Q - K) / 7 + 1 : 0); }); }, B = function() { return I ? J : performance.interactionCount || 0; }, D = function() { "interactionCount" in performance || I || (I = s("event", M, { type: "event", buffered: !0, durationThreshold: 0 })); }, U = 0, R = function() { return B() - U; }, V = [], W = {}, H = function(n) { var y = V[V.length - 1], T = W[n.interactionId]; if (T || V.length < 10 || n.duration > y.latency) { if (T) T.entries.push(n), T.latency = Math.max(T.latency, n.duration); else { var C = { id: n.interactionId, latency: n.duration, entries: [ n ] }; W[C.id] = C, V.push(C); } V.sort(function(n, y) { return y.latency - n.latency; }), V.splice(10).forEach(function(n) { delete W[n.id]; }); } }, O = function(n, y) { y = y || {}; var T = [ 200, 500 ]; D(); var C, w = f("INP"), a = function(n) { n.forEach(function(n) { n.interactionId && H(n), "first-input" !== n.entryType || V.some(function(y) { return y.entries.some(function(y) { return n.duration === y.duration && n.startTime === y.startTime; }); }) || H(n); }); var y, T = (y = Math.min(V.length - 1, Math.floor(R() / 50)), V[y]); T && T.latency !== w.value && (w.value = T.latency, w.entries = T.entries, C()); }, P = s("event", a, { durationThreshold: y.durationThreshold || 40 }); C = l(n, w, T, y.reportAllChanges), P && (P.observe({ type: "first-input", buffered: !0 }), d(function() { a(P.takeRecords()), w.value < 0 && R() > 0 && (w.value = 0, w.entries = []), C(!0); }), o(function() { V = [], U = B(), C = l(n, w = f("INP"), T, y.reportAllChanges); })); }, X = {}, _ = function(n, y) { y = y || {}; var T, C = [ 2500, 4e3 ], w = h(), P = f("LCP"), c = function(n) { var y = n[n.length - 1]; if (y) { var C = y.startTime - u(); C < w.firstHiddenTime && (P.value = C, P.entries = [ y ], T()); } }, I = s("largest-contentful-paint", c); if (I) { T = l(n, P, C, y.reportAllChanges); var v = function() { X[P.id] || (c(I.takeRecords()), I.disconnect(), X[P.id] = !0, T(!0)); }; [ "keydown", "click" ].forEach(function(n) { addEventListener(n, v, { once: !0, capture: !0 }); }), d(v, !0), o(function(w) { T = l(n, P = f("LCP"), C, y.reportAllChanges), requestAnimationFrame(function() { requestAnimationFrame(function() { P.value = performance.now() - w.timeStamp, X[P.id] = !0, T(!0); }); }); }); } }, Y = function e(n) { document.prerendering ? addEventListener("prerenderingchange", function() { return e(n); }, !0) : "complete" !== document.readyState ? addEventListener("load", function() { return e(n); }, !0) : setTimeout(n, 0); }, G = function(n, y) { y = y || {}; var T = [ 800, 1800 ], C = f("TTFB"), w = l(n, C, T, y.reportAllChanges); Y(function() { var P = c(); if (P) { if (C.value = Math.max(P.responseStart - u(), 0), C.value < 0 || C.value > performance.now()) return; C.entries = [ P ], w(!0), o(function() { (w = l(n, C = f("TTFB", 0), T, y.reportAllChanges))(!0); }); } }); }, module.exports = y; /***/ }, /***/ 676: /***/ function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.default = isError, exports.getProperError = function(err) { return isError(err) ? err : Error(_isPlainObject.isPlainObject(err) ? JSON.stringify(err) : err + ""); }; var _isPlainObject = __webpack_require__(8887); function isError(err) { return "object" == typeof err && null !== err && "name" in err && "message" in err; } //# sourceMappingURL=is-error.js.map /***/ }, /***/ 2431: /***/ function() { /* (ignored) */ /***/ } }, /******/ function(__webpack_require__) { /******/ __webpack_require__.O(0, [ 774 ], function() { return __webpack_require__(__webpack_require__.s = 2870); }), /******/ _N_E = __webpack_require__.O(); /******/ } ]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/tinymce/1/input.js
JavaScript
Yp.revoke, (a => Yp.config((b => ({ aria: { mode: "checked" }, ...ge(b, ((e, t) => "exclusive" !== t)), onToggled: (c, d) => { p(b.onToggled) && b.onToggled(c, d), ((e, f) => { Or(e, th, { item: e, state: f }) })(c, d) } }))(a)))
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/next/tinymce/1/output.js
JavaScript
Yp.revoke, (a)=>Yp.config({ aria: { mode: "checked" }, ...ge(a, (e, t)=>"exclusive" !== t), onToggled: (c, d)=>{ p(a.onToggled) && a.onToggled(c, d), Or(c, th, { item: c, state: d }); } });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/no-side-effect/input.js
JavaScript
/*#__NO_SIDE_EFFECTS__*/ function fnA(args) { // ... const a = console.log('AAA') console.log(a) } const fnB = /*#__NO_SIDE_EFFECTS__*/ (args) => { // ... const b = console.log('BBB') console.log(b) } /*#__NO_SIDE_EFFECTS__*/ const fnC = (args) => { // ... const c = console.log('CCC') console.log(c) } /** * Some jsdocs * * @__NO_SIDE_EFFECTS__ */ const fnD = (args) => { // ... const d = console.log('DDD') console.log(d) } fnA() fnA() fnA() fnA() fnA() fnA() fnA() fnA() fnA() fnA() fnB() fnB() fnB() fnB() fnB() fnB() fnB() fnB() fnB() fnB() fnC() fnC() fnC() fnC() fnC() fnC() fnC() fnC() fnC() fnC() fnD() fnD() fnD() fnD() fnD() fnD() fnD() fnD() fnD() fnD()
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/no-side-effect/output.js
JavaScript
/*#__NO_SIDE_EFFECTS__*/
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/6169/1/input.js
JavaScript
var ref = [ "foo" ], key = ref[0], value = ref[1]; value.toUpperCase();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/6169/1/output.js
JavaScript
[ "foo" ][1].toUpperCase();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/6169/2/input.js
JavaScript
var ref = [ , { toUpperCase() { console.log(this) } } ], key = ref[0], value = ref[1]; value.toUpperCase();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/6169/2/output.js
JavaScript
var ref = [ , { toUpperCase () { console.log(this); } } ]; (ref[0], ref[1]).toUpperCase();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/6272/input.js
JavaScript
a ?? (a = b);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/6272/output.js
JavaScript
a ?? (a = b);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7145/input.js
JavaScript
export function foo(arr) { var a = () => x; for (const b in arr) { console.log(a); } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7145/output.js
JavaScript
export function foo(arr) { var a = ()=>x; for(const b in arr)console.log(a); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7690/input.js
JavaScript
export function foo() { const x = () => null; const y = () => x; console.log(y() === y()); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7690/output.js
JavaScript
export function foo() { console.log(!0); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7856/1/input.js
JavaScript
const a = () => ""; const b = {}; export const c = a; b.c = c;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7856/1/output.js
JavaScript
export const c = ()=>"";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7856/2/input.js
JavaScript
export const a = 4; export const b = 16; export const c = 5; export const d = () => a;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/pr/7856/2/output.js
JavaScript
export const a = 4; export const b = 16; export const c = 5; export const d = ()=>4;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/1/input.js
JavaScript
function isUndefined(value) { return "undefined" == typeof value; } function isDefined(value) { return "undefined" != typeof value; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/1/output.js
JavaScript
function isUndefined(value) { return void 0 === value; } function isDefined(value) { return void 0 !== value; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/2/input.js
JavaScript
var h = destination.$$hashKey; forEach(destination, function (value, key) { delete destination[key]; }); for (var key in source) destination[key] = copy(source[key]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/2/output.js
JavaScript
var h = destination.$$hashKey; for(var key in forEach(destination, function(value, key) { delete destination[key]; }), source)destination[key] = copy(source[key]);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/3/input.js
JavaScript
if (foo) { if (bar) { var baz = console.log("Foo bar"); } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/3/output.js
JavaScript
if (foo && bar) var baz = console.log("Foo bar");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/4/input.js
JavaScript
export const obj = { eq: function (jqLite, index) { return index >= 0 ? jqLite(this[index]) : jqLite(this[this.length + index]); }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/4/output.js
JavaScript
export const obj = { eq: function(jqLite, index) { return jqLite(index >= 0 ? this[index] : this[this.length + index]); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/5/input.js
JavaScript
function forEach(obj, iterator, context) { var key; if (obj) { if (isFunction(obj)) { for (key in obj) { if ( key != "prototype" && key != "length" && key != "name" && obj.hasOwnProperty(key) ) { iterator.call(context, obj[key], key); } } } else if (obj.forEach && obj.forEach !== forEach) { obj.forEach(iterator, context); } else if (isArrayLike(obj)) { for (key = 0; key < obj.length; key++) iterator.call(context, obj[key], key); } else { for (key in obj) { if (obj.hasOwnProperty(key)) { iterator.call(context, obj[key], key); } } } } return obj; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/angular/5/output.js
JavaScript
function forEach(obj, iterator, context) { var key; if (obj) { if (isFunction(obj)) for(key in obj)"prototype" != key && "length" != key && "name" != key && obj.hasOwnProperty(key) && iterator.call(context, obj[key], key); else if (obj.forEach && obj.forEach !== forEach) obj.forEach(iterator, context); else if (isArrayLike(obj)) for(key = 0; key < obj.length; key++)iterator.call(context, obj[key], key); else for(key in obj)obj.hasOwnProperty(key) && iterator.call(context, obj[key], key); } return obj; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/1/input.js
JavaScript
var _ = root._; if (!_ && typeof require !== "undefined") _ = require("underscore");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/1/output.js
JavaScript
var _ = root._; _ || "undefined" == typeof require || (_ = require("underscore"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/10/input.js
JavaScript
export const obj = { _ensureElement: function () { if (!this.el) { var attrs = _.extend({}, _.result(this, "attributes")); if (this.id) attrs.id = _.result(this, "id"); if (this.className) attrs["class"] = _.result(this, "className"); var $el = Backbone.$("<" + _.result(this, "tagName") + ">").attr( attrs ); this.setElement($el, false); } else { this.setElement(_.result(this, "el"), false); } }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/10/output.js
JavaScript
export const obj = { _ensureElement: function() { if (this.el) this.setElement(_.result(this, "el"), !1); else { var attrs = _.extend({}, _.result(this, "attributes")); this.id && (attrs.id = _.result(this, "id")), this.className && (attrs.class = _.result(this, "className")); var $el = Backbone.$("<" + _.result(this, "tagName") + ">").attr(attrs); this.setElement($el, !1); } } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/11/input.js
JavaScript
export const obj = { navigate: function (fragment, options) { if (!History.started) return false; if (!options || options === true) options = { trigger: !!options }; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/11/output.js
JavaScript
export const obj = { navigate: function(fragment, options) { if (!History.started) return !1; options && !0 !== options || (options = { trigger: !!options }); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/12/input.js
JavaScript
var names, i, l; names = name ? [name] : _.keys(this._events); for (i = 0, l = names.length; i < l; i++) { name = names[i]; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/12/output.js
JavaScript
var names, i, l; for(i = 0, l = (names = name ? [ name ] : _.keys(this._events)).length; i < l; i++)name = names[i];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/13/input.js
JavaScript
export const obj = { _validate: function (attrs, options) { if (!options.validate || !this.validate) return true; attrs = _.extend({}, this.attributes, attrs); var error = (this.validationError = this.validate(attrs, options) || null); if (!error) return true; this.trigger( "invalid", this, error, _.extend(options, { validationError: error }) ); return false; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/13/output.js
JavaScript
export const obj = { _validate: function(attrs, options) { if (!options.validate || !this.validate) return !0; attrs = _.extend({}, this.attributes, attrs); var error = this.validationError = this.validate(attrs, options) || null; return !error || (this.trigger("invalid", this, error, _.extend(options, { validationError: error })), !1); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/14/input.js
JavaScript
export const obj = { set: function (key, val, options) { var attr, attrs, unset, changes, silent, changing, prev, current; if (key == null) return this; // Handle both `"key", value` and `{key: value}` -style arguments. if (typeof key === "object") { attrs = key; options = val; } else { (attrs = {})[key] = val; } options || (options = {}); // Run validation. if (!this._validate(attrs, options)) return false; // Extract attributes and options. unset = options.unset; silent = options.silent; changes = []; changing = this._changing; this._changing = true; if (!changing) { this._previousAttributes = _.clone(this.attributes); this.changed = {}; } (current = this.attributes), (prev = this._previousAttributes); // Check for changes of `id`. if (this.idAttribute in attrs) this.id = attrs[this.idAttribute]; // For each `set` attribute, update or delete the current value. for (attr in attrs) { val = attrs[attr]; if (!_.isEqual(current[attr], val)) changes.push(attr); if (!_.isEqual(prev[attr], val)) { this.changed[attr] = val; } else { delete this.changed[attr]; } unset ? delete current[attr] : (current[attr] = val); } // Trigger all relevant attribute changes. if (!silent) { if (changes.length) this._pending = true; for (var i = 0, l = changes.length; i < l; i++) { this.trigger( "change:" + changes[i], this, current[changes[i]], options ); } } // You might be wondering why there's a `while` loop here. Changes can // be recursively nested within `"change"` events. if (changing) return this; if (!silent) { while (this._pending) { this._pending = false; this.trigger("change", this, options); } } this._pending = false; this._changing = false; return this; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/14/output.js
JavaScript
export const obj = { set: function(key, val, options) { var attr, attrs, unset, changes, silent, changing, prev, current; if (null == key) return this; // Run validation. if ("object" == typeof key ? (attrs = key, options = val) : (attrs = {})[key] = val, options || (options = {}), !this._validate(attrs, options)) return !1; // For each `set` attribute, update or delete the current value. for(attr in // Extract attributes and options. unset = options.unset, silent = options.silent, changes = [], changing = this._changing, this._changing = !0, changing || (this._previousAttributes = _.clone(this.attributes), this.changed = {}), current = this.attributes, prev = this._previousAttributes, this.idAttribute in attrs && (this.id = attrs[this.idAttribute]), attrs)val = attrs[attr], _.isEqual(current[attr], val) || changes.push(attr), _.isEqual(prev[attr], val) ? delete this.changed[attr] : this.changed[attr] = val, unset ? delete current[attr] : current[attr] = val; // Trigger all relevant attribute changes. if (!silent) { changes.length && (this._pending = !0); for(var i = 0, l = changes.length; i < l; i++)this.trigger("change:" + changes[i], this, current[changes[i]], options); } // You might be wondering why there's a `while` loop here. Changes can // be recursively nested within `"change"` events. if (changing) return this; if (!silent) for(; this._pending;)this._pending = !1, this.trigger("change", this, options); return this._pending = !1, this._changing = !1, this; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/15/input.js
JavaScript
export const obj = { changedAttributes: function (diff) { if (!diff) return this.hasChanged() ? _.clone(this.changed) : false; var val, changed = false; var old = this._changing ? this._previousAttributes : this.attributes; for (var attr in diff) { if (_.isEqual(old[attr], (val = diff[attr]))) continue; (changed || (changed = {}))[attr] = val; } return changed; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/15/output.js
JavaScript
export const obj = { changedAttributes: function(diff) { if (!diff) return !!this.hasChanged() && _.clone(this.changed); var val, changed = !1, old = this._changing ? this._previousAttributes : this.attributes; for(var attr in diff)_.isEqual(old[attr], val = diff[attr]) || ((changed || (changed = {}))[attr] = val); return changed; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/16/input.js
JavaScript
export const obj = { remove: function (models, options) { var singular = !_.isArray(models); models = singular ? [models] : _.clone(models); options || (options = {}); var i, l, index, model; for (i = 0, l = models.length; i < l; i++) { model = models[i] = this.get(models[i]); if (!model) continue; delete this._byId[model.id]; delete this._byId[model.cid]; index = this.indexOf(model); this.models.splice(index, 1); this.length--; if (!options.silent) { options.index = index; model.trigger("remove", model, this, options); } this._removeReference(model); } return singular ? models[0] : models; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/16/output.js
JavaScript
export const obj = { remove: function(models, options) { var i, l, index, model, singular = !_.isArray(models); for(models = singular ? [ models ] : _.clone(models), options || (options = {}), i = 0, l = models.length; i < l; i++)(model = models[i] = this.get(models[i])) && (delete this._byId[model.id], delete this._byId[model.cid], index = this.indexOf(model), this.models.splice(index, 1), this.length--, options.silent || (options.index = index, model.trigger("remove", model, this, options)), this._removeReference(model)); return singular ? models[0] : models; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/17/input.js
JavaScript
export const obj = { create: function (model, options) { options = options ? _.clone(options) : {}; if (!(model = this._prepareModel(model, options))) return false; if (!options.wait) this.add(model, options); var collection = this; var success = options.success; options.success = function (model, resp, options) { if (options.wait) collection.add(model, options); if (success) success(model, resp, options); }; model.save(null, options); return model; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/17/output.js
JavaScript
export const obj = { create: function(model, options) { if (options = options ? _.clone(options) : {}, !(model = this._prepareModel(model, options))) return !1; options.wait || this.add(model, options); var collection = this, success = options.success; return options.success = function(model, resp, options) { options.wait && collection.add(model, options), success && success(model, resp, options); }, model.save(null, options), model; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/18/input.js
JavaScript
export const obj = { _routeToRegExp: function (route) { route = route .replace(escapeRegExp, "\\$&") .replace(optionalParam, "(?:$1)?") .replace(namedParam, function (match, optional) { return optional ? match : "([^/]+)"; }) .replace(splatParam, "(.*?)"); return new RegExp("^" + route + "$"); }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/18/output.js
JavaScript
export const obj = { _routeToRegExp: function(route) { return RegExp("^" + (route = route.replace(escapeRegExp, "\\$&").replace(optionalParam, "(?:$1)?").replace(namedParam, function(match, optional) { return optional ? match : "([^/]+)"; }).replace(splatParam, "(.*?)")) + "$"); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/19/input.js
JavaScript
export const obj = { navigate: function (fragment, options) { if (!History.started) return false; if (!options || options === true) options = { trigger: !!options }; var url = this.root + (fragment = this.getFragment(fragment || "")); // Strip the fragment of the query and hash for matching. fragment = fragment.replace(pathStripper, ""); if (this.fragment === fragment) return; this.fragment = fragment; // Don't include a trailing slash on the root. if (fragment === "" && url !== "/") url = url.slice(0, -1); // If pushState is available, we use it to set the fragment as a real URL. if (this._hasPushState) { this.history[options.replace ? "replaceState" : "pushState"]( {}, document.title, url ); // If hash changes haven't been explicitly disabled, update the hash // fragment to store history. } else if (this._wantsHashChange) { this._updateHash(this.location, fragment, options.replace); if ( this.iframe && fragment !== this.getFragment(this.getHash(this.iframe)) ) { // Opening and closing the iframe tricks IE7 and earlier to push a // history entry on hash-tag change. When replace is true, we don't // want this. if (!options.replace) this.iframe.document.open().close(); this._updateHash( this.iframe.location, fragment, options.replace ); } // If you've told us that you explicitly don't want fallback hashchange- // based history, then `navigate` becomes a page refresh. } else { return this.location.assign(url); } if (options.trigger) return this.loadUrl(fragment); }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/19/output.js
JavaScript
export const obj = { navigate: function(fragment, options) { if (!History.started) return !1; options && !0 !== options || (options = { trigger: !!options }); var url = this.root + (fragment = this.getFragment(fragment || "")); if (// Strip the fragment of the query and hash for matching. fragment = fragment.replace(pathStripper, ""), this.fragment !== fragment) { // If pushState is available, we use it to set the fragment as a real URL. if (this.fragment = fragment, "" === fragment && "/" !== url && (url = url.slice(0, -1)), this._hasPushState) this.history[options.replace ? "replaceState" : "pushState"]({}, document.title, url); else { if (!this._wantsHashChange) return this.location.assign(url); this._updateHash(this.location, fragment, options.replace), this.iframe && fragment !== this.getFragment(this.getHash(this.iframe)) && (options.replace || this.iframe.document.open().close(), this._updateHash(this.iframe.location, fragment, options.replace)); } if (options.trigger) return this.loadUrl(fragment); } } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/2/input.js
JavaScript
function foo() { if (!eventsApi(this, "on", name, [callback, context]) || !callback) return this; return ( this._events || (this._events = {}), (this._events[name] || (this._events[name] = [])).push({ callback: callback, context: context, ctx: context || this, }), this ); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/2/output.js
JavaScript
function foo() { return eventsApi(this, "on", name, [ callback, context ]) && callback && (this._events || (this._events = {}), (this._events[name] || (this._events[name] = [])).push({ callback: callback, context: context, ctx: context || this })), this; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/20/input.js
JavaScript
var Model = window.Model || {}; export const E = { set: function (models, options) { options = _.defaults({}, options, setOptions); if (options.parse) models = this.parse(models, options); var singular = !_.isArray(models); models = singular ? (models ? [models] : []) : _.clone(models); var i, l, id, model, attrs, existing, sort; var at = options.at; var targetModel = this.model; var sortable = this.comparator && at == null && options.sort !== false; var sortAttr = _.isString(this.comparator) ? this.comparator : null; var toAdd = [], toRemove = [], modelMap = {}; var add = options.add, merge = options.merge, remove = options.remove; var order = !sortable && add && remove ? [] : false; // Turn bare objects into model references, and prevent invalid models // from being added. for (i = 0, l = models.length; i < l; i++) { attrs = models[i]; if (attrs instanceof Model) { id = model = attrs; } else { id = attrs[targetModel.prototype.idAttribute]; } // If a duplicate is found, prevent it from being added and // optionally merge it into the existing model. if ((existing = this.get(id))) { if (remove) modelMap[existing.cid] = true; if (merge) { attrs = attrs === model ? model.attributes : attrs; if (options.parse) attrs = existing.parse(attrs, options); existing.set(attrs, options); if (sortable && !sort && existing.hasChanged(sortAttr)) sort = true; } models[i] = existing; // If this is a new, valid model, push it to the `toAdd` list. } else if (add) { model = models[i] = this._prepareModel(attrs, options); if (!model) continue; toAdd.push(model); // Listen to added models' events, and index models for lookup by // `id` and by `cid`. model.on("all", this._onModelEvent, this); this._byId[model.cid] = model; if (model.id != null) this._byId[model.id] = model; } if (order) order.push(existing || model); } // Remove nonexistent models if appropriate. if (remove) { for (i = 0, l = this.length; i < l; ++i) { if (!modelMap[(model = this.models[i]).cid]) toRemove.push(model); } if (toRemove.length) this.remove(toRemove, options); } // See if sorting is needed, update `length` and splice in new models. if (toAdd.length || (order && order.length)) { if (sortable) sort = true; this.length += toAdd.length; if (at != null) { for (i = 0, l = toAdd.length; i < l; i++) { this.models.splice(at + i, 0, toAdd[i]); } } else { if (order) this.models.length = 0; var orderedModels = order || toAdd; for (i = 0, l = orderedModels.length; i < l; i++) { this.models.push(orderedModels[i]); } } } // Silently sort the collection if appropriate. if (sort) this.sort({ silent: true }); // Unless silenced, it's time to fire all appropriate add/sort events. if (!options.silent) { for (i = 0, l = toAdd.length; i < l; i++) { (model = toAdd[i]).trigger("add", model, this, options); } if (sort || (order && order.length)) this.trigger("sort", this, options); } // Return the added (or merged) model (or models). return singular ? models[0] : models; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/20/output.js
JavaScript
var Model = window.Model || {}; export const E = { set: function(models, options) { (options = _.defaults({}, options, setOptions)).parse && (models = this.parse(models, options)); var i, l, id, model, attrs, existing, sort, singular = !_.isArray(models); models = singular ? models ? [ models ] : [] : _.clone(models); var at = options.at, targetModel = this.model, sortable = this.comparator && null == at && !1 !== options.sort, sortAttr = _.isString(this.comparator) ? this.comparator : null, toAdd = [], toRemove = [], modelMap = {}, add = options.add, merge = options.merge, remove = options.remove, order = !sortable && !!add && !!remove && []; // Turn bare objects into model references, and prevent invalid models // from being added. for(i = 0, l = models.length; i < l; i++){ // If a duplicate is found, prevent it from being added and // optionally merge it into the existing model. if (id = (attrs = models[i]) instanceof Model ? model = attrs : attrs[targetModel.prototype.idAttribute], existing = this.get(id)) remove && (modelMap[existing.cid] = !0), merge && (attrs = attrs === model ? model.attributes : attrs, options.parse && (attrs = existing.parse(attrs, options)), existing.set(attrs, options), sortable && !sort && existing.hasChanged(sortAttr) && (sort = !0)), models[i] = existing; else if (add) { if (!(model = models[i] = this._prepareModel(attrs, options))) continue; toAdd.push(model), // Listen to added models' events, and index models for lookup by // `id` and by `cid`. model.on("all", this._onModelEvent, this), this._byId[model.cid] = model, null != model.id && (this._byId[model.id] = model); } order && order.push(existing || model); } // Remove nonexistent models if appropriate. if (remove) { for(i = 0, l = this.length; i < l; ++i)modelMap[(model = this.models[i]).cid] || toRemove.push(model); toRemove.length && this.remove(toRemove, options); } // See if sorting is needed, update `length` and splice in new models. if (toAdd.length || order && order.length) { if (sortable && (sort = !0), this.length += toAdd.length, null != at) for(i = 0, l = toAdd.length; i < l; i++)this.models.splice(at + i, 0, toAdd[i]); else { order && (this.models.length = 0); var orderedModels = order || toAdd; for(i = 0, l = orderedModels.length; i < l; i++)this.models.push(orderedModels[i]); } } // Unless silenced, it's time to fire all appropriate add/sort events. if (sort && this.sort({ silent: !0 }), !options.silent) { for(i = 0, l = toAdd.length; i < l; i++)(model = toAdd[i]).trigger("add", model, this, options); (sort || order && order.length) && this.trigger("sort", this, options); } // Return the added (or merged) model (or models). return singular ? models[0] : models; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/3/input.js
JavaScript
if (!name && !callback && !context) { console.log("foo"); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/3/output.js
JavaScript
name || callback || context || console.log("foo");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/4/input.js
JavaScript
function foo(attrs, options) { if (!options.validate || !this.validate) return !0; attrs = _.extend({}, this.attributes, attrs); var error = (this.validationError = this.validate(attrs, options) || null); if (!error) return !0; return ( this.trigger( "invalid", this, error, _.extend(options, { validationError: error, }) ), !1 ); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/4/output.js
JavaScript
function foo(attrs, options) { if (!options.validate || !this.validate) return !0; attrs = _.extend({}, this.attributes, attrs); var error = this.validationError = this.validate(attrs, options) || null; return !error || (this.trigger("invalid", this, error, _.extend(options, { validationError: error })), !1); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/5/input.js
JavaScript
export var Events = { // Bind an event to a `callback` function. Passing `"all"` will bind // the callback to all events fired. on: function (name, callback, context) { if (!eventsApi(this, "on", name, [callback, context]) || !callback) return this; this._events || (this._events = {}); var events = this._events[name] || (this._events[name] = []); events.push({ callback: callback, context: context, ctx: context || this, }); return this; }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/5/output.js
JavaScript
export var Events = { // Bind an event to a `callback` function. Passing `"all"` will bind // the callback to all events fired. on: function(name, callback, context) { return eventsApi(this, "on", name, [ callback, context ]) && callback && (this._events || (this._events = {}), (this._events[name] || (this._events[name] = [])).push({ callback: callback, context: context, ctx: context || this })), this; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/6/input.js
JavaScript
function foo() { return !error ? !0 : (this.trigger( "invalid", this, error, _.extend(options, { validationError: error, }) ), !1); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/6/output.js
JavaScript
function foo() { return !error || (this.trigger("invalid", this, error, _.extend(options, { validationError: error })), !1); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/7/input.js
JavaScript
function foo() { var collection = this, success = options.success; return ( (options.success = function (model, resp, options) { options.wait && collection.add(model, options), success && success(model, resp, options); }), model.save(null, options), model ); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/7/output.js
JavaScript
function foo() { var collection = this, success = options.success; return options.success = function(model1, resp, options1) { options1.wait && collection.add(model1, options1), success && success(model1, resp, options1); }, model.save(null, options), model; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/8/input.js
JavaScript
function foo() { return !model.validationError ? model : (this.trigger("invalid", this, model.validationError, options), !1); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/8/output.js
JavaScript
function foo() { return model.validationError ? (this.trigger("invalid", this, model.validationError, options), !1) : model; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/9/input.js
JavaScript
(function () { // Initial Setup // ------------- // Save a reference to the global object (`window` in the browser, `exports` // on the server). var root = this; // Save the previous value of the `Backbone` variable, so that it can be // restored later on, if `noConflict` is used. var previousBackbone = root.Backbone; // Create local references to array methods we'll want to use later. var array = []; var push = array.push; var slice = array.slice; var splice = array.splice; // The top-level namespace. All public Backbone classes and modules will // be attached to this. Exported for both the browser and the server. var Backbone; if (typeof exports !== "undefined") { Backbone = exports; } else { Backbone = root.Backbone = {}; } // Current version of the library. Keep in sync with `package.json`. Backbone.VERSION = "1.1.0"; // Require Underscore, if we're on the server, and it's not already present. var _ = root._; console.log(Backbone); })();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/backbone/9/output.js
JavaScript
!function() { // Create local references to array methods we'll want to use later. var Backbone; this.Backbone, // Current version of the library. Keep in sync with `package.json`. (Backbone = "undefined" != typeof exports ? exports : this.Backbone = {}).VERSION = "1.1.0", this._, console.log(Backbone); }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/.17/input.js
JavaScript
jQuery.fn.offset = function (options) { const core_strundefined = "undefined"; if (arguments.length) { return options === undefined ? this : this.each(function (i) { jQuery.offset.setOffset(this, options, i); }); } var docElem, win, box = { top: 0, left: 0 }, elem = this[0], doc = elem && elem.ownerDocument; if (!doc) { return; } docElem = doc.documentElement; // Make sure it's not a disconnected DOM node if (!jQuery.contains(docElem, elem)) { return box; } // If we don't have gBCR, just use 0,0 rather than error // BlackBerry 5, iOS 3 (original iPhone) if (typeof elem.getBoundingClientRect !== core_strundefined) { box = elem.getBoundingClientRect(); } win = getWindow(doc); return { top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0), }; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/.17/output.js
JavaScript
jQuery.fn.offset = function(options) { if (arguments.length) return void 0 === options ? this : this.each(function(i) { jQuery.offset.setOffset(this, options, i); }); var docElem, win, box = { top: 0, left: 0 }, elem = this[0], doc = elem && elem.ownerDocument; return doc ? (docElem = doc.documentElement, jQuery.contains(docElem, elem)) ? (void 0 !== elem.getBoundingClientRect && (box = elem.getBoundingClientRect()), win = getWindow(doc), { top: box.top + (win.pageYOffset || docElem.scrollTop) - (docElem.clientTop || 0), left: box.left + (win.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || 0) }) : box : void 0; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/.19/input.js
JavaScript
// Functions to create xhrs function createStandardXHR() { try { return new window.XMLHttpRequest(); } catch (e) {} } function createActiveXHR() { try { return new window.ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } // Create the request object // (This is still attached to ajaxSettings for backward compatibility) jQuery.ajaxSettings.xhr = window.ActiveXObject ? /* Microsoft failed to properly * implement the XMLHttpRequest in IE7 (can't request local files), * so we use the ActiveXObject when it is available * Additionally XMLHttpRequest can be disabled in IE7/IE8 so * we need a fallback. */ function () { return (!this.isLocal && createStandardXHR()) || createActiveXHR(); } : // For all other browsers, use the standard XMLHttpRequest object createStandardXHR;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/.19/output.js
JavaScript
function createStandardXHR() { try { return new window.XMLHttpRequest(); } catch (e) { } } function createActiveXHR() { try { return new window.ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { } } jQuery.ajaxSettings.xhr = window.ActiveXObject ? function() { return !this.isLocal && createStandardXHR() || createActiveXHR(); } : createStandardXHR;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/1/input.js
JavaScript
export const obj = { init: function (selector, context, rootjQuery) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if (!selector) { return this; } // Handle HTML strings if (typeof selector === "string") { if ( selector.charAt(0) === "<" && selector.charAt(selector.length - 1) === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [null, selector, null]; } else { match = rquickExpr.exec(selector); } // Match html or make sure no context is specified for #id if (match && (match[1] || !context)) { // HANDLE: $(html) -> $(array) if (match[1]) { context = context instanceof jQuery ? context[0] : context; // scripts is true for back-compat jQuery.merge( this, jQuery.parseHTML( match[1], context && context.nodeType ? context.ownerDocument || context : document, true ) ); // HANDLE: $(html, props) if ( rsingleTag.test(match[1]) && jQuery.isPlainObject(context) ) { for (match in context) { // Properties of context are called as methods if possible if (jQuery.isFunction(this[match])) { this[match](context[match]); // ...and otherwise set as attributes } else { this.attr(match, context[match]); } } } return this; // HANDLE: $(#id) } else { elem = document.getElementById(match[2]); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if (elem && elem.parentNode) { // Handle the case where IE and Opera return items // by name instead of ID if (elem.id !== match[2]) { return rootjQuery.find(selector); } // Otherwise, we inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $(expr, $(...)) } else if (!context || context.jquery) { return (context || rootjQuery).find(selector); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor(context).find(selector); } // HANDLE: $(DOMElement) } else if (selector.nodeType) { this.context = this[0] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready } else if (jQuery.isFunction(selector)) { return rootjQuery.ready(selector); } if (selector.selector !== undefined) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray(selector, this); }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/1/output.js
JavaScript
export const obj = { init: function(selector, context, rootjQuery) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if (!selector) return this; // Handle HTML strings if ("string" == typeof selector) { // Match html or make sure no context is specified for #id if ((// Assume that strings that start and end with <> are HTML and skip the regex check match = "<" === selector.charAt(0) && ">" === selector.charAt(selector.length - 1) && selector.length >= 3 ? [ null, selector, null ] : rquickExpr.exec(selector)) && (match[1] || !context)) { // HANDLE: $(html) -> $(array) if (match[1]) { // HANDLE: $(html, props) if (context = context instanceof jQuery ? context[0] : context, // scripts is true for back-compat jQuery.merge(this, jQuery.parseHTML(match[1], context && context.nodeType ? context.ownerDocument || context : document, !0)), rsingleTag.test(match[1]) && jQuery.isPlainObject(context)) for(match in context)// Properties of context are called as methods if possible jQuery.isFunction(this[match]) ? this[match](context[match]) : this.attr(match, context[match]); return this; // HANDLE: $(#id) } // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ((elem = document.getElementById(match[2])) && elem.parentNode) { // Handle the case where IE and Opera return items // by name instead of ID if (elem.id !== match[2]) return rootjQuery.find(selector); // Otherwise, we inject the element directly into the jQuery object this.length = 1, this[0] = elem; } return this.context = document, this.selector = selector, this; // HANDLE: $(expr, $(...)) } return !context || context.jquery ? (context || rootjQuery).find(selector) : this.constructor(context).find(selector); // HANDLE: $(DOMElement) } return selector.nodeType ? (this.context = this[0] = selector, this.length = 1, this) : jQuery.isFunction(selector) ? rootjQuery.ready(selector) : (void 0 !== selector.selector && (this.selector = selector.selector, this.context = selector.context), jQuery.makeArray(selector, this)); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/10/input.js
JavaScript
export const obj = { when: function (subordinate /* , ..., subordinateN */) { var i = 0, resolveValues = core_slice.call(arguments), length = resolveValues.length, // the count of uncompleted subordinates remaining = length !== 1 || (subordinate && jQuery.isFunction(subordinate.promise)) ? length : 0, // the master Deferred. If resolveValues consist of only a single Deferred, just use that. deferred = remaining === 1 ? subordinate : jQuery.Deferred(), // Update function for both resolve and progress values updateFunc = function (i, contexts, values) { return function (value) { contexts[i] = this; values[i] = arguments.length > 1 ? core_slice.call(arguments) : value; if (values === progressValues) { deferred.notifyWith(contexts, values); } else if (!--remaining) { deferred.resolveWith(contexts, values); } }; }, progressValues, progressContexts, resolveContexts; // add listeners to Deferred subordinates; treat others as resolved if (length > 1) { progressValues = new Array(length); progressContexts = new Array(length); resolveContexts = new Array(length); for (; i < length; i++) { if ( resolveValues[i] && jQuery.isFunction(resolveValues[i].promise) ) { resolveValues[i] .promise() .done(updateFunc(i, resolveContexts, resolveValues)) .fail(deferred.reject) .progress( updateFunc(i, progressContexts, progressValues) ); } else { --remaining; } } } // if we're not waiting on anything, resolve the master if (!remaining) { deferred.resolveWith(resolveContexts, resolveValues); } return deferred.promise(); }, };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/10/output.js
JavaScript
export const obj = { when: function(subordinate /* , ..., subordinateN */ ) { var progressValues, progressContexts, resolveContexts, i = 0, resolveValues = core_slice.call(arguments), length = resolveValues.length, // the count of uncompleted subordinates remaining = 1 !== length || subordinate && jQuery.isFunction(subordinate.promise) ? length : 0, // the master Deferred. If resolveValues consist of only a single Deferred, just use that. deferred = 1 === remaining ? subordinate : jQuery.Deferred(), // Update function for both resolve and progress values updateFunc = function(i, contexts, values) { return function(value) { contexts[i] = this, values[i] = arguments.length > 1 ? core_slice.call(arguments) : value, values === progressValues ? deferred.notifyWith(contexts, values) : --remaining || deferred.resolveWith(contexts, values); }; }; // add listeners to Deferred subordinates; treat others as resolved if (length > 1) for(progressValues = Array(length), progressContexts = Array(length), resolveContexts = Array(length); i < length; i++)resolveValues[i] && jQuery.isFunction(resolveValues[i].promise) ? resolveValues[i].promise().done(updateFunc(i, resolveContexts, resolveValues)).fail(deferred.reject).progress(updateFunc(i, progressContexts, progressValues)) : --remaining; return remaining || deferred.resolveWith(resolveContexts, resolveValues), deferred.promise(); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_minifier/tests/fixture/projects/jquery/11/input.js
JavaScript
jQuery.support = (function () { var support, all, a, input, select, fragment, opt, eventName, isSupported, i, div = document.createElement("div"); // Setup div.setAttribute("className", "t"); div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; // Support tests won't run in some limited or non-browser environments all = div.getElementsByTagName("*"); a = div.getElementsByTagName("a")[0]; if (!all || !a || !all.length) { return {}; } // First batch of tests select = document.createElement("select"); opt = select.appendChild(document.createElement("option")); input = div.getElementsByTagName("input")[0]; a.style.cssText = "top:1px;float:left;opacity:.5"; support = { // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) getSetAttribute: div.className !== "t", // IE strips leading whitespace when .innerHTML is used leadingWhitespace: div.firstChild.nodeType === 3, // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables tbody: !div.getElementsByTagName("tbody").length, // Make sure that link elements get serialized correctly by innerHTML // This requires a wrapper element in IE htmlSerialize: !!div.getElementsByTagName("link").length, // Get the style information from getAttribute // (IE uses .cssText instead) style: /top/.test(a.getAttribute("style")), // Make sure that URLs aren't manipulated // (IE normalizes it by default) hrefNormalized: a.getAttribute("href") === "/a", // Make sure that element opacity exists // (IE uses filter instead) // Use a regex to work around a WebKit issue. See #5145 opacity: /^0.5/.test(a.style.opacity), // Verify style float existence // (IE uses styleFloat instead of cssFloat) cssFloat: !!a.style.cssFloat, // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere) checkOn: !!input.value, // Make sure that a selected-by-default option has a working selected property. // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) optSelected: opt.selected, // Tests for enctype support on a form (#6743) enctype: !!document.createElement("form").enctype, // Makes sure cloning an html5 element does not cause problems // Where outerHTML is undefined, this still works html5Clone: document.createElement("nav").cloneNode(true).outerHTML !== "<:nav></:nav>", // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode boxModel: document.compatMode === "CSS1Compat", // Will be defined later deleteExpando: true, noCloneEvent: true, inlineBlockNeedsLayout: false, shrinkWrapBlocks: false, reliableMarginRight: true, boxSizingReliable: true, pixelPosition: false, }; // Make sure checked status is properly cloned input.checked = true; support.noCloneChecked = input.cloneNode(true).checked; // Make sure that the options inside disabled selects aren't marked as disabled // (WebKit marks them as disabled) select.disabled = true; support.optDisabled = !opt.disabled; // Support: IE<9 try { delete div.test; } catch (e) { support.deleteExpando = false; } // Check if we can trust getAttribute("value") input = document.createElement("input"); input.setAttribute("value", ""); support.input = input.getAttribute("value") === ""; // Check if an input maintains its value after becoming a radio input.value = "t"; input.setAttribute("type", "radio"); support.radioValue = input.value === "t"; // #11217 - WebKit loses check when the name is after the checked attribute input.setAttribute("checked", "t"); input.setAttribute("name", "t"); fragment = document.createDocumentFragment(); fragment.appendChild(input); // Check if a disconnected checkbox will retain its checked // value of true after appended to the DOM (IE6/7) support.appendChecked = input.checked; // WebKit doesn't clone checked state correctly in fragments support.checkClone = fragment .cloneNode(true) .cloneNode(true).lastChild.checked; // Support: IE<9 // Opera does not clone events (and typeof div.attachEvent === undefined). // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() if (div.attachEvent) { div.attachEvent("onclick", function () { support.noCloneEvent = false; }); div.cloneNode(true).click(); } // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event) // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php for (i in { submit: true, change: true, focusin: true }) { div.setAttribute((eventName = "on" + i), "t"); support[i + "Bubbles"] = eventName in window || div.attributes[eventName].expando === false; } div.style.backgroundClip = "content-box"; div.cloneNode(true).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box"; // Run tests that need a body at doc ready jQuery(function () { var container, marginDiv, tds, divReset = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;", body = document.getElementsByTagName("body")[0]; if (!body) { // Return for frameset docs that don't have a body return; } container = document.createElement("div"); container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; body.appendChild(container).appendChild(div); // Support: IE8 // Check if table cells still have offsetWidth/Height when they are set // to display:none and there are still other visible table cells in a // table row; if so, offsetWidth/Height are not reliable for use when // determining if an element has been hidden directly using // display:none (it is still safe to use offsets if a parent element is // hidden; don safety goggles and see bug #4512 for more information). div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>"; tds = div.getElementsByTagName("td"); tds[0].style.cssText = "padding:0;margin:0;border:0;display:none"; isSupported = tds[0].offsetHeight === 0; tds[0].style.display = ""; tds[1].style.display = "none"; // Support: IE8 // Check if empty table cells still have offsetWidth/Height support.reliableHiddenOffsets = isSupported && tds[0].offsetHeight === 0; // Check box-sizing and margin behavior div.innerHTML = ""; div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;"; support.boxSizing = div.offsetWidth === 4; support.doesNotIncludeMarginInBodyOffset = body.offsetTop !== 1; // Use window.getComputedStyle because jsdom on node.js will break without it. if (window.getComputedStyle) { support.pixelPosition = (window.getComputedStyle(div, null) || {}).top !== "1%"; support.boxSizingReliable = (window.getComputedStyle(div, null) || { width: "4px" }) .width === "4px"; // Check if div with explicit width and no margin-right incorrectly // gets computed margin-right based on width of container. (#3333) // Fails in WebKit before Feb 2011 nightlies // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right marginDiv = div.appendChild(document.createElement("div")); marginDiv.style.cssText = div.style.cssText = divReset; marginDiv.style.marginRight = marginDiv.style.width = "0"; div.style.width = "1px"; support.reliableMarginRight = !parseFloat( (window.getComputedStyle(marginDiv, null) || {}).marginRight ); } if (typeof div.style.zoom !== core_strundefined) { // Support: IE<8 // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving // them layout div.innerHTML = ""; div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; support.inlineBlockNeedsLayout = div.offsetWidth === 3; // Support: IE6 // Check if elements with layout shrink-wrap their children div.style.display = "block"; div.innerHTML = "<div></div>"; div.firstChild.style.width = "5px"; support.shrinkWrapBlocks = div.offsetWidth !== 3; if (support.inlineBlockNeedsLayout) { // Prevent IE 6 from affecting layout for positioned elements #11048 // Prevent IE from shrinking the body in IE 7 mode #12869 // Support: IE<8 body.style.zoom = 1; } } body.removeChild(container); // Null elements to avoid leaks in IE container = div = tds = marginDiv = null; }); // Null elements to avoid leaks in IE all = select = fragment = opt = a = input = null; return support; })();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University