mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 07:03:00 +08:00
2 lines
8.3 KiB
JavaScript
2 lines
8.3 KiB
JavaScript
import{g as et}from"./call-bind-apply-helpers@1.0.1-BosuxZz1.js";var I={exports:{}},rt=I.exports,R;function P(){return R||(R=1,function(q,Q){(function(O,p){q.exports=p()})(rt,function(){var O=1e3,p=6e4,j=36e5,x="millisecond",d="second",y="minute",m="hour",v="day",C="week",M="month",U="quarter",D="year",b="date",J="Invalid Date",G=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,K=/\[([^\]]+)]|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,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},F=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},tt={s:F,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+F(n,2,"0")+":"+F(e,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var n=12*(t.year()-r.year())+(t.month()-r.month()),e=r.clone().add(n,M),i=t-e<0,u=r.clone().add(n+(i?-1:1),M);return+(-(n+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M,y:D,w:C,d:v,D:b,h:m,m:y,s:d,ms:x,Q:U}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",g={};g[H]=X;var E="$isDayjsObject",N=function(s){return s instanceof A||!(!s||!s[E])},W=function s(r,t,n){var e;if(!r)return H;if(typeof r=="string"){var i=r.toLowerCase();g[i]&&(e=i),t&&(g[i]=t,e=i);var u=r.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=r.name;g[o]=r,e=o}return!n&&e&&(H=e),e||!n&&H},f=function(s,r){if(N(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new A(t)},a=tt;a.l=W,a.i=N,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(G);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==J},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)<this.startOf(n)},r.isBefore=function(t,n){return this.endOf(n)<f(t)},r.$g=function(t,n,e){return a.u(t)?this[n]:this.set(e,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,n){var e=this,i=!!a.u(n)||n,u=a.p(t),o=function(w,$){var Y=a.w(e.$u?Date.UTC(e.$y,$,w):new Date(e.$y,$,w),e);return i?Y:Y.endOf(v)},c=function(w,$){return a.w(e.toDate()[w].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,l=this.$M,_=this.$D,L="set"+(this.$u?"UTC":"");switch(u){case D:return i?o(1,0):o(31,11);case M:return i?o(1,l):o(0,l+1);case C:var S=this.$locale().weekStart||0,k=(h<S?h+7:h)-S;return o(i?_-k:_+(6-k),l);case v:case b:return c(L+"Hours",0);case m:return c(L+"Minutes",1);case y:return c(L+"Seconds",2);case d:return c(L+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,n){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[v]=u+"Date",e[b]=u+"Date",e[M]=u+"Month",e[D]=u+"FullYear",e[m]=u+"Hours",e[y]=u+"Minutes",e[d]=u+"Seconds",e[x]=u+"Milliseconds",e)[i],c=i===v?this.$D+(n-this.$W):n;if(i===M||i===D){var h=this.clone().set(b,1);h.$d[o](c),h.init(),this.$d=h.set(b,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},r.set=function(t,n){return this.clone().$set(t,n)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,n){var e,i=this;t=Number(t);var u=a.p(n),o=function(l){var _=f(i);return a.w(_.date(_.date()+Math.round(l*t)),i)};if(u===M)return this.set(M,this.$M+t);if(u===D)return this.set(D,this.$y+t);if(u===v)return o(1);if(u===C)return o(7);var c=(e={},e[y]=p,e[m]=j,e[d]=O,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},r.subtract=function(t,n){return this.add(-1*t,n)},r.format=function(t){var n=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,l=e.weekdays,_=e.months,L=e.meridiem,S=function($,Y,T,z){return $&&($[Y]||$(n,i))||T[Y].slice(0,z)},k=function($){return a.s(o%12||12,$,"0")},w=L||function($,Y,T){var z=$<12?"AM":"PM";return T?z.toLowerCase():z};return i.replace(K,function($,Y){return Y||function(T){switch(T){case"YY":return String(n.$y).slice(-2);case"YYYY":return a.s(n.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return S(e.monthsShort,h,_,3);case"MMMM":return S(_,h);case"D":return n.$D;case"DD":return a.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return S(e.weekdaysMin,n.$W,l,2);case"ddd":return S(e.weekdaysShort,n.$W,l,3);case"dddd":return l[n.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return k(1);case"hh":return k(2);case"a":return w(o,c,!0);case"A":return w(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(n.$s);case"ss":return a.s(n.$s,2,"0");case"SSS":return a.s(n.$ms,3,"0");case"Z":return u}return null}($)||u.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,n,e){var i,u=this,o=a.p(n),c=f(t),h=(c.utcOffset()-this.utcOffset())*p,l=this-c,_=function(){return a.m(u,c)};switch(o){case D:i=_()/12;break;case M:i=_();break;case U:i=_()/3;break;case C:i=(l-h)/6048e5;break;case v:i=(l-h)/864e5;break;case m:i=l/j;break;case y:i=l/p;break;case d:i=l/O;break;default:i=l}return e?i:a.a(i)},r.daysInMonth=function(){return this.endOf(M).$D},r.$locale=function(){return g[this.$L]},r.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),i=W(t,n,!0);return i&&(e.$L=i),e},r.clone=function(){return a.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},s}(),V=A.prototype;return f.prototype=V,[["$ms",x],["$s",d],["$m",y],["$H",m],["$W",v],["$M",M],["$y",D],["$D",b]].forEach(function(s){V[s[1]]=function(r){return this.$g(r,s[0],s[1])}}),f.extend=function(s,r){return s.$i||(s(r,A,f),s.$i=!0),f},f.locale=W,f.isDayjs=N,f.unix=function(s){return f(1e3*s)},f.en=g[H],f.Ls=g,f.p={},f})}(I)),I.exports}var nt=P();const at=et(nt);var Z={exports:{}},st=Z.exports,B;function it(){return B||(B=1,function(q,Q){(function(O,p){q.exports=p(P())})(st,function(O){function p(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var j=p(O),x={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(d,y){return y==="W"?d+"周":d+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(d,y){var m=100*d+y;return m<600?"凌晨":m<900?"早上":m<1100?"上午":m<1300?"中午":m<1800?"下午":"晚上"}};return j.default.locale(x,null,!0),x})}(Z)),Z.exports}it();export{at as d};
|