import "./chunk-2LSFTFF7.js"; // node_modules/.pnpm/@univerjs+design@0.5.5_react-dom@18.3.1_react@18.3.1/node_modules/@univerjs/design/lib/es/locale/zh-CN.js function de(i) { return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i; } var W = { exports: {} }; var Z = { exports: {} }; var ve = Z.exports; var re; function $e() { return re || (re = 1, function(i, m) { (function(d, a) { i.exports = a(); })(ve, function() { var d = 1e3, a = 6e4, h = 36e5, p = "millisecond", c = "second", _ = "minute", x = "hour", Y = "day", N = "week", S = "month", G = "quarter", g = "year", q = "date", X = "Invalid Date", he = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ye = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _e = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(o) { var r = ["th", "st", "nd", "rd"], e = o % 100; return "[" + o + (r[(e - 20) % 10] || r[e] || r[0]) + "]"; } }, I = function(o, r, e) { var n = String(o); return !n || n.length >= r ? o : "" + Array(r + 1 - n.length).join(e) + o; }, me = { s: I, z: function(o) { var r = -o.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60; return (r <= 0 ? "+" : "-") + I(n, 2, "0") + ":" + I(t, 2, "0"); }, m: function o(r, e) { if (r.date() < e.date()) return -o(e, r); var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, S), s = e - t < 0, u = r.clone().add(n + (s ? -1 : 1), S); return +(-(n + (e - t) / (s ? t - u : u - t)) || 0); }, a: function(o) { return o < 0 ? Math.ceil(o) || 0 : Math.floor(o); }, p: function(o) { return { M: S, y: g, w: N, d: Y, D: q, h: x, m: _, s: c, ms: p, Q: G }[o] || String(o || "").toLowerCase().replace(/s$/, ""); }, u: function(o) { return o === void 0; } }, L = "en", w = {}; w[L] = _e; var ee = "$isDayjsObject", E = function(o) { return o instanceof A || !(!o || !o[ee]); }, z = function o(r, e, n) { var t; if (!r) return L; if (typeof r == "string") { var s = r.toLowerCase(); w[s] && (t = s), e && (w[s] = e, t = s); var u = r.split("-"); if (!t && u.length > 1) return o(u[0]); } else { var l = r.name; w[l] = r, t = l; } return !n && t && (L = t), t || !n && L; }, v = function(o, r) { if (E(o)) return o.clone(); var e = typeof r == "object" ? r : {}; return e.date = o, e.args = arguments, new A(e); }, f = me; f.l = z, f.i = E, f.w = function(o, r) { return v(o, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset }); }; var A = function() { function o(e) { this.$L = z(e.locale, null, true), this.parse(e), this.$x = this.$x || e.x || {}, this[ee] = true; } var r = o.prototype; return r.parse = function(e) { this.$d = function(n) { var t = n.date, s = n.utc; if (t === null) return /* @__PURE__ */ new Date(NaN); if (f.u(t)) return /* @__PURE__ */ new Date(); if (t instanceof Date) return new Date(t); if (typeof t == "string" && !/Z$/i.test(t)) { var u = t.match(he); if (u) { var l = u[2] - 1 || 0, y = (u[7] || "0").substring(0, 3); return s ? new Date(Date.UTC(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y)) : new Date(u[1], l, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, y); } } return new Date(t); }(e), this.init(); }, r.init = function() { var e = this.$d; this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds(); }, r.$utils = function() { return f; }, r.isValid = function() { return this.$d.toString() !== X; }, r.isSame = function(e, n) { var t = v(e); return this.startOf(n) <= t && t <= this.endOf(n); }, r.isAfter = function(e, n) { return v(e) < this.startOf(n); }, r.isBefore = function(e, n) { return this.endOf(n) < v(e); }, r.$g = function(e, n, t) { return f.u(e) ? this[n] : this.set(t, e); }, r.unix = function() { return Math.floor(this.valueOf() / 1e3); }, r.valueOf = function() { return this.$d.getTime(); }, r.startOf = function(e, n) { var t = this, s = !!f.u(n) || n, u = f.p(e), l = function(P, D) { var O = f.w(t.$u ? Date.UTC(t.$y, D, P) : new Date(t.$y, D, P), t); return s ? O : O.endOf(Y); }, y = function(P, D) { return f.w(t.toDate()[P].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(D)), t); }, $ = this.$W, M = this.$M, b = this.$D, k = "set" + (this.$u ? "UTC" : ""); switch (u) { case g: return s ? l(1, 0) : l(31, 11); case S: return s ? l(1, M) : l(0, M + 1); case N: var j = this.$locale().weekStart || 0, C = ($ < j ? $ + 7 : $) - j; return l(s ? b - C : b + (6 - C), M); case Y: case q: return y(k + "Hours", 0); case x: return y(k + "Minutes", 1); case _: return y(k + "Seconds", 2); case c: return y(k + "Milliseconds", 3); default: return this.clone(); } }, r.endOf = function(e) { return this.startOf(e, false); }, r.$set = function(e, n) { var t, s = f.p(e), u = "set" + (this.$u ? "UTC" : ""), l = (t = {}, t[Y] = u + "Date", t[q] = u + "Date", t[S] = u + "Month", t[g] = u + "FullYear", t[x] = u + "Hours", t[_] = u + "Minutes", t[c] = u + "Seconds", t[p] = u + "Milliseconds", t)[s], y = s === Y ? this.$D + (n - this.$W) : n; if (s === S || s === g) { var $ = this.clone().set(q, 1); $.$d[l](y), $.init(), this.$d = $.set(q, Math.min(this.$D, $.daysInMonth())).$d; } else l && this.$d[l](y); return this.init(), this; }, r.set = function(e, n) { return this.clone().$set(e, n); }, r.get = function(e) { return this[f.p(e)](); }, r.add = function(e, n) { var t, s = this; e = Number(e); var u = f.p(n), l = function(M) { var b = v(s); return f.w(b.date(b.date() + Math.round(M * e)), s); }; if (u === S) return this.set(S, this.$M + e); if (u === g) return this.set(g, this.$y + e); if (u === Y) return l(1); if (u === N) return l(7); var y = (t = {}, t[_] = a, t[x] = h, t[c] = d, t)[u] || 1, $ = this.$d.getTime() + e * y; return f.w($, this); }, r.subtract = function(e, n) { return this.add(-1 * e, n); }, r.format = function(e) { var n = this, t = this.$locale(); if (!this.isValid()) return t.invalidDate || X; var s = e || "YYYY-MM-DDTHH:mm:ssZ", u = f.z(this), l = this.$H, y = this.$m, $ = this.$M, M = t.weekdays, b = t.months, k = t.meridiem, j = function(D, O, T, F) { return D && (D[O] || D(n, s)) || T[O].slice(0, F); }, C = function(D) { return f.s(l % 12 || 12, D, "0"); }, P = k || function(D, O, T) { var F = D < 12 ? "AM" : "PM"; return T ? F.toLowerCase() : F; }; return s.replace(ye, function(D, O) { return O || function(T) { switch (T) { case "YY": return String(n.$y).slice(-2); case "YYYY": return f.s(n.$y, 4, "0"); case "M": return $ + 1; case "MM": return f.s($ + 1, 2, "0"); case "MMM": return j(t.monthsShort, $, b, 3); case "MMMM": return j(b, $); case "D": return n.$D; case "DD": return f.s(n.$D, 2, "0"); case "d": return String(n.$W); case "dd": return j(t.weekdaysMin, n.$W, M, 2); case "ddd": return j(t.weekdaysShort, n.$W, M, 3); case "dddd": return M[n.$W]; case "H": return String(l); case "HH": return f.s(l, 2, "0"); case "h": return C(1); case "hh": return C(2); case "a": return P(l, y, true); case "A": return P(l, y, false); case "m": return String(y); case "mm": return f.s(y, 2, "0"); case "s": return String(n.$s); case "ss": return f.s(n.$s, 2, "0"); case "SSS": return f.s(n.$ms, 3, "0"); case "Z": return u; } return null; }(D) || u.replace(":", ""); }); }, r.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); }, r.diff = function(e, n, t) { var s, u = this, l = f.p(n), y = v(e), $ = (y.utcOffset() - this.utcOffset()) * a, M = this - y, b = function() { return f.m(u, y); }; switch (l) { case g: s = b() / 12; break; case S: s = b(); break; case G: s = b() / 3; break; case N: s = (M - $) / 6048e5; break; case Y: s = (M - $) / 864e5; break; case x: s = M / h; break; case _: s = M / a; break; case c: s = M / d; break; default: s = M; } return t ? s : f.a(s); }, r.daysInMonth = function() { return this.endOf(S).$D; }, r.$locale = function() { return w[this.$L]; }, r.locale = function(e, n) { if (!e) return this.$L; var t = this.clone(), s = z(e, n, true); return s && (t.$L = s), t; }, r.clone = function() { return f.w(this.$d, this); }, r.toDate = function() { return new Date(this.valueOf()); }, r.toJSON = function() { return this.isValid() ? this.toISOString() : null; }, r.toISOString = function() { return this.$d.toISOString(); }, r.toString = function() { return this.$d.toUTCString(); }, o; }(), te = A.prototype; return v.prototype = te, [["$ms", p], ["$s", c], ["$m", _], ["$H", x], ["$W", Y], ["$M", S], ["$y", g], ["$D", q]].forEach(function(o) { te[o[1]] = function(r) { return this.$g(r, o[0], o[1]); }; }), v.extend = function(o, r) { return o.$i || (o(r, A, v), o.$i = true), v; }, v.locale = z, v.isDayjs = E, v.unix = function(o) { return v(1e3 * o); }, v.en = w[L], v.Ls = w, v.p = {}, v; }); }(Z)), Z.exports; } var Me = W.exports; var ne; function xe() { return ne || (ne = 1, function(i, m) { (function(d, a) { i.exports = a($e()); })(Me, function(d) { function a(c) { return c && typeof c == "object" && "default" in c ? c : { default: c }; } var h = a(d), p = { name: "zh", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(c, _) { return _ === "W" ? c + "周" : c + "日"; }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s后", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(c, _) { var x = 100 * c + _; return x < 600 ? "凌晨" : x < 900 ? "早上" : x < 1100 ? "上午" : x < 1300 ? "中午" : x < 1800 ? "下午" : "晚上"; } }; return h.default.locale(p, null, true), p; }); }(W)), W.exports; } var De = xe(); var be = de(De); var H = {}; var K = { exports: {} }; var ie; function Se() { return ie || (ie = 1, function(i) { function m(d) { return d && d.__esModule ? d : { default: d }; } i.exports = m, i.exports.__esModule = true, i.exports.default = i.exports; }(K)), K.exports; } var U = { exports: {} }; var J = { exports: {} }; var B = { exports: {} }; var V = { exports: {} }; var oe; function pe() { return oe || (oe = 1, function(i) { function m(d) { "@babel/helpers - typeof"; return i.exports = m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) { return typeof a; } : function(a) { return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a; }, i.exports.__esModule = true, i.exports.default = i.exports, m(d); } i.exports = m, i.exports.__esModule = true, i.exports.default = i.exports; }(V)), V.exports; } var Q = { exports: {} }; var se; function Ye() { return se || (se = 1, function(i) { var m = pe().default; function d(a, h) { if (m(a) != "object" || !a) return a; var p = a[Symbol.toPrimitive]; if (p !== void 0) { var c = p.call(a, h || "default"); if (m(c) != "object") return c; throw new TypeError("@@toPrimitive must return a primitive value."); } return (h === "string" ? String : Number)(a); } i.exports = d, i.exports.__esModule = true, i.exports.default = i.exports; }(Q)), Q.exports; } var ue; function ge() { return ue || (ue = 1, function(i) { var m = pe().default, d = Ye(); function a(h) { var p = d(h, "string"); return m(p) == "symbol" ? p : p + ""; } i.exports = a, i.exports.__esModule = true, i.exports.default = i.exports; }(B)), B.exports; } var ae; function Oe() { return ae || (ae = 1, function(i) { var m = ge(); function d(a, h, p) { return (h = m(h)) in a ? Object.defineProperty(a, h, { value: p, enumerable: true, configurable: true, writable: true }) : a[h] = p, a; } i.exports = d, i.exports.__esModule = true, i.exports.default = i.exports; }(J)), J.exports; } var ce; function we() { return ce || (ce = 1, function(i) { var m = Oe(); function d(h, p) { var c = Object.keys(h); if (Object.getOwnPropertySymbols) { var _ = Object.getOwnPropertySymbols(h); p && (_ = _.filter(function(x) { return Object.getOwnPropertyDescriptor(h, x).enumerable; })), c.push.apply(c, _); } return c; } function a(h) { for (var p = 1; p < arguments.length; p++) { var c = arguments[p] != null ? arguments[p] : {}; p % 2 ? d(Object(c), true).forEach(function(_) { m(h, _, c[_]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(c)) : d(Object(c)).forEach(function(_) { Object.defineProperty(h, _, Object.getOwnPropertyDescriptor(c, _)); }); } return h; } i.exports = a, i.exports.__esModule = true, i.exports.default = i.exports; }(U)), U.exports; } var R = {}; var fe; function je() { return fe || (fe = 1, Object.defineProperty(R, "__esModule", { value: true }), R.commonLocale = void 0, R.commonLocale = { yearFormat: "YYYY", dayFormat: "D", cellMeridiemFormat: "A", monthBeforeYear: true }), R; } var le; function Pe() { if (le) return H; le = 1; var i = Se().default; Object.defineProperty(H, "__esModule", { value: true }), H.default = void 0; var m = i(we()), d = je(), a = (0, m.default)((0, m.default)({}, d.commonLocale), {}, { locale: "zh_CN", today: "今天", now: "此刻", backToToday: "返回今天", ok: "确定", timeSelect: "选择时间", dateSelect: "选择日期", weekSelect: "选择周", clear: "清除", month: "月", year: "年", previousMonth: "上个月 (翻页上键)", nextMonth: "下个月 (翻页下键)", monthSelect: "选择月份", yearSelect: "选择年份", decadeSelect: "选择年代", previousYear: "上一年 (Control键加左方向键)", nextYear: "下一年 (Control键加右方向键)", previousDecade: "上一年代", nextDecade: "下一年代", previousCentury: "上一世纪", nextCentury: "下一世纪", yearFormat: "YYYY年", cellDateFormat: "D", monthBeforeYear: false }); return H.default = a, H; } var qe = Pe(); var ke = de(qe); var Le = { design: { Confirm: { cancel: "取消", confirm: "确定" }, Slider: { resetTo: "恢复至" }, Picker: { ...be, ...ke }, CascaderList: { empty: "无" }, Select: { empty: "无" } } }; export { Le as default }; //# sourceMappingURL=@univerjs_design_locale_zh-CN.js.map