vendor: 23,418 bytes, line 1
1import{e as M,t as E,_ as ee,j as v,F as at,g as Ee,f as it,h as ot,k as ut,C as st,i as lt}from"../chunks/chunk-7c95c149.js";import{B as ct}from"../chunks/chunk-af16b98a.js";import{I as Ne}from"../chunks/chunk-bd799850.js";import{u as ft,R as We}from"../chunks/chunk-ab9dfbfe.js";import{M as dt}from"../chunks/chunk-9b15ce3e.js";import{u as vt,a as ht,D as mt}from"../chunks/chunk-704406a5.js";import"../chunks/chunk-56865e9e.js";function W(o){if(o===null||o===!0||o===!1)return NaN;var i=Number(o);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function wt(o,i){M(2,arguments);var t=E(o).getTime(),r=W(i);return new Date(t+r)}var gt={};function re(){return gt}function $e(o){var i=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return i.setUTCFullYear(o.getFullYear()),o.getTime()-i.getTime()}var pt=6e4,yt=36e5,bt=1e3;function Tt(o){return M(1,arguments),o instanceof Date||ee(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function xt(o){if(M(1,arguments),!Tt(o)&&typeof o!="number")return!1;var i=E(o);return!isNaN(Number(i))}function Fe(o,i){M(2,arguments);var t=W(i);return wt(o,-t)}var Pt=864e5;function Ct(o){M(1,arguments);var i=E(o),t=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var r=i.getTime(),e=t-r;return Math.floor(e/Pt)+1}function te(o){M(1,arguments);var i=1,t=E(o),r=t.getUTCDay(),e=(r<i?7:0)+r-i;return t.setUTCDate(t.getUTCDate()-e),t.setUTCHours(0,0,0,0),t}function Qe(o){M(1,arguments);var i=E(o),t=i.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var e=te(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=te(a);return i.getTime()>=e.getTime()?t+1:i.getTime()>=n.getTime()?t:t-1}function Dt(o){M(1,arguments);var i=Qe(o),t=new Date(0);t.setUTCFullYear(i,0,4),t.setUTCHours(0,0,0,0);var r=te(t);return r}var Ot=6048e5;function Se(o){M(1,arguments);var i=E(o),t=te(i).getTime()-Dt(i).getTime();return Math.round(t/Ot)+1}function Z(o,i){var t,r,e,a,n,u,l,f;M(1,arguments);var w=re(),d=W((t=(r=(e=(a=i==null?void 0:i.weekStartsOn)!==null&&a!==void 0?a:i==null||(n=i.locale)===null||n===void 0||(u=n.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&e!==void 0?e:w.weekStartsOn)!==null&&r!==void 0?r:(l=w.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=E(o),x=C.getUTCDay(),U=(x<d?7:0)+x-d;return C.setUTCDate(C.getUTCDate()-U),C.setUTCHours(0,0,0,0),C}function xe(o,i){var t,r,e,a,n,u,l,f;M(1,arguments);var w=E(o),d=w.getUTCFullYear(),C=re(),x=W((t=(r=(e=(a=i==null?void 0:i.firstWeekContainsDate)!==null&&a!==void 0?a:i==null||(n=i.locale)===null||n===void 0||(u=n.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:C.firstWeekContainsDate)!==null&&r!==void 0?r:(l=C.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(x>=1&&x<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=new Date(0);U.setUTCFullYear(d+1,0,x),U.setUTCHours(0,0,0,0);var I=Z(U,i),A=new Date(0);A.setUTCFullYear(d,0,x),A.setUTCHours(0,0,0,0);var L=Z(A,i);return w.getTime()>=I.getTime()?d+1:w.getTime()>=L.getTime()?d:d-1}function kt(o,i){var t,r,e,a,n,u,l,f;M(1,arguments);var w=re(),d=W((t=(r=(e=(a=i==null?void 0:i.firstWeekContainsDate)!==null&&a!==void 0?a:i==null||(n=i.locale)===null||n===void 0||(u=n.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&e!==void 0?e:w.firstWeekContainsDate)!==null&&r!==void 0?r:(l=w.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1),C=xe(o,i),x=new Date(0);x.setUTCFullYear(C,0,d),x.setUTCHours(0,0,0,0);var U=Z(x,i);return U}var Mt=6048e5;function Be(o,i){M(1,arguments);var t=E(o),r=Z(t,i).getTime()-kt(t,i).getTime();return Math.round(r/Mt)+1}function b(o,i){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<i;)r="0"+r;return t+r}var Ut={y:function(i,t){var r=i.getUTCFullYear(),e=r>0?r:1-r;return b(t==="yy"?e%100:e,t.length)},M:function(i,t){var r=i.getUTCMonth();return t==="M"?String(r+1):b(r+1,2)},d:function(i,t){return b(i.getUTCDate(),t.length)},a:function(i,t){var r=i.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(i,t){return b(i.getUTCHours()%12||12,t.length)},H:function(i,t){return b(i.getUTCHours(),t.length)},m:function(i,t){return b(i.getUTCMinutes(),t.length)},s:function(i,t){return b(i.getUTCSeconds(),t.length)},S:function(i,t){var r=t.length,e=i.getUTCMilliseconds(),a=Math.floor(e*Math.pow(10,r-3));return b(a,t.length)}};const X=Ut;var J={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_t={G:function(i,t,r){var e=i.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})}},y:function(i,t,r){if(t==="yo"){var e=i.getUTCFullYear(),a=e>0?e:1-e;return r.ordinalNumber(a,{unit:"year"})}return X.y(i,t)},Y:function(i,t,r,e){var a=xe(i,e),n=a>0?a:1-a;if(t==="YY"){var u=n%100;return b(u,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):b(n,t.length)},R:function(i,t){var r=Qe(i);return b(r,t.length)},u:function(i,t){var r=i.getUTCFullYear();return b(r,t.length)},Q:function(i,t,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(t){case"Q":return String(e);case"QQ":return b(e,2);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})}},q:function(i,t,r){var e=Math.ceil((i.getUTCMonth()+1)/3);switch(t){case"q":return String(e);case"qq":return b(e,2);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})}},M:function(i,t,r){var e=i.getUTCMonth();switch(t){case"M":case"MM":return X.M(i,t);case"Mo":return r.ordinalNumber(e+1,{unit:"month"});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})}},L:function(i,t,r){var e=i.getUTCMonth();switch(t){case"L":return String(e+1);case"LL":return b(e+1,2);case"Lo":return r.ordinalNumber(e+1,{unit:"month"});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})}},w:function(i,t,r,e){var a=Be(i,e);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):b(a,t.length)},I:function(i,t,r){var e=Se(i);return t==="Io"?r.ordinalNumber(e,{unit:"week"}):b(e,t.length)},d:function(i,t,r){return t==="do"?r.ordinalNumber(i.getUTCDate(),{unit:"date"}):X.d(i,t)},D:function(i,t,r){var e=Ct(i);return t==="Do"?r.ordinalNumber(e,{unit:"dayOfYear"}):b(e,t.length)},E:function(i,t,r){var e=i.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})}},e:function(i,t,r,e){var a=i.getUTCDay(),n=(a-e.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return b(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(i,t,r,e){var a=i.getUTCDay(),n=(a-e.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return b(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(i,t,r){var e=i.getUTCDay(),a=e===0?7:e;switch(t){case"i":return String(a);case"ii":return b(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(e,{width:"short",context:"formatting"});case"iiii":default:return r.day(e,{width:"wide",context:"formatting"})}},a:function(i,t,r){var e=i.getUTCHours(),a=e/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(i,t,r){var e=i.getUTCHours(),a;switch(e===12?a=J.noon:e===0?a=J.midnight:a=e/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(i,t,r){var e=i.getUTCHours(),a;switch(e>=17?a=J.evening:e>=12?a=J.afternoon:e>=4?a=J.morning:a=J.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(i,t,r){if(t==="ho"){var e=i.getUTCHours()%12;return e===0&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return X.h(i,t)},H:function(i,t,r){return t==="Ho"?r.ordinalNumber(i.getUTCHours(),{unit:"hour"}):X.H(i,t)},K:function(i,t,r){var e=i.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(e,{unit:"hour"}):b(e,t.length)},k:function(i,t,r){var e=i.getUTCHours();return e===0&&(e=24),t==="ko"?r.ordinalNumber(e,{unit:"hour"}):b(e,t.length)},m:function(i,t,r){return t==="mo"?r.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):X.m(i,t)},s:function(i,t,r){return t==="so"?r.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):X.s(i,t)},S:function(i,t){return X.S(i,t)},X:function(i,t,r,e){var a=e._originalDate||i,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return qe(n);case"XXXX":case"XX":return K(n);case"XXXXX":case"XXX":default:return K(n,":")}},x:function(i,t,r,e){var a=e._originalDate||i,n=a.getTimezoneOffset();switch(t){case"x":return qe(n);case"xxxx":case"xx":return K(n);case"xxxxx":case"xxx":default:return K(n,":")}},O:function(i,t,r,e){var a=e._originalDate||i,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ae(n,":");case"OOOO":default:return"GMT"+K(n,":")}},z:function(i,t,r,e){var a=e._originalDate||i,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ae(n,":");case"zzzz":default:return"GMT"+K(n,":")}},t:function(i,t,r,e){var a=e._originalDate||i,n=Math.floor(a.getTime()/1e3);return b(n,t.length)},T:function(i,t,r,e){var a=e._originalDate||i,n=a.getTime();return b(n,t.length)}};function Ae(o,i){var t=o>0?"-":"+",r=Math.abs(o),e=Math.floor(r/60),a=r%60;if(a===0)return t+String(e);var n=i||"";return t+String(e)+n+b(a,2)}function qe(o,i){if(o%60===0){var t=o>0?"-":"+";return t+b(Math.abs(o)/60,2)}return K(o,i)}function K(o,i){var t=i||"",r=o>0?"-":"+",e=Math.abs(o),a=b(Math.floor(e/60),2),n=b(e%60,2);return r+a+t+n}const Yt=_t;var He=function(i,t){switch(i){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Xe=function(i,t){switch(i){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Et=function(i,t){var r=i.match(/(P+)(p+)?/)||[],e=r[1],a=r[2];if(!a)return He(i,t);var n;switch(e){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",He(e,t)).replace("{{time}}",Xe(a,t))},Nt={p:Xe,P:Et};const be=Nt;var Wt=["D","DD"],At=["YY","YYYY"];function Ge(o){return Wt.indexOf(o)!==-1}function Ve(o){return At.indexOf(o)!==-1}function ve(o,i,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var qt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ht=function(i,t,r){var e,a=qt[i];return typeof a=="string"?e=a:t===1?e=a.one:e=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+e:e+" ago":e};const It=Ht;function ye(o){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=i.width?String(i.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var Lt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$t={date:ye({formats:Lt,defaultWidth:"full"}),time:ye({formats:jt,defaultWidth:"full"}),dateTime:ye({formats:Rt,defaultWidth:"full"})};const Ft=$t;var Qt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},St=function(i,t,r,e){return Qt[i]};const Bt=St;function se(o){return function(i,t){var r=t!=null&&t.context?String(t.context):"standalone",e;if(r==="formatting"&&o.formattingValues){var a=o.defaultFormattingWidth||o.defaultWidth,n=t!=null&&t.width?String(t.width):a;e=o.formattingValues[n]||o.formattingValues[a]}else{var u=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;e=o.values[l]||o.values[u]}var f=o.argumentCallback?o.argumentCallback(i):i;return e[f]}}var Xt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Kt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Zt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Jt=function(i,t){var r=Number(i),e=r%100;if(e>20||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},er={ordinalNumber:Jt,era:se({values:Xt,defaultWidth:"wide"}),quarter:se({values:Gt,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:se({values:Vt,defaultWidth:"wide"}),day:se({values:zt,defaultWidth:"wide"}),dayPeriod:se({values:Kt,defaultWidth:"wide",formattingValues:Zt,defaultFormattingWidth:"wide"})};const tr=er;function le(o){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,e=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],a=i.match(e);if(!a)return null;var n=a[0],u=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(u)?nr(u,function(d){return d.test(n)}):rr(u,function(d){return d.test(n)}),f;f=o.valueCallback?o.valueCallback(l):l,f=t.valueCallback?t.valueCallback(f):f;var w=i.slice(n.length);return{value:f,rest:w}}}function rr(o,i){for(var t in o)if(o.hasOwnProperty(t)&&i(o[t]))return t}function nr(o,i){for(var t=0;t<o.length;t++)if(i(o[t]))return t}function ar(o){return function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.match(o.matchPattern);if(!r)return null;var e=r[0],a=i.match(o.parsePattern);if(!a)return null;var n=o.valueCallback?o.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var u=i.slice(e.length);return{value:n,rest:u}}}var ir=/^(\d+)(th|st|nd|rd)?/i,or=/\d+/i,ur={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},sr={any:[/^b/i,/^(a|c)/i]},lr={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cr={any:[/1/i,/2/i,/3/i,/4/i]},fr={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dr={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},vr={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hr={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mr={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wr={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gr={ordinalNumber:ar({matchPattern:ir,parsePattern:or,valueCallback:function(i){return parseInt(i,10)}}),era:le({matchPatterns:ur,defaultMatchWidth:"wide",parsePatterns:sr,defaultParseWidth:"any"}),quarter:le({matchPatterns:lr,defaultMatchWidth:"wide",parsePatterns:cr,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:le({matchPatterns:fr,defaultMatchWidth:"wide",parsePatterns:dr,defaultParseWidth:"any"}),day:le({matchPatterns:vr,defaultMatchWidth:"wide",parsePatterns:hr,defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:mr,defaultMatchWidth:"any",parsePatterns:wr,defaultParseWidth:"any"})};const pr=gr;var yr={code:"en-US",formatDistance:It,formatLong:Ft,formatRelative:Bt,localize:tr,match:pr,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ze=yr;var br=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xr=/^'([^]*?)'?$/,Pr=/''/g,Cr=/[a-zA-Z]/;function Dr(o,i,t){var r,e,a,n,u,l,f,w,d,C,x,U,I,A,L,F,G,V;M(2,arguments);var ne=String(i),N=re(),j=(r=(e=t==null?void 0:t.locale)!==null&&e!==void 0?e:N.locale)!==null&&r!==void 0?r:ze,Q=W((a=(n=(u=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(f=t.locale)===null||f===void 0||(w=f.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&u!==void 0?u:N.firstWeekContainsDate)!==null&&n!==void 0?n:(d=N.locale)===null||d===void 0||(C=d.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(Q>=1&&Q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=W((x=(U=(I=(A=t==null?void 0:t.weekStartsOn)!==null&&A!==void 0?A:t==null||(L=t.locale)===null||L===void 0||(F=L.options)===null||F===void 0?void 0:F.weekStartsOn)!==null&&I!==void 0?I:N.weekStartsOn)!==null&&U!==void 0?U:(G=N.locale)===null||G===void 0||(V=G.options)===null||V===void 0?void 0:V.weekStartsOn)!==null&&x!==void 0?x:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!j.localize)throw new RangeError("locale must contain localize property");if(!j.formatLong)throw new RangeError("locale must contain formatLong property");var B=E(o);if(!xt(B))throw new RangeError("Invalid time value");var ae=$e(B),ie=Fe(B,ae),oe={firstWeekContainsDate:Q,weekStartsOn:S,locale:j,_originalDate:B},we=ne.match(Tr).map(function(Y){var q=Y[0];if(q==="p"||q==="P"){var z=be[q];return z(Y,j.formatLong)}return Y}).join("").match(br).map(function(Y){if(Y==="''")return"'";var q=Y[0];if(q==="'")return Or(Y);var z=Yt[q];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&Ve(Y)&&ve(Y,i,String(o)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Ge(Y)&&ve(Y,i,String(o)),z(ie,Y,j.localize,oe);
1if(q.match(Cr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+q+"`");return Y}).join("");return we}function Or(o){var i=o.match(xr);return i?i[1].replace(Pr,"'"):o}function kr(o,i){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(o[t]=i[t]);return o}function Ie(o,i){(i==null||i>o.length)&&(i=o.length);for(var t=0,r=new Array(i);t<i;t++)r[t]=o[t];return r}function Mr(o,i){if(o){if(typeof o=="string")return Ie(o,i);var t=Object.prototype.toString.call(o).slice(8,-1);if(t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set")return Array.from(o);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ie(o,i)}}function Le(o,i){var t=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Mr(o))||i&&o&&typeof o.length=="number"){t&&(o=t);var r=0,e=function(){};return{s:e,n:function(){return r>=o.length?{done:!0}:{done:!1,value:o[r++]}},e:function(f){throw f},f:e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,n=!1,u;return{s:function(){t=t.call(o)},n:function(){var f=t.next();return a=f.done,f},e:function(f){n=!0,u=f},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(n)throw u}}}}function c(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Te(o,i){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},Te(o,i)}function g(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&Te(o,i)}function he(o){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},he(o)}function Ur(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _r(o,i){if(i&&(ee(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(o)}function p(o){var i=Ur();return function(){var r=he(o),e;if(i){var a=he(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return _r(this,e)}}function h(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function Yr(o,i){if(ee(o)!=="object"||o===null)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,i||"default");if(ee(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(o)}function Ke(o){var i=Yr(o,"string");return ee(i)==="symbol"?i:String(i)}function je(o,i){for(var t=0;t<i.length;t++){var r=i[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,Ke(r.key),r)}}function m(o,i,t){return i&&je(o.prototype,i),t&&je(o,t),Object.defineProperty(o,"prototype",{writable:!1}),o}function s(o,i,t){return i=Ke(i),i in o?Object.defineProperty(o,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[i]=t,o}var Er=10,Ze=function(){function o(){h(this,o),s(this,"priority",void 0),s(this,"subPriority",0)}return m(o,[{key:"validate",value:function(t,r){return!0}}]),o}(),Nr=function(o){g(t,o);var i=p(t);function t(r,e,a,n,u){var l;return h(this,t),l=i.call(this),l.value=r,l.validateValue=e,l.setValue=a,l.priority=n,u&&(l.subPriority=u),l}return m(t,[{key:"validate",value:function(e,a){return this.validateValue(e,this.value,a)}},{key:"set",value:function(e,a,n){return this.setValue(e,a,this.value,n)}}]),t}(Ze),Wr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",Er),s(c(r),"subPriority",-1),r}return m(t,[{key:"set",value:function(e,a){if(a.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),t}(Ze),y=function(){function o(){h(this,o),s(this,"incompatibleTokens",void 0),s(this,"priority",void 0),s(this,"subPriority",void 0)}return m(o,[{key:"run",value:function(t,r,e,a){var n=this.parse(t,r,e,a);return n?{setter:new Nr(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,e){return!0}}]),o}(),Ar=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",140),s(c(r),"incompatibleTokens",["R","u","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,a,n){return a.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),O={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/}
vendor: 26,391 bytes, line 2
2,R={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function k(o,i){return o&&{value:i(o.value),rest:o.rest}}function P(o,i){var t=i.match(o);return t?{value:parseInt(t[0],10),rest:i.slice(t[0].length)}:null}function $(o,i){var t=i.match(o);if(!t)return null;if(t[0]==="Z")return{value:0,rest:i.slice(1)};var r=t[1]==="+"?1:-1,e=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(e*yt+a*pt+n*bt),rest:i.slice(t[0].length)}}function Je(o){return P(O.anyDigitsSigned,o)}function D(o,i){switch(o){case 1:return P(O.singleDigit,i);case 2:return P(O.twoDigits,i);case 3:return P(O.threeDigits,i);case 4:return P(O.fourDigits,i);default:return P(new RegExp("^\\d{1,"+o+"}"),i)}}function me(o,i){switch(o){case 1:return P(O.singleDigitSigned,i);case 2:return P(O.twoDigitsSigned,i);case 3:return P(O.threeDigitsSigned,i);case 4:return P(O.fourDigitsSigned,i);default:return P(new RegExp("^-?\\d{1,"+o+"}"),i)}}function Pe(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function et(o,i){var t=i>0,r=t?i:1-i,e;if(r<=50)e=o||100;else{var a=r+50,n=Math.floor(a/100)*100,u=o>=a%100;e=o+n-(u?100:0)}return t?e:1-e}function tt(o){return o%400===0||o%4===0&&o%100!==0}var qr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){var u=function(f){return{year:f,isTwoDigitYear:a==="yy"}};switch(a){case"y":return k(D(4,e),u);case"yo":return k(n.ordinalNumber(e,{unit:"year"}),u);default:return k(D(a.length,e),u)}}},{key:"validate",value:function(e,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(e,a,n){var u=e.getUTCFullYear();if(n.isTwoDigitYear){var l=et(n.year,u);return e.setUTCFullYear(l,0,1),e.setUTCHours(0,0,0,0),e}var f=!("era"in a)||a.era===1?n.year:1-n.year;return e.setUTCFullYear(f,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),Hr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){var u=function(f){return{year:f,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return k(D(4,e),u);case"Yo":return k(n.ordinalNumber(e,{unit:"year"}),u);default:return k(D(a.length,e),u)}}},{key:"validate",value:function(e,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(e,a,n,u){var l=xe(e,u);if(n.isTwoDigitYear){var f=et(n.year,l);return e.setUTCFullYear(f,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,u)}var w=!("era"in a)||a.era===1?n.year:1-n.year;return e.setUTCFullYear(w,0,u.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Z(e,u)}}]),t}(y),Ir=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a){return me(a==="R"?4:a.length,e)}},{key:"set",value:function(e,a,n){var u=new Date(0);return u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0),te(u)}}]),t}(y),Lr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",130),s(c(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a){return me(a==="u"?4:a.length,e)}},{key:"set",value:function(e,a,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),jr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",120),s(c(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"Q":case"QQ":return D(a.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,a){return a>=1&&a<=4}},{key:"set",value:function(e,a,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),Rr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",120),s(c(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"q":case"qq":return D(a.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,a){return a>=1&&a<=4}},{key:"set",value:function(e,a,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),$r=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),s(c(r),"priority",110),r}return m(t,[{key:"parse",value:function(e,a,n){var u=function(f){return f-1};switch(a){case"M":return k(P(O.month,e),u);case"MM":return k(D(2,e),u);case"Mo":return k(n.ordinalNumber(e,{unit:"month"}),u);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,a){return a>=0&&a<=11}},{key:"set",value:function(e,a,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),t}(y),Fr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",110),s(c(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){var u=function(f){return f-1};switch(a){case"L":return k(P(O.month,e),u);case"LL":return k(D(2,e),u);case"Lo":return k(n.ordinalNumber(e,{unit:"month"}),u);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,a){return a>=0&&a<=11}},{key:"set",value:function(e,a,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Qr(o,i,t){M(2,arguments);var r=E(o),e=W(i),a=Be(r,t)-e;return r.setUTCDate(r.getUTCDate()-a*7),r}var Sr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",100),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"w":return P(O.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=1&&a<=53}},{key:"set",value:function(e,a,n,u){return Z(Qr(e,n,u),u)}}]),t}(y);function Br(o,i){M(2,arguments);var t=E(o),r=W(i),e=Se(t)-r;return t.setUTCDate(t.getUTCDate()-e*7),t}var Xr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",100),s(c(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"I":return P(O.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=1&&a<=53}},{key:"set",value:function(e,a,n){return te(Br(e,n))}}]),t}(y),Gr=[31,28,31,30,31,30,31,31,30,31,30,31],Vr=[31,29,31,30,31,30,31,31,30,31,30,31],zr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",90),s(c(r),"subPriority",1),s(c(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"d":return P(O.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){var n=e.getUTCFullYear(),u=tt(n),l=e.getUTCMonth();return u?a>=1&&a<=Vr[l]:a>=1&&a<=Gr[l]}},{key:"set",value:function(e,a,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),t}(y),Kr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",90),s(c(r),"subpriority",1),s(c(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"D":case"DD":return P(O.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){var n=e.getUTCFullYear(),u=tt(n);return u?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(e,a,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),t}(y);function Ce(o,i,t){var r,e,a,n,u,l,f,w;M(2,arguments);var d=re(),C=W((r=(e=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(u=t.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&e!==void 0?e:(f=d.locale)===null||f===void 0||(w=f.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&r!==void 0?r:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=E(o),U=W(i),I=x.getUTCDay(),A=U%7,L=(A+7)%7,F=(L<C?7:0)+U-I;return x.setUTCDate(x.getUTCDate()+F),x}var Zr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,a){return a>=0&&a<=6}},{key:"set",value:function(e,a,n,u){return e=Ce(e,n,u),e.setUTCHours(0,0,0,0),e}}]),t}(y),Jr=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n,u){var l=function(w){var d=Math.floor((w-1)/7)*7;return(w+u.weekStartsOn+6)%7+d};switch(a){case"e":case"ee":return k(D(a.length,e),l);case"eo":return k(n.ordinalNumber(e,{unit:"day"}),l);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,a){return a>=0&&a<=6}},{key:"set",value:function(e,a,n,u){return e=Ce(e,n,u),e.setUTCHours(0,0,0,0),e}}]),t}(y),en=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n,u){var l=function(w){var d=Math.floor((w-1)/7)*7;return(w+u.weekStartsOn+6)%7+d};switch(a){case"c":case"cc":return k(D(a.length,e),l);case"co":return k(n.ordinalNumber(e,{unit:"day"}),l);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,a){return a>=0&&a<=6}},{key:"set",value:function(e,a,n,u){return e=Ce(e,n,u),e.setUTCHours(0,0,0,0),e}}]),t}(y);function tn(o,i){M(2,arguments);var t=W(i);t%7===0&&(t=t-7);var r=1,e=E(o),a=e.getUTCDay(),n=t%7,u=(n+7)%7,l=(u<r?7:0)+t-a;return e.setUTCDate(e.getUTCDate()+l),e}var rn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",90),s(c(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){var u=function(f){return f===0?7:f};switch(a){case"i":case"ii":return D(a.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return k(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),u);case"iiiii":return k(n.day(e,{width:"narrow",context:"formatting"}),u);case"iiiiii":return k(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),u);case"iiii":default:return k(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),u)}}},{key:"validate",value:function(e,a){return a>=1&&a<=7}},{key:"set",value:function(e,a,n){return e=tn(e,n),e.setUTCHours(0,0,0,0),e}}]),t}(y),nn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,a,n){return e.setUTCHours(Pe(n),0,0,0),e}}]),t}(y),an=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,a,n){return e.setUTCHours(Pe(n),0,0,0),e}}]),t}(y),on=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",80),s(c(r),"incompatibleTokens",["a","b","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,a,n){return e.setUTCHours(Pe(n),0,0,0),e}}]),t}(y),un=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["H","K","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"h":return P(O.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=1&&a<=12}},{key:"set",value:function(e,a,n){var u=e.getUTCHours()>=12;return u&&n<12?e.setUTCHours(n+12,0,0,0):!u&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e}}]),t}(y),sn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"H":return P(O.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=0&&a<=23}},{key:"set",value:function(e,a,n){return e.setUTCHours(n,0,0,0),e}}]),t}(y),ln=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["h","H","k","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"K":return P(O.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=0&&a<=11}},{key:"set",value:function(e,a,n){var u=e.getUTCHours()>=12;return u&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),t}(y),cn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",70),s(c(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"k":return P(O.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=1&&a<=24}},{key:"set",value:function(e,a,n){var u=n<=24?n%24:n;return e.setUTCHours(u,0,0,0),e}}]),t}(y),fn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",60),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"m":return P(O.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=0&&a<=59}},{key:"set",value:function(e,a,n){return e.setUTCMinutes(n,0,0),e}}]),t}(y),dn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",50),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,a,n){switch(a){case"s":return P(O.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return D(a.length,e)}}},{key:"validate",value:function(e,a){return a>=0&&a<=59}},{key:"set",value:function(e,a,n){return e.setUTCSeconds(n,0),e}}]),t}(y),vn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",30),s(c(r),"incompatibleTokens",["t","T"]),r}return m(t,[{key:"parse",value:function(e,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return k(D(a.length,e),n)}},{key:"set",value:function(e,a,n){return e.setUTCMilliseconds(n),e}}]),t}(y),hn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",10),s(c(r),"incompatibleTokens",["t","T","x"]),r}return m(t,[{key:"parse",value:function(e,a){switch(a){case"X":return $(R.basicOptionalMinutes,e);case"XX":return $(R.basic,e);case"XXXX":return $(R.basicOptionalSeconds,e);case"XXXXX":return $(R.extendedOptionalSeconds,e);case"XXX":default:return $(R.extended,e)}}},{key:"set",value:function(e,a,n){return a.timestampIsSet?e:new Date(e.getTime()-n)}}]),t}(y),mn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",10),s(c(r),"incompatibleTokens",["t","T","X"]),r}return m(t,[{key:"parse",value:function(e,a){switch(a){case"x":return $(R.basicOptionalMinutes,e);case"xx":return $(R.basic,e);case"xxxx":return $(R.basicOptionalSeconds,e);case"xxxxx":return $(R.extendedOptionalSeconds,e);case"xxx":default:return $(R.extended,e)}}},{key:"set",value:function(e,a,n){return a.timestampIsSet?e:new Date(e.getTime()-n)}}]),t}(y),wn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",40),s(c(r),"incompatibleTokens","*"),r}return m(t,[{key:"parse",value:function(e){return Je(e)}},{key:"set",value:function(e,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(y),gn=function(o){g(t,o);var i=p(t);function t(){var r;h(this,t);for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return r=i.call.apply(i,[this].concat(a)),s(c(r),"priority",20),s(c(r),"incompatibleTokens","*"),r}return m(t,[{key:"parse",value:function(e){return Je(e)}},{key:"set",value:function(e,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(y),pn={G:new Ar,y:new qr,Y:new Hr,R:new Ir,u:new Lr,Q:new jr,q:new Rr,M:new $r,L:new Fr,w:new Sr,I:new Xr,d:new zr,D:new Kr,E:new Zr,e:new Jr,c:new en,i:new rn,a:new nn,b:new an,B:new on,h:new un,H:new sn,K:new ln,k:new cn,m:new fn,s:new dn,S:new vn,X:new hn,x:new mn,t:new wn,T:new gn},yn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tn=/^'([^]*?)'?$/,xn=/''/g,Pn=/\S/,Cn=/[a-zA-Z]/;function Dn(o,i,t,r){var e,a,n,u,l,f,w,d,C,x,U,I,A,L,F,G,V,ne;M(3,arguments);var N=String(o),j=String(i),Q=re(),S=(e=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:Q.locale)!==null&&e!==void 0?e:ze;if(!S.match)throw new RangeError("locale must contain match property");var B=W((n=(u=(l=(f=r==null?void 0:r.firstWeekContainsDate)!==null&&f!==void 0?f:r==null||(w=r.locale)===null||w===void 0||(d=w.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:Q.firstWeekContainsDate)!==null&&u!==void 0?u:(C=Q.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ae=W((U=(I=(A=(L=r==null?void 0:r.weekStartsOn)!==null&&L!==void 0?L:r==null||(F=r.locale)===null||F===void 0||(G=F.options)===null||G===void 0?void 0:G.weekStartsOn)!==null&&A!==void 0?A:Q.weekStartsOn)!==null&&I!==void 0?I:(V=Q.locale)===null||V===void 0||(ne=V.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&U!==void 0?U:0);if(!(ae>=0&&ae<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(j==="")return N===""?E(t):new Date(NaN);
2var ie={firstWeekContainsDate:B,weekStartsOn:ae,locale:S},oe=[new Wr],we=j.match(bn).map(function(_){var T=_[0];if(T in be){var H=be[T];return H(_,S.formatLong)}return _}).join("").match(yn),Y=[],q=Le(we),z;try{var rt=function(){var T=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ve(T)&&ve(T,j,o),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ge(T)&&ve(T,j,o);var H=T[0],de=pn[H];if(de){var Ue=de.incompatibleTokens;if(Array.isArray(Ue)){var _e=Y.find(function(Ye){return Ue.includes(Ye.token)||Ye.token===H});if(_e)throw new RangeError("The format string mustn't contain `".concat(_e.fullToken,"` and `").concat(T,"` at the same time"))}else if(de.incompatibleTokens==="*"&&Y.length>0)throw new RangeError("The format string mustn't contain `".concat(T,"` and any other token at the same time"));Y.push({token:H,fullToken:T});var pe=de.run(N,T,S.match,ie);if(!pe)return{v:new Date(NaN)};oe.push(pe.setter),N=pe.rest}else{if(H.match(Cn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");if(T==="''"?T="'":H==="'"&&(T=On(T)),N.indexOf(T)===0)N=N.slice(T.length);else return{v:new Date(NaN)}}};for(q.s();!(z=q.n()).done;){var De=rt();if(ee(De)==="object")return De.v}}catch(_){q.e(_)}finally{q.f()}if(N.length>0&&Pn.test(N))return new Date(NaN);var nt=oe.map(function(_){return _.priority}).sort(function(_,T){return T-_}).filter(function(_,T,H){return H.indexOf(_)===T}).map(function(_){return oe.filter(function(T){return T.priority===_}).sort(function(T,H){return H.subPriority-T.subPriority})}).map(function(_){return _[0]}),ge=E(t);if(isNaN(ge.getTime()))return new Date(NaN);var ue=Fe(ge,$e(ge)),Oe={},ce=Le(nt),ke;try{for(ce.s();!(ke=ce.n()).done;){var Me=ke.value;if(!Me.validate(ue,ie))return new Date(NaN);var fe=Me.set(ue,Oe,ie);Array.isArray(fe)?(ue=fe[0],kr(Oe,fe[1])):ue=fe}}catch(_){ce.e(_)}finally{ce.f()}return ue}function On(o){return o.match(Tn)[1].replace(xn,"'")}function Re(o){const i=Dn(`${o} -04`,"yyyy-MM-dd X",new Date);return Dr(i,"dd-MM-yyyy")}function kn(o){switch(o){case"africa":return"Africa";case"asia":return"Asia";case"europe":return"Europe";case"northAmerica":return"North America";case"southAmerica":return"South America";case"oceania":return"Oceania"}}function Mn(o){switch(o){case"process":return"Process";case"research":return"Research";case"event":return"Event";case"siteAnnouncement":return"Site Announcement";case"siteVisit":return"Site Visit";case"news":return"News";case"archive":return"Archive"}}function Un(o){var r,e,a;const i=ft(n=>n.open),t=[];return o.region&&t.push(o.region),o.continent&&t.push(kn(o.continent)),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-x-8 gap-y-4",children:[v.jsxs("div",{children:[v.jsx("div",{className:"md:hidden mb-4 font-mono text-sm text-foreground/50 space-y-4",children:v.jsxs("div",{children:[v.jsx("div",{children:Re(o.date)}),v.jsx("h3",{children:o.title}),v.jsx("div",{children:o.location}),v.jsx("div",{children:t.join(", ")})]})}),o.research&&v.jsxs("div",{className:"relative space-y-2",children:[v.jsx(at,{flipId:o.research.slug,children:v.jsx(Ne,{className:"relative bg-black/5",src:Ee(o.research.image.url),layout:"constrained",sizes:"30vh",alt:(r=o.research.image)==null?void 0:r.alt,width:(e=o.research.image)==null?void 0:e.width,height:(a=o.research.image)==null?void 0:a.height})}),v.jsx("button",{className:"after:absolute after:inset-0 after:z-10 text-left text-sm font-mono uppercase w-4/5",onClick:()=>{o.research&&i(o.research)},children:v.jsx("h3",{className:"uppercase",children:o.research.title})})]}),!o.research&&o.image&&v.jsx("div",{className:"",children:v.jsx(Ne,{className:"mix-blend-multiply",src:Ee(o.image.url),sizes:"30vh",width:o.image.width,height:o.image.height})})]}),v.jsxs("div",{className:"md:col-start-2 md:col-span-2 lg:col-start-3 lg:col-span-2",children:[v.jsx("div",{className:"hidden md:block mb-4 font-mono text-sm text-foreground/50 space-y-4",children:v.jsxs("div",{children:[v.jsx("div",{children:Re(o.date)}),v.jsx("h3",{children:o.title}),v.jsx("div",{children:o.location}),v.jsx("div",{children:t.join(", ")})]})}),v.jsxs("div",{className:"space-y-4",children:[v.jsx("div",{children:v.jsx(ct,{blocks:o.blocks}
2)}),o.category&&v.jsx("div",{className:"font-mono text-sm text-foreground/50 lowercase",children:Mn(o.category)})]})]})]})}const _n=async(o=0,i=20)=>await it({query:"page('notes')",select:{title:!0,slug:!0,children:{query:"page.children.sortBy('date', 'desc')",pagination:{page:o,limit:i},select:{title:!0,slug:!0,text:"page.text.kirbytext",date:!0,location:!0,region:!0,continent:!0,image:{query:"page.cover",select:{url:!0,alt:!0,width:!0,height:!0,ratio:!0}},blocks:"page.blocks.toBlocks.toHtml",category:!0,research:{query:"page.research.toPage",select:{title:!0,slug:!0,text:"page.text.kirbytext",tags:"page.tags.split",image:{query:"page.cover",select:{url:!0,alt:!0,width:!0,height:!0,ratio:!0}}}}}}}});function Yn(o){return(i,t)=>t&&t.children.pagination.page==t.children.pagination.pages?null:[o,i]}function En({data:o}){const{data:i,size:t,setSize:r,isLoading:e}=vt(Yn("getNotesData"),([,d])=>_n(d+1),{fallbackData:[o],revalidateFirstPage:!1}),{isEmpty:a,isLoadingMore:n,hasNextPage:u}=ht({data:i,size:t,isLoading:e}),l=i?new Array().concat(...i.map(d=>d.children.data)):new Array,f=ot(()=>{u&&r(d=>d+1)}),w=ut(([d])=>{f.current()},{threshold:0,rootMargin:"0% 0% 100%"});return v.jsxs(We.Provider,{children:[v.jsx(dt,{}),v.jsxs(st,{className:"space-y-16 pb-16",children:[v.jsx("div",{className:"font-serif text-lg",children:v.jsx("h2",{children:o.title})}),v.jsx("div",{className:"space-y-28",children:l.map(d=>v.jsx(Un,{...d},d.slug))}),v.jsxs("div",{children:[n&&v.jsx(mt,{}),a&&v.jsx("p",{children:"No notes"}),u&&v.jsx("button",{ref:w,disabled:n,onClick:()=>r(d=>d+1),children:"More notes"})]})]}),v.jsx(We,{})]})}const Nn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Rn=[{configName:"onRenderClient",importPath:"/renderer/+onRenderClient.tsx",isValueFile:!0,exportValues:lt},{configName:"Page",importPath:"/pages/notes/+Page.tsx",isValueFile:!0,exportValues:Nn}];export{Rn as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.