1 line
21 KiB
JSON
1 line
21 KiB
JSON
|
{"ast":null,"code":"!function (e, t) {\n \"object\" == typeof exports && \"undefined\" != typeof module ? module.exports = t() : \"function\" == typeof define && define.amd ? define(t) : (e = \"undefined\" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();\n}(this, function () {\n \"use strict\";\n\n var e = {\n LTS: \"h:mm:ss A\",\n LT: \"h:mm A\",\n L: \"MM/DD/YYYY\",\n LL: \"MMMM D, YYYY\",\n LLL: \"MMMM D, YYYY h:mm A\",\n LLLL: \"dddd, MMMM D, YYYY h:mm A\"\n },\n t = /(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,\n n = /\\d\\d/,\n r = /\\d\\d?/,\n i = /\\d*[^-_:/,()\\s\\d]+/,\n o = {},\n s = function (e) {\n return (e = +e) + (e > 68 ? 1900 : 2e3);\n };\n var a = function (e) {\n return function (t) {\n this[e] = +t;\n };\n },\n f = [/[+-]\\d\\d:?(\\d\\d)?|Z/, function (e) {\n (this.zone || (this.zone = {})).offset = function (e) {\n if (!e) return 0;\n if (\"Z\" === e) return 0;\n var t = e.match(/([+-]|\\d\\d)/g),\n n = 60 * t[1] + (+t[2] || 0);\n return 0 === n ? 0 : \"+\" === t[0] ? -n : n;\n }(e);\n }],\n h = function (e) {\n var t = o[e];\n return t && (t.indexOf ? t : t.s.concat(t.f));\n },\n u = function (e, t) {\n var n,\n r = o.meridiem;\n if (r) {\n for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {\n n = i > 12;\n break;\n }\n } else n = e === (t ? \"pm\" : \"PM\");\n return n;\n },\n d = {\n A: [i, function (e) {\n this.afternoon = u(e, !1);\n }],\n a: [i, function (e) {\n this.afternoon = u(e, !0);\n }],\n S: [/\\d/, function (e) {\n this.milliseconds = 100 * +e;\n }],\n SS: [n, function (e) {\n this.milliseconds = 10 * +e;\n }],\n SSS: [/\\d{3}/, function (e) {\n this.milliseconds = +e;\n }],\n s: [r, a(\"seconds\")],\n ss: [r, a(\"seconds\")],\n m: [r, a(\"minutes\")],\n mm: [r, a(\"minutes\")],\n H: [r, a(\"hours\")],\n h: [r, a(\"hours\")],\n HH: [r, a(\"hours\")],\n hh: [r, a(\"hours\")],\n D: [r, a(\"day\")],\n DD: [n, a(\"day\")],\n Do: [i, function (e) {\n var t = o.ordinal,\n n = e.match(/\\d+/);\n if (this.day = n[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\\[|\\]/g, \"\") === e && (this.day = r);\n }],\n M: [r, a(\"month\")],\n MM: [n, a(\"month\")],\n MMM: [i, function (e) {\n var t = h(\"months\"),\n n = (h(\"monthsShort\") || t.map(function (e) {\n return e.slice(0, 3);\n })).indexOf(e) + 1;\n if (n < 1) throw new Error();\n this.month = n % 12 || n;\n }],\n MMMM: [i, function (e) {\n var t = h(\"months\").indexOf(e) + 1;\n if (t < 1) throw new Error();\n this.month = t % 12 || t;\n }],\n Y: [/[+-]?\\d+/, a(\"year\")],\n YY: [n, function (e) {\n this.year = s(e);\n }],\n YYYY: [/\\d{4}/, a(\"year\")],\n Z: f,\n ZZ: f\n };\n function c(n) {\n var r, i;\n r = n, i = o && o.formats;\n for (var s = (n = r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g, function (t, n, r) {\n var o = r && r.toUpperCase();\n return n || i[r] || e[r] || i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g, function (e, t, n) {\n return t || n.slice(1);\n });\n })).match(t), a = s.length, f = 0; f < a; f += 1) {\n var h = s[f],\n u = d[h],\n c = u && u[0],\n l = u && u[1];\n s[f] = l ? {\n regex: c,\n parser: l\n } : h.replace(/^\\[|\\]$/g, \"\");\n }\n return function (e) {\n for (var t = {}, n = 0, r = 0; n < a; n += 1) {\n var i = s[n];\n if (\"string\" == typeof i) r += i.length;else {\n var o = i.regex,\n f = i.parser,\n h = e.slice(r),\n
|