Socket
Socket
Sign inDemoInstall

@hebcal/leyning

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/leyning - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

dist/bundle.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@hebcal/core")):"function"==typeof define&&define.amd?define(["@hebcal/core"],e):(t=t||self).hebcalLeyning=e(t.hebcalCore)}(this,(function(t){"use strict";function e(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var n=e((function(t){var e=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)})),r=(n.version,e((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}))),o=e((function(t){var e=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:n.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),a=0,i=Math.random(),c=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+i).toString(36))},s=e((function(t){var e=o("wks"),n=r.Symbol,a="function"==typeof n;(t.exports=function(t){return e[t]||(e[t]=a&&n[t]||(a?n:c)("Symbol."+t))}).store=e})),u=function(t){return"object"==typeof t?null!==t:"function"==typeof t},f=function(t){if(!u(t))throw TypeError(t+" is not an object!");return t},l=function(t){try{return!!t()}catch(t){return!0}},h=!l((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),y=r.document,p=u(y)&&u(y.createElement),g=function(t){return p?y.createElement(t):{}},d=!h&&!l((function(){return 7!=Object.defineProperty(g("div"),"a",{get:function(){return 7}}).a})),b=Object.defineProperty,v={f:h?Object.defineProperty:function(t,e,n){if(f(t),e=function(t,e){if(!u(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!u(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!u(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!u(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(e,!0),f(n),d)try{return b(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},S=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=h?function(t,e,n){return v.f(t,e,S(1,n))}:function(t,e,n){return t[e]=n,t},k=s("unscopables"),O=Array.prototype;null==O[k]&&m(O,k,{});var w=function(t){O[k][t]=!0},j=function(t,e){return{value:e,done:!!t}},A={},T={}.toString,M=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==function(t){return T.call(t).slice(8,-1)}(t)?t.split(""):Object(t)},C=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},L=function(t){return M(C(t))},D={}.hasOwnProperty,E=function(t,e){return D.call(t,e)},_=o("native-function-to-string",Function.toString),P=e((function(t){var e=c("src"),o=(""+_).split("toString");n.inspectSource=function(t){return _.call(t)},(t.exports=function(t,n,a,i){var c="function"==typeof a;c&&(E(a,"name")||m(a,"name",n)),t[n]!==a&&(c&&(E(a,e)||m(a,e,t[n]?""+t[n]:o.join(String(n)))),t===r?t[n]=a:i?t[n]?t[n]=a:m(t,n,a):(delete t[n],m(t,n,a)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[e]||_.call(this)}))})),H=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},R=function(t,e,n){if(H(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},x=function(t,e,o){var a,i,c,s,u=t&x.F,f=t&x.G,l=t&x.S,h=t&x.P,y=t&x.B,p=f?r:l?r[e]||(r[e]={}):(r[e]||{}).prototype,g=f?n:n[e]||(n[e]={}),d=g.prototype||(g.prototype={});for(a in f&&(o=e),o)c=((i=!u&&p&&void 0!==p[a])?p:o)[a],s=y&&i?R(c,r):h&&"function"==typeof c?R(Function.call,c):c,p&&P(p,a,c,t&x.U),g[a]!=c&&m(g,a,s),h&&d[a]!=c&&(d[a]=c)};r.core=n,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128;var F,I=x,Y=Math.ceil,V=Math.floor,N=function(t){return isNaN(t=+t)?0:(t>0?V:Y)(t)},G=Math.min,q=Math.max,B=Math.min,U=o("keys"),z=function(t){return U[t]||(U[t]=c(t))},W=(F=!1,function(t,e,n){var r,o,a=L(t),i=(r=a.length)>0?G(N(r),9007199254740991):0,c=function(t,e){return(t=N(t))<0?q(t+e,0):B(t,e)}(n,i);if(F&&e!=e){for(;i>c;)if((o=a[c++])!=o)return!0}else for(;i>c;c++)if((F||c in a)&&a[c]===e)return F||c||0;return!F&&-1}),Z=z("IE_PROTO"),J="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),K=Object.keys||function(t){return function(t,e){var n,r=L(t),o=0,a=[];for(n in r)n!=Z&&E(r,n)&&a.push(n);for(;e.length>o;)E(r,n=e[o++])&&(~W(a,n)||a.push(n));return a}(t,J)},Q=h?Object.defineProperties:function(t,e){f(t);for(var n,r=K(e),o=r.length,a=0;o>a;)v.f(t,n=r[a++],e[n]);return t},X=r.document,$=X&&X.documentElement,tt=z("IE_PROTO"),et=function(){},nt=function(){var t,e=g("iframe"),n=J.length;for(e.style.display="none",$.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),nt=t.F;n--;)delete nt.prototype[J[n]];return nt()},rt=Object.create||function(t,e){var n;return null!==t?(et.prototype=f(t),n=new et,et.prototype=null,n[tt]=t):n=nt(),void 0===e?n:Q(n,e)},ot=v.f,at=s("toStringTag"),it=function(t,e,n){t&&!E(t=n?t:t.prototype,at)&&ot(t,at,{configurable:!0,value:e})},ct={};m(ct,s("iterator"),(function(){return this}));var st=function(t,e,n){t.prototype=rt(ct,{next:S(1,n)}),it(t,e+" Iterator")},ut=function(t){return Object(C(t))},ft=z("IE_PROTO"),lt=Object.prototype,ht=Object.getPrototypeOf||function(t){return t=ut(t),E(t,ft)?t[ft]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?lt:null},yt=s("iterator"),pt=!([].keys&&"next"in[].keys()),gt=function(){return this},dt=function(t,e,n,r,o,a,i){st(n,e,r);var c,s,u,f=function(t){if(!pt&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},l=e+" Iterator",h="values"==o,y=!1,p=t.prototype,g=p[yt]||p["@@iterator"]||o&&p[o],d=g||f(o),b=o?h?f("entries"):d:void 0,v="Array"==e&&p.entries||g;if(v&&(u=ht(v.call(new t)))!==Object.prototype&&u.next&&(it(u,l,!0),"function"!=typeof u[yt]&&m(u,yt,gt)),h&&g&&"values"!==g.name&&(y=!0,d=function(){return g.call(this)}),(pt||y||!p[yt])&&m(p,yt,d),A[e]=d,A[l]=gt,o)if(c={values:h?d:f("values"),keys:a?d:f("keys"),entries:b},i)for(s in c)s in p||P(p,s,c[s]);else I(I.P+I.F*(pt||y),e,c);return c}(Array,"Array",(function(t,e){this._t=L(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,j(1)):j(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values");A.Arguments=A.Array,w("keys"),w("values"),w("entries");for(var bt=s("iterator"),vt=s("toStringTag"),St=A.Array,mt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},kt=K(mt),Ot=0;Ot<kt.length;Ot++){var wt,jt=kt[Ot],At=mt[jt],Tt=r[jt],Mt=Tt&&Tt.prototype;if(Mt&&(Mt[bt]||m(Mt,bt,St),Mt[vt]||m(Mt,vt,jt),A[jt]=St,At))for(wt in dt)Mt[wt]||P(Mt,wt,dt[wt],!0)}var Ct,Lt,Dt=[].sort,Et=[1,2,3];I(I.P+I.F*(l((function(){Et.sort(void 0)}))||!l((function(){Et.sort(null)}))||!((Ct=Dt)&&l((function(){Lt?Ct.call(null,(function(){}),1):Ct.call(null)})))),"Array",{sort:function(t){return void 0===t?Dt.call(ut(this)):Dt.call(ut(this),H(t))}});const _t=require("./holiday-readings.json"),Pt=require("./aliyot.json");function Ht(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=e.getDate(),o=r.getDate(),a=e.getDesc(),i=e.getAttrs(),c=r.abs()%7,s=6==c,u=1==o||30==o;if(1==o&&r.getMonth()==t.common.months.TISHREI)return s?"Rosh Hashana I (on Shabbat)":"Rosh Hashana I";if(i&&i.cholHaMoedDay){const t=a.substring(0,a.indexOf(" "));if(s)return t+" Shabbat Chol ha-Moed";if("Sukkot VII (Hoshana Raba)"==a)return"Sukkot Final Day (Hoshana Raba)";let e=i.cholHaMoedDay;return"Pesach"==t&&e>=3&&(0==c&&4==e?e=3:1==c&&5==e&&(e=4)),"".concat(t," Chol ha-Moed Day ").concat(e)}if(i&&i.chanukahDay)return s&&u?"Shabbat Rosh Chodesh Chanukah":u&&7==i.chanukahDay?"Chanukah (Day 7 on Rosh Chodesh)":"Chanukah (Day ".concat(i.chanukahDay,")");if(u&&("Shabbat HaChodesh"==a||"Shabbat Shekalim"==a))return a+" (on Rosh Chodesh)";if("Shavuot"==a)return"Shavuot I";if(n&&"Shmini Atzeret"==a)return"Simchat Torah";if(s&&!a.startsWith("Shabbat")){const t=a+" (on Shabbat)";if(_t[t])return t}return _t[a]?a:s&&u?"Shabbat Rosh Chodesh":!s||30!=r.next().getDate()&&1!=r.next().getDate()?void 0:"Shabbat Machar Chodesh"}function Rt(t){let e=t[0];return 2==t.length&&(e+="-"+t[1]),e}function xt(t){return 1==t.length||"Nitzavim"==t[0]?t[0]:t[1]}function Ft(t,e){let n;return n=e[7]?function(t){const e=t[6],n=t[7],r=Object.assign({},t);return delete r[7],r[6]={k:e.k,b:e.b,e:n.e},e.v&&n.v&&(r[6].v=e.v+n.v),r}(t):Object.assign({},t),Object.assign(n,e)}function It(t,e){if("Shabbat Rosh Chodesh Chanukah"==e)return;const n=t.getAttrs();return n&&n.chanukahDay?8==n.chanukahDay?"Shabbat Chanukah II":"Shabbat Chanukah":void 0}function Yt(e,n){const r=t.holidays.getHolidaysOnDate(e)||[];return r.filter(e=>!(e.getFlags()&t.flags.ROSH_CHODESH&&r.length>1)&&(n&&e.observedInIsrael()||!n&&e.observedInDiaspora()))}const Vt=[21,26,28,31,38,41,50],Nt={};function Gt(e){return t.parshiot[e]+"-"+t.parshiot[e+1]}Vt.forEach(t=>{Nt[t]=!0,Nt[t+1]=!0});let qt,Bt;class Ut{constructor(e,n){"object"==typeof n&&"object"==typeof n.Bereshit?(qt=n,Bt=Ut.getTriennialAliyot()):qt||(console.debug("Loading ".concat("./aliyot.json","...")),qt=require("./aliyot.json"),Bt=Ut.getTriennialAliyot());const r=e||(new t.HDate).getFullYear(),o=Ut.getYearNumber(r);this.startYear=Ut.getCycleStartYear(r),console.debug("Hebrew year ".concat(r," is year ").concat(o,"; triennial cycle started year ").concat(this.startYear));const a=new t.Sedra(this.startYear,!1).getSedraArray();this.bereshit=[0],this.sedraArray=a.slice(a.indexOf(0));for(let e=1;e<4;e++){const n=new t.Sedra(this.startYear+e,!1).getSedraArray();this.bereshit[e]=this.sedraArray.length+n.indexOf(0),this.sedraArray=this.sedraArray.concat(n)}const i=this.calcVariationOptions();this.readings=this.cycleReadings(i)}getReadings(){return this.readings}getStartYear(){return this.startYear}static getYearNumber(t){return Math.abs((t-5756)%3)+1}static getCycleStartYear(t){return t-(this.getYearNumber(t)-1)}getThreeYearPattern(t){let e="";for(const n of[0,1,2]){let r=this.sedraArray.indexOf(-1*t,this.bereshit[n]);r>this.bereshit[n+1]&&(r=-1);e+=-1==r?"S":"T"}return e}calcVariationOptions(){const e={};for(const n of Vt){const r=this.getThreeYearPattern(n),o=Gt(n),a="TTT"===r?"Y":qt[o].triennial.patterns[r];if(void 0===a)throw new Error("Can't find pattern ".concat(r," for ").concat(o));const i=t.parshiot[n],c=t.parshiot[n+1];e[o]=e[i]=e[c]=a,console.debug(" ".concat(o," ").concat(r," (").concat(e[o],")"))}return e}cycleReadings(e){const n=new Map;for(const e of t.parshiot)n.set(e,[]);for(const t of Vt){const e=Gt(t);n.set(e,[])}for(const t of[0,1,2])this.cycleReadingsForYear(e,n,t);return n}cycleReadingsForYear(e,n,r){const o=this.bereshit[r],a=this.bereshit[r+1],i=this.sedraArray.slice(o,a);for(const o of i){if("number"!=typeof o)continue;const a=o<0?Gt(-o):t.parshiot[o],i=(Nt[o]?e[a]:"Y")+"."+(r+1),c=Bt[a][i];if(!c)throw new Error("can't find ".concat(a," year ").concat(r," (variation ").concat(i,")"));n.get(a)[r]=c}for(const e of Vt){const o=Gt(e);if(n.get(o)[r]){const a=t.parshiot[e],i=t.parshiot[e+1];n.get(a)[r]=n.get(i)[r]={readTogether:o}}}}static getTriennialAliyot(){const t={},e={};for(const[n,r]of Object.entries(qt))r.triennial&&(t[n]=Ut.resolveSameAs(n,r.book,r.triennial),r.triennial.alt&&(e[n]=Ut.resolveSameAs(n,r.book,r.triennial.alt)));return t}static resolveSameAs(t,e,n){const r=n.years||n.variations;if(void 0===r)throw new Error("Parashat ".concat(t," has no years or variations"));const o={};for(const[t,n]of Object.entries(r))if("object"==typeof n){const r={};for(const[t,o]of Object.entries(n)){const n={book:e,begin:o.b,end:o.e};o.v&&(n.numverses=o.v),r[t]=n}o[t]=r}for(const[e,n]of Object.entries(r))if("string"==typeof n){if(void 0===o[n])throw new Error("Can't find source for ".concat(t," ").concat(e," sameas=").concat(n));o[e]=o[n]}return o}}const zt=new Map;return{Triennial:Ut,getTriennial:function(t){const e=Ut.getCycleStartYear(t),n=zt.get(e);if(n)return n;const r=new Ut(e);return zt.set(e,r),r},getLeyningForHoliday:function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e instanceof t.Event)throw new TypeError("Bad event argument: ".concat(e));if(e.getFlags()&t.flags.PARSHA_HASHAVUA)throw new TypeError("Event should be a holiday: ".concat(e.getDesc()));const r=Ht(e,n),o=_t[r];if(void 0===o)return o;const a={};if(o.haftara&&(a.haftara=o.haftara),o.fullkriyah){a.fullkriyah=Object.assign({},o.fullkriyah);const t=a.fullkriyah[1],e=Object.keys(a.fullkriyah).filter(t=>Number(t)>0).sort(),n=e[e.length-1],r=a.fullkriyah[n];a.summary="".concat(t.k," ").concat(t.b,"-").concat(r.e)}if("Sukkot Shabbat Chol ha-Moed"==r){const t=e.getAttrs();a.fullkriyah.M=o.fullkriyah["M-day".concat(t.cholHaMoedDay)];for(const t of[1,2,3,4])delete a.fullkriyah["M-day".concat(t)]}return a},getLeyningForParshaHaShavua:function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e instanceof t.Event)throw new TypeError("Bad event argument: ".concat(e));if(e.getFlags()!=t.flags.PARSHA_HASHAVUA)throw new TypeError("Event must be parsha hashavua: ".concat(e.getDesc()));const r=e.getAttrs().parsha,o=Rt(r),a=Pt[o];let i=Pt[xt(r)].haftara,c={};for(const[t,e]of Object.entries(a.fullkriyah)){const n={k:a.book,b:e.b,e:e.e};e.v&&(n.v=e.v),c[t]=n}const s={},u=e.getDate();if("Pinchas"==o){const e=u.getMonth();(e>t.common.months.TAMUZ||e==t.common.months.TAMUZ&&u.getDate()>17)&&(i="Jeremiah 1:1 - 2:3",s.haftara="Pinchas occurring after 17 Tammuz")}const f=Yt(u,n);for(const t of f){const e=Ht(t,n),r=_t[e];if(r){const n=It(t,e);n?(i=_t[n].haftara,s.haftara=n,c.M=Object.assign({},r.fullkriyah[1]),c.M.e=r.fullkriyah[3].e,s.M=e):(r.haftara&&!s.haftara&&(i=r.haftara,s.haftara=e),r.fullkriyah&&(c=Ft(c,r.fullkriyah),Object.keys(r.fullkriyah).map(t=>s[t]=e)))}}const l={summary:"".concat(a.book," ").concat(a.verses),haftara:i,fullkriyah:c};return Object.keys(s).length&&(l.reason=s),a.sephardic&&(l.sephardic=a.sephardic),l},getLeyningKeyForEvent:Ht,formatAliyahWithBook:function(t){return"".concat(t.k," ").concat(t.b," - ").concat(t.e)}}}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@hebcal/core")):"function"==typeof define&&define.amd?define(["@hebcal/core"],e):(t=t||self).hebcalLeyning=e(t.hebcalCore)}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},i=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,u={f:s&&!c.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:c},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},y="".split,p=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?y.call(t,""):Object(t)}:Object,g=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return p(g(t))},d=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t,e){if(!d(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!d(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!d(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!d(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,m=function(t,e){return S.call(t,e)},O=o.document,k=d(O)&&d(O.createElement),w=function(t){return k?O.createElement(t):{}},j=!i&&!a((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,A={f:i?T:function(t,e){if(t=b(t),e=v(e,!0),j)try{return T(t,e)}catch(t){}if(m(t,e))return f(!u.f.call(t,e),t[e])}},M=function(t){if(!d(t))throw TypeError(String(t)+" is not an object");return t},E=Object.defineProperty,P={f:i?E:function(t,e,r){if(M(t),e=v(e,!0),M(r),j)try{return E(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},L=i?function(t,e,r){return P.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},C=function(t,e){try{L(o,t,e)}catch(r){o[t]=e}return e},D=o["__core-js_shared__"]||C("__core-js_shared__",{}),I=Function.toString;"function"!=typeof D.inspectSource&&(D.inspectSource=function(t){return I.call(t)});var R,_,H,x=D.inspectSource,F=o.WeakMap,Y="function"==typeof F&&/native code/.test(x(F)),N=r((function(t){(t.exports=function(t,e){return D[t]||(D[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),V=0,G=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+G).toString(36)},W=N("keys"),B=function(t){return W[t]||(W[t]=q(t))},z={},U=o.WeakMap;if(Y){var K=new U,Z=K.get,J=K.has,X=K.set;R=function(t,e){return X.call(K,t,e),e},_=function(t){return Z.call(K,t)||{}},H=function(t){return J.call(K,t)}}else{var Q=B("state");z[Q]=!0,R=function(t,e){return L(t,Q,e),e},_=function(t){return m(t,Q)?t[Q]:{}},H=function(t){return m(t,Q)}}var $={set:R,get:_,has:H,enforce:function(t){return H(t)?_(t):R(t,{})},getterFor:function(t){return function(e){var r;if(!d(e)||(r=_(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},tt=r((function(t){var e=$.get,r=$.enforce,n=String(String).split("String");(t.exports=function(t,e,a,i){var c=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof a&&("string"!=typeof e||m(a,"name")||L(a,"name",e),r(a).source=n.join("string"==typeof e?e:"")),t!==o?(c?!u&&t[e]&&(s=!0):delete t[e],s?t[e]=a:L(t,e,a)):s?t[e]=a:C(e,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||x(this)}))})),et=o,rt=function(t){return"function"==typeof t?t:void 0},nt=function(t,e){return arguments.length<2?rt(et[t])||rt(o[t]):et[t]&&et[t][e]||o[t]&&o[t][e]},ot=Math.ceil,at=Math.floor,it=function(t){return isNaN(t=+t)?0:(t>0?at:ot)(t)},ct=Math.min,st=function(t){return t>0?ct(it(t),9007199254740991):0},ut=Math.max,ft=Math.min,lt=function(t){return function(e,r,n){var o,a=b(e),i=st(a.length),c=function(t,e){var r=it(t);return r<0?ut(r+e,0):ft(r,e)}(n,i);if(t&&r!=r){for(;i>c;)if((o=a[c++])!=o)return!0}else for(;i>c;c++)if((t||c in a)&&a[c]===r)return t||c||0;return!t&&-1}},ht={includes:lt(!0),indexOf:lt(!1)}.indexOf,yt=function(t,e){var r,n=b(t),o=0,a=[];for(r in n)!m(z,r)&&m(n,r)&&a.push(r);for(;e.length>o;)m(n,r=e[o++])&&(~ht(a,r)||a.push(r));return a},pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gt=pt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return yt(t,gt)}},dt={f:Object.getOwnPropertySymbols},vt=nt("Reflect","ownKeys")||function(t){var e=bt.f(M(t)),r=dt.f;return r?e.concat(r(t)):e},St=function(t,e){for(var r=vt(e),n=P.f,o=A.f,a=0;a<r.length;a++){var i=r[a];m(t,i)||n(t,i,o(e,i))}},mt=/#|\.prototype\./,Ot=function(t,e){var r=wt[kt(t)];return r==Tt||r!=jt&&("function"==typeof e?a(e):!!e)},kt=Ot.normalize=function(t){return String(t).replace(mt,".").toLowerCase()},wt=Ot.data={},jt=Ot.NATIVE="N",Tt=Ot.POLYFILL="P",At=Ot,Mt=A.f,Et=function(t,e){var r,n,a,i,c,s=t.target,u=t.global,f=t.stat;if(r=u?o:f?o[s]||C(s,{}):(o[s]||{}).prototype)for(n in e){if(i=e[n],a=t.noTargetGet?(c=Mt(r,n))&&c.value:r[n],!At(u?n:s+(f?".":"#")+n,t.forced)&&void 0!==a){if(typeof i==typeof a)continue;St(i,a)}(t.sham||a&&a.sham)&&L(i,"sham",!0),tt(r,n,i,t)}},Pt=function(t){return Object(g(t))},Lt=[],Ct=Lt.sort,Dt=a((function(){Lt.sort(void 0)})),It=a((function(){Lt.sort(null)})),Rt=function(t,e){var r=[][t];return!!r&&a((function(){r.call(null,e||function(){throw 1},1)}))}("sort");Et({target:"Array",proto:!0,forced:Dt||!It||!Rt},{sort:function(t){return void 0===t?Ct.call(Pt(this)):Ct.call(Pt(this),function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}(t))}});var _t=Object.keys||function(t){return yt(t,pt)},Ht=Object.assign,xt=Object.defineProperty,Ft=!Ht||a((function(){if(i&&1!==Ht({b:1},Ht(xt({},"a",{enumerable:!0,get:function(){xt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Ht({},t)[r]||"abcdefghijklmnopqrst"!=_t(Ht({},e)).join("")}))?function(t,e){for(var r=Pt(t),n=arguments.length,o=1,a=dt.f,c=u.f;n>o;)for(var s,f=p(arguments[o++]),l=a?_t(f).concat(a(f)):_t(f),h=l.length,y=0;h>y;)s=l[y++],i&&!c.call(f,s)||(r[s]=f[s]);return r}:Ht;Et({target:"Object",stat:!0,forced:Object.assign!==Ft},{assign:Ft});var Yt,Nt=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())})),Vt=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=N("wks"),qt=o.Symbol,Wt=Vt?qt:qt&&qt.withoutSetter||q,Bt=function(t){return m(Gt,t)||(Nt&&m(qt,t)?Gt[t]=qt[t]:Gt[t]=Wt("Symbol."+t)),Gt[t]},zt=Bt("match"),Ut=function(t){if(function(t){var e;return d(t)&&(void 0!==(e=t[zt])?!!e:"RegExp"==h(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Kt=Bt("match"),Zt=A.f,Jt="".startsWith,Xt=Math.min,Qt=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Kt]=!1,"/./"[t](e)}catch(t){}}return!1}("startsWith"),$t=!(Qt||(Yt=Zt(String.prototype,"startsWith"),!Yt||Yt.writable));Et({target:"String",proto:!0,forced:!$t&&!Qt},{startsWith:function(t){var e=String(g(this));Ut(t);var r=st(Xt(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return Jt?Jt.call(e,n,r):e.slice(r,r+n.length)===n}});var te,ee={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},re=i?Object.defineProperties:function(t,e){M(t);for(var r,n=_t(e),o=n.length,a=0;o>a;)P.f(t,r=n[a++],e[r]);return t},ne=nt("document","documentElement"),oe=B("IE_PROTO"),ae=function(){},ie=function(t){return"<script>"+t+"<\/script>"},ce=function(){try{te=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ce=te?function(t){t.write(ie("")),t.close();var e=t.parentWindow.Object;return t=null,e}(te):((e=w("iframe")).style.display="none",ne.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ie("document.F=Object")),t.close(),t.F);for(var r=pt.length;r--;)delete ce.prototype[pt[r]];return ce()};z[oe]=!0;var se=Object.create||function(t,e){var r;return null!==t?(ae.prototype=M(t),r=new ae,ae.prototype=null,r[oe]=t):r=ce(),void 0===e?r:re(r,e)},ue=Bt("unscopables"),fe=Array.prototype;null==fe[ue]&&P.f(fe,ue,{configurable:!0,value:se(null)});var le,he,ye,pe=function(t){fe[ue][t]=!0},ge=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),be=B("IE_PROTO"),de=Object.prototype,ve=ge?Object.getPrototypeOf:function(t){return t=Pt(t),m(t,be)?t[be]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?de:null},Se=Bt("iterator"),me=!1;[].keys&&("next"in(ye=[].keys())?(he=ve(ve(ye)))!==Object.prototype&&(le=he):me=!0),null==le&&(le={}),m(le,Se)||L(le,Se,(function(){return this}));var Oe={IteratorPrototype:le,BUGGY_SAFARI_ITERATORS:me},ke=P.f,we=Bt("toStringTag"),je=function(t,e,r){t&&!m(t=r?t:t.prototype,we)&&ke(t,we,{configurable:!0,value:e})},Te=Oe.IteratorPrototype,Ae=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return M(r),function(t){if(!d(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Me=Oe.IteratorPrototype,Ee=Oe.BUGGY_SAFARI_ITERATORS,Pe=Bt("iterator"),Le=function(){return this},Ce=$.set,De=$.getterFor("Array Iterator"),Ie=function(t,e,r,n,o,a,i){!function(t,e,r){var n=e+" Iterator";t.prototype=se(Te,{next:f(1,r)}),je(t,n,!1)}(r,e,n);var c,s,u,l=function(t){if(t===o&&b)return b;if(!Ee&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",y=!1,p=t.prototype,g=p[Pe]||p["@@iterator"]||o&&p[o],b=!Ee&&g||l(o),d="Array"==e&&p.entries||g;if(d&&(c=ve(d.call(new t)),Me!==Object.prototype&&c.next&&(ve(c)!==Me&&(Ae?Ae(c,Me):"function"!=typeof c[Pe]&&L(c,Pe,Le)),je(c,h,!0))),"values"==o&&g&&"values"!==g.name&&(y=!0,b=function(){return g.call(this)}),p[Pe]!==b&&L(p,Pe,b),o)if(s={values:l("values"),keys:a?b:l("keys"),entries:l("entries")},i)for(u in s)(Ee||y||!(u in p))&&tt(p,u,s[u]);else Et({target:e,proto:!0,forced:Ee||y},s);return s}(Array,"Array",(function(t,e){Ce(this,{type:"Array Iterator",target:b(t),index:0,kind:e})}),(function(){var t=De(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");pe("keys"),pe("values"),pe("entries");var Re=Bt("iterator"),_e=Bt("toStringTag"),He=Ie.values;for(var xe in ee){var Fe=o[xe],Ye=Fe&&Fe.prototype;if(Ye){if(Ye[Re]!==He)try{L(Ye,Re,He)}catch(t){Ye[Re]=He}if(Ye[_e]||L(Ye,_e,xe),ee[xe])for(var Ne in Ie)if(Ye[Ne]!==Ie[Ne])try{L(Ye,Ne,Ie[Ne])}catch(t){Ye[Ne]=Ie[Ne]}}}const Ve=require("./holiday-readings.json"),Ge=require("./aliyot.json");function qe(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getDate(),o=n.getDate(),a=e.getDesc(),i=e.getAttrs(),c=n.abs()%7,s=6==c,u=1==o||30==o;if(1==o&&n.getMonth()==t.common.months.TISHREI)return s?"Rosh Hashana I (on Shabbat)":"Rosh Hashana I";if(i&&i.cholHaMoedDay){const t=a.substring(0,a.indexOf(" "));if(s)return t+" Shabbat Chol ha-Moed";if("Sukkot VII (Hoshana Raba)"==a)return"Sukkot Final Day (Hoshana Raba)";let e=i.cholHaMoedDay;return"Pesach"==t&&e>=3&&(0==c&&4==e?e=3:1==c&&5==e&&(e=4)),"".concat(t," Chol ha-Moed Day ").concat(e)}if(i&&i.chanukahDay)return s&&u?"Shabbat Rosh Chodesh Chanukah":u&&7==i.chanukahDay?"Chanukah (Day 7 on Rosh Chodesh)":"Chanukah (Day ".concat(i.chanukahDay,")");if(u&&("Shabbat HaChodesh"==a||"Shabbat Shekalim"==a))return a+" (on Rosh Chodesh)";if("Shavuot"==a)return"Shavuot I";if(r&&"Shmini Atzeret"==a)return"Simchat Torah";if(s&&!a.startsWith("Shabbat")){const t=a+" (on Shabbat)";if(Ve[t])return t}return Ve[a]?a:s&&u?"Shabbat Rosh Chodesh":!s||30!=n.next().getDate()&&1!=n.next().getDate()?void 0:"Shabbat Machar Chodesh"}function We(t){let e=t[0];return 2==t.length&&(e+="-"+t[1]),e}function Be(t){return 1==t.length||"Nitzavim"==t[0]?t[0]:t[1]}function ze(t,e){let r;return r=e[7]?function(t){const e=t[6],r=t[7],n=Object.assign({},t);return delete n[7],n[6]={k:e.k,b:e.b,e:r.e},e.v&&r.v&&(n[6].v=e.v+r.v),n}(t):Object.assign({},t),Object.assign(r,e)}function Ue(t,e){if("Shabbat Rosh Chodesh Chanukah"==e)return;const r=t.getAttrs();return r&&r.chanukahDay?8==r.chanukahDay?"Shabbat Chanukah II":"Shabbat Chanukah":void 0}function Ke(e,r){const n=t.holidays.getHolidaysOnDate(e)||[];return n.filter(e=>!(e.getFlags()&t.flags.ROSH_CHODESH&&n.length>1)&&(r&&e.observedInIsrael()||!r&&e.observedInDiaspora()))}const Ze=[21,26,28,31,38,41,50],Je={};function Xe(e){return t.parshiot[e]+"-"+t.parshiot[e+1]}Ze.forEach(t=>{Je[t]=!0,Je[t+1]=!0});let Qe,$e;class tr{constructor(e,r){"object"==typeof r&&"object"==typeof r.Bereshit?(Qe=r,$e=tr.getTriennialAliyot()):Qe||(console.debug("Loading ".concat("./aliyot.json","...")),Qe=require("./aliyot.json"),$e=tr.getTriennialAliyot());const n=e||(new t.HDate).getFullYear(),o=tr.getYearNumber(n);this.startYear=tr.getCycleStartYear(n),console.debug("Hebrew year ".concat(n," is year ").concat(o,"; triennial cycle started year ").concat(this.startYear));const a=new t.Sedra(this.startYear,!1).getSedraArray();this.bereshit=[0],this.sedraArray=a.slice(a.indexOf(0));for(let e=1;e<4;e++){const r=new t.Sedra(this.startYear+e,!1).getSedraArray();this.bereshit[e]=this.sedraArray.length+r.indexOf(0),this.sedraArray=this.sedraArray.concat(r)}const i=this.calcVariationOptions();this.readings=this.cycleReadings(i)}getReadings(){return this.readings}getStartYear(){return this.startYear}static getYearNumber(t){return Math.abs((t-5756)%3)+1}static getCycleStartYear(t){return t-(this.getYearNumber(t)-1)}getThreeYearPattern(t){let e="";for(const r of[0,1,2]){let n=this.sedraArray.indexOf(-1*t,this.bereshit[r]);n>this.bereshit[r+1]&&(n=-1);e+=-1==n?"S":"T"}return e}calcVariationOptions(){const e={};for(const r of Ze){const n=this.getThreeYearPattern(r),o=Xe(r),a="TTT"===n?"Y":Qe[o].triennial.patterns[n];if(void 0===a)throw new Error("Can't find pattern ".concat(n," for ").concat(o));const i=t.parshiot[r],c=t.parshiot[r+1];e[o]=e[i]=e[c]=a,console.debug(" ".concat(o," ").concat(n," (").concat(e[o],")"))}return e}cycleReadings(e){const r=new Map;for(const e of t.parshiot)r.set(e,[]);for(const t of Ze){const e=Xe(t);r.set(e,[])}for(const t of[0,1,2])this.cycleReadingsForYear(e,r,t);return r}cycleReadingsForYear(e,r,n){const o=this.bereshit[n],a=this.bereshit[n+1],i=this.sedraArray.slice(o,a);for(const o of i){if("number"!=typeof o)continue;const a=o<0?Xe(-o):t.parshiot[o],i=(Je[o]?e[a]:"Y")+"."+(n+1),c=$e[a][i];if(!c)throw new Error("can't find ".concat(a," year ").concat(n," (variation ").concat(i,")"));r.get(a)[n]=c}for(const e of Ze){const o=Xe(e);if(r.get(o)[n]){const a=t.parshiot[e],i=t.parshiot[e+1];r.get(a)[n]=r.get(i)[n]={readTogether:o}}}}static getTriennialAliyot(){const t={},e={};for(const[r,n]of Object.entries(Qe))n.triennial&&(t[r]=tr.resolveSameAs(r,n.book,n.triennial),n.triennial.alt&&(e[r]=tr.resolveSameAs(r,n.book,n.triennial.alt)));return t}static resolveSameAs(t,e,r){const n=r.years||r.variations;if(void 0===n)throw new Error("Parashat ".concat(t," has no years or variations"));const o={};for(const[t,r]of Object.entries(n))if("object"==typeof r){const n={};for(const[t,o]of Object.entries(r)){const r={book:e,begin:o.b,end:o.e};o.v&&(r.numverses=o.v),n[t]=r}o[t]=n}for(const[e,r]of Object.entries(n))if("string"==typeof r){if(void 0===o[r])throw new Error("Can't find source for ".concat(t," ").concat(e," sameas=").concat(r));o[e]=o[r]}return o}}const er=new Map;return{Triennial:tr,getTriennial:function(t){const e=tr.getCycleStartYear(t),r=er.get(e);if(r)return r;const n=new tr(e);return er.set(e,n),n},getLeyningForHoliday:function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e instanceof t.Event)throw new TypeError("Bad event argument: ".concat(e));if(e.getFlags()&t.flags.PARSHA_HASHAVUA)throw new TypeError("Event should be a holiday: ".concat(e.getDesc()));const n=qe(e,r),o=Ve[n];if(void 0===o)return o;const a={};if(o.haftara&&(a.haftara=o.haftara),o.fullkriyah){a.fullkriyah=Object.assign({},o.fullkriyah);const t=a.fullkriyah[1],e=Object.keys(a.fullkriyah).filter(t=>Number(t)>0).sort(),r=e[e.length-1],n=a.fullkriyah[r];a.summary="".concat(t.k," ").concat(t.b,"-").concat(n.e)}if("Sukkot Shabbat Chol ha-Moed"==n){const t=e.getAttrs();a.fullkriyah.M=o.fullkriyah["M-day".concat(t.cholHaMoedDay)];for(const t of[1,2,3,4])delete a.fullkriyah["M-day".concat(t)]}return a},getLeyningForParshaHaShavua:function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e instanceof t.Event)throw new TypeError("Bad event argument: ".concat(e));if(e.getFlags()!=t.flags.PARSHA_HASHAVUA)throw new TypeError("Event must be parsha hashavua: ".concat(e.getDesc()));const n=e.getAttrs().parsha,o=We(n),a=Ge[o];let i=Ge[Be(n)].haftara,c={};for(const[t,e]of Object.entries(a.fullkriyah)){const r={k:a.book,b:e.b,e:e.e};e.v&&(r.v=e.v),c[t]=r}const s={},u=e.getDate();if("Pinchas"==o){const e=u.getMonth();(e>t.common.months.TAMUZ||e==t.common.months.TAMUZ&&u.getDate()>17)&&(i="Jeremiah 1:1 - 2:3",s.haftara="Pinchas occurring after 17 Tammuz")}const f=Ke(u,r);for(const t of f){const e=qe(t,r),n=Ve[e];if(n){const r=Ue(t,e);r?(i=Ve[r].haftara,s.haftara=r,c.M=Object.assign({},n.fullkriyah[1]),c.M.e=n.fullkriyah[3].e,s.M=e):(n.haftara&&!s.haftara&&(i=n.haftara,s.haftara=e),n.fullkriyah&&(c=ze(c,n.fullkriyah),Object.keys(n.fullkriyah).map(t=>s[t]=e)))}}const l={summary:"".concat(a.book," ").concat(a.verses),haftara:i,fullkriyah:c};return Object.keys(s).length&&(l.reason=s),a.sephardic&&(l.sephardic=a.sephardic),l},getLeyningKeyForEvent:qe,formatAliyahWithBook:function(t){return"".concat(t.k," ").concat(t.b," - ").concat(t.e)}}}));

@@ -5,2 +5,4 @@ 'use strict';

var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn, basedir, module) {

@@ -20,106 +22,160 @@ return module = {

var _core = createCommonjsModule(function (module) {
var core = module.exports = { version: '2.6.11' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
});
var _core_1 = _core.version;
var check = function (it) {
return it && it.Math == Math && it;
};
var _global = createCommonjsModule(function (module) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
var global_1 =
// eslint-disable-next-line no-undef
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
check(typeof self == 'object' && self) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
});
Function('return this')();
var _shared = createCommonjsModule(function (module) {
var SHARED = '__core-js_shared__';
var store = _global[SHARED] || (_global[SHARED] = {});
var fails = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: _core.version,
mode: 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
// Thank's IE8 for his funny defineProperty
var descriptors = !fails(function () {
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
});
var id = 0;
var px = Math.random();
var _uid = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var _wks = createCommonjsModule(function (module) {
var store = _shared('wks');
// Nashorn ~ JDK8 bug
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
var Symbol = _global.Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor(this, V);
return !!descriptor && descriptor.enumerable;
} : nativePropertyIsEnumerable;
var $exports = module.exports = function (name) {
return store[name] || (store[name] =
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name));
var objectPropertyIsEnumerable = {
f: f
};
$exports.store = store;
});
var createPropertyDescriptor = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
var _isObject = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
var toString = {}.toString;
var classofRaw = function (it) {
return toString.call(it).slice(8, -1);
};
var _anObject = function (it) {
if (!_isObject(it)) throw TypeError(it + ' is not an object!');
var split = ''.split;
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var indexedObject = fails(function () {
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
// eslint-disable-next-line no-prototype-builtins
return !Object('z').propertyIsEnumerable(0);
}) ? function (it) {
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
} : Object;
// `RequireObjectCoercible` abstract operation
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
var requireObjectCoercible = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
var _fails = function (exec) {
try {
return !!exec();
} catch (e) {
return true;
}
};
// toObject with fallback for non-array-like ES3 strings
// Thank's IE8 for his funny defineProperty
var _descriptors = !_fails(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
var document = _global.document;
// typeof document.createElement is 'object' in old IE
var is = _isObject(document) && _isObject(document.createElement);
var _domCreate = function (it) {
return is ? document.createElement(it) : {};
var toIndexedObject = function (it) {
return indexedObject(requireObjectCoercible(it));
};
var _ie8DomDefine = !_descriptors && !_fails(function () {
return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
});
var isObject = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
// 7.1.1 ToPrimitive(input [, PreferredType])
// `ToPrimitive` abstract operation
// https://tc39.github.io/ecma262/#sec-toprimitive
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
var _toPrimitive = function (it, S) {
if (!_isObject(it)) return it;
var toPrimitive = function (input, PREFERRED_STRING) {
if (!isObject(input)) return input;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
throw TypeError("Can't convert object to primitive value");
};
var dP = Object.defineProperty;
var hasOwnProperty = {}.hasOwnProperty;
var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
_anObject(O);
P = _toPrimitive(P, true);
_anObject(Attributes);
if (_ie8DomDefine) try {
return dP(O, P, Attributes);
} catch (e) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
var has = function (it, key) {
return hasOwnProperty.call(it, key);
};
var document$1 = global_1.document;
// typeof document.createElement is 'object' in old IE
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
var documentCreateElement = function (it) {
return EXISTS ? document$1.createElement(it) : {};
};
// Thank's IE8 for his funny defineProperty
var ie8DomDefine = !descriptors && !fails(function () {
return Object.defineProperty(documentCreateElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (ie8DomDefine) try {
return nativeGetOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
};
var objectGetOwnPropertyDescriptor = {
f: f$1
};
var anObject = function (it) {
if (!isObject(it)) {
throw TypeError(String(it) + ' is not an object');
} return it;
};
var nativeDefineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.github.io/ecma262/#sec-object.defineproperty
var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (ie8DomDefine) try {
return nativeDefineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;

@@ -129,17 +185,8 @@ return O;

var _objectDp = {
f: f
var objectDefineProperty = {
f: f$2
};
var _propertyDesc = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
var _hide = _descriptors ? function (object, key, value) {
return _objectDp.f(object, key, _propertyDesc(1, value));
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {

@@ -150,157 +197,165 @@ object[key] = value;

// 22.1.3.31 Array.prototype[@@unscopables]
var UNSCOPABLES = _wks('unscopables');
var ArrayProto = Array.prototype;
if (ArrayProto[UNSCOPABLES] == undefined) _hide(ArrayProto, UNSCOPABLES, {});
var _addToUnscopables = function (key) {
ArrayProto[UNSCOPABLES][key] = true;
var setGlobal = function (key, value) {
try {
createNonEnumerableProperty(global_1, key, value);
} catch (error) {
global_1[key] = value;
} return value;
};
var _iterStep = function (done, value) {
return { value: value, done: !!done };
};
var SHARED = '__core-js_shared__';
var store = global_1[SHARED] || setGlobal(SHARED, {});
var _iterators = {};
var sharedStore = store;
var toString = {}.toString;
var functionToString = Function.toString;
var _cof = function (it) {
return toString.call(it).slice(8, -1);
};
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
if (typeof sharedStore.inspectSource != 'function') {
sharedStore.inspectSource = function (it) {
return functionToString.call(it);
};
}
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var inspectSource = sharedStore.inspectSource;
// eslint-disable-next-line no-prototype-builtins
var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return _cof(it) == 'String' ? it.split('') : Object(it);
var WeakMap = global_1.WeakMap;
var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
var shared = createCommonjsModule(function (module) {
(module.exports = function (key, value) {
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
})('versions', []).push({
version: '3.6.5',
mode: 'global',
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});
});
var id = 0;
var postfix = Math.random();
var uid = function (key) {
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
};
// 7.2.1 RequireObjectCoercible(argument)
var _defined = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
var keys = shared('keys');
var sharedKey = function (key) {
return keys[key] || (keys[key] = uid(key));
};
// to indexed object, toObject with fallback for non-array-like ES3 strings
var hiddenKeys = {};
var WeakMap$1 = global_1.WeakMap;
var set, get, has$1;
var _toIobject = function (it) {
return _iobject(_defined(it));
var enforce = function (it) {
return has$1(it) ? get(it) : set(it, {});
};
var hasOwnProperty = {}.hasOwnProperty;
var _has = function (it, key) {
return hasOwnProperty.call(it, key);
var getterFor = function (TYPE) {
return function (it) {
var state;
if (!isObject(it) || (state = get(it)).type !== TYPE) {
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
} return state;
};
};
var _functionToString = _shared('native-function-to-string', Function.toString);
if (nativeWeakMap) {
var store$1 = new WeakMap$1();
var wmget = store$1.get;
var wmhas = store$1.has;
var wmset = store$1.set;
set = function (it, metadata) {
wmset.call(store$1, it, metadata);
return metadata;
};
get = function (it) {
return wmget.call(store$1, it) || {};
};
has$1 = function (it) {
return wmhas.call(store$1, it);
};
} else {
var STATE = sharedKey('state');
hiddenKeys[STATE] = true;
set = function (it, metadata) {
createNonEnumerableProperty(it, STATE, metadata);
return metadata;
};
get = function (it) {
return has(it, STATE) ? it[STATE] : {};
};
has$1 = function (it) {
return has(it, STATE);
};
}
var _redefine = createCommonjsModule(function (module) {
var SRC = _uid('src');
var internalState = {
set: set,
get: get,
has: has$1,
enforce: enforce,
getterFor: getterFor
};
var TO_STRING = 'toString';
var TPL = ('' + _functionToString).split(TO_STRING);
var redefine = createCommonjsModule(function (module) {
var getInternalState = internalState.get;
var enforceInternalState = internalState.enforce;
var TEMPLATE = String(String).split('String');
_core.inspectSource = function (it) {
return _functionToString.call(it);
};
(module.exports = function (O, key, val, safe) {
var isFunction = typeof val == 'function';
if (isFunction) _has(val, 'name') || _hide(val, 'name', key);
if (O[key] === val) return;
if (isFunction) _has(val, SRC) || _hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
if (O === _global) {
O[key] = val;
} else if (!safe) {
(module.exports = function (O, key, value, options) {
var unsafe = options ? !!options.unsafe : false;
var simple = options ? !!options.enumerable : false;
var noTargetGet = options ? !!options.noTargetGet : false;
if (typeof value == 'function') {
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
}
if (O === global_1) {
if (simple) O[key] = value;
else setGlobal(key, value);
return;
} else if (!unsafe) {
delete O[key];
_hide(O, key, val);
} else if (O[key]) {
O[key] = val;
} else {
_hide(O, key, val);
} else if (!noTargetGet && O[key]) {
simple = true;
}
if (simple) O[key] = value;
else createNonEnumerableProperty(O, key, value);
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, TO_STRING, function toString() {
return typeof this == 'function' && this[SRC] || _functionToString.call(this);
})(Function.prototype, 'toString', function toString() {
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
});
});
var _aFunction = function (it) {
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
return it;
};
var path = global_1;
// optional / simple context binding
var _ctx = function (fn, that, length) {
_aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 1: return function (a) {
return fn.call(that, a);
};
case 2: return function (a, b) {
return fn.call(that, a, b);
};
case 3: return function (a, b, c) {
return fn.call(that, a, b, c);
};
}
return function (/* ...args */) {
return fn.apply(that, arguments);
};
var aFunction = function (variable) {
return typeof variable == 'function' ? variable : undefined;
};
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
var IS_FORCED = type & $export.F;
var IS_GLOBAL = type & $export.G;
var IS_STATIC = type & $export.S;
var IS_PROTO = type & $export.P;
var IS_BIND = type & $export.B;
var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] || (_global[name] = {}) : (_global[name] || {})[PROTOTYPE];
var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
var key, own, out, exp;
if (IS_GLOBAL) source = name;
for (key in source) {
// contains in native
own = !IS_FORCED && target && target[key] !== undefined;
// export native or passed
out = (own ? target : source)[key];
// bind timers to global for call from export context
exp = IS_BIND && own ? _ctx(out, _global) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
// extend global
if (target) _redefine(target, key, out, type & $export.U);
// export
if (exports[key] != out) _hide(exports, key, exp);
if (IS_PROTO && expProto[key] != out) expProto[key] = out;
}
var getBuiltIn = function (namespace, method) {
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
};
_global.core = _core;
// type bitmap
$export.F = 1; // forced
$export.G = 2; // global
$export.S = 4; // static
$export.P = 8; // proto
$export.B = 16; // bind
$export.W = 32; // wrap
$export.U = 64; // safe
$export.R = 128; // real proto method for `library`
var _export = $export;
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
var _toInteger = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
// `ToInteger` abstract operation
// https://tc39.github.io/ecma262/#sec-tointeger
var toInteger = function (argument) {
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
};
// 7.1.15 ToLength
var min = Math.min;
var min = Math.min;
var _toLength = function (it) {
return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
// `ToLength` abstract operation
// https://tc39.github.io/ecma262/#sec-tolength
var toLength = function (argument) {
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
};

@@ -310,17 +365,17 @@

var min$1 = Math.min;
var _toAbsoluteIndex = function (index, length) {
index = _toInteger(index);
return index < 0 ? max(index + length, 0) : min$1(index, length);
// Helper for a popular repeating case of the spec:
// Let integer be ? ToInteger(index).
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
var toAbsoluteIndex = function (index, length) {
var integer = toInteger(index);
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
};
// false -> Array#indexOf
// true -> Array#includes
var _arrayIncludes = function (IS_INCLUDES) {
// `Array.prototype.{ indexOf, includes }` methods implementation
var createMethod = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = _toIobject($this);
var length = _toLength(O.length);
var index = _toAbsoluteIndex(fromIndex, length);
var O = toIndexedObject($this);
var length = toLength(O.length);
var index = toAbsoluteIndex(fromIndex, length);
var value;

@@ -334,4 +389,4 @@ // Array#includes uses SameValueZero equality algorithm

// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
if (O[index] === el) return IS_INCLUDES || index || 0;
} else for (;length > index; index++) {
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;

@@ -341,20 +396,23 @@ };

var shared = _shared('keys');
var _sharedKey = function (key) {
return shared[key] || (shared[key] = _uid(key));
var arrayIncludes = {
// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
includes: createMethod(true),
// `Array.prototype.indexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
indexOf: createMethod(false)
};
var arrayIndexOf = _arrayIncludes(false);
var IE_PROTO = _sharedKey('IE_PROTO');
var indexOf = arrayIncludes.indexOf;
var _objectKeysInternal = function (object, names) {
var O = _toIobject(object);
var objectKeysInternal = function (object, names) {
var O = toIndexedObject(object);
var i = 0;
var result = [];
var key;
for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (_has(O, key = names[i++])) {
~arrayIndexOf(result, key) || result.push(key);
while (names.length > i) if (has(O, key = names[i++])) {
~indexOf(result, key) || result.push(key);
}

@@ -364,276 +422,690 @@ return result;

// IE 8- don't enum bug keys
var _enumBugKeys = (
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');
// IE8- don't enum bug keys
var enumBugKeys = [
'constructor',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'toLocaleString',
'toString',
'valueOf'
];
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return objectKeysInternal(O, hiddenKeys$1);
};
var objectGetOwnPropertyNames = {
f: f$3
};
var _objectKeys = Object.keys || function keys(O) {
return _objectKeysInternal(O, _enumBugKeys);
var f$4 = Object.getOwnPropertySymbols;
var objectGetOwnPropertySymbols = {
f: f$4
};
var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
_anObject(O);
var keys = _objectKeys(Properties);
// all object keys, includes non-enumerable and symbols
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
var keys = objectGetOwnPropertyNames.f(anObject(it));
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
};
var copyConstructorProperties = function (target, source) {
var keys = ownKeys(source);
var defineProperty = objectDefineProperty.f;
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
};
var replacement = /#|\.prototype\./;
var isForced = function (feature, detection) {
var value = data[normalize(feature)];
return value == POLYFILL ? true
: value == NATIVE ? false
: typeof detection == 'function' ? fails(detection)
: !!detection;
};
var normalize = isForced.normalize = function (string) {
return String(string).replace(replacement, '.').toLowerCase();
};
var data = isForced.data = {};
var NATIVE = isForced.NATIVE = 'N';
var POLYFILL = isForced.POLYFILL = 'P';
var isForced_1 = isForced;
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
/*
options.target - name of the target object
options.global - target is the global object
options.stat - export as static methods of target
options.proto - export as prototype methods of target
options.real - real prototype method for the `pure` version
options.forced - export even if the native feature is available
options.bind - bind methods to the target, required for the `pure` version
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
options.unsafe - use the simple assignment of property instead of delete + defineProperty
options.sham - add a flag to not completely full polyfills
options.enumerable - export as enumerable property
options.noTargetGet - prevent calling a getter on target
*/
var _export = function (options, source) {
var TARGET = options.target;
var GLOBAL = options.global;
var STATIC = options.stat;
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
if (GLOBAL) {
target = global_1;
} else if (STATIC) {
target = global_1[TARGET] || setGlobal(TARGET, {});
} else {
target = (global_1[TARGET] || {}).prototype;
}
if (target) for (key in source) {
sourceProperty = source[key];
if (options.noTargetGet) {
descriptor = getOwnPropertyDescriptor$1(target, key);
targetProperty = descriptor && descriptor.value;
} else targetProperty = target[key];
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
// contained in target
if (!FORCED && targetProperty !== undefined) {
if (typeof sourceProperty === typeof targetProperty) continue;
copyConstructorProperties(sourceProperty, targetProperty);
}
// add a flag to not completely full polyfills
if (options.sham || (targetProperty && targetProperty.sham)) {
createNonEnumerableProperty(sourceProperty, 'sham', true);
}
// extend global
redefine(target, key, sourceProperty, options);
}
};
var aFunction$1 = function (it) {
if (typeof it != 'function') {
throw TypeError(String(it) + ' is not a function');
} return it;
};
// `ToObject` abstract operation
// https://tc39.github.io/ecma262/#sec-toobject
var toObject = function (argument) {
return Object(requireObjectCoercible(argument));
};
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails(function () {
// eslint-disable-next-line no-useless-call,no-throw-literal
method.call(null, argument || function () { throw 1; }, 1);
});
};
var test = [];
var nativeSort = test.sort;
// IE8-
var FAILS_ON_UNDEFINED = fails(function () {
test.sort(undefined);
});
// V8 bug
var FAILS_ON_NULL = fails(function () {
test.sort(null);
});
// Old WebKit
var STRICT_METHOD = arrayMethodIsStrict('sort');
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD;
// `Array.prototype.sort` method
// https://tc39.github.io/ecma262/#sec-array.prototype.sort
_export({ target: 'Array', proto: true, forced: FORCED }, {
sort: function sort(comparefn) {
return comparefn === undefined
? nativeSort.call(toObject(this))
: nativeSort.call(toObject(this), aFunction$1(comparefn));
}
});
// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
var objectKeys = Object.keys || function keys(O) {
return objectKeysInternal(O, enumBugKeys);
};
var nativeAssign = Object.assign;
var defineProperty = Object.defineProperty;
// `Object.assign` method
// https://tc39.github.io/ecma262/#sec-object.assign
var objectAssign = !nativeAssign || fails(function () {
// should have correct order of operations (Edge bug)
if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
enumerable: true,
get: function () {
defineProperty(this, 'b', {
value: 3,
enumerable: false
});
}
}), { b: 2 })).b !== 1) return true;
// should work with symbols and should have deterministic property order (V8 bug)
var A = {};
var B = {};
// eslint-disable-next-line no-undef
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
var T = toObject(target);
var argumentsLength = arguments.length;
var index = 1;
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
while (argumentsLength > index) {
var S = indexedObject(arguments[index++]);
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) {
key = keys[j++];
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
}
} return T;
} : nativeAssign;
// `Object.assign` method
// https://tc39.github.io/ecma262/#sec-object.assign
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
assign: objectAssign
});
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return !String(Symbol());
});
var useSymbolAsUid = nativeSymbol
// eslint-disable-next-line no-undef
&& !Symbol.sham
// eslint-disable-next-line no-undef
&& typeof Symbol.iterator == 'symbol';
var WellKnownSymbolsStore = shared('wks');
var Symbol$1 = global_1.Symbol;
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
var wellKnownSymbol = function (name) {
if (!has(WellKnownSymbolsStore, name)) {
if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
} return WellKnownSymbolsStore[name];
};
var MATCH = wellKnownSymbol('match');
// `IsRegExp` abstract operation
// https://tc39.github.io/ecma262/#sec-isregexp
var isRegexp = function (it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
};
var notARegexp = function (it) {
if (isRegexp(it)) {
throw TypeError("The method doesn't accept regular expressions");
} return it;
};
var MATCH$1 = wellKnownSymbol('match');
var correctIsRegexpLogic = function (METHOD_NAME) {
var regexp = /./;
try {
'/./'[METHOD_NAME](regexp);
} catch (e) {
try {
regexp[MATCH$1] = false;
return '/./'[METHOD_NAME](regexp);
} catch (f) { /* empty */ }
} return false;
};
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
var nativeStartsWith = ''.startsWith;
var min$2 = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegexpLogic('startsWith');
// https://github.com/zloirock/core-js/pull/702
var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
var descriptor = getOwnPropertyDescriptor$2(String.prototype, 'startsWith');
return descriptor && !descriptor.writable;
}();
// `String.prototype.startsWith` method
// https://tc39.github.io/ecma262/#sec-string.prototype.startswith
_export({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
startsWith: function startsWith(searchString /* , position = 0 */) {
var that = String(requireObjectCoercible(this));
notARegexp(searchString);
var index = toLength(min$2(arguments.length > 1 ? arguments[1] : undefined, that.length));
var search = String(searchString);
return nativeStartsWith
? nativeStartsWith.call(that, search, index)
: that.slice(index, index + search.length) === search;
}
});
// iterable DOM collections
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
var domIterables = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
};
// `Object.defineProperties` method
// https://tc39.github.io/ecma262/#sec-object.defineproperties
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
var length = keys.length;
var i = 0;
var P;
while (length > i) _objectDp.f(O, P = keys[i++], Properties[P]);
var index = 0;
var key;
while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
return O;
};
var document$1 = _global.document;
var _html = document$1 && document$1.documentElement;
var html = getBuiltIn('document', 'documentElement');
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var GT = '>';
var LT = '<';
var PROTOTYPE = 'prototype';
var SCRIPT = 'script';
var IE_PROTO = sharedKey('IE_PROTO');
var EmptyConstructor = function () { /* empty */ };
var scriptTag = function (content) {
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
};
var IE_PROTO$1 = _sharedKey('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE$1 = 'prototype';
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
var NullProtoObjectViaActiveX = function (activeXDocument) {
activeXDocument.write(scriptTag(''));
activeXDocument.close();
var temp = activeXDocument.parentWindow.Object;
activeXDocument = null; // avoid memory leak
return temp;
};
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
var NullProtoObjectViaIFrame = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = _domCreate('iframe');
var i = _enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframe = documentCreateElement('iframe');
var JS = 'java' + SCRIPT + ':';
var iframeDocument;
iframe.style.display = 'none';
_html.appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
html.appendChild(iframe);
// https://github.com/zloirock/core-js/issues/475
iframe.src = String(JS);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.write(scriptTag('document.F=Object'));
iframeDocument.close();
createDict = iframeDocument.F;
while (i--) delete createDict[PROTOTYPE$1][_enumBugKeys[i]];
return createDict();
return iframeDocument.F;
};
var _objectCreate = Object.create || function create(O, Properties) {
// Check for document.domain and active x support
// No need to use active x approach when document.domain is not set
// see https://github.com/es-shims/es5-shim/issues/150
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
// avoid IE GC bug
var activeXDocument;
var NullProtoObject = function () {
try {
/* global ActiveXObject */
activeXDocument = document.domain && new ActiveXObject('htmlfile');
} catch (error) { /* ignore */ }
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
var length = enumBugKeys.length;
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
return NullProtoObject();
};
hiddenKeys[IE_PROTO] = true;
// `Object.create` method
// https://tc39.github.io/ecma262/#sec-object.create
var objectCreate = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
Empty[PROTOTYPE$1] = _anObject(O);
result = new Empty();
Empty[PROTOTYPE$1] = null;
EmptyConstructor[PROTOTYPE] = anObject(O);
result = new EmptyConstructor();
EmptyConstructor[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO$1] = O;
} else result = createDict();
return Properties === undefined ? result : _objectDps(result, Properties);
result[IE_PROTO] = O;
} else result = NullProtoObject();
return Properties === undefined ? result : objectDefineProperties(result, Properties);
};
var def = _objectDp.f;
var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;
var TAG = _wks('toStringTag');
// Array.prototype[@@unscopables]
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] == undefined) {
objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
configurable: true,
value: objectCreate(null)
});
}
var _setToStringTag = function (it, tag, stat) {
if (it && !_has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
// add a key to Array.prototype[@@unscopables]
var addToUnscopables = function (key) {
ArrayPrototype[UNSCOPABLES][key] = true;
};
var IteratorPrototype = {};
var correctPrototypeGetter = !fails(function () {
function F() { /* empty */ }
F.prototype.constructor = null;
return Object.getPrototypeOf(new F()) !== F.prototype;
});
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
_hide(IteratorPrototype, _wks('iterator'), function () { return this; });
var IE_PROTO$1 = sharedKey('IE_PROTO');
var ObjectPrototype = Object.prototype;
var _iterCreate = function (Constructor, NAME, next) {
Constructor.prototype = _objectCreate(IteratorPrototype, { next: _propertyDesc(1, next) });
_setToStringTag(Constructor, NAME + ' Iterator');
// `Object.getPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
O = toObject(O);
if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
} return O instanceof Object ? ObjectPrototype : null;
};
// 7.1.13 ToObject(argument)
var ITERATOR = wellKnownSymbol('iterator');
var BUGGY_SAFARI_ITERATORS = false;
var _toObject = function (it) {
return Object(_defined(it));
var returnThis = function () { return this; };
// `%IteratorPrototype%` object
// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
if ([].keys) {
arrayIterator = [].keys();
// Safari 8 has buggy iterators w/o `next`
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
else {
PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
}
}
if (IteratorPrototype == undefined) IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
if ( !has(IteratorPrototype, ITERATOR)) {
createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
}
var iteratorsCore = {
IteratorPrototype: IteratorPrototype,
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
};
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var defineProperty$1 = objectDefineProperty.f;
var IE_PROTO$2 = _sharedKey('IE_PROTO');
var ObjectProto = Object.prototype;
var _objectGpo = Object.getPrototypeOf || function (O) {
O = _toObject(O);
if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
} return O instanceof Object ? ObjectProto : null;
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var setToStringTag = function (it, TAG, STATIC) {
if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
}
};
var ITERATOR = _wks('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
var TO_STRING_TAG = NAME + ' Iterator';
IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
return IteratorConstructor;
};
var aPossiblePrototype = function (it) {
if (!isObject(it) && it !== null) {
throw TypeError("Can't set " + String(it) + ' as a prototype');
} return it;
};
// `Object.setPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.setprototypeof
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
var CORRECT_SETTER = false;
var test = {};
var setter;
try {
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
setter.call(test, []);
CORRECT_SETTER = test instanceof Array;
} catch (error) { /* empty */ }
return function setPrototypeOf(O, proto) {
anObject(O);
aPossiblePrototype(proto);
if (CORRECT_SETTER) setter.call(O, proto);
else O.__proto__ = proto;
return O;
};
}() : undefined);
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR$1 = wellKnownSymbol('iterator');
var KEYS = 'keys';
var VALUES = 'values';
var ENTRIES = 'entries';
var returnThis = function () { return this; };
var returnThis$1 = function () { return this; };
var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
_iterCreate(Constructor, NAME, next);
var getMethod = function (kind) {
if (!BUGGY && kind in proto) return proto[kind];
switch (kind) {
case KEYS: return function keys() { return new Constructor(this, kind); };
case VALUES: return function values() { return new Constructor(this, kind); };
} return function entries() { return new Constructor(this, kind); };
var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
createIteratorConstructor(IteratorConstructor, NAME, next);
var getIterationMethod = function (KIND) {
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
switch (KIND) {
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
} return function () { return new IteratorConstructor(this); };
};
var TAG = NAME + ' Iterator';
var DEF_VALUES = DEFAULT == VALUES;
var VALUES_BUG = false;
var proto = Base.prototype;
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
var $default = $native || getMethod(DEFAULT);
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
var methods, key, IteratorPrototype;
// Fix native
if ($anyNative) {
IteratorPrototype = _objectGpo($anyNative.call(new Base()));
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
var TO_STRING_TAG = NAME + ' Iterator';
var INCORRECT_VALUES_NAME = false;
var IterablePrototype = Iterable.prototype;
var nativeIterator = IterablePrototype[ITERATOR$1]
|| IterablePrototype['@@iterator']
|| DEFAULT && IterablePrototype[DEFAULT];
var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
var CurrentIteratorPrototype, methods, KEY;
// fix native
if (anyNativeIterator) {
CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
if (objectSetPrototypeOf) {
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
} else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
}
}
// Set @@toStringTag to native iterators
_setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
if ( typeof IteratorPrototype[ITERATOR] != 'function') _hide(IteratorPrototype, ITERATOR, returnThis);
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEF_VALUES && $native && $native.name !== VALUES) {
VALUES_BUG = true;
$default = function values() { return $native.call(this); };
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
INCORRECT_VALUES_NAME = true;
defaultIterator = function values() { return nativeIterator.call(this); };
}
// Define iterator
if ( (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
_hide(proto, ITERATOR, $default);
// define iterator
if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
}
// Plug for library
_iterators[NAME] = $default;
_iterators[TAG] = returnThis;
// export additional methods
if (DEFAULT) {
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
keys: IS_SET ? $default : getMethod(KEYS),
entries: $entries
values: getIterationMethod(VALUES),
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
entries: getIterationMethod(ENTRIES)
};
if (FORCED) for (key in methods) {
if (!(key in proto)) _redefine(proto, key, methods[key]);
} else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);
if (FORCED) for (KEY in methods) {
if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
redefine(IterablePrototype, KEY, methods[KEY]);
}
} else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
}
return methods;
};
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
this._t = _toIobject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
var ARRAY_ITERATOR = 'Array Iterator';
var setInternalState = internalState.set;
var getInternalState = internalState.getterFor(ARRAY_ITERATOR);
// `Array.prototype.entries` method
// https://tc39.github.io/ecma262/#sec-array.prototype.entries
// `Array.prototype.keys` method
// https://tc39.github.io/ecma262/#sec-array.prototype.keys
// `Array.prototype.values` method
// https://tc39.github.io/ecma262/#sec-array.prototype.values
// `Array.prototype[@@iterator]` method
// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
// `CreateArrayIterator` internal method
// https://tc39.github.io/ecma262/#sec-createarrayiterator
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
setInternalState(this, {
type: ARRAY_ITERATOR,
target: toIndexedObject(iterated), // target
index: 0, // next index
kind: kind // kind
});
// `%ArrayIteratorPrototype%.next` method
// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
}, function () {
var O = this._t;
var kind = this._k;
var index = this._i++;
if (!O || index >= O.length) {
this._t = undefined;
return _iterStep(1);
var state = getInternalState(this);
var target = state.target;
var kind = state.kind;
var index = state.index++;
if (!target || index >= target.length) {
state.target = undefined;
return { value: undefined, done: true };
}
if (kind == 'keys') return _iterStep(0, index);
if (kind == 'values') return _iterStep(0, O[index]);
return _iterStep(0, [index, O[index]]);
if (kind == 'keys') return { value: index, done: false };
if (kind == 'values') return { value: target[index], done: false };
return { value: [index, target[index]], done: false };
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
_iterators.Arguments = _iterators.Array;
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
_addToUnscopables('keys');
_addToUnscopables('values');
_addToUnscopables('entries');
var ITERATOR$2 = wellKnownSymbol('iterator');
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
var ArrayValues = es_array_iterator.values;
var ITERATOR$1 = _wks('iterator');
var TO_STRING_TAG = _wks('toStringTag');
var ArrayValues = _iterators.Array;
var DOMIterables = {
CSSRuleList: true, // TODO: Not spec compliant, should be false.
CSSStyleDeclaration: false,
CSSValueList: false,
ClientRectList: false,
DOMRectList: false,
DOMStringList: false,
DOMTokenList: true,
DataTransferItemList: false,
FileList: false,
HTMLAllCollection: false,
HTMLCollection: false,
HTMLFormElement: false,
HTMLSelectElement: false,
MediaList: true, // TODO: Not spec compliant, should be false.
MimeTypeArray: false,
NamedNodeMap: false,
NodeList: true,
PaintRequestList: false,
Plugin: false,
PluginArray: false,
SVGLengthList: false,
SVGNumberList: false,
SVGPathSegList: false,
SVGPointList: false,
SVGStringList: false,
SVGTransformList: false,
SourceBufferList: false,
StyleSheetList: true, // TODO: Not spec compliant, should be false.
TextTrackCueList: false,
TextTrackList: false,
TouchList: false
};
for (var collections = _objectKeys(DOMIterables), i = 0; i < collections.length; i++) {
var NAME = collections[i];
var explicit = DOMIterables[NAME];
var Collection = _global[NAME];
var proto = Collection && Collection.prototype;
var key;
if (proto) {
if (!proto[ITERATOR$1]) _hide(proto, ITERATOR$1, ArrayValues);
if (!proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
_iterators[NAME] = ArrayValues;
if (explicit) for (key in es6_array_iterator) if (!proto[key]) _redefine(proto, key, es6_array_iterator[key], true);
for (var COLLECTION_NAME in domIterables) {
var Collection = global_1[COLLECTION_NAME];
var CollectionPrototype = Collection && Collection.prototype;
if (CollectionPrototype) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
} catch (error) {
CollectionPrototype[ITERATOR$2] = ArrayValues;
}
if (!CollectionPrototype[TO_STRING_TAG$1]) {
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$1, COLLECTION_NAME);
}
if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
} catch (error) {
CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
}
}
}
}
var _strictMethod = function (method, arg) {
return !!method && _fails(function () {
// eslint-disable-next-line no-useless-call
arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);
});
};
var $sort = [].sort;
var test = [1, 2, 3];
_export(_export.P + _export.F * (_fails(function () {
// IE8-
test.sort(undefined);
}) || !_fails(function () {
// V8 bug
test.sort(null);
// Old WebKit
}) || !_strictMethod($sort)), 'Array', {
// 22.1.3.25 Array.prototype.sort(comparefn)
sort: function sort(comparefn) {
return comparefn === undefined
? $sort.call(_toObject(this))
: $sort.call(_toObject(this), _aFunction(comparefn));
}
});
const festivals = require('./holiday-readings.json');

@@ -640,0 +1112,0 @@

{
"name": "@hebcal/leyning",
"version": "1.0.9",
"version": "1.0.10",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -27,4 +27,3 @@ "keywords": [

"dependencies": {
"@hebcal/core": "^1.0.15",
"core-js": "^2.6.11"
"@hebcal/core": "^1.0.17"
},

@@ -67,2 +66,3 @@ "scripts": {

"ava": "^3.8.2",
"core-js": "^3.6.5",
"eslint": "^7.1.0",

@@ -69,0 +69,0 @@ "eslint-config-google": "^0.14.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc