import{c as G,g as J}from"./_commonjsHelpers-de833af9.js";var R={exports:{}};(function(S,b){(function(h,d){S.exports=d()})(G,function(){return function(h,d){var H=d.prototype,C=H.format;H.format=function(l){var f=this,o=this.$locale();if(!this.isValid())return C.bind(this)(l);var c=this.$utils(),T=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return o.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return o.ordinal(f.week(),"W");case"w":case"ww":return c.s(f.week(),g==="w"?1:2,"0");case"W":case"WW":return c.s(f.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(f.$H===0?24:f.$H),g==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return g}});return C.bind(this)(T)}}})})(R);var st=R.exports;const ot=J(st);var K={exports:{}};(function(S,b){(function(h,d){S.exports=d()})(G,function(){var h=1e3,d=6e4,H=36e5,C="millisecond",l="second",f="minute",o="hour",c="day",T="week",g="month",v="quarter",D="year",M="date",e="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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,y={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])+"]"}},w=function(i,r,t){var s=String(i);return!s||s.length>=r?i:""+Array(r+1-s.length).join(t)+i},W={s:w,z:function(i){var r=-i.utcOffset(),t=Math.abs(r),s=Math.floor(t/60),n=t%60;return(r<=0?"+":"-")+w(s,2,"0")+":"+w(n,2,"0")},m:function i(r,t){if(r.date()1)return i(a[0])}else{var x=r.name;z[x]=r,n=x}return!s&&n&&(p=n),n||!s&&p},Y=function(i,r){if(U(i))return i.clone();var t=typeof r=="object"?r:{};return t.date=i,t.args=arguments,new I(t)},m=W;m.l=k,m.i=U,m.w=function(i,r){return Y(i,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var I=function(){function i(t){this.$L=k(t.locale,null,!0),this.parse(t)}var r=i.prototype;return r.parse=function(t){this.$d=function(s){var n=s.date,u=s.utc;if(n===null)return new Date(NaN);if(m.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var a=n.match($);if(a){var x=a[2]-1||0,_=(a[7]||"0").substring(0,3);return u?new Date(Date.UTC(a[1],x,a[3]||1,a[4]||0,a[5]||0,a[6]||0,_)):new Date(a[1],x,a[3]||1,a[4]||0,a[5]||0,a[6]||0,_)}}return new Date(n)}(t),this.$x=t.x||{},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 m},r.isValid=function(){return this.$d.toString()!==e},r.isSame=function(t,s){var n=Y(t);return this.startOf(s)<=n&&n<=this.endOf(s)},r.isAfter=function(t,s){return Y(t)0,z<=p.r||!p.r){z<=1&&W>0&&(p=y[W-1]);var U=O[p.l];D&&(z=D(""+z)),e=typeof U=="string"?U.replace("%d",z):U(z,T,p.l,$);break}}if(T)return e;var k=$?O.future:O.past;return typeof k=="function"?k(e):k.replace("%s",e)},C.to=function(c,T){return f(c,T,this,!0)},C.from=function(c,T){return f(c,T,this)};var o=function(c){return c.$u?H.utc():H()};C.toNow=function(c){return this.to(o(this),c)},C.fromNow=function(c){return this.from(o(this),c)}}})})(et);var ct=et.exports;const ht=J(ct);var nt={exports:{}};(function(S,b){(function(h,d){S.exports=d()})(G,function(){var h={year:0,month:1,day:2,hour:3,minute:4,second:5},d={};return function(H,C,l){var f,o=function(v,D,M){M===void 0&&(M={});var e=new Date(v),$=function(O,y){y===void 0&&(y={});var w=y.timeZoneName||"short",W=O+"|"+w,p=d[W];return p||(p=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:O,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:w}),d[W]=p),p}(D,M);return $.formatToParts(e)},c=function(v,D){for(var M=o(v,D),e=[],$=0;$=0&&(e[W]=parseInt(w,10))}var p=e[3],z=p===24?0:p,U=e[0]+"-"+e[1]+"-"+e[2]+" "+z+":"+e[4]+":"+e[5]+":000",k=+v;return(l.utc(U).valueOf()-(k-=k%1e3))/6e4},T=C.prototype;T.tz=function(v,D){v===void 0&&(v=f);var M=this.utcOffset(),e=this.toDate(),$=e.toLocaleString("en-US",{timeZone:v}),O=Math.round((e-new Date($))/1e3/60),y=l($).$set("millisecond",this.$ms).utcOffset(15*-Math.round(e.getTimezoneOffset()/15)-O,!0);if(D){var w=y.utcOffset();y=y.add(M-w,"minute")}return y.$x.$timezone=v,y},T.offsetName=function(v){var D=this.$x.$timezone||l.tz.guess(),M=o(this.valueOf(),D,{timeZoneName:v}).find(function(e){return e.type.toLowerCase()==="timezonename"});return M&&M.value};var g=T.startOf;T.startOf=function(v,D){if(!this.$x||!this.$x.$timezone)return g.call(this,v,D);var M=l(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return g.call(M,v,D).tz(this.$x.$timezone,!0)},l.tz=function(v,D,M){var e=M&&D,$=M||D||f,O=c(+l(),$);if(typeof v!="string")return l(v).tz($);var y=function(z,U,k){var Y=z-60*U*1e3,m=c(Y,k);if(U===m)return[Y,U];var I=c(Y-=60*(m-U)*1e3,k);return m===I?[Y,m]:[z-60*Math.min(m,I)*1e3,Math.max(m,I)]}(l.utc(v,e).valueOf(),O,$),w=y[0],W=y[1],p=l(w).utcOffset(W);return p.$x.$timezone=$,p},l.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},l.tz.setDefault=function(v){f=v}}})})(nt);var dt=nt.exports;const lt=J(dt);var rt={exports:{}};(function(S,b){(function(h,d){S.exports=d()})(G,function(){return function(h,d,H){H.updateLocale=function(C,l){var f=H.Ls[C];if(f)return(l?Object.keys(l):[]).forEach(function(o){f[o]=l[o]}),f}}})})(rt);var mt=rt.exports;const $t=J(mt);var it={exports:{}};(function(S,b){(function(h,d){S.exports=d()})(G,function(){var h="minute",d=/[+-]\d\d(?::?\d\d)?/g,H=/([+-]|\d\d)/g;return function(C,l,f){var o=l.prototype;f.utc=function(e){var $={date:e,utc:!0,args:arguments};return new l($)},o.utc=function(e){var $=f(this.toDate(),{locale:this.$L,utc:!0});return e?$.add(this.utcOffset(),h):$},o.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var c=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),c.call(this,e)};var T=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else T.call(this)};var g=o.utcOffset;o.utcOffset=function(e,$){var O=this.$utils().u;if(O(e))return this.$u?0:O(this.$offset)?g.call(this):this.$offset;if(typeof e=="string"&&(e=function(p){p===void 0&&(p="");var z=p.match(d);if(!z)return null;var U=(""+z[0]).match(H)||["-",0,0],k=U[0],Y=60*+U[1]+ +U[2];return Y===0?0:k==="+"?Y:-Y}(e),e===null))return this;var y=Math.abs(e)<=16?60*e:e,w=this;if($)return w.$offset=y,w.$u=e===0,w;if(e!==0){var W=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(w=this.local().add(y+W,h)).$offset=y,w.$x.$localOffset=W}else w=this.utc();return w};var v=o.format;o.format=function(e){var $=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return v.call(this,$)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var D=o.toDate;o.toDate=function(e){return e==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():D.call(this)};var M=o.diff;o.diff=function(e,$,O){if(e&&this.$u===e.$u)return M.call(this,e,$,O);var y=this.local(),w=f(e).local();return M.call(y,w,$,O)}}})})(it);var vt=it.exports;const Mt=J(vt);N.extend(ht);N.extend(ft);N.extend(ot);N.extend(Mt);N.extend(lt);N.extend($t);N.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a min",mm:"%d min",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});const gt=S=>S?N.tz.guess():"UTC",pt=(S,b,h="day")=>N(S).diff(N(b),h,!0),Dt=(S,b,h=1)=>pt(S,b,"hour")<-h,yt=(S,b)=>{const h=new Date(S),d=new Date(b);return h.getFullYear()===d.getFullYear()&&h.getMonth()===d.getMonth()&&h.getDate()===d.getDate()},Yt=S=>{const b=N(S,{utc:!0}),h=!Dt(b,Date.now()),d=yt(b,Date.now()),H=gt(!1);return h?N().to(b):d?N(S).tz(H).format("h:mm A z"):b.format("MMMM D, YYYY")};export{Yt as g}; //# sourceMappingURL=time-f9db70de.js.map