@hebcal/core 5.6.0 → 5.7.0
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 +23 -1
- package/dist/CalOptions.d.ts +1 -1
- package/dist/HolidayEvent.d.ts +0 -5
- package/dist/YomKippurKatanEvent.d.ts +0 -1
- package/dist/bundle.js +9735 -9576
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +2 -2
- package/dist/bundle.min.js.map +1 -1
- package/dist/calendar.d.ts +110 -0
- package/dist/candles.d.ts +9 -1
- package/dist/es/CalOptions.d.ts +158 -0
- package/dist/es/DailyLearning.d.ts +21 -0
- package/dist/es/DailyLearning.js +36 -0
- package/dist/es/DailyLearning.js.map +1 -0
- package/dist/es/HebrewDateEvent.d.ts +37 -0
- package/dist/es/HebrewDateEvent.js +77 -0
- package/dist/es/HebrewDateEvent.js.map +1 -0
- package/dist/es/HolidayEvent.d.ts +76 -0
- package/dist/es/HolidayEvent.js +165 -0
- package/dist/es/HolidayEvent.js.map +1 -0
- package/dist/es/MevarchimChodeshEvent.d.ts +25 -0
- package/dist/es/MevarchimChodeshEvent.js +54 -0
- package/dist/es/MevarchimChodeshEvent.js.map +1 -0
- package/dist/es/ParshaEvent.d.ts +23 -0
- package/dist/es/ParshaEvent.js +53 -0
- package/dist/es/ParshaEvent.js.map +1 -0
- package/dist/es/TimedEvent.d.ts +47 -0
- package/dist/es/TimedEvent.js +97 -0
- package/dist/es/TimedEvent.js.map +1 -0
- package/dist/es/YomKippurKatanEvent.d.ts +23 -0
- package/dist/es/YomKippurKatanEvent.js +43 -0
- package/dist/es/YomKippurKatanEvent.js.map +1 -0
- package/dist/es/ashkenazi.po.d.ts +67 -0
- package/dist/es/ashkenazi.po.js +5 -0
- package/dist/es/ashkenazi.po.js.map +1 -0
- package/dist/es/calendar.d.ts +110 -0
- package/dist/es/calendar.js +615 -0
- package/dist/es/calendar.js.map +1 -0
- package/dist/es/candles.d.ts +36 -0
- package/dist/es/candles.js +154 -0
- package/dist/es/candles.js.map +1 -0
- package/dist/es/event.d.ts +187 -0
- package/dist/es/event.js +243 -0
- package/dist/es/event.js.map +1 -0
- package/dist/es/getStartAndEnd.d.ts +6 -0
- package/dist/es/getStartAndEnd.js +102 -0
- package/dist/es/getStartAndEnd.js.map +1 -0
- package/dist/es/hallel.d.ts +6 -0
- package/dist/es/hallel.js +52 -0
- package/dist/es/hallel.js.map +1 -0
- package/dist/es/he.po.d.ts +246 -0
- package/dist/es/he.po.js +5 -0
- package/dist/es/he.po.js.map +1 -0
- package/dist/es/hebcal.d.ts +259 -0
- package/dist/es/hebcal.js +336 -0
- package/dist/es/hebcal.js.map +1 -0
- package/dist/es/holidays.d.ts +22 -0
- package/dist/es/holidays.js +321 -0
- package/dist/es/holidays.js.map +1 -0
- package/dist/es/index.d.ts +23 -0
- package/dist/es/index.js +22 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/locale.d.ts +1 -0
- package/dist/es/locale.js +21 -0
- package/dist/es/locale.js.map +1 -0
- package/dist/es/location.d.ts +73 -0
- package/dist/es/location.js +306 -0
- package/dist/es/location.js.map +1 -0
- package/dist/es/modern.d.ts +18 -0
- package/dist/es/modern.js +64 -0
- package/dist/es/modern.js.map +1 -0
- package/dist/es/molad.d.ts +62 -0
- package/dist/es/molad.js +141 -0
- package/dist/es/molad.js.map +1 -0
- package/dist/es/omer.d.ts +37 -0
- package/dist/es/omer.js +88 -0
- package/dist/es/omer.js.map +1 -0
- package/dist/es/parshaName.d.ts +3 -0
- package/dist/es/parshaName.js +19 -0
- package/dist/es/parshaName.js.map +1 -0
- package/dist/es/pkgVersion.d.ts +2 -0
- package/dist/es/pkgVersion.js +6 -0
- package/dist/es/pkgVersion.js.map +1 -0
- package/dist/es/reformatTimeStr.d.ts +8 -0
- package/dist/es/reformatTimeStr.js +52 -0
- package/dist/es/reformatTimeStr.js.map +1 -0
- package/dist/es/sedra.d.ts +107 -0
- package/dist/es/sedra.js +494 -0
- package/dist/es/sedra.js.map +1 -0
- package/dist/es/staticHolidays.d.ts +176 -0
- package/dist/es/staticHolidays.js +626 -0
- package/dist/es/staticHolidays.js.map +1 -0
- package/dist/es/tachanun.d.ts +29 -0
- package/dist/es/tachanun.js +125 -0
- package/dist/es/tachanun.js.map +1 -0
- package/dist/es/zmanim.d.ts +341 -0
- package/dist/es/zmanim.js +573 -0
- package/dist/es/zmanim.js.map +1 -0
- package/dist/event.d.ts +1 -0
- package/dist/he.po.d.ts +0 -51
- package/dist/holidays.d.ts +13 -0
- package/dist/index.cjs +2757 -10038
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/module.d.ts +105 -80
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/sedra.d.ts +9 -4
- package/dist/tachanun.d.ts +17 -1
- package/package.json +21 -9
- package/dist/index.mjs +0 -11993
- package/dist/index.mjs.map +0 -1
package/dist/bundle.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @hebcal/core v5.
|
|
2
|
-
var hebcal=function(e){"use strict";const t="5.6.0",n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];function o(e,t){return e-t*Math.floor(e/t)}function a(e,t){return Math.floor(e/t)}function i(e){return!(e%4||!(e%100)&&e%400)}function s(e,t){return r[+i(t)][e]}function u(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function c(e,t,n){const r=e-1;return 365*r+a(r,4)-a(r,100)+a(r,400)+a(367*t-362,12)+(t<=2?0:i(e)?-1:-2)+n}function h(e){if(!u(e))throw new TypeError(`Argument not a Date: ${e}`);return c(e.getFullYear(),e.getMonth()+1,e.getDate())}function l(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=function(e){const t=e-1,n=a(t,146097),r=o(t,146097),i=a(r,36524),s=o(r,36524),u=a(s,1461),c=a(o(s,1461),365),h=400*n+100*i+4*u+c;return 4!==i&&4!==c?h+1:h}(e=Math.trunc(e)),n=a(12*(e-c(t,1,1)+(e<c(t,3,1)?0:i(t)?1:2))+373,367),r=e-c(t,n,1)+1,s=new Date(t,n-1,r);return t<100&&t>=0&&s.setFullYear(t),s}r[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=l,e.greg.daysInMonth=s,e.greg.greg2abs=h,e.greg.isDate=u,e.greg.isLeapYear=i;const f={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},d=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],g=[d.concat(["Adar","Nisan"]),d.concat(["Adar I","Adar II","Nisan"])],m=new Map,y=-1373428;function S(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function v(e,t,n){if(S(e,"year"),S(t,"month"),S(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<7){for(let t=7;t<=b(e);t++)r+=T(t,e);for(let n=1;n<t;n++)r+=T(n,e)}else for(let n=7;n<t;n++)r+=T(n,e);return y+I(e)+r-1}function p(e){return y+I(e)}function w(e){if(S(e,"abs"),(e=Math.trunc(e))<=y)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-y)/365.24682220597794);for(;p(t)<=e;)++t;--t;let n=e<v(t,1,1)?7:1;for(;e>v(t,n,T(n,t));)++n;return{yy:t,mm:n,dd:1+e-v(t,n,1)}}function A(e){return(1+7*e)%19<7}function b(e){return+A(e)+12}function T(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!A(t)||8===e&&!O(t)||9===e&&C(t)?29:30}function M(e,t){if(S(e,"month"),S(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return g[+A(t)][e]}function I(e){const t=m.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&&!A(e)||1==i%7&&a>=16789&&A(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return m.set(e,n),n}function E(e){return I(e+1)-I(e)}function O(e){return E(e)%10==5}function C(e){return E(e)%10==3}const N=f.NISAN,H=f.CHESHVAN,D=f.KISLEV,_=f.TEVET,k=f.SHVAT,L=f.ADAR_I,R=f.ADAR_II;function Y(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(u(e)){return w(h(e))}return w(e)}const P={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},j=new Map,B=new Map;for(const[e,t]of Object.entries(P))j.set(e,t),B.set(t,e);function F(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 U(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid gematriya number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=F(r);for(const t of e)n+=B.get(t);n+="׳"}const o=F(t%1e3);if(1===o.length)return n+B.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=B.get(o[e]);return n}function x(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*x(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=j.get(n);"number"==typeof e&&(t+=e)}return t}const Z={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 $(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function V(e){return[Math.floor((e-1)/7)+1,e%7||7]}function z(e,t){return $(e),"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+te:12===e?r+="שְׁנֵים "+te:12<e&&e<20?r+=J[n]+" "+te:e>9&&(r+=J[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=K[t]),r+=e<11?J[n]+" "+W+" ":" "+Q+" "):r+=1===e?ee+" ":q+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?J[t]+" "+X+" ":1===t?"שָׁבֽוּעַ "+J[1]+" ":G+" "+X+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?J[n]+" "+W+" ":1===n?ee+" ":q+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):function(e){const[t,n]=V(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)}const K=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],J=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],G="שְׁנֵי",W="יָמִים",q=G+" "+W,X="שָׁבוּעוֹת",Q="יוֹם",ee=Q+" "+J[1],te="עָשָׂר";function ne(e){return e<0?"-00"+ne(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function re(e){return e>=0&&e<10?"0"+e:String(e)}const oe=new Map;const ae=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ie(e,t){const n=function(e){const t=oe.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 oe.set(e,n),n}(e).format(t),r=ae.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=ne(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function se(e){return ne(e.getFullYear())+"-"+re(e.getMonth()+1)+"-"+re(e.getDate())}var ue={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},ce={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const he={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},le={h:"he",a:"ashkenazi",s:"en","":"en"},fe=new Map;let de,ge;function me(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function ye(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function Se(e){const t=ye(e),n=fe.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class ve{static lookupTranslation(e,t){const n=("string"==typeof t&&fe.get(t.toLowerCase())||de)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if(e=ye(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);fe.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=Se(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${t}`);const o=Array.isArray(n);if(o){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 string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=Se(e);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=ye(e),n=Se(t);return ge=le[t]||t,de=n,de}static getLocaleName(){return ge}static getLocaleNames(){return Array.from(fe.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||ge;if(!n)return me(e);switch(n){case"en":case"s":case"a":return me(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?me(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}ve.addLocale("en",he),ve.addLocale("s",he),ve.addLocale("",he),ve.useLocale("en"),ve.addLocale("ashkenazi",ue),ve.addLocale("a",ue),ve.addLocale("he",ce),ve.addLocale("h",ce);const pe=ce.contexts[""],we={};for(const[e,t]of Object.entries(pe))we[e]=[ve.hebrewStripNikkud(t[0])];const Ae={headers:ce.headers,contexts:{"":we}};ve.addLocale("he-x-NoNikud",Ae);const be="day",Te="week",Me="month",Ie="year";class Ee{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const a="string"==typeof n?parseInt(n,10):n;if(isNaN(a))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=a,function(e,t){e.mm=Ee.monthNum(t),Oe(e)}(this,t);const i="string"==typeof e?parseInt(e,10):e;if(isNaN(i))throw new TypeError(`HDate called with bad day argument: ${e}`);o=i,(r=this).dd=o,Oe(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?u(e)?h(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad argument: ${e}`);const n="number"==typeof t,r=n?w(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return A(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=b(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return T(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return l(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=v(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return v(e,t,n)}getMonthName(){return M(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||ve.getLocaleName(),r=this.getDate(),o=ve.gettext(this.getMonthName(),n).replace(/'/g,"’"),a=ve.ordinal(r,n),i=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=ve.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${a}${i} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=ve.gettext(this.getMonthName(),n),o=this.getFullYear();return U(t)+" "+r+" "+U(o)}before(e){return Ne(e,this,-1)}onOrBefore(e){return Ne(e,this,0)}nearest(e){return Ne(e,this,3)}onOrAfter(e){return Ne(e,this,6)}after(e){return Ne(e,this,7)}next(){return new Ee(this.abs()+1)}prev(){return new Ee(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new Ee(this);if(t=function(e){switch(e){case"d":return be;case"w":return Te;case"M":return Me;case"y":return Ie}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case be:case Te:case Me:case Ie:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===be)return new Ee(this.abs()+e);if(t===Te)return new Ee(this.abs()+7*e);if(t===Ie)return new Ee(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new Ee(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Ee(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return 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 A(e)}static monthsInYear(e){return b(e)}static daysInMonth(e,t){return T(e,t)}static getMonthName(e,t){return M(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):Ee.monthFromName(e)}static daysInYear(e){return E(e)}static longCheshvan(e){return O(e)}static shortKislev(e){return C(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 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(t[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`Unable to parse month name: ${e}`)}(ve.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=x(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=Ee.monthFromName(a);let s=x(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Ee(o,i,s)}}function Oe(e){Ce(e),function(e){e.dd<1&&(e.mm===f.TISHREI&&(e.yy-=1),e.dd+=T(e.mm,e.yy),e.mm-=1,Oe(e));e.dd>T(e.mm,e.yy)&&(e.mm===f.ELUL&&(e.yy+=1),e.dd-=T(e.mm,e.yy),e.mm===b(e.yy)?e.mm=1:e.mm+=1,Oe(e));Ce(e)}(e)}function Ce(e){e.mm!==f.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=b(e.yy),e.yy-=1,Oe(e)):e.mm>b(e.yy)&&(e.mm-=b(e.yy),e.yy+=1,Oe(e)):(e.mm-=1,Oe(e)),delete e.rd}function Ne(e,t,n){return new Ee(Ee.dayOnOrBefore(e,t.abs()+n))}var He={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"],"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"]}}},De={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":["רֹאשׁ חוֹדֶשׁ"],"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 2 on Sunday":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳ (בְּיוֹם רִאשׁוֹן)"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 3 on Monday":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳ (בְּיוֹם שָׁנִי)"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Pesach VII (on Shabbat)":["פֶּסַח ז׳ (בְּשַׁבָּת)"],"Pesach VIII (on Shabbat)":["פֶּסַח ח׳ (בְּשַׁבָּת)"],"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)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Shmini Atzeret (on Shabbat)":["שְׁמִינִי עֲצֶרֶת (בְּשַׁבָּת)"],"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":["פִּרְקֵי אָבוֹת"]}}};ve.addTranslations("he",De),ve.addTranslations("h",De),ve.addTranslations("ashkenazi",He),ve.addTranslations("a",He);const _e=De.contexts[""],ke={};for(const[e,t]of Object.entries(_e))ke[e]=[ve.hebrewStripNikkud(t[0])];const Le={headers:De.headers,contexts:{"":ke}};ve.addTranslations("he-x-NoNikud",Le);const Re={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},Ye=[[Re.MAJOR_FAST,"holiday","major","fast"],[Re.CHANUKAH_CANDLES,"holiday","major"],[Re.HEBREW_DATE,"hebdate"],[Re.MINOR_FAST,"holiday","fast"],[Re.MINOR_HOLIDAY,"holiday","minor"],[Re.MODERN_HOLIDAY,"holiday","modern"],[Re.MOLAD,"molad"],[Re.OMER_COUNT,"omer"],[Re.PARSHA_HASHAVUA,"parashat"],[Re.ROSH_CHODESH,"roshchodesh"],[Re.SHABBAT_MEVARCHIM,"mevarchim"],[Re.SPECIAL_SHABBAT,"holiday","shabbat"],[Re.USER_EVENT,"user"]];class Pe{constructor(e,t,n=0,r){if(!Ee.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 ve.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Re.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Re.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Pe(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}getCategories(){const e=this.getFlags();for(const t of Ye){if(e&t[0])return t.slice(1)}return["unknown"]}}class je extends Pe{constructor(e){super(e,e.toString(),Re.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:ve.getLocaleName(),r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=ve.gettext(t.getMonthName(),e);return U(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:ve.getLocaleName(),r=this.getDate();if(r.getMonth()===f.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}var Be,Fe,Ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xe={};function Ze(){if(Fe)return Be;Fe=1;var e=function(e){return e&&e.Math===Math&&e};return Be=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Ue&&Ue)||e("object"==typeof Be&&Be)||function(){return this}()||Function("return this")()}var $e,Ve,ze,Ke,Je,Ge,We,qe,Xe={};function Qe(){return Ve?$e:(Ve=1,$e=function(e){try{return!!e()}catch(e){return!0}})}function et(){if(Ke)return ze;Ke=1;var e=Qe();return ze=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function tt(){if(Ge)return Je;Ge=1;var e=Qe();return Je=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function nt(){if(qe)return We;qe=1;var e=tt(),t=Function.prototype.call;return We=e?t.bind(t):function(){return t.apply(t,arguments)},We}var rt,ot,at,it,st,ut,ct,ht,lt,ft,dt,gt,mt,yt,St,vt,pt,wt,At,bt,Tt,Mt,It,Et,Ot,Ct,Nt,Ht,Dt,_t,kt,Lt,Rt,Yt,Pt,jt,Bt,Ft,Ut,xt,Zt,$t={};function Vt(){return at?ot:(at=1,ot=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function zt(){if(st)return it;st=1;var e=tt(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return it=e?r:function(e){return function(){return n.apply(e,arguments)}},it}function Kt(){if(lt)return ht;lt=1;var e=zt(),t=Qe(),n=function(){if(ct)return ut;ct=1;var e=zt(),t=e({}.toString),n=e("".slice);return ut=function(e){return n(t(e),8,-1)},ut}(),r=Object,o=e("".split);return ht=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,ht}function Jt(){return dt||(dt=1,ft=function(e){return null==e}),ft}function Gt(){if(mt)return gt;mt=1;var e=Jt(),t=TypeError;return gt=function(n){if(e(n))throw new t("Can't call method on "+n);return n},gt}function Wt(){if(St)return yt;St=1;var e=Kt(),t=Gt();return yt=function(n){return e(t(n))},yt}function qt(){if(pt)return vt;pt=1;var e="object"==typeof document&&document.all;return vt=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Xt(){if(At)return wt;At=1;var e=qt();return wt=function(t){return"object"==typeof t?null!==t:e(t)},wt}function Qt(){if(Tt)return bt;Tt=1;var e=Ze(),t=qt();return bt=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},bt}function en(){if(Nt)return Ct;Nt=1;var e,t,n=Ze(),r=function(){if(Ot)return Et;Ot=1;var e=Ze().navigator,t=e&&e.userAgent;return Et=t?String(t):""}(),o=n.process,a=n.Deno,i=o&&o.versions||a&&a.version,s=i&&i.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),Ct=t}function tn(){if(Dt)return Ht;Dt=1;var e=en(),t=Qe(),n=Ze().String;return Ht=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function nn(){if(kt)return _t;kt=1;var e=tn();return _t=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function rn(){if(Rt)return Lt;Rt=1;var e=Qt(),t=qt(),n=function(){if(It)return Mt;It=1;var e=zt();return Mt=e({}.isPrototypeOf)}(),r=nn(),o=Object;return Lt=r?function(e){return"symbol"==typeof e}:function(r){var a=e("Symbol");return t(a)&&n(a.prototype,o(r))},Lt}function on(){if(Pt)return Yt;Pt=1;var e=String;return Yt=function(t){try{return e(t)}catch(e){return"Object"}}}function an(){if(Bt)return jt;Bt=1;var e=qt(),t=on(),n=TypeError;return jt=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function sn(){if(Ut)return Ft;Ut=1;var e=an(),t=Jt();return Ft=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Ft}function un(){if(Zt)return xt;Zt=1;var e=nt(),t=qt(),n=Xt(),r=TypeError;return xt=function(o,a){var i,s;if("string"===a&&t(i=o.toString)&&!n(s=e(i,o)))return s;if(t(i=o.valueOf)&&!n(s=e(i,o)))return s;if("string"!==a&&t(i=o.toString)&&!n(s=e(i,o)))return s;throw new r("Can't convert object to primitive value")},xt}var cn,hn,ln,fn,dn,gn,mn,yn,Sn,vn,pn,wn,An,bn,Tn,Mn,In,En,On,Cn,Nn,Hn,Dn,_n,kn={exports:{}};function Ln(){if(fn)return ln;fn=1;var e=Ze(),t=Object.defineProperty;return ln=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function Rn(){if(dn)return kn.exports;dn=1;var e=hn?cn:(hn=1,cn=!1),t=Ze(),n=Ln(),r="__core-js_shared__",o=kn.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),kn.exports}function Yn(){if(mn)return gn;mn=1;var e=Rn();return gn=function(t,n){return e[t]||(e[t]=n||{})}}function Pn(){if(Sn)return yn;Sn=1;var e=Gt(),t=Object;return yn=function(n){return t(e(n))}}function jn(){if(pn)return vn;pn=1;var e=zt(),t=Pn(),n=e({}.hasOwnProperty);return vn=Object.hasOwn||function(e,r){return n(t(e),r)},vn}function Bn(){if(An)return wn;An=1;var e=zt(),t=0,n=Math.random(),r=e(1..toString);return wn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Fn(){if(Tn)return bn;Tn=1;var e=Ze(),t=Yn(),n=jn(),r=Bn(),o=tn(),a=nn(),i=e.Symbol,s=t("wks"),u=a?i.for||i:i&&i.withoutSetter||r;return bn=function(e){return n(s,e)||(s[e]=o&&n(i,e)?i[e]:u("Symbol."+e)),s[e]}}function Un(){if(In)return Mn;In=1;var e=nt(),t=Xt(),n=rn(),r=sn(),o=un(),a=Fn(),i=TypeError,s=a("toPrimitive");return Mn=function(a,u){if(!t(a)||n(a))return a;var c,h=r(a,s);if(h){if(void 0===u&&(u="default"),c=e(h,a,u),!t(c)||n(c))return c;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(a,u)}}function xn(){if(On)return En;On=1;var e=Un(),t=rn();return En=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Zn(){if(Nn)return Cn;Nn=1;var e=Ze(),t=Xt(),n=e.document,r=t(n)&&t(n.createElement);return Cn=function(e){return r?n.createElement(e):{}},Cn}function $n(){if(Dn)return Hn;Dn=1;var e=et(),t=Qe(),n=Zn();return Hn=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Vn(){if(_n)return Xe;_n=1;var e=et(),t=nt(),n=function(){if(rt)return $t;rt=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return $t.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,$t}(),r=Vt(),o=Wt(),a=xn(),i=jn(),s=$n(),u=Object.getOwnPropertyDescriptor;return Xe.f=e?u:function(e,c){if(e=o(e),c=a(c),s)try{return u(e,c)}catch(e){}if(i(e,c))return r(!t(n.f,e,c),e[c])},Xe}var zn,Kn,Jn,Gn,Wn,qn,Xn,Qn={};function er(){if(Kn)return zn;Kn=1;var e=et(),t=Qe();return zn=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function tr(){if(Gn)return Jn;Gn=1;var e=Xt(),t=String,n=TypeError;return Jn=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function nr(){if(Wn)return Qn;Wn=1;var e=et(),t=$n(),n=er(),r=tr(),o=xn(),a=TypeError,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",h="writable";return Qn.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var a=s(e,t);a&&a[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:a[c],enumerable:u in n?n[u]:a[u],writable:!1})}return i(e,t,n)}:i:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return i(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Qn}function rr(){if(Xn)return qn;Xn=1;var e=et(),t=nr(),n=Vt();return qn=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var or,ar,ir,sr,ur,cr,hr,lr,fr,dr,gr,mr,yr,Sr,vr,pr={exports:{}};function wr(){if(sr)return ir;sr=1;var e=zt(),t=qt(),n=Rn(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),ir=n.inspectSource}function Ar(){if(lr)return hr;lr=1;var e=Yn(),t=Bn(),n=e("keys");return hr=function(e){return n[e]||(n[e]=t(e))}}function br(){return dr?fr:(dr=1,fr={})}function Tr(){if(mr)return gr;mr=1;var e,t,n,r=function(){if(cr)return ur;cr=1;var e=Ze(),t=qt(),n=e.WeakMap;return ur=t(n)&&/native code/.test(String(n))}(),o=Ze(),a=Xt(),i=rr(),s=jn(),u=Rn(),c=Ar(),h=br(),l="Object already initialized",f=o.TypeError,d=o.WeakMap;if(r||u.state){var g=u.state||(u.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(l);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=c("state");h[m]=!0,e=function(e,t){if(s(e,m))throw new f(l);return t.facade=e,i(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return gr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!a(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},gr}function Mr(){if(yr)return pr.exports;yr=1;var e=zt(),t=Qe(),n=qt(),r=jn(),o=et(),a=function(){if(ar)return or;ar=1;var e=et(),t=jn(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),a=o&&"something"===function(){}.name,i=o&&(!e||e&&r(n,"name").configurable);return or={EXISTS:o,PROPER:a,CONFIGURABLE:i}}().CONFIGURABLE,i=wr(),s=Tr(),u=s.enforce,c=s.get,h=String,l=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),m=o&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),S=pr.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||a&&e.name!==t)&&(o?l(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&l(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&l(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=u(e);return r(i,"source")||(i.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=S((function(){return n(this)&&c(this).source||i(this)}),"toString"),pr.exports}function Ir(){if(vr)return Sr;vr=1;var e=qt(),t=nr(),n=Mr(),r=Ln();return Sr=function(o,a,i,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:a;if(e(i)&&n(i,c,s),s.global)u?o[a]=i:r(a,i);else{try{s.unsafe?o[a]&&(u=!0):delete o[a]}catch(e){}u?o[a]=i:t.f(o,a,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},Sr}var Er,Or,Cr,Nr,Hr,Dr,_r,kr,Lr,Rr,Yr,Pr,jr,Br,Fr,Ur,xr,Zr={};function $r(){if(Nr)return Cr;Nr=1;var e=function(){if(Or)return Er;Or=1;var e=Math.ceil,t=Math.floor;return Er=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Er}();return Cr=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Vr(){if(Dr)return Hr;Dr=1;var e=$r(),t=Math.max,n=Math.min;return Hr=function(r,o){var a=e(r);return a<0?t(a+o,0):n(a,o)}}function zr(){if(kr)return _r;kr=1;var e=$r(),t=Math.min;return _r=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Kr(){if(Rr)return Lr;Rr=1;var e=zr();return Lr=function(t){return e(t.length)}}function Jr(){if(Pr)return Yr;Pr=1;var e=Wt(),t=Vr(),n=Kr(),r=function(r){return function(o,a,i){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(i,u);if(r&&a!=a){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===a)return r||h||0;return!r&&-1}};return Yr={includes:r(!0),indexOf:r(!1)}}function Gr(){if(Br)return jr;Br=1;var e=zt(),t=jn(),n=Wt(),r=Jr().indexOf,o=br(),a=e([].push);return jr=function(e,i){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&a(h,s);for(;i.length>c;)t(u,s=i[c++])&&(~r(h,s)||a(h,s));return h},jr}function Wr(){return Ur?Fr:(Ur=1,Fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var qr,Xr,Qr,eo,to,no,ro,oo,ao,io={};function so(){if(Qr)return Xr;Qr=1;var e=Qt(),t=zt(),n=function(){if(xr)return Zr;xr=1;var e=Gr(),t=Wr().concat("length","prototype");return Zr.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Zr}(),r=(qr||(qr=1,io.f=Object.getOwnPropertySymbols),io),o=tr(),a=t([].concat);return Xr=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),i=r.f;return i?a(t,i(e)):t},Xr}function uo(){if(to)return eo;to=1;var e=jn(),t=so(),n=Vn(),r=nr();return eo=function(o,a,i){for(var s=t(a),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||i&&e(i,l)||u(o,l,c(a,l))}},eo}function co(){if(ao)return oo;ao=1;var e=Ze(),t=Vn().f,n=rr(),r=Ir(),o=Ln(),a=uo(),i=function(){if(ro)return no;ro=1;var e=Qe(),t=qt(),n=/#|\.prototype\./,r=function(n,r){var u=a[o(n)];return u===s||u!==i&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},a=r.data={},i=r.NATIVE="N",s=r.POLYFILL="P";return no=r}();return oo=function(s,u){var c,h,l,f,d,g=s.target,m=s.global,y=s.stat;if(c=m?e:y?e[g]||o(g,{}):e[g]&&e[g].prototype)for(h in u){if(f=u[h],l=s.dontCallGetSet?(d=t(c,h))&&d.value:c[h],!i(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;a(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var ho,lo,fo,go,mo,yo,So,vo,po,wo,Ao={};function bo(){if(lo)return ho;lo=1;var e=Gr(),t=Wr();return ho=Object.keys||function(n){return e(n,t)},ho}function To(){if(mo)return go;mo=1;var e=Qt();return go=e("document","documentElement")}function Mo(){if(So)return yo;So=1;var e,t=tr(),n=function(){if(fo)return Ao;fo=1;var e=et(),t=er(),n=nr(),r=tr(),o=Wt(),a=bo();return Ao.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var i,s=o(t),u=a(t),c=u.length,h=0;c>h;)n.f(e,i=u[h++],s[i]);return e},Ao}(),r=Wr(),o=br(),a=To(),i=Zn(),s=Ar(),u="prototype",c="script",h=s("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;g="undefined"!=typeof document?document.domain&&e?d(e):(n=i("iframe"),o="java"+c+":",n.style.display="none",a.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete g[u][r[s]];return g()};return o[h]=!0,yo=Object.create||function(e,r){var o;return null!==e?(l[u]=t(e),o=new l,l[u]=null,o[h]=e):o=g(),void 0===r?o:n.f(o,r)},yo}function Io(){if(po)return vo;po=1;var e=Fn(),t=Mo(),n=nr().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),vo=function(e){o[r][e]=!0}}function Eo(e,t,n,r,o){return Oo(t,Co(e,t),n,r,o)}function Oo(e,t,n,r,o,a){const i=Go(t,n,r);if(o&&t!==i)throw new RangeError(nh(e,t,n,r,a));return i}function Co(e,t){const n=e[t];if(void 0===n)throw new TypeError(oh(t));return n}function No(e){return null!==e&&/object|function/.test(typeof e)}function Ho(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 Do(e){return _o({name:e},1)}function _o(e,t){return Yo((e=>({value:e,configurable:1,writable:!t})),e)}function ko(e){return Yo((e=>({get:e,configurable:1})),e)}function Lo(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Ro(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Yo(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Po(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 jo(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Bo(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Fo(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Uo(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function xo(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Zo(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function $o(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 Vo(e){return e[0].toUpperCase()+e.substring(1)}function zo(e){return e.slice().sort()}function Ko(e,t){return String(t).padStart(e,"0")}function Jo(e,t){return Math.sign(e-t)}function Go(e,t,n){return Math.min(Math.max(e,t),n)}function Wo(e,t){return[Math.floor(e/t),qo(e,t)]}function qo(e,t){return(e%t+t)%t}function Xo(e,t){return[Qo(e,t),ea(e,t)]}function Qo(e,t){return Math.trunc(e/t)||0}function ea(e,t){return e%t||0}function ta(e){return.5===Math.abs(e%1)}function na(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=Xh[a],s=qh/i,[u,c]=Xo(t,s);r+=c*i,o+=u}const[a,i]=Xo(r,qh);return[o+a,i]}function ra(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Xh[o];r[n[o]]=Qo(e,t),e=ea(e,t)}return r}function oa(e){if(void 0!==e)return ia(e)}function aa(e){return fa(ia(e))}function ia(e){return la(Ml(e))}function sa(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function ua(e,t){if(null==t)throw new RangeError(oh(e));return t}function ca(e){if(!No(e))throw new TypeError(th);return e}function ha(e,t){if(typeof t!==e)throw new TypeError(rh(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function la(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Gc(t,e));return e||0}function fa(e){if(e<=0)throw new RangeError(Wc(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function da(e){if("symbol"==typeof e)throw new TypeError(eh);return String(e)}function ga(e,t){return No(e)?String(e):bl(e,t)}function ma(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Qc(e));return e}function ya(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(Xc(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(qc(t,e));return e}function Sa(e,t){return Math.trunc(ya(e,t))||0}function va(e,t){return la(ya(e,t),t)}function pa(e,t){return fa(Sa(e,t),t)}function wa(e,t){let[n,r]=Xo(t,qh),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*qh),[o,r]}function Aa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return wa(e[0]+t[0]*n,e[1]+t[1]*n)}function ba(e,t){return wa(e[0],e[1]+t)}function Ta(e,t){return Aa(t,e,-1)}function Ma(e,t){return Jo(e[0],t[0])||Jo(e[1],t[1])}function Ia(e,t,n){return-1===Ma(e,t)||1===Ma(e,n)}function Ea(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(qh/t);return[Number(e/n),Number(e%n)*t]}function Oa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=qh/t,[r,o]=Xo(e,n);return[r,o*t]}function Ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=qh/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Na(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]=Xo(o,t);return r*(qh/t)+(a+(n?i/t:0))}function Ha(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wo;const[r,o]=e,[a,i]=n(o,t);return[r*(qh/t)+a,i]}function Da(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function _a(e){return Eo(e,"isoYear",Wl,Gl,1),e.isoYear===Wl?Eo(e,"isoMonth",4,12,1):e.isoYear===Gl&&Eo(e,"isoMonth",1,9,1),e}function ka(e){return La({...e,...Ul,isoHour:12}),e}function La(e){const t=Eo(e,"isoYear",Wl,Gl,1),n=t===Wl?1:t===Gl?-1:0;return n&&Ra(Ua({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Ra(e){if(!e||Ia(e,Jl,Kl))throw new RangeError(Nh);return e}function Ya(e){return na(e,5,Rl)[1]}function Pa(e){const[t,n]=Wo(e,qh);return[ra(n,5,Rl),t]}function ja(e){return Ba(e)[0]}function Ba(e){return Ha(e,Jh)}function Fa(e){return $a(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Ua(e){const t=Fa(e);if(void 0!==t){const[n,r]=Xo(t,$h);return[n,r*Kh+(e.isoMicrosecond||0)*zh+(e.isoNanosecond||0)]}}function xa(e,t){const[n,r]=Pa(Ya(e)-t);return Ra(Ua({...e,isoDay:e.isoDay+r,...n}))}function Za(){return $a(...arguments)/Vh}function $a(){const[e,t]=Va(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*$h}function Va(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===Wl?1:e===Gl?-1:0,u=new Date;return u.setUTCHours(r,o,a,i),u.setUTCFullYear(e,t-1,n+s),[u,s]}function za(e,t){let[n,r]=ba(e,t);r<0&&(r+=qh,n-=1);const[o,a]=Wo(r,Kh),[i,s]=Wo(a,zh);return Ka(n*$h+o,i,s)}function Ka(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)-zl)/$h)*Math.sign(e),o=new Date(e-r*$h);return Ro(Pl,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Ja(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Ga(){return Ql}function Wa(e,t){switch(t){case 2:return Xa(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function qa(e){return Xa(e)?366:365}function Xa(e){return e%4==0&&(e%100!=0||e%400==0)}function Qa(e){const[t,n]=Va(e.isoYear,e.isoMonth,e.isoDay);return qo(t.getUTCDay()-n,7)||7}function ei(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function ti(e){const t=Fa(e);if(t<ef)return ei(e);const n=Da(cd(pl),t),{era:r,eraYear:o}=Qu(n,pl);return[r,o]}function ni(e){return ri(e),ii(e,1),e}function ri(e){return ai(e,1),e}function oi(e){return xo(Yl,e,ai(e))}function ai(e,t){const{isoYear:n}=e,r=Eo(e,"isoMonth",1,Ga(),t);return{isoYear:n,isoMonth:r,isoDay:Eo(e,"isoDay",1,Wa(n,r),t)}}function ii(e,t){return Ro(Rl,[Eo(e,"isoHour",0,23,t),Eo(e,"isoMinute",0,59,t),Eo(e,"isoSecond",0,59,t),Eo(e,"isoMillisecond",0,999,t),Eo(e,"isoMicrosecond",0,999,t),Eo(e,"isoNanosecond",0,999,t)])}function si(e){return void 0===e?0:pf(ca(e))}function ui(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=pi(e);const n=wf(e),r=Af(e,t);return[pf(e),r,n]}function ci(e){return wf(pi(e))}function hi(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=pi(t);let i=Sf(t,r,o),s=yi(t),u=If(t,a);const c=yf(t,r,o,1);return null==i?i=Math.max(n,c):Ii(i,c),s=Si(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[i,c,s,u]}function li(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=yi(e=wi(e,nf));const o=If(e,7);let a=yf(e,t);return a=ua(nf,a),r=Si(r,a,void 0,n),[a,r,o]}function fi(e){return bf(pi(e))}function di(e,t){return gi(pi(e),t)}function gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=vi(e);return[If(e,4),...mi(yf(e,t),n)]}function mi(e,t){return null!=e?[Xh[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function yi(e){const t=e[of];return void 0===t?1:Sa(t,of)}function Si(e,t,n,r){const o=r?qh:Xh[t+1];if(o){const n=Xh[t];if(o%((e=Oo(of,e,1,o/n-(r?0:1),1))*n))throw new RangeError(rh(of,e))}else e=Oo(of,e,1,n?10**9:1,1);return e}function vi(e){let t=e[af];if(void 0!==t){if("number"!=typeof t){if("auto"===da(t))return;throw new RangeError(rh(af,t))}t=Oo(af,Math.floor(t),0,9,1)}return t}function pi(e){return void 0===e?{}:ca(e)}function wi(e,t){return"string"==typeof e?{[t]:e}:ca(e)}function Ai(e){if(void 0!==e){if(No(e))return Object.assign(Object.create(null),e);throw new TypeError(th)}}function bi(e,t){return e&&Object.assign(Object.create(null),e,{overflow:cf[t]})}function Ti(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=da(a),"auto"===a)return o?r:null;let i=xh[a];if(void 0===i&&(i=Dl[a]),void 0===i)throw new RangeError(uh(e,a,xh));return Oo(e,i,r,n,1,Zh),i}function Mi(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=da(o),i=t[a];if(void 0===i)throw new RangeError(uh(e,a,t));return i}function Ii(e,t){if(t>e)throw new RangeError(Rh)}function Ei(e){return{branding:_f,epochNanoseconds:e}}function Oi(e,t,n){return{branding:Df,calendar:n,timeZone:t,epochNanoseconds:e}}function Ci(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Nf,calendar:t,...Bo(Fl,e)}}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Cf,calendar:t,...Bo(jl,e)}}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Ef,calendar:t,...Bo(jl,e)}}function Di(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Of,calendar:t,...Bo(jl,e)}}function _i(e){return{branding:Hf,...Bo(Bl,e)}}function ki(e){return{branding:kf,sign:Ws(e),...Bo(Ol,e)}}function Li(e){return Ha(e.epochNanoseconds,Kh)[0]}function Ri(e){return e.epochNanoseconds}function Yi(e){return"string"==typeof e?e:bl(e.id)}function Pi(e,t){return e===t||Yi(e)===Yi(t)}function ji(e,t){return Na(Qs(e),Xh[t],1)}function Bi(e,t,n,r,o,a,i){const s=El[n],u={...t,[s]:t[s]+r},c=i(e,o,t),h=i(e,o,u);return[a(c),a(h)]}function Fi(e,t,n){const r=Na(Ta(t,n));if(!r)throw new RangeError(wh);return Na(Ta(t,e))/r}function Ui(e,t,n,r){return xi(e,Vi(t,n),r)}function xi(e,t,n){const[r,o]=Zi(e,t,n);return La({...Fs(e,o),...r})}function Zi(e,t,n){return Pa(Xi(Ya(e),t,n))}function $i(e){return Xi(e,Gh,7)}function Vi(e,t){return Xh[e]*t}function zi(e){const t=Ki(e);return[t,Fs(t,1)]}function Ki(e){return xl(6,e)}function Ji(e,t,n){const r=Math.min(ru(e),6);return eu(qi(Qs(e,r),t,n),r)}function Gi(e,t,n,r,o,a,i,s,u,c){if(0===r&&1===o)return e;const h=zs(r,s)?Vs(s)&&r<6&&n>=6?ts:es:ns;let[l,f,d]=h(e,t,n,r,o,a,i,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,a,i,s)=>{const u=Ws(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=Ll(c,e);r[El[c]]+=u;const h=Na(Ta(i(s(o,a,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),i,s,u,c)),l}function Wi(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/qh)(e);return[Xi(t,n,r),0]}return qi(e,Vi(t,n),r,o)}function qi(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=qh,o-=1);const[i,s]=Wo(Xi(a,t,n),qh);return wa(o+i,s)}function Xi(e,t,n){return Qi(e/t,n)*t}function Qi(e,t){return Lf[t](e)}function es(e,t,n,r,o,a){const i=Ws(e),s=Qs(e),u=Wi(s,r,o,a),c=Ta(s,u),h=Math.sign(u[0]-s[0])===i,l=eu(u,Math.min(n,6));return[{...e,...l},Aa(t,c),h]}function ts(e,t,n,r,o,a,i,s,u,c){const h=Ws(e),l=Na(Qs(e,5)),f=Vi(r,o);let d=Xi(l,f,a);const[g,m]=Bi(i,{...e,...kl},6,h,s,u,c),y=d-Na(Ta(g,m));let S=0;y&&Math.sign(y)!==h?t=ba(g,d):(S+=h,d=Xi(y,f,a),t=ba(m,d));const v=tu(d);return[{...e,...v,days:e.days+S},t,Boolean(S)]}function ns(e,t,n,r,o,a,i,s,u,c){const h=Ws(e),l=El[r],f=Ll(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=Qo(e[l],o)*o;f[l]=d;const[g,m]=Bi(i,f,r,o*h,s,u,c),y=d+Fi(t,g,m)*h*o,S=Xi(y,o,a),v=Math.sign(S-y)===h;return f[l]=S,[f,v?m:g,v]}function rs(e,t,n,r){const[o,a,i,s]=(e=>{const t=gi(e=pi(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,a)=>{n=qi(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return ds(za(n,i),a)+(e?vs($i(i)):"Z")})(u,t(u?e(o):Rf),n.epochNanoseconds,a,i,s)}function os(e,t,n){const[r,o,a,i,s,u]=(e=>{e=pi(e);const t=bf(e),n=vi(e),r=Mf(e),o=If(e,4),a=yf(e,4);return[t,Tf(e),r,o,...mi(a,n)]})(n);return((e,t,n,r,o,a,i,s,u,c)=>{r=qi(r,u,s,1);const h=e(n).getOffsetNanosecondsFor(r);return ds(za(r,h),c)+vs($i(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+Yi(e)+"]":"")(n,a)+ps(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,u)}function as(e,t){const[n,r,o,a]=(e=>(e=pi(e),[bf(e),...gi(e)]))(t);return i=e.calendar,s=n,u=a,ds(xi(e,o,r),u)+ps(i,s);var i,s,u}function is(e,t){return n=e.calendar,r=e,o=fi(t),gs(r)+ps(n,o);var n,r,o}function ss(e,t){return ls(e.calendar,ms,e,fi(t))}function us(e,t){return ls(e.calendar,ys,e,fi(t))}function cs(e,t){const[n,r,o]=di(t);return a=o,Ss(Zi(e,r,n)[0],a);var a}function hs(e,t){const[n,r,o]=di(t,3);return r>1&&(e={...e,...Ji(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Gs(e):e,{hours:o,minutes:a}=r,[i,s]=Ha(Qs(r,3),Jh,Xo);Xs(i);const u=As(s,t),c=t>=0||!n||u;return(n<0?"-":"")+"P"+fs({Y:Ts(r.years),M:Ts(r.months),W:Ts(r.weeks),D:Ts(r.days)})+(o||a||i||c?"T"+fs({H:Ts(o),M:Ts(a),S:Ts(i,c)+u}):"")})(e,o)}function ls(e,t,n,r){const o=Yi(e),a=r>1||0===r&&o!==Sl;return 1===r?o===Sl?t(n):gs(n):a?gs(n)+ws(o,2===r):t(n)}function fs(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function ds(e,t){return gs(e)+"T"+Ss(e,t)}function gs(e){return ms(e)+"-"+Uh(e.isoDay)}function ms(e){const{isoYear:t}=e;return(t<0||t>9999?bs(t)+Ko(6,Math.abs(t)):Ko(4,t))+"-"+Uh(e.isoMonth)}function ys(e){return Uh(e.isoMonth)+"-"+Uh(e.isoDay)}function Ss(e,t){const n=[Uh(e.isoHour),Uh(e.isoMinute)];return-1!==t&&n.push(Uh(e.isoSecond)+((e,t,n,r)=>As(e*Kh+t*zh+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function vs(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=Wo(Math.abs(e),Wh),[r,o]=Wo(n,Gh),[a,i]=Wo(o,Jh);return bs(e)+Uh(t)+":"+Uh(r)+(a||i?":"+Uh(a)+As(i):"")}function ps(e,t){if(1!==t){const n=Yi(e);if(t>1||0===t&&n!==Sl)return ws(n,2===t)}return""}function ws(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function As(e,t){let n=Ko(9,e);return n=void 0===t?n.replace(Bf,""):n.slice(0,t),n?"."+n:""}function bs(e){return e<0?"-":"+"}function Ts(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Ms(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=za(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Is(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 xa(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Ua(t);r&&(n=$i(n));for(const t of e){let e=Na(Ta(t,o));if(r&&(e=$i(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Oh)}return i?Ua(t):Es(e,t,o,s)}function Es(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(Ch);if(r.length)return r[3===n?1:0];const o=Ua(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(ba(t,-qh));return Cs(e.getOffsetNanosecondsFor(ba(t,qh))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(za(o,i)))[2===n?0:r.length-1]}function Os(e){if(Math.abs(e)>=qh)throw new RangeError(Ih);return e}function Cs(e){if(e>qh)throw new RangeError(Eh);return e}function Ns(e,t,n){return Ei(Ra(Aa(t.epochNanoseconds,(e=>{if(nu(e))throw new RangeError(kh);return Qs(e,5)})(e?Gs(n):n))))}function Hs(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,...Rs(i,s,r,n?Gs(o):o,a)}}function Ds(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Ci(Ys(e(a),n,t?Gs(r):r,o),a)}function _s(e,t,n,r,o){const{calendar:a}=n;return Ni(Ps(e(a),n,t?Gs(r):r,o),a)}function ks(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=js(i,n);t&&(r=Js(r)),r.sign<0&&(s=i.dateAdd(s,{..._l,months:1}),s=Fs(s,-1));const u=i.dateAdd(s,r,o);return Hi(js(i,u),a)}function Ls(e,t,n){return _i(Bs(t,e?Gs(n):n)[0])}function Rs(e,t,n,r,o){const a=Qs(r,5);let i=n.epochNanoseconds;if(nu(r)){const s=Ff(n,e);i=Aa(Es(e,{...Ps(t,s,{...r,...kl},o),...Bo(Rl,s)}),a)}else i=Aa(i,a),si(o);return{epochNanoseconds:Ra(i)}}function Ys(e,t,n,r){const[o,a]=Bs(t,n);return La({...Ps(e,t,{...n,...kl,days:n.days+a},r),...o})}function Ps(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);si(r);const o=n.days+Qs(n,5)[0];return o?ka(Fs(t,o)):t}function js(e,t){return Fs(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function Bs(e,t){const[n,r]=Qs(t,5),[o,a]=Pa(Ya(e)+r);return[o,n+a]}function Fs(e,t){return t?{...e,...Ka(Fa(e)+t*$h)}:e}function Us(e,t,n){const r=e(n.calendar);return Vs(n)?[n,r,t(n.timeZone)]:[{...n,...Ul},r]}function xs(e){return e?Ri:Ua}function Zs(e){return e?$o(Rs,e):Ys}function $s(e){return e?$o(Fu,e):Uu}function Vs(e){return e&&e.epochNanoseconds}function zs(e,t){return e<=6-(Vs(t)?1:0)}function Ks(e,t,n,r,o,a,i){const s=e(pi(i).relativeTo),u=Math.max(ru(o),ru(a));if(zs(u,s))return ki(qs(((e,t,n,r)=>{const o=Aa(Qs(e),Qs(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Nh);return{..._l,...eu(o,n)}})(o,a,u,r)));if(!s)throw new RangeError(_h);r&&(a=Gs(a));const[c,h,l]=Us(t,n,s),f=Zs(l),d=$s(l),g=f(h,c,o);return ki(d(h,c,f(h,g,a),u))}function Js(e){return ki(Gs(e))}function Gs(e){const t={};for(const n of El)t[n]=-1*e[n]||0;return t}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Dh);n=t}}return n}function qs(e){for(const t of Hl)Oo(t,e[t],-Uf,Uf,1);return Xs(Na(Qs(e),Jh)),e}function Xs(e){if(!Number.isSafeInteger(e))throw new RangeError(Hh)}function Qs(e){return na(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,El)}function eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=ra(r,t,El);if(o[El[t]]+=n*(qh/Xh[t]),!Number.isFinite(o[El[t]]))throw new RangeError(Nh);return o}function tu(e){return ra(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,El)}function nu(e){return Boolean(Ws(e,Nl))}function ru(e){let t=9;for(;t>0&&!e[El[t]];t--);return t}function ou(e,t){return[e,t]}function au(e){const t=Math.floor(e/Yf)*Yf;return[t,t+Yf]}function iu(e){const t=yu(e);if(void 0===t)throw new RangeError(Yh(e));return t}function su(e){const t=du(bl(e));if(!t||t.m)throw new RangeError(Yh(e));return Ni(t.p?hu(t):lu(t))}function uu(e){if(e.calendar!==Sl)throw new RangeError(Ph(e.calendar))}function cu(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=Mu(e.timeZone),a=xf(o);return Oi(Is(a,ni(e),t,n,r,!a.v,e.m),o,uc(e.calendar))}function hu(e){return fu(La(ni(e)))}function lu(e){return fu(ka(ri(e)))}function fu(e){return{...e,calendar:uc(e.calendar)}}function du(e){const t=td.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Su(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...vu(e.slice(5)),...pu(e[16]),p:Boolean(e[6]),m:n,offset:n?void 0:t}})(t):void 0}function gu(e){const t=Qf.exec(e);return t?(e=>({isoYear:Su(e),isoMonth:parseInt(e[4]),isoDay:1,...pu(e[5])}))(t):void 0}function mu(e){const t=ed.exec(e);return t?(e=>({isoYear:Xl,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...pu(e[3])}))(t):void 0}function yu(e,t){const n=rd.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Ph(n));return Os((Tu(e[2])*Wh+Tu(e[3])*Gh+Tu(e[4])*Jh+wu(e[5]||""))*bu(e[1]))})(n,t):void 0}function Su(e){const t=bu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Ph(-0));return t*n}function vu(e){const t=Tu(e[3]);return{...Pa(wu(e[4]||""))[0],isoHour:Tu(e[1]),isoMinute:Tu(e[2]),isoSecond:60===t?59:t}}function pu(e){let t,n;const r=[];if(e.replace(od,((e,o,a)=>{const i=Boolean(o),[s,u]=a.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(u))throw new RangeError(Ph(e))}else{if(n)throw new RangeError(Ph(e));n=s}return""})),r.length>1&&t)throw new RangeError(Ph(e));return{timeZone:n,calendar:r[0]||Sl}}function wu(e){return parseInt(e.padEnd(9,"0"))}function Au(e){return new RegExp(`^${e}$`,"i")}function bu(e){return e&&"+"!==e?-1:1}function Tu(e){return void 0===e?0:parseInt(e)}function Mu(e){const t=Eu(e);return"number"==typeof t?vs(t):t?(e=>{if(sd.test(e))throw new RangeError(Mh);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?Vo(e).replace(/island|noronha|murdo|rivadavia|urville/,Vo):e)))).join("/")})(e):Rf}function Iu(e){const t=Eu(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Rf}function Eu(e){const t=yu(e=e.toUpperCase(),1);return void 0!==t?t:e!==Rf?id(e):void 0}function Ou(e,t){return Ma(e.epochNanoseconds,t.epochNanoseconds)}function Cu(e,t){return Ma(e.epochNanoseconds,t.epochNanoseconds)}function Nu(e,t){return Hu(e,t)||Du(e,t)}function Hu(e,t){return Jo(Fa(e),Fa(t))}function Du(e,t){return Jo(Ya(e),Ya(t))}function _u(e,t){if(e===t)return 1;const n=Yi(e),r=Yi(t);if(n===r)return 1;try{return Iu(n)===Iu(r)}catch(e){}}function ku(e,t,n,r){const o=hi(e,Ai(r),3,5),a=$u(t.epochNanoseconds,n.epochNanoseconds,...o);return ki(e?Gs(a):a)}function Lu(e,t,n,r,o,a){const i=Gu(r.calendar,o.calendar),s=Ai(a),[u,c,h,l]=hi(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Ma(d,f);let m;if(g)if(u<6)m=$u(f,d,u,c,h,l);else{const n=t(((e,t)=>{if(!_u(e,t))throw new RangeError(Th);return e})(r.timeZone,o.timeZone)),a=e(i);m=xu(a,n,r,o,g,u,s),m=Gi(m,d,u,c,h,l,a,r,Ri,$o(Rs,n))}else m=_l;return ki(n?Gs(m):m)}function Ru(e,t,n,r,o){const a=Gu(n.calendar,r.calendar),i=Ai(o),[s,u,c,h]=hi(t,i,6),l=Ua(n),f=Ua(r),d=Ma(f,l);let g;if(d)if(s<=6)g=$u(l,f,s,u,c,h);else{const t=e(a);g=Zu(t,n,r,d,s,i),g=Gi(g,f,s,u,c,h,t,n,Ua,Ys)}else g=_l;return ki(t?Gs(g):g)}function Yu(e,t,n,r,o){const a=Gu(n.calendar,r.calendar),i=Ai(o);return ju(t,(()=>e(a)),n,r,...hi(t,i,6,9,6),i)}function Pu(e,t,n,r,o){const a=Gu(n.calendar,r.calendar),i=Ai(o),s=hi(t,i,9,9,8),u=e(a);return ju(t,(()=>u),js(u,n),js(u,r),...s,i)}function ju(e,t,n,r,o,a,i,s,u){const c=Ua(n),h=Ua(r);let l;if(Ma(h,c))if(6===o)l=$u(c,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,u),6===a&&1===i||(l=Gi(l,h,o,a,i,s,e,n,Ua,Ps))}else l=_l;return ki(e?Gs(l):l)}function Bu(e,t,n,r){const o=Ai(r),[a,i,s,u]=hi(e,o,5,5),c=Xi(Ju(t,n),Vi(i,s),u),h={..._l,...tu(c,a)};return ki(e?Gs(h):h)}function Fu(e,t,n,r,o,a){const i=Ma(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?Vu(n.epochNanoseconds,r.epochNanoseconds,o):xu(t,e,n,r,i,o,a):_l}function Uu(e,t,n,r,o){const a=Ua(t),i=Ua(n),s=Ma(i,a);return s?r<=6?Vu(a,i,r):Zu(e,t,n,s,r,o):_l}function xu(e,t,n,r,o,a,i){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...Fs(s,c++*-r),...i},f=Es(e,l),Ma(u,f)===-r}const a=Ff(t,e),i=Bo(Rl,a),s=Ff(n,e),u=n.epochNanoseconds;let c=0;const h=Ju(a,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(wh);const d=Na(Ta(f,u));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=u,{..._l,days:zu(h,l)}):e.dateUntil(s,u,a,i),...tu(c)}}function Zu(e,t,n,r,o,a){const[i,s,u]=((e,t,n)=>{let r=t,o=Ju(e,t);return Math.sign(o)===-n&&(r=Fs(t,-n),o+=qh*n),[e,r,o]})(t,n,r);return{...e.dateUntil(i,s,o,a),...tu(u)}}function $u(e,t,n,r,o,a){return{..._l,...eu(Wi(Ta(e,t),r,o,a),n)}}function Vu(e,t,n){return{..._l,...eu(Ta(e,t),n)}}function zu(e,t){return Ku(Fa(e),Fa(t))}function Ku(e,t){return Math.trunc((t-e)/$h)}function Ju(e,t){return Ya(t)-Ya(e)}function Gu(e,t){if(!Pi(e,t))throw new RangeError(Ah);return e}function Wu(e){function t(e){return((e,t)=>({...Qu(e,t),F:e.month,day:parseInt(e.day)}))(Da(n,e),r)}const n=cd(e),r=cc(e);return{id:e,O:qu(t),B:Xu(t)}}function qu(e){return Ho((t=>{const n=Fa(t);return e(n)}),WeakMap)}function Xu(e){const t=e(0).year-ql;return Ho((n=>{let r,o=$a(n-t);const a=[],i=[];do{o+=400*$h}while((r=e(o)).year<=n);do{o+=(1-r.day)*$h,r.year===n&&(a.push(o),i.push(r.F)),o-=$h}while((r=e(o)).year>=n);return{k:a.reverse(),C:Bh(i.reverse())}}))}function Qu(e,t){let n,r,o=ec(e);if(e.era){const a=wl[t];void 0!==a&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"!==n&&"a"!==n||(n="ce"),r=o,o=yc(r,a[n]||0))}return{era:n,eraYear:r,year:o}}function ec(e){return parseInt(e.relatedYear||e.year)}function tc(e){const{year:t,F:n,day:r}=this.O(e),{C:o}=this.B(t);return[t,o[n]+1,r]}function nc(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.B(e).k[t-1]+(n-1)*$h}function rc(e){const t=sc(this,e),n=sc(this,e-1),r=t.length;if(r>n.length){const e=vc(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function oc(e){return Ku(nc.call(this,e),nc.call(this,e+1))}function ac(e,t){const{k:n}=this.B(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.B(e+1).k),Ku(n[t-1],o[r-1])}function ic(e){return this.B(e).k.length}function sc(e,t){return Object.keys(e.B(t).C)}function uc(e){if((e=e.toLowerCase())!==Sl&&e!==vl&&cc(e)!==cc(cd(e).resolvedOptions().calendar))throw new RangeError(bh(e));return e}function cc(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function hc(e){return this.R(e)[0]}function lc(e){return this.R(e)[1]}function fc(e){const[t]=this.h(e);return Ku(this.q(t),Fa(e))+1}function dc(e){const t=hd.exec(e);if(!t)throw new RangeError(mh(e));return[parseInt(t[1]),Boolean(t[2])]}function gc(e,t,n){return e+(t||n&&e>=n?1:0)}function mc(e,t){return e-(t&&e>=t?1:0)}function yc(e,t){return(t+e)*(Math.sign(t)||1)||0}function Sc(e){return wl[pc(e)]}function vc(e){return Al[pc(e)]}function pc(e){return cc(e.id||Sl)}function wc(e,t,n,r){const o=Mc(n,r,dl,[],ol);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Ec(o),i=e(o.timeZone);return{epochNanoseconds:Is(t(i),{...r,...a},void 0!==o.offset?iu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...Ul}}function Ac(e,t,n){const r=Mc(e,t,dl,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function bc(e,t,n,r){const o=Mc(e,t,ll,r);return e.yearMonthFromFields(o,n)}function Tc(e,t,n,r){const o=Mc(e,n,dl,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=Xl),e.monthDayFromFields(o,r)}function Mc(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 Ic(t,[...e.fields(n),...o].sort(),r)}function Ic(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(ih(r));if("constructor"===r||"__proto__"===r)throw new RangeError(ah(r));let t=e[r];if(void 0!==t)i=1,gd[r]&&(t=gd[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(oh(r));o[r]=yl[r]}a=r}if(r&&!i)throw new TypeError(sh(t));return o}function Ec(e,t){return ii(md({...yl,...e}),t)}function Oc(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=Ic(t,i,a);const u=Ic(n,i);return s=e.mergeFields(s,u),Ic(s,i,[])}function Cc(e,t){const n=Mc(e,t,ml);return e.monthDayFromFields(n)}function Nc(e,t,n){const r=Mc(e,t,fl);return e.yearMonthFromFields(r,n)}function Hc(e,t,n,r,o){t=Bo(n=e.fields(n),t),r=Ic(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Ic(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Dc(e,t){let{era:n,eraYear:r,year:o}=t;const a=Sc(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(lh);if(!a)throw new RangeError(hh);const e=a[n];if(void 0===e)throw new RangeError(dh(n));const t=yc(r,e);if(void 0!==o&&o!==t)throw new RangeError(fh);o=t}else if(void 0===o)throw new TypeError(gh(a));return o}function _c(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.U(n),[a,i]=dc(t);let s=gc(a,i,o);if(i){const t=vc(e);if(void 0===t)throw new RangeError(ph);if(t>0){if(s>t)throw new RangeError(ph);if(void 0===o){if(1===r)throw new RangeError(ph);s--}}else{if(s!==-t)throw new RangeError(ph);if(void 0===o&&1===r)throw new RangeError(ph)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(yh);o=t,r=1}else if(void 0===o)throw new TypeError(Sh);return Oo("month",o,1,e.L(n),r)}function kc(e,t,n,r,o){return Eo(t,"day",1,e.j(r,n),o)}function Lc(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 Rc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sl;return Oi(e.epochNanoseconds,t,n)}function Yc(e,t){return Ci(Ff(t,e))}function Pc(e,t){return Ni(Ff(t,e))}function jc(e,t){return _i(Ff(t,e))}function Bc(e,t){return{...e,calendar:t}}function Fc(e,t){if(e===t)return e;const n=Yi(e),r=Yi(t);if(n===r||n===Sl)return t;if(r===Sl)return e;throw new RangeError(Ah)}function Uc(e,t){return n=>n===Sl?e:n===vl||n===pl?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),ud(n))}function xc(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=Fo(r,o),e)||Object.assign(o,t),n&&(o.timeZone=Rf,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function Zc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$c;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$d;for(var i=arguments.length,s=new Array(i>2?i-2:0),u=2;u<i;u++)s[u-2]=arguments[u];const c=t(r&&r(...s),o,a,n),h=c.resolvedOptions();return[c,...Vc(e,h,s)]}}function $c(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(jh);n.timeZone=e}return new Zl(t,n)}function Vc(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Sl)&&e!==t)throw new RangeError(Ah)})(Yi(e.calendar),t.calendar,o),r(e,t))))}function zc(e){const t=Kc();return za(t,e.getOffsetNanosecondsFor(t))}function Kc(){return Oa(Date.now(),Kh)}function Jc(){return Xd||(Xd=(new Zl).resolvedOptions().timeZone)}!function(){if(wo)return xe;wo=1;var e=co(),t=Jr().includes,n=Qe(),r=Io();e({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();const Gc=(e,t)=>`Non-integer ${e}: ${t}`,Wc=(e,t)=>`Non-positive ${e}: ${t}`,qc=(e,t)=>`Non-finite ${e}: ${t}`,Xc=e=>`Cannot convert bigint to ${e}`,Qc=e=>`Invalid bigint: ${e}`,eh="Cannot convert Symbol to string",th="Invalid object",nh=(e,t,n,r,o)=>o?nh(e,o[t],o[n],o[r]):rh(e,t)+`; must be between ${n}-${r}`,rh=(e,t)=>`Invalid ${e}: ${t}`,oh=e=>`Missing ${e}`,ah=e=>`Invalid field ${e}`,ih=e=>`Duplicate field ${e}`,sh=e=>"No valid fields: "+e.join(),uh=(e,t,n)=>rh(e,t)+"; must be "+Object.keys(n).join(),ch="Invalid calling context",hh="Forbidden era/eraYear",lh="Mismatching era/eraYear",fh="Mismatching year/eraYear",dh=e=>`Invalid era: ${e}`,gh=e=>"Missing year"+(e?"/era/eraYear":""),mh=e=>`Invalid monthCode: ${e}`,yh="Mismatching month/monthCode",Sh="Missing month/monthCode",vh="Cannot guess year",ph="Invalid leap month",wh="Invalid protocol results",Ah="Mismatching Calendars",bh=e=>`Invalid Calendar: ${e}`,Th="Mismatching TimeZones",Mh="Forbidden ICU TimeZone",Ih="Out-of-bounds offset",Eh="Out-of-bounds TimeZone gap",Oh="Invalid TimeZone offset",Ch="Ambiguous offset",Nh="Out-of-bounds date",Hh="Out-of-bounds duration",Dh="Cannot mix duration signs",_h="Missing relativeTo",kh="Cannot use large units",Lh="Required smallestUnit or largestUnit",Rh="smallestUnit > largestUnit",Yh=e=>`Cannot parse: ${e}`,Ph=e=>`Invalid substring: ${e}`,jh="Cannot specify TimeZone",Bh=$o(Po,((e,t)=>t)),Fh=$o(Po,((e,t,n)=>n)),Uh=$o(Ko,2),xh={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Zh=Object.keys(xh),$h=864e5,Vh=1e3,zh=1e3,Kh=1e6,Jh=1e9,Gh=6e10,Wh=36e11,qh=864e11,Xh=[1,zh,Kh,Jh,Gh,Wh,qh],Qh=Zh.slice(0,6),el=zo(Qh),tl=["offset"],nl=["timeZone"],rl=Qh.concat(tl),ol=rl.concat(nl),al=["era","eraYear"],il=al.concat(["year"]),sl=["year"],ul=["monthCode"],cl=["month"].concat(ul),hl=["day"],ll=cl.concat(sl),fl=ul.concat(sl),dl=hl.concat(ll),gl=hl.concat(cl),ml=hl.concat(ul),yl=Fh(Qh,0),Sl="iso8601",vl="gregory",pl="japanese",wl={[vl]:{bce:-1,ce:0},[pl]:{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}},Al={chinese:13,dangi:13,hebrew:-6},bl=$o(ha,"string"),Tl=$o(ha,"boolean"),Ml=$o(ha,"number"),Il=$o(ha,"function"),El=Zh.map((e=>e+"s")),Ol=zo(El),Cl=El.slice(0,6),Nl=El.slice(6),Hl=Nl.slice(1),Dl=Bh(El),_l=Fh(El,0),kl=Fh(Cl,0),Ll=$o(Zo,El),Rl=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Yl=["isoDay","isoMonth","isoYear"],Pl=Rl.concat(Yl),jl=zo(Yl),Bl=zo(Rl),Fl=zo(Pl),Ul=Fh(Bl,0),xl=$o(Zo,Pl),Zl=Intl.DateTimeFormat,$l="en-GB",Vl=1e8,zl=Vl*$h,Kl=[Vl,0],Jl=[-Vl,0],Gl=275760,Wl=-271821,ql=1970,Xl=1972,Ql=12,ef=$a(1868,9,8),tf=Ho(ti,WeakMap),nf="smallestUnit",rf="unit",of="roundingIncrement",af="fractionalSecondDigits",sf="relativeTo",uf={constrain:0,reject:1},cf=Object.keys(uf),hf={compatible:0,reject:1,earlier:2,later:3},lf={reject:0,use:1,prefer:2,ignore:3},ff={auto:0,never:1,critical:2,always:3},df={auto:0,never:1,critical:2},gf={auto:0,never:1},mf={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},yf=$o(Ti,nf),Sf=$o(Ti,"largestUnit"),vf=$o(Ti,rf),pf=$o(Mi,"overflow",uf),wf=$o(Mi,"disambiguation",hf),Af=$o(Mi,"offset",lf),bf=$o(Mi,"calendarName",ff),Tf=$o(Mi,"timeZoneName",df),Mf=$o(Mi,"offset",gf),If=$o(Mi,"roundingMode",mf),Ef="PlainYearMonth",Of="PlainMonthDay",Cf="PlainDate",Nf="PlainDateTime",Hf="PlainTime",Df="ZonedDateTime",_f="Instant",kf="Duration",Lf=[Math.floor,e=>ta(e)?Math.floor(e):Math.round(e),Math.ceil,e=>ta(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>ta(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=>ta(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Rf="UTC",Yf=5184e3,Pf=Za(1847),jf=Za((new Date).getUTCFullYear()+10),Bf=/0+$/,Ff=Ho(Ms,WeakMap),Uf=2**32-1,xf=Ho((e=>{const t=Eu(e);return"object"==typeof t?new $f(t):new Zf(t||0)}));class Zf{constructor(e){this.v=e}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(e){return[xa(e,this.v)]}l(){}}class $f{constructor(e){this.$=(e=>{function t(e){const t=Go(e,a,i),[s,u]=au(t),c=r(s),h=r(u);return c===h?c:n(o(s,u),c,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=Ho(e),o=Ho(ou);let a=Pf,i=jf;return{G(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]:[]},V:t,l(e,t){const s=Go(e,a,i);let[u,c]=au(s);const h=Yf*t,l=t<0?()=>c>a||(a=s,0):()=>u<i||(i=s,0);for(;l();){const a=r(u),i=r(c);if(a!==i){const r=o(u,c);n(r,a,i);const s=r[0];if((Jo(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=Da(e,t*Vh);return Za(ec(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(ja(e))*Jh}getPossibleInstantsFor(e){const[t,n]=[Za((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Kh+r.isoMicrosecond*zh+r.isoNanosecond];var r;return this.$.G(t).map((e=>Ra(ba(Oa(e,Jh),n))))}l(e,t){const[n,r]=Ba(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return Oa(o,Jh)}}const Vf="([+−-])",zf="(?:[.,](\\d{1,9}))?",Kf=`(?:(?:${Vf}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Jf="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+zf+")?)?",Gf=Vf+Jf,Wf=Kf+"-?(\\d{2})(?:[T ]"+Jf+"(Z|"+Gf+")?)?",qf="\\[(!?)([^\\]]*)\\]",Xf=`((?:${qf}){0,9})`,Qf=Au(Kf+Xf),ed=Au("(?:--)?(\\d{2})-?(\\d{2})"+Xf),td=Au(Wf+Xf),nd=Au("T?"+Jf+"(?:"+Gf+")?"+Xf),rd=Au(Gf),od=new RegExp(qf,"g"),ad=Au(`${Vf}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${zf}H)?(?:(\\d+)${zf}M)?(?:(\\d+)${zf}S)?)?`),id=Ho((e=>new Zl($l,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),sd=/^(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$/,ud=Ho(Wu),cd=Ho((e=>new Zl($l,{calendar:e,timeZone:Rf,era:"short",year:"numeric",month:"short",day:"numeric"}))),hd=/^M(\d{2})(L?)$/,ld={era:ga,eraYear:Sa,year:Sa,month:pa,monthCode:ga,day:pa},fd=Fh(Qh,Sa),dd=Fh(El,va),gd=Object.assign({},ld,fd,dd,{offset:ga}),md=$o(jo,Qh,Rl),yd={dateAdd(e,t,n){const r=si(n);let o,{years:a,months:i,weeks:s,days:u}=t;if(u+=Qs(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.h(t);if(n){const[t,r]=e.I(a,i);a+=n,i=gc(t,r,e.U(a)),i=Oo("month",i,1,e.L(a),o)}return r&&([a,i]=e._(a,i,r)),s=Oo("day",s,1,e.j(a,i),o),e.q(a,i,s)})(this,e,a,i,r);else{if(!s&&!u)return e;o=Fa(e)}return o+=(7*s+u)*$h,ka(Ka(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=zu({...e,...Ul},{...t,...Ul});return 7===n&&([r,o]=Xo(o,7)),{..._l,weeks:r,days:o}}const r=this.h(e),o=this.h(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,u=a-n,c=i-r;if(s||u){const h=Math.sign(s||u);let l=e.j(o,a),f=0;if(Math.sign(c)===-h){const r=l;[o,a]=e._(o,a,-h),s=o-t,u=a-n,l=e.j(o,a),f=h<0?-r:l}if(c=i-Math.min(r,l)+f,s){const[r,i]=e.I(t,n),[c,l]=e.I(o,a);if(u=c-r||Number(l)-Number(i),Math.sign(u)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,u=a-gc(r,i,e.U(o))+(n||e.L(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(i+=this.J(a,r[0]),a=0),{..._l,years:a,months:i,days:s}},dateFromFields(e,t){const n=si(t),r=Dc(this,e),o=_c(this,e,r,n),a=kc(this,e,o,r,n);return Ni(ka(this.P(r,o,a)),this.id||Sl)},yearMonthFromFields(e,t){const n=si(t),r=Dc(this,e),o=_c(this,e,r,n);return Hi(_a(this.P(r,o,1)),this.id||Sl)},monthDayFromFields(e,t){const n=si(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,u,c,h,l;if(void 0!==o){[s,u]=dc(o),l=Co(e,"day");const t=this.N(s,u,l);if(!t)throw new RangeError(vh);if([c,h]=t,void 0!==i&&i!==h)throw new RangeError(yh);r&&(h=Oo("month",h,1,Ql,1),l=Oo("day",l,1,Wa(void 0!==a?a:c,h),n))}else{c=void 0===a&&r?Xl:Dc(this,e),h=_c(this,e,c,n),l=kc(this,e,h,c,n);const t=this.U(c);u=h===t,s=mc(h,t);const o=this.N(s,u,l);if(!o)throw new RangeError(vh);[c,h]=o}return Di(ka(this.P(c,h,l)),this.id||Sl)},fields(e){return Sc(this)&&e.includes("year")?[...e,...al]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Lc(n,t,cl),Sc(this)&&(Lc(n,t,il),this.id===pl&&Lc(n,t,gl,al)),n},inLeapYear(e){const[t]=this.h(e);return this.K(t)},monthsInYear(e){const[t]=this.h(e);return this.L(t)},daysInMonth(e){const[t,n]=this.h(e);return this.j(t,n)},daysInYear(e){const[t]=this.h(e);return this.X(t)},dayOfYear:fc,era(e){return this.ee(e)[0]},eraYear(e){return this.ee(e)[1]},monthCode(e){const[t,n]=this.h(e),[r,o]=this.I(t,n);return((e,t)=>"M"+Uh(e)+(t?"L":""))(r,o)},dayOfWeek:Qa,daysInWeek:()=>7},Sd={dayOfYear:fc,h:Ja,q:$a},vd=Object.assign({},Sd,{weekOfYear:hc,yearOfWeek:lc,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=qa(f+e),r=e||1,o=t(qo(u+n*r,7));return h=(n+(o-c)*r)/7}const r=this.id?1:4,o=Qa(e),a=this.dayOfYear(e),i=qo(o-1,7),s=a-1,u=qo(i-s,7),c=t(u);let h,l=Math.floor((s-c)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),pd={dayOfYear:fc,h:tc,q:nc,weekOfYear:hc,yearOfWeek:lc,R:()=>[]},wd=Uc(Object.assign({},yd,vd,{h:Ja,ee(e){return this.id===vl?ei(e):this.id===pl?tf(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[Xl,e]},K:Xa,U(){},L:Ga,J:e=>e*Ql,j:Wa,X:qa,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:$a,_:(e,t,n)=>(e+=Qo(n,Ql),(t+=ea(n,Ql))<1?(e--,t+=Ql):t>Ql&&(e++,t-=Ql),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},yd,pd,{h:tc,ee(e){const t=this.O(e);return[t.era,t.eraYear]},I(e,t){const n=rc.call(this,e);return[mc(t,n),n===t]},N(e,t,n){let[r,o,a]=tc.call(this,{isoYear:Xl,isoMonth:Ql,isoDay:31});const i=rc.call(this,r),s=o===i;1===(Jo(e,mc(o,i))||Jo(Number(t),Number(s))||Jo(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=rc.call(this,a),s=gc(e,t,i);if(t===(s===i)&&n<=ac.call(this,a,s))return[a,s]}},K(e){const t=oc.call(this,e);return t>oc.call(this,e-1)&&t>oc.call(this,e+1)},U:rc,L:ic,J(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+=ic.call(this,e+o);return a},j:ac,X:oc,P(e,t,n){return Ka(nc.call(this,e,t,n))},q:nc,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Nh);if(n<0)for(;t<1;)t+=ic.call(this,--e);else{let n;for(;t>(n=ic.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.O(e).year},month(e){const{year:t,F:n}=this.O(e),{C:r}=this.B(t);return r[n]+1},day(e){return this.O(e).day}})),Ad="numeric",bd=["timeZoneName"],Td={month:Ad,day:Ad},Md={year:Ad,month:Ad},Id=Object.assign({},Md,{day:Ad}),Ed={hour:Ad,minute:Ad,second:Ad},Od=Object.assign({},Id,Ed),Cd=Object.assign({},Od,{timeZoneName:"short"}),Nd=Object.keys(Md),Hd=Object.keys(Td),Dd=Object.keys(Id),_d=Object.keys(Ed),kd=["dateStyle"],Ld=Nd.concat(kd),Rd=Hd.concat(kd),Yd=Dd.concat(kd,["weekday"]),Pd=_d.concat(["dayPeriod","timeStyle"]),jd=Yd.concat(Pd),Bd=jd.concat(bd),Fd=bd.concat(Pd),Ud=bd.concat(Yd),xd=bd.concat(["day","weekday"],Pd),Zd=bd.concat(["year","weekday"],Pd),$d={},Vd=[xc(jd,Od),Li],zd=[xc(Bd,Cd),Li,0,(e,t)=>{const n=Yi(e.timeZone);if(t&&Yi(t.timeZone)!==n)throw new RangeError(Th);return n}],Kd=[xc(jd,Od,bd),Fa],Jd=[xc(Yd,Id,Fd),Fa],Gd=[xc(Pd,Ed,Ud),e=>Ya(e)/Kh],Wd=[xc(Ld,Md,xd),Fa,1],qd=[xc(Rd,Td,Zd),Fa,1];let Xd;function Qd(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(ch);Jg(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)}),Do(t))}function s(t){const n=Kg(t);if(!n||n.branding!==e)throw new TypeError(ch);return n}return Object.defineProperties(a.prototype,{...ko(Yo(i,n)),..._o(Yo(i,r)),...Lo("Temporal."+e)}),Object.defineProperties(a,{..._o(o),...Do(e)}),[a,e=>{const t=Object.create(a.prototype);return Jg(t,e),t},s]}function eg(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 tg(e){if(Kg(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function ng(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{o:o}=e;const a=Kg(n)||{},{branding:i}=a,s=i===Cf||t.includes(i)?a:vg(n);return o[r](s)};return n}function rg(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?wd(r):(o=r,Object.assign(Object.create(em),{i:o})))[n](e);var r,o};return t}function og(){throw new TypeError("Cannot use valueOf")}function ag(e){let{calendar:t}=e;return"string"==typeof t?new Xm(t):t}function ig(e,t){if(t=Ai(t),No(e)){const n=Kg(e);if(n&&n.branding===Of)return si(t),n;const r=Mg(e);return Tc(Fm(r||Sl),!r,e,t)}const n=function(e,t){const n=mu(bl(t));if(n)return uu(n),Di(ri(n));const r=su(t),{calendar:o}=r,a=e(o),[i,s,u]=a.h(r),[c,h]=a.I(i,s),[l,f]=a.N(c,h,u);return Di(ka(a.P(l,f,u)),o)}(wd,e);return si(t),n}function sg(e,t,n){return Os(ia(t.call(e,lm(Ei(n)))))}function ug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:um;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=$o(t[o],e,Il(e[o]));return r}function cg(e,t){return"string"==typeof e?xf(e):ug(e,t)}function hg(e){return cg(e,cm)}function lg(e){if(No(e)){const t=Kg(e);if(t)switch(t.branding){case _f:return t;case Df:return Ei(t.epochNanoseconds)}}return function(e){const t=du(e=ga(e));if(!t)throw new RangeError(Yh(e));let n;if(t.m)n=0;else{if(!t.offset)throw new RangeError(Yh(e));n=iu(t.offset)}return t.timeZone&&yu(t.timeZone,1),Ei(xa(ni(t),n))}(e)}function fg(e,t,n){const r=t.l(lg(n).epochNanoseconds,e);return r?lm(Ei(r)):null}function dg(e){return No(e)?(Kg(e)||{}).timeZone||mm(e):(e=>Mu(function(e){const t=du(e);return t&&(t.timeZone||t.m&&Rf||t.offset)||e}(bl(e))))(e)}function gg(e,t){if(No(e)){const n=Kg(e)||{};switch(n.branding){case Hf:return si(t),n;case Nf:return si(t),_i(n);case Df:return si(t),jc(hg,n)}return function(e,t){const n=si(t);return _i(Ec(Ic(e,el,[],1),n))}(e,t)}return si(t),function(e){let t,n=(e=>{const t=nd.exec(e);return t?(pu(t[10]),vu(t)):void 0})(bl(e));if(!n){if(n=du(e),!n)throw new RangeError(Yh(e));if(!n.p)throw new RangeError(Yh(e));if(n.m)throw new RangeError(Ph("Z"));uu(n)}if((t=gu(e))&&oi(t))throw new RangeError(Yh(e));if((t=mu(e))&&oi(t))throw new RangeError(Yh(e));return _i(ii(n,1))}(e)}function mg(e){return void 0===e?void 0:gg(e)}function yg(e,t){if(t=Ai(t),No(e)){const n=Kg(e);return n&&n.branding===Ef?(si(t),n):bc(jm(Tg(e)),e,t)}const n=function(e,t){const n=gu(bl(t));if(n)return uu(n),Hi(_a(ri(n)));const r=su(t);return Hi(js(e(r.calendar),r))}(wd,e);return si(t),n}function Sg(e,t){if(t=Ai(t),No(e)){const n=Kg(e)||{};switch(n.branding){case Nf:return si(t),n;case Cf:return si(t),Ci({...n,...Ul});case Df:return si(t),Yc(hg,n)}return function(e,t,n){const r=Mc(e,t,dl,[],Qh),o=si(n);return Ci(La({...e.dateFromFields(r,bi(n,o)),...Ec(r,o)}))}(Bm(Tg(e)),e,t)}const n=function(e){const t=du(bl(e));if(!t||t.m)throw new RangeError(Yh(e));return Ci(hu(t))}(e);return si(t),n}function vg(e,t){if(t=Ai(t),No(e)){const n=Kg(e)||{};switch(n.branding){case Cf:return si(t),n;case Nf:return si(t),Ni(n);case Df:return si(t),Pc(hg,n)}return Ac(Bm(Tg(e)),e,t)}const n=su(e);return si(t),n}function pg(e,t,n){return aa(t.call(e,Mm(Ni(n,e))))}function wg(e){return t=>"string"==typeof t?wd(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=$o(t[o],e,e[o]);return r})(t,e)}function Ag(e){if(No(e)){const t=Kg(e);return t&&t.branding===kf?t:function(e){const t=Ic(e,Ol);return ki(qs({..._l,...t}))}(e)}return function(e){const t=(e=>{const t=ad.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=Wo(o,Xh[a])),void 0!==e){if(r)throw new RangeError(Ph(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Ph(e));return t})(e),n=1,t&&(o=wu(t)*(Xh[a]/Jh),r=1)}return i+s}let n=0,r=0,o=0,a={...Ro(El,[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)]),...ra(o,2,El)};if(!n)throw new RangeError(sh(El));return bu(e[1])<0&&(a=Gs(a)),a})(t):void 0})(bl(e));if(!t)throw new RangeError(Yh(e));return ki(qs(t))}(e)}function bg(e){if(void 0!==e){if(No(e)){const t=Kg(e)||{};switch(t.branding){case Df:case Cf:return t;case Nf:return Ni(t)}const n=Tg(e);return{...wc(dg,cg,Bm(n),e),calendar:n}}return function(e){const t=du(bl(e));if(!t)throw new RangeError(Yh(e));if(t.timeZone)return cu(t,t.offset?iu(t.offset):void 0);if(t.m)throw new RangeError(Yh(e));return lu(t)}(e)}}function Tg(e){return Mg(e)||Sl}function Mg(e){const{calendar:t}=e;if(void 0!==t)return Ig(t)}function Ig(e){return No(e)?(Kg(e)||{}).calendar||Qm(e):(e=>uc(function(e){const t=du(e)||gu(e)||mu(e);return t?t.calendar:e}(bl(e))))(e)}function Eg(e,t){if(t=Ai(t),No(e)){const n=Kg(e);if(n&&n.branding===Df)return ui(t),n;const r=Tg(e);return function(e,t,n,r,o,a){const i=Mc(n,o,dl,nl,ol),s=e(i.timeZone),[u,c,h]=ui(a),l=n.dateFromFields(i,bi(a,u)),f=Ec(i,u);return Oi(Is(t(s),{...l,...f},void 0!==i.offset?iu(i.offset):void 0,c,h),s,r)}(dg,cg,Bm(r),r,e,t)}return function(e,t){const n=du(bl(e));if(!n||!n.timeZone)throw new RangeError(Yh(e));const{offset:r}=n,o=r?iu(r):void 0,[,a,i]=ui(t);return cu(n,o,a,i)}(e,t)}function Og(e){return Yo((e=>t=>e(Cg(t))),e)}function Cg(e){return Ff(e,hg)}function Ng(){const e=Zl.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(Zl),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);ay.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Zl(e,t),r=n.resolvedOptions(),o=r.locale,a=Bo(Object.keys(t),r),i=Ho(_g),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const u=r.map(((t,n)=>{const r=Kg(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,...u):[n,...r]};return s.u=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Hg(e);"function"==typeof n.value?n.value="constructor"===e?r:o||Dg(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Hg(e){return function(){const t=ay.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function Dg(e){return function(){return ay.get(this).u[e](...arguments)}}function _g(e){const t=kg[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return Zc(t,Ho($c))}const kg={Instant:Vd,PlainDateTime:Kd,PlainDate:Jd,PlainTime:Gd,PlainYearMonth:Wd,PlainMonthDay:qd},Lg=Zc(Vd),Rg=Zc(zd),Yg=Zc(Kd),Pg=Zc(Jd),jg=Zc(Gd),Bg=Zc(Wd),Fg=Zc(qd),Ug={era:function(e){if(void 0!==e)return bl(e)},eraYear:oa,year:ia,month:aa,daysInMonth:aa,daysInYear:aa,inLeapYear:Tl,monthsInYear:aa},xg={monthCode:bl},Zg={day:aa},$g={dayOfWeek:aa,dayOfYear:aa,weekOfYear:function(e){if(void 0!==e)return aa(e)},yearOfWeek:oa,daysInWeek:aa},Vg=Object.assign({},Ug,xg,Zg,$g),zg=new WeakMap,Kg=zg.get.bind(zg),Jg=zg.set.bind(zg),Gg={...ng(Ug,[Ef]),...ng($g,[]),...ng(xg,[Ef,Of]),...ng(Zg,[Of])},Wg=rg(Vg),qg=rg({...Ug,...xg}),Xg=rg({...xg,...Zg}),Qg={calendarId:e=>Yi(e.calendar)},em=Yo(((e,t)=>function(n){const{i:r}=this;return e(r[t](Mm(Ni(n,r))))}),Vg),tm=Po((e=>t=>t[e]),El.concat("sign")),nm=Po(((e,t)=>e=>e[Rl[t]]),Qh),rm={epochSeconds:function(e){return ja(e.epochNanoseconds)},epochMilliseconds:Li,epochMicroseconds:function(e){return Ca(e.epochNanoseconds,zh)},epochNanoseconds:function(e){return Ca(e.epochNanoseconds)}},om=$o(Fo,new Set(["branding"])),[am,im,sm]=Qd(Of,$o((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Sl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Xl;const a=Sa(t),i=Sa(n),s=e(r);return Di(ka(ri({isoYear:Sa(o),isoMonth:a,isoDay:i})),s)}),Ig),{...Qg,...Xg},{getISOFields:om,getCalendar:ag,with(e,t,n){return im(function(e,t,n,r,o){const a=Ai(o);return((e,t,n,r)=>{const o=Oc(e,t,n,dl);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(Zm,e,this,tg(t),n))},equals:(e,t)=>function(e,t){return!Hu(e,t)&&Pi(e.calendar,t.calendar)}(e,ig(t)),toPlainDate(e,t){return Mm(function(e,t,n,r){return((e,t,n)=>Hc(e,t,ml,ca(n),sl))(e(t.calendar),n,r)}(xm,e,this,t))},toLocaleString(e,t,n){const[r,o]=Fg(t,n,e);return r.format(o)},toString:us,toJSON:e=>us(e),valueOf:og},{from:(e,t)=>im(ig(e,t))}),um={getOffsetNanosecondsFor:sg,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,bm(Ci(n,Sl)))].map((e=>fm(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Ma),Cs(Na(Ta(r[0],r[o-1])))),r}},cm={getOffsetNanosecondsFor:sg},[hm,lm,fm]=Qd(_f,(function(e){return Ei(Ra(Ea(ma(e))))}),rm,{add:(e,t)=>lm(Ns(0,e,Ag(t))),subtract:(e,t)=>lm(Ns(1,e,Ag(t))),until:(e,t,n)=>Gm(ku(0,e,lg(t),n)),since:(e,t,n)=>Gm(ku(1,e,lg(t),n)),round:(e,t)=>lm(function(e,t){const[n,r,o]=li(t,5,1);return Ei(Wi(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Ou(e,t)}(e,lg(t)),toZonedDateTime(e,t){const n=ca(t);return ty(Rc(e,dg(n.timeZone),Ig(n.calendar)))},toZonedDateTimeISO:(e,t)=>ty(Rc(e,dg(t))),toLocaleString(e,t,n){const[r,o]=Lg(t,n,e);return r.format(o)},toString:(e,t)=>rs(dg,hg,e,t),toJSON:e=>rs(dg,hg,e),valueOf:og},{from:e=>lm(lg(e)),fromEpochSeconds:e=>lm(function(e){return Ei(Ra(Oa(e,Jh)))}(e)),fromEpochMilliseconds:e=>lm(function(e){return Ei(Ra(Oa(e,Kh)))}(e)),fromEpochMicroseconds:e=>lm(function(e){return Ei(Ra(Ea(ma(e),zh)))}(e)),fromEpochNanoseconds:e=>lm(function(e){return Ei(Ra(Ea(ma(e))))}(e)),compare:(e,t)=>Ou(lg(e),lg(t))}),[dm,gm]=Qd("TimeZone",(e=>{const t=function(e){return Mu(bl(e))}(e);return{branding:"TimeZone",id:t,o:xf(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{o:n}=e;return n.getPossibleInstantsFor(Sg(t)).map((e=>lm(Ei(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(lg(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=lg(t).epochNanoseconds;return vs(ug(this,cm).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sl;const r=lg(t).epochNanoseconds,o=ug(this,cm).getOffsetNanosecondsFor(r);return bm(Ci(za(r,o),Ig(n)))},getInstantFor(e,t,n){const r=Sg(t),o=ci(n),a=ug(this);return lm(Ei(Es(a,r,o)))},getNextTransition:(e,t)=>{let{o:n}=e;return fg(1,n,t)},getPreviousTransition:(e,t)=>{let{o:n}=e;return fg(-1,n,t)},equals(e,t){return!!_u(this,dg(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=dg(e);return"string"==typeof t?new dm(t):t}}),mm=eg(Object.keys(um)),[ym,Sm]=Qd(Hf,(function(){return _i(ii(Yo(Sa,Ro(Rl,[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))}),nm,{getISOFields:om,with(e,t,n){return Sm(function(e,t,n){return _i(((e,t,n)=>{const r=si(n);return Ec({...Bo(el,e),...Ic(t,el)},r)})(e,t,n))}(this,tg(t),n))},add:(e,t)=>Sm(Ls(0,e,Ag(t))),subtract:(e,t)=>Sm(Ls(1,e,Ag(t))),until:(e,t,n)=>Gm(Bu(0,e,gg(t),n)),since:(e,t,n)=>Gm(Bu(1,e,gg(t),n)),round:(e,t)=>Sm(function(e,t){const[n,r,o]=li(t,5);var a;return _i((a=o,Zi(e,Vi(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Du(e,t)}(e,gg(t)),toZonedDateTime:(e,t)=>ty(function(e,t,n,r,o){const a=ca(o),i=t(a.plainDate),s=e(a.timeZone);return Oi(Es(n(s),{...i,...r}),s,i.calendar)}(dg,vg,cg,e,t)),toPlainDateTime:(e,t)=>bm(function(e,t){return Ci(La({...e,...t}))}(e,vg(t))),toLocaleString(e,t,n){const[r,o]=jg(t,n,e);return r.format(o)},toString:cs,toJSON:e=>cs(e),valueOf:og},{from:(e,t)=>Sm(gg(e,t)),compare:(e,t)=>Du(gg(e),gg(t))}),[vm,pm,wm]=Qd(Ef,$o((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Sl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=Sa(t),i=Sa(n),s=e(r);return Hi(_a(ri({isoYear:a,isoMonth:i,isoDay:Sa(o)})),s)}),Ig),{...Qg,...qg},{getISOFields:om,getCalendar:ag,with(e,t,n){return pm(function(e,t,n,r,o){const a=Ai(o);return Hi(((e,t,n,r)=>{const o=Oc(e,t,n,ll);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(Um,e,this,tg(t),n))},add:(e,t,n)=>pm(ks(zm,0,e,Ag(t),n)),subtract:(e,t,n)=>pm(ks(zm,1,e,Ag(t),n)),until:(e,t,n)=>Gm(Pu(Km,0,e,yg(t),n)),since:(e,t,n)=>Gm(Pu(Km,1,e,yg(t),n)),equals:(e,t)=>function(e,t){return!Hu(e,t)&&Pi(e.calendar,t.calendar)}(e,yg(t)),toPlainDate(e,t){return Mm(function(e,t,n,r){return((e,t,n)=>Hc(e,t,fl,ca(n),hl))(e(t.calendar),n,r)}(xm,e,this,t))},toLocaleString(e,t,n){const[r,o]=Bg(t,n,e);return r.format(o)},toString:ss,toJSON:e=>ss(e),valueOf:og},{from:(e,t)=>pm(yg(e,t)),compare:(e,t)=>Hu(yg(e),yg(t))}),[Am,bm]=Qd(Nf,$o((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Sl;return Ci(La(ni(Yo(Sa,Ro(Pl,[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))}),Ig),{...Qg,...Wg,...nm},{getISOFields:om,getCalendar:ag,with(e,t,n){return bm(function(e,t,n,r,o){const a=Ai(o);return Ci(((e,t,n,r)=>{const o=Oc(e,t,n,dl,Qh),a=si(r);return La({...e.dateFromFields(o,bi(r,a)),...Ec(o,a)})})(e(t.calendar),n,r,a))}(xm,e,this,tg(t),n))},withCalendar:(e,t)=>bm(Bc(e,Ig(t))),withPlainDate:(e,t)=>bm(function(e,t){return Ci({...e,...t},Fc(e.calendar,t.calendar))}(e,vg(t))),withPlainTime:(e,t)=>bm(function(e){return Ci({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ul})}(e,mg(t))),add:(e,t,n)=>bm(Ds($m,0,e,Ag(t),n)),subtract:(e,t,n)=>bm(Ds($m,1,e,Ag(t),n)),until:(e,t,n)=>Gm(Ru(Vm,0,e,Sg(t),n)),since:(e,t,n)=>Gm(Ru(Vm,1,e,Sg(t),n)),round:(e,t)=>bm(function(e,t){return Ci(Ui(e,...li(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Nu(e,t)&&Pi(e.calendar,t.calendar)}(e,Sg(t)),toZonedDateTime:(e,t,n)=>ty(function(e,t,n,r){const o=((e,t,n,r)=>{const o=ci(r);return Es(e(t),n,o)})(e,n,t,r);return Oi(Ra(o),n,t.calendar)}(cg,e,dg(t),n)),toPlainDate:e=>Mm(Ni(e)),toPlainTime:e=>Sm(_i(e)),toPlainYearMonth(e){return pm(function(e,t,n){const r=e(t.calendar);return Hi({...t,...Nc(r,n)})}(jm,e,this))},toPlainMonthDay(e){return im(function(e,t,n){return Cc(e(t.calendar),n)}(Fm,e,this))},toLocaleString(e,t,n){const[r,o]=Yg(t,n,e);return r.format(o)},toString:as,toJSON:e=>as(e),valueOf:og},{from:(e,t)=>bm(Sg(e,t)),compare:(e,t)=>Nu(Sg(e),Sg(t))}),[Tm,Mm,Im]=Qd(Cf,$o((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Sl;return Ni(ka(ri(Yo(Sa,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Ig),{...Qg,...Wg},{getISOFields:om,getCalendar:ag,with(e,t,n){return Mm(function(e,t,n,r,o){const a=Ai(o);return((e,t,n,r)=>{const o=Oc(e,t,n,dl);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(xm,e,this,tg(t),n))},withCalendar:(e,t)=>Mm(Bc(e,Ig(t))),add:(e,t,n)=>Mm(_s($m,0,e,Ag(t),n)),subtract:(e,t,n)=>Mm(_s($m,1,e,Ag(t),n)),until:(e,t,n)=>Gm(Yu(Vm,0,e,vg(t),n)),since:(e,t,n)=>Gm(Yu(Vm,1,e,vg(t),n)),equals:(e,t)=>function(e,t){return!Hu(e,t)&&Pi(e.calendar,t.calendar)}(e,vg(t)),toZonedDateTime(e,t){const n=!No(t)||t instanceof dm?{timeZone:t}:t;return ty(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):Ul;return Oi(Es(n(a),{...r,...s}),a,r.calendar)}(dg,gg,cg,e,n))},toPlainDateTime:(e,t)=>bm(function(e){return Ci(La({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ul}))}(e,mg(t))),toPlainYearMonth(e){return pm(function(e,t,n){return Nc(e(t.calendar),n)}(jm,e,this))},toPlainMonthDay(e){return im(function(e,t,n){return Cc(e(t.calendar),n)}(Fm,e,this))},toLocaleString(e,t,n){const[r,o]=Pg(t,n,e);return r.format(o)},toString:is,toJSON:e=>is(e),valueOf:og},{from:(e,t)=>Mm(vg(e,t)),compare:(e,t)=>Hu(vg(e),vg(t))}),Em={fields:(e,t,n)=>[...t.call(e,n)]},Om=Object.assign({dateFromFields:(e,t,n,r)=>Im(t.call(e,Object.assign(Object.create(null),n),r))},Em),Cm=Object.assign({yearMonthFromFields:(e,t,n,r)=>wm(t.call(e,Object.assign(Object.create(null),n),r))},Em),Nm=Object.assign({monthDayFromFields:(e,t,n,r)=>sm(t.call(e,Object.assign(Object.create(null),n),r))},Em),Hm={mergeFields:(e,t,n,r)=>ca(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},Dm=Object.assign({},Om,Hm),_m=Object.assign({},Cm,Hm),km=Object.assign({},Nm,Hm),Lm={dateAdd:(e,t,n,r,o)=>Im(t.call(e,Mm(Ni(n,e)),Gm(ki(r)),o))},Rm=Object.assign({},Lm,{dateUntil:(e,t,n,r,o,a)=>Wm(t.call(e,Mm(Ni(n,e)),Mm(Ni(r,e)),Object.assign(Object.create(null),a,{largestUnit:Zh[o]})))}),Ym=Object.assign({},Lm,{day:pg}),Pm=Object.assign({},Rm,{day:pg}),jm=wg(Cm),Bm=wg(Om),Fm=wg(Nm),Um=wg(_m),xm=wg(Dm),Zm=wg(km),$m=wg(Lm),Vm=wg(Rm),zm=wg(Ym),Km=wg(Pm),[Jm,Gm,Wm]=Qd(kf,(function(){return ki(qs(Yo(va,Ro(El,[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]))))}),{...tm,blank:function(e){return!e.sign}},{with:(e,t)=>Gm(function(e,t){return ki((n=e,r=t,qs({...n,...Ic(r,Ol)})));var n,r}(e,t)),negated:e=>Gm(Js(e)),abs:e=>Gm(function(e){return-1===e.sign?Js(e):e}(e)),add:(e,t,n)=>Gm(Ks(bg,Vm,cg,0,e,Ag(t),n)),subtract:(e,t,n)=>Gm(Ks(bg,Vm,cg,1,e,Ag(t),n)),round:(e,t)=>Gm(function(e,t,n,r,o){const a=ru(r),[i,s,u,c,h]=((e,t,n)=>{e=wi(e,nf);let r=Sf(e);const o=n(e[sf]);let a=yi(e);const i=If(e,7);let s=yf(e);if(void 0===r&&void 0===s)throw new RangeError(Lh);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ii(r,s),a=Si(a,s,1),[r,s,a,i,o]})(o,a,e),l=Math.max(a,i);if(!Vs(h)&&l<=6)return ki(qs(((e,t,n,r,o)=>{const a=Wi(Qs(e),n,r,o);return{..._l,...eu(a,t)}})(r,i,s,u,c)));if(!h)throw new RangeError(_h);const[f,d,g]=Us(t,n,h),m=xs(g),y=Zs(g),S=$s(g),v=y(d,f,r);let p=S(d,f,v,i);const w=r.sign,A=Ws(p);if(w&&A&&w!==A)throw new RangeError(wh);return A&&(p=Gi(p,m(v),i,s,u,c,d,f,m,y)),ki(p)}(bg,Vm,cg,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=ru(r),[i,s]=((e,t)=>{const n=t((e=wi(e,rf))[sf]);let r=vf(e);return r=ua(rf,r),[r,n]})(o,e);if(zs(Math.max(i,a),s))return ji(r,i);if(!s)throw new RangeError(_h);const[u,c,h]=Us(t,n,s),l=xs(h),f=Zs(h),d=$s(h),g=f(c,u,r),m=d(c,u,g,i);return zs(i,s)?ji(m,i):((e,t,n,r,o,a,i)=>{const s=Ws(e),[u,c]=Bi(r,Ll(n,e),n,s,o,a,i),h=Fi(t,u,c);return e[El[n]]+h*s})(m,l(g),i,c,u,l,f)}(bg,Vm,cg,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):hs(e)},toString:hs,toJSON:e=>hs(e),valueOf:og},{from:e=>Gm(Ag(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(pi(a).relativeTo),s=Math.max(ru(r),ru(o));if(xo(El,r,o))return 0;if(zs(s,i))return Ma(Qs(r),Qs(o));if(!i)throw new RangeError(_h);const[u,c,h]=Us(t,n,i),l=xs(h),f=Zs(h);return Ma(l(f(c,u,r)),l(f(c,u,o)))}(bg,$m,cg,Ag(e),Ag(t),n)}),qm={toString:e=>e.id,toJSON:e=>e.id,...Gg,dateAdd:(e,t,n,r)=>{let{id:o,o:a}=e;return Mm(Ni(a.dateAdd(vg(t),Ag(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return Gm(ki(o.dateUntil(vg(t),vg(n),function(e){return e=pi(e),Sf(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Mm(Ac(o,t,n,function(e){return e===Sl?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return pm(bc(o,t,n,function(e){return e===Sl?sl:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return im(Tc(o,0,t,n,function(e){return e===Sl?hl:[]}(r)))},fields(e,t){let{o:n}=e;const r=new Set(dl),o=[];for(const e of t){if(bl(e),!r.has(e))throw new RangeError(ah(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(Uo(sa(t)),Uo(sa(n)))}},[Xm]=Qd("Calendar",(e=>{const t=function(e){return uc(bl(e))}(e);return{branding:"Calendar",id:t,o:wd(t)}}),{id:e=>e.id},qm,{from(e){const t=Ig(e);return"string"==typeof t?new Xm(t):t}}),Qm=eg(Object.keys(qm).slice(4)),[ey,ty]=Qd(Df,$o((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Sl;return Oi(Ra(Ea(ma(n))),t(r),e(o))}),Ig,dg),{...rm,...Qg,...Og(Wg),...Og(nm),offset:e=>vs(Cg(e).offsetNanoseconds),offsetNanoseconds:e=>Cg(e).offsetNanoseconds,timeZoneId:e=>Yi(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Ff(t,n),[o,a]=zi(r),i=Na(Ta(Es(n,o),Es(n,a)),Wh,1);if(i<=0)throw new RangeError(wh);return i}(cg,e)},{getISOFields:e=>function(e,t){const n=Ff(t,e);return{calendar:t.calendar,...Bo(Fl,n),offset:vs(n.offsetNanoseconds),timeZone:t.timeZone}}(hg,e),getCalendar:ag,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new dm(t):t},with(e,t,n){return ty(function(e,t,n,r,o,a){const i=Ai(a),{calendar:s,timeZone:u}=n;return Oi(((e,t,n,r,o)=>{const a=Oc(e,n,r,dl,rl,tl),[i,s,u]=ui(o,2);return Is(t,{...e.dateFromFields(a,bi(o,i)),...Ec(a,i)},iu(a.offset),s,u)})(e(s),t(u),r,o,i),u,s)}(xm,cg,e,this,tg(t),n))},withCalendar:(e,t)=>ty(Bc(e,Ig(t))),withTimeZone:(e,t)=>ty(function(e,t){return{...e,timeZone:t}}(e,dg(t))),withPlainDate:(e,t)=>ty(function(e,t,n){const r=t.timeZone,o=e(r),a={...Ff(t,o),...n},i=Fc(t.calendar,n.calendar);return Oi(Is(o,a,a.offsetNanoseconds,2),r,i)}(cg,e,vg(t))),withPlainTime:(e,t)=>ty(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ul;const r=t.timeZone,o=e(r),a={...Ff(t,o),...n};return Oi(Is(o,a,a.offsetNanoseconds,2),r,t.calendar)}(cg,e,mg(t))),add:(e,t,n)=>ty(Hs($m,cg,0,e,Ag(t),n)),subtract:(e,t,n)=>ty(Hs($m,cg,1,e,Ag(t),n)),until:(e,t,n)=>Gm(ki(Lu(Vm,cg,0,e,Eg(t),n))),since:(e,t,n)=>Gm(ki(Lu(Vm,cg,1,e,Eg(t),n))),round:(e,t)=>ty(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,u]=li(n);if(0===i&&1===s)return t;const c=e(o);if(6===i)r=((e,t,n,r)=>{const o=Ff(n,t),[a,i]=e(o),s=n.epochNanoseconds,u=Es(t,a),c=Es(t,i);if(Ia(s,u,c))throw new RangeError(wh);return Qi(Fi(s,u,c),r)?c:u})(zi,c,t,u);else{const e=c.getOffsetNanosecondsFor(r);r=Is(c,Ui(za(r,e),i,s,u),e,2,0,1)}return Oi(r,o,a)}(cg,e,t)),startOfDay:e=>ty(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Es(t,e(Ff(n,t))))(Ki,e(n),t);return Oi(o,n,r)}(cg,e)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&!!_u(e.timeZone,t.timeZone)&&Pi(e.calendar,t.calendar)}(e,Eg(t)),toInstant:e=>lm(function(e){return Ei(e.epochNanoseconds)}(e)),toPlainDateTime:e=>bm(Yc(hg,e)),toPlainDate:e=>Mm(Pc(hg,e)),toPlainTime:e=>Sm(jc(hg,e)),toPlainYearMonth(e){return pm(function(e,t,n){return Nc(e(t.calendar),n)}(jm,e,this))},toPlainMonthDay(e){return im(function(e,t,n){return Cc(e(t.calendar),n)}(Fm,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Rg(t,n,e);return r.format(o)},toString:(e,t)=>os(hg,e,t),toJSON:e=>os(hg,e),valueOf:og},{from:(e,t)=>ty(Eg(e,t)),compare:(e,t)=>Cu(Eg(e),Eg(t))}),ny=Object.defineProperties({},{...Lo("Temporal.Now"),..._o({timeZoneId:()=>Jc(),instant:()=>lm(Ei(Kc())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return ty(Oi(Kc(),dg(t),Ig(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return ty(Oi(Kc(),dg(e),Sl))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return bm(Ci(zc(hg(dg(t))),Ig(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return bm(Ci(zc(hg(dg(e))),Sl))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return Mm(Ni(zc(hg(dg(t))),Ig(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return Mm(Ni(zc(hg(dg(e))),Sl))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return Sm(_i(zc(hg(dg(e)))))}})}),ry=Object.defineProperties({},{...Lo("Temporal"),..._o({PlainYearMonth:vm,PlainMonthDay:am,PlainDate:Tm,PlainTime:ym,PlainDateTime:Am,ZonedDateTime:ey,Instant:hm,Calendar:Xm,TimeZone:dm,Duration:Jm,Now:ny})}),oy=Ng(),ay=new WeakMap;function iy(e){return e*Math.PI/180}function sy(e){return 180*e/Math.PI}Object.create(Intl),_o({DateTimeFormat:oy});class uy{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 cy=6356.9;class hy{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(hy.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(hy.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(hy.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(hy.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(hy.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(hy.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 sy(Math.acos(cy/(cy+e/1e3)))}adjustZenith(e,t){let n=e;return e===hy.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=hy.getSunriseUTC(hy.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=hy.getSunsetUTC(hy.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 hy.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 ry.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-hy.JULIAN_DAY_JAN_1_2000)/hy.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*hy.JULIAN_DAYS_PER_CENTURY+hy.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=iy(hy.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 hy.getSunGeometricMeanLongitude(e)+hy.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return hy.getSunTrueLongitude(e)-.00569-.00478*Math.sin(iy(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 hy.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(iy(t))}static getSunDeclination(e){const t=hy.getObliquityCorrection(e),n=hy.getSunApparentLongitude(e),r=Math.sin(iy(t))*Math.sin(iy(n));return sy(Math.asin(r))}static getEquationOfTime(e){const t=hy.getObliquityCorrection(e),n=hy.getSunGeometricMeanLongitude(e),r=hy.getEarthOrbitEccentricity(e),o=hy.getSunGeometricMeanAnomaly(e);let a=Math.tan(iy(t)/2);a*=a;const i=Math.sin(2*iy(n)),s=Math.sin(iy(o));return 4*sy(a*i-2*r*s+4*r*a*s*Math.cos(2*iy(n))-.5*a*a*Math.sin(4*iy(n))-1.25*r*r*Math.sin(2*iy(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=iy(e),o=iy(t);return Math.acos(Math.cos(iy(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=iy(e),o=iy(t);return-Math.acos(Math.cos(iy(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=hy.getJulianDay(e.toPlainDate()),o=hy.getJulianCenturiesFromJulianDay(r),a=hy.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=iy(n-i),u=iy(hy.getSunDeclination(o)),c=iy(t);return sy(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=hy.getJulianDay(e.toPlainDate()),o=hy.getJulianCenturiesFromJulianDay(r),a=hy.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=iy(n-i),u=iy(hy.getSunDeclination(o)),c=iy(t);return sy(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=hy.getJulianCenturiesFromJulianDay(e),a=hy.getSolarNoonUTC(o,n),i=hy.getJulianCenturiesFromJulianDay(e+a/1440);let s=hy.getEquationOfTime(i),u=hy.getSunDeclination(i),c=hy.getSunHourAngleAtSunrise(t,u,r),h=n-sy(c),l=4*h,f=720+l-s;const d=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(o)+f/1440);return s=hy.getEquationOfTime(d),u=hy.getSunDeclination(d),c=hy.getSunHourAngleAtSunrise(t,u,r),h=n-sy(c),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(e)+t/360);let r=hy.getEquationOfTime(n);const o=720+4*t-r,a=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=hy.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=hy.getJulianCenturiesFromJulianDay(e),a=hy.getSolarNoonUTC(o,n),i=hy.getJulianCenturiesFromJulianDay(e+a/1440);let s=hy.getEquationOfTime(i),u=hy.getSunDeclination(i),c=hy.getSunHourAngleAtSunset(t,u,r),h=n-sy(c),l=4*h,f=720+l-s;const d=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(o)+f/1440);return s=hy.getEquationOfTime(d),u=hy.getSunDeclination(d),c=hy.getSunHourAngleAtSunset(t,u,r),h=n-sy(c),l=4*h,f=720+l-s,f}}hy.GEOMETRIC_ZENITH=90,hy.CIVIL_ZENITH=96,hy.NAUTICAL_ZENITH=102,hy.ASTRONOMICAL_ZENITH=108,hy.JULIAN_DAY_JAN_1_2000=2451545,hy.JULIAN_DAYS_PER_CENTURY=36525;const ly=[["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]],fy=new Map,dy={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"},gy=new Map;class my extends uy{constructor(e,t,n,r,o,a,i,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o||null,u,c,"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=gy.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return gy.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return fy.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 dy[String(-1*e)]}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":dy[t]}static addLocation(e,t){const n=e.toLowerCase();return!fy.has(n)&&(fy.set(n,t),!0)}}for(const e of ly){const t=new my(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);my.addLocation(e[0],t)}function yy(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,_o({Temporal:ry})),Object.defineProperties(Intl,_o({DateTimeFormat:oy})),Object.defineProperties(Date.prototype,_o({toTemporalInstant:function(){return lm(Ei(Oa(this.valueOf(),Kh)))}}));class Sy{constructor(e,t,n){const r=function(e){if(u(e))return e;if(Ee.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new hy(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return yy(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return yy(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return yy(this.noaa.getSeaLevelSunrise())}sunset(){return yy(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return yy(this.noaa.getSeaLevelSunset())}dawn(){return yy(this.noaa.getBeginCivilTwilight())}dusk(){return yy(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new Sy(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return yy(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 yy(hy.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=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=ie("UTC",t),r=ie(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?"+":"-")+re(Math.floor(r/60))+":"+re(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":ie(e,t).substring(0,19)+Sy.timeZoneOffset(e,t)}sunriseOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}sunsetOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}static makeSunsetAwareHDate(e,t,n){const r=new Sy(e,t,n).sunset();let o=new Ee(t);const a=r.getTime();return isNaN(a)||t.getTime()>=a&&(o=o.next()),o}}const vy={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 py(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=null==n?void 0:n.location)||void 0===r?void 0:r.getCountryCode())||((null==n?void 0:n.il)?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===vy[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}`}class wy extends Pe{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=Sy.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=Sy.formatTime(this.eventTime,s);const u=Object.assign(Object.assign({},i),{location:o});this.fmtTime=py(this.eventTimeStr,"pm",u),void 0!==a&&(this.linkedEvent=a)}render(e){return ve.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return ve.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"]}return["unknown"]}}class Ay extends wy{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}class by extends wy{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=ve.gettext(this.getDesc(),e);if(this.havdalahMins){const n=ve.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const Ty=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],My=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Iy="בַּלַּ֥יְלָה";class Ey{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=b(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;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(a/24))%7,hour:a%24,minutes:Math.floor(i/18),chalakim:i%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return Ee.getMonthName(this.m.month,this.m.year)}getDow(){return this.m.dayOfWeek}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}render(e,t){var n;"string"==typeof(e=null!=e?e:ve.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=ve.gettext(this.getMonthName(),e),a=(r?My:Ty)[this.getDow()],i=this.getMinutes(),s=this.getHour(),u=this.getChalakim(),c=ve.gettext("Molad",e),h=null!==(n=ve.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=ve.gettext("chalakim",e);if(r){const t=function(e){return e<5?Iy:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":Iy}(s),n=`${c} ${o} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${i} ${h} ו-${u} ${l}`;return"he-x-nonikud"===e?ve.hebrewStripNikkud(n):n}const f=py(`${s}:00`,"pm",t);return`${c} ${o.replace(/'/g,"’")}: ${a}, ${i} ${h} and ${u} ${l} after ${f}`}}class Oy extends Pe{constructor(e,t,n,r){const o=new Ey(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Re.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class Cy extends Pe{constructor(e,t){if(super(e,`Omer ${t}`,Re.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(e="en"){return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){$(e);const[n,r]=V(e),o=Z[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=null!=e?e:ve.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?U(n):ve.ordinal(n,e))+" "+ve.gettext("day of the Omer",e)}renderBrief(e){return ve.gettext("Omer",e)+" "+ve.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:function(e){let t;return $(e),t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}(this.omer)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){"string"==typeof(e=null!=e?e:ve.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=z(this.omer,t);return"he-x-nonikud"===e?ve.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}function Ny(e,t){const n=null!=t?t:ve.getLocaleName();let r=ve.gettext(e[0],n);if(2===e.length){r+=("he"===n?"־":"-")+ve.gettext(e[1],n)}r=r.replace(/'/g,"’");return(ve.gettext("Parashat",t)+" "+r).normalize()}class Hy extends Map{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.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=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.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}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 Dy{constructor(e,t){e=+e,this.year=e;const n=new Ee(1,f.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=Ee.dayOnOrBefore(6,r+6);const a=+Ee.isLeapYear(e);this.il=Boolean(t);const i=function(e){const t=Ee.longCheshvan(e),n=Ee.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${a}${o}${i}`;if(Qy[s]||(s+=+this.il),this.theSedraArray=Qy[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){return Ny(this.get(e),t)}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=_y.length||e<0&&!Ry(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ee(this.firstSaturday+7*t)}if("string"==typeof e){const t=ky.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 Ee(this.firstSaturday+7*t)}}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=ky.get(n),a=ky.get(r);if(!o&&!a&&-1!==this.theSedraArray.indexOf(e.join("-"))){const t=e.join("-"),n=this.theSedraArray.indexOf(t);return new Ee(this.firstSaturday+7*n)}if("number"!=typeof o||"number"!=typeof a||a!==o+1||!Ry(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return Ry(t)?this.find(t):this.find(t+1)}{const t=ky.get(e);if(t){const e=-t;return Ry(e)?this.find(e):this.find(e+1)}{const[t]=e.split("-");return this.find(t)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Ee.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Ee.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return tS(this.year+1,this.il).lookup(n)}const a=new Ee(n);if("string"==typeof o)return{parsha:[o],chag:!0,hdate:a};if(o>=0)return{parsha:[_y[o]],chag:!1,num:o+1,hdate:a};const i=Yy(o);return{parsha:[_y[i],_y[i+1]],chag:!1,num:[i+1,i+2],hdate:a}}}const _y=["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"],ky=new Map;for(let e=0;e<_y.length;e++){const t=_y[e];ky.set(t,e)}const Ly=[21,26,28,31,38,41,50];function Ry(e){return Ly.includes(-e)}function Yy(e){return-e}const Py="Sukkot Shabbat Chol ha-Moed",jy="Pesach",By="Pesach I",Fy="Pesach Shabbat Chol ha-Moed",Uy="Pesach VII",xy="Pesach VIII",Zy="Shavuot";function $y(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Vy=[51,52,Py],zy=[52,"Yom Kippur",Py],Ky=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Jy=$y(0,20),Gy=$y(0,27),Wy=$y(33,40),qy=$y(43,49),Xy=$y(43,50),Qy={"020":Vy.concat(Jy,Yy(21),23,24,jy,25,Yy(26),Yy(28),30,Yy(31),Wy,Yy(41),qy,Yy(50)),"0220":Vy.concat(Jy,Yy(21),23,24,jy,25,Yy(26),Yy(28),30,Yy(31),33,Zy,$y(34,37),Yy(38),40,Yy(41),qy,Yy(50)),"0510":zy.concat(Jy,Yy(21),23,24,By,xy,25,Yy(26),Yy(28),30,Yy(31),Wy,Yy(41),Xy),"0511":zy.concat(Jy,Yy(21),23,24,jy,25,Yy(26),Yy(28),$y(30,40),Yy(41),Xy),"052":zy.concat($y(0,24),Uy,25,Yy(26),Yy(28),30,Yy(31),Wy,Yy(41),Xy),"070":Ky.concat(Jy,Yy(21),23,24,Uy,25,Yy(26),Yy(28),30,Yy(31),Wy,Yy(41),Xy),"072":Ky.concat(Jy,Yy(21),23,24,Fy,25,Yy(26),Yy(28),30,Yy(31),Wy,Yy(41),qy,Yy(50)),1200:Vy.concat(Gy,Fy,$y(28,33),Zy,$y(34,37),Yy(38),40,Yy(41),qy,Yy(50)),1201:Vy.concat(Gy,Fy,$y(28,40),Yy(41),qy,Yy(50)),1220:Vy.concat(Gy,By,xy,$y(28,40),Yy(41),Xy),1221:Vy.concat(Gy,jy,$y(28,50)),150:zy.concat($y(0,28),Uy,$y(29,50)),152:zy.concat($y(0,28),Fy,$y(29,49),Yy(50)),170:Ky.concat(Gy,Fy,$y(28,40),Yy(41),qy,Yy(50)),1720:Ky.concat(Gy,Fy,$y(28,33),Zy,$y(34,37),Yy(38),40,Yy(41),qy,Yy(50))};Qy["0221"]=Qy["020"],Qy["0310"]=Qy["0220"],Qy["0311"]=Qy["020"],Qy[1310]=Qy[1220],Qy[1311]=Qy[1221],Qy[1721]=Qy[170];const eS=new Hy({maxSize:400});function tS(e,t){const n=`${e}-${t?1:0}`;let r=eS.get(n);return r||(r=new Dy(e,t),eS.set(n,r)),r}class nS extends Pe{constructor(e,t,n=!1,r=-1){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),Re.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){return Ny(this.parsha,e)}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 se(this.getDate().greg()).replace(/-/g,"")}}const rS=f.NISAN,oS=f.IYYAR,aS=f.SIVAN,iS=f.ELUL,sS=f.TISHREI,uS=f.CHESHVAN,cS=f.KISLEV,hS=f.SHVAT,lS=f.ADAR_II,fS=Re.CHAG,dS=Re.LIGHT_CANDLES,gS=Re.YOM_TOV_ENDS,mS=Re.CHUL_ONLY,yS=Re.IL_ONLY,SS=Re.LIGHT_CANDLES_TZEIS,vS=Re.MINOR_HOLIDAY,pS=Re.EREV,wS=Re.CHOL_HAMOED,AS="🫓",bS="🌿🍋",TS="Rosh Hashana II",MS="Erev Yom Kippur",IS="Yom Kippur",ES="Erev Sukkot",OS="Sukkot I",CS="Sukkot II",NS="Sukkot III (CH''M)",HS="Sukkot IV (CH''M)",DS="Sukkot V (CH''M)",_S="Sukkot VI (CH''M)",kS="Shmini Atzeret",LS="Simchat Torah",RS="Sukkot II (CH''M)",YS="Sukkot VII (Hoshana Raba)",PS="Chanukah: 1 Candle",jS="Tu BiShvat",BS="Erev Purim",FS="Purim",US="Shushan Purim",xS="Erev Pesach",ZS="Pesach I",$S="Pesach II",VS="Pesach II (CH''M)",zS="Pesach III (CH''M)",KS="Pesach IV (CH''M)",JS="Pesach V (CH''M)",GS="Pesach VI (CH''M)",WS="Pesach VII",qS="Pesach VIII",XS="Pesach Sheni",QS="Lag BaOmer",ev="Erev Shavuot",tv="Shavuot",nv="Shavuot I",rv="Shavuot II",ov="Tu B'Av",av="Rosh Hashana LaBehemot",iv="Erev Rosh Hashana",sv="Yom Yerushalayim",uv="Ben-Gurion Day",cv="Family Day",hv="Yitzhak Rabin Memorial Day",lv="Herzl Day",fv="Jabotinsky Day",dv="Sigd",gv="Yom HaAliyah",mv="Yom HaAliyah School Observance",yv="Hebrew Language Day",Sv={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:uv,CHANUKAH_1_CANDLE:PS,EREV_PESACH:xS,EREV_PURIM:BS,EREV_ROSH_HASHANA:iv,EREV_SHAVUOT:ev,EREV_SUKKOT:ES,EREV_YOM_KIPPUR:MS,FAMILY_DAY:cv,HEBREW_LANGUAGE_DAY:yv,HERZL_DAY:lv,JABOTINSKY_DAY:fv,LAG_BAOMER:QS,PESACH_I:ZS,PESACH_II:$S,PESACH_III_CHM:zS,PESACH_II_CHM:VS,PESACH_IV_CHM:KS,PESACH_SHENI:XS,PESACH_VII:WS,PESACH_VIII:qS,PESACH_VI_CHM:GS,PESACH_V_CHM:JS,PURIM:FS,ROSH_HASHANA_II:TS,ROSH_HASHANA_LABEHEMOT:av,SHAVUOT:tv,SHAVUOT_I:nv,SHAVUOT_II:rv,SHMINI_ATZERET:kS,SHUSHAN_PURIM:US,SIGD:dv,SIMCHAT_TORAH:LS,SUKKOT_I:OS,SUKKOT_II:CS,SUKKOT_III_CHM:NS,SUKKOT_II_CHM:RS,SUKKOT_IV_CHM:HS,SUKKOT_VII_HOSHANA_RABA:YS,SUKKOT_VI_CHM:_S,SUKKOT_V_CHM:DS,TU_BAV:ov,TU_BISHVAT:jS,YITZHAK_RABIN_MEMORIAL_DAY:hv,YOM_HAALIYAH:gv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:mv,YOM_KIPPUR:IS,YOM_YERUSHALAYIM:sv},vv=[{mm:sS,dd:2,desc:TS,flags:fS|gS,emoji:"🍏🍯"},{mm:sS,dd:9,desc:MS,flags:pS|dS},{mm:sS,dd:10,desc:IS,flags:fS|Re.MAJOR_FAST|gS},{mm:sS,dd:14,desc:ES,flags:mS|pS|dS,emoji:bS},{mm:sS,dd:15,desc:OS,flags:mS|fS|SS,emoji:bS},{mm:sS,dd:16,desc:CS,flags:mS|fS|gS,emoji:bS},{mm:sS,dd:17,desc:NS,flags:mS|wS,chmDay:1,emoji:bS},{mm:sS,dd:18,desc:HS,flags:mS|wS,chmDay:2,emoji:bS},{mm:sS,dd:19,desc:DS,flags:mS|wS,chmDay:3,emoji:bS},{mm:sS,dd:20,desc:_S,flags:mS|wS,chmDay:4,emoji:bS},{mm:sS,dd:22,desc:kS,flags:mS|fS|SS},{mm:sS,dd:23,desc:LS,flags:mS|fS|gS},{mm:sS,dd:14,desc:ES,flags:yS|pS|dS,emoji:bS},{mm:sS,dd:15,desc:OS,flags:yS|fS|gS,emoji:bS},{mm:sS,dd:16,desc:RS,flags:yS|wS,chmDay:1,emoji:bS},{mm:sS,dd:17,desc:NS,flags:yS|wS,chmDay:2,emoji:bS},{mm:sS,dd:18,desc:HS,flags:yS|wS,chmDay:3,emoji:bS},{mm:sS,dd:19,desc:DS,flags:yS|wS,chmDay:4,emoji:bS},{mm:sS,dd:20,desc:_S,flags:yS|wS,chmDay:5,emoji:bS},{mm:sS,dd:22,desc:kS,flags:yS|fS|gS},{mm:sS,dd:21,desc:YS,flags:dS|wS,chmDay:-1,emoji:bS},{mm:cS,dd:24,desc:PS,flags:pS|vS|Re.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:hS,dd:15,desc:jS,flags:vS,emoji:"🌳"},{mm:lS,dd:13,desc:BS,flags:pS|vS,emoji:"🎭️📜"},{mm:lS,dd:14,desc:FS,flags:vS,emoji:"🎭️📜"},{mm:lS,dd:15,desc:US,flags:vS,emoji:"🎭️📜"},{mm:rS,dd:14,desc:xS,flags:yS|pS|dS,emoji:"🫓🍷"},{mm:rS,dd:15,desc:ZS,flags:yS|fS|gS,emoji:AS},{mm:rS,dd:16,desc:VS,flags:yS|wS,chmDay:1,emoji:AS},{mm:rS,dd:17,desc:zS,flags:yS|wS,chmDay:2,emoji:AS},{mm:rS,dd:18,desc:KS,flags:yS|wS,chmDay:3,emoji:AS},{mm:rS,dd:19,desc:JS,flags:yS|wS,chmDay:4,emoji:AS},{mm:rS,dd:20,desc:GS,flags:yS|wS|dS,chmDay:5,emoji:AS},{mm:rS,dd:21,desc:WS,flags:yS|fS|gS,emoji:AS},{mm:rS,dd:14,desc:xS,flags:mS|pS|dS,emoji:"🫓🍷"},{mm:rS,dd:15,desc:ZS,flags:mS|fS|SS,emoji:"🫓🍷"},{mm:rS,dd:16,desc:$S,flags:mS|fS|gS,emoji:AS},{mm:rS,dd:17,desc:zS,flags:mS|wS,chmDay:1,emoji:AS},{mm:rS,dd:18,desc:KS,flags:mS|wS,chmDay:2,emoji:AS},{mm:rS,dd:19,desc:JS,flags:mS|wS,chmDay:3,emoji:AS},{mm:rS,dd:20,desc:GS,flags:mS|wS|dS,chmDay:4,emoji:AS},{mm:rS,dd:21,desc:WS,flags:mS|fS|SS,emoji:AS},{mm:rS,dd:22,desc:qS,flags:mS|fS|gS,emoji:AS},{mm:oS,dd:14,desc:XS,flags:vS},{mm:oS,dd:18,desc:QS,flags:vS,emoji:"🔥"},{mm:aS,dd:5,desc:ev,flags:pS|dS,emoji:"⛰️🌸"},{mm:aS,dd:6,desc:tv,flags:yS|fS|gS,emoji:"⛰️🌸"},{mm:aS,dd:6,desc:nv,flags:mS|fS|SS,emoji:"⛰️🌸"},{mm:aS,dd:7,desc:rv,flags:mS|fS|gS,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:ov,flags:vS,emoji:"❤️"},{mm:iS,dd:1,desc:av,flags:vS,emoji:"🐑"},{mm:iS,dd:29,desc:iv,flags:pS|dS,emoji:"🍏🍯"}],pv=[{firstYear:5727,mm:oS,dd:28,desc:sv,chul:!0},{firstYear:5737,mm:cS,dd:6,desc:uv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:hS,dd:30,desc:cv},{firstYear:5758,mm:uS,dd:12,desc:hv,friSatMovetoThu:!0},{firstYear:5764,mm:oS,dd:10,desc:lv,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:fv,satPostponeToSun:!0},{firstYear:5769,mm:uS,dd:29,desc:dv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:rS,dd:10,desc:gv,chul:!0},{firstYear:5777,mm:uS,dd:7,desc:mv},{firstYear:5773,mm:f.TEVET,dd:21,desc:yv,friSatMovetoThu:!0}];class wv extends Pe{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()&Re.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Re.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case Sv.LAG_BAOMER:case Sv.LEIL_SELICHOT:case Sv.PESACH_SHENI:case Sv.EREV_PURIM:case Sv.PURIM_KATAN:case Sv.SHUSHAN_PURIM:case Sv.TU_BAV:case Sv.TU_BISHVAT:case Sv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new wv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class Av extends wv{urlDateSuffix(){return se(this.getDate().greg()).replace(/-/g,"")}}class bv extends wv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return ve.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Tv="Rosh Chodesh";class Mv extends wv{constructor(e,t){super(e,`${Tv} ${t}`,Re.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=ve.gettext(t,e).replace(/'/g,"’");return ve.gettext(Tv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Iv="Shabbat Mevarchim Chodesh";class Ev extends Pe{constructor(e,t,n){if(super(e,`${Iv} ${t}`,Re.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===Ee.monthsInYear(t)?f.NISAN:n+1,o=new Ey(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=ve.gettext(this.monthName,e).replace(/'/g,"’");return ve.gettext(Iv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const Ov=new Map;class Cv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Ov.set(e,t)}static lookup(e,t,n){const r=Ov.get(e);return"function"==typeof r?r(t,n):null}}const Nv=Re.LIGHT_CANDLES,Hv=Re.LIGHT_CANDLES_TZEIS;function Dv(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Nv;void 0!==e?r||(s&(Hv|Re.CHANUKAH_CANDLES)?i=!0:s&Re.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Hv);const u=i?n.havdalahMins:n.candleLightingMins,c=n.location,h=Boolean(n.useElevation),l=new Sy(c,t,h),f=u?l.sunsetOffset(u,!0):l.tzeit(n.havdalahDeg);if(!isNaN(f.getTime()))return a?new by(t,s,f,c,n.havdalahMins,e,n):(s|=Nv,new Ay(t,s,f,c,e,n))}const _v="Fast begins",kv="Fast ends";function Lv(e,t,n,r){const o=r.location,a=e.getDate();return new wy(a,n,e.getFlags(),t,o,e,r)}class Rv extends wv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=Sy.roundTime(r);const a=o.getTimeFormatter();this.eventTimeStr=Sy.formatTime(this.eventTime,a),this.location=o}}const Yv=f.NISAN,Pv=f.IYYAR;function jv(e){if(e<5708)return null;let t;const n=new Ee(15,Yv,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new Ee(t,Pv,e)}const Bv="Yom Kippur Katan";class Fv extends wv{constructor(e,t){super(e,`${Bv} ${t}`,Re.MINOR_FAST|Re.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=ve.gettext(this.nextMonthName,e).replace(/'/g,"’");return ve.gettext(Bv,e)+" "+t}renderBrief(e){return ve.gettext(Bv,e)}url(){}}const Uv=Re.CHAG,xv=Re.IL_ONLY,Zv=Re.LIGHT_CANDLES_TZEIS,$v=Re.CHANUKAH_CANDLES,Vv=Re.MINOR_FAST,zv=Re.SPECIAL_SHABBAT,Kv=Re.MODERN_HOLIDAY,Jv=Re.MAJOR_FAST,Gv=Re.MINOR_HOLIDAY,Wv=Re.EREV,qv=f.NISAN,Xv=f.TAMUZ,Qv=f.AV,ep=f.TISHREI,tp=f.KISLEV,np=f.TEVET,rp=f.ADAR_I,op=f.ADAR_II,ap={emoji:"🇮🇱"},ip=new Hy({maxSize:400}),sp=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function up(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=ip.get(e);if(t)return t;const n=new Ee(1,ep,e),r=new Ee(15,qv,e),o=new Map;function a(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&Wv?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of vv){const n=new Ee(t.dd,t.mm,e),r=new wv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new bv(n,e,Uv|Zv));const i=4===n.getDay()?4:3;a(new wv(new Ee(i,ep,e),Sv.TZOM_GEDALIAH,Vv)),a(new wv(new Ee(Ee.dayOnOrBefore(6,7+n.abs())),Sv.SHABBAT_SHUVA,zv));const s=Ee.shortKislev(e)?new Ee(1,np,e):new Ee(30,tp,e);a(new wv(s,Sv.CHAG_HABANOT,Gv));for(let t=2;t<=8;t++){const n=new Ee(23+t,tp,e);a(new wv(n,`Chanukah: ${t} Candles`,Gv|$v,{chanukahDay:t-1,emoji:"🕎"+sp[t]}))}a(new wv(new Ee(32,tp,e),Sv.CHANUKAH_8TH_DAY,Gv,{chanukahDay:8,emoji:"🕎"})),a(new Av(new Ee(10,np,e),Sv.ASARA_BTEVET,Vv));const u=r.abs();a(new wv(new Ee(Ee.dayOnOrBefore(6,u-43)),Sv.SHABBAT_SHEKALIM,zv),new wv(new Ee(Ee.dayOnOrBefore(6,u-30)),Sv.SHABBAT_ZACHOR,zv),new wv(new Ee(u-(2===r.getDay()?33:31)),Sv.TAANIT_ESTHER,Vv));const c=Ee.dayOnOrBefore(6,u-14);a(new wv(new Ee(c-7),Sv.SHABBAT_PARAH,zv),new wv(new Ee(c),Sv.SHABBAT_HACHODESH,zv),new wv(new Ee(Ee.dayOnOrBefore(6,u-1)),Sv.SHABBAT_HAGADOL,zv),new wv(6===r.prev().getDay()?r.onOrBefore(4):new Ee(14,qv,e),Sv.TAANIT_BECHOROT,Vv)),a(new wv(new Ee(Ee.dayOnOrBefore(6,new Ee(1,ep,e+1).abs()-4)),Sv.LEIL_SELICHOT,Gv,{emoji:"🕍"})),0===r.getDay()&&a(new wv(new Ee(16,op,e),Sv.PURIM_MESHULASH,Gv)),Ee.isLeapYear(e)&&(a(new wv(new Ee(14,rp,e),Sv.PURIM_KATAN,Gv,{emoji:"🎭️"})),a(new wv(new Ee(15,rp,e),Sv.SHUSHAN_PURIM_KATAN,Gv,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Ee(27,Yv,e);return 5===t.getDay()?t=new Ee(26,Yv,e):0===t.getDay()&&(t=new Ee(28,Yv,e)),t}(e);h&&a(new wv(h,Sv.YOM_HASHOAH,Kv));const l=jv(e);l&&a(new wv(l,Sv.YOM_HAZIKARON,Kv,ap),new wv(l.next(),Sv.YOM_HAATZMA_UT,Kv,ap));for(const t of pv)if(e>=t.firstYear){let n=new Ee(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new Ee(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Kv:Kv|xv,i=new wv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let d,g=new Ee(17,Xv,e);6===g.getDay()&&(g=new Ee(18,Xv,e),d={observed:!0}),a(new wv(g,Sv.TZOM_TAMMUZ,Vv,d));let m,y=new Ee(9,Qv,e),S=Sv.TISHA_BAV;6===y.getDay()&&(y=y.next(),m={observed:!0},S+=" (observed)");const v=y.abs();a(new wv(new Ee(Ee.dayOnOrBefore(6,v)),Sv.SHABBAT_CHAZON,zv),new wv(y.prev(),Sv.EREV_TISHA_BAV,Wv|Jv,m),new wv(y,S,Jv,m),new wv(new Ee(Ee.dayOnOrBefore(6,v+7)),Sv.SHABBAT_NACHAMU,zv));const p=Ee.monthsInYear(e);for(let t=1;t<=p;t++){const n=Ee.getMonthName(t,e);30===(t===qv?Ee.daysInMonth(Ee.monthsInYear(e-1),e-1):Ee.daysInMonth(t-1,e))?(a(new Mv(new Ee(1,t,e),n)),a(new Mv(new Ee(30,t-1,e),n))):t!==ep&&a(new Mv(new Ee(1,t,e),n))}for(let t=f.IYYAR;t<=p;t++){const n=t+1;if(n===ep||n===f.CHESHVAN||n===np)continue;let r=new Ee(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=Ee.getMonthName(n,e);a(new Fv(r,i))}const w=tS(e,!1).find(15);a(new wv(w,Sv.SHABBAT_SHIRAH,zv));const A=function(e){const t=Ee.isLeapYear(e),n=t?op:qv,r=t?20:1,o=Ee.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(A){const e=new Ee(A);a(new wv(e,Sv.BIRKAT_HACHAMAH,Gv,{emoji:"☀️"}))}return ip.set(e,o),o}function cp(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const hp={shacharit:!1,mincha:!1,allCongs:!1};function lp(e,t){return fp(e,t,!0)}function fp(e,t,n){const r=function(e,t){const n=Ee.isLeapYear(e),r=Ee.monthsInYear(e);let o=new Ee(9,f.AV,e);6===o.getDay()&&(o=o.next());let a=new Ee(15,f.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[new Ee(2,f.TISHREI,e)].concat(cp(1,r).map((t=>new Ee(1,t,e))),cp(1,r).filter((t=>30===Ee.daysInMonth(t,e))).map((t=>new Ee(30,t,e))),cp(1,Ee.daysInMonth(f.NISAN,e)).map((t=>new Ee(t,f.NISAN,e))),new Ee(18,f.IYYAR,e),cp(1,8-(t?1:0)).map((t=>new Ee(t,f.SIVAN,e))),o,new Ee(15,f.AV,e),new Ee(29,f.ELUL,e),cp(9,24-(t?1:0)).map((t=>new Ee(t,f.TISHREI,e))),cp(25,33).map((t=>new Ee(t,f.KISLEV,e))),new Ee(15,f.SHVAT,e),new Ee(14,f.ADAR_II,e),a,n?new Ee(14,f.ADAR_I,e):[]),s=[new Ee(14,f.IYYAR,e)].concat(cp(1,13).map((t=>new Ee(t,f.SIVAN,e))),cp(20,31).map((t=>new Ee(t,f.TISHREI,e))),e>=5708?jv(e).next():[],e>=5727?new Ee(28,f.IYYAR,e):[]),u=[new Ee(29,f.ELUL,e-1),new Ee(9,f.TISHREI,e),new Ee(14,f.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:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return hp;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=fp(new Ee(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:hp}const dp=f.TISHREI;function gp(e){if("number"==typeof e)return e;if(u(e))return h(e);if(Ee.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function mp(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[gp(e.start),gp(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Ee).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return Ee.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new Ee(1,e||dp,t);let o=r.abs();const a=e?o+r.daysInMonth():new Ee(1,dp,t+n).abs()-1;!e&&t>1&&o--;return[o,a]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const a=h(o);let i;if(e)i=a+s(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),i=h(r)-1}return[a,i]}(r,n,o)}const yp=f.NISAN,Sp=f.SIVAN,vp=f.ELUL,pp=f.TISHREI,wp=Re.LIGHT_CANDLES,Ap=Re.YOM_TOV_ENDS,bp=Re.CHUL_ONLY,Tp=Re.IL_ONLY,Mp=Re.LIGHT_CANDLES_TZEIS,Ip=Re.CHANUKAH_CANDLES,Ep=Re.MINOR_FAST,Op=Re.SPECIAL_SHABBAT,Cp=Re.MODERN_HOLIDAY,Np=Re.MAJOR_FAST,Hp=Re.ROSH_CHODESH,Dp=Re.PARSHA_HASHAVUA,_p=Re.DAF_YOMI,kp=Re.MISHNA_YOMI,Lp=Re.NACH_YOMI,Rp=Re.YERUSHALMI_YOMI,Yp=Re.OMER_COUNT,Pp=Re.SHABBAT_MEVARCHIM,jp=Re.MINOR_HOLIDAY,Bp=Re.EREV,Fp=Re.CHOL_HAMOED,Up=Re.YOM_KIPPUR_KATAN,xp=new Set,Zp={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,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const $p={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Vp={281184:40,294801:30,293067:30};function zp(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof my))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=Number(e.candleLightingMins)||18;t.getIsrael()&&18===Math.abs(n)&&(n=function(e,t){const n=e.getGeoId();if(n){const e=Vp[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=$p[r];if("number"==typeof e)return e}return t}(t,n)),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)}function Kp(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&Hp&&delete e.noRoshChodesh;t&Cp&&delete e.noModern;t&Ep&&delete e.noMinorFast;t&Op&&delete e.noSpecialShabbat;t&Dp&&(e.sedrot=!0);t&(_p|kp|Lp|Rp)&&(e.dailyLearning=e.dailyLearning||{},t&_p&&(e.dailyLearning.dafYomi=!0),t&kp&&(e.dailyLearning.mishnaYomi=!0),t&Lp&&(e.dailyLearning.nachYomi=!0),t&Rp&&(e.dailyLearning.yerushalmi=1));t&Yp&&(e.omer=!0);t&Pp&&(e.shabbatMevarchim=!0);t&Up&&(e.yomKippurKatan=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;if(e.noHolidays||(r|=Hp|Ap|Ep|Op|Cp|Np|jp|Bp|Fp|wp|Mp|Ip),e.candlelighting&&(r|=wp|Mp|Ap),e.noRoshChodesh&&(r&=~Hp),e.noModern&&(r&=~Cp),e.noMinorFast&&(r&=~Ep),e.noSpecialShabbat&&(r&=~Op,r&=~Pp),r|=n?Tp:bp,e.sedrot&&(r|=Dp),e.omer&&(r|=Yp),e.shabbatMevarchim&&(r|=Pp),e.yomKippurKatan&&(r|=Up),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=_p),t.mishnaYomi&&(r|=kp),t.nachYomi&&(r|=Lp),t.yerushalmi&&(r|=Rp)}return r}const Jp=wp|Mp|Ip|Ap,Gp=new my(0,0,!1,"UTC");function Wp(e){return e.observedInIsrael()}function qp(e){return e.observedInDiaspora()}class Xp{constructor(){}static calendar(e={}){zp(e=Object.assign({},e));const t=e.location=e.location||Gp,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=Kp(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!ve.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else ve.useLocale("en");const o=[];let a,i,s=-1,u=-1,c=-1;const h=mp(e);!function(e){for(const t of Object.keys(e))void 0!==Zp[t]||xp.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),xp.add(t))}(e);const f=h[0],d=h[1];l(f).getFullYear()<100&&(e.candlelighting=!1);for(let t=f;t<=d;t++){const h=new Ee(t),l=h.getFullYear();l!==c&&(c=l,i=up(c),e.sedrot&&(a=tS(c,n)),e.omer&&(s=Ee.hebrew2abs(c,yp,16),u=Ee.hebrew2abs(c,Sp,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const t of S)y=ew(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=a.lookup(t);e.chag||o.push(new nS(h,e.parsha,n,e.num))}const v=e.dailyLearning;if("object"==typeof v){const e=rw(h,v,n);o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=ow(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=tw(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Dv(void 0,h,e,g,m),g&&y&&a)){const r=a.lookup(t),o=new nS(h.next(),r.parsha,n,r.num);y.memo=o.render(e.locale)}if(y instanceof by&&(0===e.havdalahMins||0===e.havdalahDeg)&&(y=void 0),y&&o.push(y),e.addHebrewDates||e.addHebrewDatesForEvents&&f!==o.length){const e=new je(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=Y(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=A(r);let a=n.mm,i=n.dd;return a===L&&!o||a===R&&o?a=b(e):a!==H||30!==i||O(e)?a===D&&30===i&&C(e)?(a=_,i=1):a===L&&30===i&&o&&!A(e)&&(a=N,i=1):(a=D,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new Ee(n)}static getYahrzeit(e,t){const n=function(e,t){let n=Y(t);if(!(e<=n.yy))return n.mm!==H||30!==n.dd||O(n.yy+1)?n.mm===D&&30===n.dd&&C(n.yy+1)?n=w(v(e,_,1)-1):n.mm===R?n.mm=b(e):n.mm!==L||30!==n.dd||A(e)||(n.dd=30,n.mm=k):n=w(v(e,D,1)-1),n.mm!==H||30!==n.dd||O(e)?n.mm===D&&30===n.dd&&C(e)&&(n.mm=_,n.dd=1):(n.mm=D,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Ee(n)}static getHolidaysForYear(e){return up(e)}static getHolidaysForYearArray(e,t){const n=up(e),r=Ee.hebrew2abs(e,pp,1),o=Ee.hebrew2abs(e+1,pp,1)-1;let a=[];const i=t?Wp:qp;for(let e=r;e<=o;e++){const t=new Ee(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=Ee.isHDate(e)?e:new Ee(e),r=n.toString(),o=up(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?Wp:qp;return o.filter(a)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Ee(e),r=n.after(5),o=n.next();return!(!Qp(r,t)||Qp(n,t)||!Qp(o,t))}static reformatTimeStr(e,t,n){return py(e,t,n)}static version(){return t}static getSedra(e,t){return tS(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===f.NISAN&&(15===o||16===o)&&e.getFlags()&Re.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()&Re.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Xp.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return lp(e,t)}}function Qp(e,t){return 0!==(Xp.getHolidaysOnDate(e,t)||[]).filter((e=>e.getFlags()&Re.CHAG)).length}function ew(e,t,n,r,o,a,i){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&Up||r.noModern&&u&Cp)return e;const c=Boolean(u&Np),h=Boolean(u&Ep);if(r.candlelighting&&(c||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=Boolean(t.useElevation),u=new Sy(a,o,s);if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(e.startEvent=Lv(e,n,_v,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(i);isNaN(n.getTime())||(e.endEvent=Lv(e,n,kv,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(e.startEvent=Lv(e,n,_v,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=u.tzeit(i);isNaN(n.getTime())||(e.endEvent=Lv(e,n,kv,t))}}return e}(n,r),n.startEvent&&(c||h&&!r.noMinorFast)&&t.push(n.startEvent)),u&Number(r.mask)||!u&&!i){if(r.candlelighting&&u&Jp){const t=n.getDate();if(e=Dv(n,t,r,o,a),u&Ip&&e&&!r.noHolidays){const i=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),a=new Sy(r,t.greg(),o).beinHaShmashos();if(isNaN(a.getTime()))return null;const i=new Rv(t,e.getDesc(),e.getFlags(),a,r);return i.emoji=e.emoji,i.chanukahDay=e.chanukahDay,i}(n,t,r);i&&((o||a)&&(i.eventTime=e.eventTime,i.eventTimeStr=e.eventTimeStr),n=i),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&Up)&&t.push(n)}return n.endEvent&&(c||h&&!r.noMinorFast)&&t.push(n.endEvent),e}function tw(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==vp&&o>=23&&o<=29){const o=e.getFullYear(),a=r===Ee.monthsInYear(o)?yp:r+1;if(t.molad&&n.push(new Oy(e,o,a,t)),t.shabbatMevarchim){const r=Ee.getMonthName(a,o),i=new Ey(o,a).render(t.locale||"en",t);n.push(new Ev(e,r,i))}}return n}function nw(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function rw(e,t,n){const r=[];for(const[o,a]of Object.entries(t))if(a){const t=nw(o,a),i=Cv.lookup(t,e,n);i&&r.push(i)}return r}function ow(e,t,n){const r=new Cy(e,t);if(n.candlelighting){const t=n.location,o=new Sy(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}return e.AsaraBTevetEvent=Av,e.CandleLightingEvent=Ay,e.DailyLearning=Cv,e.Event=Pe,e.GeoLocation=uy,e.HDate=Ee,e.HavdalahEvent=by,e.HebrewCalendar=Xp,e.HebrewDateEvent=je,e.HolidayEvent=wv,e.Locale=ve,e.Location=my,e.MevarchimChodeshEvent=Ev,e.Molad=Ey,e.MoladEvent=Oy,e.NOAACalculator=hy,e.OmerEvent=Cy,e.ParshaEvent=nS,e.RoshChodeshEvent=Mv,e.RoshHashanaEvent=bv,e.Sedra=Dy,e.TimedEvent=wy,e.Zmanim=Sy,e.flags=Re,e.gematriya=U,e.gematriyaStrToNum=x,e.holidayDesc=Sv,e.months=f,e.parshiot=_y,e.version=t,e}({});
|
|
1
|
+
/*! @hebcal/core v5.7.0 */
|
|
2
|
+
var hebcal=function(e,t){"use strict";const n="5.7.0",r=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=[r,r.slice()];function i(e,t){return e-t*Math.floor(e/t)}function a(e,t){return Math.floor(e/t)}function s(e){return!(e%4||!(e%100)&&e%400)}function u(e,t){return o[+s(t)][e]}function c(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function h(e,t,n){const r=e-1;return 365*r+a(r,4)-a(r,100)+a(r,400)+a(367*t-362,12)+(t<=2?0:s(e)?-1:-2)+n}function l(e){if(!c(e))throw new TypeError(`Argument not a Date: ${e}`);return h(e.getFullYear(),e.getMonth()+1,e.getDate())}function f(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=function(e){const t=e-1,n=a(t,146097),r=i(t,146097),o=a(r,36524),s=i(r,36524),u=a(s,1461),c=a(i(s,1461),365),h=400*n+100*o+4*u+c;return 4!==o&&4!==c?h+1:h}(e=Math.trunc(e)),n=a(12*(e-h(t,1,1)+(e<h(t,3,1)?0:s(t)?1:2))+373,367),r=e-h(t,n,1)+1,o=new Date(t,n-1,r);return t<100&&t>=0&&o.setFullYear(t),o}o[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=f,e.greg.daysInMonth=u,e.greg.greg2abs=l,e.greg.isDate=c,e.greg.isLeapYear=s;const d={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},g=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],m=[g.concat(["Adar","Nisan"]),g.concat(["Adar I","Adar II","Nisan"])],y=new Map,v=-1373428;function p(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function S(e,t,n){if(p(e,"year"),p(t,"month"),p(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<7){for(let t=7;t<=T(e);t++)r+=I(t,e);for(let n=1;n<t;n++)r+=I(n,e)}else for(let n=7;n<t;n++)r+=I(n,e);return v+E(e)+r-1}function w(e){return v+E(e)}function A(e){if(p(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/365.24682220597794);for(;w(t)<=e;)++t;--t;let n=e<S(t,1,1)?7:1;for(;e>S(t,n,I(n,t));)++n;return{yy:t,mm:n,dd:1+e-S(t,n,1)}}function b(e){return(1+7*e)%19<7}function T(e){return+b(e)+12}function I(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!b(t)||8===e&&!N(t)||9===e&&H(t)?29:30}function M(e,t){if(p(e,"month"),p(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return m[+b(t)][e]}function E(e){const t=y.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!b(e)||1==a%7&&i>=16789&&b(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return y.set(e,n),n}function O(e){return E(e+1)-E(e)}function N(e){return O(e)%10==5}function H(e){return O(e)%10==3}const C=d.NISAN,D=d.CHESHVAN,_=d.KISLEV,k=d.TEVET,L=d.SHVAT,R=d.ADAR_I,Y=d.ADAR_II;function P(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(c(e)){return A(l(e))}return A(e)}const j={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},B=new Map,F=new Map;for(const[e,t]of Object.entries(j))B.set(e,t),F.set(t,e);function U(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 x(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid gematriya number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=U(r);for(const t of e)n+=F.get(t);n+="׳"}const o=U(t%1e3);if(1===o.length)return n+F.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=F.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=B.get(n);"number"==typeof e&&(t+=e)}return t}const $={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 V(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function z(e){return[Math.floor((e-1)/7)+1,e%7||7]}function K(e,t){return V(e),"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+ne:12===e?r+="שְׁנֵים "+ne:12<e&&e<20?r+=G[n]+" "+ne:e>9&&(r+=G[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=J[t]),r+=e<11?G[n]+" "+q+" ":" "+ee+" "):r+=1===e?te+" ":X+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?G[t]+" "+Q+" ":1===t?"שָׁבֽוּעַ "+G[1]+" ":W+" "+Q+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?G[n]+" "+q+" ":1===n?te+" ":X+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):function(e){const[t,n]=z(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)}const J=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],G=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],W="שְׁנֵי",q="יָמִים",X=W+" "+q,Q="שָׁבוּעוֹת",ee="יוֹם",te=ee+" "+G[1],ne="עָשָׂר";function re(e){return e<0?"-00"+re(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function oe(e){return e>=0&&e<10?"0"+e:String(e)}const ie=new Map;const ae=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function se(e,t){const n=function(e){const t=ie.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return ie.set(e,n),n}(e).format(t),r=ae.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=re(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ue(e){return re(e.getFullYear())+"-"+oe(e.getMonth()+1)+"-"+oe(e.getDate())}var ce={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},he={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const le={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},fe={h:"he",a:"ashkenazi",s:"en","":"en"},de=new Map;let ge,me;function ye(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function ve(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function pe(e){const t=ve(e),n=de.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class Se{static lookupTranslation(e,t){const n=("string"==typeof t&&de.get(t.toLowerCase())||ge)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if(e=ve(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);de.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=pe(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${t}`);const o=Array.isArray(n);if(o){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 string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=pe(e);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=ve(e),n=pe(t);return me=fe[t]||t,ge=n,ge}static getLocaleName(){return me}static getLocaleNames(){return Array.from(de.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||me;if(!n)return ye(e);switch(n){case"en":case"s":case"a":return ye(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?ye(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}Se.addLocale("en",le),Se.addLocale("s",le),Se.addLocale("",le),Se.useLocale("en"),Se.addLocale("ashkenazi",ce),Se.addLocale("a",ce),Se.addLocale("he",he),Se.addLocale("h",he);const we=he.contexts[""],Ae={};for(const[e,t]of Object.entries(we))Ae[e]=[Se.hebrewStripNikkud(t[0])];const be={headers:he.headers,contexts:{"":Ae}};Se.addLocale("he-x-NoNikud",be);const Te="day",Ie="week",Me="month",Ee="year";class Oe{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const i="string"==typeof n?parseInt(n,10):n;if(isNaN(i))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=i,function(e,t){e.mm=Oe.monthNum(t),Ne(e)}(this,t);const a="string"==typeof e?parseInt(e,10):e;if(isNaN(a))throw new TypeError(`HDate called with bad day argument: ${e}`);o=a,(r=this).dd=o,Ne(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?c(e)?l(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad argument: ${e}`);const n="number"==typeof t,r=n?A(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return b(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=T(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return I(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return f(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=S(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return S(e,t,n)}getMonthName(){return M(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||Se.getLocaleName(),r=this.getDate(),o=Se.gettext(this.getMonthName(),n).replace(/'/g,"’"),i=Se.ordinal(r,n),a=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=Se.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${i}${a} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=Se.gettext(this.getMonthName(),n),o=this.getFullYear();return x(t)+" "+r+" "+x(o)}before(e){return Ce(e,this,-1)}onOrBefore(e){return Ce(e,this,0)}nearest(e){return Ce(e,this,3)}onOrAfter(e){return Ce(e,this,6)}after(e){return Ce(e,this,7)}next(){return new Oe(this.abs()+1)}prev(){return new Oe(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new Oe(this);if(t=function(e){switch(e){case"d":return Te;case"w":return Ie;case"M":return Me;case"y":return Ee}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case Te:case Ie:case Me:case Ee:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===Te)return new Oe(this.abs()+e);if(t===Ie)return new Oe(this.abs()+7*e);if(t===Ee)return new Oe(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new Oe(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Oe(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return 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 b(e)}static monthsInYear(e){return T(e)}static daysInMonth(e,t){return I(e,t)}static getMonthName(e,t){return M(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):Oe.monthFromName(e)}static daysInYear(e){return O(e)}static longCheshvan(e){return N(e)}static shortKislev(e){return H(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 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(t[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`Unable to parse month name: ${e}`)}(Se.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]),i=3===r?n[1]:n[1]+" "+n[2],a=Oe.monthFromName(i);let s=Z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Oe(o,a,s)}}function Ne(e){He(e),function(e){e.dd<1&&(e.mm===d.TISHREI&&(e.yy-=1),e.dd+=I(e.mm,e.yy),e.mm-=1,Ne(e));e.dd>I(e.mm,e.yy)&&(e.mm===d.ELUL&&(e.yy+=1),e.dd-=I(e.mm,e.yy),e.mm===T(e.yy)?e.mm=1:e.mm+=1,Ne(e));He(e)}(e)}function He(e){e.mm!==d.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=T(e.yy),e.yy-=1,Ne(e)):e.mm>T(e.yy)&&(e.mm-=T(e.yy),e.yy+=1,Ne(e)):(e.mm-=1,Ne(e)),delete e.rd}function Ce(e,t,n){return new Oe(Oe.dayOnOrBefore(e,t.abs()+n))}var De={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"],"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"]}}},_e={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":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"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":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"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:["יוֹם"],"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":["דִברֵי הַיָמִים שֵׁנִי"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};Se.addTranslations("he",_e),Se.addTranslations("h",_e),Se.addTranslations("ashkenazi",De),Se.addTranslations("a",De);const ke=_e.contexts[""],Le={};for(const[e,t]of Object.entries(ke))Le[e]=[Se.hebrewStripNikkud(t[0])];const Re={headers:_e.headers,contexts:{"":Le}};Se.addTranslations("he-x-NoNikud",Re);const Ye={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},Pe=[[Ye.MAJOR_FAST,"holiday","major","fast"],[Ye.CHANUKAH_CANDLES,"holiday","major"],[Ye.HEBREW_DATE,"hebdate"],[Ye.MINOR_FAST,"holiday","fast"],[Ye.MINOR_HOLIDAY,"holiday","minor"],[Ye.MODERN_HOLIDAY,"holiday","modern"],[Ye.MOLAD,"molad"],[Ye.OMER_COUNT,"omer"],[Ye.PARSHA_HASHAVUA,"parashat"],[Ye.ROSH_CHODESH,"roshchodesh"],[Ye.SHABBAT_MEVARCHIM,"mevarchim"],[Ye.SPECIAL_SHABBAT,"holiday","shabbat"],[Ye.USER_EVENT,"user"]];class je{constructor(e,t,n=0,r){if(!Oe.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 Se.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Ye.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Ye.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new je(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}getCategories(){const e=this.getFlags();for(const t of Pe){if(e&t[0])return t.slice(1)}return["unknown"]}}class Be extends je{constructor(e){super(e,e.toString(),Ye.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Se.getLocaleName(),r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=Se.gettext(t.getMonthName(),e);return x(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Se.getLocaleName(),r=this.getDate();if(r.getMonth()===d.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}function Fe(e){return e*Math.PI/180}function Ue(e){return 180*e/Math.PI}class xe{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 Ze=6356.9;class $e{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0($e.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise($e.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees($e.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees($e.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees($e.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0($e.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset($e.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees($e.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees($e.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees($e.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 Ue(Math.acos(Ze/(Ze+e/1e3)))}adjustZenith(e,t){let n=e;return e===$e.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=$e.getSunriseUTC($e.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=$e.getSunsetUTC($e.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return $e.getTimeOffset(e,6*n)}getDateFromTime(e,n){if(isNaN(e))return null;let r=e,o=this.getAdjustedDate();const i=Math.trunc(r);r-=i;const a=Math.trunc(r*=60);r-=a;const s=Math.trunc(r*=60);r-=s;const u=Math.trunc(this.geoLocation.getLongitude()/15);return n&&u+i>18?o=o.add({days:-1}):!n&&u+i<6&&(o=o.add({days:1})),o.toZonedDateTime({timeZone:"UTC",plainTime:new t.Temporal.PlainTime(i,a,s,Math.trunc(1e3*r))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-$e.JULIAN_DAY_JAN_1_2000)/$e.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*$e.JULIAN_DAYS_PER_CENTURY+$e.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(e){let t=280.46646+e*(36000.76983+3032e-7*e);for(;t>360;)t-=360;for(;t<0;)t+=360;return t}static getSunGeometricMeanAnomaly(e){return 357.52911+e*(35999.05029-1537e-7*e)}static getEarthOrbitEccentricity(e){return.016708634-e*(42037e-9+1.267e-7*e)}static getSunEquationOfCenter(e){const t=Fe($e.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 $e.getSunGeometricMeanLongitude(e)+$e.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return $e.getSunTrueLongitude(e)-.00569-.00478*Math.sin(Fe(t))}static getMeanObliquityOfEcliptic(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}static getObliquityCorrection(e){const t=125.04-1934.136*e;return $e.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(Fe(t))}static getSunDeclination(e){const t=$e.getObliquityCorrection(e),n=$e.getSunApparentLongitude(e),r=Math.sin(Fe(t))*Math.sin(Fe(n));return Ue(Math.asin(r))}static getEquationOfTime(e){const t=$e.getObliquityCorrection(e),n=$e.getSunGeometricMeanLongitude(e),r=$e.getEarthOrbitEccentricity(e),o=$e.getSunGeometricMeanAnomaly(e);let i=Math.tan(Fe(t)/2);i*=i;const a=Math.sin(2*Fe(n)),s=Math.sin(Fe(o));return 4*Ue(i*a-2*r*s+4*r*i*s*Math.cos(2*Fe(n))-.5*i*i*Math.sin(4*Fe(n))-1.25*r*r*Math.sin(2*Fe(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=Fe(e),o=Fe(t);return Math.acos(Math.cos(Fe(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=Fe(e),o=Fe(t);return-Math.acos(Math.cos(Fe(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=$e.getJulianDay(e.toPlainDate()),o=$e.getJulianCenturiesFromJulianDay(r),i=$e.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=Fe(n-a),u=Fe($e.getSunDeclination(o)),c=Fe(t);return Ue(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=$e.getJulianDay(e.toPlainDate()),o=$e.getJulianCenturiesFromJulianDay(r),i=$e.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=Fe(n-a),u=Fe($e.getSunDeclination(o)),c=Fe(t);return Ue(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=$e.getJulianCenturiesFromJulianDay(e),i=$e.getSolarNoonUTC(o,n),a=$e.getJulianCenturiesFromJulianDay(e+i/1440);let s=$e.getEquationOfTime(a),u=$e.getSunDeclination(a),c=$e.getSunHourAngleAtSunrise(t,u,r),h=n-Ue(c),l=4*h,f=720+l-s;const d=$e.getJulianCenturiesFromJulianDay($e.getJulianDayFromJulianCenturies(o)+f/1440);return s=$e.getEquationOfTime(d),u=$e.getSunDeclination(d),c=$e.getSunHourAngleAtSunrise(t,u,r),h=n-Ue(c),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=$e.getJulianCenturiesFromJulianDay($e.getJulianDayFromJulianCenturies(e)+t/360);let r=$e.getEquationOfTime(n);const o=720+4*t-r,i=$e.getJulianCenturiesFromJulianDay($e.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=$e.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=$e.getJulianCenturiesFromJulianDay(e),i=$e.getSolarNoonUTC(o,n),a=$e.getJulianCenturiesFromJulianDay(e+i/1440);let s=$e.getEquationOfTime(a),u=$e.getSunDeclination(a),c=$e.getSunHourAngleAtSunset(t,u,r),h=n-Ue(c),l=4*h,f=720+l-s;const d=$e.getJulianCenturiesFromJulianDay($e.getJulianDayFromJulianCenturies(o)+f/1440);return s=$e.getEquationOfTime(d),u=$e.getSunDeclination(d),c=$e.getSunHourAngleAtSunset(t,u,r),h=n-Ue(c),l=4*h,f=720+l-s,f}}$e.GEOMETRIC_ZENITH=90,$e.CIVIL_ZENITH=96,$e.NAUTICAL_ZENITH=102,$e.ASTRONOMICAL_ZENITH=108,$e.JULIAN_DAY_JAN_1_2000=2451545,$e.JULIAN_DAYS_PER_CENTURY=36525;const Ve=[["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]],ze=new Map,Ke={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"},Je=new Map;class Ge extends xe{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o||null,u,c,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=Je.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return Je.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return ze.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 Ke[String(-1*e)]}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":Ke[t]}static addLocation(e,t){const n=e.toLowerCase();return!ze.has(n)&&(ze.set(n,t),!0)}}for(const e of Ve){const t=new Ge(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);Ge.addLocation(e[0],t)}var We,qe,Xe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qe={};function et(){if(qe)return We;qe=1;var e=function(e){return e&&e.Math===Math&&e};return We=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Xe&&Xe)||e("object"==typeof We&&We)||function(){return this}()||Function("return this")()}var tt,nt,rt,ot,it,at,st,ut,ct={};function ht(){return nt?tt:(nt=1,tt=function(e){try{return!!e()}catch(e){return!0}})}function lt(){if(ot)return rt;ot=1;var e=ht();return rt=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function ft(){if(at)return it;at=1;var e=ht();return it=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function dt(){if(ut)return st;ut=1;var e=ft(),t=Function.prototype.call;return st=e?t.bind(t):function(){return t.apply(t,arguments)},st}var gt,mt,yt,vt,pt,St,wt,At,bt,Tt,It,Mt,Et,Ot,Nt,Ht,Ct,Dt,_t,kt,Lt,Rt,Yt,Pt,jt,Bt,Ft,Ut,xt,Zt,$t,Vt,zt,Kt,Jt,Gt,Wt,qt,Xt,Qt,en,tn={};function nn(){return yt?mt:(yt=1,mt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function rn(){if(pt)return vt;pt=1;var e=ft(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return vt=e?r:function(e){return function(){return n.apply(e,arguments)}},vt}function on(){if(bt)return At;bt=1;var e=rn(),t=ht(),n=function(){if(wt)return St;wt=1;var e=rn(),t=e({}.toString),n=e("".slice);return St=function(e){return n(t(e),8,-1)},St}(),r=Object,o=e("".split);return At=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,At}function an(){return It||(It=1,Tt=function(e){return null==e}),Tt}function sn(){if(Et)return Mt;Et=1;var e=an(),t=TypeError;return Mt=function(n){if(e(n))throw new t("Can't call method on "+n);return n},Mt}function un(){if(Nt)return Ot;Nt=1;var e=on(),t=sn();return Ot=function(n){return e(t(n))},Ot}function cn(){if(Ct)return Ht;Ct=1;var e="object"==typeof document&&document.all;return Ht=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function hn(){if(_t)return Dt;_t=1;var e=cn();return Dt=function(t){return"object"==typeof t?null!==t:e(t)},Dt}function ln(){if(Lt)return kt;Lt=1;var e=et(),t=cn();return kt=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},kt}function fn(){if(Ft)return Bt;Ft=1;var e,t,n=et(),r=function(){if(jt)return Pt;jt=1;var e=et().navigator,t=e&&e.userAgent;return Pt=t?String(t):""}(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),Bt=t}function dn(){if(xt)return Ut;xt=1;var e=fn(),t=ht(),n=et().String;return Ut=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function gn(){if($t)return Zt;$t=1;var e=dn();return Zt=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function mn(){if(zt)return Vt;zt=1;var e=ln(),t=cn(),n=function(){if(Yt)return Rt;Yt=1;var e=rn();return Rt=e({}.isPrototypeOf)}(),r=gn(),o=Object;return Vt=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))},Vt}function yn(){if(Jt)return Kt;Jt=1;var e=String;return Kt=function(t){try{return e(t)}catch(e){return"Object"}}}function vn(){if(Wt)return Gt;Wt=1;var e=cn(),t=yn(),n=TypeError;return Gt=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function pn(){if(Xt)return qt;Xt=1;var e=vn(),t=an();return qt=function(n,r){var o=n[r];return t(o)?void 0:e(o)},qt}function Sn(){if(en)return Qt;en=1;var e=dt(),t=cn(),n=hn(),r=TypeError;return Qt=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},Qt}var wn,An,bn,Tn,In,Mn,En,On,Nn,Hn,Cn,Dn,_n,kn,Ln,Rn,Yn,Pn,jn,Bn,Fn,Un,xn,Zn,$n={exports:{}};function Vn(){if(Tn)return bn;Tn=1;var e=et(),t=Object.defineProperty;return bn=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function zn(){if(In)return $n.exports;In=1;var e=An?wn:(An=1,wn=!1),t=et(),n=Vn(),r="__core-js_shared__",o=$n.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),$n.exports}function Kn(){if(En)return Mn;En=1;var e=zn();return Mn=function(t,n){return e[t]||(e[t]=n||{})}}function Jn(){if(Nn)return On;Nn=1;var e=sn(),t=Object;return On=function(n){return t(e(n))}}function Gn(){if(Cn)return Hn;Cn=1;var e=rn(),t=Jn(),n=e({}.hasOwnProperty);return Hn=Object.hasOwn||function(e,r){return n(t(e),r)},Hn}function Wn(){if(_n)return Dn;_n=1;var e=rn(),t=0,n=Math.random(),r=e(1..toString);return Dn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function qn(){if(Ln)return kn;Ln=1;var e=et(),t=Kn(),n=Gn(),r=Wn(),o=dn(),i=gn(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return kn=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Xn(){if(Yn)return Rn;Yn=1;var e=dt(),t=hn(),n=mn(),r=pn(),o=Sn(),i=qn(),a=TypeError,s=i("toPrimitive");return Rn=function(i,u){if(!t(i)||n(i))return i;var c,h=r(i,s);if(h){if(void 0===u&&(u="default"),c=e(h,i,u),!t(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Qn(){if(jn)return Pn;jn=1;var e=Xn(),t=mn();return Pn=function(n){var r=e(n,"string");return t(r)?r:r+""}}function er(){if(Fn)return Bn;Fn=1;var e=et(),t=hn(),n=e.document,r=t(n)&&t(n.createElement);return Bn=function(e){return r?n.createElement(e):{}},Bn}function tr(){if(xn)return Un;xn=1;var e=lt(),t=ht(),n=er();return Un=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function nr(){if(Zn)return ct;Zn=1;var e=lt(),t=dt(),n=function(){if(gt)return tn;gt=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return tn.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,tn}(),r=nn(),o=un(),i=Qn(),a=Gn(),s=tr(),u=Object.getOwnPropertyDescriptor;return ct.f=e?u:function(e,c){if(e=o(e),c=i(c),s)try{return u(e,c)}catch(e){}if(a(e,c))return r(!t(n.f,e,c),e[c])},ct}var rr,or,ir,ar,sr,ur,cr,hr={};function lr(){if(or)return rr;or=1;var e=lt(),t=ht();return rr=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function fr(){if(ar)return ir;ar=1;var e=hn(),t=String,n=TypeError;return ir=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function dr(){if(sr)return hr;sr=1;var e=lt(),t=tr(),n=lr(),r=fr(),o=Qn(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",h="writable";return hr.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var i=s(e,t);i&&i[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},hr}function gr(){if(cr)return ur;cr=1;var e=lt(),t=dr(),n=nn();return ur=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var mr,yr,vr,pr,Sr,wr,Ar,br,Tr,Ir,Mr,Er,Or,Nr,Hr,Cr={exports:{}};function Dr(){if(pr)return vr;pr=1;var e=rn(),t=cn(),n=zn(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),vr=n.inspectSource}function _r(){if(br)return Ar;br=1;var e=Kn(),t=Wn(),n=e("keys");return Ar=function(e){return n[e]||(n[e]=t(e))}}function kr(){return Ir?Tr:(Ir=1,Tr={})}function Lr(){if(Er)return Mr;Er=1;var e,t,n,r=function(){if(wr)return Sr;wr=1;var e=et(),t=cn(),n=e.WeakMap;return Sr=t(n)&&/native code/.test(String(n))}(),o=et(),i=hn(),a=gr(),s=Gn(),u=zn(),c=_r(),h=kr(),l="Object already initialized",f=o.TypeError,d=o.WeakMap;if(r||u.state){var g=u.state||(u.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(l);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=c("state");h[m]=!0,e=function(e,t){if(s(e,m))throw new f(l);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return Mr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},Mr}function Rr(){if(Or)return Cr.exports;Or=1;var e=rn(),t=ht(),n=cn(),r=Gn(),o=lt(),i=function(){if(yr)return mr;yr=1;var e=lt(),t=Gn(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return mr={EXISTS:o,PROPER:i,CONFIGURABLE:a}}().CONFIGURABLE,a=Dr(),s=Lr(),u=s.enforce,c=s.get,h=String,l=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),m=o&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),v=Cr.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?l(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&l(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&l(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=v((function(){return n(this)&&c(this).source||a(this)}),"toString"),Cr.exports}function Yr(){if(Hr)return Nr;Hr=1;var e=cn(),t=dr(),n=Rr(),r=Vn();return Nr=function(o,i,a,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:i;if(e(a)&&n(a,c,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},Nr}var Pr,jr,Br,Fr,Ur,xr,Zr,$r,Vr,zr,Kr,Jr,Gr,Wr,qr,Xr,Qr,eo={};function to(){if(Fr)return Br;Fr=1;var e=function(){if(jr)return Pr;jr=1;var e=Math.ceil,t=Math.floor;return Pr=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Pr}();return Br=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function no(){if(xr)return Ur;xr=1;var e=to(),t=Math.max,n=Math.min;return Ur=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)}}function ro(){if($r)return Zr;$r=1;var e=to(),t=Math.min;return Zr=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function oo(){if(zr)return Vr;zr=1;var e=ro();return Vr=function(t){return e(t.length)}}function io(){if(Jr)return Kr;Jr=1;var e=un(),t=no(),n=oo(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(a,u);if(r&&i!=i){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===i)return r||h||0;return!r&&-1}};return Kr={includes:r(!0),indexOf:r(!1)}}function ao(){if(Wr)return Gr;Wr=1;var e=rn(),t=Gn(),n=un(),r=io().indexOf,o=kr(),i=e([].push);return Gr=function(e,a){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&i(h,s);for(;a.length>c;)t(u,s=a[c++])&&(~r(h,s)||i(h,s));return h},Gr}function so(){return Xr?qr:(Xr=1,qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var uo,co,ho,lo,fo,go,mo,yo,vo,po={};function So(){if(ho)return co;ho=1;var e=ln(),t=rn(),n=function(){if(Qr)return eo;Qr=1;var e=ao(),t=so().concat("length","prototype");return eo.f=Object.getOwnPropertyNames||function(n){return e(n,t)},eo}(),r=(uo||(uo=1,po.f=Object.getOwnPropertySymbols),po),o=fr(),i=t([].concat);return co=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},co}function wo(){if(fo)return lo;fo=1;var e=Gn(),t=So(),n=nr(),r=dr();return lo=function(o,i,a){for(var s=t(i),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||a&&e(a,l)||u(o,l,c(i,l))}},lo}function Ao(){if(vo)return yo;vo=1;var e=et(),t=nr().f,n=gr(),r=Yr(),o=Vn(),i=wo(),a=function(){if(mo)return go;mo=1;var e=ht(),t=cn(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return go=r}();return yo=function(s,u){var c,h,l,f,d,g=s.target,m=s.global,y=s.stat;if(c=m?e:y?e[g]||o(g,{}):e[g]&&e[g].prototype)for(h in u){if(f=u[h],l=s.dontCallGetSet?(d=t(c,h))&&d.value:c[h],!a(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;i(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var bo,To,Io,Mo,Eo,Oo,No,Ho,Co,Do,_o={};function ko(){if(To)return bo;To=1;var e=ao(),t=so();return bo=Object.keys||function(n){return e(n,t)},bo}function Lo(){if(Eo)return Mo;Eo=1;var e=ln();return Mo=e("document","documentElement")}function Ro(){if(No)return Oo;No=1;var e,t=fr(),n=function(){if(Io)return _o;Io=1;var e=lt(),t=lr(),n=dr(),r=fr(),o=un(),i=ko();return _o.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),u=i(t),c=u.length,h=0;c>h;)n.f(e,a=u[h++],s[a]);return e},_o}(),r=so(),o=kr(),i=Lo(),a=er(),s=_r(),u="prototype",c="script",h=s("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;g="undefined"!=typeof document?document.domain&&e?d(e):(n=a("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete g[u][r[s]];return g()};return o[h]=!0,Oo=Object.create||function(e,r){var o;return null!==e?(l[u]=t(e),o=new l,l[u]=null,o[h]=e):o=g(),void 0===r?o:n.f(o,r)},Oo}function Yo(){if(Co)return Ho;Co=1;var e=qn(),t=Ro(),n=dr().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),Ho=function(e){o[r][e]=!0}}function Po(e,t,n,r,o){return jo(t,Bo(e,t),n,r,o)}function jo(e,t,n,r,o,i){const a=ai(t,n,r);if(o&&t!==a)throw new RangeError(dh(e,t,n,r,i));return a}function Bo(e,t){const n=e[t];if(void 0===n)throw new TypeError(mh(t));return n}function Fo(e){return null!==e&&/object|function/.test(typeof e)}function Uo(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),i=1;i<r;i++)o[i-1]=arguments[i];const a=e(n,...o);return t.set(n,a),a}}function xo(e){return Zo({name:e},1)}function Zo(e,t){return Ko((e=>({value:e,configurable:1,writable:!t})),e)}function $o(e){return Ko((e=>({get:e,configurable:1})),e)}function Vo(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function zo(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Ko(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Jo(e,t,n){const r={};for(let o=0;o<t.length;o++){const i=t[o];r[i]=e(i,o,n)}return r}function Go(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Wo(e,t){const n={};for(const r of e)n[r]=t[r];return n}function qo(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Xo(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function Qo(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function ei(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function ti(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 ni(e){return e[0].toUpperCase()+e.substring(1)}function ri(e){return e.slice().sort()}function oi(e,t){return String(t).padStart(e,"0")}function ii(e,t){return Math.sign(e-t)}function ai(e,t,n){return Math.min(Math.max(e,t),n)}function si(e,t){return[Math.floor(e/t),ui(e,t)]}function ui(e,t){return(e%t+t)%t}function ci(e,t){return[hi(e,t),li(e,t)]}function hi(e,t){return Math.trunc(e/t)||0}function li(e,t){return e%t||0}function fi(e){return.5===Math.abs(e%1)}function di(e,t,n){let r=0,o=0;for(let i=0;i<=t;i++){const t=e[n[i]],a=cl[i],s=ul/a,[u,c]=ci(t,s);r+=c*a,o+=u}const[i,a]=ci(r,ul);return[o+i,a]}function gi(e,t,n){const r={};for(let o=t;o>=0;o--){const t=cl[o];r[n[o]]=hi(e,t),e=li(e,t)}return r}function mi(e){if(void 0!==e)return vi(e)}function yi(e){return Ti(vi(e))}function vi(e){return bi(Rl(e))}function pi(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Si(e,t){if(null==t)throw new RangeError(mh(e));return t}function wi(e){if(!Fo(e))throw new TypeError(fh);return e}function Ai(e,t){if(typeof t!==e)throw new TypeError(gh(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function bi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(ah(t,e));return e||0}function Ti(e){if(e<=0)throw new RangeError(sh(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function Ii(e){if("symbol"==typeof e)throw new TypeError(lh);return String(e)}function Mi(e,t){return Fo(e)?String(e):kl(e,t)}function Ei(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(hh(e));return e}function Oi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(ch(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(uh(t,e));return e}function Ni(e,t){return Math.trunc(Oi(e,t))||0}function Hi(e,t){return bi(Oi(e,t),t)}function Ci(e,t){return Ti(Ni(e,t),t)}function Di(e,t){let[n,r]=ci(t,ul),o=e+n;const i=Math.sign(o);return i&&i===-Math.sign(r)&&(o-=i,r+=i*ul),[o,r]}function _i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Di(e[0]+t[0]*n,e[1]+t[1]*n)}function ki(e,t){return Di(e[0],e[1]+t)}function Li(e,t){return _i(t,e,-1)}function Ri(e,t){return ii(e[0],t[0])||ii(e[1],t[1])}function Yi(e,t,n){return-1===Ri(e,t)||1===Ri(e,n)}function Pi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(ul/t);return[Number(e/n),Number(e%n)*t]}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=ul/t,[r,o]=ci(e,n);return[r,o*t]}function Bi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),i=ul/t;return BigInt(n)*BigInt(i)+BigInt(o)}function Fi(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,[i,a]=ci(o,t);return r*(ul/t)+(i+(n?a/t:0))}function Ui(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:si;const[r,o]=e,[i,a]=n(o,t);return[r*(ul/t)+i,a]}function xi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Zi(e){return Po(e,"isoYear",uf,sf,1),e.isoYear===uf?Po(e,"isoMonth",4,12,1):e.isoYear===sf&&Po(e,"isoMonth",1,9,1),e}function $i(e){return Vi({...e,...Xl,isoHour:12}),e}function Vi(e){const t=Po(e,"isoYear",uf,sf,1),n=t===uf?1:t===sf?-1:0;return n&&zi(Xi({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function zi(e){if(!e||Yi(e,af,of))throw new RangeError(Fh);return e}function Ki(e){return di(e,5,zl)[1]}function Ji(e){const[t,n]=si(e,ul);return[gi(n,5,zl),t]}function Gi(e){return Wi(e)[0]}function Wi(e){return Ui(e,il)}function qi(e){return ta(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Xi(e){const t=qi(e);if(void 0!==t){const[n,r]=ci(t,tl);return[n,r*ol+(e.isoMicrosecond||0)*rl+(e.isoNanosecond||0)]}}function Qi(e,t){const[n,r]=Ji(Ki(e)-t);return zi(Xi({...e,isoDay:e.isoDay+r,...n}))}function ea(){return ta(...arguments)/nl}function ta(){const[e,t]=na(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*tl}function na(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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===uf?1:e===sf?-1:0,u=new Date;return u.setUTCHours(r,o,i,a),u.setUTCFullYear(e,t-1,n+s),[u,s]}function ra(e,t){let[n,r]=ki(e,t);r<0&&(r+=ul,n-=1);const[o,i]=si(r,ol),[a,s]=si(i,rl);return oa(n*tl+o,a,s)}function oa(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)-rf)/tl)*Math.sign(e),o=new Date(e-r*tl);return zo(Jl,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ia(e){return[e.isoYear,e.isoMonth,e.isoDay]}function aa(){return lf}function sa(e,t){switch(t){case 2:return ca(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function ua(e){return ca(e)?366:365}function ca(e){return e%4==0&&(e%100!=0||e%400==0)}function ha(e){const[t,n]=na(e.isoYear,e.isoMonth,e.isoDay);return ui(t.getUTCDay()-n,7)||7}function la(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function fa(e){const t=qi(e);if(t<ff)return la(e);const n=xi(wd(Cl),t),{era:r,eraYear:o}=hc(n,Cl);return[r,o]}function da(e){return ga(e),va(e,1),e}function ga(e){return ya(e,1),e}function ma(e){return Qo(Kl,e,ya(e))}function ya(e,t){const{isoYear:n}=e,r=Po(e,"isoMonth",1,aa(),t);return{isoYear:n,isoMonth:r,isoDay:Po(e,"isoDay",1,sa(n,r),t)}}function va(e,t){return zo(zl,[Po(e,"isoHour",0,23,t),Po(e,"isoMinute",0,59,t),Po(e,"isoSecond",0,59,t),Po(e,"isoMillisecond",0,999,t),Po(e,"isoMicrosecond",0,999,t),Po(e,"isoNanosecond",0,999,t)])}function pa(e){return void 0===e?0:Cf(wi(e))}function Sa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Ca(e);const n=Df(e),r=_f(e,t);return[Cf(e),r,n]}function wa(e){return Df(Ca(e))}function Aa(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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Ca(t);let a=Nf(t,r,o),s=Oa(t),u=Yf(t,i);const c=Of(t,r,o,1);return null==a?a=Math.max(n,c):Ya(a,c),s=Na(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[a,c,s,u]}function ba(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=Oa(e=Da(e,gf));const o=Yf(e,7);let i=Of(e,t);return i=Si(gf,i),r=Na(r,i,void 0,n),[i,r,o]}function Ta(e){return kf(Ca(e))}function Ia(e,t){return Ma(Ca(e),t)}function Ma(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Ha(e);return[Yf(e,4),...Ea(Of(e,t),n)]}function Ea(e,t){return null!=e?[cl[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function Oa(e){const t=e[yf];return void 0===t?1:Ni(t,yf)}function Na(e,t,n,r){const o=r?ul:cl[t+1];if(o){const n=cl[t];if(o%((e=jo(yf,e,1,o/n-(r?0:1),1))*n))throw new RangeError(gh(yf,e))}else e=jo(yf,e,1,n?10**9:1,1);return e}function Ha(e){let t=e[vf];if(void 0!==t){if("number"!=typeof t){if("auto"===Ii(t))return;throw new RangeError(gh(vf,t))}t=jo(vf,Math.floor(t),0,9,1)}return t}function Ca(e){return void 0===e?{}:wi(e)}function Da(e,t){return"string"==typeof e?{[t]:e}:wi(e)}function _a(e){if(void 0!==e){if(Fo(e))return Object.assign(Object.create(null),e);throw new TypeError(fh)}}function ka(e,t){return e&&Object.assign(Object.create(null),e,{overflow:wf[t]})}function La(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,i=t[e];if(void 0===i)return o?r:void 0;if(i=Ii(i),"auto"===i)return o?r:null;let a=Qh[i];if(void 0===a&&(a=xl[i]),void 0===a)throw new RangeError(Sh(e,i,Qh));return jo(e,a,r,n,1,el),a}function Ra(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 i=Ii(o),a=t[i];if(void 0===a)throw new RangeError(Sh(e,i,t));return a}function Ya(e,t){if(t>e)throw new RangeError(zh)}function Pa(e){return{branding:Zf,epochNanoseconds:e}}function ja(e,t,n){return{branding:xf,calendar:n,timeZone:t,epochNanoseconds:e}}function Ba(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Ff,calendar:t,...Wo(ql,e)}}function Fa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Bf,calendar:t,...Wo(Gl,e)}}function Ua(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Pf,calendar:t,...Wo(Gl,e)}}function xa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:jf,calendar:t,...Wo(Gl,e)}}function Za(e){return{branding:Uf,...Wo(Wl,e)}}function $a(e){return{branding:$f,sign:su(e),...Wo(jl,e)}}function Va(e){return Ui(e.epochNanoseconds,ol)[0]}function za(e){return e.epochNanoseconds}function Ka(e){return"string"==typeof e?e:kl(e.id)}function Ja(e,t){return e===t||Ka(e)===Ka(t)}function Ga(e,t){return Fi(hu(e),cl[t],1)}function Wa(e,t,n,r,o,i,a){const s=Pl[n],u={...t,[s]:t[s]+r},c=a(e,o,t),h=a(e,o,u);return[i(c),i(h)]}function qa(e,t,n){const r=Fi(Li(t,n));if(!r)throw new RangeError(Dh);return Fi(Li(t,e))/r}function Xa(e,t,n,r){return Qa(e,ns(t,n),r)}function Qa(e,t,n){const[r,o]=es(e,t,n);return Vi({...qs(e,o),...r})}function es(e,t,n){return Ji(cs(Ki(e),t,n))}function ts(e){return cs(e,al,7)}function ns(e,t){return cl[e]*t}function rs(e){const t=os(e);return[t,qs(t,1)]}function os(e){return Ql(6,e)}function is(e,t,n){const r=Math.min(gu(e),6);return lu(us(hu(e,r),t,n),r)}function as(e,t,n,r,o,i,a,s,u,c){if(0===r&&1===o)return e;const h=ru(r,s)?nu(s)&&r<6&&n>=6?fs:ls:ds;let[l,f,d]=h(e,t,n,r,o,i,a,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,i,a,s)=>{const u=su(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=Vl(c,e);r[Pl[c]]+=u;const h=Fi(Li(a(s(o,i,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),a,s,u,c)),l}function ss(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/ul)(e);return[cs(t,n,r),0]}return us(e,ns(t,n),r,o)}function us(e,t,n,r){let[o,i]=e;r&&i<0&&(i+=ul,o-=1);const[a,s]=si(cs(i,t,n),ul);return Di(o+a,s)}function cs(e,t,n){return hs(e/t,n)*t}function hs(e,t){return Vf[t](e)}function ls(e,t,n,r,o,i){const a=su(e),s=hu(e),u=ss(s,r,o,i),c=Li(s,u),h=Math.sign(u[0]-s[0])===a,l=lu(u,Math.min(n,6));return[{...e,...l},_i(t,c),h]}function fs(e,t,n,r,o,i,a,s,u,c){const h=su(e),l=Fi(hu(e,5)),f=ns(r,o);let d=cs(l,f,i);const[g,m]=Wa(a,{...e,...$l},6,h,s,u,c),y=d-Fi(Li(g,m));let v=0;y&&Math.sign(y)!==h?t=ki(g,d):(v+=h,d=cs(y,f,i),t=ki(m,d));const p=fu(d);return[{...e,...p,days:e.days+v},t,Boolean(v)]}function ds(e,t,n,r,o,i,a,s,u,c){const h=su(e),l=Pl[r],f=Vl(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=hi(e[l],o)*o;f[l]=d;const[g,m]=Wa(a,f,r,o*h,s,u,c),y=d+qa(t,g,m)*h*o,v=cs(y,o,i),p=Math.sign(v-y)===h;return f[l]=v,[f,p?m:g,p]}function gs(e,t,n,r){const[o,i,a,s]=(e=>{const t=Ma(e=Ca(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,i)=>{n=us(n,o,r,1);const a=t.getOffsetNanosecondsFor(n);return Is(ra(n,a),i)+(e?Hs(ts(a)):"Z")})(u,t(u?e(o):zf),n.epochNanoseconds,i,a,s)}function ms(e,t,n){const[r,o,i,a,s,u]=(e=>{e=Ca(e);const t=kf(e),n=Ha(e),r=Rf(e),o=Yf(e,4),i=Of(e,4);return[t,Lf(e),r,o,...Ea(i,n)]})(n);return((e,t,n,r,o,i,a,s,u,c)=>{r=us(r,u,s,1);const h=e(n).getOffsetNanosecondsFor(r);return Is(ra(r,h),c)+Hs(ts(h),a)+((e,t)=>1!==t?"["+(2===t?"!":"")+Ka(e)+"]":"")(n,i)+Cs(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,i,a,s,u)}function ys(e,t){const[n,r,o,i]=(e=>(e=Ca(e),[kf(e),...Ma(e)]))(t);return a=e.calendar,s=n,u=i,Is(Qa(e,o,r),u)+Cs(a,s);var a,s,u}function vs(e,t){return n=e.calendar,r=e,o=Ta(t),Ms(r)+Cs(n,o);var n,r,o}function ps(e,t){return bs(e.calendar,Es,e,Ta(t))}function Ss(e,t){return bs(e.calendar,Os,e,Ta(t))}function ws(e,t){const[n,r,o]=Ia(t);return i=o,Ns(es(e,r,n)[0],i);var i}function As(e,t){const[n,r,o]=Ia(t,3);return r>1&&(e={...e,...is(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?au(e):e,{hours:o,minutes:i}=r,[a,s]=Ui(hu(r,3),il,ci);cu(a);const u=_s(s,t),c=t>=0||!n||u;return(n<0?"-":"")+"P"+Ts({Y:Ls(r.years),M:Ls(r.months),W:Ls(r.weeks),D:Ls(r.days)})+(o||i||a||c?"T"+Ts({H:Ls(o),M:Ls(i),S:Ls(a,c)+u}):"")})(e,o)}function bs(e,t,n,r){const o=Ka(e),i=r>1||0===r&&o!==Nl;return 1===r?o===Nl?t(n):Ms(n):i?Ms(n)+Ds(o,2===r):t(n)}function Ts(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Is(e,t){return Ms(e)+"T"+Ns(e,t)}function Ms(e){return Es(e)+"-"+Xh(e.isoDay)}function Es(e){const{isoYear:t}=e;return(t<0||t>9999?ks(t)+oi(6,Math.abs(t)):oi(4,t))+"-"+Xh(e.isoMonth)}function Os(e){return Xh(e.isoMonth)+"-"+Xh(e.isoDay)}function Ns(e,t){const n=[Xh(e.isoHour),Xh(e.isoMinute)];return-1!==t&&n.push(Xh(e.isoSecond)+((e,t,n,r)=>_s(e*ol+t*rl+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Hs(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=si(Math.abs(e),sl),[r,o]=si(n,al),[i,a]=si(o,il);return ks(e)+Xh(t)+":"+Xh(r)+(i||a?":"+Xh(i)+_s(a):"")}function Cs(e,t){if(1!==t){const n=Ka(e);if(t>1||0===t&&n!==Nl)return Ds(n,2===t)}return""}function Ds(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function _s(e,t){let n=oi(9,e);return n=void 0===t?n.replace(Wf,""):n.slice(0,t),n?"."+n:""}function ks(e){return e<0?"-":"+"}function Ls(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Rs(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=ra(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Ys(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||a))return Qi(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Xi(t);r&&(n=ts(n));for(const t of e){let e=Fi(Li(t,o));if(r&&(e=ts(e)),e===n)return t}})(s,t,n,i);if(void 0!==e)return e;if(0===r)throw new RangeError(jh)}return a?Xi(t):Ps(e,t,o,s)}function Ps(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(Bh);if(r.length)return r[3===n?1:0];const o=Xi(t),i=((e,t)=>{const n=e.getOffsetNanosecondsFor(ki(t,-ul));return Bs(e.getOffsetNanosecondsFor(ki(t,ul))-n)})(e,o),a=i*(2===n?-1:1);return(r=e.getPossibleInstantsFor(ra(o,a)))[2===n?0:r.length-1]}function js(e){if(Math.abs(e)>=ul)throw new RangeError(Yh);return e}function Bs(e){if(e>ul)throw new RangeError(Ph);return e}function Fs(e,t,n){return Pa(zi(_i(t.epochNanoseconds,(e=>{if(du(e))throw new RangeError($h);return hu(e,5)})(e?au(n):n))))}function Us(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const a=t(r.timeZone),s=e(r.calendar);return{...r,...zs(a,s,r,n?au(o):o,i)}}function xs(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:i}=n;return Ba(Ks(e(i),n,t?au(r):r,o),i)}function Zs(e,t,n,r,o){const{calendar:i}=n;return Fa(Js(e(i),n,t?au(r):r,o),i)}function $s(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const i=n.calendar,a=e(i);let s=Gs(a,n);t&&(r=iu(r)),r.sign<0&&(s=a.dateAdd(s,{...Zl,months:1}),s=qs(s,-1));const u=a.dateAdd(s,r,o);return Ua(Gs(a,u),i)}function Vs(e,t,n){return Za(Ws(t,e?au(n):n)[0])}function zs(e,t,n,r,o){const i=hu(r,5);let a=n.epochNanoseconds;if(du(r)){const s=qf(n,e);a=_i(Ps(e,{...Js(t,s,{...r,...$l},o),...Wo(zl,s)}),i)}else a=_i(a,i),pa(o);return{epochNanoseconds:zi(a)}}function Ks(e,t,n,r){const[o,i]=Ws(t,n);return Vi({...Js(e,t,{...n,...$l,days:n.days+i},r),...o})}function Js(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);pa(r);const o=n.days+hu(n,5)[0];return o?$i(qs(t,o)):t}function Gs(e,t){return qs(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function Ws(e,t){const[n,r]=hu(t,5),[o,i]=Ji(Ki(e)+r);return[o,n+i]}function qs(e,t){return t?{...e,...oa(qi(e)+t*tl)}:e}function Xs(e,t,n){const r=e(n.calendar);return nu(n)?[n,r,t(n.timeZone)]:[{...n,...Xl},r]}function Qs(e){return e?za:Xi}function eu(e){return e?ti(zs,e):Ks}function tu(e){return e?ti(qu,e):Xu}function nu(e){return e&&e.epochNanoseconds}function ru(e,t){return e<=6-(nu(t)?1:0)}function ou(e,t,n,r,o,i,a){const s=e(Ca(a).relativeTo),u=Math.max(gu(o),gu(i));if(ru(u,s))return $a(uu(((e,t,n,r)=>{const o=_i(hu(e),hu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Fh);return{...Zl,...lu(o,n)}})(o,i,u,r)));if(!s)throw new RangeError(Zh);r&&(i=au(i));const[c,h,l]=Xs(t,n,s),f=eu(l),d=tu(l),g=f(h,c,o);return $a(d(h,c,f(h,g,i),u))}function iu(e){return $a(au(e))}function au(e){const t={};for(const n of Pl)t[n]=-1*e[n]||0;return t}function su(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pl,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(xh);n=t}}return n}function uu(e){for(const t of Ul)jo(t,e[t],-Xf,Xf,1);return cu(Fi(hu(e),il)),e}function cu(e){if(!Number.isSafeInteger(e))throw new RangeError(Uh)}function hu(e){return di(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Pl)}function lu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=gi(r,t,Pl);if(o[Pl[t]]+=n*(ul/cl[t]),!Number.isFinite(o[Pl[t]]))throw new RangeError(Fh);return o}function fu(e){return gi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Pl)}function du(e){return Boolean(su(e,Fl))}function gu(e){let t=9;for(;t>0&&!e[Pl[t]];t--);return t}function mu(e,t){return[e,t]}function yu(e){const t=Math.floor(e/Kf)*Kf;return[t,t+Kf]}function vu(e){const t=Ou(e);if(void 0===t)throw new RangeError(Kh(e));return t}function pu(e){const t=Iu(kl(e));if(!t||t.m)throw new RangeError(Kh(e));return Fa(t.p?Au(t):bu(t))}function Su(e){if(e.calendar!==Nl)throw new RangeError(Jh(e.calendar))}function wu(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=Ru(e.timeZone),i=Qf(o);return ja(Ys(i,da(e),t,n,r,!i.v,e.m),o,Sc(e.calendar))}function Au(e){return Tu(Vi(da(e)))}function bu(e){return Tu($i(ga(e)))}function Tu(e){return{...e,calendar:Sc(e.calendar)}}function Iu(e){const t=fd.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Nu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Hu(e.slice(5)),...Cu(e[16]),p:Boolean(e[6]),m:n,offset:n?void 0:t}})(t):void 0}function Mu(e){const t=hd.exec(e);return t?(e=>({isoYear:Nu(e),isoMonth:parseInt(e[4]),isoDay:1,...Cu(e[5])}))(t):void 0}function Eu(e){const t=ld.exec(e);return t?(e=>({isoYear:hf,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Cu(e[3])}))(t):void 0}function Ou(e,t){const n=gd.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Jh(n));return js((Lu(e[2])*sl+Lu(e[3])*al+Lu(e[4])*il+Du(e[5]||""))*ku(e[1]))})(n,t):void 0}function Nu(e){const t=ku(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Jh(-0));return t*n}function Hu(e){const t=Lu(e[3]);return{...Ji(Du(e[4]||""))[0],isoHour:Lu(e[1]),isoMinute:Lu(e[2]),isoSecond:60===t?59:t}}function Cu(e){let t,n;const r=[];if(e.replace(md,((e,o,i)=>{const a=Boolean(o),[s,u]=i.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=a);else if(a||/[A-Z]/.test(u))throw new RangeError(Jh(e))}else{if(n)throw new RangeError(Jh(e));n=s}return""})),r.length>1&&t)throw new RangeError(Jh(e));return{timeZone:n,calendar:r[0]||Nl}}function Du(e){return parseInt(e.padEnd(9,"0"))}function _u(e){return new RegExp(`^${e}$`,"i")}function ku(e){return e&&"+"!==e?-1:1}function Lu(e){return void 0===e?0:parseInt(e)}function Ru(e){const t=Pu(e);return"number"==typeof t?Hs(t):t?(e=>{if(pd.test(e))throw new RangeError(Rh);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?ni(e).replace(/island|noronha|murdo|rivadavia|urville/,ni):e)))).join("/")})(e):zf}function Yu(e){const t=Pu(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:zf}function Pu(e){const t=Ou(e=e.toUpperCase(),1);return void 0!==t?t:e!==zf?vd(e):void 0}function ju(e,t){return Ri(e.epochNanoseconds,t.epochNanoseconds)}function Bu(e,t){return Ri(e.epochNanoseconds,t.epochNanoseconds)}function Fu(e,t){return Uu(e,t)||xu(e,t)}function Uu(e,t){return ii(qi(e),qi(t))}function xu(e,t){return ii(Ki(e),Ki(t))}function Zu(e,t){if(e===t)return 1;const n=Ka(e),r=Ka(t);if(n===r)return 1;try{return Yu(n)===Yu(r)}catch(e){}}function $u(e,t,n,r){const o=Aa(e,_a(r),3,5),i=tc(t.epochNanoseconds,n.epochNanoseconds,...o);return $a(e?au(i):i)}function Vu(e,t,n,r,o,i){const a=ac(r.calendar,o.calendar),s=_a(i),[u,c,h,l]=Aa(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Ri(d,f);let m;if(g)if(u<6)m=tc(f,d,u,c,h,l);else{const n=t(((e,t)=>{if(!Zu(e,t))throw new RangeError(Lh);return e})(r.timeZone,o.timeZone)),i=e(a);m=Qu(i,n,r,o,g,u,s),m=as(m,d,u,c,h,l,i,r,za,ti(zs,n))}else m=Zl;return $a(n?au(m):m)}function zu(e,t,n,r,o){const i=ac(n.calendar,r.calendar),a=_a(o),[s,u,c,h]=Aa(t,a,6),l=Xi(n),f=Xi(r),d=Ri(f,l);let g;if(d)if(s<=6)g=tc(l,f,s,u,c,h);else{const t=e(i);g=ec(t,n,r,d,s,a),g=as(g,f,s,u,c,h,t,n,Xi,Ks)}else g=Zl;return $a(t?au(g):g)}function Ku(e,t,n,r,o){const i=ac(n.calendar,r.calendar),a=_a(o);return Gu(t,(()=>e(i)),n,r,...Aa(t,a,6,9,6),a)}function Ju(e,t,n,r,o){const i=ac(n.calendar,r.calendar),a=_a(o),s=Aa(t,a,9,9,8),u=e(i);return Gu(t,(()=>u),Gs(u,n),Gs(u,r),...s,a)}function Gu(e,t,n,r,o,i,a,s,u){const c=Xi(n),h=Xi(r);let l;if(Ri(h,c))if(6===o)l=tc(c,h,o,i,a,s);else{const e=t();l=e.dateUntil(n,r,o,u),6===i&&1===a||(l=as(l,h,o,i,a,s,e,n,Xi,Js))}else l=Zl;return $a(e?au(l):l)}function Wu(e,t,n,r){const o=_a(r),[i,a,s,u]=Aa(e,o,5,5),c=cs(ic(t,n),ns(a,s),u),h={...Zl,...fu(c,i)};return $a(e?au(h):h)}function qu(e,t,n,r,o,i){const a=Ri(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?nc(n.epochNanoseconds,r.epochNanoseconds,o):Qu(t,e,n,r,a,o,i):Zl}function Xu(e,t,n,r,o){const i=Xi(t),a=Xi(n),s=Ri(a,i);return s?r<=6?nc(i,a,r):ec(e,t,n,s,r,o):Zl}function Qu(e,t,n,r,o,i,a){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...qs(s,c++*-r),...a},f=Ps(e,l),Ri(u,f)===-r}const i=qf(t,e),a=Wo(zl,i),s=qf(n,e),u=n.epochNanoseconds;let c=0;const h=ic(i,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(Dh);const d=Fi(Li(f,u));return[i,l,d]})(t,n,r,o);var h,l;return{...6===i?(h=s,l=u,{...Zl,days:rc(h,l)}):e.dateUntil(s,u,i,a),...fu(c)}}function ec(e,t,n,r,o,i){const[a,s,u]=((e,t,n)=>{let r=t,o=ic(e,t);return Math.sign(o)===-n&&(r=qs(t,-n),o+=ul*n),[e,r,o]})(t,n,r);return{...e.dateUntil(a,s,o,i),...fu(u)}}function tc(e,t,n,r,o,i){return{...Zl,...lu(ss(Li(e,t),r,o,i),n)}}function nc(e,t,n){return{...Zl,...lu(Li(e,t),n)}}function rc(e,t){return oc(qi(e),qi(t))}function oc(e,t){return Math.trunc((t-e)/tl)}function ic(e,t){return Ki(t)-Ki(e)}function ac(e,t){if(!Ja(e,t))throw new RangeError(_h);return e}function sc(e){function t(e){return((e,t)=>({...hc(e,t),F:e.month,day:parseInt(e.day)}))(xi(n,e),r)}const n=wd(e),r=wc(e);return{id:e,O:uc(t),B:cc(t)}}function uc(e){return Uo((t=>{const n=qi(t);return e(n)}),WeakMap)}function cc(e){const t=e(0).year-cf;return Uo((n=>{let r,o=ta(n-t);const i=[],a=[];do{o+=400*tl}while((r=e(o)).year<=n);do{o+=(1-r.day)*tl,r.year===n&&(i.push(o),a.push(r.F)),o-=tl}while((r=e(o)).year>=n);return{k:i.reverse(),C:Wh(a.reverse())}}))}function hc(e,t){let n,r,o=lc(e);if(e.era){const i=Dl[t];void 0!==i&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"!==n&&"a"!==n||(n="ce"),r=o,o=Oc(r,i[n]||0))}return{era:n,eraYear:r,year:o}}function lc(e){return parseInt(e.relatedYear||e.year)}function fc(e){const{year:t,F:n,day:r}=this.O(e),{C:o}=this.B(t);return[t,o[n]+1,r]}function dc(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.B(e).k[t-1]+(n-1)*tl}function gc(e){const t=pc(this,e),n=pc(this,e-1),r=t.length;if(r>n.length){const e=Hc(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function mc(e){return oc(dc.call(this,e),dc.call(this,e+1))}function yc(e,t){const{k:n}=this.B(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.B(e+1).k),oc(n[t-1],o[r-1])}function vc(e){return this.B(e).k.length}function pc(e,t){return Object.keys(e.B(t).C)}function Sc(e){if((e=e.toLowerCase())!==Nl&&e!==Hl&&wc(e)!==wc(wd(e).resolvedOptions().calendar))throw new RangeError(kh(e));return e}function wc(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function Ac(e){return this.R(e)[0]}function bc(e){return this.R(e)[1]}function Tc(e){const[t]=this.h(e);return oc(this.q(t),qi(e))+1}function Ic(e){const t=Ad.exec(e);if(!t)throw new RangeError(Eh(e));return[parseInt(t[1]),Boolean(t[2])]}function Mc(e,t,n){return e+(t||n&&e>=n?1:0)}function Ec(e,t){return e-(t&&e>=t?1:0)}function Oc(e,t){return(t+e)*(Math.sign(t)||1)||0}function Nc(e){return Dl[Cc(e)]}function Hc(e){return _l[Cc(e)]}function Cc(e){return wc(e.id||Nl)}function Dc(e,t,n,r){const o=Rc(n,r,Il,[],ml);if(void 0!==o.timeZone){const r=n.dateFromFields(o),i=Pc(o),a=e(o.timeZone);return{epochNanoseconds:Ys(t(a),{...r,...i},void 0!==o.offset?vu(o.offset):void 0),timeZone:a}}return{...n.dateFromFields(o),...Xl}}function _c(e,t,n){const r=Rc(e,t,Il,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function kc(e,t,n,r){const o=Rc(e,t,bl,r);return e.yearMonthFromFields(o,n)}function Lc(e,t,n,r){const o=Rc(e,n,Il,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=hf),e.monthDayFromFields(o,r)}function Rc(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 Yc(t,[...e.fields(n),...o].sort(),r)}function Yc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let i,a=0;for(const r of t){if(r===i)throw new RangeError(vh(r));if("constructor"===r||"__proto__"===r)throw new RangeError(yh(r));let t=e[r];if(void 0!==t)a=1,Md[r]&&(t=Md[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(mh(r));o[r]=Ol[r]}i=r}if(r&&!a)throw new TypeError(ph(t));return o}function Pc(e,t){return va(Ed({...Ol,...e}),t)}function jc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const a=[...e.fields(r),...o].sort();let s=Yc(t,a,i);const u=Yc(n,a);return s=e.mergeFields(s,u),Yc(s,a,[])}function Bc(e,t){const n=Rc(e,t,El);return e.monthDayFromFields(n)}function Fc(e,t,n){const r=Rc(e,t,Tl);return e.yearMonthFromFields(r,n)}function Uc(e,t,n,r,o){t=Wo(n=e.fields(n),t),r=Yc(r,o=e.fields(o),[]);let i=e.mergeFields(t,r);return i=Yc(i,[...n,...o].sort(),[]),e.dateFromFields(i)}function xc(e,t){let{era:n,eraYear:r,year:o}=t;const i=Nc(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(bh);if(!i)throw new RangeError(Ah);const e=i[n];if(void 0===e)throw new RangeError(Ih(n));const t=Oc(r,e);if(void 0!==o&&o!==t)throw new RangeError(Th);o=t}else if(void 0===o)throw new TypeError(Mh(i));return o}function Zc(e,t,n,r){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((e,t,n,r)=>{const o=e.U(n),[i,a]=Ic(t);let s=Mc(i,a,o);if(a){const t=Hc(e);if(void 0===t)throw new RangeError(Ch);if(t>0){if(s>t)throw new RangeError(Ch);if(void 0===o){if(1===r)throw new RangeError(Ch);s--}}else{if(s!==-t)throw new RangeError(Ch);if(void 0===o&&1===r)throw new RangeError(Ch)}}return s})(e,i,n,r);if(void 0!==o&&o!==t)throw new RangeError(Oh);o=t,r=1}else if(void 0===o)throw new TypeError(Nh);return jo("month",o,1,e.L(n),r)}function $c(e,t,n,r,o){return Po(t,"day",1,e.j(r,n),o)}function Vc(e,t,n,r){let o=0;const i=[];for(const e of n)void 0!==t[e]?o=1:i.push(e);if(Object.assign(e,t),o)for(const t of r||i)delete e[t]}function zc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nl;return ja(e.epochNanoseconds,t,n)}function Kc(e,t){return Ba(qf(t,e))}function Jc(e,t){return Fa(qf(t,e))}function Gc(e,t){return Za(qf(t,e))}function Wc(e,t){return{...e,calendar:t}}function qc(e,t){if(e===t)return e;const n=Ka(e),r=Ka(t);if(n===r||n===Nl)return t;if(r===Nl)return e;throw new RangeError(_h)}function Xc(e,t){return n=>n===Nl?e:n===Hl||n===Cl?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),Sd(n))}function Qc(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=qo(r,o),e)||Object.assign(o,t),n&&(o.timeZone=zf,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function eh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:th;const[n,,,r]=e;return function(o){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tg;for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];const c=t(r&&r(...s),o,i,n),h=c.resolvedOptions();return[c,...nh(e,h,s)]}}function th(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(Gh);n.timeZone=e}return new ef(t,n)}function nh(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Nl)&&e!==t)throw new RangeError(_h)})(Ka(e.calendar),t.calendar,o),r(e,t))))}function rh(e){const t=oh();return ra(t,e.getOffsetNanosecondsFor(t))}function oh(){return ji(Date.now(),ol)}function ih(){return cg||(cg=(new ef).resolvedOptions().timeZone)}!function(){if(Do)return Qe;Do=1;var e=Ao(),t=io().includes,n=ht(),r=Yo();e({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();const ah=(e,t)=>`Non-integer ${e}: ${t}`,sh=(e,t)=>`Non-positive ${e}: ${t}`,uh=(e,t)=>`Non-finite ${e}: ${t}`,ch=e=>`Cannot convert bigint to ${e}`,hh=e=>`Invalid bigint: ${e}`,lh="Cannot convert Symbol to string",fh="Invalid object",dh=(e,t,n,r,o)=>o?dh(e,o[t],o[n],o[r]):gh(e,t)+`; must be between ${n}-${r}`,gh=(e,t)=>`Invalid ${e}: ${t}`,mh=e=>`Missing ${e}`,yh=e=>`Invalid field ${e}`,vh=e=>`Duplicate field ${e}`,ph=e=>"No valid fields: "+e.join(),Sh=(e,t,n)=>gh(e,t)+"; must be "+Object.keys(n).join(),wh="Invalid calling context",Ah="Forbidden era/eraYear",bh="Mismatching era/eraYear",Th="Mismatching year/eraYear",Ih=e=>`Invalid era: ${e}`,Mh=e=>"Missing year"+(e?"/era/eraYear":""),Eh=e=>`Invalid monthCode: ${e}`,Oh="Mismatching month/monthCode",Nh="Missing month/monthCode",Hh="Cannot guess year",Ch="Invalid leap month",Dh="Invalid protocol results",_h="Mismatching Calendars",kh=e=>`Invalid Calendar: ${e}`,Lh="Mismatching TimeZones",Rh="Forbidden ICU TimeZone",Yh="Out-of-bounds offset",Ph="Out-of-bounds TimeZone gap",jh="Invalid TimeZone offset",Bh="Ambiguous offset",Fh="Out-of-bounds date",Uh="Out-of-bounds duration",xh="Cannot mix duration signs",Zh="Missing relativeTo",$h="Cannot use large units",Vh="Required smallestUnit or largestUnit",zh="smallestUnit > largestUnit",Kh=e=>`Cannot parse: ${e}`,Jh=e=>`Invalid substring: ${e}`,Gh="Cannot specify TimeZone",Wh=ti(Jo,((e,t)=>t)),qh=ti(Jo,((e,t,n)=>n)),Xh=ti(oi,2),Qh={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},el=Object.keys(Qh),tl=864e5,nl=1e3,rl=1e3,ol=1e6,il=1e9,al=6e10,sl=36e11,ul=864e11,cl=[1,rl,ol,il,al,sl,ul],hl=el.slice(0,6),ll=ri(hl),fl=["offset"],dl=["timeZone"],gl=hl.concat(fl),ml=gl.concat(dl),yl=["era","eraYear"],vl=yl.concat(["year"]),pl=["year"],Sl=["monthCode"],wl=["month"].concat(Sl),Al=["day"],bl=wl.concat(pl),Tl=Sl.concat(pl),Il=Al.concat(bl),Ml=Al.concat(wl),El=Al.concat(Sl),Ol=qh(hl,0),Nl="iso8601",Hl="gregory",Cl="japanese",Dl={[Hl]:{bce:-1,ce:0},[Cl]:{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}},_l={chinese:13,dangi:13,hebrew:-6},kl=ti(Ai,"string"),Ll=ti(Ai,"boolean"),Rl=ti(Ai,"number"),Yl=ti(Ai,"function"),Pl=el.map((e=>e+"s")),jl=ri(Pl),Bl=Pl.slice(0,6),Fl=Pl.slice(6),Ul=Fl.slice(1),xl=Wh(Pl),Zl=qh(Pl,0),$l=qh(Bl,0),Vl=ti(ei,Pl),zl=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Kl=["isoDay","isoMonth","isoYear"],Jl=zl.concat(Kl),Gl=ri(Kl),Wl=ri(zl),ql=ri(Jl),Xl=qh(Wl,0),Ql=ti(ei,Jl),ef=Intl.DateTimeFormat,tf="en-GB",nf=1e8,rf=nf*tl,of=[nf,0],af=[-nf,0],sf=275760,uf=-271821,cf=1970,hf=1972,lf=12,ff=ta(1868,9,8),df=Uo(fa,WeakMap),gf="smallestUnit",mf="unit",yf="roundingIncrement",vf="fractionalSecondDigits",pf="relativeTo",Sf={constrain:0,reject:1},wf=Object.keys(Sf),Af={compatible:0,reject:1,earlier:2,later:3},bf={reject:0,use:1,prefer:2,ignore:3},Tf={auto:0,never:1,critical:2,always:3},If={auto:0,never:1,critical:2},Mf={auto:0,never:1},Ef={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Of=ti(La,gf),Nf=ti(La,"largestUnit"),Hf=ti(La,mf),Cf=ti(Ra,"overflow",Sf),Df=ti(Ra,"disambiguation",Af),_f=ti(Ra,"offset",bf),kf=ti(Ra,"calendarName",Tf),Lf=ti(Ra,"timeZoneName",If),Rf=ti(Ra,"offset",Mf),Yf=ti(Ra,"roundingMode",Ef),Pf="PlainYearMonth",jf="PlainMonthDay",Bf="PlainDate",Ff="PlainDateTime",Uf="PlainTime",xf="ZonedDateTime",Zf="Instant",$f="Duration",Vf=[Math.floor,e=>fi(e)?Math.floor(e):Math.round(e),Math.ceil,e=>fi(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>fi(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=>fi(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],zf="UTC",Kf=5184e3,Jf=ea(1847),Gf=ea((new Date).getUTCFullYear()+10),Wf=/0+$/,qf=Uo(Rs,WeakMap),Xf=2**32-1,Qf=Uo((e=>{const t=Pu(e);return"object"==typeof t?new td(t):new ed(t||0)}));class ed{constructor(e){this.v=e}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(e){return[Qi(e,this.v)]}l(){}}class td{constructor(e){this.$=(e=>{function t(e){const t=ai(e,i,a),[s,u]=yu(t),c=r(s),h=r(u);return c===h?c:n(o(s,u),c,h,e)}function n(t,n,r,o){let i,a;for(;(void 0===o||void 0===(i=o<t[0]?n:o>=t[1]?r:void 0))&&(a=t[1]-t[0]);){const n=t[0]+Math.floor(a/2);e(n)===r?t[1]=n:t[0]=n+1}return i}const r=Uo(e),o=Uo(mu);let i=Jf,a=Gf;return{G(e){const n=t(e-86400),r=t(e+86400),o=e-n,i=e-r;if(n===r)return[o];const a=t(o);return a===t(i)?[e-a]:n>r?[o,i]:[]},V:t,l(e,t){const s=ai(e,i,a);let[u,c]=yu(s);const h=Kf*t,l=t<0?()=>c>i||(i=s,0):()=>u<a||(a=s,0);for(;l();){const i=r(u),a=r(c);if(i!==a){const r=o(u,c);n(r,i,a);const s=r[0];if((ii(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=xi(e,t*nl);return ea(lc(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(Gi(e))*il}getPossibleInstantsFor(e){const[t,n]=[ea((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*ol+r.isoMicrosecond*rl+r.isoNanosecond];var r;return this.$.G(t).map((e=>zi(ki(ji(e,il),n))))}l(e,t){const[n,r]=Wi(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return ji(o,il)}}const nd="([+−-])",rd="(?:[.,](\\d{1,9}))?",od=`(?:(?:${nd}(\\d{6}))|(\\d{4}))-?(\\d{2})`,id="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+rd+")?)?",ad=nd+id,sd=od+"-?(\\d{2})(?:[T ]"+id+"(Z|"+ad+")?)?",ud="\\[(!?)([^\\]]*)\\]",cd=`((?:${ud}){0,9})`,hd=_u(od+cd),ld=_u("(?:--)?(\\d{2})-?(\\d{2})"+cd),fd=_u(sd+cd),dd=_u("T?"+id+"(?:"+ad+")?"+cd),gd=_u(ad),md=new RegExp(ud,"g"),yd=_u(`${nd}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${rd}H)?(?:(\\d+)${rd}M)?(?:(\\d+)${rd}S)?)?`),vd=Uo((e=>new ef(tf,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),pd=/^(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$/,Sd=Uo(sc),wd=Uo((e=>new ef(tf,{calendar:e,timeZone:zf,era:"short",year:"numeric",month:"short",day:"numeric"}))),Ad=/^M(\d{2})(L?)$/,bd={era:Mi,eraYear:Ni,year:Ni,month:Ci,monthCode:Mi,day:Ci},Td=qh(hl,Ni),Id=qh(Pl,Hi),Md=Object.assign({},bd,Td,Id,{offset:Mi}),Ed=ti(Go,hl,zl),Od={dateAdd(e,t,n){const r=pa(n);let o,{years:i,months:a,weeks:s,days:u}=t;if(u+=hu(t,5)[0],i||a)o=((e,t,n,r,o)=>{let[i,a,s]=e.h(t);if(n){const[t,r]=e.I(i,a);i+=n,a=Mc(t,r,e.U(i)),a=jo("month",a,1,e.L(i),o)}return r&&([i,a]=e._(i,a,r)),s=jo("day",s,1,e.j(i,a),o),e.q(i,a,s)})(this,e,i,a,r);else{if(!s&&!u)return e;o=qi(e)}return o+=(7*s+u)*tl,$i(oa(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=rc({...e,...Xl},{...t,...Xl});return 7===n&&([r,o]=ci(o,7)),{...Zl,weeks:r,days:o}}const r=this.h(e),o=this.h(t);let[i,a,s]=((e,t,n,r,o,i,a)=>{let s=o-t,u=i-n,c=a-r;if(s||u){const h=Math.sign(s||u);let l=e.j(o,i),f=0;if(Math.sign(c)===-h){const r=l;[o,i]=e._(o,i,-h),s=o-t,u=i-n,l=e.j(o,i),f=h<0?-r:l}if(c=a-Math.min(r,l)+f,s){const[r,a]=e.I(t,n),[c,l]=e.I(o,i);if(u=c-r||Number(l)-Number(a),Math.sign(u)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,u=i-Mc(r,a,e.U(o))+(n||e.L(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(a+=this.J(i,r[0]),i=0),{...Zl,years:i,months:a,days:s}},dateFromFields(e,t){const n=pa(t),r=xc(this,e),o=Zc(this,e,r,n),i=$c(this,e,o,r,n);return Fa($i(this.P(r,o,i)),this.id||Nl)},yearMonthFromFields(e,t){const n=pa(t),r=xc(this,e),o=Zc(this,e,r,n);return Ua(Zi(this.P(r,o,1)),this.id||Nl)},monthDayFromFields(e,t){const n=pa(t),r=!this.id,{monthCode:o,year:i,month:a}=e;let s,u,c,h,l;if(void 0!==o){[s,u]=Ic(o),l=Bo(e,"day");const t=this.N(s,u,l);if(!t)throw new RangeError(Hh);if([c,h]=t,void 0!==a&&a!==h)throw new RangeError(Oh);r&&(h=jo("month",h,1,lf,1),l=jo("day",l,1,sa(void 0!==i?i:c,h),n))}else{c=void 0===i&&r?hf:xc(this,e),h=Zc(this,e,c,n),l=$c(this,e,h,c,n);const t=this.U(c);u=h===t,s=Ec(h,t);const o=this.N(s,u,l);if(!o)throw new RangeError(Hh);[c,h]=o}return xa($i(this.P(c,h,l)),this.id||Nl)},fields(e){return Nc(this)&&e.includes("year")?[...e,...yl]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Vc(n,t,wl),Nc(this)&&(Vc(n,t,vl),this.id===Cl&&Vc(n,t,Ml,yl)),n},inLeapYear(e){const[t]=this.h(e);return this.K(t)},monthsInYear(e){const[t]=this.h(e);return this.L(t)},daysInMonth(e){const[t,n]=this.h(e);return this.j(t,n)},daysInYear(e){const[t]=this.h(e);return this.X(t)},dayOfYear:Tc,era(e){return this.ee(e)[0]},eraYear(e){return this.ee(e)[1]},monthCode(e){const[t,n]=this.h(e),[r,o]=this.I(t,n);return((e,t)=>"M"+Xh(e)+(t?"L":""))(r,o)},dayOfWeek:ha,daysInWeek:()=>7},Nd={dayOfYear:Tc,h:ia,q:ta},Hd=Object.assign({},Nd,{weekOfYear:Ac,yearOfWeek:bc,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=ua(f+e),r=e||1,o=t(ui(u+n*r,7));return h=(n+(o-c)*r)/7}const r=this.id?1:4,o=ha(e),i=this.dayOfYear(e),a=ui(o-1,7),s=i-1,u=ui(a-s,7),c=t(u);let h,l=Math.floor((s-c)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),Cd={dayOfYear:Tc,h:fc,q:dc,weekOfYear:Ac,yearOfWeek:bc,R:()=>[]},Dd=Xc(Object.assign({},Od,Hd,{h:ia,ee(e){return this.id===Hl?la(e):this.id===Cl?df(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[hf,e]},K:ca,U(){},L:aa,J:e=>e*lf,j:sa,X:ua,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:ta,_:(e,t,n)=>(e+=hi(n,lf),(t+=li(n,lf))<1?(e--,t+=lf):t>lf&&(e++,t-=lf),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},Od,Cd,{h:fc,ee(e){const t=this.O(e);return[t.era,t.eraYear]},I(e,t){const n=gc.call(this,e);return[Ec(t,n),n===t]},N(e,t,n){let[r,o,i]=fc.call(this,{isoYear:hf,isoMonth:lf,isoDay:31});const a=gc.call(this,r),s=o===a;1===(ii(e,Ec(o,a))||ii(Number(t),Number(s))||ii(n,i))&&r--;for(let o=0;o<100;o++){const i=r-o,a=gc.call(this,i),s=Mc(e,t,a);if(t===(s===a)&&n<=yc.call(this,i,s))return[i,s]}},K(e){const t=mc.call(this,e);return t>mc.call(this,e-1)&&t>mc.call(this,e+1)},U:gc,L:vc,J(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let i=0;for(let e=t;e!==n;e+=r)i+=vc.call(this,e+o);return i},j:yc,X:mc,P(e,t,n){return oa(dc.call(this,e,t,n))},q:dc,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Fh);if(n<0)for(;t<1;)t+=vc.call(this,--e);else{let n;for(;t>(n=vc.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.O(e).year},month(e){const{year:t,F:n}=this.O(e),{C:r}=this.B(t);return r[n]+1},day(e){return this.O(e).day}})),_d="numeric",kd=["timeZoneName"],Ld={month:_d,day:_d},Rd={year:_d,month:_d},Yd=Object.assign({},Rd,{day:_d}),Pd={hour:_d,minute:_d,second:_d},jd=Object.assign({},Yd,Pd),Bd=Object.assign({},jd,{timeZoneName:"short"}),Fd=Object.keys(Rd),Ud=Object.keys(Ld),xd=Object.keys(Yd),Zd=Object.keys(Pd),$d=["dateStyle"],Vd=Fd.concat($d),zd=Ud.concat($d),Kd=xd.concat($d,["weekday"]),Jd=Zd.concat(["dayPeriod","timeStyle"]),Gd=Kd.concat(Jd),Wd=Gd.concat(kd),qd=kd.concat(Jd),Xd=kd.concat(Kd),Qd=kd.concat(["day","weekday"],Jd),eg=kd.concat(["year","weekday"],Jd),tg={},ng=[Qc(Gd,jd),Va],rg=[Qc(Wd,Bd),Va,0,(e,t)=>{const n=Ka(e.timeZone);if(t&&Ka(t.timeZone)!==n)throw new RangeError(Lh);return n}],og=[Qc(Gd,jd,kd),qi],ig=[Qc(Kd,Yd,qd),qi],ag=[Qc(Jd,Pd,Xd),e=>Ki(e)/ol],sg=[Qc(Vd,Rd,Qd),qi,1],ug=[Qc(zd,Ld,eg),qi,1];let cg;function hg(e,t,n,r,o){function i(){if(!(this instanceof i))throw new TypeError(wh);im(this,t(...arguments))}function a(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)}),xo(t))}function s(t){const n=om(t);if(!n||n.branding!==e)throw new TypeError(wh);return n}return Object.defineProperties(i.prototype,{...$o(Ko(a,n)),...Zo(Ko(a,r)),...Vo("Temporal."+e)}),Object.defineProperties(i,{...Zo(o),...xo(e)}),[i,e=>{const t=Object.create(i.prototype);return im(t,e),t},s]}function lg(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 fg(e){if(om(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function dg(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{o:o}=e;const i=om(n)||{},{branding:a}=i,s=a===Bf||t.includes(a)?i:Hg(n);return o[r](s)};return n}function gg(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Dd(r):(o=r,Object.assign(Object.create(lm),{i:o})))[n](e);var r,o};return t}function mg(){throw new TypeError("Cannot use valueOf")}function yg(e){let{calendar:t}=e;return"string"==typeof t?new cy(t):t}function vg(e,t){if(t=_a(t),Fo(e)){const n=om(e);if(n&&n.branding===jf)return pa(t),n;const r=Rg(e);return Lc(qm(r||Nl),!r,e,t)}const n=function(e,t){const n=Eu(kl(t));if(n)return Su(n),xa(ga(n));const r=pu(t),{calendar:o}=r,i=e(o),[a,s,u]=i.h(r),[c,h]=i.I(a,s),[l,f]=i.N(c,h,u);return xa($i(i.P(l,f,u)),o)}(Dd,e);return pa(t),n}function pg(e,t,n){return js(vi(t.call(e,bm(Pa(n)))))}function Sg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sm;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=ti(t[o],e,Yl(e[o]));return r}function wg(e,t){return"string"==typeof e?Qf(e):Sg(e,t)}function Ag(e){return wg(e,wm)}function bg(e){if(Fo(e)){const t=om(e);if(t)switch(t.branding){case Zf:return t;case xf:return Pa(t.epochNanoseconds)}}return function(e){const t=Iu(e=Mi(e));if(!t)throw new RangeError(Kh(e));let n;if(t.m)n=0;else{if(!t.offset)throw new RangeError(Kh(e));n=vu(t.offset)}return t.timeZone&&Ou(t.timeZone,1),Pa(Qi(da(t),n))}(e)}function Tg(e,t,n){const r=t.l(bg(n).epochNanoseconds,e);return r?bm(Pa(r)):null}function Ig(e){return Fo(e)?(om(e)||{}).timeZone||Em(e):(e=>Ru(function(e){const t=Iu(e);return t&&(t.timeZone||t.m&&zf||t.offset)||e}(kl(e))))(e)}function Mg(e,t){if(Fo(e)){const n=om(e)||{};switch(n.branding){case Uf:return pa(t),n;case Ff:return pa(t),Za(n);case xf:return pa(t),Gc(Ag,n)}return function(e,t){const n=pa(t);return Za(Pc(Yc(e,ll,[],1),n))}(e,t)}return pa(t),function(e){let t,n=(e=>{const t=dd.exec(e);return t?(Cu(t[10]),Hu(t)):void 0})(kl(e));if(!n){if(n=Iu(e),!n)throw new RangeError(Kh(e));if(!n.p)throw new RangeError(Kh(e));if(n.m)throw new RangeError(Jh("Z"));Su(n)}if((t=Mu(e))&&ma(t))throw new RangeError(Kh(e));if((t=Eu(e))&&ma(t))throw new RangeError(Kh(e));return Za(va(n,1))}(e)}function Eg(e){return void 0===e?void 0:Mg(e)}function Og(e,t){if(t=_a(t),Fo(e)){const n=om(e);return n&&n.branding===Pf?(pa(t),n):kc(Gm(Lg(e)),e,t)}const n=function(e,t){const n=Mu(kl(t));if(n)return Su(n),Ua(Zi(ga(n)));const r=pu(t);return Ua(Gs(e(r.calendar),r))}(Dd,e);return pa(t),n}function Ng(e,t){if(t=_a(t),Fo(e)){const n=om(e)||{};switch(n.branding){case Ff:return pa(t),n;case Bf:return pa(t),Ba({...n,...Xl});case xf:return pa(t),Kc(Ag,n)}return function(e,t,n){const r=Rc(e,t,Il,[],hl),o=pa(n);return Ba(Vi({...e.dateFromFields(r,ka(n,o)),...Pc(r,o)}))}(Wm(Lg(e)),e,t)}const n=function(e){const t=Iu(kl(e));if(!t||t.m)throw new RangeError(Kh(e));return Ba(Au(t))}(e);return pa(t),n}function Hg(e,t){if(t=_a(t),Fo(e)){const n=om(e)||{};switch(n.branding){case Bf:return pa(t),n;case Ff:return pa(t),Fa(n);case xf:return pa(t),Jc(Ag,n)}return _c(Wm(Lg(e)),e,t)}const n=pu(e);return pa(t),n}function Cg(e,t,n){return yi(t.call(e,Rm(Fa(n,e))))}function Dg(e){return t=>"string"==typeof t?Dd(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=ti(t[o],e,e[o]);return r})(t,e)}function _g(e){if(Fo(e)){const t=om(e);return t&&t.branding===$f?t:function(e){const t=Yc(e,jl);return $a(uu({...Zl,...t}))}(e)}return function(e){const t=(e=>{const t=yd.exec(e);return t?(e=>{function t(e,t,i){let a=0,s=0;if(i&&([a,o]=si(o,cl[i])),void 0!==e){if(r)throw new RangeError(Jh(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Jh(e));return t})(e),n=1,t&&(o=Du(t)*(cl[i]/il),r=1)}return a+s}let n=0,r=0,o=0,i={...zo(Pl,[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)]),...gi(o,2,Pl)};if(!n)throw new RangeError(ph(Pl));return ku(e[1])<0&&(i=au(i)),i})(t):void 0})(kl(e));if(!t)throw new RangeError(Kh(e));return $a(uu(t))}(e)}function kg(e){if(void 0!==e){if(Fo(e)){const t=om(e)||{};switch(t.branding){case xf:case Bf:return t;case Ff:return Fa(t)}const n=Lg(e);return{...Dc(Ig,wg,Wm(n),e),calendar:n}}return function(e){const t=Iu(kl(e));if(!t)throw new RangeError(Kh(e));if(t.timeZone)return wu(t,t.offset?vu(t.offset):void 0);if(t.m)throw new RangeError(Kh(e));return bu(t)}(e)}}function Lg(e){return Rg(e)||Nl}function Rg(e){const{calendar:t}=e;if(void 0!==t)return Yg(t)}function Yg(e){return Fo(e)?(om(e)||{}).calendar||hy(e):(e=>Sc(function(e){const t=Iu(e)||Mu(e)||Eu(e);return t?t.calendar:e}(kl(e))))(e)}function Pg(e,t){if(t=_a(t),Fo(e)){const n=om(e);if(n&&n.branding===xf)return Sa(t),n;const r=Lg(e);return function(e,t,n,r,o,i){const a=Rc(n,o,Il,dl,ml),s=e(a.timeZone),[u,c,h]=Sa(i),l=n.dateFromFields(a,ka(i,u)),f=Pc(a,u);return ja(Ys(t(s),{...l,...f},void 0!==a.offset?vu(a.offset):void 0,c,h),s,r)}(Ig,wg,Wm(r),r,e,t)}return function(e,t){const n=Iu(kl(e));if(!n||!n.timeZone)throw new RangeError(Kh(e));const{offset:r}=n,o=r?vu(r):void 0,[,i,a]=Sa(t);return wu(n,o,i,a)}(e,t)}function jg(e){return Ko((e=>t=>e(Bg(t))),e)}function Bg(e){return qf(e,Ag)}function Fg(){const e=ef.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(ef),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);yy.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new ef(e,t),r=n.resolvedOptions(),o=r.locale,i=Wo(Object.keys(t),r),a=Uo(Zg),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const u=r.map(((t,n)=>{const r=om(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?a(e)(o,i,...u):[n,...r]};return s.u=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Ug(e);"function"==typeof n.value?n.value="constructor"===e?r:o||xg(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Ug(e){return function(){const t=yy.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function xg(e){return function(){return yy.get(this).u[e](...arguments)}}function Zg(e){const t=$g[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return eh(t,Uo(th))}const $g={Instant:ng,PlainDateTime:og,PlainDate:ig,PlainTime:ag,PlainYearMonth:sg,PlainMonthDay:ug},Vg=eh(ng),zg=eh(rg),Kg=eh(og),Jg=eh(ig),Gg=eh(ag),Wg=eh(sg),qg=eh(ug),Xg={era:function(e){if(void 0!==e)return kl(e)},eraYear:mi,year:vi,month:yi,daysInMonth:yi,daysInYear:yi,inLeapYear:Ll,monthsInYear:yi},Qg={monthCode:kl},em={day:yi},tm={dayOfWeek:yi,dayOfYear:yi,weekOfYear:function(e){if(void 0!==e)return yi(e)},yearOfWeek:mi,daysInWeek:yi},nm=Object.assign({},Xg,Qg,em,tm),rm=new WeakMap,om=rm.get.bind(rm),im=rm.set.bind(rm),am={...dg(Xg,[Pf]),...dg(tm,[]),...dg(Qg,[Pf,jf]),...dg(em,[jf])},sm=gg(nm),um=gg({...Xg,...Qg}),cm=gg({...Qg,...em}),hm={calendarId:e=>Ka(e.calendar)},lm=Ko(((e,t)=>function(n){const{i:r}=this;return e(r[t](Rm(Fa(n,r))))}),nm),fm=Jo((e=>t=>t[e]),Pl.concat("sign")),dm=Jo(((e,t)=>e=>e[zl[t]]),hl),gm={epochSeconds:function(e){return Gi(e.epochNanoseconds)},epochMilliseconds:Va,epochMicroseconds:function(e){return Bi(e.epochNanoseconds,rl)},epochNanoseconds:function(e){return Bi(e.epochNanoseconds)}},mm=ti(qo,new Set(["branding"])),[ym,vm,pm]=hg(jf,ti((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:hf;const i=Ni(t),a=Ni(n),s=e(r);return xa($i(ga({isoYear:Ni(o),isoMonth:i,isoDay:a})),s)}),Yg),{...hm,...cm},{getISOFields:mm,getCalendar:yg,with(e,t,n){return vm(function(e,t,n,r,o){const i=_a(o);return((e,t,n,r)=>{const o=jc(e,t,n,Il);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,i)}(ey,e,this,fg(t),n))},equals:(e,t)=>function(e,t){return!Uu(e,t)&&Ja(e.calendar,t.calendar)}(e,vg(t)),toPlainDate(e,t){return Rm(function(e,t,n,r){return((e,t,n)=>Uc(e,t,El,wi(n),pl))(e(t.calendar),n,r)}(Qm,e,this,t))},toLocaleString(e,t,n){const[r,o]=qg(t,n,e);return r.format(o)},toString:Ss,toJSON:e=>Ss(e),valueOf:mg},{from:(e,t)=>vm(vg(e,t))}),Sm={getOffsetNanosecondsFor:pg,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,km(Ba(n,Nl)))].map((e=>Tm(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Ri),Bs(Fi(Li(r[0],r[o-1])))),r}},wm={getOffsetNanosecondsFor:pg},[Am,bm,Tm]=hg(Zf,(function(e){return Pa(zi(Pi(Ei(e))))}),gm,{add:(e,t)=>bm(Fs(0,e,_g(t))),subtract:(e,t)=>bm(Fs(1,e,_g(t))),until:(e,t,n)=>ay($u(0,e,bg(t),n)),since:(e,t,n)=>ay($u(1,e,bg(t),n)),round:(e,t)=>bm(function(e,t){const[n,r,o]=ba(t,5,1);return Pa(ss(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!ju(e,t)}(e,bg(t)),toZonedDateTime(e,t){const n=wi(t);return fy(zc(e,Ig(n.timeZone),Yg(n.calendar)))},toZonedDateTimeISO:(e,t)=>fy(zc(e,Ig(t))),toLocaleString(e,t,n){const[r,o]=Vg(t,n,e);return r.format(o)},toString:(e,t)=>gs(Ig,Ag,e,t),toJSON:e=>gs(Ig,Ag,e),valueOf:mg},{from:e=>bm(bg(e)),fromEpochSeconds:e=>bm(function(e){return Pa(zi(ji(e,il)))}(e)),fromEpochMilliseconds:e=>bm(function(e){return Pa(zi(ji(e,ol)))}(e)),fromEpochMicroseconds:e=>bm(function(e){return Pa(zi(Pi(Ei(e),rl)))}(e)),fromEpochNanoseconds:e=>bm(function(e){return Pa(zi(Pi(Ei(e))))}(e)),compare:(e,t)=>ju(bg(e),bg(t))}),[Im,Mm]=hg("TimeZone",(e=>{const t=function(e){return Ru(kl(e))}(e);return{branding:"TimeZone",id:t,o:Qf(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{o:n}=e;return n.getPossibleInstantsFor(Ng(t)).map((e=>bm(Pa(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(bg(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=bg(t).epochNanoseconds;return Hs(Sg(this,wm).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nl;const r=bg(t).epochNanoseconds,o=Sg(this,wm).getOffsetNanosecondsFor(r);return km(Ba(ra(r,o),Yg(n)))},getInstantFor(e,t,n){const r=Ng(t),o=wa(n),i=Sg(this);return bm(Pa(Ps(i,r,o)))},getNextTransition:(e,t)=>{let{o:n}=e;return Tg(1,n,t)},getPreviousTransition:(e,t)=>{let{o:n}=e;return Tg(-1,n,t)},equals(e,t){return!!Zu(this,Ig(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=Ig(e);return"string"==typeof t?new Im(t):t}}),Em=lg(Object.keys(Sm)),[Om,Nm]=hg(Uf,(function(){return Za(va(Ko(Ni,zo(zl,[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))}),dm,{getISOFields:mm,with(e,t,n){return Nm(function(e,t,n){return Za(((e,t,n)=>{const r=pa(n);return Pc({...Wo(ll,e),...Yc(t,ll)},r)})(e,t,n))}(this,fg(t),n))},add:(e,t)=>Nm(Vs(0,e,_g(t))),subtract:(e,t)=>Nm(Vs(1,e,_g(t))),until:(e,t,n)=>ay(Wu(0,e,Mg(t),n)),since:(e,t,n)=>ay(Wu(1,e,Mg(t),n)),round:(e,t)=>Nm(function(e,t){const[n,r,o]=ba(t,5);var i;return Za((i=o,es(e,ns(n,r),i)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!xu(e,t)}(e,Mg(t)),toZonedDateTime:(e,t)=>fy(function(e,t,n,r,o){const i=wi(o),a=t(i.plainDate),s=e(i.timeZone);return ja(Ps(n(s),{...a,...r}),s,a.calendar)}(Ig,Hg,wg,e,t)),toPlainDateTime:(e,t)=>km(function(e,t){return Ba(Vi({...e,...t}))}(e,Hg(t))),toLocaleString(e,t,n){const[r,o]=Gg(t,n,e);return r.format(o)},toString:ws,toJSON:e=>ws(e),valueOf:mg},{from:(e,t)=>Nm(Mg(e,t)),compare:(e,t)=>xu(Mg(e),Mg(t))}),[Hm,Cm,Dm]=hg(Pf,ti((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const i=Ni(t),a=Ni(n),s=e(r);return Ua(Zi(ga({isoYear:i,isoMonth:a,isoDay:Ni(o)})),s)}),Yg),{...hm,...um},{getISOFields:mm,getCalendar:yg,with(e,t,n){return Cm(function(e,t,n,r,o){const i=_a(o);return Ua(((e,t,n,r)=>{const o=jc(e,t,n,bl);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,i))}(Xm,e,this,fg(t),n))},add:(e,t,n)=>Cm($s(ry,0,e,_g(t),n)),subtract:(e,t,n)=>Cm($s(ry,1,e,_g(t),n)),until:(e,t,n)=>ay(Ju(oy,0,e,Og(t),n)),since:(e,t,n)=>ay(Ju(oy,1,e,Og(t),n)),equals:(e,t)=>function(e,t){return!Uu(e,t)&&Ja(e.calendar,t.calendar)}(e,Og(t)),toPlainDate(e,t){return Rm(function(e,t,n,r){return((e,t,n)=>Uc(e,t,Tl,wi(n),Al))(e(t.calendar),n,r)}(Qm,e,this,t))},toLocaleString(e,t,n){const[r,o]=Wg(t,n,e);return r.format(o)},toString:ps,toJSON:e=>ps(e),valueOf:mg},{from:(e,t)=>Cm(Og(e,t)),compare:(e,t)=>Uu(Og(e),Og(t))}),[_m,km]=hg(Ff,ti((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Nl;return Ba(Vi(da(Ko(Ni,zo(Jl,[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))}),Yg),{...hm,...sm,...dm},{getISOFields:mm,getCalendar:yg,with(e,t,n){return km(function(e,t,n,r,o){const i=_a(o);return Ba(((e,t,n,r)=>{const o=jc(e,t,n,Il,hl),i=pa(r);return Vi({...e.dateFromFields(o,ka(r,i)),...Pc(o,i)})})(e(t.calendar),n,r,i))}(Qm,e,this,fg(t),n))},withCalendar:(e,t)=>km(Wc(e,Yg(t))),withPlainDate:(e,t)=>km(function(e,t){return Ba({...e,...t},qc(e.calendar,t.calendar))}(e,Hg(t))),withPlainTime:(e,t)=>km(function(e){return Ba({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xl})}(e,Eg(t))),add:(e,t,n)=>km(xs(ty,0,e,_g(t),n)),subtract:(e,t,n)=>km(xs(ty,1,e,_g(t),n)),until:(e,t,n)=>ay(zu(ny,0,e,Ng(t),n)),since:(e,t,n)=>ay(zu(ny,1,e,Ng(t),n)),round:(e,t)=>km(function(e,t){return Ba(Xa(e,...ba(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Fu(e,t)&&Ja(e.calendar,t.calendar)}(e,Ng(t)),toZonedDateTime:(e,t,n)=>fy(function(e,t,n,r){const o=((e,t,n,r)=>{const o=wa(r);return Ps(e(t),n,o)})(e,n,t,r);return ja(zi(o),n,t.calendar)}(wg,e,Ig(t),n)),toPlainDate:e=>Rm(Fa(e)),toPlainTime:e=>Nm(Za(e)),toPlainYearMonth(e){return Cm(function(e,t,n){const r=e(t.calendar);return Ua({...t,...Fc(r,n)})}(Gm,e,this))},toPlainMonthDay(e){return vm(function(e,t,n){return Bc(e(t.calendar),n)}(qm,e,this))},toLocaleString(e,t,n){const[r,o]=Kg(t,n,e);return r.format(o)},toString:ys,toJSON:e=>ys(e),valueOf:mg},{from:(e,t)=>km(Ng(e,t)),compare:(e,t)=>Fu(Ng(e),Ng(t))}),[Lm,Rm,Ym]=hg(Bf,ti((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Nl;return Fa($i(ga(Ko(Ni,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Yg),{...hm,...sm},{getISOFields:mm,getCalendar:yg,with(e,t,n){return Rm(function(e,t,n,r,o){const i=_a(o);return((e,t,n,r)=>{const o=jc(e,t,n,Il);return e.dateFromFields(o,r)})(e(t.calendar),n,r,i)}(Qm,e,this,fg(t),n))},withCalendar:(e,t)=>Rm(Wc(e,Yg(t))),add:(e,t,n)=>Rm(Zs(ty,0,e,_g(t),n)),subtract:(e,t,n)=>Rm(Zs(ty,1,e,_g(t),n)),until:(e,t,n)=>ay(Ku(ny,0,e,Hg(t),n)),since:(e,t,n)=>ay(Ku(ny,1,e,Hg(t),n)),equals:(e,t)=>function(e,t){return!Uu(e,t)&&Ja(e.calendar,t.calendar)}(e,Hg(t)),toZonedDateTime(e,t){const n=!Fo(t)||t instanceof Im?{timeZone:t}:t;return fy(function(e,t,n,r,o){const i=e(o.timeZone),a=o.plainTime,s=void 0!==a?t(a):Xl;return ja(Ps(n(i),{...r,...s}),i,r.calendar)}(Ig,Mg,wg,e,n))},toPlainDateTime:(e,t)=>km(function(e){return Ba(Vi({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xl}))}(e,Eg(t))),toPlainYearMonth(e){return Cm(function(e,t,n){return Fc(e(t.calendar),n)}(Gm,e,this))},toPlainMonthDay(e){return vm(function(e,t,n){return Bc(e(t.calendar),n)}(qm,e,this))},toLocaleString(e,t,n){const[r,o]=Jg(t,n,e);return r.format(o)},toString:vs,toJSON:e=>vs(e),valueOf:mg},{from:(e,t)=>Rm(Hg(e,t)),compare:(e,t)=>Uu(Hg(e),Hg(t))}),Pm={fields:(e,t,n)=>[...t.call(e,n)]},jm=Object.assign({dateFromFields:(e,t,n,r)=>Ym(t.call(e,Object.assign(Object.create(null),n),r))},Pm),Bm=Object.assign({yearMonthFromFields:(e,t,n,r)=>Dm(t.call(e,Object.assign(Object.create(null),n),r))},Pm),Fm=Object.assign({monthDayFromFields:(e,t,n,r)=>pm(t.call(e,Object.assign(Object.create(null),n),r))},Pm),Um={mergeFields:(e,t,n,r)=>wi(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},xm=Object.assign({},jm,Um),Zm=Object.assign({},Bm,Um),$m=Object.assign({},Fm,Um),Vm={dateAdd:(e,t,n,r,o)=>Ym(t.call(e,Rm(Fa(n,e)),ay($a(r)),o))},zm=Object.assign({},Vm,{dateUntil:(e,t,n,r,o,i)=>sy(t.call(e,Rm(Fa(n,e)),Rm(Fa(r,e)),Object.assign(Object.create(null),i,{largestUnit:el[o]})))}),Km=Object.assign({},Vm,{day:Cg}),Jm=Object.assign({},zm,{day:Cg}),Gm=Dg(Bm),Wm=Dg(jm),qm=Dg(Fm),Xm=Dg(Zm),Qm=Dg(xm),ey=Dg($m),ty=Dg(Vm),ny=Dg(zm),ry=Dg(Km),oy=Dg(Jm),[iy,ay,sy]=hg($f,(function(){return $a(uu(Ko(Hi,zo(Pl,[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]))))}),{...fm,blank:function(e){return!e.sign}},{with:(e,t)=>ay(function(e,t){return $a((n=e,r=t,uu({...n,...Yc(r,jl)})));var n,r}(e,t)),negated:e=>ay(iu(e)),abs:e=>ay(function(e){return-1===e.sign?iu(e):e}(e)),add:(e,t,n)=>ay(ou(kg,ny,wg,0,e,_g(t),n)),subtract:(e,t,n)=>ay(ou(kg,ny,wg,1,e,_g(t),n)),round:(e,t)=>ay(function(e,t,n,r,o){const i=gu(r),[a,s,u,c,h]=((e,t,n)=>{e=Da(e,gf);let r=Nf(e);const o=n(e[pf]);let i=Oa(e);const a=Yf(e,7);let s=Of(e);if(void 0===r&&void 0===s)throw new RangeError(Vh);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ya(r,s),i=Na(i,s,1),[r,s,i,a,o]})(o,i,e),l=Math.max(i,a);if(!nu(h)&&l<=6)return $a(uu(((e,t,n,r,o)=>{const i=ss(hu(e),n,r,o);return{...Zl,...lu(i,t)}})(r,a,s,u,c)));if(!h)throw new RangeError(Zh);const[f,d,g]=Xs(t,n,h),m=Qs(g),y=eu(g),v=tu(g),p=y(d,f,r);let S=v(d,f,p,a);const w=r.sign,A=su(S);if(w&&A&&w!==A)throw new RangeError(Dh);return A&&(S=as(S,m(p),a,s,u,c,d,f,m,y)),$a(S)}(kg,ny,wg,e,t)),total:(e,t)=>function(e,t,n,r,o){const i=gu(r),[a,s]=((e,t)=>{const n=t((e=Da(e,mf))[pf]);let r=Hf(e);return r=Si(mf,r),[r,n]})(o,e);if(ru(Math.max(a,i),s))return Ga(r,a);if(!s)throw new RangeError(Zh);const[u,c,h]=Xs(t,n,s),l=Qs(h),f=eu(h),d=tu(h),g=f(c,u,r),m=d(c,u,g,a);return ru(a,s)?Ga(m,a):((e,t,n,r,o,i,a)=>{const s=su(e),[u,c]=Wa(r,Vl(n,e),n,s,o,i,a),h=qa(t,u,c);return e[Pl[n]]+h*s})(m,l(g),a,c,u,l,f)}(kg,ny,wg,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):As(e)},toString:As,toJSON:e=>As(e),valueOf:mg},{from:e=>ay(_g(e)),compare:(e,t,n)=>function(e,t,n,r,o,i){const a=e(Ca(i).relativeTo),s=Math.max(gu(r),gu(o));if(Qo(Pl,r,o))return 0;if(ru(s,a))return Ri(hu(r),hu(o));if(!a)throw new RangeError(Zh);const[u,c,h]=Xs(t,n,a),l=Qs(h),f=eu(h);return Ri(l(f(c,u,r)),l(f(c,u,o)))}(kg,ty,wg,_g(e),_g(t),n)}),uy={toString:e=>e.id,toJSON:e=>e.id,...am,dateAdd:(e,t,n,r)=>{let{id:o,o:i}=e;return Rm(Fa(i.dateAdd(Hg(t),_g(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return ay($a(o.dateUntil(Hg(t),Hg(n),function(e){return e=Ca(e),Nf(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Rm(_c(o,t,n,function(e){return e===Nl?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Cm(kc(o,t,n,function(e){return e===Nl?pl:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return vm(Lc(o,0,t,n,function(e){return e===Nl?Al:[]}(r)))},fields(e,t){let{o:n}=e;const r=new Set(Il),o=[];for(const e of t){if(kl(e),!r.has(e))throw new RangeError(yh(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(Xo(pi(t)),Xo(pi(n)))}},[cy]=hg("Calendar",(e=>{const t=function(e){return Sc(kl(e))}(e);return{branding:"Calendar",id:t,o:Dd(t)}}),{id:e=>e.id},uy,{from(e){const t=Yg(e);return"string"==typeof t?new cy(t):t}}),hy=lg(Object.keys(uy).slice(4)),[ly,fy]=hg(xf,ti((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Nl;return ja(zi(Pi(Ei(n))),t(r),e(o))}),Yg,Ig),{...gm,...hm,...jg(sm),...jg(dm),offset:e=>Hs(Bg(e).offsetNanoseconds),offsetNanoseconds:e=>Bg(e).offsetNanoseconds,timeZoneId:e=>Ka(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=qf(t,n),[o,i]=rs(r),a=Fi(Li(Ps(n,o),Ps(n,i)),sl,1);if(a<=0)throw new RangeError(Dh);return a}(wg,e)},{getISOFields:e=>function(e,t){const n=qf(t,e);return{calendar:t.calendar,...Wo(ql,n),offset:Hs(n.offsetNanoseconds),timeZone:t.timeZone}}(Ag,e),getCalendar:yg,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new Im(t):t},with(e,t,n){return fy(function(e,t,n,r,o,i){const a=_a(i),{calendar:s,timeZone:u}=n;return ja(((e,t,n,r,o)=>{const i=jc(e,n,r,Il,gl,fl),[a,s,u]=Sa(o,2);return Ys(t,{...e.dateFromFields(i,ka(o,a)),...Pc(i,a)},vu(i.offset),s,u)})(e(s),t(u),r,o,a),u,s)}(Qm,wg,e,this,fg(t),n))},withCalendar:(e,t)=>fy(Wc(e,Yg(t))),withTimeZone:(e,t)=>fy(function(e,t){return{...e,timeZone:t}}(e,Ig(t))),withPlainDate:(e,t)=>fy(function(e,t,n){const r=t.timeZone,o=e(r),i={...qf(t,o),...n},a=qc(t.calendar,n.calendar);return ja(Ys(o,i,i.offsetNanoseconds,2),r,a)}(wg,e,Hg(t))),withPlainTime:(e,t)=>fy(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xl;const r=t.timeZone,o=e(r),i={...qf(t,o),...n};return ja(Ys(o,i,i.offsetNanoseconds,2),r,t.calendar)}(wg,e,Eg(t))),add:(e,t,n)=>fy(Us(ty,wg,0,e,_g(t),n)),subtract:(e,t,n)=>fy(Us(ty,wg,1,e,_g(t),n)),until:(e,t,n)=>ay($a(Vu(ny,wg,0,e,Pg(t),n))),since:(e,t,n)=>ay($a(Vu(ny,wg,1,e,Pg(t),n))),round:(e,t)=>fy(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:i}=t;const[a,s,u]=ba(n);if(0===a&&1===s)return t;const c=e(o);if(6===a)r=((e,t,n,r)=>{const o=qf(n,t),[i,a]=e(o),s=n.epochNanoseconds,u=Ps(t,i),c=Ps(t,a);if(Yi(s,u,c))throw new RangeError(Dh);return hs(qa(s,u,c),r)?c:u})(rs,c,t,u);else{const e=c.getOffsetNanosecondsFor(r);r=Ys(c,Xa(ra(r,e),a,s,u),e,2,0,1)}return ja(r,o,i)}(wg,e,t)),startOfDay:e=>fy(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Ps(t,e(qf(n,t))))(os,e(n),t);return ja(o,n,r)}(wg,e)),equals:(e,t)=>function(e,t){return!Bu(e,t)&&!!Zu(e.timeZone,t.timeZone)&&Ja(e.calendar,t.calendar)}(e,Pg(t)),toInstant:e=>bm(function(e){return Pa(e.epochNanoseconds)}(e)),toPlainDateTime:e=>km(Kc(Ag,e)),toPlainDate:e=>Rm(Jc(Ag,e)),toPlainTime:e=>Nm(Gc(Ag,e)),toPlainYearMonth(e){return Cm(function(e,t,n){return Fc(e(t.calendar),n)}(Gm,e,this))},toPlainMonthDay(e){return vm(function(e,t,n){return Bc(e(t.calendar),n)}(qm,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=zg(t,n,e);return r.format(o)},toString:(e,t)=>ms(Ag,e,t),toJSON:e=>ms(Ag,e),valueOf:mg},{from:(e,t)=>fy(Pg(e,t)),compare:(e,t)=>Bu(Pg(e),Pg(t))}),dy=Object.defineProperties({},{...Vo("Temporal.Now"),...Zo({timeZoneId:()=>ih(),instant:()=>bm(Pa(oh())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ih();return fy(ja(oh(),Ig(t),Yg(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ih();return fy(ja(oh(),Ig(e),Nl))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ih();return km(Ba(rh(Ag(Ig(t))),Yg(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ih();return km(Ba(rh(Ag(Ig(e))),Nl))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ih();return Rm(Fa(rh(Ag(Ig(t))),Yg(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ih();return Rm(Fa(rh(Ag(Ig(e))),Nl))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ih();return Nm(Za(rh(Ag(Ig(e)))))}})}),gy=Object.defineProperties({},{...Vo("Temporal"),...Zo({PlainYearMonth:Hm,PlainMonthDay:ym,PlainDate:Lm,PlainTime:Om,PlainDateTime:_m,ZonedDateTime:ly,Instant:Am,Calendar:cy,TimeZone:Im,Duration:iy,Now:dy})}),my=Fg(),yy=new WeakMap;function vy(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.create(Intl),Zo({DateTimeFormat:my}),Object.defineProperties(globalThis,Zo({Temporal:gy})),Object.defineProperties(Intl,Zo({DateTimeFormat:my})),Object.defineProperties(Date.prototype,Zo({toTemporalInstant:function(){return bm(Pa(ji(this.valueOf(),ol)))}}));class py{constructor(e,t,n){const r=function(e){if(c(e))return e;if(Oe.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new $e(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return vy(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return vy(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return vy(this.noaa.getSeaLevelSunrise())}sunset(){return vy(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return vy(this.noaa.getSeaLevelSunset())}dawn(){return vy(this.noaa.getBeginCivilTwilight())}dusk(){return vy(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new py(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return vy(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 vy($e.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=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=se("UTC",t),r=se(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?"+":"-")+oe(Math.floor(r/60))+":"+oe(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":se(e,t).substring(0,19)+py.timeZoneOffset(e,t)}sunriseOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}sunsetOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}static makeSunsetAwareHDate(e,t,n){const r=new py(e,t,n).sunset();let o=new Oe(t);const i=r.getTime();return isNaN(i)||t.getTime()>=i&&(o=o.next()),o}}const Sy={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 wy(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=null==n?void 0:n.location)||void 0===r?void 0:r.getCountryCode())||((null==n?void 0:n.il)?"IL":"US"),i=null==n?void 0:n.hour12;if(void 0!==i&&!i)return e;if(!i&&void 0===Sy[o])return e;const a=e.split(":");let s=parseInt(a[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}:${a[1]}${t}`}class Ay extends je{constructor(e,t,n,r,o,i,a){super(e,t,n),this.eventTime=py.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=py.formatTime(this.eventTime,s);const u=Object.assign(Object.assign({},a),{location:o});this.fmtTime=wy(this.eventTimeStr,"pm",u),void 0!==i&&(this.linkedEvent=i)}render(e){return Se.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return Se.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"]}return["unknown"]}}class by extends Ay{constructor(e,t,n,r,o,i){super(e,"Candle lighting",t,n,r,o,i)}getEmoji(){return"🕯️"}}class Ty extends Ay{constructor(e,t,n,r,o,i,a){super(e,"Havdalah",t,n,r,i,a),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=Se.gettext(this.getDesc(),e);if(this.havdalahMins){const n=Se.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const Iy=d.NISAN,My=d.IYYAR,Ey=d.SIVAN,Oy=d.ELUL,Ny=d.TISHREI,Hy=d.CHESHVAN,Cy=d.KISLEV,Dy=d.SHVAT,_y=d.ADAR_II,ky=Ye.CHAG,Ly=Ye.LIGHT_CANDLES,Ry=Ye.YOM_TOV_ENDS,Yy=Ye.CHUL_ONLY,Py=Ye.IL_ONLY,jy=Ye.LIGHT_CANDLES_TZEIS,By=Ye.MINOR_HOLIDAY,Fy=Ye.EREV,Uy=Ye.CHOL_HAMOED,xy="🫓",Zy="🌿🍋",$y="Rosh Hashana II",Vy="Erev Yom Kippur",zy="Yom Kippur",Ky="Erev Sukkot",Jy="Sukkot I",Gy="Sukkot II",Wy="Sukkot III (CH''M)",qy="Sukkot IV (CH''M)",Xy="Sukkot V (CH''M)",Qy="Sukkot VI (CH''M)",ev="Shmini Atzeret",tv="Simchat Torah",nv="Sukkot II (CH''M)",rv="Sukkot VII (Hoshana Raba)",ov="Chanukah: 1 Candle",iv="Tu BiShvat",av="Erev Purim",sv="Purim",uv="Shushan Purim",cv="Erev Pesach",hv="Pesach I",lv="Pesach II",fv="Pesach II (CH''M)",dv="Pesach III (CH''M)",gv="Pesach IV (CH''M)",mv="Pesach V (CH''M)",yv="Pesach VI (CH''M)",vv="Pesach VII",pv="Pesach VIII",Sv="Pesach Sheni",wv="Lag BaOmer",Av="Erev Shavuot",bv="Shavuot",Tv="Shavuot I",Iv="Shavuot II",Mv="Tu B'Av",Ev="Rosh Hashana LaBehemot",Ov="Erev Rosh Hashana",Nv="Yom Yerushalayim",Hv="Ben-Gurion Day",Cv="Family Day",Dv="Yitzhak Rabin Memorial Day",_v="Herzl Day",kv="Jabotinsky Day",Lv="Sigd",Rv="Yom HaAliyah",Yv="Yom HaAliyah School Observance",Pv="Hebrew Language Day",jv={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:Hv,CHANUKAH_1_CANDLE:ov,EREV_PESACH:cv,EREV_PURIM:av,EREV_ROSH_HASHANA:Ov,EREV_SHAVUOT:Av,EREV_SUKKOT:Ky,EREV_YOM_KIPPUR:Vy,FAMILY_DAY:Cv,HEBREW_LANGUAGE_DAY:Pv,HERZL_DAY:_v,JABOTINSKY_DAY:kv,LAG_BAOMER:wv,PESACH_I:hv,PESACH_II:lv,PESACH_III_CHM:dv,PESACH_II_CHM:fv,PESACH_IV_CHM:gv,PESACH_SHENI:Sv,PESACH_VII:vv,PESACH_VIII:pv,PESACH_VI_CHM:yv,PESACH_V_CHM:mv,PURIM:sv,ROSH_HASHANA_II:$y,ROSH_HASHANA_LABEHEMOT:Ev,SHAVUOT:bv,SHAVUOT_I:Tv,SHAVUOT_II:Iv,SHMINI_ATZERET:ev,SHUSHAN_PURIM:uv,SIGD:Lv,SIMCHAT_TORAH:tv,SUKKOT_I:Jy,SUKKOT_II:Gy,SUKKOT_III_CHM:Wy,SUKKOT_II_CHM:nv,SUKKOT_IV_CHM:qy,SUKKOT_VII_HOSHANA_RABA:rv,SUKKOT_VI_CHM:Qy,SUKKOT_V_CHM:Xy,TU_BAV:Mv,TU_BISHVAT:iv,YITZHAK_RABIN_MEMORIAL_DAY:Dv,YOM_HAALIYAH:Rv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Yv,YOM_KIPPUR:zy,YOM_YERUSHALAYIM:Nv},Bv=[{mm:Ny,dd:2,desc:$y,flags:ky|Ry,emoji:"🍏🍯"},{mm:Ny,dd:9,desc:Vy,flags:Fy|Ly},{mm:Ny,dd:10,desc:zy,flags:ky|Ye.MAJOR_FAST|Ry},{mm:Ny,dd:14,desc:Ky,flags:Yy|Fy|Ly,emoji:Zy},{mm:Ny,dd:15,desc:Jy,flags:Yy|ky|jy,emoji:Zy},{mm:Ny,dd:16,desc:Gy,flags:Yy|ky|Ry,emoji:Zy},{mm:Ny,dd:17,desc:Wy,flags:Yy|Uy,chmDay:1,emoji:Zy},{mm:Ny,dd:18,desc:qy,flags:Yy|Uy,chmDay:2,emoji:Zy},{mm:Ny,dd:19,desc:Xy,flags:Yy|Uy,chmDay:3,emoji:Zy},{mm:Ny,dd:20,desc:Qy,flags:Yy|Uy,chmDay:4,emoji:Zy},{mm:Ny,dd:22,desc:ev,flags:Yy|ky|jy},{mm:Ny,dd:23,desc:tv,flags:Yy|ky|Ry},{mm:Ny,dd:14,desc:Ky,flags:Py|Fy|Ly,emoji:Zy},{mm:Ny,dd:15,desc:Jy,flags:Py|ky|Ry,emoji:Zy},{mm:Ny,dd:16,desc:nv,flags:Py|Uy,chmDay:1,emoji:Zy},{mm:Ny,dd:17,desc:Wy,flags:Py|Uy,chmDay:2,emoji:Zy},{mm:Ny,dd:18,desc:qy,flags:Py|Uy,chmDay:3,emoji:Zy},{mm:Ny,dd:19,desc:Xy,flags:Py|Uy,chmDay:4,emoji:Zy},{mm:Ny,dd:20,desc:Qy,flags:Py|Uy,chmDay:5,emoji:Zy},{mm:Ny,dd:22,desc:ev,flags:Py|ky|Ry},{mm:Ny,dd:21,desc:rv,flags:Ly|Uy,chmDay:-1,emoji:Zy},{mm:Cy,dd:24,desc:ov,flags:Fy|By|Ye.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:Dy,dd:15,desc:iv,flags:By,emoji:"🌳"},{mm:_y,dd:13,desc:av,flags:Fy|By,emoji:"🎭️📜"},{mm:_y,dd:14,desc:sv,flags:By,emoji:"🎭️📜"},{mm:_y,dd:15,desc:uv,flags:By,emoji:"🎭️📜"},{mm:Iy,dd:14,desc:cv,flags:Py|Fy|Ly,emoji:"🫓🍷"},{mm:Iy,dd:15,desc:hv,flags:Py|ky|Ry,emoji:xy},{mm:Iy,dd:16,desc:fv,flags:Py|Uy,chmDay:1,emoji:xy},{mm:Iy,dd:17,desc:dv,flags:Py|Uy,chmDay:2,emoji:xy},{mm:Iy,dd:18,desc:gv,flags:Py|Uy,chmDay:3,emoji:xy},{mm:Iy,dd:19,desc:mv,flags:Py|Uy,chmDay:4,emoji:xy},{mm:Iy,dd:20,desc:yv,flags:Py|Uy|Ly,chmDay:5,emoji:xy},{mm:Iy,dd:21,desc:vv,flags:Py|ky|Ry,emoji:xy},{mm:Iy,dd:14,desc:cv,flags:Yy|Fy|Ly,emoji:"🫓🍷"},{mm:Iy,dd:15,desc:hv,flags:Yy|ky|jy,emoji:"🫓🍷"},{mm:Iy,dd:16,desc:lv,flags:Yy|ky|Ry,emoji:xy},{mm:Iy,dd:17,desc:dv,flags:Yy|Uy,chmDay:1,emoji:xy},{mm:Iy,dd:18,desc:gv,flags:Yy|Uy,chmDay:2,emoji:xy},{mm:Iy,dd:19,desc:mv,flags:Yy|Uy,chmDay:3,emoji:xy},{mm:Iy,dd:20,desc:yv,flags:Yy|Uy|Ly,chmDay:4,emoji:xy},{mm:Iy,dd:21,desc:vv,flags:Yy|ky|jy,emoji:xy},{mm:Iy,dd:22,desc:pv,flags:Yy|ky|Ry,emoji:xy},{mm:My,dd:14,desc:Sv,flags:By},{mm:My,dd:18,desc:wv,flags:By,emoji:"🔥"},{mm:Ey,dd:5,desc:Av,flags:Fy|Ly,emoji:"⛰️🌸"},{mm:Ey,dd:6,desc:bv,flags:Py|ky|Ry,emoji:"⛰️🌸"},{mm:Ey,dd:6,desc:Tv,flags:Yy|ky|jy,emoji:"⛰️🌸"},{mm:Ey,dd:7,desc:Iv,flags:Yy|ky|Ry,emoji:"⛰️🌸"},{mm:d.AV,dd:15,desc:Mv,flags:By,emoji:"❤️"},{mm:Oy,dd:1,desc:Ev,flags:By,emoji:"🐑"},{mm:Oy,dd:29,desc:Ov,flags:Fy|Ly,emoji:"🍏🍯"}],Fv=[{firstYear:5727,mm:My,dd:28,desc:Nv,chul:!0},{firstYear:5737,mm:Cy,dd:6,desc:Hv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Dy,dd:30,desc:Cv},{firstYear:5758,mm:Hy,dd:12,desc:Dv,friSatMovetoThu:!0},{firstYear:5764,mm:My,dd:10,desc:_v,satPostponeToSun:!0},{firstYear:5765,mm:d.TAMUZ,dd:29,desc:kv,satPostponeToSun:!0},{firstYear:5769,mm:Hy,dd:29,desc:Lv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Iy,dd:10,desc:Rv,chul:!0},{firstYear:5777,mm:Hy,dd:7,desc:Yv},{firstYear:5773,mm:d.TEVET,dd:21,desc:Pv,friSatMovetoThu:!0}];class Uv extends je{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()&Ye.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Ye.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case jv.LAG_BAOMER:case jv.LEIL_SELICHOT:case jv.PESACH_SHENI:case jv.EREV_PURIM:case jv.PURIM_KATAN:case jv.SHUSHAN_PURIM:case jv.TU_BAV:case jv.TU_BISHVAT:case jv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new Uv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class xv extends Uv{urlDateSuffix(){return ue(this.getDate().greg()).replace(/-/g,"")}}class Zv extends Uv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return Se.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const $v="Rosh Chodesh";class Vv extends Uv{constructor(e,t){super(e,`${$v} ${t}`,Ye.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=Se.gettext(t,e).replace(/'/g,"’");return Se.gettext($v,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const zv=Ye.LIGHT_CANDLES,Kv=Ye.LIGHT_CANDLES_TZEIS;function Jv(e,t,n,r,o){let i=!1,a=o,s=e?e.getFlags():zv;void 0!==e?r||(s&(Kv|Ye.CHANUKAH_CANDLES)?a=!0:s&Ye.YOM_TOV_ENDS&&(i=!0,a=!0)):o&&(i=!0,s=Kv);const u=a?n.havdalahMins:n.candleLightingMins,c=n.location,h=Boolean(n.useElevation),l=new py(c,t,h),f=u?l.sunsetOffset(u,!0):l.tzeit(n.havdalahDeg);if(!isNaN(f.getTime()))return i?new Ty(t,s,f,c,n.havdalahMins,e,n):(s|=zv,new by(t,s,f,c,e,n))}const Gv="Fast begins",Wv="Fast ends";class qv extends Uv{constructor(e,t,n,r,o){super(e,t,n),this.startEvent=r,this.endEvent=o}}function Xv(e,t,n,r){const o=r.location,i=e.getDate();return new Ay(i,n,e.getFlags(),t,o,e,r)}class Qv extends Uv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=py.roundTime(r);const i=o.getTimeFormatter();this.eventTimeStr=py.formatTime(this.eventTime,i),this.location=o}}const ep=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tp=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],np="בַּלַּ֥יְלָה";class rp{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=T(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(i/24))%7,hour:i%24,minutes:Math.floor(a/18),chalakim:a%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return Oe.getMonthName(this.m.month,this.m.year)}getDow(){return this.m.dayOfWeek}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}render(e,t){var n;"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=Se.gettext(this.getMonthName(),e),i=(r?tp:ep)[this.getDow()],a=this.getMinutes(),s=this.getHour(),u=this.getChalakim(),c=Se.gettext("Molad",e),h=null!==(n=Se.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=Se.gettext("chalakim",e);if(r){const t=function(e){return e<5?np:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":np}(s),n=`${c} ${o} יִהְיֶה בַּיּוֹם ${i} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${a} ${h} ו-${u} ${l}`;return"he-x-nonikud"===e?Se.hebrewStripNikkud(n):n}const f=wy(`${s}:00`,"pm",t);return`${c} ${o.replace(/'/g,"’")}: ${i}, ${a} ${h} and ${u} ${l} after ${f}`}}class op extends je{constructor(e,t,n,r){const o=new rp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Ye.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class ip extends je{constructor(e,t){if(super(e,`Omer ${t}`,Ye.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(e="en"){return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){V(e);const[n,r]=z(e),o=$[t],i=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+i).normalize()}(this.omer,e)}render(e){"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?x(n):Se.ordinal(n,e))+" "+Se.gettext("day of the Omer",e)}renderBrief(e){return Se.gettext("Omer",e)+" "+Se.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:function(e){let t;return V(e),t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}(this.omer)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=K(this.omer,t);return"he-x-nonikud"===e?Se.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}function ap(e,t){const n=null!=t?t:Se.getLocaleName();let r=Se.gettext(e[0],n);if(2===e.length){r+=("he"===n?"־":"-")+Se.gettext(e[1],n)}r=r.replace(/'/g,"’");return(Se.gettext("Parashat",t)+" "+r).normalize()}class sp extends Map{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.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=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.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}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 up{constructor(e,t){e=+e,this.year=e;const n=new Oe(1,d.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=Oe.dayOnOrBefore(6,r+6);const i=+Oe.isLeapYear(e);this.il=Boolean(t);const a=function(e){const t=Oe.longCheshvan(e),n=Oe.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${i}${o}${a}`;if(Cp[s]||(s+=+this.il),this.theSedraArray=Cp[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){return ap(this.get(e),t)}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=cp.length||e<0&&!fp(e))throw new RangeError(`Invalid parsha number: ${e}`);return this.findInternal(e)}if("string"==typeof e){const t=hp.get(e);return"number"==typeof t?this.find(t):-1!==e.indexOf("-")?e===vp||e===gp?this.findInternal(e):this.find(e.split("-")):this.findInternal(e)}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=hp.get(n),i=hp.get(r);if("number"!=typeof o||"number"!=typeof i||i!==o+1||!fp(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}findInternal(e){const t=this.theSedraArray.indexOf(e);return-1===t?null:new Oe(this.firstSaturday+7*t)}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return fp(t)?this.find(t):this.find(t+1)}{const t=hp.get(e);if(t){const e=-t;return fp(e)?this.find(e):this.find(e+1)}{const[t]=e.split("-");return this.find(t)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Oe.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Oe.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return _p(this.year+1,this.il).lookup(n)}const i=new Oe(n);if("string"==typeof o)return{parsha:[o],chag:!0,hdate:i};if(o>=0)return{parsha:[cp[o]],chag:!1,num:o+1,hdate:i};const a=dp(o);return{parsha:[cp[a],cp[a+1]],chag:!1,num:[a+1,a+2],hdate:i}}}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"],hp=new Map;for(let e=0;e<cp.length;e++){const t=cp[e];hp.set(t,e)}const lp=[21,26,28,31,38,41,50];function fp(e){return lp.includes(-e)}function dp(e){return-e}const gp="Sukkot Shabbat Chol ha-Moed",mp="Pesach",yp="Pesach I",vp="Pesach Shabbat Chol ha-Moed",pp="Pesach VII",Sp="Pesach VIII",wp="Shavuot";function Ap(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const bp=[51,52,gp],Tp=[52,"Yom Kippur",gp],Ip=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Mp=Ap(0,20),Ep=Ap(0,27),Op=Ap(33,40),Np=Ap(43,49),Hp=Ap(43,50),Cp={"020":bp.concat(Mp,dp(21),23,24,mp,25,dp(26),dp(28),30,dp(31),Op,dp(41),Np,dp(50)),"0220":bp.concat(Mp,dp(21),23,24,mp,25,dp(26),dp(28),30,dp(31),33,wp,Ap(34,37),dp(38),40,dp(41),Np,dp(50)),"0510":Tp.concat(Mp,dp(21),23,24,yp,Sp,25,dp(26),dp(28),30,dp(31),Op,dp(41),Hp),"0511":Tp.concat(Mp,dp(21),23,24,mp,25,dp(26),dp(28),Ap(30,40),dp(41),Hp),"052":Tp.concat(Ap(0,24),pp,25,dp(26),dp(28),30,dp(31),Op,dp(41),Hp),"070":Ip.concat(Mp,dp(21),23,24,pp,25,dp(26),dp(28),30,dp(31),Op,dp(41),Hp),"072":Ip.concat(Mp,dp(21),23,24,vp,25,dp(26),dp(28),30,dp(31),Op,dp(41),Np,dp(50)),1200:bp.concat(Ep,vp,Ap(28,33),wp,Ap(34,37),dp(38),40,dp(41),Np,dp(50)),1201:bp.concat(Ep,vp,Ap(28,40),dp(41),Np,dp(50)),1220:bp.concat(Ep,yp,Sp,Ap(28,40),dp(41),Hp),1221:bp.concat(Ep,mp,Ap(28,50)),150:Tp.concat(Ap(0,28),pp,Ap(29,50)),152:Tp.concat(Ap(0,28),vp,Ap(29,49),dp(50)),170:Ip.concat(Ep,vp,Ap(28,40),dp(41),Np,dp(50)),1720:Ip.concat(Ep,vp,Ap(28,33),wp,Ap(34,37),dp(38),40,dp(41),Np,dp(50))};Cp["0221"]=Cp["020"],Cp["0310"]=Cp["0220"],Cp["0311"]=Cp["020"],Cp[1310]=Cp[1220],Cp[1311]=Cp[1221],Cp[1721]=Cp[170];const Dp=new sp({maxSize:400});function _p(e,t){const n=`${e}-${t?1:0}`;let r=Dp.get(n);return r||(r=new up(e,t),Dp.set(n,r)),r}class kp extends je{constructor(e,t,n=!1,r=-1){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),Ye.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){return ap(this.parsha,e)}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 ue(this.getDate().greg()).replace(/-/g,"")}}const Lp=d.NISAN,Rp=d.IYYAR;function Yp(e){if(e<5708)return null;let t;const n=new Oe(15,Lp,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new Oe(t,Rp,e)}const Pp="Yom Kippur Katan";class jp extends Uv{constructor(e,t){super(e,`${Pp} ${t}`,Ye.MINOR_FAST|Ye.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=Se.gettext(this.nextMonthName,e).replace(/'/g,"’");return Se.gettext(Pp,e)+" "+t}renderBrief(e){return Se.gettext(Pp,e)}url(){}}function Bp(e){return e.observedInIsrael()}function Fp(e){return e.observedInDiaspora()}function Up(e,t){const n=Oe.isHDate(e)?e:new Oe(e),r=n.toString(),o=mS(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const i=o.filter(function(e){return e?Bp:Fp}(t));return i}const xp=Ye.CHAG,Zp=Ye.IL_ONLY,$p=Ye.LIGHT_CANDLES_TZEIS,Vp=Ye.CHANUKAH_CANDLES,zp=Ye.MINOR_FAST,Kp=Ye.SPECIAL_SHABBAT,Jp=Ye.MODERN_HOLIDAY,Gp=Ye.MAJOR_FAST,Wp=Ye.MINOR_HOLIDAY,qp=Ye.EREV,Xp=0,Qp=2,eS=4,tS=5,nS=6,rS=d.NISAN,oS=d.TAMUZ,iS=d.AV,aS=d.TISHREI,sS=d.KISLEV,uS=d.TEVET,cS=d.ADAR_I,hS=d.ADAR_II,lS={emoji:"🇮🇱"},fS="🕎",dS=new sp({maxSize:400}),gS=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function mS(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=dS.get(e);if(t)return t;const n=new Oe(1,aS,e),r=new Oe(15,rS,e),o=new Map;function i(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&qp?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of Bv){const n=new Oe(t.dd,t.mm,e),r=new Uv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)}i(new Zv(n,e,xp|$p));const a=n.getDay()===eS?4:3;i(new Uv(new Oe(a,aS,e),jv.TZOM_GEDALIAH,zp)),i(new Uv(new Oe(Oe.dayOnOrBefore(nS,7+n.abs())),jv.SHABBAT_SHUVA,Kp));const s=Oe.shortKislev(e)?new Oe(1,uS,e):new Oe(30,sS,e);i(new Uv(s,jv.CHAG_HABANOT,Wp));for(let t=2;t<=8;t++){const n=new Oe(23+t,sS,e);i(new Uv(n,`Chanukah: ${t} Candles`,Wp|Vp,{chanukahDay:t-1,emoji:fS+gS[t]}))}i(new Uv(new Oe(32,sS,e),jv.CHANUKAH_8TH_DAY,Wp,{chanukahDay:8,emoji:fS})),i(new xv(new Oe(10,uS,e),jv.ASARA_BTEVET,zp));const u=r.abs();i(new Uv(new Oe(Oe.dayOnOrBefore(nS,u-43)),jv.SHABBAT_SHEKALIM,Kp),new Uv(new Oe(Oe.dayOnOrBefore(nS,u-30)),jv.SHABBAT_ZACHOR,Kp),new Uv(new Oe(u-(r.getDay()===Qp?33:31)),jv.TAANIT_ESTHER,zp));const c=Oe.dayOnOrBefore(nS,u-14);i(new Uv(new Oe(c-7),jv.SHABBAT_PARAH,Kp),new Uv(new Oe(c),jv.SHABBAT_HACHODESH,Kp),new Uv(new Oe(Oe.dayOnOrBefore(nS,u-1)),jv.SHABBAT_HAGADOL,Kp),new Uv(r.prev().getDay()===nS?r.onOrBefore(eS):new Oe(14,rS,e),jv.TAANIT_BECHOROT,zp)),i(new Uv(new Oe(Oe.dayOnOrBefore(nS,new Oe(1,aS,e+1).abs()-4)),jv.LEIL_SELICHOT,Wp,{emoji:"🕍"})),r.getDay()===Xp&&i(new Uv(new Oe(16,hS,e),jv.PURIM_MESHULASH,Wp)),Oe.isLeapYear(e)&&(i(new Uv(new Oe(14,cS,e),jv.PURIM_KATAN,Wp,{emoji:"🎭️"})),i(new Uv(new Oe(15,cS,e),jv.SHUSHAN_PURIM_KATAN,Wp,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Oe(27,Lp,e);return 5===t.getDay()?t=new Oe(26,Lp,e):0===t.getDay()&&(t=new Oe(28,Lp,e)),t}(e);h&&i(new Uv(h,jv.YOM_HASHOAH,Jp));const l=Yp(e);l&&i(new Uv(l,jv.YOM_HAZIKARON,Jp,lS),new Uv(l.next(),jv.YOM_HAATZMA_UT,Jp,lS));for(const t of Fv)if(e>=t.firstYear){let n=new Oe(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||r!==tS&&r!==nS?t.friPostponeToSun&&r===tS?n=new Oe(n.abs()+2):t.satPostponeToSun&&r===nS&&(n=n.next()):n=n.onOrBefore(eS);const o=t.chul?Jp:Jp|Zp,a=new Uv(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}let f,g=new Oe(17,oS,e);g.getDay()===nS&&(g=new Oe(18,oS,e),f={observed:!0}),i(new Uv(g,jv.TZOM_TAMMUZ,zp,f));let m,y=new Oe(9,iS,e),v=jv.TISHA_BAV;y.getDay()===nS&&(y=y.next(),m={observed:!0},v+=" (observed)");const p=y.abs();i(new Uv(new Oe(Oe.dayOnOrBefore(nS,p)),jv.SHABBAT_CHAZON,Kp),new Uv(y.prev(),jv.EREV_TISHA_BAV,qp|Gp,m),new Uv(y,v,Gp,m),new Uv(new Oe(Oe.dayOnOrBefore(nS,p+7)),jv.SHABBAT_NACHAMU,Kp));const S=Oe.monthsInYear(e);for(let t=1;t<=S;t++){const n=Oe.getMonthName(t,e);30===(t===rS?Oe.daysInMonth(Oe.monthsInYear(e-1),e-1):Oe.daysInMonth(t-1,e))?(i(new Vv(new Oe(1,t,e),n)),i(new Vv(new Oe(30,t-1,e),n))):t!==aS&&i(new Vv(new Oe(1,t,e),n))}for(let t=d.IYYAR;t<=S;t++){const n=t+1;if(n===aS||n===d.CHESHVAN||n===uS)continue;let r=new Oe(29,t,e);const o=r.getDay();o!==tS&&o!==nS||(r=r.onOrBefore(eS));const a=Oe.getMonthName(n,e);i(new jp(r,a))}const w=_p(e,!1).find(15);i(new Uv(w,jv.SHABBAT_SHIRAH,Kp));const A=function(e){const t=Oe.isLeapYear(e),n=t?hS:rS,r=t?20:1,o=Oe.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(A){const e=new Oe(A);i(new Uv(e,jv.BIRKAT_HACHAMAH,Wp,{emoji:"☀️"}))}return dS.set(e,o),o}function yS(e,t){const n=mS(e),r=Oe.hebrew2abs(e,aS,1),o=Oe.hebrew2abs(e+1,aS,1)-1;let i=[];const a=t?Bp:Fp;for(let e=r;e<=o;e++){const t=new Oe(e),r=n.get(t.toString());if(r){const e=r.filter(a);i=i.concat(e)}}return i}const vS="Shabbat Mevarchim Chodesh";class pS extends je{constructor(e,t,n){if(super(e,`${vS} ${t}`,Ye.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===Oe.monthsInYear(t)?d.NISAN:n+1,o=new rp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=Se.gettext(this.monthName,e).replace(/'/g,"’");return Se.gettext(vS,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const SS=new Map;class wS{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);SS.set(e,t)}static lookup(e,t,n){const r=SS.get(e);return"function"==typeof r?r(t,n):null}}function AS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const bS={shacharit:!1,mincha:!1,allCongs:!1};function TS(e,t){return IS(e,t,!0)}function IS(e,t,n){const r=function(e,t){const n=Oe.isLeapYear(e),r=Oe.monthsInYear(e);let o=new Oe(9,d.AV,e);6===o.getDay()&&(o=o.next());let i=new Oe(15,d.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[new Oe(2,d.TISHREI,e)].concat(AS(1,r).map((t=>new Oe(1,t,e))),AS(1,r).filter((t=>30===Oe.daysInMonth(t,e))).map((t=>new Oe(30,t,e))),AS(1,Oe.daysInMonth(d.NISAN,e)).map((t=>new Oe(t,d.NISAN,e))),new Oe(18,d.IYYAR,e),AS(1,8-(t?1:0)).map((t=>new Oe(t,d.SIVAN,e))),o,new Oe(15,d.AV,e),new Oe(29,d.ELUL,e),AS(9,24-(t?1:0)).map((t=>new Oe(t,d.TISHREI,e))),AS(25,33).map((t=>new Oe(t,d.KISLEV,e))),new Oe(15,d.SHVAT,e),new Oe(14,d.ADAR_II,e),i,n?new Oe(14,d.ADAR_I,e):[]),s=[new Oe(14,d.IYYAR,e)].concat(AS(1,13).map((t=>new Oe(t,d.SIVAN,e))),AS(20,31).map((t=>new Oe(t,d.TISHREI,e))),e>=5708?Yp(e).next():[],e>=5727?new Oe(28,d.IYYAR,e):[]),u=[new Oe(29,d.ELUL,e-1),new Oe(9,d.TISHREI,e),new Oe(14,d.IYYAR,e)];return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return bS;const i=e.getDay(),a={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(a.allCongs=!0),6!==i&&(a.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=IS(new Oe(s),t,!1);a.mincha=e.shacharit}else a.mincha=5!==i;return!a.allCongs||a.mincha||a.shacharit?a:bS}const MS=d.TISHREI;function ES(e){if("number"==typeof e)return e;if(c(e))return l(e);if(Oe.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function OS(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[ES(e.start),ES(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Oe).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return Oe.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new Oe(1,e||MS,t);let o=r.abs();const i=e?o+r.daysInMonth():new Oe(1,MS,t+n).abs()-1;!e&&t>1&&o--;return[o,i]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const i=l(o);let a;if(e)a=i+u(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),a=l(r)-1}return[i,a]}(r,n,o)}function NS(e={}){!function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof Ge))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=Number(e.candleLightingMins)||18;t.getIsrael()&&18===Math.abs(n)&&(n=function(e,t){const n=e.getGeoId();if(n){const e=iw[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=ow[r];if("number"==typeof e)return e}return t}(t,n));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=aw;"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=sw)}(e=Object.assign({},e));const t=e.location=e.location||cw,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=function(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&$S&&delete e.noRoshChodesh;t&xS&&delete e.noModern;t&FS&&delete e.noMinorFast;t&US&&delete e.noSpecialShabbat;t&VS&&(e.sedrot=!0);t&(zS|KS|JS|GS)&&(e.dailyLearning=e.dailyLearning||{},t&zS&&(e.dailyLearning.dafYomi=!0),t&KS&&(e.dailyLearning.mishnaYomi=!0),t&JS&&(e.dailyLearning.nachYomi=!0),t&GS&&(e.dailyLearning.yerushalmi=1));t&WS&&(e.omer=!0);t&qS&&(e.shabbatMevarchim=!0);t&tw&&(e.yomKippurKatan=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;e.noHolidays||(r|=$S|RS|FS|US|xS|ZS|XS|QS|ew|LS|jS|BS);e.candlelighting&&(r|=LS|jS|RS);e.noRoshChodesh&&(r&=~$S);e.noModern&&(r&=~xS);e.noMinorFast&&(r&=~FS);e.noSpecialShabbat&&(r&=~US,r&=~qS);r|=n?PS:YS;e.sedrot&&(r|=VS);e.omer&&(r|=WS);e.shabbatMevarchim&&(r|=qS);e.yomKippurKatan&&(r|=tw);if(e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=zS),t.mishnaYomi&&(r|=KS),t.nachYomi&&(r|=JS),t.yerushalmi&&(r|=GS)}return r}(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!Se.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else Se.useLocale("en");const o=[];let i,a,s=-1,u=-1,c=-1;const h=OS(e);!function(e){for(const t of Object.keys(e))void 0!==rw[t]||nw.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),nw.add(t))}(e);const l=h[0],d=h[1];f(l).getFullYear()<100&&(e.candlelighting=!1);for(let t=l;t<=d;t++){const h=new Oe(t),l=h.getFullYear();l!==c&&(c=l,a=mS(c),e.sedrot&&(i=_p(c,n)),e.omer&&(s=Oe.hebrew2abs(c,DS,16),u=Oe.hebrew2abs(c,_S,5)));const f=o.length,d=h.getDay(),g=d===HS,m=d===CS;let y;const v=a.get(h.toString())||[];for(const t of v)y=hw(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=i.lookup(t);e.chag||o.push(new kp(h,e.parsha,n,e.num))}const p=e.dailyLearning;if("object"==typeof p){const e=dw(h,p,n);o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=gw(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=lw(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Jv(void 0,h,e,g,m),g&&y&&i)){const r=i.lookup(t),o=new kp(h.next(),r.parsha,n,r.num);y.memo=o.render(e.locale)}if(y instanceof Ty&&(0===e.havdalahMins||0===e.havdalahDeg)&&(y=void 0),y&&o.push(y),e.addHebrewDates||e.addHebrewDatesForEvents&&f!==o.length){const e=new Be(h);f===o.length?o.push(e):o.splice(f,0,e)}}return o}const HS=5,CS=6,DS=d.NISAN,_S=d.SIVAN,kS=d.ELUL,LS=Ye.LIGHT_CANDLES,RS=Ye.YOM_TOV_ENDS,YS=Ye.CHUL_ONLY,PS=Ye.IL_ONLY,jS=Ye.LIGHT_CANDLES_TZEIS,BS=Ye.CHANUKAH_CANDLES,FS=Ye.MINOR_FAST,US=Ye.SPECIAL_SHABBAT,xS=Ye.MODERN_HOLIDAY,ZS=Ye.MAJOR_FAST,$S=Ye.ROSH_CHODESH,VS=Ye.PARSHA_HASHAVUA,zS=Ye.DAF_YOMI,KS=Ye.MISHNA_YOMI,JS=Ye.NACH_YOMI,GS=Ye.YERUSHALMI_YOMI,WS=Ye.OMER_COUNT,qS=Ye.SHABBAT_MEVARCHIM,XS=Ye.MINOR_HOLIDAY,QS=Ye.EREV,ew=Ye.CHOL_HAMOED,tw=Ye.YOM_KIPPUR_KATAN,nw=new Set,rw={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,mask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const ow={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},iw={281184:40,294801:30,293067:30},aw=8.5,sw=7.0833333;const uw=LS|jS|BS|RS,cw=new Ge(0,0,!1,"UTC");function hw(e,t,n,r,o,i,a){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&tw||r.noModern&&u&xS)return e;const c=Boolean(u&ZS),h=Boolean(u&FS);let l;if(r.candlelighting&&(c||h)&&(n=l=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=e.getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=Boolean(t.useElevation),u=new py(i,o,s);let c,h;if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(c=Xv(e,n,Gv,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(a);isNaN(n.getTime())||(h=Xv(e,n,Wv,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(c=Xv(e,n,Gv,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==d.NISAN)){const n=u.tzeit(a);isNaN(n.getTime())||(h=Xv(e,n,Wv,t))}}const l=new qv(r,n,e.getFlags(),c,h);for(const t in e)e.hasOwnProperty(t)&&Object.defineProperty(l,t,{value:e[t]});return l}(n,r),l.startEvent&&(c||h&&!r.noMinorFast)&&t.push(l.startEvent)),u&Number(r.mask)||!u&&!a){if(r.candlelighting&&u&uw){const t=n.getDate();if(e=Jv(n,t,r,o,i),u&BS&&e&&!r.noHolidays){const a=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),i=new py(r,t.greg(),o).beinHaShmashos();if(isNaN(i.getTime()))return null;const a=new Qv(t,e.getDesc(),e.getFlags(),i,r);return a.emoji=e.emoji,a.chanukahDay=e.chanukahDay,a}(n,t,r);a&&((o||i)&&(a.eventTime=e.eventTime,a.eventTimeStr=e.eventTimeStr),n=a),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&tw)&&t.push(n)}return(c||h&&!r.noMinorFast)&&l&&l.endEvent&&t.push(l.endEvent),e}function lw(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==kS&&o>=23&&o<=29){const o=e.getFullYear(),i=r===Oe.monthsInYear(o)?DS:r+1;if(t.molad&&n.push(new op(e,o,i,t)),t.shabbatMevarchim){const r=Oe.getMonthName(i,o),a=new rp(o,i).render(t.locale||"en",t);n.push(new pS(e,r,a))}}return n}function fw(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function dw(e,t,n){const r=[];for(const[o,i]of Object.entries(t))if(i){const t=fw(o,i),a=wS.lookup(t,e,n);a&&r.push(a)}return r}function gw(e,t,n){const r=new ip(e,t);if(n.candlelighting){const t=n.location,o=new py(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}function mw(e,t){return 0!==(Up(e,t)||[]).filter((e=>e.getFlags()&Ye.CHAG)).length}return e.AsaraBTevetEvent=xv,e.CandleLightingEvent=by,e.DailyLearning=wS,e.Event=je,e.FastDayEvent=qv,e.GeoLocation=xe,e.HDate=Oe,e.HavdalahEvent=Ty,e.HebrewCalendar=class{constructor(){}static calendar(e={}){return NS(e)}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=P(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=b(r);let i=n.mm,a=n.dd;return i===R&&!o||i===Y&&o?i=T(e):i!==D||30!==a||N(e)?i===_&&30===a&&H(e)?(i=k,a=1):i===R&&30===a&&o&&!b(e)&&(i=C,a=1):(i=_,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new Oe(n)}static getYahrzeit(e,t){const n=function(e,t){let n=P(t);if(!(e<=n.yy))return n.mm!==D||30!==n.dd||N(n.yy+1)?n.mm===_&&30===n.dd&&H(n.yy+1)?n=A(S(e,k,1)-1):n.mm===Y?n.mm=T(e):n.mm!==R||30!==n.dd||b(e)||(n.dd=30,n.mm=L):n=A(S(e,_,1)-1),n.mm!==D||30!==n.dd||N(e)?n.mm===_&&30===n.dd&&H(e)&&(n.mm=k,n.dd=1):(n.mm=_,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Oe(n)}static getHolidaysForYear(e){return mS(e)}static getHolidaysForYearArray(e,t){return yS(e,t)}static getHolidaysOnDate(e,t){return Up(e,t)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Oe(e),r=n.after(5),o=n.next();return!(!mw(r,t)||mw(n,t)||!mw(o,t))}static reformatTimeStr(e,t,n){return wy(e,t,n)}static version(){return n}static getSedra(e,t){return _p(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===d.NISAN&&(15===o||16===o)&&e.getFlags()&Ye.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()&Ye.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(yS(e.getFullYear(),t),e)}static tachanun(e,t){return TS(e,t)}},e.HebrewDateEvent=Be,e.HolidayEvent=Uv,e.Locale=Se,e.Location=Ge,e.MevarchimChodeshEvent=pS,e.Molad=rp,e.MoladEvent=op,e.NOAACalculator=$e,e.OmerEvent=ip,e.ParshaEvent=kp,e.RoshChodeshEvent=Vv,e.RoshHashanaEvent=Zv,e.Sedra=up,e.TimedEvent=Ay,e.Zmanim=py,e.flags=Ye,e.gematriya=x,e.gematriyaStrToNum=Z,e.getHolidaysOnDate=Up,e.getSedra=_p,e.holidayDesc=jv,e.months=d,e.parshiot=cp,e.version=n,e}({},Temporal);
|
|
3
3
|
//# sourceMappingURL=bundle.min.js.map
|