suyuan-breed/public/admin/assets/dayjs.664390f6.js

2 lines
14 KiB
JavaScript
Raw Permalink Normal View History

2024-01-30 09:49:28 +08:00
import{c as I}from"./axios.4ebfdb3f.js";var R={exports:{}};(function(L,P){(function(x,c){L.exports=c()})(I,function(){var x=1e3,c=6e4,d=36e5,y="millisecond",v="second",$="minute",f="hour",p="day",W="week",i="month",h="quarter",T="year",U="date",u="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|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,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},_=function(s,n,t){var a=String(s);return!a||a.length>=n?s:""+Array(n+1-a.length).join(t)+s},F={s:_,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),a=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+_(a,2,"0")+":"+_(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var a=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(a,i),o=t-e<0,r=n.clone().add(a+(o?-1:1),i);return+(-(a+(t-e)/(o?e-r:r-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:i,y:T,w:W,d:p,D:U,h:f,m:$,s:v,ms:y,Q:h}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},A="en",H={};H[A]=g;var Z=function(s){return s instanceof b},z=function s(n,t,a){var e;if(!n)return A;if(typeof n=="string"){var o=n.toLowerCase();H[o]&&(e=o),t&&(H[o]=t,e=o);var r=n.split("-");if(!e&&r.length>1)return s(r[0])}else{var M=n.name;H[M]=n,e=M}return!a&&e&&(A=e),e||!a&&A},w=function(s,n){if(Z(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new b(t)},m=F;m.l=z,m.i=Z,m.w=function(s,n){return w(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var b=function(){function s(t){this.$L=z(t.locale,null,!0),this.parse(t)}var n=s.prototype;return n.parse=function(t){this.$d=function(a){var e=a.date,o=a.utc;if(e===null)return new Date(NaN);if(m.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var r=e.match(l);if(r){var M=r[2]-1||0,S=(r[7]||"0").substring(0,3);return o?new Date(Date.UTC(r[1],M,r[3]||1,r[4]||0,r[5]||0,r[6]||0,S)):new Date(r[1],M,r[3]||1,r[4]||0,r[5]||0,r[6]||0,S)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},n.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()},n.$utils=function(){return m},n.isValid=function(){return this.$d.toString()!==u},n.isSame=function(t,a){var e=w(t);return this.startOf(a)<=e&&e<=this.endOf(a)},n.isAfter=function(t,a){return w(t)<this.startOf(a)},n.isBefore=function(t,a){return this.endOf(a)<w(t)},n.$g=function(t,a,e){return m.u(t)?this[a]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,a){var e=this,o=!!m.u(a)||a,r=m.p(t),M=function(B,O){var G=m.w(e.$u?Date.UTC(e.$y,O,B):new Date(e.$y,O,B),e);return o?G:G.endOf(p)},S=function(B,O){return m.w(e.toDate()[B].apply(e.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(O)),e)},k=this.$W,Y=this.$M,j=this.$D,N="set"+(this.$u?"UTC":"");switch(r){case T:return o?M(1,0):M(31,11);case i:return o?M(1,Y):M(0,Y+1);case W:var E=this.$locale().weekStart||0,V=(k<E?k+7:k)-E;return M(o?j-V:j+(6-V),Y);case p:case U:return S(N+"Hours",0);case f:return S(N+"Minutes",1);case $:return S(N+"Seconds",2);case v:return S(N+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,a){var e,o=m.p(t),r="set"+(this.$u?"UTC":""),M=(e={},e[p]=r+"Date",e[U]=r+"Date",e[i]=r+"Month",e[T]=r+"FullYear",e[f]=r+"Hours",e[$]=r+"Minutes",e[v]=r+"Seconds",e[y]=r+"Milliseconds",e)[o],S=o===p?this.$D+(a-this.$W):a;if(o===i||o===T){var k=this.clone().set(U,1);k.$d[M](S),k.init(),this.$d=k.set(U,Math.min(this.$D,k.daysInMonth())).$d}else M&&this.$d[M](S);return this.init(),this},n.set=function(t,a){return this.clone().$set(t,a)},n.get=function(t