UNPKG

@kmhgmbh/dialer-vue-components

Version:

VueJS components for telephony and dialer functions

1,472 lines (1,471 loc) 551 kB
var zf = Object.defineProperty; var Kf = (n, s, i) => s in n ? zf(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i; var Ve = (n, s, i) => (Kf(n, typeof s != "symbol" ? s + "" : s, i), i); import { ref as K, watch as Ds, defineComponent as ot, onMounted as Al, resolveComponent as le, openBlock as se, createBlock as Se, withCtx as Q, createVNode as ie, mergeProps as Qf, createTextVNode as be, createElementVNode as ke, toDisplayString as at, createCommentVNode as Ge, createElementBlock as Fe, normalizeClass as zu, Fragment as Ns, renderList as sl, unref as An, computed as il, onUnmounted as Jf, onUpdated as Xf, pushScopeId as Zf, popScopeId as ed } from "vue"; //! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var Ku; function Y() { return Ku.apply(null, arguments); } function td(n) { Ku = n; } function kt(n) { return n instanceof Array || Object.prototype.toString.call(n) === "[object Array]"; } function On(n) { return n != null && Object.prototype.toString.call(n) === "[object Object]"; } function ge(n, s) { return Object.prototype.hasOwnProperty.call(n, s); } function Rl(n) { if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(n).length === 0; var s; for (s in n) if (ge(n, s)) return !1; return !0; } function ct(n) { return n === void 0; } function nn(n) { return typeof n == "number" || Object.prototype.toString.call(n) === "[object Number]"; } function Er(n) { return n instanceof Date || Object.prototype.toString.call(n) === "[object Date]"; } function Qu(n, s) { var i = [], r, l = n.length; for (r = 0; r < l; ++r) i.push(s(n[r], r)); return i; } function un(n, s) { for (var i in s) ge(s, i) && (n[i] = s[i]); return ge(s, "toString") && (n.toString = s.toString), ge(s, "valueOf") && (n.valueOf = s.valueOf), n; } function Yt(n, s, i, r) { return Tc(n, s, i, r, !0).utc(); } function nd() { return { 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 }; } function fe(n) { return n._pf == null && (n._pf = nd()), n._pf; } var ll; Array.prototype.some ? ll = Array.prototype.some : ll = function(n) { var s = Object(this), i = s.length >>> 0, r; for (r = 0; r < i; r++) if (r in s && n.call(this, s[r], r, s)) return !0; return !1; }; function Il(n) { if (n._isValid == null) { var s = fe(n), i = ll.call(s.parsedDateParts, function(l) { return l != null; }), r = !isNaN(n._d.getTime()) && s.overflow < 0 && !s.empty && !s.invalidEra && !s.invalidMonth && !s.invalidWeekday && !s.weekdayMismatch && !s.nullInput && !s.invalidFormat && !s.userInvalidated && (!s.meridiem || s.meridiem && i); if (n._strict && (r = r && s.charsLeftOver === 0 && s.unusedTokens.length === 0 && s.bigHour === void 0), Object.isFrozen == null || !Object.isFrozen(n)) n._isValid = r; else return r; } return n._isValid; } function zs(n) { var s = Yt(NaN); return n != null ? un(fe(s), n) : fe(s).userInvalidated = !0, s; } var Po = Y.momentProperties = [], Oi = !1; function Ol(n, s) { var i, r, l, u = Po.length; if (ct(s._isAMomentObject) || (n._isAMomentObject = s._isAMomentObject), ct(s._i) || (n._i = s._i), ct(s._f) || (n._f = s._f), ct(s._l) || (n._l = s._l), ct(s._strict) || (n._strict = s._strict), ct(s._tzm) || (n._tzm = s._tzm), ct(s._isUTC) || (n._isUTC = s._isUTC), ct(s._offset) || (n._offset = s._offset), ct(s._pf) || (n._pf = fe(s)), ct(s._locale) || (n._locale = s._locale), u > 0) for (i = 0; i < u; i++) r = Po[i], l = s[r], ct(l) || (n[r] = l); return n; } function wr(n) { Ol(this, n), this._d = new Date(n._d != null ? n._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Oi === !1 && (Oi = !0, Y.updateOffset(this), Oi = !1); } function Dt(n) { return n instanceof wr || n != null && n._isAMomentObject != null; } function Ju(n) { Y.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + n); } function Et(n, s) { var i = !0; return un(function() { if (Y.deprecationHandler != null && Y.deprecationHandler(null, n), i) { var r = [], l, u, e, d = arguments.length; for (u = 0; u < d; u++) { if (l = "", typeof arguments[u] == "object") { l += ` [` + u + "] "; for (e in arguments[0]) ge(arguments[0], e) && (l += e + ": " + arguments[0][e] + ", "); l = l.slice(0, -2); } else l = arguments[u]; r.push(l); } Ju( n + ` Arguments: ` + Array.prototype.slice.call(r).join("") + ` ` + new Error().stack ), i = !1; } return s.apply(this, arguments); }, s); } var Lo = {}; function Xu(n, s) { Y.deprecationHandler != null && Y.deprecationHandler(n, s), Lo[n] || (Ju(s), Lo[n] = !0); } Y.suppressDeprecationWarnings = !1; Y.deprecationHandler = null; function qt(n) { return typeof Function < "u" && n instanceof Function || Object.prototype.toString.call(n) === "[object Function]"; } function rd(n) { var s, i; for (i in n) ge(n, i) && (s = n[i], qt(s) ? this[i] = s : this["_" + i] = s); this._config = n, this._dayOfMonthOrdinalParseLenient = new RegExp( (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source ); } function al(n, s) { var i = un({}, n), r; for (r in s) ge(s, r) && (On(n[r]) && On(s[r]) ? (i[r] = {}, un(i[r], n[r]), un(i[r], s[r])) : s[r] != null ? i[r] = s[r] : delete i[r]); for (r in n) ge(n, r) && !ge(s, r) && On(n[r]) && (i[r] = un({}, i[r])); return i; } function kl(n) { n != null && this.set(n); } var ol; Object.keys ? ol = Object.keys : ol = function(n) { var s, i = []; for (s in n) ge(n, s) && i.push(s); return i; }; var sd = { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }; function id(n, s, i) { var r = this._calendar[n] || this._calendar.sameElse; return qt(r) ? r.call(s, i) : r; } function $t(n, s, i) { var r = "" + Math.abs(n), l = s - r.length, u = n >= 0; return (u ? i ? "+" : "" : "-") + Math.pow(10, Math.max(0, l)).toString().substr(1) + r; } var Dl = /(\[[^\[]*\])|(\\)?([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, ns = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, ki = {}, $n = {}; function Z(n, s, i, r) { var l = r; typeof r == "string" && (l = function() { return this[r](); }), n && ($n[n] = l), s && ($n[s[0]] = function() { return $t(l.apply(this, arguments), s[1], s[2]); }), i && ($n[i] = function() { return this.localeData().ordinal( l.apply(this, arguments), n ); }); } function ld(n) { return n.match(/\[[\s\S]/) ? n.replace(/^\[|\]$/g, "") : n.replace(/\\/g, ""); } function ad(n) { var s = n.match(Dl), i, r; for (i = 0, r = s.length; i < r; i++) $n[s[i]] ? s[i] = $n[s[i]] : s[i] = ld(s[i]); return function(l) { var u = "", e; for (e = 0; e < r; e++) u += qt(s[e]) ? s[e].call(l, n) : s[e]; return u; }; } function ps(n, s) { return n.isValid() ? (s = Zu(s, n.localeData()), ki[s] = ki[s] || ad(s), ki[s](n)) : n.localeData().invalidDate(); } function Zu(n, s) { var i = 5; function r(l) { return s.longDateFormat(l) || l; } for (ns.lastIndex = 0; i >= 0 && ns.test(n); ) n = n.replace( ns, r ), ns.lastIndex = 0, i -= 1; return n; } var od = { 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" }; function ud(n) { var s = this._longDateFormat[n], i = this._longDateFormat[n.toUpperCase()]; return s || !i ? s : (this._longDateFormat[n] = i.match(Dl).map(function(r) { return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r; }).join(""), this._longDateFormat[n]); } var cd = "Invalid date"; function fd() { return this._invalidDate; } var dd = "%d", hd = /\d{1,2}/; function _d(n) { return this._ordinal.replace("%d", n); } var pd = { 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" }; function vd(n, s, i, r) { var l = this._relativeTime[i]; return qt(l) ? l(n, s, i, r) : l.replace(/%d/i, n); } function md(n, s) { var i = this._relativeTime[n > 0 ? "future" : "past"]; return qt(i) ? i(s) : i.replace(/%s/i, s); } var pr = {}; function tt(n, s) { var i = n.toLowerCase(); pr[i] = pr[i + "s"] = pr[s] = n; } function wt(n) { return typeof n == "string" ? pr[n] || pr[n.toLowerCase()] : void 0; } function Nl(n) { var s = {}, i, r; for (r in n) ge(n, r) && (i = wt(r), i && (s[i] = n[r])); return s; } var ec = {}; function nt(n, s) { ec[n] = s; } function gd(n) { var s = [], i; for (i in n) ge(n, i) && s.push({ unit: i, priority: ec[i] }); return s.sort(function(r, l) { return r.priority - l.priority; }), s; } function Ks(n) { return n % 4 === 0 && n % 100 !== 0 || n % 400 === 0; } function bt(n) { return n < 0 ? Math.ceil(n) || 0 : Math.floor(n); } function _e(n) { var s = +n, i = 0; return s !== 0 && isFinite(s) && (i = bt(s)), i; } function jn(n, s) { return function(i) { return i != null ? (tc(this, n, i), Y.updateOffset(this, s), this) : xs(this, n); }; } function xs(n, s) { return n.isValid() ? n._d["get" + (n._isUTC ? "UTC" : "") + s]() : NaN; } function tc(n, s, i) { n.isValid() && !isNaN(i) && (s === "FullYear" && Ks(n.year()) && n.month() === 1 && n.date() === 29 ? (i = _e(i), n._d["set" + (n._isUTC ? "UTC" : "") + s]( i, n.month(), ti(i, n.month()) )) : n._d["set" + (n._isUTC ? "UTC" : "") + s](i)); } function yd(n) { return n = wt(n), qt(this[n]) ? this[n]() : this; } function Td(n, s) { if (typeof n == "object") { n = Nl(n); var i = gd(n), r, l = i.length; for (r = 0; r < l; r++) this[i[r].unit](n[i[r].unit]); } else if (n = wt(n), qt(this[n])) return this[n](s); return this; } var nc = /\d/, pt = /\d\d/, rc = /\d{3}/, xl = /\d{4}/, Qs = /[+-]?\d{6}/, Ne = /\d\d?/, sc = /\d\d\d\d?/, ic = /\d\d\d\d\d\d?/, Js = /\d{1,3}/, Ml = /\d{1,4}/, Xs = /[+-]?\d{1,6}/, Vn = /\d+/, Zs = /[+-]?\d+/, Sd = /Z|[+-]\d\d:?\d\d/gi, ei = /Z|[+-]\d\d(?::?\d\d)?/gi, bd = /[+-]?\d+(\.\d{1,3})?/, Ar = /[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, Ms; Ms = {}; function V(n, s, i) { Ms[n] = qt(s) ? s : function(r, l) { return r && i ? i : s; }; } function Cd(n, s) { return ge(Ms, n) ? Ms[n](s._strict, s._locale) : new RegExp(Ed(n)); } function Ed(n) { return _t( n.replace("\\", "").replace( /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(s, i, r, l, u) { return i || r || l || u; } ) ); } function _t(n) { return n.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); } var ul = {}; function we(n, s) { var i, r = s, l; for (typeof n == "string" && (n = [n]), nn(s) && (r = function(u, e) { e[s] = _e(u); }), l = n.length, i = 0; i < l; i++) ul[n[i]] = r; } function Rr(n, s) { we(n, function(i, r, l, u) { l._w = l._w || {}, s(i, l._w, l, u); }); } function wd(n, s, i) { s != null && ge(ul, n) && ul[n](s, i._a, i, n); } var et = 0, Zt = 1, Ft = 2, je = 3, Ot = 4, en = 5, Rn = 6, Ad = 7, Rd = 8; function Id(n, s) { return (n % s + s) % s; } var Ue; Array.prototype.indexOf ? Ue = Array.prototype.indexOf : Ue = function(n) { var s; for (s = 0; s < this.length; ++s) if (this[s] === n) return s; return -1; }; function ti(n, s) { if (isNaN(n) || isNaN(s)) return NaN; var i = Id(s, 12); return n += (s - i) / 12, i === 1 ? Ks(n) ? 29 : 28 : 31 - i % 7 % 2; } Z("M", ["MM", 2], "Mo", function() { return this.month() + 1; }); Z("MMM", 0, 0, function(n) { return this.localeData().monthsShort(this, n); }); Z("MMMM", 0, 0, function(n) { return this.localeData().months(this, n); }); tt("month", "M"); nt("month", 8); V("M", Ne); V("MM", Ne, pt); V("MMM", function(n, s) { return s.monthsShortRegex(n); }); V("MMMM", function(n, s) { return s.monthsRegex(n); }); we(["M", "MM"], function(n, s) { s[Zt] = _e(n) - 1; }); we(["MMM", "MMMM"], function(n, s, i, r) { var l = i._locale.monthsParse(n, r, i._strict); l != null ? s[Zt] = l : fe(i).invalidMonth = n; }); var Od = "January_February_March_April_May_June_July_August_September_October_November_December".split( "_" ), lc = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), ac = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, kd = Ar, Dd = Ar; function Nd(n, s) { return n ? kt(this._months) ? this._months[n.month()] : this._months[(this._months.isFormat || ac).test(s) ? "format" : "standalone"][n.month()] : kt(this._months) ? this._months : this._months.standalone; } function xd(n, s) { return n ? kt(this._monthsShort) ? this._monthsShort[n.month()] : this._monthsShort[ac.test(s) ? "format" : "standalone"][n.month()] : kt(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone; } function Md(n, s, i) { var r, l, u, e = n.toLocaleLowerCase(); if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r) u = Yt([2e3, r]), this._shortMonthsParse[r] = this.monthsShort( u, "" ).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(u, "").toLocaleLowerCase(); return i ? s === "MMM" ? (l = Ue.call(this._shortMonthsParse, e), l !== -1 ? l : null) : (l = Ue.call(this._longMonthsParse, e), l !== -1 ? l : null) : s === "MMM" ? (l = Ue.call(this._shortMonthsParse, e), l !== -1 ? l : (l = Ue.call(this._longMonthsParse, e), l !== -1 ? l : null)) : (l = Ue.call(this._longMonthsParse, e), l !== -1 ? l : (l = Ue.call(this._shortMonthsParse, e), l !== -1 ? l : null)); } function Pd(n, s, i) { var r, l, u; if (this._monthsParseExact) return Md.call(this, n, s, i); for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) { if (l = Yt([2e3, r]), i && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp( "^" + this.months(l, "").replace(".", "") + "$", "i" ), this._shortMonthsParse[r] = new RegExp( "^" + this.monthsShort(l, "").replace(".", "") + "$", "i" )), !i && !this._monthsParse[r] && (u = "^" + this.months(l, "") + "|^" + this.monthsShort(l, ""), this._monthsParse[r] = new RegExp(u.replace(".", ""), "i")), i && s === "MMMM" && this._longMonthsParse[r].test(n)) return r; if (i && s === "MMM" && this._shortMonthsParse[r].test(n)) return r; if (!i && this._monthsParse[r].test(n)) return r; } } function oc(n, s) { var i; if (!n.isValid()) return n; if (typeof s == "string") { if (/^\d+$/.test(s)) s = _e(s); else if (s = n.localeData().monthsParse(s), !nn(s)) return n; } return i = Math.min(n.date(), ti(n.year(), s)), n._d["set" + (n._isUTC ? "UTC" : "") + "Month"](s, i), n; } function uc(n) { return n != null ? (oc(this, n), Y.updateOffset(this, !0), this) : xs(this, "Month"); } function Ld() { return ti(this.year(), this.month()); } function Ud(n) { return this._monthsParseExact ? (ge(this, "_monthsRegex") || cc.call(this), n ? this._monthsShortStrictRegex : this._monthsShortRegex) : (ge(this, "_monthsShortRegex") || (this._monthsShortRegex = kd), this._monthsShortStrictRegex && n ? this._monthsShortStrictRegex : this._monthsShortRegex); } function Fd(n) { return this._monthsParseExact ? (ge(this, "_monthsRegex") || cc.call(this), n ? this._monthsStrictRegex : this._monthsRegex) : (ge(this, "_monthsRegex") || (this._monthsRegex = Dd), this._monthsStrictRegex && n ? this._monthsStrictRegex : this._monthsRegex); } function cc() { function n(e, d) { return d.length - e.length; } var s = [], i = [], r = [], l, u; for (l = 0; l < 12; l++) u = Yt([2e3, l]), s.push(this.monthsShort(u, "")), i.push(this.months(u, "")), r.push(this.months(u, "")), r.push(this.monthsShort(u, "")); for (s.sort(n), i.sort(n), r.sort(n), l = 0; l < 12; l++) s[l] = _t(s[l]), i[l] = _t(i[l]); for (l = 0; l < 24; l++) r[l] = _t(r[l]); this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp( "^(" + i.join("|") + ")", "i" ), this._monthsShortStrictRegex = new RegExp( "^(" + s.join("|") + ")", "i" ); } Z("Y", 0, 0, function() { var n = this.year(); return n <= 9999 ? $t(n, 4) : "+" + n; }); Z(0, ["YY", 2], 0, function() { return this.year() % 100; }); Z(0, ["YYYY", 4], 0, "year"); Z(0, ["YYYYY", 5], 0, "year"); Z(0, ["YYYYYY", 6, !0], 0, "year"); tt("year", "y"); nt("year", 1); V("Y", Zs); V("YY", Ne, pt); V("YYYY", Ml, xl); V("YYYYY", Xs, Qs); V("YYYYYY", Xs, Qs); we(["YYYYY", "YYYYYY"], et); we("YYYY", function(n, s) { s[et] = n.length === 2 ? Y.parseTwoDigitYear(n) : _e(n); }); we("YY", function(n, s) { s[et] = Y.parseTwoDigitYear(n); }); we("Y", function(n, s) { s[et] = parseInt(n, 10); }); function vr(n) { return Ks(n) ? 366 : 365; } Y.parseTwoDigitYear = function(n) { return _e(n) + (_e(n) > 68 ? 1900 : 2e3); }; var fc = jn("FullYear", !0); function Hd() { return Ks(this.year()); } function $d(n, s, i, r, l, u, e) { var d; return n < 100 && n >= 0 ? (d = new Date(n + 400, s, i, r, l, u, e), isFinite(d.getFullYear()) && d.setFullYear(n)) : d = new Date(n, s, i, r, l, u, e), d; } function gr(n) { var s, i; return n < 100 && n >= 0 ? (i = Array.prototype.slice.call(arguments), i[0] = n + 400, s = new Date(Date.UTC.apply(null, i)), isFinite(s.getUTCFullYear()) && s.setUTCFullYear(n)) : s = new Date(Date.UTC.apply(null, arguments)), s; } function Ps(n, s, i) { var r = 7 + s - i, l = (7 + gr(n, 0, r).getUTCDay() - s) % 7; return -l + r - 1; } function dc(n, s, i, r, l) { var u = (7 + i - r) % 7, e = Ps(n, r, l), d = 1 + 7 * (s - 1) + u + e, v, c; return d <= 0 ? (v = n - 1, c = vr(v) + d) : d > vr(n) ? (v = n + 1, c = d - vr(n)) : (v = n, c = d), { year: v, dayOfYear: c }; } function yr(n, s, i) { var r = Ps(n.year(), s, i), l = Math.floor((n.dayOfYear() - r - 1) / 7) + 1, u, e; return l < 1 ? (e = n.year() - 1, u = l + tn(e, s, i)) : l > tn(n.year(), s, i) ? (u = l - tn(n.year(), s, i), e = n.year() + 1) : (e = n.year(), u = l), { week: u, year: e }; } function tn(n, s, i) { var r = Ps(n, s, i), l = Ps(n + 1, s, i); return (vr(n) - r + l) / 7; } Z("w", ["ww", 2], "wo", "week"); Z("W", ["WW", 2], "Wo", "isoWeek"); tt("week", "w"); tt("isoWeek", "W"); nt("week", 5); nt("isoWeek", 5); V("w", Ne); V("ww", Ne, pt); V("W", Ne); V("WW", Ne, pt); Rr( ["w", "ww", "W", "WW"], function(n, s, i, r) { s[r.substr(0, 1)] = _e(n); } ); function Yd(n) { return yr(n, this._week.dow, this._week.doy).week; } var qd = { dow: 0, // Sunday is the first day of the week. doy: 6 // The week that contains Jan 6th is the first week of the year. }; function Wd() { return this._week.dow; } function Gd() { return this._week.doy; } function jd(n) { var s = this.localeData().week(this); return n == null ? s : this.add((n - s) * 7, "d"); } function Vd(n) { var s = yr(this, 1, 4).week; return n == null ? s : this.add((n - s) * 7, "d"); } Z("d", 0, "do", "day"); Z("dd", 0, 0, function(n) { return this.localeData().weekdaysMin(this, n); }); Z("ddd", 0, 0, function(n) { return this.localeData().weekdaysShort(this, n); }); Z("dddd", 0, 0, function(n) { return this.localeData().weekdays(this, n); }); Z("e", 0, 0, "weekday"); Z("E", 0, 0, "isoWeekday"); tt("day", "d"); tt("weekday", "e"); tt("isoWeekday", "E"); nt("day", 11); nt("weekday", 11); nt("isoWeekday", 11); V("d", Ne); V("e", Ne); V("E", Ne); V("dd", function(n, s) { return s.weekdaysMinRegex(n); }); V("ddd", function(n, s) { return s.weekdaysShortRegex(n); }); V("dddd", function(n, s) { return s.weekdaysRegex(n); }); Rr(["dd", "ddd", "dddd"], function(n, s, i, r) { var l = i._locale.weekdaysParse(n, r, i._strict); l != null ? s.d = l : fe(i).invalidWeekday = n; }); Rr(["d", "e", "E"], function(n, s, i, r) { s[r] = _e(n); }); function Bd(n, s) { return typeof n != "string" ? n : isNaN(n) ? (n = s.weekdaysParse(n), typeof n == "number" ? n : null) : parseInt(n, 10); } function zd(n, s) { return typeof n == "string" ? s.weekdaysParse(n) % 7 || 7 : isNaN(n) ? null : n; } function Pl(n, s) { return n.slice(s, 7).concat(n.slice(0, s)); } var Kd = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), hc = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Qd = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Jd = Ar, Xd = Ar, Zd = Ar; function eh(n, s) { var i = kt(this._weekdays) ? this._weekdays : this._weekdays[n && n !== !0 && this._weekdays.isFormat.test(s) ? "format" : "standalone"]; return n === !0 ? Pl(i, this._week.dow) : n ? i[n.day()] : i; } function th(n) { return n === !0 ? Pl(this._weekdaysShort, this._week.dow) : n ? this._weekdaysShort[n.day()] : this._weekdaysShort; } function nh(n) { return n === !0 ? Pl(this._weekdaysMin, this._week.dow) : n ? this._weekdaysMin[n.day()] : this._weekdaysMin; } function rh(n, s, i) { var r, l, u, e = n.toLocaleLowerCase(); if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r) u = Yt([2e3, 1]).day(r), this._minWeekdaysParse[r] = this.weekdaysMin( u, "" ).toLocaleLowerCase(), this._shortWeekdaysParse[r] = this.weekdaysShort( u, "" ).toLocaleLowerCase(), this._weekdaysParse[r] = this.weekdays(u, "").toLocaleLowerCase(); return i ? s === "dddd" ? (l = Ue.call(this._weekdaysParse, e), l !== -1 ? l : null) : s === "ddd" ? (l = Ue.call(this._shortWeekdaysParse, e), l !== -1 ? l : null) : (l = Ue.call(this._minWeekdaysParse, e), l !== -1 ? l : null) : s === "dddd" ? (l = Ue.call(this._weekdaysParse, e), l !== -1 || (l = Ue.call(this._shortWeekdaysParse, e), l !== -1) ? l : (l = Ue.call(this._minWeekdaysParse, e), l !== -1 ? l : null)) : s === "ddd" ? (l = Ue.call(this._shortWeekdaysParse, e), l !== -1 || (l = Ue.call(this._weekdaysParse, e), l !== -1) ? l : (l = Ue.call(this._minWeekdaysParse, e), l !== -1 ? l : null)) : (l = Ue.call(this._minWeekdaysParse, e), l !== -1 || (l = Ue.call(this._weekdaysParse, e), l !== -1) ? l : (l = Ue.call(this._shortWeekdaysParse, e), l !== -1 ? l : null)); } function sh(n, s, i) { var r, l, u; if (this._weekdaysParseExact) return rh.call(this, n, s, i); for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) { if (l = Yt([2e3, 1]).day(r), i && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp( "^" + this.weekdays(l, "").replace(".", "\\.?") + "$", "i" ), this._shortWeekdaysParse[r] = new RegExp( "^" + this.weekdaysShort(l, "").replace(".", "\\.?") + "$", "i" ), this._minWeekdaysParse[r] = new RegExp( "^" + this.weekdaysMin(l, "").replace(".", "\\.?") + "$", "i" )), this._weekdaysParse[r] || (u = "^" + this.weekdays(l, "") + "|^" + this.weekdaysShort(l, "") + "|^" + this.weekdaysMin(l, ""), this._weekdaysParse[r] = new RegExp(u.replace(".", ""), "i")), i && s === "dddd" && this._fullWeekdaysParse[r].test(n)) return r; if (i && s === "ddd" && this._shortWeekdaysParse[r].test(n)) return r; if (i && s === "dd" && this._minWeekdaysParse[r].test(n)) return r; if (!i && this._weekdaysParse[r].test(n)) return r; } } function ih(n) { if (!this.isValid()) return n != null ? this : NaN; var s = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); return n != null ? (n = Bd(n, this.localeData()), this.add(n - s, "d")) : s; } function lh(n) { if (!this.isValid()) return n != null ? this : NaN; var s = (this.day() + 7 - this.localeData()._week.dow) % 7; return n == null ? s : this.add(n - s, "d"); } function ah(n) { if (!this.isValid()) return n != null ? this : NaN; if (n != null) { var s = zd(n, this.localeData()); return this.day(this.day() % 7 ? s : s - 7); } else return this.day() || 7; } function oh(n) { return this._weekdaysParseExact ? (ge(this, "_weekdaysRegex") || Ll.call(this), n ? this._weekdaysStrictRegex : this._weekdaysRegex) : (ge(this, "_weekdaysRegex") || (this._weekdaysRegex = Jd), this._weekdaysStrictRegex && n ? this._weekdaysStrictRegex : this._weekdaysRegex); } function uh(n) { return this._weekdaysParseExact ? (ge(this, "_weekdaysRegex") || Ll.call(this), n ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (ge(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Xd), this._weekdaysShortStrictRegex && n ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex); } function ch(n) { return this._weekdaysParseExact ? (ge(this, "_weekdaysRegex") || Ll.call(this), n ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (ge(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Zd), this._weekdaysMinStrictRegex && n ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex); } function Ll() { function n(p, m) { return m.length - p.length; } var s = [], i = [], r = [], l = [], u, e, d, v, c; for (u = 0; u < 7; u++) e = Yt([2e3, 1]).day(u), d = _t(this.weekdaysMin(e, "")), v = _t(this.weekdaysShort(e, "")), c = _t(this.weekdays(e, "")), s.push(d), i.push(v), r.push(c), l.push(d), l.push(v), l.push(c); s.sort(n), i.sort(n), r.sort(n), l.sort(n), this._weekdaysRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp( "^(" + r.join("|") + ")", "i" ), this._weekdaysShortStrictRegex = new RegExp( "^(" + i.join("|") + ")", "i" ), this._weekdaysMinStrictRegex = new RegExp( "^(" + s.join("|") + ")", "i" ); } function Ul() { return this.hours() % 12 || 12; } function fh() { return this.hours() || 24; } Z("H", ["HH", 2], 0, "hour"); Z("h", ["hh", 2], 0, Ul); Z("k", ["kk", 2], 0, fh); Z("hmm", 0, 0, function() { return "" + Ul.apply(this) + $t(this.minutes(), 2); }); Z("hmmss", 0, 0, function() { return "" + Ul.apply(this) + $t(this.minutes(), 2) + $t(this.seconds(), 2); }); Z("Hmm", 0, 0, function() { return "" + this.hours() + $t(this.minutes(), 2); }); Z("Hmmss", 0, 0, function() { return "" + this.hours() + $t(this.minutes(), 2) + $t(this.seconds(), 2); }); function _c(n, s) { Z(n, 0, 0, function() { return this.localeData().meridiem( this.hours(), this.minutes(), s ); }); } _c("a", !0); _c("A", !1); tt("hour", "h"); nt("hour", 13); function pc(n, s) { return s._meridiemParse; } V("a", pc); V("A", pc); V("H", Ne); V("h", Ne); V("k", Ne); V("HH", Ne, pt); V("hh", Ne, pt); V("kk", Ne, pt); V("hmm", sc); V("hmmss", ic); V("Hmm", sc); V("Hmmss", ic); we(["H", "HH"], je); we(["k", "kk"], function(n, s, i) { var r = _e(n); s[je] = r === 24 ? 0 : r; }); we(["a", "A"], function(n, s, i) { i._isPm = i._locale.isPM(n), i._meridiem = n; }); we(["h", "hh"], function(n, s, i) { s[je] = _e(n), fe(i).bigHour = !0; }); we("hmm", function(n, s, i) { var r = n.length - 2; s[je] = _e(n.substr(0, r)), s[Ot] = _e(n.substr(r)), fe(i).bigHour = !0; }); we("hmmss", function(n, s, i) { var r = n.length - 4, l = n.length - 2; s[je] = _e(n.substr(0, r)), s[Ot] = _e(n.substr(r, 2)), s[en] = _e(n.substr(l)), fe(i).bigHour = !0; }); we("Hmm", function(n, s, i) { var r = n.length - 2; s[je] = _e(n.substr(0, r)), s[Ot] = _e(n.substr(r)); }); we("Hmmss", function(n, s, i) { var r = n.length - 4, l = n.length - 2; s[je] = _e(n.substr(0, r)), s[Ot] = _e(n.substr(r, 2)), s[en] = _e(n.substr(l)); }); function dh(n) { return (n + "").toLowerCase().charAt(0) === "p"; } var hh = /[ap]\.?m?\.?/i, _h = jn("Hours", !0); function ph(n, s, i) { return n > 11 ? i ? "pm" : "PM" : i ? "am" : "AM"; } var vc = { calendar: sd, longDateFormat: od, invalidDate: cd, ordinal: dd, dayOfMonthOrdinalParse: hd, relativeTime: pd, months: Od, monthsShort: lc, week: qd, weekdays: Kd, weekdaysMin: Qd, weekdaysShort: hc, meridiemParse: hh }, Pe = {}, ir = {}, Tr; function vh(n, s) { var i, r = Math.min(n.length, s.length); for (i = 0; i < r; i += 1) if (n[i] !== s[i]) return i; return r; } function Uo(n) { return n && n.toLowerCase().replace("_", "-"); } function mh(n) { for (var s = 0, i, r, l, u; s < n.length; ) { for (u = Uo(n[s]).split("-"), i = u.length, r = Uo(n[s + 1]), r = r ? r.split("-") : null; i > 0; ) { if (l = ni(u.slice(0, i).join("-")), l) return l; if (r && r.length >= i && vh(u, r) >= i - 1) break; i--; } s++; } return Tr; } function gh(n) { return n.match("^[^/\\\\]*$") != null; } function ni(n) { var s = null, i; if (Pe[n] === void 0 && typeof module < "u" && module && module.exports && gh(n)) try { s = Tr._abbr, i = require, i("./locale/" + n), fn(s); } catch { Pe[n] = null; } return Pe[n]; } function fn(n, s) { var i; return n && (ct(s) ? i = rn(n) : i = Fl(n, s), i ? Tr = i : typeof console < "u" && console.warn && console.warn( "Locale " + n + " not found. Did you forget to load it?" )), Tr._abbr; } function Fl(n, s) { if (s !== null) { var i, r = vc; if (s.abbr = n, Pe[n] != null) Xu( "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." ), r = Pe[n]._config; else if (s.parentLocale != null) if (Pe[s.parentLocale] != null) r = Pe[s.parentLocale]._config; else if (i = ni(s.parentLocale), i != null) r = i._config; else return ir[s.parentLocale] || (ir[s.parentLocale] = []), ir[s.parentLocale].push({ name: n, config: s }), null; return Pe[n] = new kl(al(r, s)), ir[n] && ir[n].forEach(function(l) { Fl(l.name, l.config); }), fn(n), Pe[n]; } else return delete Pe[n], null; } function yh(n, s) { if (s != null) { var i, r, l = vc; Pe[n] != null && Pe[n].parentLocale != null ? Pe[n].set(al(Pe[n]._config, s)) : (r = ni(n), r != null && (l = r._config), s = al(l, s), r == null && (s.abbr = n), i = new kl(s), i.parentLocale = Pe[n], Pe[n] = i), fn(n); } else Pe[n] != null && (Pe[n].parentLocale != null ? (Pe[n] = Pe[n].parentLocale, n === fn() && fn(n)) : Pe[n] != null && delete Pe[n]); return Pe[n]; } function rn(n) { var s; if (n && n._locale && n._locale._abbr && (n = n._locale._abbr), !n) return Tr; if (!kt(n)) { if (s = ni(n), s) return s; n = [n]; } return mh(n); } function Th() { return ol(Pe); } function Hl(n) { var s, i = n._a; return i && fe(n).overflow === -2 && (s = i[Zt] < 0 || i[Zt] > 11 ? Zt : i[Ft] < 1 || i[Ft] > ti(i[et], i[Zt]) ? Ft : i[je] < 0 || i[je] > 24 || i[je] === 24 && (i[Ot] !== 0 || i[en] !== 0 || i[Rn] !== 0) ? je : i[Ot] < 0 || i[Ot] > 59 ? Ot : i[en] < 0 || i[en] > 59 ? en : i[Rn] < 0 || i[Rn] > 999 ? Rn : -1, fe(n)._overflowDayOfYear && (s < et || s > Ft) && (s = Ft), fe(n)._overflowWeeks && s === -1 && (s = Ad), fe(n)._overflowWeekday && s === -1 && (s = Rd), fe(n).overflow = s), n; } var Sh = /^\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)?)?$/, bh = /^\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)?)?$/, Ch = /Z|[+-]\d\d(?::?\d\d)?/, rs = [ ["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] ], Di = [ ["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/] ], Eh = /^\/?Date\((-?\d+)/i, wh = /^(?:(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}))$/, Ah = { UT: 0, GMT: 0, EDT: -4 * 60, EST: -5 * 60, CDT: -5 * 60, CST: -6 * 60, MDT: -6 * 60, MST: -7 * 60, PDT: -7 * 60, PST: -8 * 60 }; function mc(n) { var s, i, r = n._i, l = Sh.exec(r) || bh.exec(r), u, e, d, v, c = rs.length, p = Di.length; if (l) { for (fe(n).iso = !0, s = 0, i = c; s < i; s++) if (rs[s][1].exec(l[1])) { e = rs[s][0], u = rs[s][2] !== !1; break; } if (e == null) { n._isValid = !1; return; } if (l[3]) { for (s = 0, i = p; s < i; s++) if (Di[s][1].exec(l[3])) { d = (l[2] || " ") + Di[s][0]; break; } if (d == null) { n._isValid = !1; return; } } if (!u && d != null) { n._isValid = !1; return; } if (l[4]) if (Ch.exec(l[4])) v = "Z"; else { n._isValid = !1; return; } n._f = e + (d || "") + (v || ""), Yl(n); } else n._isValid = !1; } function Rh(n, s, i, r, l, u) { var e = [ Ih(n), lc.indexOf(s), parseInt(i, 10), parseInt(r, 10), parseInt(l, 10) ]; return u && e.push(parseInt(u, 10)), e; } function Ih(n) { var s = parseInt(n, 10); return s <= 49 ? 2e3 + s : s <= 999 ? 1900 + s : s; } function Oh(n) { return n.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""); } function kh(n, s, i) { if (n) { var r = hc.indexOf(n), l = new Date( s[0], s[1], s[2] ).getDay(); if (r !== l) return fe(i).weekdayMismatch = !0, i._isValid = !1, !1; } return !0; } function Dh(n, s, i) { if (n) return Ah[n]; if (s) return 0; var r = parseInt(i, 10), l = r % 100, u = (r - l) / 100; return u * 60 + l; } function gc(n) { var s = wh.exec(Oh(n._i)), i; if (s) { if (i = Rh( s[4], s[3], s[2], s[5], s[6], s[7] ), !kh(s[1], i, n)) return; n._a = i, n._tzm = Dh(s[8], s[9], s[10]), n._d = gr.apply(null, n._a), n._d.setUTCMinutes(n._d.getUTCMinutes() - n._tzm), fe(n).rfc2822 = !0; } else n._isValid = !1; } function Nh(n) { var s = Eh.exec(n._i); if (s !== null) { n._d = /* @__PURE__ */ new Date(+s[1]); return; } if (mc(n), n._isValid === !1) delete n._isValid; else return; if (gc(n), n._isValid === !1) delete n._isValid; else return; n._strict ? n._isValid = !1 : Y.createFromInputFallback(n); } Y.createFromInputFallback = Et( "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(n) { n._d = /* @__PURE__ */ new Date(n._i + (n._useUTC ? " UTC" : "")); } ); function Un(n, s, i) { return n ?? s ?? i; } function xh(n) { var s = new Date(Y.now()); return n._useUTC ? [ s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate() ] : [s.getFullYear(), s.getMonth(), s.getDate()]; } function $l(n) { var s, i, r = [], l, u, e; if (!n._d) { for (l = xh(n), n._w && n._a[Ft] == null && n._a[Zt] == null && Mh(n), n._dayOfYear != null && (e = Un(n._a[et], l[et]), (n._dayOfYear > vr(e) || n._dayOfYear === 0) && (fe(n)._overflowDayOfYear = !0), i = gr(e, 0, n._dayOfYear), n._a[Zt] = i.getUTCMonth(), n._a[Ft] = i.getUTCDate()), s = 0; s < 3 && n._a[s] == null; ++s) n._a[s] = r[s] = l[s]; for (; s < 7; s++) n._a[s] = r[s] = n._a[s] == null ? s === 2 ? 1 : 0 : n._a[s]; n._a[je] === 24 && n._a[Ot] === 0 && n._a[en] === 0 && n._a[Rn] === 0 && (n._nextDay = !0, n._a[je] = 0), n._d = (n._useUTC ? gr : $d).apply( null, r ), u = n._useUTC ? n._d.getUTCDay() : n._d.getDay(), n._tzm != null && n._d.setUTCMinutes(n._d.getUTCMinutes() - n._tzm), n._nextDay && (n._a[je] = 24), n._w && typeof n._w.d < "u" && n._w.d !== u && (fe(n).weekdayMismatch = !0); } } function Mh(n) { var s, i, r, l, u, e, d, v, c; s = n._w, s.GG != null || s.W != null || s.E != null ? (u = 1, e = 4, i = Un( s.GG, n._a[et], yr(De(), 1, 4).year ), r = Un(s.W, 1), l = Un(s.E, 1), (l < 1 || l > 7) && (v = !0)) : (u = n._locale._week.dow, e = n._locale._week.doy, c = yr(De(), u, e), i = Un(s.gg, n._a[et], c.year), r = Un(s.w, c.week), s.d != null ? (l = s.d, (l < 0 || l > 6) && (v = !0)) : s.e != null ? (l = s.e + u, (s.e < 0 || s.e > 6) && (v = !0)) : l = u), r < 1 || r > tn(i, u, e) ? fe(n)._overflowWeeks = !0 : v != null ? fe(n)._overflowWeekday = !0 : (d = dc(i, r, l, u, e), n._a[et] = d.year, n._dayOfYear = d.dayOfYear); } Y.ISO_8601 = function() { }; Y.RFC_2822 = function() { }; function Yl(n) { if (n._f === Y.ISO_8601) { mc(n); return; } if (n._f === Y.RFC_2822) { gc(n); return; } n._a = [], fe(n).empty = !0; var s = "" + n._i, i, r, l, u, e, d = s.length, v = 0, c, p; for (l = Zu(n._f, n._locale).match(Dl) || [], p = l.length, i = 0; i < p; i++) u = l[i], r = (s.match(Cd(u, n)) || [])[0], r && (e = s.substr(0, s.indexOf(r)), e.length > 0 && fe(n).unusedInput.push(e), s = s.slice( s.indexOf(r) + r.length ), v += r.length), $n[u] ? (r ? fe(n).empty = !1 : fe(n).unusedTokens.push(u), wd(u, r, n)) : n._strict && !r && fe(n).unusedTokens.push(u); fe(n).charsLeftOver = d - v, s.length > 0 && fe(n).unusedInput.push(s), n._a[je] <= 12 && fe(n).bigHour === !0 && n._a[je] > 0 && (fe(n).bigHour = void 0), fe(n).parsedDateParts = n._a.slice(0), fe(n).meridiem = n._meridiem, n._a[je] = Ph( n._locale, n._a[je], n._meridiem ), c = fe(n).era, c !== null && (n._a[et] = n._locale.erasConvertYear(c, n._a[et])), $l(n), Hl(n); } function Ph(n, s, i) { var r; return i == null ? s : n.meridiemHour != null ? n.meridiemHour(s, i) : (n.isPM != null && (r = n.isPM(i), r && s < 12 && (s += 12), !r && s === 12 && (s = 0)), s); } function Lh(n) { var s, i, r, l, u, e, d = !1, v = n._f.length; if (v === 0) { fe(n).invalidFormat = !0, n._d = /* @__PURE__ */ new Date(NaN); return; } for (l = 0; l < v; l++) u = 0, e = !1, s = Ol({}, n), n._useUTC != null && (s._useUTC = n._useUTC), s._f = n._f[l], Yl(s), Il(s) && (e = !0), u += fe(s).charsLeftOver, u += fe(s).unusedTokens.length * 10, fe(s).score = u, d ? u < r && (r = u, i = s) : (r == null || u < r || e) && (r = u, i = s, e && (d = !0)); un(n, i || s); } function Uh(n) { if (!n._d) { var s = Nl(n._i), i = s.day === void 0 ? s.date : s.day; n._a = Qu( [s.year, s.month, i, s.hour, s.minute, s.second, s.millisecond], function(r) { return r && parseInt(r, 10); } ), $l(n); } } function Fh(n) { var s = new wr(Hl(yc(n))); return s._nextDay && (s.add(1, "d"), s._nextDay = void 0), s; } function yc(n) { var s = n._i, i = n._f; return n._locale = n._locale || rn(n._l), s === null || i === void 0 && s === "" ? zs({ nullInput: !0 }) : (typeof s == "string" && (n._i = s = n._locale.preparse(s)), Dt(s) ? new wr(Hl(s)) : (Er(s) ? n._d = s : kt(i) ? Lh(n) : i ? Yl(n) : Hh(n), Il(n) || (n._d = null), n)); } function Hh(n) { var s = n._i; ct(s) ? n._d = new Date(Y.now()) : Er(s) ? n._d = new Date(s.valueOf()) : typeof s == "string" ? Nh(n) : kt(s) ? (n._a = Qu(s.slice(0), function(i) { return parseInt(i, 10); }), $l(n)) : On(s) ? Uh(n) : nn(s) ? n._d = new Date(s) : Y.createFromInputFallback(n); } function Tc(n, s, i, r, l) { var u = {}; return (s === !0 || s === !1) && (r = s, s = void 0), (i === !0 || i === !1) && (r = i, i = void 0), (On(n) && Rl(n) || kt(n) && n.length === 0) && (n = void 0), u._isAMomentObject = !0, u._useUTC = u._isUTC = l, u._l = i, u._i = n, u._f = s, u._strict = r, Fh(u); } function De(n, s, i, r) { return Tc(n, s, i, r, !1); } var $h = Et( "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() { var n = De.apply(null, arguments); return this.isValid() && n.isValid() ? n < this ? this : n : zs(); } ), Yh = Et( "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() { var n = De.apply(null, arguments); return this.isValid() && n.isValid() ? n > this ? this : n : zs(); } ); function Sc(n, s) { var i, r; if (s.length === 1 && kt(s[0]) && (s = s[0]), !s.length) return De(); for (i = s[0], r = 1; r < s.length; ++r) (!s[r].isValid() || s[r][n](i)) && (i = s[r]); return i; } function qh() { var n = [].slice.call(arguments, 0); return Sc("isBefore", n); } function Wh() { var n = [].slice.call(arguments, 0); return Sc("isAfter", n); } var Gh = function() { return Date.now ? Date.now() : +/* @__PURE__ */ new Date(); }, lr = [ "year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond" ]; function jh(n) { var s, i = !1, r, l = lr.length; for (s in n) if (ge(n, s) && !(Ue.call(lr, s) !== -1 && (n[s] == null || !isNaN(n[s])))) return !1; for (r = 0; r < l; ++r) if (n[lr[r]]) { if (i) return !1; parseFloat(n[lr[r]]) !== _e(n[lr[r]]) && (i = !0); } return !0; } function Vh() { return this._isValid; } function Bh() { return Nt(NaN); } function ri(n) { var s = Nl(n), i = s.year || 0, r = s.quarter || 0, l = s.month || 0, u = s.week || s.isoWeek || 0, e = s.day || 0, d = s.hour || 0, v = s.minute || 0, c = s.second || 0, p = s.millisecond || 0; this._isValid = jh(s), this._milliseconds = +p + c * 1e3 + // 1000 v * 6e4 + // 1000 * 60 d * 1e3 * 60 * 60, this._days = +e + u * 7, this._months = +l + r * 3 + i * 12, this._data = {}, this._locale = rn(), this._bubble(); } function vs(n) { return n instanceof ri; } function cl(n) { return n < 0 ? Math.round(-1 * n) * -1 : Math.round(n); } function zh(n, s, i) { var r = Math.min(n.length, s.length), l = Math.abs(n.length - s.length), u = 0, e; for (e = 0; e < r; e++) (i && n[e] !== s[e] || !i && _e(n[e]) !== _e(s[e])) && u++; return u + l; } function bc(n, s) { Z(n, 0, 0, function() { var i = this.utcOffset(), r = "+"; return i < 0 && (i = -i, r = "-"), r + $t(~~(i / 60), 2) + s + $t(~~i % 60, 2); }); } bc("Z", ":"); bc("ZZ", ""); V("Z", ei); V("ZZ", ei); we(["Z", "ZZ"], function(n, s, i) { i._useUTC = !0, i._tzm = ql(ei, n); }); var Kh = /([\+\-]|\d\d)/gi; function ql(n, s) { var i = (s || "").match(n), r, l, u; return i === null ? null : (r = i[i.length - 1] || [], l = (r + "").match(Kh) || ["-", 0, 0], u = +(l[1] * 60) + _e(l[2]), u === 0 ? 0 : l[0] === "+" ? u : -u); } function Wl(n, s) { var i, r; return s._isUTC ? (i = s.clone(), r = (Dt(n) || Er(n) ? n.valueOf() : De(n).valueOf()) - i.valueOf(), i._d.setTime(i._d.valueOf() + r), Y.updateOffset(i, !1), i) : De(n).local(); } function fl(n) { return -Math.round(n._d.getTimezoneOffset()); } Y.updateOffset = function() { }; function Qh(n, s, i) { var r = this._offset || 0, l; if (!this.isValid()) return n != null ? this : NaN; if (n != null) { if (typeof n == "string") { if (n = ql(ei, n), n === null) return this; } else Math.abs(n) < 16 && !i && (n = n * 60); return !this._isUTC && s && (l = fl(this)), this._offset = n, this._isUTC = !0, l != null && this.add(l, "m"), r !== n && (!s || this._changeInProgress ? wc( this, Nt(n - r, "m"), 1, !1 ) : this._changeInProgress || (this._changeInProgress = !0, Y.updateOffset(this, !0), this._changeInProgress = null)), this; } else return this._isUTC ? r : fl(this); } function Jh(n, s) { return n != null ? (typeof n != "string" && (n = -n), this.utcOffset(n, s), this) : -this.utcOffset(); } function Xh(n) { return this.utcOffset(0, n); } function Zh(n) { return this._isUTC && (this.utcOffset(0, n), this._isUTC = !1, n && this.subtract(fl(this), "m")), this; } function e_() { if (this._tzm != null) this.utcOffset(this._tzm, !1, !0); else if (typeof this._i == "string") { var n = ql(Sd, this._i); n != null ? this.utcOffset(n) : this.utcOffset(0, !0); } return this; } function t_(n) { return this.isValid() ? (n = n ? De(n).utcOffset() : 0, (this.utcOffset() - n) % 60 === 0) : !1; } function n_() { return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset(); } function r_() { if (!ct(this._isDSTShifted)) return this._isDSTShifted; var n = {}, s; return Ol(n, this), n = yc(n), n._a ? (s = n._isUTC ? Yt(n._a) : De(n._a), this._isDSTShifted = this.isValid() && zh(n._a, s.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted; } function s_() { return this.isValid() ? !this._isUTC : !1; } function i_() { return this.isValid() ? this._isUTC : !1; } function Cc() { return this.isValid() ? this._isUTC && this._offset === 0 : !1; } var l_ = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, a_ = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; function Nt(n, s) { var i = n, r = null, l, u, e; return vs(n) ? i = { ms: n._milliseconds, d: n._days, M: n._months } : nn(n) || !isNaN(+n) ? (i = {}, s ? i[s] = +n : i.milliseconds = +n) : (r = l_.exec(n)) ? (l = r[1] === "-" ? -1 : 1, i = { y: 0, d: _e(r[Ft]) * l, h: _e(r[je]) * l, m: _e(r[Ot]) * l, s: _e(r[en]) * l, ms: _e(cl(r[Rn] * 1e3)) * l // the millisecond decimal point is included in the match }) : (r = a_.exec(n)) ? (l = r[1] === "-" ? -1 : 1, i = { y: bn(r[2], l), M: bn(r[3], l), w: bn(r[4], l), d: bn(r[5], l), h: bn(r[6], l), m: bn(r[7], l), s: bn(r[8], l) }) : i == null ? i = {} : typeof i == "object" && ("from" in i || "to" in i) && (e = o_( De(i.from), De(i.to) ), i = {}, i.ms = e.milliseconds, i.M = e.months), u = new ri(i), vs(n) && ge(n, "_locale") && (u._locale = n._locale), vs(n) && ge(n, "_isValid") && (u._isValid = n._isValid), u; } Nt.fn = ri.prototype; Nt.invalid = Bh; function bn(n, s) { var i = n && parseFloat(n.replace(",", ".")); return (isNaN(i) ? 0 : i) * s; } function Fo(n, s) { var i = {}; return i.months = s.month() - n.month() + (s.year() - n.year()) * 12, n.clone().add(i.months, "M").isAfter(s) && --i.months, i.milliseconds = +s - +n.clone().add(i.months, "M"), i; } function o_(n, s) { var i; return n.isValid() && s.isValid() ? (s = Wl(s, n), n.isBefore(s) ? i = Fo(n, s) : (i = Fo(s, n), i.milliseconds = -i.milliseconds, i.months = -i.months), i) : { milliseconds: 0, months: 0 }; } function Ec(n, s) { return function(i, r) { var l, u; return r !== null && !isNaN(+r) && (Xu( s, "moment()." + s + "(period, number) is deprecated. Please use moment()." + s + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info." ), u = i, i = r, r = u), l = Nt(i, r), wc(this, l, n), this; }; } function wc(n, s, i, r) { var l = s._milliseconds, u = cl(s._days), e = cl(s._months); n.isValid() && (r = r ?? !0, e && oc(n, xs(n, "Month") + e * i), u && tc(n, "Date", xs(n, "Date") + u * i), l && n._d.setTime(n._d.valueOf() + l * i), r && Y.updateOffset(n, u || e)); } var u_ = Ec(1, "add"), c_ = Ec(-1, "subtract"); function Ac(n) { return typeof n == "string" || n instanceof String; } function f_(n) { return Dt(n) || Er(n) || Ac(n) || nn(n) || h_(n) || d_(n) || n === null || n === void 0; } function d_(n) { var s = On(n) && !Rl(n), 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" ], l, u, e = r.length; for (l = 0; l < e; l += 1) u = r[l], i = i || ge(n, u); return s && i; } function h_(n) { var s = kt(n), i = !1; return s && (i = n.filter(function(r) { return !nn(r) && Ac(n); }).length === 0), s && i; } function __(n) { var s = On(n) && !Rl(n), i = !1, r = [