aboutsummaryrefslogtreecommitdiff
path: root/dist/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/index.js')
-rw-r--r--dist/index.js71
1 files changed, 70 insertions, 1 deletions
diff --git a/dist/index.js b/dist/index.js
index bf4e4bb..abe6903 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1 +1,70 @@
-!function(e){function t(t){for(var r,i,l=t[0],u=t[1],s=t[2],d=0,f=[];d<l.length;d++)i=l[d],o[i]&&f.push(o[i][0]),o[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(c&&c(t);f.length;)f.shift()();return a.push.apply(a,s||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,l=1;l<n.length;l++){var u=n[l];0!==o[u]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={3:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var l=window.webpackJsonp=window.webpackJsonp||[],u=l.push.bind(l);l.push=t,l=l.slice();for(var s=0;s<l.length;s++)t(l[s]);var c=u;a.push([854,0,1]),n()}(Array(26).concat([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MODIFIER_KEY_NAMES=t.DEFAULT_VERTICAL_SPACING=t.FANG_HEIGHT_PX=t.FANG_WIDTH_PX=t.WEEKDAYS=t.BLOCKED_MODIFIER=t.DAY_SIZE=t.OPEN_UP=t.OPEN_DOWN=t.ANCHOR_RIGHT=t.ANCHOR_LEFT=t.INFO_POSITION_AFTER=t.INFO_POSITION_BEFORE=t.INFO_POSITION_BOTTOM=t.INFO_POSITION_TOP=t.ICON_AFTER_POSITION=t.ICON_BEFORE_POSITION=t.VERTICAL_SCROLLABLE=t.VERTICAL_ORIENTATION=t.HORIZONTAL_ORIENTATION=t.END_DATE=t.START_DATE=t.ISO_MONTH_FORMAT=t.ISO_FORMAT=t.DISPLAY_FORMAT=void 0;t.DISPLAY_FORMAT="L";t.ISO_FORMAT="YYYY-MM-DD";t.ISO_MONTH_FORMAT="YYYY-MM";t.START_DATE="startDate";t.END_DATE="endDate";t.HORIZONTAL_ORIENTATION="horizontal";t.VERTICAL_ORIENTATION="vertical";t.VERTICAL_SCROLLABLE="verticalScrollable";t.ICON_BEFORE_POSITION="before";t.ICON_AFTER_POSITION="after";t.INFO_POSITION_TOP="top";t.INFO_POSITION_BOTTOM="bottom";t.INFO_POSITION_BEFORE="before";t.INFO_POSITION_AFTER="after";t.ANCHOR_LEFT="left";t.ANCHOR_RIGHT="right";t.OPEN_DOWN="down";t.OPEN_UP="up";t.DAY_SIZE=39;t.BLOCKED_MODIFIER="blocked";t.WEEKDAYS=[0,1,2,3,4,5,6];t.FANG_WIDTH_PX=20;t.FANG_HEIGHT_PX=10;t.DEFAULT_VERTICAL_SPACING=22;var r=new Set(["Shift","Control","Alt","Meta"]);t.MODIFIER_KEY_NAMES=r},,function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"c",function(){return p}),n.d(t,"a",function(){return A}),n.d(t,"b",function(){return y});var i="updatePatterns",l="getPatterns",u="updateCalendars",s="getCalendars",c="getCalEvents",d="updateConfig",f="getConfig",p=Object.freeze({updatePatterns:Symbol(i),getPatterns:Symbol(l),updateCalendars:Symbol(u),getCalendars:Symbol(s),getCalEvents:Symbol(c),updateConfig:Symbol(d),getConfig:Symbol(f)});function h(e){switch(e){case p.updatePatterns:return i;case p.getPatterns:return l;case p.updateCalendars:return u;case p.getCalendars:return s;case p.getCalEvents:return c;case p.updateConfig:return d;case p.getConfig:return f;default:console.error("unreachable")}}var A=function(){function e(t,n,o){r(this,e),this.id=t,this.type=n,this.data=o}var t,n,a;return t=e,(n=[{key:"genResp",value:function(t){return new e(this.id,this.type,t)}},{key:"deflate",value:function(){return{id:this.id,type:h(this.type),data:this.data}}}])&&o(t.prototype,n),a&&o(t,a),e}();a(A,"inflate",function(e){return new A(e.id,function(e){switch(e){case i:return p.updatePatterns;case l:return p.getPatterns;case u:return p.updateCalendars;case s:return p.getCalendars;case c:return p.getCalEvents;case d:return p.updateConfig;case f:return p.getConfig;default:console.error("unreachable")}}(e.type),e.data)});var y=function e(t){var n=this;r(this,e),a(this,"sendMsg",function(e){var t,r,o=e.type,a=e.data,i=n.requestCallback,l=new Promise(function(e){t=e});return r=i.ids.length>0?i.ids.pop():i.maxId++,i.inFlight[r]=t,n.port.postMessage(new A(r,o,a).deflate()),l});var o=chrome.runtime.connect({name:t});o.onMessage.addListener(function(e){console.log(e);var t=(e.type,n.requestCallback),r=t.inFlight[e.id];console.assert(void 0!==r),t.ids.push(e.id),r(e)}),this.port=o,this.requestCallback={inFlight:{},ids:[],maxId:0}}},,function(e,t,n){e.exports=n(596)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u});var l=function(){function e(t,n,o,a){r(this,e),this.id=t,this.isRegex=n,this.value=o,this.label=a}return a(e,[{key:"deflate",value:function(){return{id:this.id,isRegex:this.isRegex,value:this.value,label:this.label}}},{key:"regex",get:function(){return new RegExp(this.isRegex?this.value:"^".concat(this.value,"$"))}},{key:"isEmpty",get:function(){return null===this.label}}]),e}();i(l,"emptyPattern",function(){return new l(0,!0,"",null)}),i(l,"anyPattern",function(){return new l("any",!0,".*","Any")}),i(l,"inflate",function(e){return new l(e.id,e.isRegex,e.value,e.label)});var u=function(){function e(t,n,o,a){r(this,e),this.name=t,this.idx=n,this.cal=o,this.event=a}return a(e,[{key:"deflate",value:function(){return{name:this.name,idx:this.idx,cal:this.cal.deflate(),event:this.event.deflate()}}}]),e}();i(u,"defaultPatternEntry",function(e){return new u("",e,l.emptyPattern(),l.anyPattern())}),i(u,"inflate",function(e){return new u(e.name,e.idx,l.inflate(e.cal),l.inflate(e.event))})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(3),o=n.n(r);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i,l,u,s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t,this.unit=n}var t,n,r;return t=e,r=[{key:"days",value:function(t){return new e(t,"days")}},{key:"weeks",value:function(t){return new e(t,"weeks")}},{key:"months",value:function(t){return new e(t,"months")}}],(n=[{key:"toMoment",value:function(){var e=o.a.duration(this.value,this.unit);return e.isValid()?e:null}},{key:"deflate",value:function(){return{value:this.value,unit:this.unit}}}])&&a(t.prototype,n),r&&a(t,r),e}();u=function(e){return new s(e.value,e.unit)},(l="inflate")in(i=s)?Object.defineProperty(i,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[l]=u},,function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalendarDayPhrases=t.DayPickerNavigationPhrases=t.DayPickerKeyboardShortcutsPhrases=t.DayPickerPhrases=t.SingleDatePickerInputPhrases=t.SingleDatePickerPhrases=t.DateRangePickerInputPhrases=t.DateRangePickerPhrases=t.default=void 0;var r="Interact with the calendar and add the check-in date for your trip.",o="Move backward to switch to the previous month.",a="Move forward to switch to the next month.",i="page up and page down keys",l="Home and end keys",u="Escape key",s="Select the date in focus.",c="Move backward (left) and forward (right) by one day.",d="Move backward (up) and forward (down) by one week.",f="Return to the date input field.",p="Press the down arrow key to interact with the calendar and\n select a date. Press the question mark key to get the keyboard shortcuts for changing dates.",h=function(e){var t=e.date;return"Choose ".concat(t," as your check-in date. It’s available.")},A=function(e){var t=e.date;return"Choose ".concat(t," as your check-out date. It’s available.")},y=function(e){return e.date},v=function(e){var t=e.date;return"Not available. ".concat(t)},b=function(e){var t=e.date;return"Selected. ".concat(t)},m=function(e){var t=e.date;return"Selected as start date. ".concat(t)},g=function(e){var t=e.date;return"Selected as end date. ".concat(t)},k={calendarLabel:"Calendar",closeDatePicker:"Close",focusStartDate:r,clearDate:"Clear Date",clearDates:"Clear Dates",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:l,escape:u,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:c,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:h,chooseAvailableEndDate:A,dateIsUnavailable:v,dateIsSelected:b,dateIsSelectedAsStartDate:m,dateIsSelectedAsEndDate:g};t.default=k;var D={calendarLabel:"Calendar",closeDatePicker:"Close",clearDates:"Clear Dates",focusStartDate:r,jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:l,escape:u,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:c,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableStartDate:h,chooseAvailableEndDate:A,dateIsUnavailable:v,dateIsSelected:b,dateIsSelectedAsStartDate:m,dateIsSelectedAsEndDate:g};t.DateRangePickerPhrases=D;var P={focusStartDate:r,clearDates:"Clear Dates",keyboardNavigationInstructions:p};t.DateRangePickerInputPhrases=P;var S={calendarLabel:"Calendar",closeDatePicker:"Close",clearDate:"Clear Date",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:l,escape:u,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:c,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,keyboardNavigationInstructions:p,chooseAvailableDate:y,dateIsUnavailable:v,dateIsSelected:b};t.SingleDatePickerPhrases=S;var O={clearDate:"Clear Date",keyboardNavigationInstructions:p};t.SingleDatePickerInputPhrases=O;var w={calendarLabel:"Calendar",jumpToPrevMonth:o,jumpToNextMonth:a,keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:l,escape:u,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:c,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f,chooseAvailableStartDate:h,chooseAvailableEndDate:A,chooseAvailableDate:y,dateIsUnavailable:v,dateIsSelected:b,dateIsSelectedAsStartDate:m,dateIsSelectedAsEndDate:g};t.DayPickerPhrases=w;var E={keyboardShortcuts:"Keyboard Shortcuts",showKeyboardShortcutsPanel:"Open the keyboard shortcuts panel.",hideKeyboardShortcutsPanel:"Close the shortcuts panel.",openThisPanel:"Open this panel.",enterKey:"Enter key",leftArrowRightArrow:"Right and left arrow keys",upArrowDownArrow:"up and down arrow keys",pageUpPageDown:i,homeEnd:l,escape:u,questionMark:"Question mark",selectFocusedDate:s,moveFocusByOneDay:c,moveFocusByOneWeek:d,moveFocusByOneMonth:"Switch months.",moveFocustoStartAndEndOfWeek:"Go to the first or last day of a week.",returnFocusToInput:f};t.DayPickerKeyboardShortcutsPhrases=E;var C={jumpToPrevMonth:o,jumpToNextMonth:a};t.DayPickerNavigationPhrases=C;var T={chooseAvailableDate:y,dateIsUnavailable:v,dateIsSelected:b,dateIsSelectedAsStartDate:m,dateIsSelectedAsEndDate:g};t.CalendarDayPhrases=T},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}({},e,a({},t,o.default.oneOfType([o.default.string,o.default.func,o.default.node])))},{})};var r,o=(r=n(0))&&r.__esModule?r:{default:r};function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},,,function(e,t,n){"use strict";var r=n(367);e.exports=function(e,t,n){return!r(e.props,t)||!r(e.state,n)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withStylesPropTypes=t.css=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.withStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,i=void 0===n?"styles":n,c=t.themePropName,f=void 0===c?"theme":c,h=t.cssPropName,b=void 0===h?"css":h,m=t.flushBefore,g=void 0!==m&&m,k=t.pureComponent,D=void 0!==k&&k,P=void 0,S=void 0,O=void 0,w=void 0,E=function(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}(D);function C(e){return e===s.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function T(t,n){var r=function(e){return e===s.DIRECTIONS.LTR?O:w}(t),o=t===s.DIRECTIONS.LTR?P:S,a=d.default.get();if(o&&r===a)return o;var i=t===s.DIRECTIONS.RTL;return i?(S=e?d.default.createRTL(e):A,w=a,o=S):(P=e?d.default.createLTR(e):A,O=a,o=P),o}function M(e,t){return{resolveMethod:C(e),styleDef:T(e,t)}}return function(){return function(e){var t=e.displayName||e.name||"Component",n=function(n){function l(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e,n)),o=r.context[s.CHANNEL]?r.context[s.CHANNEL].getState():v;return r.state=M(o,t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,n),o(l,[{key:"componentDidMount",value:function(){return function(){var e=this;this.context[s.CHANNEL]&&(this.channelUnsubscribe=this.context[s.CHANNEL].subscribe(function(n){e.setState(M(n,t))}))}}()},{key:"componentWillUnmount",value:function(){return function(){this.channelUnsubscribe&&this.channelUnsubscribe()}}()},{key:"render",value:function(){return function(){var t;g&&d.default.flush();var n=this.state,o=n.resolveMethod,l=n.styleDef;return a.default.createElement(e,r({},this.props,(p(t={},f,d.default.get()),p(t,i,l()),p(t,b,o),t)))}}()}]),l}(E);n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=y,e.propTypes&&(n.propTypes=(0,u.default)({},e.propTypes),delete n.propTypes[i],delete n.propTypes[f],delete n.propTypes[b]);e.defaultProps&&(n.defaultProps=(0,u.default)({},e.defaultProps));return(0,l.default)(n,e)}}()};var a=f(n(1)),i=f(n(0)),l=f(n(597)),u=f(n(598)),s=n(599),c=f(n(600)),d=f(n(365));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:i.default.object.isRequired,theme:i.default.object.isRequired,css:i.default.func.isRequired};var h={},A=function(){return h};var y=p({},s.CHANNEL,c.default),v=s.DIRECTIONS.LTR},,function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,a,i,l],c=0;(u=new Error(t.replace(/%s/g,function(){return s[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},,function(e,t,n){"use strict";n.d(t,"e",function(){return p}),n.d(t,"b",function(){return h}),n.d(t,"f",function(){return A}),n.d(t,"g",function(){return y}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return b}),n.d(t,"a",function(){return g});var r=n(246),o=n.n(r);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var u="https://www.googleapis.com/calendar/v3",s=Object.freeze({invalidSyncToken:Symbol("invalidSyncToken"),notLoggedIn:Symbol("notLoggedIn"),notLoggedOut:Symbol("notLoggedOut"),otherError:Symbol("otherError")});function c(e){return Object.entries(e).filter(function(e){var t=l(e,2);t[0];return t[1]}).map(function(e){var t=l(e,2),n=t[0],r=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r))}).join("&")}var d=null;function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise(function(t){return chrome.identity.getAuthToken({interactive:e},function(e){return t([e,!chrome.runtime.lastError])})}).then(function(e){var t=l(e,2),n=t[0];if(t[1])return n;throw s.notLoggedIn})}function p(){return null===d?f(!1).then(function(){return d=!0}).catch(function(){return d=!1}).then(function(){return d}):Promise.resolve(d)}function h(){return p().then(function(e){if(e)return f(!1);throw s.notLoggedIn})}function A(){return p().then(function(e){if(e)throw s.notLoggedOut;return f(!0).then(function(){return d=!0})})}function y(){return h().then(function(e){return fetch("https://accounts.google.com/o/oauth2/revoke?".concat(c({token:e})),{method:"GET",async:!0}).then(function(t){return function(e){return new Promise(function(t){return chrome.identity.removeCachedAuthToken({token:e},function(){return t()})})}(e)})}).then(function(){return d=!1})}function v(e){return fetch("".concat(u,"/users/me/calendarList?").concat(c({access_token:e})),{method:"GET",async:!0}).then(function(e){return e.json()}).then(function(e){return e.items})}function b(e){return fetch("".concat(u,"/colors?").concat(c({access_token:e})),{method:"GET",async:!0}).then(function(e){return e.json()})}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:100,l=[];return function n(d,f){return fetch("".concat(u,"/calendars/").concat(e,"/events?").concat(c({access_token:t,pageToken:d,syncToken:f,timeMin:r,timeMax:o,maxResults:a})),{method:"GET",async:!0}).then(function(e){if(200===e.status)return e.json();throw 410===e.status?s.invalidSyncToken:s.otherError}).then(function(e){return l.push.apply(l,i(e.items)),e.nextPageToken?n(e.nextPageToken,""):{nextSyncToken:e.nextSyncToken,results:l}})}("",n)}var g=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{maxCachedItems:100,nDaysPerSlot:10,largeQuery:10};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.calId=t,this.name=n,this.syncToken="",this.cache=new o.a({max:a.maxCachedItems,dispose:function(e,t){return r.onRemoveSlot(e,t)}}),this.eventMeta={},this.options=a,this.divider=864e5*this.options.nDaysPerSlot}var t,n,r;return t=e,(n=[{key:"dateToCacheKey",value:function(e){return Math.floor(e/this.divider)}},{key:"dateRangeToCacheKeys",value:function(e){return{start:this.dateToCacheKey(e.start),end:this.dateToCacheKey(new Date(e.end.getTime()-1))}}},{key:"getSlot",value:function(e){if(this.cache.has(e))return this.cache.get(e);var t={};return this.cache.set(e,t),t}},{key:"onRemoveSlot",value:function(e,t){for(var n in t){console.assert(this.eventMeta[n]);var r=this.eventMeta[n].keys;r.delete(e),0===r.size&&delete this.eventMeta[n]}}},{key:"slotStartDate",value:function(e){return new Date(e*this.divider)}},{key:"slotEndDate",value:function(e){return new Date((e+1)*this.divider)}},{key:"addEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.eventMeta.hasOwnProperty(e.id)&&this.removeEvent(e);for(var n=this.dateRangeToCacheKeys(e),r=n.start,o=n.end,a=this.cache.length,i=new Set,l=r;l<=o;l++)i.add(l),this.cache.has(l)||a++;if(this.eventMeta[e.id]={keys:i,summary:e.summary},t||!(a>this.options.maxCachedItems))if(r===o)this.getSlot(r)[e.id]={start:e.start,end:e.end,id:e.id};else{this.getSlot(r)[e.id]={start:e.start,end:this.slotEndDate(r),id:e.id},this.getSlot(o)[e.id]={start:this.slotStartDate(o),end:e.end,id:e.id};for(var u=r+1;u<o;u++)this.getSlot(u)[e.id]={start:this.slotStartDate(u),end:this.slotEndDate(u),id:e.id}}}},{key:"removeEvent",value:function(e){var t=this,n=this.eventMeta[e.id].keys;console.assert(n),n.forEach(function(n){return delete t.getSlot(n)[e.id]}),delete this.eventMeta[e.id]}},{key:"getSlotEvents",value:function(e,t,n){var r=this.getSlot(e),o=[];for(var a in r)r[a].start>=n||r[a].end<=t||o.push({id:a,start:r[a].start<t?t:r[a].start,end:r[a].end>n?n:r[a].end,summary:this.eventMeta[a].summary});return o}},{key:"getCachedEvents",value:function(e){for(var t=this.dateRangeToCacheKeys(e),n=t.start,r=t.end,o=this.getSlotEvents(n,e.start,e.end),a=n+1;a<r;a++){var l=this.getSlot(a);for(var u in l)o.push(l[u])}return r>n&&o.push.apply(o,i(this.getSlotEvents(r,e.start,e.end))),o}},{key:"sync",value:function(){var e=this;return this.token.then(function(t){return m(e.calId,t,e.syncToken).then(function(n){var r=n.results.map(function(n){return n.start?Promise.resolve(n):function(e,t,n){return fetch("".concat(u,"/calendars/").concat(e,"/events/").concat(t,"?").concat(c({access_token:n})),{method:"GET",async:!0}).then(function(e){return e.json()})}(e.calId,n.id,t)});return Promise.all(r).then(function(t){t.forEach(function(t){t.start=new Date(t.start.dateTime),t.end=new Date(t.end.dateTime),"confirmed"===t.status?e.addEvent(t):"cancelled"===t.status&&e.removeEvent(t)}),e.syncToken=n.nextSyncToken})})}).catch(function(t){if(t!==s.invalidSyncToken)throw t;e.syncToken="",e.sync()})}},{key:"getEvents",value:function(e,t){for(var n=this,r=this.dateRangeToCacheKeys({start:e,end:t}),o={},a=r.start;a<=r.end;a++)this.cache.has(a)||(o.hasOwnProperty("start")||(o.start=a),o.end=a);return console.log("start: ".concat(e," end: ").concat(t)),o.hasOwnProperty("start")?(console.assert(o.start<=o.end),o.end-o.start+1>this.options.largeQuery?(console.log("encounter large query, use direct fetch"),this.token.then(function(r){return m(n.calId,r,null,e.toISOString(),t.toISOString()).then(function(n){var r=[];return n.results.forEach(function(e){console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),r.push(e)}),r.filter(function(n){return!(n.start>=t||n.end<=e)}).map(function(n){return{id:n.id,start:n.start<e?e:n.start,end:n.end>t?t:n.end,summary:n.summary}})})})):(console.log("fetching short event list"),this.token.then(function(e){return m(n.calId,e,null,n.slotStartDate(o.start).toISOString(),n.slotEndDate(o.end).toISOString()).then(function(e){e.results.forEach(function(e){"confirmed"===e.status&&(console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),n.addEvent(e,!0))}),""===n.syncToken&&(n.syncToken=e.nextSyncToken)})}).then(function(){return n.sync()}).then(function(){return n.getCachedEvents({start:e,end:t})}))):(console.log("cache hit"),this.sync().then(function(){return n.getCachedEvents({start:e,end:t})}))}},{key:"token",get:function(){return h()}}])&&a(t.prototype,n),r&&a(t,r),e}()},,,function(e,t,n){var r=n(3),o=n(594),a=n(595);e.exports={momentObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return o.isValidMoment(e)},"Moment"),momentString:a.createMomentChecker("string",function(e){return"string"==typeof e},function(e){return o.isValidMoment(r(e))},"Moment"),momentDurationObj:a.createMomentChecker("object",function(e){return"object"==typeof e},function(e){return r.isDuration(e)},"Duration")}},,,,,,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(822))},,,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(813))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("number"==typeof e)return"".concat(e,"px ").concat(r);if("string"==typeof e)return"".concat(e," ").concat(r);throw new TypeError("noflip expects a string or a number")};var r="/* @noflip */"},,function(e,t,n){"use strict";var r=n(27),o=n(65),a=n.n(o),i=Object(r.createMuiTheme)({palette:{primary:{light:a.a[300],main:a.a[500],dark:a.a[700],contrastText:"#fff"}},typography:{useNextVariants:!0}});t.a=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(801))},,,,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(834))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=n(26);var i=o.default.oneOf(a.WEEKDAYS);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=n(26);var i=o.default.oneOf([a.OPEN_DOWN,a.OPEN_UP]);t.default=i},,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.cloneElementWithClassName=i,t.cloneChildrenWithClassName=function(e,t){return o.default.Children.map(e,function(e){return o.default.isValidElement(e)&&i(e,t)})},t.isMuiElement=function(e,t){return o.default.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)},t.setRef=function(e,t){"function"==typeof e?e(t):e&&(e.current=t)};var o=r(n(1)),a=r(n(6));function i(e,t){return o.default.cloneElement(e,{className:(0,a.default)(e.props.className,t)})}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(19)),a=r(n(20)),i=r(n(22)),l=r(n(23)),u=r(n(24)),s=r(n(83)),c=r(n(8)),d=r(n(7)),f=r(n(1));r(n(0)),r(n(25));var p,h=(p=null,function(){if(null!==p)return p;var e,t,n,r=!1;try{window.addEventListener("test",null,(e={},t="passive",n={get:function(){r=!0}},Object.defineProperty(e,t,n)))}catch(e){}return p=r,r}()),A={capture:!1,passive:!1};function y(e){return d({},A,e)}function v(e,t,n){var r=[e,t];return r.push(h?n:n.capture),r}function b(e,t,n,r){e.addEventListener.apply(e,v(t,n,r))}function m(e,t,n,r){e.removeEventListener.apply(e,v(t,n,r))}var g=function(e){function t(){return o(this,t),i(this,l(t).apply(this,arguments))}return u(t,e),a(t,[{key:"componentDidMount",value:function(){this.applyListeners(b)}},{key:"componentDidUpdate",value:function(e){this.applyListeners(m,e),this.applyListeners(b)}},{key:"componentWillUnmount",value:function(){this.applyListeners(m)}},{key:"applyListeners",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=t.target;if(n){var r=n;"string"==typeof n&&(r=window[n]),function(e,t){e.children,e.target;var n=c(e,["children","target"]);Object.keys(n).forEach(function(e){if("on"===e.substring(0,2)){var r=n[e],o=s(r),a="object"===o;if(a||"function"===o){var i="capture"===e.substr(-7).toLowerCase(),l=e.substring(2).toLowerCase();l=i?l.substring(0,l.length-7):l,a?t(l,r.handler,r.options):t(l,r,y({capture:i}))}}})}(t,e.bind(null,r))}}},{key:"render",value:function(){return this.props.children||null}}]),t}(f.PureComponent);g.propTypes={},t.withOptions=function(e,t){return{handler:e,options:y(t)}},t.default=g},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(t){return a.default.createElement(l.default.Consumer,null,function(n){return a.default.createElement(e,(0,o.default)({muiFormControl:n},t))})};0;return(0,i.default)(t,e),t};var o=r(n(7)),a=r(n(1)),i=r(n(296)),l=r(n(323));n(15)},function(e,t,n){"use strict";var r=n(2);t.__esModule=!0,t.default=void 0;var o=r(n(791)),a=r(n(795)),i=(r(n(434)),r(n(435)),function(e){return(0,o.default)(function(e,t){return!(0,a.default)(e,t)})(e)});t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(796))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(761))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(762))},function(e,t,n){"use strict";n.d(t,"c",function(){return b}),n.d(t,"b",function(){return k}),n.d(t,"a",function(){return P});var r=n(1),o=n.n(r),a=n(0),i=n.n(a),l=n(27),u=n(33),s=n.n(u),c=n(283),d=n.n(c),f=n(80),p=n.n(f),h=n(290),A=n(230),y=n(68),v=n(289);function b(e,t,n,r,o){if(e>=t)return Promise.resolve({patternGraphData:[],calendarGraphData:[]});var a=[],i=function(i){var l=n.filter(function(e){return e.cal.regex.test(r[i].name)});l.length>0&&a.push(o(i,e,t).then(function(e){return{id:i,events:e,filtered:l}}))};for(var l in r)i(l);return Promise.all(a).then(function(o){var a={},i={},l={},u={};o.forEach(function(e){a[e.id]=e.events,i[e.id]=e.filtered});for(var s=0;s<n.length;s++)l[s]=0;var c=function(e){if(!a[e])return"continue";a[e].forEach(function(t){i[e].forEach(function(n){if(n.event.regex.test(t.summary)){u.hasOwnProperty(e)||(u[e]=0);var r=(t.end-t.start)/6e4;l[n.idx]+=r,u[e]+=r}})})};for(var d in r)c(d);for(var f=[],p=[],h=function(e){var t=0,n=[],r=0;return e.forEach(function(e){return t+=e.value}),e.forEach(function(e){e.value/t<.01?r+=e.value:n.push(e)}),n.push({name:"Other",value:r,color:"#fff"}),n},A=0;A<n.length;A++)f.push({name:n[A].name,value:l[A]/60});for(var d in u)p.push({name:r[d].name,value:u[d]/60,color:r[d].color.background});return{start:e,end:t,patternGraphData:h(f),calendarGraphData:h(p)}})}var m=function(e){return{pieChart:{margin:"0 auto"}}};function g(e){var t=e.cx,n=e.cy,r=e.x,a=e.y,i=e.fill,l=e.name,u="middle",s=0,c=0;return r<t-2?(s=-5,u="end"):r>t+2&&(s=5,u="start"),a<n-2?c=-5:a>n+2&&(c=10),o.a.createElement("text",{x:r,y:a,dx:s,dy:c,fill:i,textAnchor:u},"".concat(l))}var k=Object(l.withStyles)(m)(function(e){return o.a.createElement(s.a,{item:!0,xs:12,lg:6},o.a.createElement("div",{className:e.classes.patternTableWrapper},o.a.createElement(h.a,{width:400,height:250,className:e.classes.pieChart},o.a.createElement(A.a,{data:e.data,dataKey:"value",cx:200,cy:125,outerRadius:60,fill:d.a[300],isAnimationActive:!1,label:g}),o.a.createElement(y.a,{formatter:function(e){return"".concat(e.toFixed(2)," hr")}}))))});function D(e){return o.a.createElement(s.a,{container:!0,spacing:0},o.a.createElement(k,{data:e.patternGraphData}),o.a.createElement(s.a,{item:!0,xs:12,lg:6},o.a.createElement("div",{className:e.classes.patternTableWrapper},o.a.createElement(h.a,{width:400,height:250,className:e.classes.pieChart},o.a.createElement(A.a,{data:e.calendarGraphData,dataKey:"value",cx:200,cy:125,innerRadius:40,outerRadius:70,fill:p.a[300],isAnimationActive:!1,label:g},e.calendarGraphData.map(function(e,t){return o.a.createElement(v.a,{key:t,fill:e.color})})),o.a.createElement(y.a,{formatter:function(e){return"".concat(e.toFixed(2)," hr")}})))))}D.propTypes={patternGraphData:i.a.array.isRequired,calendarGraphData:i.a.array.isRequired};var P=Object(l.withStyles)(m)(D)},,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(748))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(814))},,,,function(e,t,n){"use strict";var r=n(572);e.exports=Function.prototype.bind||r},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!o.default.isMoment(e)||!o.default.isMoment(t))&&e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year()};var r,o=(r=n(3))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t?[t,a.DISPLAY_FORMAT,a.ISO_FORMAT]:[a.DISPLAY_FORMAT,a.ISO_FORMAT],r=(0,o.default)(e,n,!0);return r.isValid()?r.hour(12):null};var r,o=(r=n(3))&&r.__esModule?r:{default:r},a=n(26)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=n(26);var i=o.default.oneOf([a.HORIZONTAL_ORIENTATION,a.VERTICAL_ORIENTATION,a.VERTICAL_SCROLLABLE]);t.default=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=n(26);var i=o.default.oneOf([a.ICON_BEFORE_POSITION,a.ICON_AFTER_POSITION]);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t)||(0,o.default)(e,t))};var r=a(n(3)),o=a(n(239));function a(e){return e&&e.__esModule?e:{default:e}}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e},{})}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),a=r(n(75)),i=r(n(76));var l=function(e,t){var n=function(t){return o.default.createElement(i.default,t,e)};return n.displayName="".concat(t,"Icon"),(n=(0,a.default)(n)).muiName="SvgIcon",n};t.default=l},,,,,,,,,,function(e,t,n){"use strict";var r=n(354),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,l=Object.defineProperty,u=l&&function(){var e={};try{for(var t in l(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),s=function(e,t,n,r){var o;t in e&&("function"!=typeof(o=r)||"[object Function]"!==a.call(o)||!r())||(u?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var l=0;l<a.length;l+=1)s(e,a[l],t[a[l]],n[a[l]])};c.supportsDescriptors=!!u,e.exports=c},function(e,t,n){"use strict";var r=n(86);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=n(26);var i=o.default.oneOfType([o.default.bool,o.default.oneOf([a.START_DATE,a.END_DATE])]);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},a=n(26);var i=o.default.oneOf([a.INFO_POSITION_TOP,a.INFO_POSITION_BOTTOM,a.INFO_POSITION_BEFORE,a.INFO_POSITION_AFTER]);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!o.default.isMoment(e)||!o.default.isMoment(t))return!1;var n=e.year(),r=e.month(),a=t.year(),i=t.month(),l=n===a,u=r===i;return l&&u?e.date()<t.date():l?r<i:n<a};var r,o=(r=n(3))&&r.__esModule?r:{default:r}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r};var a=function(){return function(e){return o.default.createElement("svg",e,o.default.createElement("path",{fillRule:"evenodd",d:"M11.53.47a.75.75 0 0 0-1.061 0l-4.47 4.47L1.529.47A.75.75 0 1 0 .468 1.531l4.47 4.47-4.47 4.47a.75.75 0 1 0 1.061 1.061l4.47-4.47 4.47 4.47a.75.75 0 1 0 1.061-1.061l-4.47-4.47 4.47-4.47a.75.75 0 0 0 0-1.061z"}))}}();a.defaultProps={focusable:"false",viewBox:"0 0 12 12"};var i=a;t.default=i},,,function(e,t){function n(e,t,n){var r,o,a,i,l;function u(){var s=Date.now()-i;s<t&&s>=0?r=setTimeout(u,t-s):(r=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var s=function(){a=this,o=arguments,i=Date.now();var s=n&&!r;return r||(r=setTimeout(u,t)),s&&(l=e.apply(a,o),a=o=null),l};return s.clear=function(){r&&(clearTimeout(r),r=null)},s.flush=function(){r&&(l=e.apply(a,o),a=o=null,clearTimeout(r),r=null)},s}n.debounce=n,e.exports=n},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(787))},function(e,t,n){"use strict";const r=n(308),o=Symbol("max"),a=Symbol("length"),i=Symbol("lengthCalculator"),l=Symbol("allowStale"),u=Symbol("maxAge"),s=Symbol("dispose"),c=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),h=()=>1;const A=(e,t,n)=>{const r=e[f].get(t);if(r){const t=r.value;if(y(e,t)){if(b(e,r),!e[l])return}else n&&(e[p]&&(r.value.now=Date.now()),e[d].unshiftNode(r));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},v=e=>{if(e[a]>e[o])for(let t=e[d].tail;e[a]>e[o]&&null!==t;){const n=t.prev;b(e,t),t=n}},b=(e,t)=>{if(t){const n=t.value;e[s]&&e[s](n.key,n.value),e[a]-=n.length,e[f].delete(n.key),e[d].removeNode(t)}};class m{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const g=(e,t,n,r)=>{let o=n.value;y(e,o)&&(b(e,n),e[l]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[o]=e.max||1/0;const t=e.length||h;if(this[i]="function"!=typeof t?h:t,this[l]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[s]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,v(this)}get max(){return this[o]}set allowStale(e){this[l]=!!e}get allowStale(){return this[l]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,v(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[i]&&(this[i]=e,this[a]=0,this[d].forEach(e=>{e.length=this[i](e.value,e.key),this[a]+=e.length})),v(this)}get lengthCalculator(){return this[i]}get length(){return this[a]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let n=this[d].tail;null!==n;){const r=n.prev;g(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[d].head;null!==n;){const r=n.next;g(this,e,n,t),n=r}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){this[s]&&this[d]&&this[d].length&&this[d].forEach(e=>this[s](e.key,e.value)),this[f]=new Map,this[d]=new r,this[a]=0}dump(){return this[d].map(e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,l=this[i](t,e);if(this[f].has(e)){if(l>this[o])return b(this,this[f].get(e)),!1;const i=this[f].get(e).value;return this[s]&&(this[c]||this[s](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[a]+=l-i.length,i.length=l,this.get(e),v(this),!0}const p=new m(e,t,l,r,n);return p.length>this[o]?(this[s]&&this[s](e,t),!1):(this[a]+=p.length,this[d].unshift(p),this[f].set(e,this[d].head),v(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!y(this,t)}get(e){return A(this,e,!0)}peek(e){return A(this,e,!1)}pop(){const e=this[d].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[f].forEach((e,t)=>A(this,t,!1))}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function r(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}}).call(this,n(319))},,,,,,,,,,,,function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=Object.getPrototypeOf||function(e){return e.__proto__},i=void 0,l="undefined"==typeof Uint8Array?void 0:a(Uint8Array),u={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?a([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":i&&o&&Symbol.asyncIterator?i[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?a(a([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?a((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?a((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?a(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":l,"$ %TypedArrayPrototype%":l?l.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in u))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===u[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return u[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var i=(0,n(30).and)([o.default.instanceOf(Set),function(){return function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var l;return a(e[t]).some(function(e,n){var a,i,u,s,c="".concat(t,": index ").concat(n);return null!=(l=(a=o.default.string).isRequired.apply(a,[(i={},u=c,s=e,u in i?Object.defineProperty(i,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[u]=s,i),c].concat(r)))}),null==l?null:l}}()],"Modifiers (Set of Strings)");t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_FORMAT):null};var r=i(n(3)),o=i(n(215)),a=n(26);function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"addEventListener",function(){return s});var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var o=void 0;function a(){return void 0===o&&(o=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),o}function i(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function l(e){this.target=e,this.events={}}l.prototype.getEventHandlers=function(){return function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]}}(),l.prototype.handleEvent=function(){return function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach(function(e){e&&e(n)})}}(),l.prototype.add=function(){return function(e,t,n){var r=this,o=this.getEventHandlers(e,n);i(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var a=!0;return function(){if(a){a=!1,i(o);var l=o.nextHandlers.indexOf(t);o.nextHandlers.splice(l,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}}}();var u="__consolidated_events_handlers__";function s(e,t,n,r){e[u]||(e[u]=new l(e));var o=function(e){if(e)return a()?e:!!e.capture}(r);return e[u].add(t,n,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_MONTH_FORMAT):null};var r=i(n(3)),o=i(n(215)),a=n(26);function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t)||(0,o.default)(e,t)||(0,a.default)(e,t))};var r=i(n(3)),o=i(n(239)),a=i(n(214));function i(e){return e&&e.__esModule?e:{default:e}}},,,,,,,,,,,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(798))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)).default.createContext();t.default=o},,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(850))},,,,,,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(815))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(817))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),a=(0,r(n(225)).default)(o.default.createElement(o.default.Fragment,null,o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),o.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})),"AddCircle");t.default=a},function(e,t,n){var r=n(851);e.exports=p,e.exports.parse=a,e.exports.compile=function(e,t){return l(a(e,t))},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(i,p),i=p+d.length,f)l+=f[1];else{var h=e[i],A=n[2],y=n[3],v=n[4],b=n[5],m=n[6],g=n[7];l&&(r.push(l),l="");var k=null!=A&&null!=h&&h!==A,D="+"===m||"*"===m,P="?"===m||"*"===m,S=n[2]||c,O=v||b;r.push({name:y||a++,prefix:A||"",delimiter:S,optional:P,repeat:D,partial:k,asterisk:!!