@hebcal/core 5.0.0-rc5 → 5.0.0-rc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +4209 -4207
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +4 -2
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v5.0.0-
|
|
2
|
-
var hebcal=function(e,t){"use strict";const n={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},r=new Map;function o(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function i(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const i=Math.floor(t/1e3);if(i>0&&5!==i){const e=o(i);for(const t of e)n+=r.get(t);n+="׳"}const a=o(t%1e3);if(1==a.length)return n+r.get(a[0])+"׳";for(let e=0;e<a.length;e++)e+1===a.length&&(n+="״"),n+=r.get(a[e]);return n}function a(e){let t=0;const r=e.indexOf("׳");if(-1!==r&&r!==e.length-1){t+=1e3*a(e.substring(0,r)),e=e.substring(r)}for(const r of e){const e=n[r];"number"==typeof e&&(t+=e)}return t}Object.keys(n).forEach((e=>{const t=n[e];r.set(t,e)}));const s={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},u={h:"he",a:"ashkenazi",s:"en","":"en"},c=new Map;let h=null,l=null;class d{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&c.get(n)||h)[e];if(r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);c.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=c.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const i=Array.isArray(n);if(i){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=i?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=c.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.keys(o).forEach((e=>{r[e]=o[e]}))}static useLocale(e){const t=e.toLowerCase(),n=c.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return l=u[t]||t,h=n,h}static getLocaleName(){return l}static getLocaleNames(){return Array.from(c.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||l;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}d.addLocale("en",s),d.addLocale("s",s),d.addLocale("",s),d.useLocale("en");const m=[0,31,28,31,30,31,30,31,31,30,31,30,31],f=[m,m.slice()];function g(e,t){return e-t*Math.floor(e/t)}function y(e,t){return Math.floor(e/t)}f[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function n(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function r(e,n,r){const o=e-1;return 365*o+y(o,4)-y(o,100)+y(o,400)+y(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],e.isLeapYear=t,e.daysInMonth=function(e,n){return f[+t(n)][e]},e.isDate=n,e.greg2abs=function(e){if(!n(e))throw new TypeError(`Argument not a Date: ${e}`);return r(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=y(t,146097),r=g(t,146097),o=y(r,36524),i=g(r,36524),a=y(i,1461),s=y(g(i,1461),365),u=400*n+100*o+4*a+s;return 4!=o&&4!=s?u+1:u}(e=Math.trunc(e)),o=y(12*(e-r(n,1,1)+(e<r(n,3,1)?0:t(n)?1:2))+373,367),i=e-r(n,o,1)+1,a=new Date(n,o-1,i);return n<100&&n>=0&&a.setFullYear(n),a}}(e.greg||(e.greg={}));const S=1,w=2,p=4,v=6,b=7,M=8,I=9,T=10,A=12,D=13,E={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},C=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],N=[C.concat(["Adar","Nisan"]),C.concat(["Adar I","Adar II","Nisan"])],O=new Map,k=-1373428,H=365.24682220597794;function L(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function Y(e,t,n){if(L(e,"year"),L(t,"month"),L(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<b){for(let t=b;t<=_(e);t++)r+=U(t,e);for(let n=S;n<t;n++)r+=U(n,e)}else for(let n=b;n<t;n++)r+=U(n,e);return k+B(e)+r-1}function F(e){return k+B(e)}function R(e){if(L(e,"abs"),(e=Math.trunc(e))<=k)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-k)/H);for(;F(t)<=e;)++t;--t;let n=e<Y(t,1,1)?7:1;for(;e>Y(t,n,U(n,t));)++n;return{yy:t,mm:n,dd:1+e-Y(t,n,1)}}function P(e){return(1+7*e)%19<7}function _(e){return+P(e)+12}function U(e,t){switch(e){case w:case p:case v:case T:case D:return 29}return e===A&&!P(t)||e===M&&!$(t)||e===I&&x(t)?29:30}function j(e,t){if(L(e,"month"),L(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return N[+P(t)][e]}function B(e){const t=O.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!P(e)||1==a%7&&i>=16789&&P(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return O.set(e,n),n}function Z(e){return B(e+1)-B(e)}function $(e){return Z(e)%10==5}function x(e){return Z(e)%10==3}const z=E.NISAN,V=E.CHESHVAN,K=E.KISLEV,J=E.TEVET,G=E.SHVAT,W=E.ADAR_I,q=E.ADAR_II;function X(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return R(t);if(e.greg.isDate(t)){return R(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}function Q(e){throw new TypeError(e)}const ee="day",te="week",ne="month",re="year",oe={d:ee,w:te,M:ne,y:re},ie={day:ee,week:te,month:ne,year:re};class ae{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:Q(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?R(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.abs0=n)}}getFullYear(){return this.yy}isLeapYear(){return P(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=_(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return U(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=ae.monthNum(e),se(this),this}setDate(e){return this.dd=e,se(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.abs0&&(this.abs0=Y(this.yy,this.mm,this.dd)),this.abs0}static hebrew2abs(e,t,n){return Y(e,t,n)}getMonthName(){return j(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||d.getLocaleName(),n=this.getDate(),r=d.gettext(this.getMonthName(),t),o=`${d.ordinal(n,t)}${ae.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=d.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=d.gettext(this.getMonthName(),n),o=this.getFullYear();return i(t)+" "+r+" "+i(o)}before(e){return ce(e,this,-1)}onOrBefore(e){return ce(e,this,0)}nearest(e){return ce(e,this,3)}onOrAfter(e){return ce(e,this,6)}after(e){return ce(e,this,7)}next(){return new ae(this.abs()+1)}prev(){return new ae(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ae(this);if(t=ae.standardizeUnits(t),t===ee)return new ae(this.abs()+e);if(t===te)return new ae(this.abs()+7*e);if(t===re)return new ae(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===ne){let t=new ae(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ae(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=oe[e]||String(e||"").toLowerCase().replace(/s$/,"");return ie[t]||Q(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!ae.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ae.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return P(e)}static monthsInYear(e){return _(e)}static daysInMonth(e,t){return U(e,t)}static getMonthName(e,t){return j(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):ae.monthFromName(e)}static daysInYear(e){return Z(e)}static longCheshvan(e){return $(e)}static shortKislev(e){return x(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return E.NISAN;case"i":return E.IYYAR;case"e":return E.ELUL;case"c":case"ח":return E.CHESHVAN;case"k":case"כ":return E.KISLEV;case"s":switch(t[1]){case"i":return E.SIVAN;case"h":return E.SHVAT}break;case"t":switch(t[1]){case"a":return E.TAMUZ;case"i":return E.TISHREI;case"e":return E.TEVET}break;case"a":switch(t[1]){case"v":return E.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?E.ADAR_I:E.ADAR_II}break;case"ס":return E.SIVAN;case"ט":return E.TEVET;case"ש":return E.SHVAT;case"א":switch(t[1]){case"ב":return E.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?E.ADAR_I:E.ADAR_II;case"י":return E.IYYAR;case"ל":return E.ELUL}break;case"ת":switch(t[1]){case"מ":return E.TAMUZ;case"ש":return E.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(d.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" "),r=a(n[0]),o=ae.monthFromName(n[1]);let i=a(n[2]);return i<1e3&&(i+=t),new ae(r,o,i)}}function se(e){ue(e),function(e){e.dd<1&&(e.mm==E.TISHREI&&(e.yy-=1),e.dd+=U(e.mm,e.yy),e.mm-=1,se(e));e.dd>U(e.mm,e.yy)&&(e.mm===E.ELUL&&(e.yy+=1),e.dd-=U(e.mm,e.yy),e.mm+=1,se(e));ue(e)}(e)}function ue(e){e.mm!==E.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=_(e.yy),e.yy-=1,se(e)):e.mm>_(e.yy)&&(e.mm-=_(e.yy),e.yy+=1,se(e)):(e.mm-=1,se(e)),delete e.abs0}function ce(e,t,n){return new ae(ae.dayOnOrBefore(e,t.abs()+n))}const he={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304,YOM_KIPPUR_KATAN:8388608,YERUSHALMI_YOMI:16777216,NACH_YOMI:33554432},le=[[he.MAJOR_FAST,"holiday","major","fast"],[he.CHANUKAH_CANDLES,"holiday","major"],[he.HEBREW_DATE,"hebdate"],[he.MINOR_FAST,"holiday","fast"],[he.MINOR_HOLIDAY,"holiday","minor"],[he.MODERN_HOLIDAY,"holiday","modern"],[he.MOLAD,"molad"],[he.OMER_COUNT,"omer"],[he.PARSHA_HASHAVUA,"parashat"],[he.ROSH_CHODESH,"roshchodesh"],[he.SHABBAT_MEVARCHIM,"mevarchim"],[he.SPECIAL_SHABBAT,"holiday","shabbat"],[he.USER_EVENT,"user"]];class de{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.keys(r).forEach((e=>this[e]=r[e]))}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return d.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&he.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&he.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor;for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of le)if(e&t[0])return t.slice(1);return["unknown"]}}class me extends de{constructor(e){super(e,e.toString(),he.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||d.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=d.gettext(n.getMonthName(),t),o=n.getFullYear();return i(e)+" "+r+" "+i(o);default:return n.render(t,!0)}}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||d.getLocaleName(),n=this.getDate();if(n.getMonth()===E.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=d.gettext(n.getMonthName(),t);return i(e)+" "+r;default:return n.render(t,!1)}}}function fe(e){return e*Math.PI/180}function ge(e){return 180*e/Math.PI}class ye{constructor(e,t,n,r,o){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const Se=6356.9;class we{constructor(e,t){this.date=t,this.geoLocation=e}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const e=this.getUTCSunrise0(we.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(we.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(we.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(we.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(we.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(we.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(we.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(we.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(we.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(we.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return ge(Math.acos(Se/(Se+e/1e3)))}adjustZenith(e,t){let n=e;return e===we.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=we.getSunriseUTC(we.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=we.getSunsetUTC(we.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return we.getTimeOffset(e,6*n)}getDateFromTime(e,n){if(isNaN(e))return null;let r=e,o=this.getAdjustedDate();const i=Math.trunc(r);r-=i;const a=Math.trunc(r*=60);r-=a;const s=Math.trunc(r*=60);r-=s;const u=Math.trunc(this.geoLocation.getLongitude()/15);return n&&u+i>18?o=o.add({days:-1}):!n&&u+i<6&&(o=o.add({days:1})),o.toZonedDateTime({timeZone:"UTC",plainTime:new t.Temporal.PlainTime(i,a,s,Math.trunc(1e3*r))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-we.JULIAN_DAY_JAN_1_2000)/we.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*we.JULIAN_DAYS_PER_CENTURY+we.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(e){let t=280.46646+e*(36000.76983+3032e-7*e);for(;t>360;)t-=360;for(;t<0;)t+=360;return t}static getSunGeometricMeanAnomaly(e){return 357.52911+e*(35999.05029-1537e-7*e)}static getEarthOrbitEccentricity(e){return.016708634-e*(42037e-9+1.267e-7*e)}static getSunEquationOfCenter(e){const t=fe(we.getSunGeometricMeanAnomaly(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}static getSunTrueLongitude(e){return we.getSunGeometricMeanLongitude(e)+we.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return we.getSunTrueLongitude(e)-.00569-.00478*Math.sin(fe(t))}static getMeanObliquityOfEcliptic(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}static getObliquityCorrection(e){const t=125.04-1934.136*e;return we.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(fe(t))}static getSunDeclination(e){const t=we.getObliquityCorrection(e),n=we.getSunApparentLongitude(e),r=Math.sin(fe(t))*Math.sin(fe(n));return ge(Math.asin(r))}static getEquationOfTime(e){const t=we.getObliquityCorrection(e),n=we.getSunGeometricMeanLongitude(e),r=we.getEarthOrbitEccentricity(e),o=we.getSunGeometricMeanAnomaly(e);let i=Math.tan(fe(t)/2);i*=i;const a=Math.sin(2*fe(n)),s=Math.sin(fe(o));return 4*ge(i*a-2*r*s+4*r*i*s*Math.cos(2*fe(n))-.5*i*i*Math.sin(4*fe(n))-1.25*r*r*Math.sin(2*fe(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=fe(e),o=fe(t);return Math.acos(Math.cos(fe(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=fe(e),o=fe(t);return-Math.acos(Math.cos(fe(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=we.getJulianDay(e.toPlainDate()),o=we.getJulianCenturiesFromJulianDay(r),i=we.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=fe(n-a),u=fe(we.getSunDeclination(o)),c=fe(t);return ge(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=we.getJulianDay(e.toPlainDate()),o=we.getJulianCenturiesFromJulianDay(r),i=we.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=fe(n-a),u=fe(we.getSunDeclination(o)),c=fe(t);return ge(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=we.getJulianCenturiesFromJulianDay(e),i=we.getSolarNoonUTC(o,n),a=we.getJulianCenturiesFromJulianDay(e+i/1440);let s=we.getEquationOfTime(a),u=we.getSunDeclination(a),c=we.getSunHourAngleAtSunrise(t,u,r),h=n-ge(c),l=4*h,d=720+l-s;const m=we.getJulianCenturiesFromJulianDay(we.getJulianDayFromJulianCenturies(o)+d/1440);return s=we.getEquationOfTime(m),u=we.getSunDeclination(m),c=we.getSunHourAngleAtSunrise(t,u,r),h=n-ge(c),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=we.getJulianCenturiesFromJulianDay(we.getJulianDayFromJulianCenturies(e)+t/360);let r=we.getEquationOfTime(n);const o=720+4*t-r,i=we.getJulianCenturiesFromJulianDay(we.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=we.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=we.getJulianCenturiesFromJulianDay(e),i=we.getSolarNoonUTC(o,n),a=we.getJulianCenturiesFromJulianDay(e+i/1440);let s=we.getEquationOfTime(a),u=we.getSunDeclination(a),c=we.getSunHourAngleAtSunset(t,u,r),h=n-ge(c),l=4*h,d=720+l-s;const m=we.getJulianCenturiesFromJulianDay(we.getJulianDayFromJulianCenturies(o)+d/1440);return s=we.getEquationOfTime(m),u=we.getSunDeclination(m),c=we.getSunHourAngleAtSunset(t,u,r),h=n-ge(c),l=4*h,d=720+l-s,d}}const pe=new Map,ve={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},be=new Map;class Me extends ye{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,u,c,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=be.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return be.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return pe.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return ve[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":ve[t]}static addLocation(e,t){const n=e.toLowerCase();return!pe.has(n)&&(pe.set(n,t),!0)}}[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]].forEach((e=>{const t=new Me(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);Me.addLocation(t.getName(),t)}));const Ie=new Map;const Te=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Ae(e,t){const n=function(e){const t=Ie.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return Ie.set(e,n),n}(e).format(t),r=Te.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=De(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function De(e){return e<0?"-00"+De(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}const Ee=36e11,Ce=864e11,Ne=[1,1e3,1e6,1e9,6e10,Ee,Ce],Oe=[9,6,3];function ke(e){return e<=6}function He(e){return e>=6}const Le=Ye("overflow",{constrain:0,reject:1},0);function Ye(e,t,n){const r=function(e,t,n){return(r,o)=>{if(void 0===r){const t=null!=o?o:n;if(void 0===t)throw new RangeError(`Must specify a ${e}`);return t}if(void 0===t[r])throw new RangeError(`Invalid ${e}: ${r}`);return t[r]}}(e,t,n);return(t,n)=>{const o=Pe(t);return r(o[e],n)}}function Fe(e,t,n,r){if(void 0===e)return t;if(!Number.isFinite(e))throw new RangeError("Number must be finite");e=Math.trunc(e);const o=Math.min(Math.max(e,t),n);if(o!==e&&1===r)throw new RangeError("Invalid overflowed value "+e);return o}function Re(e,t){const n={};for(const r in t)void 0!==e[r]&&(n[r]=t[r](e[r]));return n}function Pe(e,t){if(void 0===e&&!t)return{};if(!Ue(e))throw TypeError("options must be an object or undefined");return e}const _e=/object|function/;function Ue(e){return null!==e&&_e.test(typeof e)}const je=Ye("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Be(){const e=new WeakMap;return[e.get.bind(e),e.set.bind(e)]}function Ze(e,t){Object.defineProperties(e.prototype,$e(t,(e=>({get:e}))))}function $e(e,t){const n={};for(const r in e)n[r]=t(e[r],r);return n}function xe(e,t,n){const r={};for(const o of t)r[o]=n(e[o]);return r}function ze(e,t){const n={};return e.forEach(((e,r)=>{n[e]=t(e,r)})),n}const Ve=["nanosecond","microsecond","millisecond","second","minute","hour"],Ke=[...Ve,"day","week","month","year"],Je=Ke.map((e=>e+"s")),Ge=ze(Ke,((e,t)=>t)),We=ze(Je,((e,t)=>t));function qe(e,t,n,r){var o;let i;if(void 0===e){if(void 0===t)throw new RangeError("Unit is required");i=t}else if(i=null!=(o=Ge[e])?o:We[e],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+e);return i}function Xe(e,t,n,r,o,i){var a;const s=Pe(e),u=null!=(a=s.roundingIncrement)?a:1,c=qe(s.smallestUnit,n,r,o),h=je(s,i?Math.round:Math.trunc);let l=s.largestUnit;"auto"===l&&(l=void 0);const d=qe(l,t=Math.max(t,c),r,o);if(c>d)throw new RangeError("Bad smallestUnit/largestUnit");if(c<6){const e=Ne[c+1],t=Ne[c]*u;if(e===t)throw new RangeError("Must not equal larger unit");if(e%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:c,largestUnit:d,roundingFunc:h,roundingIncrement:u}}function Qe(e,t,n,r){var o;const i=Pe("string"==typeof e?{smallestUnit:e}:e,!0),a=null!=(o=i.roundingIncrement)?o:1,s=qe(i.smallestUnit,void 0,t,n),u=je(i,Math.round),c=Ne[s]*a;if(6===s){if(1!==a)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const e=r?Ce:Ne[s+1];if(!r&&e===c)throw new RangeError("Must not equal larger unit");if(e%c)throw new RangeError("Must divide into larger unit")}return{smallestUnit:s,roundingFunc:u,incNano:c}}const et=Symbol();function tt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t instanceof e?t:e.from(t,...r)}class nt{toJSON(){return this.toString()}}class rt extends nt{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[ot,it]=Be();class at extends rt{constructor(e){super(),it(this,Object.freeze(e))}getISOFields(){return ot(this)}}function st(e,t){return e<t?-1:e>t?1:0}function ut(e){return st(e,0)}function ct(e,t,n){return n(e/t)*t}function ht(e){return ct(e,6e10,lt)}function lt(e){return Math.round(Math.abs(e))*ut(e)}function dt(e,t,n){const r=e.div(t).mult(t),o=e.sub(r).toNumber();return r.add(n(o/t)*t)}function mt(e,t){return(e%t+t)%t}function ft(e,t){return yt(n=String(e),t,"0")+n;var n}function gt(e,t,n){return e+yt(e,t,n)}function yt(e,t,n){return new Array(Math.max(0,t-e.length+1)).join(n)}function St(e){return e<0?"-":"+"}const wt=Math.pow(10,8);class pt{constructor(e,t){this.high=e,this.low=t}sign(){return ut(this.high)||ut(this.low)}neg(){return new pt(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(e){const[t,n]=Mt(e);return It(this.high+t,this.low+n)}sub(e){const[t,n]=Mt(e);return It(this.high-t,this.low-n)}mult(e){return It(this.high*e,this.low*e)}div(e){const t=this.high/e;let n=String(t);-1!==n.indexOf("e-")&&(n=t.toFixed(20));const r=n.indexOf(".");let o=0;if(-1!==r){let e=n.substr(r+1);e=gt(e,8,"0"),e=e.substr(0,8),o=parseInt(e)*(ut(t)||1)}return It(Math.trunc(t)||0,Math.trunc(this.low/e)+o)}toNumber(){return this.high*wt+this.low}toBigInt(){return BigInt(this.high)*BigInt(wt)+BigInt(this.low)}}function vt(e,t){let n,r;if(e instanceof pt)n=e.high,r=e.low;else if("number"==typeof e){if(t)throw new TypeError("Must supply bigint, not number");n=Math.trunc(e/wt),r=e%wt||0}else if("bigint"==typeof e){const t=BigInt(wt);n=Number(e/t),r=Number(e%t||0)}else{if("string"!=typeof e)throw new Error("Invalid type of BigNano");{if((e=e.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${e} to a BigInt`);const t=e.length-8;n=Number(e.substr(t)),r=Number(e.substr(0,t))}}return new pt(n,r)}function bt(e,t){return st(e.high,t.high)||st(e.low,t.low)}function Mt(e){return"number"==typeof e?[0,e]:[e.high,e.low]}function It(e,t){let n=t%wt||0,r=e+Math.trunc(t/wt);const o=ut(r),i=ut(n);return i&&o&&i!==o&&(r+=i,n-=wt*i),new pt(r,n)}const Tt=Je.concat("sign");function At(e){return xe(e,Tt,(e=>-e||0))}function Dt(e,t){var n,r,o,i,a,s,u,c,h,l;return Et({years:null!=(n=t.years)?n:e.years,months:null!=(r=t.months)?r:e.months,weeks:null!=(o=t.weeks)?o:e.weeks,days:null!=(i=t.days)?i:e.days,hours:null!=(a=t.hours)?a:e.hours,minutes:null!=(s=t.minutes)?s:e.minutes,seconds:null!=(u=t.seconds)?u:e.seconds,milliseconds:null!=(c=t.milliseconds)?c:e.milliseconds,microseconds:null!=(h=t.microseconds)?h:e.microseconds,nanoseconds:null!=(l=t.nanoseconds)?l:e.nanoseconds})}function Et(e){return{...e,sign:Ct(e)}}function Ct(e){let t=0;for(const n of Je)if(e[n]){t=ut(e[n]);break}return t}function Nt(e){let t=9;for(;t>0&&!e[Je[t]];)t--;return t}const Ot={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},kt={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function Ht(e){return{isoHour:e.hour||0,isoMinute:e.minute||0,isoSecond:e.second||0,isoMillisecond:e.millisecond||0,isoMicrosecond:e.microsecond||0,isoNanosecond:e.nanosecond||0}}function Lt(e){return vt(Ce).mult(e.days).add(Yt(e))}function Yt(e){return vt(e.nanoseconds).add(vt(e.microseconds).mult(1e3)).add(vt(e.milliseconds).mult(1e6)).add(vt(e.seconds).mult(1e9)).add(vt(e.minutes).mult(6e10)).add(vt(e.hours).mult(Ee))}function Ft(e){return e.isoHour*Ee+6e10*e.isoMinute+1e9*e.isoSecond+1e6*e.isoMillisecond+1e3*e.isoMicrosecond+e.isoNanosecond}function Rt(e,t){let n,r=0,o=0,i=0,a=0,s=0,u=0;switch(t){case 6:n=e.div(Ce),r=n.toNumber(),e=e.sub(n.mult(Ce));case 5:n=e.div(Ee),o=n.toNumber(),e=e.sub(n.mult(Ee));case 4:n=e.div(6e10),i=n.toNumber(),e=e.sub(n.mult(6e10));case 3:n=e.div(1e9),a=n.toNumber(),e=e.sub(n.mult(1e9));case 2:n=e.div(1e6),s=n.toNumber(),e=e.sub(n.mult(1e6));case 1:n=e.div(1e3),u=n.toNumber(),e=e.sub(n.mult(1e3))}return Et({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:u,nanoseconds:e.toNumber()})}function Pt(e){const t=Math.floor(e/Ce);e-=t*Ce;const n=Math.floor(e/Ee);e-=n*Ee;const r=Math.floor(e/6e10);e-=6e10*r;const o=Math.floor(e/1e9);e-=1e9*o;const i=Math.floor(e/1e6);e-=1e6*i;const a=Math.floor(e/1e3);return[{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:e-=1e3*a},t]}const _t={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class Ut{constructor(e){this.id=e}monthCode(e,t){return"M"+ft(e,2)}convertMonthCode(e,t){const n=/L$/.test(e),r=parseInt(e.substr(1));if(n)throw new RangeError("Calendar system doesnt support leap months");return[r,!1]}}function jt(e,t,n,r){var o;let i=null==(o=_t[Bt(e)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+t)*(ut(i)||1)}function Bt(e){return e.split("-")[0]}class Zt extends Ut{computeFields(e){const t=Wt(e);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(e,t,n){return Jt(e,t,n)}daysInMonth(e,t){return 2===t?this.inLeapYear(e)?29:28:4===t||6===t||9===t||11===t?30:31}monthsInYear(){return 12}inLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}guessYearForMonthDay(){return xt}normalizeISOYearForMonthDay(){return xt}}const $t=new Zt("iso8601"),xt=1972,zt=Symbol();function Vt(e){return Kt(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Kt(e,t,n,r,o,i,a,s,u){return vt(Jt(e,t,n,r,o,i,a)).mult(1e6).add(1e3*(null!=s?s:0)+(null!=u?u:0))}function Jt(e,t,n,r,o,i,a){const s=ut(e);let u,c,h=0;const l=e>=0&&e<1e3,d=l?e+1200:e;for(;h<31;h++){u=n-s*h;const e=Date.UTC(d,t-1,u,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=a?a:0);if(!nn(e)){c=e+s*h*864e5;break}}return(void 0===c||u<1||u>$t.daysInMonth(e,t))&&rn(),l&&(c=new Date(c).setUTCFullYear(e)),c}function Gt(e){let t=e.div(1e6),n=e.sub(t.mult(1e6)).toNumber();n<0&&(n+=1e6,t=t.sub(1));const r=Math.floor(n/1e3);return n-=1e3*r,{...Wt(t.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function Wt(e){const[t,n]=tn(e);return{isoYear:t.getUTCFullYear(),isoMonth:t.getUTCMonth()+1,isoDay:t.getUTCDate()+n,isoHour:t.getUTCHours(),isoMinute:t.getUTCMinutes(),isoSecond:t.getUTCSeconds(),isoMillisecond:t.getUTCMilliseconds()}}function qt(e){var t;return null!=(t=e[zt])?t:Vt(e.getISOFields())}function Xt(e){return Math.floor(Jt(e,1,1)/1e3)}function Qt(e){return tn(e.div(1e6).toNumber())[0].getUTCFullYear()}function en(e,t,n){const[r,o]=tn(Jt(e,t,n));return mt(r.getUTCDay()+o,7)||7}function tn(e){const t=ut(e);let n,r=0;for(;r<31;r++){const o=new Date(e-t*r*864e5);if(!nn(o)){n=o;break}}return void 0===n&&rn(),[n,t*r]}function nn(e){return isNaN(e.valueOf())}function rn(){throw new RangeError("Date outside of supported range")}function on(e,t){return Math.round((t-e)/864e5)}function an(e,t){return e+864e5*t}function sn(e,t){return!un(e,t)&&e.calendar.toString()===t.calendar.toString()}function un(e,t){return bt(Vt(e.getISOFields()),Vt(t.getISOFields()))}function cn(e,t){return st(Ft(e.getISOFields()),Ft(t.getISOFields()))}function hn(e,t){return st(e.year,t.year)||st(e.month,t.month)||st(e.day,t.day)}function ln(e,t){return bt(e[zt],t[zt])}function dn(e,t,n,r,o){return[e=Number(e),t=Fe(t,1,r.monthsInYear(e),o),n=Fe(n,1,r.daysInMonth(e,t),o)]}function mn(e,t){const[n,r,o]=dn(e.isoYear,e.isoMonth,e.isoDay,$t,t);return{isoYear:n,isoMonth:r,isoDay:o}}function fn(e,t){return{...mn(e,t),...gn(e,t)}}function gn(e,t){let{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:s}=e;return{isoHour:n=Fe(n,0,23,t),isoMinute:r=Fe(r,0,59,t),isoSecond:o=Fe(o,0,59,t),isoMillisecond:i=Fe(i,0,999,t),isoMicrosecond:a=Fe(a,0,999,t),isoNanosecond:s=Fe(s,0,999,t)}}const yn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},Sn={...yn,day:Number},wn={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},pn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},vn=ze(Je,(()=>Number));class bn extends Zt{computeFields(e){const t=super.computeFields(e),{year:n}=t;return{...t,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const Mn=Ye("calendarName",{auto:0,never:1,always:2},0),In=Ye("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function Tn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Pe(e),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,a=0,s=1;return void 0!==r?(a=qe(r,void 0,0,t),s=Ne[a],i=Oe[a]||0):void 0!==o&&"auto"!==o&&(i=Fe(o,0,9,1),s=Math.pow(10,9-i)),{smallestUnit:a,fractionalSecondDigits:i,roundingFunc:je(e,Math.trunc),incNano:s}}const An=Ye("timeZoneName",{auto:0,never:1},0);function Dn(e,t){return En(e)+"T"+Nn(e,t)}function En(e){return Cn(e)+"-"+ft(e.isoDay,2)}function Cn(e){const{isoYear:t}=e;return(t<1e3||t>9999?St(t)+ft(Math.abs(t),6):ft(t,4))+"-"+ft(e.isoMonth,2)}function Nn(e,t){const n=[ft(e.isoHour,2)];return t.smallestUnit<=4&&(n.push(ft(e.isoMinute,2)),t.smallestUnit<=3&&n.push(ft(e.isoSecond,2)+Ln(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t.fractionalSecondDigits)[0])),n.join(":")}function On(e){const[t,n]=Pt(Math.abs(e)),r=Ln(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return St(e)+ft(t.isoHour+24*n,2)+":"+ft(t.isoMinute,2)+(t.isoSecond||r?":"+ft(t.isoSecond,2)+r:"")}function kn(e,t){return e&&(2===t||1!==t&&"iso8601"!==e)?`[u-ca=${e}]`:""}function Hn(e){return e.map((e=>{let[t,n,r]=e;return r||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+n:""})).join("")}function Ln(e,t,n,r,o,i){let a=vt(e).mult(1e6).add(vt(t).mult(1e3)).add(n);o&&(a=dt(a,void 0===r?Ne[i]:Math.pow(10,9-r),o));const s=a.abs(),u=s.div(1e9);let c=ft(s.sub(u.mult(1e9)).toNumber(),9);return c=void 0===r?c.replace(/0+$/,""):c.substr(0,r),[c?"."+c:"",u.toNumber()*(a.sign()||1)]}function Yn(e){Ze(e,{epochNanoseconds(){return this[zt].toBigInt()},epochMicroseconds(){return this[zt].div(1e3).toBigInt()},epochMilliseconds(){return this[zt].div(1e6).toNumber()},epochSeconds(){return this[zt].div(1e9).toNumber()}})}const Fn={calendar:"calendar"};for(const e of Ke)Fn[e]="iso"+((Rn=e).charAt(0).toUpperCase()+Rn.slice(1));var Rn;function Pn(e){Ze(e,ze((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).concat("calendar"),(e=>function(){return this.getISOFields()[Fn[e]]})))}const _n=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],Un=[..._n,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function jn(e,t){Ze(e,ze(t,(e=>function(){const t=this.calendar[e](this);return Object.defineProperty(this,e,{value:t}),t})))}function Bn(e,t){(e.prototype||e)[Symbol.toStringTag]="Temporal."+t}const Zn=Ye("offset",{prefer:0,use:1,ignore:2,reject:3});function $n(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(3===n)throw new RangeError("Ambiguous offset");if(r.length)return r[2===n?1:0];{const r=function(e,t){const n=qt(t),r=e.getOffsetNanosecondsFor(new Qi(n.sub(Ce)));return e.getOffsetNanosecondsFor(new Qi(n.add(Ce)))-r}(e,t),o=e.getPossibleInstantsFor(t.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function xn(e,t,n,r){let{year:o,month:i,day:a}=e;o+=t;const s=Fe(i,1,n.monthsInYear(o),r);let u=i===s?a:1;return u=Fe(u,1,n.daysInMonth(o,s),r),{year:o,month:s,day:u}}function zn(e,t,n,r){let{year:o,month:i,day:a}=e;if(t){if(i+=t,t<0)for(;i<1;)i+=n.monthsInYear(--o);else{let e;for(;i>(e=n.monthsInYear(o));)i-=e,o++}a=Fe(a,1,n.daysInMonth(o,i),r)}return{year:o,month:i,day:a}}function Vn(e,t){let{isoYear:n,isoMonth:r,isoDay:o}=e;if(t){let e=Jt(n,r,o);e=an(e,t),({isoYear:n,isoMonth:r,isoDay:o}=Wt(e))}return{isoYear:n,isoMonth:r,isoDay:o}}function Kn(e,t){if(Nt(t)>=6)throw new RangeError("Duration cant have units >= days");return e.add(Yt(t))}function Jn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=arguments.length>3?arguments[3]:void 0;const{offsetNanoseconds:o,timeZone:i,Z:a}=e;if(void 0!==o&&2!==n){if(1===n||a)return Vt(e).sub(o);{const r=Gn(e,o,i,t);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return $n(i,hi(e),In(r))[zt]}function Gn(e,t,n,r){const o=n.getPossibleInstantsFor(hi(e)),i=Vt(e),a=r?ht(t):t;for(const e of o){const t=e[zt],n=i.sub(t).toNumber();if((r?ht(n):n)===a)return t}}function Wn(e){const{timeZone:t}=e,n={...e,...Ot,calendar:new _i("iso8601")},r={...Vn(n,1),...Ot,calendar:new _i("iso8601")},o=$n(t,hi(n))[zt];return $n(t,hi(r))[zt].sub(o).toNumber()}const qn="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",Xn="([+-])"+qn,Qn="(Z|"+Xn+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",er=sr("([+-]\\d{6}|\\d{4})-?(\\d{2})"+Qn),tr=sr("(--)?(\\d{2})-?(\\d{2})"+Qn),nr=sr("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+Qn),rr=sr("T?"+qn+Qn),or=sr(Xn),ir=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,ar=/\u2212/g;function sr(e){return new RegExp(`^${e}$`,"i")}function ur(e){return e.replace(ar,"-")}function cr(e){const t=mr(e);if(!t)throw Ar("dateTime",e);return t}function hr(e){const t=fr(e);if(!t)throw Ar("dateTime",e);return t}function lr(e){const t=Sr(e);if(void 0===t)throw Ar("timeZone",e);return t}const dr=/^Z$/i;function mr(e){const t=nr.exec(ur(e));if(t)return function(e){const t=e[11];let n,r=!1;return t&&(r=dr.test(t),n=r?0:vr(e.slice(12))),{...wr(e),timeZone:e[21],offsetNanoseconds:n,Z:r}}(t.slice(1))}function fr(e,t,n){const r=nr.exec(ur(e));if(r&&(n||!dr.test(r[12]))&&(!t||r[4]))return wr(r.slice(1))}function gr(e){const t=er.exec(ur(e));if(t)return{calendar:(n=t.slice(1))[14],isoYear:Ir(n[0]),isoMonth:Ir(n[1]),isoDay:1};var n}function yr(e){const t=tr.exec(ur(e));if(t)return{calendar:(n=t.slice(1))[15],isoYear:xt,isoMonth:Ir(n[1]),isoDay:Ir(n[2])};var n}function Sr(e){const t=or.exec(ur(e));if(t)return vr(t.slice(1))}function wr(e){return{calendar:e[23],isoYear:Ir(e[0]),isoMonth:Ir(e[1]),isoDay:Ir(e[2]),...pr(e.slice(4))}}function pr(e){const t=Mr(e[4]);return{...Pt(br(e[6]||""))[0],isoHour:Mr(e[0]),isoMinute:Mr(e[2]),isoSecond:60===t?59:t}}function vr(e){return("+"===e[0]?1:-1)*function(e){return Mr(e[0])*Ee+6e10*Mr(e[2])+1e9*Mr(e[4])+br(e[6]||"")}(e.slice(1))}function br(e){return parseInt(gt(e,9,"0"))}function Mr(e){return parseInt(e||"0")}function Ir(e){return parseInt(e||"1")}function Tr(e){return void 0===e?void 0:parseInt(e)}function Ar(e,t){throw new RangeError(`Cannot parse ${e} '${t}'`)}function Dr(e){return{...e,calendar:void 0===e.calendar?Ui():new _i(e.calendar)}}function Er(e){return{...Dr(e),timeZone:new $r(e.timeZone)}}class Cr{constructor(e){this.id=e}}class Nr extends Cr{constructor(e,t){super(e),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function Or(e,t){const n={},r=e.formatToParts(t);for(const e of r)n[e.type]=e.value;return n}const kr={bc:"bce",ad:"ce"};function Hr(e){return e=e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),kr[e]||e}const Lr=Intl.DateTimeFormat;function Yr(e){return[].concat(e||[])}const Fr={"Pacific/Apia":{2011:[[Rr(13017528e5),-36e12,-396e11],[Rr(13168728e5),-396e11,-36e12],[Rr(13252392e5),-36e12,504e11]]}};function Rr(e){return vt(e).mult(1e6)}const Pr=(new Date).getUTCFullYear()+10,_r=[182,91,273];class Ur extends Cr{constructor(e){const t=new Lr("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:e});super(t.resolvedOptions().timeZone),this.format=t,this.yearEndOffsets={},this.transitionsInYear=Fr[e]||{}}getPossibleOffsets(e){let t;const n=[this.getTransition(e,-1),this.getTransition(e.sub(1),1)].filter(Boolean);for(const r of n){const[n,o,i]=r,a=e.sub(o),s=e.sub(i);if(bt(n,a)>0&&bt(n,s)>0)return[o];if(!(bt(n,a)<=0&&bt(n,s)<=0))return o<i?[]:[o,i];t=i}return void 0!==t?[t]:[1e9*this.getYearEndOffsetSec(Qt(e))]}getOffset(e){return 1e9*this.getOffsetForEpochSecs(e.div(1e9).toNumber())}getOffsetForEpochSecs(e){const t=Or(this.format,1e3*e);let n=parseInt(t.year);"bce"===Hr(t.era)&&(n=-(n-1));const r=Jt(n,parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second));return Math.floor(r/1e3)-e}getTransition(e,t){let n=Qt(e);if(n>Pr){const r=this.getTransitionFrom(n,n+t,t,e);if(r||t>0)return r;n=Pr}return this.getTransitionFrom(Math.max(n,1847),t<0?1846:Pr,t,e)}getTransitionFrom(e,t,n,r){for(;e!==t;e+=n){let t=this.getTransitionsInYear(e);n<0&&(t=t.slice().reverse());for(const e of t)if(bt(e[0],r)===n)return e}}getYearEndOffsetSec(e){const{yearEndOffsets:t}=this;return t[e]||(t[e]=this.getOffsetForEpochSecs(Xt(e+1)-1))}getTransitionsInYear(e){const{transitionsInYear:t}=this;return t[e]||(t[e]=this.computeTransitionsInYear(e))}computeTransitionsInYear(e){const t=this.getYearEndOffsetSec(e-1),n=this.getYearEndOffsetSec(e),r=Xt(e)-1,o=Xt(e+1)-1;if(t!==n)return[this.searchTransition(r,o,t,n)];const i=this.searchIsland(t,r);return void 0!==i?[this.searchTransition(r,i[0],t,i[1]),this.searchTransition(i[0],o,i[1],n)]:[]}searchTransition(e,t,n,r){for(;t-e>1;){const r=Math.floor(e+(t-e)/2);this.getOffsetForEpochSecs(r)===n?e=r:t=r}return[vt(t).mult(1e9),1e9*n,1e9*r]}searchIsland(e,t){for(const n of _r){const r=t+86400*n,o=this.getOffsetForEpochSecs(r);if(o!==e)return[r,o]}}}const jr={UTC:new Nr("UTC",0)},[Br,Zr]=Be();class $r extends nt{constructor(e){if(!e)throw new RangeError("Invalid timezone ID");super(),Zr(this,function(e){const t=(e=String(e)).toLocaleUpperCase();if(jr[t])return jr[t];const n=Sr(e);if(void 0!==n){if(Math.abs(n)>Ce)throw new RangeError("Offset out of bounds");return new Nr(On(n),n)}return jr[t]=new Ur(e)}(e))}static from(e){if(Ue(e))return function(e){const t=e.timeZone;return void 0===t?e:Ue(t)&&void 0===t.timeZone?t:new $r(t)}(e);const t=mr(String(e));if(t){if(t.timeZone){const e=Er(t);return function(e){const{offsetNanoseconds:t,timeZone:n,Z:r}=e;if(void 0!==t&&!r&&void 0===Gn(e,t,n,!0))throw new RangeError("Mismatching offset/timezone")}(e),e.timeZone}if(t.Z)return new $r("UTC");if(void 0!==t.offsetNanoseconds)return new $r(On(t.offsetNanoseconds))}return new $r(String(e))}get id(){return this.toString()}getOffsetStringFor(e){return On(this.getOffsetNanosecondsFor(e))}getOffsetNanosecondsFor(e){const t=tt(Qi,e);return Br(this).getOffset(t[zt])}getPlainDateTimeFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ui();const n=tt(Qi,e);return hi({...Gt(n[zt].add(this.getOffsetNanosecondsFor(n))),calendar:tt(_i,t)})}getInstantFor(e,t){return $n(this,tt(ci,e),In(t))}getPossibleInstantsFor(e){const t=Vt(tt(ci,e).getISOFields());return Br(this).getPossibleOffsets(t).map((e=>new Qi(t.sub(e))))}getPreviousTransition(e){const t=tt(Qi,e),n=Br(this).getTransition(t[zt],-1);return n?new Qi(n[0]):null}getNextTransition(e){const t=tt(Qi,e),n=Br(this).getTransition(t[zt],1);return n?new Qi(n[0]):null}toString(){return Br(this).id}}function xr(e){if(void 0===e.timeZone)throw new TypeError("Must specify timeZone");return tt($r,e.timeZone)}Bn($r,"TimeZone");const zr=fo((function(e,t,n){const r=oo(e,t,n);if(r)return{...r,timeZone:xr(e),offsetNanoseconds:void 0!==e.offset?lr(String(e.offset)):void 0}})),Vr=fo(oo),Kr=fo(io),Jr=fo((function(e,t){const n=Zi(e),r=ho(e,yn,n);if(go(r))return n.yearMonthFromFields(r,t)})),Gr=fo((function(e,t){const n=Zi(e),r=ho(e,pn,n);if(go(r))return void 0===e.year&&void 0===e.calendar&&(r.year=xt),n.monthDayFromFields(r,t)})),Wr=fo(ao),qr=fo((function(e,t,n,r){const o=so(e,t,n,r),i=void 0!==t.offset;if(o||i)return{...o||e.getISOFields(),timeZone:e.timeZone,offsetNanoseconds:i?lr(String(t.offset)):e.offsetNanoseconds}}),!0),Xr=fo(so,!0),Qr=fo(uo,!0),eo=fo((function(e,t,n){const r=e.calendar;if(go(ho(t,yn,r))){const o=mo(e,t,yn,r);return r.yearMonthFromFields(o,n)}}),!0),to=fo((function(e,t,n){const r=e.calendar;if(go(ho(t,pn,r))){const o=mo(e,t,pn,r);return r.monthDayFromFields(o,n)}}),!0),no=fo(co,!0),ro=fo((function(e){const t=Re(e,vn);if(go(t))return t}));function oo(e,t,n){const r=io(e,n),o=ao(e,t);if(r)return{...r.getISOFields(),...o||Ot}}function io(e,t){const n=Zi(e),r=ho(e,Sn,n);if(go(r))return n.dateFromFields(r,t)}function ao(e,t){const n=Re(e,wn);if(go(n))return gn(Ht(n),t)}function so(e,t,n,r){const o=uo(e,t,r),i=co(e,t,n);if(o||i)return{...e.getISOFields(),...o?o.getISOFields():{},...i}}function uo(e,t,n){const r=e.calendar,o=ho(t,Sn,r);if(go(o)){const t=mo(e,o,Sn,r);return r.dateFromFields(t,n)}}function co(e,t,n){const r=Re(t,wn);if(go(r))return gn(Ht((o=e,i=r,$e(wn,((e,t)=>{var n;return null!=(n=i[t])?n:o[t]})))),n);var o,i}function ho(e,t,n){let r=Object.keys(t);return r=n.fields?Array.prototype.slice.call(n.fields(r)):Object.keys(lo(n,r)),lo(e,r)}function lo(e,t){const n={};for(const r of t)void 0!==e[r]&&(n[r]=e[r]);return n}function mo(e,t,n,r){const o=ho(e,n,r);return r.mergeFields?r.mergeFields(o,t):ji(o,t)}function fo(e,t){return function(){if(t){const e=arguments.length<=1?void 0:arguments[1];if(!Ue(e))throw new TypeError("must be object-like");if(void 0!==e.calendar)throw new TypeError("calendar not allowed");if(void 0!==e.timeZone)throw new TypeError("timeZone not allowed")}const n=e(...arguments);if(!n)throw new TypeError("No valid fields");return n}}function go(e){return Object.keys(e).length>0}const yo=vt(Ce).mult(1e8),So=yo.mult(-1),wo=yo.add(86399999999999),po=So.sub(86399999999999);function vo(e,t){const n=Vt(e);bo(n),Hi(n,t)}function bo(e){-1!==bt(e,po)&&1!==bt(e,wo)||rn()}function Mo(e,t){const n=To(Ft(e),t),[r,o]=Pt(n);return{...Vn(e,o),...r}}function Io(e,t){const n=To(Ft(e),t),[r]=Pt(n);return r}function To(e,t){return ct(e,t.incNano,t.roundingFunc)}function Ao(e,t,n){return(r,o)=>{const i=ko(e,o)?{}:{...e,...t};return{buildKey:Oo(r,o,!1),buildFormat:function(e,t){return new Lr(r,{calendar:e,timeZone:t||void 0,...i,...o,...n})},buildEpochMilli:Do}}}function Do(e){return e.epochMilliseconds}function Eo(e,t,n){return(r,o)=>{const i=ko(e,o)?{}:e;return{buildKey:Oo(r,o,n),buildFormat:function(e,n){return new Lr(r,{calendar:e,...i,...o,...t,timeZone:n,timeZoneName:void 0})},buildEpochMilli:void 0!==o.timeZone?Co.bind(null,new $r(o.timeZone)):No}}}function Co(e,t){const n=hi({...Ot,...t.getISOFields()});return e.getInstantFor(n).epochMilliseconds}function No(e){return Jt((t=e.getISOFields()).isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond);var t}function Oo(e,t,n){var r;const o=null!=(r=t.calendar)?r:function(e){for(const t of e){const e=t.match(/-u-ca-(.*)$/);if(e)return e[1]}}(e),i=t.timeZone;return function(e,t){var r,a,s,u;const c=null==(r=e.calendar)?void 0:r.id,h=null==(a=e.timeZone)?void 0:a.id;if(t){if((null==(s=t.calendar)?void 0:s.id)!==c)throw new RangeError("Mismatching calendar");if((null==(u=t.timeZone)?void 0:u.id)!==h)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==c)&&void 0!==c&&void 0!==o&&o!==c)throw new RangeError("Non-iso calendar mismatch");if(void 0!==h&&void 0!==i&&i!==h)throw new RangeError("Given timeZone must agree");return[o||c||"iso8601",i||h||"UTC"]}}function ko(e,t){for(const n in e)if(void 0!==t[n])return!0;return!1}function Ho(e,t){e.prototype.toLocaleString=function(e,n){const r=t(Yr(e),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},e.prototype[et]=t}function Lo(e){return null==e?void 0:e[et]}function Yo(e,t,n,r){if(void 0!==e){if(void 0!==r)throw new RangeError("Partial units must be last unit");return[parseInt(e),void 0!==t?br(t)*(Ne[n]/1e9):void 0]}if(void 0!==r){const e=Math.trunc(r/Ne[n]);return[e,r-e*Ne[n]]}return[void 0,void 0]}const Fo=Ye("offset",{auto:0,never:1},0);class Ro extends at{constructor(){super({...gn({isoHour:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,isoMinute:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,isoSecond:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,isoMillisecond:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,isoMicrosecond:arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,isoNanosecond:arguments.length>5&&void 0!==arguments[5]?arguments[5]:0},1),calendar:Ui()})}static from(e,t){const n=Le(t);return Po(e instanceof Ro?e.getISOFields():"object"==typeof e?Wr(e,n):function(e){let t=function(e){const t=rr.exec(ur(e));if(t)return pr(t.slice(1))}(e);if(void 0!==t){if("T"!==e.charAt(0)){const n=gr(e)||yr(e);n&&function(e){try{return mn(e,1),!0}catch(e){return!1}}(n)&&(t=void 0)}}else t=fr(e,!0);if(void 0===t)throw Ar("time",e);return t}(String(e)))}static compare(e,t){return cn(tt(Ro,e),tt(Ro,t))}with(e,t){return Po(no(this,e,Le(t)))}add(e){return Uo(this,tt(ai,e))}subtract(e){return Uo(this,At(tt(ai,e)))}until(e,t){return jo(this,tt(Ro,e),t)}since(e,t){return jo(tt(Ro,e),this,t)}round(e){const t=Qe(e,0,5);return Po(Io(this.getISOFields(),t))}equals(e){return!cn(this,tt(Ro,e))}toString(e){const t=Tn(e);return Nn(Io(this.getISOFields(),t),t)}toZonedDateTime(e){const t=tt(Vi,e.plainDate),n=tt($r,e.timeZone);return Jo({...t.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(e){return tt(Vi,e).toPlainDateTime(this)}}function Po(e){return new Ro(e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function _o(e){return tt(Ro,null!=e?e:{hour:0})}function Uo(e,t){return Po(function(e,t){const n=Ft(e)+Yt(t).toNumber(),[r]=Pt(n);return r}(e.getISOFields(),t))}function jo(e,t,n){const r=Xe(n,5,0,0,5);return si(function(e,t,n){return Rt(vt(ct(Ft(t)-Ft(e),Ne[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(e.getISOFields(),t.getISOFields(),r))}Bn(Ro,"PlainTime"),Pn(Ro,Ve),Ho(Ro,(function(e,t){return{buildKey:()=>["",""],buildFormat:()=>new Lr(e,{hour:"numeric",minute:"2-digit",second:"2-digit",...t,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:e=>Math.trunc(Ft(e.getISOFields())/1e6)}}));const Bo={day:1};class Zo extends at{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ui();const r=mn({isoYear:e,isoMonth:t,isoDay:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1},1),o=tt(_i,n);var i,a;i=r,a=o.toString(),Hi(Vt(i),a),super({...r,calendar:o})}static from(e,t){if(Le(t),e instanceof Zo)return $o(e.getISOFields());if("object"==typeof e)return Jr(e,t);const n=function(e){const t=gr(e)||fr(e);if(!t)throw Ar("yearMonth",e);return t}(String(e));return void 0===n.calendar&&(n.isoDay=1),$o(Dr(n))}static compare(e,t){return un(tt(Zo,e),tt(Zo,t))}with(e,t){return eo(this,e,t)}add(e,t){return xo(this,tt(ai,e),t)}subtract(e,t){return xo(this,At(tt(ai,e)),t)}until(e,t){return zo(this,tt(Zo,e),!1,t)}since(e,t){return zo(this,tt(Zo,e),!0,t)}equals(e){return!un(this,tt(Zo,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=Mn(e);return("iso8601"===n?Cn(t):En(t))+kn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:this.year,month:this.month,day:e.day})}}function $o(e){return new Zo(e.isoYear,e.isoMonth,e.calendar,e.isoDay)}function xo(e,t,n){return e.toPlainDate({day:t.sign<0?e.daysInMonth:1}).add(t,n).toPlainYearMonth()}function zo(e,t,n,r){return si(Wi(e.toPlainDate(Bo),t.toPlainDate(Bo),$i(e,t),n,Xe(r,9,8,8,9)))}Bn(Zo,"PlainYearMonth"),Pn(Zo),jn(Zo,_n),Ho(Zo,Eo({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Vo=Symbol();class Ko extends at{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ui();const r=tt($r,t),o=tt(_i,n),i=vt(e),[a,s]=Go(i,r);vo(a,o.toString()),super({...a,calendar:o,timeZone:r,offset:On(s)}),this[zt]=i,this[Vo]=s}static from(e,t){const n=Zn(t,3),r=Le(t);if(e instanceof Ko)return new Ko(e.epochNanoseconds,e.timeZone,e.calendar);const o="object"==typeof e;return Jo(o?zr(e,r,t):Er(cr(String(e))),!o,n,t)}static compare(e,t){return ln(tt(Ko,e),tt(Ko,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[Vo]}get offset(){return this.getISOFields().offset}with(e,t){In(t);const n=Le(t),r=Zn(t,0);return Jo(qr(this,e,n,t),!1,r,t)}withPlainDate(e){const t=tt(Vi,e),n=t.toPlainDateTime(this),{timeZone:r}=this,o=$n(r,n);return new Ko(o.epochNanoseconds,r,xi(this,t))}withPlainTime(e){return Jo({...this.getISOFields(),...void 0===e?Ot:tt(Ro,e).getISOFields()})}withCalendar(e){return new Ko(this.epochNanoseconds,this.timeZone,e)}withTimeZone(e){return new Ko(this.epochNanoseconds,e,this.calendar)}add(e,t){return Wo(this,tt(ai,e),t)}subtract(e,t){return Wo(this,At(tt(ai,e)),t)}until(e,t){return Xo(this,tt(Ko,e),!1,t)}since(e,t){return Xo(this,tt(Ko,e),!0,t)}round(e){return qo(this,Qe(e,0,6))}equals(e){return this,sn(this,t=tt(Ko,e))&&this.timeZone.toString()===t.timeZone.toString();var t}startOfDay(){return Jo({...this.getISOFields(),...Ot,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return Wn(this.getISOFields())/Ee}toString(e){const t=Tn(e),n=Fo(e),r=An(e),o=Mn(e),i=qo(this,t);return Dn(i.getISOFields(),t)+(0===n?On(ht(i.offsetNanoseconds)):"")+(a=this.timeZone.toString(),1!==r?`[${a}]`:"")+kn(this.calendar.toString(),o);var a}toPlainYearMonth(){return $o(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return hi(this.getISOFields())}toPlainDate(){return Ki(this.getISOFields())}toPlainTime(){return Po(this.getISOFields())}toInstant(){return new Qi(this.epochNanoseconds)}}function Jo(e,t,n,r){const o=Jn(e,t,n,r);return new Ko(o,e.timeZone,e.calendar)}function Go(e,t){const n=new Qi(e),r=t.getOffsetNanosecondsFor(n);return[Gt(e.add(r)),r]}function Wo(e,t,n){const r=e.getISOFields(),o=function(e,t,n){const{calendar:r,timeZone:o}=e,i=r.dateAdd(Ki(e),Dt(t,kt),n);return $n(o,hi({...e,...i.getISOFields()}))[zt].add(Yt(t))}(r,t,n);return new Ko(o,r.timeZone,r.calendar)}function qo(e,t){const n=e.getISOFields(),r=function(e,t,n){const{calendar:r,timeZone:o}=e;let i,a,s=Ft(e);return 6===n.smallestUnit?(i=Ot,a=n.roundingFunc(s/Wn(e))):(s=To(s,n),[i,a]=Pt(s)),Jn({...Vn(e,a),...i,offsetNanoseconds:t,calendar:r,timeZone:o},!1,0)}(n,e.offsetNanoseconds,t);return new Ko(r,n.timeZone,n.calendar)}function Xo(e,t,n,r){const o=Xe(r,5,0,0,9),{largestUnit:i}=o;if(i>=6&&e.timeZone.id!==t.timeZone.id)throw new Error("Must be same timeZone");return si(Gi(e,t,$i(e,t),n,o))}function Qo(e){if(void 0===e)return;if(Ue(e))return e instanceof Ko||e instanceof ci?e:tt(void 0!==e.timeZone?Ko:ci,e);if("symbol"==typeof e)throw new TypeError("Incorrect relativeTo type");const t=mr(String(e));if(t)return void 0!==t.timeZone?Jo(Er(t),!0):hi(Dr(t));throw new RangeError("Invalid value of relativeTo")}function ei(e,t,n,r){return(n instanceof Vi?function(e,t,n,r){const o=n.add(e);return[r.dateUntil(n,o,{largestUnit:Ke[t]}),o]}(e,Math.max(6,t),n,r):ti(e,t,n,r))[0]}function ti(e,t,n,r,o){const i=!0!==o&&t>7&&e.weeks;i&&(e=Dt(e,{weeks:0}));let a=n.add(e),s=qi(n,a,r,t);return i&&(s=Dt(s,{weeks:i}),a=a.add({weeks:i})),[s,a]}function ni(e,t,n,r){const o=Je[t],{sign:i}=e;if(!i)return e;const a={};for(let n=9;n>=t;n--){const t=Je[n];a[t]=e[t]}const s={[o]:i},u=n.add(a),c=u.add(s),h=qt(u),l=qt(c),d=qt(r).sub(h).toNumber()/l.sub(h).toNumber()*i;return a[o]+=d,a}function ri(e,t,n,r,o,i){const{largestUnit:a,smallestUnit:s,roundingIncrement:u,roundingFunc:c}=i;if(!He(a))return Rt(dt(qt(n).sub(qt(t)).mult(o?-1:1),Ne[s]*u,c),a);let h=ni(e,s,t,n);const l=Je[s];function d(){const e=h[l];h[l]=ct(e,u,c)}return c===Math.round&&d(),o&&(h=At(h)),c!==Math.round&&d(),s>0&&(h=o?At(ei(At(h),a,t,r)):ei(h,a,t,r)),h}Bn(Ko,"ZonedDateTime"),Pn(Ko,Ve),jn(Ko,Un),Yn(Ko),Ho(Ko,Ao({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[oi,ii]=Be();class ai extends rt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;super();const h=ro({years:e,months:t,weeks:n,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:u,nanoseconds:c});ii(this,function(e){const t=Et(e),{sign:n}=t;for(const e of Je){const r=t[e],o=ut(t[e]);if(o&&o!==n)throw new RangeError("All fields must be same sign");if(!Number.isInteger(r))throw new RangeError("Duration fields must be integers")}return t}(h))}static from(e){return si("object"==typeof e?ro(e):function(e){const t=function(e){const t=ir.exec(ur(e));if(t){let e,n,r,o;[e,o]=Yo(t[8],t[10],5,void 0),[n,o]=Yo(t[12],t[14],4,o),[r,o]=Yo(t[16],t[18],3,o);const i=function(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}({years:Tr(t[2]),months:Tr(t[3]),weeks:Tr(t[4]),days:Tr(t[5]),hours:e,minutes:n,seconds:r});if(!Object.keys(i).length)throw new RangeError("Duration string must have at least one field");const a=Rt(vt(o||0),2);i.milliseconds=a.milliseconds,i.microseconds=a.microseconds,i.nanoseconds=a.nanoseconds;let s=Et(i);return"-"===t[1]&&(s=At(s)),s}}(e);if(void 0===t)throw Ar("duration",e);return t}(e))}static compare(e,t,n){return function(e,t,n){if(void 0===n&&Nt(e)<=6&&Nt(t)<=6)return bt(Lt(e),Lt(t));if(!n)throw new RangeError("Need relativeTo");const r=n.add(e),o=n.add(t);return void 0!==n[zt]?ln(r,o):un(r,o)}(tt(ai,e),tt(ai,t),Qo(Pe(n).relativeTo))}get years(){return oi(this).years}get months(){return oi(this).months}get weeks(){return oi(this).weeks}get days(){return oi(this).days}get hours(){return oi(this).hours}get minutes(){return oi(this).minutes}get seconds(){return oi(this).seconds}get milliseconds(){return oi(this).milliseconds}get microseconds(){return oi(this).microseconds}get nanoseconds(){return oi(this).nanoseconds}get sign(){return oi(this).sign}get blank(){return!this.sign}with(e){return si({...oi(this),...ro(e)})}negated(){return si(At(oi(this)))}abs(){return si(xe(oi(this),Tt,(e=>Math.abs(e))))}add(e,t){return ui(this,tt(ai,e),t)}subtract(e,t){return ui(this,At(tt(ai,e)),t)}round(e){const t="string"==typeof e?{smallestUnit:e}:e;if(!Ue(t))throw new TypeError("Must specify options");if(void 0===t.largestUnit&&void 0===t.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const n=Xe(t,Nt(this),0,0,9,!0),r=Qo(t.relativeTo);return si(function(e,t,n,r){const{largestUnit:o,smallestUnit:i,roundingIncrement:a,roundingFunc:s}=t;if(void 0===n&&Nt(e)<=6&&ke(o)&&ke(i))return Rt(dt(Lt(e),Ne[i]*a,s),o);if(!n)throw new RangeError("Need relativeTo");const[u,c]=ti(e,o,n,r);return ri(u,n,c,r,!1,t)}(this,n,r,r?r.calendar:void 0))}total(e){const t=function(e){let t,n;return"string"==typeof e?n=e:(n=Pe(e).unit,t=e.relativeTo),{unit:qe(n,void 0,0,9),relativeTo:t}}(e),n=Qo(t.relativeTo);return function(e,t,n,r){if(void 0===n&&Nt(e)<=6&&ke(t))return Lt(e).toNumber()/Ne[t];if(!n)throw new RangeError("Need relativeTo");const[o,i]=ti(e,t,n,r,!0);return ni(o,t,n,i)[Je[t]]}(this,t.unit,n,n?n.calendar:void 0)}toString(e){const t=Tn(e,3);return function(e,t){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=t,{sign:i}=e,a=e.hours,s=e.minutes;let u=e.seconds,c="";if(n<=3){const t=Ln(e.milliseconds,e.microseconds,e.nanoseconds,r,o,n);c=t[0],u+=t[1]}const h=void 0!==r||c||!i;return(i<0?"-":"")+"P"+Hn([[e.years,"Y"],[e.months,"M"],[e.weeks,"W"],[e.days,"D"]])+(a||s||u||h?"T"+Hn([[a,"H"],[s,"M"],[n<=3?u:0,c+"S",h]]):"")}(oi(this),t)}toLocaleString(e,t){return this.toString()}}function si(e){return new ai(e.years,e.months,e.weeks,e.days,e.hours,e.minutes,e.seconds,e.milliseconds,e.microseconds,e.nanoseconds)}function ui(e,t,n){const r=Qo(Pe(n).relativeTo);return si(function(e,t,n,r){const o=Math.max(Nt(e),Nt(t));if(void 0===n&&o<=6)return Rt(Lt(e).add(Lt(t)),o);if(!n)throw new RangeError("Need relativeTo");const i=n.add(e).add(t);return qi(n,i,r,o)}(e,t,r,r?r.calendar:void 0))}Bn(ai,"Duration");class ci extends at{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Ui();const h=fn({isoYear:e,isoMonth:t,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:a,isoMicrosecond:s,isoNanosecond:u},1),l=tt(_i,c);vo(h,l.toString()),super({...h,calendar:l})}static from(e,t){const n=Le(t);return hi(e instanceof ci?e.getISOFields():"object"==typeof e?Vr(e,n,t):Dr(hr(String(e))))}static compare(e,t){return un(tt(ci,e),tt(ci,t))}with(e,t){const n=Le(t);return hi(Xr(this,e,n,t))}withPlainDate(e){const t=tt(Vi,e);return hi({...this.getISOFields(),...t.getISOFields(),calendar:xi(this,t)})}withPlainTime(e){return hi({...this.getISOFields(),..._o(e).getISOFields()})}withCalendar(e){return hi({...this.getISOFields(),calendar:tt(_i,e)})}add(e,t){return li(this,tt(ai,e),t)}subtract(e,t){return li(this,At(tt(ai,e)),t)}until(e,t){return di(this,tt(ci,e),!1,t)}since(e,t){return di(this,tt(ci,e),!0,t)}round(e){const t=Qe(e,0,6);return hi({...Mo(this.getISOFields(),t),calendar:this.calendar})}equals(e){return sn(this,tt(ci,e))}toString(e){const t=Tn(e),n=Mn(e);return Dn(Mo(this.getISOFields(),t),t)+kn(this.calendar.toString(),n)}toZonedDateTime(e,t){const n=tt($r,e),r=$n(n,this,In(t));return new Ko(r.epochNanoseconds,n,this.calendar)}toPlainYearMonth(){return $o(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return Ki(this.getISOFields())}toPlainTime(){return Po(this.getISOFields())}}function hi(e){return new ci(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,e.calendar)}function li(e,t,n){const r=function(e,t,n){const{calendar:r}=e;return Gt(Vt(r.dateAdd(Ki(e),Dt(t,kt),n).getISOFields()).add(Ft(e)).add(Yt(t)))}(e.getISOFields(),t,n);return hi({...r,calendar:e.calendar})}function di(e,t,n,r){const o=Xe(r,6,0,0,9);return si(Gi(e,t,$i(e,t),n,o))}Bn(ci,"PlainDateTime"),Pn(ci,Ve),jn(ci,Un),Ho(ci,Eo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class mi extends at{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ui();super({...mn({isoYear:arguments.length>3&&void 0!==arguments[3]?arguments[3]:xt,isoMonth:e,isoDay:t},1),calendar:tt(_i,n)})}static from(e,t){if(Le(t),e instanceof mi)return fi(e.getISOFields());if("object"==typeof e)return Gr(e,t);const n=function(e){const t=yr(e)||fr(e);if(!t)throw Ar("monthDay",e);return t}(String(e));return void 0===n.calendar&&(n.isoYear=xt),fi(Dr(n))}with(e,t){return to(this,e,t)}equals(e){return!un(this,tt(mi,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=Mn(e);return("iso8601"===n?function(e){return ft(e.isoMonth,2)+"-"+ft(e.isoDay,2)}(t):En(t))+kn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:e.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function fi(e){return new mi(e.isoMonth,e.isoDay,e.calendar,e.isoYear)}function gi(e){return e instanceof Vi||e instanceof ci||e instanceof Ko||e instanceof Zo||e instanceof mi}function yi(e,t,n){let r;if(e instanceof Vi)r=e;else if(gi(e)){if(n&&e instanceof mi)throw new TypeError("PlainMonthDay not allowed");r=Ki(e.getISOFields())}else r=Vi.from(e);return zi(r.calendar,t),r}function Si(e,t,n){if(gi(e))return e.getISOFields();let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:u}=e;const c=void 0!==o&&void 0!==r?jt(t.id,o,r):void 0;if(void 0===i){if(void 0===c)throw new TypeError("Must specify either a year or an era & eraYear");i=c}else if(void 0!==c&&c!==i)throw new RangeError("year and era/eraYear must match");if(void 0===u)throw new TypeError("Must specify day");const h=Le(n);if(void 0!==s){const[e,n]=t.convertMonthCode(s,i);if(void 0!==a&&a!==e)throw new RangeError("Month doesnt match with monthCode");if(a=e,n){if(1===h)throw new RangeError("Month code out of range");u=t.daysInMonth(i,a)}}else if(void 0===a)throw new TypeError("Must specify either a month or monthCode");return[i,a,u]=dn(i,a,u,t,h),Wt(t.epochMilliseconds(i,a,u))}function wi(e,t){if(gi(e)){if(t&&e instanceof mi)throw new TypeError("PlainMonthDay not allowed");return e.getISOFields()}return Vi.from(e).getISOFields()}function pi(e,t){return on(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t+1,1,1))}function vi(e,t,n,r){return on(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t,n,r))+1}Bn(mi,"PlainMonthDay"),Pn(mi),jn(mi,["monthCode","day"]),Ho(mi,Eo({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const bi={hebrew:6,chinese:0,dangi:0};class Mi extends Ut{constructor(e){const t=Ii(e);if(n=e,r=t.resolvedOptions().calendar,Bt(n)!==Bt(r))throw new RangeError("Invalid calendar: "+e);var n,r;super(e),this.format=t,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(e,t,n){return an(this.queryMonthCache(e)[0][t-1],n-1)}daysInMonth(e,t){const n=this.queryMonthCache(e)[0],r=n[t-1];return t>=n.length&&(e++,t=0),on(r,this.queryMonthCache(e)[0][t])}monthsInYear(e){return this.queryMonthCache(e)[0].length}monthCode(e,t){const n=this.queryLeapMonthByYear(t);return!n||e<n?super.monthCode(e,t):super.monthCode(e-1,t)+(e===n?"L":"")}convertMonthCode(e,t){const n=this.queryLeapMonthByYear(t);let r=/L$/.test(e),o=parseInt(e.substr(1)),i=!1;if(r){const e=bi[this.id];if(void 0===e)throw new RangeError("Calendar system doesnt support leap months");if(e){if(o!==e-1)throw new RangeError("Invalid leap-month month code")}else if(o<=1||o>=12)throw new RangeError("Invalid leap-month month code")}return!r||n&&o===n-1||(i=!0,r=!1),(r||n&&o>=n)&&o++,[o,i]}inLeapYear(e){const t=pi(this,e);return t>pi(this,e-1)&&t>pi(this,e+1)}guessYearForMonthDay(e,t){let n=1970+this.yearCorrection;const r=n+100;for(;n<r;n++){const[r,o]=this.convertMonthCode(e,n);if(!o&&r<=this.monthsInYear(n)&&t<=this.daysInMonth(n,r))return n}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(e){return e}computeFields(e){const t=this.computeFieldsDumb(e),n=this.queryMonthCache(t.year)[2];return{...t,month:n[t.month]}}computeFieldsDumb(e){const t=Or(this.format,e);let n,r,o=parseInt(t.relatedYear||t.year);var i;return t.era&&(i=this.id,void 0!==_t[Bt(i)])&&(n=Hr(t.era),r=o,o=jt(this.id,r,n,!0)),{era:n,eraYear:r,year:o,month:t.month,day:parseInt(t.day)}}queryLeapMonthByYear(e){const t=this.queryMonthCache(e),n=this.queryMonthCache(e-1),r=this.queryMonthCache(e+1);if(t[0].length>n[0].length&&t[0].length>r[0].length){const e=t[1],r=n[1];for(let t=0;t<r.length;t++)if(r[t]!==e[t])return t+1}}queryMonthCache(e){const{monthCacheByYear:t}=this;return t[e]||(t[e]=this.buildMonthCache(e))}buildMonthCache(e){const t=[],n=[],r={};let o=Jt(this.guessISOYear(e),1,1);for(o=an(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<e)break;o=an(o,1-r.day),r.year===e&&(t.unshift(o),n.unshift(r.month)),o=an(o,-1)}for(let e=0;e<n.length;e++)r[n[e]]=e+1;return[t,n,r]}guessISOYear(e){return e-this.yearCorrection}}function Ii(e){return new Lr("en-US",{calendar:e,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const Ti=Jt(1868,9,8),Ai={gregory:bn,japanese:class extends bn{constructor(){super(...arguments),this.format=Ii("japanese")}computeFields(e){const t=super.computeFields(e);if(e>=Ti){const n=Or(this.format,e);t.era=Hr(n.era),t.eraYear=parseInt(n.relatedYear||n.year)}return t}},islamic:class extends Mi{guessISOYear(e){return Math.ceil(32*e/33+622)}}},Di={iso8601:$t};function Ei(e){const t=(e=String(e)).toLocaleLowerCase();return Di[t]||(Di[t]=new(Ai[Bt(t)]||Mi)(e))}const Ci=Jt(1582,10,15),Ni=Jt(622,7,18),Oi={buddhist:Ci,japanese:Ci,roc:Ci,islamic:Ni,"islamic-rgsa":Ni,indian:0},ki={};function Hi(e,t){return Li(e.div(1e6).toNumber(),t)}function Li(e,t){if(function(e,t){return function(e){let t=ki[e];if(void 0===t){const n=Oi[e];if(void 0===n)t=!1;else{let r=Ei(e);r instanceof Mi||(r=new Mi(e));const o=n-864e5,i=r.computeFields(o);t=o!==r.epochMilliseconds(i.year,i.month,i.day)}ki[e]=t}return t}(t)&&e<Oi[t]}(e,t))throw new RangeError("Invalid timestamp for calendar")}function Yi(e,t,n){const r=7+t-n;return-mt(en(e,1,r)-t,7)+r-1}function Fi(e,t,n){const r=Yi(e,t,n),o=Yi(e+1,t,n);return(pi($t,e)-r+o)/7}const[Ri,Pi]=Be();class _i extends nt{constructor(e){super(),"islamicc"===e&&(e="islamic-civil"),Pi(this,Ei(e))}static from(e){if(Ue(e))return function(e){const t=e.calendar;return void 0===t?e:Ue(t)&&void 0===t.calendar?t:new _i(t)}(e);const t=fr(String(e),!1,!0);return new _i(t?t.calendar||"iso8601":String(e))}get id(){return this.toString()}era(e){const t=wi(e,!0);return Bi(Ri(this),t.isoYear,t.isoMonth,t.isoDay).era}eraYear(e){const t=wi(e,!0);return Bi(Ri(this),t.isoYear,t.isoMonth,t.isoDay).eraYear}year(e){const t=wi(e,!0);return Bi(Ri(this),t.isoYear,t.isoMonth,t.isoDay).year}month(e){const t=wi(e,!0);return Bi(Ri(this),t.isoYear,t.isoMonth,t.isoDay).month}monthCode(e){const t=yi(e,this);return Ri(this).monthCode(t.month,t.year)}day(e){const t=wi(e);return Bi(Ri(this),t.isoYear,t.isoMonth,t.isoDay).day}dayOfWeek(e){const t=wi(e,!0);return en(t.isoYear,t.isoMonth,t.isoDay)}dayOfYear(e){const t=yi(e,this,!0);return vi(Ri(this),t.year,t.month,t.day)}weekOfYear(e){const t=wi(e,!0);return function(e,t,n,r,o){const i=Yi(e,1,4),a=Math.floor((vi($t,e,t,n)-i-1)/7)+1;if(a<1)return a+Fi(e-1,1,4);const s=Fi(e,1,4);return a>s?a-s:a}(t.isoYear,t.isoMonth,t.isoDay)}daysInWeek(e){return wi(e,!0),7}daysInMonth(e){const t=yi(e,this,!0);return Ri(this).daysInMonth(t.year,t.month)}daysInYear(e){const t=yi(e,this,!0);return pi(Ri(this),t.year)}monthsInYear(e){const t=yi(e,this,!0);return Ri(this).monthsInYear(t.year)}inLeapYear(e){return Ri(this).inLeapYear(this.year(e))}dateFromFields(e,t){const n=Si(Re(e,Sn),Ri(this),t);return new Vi(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(e,t){const n=Si({...Re(e,yn),day:1},Ri(this),t);return new Zo(n.isoYear,n.isoMonth,this,n.isoDay)}monthDayFromFields(e,t){const n=Ri(this);let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:u}=Re(e,pn);if(void 0===u)throw new TypeError("required property 'day' missing or undefined");if(void 0!==s?i=xt:void 0!==r&&void 0!==o&&(i=jt(n.id,o,r)),void 0===i){if(void 0===s)throw new TypeError("either year or monthCode required with month");i=n.guessYearForMonthDay(s,u)}const c=Si({year:i,month:a,monthCode:s,day:u},n,t);return new mi(c.isoMonth,c.isoDay,this,n.normalizeISOYearForMonthDay(c.isoYear))}dateAdd(e,t,n){const r=Ri(this),o=function(e,t,n,r){e=zn(e=xn(e,t.years,n,r),t.months,n,r);let o=n.epochMilliseconds(e.year,e.month,e.day);const i=Math.trunc(Yt(t).div(Ce).toNumber());return o=an(o,7*t.weeks+t.days+i),Wt(o)}(tt(Vi,e,n),tt(ai,t),r,Le(n));return new Vi(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(e,t,n){const r=Ri(this),o=tt(Vi,e),i=tt(Vi,t),a=Pe(n).largestUnit,s="auto"===a?6:qe(a,6,6,9);return zi(this,$i(o,i)),si(function(e,t,n,r){let o=0,i=0,a=0,s=0;switch(r){case 9:o=function(e,t,n){const[,r,o]=dn(t.year,e.month,e.day,n,0),i=hn(t,e),a=st(t.month,r)||st(t.day,o);return t.year-e.year-(a&&i&&a!==i?i:0)}(e,t,n),e=xn(e,o,n,0);case 8:i=function(e,t,n){let r=0;const o=hn(t,e);if(o){let{year:i}=e;for(;i!==t.year;)r+=n.monthsInYear(i)*o,i+=o;const[,a,s]=dn(t.year,e.month,e.day,n,0);r+=t.month-a;const u=st(t.day,s);u&&o&&u!==o&&(r-=o)}return r}(e,t,n),e=zn(e,i,n,0)}return s=on(n.epochMilliseconds(e.year,e.month,e.day),n.epochMilliseconds(t.year,t.month,t.day)),7===r&&(a=Math.trunc(s/7),s%=7),Et({years:o,months:i,weeks:a,days:s,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(o,i,r,s))}fields(e){return e.slice()}mergeFields(e,t){return ji(e,t)}toString(){return Ri(this).id}}function Ui(){return new _i("iso8601")}function ji(e,t){var n;const r={...e,...t};if(void 0!==e.year){delete r.era,delete r.eraYear,delete r.year;let n=!1;void 0===t.era&&void 0===t.eraYear||(r.era=t.era,r.eraYear=t.eraYear,n=!0),void 0!==t.year&&(r.year=t.year,n=!0),n||(r.year=e.year)}if(void 0!==e.monthCode){delete r.monthCode,delete r.month;let n=!1;void 0!==t.month&&(r.month=t.month,n=!0),void 0!==t.monthCode&&(r.monthCode=t.monthCode,n=!0),n||(r.monthCode=e.monthCode)}return void 0!==e.day&&(r.day=null!=(n=t.day)?n:e.day),r}function Bi(e,t,n,r){const o=Jt(t,n,r);return Li(o,e.id),e.computeFields(o)}function Zi(e){return void 0===e.calendar?Ui():tt(_i,e.calendar)}function $i(e,t){const{calendar:n}=e;return zi(n,t.calendar),n}function xi(e,t){const n=e.calendar,r=t.calendar;if("iso8601"===n.id)return r;if("iso8601"===r.id)return n;if(n.id!==r.id)throw new RangeError("Non-ISO calendars incompatible");return n}function zi(e,t){if(e.toString()!==t.toString())throw new RangeError("Calendars must match")}Bn(_i,"Calendar");class Vi extends at{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ui();const o=mn({isoYear:e,isoMonth:t,isoDay:n},1),i=tt(_i,r);!function(e,t){const n=Vt(e);bo(n.add(n.sign()<0?86399999999999:0)),Hi(n,t)}(o,i.toString()),super({...o,calendar:i})}static from(e,t){return Le(t),e instanceof Vi?Ki(e.getISOFields()):"object"==typeof e?Kr(e,t):Ki(Dr(hr(String(e))))}static compare(e,t){return un(tt(Vi,e),tt(Vi,t))}with(e,t){return Qr(this,e,t)}withCalendar(e){const t=this.getISOFields();return new Vi(t.isoYear,t.isoMonth,t.isoDay,e)}add(e,t){return this.calendar.dateAdd(this,e,t)}subtract(e,t){return this.calendar.dateAdd(this,tt(ai,e).negated(),t)}until(e,t){return Ji(this,tt(Vi,e),!1,t)}since(e,t){return Ji(this,tt(Vi,e),!0,t)}equals(e){return!un(this,tt(Vi,e))}toString(e){const t=Mn(e),n=this.getISOFields();return En(n)+kn(n.calendar.toString(),t)}toZonedDateTime(e){const t=function(e){let t,n;if("string"==typeof e)n=e;else{if("object"!=typeof e)throw new TypeError("Invalid options/timeZone argument");if(void 0!==e.id?n=e:(n=e.timeZone,t=e.plainTime),void 0===n)throw new TypeError("Invalid timeZone argument")}return{plainTime:t,timeZone:n}}(e),n=tt($r,t.timeZone),r=void 0===t.plainTime?void 0:tt(Ro,t.plainTime);return Jo({...this.getISOFields(),...r?r.getISOFields():Ot,timeZone:n})}toPlainDateTime(e){return hi({...this.getISOFields(),..._o(e).getISOFields()})}toPlainYearMonth(){return $o(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function Ki(e){return new Vi(e.isoYear,e.isoMonth,e.isoDay,e.calendar)}function Ji(e,t,n,r){return si(Wi(e,t,$i(e,t),n,Xe(r,6,6,6,9)))}function Gi(e,t,n,r,o){return ri(qi(e,t,n,o.largestUnit),e,t,n,r,o)}function Wi(e,t,n,r,o){return ri(n.dateUntil(e,t,{largestUnit:Ke[o.largestUnit]}),e,t,n,r,o)}function qi(e,t,n,r){if(!He(r))return Xi(e,t,r);const o=Ki({...e.getISOFields(),calendar:n});let i,a,s,u,c,h=Ki({...t.getISOFields(),calendar:n});do{a=n.dateUntil(o,h,{largestUnit:Ke[r]}),i=e.add(a),s=Xi(i,t,5),u=a.sign,c=s.sign}while(u&&c&&u!==c&&(h=h.add({days:c})));return d=s,{sign:(l=a).sign||d.sign,years:l.years+d.years,months:l.months+d.months,weeks:l.weeks+d.weeks,days:l.days+d.days,hours:l.hours+d.hours,minutes:l.minutes+d.minutes,seconds:l.seconds+d.seconds,milliseconds:l.milliseconds+d.milliseconds,microseconds:l.microseconds+d.microseconds,nanoseconds:l.nanoseconds+d.nanoseconds};var l,d}function Xi(e,t,n){return Rt(qt(t).sub(qt(e)),n)}Bn(Vi,"PlainDate"),Pn(Vi),jn(Vi,Un),Ho(Vi,Eo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class Qi extends rt{constructor(e){super();const t=vt(e,!0);!function(e){-1!==bt(e,So)&&1!==bt(e,yo)||rn()}(t),this[zt]=t}static from(e){if(e instanceof Qi)return new Qi(e.epochNanoseconds);const t=cr(String(e)),n=t.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new Qi(Vt(fn(t,1)).sub(n))}static fromEpochSeconds(e){return new Qi(vt(e).mult(1e9))}static fromEpochMilliseconds(e){return new Qi(vt(e).mult(1e6))}static fromEpochMicroseconds(e){return new Qi(e*BigInt(1e3))}static fromEpochNanoseconds(e){return new Qi(e)}static compare(e,t){return ln(tt(Qi,e),tt(Qi,t))}add(e){return new Qi(Kn(this[zt],tt(ai,e)))}subtract(e){return new Qi(Kn(this[zt],At(tt(ai,e))))}until(e,t){return ea(this,tt(Qi,e),t)}since(e,t){return ea(tt(Qi,e),this,t)}round(e){const t=Qe(e,0,5,!0);return new Qi(function(e,t){const[n,r]=function(e){const t=Gt(e);return[Kt(t.isoYear,t.isoMonth,t.isoDay),Ft(t)]}(e),o=To(r,t);return n.add(o)}(this[zt],t))}equals(e){return!ln(this,tt(Qi,e))}toString(e){const t=Pe(e).timeZone;return this.toZonedDateTimeISO(null!=t?t:"UTC").toString({...e,offset:void 0===t?"never":"auto",timeZoneName:"never"})+(void 0===t?"Z":"")}toZonedDateTimeISO(e){return new Ko(this.epochNanoseconds,e)}toZonedDateTime(e){if(!Ue(e))throw new TypeError("Must specify options");if(void 0===e.calendar)throw new TypeError("Must specify a calendar");if(void 0===e.timeZone)throw new TypeError("Must specify a timeZone");return new Ko(this.epochNanoseconds,e.timeZone,e.calendar)}}function ea(e,t,n){const r=Xe(n,3,0,0,5);return si(function(e,t,n){return Rt(dt(t.sub(e),Ne[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(e[zt],t[zt],r))}function ta(){return Qi.fromEpochMilliseconds(this.valueOf())}Bn(Qi,"Instant"),Yn(Qi),Ho(Qi,Ao({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const na=Symbol(),ra=Symbol(),oa=Symbol();class ia extends Intl.DateTimeFormat{constructor(e,t){const n=Yr(e),r=function(e){const t={};for(const n in e){let r=e[n];Ue(r)&&(r=r.toString()),t[n]=r}return t}(t||{});super(n,r),this[na]=n,this[ra]=r,this[oa]=new Map}format(e){const t=sa(this,e);return t[0]===this?super.format(t[1]):t[0].format(t[1])}formatToParts(e){return super.formatToParts.call(...sa(this,e))}formatRange(e,t){return super.formatRange.call(...ua(this,e,t))}formatRangeToParts(e,t){return super.formatRangeToParts.call(...ua(this,e,t))}}const aa=ia;function sa(e,t){const n=Lo(t);if(n){const r=ca(e,n);return[r.buildFormat(t),r.buildEpochMilli(t)]}return[e,t]}function ua(e,t,n){const r=Lo(t);if(r!==Lo(n))throw new TypeError("Mismatch of types");if(r){const o=ca(e,r);return[o.buildFormat(t,n),new Date(o.buildEpochMilli(t)),new Date(o.buildEpochMilli(n))]}return[e,t,n]}function ca(e,t){const n=e[oa];let r=n.get(t);return r||(r=function(e){const t={};return{buildFormat:function(n,r){const o=e.buildKey(n,r),i=o.join("|");return t[i]||(t[i]=e.buildFormat(...o))},buildEpochMilli:e.buildEpochMilli}}(t(e[na],e[ra])),n.set(t,r)),r}const ha={zonedDateTimeISO:function(e){return Jo(da("iso8601",e))},zonedDateTime:function(e,t){return Jo(da(e,t))},plainDateTimeISO:function(e){return hi(da("iso8601",e))},plainDateTime:function(e,t){return hi(da(e,t))},plainDateISO:function(e){return Ki(da("iso8601",e))},plainDate:function(e,t){return Ki(da(e,t))},plainTimeISO:function(e){return Po(da("iso8601",e))},instant:function(){return new Qi(ma())},timeZone:la};function la(){return new $r((new Lr).resolvedOptions().timeZone)}function da(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:la();const n=tt($r,t);return{...Go(ma(),n)[0],timeZone:n,calendar:tt(_i,e)}}function ma(){return vt(Date.now()).mult(1e6)}Bn(ha,"Now");const fa={PlainYearMonth:Zo,PlainMonthDay:mi,PlainDate:Vi,PlainTime:Ro,PlainDateTime:ci,ZonedDateTime:Ko,Instant:Qi,Calendar:_i,TimeZone:$r,Duration:ai,Now:ha,[Symbol.toStringTag]:"Temporal"};function ga(e){return e<10?"0"+e:String(e)}function ya(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}("undefined"!=typeof globalThis?globalThis:window).Temporal=fa,Intl.DateTimeFormat=aa,Date.prototype.toTemporalInstant=ta;class Sa{constructor(t,n,r){const o=e.greg.isDate(n)?n:ae.isHDate(n)?n.greg():Q(`invalid date: ${n}`);this.date=o,this.gloc=t;const i=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new we(t,i),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return ya(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return ya(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return ya(this.noaa.getSeaLevelSunrise())}sunset(){return ya(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return ya(this.noaa.getSeaLevelSunset())}dawn(){return ya(this.noaa.getBeginCivilTwilight())}dusk(){return ya(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new Sa(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return ya(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.noaa.getSunrise(),n=this.noaa.getSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return ya(we.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanShmaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=Ae("UTC",t),r=Ae(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+ga(Math.floor(r/60))+":"+ga(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:Ae(e,t).substring(0,19)+Sa.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const wa={FRI:5,SAT:6};function pa(e,t,n,r,o){let i=!1,a=n==wa.SAT,s=e?e.getFlags():he.LIGHT_CANDLES;void 0!==e?n!=wa.FRI&&(s&(he.LIGHT_CANDLES_TZEIS|he.CHANUKAH_CANDLES)?a=!0:s&he.YOM_TOV_ENDS&&(i=!0,a=!0)):n==wa.SAT&&(i=!0,s=he.LIGHT_CANDLES_TZEIS);const u=a?o.havdalahMins:o.candleLightingMins,c=new Sa(r,t,o.useElevation),h=u?c.sunsetOffset(u,!0):c.tzeit(o.havdalahDeg);return isNaN(h.getTime())?null:i?new ba(t,s,h,r,o.havdalahMins,e):new Ma(t,s,h,r,e)}class va extends de{constructor(e,t,n,r,o,i){super(e,t,n),this.eventTime=Sa.roundTime(r),this.location=o;const a=o.getTimeFormatter();this.eventTimeStr=Sa.formatTime(this.eventTime,a),void 0!==i&&(this.linkedEvent=i)}render(e){return d.gettext(this.getDesc(),e)+": "+this.eventTimeStr}renderBrief(e){return d.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class ba extends va{constructor(e,t,n,r,o,i){super(e,"Havdalah",t,n,r,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.eventTimeStr}renderBrief(e){let t=d.gettext(this.getDesc(),e);if(this.havdalahMins){const n=d.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class Ma extends va{constructor(e,t,n,r,o){super(e,"Candle lighting",t,n,r,o)}getEmoji(){return"🕯️"}}function Ia(e,t,n,r,o){return isNaN(t.getTime())?null:new va(e,n,r.getFlags(),t,o,r)}const Ta=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Aa=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Da="בַּלַּ֥יְלָה";class Ea{constructor(e,t){let n=t-7;n<0&&(n+=ae.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080,s=(1+29*r+Math.floor(i/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=i%24,this.minutes=Math.floor(a/18),this.chalakim=a%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return ae.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}}class Ca extends de{constructor(e,t,n){const r=new Ea(t,n);super(e,`Molad ${r.getMonthName()} ${t}`,he.MOLAD),this.molad=r}render(e){const t=this.molad;"string"==typeof(e=e||d.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=d.gettext(t.getMonthName(),e),o=(n?Aa:Ta)[t.getDow()],i=t.getMinutes(),a=t.getHour(),s=t.getChalakim(),u=d.gettext("Molad",e),c=d.lookupTranslation("min",e)||"minutes",h=d.gettext("chalakim",e);if(n){return`${u} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${a} ${a<5?Da:a<12?"בַּבֹּקֶר":a<17?"בַּצׇּהֳרַיִים":a<21?"בָּעֶרֶב":Da}, ו-${i} ${c} ו-${s} ${h}`}return`${u} ${r}: ${o}, ${i} ${c} and ${s} ${h} after ${a}:00`}}const Na=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Oa=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class ka extends de{constructor(e,t){if(super(e,`Omer ${t}`,he.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";const t=Na[this.weekNumber],n=Na[this.daysWithinWeeks];switch(e){case"he":const e=d.gettext(t,"he");return`${d.gettext(n,"he")} ${2===this.weekNumber||6===this.weekNumber?"שֶׁבִּ":"שֶׁבְּ"}${e}`.normalize();case"translit":const r=Oa[this.weekNumber];return`${Oa[this.daysWithinWeeks]} ${2===this.weekNumber||6===this.weekNumber?"shebi":"sheb'"}${r}`;default:return`${n} within ${t}`}}render(e){e=e||d.getLocaleName();const t=this.omer;return("he"==e?i(t):d.ordinal(t,e))+" "+d.gettext("day of the Omer",e)}renderBrief(e){return d.gettext("Omer",e)+" "+d.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;const e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||d.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return ja(this.omer);if("he-x-nonikud"===e)return d.hebrewStripNikkud(ja(this.omer));const t=1===this.omer?"day":"days";let n=`Today is ${this.omer} ${t}`;if(this.weekNumber>1||7===this.omer){const e=7===this.daysWithinWeeks,t=e?this.weekNumber:this.weekNumber-1;if(n+=`, which is ${t} ${1===t?"week":"weeks"}`,!e){const e=1===this.daysWithinWeeks?"day":"days";n+=` and ${this.daysWithinWeeks} ${e}`}}return n+" of the Omer"}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}const Ha=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],La=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Ya="שְׁנֵי",Fa="יָמִים",Ra=Ya+" "+Fa,Pa="שָׁבוּעוֹת",_a="יוֹם",Ua=_a+" "+La[1];function ja(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=La[n]+" עָשָׂר":e>9&&(r+=La[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=Ha[t]),r+=e<11?La[n]+" "+Fa+" ":" "+_a+" "):r+=1===e?Ua+" ":Ra+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?La[t]+" "+Pa+" ":1==t?"שָׁבוּעַ "+La[1]+" ":Ya+" "+Pa+" ",n&&(r+="וְ",r+=n>2?La[n]+" "+Fa+" ":1==n?Ua+" ":Ra+" ")}return r+="לָעוֹמֶר",r.normalize()}class Ba{constructor(e,t){e=+e;const n=ae.longCheshvan(e),r=ae.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const i=new ae(1,E.TISHREI,e),a=i.abs(),s=this.roshHashanaDay=i.getDay()+1;this.firstSaturday=ae.dayOnOrBefore(6,a+6);const u=this.leap=+ae.isLeapYear(e);this.il=Boolean(t);const c=`${u}${s}${o}`;if(os[c])this.key=c,this.theSedraArray=os[c];else{const e=this.key=c+ +this.il;this.theSedraArray=os[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||d.getLocaleName();let o=d.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+d.gettext(n[1],r)}return d.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new ae(this.firstSaturday+7*t)}if("string"==typeof e){const t=$a.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new ae(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=$a.get(t);if($a.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:ae.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ae.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return new Ba(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Za[o]],chag:!1,num:o+1};const i=xa(o);return{parsha:[Za[i],Za[i+1]],chag:!1,num:[i+1,i+2]}}}const Za=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'azinu"],$a=new Map;for(let e=0;e<Za.length;e++){const t=Za[e];$a.set(t,e)}function xa(e){return-e}const za="Rosh Hashana",Va="Yom Kippur",Ka="Sukkot",Ja="Sukkot Shabbat Chol ha-Moed",Ga="Shmini Atzeret",Wa=Ja,qa="Pesach",Xa="Pesach I",Qa="Pesach Shabbat Chol ha-Moed",es="Pesach VII",ts="Pesach VIII",ns="Shavuot";function rs(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const os={"020":[51,52].concat(Wa,rs(0,20),xa(21),23,24,qa,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,49),xa(50)),"0220":[51,52].concat(Wa,rs(0,20),xa(21),23,24,qa,25,xa(26),xa(28),30,xa(31),33,ns,rs(34,37),xa(38),40,xa(41),rs(43,49),xa(50)),"0510":[52].concat(Va,Wa,rs(0,20),xa(21),23,24,Xa,ts,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,50)),"0511":[52].concat(Va,Wa,rs(0,20),xa(21),23,24,qa,25,xa(26),xa(28),rs(30,40),xa(41),rs(43,50)),"052":[52].concat(Va,Ja,rs(0,24),es,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,50)),"070":[].concat(za,52,Ka,Ga,rs(0,20),xa(21),23,24,es,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,50)),"072":[].concat(za,52,Ka,Ga,rs(0,20),xa(21),23,24,Qa,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,49),xa(50)),1200:[51,52].concat(Ja,rs(0,27),Qa,rs(28,33),ns,rs(34,37),xa(38),40,xa(41),rs(43,49),xa(50)),1201:[51,52].concat(Ja,rs(0,27),Qa,rs(28,40),xa(41),rs(43,49),xa(50)),1220:[51,52].concat(Ja,rs(0,27),Xa,ts,rs(28,40),xa(41),rs(43,50)),1221:[51,52].concat(Ja,rs(0,27),qa,rs(28,50)),150:[52].concat(Va,Ja,rs(0,28),es,rs(29,50)),152:[52].concat(Va,Ja,rs(0,28),Qa,rs(29,49),xa(50)),170:[].concat(za,52,Ka,Ga,rs(0,27),Qa,rs(28,40),xa(41),rs(43,49),xa(50)),1720:[].concat(za,52,Ka,Ga,rs(0,27),Qa,rs(28,33),ns,rs(34,37),xa(38),40,xa(41),rs(43,49),xa(50))};os["0221"]=os["020"],os["0310"]=os["0220"],os["0311"]=os["020"],os[1310]=os[1220],os[1311]=os[1221],os[1721]=os[170];class is extends de{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),he.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||d.getLocaleName(),n=this.parsha;let r=d.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+d.gettext(n[1],e)}return(d.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var as="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ss=function(e){return e&&e.Math===Math&&e},us=ss("object"==typeof globalThis&&globalThis)||ss("object"==typeof window&&window)||ss("object"==typeof self&&self)||ss("object"==typeof as&&as)||ss("object"==typeof as&&as)||function(){return this}()||Function("return this")(),cs=function(e){try{return!!e()}catch(e){return!0}},hs=!cs((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ls={exports:{}},ds=!cs((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ms=ds,fs=Function.prototype,gs=fs.call,ys=ms&&fs.bind.bind(gs,gs),Ss=ms?ys:function(e){return function(){return gs.apply(e,arguments)}},ws="object"==typeof document&&document.all,ps={all:ws,IS_HTMLDDA:void 0===ws&&void 0!==ws},vs=ps.all,bs=ps.IS_HTMLDDA?function(e){return"function"==typeof e||e===vs}:function(e){return"function"==typeof e},Ms=function(e){return null==e},Is=Ms,Ts=TypeError,As=function(e){if(Is(e))throw new Ts("Can't call method on "+e);return e},Ds=As,Es=Object,Cs=function(e){return Es(Ds(e))},Ns=Ss({}.hasOwnProperty),Os=Object.hasOwn||function(e,t){return Ns(Cs(e),t)},ks=hs,Hs=Os,Ls=Function.prototype,Ys=ks&&Object.getOwnPropertyDescriptor,Fs=Hs(Ls,"name"),Rs={EXISTS:Fs,PROPER:Fs&&"something"===function(){}.name,CONFIGURABLE:Fs&&(!ks||ks&&Ys(Ls,"name").configurable)},Ps=us,_s=Object.defineProperty,Us=function(e,t){try{_s(Ps,e,{value:t,configurable:!0,writable:!0})}catch(n){Ps[e]=t}return t},js=Us,Bs="__core-js_shared__",Zs=us[Bs]||js(Bs,{}),$s=bs,xs=Zs,zs=Ss(Function.toString);$s(xs.inspectSource)||(xs.inspectSource=function(e){return zs(e)});var Vs,Ks,Js=xs.inspectSource,Gs=bs,Ws=us.WeakMap,qs=Gs(Ws)&&/native code/.test(String(Ws)),Xs=bs,Qs=ps.all,eu=ps.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Xs(e)||e===Qs}:function(e){return"object"==typeof e?null!==e:Xs(e)},tu={},nu=eu,ru=us.document,ou=nu(ru)&&nu(ru.createElement),iu=function(e){return ou?ru.createElement(e):{}},au=iu,su=!hs&&!cs((function(){return 7!==Object.defineProperty(au("div"),"a",{get:function(){return 7}}).a})),uu=hs&&cs((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cu=eu,hu=String,lu=TypeError,du=function(e){if(cu(e))return e;throw new lu(hu(e)+" is not an object")},mu=ds,fu=Function.prototype.call,gu=mu?fu.bind(fu):function(){return fu.apply(fu,arguments)},yu=us,Su=bs,wu=function(e,t){return arguments.length<2?(n=yu[e],Su(n)?n:void 0):yu[e]&&yu[e][t];var n},pu=Ss({}.isPrototypeOf),vu=us,bu="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Mu=vu.process,Iu=vu.Deno,Tu=Mu&&Mu.versions||Iu&&Iu.version,Au=Tu&&Tu.v8;Au&&(Ks=(Vs=Au.split("."))[0]>0&&Vs[0]<4?1:+(Vs[0]+Vs[1])),!Ks&&bu&&(!(Vs=bu.match(/Edge\/(\d+)/))||Vs[1]>=74)&&(Vs=bu.match(/Chrome\/(\d+)/))&&(Ks=+Vs[1]);var Du=Ks,Eu=cs,Cu=us.String,Nu=!!Object.getOwnPropertySymbols&&!Eu((function(){var e=Symbol("symbol detection");return!Cu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Du&&Du<41})),Ou=Nu&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ku=wu,Hu=bs,Lu=pu,Yu=Object,Fu=Ou?function(e){return"symbol"==typeof e}:function(e){var t=ku("Symbol");return Hu(t)&&Lu(t.prototype,Yu(e))},Ru=String,Pu=bs,_u=function(e){try{return Ru(e)}catch(e){return"Object"}},Uu=TypeError,ju=function(e){if(Pu(e))return e;throw new Uu(_u(e)+" is not a function")},Bu=Ms,Zu=gu,$u=bs,xu=eu,zu=TypeError,Vu={exports:{}},Ku=Zs;(Vu.exports=function(e,t){return Ku[e]||(Ku[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Ju=Vu.exports,Gu=Ss,Wu=0,qu=Math.random(),Xu=Gu(1..toString),Qu=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Xu(++Wu+qu,36)},ec=Ju,tc=Os,nc=Qu,rc=Nu,oc=Ou,ic=us.Symbol,ac=ec("wks"),sc=oc?ic.for||ic:ic&&ic.withoutSetter||nc,uc=function(e){return tc(ac,e)||(ac[e]=rc&&tc(ic,e)?ic[e]:sc("Symbol."+e)),ac[e]},cc=gu,hc=eu,lc=Fu,dc=function(e,t){var n=e[t];return Bu(n)?void 0:ju(n)},mc=function(e,t){var n,r;if("string"===t&&$u(n=e.toString)&&!xu(r=Zu(n,e)))return r;if($u(n=e.valueOf)&&!xu(r=Zu(n,e)))return r;if("string"!==t&&$u(n=e.toString)&&!xu(r=Zu(n,e)))return r;throw new zu("Can't convert object to primitive value")},fc=TypeError,gc=uc("toPrimitive"),yc=function(e,t){if(!hc(e)||lc(e))return e;var n,r=dc(e,gc);if(r){if(void 0===t&&(t="default"),n=cc(r,e,t),!hc(n)||lc(n))return n;throw new fc("Can't convert object to primitive value")}return void 0===t&&(t="number"),mc(e,t)},Sc=Fu,wc=function(e){var t=yc(e,"string");return Sc(t)?t:t+""},pc=hs,vc=su,bc=uu,Mc=du,Ic=wc,Tc=TypeError,Ac=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Ec="enumerable",Cc="configurable",Nc="writable";tu.f=pc?bc?function(e,t,n){if(Mc(e),t=Ic(t),Mc(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Nc in n&&!n[Nc]){var r=Dc(e,t);r&&r[Nc]&&(e[t]=n.value,n={configurable:Cc in n?n[Cc]:r[Cc],enumerable:Ec in n?n[Ec]:r[Ec],writable:!1})}return Ac(e,t,n)}:Ac:function(e,t,n){if(Mc(e),t=Ic(t),Mc(n),vc)try{return Ac(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Tc("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Oc,kc,Hc,Lc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yc=tu,Fc=Lc,Rc=hs?function(e,t,n){return Yc.f(e,t,Fc(1,n))}:function(e,t,n){return e[t]=n,e},Pc=Qu,_c=Ju("keys"),Uc=function(e){return _c[e]||(_c[e]=Pc(e))},jc={},Bc=qs,Zc=us,$c=eu,xc=Rc,zc=Os,Vc=Zs,Kc=Uc,Jc=jc,Gc="Object already initialized",Wc=Zc.TypeError,qc=Zc.WeakMap;if(Bc||Vc.state){var Xc=Vc.state||(Vc.state=new qc);Xc.get=Xc.get,Xc.has=Xc.has,Xc.set=Xc.set,Oc=function(e,t){if(Xc.has(e))throw new Wc(Gc);return t.facade=e,Xc.set(e,t),t},kc=function(e){return Xc.get(e)||{}},Hc=function(e){return Xc.has(e)}}else{var Qc=Kc("state");Jc[Qc]=!0,Oc=function(e,t){if(zc(e,Qc))throw new Wc(Gc);return t.facade=e,xc(e,Qc,t),t},kc=function(e){return zc(e,Qc)?e[Qc]:{}},Hc=function(e){return zc(e,Qc)}}var eh={set:Oc,get:kc,has:Hc,enforce:function(e){return Hc(e)?kc(e):Oc(e,{})},getterFor:function(e){return function(t){var n;if(!$c(t)||(n=kc(t)).type!==e)throw new Wc("Incompatible receiver, "+e+" required");return n}}},th=Ss,nh=cs,rh=bs,oh=Os,ih=hs,ah=Rs.CONFIGURABLE,sh=Js,uh=eh.enforce,ch=eh.get,hh=String,lh=Object.defineProperty,dh=th("".slice),mh=th("".replace),fh=th([].join),gh=ih&&!nh((function(){return 8!==lh((function(){}),"length",{value:8}).length})),yh=String(String).split("String"),Sh=ls.exports=function(e,t,n){"Symbol("===dh(hh(t),0,7)&&(t="["+mh(hh(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!oh(e,"name")||ah&&e.name!==t)&&(ih?lh(e,"name",{value:t,configurable:!0}):e.name=t),gh&&n&&oh(n,"arity")&&e.length!==n.arity&&lh(e,"length",{value:n.arity});try{n&&oh(n,"constructor")&&n.constructor?ih&&lh(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=uh(e);return oh(r,"source")||(r.source=fh(yh,"string"==typeof t?t:"")),e};Function.prototype.toString=Sh((function(){return rh(this)&&ch(this).source||sh(this)}),"toString");var wh=ls.exports,ph=wh,vh=tu,bh=du,Mh=hs,Ih=function(e,t,n){return n.get&&ph(n.get,t,{getter:!0}),n.set&&ph(n.set,t,{setter:!0}),vh.f(e,t,n)},Th=function(){var e=bh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ah=cs,Dh=us.RegExp,Eh=Dh.prototype,Ch=Mh&&Ah((function(){var e=!0;try{Dh(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(Eh,"flags").get.call(t)!==r||n!==r}));Ch&&Ih(Eh,"flags",{configurable:!0,get:Th});const Nh=0,Oh=2,kh=5,Hh=6,Lh=E.NISAN,Yh=E.IYYAR;function Fh(e){if(e<5708)return null;let t;const n=new ae(15,Lh,e).getDay();return t=n===Nh?2:n===Hh?3:e<5764?4:n===Oh?5:4,new ae(t,Yh,e)}const Rh=E.NISAN,Ph=E.IYYAR,_h=E.SIVAN,Uh=E.TAMUZ,jh=E.AV,Bh=E.ELUL,Zh=E.TISHREI,$h=E.CHESHVAN,xh=E.KISLEV,zh=E.SHVAT,Vh=E.ADAR_II,Kh=he.CHAG,Jh=he.LIGHT_CANDLES,Gh=he.YOM_TOV_ENDS,Wh=he.CHUL_ONLY,qh=he.IL_ONLY,Xh=he.LIGHT_CANDLES_TZEIS,Qh=he.CHANUKAH_CANDLES,el=he.MAJOR_FAST,tl=he.MINOR_HOLIDAY,nl=he.EREV,rl=he.CHOL_HAMOED,ol="🫓",il="🌿🍋",al=[{mm:Zh,dd:2,desc:"Rosh Hashana II",flags:Kh|Gh,emoji:"🍏🍯"},{mm:Zh,dd:9,desc:"Erev Yom Kippur",flags:nl|Jh},{mm:Zh,dd:10,desc:"Yom Kippur",flags:Kh|el|Gh},{mm:Zh,dd:14,desc:"Erev Sukkot",flags:Wh|nl|Jh,emoji:il},{mm:Zh,dd:15,desc:"Sukkot I",flags:Wh|Kh|Xh,emoji:il},{mm:Zh,dd:16,desc:"Sukkot II",flags:Wh|Kh|Gh,emoji:il},{mm:Zh,dd:17,desc:"Sukkot III (CH''M)",flags:Wh|rl,chmDay:1,emoji:il},{mm:Zh,dd:18,desc:"Sukkot IV (CH''M)",flags:Wh|rl,chmDay:2,emoji:il},{mm:Zh,dd:19,desc:"Sukkot V (CH''M)",flags:Wh|rl,chmDay:3,emoji:il},{mm:Zh,dd:20,desc:"Sukkot VI (CH''M)",flags:Wh|rl,chmDay:4,emoji:il},{mm:Zh,dd:22,desc:"Shmini Atzeret",flags:Wh|Kh|Xh},{mm:Zh,dd:23,desc:"Simchat Torah",flags:Wh|Kh|Gh},{mm:Zh,dd:14,desc:"Erev Sukkot",flags:qh|nl|Jh,emoji:il},{mm:Zh,dd:15,desc:"Sukkot I",flags:qh|Kh|Gh,emoji:il},{mm:Zh,dd:16,desc:"Sukkot II (CH''M)",flags:qh|rl,chmDay:1,emoji:il},{mm:Zh,dd:17,desc:"Sukkot III (CH''M)",flags:qh|rl,chmDay:2,emoji:il},{mm:Zh,dd:18,desc:"Sukkot IV (CH''M)",flags:qh|rl,chmDay:3,emoji:il},{mm:Zh,dd:19,desc:"Sukkot V (CH''M)",flags:qh|rl,chmDay:4,emoji:il},{mm:Zh,dd:20,desc:"Sukkot VI (CH''M)",flags:qh|rl,chmDay:5,emoji:il},{mm:Zh,dd:22,desc:"Shmini Atzeret",flags:qh|Kh|Gh},{mm:Zh,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:Jh|rl,chmDay:-1,emoji:il},{mm:xh,dd:24,desc:"Chanukah: 1 Candle",flags:nl|tl|Qh,emoji:"🕎1️⃣"},{mm:zh,dd:15,desc:"Tu BiShvat",flags:tl,emoji:"🌳"},{mm:Vh,dd:13,desc:"Erev Purim",flags:nl|tl,emoji:"🎭️📜"},{mm:Vh,dd:14,desc:"Purim",flags:tl,emoji:"🎭️📜"},{mm:Vh,dd:15,desc:"Shushan Purim",flags:tl,emoji:"🎭️📜"},{mm:Rh,dd:14,desc:"Erev Pesach",flags:qh|nl|Jh,emoji:"🫓🍷"},{mm:Rh,dd:15,desc:"Pesach I",flags:qh|Kh|Gh,emoji:ol},{mm:Rh,dd:16,desc:"Pesach II (CH''M)",flags:qh|rl,chmDay:1,emoji:ol},{mm:Rh,dd:17,desc:"Pesach III (CH''M)",flags:qh|rl,chmDay:2,emoji:ol},{mm:Rh,dd:18,desc:"Pesach IV (CH''M)",flags:qh|rl,chmDay:3,emoji:ol},{mm:Rh,dd:19,desc:"Pesach V (CH''M)",flags:qh|rl,chmDay:4,emoji:ol},{mm:Rh,dd:20,desc:"Pesach VI (CH''M)",flags:qh|rl|Jh,chmDay:5,emoji:ol},{mm:Rh,dd:21,desc:"Pesach VII",flags:qh|Kh|Gh,emoji:ol},{mm:Rh,dd:14,desc:"Erev Pesach",flags:Wh|nl|Jh,emoji:"🫓🍷"},{mm:Rh,dd:15,desc:"Pesach I",flags:Wh|Kh|Xh,emoji:"🫓🍷"},{mm:Rh,dd:16,desc:"Pesach II",flags:Wh|Kh|Gh,emoji:ol},{mm:Rh,dd:17,desc:"Pesach III (CH''M)",flags:Wh|rl,chmDay:1,emoji:ol},{mm:Rh,dd:18,desc:"Pesach IV (CH''M)",flags:Wh|rl,chmDay:2,emoji:ol},{mm:Rh,dd:19,desc:"Pesach V (CH''M)",flags:Wh|rl,chmDay:3,emoji:ol},{mm:Rh,dd:20,desc:"Pesach VI (CH''M)",flags:Wh|rl|Jh,chmDay:4,emoji:ol},{mm:Rh,dd:21,desc:"Pesach VII",flags:Wh|Kh|Xh,emoji:ol},{mm:Rh,dd:22,desc:"Pesach VIII",flags:Wh|Kh|Gh,emoji:ol},{mm:Ph,dd:14,desc:"Pesach Sheni",flags:tl},{mm:Ph,dd:18,desc:"Lag BaOmer",flags:tl,emoji:"🔥"},{mm:_h,dd:5,desc:"Erev Shavuot",flags:nl|Jh,emoji:"⛰️🌸"},{mm:_h,dd:6,desc:"Shavuot",flags:qh|Kh|Gh,emoji:"⛰️🌸"},{mm:_h,dd:6,desc:"Shavuot I",flags:Wh|Kh|Xh,emoji:"⛰️🌸"},{mm:_h,dd:7,desc:"Shavuot II",flags:Wh|Kh|Gh,emoji:"⛰️🌸"},{mm:jh,dd:15,desc:"Tu B'Av",flags:tl,emoji:"❤️"},{mm:Bh,dd:1,desc:"Rosh Hashana LaBehemot",flags:tl,emoji:"🐑"},{mm:Bh,dd:29,desc:"Erev Rosh Hashana",flags:nl|Jh,emoji:"🍏🍯"}],sl=[{firstYear:5727,mm:Ph,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:xh,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:zh,dd:30,desc:"Family Day"},{firstYear:5758,mm:$h,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Ph,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Uh,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:$h,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Rh,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:$h,dd:7,desc:"Yom HaAliyah School Observance"}];class ul extends de{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&he.IL_ONLY?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&he.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}}const cl="Rosh Chodesh";class hl extends ul{constructor(e,t){super(e,`${cl} ${t}`,he.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13);return d.gettext(cl,e)+" "+d.gettext(t,e)}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class ll extends ul{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const dl="Shabbat Mevarchim Chodesh";class ml extends de{constructor(e,t){super(e,`${dl} ${t}`,he.SHABBAT_MEVARCHIM),this.monthName=t;const n=e.getFullYear(),r=e.getMonth(),o=r==ae.monthsInYear(n)?E.NISAN:r+1,i=new Ca(e,n,o);this.memo=i.render("en")}basename(){return this.getDesc()}render(e){return d.gettext(dl,e)+" "+d.gettext(this.monthName,e)}}class fl extends ul{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return d.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const gl="Yom Kippur Katan";class yl extends ul{constructor(e,t){super(e,`${gl} ${t}`,he.MINOR_FAST|he.YOM_KIPPUR_KATAN),this.nextMonthName=t,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${t}`}basename(){return this.getDesc()}render(e){return d.gettext(gl,e)+" "+d.gettext(this.nextMonthName,e)}renderBrief(e){return d.gettext(gl,e)}url(){}}const Sl=E.NISAN,wl=E.TAMUZ,pl=E.AV,vl=E.ELUL,bl=E.TISHREI,Ml=E.KISLEV,Il=E.TEVET,Tl=E.ADAR_I,Al=he.CHAG,Dl=he.LIGHT_CANDLES_TZEIS,El=he.CHANUKAH_CANDLES,Cl=he.MINOR_FAST,Nl=he.SPECIAL_SHABBAT,Ol=he.MODERN_HOLIDAY,kl=he.MAJOR_FAST,Hl=he.MINOR_HOLIDAY,Ll=he.EREV;class Yl{has(e){return void 0!==this[e]}get(e){return this[e]}set(e,t){this[e]=t}keys(){return Object.keys(this)}}const Fl=new Yl;function Rl(e,t){const n=`${e}-${t?1:0}`;let r=Fl.get(n);return r||(r=new Ba(e,t),Fl.set(n,r)),r}const Pl={emoji:"🇮🇱"},_l=new Map,Ul=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function jl(e){if("number"!=typeof e)throw new TypeError(`bad Hebrew year: ${e}`);if(e<1||e>32658)throw new RangeError(`Hebrew year ${e} out of range 1-32658`);const t=_l.get(e);if(t)return t;const n=new ae(1,bl,e),r=new ae(15,Sl,e),o=new Yl;function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&he.EREV?n.unshift(e):n.push(e):o.set(t,[e])}))}al.forEach((t=>{const n=new ae(t.dd,t.mm,e),r=new ul(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)})),i(new fl(n,e,Al|Dl)),i(new ul(new ae(3+(4==n.getDay()),bl,e),"Tzom Gedaliah",Cl)),i(new ul(new ae(ae.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",Nl));const a=ae.shortKislev(e)?new ae(1,Il,e):new ae(30,Ml,e);i(new ul(a,"Chag HaBanot",Hl));for(let t=2;t<=8;t++){const n=new ae(23+t,Ml,e);i(new ul(n,`Chanukah: ${t} Candles`,Hl|El,{chanukahDay:t-1,emoji:"🕎"+Ul[t]}))}i(new ul(new ae(32,Ml,e),"Chanukah: 8th Day",Hl,{chanukahDay:8,emoji:"🕎"})),i(new ll(new ae(10,Il,e),"Asara B'Tevet",Cl));const s=r.abs();i(new ul(new ae(ae.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",Nl),new ul(new ae(ae.dayOnOrBefore(6,s-30)),"Shabbat Zachor",Nl),new ul(new ae(s-(2==r.getDay()?33:31)),"Ta'anit Esther",Cl)),i(new ul(new ae(ae.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",Nl),new ul(new ae(ae.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",Nl),new ul(new ae(ae.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",Nl),new ul(6==r.prev().getDay()?r.onOrBefore(4):new ae(14,Sl,e),"Ta'anit Bechorot",Cl)),i(new ul(new ae(ae.dayOnOrBefore(6,new ae(1,bl,e+1).abs()-4)),"Leil Selichot",Hl,{emoji:"🕍"})),0==r.getDay()&&i(new ul(new ae(16,E.ADAR_II,e),"Purim Meshulash",Hl)),ae.isLeapYear(e)&&(i(new ul(new ae(14,Tl,e),"Purim Katan",Hl,{emoji:"🎭️"})),i(new ul(new ae(15,Tl,e),"Shushan Purim Katan",Hl,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new ae(27,Lh,e);return t.getDay()===kh?t=new ae(26,Lh,e):t.getDay()===Nh&&(t=new ae(28,Lh,e)),t}(e);u&&i(new ul(u,"Yom HaShoah",Ol));const c=Fh(e);c&&i(new ul(c,"Yom HaZikaron",Ol,Pl),new ul(c.next(),"Yom HaAtzma'ut",Ol,Pl)),sl.forEach((t=>{if(e>=t.firstYear){let n=new ae(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ae(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Ol:Ol|he.IL_ONLY,a=new ul(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}}));let h,l=new ae(17,wl,e);6==l.getDay()&&(l=new ae(18,wl,e),h={observed:!0}),i(new ul(l,"Tzom Tammuz",Cl,h));let d,m=new ae(9,pl,e),f="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},f+=" (observed)");const g=m.abs();i(new ul(new ae(ae.dayOnOrBefore(6,g)),"Shabbat Chazon",Nl),new ul(m.prev(),"Erev Tish'a B'Av",Ll|kl,d),new ul(m,f,kl,d),new ul(new ae(ae.dayOnOrBefore(6,g+7)),"Shabbat Nachamu",Nl));const y=ae.monthsInYear(e);for(let t=1;t<=y;t++){const n=ae.getMonthName(t,e);if(30==(t==Sl?ae.daysInMonth(ae.monthsInYear(e-1),e-1):ae.daysInMonth(t-1,e))?(i(new hl(new ae(1,t,e),n)),i(new hl(new ae(30,t-1,e),n))):t!==bl&&i(new hl(new ae(1,t,e),n)),t==vl)continue;const r=ae.getMonthName(t+1,e);i(new ml(new ae(29,t,e).onOrBefore(6),r))}for(let t=E.IYYAR;t<=y;t++){const n=t+1;if(n===E.TISHREI||n===E.CHESHVAN||n===E.TEVET)continue;let r=new ae(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const a=ae.getMonthName(n,e);i(new yl(r,a))}const S=Rl(e,!1).find(15);i(new ul(S,"Shabbat Shirah",Nl));const w=function(e){const t=ae.isLeapYear(e),n=t?E.ADAR_II:Sl,r=t?20:1,o=ae.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(w){const e=new ae(w);i(new ul(e,"Birkat Hachamah",Hl,{emoji:"☀️"}))}return _l.set(e,o),o}const Bl=new Map;class Zl{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Bl.set(e,t)}static lookup(e,t){const n=Bl.get(e);return"function"==typeof n?n(t):null}}const $l="5.0.0-rc5";var xl={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}};d.addLocale("ashkenazi",xl),d.addLocale("a",xl);var zl={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["אחרי השקיעה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};d.addLocale("he",zl),d.addLocale("h",zl);const Vl=zl.contexts[""],Kl={};Object.keys(Vl).forEach((e=>{Kl[e]=[d.hebrewStripNikkud(Vl[e][0])]}));const Jl={headers:zl.headers,contexts:{"":Kl}};d.addLocale("he-x-NoNikud",Jl);var Gl={},Wl={},ql={}.propertyIsEnumerable,Xl=Object.getOwnPropertyDescriptor,Ql=Xl&&!ql.call({1:2},1);Wl.f=Ql?function(e){var t=Xl(this,e);return!!t&&t.enumerable}:ql;var ed=Ss,td=ed({}.toString),nd=ed("".slice),rd=cs,od=function(e){return nd(td(e),8,-1)},id=Object,ad=Ss("".split),sd=rd((function(){return!id("z").propertyIsEnumerable(0)}))?function(e){return"String"===od(e)?ad(e,""):id(e)}:id,ud=sd,cd=As,hd=function(e){return ud(cd(e))},ld=hs,dd=gu,md=Wl,fd=Lc,gd=hd,yd=wc,Sd=Os,wd=su,pd=Object.getOwnPropertyDescriptor;Gl.f=ld?pd:function(e,t){if(e=gd(e),t=yd(t),wd)try{return pd(e,t)}catch(e){}if(Sd(e,t))return fd(!dd(md.f,e,t),e[t])};var vd=bs,bd=tu,Md=wh,Id=Us,Td={},Ad=Math.ceil,Dd=Math.floor,Ed=Math.trunc||function(e){var t=+e;return(t>0?Dd:Ad)(t)},Cd=Ed,Nd=function(e){var t=+e;return t!=t||0===t?0:Cd(t)},Od=Nd,kd=Math.max,Hd=Math.min,Ld=Nd,Yd=Math.min,Fd=function(e){return e>0?Yd(Ld(e),9007199254740991):0},Rd=hd,Pd=function(e,t){var n=Od(e);return n<0?kd(n+t,0):Hd(n,t)},_d=function(e){return Fd(e.length)},Ud=function(e){return function(t,n,r){var o,i=Rd(t),a=_d(i),s=Pd(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},jd={includes:Ud(!0),indexOf:Ud(!1)},Bd=Os,Zd=hd,$d=jd.indexOf,xd=jc,zd=Ss([].push),Vd=function(e,t){var n,r=Zd(e),o=0,i=[];for(n in r)!Bd(xd,n)&&Bd(r,n)&&zd(i,n);for(;t.length>o;)Bd(r,n=t[o++])&&(~$d(i,n)||zd(i,n));return i},Kd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jd=Vd,Gd=Kd.concat("length","prototype");Td.f=Object.getOwnPropertyNames||function(e){return Jd(e,Gd)};var Wd={};Wd.f=Object.getOwnPropertySymbols;var qd=wu,Xd=Td,Qd=Wd,em=du,tm=Ss([].concat),nm=qd("Reflect","ownKeys")||function(e){var t=Xd.f(em(e)),n=Qd.f;return n?tm(t,n(e)):t},rm=Os,om=nm,im=Gl,am=tu,sm=cs,um=bs,cm=/#|\.prototype\./,hm=function(e,t){var n=dm[lm(e)];return n===fm||n!==mm&&(um(t)?sm(t):!!t)},lm=hm.normalize=function(e){return String(e).replace(cm,".").toLowerCase()},dm=hm.data={},mm=hm.NATIVE="N",fm=hm.POLYFILL="P",gm=hm,ym=us,Sm=Gl.f,wm=Rc,pm=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(vd(n)&&Md(n,i,r),r.global)o?e[t]=n:Id(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:bd.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},vm=Us,bm=function(e,t,n){for(var r=om(t),o=am.f,i=im.f,a=0;a<r.length;a++){var s=r[a];rm(e,s)||n&&rm(n,s)||o(e,s,i(t,s))}},Mm=gm,Im={},Tm=Vd,Am=Kd,Dm=Object.keys||function(e){return Tm(e,Am)},Em=hs,Cm=uu,Nm=tu,Om=du,km=hd,Hm=Dm;Im.f=Em&&!Cm?Object.defineProperties:function(e,t){Om(e);for(var n,r=km(t),o=Hm(t),i=o.length,a=0;i>a;)Nm.f(e,n=o[a++],r[n]);return e};var Lm,Ym=wu("document","documentElement"),Fm=du,Rm=Im,Pm=Kd,_m=jc,Um=Ym,jm=iu,Bm="prototype",Zm="script",$m=Uc("IE_PROTO"),xm=function(){},zm=function(e){return"<"+Zm+">"+e+"</"+Zm+">"},Vm=function(e){e.write(zm("")),e.close();var t=e.parentWindow.Object;return e=null,t},Km=function(){try{Lm=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Km="undefined"!=typeof document?document.domain&&Lm?Vm(Lm):(t=jm("iframe"),n="java"+Zm+":",t.style.display="none",Um.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(zm("document.F=Object")),e.close(),e.F):Vm(Lm);for(var r=Pm.length;r--;)delete Km[Bm][Pm[r]];return Km()};_m[$m]=!0;var Jm=Object.create||function(e,t){var n;return null!==e?(xm[Bm]=Fm(e),n=new xm,xm[Bm]=null,n[$m]=e):n=Km(),void 0===t?n:Rm.f(n,t)},Gm=uc,Wm=Jm,qm=tu.f,Xm=Gm("unscopables"),Qm=Array.prototype;void 0===Qm[Xm]&&qm(Qm,Xm,{configurable:!0,value:Wm(null)});var ef=jd.includes,tf=function(e){Qm[Xm][e]=!0};(function(e,t){var n,r,o,i,a,s=e.target,u=e.global,c=e.stat;if(n=u?ym:c?ym[s]||vm(s,{}):(ym[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Sm(n,r))&&a.value:n[r],!Mm(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;bm(i,o)}(e.sham||o&&o.sham)&&wm(i,"sham",!0),pm(n,r,i,e)}})({target:"Array",proto:!0,forced:cs((function(){return!Array(1).includes()}))},{includes:function(e){return ef(this,e,arguments.length>1?arguments[1]:void 0)}}),tf("includes");function nf(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const rf=new Map,of={shacharit:!1,mincha:!1,allCongs:!1};function af(e,t){return sf(e,t,!0)}function sf(e,t,n){const r=e.getFullYear(),o=`${r}-${t?1:0}`,i=rf.get(o),a=i||function(e,t){const n=ae.isLeapYear(e),r=12+n;let o=new ae(9,E.AV,e);6===o.getDay()&&(o=o.next());let i=new ae(15,E.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[].concat(nf(1,r).map((t=>new ae(1,t,e))),nf(1,r).filter((t=>30===ae.daysInMonth(t,e))).map((t=>new ae(30,t,e))),new ae(2,E.TISHREI,e),nf(1,ae.daysInMonth(E.NISAN,e)).map((t=>new ae(t,E.NISAN,e))),new ae(18,E.IYYAR,e),nf(1,8-(t?1:0)).map((t=>new ae(t,E.SIVAN,e))),o,new ae(15,E.AV,e),new ae(29,E.ELUL,e),nf(9,24-(t?1:0)).map((t=>new ae(t,E.TISHREI,e))),nf(25,33).map((t=>new ae(t,E.KISLEV,e))),new ae(15,E.SHVAT,e),new ae(14,E.ADAR_II,e),i,n?new ae(14,E.ADAR_I,e):[]),s=[].concat(nf(1,13).map((t=>new ae(t,E.SIVAN,e))),nf(20,31).map((t=>new ae(t,E.TISHREI,e))),new ae(14,E.IYYAR,e),e>=5708?Fh(e).next():[],e>=5727?new ae(28,E.IYYAR,e):[]),u=[].concat(new ae(29,E.ELUL,e-1),new ae(9,E.TISHREI,e),new ae(14,E.IYYAR,e));return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(r,t);i||rf.set(o,a);const s=e.abs();if(a.none.indexOf(s)>-1)return of;const u=e.getDay(),c={shacharit:!1,mincha:!1,allCongs:!1};-1===a.some.indexOf(s)&&(c.allCongs=!0),6!==u&&(c.shacharit=!0);const h=s+1;if(n&&-1===a.yesPrev.indexOf(h)){const e=sf(new ae(h),t,!1);c.mincha=e.shacharit}else c.mincha=5!==u;return!c.allCongs||c.mincha||c.shacharit?c:of}const uf=E.NISAN,cf=E.SIVAN,hf=E.ELUL,lf=E.TISHREI,df=he.LIGHT_CANDLES,mf=he.YOM_TOV_ENDS,ff=he.CHUL_ONLY,gf=he.IL_ONLY,yf=he.LIGHT_CANDLES_TZEIS,Sf=he.CHANUKAH_CANDLES,wf=he.MINOR_FAST,pf=he.SPECIAL_SHABBAT,vf=he.MODERN_HOLIDAY,bf=he.MAJOR_FAST,Mf=he.ROSH_CHODESH,If=he.PARSHA_HASHAVUA,Tf=he.DAF_YOMI,Af=he.MISHNA_YOMI,Df=he.NACH_YOMI,Ef=he.YERUSHALMI_YOMI,Cf=he.OMER_COUNT,Nf=he.SHABBAT_MEVARCHIM,Of=he.MINOR_HOLIDAY,kf=he.EREV,Hf=he.CHOL_HAMOED,Lf=he.YOM_KIPPUR_KATAN,Yf=new Set,Ff={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const Rf={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Pf={281184:40,294801:30,293067:30};function _f(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(ae.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function Uf(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&Mf&&delete e.noRoshChodesh;t&vf&&delete e.noModern;t&wf&&delete e.noMinorFast;t&pf&&delete e.noSpecialShabbat;t&If&&(e.sedrot=!0);t&(Tf|Af|Df|Ef)&&(e.dailyLearning=e.dailyLearning||{},t&Tf&&(e.dailyLearning.dafYomi=!0),t&Af&&(e.dailyLearning.mishnaYomi=!0),t&Df&&(e.dailyLearning.nachYomi=!0),t&Ef&&(e.dailyLearning.yerushalmi=1));t&Cf&&(e.omer=!0);t&Nf&&(e.shabbatMevarchim=!0);t&Lf&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=Mf|mf|wf|pf|vf|bf|Of|kf|Hf|df|yf|Sf),e.candlelighting&&(r|=df|yf|mf),e.noRoshChodesh&&(r&=~Mf),e.noModern&&(r&=~vf),e.noMinorFast&&(r&=~wf),e.noSpecialShabbat&&(r&=~pf,r&=~Nf),r|=n?gf:ff,e.sedrot&&(r|=If),e.omer&&(r|=Cf),e.shabbatMevarchim&&(r|=Nf),e.yomKippurKatan&&(r|=Lf),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Tf),t.mishnaYomi&&(r|=Af),t.nachYomi&&(r|=Df),t.yerushalmi&&(r|=Ef)}return r}const jf=df|yf|Sf|mf,Bf=new Me(0,0,!1,"UTC"),Zf={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function $f(e){return e.observedInIsrael()}function xf(e){return e.observedInDiaspora()}const zf=new Map;class Vf{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n,r;n={},r=t,Object.keys(r).forEach((e=>n[e]=r[e])),t=n,function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof Me))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=Pf[e];"number"==typeof r&&(n=r);const o=Rf[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const o=t.location=t.location||Bf,i=t.il=t.il||o.il||!1;if(t.mask=Uf(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!d.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else d.useLocale("en");const a=[];let s,u,c,h,l=-1;const m=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[_f(t.start),_f(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new ae).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?ae.monthNum(t.month):t.month);const i=parseInt(t.numYears,10)||1;if(n){const e=new ae(1,o||lf,r);let n=e.abs();const a=t.month?n+e.daysInMonth():new ae(1,lf,r+i).abs()-1;return!o&&r>1&&n--,[n,a]}{const n=t.month?o-1:0,a=new Date(r,n,1);r<100&&a.setFullYear(r);const s=e.greg.greg2abs(a);let u;if(t.month)u=s+e.greg.daysInMonth(o,r)-1;else{const t=r+i,n=new Date(t,0,1);t<100&&n.setFullYear(t),u=e.greg.greg2abs(n)-1}return[s,u]}}(t);!function(e){Object.keys(e).forEach((e=>{void 0!==Ff[e]||Yf.has(e)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${e}`),Yf.add(e))}))}(t);const f=m[0],g=m[1];e.greg.abs2greg(f).getFullYear()<100&&(t.candlelighting=!1);for(let e=f;e<=g;e++){const n=new ae(e),r=n.getFullYear();r!=l&&(l=r,u=jl(l),t.sedrot&&(s=Rl(l,i)),t.omer&&(c=ae.hebrew2abs(l,uf,16),h=ae.hebrew2abs(l,cf,5)));const d=a.length,m=n.getDay();let f;if((u.get(n.toString())||[]).forEach((e=>{f=Kf(a,e,t,f,m)})),t.sedrot&&6===m){const t=s.lookup(e);t.chag||a.push(new is(n,t.parsha,i,t.num))}const g=t.dailyLearning;if("object"==typeof g&&Object.keys(g).forEach((e=>{const t=g[e];if(t){const r="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,o=Zl.lookup(r,n);o&&a.push(o)}})),t.omer&&e>=c&&e<=h){const r=new ka(n,e-c+1);if(t.candlelighting){const e=new Sa(o,n.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}a.push(r)}const y=n.getMonth();if(t.molad&&6==m&&y!=hf&&n.getDate()>=23&&n.getDate()<=29){const e=y==ae.monthsInYear(r)?uf:y+1;a.push(new Ca(n,r,e))}if(f||!t.candlelighting||5!=m&&6!=m||(f=pa(void 0,n,m,o,t),5===m&&f&&s&&(f.memo=s.getString(e))),f instanceof ba&&(0===t.havdalahMins||0===t.havdalahDeg)&&(f=null),f&&a.push(f),t.addHebrewDates||t.addHebrewDatesForEvents&&d!=a.length){const e=new me(n);d==a.length?a.push(e):a.splice(d,0,e)}}return a}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=X(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=P(r);let i=n.mm,a=n.dd;return i==W&&!o||i==q&&o?i=_(e):i!=V||30!=a||$(e)?i==K&&30==a&&x(e)?(i=J,a=1):i==W&&30==a&&o&&!P(e)&&(i=z,a=1):(i=K,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new ae(n)}static getYahrzeit(e,t){const n=function(e,t){let n=X(t);if(!(e<=n.yy))return n.mm!=V||30!=n.dd||$(n.yy+1)?n.mm==K&&30==n.dd&&x(n.yy+1)?n=R(Y(e,J,1)-1):n.mm==q?n.mm=_(e):n.mm!=W||30!=n.dd||P(e)||(n.dd=30,n.mm=G):n=R(Y(e,K,1)-1),n.mm!=V||30!=n.dd||$(e)?n.mm==K&&30==n.dd&&x(e)&&(n.mm=J,n.dd=1):(n.mm=K,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new ae(n)}static getHolidaysForYear(e){return jl(e)}static getHolidaysForYearArray(e,t){const n=`${e}-${t?1:0}`;let r=zf.get(n);if(r)return r;const o=jl(e),i=ae.hebrew2abs(e,lf,1),a=ae.hebrew2abs(e+1,lf,1)-1;r=[];const s=t?$f:xf;for(let e=i;e<=a;e++){const t=new ae(e),n=o.get(t.toString());if(n){const e=n.filter(s);r=r.concat(e)}}return zf.set(n,r),r}static getHolidaysOnDate(e,t){const n=ae.isHDate(e)?e:new ae(e),r=jl(n.getFullYear()).get(n.toString());if(void 0===t||void 0===r)return r;const o=t?$f:xf;return r.filter(o)}static reformatTimeStr(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=n.location)||void 0===r?void 0:r.cc)||(n.il?"IL":"US");if(void 0!==n.hour12&&!n.hour12)return e;if(!n.hour12&&void 0===Zf[o])return e;const i=e.split(":");let a=parseInt(i[0],10);return a<12&&t?(t=t.replace("p","a").replace("P","A"),0===a&&(a=12)):a>12?a%=12:0===a&&(a="00"),`${a}:${i[1]}${t}`}static version(){return $l}static getSedra(e,t){return Rl(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===E.NISAN&&(15===o||16===o)&&e.getFlags()&he.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&he.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Vf.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return af(e,t)}}function Kf(e,t,n,r,o){const i=n.il;if(!t.observedIn(i))return r;const a=t.getFlags();if(!n.yomKippurKatan&&a&Lf||n.noModern&&a&vf)return r;const s=n.location,u=Boolean(a&bf),c=Boolean(a&wf);if(n.candlelighting&&(u||c)&&(t=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=new Sa(i,o,t.useElevation);if("Erev Tish'a B'Av"===n){const t=s.sunset();e.startEvent=Ia(r,t,"Fast begins",e,i)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Ia(r,s.tzeit(a),"Fast ends",e,i);else{const t=s.alotHaShachar();e.startEvent=Ia(r,t,"Fast begins",e,i),5===o.getDay()||14===r.getDate()&&r.getMonth()===E.NISAN||(e.endEvent=Ia(r,s.tzeit(a),"Fast ends",e,i))}return e}(t,n),t.startEvent&&(u||c&&!n.noMinorFast)&&e.push(t.startEvent)),a&n.mask||!a&&!n.userMask){if(n.candlelighting&&a&jf){const e=t.getDate();if(r=pa(t,e,o,s,n),a&Sf&&r&&!n.noHolidays){const i=5===o||6===o?r:function(e,t,n){const r=n.location,o=new Sa(r,t.greg(),n.useElevation);return Ia(t,o.dusk(),e.getDesc(),e,r)}(t,e,n),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:s};t.chanukahDay&&(u.chanukahDay=t.chanukahDay),t.emoji&&(u.emoji=t.emoji),t=new ul(t.getDate(),t.getDesc(),a,u),r=void 0}}(!n.noHolidays||n.yomKippurKatan&&a&Lf)&&e.push(t)}return t.endEvent&&(u||c&&!n.noMinorFast)&&e.push(t.endEvent),r}return e.AsaraBTevetEvent=ll,e.CandleLightingEvent=Ma,e.DailyLearning=Zl,e.Event=de,e.GeoLocation=ye,e.HDate=ae,e.HavdalahEvent=ba,e.HebrewCalendar=Vf,e.HebrewDateEvent=me,e.HolidayEvent=ul,e.Locale=d,e.Location=Me,e.MevarchimChodeshEvent=ml,e.Molad=Ea,e.MoladEvent=Ca,e.NOAACalculator=we,e.OmerEvent=ka,e.ParshaEvent=is,e.RoshChodeshEvent=hl,e.RoshHashanaEvent=fl,e.Sedra=Ba,e.TimedEvent=va,e.Zmanim=Sa,e.flags=he,e.gematriya=i,e.gematriyaStrToNum=a,e.months=E,e.parshiot=Za,e.version=$l,e}({},Temporal);
|
|
1
|
+
/*! @hebcal/core v5.0.0-rc6 */
|
|
2
|
+
var hebcal=function(e){"use strict";const t={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},n=new Map;function r(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function o(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let o="";const i=Math.floor(t/1e3);if(i>0&&5!==i){const e=r(i);for(const t of e)o+=n.get(t);o+="׳"}const a=r(t%1e3);if(1==a.length)return o+n.get(a[0])+"׳";for(let e=0;e<a.length;e++)e+1===a.length&&(o+="״"),o+=n.get(a[e]);return o}function i(e){let n=0;const r=e.indexOf("׳");if(-1!==r&&r!==e.length-1){n+=1e3*i(e.substring(0,r)),e=e.substring(r)}for(const r of e){const e=t[r];"number"==typeof e&&(n+=e)}return n}Object.keys(t).forEach((e=>{const r=t[e];n.set(r,e)}));const a={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},s={h:"he",a:"ashkenazi",s:"en","":"en"},u=new Map;let c=null,h=null;class l{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&u.get(n)||c)[e];if(r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);u.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=u.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const i=Array.isArray(n);if(i){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=i?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=u.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.keys(o).forEach((e=>{r[e]=o[e]}))}static useLocale(e){const t=e.toLowerCase(),n=u.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return h=s[t]||t,c=n,c}static getLocaleName(){return h}static getLocaleNames(){return Array.from(u.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||h;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}l.addLocale("en",a),l.addLocale("s",a),l.addLocale("",a),l.useLocale("en");const d=[0,31,28,31,30,31,30,31,31,30,31,30,31],m=[d,d.slice()];function f(e,t){return e-t*Math.floor(e/t)}function g(e,t){return Math.floor(e/t)}m[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function n(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function r(e,n,r){const o=e-1;return 365*o+g(o,4)-g(o,100)+g(o,400)+g(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],e.isLeapYear=t,e.daysInMonth=function(e,n){return m[+t(n)][e]},e.isDate=n,e.greg2abs=function(e){if(!n(e))throw new TypeError(`Argument not a Date: ${e}`);return r(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=g(t,146097),r=f(t,146097),o=g(r,36524),i=f(r,36524),a=g(i,1461),s=g(f(i,1461),365),u=400*n+100*o+4*a+s;return 4!=o&&4!=s?u+1:u}(e=Math.trunc(e)),o=g(12*(e-r(n,1,1)+(e<r(n,3,1)?0:t(n)?1:2))+373,367),i=e-r(n,o,1)+1,a=new Date(n,o-1,i);return n<100&&n>=0&&a.setFullYear(n),a}}(e.greg||(e.greg={}));const y=1,S=2,w=4,p=6,v=7,b=8,M=9,I=10,T=12,A=13,D={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},E=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],C=[E.concat(["Adar","Nisan"]),E.concat(["Adar I","Adar II","Nisan"])],N=new Map,O=-1373428,k=365.24682220597794;function H(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function L(e,t,n){if(H(e,"year"),H(t,"month"),H(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<v){for(let t=v;t<=P(e);t++)r+=_(t,e);for(let n=y;n<t;n++)r+=_(n,e)}else for(let n=v;n<t;n++)r+=_(n,e);return O+j(e)+r-1}function Y(e){return O+j(e)}function F(e){if(H(e,"abs"),(e=Math.trunc(e))<=O)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-O)/k);for(;Y(t)<=e;)++t;--t;let n=e<L(t,1,1)?7:1;for(;e>L(t,n,_(n,t));)++n;return{yy:t,mm:n,dd:1+e-L(t,n,1)}}function R(e){return(1+7*e)%19<7}function P(e){return+R(e)+12}function _(e,t){switch(e){case S:case w:case p:case I:case A:return 29}return e===T&&!R(t)||e===b&&!Z(t)||e===M&&$(t)?29:30}function U(e,t){if(H(e,"month"),H(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return C[+R(t)][e]}function j(e){const t=N.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!R(e)||1==a%7&&i>=16789&&R(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return N.set(e,n),n}function B(e){return j(e+1)-j(e)}function Z(e){return B(e)%10==5}function $(e){return B(e)%10==3}const x=D.NISAN,z=D.CHESHVAN,V=D.KISLEV,K=D.TEVET,J=D.SHVAT,G=D.ADAR_I,W=D.ADAR_II;function q(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return F(t);if(e.greg.isDate(t)){return F(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}function X(e){throw new TypeError(e)}const Q="day",ee="week",te="month",ne="year",re={d:Q,w:ee,M:te,y:ne},oe={day:Q,week:ee,month:te,year:ne};class ie{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:X(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?F(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.abs0=n)}}getFullYear(){return this.yy}isLeapYear(){return R(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=P(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return _(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=ie.monthNum(e),ae(this),this}setDate(e){return this.dd=e,ae(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.abs0&&(this.abs0=L(this.yy,this.mm,this.dd)),this.abs0}static hebrew2abs(e,t,n){return L(e,t,n)}getMonthName(){return U(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||l.getLocaleName(),n=this.getDate(),r=l.gettext(this.getMonthName(),t),o=`${l.ordinal(n,t)}${ie.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=l.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=l.gettext(this.getMonthName(),n),i=this.getFullYear();return o(t)+" "+r+" "+o(i)}before(e){return ue(e,this,-1)}onOrBefore(e){return ue(e,this,0)}nearest(e){return ue(e,this,3)}onOrAfter(e){return ue(e,this,6)}after(e){return ue(e,this,7)}next(){return new ie(this.abs()+1)}prev(){return new ie(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ie(this);if(t=ie.standardizeUnits(t),t===Q)return new ie(this.abs()+e);if(t===ee)return new ie(this.abs()+7*e);if(t===ne)return new ie(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===te){let t=new ie(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ie(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=re[e]||String(e||"").toLowerCase().replace(/s$/,"");return oe[t]||X(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!ie.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ie.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return R(e)}static monthsInYear(e){return P(e)}static daysInMonth(e,t){return _(e,t)}static getMonthName(e,t){return U(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):ie.monthFromName(e)}static daysInYear(e){return B(e)}static longCheshvan(e){return Z(e)}static shortKislev(e){return $(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return D.NISAN;case"i":return D.IYYAR;case"e":return D.ELUL;case"c":case"ח":return D.CHESHVAN;case"k":case"כ":return D.KISLEV;case"s":switch(t[1]){case"i":return D.SIVAN;case"h":return D.SHVAT}break;case"t":switch(t[1]){case"a":return D.TAMUZ;case"i":return D.TISHREI;case"e":return D.TEVET}break;case"a":switch(t[1]){case"v":return D.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?D.ADAR_I:D.ADAR_II}break;case"ס":return D.SIVAN;case"ט":return D.TEVET;case"ש":return D.SHVAT;case"א":switch(t[1]){case"ב":return D.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?D.ADAR_I:D.ADAR_II;case"י":return D.IYYAR;case"ל":return D.ELUL}break;case"ת":switch(t[1]){case"מ":return D.TAMUZ;case"ש":return D.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(l.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" "),r=i(n[0]),o=ie.monthFromName(n[1]);let a=i(n[2]);return a<1e3&&(a+=t),new ie(r,o,a)}}function ae(e){se(e),function(e){e.dd<1&&(e.mm==D.TISHREI&&(e.yy-=1),e.dd+=_(e.mm,e.yy),e.mm-=1,ae(e));e.dd>_(e.mm,e.yy)&&(e.mm===D.ELUL&&(e.yy+=1),e.dd-=_(e.mm,e.yy),e.mm+=1,ae(e));se(e)}(e)}function se(e){e.mm!==D.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=P(e.yy),e.yy-=1,ae(e)):e.mm>P(e.yy)&&(e.mm-=P(e.yy),e.yy+=1,ae(e)):(e.mm-=1,ae(e)),delete e.abs0}function ue(e,t,n){return new ie(ie.dayOnOrBefore(e,t.abs()+n))}const ce={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304,YOM_KIPPUR_KATAN:8388608,YERUSHALMI_YOMI:16777216,NACH_YOMI:33554432},he=[[ce.MAJOR_FAST,"holiday","major","fast"],[ce.CHANUKAH_CANDLES,"holiday","major"],[ce.HEBREW_DATE,"hebdate"],[ce.MINOR_FAST,"holiday","fast"],[ce.MINOR_HOLIDAY,"holiday","minor"],[ce.MODERN_HOLIDAY,"holiday","modern"],[ce.MOLAD,"molad"],[ce.OMER_COUNT,"omer"],[ce.PARSHA_HASHAVUA,"parashat"],[ce.ROSH_CHODESH,"roshchodesh"],[ce.SHABBAT_MEVARCHIM,"mevarchim"],[ce.SPECIAL_SHABBAT,"holiday","shabbat"],[ce.USER_EVENT,"user"]];class le{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.keys(r).forEach((e=>this[e]=r[e]))}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return l.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&ce.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&ce.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor;for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of he)if(e&t[0])return t.slice(1);return["unknown"]}}class de extends le{constructor(e){super(e,e.toString(),ce.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||l.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=l.gettext(n.getMonthName(),t),i=n.getFullYear();return o(e)+" "+r+" "+o(i);default:return n.render(t,!0)}}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||l.getLocaleName(),n=this.getDate();if(n.getMonth()===D.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=l.gettext(n.getMonthName(),t);return o(e)+" "+r;default:return n.render(t,!1)}}}const me=36e11,fe=864e11,ge=[1,1e3,1e6,1e9,6e10,me,fe],ye=[9,6,3];function Se(e){return e<=6}function we(e){return e>=6}const pe=ve("overflow",{constrain:0,reject:1},0);function ve(e,t,n){const r=function(e,t,n){return(r,o)=>{if(void 0===r){const t=null!=o?o:n;if(void 0===t)throw new RangeError(`Must specify a ${e}`);return t}if(void 0===t[r])throw new RangeError(`Invalid ${e}: ${r}`);return t[r]}}(e,t,n);return(t,n)=>{const o=Ie(t);return r(o[e],n)}}function be(e,t,n,r){if(void 0===e)return t;if(!Number.isFinite(e))throw new RangeError("Number must be finite");e=Math.trunc(e);const o=Math.min(Math.max(e,t),n);if(o!==e&&1===r)throw new RangeError("Invalid overflowed value "+e);return o}function Me(e,t){const n={};for(const r in t)void 0!==e[r]&&(n[r]=t[r](e[r]));return n}function Ie(e,t){if(void 0===e&&!t)return{};if(!Ae(e))throw TypeError("options must be an object or undefined");return e}const Te=/object|function/;function Ae(e){return null!==e&&Te.test(typeof e)}const De=ve("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Ee(){const e=new WeakMap;return[e.get.bind(e),e.set.bind(e)]}function Ce(e,t){Object.defineProperties(e.prototype,Ne(t,(e=>({get:e}))))}function Ne(e,t){const n={};for(const r in e)n[r]=t(e[r],r);return n}function Oe(e,t,n){const r={};for(const o of t)r[o]=n(e[o]);return r}function ke(e,t){const n={};return e.forEach(((e,r)=>{n[e]=t(e,r)})),n}const He=["nanosecond","microsecond","millisecond","second","minute","hour"],Le=[...He,"day","week","month","year"],Ye=Le.map((e=>e+"s")),Fe=ke(Le,((e,t)=>t)),Re=ke(Ye,((e,t)=>t));function Pe(e,t,n,r){var o;let i;if(void 0===e){if(void 0===t)throw new RangeError("Unit is required");i=t}else if(i=null!=(o=Fe[e])?o:Re[e],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+e);return i}function _e(e,t,n,r,o,i){var a;const s=Ie(e),u=null!=(a=s.roundingIncrement)?a:1,c=Pe(s.smallestUnit,n,r,o),h=De(s,i?Math.round:Math.trunc);let l=s.largestUnit;"auto"===l&&(l=void 0);const d=Pe(l,t=Math.max(t,c),r,o);if(c>d)throw new RangeError("Bad smallestUnit/largestUnit");if(c<6){const e=ge[c+1],t=ge[c]*u;if(e===t)throw new RangeError("Must not equal larger unit");if(e%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:c,largestUnit:d,roundingFunc:h,roundingIncrement:u}}function Ue(e,t,n,r){var o;const i=Ie("string"==typeof e?{smallestUnit:e}:e,!0),a=null!=(o=i.roundingIncrement)?o:1,s=Pe(i.smallestUnit,void 0,t,n),u=De(i,Math.round),c=ge[s]*a;if(6===s){if(1!==a)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const e=r?fe:ge[s+1];if(!r&&e===c)throw new RangeError("Must not equal larger unit");if(e%c)throw new RangeError("Must divide into larger unit")}return{smallestUnit:s,roundingFunc:u,incNano:c}}const je=Symbol();function Be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t instanceof e?t:e.from(t,...r)}class Ze{toJSON(){return this.toString()}}class $e extends Ze{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[xe,ze]=Ee();class Ve extends $e{constructor(e){super(),ze(this,Object.freeze(e))}getISOFields(){return xe(this)}}function Ke(e,t){return e<t?-1:e>t?1:0}function Je(e){return Ke(e,0)}function Ge(e,t,n){return n(e/t)*t}function We(e){return Ge(e,6e10,qe)}function qe(e){return Math.round(Math.abs(e))*Je(e)}function Xe(e,t,n){const r=e.div(t).mult(t),o=e.sub(r).toNumber();return r.add(n(o/t)*t)}function Qe(e,t){return(e%t+t)%t}function et(e,t){return nt(n=String(e),t,"0")+n;var n}function tt(e,t,n){return e+nt(e,t,n)}function nt(e,t,n){return new Array(Math.max(0,t-e.length+1)).join(n)}function rt(e){return e<0?"-":"+"}const ot=Math.pow(10,8);class it{constructor(e,t){this.high=e,this.low=t}sign(){return Je(this.high)||Je(this.low)}neg(){return new it(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(e){const[t,n]=ut(e);return ct(this.high+t,this.low+n)}sub(e){const[t,n]=ut(e);return ct(this.high-t,this.low-n)}mult(e){return ct(this.high*e,this.low*e)}div(e){const t=this.high/e;let n=String(t);-1!==n.indexOf("e-")&&(n=t.toFixed(20));const r=n.indexOf(".");let o=0;if(-1!==r){let e=n.substr(r+1);e=tt(e,8,"0"),e=e.substr(0,8),o=parseInt(e)*(Je(t)||1)}return ct(Math.trunc(t)||0,Math.trunc(this.low/e)+o)}toNumber(){return this.high*ot+this.low}toBigInt(){return BigInt(this.high)*BigInt(ot)+BigInt(this.low)}}function at(e,t){let n,r;if(e instanceof it)n=e.high,r=e.low;else if("number"==typeof e){if(t)throw new TypeError("Must supply bigint, not number");n=Math.trunc(e/ot),r=e%ot||0}else if("bigint"==typeof e){const t=BigInt(ot);n=Number(e/t),r=Number(e%t||0)}else{if("string"!=typeof e)throw new Error("Invalid type of BigNano");{if((e=e.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${e} to a BigInt`);const t=e.length-8;n=Number(e.substr(t)),r=Number(e.substr(0,t))}}return new it(n,r)}function st(e,t){return Ke(e.high,t.high)||Ke(e.low,t.low)}function ut(e){return"number"==typeof e?[0,e]:[e.high,e.low]}function ct(e,t){let n=t%ot||0,r=e+Math.trunc(t/ot);const o=Je(r),i=Je(n);return i&&o&&i!==o&&(r+=i,n-=ot*i),new it(r,n)}const ht=Ye.concat("sign");function lt(e){return Oe(e,ht,(e=>-e||0))}function dt(e,t){var n,r,o,i,a,s,u,c,h,l;return mt({years:null!=(n=t.years)?n:e.years,months:null!=(r=t.months)?r:e.months,weeks:null!=(o=t.weeks)?o:e.weeks,days:null!=(i=t.days)?i:e.days,hours:null!=(a=t.hours)?a:e.hours,minutes:null!=(s=t.minutes)?s:e.minutes,seconds:null!=(u=t.seconds)?u:e.seconds,milliseconds:null!=(c=t.milliseconds)?c:e.milliseconds,microseconds:null!=(h=t.microseconds)?h:e.microseconds,nanoseconds:null!=(l=t.nanoseconds)?l:e.nanoseconds})}function mt(e){return{...e,sign:ft(e)}}function ft(e){let t=0;for(const n of Ye)if(e[n]){t=Je(e[n]);break}return t}function gt(e){let t=9;for(;t>0&&!e[Ye[t]];)t--;return t}const yt={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},St={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function wt(e){return{isoHour:e.hour||0,isoMinute:e.minute||0,isoSecond:e.second||0,isoMillisecond:e.millisecond||0,isoMicrosecond:e.microsecond||0,isoNanosecond:e.nanosecond||0}}function pt(e){return at(fe).mult(e.days).add(vt(e))}function vt(e){return at(e.nanoseconds).add(at(e.microseconds).mult(1e3)).add(at(e.milliseconds).mult(1e6)).add(at(e.seconds).mult(1e9)).add(at(e.minutes).mult(6e10)).add(at(e.hours).mult(me))}function bt(e){return e.isoHour*me+6e10*e.isoMinute+1e9*e.isoSecond+1e6*e.isoMillisecond+1e3*e.isoMicrosecond+e.isoNanosecond}function Mt(e,t){let n,r=0,o=0,i=0,a=0,s=0,u=0;switch(t){case 6:n=e.div(fe),r=n.toNumber(),e=e.sub(n.mult(fe));case 5:n=e.div(me),o=n.toNumber(),e=e.sub(n.mult(me));case 4:n=e.div(6e10),i=n.toNumber(),e=e.sub(n.mult(6e10));case 3:n=e.div(1e9),a=n.toNumber(),e=e.sub(n.mult(1e9));case 2:n=e.div(1e6),s=n.toNumber(),e=e.sub(n.mult(1e6));case 1:n=e.div(1e3),u=n.toNumber(),e=e.sub(n.mult(1e3))}return mt({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:u,nanoseconds:e.toNumber()})}function It(e){const t=Math.floor(e/fe);e-=t*fe;const n=Math.floor(e/me);e-=n*me;const r=Math.floor(e/6e10);e-=6e10*r;const o=Math.floor(e/1e9);e-=1e9*o;const i=Math.floor(e/1e6);e-=1e6*i;const a=Math.floor(e/1e3);return[{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:e-=1e3*a},t]}const Tt={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class At{constructor(e){this.id=e}monthCode(e,t){return"M"+et(e,2)}convertMonthCode(e,t){const n=/L$/.test(e),r=parseInt(e.substr(1));if(n)throw new RangeError("Calendar system doesnt support leap months");return[r,!1]}}function Dt(e,t,n,r){var o;let i=null==(o=Tt[Et(e)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+t)*(Je(i)||1)}function Et(e){return e.split("-")[0]}class Ct extends At{computeFields(e){const t=Rt(e);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(e,t,n){return Yt(e,t,n)}daysInMonth(e,t){return 2===t?this.inLeapYear(e)?29:28:4===t||6===t||9===t||11===t?30:31}monthsInYear(){return 12}inLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}guessYearForMonthDay(){return Ot}normalizeISOYearForMonthDay(){return Ot}}const Nt=new Ct("iso8601"),Ot=1972,kt=Symbol();function Ht(e){return Lt(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Lt(e,t,n,r,o,i,a,s,u){return at(Yt(e,t,n,r,o,i,a)).mult(1e6).add(1e3*(null!=s?s:0)+(null!=u?u:0))}function Yt(e,t,n,r,o,i,a){const s=Je(e);let u,c,h=0;const l=e>=0&&e<1e3,d=l?e+1200:e;for(;h<31;h++){u=n-s*h;const e=Date.UTC(d,t-1,u,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=a?a:0);if(!Zt(e)){c=e+s*h*864e5;break}}return(void 0===c||u<1||u>Nt.daysInMonth(e,t))&&$t(),l&&(c=new Date(c).setUTCFullYear(e)),c}function Ft(e){let t=e.div(1e6),n=e.sub(t.mult(1e6)).toNumber();n<0&&(n+=1e6,t=t.sub(1));const r=Math.floor(n/1e3);return n-=1e3*r,{...Rt(t.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function Rt(e){const[t,n]=Bt(e);return{isoYear:t.getUTCFullYear(),isoMonth:t.getUTCMonth()+1,isoDay:t.getUTCDate()+n,isoHour:t.getUTCHours(),isoMinute:t.getUTCMinutes(),isoSecond:t.getUTCSeconds(),isoMillisecond:t.getUTCMilliseconds()}}function Pt(e){var t;return null!=(t=e[kt])?t:Ht(e.getISOFields())}function _t(e){return Math.floor(Yt(e,1,1)/1e3)}function Ut(e){return Bt(e.div(1e6).toNumber())[0].getUTCFullYear()}function jt(e,t,n){const[r,o]=Bt(Yt(e,t,n));return Qe(r.getUTCDay()+o,7)||7}function Bt(e){const t=Je(e);let n,r=0;for(;r<31;r++){const o=new Date(e-t*r*864e5);if(!Zt(o)){n=o;break}}return void 0===n&&$t(),[n,t*r]}function Zt(e){return isNaN(e.valueOf())}function $t(){throw new RangeError("Date outside of supported range")}function xt(e,t){return Math.round((t-e)/864e5)}function zt(e,t){return e+864e5*t}function Vt(e,t){return!Kt(e,t)&&e.calendar.toString()===t.calendar.toString()}function Kt(e,t){return st(Ht(e.getISOFields()),Ht(t.getISOFields()))}function Jt(e,t){return Ke(bt(e.getISOFields()),bt(t.getISOFields()))}function Gt(e,t){return Ke(e.year,t.year)||Ke(e.month,t.month)||Ke(e.day,t.day)}function Wt(e,t){return st(e[kt],t[kt])}function qt(e,t,n,r,o){return[e=Number(e),t=be(t,1,r.monthsInYear(e),o),n=be(n,1,r.daysInMonth(e,t),o)]}function Xt(e,t){const[n,r,o]=qt(e.isoYear,e.isoMonth,e.isoDay,Nt,t);return{isoYear:n,isoMonth:r,isoDay:o}}function Qt(e,t){return{...Xt(e,t),...en(e,t)}}function en(e,t){let{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:s}=e;return{isoHour:n=be(n,0,23,t),isoMinute:r=be(r,0,59,t),isoSecond:o=be(o,0,59,t),isoMillisecond:i=be(i,0,999,t),isoMicrosecond:a=be(a,0,999,t),isoNanosecond:s=be(s,0,999,t)}}const tn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},nn={...tn,day:Number},rn={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},on={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},an=ke(Ye,(()=>Number));class sn extends Ct{computeFields(e){const t=super.computeFields(e),{year:n}=t;return{...t,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const un=ve("calendarName",{auto:0,never:1,always:2},0),cn=ve("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function hn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Ie(e),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,a=0,s=1;return void 0!==r?(a=Pe(r,void 0,0,t),s=ge[a],i=ye[a]||0):void 0!==o&&"auto"!==o&&(i=be(o,0,9,1),s=Math.pow(10,9-i)),{smallestUnit:a,fractionalSecondDigits:i,roundingFunc:De(e,Math.trunc),incNano:s}}const ln=ve("timeZoneName",{auto:0,never:1},0);function dn(e,t){return mn(e)+"T"+gn(e,t)}function mn(e){return fn(e)+"-"+et(e.isoDay,2)}function fn(e){const{isoYear:t}=e;return(t<1e3||t>9999?rt(t)+et(Math.abs(t),6):et(t,4))+"-"+et(e.isoMonth,2)}function gn(e,t){const n=[et(e.isoHour,2)];return t.smallestUnit<=4&&(n.push(et(e.isoMinute,2)),t.smallestUnit<=3&&n.push(et(e.isoSecond,2)+pn(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t.fractionalSecondDigits)[0])),n.join(":")}function yn(e){const[t,n]=It(Math.abs(e)),r=pn(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return rt(e)+et(t.isoHour+24*n,2)+":"+et(t.isoMinute,2)+(t.isoSecond||r?":"+et(t.isoSecond,2)+r:"")}function Sn(e,t){return e&&(2===t||1!==t&&"iso8601"!==e)?`[u-ca=${e}]`:""}function wn(e){return e.map((e=>{let[t,n,r]=e;return r||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+n:""})).join("")}function pn(e,t,n,r,o,i){let a=at(e).mult(1e6).add(at(t).mult(1e3)).add(n);o&&(a=Xe(a,void 0===r?ge[i]:Math.pow(10,9-r),o));const s=a.abs(),u=s.div(1e9);let c=et(s.sub(u.mult(1e9)).toNumber(),9);return c=void 0===r?c.replace(/0+$/,""):c.substr(0,r),[c?"."+c:"",u.toNumber()*(a.sign()||1)]}function vn(e){Ce(e,{epochNanoseconds(){return this[kt].toBigInt()},epochMicroseconds(){return this[kt].div(1e3).toBigInt()},epochMilliseconds(){return this[kt].div(1e6).toNumber()},epochSeconds(){return this[kt].div(1e9).toNumber()}})}const bn={calendar:"calendar"};for(const e of Le)bn[e]="iso"+((Mn=e).charAt(0).toUpperCase()+Mn.slice(1));var Mn;function In(e){Ce(e,ke((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).concat("calendar"),(e=>function(){return this.getISOFields()[bn[e]]})))}const Tn=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],An=[...Tn,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Dn(e,t){Ce(e,ke(t,(e=>function(){const t=this.calendar[e](this);return Object.defineProperty(this,e,{value:t}),t})))}function En(e,t){(e.prototype||e)[Symbol.toStringTag]="Temporal."+t}const Cn=ve("offset",{prefer:0,use:1,ignore:2,reject:3});function Nn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(3===n)throw new RangeError("Ambiguous offset");if(r.length)return r[2===n?1:0];{const r=function(e,t){const n=Pt(t),r=e.getOffsetNanosecondsFor(new Ui(n.sub(fe)));return e.getOffsetNanosecondsFor(new Ui(n.add(fe)))-r}(e,t),o=e.getPossibleInstantsFor(t.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function On(e,t,n,r){let{year:o,month:i,day:a}=e;o+=t;const s=be(i,1,n.monthsInYear(o),r);let u=i===s?a:1;return u=be(u,1,n.daysInMonth(o,s),r),{year:o,month:s,day:u}}function kn(e,t,n,r){let{year:o,month:i,day:a}=e;if(t){if(i+=t,t<0)for(;i<1;)i+=n.monthsInYear(--o);else{let e;for(;i>(e=n.monthsInYear(o));)i-=e,o++}a=be(a,1,n.daysInMonth(o,i),r)}return{year:o,month:i,day:a}}function Hn(e,t){let{isoYear:n,isoMonth:r,isoDay:o}=e;if(t){let e=Yt(n,r,o);e=zt(e,t),({isoYear:n,isoMonth:r,isoDay:o}=Rt(e))}return{isoYear:n,isoMonth:r,isoDay:o}}function Ln(e,t){if(gt(t)>=6)throw new RangeError("Duration cant have units >= days");return e.add(vt(t))}function Yn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=arguments.length>3?arguments[3]:void 0;const{offsetNanoseconds:o,timeZone:i,Z:a}=e;if(void 0!==o&&2!==n){if(1===n||a)return Ht(e).sub(o);{const r=Fn(e,o,i,t);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return Nn(i,Wo(e),cn(r))[kt]}function Fn(e,t,n,r){const o=n.getPossibleInstantsFor(Wo(e)),i=Ht(e),a=r?We(t):t;for(const e of o){const t=e[kt],n=i.sub(t).toNumber();if((r?We(n):n)===a)return t}}function Rn(e){const{timeZone:t}=e,n={...e,...yt,calendar:new Ti("iso8601")},r={...Hn(n,1),...yt,calendar:new Ti("iso8601")},o=Nn(t,Wo(n))[kt];return Nn(t,Wo(r))[kt].sub(o).toNumber()}const Pn="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",_n="([+-])"+Pn,Un="(Z|"+_n+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",jn=Kn("([+-]\\d{6}|\\d{4})-?(\\d{2})"+Un),Bn=Kn("(--)?(\\d{2})-?(\\d{2})"+Un),Zn=Kn("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+Un),$n=Kn("T?"+Pn+Un),xn=Kn(_n),zn=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,Vn=/\u2212/g;function Kn(e){return new RegExp(`^${e}$`,"i")}function Jn(e){return e.replace(Vn,"-")}function Gn(e){const t=Qn(e);if(!t)throw lr("dateTime",e);return t}function Wn(e){const t=er(e);if(!t)throw lr("dateTime",e);return t}function qn(e){const t=rr(e);if(void 0===t)throw lr("timeZone",e);return t}const Xn=/^Z$/i;function Qn(e){const t=Zn.exec(Jn(e));if(t)return function(e){const t=e[11];let n,r=!1;return t&&(r=Xn.test(t),n=r?0:ar(e.slice(12))),{...or(e),timeZone:e[21],offsetNanoseconds:n,Z:r}}(t.slice(1))}function er(e,t,n){const r=Zn.exec(Jn(e));if(r&&(n||!Xn.test(r[12]))&&(!t||r[4]))return or(r.slice(1))}function tr(e){const t=jn.exec(Jn(e));if(t)return{calendar:(n=t.slice(1))[14],isoYear:cr(n[0]),isoMonth:cr(n[1]),isoDay:1};var n}function nr(e){const t=Bn.exec(Jn(e));if(t)return{calendar:(n=t.slice(1))[15],isoYear:Ot,isoMonth:cr(n[1]),isoDay:cr(n[2])};var n}function rr(e){const t=xn.exec(Jn(e));if(t)return ar(t.slice(1))}function or(e){return{calendar:e[23],isoYear:cr(e[0]),isoMonth:cr(e[1]),isoDay:cr(e[2]),...ir(e.slice(4))}}function ir(e){const t=ur(e[4]);return{...It(sr(e[6]||""))[0],isoHour:ur(e[0]),isoMinute:ur(e[2]),isoSecond:60===t?59:t}}function ar(e){return("+"===e[0]?1:-1)*function(e){return ur(e[0])*me+6e10*ur(e[2])+1e9*ur(e[4])+sr(e[6]||"")}(e.slice(1))}function sr(e){return parseInt(tt(e,9,"0"))}function ur(e){return parseInt(e||"0")}function cr(e){return parseInt(e||"1")}function hr(e){return void 0===e?void 0:parseInt(e)}function lr(e,t){throw new RangeError(`Cannot parse ${e} '${t}'`)}function dr(e){return{...e,calendar:void 0===e.calendar?Ai():new Ti(e.calendar)}}function mr(e){return{...dr(e),timeZone:new Nr(e.timeZone)}}class fr{constructor(e){this.id=e}}class gr extends fr{constructor(e,t){super(e),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function yr(e,t){const n={},r=e.formatToParts(t);for(const e of r)n[e.type]=e.value;return n}const Sr={bc:"bce",ad:"ce"};function wr(e){return e=e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),Sr[e]||e}const pr=Intl.DateTimeFormat;function vr(e){return[].concat(e||[])}const br={"Pacific/Apia":{2011:[[Mr(13017528e5),-36e12,-396e11],[Mr(13168728e5),-396e11,-36e12],[Mr(13252392e5),-36e12,504e11]]}};function Mr(e){return at(e).mult(1e6)}const Ir=(new Date).getUTCFullYear()+10,Tr=[182,91,273];class Ar extends fr{constructor(e){const t=new pr("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:e});super(t.resolvedOptions().timeZone),this.format=t,this.yearEndOffsets={},this.transitionsInYear=br[e]||{}}getPossibleOffsets(e){let t;const n=[this.getTransition(e,-1),this.getTransition(e.sub(1),1)].filter(Boolean);for(const r of n){const[n,o,i]=r,a=e.sub(o),s=e.sub(i);if(st(n,a)>0&&st(n,s)>0)return[o];if(!(st(n,a)<=0&&st(n,s)<=0))return o<i?[]:[o,i];t=i}return void 0!==t?[t]:[1e9*this.getYearEndOffsetSec(Ut(e))]}getOffset(e){return 1e9*this.getOffsetForEpochSecs(e.div(1e9).toNumber())}getOffsetForEpochSecs(e){const t=yr(this.format,1e3*e);let n=parseInt(t.year);"bce"===wr(t.era)&&(n=-(n-1));const r=Yt(n,parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second));return Math.floor(r/1e3)-e}getTransition(e,t){let n=Ut(e);if(n>Ir){const r=this.getTransitionFrom(n,n+t,t,e);if(r||t>0)return r;n=Ir}return this.getTransitionFrom(Math.max(n,1847),t<0?1846:Ir,t,e)}getTransitionFrom(e,t,n,r){for(;e!==t;e+=n){let t=this.getTransitionsInYear(e);n<0&&(t=t.slice().reverse());for(const e of t)if(st(e[0],r)===n)return e}}getYearEndOffsetSec(e){const{yearEndOffsets:t}=this;return t[e]||(t[e]=this.getOffsetForEpochSecs(_t(e+1)-1))}getTransitionsInYear(e){const{transitionsInYear:t}=this;return t[e]||(t[e]=this.computeTransitionsInYear(e))}computeTransitionsInYear(e){const t=this.getYearEndOffsetSec(e-1),n=this.getYearEndOffsetSec(e),r=_t(e)-1,o=_t(e+1)-1;if(t!==n)return[this.searchTransition(r,o,t,n)];const i=this.searchIsland(t,r);return void 0!==i?[this.searchTransition(r,i[0],t,i[1]),this.searchTransition(i[0],o,i[1],n)]:[]}searchTransition(e,t,n,r){for(;t-e>1;){const r=Math.floor(e+(t-e)/2);this.getOffsetForEpochSecs(r)===n?e=r:t=r}return[at(t).mult(1e9),1e9*n,1e9*r]}searchIsland(e,t){for(const n of Tr){const r=t+86400*n,o=this.getOffsetForEpochSecs(r);if(o!==e)return[r,o]}}}const Dr={UTC:new gr("UTC",0)},[Er,Cr]=Ee();class Nr extends Ze{constructor(e){if(!e)throw new RangeError("Invalid timezone ID");super(),Cr(this,function(e){const t=(e=String(e)).toLocaleUpperCase();if(Dr[t])return Dr[t];const n=rr(e);if(void 0!==n){if(Math.abs(n)>fe)throw new RangeError("Offset out of bounds");return new gr(yn(n),n)}return Dr[t]=new Ar(e)}(e))}static from(e){if(Ae(e))return function(e){const t=e.timeZone;return void 0===t?e:Ae(t)&&void 0===t.timeZone?t:new Nr(t)}(e);const t=Qn(String(e));if(t){if(t.timeZone){const e=mr(t);return function(e){const{offsetNanoseconds:t,timeZone:n,Z:r}=e;if(void 0!==t&&!r&&void 0===Fn(e,t,n,!0))throw new RangeError("Mismatching offset/timezone")}(e),e.timeZone}if(t.Z)return new Nr("UTC");if(void 0!==t.offsetNanoseconds)return new Nr(yn(t.offsetNanoseconds))}return new Nr(String(e))}get id(){return this.toString()}getOffsetStringFor(e){return yn(this.getOffsetNanosecondsFor(e))}getOffsetNanosecondsFor(e){const t=Be(Ui,e);return Er(this).getOffset(t[kt])}getPlainDateTimeFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai();const n=Be(Ui,e);return Wo({...Ft(n[kt].add(this.getOffsetNanosecondsFor(n))),calendar:Be(Ti,t)})}getInstantFor(e,t){return Nn(this,Be(Go,e),cn(t))}getPossibleInstantsFor(e){const t=Ht(Be(Go,e).getISOFields());return Er(this).getPossibleOffsets(t).map((e=>new Ui(t.sub(e))))}getPreviousTransition(e){const t=Be(Ui,e),n=Er(this).getTransition(t[kt],-1);return n?new Ui(n[0]):null}getNextTransition(e){const t=Be(Ui,e),n=Er(this).getTransition(t[kt],1);return n?new Ui(n[0]):null}toString(){return Er(this).id}}function Or(e){if(void 0===e.timeZone)throw new TypeError("Must specify timeZone");return Be(Nr,e.timeZone)}En(Nr,"TimeZone");const kr=Qr((function(e,t,n){const r=xr(e,t,n);if(r)return{...r,timeZone:Or(e),offsetNanoseconds:void 0!==e.offset?qn(String(e.offset)):void 0}})),Hr=Qr(xr),Lr=Qr(zr),Yr=Qr((function(e,t){const n=Ci(e),r=Wr(e,tn,n);if(eo(r))return n.yearMonthFromFields(r,t)})),Fr=Qr((function(e,t){const n=Ci(e),r=Wr(e,on,n);if(eo(r))return void 0===e.year&&void 0===e.calendar&&(r.year=Ot),n.monthDayFromFields(r,t)})),Rr=Qr(Vr),Pr=Qr((function(e,t,n,r){const o=Kr(e,t,n,r),i=void 0!==t.offset;if(o||i)return{...o||e.getISOFields(),timeZone:e.timeZone,offsetNanoseconds:i?qn(String(t.offset)):e.offsetNanoseconds}}),!0),_r=Qr(Kr,!0),Ur=Qr(Jr,!0),jr=Qr((function(e,t,n){const r=e.calendar;if(eo(Wr(t,tn,r))){const o=Xr(e,t,tn,r);return r.yearMonthFromFields(o,n)}}),!0),Br=Qr((function(e,t,n){const r=e.calendar;if(eo(Wr(t,on,r))){const o=Xr(e,t,on,r);return r.monthDayFromFields(o,n)}}),!0),Zr=Qr(Gr,!0),$r=Qr((function(e){const t=Me(e,an);if(eo(t))return t}));function xr(e,t,n){const r=zr(e,n),o=Vr(e,t);if(r)return{...r.getISOFields(),...o||yt}}function zr(e,t){const n=Ci(e),r=Wr(e,nn,n);if(eo(r))return n.dateFromFields(r,t)}function Vr(e,t){const n=Me(e,rn);if(eo(n))return en(wt(n),t)}function Kr(e,t,n,r){const o=Jr(e,t,r),i=Gr(e,t,n);if(o||i)return{...e.getISOFields(),...o?o.getISOFields():{},...i}}function Jr(e,t,n){const r=e.calendar,o=Wr(t,nn,r);if(eo(o)){const t=Xr(e,o,nn,r);return r.dateFromFields(t,n)}}function Gr(e,t,n){const r=Me(t,rn);if(eo(r))return en(wt((o=e,i=r,Ne(rn,((e,t)=>{var n;return null!=(n=i[t])?n:o[t]})))),n);var o,i}function Wr(e,t,n){let r=Object.keys(t);return r=n.fields?Array.prototype.slice.call(n.fields(r)):Object.keys(qr(n,r)),qr(e,r)}function qr(e,t){const n={};for(const r of t)void 0!==e[r]&&(n[r]=e[r]);return n}function Xr(e,t,n,r){const o=Wr(e,n,r);return r.mergeFields?r.mergeFields(o,t):Di(o,t)}function Qr(e,t){return function(){if(t){const e=arguments.length<=1?void 0:arguments[1];if(!Ae(e))throw new TypeError("must be object-like");if(void 0!==e.calendar)throw new TypeError("calendar not allowed");if(void 0!==e.timeZone)throw new TypeError("timeZone not allowed")}const n=e(...arguments);if(!n)throw new TypeError("No valid fields");return n}}function eo(e){return Object.keys(e).length>0}const to=at(fe).mult(1e8),no=to.mult(-1),ro=to.add(86399999999999),oo=no.sub(86399999999999);function io(e,t){const n=Ht(e);ao(n),wi(n,t)}function ao(e){-1!==st(e,oo)&&1!==st(e,ro)||$t()}function so(e,t){const n=co(bt(e),t),[r,o]=It(n);return{...Hn(e,o),...r}}function uo(e,t){const n=co(bt(e),t),[r]=It(n);return r}function co(e,t){return Ge(e,t.incNano,t.roundingFunc)}function ho(e,t,n){return(r,o)=>{const i=So(e,o)?{}:{...e,...t};return{buildKey:yo(r,o,!1),buildFormat:function(e,t){return new pr(r,{calendar:e,timeZone:t||void 0,...i,...o,...n})},buildEpochMilli:lo}}}function lo(e){return e.epochMilliseconds}function mo(e,t,n){return(r,o)=>{const i=So(e,o)?{}:e;return{buildKey:yo(r,o,n),buildFormat:function(e,n){return new pr(r,{calendar:e,...i,...o,...t,timeZone:n,timeZoneName:void 0})},buildEpochMilli:void 0!==o.timeZone?fo.bind(null,new Nr(o.timeZone)):go}}}function fo(e,t){const n=Wo({...yt,...t.getISOFields()});return e.getInstantFor(n).epochMilliseconds}function go(e){return Yt((t=e.getISOFields()).isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond);var t}function yo(e,t,n){var r;const o=null!=(r=t.calendar)?r:function(e){for(const t of e){const e=t.match(/-u-ca-(.*)$/);if(e)return e[1]}}(e),i=t.timeZone;return function(e,t){var r,a,s,u;const c=null==(r=e.calendar)?void 0:r.id,h=null==(a=e.timeZone)?void 0:a.id;if(t){if((null==(s=t.calendar)?void 0:s.id)!==c)throw new RangeError("Mismatching calendar");if((null==(u=t.timeZone)?void 0:u.id)!==h)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==c)&&void 0!==c&&void 0!==o&&o!==c)throw new RangeError("Non-iso calendar mismatch");if(void 0!==h&&void 0!==i&&i!==h)throw new RangeError("Given timeZone must agree");return[o||c||"iso8601",i||h||"UTC"]}}function So(e,t){for(const n in e)if(void 0!==t[n])return!0;return!1}function wo(e,t){e.prototype.toLocaleString=function(e,n){const r=t(vr(e),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},e.prototype[je]=t}function po(e){return null==e?void 0:e[je]}function vo(e,t,n,r){if(void 0!==e){if(void 0!==r)throw new RangeError("Partial units must be last unit");return[parseInt(e),void 0!==t?sr(t)*(ge[n]/1e9):void 0]}if(void 0!==r){const e=Math.trunc(r/ge[n]);return[e,r-e*ge[n]]}return[void 0,void 0]}const bo=ve("offset",{auto:0,never:1},0);class Mo extends Ve{constructor(){super({...en({isoHour:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,isoMinute:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,isoSecond:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,isoMillisecond:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,isoMicrosecond:arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,isoNanosecond:arguments.length>5&&void 0!==arguments[5]?arguments[5]:0},1),calendar:Ai()})}static from(e,t){const n=pe(t);return Io(e instanceof Mo?e.getISOFields():"object"==typeof e?Rr(e,n):function(e){let t=function(e){const t=$n.exec(Jn(e));if(t)return ir(t.slice(1))}(e);if(void 0!==t){if("T"!==e.charAt(0)){const n=tr(e)||nr(e);n&&function(e){try{return Xt(e,1),!0}catch(e){return!1}}(n)&&(t=void 0)}}else t=er(e,!0);if(void 0===t)throw lr("time",e);return t}(String(e)))}static compare(e,t){return Jt(Be(Mo,e),Be(Mo,t))}with(e,t){return Io(Zr(this,e,pe(t)))}add(e){return Ao(this,Be(Vo,e))}subtract(e){return Ao(this,lt(Be(Vo,e)))}until(e,t){return Do(this,Be(Mo,e),t)}since(e,t){return Do(Be(Mo,e),this,t)}round(e){const t=Ue(e,0,5);return Io(uo(this.getISOFields(),t))}equals(e){return!Jt(this,Be(Mo,e))}toString(e){const t=hn(e);return gn(uo(this.getISOFields(),t),t)}toZonedDateTime(e){const t=Be(Hi,e.plainDate),n=Be(Nr,e.timeZone);return Yo({...t.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(e){return Be(Hi,e).toPlainDateTime(this)}}function Io(e){return new Mo(e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function To(e){return Be(Mo,null!=e?e:{hour:0})}function Ao(e,t){return Io(function(e,t){const n=bt(e)+vt(t).toNumber(),[r]=It(n);return r}(e.getISOFields(),t))}function Do(e,t,n){const r=_e(n,5,0,0,5);return Ko(function(e,t,n){return Mt(at(Ge(bt(t)-bt(e),ge[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(e.getISOFields(),t.getISOFields(),r))}En(Mo,"PlainTime"),In(Mo,He),wo(Mo,(function(e,t){return{buildKey:()=>["",""],buildFormat:()=>new pr(e,{hour:"numeric",minute:"2-digit",second:"2-digit",...t,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:e=>Math.trunc(bt(e.getISOFields())/1e6)}}));const Eo={day:1};class Co extends Ve{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ai();const r=Xt({isoYear:e,isoMonth:t,isoDay:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1},1),o=Be(Ti,n);var i,a;i=r,a=o.toString(),wi(Ht(i),a),super({...r,calendar:o})}static from(e,t){if(pe(t),e instanceof Co)return No(e.getISOFields());if("object"==typeof e)return Yr(e,t);const n=function(e){const t=tr(e)||er(e);if(!t)throw lr("yearMonth",e);return t}(String(e));return void 0===n.calendar&&(n.isoDay=1),No(dr(n))}static compare(e,t){return Kt(Be(Co,e),Be(Co,t))}with(e,t){return jr(this,e,t)}add(e,t){return Oo(this,Be(Vo,e),t)}subtract(e,t){return Oo(this,lt(Be(Vo,e)),t)}until(e,t){return ko(this,Be(Co,e),!1,t)}since(e,t){return ko(this,Be(Co,e),!0,t)}equals(e){return!Kt(this,Be(Co,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=un(e);return("iso8601"===n?fn(t):mn(t))+Sn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:this.year,month:this.month,day:e.day})}}function No(e){return new Co(e.isoYear,e.isoMonth,e.calendar,e.isoDay)}function Oo(e,t,n){return e.toPlainDate({day:t.sign<0?e.daysInMonth:1}).add(t,n).toPlainYearMonth()}function ko(e,t,n,r){return Ko(Ri(e.toPlainDate(Eo),t.toPlainDate(Eo),Ni(e,t),n,_e(r,9,8,8,9)))}En(Co,"PlainYearMonth"),In(Co),Dn(Co,Tn),wo(Co,mo({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Ho=Symbol();class Lo extends Ve{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ai();const r=Be(Nr,t),o=Be(Ti,n),i=at(e),[a,s]=Fo(i,r);io(a,o.toString()),super({...a,calendar:o,timeZone:r,offset:yn(s)}),this[kt]=i,this[Ho]=s}static from(e,t){const n=Cn(t,3),r=pe(t);if(e instanceof Lo)return new Lo(e.epochNanoseconds,e.timeZone,e.calendar);const o="object"==typeof e;return Yo(o?kr(e,r,t):mr(Gn(String(e))),!o,n,t)}static compare(e,t){return Wt(Be(Lo,e),Be(Lo,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[Ho]}get offset(){return this.getISOFields().offset}with(e,t){cn(t);const n=pe(t),r=Cn(t,0);return Yo(Pr(this,e,n,t),!1,r,t)}withPlainDate(e){const t=Be(Hi,e),n=t.toPlainDateTime(this),{timeZone:r}=this,o=Nn(r,n);return new Lo(o.epochNanoseconds,r,Oi(this,t))}withPlainTime(e){return Yo({...this.getISOFields(),...void 0===e?yt:Be(Mo,e).getISOFields()})}withCalendar(e){return new Lo(this.epochNanoseconds,this.timeZone,e)}withTimeZone(e){return new Lo(this.epochNanoseconds,e,this.calendar)}add(e,t){return Ro(this,Be(Vo,e),t)}subtract(e,t){return Ro(this,lt(Be(Vo,e)),t)}until(e,t){return _o(this,Be(Lo,e),!1,t)}since(e,t){return _o(this,Be(Lo,e),!0,t)}round(e){return Po(this,Ue(e,0,6))}equals(e){return this,Vt(this,t=Be(Lo,e))&&this.timeZone.toString()===t.timeZone.toString();var t}startOfDay(){return Yo({...this.getISOFields(),...yt,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return Rn(this.getISOFields())/me}toString(e){const t=hn(e),n=bo(e),r=ln(e),o=un(e),i=Po(this,t);return dn(i.getISOFields(),t)+(0===n?yn(We(i.offsetNanoseconds)):"")+(a=this.timeZone.toString(),1!==r?`[${a}]`:"")+Sn(this.calendar.toString(),o);var a}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return Wo(this.getISOFields())}toPlainDate(){return Li(this.getISOFields())}toPlainTime(){return Io(this.getISOFields())}toInstant(){return new Ui(this.epochNanoseconds)}}function Yo(e,t,n,r){const o=Yn(e,t,n,r);return new Lo(o,e.timeZone,e.calendar)}function Fo(e,t){const n=new Ui(e),r=t.getOffsetNanosecondsFor(n);return[Ft(e.add(r)),r]}function Ro(e,t,n){const r=e.getISOFields(),o=function(e,t,n){const{calendar:r,timeZone:o}=e,i=r.dateAdd(Li(e),dt(t,St),n);return Nn(o,Wo({...e,...i.getISOFields()}))[kt].add(vt(t))}(r,t,n);return new Lo(o,r.timeZone,r.calendar)}function Po(e,t){const n=e.getISOFields(),r=function(e,t,n){const{calendar:r,timeZone:o}=e;let i,a,s=bt(e);return 6===n.smallestUnit?(i=yt,a=n.roundingFunc(s/Rn(e))):(s=co(s,n),[i,a]=It(s)),Yn({...Hn(e,a),...i,offsetNanoseconds:t,calendar:r,timeZone:o},!1,0)}(n,e.offsetNanoseconds,t);return new Lo(r,n.timeZone,n.calendar)}function _o(e,t,n,r){const o=_e(r,5,0,0,9),{largestUnit:i}=o;if(i>=6&&e.timeZone.id!==t.timeZone.id)throw new Error("Must be same timeZone");return Ko(Fi(e,t,Ni(e,t),n,o))}function Uo(e){if(void 0===e)return;if(Ae(e))return e instanceof Lo||e instanceof Go?e:Be(void 0!==e.timeZone?Lo:Go,e);if("symbol"==typeof e)throw new TypeError("Incorrect relativeTo type");const t=Qn(String(e));if(t)return void 0!==t.timeZone?Yo(mr(t),!0):Wo(dr(t));throw new RangeError("Invalid value of relativeTo")}function jo(e,t,n,r){return(n instanceof Hi?function(e,t,n,r){const o=n.add(e);return[r.dateUntil(n,o,{largestUnit:Le[t]}),o]}(e,Math.max(6,t),n,r):Bo(e,t,n,r))[0]}function Bo(e,t,n,r,o){const i=!0!==o&&t>7&&e.weeks;i&&(e=dt(e,{weeks:0}));let a=n.add(e),s=Pi(n,a,r,t);return i&&(s=dt(s,{weeks:i}),a=a.add({weeks:i})),[s,a]}function Zo(e,t,n,r){const o=Ye[t],{sign:i}=e;if(!i)return e;const a={};for(let n=9;n>=t;n--){const t=Ye[n];a[t]=e[t]}const s={[o]:i},u=n.add(a),c=u.add(s),h=Pt(u),l=Pt(c),d=Pt(r).sub(h).toNumber()/l.sub(h).toNumber()*i;return a[o]+=d,a}function $o(e,t,n,r,o,i){const{largestUnit:a,smallestUnit:s,roundingIncrement:u,roundingFunc:c}=i;if(!we(a))return Mt(Xe(Pt(n).sub(Pt(t)).mult(o?-1:1),ge[s]*u,c),a);let h=Zo(e,s,t,n);const l=Ye[s];function d(){const e=h[l];h[l]=Ge(e,u,c)}return c===Math.round&&d(),o&&(h=lt(h)),c!==Math.round&&d(),s>0&&(h=o?lt(jo(lt(h),a,t,r)):jo(h,a,t,r)),h}En(Lo,"ZonedDateTime"),In(Lo,He),Dn(Lo,An),vn(Lo),wo(Lo,ho({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[xo,zo]=Ee();class Vo extends $e{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;super();const h=$r({years:e,months:t,weeks:n,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:u,nanoseconds:c});zo(this,function(e){const t=mt(e),{sign:n}=t;for(const e of Ye){const r=t[e],o=Je(t[e]);if(o&&o!==n)throw new RangeError("All fields must be same sign");if(!Number.isInteger(r))throw new RangeError("Duration fields must be integers")}return t}(h))}static from(e){return Ko("object"==typeof e?$r(e):function(e){const t=function(e){const t=zn.exec(Jn(e));if(t){let e,n,r,o;[e,o]=vo(t[8],t[10],5,void 0),[n,o]=vo(t[12],t[14],4,o),[r,o]=vo(t[16],t[18],3,o);const i=function(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}({years:hr(t[2]),months:hr(t[3]),weeks:hr(t[4]),days:hr(t[5]),hours:e,minutes:n,seconds:r});if(!Object.keys(i).length)throw new RangeError("Duration string must have at least one field");const a=Mt(at(o||0),2);i.milliseconds=a.milliseconds,i.microseconds=a.microseconds,i.nanoseconds=a.nanoseconds;let s=mt(i);return"-"===t[1]&&(s=lt(s)),s}}(e);if(void 0===t)throw lr("duration",e);return t}(e))}static compare(e,t,n){return function(e,t,n){if(void 0===n&>(e)<=6&>(t)<=6)return st(pt(e),pt(t));if(!n)throw new RangeError("Need relativeTo");const r=n.add(e),o=n.add(t);return void 0!==n[kt]?Wt(r,o):Kt(r,o)}(Be(Vo,e),Be(Vo,t),Uo(Ie(n).relativeTo))}get years(){return xo(this).years}get months(){return xo(this).months}get weeks(){return xo(this).weeks}get days(){return xo(this).days}get hours(){return xo(this).hours}get minutes(){return xo(this).minutes}get seconds(){return xo(this).seconds}get milliseconds(){return xo(this).milliseconds}get microseconds(){return xo(this).microseconds}get nanoseconds(){return xo(this).nanoseconds}get sign(){return xo(this).sign}get blank(){return!this.sign}with(e){return Ko({...xo(this),...$r(e)})}negated(){return Ko(lt(xo(this)))}abs(){return Ko(Oe(xo(this),ht,(e=>Math.abs(e))))}add(e,t){return Jo(this,Be(Vo,e),t)}subtract(e,t){return Jo(this,lt(Be(Vo,e)),t)}round(e){const t="string"==typeof e?{smallestUnit:e}:e;if(!Ae(t))throw new TypeError("Must specify options");if(void 0===t.largestUnit&&void 0===t.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const n=_e(t,gt(this),0,0,9,!0),r=Uo(t.relativeTo);return Ko(function(e,t,n,r){const{largestUnit:o,smallestUnit:i,roundingIncrement:a,roundingFunc:s}=t;if(void 0===n&>(e)<=6&&Se(o)&&Se(i))return Mt(Xe(pt(e),ge[i]*a,s),o);if(!n)throw new RangeError("Need relativeTo");const[u,c]=Bo(e,o,n,r);return $o(u,n,c,r,!1,t)}(this,n,r,r?r.calendar:void 0))}total(e){const t=function(e){let t,n;return"string"==typeof e?n=e:(n=Ie(e).unit,t=e.relativeTo),{unit:Pe(n,void 0,0,9),relativeTo:t}}(e),n=Uo(t.relativeTo);return function(e,t,n,r){if(void 0===n&>(e)<=6&&Se(t))return pt(e).toNumber()/ge[t];if(!n)throw new RangeError("Need relativeTo");const[o,i]=Bo(e,t,n,r,!0);return Zo(o,t,n,i)[Ye[t]]}(this,t.unit,n,n?n.calendar:void 0)}toString(e){const t=hn(e,3);return function(e,t){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=t,{sign:i}=e,a=e.hours,s=e.minutes;let u=e.seconds,c="";if(n<=3){const t=pn(e.milliseconds,e.microseconds,e.nanoseconds,r,o,n);c=t[0],u+=t[1]}const h=void 0!==r||c||!i;return(i<0?"-":"")+"P"+wn([[e.years,"Y"],[e.months,"M"],[e.weeks,"W"],[e.days,"D"]])+(a||s||u||h?"T"+wn([[a,"H"],[s,"M"],[n<=3?u:0,c+"S",h]]):"")}(xo(this),t)}toLocaleString(e,t){return this.toString()}}function Ko(e){return new Vo(e.years,e.months,e.weeks,e.days,e.hours,e.minutes,e.seconds,e.milliseconds,e.microseconds,e.nanoseconds)}function Jo(e,t,n){const r=Uo(Ie(n).relativeTo);return Ko(function(e,t,n,r){const o=Math.max(gt(e),gt(t));if(void 0===n&&o<=6)return Mt(pt(e).add(pt(t)),o);if(!n)throw new RangeError("Need relativeTo");const i=n.add(e).add(t);return Pi(n,i,r,o)}(e,t,r,r?r.calendar:void 0))}En(Vo,"Duration");class Go extends Ve{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Ai();const h=Qt({isoYear:e,isoMonth:t,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:a,isoMicrosecond:s,isoNanosecond:u},1),l=Be(Ti,c);io(h,l.toString()),super({...h,calendar:l})}static from(e,t){const n=pe(t);return Wo(e instanceof Go?e.getISOFields():"object"==typeof e?Hr(e,n,t):dr(Wn(String(e))))}static compare(e,t){return Kt(Be(Go,e),Be(Go,t))}with(e,t){const n=pe(t);return Wo(_r(this,e,n,t))}withPlainDate(e){const t=Be(Hi,e);return Wo({...this.getISOFields(),...t.getISOFields(),calendar:Oi(this,t)})}withPlainTime(e){return Wo({...this.getISOFields(),...To(e).getISOFields()})}withCalendar(e){return Wo({...this.getISOFields(),calendar:Be(Ti,e)})}add(e,t){return qo(this,Be(Vo,e),t)}subtract(e,t){return qo(this,lt(Be(Vo,e)),t)}until(e,t){return Xo(this,Be(Go,e),!1,t)}since(e,t){return Xo(this,Be(Go,e),!0,t)}round(e){const t=Ue(e,0,6);return Wo({...so(this.getISOFields(),t),calendar:this.calendar})}equals(e){return Vt(this,Be(Go,e))}toString(e){const t=hn(e),n=un(e);return dn(so(this.getISOFields(),t),t)+Sn(this.calendar.toString(),n)}toZonedDateTime(e,t){const n=Be(Nr,e),r=Nn(n,this,cn(t));return new Lo(r.epochNanoseconds,n,this.calendar)}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return Li(this.getISOFields())}toPlainTime(){return Io(this.getISOFields())}}function Wo(e){return new Go(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,e.calendar)}function qo(e,t,n){const r=function(e,t,n){const{calendar:r}=e;return Ft(Ht(r.dateAdd(Li(e),dt(t,St),n).getISOFields()).add(bt(e)).add(vt(t)))}(e.getISOFields(),t,n);return Wo({...r,calendar:e.calendar})}function Xo(e,t,n,r){const o=_e(r,6,0,0,9);return Ko(Fi(e,t,Ni(e,t),n,o))}En(Go,"PlainDateTime"),In(Go,He),Dn(Go,An),wo(Go,mo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class Qo extends Ve{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ai();super({...Xt({isoYear:arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ot,isoMonth:e,isoDay:t},1),calendar:Be(Ti,n)})}static from(e,t){if(pe(t),e instanceof Qo)return ei(e.getISOFields());if("object"==typeof e)return Fr(e,t);const n=function(e){const t=nr(e)||er(e);if(!t)throw lr("monthDay",e);return t}(String(e));return void 0===n.calendar&&(n.isoYear=Ot),ei(dr(n))}with(e,t){return Br(this,e,t)}equals(e){return!Kt(this,Be(Qo,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=un(e);return("iso8601"===n?function(e){return et(e.isoMonth,2)+"-"+et(e.isoDay,2)}(t):mn(t))+Sn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:e.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function ei(e){return new Qo(e.isoMonth,e.isoDay,e.calendar,e.isoYear)}function ti(e){return e instanceof Hi||e instanceof Go||e instanceof Lo||e instanceof Co||e instanceof Qo}function ni(e,t,n){let r;if(e instanceof Hi)r=e;else if(ti(e)){if(n&&e instanceof Qo)throw new TypeError("PlainMonthDay not allowed");r=Li(e.getISOFields())}else r=Hi.from(e);return ki(r.calendar,t),r}function ri(e,t,n){if(ti(e))return e.getISOFields();let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:u}=e;const c=void 0!==o&&void 0!==r?Dt(t.id,o,r):void 0;if(void 0===i){if(void 0===c)throw new TypeError("Must specify either a year or an era & eraYear");i=c}else if(void 0!==c&&c!==i)throw new RangeError("year and era/eraYear must match");if(void 0===u)throw new TypeError("Must specify day");const h=pe(n);if(void 0!==s){const[e,n]=t.convertMonthCode(s,i);if(void 0!==a&&a!==e)throw new RangeError("Month doesnt match with monthCode");if(a=e,n){if(1===h)throw new RangeError("Month code out of range");u=t.daysInMonth(i,a)}}else if(void 0===a)throw new TypeError("Must specify either a month or monthCode");return[i,a,u]=qt(i,a,u,t,h),Rt(t.epochMilliseconds(i,a,u))}function oi(e,t){if(ti(e)){if(t&&e instanceof Qo)throw new TypeError("PlainMonthDay not allowed");return e.getISOFields()}return Hi.from(e).getISOFields()}function ii(e,t){return xt(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t+1,1,1))}function ai(e,t,n,r){return xt(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t,n,r))+1}En(Qo,"PlainMonthDay"),In(Qo),Dn(Qo,["monthCode","day"]),wo(Qo,mo({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const si={hebrew:6,chinese:0,dangi:0};class ui extends At{constructor(e){const t=ci(e);if(n=e,r=t.resolvedOptions().calendar,Et(n)!==Et(r))throw new RangeError("Invalid calendar: "+e);var n,r;super(e),this.format=t,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(e,t,n){return zt(this.queryMonthCache(e)[0][t-1],n-1)}daysInMonth(e,t){const n=this.queryMonthCache(e)[0],r=n[t-1];return t>=n.length&&(e++,t=0),xt(r,this.queryMonthCache(e)[0][t])}monthsInYear(e){return this.queryMonthCache(e)[0].length}monthCode(e,t){const n=this.queryLeapMonthByYear(t);return!n||e<n?super.monthCode(e,t):super.monthCode(e-1,t)+(e===n?"L":"")}convertMonthCode(e,t){const n=this.queryLeapMonthByYear(t);let r=/L$/.test(e),o=parseInt(e.substr(1)),i=!1;if(r){const e=si[this.id];if(void 0===e)throw new RangeError("Calendar system doesnt support leap months");if(e){if(o!==e-1)throw new RangeError("Invalid leap-month month code")}else if(o<=1||o>=12)throw new RangeError("Invalid leap-month month code")}return!r||n&&o===n-1||(i=!0,r=!1),(r||n&&o>=n)&&o++,[o,i]}inLeapYear(e){const t=ii(this,e);return t>ii(this,e-1)&&t>ii(this,e+1)}guessYearForMonthDay(e,t){let n=1970+this.yearCorrection;const r=n+100;for(;n<r;n++){const[r,o]=this.convertMonthCode(e,n);if(!o&&r<=this.monthsInYear(n)&&t<=this.daysInMonth(n,r))return n}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(e){return e}computeFields(e){const t=this.computeFieldsDumb(e),n=this.queryMonthCache(t.year)[2];return{...t,month:n[t.month]}}computeFieldsDumb(e){const t=yr(this.format,e);let n,r,o=parseInt(t.relatedYear||t.year);var i;return t.era&&(i=this.id,void 0!==Tt[Et(i)])&&(n=wr(t.era),r=o,o=Dt(this.id,r,n,!0)),{era:n,eraYear:r,year:o,month:t.month,day:parseInt(t.day)}}queryLeapMonthByYear(e){const t=this.queryMonthCache(e),n=this.queryMonthCache(e-1),r=this.queryMonthCache(e+1);if(t[0].length>n[0].length&&t[0].length>r[0].length){const e=t[1],r=n[1];for(let t=0;t<r.length;t++)if(r[t]!==e[t])return t+1}}queryMonthCache(e){const{monthCacheByYear:t}=this;return t[e]||(t[e]=this.buildMonthCache(e))}buildMonthCache(e){const t=[],n=[],r={};let o=Yt(this.guessISOYear(e),1,1);for(o=zt(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<e)break;o=zt(o,1-r.day),r.year===e&&(t.unshift(o),n.unshift(r.month)),o=zt(o,-1)}for(let e=0;e<n.length;e++)r[n[e]]=e+1;return[t,n,r]}guessISOYear(e){return e-this.yearCorrection}}function ci(e){return new pr("en-US",{calendar:e,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const hi=Yt(1868,9,8),li={gregory:sn,japanese:class extends sn{constructor(){super(...arguments),this.format=ci("japanese")}computeFields(e){const t=super.computeFields(e);if(e>=hi){const n=yr(this.format,e);t.era=wr(n.era),t.eraYear=parseInt(n.relatedYear||n.year)}return t}},islamic:class extends ui{guessISOYear(e){return Math.ceil(32*e/33+622)}}},di={iso8601:Nt};function mi(e){const t=(e=String(e)).toLocaleLowerCase();return di[t]||(di[t]=new(li[Et(t)]||ui)(e))}const fi=Yt(1582,10,15),gi=Yt(622,7,18),yi={buddhist:fi,japanese:fi,roc:fi,islamic:gi,"islamic-rgsa":gi,indian:0},Si={};function wi(e,t){return pi(e.div(1e6).toNumber(),t)}function pi(e,t){if(function(e,t){return function(e){let t=Si[e];if(void 0===t){const n=yi[e];if(void 0===n)t=!1;else{let r=mi(e);r instanceof ui||(r=new ui(e));const o=n-864e5,i=r.computeFields(o);t=o!==r.epochMilliseconds(i.year,i.month,i.day)}Si[e]=t}return t}(t)&&e<yi[t]}(e,t))throw new RangeError("Invalid timestamp for calendar")}function vi(e,t,n){const r=7+t-n;return-Qe(jt(e,1,r)-t,7)+r-1}function bi(e,t,n){const r=vi(e,t,n),o=vi(e+1,t,n);return(ii(Nt,e)-r+o)/7}const[Mi,Ii]=Ee();class Ti extends Ze{constructor(e){super(),"islamicc"===e&&(e="islamic-civil"),Ii(this,mi(e))}static from(e){if(Ae(e))return function(e){const t=e.calendar;return void 0===t?e:Ae(t)&&void 0===t.calendar?t:new Ti(t)}(e);const t=er(String(e),!1,!0);return new Ti(t?t.calendar||"iso8601":String(e))}get id(){return this.toString()}era(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).era}eraYear(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).eraYear}year(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).year}month(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).month}monthCode(e){const t=ni(e,this);return Mi(this).monthCode(t.month,t.year)}day(e){const t=oi(e);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).day}dayOfWeek(e){const t=oi(e,!0);return jt(t.isoYear,t.isoMonth,t.isoDay)}dayOfYear(e){const t=ni(e,this,!0);return ai(Mi(this),t.year,t.month,t.day)}weekOfYear(e){const t=oi(e,!0);return function(e,t,n,r,o){const i=vi(e,1,4),a=Math.floor((ai(Nt,e,t,n)-i-1)/7)+1;if(a<1)return a+bi(e-1,1,4);const s=bi(e,1,4);return a>s?a-s:a}(t.isoYear,t.isoMonth,t.isoDay)}daysInWeek(e){return oi(e,!0),7}daysInMonth(e){const t=ni(e,this,!0);return Mi(this).daysInMonth(t.year,t.month)}daysInYear(e){const t=ni(e,this,!0);return ii(Mi(this),t.year)}monthsInYear(e){const t=ni(e,this,!0);return Mi(this).monthsInYear(t.year)}inLeapYear(e){return Mi(this).inLeapYear(this.year(e))}dateFromFields(e,t){const n=ri(Me(e,nn),Mi(this),t);return new Hi(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(e,t){const n=ri({...Me(e,tn),day:1},Mi(this),t);return new Co(n.isoYear,n.isoMonth,this,n.isoDay)}monthDayFromFields(e,t){const n=Mi(this);let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:u}=Me(e,on);if(void 0===u)throw new TypeError("required property 'day' missing or undefined");if(void 0!==s?i=Ot:void 0!==r&&void 0!==o&&(i=Dt(n.id,o,r)),void 0===i){if(void 0===s)throw new TypeError("either year or monthCode required with month");i=n.guessYearForMonthDay(s,u)}const c=ri({year:i,month:a,monthCode:s,day:u},n,t);return new Qo(c.isoMonth,c.isoDay,this,n.normalizeISOYearForMonthDay(c.isoYear))}dateAdd(e,t,n){const r=Mi(this),o=function(e,t,n,r){e=kn(e=On(e,t.years,n,r),t.months,n,r);let o=n.epochMilliseconds(e.year,e.month,e.day);const i=Math.trunc(vt(t).div(fe).toNumber());return o=zt(o,7*t.weeks+t.days+i),Rt(o)}(Be(Hi,e,n),Be(Vo,t),r,pe(n));return new Hi(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(e,t,n){const r=Mi(this),o=Be(Hi,e),i=Be(Hi,t),a=Ie(n).largestUnit,s="auto"===a?6:Pe(a,6,6,9);return ki(this,Ni(o,i)),Ko(function(e,t,n,r){let o=0,i=0,a=0,s=0;switch(r){case 9:o=function(e,t,n){const[,r,o]=qt(t.year,e.month,e.day,n,0),i=Gt(t,e),a=Ke(t.month,r)||Ke(t.day,o);return t.year-e.year-(a&&i&&a!==i?i:0)}(e,t,n),e=On(e,o,n,0);case 8:i=function(e,t,n){let r=0;const o=Gt(t,e);if(o){let{year:i}=e;for(;i!==t.year;)r+=n.monthsInYear(i)*o,i+=o;const[,a,s]=qt(t.year,e.month,e.day,n,0);r+=t.month-a;const u=Ke(t.day,s);u&&o&&u!==o&&(r-=o)}return r}(e,t,n),e=kn(e,i,n,0)}return s=xt(n.epochMilliseconds(e.year,e.month,e.day),n.epochMilliseconds(t.year,t.month,t.day)),7===r&&(a=Math.trunc(s/7),s%=7),mt({years:o,months:i,weeks:a,days:s,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(o,i,r,s))}fields(e){return e.slice()}mergeFields(e,t){return Di(e,t)}toString(){return Mi(this).id}}function Ai(){return new Ti("iso8601")}function Di(e,t){var n;const r={...e,...t};if(void 0!==e.year){delete r.era,delete r.eraYear,delete r.year;let n=!1;void 0===t.era&&void 0===t.eraYear||(r.era=t.era,r.eraYear=t.eraYear,n=!0),void 0!==t.year&&(r.year=t.year,n=!0),n||(r.year=e.year)}if(void 0!==e.monthCode){delete r.monthCode,delete r.month;let n=!1;void 0!==t.month&&(r.month=t.month,n=!0),void 0!==t.monthCode&&(r.monthCode=t.monthCode,n=!0),n||(r.monthCode=e.monthCode)}return void 0!==e.day&&(r.day=null!=(n=t.day)?n:e.day),r}function Ei(e,t,n,r){const o=Yt(t,n,r);return pi(o,e.id),e.computeFields(o)}function Ci(e){return void 0===e.calendar?Ai():Be(Ti,e.calendar)}function Ni(e,t){const{calendar:n}=e;return ki(n,t.calendar),n}function Oi(e,t){const n=e.calendar,r=t.calendar;if("iso8601"===n.id)return r;if("iso8601"===r.id)return n;if(n.id!==r.id)throw new RangeError("Non-ISO calendars incompatible");return n}function ki(e,t){if(e.toString()!==t.toString())throw new RangeError("Calendars must match")}En(Ti,"Calendar");class Hi extends Ve{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ai();const o=Xt({isoYear:e,isoMonth:t,isoDay:n},1),i=Be(Ti,r);!function(e,t){const n=Ht(e);ao(n.add(n.sign()<0?86399999999999:0)),wi(n,t)}(o,i.toString()),super({...o,calendar:i})}static from(e,t){return pe(t),e instanceof Hi?Li(e.getISOFields()):"object"==typeof e?Lr(e,t):Li(dr(Wn(String(e))))}static compare(e,t){return Kt(Be(Hi,e),Be(Hi,t))}with(e,t){return Ur(this,e,t)}withCalendar(e){const t=this.getISOFields();return new Hi(t.isoYear,t.isoMonth,t.isoDay,e)}add(e,t){return this.calendar.dateAdd(this,e,t)}subtract(e,t){return this.calendar.dateAdd(this,Be(Vo,e).negated(),t)}until(e,t){return Yi(this,Be(Hi,e),!1,t)}since(e,t){return Yi(this,Be(Hi,e),!0,t)}equals(e){return!Kt(this,Be(Hi,e))}toString(e){const t=un(e),n=this.getISOFields();return mn(n)+Sn(n.calendar.toString(),t)}toZonedDateTime(e){const t=function(e){let t,n;if("string"==typeof e)n=e;else{if("object"!=typeof e)throw new TypeError("Invalid options/timeZone argument");if(void 0!==e.id?n=e:(n=e.timeZone,t=e.plainTime),void 0===n)throw new TypeError("Invalid timeZone argument")}return{plainTime:t,timeZone:n}}(e),n=Be(Nr,t.timeZone),r=void 0===t.plainTime?void 0:Be(Mo,t.plainTime);return Yo({...this.getISOFields(),...r?r.getISOFields():yt,timeZone:n})}toPlainDateTime(e){return Wo({...this.getISOFields(),...To(e).getISOFields()})}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function Li(e){return new Hi(e.isoYear,e.isoMonth,e.isoDay,e.calendar)}function Yi(e,t,n,r){return Ko(Ri(e,t,Ni(e,t),n,_e(r,6,6,6,9)))}function Fi(e,t,n,r,o){return $o(Pi(e,t,n,o.largestUnit),e,t,n,r,o)}function Ri(e,t,n,r,o){return $o(n.dateUntil(e,t,{largestUnit:Le[o.largestUnit]}),e,t,n,r,o)}function Pi(e,t,n,r){if(!we(r))return _i(e,t,r);const o=Li({...e.getISOFields(),calendar:n});let i,a,s,u,c,h=Li({...t.getISOFields(),calendar:n});do{a=n.dateUntil(o,h,{largestUnit:Le[r]}),i=e.add(a),s=_i(i,t,5),u=a.sign,c=s.sign}while(u&&c&&u!==c&&(h=h.add({days:c})));return d=s,{sign:(l=a).sign||d.sign,years:l.years+d.years,months:l.months+d.months,weeks:l.weeks+d.weeks,days:l.days+d.days,hours:l.hours+d.hours,minutes:l.minutes+d.minutes,seconds:l.seconds+d.seconds,milliseconds:l.milliseconds+d.milliseconds,microseconds:l.microseconds+d.microseconds,nanoseconds:l.nanoseconds+d.nanoseconds};var l,d}function _i(e,t,n){return Mt(Pt(t).sub(Pt(e)),n)}En(Hi,"PlainDate"),In(Hi),Dn(Hi,An),wo(Hi,mo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class Ui extends $e{constructor(e){super();const t=at(e,!0);!function(e){-1!==st(e,no)&&1!==st(e,to)||$t()}(t),this[kt]=t}static from(e){if(e instanceof Ui)return new Ui(e.epochNanoseconds);const t=Gn(String(e)),n=t.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new Ui(Ht(Qt(t,1)).sub(n))}static fromEpochSeconds(e){return new Ui(at(e).mult(1e9))}static fromEpochMilliseconds(e){return new Ui(at(e).mult(1e6))}static fromEpochMicroseconds(e){return new Ui(e*BigInt(1e3))}static fromEpochNanoseconds(e){return new Ui(e)}static compare(e,t){return Wt(Be(Ui,e),Be(Ui,t))}add(e){return new Ui(Ln(this[kt],Be(Vo,e)))}subtract(e){return new Ui(Ln(this[kt],lt(Be(Vo,e))))}until(e,t){return ji(this,Be(Ui,e),t)}since(e,t){return ji(Be(Ui,e),this,t)}round(e){const t=Ue(e,0,5,!0);return new Ui(function(e,t){const[n,r]=function(e){const t=Ft(e);return[Lt(t.isoYear,t.isoMonth,t.isoDay),bt(t)]}(e),o=co(r,t);return n.add(o)}(this[kt],t))}equals(e){return!Wt(this,Be(Ui,e))}toString(e){const t=Ie(e).timeZone;return this.toZonedDateTimeISO(null!=t?t:"UTC").toString({...e,offset:void 0===t?"never":"auto",timeZoneName:"never"})+(void 0===t?"Z":"")}toZonedDateTimeISO(e){return new Lo(this.epochNanoseconds,e)}toZonedDateTime(e){if(!Ae(e))throw new TypeError("Must specify options");if(void 0===e.calendar)throw new TypeError("Must specify a calendar");if(void 0===e.timeZone)throw new TypeError("Must specify a timeZone");return new Lo(this.epochNanoseconds,e.timeZone,e.calendar)}}function ji(e,t,n){const r=_e(n,3,0,0,5);return Ko(function(e,t,n){return Mt(Xe(t.sub(e),ge[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(e[kt],t[kt],r))}function Bi(){return Ui.fromEpochMilliseconds(this.valueOf())}En(Ui,"Instant"),vn(Ui),wo(Ui,ho({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const Zi=Symbol(),$i=Symbol(),xi=Symbol();class zi extends Intl.DateTimeFormat{constructor(e,t){const n=vr(e),r=function(e){const t={};for(const n in e){let r=e[n];Ae(r)&&(r=r.toString()),t[n]=r}return t}(t||{});super(n,r),this[Zi]=n,this[$i]=r,this[xi]=new Map}format(e){const t=Ki(this,e);return t[0]===this?super.format(t[1]):t[0].format(t[1])}formatToParts(e){return super.formatToParts.call(...Ki(this,e))}formatRange(e,t){return super.formatRange.call(...Ji(this,e,t))}formatRangeToParts(e,t){return super.formatRangeToParts.call(...Ji(this,e,t))}}const Vi=zi;function Ki(e,t){const n=po(t);if(n){const r=Gi(e,n);return[r.buildFormat(t),r.buildEpochMilli(t)]}return[e,t]}function Ji(e,t,n){const r=po(t);if(r!==po(n))throw new TypeError("Mismatch of types");if(r){const o=Gi(e,r);return[o.buildFormat(t,n),new Date(o.buildEpochMilli(t)),new Date(o.buildEpochMilli(n))]}return[e,t,n]}function Gi(e,t){const n=e[xi];let r=n.get(t);return r||(r=function(e){const t={};return{buildFormat:function(n,r){const o=e.buildKey(n,r),i=o.join("|");return t[i]||(t[i]=e.buildFormat(...o))},buildEpochMilli:e.buildEpochMilli}}(t(e[Zi],e[$i])),n.set(t,r)),r}const Wi={zonedDateTimeISO:function(e){return Yo(Xi("iso8601",e))},zonedDateTime:function(e,t){return Yo(Xi(e,t))},plainDateTimeISO:function(e){return Wo(Xi("iso8601",e))},plainDateTime:function(e,t){return Wo(Xi(e,t))},plainDateISO:function(e){return Li(Xi("iso8601",e))},plainDate:function(e,t){return Li(Xi(e,t))},plainTimeISO:function(e){return Io(Xi("iso8601",e))},instant:function(){return new Ui(Qi())},timeZone:qi};function qi(){return new Nr((new pr).resolvedOptions().timeZone)}function Xi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qi();const n=Be(Nr,t);return{...Fo(Qi(),n)[0],timeZone:n,calendar:Be(Ti,e)}}function Qi(){return at(Date.now()).mult(1e6)}En(Wi,"Now");const ea={PlainYearMonth:Co,PlainMonthDay:Qo,PlainDate:Hi,PlainTime:Mo,PlainDateTime:Go,ZonedDateTime:Lo,Instant:Ui,Calendar:Ti,TimeZone:Nr,Duration:Vo,Now:Wi,[Symbol.toStringTag]:"Temporal"};const ta=ea;function na(e){return e*Math.PI/180}function ra(e){return 180*e/Math.PI}class oa{constructor(e,t,n,r,o){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const ia=6356.9;class aa{constructor(e,t){this.date=t,this.geoLocation=e}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const e=this.getUTCSunrise0(aa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(aa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(aa.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(aa.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(aa.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(aa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(aa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(aa.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(aa.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(aa.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return ra(Math.acos(ia/(ia+e/1e3)))}adjustZenith(e,t){let n=e;return e===aa.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=aa.getSunriseUTC(aa.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=aa.getSunsetUTC(aa.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return aa.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const i=Math.trunc(n*=60);n-=i;const a=Math.trunc(n*=60);n-=a;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new ta.PlainTime(o,i,a,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-aa.JULIAN_DAY_JAN_1_2000)/aa.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*aa.JULIAN_DAYS_PER_CENTURY+aa.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(e){let t=280.46646+e*(36000.76983+3032e-7*e);for(;t>360;)t-=360;for(;t<0;)t+=360;return t}static getSunGeometricMeanAnomaly(e){return 357.52911+e*(35999.05029-1537e-7*e)}static getEarthOrbitEccentricity(e){return.016708634-e*(42037e-9+1.267e-7*e)}static getSunEquationOfCenter(e){const t=na(aa.getSunGeometricMeanAnomaly(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}static getSunTrueLongitude(e){return aa.getSunGeometricMeanLongitude(e)+aa.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return aa.getSunTrueLongitude(e)-.00569-.00478*Math.sin(na(t))}static getMeanObliquityOfEcliptic(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}static getObliquityCorrection(e){const t=125.04-1934.136*e;return aa.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(na(t))}static getSunDeclination(e){const t=aa.getObliquityCorrection(e),n=aa.getSunApparentLongitude(e),r=Math.sin(na(t))*Math.sin(na(n));return ra(Math.asin(r))}static getEquationOfTime(e){const t=aa.getObliquityCorrection(e),n=aa.getSunGeometricMeanLongitude(e),r=aa.getEarthOrbitEccentricity(e),o=aa.getSunGeometricMeanAnomaly(e);let i=Math.tan(na(t)/2);i*=i;const a=Math.sin(2*na(n)),s=Math.sin(na(o));return 4*ra(i*a-2*r*s+4*r*i*s*Math.cos(2*na(n))-.5*i*i*Math.sin(4*na(n))-1.25*r*r*Math.sin(2*na(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=na(e),o=na(t);return Math.acos(Math.cos(na(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=na(e),o=na(t);return-Math.acos(Math.cos(na(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=aa.getJulianDay(e.toPlainDate()),o=aa.getJulianCenturiesFromJulianDay(r),i=aa.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=na(n-a),u=na(aa.getSunDeclination(o)),c=na(t);return ra(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=aa.getJulianDay(e.toPlainDate()),o=aa.getJulianCenturiesFromJulianDay(r),i=aa.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=na(n-a),u=na(aa.getSunDeclination(o)),c=na(t);return ra(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=aa.getJulianCenturiesFromJulianDay(e),i=aa.getSolarNoonUTC(o,n),a=aa.getJulianCenturiesFromJulianDay(e+i/1440);let s=aa.getEquationOfTime(a),u=aa.getSunDeclination(a),c=aa.getSunHourAngleAtSunrise(t,u,r),h=n-ra(c),l=4*h,d=720+l-s;const m=aa.getJulianCenturiesFromJulianDay(aa.getJulianDayFromJulianCenturies(o)+d/1440);return s=aa.getEquationOfTime(m),u=aa.getSunDeclination(m),c=aa.getSunHourAngleAtSunrise(t,u,r),h=n-ra(c),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=aa.getJulianCenturiesFromJulianDay(aa.getJulianDayFromJulianCenturies(e)+t/360);let r=aa.getEquationOfTime(n);const o=720+4*t-r,i=aa.getJulianCenturiesFromJulianDay(aa.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=aa.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=aa.getJulianCenturiesFromJulianDay(e),i=aa.getSolarNoonUTC(o,n),a=aa.getJulianCenturiesFromJulianDay(e+i/1440);let s=aa.getEquationOfTime(a),u=aa.getSunDeclination(a),c=aa.getSunHourAngleAtSunset(t,u,r),h=n-ra(c),l=4*h,d=720+l-s;const m=aa.getJulianCenturiesFromJulianDay(aa.getJulianDayFromJulianCenturies(o)+d/1440);return s=aa.getEquationOfTime(m),u=aa.getSunDeclination(m),c=aa.getSunHourAngleAtSunset(t,u,r),h=n-ra(c),l=4*h,d=720+l-s,d}}const sa=new Map,ua={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},ca=new Map;class ha extends oa{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,u,c,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=ca.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return ca.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return sa.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return ua[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":ua[t]}static addLocation(e,t){const n=e.toLowerCase();return!sa.has(n)&&(sa.set(n,t),!0)}}[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]].forEach((e=>{const t=new ha(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);ha.addLocation(t.getName(),t)}));const la=new Map;const da=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ma(e,t){const n=function(e){const t=la.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return la.set(e,n),n}(e).format(t),r=da.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=fa(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function fa(e){return e<0?"-00"+fa(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function ga(e){return e<10?"0"+e:String(e)}function ya(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}("undefined"!=typeof globalThis?globalThis:window).Temporal=ea,Intl.DateTimeFormat=Vi,Date.prototype.toTemporalInstant=Bi;class Sa{constructor(t,n,r){const o=e.greg.isDate(n)?n:ie.isHDate(n)?n.greg():X(`invalid date: ${n}`);this.date=o,this.gloc=t;const i=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new aa(t,i),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return ya(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return ya(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return ya(this.noaa.getSeaLevelSunrise())}sunset(){return ya(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return ya(this.noaa.getSeaLevelSunset())}dawn(){return ya(this.noaa.getBeginCivilTwilight())}dusk(){return ya(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new Sa(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return ya(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.noaa.getSunrise(),n=this.noaa.getSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return ya(aa.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanShmaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=ma("UTC",t),r=ma(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+ga(Math.floor(r/60))+":"+ga(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:ma(e,t).substring(0,19)+Sa.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const wa={FRI:5,SAT:6};function pa(e,t,n,r,o){let i=!1,a=n==wa.SAT,s=e?e.getFlags():ce.LIGHT_CANDLES;void 0!==e?n!=wa.FRI&&(s&(ce.LIGHT_CANDLES_TZEIS|ce.CHANUKAH_CANDLES)?a=!0:s&ce.YOM_TOV_ENDS&&(i=!0,a=!0)):n==wa.SAT&&(i=!0,s=ce.LIGHT_CANDLES_TZEIS);const u=a?o.havdalahMins:o.candleLightingMins,c=new Sa(r,t,o.useElevation),h=u?c.sunsetOffset(u,!0):c.tzeit(o.havdalahDeg);return isNaN(h.getTime())?null:i?new ba(t,s,h,r,o.havdalahMins,e):new Ma(t,s,h,r,e)}class va extends le{constructor(e,t,n,r,o,i){super(e,t,n),this.eventTime=Sa.roundTime(r),this.location=o;const a=o.getTimeFormatter();this.eventTimeStr=Sa.formatTime(this.eventTime,a),void 0!==i&&(this.linkedEvent=i)}render(e){return l.gettext(this.getDesc(),e)+": "+this.eventTimeStr}renderBrief(e){return l.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class ba extends va{constructor(e,t,n,r,o,i){super(e,"Havdalah",t,n,r,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.eventTimeStr}renderBrief(e){let t=l.gettext(this.getDesc(),e);if(this.havdalahMins){const n=l.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class Ma extends va{constructor(e,t,n,r,o){super(e,"Candle lighting",t,n,r,o)}getEmoji(){return"🕯️"}}function Ia(e,t,n,r,o){return isNaN(t.getTime())?null:new va(e,n,r.getFlags(),t,o,r)}const Ta=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Aa=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Da="בַּלַּ֥יְלָה";class Ea{constructor(e,t){let n=t-7;n<0&&(n+=ie.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080,s=(1+29*r+Math.floor(i/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=i%24,this.minutes=Math.floor(a/18),this.chalakim=a%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return ie.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}}class Ca extends le{constructor(e,t,n){const r=new Ea(t,n);super(e,`Molad ${r.getMonthName()} ${t}`,ce.MOLAD),this.molad=r}render(e){const t=this.molad;"string"==typeof(e=e||l.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=l.gettext(t.getMonthName(),e),o=(n?Aa:Ta)[t.getDow()],i=t.getMinutes(),a=t.getHour(),s=t.getChalakim(),u=l.gettext("Molad",e),c=l.lookupTranslation("min",e)||"minutes",h=l.gettext("chalakim",e);if(n){return`${u} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${a} ${a<5?Da:a<12?"בַּבֹּקֶר":a<17?"בַּצׇּהֳרַיִים":a<21?"בָּעֶרֶב":Da}, ו-${i} ${c} ו-${s} ${h}`}return`${u} ${r}: ${o}, ${i} ${c} and ${s} ${h} after ${a}:00`}}const Na=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Oa=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class ka extends le{constructor(e,t){if(super(e,`Omer ${t}`,ce.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";const t=Na[this.weekNumber],n=Na[this.daysWithinWeeks];switch(e){case"he":const e=l.gettext(t,"he");return`${l.gettext(n,"he")} ${2===this.weekNumber||6===this.weekNumber?"שֶׁבִּ":"שֶׁבְּ"}${e}`.normalize();case"translit":const r=Oa[this.weekNumber];return`${Oa[this.daysWithinWeeks]} ${2===this.weekNumber||6===this.weekNumber?"shebi":"sheb'"}${r}`;default:return`${n} within ${t}`}}render(e){e=e||l.getLocaleName();const t=this.omer;return("he"==e?o(t):l.ordinal(t,e))+" "+l.gettext("day of the Omer",e)}renderBrief(e){return l.gettext("Omer",e)+" "+l.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;const e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||l.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return ja(this.omer);if("he-x-nonikud"===e)return l.hebrewStripNikkud(ja(this.omer));const t=1===this.omer?"day":"days";let n=`Today is ${this.omer} ${t}`;if(this.weekNumber>1||7===this.omer){const e=7===this.daysWithinWeeks,t=e?this.weekNumber:this.weekNumber-1;if(n+=`, which is ${t} ${1===t?"week":"weeks"}`,!e){const e=1===this.daysWithinWeeks?"day":"days";n+=` and ${this.daysWithinWeeks} ${e}`}}return n+" of the Omer"}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}const Ha=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],La=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Ya="שְׁנֵי",Fa="יָמִים",Ra=Ya+" "+Fa,Pa="שָׁבוּעוֹת",_a="יוֹם",Ua=_a+" "+La[1];function ja(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=La[n]+" עָשָׂר":e>9&&(r+=La[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=Ha[t]),r+=e<11?La[n]+" "+Fa+" ":" "+_a+" "):r+=1===e?Ua+" ":Ra+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?La[t]+" "+Pa+" ":1==t?"שָׁבוּעַ "+La[1]+" ":Ya+" "+Pa+" ",n&&(r+="וְ",r+=n>2?La[n]+" "+Fa+" ":1==n?Ua+" ":Ra+" ")}return r+="לָעוֹמֶר",r.normalize()}class Ba{constructor(e,t){e=+e;const n=ie.longCheshvan(e),r=ie.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const i=new ie(1,D.TISHREI,e),a=i.abs(),s=this.roshHashanaDay=i.getDay()+1;this.firstSaturday=ie.dayOnOrBefore(6,a+6);const u=this.leap=+ie.isLeapYear(e);this.il=Boolean(t);const c=`${u}${s}${o}`;if(os[c])this.key=c,this.theSedraArray=os[c];else{const e=this.key=c+ +this.il;this.theSedraArray=os[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||l.getLocaleName();let o=l.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+l.gettext(n[1],r)}return l.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new ie(this.firstSaturday+7*t)}if("string"==typeof e){const t=$a.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new ie(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=$a.get(t);if($a.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:ie.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ie.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return new Ba(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Za[o]],chag:!1,num:o+1};const i=xa(o);return{parsha:[Za[i],Za[i+1]],chag:!1,num:[i+1,i+2]}}}const Za=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'azinu"],$a=new Map;for(let e=0;e<Za.length;e++){const t=Za[e];$a.set(t,e)}function xa(e){return-e}const za="Rosh Hashana",Va="Yom Kippur",Ka="Sukkot",Ja="Sukkot Shabbat Chol ha-Moed",Ga="Shmini Atzeret",Wa=Ja,qa="Pesach",Xa="Pesach I",Qa="Pesach Shabbat Chol ha-Moed",es="Pesach VII",ts="Pesach VIII",ns="Shavuot";function rs(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const os={"020":[51,52].concat(Wa,rs(0,20),xa(21),23,24,qa,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,49),xa(50)),"0220":[51,52].concat(Wa,rs(0,20),xa(21),23,24,qa,25,xa(26),xa(28),30,xa(31),33,ns,rs(34,37),xa(38),40,xa(41),rs(43,49),xa(50)),"0510":[52].concat(Va,Wa,rs(0,20),xa(21),23,24,Xa,ts,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,50)),"0511":[52].concat(Va,Wa,rs(0,20),xa(21),23,24,qa,25,xa(26),xa(28),rs(30,40),xa(41),rs(43,50)),"052":[52].concat(Va,Ja,rs(0,24),es,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,50)),"070":[].concat(za,52,Ka,Ga,rs(0,20),xa(21),23,24,es,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,50)),"072":[].concat(za,52,Ka,Ga,rs(0,20),xa(21),23,24,Qa,25,xa(26),xa(28),30,xa(31),rs(33,40),xa(41),rs(43,49),xa(50)),1200:[51,52].concat(Ja,rs(0,27),Qa,rs(28,33),ns,rs(34,37),xa(38),40,xa(41),rs(43,49),xa(50)),1201:[51,52].concat(Ja,rs(0,27),Qa,rs(28,40),xa(41),rs(43,49),xa(50)),1220:[51,52].concat(Ja,rs(0,27),Xa,ts,rs(28,40),xa(41),rs(43,50)),1221:[51,52].concat(Ja,rs(0,27),qa,rs(28,50)),150:[52].concat(Va,Ja,rs(0,28),es,rs(29,50)),152:[52].concat(Va,Ja,rs(0,28),Qa,rs(29,49),xa(50)),170:[].concat(za,52,Ka,Ga,rs(0,27),Qa,rs(28,40),xa(41),rs(43,49),xa(50)),1720:[].concat(za,52,Ka,Ga,rs(0,27),Qa,rs(28,33),ns,rs(34,37),xa(38),40,xa(41),rs(43,49),xa(50))};os["0221"]=os["020"],os["0310"]=os["0220"],os["0311"]=os["020"],os[1310]=os[1220],os[1311]=os[1221],os[1721]=os[170];class is extends le{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),ce.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||l.getLocaleName(),n=this.parsha;let r=l.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+l.gettext(n[1],e)}return(l.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var as="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ss=function(e){return e&&e.Math===Math&&e},us=ss("object"==typeof globalThis&&globalThis)||ss("object"==typeof window&&window)||ss("object"==typeof self&&self)||ss("object"==typeof as&&as)||ss("object"==typeof as&&as)||function(){return this}()||Function("return this")(),cs=function(e){try{return!!e()}catch(e){return!0}},hs=!cs((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ls={exports:{}},ds=!cs((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ms=ds,fs=Function.prototype,gs=fs.call,ys=ms&&fs.bind.bind(gs,gs),Ss=ms?ys:function(e){return function(){return gs.apply(e,arguments)}},ws="object"==typeof document&&document.all,ps={all:ws,IS_HTMLDDA:void 0===ws&&void 0!==ws},vs=ps.all,bs=ps.IS_HTMLDDA?function(e){return"function"==typeof e||e===vs}:function(e){return"function"==typeof e},Ms=function(e){return null==e},Is=Ms,Ts=TypeError,As=function(e){if(Is(e))throw new Ts("Can't call method on "+e);return e},Ds=As,Es=Object,Cs=function(e){return Es(Ds(e))},Ns=Ss({}.hasOwnProperty),Os=Object.hasOwn||function(e,t){return Ns(Cs(e),t)},ks=hs,Hs=Os,Ls=Function.prototype,Ys=ks&&Object.getOwnPropertyDescriptor,Fs=Hs(Ls,"name"),Rs={EXISTS:Fs,PROPER:Fs&&"something"===function(){}.name,CONFIGURABLE:Fs&&(!ks||ks&&Ys(Ls,"name").configurable)},Ps=us,_s=Object.defineProperty,Us=function(e,t){try{_s(Ps,e,{value:t,configurable:!0,writable:!0})}catch(n){Ps[e]=t}return t},js=Us,Bs="__core-js_shared__",Zs=us[Bs]||js(Bs,{}),$s=bs,xs=Zs,zs=Ss(Function.toString);$s(xs.inspectSource)||(xs.inspectSource=function(e){return zs(e)});var Vs,Ks,Js=xs.inspectSource,Gs=bs,Ws=us.WeakMap,qs=Gs(Ws)&&/native code/.test(String(Ws)),Xs=bs,Qs=ps.all,eu=ps.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Xs(e)||e===Qs}:function(e){return"object"==typeof e?null!==e:Xs(e)},tu={},nu=eu,ru=us.document,ou=nu(ru)&&nu(ru.createElement),iu=function(e){return ou?ru.createElement(e):{}},au=iu,su=!hs&&!cs((function(){return 7!==Object.defineProperty(au("div"),"a",{get:function(){return 7}}).a})),uu=hs&&cs((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cu=eu,hu=String,lu=TypeError,du=function(e){if(cu(e))return e;throw new lu(hu(e)+" is not an object")},mu=ds,fu=Function.prototype.call,gu=mu?fu.bind(fu):function(){return fu.apply(fu,arguments)},yu=us,Su=bs,wu=function(e,t){return arguments.length<2?(n=yu[e],Su(n)?n:void 0):yu[e]&&yu[e][t];var n},pu=Ss({}.isPrototypeOf),vu=us,bu="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Mu=vu.process,Iu=vu.Deno,Tu=Mu&&Mu.versions||Iu&&Iu.version,Au=Tu&&Tu.v8;Au&&(Ks=(Vs=Au.split("."))[0]>0&&Vs[0]<4?1:+(Vs[0]+Vs[1])),!Ks&&bu&&(!(Vs=bu.match(/Edge\/(\d+)/))||Vs[1]>=74)&&(Vs=bu.match(/Chrome\/(\d+)/))&&(Ks=+Vs[1]);var Du=Ks,Eu=cs,Cu=us.String,Nu=!!Object.getOwnPropertySymbols&&!Eu((function(){var e=Symbol("symbol detection");return!Cu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Du&&Du<41})),Ou=Nu&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ku=wu,Hu=bs,Lu=pu,Yu=Object,Fu=Ou?function(e){return"symbol"==typeof e}:function(e){var t=ku("Symbol");return Hu(t)&&Lu(t.prototype,Yu(e))},Ru=String,Pu=bs,_u=function(e){try{return Ru(e)}catch(e){return"Object"}},Uu=TypeError,ju=function(e){if(Pu(e))return e;throw new Uu(_u(e)+" is not a function")},Bu=Ms,Zu=gu,$u=bs,xu=eu,zu=TypeError,Vu={exports:{}},Ku=Zs;(Vu.exports=function(e,t){return Ku[e]||(Ku[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Ju=Vu.exports,Gu=Ss,Wu=0,qu=Math.random(),Xu=Gu(1..toString),Qu=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Xu(++Wu+qu,36)},ec=Ju,tc=Os,nc=Qu,rc=Nu,oc=Ou,ic=us.Symbol,ac=ec("wks"),sc=oc?ic.for||ic:ic&&ic.withoutSetter||nc,uc=function(e){return tc(ac,e)||(ac[e]=rc&&tc(ic,e)?ic[e]:sc("Symbol."+e)),ac[e]},cc=gu,hc=eu,lc=Fu,dc=function(e,t){var n=e[t];return Bu(n)?void 0:ju(n)},mc=function(e,t){var n,r;if("string"===t&&$u(n=e.toString)&&!xu(r=Zu(n,e)))return r;if($u(n=e.valueOf)&&!xu(r=Zu(n,e)))return r;if("string"!==t&&$u(n=e.toString)&&!xu(r=Zu(n,e)))return r;throw new zu("Can't convert object to primitive value")},fc=TypeError,gc=uc("toPrimitive"),yc=function(e,t){if(!hc(e)||lc(e))return e;var n,r=dc(e,gc);if(r){if(void 0===t&&(t="default"),n=cc(r,e,t),!hc(n)||lc(n))return n;throw new fc("Can't convert object to primitive value")}return void 0===t&&(t="number"),mc(e,t)},Sc=Fu,wc=function(e){var t=yc(e,"string");return Sc(t)?t:t+""},pc=hs,vc=su,bc=uu,Mc=du,Ic=wc,Tc=TypeError,Ac=Object.defineProperty,Dc=Object.getOwnPropertyDescriptor,Ec="enumerable",Cc="configurable",Nc="writable";tu.f=pc?bc?function(e,t,n){if(Mc(e),t=Ic(t),Mc(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Nc in n&&!n[Nc]){var r=Dc(e,t);r&&r[Nc]&&(e[t]=n.value,n={configurable:Cc in n?n[Cc]:r[Cc],enumerable:Ec in n?n[Ec]:r[Ec],writable:!1})}return Ac(e,t,n)}:Ac:function(e,t,n){if(Mc(e),t=Ic(t),Mc(n),vc)try{return Ac(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Tc("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Oc,kc,Hc,Lc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yc=tu,Fc=Lc,Rc=hs?function(e,t,n){return Yc.f(e,t,Fc(1,n))}:function(e,t,n){return e[t]=n,e},Pc=Qu,_c=Ju("keys"),Uc=function(e){return _c[e]||(_c[e]=Pc(e))},jc={},Bc=qs,Zc=us,$c=eu,xc=Rc,zc=Os,Vc=Zs,Kc=Uc,Jc=jc,Gc="Object already initialized",Wc=Zc.TypeError,qc=Zc.WeakMap;if(Bc||Vc.state){var Xc=Vc.state||(Vc.state=new qc);Xc.get=Xc.get,Xc.has=Xc.has,Xc.set=Xc.set,Oc=function(e,t){if(Xc.has(e))throw new Wc(Gc);return t.facade=e,Xc.set(e,t),t},kc=function(e){return Xc.get(e)||{}},Hc=function(e){return Xc.has(e)}}else{var Qc=Kc("state");Jc[Qc]=!0,Oc=function(e,t){if(zc(e,Qc))throw new Wc(Gc);return t.facade=e,xc(e,Qc,t),t},kc=function(e){return zc(e,Qc)?e[Qc]:{}},Hc=function(e){return zc(e,Qc)}}var eh={set:Oc,get:kc,has:Hc,enforce:function(e){return Hc(e)?kc(e):Oc(e,{})},getterFor:function(e){return function(t){var n;if(!$c(t)||(n=kc(t)).type!==e)throw new Wc("Incompatible receiver, "+e+" required");return n}}},th=Ss,nh=cs,rh=bs,oh=Os,ih=hs,ah=Rs.CONFIGURABLE,sh=Js,uh=eh.enforce,ch=eh.get,hh=String,lh=Object.defineProperty,dh=th("".slice),mh=th("".replace),fh=th([].join),gh=ih&&!nh((function(){return 8!==lh((function(){}),"length",{value:8}).length})),yh=String(String).split("String"),Sh=ls.exports=function(e,t,n){"Symbol("===dh(hh(t),0,7)&&(t="["+mh(hh(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!oh(e,"name")||ah&&e.name!==t)&&(ih?lh(e,"name",{value:t,configurable:!0}):e.name=t),gh&&n&&oh(n,"arity")&&e.length!==n.arity&&lh(e,"length",{value:n.arity});try{n&&oh(n,"constructor")&&n.constructor?ih&&lh(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=uh(e);return oh(r,"source")||(r.source=fh(yh,"string"==typeof t?t:"")),e};Function.prototype.toString=Sh((function(){return rh(this)&&ch(this).source||sh(this)}),"toString");var wh=ls.exports,ph=wh,vh=tu,bh=du,Mh=hs,Ih=function(e,t,n){return n.get&&ph(n.get,t,{getter:!0}),n.set&&ph(n.set,t,{setter:!0}),vh.f(e,t,n)},Th=function(){var e=bh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ah=cs,Dh=us.RegExp,Eh=Dh.prototype,Ch=Mh&&Ah((function(){var e=!0;try{Dh(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(Eh,"flags").get.call(t)!==r||n!==r}));Ch&&Ih(Eh,"flags",{configurable:!0,get:Th});const Nh=0,Oh=2,kh=5,Hh=6,Lh=D.NISAN,Yh=D.IYYAR;function Fh(e){if(e<5708)return null;let t;const n=new ie(15,Lh,e).getDay();return t=n===Nh?2:n===Hh?3:e<5764?4:n===Oh?5:4,new ie(t,Yh,e)}const Rh=D.NISAN,Ph=D.IYYAR,_h=D.SIVAN,Uh=D.TAMUZ,jh=D.AV,Bh=D.ELUL,Zh=D.TISHREI,$h=D.CHESHVAN,xh=D.KISLEV,zh=D.SHVAT,Vh=D.ADAR_II,Kh=ce.CHAG,Jh=ce.LIGHT_CANDLES,Gh=ce.YOM_TOV_ENDS,Wh=ce.CHUL_ONLY,qh=ce.IL_ONLY,Xh=ce.LIGHT_CANDLES_TZEIS,Qh=ce.CHANUKAH_CANDLES,el=ce.MAJOR_FAST,tl=ce.MINOR_HOLIDAY,nl=ce.EREV,rl=ce.CHOL_HAMOED,ol="🫓",il="🌿🍋",al=[{mm:Zh,dd:2,desc:"Rosh Hashana II",flags:Kh|Gh,emoji:"🍏🍯"},{mm:Zh,dd:9,desc:"Erev Yom Kippur",flags:nl|Jh},{mm:Zh,dd:10,desc:"Yom Kippur",flags:Kh|el|Gh},{mm:Zh,dd:14,desc:"Erev Sukkot",flags:Wh|nl|Jh,emoji:il},{mm:Zh,dd:15,desc:"Sukkot I",flags:Wh|Kh|Xh,emoji:il},{mm:Zh,dd:16,desc:"Sukkot II",flags:Wh|Kh|Gh,emoji:il},{mm:Zh,dd:17,desc:"Sukkot III (CH''M)",flags:Wh|rl,chmDay:1,emoji:il},{mm:Zh,dd:18,desc:"Sukkot IV (CH''M)",flags:Wh|rl,chmDay:2,emoji:il},{mm:Zh,dd:19,desc:"Sukkot V (CH''M)",flags:Wh|rl,chmDay:3,emoji:il},{mm:Zh,dd:20,desc:"Sukkot VI (CH''M)",flags:Wh|rl,chmDay:4,emoji:il},{mm:Zh,dd:22,desc:"Shmini Atzeret",flags:Wh|Kh|Xh},{mm:Zh,dd:23,desc:"Simchat Torah",flags:Wh|Kh|Gh},{mm:Zh,dd:14,desc:"Erev Sukkot",flags:qh|nl|Jh,emoji:il},{mm:Zh,dd:15,desc:"Sukkot I",flags:qh|Kh|Gh,emoji:il},{mm:Zh,dd:16,desc:"Sukkot II (CH''M)",flags:qh|rl,chmDay:1,emoji:il},{mm:Zh,dd:17,desc:"Sukkot III (CH''M)",flags:qh|rl,chmDay:2,emoji:il},{mm:Zh,dd:18,desc:"Sukkot IV (CH''M)",flags:qh|rl,chmDay:3,emoji:il},{mm:Zh,dd:19,desc:"Sukkot V (CH''M)",flags:qh|rl,chmDay:4,emoji:il},{mm:Zh,dd:20,desc:"Sukkot VI (CH''M)",flags:qh|rl,chmDay:5,emoji:il},{mm:Zh,dd:22,desc:"Shmini Atzeret",flags:qh|Kh|Gh},{mm:Zh,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:Jh|rl,chmDay:-1,emoji:il},{mm:xh,dd:24,desc:"Chanukah: 1 Candle",flags:nl|tl|Qh,emoji:"🕎1️⃣"},{mm:zh,dd:15,desc:"Tu BiShvat",flags:tl,emoji:"🌳"},{mm:Vh,dd:13,desc:"Erev Purim",flags:nl|tl,emoji:"🎭️📜"},{mm:Vh,dd:14,desc:"Purim",flags:tl,emoji:"🎭️📜"},{mm:Vh,dd:15,desc:"Shushan Purim",flags:tl,emoji:"🎭️📜"},{mm:Rh,dd:14,desc:"Erev Pesach",flags:qh|nl|Jh,emoji:"🫓🍷"},{mm:Rh,dd:15,desc:"Pesach I",flags:qh|Kh|Gh,emoji:ol},{mm:Rh,dd:16,desc:"Pesach II (CH''M)",flags:qh|rl,chmDay:1,emoji:ol},{mm:Rh,dd:17,desc:"Pesach III (CH''M)",flags:qh|rl,chmDay:2,emoji:ol},{mm:Rh,dd:18,desc:"Pesach IV (CH''M)",flags:qh|rl,chmDay:3,emoji:ol},{mm:Rh,dd:19,desc:"Pesach V (CH''M)",flags:qh|rl,chmDay:4,emoji:ol},{mm:Rh,dd:20,desc:"Pesach VI (CH''M)",flags:qh|rl|Jh,chmDay:5,emoji:ol},{mm:Rh,dd:21,desc:"Pesach VII",flags:qh|Kh|Gh,emoji:ol},{mm:Rh,dd:14,desc:"Erev Pesach",flags:Wh|nl|Jh,emoji:"🫓🍷"},{mm:Rh,dd:15,desc:"Pesach I",flags:Wh|Kh|Xh,emoji:"🫓🍷"},{mm:Rh,dd:16,desc:"Pesach II",flags:Wh|Kh|Gh,emoji:ol},{mm:Rh,dd:17,desc:"Pesach III (CH''M)",flags:Wh|rl,chmDay:1,emoji:ol},{mm:Rh,dd:18,desc:"Pesach IV (CH''M)",flags:Wh|rl,chmDay:2,emoji:ol},{mm:Rh,dd:19,desc:"Pesach V (CH''M)",flags:Wh|rl,chmDay:3,emoji:ol},{mm:Rh,dd:20,desc:"Pesach VI (CH''M)",flags:Wh|rl|Jh,chmDay:4,emoji:ol},{mm:Rh,dd:21,desc:"Pesach VII",flags:Wh|Kh|Xh,emoji:ol},{mm:Rh,dd:22,desc:"Pesach VIII",flags:Wh|Kh|Gh,emoji:ol},{mm:Ph,dd:14,desc:"Pesach Sheni",flags:tl},{mm:Ph,dd:18,desc:"Lag BaOmer",flags:tl,emoji:"🔥"},{mm:_h,dd:5,desc:"Erev Shavuot",flags:nl|Jh,emoji:"⛰️🌸"},{mm:_h,dd:6,desc:"Shavuot",flags:qh|Kh|Gh,emoji:"⛰️🌸"},{mm:_h,dd:6,desc:"Shavuot I",flags:Wh|Kh|Xh,emoji:"⛰️🌸"},{mm:_h,dd:7,desc:"Shavuot II",flags:Wh|Kh|Gh,emoji:"⛰️🌸"},{mm:jh,dd:15,desc:"Tu B'Av",flags:tl,emoji:"❤️"},{mm:Bh,dd:1,desc:"Rosh Hashana LaBehemot",flags:tl,emoji:"🐑"},{mm:Bh,dd:29,desc:"Erev Rosh Hashana",flags:nl|Jh,emoji:"🍏🍯"}],sl=[{firstYear:5727,mm:Ph,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:xh,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:zh,dd:30,desc:"Family Day"},{firstYear:5758,mm:$h,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Ph,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Uh,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:$h,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Rh,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:$h,dd:7,desc:"Yom HaAliyah School Observance"}];class ul extends le{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&ce.IL_ONLY?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&ce.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}}const cl="Rosh Chodesh";class hl extends ul{constructor(e,t){super(e,`${cl} ${t}`,ce.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13);return l.gettext(cl,e)+" "+l.gettext(t,e)}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class ll extends ul{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const dl="Shabbat Mevarchim Chodesh";class ml extends le{constructor(e,t){super(e,`${dl} ${t}`,ce.SHABBAT_MEVARCHIM),this.monthName=t;const n=e.getFullYear(),r=e.getMonth(),o=r==ie.monthsInYear(n)?D.NISAN:r+1,i=new Ca(e,n,o);this.memo=i.render("en")}basename(){return this.getDesc()}render(e){return l.gettext(dl,e)+" "+l.gettext(this.monthName,e)}}class fl extends ul{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return l.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const gl="Yom Kippur Katan";class yl extends ul{constructor(e,t){super(e,`${gl} ${t}`,ce.MINOR_FAST|ce.YOM_KIPPUR_KATAN),this.nextMonthName=t,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${t}`}basename(){return this.getDesc()}render(e){return l.gettext(gl,e)+" "+l.gettext(this.nextMonthName,e)}renderBrief(e){return l.gettext(gl,e)}url(){}}const Sl=D.NISAN,wl=D.TAMUZ,pl=D.AV,vl=D.ELUL,bl=D.TISHREI,Ml=D.KISLEV,Il=D.TEVET,Tl=D.ADAR_I,Al=ce.CHAG,Dl=ce.LIGHT_CANDLES_TZEIS,El=ce.CHANUKAH_CANDLES,Cl=ce.MINOR_FAST,Nl=ce.SPECIAL_SHABBAT,Ol=ce.MODERN_HOLIDAY,kl=ce.MAJOR_FAST,Hl=ce.MINOR_HOLIDAY,Ll=ce.EREV;class Yl{has(e){return void 0!==this[e]}get(e){return this[e]}set(e,t){this[e]=t}keys(){return Object.keys(this)}}const Fl=new Yl;function Rl(e,t){const n=`${e}-${t?1:0}`;let r=Fl.get(n);return r||(r=new Ba(e,t),Fl.set(n,r)),r}const Pl={emoji:"🇮🇱"},_l=new Map,Ul=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function jl(e){if("number"!=typeof e)throw new TypeError(`bad Hebrew year: ${e}`);if(e<1||e>32658)throw new RangeError(`Hebrew year ${e} out of range 1-32658`);const t=_l.get(e);if(t)return t;const n=new ie(1,bl,e),r=new ie(15,Sl,e),o=new Yl;function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&ce.EREV?n.unshift(e):n.push(e):o.set(t,[e])}))}al.forEach((t=>{const n=new ie(t.dd,t.mm,e),r=new ul(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)})),i(new fl(n,e,Al|Dl)),i(new ul(new ie(3+(4==n.getDay()),bl,e),"Tzom Gedaliah",Cl)),i(new ul(new ie(ie.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",Nl));const a=ie.shortKislev(e)?new ie(1,Il,e):new ie(30,Ml,e);i(new ul(a,"Chag HaBanot",Hl));for(let t=2;t<=8;t++){const n=new ie(23+t,Ml,e);i(new ul(n,`Chanukah: ${t} Candles`,Hl|El,{chanukahDay:t-1,emoji:"🕎"+Ul[t]}))}i(new ul(new ie(32,Ml,e),"Chanukah: 8th Day",Hl,{chanukahDay:8,emoji:"🕎"})),i(new ll(new ie(10,Il,e),"Asara B'Tevet",Cl));const s=r.abs();i(new ul(new ie(ie.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",Nl),new ul(new ie(ie.dayOnOrBefore(6,s-30)),"Shabbat Zachor",Nl),new ul(new ie(s-(2==r.getDay()?33:31)),"Ta'anit Esther",Cl)),i(new ul(new ie(ie.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",Nl),new ul(new ie(ie.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",Nl),new ul(new ie(ie.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",Nl),new ul(6==r.prev().getDay()?r.onOrBefore(4):new ie(14,Sl,e),"Ta'anit Bechorot",Cl)),i(new ul(new ie(ie.dayOnOrBefore(6,new ie(1,bl,e+1).abs()-4)),"Leil Selichot",Hl,{emoji:"🕍"})),0==r.getDay()&&i(new ul(new ie(16,D.ADAR_II,e),"Purim Meshulash",Hl)),ie.isLeapYear(e)&&(i(new ul(new ie(14,Tl,e),"Purim Katan",Hl,{emoji:"🎭️"})),i(new ul(new ie(15,Tl,e),"Shushan Purim Katan",Hl,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new ie(27,Lh,e);return t.getDay()===kh?t=new ie(26,Lh,e):t.getDay()===Nh&&(t=new ie(28,Lh,e)),t}(e);u&&i(new ul(u,"Yom HaShoah",Ol));const c=Fh(e);c&&i(new ul(c,"Yom HaZikaron",Ol,Pl),new ul(c.next(),"Yom HaAtzma'ut",Ol,Pl)),sl.forEach((t=>{if(e>=t.firstYear){let n=new ie(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ie(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Ol:Ol|ce.IL_ONLY,a=new ul(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}}));let h,l=new ie(17,wl,e);6==l.getDay()&&(l=new ie(18,wl,e),h={observed:!0}),i(new ul(l,"Tzom Tammuz",Cl,h));let d,m=new ie(9,pl,e),f="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},f+=" (observed)");const g=m.abs();i(new ul(new ie(ie.dayOnOrBefore(6,g)),"Shabbat Chazon",Nl),new ul(m.prev(),"Erev Tish'a B'Av",Ll|kl,d),new ul(m,f,kl,d),new ul(new ie(ie.dayOnOrBefore(6,g+7)),"Shabbat Nachamu",Nl));const y=ie.monthsInYear(e);for(let t=1;t<=y;t++){const n=ie.getMonthName(t,e);if(30==(t==Sl?ie.daysInMonth(ie.monthsInYear(e-1),e-1):ie.daysInMonth(t-1,e))?(i(new hl(new ie(1,t,e),n)),i(new hl(new ie(30,t-1,e),n))):t!==bl&&i(new hl(new ie(1,t,e),n)),t==vl)continue;const r=ie.getMonthName(t+1,e);i(new ml(new ie(29,t,e).onOrBefore(6),r))}for(let t=D.IYYAR;t<=y;t++){const n=t+1;if(n===D.TISHREI||n===D.CHESHVAN||n===D.TEVET)continue;let r=new ie(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const a=ie.getMonthName(n,e);i(new yl(r,a))}const S=Rl(e,!1).find(15);i(new ul(S,"Shabbat Shirah",Nl));const w=function(e){const t=ie.isLeapYear(e),n=t?D.ADAR_II:Sl,r=t?20:1,o=ie.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(w){const e=new ie(w);i(new ul(e,"Birkat Hachamah",Hl,{emoji:"☀️"}))}return _l.set(e,o),o}const Bl=new Map;class Zl{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Bl.set(e,t)}static lookup(e,t){const n=Bl.get(e);return"function"==typeof n?n(t):null}}const $l="5.0.0-rc6";var xl={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}};l.addLocale("ashkenazi",xl),l.addLocale("a",xl);var zl={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["אחרי השקיעה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};l.addLocale("he",zl),l.addLocale("h",zl);const Vl=zl.contexts[""],Kl={};Object.keys(Vl).forEach((e=>{Kl[e]=[l.hebrewStripNikkud(Vl[e][0])]}));const Jl={headers:zl.headers,contexts:{"":Kl}};l.addLocale("he-x-NoNikud",Jl);var Gl={},Wl={},ql={}.propertyIsEnumerable,Xl=Object.getOwnPropertyDescriptor,Ql=Xl&&!ql.call({1:2},1);Wl.f=Ql?function(e){var t=Xl(this,e);return!!t&&t.enumerable}:ql;var ed=Ss,td=ed({}.toString),nd=ed("".slice),rd=cs,od=function(e){return nd(td(e),8,-1)},id=Object,ad=Ss("".split),sd=rd((function(){return!id("z").propertyIsEnumerable(0)}))?function(e){return"String"===od(e)?ad(e,""):id(e)}:id,ud=sd,cd=As,hd=function(e){return ud(cd(e))},ld=hs,dd=gu,md=Wl,fd=Lc,gd=hd,yd=wc,Sd=Os,wd=su,pd=Object.getOwnPropertyDescriptor;Gl.f=ld?pd:function(e,t){if(e=gd(e),t=yd(t),wd)try{return pd(e,t)}catch(e){}if(Sd(e,t))return fd(!dd(md.f,e,t),e[t])};var vd=bs,bd=tu,Md=wh,Id=Us,Td={},Ad=Math.ceil,Dd=Math.floor,Ed=Math.trunc||function(e){var t=+e;return(t>0?Dd:Ad)(t)},Cd=Ed,Nd=function(e){var t=+e;return t!=t||0===t?0:Cd(t)},Od=Nd,kd=Math.max,Hd=Math.min,Ld=Nd,Yd=Math.min,Fd=function(e){return e>0?Yd(Ld(e),9007199254740991):0},Rd=hd,Pd=function(e,t){var n=Od(e);return n<0?kd(n+t,0):Hd(n,t)},_d=function(e){return Fd(e.length)},Ud=function(e){return function(t,n,r){var o,i=Rd(t),a=_d(i),s=Pd(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},jd={includes:Ud(!0),indexOf:Ud(!1)},Bd=Os,Zd=hd,$d=jd.indexOf,xd=jc,zd=Ss([].push),Vd=function(e,t){var n,r=Zd(e),o=0,i=[];for(n in r)!Bd(xd,n)&&Bd(r,n)&&zd(i,n);for(;t.length>o;)Bd(r,n=t[o++])&&(~$d(i,n)||zd(i,n));return i},Kd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jd=Vd,Gd=Kd.concat("length","prototype");Td.f=Object.getOwnPropertyNames||function(e){return Jd(e,Gd)};var Wd={};Wd.f=Object.getOwnPropertySymbols;var qd=wu,Xd=Td,Qd=Wd,em=du,tm=Ss([].concat),nm=qd("Reflect","ownKeys")||function(e){var t=Xd.f(em(e)),n=Qd.f;return n?tm(t,n(e)):t},rm=Os,om=nm,im=Gl,am=tu,sm=cs,um=bs,cm=/#|\.prototype\./,hm=function(e,t){var n=dm[lm(e)];return n===fm||n!==mm&&(um(t)?sm(t):!!t)},lm=hm.normalize=function(e){return String(e).replace(cm,".").toLowerCase()},dm=hm.data={},mm=hm.NATIVE="N",fm=hm.POLYFILL="P",gm=hm,ym=us,Sm=Gl.f,wm=Rc,pm=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(vd(n)&&Md(n,i,r),r.global)o?e[t]=n:Id(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:bd.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},vm=Us,bm=function(e,t,n){for(var r=om(t),o=am.f,i=im.f,a=0;a<r.length;a++){var s=r[a];rm(e,s)||n&&rm(n,s)||o(e,s,i(t,s))}},Mm=gm,Im={},Tm=Vd,Am=Kd,Dm=Object.keys||function(e){return Tm(e,Am)},Em=hs,Cm=uu,Nm=tu,Om=du,km=hd,Hm=Dm;Im.f=Em&&!Cm?Object.defineProperties:function(e,t){Om(e);for(var n,r=km(t),o=Hm(t),i=o.length,a=0;i>a;)Nm.f(e,n=o[a++],r[n]);return e};var Lm,Ym=wu("document","documentElement"),Fm=du,Rm=Im,Pm=Kd,_m=jc,Um=Ym,jm=iu,Bm="prototype",Zm="script",$m=Uc("IE_PROTO"),xm=function(){},zm=function(e){return"<"+Zm+">"+e+"</"+Zm+">"},Vm=function(e){e.write(zm("")),e.close();var t=e.parentWindow.Object;return e=null,t},Km=function(){try{Lm=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Km="undefined"!=typeof document?document.domain&&Lm?Vm(Lm):(t=jm("iframe"),n="java"+Zm+":",t.style.display="none",Um.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(zm("document.F=Object")),e.close(),e.F):Vm(Lm);for(var r=Pm.length;r--;)delete Km[Bm][Pm[r]];return Km()};_m[$m]=!0;var Jm=Object.create||function(e,t){var n;return null!==e?(xm[Bm]=Fm(e),n=new xm,xm[Bm]=null,n[$m]=e):n=Km(),void 0===t?n:Rm.f(n,t)},Gm=uc,Wm=Jm,qm=tu.f,Xm=Gm("unscopables"),Qm=Array.prototype;void 0===Qm[Xm]&&qm(Qm,Xm,{configurable:!0,value:Wm(null)});var ef=jd.includes,tf=function(e){Qm[Xm][e]=!0};(function(e,t){var n,r,o,i,a,s=e.target,u=e.global,c=e.stat;if(n=u?ym:c?ym[s]||vm(s,{}):(ym[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Sm(n,r))&&a.value:n[r],!Mm(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;bm(i,o)}(e.sham||o&&o.sham)&&wm(i,"sham",!0),pm(n,r,i,e)}})({target:"Array",proto:!0,forced:cs((function(){return!Array(1).includes()}))},{includes:function(e){return ef(this,e,arguments.length>1?arguments[1]:void 0)}}),tf("includes");function nf(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const rf=new Map,of={shacharit:!1,mincha:!1,allCongs:!1};function af(e,t){return sf(e,t,!0)}function sf(e,t,n){const r=e.getFullYear(),o=`${r}-${t?1:0}`,i=rf.get(o),a=i||function(e,t){const n=ie.isLeapYear(e),r=12+n;let o=new ie(9,D.AV,e);6===o.getDay()&&(o=o.next());let i=new ie(15,D.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[].concat(nf(1,r).map((t=>new ie(1,t,e))),nf(1,r).filter((t=>30===ie.daysInMonth(t,e))).map((t=>new ie(30,t,e))),new ie(2,D.TISHREI,e),nf(1,ie.daysInMonth(D.NISAN,e)).map((t=>new ie(t,D.NISAN,e))),new ie(18,D.IYYAR,e),nf(1,8-(t?1:0)).map((t=>new ie(t,D.SIVAN,e))),o,new ie(15,D.AV,e),new ie(29,D.ELUL,e),nf(9,24-(t?1:0)).map((t=>new ie(t,D.TISHREI,e))),nf(25,33).map((t=>new ie(t,D.KISLEV,e))),new ie(15,D.SHVAT,e),new ie(14,D.ADAR_II,e),i,n?new ie(14,D.ADAR_I,e):[]),s=[].concat(nf(1,13).map((t=>new ie(t,D.SIVAN,e))),nf(20,31).map((t=>new ie(t,D.TISHREI,e))),new ie(14,D.IYYAR,e),e>=5708?Fh(e).next():[],e>=5727?new ie(28,D.IYYAR,e):[]),u=[].concat(new ie(29,D.ELUL,e-1),new ie(9,D.TISHREI,e),new ie(14,D.IYYAR,e));return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(r,t);i||rf.set(o,a);const s=e.abs();if(a.none.indexOf(s)>-1)return of;const u=e.getDay(),c={shacharit:!1,mincha:!1,allCongs:!1};-1===a.some.indexOf(s)&&(c.allCongs=!0),6!==u&&(c.shacharit=!0);const h=s+1;if(n&&-1===a.yesPrev.indexOf(h)){const e=sf(new ie(h),t,!1);c.mincha=e.shacharit}else c.mincha=5!==u;return!c.allCongs||c.mincha||c.shacharit?c:of}const uf=D.NISAN,cf=D.SIVAN,hf=D.ELUL,lf=D.TISHREI,df=ce.LIGHT_CANDLES,mf=ce.YOM_TOV_ENDS,ff=ce.CHUL_ONLY,gf=ce.IL_ONLY,yf=ce.LIGHT_CANDLES_TZEIS,Sf=ce.CHANUKAH_CANDLES,wf=ce.MINOR_FAST,pf=ce.SPECIAL_SHABBAT,vf=ce.MODERN_HOLIDAY,bf=ce.MAJOR_FAST,Mf=ce.ROSH_CHODESH,If=ce.PARSHA_HASHAVUA,Tf=ce.DAF_YOMI,Af=ce.MISHNA_YOMI,Df=ce.NACH_YOMI,Ef=ce.YERUSHALMI_YOMI,Cf=ce.OMER_COUNT,Nf=ce.SHABBAT_MEVARCHIM,Of=ce.MINOR_HOLIDAY,kf=ce.EREV,Hf=ce.CHOL_HAMOED,Lf=ce.YOM_KIPPUR_KATAN,Yf=new Set,Ff={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const Rf={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Pf={281184:40,294801:30,293067:30};function _f(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(ie.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function Uf(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&Mf&&delete e.noRoshChodesh;t&vf&&delete e.noModern;t&wf&&delete e.noMinorFast;t&pf&&delete e.noSpecialShabbat;t&If&&(e.sedrot=!0);t&(Tf|Af|Df|Ef)&&(e.dailyLearning=e.dailyLearning||{},t&Tf&&(e.dailyLearning.dafYomi=!0),t&Af&&(e.dailyLearning.mishnaYomi=!0),t&Df&&(e.dailyLearning.nachYomi=!0),t&Ef&&(e.dailyLearning.yerushalmi=1));t&Cf&&(e.omer=!0);t&Nf&&(e.shabbatMevarchim=!0);t&Lf&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=Mf|mf|wf|pf|vf|bf|Of|kf|Hf|df|yf|Sf),e.candlelighting&&(r|=df|yf|mf),e.noRoshChodesh&&(r&=~Mf),e.noModern&&(r&=~vf),e.noMinorFast&&(r&=~wf),e.noSpecialShabbat&&(r&=~pf,r&=~Nf),r|=n?gf:ff,e.sedrot&&(r|=If),e.omer&&(r|=Cf),e.shabbatMevarchim&&(r|=Nf),e.yomKippurKatan&&(r|=Lf),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Tf),t.mishnaYomi&&(r|=Af),t.nachYomi&&(r|=Df),t.yerushalmi&&(r|=Ef)}return r}const jf=df|yf|Sf|mf,Bf=new ha(0,0,!1,"UTC"),Zf={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function $f(e){return e.observedInIsrael()}function xf(e){return e.observedInDiaspora()}const zf=new Map;class Vf{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n,r;n={},r=t,Object.keys(r).forEach((e=>n[e]=r[e])),t=n,function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof ha))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=Pf[e];"number"==typeof r&&(n=r);const o=Rf[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const o=t.location=t.location||Bf,i=t.il=t.il||o.il||!1;if(t.mask=Uf(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!l.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else l.useLocale("en");const a=[];let s,u,c,h,d=-1;const m=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[_f(t.start),_f(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new ie).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?ie.monthNum(t.month):t.month);const i=parseInt(t.numYears,10)||1;if(n){const e=new ie(1,o||lf,r);let n=e.abs();const a=t.month?n+e.daysInMonth():new ie(1,lf,r+i).abs()-1;return!o&&r>1&&n--,[n,a]}{const n=t.month?o-1:0,a=new Date(r,n,1);r<100&&a.setFullYear(r);const s=e.greg.greg2abs(a);let u;if(t.month)u=s+e.greg.daysInMonth(o,r)-1;else{const t=r+i,n=new Date(t,0,1);t<100&&n.setFullYear(t),u=e.greg.greg2abs(n)-1}return[s,u]}}(t);!function(e){Object.keys(e).forEach((e=>{void 0!==Ff[e]||Yf.has(e)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${e}`),Yf.add(e))}))}(t);const f=m[0],g=m[1];e.greg.abs2greg(f).getFullYear()<100&&(t.candlelighting=!1);for(let e=f;e<=g;e++){const n=new ie(e),r=n.getFullYear();r!=d&&(d=r,u=jl(d),t.sedrot&&(s=Rl(d,i)),t.omer&&(c=ie.hebrew2abs(d,uf,16),h=ie.hebrew2abs(d,cf,5)));const l=a.length,m=n.getDay();let f;if((u.get(n.toString())||[]).forEach((e=>{f=Kf(a,e,t,f,m)})),t.sedrot&&6===m){const t=s.lookup(e);t.chag||a.push(new is(n,t.parsha,i,t.num))}const g=t.dailyLearning;if("object"==typeof g&&Object.keys(g).forEach((e=>{const t=g[e];if(t){const r="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,o=Zl.lookup(r,n);o&&a.push(o)}})),t.omer&&e>=c&&e<=h){const r=new ka(n,e-c+1);if(t.candlelighting){const e=new Sa(o,n.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}a.push(r)}const y=n.getMonth();if(t.molad&&6==m&&y!=hf&&n.getDate()>=23&&n.getDate()<=29){const e=y==ie.monthsInYear(r)?uf:y+1;a.push(new Ca(n,r,e))}if(f||!t.candlelighting||5!=m&&6!=m||(f=pa(void 0,n,m,o,t),5===m&&f&&s&&(f.memo=s.getString(e))),f instanceof ba&&(0===t.havdalahMins||0===t.havdalahDeg)&&(f=null),f&&a.push(f),t.addHebrewDates||t.addHebrewDatesForEvents&&l!=a.length){const e=new de(n);l==a.length?a.push(e):a.splice(l,0,e)}}return a}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=q(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=R(r);let i=n.mm,a=n.dd;return i==G&&!o||i==W&&o?i=P(e):i!=z||30!=a||Z(e)?i==V&&30==a&&$(e)?(i=K,a=1):i==G&&30==a&&o&&!R(e)&&(i=x,a=1):(i=V,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new ie(n)}static getYahrzeit(e,t){const n=function(e,t){let n=q(t);if(!(e<=n.yy))return n.mm!=z||30!=n.dd||Z(n.yy+1)?n.mm==V&&30==n.dd&&$(n.yy+1)?n=F(L(e,K,1)-1):n.mm==W?n.mm=P(e):n.mm!=G||30!=n.dd||R(e)||(n.dd=30,n.mm=J):n=F(L(e,V,1)-1),n.mm!=z||30!=n.dd||Z(e)?n.mm==V&&30==n.dd&&$(e)&&(n.mm=K,n.dd=1):(n.mm=V,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new ie(n)}static getHolidaysForYear(e){return jl(e)}static getHolidaysForYearArray(e,t){const n=`${e}-${t?1:0}`;let r=zf.get(n);if(r)return r;const o=jl(e),i=ie.hebrew2abs(e,lf,1),a=ie.hebrew2abs(e+1,lf,1)-1;r=[];const s=t?$f:xf;for(let e=i;e<=a;e++){const t=new ie(e),n=o.get(t.toString());if(n){const e=n.filter(s);r=r.concat(e)}}return zf.set(n,r),r}static getHolidaysOnDate(e,t){const n=ie.isHDate(e)?e:new ie(e),r=jl(n.getFullYear()).get(n.toString());if(void 0===t||void 0===r)return r;const o=t?$f:xf;return r.filter(o)}static reformatTimeStr(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=n.location)||void 0===r?void 0:r.cc)||(n.il?"IL":"US");if(void 0!==n.hour12&&!n.hour12)return e;if(!n.hour12&&void 0===Zf[o])return e;const i=e.split(":");let a=parseInt(i[0],10);return a<12&&t?(t=t.replace("p","a").replace("P","A"),0===a&&(a=12)):a>12?a%=12:0===a&&(a="00"),`${a}:${i[1]}${t}`}static version(){return $l}static getSedra(e,t){return Rl(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===D.NISAN&&(15===o||16===o)&&e.getFlags()&ce.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&ce.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Vf.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return af(e,t)}}function Kf(e,t,n,r,o){const i=n.il;if(!t.observedIn(i))return r;const a=t.getFlags();if(!n.yomKippurKatan&&a&Lf||n.noModern&&a&vf)return r;const s=n.location,u=Boolean(a&bf),c=Boolean(a&wf);if(n.candlelighting&&(u||c)&&(t=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=new Sa(i,o,t.useElevation);if("Erev Tish'a B'Av"===n){const t=s.sunset();e.startEvent=Ia(r,t,"Fast begins",e,i)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Ia(r,s.tzeit(a),"Fast ends",e,i);else{const t=s.alotHaShachar();e.startEvent=Ia(r,t,"Fast begins",e,i),5===o.getDay()||14===r.getDate()&&r.getMonth()===D.NISAN||(e.endEvent=Ia(r,s.tzeit(a),"Fast ends",e,i))}return e}(t,n),t.startEvent&&(u||c&&!n.noMinorFast)&&e.push(t.startEvent)),a&n.mask||!a&&!n.userMask){if(n.candlelighting&&a&jf){const e=t.getDate();if(r=pa(t,e,o,s,n),a&Sf&&r&&!n.noHolidays){const i=5===o||6===o?r:function(e,t,n){const r=n.location,o=new Sa(r,t.greg(),n.useElevation);return Ia(t,o.dusk(),e.getDesc(),e,r)}(t,e,n),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:s};t.chanukahDay&&(u.chanukahDay=t.chanukahDay),t.emoji&&(u.emoji=t.emoji),t=new ul(t.getDate(),t.getDesc(),a,u),r=void 0}}(!n.noHolidays||n.yomKippurKatan&&a&Lf)&&e.push(t)}return t.endEvent&&(u||c&&!n.noMinorFast)&&e.push(t.endEvent),r}return e.AsaraBTevetEvent=ll,e.CandleLightingEvent=Ma,e.DailyLearning=Zl,e.Event=le,e.GeoLocation=oa,e.HDate=ie,e.HavdalahEvent=ba,e.HebrewCalendar=Vf,e.HebrewDateEvent=de,e.HolidayEvent=ul,e.Locale=l,e.Location=ha,e.MevarchimChodeshEvent=ml,e.Molad=Ea,e.MoladEvent=Ca,e.NOAACalculator=aa,e.OmerEvent=ka,e.ParshaEvent=is,e.RoshChodeshEvent=hl,e.RoshHashanaEvent=fl,e.Sedra=Ba,e.TimedEvent=va,e.Zmanim=Sa,e.flags=ce,e.gematriya=o,e.gematriyaStrToNum=i,e.months=D,e.parshiot=Za,e.version=$l,e}({});
|