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
239
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.101 to 2.0.0-beta.102

2

lib/client/index.js

@@ -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";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),p=t=>/version\/([\w.]+) .*(mobile ?safari|safari)/i.test(t),$=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)$/,""),b=(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 S{constructor(){this.messageElements={};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"),r=Date.now();return n.className="message move-in",n.innerHTML=t,this.containerElement.appendChild(n),this.messageElements[r]=n,e>0&&setTimeout((()=>{this.close(r)}),e),r}close(t){if(t){const e=this.messageElements[t];e.className=e.className.replace("move-in",""),e.className+="move-out",e.addEventListener("animationend",(()=>{e.remove(),delete this.messageElements[t]}))}else Object.keys(this.messageElements).forEach((t=>this.close(Number(t))))}destory(){document.body.removeChild(this.containerElement)}}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})},T=(t,...e)=>{if(0===e.length)return t;const n=e.shift()||{};return Object.keys(n).forEach((e=>{"object"!=typeof t[e]||Array.isArray(t[e])||"object"!=typeof n[e]||Array.isArray(n[e])?"object"==typeof n[e]?Array.isArray(n[e])?t[e]=[...n[e]]:t[e]={...n[e]}:t[e]=n[e]:T(t[e],n[e])})),T(t,...e)};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var L,A={exports:{}},H=A.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+)?$/,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,$={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]=$;var D=function(t){return t instanceof b},_=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 b(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 b=function(){function $(t){this.$L=_(t.locale,null,!0),this.parse(t)}var v=$.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)},p=this.$W,$=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,$):l(0,$+1);case u:var g=this.$locale().weekStart||0,M=(p<g?p+7:p)-g;return l(r?v-M:v+(6-M),$);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 p=this.clone().set(h,1);p.$d[l](m),p.init(),this.$d=p.set(h,Math.min(this.$D,p.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),p=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 p(1);if(m===u)return p(7);var $=(h={},h[s]=e,h[o]=n,h[i]=t,h)[m]||1,v=this.$d.getTime()+r*$;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(p,(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,p=w.p(h),$=Y(r),v=($.utcOffset()-this.utcOffset())*e,y=this-$,g=w.m(this,$);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)[p]||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()},$}(),S=b.prototype;return Y.prototype=S,[["$ms",r],["$s",i],["$m",s],["$H",o],["$W",a],["$M",c],["$y",d],["$D",h]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),Y.extend=function(t,e){return t.$i||(t(e,b,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:{}},E=C.exports=(L={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=L,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]||L[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:{}},N=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)}},U={exports:{}},k=U.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",p=+e;return(i.utc(m).valueOf()-(p-=p%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}}}(),j={exports:{}},I=j.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(E),H.extend(N),H.extend(I),H.extend(k);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?"下午":"晚上"}},Z={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",Z),H.extend(N),H.extend(I),H.extend(k);const F=(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},J=(t,e)=>{const n=F("number"==typeof t?new Date(t):t),r=F("number"==typeof e?new Date(e):e);return n&&n.value?r&&r.value?r.value.getTime()-n.value.getTime():-1:1},V=(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),[]):[],B=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[]},q=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[]},P=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))},Q=t=>t.startsWith("/");export{a as IconBase,S as Message,u as RenderDefault,l as checkIsChromeWebView,g as checkIsIOS,M as checkIsMacOS,h as checkIsMobile,p as checkIsSafari,m as checkIsSafariMobile,y as checkIsWindows,v as checkIsiPad,$ as checkIsiPhone,J as compareDate,T as deepAssign,D as generateIndexfromHash,V as getAuthor,B as getCategory,F as getDate,Y as getHash,q as getTag,Q as isAbsoluteUrl,b as isActiveLink,c as isComponentRegistered,P as isUrl,w as normalizePath,O as randomSortArray,x as resolveRouteWithRedirect,f as useLocaleConfig,d as usePageTitle};
import{h as mt,getCurrentInstance as pt,camelize as tt,capitalize as vt,computed as et}from"vue";import{useRouteLocale as $t,usePageData as yt}from"@vuepress/client";const nt=({name:t="",color:s="currentColor"},{slots:e})=>{var r;return mt("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${t}-icon`],viewBox:"0 0 1024 1024",fill:s,"aria-label":`${t} icon`},(r=e.default)==null?void 0:r.call(e))};nt.displayName="IconBase";const gt=(t,{slots:s})=>{var e;return((e=s.default)==null?void 0:e.call(s))||null},Dt=t=>{const s=pt();return typeof(s==null?void 0:s.appContext.components)=="object"&&(t in s.appContext.components||tt(t)in s.appContext.components||vt(tt(t))in s.appContext.components)},Mt=t=>{const s=$t();return et(()=>t[s.value])},_t=()=>et(()=>yt().value.title),wt=t=>/\b(?:Android|iPhone)/i.test(t),Yt=t=>/ wv\).+(chrome)\/([\w.]+)/i.test(t),Et=t=>/version\/([\w.]+) .*mobile\/\w+ (safari)/i.test(t),bt=t=>/version\/([\w.]+) .*(mobile ?safari|safari)/i.test(t),St=t=>/\((ip(?:hone|od)[\w ]*);/i.test(t),xt=t=>[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some(s=>s.test(t)),Ot=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(s=>s.test(t)),Tt=t=>[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i].some(s=>s.test(t)),Ct=t=>[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i].some(s=>s.test(t)),Lt=(t,s)=>{let e=1;for(let r=0;r<t.length;r++)e+=t.charCodeAt(r),e+=e<<10,e^=e>>6;return e+=e<<3,e^=e>>11,e%s},rt=/#.*$/u,it=t=>{const s=rt.exec(t);return s?s[0]:""},G=t=>decodeURI(t).replace(rt,"").replace(/(index)?\.(md|html)$/,""),At=(t,s)=>{if(s===void 0)return!1;const e=G(t.path),r=G(s),w=it(s);return w?w===t.hash&&(!r||e===r):e===r};class Ht{constructor(){this.messageElements={};const s="message-container",e=document.getElementById(s);e?this.containerElement=e:(this.containerElement=document.createElement("div"),this.containerElement.id=s,document.body.appendChild(this.containerElement))}pop(s,e=2e3){const r=document.createElement("div"),w=Date.now();return r.className="message move-in",r.innerHTML=s,this.containerElement.appendChild(r),this.messageElements[w]=r,e>0&&setTimeout(()=>{this.close(w)},e),w}close(s){if(s){const e=this.messageElements[s];e.className=e.className.replace("move-in",""),e.className+="move-out",e.addEventListener("animationend",()=>{e.remove(),delete this.messageElements[s]})}else Object.keys(this.messageElements).forEach(e=>this.close(Number(e)))}destory(){document.body.removeChild(this.containerElement)}}const Ft=(t,s=2)=>{const{length:e}=t;for(;s-- >0;)t.forEach((r,w)=>{const _=Math.floor(Math.random()*e);t[w]=t[_],t[_]=r});return t};process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const kt=t=>typeof t=="function",zt=t=>typeof t=="string",st=(t,...s)=>{const e=t.resolve(...s),r=e.matched[e.matched.length-1];if(!(r!=null&&r.redirect))return e;const{redirect:w}=r,_=kt(w)?w(e):w,g=zt(_)?{path:_}:_;return st(t,{hash:e.hash,query:e.query,params:e.params,...g})},Q=(t,...s)=>{if(s.length===0)return t;const e=s.shift()||{};return Object.keys(e).forEach(r=>{typeof t[r]=="object"&&!Array.isArray(t[r])&&typeof e[r]=="object"&&!Array.isArray(e[r])?Q(t[r],e[r]):typeof e[r]=="object"?Array.isArray(e[r])?t[r]=[...e[r]]:t[r]={...e[r]}:t[r]=e[r]}),Q(t,...s)};var V=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ot={exports:{}};(function(t,s){(function(e,r){t.exports=r()})(V,function(){var e=1e3,r=6e4,w=36e5,_="millisecond",g="second",E="minute",h="hour",D="day",C="week",m="month",a="quarter",v="year",d="date",n="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,b={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("_")},S=function($,u,i){var f=String($);return!f||f.length>=u?$:""+Array(u+1-f.length).join(i)+$},k={s:S,z:function($){var u=-$.utcOffset(),i=Math.abs(u),f=Math.floor(i/60),o=i%60;return(u<=0?"+":"-")+S(f,2,"0")+":"+S(o,2,"0")},m:function $(u,i){if(u.date()<i.date())return-$(i,u);var f=12*(i.year()-u.year())+(i.month()-u.month()),o=u.clone().add(f,m),p=i-o<0,l=u.clone().add(f+(p?-1:1),m);return+(-(f+(i-o)/(p?o-l:l-o))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:m,y:v,w:C,d:D,D:d,h,m:E,s:g,ms:_,Q:a}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},O="en",A={};A[O]=b;var H=function($){return $ instanceof j},z=function $(u,i,f){var o;if(!u)return O;if(typeof u=="string"){var p=u.toLowerCase();A[p]&&(o=p),i&&(A[p]=i,o=p);var l=u.split("-");if(!o&&l.length>1)return $(l[0])}else{var Y=u.name;A[Y]=u,o=Y}return!f&&o&&(O=o),o||!f&&O},M=function($,u){if(H($))return $.clone();var i=typeof u=="object"?u:{};return i.date=$,i.args=arguments,new j(i)},y=k;y.l=z,y.i=H,y.w=function($,u){return M($,{locale:u.$L,utc:u.$u,x:u.$x,$offset:u.$offset})};var j=function(){function $(i){this.$L=z(i.locale,null,!0),this.parse(i)}var u=$.prototype;return u.parse=function(i){this.$d=function(f){var o=f.date,p=f.utc;if(o===null)return new Date(NaN);if(y.u(o))return new Date;if(o instanceof Date)return new Date(o);if(typeof o=="string"&&!/Z$/i.test(o)){var l=o.match(c);if(l){var Y=l[2]-1||0,L=(l[7]||"0").substring(0,3);return p?new Date(Date.UTC(l[1],Y,l[3]||1,l[4]||0,l[5]||0,l[6]||0,L)):new Date(l[1],Y,l[3]||1,l[4]||0,l[5]||0,l[6]||0,L)}}return new Date(o)}(i),this.$x=i.x||{},this.init()},u.init=function(){var i=this.$d;this.$y=i.getFullYear(),this.$M=i.getMonth(),this.$D=i.getDate(),this.$W=i.getDay(),this.$H=i.getHours(),this.$m=i.getMinutes(),this.$s=i.getSeconds(),this.$ms=i.getMilliseconds()},u.$utils=function(){return y},u.isValid=function(){return this.$d.toString()!==n},u.isSame=function(i,f){var o=M(i);return this.startOf(f)<=o&&o<=this.endOf(f)},u.isAfter=function(i,f){return M(i)<this.startOf(f)},u.isBefore=function(i,f){return this.endOf(f)<M(i)},u.$g=function(i,f,o){return y.u(i)?this[f]:this.set(o,i)},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this.$d.getTime()},u.startOf=function(i,f){var o=this,p=!!y.u(f)||f,l=y.p(i),Y=function(Z,I){var B=y.w(o.$u?Date.UTC(o.$y,I,Z):new Date(o.$y,I,Z),o);return p?B:B.endOf(D)},L=function(Z,I){return y.w(o.toDate()[Z].apply(o.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(I)),o)},T=this.$W,F=this.$M,W=this.$D,N="set"+(this.$u?"UTC":"");switch(l){case v:return p?Y(1,0):Y(31,11);case m:return p?Y(1,F):Y(0,F+1);case C:var P=this.$locale().weekStart||0,J=(T<P?T+7:T)-P;return Y(p?W-J:W+(6-J),F);case D:case d:return L(N+"Hours",0);case h:return L(N+"Minutes",1);case E:return L(N+"Seconds",2);case g:return L(N+"Milliseconds",3);default:return this.clone()}},u.endOf=function(i){return this.startOf(i,!1)},u.$set=function(i,f){var o,p=y.p(i),l="set"+(this.$u?"UTC":""),Y=(o={},o[D]=l+"Date",o[d]=l+"Date",o[m]=l+"Month",o[v]=l+"FullYear",o[h]=l+"Hours",o[E]=l+"Minutes",o[g]=l+"Seconds",o[_]=l+"Milliseconds",o)[p],L=p===D?this.$D+(f-this.$W):f;if(p===m||p===v){var T=this.clone().set(d,1);T.$d[Y](L),T.init(),this.$d=T.set(d,Math.min(this.$D,T.daysInMonth())).$d}else Y&&this.$d[Y](L);return this.init(),this},u.set=function(i,f){return this.clone().$set(i,f)},u.get=function(i){return this[y.p(i)]()},u.add=function(i,f){var o,p=this;i=Number(i);var l=y.p(f),Y=function(F){var W=M(p);return y.w(W.date(W.date()+Math.round(F*i)),p)};if(l===m)return this.set(m,this.$M+i);if(l===v)return this.set(v,this.$y+i);if(l===D)return Y(1);if(l===C)return Y(7);var L=(o={},o[E]=r,o[h]=w,o[g]=e,o)[l]||1,T=this.$d.getTime()+i*L;return y.w(T,this)},u.subtract=function(i,f){return this.add(-1*i,f)},u.format=function(i){var f=this,o=this.$locale();if(!this.isValid())return o.invalidDate||n;var p=i||"YYYY-MM-DDTHH:mm:ssZ",l=y.z(this),Y=this.$H,L=this.$m,T=this.$M,F=o.weekdays,W=o.months,N=function(I,B,q,R){return I&&(I[B]||I(f,p))||q[B].slice(0,R)},P=function(I){return y.s(Y%12||12,I,"0")},J=o.meridiem||function(I,B,q){var R=I<12?"AM":"PM";return q?R.toLowerCase():R},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:T+1,MM:y.s(T+1,2,"0"),MMM:N(o.monthsShort,T,W,3),MMMM:N(W,T),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:N(o.weekdaysMin,this.$W,F,2),ddd:N(o.weekdaysShort,this.$W,F,3),dddd:F[this.$W],H:String(Y),HH:y.s(Y,2,"0"),h:P(1),hh:P(2),a:J(Y,L,!0),A:J(Y,L,!1),m:String(L),mm:y.s(L,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:l};return p.replace(x,function(I,B){return B||Z[I]||l.replace(":","")})},u.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},u.diff=function(i,f,o){var p,l=y.p(f),Y=M(i),L=(Y.utcOffset()-this.utcOffset())*r,T=this-Y,F=y.m(this,Y);return F=(p={},p[v]=F/12,p[m]=F,p[a]=F/3,p[C]=(T-L)/6048e5,p[D]=(T-L)/864e5,p[h]=T/w,p[E]=T/r,p[g]=T/e,p)[l]||T,o?F:y.a(F)},u.daysInMonth=function(){return this.endOf(m).$D},u.$locale=function(){return A[this.$L]},u.locale=function(i,f){if(!i)return this.$L;var o=this.clone(),p=z(i,f,!0);return p&&(o.$L=p),o},u.clone=function(){return y.w(this.$d,this)},u.toDate=function(){return new Date(this.valueOf())},u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toISOString=function(){return this.$d.toISOString()},u.toString=function(){return this.$d.toUTCString()},$}(),X=j.prototype;return M.prototype=X,[["$ms",_],["$s",g],["$m",E],["$H",h],["$W",D],["$M",m],["$y",v],["$D",d]].forEach(function($){X[$[1]]=function(u){return this.$g(u,$[0],$[1])}}),M.extend=function($,u){return $.$i||($(u,j,M),$.$i=!0),M},M.locale=z,M.isDayjs=H,M.unix=function($){return M(1e3*$)},M.en=A[O],M.Ls=A,M.p={},M})})(ot);var U=ot.exports,ut={exports:{}};(function(t,s){(function(e,r){t.exports=r()})(V,function(){var e={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"};return function(r,w,_){var g=w.prototype,E=g.format;_.en.formats=e,g.format=function(h){h===void 0&&(h="YYYY-MM-DDTHH:mm:ssZ");var D=this.$locale().formats,C=function(m,a){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(v,d,n){var c=n&&n.toUpperCase();return d||a[n]||e[n]||a[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,b,S){return b||S.slice(1)})})}(h,D===void 0?{}:D);return E.call(this,C)}}})})(ut);var It=ut.exports,at={exports:{}};(function(t,s){(function(e,r){t.exports=r()})(V,function(){return function(e,r,w){var _=r.prototype,g=function(m){var a,v=m.date,d=m.utc,n={};if(!((a=v)instanceof Date)&&!(a instanceof Array)&&a instanceof Object){if(!Object.keys(v).length)return new Date;var c=d?w.utc():w();Object.keys(v).forEach(function(z){var M,y;n[M=z,y=_.$utils().p(M),y==="date"?"day":y]=v[z]});var x=n.day||(n.year||n.month>=0?1:c.date()),b=n.year||c.year(),S=n.month>=0?n.month:n.year||n.day?0:c.month(),k=n.hour||0,O=n.minute||0,A=n.second||0,H=n.millisecond||0;return d?new Date(Date.UTC(b,S,x,k,O,A,H)):new Date(b,S,x,k,O,A,H)}return v},E=_.parse;_.parse=function(m){m.date=g.bind(this)(m),E.bind(this)(m)};var h=_.set,D=_.add,C=function(m,a,v,d){if(d===void 0&&(d=1),a instanceof Object){var n=Object.keys(a),c=this;return n.forEach(function(x){c=m.bind(c)(a[x]*d,x)}),c}return m.bind(this)(a*d,v)};_.set=function(m,a){return a=a===void 0?m:a,C.bind(this)(function(v,d){return h.bind(this)(d,v)},a,m)},_.add=function(m,a){return C.bind(this)(D,m,a)},_.subtract=function(m,a){return C.bind(this)(D,m,a,-1)}}})})(at);var ct=at.exports,ft={exports:{}};(function(t,s){(function(e,r){t.exports=r()})(V,function(){var e={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(w,_,g){var E,h=function(a,v,d){d===void 0&&(d={});var n=new Date(a),c=function(x,b){b===void 0&&(b={});var S=b.timeZoneName||"short",k=x+"|"+S,O=r[k];return O||(O=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:x,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:S}),r[k]=O),O}(v,d);return c.formatToParts(n)},D=function(a,v){for(var d=h(a,v),n=[],c=0;c<d.length;c+=1){var x=d[c],b=x.type,S=x.value,k=e[b];k>=0&&(n[k]=parseInt(S,10))}var O=n[3],A=O===24?0:O,H=n[0]+"-"+n[1]+"-"+n[2]+" "+A+":"+n[4]+":"+n[5]+":000",z=+a;return(g.utc(H).valueOf()-(z-=z%1e3))/6e4},C=_.prototype;C.tz=function(a,v){a===void 0&&(a=E);var d=this.utcOffset(),n=this.toDate(),c=n.toLocaleString("en-US",{timeZone:a}),x=Math.round((n-new Date(c))/1e3/60),b=g(c).$set("millisecond",this.$ms).utcOffset(15*-Math.round(n.getTimezoneOffset()/15)-x,!0);if(v){var S=b.utcOffset();b=b.add(d-S,"minute")}return b.$x.$timezone=a,b},C.offsetName=function(a){var v=this.$x.$timezone||g.tz.guess(),d=h(this.valueOf(),v,{timeZoneName:a}).find(function(n){return n.type.toLowerCase()==="timezonename"});return d&&d.value};var m=C.startOf;C.startOf=function(a,v){if(!this.$x||!this.$x.$timezone)return m.call(this,a,v);var d=g(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return m.call(d,a,v).tz(this.$x.$timezone,!0)},g.tz=function(a,v,d){var n=d&&v,c=d||v||E,x=D(+g(),c);if(typeof a!="string")return g(a).tz(c);var b=function(A,H,z){var M=A-60*H*1e3,y=D(M,z);if(H===y)return[M,H];var j=D(M-=60*(y-H)*1e3,z);return y===j?[M,y]:[A-60*Math.min(y,j)*1e3,Math.max(y,j)]}(g.utc(a,n).valueOf(),x,c),S=b[0],k=b[1],O=g(S).utcOffset(k);return O.$x.$timezone=c,O},g.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},g.tz.setDefault=function(a){E=a}}})})(ft);var ht=ft.exports,dt={exports:{}};(function(t,s){(function(e,r){t.exports=r()})(V,function(){var e="minute",r=/[+-]\d\d(?::?\d\d)?/g,w=/([+-]|\d\d)/g;return function(_,g,E){var h=g.prototype;E.utc=function(n){var c={date:n,utc:!0,args:arguments};return new g(c)},h.utc=function(n){var c=E(this.toDate(),{locale:this.$L,utc:!0});return n?c.add(this.utcOffset(),e):c},h.local=function(){return E(this.toDate(),{locale:this.$L,utc:!1})};var D=h.parse;h.parse=function(n){n.utc&&(this.$u=!0),this.$utils().u(n.$offset)||(this.$offset=n.$offset),D.call(this,n)};var C=h.init;h.init=function(){if(this.$u){var n=this.$d;this.$y=n.getUTCFullYear(),this.$M=n.getUTCMonth(),this.$D=n.getUTCDate(),this.$W=n.getUTCDay(),this.$H=n.getUTCHours(),this.$m=n.getUTCMinutes(),this.$s=n.getUTCSeconds(),this.$ms=n.getUTCMilliseconds()}else C.call(this)};var m=h.utcOffset;h.utcOffset=function(n,c){var x=this.$utils().u;if(x(n))return this.$u?0:x(this.$offset)?m.call(this):this.$offset;if(typeof n=="string"&&(n=function(O){O===void 0&&(O="");var A=O.match(r);if(!A)return null;var H=(""+A[0]).match(w)||["-",0,0],z=H[0],M=60*+H[1]+ +H[2];return M===0?0:z==="+"?M:-M}(n),n===null))return this;var b=Math.abs(n)<=16?60*n:n,S=this;if(c)return S.$offset=b,S.$u=n===0,S;if(n!==0){var k=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(S=this.local().add(b+k,e)).$offset=b,S.$x.$localOffset=k}else S=this.utc();return S};var a=h.format;h.format=function(n){var c=n||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return a.call(this,c)},h.valueOf=function(){var n=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*n},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var v=h.toDate;h.toDate=function(n){return n==="s"&&this.$offset?E(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var d=h.diff;h.diff=function(n,c,x){if(n&&this.$u===n.$u)return d.call(this,n,c,x);var b=this.local(),S=E(n).local();return d.call(b,S,c,x)}}})})(dt);var lt=dt.exports;U.extend(It),U.extend(ct),U.extend(lt),U.extend(ht);const Ut={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:(t,s)=>{switch(s){case"W":return`${t}\u5468`;default:return`${t}\u65E5`}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:(t,s)=>{const e=t*100+s;return e<600?"\u51CC\u6668":e<900?"\u65E9\u4E0A":e<1100?"\u4E0A\u5348":e<1300?"\u4E2D\u5348":e<1800?"\u4E0B\u5348":"\u665A\u4E0A"}},Nt={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("_")};U.locale("zh",Ut),U.locale("en",Nt),U.extend(ct),U.extend(lt),U.extend(ht);const K=(t,s)=>{if(t){if(U(t instanceof Date?t:t.trim()).isValid()){const r=s?U(t).tz(s):U(t),w=r.year(),_=r.month()+1,g=r.date(),E=r.hour(),h=r.minute(),D=r.second(),C=r.millisecond(),m=E===0&&h===0&&D===0&&C===0;return{value:r.toDate(),info:{year:w,month:_,day:g,...m?{}:{hour:E,minute:h,second:D}},type:m?"date":"full"}}const e=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(t.trim());if(e){const[,r,w,_,g,E,h]=e,D=c=>typeof c>"u"?void 0:Number(c),C=c=>c&&c<100?c+2e3:c,m=c=>g&&E&&!h?0:c,a={year:C(D(r)),month:D(w),day:D(_),hour:D(g),minute:D(E),second:m(D(h))},v=r===void 0&&w===void 0&&_===void 0,d=g===void 0&&E===void 0&&h===void 0,n=U({...a,month:a.month-1}).toDate();return{value:v?void 0:n,info:d?{year:a.year,month:a.month,day:a.day}:v?{hour:a.hour,minute:a.minute,second:a.second}:a,type:v?"time":d?"date":"full"}}}return null},jt=(t,s)=>{const e=K(typeof t=="number"?new Date(t):t),r=K(typeof s=="number"?new Date(s):s);return!e||!e.value?1:!r||!r.value?-1:r.value.getTime()-e.value.getTime()},Wt=(t,s=!1)=>t?Array.isArray(t)?t.map(e=>typeof e=="string"?{name:e}:e):typeof t=="string"?[{name:t}]:typeof t=="object"&&t.name?[t]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${s?"":"| false"} | undefined\`, but got`,t),[]):[],Bt=t=>{if(t){if(Array.isArray(t))return t;if(typeof t=="string")return[t];console.error("Expect 'category' to be `string[] | string | undefined`, but got",t)}return[]},Zt=t=>{if(t){if(Array.isArray(t))return t;if(typeof t=="string")return[t];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",t)}return[]},Pt=t=>{if(typeof t!="string"||t==="")return!1;const s=/^(?:\w+:)?\/\/(\S+)$/u.exec(t);if(!s)return!1;const e=s[1];return e?/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(e)||/^[^\s.]+\.\S{2,}$/u.test(e):!1},Jt=t=>t.startsWith("/");export{nt as IconBase,Ht as Message,gt as RenderDefault,Yt as checkIsChromeWebView,Tt as checkIsIOS,Ct as checkIsMacOS,wt as checkIsMobile,bt as checkIsSafari,Et as checkIsSafariMobile,Ot as checkIsWindows,xt as checkIsiPad,St as checkIsiPhone,jt as compareDate,Q as deepAssign,Lt as generateIndexfromHash,Wt as getAuthor,Bt as getCategory,K as getDate,it as getHash,Zt as getTag,Jt as isAbsoluteUrl,At as isActiveLink,Dt as isComponentRegistered,Pt as isUrl,G as normalizePath,Ft as randomSortArray,st as resolveRouteWithRedirect,Mt as useLocaleConfig,_t as usePageTitle};
//# sourceMappingURL=index.js.map

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

import{defineComponent as e}from"vue";var r=e({setup:()=>()=>null});export{r as default};
import{defineComponent as o}from"vue";var e=o({setup:()=>()=>null});export{e as default};
//# sourceMappingURL=noopModule.js.map

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

import{chalk as e}from"@vuepress/utils";import{removeEndingSlash as t,removeLeadingSlash as n}from"@vuepress/shared";import{existsSync as r}from"node:fs";import{resolve as i,dirname as s}from"node:path";import{execaSync as a}from"execa";import o from"ora";import{gitPlugin as u}from"@vuepress/plugin-git";const _="vuepress-shared/noopModule",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",m="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",l=(t,n=!1)=>{!n||d.split(",").includes(t)||m.split(",").includes(t)||t!==t.toLowerCase()||t.includes("-")||console.warn(e.yellow("warning: "),`${t} is used and it’s not a standard tag or standard custom element name`)},c=({app:e,config:t},n)=>{const r="string"==typeof n?[n]:n,{bundler:i}=e.options;if(i.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:i=(t=>l(t,e.env.isDebug))}=n.vuePluginOptions.template.compilerOptions;n.vuePluginOptions.template.compilerOptions.isCustomElement=e=>!!(r instanceof RegExp?r.test(e):r.includes(e))||i(e)}if(i.name.endsWith("webpack")){const n=t;n.vue||(n.vue={}),n.vue.compilerOptions||(n.vue.compilerOptions={});const{isCustomElement:i=(t=>l(t,e.env.isDebug))}=n.vue.compilerOptions;n.vue.compilerOptions.isCustomElement=e=>!!(r instanceof RegExp?r.test(e):r.includes(e))||i(e)}},h=e=>"[object Object]"===Object.prototype.toString.call(e);function f({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 p=e=>Array.isArray(e)?e.map(f):Object.keys(e).map((t=>f({find:t,replacement:e[t]}))),M=(e=[],t=[])=>[...p(e),...p(t)],Y=(e,t,n)=>{const r={...e};for(const e in t){const i=t[e];if(null==i)continue;const s=r[e];if(Array.isArray(s)&&Array.isArray(i))r[e]=[...s,...i];else if(h(s)&&h(i))r[e]=Y(s,i,n?`${n}.${e}`:e);else{if(null!=s){if("alias"===e&&("resolve"===n||""===n)){r[e]=M(s,i);continue}if("assetsInclude"===e&&""===n){r[e]=[].concat(s,i);continue}if("noExternal"===e&&!0===s)continue}r[e]=i}}return r},y=(e,t,n=!0)=>Y(e,t,n?"":".");"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",i="second",s="minute",a="hour",o="day",u="week",_="month",d="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+)?$/,f=/\[([^\]]+)]|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("_")},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),i=n%60;return(t<=0?"+":"-")+M(r,2,"0")+":"+M(i,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()),i=t.clone().add(r,_),s=n-i<0,a=t.clone().add(r+(s?-1:1),_);return+(-(r+(n-i)/(s?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:_,y:m,w:u,d:o,D:l,h:a,m:s,s:i,ms:r,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",g={};g[y]=p;var v=function(e){return e instanceof w},D=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var s=t.toLowerCase();g[s]&&(i=s),n&&(g[s]=n,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var o=t.name;g[o]=t,i=o}return!r&&i&&(y=i),i||!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 w(n)},$=Y;$.l=D,$.i=v,$.w=function(e,t){return L(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function p(e){this.$L=D(e.locale,null,!0),this.parse(e)}var M=p.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($.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 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(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 $},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 $.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=!!$.u(t)||t,d=$.p(e),c=function(e,t){var i=$.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(o)},h=function(e,t){return $.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},f=this.$W,p=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(d){case m:return r?c(1,0):c(31,11);case _:return r?c(1,p):c(0,p+1);case u:var y=this.$locale().weekStart||0,g=(f<y?f+7:f)-y;return c(r?M-g:M+(6-g),p);case o:case l:return h(Y+"Hours",0);case a:return h(Y+"Minutes",1);case s:return h(Y+"Seconds",2);case i: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=$.p(e),d="set"+(this.$u?"UTC":""),c=(n={},n[o]=d+"Date",n[l]=d+"Date",n[_]=d+"Month",n[m]=d+"FullYear",n[a]=d+"Hours",n[s]=d+"Minutes",n[i]=d+"Seconds",n[r]=d+"Milliseconds",n)[u],h=u===o?this.$D+(t-this.$W):t;if(u===_||u===m){var f=this.clone().set(l,1);f.$d[c](h),f.init(),this.$d=f.set(l,Math.min(this.$D,f.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[$.p(e)]()},M.add=function(r,d){var l,c=this;r=Number(r);var h=$.p(d),f=function(e){var t=L(c);return $.w(t.date(t.date()+Math.round(e*r)),c)};if(h===_)return this.set(_,this.$M+r);if(h===m)return this.set(m,this.$y+r);if(h===o)return f(1);if(h===u)return f(7);var p=(l={},l[s]=t,l[a]=n,l[i]=e,l)[h]||1,M=this.$d.getTime()+r*p;return $.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",i=$.z(this),s=this.$H,a=this.$m,o=this.$M,u=n.weekdays,_=n.months,d=function(e,n,i,s){return e&&(e[n]||e(t,r))||i[n].slice(0,s)},m=function(e){return $.s(s%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(o+1,2,"0"),MMM:d(n.monthsShort,o,_,3),MMMM:d(_,o),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:d(n.weekdaysMin,this.$W,u,2),ddd:d(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:$.s(s,2,"0"),h:m(1),hh:m(2),a:l(s,a,!0),A:l(s,a,!1),m:String(a),mm:$.s(a,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:i};return r.replace(f,(function(e,t){return t||h[e]||i.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(r,l,c){var h,f=$.p(l),p=L(r),M=(p.utcOffset()-this.utcOffset())*t,Y=this-p,y=$.m(this,p);return y=(h={},h[m]=y/12,h[_]=y,h[d]=y/3,h[u]=(Y-M)/6048e5,h[o]=(Y-M)/864e5,h[a]=Y/n,h[s]=Y/t,h[i]=Y/e,h)[f]||Y,c?y:$.a(y)},M.daysInMonth=function(){return this.endOf(_).$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 $.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()},p}(),S=w.prototype;return L.prototype=S,[["$ms",r],["$s",i],["$m",s],["$H",a],["$W",o],["$M",_],["$y",m],["$D",l]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),L.extend=function(e,t){return e.$i||(e(t,w,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:{}},$=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,i=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 i=r&&r.toUpperCase();return n||t[r]||g[r]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(e,void 0===t?{}:t);return i.call(this,n)}}),w={exports:{}},S=w.exports=function(e,t,n){var r=t.prototype,i=function(e){var t,i=e.date,s=e.utc,a={};if(!((t=i)instanceof Date)&&!(t instanceof Array)&&t instanceof Object){if(!Object.keys(i).length)return new Date;var o=s?n.utc():n();Object.keys(i).forEach((function(e){var t,n;a[(t=e,n=r.$utils().p(t),"date"===n?"day":n)]=i[e]}));var u=a.day||(a.year||a.month>=0?1:o.date()),_=a.year||o.year(),d=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 s?new Date(Date.UTC(_,d,u,m,l,c,h)):new Date(_,d,u,m,l,c,h)}return i},s=r.parse;r.parse=function(e){e.date=i.bind(this)(e),s.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 i=Object.keys(t),s=this;return i.forEach((function(n){s=e.bind(s)(t[n]*r,n)})),s}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,i){var s,a=function(e,n,r){void 0===r&&(r={});var i=new Date(e),s=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=e+"|"+r,s=t[i];return s||(s=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[i]=s),s}(n,r);return s.formatToParts(i)},o=function(t,n){for(var r=a(t,n),s=[],o=0;o<r.length;o+=1){var u=r[o],_=u.type,d=u.value,m=e[_];m>=0&&(s[m]=parseInt(d,10))}var l=s[3],c=24===l?0:l,h=s[0]+"-"+s[1]+"-"+s[2]+" "+c+":"+s[4]+":"+s[5]+":000",f=+t;return(i.utc(h).valueOf()-(f-=f%1e3))/6e4},u=r.prototype;u.tz=function(e,t){void 0===e&&(e=s);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),o=Math.round((r-new Date(a))/1e3/60),u=i(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-o,!0);if(t){var _=u.utcOffset();u=u.add(n-_,"minute")}return u.$x.$timezone=e,u},u.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var _=u.startOf;u.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return _.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return _.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||s,u=o(+i(),a);if("string"!=typeof e)return i(e).tz(a);var _=function(e,t,n){var r=e-60*t*1e3,i=o(r,n);if(t===i)return[r,t];var s=o(r-=60*(i-t)*1e3,n);return i===s?[r,i]:[e-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(e,r).valueOf(),u,a),d=_[0],m=_[1],l=i(d).utcOffset(m);return l.$x.$timezone=a,l},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){s=e}}}(),H={exports:{}},T=H.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,s){var a=i.prototype;s.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=s(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return s(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 _=a.utcOffset;a.utcOffset=function(r,i){var s=this.$utils().u;if(s(r))return this.$u?0:s(this.$offset)?_.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 i=(""+r[0]).match(n)||["-",0,0],s=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===s?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,o=this;if(i)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 d=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.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?s(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(),i=s(e).local();return l.call(r,i,t,n)}}}();const O={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"]},z=(e,t,n)=>{let r=O[n];return Array.isArray(r)&&(r=r[t?0:1]),r.replace("%d",e)},A={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:z,m:z,mm:z,h:z,hh:z,d:z,dd:z,M:z,MM:z,y:z,yy:z}},j={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"]},x=(e,t,n)=>{let r=j[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:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x}},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}º`},W={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")}},N="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),E="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),P=/D MMMM/,Z=(e,t)=>P.test(t)?N[e.month()]:E[e.month()];Z.s=E,Z.f=N;const q={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:Z,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"}},R="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),G="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),V="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),K="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),Q=/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)=>Q.test(t)?R[e.month()]:G[e.month()];ee.s=G,ee.f=R;const te=(e,t)=>Q.test(t)?V[e.month()]:K[e.month()];te.s=K,te.f=V;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),ie=(e,t,n,r)=>{const i=`${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?i+(re(e)?"minúty":"minút"):`${i}minútami`;case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(re(e)?"hodiny":"hodín"):`${i}hodinami`;case"d":return t||r?"deň":"dňom";case"dd":return t||r?i+(re(e)?"dni":"dní"):`${i}dňami`;case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?i+(re(e)?"mesiace":"mesiacov"):`${i}mesiacmi`;case"y":return t||r?"rok":"rokom";case"yy":return t||r?i+(re(e)?"roky":"rokov"):`${i}rokmi`}},se={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:ie,m:ie,mm:ie,h:ie,hh:ie,d:ie,dd:ie,M:ie,MM:ie,y:ie,yy:ie}},ae="січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),oe="січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),ue=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,_e=(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)}`,de=(e,t)=>ue.test(t)?ae[e.month()]:oe[e.month()];de.s=oe,de.f=ae;const me={name:"uk",weekdays:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),weekdaysShort:"ндл_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:de,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekStart:1,relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:_e,mm:_e,h:_e,hh:_e,d:"день",dd:_e,M:"місяць",MM:_e,y:"рік",yy:_e},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($),D.extend(S),D.extend(T),D.extend(k),D.locale("de",A),(e=>{e.locale("de-at",C)})(D),(e=>{e.locale("en",I)})(D),(e=>{e.locale("es",J)})(D),(e=>{e.locale("fr",W)})(D),(e=>{e.locale("pl",q)})(D),(e=>{e.locale("pt-br",B)})(D),(e=>{e.locale("ru",ne)})(D),(e=>{e.locale("sk",se)})(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);const fe=(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]:fe(e[t],n[t])})),fe(e,...t)},pe=(...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])||pe(n[e],t[e])})),pe(...e,t)};D.extend($),D.extend(S),D.extend(T),D.extend(k);const Me={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?"下午":"晚上"}},Ye={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",Me),D.locale("en",Ye);const ye=D;D.extend(S),D.extend(T),D.extend(k);const ge=(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(),i=n.month()+1,s=n.date(),a=n.hour(),o=n.minute(),u=n.second(),_=n.millisecond(),d=0===a&&0===o&&0===u&&0===_;return{value:n.toDate(),info:{year:r,month:i,day:s,...d?{}:{hour:a,minute:o,second:u}},type:d?"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,i,s,a]=n,o=e=>void 0===e?void 0:Number(e),u=e=>i&&s&&!a?0:e,_={year:(e=>e&&e<100?e+2e3:e)(o(e)),month:o(t),day:o(r),hour:o(i),minute:o(s),second:u(o(a))},d=void 0===e&&void 0===t&&void 0===r,m=void 0===i&&void 0===s&&void 0===a,l=D({..._,month:_.month-1}).toDate();return{value:d?void 0:l,info:m?{year:_.year,month:_.month,day:_.day}:d?{hour:_.hour,minute:_.minute,second:_.second}:_,type:d?"time":m?"date":"full"}}}return null},ve=(e,t)=>{const n=ge("number"==typeof e?new Date(e):e),r=ge("number"==typeof t?new Date(t):t);return n&&n.value?r&&r.value?r.value.getTime()-n.value.getTime():-1:1},De=(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),[]):[],Le=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[]},$e=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[]},we=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))},Se=e=>e.startsWith("/"),be=(e,t={})=>{const n=ge(e,t.timezone);if(n){const{lang:e,timezone:r,type:i=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"===i?"LL":"time"===i?"HH:mm":"LLL")}return null},ke=(e,t)=>{if(!e.data.localizedDate)if(e.frontmatter.date){const n=ge(e.frontmatter.date,t)?.value;n&&(e.data.localizedDate=be(n,{lang:e.lang,type:"date"}))}else e.data.git?.createdTime&&(e.data.localizedDate=be(new Date(e.data.git?.createdTime),{lang:e.lang,type:"date"}))},He=e=>e.replace(/]]>/g,"]]]]><![CDATA[>"),Te=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),Oe=new Map,ze=new Map,Ae=e=>{const t=`global:${e}`,n=Oe.get(t);return void 0!==n?n:!!(e=>{try{return 0===a(`${e} --version`,{stdio:"ignore"}).exitCode}catch(e){return!1}})(e)&&(Oe.set(t,!0),!0)},je=(e=process.cwd(),t=!0)=>{const n=`local:${e}`,a=ze.get(n);if(void 0!==a)return a;if(r(i(e,"pnpm-lock.yaml")))return ze.set(n,"pnpm"),"pnpm";if(r(i(e,"yarn.lock")))return ze.set(n,"yarn"),"yarn";if(r(i(e,"package-lock.json")))return ze.set(n,"npm"),"npm";let o=e;for(;t&&o!==s(o);){if(o=s(o),r(i(o,"pnpm-lock.yaml")))return ze.set(n,"pnpm"),"pnpm";if(r(i(o,"yarn.lock")))return ze.set(n,"yarn"),"yarn";if(r(i(o,"package-lock.json")))return ze.set(n,"npm"),"npm"}return null},xe=(e=process.cwd(),t=!0)=>je(e,t)||(Ae("pnpm")?"pnpm":Ae("yarn")?"yarn":"npm"),Ce=({app:e,config:t},n)=>{const{bundler:r}=e.options,i=xe();if(r.name.endsWith("vite")&&("OPTIMIZE_DEPS"in process.env?Boolean(process.env.OPTIMIZE_DEPS):"pnpm"!==i)){const e=t;e.viteOptions=y(e.viteOptions||{},{optimizeDeps:{include:"string"==typeof n?[n]:n}}),e.viteOptions.optimizeDeps.include=Array.from(new Set(e.viteOptions.optimizeDeps.include))}},Ie=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=y(e.viteOptions||{},{optimizeDeps:{exclude:"string"==typeof n?[n]:n}}),e.viteOptions.optimizeDeps.exclude=Array.from(new Set(e.viteOptions.optimizeDeps.exclude))}},Je=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=y(e.viteOptions||{},{ssr:{external:"string"==typeof n?[n]:n}})}},We=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("vite")){const e=t;e.viteOptions=y(e.viteOptions||{},{ssr:{noExternal:"string"==typeof n?[n]:n}})}},Fe=(e,r,i,s,a="The server encounted an error")=>{const{base:o,bundler:u}=r.options;if(r.env.isDev&&u.name.endsWith("vite")){const t=e,r=(e,t)=>{s(e).then((e=>{t.statusCode=200,t.end(e)})).catch((()=>{t.statusCode=500,t.end(a)}))},u={name:`virtual:devserver-mock/${i}`,configureServer:({middlewares:e})=>{e.use(`${n(o)}${i}`,r)}};t.viteOptions=y(t.viteOptions||{},{plugins:[u]})}if(r.env.isDev&&u.name.endsWith("webpack")){const n=e,{devServerSetupMiddlewares:r}=n;n.devServerSetupMiddlewares=(e,n)=>(n.app?.get(`${t(o)}${i}`,((e,t)=>{s(e).then((e=>t.status(200).send(e))).catch((()=>t.status(500).send(a)))})),r?r(e,n):e)}},Ue={"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/"},Ne=Object.keys(Ue),Ee=Object.fromEntries(Ne.map((e=>[Ue[e],e])));class Pe{constructor(e=""){this.name=e,this.currentInstance=o()}create(t){return this.currentInstance=o({prefixText:e.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 Ze={},qe=(e="")=>Ne.includes(e),Be=(e,t="")=>{Ze[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`),Ze[e]=!0)},Re=(e="",t=!1)=>e in Ee?Ee[e]:(t&&console.warn(`${e} isn’t assign with a lang, and will return 'en-US' instead.`),"en-US"),Ge=(e="",t=!1)=>e in Ue?Ue[e]:(t&&console.warn(`${e} has no path config, and will return '/' instead.`),"/"),Ve=e=>{const t=e.siteData.locales;return t?.["/"]&&t["/"]?.lang?t["/"].lang:e.siteData.lang},Ke=e=>Ge(Ve(e),e.env.isDebug),Qe=e=>Array.from(new Set([...Object.keys(e.siteData.locales)])),Xe=({app:e,name:t,default:n,config:r={}})=>{const i=Ke(e),s=new Pe(t);return Object.fromEntries([...Qe(e).filter((e=>"/"!==e)).map((t=>{const a=n[t]||("/"===Ge(e.options.locales[t].lang)?null:n[Ge(e.options.locales[t].lang)]);return a||s.warn(`Locale ${t} is missing it's i18n config`),[t,fe({},a||n[i]||{},r[t]||{})]})),["/",fe({},n[i],r["/"]||r[i]||{})]])},et=(e,t)=>{e.pluginApi.plugins.every((e=>"@vuepress/plugin-git"!==e.name))&&t&&e.use(u(t))},tt=e=>{const t=e.pluginApi.plugins.findIndex((e=>"@vuepress/plugin-git"===e.name));-1!==t&&e.pluginApi.plugins.splice(t,1)},nt=e=>" "===e||"\n"===e||"\r"===e||"\t"===e;class rt{consume(e,t){return"<"===e?(t(new it),""):e}}class it{constructor(){this.nameBuffer=""}consume(e,t){if(0===this.nameBuffer.length){if(nt(e))return t(new rt),"<"+e;if("/"===e)return""}return nt(e)?(t(new st(1)),""):"<"===e?(this.nameBuffer+="&lt;",""):">"===e?(t(new rt),""):"-"===e&&"!-"===this.nameBuffer?(t(new ot),""):(this.nameBuffer+=e,"")}}class st{constructor(e){this.mode=e}consume(e,t){return">"===e?t(new rt):(e=>'"'===e||"'"===e)(e)&&t(new at(this.mode,e)),1===this.mode?"":"<"===e?"&lt;":e}}class at{constructor(e,t){this.mode=e,this.quoteCharacter=t}consume(e,t){return e===this.quoteCharacter&&t(new st(this.mode)),1===this.mode?"":"<"===e?"&lt;":">"===e?"&gt;":e}}class ot{constructor(){this.consecutiveHyphens=0}consume(e,t){return">"===e&&this.consecutiveHyphens>=2?t(new rt):"-"===e?this.consecutiveHyphens++:this.consecutiveHyphens=0,""}}class ut{constructor(){this.state=new rt,this.transitionFunction=e=>{this.state=e}}consume(e){let t="";for(const n of e)t+=this.state.consume(n,this.transitionFunction);return t}}const _t=(e="")=>e?(new ut).consume(e):"",dt=({app:e,config:t},n)=>{const{bundler:r}=e.options;if(r.name.endsWith("webpack")){const e=t,{chainWebpack:r}=e;e.chainWebpack=(e,t,i)=>{r?.(e,t,i),n(e,t,i)}}};export{ot as InCommentState,rt as InPlaintextState,at as InQuotedStringInTagState,it as InTagNameState,st as InTagState,Pe as Logger,ut as StateMachine,c as addCustomElement,Ie as addViteOptimizeDepsExclude,Ce as addViteOptimizeDepsInclude,Je as addViteSsrExternal,We as addViteSsrNoExternal,dt as chainWebpack,qe as checkLang,ve as compareDate,ye as dayjs,fe as deepAssign,pe as deepAssignReverse,xe as detectPackageManager,He as encodeCDATA,Te as encodeXML,De as getAuthor,Le as getCategory,ge as getDate,Qe as getLocalePaths,Xe as getLocales,Ve as getRootLang,Ke as getRootLangPath,$e as getTag,je as getTypeofLockFile,Ae as hasGlobalInstallation,ke as injectLocalizedDate,Se as isAbsoluteUrl,we as isUrl,Ge as lang2Path,y as mergeViteConfig,_ as noopModule,Re as path2Lang,tt as removeGitPlugin,Be as showLangError,_t as stripTags,l as tagHint,be as timeTransformer,Fe as useCustomDevServer,et as useGitPlugin};
import{chalk as bu}from"@vuepress/utils";import{removeEndingSlash as _e,removeLeadingSlash as he}from"@vuepress/shared";import{existsSync as G}from"node:fs";import{resolve as Q,dirname as xu}from"node:path";import{execaSync as fe}from"execa";import Au from"ora";import{gitPlugin as pe}from"@vuepress/plugin-git";const Me="vuepress-shared/noopModule",De="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",Ye="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",hu=(u,e=!1)=>{e&&!De.split(",").includes(u)&&!Ye.split(",").includes(u)&&u===u.toLowerCase()&&!u.includes("-")&&console.warn(bu.yellow("warning: "),`${u} is used and it\u2019s not a standard tag or standard custom element name`)},ge=({app:u,config:e},t)=>{const n=typeof t=="string"?[t]:t,{bundler:i}=u.options;if(i.name.endsWith("vite")){const a=e;a.vuePluginOptions||(a.vuePluginOptions={}),a.vuePluginOptions.template||(a.vuePluginOptions.template={}),a.vuePluginOptions.template.compilerOptions||(a.vuePluginOptions.template.compilerOptions={});const{isCustomElement:d=m=>hu(m,u.env.isDebug)}=a.vuePluginOptions.template.compilerOptions;a.vuePluginOptions.template.compilerOptions.isCustomElement=m=>(n instanceof RegExp?n.test(m):n.includes(m))?!0:d(m)}if(i.name.endsWith("webpack")){const a=e;a.vue||(a.vue={}),a.vue.compilerOptions||(a.vue.compilerOptions={});const{isCustomElement:d=m=>hu(m,u.env.isDebug)}=a.vue.compilerOptions;a.vue.compilerOptions.isCustomElement=m=>(n instanceof RegExp?n.test(m):n.includes(m))?!0:d(m)}},ku=u=>Object.prototype.toString.call(u)==="[object Object]";function Tu({find:u,replacement:e}){return typeof u=="string"&&u.endsWith("/")&&e.endsWith("/")&&(u=u.slice(0,u.length-1),e=e.slice(0,e.length-1)),{find:u,replacement:e}}const Cu=u=>Array.isArray(u)?u.map(Tu):Object.keys(u).map(e=>Tu({find:e,replacement:u[e]})),ye=(u=[],e=[])=>[...Cu(u),...Cu(e)],Hu=(u,e,t)=>{const n={...u};for(const i in e){const a=e[i];if(a==null)continue;const d=n[i];if(Array.isArray(d)&&Array.isArray(a)){n[i]=[...d,...a];continue}if(ku(d)&&ku(a)){n[i]=Hu(d,a,t?`${t}.${i}`:i);continue}if(d!=null){if(i==="alias"&&(t==="resolve"||t==="")){n[i]=ye(d,a);continue}else if(i==="assetsInclude"&&t===""){n[i]=[].concat(d,a);continue}else if(i==="noExternal"&&d===!0)continue}n[i]=a}return n},K=(u,e,t=!0)=>Hu(u,e,t?"":".");var su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ou={exports:{}};(function(u,e){(function(t,n){u.exports=n()})(su,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",d="second",m="minute",_="hour",v="day",S="week",h="month",l="quarter",M="year",p="date",s="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,w={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("_")},b=function(y,c,r){var D=String(y);return!D||D.length>=c?y:""+Array(c+1-D.length).join(r)+y},z={s:b,z:function(y){var c=-y.utcOffset(),r=Math.abs(c),D=Math.floor(r/60),o=r%60;return(c<=0?"+":"-")+b(D,2,"0")+":"+b(o,2,"0")},m:function y(c,r){if(c.date()<r.date())return-y(r,c);var D=12*(r.year()-c.year())+(r.month()-c.month()),o=c.clone().add(D,h),g=r-o<0,Y=c.clone().add(D+(g?-1:1),h);return+(-(D+(r-o)/(g?o-Y:Y-o))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:h,y:M,w:S,d:v,D:p,h:_,m,s:d,ms:a,Q:l}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},A="en",C={};C[A]=w;var H=function(y){return y instanceof U},B=function y(c,r,D){var o;if(!c)return A;if(typeof c=="string"){var g=c.toLowerCase();C[g]&&(o=g),r&&(C[g]=r,o=g);var Y=c.split("-");if(!o&&Y.length>1)return y(Y[0])}else{var F=c.name;C[F]=c,o=F}return!D&&o&&(A=o),o||!D&&A},L=function(y,c){if(H(y))return y.clone();var r=typeof c=="object"?c:{};return r.date=y,r.args=arguments,new U(r)},E=z;E.l=B,E.i=H,E.w=function(y,c){return L(y,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var U=function(){function y(r){this.$L=B(r.locale,null,!0),this.parse(r)}var c=y.prototype;return c.parse=function(r){this.$d=function(D){var o=D.date,g=D.utc;if(o===null)return new Date(NaN);if(E.u(o))return new Date;if(o instanceof Date)return new Date(o);if(typeof o=="string"&&!/Z$/i.test(o)){var Y=o.match(f);if(Y){var F=Y[2]-1||0,T=(Y[7]||"0").substring(0,3);return g?new Date(Date.UTC(Y[1],F,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,T)):new Date(Y[1],F,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,T)}}return new Date(o)}(r),this.$x=r.x||{},this.init()},c.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},c.$utils=function(){return E},c.isValid=function(){return this.$d.toString()!==s},c.isSame=function(r,D){var o=L(r);return this.startOf(D)<=o&&o<=this.endOf(D)},c.isAfter=function(r,D){return L(r)<this.startOf(D)},c.isBefore=function(r,D){return this.endOf(D)<L(r)},c.$g=function(r,D,o){return E.u(r)?this[D]:this.set(o,r)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(r,D){var o=this,g=!!E.u(D)||D,Y=E.p(r),F=function(V,j){var Z=E.w(o.$u?Date.UTC(o.$y,j,V):new Date(o.$y,j,V),o);return g?Z:Z.endOf(v)},T=function(V,j){return E.w(o.toDate()[V].apply(o.toDate("s"),(g?[0,0,0,0]:[23,59,59,999]).slice(j)),o)},k=this.$W,O=this.$M,N=this.$D,J="set"+(this.$u?"UTC":"");switch(Y){case M:return g?F(1,0):F(31,11);case h:return g?F(1,O):F(0,O+1);case S:var tu=this.$locale().weekStart||0,nu=(k<tu?k+7:k)-tu;return F(g?N-nu:N+(6-nu),O);case v:case p:return T(J+"Hours",0);case _:return T(J+"Minutes",1);case m:return T(J+"Seconds",2);case d:return T(J+"Milliseconds",3);default:return this.clone()}},c.endOf=function(r){return this.startOf(r,!1)},c.$set=function(r,D){var o,g=E.p(r),Y="set"+(this.$u?"UTC":""),F=(o={},o[v]=Y+"Date",o[p]=Y+"Date",o[h]=Y+"Month",o[M]=Y+"FullYear",o[_]=Y+"Hours",o[m]=Y+"Minutes",o[d]=Y+"Seconds",o[a]=Y+"Milliseconds",o)[g],T=g===v?this.$D+(D-this.$W):D;if(g===h||g===M){var k=this.clone().set(p,1);k.$d[F](T),k.init(),this.$d=k.set(p,Math.min(this.$D,k.daysInMonth())).$d}else F&&this.$d[F](T);return this.init(),this},c.set=function(r,D){return this.clone().$set(r,D)},c.get=function(r){return this[E.p(r)]()},c.add=function(r,D){var o,g=this;r=Number(r);var Y=E.p(D),F=function(O){var N=L(g);return E.w(N.date(N.date()+Math.round(O*r)),g)};if(Y===h)return this.set(h,this.$M+r);if(Y===M)return this.set(M,this.$y+r);if(Y===v)return F(1);if(Y===S)return F(7);var T=(o={},o[m]=n,o[_]=i,o[d]=t,o)[Y]||1,k=this.$d.getTime()+r*T;return E.w(k,this)},c.subtract=function(r,D){return this.add(-1*r,D)},c.format=function(r){var D=this,o=this.$locale();if(!this.isValid())return o.invalidDate||s;var g=r||"YYYY-MM-DDTHH:mm:ssZ",Y=E.z(this),F=this.$H,T=this.$m,k=this.$M,O=o.weekdays,N=o.months,J=function(j,Z,_u,ou){return j&&(j[Z]||j(D,g))||_u[Z].slice(0,ou)},tu=function(j){return E.s(F%12||12,j,"0")},nu=o.meridiem||function(j,Z,_u){var ou=j<12?"AM":"PM";return _u?ou.toLowerCase():ou},V={YY:String(this.$y).slice(-2),YYYY:this.$y,M:k+1,MM:E.s(k+1,2,"0"),MMM:J(o.monthsShort,k,N,3),MMMM:J(N,k),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:J(o.weekdaysMin,this.$W,O,2),ddd:J(o.weekdaysShort,this.$W,O,3),dddd:O[this.$W],H:String(F),HH:E.s(F,2,"0"),h:tu(1),hh:tu(2),a:nu(F,T,!0),A:nu(F,T,!1),m:String(T),mm:E.s(T,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:Y};return g.replace(x,function(j,Z){return Z||V[j]||Y.replace(":","")})},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(r,D,o){var g,Y=E.p(D),F=L(r),T=(F.utcOffset()-this.utcOffset())*n,k=this-F,O=E.m(this,F);return O=(g={},g[M]=O/12,g[h]=O,g[l]=O/3,g[S]=(k-T)/6048e5,g[v]=(k-T)/864e5,g[_]=k/i,g[m]=k/n,g[d]=k/t,g)[Y]||k,o?O:E.a(O)},c.daysInMonth=function(){return this.endOf(h).$D},c.$locale=function(){return C[this.$L]},c.locale=function(r,D){if(!r)return this.$L;var o=this.clone(),g=B(r,D,!0);return g&&(o.$L=g),o},c.clone=function(){return E.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},y}(),wu=U.prototype;return L.prototype=wu,[["$ms",a],["$s",d],["$m",m],["$H",_],["$W",v],["$M",h],["$y",M],["$D",p]].forEach(function(y){wu[y[1]]=function(c){return this.$g(c,y[0],y[1])}}),L.extend=function(y,c){return y.$i||(y(c,U,L),y.$i=!0),L},L.locale=B,L.isDayjs=H,L.unix=function(y){return L(1e3*y)},L.en=C[A],L.Ls=C,L.p={},L})})(Ou);var $=Ou.exports,zu={exports:{}};(function(u,e){(function(t,n){u.exports=n()})(su,function(){var 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"};return function(n,i,a){var d=i.prototype,m=d.format;a.en.formats=t,d.format=function(_){_===void 0&&(_="YYYY-MM-DDTHH:mm:ssZ");var v=this.$locale().formats,S=function(h,l){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,p,s){var f=s&&s.toUpperCase();return p||l[s]||t[s]||l[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,w,b){return w||b.slice(1)})})}(_,v===void 0?{}:v);return m.call(this,S)}}})})(zu);var Bu=zu.exports,ju={exports:{}};(function(u,e){(function(t,n){u.exports=n()})(su,function(){return function(t,n,i){var a=n.prototype,d=function(h){var l,M=h.date,p=h.utc,s={};if(!((l=M)instanceof Date)&&!(l instanceof Array)&&l instanceof Object){if(!Object.keys(M).length)return new Date;var f=p?i.utc():i();Object.keys(M).forEach(function(B){var L,E;s[L=B,E=a.$utils().p(L),E==="date"?"day":E]=M[B]});var x=s.day||(s.year||s.month>=0?1:f.date()),w=s.year||f.year(),b=s.month>=0?s.month:s.year||s.day?0:f.month(),z=s.hour||0,A=s.minute||0,C=s.second||0,H=s.millisecond||0;return p?new Date(Date.UTC(w,b,x,z,A,C,H)):new Date(w,b,x,z,A,C,H)}return M},m=a.parse;a.parse=function(h){h.date=d.bind(this)(h),m.bind(this)(h)};var _=a.set,v=a.add,S=function(h,l,M,p){if(p===void 0&&(p=1),l instanceof Object){var s=Object.keys(l),f=this;return s.forEach(function(x){f=h.bind(f)(l[x]*p,x)}),f}return h.bind(this)(l*p,M)};a.set=function(h,l){return l=l===void 0?h:l,S.bind(this)(function(M,p){return _.bind(this)(p,M)},l,h)},a.add=function(h,l){return S.bind(this)(v,h,l)},a.subtract=function(h,l){return S.bind(this)(v,h,l,-1)}}})})(ju);var fu=ju.exports,Iu={exports:{}};(function(u,e){(function(t,n){u.exports=n()})(su,function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(i,a,d){var m,_=function(l,M,p){p===void 0&&(p={});var s=new Date(l),f=function(x,w){w===void 0&&(w={});var b=w.timeZoneName||"short",z=x+"|"+b,A=n[z];return A||(A=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:x,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:b}),n[z]=A),A}(M,p);return f.formatToParts(s)},v=function(l,M){for(var p=_(l,M),s=[],f=0;f<p.length;f+=1){var x=p[f],w=x.type,b=x.value,z=t[w];z>=0&&(s[z]=parseInt(b,10))}var A=s[3],C=A===24?0:A,H=s[0]+"-"+s[1]+"-"+s[2]+" "+C+":"+s[4]+":"+s[5]+":000",B=+l;return(d.utc(H).valueOf()-(B-=B%1e3))/6e4},S=a.prototype;S.tz=function(l,M){l===void 0&&(l=m);var p=this.utcOffset(),s=this.toDate(),f=s.toLocaleString("en-US",{timeZone:l}),x=Math.round((s-new Date(f))/1e3/60),w=d(f).$set("millisecond",this.$ms).utcOffset(15*-Math.round(s.getTimezoneOffset()/15)-x,!0);if(M){var b=w.utcOffset();w=w.add(p-b,"minute")}return w.$x.$timezone=l,w},S.offsetName=function(l){var M=this.$x.$timezone||d.tz.guess(),p=_(this.valueOf(),M,{timeZoneName:l}).find(function(s){return s.type.toLowerCase()==="timezonename"});return p&&p.value};var h=S.startOf;S.startOf=function(l,M){if(!this.$x||!this.$x.$timezone)return h.call(this,l,M);var p=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return h.call(p,l,M).tz(this.$x.$timezone,!0)},d.tz=function(l,M,p){var s=p&&M,f=p||M||m,x=v(+d(),f);if(typeof l!="string")return d(l).tz(f);var w=function(C,H,B){var L=C-60*H*1e3,E=v(L,B);if(H===E)return[L,H];var U=v(L-=60*(E-H)*1e3,B);return E===U?[L,E]:[C-60*Math.min(E,U)*1e3,Math.max(E,U)]}(d.utc(l,s).valueOf(),x,f),b=w[0],z=w[1],A=d(b).utcOffset(z);return A.$x.$timezone=f,A},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(l){m=l}}})})(Iu);var pu=Iu.exports,Pu={exports:{}};(function(u,e){(function(t,n){u.exports=n()})(su,function(){var t="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,d,m){var _=d.prototype;m.utc=function(s){var f={date:s,utc:!0,args:arguments};return new d(f)},_.utc=function(s){var f=m(this.toDate(),{locale:this.$L,utc:!0});return s?f.add(this.utcOffset(),t):f},_.local=function(){return m(this.toDate(),{locale:this.$L,utc:!1})};var v=_.parse;_.parse=function(s){s.utc&&(this.$u=!0),this.$utils().u(s.$offset)||(this.$offset=s.$offset),v.call(this,s)};var S=_.init;_.init=function(){if(this.$u){var s=this.$d;this.$y=s.getUTCFullYear(),this.$M=s.getUTCMonth(),this.$D=s.getUTCDate(),this.$W=s.getUTCDay(),this.$H=s.getUTCHours(),this.$m=s.getUTCMinutes(),this.$s=s.getUTCSeconds(),this.$ms=s.getUTCMilliseconds()}else S.call(this)};var h=_.utcOffset;_.utcOffset=function(s,f){var x=this.$utils().u;if(x(s))return this.$u?0:x(this.$offset)?h.call(this):this.$offset;if(typeof s=="string"&&(s=function(A){A===void 0&&(A="");var C=A.match(n);if(!C)return null;var H=(""+C[0]).match(i)||["-",0,0],B=H[0],L=60*+H[1]+ +H[2];return L===0?0:B==="+"?L:-L}(s),s===null))return this;var w=Math.abs(s)<=16?60*s:s,b=this;if(f)return b.$offset=w,b.$u=s===0,b;if(s!==0){var z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(b=this.local().add(w+z,t)).$offset=w,b.$x.$localOffset=z}else b=this.utc();return b};var l=_.format;_.format=function(s){var f=s||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,f)},_.valueOf=function(){var s=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*s},_.isUTC=function(){return!!this.$u},_.toISOString=function(){return this.toDate().toISOString()},_.toString=function(){return this.toDate().toUTCString()};var M=_.toDate;_.toDate=function(s){return s==="s"&&this.$offset?m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var p=_.diff;_.diff=function(s,f,x){if(s&&this.$u===s.$u)return p.call(this,s,f,x);var w=this.local(),b=m(s).local();return p.call(w,b,f,x)}}})})(Pu);var Mu=Pu.exports;const Ee={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"]},I=(u,e,t)=>{let n=Ee[t];return Array.isArray(n)&&(n=n[e?0:1]),n.replace("%d",u)},ve={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\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:u=>`${u}.`,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:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I}},$e=u=>{u.locale("de",ve)},Le={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"]},P=(u,e,t)=>{let n=Le[t];return Array.isArray(n)&&(n=n[e?0:1]),n.replace("%d",u)},Se={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\xE4nner_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xE4n._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:u=>`${u}.`,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:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P}},Fe=u=>{u.locale("de-at",Se)},we={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("_")},be=u=>{u.locale("en",we)},xe={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".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\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:u=>`${u}\xBA`},Ae=u=>{u.locale("es",xe)},ke={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\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".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:u=>`${u}${u===1?"er":""}`},Te=u=>{u.locale("fr",ke)},du=u=>u%10<5&&u%10>1&&~~(u/10)%10!==1,X=(u,e,t)=>{const n=`${u} `;switch(t){case"m":return e?"minuta":"minut\u0119";case"mm":return n+(du(u)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return n+(du(u)?"godziny":"godzin");case"MM":return n+(du(u)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return n+(du(u)?"lata":"lat")}},Wu="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),Ju="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),Ce=/D MMMM/,Du=(u,e)=>Ce.test(e)?Wu[u.month()]:Ju[u.month()];Du.s=Ju,Du.f=Wu;const He={name:"pl",weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),months:Du,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),ordinal:u=>`${u}.`,weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:X,mm:X,h:X,hh:X,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:X,y:"rok",yy:X},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"}},Oe=u=>{u.locale("pl",He)},ze={name:"pt-br",weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xE1b".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),months:"janeiro_fevereiro_mar\xE7o_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:u=>`${u}\xBA`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %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\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}},Be=u=>{u.locale("pt-br",ze)},Uu="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),Nu="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),Zu="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),qu="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),Ru=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,je=(u,e)=>{const t=u.split("_");return e%10===1&&e%100!==11?t[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t[1]:t[2]},uu=(u,e,t)=>t==="m"?e?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":`${u} ${je({mm:e?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"}[t],+u)}`,Yu=(u,e)=>Ru.test(e)?Uu[u.month()]:Nu[u.month()];Yu.s=Nu,Yu.f=Uu;const gu=(u,e)=>Ru.test(e)?Zu[u.month()]:qu[u.month()];gu.s=qu,gu.f=Zu;const Ie={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:Yu,monthsShort:gu,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:uu,mm:uu,h:"\u0447\u0430\u0441",hh:uu,d:"\u0434\u0435\u043D\u044C",dd:uu,M:"\u043C\u0435\u0441\u044F\u0446",MM:uu,y:"\u0433\u043E\u0434",yy:uu},ordinal:u=>u,meridiem:u=>u<4?"\u043D\u043E\u0447\u0438":u<12?"\u0443\u0442\u0440\u0430":u<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"},Pe=u=>{u.locale("ru",Ie)},iu=u=>u>1&&u<5&&~~(u/10)!==1,W=(u,e,t,n)=>{const i=`${u} `;switch(t){case"s":return e||n?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"m":return e?"min\xFAta":n?"min\xFAtu":"min\xFAtou";case"mm":return e||n?i+(iu(u)?"min\xFAty":"min\xFAt"):`${i}min\xFAtami`;case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?i+(iu(u)?"hodiny":"hod\xEDn"):`${i}hodinami`;case"d":return e||n?"de\u0148":"d\u0148om";case"dd":return e||n?i+(iu(u)?"dni":"dn\xED"):`${i}d\u0148ami`;case"M":return e||n?"mesiac":"mesiacom";case"MM":return e||n?i+(iu(u)?"mesiace":"mesiacov"):`${i}mesiacmi`;case"y":return e||n?"rok":"rokom";case"yy":return e||n?i+(iu(u)?"roky":"rokov"):`${i}rokmi`}},We={name:"sk",weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:u=>`${u}.`,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:W,m:W,mm:W,h:W,hh:W,d:W,dd:W,M:W,MM:W,y:W,yy:W}},Je=u=>{u.locale("sk",We)},Vu="\u0441\u0456\u0447\u043D\u044F_\u043B\u044E\u0442\u043E\u0433\u043E_\u0431\u0435\u0440\u0435\u0437\u043D\u044F_\u043A\u0432\u0456\u0442\u043D\u044F_\u0442\u0440\u0430\u0432\u043D\u044F_\u0447\u0435\u0440\u0432\u043D\u044F_\u043B\u0438\u043F\u043D\u044F_\u0441\u0435\u0440\u043F\u043D\u044F_\u0432\u0435\u0440\u0435\u0441\u043D\u044F_\u0436\u043E\u0432\u0442\u043D\u044F_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043D\u044F".split("_"),Gu="\u0441\u0456\u0447\u0435\u043D\u044C_\u043B\u044E\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C_\u043A\u0432\u0456\u0442\u0435\u043D\u044C_\u0442\u0440\u0430\u0432\u0435\u043D\u044C_\u0447\u0435\u0440\u0432\u0435\u043D\u044C_\u043B\u0438\u043F\u0435\u043D\u044C_\u0441\u0435\u0440\u043F\u0435\u043D\u044C_\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C_\u0436\u043E\u0432\u0442\u0435\u043D\u044C_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043D\u044C".split("_"),Ue=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,Ne=(u,e)=>{const t=u.split("_");return e%10===1&&e%100!==11?t[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t[1]:t[2]},q=(u,e,t)=>t==="m"?e?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443":t==="h"?e?"\u0433\u043E\u0434\u0438\u043D\u0430":"\u0433\u043E\u0434\u0438\u043D\u0443":`${u} ${Ne({ss:e?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434",mm:e?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D",hh:e?"\u0433\u043E\u0434\u0438\u043D\u0430_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D":"\u0433\u043E\u0434\u0438\u043D\u0443_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u0456_\u0434\u043D\u0456\u0432",MM:"\u043C\u0456\u0441\u044F\u0446\u044C_\u043C\u0456\u0441\u044F\u0446\u0456_\u043C\u0456\u0441\u044F\u0446\u0456\u0432",yy:"\u0440\u0456\u043A_\u0440\u043E\u043A\u0438_\u0440\u043E\u043A\u0456\u0432"}[t],+u)}`,yu=(u,e)=>Ue.test(e)?Vu[u.month()]:Gu[u.month()];yu.s=Gu,yu.f=Vu;const Ze={name:"uk",weekdays:"\u043D\u0435\u0434\u0456\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044F_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u043D\u0434\u043B_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:yu,monthsShort:"\u0441\u0456\u0447_\u043B\u044E\u0442_\u0431\u0435\u0440_\u043A\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043B\u0438\u043F_\u0441\u0435\u0440\u043F_\u0432\u0435\u0440_\u0436\u043E\u0432\u0442_\u043B\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekStart:1,relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043E\u043C\u0443",s:"\u0434\u0435\u043A\u0456\u043B\u044C\u043A\u0430 \u0441\u0435\u043A\u0443\u043D\u0434",m:q,mm:q,h:q,hh:q,d:"\u0434\u0435\u043D\u044C",dd:q,M:"\u043C\u0456\u0441\u044F\u0446\u044C",MM:q,y:"\u0440\u0456\u043A",yy:q},ordinal:u=>u,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"}},qe=u=>{u.locale("uk",Ze)},Re={name:"vi",weekdays:"ch\u1EE7 nh\u1EADt_th\u1EE9 hai_th\u1EE9 ba_th\u1EE9 t\u01B0_th\u1EE9 n\u0103m_th\u1EE9 s\xE1u_th\u1EE9 b\u1EA3y".split("_"),months:"th\xE1ng 1_th\xE1ng 2_th\xE1ng 3_th\xE1ng 4_th\xE1ng 5_th\xE1ng 6_th\xE1ng 7_th\xE1ng 8_th\xE1ng 9_th\xE1ng 10_th\xE1ng 11_th\xE1ng 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:u=>u,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] 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\u1EDBi",past:"%s tr\u01B0\u1EDBc",s:"v\xE0i gi\xE2y",m:"m\u1ED9t ph\xFAt",mm:"%d ph\xFAt",h:"m\u1ED9t gi\u1EDD",hh:"%d gi\u1EDD",d:"m\u1ED9t ng\xE0y",dd:"%d ng\xE0y",M:"m\u1ED9t th\xE1ng",MM:"%d th\xE1ng",y:"m\u1ED9t n\u0103m",yy:"%d n\u0103m"}},Ve=u=>{u.locale("vi",Re)},Ge={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:(u,e)=>{switch(e){case"W":return`${u}\u5468`;default:return`${u}\u65E5`}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:(u,e)=>{const t=u*100+e;return t<600?"\u51CC\u6668":t<900?"\u65E9\u4E0A":t<1100?"\u4E0A\u5348":t<1300?"\u4E2D\u5348":t<1800?"\u4E0B\u5348":"\u665A\u4E0A"}},Qe=u=>{u.locale("zh",Ge)},Ke={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:u=>`${u}\u65E5`,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"}},Xe=u=>{u.locale("zh-tw",Ke)};$.extend(Bu),$.extend(fu),$.extend(Mu),$.extend(pu),$e($),Fe($),be($),Ae($),Te($),Oe($),Be($),Pe($),Je($),qe($),Ve($),Qe($),Xe($);const ut=(u="en")=>{const e=u.toLowerCase();return["de","de-at","en","es","fr","pl","pt-br","ru","sk","uk","vi","zh","zh-tw"].includes(e)?e:e==="en-us"||e==="en-uk"?"en":e==="es-es"?"es":e==="fr-fr"?"fr":e==="pl-pl"?"pl":e==="ru-ru"?"ru":e==="uk-ua"?"uk":e==="sk-sk"?"sk":e==="vi-vn"?"vi":e==="zh-cn"?"zh":(console.warn(`${u} locale missing in config`),"en")},ru=(u,...e)=>{if(e.length===0)return u;const t=e.shift()||{};return Object.keys(t).forEach(n=>{typeof u[n]=="object"&&!Array.isArray(u[n])&&typeof t[n]=="object"&&!Array.isArray(t[n])?ru(u[n],t[n]):typeof t[n]=="object"?Array.isArray(t[n])?u[n]=[...t[n]]:u[n]={...t[n]}:u[n]=t[n]}),ru(u,...e)},Eu=(...u)=>{if(u.length===0)throw new Error("No param is given");if(u.length===1)return u[0];const e=u.pop(),t=u.pop();return Object.keys(t).forEach(n=>{e[n]===void 0?typeof t[n]=="object"?Array.isArray(t[n])?e[n]=[...t[n]]:e[n]={...t[n]}:e[n]=t[n]:typeof e[n]=="object"&&!Array.isArray(e)&&typeof t[n]=="object"&&!Array.isArray(t[n])&&Eu(t[n],e[n])}),Eu(...u,e)};$.extend(Bu),$.extend(fu),$.extend(Mu),$.extend(pu);const et={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:(u,e)=>{switch(e){case"W":return`${u}\u5468`;default:return`${u}\u65E5`}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:(u,e)=>{const t=u*100+e;return t<600?"\u51CC\u6668":t<900?"\u65E9\u4E0A":t<1100?"\u4E0A\u5348":t<1300?"\u4E2D\u5348":t<1800?"\u4E0B\u5348":"\u665A\u4E0A"}},tt={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("_")};$.locale("zh",et),$.locale("en",tt);const nt=$;$.extend(fu),$.extend(Mu),$.extend(pu);const au=(u,e)=>{if(u){if($(u instanceof Date?u:u.trim()).isValid()){const n=e?$(u).tz(e):$(u),i=n.year(),a=n.month()+1,d=n.date(),m=n.hour(),_=n.minute(),v=n.second(),S=n.millisecond(),h=m===0&&_===0&&v===0&&S===0;return{value:n.toDate(),info:{year:i,month:a,day:d,...h?{}:{hour:m,minute:_,second:v}},type:h?"date":"full"}}const t=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(u.trim());if(t){const[,n,i,a,d,m,_]=t,v=f=>typeof f>"u"?void 0:Number(f),S=f=>f&&f<100?f+2e3:f,h=f=>d&&m&&!_?0:f,l={year:S(v(n)),month:v(i),day:v(a),hour:v(d),minute:v(m),second:h(v(_))},M=n===void 0&&i===void 0&&a===void 0,p=d===void 0&&m===void 0&&_===void 0,s=$({...l,month:l.month-1}).toDate();return{value:M?void 0:s,info:p?{year:l.year,month:l.month,day:l.day}:M?{hour:l.hour,minute:l.minute,second:l.second}:l,type:M?"time":p?"date":"full"}}}return null},st=(u,e)=>{const t=au(typeof u=="number"?new Date(u):u),n=au(typeof e=="number"?new Date(e):e);return!t||!t.value?1:!n||!n.value?-1:n.value.getTime()-t.value.getTime()},it=(u,e=!1)=>u?Array.isArray(u)?u.map(t=>typeof t=="string"?{name:t}:t):typeof u=="string"?[{name:u}]:typeof u=="object"&&u.name?[u]:(console.error(`Expect 'author' to be \`AuthorInfo[] | AuthorInfo | string[] | string ${e?"":"| false"} | undefined\`, but got`,u),[]):[],rt=u=>{if(u){if(Array.isArray(u))return u;if(typeof u=="string")return[u];console.error("Expect 'category' to be `string[] | string | undefined`, but got",u)}return[]},at=u=>{if(u){if(Array.isArray(u))return u;if(typeof u=="string")return[u];console.error("Expect 'tag' to be `string[] | string | undefined`, but got",u)}return[]},ot=u=>{if(typeof u!="string"||u==="")return!1;const e=/^(?:\w+:)?\/\/(\S+)$/u.exec(u);if(!e)return!1;const t=e[1];return t?/^localhost[:?\d]*(?:[^:?\d]\S*)?$/u.test(t)||/^[^\s.]+\.\S{2,}$/u.test(t):!1},dt=u=>u.startsWith("/"),vu=(u,e={})=>{const t=au(u,e.timezone);if(t){const{lang:n,timezone:i,type:a=t.type}=e;return $.locale(ut(n)),(i?$(t.value).tz(i):$(t.value)).format(a==="date"?"LL":a==="time"?"HH:mm":"LLL")}return null},lt=(u,e)=>{var t,n,i;if(!u.data.localizedDate)if(u.frontmatter.date){const a=(t=au(u.frontmatter.date,e))==null?void 0:t.value;a&&(u.data.localizedDate=vu(a,{lang:u.lang,type:"date"}))}else(n=u.data.git)!=null&&n.createdTime&&(u.data.localizedDate=vu(new Date((i=u.data.git)==null?void 0:i.createdTime),{lang:u.lang,type:"date"}))},ct=u=>u.replace(/]]>/g,"]]]]><![CDATA[>"),mt=u=>u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),Qu=new Map,R=new Map,_t=u=>{try{return fe(`${u} --version`,{stdio:"ignore"}).exitCode===0}catch{return!1}},$u=u=>{const e=`global:${u}`,t=Qu.get(e);return t!==void 0?t:_t(u)?(Qu.set(e,!0),!0):!1},Ku=(u=process.cwd(),e=!0)=>{const t=`local:${u}`,n=R.get(t);if(n!==void 0)return n;if(G(Q(u,"pnpm-lock.yaml")))return R.set(t,"pnpm"),"pnpm";if(G(Q(u,"yarn.lock")))return R.set(t,"yarn"),"yarn";if(G(Q(u,"package-lock.json")))return R.set(t,"npm"),"npm";let i=u;for(;e&&i!==xu(i);){if(i=xu(i),G(Q(i,"pnpm-lock.yaml")))return R.set(t,"pnpm"),"pnpm";if(G(Q(i,"yarn.lock")))return R.set(t,"yarn"),"yarn";if(G(Q(i,"package-lock.json")))return R.set(t,"npm"),"npm"}return null},Xu=(u=process.cwd(),e=!0)=>Ku(u,e)||($u("pnpm")?"pnpm":$u("yarn")?"yarn":"npm"),ht=({app:u,config:e},t)=>{const{bundler:n}=u.options,i=Xu();if(n.name.endsWith("vite")&&("OPTIMIZE_DEPS"in process.env?Boolean(process.env.OPTIMIZE_DEPS):i!=="pnpm")){const a=e;a.viteOptions=K(a.viteOptions||{},{optimizeDeps:{include:typeof t=="string"?[t]:t}}),a.viteOptions.optimizeDeps.include=Array.from(new Set(a.viteOptions.optimizeDeps.include))}},ft=({app:u,config:e},t)=>{const{bundler:n}=u.options;if(n.name.endsWith("vite")){const i=e;i.viteOptions=K(i.viteOptions||{},{optimizeDeps:{exclude:typeof t=="string"?[t]:t}}),i.viteOptions.optimizeDeps.exclude=Array.from(new Set(i.viteOptions.optimizeDeps.exclude))}},pt=({app:u,config:e},t)=>{const{bundler:n}=u.options;if(n.name.endsWith("vite")){const i=e;i.viteOptions=K(i.viteOptions||{},{ssr:{external:typeof t=="string"?[t]:t}})}},Mt=({app:u,config:e},t)=>{const{bundler:n}=u.options;if(n.name.endsWith("vite")){const i=e;i.viteOptions=K(i.viteOptions||{},{ssr:{noExternal:typeof t=="string"?[t]:t}})}},Dt=(u,e,t,n,i="The server encounted an error")=>{const{base:a,bundler:d}=e.options;if(e.env.isDev&&d.name.endsWith("vite")){const m=u,_=(S,h)=>{n(S).then(l=>{h.statusCode=200,h.end(l)}).catch(()=>{h.statusCode=500,h.end(i)})},v={name:`virtual:devserver-mock/${t}`,configureServer:({middlewares:S})=>{S.use(`${he(a)}${t}`,_)}};m.viteOptions=K(m.viteOptions||{},{plugins:[v]})}if(e.env.isDev&&d.name.endsWith("webpack")){const m=u,{devServerSetupMiddlewares:_}=m;m.devServerSetupMiddlewares=(v,S)=>{var h;return(h=S.app)==null||h.get(`${_e(a)}${t}`,(l,M)=>{n(l).then(p=>M.status(200).send(p)).catch(()=>M.status(500).send(i))}),_?_(v,S):v}}},lu={"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/"},ue=Object.keys(lu),ee=Object.fromEntries(ue.map(u=>[lu[u],u]));class te{constructor(e=""){this.name=e,this.currentInstance=Au()}create(e){return this.currentInstance=Au({prefixText:bu.blue(`${this.name}: `)||"",text:e}),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 ne={},Yt=(u="")=>ue.includes(u),gt=(u,e="")=>{ne[u]||(console.warn(`${u} locates config is missing, and will return 'en-US' instead.
${u==="root"?"":`You can contribute to https://github.com/vuepress-theme-hope/vuepress-theme-hope/blob/main/packages/${e||"<YOUR PLUGIN>"}/src/node/locales.ts in this repository.
`}Note: This warning will be shown only once`),ne[u]=!0)},yt=(u="",e=!1)=>u in ee?ee[u]:(e&&console.warn(`${u} isn\u2019t assign with a lang, and will return 'en-US' instead.`),"en-US"),cu=(u="",e=!1)=>u in lu?lu[u]:(e&&console.warn(`${u} has no path config, and will return '/' instead.`),"/"),se=u=>{var e;const t=u.siteData.locales;return(t==null?void 0:t["/"])&&((e=t["/"])==null?void 0:e.lang)?t["/"].lang:u.siteData.lang},ie=u=>cu(se(u),u.env.isDebug),re=u=>Array.from(new Set([...Object.keys(u.siteData.locales)])),Et=({app:u,name:e,default:t,config:n={}})=>{const i=ie(u),a=new te(e);return Object.fromEntries([...re(u).filter(d=>d!=="/").map(d=>{const m=t[d]||(cu(u.options.locales[d].lang)==="/"?null:t[cu(u.options.locales[d].lang)]);return m||a.warn(`Locale ${d} is missing it's i18n config`),[d,ru({},m||t[i]||{},n[d]||{})]}),["/",ru({},t[i],n["/"]||n[i]||{})]])},vt=(u,e)=>{u.pluginApi.plugins.every(t=>t.name!=="@vuepress/plugin-git")&&e&&u.use(pe(e))},$t=u=>{const e=u.pluginApi.plugins.findIndex(t=>t.name==="@vuepress/plugin-git");e!==-1&&u.pluginApi.plugins.splice(e,1)},mu="<",Lu=">",Su="&lt;",Lt="&gt;",ae=u=>u===" "||u===`
`||u==="\r"||u===" ",St=u=>u==='"'||u==="'";class eu{consume(e,t){return e===mu?(t(new de),""):e}}var oe=(u=>(u[u.allowed=0]="allowed",u[u.disallowed=1]="disallowed",u))(oe||{});class de{constructor(){this.nameBuffer=""}consume(e,t){if(this.nameBuffer.length===0){if(ae(e))return t(new eu),"<"+e;if(e==="/")return""}return ae(e)?(t(new Fu(1)),""):e===mu?(this.nameBuffer+=Su,""):e===Lu?(t(new eu),""):e==="-"&&this.nameBuffer==="!-"?(t(new ce),""):(this.nameBuffer+=e,"")}}class Fu{constructor(e){this.mode=e}consume(e,t){return e===Lu?t(new eu):St(e)&&t(new le(this.mode,e)),this.mode===1?"":e===mu?Su:e}}class le{constructor(e,t){this.mode=e,this.quoteCharacter=t}consume(e,t){return e===this.quoteCharacter&&t(new Fu(this.mode)),this.mode===1?"":e===mu?Su:e===Lu?Lt:e}}class ce{constructor(){this.consecutiveHyphens=0}consume(e,t){return e===">"&&this.consecutiveHyphens>=2?t(new eu):e==="-"?this.consecutiveHyphens++:this.consecutiveHyphens=0,""}}class me{constructor(){this.state=new eu,this.transitionFunction=e=>{this.state=e}}consume(e){let t="";for(const n of e)t+=this.state.consume(n,this.transitionFunction);return t}}const Ft=(u="")=>u?new me().consume(u):"",wt=({app:u,config:e},t)=>{const{bundler:n}=u.options;if(n.name.endsWith("webpack")){const i=e,{chainWebpack:a}=i;i.chainWebpack=(d,m,_)=>{a==null||a(d,m,_),t(d,m,_)}}};export{ce as InCommentState,eu as InPlaintextState,le as InQuotedStringInTagState,de as InTagNameState,Fu as InTagState,te as Logger,me as StateMachine,oe as TagMode,ge as addCustomElement,ft as addViteOptimizeDepsExclude,ht as addViteOptimizeDepsInclude,pt as addViteSsrExternal,Mt as addViteSsrNoExternal,wt as chainWebpack,Yt as checkLang,st as compareDate,nt as dayjs,ru as deepAssign,Eu as deepAssignReverse,Xu as detectPackageManager,ct as encodeCDATA,mt as encodeXML,it as getAuthor,rt as getCategory,au as getDate,re as getLocalePaths,Et as getLocales,se as getRootLang,ie as getRootLangPath,at as getTag,Ku as getTypeofLockFile,$u as hasGlobalInstallation,lt as injectLocalizedDate,dt as isAbsoluteUrl,ot as isUrl,cu as lang2Path,K as mergeViteConfig,Me as noopModule,yt as path2Lang,$t as removeGitPlugin,gt as showLangError,Ft as stripTags,hu as tagHint,vu as timeTransformer,Dt as useCustomDevServer,vt as useGitPlugin};
//# sourceMappingURL=index.js.map
{
"name": "vuepress-shared",
"version": "2.0.0-beta.101",
"version": "2.0.0-beta.102",
"description": "Shared files for vuepress-theme-hope",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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