itsericwoodward-site-v2/src/assets/scripts/6-dayjs.min.js

11 lines
8.2 KiB
JavaScript
Raw Permalink Normal View History

// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
/*
dayjs v1.11.5
https://github.com/iamkun/dayjs
The MIT License (MIT)
Copyright (c) 2018-present, iamkun
*/
!(function(t,e){"object"==typeof exports&&"undefined"!=typeof module?(module.exports=e()):"function"==typeof define&&define.amd?define(e):((t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e())})(this,function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,M={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("_")},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e= -t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date()){return-t(n,e)}var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return({M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,""))},u:function(t){return void 0===t}},v="en",D={};D[v]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e){return v}if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&((D[s]=n),(i=s));var u=e.split("-");if(!i&&u.length>1){return t(u[0])}}else{var a=e.name;(D[a]=e),(i=a)}return!r&&i&&(v=i),i||(!r&&v)},w=function(t,e){if(p(t)){return t.clone()}var n="object"==typeof e?e:{};return(n.date=t),(n.args=arguments),new _(n)},O=g;(O.l=S),(O.i=p),(O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})});var _=(function(){function M(t){(this.$L=S(t.locale,null,!0)),this.parse(t)}var m=M.prototype;return((m.parse=function(t){(this.$d=(function(t){var e=t.date,n=t.utc;if(null===e){return new Date(NaN)}if(O.u(e)){return new Date()}if(e instanceof Date){return new Date(e)}if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)})(t)),(this.$x=t.x||{}),this.init()}),(m.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())}),(m.$utils=function(){return O}),(m.isValid=function(){return!(this.$d.toString()===$)}),(m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)}),(m.isAfter=function(t,e){return w(t)<this.startOf(e)}),(m.isBefore=function(t,e){return this.endOf(e)<w(t)}),(m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)}),(m.unix=function(){return Math.floor(this.valueOf()/1e3)}),(m.valueOf=function(){return this.$d.getTime()}),(m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var v=this.$locale().weekStart||0,D=(y<v?y+7:y)-v;return $(r?m-D:m+(6-D),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}}),(m.endOf=function(t){return this.startOf(t,!1)}),(m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=((n={}),(n[a]=h+"Date"),(n[d]=h+"Date"),(n[f]=h+"Month"),(n[c]=h+"FullYear"),(n[u]=h+"Hours"),(n[s]=h+"Minutes"),(n[i]=h+"Seconds"),(n[r]=h+"Milliseconds"),n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===
!(function(r,e){"object"==typeof exports&&"undefined"!=typeof module?(module.exports=e()):"function"==typeof define&&define.amd?define(e):((r="undefined"!=typeof globalThis?globalThis:r||self).dayjs_plugin_relativeTime=e())})(this,function(){"use strict";return function(r,e,t){r=r||{};var n=e.prototype,o={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 i(r,e,t,o){return n.fromToBase(r,e,t,o)}(t.en.relativeTime=o),(n.fromToBase=function(e,n,i,d,u){for(var f,a,s,l=i.$locale().relativeTime||o,h=r.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"}],m=h.length,c=0;c<m;c+=1){var y=h[c];y.d&&(f=d?t(e).diff(i,y.d,!0):i.diff(e,y.d,!0));var p=(r.rounding||Math.round)(Math.abs(f));if(((s=f>0),p<=y.r||!y.r)){p<=1&&c>0&&(y=h[c-1]);var v=l[y.l];u&&(p=u(""+p)),(a="string"==typeof v?v.replace("%d",p):v(p,n,y.l,s));break}}if(n){return a}var M=s?l.future:l.past;return "function"==typeof M?M(a):M.replace("%s",a)}),(n.to=function(r,e){return i(r,e,this,!0)}),(n.from=function(r,e){return i(r,e,this)});var d=function(r){return r.$u?t.utc():t()};(n.toNow=function(r){return this.to(d(this),r)}),(n.fromNow=function(r){return this.from(d(this),r)})}});
// @license-end