prlg-ui 1.7.44 → 1.7.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,225 +0,0 @@
1
- import { defineComponent as $, useId as z, ref as b, computed as w, onMounted as I, createElementBlock as o, openBlock as s, normalizeClass as C, createCommentVNode as r, createBlock as k, createVNode as h, unref as g, resolveDynamicComponent as j, toDisplayString as p, Teleport as x, Transition as E, withCtx as N, createElementVNode as m, useTemplateRef as V, Fragment as O } from "vue";
2
- import { F as W, E as L, W as D, P, C as S, _ as F, a as R } from "./FileIcon-DkEbi-bi.js";
3
- const ce = (l) => {
4
- const c = ["b", "kb", "mb", "gb", "tb"], n = l.match(/[a-zA-Z]+/)?.[0] || "b", t = parseFloat(l.replace(n, "")), e = c.indexOf(n.toLowerCase());
5
- return t * Math.pow(1024, e);
6
- };
7
- function B(l) {
8
- if (isNaN(l) || l < 0) return "0 Б";
9
- const c = ["Б", "КБ", "МБ", "ГБ", "ТБ"];
10
- let n = 0, t = l;
11
- for (; t >= 1024 && n < c.length - 1; )
12
- t = t / 1024, n++;
13
- return `${t % 1 === 0 ? t : t.toFixed(1)} ${c[n]}`;
14
- }
15
- function A(l) {
16
- return l.startsWith("image/") ? "image" : l === "application/pdf" ? "pdf" : l === "application/msword" || l === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "word" : l === "application/vnd.ms-excel" || l === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "excel" : "other";
17
- }
18
- const Z = {
19
- key: 1,
20
- class: "file__title"
21
- }, q = {
22
- key: 2,
23
- class: "file__info"
24
- }, G = {
25
- key: 0,
26
- class: "file__type"
27
- }, H = {
28
- key: 1,
29
- class: "file__info-separator"
30
- }, J = {
31
- key: 2,
32
- class: "file__size"
33
- }, K = /* @__PURE__ */ $({
34
- __name: "File",
35
- props: {
36
- file: {},
37
- viewName: { type: Boolean, default: !1 },
38
- outlined: { type: Boolean, default: !0 },
39
- removable: { type: Boolean }
40
- },
41
- emits: ["remove"],
42
- setup(l, { emit: c }) {
43
- const n = c, t = z(), e = b(null);
44
- async function f(a, u = "image") {
45
- const d = await (await fetch(a)).blob(), y = d.type.split("/")[1] || "", M = y ? `${u}.${y}` : u;
46
- return new File([d], M, { type: d.type });
47
- }
48
- const _ = w(() => e.value && e.value.mime ? A(e.value.mime) : null), i = w(() => {
49
- switch (_.value) {
50
- case "pdf":
51
- return P;
52
- case "word":
53
- return D;
54
- case "excel":
55
- return L;
56
- case "other":
57
- default:
58
- return W;
59
- }
60
- });
61
- return I(async () => {
62
- if (typeof l.file == "string") {
63
- const a = await f(l.file);
64
- e.value = {
65
- id: t,
66
- url: l.file,
67
- name: a.name,
68
- mime: a.type,
69
- size: a.size
70
- };
71
- } else
72
- e.value = l.file;
73
- }), (a, u) => (s(), o("div", {
74
- class: C(["file", { "file--outlined": a.outlined }])
75
- }, [
76
- a.removable && typeof a.file != "string" ? (s(), o("button", {
77
- key: 0,
78
- class: "file__remove",
79
- onClick: u[0] || (u[0] = (v) => n("remove", a.file))
80
- }, [
81
- h(g(S))
82
- ])) : r("", !0),
83
- (s(), k(j(i.value), { class: "file__icon" })),
84
- e.value && e.value.name && a.viewName ? (s(), o("div", Z, p(e.value ? e.value.name.split(".")[0] : "unknown"), 1)) : r("", !0),
85
- e.value ? (s(), o("div", q, [
86
- e.value.mime ? (s(), o("div", G, p(_.value), 1)) : r("", !0),
87
- e.value.mime && e.value.size ? (s(), o("div", H)) : r("", !0),
88
- e.value.size ? (s(), o("div", J, p(e.value ? g(B)(e.value.size) : "0 Б"), 1)) : r("", !0)
89
- ])) : r("", !0)
90
- ], 2));
91
- }
92
- }), me = /* @__PURE__ */ F(K, [["__scopeId", "data-v-9dee864d"]]), Q = {
93
- key: 0,
94
- class: "image-full-modal"
95
- }, T = { class: "image-full-modal__wrapper" }, U = { class: "image-full-modal__header" }, X = { class: "image-full-modal__main" }, Y = ["src", "alt"], ee = /* @__PURE__ */ $({
96
- __name: "ImageFullModal",
97
- props: {
98
- src: {},
99
- alt: {}
100
- },
101
- setup(l, { expose: c }) {
102
- const n = b(!1);
103
- return c({
104
- open: () => {
105
- n.value = !0;
106
- },
107
- close: () => {
108
- n.value = !1;
109
- }
110
- }), (t, e) => (s(), k(x, { to: "body" }, [
111
- h(E, { name: "fade" }, {
112
- default: N(() => [
113
- n.value ? (s(), o("div", Q, [
114
- m("div", {
115
- class: "image-full-modal__overlay",
116
- onClick: e[0] || (e[0] = (f) => n.value = !1)
117
- }),
118
- m("div", T, [
119
- m("div", U, [
120
- m("button", {
121
- class: "image-full-modal__close",
122
- onClick: e[1] || (e[1] = (f) => n.value = !1)
123
- }, [
124
- h(g(S))
125
- ])
126
- ]),
127
- m("div", X, [
128
- m("img", {
129
- src: t.src,
130
- alt: t.alt
131
- }, null, 8, Y)
132
- ]),
133
- e[2] || (e[2] = m("div", { class: "image-full-modal__footer" }, null, -1))
134
- ])
135
- ])) : r("", !0)
136
- ]),
137
- _: 1
138
- })
139
- ]));
140
- }
141
- }), le = /* @__PURE__ */ F(ee, [["__scopeId", "data-v-edc1a47e"]]), te = ["src", "alt"], ae = {
142
- key: 1,
143
- class: "image__info"
144
- }, ie = {
145
- key: 0,
146
- class: "image__type"
147
- }, se = {
148
- key: 1,
149
- class: "image__info-separator"
150
- }, ne = {
151
- key: 2,
152
- class: "image__size"
153
- }, oe = /* @__PURE__ */ $({
154
- __name: "Image",
155
- props: {
156
- file: {},
157
- alt: {},
158
- size: { default: "medium" },
159
- fullScreen: { type: Boolean }
160
- },
161
- setup(l) {
162
- const c = z(), n = V("imageFullModal"), t = b(null);
163
- async function e(i, a = "image") {
164
- const v = await (await fetch(i)).blob(), d = v.type.split("/")[1] || "", y = d ? `${a}.${d}` : a;
165
- return new File([v], y, { type: v.type });
166
- }
167
- const f = w(() => typeof l.file == "string" ? l.file : l.file.url);
168
- function _(i) {
169
- if (i.startsWith("image/"))
170
- return i.replace("image/", "").toLowerCase();
171
- const a = i.match(/\.(jpeg|jpg|png|gif|webp|bmp|svg|tiff|ico)(\?.*)?$/i);
172
- if (a) {
173
- let u = a[1].toLowerCase();
174
- return u === "jpg" && (u = "jpeg"), u;
175
- }
176
- return "unknown";
177
- }
178
- return I(async () => {
179
- if (typeof l.file == "string") {
180
- const i = await e(l.file);
181
- t.value = {
182
- id: c,
183
- url: l.file,
184
- name: i.name,
185
- mime: i.type,
186
- size: i.size
187
- };
188
- } else
189
- t.value = l.file;
190
- }), (i, a) => (s(), o(O, null, [
191
- m("div", {
192
- class: C(["image", `image--${i.size}`, { "image--full-screen": i.fullScreen }])
193
- }, [
194
- i.fullScreen ? (s(), o("div", {
195
- key: 0,
196
- class: "image__overlay",
197
- onClick: a[0] || (a[0] = (u) => n.value?.open())
198
- }, [
199
- h(g(R))
200
- ])) : r("", !0),
201
- m("img", {
202
- src: f.value,
203
- alt: i.alt
204
- }, null, 8, te),
205
- t.value && i.size === "large" ? (s(), o("div", ae, [
206
- t.value.mime ? (s(), o("div", ie, p(_(t.value.mime)), 1)) : r("", !0),
207
- t.value.mime && t.value.size ? (s(), o("div", se)) : r("", !0),
208
- t.value.size ? (s(), o("div", ne, p(t.value ? g(B)(t.value.size) : "0 Б"), 1)) : r("", !0)
209
- ])) : r("", !0)
210
- ], 2),
211
- i.fullScreen ? (s(), k(le, {
212
- key: 0,
213
- ref: "imageFullModal",
214
- src: f.value,
215
- alt: i.alt
216
- }, null, 8, ["src", "alt"])) : r("", !0)
217
- ], 64));
218
- }
219
- }), fe = /* @__PURE__ */ F(oe, [["__scopeId", "data-v-b7bef272"]]);
220
- export {
221
- me as F,
222
- fe as I,
223
- A as g,
224
- ce as p
225
- };
@@ -1 +0,0 @@
1
- "use strict";function J(B){return B&&B.__esModule&&Object.prototype.hasOwnProperty.call(B,"default")?B.default:B}var tt={exports:{}},St=tt.exports,lt;function gt(){return lt||(lt=1,function(B,W){(function(S,f){B.exports=f()})(St,function(){var S=1e3,f=6e4,T=36e5,D="millisecond",x="second",g="minute",w="hour",p="day",d="week",L="month",A="quarter",q="year",M="date",k="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|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,_={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(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},Y=function(s,r,t){var o=String(s);return!o||o.length>=r?s:""+Array(r+1-o.length).join(t)+s},I={s:Y,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),o=Math.floor(t/60),n=t%60;return(r<=0?"+":"-")+Y(o,2,"0")+":"+Y(n,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var o=12*(t.year()-r.year())+(t.month()-r.month()),n=r.clone().add(o,L),h=t-n<0,m=r.clone().add(o+(h?-1:1),L);return+(-(o+(t-n)/(h?n-m:m-n))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:L,y:q,w:d,d:p,D:M,h:w,m:g,s:x,ms:D,Q:A}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",l={};l[H]=_;var i="$isDayjsObject",e=function(s){return s instanceof O||!(!s||!s[i])},v=function s(r,t,o){var n;if(!r)return H;if(typeof r=="string"){var h=r.toLowerCase();l[h]&&(n=h),t&&(l[h]=t,n=h);var m=r.split("-");if(!n&&m.length>1)return s(m[0])}else{var y=r.name;l[y]=r,n=y}return!o&&n&&(H=n),n||!o&&H},$=function(s,r){if(e(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new O(t)},a=I;a.l=v,a.i=e,a.w=function(s,r){return $(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var O=function(){function s(t){this.$L=v(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[i]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(o){var n=o.date,h=o.utc;if(n===null)return new Date(NaN);if(a.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var m=n.match(u);if(m){var y=m[2]-1||0,F=(m[7]||"0").substring(0,3);return h?new Date(Date.UTC(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,F)):new Date(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,F)}}return new Date(n)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==k},r.isSame=function(t,o){var n=$(t);return this.startOf(o)<=n&&n<=this.endOf(o)},r.isAfter=function(t,o){return $(t)<this.startOf(o)},r.isBefore=function(t,o){return this.endOf(o)<$(t)},r.$g=function(t,o,n){return a.u(t)?this[o]:this.set(n,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,o){var n=this,h=!!a.u(o)||o,m=a.p(t),y=function(R,P){var E=a.w(n.$u?Date.UTC(n.$y,P,R):new Date(n.$y,P,R),n);return h?E:E.endOf(p)},F=function(R,P){return a.w(n.toDate()[R].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(P)),n)},j=this.$W,C=this.$M,z=this.$D,V="set"+(this.$u?"UTC":"");switch(m){case q:return h?y(1,0):y(31,11);case L:return h?y(1,C):y(0,C+1);case d:var N=this.$locale().weekStart||0,X=(j<N?j+7:j)-N;return y(h?z-X:z+(6-X),C);case p:case M:return F(V+"Hours",0);case w:return F(V+"Minutes",1);case g:return F(V+"Seconds",2);case x:return F(V+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,o){var n,h=a.p(t),m="set"+(this.$u?"UTC":""),y=(n={},n[p]=m+"Date",n[M]=m+"Date",n[L]=m+"Month",n[q]=m+"FullYear",n[w]=m+"Hours",n[g]=m+"Minutes",n[x]=m+"Seconds",n[D]=m+"Milliseconds",n)[h],F=h===p?this.$D+(o-this.$W):o;if(h===L||h===q){var j=this.clone().set(M,1);j.$d[y](F),j.init(),this.$d=j.set(M,Math.min(this.$D,j.daysInMonth())).$d}else y&&this.$d[y](F);return this.init(),this},r.set=function(t,o){return this.clone().$set(t,o)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,o){var n,h=this;t=Number(t);var m=a.p(o),y=function(C){var z=$(h);return a.w(z.date(z.date()+Math.round(C*t)),h)};if(m===L)return this.set(L,this.$M+t);if(m===q)return this.set(q,this.$y+t);if(m===p)return y(1);if(m===d)return y(7);var F=(n={},n[g]=f,n[w]=T,n[x]=S,n)[m]||1,j=this.$d.getTime()+t*F;return a.w(j,this)},r.subtract=function(t,o){return this.add(-1*t,o)},r.format=function(t){var o=this,n=this.$locale();if(!this.isValid())return n.invalidDate||k;var h=t||"YYYY-MM-DDTHH:mm:ssZ",m=a.z(this),y=this.$H,F=this.$m,j=this.$M,C=n.weekdays,z=n.months,V=n.meridiem,N=function(P,E,U,Q){return P&&(P[E]||P(o,h))||U[E].slice(0,Q)},X=function(P){return a.s(y%12||12,P,"0")},R=V||function(P,E,U){var Q=P<12?"AM":"PM";return U?Q.toLowerCase():Q};return h.replace(c,function(P,E){return E||function(U){switch(U){case"YY":return String(o.$y).slice(-2);case"YYYY":return a.s(o.$y,4,"0");case"M":return j+1;case"MM":return a.s(j+1,2,"0");case"MMM":return N(n.monthsShort,j,z,3);case"MMMM":return N(z,j);case"D":return o.$D;case"DD":return a.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return N(n.weekdaysMin,o.$W,C,2);case"ddd":return N(n.weekdaysShort,o.$W,C,3);case"dddd":return C[o.$W];case"H":return String(y);case"HH":return a.s(y,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return R(y,F,!0);case"A":return R(y,F,!1);case"m":return String(F);case"mm":return a.s(F,2,"0");case"s":return String(o.$s);case"ss":return a.s(o.$s,2,"0");case"SSS":return a.s(o.$ms,3,"0");case"Z":return m}return null}(P)||m.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,o,n){var h,m=this,y=a.p(o),F=$(t),j=(F.utcOffset()-this.utcOffset())*f,C=this-F,z=function(){return a.m(m,F)};switch(y){case q:h=z()/12;break;case L:h=z();break;case A:h=z()/3;break;case d:h=(C-j)/6048e5;break;case p:h=(C-j)/864e5;break;case w:h=C/T;break;case g:h=C/f;break;case x:h=C/S;break;default:h=C}return n?h:a.a(h)},r.daysInMonth=function(){return this.endOf(L).$D},r.$locale=function(){return l[this.$L]},r.locale=function(t,o){if(!t)return this.$L;var n=this.clone(),h=v(t,o,!0);return h&&(n.$L=h),n},r.clone=function(){return a.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()},s}(),b=O.prototype;return $.prototype=b,[["$ms",D],["$s",x],["$m",g],["$H",w],["$W",p],["$M",L],["$y",q],["$D",M]].forEach(function(s){b[s[1]]=function(r){return this.$g(r,s[0],s[1])}}),$.extend=function(s,r){return s.$i||(s(r,O,$),s.$i=!0),$},$.locale=v,$.isDayjs=e,$.unix=function(s){return $(1e3*s)},$.en=l[H],$.Ls=l,$.p={},$})}(tt)),tt.exports}var wt=gt();const Z=J(wt);var et={exports:{}},Lt=et.exports,$t;function Ot(){return $t||($t=1,function(B,W){(function(S,f){B.exports=f()})(Lt,function(){var S={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"};return function(f,T,D){var x=T.prototype,g=x.format;D.en.formats=S,x.format=function(w){w===void 0&&(w="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,d=function(L,A){return L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(q,M,k){var u=k&&k.toUpperCase();return M||A[k]||S[k]||A[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,_,Y){return _||Y.slice(1)})})}(w,p===void 0?{}:p);return g.call(this,d)}}})}(et)),et.exports}var Tt=Ot();const bt=J(Tt);var rt={exports:{}},kt=rt.exports,pt;function Ht(){return pt||(pt=1,function(B,W){(function(S,f){B.exports=f()})(kt,function(){return function(S,f,T){S=S||{};var D=f.prototype,x={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,d,L,A){return D.fromToBase(p,d,L,A)}T.en.relativeTime=x,D.fromToBase=function(p,d,L,A,q){for(var M,k,u,c=L.$locale().relativeTime||x,_=S.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],Y=_.length,I=0;I<Y;I+=1){var H=_[I];H.d&&(M=A?T(p).diff(L,H.d,!0):L.diff(p,H.d,!0));var l=(S.rounding||Math.round)(Math.abs(M));if(u=M>0,l<=H.r||!H.r){l<=1&&I>0&&(H=_[I-1]);var i=c[H.l];q&&(l=q(""+l)),k=typeof i=="string"?i.replace("%d",l):i(l,d,H.l,u);break}}if(d)return k;var e=u?c.future:c.past;return typeof e=="function"?e(k):e.replace("%s",k)},D.to=function(p,d){return g(p,d,this,!0)},D.from=function(p,d){return g(p,d,this)};var w=function(p){return p.$u?T.utc():T()};D.toNow=function(p){return this.to(w(this),p)},D.fromNow=function(p){return this.from(w(this),p)}}})}(rt)),rt.exports}var At=Ht();const Bt=J(At);var nt={exports:{}},Ft=nt.exports,Mt;function qt(){return Mt||(Mt=1,function(B,W){(function(S,f){B.exports=f()})(Ft,function(){return function(S,f,T){f.prototype.isToday=function(){var D="YYYY-MM-DD",x=T();return this.format(D)===x.format(D)}}})}(nt)),nt.exports}var jt=qt();const It=J(jt);var st={exports:{}},Ct=st.exports,vt;function Pt(){return vt||(vt=1,function(B,W){(function(S,f){B.exports=f()})(Ct,function(){return function(S,f,T){f.prototype.isBetween=function(D,x,g,w){var p=T(D),d=T(x),L=(w=w||"()")[0]==="(",A=w[1]===")";return(L?this.isAfter(p,g):!this.isBefore(p,g))&&(A?this.isBefore(d,g):!this.isAfter(d,g))||(L?this.isBefore(p,g):!this.isAfter(p,g))&&(A?this.isAfter(d,g):!this.isBefore(d,g))}}})}(st)),st.exports}var zt=Pt();const Et=J(zt);var it={exports:{}},Rt=it.exports,yt;function Zt(){return yt||(yt=1,function(B,W){(function(S,f){B.exports=f()})(Rt,function(){return function(S,f){f.prototype.isSameOrBefore=function(T,D){return this.isSame(T,D)||this.isBefore(T,D)}}})}(it)),it.exports}var Wt=Zt();const Nt=J(Wt);var ot={exports:{}},Ut=ot.exports,_t;function Jt(){return _t||(_t=1,function(B,W){(function(S,f){B.exports=f()})(Ut,function(){return function(S,f){f.prototype.isSameOrAfter=function(T,D){return this.isSame(T,D)||this.isAfter(T,D)}}})}(ot)),ot.exports}var Vt=Jt();const Qt=J(Vt);var at={exports:{}},Xt=at.exports,Dt;function Gt(){return Dt||(Dt=1,function(B,W){(function(S,f){B.exports=f()})(Xt,function(){var S,f,T=1e3,D=6e4,x=36e5,g=864e5,w=/\[([^\]]+)]|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,p=31536e6,d=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A={years:p,months:d,days:g,hours:x,minutes:D,seconds:T,milliseconds:1,weeks:6048e5},q=function(l){return l instanceof I},M=function(l,i,e){return new I(l,e,i.$l)},k=function(l){return f.p(l)+"s"},u=function(l){return l<0},c=function(l){return u(l)?Math.ceil(l):Math.floor(l)},_=function(l){return Math.abs(l)},Y=function(l,i){return l?u(l)?{negative:!0,format:""+_(l)+i}:{negative:!1,format:""+l+i}:{negative:!1,format:""}},I=function(){function l(e,v,$){var a=this;if(this.$d={},this.$l=$,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),v)return M(e*A[k(v)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach(function(s){a.$d[k(s)]=e[s]}),this.calMilliseconds(),this;if(typeof e=="string"){var O=e.match(L);if(O){var b=O.slice(2).map(function(s){return s!=null?Number(s):0});return this.$d.years=b[0],this.$d.months=b[1],this.$d.weeks=b[2],this.$d.days=b[3],this.$d.hours=b[4],this.$d.minutes=b[5],this.$d.seconds=b[6],this.calMilliseconds(),this}}return this}var i=l.prototype;return i.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(v,$){return v+(e.$d[$]||0)*A[$]},0)},i.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=c(e/p),e%=p,this.$d.months=c(e/d),e%=d,this.$d.days=c(e/g),e%=g,this.$d.hours=c(e/x),e%=x,this.$d.minutes=c(e/D),e%=D,this.$d.seconds=c(e/T),e%=T,this.$d.milliseconds=e},i.toISOString=function(){var e=Y(this.$d.years,"Y"),v=Y(this.$d.months,"M"),$=+this.$d.days||0;this.$d.weeks&&($+=7*this.$d.weeks);var a=Y($,"D"),O=Y(this.$d.hours,"H"),b=Y(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var r=Y(s,"S"),t=e.negative||v.negative||a.negative||O.negative||b.negative||r.negative,o=O.format||b.format||r.format?"T":"",n=(t?"-":"")+"P"+e.format+v.format+a.format+o+O.format+b.format+r.format;return n==="P"||n==="-P"?"P0D":n},i.toJSON=function(){return this.toISOString()},i.format=function(e){var v=e||"YYYY-MM-DDTHH:mm:ss",$={Y:this.$d.years,YY:f.s(this.$d.years,2,"0"),YYYY:f.s(this.$d.years,4,"0"),M:this.$d.months,MM:f.s(this.$d.months,2,"0"),D:this.$d.days,DD:f.s(this.$d.days,2,"0"),H:this.$d.hours,HH:f.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:f.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:f.s(this.$d.seconds,2,"0"),SSS:f.s(this.$d.milliseconds,3,"0")};return v.replace(w,function(a,O){return O||String($[a])})},i.as=function(e){return this.$ms/A[k(e)]},i.get=function(e){var v=this.$ms,$=k(e);return $==="milliseconds"?v%=1e3:v=$==="weeks"?c(v/A[$]):this.$d[$],v||0},i.add=function(e,v,$){var a;return a=v?e*A[k(v)]:q(e)?e.$ms:M(e,this).$ms,M(this.$ms+a*($?-1:1),this)},i.subtract=function(e,v){return this.add(e,v,!0)},i.locale=function(e){var v=this.clone();return v.$l=e,v},i.clone=function(){return M(this.$ms,this)},i.humanize=function(e){return S().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},i.valueOf=function(){return this.asMilliseconds()},i.milliseconds=function(){return this.get("milliseconds")},i.asMilliseconds=function(){return this.as("milliseconds")},i.seconds=function(){return this.get("seconds")},i.asSeconds=function(){return this.as("seconds")},i.minutes=function(){return this.get("minutes")},i.asMinutes=function(){return this.as("minutes")},i.hours=function(){return this.get("hours")},i.asHours=function(){return this.as("hours")},i.days=function(){return this.get("days")},i.asDays=function(){return this.as("days")},i.weeks=function(){return this.get("weeks")},i.asWeeks=function(){return this.as("weeks")},i.months=function(){return this.get("months")},i.asMonths=function(){return this.as("months")},i.years=function(){return this.get("years")},i.asYears=function(){return this.as("years")},l}(),H=function(l,i,e){return l.add(i.years()*e,"y").add(i.months()*e,"M").add(i.days()*e,"d").add(i.hours()*e,"h").add(i.minutes()*e,"m").add(i.seconds()*e,"s").add(i.milliseconds()*e,"ms")};return function(l,i,e){S=e,f=e().$utils(),e.duration=function(a,O){var b=e.locale();return M(a,{$l:b},O)},e.isDuration=q;var v=i.prototype.add,$=i.prototype.subtract;i.prototype.add=function(a,O){return q(a)?H(this,a,1):v.bind(this)(a,O)},i.prototype.subtract=function(a,O){return q(a)?H(this,a,-1):$.bind(this)(a,O)}}})}(at)),at.exports}var Kt=Gt();const te=J(Kt);var ut={exports:{}},ee=ut.exports,Yt;function re(){return Yt||(Yt=1,function(B,W){(function(S,f){B.exports=f()})(ee,function(){var S={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"},f=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,T=/\d/,D=/\d\d/,x=/\d\d?/,g=/\d*[^-_:/,()\s\d]+/,w={},p=function(u){return(u=+u)+(u>68?1900:2e3)},d=function(u){return function(c){this[u]=+c}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(u){(this.zone||(this.zone={})).offset=function(c){if(!c||c==="Z")return 0;var _=c.match(/([+-]|\d\d)/g),Y=60*_[1]+(+_[2]||0);return Y===0?0:_[0]==="+"?-Y:Y}(u)}],A=function(u){var c=w[u];return c&&(c.indexOf?c:c.s.concat(c.f))},q=function(u,c){var _,Y=w.meridiem;if(Y){for(var I=1;I<=24;I+=1)if(u.indexOf(Y(I,0,c))>-1){_=I>12;break}}else _=u===(c?"pm":"PM");return _},M={A:[g,function(u){this.afternoon=q(u,!1)}],a:[g,function(u){this.afternoon=q(u,!0)}],Q:[T,function(u){this.month=3*(u-1)+1}],S:[T,function(u){this.milliseconds=100*+u}],SS:[D,function(u){this.milliseconds=10*+u}],SSS:[/\d{3}/,function(u){this.milliseconds=+u}],s:[x,d("seconds")],ss:[x,d("seconds")],m:[x,d("minutes")],mm:[x,d("minutes")],H:[x,d("hours")],h:[x,d("hours")],HH:[x,d("hours")],hh:[x,d("hours")],D:[x,d("day")],DD:[D,d("day")],Do:[g,function(u){var c=w.ordinal,_=u.match(/\d+/);if(this.day=_[0],c)for(var Y=1;Y<=31;Y+=1)c(Y).replace(/\[|\]/g,"")===u&&(this.day=Y)}],w:[x,d("week")],ww:[D,d("week")],M:[x,d("month")],MM:[D,d("month")],MMM:[g,function(u){var c=A("months"),_=(A("monthsShort")||c.map(function(Y){return Y.slice(0,3)})).indexOf(u)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[g,function(u){var c=A("months").indexOf(u)+1;if(c<1)throw new Error;this.month=c%12||c}],Y:[/[+-]?\d+/,d("year")],YY:[D,function(u){this.year=p(u)}],YYYY:[/\d{4}/,d("year")],Z:L,ZZ:L};function k(u){var c,_;c=u,_=w&&w.formats;for(var Y=(u=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,a,O){var b=O&&O.toUpperCase();return a||_[O]||S[O]||_[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(s,r,t){return r||t.slice(1)})})).match(f),I=Y.length,H=0;H<I;H+=1){var l=Y[H],i=M[l],e=i&&i[0],v=i&&i[1];Y[H]=v?{regex:e,parser:v}:l.replace(/^\[|\]$/g,"")}return function($){for(var a={},O=0,b=0;O<I;O+=1){var s=Y[O];if(typeof s=="string")b+=s.length;else{var r=s.regex,t=s.parser,o=$.slice(b),n=r.exec(o)[0];t.call(a,n),$=$.replace(n,"")}}return function(h){var m=h.afternoon;if(m!==void 0){var y=h.hours;m?y<12&&(h.hours+=12):y===12&&(h.hours=0),delete h.afternoon}}(a),a}}return function(u,c,_){_.p.customParseFormat=!0,u&&u.parseTwoDigitYear&&(p=u.parseTwoDigitYear);var Y=c.prototype,I=Y.parse;Y.parse=function(H){var l=H.date,i=H.utc,e=H.args;this.$u=i;var v=e[1];if(typeof v=="string"){var $=e[2]===!0,a=e[3]===!0,O=$||a,b=e[2];a&&(b=e[2]),w=this.$locale(),!$&&b&&(w=_.Ls[b]),this.$d=function(o,n,h,m){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*o);var y=k(n)(o),F=y.year,j=y.month,C=y.day,z=y.hours,V=y.minutes,N=y.seconds,X=y.milliseconds,R=y.zone,P=y.week,E=new Date,U=C||(F||j?1:E.getDate()),Q=F||E.getFullYear(),G=0;F&&!j||(G=j>0?j-1:E.getMonth());var K,ft=z||0,ht=V||0,dt=N||0,mt=X||0;return R?new Date(Date.UTC(Q,G,U,ft,ht,dt,mt+60*R.offset*1e3)):h?new Date(Date.UTC(Q,G,U,ft,ht,dt,mt)):(K=new Date(Q,G,U,ft,ht,dt,mt),P&&(K=m(K).week(P).toDate()),K)}catch{return new Date("")}}(l,v,i,_),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),O&&l!=this.format(v)&&(this.$d=new Date("")),w={}}else if(v instanceof Array)for(var s=v.length,r=1;r<=s;r+=1){e[1]=v[r-1];var t=_.apply(this,e);if(t.isValid()){this.$d=t.$d,this.$L=t.$L,this.init();break}r===s&&(this.$d=new Date(""))}else I.call(this,H)}}})}(ut)),ut.exports}var ne=re();const se=J(ne);var ct={exports:{}},ie=ct.exports,xt;function oe(){return xt||(xt=1,function(B,W){(function(S,f){B.exports=f(gt())})(ie,function(S){function f(M){return M&&typeof M=="object"&&"default"in M?M:{default:M}}var T=f(S),D="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),x="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),g="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),w="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),p=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(M,k,u){var c,_;return u==="m"?k?"минута":"минуту":M+" "+(c=+M,_={mm:k?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[u].split("_"),c%10==1&&c%100!=11?_[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?_[1]:_[2])}var L=function(M,k){return p.test(k)?D[M.month()]:x[M.month()]};L.s=x,L.f=D;var A=function(M,k){return p.test(k)?g[M.month()]:w[M.month()]};A.s=w,A.f=g;var q={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:L,monthsShort:A,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(M){return M},meridiem:function(M){return M<4?"ночи":M<12?"утра":M<17?"дня":"вечера"}};return T.default.locale(q,null,!0),q})}(ct)),ct.exports}oe();Z.extend(bt);Z.extend(Bt);Z.extend(It);Z.extend(Et);Z.extend(Nt);Z.extend(Qt);Z.extend(te);Z.extend(se);Z.locale("ru");exports.dayjs=Z;