react-spectrum-charts-capstone-venn
Version:
Declarative library for composing Spectrum visualizations in React.
2 lines • 510 kB
JavaScript
/*! For license information please see rc.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@spectrum-charts/constants"),require("react"),require("@adobe/react-spectrum"),require("@spectrum-charts/themes"),require("vega"),require("vega-lite"),require("@spectrum-charts/vega-spec-builder"),require("@spectrum-charts/utils"),require("react-dom")):"function"==typeof define&&define.amd?define(["@spectrum-charts/constants","react","@adobe/react-spectrum","@spectrum-charts/themes","vega","vega-lite","@spectrum-charts/vega-spec-builder","@spectrum-charts/utils","react-dom"],t):"object"==typeof exports?exports.reactSpectrumCharts=t(require("@spectrum-charts/constants"),require("react"),require("@adobe/react-spectrum"),require("@spectrum-charts/themes"),require("vega"),require("vega-lite"),require("@spectrum-charts/vega-spec-builder"),require("@spectrum-charts/utils"),require("react-dom")):e.reactSpectrumCharts=t(e["@spectrum-charts/constants"],e.react,e["@adobe/react-spectrum"],e["@spectrum-charts/themes"],e.vega,e["vega-lite"],e["@spectrum-charts/vega-spec-builder"],e["@spectrum-charts/utils"],e["react-dom"])}(this,((e,t,r,n,o,i,a,s,l)=>(()=>{var u={7957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.A4uGraphBarVertical=function(e){var t=i({},e);return o.default.createElement("svg",i({viewBox:"0 0 36 36"},t,t),o.default.createElement("path",{fillRule:"evenodd",d:"M26,3V30h6V3a1,1,0,0,0-1-1H27A1,1,0,0,0,26,3Z"}),o.default.createElement("path",{fillRule:"evenodd",d:"M18,13V30h6V13a1,1,0,0,0-1-1H19A1,1,0,0,0,18,13Z"}),o.default.createElement("path",{fillRule:"evenodd",d:"M10,21v9h6V21a1,1,0,0,0-1-1H11A1,1,0,0,0,10,21Z"}),o.default.createElement("path",{fillRule:"evenodd",d:"M2,25v5H8V25a1,1,0,0,0-1-1H3A1,1,0,0,0,2,25Z"}),o.default.createElement("rect",{fillRule:"evenodd",height:"2",rx:"0.5",ry:"0.5",width:"34",y:"32"}))};var n,o=(n=r(9155))&&n.__esModule?n:{default:n};function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}},4561:(e,t,r)=>{var n=r(6759);function o(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function i(e,t){return e-t*Math.floor(e/t)}o(e.exports,"CalendarDate",(()=>Ye)),o(e.exports,"CalendarDateTime",(()=>Qe)),o(e.exports,"Time",(()=>qe)),o(e.exports,"ZonedDateTime",(()=>tt)),o(e.exports,"GregorianCalendar",(()=>d)),o(e.exports,"JapaneseCalendar",(()=>lt)),o(e.exports,"BuddhistCalendar",(()=>ct)),o(e.exports,"TaiwanCalendar",(()=>mt)),o(e.exports,"PersianCalendar",(()=>vt)),o(e.exports,"IndianCalendar",(()=>bt)),o(e.exports,"IslamicCivilCalendar",(()=>Ct)),o(e.exports,"IslamicTabularCalendar",(()=>Pt)),o(e.exports,"IslamicUmalquraCalendar",(()=>Rt)),o(e.exports,"HebrewCalendar",(()=>Gt)),o(e.exports,"EthiopicCalendar",(()=>qt)),o(e.exports,"EthiopicAmeteAlemCalendar",(()=>Zt)),o(e.exports,"CopticCalendar",(()=>Qt)),o(e.exports,"createCalendar",(()=>er)),o(e.exports,"toCalendarDate",(()=>re)),o(e.exports,"toCalendarDateTime",(()=>ne)),o(e.exports,"toTime",(()=>oe)),o(e.exports,"toCalendar",(()=>ie)),o(e.exports,"toZoned",(()=>ae)),o(e.exports,"toTimeZone",(()=>se)),o(e.exports,"toLocalTimeZone",(()=>le)),o(e.exports,"fromDate",(()=>te)),o(e.exports,"fromAbsolute",(()=>ee)),o(e.exports,"isSameDay",(()=>f)),o(e.exports,"isSameMonth",(()=>h)),o(e.exports,"isSameYear",(()=>m)),o(e.exports,"isEqualDay",(()=>g)),o(e.exports,"isEqualMonth",(()=>y)),o(e.exports,"isEqualYear",(()=>v)),o(e.exports,"isToday",(()=>b)),o(e.exports,"getDayOfWeek",(()=>E)),o(e.exports,"now",(()=>w)),o(e.exports,"today",(()=>S)),o(e.exports,"getHoursInDay",(()=>_)),o(e.exports,"getLocalTimeZone",(()=>C)),o(e.exports,"startOfMonth",(()=>P)),o(e.exports,"startOfWeek",(()=>D)),o(e.exports,"startOfYear",(()=>N)),o(e.exports,"endOfMonth",(()=>I)),o(e.exports,"endOfWeek",(()=>R)),o(e.exports,"endOfYear",(()=>L)),o(e.exports,"getMinimumMonthInYear",(()=>k)),o(e.exports,"getMinimumDayInMonth",(()=>A)),o(e.exports,"getWeeksInMonth",(()=>B)),o(e.exports,"minDate",(()=>z)),o(e.exports,"maxDate",(()=>U)),o(e.exports,"isWeekend",(()=>G)),o(e.exports,"isWeekday",(()=>$)),o(e.exports,"parseDate",(()=>Re)),o(e.exports,"parseDateTime",(()=>Fe)),o(e.exports,"parseTime",(()=>De)),o(e.exports,"parseAbsolute",(()=>Be)),o(e.exports,"parseAbsoluteToLocal",(()=>ze)),o(e.exports,"parseZonedDateTime",(()=>je)),o(e.exports,"parseDuration",(()=>Ve)),o(e.exports,"DateFormatter",(()=>rr));function a(e,t,r,n){let o=(t=l(e,t))-1,i=-2;return r<=2?i=0:s(t)&&(i=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+i+n)}function s(e){return e%4==0&&(e%100!=0||e%400==0)}function l(e,t){return"BC"===e?1-t:t}function u(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const c={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class d{fromJulianDay(e){let t=e,r=t-1721426,n=Math.floor(r/146097),o=i(r,146097),l=Math.floor(o/36524),c=i(o,36524),d=Math.floor(c/1461),p=i(c,1461),f=Math.floor(p/365),h=400*n+100*l+4*d+f+(4!==l&&4!==f?1:0),[m,g]=u(h),y=t-a(m,g,1,1),v=2;t<a(m,g,3,1)?v=0:s(g)&&(v=1);let b=Math.floor((12*(y+v)+373)/367),E=t-a(m,g,b,1)+1;return new Ye(m,g,b,E)}toJulianDay(e){return a(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return c[s(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return s(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const p={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function f(e,t){return t=ie(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function h(e,t){return t=ie(t,e.calendar),e=P(e),t=P(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function m(e,t){return t=ie(t,e.calendar),e=N(e),t=N(t),e.era===t.era&&e.year===t.year}function g(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function y(e,t){return e=P(e),t=P(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month}function v(e,t){return e=N(e),t=N(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year}function b(e,t){return f(e,S(t))}function E(e,t){let r=e.calendar.toJulianDay(e),n=Math.ceil(r+1-function(e){let t=j(e);return t&&p[t]||0}(t))%7;return n<0&&(n+=7),n}function w(e){return ee(Date.now(),e)}function S(e){return re(w(e))}function x(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function O(e,t){return T(e)-T(t)}function T(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}function _(e,t){let r=Z(e,t);return(Z(e.add({days:1}),t)-r)/36e5}let M=null;function C(){return null==M&&(M=(new Intl.DateTimeFormat).resolvedOptions().timeZone),M}function P(e){return e.subtract({days:e.day-1})}function I(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function N(e){return P(e.subtract({months:e.month-1}))}function L(e){return I(e.add({months:e.calendar.getMonthsInYear(e)-e.month}))}function k(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function A(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function D(e,t){let r=E(e,t);return e.subtract({days:r})}function R(e,t){return D(e,t).add({days:6})}const F=new Map;function j(e){if(Intl.Locale){let t=F.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&F.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function B(e,t){let r=e.calendar.getDaysInMonth(e);return Math.ceil((E(P(e),t)+r)/7)}function z(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function U(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const H={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function G(e,t){let r=e.calendar.toJulianDay(e),n=Math.ceil(r+1)%7;n<0&&(n+=7);let o=j(t),[i,a]=H[o]||[6,0];return n===i||n===a}function $(e,t){return!G(e,t)}function X(e){return V(l((e=ie(e,new d)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function V(e,t,r,n,o,i,a){let s=new Date;return s.setUTCHours(n,o,i,a),s.setUTCFullYear(e,t-1,r),s.getTime()}function W(e,t){if("UTC"===t)return 0;if(e>0&&t===C())return-6e4*new Date(e).getTimezoneOffset();let{year:r,month:n,day:o,hour:i,minute:a,second:s}=Y(e,t);return V(r,n,o,i,a,s,0)-1e3*Math.floor(e/1e3)}const J=new Map;function Y(e,t){let r=J.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),J.set(t,r));let n=r.formatToParts(new Date(e)),o={};for(let e of n)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?1-o.year:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}const K=864e5;function q(e,t,r,n){return(r===n?[r]:[r,n]).filter((r=>function(e,t,r){let n=Y(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}(e,t,r)))}function Z(e,t,r="compatible"){let n=ne(e);if("UTC"===t)return X(n);if(t===C()&&"compatible"===r){n=ie(n,new d);let e=new Date,t=l(n.era,n.year);return e.setFullYear(t,n.month-1,n.day),e.setHours(n.hour,n.minute,n.second,n.millisecond),e.getTime()}let o=X(n),i=W(o-K,t),a=W(o+K,t),s=q(n,t,o-i,o-a);if(1===s.length)return s[0];if(s.length>1)switch(r){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function Q(e,t,r="compatible"){return new Date(Z(e,t,r))}function ee(e,t){let r=W(e,t),n=new Date(e+r),o=n.getUTCFullYear(),i=n.getUTCMonth()+1,a=n.getUTCDate(),s=n.getUTCHours(),l=n.getUTCMinutes(),u=n.getUTCSeconds(),c=n.getUTCMilliseconds();return new tt(o,i,a,t,r,s,l,u,c)}function te(e,t){return ee(e.getTime(),t)}function re(e){return new Ye(e.calendar,e.era,e.year,e.month,e.day)}function ne(e,t){let r=0,n=0,o=0,i=0;if("timeZone"in e)({hour:r,minute:n,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:o,millisecond:i}=t),new Qe(e.calendar,e.era,e.year,e.month,e.day,r,n,o,i)}function oe(e){return new qe(e.hour,e.minute,e.second,e.millisecond)}function ie(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,he(n),n}function ae(e,t,r){return e instanceof tt?e.timeZone===t?e:se(e,t):ee(Z(e,t,r),t)}function se(e,t){return ie(ee(X(e)-e.offset,t),e.calendar)}function le(e){return se(e,C())}const ue=36e5;function ce(e,t){let r=e.copy(),n="hour"in r?we(r,t):0;de(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,pe(r),fe(r),r.day+=7*(t.weeks||0),r.day+=t.days||0,r.day+=n,function(e){for(;e.day<1;)e.month--,pe(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,pe(e)}(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var i,a;let e=null===(i=(a=r.calendar).isInverseEra)||void 0===i?void 0:i.call(a,r);r.year=o,r.month=e?1:r.calendar.getMonthsInYear(r),r.day=e?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let s=r.calendar.getMonthsInYear(r);return r.month>s&&(r.month=s,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function de(e,t){var r,n;(null===(r=(n=e.calendar).isInverseEra)||void 0===r?void 0:r.call(n,e))&&(t=-t),e.year+=t}function pe(e){for(;e.month<1;)de(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,de(e,1)}function fe(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function he(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),fe(e)}function me(e){let t={};for(let r in e)"number"==typeof e[r]&&(t[r]=-e[r]);return t}function ge(e,t){return ce(e,me(t))}function ye(e,t){let r=e.copy();return null!=t.era&&(r.era=t.era),null!=t.year&&(r.year=t.year),null!=t.month&&(r.month=t.month),null!=t.day&&(r.day=t.day),he(r),r}function ve(e,t){let r=e.copy();return null!=t.hour&&(r.hour=t.hour),null!=t.minute&&(r.minute=t.minute),null!=t.second&&(r.second=t.second),null!=t.millisecond&&(r.millisecond=t.millisecond),be(r),r}function be(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ee(e,t){let r=e%t;return r<0&&(r+=t),r}function we(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ee(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ee(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ee(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ee(e.hour,24),t}(e)}function Se(e,t){let r=e.copy();return we(r,t),r}function xe(e,t,r,n){let o=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw new Error("Invalid era: "+e.era);i=Te(i,r,0,t.length-1,null==n?void 0:n.round),o.era=t[i],he(o);break}case"year":var i,a;(null===(i=(a=o.calendar).isInverseEra)||void 0===i?void 0:i.call(a,o))&&(r=-r),o.year=Te(e.year,r,-1/0,9999,null==n?void 0:n.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Te(e.month,r,1,e.calendar.getMonthsInYear(e),null==n?void 0:n.round);break;case"day":o.day=Te(e.day,r,1,e.calendar.getDaysInMonth(e),null==n?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),he(o),o}function Oe(e,t,r,n){let o=e.copy();switch(t){case"hour":{let t=e.hour,i=0,a=23;if(12===(null==n?void 0:n.hourCycle)){let e=t>=12;i=e?12:0,a=e?23:11}o.hour=Te(t,r,i,a,null==n?void 0:n.round);break}case"minute":o.minute=Te(e.minute,r,0,59,null==n?void 0:n.round);break;case"second":o.second=Te(e.second,r,0,59,null==n?void 0:n.round);break;case"millisecond":o.millisecond=Te(e.millisecond,r,0,999,null==n?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return o}function Te(e,t,r,n,o=!1){if(o){(e+=Math.sign(t))<r&&(e=n);let o=Math.abs(t);(e=t>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>n&&(e=r)}else(e+=t)<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function _e(e,t){let r;return r=null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?Z(ce(ne(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):X(e)-e.offset,r+=t.milliseconds||0,r+=1e3*(t.seconds||0),r+=6e4*(t.minutes||0),r+=36e5*(t.hours||0),ie(ee(r,e.timeZone),e.calendar)}const Me=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Ce=/^(\d{4})-(\d{2})-(\d{2})$/,Pe=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Ie=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?)?\[(.*?)\]$/,Ne=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/,Le=/^((?<negative>-)|\+)?P((?<years>\d*)Y)?((?<months>\d*)M)?((?<weeks>\d*)W)?((?<days>\d*)D)?((?<time>T)((?<hours>\d*[.,]?\d{1,9})H)?((?<minutes>\d*[.,]?\d{1,9})M)?((?<seconds>\d*[.,]?\d{1,9})S)?)?$/,ke=["hours","minutes","seconds"],Ae=["years","months","weeks","days",...ke];function De(e){let t=e.match(Me);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new qe(Ue(t[1],0,23),t[2]?Ue(t[2],0,59):0,t[3]?Ue(t[3],0,59):0,t[4]?1e3*Ue(t[4],0,1/0):0)}function Re(e){let t=e.match(Ce);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let r=new Ye(Ue(t[1],0,9999),Ue(t[2],1,12),1);return r.day=Ue(t[3],0,r.calendar.getDaysInMonth(r)),r}function Fe(e){let t=e.match(Pe);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let r=new Qe(Ue(t[1],1,9999),Ue(t[2],1,12),1,t[4]?Ue(t[4],0,23):0,t[5]?Ue(t[5],0,59):0,t[6]?Ue(t[6],0,59):0,t[7]?1e3*Ue(t[7],0,1/0):0);return r.day=Ue(t[3],0,r.calendar.getDaysInMonth(r)),r}function je(e,t){let r=e.match(Ie);if(!r)throw new Error("Invalid ISO 8601 date time string: "+e);let n=new tt(Ue(r[1],1,9999),Ue(r[2],1,12),1,r[10],0,r[4]?Ue(r[4],0,23):0,r[5]?Ue(r[5],0,59):0,r[6]?Ue(r[6],0,59):0,r[7]?1e3*Ue(r[7],0,1/0):0);n.day=Ue(r[3],0,n.calendar.getDaysInMonth(n));let o,i=ne(n);var a;if(r[8]){if(n.offset=36e5*Ue(r[8],-23,23)+6e4*Ue(null!==(a=r[9])&&void 0!==a?a:"0",0,59),o=X(n)-n.offset,!function(e,t){let r=X(e);return q(e,t,r-W(r-K,t),r-W(r+K,t))}(i,n.timeZone).includes(o))throw new Error(`Offset ${Xe(n.offset)} is invalid for ${$e(n)} in ${n.timeZone}`)}else o=Z(ne(i),n.timeZone,t);return ee(o,n.timeZone)}function Be(e,t){let r=e.match(Ne);if(!r)throw new Error("Invalid ISO 8601 date time string: "+e);let n=new tt(Ue(r[1],1,9999),Ue(r[2],1,12),1,t,0,r[4]?Ue(r[4],0,23):0,r[5]?Ue(r[5],0,59):0,r[6]?Ue(r[6],0,59):0,r[7]?1e3*Ue(r[7],0,1/0):0);var o;return n.day=Ue(r[3],0,n.calendar.getDaysInMonth(n)),r[8]&&(n.offset=36e5*Ue(r[8],-23,23)+6e4*Ue(null!==(o=r[9])&&void 0!==o?o:"0",0,59)),se(n,t)}function ze(e){return Be(e,C())}function Ue(e,t,r){let n=Number(e);if(n<t||n>r)throw new RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function He(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Ge(e){let t=ie(e,new d);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function $e(e){return`${Ge(e)}T${He(e)}`}function Xe(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),n=e%36e5/6e4;return`${t}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function Ve(e){var t,r,n,o,i,a,s,l,u;const c=e.match(Le);if(!c)throw new Error(`Invalid ISO 8601 Duration string: ${e}`);const d=(t,r,n,o)=>{if(!t)return 0;try{return(r?-1:1)*Ue(t.replace(",","."),n,o)}catch{throw new Error(`Invalid ISO 8601 Duration string: ${e}`)}},p=!!(null===(t=c.groups)||void 0===t?void 0:t.negative),f=Ae.some((e=>{var t;return null===(t=c.groups)||void 0===t?void 0:t[e]}));if(!f)throw new Error(`Invalid ISO 8601 Duration string: ${e}`);if(null===(r=c.groups)||void 0===r?void 0:r.time){const t=ke.some((e=>{var t;return null===(t=c.groups)||void 0===t?void 0:t[e]}));if(!t)throw new Error(`Invalid ISO 8601 Duration string: ${e}`)}const h={years:d(null===(n=c.groups)||void 0===n?void 0:n.years,p,0,9999),months:d(null===(o=c.groups)||void 0===o?void 0:o.months,p,0,12),weeks:d(null===(i=c.groups)||void 0===i?void 0:i.weeks,p,0,1/0),days:d(null===(a=c.groups)||void 0===a?void 0:a.days,p,0,31),hours:d(null===(s=c.groups)||void 0===s?void 0:s.hours,p,0,23),minutes:d(null===(l=c.groups)||void 0===l?void 0:l.minutes,p,0,59),seconds:d(null===(u=c.groups)||void 0===u?void 0:u.seconds,p,0,59)};if(void 0!==h.hours&&h.hours%1!=0&&(h.minutes||h.seconds))throw new Error(`Invalid ISO 8601 Duration string: ${e} - only the smallest unit can be fractional`);if(void 0!==h.minutes&&h.minutes%1!=0&&h.seconds)throw new Error(`Invalid ISO 8601 Duration string: ${e} - only the smallest unit can be fractional`);return h}function We(e){let t,r="object"==typeof e[0]?e.shift():new d;if("string"==typeof e[0])t=e.shift();else{let e=r.getEras();t=e[e.length-1]}return[r,t,e.shift(),e.shift(),e.shift()]}var Je=new WeakMap;class Ye{copy(){return this.era?new Ye(this.calendar,this.era,this.year,this.month,this.day):new Ye(this.calendar,this.year,this.month,this.day)}add(e){return ce(this,e)}subtract(e){return ge(this,e)}set(e){return ye(this,e)}cycle(e,t,r){return xe(this,e,t,r)}toDate(e){return Q(this,e)}toString(){return Ge(this)}compare(e){return x(this,e)}constructor(...e){(0,n._)(this,Je,{writable:!0,value:void 0});let[t,r,o,i,a]=We(e);this.calendar=t,this.era=r,this.year=o,this.month=i,this.day=a,he(this)}}var Ke=new WeakMap;class qe{copy(){return new qe(this.hour,this.minute,this.second,this.millisecond)}add(e){return Se(this,e)}subtract(e){return function(e,t){return Se(e,me(t))}(this,e)}set(e){return ve(this,e)}cycle(e,t,r){return Oe(this,e,t,r)}toString(){return He(this)}compare(e){return O(this,e)}constructor(e=0,t=0,r=0,o=0){(0,n._)(this,Ke,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=r,this.millisecond=o,be(this)}}var Ze=new WeakMap;class Qe{copy(){return this.era?new Qe(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qe(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return ce(this,e)}subtract(e){return ge(this,e)}set(e){return ye(ve(this,e),e)}cycle(e,t,r){switch(e){case"era":case"year":case"month":case"day":return xe(this,e,t,r);default:return Oe(this,e,t,r)}}toDate(e,t){return Q(this,e,t)}toString(){return $e(this)}compare(e){let t=x(this,e);return 0===t?O(this,ne(e)):t}constructor(...e){(0,n._)(this,Ze,{writable:!0,value:void 0});let[t,r,o,i,a]=We(e);this.calendar=t,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,he(this)}}var et=new WeakMap;class tt{copy(){return this.era?new tt(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new tt(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return _e(this,e)}subtract(e){return function(e,t){return _e(e,me(t))}(this,e)}set(e,t){return function(e,t,r){let n=ne(e),o=ve(ye(n,t),t);return 0===o.compare(n)?e:ie(ee(Z(o,e.timeZone,r),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,r){return function(e,t,r,n){switch(t){case"hour":{let t=0,o=23;if(12===(null==n?void 0:n.hourCycle)){let r=e.hour>=12;t=r?12:0,o=r?23:11}let i=ne(e),a=ie(ve(i,{hour:t}),new d),s=[Z(a,e.timeZone,"earlier"),Z(a,e.timeZone,"later")].filter((t=>ee(t,e.timeZone).day===a.day))[0],l=ie(ve(i,{hour:o}),new d),u=[Z(l,e.timeZone,"earlier"),Z(l,e.timeZone,"later")].filter((t=>ee(t,e.timeZone).day===l.day)).pop(),c=X(e)-e.offset,p=Math.floor(c/ue),f=c%ue;return c=Te(p,r,Math.floor(s/ue),Math.floor(u/ue),null==n?void 0:n.round)*ue+f,ie(ee(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Oe(e,t,r,n);case"era":case"year":case"month":case"day":return ie(ee(Z(xe(ne(e),t,r,n),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,r)}toDate(){return function(e){let t=X(e)-e.offset;return new Date(t)}(this)}toString(){return`${$e(this)}${Xe(this.offset)}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-ae(e,this.timeZone).toDate().getTime()}constructor(...e){(0,n._)(this,et,{writable:!0,value:void 0});let[t,r,o,i,a]=We(e),s=e.shift(),l=e.shift();this.calendar=t,this.era=r,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,he(this)}}const rt=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],nt=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ot=[1867,1911,1925,1988,2018],it=["meiji","taisho","showa","heisei","reiwa"];function at(e){const t=rt.findIndex((([t,r,n])=>e.year<t||e.year===t&&e.month<r||e.year===t&&e.month===r&&e.day<n));return-1===t?rt.length-1:0===t?0:t-1}function st(e){let t=ot[it.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Ye(e.year+t,e.month,e.day)}class lt extends d{fromJulianDay(e){let t=super.fromJulianDay(e),r=at(t);return new Ye(this,it[r],t.year-ot[r],t.month,t.day)}toJulianDay(e){return super.toJulianDay(st(e))}balanceDate(e){let t=st(e),r=at(t);it[r]!==e.era&&(e.era=it[r],e.year=t.year-ot[r]),this.constrainDate(e)}constrainDate(e){let t=it.indexOf(e.era),r=nt[t];if(null!=r){let[n,o,i]=r,a=n-ot[t];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,r,n]=rt[t];e.month=Math.max(r,e.month),e.month===r&&(e.day=Math.max(n,e.day))}}getEras(){return it}getYearsInEra(e){let t=it.indexOf(e.era),r=rt[t],n=rt[t+1];if(null==n)return 9999-r[0]+1;let o=n[0]-r[0];return(e.month<n[1]||e.month===n[1]&&e.day<n[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(st(e))}getMinimumMonthInYear(e){let t=ut(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=ut(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ut(e){if(1===e.year){let t=it.indexOf(e.era);return rt[t]}}class ct extends d{fromJulianDay(e){let t=super.fromJulianDay(e),r=l(t.era,t.year);return new Ye(this,r- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(dt(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(dt(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function dt(e){let[t,r]=u(e.year+-543);return new Ye(t,r,e.month,e.day)}const pt=1911;function ft(e){return"minguo"===e.era?e.year+pt:1-e.year+pt}function ht(e){let t=e-pt;return t>0?["minguo",t]:["before_minguo",1-t]}class mt extends d{fromJulianDay(e){let t=super.fromJulianDay(e),r=l(t.era,t.year),[n,o]=ht(r);return new Ye(this,n,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(gt(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,r]=ht(ft(e));e.era=t,e.year=r}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(gt(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-pt}constructor(...e){super(...e),this.identifier="roc"}}function gt(e){let[t,r]=u(ft(e));return new Ye(t,r,e.month,e.day)}function yt(e,t,r){let n=e>0?e-474:e-473,o=i(n,2820)+474,a=t<=7?31*(t-1):30*(t-1)+6;return 1948320+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+a+r}class vt{fromJulianDay(e){let t=e-yt(475,1,1),r=Math.floor(t/1029983),n=i(t,1029983),o=474+2820*r+(1029982===n?2820:Math.floor((128*n+46878)/46751));o<=0&&o--;let a=e-yt(o,1,1)+1,s=a<=186?Math.ceil(a/31):Math.ceil((a-6)/31),l=e-yt(o,s,1)+1;return new Ye(this,o,s,l)}toJulianDay(e){return yt(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||function(e){let t=i(e>0?e-474:e-473,2820)+474;return i(31*(t+38),128)<31}(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class bt extends d{fromJulianDay(e){let t,r,n,o=super.fromJulianDay(e),i=o.year-78,l=e-a(o.era,o.year,1,1);if(l<80?(i--,t=s(o.year-1)?31:30,l+=t+155+90+10):(t=s(o.year)?31:30,l-=80),l<t)r=1,n=l+1;else{let e=l-t;e<155?(r=Math.floor(e/31)+2,n=e%31+1):(e-=155,r=Math.floor(e/30)+7,n=e%30+1)}return new Ye(this,i,r,n)}toJulianDay(e){let t,r,n=e.year+78,[o,i]=u(n);return s(i)?(t=31,r=a(o,i,3,21)):(t=30,r=a(o,i,3,22)),1===e.month?r+e.day-1:(r+=t+31*Math.min(e.month-2,5),e.month>=8&&(r+=30*(e.month-7)),r+=e.day-1,r)}getDaysInMonth(e){return 1===e.month&&s(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const Et=1948440,wt=1948439,St=1300,xt=1600,Ot=460322;function Tt(e,t,r,n){return n+Math.ceil(29.5*(r-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function _t(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+Tt(t,n,1,1)))/29.5)+1),i=r-Tt(t,n,o,1)+1;return new Ye(e,n,o,i)}function Mt(e){return(14+11*e)%30<11}class Ct{fromJulianDay(e){return _t(this,Et,e)}toJulianDay(e){return Tt(Et,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&Mt(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Mt(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Pt extends Ct{fromJulianDay(e){return _t(this,wt,e)}toJulianDay(e){return Tt(wt,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let It,Nt;function Lt(e){return Ot+Nt[e-St]}function kt(e,t){let r=1<<11-(t-1);return 0==(It[e-St]&r)?29:30}function At(e,t){let r=Lt(e);for(let n=1;n<t;n++)r+=kt(e,n);return r}function Dt(e){return Nt[e+1-St]-Nt[e-St]}class Rt extends Ct{fromJulianDay(e){let t=e-Et,r=Lt(St),n=Lt(xt);if(t<r||t>n)return super.fromJulianDay(e);{let e=St-1,r=1,n=1;for(;n>0;){e++,n=t-Lt(e)+1;let o=Dt(e);if(n===o){r=12;break}if(n<o){let t=kt(e,r);for(r=1;n>t;)n-=t,r++,t=kt(e,r);break}}return new Ye(this,e,r,t-At(e,r)+1)}}toJulianDay(e){return e.year<St||e.year>xt?super.toJulianDay(e):Et+At(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<St||e.year>xt?super.getDaysInMonth(e):kt(e.year,e.month)}getDaysInYear(e){return e.year<St||e.year>xt?super.getDaysInYear(e):Dt(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",It||(It=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Nt){Nt=new Uint32Array(xt-St+1);let e=0;for(let t=St;t<=xt;t++){Nt[t-St]=e;for(let r=1;r<=12;r++)e+=kt(t,r)}}}}const Ft=347997;function jt(e){return i(7*e+1,19)<7}function Bt(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=29*t+Math.floor(r/25920);return i(3*(n+1),7)<3&&(n+=1),n}function zt(e){return Bt(e)+function(e){let t=Bt(e-1),r=Bt(e);return Bt(e+1)-r==356?2:r-t==382?1:0}(e)}function Ut(e){return zt(e+1)-zt(e)}function Ht(e,t){if(t>=6&&!jt(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let r=function(e){let t=Ut(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===r?30:29:3===t?0===r?29:30:6===t?jt(e)?30:0:30}class Gt{fromJulianDay(e){let t=e-Ft,r=25920*t/765433,n=Math.floor((19*r+234)/235)+1,o=zt(n),i=Math.floor(t-o);for(;i<1;)n--,o=zt(n),i=Math.floor(t-o);let a=1,s=0;for(;s<i;)s+=Ht(n,a),a++;return a--,s-=Ht(n,a),new Ye(this,n,a,i-s)}toJulianDay(e){let t=zt(e.year);for(let r=1;r<e.month;r++)t+=Ht(e.year,r);return t+e.day+Ft}getDaysInMonth(e){return Ht(e.year,e.month)}getMonthsInYear(e){return jt(e.year)?13:12}getDaysInYear(e){return Ut(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(jt(t.year)&&!jt(e.year)&&t.month>6?e.month--:!jt(t.year)&&jt(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const $t=1723856,Xt=1824665,Vt=5500;function Wt(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function Jt(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-Wt(e,r,1,1))/30);return[r,n,t+1-Wt(e,r,n,1)]}function Yt(e){return Math.floor(e%4/3)}function Kt(e,t){return t%13!=0?30:Yt(e)+5}class qt{fromJulianDay(e){let[t,r,n]=Jt($t,e),o="AM";return t<=0&&(o="AA",t+=Vt),new Ye(this,o,t,r,n)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Vt),Wt($t,t,e.month,e.day)}getDaysInMonth(e){return Kt(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Yt(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Zt extends qt{fromJulianDay(e){let[t,r,n]=Jt($t,e);return t+=Vt,new Ye(this,"AA",t,r,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class Qt extends qt{fromJulianDay(e){let[t,r,n]=Jt(Xt,e),o="CE";return t<=0&&(o="BCE",t=1-t),new Ye(this,o,t,r,n)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Wt(Xt,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Kt(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function er(e){switch(e){case"buddhist":return new ct;case"ethiopic":return new qt;case"ethioaa":return new Zt;case"coptic":return new Qt;case"hebrew":return new Gt;case"indian":return new bt;case"islamic-civil":return new Ct;case"islamic-tbla":return new Pt;case"islamic-umalqura":return new Rt;case"japanese":return new lt;case"persian":return new vt;case"roc":return new mt;default:return new d}}let tr=new Map;class rr{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(e),n=this.formatter.formatToParts(t);return[...r.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...n.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==ar&&(ar="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),ar&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let r=or(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(r.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===n&&23===o)return"h23";if(24===n&&23===o)return"h24";if(0===n&&11===o)return"h11";if(12===n&&11===o)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=or(e,t),this.options=t}}const nr={true:{ja:"h11"},false:{}};function or(e,t={}){if("boolean"==typeof t.hour12&&(null==ir&&(ir="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),ir)){t={...t};let r=nr[String(t.hour12)][e.split("-")[0]],n=t.hour12?"h12":"h23";t.hourCycle=null!=r?r:n,delete t.hour12}let r=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(tr.has(r))return tr.get(r);let n=new Intl.DateTimeFormat(e,t);return tr.set(r,n),n}let ir=null,ar=null},3848:(e,t,r)=>{var n=r(2250);function o(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}o(e.exports,"MessageDictionary",(()=>i)),o(e.exports,"MessageFormatter",(()=>a));class i{getStringForLocale(e,t){let r=this.messages[t];r||(r=function(e,t,r="en-US"){if(t[e])return t[e];let n=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[r]}(t,this.messages,this.defaultLocale),this.messages[t]=r);let n=r[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}}class a{format(e,t){let r=this.cache[e];if(!r){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);r=new((o=n)&&o.__esModule?o.default:o)(t,this.locale),this.cache[e]=r}var o;let i;return t&&(i=Object.keys(t).reduce(((e,r)=>(e[r]=null!=t[r]&&t[r],e)),{})),r.format(i)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}},2412:e=>{function t(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}t(e.exports,"NumberFormatter",(()=>a)),t(e.exports,"NumberParser",(()=>u));let r=new Map,n=!1;try{n="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let o=!1;try{o="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const i={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class a{format(e){let t="";if(t=n||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,r){if("auto"===t)return e.format(r);if("never"===t)return e.format(Math.abs(r));{let n=!1;if("always"===t?n=r>0||Object.is(r,0):"exceptZero"===t&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let t=e.format(-r),n=e.format(r),o=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(o,"+").replace("!!!",n)}return e.format(r)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!o){var r;let{unit:e,unitDisplay:n="short",locale:o}=this.resolvedOptions();if(!e)return t;let a=null===(r=i[e])||void 0===r?void 0:r[n];t+=a[o]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...n.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return n||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),o||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),"unit"===t.style&&!o){var a;let{unit:e,unitDisplay:r="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(a=i[e])||void 0===a?void 0:a[r]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${r}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(r.has(s))return r.get(s);let l=new Intl.NumberFormat(e,t);return r.set(s,l),l}(e,t),this.options=t}}const s=new RegExp("^.*\\(.*\\).*$"),l=["latn","arab","hanidec"];class u{parse(e){return d(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,r){return d(this.locale,this.options,e).isValidPartialNumber(e,t,r)}getNumberingSystem(e){return d(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const c=new Map;function d(e,t,r){let n=p(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r))for(let o of l)if(o!==n.options.numberingSystem){let n=p(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(n.isValidPartialNumber(r))return n}return n}function p(e,t){let r=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),n=c.get(r);return n||(n=new f(e,t),c.set(r,n)),n}class f{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=g(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let r=t.indexOf(".");-1===r&&(r=t.length),t=t.replace(".",""),t=r-2==0?`0.${t}`:r-2==-1?`0.0${t}`:r-2==-2?"0.00":`${t.slice(0,r-2)}.${t.slice(r-2)}`,e>-1&&(t=`-${t}`)}let r=t?+t:NaN;if(isNaN(r))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new u(this.locale,e).parse(new a(this.locale,e).format(r))}return"accounting"===this.options.currencySign&&s.test(e)&&(r*=-1),r}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=g(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=g(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,r=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&r>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(e=g(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0!==e.length))}constructor(e,t={}){var r,n;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,r,n){var o,i,a,s;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=m.map((e=>l.formatToParts(e)));var p;let f=null!==(p=null===(o=u.find((e=>"minusSign"===e.type)))||void 0===o?void 0:o.value)&&void 0!==p?p:"-",g=null===(i=c.find((e=>"plusSign"===e.type)))||void 0===i?void 0:i.value;g||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(g="+");let v=null===(a=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find((e=>"decimal"===e.type)))||void 0===a?void 0:a.value,b=null===(s=u.find((e=>"group"===e.type)))||void 0===s?void 0:s.value,E=u.filter((e=>!h.has(e.type))).map((e=>y(e.value))),w=d.flatMap((e=>e.filter((e=>!h.has(e.type))).map((e=>y(e.value))))),S=[...new Set([...E,...w])].sort(((e,t)=>t.length-e.length)),x=0===S.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),O=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),T=new Map(O.map(((e,t)=>[e,t])));return{minusSign:f,plusSign:g,decimal:v,group:b,literals:x,numeral:new RegExp(`[${O.join("")}]`,"g"),index:e=>String(T.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)>18||(null!==(n=this.options.maximumFractionDigits)&&void 0!==n?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const h=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),m=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function g(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},1332:e=>{function t(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}t(e.exports,"LocalizedStringDictionary",(()=>i)),t(e.exports,"LocalizedStringFormatter",(()=>l));const r=Symbol.for("react-aria.i18n.locale"),n=Symbol.for("react-aria.i18n.strings");let o;class i{getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){if(t[e])return t[e];let n=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[r];if(void 0===o){let e=window[n];if(!e)return null;o={};for(let r in e)o[r]=new i({[t]:e[r]},t)}let a=null==o?void 0:o[e];if(!a)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return a}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}}const a=new Map,s=new Map;class l{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let o=this.locale+":"+r,i=a.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:r}),a.set(o,i)),n=t[i.select(e)]||t.other,"function"==typeof n?n():n}number(e){let t=s.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),s.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}constructor(e,t){this.locale=e,this.strings=t}}},1438:(e,t,r)=>{var n=r(91),o=r(9155),i=r(7351),a=r(8355);function s(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function l(e){return e&&e.__esModule?e.default:e}function u(e){const t=(0,n.getOwnerDocument)(e);if("virtual"===(0,i.getInteractionModality)()){let r=t.activeElement;(0,n.runAfterTransition)((()=>{t.activeElement===r&&e.isConnected&&(0,n.focusWithoutScrolling)(e)}))}else(0,n.focusWithoutScrolling)(e)}function c(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,n.getOwnerWindow)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:r,visibility:o}=e.style,i="none"!==r&&"hidden"!==o&&"collapse"!==o;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:r,visibility:n}=t(e);i="none"!==r&&"hidden"!==n&&"collapse"!==n}return i}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||c(e.parentElement,e))}s(e.exports,"FocusScope",(()=>f)),s(e.exports,"useFocusManager",(()=>h)),s(e.exports,"getFocusableTreeWalker",(()=>M)),s(e.exports,"createFocusManager",(()=>C)),s(e.exports,"isElementInChildOfActiveScope",(()=>x)),s(e.exports,"FocusRing",(()=>A)),s(e.exports,"FocusableProvider",(()=>F)),s(e.exports,"useFocusable",(()=>j)),s(e.exports,"useFocusRing",(()=>k)),s(e.exports,"focusSafely",(()=>u)),s(e.exports,"useHasTabbableChild",(()=>B));const d=l(o).createContext(null);let p=null;function f(e){let{children:t,contain:r,restoreFocus:i,autoFocus:a}=e,s=(0,o.useRef)(null),u=(0,o.useRef)(null),c=(0,o.useRef)([]),{parentNode:f}=(0,o.useContext)(d)||{},h=(0,o.useMemo)((()=>new N({scopeRef:c})),[c]);(0,n.useLayoutEffect)((()=>{let e=f||L.root;if(L.getTreeNode(e.scopeRef)&&p&&!O(p,e.scopeRef)){let t=L.getTreeNode(p);t&&(e=t)}e.addChild(h),L.addNode(h)}),[h,f]),(0,n.useLayoutEffect)((()=>{let e=L.getTreeNode(c);e&&(e.contain=!!r)}),[r]),(0,n.useLayoutEffect)((()=>{var e;let t=null===(e=s.current)||void 0===e?void 0:e.nextSibling,r=[];for(;t&&t!==u.current;)r.push(t),t=t.nextSibling;c.current=r}),[t]),function(e,t,r){(0,n.useLayoutEffect)((()=>{if(t||r)return;let o=e.current;const i=(0,n.getOwnerDocument)(o?o[0]:void 0);let a=t=>{let r=t.target;w(r,e.current)?p=e:E(r)||(p=null)};return i.addEventListener("focusin",a,!1),null==o||o.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,t,r])}(c,i,r),function(e,t){let r=(0,o.useRef)(),i=(0,o.useRef)();(0,n.useLayoutEffect)((()=>{let o=e.current;if(!t)return void(i.current&&(cancelAnimationFrame(i.current),i.current=void 0));const a=(0,n.getOwnerDocument)(o?o[0]:void 0);let s=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!b(e))return;let r=a.activeElement,n=e.current;if(!n||!w(r,n))return;let o=M(v(n),{tabbable:!0},n);if(!r)return;o.currentNode=r;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?n[