{"version":3,"sources":["moment.min.js","toastr.min.js","angular-ui-router.min.js","angular-aria.min.js","angular-animate.min.js","ui-bootstrap-tpls-2.5.0.min.js","react.min.js","react-dom.min.js","Chart.min.js","angular-chart.min.js","trix.js","angular-trix.min.js","signature-pad.min.js","angular-signature.js","angular-sanitize.min.js","smart-table.min.js","angular-dragdrop.min.js","ngReact.min.js","react-bootstrap.min.js","ngplus-overlay.js","bootstrap-colorpicker-module.min.js","jquery.signalR.min.js","vfs_fonts.js","angular-touch.min.js","angular-slider.min.js"],"names":[],"mappings":"AAAA;AACA;ACDA;AACA;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5DA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5BA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AChLA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACRA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACTA;AACA;AACA;AACA;AACA;AACA","file":"../vendorBundle.js","sourcesContent":["!function (e, t) { \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = t() : \"function\" == typeof define && define.amd ? define(t) : e.moment = t() }(this, function () { \"use strict\"; var H; function f() { return H.apply(null, arguments) } function a(e) { return e instanceof Array || \"[object Array]\" === Object.prototype.toString.call(e) } function F(e) { return null != e && \"[object Object]\" === Object.prototype.toString.call(e) } function c(e, t) { return Object.prototype.hasOwnProperty.call(e, t) } function L(e) { if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(e).length; for (var t in e) if (c(e, t)) return; return 1 } function o(e) { return void 0 === e } function u(e) { return \"number\" == typeof e || \"[object Number]\" === Object.prototype.toString.call(e) } function V(e) { return e instanceof Date || \"[object Date]\" === Object.prototype.toString.call(e) } function G(e, t) { for (var n = [], s = e.length, i = 0; i < s; ++i)n.push(t(e[i], i)); return n } function E(e, t) { for (var n in t) c(t, n) && (e[n] = t[n]); return c(t, \"toString\") && (e.toString = t.toString), c(t, \"valueOf\") && (e.valueOf = t.valueOf), e } function l(e, t, n, s) { return Pt(e, t, n, s, !0).utc() } function m(e) { return null == e._pf && (e._pf = { empty: !1, unusedTokens: [], unusedInput: [], overflow: -2, charsLeftOver: 0, nullInput: !1, invalidEra: null, invalidMonth: null, invalidFormat: !1, userInvalidated: !1, iso: !1, parsedDateParts: [], era: null, meridiem: null, rfc2822: !1, weekdayMismatch: !1 }), e._pf } function A(e) { if (null == e._isValid) { var t = m(e), n = j.call(t.parsedDateParts, function (e) { return null != e }), n = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n); if (e._strict && (n = n && 0 === t.charsLeftOver && 0 === t.unusedTokens.length && void 0 === t.bigHour), null != Object.isFrozen && Object.isFrozen(e)) return n; e._isValid = n } return e._isValid } function I(e) { var t = l(NaN); return null != e ? E(m(t), e) : m(t).userInvalidated = !0, t } var j = Array.prototype.some || function (e) { for (var t = Object(this), n = t.length >>> 0, s = 0; s < n; s++)if (s in t && e.call(this, t[s], s, t)) return !0; return !1 }, Z = f.momentProperties = [], z = !1; function $(e, t) { var n, s, i, r = Z.length; if (o(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), o(t._i) || (e._i = t._i), o(t._f) || (e._f = t._f), o(t._l) || (e._l = t._l), o(t._strict) || (e._strict = t._strict), o(t._tzm) || (e._tzm = t._tzm), o(t._isUTC) || (e._isUTC = t._isUTC), o(t._offset) || (e._offset = t._offset), o(t._pf) || (e._pf = m(t)), o(t._locale) || (e._locale = t._locale), 0 < r) for (n = 0; n < r; n++)o(i = t[s = Z[n]]) || (e[s] = i); return e } function q(e) { $(this, e), this._d = new Date(null != e._d ? e._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), !1 === z && (z = !0, f.updateOffset(this), z = !1) } function h(e) { return e instanceof q || null != e && null != e._isAMomentObject } function B(e) { !1 === f.suppressDeprecationWarnings && \"undefined\" != typeof console && console.warn && console.warn(\"Deprecation warning: \" + e) } function e(r, a) { var o = !0; return E(function () { if (null != f.deprecationHandler && f.deprecationHandler(null, r), o) { for (var e, t, n = [], s = arguments.length, i = 0; i < s; i++) { if (e = \"\", \"object\" == typeof arguments[i]) { for (t in e += \"\\n[\" + i + \"] \", arguments[0]) c(arguments[0], t) && (e += t + \": \" + arguments[0][t] + \", \"); e = e.slice(0, -2) } else e = arguments[i]; n.push(e) } B(r + \"\\nArguments: \" + Array.prototype.slice.call(n).join(\"\") + \"\\n\" + (new Error).stack), o = !1 } return a.apply(this, arguments) }, a) } var J = {}; function Q(e, t) { null != f.deprecationHandler && f.deprecationHandler(e, t), J[e] || (B(t), J[e] = !0) } function d(e) { return \"undefined\" != typeof Function && e instanceof Function || \"[object Function]\" === Object.prototype.toString.call(e) } function X(e, t) { var n, s = E({}, e); for (n in t) c(t, n) && (F(e[n]) && F(t[n]) ? (s[n] = {}, E(s[n], e[n]), E(s[n], t[n])) : null != t[n] ? s[n] = t[n] : delete s[n]); for (n in e) c(e, n) && !c(t, n) && F(e[n]) && (s[n] = E({}, s[n])); return s } function K(e) { null != e && this.set(e) } f.suppressDeprecationWarnings = !1, f.deprecationHandler = null; var ee = Object.keys || function (e) { var t, n = []; for (t in e) c(e, t) && n.push(t); return n }; function r(e, t, n) { var s = \"\" + Math.abs(e); return (0 <= e ? n ? \"+\" : \"\" : \"-\") + Math.pow(10, Math.max(0, t - s.length)).toString().substr(1) + s } var te = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, ne = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g, se = {}, ie = {}; function s(e, t, n, s) { var i = \"string\" == typeof s ? function () { return this[s]() } : s; e && (ie[e] = i), t && (ie[t[0]] = function () { return r(i.apply(this, arguments), t[1], t[2]) }), n && (ie[n] = function () { return this.localeData().ordinal(i.apply(this, arguments), e) }) } function re(e, t) { return e.isValid() ? (t = ae(t, e.localeData()), se[t] = se[t] || function (s) { for (var e, i = s.match(te), t = 0, r = i.length; t < r; t++)ie[i[t]] ? i[t] = ie[i[t]] : i[t] = (e = i[t]).match(/\\[[\\s\\S]/) ? e.replace(/^\\[|\\]$/g, \"\") : e.replace(/\\\\/g, \"\"); return function (e) { for (var t = \"\", n = 0; n < r; n++)t += d(i[n]) ? i[n].call(e, s) : i[n]; return t } }(t), se[t](e)) : e.localeData().invalidDate() } function ae(e, t) { var n = 5; function s(e) { return t.longDateFormat(e) || e } for (ne.lastIndex = 0; 0 <= n && ne.test(e);)e = e.replace(ne, s), ne.lastIndex = 0, --n; return e } var oe = {}; function t(e, t) { var n = e.toLowerCase(); oe[n] = oe[n + \"s\"] = oe[t] = e } function _(e) { return \"string\" == typeof e ? oe[e] || oe[e.toLowerCase()] : void 0 } function ue(e) { var t, n, s = {}; for (n in e) c(e, n) && (t = _(n)) && (s[t] = e[n]); return s } var le = {}; function n(e, t) { le[e] = t } function he(e) { return e % 4 == 0 && e % 100 != 0 || e % 400 == 0 } function y(e) { return e < 0 ? Math.ceil(e) || 0 : Math.floor(e) } function g(e) { var e = +e, t = 0; return t = 0 != e && isFinite(e) ? y(e) : t } function de(t, n) { return function (e) { return null != e ? (fe(this, t, e), f.updateOffset(this, n), this) : ce(this, t) } } function ce(e, t) { return e.isValid() ? e._d[\"get\" + (e._isUTC ? \"UTC\" : \"\") + t]() : NaN } function fe(e, t, n) { e.isValid() && !isNaN(n) && (\"FullYear\" === t && he(e.year()) && 1 === e.month() && 29 === e.date() ? (n = g(n), e._d[\"set\" + (e._isUTC ? \"UTC\" : \"\") + t](n, e.month(), We(n, e.month()))) : e._d[\"set\" + (e._isUTC ? \"UTC\" : \"\") + t](n)) } var i = /\\d/, w = /\\d\\d/, me = /\\d{3}/, _e = /\\d{4}/, ye = /[+-]?\\d{6}/, p = /\\d\\d?/, ge = /\\d\\d\\d\\d?/, we = /\\d\\d\\d\\d\\d\\d?/, pe = /\\d{1,3}/, ke = /\\d{1,4}/, ve = /[+-]?\\d{1,6}/, Me = /\\d+/, De = /[+-]?\\d+/, Se = /Z|[+-]\\d\\d:?\\d\\d/gi, Ye = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, k = /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i; function v(e, n, s) { be[e] = d(n) ? n : function (e, t) { return e && s ? s : n } } function Oe(e, t) { return c(be, e) ? be[e](t._strict, t._locale) : new RegExp(M(e.replace(\"\\\\\", \"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (e, t, n, s, i) { return t || n || s || i }))) } function M(e) { return e.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\") } var be = {}, xe = {}; function D(e, n) { var t, s, i = n; for (\"string\" == typeof e && (e = [e]), u(n) && (i = function (e, t) { t[n] = g(e) }), s = e.length, t = 0; t < s; t++)xe[e[t]] = i } function Te(e, i) { D(e, function (e, t, n, s) { n._w = n._w || {}, i(e, n._w, n, s) }) } var S, Y = 0, O = 1, b = 2, x = 3, T = 4, N = 5, Ne = 6, Pe = 7, Re = 8; function We(e, t) { if (isNaN(e) || isNaN(t)) return NaN; var n = (t % (n = 12) + n) % n; return e += (t - n) / 12, 1 == n ? he(e) ? 29 : 28 : 31 - n % 7 % 2 } S = Array.prototype.indexOf || function (e) { for (var t = 0; t < this.length; ++t)if (this[t] === e) return t; return -1 }, s(\"M\", [\"MM\", 2], \"Mo\", function () { return this.month() + 1 }), s(\"MMM\", 0, 0, function (e) { return this.localeData().monthsShort(this, e) }), s(\"MMMM\", 0, 0, function (e) { return this.localeData().months(this, e) }), t(\"month\", \"M\"), n(\"month\", 8), v(\"M\", p), v(\"MM\", p, w), v(\"MMM\", function (e, t) { return t.monthsShortRegex(e) }), v(\"MMMM\", function (e, t) { return t.monthsRegex(e) }), D([\"M\", \"MM\"], function (e, t) { t[O] = g(e) - 1 }), D([\"MMM\", \"MMMM\"], function (e, t, n, s) { s = n._locale.monthsParse(e, s, n._strict); null != s ? t[O] = s : m(n).invalidMonth = e }); var Ce = \"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"), Ue = \"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\"), He = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/, Fe = k, Le = k; function Ve(e, t) { var n; if (e.isValid()) { if (\"string\" == typeof t) if (/^\\d+$/.test(t)) t = g(t); else if (!u(t = e.localeData().monthsParse(t))) return; n = Math.min(e.date(), We(e.year(), t)), e._d[\"set\" + (e._isUTC ? \"UTC\" : \"\") + \"Month\"](t, n) } } function Ge(e) { return null != e ? (Ve(this, e), f.updateOffset(this, !0), this) : ce(this, \"Month\") } function Ee() { function e(e, t) { return t.length - e.length } for (var t, n = [], s = [], i = [], r = 0; r < 12; r++)t = l([2e3, r]), n.push(this.monthsShort(t, \"\")), s.push(this.months(t, \"\")), i.push(this.months(t, \"\")), i.push(this.monthsShort(t, \"\")); for (n.sort(e), s.sort(e), i.sort(e), r = 0; r < 12; r++)n[r] = M(n[r]), s[r] = M(s[r]); for (r = 0; r < 24; r++)i[r] = M(i[r]); this._monthsRegex = new RegExp(\"^(\" + i.join(\"|\") + \")\", \"i\"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(\"^(\" + s.join(\"|\") + \")\", \"i\"), this._monthsShortStrictRegex = new RegExp(\"^(\" + n.join(\"|\") + \")\", \"i\") } function Ae(e) { return he(e) ? 366 : 365 } s(\"Y\", 0, 0, function () { var e = this.year(); return e <= 9999 ? r(e, 4) : \"+\" + e }), s(0, [\"YY\", 2], 0, function () { return this.year() % 100 }), s(0, [\"YYYY\", 4], 0, \"year\"), s(0, [\"YYYYY\", 5], 0, \"year\"), s(0, [\"YYYYYY\", 6, !0], 0, \"year\"), t(\"year\", \"y\"), n(\"year\", 1), v(\"Y\", De), v(\"YY\", p, w), v(\"YYYY\", ke, _e), v(\"YYYYY\", ve, ye), v(\"YYYYYY\", ve, ye), D([\"YYYYY\", \"YYYYYY\"], Y), D(\"YYYY\", function (e, t) { t[Y] = 2 === e.length ? f.parseTwoDigitYear(e) : g(e) }), D(\"YY\", function (e, t) { t[Y] = f.parseTwoDigitYear(e) }), D(\"Y\", function (e, t) { t[Y] = parseInt(e, 10) }), f.parseTwoDigitYear = function (e) { return g(e) + (68 < g(e) ? 1900 : 2e3) }; var Ie = de(\"FullYear\", !0); function je(e, t, n, s, i, r, a) { var o; return e < 100 && 0 <= e ? (o = new Date(e + 400, t, n, s, i, r, a), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, i, r, a), o } function Ze(e) { var t; return e < 100 && 0 <= e ? ((t = Array.prototype.slice.call(arguments))[0] = e + 400, t = new Date(Date.UTC.apply(null, t)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t } function ze(e, t, n) { n = 7 + t - n; return n - (7 + Ze(e, 0, n).getUTCDay() - t) % 7 - 1 } function $e(e, t, n, s, i) { var r, t = 1 + 7 * (t - 1) + (7 + n - s) % 7 + ze(e, s, i), n = t <= 0 ? Ae(r = e - 1) + t : t > Ae(e) ? (r = e + 1, t - Ae(e)) : (r = e, t); return { year: r, dayOfYear: n } } function qe(e, t, n) { var s, i, r = ze(e.year(), t, n), r = Math.floor((e.dayOfYear() - r - 1) / 7) + 1; return r < 1 ? s = r + P(i = e.year() - 1, t, n) : r > P(e.year(), t, n) ? (s = r - P(e.year(), t, n), i = e.year() + 1) : (i = e.year(), s = r), { week: s, year: i } } function P(e, t, n) { var s = ze(e, t, n), t = ze(e + 1, t, n); return (Ae(e) - s + t) / 7 } s(\"w\", [\"ww\", 2], \"wo\", \"week\"), s(\"W\", [\"WW\", 2], \"Wo\", \"isoWeek\"), t(\"week\", \"w\"), t(\"isoWeek\", \"W\"), n(\"week\", 5), n(\"isoWeek\", 5), v(\"w\", p), v(\"ww\", p, w), v(\"W\", p), v(\"WW\", p, w), Te([\"w\", \"ww\", \"W\", \"WW\"], function (e, t, n, s) { t[s.substr(0, 1)] = g(e) }); function Be(e, t) { return e.slice(t, 7).concat(e.slice(0, t)) } s(\"d\", 0, \"do\", \"day\"), s(\"dd\", 0, 0, function (e) { return this.localeData().weekdaysMin(this, e) }), s(\"ddd\", 0, 0, function (e) { return this.localeData().weekdaysShort(this, e) }), s(\"dddd\", 0, 0, function (e) { return this.localeData().weekdays(this, e) }), s(\"e\", 0, 0, \"weekday\"), s(\"E\", 0, 0, \"isoWeekday\"), t(\"day\", \"d\"), t(\"weekday\", \"e\"), t(\"isoWeekday\", \"E\"), n(\"day\", 11), n(\"weekday\", 11), n(\"isoWeekday\", 11), v(\"d\", p), v(\"e\", p), v(\"E\", p), v(\"dd\", function (e, t) { return t.weekdaysMinRegex(e) }), v(\"ddd\", function (e, t) { return t.weekdaysShortRegex(e) }), v(\"dddd\", function (e, t) { return t.weekdaysRegex(e) }), Te([\"dd\", \"ddd\", \"dddd\"], function (e, t, n, s) { s = n._locale.weekdaysParse(e, s, n._strict); null != s ? t.d = s : m(n).invalidWeekday = e }), Te([\"d\", \"e\", \"E\"], function (e, t, n, s) { t[s] = g(e) }); var Je = \"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"), Qe = \"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\"), Xe = \"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\"), Ke = k, et = k, tt = k; function nt() { function e(e, t) { return t.length - e.length } for (var t, n, s, i = [], r = [], a = [], o = [], u = 0; u < 7; u++)s = l([2e3, 1]).day(u), t = M(this.weekdaysMin(s, \"\")), n = M(this.weekdaysShort(s, \"\")), s = M(this.weekdays(s, \"\")), i.push(t), r.push(n), a.push(s), o.push(t), o.push(n), o.push(s); i.sort(e), r.sort(e), a.sort(e), o.sort(e), this._weekdaysRegex = new RegExp(\"^(\" + o.join(\"|\") + \")\", \"i\"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(\"^(\" + a.join(\"|\") + \")\", \"i\"), this._weekdaysShortStrictRegex = new RegExp(\"^(\" + r.join(\"|\") + \")\", \"i\"), this._weekdaysMinStrictRegex = new RegExp(\"^(\" + i.join(\"|\") + \")\", \"i\") } function st() { return this.hours() % 12 || 12 } function it(e, t) { s(e, 0, 0, function () { return this.localeData().meridiem(this.hours(), this.minutes(), t) }) } function rt(e, t) { return t._meridiemParse } s(\"H\", [\"HH\", 2], 0, \"hour\"), s(\"h\", [\"hh\", 2], 0, st), s(\"k\", [\"kk\", 2], 0, function () { return this.hours() || 24 }), s(\"hmm\", 0, 0, function () { return \"\" + st.apply(this) + r(this.minutes(), 2) }), s(\"hmmss\", 0, 0, function () { return \"\" + st.apply(this) + r(this.minutes(), 2) + r(this.seconds(), 2) }), s(\"Hmm\", 0, 0, function () { return \"\" + this.hours() + r(this.minutes(), 2) }), s(\"Hmmss\", 0, 0, function () { return \"\" + this.hours() + r(this.minutes(), 2) + r(this.seconds(), 2) }), it(\"a\", !0), it(\"A\", !1), t(\"hour\", \"h\"), n(\"hour\", 13), v(\"a\", rt), v(\"A\", rt), v(\"H\", p), v(\"h\", p), v(\"k\", p), v(\"HH\", p, w), v(\"hh\", p, w), v(\"kk\", p, w), v(\"hmm\", ge), v(\"hmmss\", we), v(\"Hmm\", ge), v(\"Hmmss\", we), D([\"H\", \"HH\"], x), D([\"k\", \"kk\"], function (e, t, n) { e = g(e); t[x] = 24 === e ? 0 : e }), D([\"a\", \"A\"], function (e, t, n) { n._isPm = n._locale.isPM(e), n._meridiem = e }), D([\"h\", \"hh\"], function (e, t, n) { t[x] = g(e), m(n).bigHour = !0 }), D(\"hmm\", function (e, t, n) { var s = e.length - 2; t[x] = g(e.substr(0, s)), t[T] = g(e.substr(s)), m(n).bigHour = !0 }), D(\"hmmss\", function (e, t, n) { var s = e.length - 4, i = e.length - 2; t[x] = g(e.substr(0, s)), t[T] = g(e.substr(s, 2)), t[N] = g(e.substr(i)), m(n).bigHour = !0 }), D(\"Hmm\", function (e, t, n) { var s = e.length - 2; t[x] = g(e.substr(0, s)), t[T] = g(e.substr(s)) }), D(\"Hmmss\", function (e, t, n) { var s = e.length - 4, i = e.length - 2; t[x] = g(e.substr(0, s)), t[T] = g(e.substr(s, 2)), t[N] = g(e.substr(i)) }); k = de(\"Hours\", !0); var at, ot = { calendar: { sameDay: \"[Today at] LT\", nextDay: \"[Tomorrow at] LT\", nextWeek: \"dddd [at] LT\", lastDay: \"[Yesterday at] LT\", lastWeek: \"[Last] dddd [at] LT\", sameElse: \"L\" }, longDateFormat: { LTS: \"h:mm:ss A\", LT: \"h:mm A\", L: \"MM/DD/YYYY\", LL: \"MMMM D, YYYY\", LLL: \"MMMM D, YYYY h:mm A\", LLLL: \"dddd, MMMM D, YYYY h:mm A\" }, invalidDate: \"Invalid date\", ordinal: \"%d\", dayOfMonthOrdinalParse: /\\d{1,2}/, relativeTime: { future: \"in %s\", past: \"%s ago\", s: \"a few seconds\", ss: \"%d seconds\", m: \"a minute\", mm: \"%d minutes\", h: \"an hour\", hh: \"%d hours\", d: \"a day\", dd: \"%d days\", w: \"a week\", ww: \"%d weeks\", M: \"a month\", MM: \"%d months\", y: \"a year\", yy: \"%d years\" }, months: Ce, monthsShort: Ue, week: { dow: 0, doy: 6 }, weekdays: Je, weekdaysMin: Xe, weekdaysShort: Qe, meridiemParse: /[ap]\\.?m?\\.?/i }, R = {}, ut = {}; function lt(e) { return e && e.toLowerCase().replace(\"_\", \"-\") } function ht(e) { for (var t, n, s, i, r = 0; r < e.length;) { for (t = (i = lt(e[r]).split(\"-\")).length, n = (n = lt(e[r + 1])) ? n.split(\"-\") : null; 0 < t;) { if (s = dt(i.slice(0, t).join(\"-\"))) return s; if (n && n.length >= t && function (e, t) { for (var n = Math.min(e.length, t.length), s = 0; s < n; s += 1)if (e[s] !== t[s]) return s; return n }(i, n) >= t - 1) break; t-- } r++ } return at } function dt(t) { var e; if (void 0 === R[t] && \"undefined\" != typeof module && module && module.exports && null != t.match(\"^[^/\\\\\\\\]*$\")) try { e = at._abbr, require(\"./locale/\" + t), ct(e) } catch (e) { R[t] = null } return R[t] } function ct(e, t) { return e && ((t = o(t) ? mt(e) : ft(e, t)) ? at = t : \"undefined\" != typeof console && console.warn && console.warn(\"Locale \" + e + \" not found. Did you forget to load it?\")), at._abbr } function ft(e, t) { if (null === t) return delete R[e], null; var n, s = ot; if (t.abbr = e, null != R[e]) Q(\"defineLocaleOverride\", \"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"), s = R[e]._config; else if (null != t.parentLocale) if (null != R[t.parentLocale]) s = R[t.parentLocale]._config; else { if (null == (n = dt(t.parentLocale))) return ut[t.parentLocale] || (ut[t.parentLocale] = []), ut[t.parentLocale].push({ name: e, config: t }), null; s = n._config } return R[e] = new K(X(s, t)), ut[e] && ut[e].forEach(function (e) { ft(e.name, e.config) }), ct(e), R[e] } function mt(e) { var t; if (!(e = e && e._locale && e._locale._abbr ? e._locale._abbr : e)) return at; if (!a(e)) { if (t = dt(e)) return t; e = [e] } return ht(e) } function _t(e) { var t = e._a; return t && -2 === m(e).overflow && (t = t[O] < 0 || 11 < t[O] ? O : t[b] < 1 || t[b] > We(t[Y], t[O]) ? b : t[x] < 0 || 24 < t[x] || 24 === t[x] && (0 !== t[T] || 0 !== t[N] || 0 !== t[Ne]) ? x : t[T] < 0 || 59 < t[T] ? T : t[N] < 0 || 59 < t[N] ? N : t[Ne] < 0 || 999 < t[Ne] ? Ne : -1, m(e)._overflowDayOfYear && (t < Y || b < t) && (t = b), m(e)._overflowWeeks && -1 === t && (t = Pe), m(e)._overflowWeekday && -1 === t && (t = Re), m(e).overflow = t), e } var yt = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/, gt = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/, wt = /Z|[+-]\\d\\d(?::?\\d\\d)?/, pt = [[\"YYYYYY-MM-DD\", /[+-]\\d{6}-\\d\\d-\\d\\d/], [\"YYYY-MM-DD\", /\\d{4}-\\d\\d-\\d\\d/], [\"GGGG-[W]WW-E\", /\\d{4}-W\\d\\d-\\d/], [\"GGGG-[W]WW\", /\\d{4}-W\\d\\d/, !1], [\"YYYY-DDD\", /\\d{4}-\\d{3}/], [\"YYYY-MM\", /\\d{4}-\\d\\d/, !1], [\"YYYYYYMMDD\", /[+-]\\d{10}/], [\"YYYYMMDD\", /\\d{8}/], [\"GGGG[W]WWE\", /\\d{4}W\\d{3}/], [\"GGGG[W]WW\", /\\d{4}W\\d{2}/, !1], [\"YYYYDDD\", /\\d{7}/], [\"YYYYMM\", /\\d{6}/, !1], [\"YYYY\", /\\d{4}/, !1]], kt = [[\"HH:mm:ss.SSSS\", /\\d\\d:\\d\\d:\\d\\d\\.\\d+/], [\"HH:mm:ss,SSSS\", /\\d\\d:\\d\\d:\\d\\d,\\d+/], [\"HH:mm:ss\", /\\d\\d:\\d\\d:\\d\\d/], [\"HH:mm\", /\\d\\d:\\d\\d/], [\"HHmmss.SSSS\", /\\d\\d\\d\\d\\d\\d\\.\\d+/], [\"HHmmss,SSSS\", /\\d\\d\\d\\d\\d\\d,\\d+/], [\"HHmmss\", /\\d\\d\\d\\d\\d\\d/], [\"HHmm\", /\\d\\d\\d\\d/], [\"HH\", /\\d\\d/]], vt = /^\\/?Date\\((-?\\d+)/i, Mt = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/, Dt = { UT: 0, GMT: 0, EDT: -240, EST: -300, CDT: -300, CST: -360, MDT: -360, MST: -420, PDT: -420, PST: -480 }; function St(e) { var t, n, s, i, r, a, o = e._i, u = yt.exec(o) || gt.exec(o), o = pt.length, l = kt.length; if (u) { for (m(e).iso = !0, t = 0, n = o; t < n; t++)if (pt[t][1].exec(u[1])) { i = pt[t][0], s = !1 !== pt[t][2]; break } if (null == i) e._isValid = !1; else { if (u[3]) { for (t = 0, n = l; t < n; t++)if (kt[t][1].exec(u[3])) { r = (u[2] || \" \") + kt[t][0]; break } if (null == r) return void (e._isValid = !1) } if (s || null == r) { if (u[4]) { if (!wt.exec(u[4])) return void (e._isValid = !1); a = \"Z\" } e._f = i + (r || \"\") + (a || \"\"), Tt(e) } else e._isValid = !1 } } else e._isValid = !1 } function Yt(e, t, n, s, i, r) { e = [function (e) { e = parseInt(e, 10); { if (e <= 49) return 2e3 + e; if (e <= 999) return 1900 + e } return e }(e), Ue.indexOf(t), parseInt(n, 10), parseInt(s, 10), parseInt(i, 10)]; return r && e.push(parseInt(r, 10)), e } function Ot(e) { var t, n, s, i, r = Mt.exec(e._i.replace(/\\([^)]*\\)|[\\n\\t]/g, \" \").replace(/(\\s\\s+)/g, \" \").replace(/^\\s\\s*/, \"\").replace(/\\s\\s*$/, \"\")); r ? (t = Yt(r[4], r[3], r[2], r[5], r[6], r[7]), n = r[1], s = t, i = e, n && Qe.indexOf(n) !== new Date(s[0], s[1], s[2]).getDay() ? (m(i).weekdayMismatch = !0, i._isValid = !1) : (e._a = t, e._tzm = (n = r[8], s = r[9], i = r[10], n ? Dt[n] : s ? 0 : 60 * (((n = parseInt(i, 10)) - (s = n % 100)) / 100) + s), e._d = Ze.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), m(e).rfc2822 = !0)) : e._isValid = !1 } function bt(e, t, n) { return null != e ? e : null != t ? t : n } function xt(e) { var t, n, s, i, r, a, o, u, l, h, d, c = []; if (!e._d) { for (s = e, i = new Date(f.now()), n = s._useUTC ? [i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()] : [i.getFullYear(), i.getMonth(), i.getDate()], e._w && null == e._a[b] && null == e._a[O] && (null != (i = (s = e)._w).GG || null != i.W || null != i.E ? (u = 1, l = 4, r = bt(i.GG, s._a[Y], qe(W(), 1, 4).year), a = bt(i.W, 1), ((o = bt(i.E, 1)) < 1 || 7 < o) && (h = !0)) : (u = s._locale._week.dow, l = s._locale._week.doy, d = qe(W(), u, l), r = bt(i.gg, s._a[Y], d.year), a = bt(i.w, d.week), null != i.d ? ((o = i.d) < 0 || 6 < o) && (h = !0) : null != i.e ? (o = i.e + u, (i.e < 0 || 6 < i.e) && (h = !0)) : o = u), a < 1 || a > P(r, u, l) ? m(s)._overflowWeeks = !0 : null != h ? m(s)._overflowWeekday = !0 : (d = $e(r, a, o, u, l), s._a[Y] = d.year, s._dayOfYear = d.dayOfYear)), null != e._dayOfYear && (i = bt(e._a[Y], n[Y]), (e._dayOfYear > Ae(i) || 0 === e._dayOfYear) && (m(e)._overflowDayOfYear = !0), h = Ze(i, 0, e._dayOfYear), e._a[O] = h.getUTCMonth(), e._a[b] = h.getUTCDate()), t = 0; t < 3 && null == e._a[t]; ++t)e._a[t] = c[t] = n[t]; for (; t < 7; t++)e._a[t] = c[t] = null == e._a[t] ? 2 === t ? 1 : 0 : e._a[t]; 24 === e._a[x] && 0 === e._a[T] && 0 === e._a[N] && 0 === e._a[Ne] && (e._nextDay = !0, e._a[x] = 0), e._d = (e._useUTC ? Ze : je).apply(null, c), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[x] = 24), e._w && void 0 !== e._w.d && e._w.d !== r && (m(e).weekdayMismatch = !0) } } function Tt(e) { if (e._f === f.ISO_8601) St(e); else if (e._f === f.RFC_2822) Ot(e); else { e._a = [], m(e).empty = !0; for (var t, n, s, i, r, a = \"\" + e._i, o = a.length, u = 0, l = ae(e._f, e._locale).match(te) || [], h = l.length, d = 0; d < h; d++)n = l[d], (t = (a.match(Oe(n, e)) || [])[0]) && (0 < (s = a.substr(0, a.indexOf(t))).length && m(e).unusedInput.push(s), a = a.slice(a.indexOf(t) + t.length), u += t.length), ie[n] ? (t ? m(e).empty = !1 : m(e).unusedTokens.push(n), s = n, r = e, null != (i = t) && c(xe, s) && xe[s](i, r._a, r, s)) : e._strict && !t && m(e).unusedTokens.push(n); m(e).charsLeftOver = o - u, 0 < a.length && m(e).unusedInput.push(a), e._a[x] <= 12 && !0 === m(e).bigHour && 0 < e._a[x] && (m(e).bigHour = void 0), m(e).parsedDateParts = e._a.slice(0), m(e).meridiem = e._meridiem, e._a[x] = function (e, t, n) { if (null == n) return t; return null != e.meridiemHour ? e.meridiemHour(t, n) : null != e.isPM ? ((e = e.isPM(n)) && t < 12 && (t += 12), t = e || 12 !== t ? t : 0) : t }(e._locale, e._a[x], e._meridiem), null !== (o = m(e).era) && (e._a[Y] = e._locale.erasConvertYear(o, e._a[Y])), xt(e), _t(e) } } function Nt(e) { var t, n, s, i = e._i, r = e._f; if (e._locale = e._locale || mt(e._l), null === i || void 0 === r && \"\" === i) return I({ nullInput: !0 }); if (\"string\" == typeof i && (e._i = i = e._locale.preparse(i)), h(i)) return new q(_t(i)); if (V(i)) e._d = i; else if (a(r)) !function (e) { var t, n, s, i, r, a, o = !1, u = e._f.length; if (0 === u) return m(e).invalidFormat = !0, e._d = new Date(NaN); for (i = 0; i < u; i++)r = 0, a = !1, t = $({}, e), null != e._useUTC && (t._useUTC = e._useUTC), t._f = e._f[i], Tt(t), A(t) && (a = !0), r = (r += m(t).charsLeftOver) + 10 * m(t).unusedTokens.length, m(t).score = r, o ? r < s && (s = r, n = t) : (null == s || r < s || a) && (s = r, n = t, a && (o = !0)); E(e, n || t) }(e); else if (r) Tt(e); else if (o(r = (i = e)._i)) i._d = new Date(f.now()); else V(r) ? i._d = new Date(r.valueOf()) : \"string\" == typeof r ? (n = i, null !== (t = vt.exec(n._i)) ? n._d = new Date(+t[1]) : (St(n), !1 === n._isValid && (delete n._isValid, Ot(n), !1 === n._isValid && (delete n._isValid, n._strict ? n._isValid = !1 : f.createFromInputFallback(n))))) : a(r) ? (i._a = G(r.slice(0), function (e) { return parseInt(e, 10) }), xt(i)) : F(r) ? (t = i)._d || (s = void 0 === (n = ue(t._i)).day ? n.date : n.day, t._a = G([n.year, n.month, s, n.hour, n.minute, n.second, n.millisecond], function (e) { return e && parseInt(e, 10) }), xt(t)) : u(r) ? i._d = new Date(r) : f.createFromInputFallback(i); return A(e) || (e._d = null), e } function Pt(e, t, n, s, i) { var r = {}; return !0 !== t && !1 !== t || (s = t, t = void 0), !0 !== n && !1 !== n || (s = n, n = void 0), (F(e) && L(e) || a(e) && 0 === e.length) && (e = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = n, r._i = e, r._f = t, r._strict = s, (i = new q(_t(Nt(i = r))))._nextDay && (i.add(1, \"d\"), i._nextDay = void 0), i } function W(e, t, n, s) { return Pt(e, t, n, s, !1) } f.createFromInputFallback = e(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\", function (e) { e._d = new Date(e._i + (e._useUTC ? \" UTC\" : \"\")) }), f.ISO_8601 = function () { }, f.RFC_2822 = function () { }; ge = e(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\", function () { var e = W.apply(null, arguments); return this.isValid() && e.isValid() ? e < this ? this : e : I() }), we = e(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\", function () { var e = W.apply(null, arguments); return this.isValid() && e.isValid() ? this < e ? this : e : I() }); function Rt(e, t) { var n, s; if (!(t = 1 === t.length && a(t[0]) ? t[0] : t).length) return W(); for (n = t[0], s = 1; s < t.length; ++s)t[s].isValid() && !t[s][e](n) || (n = t[s]); return n } var Wt = [\"year\", \"quarter\", \"month\", \"week\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"]; function Ct(e) { var e = ue(e), t = e.year || 0, n = e.quarter || 0, s = e.month || 0, i = e.week || e.isoWeek || 0, r = e.day || 0, a = e.hour || 0, o = e.minute || 0, u = e.second || 0, l = e.millisecond || 0; this._isValid = function (e) { var t, n, s = !1, i = Wt.length; for (t in e) if (c(e, t) && (-1 === S.call(Wt, t) || null != e[t] && isNaN(e[t]))) return !1; for (n = 0; n < i; ++n)if (e[Wt[n]]) { if (s) return !1; parseFloat(e[Wt[n]]) !== g(e[Wt[n]]) && (s = !0) } return !0 }(e), this._milliseconds = +l + 1e3 * u + 6e4 * o + 1e3 * a * 60 * 60, this._days = +r + 7 * i, this._months = +s + 3 * n + 12 * t, this._data = {}, this._locale = mt(), this._bubble() } function Ut(e) { return e instanceof Ct } function Ht(e) { return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e) } function Ft(e, n) { s(e, 0, 0, function () { var e = this.utcOffset(), t = \"+\"; return e < 0 && (e = -e, t = \"-\"), t + r(~~(e / 60), 2) + n + r(~~e % 60, 2) }) } Ft(\"Z\", \":\"), Ft(\"ZZ\", \"\"), v(\"Z\", Ye), v(\"ZZ\", Ye), D([\"Z\", \"ZZ\"], function (e, t, n) { n._useUTC = !0, n._tzm = Vt(Ye, e) }); var Lt = /([\\+\\-]|\\d\\d)/gi; function Vt(e, t) { var t = (t || \"\").match(e); return null === t ? null : 0 === (t = 60 * (e = ((t[t.length - 1] || []) + \"\").match(Lt) || [\"-\", 0, 0])[1] + g(e[2])) ? 0 : \"+\" === e[0] ? t : -t } function Gt(e, t) { var n; return t._isUTC ? (t = t.clone(), n = (h(e) || V(e) ? e : W(e)).valueOf() - t.valueOf(), t._d.setTime(t._d.valueOf() + n), f.updateOffset(t, !1), t) : W(e).local() } function Et(e) { return -Math.round(e._d.getTimezoneOffset()) } function At() { return !!this.isValid() && (this._isUTC && 0 === this._offset) } f.updateOffset = function () { }; var It = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/, jt = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; function C(e, t) { var n, s = e, i = null; return Ut(e) ? s = { ms: e._milliseconds, d: e._days, M: e._months } : u(e) || !isNaN(+e) ? (s = {}, t ? s[t] = +e : s.milliseconds = +e) : (i = It.exec(e)) ? (n = \"-\" === i[1] ? -1 : 1, s = { y: 0, d: g(i[b]) * n, h: g(i[x]) * n, m: g(i[T]) * n, s: g(i[N]) * n, ms: g(Ht(1e3 * i[Ne])) * n }) : (i = jt.exec(e)) ? (n = \"-\" === i[1] ? -1 : 1, s = { y: Zt(i[2], n), M: Zt(i[3], n), w: Zt(i[4], n), d: Zt(i[5], n), h: Zt(i[6], n), m: Zt(i[7], n), s: Zt(i[8], n) }) : null == s ? s = {} : \"object\" == typeof s && (\"from\" in s || \"to\" in s) && (t = function (e, t) { var n; if (!e.isValid() || !t.isValid()) return { milliseconds: 0, months: 0 }; t = Gt(t, e), e.isBefore(t) ? n = zt(e, t) : ((n = zt(t, e)).milliseconds = -n.milliseconds, n.months = -n.months); return n }(W(s.from), W(s.to)), (s = {}).ms = t.milliseconds, s.M = t.months), i = new Ct(s), Ut(e) && c(e, \"_locale\") && (i._locale = e._locale), Ut(e) && c(e, \"_isValid\") && (i._isValid = e._isValid), i } function Zt(e, t) { e = e && parseFloat(e.replace(\",\", \".\")); return (isNaN(e) ? 0 : e) * t } function zt(e, t) { var n = {}; return n.months = t.month() - e.month() + 12 * (t.year() - e.year()), e.clone().add(n.months, \"M\").isAfter(t) && --n.months, n.milliseconds = +t - +e.clone().add(n.months, \"M\"), n } function $t(s, i) { return function (e, t) { var n; return null === t || isNaN(+t) || (Q(i, \"moment().\" + i + \"(period, number) is deprecated. Please use moment().\" + i + \"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\"), n = e, e = t, t = n), qt(this, C(e, t), s), this } } function qt(e, t, n, s) { var i = t._milliseconds, r = Ht(t._days), t = Ht(t._months); e.isValid() && (s = null == s || s, t && Ve(e, ce(e, \"Month\") + t * n), r && fe(e, \"Date\", ce(e, \"Date\") + r * n), i && e._d.setTime(e._d.valueOf() + i * n), s && f.updateOffset(e, r || t)) } C.fn = Ct.prototype, C.invalid = function () { return C(NaN) }; Ce = $t(1, \"add\"), Je = $t(-1, \"subtract\"); function Bt(e) { return \"string\" == typeof e || e instanceof String } function Jt(e) { return h(e) || V(e) || Bt(e) || u(e) || function (t) { var e = a(t), n = !1; e && (n = 0 === t.filter(function (e) { return !u(e) && Bt(t) }).length); return e && n }(e) || function (e) { var t, n, s = F(e) && !L(e), i = !1, r = [\"years\", \"year\", \"y\", \"months\", \"month\", \"M\", \"days\", \"day\", \"d\", \"dates\", \"date\", \"D\", \"hours\", \"hour\", \"h\", \"minutes\", \"minute\", \"m\", \"seconds\", \"second\", \"s\", \"milliseconds\", \"millisecond\", \"ms\"], a = r.length; for (t = 0; t < a; t += 1)n = r[t], i = i || c(e, n); return s && i }(e) || null == e } function Qt(e, t) { if (e.date() < t.date()) return -Qt(t, e); var n = 12 * (t.year() - e.year()) + (t.month() - e.month()), s = e.clone().add(n, \"months\"), t = t - s < 0 ? (t - s) / (s - e.clone().add(n - 1, \"months\")) : (t - s) / (e.clone().add(1 + n, \"months\") - s); return -(n + t) || 0 } function Xt(e) { return void 0 === e ? this._locale._abbr : (null != (e = mt(e)) && (this._locale = e), this) } f.defaultFormat = \"YYYY-MM-DDTHH:mm:ssZ\", f.defaultFormatUtc = \"YYYY-MM-DDTHH:mm:ss[Z]\"; Xe = e(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\", function (e) { return void 0 === e ? this.localeData() : this.locale(e) }); function Kt() { return this._locale } var en = 126227808e5; function tn(e, t) { return (e % t + t) % t } function nn(e, t, n) { return e < 100 && 0 <= e ? new Date(e + 400, t, n) - en : new Date(e, t, n).valueOf() } function sn(e, t, n) { return e < 100 && 0 <= e ? Date.UTC(e + 400, t, n) - en : Date.UTC(e, t, n) } function rn(e, t) { return t.erasAbbrRegex(e) } function an() { for (var e = [], t = [], n = [], s = [], i = this.eras(), r = 0, a = i.length; r < a; ++r)t.push(M(i[r].name)), e.push(M(i[r].abbr)), n.push(M(i[r].narrow)), s.push(M(i[r].name)), s.push(M(i[r].abbr)), s.push(M(i[r].narrow)); this._erasRegex = new RegExp(\"^(\" + s.join(\"|\") + \")\", \"i\"), this._erasNameRegex = new RegExp(\"^(\" + t.join(\"|\") + \")\", \"i\"), this._erasAbbrRegex = new RegExp(\"^(\" + e.join(\"|\") + \")\", \"i\"), this._erasNarrowRegex = new RegExp(\"^(\" + n.join(\"|\") + \")\", \"i\") } function on(e, t) { s(0, [e, e.length], 0, t) } function un(e, t, n, s, i) { var r; return null == e ? qe(this, s, i).year : (r = P(e, s, i), function (e, t, n, s, i) { e = $e(e, t, n, s, i), t = Ze(e.year, 0, e.dayOfYear); return this.year(t.getUTCFullYear()), this.month(t.getUTCMonth()), this.date(t.getUTCDate()), this }.call(this, e, t = r < t ? r : t, n, s, i)) } s(\"N\", 0, 0, \"eraAbbr\"), s(\"NN\", 0, 0, \"eraAbbr\"), s(\"NNN\", 0, 0, \"eraAbbr\"), s(\"NNNN\", 0, 0, \"eraName\"), s(\"NNNNN\", 0, 0, \"eraNarrow\"), s(\"y\", [\"y\", 1], \"yo\", \"eraYear\"), s(\"y\", [\"yy\", 2], 0, \"eraYear\"), s(\"y\", [\"yyy\", 3], 0, \"eraYear\"), s(\"y\", [\"yyyy\", 4], 0, \"eraYear\"), v(\"N\", rn), v(\"NN\", rn), v(\"NNN\", rn), v(\"NNNN\", function (e, t) { return t.erasNameRegex(e) }), v(\"NNNNN\", function (e, t) { return t.erasNarrowRegex(e) }), D([\"N\", \"NN\", \"NNN\", \"NNNN\", \"NNNNN\"], function (e, t, n, s) { s = n._locale.erasParse(e, s, n._strict); s ? m(n).era = s : m(n).invalidEra = e }), v(\"y\", Me), v(\"yy\", Me), v(\"yyy\", Me), v(\"yyyy\", Me), v(\"yo\", function (e, t) { return t._eraYearOrdinalRegex || Me }), D([\"y\", \"yy\", \"yyy\", \"yyyy\"], Y), D([\"yo\"], function (e, t, n, s) { var i; n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[Y] = n._locale.eraYearOrdinalParse(e, i) : t[Y] = parseInt(e, 10) }), s(0, [\"gg\", 2], 0, function () { return this.weekYear() % 100 }), s(0, [\"GG\", 2], 0, function () { return this.isoWeekYear() % 100 }), on(\"gggg\", \"weekYear\"), on(\"ggggg\", \"weekYear\"), on(\"GGGG\", \"isoWeekYear\"), on(\"GGGGG\", \"isoWeekYear\"), t(\"weekYear\", \"gg\"), t(\"isoWeekYear\", \"GG\"), n(\"weekYear\", 1), n(\"isoWeekYear\", 1), v(\"G\", De), v(\"g\", De), v(\"GG\", p, w), v(\"gg\", p, w), v(\"GGGG\", ke, _e), v(\"gggg\", ke, _e), v(\"GGGGG\", ve, ye), v(\"ggggg\", ve, ye), Te([\"gggg\", \"ggggg\", \"GGGG\", \"GGGGG\"], function (e, t, n, s) { t[s.substr(0, 2)] = g(e) }), Te([\"gg\", \"GG\"], function (e, t, n, s) { t[s] = f.parseTwoDigitYear(e) }), s(\"Q\", 0, \"Qo\", \"quarter\"), t(\"quarter\", \"Q\"), n(\"quarter\", 7), v(\"Q\", i), D(\"Q\", function (e, t) { t[O] = 3 * (g(e) - 1) }), s(\"D\", [\"DD\", 2], \"Do\", \"date\"), t(\"date\", \"D\"), n(\"date\", 9), v(\"D\", p), v(\"DD\", p, w), v(\"Do\", function (e, t) { return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient }), D([\"D\", \"DD\"], b), D(\"Do\", function (e, t) { t[b] = g(e.match(p)[0]) }); ke = de(\"Date\", !0); s(\"DDD\", [\"DDDD\", 3], \"DDDo\", \"dayOfYear\"), t(\"dayOfYear\", \"DDD\"), n(\"dayOfYear\", 4), v(\"DDD\", pe), v(\"DDDD\", me), D([\"DDD\", \"DDDD\"], function (e, t, n) { n._dayOfYear = g(e) }), s(\"m\", [\"mm\", 2], 0, \"minute\"), t(\"minute\", \"m\"), n(\"minute\", 14), v(\"m\", p), v(\"mm\", p, w), D([\"m\", \"mm\"], T); var ln, _e = de(\"Minutes\", !1), ve = (s(\"s\", [\"ss\", 2], 0, \"second\"), t(\"second\", \"s\"), n(\"second\", 15), v(\"s\", p), v(\"ss\", p, w), D([\"s\", \"ss\"], N), de(\"Seconds\", !1)); for (s(\"S\", 0, 0, function () { return ~~(this.millisecond() / 100) }), s(0, [\"SS\", 2], 0, function () { return ~~(this.millisecond() / 10) }), s(0, [\"SSS\", 3], 0, \"millisecond\"), s(0, [\"SSSS\", 4], 0, function () { return 10 * this.millisecond() }), s(0, [\"SSSSS\", 5], 0, function () { return 100 * this.millisecond() }), s(0, [\"SSSSSS\", 6], 0, function () { return 1e3 * this.millisecond() }), s(0, [\"SSSSSSS\", 7], 0, function () { return 1e4 * this.millisecond() }), s(0, [\"SSSSSSSS\", 8], 0, function () { return 1e5 * this.millisecond() }), s(0, [\"SSSSSSSSS\", 9], 0, function () { return 1e6 * this.millisecond() }), t(\"millisecond\", \"ms\"), n(\"millisecond\", 16), v(\"S\", pe, i), v(\"SS\", pe, w), v(\"SSS\", pe, me), ln = \"SSSS\"; ln.length <= 9; ln += \"S\")v(ln, Me); function hn(e, t) { t[Ne] = g(1e3 * (\"0.\" + e)) } for (ln = \"S\"; ln.length <= 9; ln += \"S\")D(ln, hn); ye = de(\"Milliseconds\", !1), s(\"z\", 0, 0, \"zoneAbbr\"), s(\"zz\", 0, 0, \"zoneName\"); i = q.prototype; function dn(e) { return e } i.add = Ce, i.calendar = function (e, t) { 1 === arguments.length && (arguments[0] ? Jt(arguments[0]) ? (e = arguments[0], t = void 0) : function (e) { for (var t = F(e) && !L(e), n = !1, s = [\"sameDay\", \"nextDay\", \"lastDay\", \"nextWeek\", \"lastWeek\", \"sameElse\"], i = 0; i < s.length; i += 1)n = n || c(e, s[i]); return t && n }(arguments[0]) && (t = arguments[0], e = void 0) : t = e = void 0); var e = e || W(), n = Gt(e, this).startOf(\"day\"), n = f.calendarFormat(this, n) || \"sameElse\", t = t && (d(t[n]) ? t[n].call(this, e) : t[n]); return this.format(t || this.localeData().calendar(n, this, W(e))) }, i.clone = function () { return new q(this) }, i.diff = function (e, t, n) { var s, i, r; if (!this.isValid()) return NaN; if (!(s = Gt(e, this)).isValid()) return NaN; switch (i = 6e4 * (s.utcOffset() - this.utcOffset()), t = _(t)) { case \"year\": r = Qt(this, s) / 12; break; case \"month\": r = Qt(this, s); break; case \"quarter\": r = Qt(this, s) / 3; break; case \"second\": r = (this - s) / 1e3; break; case \"minute\": r = (this - s) / 6e4; break; case \"hour\": r = (this - s) / 36e5; break; case \"day\": r = (this - s - i) / 864e5; break; case \"week\": r = (this - s - i) / 6048e5; break; default: r = this - s }return n ? r : y(r) }, i.endOf = function (e) { var t, n; if (void 0 === (e = _(e)) || \"millisecond\" === e || !this.isValid()) return this; switch (n = this._isUTC ? sn : nn, e) { case \"year\": t = n(this.year() + 1, 0, 1) - 1; break; case \"quarter\": t = n(this.year(), this.month() - this.month() % 3 + 3, 1) - 1; break; case \"month\": t = n(this.year(), this.month() + 1, 1) - 1; break; case \"week\": t = n(this.year(), this.month(), this.date() - this.weekday() + 7) - 1; break; case \"isoWeek\": t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1; break; case \"day\": case \"date\": t = n(this.year(), this.month(), this.date() + 1) - 1; break; case \"hour\": t = this._d.valueOf(), t += 36e5 - tn(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5) - 1; break; case \"minute\": t = this._d.valueOf(), t += 6e4 - tn(t, 6e4) - 1; break; case \"second\": t = this._d.valueOf(), t += 1e3 - tn(t, 1e3) - 1; break }return this._d.setTime(t), f.updateOffset(this, !0), this }, i.format = function (e) { return e = e || (this.isUtc() ? f.defaultFormatUtc : f.defaultFormat), e = re(this, e), this.localeData().postformat(e) }, i.from = function (e, t) { return this.isValid() && (h(e) && e.isValid() || W(e).isValid()) ? C({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate() }, i.fromNow = function (e) { return this.from(W(), e) }, i.to = function (e, t) { return this.isValid() && (h(e) && e.isValid() || W(e).isValid()) ? C({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate() }, i.toNow = function (e) { return this.to(W(), e) }, i.get = function (e) { return d(this[e = _(e)]) ? this[e]() : this }, i.invalidAt = function () { return m(this).overflow }, i.isAfter = function (e, t) { return e = h(e) ? e : W(e), !(!this.isValid() || !e.isValid()) && (\"millisecond\" === (t = _(t) || \"millisecond\") ? this.valueOf() > e.valueOf() : e.valueOf() < this.clone().startOf(t).valueOf()) }, i.isBefore = function (e, t) { return e = h(e) ? e : W(e), !(!this.isValid() || !e.isValid()) && (\"millisecond\" === (t = _(t) || \"millisecond\") ? this.valueOf() < e.valueOf() : this.clone().endOf(t).valueOf() < e.valueOf()) }, i.isBetween = function (e, t, n, s) { return e = h(e) ? e : W(e), t = h(t) ? t : W(t), !!(this.isValid() && e.isValid() && t.isValid()) && ((\"(\" === (s = s || \"()\")[0] ? this.isAfter(e, n) : !this.isBefore(e, n)) && (\")\" === s[1] ? this.isBefore(t, n) : !this.isAfter(t, n))) }, i.isSame = function (e, t) { var e = h(e) ? e : W(e); return !(!this.isValid() || !e.isValid()) && (\"millisecond\" === (t = _(t) || \"millisecond\") ? this.valueOf() === e.valueOf() : (e = e.valueOf(), this.clone().startOf(t).valueOf() <= e && e <= this.clone().endOf(t).valueOf())) }, i.isSameOrAfter = function (e, t) { return this.isSame(e, t) || this.isAfter(e, t) }, i.isSameOrBefore = function (e, t) { return this.isSame(e, t) || this.isBefore(e, t) }, i.isValid = function () { return A(this) }, i.lang = Xe, i.locale = Xt, i.localeData = Kt, i.max = we, i.min = ge, i.parsingFlags = function () { return E({}, m(this)) }, i.set = function (e, t) { if (\"object\" == typeof e) for (var n = function (e) { var t, n = []; for (t in e) c(e, t) && n.push({ unit: t, priority: le[t] }); return n.sort(function (e, t) { return e.priority - t.priority }), n }(e = ue(e)), s = n.length, i = 0; i < s; i++)this[n[i].unit](e[n[i].unit]); else if (d(this[e = _(e)])) return this[e](t); return this }, i.startOf = function (e) { var t, n; if (void 0 === (e = _(e)) || \"millisecond\" === e || !this.isValid()) return this; switch (n = this._isUTC ? sn : nn, e) { case \"year\": t = n(this.year(), 0, 1); break; case \"quarter\": t = n(this.year(), this.month() - this.month() % 3, 1); break; case \"month\": t = n(this.year(), this.month(), 1); break; case \"week\": t = n(this.year(), this.month(), this.date() - this.weekday()); break; case \"isoWeek\": t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1)); break; case \"day\": case \"date\": t = n(this.year(), this.month(), this.date()); break; case \"hour\": t = this._d.valueOf(), t -= tn(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5); break; case \"minute\": t = this._d.valueOf(), t -= tn(t, 6e4); break; case \"second\": t = this._d.valueOf(), t -= tn(t, 1e3); break }return this._d.setTime(t), f.updateOffset(this, !0), this }, i.subtract = Je, i.toArray = function () { var e = this; return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond()] }, i.toObject = function () { var e = this; return { years: e.year(), months: e.month(), date: e.date(), hours: e.hours(), minutes: e.minutes(), seconds: e.seconds(), milliseconds: e.milliseconds() } }, i.toDate = function () { return new Date(this.valueOf()) }, i.toISOString = function (e) { if (!this.isValid()) return null; var t = (e = !0 !== e) ? this.clone().utc() : this; return t.year() < 0 || 9999 < t.year() ? re(t, e ? \"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ\") : d(Date.prototype.toISOString) ? e ? this.toDate().toISOString() : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3).toISOString().replace(\"Z\", re(t, \"Z\")) : re(t, e ? \"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\" : \"YYYY-MM-DD[T]HH:mm:ss.SSSZ\") }, i.inspect = function () { if (!this.isValid()) return \"moment.invalid(/* \" + this._i + \" */)\"; var e, t = \"moment\", n = \"\"; return this.isLocal() || (t = 0 === this.utcOffset() ? \"moment.utc\" : \"moment.parseZone\", n = \"Z\"), t = \"[\" + t + '(\"]', e = 0 <= this.year() && this.year() <= 9999 ? \"YYYY\" : \"YYYYYY\", this.format(t + e + \"-MM-DD[T]HH:mm:ss.SSS\" + (n + '[\")]')) }, \"undefined\" != typeof Symbol && null != Symbol.for && (i[Symbol.for(\"nodejs.util.inspect.custom\")] = function () { return \"Moment<\" + this.format() + \">\" }), i.toJSON = function () { return this.isValid() ? this.toISOString() : null }, i.toString = function () { return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\") }, i.unix = function () { return Math.floor(this.valueOf() / 1e3) }, i.valueOf = function () { return this._d.valueOf() - 6e4 * (this._offset || 0) }, i.creationData = function () { return { input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict } }, i.eraName = function () { for (var e, t = this.localeData().eras(), n = 0, s = t.length; n < s; ++n) { if (e = this.clone().startOf(\"day\").valueOf(), t[n].since <= e && e <= t[n].until) return t[n].name; if (t[n].until <= e && e <= t[n].since) return t[n].name } return \"\" }, i.eraNarrow = function () { for (var e, t = this.localeData().eras(), n = 0, s = t.length; n < s; ++n) { if (e = this.clone().startOf(\"day\").valueOf(), t[n].since <= e && e <= t[n].until) return t[n].narrow; if (t[n].until <= e && e <= t[n].since) return t[n].narrow } return \"\" }, i.eraAbbr = function () { for (var e, t = this.localeData().eras(), n = 0, s = t.length; n < s; ++n) { if (e = this.clone().startOf(\"day\").valueOf(), t[n].since <= e && e <= t[n].until) return t[n].abbr; if (t[n].until <= e && e <= t[n].since) return t[n].abbr } return \"\" }, i.eraYear = function () { for (var e, t, n = this.localeData().eras(), s = 0, i = n.length; s < i; ++s)if (e = n[s].since <= n[s].until ? 1 : -1, t = this.clone().startOf(\"day\").valueOf(), n[s].since <= t && t <= n[s].until || n[s].until <= t && t <= n[s].since) return (this.year() - f(n[s].since).year()) * e + n[s].offset; return this.year() }, i.year = Ie, i.isLeapYear = function () { return he(this.year()) }, i.weekYear = function (e) { return un.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy) }, i.isoWeekYear = function (e) { return un.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4) }, i.quarter = i.quarters = function (e) { return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3) }, i.month = Ge, i.daysInMonth = function () { return We(this.year(), this.month()) }, i.week = i.weeks = function (e) { var t = this.localeData().week(this); return null == e ? t : this.add(7 * (e - t), \"d\") }, i.isoWeek = i.isoWeeks = function (e) { var t = qe(this, 1, 4).week; return null == e ? t : this.add(7 * (e - t), \"d\") }, i.weeksInYear = function () { var e = this.localeData()._week; return P(this.year(), e.dow, e.doy) }, i.weeksInWeekYear = function () { var e = this.localeData()._week; return P(this.weekYear(), e.dow, e.doy) }, i.isoWeeksInYear = function () { return P(this.year(), 1, 4) }, i.isoWeeksInISOWeekYear = function () { return P(this.isoWeekYear(), 1, 4) }, i.date = ke, i.day = i.days = function (e) { if (!this.isValid()) return null != e ? this : NaN; var t, n, s = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); return null != e ? (t = e, n = this.localeData(), e = \"string\" != typeof t ? t : isNaN(t) ? \"number\" == typeof (t = n.weekdaysParse(t)) ? t : null : parseInt(t, 10), this.add(e - s, \"d\")) : s }, i.weekday = function (e) { if (!this.isValid()) return null != e ? this : NaN; var t = (this.day() + 7 - this.localeData()._week.dow) % 7; return null == e ? t : this.add(e - t, \"d\") }, i.isoWeekday = function (e) { return this.isValid() ? null != e ? (t = e, n = this.localeData(), n = \"string\" == typeof t ? n.weekdaysParse(t) % 7 || 7 : isNaN(t) ? null : t, this.day(this.day() % 7 ? n : n - 7)) : this.day() || 7 : null != e ? this : NaN; var t, n }, i.dayOfYear = function (e) { var t = Math.round((this.clone().startOf(\"day\") - this.clone().startOf(\"year\")) / 864e5) + 1; return null == e ? t : this.add(e - t, \"d\") }, i.hour = i.hours = k, i.minute = i.minutes = _e, i.second = i.seconds = ve, i.millisecond = i.milliseconds = ye, i.utcOffset = function (e, t, n) { var s, i = this._offset || 0; if (!this.isValid()) return null != e ? this : NaN; if (null == e) return this._isUTC ? i : Et(this); if (\"string\" == typeof e) { if (null === (e = Vt(Ye, e))) return this } else Math.abs(e) < 16 && !n && (e *= 60); return !this._isUTC && t && (s = Et(this)), this._offset = e, this._isUTC = !0, null != s && this.add(s, \"m\"), i !== e && (!t || this._changeInProgress ? qt(this, C(e - i, \"m\"), 1, !1) : this._changeInProgress || (this._changeInProgress = !0, f.updateOffset(this, !0), this._changeInProgress = null)), this }, i.utc = function (e) { return this.utcOffset(0, e) }, i.local = function (e) { return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Et(this), \"m\")), this }, i.parseZone = function () { var e; return null != this._tzm ? this.utcOffset(this._tzm, !1, !0) : \"string\" == typeof this._i && (null != (e = Vt(Se, this._i)) ? this.utcOffset(e) : this.utcOffset(0, !0)), this }, i.hasAlignedHourOffset = function (e) { return !!this.isValid() && (e = e ? W(e).utcOffset() : 0, (this.utcOffset() - e) % 60 == 0) }, i.isDST = function () { return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset() }, i.isLocal = function () { return !!this.isValid() && !this._isUTC }, i.isUtcOffset = function () { return !!this.isValid() && this._isUTC }, i.isUtc = At, i.isUTC = At, i.zoneAbbr = function () { return this._isUTC ? \"UTC\" : \"\" }, i.zoneName = function () { return this._isUTC ? \"Coordinated Universal Time\" : \"\" }, i.dates = e(\"dates accessor is deprecated. Use date instead.\", ke), i.months = e(\"months accessor is deprecated. Use month instead\", Ge), i.years = e(\"years accessor is deprecated. Use year instead\", Ie), i.zone = e(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\", function (e, t) { return null != e ? (this.utcOffset(e = \"string\" != typeof e ? -e : e, t), this) : -this.utcOffset() }), i.isDSTShifted = e(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\", function () { if (!o(this._isDSTShifted)) return this._isDSTShifted; var e, t = {}; return $(t, this), (t = Nt(t))._a ? (e = (t._isUTC ? l : W)(t._a), this._isDSTShifted = this.isValid() && 0 < function (e, t, n) { for (var s = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), r = 0, a = 0; a < s; a++)(n && e[a] !== t[a] || !n && g(e[a]) !== g(t[a])) && r++; return r + i }(t._a, e.toArray())) : this._isDSTShifted = !1, this._isDSTShifted }); w = K.prototype; function cn(e, t, n, s) { var i = mt(), s = l().set(s, t); return i[n](s, e) } function fn(e, t, n) { if (u(e) && (t = e, e = void 0), e = e || \"\", null != t) return cn(e, t, n, \"month\"); for (var s = [], i = 0; i < 12; i++)s[i] = cn(e, i, n, \"month\"); return s } function mn(e, t, n, s) { t = (\"boolean\" == typeof e ? u(t) && (n = t, t = void 0) : (t = e, e = !1, u(n = t) && (n = t, t = void 0)), t || \"\"); var i, r = mt(), a = e ? r._week.dow : 0, o = []; if (null != n) return cn(t, (n + a) % 7, s, \"day\"); for (i = 0; i < 7; i++)o[i] = cn(t, (i + a) % 7, s, \"day\"); return o } w.calendar = function (e, t, n) { return d(e = this._calendar[e] || this._calendar.sameElse) ? e.call(t, n) : e }, w.longDateFormat = function (e) { var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()]; return t || !n ? t : (this._longDateFormat[e] = n.match(te).map(function (e) { return \"MMMM\" === e || \"MM\" === e || \"DD\" === e || \"dddd\" === e ? e.slice(1) : e }).join(\"\"), this._longDateFormat[e]) }, w.invalidDate = function () { return this._invalidDate }, w.ordinal = function (e) { return this._ordinal.replace(\"%d\", e) }, w.preparse = dn, w.postformat = dn, w.relativeTime = function (e, t, n, s) { var i = this._relativeTime[n]; return d(i) ? i(e, t, n, s) : i.replace(/%d/i, e) }, w.pastFuture = function (e, t) { return d(e = this._relativeTime[0 < e ? \"future\" : \"past\"]) ? e(t) : e.replace(/%s/i, t) }, w.set = function (e) { var t, n; for (n in e) c(e, n) && (d(t = e[n]) ? this[n] = t : this[\"_\" + n] = t); this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + \"|\" + /\\d{1,2}/.source) }, w.eras = function (e, t) { for (var n, s = this._eras || mt(\"en\")._eras, i = 0, r = s.length; i < r; ++i) { switch (typeof s[i].since) { case \"string\": n = f(s[i].since).startOf(\"day\"), s[i].since = n.valueOf(); break }switch (typeof s[i].until) { case \"undefined\": s[i].until = 1 / 0; break; case \"string\": n = f(s[i].until).startOf(\"day\").valueOf(), s[i].until = n.valueOf(); break } } return s }, w.erasParse = function (e, t, n) { var s, i, r, a, o, u = this.eras(); for (e = e.toUpperCase(), s = 0, i = u.length; s < i; ++s)if (r = u[s].name.toUpperCase(), a = u[s].abbr.toUpperCase(), o = u[s].narrow.toUpperCase(), n) switch (t) { case \"N\": case \"NN\": case \"NNN\": if (a === e) return u[s]; break; case \"NNNN\": if (r === e) return u[s]; break; case \"NNNNN\": if (o === e) return u[s]; break } else if (0 <= [r, a, o].indexOf(e)) return u[s] }, w.erasConvertYear = function (e, t) { var n = e.since <= e.until ? 1 : -1; return void 0 === t ? f(e.since).year() : f(e.since).year() + (t - e.offset) * n }, w.erasAbbrRegex = function (e) { return c(this, \"_erasAbbrRegex\") || an.call(this), e ? this._erasAbbrRegex : this._erasRegex }, w.erasNameRegex = function (e) { return c(this, \"_erasNameRegex\") || an.call(this), e ? this._erasNameRegex : this._erasRegex }, w.erasNarrowRegex = function (e) { return c(this, \"_erasNarrowRegex\") || an.call(this), e ? this._erasNarrowRegex : this._erasRegex }, w.months = function (e, t) { return e ? (a(this._months) ? this._months : this._months[(this._months.isFormat || He).test(t) ? \"format\" : \"standalone\"])[e.month()] : a(this._months) ? this._months : this._months.standalone }, w.monthsShort = function (e, t) { return e ? (a(this._monthsShort) ? this._monthsShort : this._monthsShort[He.test(t) ? \"format\" : \"standalone\"])[e.month()] : a(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone }, w.monthsParse = function (e, t, n) { var s, i; if (this._monthsParseExact) return function (e, t, n) { var s, i, r, e = e.toLocaleLowerCase(); if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)r = l([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(r, \"\").toLocaleLowerCase(), this._longMonthsParse[s] = this.months(r, \"\").toLocaleLowerCase(); return n ? \"MMM\" === t ? -1 !== (i = S.call(this._shortMonthsParse, e)) ? i : null : -1 !== (i = S.call(this._longMonthsParse, e)) ? i : null : \"MMM\" === t ? -1 !== (i = S.call(this._shortMonthsParse, e)) || -1 !== (i = S.call(this._longMonthsParse, e)) ? i : null : -1 !== (i = S.call(this._longMonthsParse, e)) || -1 !== (i = S.call(this._shortMonthsParse, e)) ? i : null }.call(this, e, t, n); for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) { if (i = l([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(\"^\" + this.months(i, \"\").replace(\".\", \"\") + \"$\", \"i\"), this._shortMonthsParse[s] = new RegExp(\"^\" + this.monthsShort(i, \"\").replace(\".\", \"\") + \"$\", \"i\")), n || this._monthsParse[s] || (i = \"^\" + this.months(i, \"\") + \"|^\" + this.monthsShort(i, \"\"), this._monthsParse[s] = new RegExp(i.replace(\".\", \"\"), \"i\")), n && \"MMMM\" === t && this._longMonthsParse[s].test(e)) return s; if (n && \"MMM\" === t && this._shortMonthsParse[s].test(e)) return s; if (!n && this._monthsParse[s].test(e)) return s } }, w.monthsRegex = function (e) { return this._monthsParseExact ? (c(this, \"_monthsRegex\") || Ee.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (c(this, \"_monthsRegex\") || (this._monthsRegex = Le), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex) }, w.monthsShortRegex = function (e) { return this._monthsParseExact ? (c(this, \"_monthsRegex\") || Ee.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (c(this, \"_monthsShortRegex\") || (this._monthsShortRegex = Fe), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex) }, w.week = function (e) { return qe(e, this._week.dow, this._week.doy).week }, w.firstDayOfYear = function () { return this._week.doy }, w.firstDayOfWeek = function () { return this._week.dow }, w.weekdays = function (e, t) { return t = a(this._weekdays) ? this._weekdays : this._weekdays[e && !0 !== e && this._weekdays.isFormat.test(t) ? \"format\" : \"standalone\"], !0 === e ? Be(t, this._week.dow) : e ? t[e.day()] : t }, w.weekdaysMin = function (e) { return !0 === e ? Be(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin }, w.weekdaysShort = function (e) { return !0 === e ? Be(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort }, w.weekdaysParse = function (e, t, n) { var s, i; if (this._weekdaysParseExact) return function (e, t, n) { var s, i, r, e = e.toLocaleLowerCase(); if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)r = l([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(r, \"\").toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(r, \"\").toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, \"\").toLocaleLowerCase(); return n ? \"dddd\" === t ? -1 !== (i = S.call(this._weekdaysParse, e)) ? i : null : \"ddd\" === t ? -1 !== (i = S.call(this._shortWeekdaysParse, e)) ? i : null : -1 !== (i = S.call(this._minWeekdaysParse, e)) ? i : null : \"dddd\" === t ? -1 !== (i = S.call(this._weekdaysParse, e)) || -1 !== (i = S.call(this._shortWeekdaysParse, e)) || -1 !== (i = S.call(this._minWeekdaysParse, e)) ? i : null : \"ddd\" === t ? -1 !== (i = S.call(this._shortWeekdaysParse, e)) || -1 !== (i = S.call(this._weekdaysParse, e)) || -1 !== (i = S.call(this._minWeekdaysParse, e)) ? i : null : -1 !== (i = S.call(this._minWeekdaysParse, e)) || -1 !== (i = S.call(this._weekdaysParse, e)) || -1 !== (i = S.call(this._shortWeekdaysParse, e)) ? i : null }.call(this, e, t, n); for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) { if (i = l([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(\"^\" + this.weekdays(i, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\"), this._shortWeekdaysParse[s] = new RegExp(\"^\" + this.weekdaysShort(i, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\"), this._minWeekdaysParse[s] = new RegExp(\"^\" + this.weekdaysMin(i, \"\").replace(\".\", \"\\\\.?\") + \"$\", \"i\")), this._weekdaysParse[s] || (i = \"^\" + this.weekdays(i, \"\") + \"|^\" + this.weekdaysShort(i, \"\") + \"|^\" + this.weekdaysMin(i, \"\"), this._weekdaysParse[s] = new RegExp(i.replace(\".\", \"\"), \"i\")), n && \"dddd\" === t && this._fullWeekdaysParse[s].test(e)) return s; if (n && \"ddd\" === t && this._shortWeekdaysParse[s].test(e)) return s; if (n && \"dd\" === t && this._minWeekdaysParse[s].test(e)) return s; if (!n && this._weekdaysParse[s].test(e)) return s } }, w.weekdaysRegex = function (e) { return this._weekdaysParseExact ? (c(this, \"_weekdaysRegex\") || nt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (c(this, \"_weekdaysRegex\") || (this._weekdaysRegex = Ke), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex) }, w.weekdaysShortRegex = function (e) { return this._weekdaysParseExact ? (c(this, \"_weekdaysRegex\") || nt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (c(this, \"_weekdaysShortRegex\") || (this._weekdaysShortRegex = et), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) }, w.weekdaysMinRegex = function (e) { return this._weekdaysParseExact ? (c(this, \"_weekdaysRegex\") || nt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (c(this, \"_weekdaysMinRegex\") || (this._weekdaysMinRegex = tt), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) }, w.isPM = function (e) { return \"p\" === (e + \"\").toLowerCase().charAt(0) }, w.meridiem = function (e, t, n) { return 11 < e ? n ? \"pm\" : \"PM\" : n ? \"am\" : \"AM\" }, ct(\"en\", { eras: [{ since: \"0001-01-01\", until: 1 / 0, offset: 1, name: \"Anno Domini\", narrow: \"AD\", abbr: \"AD\" }, { since: \"0000-12-31\", until: -1 / 0, offset: 1, name: \"Before Christ\", narrow: \"BC\", abbr: \"BC\" }], dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/, ordinal: function (e) { var t = e % 10; return e + (1 === g(e % 100 / 10) ? \"th\" : 1 == t ? \"st\" : 2 == t ? \"nd\" : 3 == t ? \"rd\" : \"th\") } }), f.lang = e(\"moment.lang is deprecated. Use moment.locale instead.\", ct), f.langData = e(\"moment.langData is deprecated. Use moment.localeData instead.\", mt); var _n = Math.abs; function yn(e, t, n, s) { t = C(t, n); return e._milliseconds += s * t._milliseconds, e._days += s * t._days, e._months += s * t._months, e._bubble() } function gn(e) { return e < 0 ? Math.floor(e) : Math.ceil(e) } function wn(e) { return 4800 * e / 146097 } function pn(e) { return 146097 * e / 4800 } function kn(e) { return function () { return this.as(e) } } pe = kn(\"ms\"), me = kn(\"s\"), Ce = kn(\"m\"), we = kn(\"h\"), ge = kn(\"d\"), Je = kn(\"w\"), k = kn(\"M\"), _e = kn(\"Q\"), ve = kn(\"y\"); function vn(e) { return function () { return this.isValid() ? this._data[e] : NaN } } var ye = vn(\"milliseconds\"), ke = vn(\"seconds\"), Ie = vn(\"minutes\"), w = vn(\"hours\"), Mn = vn(\"days\"), Dn = vn(\"months\"), Sn = vn(\"years\"); var Yn = Math.round, On = { ss: 44, s: 45, m: 45, h: 22, d: 26, w: null, M: 11 }; function bn(e, t, n, s) { var i = C(e).abs(), r = Yn(i.as(\"s\")), a = Yn(i.as(\"m\")), o = Yn(i.as(\"h\")), u = Yn(i.as(\"d\")), l = Yn(i.as(\"M\")), h = Yn(i.as(\"w\")), i = Yn(i.as(\"y\")), r = (r <= n.ss ? [\"s\", r] : r < n.s && [\"ss\", r]) || a <= 1 && [\"m\"] || a < n.m && [\"mm\", a] || o <= 1 && [\"h\"] || o < n.h && [\"hh\", o] || u <= 1 && [\"d\"] || u < n.d && [\"dd\", u]; return (r = (r = null != n.w ? r || h <= 1 && [\"w\"] || h < n.w && [\"ww\", h] : r) || l <= 1 && [\"M\"] || l < n.M && [\"MM\", l] || i <= 1 && [\"y\"] || [\"yy\", i])[2] = t, r[3] = 0 < +e, r[4] = s, function (e, t, n, s, i) { return i.relativeTime(t || 1, !!n, e, s) }.apply(null, r) } var xn = Math.abs; function Tn(e) { return (0 < e) - (e < 0) || +e } function Nn() { if (!this.isValid()) return this.localeData().invalidDate(); var e, t, n, s, i, r, a, o = xn(this._milliseconds) / 1e3, u = xn(this._days), l = xn(this._months), h = this.asSeconds(); return h ? (e = y(o / 60), t = y(e / 60), o %= 60, e %= 60, n = y(l / 12), l %= 12, s = o ? o.toFixed(3).replace(/\\.?0+$/, \"\") : \"\", i = Tn(this._months) !== Tn(h) ? \"-\" : \"\", r = Tn(this._days) !== Tn(h) ? \"-\" : \"\", a = Tn(this._milliseconds) !== Tn(h) ? \"-\" : \"\", (h < 0 ? \"-\" : \"\") + \"P\" + (n ? i + n + \"Y\" : \"\") + (l ? i + l + \"M\" : \"\") + (u ? r + u + \"D\" : \"\") + (t || e || o ? \"T\" : \"\") + (t ? a + t + \"H\" : \"\") + (e ? a + e + \"M\" : \"\") + (o ? a + s + \"S\" : \"\")) : \"P0D\" } var U = Ct.prototype; return U.isValid = function () { return this._isValid }, U.abs = function () { var e = this._data; return this._milliseconds = _n(this._milliseconds), this._days = _n(this._days), this._months = _n(this._months), e.milliseconds = _n(e.milliseconds), e.seconds = _n(e.seconds), e.minutes = _n(e.minutes), e.hours = _n(e.hours), e.months = _n(e.months), e.years = _n(e.years), this }, U.add = function (e, t) { return yn(this, e, t, 1) }, U.subtract = function (e, t) { return yn(this, e, t, -1) }, U.as = function (e) { if (!this.isValid()) return NaN; var t, n, s = this._milliseconds; if (\"month\" === (e = _(e)) || \"quarter\" === e || \"year\" === e) switch (t = this._days + s / 864e5, n = this._months + wn(t), e) { case \"month\": return n; case \"quarter\": return n / 3; case \"year\": return n / 12 } else switch (t = this._days + Math.round(pn(this._months)), e) { case \"week\": return t / 7 + s / 6048e5; case \"day\": return t + s / 864e5; case \"hour\": return 24 * t + s / 36e5; case \"minute\": return 1440 * t + s / 6e4; case \"second\": return 86400 * t + s / 1e3; case \"millisecond\": return Math.floor(864e5 * t) + s; default: throw new Error(\"Unknown unit \" + e) } }, U.asMilliseconds = pe, U.asSeconds = me, U.asMinutes = Ce, U.asHours = we, U.asDays = ge, U.asWeeks = Je, U.asMonths = k, U.asQuarters = _e, U.asYears = ve, U.valueOf = function () { return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * g(this._months / 12) : NaN }, U._bubble = function () { var e = this._milliseconds, t = this._days, n = this._months, s = this._data; return 0 <= e && 0 <= t && 0 <= n || e <= 0 && t <= 0 && n <= 0 || (e += 864e5 * gn(pn(n) + t), n = t = 0), s.milliseconds = e % 1e3, e = y(e / 1e3), s.seconds = e % 60, e = y(e / 60), s.minutes = e % 60, e = y(e / 60), s.hours = e % 24, t += y(e / 24), n += e = y(wn(t)), t -= gn(pn(e)), e = y(n / 12), n %= 12, s.days = t, s.months = n, s.years = e, this }, U.clone = function () { return C(this) }, U.get = function (e) { return e = _(e), this.isValid() ? this[e + \"s\"]() : NaN }, U.milliseconds = ye, U.seconds = ke, U.minutes = Ie, U.hours = w, U.days = Mn, U.weeks = function () { return y(this.days() / 7) }, U.months = Dn, U.years = Sn, U.humanize = function (e, t) { if (!this.isValid()) return this.localeData().invalidDate(); var n = !1, s = On; return \"object\" == typeof e && (t = e, e = !1), \"boolean\" == typeof e && (n = e), \"object\" == typeof t && (s = Object.assign({}, On, t), null != t.s && null == t.ss && (s.ss = t.s - 1)), e = this.localeData(), t = bn(this, !n, s, e), n && (t = e.pastFuture(+this, t)), e.postformat(t) }, U.toISOString = Nn, U.toString = Nn, U.toJSON = Nn, U.locale = Xt, U.localeData = Kt, U.toIsoString = e(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\", Nn), U.lang = Xe, s(\"X\", 0, 0, \"unix\"), s(\"x\", 0, 0, \"valueOf\"), v(\"x\", De), v(\"X\", /[+-]?\\d+(\\.\\d{1,3})?/), D(\"X\", function (e, t, n) { n._d = new Date(1e3 * parseFloat(e)) }), D(\"x\", function (e, t, n) { n._d = new Date(g(e)) }), f.version = \"2.29.3\", H = W, f.fn = i, f.min = function () { return Rt(\"isBefore\", [].slice.call(arguments, 0)) }, f.max = function () { return Rt(\"isAfter\", [].slice.call(arguments, 0)) }, f.now = function () { return Date.now ? Date.now() : +new Date }, f.utc = l, f.unix = function (e) { return W(1e3 * e) }, f.months = function (e, t) { return fn(e, t, \"months\") }, f.isDate = V, f.locale = ct, f.invalid = I, f.duration = C, f.isMoment = h, f.weekdays = function (e, t, n) { return mn(e, t, n, \"weekdays\") }, f.parseZone = function () { return W.apply(null, arguments).parseZone() }, f.localeData = mt, f.isDuration = Ut, f.monthsShort = function (e, t) { return fn(e, t, \"monthsShort\") }, f.weekdaysMin = function (e, t, n) { return mn(e, t, n, \"weekdaysMin\") }, f.defineLocale = ft, f.updateLocale = function (e, t) { var n, s; return null != t ? (s = ot, null != R[e] && null != R[e].parentLocale ? R[e].set(X(R[e]._config, t)) : (t = X(s = null != (n = dt(e)) ? n._config : s, t), null == n && (t.abbr = e), (s = new K(t)).parentLocale = R[e], R[e] = s), ct(e)) : null != R[e] && (null != R[e].parentLocale ? (R[e] = R[e].parentLocale, e === ct() && ct(e)) : null != R[e] && delete R[e]), R[e] }, f.locales = function () { return ee(R) }, f.weekdaysShort = function (e, t, n) { return mn(e, t, n, \"weekdaysShort\") }, f.normalizeUnits = _, f.relativeTimeRounding = function (e) { return void 0 === e ? Yn : \"function\" == typeof e && (Yn = e, !0) }, f.relativeTimeThreshold = function (e, t) { return void 0 !== On[e] && (void 0 === t ? On[e] : (On[e] = t, \"s\" === e && (On.ss = t - 1), !0)) }, f.calendarFormat = function (e, t) { return (e = e.diff(t, \"days\", !0)) < -6 ? \"sameElse\" : e < -1 ? \"lastWeek\" : e < 0 ? \"lastDay\" : e < 1 ? \"sameDay\" : e < 2 ? \"nextDay\" : e < 7 ? \"nextWeek\" : \"sameElse\" }, f.prototype = i, f.HTML5_FMT = { DATETIME_LOCAL: \"YYYY-MM-DDTHH:mm\", DATETIME_LOCAL_SECONDS: \"YYYY-MM-DDTHH:mm:ss\", DATETIME_LOCAL_MS: \"YYYY-MM-DDTHH:mm:ss.SSS\", DATE: \"YYYY-MM-DD\", TIME: \"HH:mm\", TIME_SECONDS: \"HH:mm:ss\", TIME_MS: \"HH:mm:ss.SSS\", WEEK: \"GGGG-[W]WW\", MONTH: \"YYYY-MM\" }, f });\r\n//# sourceMappingURL=moment.min.js.map","!function(e){e([\"jquery\"],function(e){return function(){function t(e,t,n){return g({type:O.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),v=e(\"#\"+t.containerId),v.length?v:(n&&(v=u(t)),v)}function i(e,t,n){return g({type:O.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function o(e){w=e}function s(e,t,n){return g({type:O.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return g({type:O.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function r(e,t){var i=m();v||n(i),l(e,i,t)||d(i)}function c(t){var i=m();return v||n(i),t&&0===e(\":focus\",t).length?void h(t):void(v.children().length&&v.remove())}function d(t){for(var n=v.children(),i=n.length-1;i>=0;i--)l(e(n[i]),t)}function l(t,n,i){var o=i&&i.force?i.force:!1;return t&&(o||0===e(\":focus\",t).length)?(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0):!1}function u(t){return v=e(\"
\").attr(\"id\",t.containerId).addClass(t.positionClass).attr(\"aria-live\",\"polite\").attr(\"role\",\"alert\"),v.appendTo(e(t.target)),v}function p(){return{tapToDismiss:!0,toastClass:\"toast\",containerId:\"toast-container\",debug:!1,showMethod:\"fadeIn\",showDuration:300,showEasing:\"swing\",onShown:void 0,hideMethod:\"fadeOut\",hideDuration:1e3,hideEasing:\"swing\",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:\"toast-error\",info:\"toast-info\",success:\"toast-success\",warning:\"toast-warning\"},iconClass:\"toast-info\",positionClass:\"toast-top-right\",timeOut:5e3,titleClass:\"toast-title\",messageClass:\"toast-message\",escapeHtml:!1,target:\"body\",closeHtml:'',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function f(e){w&&w(e)}function g(t){function i(e){return null==e&&(e=\"\"),new String(e).replace(/&/g,\"&\").replace(/\"/g,\""\").replace(/'/g,\"'\").replace(//g,\">\")}function o(){r(),d(),l(),u(),p(),c()}function s(){y.hover(b,O),!x.onclick&&x.tapToDismiss&&y.click(w),x.closeButton&&k&&k.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),w(!0)}),x.onclick&&y.click(function(e){x.onclick(e),w()})}function a(){y.hide(),y[x.showMethod]({duration:x.showDuration,easing:x.showEasing,complete:x.onShown}),x.timeOut>0&&(H=setTimeout(w,x.timeOut),q.maxHideTime=parseFloat(x.timeOut),q.hideEta=(new Date).getTime()+q.maxHideTime,x.progressBar&&(q.intervalId=setInterval(D,10)))}function r(){t.iconClass&&y.addClass(x.toastClass).addClass(E)}function c(){x.newestOnTop?v.prepend(y):v.append(y)}function d(){t.title&&(I.append(x.escapeHtml?i(t.title):t.title).addClass(x.titleClass),y.append(I))}function l(){t.message&&(M.append(x.escapeHtml?i(t.message):t.message).addClass(x.messageClass),y.append(M))}function u(){x.closeButton&&(k.addClass(\"toast-close-button\").attr(\"role\",\"button\"),y.prepend(k))}function p(){x.progressBar&&(B.addClass(\"toast-progress\"),y.prepend(B))}function g(e,t){if(e.preventDuplicates){if(t.message===C)return!0;C=t.message}return!1}function w(t){var n=t&&x.closeMethod!==!1?x.closeMethod:x.hideMethod,i=t&&x.closeDuration!==!1?x.closeDuration:x.hideDuration,o=t&&x.closeEasing!==!1?x.closeEasing:x.hideEasing;return!e(\":focus\",y).length||t?(clearTimeout(q.intervalId),y[n]({duration:i,easing:o,complete:function(){h(y),x.onHidden&&\"hidden\"!==j.state&&x.onHidden(),j.state=\"hidden\",j.endTime=new Date,f(j)}})):void 0}function O(){(x.timeOut>0||x.extendedTimeOut>0)&&(H=setTimeout(w,x.extendedTimeOut),q.maxHideTime=parseFloat(x.extendedTimeOut),q.hideEta=(new Date).getTime()+q.maxHideTime)}function b(){clearTimeout(H),q.hideEta=0,y.stop(!0,!0)[x.showMethod]({duration:x.showDuration,easing:x.showEasing})}function D(){var e=(q.hideEta-(new Date).getTime())/q.maxHideTime*100;B.width(e+\"%\")}var x=m(),E=t.iconClass||x.iconClass;if(\"undefined\"!=typeof t.optionsOverride&&(x=e.extend(x,t.optionsOverride),E=t.optionsOverride.iconClass||E),!g(x,t)){T++,v=n(x,!0);var H=null,y=e(\"
\"),I=e(\"
\"),M=e(\"
\"),B=e(\"
\"),k=e(x.closeHtml),q={intervalId:null,hideEta:null,maxHideTime:null},j={toastId:T,state:\"visible\",startTime:new Date,options:x,map:t};return o(),a(),s(),f(j),x.debug&&console&&console.log(j),y}}function m(){return e.extend({},p(),b.options)}function h(e){v||(v=n()),e.is(\":visible\")||(e.remove(),e=null,0===v.children().length&&(v.remove(),C=void 0))}var v,w,C,T=0,O={error:\"error\",info:\"info\",success:\"success\",warning:\"warning\"},b={clear:r,remove:c,error:t,getContainer:n,info:i,options:{},subscribe:o,success:s,version:\"2.1.2\",warning:a};return b}()})}(\"function\"==typeof define&&define.amd?define:function(e,t){\"undefined\"!=typeof module&&module.exports?module.exports=t(require(\"jquery\")):window.toastr=t(window.jQuery)});\n//# sourceMappingURL=toastr.js.map","/**\n * State-based routing for AngularJS\n * @version v0.4.2\n * @link http://angular-ui.github.com/\n * @license MIT License, http://www.opensource.org/licenses/MIT\n */\n\"undefined\"!=typeof module&&\"undefined\"!=typeof exports&&module.exports===exports&&(module.exports=\"ui.router\"),function(a,b,c){\"use strict\";function d(a,b){return T(new(T(function(){},{prototype:a})),b)}function e(a){return S(arguments,function(b){b!==a&&S(b,function(b,c){a.hasOwnProperty(c)||(a[c]=b)})}),a}function f(a,b){var c=[];for(var d in a.path){if(a.path[d]!==b.path[d])break;c.push(a.path[d])}return c}function g(a){if(Object.keys)return Object.keys(a);var b=[];return S(a,function(a,c){b.push(c)}),b}function h(a,b){if(Array.prototype.indexOf)return a.indexOf(b,Number(arguments[2])||0);var c=a.length>>>0,d=Number(arguments[2])||0;for(d=d<0?Math.ceil(d):Math.floor(d),d<0&&(d+=c);d=0||(k.push(e[m]),j[e[m]]=a[e[m]]);return T({},j,b)}function j(a,b,c){if(!c){c=[];for(var d in a)c.push(d)}for(var e=0;e \"));if(t[c]=d,P(a))r.push(c,[function(){return b.get(a)}],j);else{var e=b.annotate(a);S(e,function(a){a!==c&&i.hasOwnProperty(a)&&n(i[a],a)}),r.push(c,a,e)}s.pop(),t[c]=f}}function o(a){return Q(a)&&a.then&&a.$$promises}if(!Q(i))throw new Error(\"'invocables' must be an object\");var q=g(i||{}),r=[],s=[],t={};return S(i,n),i=s=t=null,function(d,f,g){function h(){--v||(w||e(u,f.$$values),s.$$values=u,s.$$promises=s.$$promises||!0,delete s.$$inheritedValues,n.resolve(u))}function i(a){s.$$failure=a,n.reject(a)}function j(c,e,f){function j(a){l.reject(a),i(a)}function k(){if(!N(s.$$failure))try{l.resolve(b.invoke(e,g,u)),l.promise.then(function(a){u[c]=a,h()},j)}catch(a){j(a)}}var l=a.defer(),m=0;S(f,function(a){t.hasOwnProperty(a)&&!d.hasOwnProperty(a)&&(m++,t[a].then(function(b){u[a]=b,--m||k()},j))}),m||k(),t[c]=p(l.promise)}if(o(d)&&g===c&&(g=f,f=d,d=null),d){if(!Q(d))throw new Error(\"'locals' must be an object\")}else d=k;if(f){if(!o(f))throw new Error(\"'parent' must be a promise returned by $resolve.resolve()\")}else f=l;var n=a.defer(),s=p(n.promise),t=s.$$promises={},u=T({},d),v=1+r.length/3,w=!1;if(p(s),N(f.$$failure))return i(f.$$failure),s;f.$$inheritedValues&&e(u,m(f.$$inheritedValues,q)),T(t,f.$$promises),f.$$values?(w=e(u,m(f.$$values,q)),s.$$inheritedValues=m(f.$$values,q),h()):(f.$$inheritedValues&&(s.$$inheritedValues=m(f.$$inheritedValues,q)),f.then(h,i));for(var x=0,y=r.length;x=0));)s=f(r.id,r.type,r.cfg,\"path\"),l+=g(r.segment,s.type.pattern.source,s.squash,s.isOptional),n.push(r.segment),m=j.lastIndex;t=a.substring(m);var u=t.indexOf(\"?\");if(u>=0){var v=this.sourceSearch=t.substring(u);if(t=t.substring(0,u),this.sourcePath=a.substring(0,m+u),v.length>0)for(m=0;i=k.exec(v);)r=h(i,!0),s=f(r.id,r.type,r.cfg,\"search\"),m=j.lastIndex}else this.sourcePath=a,this.sourceSearch=\"\";l+=g(t)+(b.strict===!1?\"/?\":\"\")+\"$\",n.push(t),this.regexp=new RegExp(l,b.caseInsensitive?\"i\":c),this.prefix=n[0],this.$$paramNames=q}function u(a){T(this,a)}function v(){function a(a){return null!=a?a.toString().replace(/(~|\\/)/g,function(a){return{\"~\":\"~~\",\"/\":\"~2F\"}[a]}):a}function e(a){return null!=a?a.toString().replace(/(~~|~2F)/g,function(a){return{\"~~\":\"~\",\"~2F\":\"/\"}[a]}):a}function f(){return{strict:p,caseInsensitive:m}}function i(a){return O(a)||R(a)&&O(a[a.length-1])}function j(){for(;w.length;){var a=w.shift();if(a.pattern)throw new Error(\"You cannot override a type's .pattern at runtime.\");b.extend(r[a.name],l.invoke(a.def))}}function k(a){T(this,a||{})}W=this;var l,m=!1,p=!0,q=!1,r={},s=!0,w=[],x={string:{encode:a,decode:e,is:function(a){return null==a||!N(a)||\"string\"==typeof a},pattern:/[^\\/]*/},int:{encode:a,decode:function(a){return parseInt(a,10)},is:function(a){return a!==c&&null!==a&&this.decode(a.toString())===a},pattern:/\\d+/},bool:{encode:function(a){return a?1:0},decode:function(a){return 0!==parseInt(a,10)},is:function(a){return a===!0||a===!1},pattern:/0|1/},date:{encode:function(a){return this.is(a)?[a.getFullYear(),(\"0\"+(a.getMonth()+1)).slice(-2),(\"0\"+a.getDate()).slice(-2)].join(\"-\"):c},decode:function(a){if(this.is(a))return a;var b=this.capture.exec(a);return b?new Date(b[1],b[2]-1,b[3]):c},is:function(a){return a instanceof Date&&!isNaN(a.valueOf())},equals:function(a,b){return this.is(a)&&this.is(b)&&a.toISOString()===b.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:b.toJson,decode:b.fromJson,is:b.isObject,equals:b.equals,pattern:/[^\\/]*/},any:{encode:b.identity,decode:b.identity,equals:b.equals,pattern:/.*/}};v.$$getDefaultValue=function(a){if(!i(a.value))return a.value;if(!l)throw new Error(\"Injectable functions cannot be called at configuration time\");return l.invoke(a.value)},this.caseInsensitive=function(a){return N(a)&&(m=a),m},this.strictMode=function(a){return N(a)&&(p=a),p},this.defaultSquashPolicy=function(a){if(!N(a))return q;if(a!==!0&&a!==!1&&!P(a))throw new Error(\"Invalid squash policy: \"+a+\". Valid policies: false, true, arbitrary-string\");return q=a,a},this.compile=function(a,b){return new t(a,T(f(),b))},this.isMatcher=function(a){if(!Q(a))return!1;var b=!0;return S(t.prototype,function(c,d){O(c)&&(b=b&&N(a[d])&&O(a[d]))}),b},this.type=function(a,b,c){if(!N(b))return r[a];if(r.hasOwnProperty(a))throw new Error(\"A type named '\"+a+\"' has already been defined.\");return r[a]=new u(T({name:a},b)),c&&(w.push({name:a,def:c}),s||j()),this},S(x,function(a,b){r[b]=new u(T({name:b},a))}),r=d(r,{}),this.$get=[\"$injector\",function(a){return l=a,s=!1,j(),S(x,function(a,b){r[b]||(r[b]=new u(a))}),this}],this.Param=function(a,d,e,f){function j(a){var b=Q(a)?g(a):[],c=h(b,\"value\")===-1&&h(b,\"type\")===-1&&h(b,\"squash\")===-1&&h(b,\"array\")===-1;return c&&(a={value:a}),a.$$fn=i(a.value)?a.value:function(){return a.value},a}function k(c,d,e){if(c.type&&d)throw new Error(\"Param '\"+a+\"' has two type configurations.\");return d?d:c.type?b.isString(c.type)?r[c.type]:c.type instanceof u?c.type:new u(c.type):\"config\"===e?r.any:r.string}function m(){var b={array:\"search\"===f&&\"auto\"},c=a.match(/\\[\\]$/)?{array:!0}:{};return T(b,c,e).array}function p(a,b){var c=a.squash;if(!b||c===!1)return!1;if(!N(c)||null==c)return q;if(c===!0||P(c))return c;throw new Error(\"Invalid squash policy: '\"+c+\"'. Valid policies: false, true, or arbitrary string\")}function s(a,b,d,e){var f,g,i=[{from:\"\",to:d||b?c:\"\"},{from:null,to:d||b?c:\"\"}];return f=R(a.replace)?a.replace:[],P(e)&&f.push({from:e,to:c}),g=o(f,function(a){return a.from}),n(i,function(a){return h(g,a.from)===-1}).concat(f)}function t(){if(!l)throw new Error(\"Injectable functions cannot be called at configuration time\");var a=l.invoke(e.$$fn);if(null!==a&&a!==c&&!x.type.is(a))throw new Error(\"Default value (\"+a+\") for parameter '\"+x.id+\"' is not an instance of Type (\"+x.type.name+\")\");return a}function v(a){function b(a){return function(b){return b.from===a}}function c(a){var c=o(n(x.replace,b(a)),function(a){return a.to});return c.length?c[0]:a}return a=c(a),N(a)?x.type.$normalize(a):t()}function w(){return\"{Param:\"+a+\" \"+d+\" squash: '\"+A+\"' optional: \"+z+\"}\"}var x=this;e=j(e),d=k(e,d,f);var y=m();d=y?d.$asArray(y,\"search\"===f):d,\"string\"!==d.name||y||\"path\"!==f||e.value!==c||(e.value=\"\");var z=e.value!==c,A=p(e,z),B=s(e,y,z,A);T(this,{id:a,type:d,location:f,array:y,squash:A,replace:B,isOptional:z,value:v,dynamic:c,config:e,toString:w})},k.prototype={$$new:function(){return d(this,T(new k,{$$parent:this}))},$$keys:function(){for(var a=[],b=[],c=this,d=g(k.prototype);c;)b.push(c),c=c.$$parent;return b.reverse(),S(b,function(b){S(g(b),function(b){h(a,b)===-1&&h(d,b)===-1&&a.push(b)})}),a},$$values:function(a){var b={},c=this;return S(c.$$keys(),function(d){b[d]=c[d].value(a&&a[d])}),b},$$equals:function(a,b){var c=!0,d=this;return S(d.$$keys(),function(e){var f=a&&a[e],g=b&&b[e];d[e].type.equals(f,g)||(c=!1)}),c},$$validates:function(a){var d,e,f,g,h,i=this.$$keys();for(d=0;d=0)throw new Error(\"State must have a valid name\");if(A.hasOwnProperty(c))throw new Error(\"State '\"+c+\"' is already defined\");var e=c.indexOf(\".\")!==-1?c.substring(0,c.lastIndexOf(\".\")):P(b.parent)?b.parent:Q(b.parent)&&P(b.parent.name)?b.parent.name:\"\";if(e&&!A[e])return n(e,b.self);for(var f in D)O(D[f])&&(b[f]=D[f](b,D.$delegates[f]));return A[c]=b,!b[C]&&b.url&&a.when(b.url,[\"$match\",\"$stateParams\",function(a,c){z.$current.navigable==b&&j(a,c)||z.transitionTo(b,a,{inherit:!0,location:!1})}]),q(c),b}function s(a){return a.indexOf(\"*\")>-1}function t(a){for(var b=a.split(\".\"),c=z.$current.name.split(\".\"),d=0,e=b.length;d=G;d--)g=q[d],g.self.onExit&&h.invoke(g.self.onExit,g.self,g.locals.globals),g.locals=null;for(d=G;d2?k.enter(a,null,c).then(d):k.enter(a,null,c,d)},leave:function(a,c){b.version.minor>2?k.leave(a).then(c):k.leave(a,c)}};if(j){var e=j&&j(c,a);return{enter:function(a,b,c){e.enter(a,null,b),c()},leave:function(a,b){e.leave(a),b()}}}return d()}var i=g(),j=i(\"$animator\"),k=i(\"$animate\"),l={restrict:\"ECA\",terminal:!0,priority:400,transclude:\"element\",compile:function(c,g,i){return function(c,g,j){function k(){if(m&&(m.remove(),m=null),o&&(o.$destroy(),o=null),n){var a=n.data(\"$uiViewAnim\");s.leave(n,function(){a.$$animLeave.resolve(),m=null}),m=n,n=null}}function l(h){var l,m=C(c,j,g,e),t=m&&a.$current&&a.$current.locals[m];if(h||t!==p){l=c.$new(),p=a.$current.locals[m],l.$emit(\"$viewContentLoading\",m);var u=i(l,function(a){var e=f.defer(),h=f.defer(),i={$animEnter:e.promise,$animLeave:h.promise,$$animLeave:h};a.data(\"$uiViewAnim\",i),s.enter(a,g,function(){e.resolve(),o&&o.$emit(\"$viewContentAnimationEnded\"),(b.isDefined(r)&&!r||c.$eval(r))&&d(a)}),k()});n=u,o=l,o.$emit(\"$viewContentLoaded\",m),o.$eval(q)}}var m,n,o,p,q=j.onload||\"\",r=j.autoscroll,s=h(j,c);g.inheritedData(\"$uiView\");c.$on(\"$stateChangeSuccess\",function(){l(!1)}),l(!0)}}};return l}function B(a,c,d,e){return{restrict:\"ECA\",priority:-400,compile:function(f){var g=f.html();return f.empty?f.empty():f[0].innerHTML=null,function(f,h,i){var j=d.$current,k=C(f,i,h,e),l=j&&j.locals[k];if(!l)return h.html(g),void a(h.contents())(f);h.data(\"$uiView\",{name:k,state:l.$$state}),h.html(l.$template?l.$template:g);var m=b.extend({},l);f[l.$$resolveAs]=m;var n=a(h.contents());if(l.$$controller){l.$scope=f,l.$element=h;var o=c(l.$$controller,l);l.$$controllerAs&&(f[l.$$controllerAs]=o,f[l.$$controllerAs][l.$$resolveAs]=m),O(o.$onInit)&&o.$onInit(),h.data(\"$ngControllerController\",o),h.children().data(\"$ngControllerController\",o)}n(f)}}}}function C(a,b,c,d){var e=d(b.uiView||b.name||\"\")(a),f=c.inheritedData(\"$uiView\");return e.indexOf(\"@\")>=0?e:e+\"@\"+(f?f.state.name:\"\")}function D(a,b){var c,d=a.match(/^\\s*({[^}]*})\\s*$/);if(d&&(a=b+\"(\"+d[1]+\")\"),c=a.replace(/\\n/g,\" \").match(/^([^(]+?)\\s*(\\((.*)\\))?$/),!c||4!==c.length)throw new Error(\"Invalid state ref '\"+a+\"'\");return{state:c[1],paramExpr:c[3]||null}}function E(a){var b=a.parent().inheritedData(\"$uiView\");if(b&&b.state&&b.state.name)return b.state}function F(a){var b=\"[object SVGAnimatedString]\"===Object.prototype.toString.call(a.prop(\"href\")),c=\"FORM\"===a[0].nodeName;return{attr:c?\"action\":b?\"xlink:href\":\"href\",isAnchor:\"A\"===a.prop(\"tagName\").toUpperCase(),clickable:!c}}function G(a,b,c,d,e){return function(f){var g=f.which||f.button,h=e();if(!(g>1||f.ctrlKey||f.metaKey||f.shiftKey||a.attr(\"target\"))){var i=c(function(){b.go(h.state,h.params,h.options)});f.preventDefault();var j=d.isAnchor&&!h.href?1:0;f.preventDefault=function(){j--<=0&&c.cancel(i)}}}}function H(a,b){return{relative:E(a)||b.$current,inherit:!0}}function I(a,c){return{restrict:\"A\",require:[\"?^uiSrefActive\",\"?^uiSrefActiveEq\"],link:function(d,e,f,g){var h,i=D(f.uiSref,a.current.name),j={state:i.state,href:null,params:null},k=F(e),l=g[1]||g[0],m=null;j.options=T(H(e,a),f.uiSrefOpts?d.$eval(f.uiSrefOpts):{});var n=function(c){c&&(j.params=b.copy(c)),j.href=a.href(i.state,j.params,j.options),m&&m(),l&&(m=l.$$addStateInfo(i.state,j.params)),null!==j.href&&f.$set(k.attr,j.href)};i.paramExpr&&(d.$watch(i.paramExpr,function(a){a!==j.params&&n(a)},!0),j.params=b.copy(d.$eval(i.paramExpr))),n(),k.clickable&&(h=G(e,a,c,k,function(){return j}),e[e.on?\"on\":\"bind\"](\"click\",h),d.$on(\"$destroy\",function(){e[e.off?\"off\":\"unbind\"](\"click\",h)}))}}}function J(a,b){return{restrict:\"A\",require:[\"?^uiSrefActive\",\"?^uiSrefActiveEq\"],link:function(c,d,e,f){function g(b){m.state=b[0],m.params=b[1],m.options=b[2],m.href=a.href(m.state,m.params,m.options),n&&n(),j&&(n=j.$$addStateInfo(m.state,m.params)),m.href&&e.$set(i.attr,m.href)}var h,i=F(d),j=f[1]||f[0],k=[e.uiState,e.uiStateParams||null,e.uiStateOpts||null],l=\"[\"+k.map(function(a){return a||\"null\"}).join(\", \")+\"]\",m={state:null,params:null,options:null,href:null},n=null;c.$watch(l,g,!0),g(c.$eval(l)),i.clickable&&(h=G(d,a,b,i,function(){return m}),d[d.on?\"on\":\"bind\"](\"click\",h),c.$on(\"$destroy\",function(){d[d.off?\"off\":\"unbind\"](\"click\",h)}))}}}function K(a,b,c){return{restrict:\"A\",controller:[\"$scope\",\"$element\",\"$attrs\",\"$timeout\",function(b,d,e,f){function g(b,c,e){var f=a.get(b,E(d)),g=h(b,c),i={state:f||{name:b},params:c,hash:g};return p.push(i),q[g]=e,function(){var a=p.indexOf(i);a!==-1&&p.splice(a,1)}}function h(a,c){if(!P(a))throw new Error(\"state should be a string\");return Q(c)?a+V(c):(c=b.$eval(c),Q(c)?a+V(c):a)}function i(){for(var a=0;a0)){var c=g(a,b,o);return i(),c}},b.$on(\"$stateChangeSuccess\",i),i()}]}}function L(a){var b=function(b,c){return a.is(b,c)};return b.$stateful=!0,b}function M(a){var b=function(b,c,d){return a.includes(b,c,d)};return b.$stateful=!0,b}var N=b.isDefined,O=b.isFunction,P=b.isString,Q=b.isObject,R=b.isArray,S=b.forEach,T=b.extend,U=b.copy,V=b.toJson;b.module(\"ui.router.util\",[\"ng\"]),b.module(\"ui.router.router\",[\"ui.router.util\"]),b.module(\"ui.router.state\",[\"ui.router.router\",\"ui.router.util\"]),b.module(\"ui.router\",[\"ui.router.state\"]),b.module(\"ui.router.compat\",[\"ui.router\"]),q.$inject=[\"$q\",\"$injector\"],b.module(\"ui.router.util\").service(\"$resolve\",q),b.module(\"ui.router.util\").provider(\"$templateFactory\",r);var W;t.prototype.concat=function(a,b){var c={caseInsensitive:W.caseInsensitive(),strict:W.strictMode(),squash:W.defaultSquashPolicy()};return new t(this.sourcePath+a+this.sourceSearch,T(c,b),this)},t.prototype.toString=function(){return this.source},t.prototype.exec=function(a,b){function c(a){function b(a){return a.split(\"\").reverse().join(\"\")}function c(a){return a.replace(/\\\\-/g,\"-\")}var d=b(a).split(/-(?!\\\\)/),e=o(d,b);return o(e,c).reverse()}var d=this.regexp.exec(a);if(!d)return null;b=b||{};var e,f,g,h=this.parameters(),i=h.length,j=this.segments.length-1,k={};if(j!==d.length-1)throw new Error(\"Unbalanced capture group in route '\"+this.source+\"'\");var l,m;for(e=0;e=a&&(a=t,t=0,b.push(f),f=[]);f.push(g);g.children.forEach(function(a){t++;c.push(a)});a--}f.length&&b.push(f);return b}(c)}var C=[],U=aa(a);return function(e,\r\nH,u){function t(a){a=a.hasAttribute(\"ng-animate-ref\")?[a]:a.querySelectorAll(\"[ng-animate-ref]\");var b=[];s(a,function(a){var c=a.getAttribute(\"ng-animate-ref\");c&&c.length&&b.push(a)});return b}function I(a){var b=[],c={};s(a,function(a,d){var l=K(a.element),g=0<=[\"enter\",\"move\"].indexOf(a.event),l=a.structural?t(l):[];if(l.length){var f=g?\"to\":\"from\";s(l,function(a){var b=a.getAttribute(\"ng-animate-ref\");c[b]=c[b]||{};c[b][f]={animationID:d,element:A(a)}})}else b.push(a)});var d={},g={};s(c,function(c,\r\nt){var f=c.from,e=c.to;if(f&&e){var h=a[f.animationID],k=a[e.animationID],E=f.animationID.toString();if(!g[E]){var I=g[E]={structural:!0,beforeStart:function(){h.beforeStart();k.beforeStart()},close:function(){h.close();k.close()},classes:da(h.classes,k.classes),from:h,to:k,anchors:[]};I.classes.length?b.push(I):(b.push(h),b.push(k))}g[E].anchors.push({out:f.element,\"in\":e.element})}else f=f?f.animationID:e.animationID,e=f.toString(),d[e]||(d[e]=!0,b.push(a[f]))});return b}function da(a,b){a=a.split(\" \");\r\nb=b.split(\" \");for(var c=[],d=0;d=G&&b>=D&&(la=!0,v()))}function F(){function b(){if(!P){u(!1);s(y,function(a){l.style[a[0]]=a[1]});H(a,g);c.addClass(a,ba);if(p.recalculateTimingStyles){T=l.getAttribute(\"class\")+\" \"+V;ka=k.cacheKey(l,ja,g.addClass,g.removeClass);r=z(l,T,ka,!1);ga=r.maxDelay;W=\r\nMath.max(ga,0);D=r.maxDuration;if(0===D){v();return}p.hasTransitions=0n.expectedEndTime)?f.cancel(n.timer):h.push(v)}F&&(m=f(d,m,!1),h[0]={timer:m,expectedEndTime:e},h.push(v),a.data(\"$$animateCss\",h));if(w.length)a.on(w.join(\" \"),q);g.to&&(g.cleanupStyles&&Ma(E,l,Object.keys(g.to)),Ja(a,g))}}function d(){var b=a.data(\"$$animateCss\");if(b){for(var c=1;c1){p[d].element.data(q,c.direction);var h=o.getCurrentIndex();angular.isNumber(h)&&p[h].element&&p[h].element.data(q,c.direction),a.$currentTransition=!0,e.on(\"addClass\",p[d].element,function(b,c){\"close\"===c&&(a.$currentTransition=null,e.off(\"addClass\",b))})}a.active=c.index,r=c.index,f(d),k()}}function h(a){for(var b=0;b0&&(m=c(l,b))}function l(){var b=+a.interval;n&&!isNaN(b)&&b>0&&p.length?a.next():a.pause()}var m,n,o=this,p=o.slides=a.slides=[],q=\"uib-slideDirection\",r=a.active,s=!1;b.addClass(\"carousel\"),o.addSlide=function(b,c){p.push({slide:b,element:c}),p.sort(function(a,b){return+a.slide.index-+b.slide.index}),(b.index===a.active||1===p.length&&!angular.isNumber(a.active))&&(a.$currentTransition&&(a.$currentTransition=null),r=b.index,a.active=b.index,f(r),o.select(p[h(b)]),1===p.length&&a.play())},o.getCurrentIndex=function(){for(var a=0;a0&&r===c?c>=p.length?(r=p.length-1,a.active=r,f(r),o.select(p[p.length-1])):(r=c,a.active=r,f(r),o.select(p[c])):r>c&&(r--,a.active=r),0===p.length&&(r=null,a.active=null)},o.select=a.select=function(b,c){var d=h(b.slide);void 0===c&&(c=d>o.getCurrentIndex()?\"next\":\"prev\"),b.slide.index===r||a.$currentTransition||g(b.slide,d,c)},a.indexOfSlide=function(a){return+a.slide.index},a.isActive=function(b){return a.active===b.slide.index},a.isPrevDisabled=function(){return 0===a.active&&a.noWrap()},a.isNextDisabled=function(){return a.active===p.length-1&&a.noWrap()},a.pause=function(){a.noPause||(n=!1,i())},a.play=function(){n||(n=!0,k())},b.on(\"mouseenter\",a.pause),b.on(\"mouseleave\",a.play),a.$on(\"$destroy\",function(){s=!0,i()}),a.$watch(\"noTransition\",function(a){e.enabled(b,!a)}),a.$watch(\"interval\",k),a.$watchCollection(\"slides\",j),a.$watch(\"active\",function(a){if(angular.isNumber(a)&&r!==a){for(var b=0;b-1){var f=!1;a=a.split(\"\");for(var g=e;g-1){a=a.split(\"\"),c[e]=\"(\"+d.regex+\")\",a[e]=\"$\";for(var f=e+1,g=e+d.key.length;g>f;f++)c[f]=\"\",a[f]=\"$\";a=a.join(\"\"),b.push({index:e,key:d.key,apply:d.apply,matcher:d.regex})}}),{regex:new RegExp(\"^\"+c.join(\"\")+\"$\"),map:d(b,\"index\")}}function h(a){for(var b,c,d=[],e=0;e=a.length||\"'\"!==a.charAt(e+1))&&(d.push(i(a,c,e)),c=null);else if(e===a.length)for(;cc?!1:1===b&&c>28?29===c&&(a%4===0&&a%100!==0||a%400===0):3===b||5===b||8===b||10===b?31>c:!0}function l(a){return parseInt(a,10)}function m(a,b){return a&&b?q(a,b):a}function n(a,b){return a&&b?q(a,b,!0):a}function o(a,b){a=a.replace(/:/g,\"\");var c=Date.parse(\"Jan 01, 1970 00:00:00 \"+a)/6e4;return isNaN(c)?b:c}function p(a,b){return a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+b),a}function q(a,b,c){c=c?-1:1;var d=a.getTimezoneOffset(),e=o(b,d);return p(a,c*(e-d))}var r,s,t=/[\\\\\\^\\$\\*\\+\\?\\|\\[\\]\\(\\)\\.\\{\\}]/g;this.init=function(){r=b.id,this.parsers={},this.formatters={},s=[{key:\"yyyy\",regex:\"\\\\d{4}\",apply:function(a){this.year=+a},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,\"yyyy\")}},{key:\"yy\",regex:\"\\\\d{2}\",apply:function(a){a=+a,this.year=69>a?a+2e3:a+1900},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,\"yy\")}},{key:\"y\",regex:\"\\\\d{1,4}\",apply:function(a){this.year=+a},formatter:function(a){var b=new Date;return b.setFullYear(Math.abs(a.getFullYear())),c(b,\"y\")}},{key:\"M!\",regex:\"0?[1-9]|1[0-2]\",apply:function(a){this.month=a-1},formatter:function(a){var b=a.getMonth();return/^[0-9]$/.test(b)?c(a,\"MM\"):c(a,\"M\")}},{key:\"MMMM\",regex:b.DATETIME_FORMATS.MONTH.join(\"|\"),apply:function(a){this.month=b.DATETIME_FORMATS.MONTH.indexOf(a)},formatter:function(a){return c(a,\"MMMM\")}},{key:\"MMM\",regex:b.DATETIME_FORMATS.SHORTMONTH.join(\"|\"),apply:function(a){this.month=b.DATETIME_FORMATS.SHORTMONTH.indexOf(a)},formatter:function(a){return c(a,\"MMM\")}},{key:\"MM\",regex:\"0[1-9]|1[0-2]\",apply:function(a){this.month=a-1},formatter:function(a){return c(a,\"MM\")}},{key:\"M\",regex:\"[1-9]|1[0-2]\",apply:function(a){this.month=a-1},formatter:function(a){return c(a,\"M\")}},{key:\"d!\",regex:\"[0-2]?[0-9]{1}|3[0-1]{1}\",apply:function(a){this.date=+a},formatter:function(a){var b=a.getDate();return/^[1-9]$/.test(b)?c(a,\"dd\"):c(a,\"d\")}},{key:\"dd\",regex:\"[0-2][0-9]{1}|3[0-1]{1}\",apply:function(a){this.date=+a},formatter:function(a){return c(a,\"dd\")}},{key:\"d\",regex:\"[1-2]?[0-9]{1}|3[0-1]{1}\",apply:function(a){this.date=+a},formatter:function(a){return c(a,\"d\")}},{key:\"EEEE\",regex:b.DATETIME_FORMATS.DAY.join(\"|\"),formatter:function(a){return c(a,\"EEEE\")}},{key:\"EEE\",regex:b.DATETIME_FORMATS.SHORTDAY.join(\"|\"),formatter:function(a){return c(a,\"EEE\")}},{key:\"HH\",regex:\"(?:0|1)[0-9]|2[0-3]\",apply:function(a){this.hours=+a},formatter:function(a){return c(a,\"HH\")}},{key:\"hh\",regex:\"0[0-9]|1[0-2]\",apply:function(a){this.hours=+a},formatter:function(a){return c(a,\"hh\")}},{key:\"H\",regex:\"1?[0-9]|2[0-3]\",apply:function(a){this.hours=+a},formatter:function(a){return c(a,\"H\")}},{key:\"h\",regex:\"[0-9]|1[0-2]\",apply:function(a){this.hours=+a},formatter:function(a){return c(a,\"h\")}},{key:\"mm\",regex:\"[0-5][0-9]\",apply:function(a){this.minutes=+a},formatter:function(a){return c(a,\"mm\")}},{key:\"m\",regex:\"[0-9]|[1-5][0-9]\",apply:function(a){this.minutes=+a},formatter:function(a){return c(a,\"m\")}},{key:\"sss\",regex:\"[0-9][0-9][0-9]\",apply:function(a){this.milliseconds=+a},formatter:function(a){return c(a,\"sss\")}},{key:\"ss\",regex:\"[0-5][0-9]\",apply:function(a){this.seconds=+a},formatter:function(a){return c(a,\"ss\")}},{key:\"s\",regex:\"[0-9]|[1-5][0-9]\",apply:function(a){this.seconds=+a},formatter:function(a){return c(a,\"s\")}},{key:\"a\",regex:b.DATETIME_FORMATS.AMPMS.join(\"|\"),apply:function(a){12===this.hours&&(this.hours=0),\"PM\"===a&&(this.hours+=12)},formatter:function(a){return c(a,\"a\")}},{key:\"Z\",regex:\"[+-]\\\\d{4}\",apply:function(a){var b=a.match(/([+-])(\\d{2})(\\d{2})/),c=b[1],d=b[2],e=b[3];this.hours+=l(c+d),this.minutes+=l(c+e)},formatter:function(a){return c(a,\"Z\")}},{key:\"ww\",regex:\"[0-4][0-9]|5[0-3]\",formatter:function(a){return c(a,\"ww\")}},{key:\"w\",regex:\"[0-9]|[1-4][0-9]|5[0-3]\",formatter:function(a){return c(a,\"w\")}},{key:\"GGGG\",regex:b.DATETIME_FORMATS.ERANAMES.join(\"|\").replace(/\\s/g,\"\\\\s\"),formatter:function(a){return c(a,\"GGGG\")}},{key:\"GGG\",regex:b.DATETIME_FORMATS.ERAS.join(\"|\"),formatter:function(a){return c(a,\"GGG\")}},{key:\"GG\",regex:b.DATETIME_FORMATS.ERAS.join(\"|\"),formatter:function(a){return c(a,\"GG\")}},{key:\"G\",regex:b.DATETIME_FORMATS.ERAS.join(\"|\"),formatter:function(a){return c(a,\"G\")}}],angular.version.major>=1&&angular.version.minor>4&&s.push({key:\"LLLL\",regex:b.DATETIME_FORMATS.STANDALONEMONTH.join(\"|\"),apply:function(a){this.month=b.DATETIME_FORMATS.STANDALONEMONTH.indexOf(a)},formatter:function(a){return c(a,\"LLLL\")}})},this.init(),this.getParser=function(a){var b=f(a);return b&&b.apply||null},this.overrideParser=function(a,b){var c=f(a);c&&angular.isFunction(b)&&(this.parsers={},c.apply=b)}.bind(this),this.filter=function(a,c){if(!angular.isDate(a)||isNaN(a)||!c)return\"\";c=b.DATETIME_FORMATS[c]||c,b.id!==r&&this.init(),this.formatters[c]||(this.formatters[c]=h(c));var d=this.formatters[c];return d.reduce(function(b,c){return b+c(a)},\"\")},this.parse=function(c,d,e){if(!angular.isString(c)||!d)return c;d=b.DATETIME_FORMATS[d]||d,d=d.replace(t,\"\\\\$&\"),b.id!==r&&this.init(),this.parsers[d]||(this.parsers[d]=g(d,\"apply\"));var f=this.parsers[d],h=f.regex,i=f.map,j=c.match(h),l=!1;if(j&&j.length){var m,n;angular.isDate(e)&&!isNaN(e.getTime())?m={year:e.getFullYear(),month:e.getMonth(),date:e.getDate(),hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds(),milliseconds:e.getMilliseconds()}:(e&&a.warn(\"dateparser:\",\"baseDate is not a valid date\"),m={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var o=1,p=j.length;p>o;o++){var q=i[o-1];\"Z\"===q.matcher&&(l=!0),q.apply&&q.apply.call(m,j[o])}var s=l?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,u=l?Date.prototype.setUTCHours:Date.prototype.setHours;return k(m.year,m.month,m.date)&&(!angular.isDate(e)||isNaN(e.getTime())||l?(n=new Date(0),s.call(n,m.year,m.month,m.date),u.call(n,m.hours||0,m.minutes||0,m.seconds||0,m.milliseconds||0)):(n=new Date(e),s.call(n,m.year,m.month,m.date),u.call(n,m.hours,m.minutes,m.seconds,m.milliseconds))),n}},this.toTimezone=m,this.fromTimezone=n,this.timezoneToOffset=o,this.addDateMinutes=p,this.convertTimezoneToLocal=q}]),angular.module(\"ui.bootstrap.isClass\",[]).directive(\"uibIsClass\",[\"$animate\",function(a){var b=/^\\s*([\\s\\S]+?)\\s+on\\s+([\\s\\S]+?)\\s*$/,c=/^\\s*([\\s\\S]+?)\\s+for\\s+([\\s\\S]+?)\\s*$/;return{restrict:\"A\",compile:function(d,e){function f(a,b,c){i.push(a),j.push({scope:a,element:b}),o.forEach(function(b,c){g(b,a)}),a.$on(\"$destroy\",h)}function g(b,d){var e=b.match(c),f=d.$eval(e[1]),g=e[2],h=k[b];if(!h){var i=function(b){var c=null;j.some(function(a){var d=a.scope.$eval(m);return d===b?(c=a,!0):void 0}),h.lastActivated!==c&&(h.lastActivated&&a.removeClass(h.lastActivated.element,f),c&&a.addClass(c.element,f),h.lastActivated=c)};k[b]=h={lastActivated:null,scope:d,watchFn:i,compareWithExp:g,watcher:d.$watch(g,i)}}h.watchFn(d.$eval(g))}function h(a){var b=a.targetScope,c=i.indexOf(b);if(i.splice(c,1),j.splice(c,1),i.length){var d=i[0];angular.forEach(k,function(a){a.scope===b&&(a.watcher=d.$watch(a.compareWithExp,a.watchFn),a.scope=d)})}else k={}}var i=[],j=[],k={},l=e.uibIsClass.match(b),m=l[2],n=l[1],o=n.split(\",\");return f}}}]),angular.module(\"ui.bootstrap.datepicker\",[\"ui.bootstrap.dateparser\",\"ui.bootstrap.isClass\"]).value(\"$datepickerSuppressError\",!1).value(\"$datepickerLiteralWarning\",!0).constant(\"uibDatepickerConfig\",{datepickerMode:\"day\",formatDay:\"dd\",formatMonth:\"MMMM\",formatYear:\"yyyy\",formatDayHeader:\"EEE\",formatDayTitle:\"MMMM yyyy\",formatMonthTitle:\"yyyy\",maxDate:null,maxMode:\"year\",minDate:null,minMode:\"day\",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller(\"UibDatepickerController\",[\"$scope\",\"$element\",\"$attrs\",\"$parse\",\"$interpolate\",\"$locale\",\"$log\",\"dateFilter\",\"uibDatepickerConfig\",\"$datepickerLiteralWarning\",\"$datepickerSuppressError\",\"uibDateParser\",function(a,b,c,d,e,f,g,h,i,j,k,l){function m(b){a.datepickerMode=b,a.datepickerOptions.datepickerMode=b}function n(b){var c;if(angular.version.minor<6)c=b.$options||a.datepickerOptions.ngModelOptions||i.ngModelOptions||{},c.getOption=function(a){return c[a]};else{var d=b.$options.getOption(\"timezone\")||(a.datepickerOptions.ngModelOptions?a.datepickerOptions.ngModelOptions.timezone:null)||(i.ngModelOptions?i.ngModelOptions.timezone:null);c=b.$options.createChild(i.ngModelOptions).createChild(a.datepickerOptions.ngModelOptions).createChild(b.$options).createChild({timezone:d})}return c}var o=this,p={$setViewValue:angular.noop},q={},r=[];b.addClass(\"uib-datepicker\"),c.$set(\"role\",\"application\"),a.datepickerOptions||(a.datepickerOptions={}),this.modes=[\"day\",\"month\",\"year\"],[\"customClass\",\"dateDisabled\",\"datepickerMode\",\"formatDay\",\"formatDayHeader\",\"formatDayTitle\",\"formatMonth\",\"formatMonthTitle\",\"formatYear\",\"maxDate\",\"maxMode\",\"minDate\",\"minMode\",\"monthColumns\",\"showWeeks\",\"shortcutPropagation\",\"startingDay\",\"yearColumns\",\"yearRows\"].forEach(function(b){switch(b){case\"customClass\":case\"dateDisabled\":a[b]=a.datepickerOptions[b]||angular.noop;break;case\"datepickerMode\":a.datepickerMode=angular.isDefined(a.datepickerOptions.datepickerMode)?a.datepickerOptions.datepickerMode:i.datepickerMode;break;case\"formatDay\":case\"formatDayHeader\":case\"formatDayTitle\":case\"formatMonth\":case\"formatMonthTitle\":case\"formatYear\":o[b]=angular.isDefined(a.datepickerOptions[b])?e(a.datepickerOptions[b])(a.$parent):i[b];break;case\"monthColumns\":case\"showWeeks\":case\"shortcutPropagation\":case\"yearColumns\":case\"yearRows\":o[b]=angular.isDefined(a.datepickerOptions[b])?a.datepickerOptions[b]:i[b];break;case\"startingDay\":angular.isDefined(a.datepickerOptions.startingDay)?o.startingDay=a.datepickerOptions.startingDay:angular.isNumber(i.startingDay)?o.startingDay=i.startingDay:o.startingDay=(f.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case\"maxDate\":case\"minDate\":a.$watch(\"datepickerOptions.\"+b,function(a){a?angular.isDate(a)?o[b]=l.fromTimezone(new Date(a),q.getOption(\"timezone\")):(j&&g.warn(\"Literal date support has been deprecated, please switch to date object usage\"),o[b]=new Date(h(a,\"medium\"))):o[b]=i[b]?l.fromTimezone(new Date(i[b]),q.getOption(\"timezone\")):null,o.refreshView()});break;case\"maxMode\":case\"minMode\":a.datepickerOptions[b]?a.$watch(function(){return a.datepickerOptions[b]},function(c){o[b]=a[b]=angular.isDefined(c)?c:a.datepickerOptions[b],(\"minMode\"===b&&o.modes.indexOf(a.datepickerOptions.datepickerMode)o.modes.indexOf(o[b]))&&(a.datepickerMode=o[b],a.datepickerOptions.datepickerMode=o[b])}):o[b]=a[b]=i[b]||null}}),a.uniqueId=\"datepicker-\"+a.$id+\"-\"+Math.floor(1e4*Math.random()),a.disabled=angular.isDefined(c.disabled)||!1,angular.isDefined(c.ngDisabled)&&r.push(a.$parent.$watch(c.ngDisabled,function(b){a.disabled=b,o.refreshView()})),a.isActive=function(b){return 0===o.compare(b.date,o.activeDate)?(a.activeDateId=b.uid,!0):!1},this.init=function(b){p=b,q=n(p),a.datepickerOptions.initDate?(o.activeDate=l.fromTimezone(a.datepickerOptions.initDate,q.getOption(\"timezone\"))||new Date,a.$watch(\"datepickerOptions.initDate\",function(a){a&&(p.$isEmpty(p.$modelValue)||p.$invalid)&&(o.activeDate=l.fromTimezone(a,q.getOption(\"timezone\")),o.refreshView())})):o.activeDate=new Date;var c=p.$modelValue?new Date(p.$modelValue):new Date;this.activeDate=isNaN(c)?l.fromTimezone(new Date,q.getOption(\"timezone\")):l.fromTimezone(c,q.getOption(\"timezone\")),p.$render=function(){o.render()}},this.render=function(){if(p.$viewValue){var a=new Date(p.$viewValue),b=!isNaN(a);b?this.activeDate=l.fromTimezone(a,q.getOption(\"timezone\")):k||g.error('Datepicker directive: \"ng-model\" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){a.selectedDt=null,this._refreshView(),a.activeDt&&(a.activeDateId=a.activeDt.uid);var b=p.$viewValue?new Date(p.$viewValue):null;b=l.fromTimezone(b,q.getOption(\"timezone\")),p.$setValidity(\"dateDisabled\",!b||this.element&&!this.isDisabled(b))}},this.createDateObject=function(b,c){var d=p.$viewValue?new Date(p.$viewValue):null;d=l.fromTimezone(d,q.getOption(\"timezone\"));var e=new Date;e=l.fromTimezone(e,q.getOption(\"timezone\"));var f=this.compare(b,e),g={date:b,label:l.filter(b,c),selected:d&&0===this.compare(b,d),disabled:this.isDisabled(b),past:0>f,current:0===f,future:f>0,customClass:this.customClass(b)||null};return d&&0===this.compare(b,d)&&(a.selectedDt=g),o.activeDate&&0===this.compare(g.date,o.activeDate)&&(a.activeDt=g),g},this.isDisabled=function(b){return a.disabled||this.minDate&&this.compare(b,this.minDate)<0||this.maxDate&&this.compare(b,this.maxDate)>0||a.dateDisabled&&a.dateDisabled({date:b,mode:a.datepickerMode})},this.customClass=function(b){return a.customClass({date:b,mode:a.datepickerMode})},this.split=function(a,b){for(var c=[];a.length>0;)c.push(a.splice(0,b));return c},a.select=function(b){if(a.datepickerMode===o.minMode){var c=p.$viewValue?l.fromTimezone(new Date(p.$viewValue),q.getOption(\"timezone\")):new Date(0,0,0,0,0,0,0);c.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()),c=l.toTimezone(c,q.getOption(\"timezone\")),p.$setViewValue(c),p.$render()}else o.activeDate=b,m(o.modes[o.modes.indexOf(a.datepickerMode)-1]),a.$emit(\"uib:datepicker.mode\");a.$broadcast(\"uib:datepicker.focus\")},a.move=function(a){var b=o.activeDate.getFullYear()+a*(o.step.years||0),c=o.activeDate.getMonth()+a*(o.step.months||0);o.activeDate.setFullYear(b,c,1),o.refreshView()},a.toggleMode=function(b){b=b||1,a.datepickerMode===o.maxMode&&1===b||a.datepickerMode===o.minMode&&-1===b||(m(o.modes[o.modes.indexOf(a.datepickerMode)+b]),a.$emit(\"uib:datepicker.mode\"))},a.keys={13:\"enter\",32:\"space\",33:\"pageup\",34:\"pagedown\",35:\"end\",36:\"home\",37:\"left\",38:\"up\",39:\"right\",40:\"down\"};var s=function(){o.element[0].focus()};a.$on(\"uib:datepicker.focus\",s),a.keydown=function(b){var c=a.keys[b.which];if(c&&!b.shiftKey&&!b.altKey&&!a.disabled)if(b.preventDefault(),o.shortcutPropagation||b.stopPropagation(),\"enter\"===c||\"space\"===c){if(o.isDisabled(o.activeDate))return;a.select(o.activeDate)}else!b.ctrlKey||\"up\"!==c&&\"down\"!==c?(o.handleKeyDown(c,b),o.refreshView()):a.toggleMode(\"up\"===c?1:-1)},b.on(\"keydown\",function(b){a.$apply(function(){a.keydown(b)})}),a.$on(\"$destroy\",function(){for(;r.length;)r.shift()()})}]).controller(\"UibDaypickerController\",[\"$scope\",\"$element\",\"dateFilter\",function(a,b,c){function d(a,b){return 1!==b||a%4!==0||a%100===0&&a%400!==0?f[b]:29}function e(a){var b=new Date(a);b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1}var f=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=b,this.init=function(b){angular.extend(b,this),a.showWeeks=b.showWeeks,b.refreshView()},this.getDates=function(a,b){for(var c,d=new Array(b),e=new Date(a),f=0;b>f;)c=new Date(e),d[f++]=c,e.setDate(e.getDate()+1);return d},this._refreshView=function(){var b=this.activeDate.getFullYear(),d=this.activeDate.getMonth(),f=new Date(this.activeDate);f.setFullYear(b,d,1);var g=this.startingDay-f.getDay(),h=g>0?7-g:-g,i=new Date(f);h>0&&i.setDate(-h+1);for(var j=this.getDates(i,42),k=0;42>k;k++)j[k]=angular.extend(this.createDateObject(j[k],this.formatDay),{secondary:j[k].getMonth()!==d,uid:a.uniqueId+\"-\"+k});a.labels=new Array(7);for(var l=0;7>l;l++)a.labels[l]={abbr:c(j[l].date,this.formatDayHeader),full:c(j[l].date,\"EEEE\")};if(a.title=c(this.activeDate,this.formatDayTitle),a.rows=this.split(j,7),a.showWeeks){a.weekNumbers=[];for(var m=(11-this.startingDay)%7,n=a.rows.length,o=0;n>o;o++)a.weekNumbers.push(e(a.rows[o][m].date))}},this.compare=function(a,b){var c=new Date(a.getFullYear(),a.getMonth(),a.getDate()),d=new Date(b.getFullYear(),b.getMonth(),b.getDate());return c.setFullYear(a.getFullYear()),d.setFullYear(b.getFullYear()),c-d},this.handleKeyDown=function(a,b){var c=this.activeDate.getDate();if(\"left\"===a)c-=1;else if(\"up\"===a)c-=7;else if(\"right\"===a)c+=1;else if(\"down\"===a)c+=7;else if(\"pageup\"===a||\"pagedown\"===a){var e=this.activeDate.getMonth()+(\"pageup\"===a?-1:1);this.activeDate.setMonth(e,1),c=Math.min(d(this.activeDate.getFullYear(),this.activeDate.getMonth()),c)}else\"home\"===a?c=1:\"end\"===a&&(c=d(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(c)}}]).controller(\"UibMonthpickerController\",[\"$scope\",\"$element\",\"dateFilter\",function(a,b,c){this.step={years:1},this.element=b,this.init=function(a){angular.extend(a,this),a.refreshView()},this._refreshView=function(){for(var b,d=new Array(12),e=this.activeDate.getFullYear(),f=0;12>f;f++)b=new Date(this.activeDate),b.setFullYear(e,f,1),d[f]=angular.extend(this.createDateObject(b,this.formatMonth),{uid:a.uniqueId+\"-\"+f});a.title=c(this.activeDate,this.formatMonthTitle),a.rows=this.split(d,this.monthColumns),a.yearHeaderColspan=this.monthColumns>3?this.monthColumns-2:1},this.compare=function(a,b){var c=new Date(a.getFullYear(),a.getMonth()),d=new Date(b.getFullYear(),b.getMonth());return c.setFullYear(a.getFullYear()),d.setFullYear(b.getFullYear()),c-d},this.handleKeyDown=function(a,b){var c=this.activeDate.getMonth();if(\"left\"===a)c-=1;else if(\"up\"===a)c-=this.monthColumns;else if(\"right\"===a)c+=1;else if(\"down\"===a)c+=this.monthColumns;else if(\"pageup\"===a||\"pagedown\"===a){var d=this.activeDate.getFullYear()+(\"pageup\"===a?-1:1);this.activeDate.setFullYear(d)}else\"home\"===a?c=0:\"end\"===a&&(c=11);this.activeDate.setMonth(c)}}]).controller(\"UibYearpickerController\",[\"$scope\",\"$element\",\"dateFilter\",function(a,b,c){function d(a){return parseInt((a-1)/f,10)*f+1}var e,f;this.element=b,this.yearpickerInit=function(){e=this.yearColumns,f=this.yearRows*e,this.step={years:f}},this._refreshView=function(){for(var b,c=new Array(f),g=0,h=d(this.activeDate.getFullYear());f>g;g++)b=new Date(this.activeDate),b.setFullYear(h+g,0,1),c[g]=angular.extend(this.createDateObject(b,this.formatYear),{uid:a.uniqueId+\"-\"+g});a.title=[c[0].label,c[f-1].label].join(\" - \"),a.rows=this.split(c,e),a.columns=e},this.compare=function(a,b){return a.getFullYear()-b.getFullYear()},this.handleKeyDown=function(a,b){var c=this.activeDate.getFullYear();\"left\"===a?c-=1:\"up\"===a?c-=e:\"right\"===a?c+=1:\"down\"===a?c+=e:\"pageup\"===a||\"pagedown\"===a?c+=(\"pageup\"===a?-1:1)*f:\"home\"===a?c=d(this.activeDate.getFullYear()):\"end\"===a&&(c=d(this.activeDate.getFullYear())+f-1),this.activeDate.setFullYear(c)}}]).directive(\"uibDatepicker\",function(){return{templateUrl:function(a,b){return b.templateUrl||\"uib/template/datepicker/datepicker.html\"},scope:{datepickerOptions:\"=?\"},require:[\"uibDatepicker\",\"^ngModel\"],restrict:\"A\",controller:\"UibDatepickerController\",controllerAs:\"datepicker\",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}).directive(\"uibDaypicker\",function(){return{templateUrl:function(a,b){return b.templateUrl||\"uib/template/datepicker/day.html\"},\nrequire:[\"^uibDatepicker\",\"uibDaypicker\"],restrict:\"A\",controller:\"UibDaypickerController\",link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive(\"uibMonthpicker\",function(){return{templateUrl:function(a,b){return b.templateUrl||\"uib/template/datepicker/month.html\"},require:[\"^uibDatepicker\",\"uibMonthpicker\"],restrict:\"A\",controller:\"UibMonthpickerController\",link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive(\"uibYearpicker\",function(){return{templateUrl:function(a,b){return b.templateUrl||\"uib/template/datepicker/year.html\"},require:[\"^uibDatepicker\",\"uibYearpicker\"],restrict:\"A\",controller:\"UibYearpickerController\",link:function(a,b,c,d){var e=d[0];angular.extend(e,d[1]),e.yearpickerInit(),e.refreshView()}}}),angular.module(\"ui.bootstrap.position\",[]).factory(\"$uibPosition\",[\"$document\",\"$window\",function(a,b){var c,d,e={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},f={auto:/\\s?auto?\\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},g=/(HTML|BODY)/;return{getRawNode:function(a){return a.nodeName?a:a[0]||a},parseStyle:function(a){return a=parseFloat(a),isFinite(a)?a:0},offsetParent:function(c){function d(a){return\"static\"===(b.getComputedStyle(a).position||\"static\")}c=this.getRawNode(c);for(var e=c.offsetParent||a[0].documentElement;e&&e!==a[0].documentElement&&d(e);)e=e.offsetParent;return e||a[0].documentElement},scrollbarWidth:function(e){if(e){if(angular.isUndefined(d)){var f=a.find(\"body\");f.addClass(\"uib-position-body-scrollbar-measure\"),d=b.innerWidth-f[0].clientWidth,d=isFinite(d)?d:0,f.removeClass(\"uib-position-body-scrollbar-measure\")}return d}if(angular.isUndefined(c)){var g=angular.element('
');a.find(\"body\").append(g),c=g[0].offsetWidth-g[0].clientWidth,c=isFinite(c)?c:0,g.remove()}return c},scrollbarPadding:function(a){a=this.getRawNode(a);var c=b.getComputedStyle(a),d=this.parseStyle(c.paddingRight),e=this.parseStyle(c.paddingBottom),f=this.scrollParent(a,!1,!0),h=this.scrollbarWidth(g.test(f.tagName));return{scrollbarWidth:h,widthOverflow:f.scrollWidth>f.clientWidth,right:d+h,originalRight:d,heightOverflow:f.scrollHeight>f.clientHeight,bottom:e+h,originalBottom:e}},isScrollable:function(a,c){a=this.getRawNode(a);var d=c?e.hidden:e.normal,f=b.getComputedStyle(a);return d.test(f.overflow+f.overflowY+f.overflowX)},scrollParent:function(c,d,f){c=this.getRawNode(c);var g=d?e.hidden:e.normal,h=a[0].documentElement,i=b.getComputedStyle(c);if(f&&g.test(i.overflow+i.overflowY+i.overflowX))return c;var j=\"absolute\"===i.position,k=c.parentElement||h;if(k===h||\"fixed\"===i.position)return h;for(;k.parentElement&&k!==h;){var l=b.getComputedStyle(k);if(j&&\"static\"!==l.position&&(j=!1),!j&&g.test(l.overflow+l.overflowY+l.overflowX))break;k=k.parentElement}return k},position:function(c,d){c=this.getRawNode(c);var e=this.offset(c);if(d){var f=b.getComputedStyle(c);e.top-=this.parseStyle(f.marginTop),e.left-=this.parseStyle(f.marginLeft)}var g=this.offsetParent(c),h={top:0,left:0};return g!==a[0].documentElement&&(h=this.offset(g),h.top+=g.clientTop-g.scrollTop,h.left+=g.clientLeft-g.scrollLeft),{width:Math.round(angular.isNumber(e.width)?e.width:c.offsetWidth),height:Math.round(angular.isNumber(e.height)?e.height:c.offsetHeight),top:Math.round(e.top-h.top),left:Math.round(e.left-h.left)}},offset:function(c){c=this.getRawNode(c);var d=c.getBoundingClientRect();return{width:Math.round(angular.isNumber(d.width)?d.width:c.offsetWidth),height:Math.round(angular.isNumber(d.height)?d.height:c.offsetHeight),top:Math.round(d.top+(b.pageYOffset||a[0].documentElement.scrollTop)),left:Math.round(d.left+(b.pageXOffset||a[0].documentElement.scrollLeft))}},viewportOffset:function(c,d,e){c=this.getRawNode(c),e=e!==!1;var f=c.getBoundingClientRect(),g={top:0,left:0,bottom:0,right:0},h=d?a[0].documentElement:this.scrollParent(c),i=h.getBoundingClientRect();if(g.top=i.top+h.clientTop,g.left=i.left+h.clientLeft,h===a[0].documentElement&&(g.top+=b.pageYOffset,g.left+=b.pageXOffset),g.bottom=g.top+h.clientHeight,g.right=g.left+h.clientWidth,e){var j=b.getComputedStyle(h);g.top+=this.parseStyle(j.paddingTop),g.bottom-=this.parseStyle(j.paddingBottom),g.left+=this.parseStyle(j.paddingLeft),g.right-=this.parseStyle(j.paddingRight)}return{top:Math.round(f.top-g.top),bottom:Math.round(g.bottom-f.bottom),left:Math.round(f.left-g.left),right:Math.round(g.right-f.right)}},parsePlacement:function(a){var b=f.auto.test(a);return b&&(a=a.replace(f.auto,\"\")),a=a.split(\"-\"),a[0]=a[0]||\"top\",f.primary.test(a[0])||(a[0]=\"top\"),a[1]=a[1]||\"center\",f.secondary.test(a[1])||(a[1]=\"center\"),b?a[2]=!0:a[2]=!1,a},positionElements:function(a,c,d,e){a=this.getRawNode(a),c=this.getRawNode(c);var g=angular.isDefined(c.offsetWidth)?c.offsetWidth:c.prop(\"offsetWidth\"),h=angular.isDefined(c.offsetHeight)?c.offsetHeight:c.prop(\"offsetHeight\");d=this.parsePlacement(d);var i=e?this.offset(a):this.position(a),j={top:0,left:0,placement:\"\"};if(d[2]){var k=this.viewportOffset(a,e),l=b.getComputedStyle(c),m={width:g+Math.round(Math.abs(this.parseStyle(l.marginLeft)+this.parseStyle(l.marginRight))),height:h+Math.round(Math.abs(this.parseStyle(l.marginTop)+this.parseStyle(l.marginBottom)))};if(d[0]=\"top\"===d[0]&&m.height>k.top&&m.height<=k.bottom?\"bottom\":\"bottom\"===d[0]&&m.height>k.bottom&&m.height<=k.top?\"top\":\"left\"===d[0]&&m.width>k.left&&m.width<=k.right?\"right\":\"right\"===d[0]&&m.width>k.right&&m.width<=k.left?\"left\":d[0],d[1]=\"top\"===d[1]&&m.height-i.height>k.bottom&&m.height-i.height<=k.top?\"bottom\":\"bottom\"===d[1]&&m.height-i.height>k.top&&m.height-i.height<=k.bottom?\"top\":\"left\"===d[1]&&m.width-i.width>k.right&&m.width-i.width<=k.left?\"right\":\"right\"===d[1]&&m.width-i.width>k.left&&m.width-i.width<=k.right?\"left\":d[1],\"center\"===d[1])if(f.vertical.test(d[0])){var n=i.width/2-g/2;k.left+n<0&&m.width-i.width<=k.right?d[1]=\"left\":k.right+n<0&&m.width-i.width<=k.left&&(d[1]=\"right\")}else{var o=i.height/2-m.height/2;k.top+o<0&&m.height-i.height<=k.bottom?d[1]=\"top\":k.bottom+o<0&&m.height-i.height<=k.top&&(d[1]=\"bottom\")}}switch(d[0]){case\"top\":j.top=i.top-h;break;case\"bottom\":j.top=i.top+i.height;break;case\"left\":j.left=i.left-g;break;case\"right\":j.left=i.left+i.width}switch(d[1]){case\"top\":j.top=i.top;break;case\"bottom\":j.top=i.top+i.height-h;break;case\"left\":j.left=i.left;break;case\"right\":j.left=i.left+i.width-g;break;case\"center\":f.vertical.test(d[0])?j.left=i.left+i.width/2-g/2:j.top=i.top+i.height/2-h/2}return j.top=Math.round(j.top),j.left=Math.round(j.left),j.placement=\"center\"===d[1]?d[0]:d[0]+\"-\"+d[1],j},adjustTop:function(a,b,c,d){return-1!==a.indexOf(\"top\")&&c!==d?{top:b.top-d+\"px\"}:void 0},positionArrow:function(a,c){a=this.getRawNode(a);var d=a.querySelector(\".tooltip-inner, .popover-inner\");if(d){var e=angular.element(d).hasClass(\"tooltip-inner\"),g=e?a.querySelector(\".tooltip-arrow\"):a.querySelector(\".arrow\");if(g){var h={top:\"\",bottom:\"\",left:\"\",right:\"\"};if(c=this.parsePlacement(c),\"center\"===c[1])return void angular.element(g).css(h);var i=\"border-\"+c[0]+\"-width\",j=b.getComputedStyle(g)[i],k=\"border-\";k+=f.vertical.test(c[0])?c[0]+\"-\"+c[1]:c[1]+\"-\"+c[0],k+=\"-radius\";var l=b.getComputedStyle(e?d:a)[k];switch(c[0]){case\"top\":h.bottom=e?\"0\":\"-\"+j;break;case\"bottom\":h.top=e?\"0\":\"-\"+j;break;case\"left\":h.right=e?\"0\":\"-\"+j;break;case\"right\":h.left=e?\"0\":\"-\"+j}h[c[1]]=l,angular.element(g).css(h)}}}}}]),angular.module(\"ui.bootstrap.datepickerPopup\",[\"ui.bootstrap.datepicker\",\"ui.bootstrap.position\"]).value(\"$datepickerPopupLiteralWarning\",!0).constant(\"uibDatepickerPopupConfig\",{altInputFormats:[],appendToBody:!1,clearText:\"Clear\",closeOnDateSelection:!0,closeText:\"Done\",currentText:\"Today\",datepickerPopup:\"yyyy-MM-dd\",datepickerPopupTemplateUrl:\"uib/template/datepickerPopup/popup.html\",datepickerTemplateUrl:\"uib/template/datepicker/datepicker.html\",html5Types:{date:\"yyyy-MM-dd\",\"datetime-local\":\"yyyy-MM-ddTHH:mm:ss.sss\",month:\"yyyy-MM\"},onOpenFocus:!0,showButtonBar:!0,placement:\"auto bottom-left\"}).controller(\"UibDatepickerPopupController\",[\"$scope\",\"$element\",\"$attrs\",\"$compile\",\"$log\",\"$parse\",\"$window\",\"$document\",\"$rootScope\",\"$uibPosition\",\"dateFilter\",\"uibDateParser\",\"uibDatepickerPopupConfig\",\"$timeout\",\"uibDatepickerConfig\",\"$datepickerPopupLiteralWarning\",function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(b){var c=l.parse(b,x,a.date);if(isNaN(c))for(var d=0;d
\"),D.attr({\"ng-model\":\"date\",\"ng-change\":\"dateSelection(date)\",\"template-url\":B}),E=angular.element(D.children()[0]),E.attr(\"template-url\",C),a.datepickerOptions||(a.datepickerOptions={}),K&&\"month\"===c.type&&(a.datepickerOptions.datepickerMode=\"month\",a.datepickerOptions.minMode=\"month\"),E.attr(\"datepicker-options\",\"datepickerOptions\"),K?G.$formatters.push(function(b){return a.date=l.fromTimezone(b,H.getOption(\"timezone\")),b}):(G.$$parserName=\"date\",G.$validators.date=s,G.$parsers.unshift(r),G.$formatters.push(function(b){return G.$isEmpty(b)?(a.date=b,b):(angular.isNumber(b)&&(b=new Date(b)),a.date=l.fromTimezone(b,H.getOption(\"timezone\")),l.filter(a.date,x))})),G.$viewChangeListeners.push(function(){a.date=q(G.$viewValue)}),b.on(\"keydown\",u),I=d(D)(a),D.remove(),z?h.find(\"body\").append(I):b.after(I),a.$on(\"$destroy\",function(){for(a.isOpen===!0&&(i.$$phase||a.$apply(function(){a.isOpen=!1})),I.remove(),b.off(\"keydown\",u),h.off(\"click\",t),F&&F.off(\"scroll\",v),angular.element(g).off(\"resize\",v);L.length;)L.shift()()})},a.getText=function(b){return a[b+\"Text\"]||m[b+\"Text\"]},a.isDisabled=function(b){\"today\"===b&&(b=l.fromTimezone(new Date,H.getOption(\"timezone\")));var c={};return angular.forEach([\"minDate\",\"maxDate\"],function(b){a.datepickerOptions[b]?angular.isDate(a.datepickerOptions[b])?c[b]=new Date(a.datepickerOptions[b]):(p&&e.warn(\"Literal date support has been deprecated, please switch to date object usage\"),c[b]=new Date(k(a.datepickerOptions[b],\"medium\"))):c[b]=null}),a.datepickerOptions&&c.minDate&&a.compare(b,c.minDate)<0||c.maxDate&&a.compare(b,c.maxDate)>0},a.compare=function(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate())-new Date(b.getFullYear(),b.getMonth(),b.getDate())},a.dateSelection=function(c){a.date=c;var d=a.date?l.filter(a.date,x):null;b.val(d),G.$setViewValue(d),y&&(a.isOpen=!1,b[0].focus())},a.keydown=function(c){27===c.which&&(c.stopPropagation(),a.isOpen=!1,b[0].focus())},a.select=function(b,c){if(c.stopPropagation(),\"today\"===b){var d=new Date;angular.isDate(a.date)?(b=new Date(a.date),b.setFullYear(d.getFullYear(),d.getMonth(),d.getDate())):(b=l.fromTimezone(d,H.getOption(\"timezone\")),b.setHours(0,0,0,0))}a.dateSelection(b)},a.close=function(c){c.stopPropagation(),a.isOpen=!1,b[0].focus()},a.disabled=angular.isDefined(c.disabled)||!1,c.ngDisabled&&L.push(a.$parent.$watch(f(c.ngDisabled),function(b){a.disabled=b})),a.$watch(\"isOpen\",function(d){d?a.disabled?a.isOpen=!1:n(function(){v(),A&&a.$broadcast(\"uib:datepicker.focus\"),h.on(\"click\",t);var d=c.popupPlacement?c.popupPlacement:m.placement;z||j.parsePlacement(d)[2]?(F=F||angular.element(j.scrollParent(b)),F&&F.on(\"scroll\",v)):F=null,angular.element(g).on(\"resize\",v)},0,!1):(h.off(\"click\",t),F&&F.off(\"scroll\",v),angular.element(g).off(\"resize\",v))}),a.$on(\"uib:datepicker.mode\",function(){n(v,0,!1)})}]).directive(\"uibDatepickerPopup\",function(){return{require:[\"ngModel\",\"uibDatepickerPopup\"],controller:\"UibDatepickerPopupController\",scope:{datepickerOptions:\"=?\",isOpen:\"=?\",currentText:\"@\",clearText:\"@\",closeText:\"@\"},link:function(a,b,c,d){var e=d[0],f=d[1];f.init(e)}}}).directive(\"uibDatepickerPopupWrap\",function(){return{restrict:\"A\",transclude:!0,templateUrl:function(a,b){return b.templateUrl||\"uib/template/datepickerPopup/popup.html\"}}}),angular.module(\"ui.bootstrap.debounce\",[]).factory(\"$$debounce\",[\"$timeout\",function(a){return function(b,c){var d;return function(){var e=this,f=Array.prototype.slice.call(arguments);d&&a.cancel(d),d=a(function(){b.apply(e,f)},c)}}}]),angular.module(\"ui.bootstrap.multiMap\",[]).factory(\"$$multiMap\",function(){return{createNew:function(){var a={};return{entries:function(){return Object.keys(a).map(function(b){return{key:b,value:a[b]}})},get:function(b){return a[b]},hasKey:function(b){return!!a[b]},keys:function(){return Object.keys(a)},put:function(b,c){a[b]||(a[b]=[]),a[b].push(c)},remove:function(b,c){var d=a[b];if(d){var e=d.indexOf(c);-1!==e&&d.splice(e,1),d.length||delete a[b]}}}}}}),angular.module(\"ui.bootstrap.dropdown\",[\"ui.bootstrap.multiMap\",\"ui.bootstrap.position\"]).constant(\"uibDropdownConfig\",{appendToOpenClass:\"uib-dropdown-open\",openClass:\"open\"}).service(\"uibDropdownService\",[\"$document\",\"$rootScope\",\"$$multiMap\",function(a,b,c){var d=null,e=c.createNew();this.isOnlyOpen=function(a,b){var c=e.get(b);if(c){var d=c.reduce(function(b,c){return c.scope===a?c:b},{});if(d)return 1===c.length}return!1},this.open=function(b,c,g){if(d||a.on(\"click\",f),d&&d!==b&&(d.isOpen=!1),d=b,g){var h=e.get(g);if(h){var i=h.map(function(a){return a.scope});-1===i.indexOf(b)&&e.put(g,{scope:b})}else e.put(g,{scope:b})}},this.close=function(b,c,g){if(d===b&&(a.off(\"click\",f),a.off(\"keydown\",this.keybindFilter),d=null),g){var h=e.get(g);if(h){var i=h.reduce(function(a,c){return c.scope===b?c:a},{});i&&e.remove(g,i)}}};var f=function(a){if(d&&d.isOpen&&!(a&&\"disabled\"===d.getAutoClose()||a&&3===a.which)){var c=d.getToggleElement();if(!(a&&c&&c[0].contains(a.target))){var e=d.getDropdownElement();a&&\"outsideClick\"===d.getAutoClose()&&e&&e[0].contains(a.target)||(d.focusToggleElement(),d.isOpen=!1,b.$$phase||d.$apply())}}};this.keybindFilter=function(a){if(d){var b=d.getDropdownElement(),c=d.getToggleElement(),e=b&&b[0].contains(a.target),g=c&&c[0].contains(a.target);27===a.which?(a.stopPropagation(),d.focusToggleElement(),f()):d.isKeynavEnabled()&&-1!==[38,40].indexOf(a.which)&&d.isOpen&&(e||g)&&(a.preventDefault(),a.stopPropagation(),d.focusDropdownEntry(a.which))}}}]).controller(\"UibDropdownController\",[\"$scope\",\"$element\",\"$attrs\",\"$parse\",\"uibDropdownConfig\",\"uibDropdownService\",\"$animate\",\"$uibPosition\",\"$document\",\"$compile\",\"$templateRequest\",function(a,b,c,d,e,f,g,h,i,j,k){function l(){b.append(o.dropdownMenu)}var m,n,o=this,p=a.$new(),q=e.appendToOpenClass,r=e.openClass,s=angular.noop,t=c.onToggle?d(c.onToggle):angular.noop,u=!1,v=i.find(\"body\");b.addClass(\"dropdown\"),this.init=function(){c.isOpen&&(n=d(c.isOpen),s=n.assign,a.$watch(n,function(a){p.isOpen=!!a})),u=angular.isDefined(c.keyboardNav)},this.toggle=function(a){return p.isOpen=arguments.length?!!a:!p.isOpen,angular.isFunction(s)&&s(p,p.isOpen),p.isOpen},this.isOpen=function(){return p.isOpen},p.getToggleElement=function(){return o.toggleElement},p.getAutoClose=function(){return c.autoClose||\"always\"},p.getElement=function(){return b},p.isKeynavEnabled=function(){return u},p.focusDropdownEntry=function(a){var c=o.dropdownMenu?angular.element(o.dropdownMenu).find(\"a\"):b.find(\"ul\").eq(0).find(\"a\");switch(a){case 40:angular.isNumber(o.selectedOption)?o.selectedOption=o.selectedOption===c.length-1?o.selectedOption:o.selectedOption+1:o.selectedOption=0;break;case 38:angular.isNumber(o.selectedOption)?o.selectedOption=0===o.selectedOption?0:o.selectedOption-1:o.selectedOption=c.length-1}c[o.selectedOption].focus()},p.getDropdownElement=function(){return o.dropdownMenu},p.focusToggleElement=function(){o.toggleElement&&o.toggleElement[0].focus()},p.$watch(\"isOpen\",function(e,n){var u=null,w=!1;if(angular.isDefined(c.dropdownAppendTo)){var x=d(c.dropdownAppendTo)(p);x&&(u=angular.element(x))}if(angular.isDefined(c.dropdownAppendToBody)){var y=d(c.dropdownAppendToBody)(p);y!==!1&&(w=!0)}if(w&&!u&&(u=v),u&&o.dropdownMenu&&(e?(u.append(o.dropdownMenu),b.on(\"$destroy\",l)):(b.off(\"$destroy\",l),l())),u&&o.dropdownMenu){var z,A,B,C=h.positionElements(b,o.dropdownMenu,\"bottom-left\",!0),D=0;if(z={top:C.top+\"px\",display:e?\"block\":\"none\"},A=o.dropdownMenu.hasClass(\"dropdown-menu-right\"),A?(z.left=\"auto\",B=h.scrollbarPadding(u),B.heightOverflow&&B.scrollbarWidth&&(D=B.scrollbarWidth),z.right=window.innerWidth-D-(C.left+b.prop(\"offsetWidth\"))+\"px\"):(z.left=C.left+\"px\",z.right=\"auto\"),!w){var E=h.offset(u);z.top=C.top-E.top+\"px\",A?z.right=window.innerWidth-(C.left-E.left+b.prop(\"offsetWidth\"))+\"px\":z.left=C.left-E.left+\"px\"}o.dropdownMenu.css(z)}var F=u?u:b,G=u?q:r,H=F.hasClass(G),I=f.isOnlyOpen(a,u);if(H===!e){var J;J=u?I?\"removeClass\":\"addClass\":e?\"addClass\":\"removeClass\",g[J](F,G).then(function(){angular.isDefined(e)&&e!==n&&t(a,{open:!!e})})}if(e)o.dropdownMenuTemplateUrl?k(o.dropdownMenuTemplateUrl).then(function(a){m=p.$new(),j(a.trim())(m,function(a){var b=a;o.dropdownMenu.replaceWith(b),o.dropdownMenu=b,i.on(\"keydown\",f.keybindFilter)})}):i.on(\"keydown\",f.keybindFilter),p.focusToggleElement(),f.open(p,b,u);else{if(f.close(p,b,u),o.dropdownMenuTemplateUrl){m&&m.$destroy();var K=angular.element('
    ');o.dropdownMenu.replaceWith(K),o.dropdownMenu=K}o.selectedOption=null}angular.isFunction(s)&&s(a,e)})}]).directive(\"uibDropdown\",function(){return{controller:\"UibDropdownController\",link:function(a,b,c,d){d.init()}}}).directive(\"uibDropdownMenu\",function(){return{restrict:\"A\",require:\"?^uibDropdown\",link:function(a,b,c,d){if(d&&!angular.isDefined(c.dropdownNested)){b.addClass(\"dropdown-menu\");var e=c.templateUrl;e&&(d.dropdownMenuTemplateUrl=e),d.dropdownMenu||(d.dropdownMenu=b)}}}}).directive(\"uibDropdownToggle\",function(){return{require:\"?^uibDropdown\",link:function(a,b,c,d){if(d){b.addClass(\"dropdown-toggle\"),d.toggleElement=b;var e=function(e){e.preventDefault(),b.hasClass(\"disabled\")||c.disabled||a.$apply(function(){d.toggle()})};b.on(\"click\",e),b.attr({\"aria-haspopup\":!0,\"aria-expanded\":!1}),a.$watch(d.isOpen,function(a){b.attr(\"aria-expanded\",!!a)}),a.$on(\"$destroy\",function(){b.off(\"click\",e)})}}}}),angular.module(\"ui.bootstrap.stackedMap\",[]).factory(\"$$stackedMap\",function(){return{createNew:function(){var a=[];return{add:function(b,c){a.push({key:b,value:c})},get:function(b){for(var c=0;c-1&&A>a&&(a=A),a}function m(a,b){var c=x.get(a).value,d=c.appendTo;x.remove(a),B=x.top(),B&&(A=parseInt(B.value.modalDomEl.attr(\"index\"),10)),p(c.modalDomEl,c.modalScope,function(){var b=c.openedClass||w;y.remove(b,a);var e=y.hasKey(b);d.toggleClass(b,e),!e&&v&&v.heightOverflow&&v.scrollbarWidth&&(v.originalRight?d.css({paddingRight:v.originalRight+\"px\"}):d.css({paddingRight:\"\"}),v=null),n(!0)},c.closedDeferred),o(),b&&b.focus?b.focus():d.focus&&d.focus()}function n(a){var b;x.length()>0&&(b=x.top().value,b.modalDomEl.toggleClass(b.windowTopClass||\"\",a))}function o(){if(t&&-1===l()){var a=u;p(t,u,function(){a=null}),t=void 0,u=void 0}}function p(b,c,d,e){function g(){g.done||(g.done=!0,a.leave(b).then(function(){d&&d(),b.remove(),e&&e.resolve()}),c.$destroy())}var h,i=null,j=function(){return h||(h=f.defer(),i=h.promise),function(){h.resolve()}};return c.$broadcast(z.NOW_CLOSING_EVENT,j),f.when(i).then(g)}function q(a){if(a.isDefaultPrevented())return a;var b=x.top();if(b)switch(a.which){case 27:b.value.keyboard&&(a.preventDefault(),e.$apply(function(){z.dismiss(b.key,\"escape key press\")}));break;case 9:var c=z.loadFocusElementList(b),d=!1;a.shiftKey?(z.isFocusInFirstItem(a,c)||z.isModalFocused(a,b))&&(d=z.focusLastFocusableElement(c)):z.isFocusInLastItem(a,c)&&(d=z.focusFirstFocusableElement(c)),d&&(a.preventDefault(),a.stopPropagation())}}function r(a,b,c){return!a.value.modalScope.$broadcast(\"modal.closing\",b,c).defaultPrevented}function s(){Array.prototype.forEach.call(document.querySelectorAll(\"[\"+C+\"]\"),function(a){var b=parseInt(a.getAttribute(C),10),c=b-1;a.setAttribute(C,c),c||(a.removeAttribute(C),a.removeAttribute(\"aria-hidden\"))})}var t,u,v,w=\"modal-open\",x=h.createNew(),y=g.createNew(),z={NOW_CLOSING_EVENT:\"modal.stack.now-closing\"},A=0,B=null,C=\"data-bootstrap-modal-aria-hidden-count\",D=\"a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\",E=/[A-Z]/g;return e.$watch(l,function(a){u&&(u.index=a)}),c.on(\"keydown\",q),e.$on(\"$destroy\",function(){c.off(\"keydown\",q)}),z.open=function(b,f){function g(a){function b(a){var b=a.parent()?a.parent().children():[];return Array.prototype.filter.call(b,function(b){return b!==a[0]})}if(a&&\"BODY\"!==a[0].tagName)return b(a).forEach(function(a){var b=\"true\"===a.getAttribute(\"aria-hidden\"),c=parseInt(a.getAttribute(C),10);c||(c=b?1:0),a.setAttribute(C,c+1),a.setAttribute(\"aria-hidden\",\"true\")}),g(a.parent())}var h=c[0].activeElement,k=f.openedClass||w;n(!1),B=x.top(),x.add(b,{deferred:f.deferred,renderDeferred:f.renderDeferred,closedDeferred:f.closedDeferred,modalScope:f.scope,backdrop:f.backdrop,keyboard:f.keyboard,openedClass:f.openedClass,windowTopClass:f.windowTopClass,animation:f.animation,appendTo:f.appendTo}),y.put(k,b);var m=f.appendTo,o=l();o>=0&&!t&&(u=e.$new(!0),u.modalOptions=f,u.index=o,t=angular.element('
    '),t.attr({\"class\":\"modal-backdrop\",\"ng-style\":\"{'z-index': 1040 + (index && 1 || 0) + index*10}\",\"uib-modal-animation-class\":\"fade\",\"modal-in-class\":\"in\"}),f.backdropClass&&t.addClass(f.backdropClass),f.animation&&t.attr(\"modal-animation\",\"true\"),d(t)(u),a.enter(t,m),i.isScrollable(m)&&(v=i.scrollbarPadding(m),v.heightOverflow&&v.scrollbarWidth&&m.css({paddingRight:v.right+\"px\"})));var p;f.component?(p=document.createElement(j(f.component.name)),p=angular.element(p),p.attr({resolve:\"$resolve\",\"modal-instance\":\"$uibModalInstance\",close:\"$close($value)\",dismiss:\"$dismiss($value)\"})):p=f.content,A=B?parseInt(B.value.modalDomEl.attr(\"index\"),10)+1:0;var q=angular.element('
    ');q.attr({\"class\":\"modal\",\"template-url\":f.windowTemplateUrl,\"window-top-class\":f.windowTopClass,role:\"dialog\",\"aria-labelledby\":f.ariaLabelledBy,\"aria-describedby\":f.ariaDescribedBy,size:f.size,index:A,animate:\"animate\",\"ng-style\":\"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}\",tabindex:-1,\"uib-modal-animation-class\":\"fade\",\"modal-in-class\":\"in\"}).append(p),f.windowClass&&q.addClass(f.windowClass),f.animation&&q.attr(\"modal-animation\",\"true\"),m.addClass(k),f.scope&&(f.scope.$$topModalIndex=A),a.enter(d(q)(f.scope),m),x.top().value.modalDomEl=q,x.top().value.modalOpener=h,g(q)},z.close=function(a,b){var c=x.get(a);return s(),c&&r(c,b,!0)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.resolve(b),m(a,c.value.modalOpener),!0):!c},z.dismiss=function(a,b){var c=x.get(a);return s(),c&&r(c,b,!1)?(c.value.modalScope.$$uibDestructionScheduled=!0,c.value.deferred.reject(b),m(a,c.value.modalOpener),!0):!c},z.dismissAll=function(a){for(var b=this.getTop();b&&this.dismiss(b.key,a);)b=this.getTop()},z.getTop=function(){return x.top()},z.modalRendered=function(a){var b=x.get(a);b&&b.value.renderDeferred.resolve()},z.focusFirstFocusableElement=function(a){return a.length>0?(a[0].focus(),!0):!1},z.focusLastFocusableElement=function(a){return a.length>0?(a[a.length-1].focus(),!0):!1},z.isModalFocused=function(a,b){if(a&&b){var c=b.value.modalDomEl;if(c&&c.length)return(a.target||a.srcElement)===c[0]}return!1},z.isFocusInFirstItem=function(a,b){return b.length>0?(a.target||a.srcElement)===b[0]:!1},z.isFocusInLastItem=function(a,b){return b.length>0?(a.target||a.srcElement)===b[b.length-1]:!1},z.loadFocusElementList=function(a){if(a){var b=a.value.modalDomEl;if(b&&b.length){var c=b[0].querySelectorAll(D);return c?Array.prototype.filter.call(c,function(a){return k(a)}):c}}},z}]).provider(\"$uibModal\",function(){var a={options:{animation:!0,backdrop:!0,keyboard:!0},$get:[\"$rootScope\",\"$q\",\"$document\",\"$templateRequest\",\"$controller\",\"$uibResolve\",\"$uibModalStack\",function(b,c,d,e,f,g,h){function i(a){return a.template?c.when(a.template):e(angular.isFunction(a.templateUrl)?a.templateUrl():a.templateUrl)}var j={},k=null;return j.getPromiseChain=function(){return k},j.open=function(e){function j(){return q}var l=c.defer(),m=c.defer(),n=c.defer(),o=c.defer(),p={result:l.promise,opened:m.promise,closed:n.promise,rendered:o.promise,close:function(a){return h.close(p,a)},dismiss:function(a){return h.dismiss(p,a)}};if(e=angular.extend({},a.options,e),e.resolve=e.resolve||{},e.appendTo=e.appendTo||d.find(\"body\").eq(0),!e.appendTo.length)throw new Error(\"appendTo element not found. Make sure that the element passed is in DOM.\");if(!e.component&&!e.template&&!e.templateUrl)throw new Error(\"One of component or template or templateUrl options is required.\");var q;q=e.component?c.when(g.resolve(e.resolve,{},null,null)):c.all([i(e),g.resolve(e.resolve,{},null,null)]);var r;return r=k=c.all([k]).then(j,j).then(function(a){function c(b,c,d,e){b.$scope=g,b.$scope.$resolve={},d?b.$scope.$uibModalInstance=p:b.$uibModalInstance=p;var f=c?a[1]:a;angular.forEach(f,function(a,c){e&&(b[c]=a),b.$scope.$resolve[c]=a})}var d=e.scope||b,g=d.$new();g.$close=p.close,g.$dismiss=p.dismiss,g.$on(\"$destroy\",function(){g.$$uibDestructionScheduled||g.$dismiss(\"$uibUnscheduledDestruction\")});var i,j,k={scope:g,deferred:l,renderDeferred:o,closedDeferred:n,animation:e.animation,backdrop:e.backdrop,keyboard:e.keyboard,backdropClass:e.backdropClass,windowTopClass:e.windowTopClass,windowClass:e.windowClass,windowTemplateUrl:e.windowTemplateUrl,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,size:e.size,openedClass:e.openedClass,appendTo:e.appendTo},q={},r={};e.component?(c(q,!1,!0,!1),q.name=e.component,k.component=q):e.controller&&(c(r,!0,!1,!0),j=f(e.controller,r,!0,e.controllerAs),e.controllerAs&&e.bindToController&&(i=j.instance,i.$close=g.$close,i.$dismiss=g.$dismiss,angular.extend(i,{$resolve:r.$scope.$resolve},d)),i=j(),angular.isFunction(i.$onInit)&&i.$onInit()),e.component||(k.content=a[0]),h.open(p,k),m.resolve(!0)},function(a){m.reject(a),l.reject(a)})[\"finally\"](function(){k===r&&(k=null)}),p},j}]};return a}),angular.module(\"ui.bootstrap.paging\",[]).factory(\"uibPaging\",[\"$parse\",function(a){return{create:function(b,c,d){b.setNumPages=d.numPages?a(d.numPages).assign:angular.noop,b.ngModelCtrl={$setViewValue:angular.noop},b._watchers=[],b.init=function(a,e){b.ngModelCtrl=a,b.config=e,a.$render=function(){b.render()},d.itemsPerPage?b._watchers.push(c.$parent.$watch(d.itemsPerPage,function(a){\nb.itemsPerPage=parseInt(a,10),c.totalPages=b.calculateTotalPages(),b.updatePage()})):b.itemsPerPage=e.itemsPerPage,c.$watch(\"totalItems\",function(a,d){(angular.isDefined(a)||a!==d)&&(c.totalPages=b.calculateTotalPages(),b.updatePage())})},b.calculateTotalPages=function(){var a=b.itemsPerPage<1?1:Math.ceil(c.totalItems/b.itemsPerPage);return Math.max(a||0,1)},b.render=function(){c.page=parseInt(b.ngModelCtrl.$viewValue,10)||1},c.selectPage=function(a,d){d&&d.preventDefault();var e=!c.ngDisabled||!d;e&&c.page!==a&&a>0&&a<=c.totalPages&&(d&&d.target&&d.target.blur(),b.ngModelCtrl.$setViewValue(a),b.ngModelCtrl.$render())},c.getText=function(a){return c[a+\"Text\"]||b.config[a+\"Text\"]},c.noPrevious=function(){return 1===c.page},c.noNext=function(){return c.page===c.totalPages},b.updatePage=function(){b.setNumPages(c.$parent,c.totalPages),c.page>c.totalPages?c.selectPage(c.totalPages):b.ngModelCtrl.$render()},c.$on(\"$destroy\",function(){for(;b._watchers.length;)b._watchers.shift()()})}}}]),angular.module(\"ui.bootstrap.pager\",[\"ui.bootstrap.paging\",\"ui.bootstrap.tabindex\"]).controller(\"UibPagerController\",[\"$scope\",\"$attrs\",\"uibPaging\",\"uibPagerConfig\",function(a,b,c,d){a.align=angular.isDefined(b.align)?a.$parent.$eval(b.align):d.align,c.create(this,a,b)}]).constant(\"uibPagerConfig\",{itemsPerPage:10,previousText:\"« Previous\",nextText:\"Next »\",align:!0}).directive(\"uibPager\",[\"uibPagerConfig\",function(a){return{scope:{totalItems:\"=\",previousText:\"@\",nextText:\"@\",ngDisabled:\"=\"},require:[\"uibPager\",\"?ngModel\"],restrict:\"A\",controller:\"UibPagerController\",controllerAs:\"pager\",templateUrl:function(a,b){return b.templateUrl||\"uib/template/pager/pager.html\"},link:function(b,c,d,e){c.addClass(\"pager\");var f=e[0],g=e[1];g&&f.init(g,a)}}}]),angular.module(\"ui.bootstrap.pagination\",[\"ui.bootstrap.paging\",\"ui.bootstrap.tabindex\"]).controller(\"UibPaginationController\",[\"$scope\",\"$attrs\",\"$parse\",\"uibPaging\",\"uibPaginationConfig\",function(a,b,c,d,e){function f(a,b,c){return{number:a,text:b,active:c}}function g(a,b){var c=[],d=1,e=b,g=angular.isDefined(i)&&b>i;g&&(j?(d=Math.max(a-Math.floor(i/2),1),e=d+i-1,e>b&&(e=b,d=e-i+1)):(d=(Math.ceil(a/i)-1)*i+1,e=Math.min(d+i-1,b)));for(var h=d;e>=h;h++){var n=f(h,m(h),h===a);c.push(n)}if(g&&i>0&&(!j||k||l)){if(d>1){if(!l||d>3){var o=f(d-1,\"...\",!1);c.unshift(o)}if(l){if(3===d){var p=f(2,\"2\",!1);c.unshift(p)}var q=f(1,\"1\",!1);c.unshift(q)}}if(b>e){if(!l||b-2>e){var r=f(e+1,\"...\",!1);c.push(r)}if(l){if(e===b-2){var s=f(b-1,b-1,!1);c.push(s)}var t=f(b,b,!1);c.push(t)}}}return c}var h=this,i=angular.isDefined(b.maxSize)?a.$parent.$eval(b.maxSize):e.maxSize,j=angular.isDefined(b.rotate)?a.$parent.$eval(b.rotate):e.rotate,k=angular.isDefined(b.forceEllipses)?a.$parent.$eval(b.forceEllipses):e.forceEllipses,l=angular.isDefined(b.boundaryLinkNumbers)?a.$parent.$eval(b.boundaryLinkNumbers):e.boundaryLinkNumbers,m=angular.isDefined(b.pageLabel)?function(c){return a.$parent.$eval(b.pageLabel,{$page:c})}:angular.identity;a.boundaryLinks=angular.isDefined(b.boundaryLinks)?a.$parent.$eval(b.boundaryLinks):e.boundaryLinks,a.directionLinks=angular.isDefined(b.directionLinks)?a.$parent.$eval(b.directionLinks):e.directionLinks,b.$set(\"role\",\"menu\"),d.create(this,a,b),b.maxSize&&h._watchers.push(a.$parent.$watch(c(b.maxSize),function(a){i=parseInt(a,10),h.render()}));var n=this.render;this.render=function(){n(),a.page>0&&a.page<=a.totalPages&&(a.pages=g(a.page,a.totalPages))}}]).constant(\"uibPaginationConfig\",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:\"First\",previousText:\"Previous\",nextText:\"Next\",lastText:\"Last\",rotate:!0,forceEllipses:!1}).directive(\"uibPagination\",[\"$parse\",\"uibPaginationConfig\",function(a,b){return{scope:{totalItems:\"=\",firstText:\"@\",previousText:\"@\",nextText:\"@\",lastText:\"@\",ngDisabled:\"=\"},require:[\"uibPagination\",\"?ngModel\"],restrict:\"A\",controller:\"UibPaginationController\",controllerAs:\"pagination\",templateUrl:function(a,b){return b.templateUrl||\"uib/template/pagination/pagination.html\"},link:function(a,c,d,e){c.addClass(\"pagination\");var f=e[0],g=e[1];g&&f.init(g,b)}}}]),angular.module(\"ui.bootstrap.tooltip\",[\"ui.bootstrap.position\",\"ui.bootstrap.stackedMap\"]).provider(\"$uibTooltip\",function(){function a(a){var b=/[A-Z]/g,c=\"-\";return a.replace(b,function(a,b){return(b?c:\"\")+a.toLowerCase()})}var b={placement:\"top\",placementClassPrefix:\"\",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},c={mouseenter:\"mouseleave\",click:\"click\",outsideClick:\"outsideClick\",focus:\"blur\",none:\"\"},d={};this.options=function(a){angular.extend(d,a)},this.setTriggers=function(a){angular.extend(c,a)},this.$get=[\"$window\",\"$compile\",\"$timeout\",\"$document\",\"$uibPosition\",\"$interpolate\",\"$rootScope\",\"$parse\",\"$$stackedMap\",function(e,f,g,h,i,j,k,l,m){function n(a){if(27===a.which){var b=o.top();b&&(b.value.close(),b=null)}}var o=m.createNew();return h.on(\"keyup\",n),k.$on(\"$destroy\",function(){h.off(\"keyup\",n)}),function(e,k,m,n){function p(a){var b=(a||n.trigger||m).split(\" \"),d=b.map(function(a){return c[a]||a});return{show:b,hide:d}}n=angular.extend({},b,d,n);var q=a(e),r=j.startSymbol(),s=j.endSymbol(),t=\"
    ';return{compile:function(a,b){var c=f(t);return function(a,b,d,f){function j(){P.isOpen?q():m()}function m(){O&&!a.$eval(d[k+\"Enable\"])||(u(),x(),P.popupDelay?H||(H=g(r,P.popupDelay,!1)):r())}function q(){s(),P.popupCloseDelay?I||(I=g(t,P.popupCloseDelay,!1)):t()}function r(){return s(),u(),P.content?(v(),void P.$evalAsync(function(){P.isOpen=!0,y(!0),U()})):angular.noop}function s(){H&&(g.cancel(H),H=null),J&&(g.cancel(J),J=null)}function t(){P&&P.$evalAsync(function(){P&&(P.isOpen=!1,y(!1),P.animation?G||(G=g(w,150,!1)):w())})}function u(){I&&(g.cancel(I),I=null),G&&(g.cancel(G),G=null)}function v(){E||(F=P.$new(),E=c(F,function(a){M?h.find(\"body\").append(a):b.after(a)}),o.add(P,{close:t}),z())}function w(){s(),u(),A(),E&&(E.remove(),E=null,K&&g.cancel(K)),o.remove(P),F&&(F.$destroy(),F=null)}function x(){P.title=d[k+\"Title\"],S?P.content=S(a):P.content=d[e],P.popupClass=d[k+\"Class\"],P.placement=angular.isDefined(d[k+\"Placement\"])?d[k+\"Placement\"]:n.placement;var b=i.parsePlacement(P.placement);L=b[1]?b[0]+\"-\"+b[1]:b[0];var c=parseInt(d[k+\"PopupDelay\"],10),f=parseInt(d[k+\"PopupCloseDelay\"],10);P.popupDelay=isNaN(c)?n.popupDelay:c,P.popupCloseDelay=isNaN(f)?n.popupCloseDelay:f}function y(b){R&&angular.isFunction(R.assign)&&R.assign(a,b)}function z(){T.length=0,S?(T.push(a.$watch(S,function(a){P.content=a,!a&&P.isOpen&&t()})),T.push(F.$watch(function(){Q||(Q=!0,F.$$postDigest(function(){Q=!1,P&&P.isOpen&&U()}))}))):T.push(d.$observe(e,function(a){P.content=a,!a&&P.isOpen?t():U()})),T.push(d.$observe(k+\"Title\",function(a){P.title=a,P.isOpen&&U()})),T.push(d.$observe(k+\"Placement\",function(a){P.placement=a?a:n.placement,P.isOpen&&U()}))}function A(){T.length&&(angular.forEach(T,function(a){a()}),T.length=0)}function B(a){P&&P.isOpen&&E&&(b[0].contains(a.target)||E[0].contains(a.target)||q())}function C(a){27===a.which&&q()}function D(){var c=[],e=[],f=a.$eval(d[k+\"Trigger\"]);V(),angular.isObject(f)?(Object.keys(f).forEach(function(a){c.push(a),e.push(f[a])}),N={show:c,hide:e}):N=p(f),\"none\"!==N.show&&N.show.forEach(function(a,c){\"outsideClick\"===a?(b.on(\"click\",j),h.on(\"click\",B)):a===N.hide[c]?b.on(a,j):a&&(b.on(a,m),b.on(N.hide[c],q)),b.on(\"keypress\",C)})}var E,F,G,H,I,J,K,L,M=angular.isDefined(n.appendToBody)?n.appendToBody:!1,N=p(void 0),O=angular.isDefined(d[k+\"Enable\"]),P=a.$new(!0),Q=!1,R=angular.isDefined(d[k+\"IsOpen\"])?l(d[k+\"IsOpen\"]):!1,S=n.useContentExp?l(d[e]):!1,T=[],U=function(){E&&E.html()&&(J||(J=g(function(){var a=i.positionElements(b,E,P.placement,M),c=angular.isDefined(E.offsetHeight)?E.offsetHeight:E.prop(\"offsetHeight\"),d=M?i.offset(b):i.position(b);E.css({top:a.top+\"px\",left:a.left+\"px\"});var e=a.placement.split(\"-\");E.hasClass(e[0])||(E.removeClass(L.split(\"-\")[0]),E.addClass(e[0])),E.hasClass(n.placementClassPrefix+a.placement)||(E.removeClass(n.placementClassPrefix+L),E.addClass(n.placementClassPrefix+a.placement)),K=g(function(){var a=angular.isDefined(E.offsetHeight)?E.offsetHeight:E.prop(\"offsetHeight\"),b=i.adjustTop(e,d,c,a);b&&E.css(b),K=null},0,!1),E.hasClass(\"uib-position-measure\")?(i.positionArrow(E,a.placement),E.removeClass(\"uib-position-measure\")):L!==a.placement&&i.positionArrow(E,a.placement),L=a.placement,J=null},0,!1)))};P.origScope=a,P.isOpen=!1,P.contentExp=function(){return P.content},d.$observe(\"disabled\",function(a){a&&s(),a&&P.isOpen&&t()}),R&&a.$watch(R,function(a){P&&!a===P.isOpen&&j()});var V=function(){N.show.forEach(function(a){\"outsideClick\"===a?b.off(\"click\",j):(b.off(a,m),b.off(a,j)),b.off(\"keypress\",C)}),N.hide.forEach(function(a){\"outsideClick\"===a?h.off(\"click\",B):b.off(a,q)})};D();var W=a.$eval(d[k+\"Animation\"]);P.animation=angular.isDefined(W)?!!W:n.animation;var X,Y=k+\"AppendToBody\";X=Y in d&&void 0===d[Y]?!0:a.$eval(d[Y]),M=angular.isDefined(X)?X:M,a.$on(\"$destroy\",function(){V(),w(),P=null})}}}}}]}).directive(\"uibTooltipTemplateTransclude\",[\"$animate\",\"$sce\",\"$compile\",\"$templateRequest\",function(a,b,c,d){return{link:function(e,f,g){var h,i,j,k=e.$eval(g.tooltipTemplateTranscludeScope),l=0,m=function(){i&&(i.remove(),i=null),h&&(h.$destroy(),h=null),j&&(a.leave(j).then(function(){i=null}),i=j,j=null)};e.$watch(b.parseAsResourceUrl(g.uibTooltipTemplateTransclude),function(b){var g=++l;b?(d(b,!0).then(function(d){if(g===l){var e=k.$new(),i=d,n=c(i)(e,function(b){m(),a.enter(b,f)});h=e,j=n,h.$emit(\"$includeContentLoaded\",b)}},function(){g===l&&(m(),e.$emit(\"$includeContentError\",b))}),e.$emit(\"$includeContentRequested\",b)):m()}),e.$on(\"$destroy\",m)}}}]).directive(\"uibTooltipClasses\",[\"$uibPosition\",function(a){return{restrict:\"A\",link:function(b,c,d){if(b.placement){var e=a.parsePlacement(b.placement);c.addClass(e[0])}b.popupClass&&c.addClass(b.popupClass),b.animation&&c.addClass(d.tooltipAnimationClass)}}}]).directive(\"uibTooltipPopup\",function(){return{restrict:\"A\",scope:{content:\"@\"},templateUrl:\"uib/template/tooltip/tooltip-popup.html\"}}).directive(\"uibTooltip\",[\"$uibTooltip\",function(a){return a(\"uibTooltip\",\"tooltip\",\"mouseenter\")}]).directive(\"uibTooltipTemplatePopup\",function(){return{restrict:\"A\",scope:{contentExp:\"&\",originScope:\"&\"},templateUrl:\"uib/template/tooltip/tooltip-template-popup.html\"}}).directive(\"uibTooltipTemplate\",[\"$uibTooltip\",function(a){return a(\"uibTooltipTemplate\",\"tooltip\",\"mouseenter\",{useContentExp:!0})}]).directive(\"uibTooltipHtmlPopup\",function(){return{restrict:\"A\",scope:{contentExp:\"&\"},templateUrl:\"uib/template/tooltip/tooltip-html-popup.html\"}}).directive(\"uibTooltipHtml\",[\"$uibTooltip\",function(a){return a(\"uibTooltipHtml\",\"tooltip\",\"mouseenter\",{useContentExp:!0})}]),angular.module(\"ui.bootstrap.popover\",[\"ui.bootstrap.tooltip\"]).directive(\"uibPopoverTemplatePopup\",function(){return{restrict:\"A\",scope:{uibTitle:\"@\",contentExp:\"&\",originScope:\"&\"},templateUrl:\"uib/template/popover/popover-template.html\"}}).directive(\"uibPopoverTemplate\",[\"$uibTooltip\",function(a){return a(\"uibPopoverTemplate\",\"popover\",\"click\",{useContentExp:!0})}]).directive(\"uibPopoverHtmlPopup\",function(){return{restrict:\"A\",scope:{contentExp:\"&\",uibTitle:\"@\"},templateUrl:\"uib/template/popover/popover-html.html\"}}).directive(\"uibPopoverHtml\",[\"$uibTooltip\",function(a){return a(\"uibPopoverHtml\",\"popover\",\"click\",{useContentExp:!0})}]).directive(\"uibPopoverPopup\",function(){return{restrict:\"A\",scope:{uibTitle:\"@\",content:\"@\"},templateUrl:\"uib/template/popover/popover.html\"}}).directive(\"uibPopover\",[\"$uibTooltip\",function(a){return a(\"uibPopover\",\"popover\",\"click\")}]),angular.module(\"ui.bootstrap.progressbar\",[]).constant(\"uibProgressConfig\",{animate:!0,max:100}).controller(\"UibProgressController\",[\"$scope\",\"$attrs\",\"uibProgressConfig\",function(a,b,c){function d(){return angular.isDefined(a.maxParam)?a.maxParam:c.max}var e=this,f=angular.isDefined(b.animate)?a.$parent.$eval(b.animate):c.animate;this.bars=[],a.max=d(),this.addBar=function(a,b,c){f||b.css({transition:\"none\"}),this.bars.push(a),a.max=d(),a.title=c&&angular.isDefined(c.title)?c.title:\"progressbar\",a.$watch(\"value\",function(b){a.recalculatePercentage()}),a.recalculatePercentage=function(){var b=e.bars.reduce(function(a,b){return b.percent=+(100*b.value/b.max).toFixed(2),a+b.percent},0);b>100&&(a.percent-=b-100)},a.$on(\"$destroy\",function(){b=null,e.removeBar(a)})},this.removeBar=function(a){this.bars.splice(this.bars.indexOf(a),1),this.bars.forEach(function(a){a.recalculatePercentage()})},a.$watch(\"maxParam\",function(a){e.bars.forEach(function(a){a.max=d(),a.recalculatePercentage()})})}]).directive(\"uibProgress\",function(){return{replace:!0,transclude:!0,controller:\"UibProgressController\",require:\"uibProgress\",scope:{maxParam:\"=?max\"},templateUrl:\"uib/template/progressbar/progress.html\"}}).directive(\"uibBar\",function(){return{replace:!0,transclude:!0,require:\"^uibProgress\",scope:{value:\"=\",type:\"@\"},templateUrl:\"uib/template/progressbar/bar.html\",link:function(a,b,c,d){d.addBar(a,b,c)}}}).directive(\"uibProgressbar\",function(){return{replace:!0,transclude:!0,controller:\"UibProgressController\",scope:{value:\"=\",maxParam:\"=?max\",type:\"@\"},templateUrl:\"uib/template/progressbar/progressbar.html\",link:function(a,b,c,d){d.addBar(a,angular.element(b.children()[0]),{title:c.title})}}}),angular.module(\"ui.bootstrap.rating\",[]).constant(\"uibRatingConfig\",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:[\"one\",\"two\",\"three\",\"four\",\"five\"]}).controller(\"UibRatingController\",[\"$scope\",\"$attrs\",\"uibRatingConfig\",function(a,b,c){var d={$setViewValue:angular.noop},e=this;this.init=function(e){d=e,d.$render=this.render,d.$formatters.push(function(a){return angular.isNumber(a)&&a<<0!==a&&(a=Math.round(a)),a}),this.stateOn=angular.isDefined(b.stateOn)?a.$parent.$eval(b.stateOn):c.stateOn,this.stateOff=angular.isDefined(b.stateOff)?a.$parent.$eval(b.stateOff):c.stateOff,this.enableReset=angular.isDefined(b.enableReset)?a.$parent.$eval(b.enableReset):c.enableReset;var f=angular.isDefined(b.titles)?a.$parent.$eval(b.titles):c.titles;this.titles=angular.isArray(f)&&f.length>0?f:c.titles;var g=angular.isDefined(b.ratingStates)?a.$parent.$eval(b.ratingStates):new Array(angular.isDefined(b.max)?a.$parent.$eval(b.max):c.max);a.range=this.buildTemplateObjects(g)},this.buildTemplateObjects=function(a){for(var b=0,c=a.length;c>b;b++)a[b]=angular.extend({index:b},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(b)},a[b]);return a},this.getTitle=function(a){return a>=this.titles.length?a+1:this.titles[a]},a.rate=function(b){if(!a.readonly&&b>=0&&b<=a.range.length){var c=e.enableReset&&d.$viewValue===b?0:b;d.$setViewValue(c),d.$render()}},a.enter=function(b){a.readonly||(a.value=b),a.onHover({value:b})},a.reset=function(){a.value=d.$viewValue,a.onLeave()},a.onKeydown=function(b){/(37|38|39|40)/.test(b.which)&&(b.preventDefault(),b.stopPropagation(),a.rate(a.value+(38===b.which||39===b.which?1:-1)))},this.render=function(){a.value=d.$viewValue,a.title=e.getTitle(a.value-1)}}]).directive(\"uibRating\",function(){return{require:[\"uibRating\",\"ngModel\"],restrict:\"A\",scope:{readonly:\"=?readOnly\",onHover:\"&\",onLeave:\"&\"},controller:\"UibRatingController\",templateUrl:\"uib/template/rating/rating.html\",link:function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}}}),angular.module(\"ui.bootstrap.tabs\",[]).controller(\"UibTabsetController\",[\"$scope\",function(a){function b(a){for(var b=0;bb.index?1:a.index0&&13>b:b>=0&&24>b;return c&&\"\"!==a.hours?(a.showMeridian&&(12===b&&(b=0),a.meridian===y[1]&&(b+=12)),b):void 0}function i(){var b=+a.minutes,c=b>=0&&60>b;return c&&\"\"!==a.minutes?b:void 0}function j(){var b=+a.seconds;return b>=0&&60>b?b:void 0}function k(a,b){return null===a?\"\":angular.isDefined(a)&&a.toString().length<2&&!b?\"0\"+a:a.toString()}function l(a){m(),x.$setViewValue(new Date(v)),n(a)}function m(){s&&s.$setValidity(\"hours\",!0),t&&t.$setValidity(\"minutes\",!0),u&&u.$setValidity(\"seconds\",!0),x.$setValidity(\"time\",!0),a.invalidHours=!1,a.invalidMinutes=!1,a.invalidSeconds=!1}function n(b){if(x.$modelValue){var c=v.getHours(),d=v.getMinutes(),e=v.getSeconds();a.showMeridian&&(c=0===c||12===c?12:c%12),a.hours=\"h\"===b?c:k(c,!z),\"m\"!==b&&(a.minutes=k(d)),a.meridian=v.getHours()<12?y[0]:y[1],\"s\"!==b&&(a.seconds=k(e)),a.meridian=v.getHours()<12?y[0]:y[1]}else a.hours=null,a.minutes=null,a.seconds=null,a.meridian=y[0]}function o(a){v=q(v,a),l()}function p(a,b){return q(a,60*b)}function q(a,b){var c=new Date(a.getTime()+1e3*b),d=new Date(a);return d.setHours(c.getHours(),c.getMinutes(),c.getSeconds()),d}function r(){return(null===a.hours||\"\"===a.hours)&&(null===a.minutes||\"\"===a.minutes)&&(!a.showSeconds||a.showSeconds&&(null===a.seconds||\"\"===a.seconds))}var s,t,u,v=new Date,w=[],x={$setViewValue:angular.noop},y=angular.isDefined(c.meridians)?a.$parent.$eval(c.meridians):g.meridians||f.DATETIME_FORMATS.AMPMS,z=angular.isDefined(c.padHours)?a.$parent.$eval(c.padHours):!0;a.tabindex=angular.isDefined(c.tabindex)?c.tabindex:0,b.removeAttr(\"tabindex\"),this.init=function(b,d){x=b,x.$render=this.render,x.$formatters.unshift(function(a){return a?new Date(a):null});var e=d.eq(0),f=d.eq(1),h=d.eq(2);s=e.controller(\"ngModel\"),t=f.controller(\"ngModel\"),u=h.controller(\"ngModel\");var i=angular.isDefined(c.mousewheel)?a.$parent.$eval(c.mousewheel):g.mousewheel;i&&this.setupMousewheelEvents(e,f,h);var j=angular.isDefined(c.arrowkeys)?a.$parent.$eval(c.arrowkeys):g.arrowkeys;j&&this.setupArrowkeyEvents(e,f,h),a.readonlyInput=angular.isDefined(c.readonlyInput)?a.$parent.$eval(c.readonlyInput):g.readonlyInput,this.setupInputEvents(e,f,h)};var A=g.hourStep;c.hourStep&&w.push(a.$parent.$watch(d(c.hourStep),function(a){A=+a}));var B=g.minuteStep;c.minuteStep&&w.push(a.$parent.$watch(d(c.minuteStep),function(a){B=+a}));var C;w.push(a.$parent.$watch(d(c.min),function(a){var b=new Date(a);C=isNaN(b)?void 0:b}));var D;w.push(a.$parent.$watch(d(c.max),function(a){var b=new Date(a);D=isNaN(b)?void 0:b}));var E=!1;c.ngDisabled&&w.push(a.$parent.$watch(d(c.ngDisabled),function(a){E=a})),a.noIncrementHours=function(){var a=p(v,60*A);return E||a>D||v>a&&C>a},a.noDecrementHours=function(){var a=p(v,60*-A);return E||C>a||a>v&&a>D},a.noIncrementMinutes=function(){var a=p(v,B);return E||a>D||v>a&&C>a},a.noDecrementMinutes=function(){var a=p(v,-B);return E||C>a||a>v&&a>D},a.noIncrementSeconds=function(){var a=q(v,F);return E||a>D||v>a&&C>a},a.noDecrementSeconds=function(){var a=q(v,-F);return E||C>a||a>v&&a>D},a.noToggleMeridian=function(){return v.getHours()<12?E||p(v,720)>D:E||p(v,-720)0};b.on(\"mousewheel wheel\",function(b){E||a.$apply(e(b)?a.incrementHours():a.decrementHours()),b.preventDefault()}),c.on(\"mousewheel wheel\",function(b){E||a.$apply(e(b)?a.incrementMinutes():a.decrementMinutes()),b.preventDefault()}),d.on(\"mousewheel wheel\",function(b){E||a.$apply(e(b)?a.incrementSeconds():a.decrementSeconds()),b.preventDefault()})},this.setupArrowkeyEvents=function(b,c,d){b.on(\"keydown\",function(b){E||(38===b.which?(b.preventDefault(),a.incrementHours(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementHours(),a.$apply()))}),c.on(\"keydown\",function(b){E||(38===b.which?(b.preventDefault(),a.incrementMinutes(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementMinutes(),a.$apply()))}),d.on(\"keydown\",function(b){E||(38===b.which?(b.preventDefault(),a.incrementSeconds(),a.$apply()):40===b.which&&(b.preventDefault(),a.decrementSeconds(),a.$apply()))})},this.setupInputEvents=function(b,c,d){if(a.readonlyInput)return a.updateHours=angular.noop,a.updateMinutes=angular.noop,void(a.updateSeconds=angular.noop);var e=function(b,c,d){x.$setViewValue(null),x.$setValidity(\"time\",!1),angular.isDefined(b)&&(a.invalidHours=b,s&&s.$setValidity(\"hours\",!1)),angular.isDefined(c)&&(a.invalidMinutes=c,t&&t.$setValidity(\"minutes\",!1)),angular.isDefined(d)&&(a.invalidSeconds=d,u&&u.$setValidity(\"seconds\",!1))};a.updateHours=function(){var a=h(),b=i();x.$setDirty(),angular.isDefined(a)&&angular.isDefined(b)?(v.setHours(a),v.setMinutes(b),C>v||v>D?e(!0):l(\"h\")):e(!0)},b.on(\"blur\",function(b){x.$setTouched(),r()?m():null===a.hours||\"\"===a.hours?e(!0):!a.invalidHours&&a.hours<10&&a.$apply(function(){a.hours=k(a.hours,!z)})}),a.updateMinutes=function(){var a=i(),b=h();x.$setDirty(),angular.isDefined(a)&&angular.isDefined(b)?(v.setHours(b),v.setMinutes(a),C>v||v>D?e(void 0,!0):l(\"m\")):e(void 0,!0)},c.on(\"blur\",function(b){x.$setTouched(),r()?m():null===a.minutes?e(void 0,!0):!a.invalidMinutes&&a.minutes<10&&a.$apply(function(){a.minutes=k(a.minutes)})}),a.updateSeconds=function(){var a=j();x.$setDirty(),angular.isDefined(a)?(v.setSeconds(a),l(\"s\")):e(void 0,void 0,!0)},d.on(\"blur\",function(b){r()?m():!a.invalidSeconds&&a.seconds<10&&a.$apply(function(){a.seconds=k(a.seconds)})})},this.render=function(){var b=x.$viewValue;isNaN(b)?(x.$setValidity(\"time\",!1),e.error('Timepicker directive: \"ng-model\" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(b&&(v=b),C>v||v>D?(x.$setValidity(\"time\",!1),a.invalidHours=!0,a.invalidMinutes=!0):m(),n())},a.showSpinners=angular.isDefined(c.showSpinners)?a.$parent.$eval(c.showSpinners):g.showSpinners,a.incrementHours=function(){a.noIncrementHours()||o(60*A*60)},a.decrementHours=function(){a.noDecrementHours()||o(60*-A*60)},a.incrementMinutes=function(){a.noIncrementMinutes()||o(60*B)},a.decrementMinutes=function(){a.noDecrementMinutes()||o(60*-B)},a.incrementSeconds=function(){a.noIncrementSeconds()||o(F)},a.decrementSeconds=function(){a.noDecrementSeconds()||o(-F)},a.toggleMeridian=function(){var b=i(),c=h();a.noToggleMeridian()||(angular.isDefined(b)&&angular.isDefined(c)?o(720*(v.getHours()<12?60:-60)):a.meridian=a.meridian===y[0]?y[1]:y[0])},a.blur=function(){x.$setTouched()},a.$on(\"$destroy\",function(){for(;w.length;)w.shift()()})}]).directive(\"uibTimepicker\",[\"uibTimepickerConfig\",function(a){return{require:[\"uibTimepicker\",\"?^ngModel\"],restrict:\"A\",controller:\"UibTimepickerController\",controllerAs:\"timepicker\",scope:{},templateUrl:function(b,c){return c.templateUrl||a.templateUrl},link:function(a,b,c,d){var e=d[0],f=d[1];f&&e.init(f,b.find(\"input\"))}}}]),angular.module(\"ui.bootstrap.typeahead\",[\"ui.bootstrap.debounce\",\"ui.bootstrap.position\"]).factory(\"uibTypeaheadParser\",[\"$parse\",function(a){var b=/^\\s*([\\s\\S]+?)(?:\\s+as\\s+([\\s\\S]+?))?\\s+for\\s+(?:([\\$\\w][\\$\\w\\d]*))\\s+in\\s+([\\s\\S]+?)$/;return{parse:function(c){var d=c.match(b);if(!d)throw new Error('Expected typeahead specification in form of \"_modelValue_ (as _label_)? for _item_ in _collection_\" but got \"'+c+'\".');return{itemName:d[3],source:a(d[4]),viewMapper:a(d[2]||d[1]),modelMapper:a(d[1])}}}}]).controller(\"UibTypeaheadController\",[\"$scope\",\"$element\",\"$attrs\",\"$compile\",\"$parse\",\"$q\",\"$timeout\",\"$document\",\"$window\",\"$rootScope\",\"$$debounce\",\"$uibPosition\",\"uibTypeaheadParser\",function(a,b,c,d,e,f,g,h,i,j,k,l,m){function n(){P.moveInProgress||(P.moveInProgress=!0,P.$digest()),$()}function o(){P.position=F?l.offset(b):l.position(b),P.position.top+=b.prop(\"offsetHeight\")}function p(a){var b;return angular.version.minor<6?(b=a.$options||{},b.getOption=function(a){return b[a]}):b=a.$options,b}var q,r,s=[9,13,27,38,40],t=200,u=a.$eval(c.typeaheadMinLength);u||0===u||(u=1),a.$watch(c.typeaheadMinLength,function(a){u=a||0===a?a:1});var v=a.$eval(c.typeaheadWaitMs)||0,w=a.$eval(c.typeaheadEditable)!==!1;a.$watch(c.typeaheadEditable,function(a){w=a!==!1});var x,y,z=e(c.typeaheadLoading).assign||angular.noop,A=c.typeaheadShouldSelect?e(c.typeaheadShouldSelect):function(a,b){var c=b.$event;return 13===c.which||9===c.which},B=e(c.typeaheadOnSelect),C=angular.isDefined(c.typeaheadSelectOnBlur)?a.$eval(c.typeaheadSelectOnBlur):!1,D=e(c.typeaheadNoResults).assign||angular.noop,E=c.typeaheadInputFormatter?e(c.typeaheadInputFormatter):void 0,F=c.typeaheadAppendToBody?a.$eval(c.typeaheadAppendToBody):!1,G=c.typeaheadAppendTo?a.$eval(c.typeaheadAppendTo):null,H=a.$eval(c.typeaheadFocusFirst)!==!1,I=c.typeaheadSelectOnExact?a.$eval(c.typeaheadSelectOnExact):!1,J=e(c.typeaheadIsOpen).assign||angular.noop,K=a.$eval(c.typeaheadShowHint)||!1,L=e(c.ngModel),M=e(c.ngModel+\"($$$p)\"),N=function(b,c){return angular.isFunction(L(a))&&r.getOption(\"getterSetter\")?M(b,{$$$p:c}):L.assign(b,c)},O=m.parse(c.uibTypeahead),P=a.$new(),Q=a.$on(\"$destroy\",function(){P.$destroy()});P.$on(\"$destroy\",Q);var R=\"typeahead-\"+P.$id+\"-\"+Math.floor(1e4*Math.random());b.attr({\"aria-autocomplete\":\"list\",\"aria-expanded\":!1,\"aria-owns\":R});var S,T;K&&(S=angular.element(\"
    \"),S.css(\"position\",\"relative\"),b.after(S),T=b.clone(),T.attr(\"placeholder\",\"\"),T.attr(\"tabindex\",\"-1\"),T.val(\"\"),T.css({position:\"absolute\",top:\"0px\",left:\"0px\",\"border-color\":\"transparent\",\"box-shadow\":\"none\",opacity:1,background:\"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)\",color:\"#999\"}),b.css({position:\"relative\",\"vertical-align\":\"top\",\"background-color\":\"transparent\"}),T.attr(\"id\")&&T.removeAttr(\"id\"),S.append(T),T.after(b));var U=angular.element(\"
    \");U.attr({id:R,matches:\"matches\",active:\"activeIdx\",select:\"select(activeIdx, evt)\",\"move-in-progress\":\"moveInProgress\",query:\"query\",position:\"position\",\"assign-is-open\":\"assignIsOpen(isOpen)\",debounce:\"debounceUpdate\"}),angular.isDefined(c.typeaheadTemplateUrl)&&U.attr(\"template-url\",c.typeaheadTemplateUrl),angular.isDefined(c.typeaheadPopupTemplateUrl)&&U.attr(\"popup-template-url\",c.typeaheadPopupTemplateUrl);var V=function(){K&&T.val(\"\")},W=function(){P.matches=[],P.activeIdx=-1,b.attr(\"aria-expanded\",!1),V()},X=function(a){return R+\"-option-\"+a};P.$watch(\"activeIdx\",function(a){0>a?b.removeAttr(\"aria-activedescendant\"):b.attr(\"aria-activedescendant\",X(a))});var Y=function(a,b){return P.matches.length>b&&a?a.toUpperCase()===P.matches[b].label.toUpperCase():!1},Z=function(c,d){var e={$viewValue:c};z(a,!0),D(a,!1),f.when(O.source(a,e)).then(function(f){var g=c===q.$viewValue;if(g&&x)if(f&&f.length>0){P.activeIdx=H?0:-1,D(a,!1),P.matches.length=0;for(var h=0;h0&&i.slice(0,c.length).toUpperCase()===c.toUpperCase()?T.val(c+i.slice(c.length)):T.val(\"\")}}else W(),D(a,!0);g&&z(a,!1)},function(){W(),z(a,!1),D(a,!0)})};F&&(angular.element(i).on(\"resize\",n),h.find(\"body\").on(\"scroll\",n));var $=k(function(){P.matches.length&&o(),P.moveInProgress=!1},t);P.moveInProgress=!1,P.query=void 0;var _,aa=function(a){_=g(function(){Z(a)},v)},ba=function(){_&&g.cancel(_)};W(),P.assignIsOpen=function(b){J(a,b)},P.select=function(d,e){var f,h,i={};y=!0,i[O.itemName]=h=P.matches[d].model,f=O.modelMapper(a,i),N(a,f),q.$setValidity(\"editable\",!0),q.$setValidity(\"parse\",!0),B(a,{$item:h,$model:f,$label:O.viewMapper(a,i),$event:e}),W(),P.$eval(c.typeaheadFocusOnSelect)!==!1&&g(function(){b[0].focus()},0,!1)},b.on(\"keydown\",function(b){if(0!==P.matches.length&&-1!==s.indexOf(b.which)){var c=A(a,{$event:b});if(-1===P.activeIdx&&c||9===b.which&&b.shiftKey)return W(),void P.$digest();b.preventDefault();var d;switch(b.which){case 27:b.stopPropagation(),W(),a.$digest();break;case 38:P.activeIdx=(P.activeIdx>0?P.activeIdx:P.matches.length)-1,P.$digest(),d=U[0].querySelectorAll(\".uib-typeahead-match\")[P.activeIdx],d.parentNode.scrollTop=d.offsetTop;break;case 40:P.activeIdx=(P.activeIdx+1)%P.matches.length,P.$digest(),d=U[0].querySelectorAll(\".uib-typeahead-match\")[P.activeIdx],\nd.parentNode.scrollTop=d.offsetTop;break;default:c&&P.$apply(function(){angular.isNumber(P.debounceUpdate)||angular.isObject(P.debounceUpdate)?k(function(){P.select(P.activeIdx,b)},angular.isNumber(P.debounceUpdate)?P.debounceUpdate:P.debounceUpdate[\"default\"]):P.select(P.activeIdx,b)})}}}),b.on(\"focus\",function(a){x=!0,0!==u||q.$viewValue||g(function(){Z(q.$viewValue,a)},0)}),b.on(\"blur\",function(a){C&&P.matches.length&&-1!==P.activeIdx&&!y&&(y=!0,P.$apply(function(){angular.isObject(P.debounceUpdate)&&angular.isNumber(P.debounceUpdate.blur)?k(function(){P.select(P.activeIdx,a)},P.debounceUpdate.blur):P.select(P.activeIdx,a)})),!w&&q.$error.editable&&(q.$setViewValue(),P.$apply(function(){q.$setValidity(\"editable\",!0),q.$setValidity(\"parse\",!0)}),b.val(\"\")),x=!1,y=!1});var ca=function(c){b[0]!==c.target&&3!==c.which&&0!==P.matches.length&&(W(),j.$$phase||a.$digest())};h.on(\"click\",ca),a.$on(\"$destroy\",function(){h.off(\"click\",ca),(F||G)&&da.remove(),F&&(angular.element(i).off(\"resize\",n),h.find(\"body\").off(\"scroll\",n)),U.remove(),K&&S.remove()});var da=d(U)(P);F?h.find(\"body\").append(da):G?angular.element(G).eq(0).append(da):b.after(da),this.init=function(b){q=b,r=p(q),P.debounceUpdate=e(r.getOption(\"debounce\"))(a),q.$parsers.unshift(function(b){return x=!0,0===u||b&&b.length>=u?v>0?(ba(),aa(b)):Z(b):(z(a,!1),ba(),W()),w?b:b?void q.$setValidity(\"editable\",!1):(q.$setValidity(\"editable\",!0),null)}),q.$formatters.push(function(b){var c,d,e={};return w||q.$setValidity(\"editable\",!0),E?(e.$model=b,E(a,e)):(e[O.itemName]=b,c=O.viewMapper(a,e),e[O.itemName]=void 0,d=O.viewMapper(a,e),c!==d?c:b)})}}]).directive(\"uibTypeahead\",function(){return{controller:\"UibTypeaheadController\",require:[\"ngModel\",\"uibTypeahead\"],link:function(a,b,c,d){d[1].init(d[0])}}}).directive(\"uibTypeaheadPopup\",[\"$$debounce\",function(a){return{scope:{matches:\"=\",query:\"=\",active:\"=\",position:\"&\",moveInProgress:\"=\",select:\"&\",assignIsOpen:\"&\",debounce:\"&\"},replace:!0,templateUrl:function(a,b){return b.popupTemplateUrl||\"uib/template/typeahead/typeahead-popup.html\"},link:function(b,c,d){b.templateUrl=d.templateUrl,b.isOpen=function(){var a=b.matches.length>0;return b.assignIsOpen({isOpen:a}),a},b.isActive=function(a){return b.active===a},b.selectActive=function(a){b.active=a},b.selectMatch=function(c,d){var e=b.debounce();angular.isNumber(e)||angular.isObject(e)?a(function(){b.select({activeIdx:c,evt:d})},angular.isNumber(e)?e:e[\"default\"]):b.select({activeIdx:c,evt:d})}}}}]).directive(\"uibTypeaheadMatch\",[\"$templateRequest\",\"$compile\",\"$parse\",function(a,b,c){return{scope:{index:\"=\",match:\"=\",query:\"=\"},link:function(d,e,f){var g=c(f.templateUrl)(d.$parent)||\"uib/template/typeahead/typeahead-match.html\";a(g).then(function(a){var c=angular.element(a.trim());e.replaceWith(c),b(c)(d)})}}}]).filter(\"uibTypeaheadHighlight\",[\"$sce\",\"$injector\",\"$log\",function(a,b,c){function d(a){return a.replace(/([.?*+^$[\\]\\\\(){}|-])/g,\"\\\\$1\")}function e(a){return/<.*>/g.test(a)}var f;return f=b.has(\"$sanitize\"),function(b,g){return!f&&e(b)&&c.warn(\"Unsafe use of typeahead please use ngSanitize\"),b=g?(\"\"+b).replace(new RegExp(d(g),\"gi\"),\"$&\"):b,f||(b=a.trustAsHtml(b)),b}}]),angular.module(\"uib/template/accordion/accordion-group.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/accordion/accordion-group.html\",'
    \\n

    \\n {{heading}}\\n

    \\n
    \\n
    \\n
    \\n
    \\n')}]),angular.module(\"uib/template/accordion/accordion.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/accordion/accordion.html\",'
    ')}]),angular.module(\"uib/template/alert/alert.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/alert/alert.html\",'\\n
    \\n')}]),angular.module(\"uib/template/carousel/carousel.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/carousel/carousel.html\",'
    \\n 1\">\\n \\n previous\\n\\n 1\">\\n \\n next\\n\\n
      1\">\\n
    1. \\n slide {{ $index + 1 }} of {{ slides.length }}, currently active\\n
    2. \\n
    \\n')}]),angular.module(\"uib/template/carousel/slide.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/carousel/slide.html\",'
    \\n')}]),angular.module(\"uib/template/datepicker/datepicker.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/datepicker/datepicker.html\",'
    \\n
    \\n
    \\n
    \\n
    \\n')}]),angular.module(\"uib/template/datepicker/day.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/datepicker/day.html\",'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
    {{::label.abbr}}
    {{ weekNumbers[$index] }}\\n \\n
    \\n')}]),angular.module(\"uib/template/datepicker/month.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/datepicker/month.html\",'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
    \\n \\n
    \\n')}]),angular.module(\"uib/template/datepicker/year.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/datepicker/year.html\",'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
    \\n \\n
    \\n')}]),angular.module(\"uib/template/datepickerPopup/popup.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/datepickerPopup/popup.html\",'
      \\n
    • \\n
    • \\n \\n \\n \\n \\n \\n
    • \\n
    \\n')}]),angular.module(\"uib/template/modal/window.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/modal/window.html\",\"
    \\n\")}]),angular.module(\"uib/template/pager/pager.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/pager/pager.html\",'
  • {{::getText(\\'previous\\')}}
  • \\n
  • {{::getText(\\'next\\')}}
  • \\n')}]),angular.module(\"uib/template/pagination/pagination.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/pagination/pagination.html\",'
  • {{::getText(\\'first\\')}}
  • \\n
  • {{::getText(\\'previous\\')}}
  • \\n
  • {{page.text}}
  • \\n
  • {{::getText(\\'next\\')}}
  • \\n
  • {{::getText(\\'last\\')}}
  • \\n')}]),angular.module(\"uib/template/tooltip/tooltip-html-popup.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/tooltip/tooltip-html-popup.html\",'
    \\n
    \\n')}]),angular.module(\"uib/template/tooltip/tooltip-popup.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/tooltip/tooltip-popup.html\",'
    \\n
    \\n')}]),angular.module(\"uib/template/tooltip/tooltip-template-popup.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/tooltip/tooltip-template-popup.html\",'
    \\n
    \\n')}]),angular.module(\"uib/template/popover/popover-html.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/popover/popover-html.html\",'
    \\n\\n
    \\n

    \\n
    \\n
    \\n')}]),angular.module(\"uib/template/popover/popover-template.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/popover/popover-template.html\",'
    \\n\\n
    \\n

    \\n
    \\n
    \\n')}]),angular.module(\"uib/template/popover/popover.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/popover/popover.html\",'
    \\n\\n
    \\n

    \\n
    \\n
    \\n')}]),angular.module(\"uib/template/progressbar/bar.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/progressbar/bar.html\",'
    \\n')}]),angular.module(\"uib/template/progressbar/progress.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/progressbar/progress.html\",'
    ')}]),angular.module(\"uib/template/progressbar/progressbar.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/progressbar/progressbar.html\",'
    \\n
    \\n
    \\n')}]),angular.module(\"uib/template/rating/rating.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/rating/rating.html\",'\\n ({{ $index < value ? \\'*\\' : \\' \\' }})\\n \\n\\n')}]),angular.module(\"uib/template/tabs/tab.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/tabs/tab.html\",'
  • \\n {{heading}}\\n
  • \\n')}]),angular.module(\"uib/template/tabs/tabset.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/tabs/tabset.html\",'
    \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n')}]),angular.module(\"uib/template/timepicker/timepicker.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/timepicker/timepicker.html\",'\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
        
      \\n \\n :\\n \\n :\\n \\n
        
      \\n')}]),angular.module(\"uib/template/typeahead/typeahead-match.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/typeahead/typeahead-match.html\",'\\n')}]),angular.module(\"uib/template/typeahead/typeahead-popup.html\",[]).run([\"$templateCache\",function(a){a.put(\"uib/template/typeahead/typeahead-popup.html\",'
        \\n
      • \\n
        \\n
      • \\n
      \\n')}]),angular.module(\"ui.bootstrap.carousel\").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find(\"head\").prepend(''),angular.$$uibCarouselCss=!0}),angular.module(\"ui.bootstrap.datepicker\").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find(\"head\").prepend(''),angular.$$uibDatepickerCss=!0}),angular.module(\"ui.bootstrap.position\").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find(\"head\").prepend(''),angular.$$uibPositionCss=!0}),angular.module(\"ui.bootstrap.datepickerPopup\").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find(\"head\").prepend(''),angular.$$uibDatepickerpopupCss=!0}),angular.module(\"ui.bootstrap.tooltip\").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find(\"head\").prepend(''),angular.$$uibTooltipCss=!0}),angular.module(\"ui.bootstrap.timepicker\").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find(\"head\").prepend(''),angular.$$uibTimepickerCss=!0}),angular.module(\"ui.bootstrap.typeahead\").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find(\"head\").prepend(''),angular.$$uibTypeaheadCss=!0});","/**\r\n * React v15.5.4\r\n *\r\n * Copyright 2013-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n *\r\n */\r\n!function (t) { if (\"object\" == typeof exports && \"undefined\" != typeof module) module.exports = t(); else if (\"function\" == typeof define && define.amd) define([], t); else { var e; e = \"undefined\" != typeof window ? window : \"undefined\" != typeof global ? global : \"undefined\" != typeof self ? self : this, e.React = t() } }(function () { return function t(e, n, r) { function o(u, a) { if (!n[u]) { if (!e[u]) { var s = \"function\" == typeof require && require; if (!a && s) return s(u, !0); if (i) return i(u, !0); var c = new Error(\"Cannot find module '\" + u + \"'\"); throw c.code = \"MODULE_NOT_FOUND\", c } var l = n[u] = { exports: {} }; e[u][0].call(l.exports, function (t) { var n = e[u][1][t]; return o(n || t) }, l, l.exports, t, e, n, r) } return n[u].exports } for (var i = \"function\" == typeof require && require, u = 0; u < r.length; u++)o(r[u]); return o }({ 1: [function (t, e, n) { \"use strict\"; function r(t) { var e = { \"=\": \"=0\", \":\": \"=2\" }; return \"$\" + (\"\" + t).replace(/[=:]/g, function (t) { return e[t] }) } function o(t) { var e = { \"=0\": \"=\", \"=2\": \":\" }; return (\"\" + (\".\" === t[0] && \"$\" === t[1] ? t.substring(2) : t.substring(1))).replace(/(=0|=2)/g, function (t) { return e[t] }) } var i = { escape: r, unescape: o }; e.exports = i }, {}], 2: [function (t, e, n) { \"use strict\"; var r = t(20), o = (t(24), function (t) { var e = this; if (e.instancePool.length) { var n = e.instancePool.pop(); return e.call(n, t), n } return new e(t) }), i = function (t, e) { var n = this; if (n.instancePool.length) { var r = n.instancePool.pop(); return n.call(r, t, e), r } return new n(t, e) }, u = function (t, e, n) { var r = this; if (r.instancePool.length) { var o = r.instancePool.pop(); return r.call(o, t, e, n), o } return new r(t, e, n) }, a = function (t, e, n, r) { var o = this; if (o.instancePool.length) { var i = o.instancePool.pop(); return o.call(i, t, e, n, r), i } return new o(t, e, n, r) }, s = function (t) { var e = this; t instanceof e || r(\"25\"), t.destructor(), e.instancePool.length < e.poolSize && e.instancePool.push(t) }, c = o, l = function (t, e) { var n = t; return n.instancePool = [], n.getPooled = e || c, n.poolSize || (n.poolSize = 10), n.release = s, n }, f = { addPoolingTo: l, oneArgumentPooler: o, twoArgumentPooler: i, threeArgumentPooler: u, fourArgumentPooler: a }; e.exports = f }, { 20: 20, 24: 24 }], 3: [function (t, e, n) { \"use strict\"; var r = t(26), o = t(4), i = t(6), u = t(14), a = t(5), s = t(8), c = t(9), l = t(13), f = t(16), p = t(19), d = (t(25), c.createElement), y = c.createFactory, h = c.cloneElement, v = r, m = { Children: { map: o.map, forEach: o.forEach, count: o.count, toArray: o.toArray, only: p }, Component: i, PureComponent: u, createElement: d, cloneElement: h, isValidElement: c.isValidElement, PropTypes: l, createClass: a.createClass, createFactory: y, createMixin: function (t) { return t }, DOM: s, version: f, __spread: v }; e.exports = m }, { 13: 13, 14: 14, 16: 16, 19: 19, 25: 25, 26: 26, 4: 4, 5: 5, 6: 6, 8: 8, 9: 9 }], 4: [function (t, e, n) { \"use strict\"; function r(t) { return (\"\" + t).replace(E, \"$&/\") } function o(t, e) { this.func = t, this.context = e, this.count = 0 } function i(t, e, n) { var r = t.func, o = t.context; r.call(o, e, t.count++) } function u(t, e, n) { if (null == t) return t; var r = o.getPooled(e, n); m(t, i, r), o.release(r) } function a(t, e, n, r) { this.result = t, this.keyPrefix = e, this.func = n, this.context = r, this.count = 0 } function s(t, e, n) { var o = t.result, i = t.keyPrefix, u = t.func, a = t.context, s = u.call(a, e, t.count++); Array.isArray(s) ? c(s, o, n, v.thatReturnsArgument) : null != s && (h.isValidElement(s) && (s = h.cloneAndReplaceKey(s, i + (!s.key || e && e.key === s.key ? \"\" : r(s.key) + \"/\") + n)), o.push(s)) } function c(t, e, n, o, i) { var u = \"\"; null != n && (u = r(n) + \"/\"); var c = a.getPooled(e, u, o, i); m(t, s, c), a.release(c) } function l(t, e, n) { if (null == t) return t; var r = []; return c(t, r, null, e, n), r } function f(t, e, n) { return null } function p(t, e) { return m(t, f, null) } function d(t) { var e = []; return c(t, e, null, v.thatReturnsArgument), e } var y = t(2), h = t(9), v = t(22), m = t(21), b = y.twoArgumentPooler, g = y.fourArgumentPooler, E = /\\/+/g; o.prototype.destructor = function () { this.func = null, this.context = null, this.count = 0 }, y.addPoolingTo(o, b), a.prototype.destructor = function () { this.result = null, this.keyPrefix = null, this.func = null, this.context = null, this.count = 0 }, y.addPoolingTo(a, g); var x = { forEach: u, map: l, mapIntoWithKeyPrefixInternal: c, count: p, toArray: d }; e.exports = x }, { 2: 2, 21: 21, 22: 22, 9: 9 }], 5: [function (t, e, n) { \"use strict\"; function r(t) { return t } function o(t, e) { var n = E.hasOwnProperty(e) ? E[e] : null; _.hasOwnProperty(e) && \"OVERRIDE_BASE\" !== n && p(\"73\", e), t && \"DEFINE_MANY\" !== n && \"DEFINE_MANY_MERGED\" !== n && p(\"74\", e) } function i(t, e) { if (e) { \"function\" == typeof e && p(\"75\"), h.isValidElement(e) && p(\"76\"); var n = t.prototype, r = n.__reactAutoBindPairs; e.hasOwnProperty(b) && x.mixins(t, e.mixins); for (var i in e) if (e.hasOwnProperty(i) && i !== b) { var u = e[i], a = n.hasOwnProperty(i); if (o(a, i), x.hasOwnProperty(i)) x[i](t, u); else { var l = E.hasOwnProperty(i), f = \"function\" == typeof u, d = f && !l && !a && !1 !== e.autobind; if (d) r.push(i, u), n[i] = u; else if (a) { var y = E[i]; (!l || \"DEFINE_MANY_MERGED\" !== y && \"DEFINE_MANY\" !== y) && p(\"77\", y, i), \"DEFINE_MANY_MERGED\" === y ? n[i] = s(n[i], u) : \"DEFINE_MANY\" === y && (n[i] = c(n[i], u)) } else n[i] = u } } } } function u(t, e) { if (e) for (var n in e) { var r = e[n]; if (e.hasOwnProperty(n)) { var o = n in x; o && p(\"78\", n); var i = n in t; i && p(\"79\", n), t[n] = r } } } function a(t, e) { t && e && \"object\" == typeof t && \"object\" == typeof e || p(\"80\"); for (var n in e) e.hasOwnProperty(n) && (void 0 !== t[n] && p(\"81\", n), t[n] = e[n]); return t } function s(t, e) { return function () { var n = t.apply(this, arguments), r = e.apply(this, arguments); if (null == n) return r; if (null == r) return n; var o = {}; return a(o, n), a(o, r), o } } function c(t, e) { return function () { t.apply(this, arguments), e.apply(this, arguments) } } function l(t, e) { return e.bind(t) } function f(t) { for (var e = t.__reactAutoBindPairs, n = 0; n < e.length; n += 2) { var r = e[n], o = e[n + 1]; t[r] = l(t, o) } } var p = t(20), d = t(26), y = t(6), h = t(9), v = (t(12), t(11)), m = t(23), b = (t(24), t(25), \"mixins\"), g = [], E = { mixins: \"DEFINE_MANY\", statics: \"DEFINE_MANY\", propTypes: \"DEFINE_MANY\", contextTypes: \"DEFINE_MANY\", childContextTypes: \"DEFINE_MANY\", getDefaultProps: \"DEFINE_MANY_MERGED\", getInitialState: \"DEFINE_MANY_MERGED\", getChildContext: \"DEFINE_MANY_MERGED\", render: \"DEFINE_ONCE\", componentWillMount: \"DEFINE_MANY\", componentDidMount: \"DEFINE_MANY\", componentWillReceiveProps: \"DEFINE_MANY\", shouldComponentUpdate: \"DEFINE_ONCE\", componentWillUpdate: \"DEFINE_MANY\", componentDidUpdate: \"DEFINE_MANY\", componentWillUnmount: \"DEFINE_MANY\", updateComponent: \"OVERRIDE_BASE\" }, x = { displayName: function (t, e) { t.displayName = e }, mixins: function (t, e) { if (e) for (var n = 0; n < e.length; n++)i(t, e[n]) }, childContextTypes: function (t, e) { t.childContextTypes = d({}, t.childContextTypes, e) }, contextTypes: function (t, e) { t.contextTypes = d({}, t.contextTypes, e) }, getDefaultProps: function (t, e) { t.getDefaultProps ? t.getDefaultProps = s(t.getDefaultProps, e) : t.getDefaultProps = e }, propTypes: function (t, e) { t.propTypes = d({}, t.propTypes, e) }, statics: function (t, e) { u(t, e) }, autobind: function () { } }, _ = { replaceState: function (t, e) { this.updater.enqueueReplaceState(this, t), e && this.updater.enqueueCallback(this, e, \"replaceState\") }, isMounted: function () { return this.updater.isMounted(this) } }, P = function () { }; d(P.prototype, y.prototype, _); var w = { createClass: function (t) { var e = r(function (t, n, r) { this.__reactAutoBindPairs.length && f(this), this.props = t, this.context = n, this.refs = m, this.updater = r || v, this.state = null; var o = this.getInitialState ? this.getInitialState() : null; (\"object\" != typeof o || Array.isArray(o)) && p(\"82\", e.displayName || \"ReactCompositeComponent\"), this.state = o }); e.prototype = new P, e.prototype.constructor = e, e.prototype.__reactAutoBindPairs = [], g.forEach(i.bind(null, e)), i(e, t), e.getDefaultProps && (e.defaultProps = e.getDefaultProps()), e.prototype.render || p(\"83\"); for (var n in E) e.prototype[n] || (e.prototype[n] = null); return e }, injection: { injectMixin: function (t) { g.push(t) } } }; e.exports = w }, { 11: 11, 12: 12, 20: 20, 23: 23, 24: 24, 25: 25, 26: 26, 6: 6, 9: 9 }], 6: [function (t, e, n) { \"use strict\"; function r(t, e, n) { this.props = t, this.context = e, this.refs = u, this.updater = n || i } var o = t(20), i = t(11), u = (t(17), t(23)); t(24), t(25); r.prototype.isReactComponent = {}, r.prototype.setState = function (t, e) { \"object\" != typeof t && \"function\" != typeof t && null != t && o(\"85\"), this.updater.enqueueSetState(this, t), e && this.updater.enqueueCallback(this, e, \"setState\") }, r.prototype.forceUpdate = function (t) { this.updater.enqueueForceUpdate(this), t && this.updater.enqueueCallback(this, t, \"forceUpdate\") }; e.exports = r }, { 11: 11, 17: 17, 20: 20, 23: 23, 24: 24, 25: 25 }], 7: [function (t, e, n) { \"use strict\"; var r = { current: null }; e.exports = r }, {}], 8: [function (t, e, n) { \"use strict\"; var r = t(9), o = r.createFactory, i = { a: o(\"a\"), abbr: o(\"abbr\"), address: o(\"address\"), area: o(\"area\"), article: o(\"article\"), aside: o(\"aside\"), audio: o(\"audio\"), b: o(\"b\"), base: o(\"base\"), bdi: o(\"bdi\"), bdo: o(\"bdo\"), big: o(\"big\"), blockquote: o(\"blockquote\"), body: o(\"body\"), br: o(\"br\"), button: o(\"button\"), canvas: o(\"canvas\"), caption: o(\"caption\"), cite: o(\"cite\"), code: o(\"code\"), col: o(\"col\"), colgroup: o(\"colgroup\"), data: o(\"data\"), datalist: o(\"datalist\"), dd: o(\"dd\"), del: o(\"del\"), details: o(\"details\"), dfn: o(\"dfn\"), dialog: o(\"dialog\"), div: o(\"div\"), dl: o(\"dl\"), dt: o(\"dt\"), em: o(\"em\"), embed: o(\"embed\"), fieldset: o(\"fieldset\"), figcaption: o(\"figcaption\"), figure: o(\"figure\"), footer: o(\"footer\"), form: o(\"form\"), h1: o(\"h1\"), h2: o(\"h2\"), h3: o(\"h3\"), h4: o(\"h4\"), h5: o(\"h5\"), h6: o(\"h6\"), head: o(\"head\"), header: o(\"header\"), hgroup: o(\"hgroup\"), hr: o(\"hr\"), html: o(\"html\"), i: o(\"i\"), iframe: o(\"iframe\"), img: o(\"img\"), input: o(\"input\"), ins: o(\"ins\"), kbd: o(\"kbd\"), keygen: o(\"keygen\"), label: o(\"label\"), legend: o(\"legend\"), li: o(\"li\"), link: o(\"link\"), main: o(\"main\"), map: o(\"map\"), mark: o(\"mark\"), menu: o(\"menu\"), menuitem: o(\"menuitem\"), meta: o(\"meta\"), meter: o(\"meter\"), nav: o(\"nav\"), noscript: o(\"noscript\"), object: o(\"object\"), ol: o(\"ol\"), optgroup: o(\"optgroup\"), option: o(\"option\"), output: o(\"output\"), p: o(\"p\"), param: o(\"param\"), picture: o(\"picture\"), pre: o(\"pre\"), progress: o(\"progress\"), q: o(\"q\"), rp: o(\"rp\"), rt: o(\"rt\"), ruby: o(\"ruby\"), s: o(\"s\"), samp: o(\"samp\"), script: o(\"script\"), section: o(\"section\"), select: o(\"select\"), small: o(\"small\"), source: o(\"source\"), span: o(\"span\"), strong: o(\"strong\"), style: o(\"style\"), sub: o(\"sub\"), summary: o(\"summary\"), sup: o(\"sup\"), table: o(\"table\"), tbody: o(\"tbody\"), td: o(\"td\"), textarea: o(\"textarea\"), tfoot: o(\"tfoot\"), th: o(\"th\"), thead: o(\"thead\"), time: o(\"time\"), title: o(\"title\"), tr: o(\"tr\"), track: o(\"track\"), u: o(\"u\"), ul: o(\"ul\"), var: o(\"var\"), video: o(\"video\"), wbr: o(\"wbr\"), circle: o(\"circle\"), clipPath: o(\"clipPath\"), defs: o(\"defs\"), ellipse: o(\"ellipse\"), g: o(\"g\"), image: o(\"image\"), line: o(\"line\"), linearGradient: o(\"linearGradient\"), mask: o(\"mask\"), path: o(\"path\"), pattern: o(\"pattern\"), polygon: o(\"polygon\"), polyline: o(\"polyline\"), radialGradient: o(\"radialGradient\"), rect: o(\"rect\"), stop: o(\"stop\"), svg: o(\"svg\"), text: o(\"text\"), tspan: o(\"tspan\") }; e.exports = i }, { 9: 9 }], 9: [function (t, e, n) { \"use strict\"; function r(t) { return void 0 !== t.ref } function o(t) { return void 0 !== t.key } var i = t(26), u = t(7), a = (t(25), t(17), Object.prototype.hasOwnProperty), s = t(10), c = { key: !0, ref: !0, __self: !0, __source: !0 }, l = function (t, e, n, r, o, i, u) { return { $$typeof: s, type: t, key: e, ref: n, props: u, _owner: i } }; l.createElement = function (t, e, n) { var i, s = {}, f = null, p = null; if (null != e) { r(e) && (p = e.ref), o(e) && (f = \"\" + e.key), void 0 === e.__self ? null : e.__self, void 0 === e.__source ? null : e.__source; for (i in e) a.call(e, i) && !c.hasOwnProperty(i) && (s[i] = e[i]) } var d = arguments.length - 2; if (1 === d) s.children = n; else if (d > 1) { for (var y = Array(d), h = 0; h < d; h++)y[h] = arguments[h + 2]; s.children = y } if (t && t.defaultProps) { var v = t.defaultProps; for (i in v) void 0 === s[i] && (s[i] = v[i]) } return l(t, f, p, 0, 0, u.current, s) }, l.createFactory = function (t) { var e = l.createElement.bind(null, t); return e.type = t, e }, l.cloneAndReplaceKey = function (t, e) { return l(t.type, e, t.ref, t._self, t._source, t._owner, t.props) }, l.cloneElement = function (t, e, n) { var s, f = i({}, t.props), p = t.key, d = t.ref, y = (t._self, t._source, t._owner); if (null != e) { r(e) && (d = e.ref, y = u.current), o(e) && (p = \"\" + e.key); var h; t.type && t.type.defaultProps && (h = t.type.defaultProps); for (s in e) a.call(e, s) && !c.hasOwnProperty(s) && (void 0 === e[s] && void 0 !== h ? f[s] = h[s] : f[s] = e[s]) } var v = arguments.length - 2; if (1 === v) f.children = n; else if (v > 1) { for (var m = Array(v), b = 0; b < v; b++)m[b] = arguments[b + 2]; f.children = m } return l(t.type, p, d, 0, 0, y, f) }, l.isValidElement = function (t) { return \"object\" == typeof t && null !== t && t.$$typeof === s }, e.exports = l }, { 10: 10, 17: 17, 25: 25, 26: 26, 7: 7 }], 10: [function (t, e, n) { \"use strict\"; var r = \"function\" == typeof Symbol && Symbol.for && Symbol.for(\"react.element\") || 60103; e.exports = r }, {}], 11: [function (t, e, n) { \"use strict\"; var r = (t(25), { isMounted: function (t) { return !1 }, enqueueCallback: function (t, e) { }, enqueueForceUpdate: function (t) { }, enqueueReplaceState: function (t, e) { }, enqueueSetState: function (t, e) { } }); e.exports = r }, { 25: 25 }], 12: [function (t, e, n) { \"use strict\"; var r = {}; e.exports = r }, {}], 13: [function (t, e, n) { \"use strict\"; var r = t(9), o = r.isValidElement, i = t(28); e.exports = i(o) }, { 28: 28, 9: 9 }], 14: [function (t, e, n) { \"use strict\"; function r(t, e, n) { this.props = t, this.context = e, this.refs = s, this.updater = n || a } function o() { } var i = t(26), u = t(6), a = t(11), s = t(23); o.prototype = u.prototype, r.prototype = new o, r.prototype.constructor = r, i(r.prototype, u.prototype), r.prototype.isPureReactComponent = !0, e.exports = r }, { 11: 11, 23: 23, 26: 26, 6: 6 }], 15: [function (t, e, n) { \"use strict\"; var r = t(26), o = t(3), i = r(o, { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner: t(7) } }); e.exports = i }, { 26: 26, 3: 3, 7: 7 }], 16: [function (t, e, n) { \"use strict\"; e.exports = \"15.5.4\" }, {}], 17: [function (t, e, n) { \"use strict\"; e.exports = !1 }, {}], 18: [function (t, e, n) { \"use strict\"; function r(t) { var e = t && (o && t[o] || t[i]); if (\"function\" == typeof e) return e } var o = \"function\" == typeof Symbol && Symbol.iterator, i = \"@@iterator\"; e.exports = r }, {}], 19: [function (t, e, n) { \"use strict\"; function r(t) { return i.isValidElement(t) || o(\"143\"), t } var o = t(20), i = t(9); t(24); e.exports = r }, { 20: 20, 24: 24, 9: 9 }], 20: [function (t, e, n) { \"use strict\"; function r(t) { for (var e = arguments.length - 1, n = \"Minified React error #\" + t + \"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=\" + t, r = 0; r < e; r++)n += \"&args[]=\" + encodeURIComponent(arguments[r + 1]); n += \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"; var o = new Error(n); throw o.name = \"Invariant Violation\", o.framesToPop = 1, o } e.exports = r }, {}], 21: [function (t, e, n) { \"use strict\"; function r(t, e) { return t && \"object\" == typeof t && null != t.key ? c.escape(t.key) : e.toString(36) } function o(t, e, n, i) { var p = typeof t; if (\"undefined\" !== p && \"boolean\" !== p || (t = null), null === t || \"string\" === p || \"number\" === p || \"object\" === p && t.$$typeof === a) return n(i, t, \"\" === e ? l + r(t, 0) : e), 1; var d, y, h = 0, v = \"\" === e ? l : e + f; if (Array.isArray(t)) for (var m = 0; m < t.length; m++)d = t[m], y = v + r(d, m), h += o(d, y, n, i); else { var b = s(t); if (b) { var g, E = b.call(t); if (b !== t.entries) for (var x = 0; !(g = E.next()).done;)d = g.value, y = v + r(d, x++), h += o(d, y, n, i); else for (; !(g = E.next()).done;) { var _ = g.value; _ && (d = _[1], y = v + c.escape(_[0]) + f + r(d, 0), h += o(d, y, n, i)) } } else if (\"object\" === p) { var P = String(t); u(\"31\", \"[object Object]\" === P ? \"object with keys {\" + Object.keys(t).join(\", \") + \"}\" : P, \"\") } } return h } function i(t, e, n) { return null == t ? 0 : o(t, \"\", e, n) } var u = t(20), a = (t(7), t(10)), s = t(18), c = (t(24), t(1)), l = (t(25), \".\"), f = \":\"; e.exports = i }, { 1: 1, 10: 10, 18: 18, 20: 20, 24: 24, 25: 25, 7: 7 }], 22: [function (t, e, n) { \"use strict\"; function r(t) { return function () { return t } } var o = function () { }; o.thatReturns = r, o.thatReturnsFalse = r(!1), o.thatReturnsTrue = r(!0), o.thatReturnsNull = r(null), o.thatReturnsThis = function () { return this }, o.thatReturnsArgument = function (t) { return t }, e.exports = o }, {}], 23: [function (t, e, n) { \"use strict\"; var r = {}; e.exports = r }, {}], 24: [function (t, e, n) { \"use strict\"; function r(t, e, n, r, i, u, a, s) { if (o(e), !t) { var c; if (void 0 === e) c = new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\"); else { var l = [n, r, i, u, a, s], f = 0; c = new Error(e.replace(/%s/g, function () { return l[f++] })), c.name = \"Invariant Violation\" } throw c.framesToPop = 1, c } } var o = function (t) { }; e.exports = r }, {}], 25: [function (t, e, n) { \"use strict\"; var r = t(22), o = r; e.exports = o }, { 22: 22 }], 26: [function (t, e, n) { \"use strict\"; function r(t) { if (null === t || void 0 === t) throw new TypeError(\"Object.assign cannot be called with null or undefined\"); return Object(t) } var o = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable; e.exports = function () { try { if (!Object.assign) return !1; var t = new String(\"abc\"); if (t[5] = \"de\", \"5\" === Object.getOwnPropertyNames(t)[0]) return !1; for (var e = {}, n = 0; n < 10; n++)e[\"_\" + String.fromCharCode(n)] = n; if (\"0123456789\" !== Object.getOwnPropertyNames(e).map(function (t) { return e[t] }).join(\"\")) return !1; var r = {}; return \"abcdefghijklmnopqrst\".split(\"\").forEach(function (t) { r[t] = t }), \"abcdefghijklmnopqrst\" === Object.keys(Object.assign({}, r)).join(\"\") } catch (t) { return !1 } }() ? Object.assign : function (t, e) { for (var n, a, s = r(t), c = 1; c < arguments.length; c++) { n = Object(arguments[c]); for (var l in n) i.call(n, l) && (s[l] = n[l]); if (o) { a = o(n); for (var f = 0; f < a.length; f++)u.call(n, a[f]) && (s[a[f]] = n[a[f]]) } } return s } }, {}], 27: [function (t, e, n) { \"use strict\"; function r(t, e, n, r, o) { } e.exports = r }, { 24: 24, 25: 25, 30: 30 }], 28: [function (t, e, n) { \"use strict\"; var r = t(29); e.exports = function (t) { return r(t, !1) } }, { 29: 29 }], 29: [function (t, e, n) { \"use strict\"; var r = t(22), o = t(24), i = (t(25), t(30)), u = t(27); e.exports = function (t, e) { function n(t) { var e = t && (_ && t[_] || t[P]); if (\"function\" == typeof e) return e } function a(t, e) { return t === e ? 0 !== t || 1 / t == 1 / e : t !== t && e !== e } function s(t) { this.message = t, this.stack = \"\" } function c(t) { function n(n, r, u, a, c, l, f) { if (a = a || w, l = l || u, f !== i) if (e) o(!1, \"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types\"); else; return null == r[u] ? n ? new s(null === r[u] ? \"The \" + c + \" `\" + l + \"` is marked as required in `\" + a + \"`, but its value is `null`.\" : \"The \" + c + \" `\" + l + \"` is marked as required in `\" + a + \"`, but its value is `undefined`.\") : null : t(r, u, a, c, l) } var r = n.bind(null, !1); return r.isRequired = n.bind(null, !0), r } function l(t) { function e(e, n, r, o, i, u) { var a = e[n]; if (g(a) !== t) return new s(\"Invalid \" + o + \" `\" + i + \"` of type `\" + E(a) + \"` supplied to `\" + r + \"`, expected `\" + t + \"`.\"); return null } return c(e) } function f(t) { function e(e, n, r, o, u) { if (\"function\" != typeof t) return new s(\"Property `\" + u + \"` of component `\" + r + \"` has invalid PropType notation inside arrayOf.\"); var a = e[n]; if (!Array.isArray(a)) { return new s(\"Invalid \" + o + \" `\" + u + \"` of type `\" + g(a) + \"` supplied to `\" + r + \"`, expected an array.\") } for (var c = 0; c < a.length; c++) { var l = t(a, c, r, o, u + \"[\" + c + \"]\", i); if (l instanceof Error) return l } return null } return c(e) } function p(t) { function e(e, n, r, o, i) { if (!(e[n] instanceof t)) { var u = t.name || w; return new s(\"Invalid \" + o + \" `\" + i + \"` of type `\" + x(e[n]) + \"` supplied to `\" + r + \"`, expected instance of `\" + u + \"`.\") } return null } return c(e) } function d(t) { function e(e, n, r, o, i) { for (var u = e[n], c = 0; c < t.length; c++)if (a(u, t[c])) return null; return new s(\"Invalid \" + o + \" `\" + i + \"` of value `\" + u + \"` supplied to `\" + r + \"`, expected one of \" + JSON.stringify(t) + \".\") } return Array.isArray(t) ? c(e) : r.thatReturnsNull } function y(t) { function e(e, n, r, o, u) { if (\"function\" != typeof t) return new s(\"Property `\" + u + \"` of component `\" + r + \"` has invalid PropType notation inside objectOf.\"); var a = e[n], c = g(a); if (\"object\" !== c) return new s(\"Invalid \" + o + \" `\" + u + \"` of type `\" + c + \"` supplied to `\" + r + \"`, expected an object.\"); for (var l in a) if (a.hasOwnProperty(l)) { var f = t(a, l, r, o, u + \".\" + l, i); if (f instanceof Error) return f } return null } return c(e) } function h(t) { function e(e, n, r, o, u) { for (var a = 0; a < t.length; a++) { if (null == (0, t[a])(e, n, r, o, u, i)) return null } return new s(\"Invalid \" + o + \" `\" + u + \"` supplied to `\" + r + \"`.\") } return Array.isArray(t) ? c(e) : r.thatReturnsNull } function v(t) { function e(e, n, r, o, u) { var a = e[n], c = g(a); if (\"object\" !== c) return new s(\"Invalid \" + o + \" `\" + u + \"` of type `\" + c + \"` supplied to `\" + r + \"`, expected `object`.\"); for (var l in t) { var f = t[l]; if (f) { var p = f(a, l, r, o, u + \".\" + l, i); if (p) return p } } return null } return c(e) } function m(e) { switch (typeof e) { case \"number\": case \"string\": case \"undefined\": return !0; case \"boolean\": return !e; case \"object\": if (Array.isArray(e)) return e.every(m); if (null === e || t(e)) return !0; var r = n(e); if (!r) return !1; var o, i = r.call(e); if (r !== e.entries) { for (; !(o = i.next()).done;)if (!m(o.value)) return !1 } else for (; !(o = i.next()).done;) { var u = o.value; if (u && !m(u[1])) return !1 } return !0; default: return !1 } } function b(t, e) { return \"symbol\" === t || (\"Symbol\" === e[\"@@toStringTag\"] || \"function\" == typeof Symbol && e instanceof Symbol) } function g(t) { var e = typeof t; return Array.isArray(t) ? \"array\" : t instanceof RegExp ? \"object\" : b(e, t) ? \"symbol\" : e } function E(t) { var e = g(t); if (\"object\" === e) { if (t instanceof Date) return \"date\"; if (t instanceof RegExp) return \"regexp\" } return e } function x(t) { return t.constructor && t.constructor.name ? t.constructor.name : w } var _ = \"function\" == typeof Symbol && Symbol.iterator, P = \"@@iterator\", w = \"<>\", N = { array: l(\"array\"), bool: l(\"boolean\"), func: l(\"function\"), number: l(\"number\"), object: l(\"object\"), string: l(\"string\"), symbol: l(\"symbol\"), any: function () { return c(r.thatReturnsNull) }(), arrayOf: f, element: function () { function e(e, n, r, o, i) { var u = e[n]; if (!t(u)) { return new s(\"Invalid \" + o + \" `\" + i + \"` of type `\" + g(u) + \"` supplied to `\" + r + \"`, expected a single ReactElement.\") } return null } return c(e) }(), instanceOf: p, node: function () { function t(t, e, n, r, o) { return m(t[e]) ? null : new s(\"Invalid \" + r + \" `\" + o + \"` supplied to `\" + n + \"`, expected a ReactNode.\") } return c(t) }(), objectOf: y, oneOf: d, oneOfType: h, shape: v }; return s.prototype = Error.prototype, N.checkPropTypes = u, N.PropTypes = N, N } }, { 22: 22, 24: 24, 25: 25, 27: 27, 30: 30 }], 30: [function (t, e, n) { \"use strict\"; e.exports = \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\" }, {}] }, {}, [15])(15) });","/**\r\n * ReactDOM v15.5.4\r\n *\r\n * Copyright 2013-present, Facebook, Inc.\r\n * All rights reserved.\r\n *\r\n * This source code is licensed under the BSD-style license found in the\r\n * LICENSE file in the root directory of this source tree. An additional grant\r\n * of patent rights can be found in the PATENTS file in the same directory.\r\n *\r\n */\r\n!function (e) { if (\"object\" == typeof exports && \"undefined\" != typeof module) module.exports = e(require(\"react\")); else if (\"function\" == typeof define && define.amd) define([\"react\"], e); else { var t; t = \"undefined\" != typeof window ? window : \"undefined\" != typeof global ? global : \"undefined\" != typeof self ? self : this, t.ReactDOM = e(t.React) } }(function (e) {\r\n return function (t) {\r\n return function () {\r\n return function e(t, n, r) { function o(a, s) { if (!n[a]) { if (!t[a]) { var u = \"function\" == typeof require && require; if (!s && u) return u(a, !0); if (i) return i(a, !0); var l = new Error(\"Cannot find module '\" + a + \"'\"); throw l.code = \"MODULE_NOT_FOUND\", l } var c = n[a] = { exports: {} }; t[a][0].call(c.exports, function (e) { var n = t[a][1][e]; return o(n || e) }, c, c.exports, e, t, n, r) } return n[a].exports } for (var i = \"function\" == typeof require && require, a = 0; a < r.length; a++)o(r[a]); return o }({\r\n 1: [function (e, t, n) { \"use strict\"; var r = { Properties: { \"aria-current\": 0, \"aria-details\": 0, \"aria-disabled\": 0, \"aria-hidden\": 0, \"aria-invalid\": 0, \"aria-keyshortcuts\": 0, \"aria-label\": 0, \"aria-roledescription\": 0, \"aria-autocomplete\": 0, \"aria-checked\": 0, \"aria-expanded\": 0, \"aria-haspopup\": 0, \"aria-level\": 0, \"aria-modal\": 0, \"aria-multiline\": 0, \"aria-multiselectable\": 0, \"aria-orientation\": 0, \"aria-placeholder\": 0, \"aria-pressed\": 0, \"aria-readonly\": 0, \"aria-required\": 0, \"aria-selected\": 0, \"aria-sort\": 0, \"aria-valuemax\": 0, \"aria-valuemin\": 0, \"aria-valuenow\": 0, \"aria-valuetext\": 0, \"aria-atomic\": 0, \"aria-busy\": 0, \"aria-live\": 0, \"aria-relevant\": 0, \"aria-dropeffect\": 0, \"aria-grabbed\": 0, \"aria-activedescendant\": 0, \"aria-colcount\": 0, \"aria-colindex\": 0, \"aria-colspan\": 0, \"aria-controls\": 0, \"aria-describedby\": 0, \"aria-errormessage\": 0, \"aria-flowto\": 0, \"aria-labelledby\": 0, \"aria-owns\": 0, \"aria-posinset\": 0, \"aria-rowcount\": 0, \"aria-rowindex\": 0, \"aria-rowspan\": 0, \"aria-setsize\": 0 }, DOMAttributeNames: {}, DOMPropertyNames: {} }; t.exports = r }, {}], 2: [function (e, t, n) { \"use strict\"; var r = e(33), o = e(131), i = { focusDOMComponent: function () { o(r.getNodeFromInstance(this)) } }; t.exports = i }, { 131: 131, 33: 33 }], 3: [function (e, t, n) { \"use strict\"; function r(e) { return (e.ctrlKey || e.altKey || e.metaKey) && !(e.ctrlKey && e.altKey) } function o(e) { switch (e) { case \"topCompositionStart\": return T.compositionStart; case \"topCompositionEnd\": return T.compositionEnd; case \"topCompositionUpdate\": return T.compositionUpdate } } function i(e, t) { return \"topKeyDown\" === e && t.keyCode === y } function a(e, t) { switch (e) { case \"topKeyUp\": return -1 !== g.indexOf(t.keyCode); case \"topKeyDown\": return t.keyCode !== y; case \"topKeyPress\": case \"topMouseDown\": case \"topBlur\": return !0; default: return !1 } } function s(e) { var t = e.detail; return \"object\" == typeof t && \"data\" in t ? t.data : null } function u(e, t, n, r) { var u, l; if (_ ? u = o(e) : P ? a(e, n) && (u = T.compositionEnd) : i(e, n) && (u = T.compositionStart), !u) return null; E && (P || u !== T.compositionStart ? u === T.compositionEnd && P && (l = P.getData()) : P = h.getPooled(r)); var c = m.getPooled(u, t, n, r); if (l) c.data = l; else { var p = s(n); null !== p && (c.data = p) } return d.accumulateTwoPhaseDispatches(c), c } function l(e, t) { switch (e) { case \"topCompositionEnd\": return s(t); case \"topKeyPress\": return t.which !== x ? null : (k = !0, w); case \"topTextInput\": var n = t.data; return n === w && k ? null : n; default: return null } } function c(e, t) { if (P) { if (\"topCompositionEnd\" === e || !_ && a(e, t)) { var n = P.getData(); return h.release(P), P = null, n } return null } switch (e) { case \"topPaste\": return null; case \"topKeyPress\": return t.which && !r(t) ? String.fromCharCode(t.which) : null; case \"topCompositionEnd\": return E ? null : t.data; default: return null } } function p(e, t, n, r) { var o; if (!(o = b ? l(e, n) : c(e, n))) return null; var i = v.getPooled(T.beforeInput, t, n, r); return i.data = o, d.accumulateTwoPhaseDispatches(i), i } var d = e(19), f = e(123), h = e(20), m = e(78), v = e(82), g = [9, 13, 27, 32], y = 229, _ = f.canUseDOM && \"CompositionEvent\" in window, C = null; f.canUseDOM && \"documentMode\" in document && (C = document.documentMode); var b = f.canUseDOM && \"TextEvent\" in window && !C && !function () { var e = window.opera; return \"object\" == typeof e && \"function\" == typeof e.version && parseInt(e.version(), 10) <= 12 }(), E = f.canUseDOM && (!_ || C && C > 8 && C <= 11), x = 32, w = String.fromCharCode(x), T = { beforeInput: { phasedRegistrationNames: { bubbled: \"onBeforeInput\", captured: \"onBeforeInputCapture\" }, dependencies: [\"topCompositionEnd\", \"topKeyPress\", \"topTextInput\", \"topPaste\"] }, compositionEnd: { phasedRegistrationNames: { bubbled: \"onCompositionEnd\", captured: \"onCompositionEndCapture\" }, dependencies: [\"topBlur\", \"topCompositionEnd\", \"topKeyDown\", \"topKeyPress\", \"topKeyUp\", \"topMouseDown\"] }, compositionStart: { phasedRegistrationNames: { bubbled: \"onCompositionStart\", captured: \"onCompositionStartCapture\" }, dependencies: [\"topBlur\", \"topCompositionStart\", \"topKeyDown\", \"topKeyPress\", \"topKeyUp\", \"topMouseDown\"] }, compositionUpdate: { phasedRegistrationNames: { bubbled: \"onCompositionUpdate\", captured: \"onCompositionUpdateCapture\" }, dependencies: [\"topBlur\", \"topCompositionUpdate\", \"topKeyDown\", \"topKeyPress\", \"topKeyUp\", \"topMouseDown\"] } }, k = !1, P = null, S = { eventTypes: T, extractEvents: function (e, t, n, r) { return [u(e, t, n, r), p(e, t, n, r)] } }; t.exports = S }, { 123: 123, 19: 19, 20: 20, 78: 78, 82: 82 }], 4: [function (e, t, n) { \"use strict\"; function r(e, t) { return e + t.charAt(0).toUpperCase() + t.substring(1) } var o = { animationIterationCount: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridRow: !0, gridColumn: !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 }, i = [\"Webkit\", \"ms\", \"Moz\", \"O\"]; Object.keys(o).forEach(function (e) { i.forEach(function (t) { o[r(t, e)] = o[e] }) }); var a = { background: { backgroundAttachment: !0, backgroundColor: !0, backgroundImage: !0, backgroundPositionX: !0, backgroundPositionY: !0, backgroundRepeat: !0 }, backgroundPosition: { backgroundPositionX: !0, backgroundPositionY: !0 }, border: { borderWidth: !0, borderStyle: !0, borderColor: !0 }, borderBottom: { borderBottomWidth: !0, borderBottomStyle: !0, borderBottomColor: !0 }, borderLeft: { borderLeftWidth: !0, borderLeftStyle: !0, borderLeftColor: !0 }, borderRight: { borderRightWidth: !0, borderRightStyle: !0, borderRightColor: !0 }, borderTop: { borderTopWidth: !0, borderTopStyle: !0, borderTopColor: !0 }, font: { fontStyle: !0, fontVariant: !0, fontWeight: !0, fontSize: !0, lineHeight: !0, fontFamily: !0 }, outline: { outlineWidth: !0, outlineStyle: !0, outlineColor: !0 } }, s = { isUnitlessNumber: o, shorthandPropertyExpansions: a }; t.exports = s }, {}], 5: [function (e, t, n) { \"use strict\"; var r = e(4), o = e(123), i = (e(58), e(125), e(94)), a = e(136), s = e(140), u = (e(142), s(function (e) { return a(e) })), l = !1, c = \"cssFloat\"; if (o.canUseDOM) { var p = document.createElement(\"div\").style; try { p.font = \"\" } catch (e) { l = !0 } void 0 === document.documentElement.style.cssFloat && (c = \"styleFloat\") } var d = { createMarkupForStyles: function (e, t) { var n = \"\"; for (var r in e) if (e.hasOwnProperty(r)) { var o = e[r]; null != o && (n += u(r) + \":\", n += i(r, o, t) + \";\") } return n || null }, setValueForStyles: function (e, t, n) { var o = e.style; for (var a in t) if (t.hasOwnProperty(a)) { var s = i(a, t[a], n); if (\"float\" !== a && \"cssFloat\" !== a || (a = c), s) o[a] = s; else { var u = l && r.shorthandPropertyExpansions[a]; if (u) for (var p in u) o[p] = \"\"; else o[a] = \"\" } } } }; t.exports = d }, { 123: 123, 125: 125, 136: 136, 140: 140, 142: 142, 4: 4, 58: 58, 94: 94 }], 6: [function (e, t, n) { \"use strict\"; function r(e, t) { if (!(e instanceof t)) throw new TypeError(\"Cannot call a class as a function\") } var o = e(112), i = e(24), a = (e(137), function () { function e(t) { r(this, e), this._callbacks = null, this._contexts = null, this._arg = t } return e.prototype.enqueue = function (e, t) { this._callbacks = this._callbacks || [], this._callbacks.push(e), this._contexts = this._contexts || [], this._contexts.push(t) }, e.prototype.notifyAll = function () { var e = this._callbacks, t = this._contexts, n = this._arg; if (e && t) { e.length !== t.length && o(\"24\"), this._callbacks = null, this._contexts = null; for (var r = 0; r < e.length; r++)e[r].call(t[r], n); e.length = 0, t.length = 0 } }, e.prototype.checkpoint = function () { return this._callbacks ? this._callbacks.length : 0 }, e.prototype.rollback = function (e) { this._callbacks && this._contexts && (this._callbacks.length = e, this._contexts.length = e) }, e.prototype.reset = function () { this._callbacks = null, this._contexts = null }, e.prototype.destructor = function () { this.reset() }, e }()); t.exports = i.addPoolingTo(a) }, { 112: 112, 137: 137, 24: 24 }], 7: [function (e, t, n) { \"use strict\"; function r(e) { var t = e.nodeName && e.nodeName.toLowerCase(); return \"select\" === t || \"input\" === t && \"file\" === e.type } function o(e) { var t = w.getPooled(S.change, M, e, T(e)); C.accumulateTwoPhaseDispatches(t), x.batchedUpdates(i, t) } function i(e) { _.enqueueEvents(e), _.processEventQueue(!1) } function a(e, t) { N = e, M = t, N.attachEvent(\"onchange\", o) } function s() { N && (N.detachEvent(\"onchange\", o), N = null, M = null) } function u(e, t) { if (\"topChange\" === e) return t } function l(e, t, n) { \"topFocus\" === e ? (s(), a(t, n)) : \"topBlur\" === e && s() } function c(e, t) { N = e, M = t, I = e.value, O = Object.getOwnPropertyDescriptor(e.constructor.prototype, \"value\"), Object.defineProperty(N, \"value\", D), N.attachEvent ? N.attachEvent(\"onpropertychange\", d) : N.addEventListener(\"propertychange\", d, !1) } function p() { N && (delete N.value, N.detachEvent ? N.detachEvent(\"onpropertychange\", d) : N.removeEventListener(\"propertychange\", d, !1), N = null, M = null, I = null, O = null) } function d(e) { if (\"value\" === e.propertyName) { var t = e.srcElement.value; t !== I && (I = t, o(e)) } } function f(e, t) { if (\"topInput\" === e) return t } function h(e, t, n) { \"topFocus\" === e ? (p(), c(t, n)) : \"topBlur\" === e && p() } function m(e, t) { if ((\"topSelectionChange\" === e || \"topKeyUp\" === e || \"topKeyDown\" === e) && N && N.value !== I) return I = N.value, M } function v(e) { return e.nodeName && \"input\" === e.nodeName.toLowerCase() && (\"checkbox\" === e.type || \"radio\" === e.type) } function g(e, t) { if (\"topClick\" === e) return t } function y(e, t) { if (null != e) { var n = e._wrapperState || t._wrapperState; if (n && n.controlled && \"number\" === t.type) { var r = \"\" + t.value; t.getAttribute(\"value\") !== r && t.setAttribute(\"value\", r) } } } var _ = e(16), C = e(19), b = e(123), E = e(33), x = e(71), w = e(80), T = e(102), k = e(109), P = e(110), S = { change: { phasedRegistrationNames: { bubbled: \"onChange\", captured: \"onChangeCapture\" }, dependencies: [\"topBlur\", \"topChange\", \"topClick\", \"topFocus\", \"topInput\", \"topKeyDown\", \"topKeyUp\", \"topSelectionChange\"] } }, N = null, M = null, I = null, O = null, R = !1; b.canUseDOM && (R = k(\"change\") && (!document.documentMode || document.documentMode > 8)); var A = !1; b.canUseDOM && (A = k(\"input\") && (!document.documentMode || document.documentMode > 11)); var D = { get: function () { return O.get.call(this) }, set: function (e) { I = \"\" + e, O.set.call(this, e) } }, L = { eventTypes: S, extractEvents: function (e, t, n, o) { var i, a, s = t ? E.getNodeFromInstance(t) : window; if (r(s) ? R ? i = u : a = l : P(s) ? A ? i = f : (i = m, a = h) : v(s) && (i = g), i) { var c = i(e, t); if (c) { var p = w.getPooled(S.change, c, n, o); return p.type = \"change\", C.accumulateTwoPhaseDispatches(p), p } } a && a(e, s, t), \"topBlur\" === e && y(t, s) } }; t.exports = L }, { 102: 102, 109: 109, 110: 110, 123: 123, 16: 16, 19: 19, 33: 33, 71: 71, 80: 80 }], 8: [function (e, t, n) { \"use strict\"; function r(e, t) { return Array.isArray(t) && (t = t[1]), t ? t.nextSibling : e.firstChild } function o(e, t, n) { c.insertTreeBefore(e, t, n) } function i(e, t, n) { Array.isArray(t) ? s(e, t[0], t[1], n) : m(e, t, n) } function a(e, t) { if (Array.isArray(t)) { var n = t[1]; t = t[0], u(e, t, n), e.removeChild(n) } e.removeChild(t) } function s(e, t, n, r) { for (var o = t; ;) { var i = o.nextSibling; if (m(e, o, r), o === n) break; o = i } } function u(e, t, n) { for (; ;) { var r = t.nextSibling; if (r === n) break; e.removeChild(r) } } function l(e, t, n) { var r = e.parentNode, o = e.nextSibling; o === t ? n && m(r, document.createTextNode(n), o) : n ? (h(o, n), u(r, o, t)) : u(r, e, t) } var c = e(9), p = e(13), d = (e(33), e(58), e(93)), f = e(114), h = e(115), m = d(function (e, t, n) { e.insertBefore(t, n) }), v = p.dangerouslyReplaceNodeWithMarkup, g = { dangerouslyReplaceNodeWithMarkup: v, replaceDelimitedText: l, processUpdates: function (e, t) { for (var n = 0; n < t.length; n++) { var s = t[n]; switch (s.type) { case \"INSERT_MARKUP\": o(e, s.content, r(e, s.afterNode)); break; case \"MOVE_EXISTING\": i(e, s.fromNode, r(e, s.afterNode)); break; case \"SET_MARKUP\": f(e, s.content); break; case \"TEXT_CONTENT\": h(e, s.content); break; case \"REMOVE_NODE\": a(e, s.fromNode) } } } }; t.exports = g }, { 114: 114, 115: 115, 13: 13, 33: 33, 58: 58, 9: 9, 93: 93 }], 9: [function (e, t, n) { \"use strict\"; function r(e) { if (h) { var t = e.node, n = e.children; if (n.length) for (var r = 0; r < n.length; r++)m(t, n[r], null); else null != e.html ? p(t, e.html) : null != e.text && f(t, e.text) } } function o(e, t) { e.parentNode.replaceChild(t.node, e), r(t) } function i(e, t) { h ? e.children.push(t) : e.node.appendChild(t.node) } function a(e, t) { h ? e.html = t : p(e.node, t) } function s(e, t) { h ? e.text = t : f(e.node, t) } function u() { return this.node.nodeName } function l(e) { return { node: e, children: [], html: null, text: null, toString: u } } var c = e(10), p = e(114), d = e(93), f = e(115), h = \"undefined\" != typeof document && \"number\" == typeof document.documentMode || \"undefined\" != typeof navigator && \"string\" == typeof navigator.userAgent && /\\bEdge\\/\\d/.test(navigator.userAgent), m = d(function (e, t, n) { 11 === t.node.nodeType || 1 === t.node.nodeType && \"object\" === t.node.nodeName.toLowerCase() && (null == t.node.namespaceURI || t.node.namespaceURI === c.html) ? (r(t), e.insertBefore(t.node, n)) : (e.insertBefore(t.node, n), r(t)) }); l.insertTreeBefore = m, l.replaceChildWithTree = o, l.queueChild = i, l.queueHTML = a, l.queueText = s, t.exports = l }, { 10: 10, 114: 114, 115: 115, 93: 93 }], 10: [function (e, t, n) { \"use strict\"; var r = { html: \"http://www.w3.org/1999/xhtml\", mathml: \"http://www.w3.org/1998/Math/MathML\", svg: \"http://www.w3.org/2000/svg\" }; t.exports = r }, {}], 11: [function (e, t, n) { \"use strict\"; function r(e, t) { return (e & t) === t } var o = e(112), i = (e(137), { MUST_USE_PROPERTY: 1, HAS_BOOLEAN_VALUE: 4, HAS_NUMERIC_VALUE: 8, HAS_POSITIVE_NUMERIC_VALUE: 24, HAS_OVERLOADED_BOOLEAN_VALUE: 32, injectDOMPropertyConfig: function (e) { var t = i, n = e.Properties || {}, a = e.DOMAttributeNamespaces || {}, u = e.DOMAttributeNames || {}, l = e.DOMPropertyNames || {}, c = e.DOMMutationMethods || {}; e.isCustomAttribute && s._isCustomAttributeFunctions.push(e.isCustomAttribute); for (var p in n) { s.properties.hasOwnProperty(p) && o(\"48\", p); var d = p.toLowerCase(), f = n[p], h = { attributeName: d, attributeNamespace: null, propertyName: p, mutationMethod: null, mustUseProperty: r(f, t.MUST_USE_PROPERTY), hasBooleanValue: r(f, t.HAS_BOOLEAN_VALUE), hasNumericValue: r(f, t.HAS_NUMERIC_VALUE), hasPositiveNumericValue: r(f, t.HAS_POSITIVE_NUMERIC_VALUE), hasOverloadedBooleanValue: r(f, t.HAS_OVERLOADED_BOOLEAN_VALUE) }; if (h.hasBooleanValue + h.hasNumericValue + h.hasOverloadedBooleanValue <= 1 || o(\"50\", p), u.hasOwnProperty(p)) { var m = u[p]; h.attributeName = m } a.hasOwnProperty(p) && (h.attributeNamespace = a[p]), l.hasOwnProperty(p) && (h.propertyName = l[p]), c.hasOwnProperty(p) && (h.mutationMethod = c[p]), s.properties[p] = h } } }), a = \":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\", s = { ID_ATTRIBUTE_NAME: \"data-reactid\", ROOT_ATTRIBUTE_NAME: \"data-reactroot\", ATTRIBUTE_NAME_START_CHAR: a, ATTRIBUTE_NAME_CHAR: a + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\", properties: {}, getPossibleStandardName: null, _isCustomAttributeFunctions: [], isCustomAttribute: function (e) { for (var t = 0; t < s._isCustomAttributeFunctions.length; t++)if ((0, s._isCustomAttributeFunctions[t])(e)) return !0; return !1 }, injection: i }; t.exports = s }, { 112: 112, 137: 137 }], 12: [function (e, t, n) { \"use strict\"; function r(e) { return !!l.hasOwnProperty(e) || !u.hasOwnProperty(e) && (s.test(e) ? (l[e] = !0, !0) : (u[e] = !0, !1)) } function o(e, t) { return null == t || e.hasBooleanValue && !t || e.hasNumericValue && isNaN(t) || e.hasPositiveNumericValue && t < 1 || e.hasOverloadedBooleanValue && !1 === t } var i = e(11), a = (e(33), e(58), e(111)), s = (e(142), new RegExp(\"^[\" + i.ATTRIBUTE_NAME_START_CHAR + \"][\" + i.ATTRIBUTE_NAME_CHAR + \"]*$\")), u = {}, l = {}, c = { createMarkupForID: function (e) { return i.ID_ATTRIBUTE_NAME + \"=\" + a(e) }, setAttributeForID: function (e, t) { e.setAttribute(i.ID_ATTRIBUTE_NAME, t) }, createMarkupForRoot: function () { return i.ROOT_ATTRIBUTE_NAME + '=\"\"' }, setAttributeForRoot: function (e) { e.setAttribute(i.ROOT_ATTRIBUTE_NAME, \"\") }, createMarkupForProperty: function (e, t) { var n = i.properties.hasOwnProperty(e) ? i.properties[e] : null; if (n) { if (o(n, t)) return \"\"; var r = n.attributeName; return n.hasBooleanValue || n.hasOverloadedBooleanValue && !0 === t ? r + '=\"\"' : r + \"=\" + a(t) } return i.isCustomAttribute(e) ? null == t ? \"\" : e + \"=\" + a(t) : null }, createMarkupForCustomAttribute: function (e, t) { return r(e) && null != t ? e + \"=\" + a(t) : \"\" }, setValueForProperty: function (e, t, n) { var r = i.properties.hasOwnProperty(t) ? i.properties[t] : null; if (r) { var a = r.mutationMethod; if (a) a(e, n); else { if (o(r, n)) return void this.deleteValueForProperty(e, t); if (r.mustUseProperty) e[r.propertyName] = n; else { var s = r.attributeName, u = r.attributeNamespace; u ? e.setAttributeNS(u, s, \"\" + n) : r.hasBooleanValue || r.hasOverloadedBooleanValue && !0 === n ? e.setAttribute(s, \"\") : e.setAttribute(s, \"\" + n) } } } else if (i.isCustomAttribute(t)) return void c.setValueForAttribute(e, t, n) }, setValueForAttribute: function (e, t, n) { r(t) && (null == n ? e.removeAttribute(t) : e.setAttribute(t, \"\" + n)) }, deleteValueForAttribute: function (e, t) { e.removeAttribute(t) }, deleteValueForProperty: function (e, t) { var n = i.properties.hasOwnProperty(t) ? i.properties[t] : null; if (n) { var r = n.mutationMethod; if (r) r(e, void 0); else if (n.mustUseProperty) { var o = n.propertyName; n.hasBooleanValue ? e[o] = !1 : e[o] = \"\" } else e.removeAttribute(n.attributeName) } else i.isCustomAttribute(t) && e.removeAttribute(t) } }; t.exports = c }, { 11: 11, 111: 111, 142: 142, 33: 33, 58: 58 }], 13: [function (e, t, n) { \"use strict\"; var r = e(112), o = e(9), i = e(123), a = e(128), s = e(129), u = (e(137), { dangerouslyReplaceNodeWithMarkup: function (e, t) { if (i.canUseDOM || r(\"56\"), t || r(\"57\"), \"HTML\" === e.nodeName && r(\"58\"), \"string\" == typeof t) { var n = a(t, s)[0]; e.parentNode.replaceChild(n, e) } else o.replaceChildWithTree(e, t) } }); t.exports = u }, { 112: 112, 123: 123, 128: 128, 129: 129, 137: 137, 9: 9 }], 14: [function (e, t, n) { \"use strict\"; var r = [\"ResponderEventPlugin\", \"SimpleEventPlugin\", \"TapEventPlugin\", \"EnterLeaveEventPlugin\", \"ChangeEventPlugin\", \"SelectEventPlugin\", \"BeforeInputEventPlugin\"]; t.exports = r }, {}], 15: [function (e, t, n) { \"use strict\"; var r = e(19), o = e(33), i = e(84), a = { mouseEnter: { registrationName: \"onMouseEnter\", dependencies: [\"topMouseOut\", \"topMouseOver\"] }, mouseLeave: { registrationName: \"onMouseLeave\", dependencies: [\"topMouseOut\", \"topMouseOver\"] } }, s = { eventTypes: a, extractEvents: function (e, t, n, s) { if (\"topMouseOver\" === e && (n.relatedTarget || n.fromElement)) return null; if (\"topMouseOut\" !== e && \"topMouseOver\" !== e) return null; var u; if (s.window === s) u = s; else { var l = s.ownerDocument; u = l ? l.defaultView || l.parentWindow : window } var c, p; if (\"topMouseOut\" === e) { c = t; var d = n.relatedTarget || n.toElement; p = d ? o.getClosestInstanceFromNode(d) : null } else c = null, p = t; if (c === p) return null; var f = null == c ? u : o.getNodeFromInstance(c), h = null == p ? u : o.getNodeFromInstance(p), m = i.getPooled(a.mouseLeave, c, n, s); m.type = \"mouseleave\", m.target = f, m.relatedTarget = h; var v = i.getPooled(a.mouseEnter, p, n, s); return v.type = \"mouseenter\", v.target = h, v.relatedTarget = f, r.accumulateEnterLeaveDispatches(m, v, c, p), [m, v] } }; t.exports = s }, { 19: 19, 33: 33, 84: 84 }], 16: [function (e, t, n) { \"use strict\"; function r(e) { return \"button\" === e || \"input\" === e || \"select\" === e || \"textarea\" === e } function o(e, t, n) { switch (e) { case \"onClick\": case \"onClickCapture\": case \"onDoubleClick\": case \"onDoubleClickCapture\": case \"onMouseDown\": case \"onMouseDownCapture\": case \"onMouseMove\": case \"onMouseMoveCapture\": case \"onMouseUp\": case \"onMouseUpCapture\": return !(!n.disabled || !r(t)); default: return !1 } } var i = e(112), a = e(17), s = e(18), u = e(50), l = e(91), c = e(98), p = (e(137), {}), d = null, f = function (e, t) { e && (s.executeDispatchesInOrder(e, t), e.isPersistent() || e.constructor.release(e)) }, h = function (e) { return f(e, !0) }, m = function (e) { return f(e, !1) }, v = function (e) { return \".\" + e._rootNodeID }, g = { injection: { injectEventPluginOrder: a.injectEventPluginOrder, injectEventPluginsByName: a.injectEventPluginsByName }, putListener: function (e, t, n) { \"function\" != typeof n && i(\"94\", t, typeof n); var r = v(e); (p[t] || (p[t] = {}))[r] = n; var o = a.registrationNameModules[t]; o && o.didPutListener && o.didPutListener(e, t, n) }, getListener: function (e, t) { var n = p[t]; if (o(t, e._currentElement.type, e._currentElement.props)) return null; var r = v(e); return n && n[r] }, deleteListener: function (e, t) { var n = a.registrationNameModules[t]; n && n.willDeleteListener && n.willDeleteListener(e, t); var r = p[t]; r && delete r[v(e)] }, deleteAllListeners: function (e) { var t = v(e); for (var n in p) if (p.hasOwnProperty(n) && p[n][t]) { var r = a.registrationNameModules[n]; r && r.willDeleteListener && r.willDeleteListener(e, n), delete p[n][t] } }, extractEvents: function (e, t, n, r) { for (var o, i = a.plugins, s = 0; s < i.length; s++) { var u = i[s]; if (u) { var c = u.extractEvents(e, t, n, r); c && (o = l(o, c)) } } return o }, enqueueEvents: function (e) { e && (d = l(d, e)) }, processEventQueue: function (e) { var t = d; d = null, e ? c(t, h) : c(t, m), d && i(\"95\"), u.rethrowCaughtError() }, __purge: function () { p = {} }, __getListenerBank: function () { return p } }; t.exports = g }, { 112: 112, 137: 137, 17: 17, 18: 18, 50: 50, 91: 91, 98: 98 }], 17: [function (e, t, n) { \"use strict\"; function r() { if (s) for (var e in u) { var t = u[e], n = s.indexOf(e); if (n > -1 || a(\"96\", e), !l.plugins[n]) { t.extractEvents || a(\"97\", e), l.plugins[n] = t; var r = t.eventTypes; for (var i in r) o(r[i], t, i) || a(\"98\", i, e) } } } function o(e, t, n) { l.eventNameDispatchConfigs.hasOwnProperty(n) && a(\"99\", n), l.eventNameDispatchConfigs[n] = e; var r = e.phasedRegistrationNames; if (r) { for (var o in r) if (r.hasOwnProperty(o)) { var s = r[o]; i(s, t, n) } return !0 } return !!e.registrationName && (i(e.registrationName, t, n), !0) } function i(e, t, n) { l.registrationNameModules[e] && a(\"100\", e), l.registrationNameModules[e] = t, l.registrationNameDependencies[e] = t.eventTypes[n].dependencies } var a = e(112), s = (e(137), null), u = {}, l = { plugins: [], eventNameDispatchConfigs: {}, registrationNameModules: {}, registrationNameDependencies: {}, possibleRegistrationNames: null, injectEventPluginOrder: function (e) { s && a(\"101\"), s = Array.prototype.slice.call(e), r() }, injectEventPluginsByName: function (e) { var t = !1; for (var n in e) if (e.hasOwnProperty(n)) { var o = e[n]; u.hasOwnProperty(n) && u[n] === o || (u[n] && a(\"102\", n), u[n] = o, t = !0) } t && r() }, getPluginModuleForEvent: function (e) { var t = e.dispatchConfig; if (t.registrationName) return l.registrationNameModules[t.registrationName] || null; if (void 0 !== t.phasedRegistrationNames) { var n = t.phasedRegistrationNames; for (var r in n) if (n.hasOwnProperty(r)) { var o = l.registrationNameModules[n[r]]; if (o) return o } } return null }, _resetEventPlugins: function () { s = null; for (var e in u) u.hasOwnProperty(e) && delete u[e]; l.plugins.length = 0; var t = l.eventNameDispatchConfigs; for (var n in t) t.hasOwnProperty(n) && delete t[n]; var r = l.registrationNameModules; for (var o in r) r.hasOwnProperty(o) && delete r[o] } }; t.exports = l }, { 112: 112, 137: 137 }], 18: [function (e, t, n) { \"use strict\"; function r(e) { return \"topMouseUp\" === e || \"topTouchEnd\" === e || \"topTouchCancel\" === e } function o(e) { return \"topMouseMove\" === e || \"topTouchMove\" === e } function i(e) { return \"topMouseDown\" === e || \"topTouchStart\" === e } function a(e, t, n, r) { var o = e.type || \"unknown-event\"; e.currentTarget = g.getNodeFromInstance(r), t ? m.invokeGuardedCallbackWithCatch(o, n, e) : m.invokeGuardedCallback(o, n, e), e.currentTarget = null } function s(e, t) { var n = e._dispatchListeners, r = e._dispatchInstances; if (Array.isArray(n)) for (var o = 0; o < n.length && !e.isPropagationStopped(); o++)a(e, t, n[o], r[o]); else n && a(e, t, n, r); e._dispatchListeners = null, e._dispatchInstances = null } function u(e) { var t = e._dispatchListeners, n = e._dispatchInstances; if (Array.isArray(t)) { for (var r = 0; r < t.length && !e.isPropagationStopped(); r++)if (t[r](e, n[r])) return n[r] } else if (t && t(e, n)) return n; return null } function l(e) { var t = u(e); return e._dispatchInstances = null, e._dispatchListeners = null, t } function c(e) { var t = e._dispatchListeners, n = e._dispatchInstances; Array.isArray(t) && h(\"103\"), e.currentTarget = t ? g.getNodeFromInstance(n) : null; var r = t ? t(e) : null; return e.currentTarget = null, e._dispatchListeners = null, e._dispatchInstances = null, r } function p(e) { return !!e._dispatchListeners } var d, f, h = e(112), m = e(50), v = (e(137), e(142), { injectComponentTree: function (e) { d = e }, injectTreeTraversal: function (e) { f = e } }), g = { isEndish: r, isMoveish: o, isStartish: i, executeDirectDispatch: c, executeDispatchesInOrder: s, executeDispatchesInOrderStopAtTrue: l, hasDispatches: p, getInstanceFromNode: function (e) { return d.getInstanceFromNode(e) }, getNodeFromInstance: function (e) { return d.getNodeFromInstance(e) }, isAncestor: function (e, t) { return f.isAncestor(e, t) }, getLowestCommonAncestor: function (e, t) { return f.getLowestCommonAncestor(e, t) }, getParentInstance: function (e) { return f.getParentInstance(e) }, traverseTwoPhase: function (e, t, n) { return f.traverseTwoPhase(e, t, n) }, traverseEnterLeave: function (e, t, n, r, o) { return f.traverseEnterLeave(e, t, n, r, o) }, injection: v }; t.exports = g }, { 112: 112, 137: 137, 142: 142, 50: 50 }], 19: [function (e, t, n) { \"use strict\"; function r(e, t, n) { var r = t.dispatchConfig.phasedRegistrationNames[n]; return g(e, r) } function o(e, t, n) { var o = r(e, n, t); o && (n._dispatchListeners = m(n._dispatchListeners, o), n._dispatchInstances = m(n._dispatchInstances, e)) } function i(e) { e && e.dispatchConfig.phasedRegistrationNames && h.traverseTwoPhase(e._targetInst, o, e) } function a(e) { if (e && e.dispatchConfig.phasedRegistrationNames) { var t = e._targetInst, n = t ? h.getParentInstance(t) : null; h.traverseTwoPhase(n, o, e) } } function s(e, t, n) { if (n && n.dispatchConfig.registrationName) { var r = n.dispatchConfig.registrationName, o = g(e, r); o && (n._dispatchListeners = m(n._dispatchListeners, o), n._dispatchInstances = m(n._dispatchInstances, e)) } } function u(e) { e && e.dispatchConfig.registrationName && s(e._targetInst, null, e) } function l(e) { v(e, i) } function c(e) { v(e, a) } function p(e, t, n, r) { h.traverseEnterLeave(n, r, s, e, t) } function d(e) { v(e, u) } var f = e(16), h = e(18), m = e(91), v = e(98), g = (e(142), f.getListener), y = { accumulateTwoPhaseDispatches: l, accumulateTwoPhaseDispatchesSkipTarget: c, accumulateDirectDispatches: d, accumulateEnterLeaveDispatches: p }; t.exports = y }, { 142: 142, 16: 16, 18: 18, 91: 91, 98: 98 }], 20: [function (e, t, n) { \"use strict\"; function r(e) { this._root = e, this._startText = this.getText(), this._fallbackText = null } var o = e(143), i = e(24), a = e(106); o(r.prototype, { destructor: function () { this._root = null, this._startText = null, this._fallbackText = null }, getText: function () { return \"value\" in this._root ? this._root.value : this._root[a()] }, getData: function () { if (this._fallbackText) return this._fallbackText; var e, t, n = this._startText, r = n.length, o = this.getText(), i = o.length; for (e = 0; e < r && n[e] === o[e]; e++); var a = r - e; for (t = 1; t <= a && n[r - t] === o[i - t]; t++); var s = t > 1 ? 1 - t : void 0; return this._fallbackText = o.slice(e, s), this._fallbackText } }), i.addPoolingTo(r), t.exports = r }, { 106: 106, 143: 143, 24: 24 }], 21: [function (e, t, n) { \"use strict\"; var r = e(11), o = r.injection.MUST_USE_PROPERTY, i = r.injection.HAS_BOOLEAN_VALUE, a = r.injection.HAS_NUMERIC_VALUE, s = r.injection.HAS_POSITIVE_NUMERIC_VALUE, u = r.injection.HAS_OVERLOADED_BOOLEAN_VALUE, l = { isCustomAttribute: RegExp.prototype.test.bind(new RegExp(\"^(data|aria)-[\" + r.ATTRIBUTE_NAME_CHAR + \"]*$\")), Properties: { accept: 0, acceptCharset: 0, accessKey: 0, action: 0, allowFullScreen: i, allowTransparency: 0, alt: 0, as: 0, async: i, autoComplete: 0, autoPlay: i, capture: i, cellPadding: 0, cellSpacing: 0, charSet: 0, challenge: 0, checked: o | i, cite: 0, classID: 0, className: 0, cols: s, colSpan: 0, content: 0, contentEditable: 0, contextMenu: 0, controls: i, coords: 0, crossOrigin: 0, data: 0, dateTime: 0, default: i, defer: i, dir: 0, disabled: i, download: u, draggable: 0, encType: 0, form: 0, formAction: 0, formEncType: 0, formMethod: 0, formNoValidate: i, formTarget: 0, frameBorder: 0, headers: 0, height: 0, hidden: i, high: 0, href: 0, hrefLang: 0, htmlFor: 0, httpEquiv: 0, icon: 0, id: 0, inputMode: 0, integrity: 0, is: 0, keyParams: 0, keyType: 0, kind: 0, label: 0, lang: 0, list: 0, loop: i, low: 0, manifest: 0, marginHeight: 0, marginWidth: 0, max: 0, maxLength: 0, media: 0, mediaGroup: 0, method: 0, min: 0, minLength: 0, multiple: o | i, muted: o | i, name: 0, nonce: 0, noValidate: i, open: i, optimum: 0, pattern: 0, placeholder: 0, playsInline: i, poster: 0, preload: 0, profile: 0, radioGroup: 0, readOnly: i, referrerPolicy: 0, rel: 0, required: i, reversed: i, role: 0, rows: s, rowSpan: a, sandbox: 0, scope: 0, scoped: i, scrolling: 0, seamless: i, selected: o | i, shape: 0, size: s, sizes: 0, span: s, spellCheck: 0, src: 0, srcDoc: 0, srcLang: 0, srcSet: 0, start: a, step: 0, style: 0, summary: 0, tabIndex: 0, target: 0, title: 0, type: 0, useMap: 0, value: 0, width: 0, wmode: 0, wrap: 0, about: 0, datatype: 0, inlist: 0, prefix: 0, property: 0, resource: 0, typeof: 0, vocab: 0, autoCapitalize: 0, autoCorrect: 0, autoSave: 0, color: 0, itemProp: 0, itemScope: i, itemType: 0, itemID: 0, itemRef: 0, results: 0, security: 0, unselectable: 0 }, DOMAttributeNames: { acceptCharset: \"accept-charset\", className: \"class\", htmlFor: \"for\", httpEquiv: \"http-equiv\" }, DOMPropertyNames: {}, DOMMutationMethods: { value: function (e, t) { if (null == t) return e.removeAttribute(\"value\"); \"number\" !== e.type || !1 === e.hasAttribute(\"value\") ? e.setAttribute(\"value\", \"\" + t) : e.validity && !e.validity.badInput && e.ownerDocument.activeElement !== e && e.setAttribute(\"value\", \"\" + t) } } }; t.exports = l }, { 11: 11 }], 22: [function (e, t, n) { \"use strict\"; function r(e) { var t = { \"=\": \"=0\", \":\": \"=2\" }; return \"$\" + (\"\" + e).replace(/[=:]/g, function (e) { return t[e] }) } function o(e) { var t = { \"=0\": \"=\", \"=2\": \":\" }; return (\"\" + (\".\" === e[0] && \"$\" === e[1] ? e.substring(2) : e.substring(1))).replace(/(=0|=2)/g, function (e) { return t[e] }) } var i = { escape: r, unescape: o }; t.exports = i }, {}], 23: [function (e, t, n) { \"use strict\"; function r(e) { null != e.checkedLink && null != e.valueLink && s(\"87\") } function o(e) { r(e), (null != e.value || null != e.onChange) && s(\"88\") } function i(e) { r(e), (null != e.checked || null != e.onChange) && s(\"89\") } function a(e) { if (e) { var t = e.getName(); if (t) return \" Check the render method of `\" + t + \"`.\" } return \"\" } var s = e(112), u = e(64), l = e(145), c = e(120), p = l(c.isValidElement), d = (e(137), e(142), { button: !0, checkbox: !0, image: !0, hidden: !0, radio: !0, reset: !0, submit: !0 }), f = { value: function (e, t, n) { return !e[t] || d[e.type] || e.onChange || e.readOnly || e.disabled ? null : new Error(\"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.\") }, checked: function (e, t, n) { return !e[t] || e.onChange || e.readOnly || e.disabled ? null : new Error(\"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.\") }, onChange: p.func }, h = {}, m = { checkPropTypes: function (e, t, n) { for (var r in f) { if (f.hasOwnProperty(r)) var o = f[r](t, r, e, \"prop\", null, u); o instanceof Error && !(o.message in h) && (h[o.message] = !0, a(n)) } }, getValue: function (e) { return e.valueLink ? (o(e), e.valueLink.value) : e.value }, getChecked: function (e) { return e.checkedLink ? (i(e), e.checkedLink.value) : e.checked }, executeOnChange: function (e, t) { return e.valueLink ? (o(e), e.valueLink.requestChange(t.target.value)) : e.checkedLink ? (i(e), e.checkedLink.requestChange(t.target.checked)) : e.onChange ? e.onChange.call(void 0, t) : void 0 } }; t.exports = m }, { 112: 112, 120: 120, 137: 137, 142: 142, 145: 145, 64: 64 }], 24: [function (e, t, n) { \"use strict\"; var r = e(112), o = (e(137), function (e) { var t = this; if (t.instancePool.length) { var n = t.instancePool.pop(); return t.call(n, e), n } return new t(e) }), i = function (e, t) { var n = this; if (n.instancePool.length) { var r = n.instancePool.pop(); return n.call(r, e, t), r } return new n(e, t) }, a = function (e, t, n) { var r = this; if (r.instancePool.length) { var o = r.instancePool.pop(); return r.call(o, e, t, n), o } return new r(e, t, n) }, s = function (e, t, n, r) { var o = this; if (o.instancePool.length) { var i = o.instancePool.pop(); return o.call(i, e, t, n, r), i } return new o(e, t, n, r) }, u = function (e) { var t = this; e instanceof t || r(\"25\"), e.destructor(), t.instancePool.length < t.poolSize && t.instancePool.push(e) }, l = o, c = function (e, t) { var n = e; return n.instancePool = [], n.getPooled = t || l, n.poolSize || (n.poolSize = 10), n.release = u, n }, p = { addPoolingTo: c, oneArgumentPooler: o, twoArgumentPooler: i, threeArgumentPooler: a, fourArgumentPooler: s }; t.exports = p }, { 112: 112, 137: 137 }], 25: [function (e, t, n) {\r\n \"use strict\"; function r(e) { return Object.prototype.hasOwnProperty.call(e, m) || (e[m] = f++ , p[e[m]] = {}), p[e[m]] } var o, i = e(143), a = e(17), s = e(51), u = e(90), l = e(107), c = e(109), p = {}, d = !1, f = 0, h = {\r\n topAbort: \"abort\", topAnimationEnd: l(\"animationend\") || \"animationend\", topAnimationIteration: l(\"animationiteration\") || \"animationiteration\", topAnimationStart: l(\"animationstart\") || \"animationstart\", topBlur: \"blur\", topCanPlay: \"canplay\", topCanPlayThrough: \"canplaythrough\", topChange: \"change\", topClick: \"click\", topCompositionEnd: \"compositionend\", topCompositionStart: \"compositionstart\", topCompositionUpdate: \"compositionupdate\", topContextMenu: \"contextmenu\", topCopy: \"copy\", topCut: \"cut\", topDoubleClick: \"dblclick\", topDrag: \"drag\", topDragEnd: \"dragend\", topDragEnter: \"dragenter\", topDragExit: \"dragexit\", topDragLeave: \"dragleave\", topDragOver: \"dragover\", topDragStart: \"dragstart\", topDrop: \"drop\", topDurationChange: \"durationchange\", topEmptied: \"emptied\", topEncrypted: \"encrypted\", topEnded: \"ended\", topError: \"error\",\r\n topFocus: \"focus\", topInput: \"input\", topKeyDown: \"keydown\", topKeyPress: \"keypress\", topKeyUp: \"keyup\", topLoadedData: \"loadeddata\", topLoadedMetadata: \"loadedmetadata\", topLoadStart: \"loadstart\", topMouseDown: \"mousedown\", topMouseMove: \"mousemove\", topMouseOut: \"mouseout\", topMouseOver: \"mouseover\", topMouseUp: \"mouseup\", topPaste: \"paste\", topPause: \"pause\", topPlay: \"play\", topPlaying: \"playing\", topProgress: \"progress\", topRateChange: \"ratechange\", topScroll: \"scroll\", topSeeked: \"seeked\", topSeeking: \"seeking\", topSelectionChange: \"selectionchange\", topStalled: \"stalled\", topSuspend: \"suspend\", topTextInput: \"textInput\", topTimeUpdate: \"timeupdate\", topTouchCancel: \"touchcancel\", topTouchEnd: \"touchend\", topTouchMove: \"touchmove\", topTouchStart: \"touchstart\", topTransitionEnd: l(\"transitionend\") || \"transitionend\", topVolumeChange: \"volumechange\", topWaiting: \"waiting\", topWheel: \"wheel\"\r\n }, m = \"_reactListenersID\" + String(Math.random()).slice(2), v = i({}, s, { ReactEventListener: null, injection: { injectReactEventListener: function (e) { e.setHandleTopLevel(v.handleTopLevel), v.ReactEventListener = e } }, setEnabled: function (e) { v.ReactEventListener && v.ReactEventListener.setEnabled(e) }, isEnabled: function () { return !(!v.ReactEventListener || !v.ReactEventListener.isEnabled()) }, listenTo: function (e, t) { for (var n = t, o = r(n), i = a.registrationNameDependencies[e], s = 0; s < i.length; s++) { var u = i[s]; o.hasOwnProperty(u) && o[u] || (\"topWheel\" === u ? c(\"wheel\") ? v.ReactEventListener.trapBubbledEvent(\"topWheel\", \"wheel\", n) : c(\"mousewheel\") ? v.ReactEventListener.trapBubbledEvent(\"topWheel\", \"mousewheel\", n) : v.ReactEventListener.trapBubbledEvent(\"topWheel\", \"DOMMouseScroll\", n) : \"topScroll\" === u ? c(\"scroll\", !0) ? v.ReactEventListener.trapCapturedEvent(\"topScroll\", \"scroll\", n) : v.ReactEventListener.trapBubbledEvent(\"topScroll\", \"scroll\", v.ReactEventListener.WINDOW_HANDLE) : \"topFocus\" === u || \"topBlur\" === u ? (c(\"focus\", !0) ? (v.ReactEventListener.trapCapturedEvent(\"topFocus\", \"focus\", n), v.ReactEventListener.trapCapturedEvent(\"topBlur\", \"blur\", n)) : c(\"focusin\") && (v.ReactEventListener.trapBubbledEvent(\"topFocus\", \"focusin\", n), v.ReactEventListener.trapBubbledEvent(\"topBlur\", \"focusout\", n)), o.topBlur = !0, o.topFocus = !0) : h.hasOwnProperty(u) && v.ReactEventListener.trapBubbledEvent(u, h[u], n), o[u] = !0) } }, trapBubbledEvent: function (e, t, n) { return v.ReactEventListener.trapBubbledEvent(e, t, n) }, trapCapturedEvent: function (e, t, n) { return v.ReactEventListener.trapCapturedEvent(e, t, n) }, supportsEventPageXY: function () { if (!document.createEvent) return !1; var e = document.createEvent(\"MouseEvent\"); return null != e && \"pageX\" in e }, ensureScrollValueMonitoring: function () { if (void 0 === o && (o = v.supportsEventPageXY()), !o && !d) { var e = u.refreshScrollValues; v.ReactEventListener.monitorScrollValue(e), d = !0 } } }); t.exports = v\r\n }, { 107: 107, 109: 109, 143: 143, 17: 17, 51: 51, 90: 90 }], 26: [function (e, t, n) { (function (n) { \"use strict\"; function r(e, t, n, r) { var o = void 0 === e[n]; null != t && o && (e[n] = i(t, !0)) } var o = e(66), i = e(108), a = (e(22), e(116)), s = e(117); e(142); void 0 !== n && n.env; var u = { instantiateChildren: function (e, t, n, o) { if (null == e) return null; var i = {}; return s(e, r, i), i }, updateChildren: function (e, t, n, r, s, u, l, c, p) { if (t || e) { var d, f; for (d in t) if (t.hasOwnProperty(d)) { f = e && e[d]; var h = f && f._currentElement, m = t[d]; if (null != f && a(h, m)) o.receiveComponent(f, m, s, c), t[d] = f; else { f && (r[d] = o.getHostNode(f), o.unmountComponent(f, !1)); var v = i(m, !0); t[d] = v; var g = o.mountComponent(v, s, u, l, c, p); n.push(g) } } for (d in e) !e.hasOwnProperty(d) || t && t.hasOwnProperty(d) || (f = e[d], r[d] = o.getHostNode(f), o.unmountComponent(f, !1)) } }, unmountChildren: function (e, t) { for (var n in e) if (e.hasOwnProperty(n)) { var r = e[n]; o.unmountComponent(r, t) } } }; t.exports = u }).call(this, void 0) }, { 108: 108, 116: 116, 117: 117, 142: 142, 22: 22, 66: 66 }], 27: [function (e, t, n) { \"use strict\"; var r = e(8), o = e(37), i = { processChildrenUpdates: o.dangerouslyProcessChildrenUpdates, replaceNodeWithMarkup: r.dangerouslyReplaceNodeWithMarkup }; t.exports = i }, { 37: 37, 8: 8 }], 28: [function (e, t, n) { \"use strict\"; var r = e(112), o = (e(137), !1), i = { replaceNodeWithMarkup: null, processChildrenUpdates: null, injection: { injectEnvironment: function (e) { o && r(\"104\"), i.replaceNodeWithMarkup = e.replaceNodeWithMarkup, i.processChildrenUpdates = e.processChildrenUpdates, o = !0 } } }; t.exports = i }, { 112: 112, 137: 137 }], 29: [function (e, t, n) { \"use strict\"; function r(e) { } function o(e) { return !(!e.prototype || !e.prototype.isReactComponent) } function i(e) { return !(!e.prototype || !e.prototype.isPureReactComponent) } var a = e(112), s = e(143), u = e(120), l = e(28), c = e(119), p = e(50), d = e(57), f = (e(58), e(62)), h = e(66), m = e(130), v = (e(137), e(141)), g = e(116), y = (e(142), { ImpureClass: 0, PureClass: 1, StatelessFunctional: 2 }); r.prototype.render = function () { var e = d.get(this)._currentElement.type, t = e(this.props, this.context, this.updater); return t }; var _ = 1, C = { construct: function (e) { this._currentElement = e, this._rootNodeID = 0, this._compositeType = null, this._instance = null, this._hostParent = null, this._hostContainerInfo = null, this._updateBatchNumber = null, this._pendingElement = null, this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1, this._renderedNodeType = null, this._renderedComponent = null, this._context = null, this._mountOrder = 0, this._topLevelWrapper = null, this._pendingCallbacks = null, this._calledComponentWillUnmount = !1 }, mountComponent: function (e, t, n, s) { this._context = s, this._mountOrder = _++ , this._hostParent = t, this._hostContainerInfo = n; var l, c = this._currentElement.props, p = this._processContext(s), f = this._currentElement.type, h = e.getUpdateQueue(), v = o(f), g = this._constructComponent(v, c, p, h); v || null != g && null != g.render ? i(f) ? this._compositeType = y.PureClass : this._compositeType = y.ImpureClass : (l = g, null === g || !1 === g || u.isValidElement(g) || a(\"105\", f.displayName || f.name || \"Component\"), g = new r(f), this._compositeType = y.StatelessFunctional), g.props = c, g.context = p, g.refs = m, g.updater = h, this._instance = g, d.set(g, this); var C = g.state; void 0 === C && (g.state = C = null), (\"object\" != typeof C || Array.isArray(C)) && a(\"106\", this.getName() || \"ReactCompositeComponent\"), this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1; var b; return b = g.unstable_handleError ? this.performInitialMountWithErrorHandling(l, t, n, e, s) : this.performInitialMount(l, t, n, e, s), g.componentDidMount && e.getReactMountReady().enqueue(g.componentDidMount, g), b }, _constructComponent: function (e, t, n, r) { return this._constructComponentWithoutOwner(e, t, n, r) }, _constructComponentWithoutOwner: function (e, t, n, r) { var o = this._currentElement.type; return e ? new o(t, n, r) : o(t, n, r) }, performInitialMountWithErrorHandling: function (e, t, n, r, o) { var i, a = r.checkpoint(); try { i = this.performInitialMount(e, t, n, r, o) } catch (s) { r.rollback(a), this._instance.unstable_handleError(s), this._pendingStateQueue && (this._instance.state = this._processPendingState(this._instance.props, this._instance.context)), a = r.checkpoint(), this._renderedComponent.unmountComponent(!0), r.rollback(a), i = this.performInitialMount(e, t, n, r, o) } return i }, performInitialMount: function (e, t, n, r, o) { var i = this._instance; i.componentWillMount && (i.componentWillMount(), this._pendingStateQueue && (i.state = this._processPendingState(i.props, i.context))), void 0 === e && (e = this._renderValidatedComponent()); var a = f.getType(e); this._renderedNodeType = a; var s = this._instantiateReactComponent(e, a !== f.EMPTY); return this._renderedComponent = s, h.mountComponent(s, r, t, n, this._processChildContext(o), 0) }, getHostNode: function () { return h.getHostNode(this._renderedComponent) }, unmountComponent: function (e) { if (this._renderedComponent) { var t = this._instance; if (t.componentWillUnmount && !t._calledComponentWillUnmount) if (t._calledComponentWillUnmount = !0, e) { var n = this.getName() + \".componentWillUnmount()\"; p.invokeGuardedCallback(n, t.componentWillUnmount.bind(t)) } else t.componentWillUnmount(); this._renderedComponent && (h.unmountComponent(this._renderedComponent, e), this._renderedNodeType = null, this._renderedComponent = null, this._instance = null), this._pendingStateQueue = null, this._pendingReplaceState = !1, this._pendingForceUpdate = !1, this._pendingCallbacks = null, this._pendingElement = null, this._context = null, this._rootNodeID = 0, this._topLevelWrapper = null, d.remove(t) } }, _maskContext: function (e) { var t = this._currentElement.type, n = t.contextTypes; if (!n) return m; var r = {}; for (var o in n) r[o] = e[o]; return r }, _processContext: function (e) { return this._maskContext(e) }, _processChildContext: function (e) { var t, n = this._currentElement.type, r = this._instance; if (r.getChildContext && (t = r.getChildContext()), t) { \"object\" != typeof n.childContextTypes && a(\"107\", this.getName() || \"ReactCompositeComponent\"); for (var o in t) o in n.childContextTypes || a(\"108\", this.getName() || \"ReactCompositeComponent\", o); return s({}, e, t) } return e }, _checkContextTypes: function (e, t, n) { }, receiveComponent: function (e, t, n) { var r = this._currentElement, o = this._context; this._pendingElement = null, this.updateComponent(t, r, e, o, n) }, performUpdateIfNecessary: function (e) { null != this._pendingElement ? h.receiveComponent(this, this._pendingElement, e, this._context) : null !== this._pendingStateQueue || this._pendingForceUpdate ? this.updateComponent(e, this._currentElement, this._currentElement, this._context, this._context) : this._updateBatchNumber = null }, updateComponent: function (e, t, n, r, o) { var i = this._instance; null == i && a(\"136\", this.getName() || \"ReactCompositeComponent\"); var s, u = !1; this._context === o ? s = i.context : (s = this._processContext(o), u = !0); var l = t.props, c = n.props; t !== n && (u = !0), u && i.componentWillReceiveProps && i.componentWillReceiveProps(c, s); var p = this._processPendingState(c, s), d = !0; this._pendingForceUpdate || (i.shouldComponentUpdate ? d = i.shouldComponentUpdate(c, p, s) : this._compositeType === y.PureClass && (d = !v(l, c) || !v(i.state, p))), this._updateBatchNumber = null, d ? (this._pendingForceUpdate = !1, this._performComponentUpdate(n, c, p, s, e, o)) : (this._currentElement = n, this._context = o, i.props = c, i.state = p, i.context = s) }, _processPendingState: function (e, t) { var n = this._instance, r = this._pendingStateQueue, o = this._pendingReplaceState; if (this._pendingReplaceState = !1, this._pendingStateQueue = null, !r) return n.state; if (o && 1 === r.length) return r[0]; for (var i = s({}, o ? r[0] : n.state), a = o ? 1 : 0; a < r.length; a++) { var u = r[a]; s(i, \"function\" == typeof u ? u.call(n, i, e, t) : u) } return i }, _performComponentUpdate: function (e, t, n, r, o, i) { var a, s, u, l = this._instance, c = Boolean(l.componentDidUpdate); c && (a = l.props, s = l.state, u = l.context), l.componentWillUpdate && l.componentWillUpdate(t, n, r), this._currentElement = e, this._context = i, l.props = t, l.state = n, l.context = r, this._updateRenderedComponent(o, i), c && o.getReactMountReady().enqueue(l.componentDidUpdate.bind(l, a, s, u), l) }, _updateRenderedComponent: function (e, t) { var n = this._renderedComponent, r = n._currentElement, o = this._renderValidatedComponent(); if (g(r, o)) h.receiveComponent(n, o, e, this._processChildContext(t)); else { var i = h.getHostNode(n); h.unmountComponent(n, !1); var a = f.getType(o); this._renderedNodeType = a; var s = this._instantiateReactComponent(o, a !== f.EMPTY); this._renderedComponent = s; var u = h.mountComponent(s, e, this._hostParent, this._hostContainerInfo, this._processChildContext(t), 0); this._replaceNodeWithMarkup(i, u, n) } }, _replaceNodeWithMarkup: function (e, t, n) { l.replaceNodeWithMarkup(e, t, n) }, _renderValidatedComponentWithoutOwnerOrContext: function () { return this._instance.render() }, _renderValidatedComponent: function () { var e; if (this._compositeType !== y.StatelessFunctional) { c.current = this; try { e = this._renderValidatedComponentWithoutOwnerOrContext() } finally { c.current = null } } else e = this._renderValidatedComponentWithoutOwnerOrContext(); return null === e || !1 === e || u.isValidElement(e) || a(\"109\", this.getName() || \"ReactCompositeComponent\"), e }, attachRef: function (e, t) { var n = this.getPublicInstance(); null == n && a(\"110\"); var r = t.getPublicInstance(); (n.refs === m ? n.refs = {} : n.refs)[e] = r }, detachRef: function (e) { delete this.getPublicInstance().refs[e] }, getName: function () { var e = this._currentElement.type, t = this._instance && this._instance.constructor; return e.displayName || t && t.displayName || e.name || t && t.name || null }, getPublicInstance: function () { var e = this._instance; return this._compositeType === y.StatelessFunctional ? null : e }, _instantiateReactComponent: null }; t.exports = C }, { 112: 112, 116: 116, 119: 119, 120: 120, 130: 130, 137: 137, 141: 141, 142: 142, 143: 143, 28: 28, 50: 50, 57: 57, 58: 58, 62: 62, 66: 66 }], 30: [function (e, t, n) { \"use strict\"; var r = e(33), o = e(47), i = e(60), a = e(66), s = e(71), u = e(72), l = e(96), c = e(103), p = e(113); e(142); o.inject(); var d = { findDOMNode: l, render: i.render, unmountComponentAtNode: i.unmountComponentAtNode, version: u, unstable_batchedUpdates: s.batchedUpdates, unstable_renderSubtreeIntoContainer: p }; \"undefined\" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && \"function\" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject && __REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ ComponentTree: { getClosestInstanceFromNode: r.getClosestInstanceFromNode, getNodeFromInstance: function (e) { return e._renderedComponent && (e = c(e)), e ? r.getNodeFromInstance(e) : null } }, Mount: i, Reconciler: a }); t.exports = d }, { 103: 103, 113: 113, 142: 142, 33: 33, 47: 47, 60: 60, 66: 66, 71: 71, 72: 72, 96: 96 }], 31: [function (e, t, n) { \"use strict\"; function r(e) { if (e) { var t = e._currentElement._owner || null; if (t) { var n = t.getName(); if (n) return \" This DOM node was rendered by `\" + n + \"`.\" } } return \"\" } function o(e, t) { t && (Y[e._tag] && (null != t.children || null != t.dangerouslySetInnerHTML) && m(\"137\", e._tag, e._currentElement._owner ? \" Check the render method of \" + e._currentElement._owner.getName() + \".\" : \"\"), null != t.dangerouslySetInnerHTML && (null != t.children && m(\"60\"), \"object\" == typeof t.dangerouslySetInnerHTML && B in t.dangerouslySetInnerHTML || m(\"61\")), null != t.style && \"object\" != typeof t.style && m(\"62\", r(e))) } function i(e, t, n, r) { if (!(r instanceof R)) { var o = e._hostContainerInfo, i = o._node && o._node.nodeType === H, s = i ? o._node : o._ownerDocument; F(t, s), r.getReactMountReady().enqueue(a, { inst: e, registrationName: t, listener: n }) } } function a() { var e = this; x.putListener(e.inst, e.registrationName, e.listener) } function s() { var e = this; S.postMountWrapper(e) } function u() { var e = this; I.postMountWrapper(e) } function l() { var e = this; N.postMountWrapper(e) } function c() { var e = this; e._rootNodeID || m(\"63\"); var t = U(e); switch (t || m(\"64\"), e._tag) { case \"iframe\": case \"object\": e._wrapperState.listeners = [T.trapBubbledEvent(\"topLoad\", \"load\", t)]; break; case \"video\": case \"audio\": e._wrapperState.listeners = []; for (var n in q) q.hasOwnProperty(n) && e._wrapperState.listeners.push(T.trapBubbledEvent(n, q[n], t)); break; case \"source\": e._wrapperState.listeners = [T.trapBubbledEvent(\"topError\", \"error\", t)]; break; case \"img\": e._wrapperState.listeners = [T.trapBubbledEvent(\"topError\", \"error\", t), T.trapBubbledEvent(\"topLoad\", \"load\", t)]; break; case \"form\": e._wrapperState.listeners = [T.trapBubbledEvent(\"topReset\", \"reset\", t), T.trapBubbledEvent(\"topSubmit\", \"submit\", t)]; break; case \"input\": case \"select\": case \"textarea\": e._wrapperState.listeners = [T.trapBubbledEvent(\"topInvalid\", \"invalid\", t)] } } function p() { M.postUpdateWrapper(this) } function d(e) { G.call(Q, e) || (X.test(e) || m(\"65\", e), Q[e] = !0) } function f(e, t) { return e.indexOf(\"-\") >= 0 || null != t.is } function h(e) { var t = e.type; d(t), this._currentElement = e, this._tag = t.toLowerCase(), this._namespaceURI = null, this._renderedChildren = null, this._previousStyle = null, this._previousStyleCopy = null, this._hostNode = null, this._hostParent = null, this._rootNodeID = 0, this._domID = 0, this._hostContainerInfo = null, this._wrapperState = null, this._topLevelWrapper = null, this._flags = 0 } var m = e(112), v = e(143), g = e(2), y = e(5), _ = e(9), C = e(10), b = e(11), E = e(12), x = e(16), w = e(17), T = e(25), k = e(32), P = e(33), S = e(38), N = e(39), M = e(40), I = e(43), O = (e(58), e(61)), R = e(68), A = (e(129), e(95)), D = (e(137), e(109), e(141), e(118), e(142), k), L = x.deleteListener, U = P.getNodeFromInstance, F = T.listenTo, j = w.registrationNameModules, V = { string: !0, number: !0 }, B = \"__html\", W = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null }, H = 11, q = { topAbort: \"abort\", topCanPlay: \"canplay\", topCanPlayThrough: \"canplaythrough\", topDurationChange: \"durationchange\", topEmptied: \"emptied\", topEncrypted: \"encrypted\", topEnded: \"ended\", topError: \"error\", topLoadedData: \"loadeddata\", topLoadedMetadata: \"loadedmetadata\", topLoadStart: \"loadstart\", topPause: \"pause\", topPlay: \"play\", topPlaying: \"playing\", topProgress: \"progress\", topRateChange: \"ratechange\", topSeeked: \"seeked\", topSeeking: \"seeking\", topStalled: \"stalled\", topSuspend: \"suspend\", topTimeUpdate: \"timeupdate\", topVolumeChange: \"volumechange\", topWaiting: \"waiting\" }, K = { 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 }, z = { listing: !0, pre: !0, textarea: !0 }, Y = v({ menuitem: !0 }, K), X = /^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/, Q = {}, G = {}.hasOwnProperty, $ = 1; h.displayName = \"ReactDOMComponent\", h.Mixin = { mountComponent: function (e, t, n, r) { this._rootNodeID = $++ , this._domID = n._idCounter++ , this._hostParent = t, this._hostContainerInfo = n; var i = this._currentElement.props; switch (this._tag) { case \"audio\": case \"form\": case \"iframe\": case \"img\": case \"link\": case \"object\": case \"source\": case \"video\": this._wrapperState = { listeners: null }, e.getReactMountReady().enqueue(c, this); break; case \"input\": S.mountWrapper(this, i, t), i = S.getHostProps(this, i), e.getReactMountReady().enqueue(c, this); break; case \"option\": N.mountWrapper(this, i, t), i = N.getHostProps(this, i); break; case \"select\": M.mountWrapper(this, i, t), i = M.getHostProps(this, i), e.getReactMountReady().enqueue(c, this); break; case \"textarea\": I.mountWrapper(this, i, t), i = I.getHostProps(this, i), e.getReactMountReady().enqueue(c, this) }o(this, i); var a, p; null != t ? (a = t._namespaceURI, p = t._tag) : n._tag && (a = n._namespaceURI, p = n._tag), (null == a || a === C.svg && \"foreignobject\" === p) && (a = C.html), a === C.html && (\"svg\" === this._tag ? a = C.svg : \"math\" === this._tag && (a = C.mathml)), this._namespaceURI = a; var d; if (e.useCreateElement) { var f, h = n._ownerDocument; if (a === C.html) if (\"script\" === this._tag) { var m = h.createElement(\"div\"), v = this._currentElement.type; m.innerHTML = \"<\" + v + \">\", f = m.removeChild(m.firstChild) } else f = i.is ? h.createElement(this._currentElement.type, i.is) : h.createElement(this._currentElement.type); else f = h.createElementNS(a, this._currentElement.type); P.precacheNode(this, f), this._flags |= D.hasCachedChildNodes, this._hostParent || E.setAttributeForRoot(f), this._updateDOMProperties(null, i, e); var y = _(f); this._createInitialChildren(e, i, r, y), d = y } else { var b = this._createOpenTagMarkupAndPutListeners(e, i), x = this._createContentMarkup(e, i, r); d = !x && K[this._tag] ? b + \"/>\" : b + \">\" + x + \"\" } switch (this._tag) { case \"input\": e.getReactMountReady().enqueue(s, this), i.autoFocus && e.getReactMountReady().enqueue(g.focusDOMComponent, this); break; case \"textarea\": e.getReactMountReady().enqueue(u, this), i.autoFocus && e.getReactMountReady().enqueue(g.focusDOMComponent, this); break; case \"select\": case \"button\": i.autoFocus && e.getReactMountReady().enqueue(g.focusDOMComponent, this); break; case \"option\": e.getReactMountReady().enqueue(l, this) }return d }, _createOpenTagMarkupAndPutListeners: function (e, t) { var n = \"<\" + this._currentElement.type; for (var r in t) if (t.hasOwnProperty(r)) { var o = t[r]; if (null != o) if (j.hasOwnProperty(r)) o && i(this, r, o, e); else { \"style\" === r && (o && (o = this._previousStyleCopy = v({}, t.style)), o = y.createMarkupForStyles(o, this)); var a = null; null != this._tag && f(this._tag, t) ? W.hasOwnProperty(r) || (a = E.createMarkupForCustomAttribute(r, o)) : a = E.createMarkupForProperty(r, o), a && (n += \" \" + a) } } return e.renderToStaticMarkup ? n : (this._hostParent || (n += \" \" + E.createMarkupForRoot()), n += \" \" + E.createMarkupForID(this._domID)) }, _createContentMarkup: function (e, t, n) { var r = \"\", o = t.dangerouslySetInnerHTML; if (null != o) null != o.__html && (r = o.__html); else { var i = V[typeof t.children] ? t.children : null, a = null != i ? null : t.children; if (null != i) r = A(i); else if (null != a) { var s = this.mountChildren(a, e, n); r = s.join(\"\") } } return z[this._tag] && \"\\n\" === r.charAt(0) ? \"\\n\" + r : r }, _createInitialChildren: function (e, t, n, r) { var o = t.dangerouslySetInnerHTML; if (null != o) null != o.__html && _.queueHTML(r, o.__html); else { var i = V[typeof t.children] ? t.children : null, a = null != i ? null : t.children; if (null != i) \"\" !== i && _.queueText(r, i); else if (null != a) for (var s = this.mountChildren(a, e, n), u = 0; u < s.length; u++)_.queueChild(r, s[u]) } }, receiveComponent: function (e, t, n) { var r = this._currentElement; this._currentElement = e, this.updateComponent(t, r, e, n) }, updateComponent: function (e, t, n, r) { var i = t.props, a = this._currentElement.props; switch (this._tag) { case \"input\": i = S.getHostProps(this, i), a = S.getHostProps(this, a); break; case \"option\": i = N.getHostProps(this, i), a = N.getHostProps(this, a); break; case \"select\": i = M.getHostProps(this, i), a = M.getHostProps(this, a); break; case \"textarea\": i = I.getHostProps(this, i), a = I.getHostProps(this, a) }switch (o(this, a), this._updateDOMProperties(i, a, e), this._updateDOMChildren(i, a, e, r), this._tag) { case \"input\": S.updateWrapper(this); break; case \"textarea\": I.updateWrapper(this); break; case \"select\": e.getReactMountReady().enqueue(p, this) } }, _updateDOMProperties: function (e, t, n) { var r, o, a; for (r in e) if (!t.hasOwnProperty(r) && e.hasOwnProperty(r) && null != e[r]) if (\"style\" === r) { var s = this._previousStyleCopy; for (o in s) s.hasOwnProperty(o) && (a = a || {}, a[o] = \"\"); this._previousStyleCopy = null } else j.hasOwnProperty(r) ? e[r] && L(this, r) : f(this._tag, e) ? W.hasOwnProperty(r) || E.deleteValueForAttribute(U(this), r) : (b.properties[r] || b.isCustomAttribute(r)) && E.deleteValueForProperty(U(this), r); for (r in t) { var u = t[r], l = \"style\" === r ? this._previousStyleCopy : null != e ? e[r] : void 0; if (t.hasOwnProperty(r) && u !== l && (null != u || null != l)) if (\"style\" === r) if (u ? u = this._previousStyleCopy = v({}, u) : this._previousStyleCopy = null, l) { for (o in l) !l.hasOwnProperty(o) || u && u.hasOwnProperty(o) || (a = a || {}, a[o] = \"\"); for (o in u) u.hasOwnProperty(o) && l[o] !== u[o] && (a = a || {}, a[o] = u[o]) } else a = u; else if (j.hasOwnProperty(r)) u ? i(this, r, u, n) : l && L(this, r); else if (f(this._tag, t)) W.hasOwnProperty(r) || E.setValueForAttribute(U(this), r, u); else if (b.properties[r] || b.isCustomAttribute(r)) { var c = U(this); null != u ? E.setValueForProperty(c, r, u) : E.deleteValueForProperty(c, r) } } a && y.setValueForStyles(U(this), a, this) }, _updateDOMChildren: function (e, t, n, r) { var o = V[typeof e.children] ? e.children : null, i = V[typeof t.children] ? t.children : null, a = e.dangerouslySetInnerHTML && e.dangerouslySetInnerHTML.__html, s = t.dangerouslySetInnerHTML && t.dangerouslySetInnerHTML.__html, u = null != o ? null : e.children, l = null != i ? null : t.children, c = null != o || null != a, p = null != i || null != s; null != u && null == l ? this.updateChildren(null, n, r) : c && !p && this.updateTextContent(\"\"), null != i ? o !== i && this.updateTextContent(\"\" + i) : null != s ? a !== s && this.updateMarkup(\"\" + s) : null != l && this.updateChildren(l, n, r) }, getHostNode: function () { return U(this) }, unmountComponent: function (e) { switch (this._tag) { case \"audio\": case \"form\": case \"iframe\": case \"img\": case \"link\": case \"object\": case \"source\": case \"video\": var t = this._wrapperState.listeners; if (t) for (var n = 0; n < t.length; n++)t[n].remove(); break; case \"html\": case \"head\": case \"body\": m(\"66\", this._tag) }this.unmountChildren(e), P.uncacheNode(this), x.deleteAllListeners(this), this._rootNodeID = 0, this._domID = 0, this._wrapperState = null }, getPublicInstance: function () { return U(this) } }, v(h.prototype, h.Mixin, O.Mixin), t.exports = h }, { 10: 10, 109: 109, 11: 11, 112: 112, 118: 118, 12: 12, 129: 129, 137: 137, 141: 141, 142: 142, 143: 143, 16: 16, 17: 17, 2: 2, 25: 25, 32: 32, 33: 33, 38: 38, 39: 39, 40: 40, 43: 43, 5: 5, 58: 58, 61: 61, 68: 68, 9: 9, 95: 95 }], 32: [function (e, t, n) { \"use strict\"; var r = { hasCachedChildNodes: 1 }; t.exports = r }, {}], 33: [function (e, t, n) { \"use strict\"; function r(e, t) { return 1 === e.nodeType && e.getAttribute(h) === String(t) || 8 === e.nodeType && e.nodeValue === \" react-text: \" + t + \" \" || 8 === e.nodeType && e.nodeValue === \" react-empty: \" + t + \" \" } function o(e) { for (var t; t = e._renderedComponent;)e = t; return e } function i(e, t) { var n = o(e); n._hostNode = t, t[v] = n } function a(e) { var t = e._hostNode; t && (delete t[v], e._hostNode = null) } function s(e, t) { if (!(e._flags & m.hasCachedChildNodes)) { var n = e._renderedChildren, a = t.firstChild; e: for (var s in n) if (n.hasOwnProperty(s)) { var u = n[s], l = o(u)._domID; if (0 !== l) { for (; null !== a; a = a.nextSibling)if (r(a, l)) { i(u, a); continue e } p(\"32\", l) } } e._flags |= m.hasCachedChildNodes } } function u(e) { if (e[v]) return e[v]; for (var t = []; !e[v];) { if (t.push(e), !e.parentNode) return null; e = e.parentNode } for (var n, r; e && (r = e[v]); e = t.pop())n = r, t.length && s(r, e); return n } function l(e) { var t = u(e); return null != t && t._hostNode === e ? t : null } function c(e) { if (void 0 === e._hostNode && p(\"33\"), e._hostNode) return e._hostNode; for (var t = []; !e._hostNode;)t.push(e), e._hostParent || p(\"34\"), e = e._hostParent; for (; t.length; e = t.pop())s(e, e._hostNode); return e._hostNode } var p = e(112), d = e(11), f = e(32), h = (e(137), d.ID_ATTRIBUTE_NAME), m = f, v = \"__reactInternalInstance$\" + Math.random().toString(36).slice(2), g = { getClosestInstanceFromNode: u, getInstanceFromNode: l, getNodeFromInstance: c, precacheChildNodes: s, precacheNode: i, uncacheNode: a }; t.exports = g }, { 11: 11, 112: 112, 137: 137, 32: 32 }], 34: [function (e, t, n) { \"use strict\"; function r(e, t) { return { _topLevelWrapper: e, _idCounter: 1, _ownerDocument: t ? t.nodeType === o ? t : t.ownerDocument : null, _node: t, _tag: t ? t.nodeName.toLowerCase() : null, _namespaceURI: t ? t.namespaceURI : null } } var o = (e(118), 9); t.exports = r }, { 118: 118 }], 35: [function (e, t, n) { \"use strict\"; var r = e(143), o = e(9), i = e(33), a = function (e) { this._currentElement = null, this._hostNode = null, this._hostParent = null, this._hostContainerInfo = null, this._domID = 0 }; r(a.prototype, { mountComponent: function (e, t, n, r) { var a = n._idCounter++; this._domID = a, this._hostParent = t, this._hostContainerInfo = n; var s = \" react-empty: \" + this._domID + \" \"; if (e.useCreateElement) { var u = n._ownerDocument, l = u.createComment(s); return i.precacheNode(this, l), o(l) } return e.renderToStaticMarkup ? \"\" : \"\" }, receiveComponent: function () { }, getHostNode: function () { return i.getNodeFromInstance(this) }, unmountComponent: function () { i.uncacheNode(this) } }), t.exports = a }, { 143: 143, 33: 33, 9: 9 }], 36: [function (e, t, n) { \"use strict\"; var r = { useCreateElement: !0, useFiber: !1 }; t.exports = r }, {}], 37: [function (e, t, n) { \"use strict\"; var r = e(8), o = e(33), i = { dangerouslyProcessChildrenUpdates: function (e, t) { var n = o.getNodeFromInstance(e); r.processUpdates(n, t) } }; t.exports = i }, { 33: 33, 8: 8 }], 38: [function (e, t, n) { \"use strict\"; function r() { this._rootNodeID && d.updateWrapper(this) } function o(e) { return \"checkbox\" === e.type || \"radio\" === e.type ? null != e.checked : null != e.value } function i(e) { var t = this._currentElement.props, n = l.executeOnChange(t, e); p.asap(r, this); var o = t.name; if (\"radio\" === t.type && null != o) { for (var i = c.getNodeFromInstance(this), s = i; s.parentNode;)s = s.parentNode; for (var u = s.querySelectorAll(\"input[name=\" + JSON.stringify(\"\" + o) + '][type=\"radio\"]'), d = 0; d < u.length; d++) { var f = u[d]; if (f !== i && f.form === i.form) { var h = c.getInstanceFromNode(f); h || a(\"90\"), p.asap(r, h) } } } return n } var a = e(112), s = e(143), u = e(12), l = e(23), c = e(33), p = e(71), d = (e(137), e(142), { getHostProps: function (e, t) { var n = l.getValue(t), r = l.getChecked(t); return s({ type: void 0, step: void 0, min: void 0, max: void 0 }, t, { defaultChecked: void 0, defaultValue: void 0, value: null != n ? n : e._wrapperState.initialValue, checked: null != r ? r : e._wrapperState.initialChecked, onChange: e._wrapperState.onChange }) }, mountWrapper: function (e, t) { var n = t.defaultValue; e._wrapperState = { initialChecked: null != t.checked ? t.checked : t.defaultChecked, initialValue: null != t.value ? t.value : n, listeners: null, onChange: i.bind(e), controlled: o(t) } }, updateWrapper: function (e) { var t = e._currentElement.props, n = t.checked; null != n && u.setValueForProperty(c.getNodeFromInstance(e), \"checked\", n || !1); var r = c.getNodeFromInstance(e), o = l.getValue(t); if (null != o) if (0 === o && \"\" === r.value) r.value = \"0\"; else if (\"number\" === t.type) { var i = parseFloat(r.value, 10) || 0; o != i && (r.value = \"\" + o) } else o != r.value && (r.value = \"\" + o); else null == t.value && null != t.defaultValue && r.defaultValue !== \"\" + t.defaultValue && (r.defaultValue = \"\" + t.defaultValue), null == t.checked && null != t.defaultChecked && (r.defaultChecked = !!t.defaultChecked) }, postMountWrapper: function (e) { var t = e._currentElement.props, n = c.getNodeFromInstance(e); switch (t.type) { case \"submit\": case \"reset\": break; case \"color\": case \"date\": case \"datetime\": case \"datetime-local\": case \"month\": case \"time\": case \"week\": n.value = \"\", n.value = n.defaultValue; break; default: n.value = n.value }var r = n.name; \"\" !== r && (n.name = \"\"), n.defaultChecked = !n.defaultChecked, n.defaultChecked = !n.defaultChecked, \"\" !== r && (n.name = r) } }); t.exports = d }, { 112: 112, 12: 12, 137: 137, 142: 142, 143: 143, 23: 23, 33: 33, 71: 71 }], 39: [function (e, t, n) { \"use strict\"; function r(e) { var t = \"\"; return i.Children.forEach(e, function (e) { null != e && (\"string\" == typeof e || \"number\" == typeof e ? t += e : u || (u = !0)) }), t } var o = e(143), i = e(120), a = e(33), s = e(40), u = (e(142), !1), l = { mountWrapper: function (e, t, n) { var o = null; if (null != n) { var i = n; \"optgroup\" === i._tag && (i = i._hostParent), null != i && \"select\" === i._tag && (o = s.getSelectValueContext(i)) } var a = null; if (null != o) { var u; if (u = null != t.value ? t.value + \"\" : r(t.children), a = !1, Array.isArray(o)) { for (var l = 0; l < o.length; l++)if (\"\" + o[l] === u) { a = !0; break } } else a = \"\" + o === u } e._wrapperState = { selected: a } }, postMountWrapper: function (e) { var t = e._currentElement.props; null != t.value && a.getNodeFromInstance(e).setAttribute(\"value\", t.value) }, getHostProps: function (e, t) { var n = o({ selected: void 0, children: void 0 }, t); null != e._wrapperState.selected && (n.selected = e._wrapperState.selected); var i = r(t.children); return i && (n.children = i), n } }; t.exports = l }, { 120: 120, 142: 142, 143: 143, 33: 33, 40: 40 }], 40: [function (e, t, n) { \"use strict\"; function r() { if (this._rootNodeID && this._wrapperState.pendingUpdate) { this._wrapperState.pendingUpdate = !1; var e = this._currentElement.props, t = s.getValue(e); null != t && o(this, Boolean(e.multiple), t) } } function o(e, t, n) { var r, o, i = u.getNodeFromInstance(e).options; if (t) { for (r = {}, o = 0; o < n.length; o++)r[\"\" + n[o]] = !0; for (o = 0; o < i.length; o++) { var a = r.hasOwnProperty(i[o].value); i[o].selected !== a && (i[o].selected = a) } } else { for (r = \"\" + n, o = 0; o < i.length; o++)if (i[o].value === r) return void (i[o].selected = !0); i.length && (i[0].selected = !0) } } function i(e) { var t = this._currentElement.props, n = s.executeOnChange(t, e); return this._rootNodeID && (this._wrapperState.pendingUpdate = !0), l.asap(r, this), n } var a = e(143), s = e(23), u = e(33), l = e(71), c = (e(142), !1), p = { getHostProps: function (e, t) { return a({}, t, { onChange: e._wrapperState.onChange, value: void 0 }) }, mountWrapper: function (e, t) { var n = s.getValue(t); e._wrapperState = { pendingUpdate: !1, initialValue: null != n ? n : t.defaultValue, listeners: null, onChange: i.bind(e), wasMultiple: Boolean(t.multiple) }, void 0 === t.value || void 0 === t.defaultValue || c || (c = !0) }, getSelectValueContext: function (e) { return e._wrapperState.initialValue }, postUpdateWrapper: function (e) { var t = e._currentElement.props; e._wrapperState.initialValue = void 0; var n = e._wrapperState.wasMultiple; e._wrapperState.wasMultiple = Boolean(t.multiple); var r = s.getValue(t); null != r ? (e._wrapperState.pendingUpdate = !1, o(e, Boolean(t.multiple), r)) : n !== Boolean(t.multiple) && (null != t.defaultValue ? o(e, Boolean(t.multiple), t.defaultValue) : o(e, Boolean(t.multiple), t.multiple ? [] : \"\")) } }; t.exports = p }, { 142: 142, 143: 143, 23: 23, 33: 33, 71: 71 }], 41: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return e === n && t === r } function o(e) { var t = document.selection, n = t.createRange(), r = n.text.length, o = n.duplicate(); o.moveToElementText(e), o.setEndPoint(\"EndToStart\", n); var i = o.text.length; return { start: i, end: i + r } } function i(e) { var t = window.getSelection && window.getSelection(); if (!t || 0 === t.rangeCount) return null; var n = t.anchorNode, o = t.anchorOffset, i = t.focusNode, a = t.focusOffset, s = t.getRangeAt(0); try { s.startContainer.nodeType, s.endContainer.nodeType } catch (e) { return null } var u = r(t.anchorNode, t.anchorOffset, t.focusNode, t.focusOffset), l = u ? 0 : s.toString().length, c = s.cloneRange(); c.selectNodeContents(e), c.setEnd(s.startContainer, s.startOffset); var p = r(c.startContainer, c.startOffset, c.endContainer, c.endOffset), d = p ? 0 : c.toString().length, f = d + l, h = document.createRange(); h.setStart(n, o), h.setEnd(i, a); var m = h.collapsed; return { start: m ? f : d, end: m ? d : f } } function a(e, t) { var n, r, o = document.selection.createRange().duplicate(); void 0 === t.end ? (n = t.start, r = n) : t.start > t.end ? (n = t.end, r = t.start) : (n = t.start, r = t.end), o.moveToElementText(e), o.moveStart(\"character\", n), o.setEndPoint(\"EndToStart\", o), o.moveEnd(\"character\", r - n), o.select() } function s(e, t) { if (window.getSelection) { var n = window.getSelection(), r = e[c()].length, o = Math.min(t.start, r), i = void 0 === t.end ? o : Math.min(t.end, r); if (!n.extend && o > i) { var a = i; i = o, o = a } var s = l(e, o), u = l(e, i); if (s && u) { var p = document.createRange(); p.setStart(s.node, s.offset), n.removeAllRanges(), o > i ? (n.addRange(p), n.extend(u.node, u.offset)) : (p.setEnd(u.node, u.offset), n.addRange(p)) } } } var u = e(123), l = e(105), c = e(106), p = u.canUseDOM && \"selection\" in document && !(\"getSelection\" in window), d = { getOffsets: p ? o : i, setOffsets: p ? a : s }; t.exports = d }, { 105: 105, 106: 106, 123: 123 }], 42: [function (e, t, n) {\r\n \"use strict\"; var r = e(112), o = e(143), i = e(8), a = e(9), s = e(33), u = e(95), l = (e(137), e(118), function (e) {\r\n this._currentElement = e, this._stringText = \"\" + e,\r\n this._hostNode = null, this._hostParent = null, this._domID = 0, this._mountIndex = 0, this._closingComment = null, this._commentNodes = null\r\n }); o(l.prototype, { mountComponent: function (e, t, n, r) { var o = n._idCounter++, i = \" react-text: \" + o + \" \"; if (this._domID = o, this._hostParent = t, e.useCreateElement) { var l = n._ownerDocument, c = l.createComment(i), p = l.createComment(\" /react-text \"), d = a(l.createDocumentFragment()); return a.queueChild(d, a(c)), this._stringText && a.queueChild(d, a(l.createTextNode(this._stringText))), a.queueChild(d, a(p)), s.precacheNode(this, c), this._closingComment = p, d } var f = u(this._stringText); return e.renderToStaticMarkup ? f : \"\" + f + \"\" }, receiveComponent: function (e, t) { if (e !== this._currentElement) { this._currentElement = e; var n = \"\" + e; if (n !== this._stringText) { this._stringText = n; var r = this.getHostNode(); i.replaceDelimitedText(r[0], r[1], n) } } }, getHostNode: function () { var e = this._commentNodes; if (e) return e; if (!this._closingComment) for (var t = s.getNodeFromInstance(this), n = t.nextSibling; ;) { if (null == n && r(\"67\", this._domID), 8 === n.nodeType && \" /react-text \" === n.nodeValue) { this._closingComment = n; break } n = n.nextSibling } return e = [this._hostNode, this._closingComment], this._commentNodes = e, e }, unmountComponent: function () { this._closingComment = null, this._commentNodes = null, s.uncacheNode(this) } }), t.exports = l\r\n }, { 112: 112, 118: 118, 137: 137, 143: 143, 33: 33, 8: 8, 9: 9, 95: 95 }], 43: [function (e, t, n) { \"use strict\"; function r() { this._rootNodeID && c.updateWrapper(this) } function o(e) { var t = this._currentElement.props, n = s.executeOnChange(t, e); return l.asap(r, this), n } var i = e(112), a = e(143), s = e(23), u = e(33), l = e(71), c = (e(137), e(142), { getHostProps: function (e, t) { return null != t.dangerouslySetInnerHTML && i(\"91\"), a({}, t, { value: void 0, defaultValue: void 0, children: \"\" + e._wrapperState.initialValue, onChange: e._wrapperState.onChange }) }, mountWrapper: function (e, t) { var n = s.getValue(t), r = n; if (null == n) { var a = t.defaultValue, u = t.children; null != u && (null != a && i(\"92\"), Array.isArray(u) && (u.length <= 1 || i(\"93\"), u = u[0]), a = \"\" + u), null == a && (a = \"\"), r = a } e._wrapperState = { initialValue: \"\" + r, listeners: null, onChange: o.bind(e) } }, updateWrapper: function (e) { var t = e._currentElement.props, n = u.getNodeFromInstance(e), r = s.getValue(t); if (null != r) { var o = \"\" + r; o !== n.value && (n.value = o), null == t.defaultValue && (n.defaultValue = o) } null != t.defaultValue && (n.defaultValue = t.defaultValue) }, postMountWrapper: function (e) { var t = u.getNodeFromInstance(e), n = t.textContent; n === e._wrapperState.initialValue && (t.value = n) } }); t.exports = c }, { 112: 112, 137: 137, 142: 142, 143: 143, 23: 23, 33: 33, 71: 71 }], 44: [function (e, t, n) { \"use strict\"; function r(e, t) { \"_hostNode\" in e || u(\"33\"), \"_hostNode\" in t || u(\"33\"); for (var n = 0, r = e; r; r = r._hostParent)n++; for (var o = 0, i = t; i; i = i._hostParent)o++; for (; n - o > 0;)e = e._hostParent, n--; for (; o - n > 0;)t = t._hostParent, o--; for (var a = n; a--;) { if (e === t) return e; e = e._hostParent, t = t._hostParent } return null } function o(e, t) { \"_hostNode\" in e || u(\"35\"), \"_hostNode\" in t || u(\"35\"); for (; t;) { if (t === e) return !0; t = t._hostParent } return !1 } function i(e) { return \"_hostNode\" in e || u(\"36\"), e._hostParent } function a(e, t, n) { for (var r = []; e;)r.push(e), e = e._hostParent; var o; for (o = r.length; o-- > 0;)t(r[o], \"captured\", n); for (o = 0; o < r.length; o++)t(r[o], \"bubbled\", n) } function s(e, t, n, o, i) { for (var a = e && t ? r(e, t) : null, s = []; e && e !== a;)s.push(e), e = e._hostParent; for (var u = []; t && t !== a;)u.push(t), t = t._hostParent; var l; for (l = 0; l < s.length; l++)n(s[l], \"bubbled\", o); for (l = u.length; l-- > 0;)n(u[l], \"captured\", i) } var u = e(112); e(137); t.exports = { isAncestor: o, getLowestCommonAncestor: r, getParentInstance: i, traverseTwoPhase: a, traverseEnterLeave: s } }, { 112: 112, 137: 137 }], 45: [function (e, t, n) { \"use strict\"; var r = e(120), o = e(30), i = o; r.addons && (r.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = i), t.exports = i }, { 120: 120, 30: 30 }], 46: [function (e, t, n) { \"use strict\"; function r() { this.reinitializeTransaction() } var o = e(143), i = e(71), a = e(89), s = e(129), u = { initialize: s, close: function () { d.isBatchingUpdates = !1 } }, l = { initialize: s, close: i.flushBatchedUpdates.bind(i) }, c = [l, u]; o(r.prototype, a, { getTransactionWrappers: function () { return c } }); var p = new r, d = { isBatchingUpdates: !1, batchedUpdates: function (e, t, n, r, o, i) { var a = d.isBatchingUpdates; return d.isBatchingUpdates = !0, a ? e(t, n, r, o, i) : p.perform(e, null, t, n, r, o, i) } }; t.exports = d }, { 129: 129, 143: 143, 71: 71, 89: 89 }], 47: [function (e, t, n) { \"use strict\"; function r() { x || (x = !0, y.EventEmitter.injectReactEventListener(g), y.EventPluginHub.injectEventPluginOrder(s), y.EventPluginUtils.injectComponentTree(d), y.EventPluginUtils.injectTreeTraversal(h), y.EventPluginHub.injectEventPluginsByName({ SimpleEventPlugin: E, EnterLeaveEventPlugin: u, ChangeEventPlugin: a, SelectEventPlugin: b, BeforeInputEventPlugin: i }), y.HostComponent.injectGenericComponentClass(p), y.HostComponent.injectTextComponentClass(m), y.DOMProperty.injectDOMPropertyConfig(o), y.DOMProperty.injectDOMPropertyConfig(l), y.DOMProperty.injectDOMPropertyConfig(C), y.EmptyComponent.injectEmptyComponentFactory(function (e) { return new f(e) }), y.Updates.injectReconcileTransaction(_), y.Updates.injectBatchingStrategy(v), y.Component.injectEnvironment(c)) } var o = e(1), i = e(3), a = e(7), s = e(14), u = e(15), l = e(21), c = e(27), p = e(31), d = e(33), f = e(35), h = e(44), m = e(42), v = e(46), g = e(52), y = e(55), _ = e(65), C = e(73), b = e(74), E = e(75), x = !1; t.exports = { inject: r } }, { 1: 1, 14: 14, 15: 15, 21: 21, 27: 27, 3: 3, 31: 31, 33: 33, 35: 35, 42: 42, 44: 44, 46: 46, 52: 52, 55: 55, 65: 65, 7: 7, 73: 73, 74: 74, 75: 75 }], 48: [function (e, t, n) { \"use strict\"; var r = \"function\" == typeof Symbol && Symbol.for && Symbol.for(\"react.element\") || 60103; t.exports = r }, {}], 49: [function (e, t, n) { \"use strict\"; var r, o = { injectEmptyComponentFactory: function (e) { r = e } }, i = { create: function (e) { return r(e) } }; i.injection = o, t.exports = i }, {}], 50: [function (e, t, n) { \"use strict\"; function r(e, t, n) { try { t(n) } catch (e) { null === o && (o = e) } } var o = null, i = { invokeGuardedCallback: r, invokeGuardedCallbackWithCatch: r, rethrowCaughtError: function () { if (o) { var e = o; throw o = null, e } } }; t.exports = i }, {}], 51: [function (e, t, n) { \"use strict\"; function r(e) { o.enqueueEvents(e), o.processEventQueue(!1) } var o = e(16), i = { handleTopLevel: function (e, t, n, i) { r(o.extractEvents(e, t, n, i)) } }; t.exports = i }, { 16: 16 }], 52: [function (e, t, n) { \"use strict\"; function r(e) { for (; e._hostParent;)e = e._hostParent; var t = p.getNodeFromInstance(e), n = t.parentNode; return p.getClosestInstanceFromNode(n) } function o(e, t) { this.topLevelType = e, this.nativeEvent = t, this.ancestors = [] } function i(e) { var t = f(e.nativeEvent), n = p.getClosestInstanceFromNode(t), o = n; do { e.ancestors.push(o), o = o && r(o) } while (o); for (var i = 0; i < e.ancestors.length; i++)n = e.ancestors[i], m._handleTopLevel(e.topLevelType, n, e.nativeEvent, f(e.nativeEvent)) } function a(e) { e(h(window)) } var s = e(143), u = e(122), l = e(123), c = e(24), p = e(33), d = e(71), f = e(102), h = e(134); s(o.prototype, { destructor: function () { this.topLevelType = null, this.nativeEvent = null, this.ancestors.length = 0 } }), c.addPoolingTo(o, c.twoArgumentPooler); var m = { _enabled: !0, _handleTopLevel: null, WINDOW_HANDLE: l.canUseDOM ? window : null, setHandleTopLevel: function (e) { m._handleTopLevel = e }, setEnabled: function (e) { m._enabled = !!e }, isEnabled: function () { return m._enabled }, trapBubbledEvent: function (e, t, n) { return n ? u.listen(n, t, m.dispatchEvent.bind(null, e)) : null }, trapCapturedEvent: function (e, t, n) { return n ? u.capture(n, t, m.dispatchEvent.bind(null, e)) : null }, monitorScrollValue: function (e) { var t = a.bind(null, e); u.listen(window, \"scroll\", t) }, dispatchEvent: function (e, t) { if (m._enabled) { var n = o.getPooled(e, t); try { d.batchedUpdates(i, n) } finally { o.release(n) } } } }; t.exports = m }, { 102: 102, 122: 122, 123: 123, 134: 134, 143: 143, 24: 24, 33: 33, 71: 71 }], 53: [function (e, t, n) { \"use strict\"; var r = { logTopLevelRenders: !1 }; t.exports = r }, {}], 54: [function (e, t, n) { \"use strict\"; function r(e) { return s || a(\"111\", e.type), new s(e) } function o(e) { return new u(e) } function i(e) { return e instanceof u } var a = e(112), s = (e(137), null), u = null, l = { injectGenericComponentClass: function (e) { s = e }, injectTextComponentClass: function (e) { u = e } }, c = { createInternalComponent: r, createInstanceForText: o, isTextComponent: i, injection: l }; t.exports = c }, { 112: 112, 137: 137 }], 55: [function (e, t, n) { \"use strict\"; var r = e(11), o = e(16), i = e(18), a = e(28), s = e(49), u = e(25), l = e(54), c = e(71), p = { Component: a.injection, DOMProperty: r.injection, EmptyComponent: s.injection, EventPluginHub: o.injection, EventPluginUtils: i.injection, EventEmitter: u.injection, HostComponent: l.injection, Updates: c.injection }; t.exports = p }, { 11: 11, 16: 16, 18: 18, 25: 25, 28: 28, 49: 49, 54: 54, 71: 71 }], 56: [function (e, t, n) { \"use strict\"; function r(e) { return i(document.documentElement, e) } var o = e(41), i = e(126), a = e(131), s = e(132), u = { hasSelectionCapabilities: function (e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && (\"input\" === t && \"text\" === e.type || \"textarea\" === t || \"true\" === e.contentEditable) }, getSelectionInformation: function () { var e = s(); return { focusedElem: e, selectionRange: u.hasSelectionCapabilities(e) ? u.getSelection(e) : null } }, restoreSelection: function (e) { var t = s(), n = e.focusedElem, o = e.selectionRange; t !== n && r(n) && (u.hasSelectionCapabilities(n) && u.setSelection(n, o), a(n)) }, getSelection: function (e) { var t; if (\"selectionStart\" in e) t = { start: e.selectionStart, end: e.selectionEnd }; else if (document.selection && e.nodeName && \"input\" === e.nodeName.toLowerCase()) { var n = document.selection.createRange(); n.parentElement() === e && (t = { start: -n.moveStart(\"character\", -e.value.length), end: -n.moveEnd(\"character\", -e.value.length) }) } else t = o.getOffsets(e); return t || { start: 0, end: 0 } }, setSelection: function (e, t) { var n = t.start, r = t.end; if (void 0 === r && (r = n), \"selectionStart\" in e) e.selectionStart = n, e.selectionEnd = Math.min(r, e.value.length); else if (document.selection && e.nodeName && \"input\" === e.nodeName.toLowerCase()) { var i = e.createTextRange(); i.collapse(!0), i.moveStart(\"character\", n), i.moveEnd(\"character\", r - n), i.select() } else o.setOffsets(e, t) } }; t.exports = u }, { 126: 126, 131: 131, 132: 132, 41: 41 }], 57: [function (e, t, n) { \"use strict\"; var r = { remove: function (e) { e._reactInternalInstance = void 0 }, get: function (e) { return e._reactInternalInstance }, has: function (e) { return void 0 !== e._reactInternalInstance }, set: function (e, t) { e._reactInternalInstance = t } }; t.exports = r }, {}], 58: [function (e, t, n) { \"use strict\"; t.exports = { debugTool: null } }, {}], 59: [function (e, t, n) { \"use strict\"; var r = e(92), o = /^<\\!\\-\\-/, i = { CHECKSUM_ATTR_NAME: \"data-react-checksum\", addChecksumToMarkup: function (e) { var t = r(e); return o.test(e) ? e : e.replace(/\\/?>/, \" \" + i.CHECKSUM_ATTR_NAME + '=\"' + t + '\"$&') }, canReuseMarkup: function (e, t) { var n = t.getAttribute(i.CHECKSUM_ATTR_NAME); return n = n && parseInt(n, 10), r(e) === n } }; t.exports = i }, { 92: 92 }], 60: [function (e, t, n) { \"use strict\"; function r(e, t) { for (var n = Math.min(e.length, t.length), r = 0; r < n; r++)if (e.charAt(r) !== t.charAt(r)) return r; return e.length === t.length ? -1 : n } function o(e) { return e ? e.nodeType === A ? e.documentElement : e.firstChild : null } function i(e) { return e.getAttribute && e.getAttribute(I) || \"\" } function a(e, t, n, r, o) { var i; if (b.logTopLevelRenders) { var a = e._currentElement.props.child, s = a.type; i = \"React mount: \" + (\"string\" == typeof s ? s : s.displayName || s.name), console.time(i) } var u = w.mountComponent(e, n, null, _(e, t), o, 0); i && console.timeEnd(i), e._renderedComponent._topLevelWrapper = e, j._mountImageIntoNode(u, t, e, r, n) } function s(e, t, n, r) { var o = k.ReactReconcileTransaction.getPooled(!n && C.useCreateElement); o.perform(a, null, e, t, o, n, r), k.ReactReconcileTransaction.release(o) } function u(e, t, n) { for (w.unmountComponent(e, n), t.nodeType === A && (t = t.documentElement); t.lastChild;)t.removeChild(t.lastChild) } function l(e) { var t = o(e); if (t) { var n = y.getInstanceFromNode(t); return !(!n || !n._hostParent) } } function c(e) { return !(!e || e.nodeType !== R && e.nodeType !== A && e.nodeType !== D) } function p(e) { var t = o(e), n = t && y.getInstanceFromNode(t); return n && !n._hostParent ? n : null } function d(e) { var t = p(e); return t ? t._hostContainerInfo._topLevelWrapper : null } var f = e(112), h = e(9), m = e(11), v = e(120), g = e(25), y = (e(119), e(33)), _ = e(34), C = e(36), b = e(53), E = e(57), x = (e(58), e(59)), w = e(66), T = e(70), k = e(71), P = e(130), S = e(108), N = (e(137), e(114)), M = e(116), I = (e(142), m.ID_ATTRIBUTE_NAME), O = m.ROOT_ATTRIBUTE_NAME, R = 1, A = 9, D = 11, L = {}, U = 1, F = function () { this.rootID = U++ }; F.prototype.isReactComponent = {}, F.prototype.render = function () { return this.props.child }, F.isReactTopLevelWrapper = !0; var j = { TopLevelWrapper: F, _instancesByReactRootID: L, scrollMonitor: function (e, t) { t() }, _updateRootComponent: function (e, t, n, r, o) { return j.scrollMonitor(r, function () { T.enqueueElementInternal(e, t, n), o && T.enqueueCallbackInternal(e, o) }), e }, _renderNewRootComponent: function (e, t, n, r) { c(t) || f(\"37\"), g.ensureScrollValueMonitoring(); var o = S(e, !1); k.batchedUpdates(s, o, t, n, r); var i = o._instance.rootID; return L[i] = o, o }, renderSubtreeIntoContainer: function (e, t, n, r) { return null != e && E.has(e) || f(\"38\"), j._renderSubtreeIntoContainer(e, t, n, r) }, _renderSubtreeIntoContainer: function (e, t, n, r) { T.validateCallback(r, \"ReactDOM.render\"), v.isValidElement(t) || f(\"39\", \"string\" == typeof t ? \" Instead of passing a string like 'div', pass React.createElement('div') or
      .\" : \"function\" == typeof t ? \" Instead of passing a class like Foo, pass React.createElement(Foo) or .\" : null != t && void 0 !== t.props ? \" This may be caused by unintentionally loading two independent copies of React.\" : \"\"); var a, s = v.createElement(F, { child: t }); if (e) { var u = E.get(e); a = u._processChildContext(u._context) } else a = P; var c = d(n); if (c) { var p = c._currentElement, h = p.props.child; if (M(h, t)) { var m = c._renderedComponent.getPublicInstance(), g = r && function () { r.call(m) }; return j._updateRootComponent(c, s, a, n, g), m } j.unmountComponentAtNode(n) } var y = o(n), _ = y && !!i(y), C = l(n), b = _ && !c && !C, x = j._renderNewRootComponent(s, n, b, a)._renderedComponent.getPublicInstance(); return r && r.call(x), x }, render: function (e, t, n) { return j._renderSubtreeIntoContainer(null, e, t, n) }, unmountComponentAtNode: function (e) { c(e) || f(\"40\"); var t = d(e); return t ? (delete L[t._instance.rootID], k.batchedUpdates(u, t, e, !1), !0) : (l(e), 1 === e.nodeType && e.hasAttribute(O), !1) }, _mountImageIntoNode: function (e, t, n, i, a) { if (c(t) || f(\"41\"), i) { var s = o(t); if (x.canReuseMarkup(e, s)) return void y.precacheNode(n, s); var u = s.getAttribute(x.CHECKSUM_ATTR_NAME); s.removeAttribute(x.CHECKSUM_ATTR_NAME); var l = s.outerHTML; s.setAttribute(x.CHECKSUM_ATTR_NAME, u); var p = e, d = r(p, l), m = \" (client) \" + p.substring(d - 20, d + 20) + \"\\n (server) \" + l.substring(d - 20, d + 20); t.nodeType === A && f(\"42\", m) } if (t.nodeType === A && f(\"43\"), a.useCreateElement) { for (; t.lastChild;)t.removeChild(t.lastChild); h.insertTreeBefore(t, e, null) } else N(t, e), y.precacheNode(n, t.firstChild) } }; t.exports = j }, { 108: 108, 11: 11, 112: 112, 114: 114, 116: 116, 119: 119, 120: 120, 130: 130, 137: 137, 142: 142, 25: 25, 33: 33, 34: 34, 36: 36, 53: 53, 57: 57, 58: 58, 59: 59, 66: 66, 70: 70, 71: 71, 9: 9 }], 61: [function (e, t, n) { \"use strict\"; function r(e, t, n) { return { type: \"INSERT_MARKUP\", content: e, fromIndex: null, fromNode: null, toIndex: n, afterNode: t } } function o(e, t, n) { return { type: \"MOVE_EXISTING\", content: null, fromIndex: e._mountIndex, fromNode: d.getHostNode(e), toIndex: n, afterNode: t } } function i(e, t) { return { type: \"REMOVE_NODE\", content: null, fromIndex: e._mountIndex, fromNode: t, toIndex: null, afterNode: null } } function a(e) { return { type: \"SET_MARKUP\", content: e, fromIndex: null, fromNode: null, toIndex: null, afterNode: null } } function s(e) { return { type: \"TEXT_CONTENT\", content: e, fromIndex: null, fromNode: null, toIndex: null, afterNode: null } } function u(e, t) { return t && (e = e || [], e.push(t)), e } function l(e, t) { p.processChildrenUpdates(e, t) } var c = e(112), p = e(28), d = (e(57), e(58), e(119), e(66)), f = e(26), h = (e(129), e(97)), m = (e(137), { Mixin: { _reconcilerInstantiateChildren: function (e, t, n) { return f.instantiateChildren(e, t, n) }, _reconcilerUpdateChildren: function (e, t, n, r, o, i) { var a; return a = h(t, 0), f.updateChildren(e, a, n, r, o, this, this._hostContainerInfo, i, 0), a }, mountChildren: function (e, t, n) { var r = this._reconcilerInstantiateChildren(e, t, n); this._renderedChildren = r; var o = [], i = 0; for (var a in r) if (r.hasOwnProperty(a)) { var s = r[a], u = d.mountComponent(s, t, this, this._hostContainerInfo, n, 0); s._mountIndex = i++ , o.push(u) } return o }, updateTextContent: function (e) { var t = this._renderedChildren; f.unmountChildren(t, !1); for (var n in t) t.hasOwnProperty(n) && c(\"118\"); l(this, [s(e)]) }, updateMarkup: function (e) { var t = this._renderedChildren; f.unmountChildren(t, !1); for (var n in t) t.hasOwnProperty(n) && c(\"118\"); l(this, [a(e)]) }, updateChildren: function (e, t, n) { this._updateChildren(e, t, n) }, _updateChildren: function (e, t, n) { var r = this._renderedChildren, o = {}, i = [], a = this._reconcilerUpdateChildren(r, e, i, o, t, n); if (a || r) { var s, c = null, p = 0, f = 0, h = 0, m = null; for (s in a) if (a.hasOwnProperty(s)) { var v = r && r[s], g = a[s]; v === g ? (c = u(c, this.moveChild(v, m, p, f)), f = Math.max(v._mountIndex, f), v._mountIndex = p) : (v && (f = Math.max(v._mountIndex, f)), c = u(c, this._mountChildAtIndex(g, i[h], m, p, t, n)), h++), p++ , m = d.getHostNode(g) } for (s in o) o.hasOwnProperty(s) && (c = u(c, this._unmountChild(r[s], o[s]))); c && l(this, c), this._renderedChildren = a } }, unmountChildren: function (e) { var t = this._renderedChildren; f.unmountChildren(t, e), this._renderedChildren = null }, moveChild: function (e, t, n, r) { if (e._mountIndex < r) return o(e, t, n) }, createChild: function (e, t, n) { return r(n, t, e._mountIndex) }, removeChild: function (e, t) { return i(e, t) }, _mountChildAtIndex: function (e, t, n, r, o, i) { return e._mountIndex = r, this.createChild(e, n, t) }, _unmountChild: function (e, t) { var n = this.removeChild(e, t); return e._mountIndex = null, n } } }); t.exports = m }, { 112: 112, 119: 119, 129: 129, 137: 137, 26: 26, 28: 28, 57: 57, 58: 58, 66: 66, 97: 97 }], 62: [function (e, t, n) { \"use strict\"; var r = e(112), o = e(120), i = (e(137), { HOST: 0, COMPOSITE: 1, EMPTY: 2, getType: function (e) { return null === e || !1 === e ? i.EMPTY : o.isValidElement(e) ? \"function\" == typeof e.type ? i.COMPOSITE : i.HOST : void r(\"26\", e) } }); t.exports = i }, { 112: 112, 120: 120, 137: 137 }], 63: [function (e, t, n) { \"use strict\"; function r(e) { return !(!e || \"function\" != typeof e.attachRef || \"function\" != typeof e.detachRef) } var o = e(112), i = (e(137), { addComponentAsRefTo: function (e, t, n) { r(n) || o(\"119\"), n.attachRef(t, e) }, removeComponentAsRefFrom: function (e, t, n) { r(n) || o(\"120\"); var i = n.getPublicInstance(); i && i.refs[t] === e.getPublicInstance() && n.detachRef(t) } }); t.exports = i }, { 112: 112, 137: 137 }], 64: [function (e, t, n) { \"use strict\"; t.exports = \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\" }, {}], 65: [function (e, t, n) { \"use strict\"; function r(e) { this.reinitializeTransaction(), this.renderToStaticMarkup = !1, this.reactMountReady = i.getPooled(null), this.useCreateElement = e } var o = e(143), i = e(6), a = e(24), s = e(25), u = e(56), l = (e(58), e(89)), c = e(70), p = { initialize: u.getSelectionInformation, close: u.restoreSelection }, d = { initialize: function () { var e = s.isEnabled(); return s.setEnabled(!1), e }, close: function (e) { s.setEnabled(e) } }, f = { initialize: function () { this.reactMountReady.reset() }, close: function () { this.reactMountReady.notifyAll() } }, h = [p, d, f], m = { getTransactionWrappers: function () { return h }, getReactMountReady: function () { return this.reactMountReady }, getUpdateQueue: function () { return c }, checkpoint: function () { return this.reactMountReady.checkpoint() }, rollback: function (e) { this.reactMountReady.rollback(e) }, destructor: function () { i.release(this.reactMountReady), this.reactMountReady = null } }; o(r.prototype, l, m), a.addPoolingTo(r), t.exports = r }, { 143: 143, 24: 24, 25: 25, 56: 56, 58: 58, 6: 6, 70: 70, 89: 89 }], 66: [function (e, t, n) { \"use strict\"; function r() { o.attachRefs(this, this._currentElement) } var o = e(67), i = (e(58), e(142), { mountComponent: function (e, t, n, o, i, a) { var s = e.mountComponent(t, n, o, i, a); return e._currentElement && null != e._currentElement.ref && t.getReactMountReady().enqueue(r, e), s }, getHostNode: function (e) { return e.getHostNode() }, unmountComponent: function (e, t) { o.detachRefs(e, e._currentElement), e.unmountComponent(t) }, receiveComponent: function (e, t, n, i) { var a = e._currentElement; if (t !== a || i !== e._context) { var s = o.shouldUpdateRefs(a, t); s && o.detachRefs(e, a), e.receiveComponent(t, n, i), s && e._currentElement && null != e._currentElement.ref && n.getReactMountReady().enqueue(r, e) } }, performUpdateIfNecessary: function (e, t, n) { e._updateBatchNumber === n && e.performUpdateIfNecessary(t) } }); t.exports = i }, { 142: 142, 58: 58, 67: 67 }], 67: [function (e, t, n) { \"use strict\"; function r(e, t, n) { \"function\" == typeof e ? e(t.getPublicInstance()) : i.addComponentAsRefTo(t, e, n) } function o(e, t, n) { \"function\" == typeof e ? e(null) : i.removeComponentAsRefFrom(t, e, n) } var i = e(63), a = {}; a.attachRefs = function (e, t) { if (null !== t && \"object\" == typeof t) { var n = t.ref; null != n && r(n, e, t._owner) } }, a.shouldUpdateRefs = function (e, t) { var n = null, r = null; null !== e && \"object\" == typeof e && (n = e.ref, r = e._owner); var o = null, i = null; return null !== t && \"object\" == typeof t && (o = t.ref, i = t._owner), n !== o || \"string\" == typeof o && i !== r }, a.detachRefs = function (e, t) { if (null !== t && \"object\" == typeof t) { var n = t.ref; null != n && o(n, e, t._owner) } }, t.exports = a }, { 63: 63 }], 68: [function (e, t, n) { \"use strict\"; function r(e) { this.reinitializeTransaction(), this.renderToStaticMarkup = e, this.useCreateElement = !1, this.updateQueue = new s(this) } var o = e(143), i = e(24), a = e(89), s = (e(58), e(69)), u = [], l = { enqueue: function () { } }, c = { getTransactionWrappers: function () { return u }, getReactMountReady: function () { return l }, getUpdateQueue: function () { return this.updateQueue }, destructor: function () { }, checkpoint: function () { }, rollback: function () { } }; o(r.prototype, a, c), i.addPoolingTo(r), t.exports = r }, { 143: 143, 24: 24, 58: 58, 69: 69, 89: 89 }], 69: [function (e, t, n) { \"use strict\"; function r(e, t) { if (!(e instanceof t)) throw new TypeError(\"Cannot call a class as a function\") } var o = e(70), i = (e(142), function () { function e(t) { r(this, e), this.transaction = t } return e.prototype.isMounted = function (e) { return !1 }, e.prototype.enqueueCallback = function (e, t, n) { this.transaction.isInTransaction() && o.enqueueCallback(e, t, n) }, e.prototype.enqueueForceUpdate = function (e) { this.transaction.isInTransaction() && o.enqueueForceUpdate(e) }, e.prototype.enqueueReplaceState = function (e, t) { this.transaction.isInTransaction() && o.enqueueReplaceState(e, t) }, e.prototype.enqueueSetState = function (e, t) { this.transaction.isInTransaction() && o.enqueueSetState(e, t) }, e }()); t.exports = i }, { 142: 142, 70: 70 }], 70: [function (e, t, n) { \"use strict\"; function r(e) { u.enqueueUpdate(e) } function o(e) { var t = typeof e; if (\"object\" !== t) return t; var n = e.constructor && e.constructor.name || t, r = Object.keys(e); return r.length > 0 && r.length < 20 ? n + \" (keys: \" + r.join(\", \") + \")\" : n } function i(e, t) { var n = s.get(e); return n || null } var a = e(112), s = (e(119), e(57)), u = (e(58), e(71)), l = (e(137), e(142), { isMounted: function (e) { var t = s.get(e); return !!t && !!t._renderedComponent }, enqueueCallback: function (e, t, n) { l.validateCallback(t, n); var o = i(e); if (!o) return null; o._pendingCallbacks ? o._pendingCallbacks.push(t) : o._pendingCallbacks = [t], r(o) }, enqueueCallbackInternal: function (e, t) { e._pendingCallbacks ? e._pendingCallbacks.push(t) : e._pendingCallbacks = [t], r(e) }, enqueueForceUpdate: function (e) { var t = i(e, \"forceUpdate\"); t && (t._pendingForceUpdate = !0, r(t)) }, enqueueReplaceState: function (e, t, n) { var o = i(e, \"replaceState\"); o && (o._pendingStateQueue = [t], o._pendingReplaceState = !0, void 0 !== n && null !== n && (l.validateCallback(n, \"replaceState\"), o._pendingCallbacks ? o._pendingCallbacks.push(n) : o._pendingCallbacks = [n]), r(o)) }, enqueueSetState: function (e, t) { var n = i(e, \"setState\"); n && ((n._pendingStateQueue || (n._pendingStateQueue = [])).push(t), r(n)) }, enqueueElementInternal: function (e, t, n) { e._pendingElement = t, e._context = n, r(e) }, validateCallback: function (e, t) { e && \"function\" != typeof e && a(\"122\", t, o(e)) } }); t.exports = l }, { 112: 112, 119: 119, 137: 137, 142: 142, 57: 57, 58: 58, 71: 71 }], 71: [function (e, t, n) { \"use strict\"; function r() { P.ReactReconcileTransaction && b || c(\"123\") } function o() { this.reinitializeTransaction(), this.dirtyComponentsLength = null, this.callbackQueue = d.getPooled(), this.reconcileTransaction = P.ReactReconcileTransaction.getPooled(!0) } function i(e, t, n, o, i, a) { return r(), b.batchedUpdates(e, t, n, o, i, a) } function a(e, t) { return e._mountOrder - t._mountOrder } function s(e) { var t = e.dirtyComponentsLength; t !== g.length && c(\"124\", t, g.length), g.sort(a), y++; for (var n = 0; n < t; n++) { var r = g[n], o = r._pendingCallbacks; r._pendingCallbacks = null; var i; if (h.logTopLevelRenders) { var s = r; r._currentElement.type.isReactTopLevelWrapper && (s = r._renderedComponent), i = \"React update: \" + s.getName(), console.time(i) } if (m.performUpdateIfNecessary(r, e.reconcileTransaction, y), i && console.timeEnd(i), o) for (var u = 0; u < o.length; u++)e.callbackQueue.enqueue(o[u], r.getPublicInstance()) } } function u(e) { if (r(), !b.isBatchingUpdates) return void b.batchedUpdates(u, e); g.push(e), null == e._updateBatchNumber && (e._updateBatchNumber = y + 1) } function l(e, t) { b.isBatchingUpdates || c(\"125\"), _.enqueue(e, t), C = !0 } var c = e(112), p = e(143), d = e(6), f = e(24), h = e(53), m = e(66), v = e(89), g = (e(137), []), y = 0, _ = d.getPooled(), C = !1, b = null, E = { initialize: function () { this.dirtyComponentsLength = g.length }, close: function () { this.dirtyComponentsLength !== g.length ? (g.splice(0, this.dirtyComponentsLength), T()) : g.length = 0 } }, x = { initialize: function () { this.callbackQueue.reset() }, close: function () { this.callbackQueue.notifyAll() } }, w = [E, x]; p(o.prototype, v, { getTransactionWrappers: function () { return w }, destructor: function () { this.dirtyComponentsLength = null, d.release(this.callbackQueue), this.callbackQueue = null, P.ReactReconcileTransaction.release(this.reconcileTransaction), this.reconcileTransaction = null }, perform: function (e, t, n) { return v.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, e, t, n) } }), f.addPoolingTo(o); var T = function () { for (; g.length || C;) { if (g.length) { var e = o.getPooled(); e.perform(s, null, e), o.release(e) } if (C) { C = !1; var t = _; _ = d.getPooled(), t.notifyAll(), d.release(t) } } }, k = { injectReconcileTransaction: function (e) { e || c(\"126\"), P.ReactReconcileTransaction = e }, injectBatchingStrategy: function (e) { e || c(\"127\"), \"function\" != typeof e.batchedUpdates && c(\"128\"), \"boolean\" != typeof e.isBatchingUpdates && c(\"129\"), b = e } }, P = { ReactReconcileTransaction: null, batchedUpdates: i, enqueueUpdate: u, flushBatchedUpdates: T, injection: k, asap: l }; t.exports = P }, { 112: 112, 137: 137, 143: 143, 24: 24, 53: 53, 6: 6, 66: 66, 89: 89 }], 72: [function (e, t, n) { \"use strict\"; t.exports = \"15.5.4\" }, {}], 73: [function (e, t, n) { \"use strict\"; var r = { xlink: \"http://www.w3.org/1999/xlink\", xml: \"http://www.w3.org/XML/1998/namespace\" }, o = { accentHeight: \"accent-height\", accumulate: 0, additive: 0, alignmentBaseline: \"alignment-baseline\", allowReorder: \"allowReorder\", alphabetic: 0, amplitude: 0, arabicForm: \"arabic-form\", ascent: 0, attributeName: \"attributeName\", attributeType: \"attributeType\", autoReverse: \"autoReverse\", azimuth: 0, baseFrequency: \"baseFrequency\", baseProfile: \"baseProfile\", baselineShift: \"baseline-shift\", bbox: 0, begin: 0, bias: 0, by: 0, calcMode: \"calcMode\", capHeight: \"cap-height\", clip: 0, clipPath: \"clip-path\", clipRule: \"clip-rule\", clipPathUnits: \"clipPathUnits\", colorInterpolation: \"color-interpolation\", colorInterpolationFilters: \"color-interpolation-filters\", colorProfile: \"color-profile\", colorRendering: \"color-rendering\", contentScriptType: \"contentScriptType\", contentStyleType: \"contentStyleType\", cursor: 0, cx: 0, cy: 0, d: 0, decelerate: 0, descent: 0, diffuseConstant: \"diffuseConstant\", direction: 0, display: 0, divisor: 0, dominantBaseline: \"dominant-baseline\", dur: 0, dx: 0, dy: 0, edgeMode: \"edgeMode\", elevation: 0, enableBackground: \"enable-background\", end: 0, exponent: 0, externalResourcesRequired: \"externalResourcesRequired\", fill: 0, fillOpacity: \"fill-opacity\", fillRule: \"fill-rule\", filter: 0, filterRes: \"filterRes\", filterUnits: \"filterUnits\", floodColor: \"flood-color\", floodOpacity: \"flood-opacity\", focusable: 0, fontFamily: \"font-family\", fontSize: \"font-size\", fontSizeAdjust: \"font-size-adjust\", fontStretch: \"font-stretch\", fontStyle: \"font-style\", fontVariant: \"font-variant\", fontWeight: \"font-weight\", format: 0, from: 0, fx: 0, fy: 0, g1: 0, g2: 0, glyphName: \"glyph-name\", glyphOrientationHorizontal: \"glyph-orientation-horizontal\", glyphOrientationVertical: \"glyph-orientation-vertical\", glyphRef: \"glyphRef\", gradientTransform: \"gradientTransform\", gradientUnits: \"gradientUnits\", hanging: 0, horizAdvX: \"horiz-adv-x\", horizOriginX: \"horiz-origin-x\", ideographic: 0, imageRendering: \"image-rendering\", in: 0, in2: 0, intercept: 0, k: 0, k1: 0, k2: 0, k3: 0, k4: 0, kernelMatrix: \"kernelMatrix\", kernelUnitLength: \"kernelUnitLength\", kerning: 0, keyPoints: \"keyPoints\", keySplines: \"keySplines\", keyTimes: \"keyTimes\", lengthAdjust: \"lengthAdjust\", letterSpacing: \"letter-spacing\", lightingColor: \"lighting-color\", limitingConeAngle: \"limitingConeAngle\", local: 0, markerEnd: \"marker-end\", markerMid: \"marker-mid\", markerStart: \"marker-start\", markerHeight: \"markerHeight\", markerUnits: \"markerUnits\", markerWidth: \"markerWidth\", mask: 0, maskContentUnits: \"maskContentUnits\", maskUnits: \"maskUnits\", mathematical: 0, mode: 0, numOctaves: \"numOctaves\", offset: 0, opacity: 0, operator: 0, order: 0, orient: 0, orientation: 0, origin: 0, overflow: 0, overlinePosition: \"overline-position\", overlineThickness: \"overline-thickness\", paintOrder: \"paint-order\", panose1: \"panose-1\", pathLength: \"pathLength\", patternContentUnits: \"patternContentUnits\", patternTransform: \"patternTransform\", patternUnits: \"patternUnits\", pointerEvents: \"pointer-events\", points: 0, pointsAtX: \"pointsAtX\", pointsAtY: \"pointsAtY\", pointsAtZ: \"pointsAtZ\", preserveAlpha: \"preserveAlpha\", preserveAspectRatio: \"preserveAspectRatio\", primitiveUnits: \"primitiveUnits\", r: 0, radius: 0, refX: \"refX\", refY: \"refY\", renderingIntent: \"rendering-intent\", repeatCount: \"repeatCount\", repeatDur: \"repeatDur\", requiredExtensions: \"requiredExtensions\", requiredFeatures: \"requiredFeatures\", restart: 0, result: 0, rotate: 0, rx: 0, ry: 0, scale: 0, seed: 0, shapeRendering: \"shape-rendering\", slope: 0, spacing: 0, specularConstant: \"specularConstant\", specularExponent: \"specularExponent\", speed: 0, spreadMethod: \"spreadMethod\", startOffset: \"startOffset\", stdDeviation: \"stdDeviation\", stemh: 0, stemv: 0, stitchTiles: \"stitchTiles\", stopColor: \"stop-color\", stopOpacity: \"stop-opacity\", strikethroughPosition: \"strikethrough-position\", strikethroughThickness: \"strikethrough-thickness\", string: 0, stroke: 0, strokeDasharray: \"stroke-dasharray\", strokeDashoffset: \"stroke-dashoffset\", strokeLinecap: \"stroke-linecap\", strokeLinejoin: \"stroke-linejoin\", strokeMiterlimit: \"stroke-miterlimit\", strokeOpacity: \"stroke-opacity\", strokeWidth: \"stroke-width\", surfaceScale: \"surfaceScale\", systemLanguage: \"systemLanguage\", tableValues: \"tableValues\", targetX: \"targetX\", targetY: \"targetY\", textAnchor: \"text-anchor\", textDecoration: \"text-decoration\", textRendering: \"text-rendering\", textLength: \"textLength\", to: 0, transform: 0, u1: 0, u2: 0, underlinePosition: \"underline-position\", underlineThickness: \"underline-thickness\", unicode: 0, unicodeBidi: \"unicode-bidi\", unicodeRange: \"unicode-range\", unitsPerEm: \"units-per-em\", vAlphabetic: \"v-alphabetic\", vHanging: \"v-hanging\", vIdeographic: \"v-ideographic\", vMathematical: \"v-mathematical\", values: 0, vectorEffect: \"vector-effect\", version: 0, vertAdvY: \"vert-adv-y\", vertOriginX: \"vert-origin-x\", vertOriginY: \"vert-origin-y\", viewBox: \"viewBox\", viewTarget: \"viewTarget\", visibility: 0, widths: 0, wordSpacing: \"word-spacing\", writingMode: \"writing-mode\", x: 0, xHeight: \"x-height\", x1: 0, x2: 0, xChannelSelector: \"xChannelSelector\", xlinkActuate: \"xlink:actuate\", xlinkArcrole: \"xlink:arcrole\", xlinkHref: \"xlink:href\", xlinkRole: \"xlink:role\", xlinkShow: \"xlink:show\", xlinkTitle: \"xlink:title\", xlinkType: \"xlink:type\", xmlBase: \"xml:base\", xmlns: 0, xmlnsXlink: \"xmlns:xlink\", xmlLang: \"xml:lang\", xmlSpace: \"xml:space\", y: 0, y1: 0, y2: 0, yChannelSelector: \"yChannelSelector\", z: 0, zoomAndPan: \"zoomAndPan\" }, i = { Properties: {}, DOMAttributeNamespaces: { xlinkActuate: r.xlink, xlinkArcrole: r.xlink, xlinkHref: r.xlink, xlinkRole: r.xlink, xlinkShow: r.xlink, xlinkTitle: r.xlink, xlinkType: r.xlink, xmlBase: r.xml, xmlLang: r.xml, xmlSpace: r.xml }, DOMAttributeNames: {} }; Object.keys(o).forEach(function (e) { i.Properties[e] = 0, o[e] && (i.DOMAttributeNames[e] = o[e]) }), t.exports = i }, {}], 74: [function (e, t, n) {\r\n \"use strict\"; function r(e) { if (\"selectionStart\" in e && u.hasSelectionCapabilities(e)) return { start: e.selectionStart, end: e.selectionEnd }; if (window.getSelection) { var t = window.getSelection(); return { anchorNode: t.anchorNode, anchorOffset: t.anchorOffset, focusNode: t.focusNode, focusOffset: t.focusOffset } } if (document.selection) { var n = document.selection.createRange(); return { parentElement: n.parentElement(), text: n.text, top: n.boundingTop, left: n.boundingLeft } } } function o(e, t) { if (y || null == m || m !== c()) return null; var n = r(m); if (!g || !d(g, n)) { g = n; var o = l.getPooled(h.select, v, e, t); return o.type = \"select\", o.target = m, i.accumulateTwoPhaseDispatches(o), o } return null } var i = e(19), a = e(123), s = e(33), u = e(56), l = e(80), c = e(132), p = e(110), d = e(141), f = a.canUseDOM && \"documentMode\" in document && document.documentMode <= 11, h = { select: { phasedRegistrationNames: { bubbled: \"onSelect\", captured: \"onSelectCapture\" }, dependencies: [\"topBlur\", \"topContextMenu\", \"topFocus\", \"topKeyDown\", \"topKeyUp\", \"topMouseDown\", \"topMouseUp\", \"topSelectionChange\"] } }, m = null, v = null, g = null, y = !1, _ = !1, C = {\r\n eventTypes: h, extractEvents: function (e, t, n, r) {\r\n if (!_) return null; var i = t ? s.getNodeFromInstance(t) : window; switch (e) {\r\n case \"topFocus\": (p(i) || \"true\" === i.contentEditable) && (m = i, v = t, g = null); break\r\n ; case \"topBlur\": m = null, v = null, g = null; break; case \"topMouseDown\": y = !0; break; case \"topContextMenu\": case \"topMouseUp\": return y = !1, o(n, r); case \"topSelectionChange\": if (f) break; case \"topKeyDown\": case \"topKeyUp\": return o(n, r)\r\n }return null\r\n }, didPutListener: function (e, t, n) { \"onSelect\" === t && (_ = !0) }\r\n }; t.exports = C\r\n }, { 110: 110, 123: 123, 132: 132, 141: 141, 19: 19, 33: 33, 56: 56, 80: 80 }], 75: [function (e, t, n) { \"use strict\"; function r(e) { return \".\" + e._rootNodeID } function o(e) { return \"button\" === e || \"input\" === e || \"select\" === e || \"textarea\" === e } var i = e(112), a = e(122), s = e(19), u = e(33), l = e(76), c = e(77), p = e(80), d = e(81), f = e(83), h = e(84), m = e(79), v = e(85), g = e(86), y = e(87), _ = e(88), C = e(129), b = e(99), E = (e(137), {}), x = {};[\"abort\", \"animationEnd\", \"animationIteration\", \"animationStart\", \"blur\", \"canPlay\", \"canPlayThrough\", \"click\", \"contextMenu\", \"copy\", \"cut\", \"doubleClick\", \"drag\", \"dragEnd\", \"dragEnter\", \"dragExit\", \"dragLeave\", \"dragOver\", \"dragStart\", \"drop\", \"durationChange\", \"emptied\", \"encrypted\", \"ended\", \"error\", \"focus\", \"input\", \"invalid\", \"keyDown\", \"keyPress\", \"keyUp\", \"load\", \"loadedData\", \"loadedMetadata\", \"loadStart\", \"mouseDown\", \"mouseMove\", \"mouseOut\", \"mouseOver\", \"mouseUp\", \"paste\", \"pause\", \"play\", \"playing\", \"progress\", \"rateChange\", \"reset\", \"scroll\", \"seeked\", \"seeking\", \"stalled\", \"submit\", \"suspend\", \"timeUpdate\", \"touchCancel\", \"touchEnd\", \"touchMove\", \"touchStart\", \"transitionEnd\", \"volumeChange\", \"waiting\", \"wheel\"].forEach(function (e) { var t = e[0].toUpperCase() + e.slice(1), n = \"on\" + t, r = \"top\" + t, o = { phasedRegistrationNames: { bubbled: n, captured: n + \"Capture\" }, dependencies: [r] }; E[e] = o, x[r] = o }); var w = {}, T = { eventTypes: E, extractEvents: function (e, t, n, r) { var o = x[e]; if (!o) return null; var a; switch (e) { case \"topAbort\": case \"topCanPlay\": case \"topCanPlayThrough\": case \"topDurationChange\": case \"topEmptied\": case \"topEncrypted\": case \"topEnded\": case \"topError\": case \"topInput\": case \"topInvalid\": case \"topLoad\": case \"topLoadedData\": case \"topLoadedMetadata\": case \"topLoadStart\": case \"topPause\": case \"topPlay\": case \"topPlaying\": case \"topProgress\": case \"topRateChange\": case \"topReset\": case \"topSeeked\": case \"topSeeking\": case \"topStalled\": case \"topSubmit\": case \"topSuspend\": case \"topTimeUpdate\": case \"topVolumeChange\": case \"topWaiting\": a = p; break; case \"topKeyPress\": if (0 === b(n)) return null; case \"topKeyDown\": case \"topKeyUp\": a = f; break; case \"topBlur\": case \"topFocus\": a = d; break; case \"topClick\": if (2 === n.button) return null; case \"topDoubleClick\": case \"topMouseDown\": case \"topMouseMove\": case \"topMouseUp\": case \"topMouseOut\": case \"topMouseOver\": case \"topContextMenu\": a = h; break; case \"topDrag\": case \"topDragEnd\": case \"topDragEnter\": case \"topDragExit\": case \"topDragLeave\": case \"topDragOver\": case \"topDragStart\": case \"topDrop\": a = m; break; case \"topTouchCancel\": case \"topTouchEnd\": case \"topTouchMove\": case \"topTouchStart\": a = v; break; case \"topAnimationEnd\": case \"topAnimationIteration\": case \"topAnimationStart\": a = l; break; case \"topTransitionEnd\": a = g; break; case \"topScroll\": a = y; break; case \"topWheel\": a = _; break; case \"topCopy\": case \"topCut\": case \"topPaste\": a = c }a || i(\"86\", e); var u = a.getPooled(o, t, n, r); return s.accumulateTwoPhaseDispatches(u), u }, didPutListener: function (e, t, n) { if (\"onClick\" === t && !o(e._tag)) { var i = r(e), s = u.getNodeFromInstance(e); w[i] || (w[i] = a.listen(s, \"click\", C)) } }, willDeleteListener: function (e, t) { if (\"onClick\" === t && !o(e._tag)) { var n = r(e); w[n].remove(), delete w[n] } } }; t.exports = T }, { 112: 112, 122: 122, 129: 129, 137: 137, 19: 19, 33: 33, 76: 76, 77: 77, 79: 79, 80: 80, 81: 81, 83: 83, 84: 84, 85: 85, 86: 86, 87: 87, 88: 88, 99: 99 }], 76: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(80), i = { animationName: null, elapsedTime: null, pseudoElement: null }; o.augmentClass(r, i), t.exports = r }, { 80: 80 }], 77: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(80), i = { clipboardData: function (e) { return \"clipboardData\" in e ? e.clipboardData : window.clipboardData } }; o.augmentClass(r, i), t.exports = r }, { 80: 80 }], 78: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(80), i = { data: null }; o.augmentClass(r, i), t.exports = r }, { 80: 80 }], 79: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(84), i = { dataTransfer: null }; o.augmentClass(r, i), t.exports = r }, { 84: 84 }], 80: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { this.dispatchConfig = e, this._targetInst = t, this.nativeEvent = n; var o = this.constructor.Interface; for (var i in o) if (o.hasOwnProperty(i)) { var s = o[i]; s ? this[i] = s(n) : \"target\" === i ? this.target = r : this[i] = n[i] } var u = null != n.defaultPrevented ? n.defaultPrevented : !1 === n.returnValue; return this.isDefaultPrevented = u ? a.thatReturnsTrue : a.thatReturnsFalse, this.isPropagationStopped = a.thatReturnsFalse, this } var o = e(143), i = e(24), a = e(129), s = (e(142), [\"dispatchConfig\", \"_targetInst\", \"nativeEvent\", \"isDefaultPrevented\", \"isPropagationStopped\", \"_dispatchListeners\", \"_dispatchInstances\"]), u = { type: null, target: null, currentTarget: a.thatReturnsNull, eventPhase: null, bubbles: null, cancelable: null, timeStamp: function (e) { return e.timeStamp || Date.now() }, defaultPrevented: null, isTrusted: null }; o(r.prototype, { preventDefault: function () { this.defaultPrevented = !0; var e = this.nativeEvent; e && (e.preventDefault ? e.preventDefault() : \"unknown\" != typeof e.returnValue && (e.returnValue = !1), this.isDefaultPrevented = a.thatReturnsTrue) }, stopPropagation: function () { var e = this.nativeEvent; e && (e.stopPropagation ? e.stopPropagation() : \"unknown\" != typeof e.cancelBubble && (e.cancelBubble = !0), this.isPropagationStopped = a.thatReturnsTrue) }, persist: function () { this.isPersistent = a.thatReturnsTrue }, isPersistent: a.thatReturnsFalse, destructor: function () { var e = this.constructor.Interface; for (var t in e) this[t] = null; for (var n = 0; n < s.length; n++)this[s[n]] = null } }), r.Interface = u, r.augmentClass = function (e, t) { var n = this, r = function () { }; r.prototype = n.prototype; var a = new r; o(a, e.prototype), e.prototype = a, e.prototype.constructor = e, e.Interface = o({}, n.Interface, t), e.augmentClass = n.augmentClass, i.addPoolingTo(e, i.fourArgumentPooler) }, i.addPoolingTo(r, i.fourArgumentPooler), t.exports = r }, { 129: 129, 142: 142, 143: 143, 24: 24 }], 81: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(87), i = { relatedTarget: null }; o.augmentClass(r, i), t.exports = r }, { 87: 87 }], 82: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(80), i = { data: null }; o.augmentClass(r, i), t.exports = r }, { 80: 80 }], 83: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(87), i = e(99), a = e(100), s = e(101), u = { key: a, location: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, repeat: null, locale: null, getModifierState: s, charCode: function (e) { return \"keypress\" === e.type ? i(e) : 0 }, keyCode: function (e) { return \"keydown\" === e.type || \"keyup\" === e.type ? e.keyCode : 0 }, which: function (e) { return \"keypress\" === e.type ? i(e) : \"keydown\" === e.type || \"keyup\" === e.type ? e.keyCode : 0 } }; o.augmentClass(r, u), t.exports = r }, { 100: 100, 101: 101, 87: 87, 99: 99 }], 84: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(87), i = e(90), a = e(101), s = { screenX: null, screenY: null, clientX: null, clientY: null, ctrlKey: null, shiftKey: null, altKey: null, metaKey: null, getModifierState: a, button: function (e) { var t = e.button; return \"which\" in e ? t : 2 === t ? 2 : 4 === t ? 1 : 0 }, buttons: null, relatedTarget: function (e) { return e.relatedTarget || (e.fromElement === e.srcElement ? e.toElement : e.fromElement) }, pageX: function (e) { return \"pageX\" in e ? e.pageX : e.clientX + i.currentScrollLeft }, pageY: function (e) { return \"pageY\" in e ? e.pageY : e.clientY + i.currentScrollTop } }; o.augmentClass(r, s), t.exports = r }, { 101: 101, 87: 87, 90: 90 }], 85: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(87), i = e(101), a = { touches: null, targetTouches: null, changedTouches: null, altKey: null, metaKey: null, ctrlKey: null, shiftKey: null, getModifierState: i }; o.augmentClass(r, a), t.exports = r }, { 101: 101, 87: 87 }], 86: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(80), i = { propertyName: null, elapsedTime: null, pseudoElement: null }; o.augmentClass(r, i), t.exports = r }, { 80: 80 }], 87: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(80), i = e(102), a = { view: function (e) { if (e.view) return e.view; var t = i(e); if (t.window === t) return t; var n = t.ownerDocument; return n ? n.defaultView || n.parentWindow : window }, detail: function (e) { return e.detail || 0 } }; o.augmentClass(r, a), t.exports = r }, { 102: 102, 80: 80 }], 88: [function (e, t, n) { \"use strict\"; function r(e, t, n, r) { return o.call(this, e, t, n, r) } var o = e(84), i = { deltaX: function (e) { return \"deltaX\" in e ? e.deltaX : \"wheelDeltaX\" in e ? -e.wheelDeltaX : 0 }, deltaY: function (e) { return \"deltaY\" in e ? e.deltaY : \"wheelDeltaY\" in e ? -e.wheelDeltaY : \"wheelDelta\" in e ? -e.wheelDelta : 0 }, deltaZ: null, deltaMode: null }; o.augmentClass(r, i), t.exports = r }, { 84: 84 }], 89: [function (e, t, n) { \"use strict\"; var r = e(112), o = (e(137), {}), i = { reinitializeTransaction: function () { this.transactionWrappers = this.getTransactionWrappers(), this.wrapperInitData ? this.wrapperInitData.length = 0 : this.wrapperInitData = [], this._isInTransaction = !1 }, _isInTransaction: !1, getTransactionWrappers: null, isInTransaction: function () { return !!this._isInTransaction }, perform: function (e, t, n, o, i, a, s, u) { this.isInTransaction() && r(\"27\"); var l, c; try { this._isInTransaction = !0, l = !0, this.initializeAll(0), c = e.call(t, n, o, i, a, s, u), l = !1 } finally { try { if (l) try { this.closeAll(0) } catch (e) { } else this.closeAll(0) } finally { this._isInTransaction = !1 } } return c }, initializeAll: function (e) { for (var t = this.transactionWrappers, n = e; n < t.length; n++) { var r = t[n]; try { this.wrapperInitData[n] = o, this.wrapperInitData[n] = r.initialize ? r.initialize.call(this) : null } finally { if (this.wrapperInitData[n] === o) try { this.initializeAll(n + 1) } catch (e) { } } } }, closeAll: function (e) { this.isInTransaction() || r(\"28\"); for (var t = this.transactionWrappers, n = e; n < t.length; n++) { var i, a = t[n], s = this.wrapperInitData[n]; try { i = !0, s !== o && a.close && a.close.call(this, s), i = !1 } finally { if (i) try { this.closeAll(n + 1) } catch (e) { } } } this.wrapperInitData.length = 0 } }; t.exports = i }, { 112: 112, 137: 137 }], 90: [function (e, t, n) { \"use strict\"; var r = { currentScrollLeft: 0, currentScrollTop: 0, refreshScrollValues: function (e) { r.currentScrollLeft = e.x, r.currentScrollTop = e.y } }; t.exports = r }, {}], 91: [function (e, t, n) { \"use strict\"; function r(e, t) { return null == t && o(\"30\"), null == e ? t : Array.isArray(e) ? Array.isArray(t) ? (e.push.apply(e, t), e) : (e.push(t), e) : Array.isArray(t) ? [e].concat(t) : [e, t] } var o = e(112); e(137); t.exports = r }, { 112: 112, 137: 137 }], 92: [function (e, t, n) { \"use strict\"; function r(e) { for (var t = 1, n = 0, r = 0, i = e.length, a = -4 & i; r < a;) { for (var s = Math.min(r + 4096, a); r < s; r += 4)n += (t += e.charCodeAt(r)) + (t += e.charCodeAt(r + 1)) + (t += e.charCodeAt(r + 2)) + (t += e.charCodeAt(r + 3)); t %= o, n %= o } for (; r < i; r++)n += t += e.charCodeAt(r); return t %= o, n %= o, t | n << 16 } var o = 65521; t.exports = r }, {}], 93: [function (e, t, n) { \"use strict\"; var r = function (e) { return \"undefined\" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function (t, n, r, o) { MSApp.execUnsafeLocalFunction(function () { return e(t, n, r, o) }) } : e }; t.exports = r }, {}], 94: [function (e, t, n) { \"use strict\"; function r(e, t, n) { return null == t || \"boolean\" == typeof t || \"\" === t ? \"\" : isNaN(t) || 0 === t || i.hasOwnProperty(e) && i[e] ? \"\" + t : (\"string\" == typeof t && (t = t.trim()), t + \"px\") } var o = e(4), i = (e(142), o.isUnitlessNumber); t.exports = r }, { 142: 142, 4: 4 }], 95: [function (e, t, n) { \"use strict\"; function r(e) { var t = \"\" + e, n = i.exec(t); if (!n) return t; var r, o = \"\", a = 0, s = 0; for (a = n.index; a < t.length; a++) { switch (t.charCodeAt(a)) { case 34: r = \""\"; break; case 38: r = \"&\"; break; case 39: r = \"'\"; break; case 60: r = \"<\"; break; case 62: r = \">\"; break; default: continue }s !== a && (o += t.substring(s, a)), s = a + 1, o += r } return s !== a ? o + t.substring(s, a) : o } function o(e) { return \"boolean\" == typeof e || \"number\" == typeof e ? \"\" + e : r(e) } var i = /[\"'&<>]/; t.exports = o }, {}], 96: [function (e, t, n) { \"use strict\"; function r(e) { if (null == e) return null; if (1 === e.nodeType) return e; var t = a.get(e); if (t) return t = s(t), t ? i.getNodeFromInstance(t) : null; \"function\" == typeof e.render ? o(\"44\") : o(\"45\", Object.keys(e)) } var o = e(112), i = (e(119), e(33)), a = e(57), s = e(103); e(137), e(142); t.exports = r }, { 103: 103, 112: 112, 119: 119, 137: 137, 142: 142, 33: 33, 57: 57 }], 97: [function (e, t, n) { (function (n) { \"use strict\"; function r(e, t, n, r) { if (e && \"object\" == typeof e) { var o = e; void 0 === o[n] && null != t && (o[n] = t) } } function o(e, t) { if (null == e) return e; var n = {}; return i(e, r, n), n } var i = (e(22), e(117)); e(142); void 0 !== n && n.env, t.exports = o }).call(this, void 0) }, { 117: 117, 142: 142, 22: 22 }], 98: [function (e, t, n) { \"use strict\"; function r(e, t, n) { Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e) } t.exports = r }, {}], 99: [function (e, t, n) { \"use strict\"; function r(e) { var t, n = e.keyCode; return \"charCode\" in e ? 0 === (t = e.charCode) && 13 === n && (t = 13) : t = n, t >= 32 || 13 === t ? t : 0 } t.exports = r }, {}], 100: [function (e, t, n) { \"use strict\"; function r(e) { if (e.key) { var t = i[e.key] || e.key; if (\"Unidentified\" !== t) return t } if (\"keypress\" === e.type) { var n = o(e); return 13 === n ? \"Enter\" : String.fromCharCode(n) } return \"keydown\" === e.type || \"keyup\" === e.type ? a[e.keyCode] || \"Unidentified\" : \"\" } var o = e(99), i = { Esc: \"Escape\", Spacebar: \" \", Left: \"ArrowLeft\", Up: \"ArrowUp\", Right: \"ArrowRight\", Down: \"ArrowDown\", Del: \"Delete\", Win: \"OS\", Menu: \"ContextMenu\", Apps: \"ContextMenu\", Scroll: \"ScrollLock\", MozPrintableKey: \"Unidentified\" }, a = { 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\" }; t.exports = r }, { 99: 99 }], 101: [function (e, t, n) { \"use strict\"; function r(e) { var t = this, n = t.nativeEvent; if (n.getModifierState) return n.getModifierState(e); var r = i[e]; return !!r && !!n[r] } function o(e) { return r } var i = { Alt: \"altKey\", Control: \"ctrlKey\", Meta: \"metaKey\", Shift: \"shiftKey\" }; t.exports = o }, {}], 102: [function (e, t, n) { \"use strict\"; function r(e) { var t = e.target || e.srcElement || window; return t.correspondingUseElement && (t = t.correspondingUseElement), 3 === t.nodeType ? t.parentNode : t } t.exports = r }, {}], 103: [function (e, t, n) { \"use strict\"; function r(e) { for (var t; (t = e._renderedNodeType) === o.COMPOSITE;)e = e._renderedComponent; return t === o.HOST ? e._renderedComponent : t === o.EMPTY ? null : void 0 } var o = e(62); t.exports = r }, { 62: 62 }], 104: [function (e, t, n) { \"use strict\"; function r(e) { var t = e && (o && e[o] || e[i]); if (\"function\" == typeof t) return t } var o = \"function\" == typeof Symbol && Symbol.iterator, i = \"@@iterator\"; t.exports = r }, {}], 105: [function (e, t, n) { \"use strict\"; function r(e) { for (; e && e.firstChild;)e = e.firstChild; return e } function o(e) { for (; e;) { if (e.nextSibling) return e.nextSibling; e = e.parentNode } } function i(e, t) { for (var n = r(e), i = 0, a = 0; n;) { if (3 === n.nodeType) { if (a = i + n.textContent.length, i <= t && a >= t) return { node: n, offset: t - i }; i = a } n = r(o(n)) } } t.exports = i }, {}], 106: [function (e, t, n) { \"use strict\"; function r() { return !i && o.canUseDOM && (i = \"textContent\" in document.documentElement ? \"textContent\" : \"innerText\"), i } var o = e(123), i = null; t.exports = r }, { 123: 123 }], 107: [function (e, t, n) { \"use strict\"; function r(e, t) { var n = {}; return n[e.toLowerCase()] = t.toLowerCase(), n[\"Webkit\" + e] = \"webkit\" + t, n[\"Moz\" + e] = \"moz\" + t, n[\"ms\" + e] = \"MS\" + t, n[\"O\" + e] = \"o\" + t.toLowerCase(), n } function o(e) { if (s[e]) return s[e]; if (!a[e]) return e; var t = a[e]; for (var n in t) if (t.hasOwnProperty(n) && n in u) return s[e] = t[n]; return \"\" } var i = e(123), a = { animationend: r(\"Animation\", \"AnimationEnd\"), animationiteration: r(\"Animation\", \"AnimationIteration\"), animationstart: r(\"Animation\", \"AnimationStart\"), transitionend: r(\"Transition\", \"TransitionEnd\") }, s = {}, u = {}; i.canUseDOM && (u = document.createElement(\"div\").style, \"AnimationEvent\" in window || (delete a.animationend.animation, delete a.animationiteration.animation, delete a.animationstart.animation), \"TransitionEvent\" in window || delete a.transitionend.transition), t.exports = o }, { 123: 123 }], 108: [function (e, t, n) { \"use strict\"; function r(e) { if (e) { var t = e.getName(); if (t) return \" Check the render method of `\" + t + \"`.\" } return \"\" } function o(e) { return \"function\" == typeof e && void 0 !== e.prototype && \"function\" == typeof e.prototype.mountComponent && \"function\" == typeof e.prototype.receiveComponent } function i(e, t) { var n; if (null === e || !1 === e) n = l.create(i); else if (\"object\" == typeof e) { var s = e, u = s.type; if (\"function\" != typeof u && \"string\" != typeof u) { var d = \"\"; d += r(s._owner), a(\"130\", null == u ? u : typeof u, d) } \"string\" == typeof s.type ? n = c.createInternalComponent(s) : o(s.type) ? (n = new s.type(s), n.getHostNode || (n.getHostNode = n.getNativeNode)) : n = new p(s) } else \"string\" == typeof e || \"number\" == typeof e ? n = c.createInstanceForText(e) : a(\"131\", typeof e); return n._mountIndex = 0, n._mountImage = null, n } var a = e(112), s = e(143), u = e(29), l = e(49), c = e(54), p = (e(121), e(137), e(142), function (e) { this.construct(e) }); s(p.prototype, u, { _instantiateReactComponent: i }), t.exports = i }, { 112: 112, 121: 121, 137: 137, 142: 142, 143: 143, 29: 29, 49: 49, 54: 54 }], 109: [function (e, t, n) { \"use strict\"; function r(e, t) { if (!i.canUseDOM || t && !(\"addEventListener\" in document)) return !1; var n = \"on\" + e, r = n in document; if (!r) { var a = document.createElement(\"div\"); a.setAttribute(n, \"return;\"), r = \"function\" == typeof a[n] } return !r && o && \"wheel\" === e && (r = document.implementation.hasFeature(\"Events.wheel\", \"3.0\")), r } var o, i = e(123); i.canUseDOM && (o = document.implementation && document.implementation.hasFeature && !0 !== document.implementation.hasFeature(\"\", \"\")), t.exports = r }, { 123: 123 }], 110: [function (e, t, n) { \"use strict\"; function r(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return \"input\" === t ? !!o[e.type] : \"textarea\" === t } var o = { 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 }; t.exports = r }, {}], 111: [function (e, t, n) { \"use strict\"; function r(e) { return '\"' + o(e) + '\"' } var o = e(95); t.exports = r }, { 95: 95 }], 112: [function (e, t, n) { \"use strict\"; function r(e) { for (var t = arguments.length - 1, n = \"Minified React error #\" + e + \"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=\" + e, r = 0; r < t; r++)n += \"&args[]=\" + encodeURIComponent(arguments[r + 1]); n += \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"; var o = new Error(n); throw o.name = \"Invariant Violation\", o.framesToPop = 1, o } t.exports = r }, {}], 113: [function (e, t, n) { \"use strict\"; var r = e(60); t.exports = r.renderSubtreeIntoContainer }, { 60: 60 }], 114: [function (e, t, n) { \"use strict\"; var r, o = e(123), i = e(10), a = /^[ \\r\\n\\t\\f]/, s = /<(!--|link|noscript|meta|script|style)[ \\r\\n\\t\\f\\/>]/, u = e(93), l = u(function (e, t) { if (e.namespaceURI !== i.svg || \"innerHTML\" in e) e.innerHTML = t; else { r = r || document.createElement(\"div\"), r.innerHTML = \"\" + t + \"\"; for (var n = r.firstChild; n.firstChild;)e.appendChild(n.firstChild) } }); if (o.canUseDOM) { var c = document.createElement(\"div\"); c.innerHTML = \" \", \"\" === c.innerHTML && (l = function (e, t) { if (e.parentNode && e.parentNode.replaceChild(e, e), a.test(t) || \"<\" === t[0] && s.test(t)) { e.innerHTML = String.fromCharCode(65279) + t; var n = e.firstChild; 1 === n.data.length ? e.removeChild(n) : n.deleteData(0, 1) } else e.innerHTML = t }), c = null } t.exports = l }, { 10: 10, 123: 123, 93: 93 }], 115: [function (e, t, n) { \"use strict\"; var r = e(123), o = e(95), i = e(114), a = function (e, t) { if (t) { var n = e.firstChild; if (n && n === e.lastChild && 3 === n.nodeType) return void (n.nodeValue = t) } e.textContent = t }; r.canUseDOM && (\"textContent\" in document.documentElement || (a = function (e, t) { if (3 === e.nodeType) return void (e.nodeValue = t); i(e, o(t)) })), t.exports = a }, { 114: 114, 123: 123, 95: 95 }], 116: [function (e, t, n) { \"use strict\"; function r(e, t) { var n = null === e || !1 === e, r = null === t || !1 === t; if (n || r) return n === r; var o = typeof e, i = typeof t; return \"string\" === o || \"number\" === o ? \"string\" === i || \"number\" === i : \"object\" === i && e.type === t.type && e.key === t.key } t.exports = r }, {}], 117: [function (e, t, n) { \"use strict\"; function r(e, t) { return e && \"object\" == typeof e && null != e.key ? l.escape(e.key) : t.toString(36) } function o(e, t, n, i) { var d = typeof e; if (\"undefined\" !== d && \"boolean\" !== d || (e = null), null === e || \"string\" === d || \"number\" === d || \"object\" === d && e.$$typeof === s) return n(i, e, \"\" === t ? c + r(e, 0) : t), 1; var f, h, m = 0, v = \"\" === t ? c : t + p; if (Array.isArray(e)) for (var g = 0; g < e.length; g++)f = e[g], h = v + r(f, g), m += o(f, h, n, i); else { var y = u(e); if (y) { var _, C = y.call(e); if (y !== e.entries) for (var b = 0; !(_ = C.next()).done;)f = _.value, h = v + r(f, b++), m += o(f, h, n, i); else for (; !(_ = C.next()).done;) { var E = _.value; E && (f = E[1], h = v + l.escape(E[0]) + p + r(f, 0), m += o(f, h, n, i)) } } else if (\"object\" === d) { var x = String(e); a(\"31\", \"[object Object]\" === x ? \"object with keys {\" + Object.keys(e).join(\", \") + \"}\" : x, \"\") } } return m } function i(e, t, n) { return null == e ? 0 : o(e, \"\", t, n) } var a = e(112), s = (e(119), e(48)), u = e(104), l = (e(137), e(22)), c = (e(142), \".\"), p = \":\"; t.exports = i }, { 104: 104, 112: 112, 119: 119, 137: 137, 142: 142, 22: 22, 48: 48 }], 118: [function (e, t, n) { \"use strict\"; var r = (e(143), e(129)), o = (e(142), r); t.exports = o }, { 129: 129, 142: 142, 143: 143 }], 119: [function (t, n, r) { \"use strict\"; var o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; n.exports = o.ReactCurrentOwner }, {}], 120: [function (t, n, r) { \"use strict\"; n.exports = e }, {}], 121: [function (t, n, r) { \"use strict\"; var o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; n.exports = o.getNextDebugID }, {}], 122: [function (e, t, n) { \"use strict\"; var r = e(129), o = { listen: function (e, t, n) { return e.addEventListener ? (e.addEventListener(t, n, !1), { remove: function () { e.removeEventListener(t, n, !1) } }) : e.attachEvent ? (e.attachEvent(\"on\" + t, n), { remove: function () { e.detachEvent(\"on\" + t, n) } }) : void 0 }, capture: function (e, t, n) { return e.addEventListener ? (e.addEventListener(t, n, !0), { remove: function () { e.removeEventListener(t, n, !0) } }) : { remove: r } }, registerDefault: function () { } }; t.exports = o }, { 129: 129 }], 123: [function (e, t, n) { \"use strict\"; var r = !(\"undefined\" == typeof window || !window.document || !window.document.createElement), o = { canUseDOM: r, canUseWorkers: \"undefined\" != typeof Worker, canUseEventListeners: r && !(!window.addEventListener && !window.attachEvent), canUseViewport: r && !!window.screen, isInWorker: !r }; t.exports = o }, {}], 124: [function (e, t, n) { \"use strict\"; function r(e) { return e.replace(o, function (e, t) { return t.toUpperCase() }) } var o = /-(.)/g; t.exports = r }, {}], 125: [function (e, t, n) { \"use strict\"; function r(e) { return o(e.replace(i, \"ms-\")) } var o = e(124), i = /^-ms-/; t.exports = r }, { 124: 124 }], 126: [function (e, t, n) { \"use strict\"; function r(e, t) { return !(!e || !t) && (e === t || !o(e) && (o(t) ? r(e, t.parentNode) : \"contains\" in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t)))) } var o = e(139); t.exports = r }, { 139: 139 }], 127: [function (e, t, n) { \"use strict\"; function r(e) { var t = e.length; if ((Array.isArray(e) || \"object\" != typeof e && \"function\" != typeof e) && a(!1), \"number\" != typeof t && a(!1), 0 === t || t - 1 in e || a(!1), \"function\" == typeof e.callee && a(!1), e.hasOwnProperty) try { return Array.prototype.slice.call(e) } catch (e) { } for (var n = Array(t), r = 0; r < t; r++)n[r] = e[r]; return n } function o(e) { return !!e && (\"object\" == typeof e || \"function\" == typeof e) && \"length\" in e && !(\"setInterval\" in e) && \"number\" != typeof e.nodeType && (Array.isArray(e) || \"callee\" in e || \"item\" in e) } function i(e) { return o(e) ? Array.isArray(e) ? e.slice() : r(e) : [e] } var a = e(137); t.exports = i }, { 137: 137 }], 128: [function (e, t, n) { \"use strict\"; function r(e) { var t = e.match(c); return t && t[1].toLowerCase() } function o(e, t) { var n = l; l || u(!1); var o = r(e), i = o && s(o); if (i) { n.innerHTML = i[1] + e + i[2]; for (var c = i[0]; c--;)n = n.lastChild } else n.innerHTML = e; var p = n.getElementsByTagName(\"script\"); p.length && (t || u(!1), a(p).forEach(t)); for (var d = Array.from(n.childNodes); n.lastChild;)n.removeChild(n.lastChild); return d } var i = e(123), a = e(127), s = e(133), u = e(137), l = i.canUseDOM ? document.createElement(\"div\") : null, c = /^\\s*<(\\w+)/; t.exports = o }, { 123: 123, 127: 127, 133: 133, 137: 137 }], 129: [function (e, t, n) { \"use strict\"; function r(e) { return function () { return e } } var o = function () { }; o.thatReturns = r, o.thatReturnsFalse = r(!1), o.thatReturnsTrue = r(!0), o.thatReturnsNull = r(null), o.thatReturnsThis = function () { return this }, o.thatReturnsArgument = function (e) { return e }, t.exports = o }, {}], 130: [function (e, t, n) { \"use strict\"; var r = {}; t.exports = r }, {}], 131: [function (e, t, n) { \"use strict\"; function r(e) { try { e.focus() } catch (e) { } } t.exports = r }, {}], 132: [function (e, t, n) { \"use strict\"; function r(e) { if (void 0 === (e = e || (\"undefined\" != typeof document ? document : void 0))) return null; try { return e.activeElement || e.body } catch (t) { return e.body } } t.exports = r }, {}], 133: [function (e, t, n) { \"use strict\"; function r(e) { return a || i(!1), d.hasOwnProperty(e) || (e = \"*\"), s.hasOwnProperty(e) || (a.innerHTML = \"*\" === e ? \"\" : \"<\" + e + \">\", s[e] = !a.firstChild), s[e] ? d[e] : null } var o = e(123), i = e(137), a = o.canUseDOM ? document.createElement(\"div\") : null, s = {}, u = [1, '\"], l = [1, \"\", \"
      \"], c = [3, \"\", \"
      \"], p = [1, '', \"\"], d = { \"*\": [1, \"?
      \", \"
      \"], area: [1, \"\", \"\"], col: [2, \"\", \"
      \"], legend: [1, \"
      \", \"
      \"], param: [1, \"\", \"\"], tr: [2, \"\", \"
      \"], optgroup: u, option: u, caption: l, colgroup: l, tbody: l, tfoot: l, thead: l, td: c, th: c };[\"circle\", \"clipPath\", \"defs\", \"ellipse\", \"g\", \"image\", \"line\", \"linearGradient\", \"mask\", \"path\", \"pattern\", \"polygon\", \"polyline\", \"radialGradient\", \"rect\", \"stop\", \"text\", \"tspan\"].forEach(function (e) { d[e] = p, s[e] = !0 }), t.exports = r }, { 123: 123, 137: 137 }], 134: [function (e, t, n) { \"use strict\"; function r(e) { return e.Window && e instanceof e.Window ? { x: e.pageXOffset || e.document.documentElement.scrollLeft, y: e.pageYOffset || e.document.documentElement.scrollTop } : { x: e.scrollLeft, y: e.scrollTop } } t.exports = r }, {}], 135: [function (e, t, n) { \"use strict\"; function r(e) { return e.replace(o, \"-$1\").toLowerCase() } var o = /([A-Z])/g; t.exports = r }, {}], 136: [function (e, t, n) { \"use strict\"; function r(e) { return o(e).replace(i, \"-ms-\") } var o = e(135), i = /^ms-/; t.exports = r }, { 135: 135 }], 137: [function (e, t, n) { \"use strict\"; function r(e, t, n, r, i, a, s, u) { if (o(t), !e) { var l; if (void 0 === t) l = new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\"); else { var c = [n, r, i, a, s, u], p = 0; l = new Error(t.replace(/%s/g, function () { return c[p++] })), l.name = \"Invariant Violation\" } throw l.framesToPop = 1, l } } var o = function (e) { }; t.exports = r }, {}], 138: [function (e, t, n) { \"use strict\"; function r(e) { var t = e ? e.ownerDocument || e : document, n = t.defaultView || window; return !(!e || !(\"function\" == typeof n.Node ? e instanceof n.Node : \"object\" == typeof e && \"number\" == typeof e.nodeType && \"string\" == typeof e.nodeName)) } t.exports = r }, {}], 139: [function (e, t, n) { \"use strict\"; function r(e) { return o(e) && 3 == e.nodeType } var o = e(138); t.exports = r }, { 138: 138 }], 140: [function (e, t, n) { \"use strict\"; function r(e) { var t = {}; return function (n) { return t.hasOwnProperty(n) || (t[n] = e.call(this, n)), t[n] } } t.exports = r }, {}], 141: [function (e, t, n) { \"use strict\"; function r(e, t) { return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e !== e && t !== t } function o(e, t) { if (r(e, t)) return !0; if (\"object\" != typeof e || null === e || \"object\" != typeof t || null === t) return !1; var n = Object.keys(e), o = Object.keys(t); if (n.length !== o.length) return !1; for (var a = 0; a < n.length; a++)if (!i.call(t, n[a]) || !r(e[n[a]], t[n[a]])) return !1; return !0 } var i = Object.prototype.hasOwnProperty; t.exports = o }, {}], 142: [function (e, t, n) { \"use strict\"; var r = e(129), o = r; t.exports = o }, { 129: 129 }], 143: [function (e, t, n) { \"use strict\"; function r(e) { if (null === e || void 0 === e) throw new TypeError(\"Object.assign cannot be called with null or undefined\"); return Object(e) } var o = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable; t.exports = function () { try { if (!Object.assign) return !1; var e = new String(\"abc\"); if (e[5] = \"de\", \"5\" === Object.getOwnPropertyNames(e)[0]) return !1; for (var t = {}, n = 0; n < 10; n++)t[\"_\" + String.fromCharCode(n)] = n; if (\"0123456789\" !== Object.getOwnPropertyNames(t).map(function (e) { return t[e] }).join(\"\")) return !1; var r = {}; return \"abcdefghijklmnopqrst\".split(\"\").forEach(function (e) { r[e] = e }), \"abcdefghijklmnopqrst\" === Object.keys(Object.assign({}, r)).join(\"\") } catch (e) { return !1 } }() ? Object.assign : function (e, t) { for (var n, s, u = r(e), l = 1; l < arguments.length; l++) { n = Object(arguments[l]); for (var c in n) i.call(n, c) && (u[c] = n[c]); if (o) { s = o(n); for (var p = 0; p < s.length; p++)a.call(n, s[p]) && (u[s[p]] = n[s[p]]) } } return u } }, {}], 144: [function (e, t, n) { \"use strict\"; function r(e, t, n, r, o) { } t.exports = r }, { 137: 137, 142: 142, 147: 147 }], 145: [function (e, t, n) { \"use strict\"; var r = e(146); t.exports = function (e) { return r(e, !1) } }, { 146: 146 }], 146: [function (e, t, n) {\r\n \"use strict\"; var r = e(129), o = e(137), i = (e(142), e(147)), a = e(144); t.exports = function (e, t) {\r\n function n(e) { var t = e && (E && e[E] || e[x]); if (\"function\" == typeof t) return t } function s(e, t) { return e === t ? 0 !== e || 1 / e == 1 / t : e !== e && t !== t } function u(e) { this.message = e, this.stack = \"\" } function l(e) { function n(n, r, a, s, l, c, p) { if (s = s || w, c = c || a, p !== i) if (t) o(!1, \"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types\"); else; return null == r[a] ? n ? new u(null === r[a] ? \"The \" + l + \" `\" + c + \"` is marked as required in `\" + s + \"`, but its value is `null`.\" : \"The \" + l + \" `\" + c + \"` is marked as required in `\" + s + \"`, but its value is `undefined`.\") : null : e(r, a, s, l, c) } var r = n.bind(null, !1); return r.isRequired = n.bind(null, !0), r } function c(e) { function t(t, n, r, o, i, a) { var s = t[n]; if (_(s) !== e) return new u(\"Invalid \" + o + \" `\" + i + \"` of type `\" + C(s) + \"` supplied to `\" + r + \"`, expected `\" + e + \"`.\"); return null } return l(t) } function p(e) { function t(t, n, r, o, a) { if (\"function\" != typeof e) return new u(\"Property `\" + a + \"` of component `\" + r + \"` has invalid PropType notation inside arrayOf.\"); var s = t[n]; if (!Array.isArray(s)) { return new u(\"Invalid \" + o + \" `\" + a + \"` of type `\" + _(s) + \"` supplied to `\" + r + \"`, expected an array.\") } for (var l = 0; l < s.length; l++) { var c = e(s, l, r, o, a + \"[\" + l + \"]\", i); if (c instanceof Error) return c } return null } return l(t) } function d(e) { function t(t, n, r, o, i) { if (!(t[n] instanceof e)) { var a = e.name || w; return new u(\"Invalid \" + o + \" `\" + i + \"` of type `\" + b(t[n]) + \"` supplied to `\" + r + \"`, expected instance of `\" + a + \"`.\") } return null } return l(t) } function f(e) { function t(t, n, r, o, i) { for (var a = t[n], l = 0; l < e.length; l++)if (s(a, e[l])) return null; return new u(\"Invalid \" + o + \" `\" + i + \"` of value `\" + a + \"` supplied to `\" + r + \"`, expected one of \" + JSON.stringify(e) + \".\") } return Array.isArray(e) ? l(t) : r.thatReturnsNull } function h(e) { function t(t, n, r, o, a) { if (\"function\" != typeof e) return new u(\"Property `\" + a + \"` of component `\" + r + \"` has invalid PropType notation inside objectOf.\"); var s = t[n], l = _(s); if (\"object\" !== l) return new u(\"Invalid \" + o + \" `\" + a + \"` of type `\" + l + \"` supplied to `\" + r + \"`, expected an object.\"); for (var c in s) if (s.hasOwnProperty(c)) { var p = e(s, c, r, o, a + \".\" + c, i); if (p instanceof Error) return p } return null } return l(t) } function m(e) { function t(t, n, r, o, a) { for (var s = 0; s < e.length; s++) { if (null == (0, e[s])(t, n, r, o, a, i)) return null } return new u(\"Invalid \" + o + \" `\" + a + \"` supplied to `\" + r + \"`.\") } return Array.isArray(e) ? l(t) : r.thatReturnsNull } function v(e) { function t(t, n, r, o, a) { var s = t[n], l = _(s); if (\"object\" !== l) return new u(\"Invalid \" + o + \" `\" + a + \"` of type `\" + l + \"` supplied to `\" + r + \"`, expected `object`.\"); for (var c in e) { var p = e[c]; if (p) { var d = p(s, c, r, o, a + \".\" + c, i); if (d) return d } } return null } return l(t) } function g(t) { switch (typeof t) { case \"number\": case \"string\": case \"undefined\": return !0; case \"boolean\": return !t; case \"object\": if (Array.isArray(t)) return t.every(g); if (null === t || e(t)) return !0; var r = n(t); if (!r) return !1; var o, i = r.call(t); if (r !== t.entries) { for (; !(o = i.next()).done;)if (!g(o.value)) return !1 } else for (; !(o = i.next()).done;) { var a = o.value; if (a && !g(a[1])) return !1 } return !0; default: return !1 } } function y(e, t) { return \"symbol\" === e || (\"Symbol\" === t[\"@@toStringTag\"] || \"function\" == typeof Symbol && t instanceof Symbol) } function _(e) { var t = typeof e; return Array.isArray(e) ? \"array\" : e instanceof RegExp ? \"object\" : y(t, e) ? \"symbol\" : t } function C(e) { var t = _(e); if (\"object\" === t) { if (e instanceof Date) return \"date\"; if (e instanceof RegExp) return \"regexp\" } return t } function b(e) { return e.constructor && e.constructor.name ? e.constructor.name : w } var E = \"function\" == typeof Symbol && Symbol.iterator, x = \"@@iterator\", w = \"<>\", T = { array: c(\"array\"), bool: c(\"boolean\"), func: c(\"function\"), number: c(\"number\"), object: c(\"object\"), string: c(\"string\"), symbol: c(\"symbol\"), any: function () { return l(r.thatReturnsNull) }(), arrayOf: p, element: function () { function t(t, n, r, o, i) { var a = t[n]; if (!e(a)) { return new u(\"Invalid \" + o + \" `\" + i + \"` of type `\" + _(a) + \"` supplied to `\" + r + \"`, expected a single ReactElement.\") } return null } return l(t) }(), instanceOf: d, node: function () { function e(e, t, n, r, o) { return g(e[t]) ? null : new u(\"Invalid \" + r + \" `\" + o + \"` supplied to `\" + n + \"`, expected a ReactNode.\") } return l(e) }(), objectOf: h, oneOf: f, oneOfType: m, shape: v }\r\n ; return u.prototype = Error.prototype, T.checkPropTypes = a, T.PropTypes = T, T\r\n }\r\n }, { 129: 129, 137: 137, 142: 142, 144: 144, 147: 147 }], 147: [function (e, t, n) { \"use strict\"; t.exports = \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\" }, {}]\r\n }, {}, [45])(45)\r\n }()\r\n }()\r\n});","/*!\n * Chart.js\n * http://chartjs.org/\n * Version: 2.6.0\n *\n * Copyright 2017 Nick Downie\n * Released under the MIT license\n * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md\n */\n!function(t){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=t();else if(\"function\"==typeof define&&define.amd)define([],t);else{var e;e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this,e.Chart=t()}}(function(){return function t(e,n,i){function a(r,l){if(!n[r]){if(!e[r]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(r,!0);if(o)return o(r,!0);var u=new Error(\"Cannot find module '\"+r+\"'\");throw u.code=\"MODULE_NOT_FOUND\",u}var d=n[r]={exports:{}};e[r][0].call(d.exports,function(t){var n=e[r][1][t];return a(n?n:t)},d,d.exports,t,e,n,i)}return n[r].exports}for(var o=\"function\"==typeof require&&require,r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?\"AAA\":e>=4.5?\"AA\":\"\"},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return e<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues(\"rgb\",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues(\"hsl\",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues(\"hsl\",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues(\"hsl\",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues(\"hsl\",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues(\"hwb\",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues(\"hwb\",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues(\"rgb\",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues(\"alpha\",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues(\"hsl\",e),this},mix:function(t,e){var n=this,i=t,a=void 0===e?.5:e,o=2*a-1,r=n.alpha()-i.alpha(),l=((o*r===-1?o:(o+r)/(1+o*r))+1)/2,s=1-l;return this.rgb(l*n.red()+s*i.red(),l*n.green()+s*i.green(),l*n.blue()+s*i.blue()).alpha(n.alpha()*a+i.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new o,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],e={}.toString.call(t),\"[object Array]\"===e?a[r]=t.slice(0):\"[object Number]\"===e?a[r]=t:console.error(\"unexpected color value:\",t));return n}},o.prototype.spaces={rgb:[\"red\",\"green\",\"blue\"],hsl:[\"hue\",\"saturation\",\"lightness\"],hsv:[\"hue\",\"saturation\",\"value\"],hwb:[\"hue\",\"whiteness\",\"blackness\"],cmyk:[\"cyan\",\"magenta\",\"yellow\",\"black\"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=.4124*e+.3576*n+.1805*i,o=.2126*e+.7152*n+.0722*i,r=.0193*e+.1192*n+.9505*i;return[100*a,100*o,100*r]}function d(t){var e,n,i,a=u(t),o=a[0],r=a[1],l=a[2];return o/=95.047,r/=100,l/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,e=116*r-16,n=500*(o-r),i=200*(r-l),[e,n,i]}function c(t){return B(d(t))}function h(t){var e,n,i,a,o,r=t[0]/360,l=t[1]/100,s=t[2]/100;if(0==l)return o=255*s,[o,o,o];n=s<.5?s*(1+l):s+l-s*l,e=2*s-n,a=[0,0,0];for(var u=0;u<3;u++)i=r+1/3*-(u-1),i<0&&i++,i>1&&i--,o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*o;return a}function f(t){var e,n,i=t[0],a=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:(o*=2,a*=o<=1?o:2-o,n=(o+a)/2,e=2*a/(o+a),[i,100*e,100*n])}function p(t){return o(h(t))}function m(t){return l(h(t))}function v(t){return s(h(t))}function x(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,o=e-Math.floor(e),r=255*i*(1-n),l=255*i*(1-n*o),s=255*i*(1-n*(1-o)),i=255*i;switch(a){case 0:return[i,s,r];case 1:return[l,i,r];case 2:return[r,i,s];case 3:return[r,l,i];case 4:return[s,r,i];case 5:return[i,r,l]}}function y(t){var e,n,i=t[0],a=t[1]/100,o=t[2]/100;return n=(2-a)*o,e=a*o,e/=n<=1?n:2-n,e=e||0,n/=2,[i,100*e,100*n]}function k(t){return o(x(t))}function w(t){return l(x(t))}function M(t){return s(x(t))}function S(t){var e,n,i,a,o=t[0]/360,l=t[1]/100,s=t[2]/100,u=l+s;switch(u>1&&(l/=u,s/=u),e=Math.floor(6*o),n=1-s,i=6*o-e,0!=(1&e)&&(i=1-i),a=l+i*(n-l),e){default:case 6:case 0:r=n,g=a,b=l;break;case 1:r=a,g=n,b=l;break;case 2:r=l,g=n,b=a;break;case 3:r=l,g=a,b=n;break;case 4:r=a,g=l,b=n;break;case 5:r=n,g=l,b=a}return[255*r,255*g,255*b]}function C(t){return i(S(t))}function D(t){return a(S(t))}function I(t){return l(S(t))}function A(t){return s(S(t))}function P(t){var e,n,i,a=t[0]/100,o=t[1]/100,r=t[2]/100,l=t[3]/100;return e=1-Math.min(1,a*(1-l)+l),n=1-Math.min(1,o*(1-l)+l),i=1-Math.min(1,r*(1-l)+l),[255*e,255*n,255*i]}function _(t){return i(P(t))}function T(t){return a(P(t))}function F(t){return o(P(t))}function R(t){return s(P(t))}function L(t){var e,n,i,a=t[0]/100,o=t[1]/100,r=t[2]/100;return e=3.2406*a+o*-1.5372+r*-.4986,n=a*-.9689+1.8758*o+.0415*r,i=.0557*a+o*-.204+1.057*r,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*e,255*n,255*i]}function V(t){var e,n,i,a=t[0],o=t[1],r=t[2];return a/=95.047,o/=100,r/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,e=116*o-16,n=500*(a-o),i=200*(o-r),[e,n,i]}function O(t){return B(V(t))}function z(t){var e,n,i,a,o=t[0],r=t[1],l=t[2];return o<=8?(n=100*o/903.3,a=7.787*(n/100)+16/116):(n=100*Math.pow((o+16)/116,3),a=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),i=i/108.883<=.008859?i=108.883*(a-l/200-16/116)/7.787:108.883*Math.pow(a-l/200,3),[e,n,i]}function B(t){var e,n,i,a=t[0],o=t[1],r=t[2];return e=Math.atan2(r,o),n=360*e/2/Math.PI,n<0&&(n+=360),i=Math.sqrt(o*o+r*r),[a,i,n]}function W(t){return L(z(t))}function N(t){var e,n,i,a=t[0],o=t[1],r=t[2];return i=r/360*2*Math.PI,e=o*Math.cos(i),n=o*Math.sin(i),[a,e,n]}function E(t){return z(N(t))}function H(t){return W(N(t))}function q(t){return J[t]}function j(t){return i(q(t))}function Y(t){return a(q(t))}function U(t){return o(q(t))}function X(t){return l(q(t))}function K(t){return d(q(t))}function G(t){return u(q(t))}e.exports={rgb2hsl:i,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:l,rgb2keyword:s,rgb2xyz:u,rgb2lab:d,rgb2lch:c,hsl2rgb:h,hsl2hsv:f,hsl2hwb:p,hsl2cmyk:m,hsl2keyword:v,hsv2rgb:x,hsv2hsl:y,hsv2hwb:k,hsv2cmyk:w,hsv2keyword:M,hwb2rgb:S,hwb2hsl:C,hwb2hsv:D,hwb2cmyk:I,hwb2keyword:A,cmyk2rgb:P,cmyk2hsl:_,cmyk2hsv:T,cmyk2hwb:F,cmyk2keyword:R,keyword2rgb:q,keyword2hsl:j,keyword2hsv:Y,keyword2hwb:U,keyword2cmyk:X,keyword2lab:K,keyword2xyz:G,xyz2rgb:L,xyz2lab:V,xyz2lch:O,lab2xyz:z,lab2rgb:W,lab2lch:B,lch2lab:N,lch2xyz:E,lch2rgb:H};var J={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Z={};for(var Q in J)Z[JSON.stringify(J[Q])]=Q},{}],5:[function(t,e,n){var i=t(4),a=function(){return new u};for(var o in i){a[o+\"Raw\"]=function(t){return function(e){return\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(o);var r=/(\\w+)2(\\w+)/.exec(o),l=r[1],s=r[2];a[l]=a[l]||{},a[l][s]=a[o]=function(t){return function(e){\"number\"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if(\"string\"==typeof n||void 0===n)return n;for(var a=0;a=0&&a>0)&&(m+=a));return o=c.getPixelForValue(m),r=c.getPixelForValue(m+f),l=(r-o)/2,{size:l,base:o,head:r,center:r+l/2}},calculateBarIndexPixels:function(t,e,n){var i=this,a=n.scale,o=i.chart.isCombo,r=i.getStackIndex(t),l=a.getPixelForValue(null,e,t,o),s=n.barSize;return l-=o?n.tickSize/2:0,l+=n.fullBarSize*r,l+=n.categorySpacing/2,l+=n.barSpacing/2,{size:s,base:l,head:l+s,center:l+s/2}},draw:function(){var t,n=this,i=n.chart,a=n.getMeta().data,o=n.getDataset(),r=a.length,l=0;for(e.canvas.clipArea(i.ctx,i.chartArea);l0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var o=0;o'),a[o]&&e.push(a[o]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(i,a){var o=t.getDatasetMeta(0),r=n.datasets[0],l=o.data[a],s=l&&l.custom||{},u=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=s.backgroundColor?s.backgroundColor:u(r.backgroundColor,a,d.backgroundColor),h=s.borderColor?s.borderColor:u(r.borderColor,a,d.borderColor),f=s.borderWidth?s.borderWidth:u(r.borderWidth,a,d.borderWidth);return{text:i,fillStyle:c,strokeStyle:h,lineWidth:f,hidden:isNaN(r.data[a])||o.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var n,i,a,o=e.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n=Math.PI?-1:g<-Math.PI?1:0);var p=g+f,m={x:Math.cos(g),y:Math.sin(g)},v={x:Math.cos(p),y:Math.sin(p)},b=g<=0&&0<=p||g<=2*Math.PI&&2*Math.PI<=p,x=g<=.5*Math.PI&&.5*Math.PI<=p||g<=2.5*Math.PI&&2.5*Math.PI<=p,y=g<=-Math.PI&&-Math.PI<=p||g<=Math.PI&&Math.PI<=p,k=g<=.5*-Math.PI&&.5*-Math.PI<=p||g<=1.5*Math.PI&&1.5*Math.PI<=p,w=h/100,M={x:y?-1:Math.min(m.x*(m.x<0?1:w),v.x*(v.x<0?1:w)),y:k?-1:Math.min(m.y*(m.y<0?1:w),v.y*(v.y<0?1:w))},S={x:b?1:Math.max(m.x*(m.x>0?1:w),v.x*(v.x>0?1:w)),y:x?1:Math.max(m.y*(m.y>0?1:w),v.y*(v.y>0?1:w))},C={width:.5*(S.x-M.x),height:.5*(S.y-M.y)};u=Math.min(l/C.width,s/C.height),d={x:(S.x+M.x)*-.5,y:(S.y+M.y)*-.5}}i.borderWidth=n.getMaxBorderWidth(c.data),i.outerRadius=Math.max((u-i.borderWidth)/2,0),i.innerRadius=Math.max(h?i.outerRadius/100*h:0,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),i.offsetX=d.x*i.outerRadius,i.offsetY=d.y*i.outerRadius,c.total=n.calculateTotal(),n.outerRadius=i.outerRadius-i.radiusLength*n.getRingIndex(n.index),n.innerRadius=Math.max(n.outerRadius-i.radiusLength,0),e.each(c.data,function(e,i){n.updateElement(e,i,t)})},updateElement:function(t,n,i){var a=this,o=a.chart,r=o.chartArea,l=o.options,s=l.animation,u=(r.left+r.right)/2,d=(r.top+r.bottom)/2,c=l.rotation,h=l.rotation,f=a.getDataset(),g=i&&s.animateRotate?0:t.hidden?0:a.calculateCircumference(f.data[n])*(l.circumference/(2*Math.PI)),p=i&&s.animateScale?0:a.innerRadius,m=i&&s.animateScale?0:a.outerRadius,v=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:a.index,_index:n,_model:{x:u+o.offsetX,y:d+o.offsetY,startAngle:c,endAngle:h,circumference:g,outerRadius:m,innerRadius:p,label:v(f.label,n,o.data.labels[n])}});var b=t._model;this.removeHoverStyle(t),i&&s.animateRotate||(0===n?b.startAngle=l.rotation:b.startAngle=a.getMeta().data[n-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,n=this.getDataset(),i=this.getMeta(),a=0;return e.each(i.data,function(e,i){t=n.data[i],isNaN(t)||e.hidden||(a+=Math.abs(t))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,a=this.index,o=t.length,r=0;ri?e:i,i=n>i?n:i;return i}})}},{}],18:[function(t,e,n){\"use strict\";e.exports=function(t){function e(t,e){return n.getValueOrDefault(t.showLine,e.showLines)}var n=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:\"label\"},scales:{xAxes:[{type:\"category\",id:\"x-axis-0\"}],yAxes:[{type:\"linear\",id:\"y-axis-0\"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,update:function(t){var i,a,o,r=this,l=r.getMeta(),s=l.dataset,u=l.data||[],d=r.chart.options,c=d.elements.line,h=r.getScaleForId(l.yAxisID),f=r.getDataset(),g=e(f,d);for(g&&(o=s.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),s._scale=h,s._datasetIndex=r.index,s._children=u,s._model={spanGaps:f.spanGaps?f.spanGaps:d.spanGaps,tension:o.tension?o.tension:n.getValueOrDefault(f.lineTension,c.tension),backgroundColor:o.backgroundColor?o.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:f.borderWidth||c.borderWidth,borderColor:o.borderColor?o.borderColor:f.borderColor||c.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:o.borderDash?o.borderDash:f.borderDash||c.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:o.fill?o.fill:void 0!==f.fill?f.fill:c.fill,steppedLine:o.steppedLine?o.steppedLine:n.getValueOrDefault(f.steppedLine,c.stepped),cubicInterpolationMode:o.cubicInterpolationMode?o.cubicInterpolationMode:n.getValueOrDefault(f.cubicInterpolationMode,c.cubicInterpolationMode)},s.pivot()),i=0,a=u.length;i');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var o=0;o'),a[o]&&e.push(a[o]),e.push(\"\");return e.push(\"\"),e.join(\"\")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(i,a){var o=t.getDatasetMeta(0),r=n.datasets[0],l=o.data[a],s=l.custom||{},u=e.getValueAtIndexOrDefault,d=t.options.elements.arc,c=s.backgroundColor?s.backgroundColor:u(r.backgroundColor,a,d.backgroundColor),h=s.borderColor?s.borderColor:u(r.borderColor,a,d.borderColor),f=s.borderWidth?s.borderWidth:u(r.borderWidth,a,d.borderWidth);return{text:i,fillStyle:c,strokeStyle:h,lineWidth:f,hidden:isNaN(r.data[a])||o.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var n,i,a,o=e.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.radar={aspectRatio:1,scale:{type:\"radialLinear\"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,update:function(t){var n=this,i=n.getMeta(),a=i.dataset,o=i.data,r=a.custom||{},l=n.getDataset(),s=n.chart.options.elements.line,u=n.chart.scale;void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),e.extend(i.dataset,{_datasetIndex:n.index,_scale:u,_children:o,_loop:!0,_model:{tension:r.tension?r.tension:e.getValueOrDefault(l.lineTension,s.tension),backgroundColor:r.backgroundColor?r.backgroundColor:l.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:l.borderWidth||s.borderWidth,borderColor:r.borderColor?r.borderColor:l.borderColor||s.borderColor,fill:r.fill?r.fill:void 0!==l.fill?l.fill:s.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:l.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash?r.borderDash:l.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:l.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:l.borderJoinStyle||s.borderJoinStyle}}),i.dataset.pivot(),e.each(o,function(e,i){n.updateElement(e,i,t)},n),n.updateBezierControlPoints()},updateElement:function(t,n,i){var a=this,o=t.custom||{},r=a.getDataset(),l=a.chart.scale,s=a.chart.options.elements.point,u=l.getPointPositionForValue(n,r.data[n]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),e.extend(t,{_datasetIndex:a.index,_index:n,_scale:l,_model:{x:i?l.xCenter:u.x,y:i?l.yCenter:u.y,tension:o.tension?o.tension:e.getValueOrDefault(r.lineTension,a.chart.options.elements.line.tension),radius:o.radius?o.radius:e.getValueAtIndexOrDefault(r.pointRadius,n,s.radius),backgroundColor:o.backgroundColor?o.backgroundColor:e.getValueAtIndexOrDefault(r.pointBackgroundColor,n,s.backgroundColor),borderColor:o.borderColor?o.borderColor:e.getValueAtIndexOrDefault(r.pointBorderColor,n,s.borderColor),borderWidth:o.borderWidth?o.borderWidth:e.getValueAtIndexOrDefault(r.pointBorderWidth,n,s.borderWidth),pointStyle:o.pointStyle?o.pointStyle:e.getValueAtIndexOrDefault(r.pointStyle,n,s.pointStyle),hitRadius:o.hitRadius?o.hitRadius:e.getValueAtIndexOrDefault(r.pointHitRadius,n,s.hitRadius)}}),t._model.skip=o.skip?o.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,n=this.getMeta();e.each(n.data,function(i,a){var o=i._model,r=e.splineCurve(e.previousItem(n.data,a,!0)._model,o,e.nextItem(n.data,a,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),o.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),o.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),o.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),i.pivot()})},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,o=t._model;o.radius=i.hoverRadius?i.hoverRadius:e.getValueAtIndexOrDefault(n.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,a,e.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:e.getValueAtIndexOrDefault(n.pointHoverBorderColor,a,e.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,a,o.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,o=t._model,r=this.chart.options.elements.point;o.radius=i.radius?i.radius:e.getValueAtIndexOrDefault(n.pointRadius,a,r.radius),o.backgroundColor=i.backgroundColor?i.backgroundColor:e.getValueAtIndexOrDefault(n.pointBackgroundColor,a,r.backgroundColor),o.borderColor=i.borderColor?i.borderColor:e.getValueAtIndexOrDefault(n.pointBorderColor,a,r.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:e.getValueAtIndexOrDefault(n.pointBorderWidth,a,r.borderWidth)}})}},{}],21:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:\"easeOutQuart\",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({chart:null,currentStep:0,numSteps:60,easing:\"\",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,o,r=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,o=r.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var n,i,a=this.animations,o=0;o=n.numSteps?(e.callback(n.onAnimationComplete,[n],i),i.animating=!1,a.splice(o,1)):++o}},Object.defineProperty(t.Animation.prototype,\"animationObject\",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,\"chartInstance\",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{}],22:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(e,n,i,a,o){var r,l,s,u,d,c;if(\"object\"==typeof n&&(r=n.toString(),\"[object HTMLImageElement]\"===r||\"[object HTMLCanvasElement]\"===r))return void e.drawImage(n,a-n.width/2,o-n.height/2,n.width,n.height);if(!(isNaN(i)||i<=0)){switch(n){default:e.beginPath(),e.arc(a,o,i,0,2*Math.PI),e.closePath(),e.fill();break;case\"triangle\":e.beginPath(),l=3*i/Math.sqrt(3),d=l*Math.sqrt(3)/2,e.moveTo(a-l/2,o+d/3),e.lineTo(a+l/2,o+d/3),e.lineTo(a,o-2*d/3),e.closePath(),e.fill();break;case\"rect\":c=1/Math.SQRT2*i,e.beginPath(),e.fillRect(a-c,o-c,2*c,2*c),e.strokeRect(a-c,o-c,2*c,2*c);break;case\"rectRounded\":var h=i/Math.SQRT2,f=a-h,g=o-h,p=Math.SQRT2*i;t.helpers.drawRoundedRectangle(e,f,g,p,p,i/2),e.fill();break;case\"rectRot\":c=1/Math.SQRT2*i,e.beginPath(),e.moveTo(a-c,o),e.lineTo(a,o+c),e.lineTo(a+c,o),e.lineTo(a,o-c),e.closePath(),e.fill();break;case\"cross\":e.beginPath(),e.moveTo(a,o+i),e.lineTo(a,o-i),e.moveTo(a-i,o),e.lineTo(a+i,o),e.closePath();break;case\"crossRot\":e.beginPath(),s=Math.cos(Math.PI/4)*i,u=Math.sin(Math.PI/4)*i,e.moveTo(a-s,o-u),e.lineTo(a+s,o+u),e.moveTo(a-s,o+u),e.lineTo(a+s,o-u),e.closePath();break;case\"star\":e.beginPath(),e.moveTo(a,o+i),e.lineTo(a,o-i),e.moveTo(a-i,o),e.lineTo(a+i,o),s=Math.cos(Math.PI/4)*i,u=Math.sin(Math.PI/4)*i,e.moveTo(a-s,o-u),e.lineTo(a+s,o+u),e.moveTo(a-s,o+u),e.lineTo(a+s,o-u),e.closePath();break;case\"line\":e.beginPath(),e.moveTo(a-i,o),e.lineTo(a+i,o),e.closePath();break;case\"dash\":e.beginPath(),e.moveTo(a,o),e.lineTo(a+i,o),e.closePath()}e.stroke()}},e.clipArea=function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},e.unclipArea=function(t){t.restore()},e.lineTo=function(t,e,n,i){return n.steppedLine?(\"after\"===n.steppedLine?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y)):n.tension?void t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):void t.lineTo(n.x,n.y)},t.helpers.canvas=e}},{}],23:[function(t,e,n){\"use strict\";e.exports=function(t){function e(e){e=e||{};var n=e.data=e.data||{};return n.datasets=n.datasets||[],n.labels=n.labels||[],e.options=a.configMerge(t.defaults.global,t.defaults[e.type],e.options||{}),e}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function i(t){return\"top\"===t||\"bottom\"===t}var a=t.helpers,o=t.plugins,r=t.platform;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,i){var o=this;i=e(i);var l=r.acquireContext(n,i),s=l&&l.canvas,u=s&&s.height,d=s&&s.width;return o.id=a.uid(),o.ctx=l,o.canvas=s,o.config=i,o.width=d,o.height=u,o.aspectRatio=u?d/u:null,o.options=i.options,o._bufferedRender=!1,o.chart=o,o.controller=o,t.instances[o.id]=o,Object.defineProperty(o,\"data\",{get:function(){return o.config.data},set:function(t){o.config.data=t}}),l&&s?(o.initialize(),void o.update()):void console.error(\"Failed to create chart: can't acquire context from the given item\")},initialize:function(){var t=this;return o.notify(t,\"beforeInit\"),a.retinaScale(t),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),o.notify(t,\"afterInit\"),t},clear:function(){return a.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,l=Math.floor(a.getMaximumWidth(i)),s=Math.floor(r?l/r:a.getMaximumHeight(i));if((e.width!==l||e.height!==s)&&(i.width=e.width=l,i.height=e.height=s,i.style.width=l+\"px\",i.style.height=s+\"px\",a.retinaScale(e),!t)){var u={width:l,height:s};o.notify(e,\"resize\",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,function(t,e){t.id=t.id||\"x-axis-\"+e}),a.each(e.yAxes,function(t,e){t.id=t.id||\"y-axis-\"+e}),n&&(n.id=n.id||\"scale\")},buildScales:function(){var e=this,n=e.options,o=e.scales={},r=[];n.scales&&(r=r.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:\"category\",dposition:\"bottom\"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:\"linear\",dposition:\"left\"}}))),n.scale&&r.push({options:n.scale,dtype:\"radialLinear\",isDefault:!0,dposition:\"chartArea\"}),a.each(r,function(n){var r=n.options,l=a.getValueOrDefault(r.type,n.dtype),s=t.scaleService.getScaleConstructor(l);if(s){i(r.position)!==i(n.dposition)&&(r.position=n.dposition);var u=new s({id:r.id,options:r,ctx:e.ctx,chart:e});o[u.id]=u,n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];if(a.each(e.data.datasets,function(a,o){var r=e.getDatasetMeta(o);if(r.type||(r.type=a.type||e.config.type),n.push(r.type),r.controller)r.controller.updateIndex(o);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('\"'+r.type+'\" is not a chart type.');r.controller=new l(e,o),i.push(r.controller)}},e),n.length>1)for(var o=1;o=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);o.notify(e,\"afterDatasetsDraw\",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),a={meta:i,index:t,easingValue:e};o.notify(n,\"beforeDatasetDraw\",[a])!==!1&&(i.controller.draw(e),o.notify(n,\"afterDatasetDraw\",[a]))},getElementAtEvent:function(e){return t.Interaction.modes.single(this,e)},getElementsAtEvent:function(e){return t.Interaction.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return t.Interaction.modes[\"x-axis\"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,n,i){var a=t.Interaction.modes[n];return\"function\"==typeof a?a(this,e,i):[]},getDatasetAtEvent:function(e){return t.Interaction.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach(function(e){delete t[e]}),delete t._chartjs)}}var i=t.helpers,a=[\"push\",\"pop\",\"shift\",\"splice\",\"unshift\"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),a=n.getDataset().data||[],o=i.data;for(t=0,e=a.length;ti&&t.insertElements(i,a-i)},insertElements:function(t,e){for(var n=0;n=0;a--)e.call(n,t[a],a);else for(a=0;a=i[n].length||!i[n][a].type?i[n].push(o.configMerge(l,e)):e.type&&e.type!==i[n][a].type?i[n][a]=o.configMerge(i[n][a],l,e):i[n][a]=o.configMerge(i[n][a],e)}):(i[n]=[],o.each(e,function(e){var a=o.getValueOrDefault(e.type,\"xAxes\"===n?\"category\":\"linear\");i[n].push(o.configMerge(t.scaleService.getScaleDefaults(a),e))})):i.hasOwnProperty(n)&&\"object\"==typeof i[n]&&null!==i[n]&&\"object\"==typeof e?i[n]=o.configMerge(i[n],e):i[n]=e}),i},o.getValueAtIndexOrDefault=function(t,e,n){return void 0===t||null===t?n:o.isArray(t)?e=0;i--){var a=t[i];if(e(a))return a}},o.inherits=function(t){var e=this,n=t&&t.hasOwnProperty(\"constructor\")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=o.inherits,t&&o.extend(n.prototype,t),n.__super__=e.prototype,n},o.noop=function(){},o.uid=function(){var t=0;return function(){return t++}}(),o.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},o.almostEquals=function(t,e,n){return Math.abs(t-e)t},o.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},o.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},o.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},o.toRadians=function(t){return t*(Math.PI/180)},o.toDegrees=function(t){return t*(180/Math.PI)},o.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},o.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},o.aliasPixel=function(t){return t%2===0?0:.5},o.splineCurve=function(t,e,n,i){var a=t.skip?e:t,o=e,r=n.skip?e:n,l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),u=l/(l+s),d=s/(l+s);u=isNaN(u)?0:u,d=isNaN(d)?0:d;var c=i*u,h=i*d;return{previous:{x:o.x-c*(r.x-a.x),y:o.y-c*(r.y-a.y)},next:{x:o.x+h*(r.x-a.x),y:o.y+h*(r.y-a.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(t){var e,n,i,a,r=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),l=r.length;for(e=0;e0?r[e-1]:null,a=e0?r[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},o.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},o.niceNum=function(t,e){var n,i=Math.floor(o.log10(t)),a=t/Math.pow(10,i);return n=e?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=5?5:10,n*Math.pow(10,i)};var r=o.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===(t/=1)?1:(n||(n=.3),i0?(n=s[0].clientX,i=s[0].clientY):(n=a.clientX,i=a.clientY);var u=parseFloat(o.getStyle(r,\"padding-left\")),d=parseFloat(o.getStyle(r,\"padding-top\")),c=parseFloat(o.getStyle(r,\"padding-right\")),h=parseFloat(o.getStyle(r,\"padding-bottom\")),f=l.right-l.left-u-c,g=l.bottom-l.top-d-h;return n=Math.round((n-l.left-u)/f*r.width/e.currentDevicePixelRatio),i=Math.round((i-l.top-d)/g*r.height/e.currentDevicePixelRatio),{x:n,y:i}},o.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent(\"on\"+e,n):t[\"on\"+e]=n},o.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent(\"on\"+e,n):t[\"on\"+e]=o.noop},o.getConstraintWidth=function(t){return a(t,\"max-width\",\"clientWidth\")},o.getConstraintHeight=function(t){return a(t,\"max-height\",\"clientHeight\")},o.getMaximumWidth=function(t){var e=t.parentNode,n=parseInt(o.getStyle(e,\"padding-left\"),10),i=parseInt(o.getStyle(e,\"padding-right\"),10),a=e.clientWidth-n-i,r=o.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},o.getMaximumHeight=function(t){var e=t.parentNode,n=parseInt(o.getStyle(e,\"padding-top\"),10),i=parseInt(o.getStyle(e,\"padding-bottom\"),10),a=e.clientHeight-n-i,r=o.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},o.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},o.retinaScale=function(t){var e=t.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==e){var n=t.canvas,i=t.height,a=t.width;n.height=i*e,n.width=a*e,t.ctx.scale(e,e),n.style.height=i+\"px\",n.style.width=a+\"px\"}},o.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},o.fontString=function(t,e,n){return e+\" \"+t+\"px \"+n},o.longestText=function(t,e,n,i){i=i||{};var a=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},r=i.garbageCollect=[],i.font=e),t.font=e;var l=0;o.each(n,function(e){void 0!==e&&null!==e&&o.isArray(e)!==!0?l=o.measureText(t,a,r,l,e):o.isArray(e)&&o.each(e,function(e){void 0===e||null===e||o.isArray(e)||(l=o.measureText(t,a,r,l,e))})});var s=r.length/2;if(s>n.length){for(var u=0;ui&&(i=o),i},o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t)&&t.length>e&&(e=t.length)}),e},o.drawRoundedRectangle=function(t,e,n,i,a,o){t.beginPath(),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+a-o),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+o,n),t.closePath()},o.color=i?function(e){return e instanceof CanvasGradient&&(e=t.defaults.global.defaultColor),i(e)}:function(t){return console.error(\"Color.js not found!\"),t},o.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},o.arrayEquals=function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n0&&(l=t.getDatasetMeta(l[0]._datasetIndex).data),l},\"x-axis\":function(t,e){return o(t,e,!0)},point:function(t,n){var a=e(n,t);return i(t,a)},nearest:function(t,n,i){var o=e(n,t),r=a(t,o,i.intersect);return r.length>1&&r.sort(function(t,e){var n=t.getArea(),i=e.getArea(),a=n-i;return 0===a&&(a=t._datasetIndex-e._datasetIndex),a}),r.slice(0,1)},x:function(t,i,a){var o=e(i,t),r=[],l=!1;return n(t,function(t){t.inXRange(o.x)&&r.push(t),t.inRange(o.x,o.y)&&(l=!0)}),a.intersect&&!l&&(r=[]),r},y:function(t,i,a){var o=e(i,t),r=[],l=!1;return n(t,function(t){t.inYRange(o.y)&&r.push(t),t.inRange(o.x,o.y)&&(l=!0)}),a.intersect&&!l&&(r=[]),r}}}}},{}],28:[function(t,e,n){\"use strict\";e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:[\"mousemove\",\"mouseout\",\"click\",\"touchstart\",\"touchmove\"],hover:{onHover:null,mode:\"nearest\",intersect:!0,animationDuration:400},onClick:null,defaultColor:\"rgba(0,0,0,0.1)\",defaultFontColor:\"#666\",defaultFontFamily:\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\",defaultFontSize:12,defaultFontStyle:\"normal\",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('
        ');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push(\"\");return e.push(\"
      \"),e.join(\"\")}}},t.Chart=t,t}},{}],29:[function(t,e,n){\"use strict\";e.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i._tmpIndex_-a._tmpIndex_:i.weight-a.weight}),t.forEach(function(t){delete t._tmpIndex_})}var i=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||\"top\",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,a=[\"fullWidth\",\"position\",\"weight\"],o=a.length,r=0;rc&&rt.maxHeight){r--;break}r++,d=l*u}t.labelRotation=r},afterCalculateTickRotation:function(){i.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){i.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},o=t.options,r=o.ticks,l=o.scaleLabel,s=o.gridLines,u=o.display,d=t.isHorizontal(),c=n(r),h=1.5*n(l).size,f=o.gridLines.tickMarkLength;if(d?a.width=t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:a.width=u&&s.drawTicks?f:0,d?a.height=u&&s.drawTicks?f:0:a.height=t.maxHeight,l.display&&u&&(d?a.height+=h:a.width+=h),r.display&&u){var g=i.longestText(t.ctx,c.font,t.ticks,t.longestTextCache),p=i.numberOfLabelLines(t.ticks),m=.5*c.size;if(d){t.longestLabelWidth=g;var v=i.toRadians(t.labelRotation),b=Math.cos(v),x=Math.sin(v),y=x*g+c.size*p+m*p;a.height=Math.min(t.maxHeight,a.height+y),t.ctx.font=c.font;var k=t.ticks[0],w=e(t.ctx,k,c.font),M=t.ticks[t.ticks.length-1],S=e(t.ctx,M,c.font);0!==t.labelRotation?(t.paddingLeft=\"bottom\"===o.position?b*w+3:b*m+3,t.paddingRight=\"bottom\"===o.position?b*m+3:b*S+3):(t.paddingLeft=w/2+3,t.paddingRight=S/2+3)}else r.mirror?g=0:g+=t.options.ticks.padding,a.width=Math.min(t.maxWidth,a.width+g),t.paddingTop=c.size/2,t.paddingBottom=c.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){i.callback(this.options.afterFit,[this])},isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||\"undefined\"==typeof t?NaN:\"number\"!=typeof t||isFinite(t)?\"object\"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t:NaN},getLabelForIndex:i.noop,getPixelForValue:i.noop,getValueForPixel:i.noop,getPixelForTick:function(t,e){var n=this;if(n.isHorizontal()){var i=n.width-(n.paddingLeft+n.paddingRight),a=i/Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),o=a*t+n.paddingLeft;e&&(o+=a/2);var r=n.left+Math.round(o);return r+=n.isFullWidth()?n.margins.left:0}var l=n.height-(n.paddingTop+n.paddingBottom);return n.top+t*(l/(n.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=e.width-(e.paddingLeft+e.paddingRight),i=n*t+e.paddingLeft,a=e.left+Math.round(i);return a+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},draw:function(e){var a=this,o=a.options;if(o.display){var r,l,s=a.ctx,u=t.defaults.global,d=o.ticks,c=o.gridLines,h=o.scaleLabel,f=0!==a.labelRotation,g=d.autoSkip,p=a.isHorizontal();d.maxTicksLimit&&(l=d.maxTicksLimit);var m=i.getValueOrDefault(d.fontColor,u.defaultFontColor),v=n(d),b=c.drawTicks?c.tickMarkLength:0,x=i.getValueOrDefault(h.fontColor,u.defaultFontColor),y=n(h),k=i.toRadians(a.labelRotation),w=Math.cos(k),M=a.longestLabelWidth*w;s.fillStyle=m;var S=[];if(p){if(r=!1,(M+d.autoSkipPadding)*a.ticks.length>a.width-(a.paddingLeft+a.paddingRight)&&(r=1+Math.floor((M+d.autoSkipPadding)*a.ticks.length/(a.width-(a.paddingLeft+a.paddingRight)))),l&&a.ticks.length>l)for(;!r||a.ticks.length/(r||1)>l;)r||(r=1),r+=1;g||(r=!1)}var C=\"right\"===o.position?a.left:a.right-b,D=\"right\"===o.position?a.left+b:a.right,I=\"bottom\"===o.position?a.top:a.bottom-b,A=\"bottom\"===o.position?a.top+b:a.bottom;if(i.each(a.ticks,function(t,n){if(void 0!==t&&null!==t){var l=a.ticks.length===n+1,s=r>1&&n%r>0||n%r===0&&n+r>=a.ticks.length;if((!s||l)&&void 0!==t&&null!==t){var h,g,m,v;n===(\"undefined\"!=typeof a.zeroLineIndex?a.zeroLineIndex:0)?(h=c.zeroLineWidth,g=c.zeroLineColor,m=c.zeroLineBorderDash,v=c.zeroLineBorderDashOffset):(h=i.getValueAtIndexOrDefault(c.lineWidth,n),g=i.getValueAtIndexOrDefault(c.color,n),m=i.getValueOrDefault(c.borderDash,u.borderDash),v=i.getValueOrDefault(c.borderDashOffset,u.borderDashOffset));var x,y,w,M,P,_,T,F,R,L,V=\"middle\",O=\"middle\";if(p){\"bottom\"===o.position?(O=f?\"middle\":\"top\",V=f?\"right\":\"center\",L=a.top+b):(O=f?\"middle\":\"bottom\",V=f?\"left\":\"center\",L=a.bottom-b);var z=a.getPixelForTick(n)+i.aliasPixel(h);R=a.getPixelForTick(n,c.offsetGridLines)+d.labelOffset,x=w=P=T=z,y=I,M=A,_=e.top,F=e.bottom}else{var B,W=\"left\"===o.position,N=d.padding;d.mirror?(V=W?\"left\":\"right\",B=N):(V=W?\"right\":\"left\",\nB=b+N),R=W?a.right-B:a.left+B;var E=a.getPixelForTick(n);E+=i.aliasPixel(h),L=a.getPixelForTick(n,c.offsetGridLines),x=C,w=D,P=e.left,T=e.right,y=M=_=F=E}S.push({tx1:x,ty1:y,tx2:w,ty2:M,x1:P,y1:_,x2:T,y2:F,labelX:R,labelY:L,glWidth:h,glColor:g,glBorderDash:m,glBorderDashOffset:v,rotation:-1*k,label:t,textBaseline:O,textAlign:V})}}}),i.each(S,function(t){if(c.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),c.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),c.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),d.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=v.font,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var e=t.label;if(i.isArray(e))for(var n=0,a=0;n0)i=t.stepSize;else{var o=e.niceNum(n.max-n.min,!1);i=e.niceNum(o/(t.maxTicks-1),!0)}var r=Math.floor(n.min/i)*i,l=Math.ceil(n.max/i)*i;t.min&&t.max&&t.stepSize&&e.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(r=t.min,l=t.max);var s=(l-r)/i;s=e.almostEquals(s,Math.round(s),i/1e3)?Math.round(s):Math.ceil(s),a.push(void 0!==t.min?t.min:r);for(var u=1;u3?i[2]-i[1]:i[1]-i[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r=\"\";if(0!==t){var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),r=t.toFixed(l)}else r=\"0\";return r},logarithmic:function(t,n,i){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?\"0\":1===a||2===a||5===a||0===n||n===i.length-1?t.toExponential():\"\"}}}}},{}],34:[function(t,e,n){\"use strict\";e.exports=function(t){function e(t,e){var n=s.color(t);return n.alpha(e*n.alpha()).rgbaString()}function n(t,e){return e&&(s.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function i(t){var e=t._xScale,n=t._yScale||t._scale,i=t._index,a=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(i,a):\"\",yLabel:n?n.getLabelForIndex(i,a):\"\",index:i,datasetIndex:a,x:t._model.x,y:t._model.y}}function a(e){var n=t.defaults.global,i=s.getValueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:i(e.bodyFontFamily,n.defaultFontFamily),_bodyFontStyle:i(e.bodyFontStyle,n.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:i(e.bodyFontSize,n.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:i(e.titleFontFamily,n.defaultFontFamily),_titleFontStyle:i(e.titleFontStyle,n.defaultFontStyle),titleFontSize:i(e.titleFontSize,n.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:i(e.footerFontFamily,n.defaultFontFamily),_footerFontStyle:i(e.footerFontStyle,n.defaultFontStyle),footerFontSize:i(e.footerFontSize,n.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function o(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=e.beforeBody.length+e.afterBody.length;var l=e.title.length,u=e.footer.length,d=e.titleFontSize,c=e.bodyFontSize,h=e.footerFontSize;i+=l*d,i+=l?(l-1)*e.titleSpacing:0,i+=l?e.titleMarginBottom:0,i+=r*c,i+=r?(r-1)*e.bodySpacing:0,i+=u?e.footerMarginTop:0,i+=u*h,i+=u?(u-1)*e.footerSpacing:0;var f=0,g=function(t){a=Math.max(a,n.measureText(t).width+f)};return n.font=s.fontString(d,e._titleFontStyle,e._titleFontFamily),s.each(e.title,g),n.font=s.fontString(c,e._bodyFontStyle,e._bodyFontFamily),s.each(e.beforeBody.concat(e.afterBody),g),f=e.displayColors?c+2:0,s.each(o,function(t){s.each(t.before,g),s.each(t.lines,g),s.each(t.after,g)}),f=0,n.font=s.fontString(h,e._footerFontStyle,e._footerFontFamily),s.each(e.footer,g),a+=2*e.xPadding,{width:a,height:i}}function r(t,e){var n=t._model,i=t._chart,a=t._chart.chartArea,o=\"center\",r=\"center\";n.yi.height-e.height&&(r=\"bottom\");var l,s,u,d,c,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;\"center\"===r?(l=function(t){return t<=h},s=function(t){return t>h}):(l=function(t){return t<=e.width/2},s=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},d=function(t){return t-e.width<0},c=function(t){return t<=f?\"top\":\"bottom\"},l(n.x)?(o=\"left\",u(n.x)&&(o=\"center\",r=c(n.y))):s(n.x)&&(o=\"right\",d(n.x)&&(o=\"center\",r=c(n.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:o,yAlign:g.yAlign?g.yAlign:r}}function l(t,e,n){var i=t.x,a=t.y,o=t.caretSize,r=t.caretPadding,l=t.cornerRadius,s=n.xAlign,u=n.yAlign,d=o+r,c=l+r;return\"right\"===s?i-=e.width:\"center\"===s&&(i-=e.width/2),\"top\"===u?a+=d:a-=\"bottom\"===u?e.height+d:e.height/2,\"center\"===u?\"left\"===s?i+=d:\"right\"===s&&(i-=d):\"left\"===s?i-=c:\"right\"===s&&(i+=c),{x:i,y:a}}var s=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:\"nearest\",position:\"average\",intersect:!0,backgroundColor:\"rgba(0,0,0,0.8)\",titleFontStyle:\"bold\",titleSpacing:2,titleMarginBottom:6,titleFontColor:\"#fff\",titleAlign:\"left\",bodySpacing:2,bodyFontColor:\"#fff\",bodyAlign:\"left\",footerFontStyle:\"bold\",footerSpacing:2,footerMarginTop:6,footerFontColor:\"#fff\",footerAlign:\"left\",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:\"#fff\",displayColors:!0,borderColor:\"rgba(0,0,0,0)\",borderWidth:0,callbacks:{beforeTitle:s.noop,title:function(t,e){var n=\"\",i=e.labels,a=i?i.length:0;if(t.length>0){var o=t[0];o.xLabel?n=o.xLabel:a>0&&o.index0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(this.drawBackground(i,e,t,n,a),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,a),this.drawBody(i,e,t,a),this.drawFooter(i,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],\"mouseout\"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),i=!s.arrayEquals(e._active,e._lastActive),!i)return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),i|=a.x!==e._model.x||a.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,a=0,o=0;for(e=0,n=t.length;es;)o-=2*Math.PI;for(;o=l&&o<=s,d=r>=i.innerRadius&&r<=i.outerRadius;return u&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin=\"bevel\",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.helpers,n=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:\"butt\",borderDash:[],borderDashOffset:0,borderJoinStyle:\"miter\",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){var t,i,a,o,r=this,l=r._view,s=r._chart.ctx,u=l.spanGaps,d=r._children.slice(),c=n.elements.line,h=-1;for(r._loop&&d.length&&d.push(d[0]),s.save(),s.lineCap=l.borderCapStyle||c.borderCapStyle,s.setLineDash&&s.setLineDash(l.borderDash||c.borderDash),s.lineDashOffset=l.borderDashOffset||c.borderDashOffset,s.lineJoin=l.borderJoinStyle||c.borderJoinStyle,s.lineWidth=l.borderWidth||c.borderWidth,s.strokeStyle=l.borderColor||n.defaultColor,s.beginPath(),h=-1,t=0;te?1:-1,r=1,l=u.borderSkipped||\"left\"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,a=u.base,o=1,r=a>i?1:-1,l=u.borderSkipped||\"bottom\"),d){var c=Math.min(Math.abs(e-n),Math.abs(i-a));d=d>c?c:d;var h=d/2,f=e+(\"left\"!==l?h*o:0),g=n+(\"right\"!==l?-h*o:0),p=i+(\"top\"!==l?h*r:0),m=a+(\"bottom\"!==l?-h*r:0);f!==g&&(i=p,a=m),p!==m&&(e=f,n=g)}s.beginPath(),s.fillStyle=u.backgroundColor,s.strokeStyle=u.borderColor,s.lineWidth=d;var v=[[e,a],[e,i],[n,i],[n,a]],b=[\"bottom\",\"left\",\"top\",\"right\"],x=b.indexOf(l,0);x===-1&&(x=0);var y=t(0);s.moveTo(y[0],y[1]);for(var k=1;k<4;k++)y=t(k),s.lineTo(y[0],y[1]);s.fill(),d&&s.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=!1;if(this._view){var a=n(this);i=t>=a.left&&t<=a.right&&e>=a.top&&e<=a.bottom}return i},inLabelRange:function(t,i){var a=this;if(!a._view)return!1;var o=!1,r=n(a);return o=e(a)?t>=r.left&&t<=r.right:i>=r.top&&i<=r.bottom},inXRange:function(t){var e=n(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=n(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,n,i=this._view;return e(this)?(t=i.x,n=(i.y+i.base)/2):(t=(i.x+i.base)/2,n=i.y),{x:t,y:n}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,n){\"use strict\";e.exports=function(t){function e(t,e){var n=s.getStyle(t,e),i=n&&n.match(/^(\\d+)(\\.\\d+)?px$/);return i?Number(i[1]):void 0}function n(t,n){var i=t.style,a=t.getAttribute(\"height\"),o=t.getAttribute(\"width\");if(t._chartjs={initial:{height:a,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||\"block\",null===o||\"\"===o){var r=e(t,\"width\");void 0!==r&&(t.width=r)}if(null===a||\"\"===a)if(\"\"===t.style.height)t.height=t.width/(n.options.aspectRatio||2);else{var l=e(t,\"height\");void 0!==r&&(t.height=l)}return t}function i(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function a(t,e){var n=u[t.type]||t.type,a=s.getRelativePosition(t,e);return i(n,e,a.x,a.y,t)}function o(t){var e=document.createElement(\"iframe\");return e.className=\"chartjs-hidden-iframe\",e.style.cssText=\"display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;\",e.tabIndex=-1,s.addEvent(e,\"load\",function(){s.addEvent(e.contentWindow||e,\"resize\",t),t()}),e}function r(t,e,n){var a=t._chartjs={ticking:!1},r=function(){a.ticking||(a.ticking=!0,s.requestAnimFrame.call(window,function(){if(a.resizer)return a.ticking=!1,e(i(\"resize\",n))}))};a.resizer=o(r),t.insertBefore(a.resizer,t.firstChild)}function l(t){if(t&&t._chartjs){var e=t._chartjs.resizer;e&&(e.parentNode.removeChild(e),t._chartjs.resizer=null),delete t._chartjs}}var s=t.helpers,u={touchstart:\"mousedown\",touchmove:\"mousemove\",touchend:\"mouseup\",pointerenter:\"mouseenter\",pointerdown:\"mousedown\",pointermove:\"mousemove\",pointerup:\"mouseup\",pointerleave:\"mouseout\",pointerout:\"mouseout\"};return{acquireContext:function(t,e){\"string\"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getContext&&t.getContext(\"2d\");return i&&i.canvas===t?(n(t,e),i):null},releaseContext:function(t){var e=t.canvas;if(e._chartjs){var n=e._chartjs.initial;[\"height\",\"width\"].forEach(function(t){var i=n[t];void 0===i||null===i?e.removeAttribute(t):e.setAttribute(t,i)}),s.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e._chartjs}},addEventListener:function(t,e,n){var i=t.canvas;if(\"resize\"===e)return void r(i.parentNode,n,t);var o=n._chartjs||(n._chartjs={}),l=o.proxies||(o.proxies={}),u=l[t.id+\"_\"+e]=function(e){n(a(e,t))};s.addEvent(i,e,u)},removeEventListener:function(t,e,n){var i=t.canvas;if(\"resize\"===e)return void l(i.parentNode,n);var a=n._chartjs||{},o=a.proxies||{},r=o[t.id+\"_\"+e];r&&s.removeEvent(i,e,r)}}}},{}],40:[function(t,e,n){\"use strict\";var i=t(39);e.exports=function(t){t.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t.helpers.extend(t.platform,i(t))}},{39:39}],41:[function(t,e,n){\"use strict\";e.exports=function(t){function e(t,e,n){var i,a=t._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),o===!1||null===o)return!1;if(o===!0)return\"origin\";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return\"-\"!==o[0]&&\"+\"!==o[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(o){case\"bottom\":return\"start\";case\"top\":return\"end\";case\"zero\":return\"origin\";case\"origin\":case\"start\":case\"end\":return o;default:return!1}}function n(t){var e,n=t.el._model||{},i=t.el._scale||{},a=t.fill,o=null;if(isFinite(a))return null;if(\"start\"===a?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:\"end\"===a?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePosition?o=i.getBasePosition():i.getBasePixel&&(o=i.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(\"number\"==typeof o&&isFinite(o))return e=i.isHorizontal(),{x:e?o:null,y:e?null:o}}return null}function i(t,e,n){var i,a=t[e],o=a.fill,r=[e];if(!n)return o;for(;o!==!1&&r.indexOf(o)===-1;){if(!isFinite(o))return o;if(i=t[o],!i)return!1;if(i.visible)return o;r.push(o),o=i.fill}return!1}function a(t){var e=t.fill,n=\"dataset\";return e===!1?null:(isFinite(e)||(n=\"boundary\"),d[n](t))}function o(t){return t&&!t.skip}function r(t,e,n,i,a){var o;if(i&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)u.canvas.lineTo(t,n[o],n[o-1],!0)}}function l(t,e,n,i,a,l){var s,u,d,c,h,f,g,p=e.length,m=i.spanGaps,v=[],b=[],x=0,y=0;for(t.beginPath(),s=0,u=p+!!l;s=n.width&&(b+=d+o.padding,v[v.length]=n.left),g[i]={left:0,top:0,width:r,height:d},v[v.length-1]+=r+o.padding}),p.height+=b}else{var x=o.padding,y=n.columnWidths=[],k=o.padding,w=0,M=0,S=d+x;i.each(n.legendItems,function(t,n){var i=e(o,d),a=i+d/2+l.measureText(t.text).width;M+S>p.height&&(k+=w+o.padding,y.push(w),w=0,M=0),w=Math.max(w,a),M+=S,g[n]={left:0,top:0,width:a,height:d}}),k+=w,y.push(w),p.width+=k}n.width=p.width,n.height=p.height},afterFit:o,isHorizontal:function(){return\"top\"===this.options.position||\"bottom\"===this.options.position},draw:function(){var n=this,a=n.options,o=a.labels,r=t.defaults.global,l=r.elements.line,s=n.width,u=n.lineWidths;if(a.display){var d,c=n.ctx,h=i.getValueOrDefault,f=h(o.fontColor,r.defaultFontColor),g=h(o.fontSize,r.defaultFontSize),p=h(o.fontStyle,r.defaultFontStyle),m=h(o.fontFamily,r.defaultFontFamily),v=i.fontString(g,p,m);c.textAlign=\"left\",c.textBaseline=\"top\",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=v;var b=e(o,g),x=n.legendHitBoxes,y=function(e,n,i){if(!(isNaN(b)||b<=0)){c.save(),c.fillStyle=h(i.fillStyle,r.defaultColor),c.lineCap=h(i.lineCap,l.borderCapStyle),c.lineDashOffset=h(i.lineDashOffset,l.borderDashOffset),c.lineJoin=h(i.lineJoin,l.borderJoinStyle),c.lineWidth=h(i.lineWidth,l.borderWidth),c.strokeStyle=h(i.strokeStyle,r.defaultColor);var o=0===h(i.lineWidth,l.borderWidth);if(c.setLineDash&&c.setLineDash(h(i.lineDash,l.borderDash)),a.labels&&a.labels.usePointStyle){var s=g*Math.SQRT2/2,u=s/Math.SQRT2,d=e+u,f=n+u;t.canvasHelpers.drawPoint(c,i.pointStyle,s,d,f)}else o||c.strokeRect(e,n,b,g),c.fillRect(e,n,b,g);c.restore()}},k=function(t,e,n,i){c.fillText(n.text,b+g/2+t,e),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(b+g/2+t,e+g/2),c.lineTo(b+g/2+t+i,e+g/2),c.stroke())},w=n.isHorizontal();d=w?{x:n.left+(s-u[0])/2,y:n.top+o.padding,line:0}:{x:n.left+o.padding,y:n.top+o.padding,line:0};var M=g+o.padding;i.each(n.legendItems,function(t,e){var i=c.measureText(t.text).width,a=b+g/2+i,r=d.x,l=d.y;w?r+a>=s&&(l=d.y+=M,d.line++,r=d.x=n.left+(s-u[d.line])/2):l+M>n.bottom&&(r=d.x=r+n.columnWidths[d.line]+o.padding,l=d.y=n.top+o.padding,d.line++),y(r,l,t),x[e].left=r,x[e].top=l,k(r,l,t,i),w?d.x+=a+o.padding:d.y+=M})}},handleEvent:function(t){var e=this,n=e.options,i=\"mouseup\"===t.type?\"click\":t.type,a=!1;if(\"mousemove\"===i){if(!n.onHover)return}else{if(\"click\"!==i)return;if(!n.onClick)return}var o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var l=e.legendHitBoxes,s=0;s=u.left&&o<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if(\"click\"===i){n.onClick.call(e,t.native,e.legendItems[s]),a=!0;break}if(\"mousemove\"===i){n.onHover.call(e,t.native,e.legendItems[s]),a=!0;break}}}return a}}),{id:\"legend\",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(e){var o=e.options.legend,r=e.legend;o?(o=i.configMerge(t.defaults.global.legend,o),r?(a.configure(e,r,o),r.options=o):n(e,o)):r&&(a.removeBox(e,r),delete e.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{}],43:[function(t,e,n){\"use strict\";e.exports=function(t){function e(e,n){var a=new t.Title({ctx:e.ctx,options:n,chart:e});i.configure(e,a,n),i.addBox(e,a),e.titleBlock=a}var n=t.helpers,i=t.layoutService,a=n.noop;return t.defaults.global.title={display:!1,position:\"top\",fullWidth:!0,weight:2e3,fontStyle:\"bold\",padding:10,text:\"\"},t.Title=t.Element.extend({initialize:function(t){var e=this;n.extend(e,t),e.legendHitBoxes=[];\n},beforeUpdate:a,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:a,beforeSetDimensions:a,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:a,beforeBuildLabels:a,buildLabels:a,afterBuildLabels:a,beforeFit:a,fit:function(){var e=this,i=n.getValueOrDefault,a=e.options,o=t.defaults.global,r=a.display,l=i(a.fontSize,o.defaultFontSize),s=e.minSize;e.isHorizontal()?(s.width=e.maxWidth,s.height=r?l+2*a.padding:0):(s.width=r?l+2*a.padding:0,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:a,isHorizontal:function(){var t=this.options.position;return\"top\"===t||\"bottom\"===t},draw:function(){var e=this,i=e.ctx,a=n.getValueOrDefault,o=e.options,r=t.defaults.global;if(o.display){var l,s,u,d=a(o.fontSize,r.defaultFontSize),c=a(o.fontStyle,r.defaultFontStyle),h=a(o.fontFamily,r.defaultFontFamily),f=n.fontString(d,c,h),g=0,p=e.top,m=e.left,v=e.bottom,b=e.right;i.fillStyle=a(o.fontColor,r.defaultFontColor),i.font=f,e.isHorizontal()?(l=m+(b-m)/2,s=p+(v-p)/2,u=b-m):(l=\"left\"===o.position?m+d/2:b-d/2,s=p+(v-p)/2,u=v-p,g=Math.PI*(\"left\"===o.position?-.5:.5)),i.save(),i.translate(l,s),i.rotate(g),i.textAlign=\"center\",i.textBaseline=\"middle\",i.fillText(o.text,0,0,u),i.restore()}}}),{id:\"title\",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(a){var o=a.options.title,r=a.titleBlock;o?(o=n.configMerge(t.defaults.global.title,o),r?(i.configure(a,r,o),r.options=o):e(a,o)):r&&(t.layoutService.removeBox(a,r),delete a.titleBlock)}}}},{}],44:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.helpers,n={position:\"bottom\"},i=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1;var i;void 0!==t.options.ticks.min&&(i=e.indexOf(n,t.options.ticks.min),t.minIndex=i!==-1?i:t.minIndex),void 0!==t.options.ticks.max&&(i=e.indexOf(n,t.options.ticks.max),t.maxIndex=i!==-1?i:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,a=n.isHorizontal();return i.yLabels&&!a?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e,n,i){var a,o=this,r=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&null!==t&&(a=o.isHorizontal()?t.x:t.y),void 0!==a||void 0!==t&&isNaN(e)){var l=o.getLabels();t=a||t;var s=l.indexOf(t);e=s!==-1?s:e}if(o.isHorizontal()){var u=o.width/r,d=u*(e-o.minIndex);return(o.options.gridLines.offsetGridLines&&i||o.maxIndex===o.minIndex&&i)&&(d+=u/2),o.left+Math.round(d)}var c=o.height/r,h=c*(e-o.minIndex);return o.options.gridLines.offsetGridLines&&i&&(h+=c/2),o.top+Math.round(h)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,n=this,i=Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),a=n.isHorizontal(),o=(a?n.width:n.height)/i;return t-=a?n.left:n.top,n.options.gridLines.offsetGridLines&&(t-=o/2),e=t<=0?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType(\"category\",i,n)}},{}],45:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.helpers,n={position:\"left\",ticks:{callback:t.Ticks.formatters.linear}},i=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,i=n.options,a=n.chart,o=a.data,r=o.datasets,l=n.isHorizontal(),s=0,u=1;n.min=null,n.max=null;var d=i.stacked;if(void 0===d&&e.each(r,function(e,n){if(!d){var i=a.getDatasetMeta(n);a.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(d=!0)}}),i.stacked||d){var c={};e.each(r,function(o,r){var l=a.getDatasetMeta(r),s=[l.type,void 0===i.stacked&&void 0===l.stack?r:\"\",l.stack].join(\".\");void 0===c[s]&&(c[s]={positiveValues:[],negativeValues:[]});var u=c[s].positiveValues,d=c[s].negativeValues;a.isDatasetVisible(r)&&t(l)&&e.each(o.data,function(t,e){var a=+n.getRightValue(t);isNaN(a)||l.data[e].hidden||(u[e]=u[e]||0,d[e]=d[e]||0,i.relativePoints?u[e]=100:a<0?d[e]+=a:u[e]+=a)})}),e.each(c,function(t){var i=t.positiveValues.concat(t.negativeValues),a=e.min(i),o=e.max(i);n.min=null===n.min?a:Math.min(n.min,a),n.max=null===n.max?o:Math.max(n.max,o)})}else e.each(r,function(i,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(i.data,function(t,e){var i=+n.getRightValue(t);isNaN(i)||r.data[e].hidden||(null===n.min?n.min=i:in.max&&(n.max=i))})});n.min=isFinite(n.min)?n.min:s,n.max=isFinite(n.max)?n.max:u,this.handleTickRangeOptions()},getTickLimit:function(){var n,i=this,a=i.options.ticks;if(i.isHorizontal())n=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(i.width/50));else{var o=e.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);n=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(i.height/(2*o)))}return n},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,a=+n.getRightValue(t),o=n.end-i;return n.isHorizontal()?(e=n.left+n.width/o*(a-i),Math.round(e)):(e=n.bottom-n.height/o*(a-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType(\"linear\",i,n)}},{}],46:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.helpers,n=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,n=t.options,i=n.ticks;if(i.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);a<0&&o<0?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==i.min?t.min=i.min:void 0!==i.suggestedMin&&(null===t.min?t.min=i.suggestedMin:t.min=Math.min(t.min,i.suggestedMin)),void 0!==i.max?t.max=i.max:void 0!==i.suggestedMax&&(null===t.max?t.max=i.suggestedMax:t.max=Math.max(t.max,i.suggestedMax)),t.min===t.max&&(t.max++,i.beginAtZero||t.min--)},getTickLimit:n,handleDirectionalChanges:n,buildTicks:function(){var n=this,i=n.options,a=i.ticks,o=n.getTickLimit();o=Math.max(2,o);var r={maxTicks:o,min:a.min,max:a.max,stepSize:e.getValueOrDefault(a.fixedStepSize,a.stepSize)},l=n.ticks=t.Ticks.generators.linear(r,n);n.handleDirectionalChanges(),n.max=e.max(l),n.min=e.min(l),a.reverse?(l.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],47:[function(t,e,n){\"use strict\";e.exports=function(t){var e=t.helpers,n={position:\"left\",ticks:{callback:t.Ticks.formatters.logarithmic}},i=t.Scale.extend({determineDataLimits:function(){function t(t){return u?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,i=n.options,a=i.ticks,o=n.chart,r=o.data,l=r.datasets,s=e.getValueOrDefault,u=n.isHorizontal();n.min=null,n.max=null,n.minNotZero=null;var d=i.stacked;if(void 0===d&&e.each(l,function(e,n){if(!d){var i=o.getDatasetMeta(n);o.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(d=!0)}}),i.stacked||d){var c={};e.each(l,function(a,r){var l=o.getDatasetMeta(r),s=[l.type,void 0===i.stacked&&void 0===l.stack?r:\"\",l.stack].join(\".\");o.isDatasetVisible(r)&&t(l)&&(void 0===c[s]&&(c[s]=[]),e.each(a.data,function(t,e){var a=c[s],o=+n.getRightValue(t);isNaN(o)||l.data[e].hidden||(a[e]=a[e]||0,i.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(c,function(t){var i=e.min(t),a=e.max(t);n.min=null===n.min?i:Math.min(n.min,i),n.max=null===n.max?a:Math.max(n.max,a)})}else e.each(l,function(i,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(i.data,function(t,e){var i=+n.getRightValue(t);isNaN(i)||r.data[e].hidden||(null===n.min?n.min=i:in.max&&(n.max=i),0!==i&&(null===n.minNotZero||ia?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function o(t){var o,r,l,s=n(t),u=Math.min(t.height/2,t.width/2),d={r:t.width,l:0,t:t.height,b:0},c={};t.ctx.font=s.font,t._pointLabelSizes=[];var h=e(t);for(o=0;od.r&&(d.r=m.end,c.r=g),v.startd.b&&(d.b=v.end,c.b=g)}t.setReductions(u,d,c)}function r(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function l(t){return 0===t||180===t?\"center\":t<180?\"left\":\"right\"}function s(t,e,n,i){if(f.isArray(e))for(var a=n.y,o=1.5*i,r=0;r270||t<90)&&(n.y-=e.h)}function d(t){var i=t.ctx,a=f.getValueOrDefault,o=t.options,r=o.angleLines,d=o.pointLabels;i.lineWidth=r.lineWidth,i.strokeStyle=r.color;var c=t.getDistanceFromCenterForValue(o.reverse?t.min:t.max),h=n(t);i.textBaseline=\"top\";for(var p=e(t)-1;p>=0;p--){if(r.display){var m=t.getPointPosition(p,c);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(d.display){var v=t.getPointPosition(p,c+5),b=a(d.fontColor,g.defaultFontColor);i.font=h.font,i.fillStyle=b;var x=t.getIndexAngle(p),y=f.toDegrees(x);i.textAlign=l(y),u(y,t._pointLabelSizes[p],v),s(i,t.pointLabels[p]||\"\",v,h.size)}}}function c(t,n,i,a){var o=t.ctx;if(o.strokeStyle=f.getValueAtIndexOrDefault(n.color,a-1),o.lineWidth=f.getValueAtIndexOrDefault(n.lineWidth,a-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var r=e(t);if(0===r)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var s=1;s0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,a=f.getValueOrDefault;if(e.display){var o=t.ctx,r=a(i.fontSize,g.defaultFontSize),l=a(i.fontStyle,g.defaultFontStyle),s=a(i.fontFamily,g.defaultFontFamily),u=f.fontString(r,l,s);f.each(t.ticks,function(l,s){if(s>0||e.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(n.display&&0!==s&&c(t,n,d,s),i.display){var f=a(i.fontColor,g.defaultFontColor);if(o.font=u,i.showLabelBackdrop){var p=o.measureText(l).width;o.fillStyle=i.backdropColor,o.fillRect(t.xCenter-p/2-i.backdropPaddingX,h-r/2-i.backdropPaddingY,p+2*i.backdropPaddingX,r+2*i.backdropPaddingY)}o.textAlign=\"center\",o.textBaseline=\"middle\",o.fillStyle=f,o.fillText(l,t.xCenter,h)}}}),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType(\"radialLinear\",m,p)}},{}],49:[function(t,e,n){\"use strict\";var i=t(1);i=\"function\"==typeof i?i:window.moment,e.exports=function(t){function e(t,e){var n=t.options.time;if(\"string\"==typeof n.parser)return i(e,n.parser);if(\"function\"==typeof n.parser)return n.parser(e);if(\"function\"==typeof e.getMonth||\"number\"==typeof e)return i(e);if(e.isValid&&e.isValid())return e;var a=n.format;return\"string\"!=typeof a&&a.call?(console.warn(\"options.time.format is deprecated and replaced by options.time.parser.\"),a(e)):i(e,a)}function n(t,e,n,i){for(var a,o=Object.keys(l),r=o.length,s=o.indexOf(t);si;c++)s=a.steps[c],r=Math.ceil(u/(o*s));else for(;r>i&&i>0;)++s,r=Math.ceil(u/(o*s));return s}function o(t,e,n){var a=[];if(t.maxTicks){var o=t.stepSize;a.push(void 0!==t.min?t.min:n.min);for(var r=i(n.min);r.add(o,t.unit).valueOf()0&&a.add(1,\"week\"),a=a.valueOf()):(n=i(e.min).startOf(t.unit).valueOf(),a=i(e.max).startOf(t.unit),e.max-a>0&&a.add(1,t.unit),a=a.valueOf()),o(t,e,{min:n,max:a})};var u=t.Scale.extend({initialize:function(){if(!i)throw new Error(\"Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com\");t.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var t,n=this,i=n.options.time,a=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,l=n.chart.data,s={labels:[],datasets:[]};r.each(l.labels,function(r,l){var u=e(n,r);u.isValid()&&(i.round&&u.startOf(i.round),t=u.valueOf(),a=Math.min(t,a),o=Math.max(t,o),s.labels[l]=t)}),r.each(l.datasets,function(l,u){var d=[];\"object\"==typeof l.data[0]&&null!==l.data[0]&&n.chart.isDatasetVisible(u)?r.each(l.data,function(r,l){var s=e(n,n.getRightValue(r));s.isValid()&&(i.round&&s.startOf(i.round),t=s.valueOf(),a=Math.min(t,a),o=Math.max(t,o),d[l]=t)}):d=s.labels.slice(),s.datasets[u]=d}),n.dataMin=a,n.dataMax=o,n._parsedData=s},buildTicks:function(){var i,o,l=this,s=l.options.time,u=l.dataMin,d=l.dataMax;if(s.min){var c=e(l,s.min);s.round&&c.round(s.round),i=c.valueOf()}s.max&&(o=e(l,s.max).valueOf());var h=l.getLabelCapacity(i||u),f=s.unit||n(s.minUnit,i||u,o||d,h);l.displayFormat=s.displayFormats[f];var g=s.stepSize||a(i||u,o||d,f,h);l.ticks=t.Ticks.generators.time({maxTicks:h,min:i,max:o,stepSize:g,unit:f,isoWeekday:s.isoWeekday},{min:u,max:d}),l.max=r.max(l.ticks),l.min=r.min(l.ticks)},getLabelForIndex:function(t,n){var i=this,a=i.chart.data.labels&&t0&&t.length===r.length)}function i(t,r){return t+r}function u(r,e,a){var n={point:void 0,points:void 0};return function(o){var c=r.chart.getElementAtEvent||r.chart.getPointAtEvent,i=r.chart.getElementsAtEvent||r.chart.getPointsAtEvent;if(i){var u=i.call(r.chart,o),l=c?c.call(r.chart,o)[0]:void 0;a!==!1&&(t.equals(n.points,u)||t.equals(n.point,l))||(n.point=l,n.points=u,r[e](u,o,l))}}}function l(a,n){for(var o=t.copy(n.chartColors||e.getOptions(a).chartColors||r.defaults.global.colors),c=o.length>16&255,a=r>>8&255,n=255&r;return[e,a,n]}function v(t){var r=t.match(/^rgba?\\(([\\d,.]+)\\)$/);if(!r)throw new Error(\"Cannot parse rgb value\");return t=r[1].split(\",\"),t.map(Number)}function C(t){return t.chartData&&t.chartData.length}function y(t){return\"function\"==typeof t.chartGetColor?t.chartGetColor:s}function b(t,r){var e=l(t,r);return Array.isArray(r.chartData[0])?m(r.chartLabels,r.chartData,r.chartSeries||[],e,r.chartDatasetOverride):w(r.chartLabels,r.chartData,e,r.chartDatasetOverride)}function m(r,e,a,n,o){return{labels:r,datasets:e.map(function(r,e){var c=t.extend({},n[e],{label:a[e],data:r});return o&&o.length>=e&&t.merge(c,o[e]),c})}}function w(r,e,a,n){var o={labels:r,datasets:[{data:e,backgroundColor:a.map(function(t){return t.pointBackgroundColor}),hoverBackgroundColor:a.map(function(t){return t.backgroundColor})}]};return n&&t.merge(o.datasets[0],n),o}function D(r,a){return t.extend({},e.getOptions(r),a.chartOptions)}function A(r,e){r.onclick=e.chartClick?u(e,\"chartClick\",!1):t.noop,r.onmousemove=e.chartHover?u(e,\"chartHover\",!0):t.noop}function B(t,r){Array.isArray(r.chartData[0])?r.chart.data.datasets.forEach(function(r,e){r.data=t[e]}):r.chart.data.datasets[0].data=t,r.chart.update(),r.$emit(\"chart-update\",r.chart)}function $(t){return!t||Array.isArray(t)&&!t.length||\"object\"==typeof t&&!Object.keys(t).length}function k(t,r,e,n){return!n.responsive||0!==e[0].clientHeight||(a(function(){o(t,r,e)},50,!1),!1)}function F(t){t.chart&&(t.chart.destroy(),t.$emit(\"chart-destroy\",t.chart))}return function(r){return{restrict:\"CA\",scope:{chartGetColor:\"=?\",chartType:\"=\",chartData:\"=?\",chartLabels:\"=?\",chartOptions:\"=?\",chartSeries:\"=?\",chartColors:\"=?\",chartClick:\"=?\",chartHover:\"=?\",chartDatasetOverride:\"=?\"},link:function(e,a){function i(t,n){if(!t||!t.length||Array.isArray(t[0])&&!t[0].length)return void F(e);var i=r||e.chartType;if(i)return e.chart&&c(t,n)?B(t,e):void o(i,e,a)}function u(n,c){if(!$(n)&&!t.equals(n,c)){var i=r||e.chartType;i&&o(i,e,a)}}function l(r,n){$(r)||t.equals(r,n)||o(r,e,a)}n&&window.G_vmlCanvasManager.initElement(a[0]),e.$watch(\"chartData\",i,!0),e.$watch(\"chartSeries\",u,!0),e.$watch(\"chartLabels\",u,!0),e.$watch(\"chartOptions\",u,!0),e.$watch(\"chartColors\",u,!0),e.$watch(\"chartDatasetOverride\",u,!0),e.$watch(\"chartType\",l,!1),e.$on(\"$destroy\",function(){F(e)}),e.$on(\"$resize\",function(){e.chart&&e.chart.resize()})}}}}r.defaults.global.multiTooltipTemplate=\"<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%= value %>\",r.defaults.global.tooltips.mode=\"label\",r.defaults.global.elements.line.borderWidth=2,r.defaults.global.elements.rectangle.borderWidth=2,r.defaults.global.legend.display=!1,r.defaults.global.colors=[\"#97BBCD\",\"#DCDCDC\",\"#F7464A\",\"#46BFBD\",\"#FDB45C\",\"#949FB1\",\"#4D5360\"];var n=\"object\"==typeof window.G_vmlCanvasManager&&null!==window.G_vmlCanvasManager&&\"function\"==typeof window.G_vmlCanvasManager.initElement;return n&&(r.defaults.global.animation=!1),t.module(\"chart.js\",[]).provider(\"ChartJs\",e).factory(\"ChartJsFactory\",[\"ChartJs\",\"$timeout\",a]).directive(\"chartBase\",[\"ChartJsFactory\",function(t){return new t}]).directive(\"chartLine\",[\"ChartJsFactory\",function(t){return new t(\"line\")}]).directive(\"chartBar\",[\"ChartJsFactory\",function(t){return new t(\"bar\")}]).directive(\"chartHorizontalBar\",[\"ChartJsFactory\",function(t){return new t(\"horizontalBar\")}]).directive(\"chartRadar\",[\"ChartJsFactory\",function(t){return new t(\"radar\")}]).directive(\"chartDoughnut\",[\"ChartJsFactory\",function(t){return new t(\"doughnut\")}]).directive(\"chartPie\",[\"ChartJsFactory\",function(t){return new t(\"pie\")}]).directive(\"chartPolarArea\",[\"ChartJsFactory\",function(t){return new t(\"polarArea\")}]).directive(\"chartBubble\",[\"ChartJsFactory\",function(t){return new t(\"bubble\")}]).name});\n//# sourceMappingURL=angular-chart.min.js.map\n","/*\r\nTrix 1.0.0\r\nCopyright © 2018 Basecamp, LLC\r\nhttp://trix-editor.org/\r\n */\r\n(function () { }).call(this), function () { var t; null == window.Set && (window.Set = t = function () { function t() { this.clear() } return t.prototype.clear = function () { return this.values = [] }, t.prototype.has = function (t) { return -1 !== this.values.indexOf(t) }, t.prototype.add = function (t) { return this.has(t) || this.values.push(t), this }, t.prototype[\"delete\"] = function (t) { var e; return -1 === (e = this.values.indexOf(t)) ? !1 : (this.values.splice(e, 1), !0) }, t.prototype.forEach = function () { var t; return (t = this.values).forEach.apply(t, arguments) }, t }()) }.call(this), function (t) { function e() { } function n(t, e) { return function () { t.apply(e, arguments) } } function i(t) { if (\"object\" != typeof this) throw new TypeError(\"Promises must be constructed via new\"); if (\"function\" != typeof t) throw new TypeError(\"not a function\"); this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], c(t, this) } function o(t, e) { for (; 3 === t._state;)t = t._value; return 0 === t._state ? void t._deferreds.push(e) : (t._handled = !0, void h(function () { var n = 1 === t._state ? e.onFulfilled : e.onRejected; if (null === n) return void (1 === t._state ? r : s)(e.promise, t._value); var i; try { i = n(t._value) } catch (o) { return void s(e.promise, o) } r(e.promise, i) })) } function r(t, e) { try { if (e === t) throw new TypeError(\"A promise cannot be resolved with itself.\"); if (e && (\"object\" == typeof e || \"function\" == typeof e)) { var o = e.then; if (e instanceof i) return t._state = 3, t._value = e, void a(t); if (\"function\" == typeof o) return void c(n(o, e), t) } t._state = 1, t._value = e, a(t) } catch (r) { s(t, r) } } function s(t, e) { t._state = 2, t._value = e, a(t) } function a(t) { 2 === t._state && 0 === t._deferreds.length && setTimeout(function () { t._handled || p(t._value) }, 1); for (var e = 0, n = t._deferreds.length; n > e; e++)o(t, t._deferreds[e]); t._deferreds = null } function u(t, e, n) { this.onFulfilled = \"function\" == typeof t ? t : null, this.onRejected = \"function\" == typeof e ? e : null, this.promise = n } function c(t, e) { var n = !1; try { t(function (t) { n || (n = !0, r(e, t)) }, function (t) { n || (n = !0, s(e, t)) }) } catch (i) { if (n) return; n = !0, s(e, i) } } var l = setTimeout, h = \"function\" == typeof setImmediate && setImmediate || function (t) { l(t, 1) }, p = function (t) { \"undefined\" != typeof console && console && console.warn(\"Possible Unhandled Promise Rejection:\", t) }; i.prototype[\"catch\"] = function (t) { return this.then(null, t) }, i.prototype.then = function (t, n) { var r = new i(e); return o(this, new u(t, n, r)), r }, i.all = function (t) { var e = Array.prototype.slice.call(t); return new i(function (t, n) { function i(r, s) { try { if (s && (\"object\" == typeof s || \"function\" == typeof s)) { var a = s.then; if (\"function\" == typeof a) return void a.call(s, function (t) { i(r, t) }, n) } e[r] = s, 0 === --o && t(e) } catch (u) { n(u) } } if (0 === e.length) return t([]); for (var o = e.length, r = 0; r < e.length; r++)i(r, e[r]) }) }, i.resolve = function (t) { return t && \"object\" == typeof t && t.constructor === i ? t : new i(function (e) { e(t) }) }, i.reject = function (t) { return new i(function (e, n) { n(t) }) }, i.race = function (t) { return new i(function (e, n) { for (var i = 0, o = t.length; o > i; i++)t[i].then(e, n) }) }, i._setImmediateFn = function (t) { h = t }, i._setUnhandledRejectionFn = function (t) { p = t }, \"undefined\" != typeof module && module.exports ? module.exports = i : t.Promise || (t.Promise = i) }(this), function () {\r\n var t = \"object\" == typeof window.customElements, e = \"function\" == typeof document.registerElement, n = t || e; n || (/**\r\n * @license\r\n * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.\r\n * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\r\n * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\r\n * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\r\n * Code distributed by Google as part of the polymer project is also\r\n * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\r\n */\r\n \"undefined\" == typeof WeakMap && !function () { var t = Object.defineProperty, e = Date.now() % 1e9, n = function () { this.name = \"__st\" + (1e9 * Math.random() >>> 0) + (e++ + \"__\") }; n.prototype = { set: function (e, n) { var i = e[this.name]; return i && i[0] === e ? i[1] = n : t(e, this.name, { value: [e, n], writable: !0 }), this }, get: function (t) { var e; return (e = t[this.name]) && e[0] === t ? e[1] : void 0 }, \"delete\": function (t) { var e = t[this.name]; return e && e[0] === t ? (e[0] = e[1] = void 0, !0) : !1 }, has: function (t) { var e = t[this.name]; return e ? e[0] === t : !1 } }, window.WeakMap = n }(), function (t) { function e(t) { A.push(t), b || (b = !0, g(i)) } function n(t) { return window.ShadowDOMPolyfill && window.ShadowDOMPolyfill.wrapIfNeeded(t) || t } function i() { b = !1; var t = A; A = [], t.sort(function (t, e) { return t.uid_ - e.uid_ }); var e = !1; t.forEach(function (t) { var n = t.takeRecords(); o(t), n.length && (t.callback_(n, t), e = !0) }), e && i() } function o(t) { t.nodes_.forEach(function (e) { var n = m.get(e); n && n.forEach(function (e) { e.observer === t && e.removeTransientObservers() }) }) } function r(t, e) { for (var n = t; n; n = n.parentNode) { var i = m.get(n); if (i) for (var o = 0; o < i.length; o++) { var r = i[o], s = r.options; if (n === t || s.subtree) { var a = e(s); a && r.enqueue(a) } } } } function s(t) { this.callback_ = t, this.nodes_ = [], this.records_ = [], this.uid_ = ++x } function a(t, e) { this.type = t, this.target = e, this.addedNodes = [], this.removedNodes = [], this.previousSibling = null, this.nextSibling = null, this.attributeName = null, this.attributeNamespace = null, this.oldValue = null } function u(t) { var e = new a(t.type, t.target); return e.addedNodes = t.addedNodes.slice(), e.removedNodes = t.removedNodes.slice(), e.previousSibling = t.previousSibling, e.nextSibling = t.nextSibling, e.attributeName = t.attributeName, e.attributeNamespace = t.attributeNamespace, e.oldValue = t.oldValue, e } function c(t, e) { return C = new a(t, e) } function l(t) { return w ? w : (w = u(C), w.oldValue = t, w) } function h() { C = w = void 0 } function p(t) { return t === w || t === C } function d(t, e) { return t === e ? t : w && p(t) ? w : null } function f(t, e, n) { this.observer = t, this.target = e, this.options = n, this.transientObservedNodes = [] } if (!t.JsMutationObserver) { var g, m = new WeakMap; if (/Trident|Edge/.test(navigator.userAgent)) g = setTimeout; else if (window.setImmediate) g = window.setImmediate; else { var y = [], v = String(Math.random()); window.addEventListener(\"message\", function (t) { if (t.data === v) { var e = y; y = [], e.forEach(function (t) { t() }) } }), g = function (t) { y.push(t), window.postMessage(v, \"*\") } } var b = !1, A = [], x = 0; s.prototype = { observe: function (t, e) { if (t = n(t), !e.childList && !e.attributes && !e.characterData || e.attributeOldValue && !e.attributes || e.attributeFilter && e.attributeFilter.length && !e.attributes || e.characterDataOldValue && !e.characterData) throw new SyntaxError; var i = m.get(t); i || m.set(t, i = []); for (var o, r = 0; r < i.length; r++)if (i[r].observer === this) { o = i[r], o.removeListeners(), o.options = e; break } o || (o = new f(this, t, e), i.push(o), this.nodes_.push(t)), o.addListeners() }, disconnect: function () { this.nodes_.forEach(function (t) { for (var e = m.get(t), n = 0; n < e.length; n++) { var i = e[n]; if (i.observer === this) { i.removeListeners(), e.splice(n, 1); break } } }, this), this.records_ = [] }, takeRecords: function () { var t = this.records_; return this.records_ = [], t } }; var C, w; f.prototype = { enqueue: function (t) { var n = this.observer.records_, i = n.length; if (n.length > 0) { var o = n[i - 1], r = d(o, t); if (r) return void (n[i - 1] = r) } else e(this.observer); n[i] = t }, addListeners: function () { this.addListeners_(this.target) }, addListeners_: function (t) { var e = this.options; e.attributes && t.addEventListener(\"DOMAttrModified\", this, !0), e.characterData && t.addEventListener(\"DOMCharacterDataModified\", this, !0), e.childList && t.addEventListener(\"DOMNodeInserted\", this, !0), (e.childList || e.subtree) && t.addEventListener(\"DOMNodeRemoved\", this, !0) }, removeListeners: function () { this.removeListeners_(this.target) }, removeListeners_: function (t) { var e = this.options; e.attributes && t.removeEventListener(\"DOMAttrModified\", this, !0), e.characterData && t.removeEventListener(\"DOMCharacterDataModified\", this, !0), e.childList && t.removeEventListener(\"DOMNodeInserted\", this, !0), (e.childList || e.subtree) && t.removeEventListener(\"DOMNodeRemoved\", this, !0) }, addTransientObserver: function (t) { if (t !== this.target) { this.addListeners_(t), this.transientObservedNodes.push(t); var e = m.get(t); e || m.set(t, e = []), e.push(this) } }, removeTransientObservers: function () { var t = this.transientObservedNodes; this.transientObservedNodes = [], t.forEach(function (t) { this.removeListeners_(t); for (var e = m.get(t), n = 0; n < e.length; n++)if (e[n] === this) { e.splice(n, 1); break } }, this) }, handleEvent: function (t) { switch (t.stopImmediatePropagation(), t.type) { case \"DOMAttrModified\": var e = t.attrName, n = t.relatedNode.namespaceURI, i = t.target, o = new c(\"attributes\", i); o.attributeName = e, o.attributeNamespace = n; var s = t.attrChange === MutationEvent.ADDITION ? null : t.prevValue; r(i, function (t) { return !t.attributes || t.attributeFilter && t.attributeFilter.length && -1 === t.attributeFilter.indexOf(e) && -1 === t.attributeFilter.indexOf(n) ? void 0 : t.attributeOldValue ? l(s) : o }); break; case \"DOMCharacterDataModified\": var i = t.target, o = c(\"characterData\", i), s = t.prevValue; r(i, function (t) { return t.characterData ? t.characterDataOldValue ? l(s) : o : void 0 }); break; case \"DOMNodeRemoved\": this.addTransientObserver(t.target); case \"DOMNodeInserted\": var a, u, p = t.target; \"DOMNodeInserted\" === t.type ? (a = [p], u = []) : (a = [], u = [p]); var d = p.previousSibling, f = p.nextSibling, o = c(\"childList\", t.target.parentNode); o.addedNodes = a, o.removedNodes = u, o.previousSibling = d, o.nextSibling = f, r(t.relatedNode, function (t) { return t.childList ? o : void 0 }) }h() } }, t.JsMutationObserver = s, t.MutationObserver || (t.MutationObserver = s, s._isPolyfilled = !0) } }(self), function () { \"use strict\"; if (!window.performance || !window.performance.now) { var t = Date.now(); window.performance = { now: function () { return Date.now() - t } } } window.requestAnimationFrame || (window.requestAnimationFrame = function () { var t = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame; return t ? function (e) { return t(function () { e(performance.now()) }) } : function (t) { return window.setTimeout(t, 1e3 / 60) } }()), window.cancelAnimationFrame || (window.cancelAnimationFrame = function () { return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function (t) { clearTimeout(t) } }()); var e = function () { var t = document.createEvent(\"Event\"); return t.initEvent(\"foo\", !0, !0), t.preventDefault(), t.defaultPrevented }(); if (!e) { var n = Event.prototype.preventDefault; Event.prototype.preventDefault = function () { this.cancelable && (n.call(this), Object.defineProperty(this, \"defaultPrevented\", { get: function () { return !0 }, configurable: !0 })) } } var i = /Trident/.test(navigator.userAgent); if ((!window.CustomEvent || i && \"function\" != typeof window.CustomEvent) && (window.CustomEvent = function (t, e) { e = e || {}; var n = document.createEvent(\"CustomEvent\"); return n.initCustomEvent(t, Boolean(e.bubbles), Boolean(e.cancelable), e.detail), n }, window.CustomEvent.prototype = window.Event.prototype), !window.Event || i && \"function\" != typeof window.Event) { var o = window.Event; window.Event = function (t, e) { e = e || {}; var n = document.createEvent(\"Event\"); return n.initEvent(t, Boolean(e.bubbles), Boolean(e.cancelable)), n }, window.Event.prototype = o.prototype } }(window.WebComponents), window.CustomElements = window.CustomElements || { flags: {} }, function (t) { var e = t.flags, n = [], i = function (t) { n.push(t) }, o = function () { n.forEach(function (e) { e(t) }) }; t.addModule = i, t.initializeModules = o, t.hasNative = Boolean(document.registerElement), t.isIE = /Trident/.test(navigator.userAgent), t.useNative = !e.register && t.hasNative && !window.ShadowDOMPolyfill && (!window.HTMLImports || window.HTMLImports.useNative) }(window.CustomElements), window.CustomElements.addModule(function (t) { function e(t, e) { n(t, function (t) { return e(t) ? !0 : void i(t, e) }), i(t, e) } function n(t, e, i) { var o = t.firstElementChild; if (!o) for (o = t.firstChild; o && o.nodeType !== Node.ELEMENT_NODE;)o = o.nextSibling; for (; o;)e(o, i) !== !0 && n(o, e, i), o = o.nextElementSibling; return null } function i(t, n) { for (var i = t.shadowRoot; i;)e(i, n), i = i.olderShadowRoot } function o(t, e) { r(t, e, []) } function r(t, e, n) { if (t = window.wrap(t), !(n.indexOf(t) >= 0)) { n.push(t); for (var i, o = t.querySelectorAll(\"link[rel=\" + s + \"]\"), a = 0, u = o.length; u > a && (i = o[a]); a++)i.import && r(i.import, e, n); e(t) } } var s = window.HTMLImports ? window.HTMLImports.IMPORT_LINK_TYPE : \"none\"; t.forDocumentTree = o, t.forSubtree = e }), window.CustomElements.addModule(function (t) { function e(t, e) { return n(t, e) || i(t, e) } function n(e, n) { return t.upgrade(e, n) ? !0 : void (n && s(e)) } function i(t, e) { b(t, function (t) { return n(t, e) ? !0 : void 0 }) } function o(t) { w.push(t), C || (C = !0, setTimeout(r)) } function r() { C = !1; for (var t, e = w, n = 0, i = e.length; i > n && (t = e[n]); n++)t(); w = [] } function s(t) { x ? o(function () { a(t) }) : a(t) } function a(t) { t.__upgraded__ && !t.__attached && (t.__attached = !0, t.attachedCallback && t.attachedCallback()) } function u(t) { c(t), b(t, function (t) { c(t) }) } function c(t) { x ? o(function () { l(t) }) : l(t) } function l(t) { t.__upgraded__ && t.__attached && (t.__attached = !1, t.detachedCallback && t.detachedCallback()) } function h(t) { for (var e = t, n = window.wrap(document); e;) { if (e == n) return !0; e = e.parentNode || e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && e.host } } function p(t) { if (t.shadowRoot && !t.shadowRoot.__watched) { v.dom && console.log(\"watching shadow-root for: \", t.localName); for (var e = t.shadowRoot; e;)g(e), e = e.olderShadowRoot } } function d(t, n) { if (v.dom) { var i = n[0]; if (i && \"childList\" === i.type && i.addedNodes && i.addedNodes) { for (var o = i.addedNodes[0]; o && o !== document && !o.host;)o = o.parentNode; var r = o && (o.URL || o._URL || o.host && o.host.localName) || \"\"; r = r.split(\"/?\").shift().split(\"/\").pop() } console.group(\"mutations (%d) [%s]\", n.length, r || \"\") } var s = h(t); n.forEach(function (t) { \"childList\" === t.type && (E(t.addedNodes, function (t) { t.localName && e(t, s) }), E(t.removedNodes, function (t) { t.localName && u(t) })) }), v.dom && console.groupEnd() } function f(t) { for (t = window.wrap(t), t || (t = window.wrap(document)); t.parentNode;)t = t.parentNode; var e = t.__observer; e && (d(t, e.takeRecords()), r()) } function g(t) { if (!t.__observer) { var e = new MutationObserver(d.bind(this, t)); e.observe(t, { childList: !0, subtree: !0 }), t.__observer = e } } function m(t) { t = window.wrap(t), v.dom && console.group(\"upgradeDocument: \", t.baseURI.split(\"/\").pop()); var n = t === window.wrap(document); e(t, n), g(t), v.dom && console.groupEnd() } function y(t) { A(t, m) } var v = t.flags, b = t.forSubtree, A = t.forDocumentTree, x = window.MutationObserver._isPolyfilled && v[\"throttle-attached\"]; t.hasPolyfillMutations = x, t.hasThrottledAttached = x; var C = !1, w = [], E = Array.prototype.forEach.call.bind(Array.prototype.forEach), S = Element.prototype.createShadowRoot; S && (Element.prototype.createShadowRoot = function () { var t = S.call(this); return window.CustomElements.watchShadow(this), t }), t.watchShadow = p, t.upgradeDocumentTree = y, t.upgradeDocument = m, t.upgradeSubtree = i, t.upgradeAll = e, t.attached = s, t.takeRecords = f }), window.CustomElements.addModule(function (t) { function e(e, i) { if (\"template\" === e.localName && window.HTMLTemplateElement && HTMLTemplateElement.decorate && HTMLTemplateElement.decorate(e), !e.__upgraded__ && e.nodeType === Node.ELEMENT_NODE) { var o = e.getAttribute(\"is\"), r = t.getRegisteredDefinition(e.localName) || t.getRegisteredDefinition(o); if (r && (o && r.tag == e.localName || !o && !r.extends)) return n(e, r, i) } } function n(e, n, o) { return s.upgrade && console.group(\"upgrade:\", e.localName), n.is && e.setAttribute(\"is\", n.is), i(e, n), e.__upgraded__ = !0, r(e), o && t.attached(e), t.upgradeSubtree(e, o), s.upgrade && console.groupEnd(), e } function i(t, e) { Object.__proto__ ? t.__proto__ = e.prototype : (o(t, e.prototype, e.native), t.__proto__ = e.prototype) } function o(t, e, n) { for (var i = {}, o = e; o !== n && o !== HTMLElement.prototype;) { for (var r, s = Object.getOwnPropertyNames(o), a = 0; r = s[a]; a++)i[r] || (Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(o, r)), i[r] = 1); o = Object.getPrototypeOf(o) } } function r(t) { t.createdCallback && t.createdCallback() } var s = t.flags; t.upgrade = e, t.upgradeWithDefinition = n, t.implementPrototype = i }), window.CustomElements.addModule(function (t) { function e(e, i) { var u = i || {}; if (!e) throw new Error(\"document.registerElement: first argument `name` must not be empty\"); if (e.indexOf(\"-\") < 0) throw new Error(\"document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '\" + String(e) + \"'.\"); if (o(e)) throw new Error(\"Failed to execute 'registerElement' on 'Document': Registration failed for type '\" + String(e) + \"'. The type name is invalid.\"); if (c(e)) throw new Error(\"DuplicateDefinitionError: a type with name '\" + String(e) + \"' is already registered\"); return u.prototype || (u.prototype = Object.create(HTMLElement.prototype)), u.__name = e.toLowerCase(), u.extends && (u.extends = u.extends.toLowerCase()), u.lifecycle = u.lifecycle || {}, u.ancestry = r(u.extends), s(u), a(u), n(u.prototype), l(u.__name, u), u.ctor = h(u), u.ctor.prototype = u.prototype, u.prototype.constructor = u.ctor, t.ready && m(document), u.ctor } function n(t) { if (!t.setAttribute._polyfilled) { var e = t.setAttribute; t.setAttribute = function (t, n) { i.call(this, t, n, e) }; var n = t.removeAttribute; t.removeAttribute = function (t) { i.call(this, t, null, n) }, t.setAttribute._polyfilled = !0 } } function i(t, e, n) { t = t.toLowerCase(); var i = this.getAttribute(t); n.apply(this, arguments); var o = this.getAttribute(t); this.attributeChangedCallback && o !== i && this.attributeChangedCallback(t, i, o) } function o(t) { for (var e = 0; e < x.length; e++)if (t === x[e]) return !0 } function r(t) { var e = c(t); return e ? r(e.extends).concat([e]) : [] } function s(t) { for (var e, n = t.extends, i = 0; e = t.ancestry[i]; i++)n = e.is && e.tag; t.tag = n || t.__name, n && (t.is = t.__name) } function a(t) { if (!Object.__proto__) { var e = HTMLElement.prototype; if (t.is) { var n = document.createElement(t.tag); e = Object.getPrototypeOf(n) } for (var i, o = t.prototype, r = !1; o;)o == e && (r = !0), i = Object.getPrototypeOf(o), i && (o.__proto__ = i), o = i; r || console.warn(t.tag + \" prototype not found in prototype chain for \" + t.is), t.native = e } } function u(t) { return v(E(t.tag), t) } function c(t) { return t ? C[t.toLowerCase()] : void 0 } function l(t, e) { C[t] = e } function h(t) { return function () { return u(t) } } function p(t, e, n) { return t === w ? d(e, n) : S(t, e) } function d(t, e) { t && (t = t.toLowerCase()), e && (e = e.toLowerCase()); var n = c(e || t); if (n) { if (t == n.tag && e == n.is) return new n.ctor; if (!e && !n.is) return new n.ctor } var i; return e ? (i = d(t), i.setAttribute(\"is\", e), i) : (i = E(t), t.indexOf(\"-\") >= 0 && b(i, HTMLElement), i) } function f(t, e) { var n = t[e]; t[e] = function () { var t = n.apply(this, arguments); return y(t), t } } var g, m = (t.isIE, t.upgradeDocumentTree), y = t.upgradeAll, v = t.upgradeWithDefinition, b = t.implementPrototype, A = t.useNative, x = [\"annotation-xml\", \"color-profile\", \"font-face\", \"font-face-src\", \"font-face-uri\", \"font-face-format\", \"font-face-name\", \"missing-glyph\"], C = {}, w = \"http://www.w3.org/1999/xhtml\", E = document.createElement.bind(document), S = document.createElementNS.bind(document); g = Object.__proto__ || A ? function (t, e) { return t instanceof e } : function (t, e) { if (t instanceof e) return !0; for (var n = t; n;) { if (n === e.prototype) return !0; n = n.__proto__ } return !1 }, f(Node.prototype, \"cloneNode\"), f(document, \"importNode\"), document.registerElement = e, document.createElement = d, document.createElementNS = p, t.registry = C, t.instanceof = g, t.reservedTagList = x, t.getRegisteredDefinition = c, document.register = document.registerElement }), function (t) { function e() { r(window.wrap(document)), window.CustomElements.ready = !0; var t = window.requestAnimationFrame || function (t) { setTimeout(t, 16) }; t(function () { setTimeout(function () { window.CustomElements.readyTime = Date.now(), window.HTMLImports && (window.CustomElements.elapsed = window.CustomElements.readyTime - window.HTMLImports.readyTime), document.dispatchEvent(new CustomEvent(\"WebComponentsReady\", { bubbles: !0 })) }) }) } var n = t.useNative, i = t.initializeModules; if (t.isIE, n) { var o = function () { }; t.watchShadow = o, t.upgrade = o, t.upgradeAll = o, t.upgradeDocumentTree = o, t.upgradeSubtree = o, t.takeRecords = o, t.instanceof = function (t, e) { return t instanceof e } } else i(); var r = t.upgradeDocumentTree, s = t.upgradeDocument; if (window.wrap || (window.ShadowDOMPolyfill ? (window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded, window.unwrap = window.ShadowDOMPolyfill.unwrapIfNeeded) : window.wrap = window.unwrap = function (t) { return t }), window.HTMLImports && (window.HTMLImports.__importsParsingHook = function (t) { t.import && s(wrap(t.import)) }), \"complete\" === document.readyState || t.flags.eager) e(); else if (\"interactive\" !== document.readyState || window.attachEvent || window.HTMLImports && !window.HTMLImports.ready) { var a = window.HTMLImports && !window.HTMLImports.ready ? \"HTMLImportsLoaded\" : \"DOMContentLoaded\"; window.addEventListener(a, e) } else e() }(window.CustomElements))\r\n}.call(this), function () { }.call(this), function () {\r\n var t = this; (function () { (function () { this.Trix = { VERSION: \"1.0.0\", ZERO_WIDTH_SPACE: \"\\ufeff\", NON_BREAKING_SPACE: \"\\xa0\", OBJECT_REPLACEMENT_CHARACTER: \"\\ufffc\", browser: { composesExistingText: /Android.*Chrome/.test(navigator.userAgent), forcesObjectResizing: /Trident.*rv:11/.test(navigator.userAgent) }, config: {} } }).call(this) }).call(t); var e = t.Trix; (function () {\r\n (function () { e.BasicObject = function () { function t() { } var e, n, i; return t.proxyMethod = function (t) { var i, o, r, s, a; return r = n(t), i = r.name, s = r.toMethod, a = r.toProperty, o = r.optional, this.prototype[i] = function () { var t, n; return t = null != s ? o ? \"function\" == typeof this[s] ? this[s]() : void 0 : this[s]() : null != a ? this[a] : void 0, o ? (n = null != t ? t[i] : void 0, null != n ? e.call(n, t, arguments) : void 0) : (n = t[i], e.call(n, t, arguments)) } }, n = function (t) { var e, n; if (!(n = t.match(i))) throw new Error(\"can't parse @proxyMethod expression: \" + t); return e = { name: n[4] }, null != n[2] ? e.toMethod = n[1] : e.toProperty = n[1], null != n[3] && (e.optional = !0), e }, e = Function.prototype.apply, i = /^(.+?)(\\(\\))?(\\?)?\\.(.+?)$/, t }() }).call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.Object = function (n) { function i() { this.id = ++o } var o; return t(i, n), o = 0, i.fromJSONString = function (t) { return this.fromJSON(JSON.parse(t)) }, i.prototype.hasSameConstructorAs = function (t) { return this.constructor === (null != t ? t.constructor : void 0) }, i.prototype.isEqualTo = function (t) { return this === t }, i.prototype.inspect = function () { var t, e, n; return t = function () { var t, i, o; i = null != (t = this.contentsForInspection()) ? t : {}, o = []; for (e in i) n = i[e], o.push(e + \"=\" + n); return o }.call(this), \"#<\" + this.constructor.name + \":\" + this.id + (t.length ? \" \" + t.join(\", \") : \"\") + \">\" }, i.prototype.contentsForInspection = function () { }, i.prototype.toJSONString = function () { return JSON.stringify(this) }, i.prototype.toUTF16String = function () { return e.UTF16String.box(this) }, i.prototype.getCacheKey = function () { return this.id.toString() }, i }(e.BasicObject) }.call(this), function () { e.extend = function (t) { var e, n; for (e in t) n = t[e], this[e] = n; return this } }.call(this), function () { e.extend({ defer: function (t) { return setTimeout(t, 1) } }) }.call(this), function () { var t, n; e.extend({ normalizeSpaces: function (t) { return t.replace(RegExp(\"\" + e.ZERO_WIDTH_SPACE, \"g\"), \"\").replace(RegExp(\"\" + e.NON_BREAKING_SPACE, \"g\"), \" \") }, normalizeNewlines: function (t) { return t.replace(/\\r\\n/g, \"\\n\") }, breakableWhitespacePattern: RegExp(\"[^\\\\S\" + e.NON_BREAKING_SPACE + \"]\"), squishBreakableWhitespace: function (t) { return t.replace(RegExp(\"\" + e.breakableWhitespacePattern.source, \"g\"), \" \").replace(/\\ {2,}/g, \" \") }, escapeHTML: function (t) { var e; return e = document.createElement(\"div\"), e.textContent = t, e.innerHTML }, summarizeStringChange: function (t, i) { var o, r, s, a; return t = e.UTF16String.box(t), i = e.UTF16String.box(i), i.length < t.length ? (r = n(t, i), a = r[0], o = r[1]) : (s = n(i, t), o = s[0], a = s[1]), { added: o, removed: a } } }), n = function (n, i) { var o, r, s, a, u; return n.isEqualTo(i) ? [\"\", \"\"] : (r = t(n, i), a = r.utf16String.length, s = a ? (u = r.offset, r, o = n.codepoints.slice(0, u).concat(n.codepoints.slice(u + a)), t(i, e.UTF16String.fromCodepoints(o))) : t(i, n), [r.utf16String.toString(), s.utf16String.toString()]) }, t = function (t, e) { var n, i, o; for (n = 0, i = t.length, o = e.length; i > n && t.charAt(n).isEqualTo(e.charAt(n));)n++; for (; i > n + 1 && t.charAt(i - 1).isEqualTo(e.charAt(o - 1));)i-- , o--; return { utf16String: t.slice(n, i), offset: n } } }.call(this), function () { e.extend({ copyObject: function (t) { var e, n, i; null == t && (t = {}), n = {}; for (e in t) i = t[e], n[e] = i; return n }, objectsAreEqual: function (t, e) { var n, i; if (null == t && (t = {}), null == e && (e = {}), Object.keys(t).length !== Object.keys(e).length) return !1; for (n in t) if (i = t[n], i !== e[n]) return !1; return !0 } }) }.call(this), function () { var t = [].slice; e.extend({ arraysAreEqual: function (t, e) { var n, i, o, r; if (null == t && (t = []), null == e && (e = []), t.length !== e.length) return !1; for (i = n = 0, o = t.length; o > n; i = ++n)if (r = t[i], r !== e[i]) return !1; return !0 }, arrayStartsWith: function (t, n) { return null == t && (t = []), null == n && (n = []), e.arraysAreEqual(t.slice(0, n.length), n) }, spliceArray: function () { var e, n, i; return n = arguments[0], e = 2 <= arguments.length ? t.call(arguments, 1) : [], i = n.slice(0), i.splice.apply(i, e), i }, summarizeArrayChange: function (t, e) { var n, i, o, r, s, a, u, c, l, h, p; for (null == t && (t = []), null == e && (e = []), n = [], h = [], o = new Set, r = 0, u = t.length; u > r; r++)p = t[r], o.add(p); for (i = new Set, s = 0, c = e.length; c > s; s++)p = e[s], i.add(p), o.has(p) || n.push(p); for (a = 0, l = t.length; l > a; a++)p = t[a], i.has(p) || h.push(p); return { added: n, removed: h } } }) }.call(this), function () { var t, n, i, o; t = null, n = null, o = null, i = null, e.extend({ getAllAttributeNames: function () { return null != t ? t : t = e.getTextAttributeNames().concat(e.getBlockAttributeNames()) }, getBlockConfig: function (t) { return e.config.blockAttributes[t] }, getBlockAttributeNames: function () { return null != n ? n : n = Object.keys(e.config.blockAttributes) }, getTextConfig: function (t) { return e.config.textAttributes[t] }, getTextAttributeNames: function () { return null != o ? o : o = Object.keys(e.config.textAttributes) }, getListAttributeNames: function () { var t, n; return null != i ? i : i = function () { var i, o; i = e.config.blockAttributes, o = []; for (t in i) n = i[t].listAttribute, null != n && o.push(n); return o }() } }) }.call(this), function () { var t, n, i, o, r, s = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; t = document.documentElement, n = null != (i = null != (o = null != (r = t.matchesSelector) ? r : t.webkitMatchesSelector) ? o : t.msMatchesSelector) ? i : t.mozMatchesSelector, e.extend({ handleEvent: function (n, i) { var o, r, s, a, u, c, l, h, p, d, f, g; return h = null != i ? i : {}, c = h.onElement, u = h.matchingSelector, g = h.withCallback, a = h.inPhase, l = h.preventDefault, d = h.times, r = null != c ? c : t, p = u, o = g, f = \"capturing\" === a, s = function (t) { var n; return null != d && 0 === --d && s.destroy(), n = e.findClosestElementFromNode(t.target, { matchingSelector: p }), null != n && (null != g && g.call(n, t, n), l) ? t.preventDefault() : void 0 }, s.destroy = function () { return r.removeEventListener(n, s, f) }, r.addEventListener(n, s, f), s }, handleEventOnce: function (t, n) { return null == n && (n = {}), n.times = 1, e.handleEvent(t, n) }, triggerEvent: function (n, i) { var o, r, s, a, u, c, l; return l = null != i ? i : {}, c = l.onElement, r = l.bubbles, s = l.cancelable, o = l.attributes, a = null != c ? c : t, r = r !== !1, s = s !== !1, u = document.createEvent(\"Events\"), u.initEvent(n, r, s), null != o && e.extend.call(u, o), a.dispatchEvent(u) }, elementMatchesSelector: function (t, e) { return 1 === (null != t ? t.nodeType : void 0) ? n.call(t, e) : void 0 }, findClosestElementFromNode: function (t, n) { var i, o, r; for (o = null != n ? n : {}, i = o.matchingSelector, r = o.untilNode; null != t && t.nodeType !== Node.ELEMENT_NODE;)t = t.parentNode; if (null != t) { if (null == i) return t; if (t.closest && null == r) return t.closest(i); for (; t && t !== r;) { if (e.elementMatchesSelector(t, i)) return t; t = t.parentNode } } }, findInnerElement: function (t) { for (; null != t ? t.firstElementChild : void 0;)t = t.firstElementChild; return t }, innerElementIsActive: function (t) { return document.activeElement !== t && e.elementContainsNode(t, document.activeElement) }, elementContainsNode: function (t, e) { if (t && e) for (; e;) { if (e === t) return !0; e = e.parentNode } }, findNodeFromContainerAndOffset: function (t, e) { var n; if (t) return t.nodeType === Node.TEXT_NODE ? t : 0 === e ? null != (n = t.firstChild) ? n : t : t.childNodes.item(e - 1) }, findElementFromContainerAndOffset: function (t, n) { var i; return i = e.findNodeFromContainerAndOffset(t, n), e.findClosestElementFromNode(i) }, findChildIndexOfNode: function (t) { var e; if (null != t ? t.parentNode : void 0) { for (e = 0; t = t.previousSibling;)e++; return e } }, removeNode: function (t) { var e; return null != t && null != (e = t.parentNode) ? e.removeChild(t) : void 0 }, walkTree: function (t, e) { var n, i, o, r, s; return o = null != e ? e : {}, i = o.onlyNodesOfType, r = o.usingFilter, n = o.expandEntityReferences, s = function () { switch (i) { case \"element\": return NodeFilter.SHOW_ELEMENT; case \"text\": return NodeFilter.SHOW_TEXT; case \"comment\": return NodeFilter.SHOW_COMMENT; default: return NodeFilter.SHOW_ALL } }(), document.createTreeWalker(t, s, null != r ? r : null, n === !0) }, tagName: function (t) { var e; return null != t && null != (e = t.tagName) ? e.toLowerCase() : void 0 }, makeElement: function (t, e) { var n, i, o, r, s, a, u, c, l, h; if (null == e && (e = {}), \"object\" == typeof t ? (e = t, t = e.tagName) : e = { attributes: e }, i = document.createElement(t), null != e.editable && (null == e.attributes && (e.attributes = {}), e.attributes.contenteditable = e.editable), e.attributes) { a = e.attributes; for (r in a) h = a[r], i.setAttribute(r, h) } if (e.style) { u = e.style; for (r in u) h = u[r], i.style[r] = h } if (e.data) { c = e.data; for (r in c) h = c[r], i.dataset[r] = h } if (e.className) for (l = e.className.split(\" \"), o = 0, s = l.length; s > o; o++)n = l[o], i.classList.add(n); return e.textContent && (i.textContent = e.textContent), i }, getBlockTagNames: function () { var t, n; return null != e.blockTagNames ? e.blockTagNames : e.blockTagNames = function () { var i, o; i = e.config.blockAttributes, o = []; for (t in i) n = i[t].tagName, n && o.push(n); return o }() }, nodeIsBlockContainer: function (t) { return e.nodeIsBlockStartComment(null != t ? t.firstChild : void 0) }, nodeProbablyIsBlockContainer: function (t) { var n, i; return n = e.tagName(t), s.call(e.getBlockTagNames(), n) >= 0 && (i = e.tagName(t.firstChild), s.call(e.getBlockTagNames(), i) < 0) }, nodeIsBlockStart: function (t, n) { var i; return i = (null != n ? n : { strict: !0 }).strict, i ? e.nodeIsBlockStartComment(t) : e.nodeIsBlockStartComment(t) || !e.nodeIsBlockStartComment(t.firstChild) && e.nodeProbablyIsBlockContainer(t) }, nodeIsBlockStartComment: function (t) { return e.nodeIsCommentNode(t) && \"block\" === (null != t ? t.data : void 0) }, nodeIsCommentNode: function (t) { return (null != t ? t.nodeType : void 0) === Node.COMMENT_NODE }, nodeIsCursorTarget: function (t, n) { var i; return i = (null != n ? n : {}).name, t ? e.nodeIsTextNode(t) ? t.data === e.ZERO_WIDTH_SPACE ? i ? t.parentNode.dataset.trixCursorTarget === i : !0 : void 0 : e.nodeIsCursorTarget(t.firstChild) : void 0 }, nodeIsAttachmentElement: function (t) { return e.elementMatchesSelector(t, e.AttachmentView.attachmentSelector) }, nodeIsEmptyTextNode: function (t) { return e.nodeIsTextNode(t) && \"\" === (null != t ? t.data : void 0) }, nodeIsTextNode: function (t) { return (null != t ? t.nodeType : void 0) === Node.TEXT_NODE } }) }.call(this), function () { var t, n, i, o, r; t = e.copyObject, o = e.objectsAreEqual, e.extend({ normalizeRange: i = function (t) { var e; if (null != t) return Array.isArray(t) || (t = [t, t]), [n(t[0]), n(null != (e = t[1]) ? e : t[0])] }, rangeIsCollapsed: function (t) { var e, n, o; if (null != t) return n = i(t), o = n[0], e = n[1], r(o, e) }, rangesAreEqual: function (t, e) { var n, o, s, a, u, c; if (null != t && null != e) return s = i(t), o = s[0], n = s[1], a = i(e), c = a[0], u = a[1], r(o, c) && r(n, u) } }), n = function (e) { return \"number\" == typeof e ? e : t(e) }, r = function (t, e) { return \"number\" == typeof t ? t === e : o(t, e) } }.call(this), function () { var t, n, i, o, r; e.registerElement = function (t, e) { var s, a; return null == e && (e = {}), t = t.toLowerCase(), e = r(e), a = o(e), (s = a.defaultCSS) && (delete a.defaultCSS, n(s, t)), i(t, a) }, n = function (e, n) { var i; return i = t(n), i.textContent = e.replace(/%t/g, n) }, t = function (t) { var e; return e = document.createElement(\"style\"), e.setAttribute(\"type\", \"text/css\"), e.setAttribute(\"data-tag-name\", t.toLowerCase()), document.head.insertBefore(e, document.head.firstChild), e }, o = function (t) { var e, n, i; n = {}; for (e in t) i = t[e], n[e] = \"function\" == typeof i ? { value: i } : i; return n }, r = function () { var t; return t = function (t) { var e, n, i, o, r; for (e = {}, r = [\"initialize\", \"connect\", \"disconnect\"], n = 0, o = r.length; o > n; n++)i = r[n], e[i] = t[i], delete t[i]; return e }, window.customElements ? function (e) { var n, i, o, r, s; return s = t(e), o = s.initialize, n = s.connect, i = s.disconnect, o && (r = n, n = function () { return this.initialized || (this.initialized = !0, o.call(this)), null != r ? r.call(this) : void 0 }), n && (e.connectedCallback = n), i && (e.disconnectedCallback = i), e } : function (e) { var n, i, o, r; return r = t(e), o = r.initialize, n = r.connect, i = r.disconnect, o && (e.createdCallback = o), n && (e.attachedCallback = n), i && (e.detachedCallback = i), e } }(), i = function () { return window.customElements ? function (t, e) { var n; return n = function () { return Reflect.construct(HTMLElement, [], n) }, n.prototype = Object.create(HTMLElement.prototype, e), window.customElements.define(t, n), n } : function (t, e) { var n, i; return i = Object.create(HTMLElement.prototype, e), n = document.registerElement(t, { prototype: i }), Object.defineProperty(i, \"constructor\", { value: n }), n } }() }.call(this), function () { var t, n; e.extend({ getDOMSelection: function () { var t; return t = window.getSelection(), t.rangeCount > 0 ? t : void 0 }, getDOMRange: function () { var n, i; return (n = null != (i = e.getDOMSelection()) ? i.getRangeAt(0) : void 0) && !t(n) ? n : void 0 }, setDOMRange: function (t) { var n; return n = window.getSelection(), n.removeAllRanges(), n.addRange(t), e.selectionChangeObserver.update() } }), t = function (t) { return n(t.startContainer) || n(t.endContainer) }, n = function (t) { return !Object.getPrototypeOf(t) } }.call(this), function () { }.call(this), function () { var t, n = function (t, e) { function n() { this.constructor = t } for (var o in e) i.call(e, o) && (t[o] = e[o]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, i = {}.hasOwnProperty; t = e.arraysAreEqual, e.Hash = function (i) { function o(t) { null == t && (t = {}), this.values = s(t), o.__super__.constructor.apply(this, arguments) } var r, s, a, u, c; return n(o, i), o.fromCommonAttributesOfObjects = function (t) { var e, n, i, o, s, a; if (null == t && (t = []), !t.length) return new this; for (e = r(t[0]), i = e.getKeys(), a = t.slice(1), n = 0, o = a.length; o > n; n++)s = a[n], i = e.getKeysCommonToHash(r(s)), e = e.slice(i); return e }, o.box = function (t) { return r(t) }, o.prototype.add = function (t, e) { return this.merge(u(t, e)) }, o.prototype.remove = function (t) { return new e.Hash(s(this.values, t)) }, o.prototype.get = function (t) { return this.values[t] }, o.prototype.has = function (t) { return t in this.values }, o.prototype.merge = function (t) { return new e.Hash(a(this.values, c(t))) }, o.prototype.slice = function (t) { var n, i, o, r; for (r = {}, n = 0, o = t.length; o > n; n++)i = t[n], this.has(i) && (r[i] = this.values[i]); return new e.Hash(r) }, o.prototype.getKeys = function () { return Object.keys(this.values) }, o.prototype.getKeysCommonToHash = function (t) { var e, n, i, o, s; for (t = r(t), o = this.getKeys(), s = [], e = 0, i = o.length; i > e; e++)n = o[e], this.values[n] === t.values[n] && s.push(n); return s }, o.prototype.isEqualTo = function (e) { return t(this.toArray(), r(e).toArray()) }, o.prototype.isEmpty = function () { return 0 === this.getKeys().length }, o.prototype.toArray = function () { var t, e, n; return (null != this.array ? this.array : this.array = function () { var i; e = [], i = this.values; for (t in i) n = i[t], e.push(t, n); return e }.call(this)).slice(0) }, o.prototype.toObject = function () { return s(this.values) }, o.prototype.toJSON = function () { return this.toObject() }, o.prototype.contentsForInspection = function () { return { values: JSON.stringify(this.values) } }, u = function (t, e) { var n; return n = {}, n[t] = e, n }, a = function (t, e) { var n, i, o; i = s(t); for (n in e) o = e[n], i[n] = o; return i }, s = function (t, e) { var n, i, o, r, s; for (r = {}, s = Object.keys(t).sort(), n = 0, o = s.length; o > n; n++)i = s[n], i !== e && (r[i] = t[i]); return r }, r = function (t) { return t instanceof e.Hash ? t : new e.Hash(t) }, c = function (t) { return t instanceof e.Hash ? t.values : t }, o }(e.Object) }.call(this), function () { e.ObjectGroup = function () { function t(t, e) { var n, i; this.objects = null != t ? t : [], i = e.depth, n = e.asTree, n && (this.depth = i, this.objects = this.constructor.groupObjects(this.objects, { asTree: n, depth: this.depth + 1 })) } return t.groupObjects = function (t, e) { var n, i, o, r, s, a, u, c, l; for (null == t && (t = []), l = null != e ? e : {}, o = l.depth, n = l.asTree, n && null == o && (o = 0), c = [], s = 0, a = t.length; a > s; s++) { if (u = t[s], r) { if ((\"function\" == typeof u.canBeGrouped ? u.canBeGrouped(o) : void 0) && (\"function\" == typeof (i = r[r.length - 1]).canBeGroupedWith ? i.canBeGroupedWith(u, o) : void 0)) { r.push(u); continue } c.push(new this(r, { depth: o, asTree: n })), r = null } (\"function\" == typeof u.canBeGrouped ? u.canBeGrouped(o) : void 0) ? r = [u] : c.push(u) } return r && c.push(new this(r, { depth: o, asTree: n })), c }, t.prototype.getObjects = function () { return this.objects }, t.prototype.getDepth = function () { return this.depth }, t.prototype.getCacheKey = function () { var t, e, n, i, o; for (e = [\"objectGroup\"], o = this.getObjects(), t = 0, n = o.length; n > t; t++)i = o[t], e.push(i.getCacheKey()); return e.join(\"/\") }, t }() }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.ObjectMap = function (e) { function n(t) { var e, n, i, o, r; for (null == t && (t = []), this.objects = {}, i = 0, o = t.length; o > i; i++)r = t[i], n = JSON.stringify(r), null == (e = this.objects)[n] && (e[n] = r) } return t(n, e), n.prototype.find = function (t) { var e; return e = JSON.stringify(t), this.objects[e] }, n }(e.BasicObject) }.call(this), function () { e.ElementStore = function () { function t(t) { this.reset(t) } var e; return t.prototype.add = function (t) { var n; return n = e(t), this.elements[n] = t }, t.prototype.remove = function (t) { var n, i; return n = e(t), (i = this.elements[n]) ? (delete this.elements[n], i) : void 0 }, t.prototype.reset = function (t) { var e, n, i; for (null == t && (t = []), this.elements = {}, n = 0, i = t.length; i > n; n++)e = t[n], this.add(e); return t }, e = function (t) { return t.dataset.trixStoreKey }, t }() }.call(this), function () { }.call(this), function () {\r\n var t = function (t, e) {\r\n function i() {\r\n this.constructor = t\r\n } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t\r\n }, n = {}.hasOwnProperty; e.Operation = function (e) { function n() { return n.__super__.constructor.apply(this, arguments) } return t(n, e), n.prototype.isPerforming = function () { return this.performing === !0 }, n.prototype.hasPerformed = function () { return this.performed === !0 }, n.prototype.hasSucceeded = function () { return this.performed && this.succeeded }, n.prototype.hasFailed = function () { return this.performed && !this.succeeded }, n.prototype.getPromise = function () { return null != this.promise ? this.promise : this.promise = new Promise(function (t) { return function (e, n) { return t.performing = !0, t.perform(function (i, o) { return t.succeeded = i, t.performing = !1, t.performed = !0, t.succeeded ? e(o) : n(o) }) } }(this)) }, n.prototype.perform = function (t) { return t(!1) }, n.prototype.release = function () { var t; return null != (t = this.promise) && \"function\" == typeof t.cancel && t.cancel(), this.promise = null, this.performing = null, this.performed = null, this.succeeded = null }, n.proxyMethod(\"getPromise().then\"), n.proxyMethod(\"getPromise().catch\"), n }(e.BasicObject)\r\n }.call(this), function () { var t, n, i, o, r, s = function (t, e) { function n() { this.constructor = t } for (var i in e) a.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, a = {}.hasOwnProperty; e.UTF16String = function (t) { function e(t, e) { this.ucs2String = t, this.codepoints = e, this.length = this.codepoints.length, this.ucs2Length = this.ucs2String.length } return s(e, t), e.box = function (t) { return null == t && (t = \"\"), t instanceof this ? t : this.fromUCS2String(null != t ? t.toString() : void 0) }, e.fromUCS2String = function (t) { return new this(t, o(t)) }, e.fromCodepoints = function (t) { return new this(r(t), t) }, e.prototype.offsetToUCS2Offset = function (t) { return r(this.codepoints.slice(0, Math.max(0, t))).length }, e.prototype.offsetFromUCS2Offset = function (t) { return o(this.ucs2String.slice(0, Math.max(0, t))).length }, e.prototype.slice = function () { var t; return this.constructor.fromCodepoints((t = this.codepoints).slice.apply(t, arguments)) }, e.prototype.charAt = function (t) { return this.slice(t, t + 1) }, e.prototype.isEqualTo = function (t) { return this.constructor.box(t).ucs2String === this.ucs2String }, e.prototype.toJSON = function () { return this.ucs2String }, e.prototype.getCacheKey = function () { return this.ucs2String }, e.prototype.toString = function () { return this.ucs2String }, e }(e.BasicObject), t = 1 === (\"function\" == typeof Array.from ? Array.from(\"\\ud83d\\udc7c\").length : void 0), n = null != (\"function\" == typeof \" \".codePointAt ? \" \".codePointAt(0) : void 0), i = \" \\ud83d\\udc7c\" === (\"function\" == typeof String.fromCodePoint ? String.fromCodePoint(32, 128124) : void 0), o = t && n ? function (t) { return Array.from(t).map(function (t) { return t.codePointAt(0) }) } : function (t) { var e, n, i, o, r; for (o = [], e = 0, i = t.length; i > e;)r = t.charCodeAt(e++), r >= 55296 && 56319 >= r && i > e && (n = t.charCodeAt(e++), 56320 === (64512 & n) ? r = ((1023 & r) << 10) + (1023 & n) + 65536 : e--), o.push(r); return o }, r = i ? function (t) { return String.fromCodePoint.apply(String, t) } : function (t) { var e, n, i; return e = function () { var e, o, r; for (r = [], e = 0, o = t.length; o > e; e++)i = t[e], n = \"\", i > 65535 && (i -= 65536, n += String.fromCharCode(i >>> 10 & 1023 | 55296), i = 56320 | 1023 & i), r.push(n + String.fromCharCode(i)); return r }(), e.join(\"\") } }.call(this), function () { }.call(this), function () { }.call(this), function () { e.config.lang = { bold: \"Bold\", bullets: \"Bullets\", \"byte\": \"Byte\", bytes: \"Bytes\", captionPlaceholder: \"Add a caption\\u2026\", code: \"Code\", heading1: \"Heading\", indent: \"Increase Level\", italic: \"Italic\", link: \"Link\", numbers: \"Numbers\", outdent: \"Decrease Level\", quote: \"Quote\", redo: \"Redo\", remove: \"Remove\", strike: \"Strikethrough\", undo: \"Undo\", unlink: \"Unlink\", url: \"URL\", urlPlaceholder: \"Enter a URL\\u2026\", GB: \"GB\", KB: \"KB\", MB: \"MB\", PB: \"PB\", TB: \"TB\" } }.call(this), function () { e.config.css = { attachment: \"attachment\", attachmentCaption: \"attachment__caption\", attachmentCaptionEditor: \"attachment__caption-editor\", attachmentMetadata: \"attachment__metadata\", attachmentMetadataContainer: \"attachment__metadata-container\", attachmentName: \"attachment__name\", attachmentProgress: \"attachment__progress\", attachmentSize: \"attachment__size\", attachmentToolbar: \"attachment__toolbar\", attachmentGallery: \"attachment-gallery\" } }.call(this), function () { var t; e.config.blockAttributes = t = { \"default\": { tagName: \"div\", parse: !1 }, quote: { tagName: \"blockquote\", nestable: !0 }, heading1: { tagName: \"h1\", terminal: !0, breakOnReturn: !0, group: !1 }, code: { tagName: \"pre\", terminal: !0, text: { plaintext: !0 } }, bulletList: { tagName: \"ul\", parse: !1 }, bullet: { tagName: \"li\", listAttribute: \"bulletList\", group: !1, nestable: !0, test: function (n) { return e.tagName(n.parentNode) === t[this.listAttribute].tagName } }, numberList: { tagName: \"ol\", parse: !1 }, number: { tagName: \"li\", listAttribute: \"numberList\", group: !1, nestable: !0, test: function (n) { return e.tagName(n.parentNode) === t[this.listAttribute].tagName } }, attachmentGallery: { tagName: \"div\", exclusive: !0, terminal: !0, parse: !1, group: !1 } } }.call(this), function () { var t, n; t = e.config.lang, n = [t.bytes, t.KB, t.MB, t.GB, t.TB, t.PB], e.config.fileSize = { prefix: \"IEC\", precision: 2, formatter: function (e) { var i, o, r, s, a; switch (e) { case 0: return \"0 \" + t.bytes; case 1: return \"1 \" + t.byte; default: return i = function () { switch (this.prefix) { case \"SI\": return 1e3; case \"IEC\": return 1024 } }.call(this), o = Math.floor(Math.log(e) / Math.log(i)), r = e / Math.pow(i, o), s = r.toFixed(this.precision), a = s.replace(/0*$/, \"\").replace(/\\.$/, \"\"), a + \" \" + n[o] } } } }.call(this), function () { e.config.textAttributes = { bold: { tagName: \"strong\", inheritable: !0, parser: function (t) { var e; return e = window.getComputedStyle(t), \"bold\" === e.fontWeight || e.fontWeight >= 600 } }, italic: { tagName: \"em\", inheritable: !0, parser: function (t) { var e; return e = window.getComputedStyle(t), \"italic\" === e.fontStyle } }, href: { groupTagName: \"a\", parser: function (t) { var n, i, o; return n = e.AttachmentView.attachmentSelector, o = \"a:not(\" + n + \")\", (i = e.findClosestElementFromNode(t, { matchingSelector: o })) ? i.getAttribute(\"href\") : void 0 } }, strike: { tagName: \"del\", inheritable: !0 }, frozen: { style: { backgroundColor: \"highlight\" } } } }.call(this), function () { var t, n, i, o, r; r = \"[data-trix-serialize=false]\", o = [\"contenteditable\", \"data-trix-id\", \"data-trix-store-key\", \"data-trix-mutable\", \"data-trix-placeholder\", \"tabindex\"], n = \"data-trix-serialized-attributes\", i = \"[\" + n + \"]\", t = new RegExp(\"\", \"g\"), e.extend({ serializers: { \"application/json\": function (t) { var n; if (t instanceof e.Document) n = t; else { if (!(t instanceof HTMLElement)) throw new Error(\"unserializable object\"); n = e.Document.fromHTML(t.innerHTML) } return n.toSerializableDocument().toJSONString() }, \"text/html\": function (s) { var a, u, c, l, h, p, d, f, g, m, y, v, b, A, x, C, w; if (s instanceof e.Document) l = e.DocumentView.render(s); else { if (!(s instanceof HTMLElement)) throw new Error(\"unserializable object\"); l = s.cloneNode(!0) } for (A = l.querySelectorAll(r), h = 0, g = A.length; g > h; h++)c = A[h], e.removeNode(c); for (p = 0, m = o.length; m > p; p++)for (a = o[p], x = l.querySelectorAll(\"[\" + a + \"]\"), d = 0, y = x.length; y > d; d++)c = x[d], c.removeAttribute(a); for (C = l.querySelectorAll(i), f = 0, v = C.length; v > f; f++) { c = C[f]; try { u = JSON.parse(c.getAttribute(n)), c.removeAttribute(n); for (b in u) w = u[b], c.setAttribute(b, w) } catch (E) { } } return l.innerHTML.replace(t, \"\") } }, deserializers: { \"application/json\": function (t) { return e.Document.fromJSONString(t) }, \"text/html\": function (t) { return e.Document.fromHTML(t) } }, serializeToContentType: function (t, n) { var i; if (i = e.serializers[n]) return i(t); throw new Error(\"unknown content type: \" + n) }, deserializeFromContentType: function (t, n) { var i; if (i = e.deserializers[n]) return i(t); throw new Error(\"unknown content type: \" + n) } }) }.call(this), function () { var t; t = e.config.lang, e.config.toolbar = { getDefaultHTML: function () { return '
      \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n\\n \\n \\n \\n \\n
      \\n\\n
      \\n
      \\n \\n
      \\n
      ' } } }.call(this), function () { e.config.undoInterval = 5e3 }.call(this), function () { e.config.attachments = { preview: { presentation: \"gallery\", caption: { name: !0, size: !0 } }, file: { caption: { size: !0 } } } }.call(this), function () { }.call(this), function () { e.registerElement(\"trix-toolbar\", { defaultCSS: \"%t {\\n display: block;\\n}\\n\\n%t {\\n white-space: nowrap;\\n}\\n\\n%t [data-trix-dialog] {\\n display: none;\\n}\\n\\n%t [data-trix-dialog][data-trix-active] {\\n display: block;\\n}\\n\\n%t [data-trix-dialog] [data-trix-validate]:invalid {\\n background-color: #ffdddd;\\n}\", initialize: function () { return \"\" === this.innerHTML ? this.innerHTML = e.config.toolbar.getDefaultHTML() : void 0 } }) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty, i = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; e.ObjectView = function (n) { function o(t, e) { this.object = t, this.options = null != e ? e : {}, this.childViews = [], this.rootView = this } return t(o, n), o.prototype.getNodes = function () { var t, e, n, i, o; for (null == this.nodes && (this.nodes = this.createNodes()), i = this.nodes, o = [], t = 0, e = i.length; e > t; t++)n = i[t], o.push(n.cloneNode(!0)); return o }, o.prototype.invalidate = function () { var t; return this.nodes = null, null != (t = this.parentView) ? t.invalidate() : void 0 }, o.prototype.invalidateViewForObject = function (t) { var e; return null != (e = this.findViewForObject(t)) ? e.invalidate() : void 0 }, o.prototype.findOrCreateCachedChildView = function (t, e) { var n; return (n = this.getCachedViewForObject(e)) ? this.recordChildView(n) : (n = this.createChildView.apply(this, arguments), this.cacheViewForObject(n, e)), n }, o.prototype.createChildView = function (t, n, i) { var o; return null == i && (i = {}), n instanceof e.ObjectGroup && (i.viewClass = t, t = e.ObjectGroupView), o = new t(n, i), this.recordChildView(o) }, o.prototype.recordChildView = function (t) { return t.parentView = this, t.rootView = this.rootView, i.call(this.childViews, t) < 0 && this.childViews.push(t), t }, o.prototype.getAllChildViews = function () { var t, e, n, i, o; for (o = [], i = this.childViews, e = 0, n = i.length; n > e; e++)t = i[e], o.push(t), o = o.concat(t.getAllChildViews()); return o }, o.prototype.findElement = function () { return this.findElementForObject(this.object) }, o.prototype.findElementForObject = function (t) { var e; return (e = null != t ? t.id : void 0) ? this.rootView.element.querySelector(\"[data-trix-id='\" + e + \"']\") : void 0 }, o.prototype.findViewForObject = function (t) { var e, n, i, o; for (i = this.getAllChildViews(), e = 0, n = i.length; n > e; e++)if (o = i[e], o.object === t) return o }, o.prototype.getViewCache = function () { return this.rootView !== this ? this.rootView.getViewCache() : this.isViewCachingEnabled() ? null != this.viewCache ? this.viewCache : this.viewCache = {} : void 0 }, o.prototype.isViewCachingEnabled = function () { return this.shouldCacheViews !== !1 }, o.prototype.enableViewCaching = function () { return this.shouldCacheViews = !0 }, o.prototype.disableViewCaching = function () { return this.shouldCacheViews = !1 }, o.prototype.getCachedViewForObject = function (t) { var e; return null != (e = this.getViewCache()) ? e[t.getCacheKey()] : void 0 }, o.prototype.cacheViewForObject = function (t, e) { var n; return null != (n = this.getViewCache()) ? n[e.getCacheKey()] = t : void 0 }, o.prototype.garbageCollectCachedViews = function () { var t, e, n, o, r, s; if (t = this.getViewCache()) { s = this.getAllChildViews().concat(this), n = function () { var t, e, n; for (n = [], t = 0, e = s.length; e > t; t++)r = s[t], n.push(r.object.getCacheKey()); return n }(), o = []; for (e in t) i.call(n, e) < 0 && o.push(delete t[e]); return o } }, o }(e.BasicObject) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.ObjectGroupView = function (e) { function n() { n.__super__.constructor.apply(this, arguments), this.objectGroup = this.object, this.viewClass = this.options.viewClass, delete this.options.viewClass } return t(n, e), n.prototype.getChildViews = function () { var t, e, n, i; if (!this.childViews.length) for (i = this.objectGroup.getObjects(), t = 0, e = i.length; e > t; t++)n = i[t], this.findOrCreateCachedChildView(this.viewClass, n, this.options); return this.childViews }, n.prototype.createNodes = function () { var t, e, n, i, o, r, s, a, u; for (t = this.createContainerElement(), s = this.getChildViews(), e = 0, i = s.length; i > e; e++)for (u = s[e], a = u.getNodes(), n = 0, o = a.length; o > n; n++)r = a[n], t.appendChild(r); return [t] }, n.prototype.createContainerElement = function (t) { return null == t && (t = this.objectGroup.getDepth()), this.getChildViews()[0].createContainerElement(t) }, n }(e.ObjectView) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.Controller = function (e) { function n() { return n.__super__.constructor.apply(this, arguments) } return t(n, e), n }(e.BasicObject) }.call(this), function () { var t, n, i, o, r, s, a = function (t, e) { return function () { return t.apply(e, arguments) } }, u = function (t, e) { function n() { this.constructor = t } for (var i in e) c.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, c = {}.hasOwnProperty, l = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; t = e.findClosestElementFromNode, i = e.nodeIsEmptyTextNode, n = e.nodeIsBlockStartComment, o = e.normalizeSpaces, r = e.summarizeStringChange, s = e.tagName, e.MutationObserver = function (e) { function c(t) { this.element = t, this.didMutate = a(this.didMutate, this), this.observer = new window.MutationObserver(this.didMutate), this.start() } var h, p, d, f; return u(c, e), p = \"data-trix-mutable\", d = \"[\" + p + \"]\", f = { attributes: !0, childList: !0, characterData: !0, characterDataOldValue: !0, subtree: !0 }, c.prototype.start = function () { return this.reset(), this.observer.observe(this.element, f) }, c.prototype.stop = function () { return this.observer.disconnect() }, c.prototype.didMutate = function (t) { var e, n; return (e = this.mutations).push.apply(e, this.findSignificantMutations(t)), this.mutations.length ? (null != (n = this.delegate) && \"function\" == typeof n.elementDidMutate && n.elementDidMutate(this.getMutationSummary()), this.reset()) : void 0 }, c.prototype.reset = function () { return this.mutations = [] }, c.prototype.findSignificantMutations = function (t) { var e, n, i, o; for (o = [], e = 0, n = t.length; n > e; e++)i = t[e], this.mutationIsSignificant(i) && o.push(i); return o }, c.prototype.mutationIsSignificant = function (t) { var e, n, i, o; if (this.nodeIsMutable(t.target)) return !1; for (o = this.nodesModifiedByMutation(t), e = 0, n = o.length; n > e; e++)if (i = o[e], this.nodeIsSignificant(i)) return !0; return !1 }, c.prototype.nodeIsSignificant = function (t) { return t !== this.element && !this.nodeIsMutable(t) && !i(t) }, c.prototype.nodeIsMutable = function (e) { return t(e, { matchingSelector: d }) }, c.prototype.nodesModifiedByMutation = function (t) { var e; switch (e = [], t.type) { case \"attributes\": t.attributeName !== p && e.push(t.target); break; case \"characterData\": e.push(t.target.parentNode), e.push(t.target); break; case \"childList\": e.push.apply(e, t.addedNodes), e.push.apply(e, t.removedNodes) }return e }, c.prototype.getMutationSummary = function () { return this.getTextMutationSummary() }, c.prototype.getTextMutationSummary = function () { var t, e, n, i, o, r, s, a, u, c, h; for (a = this.getTextChangesFromCharacterData(), n = a.additions, o = a.deletions, h = this.getTextChangesFromChildList(), u = h.additions, r = 0, s = u.length; s > r; r++)e = u[r], l.call(n, e) < 0 && n.push(e); return o.push.apply(o, h.deletions), c = {}, (t = n.join(\"\")) && (c.textAdded = t), (i = o.join(\"\")) && (c.textDeleted = i), c }, c.prototype.getMutationsByType = function (t) { var e, n, i, o, r; for (o = this.mutations, r = [], e = 0, n = o.length; n > e; e++)i = o[e], i.type === t && r.push(i); return r }, c.prototype.getTextChangesFromChildList = function () { var t, e, i, r, s, a, u, c, l, p, d; for (t = [], u = [], a = this.getMutationsByType(\"childList\"), e = 0, r = a.length; r > e; e++)s = a[e], t.push.apply(t, s.addedNodes), u.push.apply(u, s.removedNodes); return c = 0 === t.length && 1 === u.length && n(u[0]), c ? (p = [], d = [\"\\n\"]) : (p = h(t), d = h(u)), { additions: function () { var t, e, n; for (n = [], i = t = 0, e = p.length; e > t; i = ++t)l = p[i], l !== d[i] && n.push(o(l)); return n }(), deletions: function () { var t, e, n; for (n = [], i = t = 0, e = d.length; e > t; i = ++t)l = d[i], l !== p[i] && n.push(o(l)); return n }() } }, c.prototype.getTextChangesFromCharacterData = function () { var t, e, n, i, s, a, u, c; return e = this.getMutationsByType(\"characterData\"), e.length && (c = e[0], n = e[e.length - 1], s = o(c.oldValue), i = o(n.target.data), a = r(s, i), t = a.added, u = a.removed), { additions: t ? [t] : [], deletions: u ? [u] : [] } }, h = function (t) { var e, n, i, o; for (null == t && (t = []), o = [], e = 0, n = t.length; n > e; e++)switch (i = t[e], i.nodeType) { case Node.TEXT_NODE: o.push(i.data); break; case Node.ELEMENT_NODE: \"br\" === s(i) ? o.push(\"\\n\") : o.push.apply(o, h(i.childNodes)) }return o }, c }(e.BasicObject) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.FileVerificationOperation = function (e) { function n(t) { this.file = t } return t(n, e), n.prototype.perform = function (t) { var e; return e = new FileReader, e.onerror = function () { return t(!1) }, e.onload = function (n) { return function () { e.onerror = null; try { e.abort() } catch (i) { } return t(!0, n.file) } }(this), e.readAsArrayBuffer(this.file) }, n }(e.Operation) }.call(this), function () { var t, n = function (t, e) { function n() { this.constructor = t } for (var o in e) i.call(e, o) && (t[o] = e[o]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, i = {}.hasOwnProperty; t = e.browser, e.CompositionInput = function (e) { function i(t) { var e; this.inputController = t, e = this.inputController, this.responder = e.responder, this.delegate = e.delegate, this.inputSummary = e.inputSummary, this.data = {} } return n(i, e), i.prototype.start = function (t) { var e, n; return this.data.start = t, this.isSignificant() ? (\"keypress\" === this.inputSummary.eventName && this.inputSummary.textAdded && null != (e = this.responder) && e.deleteInDirection(\"left\"), this.selectionIsExpanded() || (this.insertPlaceholder(), this.requestRender()), this.range = null != (n = this.responder) ? n.getSelectedRange() : void 0) : void 0 }, i.prototype.update = function (t) { var e; return this.data.update = t, this.isSignificant() && (e = this.selectPlaceholder()) ? (this.forgetPlaceholder(), this.range = e) : void 0 }, i.prototype.end = function (t) { var e, n, i, o; return this.data.end = t, this.isSignificant() ? (this.forgetPlaceholder(), this.canApplyToDocument() ? (this.setInputSummary({ preferDocument: !0, didInput: !1 }), null != (e = this.delegate) && e.inputControllerWillPerformTyping(), null != (n = this.responder) && n.setSelectedRange(this.range), null != (i = this.responder) && i.insertString(this.data.end), null != (o = this.responder) ? o.setSelectedRange(this.range[0] + this.data.end.length) : void 0) : null != this.data.start || null != this.data.update ? (this.requestReparse(), this.inputController.reset()) : void 0) : this.inputController.reset() }, i.prototype.getEndData = function () { return this.data.end }, i.prototype.isEnded = function () { return null != this.getEndData() }, i.prototype.isSignificant = function () { return t.composesExistingText ? this.inputSummary.didInput : !0 }, i.prototype.canApplyToDocument = function () { var t, e; return 0 === (null != (t = this.data.start) ? t.length : void 0) && (null != (e = this.data.end) ? e.length : void 0) > 0 && null != this.range }, i.proxyMethod(\"inputController.setInputSummary\"), i.proxyMethod(\"inputController.requestRender\"), i.proxyMethod(\"inputController.requestReparse\"), i.proxyMethod(\"responder?.selectionIsExpanded\"), i.proxyMethod(\"responder?.insertPlaceholder\"), i.proxyMethod(\"responder?.selectPlaceholder\"), i.proxyMethod(\"responder?.forgetPlaceholder\"), i }(e.BasicObject) }.call(this), function () {\r\n var t, n, i, o, r, s, a, u, c, l, h, p, d, f, g = function (t, e) { function n() { this.constructor = t } for (var i in e) m.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, m = {}.hasOwnProperty, y = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; o = e.handleEvent, c = e.makeElement, s = e.innerElementIsActive, l = e.objectsAreEqual, d = e.tagName, u = { 8: \"backspace\", 9: \"tab\", 13: \"return\", 27: \"escape\", 37: \"left\", 39: \"right\", 46: \"delete\", 68: \"d\", 72: \"h\", 79: \"o\" }, e.InputController = function (r) {\r\n function d(t) { var n; this.element = t, this.resetInputSummary(), this.mutationObserver = new e.MutationObserver(this.element), this.mutationObserver.delegate = this; for (n in this.events) o(n, { onElement: this.element, withCallback: this.handlerFor(n) }) } var f; return g(d, r), f = 0, d.keyNames = u, d.prototype.handlerFor = function (t) { return function (e) { return function (n) { return n.defaultPrevented ? void 0 : e.handleInput(function () { return s(this.element) ? void 0 : (this.eventName = t, this.events[t].call(this, n)) }) } }(this) }, d.prototype.setInputSummary = function (t) { var e, n; null == t && (t = {}), this.inputSummary.eventName = this.eventName; for (e in t) n = t[e], this.inputSummary[e] = n; return this.inputSummary }, d.prototype.resetInputSummary = function () { return this.inputSummary = {} }, d.prototype.reset = function () { return this.resetInputSummary(), e.selectionChangeObserver.reset() }, d.prototype.editorWillSyncDocumentView = function () { return this.mutationObserver.stop() }, d.prototype.editorDidSyncDocumentView = function () { return this.mutationObserver.start() }, d.prototype.requestRender = function () { var t; return null != (t = this.delegate) && \"function\" == typeof t.inputControllerDidRequestRender ? t.inputControllerDidRequestRender() : void 0 }, d.prototype.requestReparse = function () { var t; return null != (t = this.delegate) && \"function\" == typeof t.inputControllerDidRequestReparse && t.inputControllerDidRequestReparse(), this.requestRender() }, d.prototype.elementDidMutate = function (t) { var e; return this.isComposing() ? null != (e = this.delegate) && \"function\" == typeof e.inputControllerDidAllowUnhandledInput ? e.inputControllerDidAllowUnhandledInput() : void 0 : this.handleInput(function () { return this.mutationIsSignificant(t) && (this.mutationIsExpected(t) ? this.requestRender() : this.requestReparse()), this.reset() }) }, d.prototype.mutationIsExpected = function (t) { var e, n, i, o, r, s, a, u, c, l; return a = t.textAdded, u = t.textDeleted, this.inputSummary.preferDocument ? !0 : (e = null != a ? a === this.inputSummary.textAdded : !this.inputSummary.textAdded, n = null != u ? this.inputSummary.didDelete : !this.inputSummary.didDelete, c = (\"\\n\" === a || \" \\n\" === a) && !e, l = \"\\n\" === u && !n, s = c && !l || l && !c, s && (o = this.getSelectedRange()) && (i = c ? a.replace(/\\n$/, \"\").length || -1 : (null != a ? a.length : void 0) || 1, null != (r = this.responder) ? r.positionIsBlockBreak(o[1] + i) : void 0) ? !0 : e && n) }, d.prototype.mutationIsSignificant = function (t) { var e, n, i; return i = Object.keys(t).length > 0, e = \"\" === (null != (n = this.compositionInput) ? n.getEndData() : void 0), i || !e }, d.prototype.attachFiles = function (t) { var n, i; return i = function () { var i, o, r; for (r = [], i = 0, o = t.length; o > i; i++)n = t[i], r.push(new e.FileVerificationOperation(n)); return r }(), Promise.all(i).then(function (t) { return function (e) { return t.handleInput(function () { var t, n; return null != (t = this.delegate) && t.inputControllerWillAttachFiles(), null != (n = this.responder) && n.insertFiles(e), this.requestRender() }) } }(this)) }, d.prototype.events = { keydown: function (t) { var n, i, o, r, s, u, c, l, h; if (this.isComposing() || this.resetInputSummary(), this.inputSummary.didInput = !0, r = this.constructor.keyNames[t.keyCode]) { for (i = this.keys, l = [\"ctrl\", \"alt\", \"shift\", \"meta\"], o = 0, u = l.length; u > o; o++)c = l[o], t[c + \"Key\"] && (\"ctrl\" === c && (c = \"control\"), i = null != i ? i[c] : void 0); null != (null != i ? i[r] : void 0) && (this.setInputSummary({ keyName: r }), e.selectionChangeObserver.reset(), i[r].call(this, t)) } return a(t) && (n = String.fromCharCode(t.keyCode).toLowerCase()) && (s = function () { var e, n, i, o; for (i = [\"alt\", \"shift\"], o = [], e = 0, n = i.length; n > e; e++)c = i[e], t[c + \"Key\"] && o.push(c); return o }(), s.push(n), null != (h = this.delegate) ? h.inputControllerDidReceiveKeyboardCommand(s) : void 0) ? t.preventDefault() : void 0 }, keypress: function (t) { var e, n, i; if (null == this.inputSummary.eventName && !t.metaKey && (!t.ctrlKey || t.altKey)) return (i = p(t)) ? (null != (e = this.delegate) && e.inputControllerWillPerformTyping(), null != (n = this.responder) && n.insertString(i), this.setInputSummary({ textAdded: i, didDelete: this.selectionIsExpanded() })) : void 0 }, textInput: function (t) { var e, n, i, o; return e = t.data, o = this.inputSummary.textAdded, o && o !== e && o.toUpperCase() === e ? (n = this.getSelectedRange(), this.setSelectedRange([n[0], n[1] + o.length]), null != (i = this.responder) && i.insertString(e), this.setInputSummary({ textAdded: e }), this.setSelectedRange(n)) : void 0 }, dragenter: function (t) { return t.preventDefault() }, dragstart: function (t) { var e, n; return n = t.target, this.serializeSelectionToDataTransfer(t.dataTransfer), this.draggedRange = this.getSelectedRange(), null != (e = this.delegate) && \"function\" == typeof e.inputControllerDidStartDrag ? e.inputControllerDidStartDrag() : void 0 }, dragover: function (t) { var e, n; return !this.draggedRange && !this.canAcceptDataTransfer(t.dataTransfer) || (t.preventDefault(), e = { x: t.clientX, y: t.clientY }, l(e, this.draggingPoint)) ? void 0 : (this.draggingPoint = e, null != (n = this.delegate) && \"function\" == typeof n.inputControllerDidReceiveDragOverPoint ? n.inputControllerDidReceiveDragOverPoint(this.draggingPoint) : void 0) }, dragend: function () { var t; return null != (t = this.delegate) && \"function\" == typeof t.inputControllerDidCancelDrag && t.inputControllerDidCancelDrag(), this.draggedRange = null, this.draggingPoint = null }, drop: function (t) { var n, i, o, r, s, a, u, c, l; return t.preventDefault(), o = null != (s = t.dataTransfer) ? s.files : void 0, r = { x: t.clientX, y: t.clientY }, null != (a = this.responder) && a.setLocationRangeFromPointRange(r), (null != o ? o.length : void 0) ? this.attachFiles(o) : this.draggedRange ? (null != (u = this.delegate) && u.inputControllerWillMoveText(), null != (c = this.responder) && c.moveTextFromRange(this.draggedRange), this.draggedRange = null, this.requestRender()) : (i = t.dataTransfer.getData(\"application/x-trix-document\")) && (n = e.Document.fromJSONString(i), null != (l = this.responder) && l.insertDocument(n), this.requestRender()), this.draggedRange = null, this.draggingPoint = null }, cut: function (t) { var e, n; return (null != (e = this.responder) ? e.selectionIsExpanded() : void 0) && (this.serializeSelectionToDataTransfer(t.clipboardData) && t.preventDefault(), null != (n = this.delegate) && n.inputControllerWillCutText(), this.deleteInDirection(\"backward\"), t.defaultPrevented) ? this.requestRender() : void 0 }, copy: function (t) { var e; return (null != (e = this.responder) ? e.selectionIsExpanded() : void 0) && this.serializeSelectionToDataTransfer(t.clipboardData) ? t.preventDefault() : void 0 }, paste: function (n) { var o, r, s, a, u, c, l, p, d, g, m, v, b, A, x, C, w, E, S, k, R, L; return o = null != (p = n.clipboardData) ? p : n.testClipboardData, l = { clipboard: o }, null == o || h(n) ? void this.getPastedHTMLUsingHiddenElement(function (t) { return function (e) { var n, i, o; return l.type = \"text/html\", l.html = e, null != (n = t.delegate) && n.inputControllerWillPaste(l), null != (i = t.responder) && i.insertHTML(l.html), t.requestRender(), null != (o = t.delegate) ? o.inputControllerDidPaste(l) : void 0 } }(this)) : ((a = o.getData(\"URL\")) ? (l.type = \"URL\", l.href = a, l.string = (c = o.getData(\"public.url-name\")) ? e.squishBreakableWhitespace(c).trim() : a, null != (d = this.delegate) && d.inputControllerWillPaste(l), this.setInputSummary({ textAdded: l.string, didDelete: this.selectionIsExpanded() }), null != (x = this.responder) && x.insertText(e.Text.textForStringWithAttributes(l.string, { href: l.href })), this.requestRender(), null != (C = this.delegate) && C.inputControllerDidPaste(l)) : t(o) ? (l.type = \"text/plain\", l.string = o.getData(\"text/plain\"), null != (w = this.delegate) && w.inputControllerWillPaste(l), this.setInputSummary({ textAdded: l.string, didDelete: this.selectionIsExpanded() }), null != (E = this.responder) && E.insertString(l.string), this.requestRender(), null != (S = this.delegate) && S.inputControllerDidPaste(l)) : (u = o.getData(\"text/html\")) ? (l.type = \"text/html\", l.html = u, null != (k = this.delegate) && k.inputControllerWillPaste(l), null != (R = this.responder) && R.insertHTML(l.html), this.requestRender(), null != (L = this.delegate) && L.inputControllerDidPaste(l)) : y.call(o.types, \"Files\") >= 0 && (s = null != (g = o.items) && null != (m = g[0]) && \"function\" == typeof m.getAsFile ? m.getAsFile() : void 0) && (!s.name && (r = i(s)) && (s.name = \"pasted-file-\" + ++f + \".\" + r), l.type = \"File\", l.file = s, null != (v = this.delegate) && v.inputControllerWillAttachFiles(), null != (b = this.responder) && b.insertFile(l.file), this.requestRender(), null != (A = this.delegate) && A.inputControllerDidPaste(l)), n.preventDefault()) }, compositionstart: function (t) { return this.getCompositionInput().start(t.data) }, compositionupdate: function (t) { return this.getCompositionInput().update(t.data) }, compositionend: function (t) { return this.getCompositionInput().end(t.data) }, beforeinput: function () { return this.inputSummary.didInput = !0 }, input: function (t) { return this.inputSummary.didInput = !0, t.stopPropagation() } }, d.prototype.keys = {\r\n backspace: function (t) { var e; return null != (e = this.delegate) && e.inputControllerWillPerformTyping(), this.deleteInDirection(\"backward\", t) }, \"delete\": function (t) { var e; return null != (e = this.delegate) && e.inputControllerWillPerformTyping(), this.deleteInDirection(\"forward\", t) }, \"return\": function () { var t, e; return this.setInputSummary({ preferDocument: !0 }), null != (t = this.delegate) && t.inputControllerWillPerformTyping(), null != (e = this.responder) ? e.insertLineBreak() : void 0 }, tab: function (t) { var e, n; return (null != (e = this.responder) ? e.canIncreaseNestingLevel() : void 0) ? (null != (n = this.responder) && n.increaseNestingLevel(), this.requestRender(), t.preventDefault()) : void 0 }, left: function (t) { var e; return this.selectionIsInCursorTarget() ? (t.preventDefault(), null != (e = this.responder) ? e.moveCursorInDirection(\"backward\") : void 0) : void 0 }, right: function (t) { var e; return this.selectionIsInCursorTarget() ? (t.preventDefault(), null != (e = this.responder) ? e.moveCursorInDirection(\"forward\") : void 0) : void 0 }, control: {\r\n d: function (t) { var e; return null != (e = this.delegate) && e.inputControllerWillPerformTyping(), this.deleteInDirection(\"forward\", t) }, h: function (t) { var e; return null != (e = this.delegate) && e.inputControllerWillPerformTyping(), this.deleteInDirection(\"backward\", t) }, o: function (t) {\r\n var e, n; return t.preventDefault(), null != (e = this.delegate) && e.inputControllerWillPerformTyping(), null != (n = this.responder) && n.insertString(\"\\n\", { updatePosition: !1 }), this.requestRender()\r\n }\r\n }, shift: { \"return\": function (t) { var e, n; return null != (e = this.delegate) && e.inputControllerWillPerformTyping(), null != (n = this.responder) && n.insertString(\"\\n\"), this.requestRender(), t.preventDefault() }, tab: function (t) { var e, n; return (null != (e = this.responder) ? e.canDecreaseNestingLevel() : void 0) ? (null != (n = this.responder) && n.decreaseNestingLevel(), this.requestRender(), t.preventDefault()) : void 0 }, left: function (t) { return this.selectionIsInCursorTarget() ? (t.preventDefault(), this.expandSelectionInDirection(\"backward\")) : void 0 }, right: function (t) { return this.selectionIsInCursorTarget() ? (t.preventDefault(), this.expandSelectionInDirection(\"forward\")) : void 0 } }, alt: { backspace: function () { var t; return this.setInputSummary({ preferDocument: !1 }), null != (t = this.delegate) ? t.inputControllerWillPerformTyping() : void 0 } }, meta: { backspace: function () { var t; return this.setInputSummary({ preferDocument: !1 }), null != (t = this.delegate) ? t.inputControllerWillPerformTyping() : void 0 } }\r\n }, d.prototype.handleInput = function (t) { var e, n; try { return null != (e = this.delegate) && e.inputControllerWillHandleInput(), t.call(this) } finally { null != (n = this.delegate) && n.inputControllerDidHandleInput() } }, d.prototype.getCompositionInput = function () { return this.isComposing() ? this.compositionInput : this.compositionInput = new e.CompositionInput(this) }, d.prototype.isComposing = function () { return null != this.compositionInput && !this.compositionInput.isEnded() }, d.prototype.deleteInDirection = function (t, e) { var n; return (null != (n = this.responder) ? n.deleteInDirection(t) : void 0) !== !1 ? this.setInputSummary({ didDelete: !0 }) : e ? (e.preventDefault(), this.requestRender()) : void 0 }, d.prototype.serializeSelectionToDataTransfer = function (t) { var i, o; if (n(t)) return i = null != (o = this.responder) ? o.getSelectedDocument().toSerializableDocument() : void 0, t.setData(\"application/x-trix-document\", JSON.stringify(i)), t.setData(\"text/html\", e.DocumentView.render(i).innerHTML), t.setData(\"text/plain\", i.toString().replace(/\\n$/, \"\")), !0 }, d.prototype.canAcceptDataTransfer = function (t) { var e, n, i, o, r, s; for (s = {}, o = null != (i = null != t ? t.types : void 0) ? i : [], e = 0, n = o.length; n > e; e++)r = o[e], s[r] = !0; return s.Files || s[\"application/x-trix-document\"] || s[\"text/html\"] || s[\"text/plain\"] }, d.prototype.getPastedHTMLUsingHiddenElement = function (t) { var n, i, o; return i = this.getSelectedRange(), o = { position: \"absolute\", left: window.pageXOffset + \"px\", top: window.pageYOffset + \"px\", opacity: 0 }, n = c({ style: o, tagName: \"div\", editable: !0 }), document.body.appendChild(n), n.focus(), requestAnimationFrame(function (o) { return function () { var r; return r = n.innerHTML, e.removeNode(n), o.setSelectedRange(i), t(r) } }(this)) }, d.proxyMethod(\"responder?.getSelectedRange\"), d.proxyMethod(\"responder?.setSelectedRange\"), d.proxyMethod(\"responder?.expandSelectionInDirection\"), d.proxyMethod(\"responder?.selectionIsInCursorTarget\"), d.proxyMethod(\"responder?.selectionIsExpanded\"), d\r\n }(e.BasicObject), i = function (t) { var e, n; return null != (e = t.type) && null != (n = e.match(/\\/(\\w+)$/)) ? n[1] : void 0 }, r = null != (\"function\" == typeof \" \".codePointAt ? \" \".codePointAt(0) : void 0), p = function (t) { var n; return t.key && r && t.key.codePointAt(0) === t.keyCode ? t.key : (null === t.which ? n = t.keyCode : 0 !== t.which && 0 !== t.charCode && (n = t.charCode), null != n && \"escape\" !== u[n] ? e.UTF16String.fromCodepoints([n]).toString() : void 0) }, a = function () { return /Mac|^iP/.test(navigator.platform) ? function (t) { return t.metaKey } : function (t) { return t.ctrlKey } }(), h = function (t) { var e, n, i, o, r, s, a, u, c, l; if (u = t.clipboardData) { if (y.call(u.types, \"text/html\") >= 0) { for (c = u.types, i = 0, s = c.length; s > i; i++)if (l = c[i], e = /^CorePasteboardFlavorType/.test(l), n = /^dyn\\./.test(l) && u.getData(l), a = e || n) return !0; return !1 } return o = y.call(u.types, \"com.apple.webarchive\") >= 0, r = y.call(u.types, \"com.apple.flat-rtfd\") >= 0, o || r } }, t = function (t) { var e, n, i; return i = t.getData(\"text/plain\"), n = t.getData(\"text/html\"), i && n ? (e = c(\"div\"), e.innerHTML = n, e.textContent === i ? !e.querySelector(\":not(meta)\") : void 0) : null != i ? i.length : void 0 }, f = { \"application/x-trix-feature-detection\": \"test\" }, n = function (t) { var e, n; if (null != (null != t ? t.setData : void 0)) { for (e in f) if (n = f[e], !function () { try { return t.setData(e, n), t.getData(e) === n } catch (i) { } }()) return; return !0 } }\r\n }.call(this), function () { var t, n, i, o, r, s, a, u, c, l = function (t, e) { return function () { return t.apply(e, arguments) } }, h = function (t, e) { function n() { this.constructor = t } for (var i in e) p.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, p = {}.hasOwnProperty; n = e.defer, i = e.escapeHTML, o = e.handleEvent, a = e.makeElement, c = e.tagName, r = e.InputController.keyNames, u = e.config, s = u.lang, t = u.css, e.AttachmentEditorController = function (u) { function p(t, e, n, i) { this.attachmentPiece = t, this.element = e, this.container = n, this.options = null != i ? i : {}, this.didBlurCaption = l(this.didBlurCaption, this), this.didChangeCaption = l(this.didChangeCaption, this), this.didInputCaption = l(this.didInputCaption, this), this.didKeyDownCaption = l(this.didKeyDownCaption, this), this.didClickActionButton = l(this.didClickActionButton, this), this.didClickToolbar = l(this.didClickToolbar, this), this.attachment = this.attachmentPiece.attachment, \"a\" === c(this.element) && (this.element = this.element.firstChild), this.install() } var d; return h(p, u), d = function (t) { return function () { var e; return e = t.apply(this, arguments), e[\"do\"](), null == this.undos && (this.undos = []), this.undos.push(e.undo) } }, p.prototype.install = function () { return this.makeElementMutable(), this.addToolbar(), this.attachment.isPreviewable() ? this.installCaptionEditor() : void 0 }, p.prototype.uninstall = function () { var t, e; for (this.savePendingCaption(); e = this.undos.pop();)e(); return null != (t = this.delegate) ? t.didUninstallAttachmentEditor(this) : void 0 }, p.prototype.savePendingCaption = function () { var t, e, n; return null != this.pendingCaption ? (t = this.pendingCaption, this.pendingCaption = null, t ? null != (e = this.delegate) && \"function\" == typeof e.attachmentEditorDidRequestUpdatingAttributesForAttachment ? e.attachmentEditorDidRequestUpdatingAttributesForAttachment({ caption: t }, this.attachment) : void 0 : null != (n = this.delegate) && \"function\" == typeof n.attachmentEditorDidRequestRemovingAttributeForAttachment ? n.attachmentEditorDidRequestRemovingAttributeForAttachment(\"caption\", this.attachment) : void 0) : void 0 }, p.prototype.makeElementMutable = d(function () { return { \"do\": function (t) { return function () { return t.element.dataset.trixMutable = !0 } }(this), undo: function (t) { return function () { return delete t.element.dataset.trixMutable } }(this) } }), p.prototype.addToolbar = d(function () { var n, r, u; return n = a({ tagName: \"div\", className: t.attachmentToolbar, data: { trixMutable: !0 } }), n.innerHTML = '
      \\n \\n \\n \\n
      \", this.attachment.isPreviewable() && (r = i(this.attachment.getFilename()), u = i(this.attachment.getFormattedFilesize()), n.innerHTML += '
      \\n \\n ' + r + '\\n ' + u + \"\\n \\n
      \"), o(\"click\", { onElement: n, withCallback: this.didClickToolbar }), o(\"click\", { onElement: n, matchingSelector: \"[data-trix-action]\", withCallback: this.didClickActionButton }), { \"do\": function (t) { return function () { return t.element.appendChild(n) } }(this), undo: function () { return function () { return e.removeNode(n) } }(this) } }), p.prototype.installCaptionEditor = d(function () { var i, r, u, c, l; return c = a({ tagName: \"textarea\", className: t.attachmentCaptionEditor, attributes: { placeholder: s.captionPlaceholder }, data: { trixMutable: !0 } }), c.value = this.attachmentPiece.getCaption(), l = c.cloneNode(), l.classList.add(\"trix-autoresize-clone\"), l.tabIndex = -1, i = function () { return l.value = c.value, c.style.height = l.scrollHeight + \"px\" }, o(\"input\", { onElement: c, withCallback: i }), o(\"input\", { onElement: c, withCallback: this.didInputCaption }), o(\"keydown\", { onElement: c, withCallback: this.didKeyDownCaption }), o(\"change\", { onElement: c, withCallback: this.didChangeCaption }), o(\"blur\", { onElement: c, withCallback: this.didBlurCaption }), u = this.element.querySelector(\"figcaption\"), r = u.cloneNode(), { \"do\": function (e) { return function () { return u.style.display = \"none\", r.appendChild(c), r.appendChild(l), r.classList.add(t.attachmentCaption + \"--editing\"), u.parentElement.insertBefore(r, u), i(), e.options.editCaption ? n(function () { return c.focus() }) : void 0 } }(this), undo: function () { return e.removeNode(r), u.style.display = null } } }), p.prototype.didClickToolbar = function (t) { return t.preventDefault(), t.stopPropagation() }, p.prototype.didClickActionButton = function (t) { var e, n; switch (e = t.target.getAttribute(\"data-trix-action\")) { case \"remove\": return null != (n = this.delegate) ? n.attachmentEditorDidRequestRemovalOfAttachment(this.attachment) : void 0 } }, p.prototype.didKeyDownCaption = function (t) { var e; return \"return\" === r[t.keyCode] ? (t.preventDefault(), this.savePendingCaption(), null != (e = this.delegate) && \"function\" == typeof e.attachmentEditorDidRequestDeselectingAttachment ? e.attachmentEditorDidRequestDeselectingAttachment(this.attachment) : void 0) : void 0 }, p.prototype.didInputCaption = function (t) { return this.pendingCaption = t.target.value.replace(/\\s/g, \" \").trim() }, p.prototype.didChangeCaption = function () { return this.savePendingCaption() }, p.prototype.didBlurCaption = function () { return this.savePendingCaption() }, p }(e.BasicObject) }.call(this), function () { var t, n, i, o = function (t, e) { function n() { this.constructor = t } for (var i in e) r.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, r = {}.hasOwnProperty; i = e.makeElement, t = e.config.css, e.AttachmentView = function (r) { function s() { s.__super__.constructor.apply(this, arguments), this.attachment = this.object, this.attachment.uploadProgressDelegate = this, this.attachmentPiece = this.options.piece } var a; return o(s, r), s.attachmentSelector = \"[data-trix-attachment]\", s.prototype.createContentNodes = function () { return [] }, s.prototype.createNodes = function () { var e, n, o, r, s, u, c; if (e = r = i({ tagName: \"figure\", className: this.getClassName(), data: this.getData(), editable: !1 }), (n = this.getHref()) && (r = i({ tagName: \"a\", editable: !1, attributes: { href: n, tabindex: -1 } }), e.appendChild(r)), this.attachment.hasContent()) r.innerHTML = this.attachment.getContent(); else for (c = this.createContentNodes(), o = 0, s = c.length; s > o; o++)u = c[o], r.appendChild(u); return r.appendChild(this.createCaptionElement()), this.attachment.isPending() && (this.progressElement = i({ tagName: \"progress\", attributes: { \"class\": t.attachmentProgress, value: this.attachment.getUploadProgress(), max: 100 }, data: { trixMutable: !0, trixStoreKey: [\"progressElement\", this.attachment.id].join(\"/\") } }), e.appendChild(this.progressElement)), [a(\"left\"), e, a(\"right\")] }, s.prototype.createCaptionElement = function () { var e, n, o, r, s, a, u; return o = i({ tagName: \"figcaption\", className: t.attachmentCaption }), (e = this.attachmentPiece.getCaption()) ? (o.classList.add(t.attachmentCaption + \"--edited\"), o.textContent = e) : (n = this.getCaptionConfig(), n.name && (r = this.attachment.getFilename()), n.size && (a = this.attachment.getFormattedFilesize()), r && (s = i({ tagName: \"span\", className: t.attachmentName, textContent: r }), o.appendChild(s)), a && (r && o.appendChild(document.createTextNode(\" \")), u = i({ tagName: \"span\", className: t.attachmentSize, textContent: a }), o.appendChild(u))), o }, s.prototype.getClassName = function () { var e, n; return n = [t.attachment, t.attachment + \"--\" + this.attachment.getType()], (e = this.attachment.getExtension()) && n.push(t.attachment + \"--\" + e), n.join(\" \") }, s.prototype.getData = function () { var t, e; return e = { trixAttachment: JSON.stringify(this.attachment), trixContentType: this.attachment.getContentType(), trixId: this.attachment.id }, t = this.attachmentPiece.attributes, t.isEmpty() || (e.trixAttributes = JSON.stringify(t)), this.attachment.isPending() && (e.trixSerialize = !1), e }, s.prototype.getHref = function () { return n(this.attachment.getContent(), \"a\") ? void 0 : this.attachment.getHref() }, s.prototype.getCaptionConfig = function () { var t, n, i; return i = this.attachment.getType(), t = e.copyObject(null != (n = e.config.attachments[i]) ? n.caption : void 0), \"file\" === i && (t.name = !0), t }, s.prototype.findProgressElement = function () { var t; return null != (t = this.findElement()) ? t.querySelector(\"progress\") : void 0 }, a = function (t) { return i({ tagName: \"span\", textContent: e.ZERO_WIDTH_SPACE, data: { trixCursorTarget: t, trixSerialize: !1 } }) }, s.prototype.attachmentDidChangeUploadProgress = function () { var t, e; return e = this.attachment.getUploadProgress(), null != (t = this.findProgressElement()) ? t.value = e : void 0 }, s }(e.ObjectView), n = function (t, e) { var n; return n = i(\"div\"), n.innerHTML = null != t ? t : \"\", n.querySelector(e) } }.call(this), function () { var t, n = function (t, e) { function n() { this.constructor = t } for (var o in e) i.call(e, o) && (t[o] = e[o]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, i = {}.hasOwnProperty; t = e.makeElement, e.PreviewableAttachmentView = function (i) { function o() { o.__super__.constructor.apply(this, arguments), this.attachment.previewDelegate = this } return n(o, i), o.prototype.createContentNodes = function () { return this.image = t({ tagName: \"img\", attributes: { src: \"\" }, data: { trixMutable: !0 } }), this.refresh(this.image), [this.image] }, o.prototype.createCaptionElement = function () { var t; return t = o.__super__.createCaptionElement.apply(this, arguments), t.textContent || t.setAttribute(\"data-trix-placeholder\", e.config.lang.captionPlaceholder), t }, o.prototype.refresh = function (t) { var e; return null == t && (t = null != (e = this.findElement()) ? e.querySelector(\"img\") : void 0), t ? this.updateAttributesForImage(t) : void 0 }, o.prototype.updateAttributesForImage = function (t) { var e, n, i, o, r, s; return r = this.attachment.getURL(), n = this.attachment.getPreviewURL(), t.src = n || r, n === r ? t.removeAttribute(\"data-trix-serialized-attributes\") : (i = JSON.stringify({ src: r }), t.setAttribute(\"data-trix-serialized-attributes\", i)), s = this.attachment.getWidth(), e = this.attachment.getHeight(), null != s && (t.width = s), null != e && (t.height = e), o = [\"imageElement\", this.attachment.id, t.src, t.width, t.height].join(\"/\"), t.dataset.trixStoreKey = o }, o.prototype.attachmentDidChangeAttributes = function () { return this.refresh(this.image), this.refresh() }, o }(e.AttachmentView) }.call(this), function () { var t, n, i, o = function (t, e) { function n() { this.constructor = t } for (var i in e) r.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, r = {}.hasOwnProperty; i = e.makeElement, t = e.findInnerElement, n = e.getTextConfig, e.PieceView = function (r) { function s() { var t; s.__super__.constructor.apply(this, arguments), this.piece = this.object, this.attributes = this.piece.getAttributes(), t = this.options, this.textConfig = t.textConfig, this.context = t.context, this.piece.attachment ? this.attachment = this.piece.attachment : this.string = this.piece.toString() } var a; return o(s, r), s.prototype.createNodes = function () { var e, n, i, o, r, s; if (s = this.attachment ? this.createAttachmentNodes() : this.createStringNodes(), e = this.createElement()) { for (i = t(e), n = 0, o = s.length; o > n; n++)r = s[n], i.appendChild(r); s = [e] } return s }, s.prototype.createAttachmentNodes = function () { var t, n; return t = this.attachment.isPreviewable() ? e.PreviewableAttachmentView : e.AttachmentView, n = this.createChildView(t, this.piece.attachment, { piece: this.piece }), n.getNodes() }, s.prototype.createStringNodes = function () { var t, e, n, o, r, s, a, u, c, l; if (null != (u = this.textConfig) ? u.plaintext : void 0) return [document.createTextNode(this.string)]; for (a = [], c = this.string.split(\"\\n\"), n = e = 0, o = c.length; o > e; n = ++e)l = c[n], n > 0 && (t = i(\"br\"), a.push(t)), (r = l.length) && (s = document.createTextNode(this.preserveSpaces(l)), a.push(s)); return a }, s.prototype.createElement = function () { var t, e, o, r, s, a, u, c, l; c = {}, a = this.attributes; for (r in a) if (l = a[r], (t = n(r)) && (t.tagName && (s = i(t.tagName), o ? (o.appendChild(s), o = s) : e = o = s), t.styleProperty && (c[t.styleProperty] = l), t.style)) { u = t.style; for (r in u) l = u[r], c[r] = l } if (Object.keys(c).length) { null == e && (e = i(\"span\")); for (r in c) l = c[r], e.style[r] = l } return e }, s.prototype.createContainerElement = function () { var t, e, o, r, s; r = this.attributes; for (o in r) if (s = r[o], (e = n(o)) && e.groupTagName) return t = {}, t[o] = s, i(e.groupTagName, t) }, a = e.NON_BREAKING_SPACE, s.prototype.preserveSpaces = function (t) { return this.context.isLast && (t = t.replace(/\\ $/, a)), t = t.replace(/(\\S)\\ {3}(\\S)/g, \"$1 \" + a + \" $2\").replace(/\\ {2}/g, a + \" \").replace(/\\ {2}/g, \" \" + a), (this.context.isFirst || this.context.followsWhitespace) && (t = t.replace(/^\\ /, a)), t }, s }(e.ObjectView) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.TextView = function (n) { function i() { i.__super__.constructor.apply(this, arguments), this.text = this.object, this.textConfig = this.options.textConfig } var o; return t(i, n), i.prototype.createNodes = function () { var t, n, i, r, s, a, u, c, l, h; for (a = [], c = e.ObjectGroup.groupObjects(this.getPieces()), r = c.length - 1, i = n = 0, s = c.length; s > n; i = ++n)u = c[i], t = {}, 0 === i && (t.isFirst = !0), i === r && (t.isLast = !0), o(l) && (t.followsWhitespace = !0), h = this.findOrCreateCachedChildView(e.PieceView, u, { textConfig: this.textConfig, context: t }), a.push.apply(a, h.getNodes()), l = u; return a }, i.prototype.getPieces = function () { var t, e, n, i, o; for (i = this.text.getPieces(), o = [], t = 0, e = i.length; e > t; t++)n = i[t], n.hasAttribute(\"blockBreak\") || o.push(n); return o }, o = function (t) { return /\\s$/.test(null != t ? t.toString() : void 0) }, i }(e.ObjectView) }.call(this), function () { var t, n, i, o = function (t, e) { function n() { this.constructor = t } for (var i in e) r.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, r = {}.hasOwnProperty; i = e.makeElement, n = e.getBlockConfig, t = e.config.css, e.BlockView = function (r) { function s() { s.__super__.constructor.apply(this, arguments), this.block = this.object, this.attributes = this.block.getAttributes() } return o(s, r), s.prototype.createNodes = function () { var t, o, r, s, a, u, c, l, h; if (t = document.createComment(\"block\"), u = [t], this.block.isEmpty() ? u.push(i(\"br\")) : (l = null != (c = n(this.block.getLastAttribute())) ? c.text : void 0, h = this.findOrCreateCachedChildView(e.TextView, this.block.text, { textConfig: l }), u.push.apply(u, h.getNodes()), this.shouldAddExtraNewlineElement() && u.push(i(\"br\"))), this.attributes.length) return u; for (o = i(e.config.blockAttributes[\"default\"].tagName), r = 0, s = u.length; s > r; r++)a = u[r], o.appendChild(a); return [o] }, s.prototype.createContainerElement = function (e) { var o, r, s, a; return o = this.attributes[e], a = n(o).tagName, r = { tagName: a }, \"attachmentGallery\" === o && (s = this.block.getBlockBreakPosition(), r.className = t.attachmentGallery + \" \" + t.attachmentGallery + \"--\" + s), i(r) }, s.prototype.shouldAddExtraNewlineElement = function () { return /\\n\\n$/.test(this.block.toString()) }, s }(e.ObjectView) }.call(this), function () { var t, n, i = function (t, e) { function n() { this.constructor = t } for (var i in e) o.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, o = {}.hasOwnProperty; t = e.defer, n = e.makeElement, e.DocumentView = function (o) { function r() { r.__super__.constructor.apply(this, arguments), this.element = this.options.element, this.elementStore = new e.ElementStore, this.setDocument(this.object) } var s, a, u; return i(r, o), r.render = function (t) { var e, i; return e = n(\"div\"), i = new this(t, { element: e }), i.render(), i.sync(), e }, r.prototype.setDocument = function (t) { return t.isEqualTo(this.document) ? void 0 : this.document = this.object = t }, r.prototype.render = function () { var t, i, o, r, s, a, u; if (this.childViews = [], this.shadowElement = n(\"div\"), !this.document.isEmpty()) { for (s = e.ObjectGroup.groupObjects(this.document.getBlocks(), { asTree: !0 }), a = [], t = 0, i = s.length; i > t; t++)r = s[t], u = this.findOrCreateCachedChildView(e.BlockView, r), a.push(function () { var t, e, n, i; for (n = u.getNodes(), i = [], t = 0, e = n.length; e > t; t++)o = n[t], i.push(this.shadowElement.appendChild(o)); return i }.call(this)); return a } }, r.prototype.isSynced = function () { return s(this.shadowElement, this.element) }, r.prototype.sync = function () { var t; for (t = this.createDocumentFragmentForSync(); this.element.lastChild;)this.element.removeChild(this.element.lastChild); return this.element.appendChild(t), this.didSync() }, r.prototype.didSync = function () { return this.elementStore.reset(a(this.element)), t(function (t) { return function () { return t.garbageCollectCachedViews() } }(this)) }, r.prototype.createDocumentFragmentForSync = function () { var t, e, n, i, o, r, s, u, c, l; for (e = document.createDocumentFragment(), u = this.shadowElement.childNodes, n = 0, o = u.length; o > n; n++)s = u[n], e.appendChild(s.cloneNode(!0)); for (c = a(e), i = 0, r = c.length; r > i; i++)t = c[i], (l = this.elementStore.remove(t)) && t.parentNode.replaceChild(l, t); return e }, a = function (t) { return t.querySelectorAll(\"[data-trix-store-key]\") }, s = function (t, e) { return u(t.innerHTML) === u(e.innerHTML) }, u = function (t) { return t.replace(/ /g, \" \") }, r }(e.ObjectView) }.call(this), function () { var t, n, i, o, r, s = function (t, e) { return function () { return t.apply(e, arguments) } }, a = function (t, e) { function n() { this.constructor = t } for (var i in e) u.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, u = {}.hasOwnProperty; i = e.findClosestElementFromNode, o = e.handleEvent, r = e.innerElementIsActive, n = e.defer, t = e.AttachmentView.attachmentSelector, e.CompositionController = function (u) { function c(n, i) { this.element = n, this.composition = i, this.didClickAttachment = s(this.didClickAttachment, this), this.didBlur = s(this.didBlur, this), this.didFocus = s(this.didFocus, this), this.documentView = new e.DocumentView(this.composition.document, { element: this.element }), o(\"focus\", { onElement: this.element, withCallback: this.didFocus }), o(\"blur\", { onElement: this.element, withCallback: this.didBlur }), o(\"click\", { onElement: this.element, matchingSelector: \"a[contenteditable=false]\", preventDefault: !0 }), o(\"mousedown\", { onElement: this.element, matchingSelector: t, withCallback: this.didClickAttachment }), o(\"click\", { onElement: this.element, matchingSelector: \"a\" + t, preventDefault: !0 }) } return a(c, u), c.prototype.didFocus = function () { var t, e, n; return t = function (t) { return function () { var e; return t.focused ? void 0 : (t.focused = !0, null != (e = t.delegate) && \"function\" == typeof e.compositionControllerDidFocus ? e.compositionControllerDidFocus() : void 0) } }(this), null != (e = null != (n = this.blurPromise) ? n.then(t) : void 0) ? e : t() }, c.prototype.didBlur = function () { return this.blurPromise = new Promise(function (t) { return function (e) { return n(function () { var n; return r(t.element) || (t.focused = null, null != (n = t.delegate) && \"function\" == typeof n.compositionControllerDidBlur && n.compositionControllerDidBlur()), t.blurPromise = null, e() }) } }(this)) }, c.prototype.didClickAttachment = function (t, e) { var n, o, r; return n = this.findAttachmentForElement(e), o = null != i(t.target, { matchingSelector: \"figcaption\" }), null != (r = this.delegate) && \"function\" == typeof r.compositionControllerDidSelectAttachment ? r.compositionControllerDidSelectAttachment(n, { editCaption: o }) : void 0 }, c.prototype.getSerializableElement = function () { return this.isEditingAttachment() ? this.documentView.shadowElement : this.element }, c.prototype.render = function () { var t, e, n; return this.revision !== this.composition.revision && (this.documentView.setDocument(this.composition.document), this.documentView.render(), this.revision = this.composition.revision), this.canSyncDocumentView() && !this.documentView.isSynced() && (null != (t = this.delegate) && \"function\" == typeof t.compositionControllerWillSyncDocumentView && t.compositionControllerWillSyncDocumentView(), this.documentView.sync(), null != (e = this.delegate) && \"function\" == typeof e.compositionControllerDidSyncDocumentView && e.compositionControllerDidSyncDocumentView()), null != (n = this.delegate) && \"function\" == typeof n.compositionControllerDidRender ? n.compositionControllerDidRender() : void 0 }, c.prototype.rerenderViewForObject = function (t) { return this.invalidateViewForObject(t), this.render() }, c.prototype.invalidateViewForObject = function (t) { return this.documentView.invalidateViewForObject(t) }, c.prototype.isViewCachingEnabled = function () { return this.documentView.isViewCachingEnabled() }, c.prototype.enableViewCaching = function () { return this.documentView.enableViewCaching() }, c.prototype.disableViewCaching = function () { return this.documentView.disableViewCaching() }, c.prototype.refreshViewCache = function () { return this.documentView.garbageCollectCachedViews() }, c.prototype.isEditingAttachment = function () { return null != this.attachmentEditor }, c.prototype.installAttachmentEditorForAttachment = function (t, n) { var i, o, r; if ((null != (r = this.attachmentEditor) ? r.attachment : void 0) !== t && (o = this.documentView.findElementForObject(t))) return this.uninstallAttachmentEditor(), i = this.composition.document.getAttachmentPieceForAttachment(t), this.attachmentEditor = new e.AttachmentEditorController(i, o, this.element, n), this.attachmentEditor.delegate = this }, c.prototype.uninstallAttachmentEditor = function () { var t; return null != (t = this.attachmentEditor) ? t.uninstall() : void 0 }, c.prototype.didUninstallAttachmentEditor = function () { return this.attachmentEditor = null, this.render() }, c.prototype.attachmentEditorDidRequestUpdatingAttributesForAttachment = function (t, e) { var n; return null != (n = this.delegate) && \"function\" == typeof n.compositionControllerWillUpdateAttachment && n.compositionControllerWillUpdateAttachment(e), this.composition.updateAttributesForAttachment(t, e) }, c.prototype.attachmentEditorDidRequestRemovingAttributeForAttachment = function (t, e) { var n; return null != (n = this.delegate) && \"function\" == typeof n.compositionControllerWillUpdateAttachment && n.compositionControllerWillUpdateAttachment(e), this.composition.removeAttributeForAttachment(t, e) }, c.prototype.attachmentEditorDidRequestRemovalOfAttachment = function (t) { var e; return null != (e = this.delegate) && \"function\" == typeof e.compositionControllerDidRequestRemovalOfAttachment ? e.compositionControllerDidRequestRemovalOfAttachment(t) : void 0 }, c.prototype.attachmentEditorDidRequestDeselectingAttachment = function (t) { var e; return null != (e = this.delegate) && \"function\" == typeof e.compositionControllerDidRequestDeselectingAttachment ? e.compositionControllerDidRequestDeselectingAttachment(t) : void 0 }, c.prototype.canSyncDocumentView = function () { return !this.isEditingAttachment() }, c.prototype.findAttachmentForElement = function (t) { return this.composition.document.getAttachmentById(parseInt(t.dataset.trixId, 10)) }, c }(e.BasicObject) }.call(this), function () { var t, n, i, o = function (t, e) { return function () { return t.apply(e, arguments) } }, r = function (t, e) { function n() { this.constructor = t } for (var i in e) s.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, s = {}.hasOwnProperty; n = e.handleEvent, i = e.triggerEvent, t = e.findClosestElementFromNode, e.ToolbarController = function (e) { function s(t) { this.element = t, this.didKeyDownDialogInput = o(this.didKeyDownDialogInput, this), this.didClickDialogButton = o(this.didClickDialogButton, this), this.didClickAttributeButton = o(this.didClickAttributeButton, this), this.didClickActionButton = o(this.didClickActionButton, this), this.attributes = {}, this.actions = {}, this.resetDialogInputs(), n(\"mousedown\", { onElement: this.element, matchingSelector: a, withCallback: this.didClickActionButton }), n(\"mousedown\", { onElement: this.element, matchingSelector: c, withCallback: this.didClickAttributeButton }), n(\"click\", { onElement: this.element, matchingSelector: y, preventDefault: !0 }), n(\"click\", { onElement: this.element, matchingSelector: l, withCallback: this.didClickDialogButton }), n(\"keydown\", { onElement: this.element, matchingSelector: h, withCallback: this.didKeyDownDialogInput }) } var a, u, c, l, h, p, d, f, g, m, y; return r(s, e), c = \"[data-trix-attribute]\", a = \"[data-trix-action]\", y = c + \", \" + a, p = \"[data-trix-dialog]\", u = p + \"[data-trix-active]\", l = p + \" [data-trix-method]\", h = p + \" [data-trix-input]\", s.prototype.didClickActionButton = function (t, e) { var n, i, o; return null != (i = this.delegate) && i.toolbarDidClickButton(), t.preventDefault(), n = d(e), this.getDialog(n) ? this.toggleDialog(n) : null != (o = this.delegate) ? o.toolbarDidInvokeAction(n) : void 0 }, s.prototype.didClickAttributeButton = function (t, e) { var n, i, o; return null != (i = this.delegate) && i.toolbarDidClickButton(), t.preventDefault(), n = f(e), this.getDialog(n) ? this.toggleDialog(n) : null != (o = this.delegate) && o.toolbarDidToggleAttribute(n), this.refreshAttributeButtons() }, s.prototype.didClickDialogButton = function (e, n) { var i, o; return i = t(n, { matchingSelector: p }), o = n.getAttribute(\"data-trix-method\"), this[o].call(this, i) }, s.prototype.didKeyDownDialogInput = function (t, e) { var n, i; return 13 === t.keyCode && (t.preventDefault(), n = e.getAttribute(\"name\"), i = this.getDialog(n), this.setAttribute(i)), 27 === t.keyCode ? (t.preventDefault(), this.hideDialog()) : void 0 }, s.prototype.updateActions = function (t) { return this.actions = t, this.refreshActionButtons() }, s.prototype.refreshActionButtons = function () { return this.eachActionButton(function (t) { return function (e, n) { return e.disabled = t.actions[n] === !1 } }(this)) }, s.prototype.eachActionButton = function (t) { var e, n, i, o, r; for (o = this.element.querySelectorAll(a), r = [], n = 0, i = o.length; i > n; n++)e = o[n], r.push(t(e, d(e))); return r }, s.prototype.updateAttributes = function (t) { return this.attributes = t, this.refreshAttributeButtons() }, s.prototype.refreshAttributeButtons = function () { return this.eachAttributeButton(function (t) { return function (e, n) { return e.disabled = t.attributes[n] === !1, t.attributes[n] || t.dialogIsVisible(n) ? (e.setAttribute(\"data-trix-active\", \"\"), e.classList.add(\"trix-active\")) : (e.removeAttribute(\"data-trix-active\"), e.classList.remove(\"trix-active\")) } }(this)) }, s.prototype.eachAttributeButton = function (t) { var e, n, i, o, r; for (o = this.element.querySelectorAll(c), r = [], n = 0, i = o.length; i > n; n++)e = o[n], r.push(t(e, f(e))); return r }, s.prototype.applyKeyboardCommand = function (t) { var e, n, o, r, s, a, u; for (s = JSON.stringify(t.sort()), u = this.element.querySelectorAll(\"[data-trix-key]\"), r = 0, a = u.length; a > r; r++)if (e = u[r], o = e.getAttribute(\"data-trix-key\").split(\"+\"), n = JSON.stringify(o.sort()), n === s) return i(\"mousedown\", { onElement: e }), !0; return !1 }, s.prototype.dialogIsVisible = function (t) { var e; return (e = this.getDialog(t)) ? e.hasAttribute(\"data-trix-active\") : void 0 }, s.prototype.toggleDialog = function (t) { return this.dialogIsVisible(t) ? this.hideDialog() : this.showDialog(t) }, s.prototype.showDialog = function (t) { var e, n, i, o, r, s, a, u, c, l; for (this.hideDialog(), null != (a = this.delegate) && a.toolbarWillShowDialog(), i = this.getDialog(t), i.setAttribute(\"data-trix-active\", \"\"), i.classList.add(\"trix-active\"), u = i.querySelectorAll(\"input[disabled]\"), o = 0, s = u.length; s > o; o++)n = u[o], n.removeAttribute(\"disabled\"); return (e = f(i)) && (r = m(i, t)) && (r.value = null != (c = this.attributes[e]) ? c : \"\", r.select()), null != (l = this.delegate) ? l.toolbarDidShowDialog(t) : void 0 }, s.prototype.setAttribute = function (t) { var e, n, i; return e = f(t), n = m(t, e), n.willValidate && !n.checkValidity() ? (n.setAttribute(\"data-trix-validate\", \"\"), n.classList.add(\"trix-validate\"), n.focus()) : (null != (i = this.delegate) && i.toolbarDidUpdateAttribute(e, n.value), this.hideDialog()) }, s.prototype.removeAttribute = function (t) { var e, n; return e = f(t), null != (n = this.delegate) && n.toolbarDidRemoveAttribute(e), this.hideDialog() }, s.prototype.hideDialog = function () { var t, e; return (t = this.element.querySelector(u)) ? (t.removeAttribute(\"data-trix-active\"), t.classList.remove(\"trix-active\"), this.resetDialogInputs(), null != (e = this.delegate) ? e.toolbarDidHideDialog(g(t)) : void 0) : void 0 }, s.prototype.resetDialogInputs = function () { var t, e, n, i, o; for (i = this.element.querySelectorAll(h), o = [], t = 0, n = i.length; n > t; t++)e = i[t], e.setAttribute(\"disabled\", \"disabled\"), e.removeAttribute(\"data-trix-validate\"), o.push(e.classList.remove(\"trix-validate\")); return o }, s.prototype.getDialog = function (t) { return this.element.querySelector(\"[data-trix-dialog=\" + t + \"]\") }, m = function (t, e) { return null == e && (e = f(t)), t.querySelector(\"[data-trix-input][name='\" + e + \"']\") }, d = function (t) { return t.getAttribute(\"data-trix-action\") }, f = function (t) { var e; return null != (e = t.getAttribute(\"data-trix-attribute\")) ? e : t.getAttribute(\"data-trix-dialog-attribute\") }, g = function (t) { return t.getAttribute(\"data-trix-dialog\") }, s }(e.BasicObject) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.ImagePreloadOperation = function (e) { function n(t) { this.url = t } return t(n, e), n.prototype.perform = function (t) { var e; return e = new Image, e.onload = function (n) { return function () { return e.width = n.width = e.naturalWidth, e.height = n.height = e.naturalHeight, t(!0, e) } }(this), e.onerror = function () { return t(!1) }, e.src = this.url }, n }(e.Operation) }.call(this), function () {\r\n var t = function (t, e) { return function () { return t.apply(e, arguments) } }, n = function (t, e) { function n() { this.constructor = t } for (var o in e) i.call(e, o) && (t[o] = e[o]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, i = {}.hasOwnProperty; e.Attachment = function (i) {\r\n function o(n) { null == n && (n = {}), this.releaseFile = t(this.releaseFile, this), o.__super__.constructor.apply(this, arguments), this.attributes = e.Hash.box(n), this.didChangeAttributes() } return n(o, i), o.previewablePattern = /^image(\\/(gif|png|jpe?g)|$)/, o.attachmentForFile = function (t) { var e, n; return n = this.attributesForFile(t), e = new this(n), e.setFile(t), e }, o.attributesForFile = function (t) {\r\n return new e.Hash({ filename: t.name, filesize: t.size, contentType: t.type })\r\n }, o.fromJSON = function (t) { return new this(t) }, o.prototype.getAttribute = function (t) { return this.attributes.get(t) }, o.prototype.hasAttribute = function (t) { return this.attributes.has(t) }, o.prototype.getAttributes = function () { return this.attributes.toObject() }, o.prototype.setAttributes = function (t) { var e, n, i; return null == t && (t = {}), e = this.attributes.merge(t), this.attributes.isEqualTo(e) ? void 0 : (this.attributes = e, this.didChangeAttributes(), null != (n = this.previewDelegate) && \"function\" == typeof n.attachmentDidChangeAttributes && n.attachmentDidChangeAttributes(this), null != (i = this.delegate) && \"function\" == typeof i.attachmentDidChangeAttributes ? i.attachmentDidChangeAttributes(this) : void 0) }, o.prototype.didChangeAttributes = function () { return this.isPreviewable() ? this.preloadURL() : void 0 }, o.prototype.isPending = function () { return null != this.file && !(this.getURL() || this.getHref()) }, o.prototype.isPreviewable = function () { return this.attributes.has(\"previewable\") ? this.attributes.get(\"previewable\") : this.constructor.previewablePattern.test(this.getContentType()) }, o.prototype.getType = function () { return this.hasContent() ? \"content\" : this.isPreviewable() ? \"preview\" : \"file\" }, o.prototype.getURL = function () { return this.attributes.get(\"url\") }, o.prototype.getHref = function () { return this.attributes.get(\"href\") }, o.prototype.getFilename = function () { var t; return null != (t = this.attributes.get(\"filename\")) ? t : \"\" }, o.prototype.getFilesize = function () { return this.attributes.get(\"filesize\") }, o.prototype.getFormattedFilesize = function () { var t; return t = this.attributes.get(\"filesize\"), \"number\" == typeof t ? e.config.fileSize.formatter(t) : \"\" }, o.prototype.getExtension = function () { var t; return null != (t = this.getFilename().match(/\\.(\\w+)$/)) ? t[1].toLowerCase() : void 0 }, o.prototype.getContentType = function () { return this.attributes.get(\"contentType\") }, o.prototype.hasContent = function () { return this.attributes.has(\"content\") }, o.prototype.getContent = function () { return this.attributes.get(\"content\") }, o.prototype.getWidth = function () { return this.attributes.get(\"width\") }, o.prototype.getHeight = function () { return this.attributes.get(\"height\") }, o.prototype.getFile = function () { return this.file }, o.prototype.setFile = function (t) { return this.file = t, this.isPreviewable() ? this.preloadFile() : void 0 }, o.prototype.releaseFile = function () { return this.releasePreloadedFile(), this.file = null }, o.prototype.getUploadProgress = function () { var t; return null != (t = this.uploadProgress) ? t : 0 }, o.prototype.setUploadProgress = function (t) { var e; return this.uploadProgress !== t ? (this.uploadProgress = t, null != (e = this.uploadProgressDelegate) && \"function\" == typeof e.attachmentDidChangeUploadProgress ? e.attachmentDidChangeUploadProgress(this) : void 0) : void 0 }, o.prototype.toJSON = function () { return this.getAttributes() }, o.prototype.getCacheKey = function () { return [o.__super__.getCacheKey.apply(this, arguments), this.attributes.getCacheKey(), this.getPreviewURL()].join(\"/\") }, o.prototype.getPreviewURL = function () { return this.previewURL || this.preloadingURL }, o.prototype.setPreviewURL = function (t) { var e, n; return t !== this.getPreviewURL() ? (this.previewURL = t, null != (e = this.previewDelegate) && \"function\" == typeof e.attachmentDidChangeAttributes && e.attachmentDidChangeAttributes(this), null != (n = this.delegate) && \"function\" == typeof n.attachmentDidChangePreviewURL ? n.attachmentDidChangePreviewURL(this) : void 0) : void 0 }, o.prototype.preloadURL = function () { return this.preload(this.getURL(), this.releaseFile) }, o.prototype.preloadFile = function () { return this.file ? (this.fileObjectURL = URL.createObjectURL(this.file), this.preload(this.fileObjectURL)) : void 0 }, o.prototype.releasePreloadedFile = function () { return this.fileObjectURL ? (URL.revokeObjectURL(this.fileObjectURL), this.fileObjectURL = null) : void 0 }, o.prototype.preload = function (t, n) { var i; return t && t !== this.getPreviewURL() ? (this.preloadingURL = t, i = new e.ImagePreloadOperation(t), i.then(function (e) { return function (i) { var o, r; return r = i.width, o = i.height, e.setAttributes({ width: r, height: o }), e.preloadingURL = null, e.setPreviewURL(t), \"function\" == typeof n ? n() : void 0 } }(this))) : void 0 }, o\r\n }(e.Object)\r\n }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.Piece = function (n) { function i(t, n) { null == n && (n = {}), i.__super__.constructor.apply(this, arguments), this.attributes = e.Hash.box(n) } return t(i, n), i.types = {}, i.registerType = function (t, e) { return e.type = t, this.types[t] = e }, i.fromJSON = function (t) { var e; return (e = this.types[t.type]) ? e.fromJSON(t) : void 0 }, i.prototype.copyWithAttributes = function (t) { return new this.constructor(this.getValue(), t) }, i.prototype.copyWithAdditionalAttributes = function (t) { return this.copyWithAttributes(this.attributes.merge(t)) }, i.prototype.copyWithoutAttribute = function (t) { return this.copyWithAttributes(this.attributes.remove(t)) }, i.prototype.copy = function () { return this.copyWithAttributes(this.attributes) }, i.prototype.getAttribute = function (t) { return this.attributes.get(t) }, i.prototype.getAttributesHash = function () { return this.attributes }, i.prototype.getAttributes = function () { return this.attributes.toObject() }, i.prototype.getCommonAttributes = function () { var t, e, n; return (n = pieceList.getPieceAtIndex(0)) ? (t = n.attributes, e = t.getKeys(), pieceList.eachPiece(function (n) { return e = t.getKeysCommonToHash(n.attributes), t = t.slice(e) }), t.toObject()) : {} }, i.prototype.hasAttribute = function (t) { return this.attributes.has(t) }, i.prototype.hasSameStringValueAsPiece = function (t) { return null != t && this.toString() === t.toString() }, i.prototype.hasSameAttributesAsPiece = function (t) { return null != t && (this.attributes === t.attributes || this.attributes.isEqualTo(t.attributes)) }, i.prototype.isBlockBreak = function () { return !1 }, i.prototype.isEqualTo = function (t) { return i.__super__.isEqualTo.apply(this, arguments) || this.hasSameConstructorAs(t) && this.hasSameStringValueAsPiece(t) && this.hasSameAttributesAsPiece(t) }, i.prototype.isEmpty = function () { return 0 === this.length }, i.prototype.isSerializable = function () { return !0 }, i.prototype.toJSON = function () { return { type: this.constructor.type, attributes: this.getAttributes() } }, i.prototype.contentsForInspection = function () { return { type: this.constructor.type, attributes: this.attributes.inspect() } }, i.prototype.canBeGrouped = function () { return this.hasAttribute(\"href\") }, i.prototype.canBeGroupedWith = function (t) { return this.getAttribute(\"href\") === t.getAttribute(\"href\") }, i.prototype.getLength = function () { return this.length }, i.prototype.canBeConsolidatedWith = function () { return !1 }, i }(e.Object) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.Piece.registerType(\"attachment\", e.AttachmentPiece = function (n) { function i(t) { this.attachment = t, i.__super__.constructor.apply(this, arguments), this.length = 1, this.ensureAttachmentExclusivelyHasAttribute(\"href\"), this.attachment.hasContent() || this.removeProhibitedAttributes() } return t(i, n), i.fromJSON = function (t) { return new this(e.Attachment.fromJSON(t.attachment), t.attributes) }, i.permittedAttributes = [\"caption\", \"presentation\"], i.prototype.ensureAttachmentExclusivelyHasAttribute = function (t) { return this.hasAttribute(t) ? (this.attachment.hasAttribute(t) || this.attachment.setAttributes(this.attributes.slice(t)), this.attributes = this.attributes.remove(t)) : void 0 }, i.prototype.removeProhibitedAttributes = function () { var t; return t = this.attributes.slice(this.constructor.permittedAttributes), t.isEqualTo(this.attributes) ? void 0 : this.attributes = t }, i.prototype.getValue = function () { return this.attachment }, i.prototype.isSerializable = function () { return !this.attachment.isPending() }, i.prototype.getCaption = function () { var t; return null != (t = this.attributes.get(\"caption\")) ? t : \"\" }, i.prototype.isEqualTo = function (t) { var e; return i.__super__.isEqualTo.apply(this, arguments) && this.attachment.id === (null != t && null != (e = t.attachment) ? e.id : void 0) }, i.prototype.toString = function () { return e.OBJECT_REPLACEMENT_CHARACTER }, i.prototype.toJSON = function () { var t; return t = i.__super__.toJSON.apply(this, arguments), t.attachment = this.attachment, t }, i.prototype.getCacheKey = function () { return [i.__super__.getCacheKey.apply(this, arguments), this.attachment.getCacheKey()].join(\"/\") }, i.prototype.toConsole = function () { return JSON.stringify(this.toString()) }, i }(e.Piece)) }.call(this), function () { var t, n = function (t, e) { function n() { this.constructor = t } for (var o in e) i.call(e, o) && (t[o] = e[o]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, i = {}.hasOwnProperty; t = e.normalizeNewlines, e.Piece.registerType(\"string\", e.StringPiece = function (e) { function i(e) { i.__super__.constructor.apply(this, arguments), this.string = t(e), this.length = this.string.length } return n(i, e), i.fromJSON = function (t) { return new this(t.string, t.attributes) }, i.prototype.getValue = function () { return this.string }, i.prototype.toString = function () { return this.string.toString() }, i.prototype.isBlockBreak = function () { return \"\\n\" === this.toString() && this.getAttribute(\"blockBreak\") === !0 }, i.prototype.toJSON = function () { var t; return t = i.__super__.toJSON.apply(this, arguments), t.string = this.string, t }, i.prototype.canBeConsolidatedWith = function (t) { return null != t && this.hasSameConstructorAs(t) && this.hasSameAttributesAsPiece(t) }, i.prototype.consolidateWith = function (t) { return new this.constructor(this.toString() + t.toString(), this.attributes) }, i.prototype.splitAtOffset = function (t) { var e, n; return 0 === t ? (e = null, n = this) : t === this.length ? (e = this, n = null) : (e = new this.constructor(this.string.slice(0, t), this.attributes), n = new this.constructor(this.string.slice(t), this.attributes)), [e, n] }, i.prototype.toConsole = function () { var t; return t = this.string, t.length > 15 && (t = t.slice(0, 14) + \"\\u2026\"), JSON.stringify(t.toString()) }, i }(e.Piece)) }.call(this), function () { var t, n = function (t, e) { function n() { this.constructor = t } for (var o in e) i.call(e, o) && (t[o] = e[o]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, i = {}.hasOwnProperty, o = [].slice; t = e.spliceArray, e.SplittableList = function (e) { function i(t) { null == t && (t = []), i.__super__.constructor.apply(this, arguments), this.objects = t.slice(0), this.length = this.objects.length } var r, s, a; return n(i, e), i.box = function (t) { return t instanceof this ? t : new this(t) }, i.prototype.indexOf = function (t) { return this.objects.indexOf(t) }, i.prototype.splice = function () { var e; return e = 1 <= arguments.length ? o.call(arguments, 0) : [], new this.constructor(t.apply(null, [this.objects].concat(o.call(e)))) }, i.prototype.eachObject = function (t) { var e, n, i, o, r, s; for (r = this.objects, s = [], n = e = 0, i = r.length; i > e; n = ++e)o = r[n], s.push(t(o, n)); return s }, i.prototype.insertObjectAtIndex = function (t, e) { return this.splice(e, 0, t) }, i.prototype.insertSplittableListAtIndex = function (t, e) { return this.splice.apply(this, [e, 0].concat(o.call(t.objects))) }, i.prototype.insertSplittableListAtPosition = function (t, e) { var n, i, o; return o = this.splitObjectAtPosition(e), i = o[0], n = o[1], new this.constructor(i).insertSplittableListAtIndex(t, n) }, i.prototype.editObjectAtIndex = function (t, e) { return this.replaceObjectAtIndex(e(this.objects[t]), t) }, i.prototype.replaceObjectAtIndex = function (t, e) { return this.splice(e, 1, t) }, i.prototype.removeObjectAtIndex = function (t) { return this.splice(t, 1) }, i.prototype.getObjectAtIndex = function (t) { return this.objects[t] }, i.prototype.getSplittableListInRange = function (t) { var e, n, i, o; return i = this.splitObjectsAtRange(t), n = i[0], e = i[1], o = i[2], new this.constructor(n.slice(e, o + 1)) }, i.prototype.selectSplittableList = function (t) { var e, n; return n = function () { var n, i, o, r; for (o = this.objects, r = [], n = 0, i = o.length; i > n; n++)e = o[n], t(e) && r.push(e); return r }.call(this), new this.constructor(n) }, i.prototype.removeObjectsInRange = function (t) { var e, n, i, o; return i = this.splitObjectsAtRange(t), n = i[0], e = i[1], o = i[2], new this.constructor(n).splice(e, o - e + 1) }, i.prototype.transformObjectsInRange = function (t, e) { var n, i, o, r, s, a, u; return s = this.splitObjectsAtRange(t), r = s[0], i = s[1], a = s[2], u = function () { var t, s, u; for (u = [], n = t = 0, s = r.length; s > t; n = ++t)o = r[n], u.push(n >= i && a >= n ? e(o) : o); return u }(), new this.constructor(u) }, i.prototype.splitObjectsAtRange = function (t) { var e, n, i, o, s, u; return o = this.splitObjectAtPosition(a(t)), n = o[0], e = o[1], i = o[2], s = new this.constructor(n).splitObjectAtPosition(r(t) + i), n = s[0], u = s[1], [n, e, u - 1] }, i.prototype.getObjectAtPosition = function (t) { var e, n, i; return i = this.findIndexAndOffsetAtPosition(t), e = i.index, n = i.offset, this.objects[e] }, i.prototype.splitObjectAtPosition = function (t) { var e, n, i, o, r, s, a, u, c, l; return s = this.findIndexAndOffsetAtPosition(t), e = s.index, r = s.offset, o = this.objects.slice(0), null != e ? 0 === r ? (c = e, l = 0) : (i = this.getObjectAtIndex(e), a = i.splitAtOffset(r), n = a[0], u = a[1], o.splice(e, 1, n, u), c = e + 1, l = n.getLength() - r) : (c = o.length, l = 0), [o, c, l] }, i.prototype.consolidate = function () { var t, e, n, i, o, r; for (i = [], o = this.objects[0], r = this.objects.slice(1), t = 0, e = r.length; e > t; t++)n = r[t], (\"function\" == typeof o.canBeConsolidatedWith ? o.canBeConsolidatedWith(n) : void 0) ? o = o.consolidateWith(n) : (i.push(o), o = n); return null != o && i.push(o), new this.constructor(i) }, i.prototype.consolidateFromIndexToIndex = function (t, e) { var n, i, r; return i = this.objects.slice(0), r = i.slice(t, e + 1), n = new this.constructor(r).consolidate().toArray(), this.splice.apply(this, [t, r.length].concat(o.call(n))) }, i.prototype.findIndexAndOffsetAtPosition = function (t) { var e, n, i, o, r, s, a; for (e = 0, a = this.objects, i = n = 0, o = a.length; o > n; i = ++n) { if (s = a[i], r = e + s.getLength(), t >= e && r > t) return { index: i, offset: t - e }; e = r } return { index: null, offset: null } }, i.prototype.findPositionAtIndexAndOffset = function (t, e) { var n, i, o, r, s, a; for (s = 0, a = this.objects, n = i = 0, o = a.length; o > i; n = ++i)if (r = a[n], t > n) s += r.getLength(); else if (n === t) { s += e; break } return s }, i.prototype.getEndPosition = function () { var t, e; return null != this.endPosition ? this.endPosition : this.endPosition = function () { var n, i, o; for (e = 0, o = this.objects, n = 0, i = o.length; i > n; n++)t = o[n], e += t.getLength(); return e }.call(this) }, i.prototype.toString = function () { return this.objects.join(\"\") }, i.prototype.toArray = function () { return this.objects.slice(0) }, i.prototype.toJSON = function () { return this.toArray() }, i.prototype.isEqualTo = function (t) { return i.__super__.isEqualTo.apply(this, arguments) || s(this.objects, null != t ? t.objects : void 0) }, s = function (t, e) { var n, i, o, r, s; if (null == e && (e = []), t.length !== e.length) return !1; for (s = !0, i = n = 0, o = t.length; o > n; i = ++n)r = t[i], s && !r.isEqualTo(e[i]) && (s = !1); return s }, i.prototype.contentsForInspection = function () { var t; return { objects: \"[\" + function () { var e, n, i, o; for (i = this.objects, o = [], e = 0, n = i.length; n > e; e++)t = i[e], o.push(t.inspect()); return o }.call(this).join(\", \") + \"]\" } }, a = function (t) { return t[0] }, r = function (t) { return t[1] }, i }(e.Object) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.Text = function (n) { function i(t) { var n; null == t && (t = []), i.__super__.constructor.apply(this, arguments), this.pieceList = new e.SplittableList(function () { var e, i, o; for (o = [], e = 0, i = t.length; i > e; e++)n = t[e], n.isEmpty() || o.push(n); return o }()) } return t(i, n), i.textForAttachmentWithAttributes = function (t, n) { var i; return i = new e.AttachmentPiece(t, n), new this([i]) }, i.textForStringWithAttributes = function (t, n) { var i; return i = new e.StringPiece(t, n), new this([i]) }, i.fromJSON = function (t) { var n, i; return i = function () { var i, o, r; for (r = [], i = 0, o = t.length; o > i; i++)n = t[i], r.push(e.Piece.fromJSON(n)); return r }(), new this(i) }, i.prototype.copy = function () { return this.copyWithPieceList(this.pieceList) }, i.prototype.copyWithPieceList = function (t) { return new this.constructor(t.consolidate().toArray()) }, i.prototype.copyUsingObjectMap = function (t) { var e, n; return n = function () { var n, i, o, r, s; for (o = this.getPieces(), s = [], n = 0, i = o.length; i > n; n++)e = o[n], s.push(null != (r = t.find(e)) ? r : e); return s }.call(this), new this.constructor(n) }, i.prototype.appendText = function (t) { return this.insertTextAtPosition(t, this.getLength()) }, i.prototype.insertTextAtPosition = function (t, e) { return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(t.pieceList, e)) }, i.prototype.removeTextAtRange = function (t) { return this.copyWithPieceList(this.pieceList.removeObjectsInRange(t)) }, i.prototype.replaceTextAtRange = function (t, e) { return this.removeTextAtRange(e).insertTextAtPosition(t, e[0]) }, i.prototype.moveTextFromRangeToPosition = function (t, e) { var n, i; if (!(t[0] <= e && e <= t[1])) return i = this.getTextAtRange(t), n = i.getLength(), t[0] < e && (e -= n), this.removeTextAtRange(t).insertTextAtPosition(i, e) }, i.prototype.addAttributeAtRange = function (t, e, n) { var i; return i = {}, i[t] = e, this.addAttributesAtRange(i, n) }, i.prototype.addAttributesAtRange = function (t, e) { return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e, function (e) { return e.copyWithAdditionalAttributes(t) })) }, i.prototype.removeAttributeAtRange = function (t, e) { return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e, function (e) { return e.copyWithoutAttribute(t) })) }, i.prototype.setAttributesAtRange = function (t, e) { return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e, function (e) { return e.copyWithAttributes(t) })) }, i.prototype.getAttributesAtPosition = function (t) { var e, n; return null != (e = null != (n = this.pieceList.getObjectAtPosition(t)) ? n.getAttributes() : void 0) ? e : {} }, i.prototype.getCommonAttributes = function () { var t, n; return t = function () { var t, e, i, o; for (i = this.pieceList.toArray(), o = [], t = 0, e = i.length; e > t; t++)n = i[t], o.push(n.getAttributes()); return o }.call(this), e.Hash.fromCommonAttributesOfObjects(t).toObject() }, i.prototype.getCommonAttributesAtRange = function (t) { var e; return null != (e = this.getTextAtRange(t).getCommonAttributes()) ? e : {} }, i.prototype.getExpandedRangeForAttributeAtOffset = function (t, e) { var n, i, o; for (n = o = e, i = this.getLength(); n > 0 && this.getCommonAttributesAtRange([n - 1, o])[t];)n--; for (; i > o && this.getCommonAttributesAtRange([e, o + 1])[t];)o++; return [n, o] }, i.prototype.getTextAtRange = function (t) { return this.copyWithPieceList(this.pieceList.getSplittableListInRange(t)) }, i.prototype.getStringAtRange = function (t) { return this.pieceList.getSplittableListInRange(t).toString() }, i.prototype.getStringAtPosition = function (t) { return this.getStringAtRange([t, t + 1]) }, i.prototype.startsWithString = function (t) { return this.getStringAtRange([0, t.length]) === t }, i.prototype.endsWithString = function (t) { var e; return e = this.getLength(), this.getStringAtRange([e - t.length, e]) === t }, i.prototype.getAttachmentPieces = function () { var t, e, n, i, o; for (i = this.pieceList.toArray(), o = [], t = 0, e = i.length; e > t; t++)n = i[t], null != n.attachment && o.push(n); return o }, i.prototype.getAttachments = function () { var t, e, n, i, o; for (i = this.getAttachmentPieces(), o = [], t = 0, e = i.length; e > t; t++)n = i[t], o.push(n.attachment); return o }, i.prototype.getAttachmentAndPositionById = function (t) { var e, n, i, o, r, s; for (o = 0, r = this.pieceList.toArray(), e = 0, n = r.length; n > e; e++) { if (i = r[e], (null != (s = i.attachment) ? s.id : void 0) === t) return { attachment: i.attachment, position: o }; o += i.length } return { attachment: null, position: null } }, i.prototype.getAttachmentById = function (t) { var e, n, i; return i = this.getAttachmentAndPositionById(t), e = i.attachment, n = i.position, e }, i.prototype.getRangeOfAttachment = function (t) { var e, n; return n = this.getAttachmentAndPositionById(t.id), t = n.attachment, e = n.position, null != t ? [e, e + 1] : void 0 }, i.prototype.updateAttributesForAttachment = function (t, e) { var n; return (n = this.getRangeOfAttachment(e)) ? this.addAttributesAtRange(t, n) : this }, i.prototype.getLength = function () { return this.pieceList.getEndPosition() }, i.prototype.isEmpty = function () { return 0 === this.getLength() }, i.prototype.isEqualTo = function (t) { var e; return i.__super__.isEqualTo.apply(this, arguments) || (null != t && null != (e = t.pieceList) ? e.isEqualTo(this.pieceList) : void 0) }, i.prototype.isBlockBreak = function () { return 1 === this.getLength() && this.pieceList.getObjectAtIndex(0).isBlockBreak() }, i.prototype.eachPiece = function (t) { return this.pieceList.eachObject(t) }, i.prototype.getPieces = function () { return this.pieceList.toArray() }, i.prototype.getPieceAtPosition = function (t) { return this.pieceList.getObjectAtPosition(t) }, i.prototype.contentsForInspection = function () { return { pieceList: this.pieceList.inspect() } }, i.prototype.toSerializableText = function () { var t; return t = this.pieceList.selectSplittableList(function (t) { return t.isSerializable() }), this.copyWithPieceList(t) }, i.prototype.toString = function () { return this.pieceList.toString() }, i.prototype.toJSON = function () { return this.pieceList.toJSON() }, i.prototype.toConsole = function () { var t; return JSON.stringify(function () { var e, n, i, o; for (i = this.pieceList.toArray(), o = [], e = 0, n = i.length; n > e; e++)t = i[e], o.push(JSON.parse(t.toConsole())); return o }.call(this)) }, i }(e.Object) }.call(this), function () { var t, n, i, o, r, s = function (t, e) { function n() { this.constructor = t } for (var i in e) a.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, a = {}.hasOwnProperty, u = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }, c = [].slice; t = e.arraysAreEqual, r = e.spliceArray, i = e.getBlockConfig, n = e.getBlockAttributeNames, o = e.getListAttributeNames, e.Block = function (n) { function a(t, n) { null == t && (t = new e.Text), null == n && (n = []), a.__super__.constructor.apply(this, arguments), this.text = h(t), this.attributes = n } var l, h, p, d, f, g, m, y, v; return s(a, n), a.fromJSON = function (t) { var n; return n = e.Text.fromJSON(t.text), new this(n, t.attributes) }, a.prototype.isEmpty = function () { return this.text.isBlockBreak() }, a.prototype.isEqualTo = function (e) { return a.__super__.isEqualTo.apply(this, arguments) || this.text.isEqualTo(null != e ? e.text : void 0) && t(this.attributes, null != e ? e.attributes : void 0) }, a.prototype.copyWithText = function (t) { return new this.constructor(t, this.attributes) }, a.prototype.copyWithoutText = function () { return this.copyWithText(null) }, a.prototype.copyWithAttributes = function (t) { return new this.constructor(this.text, t) }, a.prototype.copyWithoutAttributes = function () { return this.copyWithAttributes(null) }, a.prototype.copyUsingObjectMap = function (t) { var e; return this.copyWithText((e = t.find(this.text)) ? e : this.text.copyUsingObjectMap(t)) }, a.prototype.addAttribute = function (t) { var e; return e = this.attributes.concat(d(t)), this.copyWithAttributes(e) }, a.prototype.removeAttribute = function (t) { var e, n; return n = i(t).listAttribute, e = g(g(this.attributes, t), n), this.copyWithAttributes(e) }, a.prototype.removeLastAttribute = function () { return this.removeAttribute(this.getLastAttribute()) }, a.prototype.getLastAttribute = function () { return f(this.attributes) }, a.prototype.getAttributes = function () { return this.attributes.slice(0) }, a.prototype.getAttributeLevel = function () { return this.attributes.length }, a.prototype.getAttributeAtLevel = function (t) { return this.attributes[t - 1] }, a.prototype.hasAttribute = function (t) { return u.call(this.attributes, t) >= 0 }, a.prototype.hasAttributes = function () { return this.getAttributeLevel() > 0 }, a.prototype.getLastNestableAttribute = function () { return f(this.getNestableAttributes()) }, a.prototype.getNestableAttributes = function () { var t, e, n, o, r; for (o = this.attributes, r = [], e = 0, n = o.length; n > e; e++)t = o[e], i(t).nestable && r.push(t); return r }, a.prototype.getNestingLevel = function () { return this.getNestableAttributes().length }, a.prototype.decreaseNestingLevel = function () { var t; return (t = this.getLastNestableAttribute()) ? this.removeAttribute(t) : this }, a.prototype.increaseNestingLevel = function () { var t, e, n; return (t = this.getLastNestableAttribute()) ? (n = this.attributes.lastIndexOf(t), e = r.apply(null, [this.attributes, n + 1, 0].concat(c.call(d(t)))), this.copyWithAttributes(e)) : this }, a.prototype.getListItemAttributes = function () { var t, e, n, o, r; for (o = this.attributes, r = [], e = 0, n = o.length; n > e; e++)t = o[e], i(t).listAttribute && r.push(t); return r }, a.prototype.isListItem = function () { var t; return null != (t = i(this.getLastAttribute())) ? t.listAttribute : void 0 }, a.prototype.isTerminalBlock = function () { var t; return null != (t = i(this.getLastAttribute())) ? t.terminal : void 0 }, a.prototype.breaksOnReturn = function () { var t; return null != (t = i(this.getLastAttribute())) ? t.breakOnReturn : void 0 }, a.prototype.findLineBreakInDirectionFromPosition = function (t, e) { var n, i; return i = this.toString(), n = function () { switch (t) { case \"forward\": return i.indexOf(\"\\n\", e); case \"backward\": return i.slice(0, e).lastIndexOf(\"\\n\") } }(), -1 !== n ? n : void 0 }, a.prototype.contentsForInspection = function () { return { text: this.text.inspect(), attributes: this.attributes } }, a.prototype.toString = function () { return this.text.toString() }, a.prototype.toJSON = function () { return { text: this.text, attributes: this.attributes } }, a.prototype.getLength = function () { return this.text.getLength() }, a.prototype.canBeConsolidatedWith = function (t) { return !this.hasAttributes() && !t.hasAttributes() }, a.prototype.consolidateWith = function (t) { var n, i; return n = e.Text.textForStringWithAttributes(\"\\n\"), i = this.getTextWithoutBlockBreak().appendText(n), this.copyWithText(i.appendText(t.text)) }, a.prototype.splitAtOffset = function (t) { var e, n; return 0 === t ? (e = null, n = this) : t === this.getLength() ? (e = this, n = null) : (e = this.copyWithText(this.text.getTextAtRange([0, t])), n = this.copyWithText(this.text.getTextAtRange([t, this.getLength()]))), [e, n] }, a.prototype.getBlockBreakPosition = function () { return this.text.getLength() - 1 }, a.prototype.getTextWithoutBlockBreak = function () { return m(this.text) ? this.text.getTextAtRange([0, this.getBlockBreakPosition()]) : this.text.copy() }, a.prototype.canBeGrouped = function (t) { return this.attributes[t] }, a.prototype.canBeGroupedWith = function (t, e) { var n, r, s, a; return s = t.getAttributes(), r = s[e], n = this.attributes[e], n === r && !(i(n).group === !1 && (a = s[e + 1], u.call(o(), a) < 0)) }, h = function (t) { return t = v(t), t = l(t) }, v = function (t) { var n, i, o, r, s, a; return r = !1, a = t.getPieces(), i = 2 <= a.length ? c.call(a, 0, n = a.length - 1) : (n = 0, []), o = a[n++], null == o ? t : (i = function () { var t, e, n; for (n = [], t = 0, e = i.length; e > t; t++)s = i[t], s.isBlockBreak() ? (r = !0, n.push(y(s))) : n.push(s); return n }(), r ? new e.Text(c.call(i).concat([o])) : t) }, p = e.Text.textForStringWithAttributes(\"\\n\", { blockBreak: !0 }), l = function (t) { return m(t) ? t : t.appendText(p) }, m = function (t) { var e, n; return n = t.getLength(), 0 === n ? !1 : (e = t.getTextAtRange([n - 1, n]), e.isBlockBreak()) }, y = function (t) { return t.copyWithoutAttribute(\"blockBreak\") }, d = function (t) { var e; return e = i(t).listAttribute, null != e ? [e, t] : [t] }, f = function (t) { return t.slice(-1)[0] }, g = function (t, e) { var n; return n = t.lastIndexOf(e), -1 === n ? t : r(t, n, 1) }, a }(e.Object) }.call(this), function () { var t, n, i, o = function (t, e) { function n() { this.constructor = t } for (var i in e) r.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, r = {}.hasOwnProperty, s = [].slice, a = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; n = e.tagName, i = e.walkTree, t = e.nodeIsAttachmentElement, e.HTMLSanitizer = function (r) { function u(t, e) { this.allowedAttributes = (null != e ? e : {}).allowedAttributes, null == this.allowedAttributes && (this.allowedAttributes = c), this.body = l(t) } var c, l, h; return o(u, r), c = \"style href src width height class\".split(\" \"), u.sanitize = function (t, e) { var n; return n = new this(t, e), n.sanitize(), n }, u.prototype.sanitize = function () { return this.sanitizeElements(), this.normalizeListElementNesting() }, u.prototype.getHTML = function () { return this.body.innerHTML }, u.prototype.getBody = function () { return this.body }, u.prototype.sanitizeElements = function () { var t, n, o, r, s; for (s = i(this.body), r = []; s.nextNode();)switch (o = s.currentNode, o.nodeType) { case Node.ELEMENT_NODE: h(o) ? r.push(o) : this.sanitizeElement(o); break; case Node.COMMENT_NODE: r.push(o) }for (t = 0, n = r.length; n > t; t++)o = r[t], e.removeNode(o); return this.body }, u.prototype.sanitizeElement = function (t) { var e, n, i, o; for (o = s.call(t.attributes), e = 0, n = o.length; n > e; e++)i = o[e].name, a.call(this.allowedAttributes, i) >= 0 || 0 === i.indexOf(\"data-trix\") || t.removeAttribute(i); return t }, u.prototype.normalizeListElementNesting = function () { var t, e, i, o, r; for (r = s.call(this.body.querySelectorAll(\"ul,ol\")), t = 0, e = r.length; e > t; t++)i = r[t], (o = i.previousElementSibling) && \"li\" === n(o) && o.appendChild(i); return this.body }, h = function (e) { return (null != e ? e.nodeType : void 0) !== Node.ELEMENT_NODE || t(e) ? void 0 : \"script\" === n(e) || \"false\" === e.getAttribute(\"data-trix-serialize\") }, l = function (t) { var e, n, i, o, r; for (null == t && (t = \"\"), t = t.replace(/<\\/html[^>]*>[^]*$/i, \"\"), e = document.implementation.createHTMLDocument(\"\"), e.documentElement.innerHTML = t, r = e.head.querySelectorAll(\"style\"), i = 0, o = r.length; o > i; i++)n = r[i], e.body.appendChild(n); return e.body }, u }(e.BasicObject) }.call(this), function () {\r\n var t, n, i, o, r, s, a, u, c, l, h, p = function (t, e) { function n() { this.constructor = t } for (var i in e) d.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, d = {}.hasOwnProperty, f = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; t = e.arraysAreEqual, s = e.makeElement, l = e.tagName, r = e.getBlockTagNames, h = e.walkTree, o = e.findClosestElementFromNode, i = e.elementContainsNode, a = e.nodeIsAttachmentElement, u = e.normalizeSpaces, n = e.breakableWhitespacePattern, c = e.squishBreakableWhitespace, e.HTMLParser = function (d) {\r\n function g(t, e) { this.html = t, this.referenceElement = (null != e ? e : {}).referenceElement, this.blocks = [], this.blockElements = [], this.processedElements = [] } var m, y, v, b, A, x, C, w, E, S, k, R; return p(g, d), g.parse = function (t, e) { var n; return n = new this(t, e), n.parse(), n }, g.prototype.getDocument = function () { return e.Document.fromJSON(this.blocks) }, g.prototype.parse = function () { var t, n; try { for (this.createHiddenContainer(), t = e.HTMLSanitizer.sanitize(this.html).getHTML(), this.containerElement.innerHTML = t, n = h(this.containerElement, { usingFilter: w }); n.nextNode();)this.processNode(n.currentNode); return this.translateBlockElementMarginsToNewlines() } finally { this.removeHiddenContainer() } }, g.prototype.createHiddenContainer = function () { return this.referenceElement ? (this.containerElement = this.referenceElement.cloneNode(!1), this.containerElement.removeAttribute(\"id\"), this.containerElement.setAttribute(\"data-trix-internal\", \"\"), this.containerElement.style.display = \"none\", this.referenceElement.parentNode.insertBefore(this.containerElement, this.referenceElement.nextSibling)) : (this.containerElement = s({ tagName: \"div\", style: { display: \"none\" } }), document.body.appendChild(this.containerElement)) }, g.prototype.removeHiddenContainer = function () { return e.removeNode(this.containerElement) }, w = function (t) { return \"style\" === l(t) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT }, g.prototype.processNode = function (t) { switch (t.nodeType) { case Node.TEXT_NODE: return this.processTextNode(t); case Node.ELEMENT_NODE: return this.appendBlockForElement(t), this.processElement(t) } }, g.prototype.appendBlockForElement = function (e) { var n, o, r, s; if (r = this.isBlockElement(e), o = i(this.currentBlockElement, e), r && !this.isBlockElement(e.firstChild)) { if (!(this.isInsignificantTextNode(e.firstChild) && this.isBlockElement(e.firstElementChild) || (n = this.getBlockAttributes(e), o && t(n, this.currentBlock.attributes)))) return this.currentBlock = this.appendBlockForAttributesWithElement(n, e), this.currentBlockElement = e } else if (this.currentBlockElement && !o && !r) return (s = this.findParentBlockElement(e)) ? this.appendBlockForElement(s) : (this.currentBlock = this.appendEmptyBlock(), this.currentBlockElement = null) }, g.prototype.findParentBlockElement = function (t) { var e; for (e = t.parentElement; e && e !== this.containerElement;) { if (this.isBlockElement(e) && f.call(this.blockElements, e) >= 0) return e; e = e.parentElement } return null }, g.prototype.processTextNode = function (t) { var e, n; return this.isInsignificantTextNode(t) ? void 0 : (n = t.data, y(t.parentNode) || (n = c(n), k(null != (e = t.previousSibling) ? e.textContent : void 0) && (n = x(n))), this.appendStringWithAttributes(n, this.getTextAttributes(t.parentNode))) }, g.prototype.processElement = function (t) { var e, n, i, o, r; if (a(t)) return e = v(t), Object.keys(e).length && (o = this.getTextAttributes(t), this.appendAttachmentWithAttributes(e, o), t.innerHTML = \"\"), this.processedElements.push(t); switch (l(t)) { case \"br\": return this.isExtraBR(t) || this.isBlockElement(t.nextSibling) || this.appendStringWithAttributes(\"\\n\", this.getTextAttributes(t)), this.processedElements.push(t); case \"img\": e = { url: t.getAttribute(\"src\"), contentType: \"image\" }, i = A(t); for (n in i) r = i[n], e[n] = r; return this.appendAttachmentWithAttributes(e, this.getTextAttributes(t)), this.processedElements.push(t); case \"tr\": if (t.parentNode.firstChild !== t) return this.appendStringWithAttributes(\"\\n\"); break; case \"td\": if (t.parentNode.firstChild !== t) return this.appendStringWithAttributes(\" | \") } }, g.prototype.appendBlockForAttributesWithElement = function (t, e) { var n; return this.blockElements.push(e), n = m(t), this.blocks.push(n), n }, g.prototype.appendEmptyBlock = function () { return this.appendBlockForAttributesWithElement([], null) }, g.prototype.appendStringWithAttributes = function (t, e) { return this.appendPiece(S(t, e)) }, g.prototype.appendAttachmentWithAttributes = function (t, e) { return this.appendPiece(E(t, e)) }, g.prototype.appendPiece = function (t) {\r\n return 0 === this.blocks.length && this.appendEmptyBlock(), this.blocks[this.blocks.length - 1].text.push(t)\r\n }, g.prototype.appendStringToTextAtIndex = function (t, e) { var n, i; return i = this.blocks[e].text, n = i[i.length - 1], \"string\" === (null != n ? n.type : void 0) ? n.string += t : i.push(S(t)) }, g.prototype.prependStringToTextAtIndex = function (t, e) { var n, i; return i = this.blocks[e].text, n = i[0], \"string\" === (null != n ? n.type : void 0) ? n.string = t + n.string : i.unshift(S(t)) }, S = function (t, e) { var n; return null == e && (e = {}), n = \"string\", t = u(t), { string: t, attributes: e, type: n } }, E = function (t, e) { var n; return null == e && (e = {}), n = \"attachment\", { attachment: t, attributes: e, type: n } }, m = function (t) { var e; return null == t && (t = {}), e = [], { text: e, attributes: t } }, g.prototype.getTextAttributes = function (t) { var n, i, r, s, u, c, l, h, p, d, f, g, m; r = {}, d = e.config.textAttributes; for (n in d) if (u = d[n], u.tagName && o(t, { matchingSelector: u.tagName, untilNode: this.containerElement })) r[n] = !0; else if (u.parser) { if (m = u.parser(t)) { for (i = !1, f = this.findBlockElementAncestors(t), c = 0, p = f.length; p > c; c++)if (s = f[c], u.parser(s) === m) { i = !0; break } i || (r[n] = m) } } else u.styleProperty && (m = t.style[u.styleProperty]) && (r[n] = m); if (a(t) && (l = t.getAttribute(\"data-trix-attributes\"))) { g = JSON.parse(l); for (h in g) m = g[h], r[h] = m } return r }, g.prototype.getBlockAttributes = function (t) { var n, i, o, r; for (i = []; t && t !== this.containerElement;) { r = e.config.blockAttributes; for (n in r) o = r[n], o.parse !== !1 && l(t) === o.tagName && ((\"function\" == typeof o.test ? o.test(t) : void 0) || !o.test) && (i.push(n), o.listAttribute && i.push(o.listAttribute)); t = t.parentNode } return i.reverse() }, g.prototype.findBlockElementAncestors = function (t) { var e, n; for (e = []; t && t !== this.containerElement;)n = l(t), f.call(r(), n) >= 0 && e.push(t), t = t.parentNode; return e }, v = function (t) { return JSON.parse(t.getAttribute(\"data-trix-attachment\")) }, A = function (t) { var e, n, i; return i = t.getAttribute(\"width\"), n = t.getAttribute(\"height\"), e = {}, i && (e.width = parseInt(i, 10)), n && (e.height = parseInt(n, 10)), e }, g.prototype.isBlockElement = function (t) { var e; if ((null != t ? t.nodeType : void 0) === Node.ELEMENT_NODE && !a(t) && !o(t, { matchingSelector: \"td\", untilNode: this.containerElement })) return e = l(t), f.call(r(), e) >= 0 || \"block\" === window.getComputedStyle(t).display }, g.prototype.isInsignificantTextNode = function (t) { var e, n, i; if ((null != t ? t.nodeType : void 0) === Node.TEXT_NODE && R(t.data) && (n = t.parentNode, i = t.previousSibling, e = t.nextSibling, (!C(n.previousSibling) || this.isBlockElement(n.previousSibling)) && !y(n))) return !i || this.isBlockElement(i) || !e || this.isBlockElement(e) }, g.prototype.isExtraBR = function (t) { return \"br\" === l(t) && this.isBlockElement(t.parentNode) && t.parentNode.lastChild === t }, y = function (t) { var e; return e = window.getComputedStyle(t).whiteSpace, \"pre\" === e || \"pre-wrap\" === e || \"pre-line\" === e }, C = function (t) { return t && !k(t.textContent) }, g.prototype.translateBlockElementMarginsToNewlines = function () { var t, e, n, i, o, r, s, a; for (e = this.getMarginOfDefaultBlockElement(), s = this.blocks, a = [], i = n = 0, o = s.length; o > n; i = ++n)t = s[i], (r = this.getMarginOfBlockElementAtIndex(i)) && (r.top > 2 * e.top && this.prependStringToTextAtIndex(\"\\n\", i), a.push(r.bottom > 2 * e.bottom ? this.appendStringToTextAtIndex(\"\\n\", i) : void 0)); return a }, g.prototype.getMarginOfBlockElementAtIndex = function (t) { var e, n; return !(e = this.blockElements[t]) || !e.textContent || (n = l(e), f.call(r(), n) >= 0 || f.call(this.processedElements, e) >= 0) ? void 0 : b(e) }, g.prototype.getMarginOfDefaultBlockElement = function () { var t; return t = s(e.config.blockAttributes[\"default\"].tagName), this.containerElement.appendChild(t), b(t) }, b = function (t) { var e; return e = window.getComputedStyle(t), \"block\" === e.display ? { top: parseInt(e.marginTop), bottom: parseInt(e.marginBottom) } : void 0 }, x = function (t) { return t.replace(RegExp(\"^\" + n.source + \"+\"), \"\") }, R = function (t) { return RegExp(\"^\" + n.source + \"*$\").test(t) }, k = function (t) { return /\\s$/.test(t) }, g\r\n }(e.BasicObject)\r\n }.call(this), function () { var t, n, i, o, r = function (t, e) { function n() { this.constructor = t } for (var i in e) s.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, s = {}.hasOwnProperty, a = [].slice, u = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; t = e.arraysAreEqual, i = e.normalizeRange, o = e.rangeIsCollapsed, n = e.getBlockConfig, e.Document = function (s) { function c(t) { null == t && (t = []), c.__super__.constructor.apply(this, arguments), 0 === t.length && (t = [new e.Block]), this.blockList = e.SplittableList.box(t) } var l; return r(c, s), c.fromJSON = function (t) { var n, i; return i = function () { var i, o, r; for (r = [], i = 0, o = t.length; o > i; i++)n = t[i], r.push(e.Block.fromJSON(n)); return r }(), new this(i) }, c.fromHTML = function (t, n) { return e.HTMLParser.parse(t, n).getDocument() }, c.fromString = function (t, n) { var i; return i = e.Text.textForStringWithAttributes(t, n), new this([new e.Block(i)]) }, c.prototype.isEmpty = function () { var t; return 1 === this.blockList.length && (t = this.getBlockAtIndex(0), t.isEmpty() && !t.hasAttributes()) }, c.prototype.copy = function (t) { var e; return null == t && (t = {}), e = t.consolidateBlocks ? this.blockList.consolidate().toArray() : this.blockList.toArray(), new this.constructor(e) }, c.prototype.copyUsingObjectsFromDocument = function (t) { var n; return n = new e.ObjectMap(t.getObjects()), this.copyUsingObjectMap(n) }, c.prototype.copyUsingObjectMap = function (t) { var e, n, i; return n = function () { var n, o, r, s; for (r = this.getBlocks(), s = [], n = 0, o = r.length; o > n; n++)e = r[n], s.push((i = t.find(e)) ? i : e.copyUsingObjectMap(t)); return s }.call(this), new this.constructor(n) }, c.prototype.copyWithBaseBlockAttributes = function (t) { var e, n, i; return null == t && (t = []), i = function () { var i, o, r, s; for (r = this.getBlocks(), s = [], i = 0, o = r.length; o > i; i++)n = r[i], e = t.concat(n.getAttributes()), s.push(n.copyWithAttributes(e)); return s }.call(this), new this.constructor(i) }, c.prototype.replaceBlock = function (t, e) { var n; return n = this.blockList.indexOf(t), -1 === n ? this : new this.constructor(this.blockList.replaceObjectAtIndex(e, n)) }, c.prototype.insertDocumentAtRange = function (t, e) { var n, r, s, a, u, c, l; return r = t.blockList, u = (e = i(e))[0], c = this.locationFromPosition(u), s = c.index, a = c.offset, l = this, n = this.getBlockAtPosition(u), o(e) && n.isEmpty() && !n.hasAttributes() ? l = new this.constructor(l.blockList.removeObjectAtIndex(s)) : n.getBlockBreakPosition() === a && u++ , l = l.removeTextAtRange(e), new this.constructor(l.blockList.insertSplittableListAtPosition(r, u)) }, c.prototype.mergeDocumentAtRange = function (e, n) { var o, r, s, a, u, c, l, h, p, d, f, g; return f = (n = i(n))[0], d = this.locationFromPosition(f), r = this.getBlockAtIndex(d.index).getAttributes(), o = e.getBaseBlockAttributes(), g = r.slice(-o.length), t(o, g) ? (l = r.slice(0, -o.length), c = e.copyWithBaseBlockAttributes(l)) : c = e.copy({ consolidateBlocks: !0 }).copyWithBaseBlockAttributes(r), s = c.getBlockCount(), a = c.getBlockAtIndex(0), t(r, a.getAttributes()) ? (u = a.getTextWithoutBlockBreak(), p = this.insertTextAtRange(u, n), s > 1 && (c = new this.constructor(c.getBlocks().slice(1)), h = f + u.getLength(), p = p.insertDocumentAtRange(c, h))) : p = this.insertDocumentAtRange(c, n), p }, c.prototype.insertTextAtRange = function (t, e) { var n, o, r, s, a; return a = (e = i(e))[0], s = this.locationFromPosition(a), o = s.index, r = s.offset, n = this.removeTextAtRange(e), new this.constructor(n.blockList.editObjectAtIndex(o, function (e) { return e.copyWithText(e.text.insertTextAtPosition(t, r)) })) }, c.prototype.removeTextAtRange = function (t) { var e, n, r, s, a, u, c, l, h, p, d, f, g, m, y, v, b, A, x, C, w; return p = t = i(t), l = p[0], A = p[1], o(t) ? this : (d = this.locationRangeFromRange(t), u = d[0], v = d[1], a = u.index, c = u.offset, s = this.getBlockAtIndex(a), y = v.index, b = v.offset, m = this.getBlockAtIndex(y), f = A - l === 1 && s.getBlockBreakPosition() === c && m.getBlockBreakPosition() !== b && \"\\n\" === m.text.getStringAtPosition(b), f ? r = this.blockList.editObjectAtIndex(y, function (t) { return t.copyWithText(t.text.removeTextAtRange([b, b + 1])) }) : (h = s.text.getTextAtRange([0, c]), x = m.text.getTextAtRange([b, m.getLength()]), C = h.appendText(x), g = a !== y && 0 === c, w = g && s.getAttributeLevel() >= m.getAttributeLevel(), n = w ? m.copyWithText(C) : s.copyWithText(C), e = y + 1 - a, r = this.blockList.splice(a, e, n)), new this.constructor(r)) }, c.prototype.moveTextFromRangeToPosition = function (t, e) { var n, o, r, s, u, c, l, h, p, d; return c = t = i(t), p = c[0], r = c[1], e >= p && r >= e ? this : (o = this.getDocumentAtRange(t), h = this.removeTextAtRange(t), u = e > p, u && (e -= o.getLength()), l = o.getBlocks(), s = l[0], n = 2 <= l.length ? a.call(l, 1) : [], 0 === n.length ? (d = s.getTextWithoutBlockBreak(), u && (e += 1)) : d = s.text, h = h.insertTextAtRange(d, e), 0 === n.length ? h : (o = new this.constructor(n), e += d.getLength(), h.insertDocumentAtRange(o, e))) }, c.prototype.addAttributeAtRange = function (t, e, i) { var o; return o = this.blockList, this.eachBlockAtRange(i, function (i, r, s) { return o = o.editObjectAtIndex(s, function () { return n(t) ? i.addAttribute(t, e) : r[0] === r[1] ? i : i.copyWithText(i.text.addAttributeAtRange(t, e, r)) }) }), new this.constructor(o) }, c.prototype.addAttribute = function (t, e) { var n; return n = this.blockList, this.eachBlock(function (i, o) { return n = n.editObjectAtIndex(o, function () { return i.addAttribute(t, e) }) }), new this.constructor(n) }, c.prototype.removeAttributeAtRange = function (t, e) { var i; return i = this.blockList, this.eachBlockAtRange(e, function (e, o, r) { return n(t) ? i = i.editObjectAtIndex(r, function () { return e.removeAttribute(t) }) : o[0] !== o[1] ? i = i.editObjectAtIndex(r, function () { return e.copyWithText(e.text.removeAttributeAtRange(t, o)) }) : void 0 }), new this.constructor(i) }, c.prototype.updateAttributesForAttachment = function (t, e) { var n, i, o, r; return o = (i = this.getRangeOfAttachment(e))[0], n = this.locationFromPosition(o).index, r = this.getTextAtIndex(n), new this.constructor(this.blockList.editObjectAtIndex(n, function (n) { return n.copyWithText(r.updateAttributesForAttachment(t, e)) })) }, c.prototype.removeAttributeForAttachment = function (t, e) { var n; return n = this.getRangeOfAttachment(e), this.removeAttributeAtRange(t, n) }, c.prototype.insertBlockBreakAtRange = function (t) { var n, o, r, s; return s = (t = i(t))[0], r = this.locationFromPosition(s).offset, o = this.removeTextAtRange(t), 0 === r && (n = [new e.Block]), new this.constructor(o.blockList.insertSplittableListAtPosition(new e.SplittableList(n), s)) }, c.prototype.applyBlockAttributeAtRange = function (t, e, i) { var o, r, s, a; return s = this.expandRangeToLineBreaksAndSplitBlocks(i), r = s.document, i = s.range, o = n(t), o.listAttribute ? (r = r.removeLastListAttributeAtRange(i, { exceptAttributeName: t }), a = r.convertLineBreaksToBlockBreaksInRange(i), r = a.document, i = a.range) : r = o.exclusive ? r.removeBlockAttributesAtRange(i) : o.terminal ? r.removeLastTerminalAttributeAtRange(i) : r.consolidateBlocksAtRange(i), r.addAttributeAtRange(t, e, i) }, c.prototype.removeLastListAttributeAtRange = function (t, e) { var i; return null == e && (e = {}), i = this.blockList, this.eachBlockAtRange(t, function (t, o, r) { var s; if ((s = t.getLastAttribute()) && n(s).listAttribute && s !== e.exceptAttributeName) return i = i.editObjectAtIndex(r, function () { return t.removeAttribute(s) }) }), new this.constructor(i) }, c.prototype.removeLastTerminalAttributeAtRange = function (t) { var e; return e = this.blockList, this.eachBlockAtRange(t, function (t, i, o) { var r; if ((r = t.getLastAttribute()) && n(r).terminal) return e = e.editObjectAtIndex(o, function () { return t.removeAttribute(r) }) }), new this.constructor(e) }, c.prototype.removeBlockAttributesAtRange = function (t) { var e; return e = this.blockList, this.eachBlockAtRange(t, function (t, n, i) { return t.hasAttributes() ? e = e.editObjectAtIndex(i, function () { return t.copyWithoutAttributes() }) : void 0 }), new this.constructor(e) }, c.prototype.expandRangeToLineBreaksAndSplitBlocks = function (t) { var e, n, o, r, s, a, u, c, l; return a = t = i(t), l = a[0], r = a[1], c = this.locationFromPosition(l), o = this.locationFromPosition(r), e = this, u = e.getBlockAtIndex(c.index), null != (c.offset = u.findLineBreakInDirectionFromPosition(\"backward\", c.offset)) && (s = e.positionFromLocation(c), e = e.insertBlockBreakAtRange([s, s + 1]), o.index += 1, o.offset -= e.getBlockAtIndex(c.index).getLength(), c.index += 1), c.offset = 0, 0 === o.offset && o.index > c.index ? (o.index -= 1, o.offset = e.getBlockAtIndex(o.index).getBlockBreakPosition()) : (n = e.getBlockAtIndex(o.index), \"\\n\" === n.text.getStringAtRange([o.offset - 1, o.offset]) ? o.offset -= 1 : o.offset = n.findLineBreakInDirectionFromPosition(\"forward\", o.offset), o.offset !== n.getBlockBreakPosition() && (s = e.positionFromLocation(o), e = e.insertBlockBreakAtRange([s, s + 1]))), l = e.positionFromLocation(c), r = e.positionFromLocation(o), t = i([l, r]), { document: e, range: t } }, c.prototype.convertLineBreaksToBlockBreaksInRange = function (t) { var e, n, o; return n = (t = i(t))[0], o = this.getStringAtRange(t).slice(0, -1), e = this, o.replace(/.*?\\n/g, function (t) { return n += t.length, e = e.insertBlockBreakAtRange([n - 1, n]) }), { document: e, range: t } }, c.prototype.consolidateBlocksAtRange = function (t) { var e, n, o, r, s; return o = t = i(t), s = o[0], n = o[1], r = this.locationFromPosition(s).index, e = this.locationFromPosition(n).index, new this.constructor(this.blockList.consolidateFromIndexToIndex(r, e)) }, c.prototype.getDocumentAtRange = function (t) { var e; return t = i(t), e = this.blockList.getSplittableListInRange(t).toArray(), new this.constructor(e) }, c.prototype.getStringAtRange = function (t) { var e, n, o; return o = t = i(t), n = o[o.length - 1], n !== this.getLength() && (e = -1), this.getDocumentAtRange(t).toString().slice(0, e) }, c.prototype.getBlockAtIndex = function (t) { return this.blockList.getObjectAtIndex(t) }, c.prototype.getBlockAtPosition = function (t) { var e; return e = this.locationFromPosition(t).index, this.getBlockAtIndex(e) }, c.prototype.getTextAtIndex = function (t) { var e; return null != (e = this.getBlockAtIndex(t)) ? e.text : void 0 }, c.prototype.getTextAtPosition = function (t) { var e; return e = this.locationFromPosition(t).index, this.getTextAtIndex(e) }, c.prototype.getPieceAtPosition = function (t) { var e, n, i; return i = this.locationFromPosition(t), e = i.index, n = i.offset, this.getTextAtIndex(e).getPieceAtPosition(n) }, c.prototype.getCharacterAtPosition = function (t) { var e, n, i; return i = this.locationFromPosition(t), e = i.index, n = i.offset, this.getTextAtIndex(e).getStringAtRange([n, n + 1]) }, c.prototype.getLength = function () { return this.blockList.getEndPosition() }, c.prototype.getBlocks = function () { return this.blockList.toArray() }, c.prototype.getBlockCount = function () { return this.blockList.length }, c.prototype.getEditCount = function () { return this.editCount }, c.prototype.eachBlock = function (t) { return this.blockList.eachObject(t) }, c.prototype.eachBlockAtRange = function (t, e) { var n, o, r, s, a, u, c, l, h, p, d, f; if (u = t = i(t), d = u[0], r = u[1], p = this.locationFromPosition(d), o = this.locationFromPosition(r), p.index === o.index) return n = this.getBlockAtIndex(p.index), f = [p.offset, o.offset], e(n, f, p.index); for (h = [], a = s = c = p.index, l = o.index; l >= c ? l >= s : s >= l; a = l >= c ? ++s : --s)(n = this.getBlockAtIndex(a)) ? (f = function () { switch (a) { case p.index: return [p.offset, n.text.getLength()]; case o.index: return [0, o.offset]; default: return [0, n.text.getLength()] } }(), h.push(e(n, f, a))) : h.push(void 0); return h }, c.prototype.getCommonAttributesAtRange = function (t) { var n, r, s; return r = (t = i(t))[0], o(t) ? this.getCommonAttributesAtPosition(r) : (s = [], n = [], this.eachBlockAtRange(t, function (t, e) { return e[0] !== e[1] ? (s.push(t.text.getCommonAttributesAtRange(e)), n.push(l(t))) : void 0 }), e.Hash.fromCommonAttributesOfObjects(s).merge(e.Hash.fromCommonAttributesOfObjects(n)).toObject()) }, c.prototype.getCommonAttributesAtPosition = function (t) { var n, i, o, r, s, a, c, h, p, d; if (p = this.locationFromPosition(t), s = p.index, h = p.offset, o = this.getBlockAtIndex(s), !o) return {}; r = l(o), n = o.text.getAttributesAtPosition(h), i = o.text.getAttributesAtPosition(h - 1), a = function () { var t, n; t = e.config.textAttributes, n = []; for (c in t) d = t[c], d.inheritable && n.push(c); return n }(); for (c in i) d = i[c], (d === n[c] || u.call(a, c) >= 0) && (r[c] = d); return r }, c.prototype.getRangeOfCommonAttributeAtPosition = function (t, e) { var n, o, r, s, a, u, c, l, h; return a = this.locationFromPosition(e), r = a.index, s = a.offset, h = this.getTextAtIndex(r), u = h.getExpandedRangeForAttributeAtOffset(t, s), l = u[0], o = u[1], c = this.positionFromLocation({ index: r, offset: l }), n = this.positionFromLocation({ index: r, offset: o }), i([c, n]) }, c.prototype.getBaseBlockAttributes = function () { var t, e, n, i, o, r, s; for (t = this.getBlockAtIndex(0).getAttributes(), n = i = 1, s = this.getBlockCount(); s >= 1 ? s > i : i > s; n = s >= 1 ? ++i : --i)e = this.getBlockAtIndex(n).getAttributes(), r = Math.min(t.length, e.length), t = function () { var n, i, s; for (s = [], o = n = 0, i = r; (i >= 0 ? i > n : n > i) && e[o] === t[o]; o = i >= 0 ? ++n : --n)s.push(e[o]); return s }(); return t }, l = function (t) { var e, n; return n = {}, (e = t.getLastAttribute()) && (n[e] = !0), n }, c.prototype.getAttachmentById = function (t) { var e, n, i, o; for (o = this.getAttachments(), n = 0, i = o.length; i > n; n++)if (e = o[n], e.id === t) return e }, c.prototype.getAttachmentPieces = function () { var t; return t = [], this.blockList.eachObject(function (e) { var n; return n = e.text, t = t.concat(n.getAttachmentPieces()) }), t }, c.prototype.getAttachments = function () { var t, e, n, i, o; for (i = this.getAttachmentPieces(), o = [], t = 0, e = i.length; e > t; t++)n = i[t], o.push(n.attachment); return o }, c.prototype.getRangeOfAttachment = function (t) { var e, n, o, r, s, a, u; for (r = 0, s = this.blockList.toArray(), n = e = 0, o = s.length; o > e; n = ++e) { if (a = s[n].text, u = a.getRangeOfAttachment(t)) return i([r + u[0], r + u[1]]); r += a.getLength() } }, c.prototype.getLocationRangeOfAttachment = function (t) { var e; return e = this.getRangeOfAttachment(t), this.locationRangeFromRange(e) }, c.prototype.getAttachmentPieceForAttachment = function (t) { var e, n, i, o; for (o = this.getAttachmentPieces(), e = 0, n = o.length; n > e; e++)if (i = o[e], i.attachment === t) return i }, c.prototype.findRangesForBlockAttribute = function (t) { var e, n, i, o, r, s, a; for (r = 0, s = [], a = this.getBlocks(), n = 0, i = a.length; i > n; n++)e = a[n], o = e.getLength(), e.hasAttribute(t) && s.push([r, r + o]), r += o; return s }, c.prototype.findRangesForTextAttribute = function (t, e) { var n, i, o, r, s, a, u, c, l, h; for (h = (null != e ? e : {}).withValue, a = 0, u = [], c = [], r = function (e) { return null != h ? e.getAttribute(t) === h : e.hasAttribute(t) }, l = this.getPieces(), n = 0, i = l.length; i > n; n++)s = l[n], o = s.getLength(), r(s) && (u[1] === a ? u[1] = a + o : c.push(u = [a, a + o])), a += o; return c }, c.prototype.locationFromPosition = function (t) { var e, n; return n = this.blockList.findIndexAndOffsetAtPosition(Math.max(0, t)), null != n.index ? n : (e = this.getBlocks(), { index: e.length - 1, offset: e[e.length - 1].getLength() }) }, c.prototype.positionFromLocation = function (t) { return this.blockList.findPositionAtIndexAndOffset(t.index, t.offset) }, c.prototype.locationRangeFromPosition = function (t) { return i(this.locationFromPosition(t)) }, c.prototype.locationRangeFromRange = function (t) { var e, n, o, r; if (t = i(t)) return r = t[0], n = t[1], o = this.locationFromPosition(r), e = this.locationFromPosition(n), i([o, e]) }, c.prototype.rangeFromLocationRange = function (t) { var e, n; return t = i(t), e = this.positionFromLocation(t[0]), o(t) || (n = this.positionFromLocation(t[1])), i([e, n]) }, c.prototype.isEqualTo = function (t) { return this.blockList.isEqualTo(null != t ? t.blockList : void 0) }, c.prototype.getTexts = function () { var t, e, n, i, o; for (i = this.getBlocks(), o = [], e = 0, n = i.length; n > e; e++)t = i[e], o.push(t.text); return o }, c.prototype.getPieces = function () { var t, e, n, i, o; for (n = [], i = this.getTexts(), t = 0, e = i.length; e > t; t++)o = i[t], n.push.apply(n, o.getPieces()); return n }, c.prototype.getObjects = function () { return this.getBlocks().concat(this.getTexts()).concat(this.getPieces()) }, c.prototype.toSerializableDocument = function () { var t; return t = [], this.blockList.eachObject(function (e) { return t.push(e.copyWithText(e.text.toSerializableText())) }), new this.constructor(t) }, c.prototype.toString = function () { return this.blockList.toString() }, c.prototype.toJSON = function () { return this.blockList.toJSON() }, c.prototype.toConsole = function () { var t; return JSON.stringify(function () { var e, n, i, o; for (i = this.blockList.toArray(), o = [], e = 0, n = i.length; n > e; e++)t = i[e], o.push(JSON.parse(t.text.toConsole())); return o }.call(this)) }, c }(e.Object) }.call(this), function () { e.LineBreakInsertion = function () { function t(t) { var e; this.composition = t, this.document = this.composition.document, e = this.composition.getSelectedRange(), this.startPosition = e[0], this.endPosition = e[1], this.startLocation = this.document.locationFromPosition(this.startPosition), this.endLocation = this.document.locationFromPosition(this.endPosition), this.block = this.document.getBlockAtIndex(this.endLocation.index), this.breaksOnReturn = this.block.breaksOnReturn(), this.previousCharacter = this.block.text.getStringAtPosition(this.endLocation.offset - 1), this.nextCharacter = this.block.text.getStringAtPosition(this.endLocation.offset) } return t.prototype.shouldInsertBlockBreak = function () { return this.block.hasAttributes() && this.block.isListItem() && !this.block.isEmpty() ? 0 !== this.startLocation.offset : this.breaksOnReturn && \"\\n\" !== this.nextCharacter }, t.prototype.shouldBreakFormattedBlock = function () { return this.block.hasAttributes() && !this.block.isListItem() && (this.breaksOnReturn && \"\\n\" === this.nextCharacter || \"\\n\" === this.previousCharacter) }, t.prototype.shouldDecreaseListLevel = function () { return this.block.hasAttributes() && this.block.isListItem() && this.block.isEmpty() }, t.prototype.shouldPrependListItem = function () { return this.block.isListItem() && 0 === this.startLocation.offset && !this.block.isEmpty() }, t.prototype.shouldRemoveLastBlockAttribute = function () { return this.block.hasAttributes() && !this.block.isListItem() && this.block.isEmpty() }, t }() }.call(this), function () {\r\n var t, n, i, o, r, s, a, u, c, l, h = function (t, e) { function n() { this.constructor = t } for (var i in e) p.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, p = {}.hasOwnProperty; s = e.normalizeRange, c = e.rangesAreEqual, u = e.rangeIsCollapsed, a = e.objectsAreEqual, t = e.arrayStartsWith, l = e.summarizeArrayChange, i = e.getAllAttributeNames, o = e.getBlockConfig, r = e.getTextConfig, n = e.extend, e.Composition = function (p) {\r\n function d() { this.document = new e.Document, this.attachments = [], this.currentAttributes = {}, this.revision = 0 } var f; return h(d, p), d.prototype.setDocument = function (t) { var e; return t.isEqualTo(this.document) ? void 0 : (this.document = t, this.refreshAttachments(), this.revision++ , null != (e = this.delegate) && \"function\" == typeof e.compositionDidChangeDocument ? e.compositionDidChangeDocument(t) : void 0) }, d.prototype.getSnapshot = function () { return { document: this.document, selectedRange: this.getSelectedRange() } }, d.prototype.loadSnapshot = function (t) { var n, i, o, r; return n = t.document, r = t.selectedRange, null != (i = this.delegate) && \"function\" == typeof i.compositionWillLoadSnapshot && i.compositionWillLoadSnapshot(), this.setDocument(null != n ? n : new e.Document), this.setSelection(null != r ? r : [0, 0]), null != (o = this.delegate) && \"function\" == typeof o.compositionDidLoadSnapshot ? o.compositionDidLoadSnapshot() : void 0 }, d.prototype.insertText = function (t, e) { var n, i, o, r; return r = (null != e ? e : { updatePosition: !0 }).updatePosition, i = this.getSelectedRange(), this.setDocument(this.document.insertTextAtRange(t, i)), o = i[0], n = o + t.getLength(), r && this.setSelection(n), this.notifyDelegateOfInsertionAtRange([o, n]) }, d.prototype.insertBlock = function (t) { var n; return null == t && (t = new e.Block), n = new e.Document([t]), this.insertDocument(n) }, d.prototype.insertDocument = function (t) { var n, i, o; return null == t && (t = new e.Document), i = this.getSelectedRange(), this.setDocument(this.document.insertDocumentAtRange(t, i)), o = i[0], n = o + t.getLength(), this.setSelection(n), this.notifyDelegateOfInsertionAtRange([o, n]) }, d.prototype.insertString = function (t, n) { var i, o; return i = this.getCurrentTextAttributes(), o = e.Text.textForStringWithAttributes(t, i), this.insertText(o, n) }, d.prototype.insertBlockBreak = function () { var t, e, n; return e = this.getSelectedRange(), this.setDocument(this.document.insertBlockBreakAtRange(e)), n = e[0], t = n + 1, this.setSelection(t), this.notifyDelegateOfInsertionAtRange([n, t]) }, d.prototype.insertLineBreak = function () { var t, n; return n = new e.LineBreakInsertion(this), n.shouldDecreaseListLevel() ? (this.decreaseListLevel(), this.setSelection(n.startPosition)) : n.shouldPrependListItem() ? (t = new e.Document([n.block.copyWithoutText()]), this.insertDocument(t)) : n.shouldInsertBlockBreak() ? this.insertBlockBreak() : n.shouldRemoveLastBlockAttribute() ? this.removeLastBlockAttribute() : n.shouldBreakFormattedBlock() ? this.breakFormattedBlock(n) : this.insertString(\"\\n\") }, d.prototype.insertHTML = function (t) { var n, i, o, r; return n = e.Document.fromHTML(t), o = this.getSelectedRange(), this.setDocument(this.document.mergeDocumentAtRange(n, o)), r = o[0], i = r + n.getLength() - 1, this.setSelection(i), this.notifyDelegateOfInsertionAtRange([r, i]) }, d.prototype.replaceHTML = function (t) { var n, i, o; return n = e.Document.fromHTML(t).copyUsingObjectsFromDocument(this.document), i = this.getLocationRange({ strict: !1 }), o = this.document.rangeFromLocationRange(i), this.setDocument(n), this.setSelection(o) }, d.prototype.insertFile = function (t) { return this.insertFiles([t]) }, d.prototype.insertFiles = function (t) { var n, i, o, r, s, a; for (i = [], r = 0, s = t.length; s > r; r++)o = t[r], (null != (a = this.delegate) ? a.compositionShouldAcceptFile(o) : void 0) && (n = e.Attachment.attachmentForFile(o), i.push(n)); return this.insertAttachments(i) }, d.prototype.insertAttachment = function (t) { return this.insertAttachments([t]) }, d.prototype.insertAttachments = function (t) { var n, i, o, r, s, a, u, c, l; for (c = new e.Text, r = 0, s = t.length; s > r; r++)n = t[r], l = n.getType(), a = null != (u = e.config.attachments[l]) ? u.presentation : void 0, o = this.getCurrentTextAttributes(), a && (o.presentation = a), i = e.Text.textForAttachmentWithAttributes(n, o), c = c.appendText(i); return this.insertText(c) }, d.prototype.deleteInDirection = function (t) { var e, n, i, o, r, s, a; return o = this.getLocationRange(), r = this.getSelectedRange(), s = u(r), s ? i = \"backward\" === t && 0 === o[0].offset : a = o[0].index !== o[1].index, i && this.canDecreaseBlockAttributeLevel() && (n = this.getBlock(), n.isListItem() ? this.decreaseListLevel() : this.decreaseBlockAttributeLevel(), this.setSelection(r[0]), n.isEmpty()) ? !1 : (s && (r = this.getExpandedRangeInDirection(t), \"backward\" === t && (e = this.getAttachmentAtRange(r))), e ? (this.editAttachment(e), !1) : (this.setDocument(this.document.removeTextAtRange(r)), this.setSelection(r[0]), i || a ? !1 : void 0)) }, d.prototype.moveTextFromRange = function (t) { var e; return e = this.getSelectedRange()[0], this.setDocument(this.document.moveTextFromRangeToPosition(t, e)), this.setSelection(e) }, d.prototype.removeAttachment = function (t) { var e; return (e = this.document.getRangeOfAttachment(t)) ? (this.stopEditingAttachment(), this.setDocument(this.document.removeTextAtRange(e)), this.setSelection(e[0])) : void 0 }, d.prototype.removeLastBlockAttribute = function () { var t, e, n, i; return n = this.getSelectedRange(), i = n[0], e = n[1], t = this.document.getBlockAtPosition(e), this.removeCurrentAttribute(t.getLastAttribute()), this.setSelection(i) }, f = \" \", d.prototype.insertPlaceholder = function () { return this.placeholderPosition = this.getPosition(), this.insertString(f) }, d.prototype.selectPlaceholder = function () { return null != this.placeholderPosition ? (this.setSelectedRange([this.placeholderPosition, this.placeholderPosition + f.length]), this.getSelectedRange()) : void 0 }, d.prototype.forgetPlaceholder = function () { return this.placeholderPosition = null }, d.prototype.hasCurrentAttribute = function (t) { var e; return e = this.currentAttributes[t], null != e && e !== !1 }, d.prototype.toggleCurrentAttribute = function (t) { var e; return (e = !this.currentAttributes[t]) ? this.setCurrentAttribute(t, e) : this.removeCurrentAttribute(t) }, d.prototype.canSetCurrentAttribute = function (t) { return o(t) ? this.canSetCurrentBlockAttribute(t) : this.canSetCurrentTextAttribute(t) }, d.prototype.canSetCurrentTextAttribute = function () { var t, e, n, i, o; if (e = this.getSelectedDocument()) { for (o = e.getAttachments(), n = 0, i = o.length; i > n; n++)if (t = o[n], !t.hasContent()) return !1; return !0 } }, d.prototype.canSetCurrentBlockAttribute = function () { var t; if (t = this.getBlock()) return !t.isTerminalBlock() }, d.prototype.setCurrentAttribute = function (t, e) { return o(t) ? this.setBlockAttribute(t, e) : (this.setTextAttribute(t, e), this.currentAttributes[t] = e, this.notifyDelegateOfCurrentAttributesChange()) }, d.prototype.setTextAttribute = function (t, n) { var i, o, r, s; if (o = this.getSelectedRange()) return r = o[0], i = o[1], r !== i ? this.setDocument(this.document.addAttributeAtRange(t, n, o)) : \"href\" === t ? (s = e.Text.textForStringWithAttributes(n, { href: n }), this.insertText(s)) : void 0 }, d.prototype.setBlockAttribute = function (t, e) { var n, i; if (i = this.getSelectedRange()) return this.canSetCurrentAttribute(t) ? (n = this.getBlock(), this.setDocument(this.document.applyBlockAttributeAtRange(t, e, i)), this.setSelection(i)) : void 0 }, d.prototype.removeCurrentAttribute = function (t) { return o(t) ? (this.removeBlockAttribute(t), this.updateCurrentAttributes()) : (this.removeTextAttribute(t), delete this.currentAttributes[t], this.notifyDelegateOfCurrentAttributesChange()) }, d.prototype.removeTextAttribute = function (t) { var e; if (e = this.getSelectedRange()) return this.setDocument(this.document.removeAttributeAtRange(t, e)) }, d.prototype.removeBlockAttribute = function (t) { var e; if (e = this.getSelectedRange()) return this.setDocument(this.document.removeAttributeAtRange(t, e)) }, d.prototype.canDecreaseNestingLevel = function () { var t; return (null != (t = this.getBlock()) ? t.getNestingLevel() : void 0) > 0 }, d.prototype.canIncreaseNestingLevel = function () { var e, n, i; if (e = this.getBlock()) return (null != (i = o(e.getLastNestableAttribute())) ? i.listAttribute : 0) ? (n = this.getPreviousBlock()) ? t(n.getListItemAttributes(), e.getListItemAttributes()) : void 0 : e.getNestingLevel() > 0 }, d.prototype.decreaseNestingLevel = function () { var t; if (t = this.getBlock()) return this.setDocument(this.document.replaceBlock(t, t.decreaseNestingLevel())) }, d.prototype.increaseNestingLevel = function () { var t; if (t = this.getBlock()) return this.setDocument(this.document.replaceBlock(t, t.increaseNestingLevel())) }, d.prototype.canDecreaseBlockAttributeLevel = function () { var t; return (null != (t = this.getBlock()) ? t.getAttributeLevel() : void 0) > 0 }, d.prototype.decreaseBlockAttributeLevel = function () { var t, e; return (t = null != (e = this.getBlock()) ? e.getLastAttribute() : void 0) ? this.removeCurrentAttribute(t) : void 0 }, d.prototype.decreaseListLevel = function () { var t, e, n, i, o, r; for (r = this.getSelectedRange()[0], o = this.document.locationFromPosition(r).index, n = o, t = this.getBlock().getAttributeLevel(); (e = this.document.getBlockAtIndex(n + 1)) && e.isListItem() && e.getAttributeLevel() > t;)n++; return r = this.document.positionFromLocation({ index: o, offset: 0 }), i = this.document.positionFromLocation({ index: n, offset: 0 }), this.setDocument(this.document.removeLastListAttributeAtRange([r, i])) }, d.prototype.updateCurrentAttributes = function () { var t, e, n, o, r, s; if (s = this.getSelectedRange({ ignoreLock: !0 })) { for (e = this.document.getCommonAttributesAtRange(s), r = i(), n = 0, o = r.length; o > n; n++)t = r[n], e[t] || this.canSetCurrentAttribute(t) || (e[t] = !1); if (!a(e, this.currentAttributes)) return this.currentAttributes = e, this.notifyDelegateOfCurrentAttributesChange() } }, d.prototype.getCurrentAttributes = function () { return n.call({}, this.currentAttributes) }, d.prototype.getCurrentTextAttributes = function () { var t, e, n, i; t = {}, n = this.currentAttributes; for (e in n) i = n[e], r(e) && (t[e] = i); return t }, d.prototype.freezeSelection = function () { return this.setCurrentAttribute(\"frozen\", !0) }, d.prototype.thawSelection = function () { return this.removeCurrentAttribute(\"frozen\") }, d.prototype.hasFrozenSelection = function () { return this.hasCurrentAttribute(\"frozen\") }, d.proxyMethod(\"getSelectionManager().getPointRange\"), d.proxyMethod(\"getSelectionManager().setLocationRangeFromPointRange\"), d.proxyMethod(\"getSelectionManager().locationIsCursorTarget\"), d.proxyMethod(\"getSelectionManager().selectionIsExpanded\"), d.proxyMethod(\"delegate?.getSelectionManager\"), d.prototype.setSelection = function (t) { var e, n; return e = this.document.locationRangeFromRange(t), null != (n = this.delegate) ? n.compositionDidRequestChangingSelectionToLocationRange(e) : void 0 }, d.prototype.getSelectedRange = function () { var t; return (t = this.getLocationRange()) ? this.document.rangeFromLocationRange(t) : void 0 }, d.prototype.setSelectedRange = function (t) { var e; return e = this.document.locationRangeFromRange(t), this.getSelectionManager().setLocationRange(e) }, d.prototype.getPosition = function () { var t; return (t = this.getLocationRange()) ? this.document.positionFromLocation(t[0]) : void 0 }, d.prototype.getLocationRange = function (t) { var e; return null != (e = this.getSelectionManager().getLocationRange(t)) ? e : s({ index: 0, offset: 0 }) }, d.prototype.getExpandedRangeInDirection = function (t) { var e, n, i; return n = this.getSelectedRange(), i = n[0], e = n[1], \"backward\" === t ? i = this.translateUTF16PositionFromOffset(i, -1) : e = this.translateUTF16PositionFromOffset(e, 1), s([i, e]) }, d.prototype.moveCursorInDirection = function (t) { var e, n, i, o; return this.editingAttachment ? i = this.document.getRangeOfAttachment(this.editingAttachment) : (o = this.getSelectedRange(), i = this.getExpandedRangeInDirection(t), n = !c(o, i)), this.setSelectedRange(\"backward\" === t ? i[0] : i[1]), n && (e = this.getAttachmentAtRange(i)) ? this.editAttachment(e) : void 0 }, d.prototype.expandSelectionInDirection = function (t) { var e; return e = this.getExpandedRangeInDirection(t), this.setSelectedRange(e) }, d.prototype.expandSelectionForEditing = function () { return this.hasCurrentAttribute(\"href\") ? this.expandSelectionAroundCommonAttribute(\"href\") : void 0 }, d.prototype.expandSelectionAroundCommonAttribute = function (t) { var e, n; return e = this.getPosition(), n = this.document.getRangeOfCommonAttributeAtPosition(t, e), this.setSelectedRange(n) }, d.prototype.selectionIsInCursorTarget = function () { return this.editingAttachment || this.positionIsCursorTarget(this.getPosition()) }, d.prototype.positionIsCursorTarget = function (t) { var e; return (e = this.document.locationFromPosition(t)) ? this.locationIsCursorTarget(e) : void 0 }, d.prototype.positionIsBlockBreak = function (t) {\r\n var e; return null != (e = this.document.getPieceAtPosition(t)) ? e.isBlockBreak() : void 0\r\n }, d.prototype.getSelectedDocument = function () { var t; return (t = this.getSelectedRange()) ? this.document.getDocumentAtRange(t) : void 0 }, d.prototype.getAttachments = function () { return this.attachments.slice(0) }, d.prototype.refreshAttachments = function () { var t, e, n, i, o, r, s, a, u, c, h, p; for (n = this.document.getAttachments(), a = l(this.attachments, n), t = a.added, h = a.removed, this.attachments = n, i = 0, r = h.length; r > i; i++)e = h[i], e.delegate = null, null != (u = this.delegate) && \"function\" == typeof u.compositionDidRemoveAttachment && u.compositionDidRemoveAttachment(e); for (p = [], o = 0, s = t.length; s > o; o++)e = t[o], e.delegate = this, p.push(null != (c = this.delegate) && \"function\" == typeof c.compositionDidAddAttachment ? c.compositionDidAddAttachment(e) : void 0); return p }, d.prototype.attachmentDidChangeAttributes = function (t) { var e; return this.revision++ , null != (e = this.delegate) && \"function\" == typeof e.compositionDidEditAttachment ? e.compositionDidEditAttachment(t) : void 0 }, d.prototype.attachmentDidChangePreviewURL = function (t) { var e; return this.revision++ , null != (e = this.delegate) && \"function\" == typeof e.compositionDidChangeAttachmentPreviewURL ? e.compositionDidChangeAttachmentPreviewURL(t) : void 0 }, d.prototype.editAttachment = function (t, e) { var n; if (t !== this.editingAttachment) return this.stopEditingAttachment(), this.editingAttachment = t, null != (n = this.delegate) && \"function\" == typeof n.compositionDidStartEditingAttachment ? n.compositionDidStartEditingAttachment(this.editingAttachment, e) : void 0 }, d.prototype.stopEditingAttachment = function () { var t; if (this.editingAttachment) return null != (t = this.delegate) && \"function\" == typeof t.compositionDidStopEditingAttachment && t.compositionDidStopEditingAttachment(this.editingAttachment), this.editingAttachment = null }, d.prototype.updateAttributesForAttachment = function (t, e) { return this.setDocument(this.document.updateAttributesForAttachment(t, e)) }, d.prototype.removeAttributeForAttachment = function (t, e) { return this.setDocument(this.document.removeAttributeForAttachment(t, e)) }, d.prototype.breakFormattedBlock = function (t) { var n, i, o, r, s; return i = t.document, n = t.block, r = t.startPosition, s = [r - 1, r], n.getBlockBreakPosition() === t.startLocation.offset ? (n.breaksOnReturn() && \"\\n\" === t.nextCharacter ? r += 1 : i = i.removeTextAtRange(s), s = [r, r]) : \"\\n\" === t.nextCharacter ? \"\\n\" === t.previousCharacter ? s = [r - 1, r + 1] : (s = [r, r + 1], r += 1) : t.startLocation.offset - 1 !== 0 && (r += 1), o = new e.Document([n.removeLastAttribute().copyWithoutText()]), this.setDocument(i.insertDocumentAtRange(o, s)), this.setSelection(r) }, d.prototype.getPreviousBlock = function () { var t, e; return (e = this.getLocationRange()) && (t = e[0].index, t > 0) ? this.document.getBlockAtIndex(t - 1) : void 0 }, d.prototype.getBlock = function () { var t; return (t = this.getLocationRange()) ? this.document.getBlockAtIndex(t[0].index) : void 0 }, d.prototype.getAttachmentAtRange = function (t) { var n; return n = this.document.getDocumentAtRange(t), n.toString() === e.OBJECT_REPLACEMENT_CHARACTER + \"\\n\" ? n.getAttachments()[0] : void 0 }, d.prototype.notifyDelegateOfCurrentAttributesChange = function () { var t; return null != (t = this.delegate) && \"function\" == typeof t.compositionDidChangeCurrentAttributes ? t.compositionDidChangeCurrentAttributes(this.currentAttributes) : void 0 }, d.prototype.notifyDelegateOfInsertionAtRange = function (t) { var e; return null != (e = this.delegate) && \"function\" == typeof e.compositionDidPerformInsertionAtRange ? e.compositionDidPerformInsertionAtRange(t) : void 0 }, d.prototype.translateUTF16PositionFromOffset = function (t, e) { var n, i; return i = this.document.toUTF16String(), n = i.offsetFromUCS2Offset(t), i.offsetToUCS2Offset(n + e) }, d\r\n }(e.BasicObject)\r\n }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.UndoManager = function (e) { function n(t) { this.composition = t, this.undoEntries = [], this.redoEntries = [] } var i; return t(n, e), n.prototype.recordUndoEntry = function (t, e) { var n, o, r, s, a; return s = null != e ? e : {}, o = s.context, n = s.consolidatable, r = this.undoEntries.slice(-1)[0], n && i(r, t, o) ? void 0 : (a = this.createEntry({ description: t, context: o }), this.undoEntries.push(a), this.redoEntries = []) }, n.prototype.undo = function () { var t, e; return (e = this.undoEntries.pop()) ? (t = this.createEntry(e), this.redoEntries.push(t), this.composition.loadSnapshot(e.snapshot)) : void 0 }, n.prototype.redo = function () { var t, e; return (t = this.redoEntries.pop()) ? (e = this.createEntry(t), this.undoEntries.push(e), this.composition.loadSnapshot(t.snapshot)) : void 0 }, n.prototype.canUndo = function () { return this.undoEntries.length > 0 }, n.prototype.canRedo = function () { return this.redoEntries.length > 0 }, n.prototype.createEntry = function (t) { var e, n, i; return i = null != t ? t : {}, n = i.description, e = i.context, { description: null != n ? n.toString() : void 0, context: JSON.stringify(e), snapshot: this.composition.getSnapshot() } }, i = function (t, e, n) { return (null != t ? t.description : void 0) === (null != e ? e.toString() : void 0) && (null != t ? t.context : void 0) === JSON.stringify(n) }, n }(e.BasicObject) }.call(this), function () { var t; e.attachmentGalleryFilter = function (e) { var n; return n = new t(e), n.perform(), n.getSnapshot() }, t = function () { function t(t) { this.document = t.document, this.selectedRange = t.selectedRange } var e, n, i; return e = \"attachmentGallery\", n = \"presentation\", i = \"gallery\", t.prototype.perform = function () { return this.removeBlockAttribute(), this.applyBlockAttribute() }, t.prototype.getSnapshot = function () { return { document: this.document, selectedRange: this.selectedRange } }, t.prototype.removeBlockAttribute = function () { var t, n, i, o, r; for (o = this.findRangesOfBlocks(), r = [], t = 0, n = o.length; n > t; t++)i = o[t], r.push(this.document = this.document.removeAttributeAtRange(e, i)); return r }, t.prototype.applyBlockAttribute = function () { var t, n, i, o, r, s; for (i = 0, r = this.findRangesOfPieces(), s = [], t = 0, n = r.length; n > t; t++)o = r[t], o[1] - o[0] > 1 && (o[0] += i, o[1] += i, \"\\n\" !== this.document.getCharacterAtPosition(o[1]) && (this.document = this.document.insertBlockBreakAtRange(o[1]), o[1] < this.selectedRange[1] && this.moveSelectedRangeForward(), o[1]++ , i++), 0 !== o[0] && \"\\n\" !== this.document.getCharacterAtPosition(o[0] - 1) && (this.document = this.document.insertBlockBreakAtRange(o[0]), o[0] < this.selectedRange[0] && this.moveSelectedRangeForward(), o[0]++ , i++), s.push(this.document = this.document.applyBlockAttributeAtRange(e, !0, o))); return s }, t.prototype.findRangesOfBlocks = function () { return this.document.findRangesForBlockAttribute(e) }, t.prototype.findRangesOfPieces = function () { return this.document.findRangesForTextAttribute(n, { withValue: i }) }, t.prototype.moveSelectedRangeForward = function () { return this.selectedRange[0] += 1, this.selectedRange[1] += 1 }, t }() }.call(this), function () { e.Editor = function () { function t(t, i, o) { this.composition = t, this.selectionManager = i, this.element = o, this.undoManager = new e.UndoManager(this.composition), this.filters = n.slice(0) } var n; return n = [e.attachmentGalleryFilter], t.prototype.loadDocument = function (t) { return this.loadSnapshot({ document: t, selectedRange: [0, 0] }) }, t.prototype.loadHTML = function (t) { return null == t && (t = \"\"), this.loadDocument(e.Document.fromHTML(t, { referenceElement: this.element })) }, t.prototype.loadJSON = function (t) { var n, i; return n = t.document, i = t.selectedRange, n = e.Document.fromJSON(n), this.loadSnapshot({ document: n, selectedRange: i }) }, t.prototype.loadSnapshot = function (t) { return this.undoManager = new e.UndoManager(this.composition), this.composition.loadSnapshot(t) }, t.prototype.getDocument = function () { return this.composition.document }, t.prototype.getSelectedDocument = function () { return this.composition.getSelectedDocument() }, t.prototype.getSnapshot = function () { return this.composition.getSnapshot() }, t.prototype.toJSON = function () { return this.getSnapshot() }, t.prototype.deleteInDirection = function (t) { return this.composition.deleteInDirection(t) }, t.prototype.insertAttachment = function (t) { return this.composition.insertAttachment(t) }, t.prototype.insertDocument = function (t) { return this.composition.insertDocument(t) }, t.prototype.insertFile = function (t) { return this.composition.insertFile(t) }, t.prototype.insertFiles = function (t) { return this.composition.insertFiles(t) }, t.prototype.insertHTML = function (t) { return this.composition.insertHTML(t) }, t.prototype.insertString = function (t) { return this.composition.insertString(t) }, t.prototype.insertText = function (t) { return this.composition.insertText(t) }, t.prototype.insertLineBreak = function () { return this.composition.insertLineBreak() }, t.prototype.getSelectedRange = function () { return this.composition.getSelectedRange() }, t.prototype.getPosition = function () { return this.composition.getPosition() }, t.prototype.getClientRectAtPosition = function (t) { var e; return e = this.getDocument().locationRangeFromRange([t, t + 1]), this.selectionManager.getClientRectAtLocationRange(e) }, t.prototype.expandSelectionInDirection = function (t) { return this.composition.expandSelectionInDirection(t) }, t.prototype.moveCursorInDirection = function (t) { return this.composition.moveCursorInDirection(t) }, t.prototype.setSelectedRange = function (t) { return this.composition.setSelectedRange(t) }, t.prototype.activateAttribute = function (t, e) { return null == e && (e = !0), this.composition.setCurrentAttribute(t, e) }, t.prototype.attributeIsActive = function (t) { return this.composition.hasCurrentAttribute(t) }, t.prototype.canActivateAttribute = function (t) { return this.composition.canSetCurrentAttribute(t) }, t.prototype.deactivateAttribute = function (t) { return this.composition.removeCurrentAttribute(t) }, t.prototype.canDecreaseNestingLevel = function () { return this.composition.canDecreaseNestingLevel() }, t.prototype.canIncreaseNestingLevel = function () { return this.composition.canIncreaseNestingLevel() }, t.prototype.decreaseNestingLevel = function () { return this.canDecreaseNestingLevel() ? this.composition.decreaseNestingLevel() : void 0 }, t.prototype.increaseNestingLevel = function () { return this.canIncreaseNestingLevel() ? this.composition.increaseNestingLevel() : void 0 }, t.prototype.canRedo = function () { return this.undoManager.canRedo() }, t.prototype.canUndo = function () { return this.undoManager.canUndo() }, t.prototype.recordUndoEntry = function (t, e) { var n, i, o; return o = null != e ? e : {}, i = o.context, n = o.consolidatable, this.undoManager.recordUndoEntry(t, { context: i, consolidatable: n }) }, t.prototype.redo = function () { return this.canRedo() ? this.undoManager.redo() : void 0 }, t.prototype.undo = function () { return this.canUndo() ? this.undoManager.undo() : void 0 }, t }() }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.ManagedAttachment = function (e) { function n(t, e) { var n; this.attachmentManager = t, this.attachment = e, n = this.attachment, this.id = n.id, this.file = n.file } return t(n, e), n.prototype.remove = function () { return this.attachmentManager.requestRemovalOfAttachment(this.attachment) }, n.proxyMethod(\"attachment.getAttribute\"), n.proxyMethod(\"attachment.hasAttribute\"), n.proxyMethod(\"attachment.setAttribute\"), n.proxyMethod(\"attachment.getAttributes\"), n.proxyMethod(\"attachment.setAttributes\"), n.proxyMethod(\"attachment.isPending\"), n.proxyMethod(\"attachment.isPreviewable\"), n.proxyMethod(\"attachment.getURL\"), n.proxyMethod(\"attachment.getHref\"), n.proxyMethod(\"attachment.getFilename\"), n.proxyMethod(\"attachment.getFilesize\"), n.proxyMethod(\"attachment.getFormattedFilesize\"), n.proxyMethod(\"attachment.getExtension\"), n.proxyMethod(\"attachment.getContentType\"), n.proxyMethod(\"attachment.getFile\"), n.proxyMethod(\"attachment.setFile\"), n.proxyMethod(\"attachment.releaseFile\"), n.proxyMethod(\"attachment.getUploadProgress\"), n.proxyMethod(\"attachment.setUploadProgress\"), n }(e.BasicObject) }.call(this), function () { var t = function (t, e) { function i() { this.constructor = t } for (var o in e) n.call(e, o) && (t[o] = e[o]); return i.prototype = e.prototype, t.prototype = new i, t.__super__ = e.prototype, t }, n = {}.hasOwnProperty; e.AttachmentManager = function (n) { function i(t) { var e, n, i; for (null == t && (t = []), this.managedAttachments = {}, n = 0, i = t.length; i > n; n++)e = t[n], this.manageAttachment(e) } return t(i, n), i.prototype.getAttachments = function () { var t, e, n, i; n = this.managedAttachments, i = []; for (e in n) t = n[e], i.push(t); return i }, i.prototype.manageAttachment = function (t) { var n, i; return null != (n = this.managedAttachments)[i = t.id] ? n[i] : n[i] = new e.ManagedAttachment(this, t) }, i.prototype.attachmentIsManaged = function (t) { return t.id in this.managedAttachments }, i.prototype.requestRemovalOfAttachment = function (t) { var e; return this.attachmentIsManaged(t) && null != (e = this.delegate) && \"function\" == typeof e.attachmentManagerDidRequestRemovalOfAttachment ? e.attachmentManagerDidRequestRemovalOfAttachment(t) : void 0 }, i.prototype.unmanageAttachment = function (t) { var e; return e = this.managedAttachments[t.id], delete this.managedAttachments[t.id], e }, i }(e.BasicObject) }.call(this), function () { var t, n, i, o, r, s, a, u, c, l, h; t = e.elementContainsNode, n = e.findChildIndexOfNode, r = e.nodeIsBlockStart, s = e.nodeIsBlockStartComment, o = e.nodeIsBlockContainer, a = e.nodeIsCursorTarget, u = e.nodeIsEmptyTextNode, c = e.nodeIsTextNode, i = e.nodeIsAttachmentElement, l = e.tagName, h = e.walkTree, e.LocationMapper = function () { function e(t) { this.element = t } var p, d, f, g; return e.prototype.findLocationFromContainerAndOffset = function (e, i, o) { var s, u, l, p, g, m, y; for (m = (null != o ? o : { strict: !0 }).strict, u = 0, l = !1, p = { index: 0, offset: 0 }, (s = this.findAttachmentElementParentForNode(e)) && (e = s.parentNode, i = n(s)), y = h(this.element, { usingFilter: f }); y.nextNode();) { if (g = y.currentNode, g === e && c(e)) { a(g) || (p.offset += i); break } if (g.parentNode === e) { if (u++ === i) break } else if (!t(e, g) && u > 0) break; r(g, { strict: m }) ? (l && p.index++ , p.offset = 0, l = !0) : p.offset += d(g) } return p }, e.prototype.findContainerAndOffsetFromLocation = function (t) { var e, i, s, u, l; if (0 === t.index && 0 === t.offset) { for (e = this.element, u = 0; e.firstChild;)if (e = e.firstChild, o(e)) { u = 1; break } return [e, u] } if (l = this.findNodeAndOffsetFromLocation(t), i = l[0], s = l[1], i) { if (c(i)) 0 === d(i) ? (e = i.parentNode.parentNode, u = n(i.parentNode), a(i, { name: \"right\" }) && u++) : (e = i, u = t.offset - s); else { if (e = i.parentNode, !r(i.previousSibling) && !o(e)) for (; i === e.lastChild && (i = e, e = e.parentNode, !o(e));); u = n(i), 0 !== t.offset && u++ } return [e, u] } }, e.prototype.findNodeAndOffsetFromLocation = function (t) { var e, n, i, o, r, s, u, l; for (u = 0, l = this.getSignificantNodesForIndex(t.index), n = 0, i = l.length; i > n; n++) { if (e = l[n], o = d(e), t.offset <= u + o) if (c(e)) { if (r = e, s = u, t.offset === s && a(r)) break } else r || (r = e, s = u); if (u += o, u > t.offset) break } return [r, s] }, e.prototype.findAttachmentElementParentForNode = function (t) { for (; t && t !== this.element;) { if (i(t)) return t; t = t.parentNode } }, e.prototype.getSignificantNodesForIndex = function (t) { var e, n, i, o, r; for (i = [], r = h(this.element, { usingFilter: p }), o = !1; r.nextNode();)if (n = r.currentNode, s(n)) { if (\"undefined\" != typeof e && null !== e ? e++ : e = 0, e === t) o = !0; else if (o) break } else o && i.push(n); return i }, d = function (t) { var e; return t.nodeType === Node.TEXT_NODE ? a(t) ? 0 : (e = t.textContent, e.length) : \"br\" === l(t) || i(t) ? 1 : 0 }, p = function (t) { return g(t) === NodeFilter.FILTER_ACCEPT ? f(t) : NodeFilter.FILTER_REJECT }, g = function (t) { return u(t) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT }, f = function (t) { return i(t.parentNode) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT }, e }() }.call(this), function () { var t, n, i = [].slice; t = e.getDOMRange, n = e.setDOMRange, e.PointMapper = function () { function e() { } return e.prototype.createDOMRangeFromPoint = function (e) { var i, o, r, s, a, u, c, l; if (c = e.x, l = e.y, document.caretPositionFromPoint) return a = document.caretPositionFromPoint(c, l), r = a.offsetNode, o = a.offset, i = document.createRange(), i.setStart(r, o), i; if (document.caretRangeFromPoint) return document.caretRangeFromPoint(c, l); if (document.body.createTextRange) { s = t(); try { u = document.body.createTextRange(), u.moveToPoint(c, l), u.select() } catch (h) { } return i = t(), n(s), i } }, e.prototype.getClientRectsForDOMRange = function (t) { var e, n, o; return n = i.call(t.getClientRects()), o = n[0], e = n[n.length - 1], [o, e] }, e }() }.call(this), function () { var t, n = function (t, e) { return function () { return t.apply(e, arguments) } }, i = function (t, e) { function n() { this.constructor = t } for (var i in e) o.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, o = {}.hasOwnProperty, r = [].indexOf || function (t) { for (var e = 0, n = this.length; n > e; e++)if (e in this && this[e] === t) return e; return -1 }; t = e.getDOMRange, e.SelectionChangeObserver = function (e) { function o() { this.run = n(this.run, this), this.update = n(this.update, this), this.selectionManagers = [] } var s; return i(o, e), o.prototype.start = function () { return this.started ? void 0 : (this.started = !0, \"onselectionchange\" in document ? document.addEventListener(\"selectionchange\", this.update, !0) : this.run()) }, o.prototype.stop = function () { return this.started ? (this.started = !1, document.removeEventListener(\"selectionchange\", this.update, !0)) : void 0 }, o.prototype.registerSelectionManager = function (t) { return r.call(this.selectionManagers, t) < 0 ? (this.selectionManagers.push(t), this.start()) : void 0 }, o.prototype.unregisterSelectionManager = function (t) { var e; return this.selectionManagers = function () { var n, i, o, r; for (o = this.selectionManagers, r = [], n = 0, i = o.length; i > n; n++)e = o[n], e !== t && r.push(e); return r }.call(this), 0 === this.selectionManagers.length ? this.stop() : void 0 }, o.prototype.notifySelectionManagersOfSelectionChange = function () { var t, e, n, i, o; for (n = this.selectionManagers, i = [], t = 0, e = n.length; e > t; t++)o = n[t], i.push(o.selectionDidChange()); return i }, o.prototype.update = function () { var e; return e = t(), s(e, this.domRange) ? void 0 : (this.domRange = e, this.notifySelectionManagersOfSelectionChange()) }, o.prototype.reset = function () { return this.domRange = null, this.update() }, o.prototype.run = function () { return this.started ? (this.update(), requestAnimationFrame(this.run)) : void 0 }, s = function (t, e) { return (null != t ? t.startContainer : void 0) === (null != e ? e.startContainer : void 0) && (null != t ? t.startOffset : void 0) === (null != e ? e.startOffset : void 0) && (null != t ? t.endContainer : void 0) === (null != e ? e.endContainer : void 0) && (null != t ? t.endOffset : void 0) === (null != e ? e.endOffset : void 0) }, o }(e.BasicObject), null == e.selectionChangeObserver && (e.selectionChangeObserver = new e.SelectionChangeObserver) }.call(this), function () { var t, n, i, o, r, s, a, u, c, l, h = function (t, e) { return function () { return t.apply(e, arguments) } }, p = function (t, e) { function n() { this.constructor = t } for (var i in e) d.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, d = {}.hasOwnProperty; i = e.getDOMSelection, n = e.getDOMRange, l = e.setDOMRange, t = e.elementContainsNode, s = e.nodeIsCursorTarget, r = e.innerElementIsActive, o = e.handleEvent, a = e.normalizeRange, u = e.rangeIsCollapsed, c = e.rangesAreEqual, e.SelectionManager = function (d) { function f(t) { this.element = t, this.selectionDidChange = h(this.selectionDidChange, this), this.didMouseDown = h(this.didMouseDown, this), this.locationMapper = new e.LocationMapper(this.element), this.pointMapper = new e.PointMapper, this.lockCount = 0, o(\"mousedown\", { onElement: this.element, withCallback: this.didMouseDown }) } return p(f, d), f.prototype.getLocationRange = function (t) { var e, i; return null == t && (t = {}), e = t.strict === !1 ? this.createLocationRangeFromDOMRange(n(), { strict: !1 }) : t.ignoreLock ? this.currentLocationRange : null != (i = this.lockedLocationRange) ? i : this.currentLocationRange }, f.prototype.setLocationRange = function (t) { var e; if (!this.lockedLocationRange) return t = a(t), (e = this.createDOMRangeFromLocationRange(t)) ? (l(e), this.updateCurrentLocationRange(t)) : void 0 }, f.prototype.setLocationRangeFromPointRange = function (t) { var e, n; return t = a(t), n = this.getLocationAtPoint(t[0]), e = this.getLocationAtPoint(t[1]), this.setLocationRange([n, e]) }, f.prototype.getClientRectAtLocationRange = function (t) { var e; return (e = this.createDOMRangeFromLocationRange(t)) ? this.getClientRectsForDOMRange(e)[1] : void 0 }, f.prototype.locationIsCursorTarget = function (t) { var e, n, i; return i = this.findNodeAndOffsetFromLocation(t), e = i[0], n = i[1], s(e) }, f.prototype.lock = function () { return 0 === this.lockCount++ ? (this.updateCurrentLocationRange(), this.lockedLocationRange = this.getLocationRange()) : void 0 }, f.prototype.unlock = function () { var t; return 0 === --this.lockCount && (t = this.lockedLocationRange, this.lockedLocationRange = null, null != t) ? this.setLocationRange(t) : void 0 }, f.prototype.clearSelection = function () { var t; return null != (t = i()) ? t.removeAllRanges() : void 0 }, f.prototype.selectionIsCollapsed = function () { var t; return (null != (t = n()) ? t.collapsed : void 0) === !0 }, f.prototype.selectionIsExpanded = function () { return !this.selectionIsCollapsed() }, f.proxyMethod(\"locationMapper.findLocationFromContainerAndOffset\"), f.proxyMethod(\"locationMapper.findContainerAndOffsetFromLocation\"), f.proxyMethod(\"locationMapper.findNodeAndOffsetFromLocation\"), f.proxyMethod(\"pointMapper.createDOMRangeFromPoint\"), f.proxyMethod(\"pointMapper.getClientRectsForDOMRange\"), f.prototype.didMouseDown = function () { return this.pauseTemporarily() }, f.prototype.pauseTemporarily = function () { var e, n, i, r; return this.paused = !0, n = function (e) { return function () { var n, o, s; for (e.paused = !1, clearTimeout(r), o = 0, s = i.length; s > o; o++)n = i[o], n.destroy(); return t(document, e.element) ? e.selectionDidChange() : void 0 } }(this), r = setTimeout(n, 200), i = function () { var t, i, r, s; for (r = [\"mousemove\", \"keydown\"], s = [], t = 0, i = r.length; i > t; t++)e = r[t], s.push(o(e, { onElement: document, withCallback: n })); return s }() }, f.prototype.selectionDidChange = function () { return this.paused || r(this.element) ? void 0 : this.updateCurrentLocationRange() }, f.prototype.updateCurrentLocationRange = function (t) { var e; return (null != t ? t : t = this.createLocationRangeFromDOMRange(n())) && !c(t, this.currentLocationRange) ? (this.currentLocationRange = t, null != (e = this.delegate) && \"function\" == typeof e.locationRangeDidChange ? e.locationRangeDidChange(this.currentLocationRange.slice(0)) : void 0) : void 0 }, f.prototype.createDOMRangeFromLocationRange = function (t) { var e, n, i, o; return i = this.findContainerAndOffsetFromLocation(t[0]), n = u(t) ? i : null != (o = this.findContainerAndOffsetFromLocation(t[1])) ? o : i, null != i && null != n ? (e = document.createRange(), e.setStart.apply(e, i), e.setEnd.apply(e, n), e) : void 0 }, f.prototype.createLocationRangeFromDOMRange = function (t, e) { var n, i; if (null != t && this.domRangeWithinElement(t) && (i = this.findLocationFromContainerAndOffset(t.startContainer, t.startOffset, e))) return t.collapsed || (n = this.findLocationFromContainerAndOffset(t.endContainer, t.endOffset, e)), a([i, n]) }, f.prototype.getLocationAtPoint = function (t) { var e, n; return (e = this.createDOMRangeFromPoint(t)) && null != (n = this.createLocationRangeFromDOMRange(e)) ? n[0] : void 0 }, f.prototype.domRangeWithinElement = function (e) { return e.collapsed ? t(this.element, e.startContainer) : t(this.element, e.startContainer) && t(this.element, e.endContainer) }, f }(e.BasicObject) }.call(this), function () {\r\n var t, n, i, o = function (t, e) { function n() { this.constructor = t } for (var i in e) r.call(e, i) && (t[i] = e[i]); return n.prototype = e.prototype, t.prototype = new n, t.__super__ = e.prototype, t }, r = {}.hasOwnProperty, s = [].slice; n = e.rangeIsCollapsed, i = e.rangesAreEqual, t = e.objectsAreEqual, e.EditorController = function (r) {\r\n function a(t) { var n, i; this.editorElement = t.editorElement, n = t.document, i = t.html, this.selectionManager = new e.SelectionManager(this.editorElement), this.selectionManager.delegate = this, this.composition = new e.Composition, this.composition.delegate = this, this.attachmentManager = new e.AttachmentManager(this.composition.getAttachments()), this.attachmentManager.delegate = this, this.inputController = new e.InputController(this.editorElement), this.inputController.delegate = this, this.inputController.responder = this.composition, this.compositionController = new e.CompositionController(this.editorElement, this.composition), this.compositionController.delegate = this, this.toolbarController = new e.ToolbarController(this.editorElement.toolbarElement), this.toolbarController.delegate = this, this.editor = new e.Editor(this.composition, this.selectionManager, this.editorElement), null != n ? this.editor.loadDocument(n) : this.editor.loadHTML(i) } var u; return o(a, r), a.prototype.registerSelectionManager = function () { return e.selectionChangeObserver.registerSelectionManager(this.selectionManager) }, a.prototype.unregisterSelectionManager = function () { return e.selectionChangeObserver.unregisterSelectionManager(this.selectionManager) }, a.prototype.compositionDidChangeDocument = function () { return this.notifyEditorElement(\"document-change\"), this.handlingInput ? void 0 : this.render() }, a.prototype.compositionDidChangeCurrentAttributes = function (t) { return this.currentAttributes = t, this.toolbarController.updateAttributes(this.currentAttributes), this.updateCurrentActions(), this.notifyEditorElement(\"attributes-change\", { attributes: this.currentAttributes }) }, a.prototype.compositionDidPerformInsertionAtRange = function (t) { return this.pasting ? this.pastedRange = t : void 0 }, a.prototype.compositionShouldAcceptFile = function (t) { return this.notifyEditorElement(\"file-accept\", { file: t }) }, a.prototype.compositionDidAddAttachment = function (t) { var e; return e = this.attachmentManager.manageAttachment(t), this.notifyEditorElement(\"attachment-add\", { attachment: e }) }, a.prototype.compositionDidEditAttachment = function (t) { var e; return this.compositionController.rerenderViewForObject(t), e = this.attachmentManager.manageAttachment(t), this.notifyEditorElement(\"attachment-edit\", { attachment: e }), this.notifyEditorElement(\"change\") }, a.prototype.compositionDidChangeAttachmentPreviewURL = function (t) { return this.compositionController.invalidateViewForObject(t), this.notifyEditorElement(\"change\") }, a.prototype.compositionDidRemoveAttachment = function (t) { var e; return e = this.attachmentManager.unmanageAttachment(t), this.notifyEditorElement(\"attachment-remove\", { attachment: e }) }, a.prototype.compositionDidStartEditingAttachment = function (t, e) { return this.attachmentLocationRange = this.composition.document.getLocationRangeOfAttachment(t), this.compositionController.installAttachmentEditorForAttachment(t, e), this.selectionManager.setLocationRange(this.attachmentLocationRange) }, a.prototype.compositionDidStopEditingAttachment = function () { return this.compositionController.uninstallAttachmentEditor(), this.attachmentLocationRange = null }, a.prototype.compositionDidRequestChangingSelectionToLocationRange = function (t) { return !this.loadingSnapshot || this.isFocused() ? (this.requestedLocationRange = t, this.compositionRevisionWhenLocationRangeRequested = this.composition.revision, this.handlingInput ? void 0 : this.render()) : void 0 }, a.prototype.compositionWillLoadSnapshot = function () { return this.loadingSnapshot = !0 }, a.prototype.compositionDidLoadSnapshot = function () { return this.compositionController.refreshViewCache(), this.render(), this.loadingSnapshot = !1 }, a.prototype.getSelectionManager = function () { return this.selectionManager }, a.proxyMethod(\"getSelectionManager().setLocationRange\"), a.proxyMethod(\"getSelectionManager().getLocationRange\"), a.prototype.attachmentManagerDidRequestRemovalOfAttachment = function (t) { return this.removeAttachment(t) }, a.prototype.compositionControllerWillSyncDocumentView = function () { return this.inputController.editorWillSyncDocumentView(), this.selectionManager.lock(), this.selectionManager.clearSelection() }, a.prototype.compositionControllerDidSyncDocumentView = function () { return this.inputController.editorDidSyncDocumentView(), this.selectionManager.unlock(), this.updateCurrentActions(), this.notifyEditorElement(\"sync\") }, a.prototype.compositionControllerDidRender = function () { return null != this.requestedLocationRange && (this.compositionRevisionWhenLocationRangeRequested === this.composition.revision && this.selectionManager.setLocationRange(this.requestedLocationRange), this.requestedLocationRange = null, this.compositionRevisionWhenLocationRangeRequested = null), this.renderedCompositionRevision !== this.composition.revision && (this.runEditorFilters(), this.composition.updateCurrentAttributes(), this.notifyEditorElement(\"render\")), this.renderedCompositionRevision = this.composition.revision }, a.prototype.compositionControllerDidFocus = function () { return this.toolbarController.hideDialog(), this.notifyEditorElement(\"focus\") }, a.prototype.compositionControllerDidBlur = function () { return this.notifyEditorElement(\"blur\") }, a.prototype.compositionControllerDidSelectAttachment = function (t, e) { return this.composition.editAttachment(t, e) }, a.prototype.compositionControllerDidRequestDeselectingAttachment = function (t) { var e, n; return e = null != (n = this.attachmentLocationRange) ? n : this.composition.document.getLocationRangeOfAttachment(t), this.selectionManager.setLocationRange(e[1]) }, a.prototype.compositionControllerWillUpdateAttachment = function (t) { return this.editor.recordUndoEntry(\"Edit Attachment\", { context: t.id, consolidatable: !0 }) }, a.prototype.compositionControllerDidRequestRemovalOfAttachment = function (t) { return this.removeAttachment(t) }, a.prototype.inputControllerWillHandleInput = function () { return this.handlingInput = !0, this.requestedRender = !1 }, a.prototype.inputControllerDidRequestRender = function () { return this.requestedRender = !0 }, a.prototype.inputControllerDidHandleInput = function () { return this.handlingInput = !1, this.requestedRender ? (this.requestedRender = !1, this.render()) : void 0 }, a.prototype.inputControllerDidAllowUnhandledInput = function () { return this.notifyEditorElement(\"change\") }, a.prototype.inputControllerDidRequestReparse = function () { return this.reparse() }, a.prototype.inputControllerWillPerformTyping = function () { return this.recordTypingUndoEntry() }, a.prototype.inputControllerWillCutText = function () { return this.editor.recordUndoEntry(\"Cut\") }, a.prototype.inputControllerWillPaste = function (t) { return this.editor.recordUndoEntry(\"Paste\"), this.pasting = !0, this.notifyEditorElement(\"before-paste\", { paste: t }) }, a.prototype.inputControllerDidPaste = function (t) { return t.range = this.pastedRange, this.pastedRange = null, this.pasting = null, this.notifyEditorElement(\"paste\", { paste: t }) }, a.prototype.inputControllerWillMoveText = function () { return this.editor.recordUndoEntry(\"Move\") }, a.prototype.inputControllerWillAttachFiles = function () { return this.editor.recordUndoEntry(\"Drop Files\") }, a.prototype.inputControllerDidReceiveKeyboardCommand = function (t) { return this.toolbarController.applyKeyboardCommand(t) }, a.prototype.inputControllerDidStartDrag = function () { return this.locationRangeBeforeDrag = this.selectionManager.getLocationRange() }, a.prototype.inputControllerDidReceiveDragOverPoint = function (t) { return this.selectionManager.setLocationRangeFromPointRange(t) }, a.prototype.inputControllerDidCancelDrag = function () { return this.selectionManager.setLocationRange(this.locationRangeBeforeDrag), this.locationRangeBeforeDrag = null }, a.prototype.locationRangeDidChange = function (t) { return this.composition.updateCurrentAttributes(), this.updateCurrentActions(), this.attachmentLocationRange && !i(this.attachmentLocationRange, t) && this.composition.stopEditingAttachment(), this.notifyEditorElement(\"selection-change\") }, a.prototype.toolbarDidClickButton = function () { return this.getLocationRange() ? void 0 : this.setLocationRange({ index: 0, offset: 0 }) }, a.prototype.toolbarDidInvokeAction = function (t) { return this.invokeAction(t) }, a.prototype.toolbarDidToggleAttribute = function (t) { return this.recordFormattingUndoEntry(), this.composition.toggleCurrentAttribute(t), this.render(), this.selectionFrozen ? void 0 : this.editorElement.focus() }, a.prototype.toolbarDidUpdateAttribute = function (t, e) { return this.recordFormattingUndoEntry(), this.composition.setCurrentAttribute(t, e), this.render(), this.selectionFrozen ? void 0 : this.editorElement.focus() }, a.prototype.toolbarDidRemoveAttribute = function (t) { return this.recordFormattingUndoEntry(), this.composition.removeCurrentAttribute(t), this.render(), this.selectionFrozen ? void 0 : this.editorElement.focus() }, a.prototype.toolbarWillShowDialog = function () { return this.composition.expandSelectionForEditing(), this.freezeSelection() }, a.prototype.toolbarDidShowDialog = function (t) { return this.notifyEditorElement(\"toolbar-dialog-show\", { dialogName: t }) }, a.prototype.toolbarDidHideDialog = function (t) { return this.thawSelection(), this.editorElement.focus(), this.notifyEditorElement(\"toolbar-dialog-hide\", { dialogName: t }) }, a.prototype.freezeSelection = function () { return this.selectionFrozen ? void 0 : (this.selectionManager.lock(), this.composition.freezeSelection(), this.selectionFrozen = !0, this.render()) }, a.prototype.thawSelection = function () { return this.selectionFrozen ? (this.composition.thawSelection(), this.selectionManager.unlock(), this.selectionFrozen = !1, this.render()) : void 0 }, a.prototype.actions = { undo: { test: function () { return this.editor.canUndo() }, perform: function () { return this.editor.undo() } }, redo: { test: function () { return this.editor.canRedo() }, perform: function () { return this.editor.redo() } }, link: { test: function () { return this.editor.canActivateAttribute(\"href\") } }, increaseNestingLevel: { test: function () { return this.editor.canIncreaseNestingLevel() }, perform: function () { return this.editor.increaseNestingLevel() && this.render() } }, decreaseNestingLevel: { test: function () { return this.editor.canDecreaseNestingLevel() }, perform: function () { return this.editor.decreaseNestingLevel() && this.render() } } }, a.prototype.canInvokeAction = function (t) { var e, n; return this.actionIsExternal(t) ? !0 : !!(null != (e = this.actions[t]) && null != (n = e.test) ? n.call(this) : void 0) }, a.prototype.invokeAction = function (t) {\r\n var e, n; return this.actionIsExternal(t) ? this.notifyEditorElement(\"action-invoke\", { actionName: t }) : null != (e = this.actions[t]) && null != (n = e.perform) ? n.call(this) : void 0\r\n }, a.prototype.actionIsExternal = function (t) { return /^x-./.test(t) }, a.prototype.getCurrentActions = function () { var t, e; e = {}; for (t in this.actions) e[t] = this.canInvokeAction(t); return e }, a.prototype.updateCurrentActions = function () { var e; return e = this.getCurrentActions(), t(e, this.currentActions) ? void 0 : (this.currentActions = e, this.toolbarController.updateActions(this.currentActions), this.notifyEditorElement(\"actions-change\", { actions: this.currentActions })) }, a.prototype.runEditorFilters = function () { var t, e, n, i, o, r, s, a; for (a = this.composition.getSnapshot(), o = this.editor.filters, n = 0, i = o.length; i > n; n++)e = o[n], t = a.document, s = a.selectedRange, a = null != (r = e.call(this.editor, a)) ? r : {}, null == a.document && (a.document = t), null == a.selectedRange && (a.selectedRange = s); return u(a, this.composition.getSnapshot()) ? void 0 : this.composition.loadSnapshot(a) }, u = function (t, e) { return i(t.selectedRange, e.selectedRange) && t.document.isEqualTo(e.document) }, a.prototype.reparse = function () { return this.composition.replaceHTML(this.editorElement.innerHTML) }, a.prototype.render = function () { return this.compositionController.render() }, a.prototype.updateInputElement = function () { var t, n; return t = this.compositionController.getSerializableElement(), n = e.serializeToContentType(t, \"text/html\"), this.editorElement.setInputElementValue(n) }, a.prototype.notifyEditorElement = function (t, e) { switch (t) { case \"document-change\": this.documentChangedSinceLastRender = !0; break; case \"render\": this.documentChangedSinceLastRender && (this.documentChangedSinceLastRender = !1, this.notifyEditorElement(\"change\")); break; case \"change\": case \"attachment-add\": case \"attachment-edit\": case \"attachment-remove\": this.updateInputElement() }return this.editorElement.notify(t, e) }, a.prototype.removeAttachment = function (t) { return this.editor.recordUndoEntry(\"Delete Attachment\"), this.composition.removeAttachment(t), this.render() }, a.prototype.recordFormattingUndoEntry = function () { var t; return t = this.selectionManager.getLocationRange(), n(t) ? void 0 : this.editor.recordUndoEntry(\"Formatting\", { context: this.getUndoContext(), consolidatable: !0 }) }, a.prototype.recordTypingUndoEntry = function () { return this.editor.recordUndoEntry(\"Typing\", { context: this.getUndoContext(this.currentAttributes), consolidatable: !0 }) }, a.prototype.getUndoContext = function () { var t; return t = 1 <= arguments.length ? s.call(arguments, 0) : [], [this.getLocationContext(), this.getTimeContext()].concat(s.call(t)) }, a.prototype.getLocationContext = function () { var t; return t = this.selectionManager.getLocationRange(), n(t) ? t[0].index : t }, a.prototype.getTimeContext = function () { return e.config.undoInterval > 0 ? Math.floor((new Date).getTime() / e.config.undoInterval) : 0 }, a.prototype.isFocused = function () { var t; return this.editorElement === (null != (t = this.editorElement.ownerDocument) ? t.activeElement : void 0) }, a\r\n }(e.Controller)\r\n }.call(this), function () { var t, n, i, o, r, s; n = e.browser, r = e.makeElement, s = e.triggerEvent, i = e.handleEvent, o = e.handleEventOnce, t = e.AttachmentView.attachmentSelector, e.registerElement(\"trix-editor\", function () { var a, u, c, l, h, p, d, f; return p = 0, u = function (t) { return !document.querySelector(\":focus\") && t.hasAttribute(\"autofocus\") && document.querySelector(\"[autofocus]\") === t ? t.focus() : void 0 }, d = function (t) { return t.hasAttribute(\"contenteditable\") ? void 0 : (t.setAttribute(\"contenteditable\", \"\"), o(\"focus\", { onElement: t, withCallback: function () { return c(t) } })) }, a = function (t) { return t.hasAttribute(\"role\") ? void 0 : t.setAttribute(\"role\", \"textbox\") }, c = function (t) { return h(t), f(t) }, h = function (t) { return (\"function\" == typeof document.queryCommandSupported ? document.queryCommandSupported(\"enableObjectResizing\") : void 0) ? (document.execCommand(\"enableObjectResizing\", !1, !1), i(\"mscontrolselect\", { onElement: t, preventDefault: !0 })) : void 0 }, f = function () { var t; return (\"function\" == typeof document.queryCommandSupported ? document.queryCommandSupported(\"DefaultParagraphSeparator\") : void 0) && (t = e.config.blockAttributes[\"default\"].tagName, \"div\" === t || \"p\" === t) ? document.execCommand(\"DefaultParagraphSeparator\", !1, t) : void 0 }, l = function () { return n.forcesObjectResizing ? { display: \"inline\", width: \"auto\" } : { display: \"inline-block\", width: \"1px\" } }(), { defaultCSS: \"%t {\\n display: block;\\n}\\n\\n%t:empty:not(:focus)::before {\\n content: attr(placeholder);\\n color: graytext;\\n cursor: text;\\n}\\n\\n%t a[contenteditable=false] {\\n cursor: text;\\n}\\n\\n%t img {\\n max-width: 100%;\\n height: auto;\\n}\\n\\n%t \" + t + \" figcaption textarea {\\n resize: none;\\n}\\n\\n%t \" + t + \" figcaption textarea.trix-autoresize-clone {\\n position: absolute;\\n left: -9999px;\\n max-height: 0px;\\n}\\n\\n%t \" + t + \" figcaption[data-trix-placeholder]:empty::before {\\n content: attr(data-trix-placeholder);\\n color: graytext;\\n}\\n\\n%t [data-trix-cursor-target] {\\n display: \" + l.display + \" !important;\\n width: \" + l.width + \" !important;\\n padding: 0 !important;\\n margin: 0 !important;\\n border: none !important;\\n}\\n\\n%t [data-trix-cursor-target=left] {\\n vertical-align: top !important;\\n margin-left: -1px !important;\\n}\\n\\n%t [data-trix-cursor-target=right] {\\n vertical-align: bottom !important;\\n margin-right: -1px !important;\\n}\", trixId: { get: function () { return this.hasAttribute(\"trix-id\") ? this.getAttribute(\"trix-id\") : (this.setAttribute(\"trix-id\", ++p), this.trixId) } }, toolbarElement: { get: function () { var t, e, n; return this.hasAttribute(\"toolbar\") ? null != (e = this.ownerDocument) ? e.getElementById(this.getAttribute(\"toolbar\")) : void 0 : this.parentNode ? (n = \"trix-toolbar-\" + this.trixId, this.setAttribute(\"toolbar\", n), t = r(\"trix-toolbar\", { id: n }), this.parentNode.insertBefore(t, this), t) : void 0 } }, inputElement: { get: function () { var t, e, n; return this.hasAttribute(\"input\") ? null != (n = this.ownerDocument) ? n.getElementById(this.getAttribute(\"input\")) : void 0 : this.parentNode ? (e = \"trix-input-\" + this.trixId, this.setAttribute(\"input\", e), t = r(\"input\", { type: \"hidden\", id: e }), this.parentNode.insertBefore(t, this.nextElementSibling), t) : void 0 } }, editor: { get: function () { var t; return null != (t = this.editorController) ? t.editor : void 0 } }, name: { get: function () { var t; return null != (t = this.inputElement) ? t.name : void 0 } }, value: { get: function () { var t; return null != (t = this.inputElement) ? t.value : void 0 }, set: function (t) { var e; return this.defaultValue = t, null != (e = this.editor) ? e.loadHTML(this.defaultValue) : void 0 } }, notify: function (t, e) { return this.editorController ? s(\"trix-\" + t, { onElement: this, attributes: e }) : void 0 }, setInputElementValue: function (t) { var e; return null != (e = this.inputElement) ? e.value = t : void 0 }, initialize: function () { return d(this), a(this) }, connect: function () { return this.hasAttribute(\"data-trix-internal\") ? void 0 : (this.editorController || (s(\"trix-before-initialize\", { onElement: this }), this.editorController = new e.EditorController({ editorElement: this, html: this.defaultValue = this.value }), requestAnimationFrame(function (t) { return function () { return s(\"trix-initialize\", { onElement: t }) } }(this))), this.editorController.registerSelectionManager(), this.registerResetListener(), u(this)) }, disconnect: function () { var t; return null != (t = this.editorController) && t.unregisterSelectionManager(), this.unregisterResetListener() }, registerResetListener: function () { return this.resetListener = this.resetBubbled.bind(this), window.addEventListener(\"reset\", this.resetListener, !1) }, unregisterResetListener: function () { return window.removeEventListener(\"reset\", this.resetListener, !1) }, resetBubbled: function (t) { var e; return t.target !== (null != (e = this.inputElement) ? e.form : void 0) || t.defaultPrevented ? void 0 : this.reset() }, reset: function () { return this.value = this.defaultValue } } }()) }.call(this), function () { }.call(this)\r\n }).call(this), \"object\" == typeof module && module.exports ? module.exports = e : \"function\" == typeof define && define.amd && define(e)\r\n}.call(this);","/*! angular-trix - v1.0.0 - 2015-12-09\r\n* https://github.com/sachinchoolur/angular-trix\r\n* Copyright (c) 2015 Sachin; Licensed MIT */\r\n!function () { \"use strict\"; angular.module(\"angularTrix\", []).directive(\"angularTrix\", function () { return { restrict: \"A\", require: \"ngModel\", scope: { trixInitialize: \"&\", trixChange: \"&\", trixSelectionChange: \"&\", trixFocus: \"&\", trixBlur: \"&\", trixFileAccept: \"&\", trixAttachmentAdd: \"&\", trixAttachmentRemove: \"&\" }, link: function (a, b, c, d) { b.on(\"trix-initialize\", function () { d.$modelValue && b[0].editor.loadHTML(d.$modelValue) }), d.$render = function () { b[0].editor && b[0].editor.loadHTML(d.$modelValue), b.on(\"trix-change\", function () { d.$setViewValue(b.html()) }) }; var e = function (d, e) { b[0].addEventListener(d, function (f) { \"trix-file-accept\" === d && \"true\" === c.preventTrixFileAccept && f.preventDefault(), a[e]({ e: f, editor: b[0].editor }) }) }; e(\"trix-initialize\", \"trixInitialize\"), e(\"trix-change\", \"trixChange\"), e(\"trix-selection-change\", \"trixSelectionChange\"), e(\"trix-focus\", \"trixFocus\"), e(\"trix-blur\", \"trixBlur\"), e(\"trix-file-accept\", \"trixFileAccept\"), e(\"trix-attachment-add\", \"trixAttachmentAdd\"), e(\"trix-attachment-remove\", \"trixAttachmentRemove\") } } }) }();","!function (a, b) { \"function\" == typeof define && define.amd ? define([], function () { return a.SignaturePad = b() }) : \"object\" == typeof exports ? module.exports = b() : a.SignaturePad = b() }(this, function () {/*!\r\n * Signature Pad v1.5.3 | https://github.com/szimek/signature_pad\r\n * (c) 2016 Szymon Nowak | Released under the MIT license\r\n */\r\n var a = function (a) { \"use strict\"; var b = function (a, b) { var c = this, d = b || {}; this.velocityFilterWeight = d.velocityFilterWeight || .7, this.minWidth = d.minWidth || .5, this.maxWidth = d.maxWidth || 2.5, this.dotSize = d.dotSize || function () { return (this.minWidth + this.maxWidth) / 2 }, this.penColor = d.penColor || \"black\", this.backgroundColor = d.backgroundColor || \"rgba(0,0,0,0)\", this.onEnd = d.onEnd, this.onBegin = d.onBegin, this._canvas = a, this._ctx = a.getContext(\"2d\"), this.clear(), this._handleMouseDown = function (a) { 1 === a.which && (c._mouseButtonDown = !0, c._strokeBegin(a)) }, this._handleMouseMove = function (a) { c._mouseButtonDown && c._strokeUpdate(a) }, this._handleMouseUp = function (a) { 1 === a.which && c._mouseButtonDown && (c._mouseButtonDown = !1, c._strokeEnd(a)) }, this._handleTouchStart = function (a) { if (1 == a.targetTouches.length) { var b = a.changedTouches[0]; c._strokeBegin(b) } }, this._handleTouchMove = function (a) { a.preventDefault(); var b = a.targetTouches[0]; c._strokeUpdate(b) }, this._handleTouchEnd = function (a) { var b = a.target === c._canvas; b && (a.preventDefault(), c._strokeEnd(a)) }, this._handleMouseEvents(), this._handleTouchEvents() }; b.prototype.clear = function () { var a = this._ctx, b = this._canvas; a.fillStyle = this.backgroundColor, a.clearRect(0, 0, b.width, b.height), a.fillRect(0, 0, b.width, b.height), this._reset() }, b.prototype.toDataURL = function () { var a = this._canvas; return a.toDataURL.apply(a, arguments) }, b.prototype.fromDataURL = function (a) { var b = this, c = new Image, d = window.devicePixelRatio || 1, e = this._canvas.width / d, f = this._canvas.height / d; this._reset(), c.src = a, c.onload = function () { b._ctx.drawImage(c, 0, 0, e, f) }, this._isEmpty = !1 }, b.prototype._strokeUpdate = function (a) { var b = this._createPoint(a); this._addPoint(b) }, b.prototype._strokeBegin = function (a) { this._reset(), this._strokeUpdate(a), \"function\" == typeof this.onBegin && this.onBegin(a) }, b.prototype._strokeDraw = function (a) { var b = this._ctx, c = \"function\" == typeof this.dotSize ? this.dotSize() : this.dotSize; b.beginPath(), this._drawPoint(a.x, a.y, c), b.closePath(), b.fill() }, b.prototype._strokeEnd = function (a) { var b = this.points.length > 2, c = this.points[0]; !b && c && this._strokeDraw(c), \"function\" == typeof this.onEnd && this.onEnd(a) }, b.prototype._handleMouseEvents = function () { this._mouseButtonDown = !1, this._canvas.addEventListener(\"mousedown\", this._handleMouseDown), this._canvas.addEventListener(\"mousemove\", this._handleMouseMove), a.addEventListener(\"mouseup\", this._handleMouseUp) }, b.prototype._handleTouchEvents = function () { this._canvas.style.msTouchAction = \"none\", this._canvas.style.touchAction = \"none\", this._canvas.addEventListener(\"touchstart\", this._handleTouchStart), this._canvas.addEventListener(\"touchmove\", this._handleTouchMove), this._canvas.addEventListener(\"touchend\", this._handleTouchEnd) }, b.prototype.on = function () { this._handleMouseEvents(), this._handleTouchEvents() }, b.prototype.off = function () { this._canvas.removeEventListener(\"mousedown\", this._handleMouseDown), this._canvas.removeEventListener(\"mousemove\", this._handleMouseMove), a.removeEventListener(\"mouseup\", this._handleMouseUp), this._canvas.removeEventListener(\"touchstart\", this._handleTouchStart), this._canvas.removeEventListener(\"touchmove\", this._handleTouchMove), this._canvas.removeEventListener(\"touchend\", this._handleTouchEnd) }, b.prototype.isEmpty = function () { return this._isEmpty }, b.prototype._reset = function () { this.points = [], this._lastVelocity = 0, this._lastWidth = (this.minWidth + this.maxWidth) / 2, this._isEmpty = !0, this._ctx.fillStyle = this.penColor }, b.prototype._createPoint = function (a) { var b = this._canvas.getBoundingClientRect(); return new c(a.clientX - b.left, a.clientY - b.top) }, b.prototype._addPoint = function (a) { var b, c, e, f, g = this.points; g.push(a), g.length > 2 && (3 === g.length && g.unshift(g[0]), f = this._calculateCurveControlPoints(g[0], g[1], g[2]), b = f.c2, f = this._calculateCurveControlPoints(g[1], g[2], g[3]), c = f.c1, e = new d(g[1], b, c, g[2]), this._addCurve(e), g.shift()) }, b.prototype._calculateCurveControlPoints = function (a, b, d) { var e = a.x - b.x, f = a.y - b.y, g = b.x - d.x, h = b.y - d.y, i = { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 }, j = { x: (b.x + d.x) / 2, y: (b.y + d.y) / 2 }, k = Math.sqrt(e * e + f * f), l = Math.sqrt(g * g + h * h), m = i.x - j.x, n = i.y - j.y, o = l / (k + l), p = { x: j.x + m * o, y: j.y + n * o }, q = b.x - p.x, r = b.y - p.y; return { c1: new c(i.x + q, i.y + r), c2: new c(j.x + q, j.y + r) } }, b.prototype._addCurve = function (a) { var b, c, d = a.startPoint, e = a.endPoint; b = e.velocityFrom(d), b = this.velocityFilterWeight * b + (1 - this.velocityFilterWeight) * this._lastVelocity, c = this._strokeWidth(b), this._drawCurve(a, this._lastWidth, c), this._lastVelocity = b, this._lastWidth = c }, b.prototype._drawPoint = function (a, b, c) { var d = this._ctx; d.moveTo(a, b), d.arc(a, b, c, 0, 2 * Math.PI, !1), this._isEmpty = !1 }, b.prototype._drawCurve = function (a, b, c) { var d, e, f, g, h, i, j, k, l, m, n, o = this._ctx, p = c - b; for (d = Math.floor(a.length()), o.beginPath(), f = 0; d > f; f++)g = f / d, h = g * g, i = h * g, j = 1 - g, k = j * j, l = k * j, m = l * a.startPoint.x, m += 3 * k * g * a.control1.x, m += 3 * j * h * a.control2.x, m += i * a.endPoint.x, n = l * a.startPoint.y, n += 3 * k * g * a.control1.y, n += 3 * j * h * a.control2.y, n += i * a.endPoint.y, e = b + i * p, this._drawPoint(m, n, e); o.closePath(), o.fill() }, b.prototype._strokeWidth = function (a) { return Math.max(this.maxWidth / (a + 1), this.minWidth) }; var c = function (a, b, c) { this.x = a, this.y = b, this.time = c || (new Date).getTime() }; c.prototype.velocityFrom = function (a) { return this.time !== a.time ? this.distanceTo(a) / (this.time - a.time) : 1 }, c.prototype.distanceTo = function (a) { return Math.sqrt(Math.pow(this.x - a.x, 2) + Math.pow(this.y - a.y, 2)) }; var d = function (a, b, c, d) { this.startPoint = a, this.control1 = b, this.control2 = c, this.endPoint = d }; return d.prototype.length = function () { var a, b, c, d, e, f, g, h, i = 10, j = 0; for (a = 0; i >= a; a++)b = a / i, c = this._point(b, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x), d = this._point(b, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y), a > 0 && (g = c - e, h = d - f, j += Math.sqrt(g * g + h * h)), e = c, f = d; return j }, d.prototype._point = function (a, b, c, d, e) { return b * (1 - a) * (1 - a) * (1 - a) + 3 * c * (1 - a) * (1 - a) * a + 3 * d * (1 - a) * a * a + e * a * a * a }, b }(document); return a\r\n});","/*\r\n * https://github.com/legalthings/signature-pad-angular\r\n * Copyright (c) 2015 ; Licensed MIT\r\n */\r\n\r\nangular.module('signature', []);\r\n\r\nangular.module('signature').directive('signaturePad', ['$interval', '$timeout', '$window',\r\n function ($interval, $timeout, $window) {\r\n 'use strict';\r\n\r\n var signaturePad, element, EMPTY_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjgAAADcCAQAAADXNhPAAAACIklEQVR42u3UIQEAAAzDsM+/6UsYG0okFDQHMBIJAMMBDAfAcADDATAcwHAAwwEwHMBwAAwHMBzAcAAMBzAcAMMBDAcwHADDAQwHwHAAwwEMB8BwAMMBMBzAcADDATAcwHAADAcwHADDAQwHMBwAwwEMB8BwAMMBDAfAcADDATAcwHAAwwEwHMBwAAwHMBzAcAAMBzAcAMMBDAcwHADDAQwHwHAAwwEwHMBwAMMBMBzAcAAMBzAcwHAADAcwHADDAQwHMBwAwwEMB8BwAMMBDAfAcADDATAcwHAAwwEwHMBwAAwHMBzAcCQADAcwHADDAQwHwHAAwwEMB8BwAMMBMBzAcADDATAcwHAADAcwHMBwAAwHMBwAwwEMBzAcAMMBDAfAcADDAQwHwHAAwwEwHMBwAAwHMBzAcAAMBzAcAMMBDAcwHADDAQwHwHAAwwEMB8BwAMMBMBzAcADDATAcwHAADAcwHMBwAAwHMBwAwwEMB8BwAMMBDAfAcADDATAcwHAAwwEwHMBwAAwHMBzAcAAMBzAcAMMBDAcwHADDAQwHwHAAwwEMB8BwAMMBMBzAcADDkQAwHMBwAAwHMBwAwwEMBzAcAMMBDAfAcADDAQwHwHAAwwEwHMBwAMMBMBzAcAAMBzAcwHAADAcwHADDAQwHMBwAwwEMB8BwAMMBMBzAcADDATAcwHAADAcwHMBwAAwHMBwAwwEMBzAcAMMBDAegeayZAN3dLgwnAAAAAElFTkSuQmCC';\r\n\r\n return {\r\n restrict: 'EA',\r\n replace: true,\r\n template: '
      ',\r\n scope: {\r\n accept: '=?',\r\n clear: '=?',\r\n disabled: '=?',\r\n dataurl: '=?',\r\n height: '@',\r\n width: '@',\r\n notifyDrawing: '&onDrawing'\r\n },\r\n controller: [\r\n '$scope',\r\n function ($scope) {\r\n $scope.accept = function () {\r\n\r\n return {\r\n isEmpty: $scope.dataurl === EMPTY_IMAGE,\r\n dataUrl: $scope.dataurl\r\n };\r\n };\r\n\r\n $scope.onMouseup = function () {\r\n $scope.updateModel();\r\n\r\n // notify that drawing has ended\r\n $scope.notifyDrawing({ drawing: false });\r\n };\r\n\r\n $scope.updateModel = function () {\r\n /*\r\n defer handling mouseup event until $scope.signaturePad handles\r\n first the same event\r\n */\r\n $timeout().then(function () {\r\n $scope.dataurl = $scope.signaturePad.isEmpty() ? EMPTY_IMAGE : $scope.signaturePad.toDataURL();\r\n });\r\n };\r\n\r\n $scope.clear = function () {\r\n $scope.signaturePad.clear();\r\n $scope.dataurl = EMPTY_IMAGE;\r\n };\r\n\r\n $scope.$watch(\"dataurl\", function (dataUrl) {\r\n if (!dataUrl || $scope.signaturePad.toDataURL() === dataUrl) {\r\n return;\r\n }\r\n\r\n $scope.setDataUrl(dataUrl);\r\n });\r\n }\r\n ],\r\n link: function (scope, element, attrs) {\r\n var canvas = element.find('canvas')[0];\r\n var parent = canvas.parentElement;\r\n var scale = 0;\r\n var ctx = canvas.getContext('2d');\r\n\r\n var width = parseInt(scope.width, 10);\r\n var height = parseInt(scope.height, 10);\r\n\r\n canvas.width = width;\r\n canvas.height = height;\r\n\r\n scope.signaturePad = new SignaturePad(canvas);\r\n\r\n scope.setDataUrl = function(dataUrl) {\r\n var ratio = Math.max(window.devicePixelRatio || 1, 1);\r\n\r\n ctx.setTransform(1, 0, 0, 1, 0, 0);\r\n ctx.scale(ratio, ratio);\r\n\r\n scope.signaturePad.clear();\r\n scope.signaturePad.fromDataURL(dataUrl);\r\n\r\n $timeout().then(function() {\r\n ctx.setTransform(1, 0, 0, 1, 0, 0);\r\n ctx.scale(1 / scale, 1 / scale);\r\n });\r\n };\r\n\r\n scope.$watch('disabled', function (val) {\r\n val ? scope.signaturePad.off() : scope.signaturePad.on();\r\n });\r\n \r\n var calculateScale = function() {\r\n var scaleWidth = Math.min(parent.clientWidth / width, 1);\r\n var scaleHeight = Math.min(parent.clientHeight / height, 1);\r\n\r\n var newScale = Math.min(scaleWidth, scaleHeight);\r\n\r\n if (newScale === scale) {\r\n return;\r\n }\r\n\r\n var newWidth = width * newScale;\r\n var newHeight = height * newScale;\r\n canvas.style.height = Math.round(newHeight) + \"px\";\r\n canvas.style.width = Math.round(newWidth) + \"px\";\r\n\r\n scale = newScale;\r\n ctx.setTransform(1, 0, 0, 1, 0, 0);\r\n ctx.scale(1 / scale, 1 / scale);\r\n };\r\n\r\n var resizeIH = $interval(calculateScale, 200);\r\n scope.$on('$destroy', function () {\r\n $interval.cancel(resizeIH);\r\n resizeIH = null;\r\n });\r\n\r\n angular.element($window).bind('resize', calculateScale);\r\n scope.$on('$destroy', function () {\r\n angular.element($window).unbind('resize', calculateScale);\r\n });\r\n\r\n calculateScale();\r\n\r\n element.on('touchstart', onTouchstart);\r\n element.on('touchend', onTouchend);\r\n\r\n function onTouchstart(event) {\r\n scope.$apply(function () {\r\n // notify that drawing has started\r\n scope.notifyDrawing({ drawing: true });\r\n });\r\n event.preventDefault();\r\n }\r\n\r\n function onTouchend(event) {\r\n scope.$apply(function () {\r\n // updateModel\r\n scope.updateModel();\r\n\r\n // notify that drawing has ended\r\n scope.notifyDrawing({ drawing: false });\r\n });\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n }\r\n]);\r\n\r\n// Backward compatibility\r\nangular.module('ngSignaturePad', ['signature']);","/*\r\n AngularJS v1.7.9\r\n (c) 2010-2018 Google, Inc. http://angularjs.org\r\n License: MIT\r\n*/\r\n(function(s,c){'use strict';function P(c){var h=[];C(h,E).chars(c);return h.join(\"\")}var D=c.$$minErr(\"$sanitize\"),F,h,G,H,I,q,E,J,K,C;c.module(\"ngSanitize\",[]).provider(\"$sanitize\",function(){function f(a,e){return B(a.split(\",\"),e)}function B(a,e){var d={},b;for(b=0;b/g,\">\")}function A(a){for(;a;){if(a.nodeType===s.Node.ELEMENT_NODE)for(var e=a.attributes,d=0,b=e.length;d\"))},end:function(a){a=q(a);d||!0!==m[a]||!0===r[a]||(b(\"\"));a==d&&(d=!1)},chars:function(a){d||\r\nb(L(a))}}};J=s.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)};var z=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g,u=/([^#-~ |!])/g,r=f(\"area,br,col,hr,img,wbr\"),x=f(\"colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr\"),p=f(\"rp,rt\"),n=h({},p,x),x=h({},x,f(\"address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul\")),p=h({},p,f(\"a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var\")),\r\nl=f(\"circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan\"),w=f(\"script,style\"),m=h({},r,x,p,n),O=f(\"background,cite,href,longdesc,src,xlink:href,xml:base\"),n=f(\"abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width\"),\r\np=f(\"accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan\",\r\n!0),M=h({},O,p,n),N=function(a,e){function d(b){b=\"\"+b;try{var d=(new a.DOMParser).parseFromString(b,\"text/html\").body;d.firstChild.remove();return d}catch(e){}}function b(a){c.innerHTML=a;e.documentMode&&A(c);return c}var g;if(e&&e.implementation)g=e.implementation.createHTMLDocument(\"inert\");else throw D(\"noinert\");var c=(g.documentElement||g.getDocumentElement()).querySelector(\"body\");c.innerHTML='';return c.querySelector(\"svg\")?\r\n(c.innerHTML='

      ',c.querySelector(\"svg img\")?d:b):function(b){b=\"\"+b;try{b=encodeURI(b)}catch(d){return}var e=new a.XMLHttpRequest;e.responseType=\"document\";e.open(\"GET\",\"data:text/html;charset=utf-8,\"+b,!1);e.send(null);b=e.response.body;b.firstChild.remove();return b}}(s,s.document)}).info({angularVersion:\"1.7.9\"});c.module(\"ngSanitize\").filter(\"linky\",[\"$sanitize\",function(f){var h=/((s?ftp|https?):\\/\\/|(www\\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\\S*[^\\s.;,(){}<>\"\\u201d\\u2019]/i,\r\nt=/^mailto:/i,q=c.$$minErr(\"linky\"),s=c.isDefined,A=c.isFunction,v=c.isObject,y=c.isString;return function(c,z,u){function r(c){c&&l.push(P(c))}function x(c,g){var f,a=p(c);l.push(\"');r(g);l.push(\"\")}if(null==c||\"\"===c)return c;if(!y(c))throw q(\"notstring\",c);for(var p=A(u)?u:v(u)?function(){return u}:function(){return{}},n=c,l=[],w,m;c=n.match(h);)w=c[0],c[2]||\r\nc[4]||(w=(c[3]?\"http://\":\"mailto:\")+w),m=c.index,r(n.substr(0,m)),x(w,c[0].replace(t,\"\")),n=n.substring(m+c[0].length);r(n);return f(l.join(\"\"))}}])})(window,window.angular);\r\n//# sourceMappingURL=angular-sanitize.min.js.map","/** \r\n* @version 2.1.8\r\n* @license MIT\r\n*/\r\n!function(t,e){\"use strict\";t.module(\"smart-table\",[]).run([\"$templateCache\",function(t){t.put(\"template/smart-table/pagination.html\",'

      ')}]),t.module(\"smart-table\").constant(\"stConfig\",{pagination:{template:\"template/smart-table/pagination.html\",itemsByPage:10,displayedPages:5},search:{delay:400,inputEvent:\"input\"},select:{mode:\"single\",selectedClass:\"st-selected\"},sort:{ascentClass:\"st-sort-ascent\",descentClass:\"st-sort-descent\",descendingFirst:!1,skipNatural:!1,delay:300},pipe:{delay:100}}),t.module(\"smart-table\").controller(\"stTableController\",[\"$scope\",\"$parse\",\"$filter\",\"$attrs\",function(a,n,s,i){function r(t){return t?[].concat(t):[]}function l(){b=r(o(a)),v===!0&&S.pipe()}function c(t,e){if(-1!=e.indexOf(\".\")){var a=e.split(\".\"),s=a.pop(),i=a.join(\".\"),r=n(i)(t);delete r[s],0==Object.keys(r).length&&c(t,i)}else delete t[e]}var o,u,p,g=i.stTable,d=n(g),f=d.assign,m=s(\"orderBy\"),h=s(\"filter\"),b=r(d(a)),P={sort:{},search:{},pagination:{start:0,totalItemCount:0}},v=!0,S=this;i.stSafeSrc&&(o=n(i.stSafeSrc),a.$watch(function(){var t=o(a);return t&&t.length?t[0]:e},function(t,e){t!==e&&l()}),a.$watch(function(){var t=o(a);return t?t.length:0},function(t){t!==b.length&&l()}),a.$watch(function(){return o(a)},function(t,e){t!==e&&(P.pagination.start=0,l())})),this.sortBy=function(e,a){return P.sort.predicate=e,P.sort.reverse=a===!0,t.isFunction(e)?P.sort.functionName=e.name:delete P.sort.functionName,P.pagination.start=0,this.pipe()},this.search=function(e,a){var s=P.search.predicateObject||{},i=a?a:\"$\";return e=t.isString(e)?e.trim():e,n(i).assign(s,e),e||c(s,i),P.search.predicateObject=s,P.pagination.start=0,this.pipe()},this.pipe=function(){var t,n=P.pagination;u=P.search.predicateObject?h(b,P.search.predicateObject):b,P.sort.predicate&&(u=m(u,P.sort.predicate,P.sort.reverse)),n.totalItemCount=u.length,n.number!==e&&(n.numberOfPages=u.length>0?Math.ceil(u.length/n.number):1,n.start=n.start>=u.length?(n.numberOfPages-1)*n.number:n.start,t=u.slice(n.start,n.start+parseInt(n.number))),f(a,t||u)},this.select=function(t,n){var s=r(d(a)),i=s.indexOf(t);-1!==i&&(\"single\"===n?(t.isSelected=t.isSelected!==!0,p&&(p.isSelected=!1),p=t.isSelected===!0?t:e):s[i].isSelected=!s[i].isSelected)},this.slice=function(t,e){return P.pagination.start=t,P.pagination.number=e,this.pipe()},this.tableState=function(){return P},this.getFilteredCollection=function(){return u||b},this.setFilterFunction=function(t){h=s(t)},this.setSortFunction=function(t){m=s(t)},this.preventPipeOnWatch=function(){v=!1}}]).directive(\"stTable\",function(){return{restrict:\"A\",controller:\"stTableController\",link:function(t,e,a,n){a.stSetFilter&&n.setFilterFunction(a.stSetFilter),a.stSetSort&&n.setSortFunction(a.stSetSort)}}}),t.module(\"smart-table\").directive(\"stSearch\",[\"stConfig\",\"$timeout\",\"$parse\",function(t,e,a){return{require:\"^stTable\",link:function(n,s,i,r){var l=r,c=null,o=i.stDelay||t.search.delay,u=i.stInputEvent||t.search.inputEvent;i.$observe(\"stSearch\",function(t,e){var a=s[0].value;t!==e&&a&&(r.tableState().search={},l.search(a,t))}),n.$watch(function(){return r.tableState().search},function(t){var e=i.stSearch||\"$\";t.predicateObject&&a(e)(t.predicateObject)!==s[0].value&&(s[0].value=a(e)(t.predicateObject)||\"\")},!0),s.bind(u,function(t){t=t.originalEvent||t,null!==c&&e.cancel(c),c=e(function(){l.search(t.target.value,i.stSearch||\"\"),c=null},o)})}}}]),t.module(\"smart-table\").directive(\"stSelectRow\",[\"stConfig\",function(t){return{restrict:\"A\",require:\"^stTable\",scope:{row:\"=stSelectRow\"},link:function(e,a,n,s){var i=n.stSelectMode||t.select.mode;a.bind(\"click\",function(){e.$apply(function(){s.select(e.row,i)})}),e.$watch(\"row.isSelected\",function(e){e===!0?a.addClass(t.select.selectedClass):a.removeClass(t.select.selectedClass)})}}}]),t.module(\"smart-table\").directive(\"stSort\",[\"stConfig\",\"$parse\",\"$timeout\",function(a,n,s){return{restrict:\"A\",require:\"^stTable\",link:function(i,r,l,c){function o(){P?d=0===d?2:d-1:d++;var e;p=t.isFunction(g(i))||t.isArray(g(i))?g(i):l.stSort,d%3===0&&!!b!=!0?(d=0,c.tableState().sort={},c.tableState().pagination.start=0,e=c.pipe.bind(c)):e=c.sortBy.bind(c,p,d%2===0),null!==v&&s.cancel(v),0>S?e():v=s(e,S)}var u,p=l.stSort,g=n(p),d=0,f=l.stClassAscent||a.sort.ascentClass,m=l.stClassDescent||a.sort.descentClass,h=[f,m],b=l.stSkipNatural!==e?l.stSkipNatural:a.sort.skipNatural,P=l.stDescendingFirst!==e?l.stDescendingFirst:a.sort.descendingFirst,v=null,S=l.stDelay||a.sort.delay;l.stSortDefault&&(u=i.$eval(l.stSortDefault)!==e?i.$eval(l.stSortDefault):l.stSortDefault),r.bind(\"click\",function(){p&&i.$apply(o)}),u&&(d=\"reverse\"===u?1:0,o()),i.$watch(function(){return c.tableState().sort},function(t){t.predicate!==p?(d=0,r.removeClass(f).removeClass(m)):(d=t.reverse===!0?2:1,r.removeClass(h[d%2]).addClass(h[d-1]))},!0)}}}]),t.module(\"smart-table\").directive(\"stPagination\",[\"stConfig\",function(t){return{restrict:\"EA\",require:\"^stTable\",scope:{stItemsByPage:\"=?\",stDisplayedPages:\"=?\",stPageChange:\"&\"},templateUrl:function(e,a){return a.stTemplate?a.stTemplate:t.pagination.template},link:function(e,a,n,s){function i(){var t,a,n=s.tableState().pagination,i=1,r=e.currentPage;for(e.totalItemCount=n.totalItemCount,e.currentPage=Math.floor(n.start/n.number)+1,i=Math.max(i,e.currentPage-Math.abs(Math.floor(e.stDisplayedPages/2))),t=i+e.stDisplayedPages,t>n.numberOfPages&&(t=n.numberOfPages+1,i=Math.max(1,t-e.stDisplayedPages)),e.pages=[],e.numPages=n.numberOfPages,a=i;t>a;a++)e.pages.push(a);r!==e.currentPage&&e.stPageChange({newPage:e.currentPage})}e.stItemsByPage=e.stItemsByPage?+e.stItemsByPage:t.pagination.itemsByPage,e.stDisplayedPages=e.stDisplayedPages?+e.stDisplayedPages:t.pagination.displayedPages,e.currentPage=1,e.pages=[],e.$watch(function(){return s.tableState().pagination},i,!0),e.$watch(\"stItemsByPage\",function(t,a){t!==a&&e.selectPage(1)}),e.$watch(\"stDisplayedPages\",i),e.selectPage=function(t){t>0&&t<=e.numPages&&s.slice((t-1)*e.stItemsByPage,e.stItemsByPage)},s.tableState().pagination.number||s.slice(0,e.stItemsByPage)}}}]),t.module(\"smart-table\").directive(\"stPipe\",[\"stConfig\",\"$timeout\",function(e,a){return{require:\"stTable\",scope:{stPipe:\"=\"},link:{pre:function(n,s,i,r){var l=null;t.isFunction(n.stPipe)&&(r.preventPipeOnWatch(),r.pipe=function(){return null!==l&&a.cancel(l),l=a(function(){n.stPipe(r.tableState(),r)},e.pipe.delay)})},post:function(t,e,a,n){n.pipe()}}}}])}(angular);\r\n//# sourceMappingURL=smart-table.min.js.map\r\n","/**\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to\r\n * deal in the Software without restriction, including without limitation the\r\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\r\n * sell copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\r\n * IN THE SOFTWARE.\r\n */\r\n\r\n/**\r\n * Implementing Drag and Drop functionality in AngularJS is easier than ever.\r\n * Demo: http://codef0rmer.github.com/angular-dragdrop/\r\n * \r\n * @version 1.0.13\r\n *\r\n * (c) 2013 Amit Gharat a.k.a codef0rmer - amitgharat.wordpress.com\r\n */\r\n!function(e,a,t,n){\"use strict\";var i=a.module(\"ngDragDrop\",[]).service(\"ngDragDropService\",[\"$timeout\",\"$parse\",\"$q\",function(r,l,o){this.draggableScope=null,this.droppableScope=null,t(\"head\").prepend(''),this.callEventCallback=function(e,a,n,i){function r(a){var n=-1!==a.indexOf(\"(\")?a.indexOf(\"(\"):a.length,i=-1!==a.lastIndexOf(\")\")?a.lastIndexOf(\")\"):a.length,r=a.substring(n+1,i),o=-1!==a.indexOf(\".\")?a.substr(0,a.indexOf(\".\")):null;return o=e[o]&&\"function\"==typeof e[o].constructor?o:null,{callback:a.substring(o&&o.length+1||0,n),args:t.map(r&&r.split(\",\")||[],function(a){return[l(a)(e)]}),constructor:o}}if(a){var o=r(a),d=o.callback,s=o.constructor,p=[n,i].concat(o.args);return(e[d]||e[s][d]).apply(e[d]?e:e[s],p)}},this.invokeDrop=function(e,l,d,s){var p,c,u,g=\"\",f=\"\",b={},h={},v=null,y={},x={},m=null,D=this.droppableScope,q=this.draggableScope,j=null,k=[];g=e.ngattr(\"ng-model\"),f=l.ngattr(\"ng-model\"),p=q.$eval(g),c=D.$eval(f),m=l.find(\"[jqyoui-draggable]:last,[data-jqyoui-draggable]:last\"),h=D.$eval(l.attr(\"jqyoui-droppable\")||l.attr(\"data-jqyoui-droppable\"))||[],b=q.$eval(e.attr(\"jqyoui-draggable\")||e.attr(\"data-jqyoui-draggable\"))||[],b.index=this.fixIndex(q,b,p),h.index=this.fixIndex(D,h,c),v=a.isArray(p)?b.index:null,y=a.isArray(p)?p[v]:p,b.deepCopy&&(y=a.copy(y)),x=a.isArray(c)&&h&&h.index!==n?c[h.index]:a.isArray(c)?{}:c,h.deepCopy&&(x=a.copy(x)),b.beforeDrop&&k.push(this.callEventCallback(q,b.beforeDrop,d,s)),o.all(k).then(a.bind(this,function(){if(b.insertInline&&g===f){if(b.index>h.index){u=p[b.index];for(var n=b.index;n>h.index;n--)c[n]=a.copy(c[n-1]),c[n-1]={},c[n][b.direction]=\"left\";c[h.index]=u}else{u=p[b.index];for(var n=b.index;n0?m:l,null,\"fast\",h,function(){j.remove()}),this.move(m.length>0&&!h.multiple?m:[],e.parent(\"[jqyoui-droppable],[data-jqyoui-droppable]\"),i.startXY,\"fast\",h,a.bind(this,function(){r(a.bind(this,function(){e.css({position:\"relative\",left:\"\",top:\"\"}).removeClass(\"angular-dragdrop-hide\"),m.css({position:\"relative\",left:\"\",top:\"\",display:\"none\"===m.css(\"display\")?\"\":m.css(\"display\")}),this.mutateDraggable(q,h,b,g,f,x,e),this.mutateDroppable(D,h,b,f,y,v),this.callEventCallback(D,h.onDrop,d,s)}))}))):r(a.bind(this,function(){this.mutateDraggable(q,h,b,g,f,x,e),this.mutateDroppable(D,h,b,f,y,v),this.callEventCallback(D,h.onDrop,d,s)}))}))[\"finally\"](a.bind(this,function(){this.restore(e)}))},this.move=function(a,t,i,r,l,o){if(0===a.length)return o&&e.setTimeout(function(){o()},300),!1;var d=a.css(\"z-index\"),s=a[l.containment||\"offset\"](),p=t.css(\"display\"),c=t.hasClass(\"ng-hide\"),u=t.hasClass(\"angular-dragdrop-hide\");null===i&&t.length>0&&((t.attr(\"jqyoui-draggable\")||t.attr(\"data-jqyoui-draggable\"))!==n&&t.ngattr(\"ng-model\")!==n&&t.is(\":visible\")&&l&&l.multiple?(i=t[l.containment||\"offset\"](),l.stack===!1?i.left+=t.outerWidth(!0):i.top+=t.outerHeight(!0)):(c&&t.removeClass(\"ng-hide\"),u&&t.removeClass(\"angular-dragdrop-hide\"),i=t.css({visibility:\"hidden\",display:\"block\"})[l.containment||\"offset\"](),t.css({visibility:\"\",display:p}))),a.css({position:\"absolute\",\"z-index\":9999}).css(s).animate(i,r,function(){c&&t.addClass(\"ng-hide\"),u&&t.addClass(\"angular-dragdrop-hide\"),a.css(\"z-index\",d),o&&o()})},this.mutateDroppable=function(e,t,n,i,r,o){var d=e.$eval(i);e.dndDragItem=r,a.isArray(d)?(t&&t.index>=0?d[t.index]=r:d.push(r),n&&n.placeholder===!0&&(d[d.length-1].jqyoui_pos=o)):(l(i+\" = dndDragItem\")(e),n&&n.placeholder===!0&&(d.jqyoui_pos=o))},this.mutateDraggable=function(e,t,i,r,o,d,s){var p=a.equals(d,{})||!d,c=e.$eval(r);e.dndDropItem=d,i&&i.placeholder?\"keep\"!=i.placeholder&&(a.isArray(c)&&i.index!==n?c[i.index]=d:l(r+\" = dndDropItem\")(e)):a.isArray(c)?p?i&&i.placeholder!==!0&&\"keep\"!==i.placeholder&&c.splice(i.index,1):c[i.index]=d:(l(r+\" = dndDropItem\")(e),e.$parent&&l(r+\" = dndDropItem\")(e.$parent)),this.restore(s)},this.restore=function(e){e.css({\"z-index\":\"\",left:\"\",top:\"\"})},this.fixIndex=function(e,t,i){if(t.applyFilter&&a.isArray(i)&&i.length>0){var r=e[t.applyFilter](),l=r[t.index],o=n;return i.forEach(function(e,t){a.equals(e,l)&&(o=t)}),o}return t.index}}]).directive(\"jqyouiDraggable\",[\"ngDragDropService\",function(e){return{require:\"?jqyouiDroppable\",restrict:\"A\",link:function(n,r,l){var o,d,s,p,c=t(r),u=function(r,u){r?(o=n.$eval(c.attr(\"jqyoui-draggable\")||c.attr(\"data-jqyoui-draggable\"))||{},d=n.$eval(l.jqyouiOptions)||{},c.draggable({disabled:!1}).draggable(d).draggable({start:function(a,r){e.draggableScope=n,s=t(d.helper?r.helper:this).css(\"z-index\"),t(d.helper?r.helper:this).css(\"z-index\",9999),i.startXY=t(this)[o.containment||\"offset\"](),e.callEventCallback(n,o.onStart,a,r)},stop:function(a,i){t(d.helper?i.helper:this).css(\"z-index\",s),e.callEventCallback(n,o.onStop,a,i)},drag:function(a,t){e.callEventCallback(n,o.onDrag,a,t)}})):c.draggable({disabled:!0}),p&&a.isDefined(r)&&(a.equals(l.drag,\"true\")||a.equals(l.drag,\"false\"))&&(p(),p=null)};p=n.$watch(function(){return n.$eval(l.drag)},u),u(),c.on(\"$destroy\",function(){c.draggable({disabled:!0}).draggable(\"destroy\")})}}}]).directive(\"jqyouiDroppable\",[\"ngDragDropService\",\"$q\",function(e,n){return{restrict:\"A\",priority:1,link:function(i,r,l){var o,d,s,p=t(r),c=function(r,c){r?(o=i.$eval(t(p).attr(\"jqyoui-droppable\")||t(p).attr(\"data-jqyoui-droppable\"))||{},d=i.$eval(l.jqyouiOptions)||{},p.droppable({disabled:!1}).droppable(d).droppable({over:function(a,t){e.callEventCallback(i,o.onOver,a,t)},out:function(a,t){e.callEventCallback(i,o.onOut,a,t)},drop:function(r,s){var p=null;p=o.beforeDrop?e.callEventCallback(i,o.beforeDrop,r,s):function(){var e=n.defer();return e.resolve(),e.promise}(),p.then(a.bind(this,function(){t(s.draggable).ngattr(\"ng-model\")&&l.ngModel?(e.droppableScope=i,e.invokeDrop(t(s.draggable),t(this),r,s)):e.callEventCallback(i,o.onDrop,r,s)}),function(){s.draggable.animate({left:\"\",top:\"\"},d.revertDuration||0)})}})):p.droppable({disabled:!0}),s&&a.isDefined(r)&&(a.equals(l.drop,\"true\")||a.equals(l.drop,\"false\"))&&(s(),s=null)};s=i.$watch(function(){return i.$eval(l.drop)},c),c(),p.on(\"$destroy\",function(){p.droppable({disabled:!0}).droppable(\"destroy\")})}}}]);t.fn.ngattr=function(e,a){var t=this[0];return t.getAttribute(e)||t.getAttribute(\"data-\"+e)}}(window,window.angular,window.jQuery);","!function(a,b){\"undefined\"!=typeof module&&module.exports?module.exports=b(require(\"react\"),require(\"react-dom\"),require(\"angular\")):\"function\"==typeof define&&define.amd?define([\"react\",\"react-dom\",\"angular\"],function(c,d,angular){return a.ngReact=b(c,d,angular)}):a.ngReact=b(a.React,a.ReactDOM,a.angular)}(this,function(React,a,angular){\"use strict\";function b(a,b){if(angular.isFunction(a))return a;if(!a)throw new Error(\"ReactComponent name attribute must be specified\");var c;try{c=b.get(a)}catch(d){}if(!c)try{c=a.split(\".\").reduce(function(a,b){return a[b]},window)}catch(d){}if(!c)throw Error(\"Cannot find react component \"+a);return c}function c(a,b){if(a.wrappedInApply)return a;var c=function(){var c=arguments,d=b.$root.$$phase;return\"$apply\"===d||\"$digest\"===d?a.apply(null,c):b.$apply(function(){return a.apply(null,c)})};return c.wrappedInApply=!0,c}function d(a,b){return Object.keys(a||{}).reduce(function(d,e){var f=a[e];return d[e]=angular.isFunction(f)?c(f,b):f,d},{})}function e(a,b,c,d){\"collection\"===a&&angular.isFunction(b.$watchCollection)?c.forEach(function(a){b.$watchCollection(a,d)}):\"reference\"===a?angular.isFunction(b.$watchGroup)?b.$watchGroup(c,d):c.forEach(function(a){b.$watch(a,d)}):c.forEach(function(a){b.$watch(a,d,!0)})}function f(b,c,d,e){d.$evalAsync(function(){a.render(React.createElement(b,c),e[0])})}var g=function(c){return{restrict:\"E\",replace:!0,link:function(g,h,i){var j=b(i.name,c),k=function(){var a=g.$eval(i.props),b=d(a,g);f(j,b,g,h)};i.props?e(i.watchDepth,g,[i.props],k):k(),g.$on(\"$destroy\",function(){i.onScopeDestroy?g.$eval(i.onScopeDestroy,{unmountComponent:a.unmountComponentAtNode.bind(this,h[0])}):a.unmountComponentAtNode(h[0])})}}},h=function(c){return function(g,h,i,j){var k={restrict:\"E\",replace:!0,link:function(i,k,l){var m=b(g,c);h=h||Object.keys(m.propTypes||{});var n=function(){var a={};h.forEach(function(b){a[b]=i.$eval(l[b])}),a=d(a,i),a=angular.extend({},a,j),f(m,a,i,k)},o=h.map(function(a){return l[a]});e(l.watchDepth,i,o,n),n(),i.$on(\"$destroy\",function(){l.onScopeDestroy?i.$eval(l.onScopeDestroy,{unmountComponent:a.unmountComponentAtNode.bind(this,k[0])}):a.unmountComponentAtNode(k[0])})}};return angular.extend(k,i)}};return angular.module(\"react\",[]).directive(\"reactComponent\",[\"$injector\",g]).factory(\"reactDirective\",[\"$injector\",h])});","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\"),require(\"react-dom\")):\"function\"==typeof define&&define.amd?define([\"react\",\"react-dom\"],t):\"object\"==typeof exports?exports.ReactBootstrap=t(require(\"react\"),require(\"react-dom\")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={exports:{},id:o,loaded:!1};return e[o].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p=\"\",t(0)}([function(e,t,n){\"use strict\";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.utils=t.Well=t.Tooltip=t.Thumbnail=t.Tabs=t.TabPane=t.Table=t.TabContent=t.TabContainer=t.Tab=t.SplitButton=t.SafeAnchor=t.Row=t.ResponsiveEmbed=t.Radio=t.ProgressBar=t.Popover=t.PanelGroup=t.Panel=t.PaginationButton=t.Pagination=t.Pager=t.PageItem=t.PageHeader=t.OverlayTrigger=t.Overlay=t.NavItem=t.NavDropdown=t.NavbarBrand=t.Navbar=t.Nav=t.ModalTitle=t.ModalHeader=t.ModalFooter=t.ModalBody=t.Modal=t.MenuItem=t.Media=t.ListGroupItem=t.ListGroup=t.Label=t.Jumbotron=t.InputGroup=t.Image=t.HelpBlock=t.Grid=t.Glyphicon=t.FormGroup=t.FormControl=t.Form=t.Fade=t.DropdownButton=t.Dropdown=t.Collapse=t.Col=t.ControlLabel=t.Clearfix=t.Checkbox=t.CarouselItem=t.Carousel=t.ButtonToolbar=t.ButtonGroup=t.Button=t.BreadcrumbItem=t.Breadcrumb=t.Badge=t.Alert=t.Accordion=void 0;var l=n(121),r=a(l),u=n(122),i=a(u),s=n(123),d=a(s),f=n(124),c=a(f),p=n(76),h=a(p),m=n(32),v=a(m),y=n(77),b=a(y),g=n(125),_=a(g),C=n(126),E=a(C),x=n(78),O=a(x),N=n(128),S=a(N),M=n(129),T=a(M),w=n(131),P=a(w),k=n(130),A=a(k),I=n(50),R=a(I),j=n(39),L=a(j),D=n(132),B=a(D),K=n(40),F=a(K),H=n(134),U=a(H),z=n(135),$=a(z),W=n(138),G=a(W),q=n(51),V=a(q),Y=n(81),X=a(Y),Z=n(139),J=a(Z),Q=n(140),ee=a(Q),te=n(141),ne=a(te),oe=n(144),ae=a(oe),le=n(145),re=a(le),ue=n(146),ie=a(ue),se=n(82),de=a(se),fe=n(52),ce=a(fe),pe=n(153),he=a(pe),me=n(154),ve=a(me),ye=n(83),be=a(ye),ge=n(84),_e=a(ge),Ce=n(85),Ee=a(Ce),xe=n(86),Oe=a(xe),Ne=n(87),Se=a(Ne),Me=n(157),Te=a(Me),we=n(89),Pe=a(we),ke=n(156),Ae=a(ke),Ie=n(88),Re=a(Ie),je=n(90),Le=a(je),De=n(161),Be=a(De),Ke=n(162),Fe=a(Ke),He=n(163),Ue=a(He),ze=n(164),$e=a(ze),We=n(165),Ge=a(We),qe=n(92),Ve=a(qe),Ye=n(166),Xe=a(Ye),Ze=n(93),Je=a(Ze),Qe=n(167),et=a(Qe),tt=n(168),nt=a(tt),ot=n(169),at=a(ot),lt=n(170),rt=a(lt),ut=n(171),it=a(ut),st=n(16),dt=a(st),ft=n(172),ct=a(ft),pt=n(174),ht=a(pt),mt=n(53),vt=a(mt),yt=n(54),bt=a(yt),gt=n(175),_t=a(gt),Ct=n(94),Et=a(Ct),xt=n(176),Ot=a(xt),Nt=n(177),St=a(Nt),Mt=n(178),Tt=a(Mt),wt=n(179),Pt=a(wt),kt=n(183),At=o(kt);t.Accordion=r.default,t.Alert=i.default,t.Badge=d.default,t.Breadcrumb=c.default,t.BreadcrumbItem=h.default,t.Button=v.default,t.ButtonGroup=b.default,t.ButtonToolbar=_.default,t.Carousel=E.default,t.CarouselItem=O.default,t.Checkbox=S.default,t.Clearfix=T.default,t.ControlLabel=P.default,t.Col=A.default,t.Collapse=R.default,t.Dropdown=L.default,t.DropdownButton=B.default,t.Fade=F.default,t.Form=U.default,t.FormControl=$.default,t.FormGroup=G.default,t.Glyphicon=V.default,t.Grid=X.default,t.HelpBlock=J.default,t.Image=ee.default,t.InputGroup=ne.default,t.Jumbotron=ae.default,t.Label=re.default,t.ListGroup=ie.default,t.ListGroupItem=de.default,t.Media=ce.default,t.MenuItem=he.default,t.Modal=ve.default,t.ModalBody=be.default,t.ModalFooter=_e.default,t.ModalHeader=Ee.default,t.ModalTitle=Oe.default,t.Nav=Se.default,t.Navbar=Te.default,t.NavbarBrand=Pe.default,t.NavDropdown=Ae.default,t.NavItem=Re.default,t.Overlay=Le.default,t.OverlayTrigger=Be.default,t.PageHeader=Fe.default,t.PageItem=Ue.default,t.Pager=$e.default,t.Pagination=Ge.default,t.PaginationButton=Ve.default,t.Panel=Xe.default,t.PanelGroup=Je.default,t.Popover=et.default,t.ProgressBar=nt.default,t.Radio=at.default,t.ResponsiveEmbed=rt.default,t.Row=it.default,t.SafeAnchor=dt.default,t.SplitButton=ct.default,t.Tab=ht.default,t.TabContainer=vt.default,t.TabContent=bt.default,t.Table=_t.default,t.TabPane=Et.default,t.Tabs=Ot.default,t.Thumbnail=St.default,t.Tooltip=Tt.default,t.Well=Pt.default,t.utils=At},function(t,n){t.exports=e},function(e,t){\"use strict\";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(186),l=o(a),r=n(185),u=o(r),i=n(55),s=o(i);t.default=function(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+(\"undefined\"==typeof t?\"undefined\":(0,s.default)(t)));e.prototype=(0,u.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(l.default?(0,l.default)(e,t):e.__proto__=t)}},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(55),l=o(a);t.default=function(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!==(\"undefined\"==typeof t?\"undefined\":(0,l.default)(t))&&\"function\"!=typeof t?e:t}},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(96),l=o(a);t.default=l.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t,n){var o,a;/*!\n\t Copyright (c) 2016 Jed Watson.\n\t Licensed under the MIT License (MIT), see\n\t http://jedwatson.github.io/classnames\n\t*/\n!function(){\"use strict\";function n(){for(var e=[],t=0;t1?t-1:0),o=1;o>\",u=l||n;if(null==t[n])return new Error(\"The \"+a+\" `\"+u+\"` is required to make \"+(\"`\"+r+\"` accessible for users of assistive \")+\"technologies such as screen readers.\");for(var i=arguments.length,s=Array(i>5?i-5:0),d=5;d>\",i=r||o;if(null==n[o])return t?new Error(\"Required \"+l+\" `\"+i+\"` was not specified \"+(\"in `\"+u+\"`.\")):null;for(var s=arguments.length,d=Array(s>6?s-6:0),f=6;f1?n-1:0),a=1;a\";for(t.style.display=\"none\",n(203).appendChild(t),t.src=\"javascript:\",e=t.contentWindow.document,e.open(),e.write(a+\"script\"+r+\"document.F=Object\"+a+\"/script\"+r),e.close(),s=e.F;o--;)delete s[i][l[o]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[i]=o(e),n=new u,u[i]=null,n[r]=e):n=s(),void 0===t?n:a(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(24).f,a=n(23),l=n(18)(\"toStringTag\");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,l)&&o(e,l,{configurable:!0,value:t})}},function(e,t,n){var o=n(65)(\"keys\"),a=n(42);e.exports=function(e){return o[e]||(o[e]=a(e))}},function(e,t,n){var o=n(20),a=\"__core-js_shared__\",l=o[a]||(o[a]={});e.exports=function(e){return l[e]||(l[e]={})}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(58);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(34);e.exports=function(e,t){if(!o(e))return e;var n,a;if(t&&\"function\"==typeof(n=e.toString)&&!o(a=n.call(e)))return a;if(\"function\"==typeof(n=e.valueOf)&&!o(a=n.call(e)))return a;if(!t&&\"function\"==typeof(n=e.toString)&&!o(a=n.call(e)))return a;\nthrow TypeError(\"Can't convert object to primitive value\")}},function(e,t,n){var o=n(20),a=n(17),l=n(60),r=n(70),u=n(24).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=l?{}:o.Symbol||{});\"_\"==e.charAt(0)||e in t||u(t,e,{value:r.f(e)})}},function(e,t,n){t.f=n(18)},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(22),l=o(a),r=function(){};l.default&&(r=function(){return document.addEventListener?function(e,t,n,o){return e.removeEventListener(t,n,o||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent(\"on\"+t,n)}:void 0}()),t.default=r,e.exports=t.default},function(e,t,n){\"use strict\";var o=function(e,t,n,o,a,l,r,u){if(!e){var i;if(void 0===t)i=new Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var s=[n,o,a,l,r,u],d=0;i=new Error(t.replace(/%s/g,function(){return s[d++]})),i.name=\"Invariant Violation\"}throw i.framesToPop=1,i}};e.exports=o},function(e,t){t=e.exports=function(e){if(e&&\"object\"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if(\"number\"==typeof e)return l[e];var a=String(e),r=n[a.toLowerCase()];if(r)return r;var r=o[a.toLowerCase()];return r?r:1===a.length?a.charCodeAt(0):void 0};var n=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,\"pause/break\":19,\"caps lock\":20,esc:27,space:32,\"page up\":33,\"page down\":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,\"left command\":91,\"right command\":93,\"numpad *\":106,\"numpad +\":107,\"numpad -\":109,\"numpad .\":110,\"numpad /\":111,\"num lock\":144,\"scroll lock\":145,\"my computer\":182,\"my calculator\":183,\";\":186,\"=\":187,\",\":188,\"-\":189,\".\":190,\"/\":191,\"`\":192,\"[\":219,\"\\\\\":220,\"]\":221,\"'\":222},o=t.aliases={windows:91,\"⇧\":16,\"⌥\":18,\"⌃\":17,\"⌘\":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!\n\t * Programatically add the following\n\t */\nfor(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n[\"f\"+a]=a+111;for(a=0;a<10;a++)n[\"numpad \"+a]=a+96;var l=t.names=t.title={};for(a in n)l[n[a]]=a;for(var r in o)n[r]=o[r]},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e=\"function\"==typeof e?e():e,r.default.findDOMNode(e)||t}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=a;var l=n(14),r=o(l);e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n,o,a){var r=e[t],i=\"undefined\"==typeof r?\"undefined\":l(r);return u.default.isValidElement(r)?new Error(\"Invalid \"+o+\" `\"+a+\"` of type ReactElement \"+(\"supplied to `\"+n+\"`, expected a ReactComponent or a \")+\"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it.\"):\"object\"===i&&\"function\"==typeof r.render||1===r.nodeType?null:new Error(\"Invalid \"+o+\" `\"+a+\"` of value `\"+r+\"` \"+(\"supplied to `\"+n+\"`, expected a ReactComponent or a \")+\"DOMElement.\")}t.__esModule=!0;var l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol?\"symbol\":typeof e},r=n(1),u=o(r),i=n(48),s=o(i);t.default=(0,s.default)(a)},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(16),C=o(_),E={active:g.default.bool,href:g.default.string,title:g.default.node,target:g.default.string},x={active:!1},O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.href,o=e.title,a=e.target,r=e.className,i=(0,u.default)(e,[\"active\",\"href\",\"title\",\"target\",\"className\"]),s={href:n,title:o,target:a};return y.default.createElement(\"li\",{className:(0,m.default)(r,{active:t})},t?y.default.createElement(\"span\",i):y.default.createElement(C.default,(0,l.default)({},i,s)))},t}(y.default.Component);O.propTypes=E,O.defaultProps=x,t.default=O,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(46),C=o(_),E=n(32),x=o(E),O=n(8),N={vertical:g.default.bool,justified:g.default.bool,block:(0,C.default)(g.default.bool,function(e){var t=e.block,n=e.vertical;return t&&!n?new Error(\"`block` requires `vertical` to be set to have any effect\"):null})},S={block:!1,justified:!1,vertical:!1},M=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.block,o=t.justified,a=t.vertical,r=t.className,i=(0,u.default)(t,[\"block\",\"justified\",\"vertical\",\"className\"]),s=(0,O.splitBsProps)(i),d=s[0],f=s[1],c=(0,l.default)({},(0,O.getClassSet)(d),(e={},e[(0,O.prefix)(d)]=!a,e[(0,O.prefix)(d,\"vertical\")]=a,e[(0,O.prefix)(d,\"justified\")]=o,e[(0,O.prefix)(x.default.defaultProps,\"block\")]=n,e));return y.default.createElement(\"div\",(0,l.default)({},f,{className:(0,m.default)(r,c)}))},t}(y.default.Component);M.propTypes=N,M.defaultProps=S,t.default=(0,O.bsClass)(\"btn-group\",M),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(14),C=o(_),E=n(181),x=o(E),O={direction:g.default.oneOf([\"prev\",\"next\"]),onAnimateOutEnd:g.default.func,active:g.default.bool,animateIn:g.default.bool,animateOut:g.default.bool,index:g.default.number},N={active:!1,animateIn:!1,animateOut:!1},S=function(e){function t(n,o){(0,s.default)(this,t);var a=(0,f.default)(this,e.call(this,n,o));return a.handleAnimateOutEnd=a.handleAnimateOutEnd.bind(a),a.state={direction:null},a.isUnmounted=!1,a}return(0,p.default)(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.active!==e.active&&this.setState({direction:null})},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props.active,o=e.active;!n&&o&&x.default.addEndEventListener(C.default.findDOMNode(this),this.handleAnimateOutEnd),n!==o&&setTimeout(function(){return t.startAnimation()},20)},t.prototype.componentWillUnmount=function(){this.isUnmounted=!0},t.prototype.handleAnimateOutEnd=function(){this.isUnmounted||this.props.onAnimateOutEnd&&this.props.onAnimateOutEnd(this.props.index)},t.prototype.startAnimation=function(){this.isUnmounted||this.setState({direction:\"prev\"===this.props.direction?\"right\":\"left\"})},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.active,o=e.animateIn,a=e.animateOut,r=e.className,i=(0,u.default)(e,[\"direction\",\"active\",\"animateIn\",\"animateOut\",\"className\"]);delete i.onAnimateOutEnd,delete i.index;var s={item:!0,active:n&&!o||a};return t&&n&&o&&(s[t]=!0),this.state.direction&&(o||a)&&(s[this.state.direction]=!0),y.default.createElement(\"div\",(0,l.default)({},i,{className:(0,m.default)(r,s)}))},t}(y.default.Component);S.propTypes=O,S.defaultProps=N,t.default=S,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var l=n(2),r=a(l),u=n(4),i=a(u),s=n(3),d=a(s),f=n(9),c=o(f),p=n(1),h=a(p),m={label:c.string.isRequired,onClick:c.func},v=function(e){function t(){return(0,r.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.onClick;return h.default.createElement(\"button\",{type:\"button\",className:\"close\",onClick:n},h.default.createElement(\"span\",{\"aria-hidden\":\"true\"},\"×\"),h.default.createElement(\"span\",{className:\"sr-only\"},t))},t}(h.default.Component);v.propTypes=m,t.default=v,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(1),m=o(h),v=n(9),y=o(v),b=n(7),g=o(b),_=n(32),C=o(_),E=n(16),x=o(E),O=n(8),N={noCaret:y.default.bool,open:y.default.bool,title:y.default.string,useAnchor:y.default.bool},S={open:!1,useAnchor:!1,bsRole:\"toggle\"},M=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.noCaret,n=e.open,o=e.useAnchor,a=e.bsClass,r=e.className,i=e.children,s=(0,u.default)(e,[\"noCaret\",\"open\",\"useAnchor\",\"bsClass\",\"className\",\"children\"]);delete s.bsRole;var d=o?x.default:C.default,f=!t;return m.default.createElement(d,(0,l.default)({},s,{role:\"button\",className:(0,g.default)(r,a),\"aria-haspopup\":!0,\"aria-expanded\":n}),i||s.title,f&&\" \",f&&m.default.createElement(\"span\",{className:\"caret\"}))},t}(m.default.Component);M.propTypes=N,M.defaultProps=S,t.default=(0,O.bsClass)(\"dropdown-toggle\",M),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(8),x={fluid:g.default.bool,componentClass:C.default},O={componentClass:\"div\",fluid:!1},N=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.fluid,n=e.componentClass,o=e.className,a=(0,u.default)(e,[\"fluid\",\"componentClass\",\"className\"]),r=(0,E.splitBsProps)(a),i=r[0],s=r[1],d=(0,E.prefix)(i,t&&\"fluid\");return y.default.createElement(n,(0,l.default)({},s,{className:(0,m.default)(o,d)}))},t}(y.default.Component);N.propTypes=x,N.defaultProps=O,t.default=(0,E.bsClass)(\"container\",N),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(25),l=o(a),r=n(5),u=o(r),i=n(6),s=o(i),d=n(2),f=o(d),c=n(4),p=o(c),h=n(3),m=o(h),v=n(7),y=o(v),b=n(1),g=o(b),_=n(9),C=o(_),E=n(8),x=n(12),O={active:C.default.any,disabled:C.default.any,header:C.default.node,listItem:C.default.bool,onClick:C.default.func,href:C.default.string,type:C.default.string},N={listItem:!1},S=function(e){function t(){return(0,f.default)(this,t),(0,p.default)(this,e.apply(this,arguments))}return(0,m.default)(t,e),t.prototype.renderHeader=function(e,t){return g.default.isValidElement(e)?(0,b.cloneElement)(e,{className:(0,y.default)(e.props.className,t)}):g.default.createElement(\"h4\",{className:t},e)},t.prototype.render=function(){var e=this.props,t=e.active,n=e.disabled,o=e.className,a=e.header,l=e.listItem,r=e.children,i=(0,s.default)(e,[\"active\",\"disabled\",\"className\",\"header\",\"listItem\",\"children\"]),d=(0,E.splitBsProps)(i),f=d[0],c=d[1],p=(0,u.default)({},(0,E.getClassSet)(f),{active:t,disabled:n}),h=void 0;return c.href?h=\"a\":c.onClick?(h=\"button\",c.type=c.type||\"button\"):h=l?\"li\":\"span\",c.className=(0,y.default)(o,p),a?g.default.createElement(h,c,this.renderHeader(a,(0,E.prefix)(f,\"heading\")),g.default.createElement(\"p\",{className:(0,E.prefix)(f,\"text\")},r)):g.default.createElement(h,c,r)},t}(g.default.Component);S.propTypes=O,S.defaultProps=N,t.default=(0,E.bsClass)(\"list-group-item\",(0,E.bsStyles)((0,l.default)(x.State),S)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"div\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"modal-body\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"div\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"modal-footer\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C=n(11),E=o(C),x=n(79),O=o(x),N={closeLabel:g.default.string,closeButton:g.default.bool,onHide:g.default.func},S={closeLabel:\"Close\",closeButton:!1},M={$bs_modal:g.default.shape({onHide:g.default.func})},T=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.closeLabel,n=e.closeButton,o=e.onHide,a=e.className,r=e.children,i=(0,u.default)(e,[\"closeLabel\",\"closeButton\",\"onHide\",\"className\",\"children\"]),s=this.context.$bs_modal,d=(0,_.splitBsProps)(i),f=d[0],c=d[1],p=(0,_.getClassSet)(f);return y.default.createElement(\"div\",(0,l.default)({},c,{className:(0,m.default)(a,p)}),n&&y.default.createElement(O.default,{label:t,onClick:(0,E.default)(s&&s.onHide,o)}),r)},t}(y.default.Component);T.propTypes=N,T.defaultProps=S,T.contextTypes=M,t.default=(0,_.bsClass)(\"modal-header\",T),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"h4\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"modal-title\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(73),y=o(v),b=n(1),g=o(b),_=n(9),C=o(_),E=n(14),x=o(E),O=n(46),N=o(O),S=n(15),M=(o(S),n(8)),T=n(11),w=o(T),P=n(13),k=o(P),A={activeKey:C.default.any,activeHref:C.default.string,stacked:C.default.bool,justified:(0,N.default)(C.default.bool,function(e){var t=e.justified,n=e.navbar;return t&&n?Error(\"justified navbar `Nav`s are not supported\"):null}),onSelect:C.default.func,role:C.default.string,navbar:C.default.bool,pullRight:C.default.bool,pullLeft:C.default.bool},I={justified:!1,pullRight:!1,pullLeft:!1,stacked:!1},R={$bs_navbar:C.default.shape({bsClass:C.default.string,onSelect:C.default.func}),$bs_tabContainer:C.default.shape({activeKey:C.default.any,onSelect:C.default.func.isRequired,getTabId:C.default.func.isRequired,getPaneId:C.default.func.isRequired})},j=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.componentDidUpdate=function(){var e=this;if(this._needsRefocus){this._needsRefocus=!1;var t=this.props.children,n=this.getActiveProps(),o=n.activeKey,a=n.activeHref,l=k.default.find(t,function(t){return e.isActive(t,o,a)}),r=k.default.toArray(t),u=r.indexOf(l),i=x.default.findDOMNode(this).children,s=i&&i[u];s&&s.firstChild&&s.firstChild.focus()}},t.prototype.handleTabKeyDown=function(e,t){var n=void 0;switch(t.keyCode){case y.default.codes.left:case y.default.codes.up:n=this.getNextActiveChild(-1);break;case y.default.codes.right:case y.default.codes.down:n=this.getNextActiveChild(1);break;default:return}t.preventDefault(),e&&n&&null!=n.props.eventKey&&e(n.props.eventKey),this._needsRefocus=!0},t.prototype.getNextActiveChild=function(e){var t=this,n=this.props.children,o=n.filter(function(e){return null!=e.props.eventKey&&!e.props.disabled}),a=this.getActiveProps(),l=a.activeKey,r=a.activeHref,u=k.default.find(n,function(e){return t.isActive(e,l,r)}),i=o.indexOf(u);if(i===-1)return o[0];var s=i+e,d=o.length;return s>=d?s=0:s<0&&(s=d-1),o[s]},t.prototype.getActiveProps=function(){var e=this.context.$bs_tabContainer;return e?e:this.props},t.prototype.isActive=function(e,t,n){var o=e.props;return!!(o.active||null!=t&&o.eventKey===t||n&&o.href===n)||o.active},t.prototype.getTabProps=function(e,t,n,o,a){var l=this;if(!t&&\"tablist\"!==n)return null;var r=e.props,u=r.id,i=r[\"aria-controls\"],s=r.eventKey,d=r.role,f=r.onKeyDown,c=r.tabIndex;return t&&(u=t.getTabId(s),i=t.getPaneId(s)),\"tablist\"===n&&(d=d||\"tab\",f=(0,w.default)(function(e){return l.handleTabKeyDown(a,e)},f),c=o?c:-1),{id:u,role:d,onKeyDown:f,\"aria-controls\":i,tabIndex:c}},t.prototype.render=function(){var e,t=this,n=this.props,o=n.stacked,a=n.justified,r=n.onSelect,i=n.role,s=n.navbar,d=n.pullRight,f=n.pullLeft,c=n.className,p=n.children,h=(0,u.default)(n,[\"stacked\",\"justified\",\"onSelect\",\"role\",\"navbar\",\"pullRight\",\"pullLeft\",\"className\",\"children\"]),v=this.context.$bs_tabContainer,y=i||(v?\"tablist\":null),_=this.getActiveProps(),C=_.activeKey,E=_.activeHref;delete h.activeKey,delete h.activeHref;var x=(0,M.splitBsProps)(h),O=x[0],N=x[1],S=(0,l.default)({},(0,M.getClassSet)(O),(e={},e[(0,M.prefix)(O,\"stacked\")]=o,e[(0,M.prefix)(O,\"justified\")]=a,e)),T=null!=s?s:this.context.$bs_navbar,P=void 0,A=void 0;if(T){var I=this.context.$bs_navbar||{bsClass:\"navbar\"};S[(0,M.prefix)(I,\"nav\")]=!0,A=(0,M.prefix)(I,\"right\"),P=(0,M.prefix)(I,\"left\")}else A=\"pull-right\",P=\"pull-left\";return S[A]=d,S[P]=f,g.default.createElement(\"ul\",(0,l.default)({},N,{role:y,className:(0,m.default)(c,S)}),k.default.map(p,function(e){var n=t.isActive(e,C,E),o=(0,w.default)(e.props.onSelect,r,T&&T.onSelect,v&&v.onSelect);return(0,b.cloneElement)(e,(0,l.default)({},t.getTabProps(e,v,y,n,o),{active:n,activeKey:C,activeHref:E,onSelect:o}))}))},t}(g.default.Component);j.propTypes=A,j.defaultProps=I,j.contextTypes=R,t.default=(0,M.bsClass)(\"nav\",(0,M.bsStyles)([\"tabs\",\"pills\"],j)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(16),C=o(_),E=n(11),x=o(E),O={active:g.default.bool,disabled:g.default.bool,role:g.default.string,href:g.default.string,onClick:g.default.func,onSelect:g.default.func,eventKey:g.default.any},N={active:!1,disabled:!1},S=function(e){function t(n,o){(0,s.default)(this,t);var a=(0,f.default)(this,e.call(this,n,o));return a.handleClick=a.handleClick.bind(a),a}return(0,p.default)(t,e),t.prototype.handleClick=function(e){this.props.onSelect&&(e.preventDefault(),this.props.disabled||this.props.onSelect(this.props.eventKey,e))},t.prototype.render=function(){var e=this.props,t=e.active,n=e.disabled,o=e.onClick,a=e.className,r=e.style,i=(0,u.default)(e,[\"active\",\"disabled\",\"onClick\",\"className\",\"style\"]);return delete i.onSelect,delete i.eventKey,delete i.activeKey,delete i.activeHref,i.role?\"tab\"===i.role&&(i[\"aria-selected\"]=t):\"#\"===i.href&&(i.role=\"button\"),y.default.createElement(\"li\",{role:\"presentation\",className:(0,m.default)(a,{active:t,disabled:n}),style:r},y.default.createElement(C.default,(0,l.default)({},i,{disabled:n,onClick:(0,x.default)(o,this.handleClick)})))},t}(y.default.Component);S.propTypes=O,S.defaultProps=N,t.default=S,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C={$bs_navbar:g.default.shape({bsClass:g.default.string})},E=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,o=(0,u.default)(e,[\"className\",\"children\"]),a=this.context.$bs_navbar||{bsClass:\"navbar\"},r=(0,_.prefix)(a,\"brand\");return y.default.isValidElement(n)?y.default.cloneElement(n,{className:(0,m.default)(n.props.className,t,r)}):y.default.createElement(\"span\",(0,l.default)({},o,{className:(0,m.default)(t,r)}),n)},t}(y.default.Component);E.contextTypes=C,t.default=E,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(6),l=o(a),r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(5),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(253),C=o(_),E=n(10),x=o(E),O=n(40),N=o(O),S=(0,p.default)({},C.default.propTypes,{show:g.default.bool,rootClose:g.default.bool,onHide:g.default.func,animation:g.default.oneOfType([g.default.bool,x.default]),onEnter:g.default.func,onEntering:g.default.func,onEntered:g.default.func,onExit:g.default.func,onExiting:g.default.func,onExited:g.default.func,placement:g.default.oneOf([\"top\",\"right\",\"bottom\",\"left\"])}),M={animation:N.default,rootClose:!1,show:!1,placement:\"right\"},T=function(e){function t(){return(0,u.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.animation,n=e.children,o=(0,l.default)(e,[\"animation\",\"children\"]),a=t===!0?N.default:t||null,r=void 0;return r=a?n:(0,v.cloneElement)(n,{className:(0,m.default)(n.props.className,\"in\")}),y.default.createElement(C.default,(0,p.default)({},o,{transition:a}),r)},t}(y.default.Component);T.propTypes=S,T.defaultProps=M,t.default=T,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(16),C=o(_),E=n(11),x=o(E),O={disabled:g.default.bool,previous:g.default.bool,next:g.default.bool,onClick:g.default.func,onSelect:g.default.func,eventKey:g.default.any},N={disabled:!1,previous:!1,next:!1},S=function(e){function t(n,o){(0,s.default)(this,t);var a=(0,f.default)(this,e.call(this,n,o));return a.handleSelect=a.handleSelect.bind(a),a}return(0,p.default)(t,e),t.prototype.handleSelect=function(e){var t=this.props,n=t.disabled,o=t.onSelect,a=t.eventKey;(o||n)&&e.preventDefault(),n||o&&o(a,e)},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.previous,o=e.next,a=e.onClick,r=e.className,i=e.style,s=(0,u.default)(e,[\"disabled\",\"previous\",\"next\",\"onClick\",\"className\",\"style\"]);return delete s.onSelect,delete s.eventKey,y.default.createElement(\"li\",{className:(0,m.default)(r,{disabled:t,previous:n,next:o}),style:i},y.default.createElement(C.default,(0,l.default)({},s,{disabled:t,onClick:(0,x.default)(a,this.handleSelect)})))},t}(y.default.Component);S.propTypes=O,S.defaultProps=N,t.default=S,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(16),x=o(E),O=n(11),N=o(O),S={componentClass:C.default,className:g.default.string,eventKey:g.default.any,onSelect:g.default.func,disabled:g.default.bool,active:g.default.bool,onClick:g.default.func},M={componentClass:x.default,active:!1,disabled:!1},T=function(e){function t(n,o){(0,s.default)(this,t);var a=(0,f.default)(this,e.call(this,n,o));return a.handleClick=a.handleClick.bind(a),a}return(0,p.default)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.disabled,o=t.onSelect,a=t.eventKey;n||o&&o(a,e)},t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.active,o=e.disabled,a=e.onClick,r=e.className,i=e.style,s=(0,u.default)(e,[\"componentClass\",\"active\",\"disabled\",\"onClick\",\"className\",\"style\"]);return t===x.default&&delete s.eventKey,delete s.onSelect,y.default.createElement(\"li\",{className:(0,m.default)(r,{active:n,disabled:o}),style:i},y.default.createElement(t,(0,l.default)({},s,{disabled:o,onClick:(0,N.default)(a,this.handleClick)})))},t}(y.default.Component);T.propTypes=S,T.defaultProps=M,t.default=T,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(96),u=o(r),i=n(6),s=o(i),d=n(2),f=o(d),c=n(4),p=o(c),h=n(3),m=o(h),v=n(7),y=o(v),b=n(1),g=o(b),_=n(9),C=o(_),E=n(8),x=n(11),O=o(x),N=n(13),S=o(N),M={accordion:C.default.bool,activeKey:C.default.any,defaultActiveKey:C.default.any,onSelect:C.default.func,role:C.default.string},T={accordion:!1},w=function(e){function t(n,o){(0,f.default)(this,t);var a=(0,p.default)(this,e.call(this,n,o));return a.handleSelect=a.handleSelect.bind(a),a.state={activeKey:n.defaultActiveKey},a}return(0,m.default)(t,e),t.prototype.handleSelect=function(e,t){t.preventDefault(),this.props.onSelect&&this.props.onSelect(e,t),this.state.activeKey===e&&(e=null),this.setState({activeKey:e})},t.prototype.render=function(){var e=this,t=this.props,n=t.accordion,o=t.activeKey,a=t.className,r=t.children,i=(0,s.default)(t,[\"accordion\",\"activeKey\",\"className\",\"children\"]),d=(0,E.splitBsPropsAndOmit)(i,[\"defaultActiveKey\",\"onSelect\"]),f=d[0],c=d[1],p=void 0;n&&(p=null!=o?o:this.state.activeKey,c.role=c.role||\"tablist\");var h=(0,E.getClassSet)(f);return g.default.createElement(\"div\",(0,l.default)({},c,{className:(0,y.default)(a,h)}),S.default.map(r,function(t){var o={bsStyle:t.props.bsStyle||f.bsStyle};return n&&(0,u.default)(o,{headerRole:\"tab\",panelRole:\"tabpanel\",collapsible:!0,expanded:t.props.eventKey===p,onSelect:(0,O.default)(e.handleSelect,t.props.onSelect)}),(0,b.cloneElement)(t,o)}))},t}(g.default.Component);w.propTypes=M,w.defaultProps=T,t.default=(0,E.bsClass)(\"panel-group\",w),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(15),x=(o(E),n(8)),O=n(11),N=o(O),S=n(40),M=o(S),T={eventKey:g.default.any,animation:g.default.oneOfType([g.default.bool,C.default]),id:g.default.string,\"aria-labelledby\":g.default.string,bsClass:g.default.string,onEnter:g.default.func,onEntering:g.default.func,onEntered:g.default.func,onExit:g.default.func,onExiting:g.default.func,onExited:g.default.func,mountOnEnter:g.default.bool,unmountOnExit:g.default.bool},w={$bs_tabContainer:g.default.shape({getTabId:g.default.func,getPaneId:g.default.func}),$bs_tabContent:g.default.shape({bsClass:g.default.string,animation:g.default.oneOfType([g.default.bool,C.default]),activeKey:g.default.any,mountOnEnter:g.default.bool,unmountOnExit:g.default.bool,onPaneEnter:g.default.func.isRequired,onPaneExited:g.default.func.isRequired,exiting:g.default.bool.isRequired})},P={$bs_tabContainer:g.default.oneOf([null])},k=function(e){function t(n,o){(0,s.default)(this,t);var a=(0,f.default)(this,e.call(this,n,o));return a.handleEnter=a.handleEnter.bind(a),a.handleExited=a.handleExited.bind(a),a.in=!1,a}return(0,p.default)(t,e),t.prototype.getChildContext=function(){return{$bs_tabContainer:null}},t.prototype.componentDidMount=function(){this.shouldBeIn()&&this.handleEnter()},t.prototype.componentDidUpdate=function(){this.in?this.shouldBeIn()||this.handleExited():this.shouldBeIn()&&this.handleEnter()},t.prototype.componentWillUnmount=function(){this.in&&this.handleExited()},t.prototype.handleEnter=function(){var e=this.context.$bs_tabContent;e&&(this.in=e.onPaneEnter(this,this.props.eventKey))},t.prototype.handleExited=function(){var e=this.context.$bs_tabContent;e&&(e.onPaneExited(this),this.in=!1)},t.prototype.getAnimation=function(){if(null!=this.props.animation)return this.props.animation;var e=this.context.$bs_tabContent;return e&&e.animation},t.prototype.isActive=function(){var e=this.context.$bs_tabContent,t=e&&e.activeKey;return this.props.eventKey===t},t.prototype.shouldBeIn=function(){return this.getAnimation()&&this.isActive()},t.prototype.render=function(){var e=this.props,t=e.eventKey,n=e.className,o=e.onEnter,a=e.onEntering,r=e.onEntered,i=e.onExit,s=e.onExiting,d=e.onExited,f=e.mountOnEnter,c=e.unmountOnExit,p=(0,u.default)(e,[\"eventKey\",\"className\",\"onEnter\",\"onEntering\",\"onEntered\",\"onExit\",\"onExiting\",\"onExited\",\"mountOnEnter\",\"unmountOnExit\"]),h=this.context,v=h.$bs_tabContent,b=h.$bs_tabContainer,g=(0,x.splitBsPropsAndOmit)(p,[\"animation\"]),_=g[0],C=g[1],E=this.isActive(),O=this.getAnimation(),S=null!=f?f:v&&v.mountOnEnter,T=null!=c?c:v&&v.unmountOnExit;if(!E&&!O&&T)return null;var w=O===!0?M.default:O||null;v&&(_.bsClass=(0,x.prefix)(v,\"pane\"));var P=(0,l.default)({},(0,x.getClassSet)(_),{active:E});b&&(C.id=b.getPaneId(t),C[\"aria-labelledby\"]=b.getTabId(t));var k=y.default.createElement(\"div\",(0,l.default)({},C,{role:\"tabpanel\",\"aria-hidden\":!E,className:(0,m.default)(n,P)}));if(w){var A=v&&v.exiting;return y.default.createElement(w,{in:E&&!A,onEnter:(0,N.default)(this.handleEnter,o),onEntering:a,onEntered:r,onExit:i,onExiting:s,onExited:(0,N.default)(this.handleExited,d),mountOnEnter:S,unmountOnExit:T},k)}return k},t}(y.default.Component);k.propTypes=T,k.contextTypes=w,k.childContextTypes=P,t.default=(0,x.bsClass)(\"tab-pane\",k),e.exports=t.default},function(e,t){\"use strict\";function n(e){return\"\"+e.charAt(0).toUpperCase()+e.slice(1)}t.__esModule=!0,t.default=n,e.exports=t.default},function(e,t,n){e.exports={default:n(190),__esModule:!0}},function(e,t,n){e.exports={default:n(192),__esModule:!0}},function(e,t,n){var o=n(34),a=n(20).document,l=o(a)&&o(a.createElement);e.exports=function(e){return l?a.createElement(e):{}}},function(e,t,n){e.exports=!n(27)&&!n(33)(function(){return 7!=Object.defineProperty(n(98)(\"div\"),\"a\",{get:function(){return 7}}).a})},function(e,t,n){var o=n(56);e.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(e){return\"String\"==o(e)?e.split(\"\"):Object(e)}},function(e,t,n){\"use strict\";var o=n(60),a=n(19),l=n(106),r=n(28),u=n(23),i=n(35),s=n(207),d=n(63),f=n(215),c=n(18)(\"iterator\"),p=!([].keys&&\"next\"in[].keys()),h=\"@@iterator\",m=\"keys\",v=\"values\",y=function(){return this};e.exports=function(e,t,n,b,g,_,C){s(n,t,b);var E,x,O,N=function(e){if(!p&&e in w)return w[e];switch(e){case m:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+\" Iterator\",M=g==v,T=!1,w=e.prototype,P=w[c]||w[h]||g&&w[g],k=P||N(g),A=g?M?N(\"entries\"):k:void 0,I=\"Array\"==t?w.entries||P:P;if(I&&(O=f(I.call(new e)),O!==Object.prototype&&(d(O,S,!0),o||u(O,c)||r(O,c,y))),M&&P&&P.name!==v&&(T=!0,k=function(){return P.call(this)}),o&&!C||!p&&!T&&w[c]||r(w,c,k),i[t]=k,i[S]=y,g)if(E={values:M?k:N(v),keys:_?k:N(m),entries:A},C)for(x in E)x in w||l(w,x,E[x]);else a(a.P+a.F*(p||T),t,E);return E}},function(e,t,n){var o=n(36),a=n(37),l=n(21),r=n(68),u=n(23),i=n(99),s=Object.getOwnPropertyDescriptor;t.f=n(27)?s:function(e,t){if(e=l(e),t=r(t,!0),i)try{return s(e,t)}catch(e){}if(u(e,t))return a(!o.f.call(e,t),e[t])}},function(e,t,n){var o=n(104),a=n(59).concat(\"length\",\"prototype\");t.f=Object.getOwnPropertyNames||function(e){return o(e,a)}},function(e,t,n){var o=n(23),a=n(21),l=n(199)(!1),r=n(64)(\"IE_PROTO\");e.exports=function(e,t){var n,u=a(e),i=0,s=[];for(n in u)n!=r&&o(u,n)&&s.push(n);for(;t.length>i;)o(u,n=t[i++])&&(~l(s,n)||s.push(n));return s}},function(e,t,n){var o=n(29),a=n(21),l=n(36).f;e.exports=function(e){return function(t){for(var n,r=a(t),u=o(r),i=u.length,s=0,d=[];i>s;)l.call(r,n=u[s++])&&d.push(e?[n,r[n]]:r[n]);return d}}},function(e,t,n){e.exports=n(28)},function(e,t,n){var o=n(66),a=Math.min;e.exports=function(e){return e>0?a(o(e),9007199254740991):0}},function(e,t,n){\"use strict\";var o=n(217)(!0);n(101)(String,\"String\",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.default)();try{return e.activeElement}catch(e){}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=a;var l=n(30),r=o(l);e.exports=t.default},function(e,t){\"use strict\";function n(e,t){return e.classList?!!t&&e.classList.contains(t):(\" \"+e.className+\" \").indexOf(\" \"+t+\" \")!==-1}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=(0,d.default)(e),n=(0,i.default)(t),o=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(t)return(0,r.default)(o,e)?(void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect()),a={top:a.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),left:a.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,\nheight:(null==a.height?e.offsetHeight:a.height)||0}):a}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=a;var l=n(31),r=o(l),u=n(44),i=o(u),s=n(30),d=o(s);e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=(0,r.default)(e);return void 0===t?n?\"pageYOffset\"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop:void(n?n.scrollTo(\"pageXOffset\"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=a;var l=n(44),r=o(l);e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(){for(var e=document.createElement(\"div\").style,t={O:function(e){return\"o\"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return\"webkit\"+e},ms:function(e){return\"MS\"+e}},n=Object.keys(t),o=void 0,a=void 0,l=\"\",r=0;r=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function l(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function r(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function u(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(){}Object.defineProperty(t,\"__esModule\",{value:!0}),t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var s=Object.assign||function(e){for(var t=1;te.clientHeight}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=r;var u=n(44),i=o(u),s=n(30),d=o(s);e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(1),p=o(c),h=n(93),m=o(h),v=function(e){function t(){return(0,u.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){return p.default.createElement(m.default,(0,l.default)({},this.props,{accordion:!0}),this.props.children)},t}(p.default.Component);t.default=v,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(25),l=o(a),r=n(5),u=o(r),i=n(6),s=o(i),d=n(2),f=o(d),c=n(4),p=o(c),h=n(3),m=o(h),v=n(7),y=o(v),b=n(1),g=o(b),_=n(9),C=o(_),E=n(8),x=n(12),O=n(79),N=o(O),S={onDismiss:C.default.func,closeLabel:C.default.string},M={closeLabel:\"Close alert\"},T=function(e){function t(){return(0,f.default)(this,t),(0,p.default)(this,e.apply(this,arguments))}return(0,m.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.onDismiss,o=t.closeLabel,a=t.className,l=t.children,r=(0,s.default)(t,[\"onDismiss\",\"closeLabel\",\"className\",\"children\"]),i=(0,E.splitBsProps)(r),d=i[0],f=i[1],c=!!n,p=(0,u.default)({},(0,E.getClassSet)(d),(e={},e[(0,E.prefix)(d,\"dismissable\")]=c,e));return g.default.createElement(\"div\",(0,u.default)({},f,{role:\"alert\",className:(0,y.default)(a,p)}),c&&g.default.createElement(N.default,{onClick:n,label:o}),l)},t}(g.default.Component);T.propTypes=S,T.defaultProps=M,t.default=(0,E.bsStyles)((0,l.default)(x.State),x.State.INFO,(0,E.bsClass)(\"alert\",T)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C={pullRight:g.default.bool},E={pullRight:!1},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.hasContent=function(e){var t=!1;return y.default.Children.forEach(e,function(e){t||(e||0===e)&&(t=!0)}),t},t.prototype.render=function(){var e=this.props,t=e.pullRight,n=e.className,o=e.children,a=(0,u.default)(e,[\"pullRight\",\"className\",\"children\"]),r=(0,_.splitBsProps)(a),i=r[0],s=r[1],d=(0,l.default)({},(0,_.getClassSet)(i),{\"pull-right\":t,hidden:!this.hasContent(o)});return y.default.createElement(\"span\",(0,l.default)({},s,{className:(0,m.default)(n,d)}),o)},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"badge\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(76),g=o(b),_=n(8),C=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,_.splitBsProps)(n),a=o[0],r=o[1],i=(0,_.getClassSet)(a);return y.default.createElement(\"ol\",(0,l.default)({},r,{role:\"navigation\",\"aria-label\":\"breadcrumbs\",className:(0,m.default)(t,i)}))},t}(y.default.Component);C.Item=g.default,t.default=(0,_.bsClass)(\"breadcrumb\",C),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(32),g=o(b),_=n(8),C=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,_.splitBsProps)(n),a=o[0],r=o[1],i=(0,_.getClassSet)(a);return y.default.createElement(\"div\",(0,l.default)({},r,{role:\"toolbar\",className:(0,m.default)(t,i)}))},t}(y.default.Component);t.default=(0,_.bsClass)(\"btn-toolbar\",(0,_.bsSizes)(g.default.SIZES,C)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(127),C=o(_),E=n(78),x=o(E),O=n(51),N=o(O),S=n(16),M=o(S),T=n(8),w=n(13),P=o(w),k={slide:g.default.bool,indicators:g.default.bool,interval:g.default.number,controls:g.default.bool,pauseOnHover:g.default.bool,wrap:g.default.bool,onSelect:g.default.func,onSlideEnd:g.default.func,activeIndex:g.default.number,defaultActiveIndex:g.default.number,direction:g.default.oneOf([\"prev\",\"next\"]),prevIcon:g.default.node,prevLabel:g.default.string,nextIcon:g.default.node,nextLabel:g.default.string},A={slide:!0,interval:5e3,pauseOnHover:!0,wrap:!0,indicators:!0,controls:!0,prevIcon:y.default.createElement(N.default,{glyph:\"chevron-left\"}),prevLabel:\"Previous\",nextIcon:y.default.createElement(N.default,{glyph:\"chevron-right\"}),nextLabel:\"Next\"},I=function(e){function t(n,o){(0,s.default)(this,t);var a=(0,f.default)(this,e.call(this,n,o));a.handleMouseOver=a.handleMouseOver.bind(a),a.handleMouseOut=a.handleMouseOut.bind(a),a.handlePrev=a.handlePrev.bind(a),a.handleNext=a.handleNext.bind(a),a.handleItemAnimateOutEnd=a.handleItemAnimateOutEnd.bind(a);var l=n.defaultActiveIndex;return a.state={activeIndex:null!=l?l:0,previousActiveIndex:null,direction:null},a.isUnmounted=!1,a}return(0,p.default)(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.getActiveIndex();null!=e.activeIndex&&e.activeIndex!==t&&(clearTimeout(this.timeout),this.setState({previousActiveIndex:t,direction:null!=e.direction?e.direction:this.getDirection(t,e.activeIndex)}))},t.prototype.componentDidMount=function(){this.waitForNext()},t.prototype.componentWillUnmount=function(){clearTimeout(this.timeout),this.isUnmounted=!0},t.prototype.handleMouseOver=function(){this.props.pauseOnHover&&this.pause()},t.prototype.handleMouseOut=function(){this.isPaused&&this.play()},t.prototype.handlePrev=function(e){var t=this.getActiveIndex()-1;if(t<0){if(!this.props.wrap)return;t=P.default.count(this.props.children)-1}this.select(t,e,\"prev\")},t.prototype.handleNext=function(e){var t=this.getActiveIndex()+1,n=P.default.count(this.props.children);if(t>n-1){if(!this.props.wrap)return;t=0}this.select(t,e,\"next\")},t.prototype.handleItemAnimateOutEnd=function(){var e=this;this.setState({previousActiveIndex:null,direction:null},function(){e.waitForNext(),e.props.onSlideEnd&&e.props.onSlideEnd()})},t.prototype.getActiveIndex=function(){var e=this.props.activeIndex;return null!=e?e:this.state.activeIndex},t.prototype.getDirection=function(e,t){return e===t?null:e>t?\"prev\":\"next\"},t.prototype.select=function(e,t,n){if(clearTimeout(this.timeout),!this.isUnmounted){var o=this.props.slide?this.getActiveIndex():null;n=n||this.getDirection(o,e);var a=this.props.onSelect;if(a&&(a.length>1?(t?(t.persist(),t.direction=n):t={direction:n},a(e,t)):a(e)),null==this.props.activeIndex&&e!==o){if(null!=this.state.previousActiveIndex)return;this.setState({activeIndex:e,previousActiveIndex:o,direction:n})}}},t.prototype.waitForNext=function(){var e=this.props,t=e.slide,n=e.interval,o=e.activeIndex;!this.isPaused&&t&&n&&null==o&&(this.timeout=setTimeout(this.handleNext,n))},t.prototype.pause=function(){this.isPaused=!0,clearTimeout(this.timeout)},t.prototype.play=function(){this.isPaused=!1,this.waitForNext()},t.prototype.renderIndicators=function(e,t,n){var o=this,a=[];return P.default.forEach(e,function(e,n){a.push(y.default.createElement(\"li\",{key:n,className:n===t?\"active\":null,onClick:function(e){return o.select(n,e)}}),\" \")}),y.default.createElement(\"ol\",{className:(0,T.prefix)(n,\"indicators\")},a)},t.prototype.renderControls=function(e){var t=e.wrap,n=e.children,o=e.activeIndex,a=e.prevIcon,l=e.nextIcon,r=e.bsProps,u=e.prevLabel,i=e.nextLabel,s=(0,T.prefix)(r,\"control\"),d=P.default.count(n);return[(t||0!==o)&&y.default.createElement(M.default,{key:\"prev\",className:(0,m.default)(s,\"left\"),onClick:this.handlePrev},a,u&&y.default.createElement(\"span\",{className:\"sr-only\"},u)),(t||o!==d-1)&&y.default.createElement(M.default,{key:\"next\",className:(0,m.default)(s,\"right\"),onClick:this.handleNext},l,i&&y.default.createElement(\"span\",{className:\"sr-only\"},i))]},t.prototype.render=function(){var e=this,t=this.props,n=t.slide,o=t.indicators,a=t.controls,r=t.wrap,i=t.prevIcon,s=t.prevLabel,d=t.nextIcon,f=t.nextLabel,c=t.className,p=t.children,h=(0,u.default)(t,[\"slide\",\"indicators\",\"controls\",\"wrap\",\"prevIcon\",\"prevLabel\",\"nextIcon\",\"nextLabel\",\"className\",\"children\"]),b=this.state,g=b.previousActiveIndex,_=b.direction,C=(0,T.splitBsPropsAndOmit)(h,[\"interval\",\"pauseOnHover\",\"onSelect\",\"onSlideEnd\",\"activeIndex\",\"defaultActiveIndex\",\"direction\"]),E=C[0],x=C[1],O=this.getActiveIndex(),N=(0,l.default)({},(0,T.getClassSet)(E),{slide:n});return y.default.createElement(\"div\",(0,l.default)({},x,{className:(0,m.default)(c,N),onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut}),o&&this.renderIndicators(p,O,E),y.default.createElement(\"div\",{className:(0,T.prefix)(E,\"inner\")},P.default.map(p,function(t,o){var a=o===O,l=n&&o===g;return(0,v.cloneElement)(t,{active:a,index:o,animateOut:l,animateIn:a&&null!=g&&n,direction:_,onAnimateOutEnd:l?e.handleItemAnimateOutEnd:null})})),a&&this.renderControls({wrap:r,children:p,activeIndex:O,prevIcon:i,prevLabel:s,nextIcon:d,nextLabel:f,bsProps:E}))},t}(y.default.Component);I.propTypes=k,I.defaultProps=A,I.Caption=C.default,I.Item=x.default,t.default=(0,T.bsClass)(\"carousel\",I),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"div\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"carousel-caption\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(15),C=(o(_),n(8)),E={inline:g.default.bool,disabled:g.default.bool,validationState:g.default.oneOf([\"success\",\"warning\",\"error\",null]),inputRef:g.default.func},x={inline:!1,disabled:!1},O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,o=e.validationState,a=e.inputRef,r=e.className,i=e.style,s=e.children,d=(0,u.default)(e,[\"inline\",\"disabled\",\"validationState\",\"inputRef\",\"className\",\"style\",\"children\"]),f=(0,C.splitBsProps)(d),c=f[0],p=f[1],h=y.default.createElement(\"input\",(0,l.default)({},p,{ref:a,type:\"checkbox\",disabled:n}));if(t){var v,b=(v={},v[(0,C.prefix)(c,\"inline\")]=!0,v.disabled=n,v);return y.default.createElement(\"label\",{className:(0,m.default)(r,b),style:i},h,s)}var g=(0,l.default)({},(0,C.getClassSet)(c),{disabled:n});return o&&(g[\"has-\"+o]=!0),y.default.createElement(\"div\",{className:(0,m.default)(r,g),style:i},y.default.createElement(\"label\",null,h,s))},t}(y.default.Component);O.propTypes=E,O.defaultProps=x,t.default=(0,C.bsClass)(\"checkbox\",O),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(8),x=n(95),O=o(x),N=n(12),S={componentClass:C.default,visibleXsBlock:g.default.bool,visibleSmBlock:g.default.bool,visibleMdBlock:g.default.bool,visibleLgBlock:g.default.bool},M={componentClass:\"div\"},T=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,E.splitBsProps)(o),r=a[0],i=a[1],s=(0,E.getClassSet)(r);return N.DEVICE_SIZES.forEach(function(e){var t=\"visible\"+(0,O.default)(e)+\"Block\";i[t]&&(s[\"visible-\"+e+\"-block\"]=!0),delete i[t]}),y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);T.propTypes=S,T.defaultProps=M,t.default=(0,E.bsClass)(\"clearfix\",T),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(8),x=n(12),O={componentClass:C.default,xs:g.default.number,sm:g.default.number,md:g.default.number,lg:g.default.number,xsHidden:g.default.bool,smHidden:g.default.bool,mdHidden:g.default.bool,lgHidden:g.default.bool,xsOffset:g.default.number,smOffset:g.default.number,mdOffset:g.default.number,lgOffset:g.default.number,xsPush:g.default.number,smPush:g.default.number,mdPush:g.default.number,lgPush:g.default.number,xsPull:g.default.number,smPull:g.default.number,mdPull:g.default.number,lgPull:g.default.number},N={componentClass:\"div\"},S=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,E.splitBsProps)(o),r=a[0],i=a[1],s=[];return x.DEVICE_SIZES.forEach(function(e){function t(t,n){var o=\"\"+e+t,a=i[o];null!=a&&s.push((0,E.prefix)(r,\"\"+e+n+\"-\"+a)),delete i[o]}t(\"\",\"\"),t(\"Offset\",\"-offset\"),t(\"Push\",\"-push\"),t(\"Pull\",\"-pull\");var n=e+\"Hidden\";i[n]&&s.push(\"hidden-\"+e),delete i[n]}),y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);S.propTypes=O,S.defaultProps=N,t.default=(0,E.bsClass)(\"col\",S),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(15),C=(o(_),n(8)),E={htmlFor:g.default.string,srOnly:g.default.bool},x={srOnly:!1},O={$bs_formGroup:g.default.object},N=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,o=n.htmlFor,a=void 0===o?t:o,r=n.srOnly,i=n.className,s=(0,u.default)(n,[\"htmlFor\",\"srOnly\",\"className\"]),d=(0,C.splitBsProps)(s),f=d[0],c=d[1],p=(0,l.default)({},(0,C.getClassSet)(f),{\"sr-only\":r});return y.default.createElement(\"label\",(0,l.default)({},c,{htmlFor:a,className:(0,m.default)(i,p)}))},t}(y.default.Component);N.propTypes=E,N.defaultProps=x,N.contextTypes=O,t.default=(0,C.bsClass)(\"control-label\",N),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(6),l=o(a),r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(5),p=o(c),h=n(1),m=o(h),v=n(9),y=o(v),b=n(39),g=o(b),_=n(41),C=o(_),E=(0,p.default)({},g.default.propTypes,{bsStyle:y.default.string,bsSize:y.default.string,title:y.default.node.isRequired,noCaret:y.default.bool,children:y.default.node}),x=function(e){function t(){return(0,u.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.bsSize,n=e.bsStyle,o=e.title,a=e.children,r=(0,l.default)(e,[\"bsSize\",\"bsStyle\",\"title\",\"children\"]),u=(0,C.default)(r,g.default.ControlledComponent),i=u[0],s=u[1];return m.default.createElement(g.default,(0,p.default)({},i,{bsSize:t,bsStyle:n}),m.default.createElement(g.default.Toggle,(0,p.default)({},s,{bsSize:t,bsStyle:n}),o),m.default.createElement(g.default.Menu,null,a))},t}(m.default.Component);x.propTypes=E,t.default=x,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(184),s=o(i),d=n(2),f=o(d),c=n(4),p=o(c),h=n(3),m=o(h),v=n(7),y=o(v),b=n(73),g=o(b),_=n(1),C=o(_),E=n(9),x=o(E),O=n(14),N=o(O),S=n(117),M=o(S),T=n(8),w=n(11),P=o(w),k=n(13),A=o(k),I={open:x.default.bool,pullRight:x.default.bool,onClose:x.default.func,labelledBy:x.default.oneOfType([x.default.string,x.default.number]),onSelect:x.default.func,rootCloseEvent:x.default.oneOf([\"click\",\"mousedown\"])},R={bsRole:\"menu\",pullRight:!1},j=function(e){function t(n){(0,f.default)(this,t);var o=(0,p.default)(this,e.call(this,n));return o.handleRootClose=o.handleRootClose.bind(o),o.handleKeyDown=o.handleKeyDown.bind(o),o}return(0,m.default)(t,e),t.prototype.handleRootClose=function(e){this.props.onClose(e,{source:\"rootClose\"})},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case g.default.codes.down:this.focusNext(),e.preventDefault();break;case g.default.codes.up:this.focusPrevious(),e.preventDefault();break;case g.default.codes.esc:case g.default.codes.tab:this.props.onClose(e,{source:\"keydown\"})}},t.prototype.getItemsAndActiveIndex=function(){var e=this.getFocusableMenuItems(),t=e.indexOf(document.activeElement);return{items:e,activeIndex:t}},t.prototype.getFocusableMenuItems=function(){var e=N.default.findDOMNode(this);return e?(0,s.default)(e.querySelectorAll('[tabIndex=\"-1\"]')):[]},t.prototype.focusNext=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeIndex;\nif(0!==t.length){var o=n===t.length-1?0:n+1;t[o].focus()}},t.prototype.focusPrevious=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeIndex;if(0!==t.length){var o=0===n?t.length-1:n-1;t[o].focus()}},t.prototype.render=function(){var e,t=this,n=this.props,o=n.open,a=n.pullRight,r=n.labelledBy,i=n.onSelect,s=n.className,d=n.rootCloseEvent,f=n.children,c=(0,u.default)(n,[\"open\",\"pullRight\",\"labelledBy\",\"onSelect\",\"className\",\"rootCloseEvent\",\"children\"]),p=(0,T.splitBsPropsAndOmit)(c,[\"onClose\"]),h=p[0],m=p[1],v=(0,l.default)({},(0,T.getClassSet)(h),(e={},e[(0,T.prefix)(h,\"right\")]=a,e));return C.default.createElement(M.default,{disabled:!o,onRootClose:this.handleRootClose,event:d},C.default.createElement(\"ul\",(0,l.default)({},m,{role:\"menu\",className:(0,y.default)(s,v),\"aria-labelledby\":r}),A.default.map(f,function(e){return C.default.cloneElement(e,{onKeyDown:(0,P.default)(e.props.onKeyDown,t.handleKeyDown),onSelect:(0,P.default)(e.props.onSelect,i)})})))},t}(C.default.Component);j.propTypes=I,j.defaultProps=R,t.default=(0,T.bsClass)(\"dropdown-menu\",j),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(8),x={horizontal:g.default.bool,inline:g.default.bool,componentClass:C.default},O={horizontal:!1,inline:!1,componentClass:\"form\"},N=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.horizontal,n=e.inline,o=e.componentClass,a=e.className,r=(0,u.default)(e,[\"horizontal\",\"inline\",\"componentClass\",\"className\"]),i=(0,E.splitBsProps)(r),s=i[0],d=i[1],f=[];return t&&f.push((0,E.prefix)(s,\"horizontal\")),n&&f.push((0,E.prefix)(s,\"inline\")),y.default.createElement(o,(0,l.default)({},d,{className:(0,m.default)(a,f)}))},t}(y.default.Component);N.propTypes=x,N.defaultProps=O,t.default=(0,E.bsClass)(\"form\",N),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(15),x=(o(E),n(136)),O=o(x),N=n(137),S=o(N),M=n(8),T=n(12),w={componentClass:C.default,type:g.default.string,id:g.default.string,inputRef:g.default.func},P={componentClass:\"input\"},k={$bs_formGroup:g.default.object},A=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,o=n.componentClass,a=n.type,r=n.id,i=void 0===r?t:r,s=n.inputRef,d=n.className,f=n.bsSize,c=(0,u.default)(n,[\"componentClass\",\"type\",\"id\",\"inputRef\",\"className\",\"bsSize\"]),p=(0,M.splitBsProps)(c),h=p[0],v=p[1],b=void 0;if(\"file\"!==a&&(b=(0,M.getClassSet)(h)),f){var g=T.SIZE_MAP[f]||f;b[(0,M.prefix)({bsClass:\"input\"},g)]=!0}return y.default.createElement(o,(0,l.default)({},v,{type:a,id:i,ref:s,className:(0,m.default)(d,b)}))},t}(y.default.Component);A.propTypes=w,A.defaultProps=P,A.contextTypes=k,A.Feedback=O.default,A.Static=S.default,t.default=(0,M.bsClass)(\"form-control\",(0,M.bsSizes)([T.Size.SMALL,T.Size.LARGE],A)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(6),l=o(a),r=n(5),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(51),C=o(_),E=n(8),x={bsRole:\"feedback\"},O={$bs_formGroup:g.default.object},N=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.getGlyph=function(e){switch(e){case\"success\":return\"ok\";case\"warning\":return\"warning-sign\";case\"error\":return\"remove\";default:return null}},t.prototype.renderDefaultFeedback=function(e,t,n,o){var a=this.getGlyph(e&&e.validationState);return a?y.default.createElement(C.default,(0,u.default)({},o,{glyph:a,className:(0,m.default)(t,n)})):null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,o=(0,l.default)(e,[\"className\",\"children\"]),a=(0,E.splitBsProps)(o),r=a[0],i=a[1],s=(0,E.getClassSet)(r);if(!n)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,s,i);var d=y.default.Children.only(n);return y.default.cloneElement(d,(0,u.default)({},i,{className:(0,m.default)(d.props.className,t,s)}))},t}(y.default.Component);N.defaultProps=x,N.contextTypes=O,t.default=(0,E.bsClass)(\"form-control-feedback\",N),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"p\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"form-control-static\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C=n(12),E=n(13),x=o(E),O={controlId:g.default.string,validationState:g.default.oneOf([\"success\",\"warning\",\"error\",null])},N={$bs_formGroup:g.default.object.isRequired},S=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.controlId,n=e.validationState;return{$bs_formGroup:{controlId:t,validationState:n}}},t.prototype.hasFeedback=function(e){var t=this;return x.default.some(e,function(e){return\"feedback\"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)})},t.prototype.render=function(){var e=this.props,t=e.validationState,n=e.className,o=e.children,a=(0,u.default)(e,[\"validationState\",\"className\",\"children\"]),r=(0,_.splitBsPropsAndOmit)(a,[\"controlId\"]),i=r[0],s=r[1],d=(0,l.default)({},(0,_.getClassSet)(i),{\"has-feedback\":this.hasFeedback(o)});return t&&(d[\"has-\"+t]=!0),y.default.createElement(\"div\",(0,l.default)({},s,{className:(0,m.default)(n,d)}),o)},t}(y.default.Component);S.propTypes=O,S.childContextTypes=N,t.default=(0,_.bsClass)(\"form-group\",(0,_.bsSizes)([C.Size.LARGE,C.Size.SMALL],S)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(8),g=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,b.splitBsProps)(n),a=o[0],r=o[1],i=(0,b.getClassSet)(a);return y.default.createElement(\"span\",(0,l.default)({},r,{className:(0,m.default)(t,i)}))},t}(y.default.Component);t.default=(0,b.bsClass)(\"help-block\",g),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C={responsive:g.default.bool,rounded:g.default.bool,circle:g.default.bool,thumbnail:g.default.bool},E={responsive:!1,rounded:!1,circle:!1,thumbnail:!1},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.responsive,o=t.rounded,a=t.circle,r=t.thumbnail,i=t.className,s=(0,u.default)(t,[\"responsive\",\"rounded\",\"circle\",\"thumbnail\",\"className\"]),d=(0,_.splitBsProps)(s),f=d[0],c=d[1],p=(e={},e[(0,_.prefix)(f,\"responsive\")]=n,e[(0,_.prefix)(f,\"rounded\")]=o,e[(0,_.prefix)(f,\"circle\")]=a,e[(0,_.prefix)(f,\"thumbnail\")]=r,e);return y.default.createElement(\"img\",(0,l.default)({},c,{className:(0,m.default)(i,p)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"img\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(142),g=o(b),_=n(143),C=o(_),E=n(8),x=n(12),O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,E.splitBsProps)(n),a=o[0],r=o[1],i=(0,E.getClassSet)(a);return y.default.createElement(\"span\",(0,l.default)({},r,{className:(0,m.default)(t,i)}))},t}(y.default.Component);O.Addon=g.default,O.Button=C.default,t.default=(0,E.bsClass)(\"input-group\",(0,E.bsSizes)([x.Size.LARGE,x.Size.SMALL],O)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(8),g=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,b.splitBsProps)(n),a=o[0],r=o[1],i=(0,b.getClassSet)(a);return y.default.createElement(\"span\",(0,l.default)({},r,{className:(0,m.default)(t,i)}))},t}(y.default.Component);t.default=(0,b.bsClass)(\"input-group-addon\",g),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(8),g=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,b.splitBsProps)(n),a=o[0],r=o[1],i=(0,b.getClassSet)(a);return y.default.createElement(\"span\",(0,l.default)({},r,{className:(0,m.default)(t,i)}))},t}(y.default.Component);t.default=(0,b.bsClass)(\"input-group-btn\",g),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(1),m=o(h),v=n(7),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"div\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return m.default.createElement(t,(0,l.default)({},i,{className:(0,y.default)(n,s)}))},t}(m.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"jumbotron\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(25),l=o(a),r=n(5),u=o(r),i=n(6),s=o(i),d=n(2),f=o(d),c=n(4),p=o(c),h=n(3),m=o(h),v=n(7),y=o(v),b=n(1),g=o(b),_=n(8),C=n(12),E=function(e){function t(){return(0,f.default)(this,t),(0,p.default)(this,e.apply(this,arguments))}return(0,m.default)(t,e),t.prototype.hasContent=function(e){var t=!1;return g.default.Children.forEach(e,function(e){t||(e||0===e)&&(t=!0)}),t},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,o=(0,s.default)(e,[\"className\",\"children\"]),a=(0,_.splitBsProps)(o),l=a[0],r=a[1],i=(0,u.default)({},(0,_.getClassSet)(l),{hidden:!this.hasContent(n)});return g.default.createElement(\"span\",(0,u.default)({},r,{className:(0,y.default)(t,i)}),n)},t}(g.default.Component);t.default=(0,_.bsClass)(\"label\",(0,_.bsStyles)([].concat((0,l.default)(C.State),[C.Style.DEFAULT,C.Style.PRIMARY]),C.Style.DEFAULT,E)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return e?N.default.some(e,function(e){return e.type!==E.default||e.props.href||e.props.onClick})?\"div\":\"ul\":\"div\"}t.__esModule=!0;var l=n(5),r=o(l),u=n(6),i=o(u),s=n(2),d=o(s),f=n(4),c=o(f),p=n(3),h=o(p),m=n(7),v=o(m),y=n(1),b=o(y),g=n(10),_=o(g),C=n(82),E=o(C),x=n(8),O=n(13),N=o(O),S={componentClass:_.default},M=function(e){function t(){return(0,d.default)(this,t),(0,c.default)(this,e.apply(this,arguments))}return(0,h.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.componentClass,o=void 0===n?a(t):n,l=e.className,u=(0,i.default)(e,[\"children\",\"componentClass\",\"className\"]),s=(0,x.splitBsProps)(u),d=s[0],f=s[1],c=(0,x.getClassSet)(d),p=\"ul\"===o&&N.default.every(t,function(e){return e.type===E.default});return b.default.createElement(o,(0,r.default)({},f,{className:(0,v.default)(l,c)}),p?N.default.map(t,function(e){return(0,y.cloneElement)(e,{listItem:!0})}):t)},t}(b.default.Component);M.propTypes=S,t.default=(0,x.bsClass)(\"list-group\",M),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"div\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"media-body\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"h4\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"media-heading\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(52),C=o(_),E=n(8),x={align:g.default.oneOf([\"top\",\"middle\",\"bottom\"])},O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.className,o=(0,u.default)(e,[\"align\",\"className\"]),a=(0,E.splitBsProps)(o),r=a[0],i=a[1],s=(0,E.getClassSet)(r);return t&&(s[(0,E.prefix)(C.default.defaultProps,t)]=!0),y.default.createElement(\"div\",(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);O.propTypes=x,t.default=(0,E.bsClass)(\"media-left\",O),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(8),g=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,b.splitBsProps)(n),a=o[0],r=o[1],i=(0,b.getClassSet)(a);return y.default.createElement(\"ul\",(0,l.default)({},r,{className:(0,m.default)(t,i)}))},t}(y.default.Component);t.default=(0,b.bsClass)(\"media-list\",g),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(8),g=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,b.splitBsProps)(n),a=o[0],r=o[1],i=(0,b.getClassSet)(a);return y.default.createElement(\"li\",(0,l.default)({},r,{className:(0,m.default)(t,i)}))},t}(y.default.Component);t.default=(0,b.bsClass)(\"media\",g),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(52),C=o(_),E=n(8),x={align:g.default.oneOf([\"top\",\"middle\",\"bottom\"])},O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.className,o=(0,u.default)(e,[\"align\",\"className\"]),a=(0,E.splitBsProps)(o),r=a[0],i=a[1],s=(0,E.getClassSet)(r);return t&&(s[(0,E.prefix)(C.default.defaultProps,t)]=!0),y.default.createElement(\"div\",(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);O.propTypes=x,t.default=(0,E.bsClass)(\"media-right\",O),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(46),C=o(_),E=n(16),x=o(E),O=n(8),N=n(11),S=o(N),M={active:g.default.bool,disabled:g.default.bool,divider:(0,C.default)(g.default.bool,function(e){var t=e.divider,n=e.children;return t&&n?new Error(\"Children will not be rendered for dividers\"):null}),eventKey:g.default.any,header:g.default.bool,href:g.default.string,onClick:g.default.func,onSelect:g.default.func},T={divider:!1,disabled:!1,header:!1},w=function(e){function t(n,o){(0,s.default)(this,t);var a=(0,f.default)(this,e.call(this,n,o));return a.handleClick=a.handleClick.bind(a),a}return(0,p.default)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.href,o=t.disabled,a=t.onSelect,l=t.eventKey;n&&!o||e.preventDefault(),o||a&&a(l,e)},t.prototype.render=function(){var e=this.props,t=e.active,n=e.disabled,o=e.divider,a=e.header,r=e.onClick,i=e.className,s=e.style,d=(0,u.default)(e,[\"active\",\"disabled\",\"divider\",\"header\",\"onClick\",\"className\",\"style\"]),f=(0,O.splitBsPropsAndOmit)(d,[\"eventKey\",\"onSelect\"]),c=f[0],p=f[1];return o?(p.children=void 0,y.default.createElement(\"li\",(0,l.default)({},p,{role:\"separator\",className:(0,m.default)(i,\"divider\"),style:s}))):a?y.default.createElement(\"li\",(0,l.default)({},p,{role:\"heading\",className:(0,m.default)(i,(0,O.prefix)(c,\"header\")),style:s})):y.default.createElement(\"li\",{role:\"presentation\",className:(0,m.default)(i,{active:t,disabled:n}),style:s},y.default.createElement(x.default,(0,l.default)({},p,{role:\"menuitem\",tabIndex:\"-1\",onClick:(0,S.default)(r,this.handleClick)})))},t}(y.default.Component);w.propTypes=M,w.defaultProps=T,t.default=(0,O.bsClass)(\"dropdown\",w),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(6),l=o(a),r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(5),p=o(c),h=n(7),m=o(h),v=n(236),y=o(v),b=n(30),g=o(b),_=n(22),C=o(_),E=n(115),x=o(E),O=n(1),N=o(O),S=n(9),M=o(S),T=n(14),w=o(T),P=n(251),k=o(P),A=n(120),I=o(A),R=n(10),j=o(R),L=n(40),D=o(L),B=n(83),K=o(B),F=n(155),H=o(F),U=n(84),z=o(U),$=n(85),W=o($),G=n(86),q=o(G),V=n(8),Y=n(11),X=o(Y),Z=n(41),J=o(Z),Q=n(12),ee=(0,p.default)({},k.default.propTypes,H.default.propTypes,{backdrop:M.default.oneOf([\"static\",!0,!1]),keyboard:M.default.bool,animation:M.default.bool,dialogComponentClass:j.default,autoFocus:M.default.bool,enforceFocus:M.default.bool,restoreFocus:M.default.bool,show:M.default.bool,onHide:M.default.func,onEnter:M.default.func,onEntering:M.default.func,onEntered:M.default.func,onExit:M.default.func,onExiting:M.default.func,onExited:M.default.func,container:k.default.propTypes.container}),te=(0,p.default)({},k.default.defaultProps,{animation:!0,dialogComponentClass:H.default}),ne={$bs_modal:M.default.shape({onHide:M.default.func})},oe=function(e){function t(n,o){(0,u.default)(this,t);var a=(0,s.default)(this,e.call(this,n,o));return a.handleEntering=a.handleEntering.bind(a),a.handleExited=a.handleExited.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleDialogClick=a.handleDialogClick.bind(a),a.state={style:{}},a}return(0,f.default)(t,e),t.prototype.getChildContext=function(){return{$bs_modal:{onHide:this.props.onHide}}},t.prototype.componentWillUnmount=function(){this.handleExited()},t.prototype.handleEntering=function(){y.default.on(window,\"resize\",this.handleWindowResize),this.updateStyle()},t.prototype.handleExited=function(){y.default.off(window,\"resize\",this.handleWindowResize)},t.prototype.handleWindowResize=function(){this.updateStyle()},t.prototype.handleDialogClick=function(e){e.target===e.currentTarget&&this.props.onHide()},t.prototype.updateStyle=function(){if(C.default){var e=this._modal.getDialogElement(),t=e.scrollHeight,n=(0,g.default)(e),o=(0,I.default)(w.default.findDOMNode(this.props.container||n.body)),a=t>n.documentElement.clientHeight;this.setState({style:{paddingRight:o&&!a?(0,x.default)():void 0,paddingLeft:!o&&a?(0,x.default)():void 0}})}},t.prototype.render=function(){var e=this,n=this.props,o=n.backdrop,a=n.animation,r=n.show,u=n.dialogComponentClass,i=n.className,s=n.style,d=n.children,f=n.onEntering,c=n.onExited,h=(0,l.default)(n,[\"backdrop\",\"animation\",\"show\",\"dialogComponentClass\",\"className\",\"style\",\"children\",\"onEntering\",\"onExited\"]),v=(0,J.default)(h,k.default),y=v[0],b=v[1],g=r&&!a&&\"in\";return N.default.createElement(k.default,(0,p.default)({},y,{ref:function(t){e._modal=t},show:r,onEntering:(0,X.default)(f,this.handleEntering),onExited:(0,X.default)(c,this.handleExited),backdrop:o,backdropClassName:(0,m.default)((0,V.prefix)(h,\"backdrop\"),g),containerClassName:(0,V.prefix)(h,\"open\"),transition:a?D.default:void 0,dialogTransitionTimeout:t.TRANSITION_DURATION,backdropTransitionTimeout:t.BACKDROP_TRANSITION_DURATION}),N.default.createElement(u,(0,p.default)({},b,{style:(0,p.default)({},this.state.style,s),className:(0,m.default)(i,g),onClick:o===!0?this.handleDialogClick:null}),d))},t}(N.default.Component);oe.propTypes=ee,oe.defaultProps=te,oe.childContextTypes=ne,oe.Body=K.default,oe.Header=W.default,oe.Title=q.default,oe.Footer=z.default,oe.Dialog=H.default,oe.TRANSITION_DURATION=300,oe.BACKDROP_TRANSITION_DURATION=150,t.default=(0,V.bsClass)(\"modal\",(0,V.bsSizes)([Q.Size.LARGE,Q.Size.SMALL],oe)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C=n(12),E={dialogClassName:g.default.string},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.dialogClassName,o=t.className,a=t.style,r=t.children,i=(0,u.default)(t,[\"dialogClassName\",\"className\",\"style\",\"children\"]),s=(0,_.splitBsProps)(i),d=s[0],f=s[1],c=(0,_.prefix)(d),p=(0,l.default)({display:\"block\"},a),h=(0,l.default)({},(0,_.getClassSet)(d),(e={},e[c]=!1,e[(0,_.prefix)(d,\"dialog\")]=!0,e));return y.default.createElement(\"div\",(0,l.default)({},f,{tabIndex:\"-1\",role:\"dialog\",style:p,className:(0,m.default)(o,c)}),y.default.createElement(\"div\",{className:(0,m.default)(n,h)},y.default.createElement(\"div\",{className:(0,_.prefix)(d,\"content\"),role:\"document\"},r)))},t}(y.default.Component);x.propTypes=E,t.default=(0,_.bsClass)(\"modal\",(0,_.bsSizes)([C.Size.LARGE,C.Size.SMALL],x)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(6),l=o(a),r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(5),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(39),C=o(_),E=n(41),x=o(E),O=n(13),N=o(O),S=(0,p.default)({},C.default.propTypes,{title:g.default.node.isRequired,noCaret:g.default.bool,active:g.default.bool,children:g.default.node}),M=function(e){function t(){return(0,u.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.isActive=function(e,t,n){var o=e.props,a=this;return!!(o.active||null!=t&&o.eventKey===t||n&&o.href===n)||(!!N.default.some(o.children,function(e){return a.isActive(e,t,n)})||o.active)},t.prototype.render=function(){var e=this,t=this.props,n=t.title,o=t.activeKey,a=t.activeHref,r=t.className,u=t.style,i=t.children,s=(0,l.default)(t,[\"title\",\"activeKey\",\"activeHref\",\"className\",\"style\",\"children\"]),d=this.isActive(this,o,a);delete s.active,delete s.eventKey;var f=(0,x.default)(s,C.default.ControlledComponent),c=f[0],h=f[1];return y.default.createElement(C.default,(0,p.default)({},c,{componentClass:\"li\",className:(0,m.default)(r,{active:d}),style:u}),y.default.createElement(C.default.Toggle,(0,p.default)({},h,{useAnchor:!0}),n),y.default.createElement(C.default.Menu,null,N.default.map(i,function(t){return y.default.cloneElement(t,{active:e.isActive(t,o,a)})})))},t}(y.default.Component);M.propTypes=S,t.default=M,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var o=function(e,n){var o=n.$bs_navbar,a=void 0===o?{bsClass:\"navbar\"}:o,l=e.componentClass,u=e.className,s=e.pullRight,d=e.pullLeft,f=(0,i.default)(e,[\"componentClass\",\"className\",\"pullRight\",\"pullLeft\"]);return b.default.createElement(l,(0,r.default)({},f,{className:(0,v.default)(u,(0,j.prefix)(a,t),s&&(0,j.prefix)(a,\"right\"),d&&(0,j.prefix)(a,\"left\"))}))};return o.displayName=n,o.propTypes={componentClass:E.default,pullRight:_.default.bool,pullLeft:_.default.bool},o.defaultProps={componentClass:e,pullRight:!1,pullLeft:!1},o.contextTypes={$bs_navbar:_.default.shape({bsClass:_.default.string})},o}t.__esModule=!0;var l=n(5),r=o(l),u=n(6),i=o(u),s=n(2),d=o(s),f=n(4),c=o(f),p=n(3),h=o(p),m=n(7),v=o(m),y=n(1),b=o(y),g=n(9),_=o(g),C=n(10),E=o(C),x=n(49),O=o(x),N=n(81),S=o(N),M=n(89),T=o(M),w=n(158),P=o(w),k=n(159),A=o(k),I=n(160),R=o(I),j=n(8),L=n(12),D=n(11),B=o(D),K={fixedTop:_.default.bool,fixedBottom:_.default.bool,staticTop:_.default.bool,inverse:_.default.bool,fluid:_.default.bool,componentClass:E.default,onToggle:_.default.func,onSelect:_.default.func,collapseOnSelect:_.default.bool,expanded:_.default.bool,role:_.default.string},F={componentClass:\"nav\",fixedTop:!1,fixedBottom:!1,staticTop:!1,inverse:!1,fluid:!1,collapseOnSelect:!1},H={$bs_navbar:_.default.shape({bsClass:_.default.string,expanded:_.default.bool,onToggle:_.default.func.isRequired,onSelect:_.default.func})},U=function(e){function t(n,o){(0,d.default)(this,t);var a=(0,c.default)(this,e.call(this,n,o));return a.handleToggle=a.handleToggle.bind(a),a.handleCollapse=a.handleCollapse.bind(a),a}return(0,h.default)(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.bsClass,n=e.expanded,o=e.onSelect,a=e.collapseOnSelect;return{$bs_navbar:{bsClass:t,expanded:n,onToggle:this.handleToggle,onSelect:(0,B.default)(o,a?this.handleCollapse:null)}}},t.prototype.handleCollapse=function(){var e=this.props,t=e.onToggle,n=e.expanded;n&&t(!1)},t.prototype.handleToggle=function(){var e=this.props,t=e.onToggle,n=e.expanded;t(!n)},t.prototype.render=function(){var e,t=this.props,n=t.componentClass,o=t.fixedTop,a=t.fixedBottom,l=t.staticTop,u=t.inverse,s=t.fluid,d=t.className,f=t.children,c=(0,i.default)(t,[\"componentClass\",\"fixedTop\",\"fixedBottom\",\"staticTop\",\"inverse\",\"fluid\",\"className\",\"children\"]),p=(0,j.splitBsPropsAndOmit)(c,[\"expanded\",\"onToggle\",\"onSelect\",\"collapseOnSelect\"]),h=p[0],m=p[1];void 0===m.role&&\"nav\"!==n&&(m.role=\"navigation\"),u&&(h.bsStyle=L.Style.INVERSE);var y=(0,r.default)({},(0,j.getClassSet)(h),(e={},e[(0,j.prefix)(h,\"fixed-top\")]=o,e[(0,j.prefix)(h,\"fixed-bottom\")]=a,e[(0,j.prefix)(h,\"static-top\")]=l,e));return b.default.createElement(n,(0,r.default)({},m,{className:(0,v.default)(d,y)}),b.default.createElement(S.default,{fluid:s},f))},t}(b.default.Component);U.propTypes=K,U.defaultProps=F,U.childContextTypes=H,(0,j.bsClass)(\"navbar\",U);var z=(0,O.default)(U,{expanded:\"onToggle\"});z.Brand=T.default,z.Header=A.default,z.Toggle=R.default,z.Collapse=P.default,z.Form=a(\"div\",\"form\",\"NavbarForm\"),z.Text=a(\"p\",\"text\",\"NavbarText\"),z.Link=a(\"a\",\"link\",\"NavbarLink\"),t.default=(0,j.bsStyles)([L.Style.DEFAULT,L.Style.INVERSE],L.Style.DEFAULT,z),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(1),m=o(h),v=n(9),y=o(v),b=n(50),g=o(b),_=n(8),C={$bs_navbar:y.default.shape({bsClass:y.default.string,expanded:y.default.bool})},E=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=(0,u.default)(e,[\"children\"]),o=this.context.$bs_navbar||{bsClass:\"navbar\"},a=(0,_.prefix)(o,\"collapse\");return m.default.createElement(g.default,(0,l.default)({in:o.expanded},n),m.default.createElement(\"div\",{className:a},t))},t}(m.default.Component);E.contextTypes=C,t.default=E,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C={$bs_navbar:g.default.shape({bsClass:g.default.string})},E=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=this.context.$bs_navbar||{bsClass:\"navbar\"},a=(0,_.prefix)(o,\"header\");return y.default.createElement(\"div\",(0,l.default)({},n,{className:(0,m.default)(t,a)}))},t}(y.default.Component);E.contextTypes=C,t.default=E,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C=n(11),E=o(C),x={onClick:g.default.func,children:g.default.node},O={$bs_navbar:g.default.shape({bsClass:g.default.string,expanded:g.default.bool,onToggle:g.default.func.isRequired})},N=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onClick,n=e.className,o=e.children,a=(0,u.default)(e,[\"onClick\",\"className\",\"children\"]),r=this.context.$bs_navbar||{bsClass:\"navbar\"},i=(0,l.default)({type:\"button\"},a,{onClick:(0,E.default)(t,r.onToggle),className:(0,m.default)(n,(0,_.prefix)(r,\"toggle\"),!r.expanded&&\"collapsed\")});return o?y.default.createElement(\"button\",i,o):y.default.createElement(\"button\",i,y.default.createElement(\"span\",{className:\"sr-only\"},\"Toggle navigation\"),y.default.createElement(\"span\",{\nclassName:\"icon-bar\"}),y.default.createElement(\"span\",{className:\"icon-bar\"}),y.default.createElement(\"span\",{className:\"icon-bar\"}))},t}(y.default.Component);N.propTypes=x,N.contextTypes=O,t.default=N,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}t.__esModule=!0;var l=n(6),r=o(l),u=n(2),i=o(u),s=n(4),d=o(s),f=n(3),c=o(f),p=n(5),h=o(p),m=n(31),v=o(m),y=n(1),b=o(y),g=n(9),_=o(g),C=n(14),E=o(C),x=n(15),O=(o(x),n(90)),N=o(O),S=n(11),M=o(S),T=_.default.oneOf([\"click\",\"hover\",\"focus\"]),w=(0,h.default)({},N.default.propTypes,{trigger:_.default.oneOfType([T,_.default.arrayOf(T)]),delay:_.default.number,delayShow:_.default.number,delayHide:_.default.number,defaultOverlayShown:_.default.bool,overlay:_.default.node.isRequired,onBlur:_.default.func,onClick:_.default.func,onFocus:_.default.func,onMouseOut:_.default.func,onMouseOver:_.default.func,target:_.default.oneOf([null]),onHide:_.default.oneOf([null]),show:_.default.oneOf([null])}),P={defaultOverlayShown:!1,trigger:[\"hover\",\"focus\"]},k=function(e){function t(n,o){(0,i.default)(this,t);var a=(0,d.default)(this,e.call(this,n,o));return a.handleToggle=a.handleToggle.bind(a),a.handleDelayedShow=a.handleDelayedShow.bind(a),a.handleDelayedHide=a.handleDelayedHide.bind(a),a.handleHide=a.handleHide.bind(a),a.handleMouseOver=function(e){return a.handleMouseOverOut(a.handleDelayedShow,e)},a.handleMouseOut=function(e){return a.handleMouseOverOut(a.handleDelayedHide,e)},a._mountNode=null,a.state={show:n.defaultOverlayShown},a}return(0,c.default)(t,e),t.prototype.componentDidMount=function(){this._mountNode=document.createElement(\"div\"),this.renderOverlay()},t.prototype.componentDidUpdate=function(){this.renderOverlay()},t.prototype.componentWillUnmount=function(){E.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},t.prototype.handleToggle=function(){this.state.show?this.hide():this.show()},t.prototype.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;return t?void(this._hoverShowDelay=setTimeout(function(){e._hoverShowDelay=null,e.show()},t)):void this.show()}},t.prototype.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;return t?void(this._hoverHideDelay=setTimeout(function(){e._hoverHideDelay=null,e.hide()},t)):void this.hide()}},t.prototype.handleMouseOverOut=function(e,t){var n=t.currentTarget,o=t.relatedTarget||t.nativeEvent.toElement;o&&(o===n||(0,v.default)(n,o))||e(t)},t.prototype.handleHide=function(){this.hide()},t.prototype.show=function(){this.setState({show:!0})},t.prototype.hide=function(){this.setState({show:!1})},t.prototype.makeOverlay=function(e,t){return b.default.createElement(N.default,(0,h.default)({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},t.prototype.renderOverlay=function(){E.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},t.prototype.render=function(){var e=this.props,t=e.trigger,n=e.overlay,o=e.children,l=e.onBlur,u=e.onClick,i=e.onFocus,s=e.onMouseOut,d=e.onMouseOver,f=(0,r.default)(e,[\"trigger\",\"overlay\",\"children\",\"onBlur\",\"onClick\",\"onFocus\",\"onMouseOut\",\"onMouseOver\"]);delete f.delay,delete f.delayShow,delete f.delayHide,delete f.defaultOverlayShown;var c=b.default.Children.only(o),p=c.props,h={};return this.state.show&&(h[\"aria-describedby\"]=n.props.id),h.onClick=(0,M.default)(p.onClick,u),a(\"click\",t)&&(h.onClick=(0,M.default)(h.onClick,this.handleToggle)),a(\"hover\",t)&&(h.onMouseOver=(0,M.default)(p.onMouseOver,d,this.handleMouseOver),h.onMouseOut=(0,M.default)(p.onMouseOut,s,this.handleMouseOut)),a(\"focus\",t)&&(h.onFocus=(0,M.default)(p.onFocus,i,this.handleDelayedShow),h.onBlur=(0,M.default)(p.onBlur,l,this.handleDelayedHide)),this._overlay=this.makeOverlay(n,f),(0,y.cloneElement)(c,h)},t}(b.default.Component);k.propTypes=w,k.defaultProps=P,t.default=k,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(8),g=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,o=(0,u.default)(e,[\"className\",\"children\"]),a=(0,b.splitBsProps)(o),r=a[0],i=a[1],s=(0,b.getClassSet)(r);return y.default.createElement(\"div\",(0,l.default)({},i,{className:(0,m.default)(t,s)}),y.default.createElement(\"h1\",null,n))},t}(y.default.Component);t.default=(0,b.bsClass)(\"page-header\",g),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(91),l=o(a),r=n(182),u=o(r);t.default=u.default.wrapper(l.default,\"``\",\"``\"),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(91),C=o(_),E=n(8),x=n(11),O=o(x),N=n(13),S=o(N),M={onSelect:g.default.func},T=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onSelect,n=e.className,o=e.children,a=(0,u.default)(e,[\"onSelect\",\"className\",\"children\"]),r=(0,E.splitBsProps)(a),i=r[0],s=r[1],d=(0,E.getClassSet)(i);return y.default.createElement(\"ul\",(0,l.default)({},s,{className:(0,m.default)(n,d)}),S.default.map(o,function(e){return(0,v.cloneElement)(e,{onSelect:(0,O.default)(e.props.onSelect,t)})}))},t}(y.default.Component);T.propTypes=M,T.Item=C.default,t.default=(0,E.bsClass)(\"pager\",T),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(6),l=o(a),r=n(5),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(10),C=o(_),E=n(92),x=o(E),O=n(8),N={activePage:g.default.number,items:g.default.number,maxButtons:g.default.number,boundaryLinks:g.default.bool,ellipsis:g.default.oneOfType([g.default.bool,g.default.node]),first:g.default.oneOfType([g.default.bool,g.default.node]),last:g.default.oneOfType([g.default.bool,g.default.node]),prev:g.default.oneOfType([g.default.bool,g.default.node]),next:g.default.oneOfType([g.default.bool,g.default.node]),onSelect:g.default.func,buttonComponentClass:C.default},S={activePage:1,items:1,maxButtons:0,first:!1,last:!1,prev:!1,next:!1,ellipsis:!0,boundaryLinks:!1},M=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.renderPageButtons=function(e,t,n,o,a,l){var r=[],i=void 0,s=void 0;n&&n1&&(i>2&&r.unshift(y.default.createElement(x.default,{key:\"ellipsisFirst\",disabled:!0,componentClass:l.componentClass},y.default.createElement(\"span\",{\"aria-label\":\"More\"},a===!0?\"…\":a))),r.unshift(y.default.createElement(x.default,(0,u.default)({},l,{key:1,eventKey:1,active:!1}),\"1\"))),a&&s=n}),y.default.createElement(\"span\",{\"aria-label\":\"Next\"},f===!0?\"›\":f)),s&&y.default.createElement(x.default,(0,u.default)({},E,{eventKey:n,disabled:t>=n}),y.default.createElement(\"span\",{\"aria-label\":\"Last\"},s===!0?\"»\":s)))},t}(y.default.Component);M.propTypes=N,M.defaultProps=S,t.default=(0,O.bsClass)(\"pagination\",M),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(25),l=o(a),r=n(6),u=o(r),i=n(5),s=o(i),d=n(2),f=o(d),c=n(4),p=o(c),h=n(3),m=o(h),v=n(7),y=o(v),b=n(1),g=o(b),_=n(9),C=o(_),E=n(50),x=o(E),O=n(8),N=n(12),S={collapsible:C.default.bool,onSelect:C.default.func,header:C.default.node,id:C.default.oneOfType([C.default.string,C.default.number]),footer:C.default.node,defaultExpanded:C.default.bool,expanded:C.default.bool,eventKey:C.default.any,headerRole:C.default.string,panelRole:C.default.string,onEnter:C.default.func,onEntering:C.default.func,onEntered:C.default.func,onExit:C.default.func,onExiting:C.default.func,onExited:C.default.func},M={defaultExpanded:!1},T=function(e){function t(n,o){(0,f.default)(this,t);var a=(0,p.default)(this,e.call(this,n,o));return a.handleClickTitle=a.handleClickTitle.bind(a),a.state={expanded:a.props.defaultExpanded},a}return(0,m.default)(t,e),t.prototype.handleClickTitle=function(e){e.persist(),e.selected=!0,this.props.onSelect?this.props.onSelect(this.props.eventKey,e):e.preventDefault(),e.selected&&this.setState({expanded:!this.state.expanded})},t.prototype.renderHeader=function(e,t,n,o,a,l){var r=(0,O.prefix)(l,\"title\");return e?g.default.isValidElement(t)?(0,b.cloneElement)(t,{className:(0,y.default)(t.props.className,r),children:this.renderAnchor(t.props.children,n,o,a)}):g.default.createElement(\"h4\",{role:\"presentation\",className:r},this.renderAnchor(t,n,o,a)):g.default.isValidElement(t)?(0,b.cloneElement)(t,{className:(0,y.default)(t.props.className,r)}):t},t.prototype.renderAnchor=function(e,t,n,o){return g.default.createElement(\"a\",{role:n,href:t&&\"#\"+t,onClick:this.handleClickTitle,\"aria-controls\":t,\"aria-expanded\":o,\"aria-selected\":o,className:o?null:\"collapsed\"},e)},t.prototype.renderCollapsibleBody=function(e,t,n,o,a,l){return g.default.createElement(x.default,(0,s.default)({in:t},l),g.default.createElement(\"div\",{id:e,role:n,className:(0,O.prefix)(a,\"collapse\"),\"aria-hidden\":!t},this.renderBody(o,a)))},t.prototype.renderBody=function(e,t){function n(){a.length&&(o.push(g.default.createElement(\"div\",{key:o.length,className:l},a)),a=[])}var o=[],a=[],l=(0,O.prefix)(t,\"body\");return g.default.Children.toArray(e).forEach(function(e){return g.default.isValidElement(e)&&e.props.fill?(n(),void o.push((0,b.cloneElement)(e,{fill:void 0}))):void a.push(e)}),n(),o},t.prototype.render=function(){var e=this.props,t=e.collapsible,n=e.header,o=e.id,a=e.footer,l=e.expanded,r=e.headerRole,i=e.panelRole,d=e.className,f=e.children,c=e.onEnter,p=e.onEntering,h=e.onEntered,m=e.onExit,v=e.onExiting,b=e.onExited,_=(0,u.default)(e,[\"collapsible\",\"header\",\"id\",\"footer\",\"expanded\",\"headerRole\",\"panelRole\",\"className\",\"children\",\"onEnter\",\"onEntering\",\"onEntered\",\"onExit\",\"onExiting\",\"onExited\"]),C=(0,O.splitBsPropsAndOmit)(_,[\"defaultExpanded\",\"eventKey\",\"onSelect\"]),E=C[0],x=C[1],N=null!=l?l:this.state.expanded,S=(0,O.getClassSet)(E);return g.default.createElement(\"div\",(0,s.default)({},x,{className:(0,y.default)(d,S),id:t?null:o}),n&&g.default.createElement(\"div\",{className:(0,O.prefix)(E,\"heading\")},this.renderHeader(t,n,o,r,N,E)),t?this.renderCollapsibleBody(o,N,i,f,E,{onEnter:c,onEntering:p,onEntered:h,onExit:m,onExiting:v,onExited:b}):this.renderBody(f,E),a&&g.default.createElement(\"div\",{className:(0,O.prefix)(E,\"footer\")},a))},t}(g.default.Component);T.propTypes=S,T.defaultProps=M,t.default=(0,O.bsClass)(\"panel\",(0,O.bsStyles)([].concat((0,l.default)(N.State),[N.Style.DEFAULT,N.Style.PRIMARY]),N.Style.DEFAULT,T)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(47),C=o(_),E=n(8),x={id:(0,C.default)(g.default.oneOfType([g.default.string,g.default.number])),placement:g.default.oneOf([\"top\",\"right\",\"bottom\",\"left\"]),positionTop:g.default.oneOfType([g.default.number,g.default.string]),positionLeft:g.default.oneOfType([g.default.number,g.default.string]),arrowOffsetTop:g.default.oneOfType([g.default.number,g.default.string]),arrowOffsetLeft:g.default.oneOfType([g.default.number,g.default.string]),title:g.default.node},O={placement:\"right\"},N=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,o=t.positionTop,a=t.positionLeft,r=t.arrowOffsetTop,i=t.arrowOffsetLeft,s=t.title,d=t.className,f=t.style,c=t.children,p=(0,u.default)(t,[\"placement\",\"positionTop\",\"positionLeft\",\"arrowOffsetTop\",\"arrowOffsetLeft\",\"title\",\"className\",\"style\",\"children\"]),h=(0,E.splitBsProps)(p),v=h[0],b=h[1],g=(0,l.default)({},(0,E.getClassSet)(v),(e={},e[n]=!0,e)),_=(0,l.default)({display:\"block\",top:o,left:a},f),C={top:r,left:i};return y.default.createElement(\"div\",(0,l.default)({},b,{role:\"tooltip\",className:(0,m.default)(d,g),style:_}),y.default.createElement(\"div\",{className:\"arrow\",style:C}),s&&y.default.createElement(\"h3\",{className:(0,E.prefix)(v,\"title\")},s),y.default.createElement(\"div\",{className:(0,E.prefix)(v,\"content\")},c))},t}(y.default.Component);N.propTypes=x,N.defaultProps=O,t.default=(0,E.bsClass)(\"popover\",N),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var o=e[t];if(!o)return null;var a=null;return C.default.Children.forEach(o,function(e){if(!a&&e.type!==k){var t=C.default.isValidElement(e)?e.type.displayName||e.type.name||e.type:e;a=new Error(\"Children of \"+n+\" can contain only ProgressBar \"+(\"components. Found \"+t+\".\"))}}),a}function l(e,t,n){var o=(e-t)/(n-t)*100;return Math.round(o*T)/T}t.__esModule=!0;var r=n(25),u=o(r),i=n(5),s=o(i),d=n(6),f=o(d),c=n(2),p=o(c),h=n(4),m=o(h),v=n(3),y=o(v),b=n(7),g=o(b),_=n(1),C=o(_),E=n(9),x=o(E),O=n(8),N=n(12),S=n(13),M=o(S),T=1e3,w={min:x.default.number,now:x.default.number,max:x.default.number,label:x.default.node,srOnly:x.default.bool,striped:x.default.bool,active:x.default.bool,children:a,isChild:x.default.bool},P={min:0,max:100,active:!1,isChild:!1,srOnly:!1,striped:!1},k=function(e){function t(){return(0,p.default)(this,t),(0,m.default)(this,e.apply(this,arguments))}return(0,y.default)(t,e),t.prototype.renderProgressBar=function(e){var t,n=e.min,o=e.now,a=e.max,r=e.label,u=e.srOnly,i=e.striped,d=e.active,c=e.className,p=e.style,h=(0,f.default)(e,[\"min\",\"now\",\"max\",\"label\",\"srOnly\",\"striped\",\"active\",\"className\",\"style\"]),m=(0,O.splitBsProps)(h),v=m[0],y=m[1],b=(0,s.default)({},(0,O.getClassSet)(v),(t={active:d},t[(0,O.prefix)(v,\"striped\")]=d||i,t));return C.default.createElement(\"div\",(0,s.default)({},y,{role:\"progressbar\",className:(0,g.default)(c,b),style:(0,s.default)({width:l(o,n,a)+\"%\"},p),\"aria-valuenow\":o,\"aria-valuemin\":n,\"aria-valuemax\":a}),u?C.default.createElement(\"span\",{className:\"sr-only\"},r):r)},t.prototype.render=function(){var e=this.props,t=e.isChild,n=(0,f.default)(e,[\"isChild\"]);if(t)return this.renderProgressBar(n);var o=n.min,a=n.now,l=n.max,r=n.label,u=n.srOnly,i=n.striped,d=n.active,c=n.bsClass,p=n.bsStyle,h=n.className,m=n.children,v=(0,f.default)(n,[\"min\",\"now\",\"max\",\"label\",\"srOnly\",\"striped\",\"active\",\"bsClass\",\"bsStyle\",\"className\",\"children\"]);return C.default.createElement(\"div\",(0,s.default)({},v,{className:(0,g.default)(h,\"progress\")}),m?M.default.map(m,function(e){return(0,_.cloneElement)(e,{isChild:!0})}):this.renderProgressBar({min:o,now:a,max:l,label:r,srOnly:u,striped:i,active:d,bsClass:c,bsStyle:p}))},t}(C.default.Component);k.propTypes=w,k.defaultProps=P,t.default=(0,O.bsClass)(\"progress-bar\",(0,O.bsStyles)((0,u.default)(N.State),k)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(15),C=(o(_),n(8)),E={inline:g.default.bool,disabled:g.default.bool,validationState:g.default.oneOf([\"success\",\"warning\",\"error\",null]),inputRef:g.default.func},x={inline:!1,disabled:!1},O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,o=e.validationState,a=e.inputRef,r=e.className,i=e.style,s=e.children,d=(0,u.default)(e,[\"inline\",\"disabled\",\"validationState\",\"inputRef\",\"className\",\"style\",\"children\"]),f=(0,C.splitBsProps)(d),c=f[0],p=f[1],h=y.default.createElement(\"input\",(0,l.default)({},p,{ref:a,type:\"radio\",disabled:n}));if(t){var v,b=(v={},v[(0,C.prefix)(c,\"inline\")]=!0,v.disabled=n,v);return y.default.createElement(\"label\",{className:(0,m.default)(r,b),style:i},h,s)}var g=(0,l.default)({},(0,C.getClassSet)(c),{disabled:n});return o&&(g[\"has-\"+o]=!0),y.default.createElement(\"div\",{className:(0,m.default)(r,g),style:i},y.default.createElement(\"label\",null,h,s))},t}(y.default.Component);O.propTypes=E,O.defaultProps=x,t.default=(0,C.bsClass)(\"radio\",O),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(15),C=(o(_),n(8)),E={children:g.default.element.isRequired,a16by9:g.default.bool,a4by3:g.default.bool},x={a16by9:!1,a4by3:!1},O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.a16by9,o=t.a4by3,a=t.className,r=t.children,i=(0,u.default)(t,[\"a16by9\",\"a4by3\",\"className\",\"children\"]),s=(0,C.splitBsProps)(i),d=s[0],f=s[1],c=(0,l.default)({},(0,C.getClassSet)(d),(e={},e[(0,C.prefix)(d,\"16by9\")]=n,e[(0,C.prefix)(d,\"4by3\")]=o,e));return y.default.createElement(\"div\",{className:(0,m.default)(c)},(0,v.cloneElement)(r,(0,l.default)({},f,{className:(0,m.default)(a,(0,C.prefix)(d,\"item\"))})))},t}(y.default.Component);O.propTypes=E,O.defaultProps=x,t.default=(0,C.bsClass)(\"embed-responsive\",O),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(10),g=o(b),_=n(8),C={componentClass:g.default},E={componentClass:\"div\"},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,o=(0,u.default)(e,[\"componentClass\",\"className\"]),a=(0,_.splitBsProps)(o),r=a[0],i=a[1],s=(0,_.getClassSet)(r);return y.default.createElement(t,(0,l.default)({},i,{className:(0,m.default)(n,s)}))},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"row\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(6),l=o(a),r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(5),p=o(c),h=n(1),m=o(h),v=n(9),y=o(v),b=n(32),g=o(b),_=n(39),C=o(_),E=n(173),x=o(E),O=n(41),N=o(O),S=(0,p.default)({},C.default.propTypes,{bsStyle:y.default.string,bsSize:y.default.string,href:y.default.string,onClick:y.default.func,title:y.default.node.isRequired,toggleLabel:y.default.string,children:y.default.node}),M=function(e){function t(){return(0,u.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.bsSize,n=e.bsStyle,o=e.title,a=e.toggleLabel,r=e.children,u=(0,l.default)(e,[\"bsSize\",\"bsStyle\",\"title\",\"toggleLabel\",\"children\"]),i=(0,N.default)(u,C.default.ControlledComponent),s=i[0],d=i[1];return m.default.createElement(C.default,(0,p.default)({},s,{bsSize:t,bsStyle:n}),m.default.createElement(g.default,(0,p.default)({},d,{disabled:u.disabled,bsSize:t,bsStyle:n}),o),m.default.createElement(x.default,{\"aria-label\":a||o,bsSize:t,bsStyle:n}),m.default.createElement(C.default.Menu,null,r))},t}(m.default.Component);M.propTypes=S,M.Toggle=x.default,t.default=M,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(1),p=o(c),h=n(80),m=o(h),v=function(e){function t(){return(0,u.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){return p.default.createElement(m.default,(0,l.default)({},this.props,{useAnchor:!1,noCaret:!1}))},t}(p.default.Component);v.defaultProps=m.default.defaultProps,t.default=v,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(2),l=o(a),r=n(4),u=o(r),i=n(3),s=o(i),d=n(5),f=o(d),c=n(1),p=o(c),h=n(9),m=o(h),v=n(53),y=o(v),b=n(54),g=o(b),_=n(94),C=o(_),E=(0,f.default)({},C.default.propTypes,{disabled:m.default.bool,title:m.default.node,tabClassName:m.default.string}),x=function(e){function t(){return(0,l.default)(this,t),(0,u.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.render=function(){var e=(0,f.default)({},this.props);return delete e.title,delete e.disabled,delete e.tabClassName,p.default.createElement(C.default,e)},t}(p.default.Component);x.propTypes=E,x.Container=y.default,x.Content=g.default,x.Pane=C.default,t.default=x,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(8),C={striped:g.default.bool,bordered:g.default.bool,condensed:g.default.bool,hover:g.default.bool,responsive:g.default.bool},E={bordered:!1,condensed:!1,hover:!1,responsive:!1,striped:!1},x=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.striped,o=t.bordered,a=t.condensed,r=t.hover,i=t.responsive,s=t.className,d=(0,u.default)(t,[\"striped\",\"bordered\",\"condensed\",\"hover\",\"responsive\",\"className\"]),f=(0,_.splitBsProps)(d),c=f[0],p=f[1],h=(0,l.default)({},(0,_.getClassSet)(c),(e={},e[(0,_.prefix)(c,\"striped\")]=n,e[(0,_.prefix)(c,\"bordered\")]=o,e[(0,_.prefix)(c,\"condensed\")]=a,e[(0,_.prefix)(c,\"hover\")]=r,e)),v=y.default.createElement(\"table\",(0,l.default)({},p,{className:(0,m.default)(s,h)}));return i?y.default.createElement(\"div\",{className:(0,_.prefix)(c,\"responsive\")},v):v},t}(y.default.Component);x.propTypes=C,x.defaultProps=E,t.default=(0,_.bsClass)(\"table\",x),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=void 0;return I.default.forEach(e,function(e){null==t&&(t=e.props.eventKey)}),t}t.__esModule=!0;var l=n(5),r=o(l),u=n(6),i=o(u),s=n(2),d=o(s),f=n(4),c=o(f),p=n(3),h=o(p),m=n(1),v=o(m),y=n(9),b=o(y),g=n(47),_=o(g),C=n(49),E=o(C),x=n(87),O=o(x),N=n(88),S=o(N),M=n(53),T=o(M),w=n(54),P=o(w),k=n(8),A=n(13),I=o(A),R=T.default.ControlledComponent,j={activeKey:b.default.any,bsStyle:b.default.oneOf([\"tabs\",\"pills\"]),animation:b.default.bool,id:(0,_.default)(b.default.oneOfType([b.default.string,b.default.number])),onSelect:b.default.func,mountOnEnter:b.default.bool,unmountOnExit:b.default.bool},L={bsStyle:\"tabs\",animation:!0,mountOnEnter:!1,unmountOnExit:!1},D=function(e){function t(){return(0,d.default)(this,t),(0,c.default)(this,e.apply(this,arguments))}return(0,h.default)(t,e),t.prototype.renderTab=function(e){var t=e.props,n=t.title,o=t.eventKey,a=t.disabled,l=t.tabClassName;return null==n?null:v.default.createElement(S.default,{eventKey:o,disabled:a,className:l},n)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.onSelect,o=e.animation,l=e.mountOnEnter,u=e.unmountOnExit,s=e.bsClass,d=e.className,f=e.style,c=e.children,p=e.activeKey,h=void 0===p?a(c):p,m=(0,i.default)(e,[\"id\",\"onSelect\",\"animation\",\"mountOnEnter\",\"unmountOnExit\",\"bsClass\",\"className\",\"style\",\"children\",\"activeKey\"]);return v.default.createElement(R,{id:t,activeKey:h,onSelect:n,className:d,style:f},v.default.createElement(\"div\",null,v.default.createElement(O.default,(0,r.default)({},m,{role:\"tablist\"}),I.default.map(c,this.renderTab)),v.default.createElement(P.default,{bsClass:s,animation:o,mountOnEnter:l,unmountOnExit:u},c)))},t}(v.default.Component);D.propTypes=j,D.defaultProps=L,(0,k.bsClass)(\"tab\",D),t.default=(0,E.default)(D,{activeKey:\"onSelect\"}),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(16),C=o(_),E=n(8),x={src:g.default.string,alt:g.default.string,href:g.default.string},O=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.src,n=e.alt,o=e.className,a=e.children,r=(0,u.default)(e,[\"src\",\"alt\",\"className\",\"children\"]),i=(0,E.splitBsProps)(r),s=i[0],d=i[1],f=d.href?C.default:\"div\",c=(0,E.getClassSet)(s);return y.default.createElement(f,(0,l.default)({},d,{className:(0,m.default)(o,c)}),y.default.createElement(\"img\",{src:t,alt:n}),a&&y.default.createElement(\"div\",{className:\"caption\"},a))},t}(y.default.Component);O.propTypes=x,t.default=(0,E.bsClass)(\"thumbnail\",O),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(9),g=o(b),_=n(47),C=o(_),E=n(8),x={id:(0,C.default)(g.default.oneOfType([g.default.string,g.default.number])),placement:g.default.oneOf([\"top\",\"right\",\"bottom\",\"left\"]),positionTop:g.default.oneOfType([g.default.number,g.default.string]),positionLeft:g.default.oneOfType([g.default.number,g.default.string]),arrowOffsetTop:g.default.oneOfType([g.default.number,g.default.string]),arrowOffsetLeft:g.default.oneOfType([g.default.number,g.default.string])},O={placement:\"right\"},N=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,o=t.positionTop,a=t.positionLeft,r=t.arrowOffsetTop,i=t.arrowOffsetLeft,s=t.className,d=t.style,f=t.children,c=(0,u.default)(t,[\"placement\",\"positionTop\",\"positionLeft\",\"arrowOffsetTop\",\"arrowOffsetLeft\",\"className\",\"style\",\"children\"]),p=(0,E.splitBsProps)(c),h=p[0],v=p[1],b=(0,l.default)({},(0,E.getClassSet)(h),(e={},e[n]=!0,e)),g=(0,l.default)({top:o,left:a},d),_={top:r,left:i};return y.default.createElement(\"div\",(0,l.default)({},v,{role:\"tooltip\",className:(0,m.default)(s,b),style:g}),y.default.createElement(\"div\",{className:(0,E.prefix)(h,\"arrow\"),style:_}),y.default.createElement(\"div\",{className:(0,E.prefix)(h,\"inner\")},f))},t}(y.default.Component);N.propTypes=x,N.defaultProps=O,t.default=(0,E.bsClass)(\"tooltip\",N),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(5),l=o(a),r=n(6),u=o(r),i=n(2),s=o(i),d=n(4),f=o(d),c=n(3),p=o(c),h=n(7),m=o(h),v=n(1),y=o(v),b=n(8),g=n(12),_=function(e){function t(){return(0,s.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,u.default)(e,[\"className\"]),o=(0,b.splitBsProps)(n),a=o[0],r=o[1],i=(0,b.getClassSet)(a);return y.default.createElement(\"div\",(0,l.default)({},r,{className:(0,m.default)(t,i)}))},t}(y.default.Component);t.default=(0,b.bsClass)(\"well\",(0,b.bsSizes)([g.Size.LARGE,g.Size.SMALL],_)),e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(){for(var e=arguments.length,t=Array(e),n=0;n1)||(a=t,!1)}),a?new Error(\"(children) \"+o+\" - Duplicate children detected of bsRole: \"+(a+\". Only one child each allowed with the following \")+(\"bsRoles: \"+t.join(\", \"))):null})}t.__esModule=!0,t.requiredRoles=a,t.exclusiveRoles=l;var r=n(48),u=o(r),i=n(13),s=o(i)},function(e,t){\"use strict\";function n(){var e=document.createElement(\"div\"),t=e.style;\"AnimationEvent\"in window||delete r.animationend.animation,\"TransitionEvent\"in window||delete r.transitionend.transition;for(var n in r){var o=r[n];for(var a in o)if(a in t){u.push(o[a]);break}}}function o(e,t,n){e.addEventListener(t,n,!1)}function a(e,t,n){e.removeEventListener(t,n,!1)}t.__esModule=!0;var l=!(\"undefined\"==typeof window||!window.document||!window.document.createElement),r={transitionend:{transition:\"transitionend\",WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"mozTransitionEnd\",OTransition:\"oTransitionEnd\",msTransition:\"MSTransitionEnd\"},animationend:{animation:\"animationend\",WebkitAnimation:\"webkitAnimationEnd\",MozAnimation:\"mozAnimationEnd\",OAnimation:\"oAnimationEnd\",msAnimation:\"MSAnimationEnd\"}},u=[];l&&n();var i={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){a(e,n,t)})}};t.default=i,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var o=void 0;\"object\"===(\"undefined\"==typeof e?\"undefined\":(0,p.default)(e))?o=e.message:(o=e+\" is deprecated. Use \"+t+\" instead.\",n&&(o+=\"\\nYou can read more about it at \"+n)),m[o]||(m[o]=!0)}function l(){m={}}t.__esModule=!0;var r=n(2),u=o(r),i=n(4),s=o(i),d=n(3),f=o(d),c=n(55),p=o(c);t._resetWarned=l;var h=n(15),m=(o(h),{});a.wrapper=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;od;)if(u=i[d++],u!=u)return!0}else for(;s>d;d++)if((e||d in i)&&i[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var o=n(56),a=n(18)(\"toStringTag\"),l=\"Arguments\"==o(function(){return arguments}()),r=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,u;return void 0===e?\"Undefined\":null===e?\"Null\":\"string\"==typeof(n=r(t=Object(e),a))?n:l?o(t):\"Object\"==(u=o(t))&&\"function\"==typeof t.callee?\"Arguments\":u}},function(e,t,n){\"use strict\";var o=n(24),a=n(37);e.exports=function(e,t,n){t in e?o.f(e,t,a(0,n)):e[t]=n}},function(e,t,n){var o=n(29),a=n(62),l=n(36);e.exports=function(e){var t=o(e),n=a.f;if(n)for(var r,u=n(e),i=l.f,s=0;u.length>s;)i.call(e,r=u[s++])&&t.push(r);return t}},function(e,t,n){e.exports=n(20).document&&document.documentElement},function(e,t,n){var o=n(35),a=n(18)(\"iterator\"),l=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||l[a]===e)}},function(e,t,n){var o=n(56);e.exports=Array.isArray||function(e){return\"Array\"==o(e)}},function(e,t,n){var o=n(26);e.exports=function(e,t,n,a){try{return a?t(o(n)[0],n[1]):t(n)}catch(t){var l=e.return;throw void 0!==l&&o(l.call(e)),t}}},function(e,t,n){\"use strict\";var o=n(61),a=n(37),l=n(63),r={};n(28)(r,n(18)(\"iterator\"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(r,{next:a(1,n)}),l(e,t+\" Iterator\")}},function(e,t,n){var o=n(18)(\"iterator\"),a=!1;try{var l=[7][o]();l.return=function(){a=!0},Array.from(l,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var l=[7],r=l[o]();r.next=function(){return{done:n=!0}},l[o]=function(){return r},e(l)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(29),a=n(21);e.exports=function(e,t){for(var n,l=a(e),r=o(l),u=r.length,i=0;u>i;)if(l[n=r[i++]]===t)return n}},function(e,t,n){var o=n(42)(\"meta\"),a=n(34),l=n(23),r=n(24).f,u=0,i=Object.isExtensible||function(){return!0},s=!n(33)(function(){return i(Object.preventExtensions({}))}),d=function(e){r(e,o,{value:{i:\"O\"+ ++u,w:{}}})},f=function(e,t){if(!a(e))return\"symbol\"==typeof e?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!l(e,o)){if(!i(e))return\"F\";if(!t)return\"E\";d(e)}return e[o].i},c=function(e,t){if(!l(e,o)){if(!i(e))return!0;if(!t)return!1;d(e)}return e[o].w},p=function(e){return s&&h.NEED&&i(e)&&!l(e,o)&&d(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:f,getWeak:c,onFreeze:p}},function(e,t,n){\"use strict\";var o=n(29),a=n(62),l=n(36),r=n(67),u=n(100),i=Object.assign;e.exports=!i||n(33)(function(){var e={},t={},n=Symbol(),o=\"abcdefghijklmnopqrst\";return e[n]=7,o.split(\"\").forEach(function(e){t[e]=e}),7!=i({},e)[n]||Object.keys(i({},t)).join(\"\")!=o})?function(e,t){for(var n=r(e),i=arguments.length,s=1,d=a.f,f=l.f;i>s;)for(var c,p=u(arguments[s++]),h=d?o(p).concat(d(p)):o(p),m=h.length,v=0;m>v;)f.call(p,c=h[v++])&&(n[c]=p[c]);return n}:i},function(e,t,n){var o=n(24),a=n(26),l=n(29);e.exports=n(27)?Object.defineProperties:function(e,t){a(e);for(var n,r=l(t),u=r.length,i=0;u>i;)o.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var o=n(21),a=n(103).f,l={}.toString,r=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return a(e)}catch(e){return r.slice()}};e.exports.f=function(e){return r&&\"[object Window]\"==l.call(e)?u(e):a(o(e))}},function(e,t,n){var o=n(23),a=n(67),l=n(64)(\"IE_PROTO\"),r=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),o(e,l)?e[l]:\"function\"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?r:null}},function(e,t,n){var o=n(34),a=n(26),l=function(e,t){if(a(e),!o(t)&&null!==t)throw TypeError(t+\": can't set as prototype!\")};e.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(e,t,o){try{o=n(57)(Function.call,n(102).f(Object.prototype,\"__proto__\").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return l(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:l}},function(e,t,n){var o=n(66),a=n(58);e.exports=function(e){return function(t,n){var l,r,u=String(a(t)),i=o(n),s=u.length;return i<0||i>=s?e?\"\":void 0:(l=u.charCodeAt(i),l<55296||l>56319||i+1===s||(r=u.charCodeAt(i+1))<56320||r>57343?e?u.charAt(i):l:e?u.slice(i,i+2):(l-55296<<10)+(r-56320)+65536)}}},function(e,t,n){var o=n(66),a=Math.max,l=Math.min;e.exports=function(e,t){return e=o(e),e<0?a(e+t,0):l(e,t)}},function(e,t,n){var o=n(200),a=n(18)(\"iterator\"),l=n(35);e.exports=n(17).getIteratorMethod=function(e){if(void 0!=e)return e[a]||e[\"@@iterator\"]||l[o(e)]}},function(e,t,n){\"use strict\";var o=n(57),a=n(19),l=n(67),r=n(206),u=n(204),i=n(107),s=n(201),d=n(219);a(a.S+a.F*!n(208)(function(e){Array.from(e)}),\"Array\",{from:function(e){var t,n,a,f,c=l(e),p=\"function\"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m,y=0,b=d(c);if(v&&(m=o(m,h>2?arguments[2]:void 0,2)),void 0==b||p==Array&&u(b))for(t=i(c.length),n=new p(t);t>y;y++)s(n,y,v?m(c[y],y):c[y]);else for(f=b.call(c),n=new p;!(a=f.next()).done;y++)s(n,y,v?r(f,m,[a.value,y],!0):a.value);return n.length=y,n}})},function(e,t,n){\"use strict\";var o=n(198),a=n(209),l=n(35),r=n(21);e.exports=n(101)(Array,\"Array\",function(e,t){this._t=r(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):\"keys\"==t?a(0,n):\"values\"==t?a(0,e[n]):a(0,[n,e[n]])},\"values\"),l.Arguments=l.Array,o(\"keys\"),o(\"values\"),o(\"entries\")},function(e,t,n){var o=n(19);o(o.S+o.F,\"Object\",{assign:n(212)})},function(e,t,n){var o=n(19);o(o.S,\"Object\",{create:n(61)})},function(e,t,n){var o=n(19);o(o.S,\"Object\",{setPrototypeOf:n(216).set})},function(e,t){},function(e,t,n){\"use strict\";var o=n(20),a=n(23),l=n(27),r=n(19),u=n(106),i=n(211).KEY,s=n(33),d=n(65),f=n(63),c=n(42),p=n(18),h=n(70),m=n(69),v=n(210),y=n(202),b=n(205),g=n(26),_=n(21),C=n(68),E=n(37),x=n(61),O=n(214),N=n(102),S=n(24),M=n(29),T=N.f,w=S.f,P=O.f,k=o.Symbol,A=o.JSON,I=A&&A.stringify,R=\"prototype\",j=p(\"_hidden\"),L=p(\"toPrimitive\"),D={}.propertyIsEnumerable,B=d(\"symbol-registry\"),K=d(\"symbols\"),F=d(\"op-symbols\"),H=Object[R],U=\"function\"==typeof k,z=o.QObject,$=!z||!z[R]||!z[R].findChild,W=l&&s(function(){return 7!=x(w({},\"a\",{get:function(){return w(this,\"a\",{value:7}).a}})).a})?function(e,t,n){var o=T(H,t);o&&delete H[t],w(e,t,n),o&&e!==H&&w(H,t,o)}:w,G=function(e){var t=K[e]=x(k[R]);return t._k=e,t},q=U&&\"symbol\"==typeof k.iterator?function(e){return\"symbol\"==typeof e}:function(e){return e instanceof k},V=function(e,t,n){return e===H&&V(F,t,n),g(e),t=C(t,!0),g(n),a(K,t)?(n.enumerable?(a(e,j)&&e[j][t]&&(e[j][t]=!1),n=x(n,{enumerable:E(0,!1)})):(a(e,j)||w(e,j,E(1,{})),e[j][t]=!0),W(e,t,n)):w(e,t,n)},Y=function(e,t){g(e);for(var n,o=y(t=_(t)),a=0,l=o.length;l>a;)V(e,n=o[a++],t[n]);return e},X=function(e,t){return void 0===t?x(e):Y(x(e),t)},Z=function(e){var t=D.call(this,e=C(e,!0));return!(this===H&&a(K,e)&&!a(F,e))&&(!(t||!a(this,e)||!a(K,e)||a(this,j)&&this[j][e])||t)},J=function(e,t){if(e=_(e),t=C(t,!0),e!==H||!a(K,t)||a(F,t)){var n=T(e,t);return!n||!a(K,t)||a(e,j)&&e[j][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=P(_(e)),o=[],l=0;n.length>l;)a(K,t=n[l++])||t==j||t==i||o.push(t);return o},ee=function(e){for(var t,n=e===H,o=P(n?F:_(e)),l=[],r=0;o.length>r;)!a(K,t=o[r++])||n&&!a(H,t)||l.push(K[t]);return l};U||(k=function(){if(this instanceof k)throw TypeError(\"Symbol is not a constructor!\");var e=c(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(F,n),a(this,j)&&a(this[j],e)&&(this[j][e]=!1),W(this,e,E(1,n))};return l&&$&&W(H,e,{configurable:!0,set:t}),G(e)},u(k[R],\"toString\",function(){return this._k}),N.f=J,S.f=V,n(103).f=O.f=Q,n(36).f=Z,n(62).f=ee,l&&!n(60)&&u(H,\"propertyIsEnumerable\",Z,!0),h.f=function(e){return G(p(e))}),r(r.G+r.W+r.F*!U,{Symbol:k});for(var te=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),ne=0;te.length>ne;)p(te[ne++]);for(var te=M(p.store),ne=0;te.length>ne;)m(te[ne++]);r(r.S+r.F*!U,\"Symbol\",{for:function(e){return a(B,e+=\"\")?B[e]:B[e]=k(e)},keyFor:function(e){if(q(e))return v(B,e);throw TypeError(e+\" is not a symbol!\")},useSetter:function(){$=!0},useSimple:function(){$=!1}}),r(r.S+r.F*!U,\"Object\",{create:X,defineProperty:V,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee}),A&&r(r.S+r.F*(!U||s(function(){var e=k();return\"[null]\"!=I([e])||\"{}\"!=I({a:e})||\"{}\"!=I(Object(e))})),\"JSON\",{stringify:function(e){if(void 0!==e&&!q(e)){for(var t,n,o=[e],a=1;arguments.length>a;)o.push(arguments[a++]);return t=o[1],\"function\"==typeof t&&(n=t),!n&&b(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!q(t))return t}),o[1]=t,I.apply(A,o)}}}),k[R][L]||n(28)(k[R],L,k[R].valueOf),f(k,\"Symbol\"),f(Math,\"Math\",!0),f(o.JSON,\"JSON\",!0)},function(e,t,n){var o=n(19),a=n(105)(!0);o(o.S,\"Object\",{entries:function(e){return a(e)}})},function(e,t,n){var o=n(19),a=n(105)(!1);o(o.S,\"Object\",{values:function(e){return a(e)}})},function(e,t,n){n(69)(\"asyncIterator\")},function(e,t,n){n(69)(\"observable\")},function(e,t,n){n(221);for(var o=n(20),a=n(28),l=n(35),r=n(18)(\"toStringTag\"),u=[\"NodeList\",\"DOMTokenList\",\"MediaList\",\"StyleSheetList\",\"CSSRuleList\"],i=0;i<5;i++){var s=u[i],d=o[s],f=d&&d.prototype;f&&!f[r]&&a(f,r,s),l[s]=l.Array}},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.classList?e.classList.add(t):(0,r.default)(e)||(e.className=e.className+\" \"+t)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=a;var l=n(110),r=o(l);e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.hasClass=t.removeClass=t.addClass=void 0;var a=n(232),l=o(a),r=n(234),u=o(r),i=n(110),s=o(i);t.addClass=l.default,t.removeClass=u.default,t.hasClass=s.default,t.default={addClass:l.default,removeClass:u.default,hasClass:s.default}},function(e,t){\"use strict\";e.exports=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(\"(^|\\\\s)\"+t+\"(?:\\\\s|$)\",\"g\"),\"$1\").replace(/\\s+/g,\" \").replace(/^\\s*|\\s*$/g,\"\")}},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(n){var o=n.currentTarget,a=n.target,l=(0,i.default)(o,e);l.some(function(e){return(0,r.default)(e,a)})&&t.call(this,n)}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=a;var l=n(31),r=o(l),u=n(240),i=o(u);e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.listen=t.filter=t.off=t.on=void 0;var a=n(43),l=o(a),r=n(71),u=o(r),i=n(235),s=o(i),d=n(237),f=o(d);t.on=l.default,t.off=u.default,t.filter=s.default,t.listen=f.default,t.default={on:l.default,off:u.default,filter:s.default,listen:f.default}},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var a=n(22),l=o(a),r=n(43),u=o(r),i=n(71),s=o(i),d=function(){};l.default&&(d=function(e,t,n,o){return(0,u.default)(e,t,n,o),function(){(0,s.default)(e,t,n,o)}}),t.default=d,e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.nodeName&&e.nodeName.toLowerCase()}function l(e){for(var t=(0,u.default)(e),n=e&&e.offsetParent;n&&\"html\"!==a(e)&&\"static\"===(0,s.default)(n,\"position\");)n=n.offsetParent;return n||t.documentElement}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=l;var r=n(30),u=o(r),i=n(45),s=o(i);e.exports=t.default},function(e,t,n){\"use strict\";function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return e.nodeName&&e.nodeName.toLowerCase()}function l(e,t){var n,o={top:0,left:0};return\"fixed\"===(0,v.default)(e,\"position\")?n=e.getBoundingClientRect():(t=t||(0,d.default)(e),n=(0,i.default)(e),\"html\"!==a(t)&&(o=(0,i.default)(t)),o.top+=parseInt((0,v.default)(t,\"borderTopWidth\"),10)-(0,c.default)(t)||0,o.left+=parseInt((0,v.default)(t,\"borderLeftWidth\"),10)-(0,h.default)(t)||0),r({},n,{top:n.top-o.top-(parseInt((0,v.default)(e,\"marginTop\"),10)||0),left:n.left-o.left-(parseInt((0,v.default)(e,\"marginLeft\"),10)||0)})}Object.defineProperty(t,\"__esModule\",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function l(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function r(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function u(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,\"__esModule\",{value:!0});var i=Object.assign||function(e){for(var t=1;t1?n-1:0),a=1;a=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function l(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function r(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function u(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,\"__esModule\",{value:!0});var i=Object.assign||function(e){for(var t=1;tu?u-s:0}function r(e,t,n,o){var l=a(n),r=l.width,u=e-o,i=e+o+t;return u<0?-u:i>r?r-i:0}function u(e,t,n,o,a){var u=\"BODY\"===o.tagName?(0,s.default)(n):(0,f.default)(n,o),i=(0,s.default)(t),d=i.height,c=i.width,p=void 0,h=void 0,m=void 0,v=void 0;if(\"left\"===e||\"right\"===e){h=u.top+(u.height-d)/2,p=\"left\"===e?u.left-c:u.left+u.width;var y=l(h,d,o,a);h+=y,v=50*(1-2*y/d)+\"%\",m=void 0}else{if(\"top\"!==e&&\"bottom\"!==e)throw new Error('calcOverlayPosition(): No such placement of \"'+e+'\" found.');p=u.left+(u.width-c)/2,h=\"top\"===e?u.top-d:u.top+u.height;var b=r(p,c,o,a);p+=b,m=50*(1-2*b/c)+\"%\",v=void 0}return{positionLeft:p,positionTop:h,arrowOffsetLeft:m,arrowOffsetTop:v}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=u;var i=n(111),s=o(i),d=n(239),f=o(d),c=n(112),p=o(c),h=n(38),m=o(h);e.exports=t.default},function(e,t){\"use strict\";function n(e,t){t&&(e?t.setAttribute(\"aria-hidden\",\"true\"):t.removeAttribute(\"aria-hidden\"))}function o(e,t){u(e,t,function(e){return n(!0,e)})}function a(e,t){u(e,t,function(e){return n(!1,e)})}Object.defineProperty(t,\"__esModule\",{value:!0}),t.ariaHidden=n,t.hideSiblings=o,t.showSiblings=a;var l=[\"template\",\"script\",\"style\"],r=function(e){var t=e.nodeType,n=e.tagName;return 1===t&&l.indexOf(n.toLowerCase())===-1},u=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,function(e){t.indexOf(e)===-1&&r(e)&&n(e)})}},function(e,t,n){\"use strict\";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){function n(o,a){function l(e,n){var o=c.getLinkName(e),l=this.props[a[e]];o&&u(this.props,o)&&!l&&(l=this.props[o].requestChange);for(var r=arguments.length,i=Array(r>2?r-2:0),s=2;s=15||0===b[0]&&b[1]>=13?e:e.type}function r(e,t){var n=i(t);return n&&!u(e,t)&&u(e,n)?e[n].value:e[t]}function u(e,t){return void 0!==e[t]}function i(e){return\"value\"===e?\"valueLink\":\"checked\"===e?\"checkedLink\":null}function s(e){return\"default\"+e.charAt(0).toUpperCase()+e.substr(1)}function d(e,t,n){return function(){for(var o=arguments.length,a=Array(o),l=0;l' +\r\n '
      ' +\r\n '
      ' +\r\n '
      ' +\r\n '
      ';\r\n }\r\n\r\n function link (scope, element, attrs) {\r\n var defaults = {\r\n overlayDelayIn: 500,\r\n overlayDelayOut: 500\r\n };\r\n var delayIn = scope.ngplusOverlayDelayIn ? scope.ngplusOverlayDelayIn : defaults.overlayDelayIn;\r\n var delayOut = scope.ngplusOverlayDelayOut ? scope.ngplusOverlayDelayOut : defaults.overlayDelayOut;\r\n var overlayContainer = null;\r\n var queue = [];\r\n var timerPromise = null;\r\n var timerPromiseHide = null;\r\n\r\n init();\r\n\r\n function init() {\r\n wireUpHttpInterceptor();\r\n if (window.jQuery) wirejQueryInterceptor();\r\n overlayContainer = document.getElementById('ngplus-overlay-container');\r\n }\r\n\r\n //Hook into httpInterceptor factory request/response/responseError functions\r\n function wireUpHttpInterceptor() {\r\n\r\n httpInterceptor.request = function (config) {\r\n processRequest();\r\n return config || $q.when(config);\r\n };\r\n\r\n httpInterceptor.response = function (response) {\r\n processResponse();\r\n return response || $q.when(response);\r\n };\r\n\r\n httpInterceptor.responseError = function (rejection) {\r\n processResponse();\r\n return $q.reject(rejection);\r\n };\r\n }\r\n\r\n //Monitor jQuery Ajax calls in case it's used in an app\r\n function wirejQueryInterceptor() {\r\n $(document).ajaxStart(function () { processRequest(); });\r\n $(document).ajaxComplete(function () { processResponse(); });\r\n $(document).ajaxError(function () { processResponse(); });\r\n }\r\n\r\n function processRequest() {\r\n queue.push({});\r\n if (queue.length == 1) {\r\n timerPromise = $timeout(function () {\r\n if (queue.length) showOverlay();\r\n }, delayIn); //Delay showing for 500 millis to avoid flicker\r\n }\r\n }\r\n\r\n function processResponse() {\r\n queue.pop();\r\n if (queue.length == 0) {\r\n //Since we don't know if another XHR request will be made, pause before\r\n //hiding the overlay. If another XHR request comes in then the overlay\r\n //will stay visible which prevents a flicker\r\n timerPromiseHide = $timeout(function () {\r\n //Make sure queue is still 0 since a new XHR request may have come in\r\n //while timer was running\r\n if (queue.length == 0) {\r\n hideOverlay();\r\n if (timerPromiseHide) $timeout.cancel(timerPromiseHide);\r\n }\r\n }, delayOut);\r\n }\r\n }\r\n\r\n function showOverlay() {\r\n var w = 0;\r\n var h = 0;\r\n if (!$window.innerWidth) {\r\n if (!(document.documentElement.clientWidth == 0)) {\r\n w = document.documentElement.clientWidth;\r\n h = document.documentElement.clientHeight;\r\n }\r\n else {\r\n w = document.body.clientWidth;\r\n h = document.body.clientHeight;\r\n }\r\n }\r\n else {\r\n w = $window.innerWidth;\r\n h = $window.innerHeight;\r\n }\r\n var content = document.getElementById('ngplus-overlay-content');\r\n var contentWidth = parseInt(getComputedStyle(content, 'width').replace('px', ''));\r\n var contentHeight = parseInt(getComputedStyle(content, 'height').replace('px', ''));\r\n\r\n content.style.top = h / 2 - contentHeight / 2 + 'px';\r\n content.style.left = w / 2 - contentWidth / 2 + 'px';\r\n\r\n scope.show = true;\r\n }\r\n\r\n function hideOverlay() {\r\n if (timerPromise) $timeout.cancel(timerPromise);\r\n scope.show = false;\r\n }\r\n\r\n var getComputedStyle = function () {\r\n var func = null;\r\n if (document.defaultView && document.defaultView.getComputedStyle) {\r\n func = document.defaultView.getComputedStyle;\r\n } else if (typeof (document.body.currentStyle) !== \"undefined\") {\r\n func = function (element, anything) {\r\n return element[\"currentStyle\"];\r\n };\r\n }\r\n\r\n return function (element, style) {\r\n return func(element, null)[style];\r\n }\r\n }();\r\n }\r\n }\r\n \r\n}());","angular.module(\"colorpicker.module\", []).factory(\"Helper\", function () { \"use strict\"; return { closestSlider: function (e) { var o = e.matches || e.webkitMatchesSelector || e.mozMatchesSelector || e.msMatchesSelector; return o.bind(e)(\"I\") ? e.parentNode : e }, getOffset: function (e, o) { for (var t = 0, r = 0, n = 0, i = 0; e && !isNaN(e.offsetLeft) && !isNaN(e.offsetTop) ;) t += e.offsetLeft, r += e.offsetTop, o || \"BODY\" !== e.tagName ? (n += e.scrollLeft, i += e.scrollTop) : (n += document.documentElement.scrollLeft || e.scrollLeft, i += document.documentElement.scrollTop || e.scrollTop), e = e.offsetParent; return { top: r, left: t, scrollX: n, scrollY: i } }, stringParsers: [{ re: /rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/, parse: function (e) { return [e[1], e[2], e[3], e[4]] } }, { re: /rgba?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d+(?:\\.\\d+)?)\\s*)?\\)/, parse: function (e) { return [2.55 * e[1], 2.55 * e[2], 2.55 * e[3], e[4]] } }, { re: /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/, parse: function (e) { return [parseInt(e[1], 16), parseInt(e[2], 16), parseInt(e[3], 16)] } }, { re: /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/, parse: function (e) { return [parseInt(e[1] + e[1], 16), parseInt(e[2] + e[2], 16), parseInt(e[3] + e[3], 16)] } }] } }).factory(\"Color\", [\"Helper\", function (e) { \"use strict\"; return { value: { h: 1, s: 1, b: 1, a: 1 }, rgb: function () { var e = this.toRGB(); return \"rgb(\" + e.r + \",\" + e.g + \",\" + e.b + \")\" }, rgba: function () { var e = this.toRGB(); return \"rgba(\" + e.r + \",\" + e.g + \",\" + e.b + \",\" + e.a + \")\" }, hex: function () { return this.toHex() }, RGBtoHSB: function (e, o, t, r) { e /= 255, o /= 255, t /= 255; var n, i, l, c; return l = Math.max(e, o, t), c = l - Math.min(e, o, t), n = 0 === c ? null : l === e ? (o - t) / c : l === o ? (t - e) / c + 2 : (e - o) / c + 4, n = (n + 360) % 6 * 60 / 360, i = 0 === c ? 0 : c / l, { h: n || 1, s: i, b: l, a: r || 1 } }, setColor: function (o) { o = o.toLowerCase(); for (var t in e.stringParsers) if (e.stringParsers.hasOwnProperty(t)) { var r = e.stringParsers[t], n = r.re.exec(o), i = n && r.parse(n); if (i) return this.value = this.RGBtoHSB.apply(null, i), !1 } }, setHue: function (e) { this.value.h = 1 - e }, setSaturation: function (e) { this.value.s = e }, setLightness: function (e) { this.value.b = 1 - e }, setAlpha: function (e) { this.value.a = parseInt(100 * (1 - e), 10) / 100 }, toRGB: function (e, o, t, r) { e || (e = this.value.h, o = this.value.s, t = this.value.b), e *= 360; var n, i, l, c, s; return e = e % 360 / 60, s = t * o, c = s * (1 - Math.abs(e % 2 - 1)), n = i = l = t - s, e = ~~e, n += [s, c, 0, 0, c, s][e], i += [c, s, s, c, 0, 0][e], l += [0, 0, c, s, s, c][e], { r: Math.round(255 * n), g: Math.round(255 * i), b: Math.round(255 * l), a: r || this.value.a } }, toHex: function (e, o, t, r) { var n = this.toRGB(e, o, t, r); return \"#\" + (1 << 24 | parseInt(n.r, 10) << 16 | parseInt(n.g, 10) << 8 | parseInt(n.b, 10)).toString(16).substr(1) } } }]).factory(\"Slider\", [\"Helper\", function (e) { \"use strict\"; var o = { maxLeft: 0, maxTop: 0, callLeft: null, callTop: null, knob: { top: 0, left: 0 } }, t = {}; return { getSlider: function () { return o }, getLeftPosition: function (e) { return Math.max(0, Math.min(o.maxLeft, o.left + ((e.pageX || t.left) - t.left))) }, getTopPosition: function (e) { return Math.max(0, Math.min(o.maxTop, o.top + ((e.pageY || t.top) - t.top))) }, setSlider: function (r, n) { var i = e.closestSlider(r.target), l = e.getOffset(i, n), c = i.getBoundingClientRect(), s = r.clientX - c.left, a = r.clientY - c.top; o.knob = i.children[0].style, o.left = r.pageX - l.left - window.pageXOffset + l.scrollX, o.top = r.pageY - l.top - window.pageYOffset + l.scrollY, t = { left: r.pageX - (s - o.left), top: r.pageY - (a - o.top) } }, setSaturation: function (e, t) { o = { maxLeft: 100, maxTop: 100, callLeft: \"setSaturation\", callTop: \"setLightness\" }, this.setSlider(e, t) }, setHue: function (e, t) { o = { maxLeft: 0, maxTop: 100, callLeft: !1, callTop: \"setHue\" }, this.setSlider(e, t) }, setAlpha: function (e, t) { o = { maxLeft: 0, maxTop: 100, callLeft: !1, callTop: \"setAlpha\" }, this.setSlider(e, t) }, setKnob: function (e, t) { o.knob.top = e + \"px\", o.knob.left = t + \"px\" } } }]).directive(\"colorpicker\", [\"$document\", \"$compile\", \"Color\", \"Slider\", \"Helper\", function (e, o, t, r, n) { \"use strict\"; return { require: \"?ngModel\", restrict: \"A\", link: function (i, l, c, s) { var a, u = c.colorpicker ? c.colorpicker : \"hex\", p = angular.isDefined(c.colorpickerPosition) ? c.colorpickerPosition : \"bottom\", f = angular.isDefined(c.colorpickerInline) ? c.colorpickerInline : !1, d = angular.isDefined(c.colorpickerFixedPosition) ? c.colorpickerFixedPosition : !1, h = angular.isDefined(c.colorpickerParent) ? l.parent() : angular.element(document.body), k = angular.isDefined(c.colorpickerWithInput) ? c.colorpickerWithInput : !1, g = k ? '' : \"\", v = f ? \"\" : '', m = '
      ' + g + v + \"
      \", b = angular.element(m), x = t, w = b.find(\"colorpicker-hue\"), S = b.find(\"colorpicker-saturation\"), I = b.find(\"colorpicker-preview\"), L = b.find(\"i\"); if (o(b)(i), k) { var C = b.find(\"input\"); C.on(\"mousedown\", function (e) { e.stopPropagation() }).on(\"keyup\", function (e) { var o = this.value; l.val(o), s && i.$apply(s.$setViewValue(o)), e.stopPropagation(), e.preventDefault() }), l.on(\"keyup\", function () { C.val(l.val()) }) } var P = function () { e.on(\"mousemove\", T), e.on(\"mouseup\", H) }; \"rgba\" === u && (b.addClass(\"alpha\"), a = b.find(\"colorpicker-alpha\"), a.on(\"click\", function (e) { r.setAlpha(e, d), T(e) }).on(\"mousedown\", function (e) { r.setAlpha(e, d), P() }).on(\"mouseup\", function (e) { B(\"colorpicker-selected-alpha\") })), w.on(\"click\", function (e) { r.setHue(e, d), T(e) }).on(\"mousedown\", function (e) { r.setHue(e, d), P() }).on(\"mouseup\", function (e) { B(\"colorpicker-selected-hue\") }), S.on(\"click\", function (e) { r.setSaturation(e, d), T(e), angular.isDefined(c.colorpickerCloseOnSelect) && D() }).on(\"mousedown\", function (e) { r.setSaturation(e, d), P() }).on(\"mouseup\", function (e) { B(\"colorpicker-selected-saturation\") }), d && b.addClass(\"colorpicker-fixed-position\"), b.addClass(\"colorpicker-position-\" + p), \"true\" === f && b.addClass(\"colorpicker-inline\"), h.append(b), s && (s.$render = function () { l.val(s.$viewValue) }, i.$watch(c.ngModel, function (e) { M(), k && C.val(e) })), l.on(\"$destroy\", function () { b.remove() }); var $ = function () { try { I.css(\"backgroundColor\", x[u]()) } catch (e) { I.css(\"backgroundColor\", x.toHex()) } S.css(\"backgroundColor\", x.toHex(x.value.h, 1, 1, 1)), \"rgba\" === u && (a.css.backgroundColor = x.toHex()) }, T = function (e) { var o = r.getLeftPosition(e), t = r.getTopPosition(e), n = r.getSlider(); r.setKnob(t, o), n.callLeft && x[n.callLeft].call(x, o / 100), n.callTop && x[n.callTop].call(x, t / 100), $(); var c = x[u](); return l.val(c), s && i.$apply(s.$setViewValue(c)), k && C.val(c), !1 }, H = function () { B(\"colorpicker-selected\"), e.off(\"mousemove\", T), e.off(\"mouseup\", H) }, M = function () { x.setColor(l.val()), L.eq(0).css({ left: 100 * x.value.s + \"px\", top: 100 - 100 * x.value.b + \"px\" }), L.eq(1).css(\"top\", 100 * (1 - x.value.h) + \"px\"), L.eq(2).css(\"top\", 100 * (1 - x.value.a) + \"px\"), $() }, y = function () { var e, o = n.getOffset(l[0]); return angular.isDefined(c.colorpickerParent) && (o.left = 0, o.top = 0), \"top\" === p ? e = { top: o.top - 147, left: o.left } : \"right\" === p ? e = { top: o.top, left: o.left + 126 } : \"bottom\" === p ? e = { top: o.top + l[0].offsetHeight + 2, left: o.left } : \"left\" === p && (e = { top: o.top, left: o.left - 150 }), { top: e.top + \"px\", left: e.left + \"px\" } }, O = function () { D() }, A = function () { b.hasClass(\"colorpicker-visible\") || (M(), b.addClass(\"colorpicker-visible\").css(y()), B(\"colorpicker-shown\"), f === !1 && e.on(\"mousedown\", O), c.colorpickerIsOpen && (i[c.colorpickerIsOpen] = !0, i.$$phase || i.$digest())) }; f === !1 ? l.on(\"click\", A) : A(), b.on(\"mousedown\", function (e) { e.stopPropagation(), e.preventDefault() }); var B = function (e) { s && i.$emit(e, { name: c.ngModel, value: s.$modelValue }) }, D = function () { b.hasClass(\"colorpicker-visible\") && (b.removeClass(\"colorpicker-visible\"), B(\"colorpicker-closed\"), e.off(\"mousedown\", O), c.colorpickerIsOpen && (i[c.colorpickerIsOpen] = !1, i.$$phase || i.$digest())) }; b.find(\"button\").on(\"click\", function () { D() }), c.colorpickerIsOpen && i.$watch(c.colorpickerIsOpen, function (e) { e === !0 ? A() : e === !1 && D() }) } } }]);","/*!\n * ASP.NET SignalR JavaScript Library 2.4.3\n * http://signalr.net/\n *\n * Copyright (c) .NET Foundation. All rights reserved.\n * Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n *\n */\n(function (n, t, i) { function w(t, i) { var u, f; if (n.isArray(t)) { for (u = t.length - 1; u >= 0; u--)f = t[u], n.type(f) === \"string\" && r.transports[f] || (i.log(\"Invalid transport: \" + f + \", removing it from the transports list.\"), t.splice(u, 1)); t.length === 0 && (i.log(\"No transports remain within the specified transport array.\"), t = null) } else if (r.transports[t] || t === \"auto\") { if (t === \"auto\" && r._.ieVersion <= 8) return [\"longPolling\"] } else i.log(\"Invalid transport: \" + t.toString() + \".\"), t = null; return t } function b(n) { return n === \"http:\" ? 80 : n === \"https:\" ? 443 : void 0 } function a(n, t) { return t.match(/:\\d+$/) ? t : t + \":\" + b(n) } function k(t, i) { var u = this, r = []; u.tryBuffer = function (i) { return t.state === n.signalR.connectionState.connecting ? (r.push(i), !0) : !1 }; u.drain = function () { if (t.state === n.signalR.connectionState.connected) while (r.length > 0) i(r.shift()) }; u.clear = function () { r = [] } } var f = { nojQuery: \"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.\", noTransportOnInit: \"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.\", errorOnNegotiate: \"Error during negotiation request.\", stoppedWhileLoading: \"The connection was stopped during page load.\", stoppedWhileNegotiating: \"The connection was stopped during the negotiate request.\", errorParsingNegotiateResponse: \"Error parsing negotiate response.\", errorRedirectionExceedsLimit: \"Negotiate redirection limit exceeded.\", errorDuringStartRequest: \"Error during start request. Stopping the connection.\", errorFromServer: \"Error message received from the server: '{0}'.\", stoppedDuringStartRequest: \"The connection was stopped during the start request.\", errorParsingStartResponse: \"Error parsing start response: '{0}'. Stopping the connection.\", invalidStartResponse: \"Invalid start response: '{0}'. Stopping the connection.\", protocolIncompatible: \"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.\", aspnetCoreSignalrServer: \"Detected a connection attempt to an ASP.NET Core SignalR Server. This client only supports connecting to an ASP.NET SignalR Server. See https://aka.ms/signalr-core-differences for details.\", sendFailed: \"Send failed.\", parseFailed: \"Failed at parsing response: {0}\", longPollFailed: \"Long polling request failed.\", eventSourceFailedToConnect: \"EventSource failed to connect.\", eventSourceError: \"Error raised by EventSource\", webSocketClosed: \"WebSocket closed.\", pingServerFailedInvalidResponse: \"Invalid ping response when pinging server: '{0}'.\", pingServerFailed: \"Failed to ping server.\", pingServerFailedStatusCode: \"Failed to ping server. Server responded with status code {0}, stopping the connection.\", pingServerFailedParse: \"Failed to parse ping server response, stopping the connection.\", noConnectionTransport: \"Connection is in an invalid state, there is no transport active.\", webSocketsInvalidState: \"The Web Socket transport is in an invalid state, transitioning into reconnecting.\", reconnectTimeout: \"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.\", reconnectWindowTimeout: \"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection.\", jsonpNotSupportedWithAccessToken: \"The JSONP protocol does not support connections that require a Bearer token to connect, such as the Azure SignalR Service.\" }; if (typeof n != \"function\") throw new Error(f.nojQuery); var r, h, o = t.document.readyState === \"complete\", e = n(t), c = \"__Negotiate Aborted__\", u = { onStart: \"onStart\", onStarting: \"onStarting\", onReceived: \"onReceived\", onError: \"onError\", onConnectionSlow: \"onConnectionSlow\", onReconnecting: \"onReconnecting\", onReconnect: \"onReconnect\", onStateChanged: \"onStateChanged\", onDisconnect: \"onDisconnect\" }, v = function (n, i) { if (i !== !1) { var r; typeof t.console != \"undefined\" && (r = \"[\" + (new Date).toTimeString() + \"] SignalR: \" + n, t.console.debug ? t.console.debug(r) : t.console.log && t.console.log(r)) } }, s = function (t, i, r) { return i === t.state ? (t.state = r, n(t).triggerHandler(u.onStateChanged, [{ oldState: i, newState: r }]), !0) : !1 }, y = function (n) { return n.state === r.connectionState.disconnected }, l = function (n) { return n._.keepAliveData.activated && n.transport.supportsKeepAlive(n) }, p = function (i) { var f, e; i._.configuredStopReconnectingTimeout || (e = function (t) { var i = r._.format(r.resources.reconnectTimeout, t.disconnectTimeout); t.log(i); n(t).triggerHandler(u.onError, [r._.error(i, \"TimeoutException\")]); t.stop(!1, !1) }, i.reconnecting(function () { var n = this; n.state === r.connectionState.reconnecting && (f = t.setTimeout(function () { e(n) }, n.disconnectTimeout)) }), i.stateChanged(function (n) { n.oldState === r.connectionState.reconnecting && t.clearTimeout(f) }), i._.configuredStopReconnectingTimeout = !0) }; if (r = function (n, t, i) { return new r.fn.init(n, t, i) }, r._ = { defaultContentType: \"application/x-www-form-urlencoded; charset=UTF-8\", ieVersion: function () { var i, n; return t.navigator.appName === \"Microsoft Internet Explorer\" && (n = /MSIE ([0-9]+\\.[0-9]+)/.exec(t.navigator.userAgent), n && (i = t.parseFloat(n[1]))), i }(), error: function (n, t, i) { var r = new Error(n); return r.source = t, typeof i != \"undefined\" && (r.context = i), r }, transportError: function (n, t, r, u) { var f = this.error(n, r, u); return f.transport = t ? t.name : i, f }, format: function () { for (var t = arguments[0], n = 0; n < arguments.length - 1; n++)t = t.replace(\"{\" + n + \"}\", arguments[n + 1]); return t }, firefoxMajorVersion: function (n) { var t = n.match(/Firefox\\/(\\d+)/); return !t || !t.length || t.length < 2 ? 0 : parseInt(t[1], 10) }, configurePingInterval: function (i) { var f = i._.config, e = function (t) { n(i).triggerHandler(u.onError, [t]) }; f && !i._.pingIntervalId && f.pingInterval && (i._.pingIntervalId = t.setInterval(function () { r.transports._logic.pingServer(i).fail(e) }, f.pingInterval)) } }, r.events = u, r.resources = f, r.ajaxDefaults = { processData: !0, timeout: null, async: !0, global: !1, cache: !1 }, r.changeState = s, r.isDisconnecting = y, r.connectionState = { connecting: 0, connected: 1, reconnecting: 2, disconnected: 4 }, r.hub = { start: function () { throw new Error(\"SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g.