@nylas/react 1.1.0-canary.4 → 1.1.0-canary.7

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.
Files changed (103) hide show
  1. package/dist/elements/index.d.ts +1 -0
  2. package/dist/{elements-dc5b338e-fb5dbfb5.js → elements-dc5b338e-6078b875.js} +1 -1
  3. package/dist/{elements-dc5b338e-81a0319c.cjs → elements-dc5b338e-96e197ca.cjs} +1 -1
  4. package/dist/focus-visible-e8093c16-018ffd63.cjs +1 -0
  5. package/dist/{focus-visible-e8093c16-28fc08a0.js → focus-visible-e8093c16-ab01d60a.js} +5 -3
  6. package/dist/index-1fd24ccf.js +3582 -0
  7. package/dist/index-823fdc6f.cjs +36 -0
  8. package/dist/react.cjs +1 -1
  9. package/dist/react.js +53 -52
  10. package/package.json +3 -3
  11. package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +0 -1
  12. package/dist/_commonjsHelpers-57e89916-af061c86.js +0 -19
  13. package/dist/add-circle-icon_22.entry-077661c3.cjs +0 -1
  14. package/dist/add-circle-icon_22.entry-f699d91e.js +0 -1733
  15. package/dist/archive-icon_7.entry-40b7ef3b.js +0 -75
  16. package/dist/archive-icon_7.entry-e8630de9.cjs +0 -1
  17. package/dist/arrow-icon.entry-58246303.js +0 -15
  18. package/dist/arrow-icon.entry-ffa53114.cjs +0 -1
  19. package/dist/bold-icon_3.entry-106a4e77.cjs +0 -1
  20. package/dist/bold-icon_3.entry-f5f1643d.js +0 -35
  21. package/dist/calendar-cancel-icon.entry-6ae0fd0f.cjs +0 -1
  22. package/dist/calendar-cancel-icon.entry-75b15b19.js +0 -15
  23. package/dist/calendar-check-icon_2.entry-57339318.js +0 -25
  24. package/dist/calendar-check-icon_2.entry-c57f83f3.cjs +0 -1
  25. package/dist/calendar-icon.entry-2069fec6.js +0 -15
  26. package/dist/calendar-icon.entry-492c2630.cjs +0 -1
  27. package/dist/chevron-icon_3.entry-83df50c3.js +0 -117
  28. package/dist/chevron-icon_3.entry-878ff6df.cjs +0 -1
  29. package/dist/close-icon.entry-480c199d.js +0 -15
  30. package/dist/close-icon.entry-8015ca05.cjs +0 -1
  31. package/dist/constants-6ee60d6d-4cd16450.js +0 -3740
  32. package/dist/constants-6ee60d6d-6c0540db.cjs +0 -15
  33. package/dist/document-refresh-icon.entry-06f7972b.cjs +0 -1
  34. package/dist/document-refresh-icon.entry-09870b14.js +0 -15
  35. package/dist/focus-visible-e8093c16-f380b705.cjs +0 -1
  36. package/dist/forward-icon_6.entry-8bb201eb.js +0 -955
  37. package/dist/forward-icon_6.entry-eeecf2a2.cjs +0 -3
  38. package/dist/globe-icon.entry-a690028c.cjs +0 -1
  39. package/dist/globe-icon.entry-d515cbfa.js +0 -15
  40. package/dist/google-logo-icon_3.entry-2164cec1.js +0 -258
  41. package/dist/google-logo-icon_3.entry-b2b85284.cjs +0 -1
  42. package/dist/index-2b8437d6.cjs +0 -30
  43. package/dist/index-db0c5017.js +0 -1824
  44. package/dist/index.es-2578c6a5-098d48d0.cjs +0 -7
  45. package/dist/index.es-2578c6a5-71441142.js +0 -3133
  46. package/dist/info-icon_2.entry-300ef196.js +0 -34
  47. package/dist/info-icon_2.entry-e286aaa5.cjs +0 -1
  48. package/dist/loading-icon.entry-6d8adaa4.js +0 -15
  49. package/dist/loading-icon.entry-dc40e97d.cjs +0 -1
  50. package/dist/mailbox-store-bb21512c-649a374c.js +0 -381
  51. package/dist/mailbox-store-bb21512c-fc3c8c03.cjs +0 -1
  52. package/dist/nylas-additional-participants.entry-4afba192.js +0 -83
  53. package/dist/nylas-additional-participants.entry-db05e510.cjs +0 -1
  54. package/dist/nylas-booked-event-card_10.entry-1ebbe0c0.js +0 -784
  55. package/dist/nylas-booked-event-card_10.entry-6b6fdfae.cjs +0 -1
  56. package/dist/nylas-form-card.entry-70b20571.cjs +0 -1
  57. package/dist/nylas-form-card.entry-7bc23695.js +0 -56
  58. package/dist/nylas-if-state.entry-3829cb3d.js +0 -96
  59. package/dist/nylas-if-state.entry-ebeffe22.cjs +0 -1
  60. package/dist/nylas-list-folders.entry-191688f2.cjs +0 -1
  61. package/dist/nylas-list-folders.entry-7347e78d.js +0 -122
  62. package/dist/nylas-list-threads.entry-432a8d8c.js +0 -72
  63. package/dist/nylas-list-threads.entry-44658578.cjs +0 -1
  64. package/dist/nylas-login.entry-5311f0a7.js +0 -75
  65. package/dist/nylas-login.entry-db17a3d2.cjs +0 -1
  66. package/dist/nylas-mailbox-pagination.entry-20150fb2.js +0 -103
  67. package/dist/nylas-mailbox-pagination.entry-9d3f5baa.cjs +0 -1
  68. package/dist/nylas-mailbox-toolbar-button.entry-6c0f7299.cjs +0 -1
  69. package/dist/nylas-mailbox-toolbar-button.entry-eec426d5.js +0 -84
  70. package/dist/nylas-mailbox.entry-b6c758b9.js +0 -136
  71. package/dist/nylas-mailbox.entry-d41401e0.cjs +0 -1
  72. package/dist/nylas-provider.entry-271cafd2.js +0 -147
  73. package/dist/nylas-provider.entry-6173b721.cjs +0 -1
  74. package/dist/nylas-scheduler-editor.entry-0c75d39e.cjs +0 -7
  75. package/dist/nylas-scheduler-editor.entry-b51ad4b1.js +0 -2192
  76. package/dist/nylas-scheduling.entry-081c8825.cjs +0 -1
  77. package/dist/nylas-scheduling.entry-0a8d1da8.js +0 -237
  78. package/dist/nylas-threads-refresh.entry-72dd854e.js +0 -76
  79. package/dist/nylas-threads-refresh.entry-c3509e6a.cjs +0 -1
  80. package/dist/nylas-threads-search.entry-16a59ef6.cjs +0 -1
  81. package/dist/nylas-threads-search.entry-4750a187.js +0 -71
  82. package/dist/nylas-view-thread.entry-27df3349.cjs +0 -1
  83. package/dist/nylas-view-thread.entry-c6adce43.js +0 -205
  84. package/dist/people-icon.entry-342be0c8.js +0 -15
  85. package/dist/people-icon.entry-35252ca9.cjs +0 -1
  86. package/dist/play-icon_2.entry-0787352c.js +0 -25
  87. package/dist/play-icon_2.entry-f83fa92a.cjs +0 -1
  88. package/dist/refresh-icon.entry-8fbabfe7.js +0 -15
  89. package/dist/refresh-icon.entry-ddbc5446.cjs +0 -1
  90. package/dist/register-component-dc659dc3-e43e8fae.js +0 -105
  91. package/dist/register-component-dc659dc3-fb85ee68.cjs +0 -1
  92. package/dist/scheduler-config-store-51ee4f42-66f8c2ac.js +0 -14
  93. package/dist/scheduler-config-store-51ee4f42-d7d9c25d.cjs +0 -1
  94. package/dist/scheduler-store-72116723-ce4c7a69.cjs +0 -1
  95. package/dist/scheduler-store-72116723-e5f87122.js +0 -294
  96. package/dist/time-period-selector.entry-333942a8.js +0 -78
  97. package/dist/time-period-selector.entry-78d5b3c2.cjs +0 -1
  98. package/dist/translate-icon.entry-87a62108.js +0 -15
  99. package/dist/translate-icon.entry-cb19864c.cjs +0 -1
  100. package/dist/utils-c00bdc3c-89ab163d.js +0 -2111
  101. package/dist/utils-c00bdc3c-94b9c3b6.cjs +0 -8
  102. package/dist/warning-icon.entry-50755d91.cjs +0 -1
  103. package/dist/warning-icon.entry-7a72e24a.js +0 -15
@@ -1,8 +0,0 @@
1
- "use strict";const be=require("./_commonjsHelpers-57e89916-4a3ae7d8.cjs");var se={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be.commonjsGlobal,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",u="hour",f="day",l="week",m="month",h="quarter",d="year",w="date",M="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var v=["th","st","nd","rd"],y=g%100;return"["+g+(v[(y-20)%10]||v[y]||v[0])+"]"}},B=function(g,v,y){var T=String(g);return!T||T.length>=v?g:""+Array(v+1-T.length).join(y)+g},ot={s:B,z:function(g){var v=-g.utcOffset(),y=Math.abs(v),T=Math.floor(y/60),p=y%60;return(v<=0?"+":"-")+B(T,2,"0")+":"+B(p,2,"0")},m:function g(v,y){if(v.date()<y.date())return-g(y,v);var T=12*(y.year()-v.year())+(y.month()-v.month()),p=v.clone().add(T,m),E=y-p<0,k=v.clone().add(T+(E?-1:1),m);return+(-(T+(y-p)/(E?p-k:k-p))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:m,y:d,w:l,d:f,D:w,h:u,m:o,s,ms:a,Q:h}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},Q="en",H={};H[Q]=j;var dt=function(g){return g instanceof gt},wt=function g(v,y,T){var p;if(!v)return Q;if(typeof v=="string"){var E=v.toLowerCase();H[E]&&(p=E),y&&(H[E]=y,p=E);var k=v.split("-");if(!p&&k.length>1)return g(k[0])}else{var O=v.name;H[O]=v,p=O}return!T&&p&&(Q=p),p||!T&&Q},N=function(g,v){if(dt(g))return g.clone();var y=typeof v=="object"?v:{};return y.date=g,y.args=arguments,new gt(y)},Y=ot;Y.l=wt,Y.i=dt,Y.w=function(g,v){return N(g,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var gt=function(){function g(y){this.$L=wt(y.locale,null,!0),this.parse(y)}var v=g.prototype;return v.parse=function(y){this.$d=function(T){var p=T.date,E=T.utc;if(p===null)return new Date(NaN);if(Y.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var k=p.match(D);if(k){var O=k[2]-1||0,_=(k[7]||"0").substring(0,3);return E?new Date(Date.UTC(k[1],O,k[3]||1,k[4]||0,k[5]||0,k[6]||0,_)):new Date(k[1],O,k[3]||1,k[4]||0,k[5]||0,k[6]||0,_)}}return new Date(p)}(y),this.$x=y.x||{},this.init()},v.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},v.$utils=function(){return Y},v.isValid=function(){return this.$d.toString()!==M},v.isSame=function(y,T){var p=N(y);return this.startOf(T)<=p&&p<=this.endOf(T)},v.isAfter=function(y,T){return N(y)<this.startOf(T)},v.isBefore=function(y,T){return this.endOf(T)<N(y)},v.$g=function(y,T,p){return Y.u(y)?this[T]:this.set(p,y)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(y,T){var p=this,E=!!Y.u(T)||T,k=Y.p(y),O=function(ut,P){var nt=Y.w(p.$u?Date.UTC(p.$y,P,ut):new Date(p.$y,P,ut),p);return E?nt:nt.endOf(f)},_=function(ut,P){return Y.w(p.toDate()[ut].apply(p.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(P)),p)},I=this.$W,C=this.$M,rt=this.$D,V="set"+(this.$u?"UTC":"");switch(k){case d:return E?O(1,0):O(31,11);case m:return E?O(1,C):O(0,C+1);case l:var yt=this.$locale().weekStart||0,mt=(I<yt?I+7:I)-yt;return O(E?rt-mt:rt+(6-mt),C);case f:case w:return _(V+"Hours",0);case u:return _(V+"Minutes",1);case o:return _(V+"Seconds",2);case s:return _(V+"Milliseconds",3);default:return this.clone()}},v.endOf=function(y){return this.startOf(y,!1)},v.$set=function(y,T){var p,E=Y.p(y),k="set"+(this.$u?"UTC":""),O=(p={},p[f]=k+"Date",p[w]=k+"Date",p[m]=k+"Month",p[d]=k+"FullYear",p[u]=k+"Hours",p[o]=k+"Minutes",p[s]=k+"Seconds",p[a]=k+"Milliseconds",p)[E],_=E===f?this.$D+(T-this.$W):T;if(E===m||E===d){var I=this.clone().set(w,1);I.$d[O](_),I.init(),this.$d=I.set(w,Math.min(this.$D,I.daysInMonth())).$d}else O&&this.$d[O](_);return this.init(),this},v.set=function(y,T){return this.clone().$set(y,T)},v.get=function(y){return this[Y.p(y)]()},v.add=function(y,T){var p,E=this;y=Number(y);var k=Y.p(T),O=function(C){var rt=N(E);return Y.w(rt.date(rt.date()+Math.round(C*y)),E)};if(k===m)return this.set(m,this.$M+y);if(k===d)return this.set(d,this.$y+y);if(k===f)return O(1);if(k===l)return O(7);var _=(p={},p[o]=n,p[u]=i,p[s]=r,p)[k]||1,I=this.$d.getTime()+y*_;return Y.w(I,this)},v.subtract=function(y,T){return this.add(-1*y,T)},v.format=function(y){var T=this,p=this.$locale();if(!this.isValid())return p.invalidDate||M;var E=y||"YYYY-MM-DDTHH:mm:ssZ",k=Y.z(this),O=this.$H,_=this.$m,I=this.$M,C=p.weekdays,rt=p.months,V=function(P,nt,St,Tt){return P&&(P[nt]||P(T,E))||St[nt].slice(0,Tt)},yt=function(P){return Y.s(O%12||12,P,"0")},mt=p.meridiem||function(P,nt,St){var Tt=P<12?"AM":"PM";return St?Tt.toLowerCase():Tt},ut={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:Y.s(I+1,2,"0"),MMM:V(p.monthsShort,I,rt,3),MMMM:V(rt,I),D:this.$D,DD:Y.s(this.$D,2,"0"),d:String(this.$W),dd:V(p.weekdaysMin,this.$W,C,2),ddd:V(p.weekdaysShort,this.$W,C,3),dddd:C[this.$W],H:String(O),HH:Y.s(O,2,"0"),h:yt(1),hh:yt(2),a:mt(O,_,!0),A:mt(O,_,!1),m:String(_),mm:Y.s(_,2,"0"),s:String(this.$s),ss:Y.s(this.$s,2,"0"),SSS:Y.s(this.$ms,3,"0"),Z:k};return E.replace(U,function(P,nt){return nt||ut[P]||k.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(y,T,p){var E,k=Y.p(T),O=N(y),_=(O.utcOffset()-this.utcOffset())*n,I=this-O,C=Y.m(this,O);return C=(E={},E[d]=C/12,E[m]=C,E[h]=C/3,E[l]=(I-_)/6048e5,E[f]=(I-_)/864e5,E[u]=I/i,E[o]=I/n,E[s]=I/r,E)[k]||I,p?C:Y.a(C)},v.daysInMonth=function(){return this.endOf(m).$D},v.$locale=function(){return H[this.$L]},v.locale=function(y,T){if(!y)return this.$L;var p=this.clone(),E=wt(y,T,!0);return E&&(p.$L=E),p},v.clone=function(){return Y.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),Ft=gt.prototype;return N.prototype=Ft,[["$ms",a],["$s",s],["$m",o],["$H",u],["$W",f],["$M",m],["$y",d],["$D",w]].forEach(function(g){Ft[g[1]]=function(v){return this.$g(v,g[0],g[1])}}),N.extend=function(g,v){return g.$i||(g(v,gt,N),g.$i=!0),N},N.locale=wt,N.isDayjs=dt,N.unix=function(g){return N(1e3*g)},N.en=H[Q],N.Ls=H,N.p={},N})})(se);const Nt=se.exports;var Yt=["MO","TU","WE","TH","FR","SA","SU"],F=function(){function e(t,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=r}return e.fromStr=function(t){return new e(Yt.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},e.prototype.toString=function(){var t=Yt[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},e.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},e}(),A=function(e){return e!=null},G=function(e){return typeof e=="number"},Pt=function(e){return typeof e=="string"&&Yt.includes(e)},z=Array.isArray,X=function(e,t){t===void 0&&(t=e),arguments.length===1&&(t=e,e=0);for(var r=[],n=e;n<t;n++)r.push(n);return r},S=function(e,t){var r=0,n=[];if(z(e))for(;r<t;r++)n[r]=[].concat(e);else for(;r<t;r++)n[r]=e;return n},we=function(e){return z(e)?e:[e]};function ft(e,t,r){r===void 0&&(r=" ");var n=String(e);return t=t>>0,n.length>t?String(n):(t=t-n.length,t>r.length&&(r+=S(r,t/r.length)),r.slice(0,t)+String(n))}var ge=function(e,t,r){var n=e.split(t);return r?n.slice(0,r).concat([n.slice(r).join(t)]):n},q=function(e,t){var r=e%t;return r*t<0?r+t:r},xt=function(e,t){return{div:Math.floor(e/t),mod:q(e,t)}},J=function(e){return!A(e)||e.length===0},$=function(e){return!J(e)},L=function(e,t){return $(e)&&e.indexOf(t)!==-1},st=function(e,t,r,n,i,a){return n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),new Date(Date.UTC(e,t-1,r,n,i,a))},Te=[31,28,31,30,31,30,31,31,30,31,30,31],ue=1e3*60*60*24,fe=9999,he=st(1970,1,1),ke=[6,0,1,2,3,4,5],vt=function(e){return e%4===0&&e%100!==0||e%400===0},ce=function(e){return e instanceof Date},pt=function(e){return ce(e)&&!isNaN(e.getTime())},jt=function(e){return e.getTimezoneOffset()*60*1e3},Ee=function(e,t){var r=e.getTime()-jt(e),n=t.getTime()-jt(t),i=r-n;return Math.round(i/ue)},Lt=function(e){return Ee(e,he)},le=function(e){return new Date(he.getTime()+e*ue)},Me=function(e){var t=e.getUTCMonth();return t===1&&vt(e.getUTCFullYear())?29:Te[t]},ct=function(e){return ke[e.getUTCDay()]},zt=function(e,t){var r=st(e,t+1,1);return[ct(r),Me(r)]},de=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},Ut=function(e){var t=new Date(e.getTime());return t},Kt=function(e){for(var t=[],r=0;r<e.length;r++)t.push(Ut(e[r]));return t},bt=function(e){e.sort(function(t,r){return t.getTime()-r.getTime()})},$t=function(e,t){t===void 0&&(t=!0);var r=new Date(e);return[ft(r.getUTCFullYear().toString(),4,"0"),ft(r.getUTCMonth()+1,2,"0"),ft(r.getUTCDate(),2,"0"),"T",ft(r.getUTCHours(),2,"0"),ft(r.getUTCMinutes(),2,"0"),ft(r.getUTCSeconds(),2,"0"),t?"Z":""].join("")},Ct=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,r=t.exec(e);if(!r)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[5],10)||0,parseInt(r[6],10)||0,parseInt(r[7],10)||0))},qt=function(e,t){var r=e.toLocaleString("sv-SE",{timeZone:t});return r.replace(" ","T")+"Z"},De=function(e,t){var r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(qt(e,r)),i=new Date(qt(e,t??"UTC")),a=i.getTime()-n.getTime();return new Date(e.getTime()-a)},ht=function(){function e(t,r){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=r,t==="between"?(this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1),this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)):t==="before"?this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1):t==="after"&&(this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1))}return e.prototype.accept=function(t){++this.total;var r=this.minDate&&t<this.minDate,n=this.maxDate&&t>this.maxDate;if(this.method==="between"){if(r)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return r?!0:(this.add(t),!1);return this.add(t)},e.prototype.add=function(t){return this._result.push(t),!0},e.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;case"before":case"after":default:return t.length?t[t.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),It=function(e,t){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},It(e,t)};function Rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");It(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var K=function(){return K=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},K.apply(this,arguments)};function c(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Zt=function(e){Rt(t,e);function t(r,n,i){var a=e.call(this,r,n)||this;return a.iterator=i,a}return t.prototype.add=function(r){return this.iterator(r,this._result.length)?(this._result.push(r),!0):!1},t}(ht),kt={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},Bt=function(e,t){return e.indexOf(t)!==-1},Se=function(e){return e.toString()},xe=function(e,t,r){return"".concat(t," ").concat(r,", ").concat(e)},et=function(){function e(t,r,n,i){if(r===void 0&&(r=Se),n===void 0&&(n=kt),i===void 0&&(i=xe),this.text=[],this.language=n||kt,this.gettext=r,this.dateFormatter=i,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),s=[].concat(this.options.bynmonthday);a.sort(function(l,m){return l-m}),s.sort(function(l,m){return m-l}),this.bymonthday=a.concat(s),this.bymonthday.length||(this.bymonthday=null)}if(A(this.origOptions.byweekday)){var o=z(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(o);this.byweekday={allWeeks:o.filter(function(l){return!l.n}),someWeeks:o.filter(function(l){return!!l.n}),isWeekdays:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")===-1&&u.indexOf("SU")===-1,isEveryDay:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")!==-1&&u.indexOf("SU")!==-1};var f=function(l,m){return l.weekday-m.weekday};this.byweekday.allWeeks.sort(f),this.byweekday.someWeeks.sort(f),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){var r=!0;if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(Bt(["dtstart","wkst","freq"],n))return!0;if(!Bt(e.IMPLEMENTED[t.options.freq],n))return!1}return r},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[b.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var r=this.options.until;this.add(this.dateFormatter(r.getUTCFullYear(),this.language.monthNames[r.getUTCMonth()],r.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},e.prototype.MINUTELY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},e.prototype.DAILY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(this.options.interval===1&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},e.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},e.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},e.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},e.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(t){t=parseInt(t.toString(),10);var r,n=this.gettext;if(t===-1)return n("last");var i=Math.abs(t);switch(i){case 1:case 21:case 31:r=i+n("st");break;case 2:case 22:r=i+n("nd");break;case 3:case 23:r=i+n("rd");break;default:r=i+n("th")}return t<0?r+" "+n("last"):r},e.prototype.monthtext=function(t){return this.language.monthNames[t-1]},e.prototype.weekdaytext=function(t){var r=G(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[r]},e.prototype.plural=function(t){return t%100!==1},e.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},e.prototype.list=function(t,r,n,i){var a=this;i===void 0&&(i=","),z(t)||(t=[t]);var s=function(u,f,l){for(var m="",h=0;h<u.length;h++)h!==0&&(h===u.length-1?m+=" "+l+" ":m+=f+" "),m+=u[h];return m};r=r||function(u){return u.toString()};var o=function(u){return r&&r.call(a,u)};return n?s(t.map(o),i,n):t.map(o).join(i+" ")},e}(),Oe=function(){function e(t){this.done=!0,this.rules=t}return e.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&this.symbol===null},e.prototype.nextSymbol=function(){var t,r;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;t=null;for(var i in this.rules){n=this.rules[i];var a=n.exec(this.text);a&&(t===null||a[0].length>t[0].length)&&(t=a,r=i)}if(t!=null&&(this.text=this.text.substr(t[0].length),this.text===""&&(this.done=!0)),t==null){this.done=!0,this.symbol=null,this.value=null;return}}while(r==="SKIP");return this.symbol=r,this.value=t,!0},e.prototype.accept=function(t){if(this.symbol===t){if(this.value){var r=this.value;return this.nextSymbol(),r}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},e}();function ye(e,t){t===void 0&&(t=kt);var r={},n=new Oe(t.tokens);if(!n.start(e))return null;return i(),r;function i(){n.expect("every");var h=n.acceptNumber();if(h&&(r.interval=parseInt(h[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":r.freq=b.DAILY,n.nextSymbol()&&(s(),m());break;case"weekday(s)":r.freq=b.WEEKLY,r.byweekday=[b.MO,b.TU,b.WE,b.TH,b.FR],n.nextSymbol(),m();break;case"week(s)":r.freq=b.WEEKLY,n.nextSymbol()&&(a(),m());break;case"hour(s)":r.freq=b.HOURLY,n.nextSymbol()&&(a(),m());break;case"minute(s)":r.freq=b.MINUTELY,n.nextSymbol()&&(a(),m());break;case"month(s)":r.freq=b.MONTHLY,n.nextSymbol()&&(a(),m());break;case"year(s)":r.freq=b.YEARLY,n.nextSymbol()&&(a(),m());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":r.freq=b.WEEKLY;var d=n.symbol.substr(0,2).toUpperCase();if(r.byweekday=[b[d]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var w=u();if(!w)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");r.byweekday.push(b[w]),n.nextSymbol()}l(),m();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(r.freq=b.YEARLY,r.bymonth=[o()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var M=o();if(!M)throw new Error("Unexpected symbol "+n.symbol+", expected month");r.bymonth.push(M),n.nextSymbol()}a(),m();break;default:throw new Error("Unknown symbol")}}function a(){var h=n.accept("on"),d=n.accept("the");if(h||d)do{var w=f(),M=u(),D=o();if(w)M?(n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(b[M].nth(w))):(r.bymonthday||(r.bymonthday=[]),r.bymonthday.push(w),n.accept("day(s)"));else if(M)n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(b[M]);else if(n.symbol==="weekday(s)")n.nextSymbol(),r.byweekday||(r.byweekday=[b.MO,b.TU,b.WE,b.TH,b.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var U=n.acceptNumber();if(!U)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(r.byweekno=[parseInt(U[0],10)];n.accept("comma");){if(U=n.acceptNumber(),!U)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.byweekno.push(parseInt(U[0],10))}}else if(D)n.nextSymbol(),r.bymonth||(r.bymonth=[]),r.bymonth.push(D);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function s(){var h=n.accept("at");if(h)do{var d=n.acceptNumber();if(!d)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(r.byhour=[parseInt(d[0],10)];n.accept("comma");){if(d=n.acceptNumber(),!d)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");r.byhour.push(parseInt(d[0],10))}}while(n.accept("comma")||n.accept("at"))}function o(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function u(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function f(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var h=parseInt(n.value[1],10);if(h<-366||h>366)throw new Error("Nth out of range: "+h);return n.nextSymbol(),n.accept("last")?-h:h;default:return!1}}function l(){n.accept("on"),n.accept("the");var h=f();if(h)for(r.bymonthday=[h],n.nextSymbol();n.accept("comma");){if(h=f(),!h)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.bymonthday.push(h),n.nextSymbol()}}function m(){if(n.symbol==="until"){var h=Date.parse(n.text);if(!h)throw new Error("Cannot parse until date:"+n.text);r.until=new Date(h)}else n.accept("for")&&(r.count=parseInt(n.value[0],10),n.expect("number"))}}var x;(function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"})(x||(x={}));function Wt(e){return e<x.HOURLY}var Ye=function(e,t){return t===void 0&&(t=kt),new b(ye(e,t)||void 0)},lt=["count","until","interval","byweekday","bymonthday","bymonth"];et.IMPLEMENTED=[];et.IMPLEMENTED[x.HOURLY]=lt;et.IMPLEMENTED[x.MINUTELY]=lt;et.IMPLEMENTED[x.DAILY]=["byhour"].concat(lt);et.IMPLEMENTED[x.WEEKLY]=lt;et.IMPLEMENTED[x.MONTHLY]=lt;et.IMPLEMENTED[x.YEARLY]=["byweekno","byyearday"].concat(lt);var Le=function(e,t,r,n){return new et(e,t,r,n).toString()},Ue=et.isFullyConvertible,Et=function(){function e(t,r,n,i){this.hour=t,this.minute=r,this.second=n,this.millisecond=i||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},e}(),Ie=function(e){Rt(t,e);function t(r,n,i,a,s,o,u){var f=e.call(this,a,s,o,u)||this;return f.year=r,f.month=n,f.day=i,f}return t.fromDate=function(r){return new this(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.valueOf()%1e3)},t.prototype.getWeekday=function(){return ct(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(r){this.year+=r},t.prototype.addMonths=function(r){if(this.month+=r,this.month>12){var n=Math.floor(this.month/12),i=q(this.month,12);this.month=i,this.year+=n,this.month===0&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(r,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+r*7:this.day+=-(this.getWeekday()-n)+r*7,this.fixDay()},t.prototype.addDaily=function(r){this.day+=r,this.fixDay()},t.prototype.addHours=function(r,n,i){for(n&&(this.hour+=Math.floor((23-this.hour)/r)*r);;){this.hour+=r;var a=xt(this.hour,24),s=a.div,o=a.mod;if(s&&(this.hour=o,this.addDaily(s)),J(i)||L(i,this.hour))break}},t.prototype.addMinutes=function(r,n,i,a){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/r)*r);;){this.minute+=r;var s=xt(this.minute,60),o=s.div,u=s.mod;if(o&&(this.minute=u,this.addHours(o,!1,i)),(J(i)||L(i,this.hour))&&(J(a)||L(a,this.minute)))break}},t.prototype.addSeconds=function(r,n,i,a,s){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/r)*r);;){this.second+=r;var o=xt(this.second,60),u=o.div,f=o.mod;if(u&&(this.second=f,this.addMinutes(u,!1,i,a)),(J(i)||L(i,this.hour))&&(J(a)||L(a,this.minute))&&(J(s)||L(s,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var r=zt(this.year,this.month-1)[1];if(!(this.day<=r))for(;this.day>r;){if(this.day-=r,++this.month,this.month===13&&(this.month=1,++this.year,this.year>fe))return;r=zt(this.year,this.month-1)[1]}}},t.prototype.add=function(r,n){var i=r.freq,a=r.interval,s=r.wkst,o=r.byhour,u=r.byminute,f=r.bysecond;switch(i){case x.YEARLY:return this.addYears(a);case x.MONTHLY:return this.addMonths(a);case x.WEEKLY:return this.addWeekly(a,s);case x.DAILY:return this.addDaily(a);case x.HOURLY:return this.addHours(a,n,o);case x.MINUTELY:return this.addMinutes(a,n,o,u);case x.SECONDLY:return this.addSeconds(a,n,o,u,f)}},t}(Et);function me(e){for(var t=[],r=Object.keys(e),n=0,i=r;n<i.length;n++){var a=i[n];L(ur,a)||t.push(a),ce(e[a])&&!pt(e[a])&&t.push(a)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return K({},e)}function _e(e){var t=K(K({},Ht),me(e));if(A(t.byeaster)&&(t.freq=b.YEARLY),!(A(t.freq)&&b.FREQUENCIES[t.freq]))throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),A(t.wkst)?G(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=b.MO.weekday,A(t.bysetpos)){G(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var r=0;r<t.bysetpos.length;r++){var n=t.bysetpos[r];if(n===0||!(n>=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||$(t.byweekno)||$(t.byyearday)||t.bymonthday||$(t.bymonthday)||A(t.byweekday)||A(t.byeaster)))switch(t.freq){case b.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case b.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case b.WEEKLY:t.byweekday=[ct(t.dtstart)];break}if(A(t.bymonth)&&!z(t.bymonth)&&(t.bymonth=[t.bymonth]),A(t.byyearday)&&!z(t.byyearday)&&G(t.byyearday)&&(t.byyearday=[t.byyearday]),!A(t.bymonthday))t.bymonthday=[],t.bynmonthday=[];else if(z(t.bymonthday)){for(var i=[],a=[],r=0;r<t.bymonthday.length;r++){var n=t.bymonthday[r];n>0?i.push(n):n<0&&a.push(n)}t.bymonthday=i,t.bynmonthday=a}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);if(A(t.byweekno)&&!z(t.byweekno)&&(t.byweekno=[t.byweekno]),!A(t.byweekday))t.bynweekday=null;else if(G(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(Pt(t.byweekday))t.byweekday=[F.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof F)!t.byweekday.n||t.freq>b.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var s=[],o=[],r=0;r<t.byweekday.length;r++){var u=t.byweekday[r];if(G(u)){s.push(u);continue}else if(Pt(u)){s.push(F.fromStr(u).weekday);continue}!u.n||t.freq>b.MONTHLY?s.push(u.weekday):o.push([u.weekday,u.n])}t.byweekday=$(s)?s:null,t.bynweekday=$(o)?o:null}return A(t.byhour)?G(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<b.HOURLY?[t.dtstart.getUTCHours()]:null,A(t.byminute)?G(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<b.MINUTELY?[t.dtstart.getUTCMinutes()]:null,A(t.bysecond)?G(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<b.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function Ae(e){var t=e.dtstart.getTime()%1e3;if(!Wt(e.freq))return[];var r=[];return e.byhour.forEach(function(n){e.byminute.forEach(function(i){e.bysecond.forEach(function(a){r.push(new Et(n,i,a,t))})})}),r}function _t(e){var t=e.split(`
2
- `).map(Ne).filter(function(r){return r!==null});return K(K({},t[0]),t[1])}function Mt(e){var t={},r=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!r)return t;var n=r[1],i=r[2];return n&&(t.tzid=n),t.dtstart=Ct(i),t}function Ne(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return Gt(e);var r=t[1];switch(r.toUpperCase()){case"RRULE":case"EXRULE":return Gt(e);case"DTSTART":return Mt(e);default:throw new Error("Unsupported RFC prop ".concat(r," in ").concat(e))}}function Gt(e){var t=e.replace(/^RRULE:/i,""),r=Mt(t),n=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.forEach(function(i){var a=i.split("="),s=a[0],o=a[1];switch(s.toUpperCase()){case"FREQ":r.freq=x[o.toUpperCase()];break;case"WKST":r.wkst=Z[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=$e(o),f=s.toLowerCase();r[f]=u;break;case"BYWEEKDAY":case"BYDAY":r.byweekday=Ce(o);break;case"DTSTART":case"TZID":var l=Mt(e);r.tzid=l.tzid,r.dtstart=l.dtstart;break;case"UNTIL":r.until=Ct(o);break;case"BYEASTER":r.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+s+"'")}}),r}function $e(e){if(e.indexOf(",")!==-1){var t=e.split(",");return t.map(Jt)}return Jt(e)}function Jt(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function Ce(e){var t=e.split(",");return t.map(function(r){if(r.length===2)return Z[r];var n=r.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(r));var i=Number(n[1]),a=n[2],s=Z[a].weekday;return new F(s,i)})}var Dt=function(){function e(t,r){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=r}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=$t(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:De(this.date,this.tzid)},e}();function At(e){for(var t=[],r="",n=Object.keys(e),i=Object.keys(Ht),a=0;a<n.length;a++)if(n[a]!=="tzid"&&L(i,n[a])){var s=n[a].toUpperCase(),o=e[n[a]],u="";if(!(!A(o)||z(o)&&!o.length)){switch(s){case"FREQ":u=b.FREQUENCIES[e.freq];break;case"WKST":G(o)?u=new F(o).toString():u=o.toString();break;case"BYWEEKDAY":s="BYDAY",u=we(o).map(function(d){return d instanceof F?d:z(d)?new F(d[0],d[1]):new F(d)}).toString();break;case"DTSTART":r=Re(o,e.tzid);break;case"UNTIL":u=$t(o,!e.tzid);break;default:if(z(o)){for(var f=[],l=0;l<o.length;l++)f[l]=String(o[l]);u=f.toString()}else u=String(o)}u&&t.push([s,u])}}var m=t.map(function(d){var w=d[0],M=d[1];return"".concat(w,"=").concat(M.toString())}).join(";"),h="";return m!==""&&(h="RRULE:".concat(m)),[r,h].filter(function(d){return!!d}).join(`
3
- `)}function Re(e,t){return e?"DTSTART"+new Dt(new Date(e),t).toString():""}function We(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every(function(r,n){return r.getTime()===t[n].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var He=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(t,r,n){r&&(r=r instanceof Date?Ut(r):Kt(r)),t==="all"?this.all=r:(n._value=r,this[t].push(n))},e.prototype._cacheGet=function(t,r){var n=!1,i=r?Object.keys(r):[],a=function(l){for(var m=0;m<i.length;m++){var h=i[m];if(!We(r[h],l[h]))return!0}return!1},s=this[t];if(t==="all")n=this.all;else if(z(s))for(var o=0;o<s.length;o++){var u=s[o];if(!(i.length&&a(u))){n=u._value;break}}if(!n&&this.all){for(var f=new ht(t,r),o=0;o<this.all.length&&f.accept(this.all[o]);o++);n=f.getValue(),this._cacheAdd(t,n,r)}return z(n)?Kt(n):n instanceof Date?Ut(n):n},e}(),Fe=c(c(c(c(c(c(c(c(c(c(c(c(c([],S(1,31),!0),S(2,28),!0),S(3,31),!0),S(4,30),!0),S(5,31),!0),S(6,30),!0),S(7,31),!0),S(8,31),!0),S(9,30),!0),S(10,31),!0),S(11,30),!0),S(12,31),!0),S(1,7),!0),Pe=c(c(c(c(c(c(c(c(c(c(c(c(c([],S(1,31),!0),S(2,29),!0),S(3,31),!0),S(4,30),!0),S(5,31),!0),S(6,30),!0),S(7,31),!0),S(8,31),!0),S(9,30),!0),S(10,31),!0),S(11,30),!0),S(12,31),!0),S(1,7),!0),je=X(1,29),ze=X(1,30),it=X(1,31),R=X(1,32),Ke=c(c(c(c(c(c(c(c(c(c(c(c(c([],R,!0),ze,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R.slice(0,7),!0),qe=c(c(c(c(c(c(c(c(c(c(c(c(c([],R,!0),je,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R.slice(0,7),!0),Ze=X(-28,0),Be=X(-29,0),at=X(-30,0),W=X(-31,0),Ge=c(c(c(c(c(c(c(c(c(c(c(c(c([],W,!0),Be,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W.slice(0,7),!0),Je=c(c(c(c(c(c(c(c(c(c(c(c(c([],W,!0),Ze,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W.slice(0,7),!0),Xe=[0,31,60,91,121,152,182,213,244,274,305,335,366],Qe=[0,31,59,90,120,151,181,212,243,273,304,334,365],Xt=function(){for(var e=[],t=0;t<55;t++)e=e.concat(X(7));return e}();function Ve(e,t){var r=st(e,1,1),n=vt(e)?366:365,i=vt(e+1)?366:365,a=Lt(r),s=ct(r),o=K(K({yearlen:n,nextyearlen:i,yearordinal:a,yearweekday:s},tr(e)),{wnomask:null});if(J(t.byweekno))return o;o.wnomask=S(0,n+7);var u,f,l=u=q(7-s+t.wkst,7);l>=4?(l=0,f=o.yearlen+q(s-t.wkst,7)):f=n-l;for(var m=Math.floor(f/7),h=q(f,7),d=Math.floor(m+h/4),w=0;w<t.byweekno.length;w++){var M=t.byweekno[w];if(M<0&&(M+=d+1),M>0&&M<=d){var D=void 0;M>1?(D=l+(M-1)*7,l!==u&&(D-=7-u)):D=l;for(var U=0;U<7&&(o.wnomask[D]=1,D++,o.wdaymask[D]!==t.wkst);U++);}}if(L(t.byweekno,1)){var D=l+d*7;if(l!==u&&(D-=7-u),D<n)for(var w=0;w<7&&(o.wnomask[D]=1,D+=1,o.wdaymask[D]!==t.wkst);w++);}if(l){var j=void 0;if(L(t.byweekno,-1))j=-1;else{var B=ct(st(e-1,1,1)),ot=q(7-B.valueOf()+t.wkst,7),Q=vt(e-1)?366:365,H=void 0;ot>=4?(ot=0,H=Q+q(B-t.wkst,7)):H=n-l,j=Math.floor(52+q(H,7)/4)}if(L(t.byweekno,j))for(var D=0;D<l;D++)o.wnomask[D]=1}return o}function tr(e){var t=vt(e)?366:365,r=st(e,1,1),n=ct(r);return t===365?{mmask:Fe,mdaymask:qe,nmdaymask:Je,wdaymask:Xt.slice(n),mrange:Qe}:{mmask:Pe,mdaymask:Ke,nmdaymask:Ge,wdaymask:Xt.slice(n),mrange:Xe}}function er(e,t,r,n,i,a){var s={lastyear:e,lastmonth:t,nwdaymask:[]},o=[];if(a.freq===b.YEARLY)if(J(a.bymonth))o=[[0,r]];else for(var u=0;u<a.bymonth.length;u++)t=a.bymonth[u],o.push(n.slice(t-1,t+1));else a.freq===b.MONTHLY&&(o=[n.slice(t-1,t+1)]);if(J(o))return s;s.nwdaymask=S(0,r);for(var u=0;u<o.length;u++)for(var f=o[u],l=f[0],m=f[1]-1,h=0;h<a.bynweekday.length;h++){var d=void 0,w=a.bynweekday[h],M=w[0],D=w[1];D<0?(d=m+(D+1)*7,d-=q(i[d]-M,7)):(d=l+(D-1)*7,d+=q(7-i[d]+M,7)),l<=d&&d<=m&&(s.nwdaymask[d]=1)}return s}function rr(e,t){t===void 0&&(t=0);var r=e%19,n=Math.floor(e/100),i=e%100,a=Math.floor(n/4),s=n%4,o=Math.floor((n+8)/25),u=Math.floor((n-o+1)/3),f=Math.floor(19*r+n-a-u+15)%30,l=Math.floor(i/4),m=i%4,h=Math.floor(32+2*s+2*l-f-m)%7,d=Math.floor((r+11*f+22*h)/451),w=Math.floor((f+h-7*d+114)/31),M=(f+h-7*d+114)%31+1,D=Date.UTC(e,w-1,M+t),U=Date.UTC(e,0,1);return[Math.ceil((D-U)/(1e3*60*60*24))]}var nr=function(){function e(t){this.options=t}return e.prototype.rebuild=function(t,r){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=Ve(t,n)),$(n.bynweekday)&&(r!==this.lastmonth||t!==this.lastyear)){var i=this.yearinfo,a=i.yearlen,s=i.mrange,o=i.wdaymask;this.monthinfo=er(t,r,a,s,o,n)}A(n.byeaster)&&(this.eastermask=rr(t,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[X(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(t,r){for(var n=this.mrange[r-1],i=this.mrange[r],a=S(null,this.yearlen),s=n;s<i;s++)a[s]=s;return[a,n,i]},e.prototype.wdayset=function(t,r,n){for(var i=S(null,this.yearlen+7),a=Lt(st(t,r,n))-this.yearordinal,s=a,o=0;o<7&&(i[a]=a,++a,this.wdaymask[a]!==this.options.wkst);o++);return[i,s,a]},e.prototype.ddayset=function(t,r,n){var i=S(null,this.yearlen),a=Lt(st(t,r,n))-this.yearordinal;return i[a]=a,[i,a,a+1]},e.prototype.htimeset=function(t,r,n,i){var a=this,s=[];return this.options.byminute.forEach(function(o){s=s.concat(a.mtimeset(t,o,n,i))}),bt(s),s},e.prototype.mtimeset=function(t,r,n,i){var a=this.options.bysecond.map(function(s){return new Et(t,r,s,i)});return bt(a),a},e.prototype.stimeset=function(t,r,n,i){return[new Et(t,r,n,i)]},e.prototype.getdayset=function(t){switch(t){case x.YEARLY:return this.ydayset.bind(this);case x.MONTHLY:return this.mdayset.bind(this);case x.WEEKLY:return this.wdayset.bind(this);case x.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(t){switch(t){case x.HOURLY:return this.htimeset.bind(this);case x.MINUTELY:return this.mtimeset.bind(this);case x.SECONDLY:return this.stimeset.bind(this)}},e}();function ir(e,t,r,n,i,a){for(var s=[],o=0;o<e.length;o++){var u=void 0,f=void 0,l=e[o];l<0?(u=Math.floor(l/t.length),f=q(l,t.length)):(u=Math.floor((l-1)/t.length),f=q(l-1,t.length));for(var m=[],h=r;h<n;h++){var d=a[h];A(d)&&m.push(d)}var w=void 0;u<0?w=m.slice(u)[0]:w=m[u];var M=t[f],D=le(i.yearordinal+w),U=de(D,M);L(s,U)||s.push(U)}return bt(s),s}function pe(e,t){var r=t.dtstart,n=t.freq,i=t.interval,a=t.until,s=t.bysetpos,o=t.count;if(o===0||i===0)return tt(e);var u=Ie.fromDate(r),f=new nr(t);f.rebuild(u.year,u.month);for(var l=sr(f,u,t);;){var m=f.getdayset(n)(u.year,u.month,u.day),h=m[0],d=m[1],w=m[2],M=or(h,d,w,f,t);if($(s))for(var D=ir(s,l,d,w,f,h),U=0;U<D.length;U++){var j=D[U];if(a&&j>a)return tt(e);if(j>=r){var B=Qt(j,t);if(!e.accept(B)||o&&(--o,!o))return tt(e)}}else for(var U=d;U<w;U++){var ot=h[U];if(A(ot))for(var Q=le(f.yearordinal+ot),H=0;H<l.length;H++){var dt=l[H],j=de(Q,dt);if(a&&j>a)return tt(e);if(j>=r){var B=Qt(j,t);if(!e.accept(B)||o&&(--o,!o))return tt(e)}}}if(t.interval===0||(u.add(t,M),u.year>fe))return tt(e);Wt(n)||(l=f.gettimeset(n)(u.hour,u.minute,u.second,0)),f.rebuild(u.year,u.month)}}function ar(e,t,r){var n=r.bymonth,i=r.byweekno,a=r.byweekday,s=r.byeaster,o=r.bymonthday,u=r.bynmonthday,f=r.byyearday;return $(n)&&!L(n,e.mmask[t])||$(i)&&!e.wnomask[t]||$(a)&&!L(a,e.wdaymask[t])||$(e.nwdaymask)&&!e.nwdaymask[t]||s!==null&&!L(e.eastermask,t)||($(o)||$(u))&&!L(o,e.mdaymask[t])&&!L(u,e.nmdaymask[t])||$(f)&&(t<e.yearlen&&!L(f,t+1)&&!L(f,-e.yearlen+t)||t>=e.yearlen&&!L(f,t+1-e.yearlen)&&!L(f,-e.nextyearlen+t-e.yearlen))}function Qt(e,t){return new Dt(e,t.tzid).rezonedDate()}function tt(e){return e.getValue()}function or(e,t,r,n,i){for(var a=!1,s=t;s<r;s++){var o=e[s];a=ar(n,o,i),a&&(e[o]=null)}return a}function sr(e,t,r){var n=r.freq,i=r.byhour,a=r.byminute,s=r.bysecond;return Wt(n)?Ae(r):n>=b.HOURLY&&$(i)&&!L(i,t.hour)||n>=b.MINUTELY&&$(a)&&!L(a,t.minute)||n>=b.SECONDLY&&$(s)&&!L(s,t.second)?[]:e.gettimeset(n)(t.hour,t.minute,t.second,t.millisecond)}var Z={MO:new F(0),TU:new F(1),WE:new F(2),TH:new F(3),FR:new F(4),SA:new F(5),SU:new F(6)},Ht={freq:x.YEARLY,dtstart:null,interval:1,wkst:Z.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},ur=Object.keys(Ht),b=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r=!1),this._cache=r?null:new He,this.origOptions=me(t);var n=_e(t).parsedOptions;this.options=n}return e.parseText=function(t,r){return ye(t,r)},e.fromText=function(t,r){return Ye(t,r)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(t){return pe(t,this.options)},e.prototype._cacheGet=function(t,r){return this._cache?this._cache._cacheGet(t,r):!1},e.prototype._cacheAdd=function(t,r,n){if(this._cache)return this._cache._cacheAdd(t,r,n)},e.prototype.all=function(t){if(t)return this._iter(new Zt("all",{},t));var r=this._cacheGet("all");return r===!1&&(r=this._iter(new ht("all",{})),this._cacheAdd("all",r)),r},e.prototype.between=function(t,r,n,i){if(n===void 0&&(n=!1),!pt(t)||!pt(r))throw new Error("Invalid date passed in to RRule.between");var a={before:r,after:t,inc:n};if(i)return this._iter(new Zt("between",a,i));var s=this._cacheGet("between",a);return s===!1&&(s=this._iter(new ht("between",a)),this._cacheAdd("between",s,a)),s},e.prototype.before=function(t,r){if(r===void 0&&(r=!1),!pt(t))throw new Error("Invalid date passed in to RRule.before");var n={dt:t,inc:r},i=this._cacheGet("before",n);return i===!1&&(i=this._iter(new ht("before",n)),this._cacheAdd("before",i,n)),i},e.prototype.after=function(t,r){if(r===void 0&&(r=!1),!pt(t))throw new Error("Invalid date passed in to RRule.after");var n={dt:t,inc:r},i=this._cacheGet("after",n);return i===!1&&(i=this._iter(new ht("after",n)),this._cacheAdd("after",i,n)),i},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return At(this.origOptions)},e.prototype.toText=function(t,r,n){return Le(this,t,r,n)},e.prototype.isFullyConvertibleToText=function(){return Ue(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=x.YEARLY,e.MONTHLY=x.MONTHLY,e.WEEKLY=x.WEEKLY,e.DAILY=x.DAILY,e.HOURLY=x.HOURLY,e.MINUTELY=x.MINUTELY,e.SECONDLY=x.SECONDLY,e.MO=Z.MO,e.TU=Z.TU,e.WE=Z.WE,e.TH=Z.TH,e.FR=Z.FR,e.SA=Z.SA,e.SU=Z.SU,e.parseString=_t,e.optionsToString=At,e}();function fr(e,t,r,n,i,a){var s={},o=e.accept;function u(h,d){r.forEach(function(w){w.between(h,d,!0).forEach(function(M){s[Number(M)]=!0})})}i.forEach(function(h){var d=new Dt(h,a).rezonedDate();s[Number(d)]=!0}),e.accept=function(h){var d=Number(h);return isNaN(d)?o.call(this,h):!s[d]&&(u(new Date(d-1),new Date(d+1)),!s[d])?(s[d]=!0,o.call(this,h)):!0},e.method==="between"&&(u(e.args.after,e.args.before),e.accept=function(h){var d=Number(h);return s[d]?!0:(s[d]=!0,o.call(this,h))});for(var f=0;f<n.length;f++){var l=new Dt(n[f],a).rezonedDate();if(!e.accept(new Date(l.getTime())))break}t.forEach(function(h){pe(e,h.options)});var m=e._result;switch(bt(m),e.method){case"all":case"between":return m;case"before":return m.length&&m[m.length-1]||null;case"after":default:return m.length&&m[0]||null}}var Vt={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function hr(e,t){var r=[],n=[],i=[],a=[],s=Mt(e),o=s.dtstart,u=s.tzid,f=mr(e,t.unfold);return f.forEach(function(l){var m;if(l){var h=yr(l),d=h.name,w=h.parms,M=h.value;switch(d.toUpperCase()){case"RRULE":if(w.length)throw new Error("unsupported RRULE parm: ".concat(w.join(",")));r.push(_t(l));break;case"RDATE":var D=(m=/RDATE(?:;TZID=([^:=]+))?/i.exec(l))!==null&&m!==void 0?m:[],U=D[1];U&&!u&&(u=U),n=n.concat(ee(M,w));break;case"EXRULE":if(w.length)throw new Error("unsupported EXRULE parm: ".concat(w.join(",")));i.push(_t(M));break;case"EXDATE":a=a.concat(ee(M,w));break;case"DTSTART":break;default:throw new Error("unsupported property: "+d)}}}),{dtstart:o,tzid:u,rrulevals:r,rdatevals:n,exrulevals:i,exdatevals:a}}function cr(e,t){var r=hr(e,t),n=r.rrulevals,i=r.rdatevals,a=r.exrulevals,s=r.exdatevals,o=r.dtstart,u=r.tzid,f=t.cache===!1;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||n.length>1||i.length||a.length||s.length){var l=new vr(f);return l.dtstart(o),l.tzid(u||void 0),n.forEach(function(h){l.rrule(new b(Ot(h,o,u),f))}),i.forEach(function(h){l.rdate(h)}),a.forEach(function(h){l.exrule(new b(Ot(h,o,u),f))}),s.forEach(function(h){l.exdate(h)}),t.compatible&&t.dtstart&&l.rdate(o),l}var m=n[0]||{};return new b(Ot(m,m.dtstart||t.dtstart||o,m.tzid||t.tzid||u),f)}function te(e,t){return t===void 0&&(t={}),cr(e,lr(t))}function Ot(e,t,r){return K(K({},e),{dtstart:t,tzid:r})}function lr(e){var t=[],r=Object.keys(e),n=Object.keys(Vt);if(r.forEach(function(i){L(n,i)||t.push(i)}),t.length)throw new Error("Invalid options: "+t.join(", "));return K(K({},Vt),e)}function dr(e){if(e.indexOf(":")===-1)return{name:"RRULE",value:e};var t=ge(e,":",1),r=t[0],n=t[1];return{name:r,value:n}}function yr(e){var t=dr(e),r=t.name,n=t.value,i=r.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:n}}function mr(e,t){if(t===void 0&&(t=!1),e=e&&e.trim(),!e)throw new Error("Invalid empty string");if(!t)return e.split(/\s/);for(var r=e.split(`
4
- `),n=0;n<r.length;){var i=r[n]=r[n].replace(/\s+$/g,"");i?n>0&&i[0]===" "?(r[n-1]+=i.slice(1),r.splice(n,1)):n+=1:r.splice(n,1)}return r}function pr(e){e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function ee(e,t){return pr(t),e.split(",").map(function(r){return Ct(r)})}function re(e){var t=this;return function(r){if(r!==void 0&&(t["_".concat(e)]=r),t["_".concat(e)]!==void 0)return t["_".concat(e)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[e];if(i)return i}}}var vr=function(e){Rt(t,e);function t(r){r===void 0&&(r=!1);var n=e.call(this,{},r)||this;return n.dtstart=re.apply(n,["dtstart"]),n.tzid=re.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return t.prototype._iter=function(r){return fr(r,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(r){ne(r,this._rrule)},t.prototype.exrule=function(r){ne(r,this._exrule)},t.prototype.rdate=function(r){ie(r,this._rdate)},t.prototype.exdate=function(r){ie(r,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(r){return te(r.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(r){return te(r.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(r){return new Date(r.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(r){return new Date(r.getTime())})},t.prototype.valueOf=function(){var r=[];return!this._rrule.length&&this._dtstart&&(r=r.concat(At({dtstart:this._dtstart}))),this._rrule.forEach(function(n){r=r.concat(n.toString().split(`
5
- `))}),this._exrule.forEach(function(n){r=r.concat(n.toString().split(`
6
- `).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&r.push(ae("RDATE",this._rdate,this.tzid())),this._exdate.length&&r.push(ae("EXDATE",this._exdate,this.tzid())),r},t.prototype.toString=function(){return this.valueOf().join(`
7
- `)},t.prototype.clone=function(){var r=new t(!!this._cache);return this._rrule.forEach(function(n){return r.rrule(n.clone())}),this._exrule.forEach(function(n){return r.exrule(n.clone())}),this._rdate.forEach(function(n){return r.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return r.exdate(new Date(n.getTime()))}),r},t}(b);function ne(e,t){if(!(e instanceof b))throw new TypeError(String(e)+" is not RRule instance");L(t.map(String),String(e))||t.push(e)}function ie(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");L(t.map(Number),Number(e))||(t.push(e),bt(t))}function ae(e,t,r){var n=!r||r.toUpperCase()==="UTC",i=n?"".concat(e,":"):"".concat(e,";TZID=").concat(r,":"),a=t.map(function(s){return $t(s.valueOf(),n)}).join(",");return"".concat(i).concat(a)}function br(...e){window&&window.localStorage&&window.localStorage.getItem("debug")&&console.debug(...e)}function wr(...e){console.error(...e)}function gr(){return Math.random().toString(36).substr(2,9)}function Tr(e){return e.toString().replace(/^on/,"")}function kr(e){const t=new Date(e*1e3),r=new Date,n=new Date(r.getFullYear(),r.getMonth(),r.getDate());return t>=n?new Intl.DateTimeFormat("default",{hour:"numeric",minute:"numeric",hour12:!0}).format(t):new Intl.DateTimeFormat("default",{month:"short",day:"numeric"}).format(t)}function Er(e){return e.name?`${e.name} - ${e.email}`:e.email}function Mr(e,t="",r=1,n=3){const i=e.find(u=>{var f;return((f=u.email)==null?void 0:f.toLowerCase())===t.toLowerCase()}),a=e.filter(u=>{var f;return((f=u.email)==null?void 0:f.toLowerCase())!==t.toLowerCase()}),s=a.length,o=a.slice(0,n).map(u=>u.name||u.email).join(", ");return s===0?i?"me":"":s===1?i&&r>1?`me, ${o}`:o:s===2?i?`me, ${o}`:`${o}`:i?`me, ${o}, +${s-n}`:`${o}, +${s-n}`}const oe=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}],Dr=e=>{const t=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),r=new Date;let n=(e.getTime()-r.getTime())/1e3;for(let i=0;i<=oe.length;i++){const a=oe[i];if(Math.abs(n)<a.amount)return t.format(Math.round(n),a.name);n/=a.amount}};function Sr(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function xr(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Or(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Yr(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function Lr(e){return e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase())}function Ur(e){return e.replace("CATEGORY_","").replace(/_/g," ")}function ve(e){return/<[^>]*>/g.test(e)?"html":"plain"}function Ir(e){var i,a;const t=e.headers,r=t&&((i=t.find(s=>s.name==="Content-Type"))==null?void 0:i.value)||"",n=t&&((a=t.find(s=>s.name==="Content-Disposition"))==null?void 0:a.value)||"";return!!(r.includes("text/html")||n.includes("inline")||e.body&&ve(e.body)==="html")}function _r(e){let n=e.split(`
8
- `).filter(a=>a.trim().length>0).map(a=>`<p>${a}</p>`).join("");const i=/((?:https?|ftp):\/\/[^\s]+)/g;return n=n.replace(i,'<a href="$1">$1</a>'),n}function Ar(e){return new DOMParser().parseFromString(e,"text/html").body.textContent||""}const Nr=e=>e===""?!0:/^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i.test(e),$r=e=>/^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i.test(e);function Cr(e=null){let t=Nt();e&&(t=e);const r=t.minute()%15;let n;return r!==0?n=t.add(15-r,"minute"):n=t,n}function Rr(e){const t=Nt();let r="";const[n,i]=e.split(":");n.length===1?r+="0"+n:n.length===2&&(r+=n),r+=":",i===void 0||i==""?r+="00":i.length===1?r+=i+"0":r+=i;const a=r.slice(-1);return a==="a"&&(r+="m"),a==="p"&&(r+="m"),r.slice(-1)!=="m"&&(r.split(":")[0]=="00"?r+="am":r+=t.format("a")),r}function Wr(e){const[t,r]=e.split(":").map(o=>parseInt(o,10));let n=t;const i=n>=12?"pm":"am";n=n%12,n=n||12;const a=n.toString().padStart(2,"0"),s=r.toString().padStart(2,"0");return`${a}:${s}${i}`}function Hr(e){const[t,r]=e.split(/(am|pm)/i),[n,i]=t.split(":").map(s=>parseInt(s,10));let a=n;return r.toLowerCase()==="pm"&&a<12?a+=12:r.toLowerCase()==="am"&&a===12&&(a=0),`${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function Fr(e){const[t,r]=e.match(/(\d+):(\d+)(am|pm)/).slice(1);let n=parseInt(t,10)*60+parseInt(r,10);return e.includes("pm")&&parseInt(t,10)<12&&(n+=12*60),e.includes("am")&&parseInt(t,10)===12&&(n-=12*60),n}function Pr(e){const t=Math.floor(e/60),r=e%60;return`${t}:${r<10?"0":""}${r}`}function jr(){const e=navigator.userAgent,t=/Chrome/.test(e)&&/Google Inc/.test(navigator.vendor),r=/Safari/.test(e)&&/Apple Computer/.test(navigator.vendor),n=/Firefox/.test(e),i=/Trident/.test(e),a=/Edge/.test(e);return t&&/Edg/.test(e)?"Edge (Chromium)":t?"Chrome":r?"Safari":n?"Firefox":i?"Internet Explorer":a?"Edge (Legacy)":"Unknown"}exports.autocompleteTimeFormat=Rr;exports.convertTo12HourFormat=Wr;exports.convertTo24HourFormat=Hr;exports.dayjs=Nt;exports.debug=br;exports.detectHTMLOrPlainText=ve;exports.detectIfMessageIsHTML=Ir;exports.error=wr;exports.formatDateTime=kr;exports.formatEventName=Tr;exports.formatFolderName=Ur;exports.formatParticipants=Mr;exports.formatRecipient=Er;exports.formatTimeAgo=Dr;exports.getBrowser=jr;exports.getFirstDayOfMonth=xr;exports.getLastDayOfMonth=Sr;exports.htmlToPlainText=Ar;exports.isSameDay=Or;exports.isSameMonth=Yr;exports.minutesToTime=Pr;exports.parsePlainTextToHTML=_r;exports.roundToNearest15Minutes=Cr;exports.timeToMinutes=Fr;exports.toTitleCase=Lr;exports.uniqueID=gr;exports.validateExactTimeFormat=$r;exports.validateTimeFormatInput=Nr;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const t=".sc-warning-icon-h{display:flex}",r=t,c=class{constructor(n){e.registerInstance(this,n),this.width="16",this.height="16"}render(){return e.h("svg",{key:"17a6924f3361b1cfc5d64fb4c07e8ec769617bb3",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"cc403a3f0c8ec9bdb7c497de7235d24cc5c5cae7",d:"M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z",fill:"currentColor"}))}};c.style=r;exports.warning_icon=c;
@@ -1,15 +0,0 @@
1
- import { r as t, h as c } from "./index-db0c5017.js";
2
- import "react";
3
- import "react-dom";
4
- const a = ".sc-warning-icon-h{display:flex}", r = a, e = class {
5
- constructor(n) {
6
- t(this, n), this.width = "16", this.height = "16";
7
- }
8
- render() {
9
- return c("svg", { key: "17a6924f3361b1cfc5d64fb4c07e8ec769617bb3", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "cc403a3f0c8ec9bdb7c497de7235d24cc5c5cae7", d: "M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z", fill: "currentColor" }));
10
- }
11
- };
12
- e.style = r;
13
- export {
14
- e as warning_icon
15
- };