@hebcal/core 5.3.9 → 5.3.11
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/README.md +132 -16
- package/dist/bundle.js +254 -162
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +254 -162
- package/dist/index.mjs +254 -162
- package/hebcal.d.ts +132 -0
- package/package.json +1 -1
- package/po/he.po +3 -0
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
2
|
-
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(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=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={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},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],S=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],p=new Map,w=-1373428,v=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function A(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=O(t,e);for(let n=a;n<t;n++)r+=O(n,e)}else for(let n=u;n<t;n++)r+=O(n,e);return w+C(e)+r-1}function I(e){return w+C(e)}function M(e){if(b(e,"abs"),(e=Math.trunc(e))<=w)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-w)/v);for(;I(t)<=e;)++t;--t;let n=e<A(t,1,1)?7:1;for(;e>A(t,n,O(n,t));)++n;return{yy:t,mm:n,dd:1+e-A(t,n,1)}}function T(e){return(1+7*e)%19<7}function E(e){return+T(e)+12}function O(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!T(t)||e===h&&!H(t)||e===l&&k(t)?29:30}function D(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return S[+T(t)][e]}function C(e){const t=p.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),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!T(e)||1==i%7&&a>=16789&&T(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return p.set(e,n),n}function N(e){return C(e+1)-C(e)}function H(e){return N(e)%10==5}function k(e){return N(e)%10==3}const L=m.NISAN,R=m.CHESHVAN,_=m.KISLEV,Y=m.TEVET,P=m.SHVAT,j=m.ADAR_I,F=m.ADAR_II;function B(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 M(t);if(e.greg.isDate(t)){return M(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const U={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},x=new Map,$=new Map;for(const[e,t]of Object.entries(U))x.set(e,t),$.set(t,e);function Z(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 V(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=Z(r);for(const t of e)n+=$.get(t);n+="׳"}const o=Z(t%1e3);if(1===o.length)return n+$.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=$.get(o[e]);return n}function z(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*z(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=x.get(n);"number"==typeof e&&(t+=e)}return t}const K={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function J(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function G(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return J(e),"en"===t?function(e){const[t,n]=G(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ae:12===e?r+="שְׁנֵים "+ae:12<e&&e<20?r+=X[n]+" "+ae:e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1],ae="עָשָׂר";const ie={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},se={h:"he",a:"ashkenazi",s:"en","":"en"},ce=new Map;let ue=null,he=null;class le{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&ce.get(n)||ue)[e];if(null!=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`);ce.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=ce.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){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]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=ce.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.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=ce.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return he=se[t]||t,ue=n,ue}static getLocaleName(){return he}static getLocaleNames(){return Array.from(ce.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||he;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,"")}}function fe(e){throw new TypeError(e)}le.addLocale("en",ie),le.addLocale("s",ie),le.addLocale("",ie),le.useLocale("en");const de="day",ge="week",me="month",ye="year",Se={d:de,w:ge,M:me,y:ye},pe={day:de,week:ge,month:me,year:ye};class we{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:fe(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?M(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return T(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return O(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=we.monthNum(e),ve(this),this}setDate(e){return this.dd=e,ve(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=A(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return A(e,t,n)}getMonthName(){return D(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)||le.getLocaleName(),n=this.getDate(),r=le.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${le.ordinal(n,t)}${we.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=le.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=le.gettext(this.getMonthName(),n),o=this.getFullYear();return V(t)+" "+r+" "+V(o)}before(e){return Ae(e,this,-1)}onOrBefore(e){return Ae(e,this,0)}nearest(e){return Ae(e,this,3)}onOrAfter(e){return Ae(e,this,6)}after(e){return Ae(e,this,7)}next(){return new we(this.abs()+1)}prev(){return new we(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new we(this);if(t=we.standardizeUnits(t),t===de)return new we(this.abs()+e);if(t===ge)return new we(this.abs()+7*e);if(t===ye)return new we(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===me){let t=new we(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new we(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=Se[e]||String(e||"").toLowerCase().replace(/s$/,"");return pe[t]||fe(`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(!we.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!we.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 T(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return O(e,t)}static getMonthName(e,t){return D(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):we.monthFromName(e)}static daysInYear(e){return N(e)}static longCheshvan(e){return H(e)}static shortKislev(e){return k(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 m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(le.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(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=z(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=we.monthFromName(a);let s=z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new we(o,i,s)}}function ve(e){be(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=O(e.mm,e.yy),e.mm-=1,ve(e));e.dd>O(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=O(e.mm,e.yy),e.mm===E(e.yy)?e.mm=1:e.mm+=1,ve(e));be(e)}(e)}function be(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,ve(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,ve(e)):(e.mm-=1,ve(e)),delete e.rd}function Ae(e,t,n){return new we(we.dayOnOrBefore(e,t.abs()+n))}const Ie={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,DAILY_LEARNING:67108864},Me=[[Ie.MAJOR_FAST,"holiday","major","fast"],[Ie.CHANUKAH_CANDLES,"holiday","major"],[Ie.HEBREW_DATE,"hebdate"],[Ie.MINOR_FAST,"holiday","fast"],[Ie.MINOR_HOLIDAY,"holiday","minor"],[Ie.MODERN_HOLIDAY,"holiday","modern"],[Ie.MOLAD,"molad"],[Ie.OMER_COUNT,"omer"],[Ie.PARSHA_HASHAVUA,"parashat"],[Ie.ROSH_CHODESH,"roshchodesh"],[Ie.SHABBAT_MEVARCHIM,"mevarchim"],[Ie.SPECIAL_SHABBAT,"holiday","shabbat"],[Ie.USER_EVENT,"user"]];class Te{constructor(e,t,n,r){if(!we.isHDate(e))throw new TypeError(`Invalid Event date: ${e}`);if("string"!=typeof t)throw new TypeError(`Invalid Event description: ${t}`);this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return le.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Ie.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Ie.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of Me)if(e&t[0])return t.slice(1);return["unknown"]}}class Ee extends Te{constructor(e){super(e,e.toString(),Ie.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=le.gettext(t.getMonthName(),e);return V(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var Oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},De=function(e){return e&&e.Math===Math&&e},Ce=De("object"==typeof globalThis&&globalThis)||De("object"==typeof window&&window)||De("object"==typeof self&&self)||De("object"==typeof Oe&&Oe)||De("object"==typeof Oe&&Oe)||function(){return this}()||Function("return this")(),Ne={},He=function(e){try{return!!e()}catch(e){return!0}},ke=!He((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Le=!He((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Re=Le,_e=Function.prototype.call,Ye=Re?_e.bind(_e):function(){return _e.apply(_e,arguments)},Pe={},je={}.propertyIsEnumerable,Fe=Object.getOwnPropertyDescriptor,Be=Fe&&!je.call({1:2},1);Pe.f=Be?function(e){var t=Fe(this,e);return!!t&&t.enumerable}:je;var Ue,xe,$e=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ze=Le,Ve=Function.prototype,ze=Ve.call,Ke=Ze&&Ve.bind.bind(ze,ze),Je=Ze?Ke:function(e){return function(){return ze.apply(e,arguments)}},Ge=Je,We=Ge({}.toString),qe=Ge("".slice),Xe=He,Qe=function(e){return qe(We(e),8,-1)},et=Object,tt=Je("".split),nt=Xe((function(){return!et("z").propertyIsEnumerable(0)}))?function(e){return"String"===Qe(e)?tt(e,""):et(e)}:et,rt=function(e){return null==e},ot=rt,at=TypeError,it=function(e){if(ot(e))throw new at("Can't call method on "+e);return e},st=nt,ct=it,ut=function(e){return st(ct(e))},ht="object"==typeof document&&document.all,lt=void 0===ht&&void 0!==ht?function(e){return"function"==typeof e||e===ht}:function(e){return"function"==typeof e},ft=lt,dt=function(e){return"object"==typeof e?null!==e:ft(e)},gt=Ce,mt=lt,yt=function(e,t){return arguments.length<2?(n=gt[e],mt(n)?n:void 0):gt[e]&>[e][t];var n},St=Je({}.isPrototypeOf),pt=Ce,wt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",vt=pt.process,bt=pt.Deno,At=vt&&vt.versions||bt&&bt.version,It=At&&At.v8;It&&(xe=(Ue=It.split("."))[0]>0&&Ue[0]<4?1:+(Ue[0]+Ue[1])),!xe&&wt&&(!(Ue=wt.match(/Edge\/(\d+)/))||Ue[1]>=74)&&(Ue=wt.match(/Chrome\/(\d+)/))&&(xe=+Ue[1]);var Mt=xe,Tt=He,Et=Ce.String,Ot=!!Object.getOwnPropertySymbols&&!Tt((function(){var e=Symbol("symbol detection");return!Et(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mt&&Mt<41})),Dt=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=yt,Nt=lt,Ht=St,kt=Object,Lt=Dt?function(e){return"symbol"==typeof e}:function(e){var t=Ct("Symbol");return Nt(t)&&Ht(t.prototype,kt(e))},Rt=String,_t=lt,Yt=function(e){try{return Rt(e)}catch(e){return"Object"}},Pt=TypeError,jt=function(e){if(_t(e))return e;throw new Pt(Yt(e)+" is not a function")},Ft=rt,Bt=Ye,Ut=lt,xt=dt,$t=TypeError,Zt={exports:{}},Vt=Ce,zt=Object.defineProperty,Kt=function(e,t){try{zt(Vt,e,{value:t,configurable:!0,writable:!0})}catch(n){Vt[e]=t}return t},Jt=Ce,Gt=Kt,Wt="__core-js_shared__",qt=Zt.exports=Jt[Wt]||Gt(Wt,{});(qt.versions||(qt.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=Zt.exports,Qt=Xt,en=function(e,t){return Qt[e]||(Qt[e]=t||{})},tn=it,nn=Object,rn=function(e){return nn(tn(e))},on=Je({}.hasOwnProperty),an=Object.hasOwn||function(e,t){return on(rn(e),t)},sn=Je,cn=0,un=Math.random(),hn=sn(1..toString),ln=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hn(++cn+un,36)},fn=en,dn=an,gn=ln,mn=Ot,yn=Dt,Sn=Ce.Symbol,pn=fn("wks"),wn=yn?Sn.for||Sn:Sn&&Sn.withoutSetter||gn,vn=function(e){return dn(pn,e)||(pn[e]=mn&&dn(Sn,e)?Sn[e]:wn("Symbol."+e)),pn[e]},bn=Ye,An=dt,In=Lt,Mn=function(e,t){var n=e[t];return Ft(n)?void 0:jt(n)},Tn=function(e,t){var n,r;if("string"===t&&Ut(n=e.toString)&&!xt(r=Bt(n,e)))return r;if(Ut(n=e.valueOf)&&!xt(r=Bt(n,e)))return r;if("string"!==t&&Ut(n=e.toString)&&!xt(r=Bt(n,e)))return r;throw new $t("Can't convert object to primitive value")},En=TypeError,On=vn("toPrimitive"),Dn=function(e,t){if(!An(e)||In(e))return e;var n,r=Mn(e,On);if(r){if(void 0===t&&(t="default"),n=bn(r,e,t),!An(n)||In(n))return n;throw new En("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Cn=Lt,Nn=function(e){var t=Dn(e,"string");return Cn(t)?t:t+""},Hn=dt,kn=Ce.document,Ln=Hn(kn)&&Hn(kn.createElement),Rn=function(e){return Ln?kn.createElement(e):{}},_n=Rn,Yn=!ke&&!He((function(){return 7!==Object.defineProperty(_n("div"),"a",{get:function(){return 7}}).a})),Pn=ke,jn=Ye,Fn=Pe,Bn=$e,Un=ut,xn=Nn,$n=an,Zn=Yn,Vn=Object.getOwnPropertyDescriptor;Ne.f=Pn?Vn:function(e,t){if(e=Un(e),t=xn(t),Zn)try{return Vn(e,t)}catch(e){}if($n(e,t))return Bn(!jn(Fn.f,e,t),e[t])};var zn={},Kn=ke&&He((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jn=dt,Gn=String,Wn=TypeError,qn=function(e){if(Jn(e))return e;throw new Wn(Gn(e)+" is not an object")},Xn=ke,Qn=Yn,er=Kn,tr=qn,nr=Nn,rr=TypeError,or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ir="enumerable",sr="configurable",cr="writable";zn.f=Xn?er?function(e,t,n){if(tr(e),t=nr(t),tr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&cr in n&&!n[cr]){var r=ar(e,t);r&&r[cr]&&(e[t]=n.value,n={configurable:sr in n?n[sr]:r[sr],enumerable:ir in n?n[ir]:r[ir],writable:!1})}return or(e,t,n)}:or:function(e,t,n){if(tr(e),t=nr(t),tr(n),Qn)try{return or(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new rr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ur=zn,hr=$e,lr=ke?function(e,t,n){return ur.f(e,t,hr(1,n))}:function(e,t,n){return e[t]=n,e},fr={exports:{}},dr=ke,gr=an,mr=Function.prototype,yr=dr&&Object.getOwnPropertyDescriptor,Sr=gr(mr,"name"),pr={EXISTS:Sr,PROPER:Sr&&"something"===function(){}.name,CONFIGURABLE:Sr&&(!dr||dr&&yr(mr,"name").configurable)},wr=lt,vr=Xt,br=Je(Function.toString);wr(vr.inspectSource)||(vr.inspectSource=function(e){return br(e)});var Ar,Ir,Mr,Tr=vr.inspectSource,Er=lt,Or=Ce.WeakMap,Dr=Er(Or)&&/native code/.test(String(Or)),Cr=ln,Nr=en("keys"),Hr=function(e){return Nr[e]||(Nr[e]=Cr(e))},kr={},Lr=Dr,Rr=Ce,_r=dt,Yr=lr,Pr=an,jr=Xt,Fr=Hr,Br=kr,Ur="Object already initialized",xr=Rr.TypeError,$r=Rr.WeakMap;if(Lr||jr.state){var Zr=jr.state||(jr.state=new $r);Zr.get=Zr.get,Zr.has=Zr.has,Zr.set=Zr.set,Ar=function(e,t){if(Zr.has(e))throw new xr(Ur);return t.facade=e,Zr.set(e,t),t},Ir=function(e){return Zr.get(e)||{}},Mr=function(e){return Zr.has(e)}}else{var Vr=Fr("state");Br[Vr]=!0,Ar=function(e,t){if(Pr(e,Vr))throw new xr(Ur);return t.facade=e,Yr(e,Vr,t),t},Ir=function(e){return Pr(e,Vr)?e[Vr]:{}},Mr=function(e){return Pr(e,Vr)}}var zr={set:Ar,get:Ir,has:Mr,enforce:function(e){return Mr(e)?Ir(e):Ar(e,{})},getterFor:function(e){return function(t){var n;if(!_r(t)||(n=Ir(t)).type!==e)throw new xr("Incompatible receiver, "+e+" required");return n}}},Kr=Je,Jr=He,Gr=lt,Wr=an,qr=ke,Xr=pr.CONFIGURABLE,Qr=Tr,eo=zr.enforce,to=zr.get,no=String,ro=Object.defineProperty,oo=Kr("".slice),ao=Kr("".replace),io=Kr([].join),so=qr&&!Jr((function(){return 8!==ro((function(){}),"length",{value:8}).length})),co=String(String).split("String"),uo=fr.exports=function(e,t,n){"Symbol("===oo(no(t),0,7)&&(t="["+ao(no(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Wr(e,"name")||Xr&&e.name!==t)&&(qr?ro(e,"name",{value:t,configurable:!0}):e.name=t),so&&n&&Wr(n,"arity")&&e.length!==n.arity&&ro(e,"length",{value:n.arity});try{n&&Wr(n,"constructor")&&n.constructor?qr&&ro(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=eo(e);return Wr(r,"source")||(r.source=io(co,"string"==typeof t?t:"")),e};Function.prototype.toString=uo((function(){return Gr(this)&&to(this).source||Qr(this)}),"toString");var ho=fr.exports,lo=lt,fo=zn,go=ho,mo=Kt,yo={},So=Math.ceil,po=Math.floor,wo=Math.trunc||function(e){var t=+e;return(t>0?po:So)(t)},vo=wo,bo=function(e){var t=+e;return t!=t||0===t?0:vo(t)},Ao=bo,Io=Math.max,Mo=Math.min,To=bo,Eo=Math.min,Oo=function(e){var t=To(e);return t>0?Eo(t,9007199254740991):0},Do=ut,Co=function(e,t){var n=Ao(e);return n<0?Io(n+t,0):Mo(n,t)},No=function(e){return Oo(e.length)},Ho=function(e){return function(t,n,r){var o=Do(t),a=No(o);if(0===a)return!e&&-1;var i,s=Co(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ko={includes:Ho(!0),indexOf:Ho(!1)},Lo=an,Ro=ut,_o=ko.indexOf,Yo=kr,Po=Je([].push),jo=function(e,t){var n,r=Ro(e),o=0,a=[];for(n in r)!Lo(Yo,n)&&Lo(r,n)&&Po(a,n);for(;t.length>o;)Lo(r,n=t[o++])&&(~_o(a,n)||Po(a,n));return a},Fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bo=jo,Uo=Fo.concat("length","prototype");yo.f=Object.getOwnPropertyNames||function(e){return Bo(e,Uo)};var xo={};xo.f=Object.getOwnPropertySymbols;var $o=yt,Zo=yo,Vo=xo,zo=qn,Ko=Je([].concat),Jo=$o("Reflect","ownKeys")||function(e){var t=Zo.f(zo(e)),n=Vo.f;return n?Ko(t,n(e)):t},Go=an,Wo=Jo,qo=Ne,Xo=zn,Qo=He,ea=lt,ta=/#|\.prototype\./,na=function(e,t){var n=oa[ra(e)];return n===ia||n!==aa&&(ea(t)?Qo(t):!!t)},ra=na.normalize=function(e){return String(e).replace(ta,".").toLowerCase()},oa=na.data={},aa=na.NATIVE="N",ia=na.POLYFILL="P",sa=na,ca=Ce,ua=Ne.f,ha=lr,la=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(lo(n)&&go(n,a,r),r.global)o?e[t]=n:mo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:fo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},fa=Kt,da=function(e,t,n){for(var r=Wo(t),o=Xo.f,a=qo.f,i=0;i<r.length;i++){var s=r[i];Go(e,s)||n&&Go(n,s)||o(e,s,a(t,s))}},ga=sa,ma={},ya=jo,Sa=Fo,pa=Object.keys||function(e){return ya(e,Sa)},wa=ke,va=Kn,ba=zn,Aa=qn,Ia=ut,Ma=pa;ma.f=wa&&!va?Object.defineProperties:function(e,t){Aa(e);for(var n,r=Ia(t),o=Ma(t),a=o.length,i=0;a>i;)ba.f(e,n=o[i++],r[n]);return e};var Ta,Ea=yt("document","documentElement"),Oa=qn,Da=ma,Ca=Fo,Na=kr,Ha=Ea,ka=Rn,La="prototype",Ra="script",_a=Hr("IE_PROTO"),Ya=function(){},Pa=function(e){return"<"+Ra+">"+e+"</"+Ra+">"},ja=function(e){e.write(Pa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fa=function(){try{Ta=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Fa="undefined"!=typeof document?document.domain&&Ta?ja(Ta):(t=ka("iframe"),n="java"+Ra+":",t.style.display="none",Ha.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Pa("document.F=Object")),e.close(),e.F):ja(Ta);for(var r=Ca.length;r--;)delete Fa[La][Ca[r]];return Fa()};Na[_a]=!0;var Ba=Object.create||function(e,t){var n;return null!==e?(Ya[La]=Oa(e),n=new Ya,Ya[La]=null,n[_a]=e):n=Fa(),void 0===t?n:Da.f(n,t)},Ua=vn,xa=Ba,$a=zn.f,Za=Ua("unscopables"),Va=Array.prototype;void 0===Va[Za]&&$a(Va,Za,{configurable:!0,value:xa(null)});var za=ko.includes,Ka=function(e){Va[Za][e]=!0};function Ja(e,t,n,r,o){return Ga(t,Wa(e,t),n,r,o)}function Ga(e,t,n,r,o,a){const i=Si(t,n,r);if(o&&t!==i)throw new RangeError(Ml(e,t,n,r,a));return i}function Wa(e,t){const n=e[t];if(void 0===n)throw new TypeError(El(t));return n}function qa(e){return null!==e&&/object|function/.test(typeof e)}function Xa(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Qa(e){return ei({name:e},1)}function ei(e,t){return oi((e=>({value:e,configurable:1,writable:!t})),e)}function ti(e){return oi((e=>({get:e,configurable:1})),e)}function ni(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function ri(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function oi(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function ai(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function ii(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function si(e,t){const n={};for(const r of e)n[r]=t[r];return n}function ci(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function ui(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function hi(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function li(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function fi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function di(e){return e[0].toUpperCase()+e.substring(1)}function gi(e){return e.slice().sort()}function mi(e,t){return String(t).padStart(e,"0")}function yi(e,t){return Math.sign(e-t)}function Si(e,t,n){return Math.min(Math.max(e,t),n)}function pi(e,t){return[Math.floor(e/t),wi(e,t)]}function wi(e,t){return(e%t+t)%t}function vi(e,t){return[bi(e,t),Ai(e,t)]}function bi(e,t){return Math.trunc(e/t)||0}function Ai(e,t){return e%t||0}function Ii(e){return.5===Math.abs(e%1)}function Mi(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=Af[a],s=bf/i,[c,u]=vi(t,s);r+=u*i,o+=c}const[a,i]=vi(r,bf);return[o+a,i]}function Ti(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Af[o];r[n[o]]=bi(e,t),e=Ai(e,t)}return r}function Ei(e){if(void 0!==e)return Di(e)}function Oi(e){return Ri(Di(e))}function Di(e){return Li(Gf(e))}function Ci(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Ni(e,t){if(null==t)throw new RangeError(El(e));return t}function Hi(e){if(!qa(e))throw new TypeError(Il);return e}function ki(e,t){if(typeof t!==e)throw new TypeError(Tl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function Li(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Sl(t,e));return e||0}function Ri(e){if(e<=0)throw new RangeError(pl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function _i(e){if("symbol"==typeof e)throw new TypeError(Al);return String(e)}function Yi(e,t){return qa(e)?String(e):Kf(e,t)}function Pi(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(bl(e));return e}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(vl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(wl(t,e));return e}function Fi(e,t){return Math.trunc(ji(e,t))||0}function Bi(e,t){return Li(ji(e,t),t)}function Ui(e,t){return Ri(Fi(e,t),t)}function xi(e,t){let[n,r]=vi(t,bf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*bf),[o,r]}function $i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return xi(e[0]+t[0]*n,e[1]+t[1]*n)}function Zi(e,t){return xi(e[0],e[1]+t)}function Vi(e,t){return $i(t,e,-1)}function zi(e,t){return yi(e[0],t[0])||yi(e[1],t[1])}function Ki(e,t,n){return-1===zi(e,t)||1===zi(e,n)}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(bf/t);return[Number(e/n),Number(e%n)*t]}function Gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=bf/t,[r,o]=vi(e,n);return[r,o*t]}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=bf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=vi(o,t);return r*(bf/t)+(a+(n?i/t:0))}function Xi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pi;const[r,o]=e,[a,i]=n(o,t);return[r*(bf/t)+a,i]}function Qi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function es(e){return Ja(e,"isoYear",bd,vd,1),e.isoYear===bd?Ja(e,"isoMonth",4,12,1):e.isoYear===vd&&Ja(e,"isoMonth",1,9,1),e}function ts(e){return ns({...e,...fd,isoHour:12}),e}function ns(e){const t=Ja(e,"isoYear",bd,vd,1),n=t===bd?1:t===vd?-1:0;return n&&rs(us({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function rs(e){if(!e||Ki(e,wd,pd))throw new RangeError(ql);return e}function os(e){return Mi(e,5,id)[1]}function as(e){const[t,n]=pi(e,bf);return[Ti(n,5,id),t]}function is(e){return ss(e)[0]}function ss(e){return Xi(e,pf)}function cs(e){return fs(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function us(e){const t=cs(e);if(void 0!==t){const[n,r]=vi(t,gf);return[n,r*Sf+(e.isoMicrosecond||0)*yf+(e.isoNanosecond||0)]}}function hs(e,t){const[n,r]=as(os(e)-t);return rs(us({...e,isoDay:e.isoDay+r,...n}))}function ls(){return fs(...arguments)/mf}function fs(){const[e,t]=ds(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*gf}function ds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===bd?1:e===vd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function gs(e,t){let[n,r]=Zi(e,t);r<0&&(r+=bf,n-=1);const[o,a]=pi(r,Sf),[i,s]=pi(a,yf);return ms(n*gf+o,i,s)}function ms(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-Sd)/gf)*Math.sign(e),o=new Date(e-r*gf);return ri(cd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ys(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Ss(){return Md}function ps(e,t){switch(t){case 2:return vs(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function ws(e){return vs(e)?366:365}function vs(e){return e%4==0&&(e%100!=0||e%400==0)}function bs(e){const[t,n]=ds(e.isoYear,e.isoMonth,e.isoDay);return wi(t.getUTCDay()-n,7)||7}function As(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Is(e){const t=cs(e);if(t<Td)return As(e);const n=Qi(Lg($f),t),{era:r,eraYear:o}=bh(n,$f);return[r,o]}function Ms(e){return Ts(e),Ds(e,1),e}function Ts(e){return Os(e,1),e}function Es(e){return hi(sd,e,Os(e))}function Os(e,t){const{isoYear:n}=e,r=Ja(e,"isoMonth",1,Ss(),t);return{isoYear:n,isoMonth:r,isoDay:Ja(e,"isoDay",1,ps(n,r),t)}}function Ds(e,t){return ri(id,[Ja(e,"isoHour",0,23,t),Ja(e,"isoMinute",0,59,t),Ja(e,"isoSecond",0,59,t),Ja(e,"isoMillisecond",0,999,t),Ja(e,"isoMicrosecond",0,999,t),Ja(e,"isoNanosecond",0,999,t)])}function Cs(e){return void 0===e?0:$d(Hi(e))}function Ns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Us(e);const n=Zd(e),r=Vd(e,t);return[$d(e),r,n]}function Hs(e){return Zd(Us(e))}function ks(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Us(t);let i=Ud(t,r,o),s=js(t),c=Gd(t,a);const u=Bd(t,r,o,1);return null==i?i=Math.max(n,u):Ks(i,u),s=Fs(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function Ls(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=js(e=xs(e,Od));const o=Gd(e,7);let a=Bd(e,t);return a=Ni(Od,a),r=Fs(r,a,void 0,n),[a,r,o]}function Rs(e){return zd(Us(e))}function _s(e,t){return Ys(Us(e),t)}function Ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Bs(e);return[Gd(e,4),...Ps(Bd(e,t),n)]}function Ps(e,t){return null!=e?[Af[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function js(e){const t=e[Cd];return void 0===t?1:Fi(t,Cd)}function Fs(e,t,n,r){const o=r?bf:Af[t+1];if(o){const n=Af[t];if(o%((e=Ga(Cd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Tl(Cd,e))}else e=Ga(Cd,e,1,n?10**9:1,1);return e}function Bs(e){let t=e[Nd];if(void 0!==t){if("number"!=typeof t){if("auto"===_i(t))return;throw new RangeError(Tl(Nd,t))}t=Ga(Nd,Math.floor(t),0,9,1)}return t}function Us(e){return void 0===e?{}:Hi(e)}function xs(e,t){return"string"==typeof e?{[t]:e}:Hi(e)}function $s(e){if(void 0!==e){if(qa(e))return Object.assign(Object.create(null),e);throw new TypeError(Il)}}function Zs(e,t){return e&&Object.assign(Object.create(null),e,{overflow:Ld[t]})}function Vs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=_i(a),"auto"===a)return o?r:null;let i=ff[a];if(void 0===i&&(i=nd[a]),void 0===i)throw new RangeError(Nl(e,a,ff));return Ga(e,i,r,n,1,df),i}function zs(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=_i(o),i=t[a];if(void 0===i)throw new RangeError(Nl(e,a,t));return i}function Ks(e,t){if(t>e)throw new RangeError(rf)}function Js(e){return{branding:ng,epochNanoseconds:e}}function Gs(e,t,n){return{branding:tg,calendar:n,timeZone:t,epochNanoseconds:e}}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Qd,calendar:t,...si(ld,e)}}function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Xd,calendar:t,...si(ud,e)}}function Xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Wd,calendar:t,...si(ud,e)}}function Qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:qd,calendar:t,...si(ud,e)}}function ec(e){return{branding:eg,...si(hd,e)}}function tc(e){return{branding:rg,sign:pu(e),...si(Xf,e)}}function nc(e){return Xi(e.epochNanoseconds,Sf)[0]}function rc(e){return e.epochNanoseconds}function oc(e){return"string"==typeof e?e:Kf(e.id)}function ac(e,t){return e===t||oc(e)===oc(t)}function ic(e,t,n,r,o,a){const i={...rd,[qf[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function sc(e,t,n){const r=qi(Vi(t,n));if(!r)throw new RangeError(xl);return qi(Vi(t,e))/r}function cc(e,t,n,r){return uc(e,fc(t,n),r)}function uc(e,t,n){const[r,o]=hc(e,t,n);return ns({...su(e,o),...r})}function hc(e,t,n){return as(wc(os(e),t,n))}function lc(e){return wc(e,wf,7)}function fc(e,t){return Af[e]*t}function dc(e){const t=gc(e);return[t,su(t,1)]}function gc(e){return dd(6,e)}function mc(e,t,n){const r=Math.min(Tu(e),6);return Au(pc(bu(e,r),t,n),r)}function yc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Ic:fu(i)&&r<6?Ac:bc;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=pu(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=ad(c,e);r[qf[c]]+=s;const u=qi(Vi(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function Sc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/bf)(e);return[wc(t,n,r),0]}return pc(e,fc(t,n),r,o)}function pc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=bf,o-=1);const[i,s]=pi(wc(a,t,n),bf);return xi(o+i,s)}function wc(e,t,n){return vc(e/t,n)*t}function vc(e,t){return og[t](e)}function bc(e,t,n,r,o,a){const i=pu(e),s=bu(e),c=Sc(s,r,o,a),u=Vi(s,c),h=Math.sign(c[0]-s[0])===i,l=Au(c,Math.min(n,6));return[{...e,...l},$i(t,u),h]}function Ac(e,t,n,r,o,a,i,s,c){const u=pu(e);let[h,l]=bu(e,5);const f=fc(r,o);let d=wc(l,f,a);const[g,m]=ic({...e,...od},6,u,i,s,c),y=d-qi(Vi(g,m));y&&Math.sign(y)!==u?t=Zi(g,d):(h+=u,d=wc(y,f,a),t=Zi(m,d));const S=Iu(d);return[{...e,...S,days:e.days+h},t,Boolean(h)]}function Ic(e,t,n,r,o,a,i,s,c){const u=pu(e),h=qf[r],l=ad(r,e),f=bi(e[h],o)*o;l[h]=f;const[d,g]=ic(l,r,o*u,i,s,c),m=f+sc(t,d,g)*u*o,y=wc(m,o,a),S=Math.sign(y-m)===u;return l[h]=y,[l,S?g:d,S]}function Mc(e,t,n,r){const[o,a,i,s]=(e=>{const t=Ys(e=Us(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=pc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return Rc(gs(n,i),a)+(e?Fc(lc(i)):"Z")})(c,t(c?e(o):ag),n.epochNanoseconds,a,i,s)}function Tc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=Us(e);const t=zd(e),n=Bs(e),r=Jd(e),o=Gd(e,4),a=Bd(e,4);return[t,Kd(e),r,o,...Ps(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=pc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return Rc(gs(r,h),u)+Fc(lc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+oc(e)+"]":"")(n,a)+Bc(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Ec(e,t){const[n,r,o,a]=(e=>(e=Us(e),[zd(e),...Ys(e)]))(t);return i=e.calendar,s=n,c=a,Rc(uc(e,o,r),c)+Bc(i,s);var i,s,c}function Oc(e,t){return n=e.calendar,r=e,o=Rs(t),_c(r)+Bc(n,o);var n,r,o}function Dc(e,t){return kc(e.calendar,Yc,e,Rs(t))}function Cc(e,t){return kc(e.calendar,Pc,e,Rs(t))}function Nc(e,t){const[n,r,o]=_s(t);return a=o,jc(hc(e,r,n)[0],a);var a}function Hc(e,t){const[n,r,o]=_s(t,3);return r>1&&(e={...e,...mc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Su(e):e,{hours:o,minutes:a}=r,[i,s]=Xi(bu(r,3),pf,vi);vu(i);const c=xc(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+Lc({Y:Zc(r.years),M:Zc(r.months),W:Zc(r.weeks),D:Zc(r.days)})+(o||a||i||u?"T"+Lc({H:Zc(o),M:Zc(a),S:Zc(i,u)+c}):"")})(e,o)}function kc(e,t,n,r){const o=oc(e),a=r>1||0===r&&o!==Uf;return 1===r?o===Uf?t(n):_c(n):a?_c(n)+Uc(o,2===r):t(n)}function Lc(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Rc(e,t){return _c(e)+"T"+jc(e,t)}function _c(e){return Yc(e)+"-"+lf(e.isoDay)}function Yc(e){const{isoYear:t}=e;return(t<0||t>9999?$c(t)+mi(6,Math.abs(t)):mi(4,t))+"-"+lf(e.isoMonth)}function Pc(e){return lf(e.isoMonth)+"-"+lf(e.isoDay)}function jc(e,t){const n=[lf(e.isoHour),lf(e.isoMinute)];return-1!==t&&n.push(lf(e.isoSecond)+((e,t,n,r)=>xc(e*Sf+t*yf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Fc(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=pi(Math.abs(e),vf),[r,o]=pi(n,wf),[a,i]=pi(o,pf);return $c(e)+lf(t)+":"+lf(r)+(a||i?":"+lf(a)+xc(i):"")}function Bc(e,t){if(1!==t){const n=oc(e);if(t>1||0===t&&n!==Uf)return Uc(n,2===t)}return""}function Uc(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function xc(e,t){let n=mi(9,e);return n=void 0===t?n.replace(ug,""):n.slice(0,t),n?"."+n:""}function $c(e){return e<0?"-":"+"}function Zc(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Vc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=gs(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function zc(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,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return hs(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=us(t);r&&(n=lc(n));for(const t of e){let e=qi(Vi(t,o));if(r&&(e=lc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Gl)}return i?us(t):Kc(e,t,o,s)}function Kc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(Wl);if(r.length)return r[3===n?1:0];const o=us(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(Zi(t,-bf));return Gc(e.getOffsetNanosecondsFor(Zi(t,bf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(gs(o,i)))[2===n?0:r.length-1]}function Jc(e){if(Math.abs(e)>=bf)throw new RangeError(Kl);return e}function Gc(e){if(e>bf)throw new RangeError(Jl);return e}function Wc(e,t,n){return Js(rs($i(t.epochNanoseconds,(e=>{if(Mu(e))throw new RangeError(tf);return bu(e,5)})(e?Su(n):n))))}function qc(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...nu(s,i,r,n?Su(o):o,a)}}function Xc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Ws(ru(e(a),n,t?Su(r):r,o),a)}function Qc(e,t,n,r,o){const{calendar:a}=n;return qs(ou(e(a),n,t?Su(r):r,o),a)}function eu(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=au(i,n);t&&(r=yu(r)),r.sign<0&&(s=i.dateAdd(s,{...rd,months:1}),s=su(s,-1));const c=i.dateAdd(s,r,o);return Xs(au(i,c),a)}function tu(e,t,n){return ec(iu(t,e?Su(n):n)[0])}function nu(e,t,n,r,o){const a=bu(r,5);let i=n.epochNanoseconds;if(Mu(r)){const s=hg(n,t);i=$i(Kc(t,{...ou(e,s,{...r,...od},o),...si(id,s)}),a)}else i=$i(i,a),Cs(o);return{epochNanoseconds:rs(i)}}function ru(e,t,n,r){const[o,a]=iu(t,n);return ns({...ou(e,t,{...n,...od,days:n.days+a},r),...o})}function ou(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);Cs(r);const o=n.days+bu(n,5)[0];return o?ts(su(t,o)):t}function au(e,t){return su(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function iu(e,t){const[n,r]=bu(t,5),[o,a]=as(os(e)+r);return[o,n+a]}function su(e,t){return t?{...e,...ms(cs(e)+t*gf)}:e}function cu(e,t,n){const r=e(n.calendar);return fu(n)?[n,r,t(n.timeZone)]:[{...n,...fd},r]}function uu(e){return e?rc:us}function hu(e,t){return t?fi(nu,e,t):fi(ru,e)}function lu(e,t){return t?fi(ch,e,t):fi(uh,e)}function fu(e){return e&&e.epochNanoseconds}function du(e,t){return e<=6-(fu(t)?1:0)}function gu(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function mu(e,t,n,r,o,a,i){const s=e(Us(i).relativeTo),c=Math.max(Tu(o),Tu(a));if(du(c,s))return tc(wu(((e,t,n,r)=>{const o=$i(bu(e),bu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(ql);return{...rd,...Au(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(ef);r&&(a=Su(a));const[u,h,l]=cu(t,n,s),f=hu(h,l),d=lu(h,l),g=f(u,o);return tc(d(u,f(g,a),c))}function yu(e){return tc(Su(e))}function Su(e){const t={};for(const n of qf)t[n]=-1*e[n]||0;return t}function pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qf,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Ql);n=t}}return n}function wu(e){for(const t of td)Ga(t,e[t],-lg,lg,1);return vu(qi(bu(e),pf)),e}function vu(e){if(!Number.isSafeInteger(e))throw new RangeError(Xl)}function bu(e){return Mi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,qf)}function Au(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Ti(r,t,qf);if(o[qf[t]]+=n*(bf/Af[t]),!Number.isFinite(o[qf[t]]))throw new RangeError(ql);return o}function Iu(e){return Ti(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,qf)}function Mu(e){return Boolean(pu(e,ed))}function Tu(e){let t=9;for(;t>0&&!e[qf[t]];t--);return t}function Eu(e,t){return[e,t]}function Ou(e){const t=Math.floor(e/ig)*ig;return[t,t+ig]}function Du(e){const t=ju(e);if(void 0===t)throw new RangeError(of(e));return t}function Cu(e){const t=_u(Kf(e));if(!t||t.O)throw new RangeError(of(e));return qs(t.I?ku(t):Lu(t))}function Nu(e){if(e.calendar!==Uf)throw new RangeError(af(e.calendar))}function Hu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=zu(e.timeZone),a=fg(o);return Gs(zc(a,Ms(e),t,n,r,!a.R,e.O),o,Nh(e.calendar))}function ku(e){return Ru(ns(Ms(e)))}function Lu(e){return Ru(ts(Ts(e)))}function Ru(e){return{...e,calendar:Nh(e.calendar)}}function _u(e){const t=Tg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Fu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Bu(e.slice(5)),...Uu(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function Yu(e){const t=Ig.exec(e);return t?(e=>({isoYear:Fu(e),isoMonth:parseInt(e[4]),isoDay:1,...Uu(e[5])}))(t):void 0}function Pu(e){const t=Mg.exec(e);return t?(e=>({isoYear:Id,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Uu(e[3])}))(t):void 0}function ju(e,t){const n=Og.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(af(n));return Jc((Vu(e[2])*vf+Vu(e[3])*wf+Vu(e[4])*pf+xu(e[5]||""))*Zu(e[1]))})(n,t):void 0}function Fu(e){const t=Zu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(af(-0));return t*n}function Bu(e){const t=Vu(e[3]);return{...as(xu(e[4]||""))[0],isoHour:Vu(e[1]),isoMinute:Vu(e[2]),isoSecond:60===t?59:t}}function Uu(e){let t,n;const r=[];if(e.replace(Dg,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(af(e))}else{if(n)throw new RangeError(af(e));n=s}return""})),r.length>1&&t)throw new RangeError(af(e));return{timeZone:n,calendar:r[0]||Uf}}function xu(e){return parseInt(e.padEnd(9,"0"))}function $u(e){return new RegExp(`^${e}$`,"i")}function Zu(e){return e&&"+"!==e?-1:1}function Vu(e){return void 0===e?0:parseInt(e)}function zu(e){const t=Ju(e);return"number"==typeof t?Fc(t):t?(e=>{if(Hg.test(e))throw new RangeError(zl);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?di(e).replace(/island|noronha|murdo|rivadavia|urville/,di):e)))).join("/")})(e):ag}function Ku(e){const t=Ju(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:ag}function Ju(e){const t=ju(e=e.toUpperCase(),1);return void 0!==t?t:e!==ag?Ng(e):void 0}function Gu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function Wu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function qu(e,t){return Xu(e,t)||Qu(e,t)}function Xu(e,t){return yi(cs(e),cs(t))}function Qu(e,t){return yi(os(e),os(t))}function eh(e,t){if(e===t)return 1;const n=oc(e),r=oc(t);if(n===r)return 1;try{return Ku(n)===Ku(r)}catch(e){}}function th(e,t,n,r){const o=ks(e,$s(r),3,5),a=fh(t.epochNanoseconds,n.epochNanoseconds,...o);return tc(e?Su(a):a)}function nh(e,t,n,r,o,a){const i=Sh(r.calendar,o.calendar),s=$s(a),[c,u,h,l]=ks(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=zi(d,f);let m;if(g)if(c<6)m=fh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!eh(e,t))throw new RangeError(Vl);return e})(r.timeZone,o.timeZone)),a=e(i);m=hh(a,n,r,o,g,c,s),m=yc(m,d,c,u,h,l,r,rc,fi(nu,a,n))}else m=rd;return tc(n?Su(m):m)}function rh(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=$s(o),[s,c,u,h]=ks(t,i,6),l=us(n),f=us(r),d=zi(f,l);let g;if(d)if(s<=6)g=fh(l,f,s,c,u,h);else{const t=e(a);g=lh(t,n,r,d,s,i),g=yc(g,f,s,c,u,h,n,us,fi(ru,t))}else g=rd;return tc(t?Su(g):g)}function oh(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=$s(o);return ih(t,(()=>e(a)),n,r,...ks(t,i,6,9,6),i)}function ah(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=$s(o),s=ks(t,i,9,9,8),c=e(a);return ih(t,(()=>c),au(c,n),au(c,r),...s,i)}function ih(e,t,n,r,o,a,i,s,c){const u=us(n),h=us(r);let l;if(zi(h,u))if(6===o)l=fh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=yc(l,h,o,a,i,s,n,us,fi(ou,e)))}else l=rd;return tc(e?Su(l):l)}function sh(e,t,n,r){const o=$s(r),[a,i,s,c]=ks(e,o,5,5),u=wc(yh(t,n),fc(i,s),c),h={...rd,...Iu(u,a)};return tc(e?Su(h):h)}function ch(e,t,n,r,o,a){const i=zi(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?dh(n.epochNanoseconds,r.epochNanoseconds,o):hh(e,t,n,r,i,o,a):rd}function uh(e,t,n,r,o){const a=us(t),i=us(n),s=zi(i,a);return s?r<=6?dh(a,i,r):lh(e,t,n,s,r,o):rd}function hh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...su(s,u++*-r),...i},f=Kc(e,l),zi(c,f)===-r}const a=hg(t,e),i=si(id,a),s=hg(n,e),c=n.epochNanoseconds;let u=0;const h=yh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(xl);const d=qi(Vi(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...rd,days:gh(h,l)}):e.dateUntil(s,c,a,i),...Iu(u)}}function lh(e,t,n,r,o,a){let i=t,s=yh(t,n);return Math.sign(s)===-r&&(i=su(t,r),s+=bf*r),{...e.dateUntil(i,n,o,a),...Iu(s)}}function fh(e,t,n,r,o,a){return{...rd,...Au(Sc(Vi(e,t),r,o,a),n)}}function dh(e,t,n){return{...rd,...Au(Vi(e,t),n)}}function gh(e,t){return mh(cs(e),cs(t))}function mh(e,t){return Math.trunc((t-e)/gf)}function yh(e,t){return os(t)-os(e)}function Sh(e,t){if(!ac(e,t))throw new RangeError($l);return e}function ph(e){function t(e){return((e,t)=>({...bh(e,t),o:e.month,day:parseInt(e.day)}))(Qi(n,e),r)}const n=Lg(e),r=Hh(e);return{id:e,h:wh(t),l:vh(t)}}function wh(e){return Xa((t=>{const n=cs(t);return e(n)}),WeakMap)}function vh(e){const t=e(0).year-Ad;return Xa((n=>{let r,o=fs(n-t);const a=[],i=[];do{o+=400*gf}while((r=e(o)).year<=n);do{o+=(1-r.day)*gf,r.year===n&&(a.push(o),i.push(r.o)),o-=gf}while((r=e(o)).year>=n);return{i:a.reverse(),u:uf(i.reverse())}}))}function bh(e,t){let n,r,o=Ah(e);if(e.era){const i=Zf[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Vf[a]||a,r=o,o=jh(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function Ah(e){return parseInt(e.relatedYear||e.year)}function Ih(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Mh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*gf}function Th(e){const t=Ch(this,e),n=Ch(this,e-1),r=t.length;if(r>n.length){const e=Bh(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Eh(e){return mh(Mh.call(this,e),Mh.call(this,e+1))}function Oh(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),mh(n[t-1],o[r-1])}function Dh(e){return this.l(e).i.length}function Ch(e,t){return Object.keys(e.l(t).u)}function Nh(e){if((e=e.toLowerCase())!==Uf&&e!==xf&&Hh(e)!==Hh(Lg(e).resolvedOptions().calendar))throw new RangeError(Zl(e));return e}function Hh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function kh(e){return this.m(e)[0]}function Lh(e){return this.m(e)[1]}function Rh(e){const[t]=this.v(e);return mh(this.p(t),cs(e))+1}function _h(e){const t=Rg.exec(e);if(!t)throw new RangeError(Pl(e));return[parseInt(t[1]),Boolean(t[2])]}function Yh(e,t,n){return e+(t||n&&e>=n?1:0)}function Ph(e,t){return e-(t&&e>=t?1:0)}function jh(e,t){return(t+e)*(Math.sign(t)||1)||0}function Fh(e){return Zf[Uh(e)]}function Bh(e){return zf[Uh(e)]}function Uh(e){return Hh(e.id||Uf)}function xh(e,t,n,r){const o=zh(n,r,Pf,[],Df);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Jh(o),i=e(o.timeZone);return{epochNanoseconds:zc(t(i),{...r,...a},void 0!==o.offset?Du(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...fd}}function $h(e,t,n){const r=zh(e,t,Pf,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Zh(e,t,n,r){const o=zh(e,t,_f,r);return e.yearMonthFromFields(o,n)}function Vh(e,t,n,r){const o=zh(e,n,Pf,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Id),e.monthDayFromFields(o,r)}function zh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return Kh(t,[...e.fields(n),...o].sort(),r)}function Kh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(Dl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Ol(r));let t=e[r];if(void 0!==t)i=1,jg[r]&&(t=jg[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(El(r));o[r]=Bf[r]}a=r}if(r&&!i)throw new TypeError(Cl(t));return o}function Jh(e,t){return Ds(Fg({...Bf,...e}),t)}function Gh(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Kh(t,i,a);const c=Kh(n,i);return s=e.mergeFields(s,c),Kh(s,i,[])}function Wh(e,t){const n=zh(e,t,Ff);return e.monthDayFromFields(n)}function qh(e,t,n){const r=zh(e,t,Yf);return e.yearMonthFromFields(r,n)}function Xh(e,t,n,r,o){t=si(n=e.fields(n),t),r=Kh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Kh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Qh(e,t){let{era:n,eraYear:r,year:o}=t;const a=Fh(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(Ll);if(!a)throw new RangeError(kl);const e=a[n];if(void 0===e)throw new RangeError(_l(n));const t=jh(r,e);if(void 0!==o&&o!==t)throw new RangeError(Rl);o=t}else if(void 0===o)throw new TypeError(Yl(a));return o}function el(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=_h(t);let s=Yh(a,i,o);if(i){const t=Bh(e);if(void 0===t)throw new RangeError(Ul);if(t>0){if(s>t)throw new RangeError(Ul);if(void 0===o){if(1===r)throw new RangeError(Ul);s--}}else{if(s!==-t)throw new RangeError(Ul);if(void 0===o&&1===r)throw new RangeError(Ul)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(jl);o=t,r=1}else if(void 0===o)throw new TypeError(Fl);return Ga("month",o,1,e.j(n),r)}function tl(e,t,n,r,o){return Ja(t,"day",1,e.N(r,n),o)}function nl(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function rl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uf;return Gs(e.epochNanoseconds,t,n)}function ol(e,t){return Ws(hg(t,e))}function al(e,t){return qs(hg(t,e))}function il(e,t){return ec(hg(t,e))}function sl(e,t){return{...e,calendar:t}}function cl(e,t){if(e===t)return e;const n=oc(e),r=oc(t);if(n===r||n===Uf)return t;if(r===Uf)return e;throw new RangeError($l)}function ul(e,t){return n=>n===Uf?e:n===xf||n===$f?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),kg(n))}function hl(e,t,n){const r=new Set(n);return o=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(o=ci(r,o),e)||Object.assign(o,t),n&&(o.timeZone=ag,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gm;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...dl(e,h,s)]}}function fl(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(cf);n.timeZone=e}return new gd(t,n)}function dl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Uf)&&e!==t)throw new RangeError($l)})(oc(e.calendar),t.calendar,o),r(e,t))))}function gl(e){const t=ml();return gs(t,e.getOffsetNanosecondsFor(t))}function ml(){return Gi(Date.now(),Sf)}function yl(){return Am||(Am=(new gd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?ca:u?ca[s]||fa(s,{}):ca[s]&&ca[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=ua(n,r))&&i.value:n[r],!ga(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;da(a,o)}(e.sham||o&&o.sham)&&ha(a,"sham",!0),la(n,r,a,e)}})({target:"Array",proto:!0,forced:He((function(){return!Array(1).includes()}))},{includes:function(e){return za(this,e,arguments.length>1?arguments[1]:void 0)}}),Ka("includes");const Sl=(e,t)=>`Non-integer ${e}: ${t}`,pl=(e,t)=>`Non-positive ${e}: ${t}`,wl=(e,t)=>`Non-finite ${e}: ${t}`,vl=e=>`Cannot convert bigint to ${e}`,bl=e=>`Invalid bigint: ${e}`,Al="Cannot convert Symbol to string",Il="Invalid object",Ml=(e,t,n,r,o)=>o?Ml(e,o[t],o[n],o[r]):Tl(e,t)+`; must be between ${n}-${r}`,Tl=(e,t)=>`Invalid ${e}: ${t}`,El=e=>`Missing ${e}`,Ol=e=>`Invalid field ${e}`,Dl=e=>`Duplicate field ${e}`,Cl=e=>"No valid fields: "+e.join(),Nl=(e,t,n)=>Tl(e,t)+"; must be "+Object.keys(n).join(),Hl="Invalid calling context",kl="Forbidden era/eraYear",Ll="Mismatching era/eraYear",Rl="Mismatching year/eraYear",_l=e=>`Invalid era: ${e}`,Yl=e=>"Missing year"+(e?"/era/eraYear":""),Pl=e=>`Invalid monthCode: ${e}`,jl="Mismatching month/monthCode",Fl="Missing month/monthCode",Bl="Cannot guess year",Ul="Invalid leap month",xl="Invalid protocol results",$l="Mismatching Calendars",Zl=e=>`Invalid Calendar: ${e}`,Vl="Mismatching TimeZones",zl="Forbidden ICU TimeZone",Kl="Out-of-bounds offset",Jl="Out-of-bounds TimeZone gap",Gl="Invalid TimeZone offset",Wl="Ambiguous offset",ql="Out-of-bounds date",Xl="Out-of-bounds duration",Ql="Cannot mix duration signs",ef="Missing relativeTo",tf="Cannot use large units",nf="Required smallestUnit or largestUnit",rf="smallestUnit > largestUnit",of=e=>`Cannot parse: ${e}`,af=e=>`Invalid substring: ${e}`,sf=e=>`Cannot format ${e}`,cf="Cannot specify TimeZone",uf=fi(ai,((e,t)=>t)),hf=fi(ai,((e,t,n)=>n)),lf=fi(mi,2),ff={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},df=Object.keys(ff),gf=864e5,mf=1e3,yf=1e3,Sf=1e6,pf=1e9,wf=6e10,vf=36e11,bf=864e11,Af=[1,yf,Sf,pf,wf,vf,bf],If=df.slice(0,6),Mf=gi(If),Tf=["offset"],Ef=["timeZone"],Of=If.concat(Tf),Df=Of.concat(Ef),Cf=["era","eraYear"],Nf=Cf.concat(["year"]),Hf=["year"],kf=["monthCode"],Lf=["month"].concat(kf),Rf=["day"],_f=Lf.concat(Hf),Yf=kf.concat(Hf),Pf=Rf.concat(_f),jf=Rf.concat(Lf),Ff=Rf.concat(kf),Bf=hf(If,0),Uf="iso8601",xf="gregory",$f="japanese",Zf={[xf]:{bce:-1,ce:0},[$f]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},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}},Vf={bc:"bce",ad:"ce"},zf={chinese:13,dangi:13,hebrew:-6},Kf=fi(ki,"string"),Jf=fi(ki,"boolean"),Gf=fi(ki,"number"),Wf=fi(ki,"function"),qf=df.map((e=>e+"s")),Xf=gi(qf),Qf=qf.slice(0,6),ed=qf.slice(6),td=ed.slice(1),nd=uf(qf),rd=hf(qf,0),od=hf(Qf,0),ad=fi(li,qf),id=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],sd=["isoDay","isoMonth","isoYear"],cd=id.concat(sd),ud=gi(sd),hd=gi(id),ld=gi(cd),fd=hf(hd,0),dd=fi(li,cd),gd=Intl.DateTimeFormat,md="en-GB",yd=1e8,Sd=yd*gf,pd=[yd,0],wd=[-yd,0],vd=275760,bd=-271821,Ad=1970,Id=1972,Md=12,Td=fs(1868,9,8),Ed=Xa(Is,WeakMap),Od="smallestUnit",Dd="unit",Cd="roundingIncrement",Nd="fractionalSecondDigits",Hd="relativeTo",kd={constrain:0,reject:1},Ld=Object.keys(kd),Rd={compatible:0,reject:1,earlier:2,later:3},_d={reject:0,use:1,prefer:2,ignore:3},Yd={auto:0,never:1,critical:2,always:3},Pd={auto:0,never:1,critical:2},jd={auto:0,never:1},Fd={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Bd=fi(Vs,Od),Ud=fi(Vs,"largestUnit"),xd=fi(Vs,Dd),$d=fi(zs,"overflow",kd),Zd=fi(zs,"disambiguation",Rd),Vd=fi(zs,"offset",_d),zd=fi(zs,"calendarName",Yd),Kd=fi(zs,"timeZoneName",Pd),Jd=fi(zs,"offset",jd),Gd=fi(zs,"roundingMode",Fd),Wd="PlainYearMonth",qd="PlainMonthDay",Xd="PlainDate",Qd="PlainDateTime",eg="PlainTime",tg="ZonedDateTime",ng="Instant",rg="Duration",og=[Math.floor,e=>Ii(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Ii(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Ii(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Ii(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ag="UTC",ig=5184e3,sg=ls(1847),cg=ls((new Date).getUTCFullYear()+10),ug=/0+$/,hg=Xa(Vc,WeakMap),lg=2**32-1,fg=Xa((e=>{const t=Ju(e);return"object"==typeof t?new gg(t):new dg(t||0)}));class dg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[hs(e,this.R)]}B(){}}class gg{constructor(e){this.q=(e=>{function t(e){const t=Si(e,a,i),[s,c]=Ou(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=Xa(e),o=Xa(Eu);let a=sg,i=cg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=Si(e,a,i);let[c,u]=Ou(s);const h=ig*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((yi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Qi(e,t*mf);return ls(Ah(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(is(e))*pf}getPossibleInstantsFor(e){const[t,n]=[ls((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Sf+r.isoMicrosecond*yf+r.isoNanosecond];var r;return this.q.J(t).map((e=>rs(Zi(Gi(e,pf),n))))}B(e,t){const[n,r]=ss(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Gi(o,pf)}}const mg="([+−-])",yg="(?:[.,](\\d{1,9}))?",Sg=`(?:(?:${mg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,pg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+yg+")?)?",wg=mg+pg,vg=Sg+"-?(\\d{2})(?:[T ]"+pg+"(Z|"+wg+")?)?",bg="\\[(!?)([^\\]]*)\\]",Ag=`((?:${bg}){0,9})`,Ig=$u(Sg+Ag),Mg=$u("(?:--)?(\\d{2})-?(\\d{2})"+Ag),Tg=$u(vg+Ag),Eg=$u("T?"+pg+"(?:"+wg+")?"+Ag),Og=$u(wg),Dg=new RegExp(bg,"g"),Cg=$u(`${mg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${yg}H)?(?:(\\d+)${yg}M)?(?:(\\d+)${yg}S)?)?`),Ng=Xa((e=>new gd(md,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Hg=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,kg=Xa(ph),Lg=Xa((e=>new gd(md,{calendar:e,timeZone:ag,era:"short",year:"numeric",month:"short",day:"numeric"}))),Rg=/^M(\d{2})(L?)$/,_g={era:Yi,eraYear:Fi,year:Fi,month:Ui,monthCode:Yi,day:Ui},Yg=hf(If,Fi),Pg=hf(qf,Bi),jg=Object.assign({},_g,Yg,Pg,{offset:Yi}),Fg=fi(ii,If,id),Bg={dateAdd(e,t,n){const r=Cs(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=bu(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=Yh(t,r,e.P(a)),i=Ga("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ga("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=cs(e)}return o+=(7*s+c)*gf,ts(ms(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=gh({...e,...fd},{...t,...fd});return 7===n&&([r,o]=vi(o,7)),{...rd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-Yh(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...rd,years:a,months:i,days:s}},dateFromFields(e,t){const n=Cs(t),r=Qh(this,e),o=el(this,e,r,n),a=tl(this,e,o,r,n);return qs(ts(this.L(r,o,a)),this.id||Uf)},yearMonthFromFields(e,t){const n=Cs(t),r=Qh(this,e),o=el(this,e,r,n);return Xs(es(this.L(r,o,1)),this.id||Uf)},monthDayFromFields(e,t){const n=Cs(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=_h(o),l=Wa(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(Bl);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(jl);r&&(h=Ga("month",h,1,Md,1),l=Ga("day",l,1,ps(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Id:Qh(this,e),h=el(this,e,u,n),l=tl(this,e,h,u,n);const t=this.P(u);c=h===t,s=Ph(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(Bl);[u,h]=o}return Qs(ts(this.L(u,h,l)),this.id||Uf)},fields(e){return Fh(this)&&e.includes("year")?[...e,...Cf]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return nl(n,t,Lf),Fh(this)&&(nl(n,t,Nf),this.id===$f&&nl(n,t,jf,Cf)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:Rh,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+lf(e)+(t?"L":""))(r,o)},dayOfWeek:bs,daysInWeek:()=>7},Ug={dayOfYear:Rh,v:ys,p:fs},xg=Object.assign({},Ug,{weekOfYear:kh,yearOfWeek:Lh,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=ws(f+e),r=e||1,o=t(wi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=bs(e),a=this.dayOfYear(e),i=wi(o-1,7),s=a-1,c=wi(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),$g={dayOfYear:Rh,v:Ih,p:Mh,weekOfYear:kh,yearOfWeek:Lh,m:()=>[]},Zg=ul(Object.assign({},Bg,xg,{v:ys,nn(e){return this.id===xf?As(e):this.id===$f?Ed(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Id,e]},K:vs,P(){},j:Ss,V:e=>e*Md,N:ps,X:ws,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:fs,G:(e,t,n)=>(e+=bi(n,Md),(t+=Ai(n,Md))<1?(e--,t+=Md):t>Md&&(e++,t-=Md),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},Bg,$g,{v:Ih,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Th.call(this,e);return[Ph(t,n),n===t]},k(e,t,n){let[r,o,a]=Ih.call(this,{isoYear:Id,isoMonth:Md,isoDay:31});const i=Th.call(this,r),s=o===i;1===(yi(e,Ph(o,i))||yi(Number(t),Number(s))||yi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Th.call(this,a),s=Yh(e,t,i);if(t===(s===i)&&n<=Oh.call(this,a,s))return[a,s]}},K(e){const t=Eh.call(this,e);return t>Eh.call(this,e-1)&&t>Eh.call(this,e+1)},P:Th,j:Dh,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=Dh.call(this,e+o);return a},N:Oh,X:Eh,L(e,t,n){return ms(Mh.call(this,e,t,n))},p:Mh,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(ql);if(n<0)for(;t<1;)t+=Dh.call(this,--e);else{let n;for(;t>(n=Dh.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),Vg="numeric",zg=["timeZoneName"],Kg={month:Vg,day:Vg},Jg={year:Vg,month:Vg},Gg=Object.assign({},Jg,{day:Vg}),Wg={hour:Vg,minute:Vg,second:Vg},qg=Object.assign({},Gg,Wg),Xg=Object.assign({},qg,{timeZoneName:"short"}),Qg=Object.keys(Jg),em=Object.keys(Kg),tm=Object.keys(Gg),nm=Object.keys(Wg),rm=["dateStyle"],om=Qg.concat(rm),am=em.concat(rm),im=tm.concat(rm,["weekday"]),sm=nm.concat(["dayPeriod","timeStyle"]),cm=im.concat(sm),um=cm.concat(zg),hm=zg.concat(sm),lm=zg.concat(im),fm=zg.concat(["day","weekday"],sm),dm=zg.concat(["year","weekday"],sm),gm={},mm=[hl(cm,qg),nc],ym=[hl(um,Xg),nc,0,(e,t)=>{const n=oc(e.timeZone);if(t&&oc(t.timeZone)!==n)throw new RangeError(Vl);return n}],Sm=[hl(cm,qg,zg),cs],pm=[hl(im,Gg,hm),cs],wm=[hl(sm,Wg,lm),e=>os(e)/Sf],vm=[hl(om,Jg,fm),cs,1],bm=[hl(am,Kg,dm),cs,1];let Am;function Im(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(Hl);py(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Qa(t))}function s(t){const n=Sy(t);if(!n||n.branding!==e)throw new TypeError(Hl);return n}return Object.defineProperties(a.prototype,{...ti(oi(i,n)),...ei(oi(i,r)),...ni("Temporal."+e)}),Object.defineProperties(a,{...ei(o),...Qa(e)}),[a,e=>{const t=Object.create(a.prototype);return py(t,e),t},s]}function Mm(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function Tm(e){if(Sy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Em(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=Sy(n)||{},{branding:i}=a,s=i===Xd||t.includes(i)?a:xm(n);return o[r](s)};return n}function Om(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Zg(r):(o=r,Object.assign(Object.create(My),{C:o})))[n](e);var r,o};return t}function Dm(){throw new TypeError("Cannot use valueOf")}function Cm(e){let{calendar:t}=e;return"string"==typeof t?new AS(t):t}function Nm(e,t){if(t=$s(t),qa(e)){const n=Sy(e);if(n&&n.branding===qd)return Cs(t),n;const r=Jm(e);return Vh(hS(r||Uf),!r,e,t)}const n=function(e,t){const n=Pu(Kf(t));if(n)return Nu(n),Qs(Ts(n));const r=Cu(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Qs(ts(a.L(l,f,c)),o)}(Zg,e);return Cs(t),n}function Hm(e,t,n){return Jc(Di(t.call(e,_y(Js(n)))))}function km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ky;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,Wf(e[o]));return r}function Lm(e,t){return"string"==typeof e?fg(e):km(e,t)}function Rm(e){return Lm(e,Ly)}function _m(e){if(qa(e)){const t=Sy(e);if(t)switch(t.branding){case ng:return t;case tg:return Js(t.epochNanoseconds)}}return function(e){const t=_u(e=Yi(e));if(!t)throw new RangeError(of(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(of(e));n=Du(t.offset)}return t.timeZone&&ju(t.timeZone,1),Js(hs(Ms(t),n))}(e)}function Ym(e,t,n){const r=t.B(_m(n).epochNanoseconds,e);return r?_y(Js(r)):null}function Pm(e){return qa(e)?(Sy(e)||{}).timeZone||Fy(e):(e=>zu(function(e){const t=_u(e);return t&&(t.timeZone||t.O&&ag||t.offset)||e}(Kf(e))))(e)}function jm(e,t){if(qa(e)){const n=Sy(e)||{};switch(n.branding){case eg:return Cs(t),n;case Qd:return Cs(t),ec(n);case tg:return Cs(t),il(Rm,n)}return function(e,t){const n=Cs(t);return ec(Jh(Kh(e,Mf,[],1),n))}(e,t)}return Cs(t),function(e){let t,n=(e=>{const t=Eg.exec(e);return t?(Uu(t[10]),Bu(t)):void 0})(Kf(e));if(!n){if(n=_u(e),!n)throw new RangeError(of(e));if(!n.I)throw new RangeError(of(e));if(n.O)throw new RangeError(af("Z"));Nu(n)}if((t=Yu(e))&&Es(t))throw new RangeError(of(e));if((t=Pu(e))&&Es(t))throw new RangeError(of(e));return ec(Ds(n,1))}(e)}function Fm(e){return void 0===e?void 0:jm(e)}function Bm(e,t){if(t=$s(t),qa(e)){const n=Sy(e);return n&&n.branding===Wd?(Cs(t),n):Zh(cS(Km(e)),e,t)}const n=function(e,t){const n=Yu(Kf(t));if(n)return Nu(n),Xs(es(Ts(n)));const r=Cu(t);return Xs(au(e(r.calendar),r))}(Zg,e);return Cs(t),n}function Um(e,t){if(t=$s(t),qa(e)){const n=Sy(e)||{};switch(n.branding){case Qd:return Cs(t),n;case Xd:return Cs(t),Ws({...n,...fd});case tg:return Cs(t),ol(Rm,n)}return function(e,t,n){const r=zh(e,t,Pf,[],If),o=Cs(n);return Ws(ns({...e.dateFromFields(r,Zs(n,o)),...Jh(r,o)}))}(uS(Km(e)),e,t)}const n=function(e){const t=_u(Kf(e));if(!t||t.O)throw new RangeError(of(e));return Ws(ku(t))}(e);return Cs(t),n}function xm(e,t){if(t=$s(t),qa(e)){const n=Sy(e)||{};switch(n.branding){case Xd:return Cs(t),n;case Qd:return Cs(t),qs(n);case tg:return Cs(t),al(Rm,n)}return $h(uS(Km(e)),e,t)}const n=Cu(e);return Cs(t),n}function $m(e,t,n){return Oi(t.call(e,Jy(qs(n,e))))}function Zm(e){return t=>"string"==typeof t?Zg(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,e[o]);return r})(t,e)}function Vm(e){if(qa(e)){const t=Sy(e);return t&&t.branding===rg?t:function(e){const t=Kh(e,Xf);return tc(wu({...rd,...t}))}(e)}return function(e){const t=(e=>{const t=Cg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=pi(o,Af[a])),void 0!==e){if(r)throw new RangeError(af(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(af(e));return t})(e),n=1,t&&(o=xu(t)*(Af[a]/pf),r=1)}return i+s}let n=0,r=0,o=0,a={...ri(qf,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Ti(o,2,qf)};if(!n)throw new RangeError(Cl(qf));return Zu(e[1])<0&&(a=Su(a)),a})(t):void 0})(Kf(e));if(!t)throw new RangeError(of(e));return tc(wu(t))}(e)}function zm(e){if(void 0!==e){if(qa(e)){const t=Sy(e)||{};switch(t.branding){case tg:case Xd:return t;case Qd:return qs(t)}const n=Km(e);return{...xh(Pm,Lm,uS(n),e),calendar:n}}return function(e){const t=_u(Kf(e));if(!t)throw new RangeError(of(e));if(t.timeZone)return Hu(t,t.offset?Du(t.offset):void 0);if(t.O)throw new RangeError(of(e));return Lu(t)}(e)}}function Km(e){return Jm(e)||Uf}function Jm(e){const{calendar:t}=e;if(void 0!==t)return Gm(t)}function Gm(e){return qa(e)?(Sy(e)||{}).calendar||IS(e):(e=>Nh(function(e){const t=_u(e)||Yu(e)||Pu(e);return t?t.calendar:e}(Kf(e))))(e)}function Wm(e,t){if(t=$s(t),qa(e)){const n=Sy(e);if(n&&n.branding===tg)return Ns(t),n;const r=Km(e);return function(e,t,n,r,o,a){const i=zh(n,o,Pf,Ef,Df),s=e(i.timeZone),[c,u,h]=Ns(a),l=n.dateFromFields(i,Zs(a,c)),f=Jh(i,c);return Gs(zc(t(s),{...l,...f},void 0!==i.offset?Du(i.offset):void 0,u,h),s,r)}(Pm,Lm,uS(r),r,e,t)}return function(e,t){const n=_u(Kf(e));if(!n||!n.timeZone)throw new RangeError(of(e));const{offset:r}=n,o=r?Du(r):void 0,[,a,i]=Ns(t);return Hu(n,o,a,i)}(e,t)}function qm(e){return oi((e=>t=>e(Xm(t))),e)}function Xm(e){return hg(e,Rm)}function Qm(){const e=gd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(gd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);CS.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new gd(e,t),r=n.resolvedOptions(),o=r.locale,a=si(Object.keys(t),r),i=Xa(ny),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=Sy(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.U=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&ey(e);"function"==typeof n.value?n.value="constructor"===e?r:o||ty(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function ey(e){return function(){const t=CS.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function ty(e){return function(){return CS.get(this).U[e](...arguments)}}function ny(e){const t=ry[e];if(!t)throw new TypeError(sf(e));return ll(t,Xa(fl))}const ry={Instant:mm,PlainDateTime:Sm,PlainDate:pm,PlainTime:wm,PlainYearMonth:vm,PlainMonthDay:bm},oy=ll(mm),ay=ll(ym),iy=ll(Sm),sy=ll(pm),cy=ll(wm),uy=ll(vm),hy=ll(bm),ly={era:function(e){if(void 0!==e)return Kf(e)},eraYear:Ei,year:Di,month:Oi,daysInMonth:Oi,daysInYear:Oi,inLeapYear:Jf,monthsInYear:Oi},fy={monthCode:Kf},dy={day:Oi},gy={dayOfWeek:Oi,dayOfYear:Oi,weekOfYear:function(e){if(void 0!==e)return Oi(e)},yearOfWeek:Ei,daysInWeek:Oi},my=Object.assign({},ly,fy,dy,gy),yy=new WeakMap,Sy=yy.get.bind(yy),py=yy.set.bind(yy),wy={...Em(ly,[Wd]),...Em(gy,[]),...Em(fy,[Wd,qd]),...Em(dy,[qd])},vy=Om(my),by=Om({...ly,...fy}),Ay=Om({...fy,...dy}),Iy={calendarId:e=>oc(e.calendar)},My=oi(((e,t)=>function(n){const{C:r}=this;return e(r[t](Jy(qs(n,r))))}),my),Ty=ai((e=>t=>t[e]),qf.concat("sign")),Ey=ai(((e,t)=>e=>e[id[t]]),If),Oy={epochSeconds:function(e){return is(e.epochNanoseconds)},epochMilliseconds:nc,epochMicroseconds:function(e){return Wi(e.epochNanoseconds,yf)},epochNanoseconds:function(e){return Wi(e.epochNanoseconds)}},Dy=fi(ci,new Set(["branding"])),[Cy,Ny,Hy]=Im(qd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Id;const a=Fi(t),i=Fi(n),s=e(r);return Qs(ts(Ts({isoYear:Fi(o),isoMonth:a,isoDay:i})),s)}),Gm),{...Iy,...Ay},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return Ny(function(e,t,n,r,o){const a=$s(o);return((e,t,n,r)=>{const o=Gh(e,t,n,Pf);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(dS,e,this,Tm(t),n))},equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Nm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,Ff,Hi(n),Hf))(e(t.calendar),n,r)}(fS,e,this,t))},toLocaleString(e,t,n){const[r,o]=hy(t,n,e);return r.format(o)},toString:Cc,toJSON:e=>Cc(e),valueOf:Dm},{from:(e,t)=>Ny(Nm(e,t))}),ky={getOffsetNanosecondsFor:Hm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,zy(Ws(n,Uf)))].map((e=>Yy(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(zi),Gc(qi(Vi(r[0],r[o-1])))),r}},Ly={getOffsetNanosecondsFor:Hm},[Ry,_y,Yy]=Im(ng,(function(e){return Js(rs(Ji(Pi(e))))}),Oy,{add:(e,t)=>_y(Wc(0,e,Vm(t))),subtract:(e,t)=>_y(Wc(1,e,Vm(t))),until:(e,t,n)=>wS(th(0,e,_m(t),n)),since:(e,t,n)=>wS(th(1,e,_m(t),n)),round:(e,t)=>_y(function(e,t){const[n,r,o]=Ls(t,5,1);return Js(Sc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Gu(e,t)}(e,_m(t)),toZonedDateTime(e,t){const n=Hi(t);return TS(rl(e,Pm(n.timeZone),Gm(n.calendar)))},toZonedDateTimeISO:(e,t)=>TS(rl(e,Pm(t))),toLocaleString(e,t,n){const[r,o]=oy(t,n,e);return r.format(o)},toString:(e,t)=>Mc(Pm,Rm,e,t),toJSON:e=>Mc(Pm,Rm,e),valueOf:Dm},{from:e=>_y(_m(e)),fromEpochSeconds:e=>_y(function(e){return Js(rs(Gi(e,pf)))}(e)),fromEpochMilliseconds:e=>_y(function(e){return Js(rs(Gi(e,Sf)))}(e)),fromEpochMicroseconds:e=>_y(function(e){return Js(rs(Ji(Pi(e),yf)))}(e)),fromEpochNanoseconds:e=>_y(function(e){return Js(rs(Ji(Pi(e))))}(e)),compare:(e,t)=>Gu(_m(e),_m(t))}),[Py,jy]=Im("TimeZone",(e=>{const t=function(e){return zu(Kf(e))}(e);return{branding:"TimeZone",id:t,F:fg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(Um(t)).map((e=>_y(Js(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(_m(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=_m(t).epochNanoseconds;return Fc(km(this,Ly).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uf;const r=_m(t).epochNanoseconds,o=km(this,Ly).getOffsetNanosecondsFor(r);return zy(Ws(gs(r,o),Gm(n)))},getInstantFor(e,t,n){const r=Um(t),o=Hs(n),a=km(this);return _y(Js(Kc(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return Ym(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return Ym(-1,n,t)},equals(e,t){return!!eh(this,Pm(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=Pm(e);return"string"==typeof t?new Py(t):t}}),Fy=Mm(Object.keys(ky)),[By,Uy]=Im(eg,(function(){return ec(Ds(oi(Fi,ri(id,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Ey,{getISOFields:Dy,with(e,t,n){return Uy(function(e,t,n){return ec(((e,t,n)=>{const r=Cs(n);return Jh({...si(Mf,e),...Kh(t,Mf)},r)})(e,t,n))}(this,Tm(t),n))},add:(e,t)=>Uy(tu(0,e,Vm(t))),subtract:(e,t)=>Uy(tu(1,e,Vm(t))),until:(e,t,n)=>wS(sh(0,e,jm(t),n)),since:(e,t,n)=>wS(sh(1,e,jm(t),n)),round:(e,t)=>Uy(function(e,t){const[n,r,o]=Ls(t,5);var a;return ec((a=o,hc(e,fc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Qu(e,t)}(e,jm(t)),toZonedDateTime:(e,t)=>TS(function(e,t,n,r,o){const a=Hi(o),i=t(a.plainDate),s=e(a.timeZone);return Gs(Kc(n(s),{...i,...r}),s,i.calendar)}(Pm,xm,Lm,e,t)),toPlainDateTime:(e,t)=>zy(function(e,t){return Ws(ns({...e,...t}))}(e,xm(t))),toLocaleString(e,t,n){const[r,o]=cy(t,n,e);return r.format(o)},toString:Nc,toJSON:e=>Nc(e),valueOf:Dm},{from:(e,t)=>Uy(jm(e,t)),compare:(e,t)=>Qu(jm(e),jm(t))}),[xy,$y,Zy]=Im(Wd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=Fi(t),i=Fi(n),s=e(r);return Xs(es(Ts({isoYear:a,isoMonth:i,isoDay:Fi(o)})),s)}),Gm),{...Iy,...by},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return $y(function(e,t,n,r,o){const a=$s(o);return Xs(((e,t,n,r)=>{const o=Gh(e,t,n,_f);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(lS,e,this,Tm(t),n))},add:(e,t,n)=>$y(eu(yS,0,e,Vm(t),n)),subtract:(e,t,n)=>$y(eu(yS,1,e,Vm(t),n)),until:(e,t,n)=>wS(ah(SS,0,e,Bm(t),n)),since:(e,t,n)=>wS(ah(SS,1,e,Bm(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Bm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,Yf,Hi(n),Rf))(e(t.calendar),n,r)}(fS,e,this,t))},toLocaleString(e,t,n){const[r,o]=uy(t,n,e);return r.format(o)},toString:Dc,toJSON:e=>Dc(e),valueOf:Dm},{from:(e,t)=>$y(Bm(e,t)),compare:(e,t)=>Xu(Bm(e),Bm(t))}),[Vy,zy]=Im(Qd,fi((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Uf;return Ws(ns(Ms(oi(Fi,ri(cd,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Gm),{...Iy,...vy,...Ey},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return zy(function(e,t,n,r,o){const a=$s(o);return Ws(((e,t,n,r)=>{const o=Gh(e,t,n,Pf,If),a=Cs(r);return ns({...e.dateFromFields(o,Zs(r,a)),...Jh(o,a)})})(e(t.calendar),n,r,a))}(fS,e,this,Tm(t),n))},withCalendar:(e,t)=>zy(sl(e,Gm(t))),withPlainDate:(e,t)=>zy(function(e,t){return Ws({...e,...t},cl(e.calendar,t.calendar))}(e,xm(t))),withPlainTime:(e,t)=>zy(function(e){return Ws({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd})}(e,Fm(t))),add:(e,t,n)=>zy(Xc(gS,0,e,Vm(t),n)),subtract:(e,t,n)=>zy(Xc(gS,1,e,Vm(t),n)),until:(e,t,n)=>wS(rh(mS,0,e,Um(t),n)),since:(e,t,n)=>wS(rh(mS,1,e,Um(t),n)),round:(e,t)=>zy(function(e,t){return Ws(cc(e,...Ls(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!qu(e,t)&&ac(e.calendar,t.calendar)}(e,Um(t)),toZonedDateTime:(e,t,n)=>TS(function(e,t,n,r){const o=((e,t,n,r)=>{const o=Hs(r);return Kc(e(t),n,o)})(e,n,t,r);return Gs(rs(o),n,t.calendar)}(Lm,e,Pm(t),n)),toPlainDate:e=>Jy(qs(e)),toPlainTime:e=>Uy(ec(e)),toPlainYearMonth(e){return $y(function(e,t,n){const r=e(t.calendar);return Xs({...t,...qh(r,n)})}(cS,e,this))},toPlainMonthDay(e){return Ny(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t,n){const[r,o]=iy(t,n,e);return r.format(o)},toString:Ec,toJSON:e=>Ec(e),valueOf:Dm},{from:(e,t)=>zy(Um(e,t)),compare:(e,t)=>qu(Um(e),Um(t))}),[Ky,Jy,Gy]=Im(Xd,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Uf;return qs(ts(Ts(oi(Fi,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Gm),{...Iy,...vy},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return Jy(function(e,t,n,r,o){const a=$s(o);return((e,t,n,r)=>{const o=Gh(e,t,n,Pf);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(fS,e,this,Tm(t),n))},withCalendar:(e,t)=>Jy(sl(e,Gm(t))),add:(e,t,n)=>Jy(Qc(gS,0,e,Vm(t),n)),subtract:(e,t,n)=>Jy(Qc(gS,1,e,Vm(t),n)),until:(e,t,n)=>wS(oh(mS,0,e,xm(t),n)),since:(e,t,n)=>wS(oh(mS,1,e,xm(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,xm(t)),toZonedDateTime(e,t){const n=!qa(t)||t instanceof Py?{timeZone:t}:t;return TS(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):fd;return Gs(Kc(n(a),{...r,...s}),a,r.calendar)}(Pm,jm,Lm,e,n))},toPlainDateTime:(e,t)=>zy(function(e){return Ws(ns({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd}))}(e,Fm(t))),toPlainYearMonth(e){return $y(function(e,t,n){return qh(e(t.calendar),n)}(cS,e,this))},toPlainMonthDay(e){return Ny(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t,n){const[r,o]=sy(t,n,e);return r.format(o)},toString:Oc,toJSON:e=>Oc(e),valueOf:Dm},{from:(e,t)=>Jy(xm(e,t)),compare:(e,t)=>Xu(xm(e),xm(t))}),Wy={fields:(e,t,n)=>[...t.call(e,n)]},qy=Object.assign({dateFromFields:(e,t,n,r)=>Gy(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Xy=Object.assign({yearMonthFromFields:(e,t,n,r)=>Zy(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Qy=Object.assign({monthDayFromFields:(e,t,n,r)=>Hy(t.call(e,Object.assign(Object.create(null),n),r))},Wy),eS={mergeFields:(e,t,n,r)=>Hi(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},tS=Object.assign({},qy,eS),nS=Object.assign({},Xy,eS),rS=Object.assign({},Qy,eS),oS={dateAdd:(e,t,n,r,o)=>Gy(t.call(e,Jy(qs(n,e)),wS(tc(r)),o))},aS=Object.assign({},oS,{dateUntil:(e,t,n,r,o,a)=>vS(t.call(e,Jy(qs(n,e)),Jy(qs(r,e)),Object.assign(Object.create(null),a,{largestUnit:df[o]})))}),iS=Object.assign({},oS,{day:$m}),sS=Object.assign({},aS,{day:$m}),cS=Zm(Xy),uS=Zm(qy),hS=Zm(Qy),lS=Zm(nS),fS=Zm(tS),dS=Zm(rS),gS=Zm(oS),mS=Zm(aS),yS=Zm(iS),SS=Zm(sS),[pS,wS,vS]=Im(rg,(function(){return tc(wu(oi(Bi,ri(qf,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...Ty,blank:function(e){return!e.sign}},{with:(e,t)=>wS(function(e,t){return tc((n=e,r=t,wu({...n,...Kh(r,Xf)})));var n,r}(e,t)),negated:e=>wS(yu(e)),abs:e=>wS(function(e){return-1===e.sign?yu(e):e}(e)),add:(e,t,n)=>wS(mu(zm,mS,Lm,0,e,Vm(t),n)),subtract:(e,t,n)=>wS(mu(zm,mS,Lm,1,e,Vm(t),n)),round:(e,t)=>wS(function(e,t,n,r,o){const a=Tu(r),[i,s,c,u,h]=((e,t,n)=>{e=xs(e,Od);let r=Ud(e);const o=n(e[Hd]);let a=js(e);const i=Gd(e,7);let s=Bd(e);if(void 0===r&&void 0===s)throw new RangeError(nf);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ks(r,s),a=Fs(a,s,1),[r,s,a,i,o]})(o,a,e);if(du(Math.max(a,i),h))return tc(wu(((e,t,n,r,o)=>{const a=Sc(bu(e),n,r,o);return{...rd,...Au(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(ef);const[l,f,d]=cu(t,n,h),g=uu(d),m=hu(f,d),y=lu(f,d);let S=0;r.weeks&&7===s&&(S=r.weeks,r={...r,weeks:0});let[p,w]=gu(r,i,l,g,m,y);const v=r.sign,b=pu(p);if(v&&b&&v!==b)throw new RangeError(xl);return b&&(p=yc(p,w,i,s,c,u,l,g,m)),p.weeks+=S,tc(p)}(zm,mS,Lm,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Tu(r),[i,s]=((e,t)=>{const n=t((e=xs(e,Dd))[Hd]);let r=xd(e);return r=Ni(Dd,r),[r,n]})(o,e);if(du(Math.max(i,a),s))return((e,t)=>qi(bu(e),Af[t],1))(r,i);if(!s)throw new RangeError(ef);const[c,u,h]=cu(t,n,s),l=uu(h),f=hu(u,h);return((e,t,n,r,o,a)=>{const i=pu(e),[s,c]=ic(ad(n,e),n,i,r,o,a),u=sc(t,s,c);return e[qf[n]]+u*i})(...gu(r,i,c,l,f,lu(u,h)),i,c,l,f)}(zm,mS,Lm,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):Hc(e)},toString:Hc,toJSON:e=>Hc(e),valueOf:Dm},{from:e=>wS(Vm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(Us(a).relativeTo),s=Math.max(Tu(r),Tu(o));if(hi(qf,r,o))return 0;if(du(s,i))return zi(bu(r),bu(o));if(!i)throw new RangeError(ef);const[c,u,h]=cu(t,n,i),l=uu(h),f=hu(u,h);return zi(l(f(c,r)),l(f(c,o)))}(zm,gS,Lm,Vm(e),Vm(t),n)}),bS={toString:e=>e.id,toJSON:e=>e.id,...wy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return Jy(qs(a.dateAdd(xm(t),Vm(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return wS(tc(o.dateUntil(xm(t),xm(n),function(e){return e=Us(e),Ud(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Jy($h(o,t,n,function(e){return e===Uf?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return $y(Zh(o,t,n,function(e){return e===Uf?Hf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Ny(Vh(o,0,t,n,function(e){return e===Uf?Rf:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(Pf),o=[];for(const e of t){if(Kf(e),!r.has(e))throw new RangeError(Ol(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(ui(Ci(t)),ui(Ci(n)))}},[AS]=Im("Calendar",(e=>{const t=function(e){return Nh(Kf(e))}(e);return{branding:"Calendar",id:t,F:Zg(t)}}),{id:e=>e.id},bS,{from(e){const t=Gm(e);return"string"==typeof t?new AS(t):t}}),IS=Mm(Object.keys(bS).slice(4)),[MS,TS]=Im(tg,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Uf;return Gs(rs(Ji(Pi(n))),t(r),e(o))}),Gm,Pm),{...Oy,...Iy,...qm(vy),...qm(Ey),offset:e=>Fc(Xm(e).offsetNanoseconds),offsetNanoseconds:e=>Xm(e).offsetNanoseconds,timeZoneId:e=>oc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=hg(t,n),[o,a]=dc(r),i=qi(Vi(Kc(n,o),Kc(n,a)),vf,1);if(i<=0)throw new RangeError(xl);return i}(Lm,e)},{getISOFields:e=>function(e,t){const n=hg(t,e);return{calendar:t.calendar,...si(ld,n),offset:Fc(n.offsetNanoseconds),timeZone:t.timeZone}}(Rm,e),getCalendar:Cm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new Py(t):t},with(e,t,n){return TS(function(e,t,n,r,o,a){const i=$s(a),{calendar:s,timeZone:c}=n;return Gs(((e,t,n,r,o)=>{const a=Gh(e,n,r,Pf,Of,Tf),[i,s,c]=Ns(o,2);return zc(t,{...e.dateFromFields(a,Zs(o,i)),...Jh(a,i)},Du(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(fS,Lm,e,this,Tm(t),n))},withCalendar:(e,t)=>TS(sl(e,Gm(t))),withTimeZone:(e,t)=>TS(function(e,t){return{...e,timeZone:t}}(e,Pm(t))),withPlainDate:(e,t)=>TS(function(e,t,n){const r=t.timeZone,o=e(r),a={...hg(t,o),...n},i=cl(t.calendar,n.calendar);return Gs(zc(o,a,a.offsetNanoseconds,2),r,i)}(Lm,e,xm(t))),withPlainTime:(e,t)=>TS(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fd;const r=t.timeZone,o=e(r),a={...hg(t,o),...n};return Gs(zc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(Lm,e,Fm(t))),add:(e,t,n)=>TS(qc(gS,Lm,0,e,Vm(t),n)),subtract:(e,t,n)=>TS(qc(gS,Lm,1,e,Vm(t),n)),until:(e,t,n)=>wS(tc(nh(mS,Lm,0,e,Wm(t),n))),since:(e,t,n)=>wS(tc(nh(mS,Lm,1,e,Wm(t),n))),round:(e,t)=>TS(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=Ls(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=hg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=Kc(t,a),u=Kc(t,i);if(Ki(s,c,u))throw new RangeError(xl);return vc(sc(s,c,u),r)?u:c})(dc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=zc(u,cc(gs(r,e),i,s,c),e,2,0,1)}return Gs(r,o,a)}(Lm,e,t)),startOfDay:e=>TS(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Kc(t,e(hg(n,t))))(gc,e(n),t);return Gs(o,n,r)}(Lm,e)),equals:(e,t)=>function(e,t){return!Wu(e,t)&&!!eh(e.timeZone,t.timeZone)&&ac(e.calendar,t.calendar)}(e,Wm(t)),toInstant:e=>_y(function(e){return Js(e.epochNanoseconds)}(e)),toPlainDateTime:e=>zy(ol(Rm,e)),toPlainDate:e=>Jy(al(Rm,e)),toPlainTime:e=>Uy(il(Rm,e)),toPlainYearMonth(e){return $y(function(e,t,n){return qh(e(t.calendar),n)}(cS,e,this))},toPlainMonthDay(e){return Ny(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=ay(t,n,e);return r.format(o)},toString:(e,t)=>Tc(Rm,e,t),toJSON:e=>Tc(Rm,e),valueOf:Dm},{from:(e,t)=>TS(Wm(e,t)),compare:(e,t)=>Wu(Wm(e),Wm(t))}),ES=Object.defineProperties({},{...ni("Temporal.Now"),...ei({timeZoneId:()=>yl(),instant:()=>_y(Js(ml())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return TS(Gs(ml(),Pm(t),Gm(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return TS(Gs(ml(),Pm(e),Uf))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return zy(Ws(gl(Rm(Pm(t))),Gm(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return zy(Ws(gl(Rm(Pm(e))),Uf))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return Jy(qs(gl(Rm(Pm(t))),Gm(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Jy(qs(gl(Rm(Pm(e))),Uf))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Uy(ec(gl(Rm(Pm(e)))))}})}),OS=Object.defineProperties({},{...ni("Temporal"),...ei({PlainYearMonth:xy,PlainMonthDay:Cy,PlainDate:Ky,PlainTime:By,PlainDateTime:Vy,ZonedDateTime:MS,Instant:Ry,Calendar:AS,TimeZone:Py,Duration:pS,Now:ES})}),DS=Qm(),CS=new WeakMap;function NS(e){return e*Math.PI/180}function HS(e){return 180*e/Math.PI}Object.create(Intl),ei({DateTimeFormat:DS});class kS{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}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 LS=6356.9;class RS{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(RS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(RS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(RS.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(RS.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(RS.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(RS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(RS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(RS.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(RS.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(RS.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 HS(Math.acos(LS/(LS+e/1e3)))}adjustZenith(e,t){let n=e;return e===RS.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=RS.getSunriseUTC(RS.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=RS.getSunsetUTC(RS.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}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 RS.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 a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;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 OS.PlainTime(o,a,i,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),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-RS.JULIAN_DAY_JAN_1_2000)/RS.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*RS.JULIAN_DAYS_PER_CENTURY+RS.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=NS(RS.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 RS.getSunGeometricMeanLongitude(e)+RS.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return RS.getSunTrueLongitude(e)-.00569-.00478*Math.sin(NS(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 RS.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(NS(t))}static getSunDeclination(e){const t=RS.getObliquityCorrection(e),n=RS.getSunApparentLongitude(e),r=Math.sin(NS(t))*Math.sin(NS(n));return HS(Math.asin(r))}static getEquationOfTime(e){const t=RS.getObliquityCorrection(e),n=RS.getSunGeometricMeanLongitude(e),r=RS.getEarthOrbitEccentricity(e),o=RS.getSunGeometricMeanAnomaly(e);let a=Math.tan(NS(t)/2);a*=a;const i=Math.sin(2*NS(n)),s=Math.sin(NS(o));return 4*HS(a*i-2*r*s+4*r*a*s*Math.cos(2*NS(n))-.5*a*a*Math.sin(4*NS(n))-1.25*r*r*Math.sin(2*NS(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=NS(e),o=NS(t);return Math.acos(Math.cos(NS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=NS(e),o=NS(t);return-Math.acos(Math.cos(NS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=RS.getJulianDay(e.toPlainDate()),o=RS.getJulianCenturiesFromJulianDay(r),a=RS.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=NS(n-i),c=NS(RS.getSunDeclination(o)),u=NS(t);return HS(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=RS.getJulianDay(e.toPlainDate()),o=RS.getJulianCenturiesFromJulianDay(r),a=RS.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=NS(n-i),c=NS(RS.getSunDeclination(o)),u=NS(t);return HS(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=RS.getJulianCenturiesFromJulianDay(e),a=RS.getSolarNoonUTC(o,n),i=RS.getJulianCenturiesFromJulianDay(e+a/1440);let s=RS.getEquationOfTime(i),c=RS.getSunDeclination(i),u=RS.getSunHourAngleAtSunrise(t,c,r),h=n-HS(u),l=4*h,f=720+l-s;const d=RS.getJulianCenturiesFromJulianDay(RS.getJulianDayFromJulianCenturies(o)+f/1440);return s=RS.getEquationOfTime(d),c=RS.getSunDeclination(d),u=RS.getSunHourAngleAtSunrise(t,c,r),h=n-HS(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=RS.getJulianCenturiesFromJulianDay(RS.getJulianDayFromJulianCenturies(e)+t/360);let r=RS.getEquationOfTime(n);const o=720+4*t-r,a=RS.getJulianCenturiesFromJulianDay(RS.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=RS.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=RS.getJulianCenturiesFromJulianDay(e),a=RS.getSolarNoonUTC(o,n),i=RS.getJulianCenturiesFromJulianDay(e+a/1440);let s=RS.getEquationOfTime(i),c=RS.getSunDeclination(i),u=RS.getSunHourAngleAtSunset(t,c,r),h=n-HS(u),l=4*h,f=720+l-s;const d=RS.getJulianCenturiesFromJulianDay(RS.getJulianDayFromJulianCenturies(o)+f/1440);return s=RS.getEquationOfTime(d),c=RS.getSunDeclination(d),u=RS.getSunHourAngleAtSunset(t,c,r),h=n-HS(u),l=4*h,f=720+l-s,f}}RS.GEOMETRIC_ZENITH=90,RS.CIVIL_ZENITH=96,RS.NAUTICAL_ZENITH=102,RS.ASTRONOMICAL_ZENITH=108,RS.JULIAN_DAY_JAN_1_2000=2451545,RS.JULIAN_DAYS_PER_CENTURY=36525;const _S=[["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]],YS=new Map,PS={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"},jS=new Map;class FS extends kS{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}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=jS.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return jS.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return YS.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 PS[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":PS[t]}static addLocation(e,t){const n=e.toLowerCase();return!YS.has(n)&&(YS.set(n,t),!0)}}for(const e of _S){const t=new FS(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);FS.addLocation(t.getName(),t)}const BS=new Map;const US=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function xS(e,t){const n=function(e){const t=BS.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 BS.set(e,n),n}(e).format(t),r=US.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=$S(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function $S(e){return e<0?"-00"+$S(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function ZS(e){return e<10?"0"+e:String(e)}function VS(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,ei({Temporal:OS})),Object.defineProperties(Intl,ei({DateTimeFormat:DS})),Object.defineProperties(Date.prototype,ei({toTemporalInstant:function(){return _y(Js(Gi(this.valueOf(),Sf)))}}));class zS{constructor(t,n,r){const o=e.greg.isDate(n)?n:we.isHDate(n)?n.greg():fe(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new RS(t,a),this.useElevation=Boolean(r)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return VS(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return VS(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return VS(this.noaa.getSeaLevelSunrise())}sunset(){return VS(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return VS(this.noaa.getSeaLevelSunset())}dawn(){return VS(this.noaa.getBeginCivilTwilight())}dusk(){return VS(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new zS(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return VS(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.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return VS(RS.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0);return[t,(this.timeAtAngle(e,!1)-t)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+3*t)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+4*t)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);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()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}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=xS("UTC",t),r=xS(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?"+":"-")+ZS(Math.floor(r/60))+":"+ZS(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:xS(e,t).substring(0,19)+zS.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 KS={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 JS(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===KS[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function GS(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ie.LIGHT_CANDLES;void 0!==e?r||(s&(Ie.LIGHT_CANDLES_TZEIS|Ie.CHANUKAH_CANDLES)?i=!0:s&Ie.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Ie.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new zS(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new qS(t,s,l,u,n.havdalahMins,e,n):new XS(t,s,l,u,e,n)}class WS extends Te{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=zS.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=zS.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=JS(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return le.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return le.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 qS extends WS{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=le.gettext(this.getDesc(),e);if(this.havdalahMins){const n=le.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class XS extends WS{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function QS(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new WS(e,n,r.getFlags(),t,a,r,o)}const ep=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tp=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],np="בַּלַּ֥יְלָה";class rp{constructor(e,t){let n=t-7;n<0&&(n+=we.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),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return we.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=le.gettext(this.getMonthName(),e),o=(n?tp:ep)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=le.gettext("Molad",e),u=le.lookupTranslation("min",e)||"minutes",h=le.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?np:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":np}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?le.hebrewStripNikkud(t):t}const l=JS(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class op extends Te{constructor(e,t,n,r){const o=new rp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Ie.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class ap extends Te{constructor(e,t){if(super(e,`Omer ${t}`,Ie.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";return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){J(e);const[n,r]=G(e),o=K[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){"string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?V(n):le.ordinal(n,e))+" "+le.gettext("day of the Omer",e)}renderBrief(e){return le.gettext("Omer",e)+" "+le.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(J(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return W(this.omer,"he");if("he-x-nonikud"===e){const e=W(this.omer,"he");return le.hebrewStripNikkud(e)}return W(this.omer,"en")}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class ip extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class sp{constructor(e,t){e=+e;const n=we.longCheshvan(e),r=we.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new we(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=we.dayOnOrBefore(6,i+6);const c=this.leap=+we.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(Mp[u])this.key=u,this.theSedraArray=Mp[u];else{const e=this.key=u+ +this.il;this.theSedraArray=Mp[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||le.getLocaleName();let o=le.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+le.gettext(n[1],r)}return o=o.replace(/'/g,"’"),le.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 we(this.firstSaturday+7*t)}if("string"==typeof e){const t=up.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 we(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=up.get(t);if(up.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:we.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=we.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Ep(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[cp[o]],chag:!1,num:o+1};const a=hp(o);return{parsha:[cp[a],cp[a+1]],chag:!1,num:[a+1,a+2]}}}const cp=["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"],up=new Map;for(let e=0;e<cp.length;e++){const t=cp[e];up.set(t,e)}function hp(e){return-e}const lp="Rosh Hashana",fp="Yom Kippur",dp="Sukkot",gp="Sukkot Shabbat Chol ha-Moed",mp="Shmini Atzeret",yp=gp,Sp="Pesach",pp="Pesach I",wp="Pesach Shabbat Chol ha-Moed",vp="Pesach VII",bp="Pesach VIII",Ap="Shavuot";function Ip(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Mp={"020":[51,52].concat(yp,Ip(0,20),hp(21),23,24,Sp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,49),hp(50)),"0220":[51,52].concat(yp,Ip(0,20),hp(21),23,24,Sp,25,hp(26),hp(28),30,hp(31),33,Ap,Ip(34,37),hp(38),40,hp(41),Ip(43,49),hp(50)),"0510":[52].concat(fp,yp,Ip(0,20),hp(21),23,24,pp,bp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,50)),"0511":[52].concat(fp,yp,Ip(0,20),hp(21),23,24,Sp,25,hp(26),hp(28),Ip(30,40),hp(41),Ip(43,50)),"052":[52].concat(fp,gp,Ip(0,24),vp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,50)),"070":[].concat(lp,52,dp,mp,Ip(0,20),hp(21),23,24,vp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,50)),"072":[].concat(lp,52,dp,mp,Ip(0,20),hp(21),23,24,wp,25,hp(26),hp(28),30,hp(31),Ip(33,40),hp(41),Ip(43,49),hp(50)),1200:[51,52].concat(gp,Ip(0,27),wp,Ip(28,33),Ap,Ip(34,37),hp(38),40,hp(41),Ip(43,49),hp(50)),1201:[51,52].concat(gp,Ip(0,27),wp,Ip(28,40),hp(41),Ip(43,49),hp(50)),1220:[51,52].concat(gp,Ip(0,27),pp,bp,Ip(28,40),hp(41),Ip(43,50)),1221:[51,52].concat(gp,Ip(0,27),Sp,Ip(28,50)),150:[52].concat(fp,gp,Ip(0,28),vp,Ip(29,50)),152:[52].concat(fp,gp,Ip(0,28),wp,Ip(29,49),hp(50)),170:[].concat(lp,52,dp,mp,Ip(0,27),wp,Ip(28,40),hp(41),Ip(43,49),hp(50)),1720:[].concat(lp,52,dp,mp,Ip(0,27),wp,Ip(28,33),Ap,Ip(34,37),hp(38),40,hp(41),Ip(43,49),hp(50))};Mp["0221"]=Mp["020"],Mp["0310"]=Mp["0220"],Mp["0311"]=Mp["020"],Mp[1310]=Mp[1220],Mp[1311]=Mp[1221],Mp[1721]=Mp[170];const Tp=new ip({maxSize:400});function Ep(e,t){const n=`${e}-${t?1:0}`;let r=Tp.get(n);return r||(r=new sp(e,t),Tp.set(n,r)),r}class Op extends Te{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("-"),Ie.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||le.getLocaleName(),n=this.parsha;let r=le.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+le.gettext(n[1],e)}r=r.replace(/'/g,"’");return(le.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 Dp=ho,Cp=zn,Np=qn,Hp=ke,kp=function(e,t,n){return n.get&&Dp(n.get,t,{getter:!0}),n.set&&Dp(n.set,t,{setter:!0}),Cp.f(e,t,n)},Lp=function(){var e=Np(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},Rp=He,_p=Ce.RegExp,Yp=_p.prototype,Pp=Hp&&Rp((function(){var e=!0;try{_p(".","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}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Yp,"flags").get.call(t)!==r||n!==r}));Pp&&kp(Yp,"flags",{configurable:!0,get:Lp});const jp=0,Fp=2,Bp=5,Up=6,xp=m.NISAN,$p=m.IYYAR;function Zp(e){if(e<5708)return null;let t;const n=new we(15,xp,e).getDay();return t=n===jp?2:n===Up?3:e<5764?4:n===Fp?5:4,new we(t,$p,e)}const Vp=m.NISAN,zp=m.IYYAR,Kp=m.SIVAN,Jp=m.TAMUZ,Gp=m.AV,Wp=m.ELUL,qp=m.TISHREI,Xp=m.CHESHVAN,Qp=m.KISLEV,ew=m.SHVAT,tw=m.ADAR_II,nw=Ie.CHAG,rw=Ie.LIGHT_CANDLES,ow=Ie.YOM_TOV_ENDS,aw=Ie.CHUL_ONLY,iw=Ie.IL_ONLY,sw=Ie.LIGHT_CANDLES_TZEIS,cw=Ie.CHANUKAH_CANDLES,uw=Ie.MAJOR_FAST,hw=Ie.MINOR_HOLIDAY,lw=Ie.EREV,fw=Ie.CHOL_HAMOED,dw="🫓",gw="🌿🍋",mw="Rosh Hashana II",yw="Erev Yom Kippur",Sw="Yom Kippur",pw="Erev Sukkot",ww="Sukkot I",vw="Sukkot II",bw="Sukkot III (CH''M)",Aw="Sukkot IV (CH''M)",Iw="Sukkot V (CH''M)",Mw="Sukkot VI (CH''M)",Tw="Shmini Atzeret",Ew="Simchat Torah",Ow="Sukkot II (CH''M)",Dw="Sukkot VII (Hoshana Raba)",Cw="Chanukah: 1 Candle",Nw="Tu BiShvat",Hw="Erev Purim",kw="Purim",Lw="Shushan Purim",Rw="Erev Pesach",_w="Pesach I",Yw="Pesach II",Pw="Pesach II (CH''M)",jw="Pesach III (CH''M)",Fw="Pesach IV (CH''M)",Bw="Pesach V (CH''M)",Uw="Pesach VI (CH''M)",xw="Pesach VII",$w="Pesach VIII",Zw="Pesach Sheni",Vw="Lag BaOmer",zw="Erev Shavuot",Kw="Shavuot",Jw="Shavuot I",Gw="Shavuot II",Ww="Tu B'Av",qw="Rosh Hashana LaBehemot",Xw="Erev Rosh Hashana",Qw="Yom Yerushalayim",ev="Ben-Gurion Day",tv="Family Day",nv="Yitzhak Rabin Memorial Day",rv="Herzl Day",ov="Jabotinsky Day",av="Sigd",iv="Yom HaAliyah",sv="Yom HaAliyah School Observance",cv="Hebrew Language Day",uv={ROSH_HASHANA_II:mw,EREV_YOM_KIPPUR:yw,YOM_KIPPUR:Sw,EREV_SUKKOT:pw,SUKKOT_I:ww,SUKKOT_II:vw,SUKKOT_III_CHM:bw,SUKKOT_IV_CHM:Aw,SUKKOT_V_CHM:Iw,SUKKOT_VI_CHM:Mw,SHMINI_ATZERET:Tw,SIMCHAT_TORAH:Ew,SUKKOT_II_CHM:Ow,SUKKOT_VII_HOSHANA_RABA:Dw,CHANUKAH_1_CANDLE:Cw,TU_BISHVAT:Nw,EREV_PURIM:Hw,PURIM:kw,SHUSHAN_PURIM:Lw,EREV_PESACH:Rw,PESACH_I:_w,PESACH_II:Yw,PESACH_II_CHM:Pw,PESACH_III_CHM:jw,PESACH_IV_CHM:Fw,PESACH_V_CHM:Bw,PESACH_VI_CHM:Uw,PESACH_VII:xw,PESACH_VIII:$w,PESACH_SHENI:Zw,LAG_BAOMER:Vw,EREV_SHAVUOT:zw,SHAVUOT:Kw,SHAVUOT_I:Jw,SHAVUOT_II:Gw,TU_BAV:Ww,ROSH_HASHANA_LABEHEMOT:qw,EREV_ROSH_HASHANA:Xw,YOM_YERUSHALAYIM:Qw,BEN_GURION_DAY:ev,FAMILY_DAY:tv,YITZHAK_RABIN_MEMORIAL_DAY:nv,HERZL_DAY:rv,JABOTINSKY_DAY:ov,SIGD:av,YOM_HAALIYAH:iv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:sv,HEBREW_LANGUAGE_DAY:cv},hv=[{mm:qp,dd:2,desc:mw,flags:nw|ow,emoji:"🍏🍯"},{mm:qp,dd:9,desc:yw,flags:lw|rw},{mm:qp,dd:10,desc:Sw,flags:nw|uw|ow},{mm:qp,dd:14,desc:pw,flags:aw|lw|rw,emoji:gw},{mm:qp,dd:15,desc:ww,flags:aw|nw|sw,emoji:gw},{mm:qp,dd:16,desc:vw,flags:aw|nw|ow,emoji:gw},{mm:qp,dd:17,desc:bw,flags:aw|fw,chmDay:1,emoji:gw},{mm:qp,dd:18,desc:Aw,flags:aw|fw,chmDay:2,emoji:gw},{mm:qp,dd:19,desc:Iw,flags:aw|fw,chmDay:3,emoji:gw},{mm:qp,dd:20,desc:Mw,flags:aw|fw,chmDay:4,emoji:gw},{mm:qp,dd:22,desc:Tw,flags:aw|nw|sw},{mm:qp,dd:23,desc:Ew,flags:aw|nw|ow},{mm:qp,dd:14,desc:pw,flags:iw|lw|rw,emoji:gw},{mm:qp,dd:15,desc:ww,flags:iw|nw|ow,emoji:gw},{mm:qp,dd:16,desc:Ow,flags:iw|fw,chmDay:1,emoji:gw},{mm:qp,dd:17,desc:bw,flags:iw|fw,chmDay:2,emoji:gw},{mm:qp,dd:18,desc:Aw,flags:iw|fw,chmDay:3,emoji:gw},{mm:qp,dd:19,desc:Iw,flags:iw|fw,chmDay:4,emoji:gw},{mm:qp,dd:20,desc:Mw,flags:iw|fw,chmDay:5,emoji:gw},{mm:qp,dd:22,desc:Tw,flags:iw|nw|ow},{mm:qp,dd:21,desc:Dw,flags:rw|fw,chmDay:-1,emoji:gw},{mm:Qp,dd:24,desc:Cw,flags:lw|hw|cw,emoji:"🕎1️⃣"},{mm:ew,dd:15,desc:Nw,flags:hw,emoji:"🌳"},{mm:tw,dd:13,desc:Hw,flags:lw|hw,emoji:"🎭️📜"},{mm:tw,dd:14,desc:kw,flags:hw,emoji:"🎭️📜"},{mm:tw,dd:15,desc:Lw,flags:hw,emoji:"🎭️📜"},{mm:Vp,dd:14,desc:Rw,flags:iw|lw|rw,emoji:"🫓🍷"},{mm:Vp,dd:15,desc:_w,flags:iw|nw|ow,emoji:dw},{mm:Vp,dd:16,desc:Pw,flags:iw|fw,chmDay:1,emoji:dw},{mm:Vp,dd:17,desc:jw,flags:iw|fw,chmDay:2,emoji:dw},{mm:Vp,dd:18,desc:Fw,flags:iw|fw,chmDay:3,emoji:dw},{mm:Vp,dd:19,desc:Bw,flags:iw|fw,chmDay:4,emoji:dw},{mm:Vp,dd:20,desc:Uw,flags:iw|fw|rw,chmDay:5,emoji:dw},{mm:Vp,dd:21,desc:xw,flags:iw|nw|ow,emoji:dw},{mm:Vp,dd:14,desc:Rw,flags:aw|lw|rw,emoji:"🫓🍷"},{mm:Vp,dd:15,desc:_w,flags:aw|nw|sw,emoji:"🫓🍷"},{mm:Vp,dd:16,desc:Yw,flags:aw|nw|ow,emoji:dw},{mm:Vp,dd:17,desc:jw,flags:aw|fw,chmDay:1,emoji:dw},{mm:Vp,dd:18,desc:Fw,flags:aw|fw,chmDay:2,emoji:dw},{mm:Vp,dd:19,desc:Bw,flags:aw|fw,chmDay:3,emoji:dw},{mm:Vp,dd:20,desc:Uw,flags:aw|fw|rw,chmDay:4,emoji:dw},{mm:Vp,dd:21,desc:xw,flags:aw|nw|sw,emoji:dw},{mm:Vp,dd:22,desc:$w,flags:aw|nw|ow,emoji:dw},{mm:zp,dd:14,desc:Zw,flags:hw},{mm:zp,dd:18,desc:Vw,flags:hw,emoji:"🔥"},{mm:Kp,dd:5,desc:zw,flags:lw|rw,emoji:"⛰️🌸"},{mm:Kp,dd:6,desc:Kw,flags:iw|nw|ow,emoji:"⛰️🌸"},{mm:Kp,dd:6,desc:Jw,flags:aw|nw|sw,emoji:"⛰️🌸"},{mm:Kp,dd:7,desc:Gw,flags:aw|nw|ow,emoji:"⛰️🌸"},{mm:Gp,dd:15,desc:Ww,flags:hw,emoji:"❤️"},{mm:Wp,dd:1,desc:qw,flags:hw,emoji:"🐑"},{mm:Wp,dd:29,desc:Xw,flags:lw|rw,emoji:"🍏🍯"}],lv=[{firstYear:5727,mm:zp,dd:28,desc:Qw,chul:!0},{firstYear:5737,mm:Qp,dd:6,desc:ev,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:ew,dd:30,desc:tv},{firstYear:5758,mm:Xp,dd:12,desc:nv,friSatMovetoThu:!0},{firstYear:5764,mm:zp,dd:10,desc:rv,satPostponeToSun:!0},{firstYear:5765,mm:Jp,dd:29,desc:ov,satPostponeToSun:!0},{firstYear:5769,mm:Xp,dd:29,desc:av,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Vp,dd:10,desc:iv,chul:!0},{firstYear:5777,mm:Xp,dd:7,desc:sv},{firstYear:5773,mm:m.TEVET,dd:21,desc:cv,friSatMovetoThu:!0}],fv=Ie.CHAG,dv=Ie.IL_ONLY,gv=Ie.LIGHT_CANDLES_TZEIS,mv=Ie.CHANUKAH_CANDLES,yv=Ie.MINOR_FAST,Sv=Ie.SPECIAL_SHABBAT,pv=Ie.MODERN_HOLIDAY,wv=Ie.MAJOR_FAST,vv=Ie.MINOR_HOLIDAY,bv=Ie.EREV,Av="Shabbat Shuva",Iv="Chag HaBanot",Mv="Shabbat Shekalim",Tv="Shabbat Zachor",Ev="Ta'anit Esther",Ov="Shabbat Parah",Dv="Shabbat HaChodesh",Cv="Shabbat HaGadol",Nv="Ta'anit Bechorot",Hv="Leil Selichot",kv="Purim Meshulash",Lv="Purim Katan",Rv="Shushan Purim Katan",_v="Yom HaShoah",Yv="Yom HaZikaron",Pv="Yom HaAtzma'ut",jv="Tzom Gedaliah",Fv="Tzom Tammuz",Bv="Shabbat Chazon",Uv="Erev Tish'a B'Av",xv="Tish'a B'Av",$v="Shabbat Nachamu",Zv="Shabbat Shirah",Vv="Birkat Hachamah",zv="Chanukah: 8th Day",Kv="Asara B'Tevet",Jv={...uv,SHABBAT_SHUVA:Av,CHAG_HABANOT:Iv,SHABBAT_SHEKALIM:Mv,SHABBAT_ZACHOR:Tv,TAANIT_ESTHER:Ev,SHABBAT_PARAH:Ov,SHABBAT_HACHODESH:Dv,SHABBAT_HAGADOL:Cv,TAANIT_BECHOROT:Nv,LEIL_SELICHOT:Hv,PURIM_MESHULASH:kv,PURIM_KATAN:Lv,SHUSHAN_PURIM_KATAN:Rv,YOM_HASHOAH:_v,YOM_HAZIKARON:Yv,YOM_HAATZMA_UT:Pv,TZOM_GEDALIAH:jv,TZOM_TAMMUZ:Fv,SHABBAT_CHAZON:Bv,EREV_TISHA_BAV:Uv,TISHA_BAV:xv,SHABBAT_NACHAMU:$v,SHABBAT_SHIRAH:Zv,BIRKAT_HACHAMAH:Vv,CHANUKAH_8TH_DAY:zv,ASARA_BTEVET:Kv};class Gv extends Te{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()&dv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Sv?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case uv.LAG_BAOMER:case Hv:case uv.PESACH_SHENI:case uv.EREV_PURIM:case Lv:case uv.SHUSHAN_PURIM:case uv.TU_BAV:case uv.TU_BISHVAT:case uv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"];default:return["holiday","major"]}}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Wv="Rosh Chodesh";class qv extends Gv{constructor(e,t){super(e,`${Wv} ${t}`,Ie.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=le.gettext(t,e).replace(/'/g,"’");return le.gettext(Wv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Xv extends Gv{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const Qv="Shabbat Mevarchim Chodesh";class eb extends Te{constructor(e,t,n){if(super(e,`${Qv} ${t}`,Ie.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==we.monthsInYear(t)?ob:n+1,o=new rp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=le.gettext(this.monthName,e).replace(/'/g,"’");return le.gettext(Qv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class tb extends Gv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return le.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const nb="Yom Kippur Katan";class rb extends Gv{constructor(e,t){super(e,`${nb} ${t}`,Ie.MINOR_FAST|Ie.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){const t=le.gettext(this.nextMonthName,e).replace(/'/g,"’");return le.gettext(nb,e)+" "+t}renderBrief(e){return le.gettext(nb,e)}url(){}}const ob=m.NISAN,ab=m.TAMUZ,ib=m.AV,sb=m.TISHREI,cb=m.KISLEV,ub=m.TEVET,hb=m.ADAR_I,lb=m.ADAR_II,fb={emoji:"🇮🇱"},db=new ip({maxSize:400}),gb=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function mb(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=db.get(e);if(t)return t;const n=new we(1,sb,e),r=new we(15,ob,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&bv?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of hv){const n=new we(t.dd,t.mm,e),r=new Gv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new tb(n,e,fv|gv)),a(new Gv(new we(3+(4==n.getDay()),sb,e),jv,yv)),a(new Gv(new we(we.dayOnOrBefore(6,7+n.abs())),Av,Sv));const i=we.shortKislev(e)?new we(1,ub,e):new we(30,cb,e);a(new Gv(i,Iv,vv));for(let t=2;t<=8;t++){const n=new we(23+t,cb,e);a(new Gv(n,`Chanukah: ${t} Candles`,vv|mv,{chanukahDay:t-1,emoji:"🕎"+gb[t]}))}a(new Gv(new we(32,cb,e),zv,vv,{chanukahDay:8,emoji:"🕎"})),a(new Xv(new we(10,ub,e),Kv,yv));const s=r.abs();a(new Gv(new we(we.dayOnOrBefore(6,s-43)),Mv,Sv),new Gv(new we(we.dayOnOrBefore(6,s-30)),Tv,Sv),new Gv(new we(s-(2==r.getDay()?33:31)),Ev,yv)),a(new Gv(new we(we.dayOnOrBefore(6,s-14)-7),Ov,Sv),new Gv(new we(we.dayOnOrBefore(6,s-14)),Dv,Sv),new Gv(new we(we.dayOnOrBefore(6,s-1)),Cv,Sv),new Gv(6==r.prev().getDay()?r.onOrBefore(4):new we(14,ob,e),Nv,yv)),a(new Gv(new we(we.dayOnOrBefore(6,new we(1,sb,e+1).abs()-4)),Hv,vv,{emoji:"🕍"})),0==r.getDay()&&a(new Gv(new we(16,lb,e),kv,vv)),we.isLeapYear(e)&&(a(new Gv(new we(14,hb,e),Lv,vv,{emoji:"🎭️"})),a(new Gv(new we(15,hb,e),Rv,vv,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new we(27,xp,e);return t.getDay()===Bp?t=new we(26,xp,e):t.getDay()===jp&&(t=new we(28,xp,e)),t}(e);c&&a(new Gv(c,_v,pv));const u=Zp(e);u&&a(new Gv(u,Yv,pv,fb),new Gv(u.next(),Pv,pv,fb));for(const t of lv)if(e>=t.firstYear){let n=new we(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new we(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?pv:pv|dv,i=new Gv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let h,l=new we(17,ab,e);6==l.getDay()&&(l=new we(18,ab,e),h={observed:!0}),a(new Gv(l,Fv,yv,h));let f,d=new we(9,ib,e),g=xv;6==d.getDay()&&(d=d.next(),f={observed:!0},g+=" (observed)");const y=d.abs();a(new Gv(new we(we.dayOnOrBefore(6,y)),Bv,Sv),new Gv(d.prev(),Uv,bv|wv,f),new Gv(d,g,wv,f),new Gv(new we(we.dayOnOrBefore(6,y+7)),$v,Sv));const S=we.monthsInYear(e);for(let t=1;t<=S;t++){const n=we.getMonthName(t,e);30==(t==ob?we.daysInMonth(we.monthsInYear(e-1),e-1):we.daysInMonth(t-1,e))?(a(new qv(new we(1,t,e),n)),a(new qv(new we(30,t-1,e),n))):t!==sb&&a(new qv(new we(1,t,e),n))}for(let t=m.IYYAR;t<=S;t++){const n=t+1;if(n===sb||n===m.CHESHVAN||n===ub)continue;let r=new we(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=we.getMonthName(n,e);a(new rb(r,i))}const p=Ep(e,!1).find(15);a(new Gv(p,Zv,Sv));const w=function(e){const t=we.isLeapYear(e),n=t?lb:ob,r=t?20:1,o=we.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 we(w);a(new Gv(e,Vv,vv,{emoji:"☀️"}))}return db.set(e,o),o}const yb=new Map;class Sb{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);yb.set(e,t)}static lookup(e,t){const n=yb.get(e);return"function"==typeof n?n(t):null}}const pb="5.3.9";var wb={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"]}}};le.addLocale("ashkenazi",wb),le.addLocale("a",wb);var vb={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":["יוֹם בן־גוריון"],"Hebrew Language 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:["חֲלָקִים"]}}};le.addLocale("he",vb),le.addLocale("h",vb);const bb=vb.contexts[""],Ab={};for(const[e,t]of Object.entries(bb))Ab[e]=[le.hebrewStripNikkud(t[0])];const Ib={headers:vb.headers,contexts:{"":Ab}};function Mb(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}le.addLocale("he-x-NoNikud",Ib);const Tb={shacharit:!1,mincha:!1,allCongs:!1};function Eb(e,t){return Ob(e,t,!0)}function Ob(e,t,n){const r=function(e,t){const n=we.isLeapYear(e),r=12+n;let o=new we(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new we(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(Mb(1,r).map((t=>new we(1,t,e))),Mb(1,r).filter((t=>30===we.daysInMonth(t,e))).map((t=>new we(30,t,e))),new we(2,m.TISHREI,e),Mb(1,we.daysInMonth(m.NISAN,e)).map((t=>new we(t,m.NISAN,e))),new we(18,m.IYYAR,e),Mb(1,8-(t?1:0)).map((t=>new we(t,m.SIVAN,e))),o,new we(15,m.AV,e),new we(29,m.ELUL,e),Mb(9,24-(t?1:0)).map((t=>new we(t,m.TISHREI,e))),Mb(25,33).map((t=>new we(t,m.KISLEV,e))),new we(15,m.SHVAT,e),new we(14,m.ADAR_II,e),a,n?new we(14,m.ADAR_I,e):[]),s=[].concat(Mb(1,13).map((t=>new we(t,m.SIVAN,e))),Mb(20,31).map((t=>new we(t,m.TISHREI,e))),new we(14,m.IYYAR,e),e>=5708?Zp(e).next():[],e>=5727?new we(28,m.IYYAR,e):[]),c=[].concat(new we(29,m.ELUL,e-1),new we(9,m.TISHREI,e),new we(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return Tb;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=Ob(new we(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:Tb}const Db=m.NISAN,Cb=m.SIVAN,Nb=m.ELUL,Hb=m.TISHREI,kb=Ie.LIGHT_CANDLES,Lb=Ie.YOM_TOV_ENDS,Rb=Ie.CHUL_ONLY,_b=Ie.IL_ONLY,Yb=Ie.LIGHT_CANDLES_TZEIS,Pb=Ie.CHANUKAH_CANDLES,jb=Ie.MINOR_FAST,Fb=Ie.SPECIAL_SHABBAT,Bb=Ie.MODERN_HOLIDAY,Ub=Ie.MAJOR_FAST,xb=Ie.ROSH_CHODESH,$b=Ie.PARSHA_HASHAVUA,Zb=Ie.DAF_YOMI,Vb=Ie.MISHNA_YOMI,zb=Ie.NACH_YOMI,Kb=Ie.YERUSHALMI_YOMI,Jb=Ie.OMER_COUNT,Gb=Ie.SHABBAT_MEVARCHIM,Wb=Ie.MINOR_HOLIDAY,qb=Ie.EREV,Xb=Ie.CHOL_HAMOED,Qb=Ie.YOM_KIPPUR_KATAN,eA=new Set,tA={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 nA={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},rA={281184:40,294801:30,293067:30};function oA(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(we.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function aA(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&xb&&delete e.noRoshChodesh;t&Bb&&delete e.noModern;t&jb&&delete e.noMinorFast;t&Fb&&delete e.noSpecialShabbat;t&$b&&(e.sedrot=!0);t&(Zb|Vb|zb|Kb)&&(e.dailyLearning=e.dailyLearning||{},t&Zb&&(e.dailyLearning.dafYomi=!0),t&Vb&&(e.dailyLearning.mishnaYomi=!0),t&zb&&(e.dailyLearning.nachYomi=!0),t&Kb&&(e.dailyLearning.yerushalmi=1));t&Jb&&(e.omer=!0);t&Gb&&(e.shabbatMevarchim=!0);t&Qb&&(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|=xb|Lb|jb|Fb|Bb|Ub|Wb|qb|Xb|kb|Yb|Pb),e.candlelighting&&(r|=kb|Yb|Lb),e.noRoshChodesh&&(r&=~xb),e.noModern&&(r&=~Bb),e.noMinorFast&&(r&=~jb),e.noSpecialShabbat&&(r&=~Fb,r&=~Gb),r|=n?_b:Rb,e.sedrot&&(r|=$b),e.omer&&(r|=Jb),e.shabbatMevarchim&&(r|=Gb),e.yomKippurKatan&&(r|=Qb),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Zb),t.mishnaYomi&&(r|=Vb),t.nachYomi&&(r|=zb),t.yerushalmi&&(r|=Kb)}return r}const iA=kb|Yb|Pb|Lb,sA=new FS(0,0,!1,"UTC");function cA(e){return e.observedInIsrael()}function uA(e){return e.observedInDiaspora()}class hA{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof FS))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=rA[e];"number"==typeof r&&(n=r);const o=nA[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 n=t.location=t.location||sA,r=t.il=t.il||n.il||!1;if(t.mask=aA(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(!le.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else le.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=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[oA(t.start),oA(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new we).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?we.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new we(1,o||Hb,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new we(1,Hb,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==tA[t]||eA.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),eA.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new we(e),l=h.getFullYear();l!=u&&(u=l,i=mb(u),t.sedrot&&(a=Ep(u,r)),t.omer&&(s=we.hebrew2abs(u,Db,16),c=we.hebrew2abs(u,Cb,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const e of S)y=lA(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Op(h,t.parsha,r,t.num))}const p=t.dailyLearning;if("object"==typeof p)for(const[e,t]of Object.entries(p))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Sb.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new ap(h,e-s+1);if(t.candlelighting){const e=new zS(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const w=h.getMonth(),v=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&w!=Nb&&v>=23&&v<=29){const e=w==we.monthsInYear(l)?Db:w+1;if(t.molad&&o.push(new op(h,l,e,t)),t.shabbatMevarchim){const n=we.getMonthName(e,l),r=new rp(l,e).render(t.locale||"en",t);o.push(new eb(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=GS(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof qS&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Ee(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=B(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=T(r);let a=n.mm,i=n.dd;return a===j&&!o||a===F&&o?a=E(e):a!==R||30!==i||H(e)?a===_&&30===i&&k(e)?(a=Y,i=1):a===j&&30===i&&o&&!T(e)&&(a=L,i=1):(a=_,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new we(n)}static getYahrzeit(e,t){const n=function(e,t){let n=B(t);if(!(e<=n.yy))return n.mm!==R||30!==n.dd||H(n.yy+1)?n.mm===_&&30===n.dd&&k(n.yy+1)?n=M(A(e,Y,1)-1):n.mm===F?n.mm=E(e):n.mm!==j||30!==n.dd||T(e)||(n.dd=30,n.mm=P):n=M(A(e,_,1)-1),n.mm!==R||30!==n.dd||H(e)?n.mm===_&&30===n.dd&&k(e)&&(n.mm=Y,n.dd=1):(n.mm=_,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new we(n)}static getHolidaysForYear(e){return mb(e)}static getHolidaysForYearArray(e,t){const n=mb(e),r=we.hebrew2abs(e,Hb,1),o=we.hebrew2abs(e+1,Hb,1)-1;let a=[];const i=t?cA:uA;for(let e=r;e<=o;e++){const t=new we(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=we.isHDate(e)?e:new we(e),r=n.toString(),o=mb(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?cA:uA;return o.filter(a)}static reformatTimeStr(e,t,n){return JS(e,t,n)}static version(){return pb}static getSedra(e,t){return Ep(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===m.NISAN&&(15===o||16===o)&&e.getFlags()&Ie.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()&Ie.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(hA.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return Eb(e,t)}}function lA(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&Qb||r.noModern&&s&Bb)return e;const c=r.location,u=Boolean(s&Ub),h=Boolean(s&jb);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new zS(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=QS(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=QS(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=QS(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=QS(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&iA){const t=n.getDate();if(e=GS(n,t,r,o,a),s&Pb&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new zS(r,t.greg(),n.useElevation);return QS(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Gv(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&Qb)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Xv,e.CandleLightingEvent=XS,e.DailyLearning=Sb,e.Event=Te,e.GeoLocation=kS,e.HDate=we,e.HavdalahEvent=qS,e.HebrewCalendar=hA,e.HebrewDateEvent=Ee,e.HolidayEvent=Gv,e.Locale=le,e.Location=FS,e.MevarchimChodeshEvent=eb,e.Molad=rp,e.MoladEvent=op,e.NOAACalculator=RS,e.OmerEvent=ap,e.ParshaEvent=Op,e.RoshChodeshEvent=qv,e.RoshHashanaEvent=tb,e.Sedra=sp,e.TimedEvent=WS,e.Zmanim=zS,e.flags=Ie,e.gematriya=V,e.gematriyaStrToNum=z,e.holidayDesc=Jv,e.months=m,e.parshiot=cp,e.version=pb,e}({});
|
|
1
|
+
/*! @hebcal/core v5.3.11 */
|
|
2
|
+
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(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=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={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},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],S=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],p=new Map,w=-1373428,v=365.24682220597794;function A(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function b(e,t,n){if(A(e,"year"),A(t,"month"),A(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=O(t,e);for(let n=a;n<t;n++)r+=O(n,e)}else for(let n=u;n<t;n++)r+=O(n,e);return w+D(e)+r-1}function I(e){return w+D(e)}function M(e){if(A(e,"abs"),(e=Math.trunc(e))<=w)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-w)/v);for(;I(t)<=e;)++t;--t;let n=e<b(t,1,1)?7:1;for(;e>b(t,n,O(n,t));)++n;return{yy:t,mm:n,dd:1+e-b(t,n,1)}}function T(e){return(1+7*e)%19<7}function E(e){return+T(e)+12}function O(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!T(t)||e===h&&!N(t)||e===l&&k(t)?29:30}function C(e,t){if(A(e,"month"),A(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return S[+T(t)][e]}function D(e){const t=p.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),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!T(e)||1==i%7&&a>=16789&&T(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return p.set(e,n),n}function H(e){return D(e+1)-D(e)}function N(e){return H(e)%10==5}function k(e){return H(e)%10==3}const _=m.NISAN,L=m.CHESHVAN,R=m.KISLEV,Y=m.TEVET,P=m.SHVAT,j=m.ADAR_I,B=m.ADAR_II;function F(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 M(t);if(e.greg.isDate(t)){return M(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const U={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},Z=new Map,x=new Map;for(const[e,t]of Object.entries(U))Z.set(e,t),x.set(t,e);function $(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 V(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=$(r);for(const t of e)n+=x.get(t);n+="׳"}const o=$(t%1e3);if(1===o.length)return n+x.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=x.get(o[e]);return n}function z(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*z(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=Z.get(n);"number"==typeof e&&(t+=e)}return t}const K={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function J(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function G(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return J(e),"en"===t?function(e){const[t,n]=G(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ae:12===e?r+="שְׁנֵים "+ae:12<e&&e<20?r+=X[n]+" "+ae:e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1],ae="עָשָׂר";const ie={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},se={h:"he",a:"ashkenazi",s:"en","":"en"},ce=new Map;let ue=null,he=null;class le{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&ce.get(n)||ue)[e];if(null!=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`);ce.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=ce.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){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]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=ce.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.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=ce.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return he=se[t]||t,ue=n,ue}static getLocaleName(){return he}static getLocaleNames(){return Array.from(ce.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||he;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,"")}}function fe(e){throw new TypeError(e)}le.addLocale("en",ie),le.addLocale("s",ie),le.addLocale("",ie),le.useLocale("en");const de="day",ge="week",me="month",ye="year",Se={d:de,w:ge,M:me,y:ye},pe={day:de,week:ge,month:me,year:ye};class we{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:fe(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?M(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return T(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return O(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=we.monthNum(e),ve(this),this}setDate(e){return this.dd=e,ve(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=b(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return b(e,t,n)}getMonthName(){return C(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)||le.getLocaleName(),n=this.getDate(),r=le.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${le.ordinal(n,t)}${we.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=le.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=le.gettext(this.getMonthName(),n),o=this.getFullYear();return V(t)+" "+r+" "+V(o)}before(e){return be(e,this,-1)}onOrBefore(e){return be(e,this,0)}nearest(e){return be(e,this,3)}onOrAfter(e){return be(e,this,6)}after(e){return be(e,this,7)}next(){return new we(this.abs()+1)}prev(){return new we(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new we(this);if(t=we.standardizeUnits(t),t===de)return new we(this.abs()+e);if(t===ge)return new we(this.abs()+7*e);if(t===ye)return new we(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===me){let t=new we(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new we(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=Se[e]||String(e||"").toLowerCase().replace(/s$/,"");return pe[t]||fe(`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(!we.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!we.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 T(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return O(e,t)}static getMonthName(e,t){return C(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):we.monthFromName(e)}static daysInYear(e){return H(e)}static longCheshvan(e){return N(e)}static shortKislev(e){return k(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 m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(le.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(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=z(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=we.monthFromName(a);let s=z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new we(o,i,s)}}function ve(e){Ae(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=O(e.mm,e.yy),e.mm-=1,ve(e));e.dd>O(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=O(e.mm,e.yy),e.mm===E(e.yy)?e.mm=1:e.mm+=1,ve(e));Ae(e)}(e)}function Ae(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,ve(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,ve(e)):(e.mm-=1,ve(e)),delete e.rd}function be(e,t,n){return new we(we.dayOnOrBefore(e,t.abs()+n))}const Ie={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,DAILY_LEARNING:67108864},Me=[[Ie.MAJOR_FAST,"holiday","major","fast"],[Ie.CHANUKAH_CANDLES,"holiday","major"],[Ie.HEBREW_DATE,"hebdate"],[Ie.MINOR_FAST,"holiday","fast"],[Ie.MINOR_HOLIDAY,"holiday","minor"],[Ie.MODERN_HOLIDAY,"holiday","modern"],[Ie.MOLAD,"molad"],[Ie.OMER_COUNT,"omer"],[Ie.PARSHA_HASHAVUA,"parashat"],[Ie.ROSH_CHODESH,"roshchodesh"],[Ie.SHABBAT_MEVARCHIM,"mevarchim"],[Ie.SPECIAL_SHABBAT,"holiday","shabbat"],[Ie.USER_EVENT,"user"]];class Te{constructor(e,t,n,r){if(!we.isHDate(e))throw new TypeError(`Invalid Event date: ${e}`);if("string"!=typeof t)throw new TypeError(`Invalid Event description: ${t}`);this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return le.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Ie.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Ie.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of Me)if(e&t[0])return t.slice(1);return["unknown"]}}class Ee extends Te{constructor(e){super(e,e.toString(),Ie.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=le.gettext(t.getMonthName(),e);return V(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||le.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var Oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ce=function(e){return e&&e.Math===Math&&e},De=Ce("object"==typeof globalThis&&globalThis)||Ce("object"==typeof window&&window)||Ce("object"==typeof self&&self)||Ce("object"==typeof Oe&&Oe)||Ce("object"==typeof Oe&&Oe)||function(){return this}()||Function("return this")(),He={},Ne=function(e){try{return!!e()}catch(e){return!0}},ke=!Ne((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_e=!Ne((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Le=_e,Re=Function.prototype.call,Ye=Le?Re.bind(Re):function(){return Re.apply(Re,arguments)},Pe={},je={}.propertyIsEnumerable,Be=Object.getOwnPropertyDescriptor,Fe=Be&&!je.call({1:2},1);Pe.f=Fe?function(e){var t=Be(this,e);return!!t&&t.enumerable}:je;var Ue,Ze,xe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$e=_e,Ve=Function.prototype,ze=Ve.call,Ke=$e&&Ve.bind.bind(ze,ze),Je=$e?Ke:function(e){return function(){return ze.apply(e,arguments)}},Ge=Je,We=Ge({}.toString),qe=Ge("".slice),Xe=Ne,Qe=function(e){return qe(We(e),8,-1)},et=Object,tt=Je("".split),nt=Xe((function(){return!et("z").propertyIsEnumerable(0)}))?function(e){return"String"===Qe(e)?tt(e,""):et(e)}:et,rt=function(e){return null==e},ot=rt,at=TypeError,it=function(e){if(ot(e))throw new at("Can't call method on "+e);return e},st=nt,ct=it,ut=function(e){return st(ct(e))},ht="object"==typeof document&&document.all,lt=void 0===ht&&void 0!==ht?function(e){return"function"==typeof e||e===ht}:function(e){return"function"==typeof e},ft=lt,dt=function(e){return"object"==typeof e?null!==e:ft(e)},gt=De,mt=lt,yt=function(e,t){return arguments.length<2?(n=gt[e],mt(n)?n:void 0):gt[e]&>[e][t];var n},St=Je({}.isPrototypeOf),pt=De,wt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",vt=pt.process,At=pt.Deno,bt=vt&&vt.versions||At&&At.version,It=bt&&bt.v8;It&&(Ze=(Ue=It.split("."))[0]>0&&Ue[0]<4?1:+(Ue[0]+Ue[1])),!Ze&&wt&&(!(Ue=wt.match(/Edge\/(\d+)/))||Ue[1]>=74)&&(Ue=wt.match(/Chrome\/(\d+)/))&&(Ze=+Ue[1]);var Mt=Ze,Tt=Ne,Et=De.String,Ot=!!Object.getOwnPropertySymbols&&!Tt((function(){var e=Symbol("symbol detection");return!Et(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mt&&Mt<41})),Ct=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=yt,Ht=lt,Nt=St,kt=Object,_t=Ct?function(e){return"symbol"==typeof e}:function(e){var t=Dt("Symbol");return Ht(t)&&Nt(t.prototype,kt(e))},Lt=String,Rt=lt,Yt=function(e){try{return Lt(e)}catch(e){return"Object"}},Pt=TypeError,jt=function(e){if(Rt(e))return e;throw new Pt(Yt(e)+" is not a function")},Bt=rt,Ft=Ye,Ut=lt,Zt=dt,xt=TypeError,$t={exports:{}},Vt=De,zt=Object.defineProperty,Kt=function(e,t){try{zt(Vt,e,{value:t,configurable:!0,writable:!0})}catch(n){Vt[e]=t}return t},Jt=De,Gt=Kt,Wt="__core-js_shared__",qt=$t.exports=Jt[Wt]||Gt(Wt,{});(qt.versions||(qt.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Xt=$t.exports,Qt=Xt,en=function(e,t){return Qt[e]||(Qt[e]=t||{})},tn=it,nn=Object,rn=function(e){return nn(tn(e))},on=Je({}.hasOwnProperty),an=Object.hasOwn||function(e,t){return on(rn(e),t)},sn=Je,cn=0,un=Math.random(),hn=sn(1..toString),ln=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hn(++cn+un,36)},fn=en,dn=an,gn=ln,mn=Ot,yn=Ct,Sn=De.Symbol,pn=fn("wks"),wn=yn?Sn.for||Sn:Sn&&Sn.withoutSetter||gn,vn=function(e){return dn(pn,e)||(pn[e]=mn&&dn(Sn,e)?Sn[e]:wn("Symbol."+e)),pn[e]},An=Ye,bn=dt,In=_t,Mn=function(e,t){var n=e[t];return Bt(n)?void 0:jt(n)},Tn=function(e,t){var n,r;if("string"===t&&Ut(n=e.toString)&&!Zt(r=Ft(n,e)))return r;if(Ut(n=e.valueOf)&&!Zt(r=Ft(n,e)))return r;if("string"!==t&&Ut(n=e.toString)&&!Zt(r=Ft(n,e)))return r;throw new xt("Can't convert object to primitive value")},En=TypeError,On=vn("toPrimitive"),Cn=function(e,t){if(!bn(e)||In(e))return e;var n,r=Mn(e,On);if(r){if(void 0===t&&(t="default"),n=An(r,e,t),!bn(n)||In(n))return n;throw new En("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Dn=_t,Hn=function(e){var t=Cn(e,"string");return Dn(t)?t:t+""},Nn=dt,kn=De.document,_n=Nn(kn)&&Nn(kn.createElement),Ln=function(e){return _n?kn.createElement(e):{}},Rn=Ln,Yn=!ke&&!Ne((function(){return 7!==Object.defineProperty(Rn("div"),"a",{get:function(){return 7}}).a})),Pn=ke,jn=Ye,Bn=Pe,Fn=xe,Un=ut,Zn=Hn,xn=an,$n=Yn,Vn=Object.getOwnPropertyDescriptor;He.f=Pn?Vn:function(e,t){if(e=Un(e),t=Zn(t),$n)try{return Vn(e,t)}catch(e){}if(xn(e,t))return Fn(!jn(Bn.f,e,t),e[t])};var zn={},Kn=ke&&Ne((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jn=dt,Gn=String,Wn=TypeError,qn=function(e){if(Jn(e))return e;throw new Wn(Gn(e)+" is not an object")},Xn=ke,Qn=Yn,er=Kn,tr=qn,nr=Hn,rr=TypeError,or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ir="enumerable",sr="configurable",cr="writable";zn.f=Xn?er?function(e,t,n){if(tr(e),t=nr(t),tr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&cr in n&&!n[cr]){var r=ar(e,t);r&&r[cr]&&(e[t]=n.value,n={configurable:sr in n?n[sr]:r[sr],enumerable:ir in n?n[ir]:r[ir],writable:!1})}return or(e,t,n)}:or:function(e,t,n){if(tr(e),t=nr(t),tr(n),Qn)try{return or(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new rr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ur=zn,hr=xe,lr=ke?function(e,t,n){return ur.f(e,t,hr(1,n))}:function(e,t,n){return e[t]=n,e},fr={exports:{}},dr=ke,gr=an,mr=Function.prototype,yr=dr&&Object.getOwnPropertyDescriptor,Sr=gr(mr,"name"),pr={EXISTS:Sr,PROPER:Sr&&"something"===function(){}.name,CONFIGURABLE:Sr&&(!dr||dr&&yr(mr,"name").configurable)},wr=lt,vr=Xt,Ar=Je(Function.toString);wr(vr.inspectSource)||(vr.inspectSource=function(e){return Ar(e)});var br,Ir,Mr,Tr=vr.inspectSource,Er=lt,Or=De.WeakMap,Cr=Er(Or)&&/native code/.test(String(Or)),Dr=ln,Hr=en("keys"),Nr=function(e){return Hr[e]||(Hr[e]=Dr(e))},kr={},_r=Cr,Lr=De,Rr=dt,Yr=lr,Pr=an,jr=Xt,Br=Nr,Fr=kr,Ur="Object already initialized",Zr=Lr.TypeError,xr=Lr.WeakMap;if(_r||jr.state){var $r=jr.state||(jr.state=new xr);$r.get=$r.get,$r.has=$r.has,$r.set=$r.set,br=function(e,t){if($r.has(e))throw new Zr(Ur);return t.facade=e,$r.set(e,t),t},Ir=function(e){return $r.get(e)||{}},Mr=function(e){return $r.has(e)}}else{var Vr=Br("state");Fr[Vr]=!0,br=function(e,t){if(Pr(e,Vr))throw new Zr(Ur);return t.facade=e,Yr(e,Vr,t),t},Ir=function(e){return Pr(e,Vr)?e[Vr]:{}},Mr=function(e){return Pr(e,Vr)}}var zr={set:br,get:Ir,has:Mr,enforce:function(e){return Mr(e)?Ir(e):br(e,{})},getterFor:function(e){return function(t){var n;if(!Rr(t)||(n=Ir(t)).type!==e)throw new Zr("Incompatible receiver, "+e+" required");return n}}},Kr=Je,Jr=Ne,Gr=lt,Wr=an,qr=ke,Xr=pr.CONFIGURABLE,Qr=Tr,eo=zr.enforce,to=zr.get,no=String,ro=Object.defineProperty,oo=Kr("".slice),ao=Kr("".replace),io=Kr([].join),so=qr&&!Jr((function(){return 8!==ro((function(){}),"length",{value:8}).length})),co=String(String).split("String"),uo=fr.exports=function(e,t,n){"Symbol("===oo(no(t),0,7)&&(t="["+ao(no(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Wr(e,"name")||Xr&&e.name!==t)&&(qr?ro(e,"name",{value:t,configurable:!0}):e.name=t),so&&n&&Wr(n,"arity")&&e.length!==n.arity&&ro(e,"length",{value:n.arity});try{n&&Wr(n,"constructor")&&n.constructor?qr&&ro(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=eo(e);return Wr(r,"source")||(r.source=io(co,"string"==typeof t?t:"")),e};Function.prototype.toString=uo((function(){return Gr(this)&&to(this).source||Qr(this)}),"toString");var ho=fr.exports,lo=lt,fo=zn,go=ho,mo=Kt,yo={},So=Math.ceil,po=Math.floor,wo=Math.trunc||function(e){var t=+e;return(t>0?po:So)(t)},vo=wo,Ao=function(e){var t=+e;return t!=t||0===t?0:vo(t)},bo=Ao,Io=Math.max,Mo=Math.min,To=Ao,Eo=Math.min,Oo=function(e){var t=To(e);return t>0?Eo(t,9007199254740991):0},Co=ut,Do=function(e,t){var n=bo(e);return n<0?Io(n+t,0):Mo(n,t)},Ho=function(e){return Oo(e.length)},No=function(e){return function(t,n,r){var o=Co(t),a=Ho(o);if(0===a)return!e&&-1;var i,s=Do(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ko={includes:No(!0),indexOf:No(!1)},_o=an,Lo=ut,Ro=ko.indexOf,Yo=kr,Po=Je([].push),jo=function(e,t){var n,r=Lo(e),o=0,a=[];for(n in r)!_o(Yo,n)&&_o(r,n)&&Po(a,n);for(;t.length>o;)_o(r,n=t[o++])&&(~Ro(a,n)||Po(a,n));return a},Bo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fo=jo,Uo=Bo.concat("length","prototype");yo.f=Object.getOwnPropertyNames||function(e){return Fo(e,Uo)};var Zo={};Zo.f=Object.getOwnPropertySymbols;var xo=yt,$o=yo,Vo=Zo,zo=qn,Ko=Je([].concat),Jo=xo("Reflect","ownKeys")||function(e){var t=$o.f(zo(e)),n=Vo.f;return n?Ko(t,n(e)):t},Go=an,Wo=Jo,qo=He,Xo=zn,Qo=Ne,ea=lt,ta=/#|\.prototype\./,na=function(e,t){var n=oa[ra(e)];return n===ia||n!==aa&&(ea(t)?Qo(t):!!t)},ra=na.normalize=function(e){return String(e).replace(ta,".").toLowerCase()},oa=na.data={},aa=na.NATIVE="N",ia=na.POLYFILL="P",sa=na,ca=De,ua=He.f,ha=lr,la=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(lo(n)&&go(n,a,r),r.global)o?e[t]=n:mo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:fo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},fa=Kt,da=function(e,t,n){for(var r=Wo(t),o=Xo.f,a=qo.f,i=0;i<r.length;i++){var s=r[i];Go(e,s)||n&&Go(n,s)||o(e,s,a(t,s))}},ga=sa,ma={},ya=jo,Sa=Bo,pa=Object.keys||function(e){return ya(e,Sa)},wa=ke,va=Kn,Aa=zn,ba=qn,Ia=ut,Ma=pa;ma.f=wa&&!va?Object.defineProperties:function(e,t){ba(e);for(var n,r=Ia(t),o=Ma(t),a=o.length,i=0;a>i;)Aa.f(e,n=o[i++],r[n]);return e};var Ta,Ea=yt("document","documentElement"),Oa=qn,Ca=ma,Da=Bo,Ha=kr,Na=Ea,ka=Ln,_a="prototype",La="script",Ra=Nr("IE_PROTO"),Ya=function(){},Pa=function(e){return"<"+La+">"+e+"</"+La+">"},ja=function(e){e.write(Pa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ba=function(){try{Ta=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ba="undefined"!=typeof document?document.domain&&Ta?ja(Ta):(t=ka("iframe"),n="java"+La+":",t.style.display="none",Na.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Pa("document.F=Object")),e.close(),e.F):ja(Ta);for(var r=Da.length;r--;)delete Ba[_a][Da[r]];return Ba()};Ha[Ra]=!0;var Fa=Object.create||function(e,t){var n;return null!==e?(Ya[_a]=Oa(e),n=new Ya,Ya[_a]=null,n[Ra]=e):n=Ba(),void 0===t?n:Ca.f(n,t)},Ua=vn,Za=Fa,xa=zn.f,$a=Ua("unscopables"),Va=Array.prototype;void 0===Va[$a]&&xa(Va,$a,{configurable:!0,value:Za(null)});var za=ko.includes,Ka=function(e){Va[$a][e]=!0};function Ja(e,t,n,r,o){return Ga(t,Wa(e,t),n,r,o)}function Ga(e,t,n,r,o,a){const i=Si(t,n,r);if(o&&t!==i)throw new RangeError(Ml(e,t,n,r,a));return i}function Wa(e,t){const n=e[t];if(void 0===n)throw new TypeError(El(t));return n}function qa(e){return null!==e&&/object|function/.test(typeof e)}function Xa(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Qa(e){return ei({name:e},1)}function ei(e,t){return oi((e=>({value:e,configurable:1,writable:!t})),e)}function ti(e){return oi((e=>({get:e,configurable:1})),e)}function ni(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function ri(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function oi(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function ai(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function ii(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function si(e,t){const n={};for(const r of e)n[r]=t[r];return n}function ci(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function ui(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function hi(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function li(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function fi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function di(e){return e[0].toUpperCase()+e.substring(1)}function gi(e){return e.slice().sort()}function mi(e,t){return String(t).padStart(e,"0")}function yi(e,t){return Math.sign(e-t)}function Si(e,t,n){return Math.min(Math.max(e,t),n)}function pi(e,t){return[Math.floor(e/t),wi(e,t)]}function wi(e,t){return(e%t+t)%t}function vi(e,t){return[Ai(e,t),bi(e,t)]}function Ai(e,t){return Math.trunc(e/t)||0}function bi(e,t){return e%t||0}function Ii(e){return.5===Math.abs(e%1)}function Mi(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=bf[a],s=Af/i,[c,u]=vi(t,s);r+=u*i,o+=c}const[a,i]=vi(r,Af);return[o+a,i]}function Ti(e,t,n){const r={};for(let o=t;o>=0;o--){const t=bf[o];r[n[o]]=Ai(e,t),e=bi(e,t)}return r}function Ei(e){if(void 0!==e)return Ci(e)}function Oi(e){return Li(Ci(e))}function Ci(e){return _i(Gf(e))}function Di(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Hi(e,t){if(null==t)throw new RangeError(El(e));return t}function Ni(e){if(!qa(e))throw new TypeError(Il);return e}function ki(e,t){if(typeof t!==e)throw new TypeError(Tl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function _i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Sl(t,e));return e||0}function Li(e){if(e<=0)throw new RangeError(pl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function Ri(e){if("symbol"==typeof e)throw new TypeError(bl);return String(e)}function Yi(e,t){return qa(e)?String(e):Kf(e,t)}function Pi(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Al(e));return e}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(vl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(wl(t,e));return e}function Bi(e,t){return Math.trunc(ji(e,t))||0}function Fi(e,t){return _i(ji(e,t),t)}function Ui(e,t){return Li(Bi(e,t),t)}function Zi(e,t){let[n,r]=vi(t,Af),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Af),[o,r]}function xi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Zi(e[0]+t[0]*n,e[1]+t[1]*n)}function $i(e,t){return Zi(e[0],e[1]+t)}function Vi(e,t){return xi(t,e,-1)}function zi(e,t){return yi(e[0],t[0])||yi(e[1],t[1])}function Ki(e,t,n){return-1===zi(e,t)||1===zi(e,n)}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Af/t);return[Number(e/n),Number(e%n)*t]}function Gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Af/t,[r,o]=vi(e,n);return[r,o*t]}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Af/t;return BigInt(n)*BigInt(a)+BigInt(o)}function qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=vi(o,t);return r*(Af/t)+(a+(n?i/t:0))}function Xi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pi;const[r,o]=e,[a,i]=n(o,t);return[r*(Af/t)+a,i]}function Qi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function es(e){return Ja(e,"isoYear",Ad,vd,1),e.isoYear===Ad?Ja(e,"isoMonth",4,12,1):e.isoYear===vd&&Ja(e,"isoMonth",1,9,1),e}function ts(e){return ns({...e,...fd,isoHour:12}),e}function ns(e){const t=Ja(e,"isoYear",Ad,vd,1),n=t===Ad?1:t===vd?-1:0;return n&&rs(us({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function rs(e){if(!e||Ki(e,wd,pd))throw new RangeError(ql);return e}function os(e){return Mi(e,5,id)[1]}function as(e){const[t,n]=pi(e,Af);return[Ti(n,5,id),t]}function is(e){return ss(e)[0]}function ss(e){return Xi(e,pf)}function cs(e){return fs(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function us(e){const t=cs(e);if(void 0!==t){const[n,r]=vi(t,gf);return[n,r*Sf+(e.isoMicrosecond||0)*yf+(e.isoNanosecond||0)]}}function hs(e,t){const[n,r]=as(os(e)-t);return rs(us({...e,isoDay:e.isoDay+r,...n}))}function ls(){return fs(...arguments)/mf}function fs(){const[e,t]=ds(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*gf}function ds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Ad?1:e===vd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function gs(e,t){let[n,r]=$i(e,t);r<0&&(r+=Af,n-=1);const[o,a]=pi(r,Sf),[i,s]=pi(a,yf);return ms(n*gf+o,i,s)}function ms(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-Sd)/gf)*Math.sign(e),o=new Date(e-r*gf);return ri(cd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ys(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Ss(){return Md}function ps(e,t){switch(t){case 2:return vs(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function ws(e){return vs(e)?366:365}function vs(e){return e%4==0&&(e%100!=0||e%400==0)}function As(e){const[t,n]=ds(e.isoYear,e.isoMonth,e.isoDay);return wi(t.getUTCDay()-n,7)||7}function bs(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Is(e){const t=cs(e);if(t<Td)return bs(e);const n=Qi(_g(xf),t),{era:r,eraYear:o}=Ah(n,xf);return[r,o]}function Ms(e){return Ts(e),Cs(e,1),e}function Ts(e){return Os(e,1),e}function Es(e){return hi(sd,e,Os(e))}function Os(e,t){const{isoYear:n}=e,r=Ja(e,"isoMonth",1,Ss(),t);return{isoYear:n,isoMonth:r,isoDay:Ja(e,"isoDay",1,ps(n,r),t)}}function Cs(e,t){return ri(id,[Ja(e,"isoHour",0,23,t),Ja(e,"isoMinute",0,59,t),Ja(e,"isoSecond",0,59,t),Ja(e,"isoMillisecond",0,999,t),Ja(e,"isoMicrosecond",0,999,t),Ja(e,"isoNanosecond",0,999,t)])}function Ds(e){return void 0===e?0:xd(Ni(e))}function Hs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Us(e);const n=$d(e),r=Vd(e,t);return[xd(e),r,n]}function Ns(e){return $d(Us(e))}function ks(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Us(t);let i=Ud(t,r,o),s=js(t),c=Gd(t,a);const u=Fd(t,r,o,1);return null==i?i=Math.max(n,u):Ks(i,u),s=Bs(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function _s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=js(e=Zs(e,Od));const o=Gd(e,7);let a=Fd(e,t);return a=Hi(Od,a),r=Bs(r,a,void 0,n),[a,r,o]}function Ls(e){return zd(Us(e))}function Rs(e,t){return Ys(Us(e),t)}function Ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Fs(e);return[Gd(e,4),...Ps(Fd(e,t),n)]}function Ps(e,t){return null!=e?[bf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function js(e){const t=e[Dd];return void 0===t?1:Bi(t,Dd)}function Bs(e,t,n,r){const o=r?Af:bf[t+1];if(o){const n=bf[t];if(o%((e=Ga(Dd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Tl(Dd,e))}else e=Ga(Dd,e,1,n?10**9:1,1);return e}function Fs(e){let t=e[Hd];if(void 0!==t){if("number"!=typeof t){if("auto"===Ri(t))return;throw new RangeError(Tl(Hd,t))}t=Ga(Hd,Math.floor(t),0,9,1)}return t}function Us(e){return void 0===e?{}:Ni(e)}function Zs(e,t){return"string"==typeof e?{[t]:e}:Ni(e)}function xs(e){if(void 0!==e){if(qa(e))return Object.assign(Object.create(null),e);throw new TypeError(Il)}}function $s(e,t){return e&&Object.assign(Object.create(null),e,{overflow:_d[t]})}function Vs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=Ri(a),"auto"===a)return o?r:null;let i=ff[a];if(void 0===i&&(i=nd[a]),void 0===i)throw new RangeError(Hl(e,a,ff));return Ga(e,i,r,n,1,df),i}function zs(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=Ri(o),i=t[a];if(void 0===i)throw new RangeError(Hl(e,a,t));return i}function Ks(e,t){if(t>e)throw new RangeError(rf)}function Js(e){return{branding:ng,epochNanoseconds:e}}function Gs(e,t,n){return{branding:tg,calendar:n,timeZone:t,epochNanoseconds:e}}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Qd,calendar:t,...si(ld,e)}}function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Xd,calendar:t,...si(ud,e)}}function Xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Wd,calendar:t,...si(ud,e)}}function Qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:qd,calendar:t,...si(ud,e)}}function ec(e){return{branding:eg,...si(hd,e)}}function tc(e){return{branding:rg,sign:pu(e),...si(Xf,e)}}function nc(e){return Xi(e.epochNanoseconds,Sf)[0]}function rc(e){return e.epochNanoseconds}function oc(e){return"string"==typeof e?e:Kf(e.id)}function ac(e,t){return e===t||oc(e)===oc(t)}function ic(e,t,n,r,o,a){const i={...rd,[qf[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function sc(e,t,n){const r=qi(Vi(t,n));if(!r)throw new RangeError(Zl);return qi(Vi(t,e))/r}function cc(e,t,n,r){return uc(e,fc(t,n),r)}function uc(e,t,n){const[r,o]=hc(e,t,n);return ns({...su(e,o),...r})}function hc(e,t,n){return as(wc(os(e),t,n))}function lc(e){return wc(e,wf,7)}function fc(e,t){return bf[e]*t}function dc(e){const t=gc(e);return[t,su(t,1)]}function gc(e){return dd(6,e)}function mc(e,t,n){const r=Math.min(Tu(e),6);return bu(pc(Au(e,r),t,n),r)}function yc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Ic:fu(i)&&r<6?bc:Ac;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=pu(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=ad(c,e);r[qf[c]]+=s;const u=qi(Vi(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function Sc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Af)(e);return[wc(t,n,r),0]}return pc(e,fc(t,n),r,o)}function pc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Af,o-=1);const[i,s]=pi(wc(a,t,n),Af);return Zi(o+i,s)}function wc(e,t,n){return vc(e/t,n)*t}function vc(e,t){return og[t](e)}function Ac(e,t,n,r,o,a){const i=pu(e),s=Au(e),c=Sc(s,r,o,a),u=Vi(s,c),h=Math.sign(c[0]-s[0])===i,l=bu(c,Math.min(n,6));return[{...e,...l},xi(t,u),h]}function bc(e,t,n,r,o,a,i,s,c){const u=pu(e);let[h,l]=Au(e,5);const f=fc(r,o);let d=wc(l,f,a);const[g,m]=ic({...e,...od},6,u,i,s,c),y=d-qi(Vi(g,m));y&&Math.sign(y)!==u?t=$i(g,d):(h+=u,d=wc(y,f,a),t=$i(m,d));const S=Iu(d);return[{...e,...S,days:e.days+h},t,Boolean(h)]}function Ic(e,t,n,r,o,a,i,s,c){const u=pu(e),h=qf[r],l=ad(r,e),f=Ai(e[h],o)*o;l[h]=f;const[d,g]=ic(l,r,o*u,i,s,c),m=f+sc(t,d,g)*u*o,y=wc(m,o,a),S=Math.sign(y-m)===u;return l[h]=y,[l,S?g:d,S]}function Mc(e,t,n,r){const[o,a,i,s]=(e=>{const t=Ys(e=Us(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=pc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return Lc(gs(n,i),a)+(e?Bc(lc(i)):"Z")})(c,t(c?e(o):ag),n.epochNanoseconds,a,i,s)}function Tc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=Us(e);const t=zd(e),n=Fs(e),r=Jd(e),o=Gd(e,4),a=Fd(e,4);return[t,Kd(e),r,o,...Ps(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=pc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return Lc(gs(r,h),u)+Bc(lc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+oc(e)+"]":"")(n,a)+Fc(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Ec(e,t){const[n,r,o,a]=(e=>(e=Us(e),[zd(e),...Ys(e)]))(t);return i=e.calendar,s=n,c=a,Lc(uc(e,o,r),c)+Fc(i,s);var i,s,c}function Oc(e,t){return n=e.calendar,r=e,o=Ls(t),Rc(r)+Fc(n,o);var n,r,o}function Cc(e,t){return kc(e.calendar,Yc,e,Ls(t))}function Dc(e,t){return kc(e.calendar,Pc,e,Ls(t))}function Hc(e,t){const[n,r,o]=Rs(t);return a=o,jc(hc(e,r,n)[0],a);var a}function Nc(e,t){const[n,r,o]=Rs(t,3);return r>1&&(e={...e,...mc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Su(e):e,{hours:o,minutes:a}=r,[i,s]=Xi(Au(r,3),pf,vi);vu(i);const c=Zc(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+_c({Y:$c(r.years),M:$c(r.months),W:$c(r.weeks),D:$c(r.days)})+(o||a||i||u?"T"+_c({H:$c(o),M:$c(a),S:$c(i,u)+c}):"")})(e,o)}function kc(e,t,n,r){const o=oc(e),a=r>1||0===r&&o!==Uf;return 1===r?o===Uf?t(n):Rc(n):a?Rc(n)+Uc(o,2===r):t(n)}function _c(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Lc(e,t){return Rc(e)+"T"+jc(e,t)}function Rc(e){return Yc(e)+"-"+lf(e.isoDay)}function Yc(e){const{isoYear:t}=e;return(t<0||t>9999?xc(t)+mi(6,Math.abs(t)):mi(4,t))+"-"+lf(e.isoMonth)}function Pc(e){return lf(e.isoMonth)+"-"+lf(e.isoDay)}function jc(e,t){const n=[lf(e.isoHour),lf(e.isoMinute)];return-1!==t&&n.push(lf(e.isoSecond)+((e,t,n,r)=>Zc(e*Sf+t*yf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Bc(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=pi(Math.abs(e),vf),[r,o]=pi(n,wf),[a,i]=pi(o,pf);return xc(e)+lf(t)+":"+lf(r)+(a||i?":"+lf(a)+Zc(i):"")}function Fc(e,t){if(1!==t){const n=oc(e);if(t>1||0===t&&n!==Uf)return Uc(n,2===t)}return""}function Uc(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function Zc(e,t){let n=mi(9,e);return n=void 0===t?n.replace(ug,""):n.slice(0,t),n?"."+n:""}function xc(e){return e<0?"-":"+"}function $c(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Vc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=gs(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function zc(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,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return hs(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=us(t);r&&(n=lc(n));for(const t of e){let e=qi(Vi(t,o));if(r&&(e=lc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Gl)}return i?us(t):Kc(e,t,o,s)}function Kc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(Wl);if(r.length)return r[3===n?1:0];const o=us(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor($i(t,-Af));return Gc(e.getOffsetNanosecondsFor($i(t,Af))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(gs(o,i)))[2===n?0:r.length-1]}function Jc(e){if(Math.abs(e)>=Af)throw new RangeError(Kl);return e}function Gc(e){if(e>Af)throw new RangeError(Jl);return e}function Wc(e,t,n){return Js(rs(xi(t.epochNanoseconds,(e=>{if(Mu(e))throw new RangeError(tf);return Au(e,5)})(e?Su(n):n))))}function qc(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...nu(s,i,r,n?Su(o):o,a)}}function Xc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Ws(ru(e(a),n,t?Su(r):r,o),a)}function Qc(e,t,n,r,o){const{calendar:a}=n;return qs(ou(e(a),n,t?Su(r):r,o),a)}function eu(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=au(i,n);t&&(r=yu(r)),r.sign<0&&(s=i.dateAdd(s,{...rd,months:1}),s=su(s,-1));const c=i.dateAdd(s,r,o);return Xs(au(i,c),a)}function tu(e,t,n){return ec(iu(t,e?Su(n):n)[0])}function nu(e,t,n,r,o){const a=Au(r,5);let i=n.epochNanoseconds;if(Mu(r)){const s=hg(n,t);i=xi(Kc(t,{...ou(e,s,{...r,...od},o),...si(id,s)}),a)}else i=xi(i,a),Ds(o);return{epochNanoseconds:rs(i)}}function ru(e,t,n,r){const[o,a]=iu(t,n);return ns({...ou(e,t,{...n,...od,days:n.days+a},r),...o})}function ou(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);Ds(r);const o=n.days+Au(n,5)[0];return o?ts(su(t,o)):t}function au(e,t){return su(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function iu(e,t){const[n,r]=Au(t,5),[o,a]=as(os(e)+r);return[o,n+a]}function su(e,t){return t?{...e,...ms(cs(e)+t*gf)}:e}function cu(e,t,n){const r=e(n.calendar);return fu(n)?[n,r,t(n.timeZone)]:[{...n,...fd},r]}function uu(e){return e?rc:us}function hu(e,t){return t?fi(nu,e,t):fi(ru,e)}function lu(e,t){return t?fi(ch,e,t):fi(uh,e)}function fu(e){return e&&e.epochNanoseconds}function du(e,t){return e<=6-(fu(t)?1:0)}function gu(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function mu(e,t,n,r,o,a,i){const s=e(Us(i).relativeTo),c=Math.max(Tu(o),Tu(a));if(du(c,s))return tc(wu(((e,t,n,r)=>{const o=xi(Au(e),Au(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(ql);return{...rd,...bu(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(ef);r&&(a=Su(a));const[u,h,l]=cu(t,n,s),f=hu(h,l),d=lu(h,l),g=f(u,o);return tc(d(u,f(g,a),c))}function yu(e){return tc(Su(e))}function Su(e){const t={};for(const n of qf)t[n]=-1*e[n]||0;return t}function pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qf,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Ql);n=t}}return n}function wu(e){for(const t of td)Ga(t,e[t],-lg,lg,1);return vu(qi(Au(e),pf)),e}function vu(e){if(!Number.isSafeInteger(e))throw new RangeError(Xl)}function Au(e){return Mi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,qf)}function bu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Ti(r,t,qf);if(o[qf[t]]+=n*(Af/bf[t]),!Number.isFinite(o[qf[t]]))throw new RangeError(ql);return o}function Iu(e){return Ti(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,qf)}function Mu(e){return Boolean(pu(e,ed))}function Tu(e){let t=9;for(;t>0&&!e[qf[t]];t--);return t}function Eu(e,t){return[e,t]}function Ou(e){const t=Math.floor(e/ig)*ig;return[t,t+ig]}function Cu(e){const t=ju(e);if(void 0===t)throw new RangeError(of(e));return t}function Du(e){const t=Ru(Kf(e));if(!t||t.O)throw new RangeError(of(e));return qs(t.I?ku(t):_u(t))}function Hu(e){if(e.calendar!==Uf)throw new RangeError(af(e.calendar))}function Nu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=zu(e.timeZone),a=fg(o);return Gs(zc(a,Ms(e),t,n,r,!a.R,e.O),o,Hh(e.calendar))}function ku(e){return Lu(ns(Ms(e)))}function _u(e){return Lu(ts(Ts(e)))}function Lu(e){return{...e,calendar:Hh(e.calendar)}}function Ru(e){const t=Tg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Bu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Fu(e.slice(5)),...Uu(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function Yu(e){const t=Ig.exec(e);return t?(e=>({isoYear:Bu(e),isoMonth:parseInt(e[4]),isoDay:1,...Uu(e[5])}))(t):void 0}function Pu(e){const t=Mg.exec(e);return t?(e=>({isoYear:Id,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Uu(e[3])}))(t):void 0}function ju(e,t){const n=Og.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(af(n));return Jc((Vu(e[2])*vf+Vu(e[3])*wf+Vu(e[4])*pf+Zu(e[5]||""))*$u(e[1]))})(n,t):void 0}function Bu(e){const t=$u(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(af(-0));return t*n}function Fu(e){const t=Vu(e[3]);return{...as(Zu(e[4]||""))[0],isoHour:Vu(e[1]),isoMinute:Vu(e[2]),isoSecond:60===t?59:t}}function Uu(e){let t,n;const r=[];if(e.replace(Cg,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(af(e))}else{if(n)throw new RangeError(af(e));n=s}return""})),r.length>1&&t)throw new RangeError(af(e));return{timeZone:n,calendar:r[0]||Uf}}function Zu(e){return parseInt(e.padEnd(9,"0"))}function xu(e){return new RegExp(`^${e}$`,"i")}function $u(e){return e&&"+"!==e?-1:1}function Vu(e){return void 0===e?0:parseInt(e)}function zu(e){const t=Ju(e);return"number"==typeof t?Bc(t):t?(e=>{if(Ng.test(e))throw new RangeError(zl);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?di(e).replace(/island|noronha|murdo|rivadavia|urville/,di):e)))).join("/")})(e):ag}function Ku(e){const t=Ju(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:ag}function Ju(e){const t=ju(e=e.toUpperCase(),1);return void 0!==t?t:e!==ag?Hg(e):void 0}function Gu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function Wu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function qu(e,t){return Xu(e,t)||Qu(e,t)}function Xu(e,t){return yi(cs(e),cs(t))}function Qu(e,t){return yi(os(e),os(t))}function eh(e,t){if(e===t)return 1;const n=oc(e),r=oc(t);if(n===r)return 1;try{return Ku(n)===Ku(r)}catch(e){}}function th(e,t,n,r){const o=ks(e,xs(r),3,5),a=fh(t.epochNanoseconds,n.epochNanoseconds,...o);return tc(e?Su(a):a)}function nh(e,t,n,r,o,a){const i=Sh(r.calendar,o.calendar),s=xs(a),[c,u,h,l]=ks(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=zi(d,f);let m;if(g)if(c<6)m=fh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!eh(e,t))throw new RangeError(Vl);return e})(r.timeZone,o.timeZone)),a=e(i);m=hh(a,n,r,o,g,c,s),m=yc(m,d,c,u,h,l,r,rc,fi(nu,a,n))}else m=rd;return tc(n?Su(m):m)}function rh(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=xs(o),[s,c,u,h]=ks(t,i,6),l=us(n),f=us(r),d=zi(f,l);let g;if(d)if(s<=6)g=fh(l,f,s,c,u,h);else{const t=e(a);g=lh(t,n,r,d,s,i),g=yc(g,f,s,c,u,h,n,us,fi(ru,t))}else g=rd;return tc(t?Su(g):g)}function oh(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=xs(o);return ih(t,(()=>e(a)),n,r,...ks(t,i,6,9,6),i)}function ah(e,t,n,r,o){const a=Sh(n.calendar,r.calendar),i=xs(o),s=ks(t,i,9,9,8),c=e(a);return ih(t,(()=>c),au(c,n),au(c,r),...s,i)}function ih(e,t,n,r,o,a,i,s,c){const u=us(n),h=us(r);let l;if(zi(h,u))if(6===o)l=fh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=yc(l,h,o,a,i,s,n,us,fi(ou,e)))}else l=rd;return tc(e?Su(l):l)}function sh(e,t,n,r){const o=xs(r),[a,i,s,c]=ks(e,o,5,5),u=wc(yh(t,n),fc(i,s),c),h={...rd,...Iu(u,a)};return tc(e?Su(h):h)}function ch(e,t,n,r,o,a){const i=zi(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?dh(n.epochNanoseconds,r.epochNanoseconds,o):hh(e,t,n,r,i,o,a):rd}function uh(e,t,n,r,o){const a=us(t),i=us(n),s=zi(i,a);return s?r<=6?dh(a,i,r):lh(e,t,n,s,r,o):rd}function hh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...su(s,u++*-r),...i},f=Kc(e,l),zi(c,f)===-r}const a=hg(t,e),i=si(id,a),s=hg(n,e),c=n.epochNanoseconds;let u=0;const h=yh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(Zl);const d=qi(Vi(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...rd,days:gh(h,l)}):e.dateUntil(s,c,a,i),...Iu(u)}}function lh(e,t,n,r,o,a){let i=t,s=yh(t,n);return Math.sign(s)===-r&&(i=su(t,r),s+=Af*r),{...e.dateUntil(i,n,o,a),...Iu(s)}}function fh(e,t,n,r,o,a){return{...rd,...bu(Sc(Vi(e,t),r,o,a),n)}}function dh(e,t,n){return{...rd,...bu(Vi(e,t),n)}}function gh(e,t){return mh(cs(e),cs(t))}function mh(e,t){return Math.trunc((t-e)/gf)}function yh(e,t){return os(t)-os(e)}function Sh(e,t){if(!ac(e,t))throw new RangeError(xl);return e}function ph(e){function t(e){return((e,t)=>({...Ah(e,t),o:e.month,day:parseInt(e.day)}))(Qi(n,e),r)}const n=_g(e),r=Nh(e);return{id:e,h:wh(t),l:vh(t)}}function wh(e){return Xa((t=>{const n=cs(t);return e(n)}),WeakMap)}function vh(e){const t=e(0).year-bd;return Xa((n=>{let r,o=fs(n-t);const a=[],i=[];do{o+=400*gf}while((r=e(o)).year<=n);do{o+=(1-r.day)*gf,r.year===n&&(a.push(o),i.push(r.o)),o-=gf}while((r=e(o)).year>=n);return{i:a.reverse(),u:uf(i.reverse())}}))}function Ah(e,t){let n,r,o=bh(e);if(e.era){const i=$f[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Vf[a]||a,r=o,o=jh(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function bh(e){return parseInt(e.relatedYear||e.year)}function Ih(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Mh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*gf}function Th(e){const t=Dh(this,e),n=Dh(this,e-1),r=t.length;if(r>n.length){const e=Fh(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Eh(e){return mh(Mh.call(this,e),Mh.call(this,e+1))}function Oh(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),mh(n[t-1],o[r-1])}function Ch(e){return this.l(e).i.length}function Dh(e,t){return Object.keys(e.l(t).u)}function Hh(e){if((e=e.toLowerCase())!==Uf&&e!==Zf&&Nh(e)!==Nh(_g(e).resolvedOptions().calendar))throw new RangeError($l(e));return e}function Nh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function kh(e){return this.m(e)[0]}function _h(e){return this.m(e)[1]}function Lh(e){const[t]=this.v(e);return mh(this.p(t),cs(e))+1}function Rh(e){const t=Lg.exec(e);if(!t)throw new RangeError(Pl(e));return[parseInt(t[1]),Boolean(t[2])]}function Yh(e,t,n){return e+(t||n&&e>=n?1:0)}function Ph(e,t){return e-(t&&e>=t?1:0)}function jh(e,t){return(t+e)*(Math.sign(t)||1)||0}function Bh(e){return $f[Uh(e)]}function Fh(e){return zf[Uh(e)]}function Uh(e){return Nh(e.id||Uf)}function Zh(e,t,n,r){const o=zh(n,r,Pf,[],Cf);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Jh(o),i=e(o.timeZone);return{epochNanoseconds:zc(t(i),{...r,...a},void 0!==o.offset?Cu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...fd}}function xh(e,t,n){const r=zh(e,t,Pf,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function $h(e,t,n,r){const o=zh(e,t,Rf,r);return e.yearMonthFromFields(o,n)}function Vh(e,t,n,r){const o=zh(e,n,Pf,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Id),e.monthDayFromFields(o,r)}function zh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return Kh(t,[...e.fields(n),...o].sort(),r)}function Kh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(Cl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Ol(r));let t=e[r];if(void 0!==t)i=1,jg[r]&&(t=jg[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(El(r));o[r]=Ff[r]}a=r}if(r&&!i)throw new TypeError(Dl(t));return o}function Jh(e,t){return Cs(Bg({...Ff,...e}),t)}function Gh(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Kh(t,i,a);const c=Kh(n,i);return s=e.mergeFields(s,c),Kh(s,i,[])}function Wh(e,t){const n=zh(e,t,Bf);return e.monthDayFromFields(n)}function qh(e,t,n){const r=zh(e,t,Yf);return e.yearMonthFromFields(r,n)}function Xh(e,t,n,r,o){t=si(n=e.fields(n),t),r=Kh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Kh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Qh(e,t){let{era:n,eraYear:r,year:o}=t;const a=Bh(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(_l);if(!a)throw new RangeError(kl);const e=a[n];if(void 0===e)throw new RangeError(Rl(n));const t=jh(r,e);if(void 0!==o&&o!==t)throw new RangeError(Ll);o=t}else if(void 0===o)throw new TypeError(Yl(a));return o}function el(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=Rh(t);let s=Yh(a,i,o);if(i){const t=Fh(e);if(void 0===t)throw new RangeError(Ul);if(t>0){if(s>t)throw new RangeError(Ul);if(void 0===o){if(1===r)throw new RangeError(Ul);s--}}else{if(s!==-t)throw new RangeError(Ul);if(void 0===o&&1===r)throw new RangeError(Ul)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(jl);o=t,r=1}else if(void 0===o)throw new TypeError(Bl);return Ga("month",o,1,e.j(n),r)}function tl(e,t,n,r,o){return Ja(t,"day",1,e.N(r,n),o)}function nl(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function rl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uf;return Gs(e.epochNanoseconds,t,n)}function ol(e,t){return Ws(hg(t,e))}function al(e,t){return qs(hg(t,e))}function il(e,t){return ec(hg(t,e))}function sl(e,t){return{...e,calendar:t}}function cl(e,t){if(e===t)return e;const n=oc(e),r=oc(t);if(n===r||n===Uf)return t;if(r===Uf)return e;throw new RangeError(xl)}function ul(e,t){return n=>n===Uf?e:n===Zf||n===xf?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),kg(n))}function hl(e,t,n){const r=new Set(n);return o=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(o=ci(r,o),e)||Object.assign(o,t),n&&(o.timeZone=ag,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fl;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gm;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...dl(e,h,s)]}}function fl(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(cf);n.timeZone=e}return new gd(t,n)}function dl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Uf)&&e!==t)throw new RangeError(xl)})(oc(e.calendar),t.calendar,o),r(e,t))))}function gl(e){const t=ml();return gs(t,e.getOffsetNanosecondsFor(t))}function ml(){return Gi(Date.now(),Sf)}function yl(){return bm||(bm=(new gd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?ca:u?ca[s]||fa(s,{}):ca[s]&&ca[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=ua(n,r))&&i.value:n[r],!ga(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;da(a,o)}(e.sham||o&&o.sham)&&ha(a,"sham",!0),la(n,r,a,e)}})({target:"Array",proto:!0,forced:Ne((function(){return!Array(1).includes()}))},{includes:function(e){return za(this,e,arguments.length>1?arguments[1]:void 0)}}),Ka("includes");const Sl=(e,t)=>`Non-integer ${e}: ${t}`,pl=(e,t)=>`Non-positive ${e}: ${t}`,wl=(e,t)=>`Non-finite ${e}: ${t}`,vl=e=>`Cannot convert bigint to ${e}`,Al=e=>`Invalid bigint: ${e}`,bl="Cannot convert Symbol to string",Il="Invalid object",Ml=(e,t,n,r,o)=>o?Ml(e,o[t],o[n],o[r]):Tl(e,t)+`; must be between ${n}-${r}`,Tl=(e,t)=>`Invalid ${e}: ${t}`,El=e=>`Missing ${e}`,Ol=e=>`Invalid field ${e}`,Cl=e=>`Duplicate field ${e}`,Dl=e=>"No valid fields: "+e.join(),Hl=(e,t,n)=>Tl(e,t)+"; must be "+Object.keys(n).join(),Nl="Invalid calling context",kl="Forbidden era/eraYear",_l="Mismatching era/eraYear",Ll="Mismatching year/eraYear",Rl=e=>`Invalid era: ${e}`,Yl=e=>"Missing year"+(e?"/era/eraYear":""),Pl=e=>`Invalid monthCode: ${e}`,jl="Mismatching month/monthCode",Bl="Missing month/monthCode",Fl="Cannot guess year",Ul="Invalid leap month",Zl="Invalid protocol results",xl="Mismatching Calendars",$l=e=>`Invalid Calendar: ${e}`,Vl="Mismatching TimeZones",zl="Forbidden ICU TimeZone",Kl="Out-of-bounds offset",Jl="Out-of-bounds TimeZone gap",Gl="Invalid TimeZone offset",Wl="Ambiguous offset",ql="Out-of-bounds date",Xl="Out-of-bounds duration",Ql="Cannot mix duration signs",ef="Missing relativeTo",tf="Cannot use large units",nf="Required smallestUnit or largestUnit",rf="smallestUnit > largestUnit",of=e=>`Cannot parse: ${e}`,af=e=>`Invalid substring: ${e}`,sf=e=>`Cannot format ${e}`,cf="Cannot specify TimeZone",uf=fi(ai,((e,t)=>t)),hf=fi(ai,((e,t,n)=>n)),lf=fi(mi,2),ff={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},df=Object.keys(ff),gf=864e5,mf=1e3,yf=1e3,Sf=1e6,pf=1e9,wf=6e10,vf=36e11,Af=864e11,bf=[1,yf,Sf,pf,wf,vf,Af],If=df.slice(0,6),Mf=gi(If),Tf=["offset"],Ef=["timeZone"],Of=If.concat(Tf),Cf=Of.concat(Ef),Df=["era","eraYear"],Hf=Df.concat(["year"]),Nf=["year"],kf=["monthCode"],_f=["month"].concat(kf),Lf=["day"],Rf=_f.concat(Nf),Yf=kf.concat(Nf),Pf=Lf.concat(Rf),jf=Lf.concat(_f),Bf=Lf.concat(kf),Ff=hf(If,0),Uf="iso8601",Zf="gregory",xf="japanese",$f={[Zf]:{bce:-1,ce:0},[xf]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},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}},Vf={bc:"bce",ad:"ce"},zf={chinese:13,dangi:13,hebrew:-6},Kf=fi(ki,"string"),Jf=fi(ki,"boolean"),Gf=fi(ki,"number"),Wf=fi(ki,"function"),qf=df.map((e=>e+"s")),Xf=gi(qf),Qf=qf.slice(0,6),ed=qf.slice(6),td=ed.slice(1),nd=uf(qf),rd=hf(qf,0),od=hf(Qf,0),ad=fi(li,qf),id=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],sd=["isoDay","isoMonth","isoYear"],cd=id.concat(sd),ud=gi(sd),hd=gi(id),ld=gi(cd),fd=hf(hd,0),dd=fi(li,cd),gd=Intl.DateTimeFormat,md="en-GB",yd=1e8,Sd=yd*gf,pd=[yd,0],wd=[-yd,0],vd=275760,Ad=-271821,bd=1970,Id=1972,Md=12,Td=fs(1868,9,8),Ed=Xa(Is,WeakMap),Od="smallestUnit",Cd="unit",Dd="roundingIncrement",Hd="fractionalSecondDigits",Nd="relativeTo",kd={constrain:0,reject:1},_d=Object.keys(kd),Ld={compatible:0,reject:1,earlier:2,later:3},Rd={reject:0,use:1,prefer:2,ignore:3},Yd={auto:0,never:1,critical:2,always:3},Pd={auto:0,never:1,critical:2},jd={auto:0,never:1},Bd={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Fd=fi(Vs,Od),Ud=fi(Vs,"largestUnit"),Zd=fi(Vs,Cd),xd=fi(zs,"overflow",kd),$d=fi(zs,"disambiguation",Ld),Vd=fi(zs,"offset",Rd),zd=fi(zs,"calendarName",Yd),Kd=fi(zs,"timeZoneName",Pd),Jd=fi(zs,"offset",jd),Gd=fi(zs,"roundingMode",Bd),Wd="PlainYearMonth",qd="PlainMonthDay",Xd="PlainDate",Qd="PlainDateTime",eg="PlainTime",tg="ZonedDateTime",ng="Instant",rg="Duration",og=[Math.floor,e=>Ii(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Ii(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Ii(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Ii(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],ag="UTC",ig=5184e3,sg=ls(1847),cg=ls((new Date).getUTCFullYear()+10),ug=/0+$/,hg=Xa(Vc,WeakMap),lg=2**32-1,fg=Xa((e=>{const t=Ju(e);return"object"==typeof t?new gg(t):new dg(t||0)}));class dg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[hs(e,this.R)]}B(){}}class gg{constructor(e){this.q=(e=>{function t(e){const t=Si(e,a,i),[s,c]=Ou(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=Xa(e),o=Xa(Eu);let a=sg,i=cg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=Si(e,a,i);let[c,u]=Ou(s);const h=ig*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((yi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Qi(e,t*mf);return ls(bh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(is(e))*pf}getPossibleInstantsFor(e){const[t,n]=[ls((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Sf+r.isoMicrosecond*yf+r.isoNanosecond];var r;return this.q.J(t).map((e=>rs($i(Gi(e,pf),n))))}B(e,t){const[n,r]=ss(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Gi(o,pf)}}const mg="([+−-])",yg="(?:[.,](\\d{1,9}))?",Sg=`(?:(?:${mg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,pg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+yg+")?)?",wg=mg+pg,vg=Sg+"-?(\\d{2})(?:[T ]"+pg+"(Z|"+wg+")?)?",Ag="\\[(!?)([^\\]]*)\\]",bg=`((?:${Ag}){0,9})`,Ig=xu(Sg+bg),Mg=xu("(?:--)?(\\d{2})-?(\\d{2})"+bg),Tg=xu(vg+bg),Eg=xu("T?"+pg+"(?:"+wg+")?"+bg),Og=xu(wg),Cg=new RegExp(Ag,"g"),Dg=xu(`${mg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${yg}H)?(?:(\\d+)${yg}M)?(?:(\\d+)${yg}S)?)?`),Hg=Xa((e=>new gd(md,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Ng=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,kg=Xa(ph),_g=Xa((e=>new gd(md,{calendar:e,timeZone:ag,era:"short",year:"numeric",month:"short",day:"numeric"}))),Lg=/^M(\d{2})(L?)$/,Rg={era:Yi,eraYear:Bi,year:Bi,month:Ui,monthCode:Yi,day:Ui},Yg=hf(If,Bi),Pg=hf(qf,Fi),jg=Object.assign({},Rg,Yg,Pg,{offset:Yi}),Bg=fi(ii,If,id),Fg={dateAdd(e,t,n){const r=Ds(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Au(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=Yh(t,r,e.P(a)),i=Ga("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ga("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=cs(e)}return o+=(7*s+c)*gf,ts(ms(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=gh({...e,...fd},{...t,...fd});return 7===n&&([r,o]=vi(o,7)),{...rd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-Yh(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...rd,years:a,months:i,days:s}},dateFromFields(e,t){const n=Ds(t),r=Qh(this,e),o=el(this,e,r,n),a=tl(this,e,o,r,n);return qs(ts(this.L(r,o,a)),this.id||Uf)},yearMonthFromFields(e,t){const n=Ds(t),r=Qh(this,e),o=el(this,e,r,n);return Xs(es(this.L(r,o,1)),this.id||Uf)},monthDayFromFields(e,t){const n=Ds(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=Rh(o),l=Wa(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(Fl);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(jl);r&&(h=Ga("month",h,1,Md,1),l=Ga("day",l,1,ps(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Id:Qh(this,e),h=el(this,e,u,n),l=tl(this,e,h,u,n);const t=this.P(u);c=h===t,s=Ph(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(Fl);[u,h]=o}return Qs(ts(this.L(u,h,l)),this.id||Uf)},fields(e){return Bh(this)&&e.includes("year")?[...e,...Df]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return nl(n,t,_f),Bh(this)&&(nl(n,t,Hf),this.id===xf&&nl(n,t,jf,Df)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:Lh,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+lf(e)+(t?"L":""))(r,o)},dayOfWeek:As,daysInWeek:()=>7},Ug={dayOfYear:Lh,v:ys,p:fs},Zg=Object.assign({},Ug,{weekOfYear:kh,yearOfWeek:_h,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=ws(f+e),r=e||1,o=t(wi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=As(e),a=this.dayOfYear(e),i=wi(o-1,7),s=a-1,c=wi(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),xg={dayOfYear:Lh,v:Ih,p:Mh,weekOfYear:kh,yearOfWeek:_h,m:()=>[]},$g=ul(Object.assign({},Fg,Zg,{v:ys,nn(e){return this.id===Zf?bs(e):this.id===xf?Ed(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Id,e]},K:vs,P(){},j:Ss,V:e=>e*Md,N:ps,X:ws,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:fs,G:(e,t,n)=>(e+=Ai(n,Md),(t+=bi(n,Md))<1?(e--,t+=Md):t>Md&&(e++,t-=Md),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},Fg,xg,{v:Ih,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Th.call(this,e);return[Ph(t,n),n===t]},k(e,t,n){let[r,o,a]=Ih.call(this,{isoYear:Id,isoMonth:Md,isoDay:31});const i=Th.call(this,r),s=o===i;1===(yi(e,Ph(o,i))||yi(Number(t),Number(s))||yi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Th.call(this,a),s=Yh(e,t,i);if(t===(s===i)&&n<=Oh.call(this,a,s))return[a,s]}},K(e){const t=Eh.call(this,e);return t>Eh.call(this,e-1)&&t>Eh.call(this,e+1)},P:Th,j:Ch,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=Ch.call(this,e+o);return a},N:Oh,X:Eh,L(e,t,n){return ms(Mh.call(this,e,t,n))},p:Mh,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(ql);if(n<0)for(;t<1;)t+=Ch.call(this,--e);else{let n;for(;t>(n=Ch.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),Vg="numeric",zg=["timeZoneName"],Kg={month:Vg,day:Vg},Jg={year:Vg,month:Vg},Gg=Object.assign({},Jg,{day:Vg}),Wg={hour:Vg,minute:Vg,second:Vg},qg=Object.assign({},Gg,Wg),Xg=Object.assign({},qg,{timeZoneName:"short"}),Qg=Object.keys(Jg),em=Object.keys(Kg),tm=Object.keys(Gg),nm=Object.keys(Wg),rm=["dateStyle"],om=Qg.concat(rm),am=em.concat(rm),im=tm.concat(rm,["weekday"]),sm=nm.concat(["dayPeriod","timeStyle"]),cm=im.concat(sm),um=cm.concat(zg),hm=zg.concat(sm),lm=zg.concat(im),fm=zg.concat(["day","weekday"],sm),dm=zg.concat(["year","weekday"],sm),gm={},mm=[hl(cm,qg),nc],ym=[hl(um,Xg),nc,0,(e,t)=>{const n=oc(e.timeZone);if(t&&oc(t.timeZone)!==n)throw new RangeError(Vl);return n}],Sm=[hl(cm,qg,zg),cs],pm=[hl(im,Gg,hm),cs],wm=[hl(sm,Wg,lm),e=>os(e)/Sf],vm=[hl(om,Jg,fm),cs,1],Am=[hl(am,Kg,dm),cs,1];let bm;function Im(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(Nl);py(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Qa(t))}function s(t){const n=Sy(t);if(!n||n.branding!==e)throw new TypeError(Nl);return n}return Object.defineProperties(a.prototype,{...ti(oi(i,n)),...ei(oi(i,r)),...ni("Temporal."+e)}),Object.defineProperties(a,{...ei(o),...Qa(e)}),[a,e=>{const t=Object.create(a.prototype);return py(t,e),t},s]}function Mm(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function Tm(e){if(Sy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Em(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=Sy(n)||{},{branding:i}=a,s=i===Xd||t.includes(i)?a:Zm(n);return o[r](s)};return n}function Om(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?$g(r):(o=r,Object.assign(Object.create(My),{C:o})))[n](e);var r,o};return t}function Cm(){throw new TypeError("Cannot use valueOf")}function Dm(e){let{calendar:t}=e;return"string"==typeof t?new bS(t):t}function Hm(e,t){if(t=xs(t),qa(e)){const n=Sy(e);if(n&&n.branding===qd)return Ds(t),n;const r=Jm(e);return Vh(hS(r||Uf),!r,e,t)}const n=function(e,t){const n=Pu(Kf(t));if(n)return Hu(n),Qs(Ts(n));const r=Du(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Qs(ts(a.L(l,f,c)),o)}($g,e);return Ds(t),n}function Nm(e,t,n){return Jc(Ci(t.call(e,Ry(Js(n)))))}function km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ky;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,Wf(e[o]));return r}function _m(e,t){return"string"==typeof e?fg(e):km(e,t)}function Lm(e){return _m(e,_y)}function Rm(e){if(qa(e)){const t=Sy(e);if(t)switch(t.branding){case ng:return t;case tg:return Js(t.epochNanoseconds)}}return function(e){const t=Ru(e=Yi(e));if(!t)throw new RangeError(of(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(of(e));n=Cu(t.offset)}return t.timeZone&&ju(t.timeZone,1),Js(hs(Ms(t),n))}(e)}function Ym(e,t,n){const r=t.B(Rm(n).epochNanoseconds,e);return r?Ry(Js(r)):null}function Pm(e){return qa(e)?(Sy(e)||{}).timeZone||By(e):(e=>zu(function(e){const t=Ru(e);return t&&(t.timeZone||t.O&&ag||t.offset)||e}(Kf(e))))(e)}function jm(e,t){if(qa(e)){const n=Sy(e)||{};switch(n.branding){case eg:return Ds(t),n;case Qd:return Ds(t),ec(n);case tg:return Ds(t),il(Lm,n)}return function(e,t){const n=Ds(t);return ec(Jh(Kh(e,Mf,[],1),n))}(e,t)}return Ds(t),function(e){let t,n=(e=>{const t=Eg.exec(e);return t?(Uu(t[10]),Fu(t)):void 0})(Kf(e));if(!n){if(n=Ru(e),!n)throw new RangeError(of(e));if(!n.I)throw new RangeError(of(e));if(n.O)throw new RangeError(af("Z"));Hu(n)}if((t=Yu(e))&&Es(t))throw new RangeError(of(e));if((t=Pu(e))&&Es(t))throw new RangeError(of(e));return ec(Cs(n,1))}(e)}function Bm(e){return void 0===e?void 0:jm(e)}function Fm(e,t){if(t=xs(t),qa(e)){const n=Sy(e);return n&&n.branding===Wd?(Ds(t),n):$h(cS(Km(e)),e,t)}const n=function(e,t){const n=Yu(Kf(t));if(n)return Hu(n),Xs(es(Ts(n)));const r=Du(t);return Xs(au(e(r.calendar),r))}($g,e);return Ds(t),n}function Um(e,t){if(t=xs(t),qa(e)){const n=Sy(e)||{};switch(n.branding){case Qd:return Ds(t),n;case Xd:return Ds(t),Ws({...n,...fd});case tg:return Ds(t),ol(Lm,n)}return function(e,t,n){const r=zh(e,t,Pf,[],If),o=Ds(n);return Ws(ns({...e.dateFromFields(r,$s(n,o)),...Jh(r,o)}))}(uS(Km(e)),e,t)}const n=function(e){const t=Ru(Kf(e));if(!t||t.O)throw new RangeError(of(e));return Ws(ku(t))}(e);return Ds(t),n}function Zm(e,t){if(t=xs(t),qa(e)){const n=Sy(e)||{};switch(n.branding){case Xd:return Ds(t),n;case Qd:return Ds(t),qs(n);case tg:return Ds(t),al(Lm,n)}return xh(uS(Km(e)),e,t)}const n=Du(e);return Ds(t),n}function xm(e,t,n){return Oi(t.call(e,Jy(qs(n,e))))}function $m(e){return t=>"string"==typeof t?$g(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=fi(t[o],e,e[o]);return r})(t,e)}function Vm(e){if(qa(e)){const t=Sy(e);return t&&t.branding===rg?t:function(e){const t=Kh(e,Xf);return tc(wu({...rd,...t}))}(e)}return function(e){const t=(e=>{const t=Dg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=pi(o,bf[a])),void 0!==e){if(r)throw new RangeError(af(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(af(e));return t})(e),n=1,t&&(o=Zu(t)*(bf[a]/pf),r=1)}return i+s}let n=0,r=0,o=0,a={...ri(qf,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Ti(o,2,qf)};if(!n)throw new RangeError(Dl(qf));return $u(e[1])<0&&(a=Su(a)),a})(t):void 0})(Kf(e));if(!t)throw new RangeError(of(e));return tc(wu(t))}(e)}function zm(e){if(void 0!==e){if(qa(e)){const t=Sy(e)||{};switch(t.branding){case tg:case Xd:return t;case Qd:return qs(t)}const n=Km(e);return{...Zh(Pm,_m,uS(n),e),calendar:n}}return function(e){const t=Ru(Kf(e));if(!t)throw new RangeError(of(e));if(t.timeZone)return Nu(t,t.offset?Cu(t.offset):void 0);if(t.O)throw new RangeError(of(e));return _u(t)}(e)}}function Km(e){return Jm(e)||Uf}function Jm(e){const{calendar:t}=e;if(void 0!==t)return Gm(t)}function Gm(e){return qa(e)?(Sy(e)||{}).calendar||IS(e):(e=>Hh(function(e){const t=Ru(e)||Yu(e)||Pu(e);return t?t.calendar:e}(Kf(e))))(e)}function Wm(e,t){if(t=xs(t),qa(e)){const n=Sy(e);if(n&&n.branding===tg)return Hs(t),n;const r=Km(e);return function(e,t,n,r,o,a){const i=zh(n,o,Pf,Ef,Cf),s=e(i.timeZone),[c,u,h]=Hs(a),l=n.dateFromFields(i,$s(a,c)),f=Jh(i,c);return Gs(zc(t(s),{...l,...f},void 0!==i.offset?Cu(i.offset):void 0,u,h),s,r)}(Pm,_m,uS(r),r,e,t)}return function(e,t){const n=Ru(Kf(e));if(!n||!n.timeZone)throw new RangeError(of(e));const{offset:r}=n,o=r?Cu(r):void 0,[,a,i]=Hs(t);return Nu(n,o,a,i)}(e,t)}function qm(e){return oi((e=>t=>e(Xm(t))),e)}function Xm(e){return hg(e,Lm)}function Qm(){const e=gd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(gd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);DS.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new gd(e,t),r=n.resolvedOptions(),o=r.locale,a=si(Object.keys(t),r),i=Xa(ny),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=Sy(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.U=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&ey(e);"function"==typeof n.value?n.value="constructor"===e?r:o||ty(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function ey(e){return function(){const t=DS.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function ty(e){return function(){return DS.get(this).U[e](...arguments)}}function ny(e){const t=ry[e];if(!t)throw new TypeError(sf(e));return ll(t,Xa(fl))}const ry={Instant:mm,PlainDateTime:Sm,PlainDate:pm,PlainTime:wm,PlainYearMonth:vm,PlainMonthDay:Am},oy=ll(mm),ay=ll(ym),iy=ll(Sm),sy=ll(pm),cy=ll(wm),uy=ll(vm),hy=ll(Am),ly={era:function(e){if(void 0!==e)return Kf(e)},eraYear:Ei,year:Ci,month:Oi,daysInMonth:Oi,daysInYear:Oi,inLeapYear:Jf,monthsInYear:Oi},fy={monthCode:Kf},dy={day:Oi},gy={dayOfWeek:Oi,dayOfYear:Oi,weekOfYear:function(e){if(void 0!==e)return Oi(e)},yearOfWeek:Ei,daysInWeek:Oi},my=Object.assign({},ly,fy,dy,gy),yy=new WeakMap,Sy=yy.get.bind(yy),py=yy.set.bind(yy),wy={...Em(ly,[Wd]),...Em(gy,[]),...Em(fy,[Wd,qd]),...Em(dy,[qd])},vy=Om(my),Ay=Om({...ly,...fy}),by=Om({...fy,...dy}),Iy={calendarId:e=>oc(e.calendar)},My=oi(((e,t)=>function(n){const{C:r}=this;return e(r[t](Jy(qs(n,r))))}),my),Ty=ai((e=>t=>t[e]),qf.concat("sign")),Ey=ai(((e,t)=>e=>e[id[t]]),If),Oy={epochSeconds:function(e){return is(e.epochNanoseconds)},epochMilliseconds:nc,epochMicroseconds:function(e){return Wi(e.epochNanoseconds,yf)},epochNanoseconds:function(e){return Wi(e.epochNanoseconds)}},Cy=fi(ci,new Set(["branding"])),[Dy,Hy,Ny]=Im(qd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Id;const a=Bi(t),i=Bi(n),s=e(r);return Qs(ts(Ts({isoYear:Bi(o),isoMonth:a,isoDay:i})),s)}),Gm),{...Iy,...by},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return Hy(function(e,t,n,r,o){const a=xs(o);return((e,t,n,r)=>{const o=Gh(e,t,n,Pf);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(dS,e,this,Tm(t),n))},equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Hm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,Bf,Ni(n),Nf))(e(t.calendar),n,r)}(fS,e,this,t))},toLocaleString(e,t,n){const[r,o]=hy(t,n,e);return r.format(o)},toString:Dc,toJSON:e=>Dc(e),valueOf:Cm},{from:(e,t)=>Hy(Hm(e,t))}),ky={getOffsetNanosecondsFor:Nm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,zy(Ws(n,Uf)))].map((e=>Yy(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(zi),Gc(qi(Vi(r[0],r[o-1])))),r}},_y={getOffsetNanosecondsFor:Nm},[Ly,Ry,Yy]=Im(ng,(function(e){return Js(rs(Ji(Pi(e))))}),Oy,{add:(e,t)=>Ry(Wc(0,e,Vm(t))),subtract:(e,t)=>Ry(Wc(1,e,Vm(t))),until:(e,t,n)=>wS(th(0,e,Rm(t),n)),since:(e,t,n)=>wS(th(1,e,Rm(t),n)),round:(e,t)=>Ry(function(e,t){const[n,r,o]=_s(t,5,1);return Js(Sc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Gu(e,t)}(e,Rm(t)),toZonedDateTime(e,t){const n=Ni(t);return TS(rl(e,Pm(n.timeZone),Gm(n.calendar)))},toZonedDateTimeISO:(e,t)=>TS(rl(e,Pm(t))),toLocaleString(e,t,n){const[r,o]=oy(t,n,e);return r.format(o)},toString:(e,t)=>Mc(Pm,Lm,e,t),toJSON:e=>Mc(Pm,Lm,e),valueOf:Cm},{from:e=>Ry(Rm(e)),fromEpochSeconds:e=>Ry(function(e){return Js(rs(Gi(e,pf)))}(e)),fromEpochMilliseconds:e=>Ry(function(e){return Js(rs(Gi(e,Sf)))}(e)),fromEpochMicroseconds:e=>Ry(function(e){return Js(rs(Ji(Pi(e),yf)))}(e)),fromEpochNanoseconds:e=>Ry(function(e){return Js(rs(Ji(Pi(e))))}(e)),compare:(e,t)=>Gu(Rm(e),Rm(t))}),[Py,jy]=Im("TimeZone",(e=>{const t=function(e){return zu(Kf(e))}(e);return{branding:"TimeZone",id:t,F:fg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(Um(t)).map((e=>Ry(Js(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(Rm(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=Rm(t).epochNanoseconds;return Bc(km(this,_y).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Uf;const r=Rm(t).epochNanoseconds,o=km(this,_y).getOffsetNanosecondsFor(r);return zy(Ws(gs(r,o),Gm(n)))},getInstantFor(e,t,n){const r=Um(t),o=Ns(n),a=km(this);return Ry(Js(Kc(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return Ym(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return Ym(-1,n,t)},equals(e,t){return!!eh(this,Pm(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=Pm(e);return"string"==typeof t?new Py(t):t}}),By=Mm(Object.keys(ky)),[Fy,Uy]=Im(eg,(function(){return ec(Cs(oi(Bi,ri(id,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Ey,{getISOFields:Cy,with(e,t,n){return Uy(function(e,t,n){return ec(((e,t,n)=>{const r=Ds(n);return Jh({...si(Mf,e),...Kh(t,Mf)},r)})(e,t,n))}(this,Tm(t),n))},add:(e,t)=>Uy(tu(0,e,Vm(t))),subtract:(e,t)=>Uy(tu(1,e,Vm(t))),until:(e,t,n)=>wS(sh(0,e,jm(t),n)),since:(e,t,n)=>wS(sh(1,e,jm(t),n)),round:(e,t)=>Uy(function(e,t){const[n,r,o]=_s(t,5);var a;return ec((a=o,hc(e,fc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Qu(e,t)}(e,jm(t)),toZonedDateTime:(e,t)=>TS(function(e,t,n,r,o){const a=Ni(o),i=t(a.plainDate),s=e(a.timeZone);return Gs(Kc(n(s),{...i,...r}),s,i.calendar)}(Pm,Zm,_m,e,t)),toPlainDateTime:(e,t)=>zy(function(e,t){return Ws(ns({...e,...t}))}(e,Zm(t))),toLocaleString(e,t,n){const[r,o]=cy(t,n,e);return r.format(o)},toString:Hc,toJSON:e=>Hc(e),valueOf:Cm},{from:(e,t)=>Uy(jm(e,t)),compare:(e,t)=>Qu(jm(e),jm(t))}),[Zy,xy,$y]=Im(Wd,fi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=Bi(t),i=Bi(n),s=e(r);return Xs(es(Ts({isoYear:a,isoMonth:i,isoDay:Bi(o)})),s)}),Gm),{...Iy,...Ay},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return xy(function(e,t,n,r,o){const a=xs(o);return Xs(((e,t,n,r)=>{const o=Gh(e,t,n,Rf);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(lS,e,this,Tm(t),n))},add:(e,t,n)=>xy(eu(yS,0,e,Vm(t),n)),subtract:(e,t,n)=>xy(eu(yS,1,e,Vm(t),n)),until:(e,t,n)=>wS(ah(SS,0,e,Fm(t),n)),since:(e,t,n)=>wS(ah(SS,1,e,Fm(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Fm(t)),toPlainDate(e,t){return Jy(function(e,t,n,r){return((e,t,n)=>Xh(e,t,Yf,Ni(n),Lf))(e(t.calendar),n,r)}(fS,e,this,t))},toLocaleString(e,t,n){const[r,o]=uy(t,n,e);return r.format(o)},toString:Cc,toJSON:e=>Cc(e),valueOf:Cm},{from:(e,t)=>xy(Fm(e,t)),compare:(e,t)=>Xu(Fm(e),Fm(t))}),[Vy,zy]=Im(Qd,fi((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Uf;return Ws(ns(Ms(oi(Bi,ri(cd,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Gm),{...Iy,...vy,...Ey},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return zy(function(e,t,n,r,o){const a=xs(o);return Ws(((e,t,n,r)=>{const o=Gh(e,t,n,Pf,If),a=Ds(r);return ns({...e.dateFromFields(o,$s(r,a)),...Jh(o,a)})})(e(t.calendar),n,r,a))}(fS,e,this,Tm(t),n))},withCalendar:(e,t)=>zy(sl(e,Gm(t))),withPlainDate:(e,t)=>zy(function(e,t){return Ws({...e,...t},cl(e.calendar,t.calendar))}(e,Zm(t))),withPlainTime:(e,t)=>zy(function(e){return Ws({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd})}(e,Bm(t))),add:(e,t,n)=>zy(Xc(gS,0,e,Vm(t),n)),subtract:(e,t,n)=>zy(Xc(gS,1,e,Vm(t),n)),until:(e,t,n)=>wS(rh(mS,0,e,Um(t),n)),since:(e,t,n)=>wS(rh(mS,1,e,Um(t),n)),round:(e,t)=>zy(function(e,t){return Ws(cc(e,..._s(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!qu(e,t)&&ac(e.calendar,t.calendar)}(e,Um(t)),toZonedDateTime:(e,t,n)=>TS(function(e,t,n,r){const o=((e,t,n,r)=>{const o=Ns(r);return Kc(e(t),n,o)})(e,n,t,r);return Gs(rs(o),n,t.calendar)}(_m,e,Pm(t),n)),toPlainDate:e=>Jy(qs(e)),toPlainTime:e=>Uy(ec(e)),toPlainYearMonth(e){return xy(function(e,t,n){const r=e(t.calendar);return Xs({...t,...qh(r,n)})}(cS,e,this))},toPlainMonthDay(e){return Hy(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t,n){const[r,o]=iy(t,n,e);return r.format(o)},toString:Ec,toJSON:e=>Ec(e),valueOf:Cm},{from:(e,t)=>zy(Um(e,t)),compare:(e,t)=>qu(Um(e),Um(t))}),[Ky,Jy,Gy]=Im(Xd,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Uf;return qs(ts(Ts(oi(Bi,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Gm),{...Iy,...vy},{getISOFields:Cy,getCalendar:Dm,with(e,t,n){return Jy(function(e,t,n,r,o){const a=xs(o);return((e,t,n,r)=>{const o=Gh(e,t,n,Pf);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(fS,e,this,Tm(t),n))},withCalendar:(e,t)=>Jy(sl(e,Gm(t))),add:(e,t,n)=>Jy(Qc(gS,0,e,Vm(t),n)),subtract:(e,t,n)=>Jy(Qc(gS,1,e,Vm(t),n)),until:(e,t,n)=>wS(oh(mS,0,e,Zm(t),n)),since:(e,t,n)=>wS(oh(mS,1,e,Zm(t),n)),equals:(e,t)=>function(e,t){return!Xu(e,t)&&ac(e.calendar,t.calendar)}(e,Zm(t)),toZonedDateTime(e,t){const n=!qa(t)||t instanceof Py?{timeZone:t}:t;return TS(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):fd;return Gs(Kc(n(a),{...r,...s}),a,r.calendar)}(Pm,jm,_m,e,n))},toPlainDateTime:(e,t)=>zy(function(e){return Ws(ns({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd}))}(e,Bm(t))),toPlainYearMonth(e){return xy(function(e,t,n){return qh(e(t.calendar),n)}(cS,e,this))},toPlainMonthDay(e){return Hy(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t,n){const[r,o]=sy(t,n,e);return r.format(o)},toString:Oc,toJSON:e=>Oc(e),valueOf:Cm},{from:(e,t)=>Jy(Zm(e,t)),compare:(e,t)=>Xu(Zm(e),Zm(t))}),Wy={fields:(e,t,n)=>[...t.call(e,n)]},qy=Object.assign({dateFromFields:(e,t,n,r)=>Gy(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Xy=Object.assign({yearMonthFromFields:(e,t,n,r)=>$y(t.call(e,Object.assign(Object.create(null),n),r))},Wy),Qy=Object.assign({monthDayFromFields:(e,t,n,r)=>Ny(t.call(e,Object.assign(Object.create(null),n),r))},Wy),eS={mergeFields:(e,t,n,r)=>Ni(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},tS=Object.assign({},qy,eS),nS=Object.assign({},Xy,eS),rS=Object.assign({},Qy,eS),oS={dateAdd:(e,t,n,r,o)=>Gy(t.call(e,Jy(qs(n,e)),wS(tc(r)),o))},aS=Object.assign({},oS,{dateUntil:(e,t,n,r,o,a)=>vS(t.call(e,Jy(qs(n,e)),Jy(qs(r,e)),Object.assign(Object.create(null),a,{largestUnit:df[o]})))}),iS=Object.assign({},oS,{day:xm}),sS=Object.assign({},aS,{day:xm}),cS=$m(Xy),uS=$m(qy),hS=$m(Qy),lS=$m(nS),fS=$m(tS),dS=$m(rS),gS=$m(oS),mS=$m(aS),yS=$m(iS),SS=$m(sS),[pS,wS,vS]=Im(rg,(function(){return tc(wu(oi(Fi,ri(qf,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...Ty,blank:function(e){return!e.sign}},{with:(e,t)=>wS(function(e,t){return tc((n=e,r=t,wu({...n,...Kh(r,Xf)})));var n,r}(e,t)),negated:e=>wS(yu(e)),abs:e=>wS(function(e){return-1===e.sign?yu(e):e}(e)),add:(e,t,n)=>wS(mu(zm,mS,_m,0,e,Vm(t),n)),subtract:(e,t,n)=>wS(mu(zm,mS,_m,1,e,Vm(t),n)),round:(e,t)=>wS(function(e,t,n,r,o){const a=Tu(r),[i,s,c,u,h]=((e,t,n)=>{e=Zs(e,Od);let r=Ud(e);const o=n(e[Nd]);let a=js(e);const i=Gd(e,7);let s=Fd(e);if(void 0===r&&void 0===s)throw new RangeError(nf);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ks(r,s),a=Bs(a,s,1),[r,s,a,i,o]})(o,a,e);if(du(Math.max(a,i),h))return tc(wu(((e,t,n,r,o)=>{const a=Sc(Au(e),n,r,o);return{...rd,...bu(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(ef);const[l,f,d]=cu(t,n,h),g=uu(d),m=hu(f,d),y=lu(f,d);let S=0;r.weeks&&7===s&&(S=r.weeks,r={...r,weeks:0});let[p,w]=gu(r,i,l,g,m,y);const v=r.sign,A=pu(p);if(v&&A&&v!==A)throw new RangeError(Zl);return A&&(p=yc(p,w,i,s,c,u,l,g,m)),p.weeks+=S,tc(p)}(zm,mS,_m,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Tu(r),[i,s]=((e,t)=>{const n=t((e=Zs(e,Cd))[Nd]);let r=Zd(e);return r=Hi(Cd,r),[r,n]})(o,e);if(du(Math.max(i,a),s))return((e,t)=>qi(Au(e),bf[t],1))(r,i);if(!s)throw new RangeError(ef);const[c,u,h]=cu(t,n,s),l=uu(h),f=hu(u,h);return((e,t,n,r,o,a)=>{const i=pu(e),[s,c]=ic(ad(n,e),n,i,r,o,a),u=sc(t,s,c);return e[qf[n]]+u*i})(...gu(r,i,c,l,f,lu(u,h)),i,c,l,f)}(zm,mS,_m,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):Nc(e)},toString:Nc,toJSON:e=>Nc(e),valueOf:Cm},{from:e=>wS(Vm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(Us(a).relativeTo),s=Math.max(Tu(r),Tu(o));if(hi(qf,r,o))return 0;if(du(s,i))return zi(Au(r),Au(o));if(!i)throw new RangeError(ef);const[c,u,h]=cu(t,n,i),l=uu(h),f=hu(u,h);return zi(l(f(c,r)),l(f(c,o)))}(zm,gS,_m,Vm(e),Vm(t),n)}),AS={toString:e=>e.id,toJSON:e=>e.id,...wy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return Jy(qs(a.dateAdd(Zm(t),Vm(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return wS(tc(o.dateUntil(Zm(t),Zm(n),function(e){return e=Us(e),Ud(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Jy(xh(o,t,n,function(e){return e===Uf?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return xy($h(o,t,n,function(e){return e===Uf?Nf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Hy(Vh(o,0,t,n,function(e){return e===Uf?Lf:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(Pf),o=[];for(const e of t){if(Kf(e),!r.has(e))throw new RangeError(Ol(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(ui(Di(t)),ui(Di(n)))}},[bS]=Im("Calendar",(e=>{const t=function(e){return Hh(Kf(e))}(e);return{branding:"Calendar",id:t,F:$g(t)}}),{id:e=>e.id},AS,{from(e){const t=Gm(e);return"string"==typeof t?new bS(t):t}}),IS=Mm(Object.keys(AS).slice(4)),[MS,TS]=Im(tg,fi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Uf;return Gs(rs(Ji(Pi(n))),t(r),e(o))}),Gm,Pm),{...Oy,...Iy,...qm(vy),...qm(Ey),offset:e=>Bc(Xm(e).offsetNanoseconds),offsetNanoseconds:e=>Xm(e).offsetNanoseconds,timeZoneId:e=>oc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=hg(t,n),[o,a]=dc(r),i=qi(Vi(Kc(n,o),Kc(n,a)),vf,1);if(i<=0)throw new RangeError(Zl);return i}(_m,e)},{getISOFields:e=>function(e,t){const n=hg(t,e);return{calendar:t.calendar,...si(ld,n),offset:Bc(n.offsetNanoseconds),timeZone:t.timeZone}}(Lm,e),getCalendar:Dm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new Py(t):t},with(e,t,n){return TS(function(e,t,n,r,o,a){const i=xs(a),{calendar:s,timeZone:c}=n;return Gs(((e,t,n,r,o)=>{const a=Gh(e,n,r,Pf,Of,Tf),[i,s,c]=Hs(o,2);return zc(t,{...e.dateFromFields(a,$s(o,i)),...Jh(a,i)},Cu(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(fS,_m,e,this,Tm(t),n))},withCalendar:(e,t)=>TS(sl(e,Gm(t))),withTimeZone:(e,t)=>TS(function(e,t){return{...e,timeZone:t}}(e,Pm(t))),withPlainDate:(e,t)=>TS(function(e,t,n){const r=t.timeZone,o=e(r),a={...hg(t,o),...n},i=cl(t.calendar,n.calendar);return Gs(zc(o,a,a.offsetNanoseconds,2),r,i)}(_m,e,Zm(t))),withPlainTime:(e,t)=>TS(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fd;const r=t.timeZone,o=e(r),a={...hg(t,o),...n};return Gs(zc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(_m,e,Bm(t))),add:(e,t,n)=>TS(qc(gS,_m,0,e,Vm(t),n)),subtract:(e,t,n)=>TS(qc(gS,_m,1,e,Vm(t),n)),until:(e,t,n)=>wS(tc(nh(mS,_m,0,e,Wm(t),n))),since:(e,t,n)=>wS(tc(nh(mS,_m,1,e,Wm(t),n))),round:(e,t)=>TS(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=_s(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=hg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=Kc(t,a),u=Kc(t,i);if(Ki(s,c,u))throw new RangeError(Zl);return vc(sc(s,c,u),r)?u:c})(dc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=zc(u,cc(gs(r,e),i,s,c),e,2,0,1)}return Gs(r,o,a)}(_m,e,t)),startOfDay:e=>TS(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Kc(t,e(hg(n,t))))(gc,e(n),t);return Gs(o,n,r)}(_m,e)),equals:(e,t)=>function(e,t){return!Wu(e,t)&&!!eh(e.timeZone,t.timeZone)&&ac(e.calendar,t.calendar)}(e,Wm(t)),toInstant:e=>Ry(function(e){return Js(e.epochNanoseconds)}(e)),toPlainDateTime:e=>zy(ol(Lm,e)),toPlainDate:e=>Jy(al(Lm,e)),toPlainTime:e=>Uy(il(Lm,e)),toPlainYearMonth(e){return xy(function(e,t,n){return qh(e(t.calendar),n)}(cS,e,this))},toPlainMonthDay(e){return Hy(function(e,t,n){return Wh(e(t.calendar),n)}(hS,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=ay(t,n,e);return r.format(o)},toString:(e,t)=>Tc(Lm,e,t),toJSON:e=>Tc(Lm,e),valueOf:Cm},{from:(e,t)=>TS(Wm(e,t)),compare:(e,t)=>Wu(Wm(e),Wm(t))}),ES=Object.defineProperties({},{...ni("Temporal.Now"),...ei({timeZoneId:()=>yl(),instant:()=>Ry(Js(ml())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return TS(Gs(ml(),Pm(t),Gm(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return TS(Gs(ml(),Pm(e),Uf))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return zy(Ws(gl(Lm(Pm(t))),Gm(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return zy(Ws(gl(Lm(Pm(e))),Uf))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl();return Jy(qs(gl(Lm(Pm(t))),Gm(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Jy(qs(gl(Lm(Pm(e))),Uf))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl();return Uy(ec(gl(Lm(Pm(e)))))}})}),OS=Object.defineProperties({},{...ni("Temporal"),...ei({PlainYearMonth:Zy,PlainMonthDay:Dy,PlainDate:Ky,PlainTime:Fy,PlainDateTime:Vy,ZonedDateTime:MS,Instant:Ly,Calendar:bS,TimeZone:Py,Duration:pS,Now:ES})}),CS=Qm(),DS=new WeakMap;function HS(e){return e*Math.PI/180}function NS(e){return 180*e/Math.PI}Object.create(Intl),ei({DateTimeFormat:CS});class kS{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}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 _S=6356.9;class LS{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(LS.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(LS.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(LS.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(LS.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(LS.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(LS.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(LS.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 NS(Math.acos(_S/(_S+e/1e3)))}adjustZenith(e,t){let n=e;return e===LS.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=LS.getSunriseUTC(LS.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=LS.getSunsetUTC(LS.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}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 LS.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 a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;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 OS.PlainTime(o,a,i,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),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-LS.JULIAN_DAY_JAN_1_2000)/LS.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*LS.JULIAN_DAYS_PER_CENTURY+LS.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=HS(LS.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 LS.getSunGeometricMeanLongitude(e)+LS.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return LS.getSunTrueLongitude(e)-.00569-.00478*Math.sin(HS(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 LS.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(HS(t))}static getSunDeclination(e){const t=LS.getObliquityCorrection(e),n=LS.getSunApparentLongitude(e),r=Math.sin(HS(t))*Math.sin(HS(n));return NS(Math.asin(r))}static getEquationOfTime(e){const t=LS.getObliquityCorrection(e),n=LS.getSunGeometricMeanLongitude(e),r=LS.getEarthOrbitEccentricity(e),o=LS.getSunGeometricMeanAnomaly(e);let a=Math.tan(HS(t)/2);a*=a;const i=Math.sin(2*HS(n)),s=Math.sin(HS(o));return 4*NS(a*i-2*r*s+4*r*a*s*Math.cos(2*HS(n))-.5*a*a*Math.sin(4*HS(n))-1.25*r*r*Math.sin(2*HS(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=HS(e),o=HS(t);return Math.acos(Math.cos(HS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=HS(e),o=HS(t);return-Math.acos(Math.cos(HS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=LS.getJulianDay(e.toPlainDate()),o=LS.getJulianCenturiesFromJulianDay(r),a=LS.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=HS(n-i),c=HS(LS.getSunDeclination(o)),u=HS(t);return NS(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=LS.getJulianDay(e.toPlainDate()),o=LS.getJulianCenturiesFromJulianDay(r),a=LS.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=HS(n-i),c=HS(LS.getSunDeclination(o)),u=HS(t);return NS(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=LS.getJulianCenturiesFromJulianDay(e),a=LS.getSolarNoonUTC(o,n),i=LS.getJulianCenturiesFromJulianDay(e+a/1440);let s=LS.getEquationOfTime(i),c=LS.getSunDeclination(i),u=LS.getSunHourAngleAtSunrise(t,c,r),h=n-NS(u),l=4*h,f=720+l-s;const d=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(o)+f/1440);return s=LS.getEquationOfTime(d),c=LS.getSunDeclination(d),u=LS.getSunHourAngleAtSunrise(t,c,r),h=n-NS(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(e)+t/360);let r=LS.getEquationOfTime(n);const o=720+4*t-r,a=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=LS.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=LS.getJulianCenturiesFromJulianDay(e),a=LS.getSolarNoonUTC(o,n),i=LS.getJulianCenturiesFromJulianDay(e+a/1440);let s=LS.getEquationOfTime(i),c=LS.getSunDeclination(i),u=LS.getSunHourAngleAtSunset(t,c,r),h=n-NS(u),l=4*h,f=720+l-s;const d=LS.getJulianCenturiesFromJulianDay(LS.getJulianDayFromJulianCenturies(o)+f/1440);return s=LS.getEquationOfTime(d),c=LS.getSunDeclination(d),u=LS.getSunHourAngleAtSunset(t,c,r),h=n-NS(u),l=4*h,f=720+l-s,f}}LS.GEOMETRIC_ZENITH=90,LS.CIVIL_ZENITH=96,LS.NAUTICAL_ZENITH=102,LS.ASTRONOMICAL_ZENITH=108,LS.JULIAN_DAY_JAN_1_2000=2451545,LS.JULIAN_DAYS_PER_CENTURY=36525;const RS=[["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]],YS=new Map,PS={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"},jS=new Map;class BS extends kS{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}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=jS.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return jS.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return YS.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 PS[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":PS[t]}static addLocation(e,t){const n=e.toLowerCase();return!YS.has(n)&&(YS.set(n,t),!0)}}for(const e of RS){const t=new BS(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);BS.addLocation(t.getName(),t)}const FS=new Map;const US=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ZS(e,t){const n=function(e){const t=FS.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 FS.set(e,n),n}(e).format(t),r=US.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=xS(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function xS(e){return e<0?"-00"+xS(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function $S(e){return e<10?"0"+e:String(e)}function VS(e){return xS(e.getFullYear())+"-"+$S(e.getMonth()+1)+"-"+$S(e.getDate())}function zS(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,ei({Temporal:OS})),Object.defineProperties(Intl,ei({DateTimeFormat:CS})),Object.defineProperties(Date.prototype,ei({toTemporalInstant:function(){return Ry(Js(Gi(this.valueOf(),Sf)))}}));class KS{constructor(t,n,r){const o=e.greg.isDate(n)?n:we.isHDate(n)?n.greg():fe(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new LS(t,a),this.useElevation=Boolean(r)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return zS(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return zS(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return zS(this.noaa.getSeaLevelSunrise())}sunset(){return zS(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return zS(this.noaa.getSeaLevelSunset())}dawn(){return zS(this.noaa.getBeginCivilTwilight())}dusk(){return zS(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new KS(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return zS(this.noaa.getSunTransit(e,t))}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.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return zS(LS.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0);return[t,(this.timeAtAngle(e,!1)-t)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+3*t)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1);return new Date(e.getTime()+4*t)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8);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()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}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=ZS("UTC",t),r=ZS(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?"+":"-")+$S(Math.floor(r/60))+":"+$S(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:ZS(e,t).substring(0,19)+KS.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 JS={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 GS(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===JS[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function WS(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ie.LIGHT_CANDLES;void 0!==e?r||(s&(Ie.LIGHT_CANDLES_TZEIS|Ie.CHANUKAH_CANDLES)?i=!0:s&Ie.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Ie.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new KS(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new XS(t,s,l,u,n.havdalahMins,e,n):new QS(t,s,l,u,e,n)}class qS extends Te{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=KS.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=KS.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=GS(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return le.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return le.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 XS extends qS{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=le.gettext(this.getDesc(),e);if(this.havdalahMins){const n=le.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class QS extends qS{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function ep(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new qS(e,n,r.getFlags(),t,a,r,o)}const tp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],np=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],rp="בַּלַּ֥יְלָה";class op{constructor(e,t){let n=t-7;n<0&&(n+=we.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),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return we.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=le.gettext(this.getMonthName(),e),o=(n?np:tp)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=le.gettext("Molad",e),u=le.lookupTranslation("min",e)||"minutes",h=le.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?rp:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":rp}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?le.hebrewStripNikkud(t):t}const l=GS(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class ap extends Te{constructor(e,t,n,r){const o=new op(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Ie.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class ip extends Te{constructor(e,t){if(super(e,`Omer ${t}`,Ie.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";return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){J(e);const[n,r]=G(e),o=K[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){"string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?V(n):le.ordinal(n,e))+" "+le.gettext("day of the Omer",e)}renderBrief(e){return le.gettext("Omer",e)+" "+le.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(J(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||le.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return W(this.omer,"he");if("he-x-nonikud"===e){const e=W(this.omer,"he");return le.hebrewStripNikkud(e)}return W(this.omer,"en")}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class sp extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class cp{constructor(e,t){e=+e;const n=we.longCheshvan(e),r=we.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new we(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=we.dayOnOrBefore(6,i+6);const c=this.leap=+we.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(Tp[u])this.key=u,this.theSedraArray=Tp[u];else{const e=this.key=u+ +this.il;this.theSedraArray=Tp[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||le.getLocaleName();let o=le.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+le.gettext(n[1],r)}return o=o.replace(/'/g,"’"),le.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 we(this.firstSaturday+7*t)}if("string"==typeof e){const t=hp.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 we(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=hp.get(t);if(hp.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:we.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=we.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Op(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[up[o]],chag:!1,num:o+1};const a=lp(o);return{parsha:[up[a],up[a+1]],chag:!1,num:[a+1,a+2]}}}const up=["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"],hp=new Map;for(let e=0;e<up.length;e++){const t=up[e];hp.set(t,e)}function lp(e){return-e}const fp="Rosh Hashana",dp="Yom Kippur",gp="Sukkot",mp="Sukkot Shabbat Chol ha-Moed",yp="Shmini Atzeret",Sp=mp,pp="Pesach",wp="Pesach I",vp="Pesach Shabbat Chol ha-Moed",Ap="Pesach VII",bp="Pesach VIII",Ip="Shavuot";function Mp(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Tp={"020":[51,52].concat(Sp,Mp(0,20),lp(21),23,24,pp,25,lp(26),lp(28),30,lp(31),Mp(33,40),lp(41),Mp(43,49),lp(50)),"0220":[51,52].concat(Sp,Mp(0,20),lp(21),23,24,pp,25,lp(26),lp(28),30,lp(31),33,Ip,Mp(34,37),lp(38),40,lp(41),Mp(43,49),lp(50)),"0510":[52].concat(dp,Sp,Mp(0,20),lp(21),23,24,wp,bp,25,lp(26),lp(28),30,lp(31),Mp(33,40),lp(41),Mp(43,50)),"0511":[52].concat(dp,Sp,Mp(0,20),lp(21),23,24,pp,25,lp(26),lp(28),Mp(30,40),lp(41),Mp(43,50)),"052":[52].concat(dp,mp,Mp(0,24),Ap,25,lp(26),lp(28),30,lp(31),Mp(33,40),lp(41),Mp(43,50)),"070":[].concat(fp,52,gp,yp,Mp(0,20),lp(21),23,24,Ap,25,lp(26),lp(28),30,lp(31),Mp(33,40),lp(41),Mp(43,50)),"072":[].concat(fp,52,gp,yp,Mp(0,20),lp(21),23,24,vp,25,lp(26),lp(28),30,lp(31),Mp(33,40),lp(41),Mp(43,49),lp(50)),1200:[51,52].concat(mp,Mp(0,27),vp,Mp(28,33),Ip,Mp(34,37),lp(38),40,lp(41),Mp(43,49),lp(50)),1201:[51,52].concat(mp,Mp(0,27),vp,Mp(28,40),lp(41),Mp(43,49),lp(50)),1220:[51,52].concat(mp,Mp(0,27),wp,bp,Mp(28,40),lp(41),Mp(43,50)),1221:[51,52].concat(mp,Mp(0,27),pp,Mp(28,50)),150:[52].concat(dp,mp,Mp(0,28),Ap,Mp(29,50)),152:[52].concat(dp,mp,Mp(0,28),vp,Mp(29,49),lp(50)),170:[].concat(fp,52,gp,yp,Mp(0,27),vp,Mp(28,40),lp(41),Mp(43,49),lp(50)),1720:[].concat(fp,52,gp,yp,Mp(0,27),vp,Mp(28,33),Ip,Mp(34,37),lp(38),40,lp(41),Mp(43,49),lp(50))};Tp["0221"]=Tp["020"],Tp["0310"]=Tp["0220"],Tp["0311"]=Tp["020"],Tp[1310]=Tp[1220],Tp[1311]=Tp[1221],Tp[1721]=Tp[170];const Ep=new sp({maxSize:400});function Op(e,t){const n=`${e}-${t?1:0}`;let r=Ep.get(n);return r||(r=new cp(e,t),Ep.set(n,r)),r}class Cp extends Te{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("-"),Ie.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||le.getLocaleName(),n=this.parsha;let r=le.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+le.gettext(n[1],e)}r=r.replace(/'/g,"’");return(le.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(){return VS(this.getDate().greg()).replace(/-/g,"")}}var Dp=ho,Hp=zn,Np=qn,kp=ke,_p=function(e,t,n){return n.get&&Dp(n.get,t,{getter:!0}),n.set&&Dp(n.set,t,{setter:!0}),Hp.f(e,t,n)},Lp=function(){var e=Np(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},Rp=Ne,Yp=De.RegExp,Pp=Yp.prototype,jp=kp&&Rp((function(){var e=!0;try{Yp(".","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}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Pp,"flags").get.call(t)!==r||n!==r}));jp&&_p(Pp,"flags",{configurable:!0,get:Lp});const Bp=0,Fp=2,Up=5,Zp=6,xp=m.NISAN,$p=m.IYYAR;function Vp(e){if(e<5708)return null;let t;const n=new we(15,xp,e).getDay();return t=n===Bp?2:n===Zp?3:e<5764?4:n===Fp?5:4,new we(t,$p,e)}const zp=m.NISAN,Kp=m.IYYAR,Jp=m.SIVAN,Gp=m.TAMUZ,Wp=m.AV,qp=m.ELUL,Xp=m.TISHREI,Qp=m.CHESHVAN,ew=m.KISLEV,tw=m.SHVAT,nw=m.ADAR_II,rw=Ie.CHAG,ow=Ie.LIGHT_CANDLES,aw=Ie.YOM_TOV_ENDS,iw=Ie.CHUL_ONLY,sw=Ie.IL_ONLY,cw=Ie.LIGHT_CANDLES_TZEIS,uw=Ie.CHANUKAH_CANDLES,hw=Ie.MAJOR_FAST,lw=Ie.MINOR_HOLIDAY,fw=Ie.EREV,dw=Ie.CHOL_HAMOED,gw="🫓",mw="🌿🍋",yw="Rosh Hashana II",Sw="Erev Yom Kippur",pw="Yom Kippur",ww="Erev Sukkot",vw="Sukkot I",Aw="Sukkot II",bw="Sukkot III (CH''M)",Iw="Sukkot IV (CH''M)",Mw="Sukkot V (CH''M)",Tw="Sukkot VI (CH''M)",Ew="Shmini Atzeret",Ow="Simchat Torah",Cw="Sukkot II (CH''M)",Dw="Sukkot VII (Hoshana Raba)",Hw="Chanukah: 1 Candle",Nw="Tu BiShvat",kw="Erev Purim",_w="Purim",Lw="Shushan Purim",Rw="Erev Pesach",Yw="Pesach I",Pw="Pesach II",jw="Pesach II (CH''M)",Bw="Pesach III (CH''M)",Fw="Pesach IV (CH''M)",Uw="Pesach V (CH''M)",Zw="Pesach VI (CH''M)",xw="Pesach VII",$w="Pesach VIII",Vw="Pesach Sheni",zw="Lag BaOmer",Kw="Erev Shavuot",Jw="Shavuot",Gw="Shavuot I",Ww="Shavuot II",qw="Tu B'Av",Xw="Rosh Hashana LaBehemot",Qw="Erev Rosh Hashana",ev="Yom Yerushalayim",tv="Ben-Gurion Day",nv="Family Day",rv="Yitzhak Rabin Memorial Day",ov="Herzl Day",av="Jabotinsky Day",iv="Sigd",sv="Yom HaAliyah",cv="Yom HaAliyah School Observance",uv="Hebrew Language Day",hv={ASARA_BTEVET:"Asara B'Tevet",BIRKAT_HACHAMAH:"Birkat Hachamah",CHAG_HABANOT:"Chag HaBanot",CHANUKAH_8TH_DAY:"Chanukah: 8th Day",EREV_TISHA_BAV:"Erev Tish'a B'Av",LEIL_SELICHOT:"Leil Selichot",PURIM_KATAN:"Purim Katan",PURIM_MESHULASH:"Purim Meshulash",SHABBAT_CHAZON:"Shabbat Chazon",SHABBAT_HACHODESH:"Shabbat HaChodesh",SHABBAT_HAGADOL:"Shabbat HaGadol",SHABBAT_NACHAMU:"Shabbat Nachamu",SHABBAT_PARAH:"Shabbat Parah",SHABBAT_SHEKALIM:"Shabbat Shekalim",SHABBAT_SHIRAH:"Shabbat Shirah",SHABBAT_SHUVA:"Shabbat Shuva",SHABBAT_ZACHOR:"Shabbat Zachor",SHUSHAN_PURIM_KATAN:"Shushan Purim Katan",TAANIT_BECHOROT:"Ta'anit Bechorot",TAANIT_ESTHER:"Ta'anit Esther",TISHA_BAV:"Tish'a B'Av",TZOM_GEDALIAH:"Tzom Gedaliah",TZOM_TAMMUZ:"Tzom Tammuz",YOM_HAATZMA_UT:"Yom HaAtzma'ut",YOM_HASHOAH:"Yom HaShoah",YOM_HAZIKARON:"Yom HaZikaron",BEN_GURION_DAY:tv,CHANUKAH_1_CANDLE:Hw,EREV_PESACH:Rw,EREV_PURIM:kw,EREV_ROSH_HASHANA:Qw,EREV_SHAVUOT:Kw,EREV_SUKKOT:ww,EREV_YOM_KIPPUR:Sw,FAMILY_DAY:nv,HEBREW_LANGUAGE_DAY:uv,HERZL_DAY:ov,JABOTINSKY_DAY:av,LAG_BAOMER:zw,PESACH_I:Yw,PESACH_II:Pw,PESACH_III_CHM:Bw,PESACH_II_CHM:jw,PESACH_IV_CHM:Fw,PESACH_SHENI:Vw,PESACH_VII:xw,PESACH_VIII:$w,PESACH_VI_CHM:Zw,PESACH_V_CHM:Uw,PURIM:_w,ROSH_HASHANA_II:yw,ROSH_HASHANA_LABEHEMOT:Xw,SHAVUOT:Jw,SHAVUOT_I:Gw,SHAVUOT_II:Ww,SHMINI_ATZERET:Ew,SHUSHAN_PURIM:Lw,SIGD:iv,SIMCHAT_TORAH:Ow,SUKKOT_I:vw,SUKKOT_II:Aw,SUKKOT_III_CHM:bw,SUKKOT_II_CHM:Cw,SUKKOT_IV_CHM:Iw,SUKKOT_VII_HOSHANA_RABA:Dw,SUKKOT_VI_CHM:Tw,SUKKOT_V_CHM:Mw,TU_BAV:qw,TU_BISHVAT:Nw,YITZHAK_RABIN_MEMORIAL_DAY:rv,YOM_HAALIYAH:sv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:cv,YOM_KIPPUR:pw,YOM_YERUSHALAYIM:ev},lv=[{mm:Xp,dd:2,desc:yw,flags:rw|aw,emoji:"🍏🍯"},{mm:Xp,dd:9,desc:Sw,flags:fw|ow},{mm:Xp,dd:10,desc:pw,flags:rw|hw|aw},{mm:Xp,dd:14,desc:ww,flags:iw|fw|ow,emoji:mw},{mm:Xp,dd:15,desc:vw,flags:iw|rw|cw,emoji:mw},{mm:Xp,dd:16,desc:Aw,flags:iw|rw|aw,emoji:mw},{mm:Xp,dd:17,desc:bw,flags:iw|dw,chmDay:1,emoji:mw},{mm:Xp,dd:18,desc:Iw,flags:iw|dw,chmDay:2,emoji:mw},{mm:Xp,dd:19,desc:Mw,flags:iw|dw,chmDay:3,emoji:mw},{mm:Xp,dd:20,desc:Tw,flags:iw|dw,chmDay:4,emoji:mw},{mm:Xp,dd:22,desc:Ew,flags:iw|rw|cw},{mm:Xp,dd:23,desc:Ow,flags:iw|rw|aw},{mm:Xp,dd:14,desc:ww,flags:sw|fw|ow,emoji:mw},{mm:Xp,dd:15,desc:vw,flags:sw|rw|aw,emoji:mw},{mm:Xp,dd:16,desc:Cw,flags:sw|dw,chmDay:1,emoji:mw},{mm:Xp,dd:17,desc:bw,flags:sw|dw,chmDay:2,emoji:mw},{mm:Xp,dd:18,desc:Iw,flags:sw|dw,chmDay:3,emoji:mw},{mm:Xp,dd:19,desc:Mw,flags:sw|dw,chmDay:4,emoji:mw},{mm:Xp,dd:20,desc:Tw,flags:sw|dw,chmDay:5,emoji:mw},{mm:Xp,dd:22,desc:Ew,flags:sw|rw|aw},{mm:Xp,dd:21,desc:Dw,flags:ow|dw,chmDay:-1,emoji:mw},{mm:ew,dd:24,desc:Hw,flags:fw|lw|uw,emoji:"🕎1️⃣"},{mm:tw,dd:15,desc:Nw,flags:lw,emoji:"🌳"},{mm:nw,dd:13,desc:kw,flags:fw|lw,emoji:"🎭️📜"},{mm:nw,dd:14,desc:_w,flags:lw,emoji:"🎭️📜"},{mm:nw,dd:15,desc:Lw,flags:lw,emoji:"🎭️📜"},{mm:zp,dd:14,desc:Rw,flags:sw|fw|ow,emoji:"🫓🍷"},{mm:zp,dd:15,desc:Yw,flags:sw|rw|aw,emoji:gw},{mm:zp,dd:16,desc:jw,flags:sw|dw,chmDay:1,emoji:gw},{mm:zp,dd:17,desc:Bw,flags:sw|dw,chmDay:2,emoji:gw},{mm:zp,dd:18,desc:Fw,flags:sw|dw,chmDay:3,emoji:gw},{mm:zp,dd:19,desc:Uw,flags:sw|dw,chmDay:4,emoji:gw},{mm:zp,dd:20,desc:Zw,flags:sw|dw|ow,chmDay:5,emoji:gw},{mm:zp,dd:21,desc:xw,flags:sw|rw|aw,emoji:gw},{mm:zp,dd:14,desc:Rw,flags:iw|fw|ow,emoji:"🫓🍷"},{mm:zp,dd:15,desc:Yw,flags:iw|rw|cw,emoji:"🫓🍷"},{mm:zp,dd:16,desc:Pw,flags:iw|rw|aw,emoji:gw},{mm:zp,dd:17,desc:Bw,flags:iw|dw,chmDay:1,emoji:gw},{mm:zp,dd:18,desc:Fw,flags:iw|dw,chmDay:2,emoji:gw},{mm:zp,dd:19,desc:Uw,flags:iw|dw,chmDay:3,emoji:gw},{mm:zp,dd:20,desc:Zw,flags:iw|dw|ow,chmDay:4,emoji:gw},{mm:zp,dd:21,desc:xw,flags:iw|rw|cw,emoji:gw},{mm:zp,dd:22,desc:$w,flags:iw|rw|aw,emoji:gw},{mm:Kp,dd:14,desc:Vw,flags:lw},{mm:Kp,dd:18,desc:zw,flags:lw,emoji:"🔥"},{mm:Jp,dd:5,desc:Kw,flags:fw|ow,emoji:"⛰️🌸"},{mm:Jp,dd:6,desc:Jw,flags:sw|rw|aw,emoji:"⛰️🌸"},{mm:Jp,dd:6,desc:Gw,flags:iw|rw|cw,emoji:"⛰️🌸"},{mm:Jp,dd:7,desc:Ww,flags:iw|rw|aw,emoji:"⛰️🌸"},{mm:Wp,dd:15,desc:qw,flags:lw,emoji:"❤️"},{mm:qp,dd:1,desc:Xw,flags:lw,emoji:"🐑"},{mm:qp,dd:29,desc:Qw,flags:fw|ow,emoji:"🍏🍯"}],fv=[{firstYear:5727,mm:Kp,dd:28,desc:ev,chul:!0},{firstYear:5737,mm:ew,dd:6,desc:tv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:tw,dd:30,desc:nv},{firstYear:5758,mm:Qp,dd:12,desc:rv,friSatMovetoThu:!0},{firstYear:5764,mm:Kp,dd:10,desc:ov,satPostponeToSun:!0},{firstYear:5765,mm:Gp,dd:29,desc:av,satPostponeToSun:!0},{firstYear:5769,mm:Qp,dd:29,desc:iv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:zp,dd:10,desc:sv,chul:!0},{firstYear:5777,mm:Qp,dd:7,desc:cv},{firstYear:5773,mm:m.TEVET,dd:21,desc:uv,friSatMovetoThu:!0}],dv=Ie.CHAG,gv=Ie.IL_ONLY,mv=Ie.LIGHT_CANDLES_TZEIS,yv=Ie.CHANUKAH_CANDLES,Sv=Ie.MINOR_FAST,pv=Ie.SPECIAL_SHABBAT,wv=Ie.MODERN_HOLIDAY,vv=Ie.MAJOR_FAST,Av=Ie.MINOR_HOLIDAY,bv=Ie.EREV;class Iv extends Te{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()&gv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&pv?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;const t=this.getDesc(),{LAG_BAOMER:n,LEIL_SELICHOT:r,PESACH_SHENI:o,EREV_PURIM:a,PURIM_KATAN:i,SHUSHAN_PURIM:s,TU_BAV:c,TU_BISHVAT:u,ROSH_HASHANA_LABEHEMOT:h}=hv;return[n,r,o,a,i,s,c,u,h].includes(t)?["holiday","minor"]:["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Mv="Rosh Chodesh";class Tv extends Iv{constructor(e,t){super(e,`${Mv} ${t}`,Ie.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=le.gettext(t,e).replace(/'/g,"’");return le.gettext(Mv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Ev extends Iv{urlDateSuffix(){return VS(this.getDate().greg()).replace(/-/g,"")}}const Ov="Shabbat Mevarchim Chodesh";class Cv extends Te{constructor(e,t,n){if(super(e,`${Ov} ${t}`,Ie.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==we.monthsInYear(t)?kv:n+1,o=new op(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=le.gettext(this.monthName,e).replace(/'/g,"’");return le.gettext(Ov,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class Dv extends Iv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return le.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Hv="Yom Kippur Katan";class Nv extends Iv{constructor(e,t){super(e,`${Hv} ${t}`,Sv|Ie.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){const t=le.gettext(this.nextMonthName,e).replace(/'/g,"’");return le.gettext(Hv,e)+" "+t}renderBrief(e){return le.gettext(Hv,e)}url(){}}const kv=m.NISAN,_v=m.TAMUZ,Lv=m.AV,Rv=m.TISHREI,Yv=m.KISLEV,Pv=m.TEVET,jv=m.ADAR_I,Bv=m.ADAR_II,Fv={emoji:"🇮🇱"},Uv=new sp({maxSize:400}),Zv=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function xv(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=Uv.get(e);if(t)return t;const n=new we(1,Rv,e),r=new we(15,kv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&bv?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of lv){const n=new we(t.dd,t.mm,e),r=new Iv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new Dv(n,e,dv|mv)),a(new Iv(new we(3+(4==n.getDay()),Rv,e),hv.TZOM_GEDALIAH,Sv)),a(new Iv(new we(we.dayOnOrBefore(6,7+n.abs())),hv.SHABBAT_SHUVA,pv));const i=we.shortKislev(e)?new we(1,Pv,e):new we(30,Yv,e);a(new Iv(i,hv.CHAG_HABANOT,Av));for(let t=2;t<=8;t++){const n=new we(23+t,Yv,e);a(new Iv(n,`Chanukah: ${t} Candles`,Av|yv,{chanukahDay:t-1,emoji:"🕎"+Zv[t]}))}a(new Iv(new we(32,Yv,e),hv.CHANUKAH_8TH_DAY,Av,{chanukahDay:8,emoji:"🕎"})),a(new Ev(new we(10,Pv,e),hv.ASARA_BTEVET,Sv));const s=r.abs();a(new Iv(new we(we.dayOnOrBefore(6,s-43)),hv.SHABBAT_SHEKALIM,pv),new Iv(new we(we.dayOnOrBefore(6,s-30)),hv.SHABBAT_ZACHOR,pv),new Iv(new we(s-(2==r.getDay()?33:31)),hv.TAANIT_ESTHER,Sv));const c=we.dayOnOrBefore(6,s-14);a(new Iv(new we(c-7),hv.SHABBAT_PARAH,pv),new Iv(new we(c),hv.SHABBAT_HACHODESH,pv),new Iv(new we(we.dayOnOrBefore(6,s-1)),hv.SHABBAT_HAGADOL,pv),new Iv(6==r.prev().getDay()?r.onOrBefore(4):new we(14,kv,e),hv.TAANIT_BECHOROT,Sv)),a(new Iv(new we(we.dayOnOrBefore(6,new we(1,Rv,e+1).abs()-4)),hv.LEIL_SELICHOT,Av,{emoji:"🕍"})),0==r.getDay()&&a(new Iv(new we(16,Bv,e),hv.PURIM_MESHULASH,Av)),we.isLeapYear(e)&&(a(new Iv(new we(14,jv,e),hv.PURIM_KATAN,Av,{emoji:"🎭️"})),a(new Iv(new we(15,jv,e),hv.SHUSHAN_PURIM_KATAN,Av,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new we(27,xp,e);return t.getDay()===Up?t=new we(26,xp,e):t.getDay()===Bp&&(t=new we(28,xp,e)),t}(e);u&&a(new Iv(u,hv.YOM_HASHOAH,wv));const h=Vp(e);h&&a(new Iv(h,hv.YOM_HAZIKARON,wv,Fv),new Iv(h.next(),hv.YOM_HAATZMA_UT,wv,Fv));for(const t of fv)if(e>=t.firstYear){let n=new we(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new we(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?wv:wv|gv,i=new Iv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let l,f=new we(17,_v,e);6==f.getDay()&&(f=new we(18,_v,e),l={observed:!0}),a(new Iv(f,hv.TZOM_TAMMUZ,Sv,l));let d,g=new we(9,Lv,e),y=hv.TISHA_BAV;6==g.getDay()&&(g=g.next(),d={observed:!0},y+=" (observed)");const S=g.abs();a(new Iv(new we(we.dayOnOrBefore(6,S)),hv.SHABBAT_CHAZON,pv),new Iv(g.prev(),hv.EREV_TISHA_BAV,bv|vv,d),new Iv(g,y,vv,d),new Iv(new we(we.dayOnOrBefore(6,S+7)),hv.SHABBAT_NACHAMU,pv));const p=we.monthsInYear(e);for(let t=1;t<=p;t++){const n=we.getMonthName(t,e);30==(t==kv?we.daysInMonth(we.monthsInYear(e-1),e-1):we.daysInMonth(t-1,e))?(a(new Tv(new we(1,t,e),n)),a(new Tv(new we(30,t-1,e),n))):t!==Rv&&a(new Tv(new we(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===Rv||n===m.CHESHVAN||n===Pv)continue;let r=new we(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=we.getMonthName(n,e);a(new Nv(r,i))}const w=Op(e,!1).find(15);a(new Iv(w,hv.SHABBAT_SHIRAH,pv));const v=function(e){const t=we.isLeapYear(e),n=t?Bv:kv,r=t?20:1,o=we.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(v){const e=new we(v);a(new Iv(e,hv.BIRKAT_HACHAMAH,Av,{emoji:"☀️"}))}return Uv.set(e,o),o}const $v=new Map;class Vv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);$v.set(e,t)}static lookup(e,t){const n=$v.get(e);return"function"==typeof n?n(t):null}}const zv="5.3.11";var Kv={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"]}}};le.addLocale("ashkenazi",Kv),le.addLocale("a",Kv);var Jv={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":["יוֹם בן־גוריון"],"Hebrew Language 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:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};le.addLocale("he",Jv),le.addLocale("h",Jv);const Gv=Jv.contexts[""],Wv={};for(const[e,t]of Object.entries(Gv))Wv[e]=[le.hebrewStripNikkud(t[0])];const qv={headers:Jv.headers,contexts:{"":Wv}};function Xv(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}le.addLocale("he-x-NoNikud",qv);const Qv={shacharit:!1,mincha:!1,allCongs:!1};function eA(e,t){return tA(e,t,!0)}function tA(e,t,n){const r=function(e,t){const n=we.isLeapYear(e),r=12+n;let o=new we(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new we(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(Xv(1,r).map((t=>new we(1,t,e))),Xv(1,r).filter((t=>30===we.daysInMonth(t,e))).map((t=>new we(30,t,e))),new we(2,m.TISHREI,e),Xv(1,we.daysInMonth(m.NISAN,e)).map((t=>new we(t,m.NISAN,e))),new we(18,m.IYYAR,e),Xv(1,8-(t?1:0)).map((t=>new we(t,m.SIVAN,e))),o,new we(15,m.AV,e),new we(29,m.ELUL,e),Xv(9,24-(t?1:0)).map((t=>new we(t,m.TISHREI,e))),Xv(25,33).map((t=>new we(t,m.KISLEV,e))),new we(15,m.SHVAT,e),new we(14,m.ADAR_II,e),a,n?new we(14,m.ADAR_I,e):[]),s=[].concat(Xv(1,13).map((t=>new we(t,m.SIVAN,e))),Xv(20,31).map((t=>new we(t,m.TISHREI,e))),new we(14,m.IYYAR,e),e>=5708?Vp(e).next():[],e>=5727?new we(28,m.IYYAR,e):[]),c=[].concat(new we(29,m.ELUL,e-1),new we(9,m.TISHREI,e),new we(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return Qv;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=tA(new we(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:Qv}const nA=m.NISAN,rA=m.SIVAN,oA=m.ELUL,aA=m.TISHREI,iA=Ie.LIGHT_CANDLES,sA=Ie.YOM_TOV_ENDS,cA=Ie.CHUL_ONLY,uA=Ie.IL_ONLY,hA=Ie.LIGHT_CANDLES_TZEIS,lA=Ie.CHANUKAH_CANDLES,fA=Ie.MINOR_FAST,dA=Ie.SPECIAL_SHABBAT,gA=Ie.MODERN_HOLIDAY,mA=Ie.MAJOR_FAST,yA=Ie.ROSH_CHODESH,SA=Ie.PARSHA_HASHAVUA,pA=Ie.DAF_YOMI,wA=Ie.MISHNA_YOMI,vA=Ie.NACH_YOMI,AA=Ie.YERUSHALMI_YOMI,bA=Ie.OMER_COUNT,IA=Ie.SHABBAT_MEVARCHIM,MA=Ie.MINOR_HOLIDAY,TA=Ie.EREV,EA=Ie.CHOL_HAMOED,OA=Ie.YOM_KIPPUR_KATAN,CA=new Set,DA={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 HA={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},NA={281184:40,294801:30,293067:30};function kA(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(we.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function _A(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&yA&&delete e.noRoshChodesh;t&gA&&delete e.noModern;t&fA&&delete e.noMinorFast;t&dA&&delete e.noSpecialShabbat;t&SA&&(e.sedrot=!0);t&(pA|wA|vA|AA)&&(e.dailyLearning=e.dailyLearning||{},t&pA&&(e.dailyLearning.dafYomi=!0),t&wA&&(e.dailyLearning.mishnaYomi=!0),t&vA&&(e.dailyLearning.nachYomi=!0),t&AA&&(e.dailyLearning.yerushalmi=1));t&bA&&(e.omer=!0);t&IA&&(e.shabbatMevarchim=!0);t&OA&&(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|=yA|sA|fA|dA|gA|mA|MA|TA|EA|iA|hA|lA),e.candlelighting&&(r|=iA|hA|sA),e.noRoshChodesh&&(r&=~yA),e.noModern&&(r&=~gA),e.noMinorFast&&(r&=~fA),e.noSpecialShabbat&&(r&=~dA,r&=~IA),r|=n?uA:cA,e.sedrot&&(r|=SA),e.omer&&(r|=bA),e.shabbatMevarchim&&(r|=IA),e.yomKippurKatan&&(r|=OA),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=pA),t.mishnaYomi&&(r|=wA),t.nachYomi&&(r|=vA),t.yerushalmi&&(r|=AA)}return r}const LA=iA|hA|lA|sA,RA=new BS(0,0,!1,"UTC");function YA(e){return e.observedInIsrael()}function PA(e){return e.observedInDiaspora()}class jA{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof BS))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=NA[e];"number"==typeof r&&(n=r);const o=HA[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 n=t.location=t.location||RA,r=t.il=t.il||n.il||!1;if(t.mask=_A(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(!le.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else le.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=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[kA(t.start),kA(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new we).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?we.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new we(1,o||aA,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new we(1,aA,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==DA[t]||CA.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),CA.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new we(e),l=h.getFullYear();l!=u&&(u=l,i=xv(u),t.sedrot&&(a=Op(u,r)),t.omer&&(s=we.hebrew2abs(u,nA,16),c=we.hebrew2abs(u,rA,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const e of S)y=BA(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Cp(h,t.parsha,r,t.num))}const p=t.dailyLearning;if("object"==typeof p)for(const[e,t]of Object.entries(p))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Vv.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new ip(h,e-s+1);if(t.candlelighting){const e=new KS(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const w=h.getMonth(),v=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&w!=oA&&v>=23&&v<=29){const e=w==we.monthsInYear(l)?nA:w+1;if(t.molad&&o.push(new ap(h,l,e,t)),t.shabbatMevarchim){const n=we.getMonthName(e,l),r=new op(l,e).render(t.locale||"en",t);o.push(new Cv(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=WS(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof XS&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Ee(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=F(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=T(r);let a=n.mm,i=n.dd;return a===j&&!o||a===B&&o?a=E(e):a!==L||30!==i||N(e)?a===R&&30===i&&k(e)?(a=Y,i=1):a===j&&30===i&&o&&!T(e)&&(a=_,i=1):(a=R,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new we(n)}static getYahrzeit(e,t){const n=function(e,t){let n=F(t);if(!(e<=n.yy))return n.mm!==L||30!==n.dd||N(n.yy+1)?n.mm===R&&30===n.dd&&k(n.yy+1)?n=M(b(e,Y,1)-1):n.mm===B?n.mm=E(e):n.mm!==j||30!==n.dd||T(e)||(n.dd=30,n.mm=P):n=M(b(e,R,1)-1),n.mm!==L||30!==n.dd||N(e)?n.mm===R&&30===n.dd&&k(e)&&(n.mm=Y,n.dd=1):(n.mm=R,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new we(n)}static getHolidaysForYear(e){return xv(e)}static getHolidaysForYearArray(e,t){const n=xv(e),r=we.hebrew2abs(e,aA,1),o=we.hebrew2abs(e+1,aA,1)-1;let a=[];const i=t?YA:PA;for(let e=r;e<=o;e++){const t=new we(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=we.isHDate(e)?e:new we(e),r=n.toString(),o=xv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?YA:PA;return o.filter(a)}static reformatTimeStr(e,t,n){return GS(e,t,n)}static version(){return zv}static getSedra(e,t){return Op(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===m.NISAN&&(15===o||16===o)&&e.getFlags()&Ie.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()&Ie.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(jA.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return eA(e,t)}}function BA(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&OA||r.noModern&&s&gA)return e;const c=r.location,u=Boolean(s&mA),h=Boolean(s&fA);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new KS(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=ep(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=ep(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=ep(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=ep(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&LA){const t=n.getDate();if(e=WS(n,t,r,o,a),s&lA&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new KS(r,t.greg(),n.useElevation);return ep(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Iv(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&OA)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Ev,e.CandleLightingEvent=QS,e.DailyLearning=Vv,e.Event=Te,e.GeoLocation=kS,e.HDate=we,e.HavdalahEvent=XS,e.HebrewCalendar=jA,e.HebrewDateEvent=Ee,e.HolidayEvent=Iv,e.Locale=le,e.Location=BS,e.MevarchimChodeshEvent=Cv,e.Molad=op,e.MoladEvent=ap,e.NOAACalculator=LS,e.OmerEvent=ip,e.ParshaEvent=Cp,e.RoshChodeshEvent=Tv,e.RoshHashanaEvent=Dv,e.Sedra=cp,e.TimedEvent=qS,e.Zmanim=KS,e.flags=Ie,e.gematriya=V,e.gematriyaStrToNum=z,e.holidayDesc=hv,e.months=m,e.parshiot=up,e.version=zv,e}({});
|