-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimejs.6fd0fdf8ab7df3179d21.js
More file actions
1 lines (1 loc) · 62.9 KB
/
animejs.6fd0fdf8ab7df3179d21.js
File metadata and controls
1 lines (1 loc) · 62.9 KB
1
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(t){return!!t&&!!t[G]}function a(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return!e||e===Object.prototype}(t)||Array.isArray(t)||!!t[Y]||!!t.constructor[Y]||d(t)||p(t))}function i(t,e,n){void 0===n&&(n=!1),0===u(t)?(n?Object.keys:K)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function u(t){var e=t[G];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:d(t)?2:p(t)?3:0}function c(t,e){return 2===u(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){return 2===u(t)?t.get(e):t[e]}function l(t,e,n){var r=u(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function f(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t){return q&&t instanceof Map}function p(t){return W&&t instanceof Set}function h(t){return t.o||t.t}function v(t){if(Array.isArray(t))return t.slice();var e=X(t);delete e[G];for(var n=K(e),r=0;r<n.length;r++){var o=n[r],a=e[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function y(t,e){Object.isFrozen(t)||o(t)||!a(t)||(u(t)>1&&(t.set=t.add=t.clear=t.delete=m),Object.freeze(t),e&&i(t,(function(t,e){return y(e,!0)}),!0))}function m(){r(2)}function g(t){var e=$[t];return e||r(19,t),e}function b(t,e){$[t]=e}function w(){return R}function O(t,e){e&&(g("Patches"),t.u=[],t.s=[],t.v=e)}function E(t){x(t),t.p.forEach(P),t.p=null}function x(t){t===R&&(R=t.l)}function S(t){return R={p:[],l:R,h:t,m:!0,_:0}}function P(t){var e=t[G];0===e.i||1===e.i?e.j():e.O=!0}function k(t,e){e._=e.p.length;var n=e.p[0],o=void 0!==t&&t!==n;return e.h.g||g("ES5").S(e,t,o),o?(n[G].P&&(E(e),r(4)),a(t)&&(t=C(e,t),e.l||A(e,t)),e.u&&g("Patches").M(n[G],t,e.u,e.s)):t=C(e,n,[]),E(e),e.u&&e.v(e.u,e.s),t!==U?t:void 0}function C(t,e,n){if(null==(r=e)||"object"!=typeof r||Object.isFrozen(r))return e;var r,o=e[G];if(!o)return i(e,(function(r,a){return j(t,o,e,r,a,n)}),!0),e;if(o.A!==t)return e;if(!o.P)return A(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=4===o.i||5===o.i?o.o=v(o.k):o.o;i(a,(function(e,r){return j(t,o,a,e,r,n)})),A(t,a,!1),n&&t.u&&g("Patches").R(o,n,t.u,t.s)}return o.o}function j(t,e,n,r,i,u){if(o(i)){var s=C(t,i,u&&e&&3!==e.i&&!c(e.D,r)?u.concat(r):void 0);if(l(n,r,s),!o(s))return;t.m=!1}if(a(i)&&!Object.isFrozen(i)){if(!t.h.N&&t._<1)return;C(t,i),e&&e.A.l||A(t,i)}}function A(t,e,n){void 0===n&&(n=!1),t.h.N&&t.m&&y(e,n)}function N(t,e){var n=t[G];return(n?h(n):t)[e]}function T(t){t.P||(t.P=!0,t.l&&T(t.l))}function L(t){t.o||(t.o=v(t.t))}function M(t,e,n){var r=d(e)?g("MapSet").T(e,n):p(e)?g("MapSet").F(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:w(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},o=r,a=Q;n&&(o=[r],a=H);var i=Proxy.revocable(o,a),u=i.revoke,c=i.proxy;return r.k=c,r.j=u,c}(e,n):g("ES5").J(e,n);return(n?n.A:w()).p.push(r),r}function I(t){return o(t)||r(22,t),function t(e){if(!a(e))return e;var n,r=e[G],o=u(e);if(r){if(!r.P&&(r.i<4||!g("ES5").K(r)))return r.t;r.I=!0,n=_(e,o),r.I=!1}else n=_(e,o);return i(n,(function(e,o){r&&s(r.t,e)===o||l(n,e,t(o))})),3===o?new Set(n):n}(t)}function _(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return v(t)}function D(){function t(t,e){var n=a[t];return n?n.enumerable=e:a[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[G];return Q.get(e,t)},set:function(e){var n=this[G];Q.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][G];if(!o.P)switch(o.i){case 5:r(o)&&T(o);break;case 4:n(o)&&T(o)}}}function n(t){for(var e=t.t,n=t.k,r=K(n),o=r.length-1;o>=0;o--){var a=r[o];if(a!==G){var i=e[a];if(void 0===i&&!c(e,a))return!0;var u=n[a],s=u&&u[G];if(s?s.t!==i:!f(u,i))return!0}}var l=!!e[G];return r.length!==K(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);return!(!n||n.get)}var a={};b("ES5",{J:function(e,n){var r=Array.isArray(e),o=function(e,n){var r=X(n);e&&delete r.length,delete r[G];for(var o=K(r),a=0;a<o.length;a++){var i=o[a];r[i]=t(i,e||!!r[i].enumerable)}if(e){var u=Array(n.length);return Object.defineProperties(u,r),u}return Object.create(Object.getPrototypeOf(n),r)}(r,e),a={i:r?5:4,A:n?n.A:w(),P:!1,I:!1,D:{},l:n,t:e,k:o,o:null,O:!1,C:!1};return Object.defineProperty(o,G,{value:a,writable:!0}),o},S:function(t,n,a){a?o(n)&&n[G].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[G];if(n){var o=n.t,a=n.k,u=n.D,s=n.i;if(4===s)i(a,(function(e){e!==G&&(void 0!==o[e]||c(o,e)?u[e]||t(a[e]):(u[e]=!0,T(n)))})),i(o,(function(t){void 0!==a[t]||c(a,t)||(u[t]=!1,T(n))}));else if(5===s){if(r(n)&&(T(n),u.length=!0),a.length<o.length)for(var l=a.length;l<o.length;l++)u[l]=!1;else for(var f=o.length;f<a.length;f++)u[f]=!0;for(var d=Math.min(a.length,o.length),p=0;p<d;p++)void 0===u[p]&&t(a[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}n.d(e,"b",(function(){return Bt})),n.d(e,"c",(function(){return Rt}));var B,R,F="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),q="undefined"!=typeof Map,W="undefined"!=typeof Set,z="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,U=F?Symbol("immer-nothing"):((B={})["immer-nothing"]=!0,B),Y=F?Symbol("immer-draftable"):"__$immer_draftable",G=F?Symbol("immer-state"):"__$immer_state",K=("undefined"!=typeof Symbol&&Symbol.iterator,"undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames),X=Object.getOwnPropertyDescriptors||function(t){var e={};return K(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},$={},Q={get:function(t,e){if(e===G)return t;var n=h(t);if(!c(n,e))return function(t,e,n){if(n in e)for(var r=Object.getPrototypeOf(e);r;){var o,a=Object.getOwnPropertyDescriptor(r,n);if(a)return"value"in a?a.value:null===(o=a.get)||void 0===o?void 0:o.call(t.k);r=Object.getPrototypeOf(r)}}(t,n,e);var r=n[e];return t.I||!a(r)?r:r===N(t.t,e)?(L(t),t.o[e]=M(t.A.h,r,t)):r},has:function(t,e){return e in h(t)},ownKeys:function(t){return Reflect.ownKeys(h(t))},set:function(t,e,n){if(t.D[e]=!0,!t.P){if(f(n,N(h(t),e))&&void 0!==n)return!0;L(t),T(t)}return t.o[e]=n,!0},deleteProperty:function(t,e){return void 0!==N(t.t,e)||e in t.t?(t.D[e]=!1,L(t),T(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=h(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){r(12)}},H={};i(Q,(function(t,e){H[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),H.deleteProperty=function(t,e){return Q.deleteProperty.call(this,t[0],e)},H.set=function(t,e,n){return Q.set.call(this,t[0],e,n,t[0])};var V=new(function(){function t(t){this.g=z,this.N=!1,"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var e=t.prototype;return e.produce=function(t,e,n){if("function"==typeof t&&"function"!=typeof e){var o=e;e=t;var i=this;return function(t){var n=this;void 0===t&&(t=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(t,(function(t){var r;return(r=e).call.apply(r,[n,t].concat(a))}))}}var u;if("function"!=typeof e&&r(6),void 0!==n&&"function"!=typeof n&&r(7),a(t)){var c=S(this),s=M(this,t,void 0),l=!0;try{u=e(s),l=!1}finally{l?E(c):x(c)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(t){return O(c,n),k(t,c)}),(function(t){throw E(c),t})):(O(c,n),k(u,c))}if(!t||"object"!=typeof t){if((u=e(t))===U)return;return void 0===u&&(u=t),this.N&&y(u,!0),u}r(21,t)},e.produceWithPatches=function(t,e){var n,r,o=this;return"function"==typeof t?function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return o.produceWithPatches(e,(function(e){return t.apply(void 0,[e].concat(r))}))}:[this.produce(t,e,(function(t,e){n=t,r=e})),n,r]},e.createDraft=function(t){a(t)||r(8),o(t)&&(t=I(t));var e=S(this),n=M(this,t,void 0);return n[G].C=!0,x(e),n},e.finishDraft=function(t,e){var n=(t&&t[G]).A;return O(n,e),k(void 0,n)},e.setAutoFreeze=function(t){this.N=t},e.setUseProxies=function(t){t&&!z&&r(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}var a=g("Patches").$;return o(t)?a(t,e):this.produce(t,(function(t){return a(t,e.slice(n+1))}))},t}()),Z=V.produce,J=(V.produceWithPatches.bind(V),V.setAutoFreeze.bind(V),V.setUseProxies.bind(V),V.applyPatches.bind(V),V.createDraft.bind(V),V.finishDraft.bind(V),Z),tt=n(10),et=function(){return Math.random().toString(36).substring(7).split("").join(".")},nt={INIT:"@@redux/INIT"+et(),REPLACE:"@@redux/REPLACE"+et(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+et()}};function rt(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ot(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(ot)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var o=t,a=e,i=[],u=i,c=!1;function s(){u===i&&(u=i.slice())}function l(){if(c)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(c)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return s(),u.push(t),function(){if(e){if(c)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,s();var n=u.indexOf(t);u.splice(n,1),i=null}}}function d(t){if(!rt(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,a=o(a,t)}finally{c=!1}for(var e=i=u,n=0;n<e.length;n++){(0,e[n])()}return t}function p(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");o=t,d({type:nt.REPLACE})}function h(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[tt.a]=function(){return this},t}return d({type:nt.INIT}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:p})[tt.a]=h,r}function at(t,e){var n=e&&e.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function it(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];0,"function"==typeof t[o]&&(n[o]=t[o])}var a,i=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:nt.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:nt.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+nt.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(t){a=t}return function(t,e){if(void 0===t&&(t={}),a)throw a;for(var r=!1,o={},u=0;u<i.length;u++){var c=i[u],s=n[c],l=t[c],f=s(l,e);if(void 0===f){var d=at(c,e);throw new Error(d)}o[c]=f,r=r||f!==l}return(r=r||i.length!==Object.keys(t).length)?o:t}}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(n,!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ft(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=e.map((function(t){return t(o)}));return st({},n,{dispatch:r=lt.apply(void 0,a)(n.dispatch)})}}}function dt(t,e){return t===e}function pt(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}function ht(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return typeof t})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return e}!function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r]}((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dt,n=null,r=null;return function(){return pt(e,n,arguments)||(r=t.apply(null,arguments)),n=arguments,r}}));function vt(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}var yt=vt();yt.withExtraArgument=vt;var mt=yt;function gt(){return(gt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function bt(t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wt(t,e){return(wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Et(t,e,n){return(Et=Ot()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&wt(o,n.prototype),o}).apply(null,arguments)}function xt(t){var e="function"==typeof Map?new Map:void 0;return(xt=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Et(t,arguments,bt(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wt(r,t)})(t)}var St="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?lt:lt.apply(null,arguments)};function Pt(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var kt=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.concat=function(){for(var e,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return Et(r,(e=t.prototype.concat).call.apply(e,[this].concat(o)))},o.prepend=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?Et(r,e[0].concat(this)):Et(r,e.concat(this))},r}(xt(Array));function Ct(){return function(t){return function(t){void 0===t&&(t={});var e=t,n=e.thunk,r=void 0===n||n,o=(e.immutableCheck,e.serializableCheck,new kt);r&&(!function(t){return"boolean"==typeof t}(r)?o.push(mt.withExtraArgument(r.extraArgument)):o.push(mt));0;return o}(t)}}function jt(t,e){function n(){if(e){var n=e.apply(void 0,arguments);if(!n)throw new Error("prepareAction did not return an object");return gt({type:t,payload:n.payload},"meta"in n&&{meta:n.meta},{},"error"in n&&{error:n.error})}return{type:t,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function At(t){var e,n={},r=[],o={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=e,o},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[n,r,e]}function Nt(t){var e=t.name,n=t.initialState;if(!e)throw new Error("`name` is a required option for createSlice");var r=t.reducers||{},i=void 0===t.extraReducers?[]:"function"==typeof t.extraReducers?At(t.extraReducers):[t.extraReducers],u=i[0],c=void 0===u?{}:u,s=i[1],l=void 0===s?[]:s,f=i[2],d=void 0===f?void 0:f,p=Object.keys(r),h={},v={},y={};p.forEach((function(t){var n,o,a=r[t],i=e+"/"+t;"reducer"in a?(n=a.reducer,o=a.prepare):n=a,h[t]=n,v[i]=n,y[t]=o?jt(i,o):jt(i)}));var m=function(t,e,n,r){void 0===n&&(n=[]);var i="function"==typeof e?At(e):[e,n,r],u=i[0],c=i[1],s=i[2];return function(e,n){void 0===e&&(e=t);var r=[u[n.type]].concat(c.filter((function(t){return(0,t.matcher)(n)})).map((function(t){return t.reducer})));return 0===r.filter((function(t){return!!t})).length&&(r=[s]),r.reduce((function(t,e){if(e){if(o(t)){var r=e(t,n);return void 0===r?t:r}if(a(t))return J(t,(function(t){return e(t,n)}));var i=e(t,n);if(void 0===i)throw Error("A case reducer on a non-draftable value must not return undefined");return i}return t}),e)}}(n,gt({},c,{},v),l,d);return{name:e,reducer:m,actions:y,caseReducers:h}}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));D();var Tt=Nt({name:"stopwatch",initialState:{active:!1,time:["00","00","00"],saved:[],savedCurrentLaps:[]},reducers:{titleChanged:function(t,e){t.savedCurrentLaps=t.savedCurrentLaps.map((function(t){return t.id===e.payload.first&&t.savedId===e.payload.last&&(t.title=e.payload.title),t}))},totalLapsChanges:function(t,e){t.savedCurrentLaps=e.payload.lapsObj},savedCurrentLaps:function(t,e){t.savedCurrentLaps.push(e.payload.laps)},cleanSavedLaps:function(t,e){t.savedCurrentLaps=[]},activeStopwatch:function(t,e){t.active=!0},stopStopwatch:function(t,e){t.active=!1},addTime:function(t,e){t.time=e.payload.time},addSaved:function(t,e){t.saved.push({id:e.payload.id,totalTime:e.payload.totalTime,laps:e.payload.laps})},removedSaved:function(t,e){t.saved=[]}}}),Lt=Nt({name:"ui",initialState:{sidebarOpen:!1},reducers:{sidebarOpens:function(t,e){t.sidebarOpen=e.payload.status},sidebarClosed:function(t,e){t.sidebarOpen=e.payload.status}}}),Mt=it({stopwatch:Tt.reducer,ui:Lt.reducer}),It=Tt.actions,_t=Lt.actions,Dt=function(t){var e,n=Ct(),r=t||{},o=r.reducer,a=void 0===o?void 0:o,i=r.middleware,u=void 0===i?n():i,c=r.devTools,s=void 0===c||c,l=r.preloadedState,f=void 0===l?void 0:l,d=r.enhancers,p=void 0===d?void 0:d;if("function"==typeof a)e=a;else{if(!Pt(a))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=it(a)}var h=ft.apply(void 0,"function"==typeof u?u(n):u),v=lt;s&&(v=St(gt({trace:!1},"object"==typeof s&&s)));var y=[h];return Array.isArray(p)?y=[h].concat(p):"function"==typeof p&&(y=p(y)),ot(e,f,v.apply(void 0,y))}({reducer:Mt}),Bt=(e.a=Dt,It),Rt=_t},function(t,e,n){"use strict";n.r(e);var r=n(5),o=n.n(r),a=n(6),i=n.n(a),u=n(3),c=n.n(u),s=n(4),l=n.n(s),f=n(7),d=n(0),p=n(8),h=n(2),v=n.p+"plus-solid.5708734c8d4397179be1319ef83ff480.png",y=n.p+"trash-alt-solid.c5b16de88ec27a065583556eced1bfc2.png",m=new(function(){function t(){c()(this,t),this.clickPointers={},this.lapsArray=[]}return l()(t,[{key:"open",value:function(t){var e="30%";window.innerWidth>850?e="30%":window.innerWidth<=722&&window.innerWidth>560?e="41%":window.innerWidth<=560&&(e="100%"),Object(f.a)({targets:t,width:e,right:"0%",easing:"easeInOutQuad",duration:500})}},{key:"adding_animation",value:function(){var t=document.getElementsByTagName("aside")[0];window.addEventListener("resize",(function(){window.innerWidth>850?(t.style.width="30%",t.style.right="-30%"):window.innerWidth<=722&&window.innerWidth>560?(t.style.width="41%",t.style.right="-41%"):window.innerWidth<=560&&(t.style.width="100%",t.style.right="-100%")}))}},{key:"close",value:function(t){var e="-30%";window.innerWidth>850?e="-30%":window.innerWidth<=722&&window.innerWidth>560?e="-41%":window.innerWidth<=560&&(e="-100%"),Object(f.a)({targets:t,right:e,easing:"easeInOutQuad",duration:500}),d.a.dispatch(d.c.sidebarOpens({status:!1}))}},{key:"openCloseSidebar",value:function(t){d.a.getState().ui.sidebarOpen?this.open(t):this.close(t)}},{key:"canClose",value:function(t){var e=document.getElementsByClassName("close")[0];if(d.a.getState().ui.sidebarOpen){var n=window.innerWidth-document.getElementsByTagName("aside")[0].offsetWidth,r=window.innerHeight;return t.pageY<r&&t.pageX<n||t.target===e?{canClose:!0,sidebar:!0}:{canClose:!1,sidebar:!0}}return{canClose:!1,sidebar:!1}}},{key:"checkPosition",value:function(t,e){this.clickPointers=t.canClose(e)}},{key:"getSidebarRecords",value:function(){return new Promise((function(t,e){var n=d.a.getState().stopwatch.saved;n?t(n):e("Fail to get stopwatch value")}))}},{key:"updateSidebarNoElement",value:function(){var t=document.createElement("ul");t.setAttribute("class","updated-ul");var e=document.createElement("li"),n=document.createTextNode("No Saved Data");return e.appendChild(n),e.setAttribute("class","no-data"),t.appendChild(e),t}},{key:"updateSidebarElement",value:function(t){var e,n,r,o,a,i,u,c,s,l,f;document.getElementsByClassName("saved-wapper").length&&(l=document.getElementsByClassName("saved-wapper")[0]).remove(),(l=document.createElement("div")).setAttribute("class","saved-wapper");for(var d=0;d<t.length;d++){if(e=document.createElement("div"),n=document.createElement("div"),a=document.createElement("div"),r=document.createElement("h2"),o=document.createTextNode("".concat(t[d].totalTime[0],": ").concat(t[d].totalTime[1],": ").concat(t[d].totalTime[2])),i=document.createElement("h2"),u=document.createTextNode("Total Time: ".concat(t[d].totalTime[0],": ").concat(t[d].totalTime[1],": ").concat(t[d].totalTime[2])),c=document.createElement("h2"),s=document.createTextNode("Laps: "),e.setAttribute("class","saved-items"),n.setAttribute("class","items-top"),a.setAttribute("class","items-bottom"),r.setAttribute("class","items-headding_title"),i.setAttribute("class","bottom-click"),c.setAttribute("class","laps_title"),r.appendChild(o),n.appendChild(r),i.appendChild(u),a.appendChild(i),c.appendChild(s),a.appendChild(c),t[d].laps.length>0)for(var p=0;p<t[d].laps.length;p++)(f=document.createElement("p")).setAttribute("class","laps_items"),f.appendChild(document.createTextNode("Laps item ".concat(t[d].laps[p].lapTimes[0],": ").concat(t[d].laps[p].lapTimes[1],": ").concat(t[d].laps[p].lapTimes[2]))),a.appendChild(f);else{var h=document.createElement("p");h.setAttribute("class","laps_items"),h.appendChild(document.createTextNode("No Laps Found!")),a.appendChild(h)}e.appendChild(n),e.appendChild(a),l.appendChild(e)}return l}},{key:"change",value:function(t){var e=document.querySelector("aside > div.bottom"),n=document.getElementsByClassName("updated-ul")[0],r=document.getElementsByClassName("saved-wapper")[0];0===t.length?n?(n.remove(),r&&r.remove(),e.appendChild(this.updateSidebarNoElement())):(r&&r.remove(),e.appendChild(this.updateSidebarNoElement())):r?(r.remove(),n&&remove.custom(),e.appendChild(this.updateSidebarElement(t))):(n&&n.remove(),e.appendChild(this.updateSidebarElement(t)))}},{key:"updateSidebarDOM",value:function(){var t=this;return function(){var e=i()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getSidebarRecords().then((function(e){t.change(e)})).catch((function(t){h.a.bugAdded(t.message)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),!0}},{key:"updateLapsNone",value:function(t){var e=document.getElementsByClassName("no-laps")[0];e&&e.remove();var n=document.createElement("p");n.setAttribute("class","no-laps");var r=document.createTextNode("No Laps Yet");n.appendChild(r),t.appendChild(n)}},{key:"updateLapsItems",value:function(){for(var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=0;r<e.length;r++)(t=document.createElement("div")).setAttribute("class","laps-items"),t.innerHTML='\n <div class="top">\n <div class="laps-left">\n <ul>\n <li>'.concat(e[r].lapTimes[0],": ").concat(e[r].lapTimes[1],": ").concat(e[r].lapTimes[2],'</li>\n </ul>\n </div>\n <div class="laps-middle">\n <p class="text">').concat(e[r].title?e[r].title:"",'</p>\n </div>\n <div class="laps-right">\n <img src=').concat(v,' value="').concat(e[r].id,",").concat(e[r].savedId,'" class="laps-plus" alt="plus">\n\t\t\t\t <img src=').concat(y,' value="').concat(e[r].id,",").concat(e[r].savedId,'" class="laps-delete" alt="delete">\n </div>\n </div>\n <div class="bottom">\n <hr color="#dedede" width="80%">\n </div>\n '),n.appendChild(t)}},{key:"customForLoop",value:function(t){for(var e,n=0;n<t.length;n++)e?e+=t[n]:e=t[n];return e}},{key:"splitsArray",value:function(t,e){var n=t.split(""),r=n.indexOf(","),o=n.slice(r+1);return[e(n.slice(0,r)),e(o)]}},{key:"askQuestion",value:function(){var t=document.getElementsByTagName("body")[0],e=document.createElement("div");e.setAttribute("class","ask-question");var n=document.createElement("p");n.setAttribute("class","question-title"),n.appendChild(document.createTextNode("Enter your title")),e.appendChild(n);var r=document.createElement("input");r.setAttribute("class","question-input"),r.setAttribute("id","question-input"),r.setAttribute("placeholder","Enter Your Title"),r.setAttribute("type","text"),e.appendChild(r);var o=document.createElement("div");o.setAttribute("class","button-wapper");var a=document.createElement("button");a.setAttribute("class","question-submit"),a.setAttribute("value","submit"),a.appendChild(document.createTextNode("SUBMIT")),o.appendChild(a);var i=document.createElement("button");i.setAttribute("class","question-reject"),i.setAttribute("value","reject"),i.appendChild(document.createTextNode("REJECT")),o.appendChild(i),e.appendChild(o),t.appendChild(e)}},{key:"removeAskQuestion",value:function(){var t=document.getElementsByClassName("ask-question")[0];t&&t.remove()}},{key:"questionsError",value:function(){var t=document.getElementsByClassName("ask-question")[0],e=document.createElement("small");e.setAttribute("class","question-error"),e.appendChild(document.createTextNode("Title can't be empty")),t.appendChild(e)}},{key:"clearLaps",value:function(){var t=this.splitsArray,e=this.customForLoop,n=this.normalUpdateLaps,r=this.updateLapsItems,a=this.updateLapsNone,u=this.askQuestion,c=this.questionsError,s=this.removeAskQuestion;!function l(){document.getElementsByClassName("bottoms-laps")[0].remove();var f=document.createElement("div");f.setAttribute("class","bottoms-laps"),f.onclick=function(f){if("laps-plus"===f.target.className)if(d.a.getState().stopwatch.active){(function(){var p=i()(o.a.mark((function i(){return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,new Promise((function(t,e){u();var n=document.getElementsByTagName("input").namedItem("question-input"),r=document.getElementsByClassName("question-submit")[0],o=document.getElementsByClassName("question-reject")[0];r.onclick=function(e){""===n.value.trim()?(c(),e.preventDefault()):t(n.value)},o.onclick=function(){e({name:"closed"})}})).then((function(o){if(s(),d.a.getState().stopwatch.active){var i=f.target.attributes[1].value,u=t(i,e),c=Number(u[0]),p=Number(u[1]);d.a.dispatch(d.b.titleChanged({first:c,last:p,title:o})),l(),n(d.a.getState().stopwatch.savedCurrentLaps,r,a)}else h.a.bugAdded("title can be update when stopwatch is started!")})).catch((function(t){s()}));case 2:case"end":return o.stop()}}),i)})));return function(){return p.apply(this,arguments)}})()()}else h.a.bugAdded("title can be update when stopwatch is started!");else if("laps-delete"===f.target.className)if(d.a.getState().stopwatch.active){var v=f.target.attributes[1].value,y=t(v,e),m=Number(y[0]),g=Number(y[1]),b=d.a.getState().stopwatch.savedCurrentLaps.filter((function(t){return!(t.id===m&&t.savedId===g)}));d.a.dispatch(d.b.totalLapsChanges({lapsObj:b})),l(),n(b,r,a),p.a.changes(b)}else h.a.bugAdded("only delete when stopwatch is started!")};var v=document.createElement("p");v.setAttribute("class","no-laps"),v.appendChild(document.createTextNode("No Laps Yet")),f.appendChild(v),document.getElementsByTagName("content")[0].appendChild(f)}()}},{key:"saves",value:function(){p.a.changes(this.newLapsArray)}},{key:"normalUpdateLaps",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=document.getElementsByClassName("bottoms-laps")[0],o=document.getElementsByClassName("no-laps")[0];t.length>0?(o&&o.remove(),e(t,r)):n(r)}},{key:"updateLaps",value:function(t){var e=[];e.push(t),this.normalUpdateLaps(e,this.updateLapsItems,this.updateLapsNone)}},{key:"updateState",value:function(t){this.lapsArray=t}}]),t}());e.default=m},function(t,e,n){"use strict";var r=n(3),o=n.n(r),a=n(4),i=n.n(a),u=n(7),c=new(function(){function t(){o()(this,t)}return i()(t,[{key:"deleteBug",value:function(){var t=document.getElementsByClassName("bug-wapper")[0];t&&t.remove()}},{key:"uiAdded",value:function(t){var e=this.deleteBug,n=document.getElementsByTagName("body")[0],r=document.createElement("div");r.setAttribute("class","bug-wapper");var o=document.createElement("div");o.setAttribute("class","bug-top");var a=document.createElement("p");a.appendChild(document.createTextNode(t)),o.appendChild(a);var i=document.createElement("div");i.setAttribute("class","bug-bottom");var c=document.createElement("div");c.setAttribute("class","bug-process"),i.appendChild(c),r.appendChild(o),r.appendChild(i),n.appendChild(r);var s={counts:"0%"};r.onclick=function(){e()},Object(u.a)({targets:s,counts:"100%",round:1,easing:"linear",duration:5e3,update:function(){c.style.width=s.counts},complete:function(){e(r)}})}},{key:"main",value:function(t){this.uiAdded(t)}},{key:"bugAdded",value:function(t){this.main(t)}}]),t}());e.a=c},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e,n){t.exports=n(14)},function(t,e){function n(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function u(t){n(i,o,a,u,c,"next",t)}function c(t){n(i,o,a,u,c,"throw",t)}u(void 0)}))}}},function(t,e,n){"use strict";var r={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},o={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},a=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],i={CSS:{},springs:{}};function u(t,e,n){return Math.min(Math.max(t,e),n)}function c(t,e){return t.indexOf(e)>-1}function s(t,e){return t.apply(null,e)}var l={arr:function(t){return Array.isArray(t)},obj:function(t){return c(Object.prototype.toString.call(t),"Object")},pth:function(t){return l.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||l.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return l.hex(t)||l.rgb(t)||l.hsl(t)},key:function(t){return!r.hasOwnProperty(t)&&!o.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function f(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function d(t,e){var n=f(t),r=u(l.und(n[0])?1:n[0],.1,100),o=u(l.und(n[1])?100:n[1],.1,100),a=u(l.und(n[2])?10:n[2],.1,100),c=u(l.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/r),d=a/(2*Math.sqrt(o*r)),p=d<1?s*Math.sqrt(1-d*d):0,h=d<1?(d*s-c)/p:-c+s;function v(t){var n=e?e*t/1e3:t;return n=d<1?Math.exp(-n*d*s)*(1*Math.cos(p*n)+h*Math.sin(p*n)):(1+h*n)*Math.exp(-n*s),0===t||1===t?t:1-n}return e?v:function(){var e=i.springs[t];if(e)return e;for(var n=0,r=0;;)if(1===v(n+=1/6)){if(++r>=16)break}else r=0;var o=n*(1/6)*1e3;return i.springs[t]=o,o}}function p(t){return void 0===t&&(t=10),function(e){return Math.ceil(u(e,1e-6,1)*t)*(1/t)}}var h,v,y=function(){function t(t,e){return 1-3*e+3*t}function e(t,e){return 3*e-6*t}function n(t){return 3*t}function r(r,o,a){return((t(o,a)*r+e(o,a))*r+n(o))*r}function o(r,o,a){return 3*t(o,a)*r*r+2*e(o,a)*r+n(o)}return function(t,e,n,a){if(0<=t&&t<=1&&0<=n&&n<=1){var i=new Float32Array(11);if(t!==e||n!==a)for(var u=0;u<11;++u)i[u]=r(.1*u,t,n);return function(o){return t===e&&n===a||0===o||1===o?o:r(c(o),e,a)}}function c(e){for(var a=0,u=1;10!==u&&i[u]<=e;++u)a+=.1;--u;var c=a+.1*((e-i[u])/(i[u+1]-i[u])),s=o(c,t,n);return s>=.001?function(t,e,n,a){for(var i=0;i<4;++i){var u=o(e,n,a);if(0===u)return e;e-=(r(e,n,a)-t)/u}return e}(e,c,t,n):0===s?c:function(t,e,n,o,a){var i,u,c=0;do{(i=r(u=e+(n-e)/2,o,a)-t)>0?n=u:e=u}while(Math.abs(i)>1e-7&&++c<10);return u}(e,a,a+.1,t,n)}}}(),m=(h={linear:function(){return function(t){return t}}},v={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var n=u(t,1,10),r=u(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(t,e){v[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(v).forEach((function(t){var e=v[t];h["easeIn"+t]=e,h["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},h["easeInOut"+t]=function(t,n){return function(r){return r<.5?e(t,n)(2*r)/2:1-e(t,n)(-2*r+2)/2}}})),h);function g(t,e){if(l.fnc(t))return t;var n=t.split("(")[0],r=m[n],o=f(t);switch(n){case"spring":return d(t,e);case"cubicBezier":return s(y,o);case"steps":return s(p,o);default:return s(r,o)}}function b(t){try{return document.querySelectorAll(t)}catch(t){return}}function w(t,e){for(var n=t.length,r=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<n;a++)if(a in t){var i=t[a];e.call(r,i,a,t)&&o.push(i)}return o}function O(t){return t.reduce((function(t,e){return t.concat(l.arr(e)?O(e):e)}),[])}function E(t){return l.arr(t)?t:(l.str(t)&&(t=b(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function x(t,e){return t.some((function(t){return t===e}))}function S(t){var e={};for(var n in t)e[n]=t[n];return e}function P(t,e){var n=S(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function k(t,e){var n=S(t);for(var r in e)n[r]=l.und(t[r])?e[r]:t[r];return n}function C(t){return l.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba("+n[1]+",1)":e:l.hex(t)?function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(t):l.hsl(t)?function(t){var e,n,r,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),a=parseInt(o[1],10)/360,i=parseInt(o[2],10)/100,u=parseInt(o[3],10)/100,c=o[4]||1;function s(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0==i)e=n=r=u;else{var l=u<.5?u*(1+i):u+i-u*i,f=2*u-l;e=s(f,l,a+1/3),n=s(f,l,a),r=s(f,l,a-1/3)}return"rgba("+255*e+","+255*n+","+255*r+","+c+")"}(t):void 0;var e,n}function j(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function A(t,e){return l.fnc(t)?t(e.target,e.id,e.total):t}function N(t,e){return t.getAttribute(e)}function T(t,e,n){if(x([n,"deg","rad","turn"],j(e)))return e;var r=i.CSS[e+n];if(!l.und(r))return r;var o=document.createElement(t.tagName),a=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;a.appendChild(o),o.style.position="absolute",o.style.width=100+n;var u=100/o.offsetWidth;a.removeChild(o);var c=u*parseFloat(e);return i.CSS[e+n]=c,c}function L(t,e,n){if(e in t.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0";return n?T(t,o,n):o}}function M(t,e){return l.dom(t)&&!l.inp(t)&&(N(t,e)||l.svg(t)&&t[e])?"attribute":l.dom(t)&&x(a,e)?"transform":l.dom(t)&&"transform"!==e&&L(t,e)?"css":null!=t[e]?"object":void 0}function I(t){if(l.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;e=r.exec(n);)o.set(e[1],e[2]);return o}}function _(t,e,n,r){var o=c(e,"scale")?1:0+function(t){return c(t,"translate")||"perspective"===t?"px":c(t,"rotate")||c(t,"skew")?"deg":void 0}(e),a=I(t).get(e)||o;return n&&(n.transforms.list.set(e,a),n.transforms.last=e),r?T(t,a,r):a}function D(t,e,n,r){switch(M(t,e)){case"transform":return _(t,e,r,n);case"css":return L(t,e,n);case"attribute":return N(t,e);default:return t[e]||0}}function B(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=j(t)||0,o=parseFloat(e),a=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return o+a+r;case"-":return o-a+r;case"*":return o*a+r}}function R(t,e){if(l.col(t))return C(t);if(/\s/g.test(t))return t;var n=j(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function F(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function q(t){for(var e,n=t.points,r=0,o=0;o<n.numberOfItems;o++){var a=n.getItem(o);o>0&&(r+=F(e,a)),e=a}return r}function W(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*N(t,"r")}(t);case"rect":return function(t){return 2*N(t,"width")+2*N(t,"height")}(t);case"line":return function(t){return F({x:N(t,"x1"),y:N(t,"y1")},{x:N(t,"x2"),y:N(t,"y2")})}(t);case"polyline":return q(t);case"polygon":return function(t){var e=t.points;return q(t)+F(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function z(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;l.svg(e)&&l.svg(e.parentNode);)e=e.parentNode;return e}(t),o=r.getBoundingClientRect(),a=N(r,"viewBox"),i=o.width,u=o.height,c=n.viewBox||(a?a.split(" "):[0,0,i,u]);return{el:r,viewBox:c,x:c[0]/1,y:c[1]/1,w:i/c[2],h:u/c[3]}}function U(t,e){function n(n){void 0===n&&(n=0);var r=e+n>=1?e+n:0;return t.el.getPointAtLength(r)}var r=z(t.el,t.svg),o=n(),a=n(-1),i=n(1);switch(t.property){case"x":return(o.x-r.x)*r.w;case"y":return(o.y-r.y)*r.h;case"angle":return 180*Math.atan2(i.y-a.y,i.x-a.x)/Math.PI}}function Y(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=R(l.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:l.str(t)||e?r.split(n):[]}}function G(t){return w(t?O(l.arr(t)?t.map(E):E(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function K(t){var e=G(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:I(t)}}}))}function X(t,e){var n=S(e);if(/^spring/.test(n.easing)&&(n.duration=d(n.easing)),l.arr(t)){var r=t.length;2===r&&!l.obj(t[0])?t={value:t}:l.fnc(e.duration)||(n.duration=e.duration/r)}var o=l.arr(t)?t:[t];return o.map((function(t,n){var r=l.obj(t)&&!l.pth(t)?t:{value:t};return l.und(r.delay)&&(r.delay=n?0:e.delay),l.und(r.endDelay)&&(r.endDelay=n===o.length-1?e.endDelay:0),r})).map((function(t){return k(t,n)}))}function $(t,e){var n=[],r=e.keyframes;for(var o in r&&(e=k(function(t){for(var e=w(O(t.map((function(t){return Object.keys(t)}))),(function(t){return l.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),n={},r=function(r){var o=e[r];n[o]=t.map((function(t){var e={};for(var n in t)l.key(n)?n==o&&(e.value=t[n]):e[n]=t[n];return e}))},o=0;o<e.length;o++)r(o);return n}(r),e)),e)l.key(o)&&n.push({name:o,tweens:X(e[o],t)});return n}function Q(t,e){var n;return t.tweens.map((function(r){var o=function(t,e){var n={};for(var r in t){var o=A(t[r],e);l.arr(o)&&1===(o=o.map((function(t){return A(t,e)}))).length&&(o=o[0]),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,e),a=o.value,i=l.arr(a)?a[1]:a,u=j(i),c=D(e.target,t.name,u,e),s=n?n.to.original:c,f=l.arr(a)?a[0]:s,d=j(f)||j(c),p=u||d;return l.und(i)&&(i=s),o.from=Y(f,p),o.to=Y(B(i,f),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=g(o.easing,o.duration),o.isPath=l.pth(a),o.isColor=l.col(o.from.original),o.isColor&&(o.round=1),n=o,o}))}var H={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){if(r.list.set(e,n),e===r.last||o){var a="";r.list.forEach((function(t,e){a+=e+"("+t+") "})),t.style.transform=a}}};function V(t,e){K(t).forEach((function(t){for(var n in e){var r=A(e[n],t),o=t.target,a=j(r),i=D(o,n,a,t),u=B(R(r,a||j(i)),i),c=M(o,n);H[c](o,n,u,t.transforms,!0)}}))}function Z(t,e){return w(O(t.map((function(t){return e.map((function(e){return function(t,e){var n=M(t.target,e.name);if(n){var r=Q(e,t),o=r[r.length-1];return{type:n,property:e.name,animatable:t,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}(t,e)}))}))),(function(t){return!l.und(t)}))}function J(t,e){var n=t.length,r=function(t){return t.timelineOffset?t.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,t.map((function(t){return r(t)+t.duration}))):e.duration,o.delay=n?Math.min.apply(Math,t.map((function(t){return r(t)+t.delay}))):e.delay,o.endDelay=n?o.duration-Math.max.apply(Math,t.map((function(t){return r(t)+t.duration-t.endDelay}))):e.endDelay,o}var tt=0;var et,nt=[],rt=[],ot=function(){function t(){et=requestAnimationFrame(e)}function e(e){var n=nt.length;if(n){for(var r=0;r<n;){var o=nt[r];if(o.paused){var a=nt.indexOf(o);a>-1&&(nt.splice(a,1),n=nt.length)}else o.tick(e);r++}t()}else et=cancelAnimationFrame(et)}return t}();function at(t){void 0===t&&(t={});var e,n=0,a=0,i=0,c=0,s=null;function l(t){var e=window.Promise&&new Promise((function(t){return s=t}));return t.finished=e,e}var f=function(t){var e=P(r,t),n=P(o,t),a=$(n,t),i=K(t.targets),u=Z(i,a),c=J(u,n),s=tt;return tt++,k(e,{id:s,children:[],animatables:i,animations:u,duration:c.duration,delay:c.delay,endDelay:c.endDelay})}(t);l(f);function d(){var t=f.direction;"alternate"!==t&&(f.direction="normal"!==t?"normal":"reverse"),f.reversed=!f.reversed,e.forEach((function(t){return t.reversed=f.reversed}))}function p(t){return f.reversed?f.duration-t:t}function h(){n=0,a=p(f.currentTime)*(1/at.speed)}function v(t,e){e&&e.seek(t-e.timelineOffset)}function y(t){for(var e=0,n=f.animations,r=n.length;e<r;){var o=n[e],a=o.animatable,i=o.tweens,c=i.length-1,s=i[c];c&&(s=w(i,(function(e){return t<e.end}))[0]||s);for(var l=u(t-s.start-s.delay,0,s.duration)/s.duration,d=isNaN(l)?1:s.easing(l),p=s.to.strings,h=s.round,v=[],y=s.to.numbers.length,m=void 0,g=0;g<y;g++){var b=void 0,O=s.to.numbers[g],E=s.from.numbers[g]||0;b=s.isPath?U(s.value,d*O):E+d*(O-E),h&&(s.isColor&&g>2||(b=Math.round(b*h)/h)),v.push(b)}var x=p.length;if(x){m=p[0];for(var S=0;S<x;S++){p[S];var P=p[S+1],k=v[S];isNaN(k)||(m+=P?k+P:k+" ")}}else m=v[0];H[o.type](a.target,o.property,m,a.transforms),o.currentValue=m,e++}}function m(t){f[t]&&!f.passThrough&&f[t](f)}function g(t){var r=f.duration,o=f.delay,h=r-f.endDelay,g=p(t);f.progress=u(g/r*100,0,100),f.reversePlayback=g<f.currentTime,e&&function(t){if(f.reversePlayback)for(var n=c;n--;)v(t,e[n]);else for(var r=0;r<c;r++)v(t,e[r])}(g),!f.began&&f.currentTime>0&&(f.began=!0,m("begin")),!f.loopBegan&&f.currentTime>0&&(f.loopBegan=!0,m("loopBegin")),g<=o&&0!==f.currentTime&&y(0),(g>=h&&f.currentTime!==r||!r)&&y(r),g>o&&g<h?(f.changeBegan||(f.changeBegan=!0,f.changeCompleted=!1,m("changeBegin")),m("change"),y(g)):f.changeBegan&&(f.changeCompleted=!0,f.changeBegan=!1,m("changeComplete")),f.currentTime=u(g,0,r),f.began&&m("update"),t>=r&&(a=0,f.remaining&&!0!==f.remaining&&f.remaining--,f.remaining?(n=i,m("loopComplete"),f.loopBegan=!1,"alternate"===f.direction&&d()):(f.paused=!0,f.completed||(f.completed=!0,m("loopComplete"),m("complete"),!f.passThrough&&"Promise"in window&&(s(),l(f)))))}return f.reset=function(){var t=f.direction;f.passThrough=!1,f.currentTime=0,f.progress=0,f.paused=!0,f.began=!1,f.loopBegan=!1,f.changeBegan=!1,f.completed=!1,f.changeCompleted=!1,f.reversePlayback=!1,f.reversed="reverse"===t,f.remaining=f.loop,e=f.children;for(var n=c=e.length;n--;)f.children[n].reset();(f.reversed&&!0!==f.loop||"alternate"===t&&1===f.loop)&&f.remaining++,y(f.reversed?f.duration:0)},f.set=function(t,e){return V(t,e),f},f.tick=function(t){i=t,n||(n=i),g((i+(a-n))*at.speed)},f.seek=function(t){g(p(t))},f.pause=function(){f.paused=!0,h()},f.play=function(){f.paused&&(f.completed&&f.reset(),f.paused=!1,nt.push(f),h(),et||ot())},f.reverse=function(){d(),f.completed=!f.reversed,h()},f.restart=function(){f.reset(),f.play()},f.reset(),f.autoplay&&f.play(),f}function it(t,e){for(var n=e.length;n--;)x(t,e[n].animatable.target)&&e.splice(n,1)}"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){document.hidden?(nt.forEach((function(t){return t.pause()})),rt=nt.slice(0),at.running=nt=[]):rt.forEach((function(t){return t.play()}))})),at.version="3.2.0",at.speed=1,at.running=nt,at.remove=function(t){for(var e=G(t),n=nt.length;n--;){var r=nt[n],o=r.animations,a=r.children;it(e,o);for(var i=a.length;i--;){var u=a[i],c=u.animations;it(e,c),c.length||u.children.length||a.splice(i,1)}o.length||a.length||r.pause()}},at.get=D,at.set=V,at.convertPx=T,at.path=function(t,e){var n=l.str(t)?b(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:z(n),totalLength:W(n)*(r/100)}}},at.setDashoffset=function(t){var e=W(t);return t.setAttribute("stroke-dasharray",e),e},at.stagger=function(t,e){void 0===e&&(e={});var n=e.direction||"normal",r=e.easing?g(e.easing):null,o=e.grid,a=e.axis,i=e.from||0,u="first"===i,c="center"===i,s="last"===i,f=l.arr(t),d=f?parseFloat(t[0]):parseFloat(t),p=f?parseFloat(t[1]):0,h=j(f?t[1]:t)||0,v=e.start||0+(f?d:0),y=[],m=0;return function(t,e,l){if(u&&(i=0),c&&(i=(l-1)/2),s&&(i=l-1),!y.length){for(var g=0;g<l;g++){if(o){var b=c?(o[0]-1)/2:i%o[0],w=c?(o[1]-1)/2:Math.floor(i/o[0]),O=b-g%o[0],E=w-Math.floor(g/o[0]),x=Math.sqrt(O*O+E*E);"x"===a&&(x=-O),"y"===a&&(x=-E),y.push(x)}else y.push(Math.abs(i-g));m=Math.max.apply(Math,y)}r&&(y=y.map((function(t){return r(t/m)*m}))),"reverse"===n&&(y=y.map((function(t){return a?t<0?-1*t:-t:Math.abs(m-t)})))}return v+(f?(p-d)/m:d)*(Math.round(100*y[e])/100)+h}},at.timeline=function(t){void 0===t&&(t={});var e=at(t);return e.duration=0,e.add=function(n,r){var a=nt.indexOf(e),i=e.children;function u(t){t.passThrough=!0}a>-1&&nt.splice(a,1);for(var c=0;c<i.length;c++)u(i[c]);var s=k(n,P(o,t));s.targets=s.targets||t.targets;var f=e.duration;s.autoplay=!1,s.direction=e.direction,s.timelineOffset=l.und(r)?f:B(r,f),u(e),e.seek(s.timelineOffset);var d=at(s);u(d),i.push(d);var p=J(i,t);return e.delay=p.delay,e.endDelay=p.endDelay,e.duration=p.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},at.easing=g,at.penner=m,at.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},e.a=at},function(t,e,n){"use strict";var r=n(5),o=n.n(r),a=n(6),i=n.n(a),u=n(3),c=n.n(u),s=n(4),l=n.n(s),f=n(11),d=n.n(f),p=n(12),h=n.n(p),v=n(9),y=n.n(v),m=n(0),g=function(){function t(e){c()(this,t),this.element=e}return l()(t,[{key:"updateDOM",value:function(t,e){t.innerHTML="".concat(e[0],": ").concat(e[1],": ").concat(e[2])}}],[{key:"isCount",value:function(t){return 1===t.toString().length?"0".concat(t):"".concat(t)}},{key:"checkSeconds",value:function(t){return t<=59?t:t%60}},{key:"checkMinutes",value:function(e){return e/60<1?"0":t.checkSeconds(Math.floor(e/60))}},{key:"cHours",value:function(t){return t>3600||Number.isInteger(t/3600)?"".concat(Math.floor(t/3600)):"0"}},{key:"timeCheck",value:function(e){var n=["00","00","00"];return n[2]=t.isCount(t.checkSeconds(Number(e))),n[1]=t.isCount(t.checkMinutes(Number(e))),n[0]=t.isCount(t.cHours(Number(e))),n}},{key:"updateTime",value:function(e){if(Number.isInteger(e))return t.timeCheck(e);throw new Error("totalMiliseconds is not a integer")}}]),t}(),b=n(1),w=n(2);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var E=0,x=new(function(t){d()(n,t);var e=O(n);function n(t){var r;return c()(this,n),(r=e.call(this,t)).time=["00","00","00"],r.lap={time:null},r.id=null,r.lapsId=1,r.currentLaps=[],r}return l()(n,[{key:"getTime",value:function(t){this.time=t}},{key:"getId",value:function(){var t=++E;this.id=t}},{key:"setLaps",value:function(t){this.lap.time=t}},{key:"start",value:function(){if(m.a.getState().stopwatch.active)w.a.bugAdded("Stopwatch is already started!");else{var t=function(){var s=i()(o.a.mark((function i(){return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,new Promise((function(t){setTimeout((function(){var n=new Date,r=Math.ceil((n-e-1e3)/1e3);t({currentDate:r})}),1e3)})).then((function(e){if(m.a.getState().stopwatch.active){var o=n(e.currentDate);r(a,o),u(o),c(o),t()}}));case 2:case"end":return o.stop()}}),i)})));return function(){return s.apply(this,arguments)}}(),e=new Date;this.getId(),m.a.dispatch(m.b.cleanSavedLaps()),m.a.dispatch(m.b.activeStopwatch());var n=g.updateTime,r=this.updateDOM,a=this.element,u=this.getTime.bind(this),c=this.setLaps.bind(this);t()}}},{key:"saveToDatabase",value:function(t,e){m.a.dispatch(m.b.addSaved({id:this.id,totalTime:t.stopwatch.time,laps:e}))}},{key:"stop",value:function(){m.a.getState().stopwatch.active?(m.a.dispatch(m.b.stopStopwatch()),this.updateDOM(this.element,["00","00","00"]),m.a.dispatch(m.b.addTime({time:this.time})),this.saveToDatabase(m.a.getState(),m.a.getState().stopwatch.savedCurrentLaps),m.a.dispatch(m.b.totalLapsChanges({lapsObj:[]})),b.default.updateSidebarDOM()):w.a.bugAdded("Stopwatch isn't started!")}},{key:"changes",value:function(t){m.a.dispatch(m.b.totalLapsChanges({lapsObj:t}))}},{key:"laps",value:function(){if(m.a.getState().stopwatch.active){var t=this.lap.time,e={id:this.lapsId,lapTimes:t,title:void 0,savedId:this.id};this.lapsId=this.lapsId+1,b.default.updateLaps(e),m.a.dispatch(m.b.savedCurrentLaps({laps:e})),b.default.updateState(m.a.getState().stopwatch.savedCurrentLaps)}else w.a.bugAdded("Stopwatch hasn't started!")}}]),n}(g))(document.getElementById("action"));e.a=x},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){"use strict";(function(t,r){var o,a=n(13);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var i=Object(a.a)(o);e.a=i}).call(this,n(18),n(19)(t))},function(t,e,n){var r=n(15);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(16),o=n(17);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var u=b(i,n);if(u){if(u===s)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var s={};function l(){}function f(){}function d(){}var p={};p[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(x([])));v&&v!==e&&n.call(v,o)&&(p=v);var y=d.prototype=l.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,u){var s=c(t[o],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,u)}))}u(s.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,s;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=y.constructor=d,d.constructor=f,d[i]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},m(g.prototype),g.prototype[a]=function(){return this},t.AsyncIterator=g,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new g(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},m(y),y[i]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,s):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}}]);