streamlit-nightly 1.22.1.dev20230427__py2.py3-none-any.whl → 1.22.1.dev20230430__py2.py3-none-any.whl

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 (21) hide show
  1. streamlit/elements/lib/column_config_utils.py +1 -0
  2. streamlit/runtime/metrics_util.py +22 -0
  3. streamlit/static/asset-manifest.json +7 -7
  4. streamlit/static/index.html +1 -1
  5. streamlit/static/static/js/134.9b478bf2.chunk.js +1 -0
  6. streamlit/static/static/js/{138.27cfe76e.chunk.js → 138.0341fdc9.chunk.js} +1 -1
  7. streamlit/static/static/js/{197.df3c9e11.chunk.js → 197.b0ea6cff.chunk.js} +1 -1
  8. streamlit/static/static/js/25.e30a32df.chunk.js +1 -0
  9. streamlit/static/static/js/{main.ef031aa0.js → main.aa545b64.js} +2 -2
  10. streamlit/testing/element_tree.py +0 -1
  11. streamlit/testing/script_interactions.py +22 -7
  12. {streamlit_nightly-1.22.1.dev20230427.dist-info → streamlit_nightly-1.22.1.dev20230430.dist-info}/METADATA +1 -1
  13. {streamlit_nightly-1.22.1.dev20230427.dist-info → streamlit_nightly-1.22.1.dev20230430.dist-info}/RECORD +19 -19
  14. streamlit/static/static/js/213.4b7d42fc.chunk.js +0 -1
  15. streamlit/static/static/js/425.67a285e2.chunk.js +0 -1
  16. /streamlit/static/static/css/{213.23fa976d.chunk.css → 25.23fa976d.chunk.css} +0 -0
  17. /streamlit/static/static/js/{main.ef031aa0.js.LICENSE.txt → main.aa545b64.js.LICENSE.txt} +0 -0
  18. {streamlit_nightly-1.22.1.dev20230427.data → streamlit_nightly-1.22.1.dev20230430.data}/scripts/streamlit.cmd +0 -0
  19. {streamlit_nightly-1.22.1.dev20230427.dist-info → streamlit_nightly-1.22.1.dev20230430.dist-info}/WHEEL +0 -0
  20. {streamlit_nightly-1.22.1.dev20230427.dist-info → streamlit_nightly-1.22.1.dev20230430.dist-info}/entry_points.txt +0 -0
  21. {streamlit_nightly-1.22.1.dev20230427.dist-info → streamlit_nightly-1.22.1.dev20230430.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkstreamlit_browser=self.webpackChunkstreamlit_browser||[]).push([[197],{66610:function(t,e,r){function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function a(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function o(t){a(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function i(t,e){a(2,arguments);var r=o(t),i=n(e);return isNaN(i)?new Date(NaN):i?(r.setDate(r.getDate()+i),r):r}function u(t,e){a(2,arguments);var r=o(t).getTime(),i=n(e);return new Date(r+i)}r.d(e,{Z:function(){return Se}});var s=36e5;function c(t,e){a(2,arguments);var r=o(t),i=n(e);if(isNaN(i))return new Date(NaN);if(!i)return r;var u=r.getDate(),s=new Date(r.getTime());s.setMonth(r.getMonth()+i+1,0);var c=s.getDate();return u>=c?s:(r.setFullYear(s.getFullYear(),s.getMonth(),u),r)}function d(t,e){a(2,arguments);var r=n(e);return c(t,12*r)}function l(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()-n.getFullYear()}function f(t,e){a(2,arguments);var r=o(t),n=o(e),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function h(t,e){a(2,arguments);var r=o(t),n=o(e),i=r.getFullYear()-n.getFullYear(),u=r.getMonth()-n.getMonth();return 12*i+u}function p(t,e){a(2,arguments);var r=o(t),n=o(e),i=f(r,n),u=Math.abs(h(r,n));r.setMonth(r.getMonth()-i*u);var s=f(r,n)===-i,c=i*(u-s);return 0===c?0:c}var m=6e4;function g(t){return t.getTime()%m}function w(t){var e=new Date(t.getTime()),r=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var n=r>0?(m+g(e))%m:g(e);return r*m+n}function y(t){a(1,arguments);var e=o(t);return e.setHours(0,0,0,0),e}var v=864e5;function b(t,e){a(2,arguments);var r=y(t),n=y(e),o=r.getTime()-w(r),i=n.getTime()-w(n);return Math.round((o-i)/v)}function T(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function M(t,e){a(2,arguments);var r=o(t),n=o(e),i=T(r,n),u=Math.abs(b(r,n));r.setDate(r.getDate()-i*u);var s=T(r,n)===-i,c=i*(u-s);return 0===c?0:c}function D(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()-n.getTime()}var C=36e5;function k(t){a(1,arguments);var e=o(t);return e.setHours(23,59,59,999),e}function x(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getDay(),f=6+(l<c?-7:0)-(l-c);return d.setDate(d.getDate()+f),d.setHours(23,59,59,999),d}function S(t){a(1,arguments);var e=o(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function O(t){a(1,arguments);var e=o(t);return!isNaN(e)}var P={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function E(t){return function(e){var r=e||{},n=r.width?String(r.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var U={date:E({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:E({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:E({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function H(t){return function(e,r){var n,a=r||{};if("formatting"===(a.context?String(a.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,i=a.width?String(a.width):o;n=t.formattingValues[i]||t.formattingValues[o]}else{var u=t.defaultWidth,s=a.width?String(a.width):t.defaultWidth;n=t.values[s]||t.values[u]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function N(t){return function(e,r){var n=String(e),a=r||{},o=a.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],u=n.match(i);if(!u)return null;var s,c=u[0],d=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(d)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(d,(function(t){return t.test(c)})):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}(d,(function(t){return t.test(c)})),s=t.valueCallback?t.valueCallback(s):s,{value:s=a.valueCallback?a.valueCallback(s):s,rest:n.slice(c.length)}}}var W,q={code:"en-US",formatDistance:function(t,e,r){var n;return r=r||{},n="string"===typeof P[t]?P[t]:1===e?P[t].one:P[t].other.replace("{{count}}",e),r.addSuffix?r.comparison>0?"in "+n:n+" ago":n},formatLong:U,formatRelative:function(t,e,r,n){return Y[t]},localize:{ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:H({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:H({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:H({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:H({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:H({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(W={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var r=String(t),n=e||{},a=r.match(W.matchPattern);if(!a)return null;var o=a[0],i=r.match(W.parsePattern);if(!i)return null;var u=W.valueCallback?W.valueCallback(i[0]):i[0];return{value:u=n.valueCallback?n.valueCallback(u):u,rest:r.slice(o.length)}}),era:N({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:N({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function L(t,e){a(2,arguments);var r=n(e);return u(t,-r)}function A(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var j={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return A("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):A(r+1,2)},d:function(t,e){return A(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(t,e){return A(t.getUTCHours()%12||12,e.length)},H:function(t,e){return A(t.getUTCHours(),e.length)},m:function(t,e){return A(t.getUTCMinutes(),e.length)},s:function(t,e){return A(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=t.getUTCMilliseconds();return A(Math.floor(n*Math.pow(10,r-3)),e.length)}},F=864e5;function I(t){a(1,arguments);var e=1,r=o(t),n=r.getUTCDay(),i=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function R(t){a(1,arguments);var e=o(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=I(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var s=I(u);return e.getTime()>=i.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}function Q(t){a(1,arguments);var e=R(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=I(r);return n}var B=6048e5;function G(t){a(1,arguments);var e=o(t),r=I(e).getTime()-Q(e).getTime();return Math.round(r/B)+1}function X(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getUTCDay(),f=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-f),d.setUTCHours(0,0,0,0),d}function z(t,e){a(1,arguments);var r=o(t,e),i=r.getUTCFullYear(),u=e||{},s=u.locale,c=s&&s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(i+1,0,l),f.setUTCHours(0,0,0,0);var h=X(f,e),p=new Date(0);p.setUTCFullYear(i,0,l),p.setUTCHours(0,0,0,0);var m=X(p,e);return r.getTime()>=h.getTime()?i+1:r.getTime()>=m.getTime()?i:i-1}function _(t,e){a(1,arguments);var r=e||{},o=r.locale,i=o&&o.options&&o.options.firstWeekContainsDate,u=null==i?1:n(i),s=null==r.firstWeekContainsDate?u:n(r.firstWeekContainsDate),c=z(t,e),d=new Date(0);d.setUTCFullYear(c,0,s),d.setUTCHours(0,0,0,0);var l=X(d,e);return l}var Z=6048e5;function J(t,e){a(1,arguments);var r=o(t),n=X(r,e).getTime()-_(r,e).getTime();return Math.round(n/Z)+1}var K="midnight",$="noon",V="morning",tt="afternoon",et="evening",rt="night",nt={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return j.y(t,e)},Y:function(t,e,r,n){var a=z(t,n),o=a>0?a:1-a;return"YY"===e?A(o%100,2):"Yo"===e?r.ordinalNumber(o,{unit:"year"}):A(o,e.length)},R:function(t,e){return A(R(t),e.length)},u:function(t,e){return A(t.getUTCFullYear(),e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return A(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return A(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return j.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return A(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var a=J(t,n);return"wo"===e?r.ordinalNumber(a,{unit:"week"}):A(a,e.length)},I:function(t,e,r){var n=G(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):A(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):j.d(t,e)},D:function(t,e,r){var n=function(t){a(1,arguments);var e=o(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),i=r-n;return Math.floor(i/F)+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):A(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return A(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return A(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),a=0===n?7:n;switch(e){case"i":return String(a);case"ii":return A(a,e.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,a=t.getUTCHours();switch(n=12===a?$:0===a?K:a/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,a=t.getUTCHours();switch(n=a>=17?et:a>=12?tt:a>=4?V:rt,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return j.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):j.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):A(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?r.ordinalNumber(n,{unit:"hour"}):A(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):j.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):j.s(t,e)},S:function(t,e){return j.S(t,e)},X:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return ot(a);case"XXXX":case"XX":return it(a);default:return it(a,":")}},x:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return ot(a);case"xxxx":case"xx":return it(a);default:return it(a,":")}},O:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+at(a,":");default:return"GMT"+it(a,":")}},z:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+at(a,":");default:return"GMT"+it(a,":")}},t:function(t,e,r,n){var a=n._originalDate||t;return A(Math.floor(a.getTime()/1e3),e.length)},T:function(t,e,r,n){return A((n._originalDate||t).getTime(),e.length)}};function at(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),o=n%60;if(0===o)return r+String(a);var i=e||"";return r+String(a)+i+A(o,2)}function ot(t,e){return t%60===0?(t>0?"-":"+")+A(Math.abs(t)/60,2):it(t,e)}function it(t,e){var r=e||"",n=t>0?"-":"+",a=Math.abs(t);return n+A(Math.floor(a/60),2)+r+A(a%60,2)}var ut=nt;function st(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}}function ct(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}}var dt={p:ct,P:function(t,e){var r,n=t.match(/(P+)(p+)?/),a=n[1],o=n[2];if(!o)return st(t,e);switch(a){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",st(a,e)).replace("{{time}}",ct(o,e))}},lt=dt,ft=["D","DD"],ht=["YY","YYYY"];function pt(t){return-1!==ft.indexOf(t)}function mt(t){return-1!==ht.indexOf(t)}function gt(t,e,r){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var wt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vt=/^'([^]*?)'?$/,bt=/''/g,Tt=/[a-zA-Z]/;function Mt(t){return t.match(vt)[1].replace(bt,"'")}function Dt(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()>n.getTime()}function Ct(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()<n.getTime()}function kt(t){a(1,arguments);var e=o(t);return e.setMinutes(0,0,0),e}function xt(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e=e||{})e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function St(t,e,r){a(2,arguments);var i=r||{},u=i.locale,s=u&&u.options&&u.options.weekStartsOn,c=null==s?0:n(s),d=null==i.weekStartsOn?c:n(i.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=o(t),f=n(e),h=l.getUTCDay(),p=f%7,m=(p+7)%7,g=(m<d?7:0)+f-h;return l.setUTCDate(l.getUTCDate()+g),l}var Ot=/^(1[0-2]|0?\d)/,Pt=/^(3[0-1]|[0-2]?\d)/,Et=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ut=/^(5[0-3]|[0-4]?\d)/,Yt=/^(2[0-3]|[0-1]?\d)/,Ht=/^(2[0-4]|[0-1]?\d)/,Nt=/^(1[0-1]|0?\d)/,Wt=/^(1[0-2]|0?\d)/,qt=/^[0-5]?\d/,Lt=/^[0-5]?\d/,At=/^\d/,jt=/^\d{1,2}/,Ft=/^\d{1,3}/,It=/^\d{1,4}/,Rt=/^-?\d+/,Qt=/^-?\d/,Bt=/^-?\d{1,2}/,Gt=/^-?\d{1,3}/,Xt=/^-?\d{1,4}/,zt=/^([+-])(\d{2})(\d{2})?|Z/,_t=/^([+-])(\d{2})(\d{2})|Z/,Zt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Jt=/^([+-])(\d{2}):(\d{2})|Z/,Kt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function $t(t,e,r){var n=e.match(t);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:e.slice(n[0].length)}}function Vt(t,e){var r=e.match(t);return r?"Z"===r[0]?{value:0,rest:e.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:e.slice(r[0].length)}:null}function te(t,e){return $t(Rt,t,e)}function ee(t,e,r){switch(t){case 1:return $t(At,e,r);case 2:return $t(jt,e,r);case 3:return $t(Ft,e,r);case 4:return $t(It,e,r);default:return $t(new RegExp("^\\d{1,"+t+"}"),e,r)}}function re(t,e,r){switch(t){case 1:return $t(Qt,e,r);case 2:return $t(Bt,e,r);case 3:return $t(Gt,e,r);case 4:return $t(Xt,e,r);default:return $t(new RegExp("^-?\\d{1,"+t+"}"),e,r)}}function ne(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ae(t,e){var r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{var o=a+50;r=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?r:1-r}var oe=[31,28,31,30,31,30,31,31,30,31,30,31],ie=[31,29,31,30,31,30,31,31,30,31,30,31];function ue(t){return t%400===0||t%4===0&&t%100!==0}var se={G:{priority:140,parse:function(t,e,r,n){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}},set:function(t,e,r,n){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ee(4,t,a);case"yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return ee(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=t.getUTCFullYear();if(r.isTwoDigitYear){var o=ae(r.year,a);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ee(4,t,a);case"Yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return ee(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=z(t,n);if(r.isTwoDigitYear){var o=ae(r.year,a);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),X(t,n)}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),X(t,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,r,n){return re("R"===e?4:e.length,t)},set:function(t,e,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),I(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,r,n){return re("u"===e?4:e.length,t)},set:function(t,e,r,n){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,r,n){switch(e){case"Q":case"QQ":return ee(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,r,n){switch(e){case"q":case"qq":return ee(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"M":return $t(Ot,t,a);case"MM":return ee(2,t,a);case"Mo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"L":return $t(Ot,t,a);case"LL":return ee(2,t,a);case"Lo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,r,n){switch(e){case"w":return $t(Ut,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,i){return X(function(t,e,r){a(2,arguments);var i=o(t),u=n(e),s=J(i,r)-u;return i.setUTCDate(i.getUTCDate()-7*s),i}(t,r,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,r,n){switch(e){case"I":return $t(Ut,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,i){return I(function(t,e){a(2,arguments);var r=o(t),i=n(e),u=G(r)-i;return r.setUTCDate(r.getUTCDate()-7*u),r}(t,r,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"d":return $t(Pt,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}},validate:function(t,e,r){var n=ue(t.getUTCFullYear()),a=t.getUTCMonth();return n?e>=1&&e<=ie[a]:e>=1&&e<=oe[a]},set:function(t,e,r,n){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"D":case"DD":return $t(Et,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}},validate:function(t,e,r){return ue(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,r,n){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,r,n){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=St(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ee(e.length,t,a);case"eo":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=St(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ee(e.length,t,a);case"co":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=St(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,r,n){var a=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ee(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});default:return r.day(t,{width:"wide",context:"formatting",valueCallback:a})||r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(t,e,r){return e>=1&&e<=7},set:function(t,e,r,i){return t=function(t,e){a(2,arguments);var r=n(e);r%7===0&&(r-=7);var i=1,u=o(t),s=u.getUTCDay(),c=((r%7+7)%7<i?7:0)+r-s;return u.setUTCDate(u.getUTCDate()+c),u}(t,r,i),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,r,n){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ne(r),0,0,0),t},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(t,e,r,n){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ne(r),0,0,0),t},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(t,e,r,n){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ne(r),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,r,n){switch(e){case"h":return $t(Wt,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=12},set:function(t,e,r,n){var a=t.getUTCHours()>=12;return a&&r<12?t.setUTCHours(r+12,0,0,0):a||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,r,n){switch(e){case"H":return $t(Yt,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=23},set:function(t,e,r,n){return t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,r,n){switch(e){case"K":return $t(Nt,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.getUTCHours()>=12&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,r,n){switch(e){case"k":return $t(Ht,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=24},set:function(t,e,r,n){var a=r<=24?r%24:r;return t.setUTCHours(a,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,r,n){switch(e){case"m":return $t(qt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCMinutes(r,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,r,n){switch(e){case"s":return $t(Lt,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCSeconds(r,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,r,n){return ee(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,r,n){return t.setUTCMilliseconds(r),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,r,n){switch(e){case"X":return Vt(zt,t);case"XX":return Vt(_t,t);case"XXXX":return Vt(Zt,t);case"XXXXX":return Vt(Kt,t);default:return Vt(Jt,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,r,n){switch(e){case"x":return Vt(zt,t);case"xx":return Vt(_t,t);case"xxxx":return Vt(Zt,t);case"xxxxx":return Vt(Kt,t);default:return Vt(Jt,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,r,n){return te(t)},set:function(t,e,r,n){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,r,n){return te(t)},set:function(t,e,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},ce=se,de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,pe=/\S/,me=/[a-zA-Z]/;function ge(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}function we(t){return t.match(fe)[1].replace(he,"'")}function ye(t){a(1,arguments);var e=o(t),r=e.getFullYear(),n=e.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function ve(t){a(1,arguments);var e=o(t);return e.setDate(1),e.setHours(0,0,0,0),e}function be(t){a(1,arguments);var e=o(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function Te(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getDay(),f=(l<c?7:0)+l-c;return d.setDate(d.getDate()-f),d.setHours(0,0,0,0),d}function Me(t){a(1,arguments);var e=o(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}var De=r(77510),Ce=r.n(De),ke={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},xe=function(){function t(t){var e=void 0===t?{}:t,r=e.locale,n=e.formats;this.lib="date-fns",this.locale=r,this.formats=Object.assign({},ke,n)}return t.prototype.is12HourCycleInCurrentLocale=function(){return!this.locale||/a/.test(this.locale.formatLong.time())},t.prototype.getFormatHelperText=function(t){var e=this.locale||q;return t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(t){var r=t[0];return"p"===r||"P"===r?(0,Ce()[r])(t,e.formatLong,{}):t})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},t.prototype.getCurrentLocaleCode=function(){var t;return(null===(t=this.locale)||void 0===t?void 0:t.code)||"en-US"},t.prototype.addSeconds=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,1e3*r)}(t,e)},t.prototype.addMinutes=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,6e4*r)}(t,e)},t.prototype.addHours=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,r*s)}(t,e)},t.prototype.addDays=function(t,e){return i(t,e)},t.prototype.addWeeks=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return i(t,7*r)}(t,e)},t.prototype.addMonths=function(t,e){return c(t,e)},t.prototype.isValid=function(t){return O(this.date(t))},t.prototype.getDiff=function(t,e,r){switch(r){case"years":return function(t,e){a(2,arguments);var r=o(t),n=o(e),i=f(r,n),u=Math.abs(l(r,n));r.setFullYear("1584"),n.setFullYear("1584");var s=f(r,n)===-i,c=i*(u-s);return 0===c?0:c}(t,this.date(e));case"quarters":return function(t,e){a(2,arguments);var r=p(t,e)/3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"months":return p(t,this.date(e));case"weeks":return function(t,e){a(2,arguments);var r=M(t,e)/7;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"days":return M(t,this.date(e));case"hours":return function(t,e){a(2,arguments);var r=D(t,e)/C;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"minutes":return function(t,e){a(2,arguments);var r=D(t,e)/6e4;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"seconds":return function(t,e){a(2,arguments);var r=D(t,e)/1e3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));default:return D(t,this.date(e))}},t.prototype.isAfter=function(t,e){return Dt(t,e)},t.prototype.isBefore=function(t,e){return Ct(t,e)},t.prototype.startOfDay=function(t){return y(t)},t.prototype.endOfDay=function(t){return k(t)},t.prototype.getHours=function(t){return function(t){return a(1,arguments),o(t).getHours()}(t)},t.prototype.setHours=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setHours(i),r}(t,e)},t.prototype.setMinutes=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setMinutes(i),r}(t,e)},t.prototype.getSeconds=function(t){return function(t){return a(1,arguments),o(t).getSeconds()}(t)},t.prototype.setSeconds=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setSeconds(i),r}(t,e)},t.prototype.isSameDay=function(t,e){return function(t,e){a(2,arguments);var r=y(t),n=y(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isSameMonth=function(t,e){return function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}(t,e)},t.prototype.isSameYear=function(t,e){return function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()}(t,e)},t.prototype.isSameHour=function(t,e){return function(t,e){a(2,arguments);var r=kt(t),n=kt(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.startOfMonth=function(t){return ve(t)},t.prototype.endOfMonth=function(t){return be(t)},t.prototype.startOfWeek=function(t){return Te(t,{locale:this.locale})},t.prototype.endOfWeek=function(t){return x(t,{locale:this.locale})},t.prototype.getYear=function(t){return function(t){return a(1,arguments),o(t).getFullYear()}(t)},t.prototype.setYear=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return isNaN(r)?new Date(NaN):(r.setFullYear(i),r)}(t,e)},t.prototype.date=function(t){return"undefined"===typeof t?new Date:null===t?null:new Date(t)},t.prototype.toJsDate=function(t){return t},t.prototype.parse=function(t,e){return""===t?null:function(t,e,r,i){a(3,arguments);var u=String(t),s=String(e),c=i||{},d=c.locale||q;if(!d.match)throw new RangeError("locale must contain match property");var l=d.options&&d.options.firstWeekContainsDate,f=null==l?1:n(l),h=null==c.firstWeekContainsDate?f:n(c.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=d.options&&d.options.weekStartsOn,m=null==p?0:n(p),g=null==c.weekStartsOn?m:n(c.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===s)return""===u?o(r):new Date(NaN);var y,v={firstWeekContainsDate:h,weekStartsOn:g,locale:d},b=[{priority:10,subPriority:-1,set:ge,index:0}],T=s.match(le).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,lt[e])(t,d.formatLong,v):t})).join("").match(de),M=[];for(y=0;y<T.length;y++){var D=T[y];!c.useAdditionalWeekYearTokens&&mt(D)&&gt(D,s,t),!c.useAdditionalDayOfYearTokens&&pt(D)&&gt(D,s,t);var C=D[0],k=ce[C];if(k){var x=k.incompatibleTokens;if(Array.isArray(x)){for(var S=void 0,O=0;O<M.length;O++){var P=M[O].token;if(-1!==x.indexOf(P)||P===C){S=M[O];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(D,"` at the same time"))}else if("*"===k.incompatibleTokens&&M.length)throw new RangeError("The format string mustn't contain `".concat(D,"` and any other token at the same time"));M.push({token:C,fullToken:D});var E=k.parse(u,D,d.match,v);if(!E)return new Date(NaN);b.push({priority:k.priority,subPriority:k.subPriority||0,set:k.set,validate:k.validate,value:E.value,index:b.length}),u=E.rest}else{if(C.match(me))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===D?D="'":"'"===C&&(D=we(D)),0!==u.indexOf(D))return new Date(NaN);u=u.slice(D.length)}}if(u.length>0&&pe.test(u))return new Date(NaN);var U=b.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,r){return r.indexOf(t)===e})).map((function(t){return b.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),Y=o(r);if(isNaN(Y))return new Date(NaN);var H=L(Y,w(Y)),N={};for(y=0;y<U.length;y++){var W=U[y];if(W.validate&&!W.validate(H,W.value,v))return new Date(NaN);var A=W.set(H,N,W.value,v);A[0]?(H=A[0],xt(N,A[1])):H=A}return H}(t,e,new Date,{locale:this.locale})},t.prototype.format=function(t,e){return this.formatByString(t,this.formats[e])},t.prototype.formatByString=function(t,e){return function(t,e,r){a(2,arguments);var i=String(e),u=r||{},s=u.locale||q,c=s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=s.options&&s.options.weekStartsOn,h=null==f?0:n(f),p=null==u.weekStartsOn?h:n(u.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var m=o(t);if(!O(m))throw new RangeError("Invalid time value");var g=w(m),y=L(m,g),v={firstWeekContainsDate:l,weekStartsOn:p,locale:s,_originalDate:m},b=i.match(yt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,lt[e])(t,s.formatLong,v):t})).join("").match(wt).map((function(r){if("''"===r)return"'";var n=r[0];if("'"===n)return Mt(r);var a=ut[n];if(a)return!u.useAdditionalWeekYearTokens&&mt(r)&&gt(r,e,t),!u.useAdditionalDayOfYearTokens&&pt(r)&&gt(r,e,t),a(y,r,s.localize,v);if(n.match(Tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("");return b}(t,e,{locale:this.locale})},t.prototype.isEqual=function(t,e){return null===t&&null===e||function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isNull=function(t){return null===t},t.prototype.isAfterDay=function(t,e){return Dt(t,k(e))},t.prototype.isBeforeDay=function(t,e){return Ct(t,y(e))},t.prototype.isBeforeYear=function(t,e){return Ct(t,Me(e))},t.prototype.isAfterYear=function(t,e){return Dt(t,S(e))},t.prototype.isWithinRange=function(t,e){return function(t,e){a(2,arguments);var r=e||{},n=o(t).getTime(),i=o(r.start).getTime(),u=o(r.end).getTime();if(!(i<=u))throw new RangeError("Invalid interval");return n>=i&&n<=u}(t,{start:e[0],end:e[1]})},t.prototype.formatNumber=function(t){return t},t.prototype.getMinutes=function(t){return t.getMinutes()},t.prototype.getMonth=function(t){return t.getMonth()},t.prototype.getDaysInMonth=function(t){return ye(t)},t.prototype.setMonth=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e),u=r.getFullYear(),s=r.getDate(),c=new Date(0);c.setFullYear(u,i,15),c.setHours(0,0,0,0);var d=ye(c);return r.setMonth(i,Math.min(s,d)),r}(t,e)},t.prototype.getMeridiemText=function(t){return"am"===t?"AM":"PM"},t.prototype.getNextMonth=function(t){return c(t,1)},t.prototype.getPreviousMonth=function(t){return c(t,-1)},t.prototype.getMonthArray=function(t){for(var e=[Me(t)];e.length<12;){var r=e[e.length-1];e.push(this.getNextMonth(r))}return e},t.prototype.mergeDateAndTime=function(t,e){return this.setSeconds(this.setMinutes(this.setHours(t,this.getHours(e)),this.getMinutes(e)),this.getSeconds(e))},t.prototype.getWeekdays=function(){var t=this,e=new Date;return function(t,e){a(1,arguments);var r=t||{},n=o(r.start),i=o(r.end).getTime();if(!(n.getTime()<=i))throw new RangeError("Invalid interval");var u=[],s=n;s.setHours(0,0,0,0);var c=e&&"step"in e?Number(e.step):1;if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)u.push(o(s)),s.setDate(s.getDate()+c),s.setHours(0,0,0,0);return u}({start:Te(e,{locale:this.locale}),end:x(e,{locale:this.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},t.prototype.getWeekArray=function(t){for(var e=Te(ve(t),{locale:this.locale}),r=x(be(t),{locale:this.locale}),n=0,a=e,o=[];Ct(a,r);){var u=Math.floor(n/7);o[u]=o[u]||[],o[u].push(a),a=i(a,1),n+=1}return o},t.prototype.getYearRange=function(t,e){for(var r=Me(t),n=S(e),a=[],o=r;Ct(o,n);)a.push(o),o=d(o,1);return a},t}(),Se=new xe({})},2199:function(t,e){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=u((function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"adapter",void 0),s(this,"cloneAdapter",(function(t,e){var r={MomentUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"D",fullOrdinalWeek:"dddd, MMMM Do YYYY",slashDate:"YYYY/MM/DD",weekday:"dddd",weekdaymin:"dd",quarter:"[Q]Q"}},DateFnsUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM do yyyy",quarter:"QQQ"}},LuxonUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM dd yyyy",quarter:"Qq"}}},n=function(t){return{formats:t.formats,locale:t.locale}},a=e||n,o=t.constructor,i=r[t.constructor.name]||r.DateFnsUtils,u=i.getOptions,s=void 0===u?n:u,c=i.formats,d=s(t);return new o(Object.assign({},a(Object.assign({},d,{formats:Object.assign({},d.formats,c)}))))})),s(this,"format",(function(t,e,r){return(r?n.getAdapterWithNewLocale(r):n.adapter).format(t,e)})),s(this,"getAdapterWithNewLocale",(function(t){return n.cloneAdapter(n.adapter,(function(e){return o(o({},e),{},{locale:t})}))})),s(this,"date",(function(t){return n.adapter.date(t)})),s(this,"dateToSeconds",(function(t){return n.adapter.getSeconds(t)+60*n.adapter.getMinutes(t)+3600*n.adapter.getHours(t)})),s(this,"secondsToHourMinute",(function(t){var e=n.adapter.toJsDate(n.adapter.date(1e3*t));return[e.getUTCHours(),e.getUTCMinutes()]})),s(this,"differenceInCalendarMonths",(function(t,e){return 12*(n.adapter.getYear(t)-n.adapter.getYear(e))+(n.adapter.getMonth(t)-n.adapter.getMonth(e))})),s(this,"getStartOfWeek",(function(t,e){var r=e?n.getAdapterWithNewLocale(e):n.adapter;return r.startOfWeek(r.date(t))})),s(this,"formatDate",(function(t,e,r){return(r?n.getAdapterWithNewLocale(r):n.adapter).formatByString(t,e)})),s(this,"getWeekdayMinInLocale",(function(t,e){return n.getAdapterWithNewLocale(e).format(t,"weekdaymin")})),s(this,"getMonthInLocale",(function(t,e){var r=n.getAdapterWithNewLocale(e);return r.format(r.setMonth(r.date(),t),"month")})),s(this,"getWeekdayInLocale",(function(t,e){return n.getAdapterWithNewLocale(e).format(t,"weekday")})),s(this,"getQuarterInLocale",(function(t,e){var r=n.getAdapterWithNewLocale(e);return r.format(r.setMonth(r.date(),3*t),"quarter")})),s(this,"getEndOfWeek",(function(t){return n.adapter.endOfWeek(t)})),s(this,"getDay",(function(t){return Number(n.adapter.formatByString(t,"e"))-1})),s(this,"addWeeks",(function(t,e){return n.adapter.addDays(t,7*e)})),s(this,"subWeeks",(function(t,e){return n.addWeeks(t,-1*e)})),s(this,"addYears",(function(t,e){return n.adapter.addMonths(t,12*e)})),s(this,"subYears",(function(t,e){return n.addYears(t,-1*e)})),s(this,"isSameYear",(function(t,e){return!(!t||!e)&&n.adapter.isSameYear(t,e)})),s(this,"isStartOfMonth",(function(t){return n.adapter.isSameDay(t,n.adapter.startOfMonth(t))})),s(this,"isEndOfMonth",(function(t){return n.adapter.isSameDay(t,n.adapter.endOfMonth(t))})),s(this,"isDayInRange",(function(t,e,r){return n.adapter.isWithinRange(t,[e,r])})),s(this,"isSameDay",(function(t,e){return!(!t||!e)&&n.adapter.isSameDay(t,e)})),s(this,"isSameMonth",(function(t,e){return!(!t||!e)&&n.adapter.isSameMonth(t,e)})),s(this,"dateRangeIncludesDates",(function(t,e){var a=r(t,2),o=a[0],i=a[1];if(o&&i&&Array.isArray(e)&&e.length)for(var u=0;u<e.length;u++){var s=e[u];if(n.isDayInRange(s,o,i))return!0}return!1})),s(this,"subDays",(function(t,e){return n.adapter.addDays(t,-1*e)})),s(this,"subMonths",(function(t,e){return n.adapter.addMonths(t,-1*e)})),s(this,"min",(function(t){return t.reduce((function(t,e){return n.adapter.isBefore(e,t)?e:t}))})),s(this,"max",(function(t){return t.reduce((function(t,e){return n.adapter.isAfter(e,t)?e:t}))})),s(this,"getEffectiveMinDate",(function(t){var e=t.minDate,r=t.includeDates;if(r&&e){var a=r.filter((function(t){return n.isOnOrAfterDay(t,e)}));return n.min(a)}return r&&r.length?n.min(r):r&&r.length||!e?n.adapter.date():e})),s(this,"getEffectiveMaxDate",(function(t){var e=t.maxDate,r=t.includeDates;if(r&&e){var a=r.filter((function(t){return n.isOnOrBeforeDay(t,e)}));return n.max(a)}return r?n.max(r):!r&&e?e:n.adapter.date()})),s(this,"monthDisabledBefore",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.minDate,a=e.includeDates,o=n.subMonths(t,1);return!!r&&n.differenceInCalendarMonths(r,o)>0||!!a&&a.every((function(t){return n.differenceInCalendarMonths(t,o)>0}))||!1})),s(this,"monthDisabledAfter",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.maxDate,a=e.includeDates,o=n.adapter.addMonths(t,1);return!!r&&n.differenceInCalendarMonths(o,r)>0||!!a&&a.every((function(t){return n.differenceInCalendarMonths(o,t)>0}))||!1})),s(this,"setDate",(function(t,e){var r=n.adapter.startOfMonth(t),a=n.adapter.mergeDateAndTime(r,t),o=n.adapter.setSeconds(a,n.adapter.getSeconds(t));return n.adapter.addDays(o,e-1)})),s(this,"getDate",(function(t){return Number(n.adapter.format(t,"dayOfMonthNumber"))})),s(this,"applyDateToTime",(function(t,e){if(!t)return e;var r=n.adapter.getYear(e),a=n.adapter.getMonth(e),o=n.getDate(e),i=n.adapter.setYear(t,r),u=n.adapter.setMonth(i,a);return n.setDate(u,o)})),s(this,"applyTimeToDate",(function(t,e){return t?n.adapter.setSeconds(n.adapter.mergeDateAndTime(t,e),0):e})),s(this,"isDayDisabled",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.minDate,a=e.maxDate,o=e.excludeDates,i=e.includeDates,u=e.filterDate;return n.isOutOfBounds(t,{minDate:r,maxDate:a})||o&&o.some((function(e){return n.adapter.isSameDay(t,e)}))||i&&!i.some((function(e){return n.adapter.isSameDay(t,e)}))||u&&!u(t)||!1})),s(this,"isOnOrAfterDay",(function(t,e){return!!n.adapter.isSameDay(t,e)||n.adapter.isAfter(t,e)})),s(this,"isOnOrBeforeDay",(function(t,e){return!!n.adapter.isSameDay(t,e)||n.adapter.isBefore(t,e)})),s(this,"isOutOfBounds",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.minDate,a=e.maxDate;return!!r&&!n.isOnOrAfterDay(t,r)||!!a&&!n.isOnOrBeforeDay(t,a)})),s(this,"parseString",(function(t,e,r){return(r?n.getAdapterWithNewLocale(r):n.adapter).parse(t,e)})),s(this,"parse",(function(t,e,r){var a=r?n.getAdapterWithNewLocale(r):n.adapter;return a.parse(t,a.formats[e])})),s(this,"setMilliseconds",(function(t,e){return n.adapter.date(1e3*n.adapter.getSeconds(n.adapter.startOfDay(t))+e)})),s(this,"set",(function(t,e){var r=t;return null!=e.year&&(r=n.setYear(r,e.year)),null!=e.month&&(r=n.setMonth(r,e.month)),null!=e.date&&(r=n.setDate(r,Number(e.date))),null!=e.hours&&(r=n.setHours(r,Number(e.hours))),null!=e.minutes&&(r=n.setMinutes(r,Number(e.minutes))),null!=e.seconds&&(r=n.setSeconds(r,Number(e.seconds))),r})),s(this,"getQuarter",(function(t){return Math.floor(n.getMonth(t)/3)+1})),s(this,"setSeconds",(function(t,e){return n.adapter.setSeconds(t,e)})),s(this,"setMinutes",(function(t,e){return n.adapter.setMinutes(t,e)})),s(this,"setHours",(function(t,e){return n.adapter.setHours(t,e)})),s(this,"setMonth",(function(t,e){return n.adapter.setMonth(t,e)})),s(this,"setYear",(function(t,e){return n.adapter.setYear(t,e)})),s(this,"getMinutes",(function(t){return n.adapter.getMinutes(t)})),s(this,"getHours",(function(t){return n.adapter.getHours(t)})),s(this,"getMonth",(function(t){return n.adapter.getMonth(t)})),s(this,"getYear",(function(t){return n.adapter.getYear(t)})),s(this,"getStartOfMonth",(function(t){return n.adapter.startOfMonth(t)})),s(this,"getEndOfMonth",(function(t){return n.adapter.endOfMonth(t)})),s(this,"addDays",(function(t,e){return n.adapter.addDays(t,e)})),s(this,"addMonths",(function(t,e){return n.adapter.addMonths(t,e)})),s(this,"isBefore",(function(t,e){return n.adapter.isBefore(t,e)})),s(this,"isAfter",(function(t,e){return n.adapter.isAfter(t,e)})),s(this,"isEqual",(function(t,e){return n.adapter.isEqual(t,e)})),s(this,"isValid",(function(t){return n.adapter.isValid(t)})),this.adapter=this.cloneAdapter(e)}));e.Z=c},11197:function(t,e,r){var n=r(47313),a=r(74969),o=r(80799),i=r(67471),u=r(85540),s=r(2199),c=r(66610);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var a=v(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){if(e&&("object"===d(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(h,t);var e,r,c,d=g(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),b(y(e=d.call(this,t)),"dateHelpers",void 0),b(y(e),"state",{steps:[],value:null}),b(y(e),"onChange",(function(t){if(e.setState({value:t.value[0]}),0!==t.value.length){var r="string"===typeof t.value[0].id?parseInt(t.value[0].id,10):t.value[0].id||0;e.handleChange(r)}else e.props.nullable&&e.props.onChange&&e.props.onChange(null)})),b(y(e),"secondsToLabel",(function(t,r){var n=f(e.dateHelpers.secondsToHourMinute(t),2),a=n[0],o=n[1],i=function(t){return t<10?"0".concat(t):t};if("12"===r){var u=t>=43200;return u&&(a-=12),0===a&&(a=12),"".concat(a,":").concat(i(o)," ").concat(u?"PM":"AM")}return"".concat(i(a),":").concat(i(o))})),b(y(e),"stringToOptions",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n=/^(1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]?)?$/,a=/^([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/,o="12"===r?n:a,i=t.match(o);if(!i)return[];var u=Number(i[1]),s=Number(i[2]),c=[];if("24"===r)c=[{hours:u,minutes:s}];else{var d=u%12,l=i[3];if(l){var f="a"===l.toLowerCase()[0]?d:d+12;c=[{hours:f,minutes:s}]}else c=[{hours:d,minutes:s},{hours:d+12,minutes:s}]}return c.map((function(t){var n=3600*t.hours+60*t.minutes;return{id:n,label:e.secondsToLabel(n,r)}}))})),b(y(e),"handleChange",(function(t){var r=f(e.dateHelpers.secondsToHourMinute(t),2),n=r[0],a=r[1],o=e.setTime(e.props.value,n,a,0);e.props.onChange&&e.props.onChange(o)})),b(y(e),"setTime",(function(t,r,n,a){var o=e.dateHelpers;return(0,o.setSeconds)((0,o.setMinutes)((0,o.setHours)(e.props.adapter.startOfDay(e.props.adapter.date(t||void 0)),r),n),a)})),b(y(e),"getTimeWindowInSeconds",(function(t){var r=e.props,n=r.minTime,a=r.maxTime,o=r.ignoreMinMaxDateComponent,i=e.setTime(e.props.value,0,0,0),u=e.setTime(e.props.value,24,0,0);n=!n||e.props.adapter.isBefore(n,i)&&!o?i:e.setTime(e.props.value,e.props.adapter.getHours(n),e.props.adapter.getMinutes(n),e.props.adapter.getSeconds(n)),a=!a||e.props.adapter.isAfter(a,u)&&!o?u:e.setTime(e.props.value,e.props.adapter.getHours(a),e.props.adapter.getMinutes(a),e.props.adapter.getSeconds(a)+1);var s=e.props.adapter.toJsDate(n),c=e.props.adapter.toJsDate(a),d=e.props.adapter.toJsDate(i);return{start:(s-d)/1e3,end:(c-d)/1e3}})),b(y(e),"buildSteps",(function(){var t=e.props.step,r=void 0===t?900:t,n=e.getTimeWindowInSeconds(r),a=(n.end-n.start)/r;if(!Number.isInteger(a)){a=Math.round(a)}for(var o=[],i=n.start;i<n.end;i+=r)o.push(i);return o})),b(y(e),"creatableFilterOptions",(function(t,r,n,a){var o=e.stringToOptions(r,e.props.format);return o.length?o:(0,i.Z)(t,r,n,a)})),b(y(e),"buildSelectedOption",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n=e.dateHelpers.dateToSeconds(t);return{id:n,label:e.secondsToLabel(n,r||"12")}})),e.dateHelpers=new s.Z(t.adapter),e}return e=h,(r=[{key:"componentDidMount",value:function(){var t=this.buildSteps();if(this.props.value&&this.props.adapter.isValid(this.props.value))this.setState({steps:t,value:this.buildSelectedOption(this.props.value,this.props.format)});else{var e=this.dateHelpers.dateToSeconds(this.props.adapter.date()),r=43200;t.forEach((function(t){Math.abs(t-e)<Math.abs(r-e)&&(r=t)})),this.setState({steps:t,value:this.props.nullable?void 0:{id:r,label:this.secondsToLabel(r,this.props.format)}}),(this.props.value||!this.props.nullable&&!this.props.value)&&this.handleChange(r)}}},{key:"componentDidUpdate",value:function(t){var e=t.format!==this.props.format,r=t.step!==this.props.step,n=t.adapter!==this.props.adapter,a=t.minTime!==this.props.minTime,o=t.maxTime!==this.props.maxTime;if(n&&(this.dateHelpers=new s.Z(this.props.adapter)),e||r||a||o){var i=this.buildSteps();this.setState({steps:i})}t.value&&!this.props.value&&this.setState({value:null})}},{key:"render",value:function(){var t=this,e=this.props,r=e.format,i=e.overrides,s=void 0===i?{}:i,c=e.adapter,d=f((0,a.jb)(s.Select,u.Z),2),h=d[0],p=d[1];p.overrides=(0,a.aO)({Dropdown:{style:{maxHeight:"126px"}}},p.overrides);var m=this.props.value&&c.isValid(this.props.value)?this.buildSelectedOption(this.props.value,this.props.format):this.state.value;return n.createElement(o.R.Consumer,null,(function(e){var a="12"===r?e.datepicker.timePickerAriaLabel12Hour:e.datepicker.timePickerAriaLabel24Hour;return n.createElement(h,l({"aria-label":a,disabled:t.props.disabled,error:t.props.error,positive:t.props.positive,size:t.props.size,placeholder:t.props.placeholder||"HH:mm",options:t.state.steps.map((function(e){return{id:e,label:t.secondsToLabel(e,t.props.format)}})),filterOptions:t.props.creatable?t.creatableFilterOptions:void 0,onChange:t.onChange,value:m?[m]:m,clearable:!1,backspaceRemoves:!1,valueKey:"label"},p))}))}}])&&p(e.prototype,r),c&&p(e,c),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.Component);b(T,"defaultProps",{format:"12",step:900,creatable:!1,adapter:c.Z,ignoreMinMaxDateComponent:!1}),e.Z=T},77510:function(t,e){function r(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}}function n(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={p:n,P:function(t,e){var a,o=t.match(/(P+)(p+)?/),i=o[1],u=o[2];if(!u)return r(t,e);switch(i){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"})}return a.replace("{{date}}",r(i,e)).replace("{{time}}",n(u,e))}};e.default=a,t.exports=e.default}}]);
1
+ "use strict";(self.webpackChunkstreamlit_browser=self.webpackChunkstreamlit_browser||[]).push([[197],{41813:function(t,e,r){function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function a(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function o(t){a(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function i(t,e){a(2,arguments);var r=o(t),i=n(e);return isNaN(i)?new Date(NaN):i?(r.setDate(r.getDate()+i),r):r}function u(t,e){a(2,arguments);var r=o(t).getTime(),i=n(e);return new Date(r+i)}r.d(e,{Z:function(){return Se}});var s=36e5;function c(t,e){a(2,arguments);var r=o(t),i=n(e);if(isNaN(i))return new Date(NaN);if(!i)return r;var u=r.getDate(),s=new Date(r.getTime());s.setMonth(r.getMonth()+i+1,0);var c=s.getDate();return u>=c?s:(r.setFullYear(s.getFullYear(),s.getMonth(),u),r)}function d(t,e){a(2,arguments);var r=n(e);return c(t,12*r)}function l(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()-n.getFullYear()}function f(t,e){a(2,arguments);var r=o(t),n=o(e),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function h(t,e){a(2,arguments);var r=o(t),n=o(e),i=r.getFullYear()-n.getFullYear(),u=r.getMonth()-n.getMonth();return 12*i+u}function p(t,e){a(2,arguments);var r=o(t),n=o(e),i=f(r,n),u=Math.abs(h(r,n));r.setMonth(r.getMonth()-i*u);var s=f(r,n)===-i,c=i*(u-s);return 0===c?0:c}var m=6e4;function g(t){return t.getTime()%m}function w(t){var e=new Date(t.getTime()),r=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var n=r>0?(m+g(e))%m:g(e);return r*m+n}function y(t){a(1,arguments);var e=o(t);return e.setHours(0,0,0,0),e}var v=864e5;function b(t,e){a(2,arguments);var r=y(t),n=y(e),o=r.getTime()-w(r),i=n.getTime()-w(n);return Math.round((o-i)/v)}function T(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function M(t,e){a(2,arguments);var r=o(t),n=o(e),i=T(r,n),u=Math.abs(b(r,n));r.setDate(r.getDate()-i*u);var s=T(r,n)===-i,c=i*(u-s);return 0===c?0:c}function D(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()-n.getTime()}var C=36e5;function k(t){a(1,arguments);var e=o(t);return e.setHours(23,59,59,999),e}function x(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getDay(),f=6+(l<c?-7:0)-(l-c);return d.setDate(d.getDate()+f),d.setHours(23,59,59,999),d}function S(t){a(1,arguments);var e=o(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function O(t){a(1,arguments);var e=o(t);return!isNaN(e)}var P={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function E(t){return function(e){var r=e||{},n=r.width?String(r.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var U={date:E({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:E({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:E({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function H(t){return function(e,r){var n,a=r||{};if("formatting"===(a.context?String(a.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,i=a.width?String(a.width):o;n=t.formattingValues[i]||t.formattingValues[o]}else{var u=t.defaultWidth,s=a.width?String(a.width):t.defaultWidth;n=t.values[s]||t.values[u]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function N(t){return function(e,r){var n=String(e),a=r||{},o=a.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],u=n.match(i);if(!u)return null;var s,c=u[0],d=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(d)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(d,(function(t){return t.test(c)})):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}(d,(function(t){return t.test(c)})),s=t.valueCallback?t.valueCallback(s):s,{value:s=a.valueCallback?a.valueCallback(s):s,rest:n.slice(c.length)}}}var W,q={code:"en-US",formatDistance:function(t,e,r){var n;return r=r||{},n="string"===typeof P[t]?P[t]:1===e?P[t].one:P[t].other.replace("{{count}}",e),r.addSuffix?r.comparison>0?"in "+n:n+" ago":n},formatLong:U,formatRelative:function(t,e,r,n){return Y[t]},localize:{ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:H({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:H({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:H({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:H({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:H({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(W={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var r=String(t),n=e||{},a=r.match(W.matchPattern);if(!a)return null;var o=a[0],i=r.match(W.parsePattern);if(!i)return null;var u=W.valueCallback?W.valueCallback(i[0]):i[0];return{value:u=n.valueCallback?n.valueCallback(u):u,rest:r.slice(o.length)}}),era:N({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:N({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:N({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:N({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function L(t,e){a(2,arguments);var r=n(e);return u(t,-r)}function A(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var j={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return A("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):A(r+1,2)},d:function(t,e){return A(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(t,e){return A(t.getUTCHours()%12||12,e.length)},H:function(t,e){return A(t.getUTCHours(),e.length)},m:function(t,e){return A(t.getUTCMinutes(),e.length)},s:function(t,e){return A(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=t.getUTCMilliseconds();return A(Math.floor(n*Math.pow(10,r-3)),e.length)}},F=864e5;function I(t){a(1,arguments);var e=1,r=o(t),n=r.getUTCDay(),i=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function R(t){a(1,arguments);var e=o(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=I(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var s=I(u);return e.getTime()>=i.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}function Q(t){a(1,arguments);var e=R(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=I(r);return n}var B=6048e5;function G(t){a(1,arguments);var e=o(t),r=I(e).getTime()-Q(e).getTime();return Math.round(r/B)+1}function X(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getUTCDay(),f=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-f),d.setUTCHours(0,0,0,0),d}function z(t,e){a(1,arguments);var r=o(t,e),i=r.getUTCFullYear(),u=e||{},s=u.locale,c=s&&s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(i+1,0,l),f.setUTCHours(0,0,0,0);var h=X(f,e),p=new Date(0);p.setUTCFullYear(i,0,l),p.setUTCHours(0,0,0,0);var m=X(p,e);return r.getTime()>=h.getTime()?i+1:r.getTime()>=m.getTime()?i:i-1}function _(t,e){a(1,arguments);var r=e||{},o=r.locale,i=o&&o.options&&o.options.firstWeekContainsDate,u=null==i?1:n(i),s=null==r.firstWeekContainsDate?u:n(r.firstWeekContainsDate),c=z(t,e),d=new Date(0);d.setUTCFullYear(c,0,s),d.setUTCHours(0,0,0,0);var l=X(d,e);return l}var Z=6048e5;function J(t,e){a(1,arguments);var r=o(t),n=X(r,e).getTime()-_(r,e).getTime();return Math.round(n/Z)+1}var K="midnight",$="noon",V="morning",tt="afternoon",et="evening",rt="night",nt={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return j.y(t,e)},Y:function(t,e,r,n){var a=z(t,n),o=a>0?a:1-a;return"YY"===e?A(o%100,2):"Yo"===e?r.ordinalNumber(o,{unit:"year"}):A(o,e.length)},R:function(t,e){return A(R(t),e.length)},u:function(t,e){return A(t.getUTCFullYear(),e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return A(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return A(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return j.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return A(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var a=J(t,n);return"wo"===e?r.ordinalNumber(a,{unit:"week"}):A(a,e.length)},I:function(t,e,r){var n=G(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):A(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):j.d(t,e)},D:function(t,e,r){var n=function(t){a(1,arguments);var e=o(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),i=r-n;return Math.floor(i/F)+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):A(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return A(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return A(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),a=0===n?7:n;switch(e){case"i":return String(a);case"ii":return A(a,e.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,a=t.getUTCHours();switch(n=12===a?$:0===a?K:a/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,a=t.getUTCHours();switch(n=a>=17?et:a>=12?tt:a>=4?V:rt,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return j.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):j.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):A(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?r.ordinalNumber(n,{unit:"hour"}):A(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):j.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):j.s(t,e)},S:function(t,e){return j.S(t,e)},X:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return ot(a);case"XXXX":case"XX":return it(a);default:return it(a,":")}},x:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return ot(a);case"xxxx":case"xx":return it(a);default:return it(a,":")}},O:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+at(a,":");default:return"GMT"+it(a,":")}},z:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+at(a,":");default:return"GMT"+it(a,":")}},t:function(t,e,r,n){var a=n._originalDate||t;return A(Math.floor(a.getTime()/1e3),e.length)},T:function(t,e,r,n){return A((n._originalDate||t).getTime(),e.length)}};function at(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),o=n%60;if(0===o)return r+String(a);var i=e||"";return r+String(a)+i+A(o,2)}function ot(t,e){return t%60===0?(t>0?"-":"+")+A(Math.abs(t)/60,2):it(t,e)}function it(t,e){var r=e||"",n=t>0?"-":"+",a=Math.abs(t);return n+A(Math.floor(a/60),2)+r+A(a%60,2)}var ut=nt;function st(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}}function ct(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}}var dt={p:ct,P:function(t,e){var r,n=t.match(/(P+)(p+)?/),a=n[1],o=n[2];if(!o)return st(t,e);switch(a){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",st(a,e)).replace("{{time}}",ct(o,e))}},lt=dt,ft=["D","DD"],ht=["YY","YYYY"];function pt(t){return-1!==ft.indexOf(t)}function mt(t){return-1!==ht.indexOf(t)}function gt(t,e,r){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var wt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vt=/^'([^]*?)'?$/,bt=/''/g,Tt=/[a-zA-Z]/;function Mt(t){return t.match(vt)[1].replace(bt,"'")}function Dt(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()>n.getTime()}function Ct(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()<n.getTime()}function kt(t){a(1,arguments);var e=o(t);return e.setMinutes(0,0,0),e}function xt(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e=e||{})e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function St(t,e,r){a(2,arguments);var i=r||{},u=i.locale,s=u&&u.options&&u.options.weekStartsOn,c=null==s?0:n(s),d=null==i.weekStartsOn?c:n(i.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=o(t),f=n(e),h=l.getUTCDay(),p=f%7,m=(p+7)%7,g=(m<d?7:0)+f-h;return l.setUTCDate(l.getUTCDate()+g),l}var Ot=/^(1[0-2]|0?\d)/,Pt=/^(3[0-1]|[0-2]?\d)/,Et=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ut=/^(5[0-3]|[0-4]?\d)/,Yt=/^(2[0-3]|[0-1]?\d)/,Ht=/^(2[0-4]|[0-1]?\d)/,Nt=/^(1[0-1]|0?\d)/,Wt=/^(1[0-2]|0?\d)/,qt=/^[0-5]?\d/,Lt=/^[0-5]?\d/,At=/^\d/,jt=/^\d{1,2}/,Ft=/^\d{1,3}/,It=/^\d{1,4}/,Rt=/^-?\d+/,Qt=/^-?\d/,Bt=/^-?\d{1,2}/,Gt=/^-?\d{1,3}/,Xt=/^-?\d{1,4}/,zt=/^([+-])(\d{2})(\d{2})?|Z/,_t=/^([+-])(\d{2})(\d{2})|Z/,Zt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Jt=/^([+-])(\d{2}):(\d{2})|Z/,Kt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function $t(t,e,r){var n=e.match(t);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:e.slice(n[0].length)}}function Vt(t,e){var r=e.match(t);return r?"Z"===r[0]?{value:0,rest:e.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:e.slice(r[0].length)}:null}function te(t,e){return $t(Rt,t,e)}function ee(t,e,r){switch(t){case 1:return $t(At,e,r);case 2:return $t(jt,e,r);case 3:return $t(Ft,e,r);case 4:return $t(It,e,r);default:return $t(new RegExp("^\\d{1,"+t+"}"),e,r)}}function re(t,e,r){switch(t){case 1:return $t(Qt,e,r);case 2:return $t(Bt,e,r);case 3:return $t(Gt,e,r);case 4:return $t(Xt,e,r);default:return $t(new RegExp("^-?\\d{1,"+t+"}"),e,r)}}function ne(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ae(t,e){var r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{var o=a+50;r=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?r:1-r}var oe=[31,28,31,30,31,30,31,31,30,31,30,31],ie=[31,29,31,30,31,30,31,31,30,31,30,31];function ue(t){return t%400===0||t%4===0&&t%100!==0}var se={G:{priority:140,parse:function(t,e,r,n){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}},set:function(t,e,r,n){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ee(4,t,a);case"yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return ee(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=t.getUTCFullYear();if(r.isTwoDigitYear){var o=ae(r.year,a);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ee(4,t,a);case"Yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return ee(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=z(t,n);if(r.isTwoDigitYear){var o=ae(r.year,a);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),X(t,n)}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),X(t,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,r,n){return re("R"===e?4:e.length,t)},set:function(t,e,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),I(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,r,n){return re("u"===e?4:e.length,t)},set:function(t,e,r,n){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,r,n){switch(e){case"Q":case"QQ":return ee(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,r,n){switch(e){case"q":case"qq":return ee(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"M":return $t(Ot,t,a);case"MM":return ee(2,t,a);case"Mo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"L":return $t(Ot,t,a);case"LL":return ee(2,t,a);case"Lo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,r,n){switch(e){case"w":return $t(Ut,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,i){return X(function(t,e,r){a(2,arguments);var i=o(t),u=n(e),s=J(i,r)-u;return i.setUTCDate(i.getUTCDate()-7*s),i}(t,r,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,r,n){switch(e){case"I":return $t(Ut,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,i){return I(function(t,e){a(2,arguments);var r=o(t),i=n(e),u=G(r)-i;return r.setUTCDate(r.getUTCDate()-7*u),r}(t,r,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"d":return $t(Pt,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}},validate:function(t,e,r){var n=ue(t.getUTCFullYear()),a=t.getUTCMonth();return n?e>=1&&e<=ie[a]:e>=1&&e<=oe[a]},set:function(t,e,r,n){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"D":case"DD":return $t(Et,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}},validate:function(t,e,r){return ue(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,r,n){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,r,n){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=St(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ee(e.length,t,a);case"eo":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=St(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ee(e.length,t,a);case"co":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=St(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,r,n){var a=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ee(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});default:return r.day(t,{width:"wide",context:"formatting",valueCallback:a})||r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(t,e,r){return e>=1&&e<=7},set:function(t,e,r,i){return t=function(t,e){a(2,arguments);var r=n(e);r%7===0&&(r-=7);var i=1,u=o(t),s=u.getUTCDay(),c=((r%7+7)%7<i?7:0)+r-s;return u.setUTCDate(u.getUTCDate()+c),u}(t,r,i),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,r,n){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ne(r),0,0,0),t},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(t,e,r,n){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ne(r),0,0,0),t},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(t,e,r,n){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(ne(r),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,r,n){switch(e){case"h":return $t(Wt,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=12},set:function(t,e,r,n){var a=t.getUTCHours()>=12;return a&&r<12?t.setUTCHours(r+12,0,0,0):a||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,r,n){switch(e){case"H":return $t(Yt,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=23},set:function(t,e,r,n){return t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,r,n){switch(e){case"K":return $t(Nt,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.getUTCHours()>=12&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,r,n){switch(e){case"k":return $t(Ht,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=24},set:function(t,e,r,n){var a=r<=24?r%24:r;return t.setUTCHours(a,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,r,n){switch(e){case"m":return $t(qt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCMinutes(r,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,r,n){switch(e){case"s":return $t(Lt,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return ee(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCSeconds(r,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,r,n){return ee(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,r,n){return t.setUTCMilliseconds(r),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,r,n){switch(e){case"X":return Vt(zt,t);case"XX":return Vt(_t,t);case"XXXX":return Vt(Zt,t);case"XXXXX":return Vt(Kt,t);default:return Vt(Jt,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,r,n){switch(e){case"x":return Vt(zt,t);case"xx":return Vt(_t,t);case"xxxx":return Vt(Zt,t);case"xxxxx":return Vt(Kt,t);default:return Vt(Jt,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,r,n){return te(t)},set:function(t,e,r,n){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,r,n){return te(t)},set:function(t,e,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},ce=se,de=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fe=/^'([^]*?)'?$/,he=/''/g,pe=/\S/,me=/[a-zA-Z]/;function ge(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}function we(t){return t.match(fe)[1].replace(he,"'")}function ye(t){a(1,arguments);var e=o(t),r=e.getFullYear(),n=e.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function ve(t){a(1,arguments);var e=o(t);return e.setDate(1),e.setHours(0,0,0,0),e}function be(t){a(1,arguments);var e=o(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function Te(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getDay(),f=(l<c?7:0)+l-c;return d.setDate(d.getDate()-f),d.setHours(0,0,0,0),d}function Me(t){a(1,arguments);var e=o(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}var De=r(84657),Ce=r.n(De),ke={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},xe=function(){function t(t){var e=void 0===t?{}:t,r=e.locale,n=e.formats;this.lib="date-fns",this.locale=r,this.formats=Object.assign({},ke,n)}return t.prototype.is12HourCycleInCurrentLocale=function(){return!this.locale||/a/.test(this.locale.formatLong.time())},t.prototype.getFormatHelperText=function(t){var e=this.locale||q;return t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(t){var r=t[0];return"p"===r||"P"===r?(0,Ce()[r])(t,e.formatLong,{}):t})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},t.prototype.getCurrentLocaleCode=function(){var t;return(null===(t=this.locale)||void 0===t?void 0:t.code)||"en-US"},t.prototype.addSeconds=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,1e3*r)}(t,e)},t.prototype.addMinutes=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,6e4*r)}(t,e)},t.prototype.addHours=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return u(t,r*s)}(t,e)},t.prototype.addDays=function(t,e){return i(t,e)},t.prototype.addWeeks=function(t,e){return function(t,e){a(2,arguments);var r=n(e);return i(t,7*r)}(t,e)},t.prototype.addMonths=function(t,e){return c(t,e)},t.prototype.isValid=function(t){return O(this.date(t))},t.prototype.getDiff=function(t,e,r){switch(r){case"years":return function(t,e){a(2,arguments);var r=o(t),n=o(e),i=f(r,n),u=Math.abs(l(r,n));r.setFullYear("1584"),n.setFullYear("1584");var s=f(r,n)===-i,c=i*(u-s);return 0===c?0:c}(t,this.date(e));case"quarters":return function(t,e){a(2,arguments);var r=p(t,e)/3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"months":return p(t,this.date(e));case"weeks":return function(t,e){a(2,arguments);var r=M(t,e)/7;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"days":return M(t,this.date(e));case"hours":return function(t,e){a(2,arguments);var r=D(t,e)/C;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"minutes":return function(t,e){a(2,arguments);var r=D(t,e)/6e4;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"seconds":return function(t,e){a(2,arguments);var r=D(t,e)/1e3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));default:return D(t,this.date(e))}},t.prototype.isAfter=function(t,e){return Dt(t,e)},t.prototype.isBefore=function(t,e){return Ct(t,e)},t.prototype.startOfDay=function(t){return y(t)},t.prototype.endOfDay=function(t){return k(t)},t.prototype.getHours=function(t){return function(t){return a(1,arguments),o(t).getHours()}(t)},t.prototype.setHours=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setHours(i),r}(t,e)},t.prototype.setMinutes=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setMinutes(i),r}(t,e)},t.prototype.getSeconds=function(t){return function(t){return a(1,arguments),o(t).getSeconds()}(t)},t.prototype.setSeconds=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setSeconds(i),r}(t,e)},t.prototype.isSameDay=function(t,e){return function(t,e){a(2,arguments);var r=y(t),n=y(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isSameMonth=function(t,e){return function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}(t,e)},t.prototype.isSameYear=function(t,e){return function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()}(t,e)},t.prototype.isSameHour=function(t,e){return function(t,e){a(2,arguments);var r=kt(t),n=kt(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.startOfMonth=function(t){return ve(t)},t.prototype.endOfMonth=function(t){return be(t)},t.prototype.startOfWeek=function(t){return Te(t,{locale:this.locale})},t.prototype.endOfWeek=function(t){return x(t,{locale:this.locale})},t.prototype.getYear=function(t){return function(t){return a(1,arguments),o(t).getFullYear()}(t)},t.prototype.setYear=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return isNaN(r)?new Date(NaN):(r.setFullYear(i),r)}(t,e)},t.prototype.date=function(t){return"undefined"===typeof t?new Date:null===t?null:new Date(t)},t.prototype.toJsDate=function(t){return t},t.prototype.parse=function(t,e){return""===t?null:function(t,e,r,i){a(3,arguments);var u=String(t),s=String(e),c=i||{},d=c.locale||q;if(!d.match)throw new RangeError("locale must contain match property");var l=d.options&&d.options.firstWeekContainsDate,f=null==l?1:n(l),h=null==c.firstWeekContainsDate?f:n(c.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=d.options&&d.options.weekStartsOn,m=null==p?0:n(p),g=null==c.weekStartsOn?m:n(c.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===s)return""===u?o(r):new Date(NaN);var y,v={firstWeekContainsDate:h,weekStartsOn:g,locale:d},b=[{priority:10,subPriority:-1,set:ge,index:0}],T=s.match(le).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,lt[e])(t,d.formatLong,v):t})).join("").match(de),M=[];for(y=0;y<T.length;y++){var D=T[y];!c.useAdditionalWeekYearTokens&&mt(D)&&gt(D,s,t),!c.useAdditionalDayOfYearTokens&&pt(D)&&gt(D,s,t);var C=D[0],k=ce[C];if(k){var x=k.incompatibleTokens;if(Array.isArray(x)){for(var S=void 0,O=0;O<M.length;O++){var P=M[O].token;if(-1!==x.indexOf(P)||P===C){S=M[O];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(D,"` at the same time"))}else if("*"===k.incompatibleTokens&&M.length)throw new RangeError("The format string mustn't contain `".concat(D,"` and any other token at the same time"));M.push({token:C,fullToken:D});var E=k.parse(u,D,d.match,v);if(!E)return new Date(NaN);b.push({priority:k.priority,subPriority:k.subPriority||0,set:k.set,validate:k.validate,value:E.value,index:b.length}),u=E.rest}else{if(C.match(me))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===D?D="'":"'"===C&&(D=we(D)),0!==u.indexOf(D))return new Date(NaN);u=u.slice(D.length)}}if(u.length>0&&pe.test(u))return new Date(NaN);var U=b.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,r){return r.indexOf(t)===e})).map((function(t){return b.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),Y=o(r);if(isNaN(Y))return new Date(NaN);var H=L(Y,w(Y)),N={};for(y=0;y<U.length;y++){var W=U[y];if(W.validate&&!W.validate(H,W.value,v))return new Date(NaN);var A=W.set(H,N,W.value,v);A[0]?(H=A[0],xt(N,A[1])):H=A}return H}(t,e,new Date,{locale:this.locale})},t.prototype.format=function(t,e){return this.formatByString(t,this.formats[e])},t.prototype.formatByString=function(t,e){return function(t,e,r){a(2,arguments);var i=String(e),u=r||{},s=u.locale||q,c=s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=s.options&&s.options.weekStartsOn,h=null==f?0:n(f),p=null==u.weekStartsOn?h:n(u.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var m=o(t);if(!O(m))throw new RangeError("Invalid time value");var g=w(m),y=L(m,g),v={firstWeekContainsDate:l,weekStartsOn:p,locale:s,_originalDate:m},b=i.match(yt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,lt[e])(t,s.formatLong,v):t})).join("").match(wt).map((function(r){if("''"===r)return"'";var n=r[0];if("'"===n)return Mt(r);var a=ut[n];if(a)return!u.useAdditionalWeekYearTokens&&mt(r)&&gt(r,e,t),!u.useAdditionalDayOfYearTokens&&pt(r)&&gt(r,e,t),a(y,r,s.localize,v);if(n.match(Tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("");return b}(t,e,{locale:this.locale})},t.prototype.isEqual=function(t,e){return null===t&&null===e||function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isNull=function(t){return null===t},t.prototype.isAfterDay=function(t,e){return Dt(t,k(e))},t.prototype.isBeforeDay=function(t,e){return Ct(t,y(e))},t.prototype.isBeforeYear=function(t,e){return Ct(t,Me(e))},t.prototype.isAfterYear=function(t,e){return Dt(t,S(e))},t.prototype.isWithinRange=function(t,e){return function(t,e){a(2,arguments);var r=e||{},n=o(t).getTime(),i=o(r.start).getTime(),u=o(r.end).getTime();if(!(i<=u))throw new RangeError("Invalid interval");return n>=i&&n<=u}(t,{start:e[0],end:e[1]})},t.prototype.formatNumber=function(t){return t},t.prototype.getMinutes=function(t){return t.getMinutes()},t.prototype.getMonth=function(t){return t.getMonth()},t.prototype.getDaysInMonth=function(t){return ye(t)},t.prototype.setMonth=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e),u=r.getFullYear(),s=r.getDate(),c=new Date(0);c.setFullYear(u,i,15),c.setHours(0,0,0,0);var d=ye(c);return r.setMonth(i,Math.min(s,d)),r}(t,e)},t.prototype.getMeridiemText=function(t){return"am"===t?"AM":"PM"},t.prototype.getNextMonth=function(t){return c(t,1)},t.prototype.getPreviousMonth=function(t){return c(t,-1)},t.prototype.getMonthArray=function(t){for(var e=[Me(t)];e.length<12;){var r=e[e.length-1];e.push(this.getNextMonth(r))}return e},t.prototype.mergeDateAndTime=function(t,e){return this.setSeconds(this.setMinutes(this.setHours(t,this.getHours(e)),this.getMinutes(e)),this.getSeconds(e))},t.prototype.getWeekdays=function(){var t=this,e=new Date;return function(t,e){a(1,arguments);var r=t||{},n=o(r.start),i=o(r.end).getTime();if(!(n.getTime()<=i))throw new RangeError("Invalid interval");var u=[],s=n;s.setHours(0,0,0,0);var c=e&&"step"in e?Number(e.step):1;if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)u.push(o(s)),s.setDate(s.getDate()+c),s.setHours(0,0,0,0);return u}({start:Te(e,{locale:this.locale}),end:x(e,{locale:this.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},t.prototype.getWeekArray=function(t){for(var e=Te(ve(t),{locale:this.locale}),r=x(be(t),{locale:this.locale}),n=0,a=e,o=[];Ct(a,r);){var u=Math.floor(n/7);o[u]=o[u]||[],o[u].push(a),a=i(a,1),n+=1}return o},t.prototype.getYearRange=function(t,e){for(var r=Me(t),n=S(e),a=[],o=r;Ct(o,n);)a.push(o),o=d(o,1);return a},t}(),Se=new xe({})},2199:function(t,e){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=u((function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"adapter",void 0),s(this,"cloneAdapter",(function(t,e){var r={MomentUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"D",fullOrdinalWeek:"dddd, MMMM Do YYYY",slashDate:"YYYY/MM/DD",weekday:"dddd",weekdaymin:"dd",quarter:"[Q]Q"}},DateFnsUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM do yyyy",quarter:"QQQ"}},LuxonUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM dd yyyy",quarter:"Qq"}}},n=function(t){return{formats:t.formats,locale:t.locale}},a=e||n,o=t.constructor,i=r[t.constructor.name]||r.DateFnsUtils,u=i.getOptions,s=void 0===u?n:u,c=i.formats,d=s(t);return new o(Object.assign({},a(Object.assign({},d,{formats:Object.assign({},d.formats,c)}))))})),s(this,"format",(function(t,e,r){return(r?n.getAdapterWithNewLocale(r):n.adapter).format(t,e)})),s(this,"getAdapterWithNewLocale",(function(t){return n.cloneAdapter(n.adapter,(function(e){return o(o({},e),{},{locale:t})}))})),s(this,"date",(function(t){return n.adapter.date(t)})),s(this,"dateToSeconds",(function(t){return n.adapter.getSeconds(t)+60*n.adapter.getMinutes(t)+3600*n.adapter.getHours(t)})),s(this,"secondsToHourMinute",(function(t){var e=n.adapter.toJsDate(n.adapter.date(1e3*t));return[e.getUTCHours(),e.getUTCMinutes()]})),s(this,"differenceInCalendarMonths",(function(t,e){return 12*(n.adapter.getYear(t)-n.adapter.getYear(e))+(n.adapter.getMonth(t)-n.adapter.getMonth(e))})),s(this,"getStartOfWeek",(function(t,e){var r=e?n.getAdapterWithNewLocale(e):n.adapter;return r.startOfWeek(r.date(t))})),s(this,"formatDate",(function(t,e,r){return(r?n.getAdapterWithNewLocale(r):n.adapter).formatByString(t,e)})),s(this,"getWeekdayMinInLocale",(function(t,e){return n.getAdapterWithNewLocale(e).format(t,"weekdaymin")})),s(this,"getMonthInLocale",(function(t,e){var r=n.getAdapterWithNewLocale(e);return r.format(r.setMonth(r.date(),t),"month")})),s(this,"getWeekdayInLocale",(function(t,e){return n.getAdapterWithNewLocale(e).format(t,"weekday")})),s(this,"getQuarterInLocale",(function(t,e){var r=n.getAdapterWithNewLocale(e);return r.format(r.setMonth(r.date(),3*t),"quarter")})),s(this,"getEndOfWeek",(function(t){return n.adapter.endOfWeek(t)})),s(this,"getDay",(function(t){return Number(n.adapter.formatByString(t,"e"))-1})),s(this,"addWeeks",(function(t,e){return n.adapter.addDays(t,7*e)})),s(this,"subWeeks",(function(t,e){return n.addWeeks(t,-1*e)})),s(this,"addYears",(function(t,e){return n.adapter.addMonths(t,12*e)})),s(this,"subYears",(function(t,e){return n.addYears(t,-1*e)})),s(this,"isSameYear",(function(t,e){return!(!t||!e)&&n.adapter.isSameYear(t,e)})),s(this,"isStartOfMonth",(function(t){return n.adapter.isSameDay(t,n.adapter.startOfMonth(t))})),s(this,"isEndOfMonth",(function(t){return n.adapter.isSameDay(t,n.adapter.endOfMonth(t))})),s(this,"isDayInRange",(function(t,e,r){return n.adapter.isWithinRange(t,[e,r])})),s(this,"isSameDay",(function(t,e){return!(!t||!e)&&n.adapter.isSameDay(t,e)})),s(this,"isSameMonth",(function(t,e){return!(!t||!e)&&n.adapter.isSameMonth(t,e)})),s(this,"dateRangeIncludesDates",(function(t,e){var a=r(t,2),o=a[0],i=a[1];if(o&&i&&Array.isArray(e)&&e.length)for(var u=0;u<e.length;u++){var s=e[u];if(n.isDayInRange(s,o,i))return!0}return!1})),s(this,"subDays",(function(t,e){return n.adapter.addDays(t,-1*e)})),s(this,"subMonths",(function(t,e){return n.adapter.addMonths(t,-1*e)})),s(this,"min",(function(t){return t.reduce((function(t,e){return n.adapter.isBefore(e,t)?e:t}))})),s(this,"max",(function(t){return t.reduce((function(t,e){return n.adapter.isAfter(e,t)?e:t}))})),s(this,"getEffectiveMinDate",(function(t){var e=t.minDate,r=t.includeDates;if(r&&e){var a=r.filter((function(t){return n.isOnOrAfterDay(t,e)}));return n.min(a)}return r&&r.length?n.min(r):r&&r.length||!e?n.adapter.date():e})),s(this,"getEffectiveMaxDate",(function(t){var e=t.maxDate,r=t.includeDates;if(r&&e){var a=r.filter((function(t){return n.isOnOrBeforeDay(t,e)}));return n.max(a)}return r?n.max(r):!r&&e?e:n.adapter.date()})),s(this,"monthDisabledBefore",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.minDate,a=e.includeDates,o=n.subMonths(t,1);return!!r&&n.differenceInCalendarMonths(r,o)>0||!!a&&a.every((function(t){return n.differenceInCalendarMonths(t,o)>0}))||!1})),s(this,"monthDisabledAfter",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.maxDate,a=e.includeDates,o=n.adapter.addMonths(t,1);return!!r&&n.differenceInCalendarMonths(o,r)>0||!!a&&a.every((function(t){return n.differenceInCalendarMonths(o,t)>0}))||!1})),s(this,"setDate",(function(t,e){var r=n.adapter.startOfMonth(t),a=n.adapter.mergeDateAndTime(r,t),o=n.adapter.setSeconds(a,n.adapter.getSeconds(t));return n.adapter.addDays(o,e-1)})),s(this,"getDate",(function(t){return Number(n.adapter.format(t,"dayOfMonthNumber"))})),s(this,"applyDateToTime",(function(t,e){if(!t)return e;var r=n.adapter.getYear(e),a=n.adapter.getMonth(e),o=n.getDate(e),i=n.adapter.setYear(t,r),u=n.adapter.setMonth(i,a);return n.setDate(u,o)})),s(this,"applyTimeToDate",(function(t,e){return t?n.adapter.setSeconds(n.adapter.mergeDateAndTime(t,e),0):e})),s(this,"isDayDisabled",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.minDate,a=e.maxDate,o=e.excludeDates,i=e.includeDates,u=e.filterDate;return n.isOutOfBounds(t,{minDate:r,maxDate:a})||o&&o.some((function(e){return n.adapter.isSameDay(t,e)}))||i&&!i.some((function(e){return n.adapter.isSameDay(t,e)}))||u&&!u(t)||!1})),s(this,"isOnOrAfterDay",(function(t,e){return!!n.adapter.isSameDay(t,e)||n.adapter.isAfter(t,e)})),s(this,"isOnOrBeforeDay",(function(t,e){return!!n.adapter.isSameDay(t,e)||n.adapter.isBefore(t,e)})),s(this,"isOutOfBounds",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.minDate,a=e.maxDate;return!!r&&!n.isOnOrAfterDay(t,r)||!!a&&!n.isOnOrBeforeDay(t,a)})),s(this,"parseString",(function(t,e,r){return(r?n.getAdapterWithNewLocale(r):n.adapter).parse(t,e)})),s(this,"parse",(function(t,e,r){var a=r?n.getAdapterWithNewLocale(r):n.adapter;return a.parse(t,a.formats[e])})),s(this,"setMilliseconds",(function(t,e){return n.adapter.date(1e3*n.adapter.getSeconds(n.adapter.startOfDay(t))+e)})),s(this,"set",(function(t,e){var r=t;return null!=e.year&&(r=n.setYear(r,e.year)),null!=e.month&&(r=n.setMonth(r,e.month)),null!=e.date&&(r=n.setDate(r,Number(e.date))),null!=e.hours&&(r=n.setHours(r,Number(e.hours))),null!=e.minutes&&(r=n.setMinutes(r,Number(e.minutes))),null!=e.seconds&&(r=n.setSeconds(r,Number(e.seconds))),r})),s(this,"getQuarter",(function(t){return Math.floor(n.getMonth(t)/3)+1})),s(this,"setSeconds",(function(t,e){return n.adapter.setSeconds(t,e)})),s(this,"setMinutes",(function(t,e){return n.adapter.setMinutes(t,e)})),s(this,"setHours",(function(t,e){return n.adapter.setHours(t,e)})),s(this,"setMonth",(function(t,e){return n.adapter.setMonth(t,e)})),s(this,"setYear",(function(t,e){return n.adapter.setYear(t,e)})),s(this,"getMinutes",(function(t){return n.adapter.getMinutes(t)})),s(this,"getHours",(function(t){return n.adapter.getHours(t)})),s(this,"getMonth",(function(t){return n.adapter.getMonth(t)})),s(this,"getYear",(function(t){return n.adapter.getYear(t)})),s(this,"getStartOfMonth",(function(t){return n.adapter.startOfMonth(t)})),s(this,"getEndOfMonth",(function(t){return n.adapter.endOfMonth(t)})),s(this,"addDays",(function(t,e){return n.adapter.addDays(t,e)})),s(this,"addMonths",(function(t,e){return n.adapter.addMonths(t,e)})),s(this,"isBefore",(function(t,e){return n.adapter.isBefore(t,e)})),s(this,"isAfter",(function(t,e){return n.adapter.isAfter(t,e)})),s(this,"isEqual",(function(t,e){return n.adapter.isEqual(t,e)})),s(this,"isValid",(function(t){return n.adapter.isValid(t)})),this.adapter=this.cloneAdapter(e)}));e.Z=c},11197:function(t,e,r){var n=r(47313),a=r(74969),o=r(80799),i=r(67471),u=r(85540),s=r(2199),c=r(41813);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=v(t);if(e){var a=v(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){if(e&&("object"===d(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(h,t);var e,r,c,d=g(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),b(y(e=d.call(this,t)),"dateHelpers",void 0),b(y(e),"state",{steps:[],value:null}),b(y(e),"onChange",(function(t){if(e.setState({value:t.value[0]}),0!==t.value.length){var r="string"===typeof t.value[0].id?parseInt(t.value[0].id,10):t.value[0].id||0;e.handleChange(r)}else e.props.nullable&&e.props.onChange&&e.props.onChange(null)})),b(y(e),"secondsToLabel",(function(t,r){var n=f(e.dateHelpers.secondsToHourMinute(t),2),a=n[0],o=n[1],i=function(t){return t<10?"0".concat(t):t};if("12"===r){var u=t>=43200;return u&&(a-=12),0===a&&(a=12),"".concat(a,":").concat(i(o)," ").concat(u?"PM":"AM")}return"".concat(i(a),":").concat(i(o))})),b(y(e),"stringToOptions",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n=/^(1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]?)?$/,a=/^([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/,o="12"===r?n:a,i=t.match(o);if(!i)return[];var u=Number(i[1]),s=Number(i[2]),c=[];if("24"===r)c=[{hours:u,minutes:s}];else{var d=u%12,l=i[3];if(l){var f="a"===l.toLowerCase()[0]?d:d+12;c=[{hours:f,minutes:s}]}else c=[{hours:d,minutes:s},{hours:d+12,minutes:s}]}return c.map((function(t){var n=3600*t.hours+60*t.minutes;return{id:n,label:e.secondsToLabel(n,r)}}))})),b(y(e),"handleChange",(function(t){var r=f(e.dateHelpers.secondsToHourMinute(t),2),n=r[0],a=r[1],o=e.setTime(e.props.value,n,a,0);e.props.onChange&&e.props.onChange(o)})),b(y(e),"setTime",(function(t,r,n,a){var o=e.dateHelpers;return(0,o.setSeconds)((0,o.setMinutes)((0,o.setHours)(e.props.adapter.startOfDay(e.props.adapter.date(t||void 0)),r),n),a)})),b(y(e),"getTimeWindowInSeconds",(function(t){var r=e.props,n=r.minTime,a=r.maxTime,o=r.ignoreMinMaxDateComponent,i=e.setTime(e.props.value,0,0,0),u=e.setTime(e.props.value,24,0,0);n=!n||e.props.adapter.isBefore(n,i)&&!o?i:e.setTime(e.props.value,e.props.adapter.getHours(n),e.props.adapter.getMinutes(n),e.props.adapter.getSeconds(n)),a=!a||e.props.adapter.isAfter(a,u)&&!o?u:e.setTime(e.props.value,e.props.adapter.getHours(a),e.props.adapter.getMinutes(a),e.props.adapter.getSeconds(a)+1);var s=e.props.adapter.toJsDate(n),c=e.props.adapter.toJsDate(a),d=e.props.adapter.toJsDate(i);return{start:(s-d)/1e3,end:(c-d)/1e3}})),b(y(e),"buildSteps",(function(){var t=e.props.step,r=void 0===t?900:t,n=e.getTimeWindowInSeconds(r),a=(n.end-n.start)/r;if(!Number.isInteger(a)){a=Math.round(a)}for(var o=[],i=n.start;i<n.end;i+=r)o.push(i);return o})),b(y(e),"creatableFilterOptions",(function(t,r,n,a){var o=e.stringToOptions(r,e.props.format);return o.length?o:(0,i.Z)(t,r,n,a)})),b(y(e),"buildSelectedOption",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n=e.dateHelpers.dateToSeconds(t);return{id:n,label:e.secondsToLabel(n,r||"12")}})),e.dateHelpers=new s.Z(t.adapter),e}return e=h,(r=[{key:"componentDidMount",value:function(){var t=this.buildSteps();if(this.props.value&&this.props.adapter.isValid(this.props.value))this.setState({steps:t,value:this.buildSelectedOption(this.props.value,this.props.format)});else{var e=this.dateHelpers.dateToSeconds(this.props.adapter.date()),r=43200;t.forEach((function(t){Math.abs(t-e)<Math.abs(r-e)&&(r=t)})),this.setState({steps:t,value:this.props.nullable?void 0:{id:r,label:this.secondsToLabel(r,this.props.format)}}),(this.props.value||!this.props.nullable&&!this.props.value)&&this.handleChange(r)}}},{key:"componentDidUpdate",value:function(t){var e=t.format!==this.props.format,r=t.step!==this.props.step,n=t.adapter!==this.props.adapter,a=t.minTime!==this.props.minTime,o=t.maxTime!==this.props.maxTime;if(n&&(this.dateHelpers=new s.Z(this.props.adapter)),e||r||a||o){var i=this.buildSteps();this.setState({steps:i})}t.value&&!this.props.value&&this.setState({value:null})}},{key:"render",value:function(){var t=this,e=this.props,r=e.format,i=e.overrides,s=void 0===i?{}:i,c=e.adapter,d=f((0,a.jb)(s.Select,u.Z),2),h=d[0],p=d[1];p.overrides=(0,a.aO)({Dropdown:{style:{maxHeight:"126px"}}},p.overrides);var m=this.props.value&&c.isValid(this.props.value)?this.buildSelectedOption(this.props.value,this.props.format):this.state.value;return n.createElement(o.R.Consumer,null,(function(e){var a="12"===r?e.datepicker.timePickerAriaLabel12Hour:e.datepicker.timePickerAriaLabel24Hour;return n.createElement(h,l({"aria-label":a,disabled:t.props.disabled,error:t.props.error,positive:t.props.positive,size:t.props.size,placeholder:t.props.placeholder||"HH:mm",options:t.state.steps.map((function(e){return{id:e,label:t.secondsToLabel(e,t.props.format)}})),filterOptions:t.props.creatable?t.creatableFilterOptions:void 0,onChange:t.onChange,value:m?[m]:m,clearable:!1,backspaceRemoves:!1,valueKey:"label"},p))}))}}])&&p(e.prototype,r),c&&p(e,c),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.Component);b(T,"defaultProps",{format:"12",step:900,creatable:!1,adapter:c.Z,ignoreMinMaxDateComponent:!1}),e.Z=T},84657:function(t,e){function r(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}}function n(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={p:n,P:function(t,e){var a,o=t.match(/(P+)(p+)?/),i=o[1],u=o[2];if(!u)return r(t,e);switch(i){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"})}return a.replace("{{date}}",r(i,e)).replace("{{time}}",n(u,e))}};e.default=a,t.exports=e.default}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkstreamlit_browser=self.webpackChunkstreamlit_browser||[]).push([[25],{75216:function(e,t,n){n.r(t),n.d(t,{default:function(){return tt}});var i=n(93433),a=n(29439),r=n(1413),o=n(47313),l=n(56130),u=n(91719),d=n(30161),s=n(46332),c=n(26419),m=n(7976),f=n(64243),v=n(15671),g=n(43144),h=function(){function e(t){(0,v.Z)(this,e),this.editedCells=new Map,this.addedRows=[],this.deletedRows=[],this.numRows=0,this.numRows=t}return(0,g.Z)(e,[{key:"toJson",value:function(e){var t=new Map;e.forEach((function(e){t.set(e.indexNumber,e)}));var n={edited_cells:{},added_rows:[],deleted_rows:[]};return this.editedCells.forEach((function(e,i,a){e.forEach((function(e,a,r){var o=t.get(a);o&&(n.edited_cells["".concat(i,":").concat(a)]=o.getCellValue(e))}))})),this.addedRows.forEach((function(e){var i={};e.forEach((function(e,n,a){var r=t.get(n);if(r){var o=r.getCellValue(e);(0,f.bb)(o)&&(i[n]=o)}})),n.added_rows.push(i)})),n.deleted_rows=this.deletedRows,JSON.stringify(n,(function(e,t){return void 0===t?null:t}))}},{key:"fromJson",value:function(e,t){var n=this,i=JSON.parse(e),r=new Map;t.forEach((function(e){r.set(e.indexNumber,e)})),Object.keys(i.edited_cells).forEach((function(e){var t=e.split(":").map(Number),o=(0,a.Z)(t,2),l=o[0],u=o[1],d=r.get(u);if(d){var s,c=d.getCell(i.edited_cells[e]);if(c)0==n.editedCells.has(l)&&n.editedCells.set(l,new Map),null===(s=n.editedCells.get(l))||void 0===s||s.set(u,c)}})),i.added_rows.forEach((function(e){var i=new Map;t.forEach((function(e){i.set(e.indexNumber,e.getCell(void 0))})),Object.keys(e).forEach((function(t){var n=r.get(Number(t));if(n){var a=n.getCell(e[Number(t)]);a&&i.set(Number(t),a)}})),n.addedRows.push(i)})),this.deletedRows=i.deleted_rows}},{key:"isAddedRow",value:function(e){return e>=this.numRows}},{key:"getCell",value:function(e,t){if(this.isAddedRow(t))return this.addedRows[t-this.numRows].get(e);var n=this.editedCells.get(t);return void 0!==n?n.get(e):void 0}},{key:"setCell",value:function(e,t,n){if(this.isAddedRow(t)){if(t-this.numRows>=this.addedRows.length)return;this.addedRows[t-this.numRows].set(e,n)}else{void 0===this.editedCells.get(t)&&this.editedCells.set(t,new Map),this.editedCells.get(t).set(e,n)}}},{key:"addRow",value:function(e){this.addedRows.push(e)}},{key:"deleteRows",value:function(e){var t=this;e.sort((function(e,t){return t-e})).forEach((function(e){t.deleteRow(e)}))}},{key:"deleteRow",value:function(e){(0,f.le)(e)||e<0||(this.isAddedRow(e)?this.addedRows.splice(e-this.numRows,1):(this.deletedRows.includes(e)||(this.deletedRows.push(e),this.deletedRows=this.deletedRows.sort((function(e,t){return e-t}))),this.editedCells.delete(e)))}},{key:"getOriginalRowIndex",value:function(e){for(var t=e,n=0;n<this.deletedRows.length&&!(this.deletedRows[n]>t);n++)t+=1;return t}},{key:"getNumRows",value:function(){return this.numRows+this.addedRows.length-this.deletedRows.length}}]),e}(),p=n(2120),b=n(83985);var y=function(){var e=(0,b.u)(),t=o.useMemo((function(){return{editable:function(e){return'<svg xmlns="http://www.w3.org/2000/svg" height="40" viewBox="0 96 960 960" width="40" fill="'.concat(e.bgColor,'"><path d="m800.641 679.743-64.384-64.384 29-29q7.156-6.948 17.642-6.948 10.485 0 17.742 6.948l29 29q6.948 7.464 6.948 17.95 0 10.486-6.948 17.434l-29 29Zm-310.64 246.256v-64.383l210.82-210.821 64.384 64.384-210.821 210.82h-64.383Zm-360-204.872v-50.254h289.743v50.254H130.001Zm0-162.564v-50.255h454.615v50.255H130.001Zm0-162.307v-50.255h454.615v50.255H130.001Z"/></svg>')}}}),[]);return{accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,p.DZ)(e.colors.primary,.9),borderColor:e.colors.fadedText05,horizontalBorderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,p.DZ)(e.colors.primary,.9),bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.bgMix,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:"".concat(e.fontSizes.sm),baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,p.DZ)(e.colors.bodyText,.2),textLight:e.colors.fadedText40,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25,tableBorderRadius:e.radii.md,headerIcons:t}},w=n(72599),x=n(70816),C=n.n(x),Z=n(45429),N=n(16031),E=n(35394),T=n.n(E),M=n(17076),k=n(11368),R=n(58327),_=n(45973),S=(n(49161),n(82374),["true","t","yes","y","on","1"]),O=["false","f","no","n","off","0"];function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e="\u26a0\ufe0f ".concat(e),{kind:l.p6.Text,readonly:!0,allowOverlay:!0,data:e+(t?"\n\n".concat(t,"\n"):""),displayData:e,isError:!0}}function D(e){return e.hasOwnProperty("isError")&&e.isError}function A(){return{kind:l.p6.Loading,allowOverlay:!1}}function H(e){return(0,r.Z)((0,r.Z)({id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,icon:e.icon},e.isStretched&&{grow:e.isIndex?1:3}),e.width&&{width:e.width})}function z(e,t){return(0,f.le)(e)?t||{}:(0,f.le)(t)?e||{}:(0,N.merge)(e,t)}function V(e){if((0,f.le)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if("string"===typeof e){if(""===e)return[];if(!e.trim().startsWith("[")||!e.trim().endsWith("]"))return e.split(",");try{return JSON.parse(e)}catch(n){return[e]}}try{var t=JSON.parse(JSON.stringify(e,(function(e,t){return"bigint"===typeof t?Number(t):t})));return(0,N.isArray)(t)?t.map((function(e){return["string","number","boolean","null"].includes(typeof e)?e:F(e)})):[F(t)]}catch(n){return[F(e)]}}function F(e){try{try{return(0,N.toString)(e)}catch(t){return JSON.stringify(e,(function(e,t){return"bigint"===typeof t?Number(t):t}))}}catch(t){return"[".concat(typeof e,"]")}}function L(e){if((0,f.le)(e))return null;if("boolean"===typeof e)return e;var t=F(e).toLowerCase().trim();return""===t?null:!!S.includes(t)||!O.includes(t)&&void 0}function W(e){if((0,f.le)(e))return null;if((0,N.isArray)(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{var t=T().unformat(e.trim());if((0,f.bb)(t))return t}catch(n){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}function j(e,t,n){return Number.isNaN(e)||!Number.isFinite(e)?"":(0,f.le)(t)||""===t?(0===n&&(e=Math.round(e)),T()(e).format((0,f.bb)(n)?"0,0.".concat("0".repeat(n)):"0,0.[0000]")):"percent"===t?new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(e):["compact","scientific","engineering"].includes(t)?new Intl.NumberFormat(void 0,{notation:t}).format(e):(0,M.sprintf)(t,e)}function B(e,t){if("localized"===t)return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"medium"}).format(e.toDate());if("distance"===t)return(0,k.Z)(e.toDate(),new Date);if("relative"===t)return(0,R.Z)(e.toDate(),new Date);var n=e.tz();return(0,f.bb)(n)?(0,_.Z)(e.toDate(),n,t):0!==e.utcOffset()?(0,_.Z)(e.toDate(),e.format("Z"),t):(0,_.Z)(e.toDate(),"UTC",t)}function P(e){if((0,f.le)(e))return null;if(e instanceof Date)return isNaN(e.getTime())?void 0:e;if("string"===typeof e&&0===e.trim().length)return null;try{var t=Number(e);if(!isNaN(t)){var n=t;t>=Math.pow(10,18)?n=t/Math.pow(1e3,3):t>=Math.pow(10,15)?n=t/Math.pow(1e3,2):t>=Math.pow(10,12)&&(n=t/1e3);var i=C().unix(n).utc();if(i.isValid())return i.toDate()}if("string"===typeof e){var a=C().utc(e);if(a.isValid())return a.toDate();var r=C().utc(e,[C().HTML5_FMT.TIME_MS,C().HTML5_FMT.TIME_SECONDS,C().HTML5_FMT.TIME]);if(r.isValid())return r.toDate()}}catch(o){return}}function q(e){if(e%1===0)return 0;var t=e.toString();return-1!==t.indexOf("e")&&(t=e.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20})),-1===t.indexOf(".")?0:t.split(".")[1].length}function J(e){var t={kind:l.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!0,style:e.isIndex?"faded":"normal"};return(0,r.Z)((0,r.Z)({},e),{},{kind:"object",sortMode:"default",isEditable:!1,getCell:function(e){try{var n=(0,f.bb)(e)?F(e):null,i=(0,f.bb)(n)?n:"";return(0,r.Z)((0,r.Z)({},t),{},{data:n,displayData:i,isMissingValue:(0,f.le)(e)})}catch(a){return I(F(e),"The value cannot be interpreted as a string. Error: ".concat(a))}},getCellValue:function(e){return void 0===e.data?null:e.data}})}J.isEditableType=!1;var Y=J;function U(e){var t=e.columnTypeOptions||{},n=void 0;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(o){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(o)}var i={kind:l.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"},a=function(i){if((0,f.le)(i))return!e.isRequired;var a=F(i),r=!1;return t.max_chars&&a.length>t.max_chars&&(a=a.slice(0,t.max_chars),r=!0),!(n instanceof RegExp&&!1===n.test(a))&&(!r||a)};return(0,r.Z)((0,r.Z)({},e),{},{kind:"text",sortMode:"default",validateInput:a,getCell:function(e,t){if("string"===typeof n)return I(F(e),n);if(t){var l=a(e);if(!1===l)return I(F(e),"Invalid input.");"string"===typeof l&&(e=l)}try{var u=(0,f.bb)(e)?F(e):null,d=(0,f.bb)(u)?u:"";return(0,r.Z)((0,r.Z)({},i),{},{isMissingValue:(0,f.le)(u),data:u,displayData:d})}catch(o){return I("Incompatible value","The value cannot be interpreted as string. Error: ".concat(o))}},getCellValue:function(e){return void 0===e.data?null:e.data}})}U.isEditableType=!0;var G=U;function K(e){var t={kind:l.p6.Boolean,data:!1,allowOverlay:!1,contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return(0,r.Z)((0,r.Z)({},e),{},{kind:"checkbox",sortMode:"default",getCell:function(e){var n;return void 0===(n=L(e))?I(F(e),"The value cannot be interpreted as boolean."):(0,r.Z)((0,r.Z)({},t),{},{data:n})},getCellValue:function(e){return void 0===e.data?null:e.data}})}K.isEditableType=!0;var X=K;function Q(e){var t="string",n=z({options:"bool"===Z.fu.getTypeName(e.arrowType)?[!0,!1]:[]},e.columnTypeOptions),a=new Set(n.options.map((function(e){return typeof e})));1===a.size&&(a.has("number")||a.has("bigint")?t="number":a.has("boolean")&&(t="boolean"));var o={kind:l.p6.Custom,allowOverlay:e.isEditable,copyData:"",contentAlign:e.contentAlignment,readonly:!e.isEditable,data:{kind:"dropdown-cell",allowedValues:[].concat((0,i.Z)(!0!==e.isRequired?[""]:[]),(0,i.Z)(n.options.filter((function(e){return""!==e})).map((function(e){return F(e)})))),value:"",readonly:!e.isEditable}};return(0,r.Z)((0,r.Z)({},e),{},{kind:"selectbox",sortMode:"default",getCell:function(e,t){var n="";return(0,f.bb)(e)&&(n=F(e)),t&&!o.data.allowedValues.includes(n)?I(F(n),"The value is not part of the allowed options."):(0,r.Z)((0,r.Z)({},o),{},{isMissingValue:""===n,copyData:n,data:(0,r.Z)((0,r.Z)({},o.data),{},{value:n})})},getCellValue:function(e){var n,i,a,r,o,l,u;return void 0===(null===(n=e.data)||void 0===n?void 0:n.value)||""===(null===(i=e.data)||void 0===i?void 0:i.value)?null:"number"===t?null!==(r=W(null===(o=e.data)||void 0===o?void 0:o.value))&&void 0!==r?r:null:"boolean"===t?null!==(l=L(null===(u=e.data)||void 0===u?void 0:u.value))&&void 0!==l?l:null:null===(a=e.data)||void 0===a?void 0:a.value}})}Q.isEditableType=!0;var $=Q;function ee(e){var t={kind:l.p6.Bubble,data:[],allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"};return(0,r.Z)((0,r.Z)({},e),{},{kind:"list",sortMode:"default",isEditable:!1,getCell:function(e){return(0,r.Z)((0,r.Z)({},t),{},{data:V(e),isMissingValue:(0,f.le)(e)})},getCellValue:function(e){return void 0===e.data?null:e.data}})}ee.isEditableType=!1;var te=ee;function ne(e){var t=Z.fu.getTypeName(e.arrowType),n=z({step:Ie(t)?1:void 0,min_value:t.startsWith("uint")?0:void 0},e.columnTypeOptions),i=(0,f.le)(n.min_value)||n.min_value<0,a=(0,f.bb)(n.step)&&!Number.isNaN(n.step)?q(n.step):void 0,o={kind:l.p6.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:i,fixedDecimals:a},u=function(t){var i=W(t);if((0,f.le)(i))return!e.isRequired;if(Number.isNaN(i))return!1;var a=!1;return(0,f.bb)(n.max_value)&&i>n.max_value&&(i=n.max_value,a=!0),!((0,f.bb)(n.min_value)&&i<n.min_value)&&(!a||i)};return(0,r.Z)((0,r.Z)({},e),{},{kind:"number",sortMode:"smart",validateInput:u,getCell:function(e,t){if(!0===t){var i=u(e);if(!1===i)return I(F(e),"Invalid input.");"number"===typeof i&&(e=i)}var l,d,s=W(e),c="";if((0,f.bb)(s)){if(Number.isNaN(s))return I(F(e),"The value cannot be interpreted as a number.");if((0,f.bb)(a)&&(l=s,s=0===(d=a)?Math.trunc(l):Math.trunc(l*Math.pow(10,d))/Math.pow(10,d)),Number.isInteger(s)&&!Number.isSafeInteger(s))return I(F(e),"The value is larger than the maximum supported integer values in number columns (2^53).");try{c=j(s,n.format,a)}catch(m){return I(F(s),(0,f.bb)(n.format)?"Failed to format the number based on the provided format configuration: (".concat(n.format,"). Error: ").concat(m):"Failed to format the number. Error: ".concat(m))}}return(0,r.Z)((0,r.Z)({},o),{},{data:s,displayData:c,isMissingValue:(0,f.le)(s)})},getCellValue:function(e){return void 0===e.data?null:e.data}})}ne.isEditableType=!0;var ie=ne;function ae(e){var t=e.columnTypeOptions||{},n=void 0;if(t.validate)try{n=new RegExp(t.validate,"us")}catch(o){n="Invalid validate regex: ".concat(t.validate,".\nError: ").concat(o)}var i={kind:l.p6.Uri,data:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"},a=function(i){if((0,f.le)(i))return!e.isRequired;var a=F(i),r=!1;return t.max_chars&&a.length>t.max_chars&&(a=a.slice(0,t.max_chars),r=!0),!(n instanceof RegExp&&!1===n.test(a))&&(!r||a)};return(0,r.Z)((0,r.Z)({},e),{},{kind:"link",sortMode:"default",validateInput:a,getCell:function(e,t){if("string"===typeof n)return I(F(e),n);if(t){var o=a(e);if(!1===o)return I(F(e),"Invalid input.");"string"===typeof o&&(e=o)}return(0,r.Z)((0,r.Z)({},i),{},{data:(0,f.bb)(e)?F(e):null,isMissingValue:(0,f.le)(e)})},getCellValue:function(e){return void 0===e.data?null:e.data}})}ae.isEditableType=!0;var re=ae;function oe(e){var t={kind:l.p6.Image,data:[],displayData:[],allowAdd:!1,allowOverlay:!0,contentAlign:e.contentAlignment||"center",style:e.isIndex?"faded":"normal"};return(0,r.Z)((0,r.Z)({},e),{},{kind:"image",sortMode:"default",isEditable:!1,getCell:function(e){var n=(0,f.bb)(e)?[F(e)]:[];return(0,r.Z)((0,r.Z)({},t),{},{data:n,isMissingValue:!(0,f.bb)(e),displayData:n})},getCellValue:function(e){return void 0===e.data||0===e.data.length?null:e.data[0]}})}oe.isEditableType=!1;var le=oe;function ue(e){var t,n=Ie(Z.fu.getTypeName(e.arrowType)),i=z({min_value:0,max_value:n?100:1,step:n?1:.01,format:n?"%3d%%":"percent"},e.columnTypeOptions);try{t=j(i.max_value,i.format)}catch(u){t=F(i.max_value)}var a=(0,f.le)(i.step)||Number.isNaN(i.step)?void 0:q(i.step),o={kind:l.p6.Custom,allowOverlay:!1,copyData:"",contentAlign:e.contentAlignment,data:{kind:"range-cell",min:i.min_value,max:i.max_value,step:i.step,value:i.min_value,label:String(i.min_value),measureLabel:t,readonly:!0}};return(0,r.Z)((0,r.Z)({},e),{},{kind:"progress",sortMode:"smart",isEditable:!1,getCell:function(e){if((0,f.le)(e))return A();if((0,f.le)(i.min_value)||(0,f.le)(i.max_value)||Number.isNaN(i.min_value)||Number.isNaN(i.max_value)||i.min_value>=i.max_value)return I("Invalid min/max parameters","The min_value (".concat(i.min_value,") and max_value (").concat(i.max_value,") parameters must be valid numbers."));if((0,f.le)(i.step)||Number.isNaN(i.step))return I("Invalid step parameter","The step parameter (".concat(i.step,") must be a valid number."));var t=W(e);if(Number.isNaN(t)||(0,f.le)(t))return I(F(e),"The value cannot be interpreted as a number.");if(Number.isInteger(t)&&!Number.isSafeInteger(t))return I(F(e),"The value is larger than the maximum supported integer values in number columns (2^53).");var n="";try{n=j(t,i.format,a)}catch(u){return I(F(t),(0,f.bb)(i.format)?"Failed to format the number based on the provided format configuration: (".concat(i.format,"). Error: ").concat(u):"Failed to format the number. Error: ".concat(u))}var l=Math.min(i.max_value,Math.max(i.min_value,t));return(0,r.Z)((0,r.Z)({},o),{},{isMissingValue:(0,f.le)(e),copyData:String(t),data:(0,r.Z)((0,r.Z)({},o.data),{},{value:l,label:n})})},getCellValue:function(e){var t,n;return e.kind===l.p6.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.value)?null:null===(n=e.data)||void 0===n?void 0:n.value}})}ue.isEditableType=!1;var de=ue;function se(e,t){return e=t.startsWith("+")||t.startsWith("-")?e.utcOffset(t,!1):e.tz(t)}function ce(e,t,n,i,a,o,u){var d,s=z({format:n,step:i,timezone:u},t.columnTypeOptions),c=void 0;if((0,f.bb)(s.timezone))try{var m;c=(null===(m=se(C()(),s.timezone))||void 0===m?void 0:m.utcOffset())||void 0}catch(b){}var v=void 0;(0,f.bb)(s.min_value)&&(v=P(s.min_value)||void 0);var g=void 0;(0,f.bb)(s.max_value)&&(g=P(s.max_value)||void 0);var h={kind:l.p6.Custom,allowOverlay:!0,copyData:"",readonly:!t.isEditable,contentAlign:t.contentAlignment,style:t.isIndex?"faded":"normal",data:{kind:"date-time-cell",date:void 0,displayDate:"",step:(null===(d=s.step)||void 0===d?void 0:d.toString())||"1",format:a,min:v,max:g}},p=function(e){var n=P(e);return null===n?!t.isRequired:void 0!==n&&(!((0,f.bb)(v)&&o(n)<o(v))&&!((0,f.bb)(g)&&o(n)>o(g)))};return(0,r.Z)((0,r.Z)({},t),{},{kind:e,sortMode:"default",validateInput:p,getCell:function(e,i){if(!0===i){var a=p(e);if(!1===a)return I(F(e),"Invalid input.");a instanceof Date&&(e=a)}var o=P(e),u="",d="",m=c;if(void 0===o)return I(F(e),"The value cannot be interpreted as a datetime object.");if(null!==o){var v=C().utc(o);if(!v.isValid())return I(F(o),"This should never happen. Please report this bug. \nError: ".concat(v.toString()));if(s.timezone){try{v=se(v,s.timezone)}catch(b){return I(v.toISOString(),"Failed to adjust to the provided timezone: ".concat(s.timezone,". \nError: ").concat(b))}m=v.utcOffset()}try{d=B(v,s.format||n)}catch(b){return I(v.toISOString(),"Failed to format the date for rendering with: ".concat(s.format,". \nError: ").concat(b))}u=B(v,n)}return t.isEditable?(0,r.Z)((0,r.Z)({},h),{},{copyData:u,isMissingValue:(0,f.le)(o),data:(0,r.Z)((0,r.Z)({},h.data),{},{date:o,displayDate:d,timezoneOffset:m})}):{kind:l.p6.Text,isMissingValue:(0,f.le)(o),data:""!==u?u:null,displayData:d,allowOverlay:!0,contentAlignment:t.contentAlignment,readonly:!0,style:t.isIndex?"faded":"normal"}},getCellValue:function(e){var t;return e.kind===l.p6.Text?void 0===e.data?null:e.data:(0,f.le)(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.date)?null:o(e.data.date)}})}function me(e){var t,n,i,a=null===(t=e.arrowType)||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.timezone,r=(0,f.bb)(a)||(0,f.bb)(null===e||void 0===e||null===(i=e.columnTypeOptions)||void 0===i?void 0:i.timezone);return ce("datetime",e,r?"yyyy-MM-dd HH:mm:ssxxx":"yyyy-MM-dd HH:mm:ss",1,"datetime-local",(function(e){return r?e.toISOString():e.toISOString().replace("Z","")}),a)}function fe(e){var t,n,i="HH:mm:ss.SSS";return(null===(t=e.columnTypeOptions)||void 0===t?void 0:t.step)>=60?i="HH:mm":(null===(n=e.columnTypeOptions)||void 0===n?void 0:n.step)>=1&&(i="HH:mm:ss"),ce("time",e,i,.1,"time",(function(e){return e.toISOString().split("T")[1].replace("Z","")}))}function ve(e){return ce("date",e,"yyyy-MM-dd",1,"date",(function(e){return e.toISOString().split("T")[0]}))}function ge(e,t,n){var i=z({y_min:0,y_max:1},t.columnTypeOptions),a={kind:l.p6.Custom,allowOverlay:!1,copyData:"",contentAlign:t.contentAlignment,data:{kind:"sparkline-cell",values:[],displayValues:[],graphKind:n,yAxis:[i.y_min,i.y_max]}};return(0,r.Z)((0,r.Z)({},t),{},{kind:e,sortMode:"default",isEditable:!1,getCell:function(e){if((0,f.le)(i.y_min)||(0,f.le)(i.y_max)||Number.isNaN(i.y_min)||Number.isNaN(i.y_max)||i.y_min>=i.y_max)return I("Invalid min/max y-axis configuration","The y_min (".concat(i.y_min,") and y_max (").concat(i.y_max,") configuration options must be valid numbers."));if((0,f.le)(e))return A();var t=V(e),n=[],o=[];if(0===t.length)return A();for(var l=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,d=0;d<t.length;d++){var s=W(t[d]);if(Number.isNaN(s)||(0,f.le)(s))return I(F(t),"The value cannot be interpreted as a numeric array. ".concat(F(s)," is not a number."));s>l&&(l=s),s<u&&(u=s),n.push(s)}return o=n.length>0&&(l>i.y_max||u<i.y_min)?n.map((function(e){return l-u===0?l>(i.y_max||1)?i.y_max||1:i.y_min||0:((i.y_max||1)-(i.y_min||0))*((e-u)/(l-u))+(i.y_min||0)})):n,(0,r.Z)((0,r.Z)({},a),{},{copyData:n.join(","),data:(0,r.Z)((0,r.Z)({},a.data),{},{values:o,displayValues:n.map((function(e){return j(e)}))}),isMissingValue:(0,f.le)(e)})},getCellValue:function(e){var t,n;return e.kind===l.p6.Loading||void 0===(null===(t=e.data)||void 0===t?void 0:t.values)?null:null===(n=e.data)||void 0===n?void 0:n.values}})}function he(e){return ge("line_chart",e,"line")}function pe(e){return ge("bar_chart",e,"bar")}me.isEditableType=!0,fe.isEditableType=!0,ve.isEditableType=!0,he.isEditableType=!1,pe.isEditableType=!1;var be=n(47167),ye=n(46417);var we=(0,be.Z)("input",{target:"e13kkood0"})({name:"mno8rz",styles:"min-height:26px;border:none;outline:none;background-color:transparent;font-size:var(--gdg-editor-font-size);font-family:var(--gdg-font-family);color:var(--gdg-text-dark);::-webkit-calendar-picker-indicator{background-color:white;}"}),xe=function(e,t){if(void 0===t||null===t)return"";var n=t.toISOString();switch(e){case"date":return n.split("T")[0];case"datetime-local":return n.replace("Z","");case"time":return n.split("T")[1].replace("Z","");default:throw new Error("Unknown date kind ".concat(e))}},Ce=function(e){var t=e.value.data,n=t.format,i=t.displayDate,a=void 0===t.step||Number.isNaN(Number(t.step))?void 0:Number(t.step),o=t.min instanceof Date?xe(n,t.min):t.min,u=t.max instanceof Date?xe(n,t.max):t.max,d=t.date,s=t.timezoneOffset?60*t.timezoneOffset*1e3:0;s&&d&&(d=new Date(d.getTime()+s));var c=xe(n,d);return e.value.readonly?(0,ye.jsx)(l.t5,{highlight:!0,autoFocus:!1,disabled:!0,value:null!==i&&void 0!==i?i:"",onChange:function(){}}):(0,ye.jsx)(we,{"data-testid":"date-time-cell",required:!0,type:n,defaultValue:c,min:o,max:u,step:a,autoFocus:!0,onChange:function(t){isNaN(t.target.valueAsNumber)?e.onChange((0,r.Z)((0,r.Z)({},e.value),{},{data:(0,r.Z)((0,r.Z)({},e.value.data),{},{date:void 0})})):e.onChange((0,r.Z)((0,r.Z)({},e.value),{},{data:(0,r.Z)((0,r.Z)({},e.value.data),{},{date:new Date(t.target.valueAsNumber-s)})}))}})},Ze={kind:l.p6.Custom,isMatch:function(e){return"date-time-cell"===e.data.kind},draw:function(e,t){var n=t.data.displayDate;return(0,l.uN)(e,n,t.contentAlign),!0},measure:function(e,t){var n=t.data.displayDate;return e.measureText(n).width+16},provideEditor:function(){return{editor:Ce}},onPaste:function(e,t){var n=NaN;return e&&(n=Number(e).valueOf(),Number.isNaN(n)&&(n=Date.parse(e),"time"===t.format&&Number.isNaN(n)&&(n=Date.parse("1970-01-01T".concat(e,"Z"))))),(0,r.Z)((0,r.Z)({},t),{},{date:Number.isNaN(n)?void 0:new Date(n)})}},Ne=(0,be.Z)("img",{target:"em5lq0g0"})((function(){return{maxWidth:"100%",maxHeight:"600px",objectFit:"scale-down"}}),""),Ee=function(e){var t=e.urls,n=t&&t.length>0?t[0]:"";return n.startsWith("http")?(0,ye.jsx)("a",{href:n,target:"_blank",rel:"noreferrer noopener",children:(0,ye.jsx)(Ne,{src:n})}):(0,ye.jsx)(Ne,{src:n})},Te=new Map(Object.entries({object:Y,text:G,checkbox:X,selectbox:$,list:te,number:ie,link:re,datetime:me,date:ve,time:fe,line_chart:he,bar_chart:pe,image:le,progress:de})),Me=[Ze];function ke(e,t,n){var i=new RegExp("".concat(e,"[,\\s].*{(?:[^}]*[\\s;]{1})?").concat(t,":\\s*([^;}]+)[;]?.*}"),"gm");n=n.replace(/{/g," {");var a=i.exec(n);if(a)return a[1].trim()}function Re(e){return e.replace(/(\r\n|\n|\r)/gm," ")}function _e(e,t,n){var i={},a=ke(t,"color",n);a&&(i.textDark=a);var o=ke(t,"background-color",n);return o&&(i.bgCell=o),"yellow"===o&&void 0===a&&(i.textDark="#31333F"),i?(0,r.Z)((0,r.Z)({},e),{},{themeOverride:i}):e}function Se(e,t){var n=e.types.index[t],i=e.indexNames[t],a=!0;return"range"===Z.fu.getTypeName(n)&&(a=!1),{id:"index-".concat(t),name:i,title:i,isEditable:a,arrowType:n,isIndex:!0,isHidden:!1}}function Oe(e,t){var n,i=e.columns[0][t],a=e.types.data[t];if((0,f.le)(a)&&(a={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===Z.fu.getTypeName(a)){var r=e.getCategoricalOptions(t);(0,f.bb)(r)&&(n={options:r})}return{id:"column-".concat(i,"-").concat(t),name:i,title:i,isEditable:!0,arrowType:a,columnTypeOptions:n,isIndex:!1,isHidden:!1}}function Ie(e){return e.startsWith("int")&&!e.startsWith("interval")||"range"===e||e.startsWith("uint")}var De=function(e,t,n,i){var u=o.useCallback((function(o){var u=(0,a.Z)(o,2),d=u[0],s=u[1];if(d>t.length-1)return I("Column index out of bounds.","This should never happen. Please report this bug.");if(s>n-1)return I("Row index out of bounds.","This should never happen. Please report this bug.");var c=t[d],m=c.indexNumber,v=i.current.getOriginalRowIndex(s);if(c.isEditable||i.current.isAddedRow(v)){var g=i.current.getCell(m,v);if(void 0!==g)return g}try{return function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("object"===e.kind)n=e.getCell((0,f.bb)(t.content)?Re(Z.fu.format(t.content,t.contentType,t.field)):null);else if(["time","date","datetime"].includes(e.kind)&&(0,f.bb)(t.content)&&("number"===typeof t.content||"bigint"===typeof t.content)){var a,o,u;u="time"===Z.fu.getTypeName(e.arrowType)&&(0,f.bb)(null===(a=t.field)||void 0===a||null===(o=a.type)||void 0===o?void 0:o.unit)?C().unix(Z.fu.adjustTimestamp(t.content,t.field)).utc().toDate():C().utc(Number(t.content)).toDate(),n=e.getCell(u)}else n=e.getCell(t.content);if(D(n))return n;if(!e.isEditable){if((0,f.bb)(t.displayContent)){var d=Re(t.displayContent);(n.kind===l.p6.Text||n.kind===l.p6.Number)&&(n=(0,r.Z)((0,r.Z)({},n),{},{displayData:d}))}i&&t.cssId&&(n=_e(n,t.cssId,i))}return n}(c,e.getCell(v+1,m),e.cssStyles)}catch(h){return(0,w.H)(h),I("Error during cell creation.","This should never happen. Please report this bug. \nError: ".concat(h))}}),[t,n,e,i]);return{getCellContent:u}};var Ae=function(e,t,n,i,r){var l,u=function(e){return Math.max(35*e+1+2,73)}(t+1+(e.editingMode===m.Eh.EditingMode.DYNAMIC?1:0)),d=Math.min(u,400);e.height&&(d=Math.max(e.height,73),u=Math.max(e.height,u)),i&&(d=Math.min(d,i),u=Math.min(u,i),e.height||(d=u));var s=n;e.useContainerWidth?l=n:e.width&&(l=Math.min(Math.max(e.width,52),n),s=Math.min(Math.max(e.width,s),n));var c=o.useState({width:l||"100%",height:d}),v=(0,a.Z)(c,2),g=v[0],h=v[1];return o.useLayoutEffect((function(){e.useContainerWidth&&"100%"===g.width&&h({width:n,height:g.height})}),[n]),o.useLayoutEffect((function(){h({width:g.width,height:d})}),[t]),o.useLayoutEffect((function(){h({width:l||"100%",height:g.height})}),[l]),o.useLayoutEffect((function(){h({width:g.width,height:d})}),[d]),o.useLayoutEffect((function(){if(r){var t=e.useContainerWidth||(0,f.bb)(e.width)&&e.width>0;h({width:t?s:"100%",height:u})}else h({width:l||"100%",height:d})}),[r]),{rowHeight:35,minHeight:73,maxHeight:u,minWidth:52,maxWidth:s,resizableSize:g,setResizableSize:h}};var He=function(e,t,n,i,l,u,d){var s=o.useCallback((function(t,o){var u=(0,a.Z)(t,2),s=u[0],c=u[1],m=e[s];if(m.isEditable){var f=m.indexNumber,v=n.current.getOriginalRowIndex(l(c)),g=i([s,c]),h=m.getCellValue(g),p=m.getCellValue(o);if(D(g)||p!==h){var b=m.getCell(p,!0);D(b)?(0,w.KE)("Not applying the cell edit since it causes this error:\n ".concat(b.data)):(n.current.setCell(f,v,(0,r.Z)((0,r.Z)({},b),{},{lastUpdated:performance.now()})),d())}}}),[e,n,l,i,d]),c=o.useCallback((function(){if(!t){var i=new Map;e.forEach((function(e){i.set(e.indexNumber,e.getCell(e.defaultValue))})),n.current.addRow(i),d(!1,!1)}}),[e,n,t,d]),m=o.useCallback((function(i){var a;if(i.rows.length>0){if(t)return!0;var r=i.rows.toArray().map((function(e){return n.current.getOriginalRowIndex(l(e))}));return n.current.deleteRows(r),d(!0),!1}if(null!==(a=i.current)&&void 0!==a&&a.range){for(var o=[],c=i.current.range,m=c.y;m<c.y+c.height;m++)for(var f=c.x;f<c.x+c.width;f++){var v=e[f];v.isEditable&&!v.isRequired&&(o.push({cell:[f,m]}),s([f,m],v.getCell(null)))}return o.length>0&&(d(),u(o)),!1}return!0}),[e,n,t,u,l,d,s]),v=o.useCallback((function(o,s){for(var m=(0,a.Z)(o,2),v=m[0],g=m[1],h=[],p=0;p<s.length;p++){var b=s[p];if(p+g>=n.current.getNumRows()){if(t)break;c()}for(var y=0;y<b.length;y++){var w=b[y],x=p+g,C=y+v;if(C>=e.length)break;var Z=e[C];if(Z.isEditable){var N=Z.getCell(w,!0);if((0,f.bb)(N)&&!D(N)){var E=Z.indexNumber,T=n.current.getOriginalRowIndex(l(x)),M=Z.getCellValue(i([C,x]));Z.getCellValue(N)!==M&&(n.current.setCell(E,T,(0,r.Z)((0,r.Z)({},N),{},{lastUpdated:performance.now()})),h.push({cell:[C,x]}))}}}h.length>0&&(d(),u(h))}return!1}),[e,n,t,l,i,c,d,u]),g=o.useCallback((function(t,n){var i=t[0];if(i>=e.length)return!0;var a=e[i];if(a.validateInput){var r=a.validateInput(a.getCellValue(n));return!0===r||!1===r?r:a.getCell(r)}return!0}),[e]);return{onCellEdited:s,onPaste:v,onRowAppended:c,onDelete:m,validateCell:g}};var ze=function(e){var t=(0,o.useState)((function(){return new Map})),n=(0,a.Z)(t,2),i=n[0],l=n[1],u=o.useCallback((function(e,t,n,a){e.id&&l(new Map(i).set(e.id,a))}),[i]);return{columns:e.map((function(e){return e.id&&i.has(e.id)&&void 0!==i.get(e.id)?(0,r.Z)((0,r.Z)({},e),{},{width:i.get(e.id),grow:0}):e})),onColumnResize:u}},Ve=n(34264);var Fe=function(e,t,n){var i=o.useState(),l=(0,a.Z)(i,2),u=l[0],d=l[1],s=(0,Ve.fF)({columns:t.map((function(e){return H(e)})),getCellContent:n,rows:e,sort:u}),c=s.getCellContent,m=s.getOriginalIndex,f=function(e,t){return void 0===t?e:e.map((function(e){return e.id===t.column.id?(0,r.Z)((0,r.Z)({},e),{},{title:"asc"===t.direction?"\u2191 ".concat(e.title):"\u2193 ".concat(e.title)}):e}))}(t,u),v=o.useCallback((function(e){var t="asc",n=f[e];if(u&&u.column.id===n.id){if("asc"!==u.direction)return void d(void 0);t="desc"}d({column:H(n),direction:t,mode:n.sortMode})}),[u,f]);return{columns:f,sortColumn:v,getOriginalIndex:m,getCellContent:c}},Le="index",We="col:",je={small:75,medium:200,large:400};function Be(e){var t;return(0,f.bb)(e.customType)&&(Te.has(e.customType)?t=Te.get(e.customType):(0,w.KE)("Unknown column type configured in column configuration: ".concat(e.customType))),(0,f.le)(t)&&(t=function(e){var t=e?Z.fu.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty"].includes(t)?G:["datetime","datetimetz"].includes(t)?me:"time"===t?fe:"date"===t?ve:["object","decimal","bytes"].includes(t)?Y:["bool"].includes(t)?X:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range"].includes(t)?ie:"categorical"===t?$:t.startsWith("list")?te:Y):Y}(e.arrowType)),t}var Pe=function(e,t,n){var i=function(e){if(!e.columns)return new Map;try{return new Map(Object.entries(JSON.parse(e.columns)))}catch(t){return(0,w.H)(t),new Map}}(e),a=e.useContainerWidth||(0,f.bb)(e.width)&&e.width>0,o=function(e){var t,n,i,a,o,l,u=[],d=null!==(t=null===(n=e.types)||void 0===n||null===(i=n.index)||void 0===i?void 0:i.length)&&void 0!==t?t:0,s=null!==(a=null===(o=e.columns)||void 0===o||null===(l=o[0])||void 0===l?void 0:l.length)&&void 0!==a?a:0;if(0===d&&0===s)return u.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),u;for(var c=0;c<d;c++){var m=(0,r.Z)((0,r.Z)({},Se(e,c)),{},{indexNumber:c});u.push(m)}for(var f=0;f<s;f++){var v=(0,r.Z)((0,r.Z)({},Oe(e,f)),{},{indexNumber:f+d});u.push(v)}return u}(t).map((function(t){var o=(0,r.Z)((0,r.Z)((0,r.Z)({},t),function(e,t){var n,i;return t?(t.has(e.name)?i=t.get(e.name):t.has("".concat(We).concat(e.indexNumber))?i=t.get("".concat(We).concat(e.indexNumber)):e.isIndex&&t.has(Le)&&(i=t.get(Le)),i?(0,N.merge)((0,r.Z)({},e),{title:i.title,width:(0,f.bb)(i.width)&&i.width in je?je[i.width]:void 0,customType:null===(n=i.type)||void 0===n?void 0:n.toLowerCase().trim(),isEditable:(0,f.bb)(i.disabled)?!i.disabled:void 0,isHidden:i.hidden,isRequired:i.required,columnTypeOptions:i.type_options,contentAlignment:i.alignment,defaultValue:i.default,help:i.help}):e):e}(t,i)),{},{isStretched:a}),l=Be(o);return(e.editingMode===m.Eh.EditingMode.READ_ONLY||n||!1===l.isEditableType)&&(o=(0,r.Z)((0,r.Z)({},o),{},{isEditable:!1})),e.editingMode!==m.Eh.EditingMode.READ_ONLY&&1==o.isEditable&&(o=(0,r.Z)((0,r.Z)({},o),{},{icon:"editable"})),l(o)})).filter((function(e){return!e.isHidden}));return{columns:o.length>0?o:[Y({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})]}};var qe=function(e,t){var n=o.useState(),i=(0,a.Z)(n,2),r=i[0],l=i[1],u=o.useRef(null),d=o.useCallback((function(n){if(clearTimeout(u.current),u.current=0,l(void 0),("header"===n.kind||"cell"===n.kind)&&n.location){var i,a=n.location[0],r=n.location[1];if(a<0)return;if("header"===n.kind&&e.length>a&&(0,f.bb)(e[a]))i=e[a].help;else if("cell"===n.kind){var o=t([a,r]);(function(e){return e.hasOwnProperty("tooltip")&&""!==e.tooltip})(o)&&(i=o.tooltip)}i&&(u.current=setTimeout((function(){i&&l({content:i,left:n.bounds.x+n.bounds.width/2,top:n.bounds.y})}),600))}}),[e,t,l,u]);return{tooltip:r,clearTooltip:o.useCallback((function(){l(void 0)}),[l]),onItemHovered:d}},Je=n(4942),Ye=(0,be.Z)("div",{target:"e17g77xh0"})((function(e){var t;return{position:"relative",display:"inline-block","& .glideDataEditor":{height:"100%",minWidth:"100%",borderRadius:e.theme.radii.md},"& .dvn-scroller":(t={scrollbarWidth:"thin"},(0,Je.Z)(t,"overflowX","overlay !important"),(0,Je.Z)(t,"overflowY","overlay !important"),t)}}),""),Ue=n(84028),Ge=n(18550),Ke=n(98345),Xe=n(44642),Qe=n(74903);var $e=function(e){var t=e.top,n=e.left,i=e.content,r=e.clearTooltip,l=o.useState(!0),u=(0,a.Z)(l,2),d=u[0],s=u[1],c=(0,b.u)(),m=c.colors,f=c.fontSizes,v=c.radii,g=o.useCallback((function(){s(!1),r()}),[r,s]);return(0,ye.jsx)(Ue.Z,{content:(0,ye.jsx)(Xe.Uo,{className:"stTooltipContent",children:(0,ye.jsx)(Ke.ZP,{style:{fontSize:f.sm},source:i,allowHTML:!1})}),placement:Ge.r4.top,accessibilityType:Ge.SI.tooltip,showArrow:!1,popoverMargin:5,onClickOutside:g,onEsc:g,overrides:{Body:{style:{borderTopLeftRadius:v.md,borderTopRightRadius:v.md,borderBottomLeftRadius:v.md,borderBottomRightRadius:v.md,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:(0,Qe.Iy)(c)?m.bgColor:m.secondaryBg,color:m.bodyText,fontSize:f.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:d,children:(0,ye.jsx)("div",{className:"stTooltipTarget",style:{position:"fixed",top:t,left:n}})})},et=(n(47288),function(e){var t=e.cell,n=e.theme;return!!function(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}(t)&&((0,l.uN)((0,r.Z)((0,r.Z)({},e),{},{theme:(0,r.Z)((0,r.Z)({},n),{},{textDark:n.textLight,textMedium:n.textLight}),spriteManager:{},hyperWrapping:!1}),"None",t.contentAlign),!0)});var tt=(0,c.Z)((function(e){var t=e.element,n=e.data,c=e.width,v=e.height,g=e.disabled,p=e.widgetMgr,b=e.isFullScreen,w=o.useRef(null),x=o.useRef(null),C=(0,u.Bn)(),Z=y(),N=o.useState(!0),E=(0,a.Z)(N,2),T=E[0],M=E[1],k=o.useMemo((function(){return window.matchMedia&&window.matchMedia("(pointer: coarse)").matches}),[]),R=o.useState({columns:l.EV.empty(),rows:l.EV.empty(),current:void 0}),_=(0,a.Z)(R,2),S=_[0],O=_[1],I=o.useCallback((function(){O({columns:l.EV.empty(),rows:l.EV.empty(),current:void 0})}),[]),D=o.useCallback((function(e){var t;null===(t=x.current)||void 0===t||t.updateCells(e)}),[]);(0,f.le)(t.editingMode)&&(t.editingMode=m.Eh.EditingMode.READ_ONLY);var A=m.Eh.EditingMode,z=A.READ_ONLY,V=A.DYNAMIC,F=n.dimensions,L=Math.max(0,F.rows-1),W=0===L&&!(t.editingMode===V&&F.dataColumns>0),j=L>15e4,B=o.useRef(new h(L)),P=o.useState(B.current.getNumRows()),q=(0,a.Z)(P,2),J=q[0],Y=q[1];o.useEffect((function(){B.current=new h(L),Y(B.current.getNumRows())}),[L]);var U=o.useCallback((function(){B.current=new h(L),Y(B.current.getNumRows())}),[L]),G=Pe(t,n,g).columns;o.useEffect((function(){if(t.editingMode!==z){var e=p.getStringValue(t);e&&(B.current.fromJson(e,G),Y(B.current.getNumRows()))}}),[]);var K=De(n,G,J,B).getCellContent,X=Fe(L,G,K),Q=X.columns,$=X.sortColumn,ee=X.getOriginalIndex,te=X.getCellContent,ne=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];J!==B.current.getNumRows()&&Y(B.current.getNumRows()),e&&I(),(0,f.Ds)(100,(function(){var e=B.current.toJson(Q),i=p.getStringValue(t);void 0===i&&(i=new h(0).toJson([])),e!==i&&p.setStringValue(t,e,{fromUi:n})}))()}),[p,t,J,I,Q]),ie=He(Q,t.editingMode!==V,B,te,ee,D,ne),ae=ie.onCellEdited,re=ie.onPaste,oe=ie.onRowAppended,le=ie.onDelete,ue=ie.validateCell,de=qe(Q,te),se=de.tooltip,ce=de.clearTooltip,me=de.onItemHovered,fe=ze(Q.map((function(e){return H(e)}))),ve=fe.columns,ge=fe.onColumnResize,he=Ae(t,J,c,v,b),pe=he.rowHeight,be=he.minHeight,we=he.maxHeight,xe=he.minWidth,Ce=he.maxWidth,Ze=he.resizableSize,Ne=he.setResizableSize,Te=o.useCallback((function(e){var t=(0,a.Z)(e,2);t[0],t[1];return(0,r.Z)((0,r.Z)({},function(e,t){var n=t?"faded":"normal";return{kind:l.p6.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}(!0,!1)),{},{displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:Z.textLight},span:[0,Math.max(Q.length-1,0)]})}),[Q,Z.textLight]);return o.useEffect((function(){var e=new s.Kz;return e.manageFormClearListener(p,t.formId,U),function(){e.disconnect()}}),[t.formId,U,p]),(0,ye.jsxs)(Ye,{className:"stDataFrame",onBlur:function(){T||k||I()},children:[(0,ye.jsx)(d.e,{"data-testid":"stDataFrameResizable",ref:w,defaultSize:Ze,style:{border:"1px solid ".concat(Z.borderColor),borderRadius:"".concat(Z.tableBorderRadius)},minHeight:be,maxHeight:we,minWidth:xe,maxWidth:Ce,size:Ze,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,pe],snapGap:pe/3,onResizeStop:function(e,t,n,i){w.current&&Ne({width:w.current.size.width,height:we-w.current.size.height===3?w.current.size.height+3:w.current.size.height})},children:(0,ye.jsx)(l.Nd,(0,r.Z)((0,r.Z)({className:"glideDataEditor",ref:x,columns:ve,rows:W?1:J,minColumnWidth:50,maxColumnWidth:1e3,maxColumnAutoWidth:500,rowHeight:pe,headerHeight:pe,getCellContent:W?Te:te,onColumnResize:ge,freezeColumns:W?0:Q.filter((function(e){return e.isIndex})).length,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:function(e){return!(e>=Q.length&&(t.useContainerWidth||"100%"===Ze.width))},getCellsForSelection:!0,rowMarkers:"none",rangeSelect:k?"none":"rect",columnSelect:"none",rowSelect:"none",onItemHovered:me,keybindings:{search:!0,downFill:!0},onHeaderClicked:W||j?void 0:$,gridSelection:S,onGridSelectionChange:function(e){(T||k)&&(O(e),void 0!==se&&ce())},drawCell:et,theme:Z,onMouseMove:function(e){"out-of-bounds"===e.kind&&T?M(!1):"out-of-bounds"===e.kind||T||M(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:1},customRenderers:[].concat((0,i.Z)(C.customRenderers),(0,i.Z)(Me)),imageEditorOverride:Ee,headerIcons:Z.headerIcons,validateCell:ue,onPaste:!1},!W&&t.editingMode!==z&&!g&&{fillHandle:!k,onCellEdited:ae,onPaste:re,onDelete:le}),!W&&t.editingMode===V&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkerTheme:{bgCell:Z.bgHeader,bgCellMedium:Z.bgHeader},rowMarkers:"checkbox",rowSelectionMode:"auto",rowSelect:g?"none":"multi",onRowAppended:g?void 0:oe,onHeaderClicked:void 0}))}),se&&se.content&&(0,ye.jsx)($e,{top:se.top,left:se.left,content:se.content,clearTooltip:ce})]})}))}}]);