Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuepress-shared

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-shared - npm Package Compare versions

Comparing version 2.0.0-beta.84 to 2.0.0-beta.85

4

lib/client/index.d.ts

@@ -64,3 +64,3 @@ import { FunctionalComponent, ComputedRef } from 'vue';

declare const checkIsChromeMobile: (ua: string) => boolean;
declare const checkIsMobile: (ua: string) => boolean;
declare const checkIsChromeWebView: (ua: string) => boolean;

@@ -125,2 +125,2 @@ declare const checkIsSafariMobile: (ua: string) => boolean;

export { IconBase, Message, PageTitleRef, RenderDefault, checkIsChromeMobile, checkIsChromeWebView, checkIsIOS, checkIsMacOS, checkIsSafari, checkIsSafariMobile, checkIsWindows, checkIsiPad, checkIsiPhone, compareDate, generateIndexfromHash, getAuthor, getCategory, getDate, getHash, getTag, isAbsoluteUrl, isActiveLink, isComponentRegistered, isUrl, normalizePath, randomSortArray, resolveRouteWithRedirect, useLocaleConfig, usePageTitle };
export { IconBase, Message, PageTitleRef, RenderDefault, checkIsChromeWebView, checkIsIOS, checkIsMacOS, checkIsMobile, checkIsSafari, checkIsSafariMobile, checkIsWindows, checkIsiPad, checkIsiPhone, compareDate, generateIndexfromHash, getAuthor, getCategory, getDate, getHash, getTag, isAbsoluteUrl, isActiveLink, isComponentRegistered, isUrl, normalizePath, randomSortArray, resolveRouteWithRedirect, useLocaleConfig, usePageTitle };

@@ -1,2 +0,2 @@

import{h as t,getCurrentInstance as e,camelize as n,capitalize as r,computed as i}from"vue";import{useRouteLocale as s,usePageData as o}from"@vuepress/client";import"./styles/message.scss";const a=({name:e="",color:n="currentColor"},{slots:r})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${e}-icon`],viewBox:"0 0 1024 1024",fill:n,"aria-label":`${e} icon`},r.default?.());a.displayName="IconBase";const u=(t,{slots:e})=>e.default?.()||null,c=t=>{const i=e();return"object"==typeof i?.appContext.components&&(t in i.appContext.components||n(t)in i.appContext.components||r(n(t))in i.appContext.components)},f=t=>{const e=s();return i((()=>t[e.value]))},d=()=>i((()=>o().value.title)),h=t=>/\b(?:crmo|crios)\/([\w.]+)/i.test(t),l=t=>/ wv\).+(chrome)\/([\w.]+)/i.test(t),m=t=>/version\/([\w.]+) .*mobile\/\w+ (safari)/i.test(t),$=t=>/version\/([\w.]+) .*(mobile ?safari|safari)/i.test(t),p=t=>/\((ip(?:hone|od)[\w ]*);/i.test(t),v=t=>[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some((e=>e.test(t))),y=t=>[/microsoft (windows) (vista|xp)/i,/(win(?=3|9|n)|win 9x )([nt\d.]+)/i,/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[/ ]?([\d.\w ]*)/i,/(windows)[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i].some((e=>e.test(t))),g=t=>[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i].some((e=>e.test(t))),M=t=>[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i].some((e=>e.test(t))),D=(t,e)=>{let n=1;for(let e=0;e<t.length;e++)n+=t.charCodeAt(e),n+=n<<10,n^=n>>6;return n+=n<<3,n^=n>>11,n%e},_=/#.*$/u,Y=t=>{const e=_.exec(t);return e?e[0]:""},w=t=>decodeURI(t).replace(_,"").replace(/(index)?\.(md|html)$/,""),S=(t,e)=>{if(void 0===e)return!1;const n=w(t.path),r=w(e),i=Y(e);return i?i===t.hash&&(!r||n===r):n===r};class b{constructor(){const t="message-container",e=document.getElementById(t);e?this.containerElement=e:(this.containerElement=document.createElement("div"),this.containerElement.id=t,document.body.appendChild(this.containerElement))}pop(t,e=2e3){const n=document.createElement("div");n.className="message move-in",n.innerHTML=t,this.containerElement.appendChild(n),e>0&&setTimeout((()=>{this.close(n)}),e)}close(t){t.className=t.className.replace("move-in",""),t.className+="move-out",t.addEventListener("animationend",(()=>{t.remove()}))}}const O=(t,e=2)=>{const{length:n}=t;for(;e-- >0;)t.forEach(((e,r)=>{const i=Math.floor(Math.random()*n);t[r]=t[i],t[i]=e}));return t};"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);const x=(t,...e)=>{const n=t.resolve(...e),r=n.matched[n.matched.length-1];if(!r?.redirect)return n;const{redirect:i}=r,s="function"==typeof i?i(n):i;const o=(t=>"string"==typeof t)(s)?{path:s}:s;return x(t,{hash:n.hash,query:n.query,params:n.params,...o})};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var T,L={exports:{}},H=L.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",o="hour",a="day",u="week",c="month",f="quarter",d="year",h="date",l="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\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,p={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("_")},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(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,c),s=n-i<0,o=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:d,w:u,d:a,D:h,h:o,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",M={};M[g]=p;var D=function(t){return t instanceof S},_=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();M[s]&&(i=s),n&&(M[s]=n,i=s);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var a=e.name;M[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},Y=function(t,e){if(D(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},w=y;w.l=_,w.i=D,w.w=function(t,e){return Y(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function p(t){this.$L=_(t.locale,null,!0),this.parse(t)}var v=p.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(w.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(m);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()},v.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()},v.$utils=function(){return w},v.isValid=function(){return!(this.$d.toString()===l)},v.isSame=function(t,e){var n=Y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return Y(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<Y(t)},v.$g=function(t,e,n){return w.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,r=!!w.u(e)||e,f=w.p(t),l=function(t,e){var i=w.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},m=function(t,e){return w.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},$=this.$W,p=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case d:return r?l(1,0):l(31,11);case c:return r?l(1,p):l(0,p+1);case u:var g=this.$locale().weekStart||0,M=($<g?$+7:$)-g;return l(r?v-M:v+(6-M),p);case a:case h:return m(y+"Hours",0);case o:return m(y+"Minutes",1);case s:return m(y+"Seconds",2);case i:return m(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,u=w.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[h]=f+"Date",n[c]=f+"Month",n[d]=f+"FullYear",n[o]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[u],m=u===a?this.$D+(e-this.$W):e;if(u===c||u===d){var $=this.clone().set(h,1);$.$d[l](m),$.init(),this.$d=$.set(h,Math.min(this.$D,$.daysInMonth())).$d}else l&&this.$d[l](m);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[w.p(t)]()},v.add=function(r,f){var h,l=this;r=Number(r);var m=w.p(f),$=function(t){var e=Y(l);return w.w(e.date(e.date()+Math.round(t*r)),l)};if(m===c)return this.set(c,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===a)return $(1);if(m===u)return $(7);var p=(h={},h[s]=e,h[o]=n,h[i]=t,h)[m]||1,v=this.$d.getTime()+r*p;return w.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),s=this.$H,o=this.$m,a=this.$M,u=n.weekdays,c=n.months,f=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return w.s(s%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:w.s(a+1,2,"0"),MMM:f(n.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,u,2),ddd:f(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:w.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,o,!0),A:h(s,o,!1),m:String(o),mm:w.s(o,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:i};return r.replace($,(function(t,e){return e||m[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,l){var m,$=w.p(h),p=Y(r),v=(p.utcOffset()-this.utcOffset())*e,y=this-p,g=w.m(this,p);return g=(m={},m[d]=g/12,m[c]=g,m[f]=g/3,m[u]=(y-v)/6048e5,m[a]=(y-v)/864e5,m[o]=y/n,m[s]=y/e,m[i]=y/t,m)[$]||y,l?g:w.a(g)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return M[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=_(t,e,!0);return r&&(n.$L=r),n},v.clone=function(){return w.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},p}(),b=S.prototype;return Y.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",o],["$W",a],["$M",c],["$y",d],["$D",h]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),Y.extend=function(t,e){return t.$i||(t(e,S,Y),t.$i=!0),Y},Y.locale=_,Y.isDayjs=D,Y.unix=function(t){return Y(1e3*t)},Y.en=M[g],Y.Ls=M,Y.p={},Y}(),C={exports:{}},A=C.exports=(T={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(t,e,n){var r=e.prototype,i=r.format;n.en.formats=T,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var e=this.$locale().formats,n=function(t,e){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||e[r]||T[r]||e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))}(t,void 0===e?{}:e);return i.call(this,n)}}),z={exports:{}},E=z.exports=function(t,e,n){var r=e.prototype,i=function(t){var e,i=t.date,s=t.utc,o={};if(!((e=i)instanceof Date)&&!(e instanceof Array)&&e instanceof Object){if(!Object.keys(i).length)return new Date;var a=s?n.utc():n();Object.keys(i).forEach((function(t){var e,n;o[(e=t,n=r.$utils().p(e),"date"===n?"day":n)]=i[t]}));var u=o.day||(o.year||o.month>=0?1:a.date()),c=o.year||a.year(),f=o.month>=0?o.month:o.year||o.day?0:a.month(),d=o.hour||0,h=o.minute||0,l=o.second||0,m=o.millisecond||0;return s?new Date(Date.UTC(c,f,u,d,h,l,m)):new Date(c,f,u,d,h,l,m)}return i},s=r.parse;r.parse=function(t){t.date=i.bind(this)(t),s.bind(this)(t)};var o=r.set,a=r.add,u=function(t,e,n,r){if(void 0===r&&(r=1),e instanceof Object){var i=Object.keys(e),s=this;return i.forEach((function(n){s=t.bind(s)(e[n]*r,n)})),s}return t.bind(this)(e*r,n)};r.set=function(t,e){return e=void 0===e?t:e,u.bind(this)((function(t,e){return o.bind(this)(e,t)}),e,t)},r.add=function(t,e){return u.bind(this)(a,t,e)},r.subtract=function(t,e){return u.bind(this)(a,t,e,-1)}},N={exports:{}},U=N.exports=function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,i){var s,o=function(t,n,r){void 0===r&&(r={});var i=new Date(t),s=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=t+"|"+r,s=e[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),e[i]=s),s}(n,r);return s.formatToParts(i)},a=function(e,n){for(var r=o(e,n),s=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,f=u.value,d=t[c];d>=0&&(s[d]=parseInt(f,10))}var h=s[3],l=24===h?0:h,m=s[0]+"-"+s[1]+"-"+s[2]+" "+l+":"+s[4]+":"+s[5]+":000",$=+e;return(i.utc(m).valueOf()-($-=$%1e3))/6e4},u=r.prototype;u.tz=function(t,e){void 0===t&&(t=s);var n=this.utcOffset(),r=this.toDate(),o=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(o))/1e3/60),u=i(o).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,o=n||e||s,u=a(+i(),o);if("string"!=typeof t)return i(t).tz(o);var c=function(t,e,n){var r=t-60*e*1e3,i=a(r,n);if(e===i)return[r,e];var s=a(r-=60*(i-e)*1e3,n);return i===s?[r,i]:[t-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(t,r).valueOf(),u,o),f=c[0],d=c[1],h=i(f).utcOffset(d);return h.$x.$timezone=o,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){s=t}}}(),k={exports:{}},I=k.exports=function(){var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,s){var o=i.prototype;s.utc=function(t){return new i({date:t,utc:!0,args:arguments})},o.utc=function(e){var n=s(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=o.utcOffset;o.utcOffset=function(r,i){var s=this.$utils().u;if(s(r))return this.$u?0:s(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],s=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===s?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r,a=this;if(i)return a.$offset=o,a.$u=0===r,a;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(o+u,t)).$offset=o,a.$x.$localOffset=u}else a=this.utc();return a};var f=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},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(t){return"s"===t&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=o.diff;o.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=s(t).local();return h.call(r,i,e,n)}}}();H.extend(A),H.extend(E),H.extend(I),H.extend(U);const W={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:(t,e)=>"W"===e?`${t}周`:`${t}日`,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:(t,e)=>{const n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},j={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("_")};H.locale("zh",W),H.locale("en",j),H.extend(E),H.extend(I),H.extend(U);const Z=(t,e)=>{if(t){if(H(t instanceof Date?t:t.trim()).isValid()){const n=e?H(t).tz(e):H(t),r=n.year(),i=n.month()+1,s=n.date(),o=n.hour(),a=n.minute(),u=n.second(),c=n.millisecond(),f=0===o&&0===a&&0===u&&0===c;return{value:n.toDate(),info:{year:r,month:i,day:s,...f?{}:{hour:o,minute:a,second:u}},type:f?"date":"full"}}const n=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(t.trim());if(n){const[,t,e,r,i,s,o]=n,a=t=>void 0===t?void 0:Number(t),u=t=>i&&s&&!o?0:t,c={year:(t=>t&&t<100?t+2e3:t)(a(t)),month:a(e),day:a(r),hour:a(i),minute:a(s),second:u(a(o))},f=void 0===t&&void 0===e&&void 0===r,d=void 0===i&&void 0===s&&void 0===o,h=H({...c,month:c.month-1}).toDate();return{value:f?void 0:h,info:d?{year:c.year,month:c.month,day:c.day}:f?{hour:c.hour,minute:c.minute,second:c.second}:c,type:f?"time":d?"date":"full"}}}return null},F=(t,e)=>{const n=Z("number"==typeof t?new Date(t):t),r=Z("number"==typeof e?new Date(e):e);return n&&n.value?r&&r.value?r.value.getTime()-n.value.getTime():-1:1},J=(t,e=!1)=>t?Array.isArray(t)?t.map((t=>"string"==typeof t?{name:t}:t)):"string"==typeof t?[{name:t}]:"object"==typeof t&&t.name?[t]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${e?"":"| false"} | undefined\`, but got`,t),[]):[],V=t=>{if(t){if(Array.isArray(t))return t;if("string"==typeof t)return[t];console.error("Expect 'category' to be `string[] | string | undefined`, but got",t)}return[]},B=t=>{if(t){if(Array.isArray(t))return t;if("string"==typeof t)return[t];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",t)}return[]},q=t=>{if("string"!=typeof t||""===t)return!1;const e=/^(?:\w+:)?\/\/(\S+)$/u.exec(t);if(!e)return!1;const n=e[1];return!!n&&(/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(n)||/^[^\s.]+\.\S{2,}$/u.test(n))},P=t=>t.startsWith("/");export{a as IconBase,b as Message,u as RenderDefault,h as checkIsChromeMobile,l as checkIsChromeWebView,g as checkIsIOS,M as checkIsMacOS,$ as checkIsSafari,m as checkIsSafariMobile,y as checkIsWindows,v as checkIsiPad,p as checkIsiPhone,F as compareDate,D as generateIndexfromHash,J as getAuthor,V as getCategory,Z as getDate,Y as getHash,B as getTag,P as isAbsoluteUrl,S as isActiveLink,c as isComponentRegistered,q as isUrl,w as normalizePath,O as randomSortArray,x as resolveRouteWithRedirect,f as useLocaleConfig,d as usePageTitle};
import{h as t,getCurrentInstance as e,camelize as n,capitalize as r,computed as i}from"vue";import{useRouteLocale as s,usePageData as o}from"@vuepress/client";import"./styles/message.scss";const a=({name:e="",color:n="currentColor"},{slots:r})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${e}-icon`],viewBox:"0 0 1024 1024",fill:n,"aria-label":`${e} icon`},r.default?.());a.displayName="IconBase";const u=(t,{slots:e})=>e.default?.()||null,c=t=>{const i=e();return"object"==typeof i?.appContext.components&&(t in i.appContext.components||n(t)in i.appContext.components||r(n(t))in i.appContext.components)},f=t=>{const e=s();return i((()=>t[e.value]))},d=()=>i((()=>o().value.title)),h=t=>/\b(?:Android|iPhone)/i.test(t),l=t=>/ wv\).+(chrome)\/([\w.]+)/i.test(t),m=t=>/version\/([\w.]+) .*mobile\/\w+ (safari)/i.test(t),$=t=>/version\/([\w.]+) .*(mobile ?safari|safari)/i.test(t),p=t=>/\((ip(?:hone|od)[\w ]*);/i.test(t),v=t=>[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some((e=>e.test(t))),y=t=>[/microsoft (windows) (vista|xp)/i,/(win(?=3|9|n)|win 9x )([nt\d.]+)/i,/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[/ ]?([\d.\w ]*)/i,/(windows)[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i].some((e=>e.test(t))),g=t=>[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i].some((e=>e.test(t))),M=t=>[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i].some((e=>e.test(t))),D=(t,e)=>{let n=1;for(let e=0;e<t.length;e++)n+=t.charCodeAt(e),n+=n<<10,n^=n>>6;return n+=n<<3,n^=n>>11,n%e},_=/#.*$/u,Y=t=>{const e=_.exec(t);return e?e[0]:""},w=t=>decodeURI(t).replace(_,"").replace(/(index)?\.(md|html)$/,""),S=(t,e)=>{if(void 0===e)return!1;const n=w(t.path),r=w(e),i=Y(e);return i?i===t.hash&&(!r||n===r):n===r};class b{constructor(){const t="message-container",e=document.getElementById(t);e?this.containerElement=e:(this.containerElement=document.createElement("div"),this.containerElement.id=t,document.body.appendChild(this.containerElement))}pop(t,e=2e3){const n=document.createElement("div");n.className="message move-in",n.innerHTML=t,this.containerElement.appendChild(n),e>0&&setTimeout((()=>{this.close(n)}),e)}close(t){t.className=t.className.replace("move-in",""),t.className+="move-out",t.addEventListener("animationend",(()=>{t.remove()}))}}const O=(t,e=2)=>{const{length:n}=t;for(;e-- >0;)t.forEach(((e,r)=>{const i=Math.floor(Math.random()*n);t[r]=t[i],t[i]=e}));return t};"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);const x=(t,...e)=>{const n=t.resolve(...e),r=n.matched[n.matched.length-1];if(!r?.redirect)return n;const{redirect:i}=r,s="function"==typeof i?i(n):i;const o=(t=>"string"==typeof t)(s)?{path:s}:s;return x(t,{hash:n.hash,query:n.query,params:n.params,...o})};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var T,L={exports:{}},H=L.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",o="hour",a="day",u="week",c="month",f="quarter",d="year",h="date",l="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\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,p={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("_")},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(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,c),s=n-i<0,o=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:d,w:u,d:a,D:h,h:o,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",M={};M[g]=p;var D=function(t){return t instanceof S},_=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();M[s]&&(i=s),n&&(M[s]=n,i=s);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var a=e.name;M[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},Y=function(t,e){if(D(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},w=y;w.l=_,w.i=D,w.w=function(t,e){return Y(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function p(t){this.$L=_(t.locale,null,!0),this.parse(t)}var v=p.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(w.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(m);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()},v.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()},v.$utils=function(){return w},v.isValid=function(){return!(this.$d.toString()===l)},v.isSame=function(t,e){var n=Y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return Y(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<Y(t)},v.$g=function(t,e,n){return w.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,r=!!w.u(e)||e,f=w.p(t),l=function(t,e){var i=w.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},m=function(t,e){return w.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},$=this.$W,p=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case d:return r?l(1,0):l(31,11);case c:return r?l(1,p):l(0,p+1);case u:var g=this.$locale().weekStart||0,M=($<g?$+7:$)-g;return l(r?v-M:v+(6-M),p);case a:case h:return m(y+"Hours",0);case o:return m(y+"Minutes",1);case s:return m(y+"Seconds",2);case i:return m(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,u=w.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[h]=f+"Date",n[c]=f+"Month",n[d]=f+"FullYear",n[o]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[u],m=u===a?this.$D+(e-this.$W):e;if(u===c||u===d){var $=this.clone().set(h,1);$.$d[l](m),$.init(),this.$d=$.set(h,Math.min(this.$D,$.daysInMonth())).$d}else l&&this.$d[l](m);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[w.p(t)]()},v.add=function(r,f){var h,l=this;r=Number(r);var m=w.p(f),$=function(t){var e=Y(l);return w.w(e.date(e.date()+Math.round(t*r)),l)};if(m===c)return this.set(c,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===a)return $(1);if(m===u)return $(7);var p=(h={},h[s]=e,h[o]=n,h[i]=t,h)[m]||1,v=this.$d.getTime()+r*p;return w.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),s=this.$H,o=this.$m,a=this.$M,u=n.weekdays,c=n.months,f=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return w.s(s%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:w.s(a+1,2,"0"),MMM:f(n.monthsShort,a,c,3),MMMM:f(c,a),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:f(n.weekdaysMin,this.$W,u,2),ddd:f(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:w.s(s,2,"0"),h:d(1),hh:d(2),a:h(s,o,!0),A:h(s,o,!1),m:String(o),mm:w.s(o,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:i};return r.replace($,(function(t,e){return e||m[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,l){var m,$=w.p(h),p=Y(r),v=(p.utcOffset()-this.utcOffset())*e,y=this-p,g=w.m(this,p);return g=(m={},m[d]=g/12,m[c]=g,m[f]=g/3,m[u]=(y-v)/6048e5,m[a]=(y-v)/864e5,m[o]=y/n,m[s]=y/e,m[i]=y/t,m)[$]||y,l?g:w.a(g)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return M[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=_(t,e,!0);return r&&(n.$L=r),n},v.clone=function(){return w.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},p}(),b=S.prototype;return Y.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",o],["$W",a],["$M",c],["$y",d],["$D",h]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),Y.extend=function(t,e){return t.$i||(t(e,S,Y),t.$i=!0),Y},Y.locale=_,Y.isDayjs=D,Y.unix=function(t){return Y(1e3*t)},Y.en=M[g],Y.Ls=M,Y.p={},Y}(),C={exports:{}},A=C.exports=(T={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(t,e,n){var r=e.prototype,i=r.format;n.en.formats=T,r.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var e=this.$locale().formats,n=function(t,e){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||e[r]||T[r]||e[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))}(t,void 0===e?{}:e);return i.call(this,n)}}),z={exports:{}},E=z.exports=function(t,e,n){var r=e.prototype,i=function(t){var e,i=t.date,s=t.utc,o={};if(!((e=i)instanceof Date)&&!(e instanceof Array)&&e instanceof Object){if(!Object.keys(i).length)return new Date;var a=s?n.utc():n();Object.keys(i).forEach((function(t){var e,n;o[(e=t,n=r.$utils().p(e),"date"===n?"day":n)]=i[t]}));var u=o.day||(o.year||o.month>=0?1:a.date()),c=o.year||a.year(),f=o.month>=0?o.month:o.year||o.day?0:a.month(),d=o.hour||0,h=o.minute||0,l=o.second||0,m=o.millisecond||0;return s?new Date(Date.UTC(c,f,u,d,h,l,m)):new Date(c,f,u,d,h,l,m)}return i},s=r.parse;r.parse=function(t){t.date=i.bind(this)(t),s.bind(this)(t)};var o=r.set,a=r.add,u=function(t,e,n,r){if(void 0===r&&(r=1),e instanceof Object){var i=Object.keys(e),s=this;return i.forEach((function(n){s=t.bind(s)(e[n]*r,n)})),s}return t.bind(this)(e*r,n)};r.set=function(t,e){return e=void 0===e?t:e,u.bind(this)((function(t,e){return o.bind(this)(e,t)}),e,t)},r.add=function(t,e){return u.bind(this)(a,t,e)},r.subtract=function(t,e){return u.bind(this)(a,t,e,-1)}},N={exports:{}},U=N.exports=function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,i){var s,o=function(t,n,r){void 0===r&&(r={});var i=new Date(t),s=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=t+"|"+r,s=e[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),e[i]=s),s}(n,r);return s.formatToParts(i)},a=function(e,n){for(var r=o(e,n),s=[],a=0;a<r.length;a+=1){var u=r[a],c=u.type,f=u.value,d=t[c];d>=0&&(s[d]=parseInt(f,10))}var h=s[3],l=24===h?0:h,m=s[0]+"-"+s[1]+"-"+s[2]+" "+l+":"+s[4]+":"+s[5]+":000",$=+e;return(i.utc(m).valueOf()-($-=$%1e3))/6e4},u=r.prototype;u.tz=function(t,e){void 0===t&&(t=s);var n=this.utcOffset(),r=this.toDate(),o=r.toLocaleString("en-US",{timeZone:t}),a=Math.round((r-new Date(o))/1e3/60),u=i(o).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-a,!0);if(e){var c=u.utcOffset();u=u.add(n-c,"minute")}return u.$x.$timezone=t,u},u.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=u.startOf;u.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,o=n||e||s,u=a(+i(),o);if("string"!=typeof t)return i(t).tz(o);var c=function(t,e,n){var r=t-60*e*1e3,i=a(r,n);if(e===i)return[r,e];var s=a(r-=60*(i-e)*1e3,n);return i===s?[r,i]:[t-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(t,r).valueOf(),u,o),f=c[0],d=c[1],h=i(f).utcOffset(d);return h.$x.$timezone=o,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){s=t}}}(),k={exports:{}},I=k.exports=function(){var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,s){var o=i.prototype;s.utc=function(t){return new i({date:t,utc:!0,args:arguments})},o.utc=function(e){var n=s(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},o.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=o.init;o.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=o.utcOffset;o.utcOffset=function(r,i){var s=this.$utils().u;if(s(r))return this.$u?0:s(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],s=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===s?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r,a=this;if(i)return a.$offset=o,a.$u=0===r,a;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(o+u,t)).$offset=o,a.$x.$localOffset=u}else a=this.utc();return a};var f=o.format;o.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},o.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},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(t){return"s"===t&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=o.diff;o.diff=function(t,e,n){if(t&&this.$u===t.$u)return h.call(this,t,e,n);var r=this.local(),i=s(t).local();return h.call(r,i,e,n)}}}();H.extend(A),H.extend(E),H.extend(I),H.extend(U);const W={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:(t,e)=>"W"===e?`${t}周`:`${t}日`,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:(t,e)=>{const n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},j={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("_")};H.locale("zh",W),H.locale("en",j),H.extend(E),H.extend(I),H.extend(U);const Z=(t,e)=>{if(t){if(H(t instanceof Date?t:t.trim()).isValid()){const n=e?H(t).tz(e):H(t),r=n.year(),i=n.month()+1,s=n.date(),o=n.hour(),a=n.minute(),u=n.second(),c=n.millisecond(),f=0===o&&0===a&&0===u&&0===c;return{value:n.toDate(),info:{year:r,month:i,day:s,...f?{}:{hour:o,minute:a,second:u}},type:f?"date":"full"}}const n=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(t.trim());if(n){const[,t,e,r,i,s,o]=n,a=t=>void 0===t?void 0:Number(t),u=t=>i&&s&&!o?0:t,c={year:(t=>t&&t<100?t+2e3:t)(a(t)),month:a(e),day:a(r),hour:a(i),minute:a(s),second:u(a(o))},f=void 0===t&&void 0===e&&void 0===r,d=void 0===i&&void 0===s&&void 0===o,h=H({...c,month:c.month-1}).toDate();return{value:f?void 0:h,info:d?{year:c.year,month:c.month,day:c.day}:f?{hour:c.hour,minute:c.minute,second:c.second}:c,type:f?"time":d?"date":"full"}}}return null},F=(t,e)=>{const n=Z("number"==typeof t?new Date(t):t),r=Z("number"==typeof e?new Date(e):e);return n&&n.value?r&&r.value?r.value.getTime()-n.value.getTime():-1:1},J=(t,e=!1)=>t?Array.isArray(t)?t.map((t=>"string"==typeof t?{name:t}:t)):"string"==typeof t?[{name:t}]:"object"==typeof t&&t.name?[t]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${e?"":"| false"} | undefined\`, but got`,t),[]):[],V=t=>{if(t){if(Array.isArray(t))return t;if("string"==typeof t)return[t];console.error("Expect 'category' to be `string[] | string | undefined`, but got",t)}return[]},B=t=>{if(t){if(Array.isArray(t))return t;if("string"==typeof t)return[t];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",t)}return[]},q=t=>{if("string"!=typeof t||""===t)return!1;const e=/^(?:\w+:)?\/\/(\S+)$/u.exec(t);if(!e)return!1;const n=e[1];return!!n&&(/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(n)||/^[^\s.]+\.\S{2,}$/u.test(n))},P=t=>t.startsWith("/");export{a as IconBase,b as Message,u as RenderDefault,l as checkIsChromeWebView,g as checkIsIOS,M as checkIsMacOS,h as checkIsMobile,$ as checkIsSafari,m as checkIsSafariMobile,y as checkIsWindows,v as checkIsiPad,p as checkIsiPhone,F as compareDate,D as generateIndexfromHash,J as getAuthor,V as getCategory,Z as getDate,Y as getHash,B as getTag,P as isAbsoluteUrl,S as isActiveLink,c as isComponentRegistered,q as isUrl,w as normalizePath,O as randomSortArray,x as resolveRouteWithRedirect,f as useLocaleConfig,d as usePageTitle};
//# sourceMappingURL=index.js.map

@@ -45,2 +45,3 @@ import { App, LocaleData, PageFrontmatter, LocaleConfig, Page } from '@vuepress/core';

"vi-VN": string;
"jp-JP": string;
"zh-CN": string;

@@ -47,0 +48,0 @@ "zh-TW": string;

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@vuepress/utils"),t=require("@vuepress/shared"),n=require("execa"),r=require("fs"),s=require("path"),i=require("ora"),a=require("@vuepress/plugin-git");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(i);const d="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",_="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",m=(t,n=!1)=>{!n||d.split(",").includes(t)||_.split(",").includes(t)||t!==t.toLowerCase()||t.includes("-")||console.warn(e.chalk.yellow("warning: "),`${t} is used and it’s not a standard tag or standard custom element name`)},l=e=>"[object Object]"===Object.prototype.toString.call(e);function c({find:e,replacement:t}){return"string"==typeof e&&e.endsWith("/")&&t.endsWith("/")&&(e=e.slice(0,e.length-1),t=t.slice(0,t.length-1)),{find:e,replacement:t}}const h=e=>Array.isArray(e)?e.map(c):Object.keys(e).map((t=>c({find:t,replacement:e[t]}))),p=(e=[],t=[])=>[...h(e),...h(t)],f=(e,t,n)=>{const r={...e};for(const e in t){const s=t[e];if(null==s)continue;const i=r[e];if(Array.isArray(i)&&Array.isArray(s))r[e]=[...i,...s];else if(l(i)&&l(s))r[e]=f(i,s,n?`${n}.${e}`:e);else{if(null!=i){if("alias"===e&&("resolve"===n||""===n)){r[e]=p(i,s);continue}if("assetsInclude"===e&&""===n){r[e]=[].concat(i,s);continue}if("noExternal"===e&&!0===i)continue}r[e]=s}}return r},M=(e,t,n=!0)=>f(e,t,n?"":"."),Y=(e,...t)=>{if(0===t.length)return e;const n=t.shift()||{};return Object.keys(n).forEach((t=>{"object"!=typeof e[t]||Array.isArray(e[t])||"object"!=typeof n[t]||Array.isArray(n[t])?"object"==typeof n[t]?Array.isArray(n[t])?e[t]=[...n[t]]:e[t]={...n[t]}:e[t]=n[t]:Y(e[t],n[t])})),Y(e,...t)},y=(...e)=>{if(0===e.length)throw new Error("No param is given");if(1===e.length)return e[0];const t=e.pop(),n=e.pop();return Object.keys(n).forEach((e=>{void 0===t[e]?"object"==typeof n[e]?Array.isArray(n[e])?t[e]=[...n[e]]:t[e]={...n[e]}:t[e]=n[e]:"object"!=typeof t[e]||Array.isArray(t)||"object"!=typeof n[e]||Array.isArray(n[e])||y(n[e],t[e])})),y(...e,t)};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var g,v={exports:{}},D=v.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",s="second",i="minute",a="hour",o="day",u="week",d="month",_="quarter",m="year",l="date",c="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,f={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(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},Y={s:M,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+M(r,2,"0")+":"+M(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,d),i=n-s<0,a=t.clone().add(r+(i?-1:1),d);return+(-(r+(n-s)/(i?s-a:a-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:m,w:u,d:o,D:l,h:a,m:i,s:s,ms:r,Q:_}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",g={};g[y]=f;var v=function(e){return e instanceof $},D=function e(t,n,r){var s;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();g[i]&&(s=i),n&&(g[i]=n,s=i);var a=t.split("-");if(!s&&a.length>1)return e(a[0])}else{var o=t.name;g[o]=t,s=o}return!r&&s&&(y=s),s||!r&&y},L=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new $(n)},S=Y;S.l=D,S.i=v,S.w=function(e,t){return L(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function f(e){this.$L=D(e.locale,null,!0),this.parse(e)}var M=f.prototype;return M.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},M.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},M.$utils=function(){return S},M.isValid=function(){return!(this.$d.toString()===c)},M.isSame=function(e,t){var n=L(e);return this.startOf(t)<=n&&n<=this.endOf(t)},M.isAfter=function(e,t){return L(e)<this.startOf(t)},M.isBefore=function(e,t){return this.endOf(t)<L(e)},M.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(e,t){var n=this,r=!!S.u(t)||t,_=S.p(e),c=function(e,t){var s=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(o)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},p=this.$W,f=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(_){case m:return r?c(1,0):c(31,11);case d:return r?c(1,f):c(0,f+1);case u:var y=this.$locale().weekStart||0,g=(p<y?p+7:p)-y;return c(r?M-g:M+(6-g),f);case o:case l:return h(Y+"Hours",0);case a:return h(Y+"Minutes",1);case i:return h(Y+"Seconds",2);case s:return h(Y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(e){return this.startOf(e,!1)},M.$set=function(e,t){var n,u=S.p(e),_="set"+(this.$u?"UTC":""),c=(n={},n[o]=_+"Date",n[l]=_+"Date",n[d]=_+"Month",n[m]=_+"FullYear",n[a]=_+"Hours",n[i]=_+"Minutes",n[s]=_+"Seconds",n[r]=_+"Milliseconds",n)[u],h=u===o?this.$D+(t-this.$W):t;if(u===d||u===m){var p=this.clone().set(l,1);p.$d[c](h),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else c&&this.$d[c](h);return this.init(),this},M.set=function(e,t){return this.clone().$set(e,t)},M.get=function(e){return this[S.p(e)]()},M.add=function(r,_){var l,c=this;r=Number(r);var h=S.p(_),p=function(e){var t=L(c);return S.w(t.date(t.date()+Math.round(e*r)),c)};if(h===d)return this.set(d,this.$M+r);if(h===m)return this.set(m,this.$y+r);if(h===o)return p(1);if(h===u)return p(7);var f=(l={},l[i]=t,l[a]=n,l[s]=e,l)[h]||1,M=this.$d.getTime()+r*f;return S.w(M,this)},M.subtract=function(e,t){return this.add(-1*e,t)},M.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=S.z(this),i=this.$H,a=this.$m,o=this.$M,u=n.weekdays,d=n.months,_=function(e,n,s,i){return e&&(e[n]||e(t,r))||s[n].slice(0,i)},m=function(e){return S.s(i%12||12,e,"0")},l=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:S.s(o+1,2,"0"),MMM:_(n.monthsShort,o,d,3),MMMM:_(d,o),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:_(n.weekdaysMin,this.$W,u,2),ddd:_(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:S.s(i,2,"0"),h:m(1),hh:m(2),a:l(i,a,!0),A:l(i,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:s};return r.replace(p,(function(e,t){return t||h[e]||s.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(r,l,c){var h,p=S.p(l),f=L(r),M=(f.utcOffset()-this.utcOffset())*t,Y=this-f,y=S.m(this,f);return y=(h={},h[m]=y/12,h[d]=y,h[_]=y/3,h[u]=(Y-M)/6048e5,h[o]=(Y-M)/864e5,h[a]=Y/n,h[i]=Y/t,h[s]=Y/e,h)[p]||Y,c?y:S.a(y)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return g[this.$L]},M.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=D(e,t,!0);return r&&(n.$L=r),n},M.clone=function(){return S.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},f}(),w=$.prototype;return L.prototype=w,[["$ms",r],["$s",s],["$m",i],["$H",a],["$W",o],["$M",d],["$y",m],["$D",l]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),L.extend=function(e,t){return e.$i||(e(t,$,L),e.$i=!0),L},L.locale=D,L.isDayjs=v,L.unix=function(e){return L(1e3*e)},L.en=g[y],L.Ls=g,L.p={},L}(),L={exports:{}},S=L.exports=(g={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,n){var r=t.prototype,s=r.format;n.en.formats=g,r.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,n=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var s=r&&r.toUpperCase();return n||t[r]||g[r]||t[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(e,void 0===t?{}:t);return s.call(this,n)}}),$={exports:{}},w=$.exports=function(e,t,n){var r=t.prototype,s=function(e){var t,s=e.date,i=e.utc,a={};if(!((t=s)instanceof Date)&&!(t instanceof Array)&&t instanceof Object){if(!Object.keys(s).length)return new Date;var o=i?n.utc():n();Object.keys(s).forEach((function(e){var t,n;a[(t=e,n=r.$utils().p(t),"date"===n?"day":n)]=s[e]}));var u=a.day||(a.year||a.month>=0?1:o.date()),d=a.year||o.year(),_=a.month>=0?a.month:a.year||a.day?0:o.month(),m=a.hour||0,l=a.minute||0,c=a.second||0,h=a.millisecond||0;return i?new Date(Date.UTC(d,_,u,m,l,c,h)):new Date(d,_,u,m,l,c,h)}return s},i=r.parse;r.parse=function(e){e.date=s.bind(this)(e),i.bind(this)(e)};var a=r.set,o=r.add,u=function(e,t,n,r){if(void 0===r&&(r=1),t instanceof Object){var s=Object.keys(t),i=this;return s.forEach((function(n){i=e.bind(i)(t[n]*r,n)})),i}return e.bind(this)(t*r,n)};r.set=function(e,t){return t=void 0===t?e:t,u.bind(this)((function(e,t){return a.bind(this)(t,e)}),t,e)},r.add=function(e,t){return u.bind(this)(o,e,t)},r.subtract=function(e,t){return u.bind(this)(o,e,t,-1)}},b={exports:{}},k=b.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,s){var i,a=function(e,n,r){void 0===r&&(r={});var s=new Date(e),i=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",s=e+"|"+r,i=t[s];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[s]=i),i}(n,r);return i.formatToParts(s)},o=function(t,n){for(var r=a(t,n),i=[],o=0;o<r.length;o+=1){var u=r[o],d=u.type,_=u.value,m=e[d];m>=0&&(i[m]=parseInt(_,10))}var l=i[3],c=24===l?0:l,h=i[0]+"-"+i[1]+"-"+i[2]+" "+c+":"+i[4]+":"+i[5]+":000",p=+t;return(s.utc(h).valueOf()-(p-=p%1e3))/6e4},u=r.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),o=Math.round((r-new Date(a))/1e3/60),u=s(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-o,!0);if(t){var d=u.utcOffset();u=u.add(n-d,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||s.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var d=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return d.call(this,e,t);var n=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return d.call(n,e,t).tz(this.$x.$timezone,!0)},s.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=o(+s(),a);if("string"!=typeof e)return s(e).tz(a);var d=function(e,t,n){var r=e-60*t*1e3,s=o(r,n);if(t===s)return[r,t];var i=o(r-=60*(s-t)*1e3,n);return s===i?[r,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}(s.utc(e,r).valueOf(),u,a),_=d[0],m=d[1],l=s(_).utcOffset(m);return l.$x.$timezone=a,l},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(e){i=e}}}(),T={exports:{}},H=T.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,s,i){var a=s.prototype;i.utc=function(e){return new s({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var o=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var u=a.init;a.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 u.call(this)};var d=a.utcOffset;a.utcOffset=function(r,s){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?d.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var s=(""+r[0]).match(n)||["-",0,0],i=s[0],a=60*+s[1]+ +s[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,o=this;if(s)return o.$offset=a,o.$u=0===r,o;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(a+u,e)).$offset=a,o.$x.$localOffset=u}else o=this.utc();return o};var _=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return _.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var m=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var l=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return l.call(this,e,t,n);var r=this.local(),s=i(e).local();return l.call(r,s,t,n)}}}();const x={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},O=(e,t,n)=>{let r=x[n];return Array.isArray(r)&&(r=r[t?0:1]),r.replace("%d",e)},z={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:O,m:O,mm:O,h:O,hh:O,d:O,dd:O,M:O,MM:O,y:O,yy:O}},A={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},j=(e,t,n)=>{let r=A[n];return Array.isArray(r)&&(r=r[t?0:1]),r.replace("%d",e)},C={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:j,m:j,mm:j,h:j,hh:j,d:j,dd:j,M:j,MM:j,y:j,yy:j}},I={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("_")},F={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:e=>`${e}º`},J={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:e=>`${e}${1===e?"er":""}`},P=e=>e%10<5&&e%10>1&&~~(e/10)%10!=1,U=(e,t,n)=>{const r=`${e} `;switch(n){case"m":return t?"minuta":"minutę";case"mm":return r+(P(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(P(e)?"godziny":"godzin");case"MM":return r+(P(e)?"miesiące":"miesięcy");case"yy":return r+(P(e)?"lata":"lat")}},E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),N="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),W=/D MMMM/,q=(e,t)=>W.test(t)?E[e.month()]:N[e.month()];q.s=N,q.f=E;const Z={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:q,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:U,mm:U,h:U,hh:U,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:U,y:"rok",yy:U},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}},B={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:e=>`${e}º`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}},V="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),G="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),R="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),Q="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),K=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,X=(e,t,n)=>"m"===n?t?"минута":"минуту":`${e} ${((e,t)=>{const n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]})({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n],+e)}`,ee=(e,t)=>K.test(t)?V[e.month()]:G[e.month()];ee.s=G,ee.f=V;const te=(e,t)=>K.test(t)?R[e.month()]:Q[e.month()];te.s=Q,te.f=R;const ne={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:ee,monthsShort:te,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:X,mm:X,h:"час",hh:X,d:"день",dd:X,M:"месяц",MM:X,y:"год",yy:X},ordinal:e=>e,meridiem:e=>e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},re=e=>e>1&&e<5&&1!=~~(e/10),se=(e,t,n,r)=>{const s=`${e} `;switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?s+(re(e)?"minúty":"minút"):`${s}minútami`;case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(re(e)?"hodiny":"hodín"):`${s}hodinami`;case"d":return t||r?"deň":"dňom";case"dd":return t||r?s+(re(e)?"dni":"dní"):`${s}dňami`;case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?s+(re(e)?"mesiace":"mesiacov"):`${s}mesiacmi`;case"y":return t||r?"rok":"rokom";case"yy":return t||r?s+(re(e)?"roky":"rokov"):`${s}rokmi`}},ie={name:"sk",weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:e=>`${e}.`,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:se,m:se,mm:se,h:se,hh:se,d:se,dd:se,M:se,MM:se,y:se,yy:se}},ae="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),oe="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),ue=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,de=(e,t,n)=>"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":`${e} ${((e,t)=>{const n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]})({ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n],+e)}`,_e=(e,t)=>ue.test(t)?ae[e.month()]:oe[e.month()];_e.s=oe,_e.f=ae;const me={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:_e,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:de,mm:de,h:de,hh:de,d:"день",dd:de,M:"місяць",MM:de,y:"рік",yy:de},ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}},le={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}},ce={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:(e,t)=>"W"===t?`${e}周`:`${e}日`,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:(e,t)=>{const n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},he={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:e=>`${e}日`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH: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 年"}};D.extend(S),D.extend(w),D.extend(H),D.extend(k),D.locale("de",z),(e=>{e.locale("de-at",C)})(D),(e=>{e.locale("en",I)})(D),(e=>{e.locale("es",F)})(D),(e=>{e.locale("fr",J)})(D),(e=>{e.locale("pl",Z)})(D),(e=>{e.locale("pt-br",B)})(D),(e=>{e.locale("ru",ne)})(D),(e=>{e.locale("sk",ie)})(D),(e=>{e.locale("uk",me)})(D),(e=>{e.locale("vi",le)})(D),(e=>{e.locale("zh",ce)})(D),(e=>{e.locale("zh-tw",he)})(D);D.extend(S),D.extend(w),D.extend(H),D.extend(k);const pe={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:(e,t)=>"W"===t?`${e}周`:`${e}日`,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:(e,t)=>{const n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},fe={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("_")};D.locale("zh",pe),D.locale("en",fe);const Me=D;D.extend(w),D.extend(H),D.extend(k);const Ye=(e,t)=>{if(e){if(D(e instanceof Date?e:e.trim()).isValid()){const n=t?D(e).tz(t):D(e),r=n.year(),s=n.month()+1,i=n.date(),a=n.hour(),o=n.minute(),u=n.second(),d=n.millisecond(),_=0===a&&0===o&&0===u&&0===d;return{value:n.toDate(),info:{year:r,month:s,day:i,..._?{}:{hour:a,minute:o,second:u}},type:_?"date":"full"}}const n=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(e.trim());if(n){const[,e,t,r,s,i,a]=n,o=e=>void 0===e?void 0:Number(e),u=e=>s&&i&&!a?0:e,d={year:(e=>e&&e<100?e+2e3:e)(o(e)),month:o(t),day:o(r),hour:o(s),minute:o(i),second:u(o(a))},_=void 0===e&&void 0===t&&void 0===r,m=void 0===s&&void 0===i&&void 0===a,l=D({...d,month:d.month-1}).toDate();return{value:_?void 0:l,info:m?{year:d.year,month:d.month,day:d.day}:_?{hour:d.hour,minute:d.minute,second:d.second}:d,type:_?"time":m?"date":"full"}}}return null},ye=(e,t={})=>{const n=Ye(e,t.timezone);if(n){const{lang:e,timezone:r,type:s=n.type}=t;D.locale(((e="en")=>{const t=e.toLowerCase();return["de","de-at","en","es","fr","pl","pt-br","ru","sk","uk","vi","zh","zh-tw"].includes(t)?t:"en-us"===t||"en-uk"===t?"en":"es-es"===t?"es":"fr-fr"===t?"fr":"pl-pl]"===t?"pl":"ru-ru]"===t?"ru":"uk-ua"===t?"uk":"sk-sk"===t?"sk":"vi-vn"===t?"vi":"zh-cn"===t?"zh":(console.warn(`${e} locale missing in config`),"en")})(e));return(r?D(n.value).tz(r):D(n.value)).format("date"===s?"LL":"time"===s?"HH:mm":"LLL")}return null},ge=new Map,ve=new Map,De=e=>{const t=`global:${e}`,r=ge.get(t);return void 0!==r?r:!!(e=>{try{return 0===n.sync(`${e} --version`,{stdio:"ignore"}).exitCode}catch(e){return!1}})(e)&&(ge.set(t,!0),!0)},Le=(e=process.cwd(),t=!0)=>{const n=`local:${e}`,i=ve.get(n);if(void 0!==i)return i;if(r.existsSync(s.resolve(e,"pnpm-lock.yaml")))return ve.set(n,"pnpm"),"pnpm";if(r.existsSync(s.resolve(e,"yarn.lock")))return ve.set(n,"yarn"),"yarn";if(r.existsSync(s.resolve(e,"package-lock.json")))return ve.set(n,"npm"),"npm";let a=e;for(;t&&a!==s.dirname(a);){if(a=s.dirname(a),r.existsSync(s.resolve(a,"pnpm-lock.yaml")))return ve.set(n,"pnpm"),"pnpm";if(r.existsSync(s.resolve(a,"yarn.lock")))return ve.set(n,"yarn"),"yarn";if(r.existsSync(s.resolve(a,"package-lock.json")))return ve.set(n,"npm"),"npm"}return null},Se=(e=process.cwd(),t=!0)=>Le(e,t)||(De("pnpm")?"pnpm":De("yarn")?"yarn":"npm"),$e={"de-AT":"/de-at/","en-US":"/en/","es-ES":"/es/","fr-FR":"/fr/","pl-PL":"/pl/","pt-BR":"/br/","ru-RU":"/ru/","sk-SK":"/sk/","uk-UA":"/uk/","vi-VN":"/vi/","zh-CN":"/zh/","zh-TW":"/zh-tw/"},we=Object.keys($e),be=Object.fromEntries(we.map((e=>[$e[e],e])));class ke{constructor(e=""){this.name=e,this.currentInstance=u.default()}create(t){return this.currentInstance=u.default({prefixText:e.chalk.blue(`${this.name}: `)||"",text:t}),this.currentInstance}update(e){this.currentInstance?this.currentInstance.text=e:this.create(e)}load(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).start()}info(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).info()}succeed(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).succeed()}warn(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).warn()}error(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).fail()}}const Te={},He=(e="",t=!1)=>e in $e?$e[e]:(t&&console.warn(`${e} has no path config, and will return '/' instead.`),"/"),xe=e=>{const t=e.siteData.locales;return t?.["/"]&&t["/"]?.lang?t["/"].lang:e.siteData.lang},Oe=e=>He(xe(e),e.env.isDebug),ze=e=>Array.from(new Set([...Object.keys(e.siteData.locales)])),Ae=e=>" "===e||"\n"===e||"\r"===e||"\t"===e;class je{consume(e,t){return"<"===e?(t(new Ce),""):e}}class Ce{constructor(){this.nameBuffer=""}consume(e,t){if(0===this.nameBuffer.length){if(Ae(e))return t(new je),"<"+e;if("/"===e)return""}return Ae(e)?(t(new Ie(1)),""):"<"===e?(this.nameBuffer+="&lt;",""):">"===e?(t(new je),""):"-"===e&&"!-"===this.nameBuffer?(t(new Je),""):(this.nameBuffer+=e,"")}}class Ie{constructor(e){this.mode=e}consume(e,t){return">"===e?t(new je):(e=>'"'===e||"'"===e)(e)&&t(new Fe(this.mode,e)),1===this.mode?"":"<"===e?"&lt;":e}}class Fe{constructor(e,t){this.mode=e,this.quoteCharacter=t}consume(e,t){return e===this.quoteCharacter&&t(new Ie(this.mode)),1===this.mode?"":"<"===e?"&lt;":">"===e?"&gt;":e}}class Je{constructor(){this.consecutiveHyphens=0}consume(e,t){return">"===e&&this.consecutiveHyphens>=2?t(new je):"-"===e?this.consecutiveHyphens++:this.consecutiveHyphens=0,""}}class Pe{constructor(){this.state=new je,this.transitionFunction=e=>{this.state=e}}consume(e){let t="";for(const n of e)t+=this.state.consume(n,this.transitionFunction);return t}}exports.InCommentState=Je,exports.InPlaintextState=je,exports.InQuotedStringInTagState=Fe,exports.InTagNameState=Ce,exports.InTagState=Ie,exports.Logger=ke,exports.StateMachine=Pe,exports.addCustomElement=({app:e,config:t},n)=>{const r="string"==typeof n?[n]:n,{bundler:s}=e.options;if(s.name.endsWith("vite")){const n=t;n.vuePluginOptions||(n.vuePluginOptions={}),n.vuePluginOptions.template||(n.vuePluginOptions.template={}),n.vuePluginOptions.template.compilerOptions||(n.vuePluginOptions.template.compilerOptions={});const{isCustomElement:s=(t=>m(t,e.env.isDebug))}=n.vuePluginOptions.template.compilerOptions;n.vuePluginOptions.template.compilerOptions.isCustomElement=e=>!!r.includes(e)||s(e)}if(s.name.endsWith("webpack")){const n=t;n.vue||(n.vue={}),n.vue.compilerOptions||(n.vue.compilerOptions={});const{isCustomElement:s=(t=>m(t,e.env.isDebug))}=n.vue.compilerOptions;n.vue.compilerOptions.isCustomElement=e=>!!r.includes(e)||s(e)}},exports.addViteOptimizeDepsExclude=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=M(e.viteOptions,{optimizeDeps:{exclude:"string"==typeof n?[n]:n}}),e.viteOptions.optimizeDeps.exclude=Array.from(new Set(e.viteOptions.optimizeDeps.exclude))}},exports.addViteOptimizeDepsInclude=({app:e,config:t},n)=>{const{bundler:r}=e.options,s=Se();if(r.name.endsWith("vite")&&("OPTIMIZE_DEPS"in process.env?Boolean(process.env.OPTIMIZE_DEPS):"pnpm"!==s)){const e=t;e.viteOptions=M(e.viteOptions,{optimizeDeps:{include:"string"==typeof n?[n]:n}}),e.viteOptions.optimizeDeps.include=Array.from(new Set(e.viteOptions.optimizeDeps.include))}},exports.addViteSsrExternal=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=M(e.viteOptions,{ssr:{external:"string"==typeof n?[n]:n}})}},exports.addViteSsrNoExternal=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=M(e.viteOptions,{ssr:{noExternal:"string"==typeof n?[n]:n}})}},exports.checkLang=(e="")=>we.includes(e),exports.compareDate=(e,t)=>{const n=Ye("number"==typeof e?new Date(e):e),r=Ye("number"==typeof t?new Date(t):t);return n&&n.value?r&&r.value?r.value.getTime()-n.value.getTime():-1:1},exports.dayjs=Me,exports.deepAssign=Y,exports.deepAssignReverse=y,exports.detectPackageManager=Se,exports.encodeCDATA=e=>e.replace(/]]>/g,"]]]]><![CDATA[>"),exports.encodeXML=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),exports.getAuthor=(e,t=!1)=>e?Array.isArray(e)?e.map((e=>"string"==typeof e?{name:e}:e)):"string"==typeof e?[{name:e}]:"object"==typeof e&&e.name?[e]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${t?"":"| false"} | undefined\`, but got`,e),[]):[],exports.getCategory=e=>{if(e){if(Array.isArray(e))return e;if("string"==typeof e)return[e];console.error("Expect 'category' to be `string[] | string | undefined`, but got",e)}return[]},exports.getDate=Ye,exports.getLocalePaths=ze,exports.getLocales=({app:e,name:t,default:n,config:r={}})=>{const s=Oe(e),i=new ke(t);return Object.fromEntries([...ze(e).filter((e=>"/"!==e)).map((e=>(n[e]||i.warn(`Locale ${e} is missing it's i18n config`),[e,Y({},n[e]||n[s]||{},r[e]||{})]))),["/",Y({},n[s],r["/"]||r[s]||{})]])},exports.getRootLang=xe,exports.getRootLangPath=Oe,exports.getTag=e=>{if(e){if(Array.isArray(e))return e;if("string"==typeof e)return[e];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",e)}return[]},exports.getTypeofLockFile=Le,exports.hasGlobalInstallation=De,exports.injectLocalizedDate=(e,t)=>{if(!e.data.localizedDate)if(e.frontmatter.date){const n=Ye(e.frontmatter.date,t)?.value;n&&(e.data.localizedDate=ye(n,{lang:e.lang,type:"date"}))}else e.data.git?.createdTime&&(e.data.localizedDate=ye(new Date(e.data.git?.createdTime),{lang:e.lang,type:"date"}))},exports.isAbsoluteUrl=e=>e.startsWith("/"),exports.isUrl=e=>{if("string"!=typeof e||""===e)return!1;const t=/^(?:\w+:)?\/\/(\S+)$/u.exec(e);if(!t)return!1;const n=t[1];return!!n&&(/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(n)||/^[^\s.]+\.\S{2,}$/u.test(n))},exports.lang2Path=He,exports.mergeViteConfig=M,exports.noopModule="vuepress-shared/lib/client/noopModule.js",exports.path2Lang=(e="",t=!1)=>e in be?be[e]:(t&&console.warn(`${e} isn’t assign with a lang, and will return 'en-US' instead.`),"en-US"),exports.removeGitPlugin=e=>{const t=e.pluginApi.plugins.findIndex((e=>"@vuepress/plugin-git"===e.name));-1!==t&&e.pluginApi.plugins.splice(t,1)},exports.showLangError=(e,t="")=>{Te[e]||(console.warn(`${e} locates config is missing, and will return 'en-US' instead.\n${"root"===e?"":`You can contribute to https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/packages/${t||"<YOUR PLUGIN>"}/src/node/locales.ts in this repository.\n`}Note: This warning will be shown only once`),Te[e]=!0)},exports.stripTags=(e="")=>e?(new Pe).consume(e):"",exports.tagHint=m,exports.timeTransformer=ye,exports.useCustomDevServer=(e,n,r,s,i="The server encounted an error")=>{const{base:a,bundler:o}=n.options;if(n.env.isDev&&o.name.endsWith("vite")){const n=e,o=(e,t)=>{s(e).then((e=>{t.statusCode=200,t.end(e)})).catch((()=>{t.statusCode=500,t.end(i)}))},u={name:`virtual:devserver-mock/${r}`,configureServer:({middlewares:e})=>{e.use(`${t.removeLeadingSlash(a)}${r}`,o)}};n.viteOptions=M(n.viteOptions,{plugins:[u]})}if(n.env.isDev&&o.name.endsWith("webpack")){const n=e,{devServerSetupMiddlewares:o}=n;n.devServerSetupMiddlewares=(e,n)=>(n.app?.get(`${t.removeEndingSlash(a)}${r}`,((e,t)=>{s(e).then((e=>t.status(200).send(e))).catch((()=>t.status(500).send(i)))})),o?o(e,n):e)}},exports.useGitPlugin=(e,t)=>{e.pluginApi.plugins.every((e=>"@vuepress/plugin-git"!==e.name))&&t&&e.use(a.gitPlugin(t))};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@vuepress/utils"),t=require("@vuepress/shared"),n=require("execa"),r=require("fs"),s=require("path"),i=require("ora"),a=require("@vuepress/plugin-git");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(i);const d="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",_="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",m=(t,n=!1)=>{!n||d.split(",").includes(t)||_.split(",").includes(t)||t!==t.toLowerCase()||t.includes("-")||console.warn(e.chalk.yellow("warning: "),`${t} is used and it’s not a standard tag or standard custom element name`)},l=e=>"[object Object]"===Object.prototype.toString.call(e);function c({find:e,replacement:t}){return"string"==typeof e&&e.endsWith("/")&&t.endsWith("/")&&(e=e.slice(0,e.length-1),t=t.slice(0,t.length-1)),{find:e,replacement:t}}const h=e=>Array.isArray(e)?e.map(c):Object.keys(e).map((t=>c({find:t,replacement:e[t]}))),p=(e=[],t=[])=>[...h(e),...h(t)],f=(e,t,n)=>{const r={...e};for(const e in t){const s=t[e];if(null==s)continue;const i=r[e];if(Array.isArray(i)&&Array.isArray(s))r[e]=[...i,...s];else if(l(i)&&l(s))r[e]=f(i,s,n?`${n}.${e}`:e);else{if(null!=i){if("alias"===e&&("resolve"===n||""===n)){r[e]=p(i,s);continue}if("assetsInclude"===e&&""===n){r[e]=[].concat(i,s);continue}if("noExternal"===e&&!0===i)continue}r[e]=s}}return r},M=(e,t,n=!0)=>f(e,t,n?"":"."),Y=(e,...t)=>{if(0===t.length)return e;const n=t.shift()||{};return Object.keys(n).forEach((t=>{"object"!=typeof e[t]||Array.isArray(e[t])||"object"!=typeof n[t]||Array.isArray(n[t])?"object"==typeof n[t]?Array.isArray(n[t])?e[t]=[...n[t]]:e[t]={...n[t]}:e[t]=n[t]:Y(e[t],n[t])})),Y(e,...t)},y=(...e)=>{if(0===e.length)throw new Error("No param is given");if(1===e.length)return e[0];const t=e.pop(),n=e.pop();return Object.keys(n).forEach((e=>{void 0===t[e]?"object"==typeof n[e]?Array.isArray(n[e])?t[e]=[...n[e]]:t[e]={...n[e]}:t[e]=n[e]:"object"!=typeof t[e]||Array.isArray(t)||"object"!=typeof n[e]||Array.isArray(n[e])||y(n[e],t[e])})),y(...e,t)};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var g,v={exports:{}},D=v.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",s="second",i="minute",a="hour",o="day",u="week",d="month",_="quarter",m="year",l="date",c="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,f={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(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},Y={s:M,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+M(r,2,"0")+":"+M(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,d),i=n-s<0,a=t.clone().add(r+(i?-1:1),d);return+(-(r+(n-s)/(i?s-a:a-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:m,w:u,d:o,D:l,h:a,m:i,s:s,ms:r,Q:_}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",g={};g[y]=f;var v=function(e){return e instanceof $},D=function e(t,n,r){var s;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();g[i]&&(s=i),n&&(g[i]=n,s=i);var a=t.split("-");if(!s&&a.length>1)return e(a[0])}else{var o=t.name;g[o]=t,s=o}return!r&&s&&(y=s),s||!r&&y},L=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new $(n)},S=Y;S.l=D,S.i=v,S.w=function(e,t){return L(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function f(e){this.$L=D(e.locale,null,!0),this.parse(e)}var M=f.prototype;return M.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},M.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},M.$utils=function(){return S},M.isValid=function(){return!(this.$d.toString()===c)},M.isSame=function(e,t){var n=L(e);return this.startOf(t)<=n&&n<=this.endOf(t)},M.isAfter=function(e,t){return L(e)<this.startOf(t)},M.isBefore=function(e,t){return this.endOf(t)<L(e)},M.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(e,t){var n=this,r=!!S.u(t)||t,_=S.p(e),c=function(e,t){var s=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(o)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},p=this.$W,f=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(_){case m:return r?c(1,0):c(31,11);case d:return r?c(1,f):c(0,f+1);case u:var y=this.$locale().weekStart||0,g=(p<y?p+7:p)-y;return c(r?M-g:M+(6-g),f);case o:case l:return h(Y+"Hours",0);case a:return h(Y+"Minutes",1);case i:return h(Y+"Seconds",2);case s:return h(Y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(e){return this.startOf(e,!1)},M.$set=function(e,t){var n,u=S.p(e),_="set"+(this.$u?"UTC":""),c=(n={},n[o]=_+"Date",n[l]=_+"Date",n[d]=_+"Month",n[m]=_+"FullYear",n[a]=_+"Hours",n[i]=_+"Minutes",n[s]=_+"Seconds",n[r]=_+"Milliseconds",n)[u],h=u===o?this.$D+(t-this.$W):t;if(u===d||u===m){var p=this.clone().set(l,1);p.$d[c](h),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else c&&this.$d[c](h);return this.init(),this},M.set=function(e,t){return this.clone().$set(e,t)},M.get=function(e){return this[S.p(e)]()},M.add=function(r,_){var l,c=this;r=Number(r);var h=S.p(_),p=function(e){var t=L(c);return S.w(t.date(t.date()+Math.round(e*r)),c)};if(h===d)return this.set(d,this.$M+r);if(h===m)return this.set(m,this.$y+r);if(h===o)return p(1);if(h===u)return p(7);var f=(l={},l[i]=t,l[a]=n,l[s]=e,l)[h]||1,M=this.$d.getTime()+r*f;return S.w(M,this)},M.subtract=function(e,t){return this.add(-1*e,t)},M.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=S.z(this),i=this.$H,a=this.$m,o=this.$M,u=n.weekdays,d=n.months,_=function(e,n,s,i){return e&&(e[n]||e(t,r))||s[n].slice(0,i)},m=function(e){return S.s(i%12||12,e,"0")},l=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:S.s(o+1,2,"0"),MMM:_(n.monthsShort,o,d,3),MMMM:_(d,o),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:_(n.weekdaysMin,this.$W,u,2),ddd:_(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:S.s(i,2,"0"),h:m(1),hh:m(2),a:l(i,a,!0),A:l(i,a,!1),m:String(a),mm:S.s(a,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:s};return r.replace(p,(function(e,t){return t||h[e]||s.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(r,l,c){var h,p=S.p(l),f=L(r),M=(f.utcOffset()-this.utcOffset())*t,Y=this-f,y=S.m(this,f);return y=(h={},h[m]=y/12,h[d]=y,h[_]=y/3,h[u]=(Y-M)/6048e5,h[o]=(Y-M)/864e5,h[a]=Y/n,h[i]=Y/t,h[s]=Y/e,h)[p]||Y,c?y:S.a(y)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return g[this.$L]},M.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=D(e,t,!0);return r&&(n.$L=r),n},M.clone=function(){return S.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},f}(),w=$.prototype;return L.prototype=w,[["$ms",r],["$s",s],["$m",i],["$H",a],["$W",o],["$M",d],["$y",m],["$D",l]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),L.extend=function(e,t){return e.$i||(e(t,$,L),e.$i=!0),L},L.locale=D,L.isDayjs=v,L.unix=function(e){return L(1e3*e)},L.en=g[y],L.Ls=g,L.p={},L}(),L={exports:{}},S=L.exports=(g={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,n){var r=t.prototype,s=r.format;n.en.formats=g,r.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,n=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var s=r&&r.toUpperCase();return n||t[r]||g[r]||t[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(e,void 0===t?{}:t);return s.call(this,n)}}),$={exports:{}},w=$.exports=function(e,t,n){var r=t.prototype,s=function(e){var t,s=e.date,i=e.utc,a={};if(!((t=s)instanceof Date)&&!(t instanceof Array)&&t instanceof Object){if(!Object.keys(s).length)return new Date;var o=i?n.utc():n();Object.keys(s).forEach((function(e){var t,n;a[(t=e,n=r.$utils().p(t),"date"===n?"day":n)]=s[e]}));var u=a.day||(a.year||a.month>=0?1:o.date()),d=a.year||o.year(),_=a.month>=0?a.month:a.year||a.day?0:o.month(),m=a.hour||0,l=a.minute||0,c=a.second||0,h=a.millisecond||0;return i?new Date(Date.UTC(d,_,u,m,l,c,h)):new Date(d,_,u,m,l,c,h)}return s},i=r.parse;r.parse=function(e){e.date=s.bind(this)(e),i.bind(this)(e)};var a=r.set,o=r.add,u=function(e,t,n,r){if(void 0===r&&(r=1),t instanceof Object){var s=Object.keys(t),i=this;return s.forEach((function(n){i=e.bind(i)(t[n]*r,n)})),i}return e.bind(this)(t*r,n)};r.set=function(e,t){return t=void 0===t?e:t,u.bind(this)((function(e,t){return a.bind(this)(t,e)}),t,e)},r.add=function(e,t){return u.bind(this)(o,e,t)},r.subtract=function(e,t){return u.bind(this)(o,e,t,-1)}},b={exports:{}},k=b.exports=function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,s){var i,a=function(e,n,r){void 0===r&&(r={});var s=new Date(e),i=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",s=e+"|"+r,i=t[s];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[s]=i),i}(n,r);return i.formatToParts(s)},o=function(t,n){for(var r=a(t,n),i=[],o=0;o<r.length;o+=1){var u=r[o],d=u.type,_=u.value,m=e[d];m>=0&&(i[m]=parseInt(_,10))}var l=i[3],c=24===l?0:l,h=i[0]+"-"+i[1]+"-"+i[2]+" "+c+":"+i[4]+":"+i[5]+":000",p=+t;return(s.utc(h).valueOf()-(p-=p%1e3))/6e4},u=r.prototype;u.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),o=Math.round((r-new Date(a))/1e3/60),u=s(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-o,!0);if(t){var d=u.utcOffset();u=u.add(n-d,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||s.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var d=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return d.call(this,e,t);var n=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return d.call(n,e,t).tz(this.$x.$timezone,!0)},s.tz=function(e,t,n){var r=n&&t,a=n||t||i,u=o(+s(),a);if("string"!=typeof e)return s(e).tz(a);var d=function(e,t,n){var r=e-60*t*1e3,s=o(r,n);if(t===s)return[r,t];var i=o(r-=60*(s-t)*1e3,n);return s===i?[r,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}(s.utc(e,r).valueOf(),u,a),_=d[0],m=d[1],l=s(_).utcOffset(m);return l.$x.$timezone=a,l},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(e){i=e}}}(),T={exports:{}},H=T.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,s,i){var a=s.prototype;i.utc=function(e){return new s({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var o=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var u=a.init;a.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 u.call(this)};var d=a.utcOffset;a.utcOffset=function(r,s){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?d.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var s=(""+r[0]).match(n)||["-",0,0],i=s[0],a=60*+s[1]+ +s[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,o=this;if(s)return o.$offset=a,o.$u=0===r,o;if(0!==r){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(a+u,e)).$offset=a,o.$x.$localOffset=u}else o=this.utc();return o};var _=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return _.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var m=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var l=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return l.call(this,e,t,n);var r=this.local(),s=i(e).local();return l.call(r,s,t,n)}}}();const x={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},O=(e,t,n)=>{let r=x[n];return Array.isArray(r)&&(r=r[t?0:1]),r.replace("%d",e)},z={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:O,m:O,mm:O,h:O,hh:O,d:O,dd:O,M:O,MM:O,y:O,yy:O}},A={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]},j=(e,t,n)=>{let r=A[n];return Array.isArray(r)&&(r=r[t?0:1]),r.replace("%d",e)},C={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:e=>`${e}.`,weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:j,m:j,mm:j,h:j,hh:j,d:j,dd:j,M:j,MM:j,y:j,yy:j}},I={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("_")},J={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:e=>`${e}º`},P={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:e=>`${e}${1===e?"er":""}`},F=e=>e%10<5&&e%10>1&&~~(e/10)%10!=1,U=(e,t,n)=>{const r=`${e} `;switch(n){case"m":return t?"minuta":"minutę";case"mm":return r+(F(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(F(e)?"godziny":"godzin");case"MM":return r+(F(e)?"miesiące":"miesięcy");case"yy":return r+(F(e)?"lata":"lat")}},E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),N="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),W=/D MMMM/,q=(e,t)=>W.test(t)?E[e.month()]:N[e.month()];q.s=N,q.f=E;const Z={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:q,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:e=>`${e}.`,weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:U,mm:U,h:U,hh:U,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:U,y:"rok",yy:U},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}},B={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:e=>`${e}º`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}},V="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),G="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),R="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),Q="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),K=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,X=(e,t,n)=>"m"===n?t?"минута":"минуту":`${e} ${((e,t)=>{const n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]})({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n],+e)}`,ee=(e,t)=>K.test(t)?V[e.month()]:G[e.month()];ee.s=G,ee.f=V;const te=(e,t)=>K.test(t)?R[e.month()]:Q[e.month()];te.s=Q,te.f=R;const ne={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:ee,monthsShort:te,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:X,mm:X,h:"час",hh:X,d:"день",dd:X,M:"месяц",MM:X,y:"год",yy:X},ordinal:e=>e,meridiem:e=>e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},re=e=>e>1&&e<5&&1!=~~(e/10),se=(e,t,n,r)=>{const s=`${e} `;switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?s+(re(e)?"minúty":"minút"):`${s}minútami`;case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?s+(re(e)?"hodiny":"hodín"):`${s}hodinami`;case"d":return t||r?"deň":"dňom";case"dd":return t||r?s+(re(e)?"dni":"dní"):`${s}dňami`;case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?s+(re(e)?"mesiace":"mesiacov"):`${s}mesiacmi`;case"y":return t||r?"rok":"rokom";case"yy":return t||r?s+(re(e)?"roky":"rokov"):`${s}rokmi`}},ie={name:"sk",weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),months:"január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),monthsShort:"jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:e=>`${e}.`,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:se,m:se,mm:se,h:se,hh:se,d:se,dd:se,M:se,MM:se,y:se,yy:se}},ae="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),oe="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),ue=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,de=(e,t,n)=>"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":`${e} ${((e,t)=>{const n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]})({ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n],+e)}`,_e=(e,t)=>ue.test(t)?ae[e.month()]:oe[e.month()];_e.s=oe,_e.f=ae;const me={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:_e,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:de,mm:de,h:de,hh:de,d:"день",dd:de,M:"місяць",MM:de,y:"рік",yy:de},ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"}},le={name:"vi",weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:e=>e,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"}},ce={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:(e,t)=>"W"===t?`${e}周`:`${e}日`,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:(e,t)=>{const n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},he={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:e=>`${e}日`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH: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 年"}};D.extend(S),D.extend(w),D.extend(H),D.extend(k),D.locale("de",z),(e=>{e.locale("de-at",C)})(D),(e=>{e.locale("en",I)})(D),(e=>{e.locale("es",J)})(D),(e=>{e.locale("fr",P)})(D),(e=>{e.locale("pl",Z)})(D),(e=>{e.locale("pt-br",B)})(D),(e=>{e.locale("ru",ne)})(D),(e=>{e.locale("sk",ie)})(D),(e=>{e.locale("uk",me)})(D),(e=>{e.locale("vi",le)})(D),(e=>{e.locale("zh",ce)})(D),(e=>{e.locale("zh-tw",he)})(D);D.extend(S),D.extend(w),D.extend(H),D.extend(k);const pe={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:(e,t)=>"W"===t?`${e}周`:`${e}日`,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:(e,t)=>{const n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}},fe={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("_")};D.locale("zh",pe),D.locale("en",fe);const Me=D;D.extend(w),D.extend(H),D.extend(k);const Ye=(e,t)=>{if(e){if(D(e instanceof Date?e:e.trim()).isValid()){const n=t?D(e).tz(t):D(e),r=n.year(),s=n.month()+1,i=n.date(),a=n.hour(),o=n.minute(),u=n.second(),d=n.millisecond(),_=0===a&&0===o&&0===u&&0===d;return{value:n.toDate(),info:{year:r,month:s,day:i,..._?{}:{hour:a,minute:o,second:u}},type:_?"date":"full"}}const n=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(e.trim());if(n){const[,e,t,r,s,i,a]=n,o=e=>void 0===e?void 0:Number(e),u=e=>s&&i&&!a?0:e,d={year:(e=>e&&e<100?e+2e3:e)(o(e)),month:o(t),day:o(r),hour:o(s),minute:o(i),second:u(o(a))},_=void 0===e&&void 0===t&&void 0===r,m=void 0===s&&void 0===i&&void 0===a,l=D({...d,month:d.month-1}).toDate();return{value:_?void 0:l,info:m?{year:d.year,month:d.month,day:d.day}:_?{hour:d.hour,minute:d.minute,second:d.second}:d,type:_?"time":m?"date":"full"}}}return null},ye=(e,t={})=>{const n=Ye(e,t.timezone);if(n){const{lang:e,timezone:r,type:s=n.type}=t;D.locale(((e="en")=>{const t=e.toLowerCase();return["de","de-at","en","es","fr","pl","pt-br","ru","sk","uk","vi","zh","zh-tw"].includes(t)?t:"en-us"===t||"en-uk"===t?"en":"es-es"===t?"es":"fr-fr"===t?"fr":"pl-pl]"===t?"pl":"ru-ru]"===t?"ru":"uk-ua"===t?"uk":"sk-sk"===t?"sk":"vi-vn"===t?"vi":"zh-cn"===t?"zh":(console.warn(`${e} locale missing in config`),"en")})(e));return(r?D(n.value).tz(r):D(n.value)).format("date"===s?"LL":"time"===s?"HH:mm":"LLL")}return null},ge=new Map,ve=new Map,De=e=>{const t=`global:${e}`,r=ge.get(t);return void 0!==r?r:!!(e=>{try{return 0===n.sync(`${e} --version`,{stdio:"ignore"}).exitCode}catch(e){return!1}})(e)&&(ge.set(t,!0),!0)},Le=(e=process.cwd(),t=!0)=>{const n=`local:${e}`,i=ve.get(n);if(void 0!==i)return i;if(r.existsSync(s.resolve(e,"pnpm-lock.yaml")))return ve.set(n,"pnpm"),"pnpm";if(r.existsSync(s.resolve(e,"yarn.lock")))return ve.set(n,"yarn"),"yarn";if(r.existsSync(s.resolve(e,"package-lock.json")))return ve.set(n,"npm"),"npm";let a=e;for(;t&&a!==s.dirname(a);){if(a=s.dirname(a),r.existsSync(s.resolve(a,"pnpm-lock.yaml")))return ve.set(n,"pnpm"),"pnpm";if(r.existsSync(s.resolve(a,"yarn.lock")))return ve.set(n,"yarn"),"yarn";if(r.existsSync(s.resolve(a,"package-lock.json")))return ve.set(n,"npm"),"npm"}return null},Se=(e=process.cwd(),t=!0)=>Le(e,t)||(De("pnpm")?"pnpm":De("yarn")?"yarn":"npm"),$e={"de-AT":"/de-at/","en-US":"/en/","es-ES":"/es/","fr-FR":"/fr/","pl-PL":"/pl/","pt-BR":"/br/","ru-RU":"/ru/","sk-SK":"/sk/","uk-UA":"/uk/","vi-VN":"/vi/","jp-JP":"/jp/","zh-CN":"/zh/","zh-TW":"/zh-tw/"},we=Object.keys($e),be=Object.fromEntries(we.map((e=>[$e[e],e])));class ke{constructor(e=""){this.name=e,this.currentInstance=u.default()}create(t){return this.currentInstance=u.default({prefixText:e.chalk.blue(`${this.name}: `)||"",text:t}),this.currentInstance}update(e){this.currentInstance?this.currentInstance.text=e:this.create(e)}load(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).start()}info(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).info()}succeed(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).succeed()}warn(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).warn()}error(e=""){return(!e&&this.currentInstance?this.currentInstance:this.create(e)).fail()}}const Te={},He=(e="",t=!1)=>e in $e?$e[e]:(t&&console.warn(`${e} has no path config, and will return '/' instead.`),"/"),xe=e=>{const t=e.siteData.locales;return t?.["/"]&&t["/"]?.lang?t["/"].lang:e.siteData.lang},Oe=e=>He(xe(e),e.env.isDebug),ze=e=>Array.from(new Set([...Object.keys(e.siteData.locales)])),Ae=e=>" "===e||"\n"===e||"\r"===e||"\t"===e;class je{consume(e,t){return"<"===e?(t(new Ce),""):e}}class Ce{constructor(){this.nameBuffer=""}consume(e,t){if(0===this.nameBuffer.length){if(Ae(e))return t(new je),"<"+e;if("/"===e)return""}return Ae(e)?(t(new Ie(1)),""):"<"===e?(this.nameBuffer+="&lt;",""):">"===e?(t(new je),""):"-"===e&&"!-"===this.nameBuffer?(t(new Pe),""):(this.nameBuffer+=e,"")}}class Ie{constructor(e){this.mode=e}consume(e,t){return">"===e?t(new je):(e=>'"'===e||"'"===e)(e)&&t(new Je(this.mode,e)),1===this.mode?"":"<"===e?"&lt;":e}}class Je{constructor(e,t){this.mode=e,this.quoteCharacter=t}consume(e,t){return e===this.quoteCharacter&&t(new Ie(this.mode)),1===this.mode?"":"<"===e?"&lt;":">"===e?"&gt;":e}}class Pe{constructor(){this.consecutiveHyphens=0}consume(e,t){return">"===e&&this.consecutiveHyphens>=2?t(new je):"-"===e?this.consecutiveHyphens++:this.consecutiveHyphens=0,""}}class Fe{constructor(){this.state=new je,this.transitionFunction=e=>{this.state=e}}consume(e){let t="";for(const n of e)t+=this.state.consume(n,this.transitionFunction);return t}}exports.InCommentState=Pe,exports.InPlaintextState=je,exports.InQuotedStringInTagState=Je,exports.InTagNameState=Ce,exports.InTagState=Ie,exports.Logger=ke,exports.StateMachine=Fe,exports.addCustomElement=({app:e,config:t},n)=>{const r="string"==typeof n?[n]:n,{bundler:s}=e.options;if(s.name.endsWith("vite")){const n=t;n.vuePluginOptions||(n.vuePluginOptions={}),n.vuePluginOptions.template||(n.vuePluginOptions.template={}),n.vuePluginOptions.template.compilerOptions||(n.vuePluginOptions.template.compilerOptions={});const{isCustomElement:s=(t=>m(t,e.env.isDebug))}=n.vuePluginOptions.template.compilerOptions;n.vuePluginOptions.template.compilerOptions.isCustomElement=e=>!!r.includes(e)||s(e)}if(s.name.endsWith("webpack")){const n=t;n.vue||(n.vue={}),n.vue.compilerOptions||(n.vue.compilerOptions={});const{isCustomElement:s=(t=>m(t,e.env.isDebug))}=n.vue.compilerOptions;n.vue.compilerOptions.isCustomElement=e=>!!r.includes(e)||s(e)}},exports.addViteOptimizeDepsExclude=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=M(e.viteOptions,{optimizeDeps:{exclude:"string"==typeof n?[n]:n}}),e.viteOptions.optimizeDeps.exclude=Array.from(new Set(e.viteOptions.optimizeDeps.exclude))}},exports.addViteOptimizeDepsInclude=({app:e,config:t},n)=>{const{bundler:r}=e.options,s=Se();if(r.name.endsWith("vite")&&("OPTIMIZE_DEPS"in process.env?Boolean(process.env.OPTIMIZE_DEPS):"pnpm"!==s)){const e=t;e.viteOptions=M(e.viteOptions,{optimizeDeps:{include:"string"==typeof n?[n]:n}}),e.viteOptions.optimizeDeps.include=Array.from(new Set(e.viteOptions.optimizeDeps.include))}},exports.addViteSsrExternal=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=M(e.viteOptions,{ssr:{external:"string"==typeof n?[n]:n}})}},exports.addViteSsrNoExternal=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=M(e.viteOptions,{ssr:{noExternal:"string"==typeof n?[n]:n}})}},exports.checkLang=(e="")=>we.includes(e),exports.compareDate=(e,t)=>{const n=Ye("number"==typeof e?new Date(e):e),r=Ye("number"==typeof t?new Date(t):t);return n&&n.value?r&&r.value?r.value.getTime()-n.value.getTime():-1:1},exports.dayjs=Me,exports.deepAssign=Y,exports.deepAssignReverse=y,exports.detectPackageManager=Se,exports.encodeCDATA=e=>e.replace(/]]>/g,"]]]]><![CDATA[>"),exports.encodeXML=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),exports.getAuthor=(e,t=!1)=>e?Array.isArray(e)?e.map((e=>"string"==typeof e?{name:e}:e)):"string"==typeof e?[{name:e}]:"object"==typeof e&&e.name?[e]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${t?"":"| false"} | undefined\`, but got`,e),[]):[],exports.getCategory=e=>{if(e){if(Array.isArray(e))return e;if("string"==typeof e)return[e];console.error("Expect 'category' to be `string[] | string | undefined`, but got",e)}return[]},exports.getDate=Ye,exports.getLocalePaths=ze,exports.getLocales=({app:e,name:t,default:n,config:r={}})=>{const s=Oe(e),i=new ke(t);return Object.fromEntries([...ze(e).filter((e=>"/"!==e)).map((t=>{const a=n[t]||("/"===He(e.options.locales[t].lang)?null:n[He(e.options.locales[t].lang)]);return a||i.warn(`Locale ${t} is missing it's i18n config`),[t,Y({},a||n[s]||{},r[t]||{})]})),["/",Y({},n[s],r["/"]||r[s]||{})]])},exports.getRootLang=xe,exports.getRootLangPath=Oe,exports.getTag=e=>{if(e){if(Array.isArray(e))return e;if("string"==typeof e)return[e];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",e)}return[]},exports.getTypeofLockFile=Le,exports.hasGlobalInstallation=De,exports.injectLocalizedDate=(e,t)=>{if(!e.data.localizedDate)if(e.frontmatter.date){const n=Ye(e.frontmatter.date,t)?.value;n&&(e.data.localizedDate=ye(n,{lang:e.lang,type:"date"}))}else e.data.git?.createdTime&&(e.data.localizedDate=ye(new Date(e.data.git?.createdTime),{lang:e.lang,type:"date"}))},exports.isAbsoluteUrl=e=>e.startsWith("/"),exports.isUrl=e=>{if("string"!=typeof e||""===e)return!1;const t=/^(?:\w+:)?\/\/(\S+)$/u.exec(e);if(!t)return!1;const n=t[1];return!!n&&(/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(n)||/^[^\s.]+\.\S{2,}$/u.test(n))},exports.lang2Path=He,exports.mergeViteConfig=M,exports.noopModule="vuepress-shared/lib/client/noopModule.js",exports.path2Lang=(e="",t=!1)=>e in be?be[e]:(t&&console.warn(`${e} isn’t assign with a lang, and will return 'en-US' instead.`),"en-US"),exports.removeGitPlugin=e=>{const t=e.pluginApi.plugins.findIndex((e=>"@vuepress/plugin-git"===e.name));-1!==t&&e.pluginApi.plugins.splice(t,1)},exports.showLangError=(e,t="")=>{Te[e]||(console.warn(`${e} locates config is missing, and will return 'en-US' instead.\n${"root"===e?"":`You can contribute to https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/packages/${t||"<YOUR PLUGIN>"}/src/node/locales.ts in this repository.\n`}Note: This warning will be shown only once`),Te[e]=!0)},exports.stripTags=(e="")=>e?(new Fe).consume(e):"",exports.tagHint=m,exports.timeTransformer=ye,exports.useCustomDevServer=(e,n,r,s,i="The server encounted an error")=>{const{base:a,bundler:o}=n.options;if(n.env.isDev&&o.name.endsWith("vite")){const n=e,o=(e,t)=>{s(e).then((e=>{t.statusCode=200,t.end(e)})).catch((()=>{t.statusCode=500,t.end(i)}))},u={name:`virtual:devserver-mock/${r}`,configureServer:({middlewares:e})=>{e.use(`${t.removeLeadingSlash(a)}${r}`,o)}};n.viteOptions=M(n.viteOptions,{plugins:[u]})}if(n.env.isDev&&o.name.endsWith("webpack")){const n=e,{devServerSetupMiddlewares:o}=n;n.devServerSetupMiddlewares=(e,n)=>(n.app?.get(`${t.removeEndingSlash(a)}${r}`,((e,t)=>{s(e).then((e=>t.status(200).send(e))).catch((()=>t.status(500).send(i)))})),o?o(e,n):e)}},exports.useGitPlugin=(e,t)=>{e.pluginApi.plugins.every((e=>"@vuepress/plugin-git"!==e.name))&&t&&e.use(a.gitPlugin(t))};
//# sourceMappingURL=index.js.map
{
"name": "vuepress-shared",
"version": "2.0.0-beta.84",
"version": "2.0.0-beta.85",
"description": "Shared files for vuepress-theme-hope",

@@ -35,3 +35,2 @@ "keywords": [

"@vuepress/plugin-git": "2.0.0-beta.48",
"@vuepress/plugin-theme-data": "2.0.0-beta.48",
"@vuepress/shared": "2.0.0-beta.48",

@@ -43,3 +42,3 @@ "@vuepress/utils": "2.0.0-beta.48",

"vue": "^3.2.37",
"vue-router": "^4.0.16"
"vue-router": "^4.1.1"
},

@@ -52,3 +51,3 @@ "devDependencies": {

"rimraf": "3.0.2",
"vite": "2.9.12"
"vite": "2.9.14"
},

@@ -55,0 +54,0 @@ "publishConfig": {

@@ -1,3 +0,3 @@

export const checkIsChromeMobile = (ua: string): boolean =>
/\b(?:crmo|crios)\/([\w.]+)/i.test(ua);
export const checkIsMobile = (ua: string): boolean =>
/\b(?:Android|iPhone)/i.test(ua);

@@ -4,0 +4,0 @@ export const checkIsChromeWebView = (ua: string): boolean =>

@@ -15,2 +15,3 @@ /* eslint-disable @typescript-eslint/naming-convention */

"vi-VN": "/vi/",
"jp-JP": "/jp/",
"zh-CN": "/zh/",

@@ -17,0 +18,0 @@ "zh-TW": "/zh-tw/",

@@ -109,3 +109,11 @@ import { lang2PathConfig, path2langConfig, supportedLangs } from "./config";

.map<[string, T]>((localePath) => {
if (!defaultLocalesConfig[localePath])
const defaultLocaleData =
defaultLocalesConfig[localePath] ||
(lang2Path(app.options.locales[localePath].lang) === "/"
? null
: defaultLocalesConfig[
lang2Path(app.options.locales[localePath].lang)
]);
if (!defaultLocaleData)
logger.warn(`Locale ${localePath} is missing it's i18n config`);

@@ -117,5 +125,3 @@

{},
defaultLocalesConfig[localePath] ||
defaultLocalesConfig[rootPath] ||
{},
defaultLocaleData || defaultLocalesConfig[rootPath] || {},
userLocalesConfig[localePath] || {}

@@ -122,0 +128,0 @@ ),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc