moreShopAdmin/dist/admin/assets/dayjs.0112e2c7.js

2 lines
15 KiB
JavaScript
Raw Permalink Normal View History

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