prlg-ui 1.8.226 → 1.8.228
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.
- package/dist/{Image-CI35GQJh.cjs → Image-BPcE12gU.cjs} +1 -1
- package/dist/{Image-BythEdJc.js → Image-BU_5eHO2.js} +1 -1
- package/dist/blocks/index.cjs.js +1 -1
- package/dist/blocks/index.es.js +3 -3
- package/dist/parseFileSize.util-DE7Sk0nR.cjs +1 -0
- package/dist/parseFileSize.util-EJk-rAI5.js +55 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.es.js +88 -87
- package/dist/reka-ui/index.cjs.js +4 -4
- package/dist/reka-ui/index.es.js +2273 -2257
- package/dist/rekaUI.d.ts +15 -1
- package/dist/ru-DQ91TLXh.js +742 -0
- package/dist/ru-aZ6Jw9om.cjs +1 -0
- package/dist/{uploadFile.util-DCFkx3w3.cjs → uploadFile.util-B_xj5G6-.cjs} +1 -1
- package/dist/{uploadFile.util-DhavPrlY.js → uploadFile.util-vuFr0xb6.js} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +23 -22
- package/package.json +2 -2
- package/dist/parseFileSize.util-Bg1rLRLQ.cjs +0 -1
- package/dist/parseFileSize.util-CxVk4CvB.js +0 -785
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function W(k){return k&&k.__esModule&&Object.prototype.hasOwnProperty.call(k,"default")?k.default:k}var K={exports:{}},wt=K.exports,lt;function St(){return lt||(lt=1,(function(k,R){(function(g,f){k.exports=f()})(wt,(function(){var g=1e3,f=6e4,w=36e5,M="millisecond",_="second",S="minute",O="hour",p="day",h="week",L="month",B="quarter",q="year",v="date",A="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,D={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 e=["th","st","nd","rd"],t=s%100;return"["+s+(e[(t-20)%10]||e[t]||e[0])+"]"}},x=function(s,e,t){var o=String(s);return!o||o.length>=e?s:""+Array(e+1-o.length).join(t)+s},I={s:x,z:function(s){var e=-s.utcOffset(),t=Math.abs(e),o=Math.floor(t/60),n=t%60;return(e<=0?"+":"-")+x(o,2,"0")+":"+x(n,2,"0")},m:function s(e,t){if(e.date()<t.date())return-s(t,e);var o=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(o,L),d=t-n<0,m=e.clone().add(o+(d?-1:1),L);return+(-(o+(t-n)/(d?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:h,d:p,D:v,h:O,m:S,s:_,ms:M,Q:B}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",l={};l[H]=D;var i="$isDayjsObject",r=function(s){return s instanceof T||!(!s||!s[i])},y=function s(e,t,o){var n;if(!e)return H;if(typeof e=="string"){var d=e.toLowerCase();l[d]&&(n=d),t&&(l[d]=t,n=d);var m=e.split("-");if(!n&&m.length>1)return s(m[0])}else{var Y=e.name;l[Y]=e,n=Y}return!o&&n&&(H=n),n||!o&&H},$=function(s,e){if(r(s))return s.clone();var t=typeof e=="object"?e:{};return t.date=s,t.args=arguments,new T(t)},a=I;a.l=y,a.i=r,a.w=function(s,e){return $(s,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=(function(){function s(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[i]=!0}var e=s.prototype;return e.parse=function(t){this.$d=(function(o){var n=o.date,d=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 d?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()},e.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()},e.$utils=function(){return a},e.isValid=function(){return this.$d.toString()!==A},e.isSame=function(t,o){var n=$(t);return this.startOf(o)<=n&&n<=this.endOf(o)},e.isAfter=function(t,o){return $(t)<this.startOf(o)},e.isBefore=function(t,o){return this.endOf(o)<$(t)},e.$g=function(t,o,n){return a.u(t)?this[o]:this.set(n,t)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(t,o){var n=this,d=!!a.u(o)||o,m=a.p(t),Y=function(Z,z){var E=a.w(n.$u?Date.UTC(n.$y,z,Z):new Date(n.$y,z,Z),n);return d?E:E.endOf(p)},F=function(Z,z){return a.w(n.toDate()[Z].apply(n.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(z)),n)},j=this.$W,P=this.$M,C=this.$D,J="set"+(this.$u?"UTC":"");switch(m){case q:return d?Y(1,0):Y(31,11);case L:return d?Y(1,P):Y(0,P+1);case h:var N=this.$locale().weekStart||0,Q=(j<N?j+7:j)-N;return Y(d?C-Q:C+(6-Q),P);case p:case v:return F(J+"Hours",0);case O:return F(J+"Minutes",1);case S:return F(J+"Seconds",2);case _:return F(J+"Milliseconds",3);default:return this.clone()}},e.endOf=function(t){return this.startOf(t,!1)},e.$set=function(t,o){var n,d=a.p(t),m="set"+(this.$u?"UTC":""),Y=(n={},n[p]=m+"Date",n[v]=m+"Date",n[L]=m+"Month",n[q]=m+"FullYear",n[O]=m+"Hours",n[S]=m+"Minutes",n[_]=m+"Seconds",n[M]=m+"Milliseconds",n)[d],F=d===p?this.$D+(o-this.$W):o;if(d===L||d===q){var j=this.clone().set(v,1);j.$d[Y](F),j.init(),this.$d=j.set(v,Math.min(this.$D,j.daysInMonth())).$d}else Y&&this.$d[Y](F);return this.init(),this},e.set=function(t,o){return this.clone().$set(t,o)},e.get=function(t){return this[a.p(t)]()},e.add=function(t,o){var n,d=this;t=Number(t);var m=a.p(o),Y=function(P){var C=$(d);return a.w(C.date(C.date()+Math.round(P*t)),d)};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===h)return Y(7);var F=(n={},n[S]=f,n[O]=w,n[_]=g,n)[m]||1,j=this.$d.getTime()+t*F;return a.w(j,this)},e.subtract=function(t,o){return this.add(-1*t,o)},e.format=function(t){var o=this,n=this.$locale();if(!this.isValid())return n.invalidDate||A;var d=t||"YYYY-MM-DDTHH:mm:ssZ",m=a.z(this),Y=this.$H,F=this.$m,j=this.$M,P=n.weekdays,C=n.months,J=n.meridiem,N=function(z,E,U,V){return z&&(z[E]||z(o,d))||U[E].slice(0,V)},Q=function(z){return a.s(Y%12||12,z,"0")},Z=J||function(z,E,U){var V=z<12?"AM":"PM";return U?V.toLowerCase():V};return d.replace(c,(function(z,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,C,3);case"MMMM":return N(C,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,P,2);case"ddd":return N(n.weekdaysShort,o.$W,P,3);case"dddd":return P[o.$W];case"H":return String(Y);case"HH":return a.s(Y,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return Z(Y,F,!0);case"A":return Z(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})(z)||m.replace(":","")}))},e.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},e.diff=function(t,o,n){var d,m=this,Y=a.p(o),F=$(t),j=(F.utcOffset()-this.utcOffset())*f,P=this-F,C=function(){return a.m(m,F)};switch(Y){case q:d=C()/12;break;case L:d=C();break;case B:d=C()/3;break;case h:d=(P-j)/6048e5;break;case p:d=(P-j)/864e5;break;case O:d=P/w;break;case S:d=P/f;break;case _:d=P/g;break;default:d=P}return n?d:a.a(d)},e.daysInMonth=function(){return this.endOf(L).$D},e.$locale=function(){return l[this.$L]},e.locale=function(t,o){if(!t)return this.$L;var n=this.clone(),d=y(t,o,!0);return d&&(n.$L=d),n},e.clone=function(){return a.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},s})(),b=T.prototype;return $.prototype=b,[["$ms",M],["$s",_],["$m",S],["$H",O],["$W",p],["$M",L],["$y",q],["$D",v]].forEach((function(s){b[s[1]]=function(e){return this.$g(e,s[0],s[1])}})),$.extend=function(s,e){return s.$i||(s(e,T,$),s.$i=!0),$},$.locale=y,$.isDayjs=r,$.unix=function(s){return $(1e3*s)},$.en=l[H],$.Ls=l,$.p={},$}))})(K)),K.exports}var Ot=St();const Lt=W(Ot);var tt={exports:{}},Tt=tt.exports,$t;function bt(){return $t||($t=1,(function(k,R){(function(g,f){k.exports=f()})(Tt,(function(){var g={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,w,M){var _=w.prototype,S=_.format;M.en.formats=g,_.format=function(O){O===void 0&&(O="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,h=(function(L,B){return L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(q,v,A){var u=A&&A.toUpperCase();return v||B[A]||g[A]||B[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(c,D,x){return D||x.slice(1)}))}))})(O,p===void 0?{}:p);return S.call(this,h)}}}))})(tt)),tt.exports}var kt=bt();const At=W(kt);var rt={exports:{}},Ht=rt.exports,pt;function Bt(){return pt||(pt=1,(function(k,R){(function(g,f){k.exports=f()})(Ht,(function(){return function(g,f,w){g=g||{};var M=f.prototype,_={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 S(p,h,L,B){return M.fromToBase(p,h,L,B)}w.en.relativeTime=_,M.fromToBase=function(p,h,L,B,q){for(var v,A,u,c=L.$locale().relativeTime||_,D=g.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"}],x=D.length,I=0;I<x;I+=1){var H=D[I];H.d&&(v=B?w(p).diff(L,H.d,!0):L.diff(p,H.d,!0));var l=(g.rounding||Math.round)(Math.abs(v));if(u=v>0,l<=H.r||!H.r){l<=1&&I>0&&(H=D[I-1]);var i=c[H.l];q&&(l=q(""+l)),A=typeof i=="string"?i.replace("%d",l):i(l,h,H.l,u);break}}if(h)return A;var r=u?c.future:c.past;return typeof r=="function"?r(A):r.replace("%s",A)},M.to=function(p,h){return S(p,h,this,!0)},M.from=function(p,h){return S(p,h,this)};var O=function(p){return p.$u?w.utc():w()};M.toNow=function(p){return this.to(O(this),p)},M.fromNow=function(p){return this.from(O(this),p)}}}))})(rt)),rt.exports}var Ft=Bt();const qt=W(Ft);var et={exports:{}},jt=et.exports,vt;function It(){return vt||(vt=1,(function(k,R){(function(g,f){k.exports=f()})(jt,(function(){return function(g,f,w){f.prototype.isToday=function(){var M="YYYY-MM-DD",_=w();return this.format(M)===_.format(M)}}}))})(et)),et.exports}var Pt=It();const zt=W(Pt);var nt={exports:{}},Ct=nt.exports,Mt;function Et(){return Mt||(Mt=1,(function(k,R){(function(g,f){k.exports=f()})(Ct,(function(){return function(g,f,w){f.prototype.isBetween=function(M,_,S,O){var p=w(M),h=w(_),L=(O=O||"()")[0]==="(",B=O[1]===")";return(L?this.isAfter(p,S):!this.isBefore(p,S))&&(B?this.isBefore(h,S):!this.isAfter(h,S))||(L?this.isBefore(p,S):!this.isAfter(p,S))&&(B?this.isAfter(h,S):!this.isBefore(h,S))}}}))})(nt)),nt.exports}var Rt=Et();const Zt=W(Rt);var st={exports:{}},Wt=st.exports,yt;function Nt(){return yt||(yt=1,(function(k,R){(function(g,f){k.exports=f()})(Wt,(function(){return function(g,f){f.prototype.isSameOrBefore=function(w,M){return this.isSame(w,M)||this.isBefore(w,M)}}}))})(st)),st.exports}var Ut=Nt();const Jt=W(Ut);var it={exports:{}},Vt=it.exports,Yt;function Qt(){return Yt||(Yt=1,(function(k,R){(function(g,f){k.exports=f()})(Vt,(function(){return function(g,f){f.prototype.isSameOrAfter=function(w,M){return this.isSame(w,M)||this.isAfter(w,M)}}}))})(it)),it.exports}var Xt=Qt();const Gt=W(Xt);var ot={exports:{}},Kt=ot.exports,_t;function tr(){return _t||(_t=1,(function(k,R){(function(g,f){k.exports=f()})(Kt,(function(){var g,f,w=1e3,M=6e4,_=36e5,S=864e5,O=/\[([^\]]+)]|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,h=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)?)?$/,B={years:p,months:h,days:S,hours:_,minutes:M,seconds:w,milliseconds:1,weeks:6048e5},q=function(l){return l instanceof I},v=function(l,i,r){return new I(l,r,i.$l)},A=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)},D=function(l){return Math.abs(l)},x=function(l,i){return l?u(l)?{negative:!0,format:""+D(l)+i}:{negative:!1,format:""+l+i}:{negative:!1,format:""}},I=(function(){function l(r,y,$){var a=this;if(this.$d={},this.$l=$,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),y)return v(r*B[A(y)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach((function(s){a.$d[A(s)]=r[s]})),this.calMilliseconds(),this;if(typeof r=="string"){var T=r.match(L);if(T){var b=T.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 r=this;this.$ms=Object.keys(this.$d).reduce((function(y,$){return y+(r.$d[$]||0)*B[$]}),0)},i.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=c(r/p),r%=p,this.$d.months=c(r/h),r%=h,this.$d.days=c(r/S),r%=S,this.$d.hours=c(r/_),r%=_,this.$d.minutes=c(r/M),r%=M,this.$d.seconds=c(r/w),r%=w,this.$d.milliseconds=r},i.toISOString=function(){var r=x(this.$d.years,"Y"),y=x(this.$d.months,"M"),$=+this.$d.days||0;this.$d.weeks&&($+=7*this.$d.weeks);var a=x($,"D"),T=x(this.$d.hours,"H"),b=x(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var e=x(s,"S"),t=r.negative||y.negative||a.negative||T.negative||b.negative||e.negative,o=T.format||b.format||e.format?"T":"",n=(t?"-":"")+"P"+r.format+y.format+a.format+o+T.format+b.format+e.format;return n==="P"||n==="-P"?"P0D":n},i.toJSON=function(){return this.toISOString()},i.format=function(r){var y=r||"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 y.replace(O,(function(a,T){return T||String($[a])}))},i.as=function(r){return this.$ms/B[A(r)]},i.get=function(r){var y=this.$ms,$=A(r);return $==="milliseconds"?y%=1e3:y=$==="weeks"?c(y/B[$]):this.$d[$],y||0},i.add=function(r,y,$){var a;return a=y?r*B[A(y)]:q(r)?r.$ms:v(r,this).$ms,v(this.$ms+a*($?-1:1),this)},i.subtract=function(r,y){return this.add(r,y,!0)},i.locale=function(r){var y=this.clone();return y.$l=r,y},i.clone=function(){return v(this.$ms,this)},i.humanize=function(r){return g().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},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,r){return l.add(i.years()*r,"y").add(i.months()*r,"M").add(i.days()*r,"d").add(i.hours()*r,"h").add(i.minutes()*r,"m").add(i.seconds()*r,"s").add(i.milliseconds()*r,"ms")};return function(l,i,r){g=r,f=r().$utils(),r.duration=function(a,T){var b=r.locale();return v(a,{$l:b},T)},r.isDuration=q;var y=i.prototype.add,$=i.prototype.subtract;i.prototype.add=function(a,T){return q(a)?H(this,a,1):y.bind(this)(a,T)},i.prototype.subtract=function(a,T){return q(a)?H(this,a,-1):$.bind(this)(a,T)}}}))})(ot)),ot.exports}var rr=tr();const er=W(rr);var at={exports:{}},nr=at.exports,Dt;function sr(){return Dt||(Dt=1,(function(k,R){(function(g,f){k.exports=f()})(nr,(function(){var g={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,w=/\d/,M=/\d\d/,_=/\d\d?/,S=/\d*[^-_:/,()\s\d]+/,O={},p=function(u){return(u=+u)+(u>68?1900:2e3)},h=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 D=c.match(/([+-]|\d\d)/g),x=60*D[1]+(+D[2]||0);return x===0?0:D[0]==="+"?-x:x})(u)}],B=function(u){var c=O[u];return c&&(c.indexOf?c:c.s.concat(c.f))},q=function(u,c){var D,x=O.meridiem;if(x){for(var I=1;I<=24;I+=1)if(u.indexOf(x(I,0,c))>-1){D=I>12;break}}else D=u===(c?"pm":"PM");return D},v={A:[S,function(u){this.afternoon=q(u,!1)}],a:[S,function(u){this.afternoon=q(u,!0)}],Q:[w,function(u){this.month=3*(u-1)+1}],S:[w,function(u){this.milliseconds=100*+u}],SS:[M,function(u){this.milliseconds=10*+u}],SSS:[/\d{3}/,function(u){this.milliseconds=+u}],s:[_,h("seconds")],ss:[_,h("seconds")],m:[_,h("minutes")],mm:[_,h("minutes")],H:[_,h("hours")],h:[_,h("hours")],HH:[_,h("hours")],hh:[_,h("hours")],D:[_,h("day")],DD:[M,h("day")],Do:[S,function(u){var c=O.ordinal,D=u.match(/\d+/);if(this.day=D[0],c)for(var x=1;x<=31;x+=1)c(x).replace(/\[|\]/g,"")===u&&(this.day=x)}],w:[_,h("week")],ww:[M,h("week")],M:[_,h("month")],MM:[M,h("month")],MMM:[S,function(u){var c=B("months"),D=(B("monthsShort")||c.map((function(x){return x.slice(0,3)}))).indexOf(u)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[S,function(u){var c=B("months").indexOf(u)+1;if(c<1)throw new Error;this.month=c%12||c}],Y:[/[+-]?\d+/,h("year")],YY:[M,function(u){this.year=p(u)}],YYYY:[/\d{4}/,h("year")],Z:L,ZZ:L};function A(u){var c,D;c=u,D=O&&O.formats;for(var x=(u=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,a,T){var b=T&&T.toUpperCase();return a||D[T]||g[T]||D[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(s,e,t){return e||t.slice(1)}))}))).match(f),I=x.length,H=0;H<I;H+=1){var l=x[H],i=v[l],r=i&&i[0],y=i&&i[1];x[H]=y?{regex:r,parser:y}:l.replace(/^\[|\]$/g,"")}return function($){for(var a={},T=0,b=0;T<I;T+=1){var s=x[T];if(typeof s=="string")b+=s.length;else{var e=s.regex,t=s.parser,o=$.slice(b),n=e.exec(o)[0];t.call(a,n),$=$.replace(n,"")}}return(function(d){var m=d.afternoon;if(m!==void 0){var Y=d.hours;m?Y<12&&(d.hours+=12):Y===12&&(d.hours=0),delete d.afternoon}})(a),a}}return function(u,c,D){D.p.customParseFormat=!0,u&&u.parseTwoDigitYear&&(p=u.parseTwoDigitYear);var x=c.prototype,I=x.parse;x.parse=function(H){var l=H.date,i=H.utc,r=H.args;this.$u=i;var y=r[1];if(typeof y=="string"){var $=r[2]===!0,a=r[3]===!0,T=$||a,b=r[2];a&&(b=r[2]),O=this.$locale(),!$&&b&&(O=D.Ls[b]),this.$d=(function(o,n,d,m){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*o);var Y=A(n)(o),F=Y.year,j=Y.month,P=Y.day,C=Y.hours,J=Y.minutes,N=Y.seconds,Q=Y.milliseconds,Z=Y.zone,z=Y.week,E=new Date,U=P||(F||j?1:E.getDate()),V=F||E.getFullYear(),X=0;F&&!j||(X=j>0?j-1:E.getMonth());var G,ct=C||0,dt=J||0,ht=N||0,mt=Q||0;return Z?new Date(Date.UTC(V,X,U,ct,dt,ht,mt+60*Z.offset*1e3)):d?new Date(Date.UTC(V,X,U,ct,dt,ht,mt)):(G=new Date(V,X,U,ct,dt,ht,mt),z&&(G=m(G).week(z).toDate()),G)}catch{return new Date("")}})(l,y,i,D),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),T&&l!=this.format(y)&&(this.$d=new Date("")),O={}}else if(y instanceof Array)for(var s=y.length,e=1;e<=s;e+=1){r[1]=y[e-1];var t=D.apply(this,r);if(t.isValid()){this.$d=t.$d,this.$L=t.$L,this.init();break}e===s&&(this.$d=new Date(""))}else I.call(this,H)}}}))})(at)),at.exports}var ir=sr();const or=W(ir);var ut={exports:{}},ar=ut.exports,xt;function ur(){return xt||(xt=1,(function(k,R){(function(g,f){k.exports=f()})(ar,(function(){return function(g,f,w){f.prototype.dayOfYear=function(M){var _=Math.round((w(this).startOf("day")-w(this).startOf("year"))/864e5)+1;return M==null?_:this.add(M-_,"day")}}}))})(ut)),ut.exports}var fr=ur();const cr=W(fr);var ft={exports:{}},dr=ft.exports,gt;function hr(){return gt||(gt=1,(function(k,R){(function(g,f){k.exports=f(St())})(dr,(function(g){function f(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var w=f(g),M="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),_="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),S="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),O="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),p=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function h(v,A,u){var c,D;return u==="m"?A?"минута":"минуту":v+" "+(c=+v,D={mm:A?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[u].split("_"),c%10==1&&c%100!=11?D[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?D[1]:D[2])}var L=function(v,A){return p.test(A)?M[v.month()]:_[v.month()]};L.s=_,L.f=M;var B=function(v,A){return p.test(A)?S[v.month()]:O[v.month()]};B.s=O,B.f=S;var q={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:L,monthsShort:B,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:h,mm:h,h:"час",hh:h,d:"день",dd:h,M:"месяц",MM:h,y:"год",yy:h},ordinal:function(v){return v},meridiem:function(v){return v<4?"ночи":v<12?"утра":v<17?"дня":"вечера"}};return w.default.locale(q,null,!0),q}))})(ft)),ft.exports}hr();exports.customParseFormat=or;exports.dayOfYear=cr;exports.dayjs=Lt;exports.duration=er;exports.isBetween=Zt;exports.isSameOrAfter=Gt;exports.isSameOrBefore=Jt;exports.isToday=zt;exports.localizedFormat=At;exports.relativeTime=qt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./parseFileSize.util-
|
|
1
|
+
"use strict";const s=require("./parseFileSize.util-DE7Sk0nR.cjs");function o(e){if(!e)return;const a=Array.isArray(e)?e:[e],i={image:["image/*"],pdf:["application/pdf"],excel:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],word:["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],all:["*/*"]};return a.flatMap(t=>i[t]||[]).join(",")}function d(e={}){return new Promise(a=>{const i=document.createElement("input");i.type="file",i.style.display="none",e.multiple&&e.maxFiles&&e.maxFiles>1&&(i.multiple=!0);const t=o(e.accept);t&&(i.accept=t),i.addEventListener("change",r=>{const n=r.target;let l=[];if(n.files&&n.files.length>0&&(l=Array.from(n.files),e.maxFiles&&l.length>e.maxFiles&&(l=l.slice(0,e.maxFiles)),e.maxFileSize)){const c=s.parseFileSize(e.maxFileSize);l=l.filter(m=>m.size<=c)}a(l),document.body.removeChild(i)}),document.body.appendChild(i),i.click()})}exports.openFileDialog=d;
|
package/dist/utils/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../eventBus.util-K9Yq6hZm.cjs"),X=require("../parseFileSize.util-Bg1rLRLQ.cjs"),I=require("../uploadFile.util-DCFkx3w3.cjs"),L=6048e5,J=864e5,Y=Symbol.for("constructDateFrom");function b(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Y in t?t[Y](e):t instanceof Date?new t.constructor(e):new Date(e)}function m(t,e){return b(e||t,t)}let U={};function D(){return U}function p(t,e){const n=D(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=m(t,e?.in),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function k(t,e){return p(t,{...e,weekStartsOn:1})}function Q(t,e){const n=m(t,e?.in),r=n.getFullYear(),a=b(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const i=k(a),o=b(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const u=k(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function N(t){const e=m(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function S(t,...e){const n=b.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function T(t,e){const n=m(t,e?.in);return n.setHours(0,0,0,0),n}function B(t,e,n){const[r,a]=S(n?.in,t,e),i=T(r),o=T(a),u=+i-N(i),d=+o-N(o);return Math.round((u-d)/J)}function K(t,e){const n=Q(t,e),r=b(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),k(r)}function Z(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function tt(t){return!(!Z(t)&&typeof t!="number"||isNaN(+m(t)))}function et(t,e,n){const[r,a]=S(n?.in,t,e),i=F(r,a),o=Math.abs(B(r,a));r.setDate(r.getDate()-i*o);const u=+(F(r,a)===-i),d=i*(o-u);return d===0?0:d}function F(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function nt(t,e){const n=m(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const rt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},at=(t,e,n)=>{let r;const a=rt[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function M(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const it={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ot={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},st={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ut={date:M({formats:it,defaultWidth:"full"}),time:M({formats:ot,defaultWidth:"full"}),dateTime:M({formats:st,defaultWidth:"full"})},ct={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dt=(t,e,n,r)=>ct[t];function h(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,u=n?.width?String(n.width):o;a=t.formattingValues[u]||t.formattingValues[o]}else{const o=t.defaultWidth,u=n?.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return a[i]}}const lt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ft={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ht={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},gt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},wt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yt=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},bt={ordinalNumber:yt,era:h({values:lt,defaultWidth:"wide"}),quarter:h({values:ft,defaultWidth:"wide",argumentCallback:t=>t-1}),month:h({values:mt,defaultWidth:"wide"}),day:h({values:ht,defaultWidth:"wide"}),dayPeriod:h({values:gt,defaultWidth:"wide",formattingValues:wt,defaultFormattingWidth:"wide"})};function g(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;const o=i[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(u)?pt(u,c=>c.test(o)):vt(u,c=>c.test(o));let w;w=t.valueCallback?t.valueCallback(d):d,w=n.valueCallback?n.valueCallback(w):w;const l=e.slice(o.length);return{value:w,rest:l}}}function vt(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function pt(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function V(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const u=e.slice(a.length);return{value:o,rest:u}}}const Pt=/^(\d+)(th|st|nd|rd)?/i,Mt=/\d+/i,Wt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},kt={any:[/^b/i,/^(a|c)/i]},Dt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ot={any:[/1/i,/2/i,/3/i,/4/i]},xt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},St={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Yt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Nt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Tt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ft={ordinalNumber:V({matchPattern:Pt,parsePattern:Mt,valueCallback:t=>parseInt(t,10)}),era:g({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:kt,defaultParseWidth:"any"}),quarter:g({matchPatterns:Dt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any",valueCallback:t=>t+1}),month:g({matchPatterns:xt,defaultMatchWidth:"wide",parsePatterns:St,defaultParseWidth:"any"}),day:g({matchPatterns:Gt,defaultMatchWidth:"wide",parsePatterns:Yt,defaultParseWidth:"any"}),dayPeriod:g({matchPatterns:Nt,defaultMatchWidth:"any",parsePatterns:Tt,defaultParseWidth:"any"})},Et={code:"en-US",formatDistance:at,formatLong:ut,formatRelative:dt,localize:bt,match:Ft,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ct(t,e){const n=m(t,e?.in);return B(n,nt(n))+1}function qt(t,e){const n=m(t,e?.in),r=+k(n)-+K(n);return Math.round(r/L)+1}function j(t,e){const n=m(t,e?.in),r=n.getFullYear(),a=D(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,o=b(e?.in||t,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const u=p(o,e),d=b(e?.in||t,0);d.setFullYear(r,0,i),d.setHours(0,0,0,0);const w=p(d,e);return+n>=+u?r+1:+n>=+w?r:r-1}function $t(t,e){const n=D(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=j(t,e),i=b(e?.in||t,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),p(i,e)}function Ht(t,e){const n=m(t,e?.in),r=+p(n,e)-+$t(n,e);return Math.round(r/L)+1}function s(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const y={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return s(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):s(n+1,2)},d(t,e){return s(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return s(t.getHours()%12||12,e.length)},H(t,e){return s(t.getHours(),e.length)},m(t,e){return s(t.getMinutes(),e.length)},s(t,e){return s(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return s(a,e.length)}},P={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return y.y(t,e)},Y:function(t,e,n,r){const a=j(t,r),i=a>0?a:1-a;if(e==="YY"){const o=i%100;return s(o,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):s(i,e.length)},R:function(t,e){const n=Q(t);return s(n,e.length)},u:function(t,e){const n=t.getFullYear();return s(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return y.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=Ht(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):s(a,e.length)},I:function(t,e,n){const r=qt(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):s(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):y.d(t,e)},D:function(t,e,n){const r=Ct(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return s(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return s(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return s(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=P.noon:r===0?a=P.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=P.evening:r>=12?a=P.afternoon:r>=4?a=P.morning:a=P.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return y.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):y.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):y.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):y.s(t,e)},S:function(t,e){return y.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return q(r);case"XXXX":case"XX":return v(r);case"XXXXX":case"XXX":default:return v(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return q(r);case"xxxx":case"xx":return v(r);case"xxxxx":case"xxx":default:return v(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+C(r,":");case"OOOO":default:return"GMT"+v(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+C(r,":");case"zzzz":default:return"GMT"+v(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return s(r,e.length)},T:function(t,e,n){return s(+t,e.length)}};function C(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+e+s(i,2)}function q(t,e){return t%60===0?(t>0?"-":"+")+s(Math.abs(t)/60,2):v(t,e)}function v(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=s(Math.trunc(r/60),2),i=s(r%60,2);return n+a+e+i}const $=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},R=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},_t=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return $(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",$(r,e)).replace("{{time}}",R(a,e))},Xt={p:R,P:_t},Lt=/^D+$/,Qt=/^Y+$/,Bt=["D","DD","YY","YYYY"];function Vt(t){return Lt.test(t)}function jt(t){return Qt.test(t)}function Rt(t,e,n){const r=At(t,e,n);if(console.warn(r),Bt.includes(t))throw new RangeError(r)}function At(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const zt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,It=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jt=/^'([^]*?)'?$/,Ut=/''/g,Kt=/[a-zA-Z]/;function A(t,e,n){const r=D(),a=n?.locale??r.locale??Et,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=m(t,n?.in);if(!tt(u))throw new RangeError("Invalid time value");let d=e.match(It).map(l=>{const c=l[0];if(c==="p"||c==="P"){const O=Xt[c];return O(l,a.formatLong)}return l}).join("").match(zt).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const c=l[0];if(c==="'")return{isToken:!1,value:Zt(l)};if(E[c])return{isToken:!0,value:l};if(c.match(Kt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:l}});a.localize.preprocessor&&(d=a.localize.preprocessor(u,d));const w={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return d.map(l=>{if(!l.isToken)return l.value;const c=l.value;(!n?.useAdditionalWeekYearTokens&&jt(c)||!n?.useAdditionalDayOfYearTokens&&Vt(c))&&Rt(c,e,String(t));const O=E[c[0]];return O(u,c,a.localize,w)}).join("")}function Zt(t){const e=t.match(Jt);return e?e[1].replace(Ut,"'"):t}function te(t,e){return+m(t)>+m(e)}function H(t,e,n){const[r,a]=S(n?.in,t,e);return+p(r,n)==+p(a,n)}function W(t,e){if(t.one!==void 0&&e===1)return t.one;const n=e%10,r=e%100;return n===1&&r!==11?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function f(t){return(e,n)=>n?.addSuffix?n.comparison&&n.comparison>0?t.future?W(t.future,e):"через "+W(t.regular,e):t.past?W(t.past,e):W(t.regular,e)+" назад":W(t.regular,e)}const ee={lessThanXSeconds:f({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:f({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(t,e)=>e?.addSuffix?e.comparison&&e.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:f({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:f({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:f({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:f({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:f({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:f({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:f({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:f({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:f({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:f({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:f({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:f({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:f({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},ne=(t,e,n)=>ee[t](e,n),re={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},ae={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},ie={any:"{{date}}, {{time}}"},oe={date:M({formats:re,defaultWidth:"full"}),time:M({formats:ae,defaultWidth:"full"}),dateTime:M({formats:ie,defaultWidth:"any"})},G=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function se(t){const e=G[t];switch(t){case 0:return"'в прошлое "+e+" в' p";case 1:case 2:case 4:return"'в прошлый "+e+" в' p";case 3:case 5:case 6:return"'в прошлую "+e+" в' p"}}function _(t){const e=G[t];return t===2?"'во "+e+" в' p":"'в "+e+" в' p"}function ue(t){const e=G[t];switch(t){case 0:return"'в следующее "+e+" в' p";case 1:case 2:case 4:return"'в следующий "+e+" в' p";case 3:case 5:case 6:return"'в следующую "+e+" в' p"}}const ce={lastWeek:(t,e,n)=>{const r=t.getDay();return H(t,e,n)?_(r):se(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(t,e,n)=>{const r=t.getDay();return H(t,e,n)?_(r):ue(r)},other:"P"},de=(t,e,n,r)=>{const a=ce[t];return typeof a=="function"?a(e,n,r):a},le={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},fe={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},me={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},he={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},ge={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},we={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},ye={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},be=(t,e)=>{const n=Number(t),r=e?.unit;let a;return r==="date"?a="-е":r==="week"||r==="minute"||r==="second"?a="-я":a="-й",n+a},ve={ordinalNumber:be,era:h({values:le,defaultWidth:"wide"}),quarter:h({values:fe,defaultWidth:"wide",argumentCallback:t=>t-1}),month:h({values:me,defaultWidth:"wide",formattingValues:he,defaultFormattingWidth:"wide"}),day:h({values:ge,defaultWidth:"wide"}),dayPeriod:h({values:we,defaultWidth:"any",formattingValues:ye,defaultFormattingWidth:"wide"})},pe=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Pe=/\d+/i,Me={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},We={any:[/^д/i,/^н/i]},ke={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},De={any:[/1/i,/2/i,/3/i,/4/i]},Oe={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},xe={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Se={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Ge={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Ye={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},Ne={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Te={ordinalNumber:V({matchPattern:pe,parsePattern:Pe,valueCallback:t=>parseInt(t,10)}),era:g({matchPatterns:Me,defaultMatchWidth:"wide",parsePatterns:We,defaultParseWidth:"any"}),quarter:g({matchPatterns:ke,defaultMatchWidth:"wide",parsePatterns:De,defaultParseWidth:"any",valueCallback:t=>t+1}),month:g({matchPatterns:Oe,defaultMatchWidth:"wide",parsePatterns:xe,defaultParseWidth:"any"}),day:g({matchPatterns:Se,defaultMatchWidth:"wide",parsePatterns:Ge,defaultParseWidth:"any"}),dayPeriod:g({matchPatterns:Ye,defaultMatchWidth:"wide",parsePatterns:Ne,defaultParseWidth:"any"})},z={code:"ru",formatDistance:ne,formatLong:oe,formatRelative:de,localize:ve,match:Te,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Fe(t){return A(new Date(t),"d MMMM yyyy",{locale:z})}function Ee(t){return A(new Date(t),"d MMMM, HH:mm",{locale:z})}function Ce(t,e){return et(new Date(e),new Date(t))}function qe(t){return te(new Date,new Date(t))}function $e(t,e="₽",n=2){return`${t.toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).replace(/,/g," ")} ${e}`}function He(t){return t.reduce((e,n)=>e+n,0)}function _e(t){const e=t.replace(/[^\d.,]/g,"").replace(",",".");return parseFloat(e)||0}exports.EventBus=x.EventBus;exports.Portal=x._sfc_main;exports.useBodyScroll=x.useBodyScroll;exports.dayjs=X.dayjs;exports.onClickOutside=X.onClickOutside;exports.openFileDialog=I.openFileDialog;exports.formatDateReadable=Fe;exports.formatDateWithTime=Ee;exports.formatPrice=$e;exports.getDaysBetween=Ce;exports.isExpired=qe;exports.parsePrice=_e;exports.sumPrices=He;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../eventBus.util-K9Yq6hZm.cjs"),z=require("../parseFileSize.util-DE7Sk0nR.cjs"),I=require("../uploadFile.util-B_xj5G6-.cjs"),J=require("../ru-aZ6Jw9om.cjs"),X=6048e5,U=864e5,Y=Symbol.for("constructDateFrom");function b(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Y in t?t[Y](e):t instanceof Date?new t.constructor(e):new Date(e)}function m(t,e){return b(e||t,t)}let K={};function D(){return K}function p(t,e){const n=D(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=m(t,e?.in),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function k(t,e){return p(t,{...e,weekStartsOn:1})}function L(t,e){const n=m(t,e?.in),r=n.getFullYear(),a=b(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const i=k(a),o=b(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const u=k(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function N(t){const e=m(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function S(t,...e){const n=b.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function T(t,e){const n=m(t,e?.in);return n.setHours(0,0,0,0),n}function Q(t,e,n){const[r,a]=S(n?.in,t,e),i=T(r),o=T(a),u=+i-N(i),d=+o-N(o);return Math.round((u-d)/U)}function Z(t,e){const n=L(t,e),r=b(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),k(r)}function tt(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function et(t){return!(!tt(t)&&typeof t!="number"||isNaN(+m(t)))}function nt(t,e,n){const[r,a]=S(n?.in,t,e),i=F(r,a),o=Math.abs(Q(r,a));r.setDate(r.getDate()-i*o);const u=+(F(r,a)===-i),d=i*(o-u);return d===0?0:d}function F(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function rt(t,e){const n=m(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const at={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},it=(t,e,n)=>{let r;const a=at[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function M(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const ot={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},st={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ut={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ct={date:M({formats:ot,defaultWidth:"full"}),time:M({formats:st,defaultWidth:"full"}),dateTime:M({formats:ut,defaultWidth:"full"})},dt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lt=(t,e,n,r)=>dt[t];function h(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,u=n?.width?String(n.width):o;a=t.formattingValues[u]||t.formattingValues[o]}else{const o=t.defaultWidth,u=n?.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return a[i]}}const ft={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ht={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},yt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bt=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},vt={ordinalNumber:bt,era:h({values:ft,defaultWidth:"wide"}),quarter:h({values:mt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:h({values:ht,defaultWidth:"wide"}),day:h({values:gt,defaultWidth:"wide"}),dayPeriod:h({values:wt,defaultWidth:"wide",formattingValues:yt,defaultFormattingWidth:"wide"})};function g(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;const o=i[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(u)?Pt(u,c=>c.test(o)):pt(u,c=>c.test(o));let w;w=t.valueCallback?t.valueCallback(d):d,w=n.valueCallback?n.valueCallback(w):w;const l=e.slice(o.length);return{value:w,rest:l}}}function pt(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Pt(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function B(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const u=e.slice(a.length);return{value:o,rest:u}}}const Mt=/^(\d+)(th|st|nd|rd)?/i,Wt=/\d+/i,kt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Dt={any:[/^b/i,/^(a|c)/i]},Ot={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xt={any:[/1/i,/2/i,/3/i,/4/i]},St={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Nt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Tt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ft={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Et={ordinalNumber:B({matchPattern:Mt,parsePattern:Wt,valueCallback:t=>parseInt(t,10)}),era:g({matchPatterns:kt,defaultMatchWidth:"wide",parsePatterns:Dt,defaultParseWidth:"any"}),quarter:g({matchPatterns:Ot,defaultMatchWidth:"wide",parsePatterns:xt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:g({matchPatterns:St,defaultMatchWidth:"wide",parsePatterns:Gt,defaultParseWidth:"any"}),day:g({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Nt,defaultParseWidth:"any"}),dayPeriod:g({matchPatterns:Tt,defaultMatchWidth:"any",parsePatterns:Ft,defaultParseWidth:"any"})},Ct={code:"en-US",formatDistance:it,formatLong:ct,formatRelative:lt,localize:vt,match:Et,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qt(t,e){const n=m(t,e?.in);return Q(n,rt(n))+1}function $t(t,e){const n=m(t,e?.in),r=+k(n)-+Z(n);return Math.round(r/X)+1}function V(t,e){const n=m(t,e?.in),r=n.getFullYear(),a=D(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,o=b(e?.in||t,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const u=p(o,e),d=b(e?.in||t,0);d.setFullYear(r,0,i),d.setHours(0,0,0,0);const w=p(d,e);return+n>=+u?r+1:+n>=+w?r:r-1}function Ht(t,e){const n=D(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=V(t,e),i=b(e?.in||t,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),p(i,e)}function _t(t,e){const n=m(t,e?.in),r=+p(n,e)-+Ht(n,e);return Math.round(r/X)+1}function s(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const y={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return s(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):s(n+1,2)},d(t,e){return s(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return s(t.getHours()%12||12,e.length)},H(t,e){return s(t.getHours(),e.length)},m(t,e){return s(t.getMinutes(),e.length)},s(t,e){return s(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return s(a,e.length)}},P={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return y.y(t,e)},Y:function(t,e,n,r){const a=V(t,r),i=a>0?a:1-a;if(e==="YY"){const o=i%100;return s(o,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):s(i,e.length)},R:function(t,e){const n=L(t);return s(n,e.length)},u:function(t,e){const n=t.getFullYear();return s(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return y.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=_t(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):s(a,e.length)},I:function(t,e,n){const r=$t(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):s(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):y.d(t,e)},D:function(t,e,n){const r=qt(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return s(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return s(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return s(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=P.noon:r===0?a=P.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=P.evening:r>=12?a=P.afternoon:r>=4?a=P.morning:a=P.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return y.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):y.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):y.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):y.s(t,e)},S:function(t,e){return y.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return q(r);case"XXXX":case"XX":return v(r);case"XXXXX":case"XXX":default:return v(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return q(r);case"xxxx":case"xx":return v(r);case"xxxxx":case"xxx":default:return v(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+C(r,":");case"OOOO":default:return"GMT"+v(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+C(r,":");case"zzzz":default:return"GMT"+v(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return s(r,e.length)},T:function(t,e,n){return s(+t,e.length)}};function C(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+e+s(i,2)}function q(t,e){return t%60===0?(t>0?"-":"+")+s(Math.abs(t)/60,2):v(t,e)}function v(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=s(Math.trunc(r/60),2),i=s(r%60,2);return n+a+e+i}const $=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},j=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Xt=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return $(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",$(r,e)).replace("{{time}}",j(a,e))},Lt={p:j,P:Xt},Qt=/^D+$/,Bt=/^Y+$/,Vt=["D","DD","YY","YYYY"];function jt(t){return Qt.test(t)}function Rt(t){return Bt.test(t)}function At(t,e,n){const r=zt(t,e,n);if(console.warn(r),Vt.includes(t))throw new RangeError(r)}function zt(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const It=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ut=/^'([^]*?)'?$/,Kt=/''/g,Zt=/[a-zA-Z]/;function R(t,e,n){const r=D(),a=n?.locale??r.locale??Ct,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=m(t,n?.in);if(!et(u))throw new RangeError("Invalid time value");let d=e.match(Jt).map(l=>{const c=l[0];if(c==="p"||c==="P"){const O=Lt[c];return O(l,a.formatLong)}return l}).join("").match(It).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const c=l[0];if(c==="'")return{isToken:!1,value:te(l)};if(E[c])return{isToken:!0,value:l};if(c.match(Zt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:l}});a.localize.preprocessor&&(d=a.localize.preprocessor(u,d));const w={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return d.map(l=>{if(!l.isToken)return l.value;const c=l.value;(!n?.useAdditionalWeekYearTokens&&Rt(c)||!n?.useAdditionalDayOfYearTokens&&jt(c))&&At(c,e,String(t));const O=E[c[0]];return O(u,c,a.localize,w)}).join("")}function te(t){const e=t.match(Ut);return e?e[1].replace(Kt,"'"):t}function ee(t,e){return+m(t)>+m(e)}function H(t,e,n){const[r,a]=S(n?.in,t,e);return+p(r,n)==+p(a,n)}function W(t,e){if(t.one!==void 0&&e===1)return t.one;const n=e%10,r=e%100;return n===1&&r!==11?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function f(t){return(e,n)=>n?.addSuffix?n.comparison&&n.comparison>0?t.future?W(t.future,e):"через "+W(t.regular,e):t.past?W(t.past,e):W(t.regular,e)+" назад":W(t.regular,e)}const ne={lessThanXSeconds:f({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:f({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(t,e)=>e?.addSuffix?e.comparison&&e.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:f({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:f({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:f({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:f({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:f({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:f({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:f({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:f({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:f({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:f({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:f({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:f({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:f({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},re=(t,e,n)=>ne[t](e,n),ae={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},ie={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},oe={any:"{{date}}, {{time}}"},se={date:M({formats:ae,defaultWidth:"full"}),time:M({formats:ie,defaultWidth:"full"}),dateTime:M({formats:oe,defaultWidth:"any"})},G=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function ue(t){const e=G[t];switch(t){case 0:return"'в прошлое "+e+" в' p";case 1:case 2:case 4:return"'в прошлый "+e+" в' p";case 3:case 5:case 6:return"'в прошлую "+e+" в' p"}}function _(t){const e=G[t];return t===2?"'во "+e+" в' p":"'в "+e+" в' p"}function ce(t){const e=G[t];switch(t){case 0:return"'в следующее "+e+" в' p";case 1:case 2:case 4:return"'в следующий "+e+" в' p";case 3:case 5:case 6:return"'в следующую "+e+" в' p"}}const de={lastWeek:(t,e,n)=>{const r=t.getDay();return H(t,e,n)?_(r):ue(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(t,e,n)=>{const r=t.getDay();return H(t,e,n)?_(r):ce(r)},other:"P"},le=(t,e,n,r)=>{const a=de[t];return typeof a=="function"?a(e,n,r):a},fe={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},me={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},he={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},ge={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},we={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},ye={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},be={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},ve=(t,e)=>{const n=Number(t),r=e?.unit;let a;return r==="date"?a="-е":r==="week"||r==="minute"||r==="second"?a="-я":a="-й",n+a},pe={ordinalNumber:ve,era:h({values:fe,defaultWidth:"wide"}),quarter:h({values:me,defaultWidth:"wide",argumentCallback:t=>t-1}),month:h({values:he,defaultWidth:"wide",formattingValues:ge,defaultFormattingWidth:"wide"}),day:h({values:we,defaultWidth:"wide"}),dayPeriod:h({values:ye,defaultWidth:"any",formattingValues:be,defaultFormattingWidth:"wide"})},Pe=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Me=/\d+/i,We={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},ke={any:[/^д/i,/^н/i]},De={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Oe={any:[/1/i,/2/i,/3/i,/4/i]},xe={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},Se={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Ge={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Ye={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Ne={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},Te={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Fe={ordinalNumber:B({matchPattern:Pe,parsePattern:Me,valueCallback:t=>parseInt(t,10)}),era:g({matchPatterns:We,defaultMatchWidth:"wide",parsePatterns:ke,defaultParseWidth:"any"}),quarter:g({matchPatterns:De,defaultMatchWidth:"wide",parsePatterns:Oe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:g({matchPatterns:xe,defaultMatchWidth:"wide",parsePatterns:Se,defaultParseWidth:"any"}),day:g({matchPatterns:Ge,defaultMatchWidth:"wide",parsePatterns:Ye,defaultParseWidth:"any"}),dayPeriod:g({matchPatterns:Ne,defaultMatchWidth:"wide",parsePatterns:Te,defaultParseWidth:"any"})},A={code:"ru",formatDistance:re,formatLong:se,formatRelative:le,localize:pe,match:Fe,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Ee(t){return R(new Date(t),"d MMMM yyyy",{locale:A})}function Ce(t){return R(new Date(t),"d MMMM, HH:mm",{locale:A})}function qe(t,e){return nt(new Date(e),new Date(t))}function $e(t){return ee(new Date,new Date(t))}function He(t,e="₽",n=2){return`${t.toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n}).replace(/,/g," ")} ${e}`}function _e(t){return t.reduce((e,n)=>e+n,0)}function Xe(t){const e=t.replace(/[^\d.,]/g,"").replace(",",".");return parseFloat(e)||0}exports.EventBus=x.EventBus;exports.Portal=x._sfc_main;exports.useBodyScroll=x.useBodyScroll;exports.onClickOutside=z.onClickOutside;exports.openFileDialog=I.openFileDialog;exports.dayjs=J.dayjs;exports.formatDateReadable=Ee;exports.formatDateWithTime=Ce;exports.formatPrice=He;exports.getDaysBetween=qe;exports.isExpired=$e;exports.parsePrice=Xe;exports.sumPrices=_e;
|
package/dist/utils/index.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { E as Xe, _ as _e, u as Le } from "../eventBus.util-msbJpg6N.js";
|
|
2
|
-
import {
|
|
3
|
-
import { o as
|
|
2
|
+
import { o as Ve } from "../parseFileSize.util-EJk-rAI5.js";
|
|
3
|
+
import { o as Re } from "../uploadFile.util-vuFr0xb6.js";
|
|
4
|
+
import { d as Ae } from "../ru-DQ91TLXh.js";
|
|
4
5
|
const X = 6048e5, A = 864e5, G = Symbol.for("constructDateFrom");
|
|
5
6
|
function b(t, e) {
|
|
6
7
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && G in t ? t[G](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
@@ -9,11 +10,11 @@ function m(t, e) {
|
|
|
9
10
|
return b(e || t, t);
|
|
10
11
|
}
|
|
11
12
|
let I = {};
|
|
12
|
-
function
|
|
13
|
+
function x() {
|
|
13
14
|
return I;
|
|
14
15
|
}
|
|
15
16
|
function p(t, e) {
|
|
16
|
-
const n =
|
|
17
|
+
const n = x(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = m(t, e?.in), i = a.getDay(), o = (i < r ? 7 : 0) + i - r;
|
|
17
18
|
return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
|
|
18
19
|
}
|
|
19
20
|
function k(t, e) {
|
|
@@ -421,7 +422,7 @@ const bt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, pt = {
|
|
|
421
422
|
narrow: /^[jfmasond]/i,
|
|
422
423
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
423
424
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
424
|
-
},
|
|
425
|
+
}, xt = {
|
|
425
426
|
narrow: [
|
|
426
427
|
/^j/i,
|
|
427
428
|
/^f/i,
|
|
@@ -450,7 +451,7 @@ const bt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, pt = {
|
|
|
450
451
|
/^n/i,
|
|
451
452
|
/^d/i
|
|
452
453
|
]
|
|
453
|
-
},
|
|
454
|
+
}, Dt = {
|
|
454
455
|
narrow: /^[smtwf]/i,
|
|
455
456
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
456
457
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
@@ -494,11 +495,11 @@ const bt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, pt = {
|
|
|
494
495
|
month: g({
|
|
495
496
|
matchPatterns: kt,
|
|
496
497
|
defaultMatchWidth: "wide",
|
|
497
|
-
parsePatterns:
|
|
498
|
+
parsePatterns: xt,
|
|
498
499
|
defaultParseWidth: "any"
|
|
499
500
|
}),
|
|
500
501
|
day: g({
|
|
501
|
-
matchPatterns:
|
|
502
|
+
matchPatterns: Dt,
|
|
502
503
|
defaultMatchWidth: "wide",
|
|
503
504
|
parsePatterns: Ot,
|
|
504
505
|
defaultParseWidth: "any"
|
|
@@ -530,7 +531,7 @@ function Ft(t, e) {
|
|
|
530
531
|
return Math.round(r / X) + 1;
|
|
531
532
|
}
|
|
532
533
|
function V(t, e) {
|
|
533
|
-
const n = m(t, e?.in), r = n.getFullYear(), a =
|
|
534
|
+
const n = m(t, e?.in), r = n.getFullYear(), a = x(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, o = b(e?.in || t, 0);
|
|
534
535
|
o.setFullYear(r + 1, 0, i), o.setHours(0, 0, 0, 0);
|
|
535
536
|
const u = p(o, e), d = b(e?.in || t, 0);
|
|
536
537
|
d.setFullYear(r, 0, i), d.setHours(0, 0, 0, 0);
|
|
@@ -538,7 +539,7 @@ function V(t, e) {
|
|
|
538
539
|
return +n >= +u ? r + 1 : +n >= +w ? r : r - 1;
|
|
539
540
|
}
|
|
540
541
|
function Et(t, e) {
|
|
541
|
-
const n =
|
|
542
|
+
const n = x(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = V(t, e), i = b(e?.in || t, 0);
|
|
542
543
|
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), p(i, e);
|
|
543
544
|
}
|
|
544
545
|
function Ct(t, e) {
|
|
@@ -1241,14 +1242,14 @@ function Bt(t, e, n) {
|
|
|
1241
1242
|
}
|
|
1242
1243
|
const Rt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, jt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, At = /^'([^]*?)'?$/, It = /''/g, zt = /[a-zA-Z]/;
|
|
1243
1244
|
function R(t, e, n) {
|
|
1244
|
-
const r =
|
|
1245
|
+
const r = x(), a = n?.locale ?? r.locale ?? Nt, i = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, u = m(t, n?.in);
|
|
1245
1246
|
if (!U(u))
|
|
1246
1247
|
throw new RangeError("Invalid time value");
|
|
1247
1248
|
let d = e.match(jt).map((l) => {
|
|
1248
1249
|
const c = l[0];
|
|
1249
1250
|
if (c === "p" || c === "P") {
|
|
1250
|
-
const
|
|
1251
|
-
return
|
|
1251
|
+
const D = qt[c];
|
|
1252
|
+
return D(l, a.formatLong);
|
|
1252
1253
|
}
|
|
1253
1254
|
return l;
|
|
1254
1255
|
}).join("").match(Rt).map((l) => {
|
|
@@ -1275,8 +1276,8 @@ function R(t, e, n) {
|
|
|
1275
1276
|
if (!l.isToken) return l.value;
|
|
1276
1277
|
const c = l.value;
|
|
1277
1278
|
(!n?.useAdditionalWeekYearTokens && Qt(c) || !n?.useAdditionalDayOfYearTokens && Lt(c)) && Vt(c, e, String(t));
|
|
1278
|
-
const
|
|
1279
|
-
return
|
|
1279
|
+
const D = F[c[0]];
|
|
1280
|
+
return D(u, c, a.localize, w);
|
|
1280
1281
|
}).join("");
|
|
1281
1282
|
}
|
|
1282
1283
|
function Jt(t) {
|
|
@@ -1777,12 +1778,12 @@ const oe = {
|
|
|
1777
1778
|
/^н/i,
|
|
1778
1779
|
/^д/i
|
|
1779
1780
|
]
|
|
1780
|
-
},
|
|
1781
|
+
}, xe = {
|
|
1781
1782
|
narrow: /^[впсч]/i,
|
|
1782
1783
|
short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
|
|
1783
1784
|
abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
|
|
1784
1785
|
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
|
|
1785
|
-
},
|
|
1786
|
+
}, De = {
|
|
1786
1787
|
narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
|
|
1787
1788
|
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
|
|
1788
1789
|
}, Oe = {
|
|
@@ -1826,9 +1827,9 @@ const oe = {
|
|
|
1826
1827
|
defaultParseWidth: "any"
|
|
1827
1828
|
}),
|
|
1828
1829
|
day: g({
|
|
1829
|
-
matchPatterns:
|
|
1830
|
+
matchPatterns: xe,
|
|
1830
1831
|
defaultMatchWidth: "wide",
|
|
1831
|
-
parsePatterns:
|
|
1832
|
+
parsePatterns: De,
|
|
1832
1833
|
defaultParseWidth: "any"
|
|
1833
1834
|
}),
|
|
1834
1835
|
dayPeriod: g({
|
|
@@ -1877,14 +1878,14 @@ function $e(t) {
|
|
|
1877
1878
|
export {
|
|
1878
1879
|
Xe as EventBus,
|
|
1879
1880
|
_e as Portal,
|
|
1880
|
-
|
|
1881
|
+
Ae as dayjs,
|
|
1881
1882
|
Ye as formatDateReadable,
|
|
1882
1883
|
Ne as formatDateWithTime,
|
|
1883
1884
|
Ee as formatPrice,
|
|
1884
1885
|
Te as getDaysBetween,
|
|
1885
1886
|
Fe as isExpired,
|
|
1886
|
-
|
|
1887
|
-
|
|
1887
|
+
Ve as onClickOutside,
|
|
1888
|
+
Re as openFileDialog,
|
|
1888
1889
|
$e as parsePrice,
|
|
1889
1890
|
Ce as sumPrices,
|
|
1890
1891
|
Le as useBodyScroll
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prlg-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.228",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/prlg-ui.umd.js",
|
|
7
7
|
"module": "dist/prlg-ui.es.js",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@vue/test-utils": "^2.4.6",
|
|
82
82
|
"@vue/tsconfig": "^0.7.0",
|
|
83
83
|
"date-fns": "^4.1.0",
|
|
84
|
-
"dayjs": "^
|
|
84
|
+
"dayjs": "^latest",
|
|
85
85
|
"jsdom": "^26.1.0",
|
|
86
86
|
"playwright": "^1.53.2",
|
|
87
87
|
"rollup-plugin-copy": "^3.5.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const Ot=require("vue"),tt=new WeakMap;function Lt(v){const C=Ot.unref(v);return C?.$el??C}function bt(v){return typeof v=="string"?document.querySelector(v):Lt(v)}function kt(v,C,M={}){const s=bt(v);if(!s)return()=>{};const S=tt.get(s);S&&(S(),tt.delete(s));const $=w=>{const T=w.target instanceof Node?w.target:null;if(!T)return;const d=(Ot.toValue(M.ignore)??[]).map(_=>typeof _=="string"?document.querySelector(_):Lt(_)).filter(_=>_!=null);s.contains(T)||d.some(_=>_.contains(T))||C(w)};document.addEventListener("mousedown",$,{capture:!0}),document.addEventListener("touchstart",$,{capture:!0});const Y=()=>{document.removeEventListener("mousedown",$,{capture:!0}),document.removeEventListener("touchstart",$,{capture:!0}),tt.delete(s)};return tt.set(s,Y),Y}function W(v){return v&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v}var et={exports:{}},At=et.exports,$t;function Tt(){return $t||($t=1,(function(v,C){(function(M,s){v.exports=s()})(At,(function(){var M=1e3,s=6e4,S=36e5,$="millisecond",Y="second",w="minute",T="hour",y="day",d="week",_="month",F="quarter",B="year",x="date",A="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,O={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(i){var r=["th","st","nd","rd"],t=i%100;return"["+i+(r[(t-20)%10]||r[t]||r[0])+"]"}},L=function(i,r,t){var a=String(i);return!a||a.length>=r?i:""+Array(r+1-a.length).join(t)+i},j={s:L,z:function(i){var r=-i.utcOffset(),t=Math.abs(r),a=Math.floor(t/60),n=t%60;return(r<=0?"+":"-")+L(a,2,"0")+":"+L(n,2,"0")},m:function i(r,t){if(r.date()<t.date())return-i(t,r);var a=12*(t.year()-r.year())+(t.month()-r.month()),n=r.clone().add(a,_),h=t-n<0,l=r.clone().add(a+(h?-1:1),_);return+(-(a+(t-n)/(h?n-l:l-n))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:_,y:B,w:d,d:y,D:x,h:T,m:w,s:Y,ms:$,Q:F}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},H="en",m={};m[H]=O;var o="$isDayjsObject",e=function(i){return i instanceof b||!(!i||!i[o])},D=function i(r,t,a){var n;if(!r)return H;if(typeof r=="string"){var h=r.toLowerCase();m[h]&&(n=h),t&&(m[h]=t,n=h);var l=r.split("-");if(!n&&l.length>1)return i(l[0])}else{var g=r.name;m[g]=r,n=g}return!a&&n&&(H=n),n||!a&&H},p=function(i,r){if(e(i))return i.clone();var t=typeof r=="object"?r:{};return t.date=i,t.args=arguments,new b(t)},u=j;u.l=D,u.i=e,u.w=function(i,r){return p(i,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var b=(function(){function i(t){this.$L=D(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[o]=!0}var r=i.prototype;return r.parse=function(t){this.$d=(function(a){var n=a.date,h=a.utc;if(n===null)return new Date(NaN);if(u.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var l=n.match(c);if(l){var g=l[2]-1||0,q=(l[7]||"0").substring(0,3);return h?new Date(Date.UTC(l[1],g,l[3]||1,l[4]||0,l[5]||0,l[6]||0,q)):new Date(l[1],g,l[3]||1,l[4]||0,l[5]||0,l[6]||0,q)}}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 u},r.isValid=function(){return this.$d.toString()!==A},r.isSame=function(t,a){var n=p(t);return this.startOf(a)<=n&&n<=this.endOf(a)},r.isAfter=function(t,a){return p(t)<this.startOf(a)},r.isBefore=function(t,a){return this.endOf(a)<p(t)},r.$g=function(t,a,n){return u.u(t)?this[a]:this.set(n,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,a){var n=this,h=!!u.u(a)||a,l=u.p(t),g=function(Z,I){var R=u.w(n.$u?Date.UTC(n.$y,I,Z):new Date(n.$y,I,Z),n);return h?R:R.endOf(y)},q=function(Z,I){return u.w(n.toDate()[Z].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(I)),n)},E=this.$W,z=this.$M,P=this.$D,V="set"+(this.$u?"UTC":"");switch(l){case B:return h?g(1,0):g(31,11);case _:return h?g(1,z):g(0,z+1);case d:var U=this.$locale().weekStart||0,X=(E<U?E+7:E)-U;return g(h?P-X:P+(6-X),z);case y:case x:return q(V+"Hours",0);case T:return q(V+"Minutes",1);case w:return q(V+"Seconds",2);case Y:return q(V+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,a){var n,h=u.p(t),l="set"+(this.$u?"UTC":""),g=(n={},n[y]=l+"Date",n[x]=l+"Date",n[_]=l+"Month",n[B]=l+"FullYear",n[T]=l+"Hours",n[w]=l+"Minutes",n[Y]=l+"Seconds",n[$]=l+"Milliseconds",n)[h],q=h===y?this.$D+(a-this.$W):a;if(h===_||h===B){var E=this.clone().set(x,1);E.$d[g](q),E.init(),this.$d=E.set(x,Math.min(this.$D,E.daysInMonth())).$d}else g&&this.$d[g](q);return this.init(),this},r.set=function(t,a){return this.clone().$set(t,a)},r.get=function(t){return this[u.p(t)]()},r.add=function(t,a){var n,h=this;t=Number(t);var l=u.p(a),g=function(z){var P=p(h);return u.w(P.date(P.date()+Math.round(z*t)),h)};if(l===_)return this.set(_,this.$M+t);if(l===B)return this.set(B,this.$y+t);if(l===y)return g(1);if(l===d)return g(7);var q=(n={},n[w]=s,n[T]=S,n[Y]=M,n)[l]||1,E=this.$d.getTime()+t*q;return u.w(E,this)},r.subtract=function(t,a){return this.add(-1*t,a)},r.format=function(t){var a=this,n=this.$locale();if(!this.isValid())return n.invalidDate||A;var h=t||"YYYY-MM-DDTHH:mm:ssZ",l=u.z(this),g=this.$H,q=this.$m,E=this.$M,z=n.weekdays,P=n.months,V=n.meridiem,U=function(I,R,J,Q){return I&&(I[R]||I(a,h))||J[R].slice(0,Q)},X=function(I){return u.s(g%12||12,I,"0")},Z=V||function(I,R,J){var Q=I<12?"AM":"PM";return J?Q.toLowerCase():Q};return h.replace(f,(function(I,R){return R||(function(J){switch(J){case"YY":return String(a.$y).slice(-2);case"YYYY":return u.s(a.$y,4,"0");case"M":return E+1;case"MM":return u.s(E+1,2,"0");case"MMM":return U(n.monthsShort,E,P,3);case"MMMM":return U(P,E);case"D":return a.$D;case"DD":return u.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return U(n.weekdaysMin,a.$W,z,2);case"ddd":return U(n.weekdaysShort,a.$W,z,3);case"dddd":return z[a.$W];case"H":return String(g);case"HH":return u.s(g,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Z(g,q,!0);case"A":return Z(g,q,!1);case"m":return String(q);case"mm":return u.s(q,2,"0");case"s":return String(a.$s);case"ss":return u.s(a.$s,2,"0");case"SSS":return u.s(a.$ms,3,"0");case"Z":return l}return null})(I)||l.replace(":","")}))},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,a,n){var h,l=this,g=u.p(a),q=p(t),E=(q.utcOffset()-this.utcOffset())*s,z=this-q,P=function(){return u.m(l,q)};switch(g){case B:h=P()/12;break;case _:h=P();break;case F:h=P()/3;break;case d:h=(z-E)/6048e5;break;case y:h=(z-E)/864e5;break;case T:h=z/S;break;case w:h=z/s;break;case Y:h=z/M;break;default:h=z}return n?h:u.a(h)},r.daysInMonth=function(){return this.endOf(_).$D},r.$locale=function(){return m[this.$L]},r.locale=function(t,a){if(!t)return this.$L;var n=this.clone(),h=D(t,a,!0);return h&&(n.$L=h),n},r.clone=function(){return u.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()},i})(),k=b.prototype;return p.prototype=k,[["$ms",$],["$s",Y],["$m",w],["$H",T],["$W",y],["$M",_],["$y",B],["$D",x]].forEach((function(i){k[i[1]]=function(r){return this.$g(r,i[0],i[1])}})),p.extend=function(i,r){return i.$i||(i(r,b,p),i.$i=!0),p},p.locale=D,p.isDayjs=e,p.unix=function(i){return p(1e3*i)},p.en=m[H],p.Ls=m,p.p={},p}))})(et)),et.exports}var Ht=Tt();const N=W(Ht);var rt={exports:{}},Ft=rt.exports,vt;function qt(){return vt||(vt=1,(function(v,C){(function(M,s){v.exports=s()})(Ft,(function(){var M={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(s,S,$){var Y=S.prototype,w=Y.format;$.en.formats=M,Y.format=function(T){T===void 0&&(T="YYYY-MM-DDTHH:mm:ssZ");var y=this.$locale().formats,d=(function(_,F){return _.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,x,A){var c=A&&A.toUpperCase();return x||F[A]||M[A]||F[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(f,O,L){return O||L.slice(1)}))}))})(T,y===void 0?{}:y);return w.call(this,d)}}}))})(rt)),rt.exports}var Bt=qt();const Et=W(Bt);var nt={exports:{}},Ct=nt.exports,Mt;function jt(){return Mt||(Mt=1,(function(v,C){(function(M,s){v.exports=s()})(Ct,(function(){return function(M,s,S){M=M||{};var $=s.prototype,Y={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 w(y,d,_,F){return $.fromToBase(y,d,_,F)}S.en.relativeTime=Y,$.fromToBase=function(y,d,_,F,B){for(var x,A,c,f=_.$locale().relativeTime||Y,O=M.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"}],L=O.length,j=0;j<L;j+=1){var H=O[j];H.d&&(x=F?S(y).diff(_,H.d,!0):_.diff(y,H.d,!0));var m=(M.rounding||Math.round)(Math.abs(x));if(c=x>0,m<=H.r||!H.r){m<=1&&j>0&&(H=O[j-1]);var o=f[H.l];B&&(m=B(""+m)),A=typeof o=="string"?o.replace("%d",m):o(m,d,H.l,c);break}}if(d)return A;var e=c?f.future:f.past;return typeof e=="function"?e(A):e.replace("%s",A)},$.to=function(y,d){return w(y,d,this,!0)},$.from=function(y,d){return w(y,d,this)};var T=function(y){return y.$u?S.utc():S()};$.toNow=function(y){return this.to(T(this),y)},$.fromNow=function(y){return this.from(T(this),y)}}}))})(nt)),nt.exports}var zt=jt();const It=W(zt);var st={exports:{}},Pt=st.exports,yt;function Rt(){return yt||(yt=1,(function(v,C){(function(M,s){v.exports=s()})(Pt,(function(){return function(M,s,S){s.prototype.isToday=function(){var $="YYYY-MM-DD",Y=S();return this.format($)===Y.format($)}}}))})(st)),st.exports}var Nt=Rt();const Zt=W(Nt);var it={exports:{}},Wt=it.exports,Yt;function Ut(){return Yt||(Yt=1,(function(v,C){(function(M,s){v.exports=s()})(Wt,(function(){return function(M,s,S){s.prototype.isBetween=function($,Y,w,T){var y=S($),d=S(Y),_=(T=T||"()")[0]==="(",F=T[1]===")";return(_?this.isAfter(y,w):!this.isBefore(y,w))&&(F?this.isBefore(d,w):!this.isAfter(d,w))||(_?this.isBefore(y,w):!this.isAfter(y,w))&&(F?this.isAfter(d,w):!this.isBefore(d,w))}}}))})(it)),it.exports}var Jt=Ut();const Vt=W(Jt);var ot={exports:{}},Qt=ot.exports,xt;function Xt(){return xt||(xt=1,(function(v,C){(function(M,s){v.exports=s()})(Qt,(function(){return function(M,s){s.prototype.isSameOrBefore=function(S,$){return this.isSame(S,$)||this.isBefore(S,$)}}}))})(ot)),ot.exports}var Gt=Xt();const Kt=W(Gt);var at={exports:{}},te=at.exports,_t;function ee(){return _t||(_t=1,(function(v,C){(function(M,s){v.exports=s()})(te,(function(){return function(M,s){s.prototype.isSameOrAfter=function(S,$){return this.isSame(S,$)||this.isAfter(S,$)}}}))})(at)),at.exports}var re=ee();const ne=W(re);var ut={exports:{}},se=ut.exports,Dt;function ie(){return Dt||(Dt=1,(function(v,C){(function(M,s){v.exports=s()})(se,(function(){var M,s,S=1e3,$=6e4,Y=36e5,w=864e5,T=/\[([^\]]+)]|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,y=31536e6,d=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,F={years:y,months:d,days:w,hours:Y,minutes:$,seconds:S,milliseconds:1,weeks:6048e5},B=function(m){return m instanceof j},x=function(m,o,e){return new j(m,e,o.$l)},A=function(m){return s.p(m)+"s"},c=function(m){return m<0},f=function(m){return c(m)?Math.ceil(m):Math.floor(m)},O=function(m){return Math.abs(m)},L=function(m,o){return m?c(m)?{negative:!0,format:""+O(m)+o}:{negative:!1,format:""+m+o}:{negative:!1,format:""}},j=(function(){function m(e,D,p){var u=this;if(this.$d={},this.$l=p,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),D)return x(e*F[A(D)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach((function(i){u.$d[A(i)]=e[i]})),this.calMilliseconds(),this;if(typeof e=="string"){var b=e.match(_);if(b){var k=b.slice(2).map((function(i){return i!=null?Number(i):0}));return this.$d.years=k[0],this.$d.months=k[1],this.$d.weeks=k[2],this.$d.days=k[3],this.$d.hours=k[4],this.$d.minutes=k[5],this.$d.seconds=k[6],this.calMilliseconds(),this}}return this}var o=m.prototype;return o.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(D,p){return D+(e.$d[p]||0)*F[p]}),0)},o.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=f(e/y),e%=y,this.$d.months=f(e/d),e%=d,this.$d.days=f(e/w),e%=w,this.$d.hours=f(e/Y),e%=Y,this.$d.minutes=f(e/$),e%=$,this.$d.seconds=f(e/S),e%=S,this.$d.milliseconds=e},o.toISOString=function(){var e=L(this.$d.years,"Y"),D=L(this.$d.months,"M"),p=+this.$d.days||0;this.$d.weeks&&(p+=7*this.$d.weeks);var u=L(p,"D"),b=L(this.$d.hours,"H"),k=L(this.$d.minutes,"M"),i=this.$d.seconds||0;this.$d.milliseconds&&(i+=this.$d.milliseconds/1e3,i=Math.round(1e3*i)/1e3);var r=L(i,"S"),t=e.negative||D.negative||u.negative||b.negative||k.negative||r.negative,a=b.format||k.format||r.format?"T":"",n=(t?"-":"")+"P"+e.format+D.format+u.format+a+b.format+k.format+r.format;return n==="P"||n==="-P"?"P0D":n},o.toJSON=function(){return this.toISOString()},o.format=function(e){var D=e||"YYYY-MM-DDTHH:mm:ss",p={Y:this.$d.years,YY:s.s(this.$d.years,2,"0"),YYYY:s.s(this.$d.years,4,"0"),M:this.$d.months,MM:s.s(this.$d.months,2,"0"),D:this.$d.days,DD:s.s(this.$d.days,2,"0"),H:this.$d.hours,HH:s.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:s.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:s.s(this.$d.seconds,2,"0"),SSS:s.s(this.$d.milliseconds,3,"0")};return D.replace(T,(function(u,b){return b||String(p[u])}))},o.as=function(e){return this.$ms/F[A(e)]},o.get=function(e){var D=this.$ms,p=A(e);return p==="milliseconds"?D%=1e3:D=p==="weeks"?f(D/F[p]):this.$d[p],D||0},o.add=function(e,D,p){var u;return u=D?e*F[A(D)]:B(e)?e.$ms:x(e,this).$ms,x(this.$ms+u*(p?-1:1),this)},o.subtract=function(e,D){return this.add(e,D,!0)},o.locale=function(e){var D=this.clone();return D.$l=e,D},o.clone=function(){return x(this.$ms,this)},o.humanize=function(e){return M().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},o.valueOf=function(){return this.asMilliseconds()},o.milliseconds=function(){return this.get("milliseconds")},o.asMilliseconds=function(){return this.as("milliseconds")},o.seconds=function(){return this.get("seconds")},o.asSeconds=function(){return this.as("seconds")},o.minutes=function(){return this.get("minutes")},o.asMinutes=function(){return this.as("minutes")},o.hours=function(){return this.get("hours")},o.asHours=function(){return this.as("hours")},o.days=function(){return this.get("days")},o.asDays=function(){return this.as("days")},o.weeks=function(){return this.get("weeks")},o.asWeeks=function(){return this.as("weeks")},o.months=function(){return this.get("months")},o.asMonths=function(){return this.as("months")},o.years=function(){return this.get("years")},o.asYears=function(){return this.as("years")},m})(),H=function(m,o,e){return m.add(o.years()*e,"y").add(o.months()*e,"M").add(o.days()*e,"d").add(o.hours()*e,"h").add(o.minutes()*e,"m").add(o.seconds()*e,"s").add(o.milliseconds()*e,"ms")};return function(m,o,e){M=e,s=e().$utils(),e.duration=function(u,b){var k=e.locale();return x(u,{$l:k},b)},e.isDuration=B;var D=o.prototype.add,p=o.prototype.subtract;o.prototype.add=function(u,b){return B(u)?H(this,u,1):D.bind(this)(u,b)},o.prototype.subtract=function(u,b){return B(u)?H(this,u,-1):p.bind(this)(u,b)}}}))})(ut)),ut.exports}var oe=ie();const ae=W(oe);var ct={exports:{}},ue=ct.exports,gt;function ce(){return gt||(gt=1,(function(v,C){(function(M,s){v.exports=s()})(ue,(function(){var M={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"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,S=/\d/,$=/\d\d/,Y=/\d\d?/,w=/\d*[^-_:/,()\s\d]+/,T={},y=function(c){return(c=+c)+(c>68?1900:2e3)},d=function(c){return function(f){this[c]=+f}},_=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var O=f.match(/([+-]|\d\d)/g),L=60*O[1]+(+O[2]||0);return L===0?0:O[0]==="+"?-L:L})(c)}],F=function(c){var f=T[c];return f&&(f.indexOf?f:f.s.concat(f.f))},B=function(c,f){var O,L=T.meridiem;if(L){for(var j=1;j<=24;j+=1)if(c.indexOf(L(j,0,f))>-1){O=j>12;break}}else O=c===(f?"pm":"PM");return O},x={A:[w,function(c){this.afternoon=B(c,!1)}],a:[w,function(c){this.afternoon=B(c,!0)}],Q:[S,function(c){this.month=3*(c-1)+1}],S:[S,function(c){this.milliseconds=100*+c}],SS:[$,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[Y,d("seconds")],ss:[Y,d("seconds")],m:[Y,d("minutes")],mm:[Y,d("minutes")],H:[Y,d("hours")],h:[Y,d("hours")],HH:[Y,d("hours")],hh:[Y,d("hours")],D:[Y,d("day")],DD:[$,d("day")],Do:[w,function(c){var f=T.ordinal,O=c.match(/\d+/);if(this.day=O[0],f)for(var L=1;L<=31;L+=1)f(L).replace(/\[|\]/g,"")===c&&(this.day=L)}],w:[Y,d("week")],ww:[$,d("week")],M:[Y,d("month")],MM:[$,d("month")],MMM:[w,function(c){var f=F("months"),O=(F("monthsShort")||f.map((function(L){return L.slice(0,3)}))).indexOf(c)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[w,function(c){var f=F("months").indexOf(c)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,d("year")],YY:[$,function(c){this.year=y(c)}],YYYY:[/\d{4}/,d("year")],Z:_,ZZ:_};function A(c){var f,O;f=c,O=T&&T.formats;for(var L=(c=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,u,b){var k=b&&b.toUpperCase();return u||O[b]||M[b]||O[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(i,r,t){return r||t.slice(1)}))}))).match(s),j=L.length,H=0;H<j;H+=1){var m=L[H],o=x[m],e=o&&o[0],D=o&&o[1];L[H]=D?{regex:e,parser:D}:m.replace(/^\[|\]$/g,"")}return function(p){for(var u={},b=0,k=0;b<j;b+=1){var i=L[b];if(typeof i=="string")k+=i.length;else{var r=i.regex,t=i.parser,a=p.slice(k),n=r.exec(a)[0];t.call(u,n),p=p.replace(n,"")}}return(function(h){var l=h.afternoon;if(l!==void 0){var g=h.hours;l?g<12&&(h.hours+=12):g===12&&(h.hours=0),delete h.afternoon}})(u),u}}return function(c,f,O){O.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(y=c.parseTwoDigitYear);var L=f.prototype,j=L.parse;L.parse=function(H){var m=H.date,o=H.utc,e=H.args;this.$u=o;var D=e[1];if(typeof D=="string"){var p=e[2]===!0,u=e[3]===!0,b=p||u,k=e[2];u&&(k=e[2]),T=this.$locale(),!p&&k&&(T=O.Ls[k]),this.$d=(function(a,n,h,l){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*a);var g=A(n)(a),q=g.year,E=g.month,z=g.day,P=g.hours,V=g.minutes,U=g.seconds,X=g.milliseconds,Z=g.zone,I=g.week,R=new Date,J=z||(q||E?1:R.getDate()),Q=q||R.getFullYear(),G=0;q&&!E||(G=E>0?E-1:R.getMonth());var K,ht=P||0,lt=V||0,mt=U||0,pt=X||0;return Z?new Date(Date.UTC(Q,G,J,ht,lt,mt,pt+60*Z.offset*1e3)):h?new Date(Date.UTC(Q,G,J,ht,lt,mt,pt)):(K=new Date(Q,G,J,ht,lt,mt,pt),I&&(K=l(K).week(I).toDate()),K)}catch{return new Date("")}})(m,D,o,O),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),b&&m!=this.format(D)&&(this.$d=new Date("")),T={}}else if(D instanceof Array)for(var i=D.length,r=1;r<=i;r+=1){e[1]=D[r-1];var t=O.apply(this,e);if(t.isValid()){this.$d=t.$d,this.$L=t.$L,this.init();break}r===i&&(this.$d=new Date(""))}else j.call(this,H)}}}))})(ct)),ct.exports}var fe=ce();const de=W(fe);var ft={exports:{}},he=ft.exports,St;function le(){return St||(St=1,(function(v,C){(function(M,s){v.exports=s()})(he,(function(){return function(M,s,S){s.prototype.dayOfYear=function($){var Y=Math.round((S(this).startOf("day")-S(this).startOf("year"))/864e5)+1;return $==null?Y:this.add($-Y,"day")}}}))})(ft)),ft.exports}var me=le();const pe=W(me);var dt={exports:{}},$e=dt.exports,wt;function ve(){return wt||(wt=1,(function(v,C){(function(M,s){v.exports=s(Tt())})($e,(function(M){function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var S=s(M),$="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),Y="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),w="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),T="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),y=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(x,A,c){var f,O;return c==="m"?A?"минута":"минуту":x+" "+(f=+x,O={mm:A?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[c].split("_"),f%10==1&&f%100!=11?O[0]:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?O[1]:O[2])}var _=function(x,A){return y.test(A)?$[x.month()]:Y[x.month()]};_.s=Y,_.f=$;var F=function(x,A){return y.test(A)?w[x.month()]:T[x.month()]};F.s=T,F.f=w;var B={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:_,monthsShort:F,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(x){return x},meridiem:function(x){return x<4?"ночи":x<12?"утра":x<17?"дня":"вечера"}};return S.default.locale(B,null,!0),B}))})(dt)),dt.exports}ve();N.extend(Et);N.extend(It);N.extend(Zt);N.extend(Vt);N.extend(Kt);N.extend(ne);N.extend(ae);N.extend(de);N.extend(pe);N.locale("ru");const Me=v=>{const C=["b","kb","mb","gb","tb"],M=v.match(/[a-zA-Z]+/)?.[0]||"b",s=parseFloat(v.replace(M,"")),S=C.indexOf(M.toLowerCase());return s*Math.pow(1024,S)};function ye(v){if(isNaN(v)||v<0)return"0 Б";const C=["Б","КБ","МБ","ГБ","ТБ"];let M=0,s=v;for(;s>=1024&&M<C.length-1;)s=s/1024,M++;return`${s%1===0?s:s.toFixed(0)} ${C[M]}`}exports.dayjs=N;exports.formatFileSize=ye;exports.onClickOutside=kt;exports.parseFileSize=Me;
|