From e0a4f8eeeb3a60ad5cac0f78694df29c1f27c943 Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 26 Feb 2019 18:35:57 -0500 Subject: fix cache saving issue --- dist/background.js | 2 +- dist/index.js | 2 +- src/background.ts | 4 ++-- src/gapi.ts | 22 +++++++++++++++++----- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/dist/background.js b/dist/background.js index 2bf7b81..406799e 100644 --- a/dist/background.js +++ b/dist/background.js @@ -39,5 +39,5 @@ object-assign * @website https://github.com/jsstyles/css-vendor * @license MIT */ -t.prefix=a.default,t.supportedProperty=r.default,t.supportedValue=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!o)return e;if(null!=d[e])return d[e];(0,s.default)(e)in o.style?d[e]=e:r.default.js+(0,s.default)("-"+e)in o.style?d[e]=r.default.css+e:d[e]=!1;return d[e]};var a=i(n(39)),r=i(n(53)),s=i(n(312));function i(e){return e&&e.__esModule?e:{default:e}}var o=void 0,d={};if(a.default){o=document.createElement("p");var u=window.getComputedStyle(document.documentElement,"");for(var l in u)isNaN(l)||(d[u[l]]=u[l])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(a,r)};var a=/[-\s]+(.)?/g;function r(e,t){return t?t.toUpperCase():""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!o)return t;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=i[n])return i[n];try{o.style[e]=t}catch(e){return i[n]=!1,!1}""!==o.style[e]?i[n]=t:("-ms-flex"===(t=r.default.css+t)&&(t="-ms-flexbox"),o.style[e]=t,""!==o.style[e]&&(i[n]=t));i[n]||(i[n]=!1);return o.style[e]="",i[n]};var a=s(n(39)),r=s(n(53));function s(e){return e&&e.__esModule?e:{default:e}}var i={},o=void 0;a.default&&(o=document.createElement("p"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e,t){return e.length-t.length}return{onProcessStyle:function(t,n){if("style"!==n.type)return t;var a={},r=Object.keys(t).sort(e);for(var s in r)a[r[s]]=t[r[s]];return a}}}},function(e,t,n){"use strict";var a=n(316),r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MuiThemeProviderOld=void 0;var s=r(n(4)),i=r(n(8)),o=r(n(13)),d=r(n(14)),u=r(n(15)),l=r(n(16)),_=r(n(17)),c=r(n(2)),m=r(n(1)),h=(r(n(9)),r(n(320))),f=n(10),y=a(n(54)),M=function(e){function t(e,n){var a;return(0,o.default)(this,t),(a=(0,u.default)(this,(0,l.default)(t).call(this))).broadcast=(0,h.default)(),a.outerTheme=y.default.initial(n),a.broadcast.setState(a.mergeOuterLocalTheme(e.theme)),a}return(0,_.default)(t,e),(0,d.default)(t,[{key:"getChildContext",value:function(){var e,t=this.props,n=t.disableStylesGeneration,a=t.sheetsCache,r=t.sheetsManager,s=this.context.muiThemeProviderOptions||{};return void 0!==n&&(s.disableStylesGeneration=n),void 0!==a&&(s.sheetsCache=a),void 0!==r&&(s.sheetsManager=r),e={},(0,i.default)(e,y.CHANNEL,this.broadcast),(0,i.default)(e,"muiThemeProviderOptions",s),e}},{key:"componentDidMount",value:function(){var e=this;this.unsubscribeId=y.default.subscribe(this.context,function(t){e.outerTheme=t,e.broadcast.setState(e.mergeOuterLocalTheme(e.props.theme))})}},{key:"componentDidUpdate",value:function(e){this.props.theme!==e.theme&&this.broadcast.setState(this.mergeOuterLocalTheme(this.props.theme))}},{key:"componentWillUnmount",value:function(){null!==this.unsubscribeId&&y.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"mergeOuterLocalTheme",value:function(e){return"function"==typeof e?e(this.outerTheme):this.outerTheme?(0,s.default)({},this.outerTheme,e):e}},{key:"render",value:function(){return this.props.children}}]),t}(c.default.Component);t.MuiThemeProviderOld=M,M.childContextTypes=(0,s.default)({},y.default.contextTypes,{muiThemeProviderOptions:m.default.object}),M.contextTypes=(0,s.default)({},y.default.contextTypes,{muiThemeProviderOptions:m.default.object}),f.ponyfillGlobal.__MUI_STYLES__||(f.ponyfillGlobal.__MUI_STYLES__={}),f.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider||(f.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider=M);var p=f.ponyfillGlobal.__MUI_STYLES__.MuiThemeProvider;t.default=p},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}},function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,a)}e.exports=n},function(e,t,n){"use strict";var a=n(319);function r(){}e.exports=function(){function e(e,t,n,r,s,i){if(i!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t),t.default=function(e){var t={},n=1,a=e;return{getState:function(){return a},setState:function(e){a=e;for(var n=Object.keys(t),r=0,s=n.length;r0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]this.options.maxCachedItems))if(a===r)this.getSlot(a)[e.id]=new h(e.start,e.end,e.id);else{this.getSlot(a)[e.id]=new h(e.start,this.slotEndDate(a),e.id),this.getSlot(r)[e.id]=new h(this.slotStartDate(r),e.end,e.id);for(var d=a+1;d=t.end||n[r].end<=t.start||a.push(new f(n[r].startt.end?t.end:n[r].end,r,this.eventMeta[r].summary));return a},e.prototype.getCachedEvents=function(e){for(var t=this.dateRangeToCacheKeys(e),n=t.start,a=t.end,r=this.getSlotEvents(n,e),s=n+1;sn&&r.push.apply(r,this.getSlotEvents(a,e)),r},e.prototype.sync=function(){return a(this,void 0,void 0,function(){var e,t,n,s=this;return r(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,this.token];case 1:return e=o.sent(),[4,m(this.calId,e,this.syncToken)];case 2:return t=o.sent(),[4,Promise.all(t.results.map(function(t){return t.start?Promise.resolve(t):function(e,t,n){return a(this,void 0,void 0,function(){return r(this,function(a){switch(a.label){case 0:return[4,fetch(d+"/calendars/"+e+"/events/"+t+"?"+u({access_token:n}),{method:"GET"})];case 1:return[2,a.sent().json()]}})})}(s.calId,t.id,e)}))];case 3:return o.sent().forEach(function(e){e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),"confirmed"===e.status?s.addEvent(e):"cancelled"===e.status&&s.removeEvent(e)}),this.syncToken=t.nextSyncToken,[3,5];case 4:if((n=o.sent())!==i.invalidSyncToken)throw n;return this.syncToken="",this.sync(),[3,5];case 5:return[2]}})})},e.prototype.getEvents=function(e,t,n){return void 0===n&&(n=!1),a(this,void 0,void 0,function(){var a,s,i,o,d,u,l,_=this;return r(this,function(r){switch(r.label){case 0:for(a=this.dateRangeToCacheKeys({start:e,end:t}),s={start:null,end:null},i=a.start;i<=a.end;i++)this.cache.has(i)||(null===s.start&&(s.start=i),s.end=i);return null===s.start?[3,9]:(console.assert(s.start<=s.end),s.end-s.start+1>this.options.largeQuery?(console.log("encounter large query, use direct fetch"),[4,this.token]):[3,3]);case 1:return o=r.sent(),[4,m(this.calId,o,null,e.toISOString(),t.toISOString())];case 2:return d=r.sent(),[2,{events:d.results.map(function(e){return console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),e}).filter(function(n){return!(n.start>=t||n.end<=e)}).map(function(n){return new f(n.startt?t:n.end,n.id,n.summary)}),changed:!1}];case 3:return console.log("fetching short event list"),[4,this.token];case 4:return u=r.sent(),[4,m(this.calId,u,null,this.slotStartDate(s.start).toISOString(),this.slotEndDate(s.end).toISOString())];case 5:return(l=r.sent()).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),_.addEvent(e,!0))}),""===this.syncToken&&(this.syncToken=l.nextSyncToken),n?[4,this.sync()]:[3,7];case 6:r.sent(),r.label=7;case 7:return[4,this.getCachedEvents({start:e,end:t})];case 8:return[2,{events:r.sent(),changed:!0}];case 9:return console.log("cache hit"),n?[4,this.sync()]:[3,11];case 10:r.sent(),r.label=11;case 11:return[4,this.getCachedEvents({start:e,end:t})];case 12:return[2,{events:r.sent(),changed:!1}]}})})},e}();t.GCalendar=y},function(e,t,n){"use strict";const a=n(591),r=Symbol("max"),s=Symbol("length"),i=Symbol("lengthCalculator"),o=Symbol("allowStale"),d=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),_=Symbol("lruList"),c=Symbol("cache"),m=Symbol("updateAgeOnGet"),h=()=>1;const f=(e,t,n)=>{const a=e[c].get(t);if(a){const t=a.value;if(y(e,t)){if(p(e,a),!e[o])return}else n&&(e[m]&&(a.value.now=Date.now()),e[_].unshiftNode(a));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[d])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[d]&&n>e[d]},M=e=>{if(e[s]>e[r])for(let t=e[_].tail;e[s]>e[r]&&null!==t;){const n=t.prev;p(e,t),t=n}},p=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[c].delete(n.key),e[_].removeNode(t)}};class L{constructor(e,t,n,a,r){this.key=e,this.value=t,this.length=n,this.now=a,this.maxAge=r||0}}const Y=(e,t,n,a)=>{let r=n.value;y(e,r)&&(p(e,n),e[o]||(r=void 0)),r&&t.call(a,r.value,r.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[r]=e.max||1/0;const t=e.length||h;if(this[i]="function"!=typeof t?h:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[d]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[m]=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[r]=e||1/0,M(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[d]=e,M(this)}get maxAge(){return this[d]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[i]&&(this[i]=e,this[s]=0,this[_].forEach(e=>{e.length=this[i](e.value,e.key),this[s]+=e.length})),M(this)}get lengthCalculator(){return this[i]}get length(){return this[s]}get itemCount(){return this[_].length}rforEach(e,t){t=t||this;for(let n=this[_].tail;null!==n;){const a=n.prev;Y(this,e,n,t),n=a}}forEach(e,t){t=t||this;for(let n=this[_].head;null!==n;){const a=n.next;Y(this,e,n,t),n=a}}keys(){return this[_].toArray().map(e=>e.key)}values(){return this[_].toArray().map(e=>e.value)}reset(){this[u]&&this[_]&&this[_].length&&this[_].forEach(e=>this[u](e.key,e.value)),this[c]=new Map,this[_]=new a,this[s]=0}dump(){return this[_].map(e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[_]}set(e,t,n){if((n=n||this[d])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const a=n?Date.now():0,o=this[i](t,e);if(this[c].has(e)){if(o>this[r])return p(this,this[c].get(e)),!1;const i=this[c].get(e).value;return this[u]&&(this[l]||this[u](e,i.value)),i.now=a,i.maxAge=n,i.value=t,this[s]+=o-i.length,i.length=o,this.get(e),M(this),!0}const m=new L(e,t,o,a,n);return m.length>this[r]?(this[u]&&this[u](e,t),!1):(this[s]+=m.length,this[_].unshift(m),this[c].set(e,this[_].head),M(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!y(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[_].tail;return e?(p(this,e),e.value):null}del(e){p(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.e||0;if(0===r)this.set(a.k,a.v);else{const e=r-t;e>0&&this.set(a.k,a.v,e)}}}prune(){this[c].forEach((e,t)=>f(this,t,!1))}}},function(e,t,n){"use strict";function a(e){var t=this;if(t instanceof a||(t=new a),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");a=this.head.next,n=this.head.value}for(var r=0;null!==a;r++)n=e(n,a.value,r),a=a.next;return n},a.prototype.reduceReverse=function(e,t){var n,a=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");a=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==a;r--)n=e(n,a.value,r),a=a.prev;return n},a.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},a.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},a.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new a;if(tthis.length&&(t=this.length);for(var r=0,s=this.head;null!==s&&rthis.length&&(t=this.length);for(var r=this.length,s=this.tail;null!==s&&r>t;r--)s=s.prev;for(;null!==s&&r>e;r--,s=s.prev)n.push(s.value);return n},a.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var a=n.prev;n.prev=n.next,n.next=a}return this.head=t,this.tail=e,this};try{n(592)(a)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,s){function i(e){try{d(a.next(e))}catch(e){s(e)}}function o(e){try{d(a.throw(e))}catch(e){s(e)}}function d(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(i,o)}d((a=a.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,a,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t)return[2,{patternGraphData:[],calendarGraphData:[]}];for(L in a=[],d=function(r){if(!i[r].enabled)return"continue";var s=n.filter(function(e){return e.cal.regex.test(i[r].name)});s.length>0&&a.push(o(r,e,t).then(function(e){return{id:r,events:e,filtered:s}}))},i)d(L);return[4,Promise.all(a)];case 1:for(u=r.sent(),l={},_={},c={},m={},u.forEach(function(e){l[e.id]=e.events,_[e.id]=e.filtered}),p=0;p0&&n.push({name:"Other",value:a,color:s.defaultChartColor}),n},p=0;p0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]this.options.maxCachedItems))if(a===r)this.getSlot(a)[e.id]=new h(e.start,e.end,e.id);else{this.getSlot(a)[e.id]=new h(e.start,this.slotEndDate(a),e.id),this.getSlot(r)[e.id]=new h(this.slotStartDate(r),e.end,e.id);for(var d=a+1;d=t.end||n[r].end<=t.start||a.push(new f(n[r].startt.end?t.end:n[r].end,r,this.eventMeta[r].summary));return a},e.prototype.getCachedEvents=function(e){for(var t=this.dateRangeToCacheKeys(e),n=t.start,a=t.end,r=this.getSlotEvents(n,e),s=n+1;sn&&r.push.apply(r,this.getSlotEvents(a,e)),r},e.prototype.sync=function(){return a(this,void 0,void 0,function(){var e,t,n,s,o=this;return r(this,function(l){switch(l.label){case 0:e=!1,l.label=1;case 1:return l.trys.push([1,5,,6]),[4,this.token];case 2:return t=l.sent(),[4,m(this.calId,t,this.syncToken)];case 3:return n=l.sent(),[4,Promise.all(n.results.map(function(e){return e.start?Promise.resolve(e):function(e,t,n){return a(this,void 0,void 0,function(){return r(this,function(a){switch(a.label){case 0:return[4,fetch(d+"/calendars/"+e+"/events/"+t+"?"+u({access_token:n}),{method:"GET"})];case 1:return[2,a.sent().json()]}})})}(o.calId,e.id,t)}))];case 4:return l.sent().forEach(function(t){t.start=new Date(t.start.dateTime),t.end=new Date(t.end.dateTime),"confirmed"===t.status?(o.addEvent(t),e=!0):"cancelled"===t.status&&(o.removeEvent(t),e=!0)}),this.syncToken!==n.nextSyncToken&&(e=!0),this.syncToken=n.nextSyncToken,[2,e];case 5:if((s=l.sent())===i.invalidSyncToken)return this.syncToken="",[2,this.sync()];throw s;case 6:return[2]}})})},e.prototype.getEvents=function(e,t,n){return void 0===n&&(n=!1),a(this,void 0,void 0,function(){var a,s,i,o,d,u,l,_,c,h=this;return r(this,function(r){switch(r.label){case 0:for(a=this.dateRangeToCacheKeys({start:e,end:t}),s={start:null,end:null},i=a.start;i<=a.end;i++)this.cache.has(i)||(null===s.start&&(s.start=i),s.end=i);return null===s.start?[3,9]:(console.assert(s.start<=s.end),s.end-s.start+1>this.options.largeQuery?(console.log("encounter large query, use direct fetch"),[4,this.token]):[3,3]);case 1:return o=r.sent(),[4,m(this.calId,o,null,e.toISOString(),t.toISOString())];case 2:return d=r.sent(),[2,{events:d.results.map(function(e){return console.assert(e.start),e.start=new Date(e.start.dateTime),e.end=new Date(e.end.dateTime),e}).filter(function(n){return!(n.start>=t||n.end<=e)}).map(function(n){return new f(n.startt?t:n.end,n.id,n.summary)}),changed:!1}];case 3:return console.log("fetching short event list"),[4,this.token];case 4:return u=r.sent(),[4,m(this.calId,u,null,this.slotStartDate(s.start).toISOString(),this.slotEndDate(s.end).toISOString())];case 5:return(l=r.sent()).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),h.addEvent(e,!0))}),""===this.syncToken&&(this.syncToken=l.nextSyncToken),n?[4,this.sync()]:[3,7];case 6:r.sent(),r.label=7;case 7:return[4,this.getCachedEvents({start:e,end:t})];case 8:return[2,{events:c=r.sent(),changed:!0}];case 9:return _=!1,n?[4,this.sync()]:[3,11];case 10:_=r.sent(),r.label=11;case 11:return[4,this.getCachedEvents({start:e,end:t})];case 12:return c=r.sent(),console.log("cache hit sync:"+n+" changed:"+_),[2,{events:c,changed:_}]}})})},e}();t.GCalendar=y},function(e,t,n){"use strict";const a=n(591),r=Symbol("max"),s=Symbol("length"),i=Symbol("lengthCalculator"),o=Symbol("allowStale"),d=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),_=Symbol("lruList"),c=Symbol("cache"),m=Symbol("updateAgeOnGet"),h=()=>1;const f=(e,t,n)=>{const a=e[c].get(t);if(a){const t=a.value;if(y(e,t)){if(p(e,a),!e[o])return}else n&&(e[m]&&(a.value.now=Date.now()),e[_].unshiftNode(a));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[d])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[d]&&n>e[d]},M=e=>{if(e[s]>e[r])for(let t=e[_].tail;e[s]>e[r]&&null!==t;){const n=t.prev;p(e,t),t=n}},p=(e,t)=>{if(t){const n=t.value;e[u]&&e[u](n.key,n.value),e[s]-=n.length,e[c].delete(n.key),e[_].removeNode(t)}};class L{constructor(e,t,n,a,r){this.key=e,this.value=t,this.length=n,this.now=a,this.maxAge=r||0}}const Y=(e,t,n,a)=>{let r=n.value;y(e,r)&&(p(e,n),e[o]||(r=void 0)),r&&t.call(a,r.value,r.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[r]=e.max||1/0;const t=e.length||h;if(this[i]="function"!=typeof t?h:t,this[o]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[d]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[m]=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[r]=e||1/0,M(this)}get max(){return this[r]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[d]=e,M(this)}get maxAge(){return this[d]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[i]&&(this[i]=e,this[s]=0,this[_].forEach(e=>{e.length=this[i](e.value,e.key),this[s]+=e.length})),M(this)}get lengthCalculator(){return this[i]}get length(){return this[s]}get itemCount(){return this[_].length}rforEach(e,t){t=t||this;for(let n=this[_].tail;null!==n;){const a=n.prev;Y(this,e,n,t),n=a}}forEach(e,t){t=t||this;for(let n=this[_].head;null!==n;){const a=n.next;Y(this,e,n,t),n=a}}keys(){return this[_].toArray().map(e=>e.key)}values(){return this[_].toArray().map(e=>e.value)}reset(){this[u]&&this[_]&&this[_].length&&this[_].forEach(e=>this[u](e.key,e.value)),this[c]=new Map,this[_]=new a,this[s]=0}dump(){return this[_].map(e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[_]}set(e,t,n){if((n=n||this[d])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const a=n?Date.now():0,o=this[i](t,e);if(this[c].has(e)){if(o>this[r])return p(this,this[c].get(e)),!1;const i=this[c].get(e).value;return this[u]&&(this[l]||this[u](e,i.value)),i.now=a,i.maxAge=n,i.value=t,this[s]+=o-i.length,i.length=o,this.get(e),M(this),!0}const m=new L(e,t,o,a,n);return m.length>this[r]?(this[u]&&this[u](e,t),!1):(this[s]+=m.length,this[_].unshift(m),this[c].set(e,this[_].head),M(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!y(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[_].tail;return e?(p(this,e),e.value):null}del(e){p(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.e||0;if(0===r)this.set(a.k,a.v);else{const e=r-t;e>0&&this.set(a.k,a.v,e)}}}prune(){this[c].forEach((e,t)=>f(this,t,!1))}}},function(e,t,n){"use strict";function a(e){var t=this;if(t instanceof a||(t=new a),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");a=this.head.next,n=this.head.value}for(var r=0;null!==a;r++)n=e(n,a.value,r),a=a.next;return n},a.prototype.reduceReverse=function(e,t){var n,a=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");a=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==a;r--)n=e(n,a.value,r),a=a.prev;return n},a.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},a.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},a.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new a;if(tthis.length&&(t=this.length);for(var r=0,s=this.head;null!==s&&rthis.length&&(t=this.length);for(var r=this.length,s=this.tail;null!==s&&r>t;r--)s=s.prev;for(;null!==s&&r>e;r--,s=s.prev)n.push(s.value);return n},a.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var a=n.prev;n.prev=n.next,n.next=a}return this.head=t,this.tail=e,this};try{n(592)(a)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,s){function i(e){try{d(a.next(e))}catch(e){s(e)}}function o(e){try{d(a.throw(e))}catch(e){s(e)}}function d(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(i,o)}d((a=a.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,a,r,s,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t)return[2,{patternGraphData:[],calendarGraphData:[]}];for(L in a=[],d=function(r){if(!i[r].enabled)return"continue";var s=n.filter(function(e){return e.cal.regex.test(i[r].name)});s.length>0&&a.push(o(r,e,t).then(function(e){return{id:r,events:e,filtered:s}}))},i)d(L);return[4,Promise.all(a)];case 1:for(u=r.sent(),l={},_={},c={},m={},u.forEach(function(e){l[e.id]=e.events,_[e.id]=e.filtered}),p=0;p0&&n.push({name:"Other",value:a,color:s.defaultChartColor}),n},p=0;p0&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]i&&(i=d.width),s.push(d.width)}for(u=0;u100&&(r-=this.totalPercentage-100,r=parseFloat(r.toFixed(this.options.precision))),"bar"===this.chart.config.type&&(this.barTotalPercentage[n]=this.totalPercentage)),this.percentage=r,r},t.prototype.getRenderInfo=function(e,t){return"bar"===this.chart.config.type?this.getBarRenderInfo(e,t):this.options.arc?this.getArcRenderInfo(e,t):this.getBaseRenderInfo(e,t)},t.prototype.getBaseRenderInfo=function(e,t){if("outside"===this.options.position||"border"===this.options.position){var n,r,a=e._view,o=a.startAngle+(a.endAngle-a.startAngle)/2,i=a.outerRadius/2;if("border"===this.options.position?r=(a.outerRadius-i)/2+i:"outside"===this.options.position&&(r=a.outerRadius-i+i+this.options.textMargin),n={x:a.x+Math.cos(o)*r,y:a.y+Math.sin(o)*r},"outside"===this.options.position){var s=this.options.textMargin+this.measureLabel(t).width/2;n.x+=n.x=i.left&&u<=i.right&&d>=i.top&&d<=i.bottom)return!1}s=[[i.left,i.top],[i.left,i.bottom],[i.right,i.top],[i.right,i.bottom]];for(l=0;l=e&&u<=t&&d>=n&&d<=r)return!1}}return a.push({left:e,right:t,top:n,bottom:r}),!0},t.prototype.measureLabel=function(e){if("object"==typeof e)return{width:e.width,height:e.height};for(var t=0,n=e.split("\n"),r=0;rt&&(t=a.width)}return{width:t,height:this.options.fontSize*n.length}},t.prototype.loadImage=function(e){var t=new Image;return t.src=e.src,t.width=e.width,t.height=e.height,t},Chart.plugins.register({id:"labels",beforeDatasetsUpdate:function(n,r){if(e[n.config.type]){Array.isArray(r)||(r=[r]);var a=r.length;n._labels&&a===n._labels.length||(n._labels=r.map(function(){return new t}));for(var o=!1,i=0,s=0;si&&(i=u)}}o&&(n.chartArea.top+=i,n.chartArea.bottom-=i)}},afterDatasetUpdate:function(t,n,r){e[t.config.type]&&t._labels.forEach(function(e){e.args[n.index]=n})},beforeDraw:function(t){e[t.config.type]&&t._labels.forEach(function(e){e.barTotalPercentage={}})},afterDatasetsDraw:function(t){e[t.config.type]&&t._labels.forEach(function(e){e.render()})}})}else console.error("Can not find Chart object.");function t(){this.renderToDataset=this.renderToDataset.bind(this)}}()},function(e,t,n){"use strict";var r=n(535),a=n(538),o=[].slice,i=["keyword","gray","hex"],s={};Object.keys(a).forEach(function(e){s[o.call(a[e].labels).sort().join("")]=e});var l={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in i&&(t=null),t&&!(t in a))throw new Error("Unknown model: "+t);var n,d;if(void 0===e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var c=r.get(e);if(null===c)throw new Error("Unable to parse color from string: "+e);this.model=c.model,d=a[this.model].channels,this.color=c.value.slice(0,d),this.valpha="number"==typeof c.value[d]?c.value[d]:1}else if(e.length){this.model=t||"rgb",d=a[this.model].channels;var h=o.call(e,0,d);this.color=f(h,d),this.valpha="number"==typeof e[d]?e[d]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=p.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var y=a[this.model].labels,v=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){var n=e.rgb(),r=this.rgb(),a=void 0===t?.5:t,o=2*a-1,i=n.alpha()-r.alpha(),s=((o*i==-1?o:(o+i)/(1+o*i))+1)/2,l=1-s;return u.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*a+r.alpha()*(1-a))}},Object.keys(a).forEach(function(e){if(-1===i.indexOf(e)){var t=a[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length)return new u(arguments,e);var n,r="number"==typeof arguments[t]?t:this.valpha;return new u((n=a[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(r),e)},u[e]=function(n){return"number"==typeof n&&(n=f(o.call(arguments),t)),new u(n,e)}}}),e.exports=u},function(e,t,n){var r=n(220),a=n(536),o={};for(var i in r)r.hasOwnProperty(i)&&(o[r[i]]=i);var s=e.exports={to:{},get:{}};function l(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var i=2*n;o[n]=parseInt(t.slice(i,i+2),16)}a&&(o[3]=Math.round(parseInt(a,16)/255*100)/100)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);a&&(o[3]=Math.round(parseInt(a+a,16)/255*100)/100)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(o=r[t[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=l(o[n],0,255);return o[3]=l(o[3],0,1),o},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,l(parseFloat(t[2]),0,100),l(parseFloat(t[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},s.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return o[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(537),a=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){var r=n(264),a=n(539),o={};Object.keys(r).forEach(function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=a(e);Object.keys(t).forEach(function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=o},function(e,t,n){var r=n(264);function a(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,a=0;a1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in l))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===l[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return l[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(1))&&r.__esModule?r:{default:r};function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2?n-2:0),i=2;i1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)},t.isAdornedStart=function(e){return e.startAdornment}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(2)).default.createContext();t.default=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(791))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(792))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitionProps=function(e,t){var n=e.timeout,r=e.style,a=void 0===r?{}:r;return{duration:a.transitionDuration||"number"==typeof n?n:n[t.mode],delay:a.transitionDelay}},t.reflow=void 0;t.reflow=function(e){return e.scrollTop}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(2)).default.createContext({});t.default=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(837))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=r(n(842))},function(e,t,n){var r=n(352);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(581)("keys"),a=n(555);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(219),a=n(242),o=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(554)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports={}},function(e,t,n){var r=n(394),a=n(874),o=n(582),i=n(580)("IE_PROTO"),s=function(){},l=function(){var e,t=n(664)("iframe"),r=o.length;for(t.style.display="none",n(875).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("