summaryrefslogtreecommitdiff
path: root/public/bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bundle.js')
-rw-r--r--public/bundle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/bundle.js b/public/bundle.js
index 99a095d..902c9f9 100644
--- a/public/bundle.js
+++ b/public/bundle.js
@@ -1,4 +1,4 @@
-!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},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=323)}([function(t,e,n){t.exports=n(313)()},function(t,e,n){"use strict";n.r(e),n.d(e,"h",function(){return s}),n.d(e,"createElement",function(){return s}),n.d(e,"cloneElement",function(){return l}),n.d(e,"Component",function(){return N}),n.d(e,"render",function(){return F}),n.d(e,"rerender",function(){return f}),n.d(e,"options",function(){return i});var i={},r=[],o=[];function s(t,e){var n,s,a,u,l=o;for(u=arguments.length;u-- >2;)r.push(arguments[u]);for(e&&null!=e.children&&(r.length||r.push(e.children),delete e.children);r.length;)if((s=r.pop())&&void 0!==s.pop)for(u=s.length;u--;)r.push(s[u]);else"boolean"==typeof s&&(s=null),(a="function"!=typeof t)&&(null==s?s="":"number"==typeof s?s=String(s):"string"!=typeof s&&(a=!1)),a&&n?l[l.length-1]+=s:l===o?l=[s]:l.push(s),n=a;var c=new function(){};return c.nodeName=t,c.children=l,c.attributes=null==e?void 0:e,c.key=null==e?void 0:e.key,void 0!==i.vnode&&i.vnode(c),c}function a(t,e){for(var n in e)t[n]=e[n];return t}var u="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function l(t,e){return s(t.nodeName,a(a({},t.attributes),e),arguments.length>2?[].slice.call(arguments,2):t.children)}var c=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(t){!t._dirty&&(t._dirty=!0)&&1==h.push(t)&&(i.debounceRendering||u)(f)}function f(){var t,e=h;for(h=[];t=e.pop();)t._dirty&&R(t)}function d(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function m(t){var e=a({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===e[i]&&(e[i]=n[i]);return e}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n,i,r){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)n&&n(null),i&&i(t);else if("class"!==e||r)if("style"===e){if(i&&"string"!=typeof i&&"string"!=typeof n||(t.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(t.style[o]="");for(var o in i)t.style[o]="number"==typeof i[o]&&!1===c.test(o)?i[o]+"px":i[o]}}else if("dangerouslySetInnerHTML"===e)i&&(t.innerHTML=i.__html||"");else if("o"==e[0]&&"n"==e[1]){var s=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),i?n||t.addEventListener(e,v,s):t.removeEventListener(e,v,s),(t._listeners||(t._listeners={}))[e]=i}else if("list"!==e&&"type"!==e&&!r&&e in t)!function(t,e,n){try{t[e]=n}catch(t){}}(t,e,null==i?"":i),null!=i&&!1!==i||t.removeAttribute(e);else{var a=r&&e!==(e=e.replace(/^xlink:?/,""));null==i||!1===i?a?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof i&&(a?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),i):t.setAttribute(e,i))}else t.className=i||""}function v(t){return this._listeners[t.type](i.event&&i.event(t)||t)}var g=[],b=0,w=!1,k=!1;function S(){for(var t;t=g.pop();)i.afterMount&&i.afterMount(t),t.componentDidMount&&t.componentDidMount()}function x(t,e,n,i,r,o){b++||(w=null!=r&&void 0!==r.ownerSVGElement,k=null!=t&&!("__preactattr_"in t));var s=T(t,e,n,i,o);return r&&s.parentNode!==r&&r.appendChild(s),--b||(k=!1,o||S()),s}function T(t,e,n,i,r){var o=t,s=w;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||r)?t.nodeValue!=e&&(t.nodeValue=e):(o=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(o,t),O(t,!0))),o.__preactattr_=!0,o;var a,u,l=e.nodeName;if("function"==typeof l)return function(t,e,n,i){var r=t&&t._component,o=r,s=t,a=r&&t._componentConstructor===e.nodeName,u=a,l=m(e);for(;r&&!u&&(r=r._parentComponent);)u=r.constructor===e.nodeName;r&&u&&(!i||r._component)?(M(r,l,3,n,i),t=r.base):(o&&!a&&(j(o),t=s=null),r=C(e.nodeName,l,n),t&&!r.nextBase&&(r.nextBase=t,s=null),M(r,l,1,n,i),t=r.base,s&&t!==s&&(s._component=null,O(s,!1)));return t}(t,e,n,i);if(w="svg"===l||"foreignObject"!==l&&w,l=String(l),(!t||!d(t,l))&&(a=l,(u=w?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,o=u,t)){for(;t.firstChild;)o.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(o,t),O(t,!0)}var c=o.firstChild,h=o.__preactattr_,p=e.children;if(null==h){h=o.__preactattr_={};for(var f=o.attributes,v=f.length;v--;)h[f[v].name]=f[v].value}return!k&&p&&1===p.length&&"string"==typeof p[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=p[0]&&(c.nodeValue=p[0]):(p&&p.length||null!=c)&&function(t,e,n,i,r){var o,s,a,u,l,c=t.childNodes,h=[],p={},f=0,m=0,_=c.length,v=0,g=e?e.length:0;if(0!==_)for(var b=0;b<_;b++){var w=c[b],k=w.__preactattr_,S=g&&k?w._component?w._component.__key:k.key:null;null!=S?(f++,p[S]=w):(k||(void 0!==w.splitText?!r||w.nodeValue.trim():r))&&(h[v++]=w)}if(0!==g)for(var b=0;b<g;b++){u=e[b],l=null;var S=u.key;if(null!=S)f&&void 0!==p[S]&&(l=p[S],p[S]=void 0,f--);else if(!l&&m<v)for(o=m;o<v;o++)if(void 0!==h[o]&&(x=s=h[o],A=r,"string"==typeof(P=u)||"number"==typeof P?void 0!==x.splitText:"string"==typeof P.nodeName?!x._componentConstructor&&d(x,P.nodeName):A||x._componentConstructor===P.nodeName)){l=s,h[o]=void 0,o===v-1&&v--,o===m&&m++;break}l=T(l,u,n,i),a=c[b],l&&l!==t&&l!==a&&(null==a?t.appendChild(l):l===a.nextSibling?y(a):t.insertBefore(l,a))}var x,P,A;if(f)for(var b in p)void 0!==p[b]&&O(p[b],!1);for(;m<=v;)void 0!==(l=h[v--])&&O(l,!1)}(o,p,n,i,k||null!=h.dangerouslySetInnerHTML),function(t,e,n){var i;for(i in n)e&&null!=e[i]||null==n[i]||_(t,i,n[i],n[i]=void 0,w);for(i in e)"children"===i||"innerHTML"===i||i in n&&e[i]===("value"===i||"checked"===i?t[i]:n[i])||_(t,i,n[i],n[i]=e[i],w)}(o,e.attributes,h),w=s,o}function O(t,e){var n=t._component;n?j(n):(null!=t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),!1!==e&&null!=t.__preactattr_||y(t),P(t))}function P(t){for(t=t.lastChild;t;){var e=t.previousSibling;O(t,!0),t=e}}var A={};function C(t,e,n){var i,r=A[t.name];if(t.prototype&&t.prototype.render?(i=new t(e,n),N.call(i,e,n)):((i=new N(e,n)).constructor=t,i.render=E),r)for(var o=r.length;o--;)if(r[o].constructor===t){i.nextBase=r[o].nextBase,r.splice(o,1);break}return i}function E(t,e,n){return this.constructor(t,n)}function M(t,e,n,r,o){t._disable||(t._disable=!0,(t.__ref=e.ref)&&delete e.ref,(t.__key=e.key)&&delete e.key,!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,r),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=e,t._disable=!1,0!==n&&(1!==n&&!1===i.syncComponentUpdates&&t.base?p(t):R(t,1,o)),t.__ref&&t.__ref(t))}function R(t,e,n,r){if(!t._disable){var o,s,u,l=t.props,c=t.state,h=t.context,p=t.prevProps||l,f=t.prevState||c,d=t.prevContext||h,y=t.base,_=t.nextBase,v=y||_,w=t._component,k=!1;if(y&&(t.props=p,t.state=f,t.context=d,2!==e&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(l,c,h)?k=!0:t.componentWillUpdate&&t.componentWillUpdate(l,c,h),t.props=l,t.state=c,t.context=h),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!k){o=t.render(l,c,h),t.getChildContext&&(h=a(a({},h),t.getChildContext()));var T,P,A=o&&o.nodeName;if("function"==typeof A){var E=m(o);(s=w)&&s.constructor===A&&E.key==s.__key?M(s,E,1,h,!1):(T=s,t._component=s=C(A,E,h),s.nextBase=s.nextBase||_,s._parentComponent=t,M(s,E,0,h,!1),R(s,1,n,!0)),P=s.base}else u=v,(T=w)&&(u=t._component=null),(v||1===e)&&(u&&(u._component=null),P=x(u,o,h,n||!y,v&&v.parentNode,!0));if(v&&P!==v&&s!==w){var N=v.parentNode;N&&P!==N&&(N.replaceChild(P,v),T||(v._component=null,O(v,!1)))}if(T&&j(T),t.base=P,P&&!r){for(var F=t,L=t;L=L._parentComponent;)(F=L).base=P;P._component=F,P._componentConstructor=F.constructor}}if(!y||n?g.unshift(t):k||(t.componentDidUpdate&&t.componentDidUpdate(p,f,d),i.afterUpdate&&i.afterUpdate(t)),null!=t._renderCallbacks)for(;t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);b||r||S()}}function j(t){i.beforeUnmount&&i.beforeUnmount(t);var e=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?j(n):e&&(e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),t.nextBase=e,y(e),function(t){var e=t.constructor.name;(A[e]||(A[e]=[])).push(t)}(t),P(e)),t.__ref&&t.__ref(null)}function N(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{}}function F(t,e,n){return x(n,t,{},!1,e,!1)}a(N.prototype,{setState:function(t,e){var n=this.state;this.prevState||(this.prevState=a({},n)),a(n,"function"==typeof t?t(n,this.props):t),e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),p(this)},forceUpdate:function(t){t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),R(this,2)},render:function(){}});var L={h:s,createElement:s,cloneElement:l,Component:N,render:F,rerender:f,options:i};e.default=L},function(t,e,n){"use strict";n.r(e);var i=n(5),r=n(18),o=n.n(r),s=o.a.shape({trySubscribe:o.a.func.isRequired,tryUnsubscribe:o.a.func.isRequired,notifyNestedSubs:o.a.func.isRequired,isSubscribed:o.a.func.isRequired}),a=o.a.shape({subscribe:o.a.func.isRequired,dispatch:o.a.func.isRequired,getState:o.a.func.isRequired});function u(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||e+"Subscription",r=function(t){function r(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return o[e]=n.store,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,t),r.prototype.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.prototype.render=function(){return i.a.only(this.props.children)},r}(i.b);return r.propTypes={store:a.isRequired,children:o.a.element.isRequired},r.childContextTypes=((t={})[e]=a.isRequired,t[n]=s,t),r}var l=u(),c=n(148),h=n.n(c),p=n(65),f=n.n(p);var d=null,m={notify:function(){}};var y=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=e,this.parentSub=n,this.onStateChange=i,this.unsubscribe=null,this.listeners=m}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){var t,e;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(t=[],e=[],{clear:function(){e=d,t=d},notify:function(){for(var n=t=e,i=0;i<n.length;i++)n[i]()},get:function(){return e},subscribe:function(n){var i=!0;return e===t&&(e=t.slice()),e.push(n),function(){i&&t!==d&&(i=!1,e===t&&(e=t.slice()),e.splice(e.indexOf(n),1))}}}))},t.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=m)},t}(),_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};var v=0,g={};function b(){}function w(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.getDisplayName,u=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,l=r.methodName,c=void 0===l?"connectAdvanced":l,p=r.renderCountProp,d=void 0===p?void 0:p,m=r.shouldHandleStateChanges,w=void 0===m||m,k=r.storeKey,S=void 0===k?"store":k,x=r.withRef,T=void 0!==x&&x,O=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),P=S+"Subscription",A=v++,C=((e={})[S]=a,e[P]=s,e),E=((n={})[P]=s,n);return function(e){f()("function"==typeof e,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",r=u(n),o=_({},O,{getDisplayName:u,methodName:c,renderCountProp:d,shouldHandleStateChanges:w,storeKey:S,withRef:T,displayName:r,wrappedComponentName:n,WrappedComponent:e}),s=function(n){function s(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t,e));return i.version=A,i.state={},i.renderCount=0,i.store=t[S]||e[S],i.propsMode=Boolean(t[S]),i.setWrappedInstance=i.setWrappedInstance.bind(i),f()(i.store,'Could not find "'+S+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+S+'" as a prop to "'+r+'".'),i.initSelector(),i.initSubscription(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,n),s.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return(t={})[P]=e||this.context[P],t},s.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},s.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},s.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},s.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},s.prototype.getWrappedInstance=function(){return f()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},s.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},s.prototype.initSelector=function(){var e=t(this.store.dispatch,o);this.selector=function(t,e){var n={run:function(i){try{var r=t(e.getState(),i);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}(e,this.store),this.selector.run(this.props)},s.prototype.initSubscription=function(){if(w){var t=(this.propsMode?this.props:this.context)[P];this.subscription=new y(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},s.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},s.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},s.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},s.prototype.addExtraProps=function(t){if(!(T||d||this.propsMode&&this.subscription))return t;var e=_({},t);return T&&(e.ref=this.setWrappedInstance),d&&(e[d]=this.renderCount++),this.propsMode&&this.subscription&&(e[P]=this.subscription),e},s.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(i.c)(e,this.addExtraProps(t.props))},s}(i.b);return s.WrappedComponent=e,s.displayName=r,s.childContextTypes=E,s.contextTypes=C,s.propTypes=C,h()(s,e)}}var k=Object.prototype.hasOwnProperty;function S(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function x(t,e){if(S(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!k.call(e,n[r])||!S(t[n[r]],e[n[r]]))return!1;return!0}var T=n(3),O=n(324),P="object"==typeof self&&self&&self.Object===Object&&self,A=(O.a||P||Function("return this")()).Symbol,C=Object.prototype;C.hasOwnProperty,C.toString,A&&A.toStringTag;Object.prototype.toString;A&&A.toStringTag;Object.getPrototypeOf,Object;var E=Function.prototype,M=Object.prototype,R=E.toString;M.hasOwnProperty,R.call(Object);function j(t){return function(e,n){var i=t(e,n);function r(){return i}return r.dependsOnOwnProps=!1,r}}function N(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function F(t,e){return function(e,n){n.displayName;var i=function(t,e){return i.dependsOnOwnProps?i.mapToProps(t,e):i.mapToProps(t)};return i.dependsOnOwnProps=!0,i.mapToProps=function(e,n){i.mapToProps=t,i.dependsOnOwnProps=N(t);var r=i(e,n);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=N(r),r=i(e,n)),r},i}}var L=[function(t){return"function"==typeof t?F(t):void 0},function(t){return t?void 0:j(function(t){return{dispatch:t}})},function(t){return t&&"object"==typeof t?j(function(e){return Object(T.bindActionCreators)(t,e)}):void 0}];var D=[function(t){return"function"==typeof t?F(t):void 0},function(t){return t?void 0:j(function(){return{}})}],q=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function I(t,e,n){return q({},n,t,e)}var B=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var i=n.pure,r=n.areMergedPropsEqual,o=!1,s=void 0;return function(e,n,a){var u=t(e,n,a);return o?i&&r(u,s)||(s=u):(o=!0,s=u),s}}}(t):void 0},function(t){return t?void 0:function(){return I}}];function U(t,e,n,i){return function(r,o){return n(t(r,o),e(i,o),o)}}function z(t,e,n,i,r){var o=r.areStatesEqual,s=r.areOwnPropsEqual,a=r.areStatePropsEqual,u=!1,l=void 0,c=void 0,h=void 0,p=void 0,f=void 0;function d(r,u){var d,m,y=!s(u,c),_=!o(r,l);return l=r,c=u,y&&_?(h=t(l,c),e.dependsOnOwnProps&&(p=e(i,c)),f=n(h,p,c)):y?(t.dependsOnOwnProps&&(h=t(l,c)),e.dependsOnOwnProps&&(p=e(i,c)),f=n(h,p,c)):_?(d=t(l,c),m=!a(d,h),h=d,m&&(f=n(h,p,c)),f):f}return function(r,o){return u?d(r,o):(h=t(l=r,c=o),p=e(i,c),f=n(h,p,c),u=!0,f)}}function Y(t,e){var n=e.initMapStateToProps,i=e.initMapDispatchToProps,r=e.initMergeProps,o=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(t,o),a=i(t,o),u=r(t,o);return(o.pure?z:U)(s,a,u,t,o)}var W=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function G(t,e,n){for(var i=e.length-1;i>=0;i--){var r=e[i](t);if(r)return r}return function(e,i){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function V(t,e){return t===e}var H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.connectHOC,n=void 0===e?w:e,i=t.mapStateToPropsFactories,r=void 0===i?D:i,o=t.mapDispatchToPropsFactories,s=void 0===o?L:o,a=t.mergePropsFactories,u=void 0===a?B:a,l=t.selectorFactory,c=void 0===l?Y:l;return function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.pure,l=void 0===a||a,h=o.areStatesEqual,p=void 0===h?V:h,f=o.areOwnPropsEqual,d=void 0===f?x:f,m=o.areStatePropsEqual,y=void 0===m?x:m,_=o.areMergedPropsEqual,v=void 0===_?x:_,g=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=G(t,r,"mapStateToProps"),w=G(e,s,"mapDispatchToProps"),k=G(i,u,"mergeProps");return n(c,W({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:b,initMapDispatchToProps:w,initMergeProps:k,pure:l,areStatesEqual:p,areOwnPropsEqual:d,areStatePropsEqual:y,areMergedPropsEqual:v},g))}}();n.d(e,"Provider",function(){return l}),n.d(e,"createProvider",function(){return u}),n.d(e,"connectAdvanced",function(){return w}),n.d(e,"connect",function(){return H})},function(t,e,n){"use strict";n.r(e),n.d(e,"createStore",function(){return u}),n.d(e,"combineReducers",function(){return c}),n.d(e,"bindActionCreators",function(){return p}),n.d(e,"applyMiddleware",function(){return d}),n.d(e,"compose",function(){return f}),n.d(e,"__DO_NOT_USE__ActionTypes",function(){return r});var i=n(89),r={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function a(t){if("object"!==(void 0===t?"undefined":o(t))||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function u(t,e,n){var s;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(u)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var l=t,c=e,h=[],p=h,f=!1;function d(){p===h&&(p=h.slice())}function m(){if(f)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 c}function y(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(f)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#subscribe(listener) for more details.");var e=!0;return d(),p.push(t),function(){if(e){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");e=!1,d();var n=p.indexOf(t);p.splice(n,1)}}}function _(t){if(!a(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(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,c=l(c,t)}finally{f=!1}for(var e=h=p,n=0;n<e.length;n++){(0,e[n])()}return t}return _({type:r.INIT}),(s={dispatch:_,subscribe:y,getState:m,replaceReducer:function(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");l=t,_({type:r.REPLACE})}})[i.a]=function(){var t,e=y;return(t={subscribe:function(t){if("object"!==(void 0===t?"undefined":o(t))||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(m())}return n(),{unsubscribe:e(n)}}})[i.a]=function(){return this},t},s}function l(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 c(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var o=e[i];0,"function"==typeof t[o]&&(n[o]=t[o])}var s=Object.keys(n);var a=void 0;try{!function(t){Object.keys(t).forEach(function(e){var n=t[e];if(void 0===n(void 0,{type:r.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:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+r.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(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(a)throw a;for(var i=!1,r={},o=0;o<s.length;o++){var u=s[o],c=n[u],h=t[u],p=c(h,e);if(void 0===p){var f=l(u,e);throw new Error(f)}r[u]=p,i=i||p!==h}return i?r:t}}function h(t,e){return function(){return e(t.apply(this,arguments))}}function p(t,e){if("function"==typeof t)return h(t,e);if("object"!==(void 0===t?"undefined":o(t))||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":void 0===t?"undefined":o(t))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(t),i={},r=0;r<n.length;r++){var s=n[r],a=t[s];"function"==typeof a&&(i[s]=h(a,e))}return i}function f(){for(var t=arguments.length,e=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 d(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=t.apply(void 0,i),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},u={getState:o.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(t){return t(u)});return a=f.apply(void 0,l)(o.dispatch),s({},o,{dispatch:a})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=a(n(291)),o=a(n(136)),s=a(n(83));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n(290);var u=!(!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)),l=!!navigator.userAgent.match(/iPad/i),c=!!navigator.userAgent.match(/Android/i),h=u||l||c,p=!h,f=document.body.parentNode.classList;f.add(p?"desktop":"mobile"),f.remove("loading");document.body.style.backgroundImage="linear-gradient("+(s.randint(40)+40)+"deg, #fde, #ffe)";e.default=i({},s,o,{sort:r,allProgress:function(t,e){var n=0;return e(0,0,t.length),t.forEach(function(i){i.then(function(i){return n+=1,e(Math.floor(100*n/t.length),n,t.length),i})}),Promise.all(t)},fieldSet:function(t){return function(e){return e?e instanceof Set?e:new Set(e.split(" ")):t}},is_iphone:u,is_ipad:l,is_android:c,is_mobile:h,is_desktop:p})},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return w}),n.d(e,"c",function(){return O}),n.d(e,"b",function(){return B});var i=n(64),r=n.n(i),o=n(1),s="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),a="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,u="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",l={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},c=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,h={},p=void 0===t||!t.env||!1;function f(){return null}var d=Object(o.h)("a",null).constructor;d.prototype.$$typeof=a,d.prototype.preactCompatUpgraded=!1,d.prototype.preactCompatNormalized=!1,Object.defineProperty(d.prototype,"type",{get:function(){return this.nodeName},set:function(t){this.nodeName=t},configurable:!0}),Object.defineProperty(d.prototype,"props",{get:function(){return this.attributes},set:function(t){this.attributes=t},configurable:!0});var m=o.options.event;o.options.event=function(t){return m&&(t=m(t)),t.persist=Object,t.nativeEvent=t,t};var y=o.options.vnode;function _(t,e,n){var i=e&&e._preactCompatRendered&&e._preactCompatRendered.base;i&&i.parentNode!==e&&(i=null),!i&&e&&(i=e.firstElementChild);for(var r=e.childNodes.length;r--;)e.childNodes[r]!==i&&e.removeChild(e.childNodes[r]);var s=Object(o.render)(t,e,i);return e&&(e._preactCompatRendered=s&&(s._component||{base:s})),"function"==typeof n&&n(),s&&s._component||s}o.options.vnode=function(t){if(!t.preactCompatUpgraded){t.preactCompatUpgraded=!0;var e=t.nodeName,n=t.attributes=E({},t.attributes);"function"==typeof e?(!0===e[u]||e.prototype&&"isReactComponent"in e.prototype)&&(t.children&&""===String(t.children)&&(t.children=void 0),t.children&&(n.children=t.children),t.preactCompatNormalized||P(t),function(t){var e=t.nodeName,n=t.attributes;t.attributes={},e.defaultProps&&E(t.attributes,e.defaultProps);n&&E(t.attributes,n)}(t)):(t.children&&""===String(t.children)&&(t.children=void 0),t.children&&(n.children=t.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),function(t,e){var n,i,r;if(e){for(r in e)if(n=c.test(r))break;if(n)for(r in i=t.attributes={},e)e.hasOwnProperty(r)&&(i[c.test(r)?r.replace(/([A-Z0-9])/,"-$1").toLowerCase():r]=e[r])}}(t,n))}y&&y(t)};var v=function(){};v.prototype.getChildContext=function(){return this.props.context},v.prototype.render=function(t){return t.children[0]};var g,b=[],w={map:function(t,e,n){return null==t?null:(t=w.toArray(t),n&&n!==t&&(e=e.bind(n)),t.map(e))},forEach:function(t,e,n){if(null==t)return null;t=w.toArray(t),n&&n!==t&&(e=e.bind(n)),t.forEach(e)},count:function(t){return t&&t.length||0},only:function(t){if(1!==(t=w.toArray(t)).length)throw new Error("Children.only() expects only one child.");return t[0]},toArray:function(t){return null==t?[]:b.concat(t)}};function k(t){return O.bind(null,t)}for(var S={},x=s.length;x--;)S[s[x]]=k(s[x]);function T(t){var e,n=t[u];return n?!0===n?t:n:(n=j({displayName:(e=t).displayName||e.name,render:function(){return e(this.props,this.context)}}),Object.defineProperty(n,u,{configurable:!0,value:!0}),n.displayName=t.displayName,n.propTypes=t.propTypes,n.defaultProps=t.defaultProps,Object.defineProperty(t,u,{configurable:!0,value:n}),n)}function O(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function t(e,n){for(var i=n||0;i<e.length;i++){var r=e[i];Array.isArray(r)?t(r):r&&"object"==typeof r&&!A(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(e[i]=O(r.type||r.nodeName,r.props||r.attributes,r.children))}}(t,2),P(o.h.apply(void 0,t))}function P(t){var e;t.preactCompatNormalized=!0,function(t){var e=t.attributes||(t.attributes={});C.enumerable="className"in e,e.className&&(e.class=e.className);Object.defineProperty(e,"className",C)}(t),"function"!=typeof(e=t.nodeName)||e.prototype&&e.prototype.render||(t.nodeName=T(t.nodeName));var n,i,r=t.attributes.ref,o=r&&typeof r;return!g||"string"!==o&&"number"!==o||(t.attributes.ref=(n=r,(i=g)._refProxies[n]||(i._refProxies[n]=function(t){i&&i.refs&&(i.refs[n]=t,null===t&&(delete i._refProxies[n],i=null))}))),function(t){var e=t.nodeName,n=t.attributes;if(!n||"string"!=typeof e)return;var i={};for(var r in n)i[r.toLowerCase()]=r;i.ondoubleclick&&(n.ondblclick=n[i.ondoubleclick],delete n[i.ondoubleclick]);if(i.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var o=i.oninput||"oninput";n[o]||(n[o]=F([n[o],n[i.onchange]]),delete n[i.onchange])}}(t),t}function A(t){return t&&(t instanceof d||t.$$typeof===a)}var C={configurable:!0,get:function(){return this.class},set:function(t){this.class=t}};function E(t,e){for(var n=arguments,i=1,r=void 0;i<arguments.length;i++)if(r=n[i])for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);return t}function M(t,e){for(var n in t)if(!(n in e))return!0;for(var i in e)if(t[i]!==e[i])return!0;return!1}function R(){}function j(t){function e(t,e){!function(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||l.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}(this),B.call(this,t,e,h),L.call(this,t,e)}return(t=E({constructor:e},t)).mixins&&function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=F(e[n].concat(t[n]||b),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}(t,function(t){for(var e={},n=0;n<t.length;n++){var i=t[n];for(var r in i)i.hasOwnProperty(r)&&"function"==typeof i[r]&&(e[r]||(e[r]=[])).push(i[r])}return e}(t.mixins)),t.statics&&E(e,t.statics),t.propTypes&&(e.propTypes=t.propTypes),t.defaultProps&&(e.defaultProps=t.defaultProps),t.getDefaultProps&&(e.defaultProps=t.getDefaultProps.call(e)),R.prototype=B.prototype,e.prototype=E(new R,t),e.displayName=t.displayName||"Component",e}function N(t,e,n){if("string"==typeof e&&(e=t.constructor.prototype[e]),"function"==typeof e)return e.apply(t,n)}function F(t,e){return function(){for(var n,i=arguments,r=0;r<t.length;r++){var o=N(this,t[r],i);if(e&&null!=o)for(var s in n||(n={}),o)o.hasOwnProperty(s)&&(n[s]=o[s]);else void 0!==o&&(n=o)}return n}}function L(t,e){D.call(this,t,e),this.componentWillReceiveProps=F([D,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=F([D,q,this.render||"render",I])}function D(t,e){if(t){var n=t.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof d)&&(t.children=n[0],t.children&&"object"==typeof t.children&&(t.children.length=1,t.children[0]=t.children)),p){var i="function"==typeof this?this:this.constructor,o=this.propTypes||i.propTypes,s=this.displayName||i.name;o&&r.a.checkPropTypes(o,t,"prop",s)}}}function q(t){g=this}function I(){g===this&&(g=null)}function B(t,e,n){o.Component.call(this,t,e),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},n!==h&&L.call(this,t,e)}function U(t,e){B.call(this,t,e)}E(B.prototype=new o.Component,{constructor:B,isReactComponent:{},replaceState:function(t,e){for(var n in this.setState(t,e),this.state)n in t||delete this.state[n]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),R.prototype=B.prototype,U.prototype=new R,U.prototype.isPureReactComponent=!0,U.prototype.shouldComponentUpdate=function(t,e){return M(this.props,t)||M(this.state,e)};var z={version:"15.1.0",DOM:S,PropTypes:r.a,Children:w,render:_,createClass:j,createFactory:k,createElement:O,cloneElement:function(t,e){for(var n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];if(!A(t))return t;var r=t.attributes||t.props,s=[Object(o.h)(t.nodeName||t.type,E({},r),t.children||r&&r.children),e];return n&&n.length?s.push(n):e&&e.children&&s.push(e.children),P(o.cloneElement.apply(void 0,s))},isValidElement:A,findDOMNode:function(t){return t&&t.base||t},unmountComponentAtNode:function(t){var e=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!e||e.parentNode!==t||(Object(o.render)(Object(o.h)(f),t,e),0))},Component:B,PureComponent:U,unstable_renderSubtreeIntoContainer:function(t,e,n,i){var r=_(Object(o.h)(v,{context:t.context},e),n),s=r._component||r.base;return i&&i.call(s,r),s},__spread:E};e.d=z}).call(this,n(43))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(85);e.default={system:{load_site:"SYSTEM_LOAD_SITE",running_command:"SYSTEM_RUNNING_COMMAND",command_output:"SYSTEM_COMMAND_OUTPUT",relay_connected:"SYSTEM_RELAY_CONNECTED",relay_disconnected:"SYSTEM_RELAY_DISCONNECTED",rpc_connected:"SYSTEM_RPC_CONNECTED",rpc_disconnected:"SYSTEM_RPC_DISCONNECTED",list_directory:"SYSTEM_LIST_DIRECTORY",listing_directory:"SYSTEM_LISTING_DIRECTORY",count_directory:"SYSTEM_COUNT_DIRECTORY",counting_directory:"SYSTEM_COUNTING_DIRECTORY",stdout:"SYSTEM_STDOUT",stderr:"SYSTEM_STDERR",change_language:"SYSTEM_CHANGE_LANGUAGE"},app:{change_tool:"APP_CHANGE_TOOL",load_progress:"APP_LOAD_PROGRESS"},folder:(0,i.crud_type)("folder",[]),file:(0,i.crud_type)("file",[]),task:(0,i.crud_type)("task",["starting_task","stopping_task","task_begin","task_finish","start_queue","stop_queue","starting_queue","stopping_queue","progress","epoch"]),auth:(0,i.crud_type)("auth",["set_token","set_error","set_current_user","logout_user","loading","initialized","set_return_to"]),socket:{connect:"SOCKET_CONNECT",connect_error:"SOCKET_CONNECT_ERROR",reconnect:"SOCKET_RECONNECT",reconnecting:"SOCKET_RECONNECTING",reconnect_error:"SOCKET_RECONNECT_ERROR",reconnect_failed:"SOCKET_RECONNECT_FAILED",disconnect:"SOCKET_DISCONNECT",error:"SOCKET_ERROR",status:"SOCKET_STATUS",load_params:"SOCKET_LOAD_PARAMS",list_checkpoints:"SOCKET_LIST_CHECKPOINTS",list_sequences:"SOCKET_LIST_SEQUENCES",list_epochs:"SOCKET_LIST_EPOCHS"},player:{get_params:"GET_PARAMS",set_param:"SET_PARAM",send_command:"SEND_COMMAND",loading_checkpoints:"LOADING_CHECKPOINTS",loading_checkpoint:"LOADING_CHECKPOINT",list_checkpoints:"LIST_CHECKPOINTS",loading_sequences:"LOADING_SEQUENCES",loading_sequence:"LOADING_SEQUENCE",load_sequence:"LOAD_SEQUENCE",loading_epochs:"LOADING_EPOCHS",load_epoch:"LOAD_EPOCH",set_fps:"SET_FPS",seeking:"SEEKING",pausing:"PAUSING",playing:"PLAYING",current_frame:"CURRENT_FRAME",start_recording:"START_RECORDING",add_record_frame:"ADD_RECORD_FRAME",save_frame:"SAVE_FRAME",saving_video:"SAVING_VIDEO",save_video:"SAVE_VIDEO",set_fullscreen:"SET_FULLSCREEN"},audioPlayer:{play:"AUDIO_PLAY",pause:"AUDIO_PAUSE",resume:"AUDIO_RESUME",enqueue:"AUDIO_ENQUEUE"},dataset:{load:"DATASET_LOAD",set_folder:"DATASET_SET_FOLDER",upload_files:"DATASET_UPLOAD_FILES",file_progress:"DATASET_FILE_PROGRESS",file_uploaded:"DATASET_FILE_UPLOADED",fetch_url:"DATASET_FETCH_URL",fetch_progress:"DATASET_FETCH_PROGRESS",list_epochs:"DATASET_LIST_EPOCHS"},samplernn:{init:"SAMPLERNN_INIT",set_folder:"SAMPLERNN_SET_FOLDER",load_loss:"SAMPLERNN_LOAD_LOSS",load_graph:"SAMPLERNN_LOAD_GRAPH"},biggan:(0,i.with_type)("biggan",["init","set_folder","load_results","load_encodings"]),pix2pix:(0,i.with_type)("pix2pix",["init","set_folder"]),pix2pixhd:(0,i.with_type)("pix2pixhd",["init","set_folder","load_results","load_dataset_count","load_uprez"]),pix2wav:(0,i.with_type)("pix2wav",["init","set_folder"]),wav2pix:(0,i.with_type)("wav2pix",["load","progress","finish","zip","uploading"]),dashboard:(0,i.with_type)("dashboard",["load"]),morph:(0,i.with_type)("morph",["load"])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),r=n(126),o=p(n(19)),s=p(n(38)),a=p(n(81)),u=p(n(135)),l=p(n(62)),c=p(n(52)),h=n(20);function p(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.default=Object.keys(r.actions).map(function(t){return[t,r.actions[t]]}).concat([["live",o],["queue",s],["system",a],["dataset",l],["audioPlayer",c]]).map(function(t){return[t[0],(0,i.bindActionCreators)(t[1],h.store.dispatch)]}).concat([["socket",u]]).reduce(function(t,e){return(t[e[0]]=e[1])&&t},{})},function(t,e,n){"use strict";n.r(e);var i=n(9),r=n.n(i),o=n(5),s=n(0),a=n.n(s),u=n(146),l=n.n(u),c=n(13),h=n.n(c),p=n(12),f=n.n(p),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var y=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=m(this,t.call.apply(t,[this].concat(o))),i.state={match:i.computeMatch(i.props.history.location.pathname)},m(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:d({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,n=e.children,i=e.history;f()(null==n||1===o.d.Children.count(n),"A <Router> may have only one child element"),this.unlisten=i.listen(function(){t.setState({match:t.computeMatch(i.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){h()(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?o.d.Children.only(t):null},e}(o.d.Component);y.propTypes={history:a.a.object.isRequired,children:a.a.node},y.contextTypes={router:a.a.object},y.childContextTypes={router:a.a.object.isRequired};var _=y,v=_;function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var b=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=g(this,t.call.apply(t,[this].concat(o))),i.history=l()(i.props),g(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){r()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(v,{history:this.history,children:this.props.children})},e}(o.d.Component);b.propTypes={basename:a.a.string,forceRefresh:a.a.bool,getUserConfirmation:a.a.func,keyLength:a.a.number,children:a.a.node};var w=b,k=n(145),S=n.n(k);function x(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var T=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=x(this,t.call.apply(t,[this].concat(o))),i.history=S()(i.props),x(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){r()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(v,{history:this.history,children:this.props.children})},e}(o.d.Component);T.propTypes={basename:a.a.string,getUserConfirmation:a.a.func,hashType:a.a.oneOf(["hashbang","noslash","slash"]),children:a.a.node};var O=T,P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var C=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},E=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=A(this,t.call.apply(t,[this].concat(o))),i.handleClick=function(t){if(i.props.onClick&&i.props.onClick(t),!t.defaultPrevented&&0===t.button&&!i.props.target&&!C(t)){t.preventDefault();var e=i.context.router.history,n=i.props,r=n.replace,o=n.to;r?e.replace(o):e.push(o)}},A(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=t.innerRef,i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>");var r=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return o.d.createElement("a",P({},i,{onClick:this.handleClick,href:r,ref:n}))},e}(o.d.Component);E.propTypes={onClick:a.a.func,target:a.a.string,replace:a.a.bool,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired,innerRef:a.a.oneOfType([a.a.string,a.a.func])},E.defaultProps={replace:!1},E.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired,createHref:a.a.func.isRequired}).isRequired}).isRequired};var M=E,R=n(88),j=n(87),N=function(t){var e=t.pathname,n=t.search,i=t.hash,r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},F=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},L=function(t,e,n,i){var r=void 0;"string"==typeof t?(r=function(t){var e=t||"/",n="",i="",r=e.indexOf("#");-1!==r&&(i=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i}}(t)).state=e:(void 0===(r=F({},t)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(r.key=n),i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=Object(R.default)(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r},D=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(j.default)(t.state,e.state)},q=function(){var t=null,e=[];return{setPrompt:function(e){return r()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,i,o){if(null!=t){var s="function"==typeof t?t(e,n):t;"string"==typeof s?"function"==typeof i?i(s,o):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==s)}else o(!0)},appendListener:function(t){var n=!0,i=function(){n&&t.apply(void 0,arguments)};return e.push(i),function(){n=!1,e=e.filter(function(t){return t!==i})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];e.forEach(function(t){return t.apply(void 0,n)})}}},I=("undefined"==typeof window||!window.document||window.document.createElement,"function"==typeof Symbol&&Symbol.iterator,Object.assign,Object.assign,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),B=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},U=function(t,e,n){return Math.min(Math.max(t,e),n)},z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,i=void 0===n?["/"]:n,o=t.initialIndex,s=void 0===o?0:o,a=t.keyLength,u=void 0===a?6:a,l=q(),c=function(t){B(y,t),y.length=y.entries.length,l.notifyListeners(y.location,y.action)},h=function(){return Math.random().toString(36).substr(2,u)},p=U(s,0,i.length-1),f=i.map(function(t){return L(t,void 0,"string"==typeof t?h():t.key||h())}),d=N,m=function(t){var n=U(y.index+t,0,y.entries.length-1),i=y.entries[n];l.confirmTransitionTo(i,"POP",e,function(t){t?c({action:"POP",location:i,index:n}):c()})},y={length:f.length,action:"POP",location:f[p],index:p,entries:f,createHref:d,push:function(t,n){r()(!("object"===(void 0===t?"undefined":I(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=L(t,n,h(),y.location);l.confirmTransitionTo(i,"PUSH",e,function(t){if(t){var e=y.index+1,n=y.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),c({action:"PUSH",location:i,index:e,entries:n})}})},replace:function(t,n){r()(!("object"===(void 0===t?"undefined":I(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=L(t,n,h(),y.location);l.confirmTransitionTo(i,"REPLACE",e,function(t){t&&(y.entries[y.index]=i,c({action:"REPLACE",location:i}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(t){var e=y.index+t;return e>=0&&e<y.entries.length},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return y};function Y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var W=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=Y(this,t.call.apply(t,[this].concat(o))),i.history=z(i.props),Y(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){h()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(_,{history:this.history,children:this.props.children})},e}(o.d.Component);W.propTypes={initialEntries:a.a.array,initialIndex:a.a.number,getUserConfirmation:a.a.func,keyLength:a.a.number,children:a.a.node};var G=W,V=n(63),H=n.n(V),Z={},Q=0,K=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof e&&(e={path:e});var i=e,r=i.path,o=i.exact,s=void 0!==o&&o,a=i.strict,u=void 0!==a&&a,l=i.sensitive,c=void 0!==l&&l;if(null==r)return n;var h=function(t,e){var n=""+e.end+e.strict+e.sensitive,i=Z[n]||(Z[n]={});if(i[t])return i[t];var r=[],o={re:H()(t,r,e),keys:r};return Q<1e4&&(i[t]=o,Q++),o}(r,{end:s,strict:u,sensitive:c}),p=h.re,f=h.keys,d=p.exec(t);if(!d)return null;var m=d[0],y=d.slice(1),_=t===m;return s&&!_?null:{path:r,url:"/"===r&&""===m?"/":m,isExact:_,params:f.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}},$=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function X(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var J=function(t){return 0===o.d.Children.count(t)},tt=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=X(this,t.call.apply(t,[this].concat(o))),i.state={match:i.computeMatch(i.props,i.context.router)},X(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:$({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,i=t.location,r=t.path,o=t.strict,s=t.exact,a=t.sensitive;if(n)return n;f()(e,"You should not use <Route> or withRouter() outside a <Router>");var u=e.route,l=(i||u.location).pathname;return K(l,{path:r,strict:o,exact:s,sensitive:a},u.match)},e.prototype.componentWillMount=function(){h()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),h()(!(this.props.component&&this.props.children&&!J(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),h()(!(this.props.render&&this.props.children&&!J(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){h()(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),h()(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,i=e.component,r=e.render,s=this.context.router,a=s.history,u=s.route,l=s.staticContext,c={match:t,location:this.props.location||u.location,history:a,staticContext:l};return i?t?o.d.createElement(i,c):null:r?t?r(c):null:"function"==typeof n?n(c):n&&!J(n)?o.d.Children.only(n):null},e}(o.d.Component);tt.propTypes={computedMatch:a.a.object,path:a.a.string,exact:a.a.bool,strict:a.a.bool,sensitive:a.a.bool,component:a.a.func,render:a.a.func,children:a.a.oneOfType([a.a.func,a.a.node]),location:a.a.object},tt.contextTypes={router:a.a.shape({history:a.a.object.isRequired,route:a.a.object.isRequired,staticContext:a.a.object})},tt.childContextTypes={router:a.a.object.isRequired};var et=tt,nt=et,it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var ot=function(t){var e=t.to,n=t.exact,i=t.strict,r=t.location,s=t.activeClassName,a=t.className,u=t.activeStyle,l=t.style,c=t.isActive,h=t.ariaCurrent,p=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return o.d.createElement(nt,{path:"object"===(void 0===e?"undefined":rt(e))?e.pathname:e,exact:n,strict:i,location:r,children:function(t){var n=t.location,i=t.match,r=!!(c?c(i,n):i);return o.d.createElement(M,it({to:e,className:r?[a,s].filter(function(t){return t}).join(" "):a,style:r?it({},l,u):l,"aria-current":r&&h},p))}})};ot.propTypes={to:M.propTypes.to,exact:a.a.bool,strict:a.a.bool,location:a.a.object,activeClassName:a.a.string,className:a.a.string,activeStyle:a.a.object,style:a.a.object,isActive:a.a.func,ariaCurrent:a.a.oneOf(["page","step","location","true"])},ot.defaultProps={activeClassName:"active",ariaCurrent:"true"};var st=ot;var at=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(o.d.Component);at.propTypes={when:a.a.bool,message:a.a.oneOfType([a.a.func,a.a.string]).isRequired},at.defaultProps={when:!0},at.contextTypes={router:a.a.shape({history:a.a.shape({block:a.a.func.isRequired}).isRequired}).isRequired};var ut=at,lt={},ct=0,ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:function(t){var e=t,n=lt[e]||(lt[e]={});if(n[t])return n[t];var i=H.a.compile(t);return ct<1e4&&(n[t]=i,ct++),i}(t)(e,{pretty:!0})},pt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};var ft=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=L(t.to),n=L(this.props.to);D(e,n)?h()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},e.prototype.computeTo=function(t){var e=t.computedMatch,n=t.to;return e?"string"==typeof n?ht(n,e.params):pt({},n,{pathname:ht(n.pathname,e.params)}):n},e.prototype.perform=function(){var t=this.context.router.history,e=this.props.push,n=this.computeTo(this.props);e?t.push(n):t.replace(n)},e.prototype.render=function(){return null},e}(o.d.Component);ft.propTypes={computedMatch:a.a.object,push:a.a.bool,from:a.a.string,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired},ft.defaultProps={push:!1},ft.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired}).isRequired,staticContext:a.a.object}).isRequired};var dt=ft,mt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function yt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var _t=function(t){return"/"===t.charAt(0)?t:"/"+t},vt=function(t,e){return t?mt({},e,{pathname:_t(t)+e.pathname}):e},gt=function(t){return"string"==typeof t?t:N(t)},bt=function(t){return function(){f()(!1,"You cannot %s with <StaticRouter>",t)}},wt=function(){},kt=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=yt(this,t.call.apply(t,[this].concat(o))),i.createHref=function(t){return _t(i.props.basename+gt(t))},i.handlePush=function(t){var e=i.props,n=e.basename,r=e.context;r.action="PUSH",r.location=vt(n,L(t)),r.url=gt(r.location)},i.handleReplace=function(t){var e=i.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=vt(n,L(t)),r.url=gt(r.location)},i.handleListen=function(){return wt},i.handleBlock=function(){return wt},yt(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.componentWillMount=function(){h()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["basename","context","location"]),r={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=_t(t);return 0!==e.pathname.indexOf(n)?e:mt({},e,{pathname:e.pathname.substr(n.length)})}(e,L(n)),push:this.handlePush,replace:this.handleReplace,go:bt("go"),goBack:bt("goBack"),goForward:bt("goForward"),listen:this.handleListen,block:this.handleBlock};return o.d.createElement(_,mt({},i,{history:r}))},e}(o.d.Component);kt.propTypes={basename:a.a.string,context:a.a.object.isRequired,location:a.a.oneOfType([a.a.string,a.a.object])},kt.defaultProps={basename:"",location:"/"},kt.childContextTypes={router:a.a.object.isRequired};var St=kt;var xt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){h()(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),h()(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,i=void 0,r=void 0;return o.d.Children.forEach(e,function(e){if(null==i&&o.d.isValidElement(e)){var s=e.props,a=s.path,u=s.exact,l=s.strict,c=s.sensitive,h=s.from,p=a||h;r=e,i=K(n.pathname,{path:p,exact:u,strict:l,sensitive:c},t.match)}}),i?o.d.cloneElement(r,{location:n,computedMatch:i}):null},e}(o.d.Component);xt.contextTypes={router:a.a.shape({route:a.a.object.isRequired}).isRequired},xt.propTypes={children:a.a.node,location:a.a.object};var Tt=xt,Ot=K,Pt=n(144),At=n.n(Pt),Ct=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};var Et=function(t){var e=function(e){var n=e.wrappedComponentRef,i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["wrappedComponentRef"]);return o.d.createElement(et,{children:function(e){return o.d.createElement(t,Ct({},i,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:a.a.func},At()(e,t)};n.d(e,"BrowserRouter",function(){return w}),n.d(e,"HashRouter",function(){return O}),n.d(e,"Link",function(){return M}),n.d(e,"MemoryRouter",function(){return G}),n.d(e,"NavLink",function(){return st}),n.d(e,"Prompt",function(){return ut}),n.d(e,"Redirect",function(){return dt}),n.d(e,"Route",function(){return nt}),n.d(e,"Router",function(){return v}),n.d(e,"StaticRouter",function(){return St}),n.d(e,"Switch",function(){return Tt}),n.d(e,"matchPath",function(){return Ot}),n.d(e,"withRouter",function(){return Et})},function(t,e,n){"use strict";t.exports=function(){}},function(t,e,n){"use strict";var i=n(24),r=n(113),o=n(57),s=n(207),a=n(45);function u(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}e.newBlob=function(t,n){e.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(n)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function h(t){var n=65536,i=e.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;n>1;)try{return c.stringifyByChunk(t,i,n)}catch(t){n=Math.floor(n/2)}return c.stringifyByChar(t)}function p(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}e.applyFromCharCode=h;var f={};f.string={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},f.array={string:h,array:u,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},f.arraybuffer={string:function(t){return h(new Uint8Array(t))},array:function(t){return p(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:u,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:h,array:function(t){return p(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:u,nodebuffer:function(t){return o.newBufferFrom(t)}},f.nodebuffer={string:h,array:function(t){return p(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return p(t,new Uint8Array(t.length))},nodebuffer:u},e.transformTo=function(t,n){if(n||(n=""),!t)return n;e.checkSupport(t);var i=e.getTypeOf(n);return f[i][t](n)},e.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},e.delay=function(t,e,n){s(function(){t.apply(n||null,e||[])})},e.inherits=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n},e.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},e.prepareContent=function(t,n,o,s,u){return a.Promise.resolve(n).then(function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise(function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)}):t}).then(function(n){var c,h=e.getTypeOf(n);return h?("arraybuffer"===h?n=e.transformTo("uint8array",n):"string"===h&&(u?n=r.decode(n):o&&!0!==s&&(n=l(c=n,i.uint8array?new Uint8Array(c.length):new Array(c.length)))),n):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.AugmentationGrid=e.ButtonGrid=e.TaskList=e.CurrentTask=e.Checkbox=e.Button=e.SelectGroup=e.Select=e.Slider=e.NumberInput=e.TextInput=e.Param=e.ParamGroup=e.Group=e.Browser=e.Player=e.Gallery=e.FileViewer=e.FileUpload=e.FileRow=e.FileList=e.FolderList=e.AudioPlayer=e.Header=e.Progress=e.Loading=e.Views=void 0;var i=E(n(263)),r=E(n(262)),o=E(n(261)),s=E(n(51)),a=E(n(127)),u=E(n(256)),l=E(n(255)),c=n(21),h=E(n(125)),p=E(n(254)),f=E(n(124)),d=E(n(253)),m=E(n(25)),y=E(n(252)),_=E(n(17)),v=E(n(159)),g=E(n(39)),b=E(n(158)),w=E(n(92)),k=E(n(123)),S=E(n(55)),x=E(n(157)),T=E(n(66)),O=E(n(156)),P=E(n(49)),A=E(n(155)),C=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(154));function E(t){return t&&t.__esModule?t:{default:t}}e.Views=C,e.Loading=_.default,e.Progress=k.default,e.Header=y.default,e.AudioPlayer=i.default,e.FolderList=f.default,e.FileList=c.FileList,e.FileRow=c.FileRow,e.FileUpload=h.default,e.FileViewer=p.default,e.Gallery=d.default,e.Player=w.default,e.Browser=o.default,e.Group=m.default,e.ParamGroup=b.default,e.Param=g.default,e.TextInput=P.default,e.NumberInput=v.default,e.Slider=T.default,e.Select=S.default,e.SelectGroup=x.default,e.Button=s.default,e.Checkbox=u.default,e.CurrentTask=l.default,e.TaskList=O.default,e.ButtonGrid=a.default,e.AugmentationGrid=r.default,e.Timeline=A.default},function(t,e,n){"use strict";t.exports=function(t,e,n,i,r,o,s,a){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,r,o,s,a],c=0;(u=new Error(e.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(t,e,n){"use strict";var i=function(){};t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(20),s=n(6),a=(i=s)&&i.__esModule?i:{default:i},u=n(41),l=d(n(135)),c=d(n(274)),h=d(n(273)),p=d(n(267)),f=d(n(266));function d(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.default={socket:u.socket,actions:l,system:c,live:h,task:p,api:f},u.socket.on("status",function(t){switch(console.log("got status",t.key,t.value),o.store.dispatch(r({type:a.default.socket.status},t)),t.key){case"processing":o.store.dispatch(r({type:"SET_PARAM"},t))}})},function(t,e,n){var i,r,o=n(276),s=n(275),a=0,u=0;t.exports=function(t,e,n){var l=e&&n||0,c=e||[],h=(t=t||{}).node||i,p=void 0!==t.clockseq?t.clockseq:r;if(null==h||null==p){var f=o();null==h&&(h=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=r=16383&(f[6]<<8|f[7]))}var d=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:u+1,y=d-a+(m-u)/1e4;if(y<0&&void 0===t.clockseq&&(p=p+1&16383),(y<0||d>a)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=m,r=p;var _=(1e4*(268435455&(d+=122192928e5))+m)%4294967296;c[l++]=_>>>24&255,c[l++]=_>>>16&255,c[l++]=_>>>8&255,c[l++]=255&_;var v=d/4294967296*1e4&268435455;c[l++]=v>>>8&255,c[l++]=255&v,c[l++]=v>>>24&15|16,c[l++]=v>>>16&255,c[l++]=p>>>8|128,c[l++]=255&p;for(var g=0;g<6;++g)c[l+g]=h[g];return e||s(c)}},function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.progress;return(0,r.h)("div",{className:"loading"},"Loading",(0,r.h)("br",null),e&&(0,r.h)(s.default,{progress:e}))};var i,r=n(1),o=n(123),s=(i=o)&&i.__esModule?i:{default:i}},function(t,e,n){t.exports=n(318)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.play=e.pause=e.seek=e.load_epoch=e.load_sequence=e.list_sequences=e.list_epochs=e.list_checkpoints=e.set_fullscreen=e.send_command=e.set_param=e.get_params=void 0;var i=s(n(14)),r=s(n(6)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(40));function s(t){return t&&t.__esModule?t:{default:t}}e.get_params=function(){return i.default.live.get_params(),{type:r.default.player.get_params}},e.set_param=function(t,e){return console.log("set param",t,e),i.default.live.set_param(t,e),{type:r.default.player.set_param,key:t,value:e}},e.send_command=function(t,e){return i.default.live.send_command(t,e),{type:r.default.player.send_command}},e.set_fullscreen=function(t){return{type:r.default.player.set_fullscreen,value:t}},e.list_checkpoints=function(t){return i.default.live.list_checkpoints(t),{type:r.default.player.loading_checkpoints}},e.list_epochs=function(t,e){return i.default.live.list_epochs(t,e),{type:r.default.player.loading_epochs}},e.list_sequences=function(t){return i.default.live.list_sequences(t),{type:r.default.player.loading_sequences}},e.load_sequence=function(t){return i.default.live.load_sequence(t),{type:r.default.player.loading_sequence,sequence_name:t}},e.load_epoch=function(t,e){return i.default.live.load_epoch(t,e),{type:r.default.player.loading_checkpoint,checkpoint_name:t,epoch:e}},e.seek=function(t){return i.default.live.seek(t),{type:r.default.player.seeking}},e.pause=function t(e){return i.default.live.pause(t),o.toggleFPS(!1),{type:r.default.player.pausing}},e.play=function(t){return i.default.live.play(),o.toggleFPS(!0),{type:r.default.player.playing}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispatch=e.store=e.history=void 0;var i=n(3),r=n(308),o=m(n(305)),s=m(n(304)),a=m(n(297)),u=m(n(296)),l=m(n(292)),c=m(n(289)),h=m(n(286)),p=m(n(285)),f=m(n(284)),d=n(283);function m(t){return t&&t.__esModule?t:{default:t}}var y=(0,i.combineReducers)({router:r.routerReducer,auth:a.default,live:u.default,queue:l.default,system:c.default,upload:h.default,dashboard:p.default,audioPlayer:f.default,module:d.moduleReducer}),_=e.history=(0,s.default)(),v=e.store=(0,i.createStore)(y,(0,i.compose)((0,i.applyMiddleware)(o.default,(0,r.routerMiddleware)(_))));e.dispatch=v.dispatch},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileRow=e.FileList=void 0;var i=n(1),r=(n(3),n(2),n(8),s(n(29))),o=s(n(4));function s(t){return t&&t.__esModule?t:{default:t}}var a=o.default.fieldSet(new Set(["name","date","size"])),u=(e.FileList=function(t){var e=t.files,n=t.fields,r=(t.sort,t.title),s=t.linkFiles,l=t.onClick,c=t.onClickParent,h=t.onDelete,p=t.groupDirectories,f=t.parentDirectory,d=t.orderBy,m=void 0===d?"name asc":d,y=t.className,_=void 0===y?"":y,v=t.fileListClassName,g=void 0===v?"filelist":v,b=t.rowClassName,w=void 0===b?"row file":b,k=t.options,S=o.default.sort.orderByFn(m),x=S.mapFn,T=S.sortFn,O=(e||[]).filter(function(t){return!!t}).map(x).sort(T);if(p){var P=O.reduce(function(t,e){return t[e[1].dir].push(e),t},{true:[],false:[]});O=P.true.concat(P.false)}var A=a(n),C=null;A.has("thumbnail")&&(C=(0,i.h)("div",{class:"thumbnails"},O.map(function(t){return(0,i.h)("div",null,(0,i.h)("img",{src:t[1].url}))})));var E=O.map(function(t){return(0,i.h)(u,{file:t[1],fields:A,className:w,linkFiles:s,onDelete:h,onClick:l,options:k})});return E&&E.length?(0,i.h)("div",{className:"rows "+_},r&&(0,i.h)("div",{className:"row heading"},(0,i.h)("h3",null,r),"}"),(0,i.h)("div",{className:"rows "+g},f&&(0,i.h)("div",{className:w+" parent"},(0,i.h)("div",{className:"filename",title:"Parent Directory"},(0,i.h)("span",{className:"link",onClick:function(t){return c&&c(t)}},(0,i.h)("i",null,"Parent Directory")))),C,E)):(0,i.h)("div",{className:"rows "+_},(0,i.h)("div",{className:"row heading"},(0,i.h)("h4",{className:"noFiles"},"No files")))},e.FileRow=function(t){var e=t.file,n=t.linkFiles,s=t.onDelete,u=t.onClick,l=t.className,c=void 0===l?"row file":l,h=t.username,p=void 0===h?"":h,f=t.options,d=a(t.fields),m=o.default.hush_size(e.size),y=e.date||e.created_at,_=e.epoch||e.epochs||0,v=e.count||0,g=void 0,b=void 0;return e.name?b=g=e.name:e.url&&(e.opt&&e.opt.type?(g=e.opt.type+": "+e.opt.title,b=e.opt.token):b=g=e.url.replace(/^https?:\/\//,"")),(0,i.h)("div",{className:c,key:b},d.has("name")&&(0,i.h)("div",{className:"filename",title:e.name||e.url},!1===e.persisted?(0,i.h)("span",{className:"unpersisted"},g):n&&e.url?(0,i.h)("a",{target:"_blank",onClick:function(t){t.metaKey||t.ctrlKey||t.altKey||!u||(t.preventDefault(),u&&u(e,t))},href:e.url},g):(0,i.h)("span",{className:"link",onClick:function(t){return u&&u(e,t)}},g)),d.has("age")&&(0,i.h)("div",{className:"age "+o.default.carbon_date(y)},o.default.get_age(y)),d.has("username")&&(0,i.h)("div",{className:"username"},p),d.has("epoch")&&(0,i.h)("div",{className:"epoch "+o.default.hush_null(_)[0]},_>0?"ep. "+_:""),d.has("date")&&(0,i.h)("div",{className:"date "+o.default.carbon_date(y),title:(0,r.default)(y).format("YYYY-MM-DD HH:mm")},(0,r.default)(y).format("YYYY-MM-DD")),d.has("datetime")&&(0,i.h)("div",{className:"datetime"},(0,i.h)("span",{class:"date "+o.default.carbon_date(y)},(0,r.default)(y).format("YYYY-MM-DD")),(0,i.h)("span",{class:"time "+o.default.carbon_time(y)},(0,r.default)(y).format("H:mm"))),d.has("size")&&(0,i.h)("div",{className:"size "+m[0]},m[1]),d.has("count")&&(0,i.h)("div",{className:"count "+o.default.hush_null(v)[0]},v>0?v+" files":""),(d.has("activity")||d.has("module"))&&(0,i.h)("div",{className:"activity"},d.has("activity")&&e.activity,d.has("module")&&e.module),d.has("delete")&&s&&e.id&&(0,i.h)("div",{className:"destroy",onClick:function(t){return s(e)}},"x"),d.has("deleteLink")&&s&&e.id&&(0,i.h)("div",{className:"destroyLink",onClick:function(t){return s(e)}},"Delete"),f&&t.options(e))})},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,s;for(i=0,e=0,n=t.length;e<n;e++)i+=t[e].length;for(s=new Uint8Array(i),r=0,e=0,n=t.length;e<n;e++)o=t[e],s.set(o,r),r+=o.length;return s}},s={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,n){"use strict";(function(t){if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,e.nodebuffer=void 0!==t,e.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)e.blob=!1;else{var i=new ArrayBuffer(0);try{e.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),e.blob=0===r.getBlob("application/zip").size}catch(t){e.blob=!1}}}try{e.nodestream=!!n(119).Readable}catch(t){e.nodestream=!1}}).call(this,n(47).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.h)("div",{className:"group"},this.props.title&&(0,i.h)("h3",null,this.props.title),this.props.children)};var i=n(1)},function(t,e,n){"use strict";var i=n(59),r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var o=n(46);o.inherits=n(30);var s=n(118),a=n(73);o.inherits(h,s);for(var u=r(a.prototype),l=0;l<u.length;l++){var c=u[l];h.prototype[c]||(h.prototype[c]=a.prototype[c])}function h(t){if(!(this instanceof h))return new h(t);s.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||i.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),i.nextTick(e,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(1),o=(n(3),n(2)),s=c(n(4)),a=c(n(7)),u=n(21),l=c(n(17));function c(t){return t&&t.__esModule?t:{default:t}}var h=s.default.fieldSet(new Set(["input","status","checkpoint","output"])),p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){var t=this.props,e=t.loading,n=t.progress,i=t.fields,o=t.module,s=t.data,a=t.folder,u=(t.match,t.history);return e?(0,r.h)(l.default,{progress:n}):s.folders.length?a&&a.name?(console.log(i),i=h(i),(0,r.h)("div",{className:"rows params datasets"},(0,r.h)("div",{className:"row row-heading dataset"},i.has("input")&&(0,r.h)("div",{className:"col input"},"input"),i.has("status")&&(0,r.h)("div",{className:"col status"},"status"),i.has("checkpoint")&&(0,r.h)("div",{className:"col checkpoint"},"checkpoint"),i.has("output")&&(0,r.h)("div",{className:"col output"},"output")),this.renderGroups())):void 0:(console.log("no folders, redirect to /new"),u.push("/"+o.name+"/new/"))}},{key:"renderGroups",value:function(){var t=this,e=this.props,n=e.module,i=e.data,o=e.folder,a=e.fields,l=e.inputFields,c=e.outputFields,p=e.runner,f=e.onPickDataset,d=e.onPickFile;e.datasetActions;a=h(a);var m=i.datasetLookup,y=i.fileLookup;if(!m)return(0,r.h)("div",null);var _=s.default.sort.orderByFn("date desc"),v=_.mapFn,g=_.sortFn,b=p&&p.cpu.task&&p.cpu.task.module===n.name,w=p&&p.gpu.task&&p.gpu.task.module===n.name;return o.datasets.map(function(t){return m[t]}).map(v).sort(g).map(function(e){var n=e[1],i="",o=!1,h=!1;return w&&p.gpu.task.dataset===n?(i=s.default.gerund(p.gpu.task.activity),o=!0):b&&"fetch"===p.cpu.task.activity&&p.cpu.task.opt.file_id===n.input[0]&&(o=!0,h=!0),(0,r.h)("div",{key:n.name,className:"row dataset",onClick:function(){return f&&f(n)}},t.props.beforeRow&&t.props.beforeRow(n),a.has("input")&&(0,r.h)("div",{className:"col input"},!!n.input.length&&(0,r.h)(u.FileList,{files:n.input.map(function(t){return y[t]}),className:"input_files",fileListClassName:"",rowClassName:"input_file",fields:l||"name date size delete",linkFiles:!0,onClick:d,onDelete:function(e){return t.onDeleteFile(e)}})),a.has("status")&&(0,r.h)("div",{className:["col","status","quiet",n.isBuilt?"built":"not_built",o?"processing":"not_processing"].join(" ")},t.props.datasetActions&&t.props.datasetActions(n,h,o),i),a.has("checkpoint")&&(0,r.h)("div",{className:"col checkpoint"},!!n.checkpoints.length&&(0,r.h)(u.FileRow,{file:n.checkpoints[0],fields:"name date epoch",className:"row checkpoint"})),a.has("output")&&(0,r.h)("div",{className:"col output"},!!n.output.length&&(0,r.h)(u.FileList,{files:n.output.map(function(t){return y[t]}),orderBy:"epoch desc",fields:c||"name date epoch size",linkFiles:!0,onClick:d,onDelete:function(e){return t.onDeleteFile(e)}})),t.props.afterRow&&t.props.afterRow(n))})}},{key:"onDeleteFile",value:function(t){confirm("Are you sure you want to delete this file?")&&(console.log("delete: confirmed"),this.props.onDeleteFile?(console.log("calling custom deletefile function"),this.props.onDeleteFile(t)):a.default.file.destroy(t))}}]),e}();e.default=(0,o.connect)(function(t){return{runner:t.system.runner}},function(t,e){return{}})(p)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(3),o=n(2),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(62)),a=l(n(17)),u=l(n(49));function l(t){return t&&t.__esModule?t:{default:t}}e.default=(0,o.connect)(function(t){return{}},function(t,e){return{actions:(0,r.bindActionCreators)(s,t)}})(function(t){var e=t.loading,n=(t.status,t.error,t.history,t.actions),r=t.module;return e?(0,i.h)(a.default,null):(console.log(t),(0,i.h)("div",{className:"opaque"},(0,i.h)("div",{className:"heading"},(0,i.h)("h2",null,"Create a new ",r.displayName," project")),(0,i.h)("div",{className:"params"},(0,i.h)(u.default,{autofocus:!0,title:"Name your project",onSave:function(t){n.createFolder(r,t).then(function(t){window.location.href="/"+r.name+"/datasets/"+t.id+"/"})}}))))})},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Oe(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function d(t){if(null==t._isValid){var e=f(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=p(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var y=i.momentProperties=[];function _(t,e){var n,i,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),0<y.length)for(n=0;n<y.length;n++)s(r=e[i=y[n]])||(t[i]=r);return t}var v=!1;function g(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function b(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=w(e)),n}function S(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&k(t[i])!==k(e[i]))&&s++;return s+o}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return h(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(var a in r+="\n["+s+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var O,P={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),P[t]||(x(e),P[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var n,i=h({},t);for(n in e)c(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},h(i[n],t[n]),h(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)c(t,n)&&!c(e,n)&&o(t[n])&&(i[n]=h({},i[n]));return i}function M(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var R={};function j(t,e){var n=t.toLowerCase();R[n]=R[n+"s"]=R[e]=t}function N(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function F(t){var e,n,i={};for(n in t)c(t,n)&&(e=N(n))&&(i[e]=t[n]);return i}var L={};function D(t,e){L[t]=e}function q(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},z={};function Y(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(z[t]=r),e&&(z[e[0]]=function(){return q(r.apply(this,arguments),e[1],e[2])}),n&&(z[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function W(t,e){return t.isValid()?(e=G(e,t.localeData()),U[e]=U[e]||function(t){var e,n,i,r=t.match(I);for(e=0,n=r.length;e<n;e++)z[r[e]]?r[e]=z[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=C(r[i])?r[i].call(e,t):r[i];return o}}(e),U[e](t)):t.localeData().invalidDate()}function G(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(B.lastIndex=0;0<=n&&B.test(t);)t=t.replace(B,i),B.lastIndex=0,n-=1;return t}var V=/\d/,H=/\d\d/,Z=/\d{3}/,Q=/\d{4}/,K=/[+-]?\d{6}/,$=/\d\d?/,X=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,nt=/[+-]?\d{1,6}/,it=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ut={};function lt(t,e,n){ut[t]=C(e)?e:function(t,i){return t&&n?n:e}}function ct(t,e){return c(ut,t)?ut[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),a(e)&&(i=function(t,n){n[e]=k(t)}),n=0;n<t.length;n++)pt[t[n]]=i}function dt(t,e){ft(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}var mt=0,yt=1,_t=2,vt=3,gt=4,bt=5,wt=6,kt=7,St=8;function xt(t){return Tt(t)?366:365}function Tt(t){return t%4==0&&t%100!=0||t%400==0}Y("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),j("year","y"),D("year",1),lt("Y",rt),lt("YY",$,H),lt("YYYY",et,Q),lt("YYYYY",nt,K),lt("YYYYYY",nt,K),ft(["YYYYY","YYYYYY"],mt),ft("YYYY",function(t,e){e[mt]=2===t.length?i.parseTwoDigitYear(t):k(t)}),ft("YY",function(t,e){e[mt]=i.parseTwoDigitYear(t)}),ft("Y",function(t,e){e[mt]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var Ot,Pt=At("FullYear",!0);function At(t,e){return function(n){return null!=n?(Et(this,t,n),i.updateOffset(this,e),this):Ct(this,t)}}function Ct(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Et(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Mt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Mt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?Tt(t)?29:28:31-n%7%2}Ot=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Y("MMMM",0,0,function(t){return this.localeData().months(this,t)}),j("month","M"),D("month",8),lt("M",$),lt("MM",$,H),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),ft(["M","MM"],function(t,e){e[yt]=k(t)-1}),ft(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[yt]=r:f(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ft(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!a(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Mt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Lt(t){return null!=t?(Ft(this,t),i.updateOffset(this,!0),this):Ct(this,"Month")}var Dt=at,qt=at;function It(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],o=[];for(e=0;e<12;e++)n=p([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)i[e]=ht(i[e]),r[e]=ht(r[e]);for(e=0;e<24;e++)o[e]=ht(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Ut(t,e,n){var i=7+e-n;return-(7+Bt(t,0,i).getUTCDay()-e)%7+i-1}function zt(t,e,n,i,r){var o,s,a=1+7*(e-1)+(7+n-i)%7+Ut(t,i,r);return a<=0?s=xt(o=t-1)+a:a>xt(t)?(o=t+1,s=a-xt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Yt(t,e,n){var i,r,o=Ut(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Wt(r=t.year()-1,e,n):s>Wt(t.year(),e,n)?(i=s-Wt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Wt(t,e,n){var i=Ut(t,e,n),r=Ut(t+1,e,n);return(xt(t)-i+r)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),D("week",5),D("isoWeek",5),lt("w",$),lt("ww",$,H),lt("W",$),lt("WW",$,H),dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)}),Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),D("day",11),D("weekday",11),D("isoWeekday",11),lt("d",$),lt("e",$),lt("E",$),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),dt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),dt(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=at,Qt=at,Kt=at;function $t(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],u=[],l=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),u.push(o),l.push(i),l.push(r),l.push(o);for(s.sort(t),a.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)a[e]=ht(a[e]),u[e]=ht(u[e]),l[e]=ht(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Xt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Xt.apply(this)+q(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Xt.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),j("hour","h"),D("hour",13),lt("a",te),lt("A",te),lt("H",$),lt("h",$),lt("k",$),lt("HH",$,H),lt("hh",$,H),lt("kk",$,H),lt("hmm",X),lt("hmmss",J),lt("Hmm",X),lt("Hmmss",J),ft(["H","HH"],vt),ft(["k","kk"],function(t,e,n){var i=k(t);e[vt]=24===i?0:i}),ft(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ft(["h","hh"],function(t,e,n){e[vt]=k(t),f(n).bigHour=!0}),ft("hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i)),f(n).bigHour=!0}),ft("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i,2)),e[bt]=k(t.substr(r)),f(n).bigHour=!0}),ft("Hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i))}),ft("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i,2)),e[bt]=k(t.substr(r))});var ee,ne=At("Hours",!0),ie={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:jt,monthsShort:Nt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Ht,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},re={},oe={};function se(t){return t?t.toLowerCase().replace("_","-"):t}function ae(e){var n=null;if(!re[e]&&void 0!==t&&t&&t.exports)try{n=ee._abbr,function(){var t=new Error('Cannot find module "undefined"');throw t.code="MODULE_NOT_FOUND",t}(),ue(n)}catch(e){}return re[e]}function ue(t,e){var n;return t&&((n=s(e)?ce(t):le(t,e))?ee=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ee._abbr}function le(t,e){if(null!==e){var n,i=ie;if(e.abbr=t,null!=re[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=re[t]._config;else if(null!=e.parentLocale)if(null!=re[e.parentLocale])i=re[e.parentLocale]._config;else{if(null==(n=ae(e.parentLocale)))return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;i=n._config}return re[t]=new M(E(i,e)),oe[t]&&oe[t].forEach(function(t){le(t.name,t.config)}),ue(t),re[t]}return delete re[t],null}function ce(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ee;if(!r(t)){if(e=ae(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=se(t[o]).split("-")).length,n=(n=se(t[o+1]))?n.split("-"):null;0<e;){if(i=ae(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&S(r,n,!0)>=e-1)break;e--}o++}return ee}(t)}function he(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||11<n[yt]?yt:n[_t]<1||n[_t]>Mt(n[mt],n[yt])?_t:n[vt]<0||24<n[vt]||24===n[vt]&&(0!==n[gt]||0!==n[bt]||0!==n[wt])?vt:n[gt]<0||59<n[gt]?gt:n[bt]<0||59<n[bt]?bt:n[wt]<0||999<n[wt]?wt:-1,f(t)._overflowDayOfYear&&(e<mt||_t<e)&&(e=_t),f(t)._overflowWeeks&&-1===e&&(e=kt),f(t)._overflowWeekday&&-1===e&&(e=St),f(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function fe(t){var e,n,r,o,s,a=[];if(!t._d){var u,l;for(u=t,l=new Date(i.now()),r=u._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[_t]&&null==t._a[yt]&&function(t){var e,n,i,r,o,s,a,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,n=pe(e.GG,t._a[mt],Yt(Pe(),1,4).year),i=pe(e.W,1),((r=pe(e.E,1))<1||7<r)&&(u=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var l=Yt(Pe(),o,s);n=pe(e.gg,t._a[mt],l.year),i=pe(e.w,l.week),null!=e.d?((r=e.d)<0||6<r)&&(u=!0):null!=e.e?(r=e.e+o,(e.e<0||6<e.e)&&(u=!0)):r=o}i<1||i>Wt(n,o,s)?f(t)._overflowWeeks=!0:null!=u?f(t)._overflowWeekday=!0:(a=zt(n,i,r,o,s),t._a[mt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=pe(t._a[mt],r[mt]),(t._dayOfYear>xt(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Bt(s,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[gt]&&0===t._a[bt]&&0===t._a[wt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?Bt:function(t,e,n,i,r,o,s){var a=new Date(t,e,n,i,r,o,s);return t<100&&0<=t&&isFinite(a.getFullYear())&&a.setFullYear(t),a}).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var de=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ve=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ge=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,i,r,o,s,a=t._i,u=de.exec(a)||me.exec(a);if(u){for(f(t).iso=!0,e=0,n=_e.length;e<n;e++)if(_e[e][1].exec(u[1])){r=_e[e][0],i=!1!==_e[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(u[3])){o=(u[2]||" ")+ve[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(u[4]){if(!ye.exec(u[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),xe(t)}else t._isValid=!1}var we=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ke={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Se(t){var e,n,i,r=we.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(r){var o=function(t,e,n,i,r,o){var s=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Nt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}(r[4],r[3],r[2],r[5],r[6],r[7]);if(e=r[1],n=o,i=t,e&&Vt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(f(i).weekdayMismatch=!0,!(i._isValid=!1)))return;t._a=o,t._tzm=function(t,e,n){if(t)return ke[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(r[8],r[9],r[10]),t._d=Bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function xe(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,o,s,a,u,l,h=""+t._i,p=h.length,d=0;for(r=G(t._f,t._locale).match(I)||[],e=0;e<r.length;e++)o=r[e],(n=(h.match(ct(o,t))||[])[0])&&(0<(s=h.substr(0,h.indexOf(n))).length&&f(t).unusedInput.push(s),h=h.slice(h.indexOf(n)+n.length),d+=n.length),z[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),a=o,l=t,null!=(u=n)&&c(pt,a)&&pt[a](u,l._a,l,a)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=p-d,0<h.length&&f(t).unusedInput.push(h),t._a[vt]<=12&&!0===f(t).bigHour&&0<t._a[vt]&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[vt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0)),e)}(t._locale,t._a[vt],t._meridiem),fe(t),he(t)}else Se(t);else be(t)}function Te(t){var e,n,c,p,y=t._i,v=t._f;return t._locale=t._locale||ce(t._l),null===y||void 0===v&&""===y?m({nullInput:!0}):("string"==typeof y&&(t._i=y=t._locale.preparse(y)),b(y)?new g(he(y)):(u(y)?t._d=y:r(v)?function(t){var e,n,i,r,o;if(0===t._f.length)return f(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)o=0,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],xe(e),d(e)&&(o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,(null==i||o<i)&&(i=o,n=e));h(t,n||e)}(t):v?xe(t):s(n=(e=t)._i)?e._d=new Date(i.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(c=e,null===(p=ge.exec(c._i))?(be(c),!1===c._isValid&&(delete c._isValid,Se(c),!1===c._isValid&&(delete c._isValid,i.createFromInputFallback(c)))):c._d=new Date(+p[1])):r(n)?(e._a=l(n.slice(0),function(t){return parseInt(t,10)}),fe(e)):o(n)?function(t){if(!t._d){var e=F(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),fe(t)}}(e):a(n)?e._d=new Date(n):i.createFromInputFallback(e),d(t)||(t._d=null),t))}function Oe(t,e,n,i,s){var a,u={};return!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||r(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=t,u._f=e,u._strict=i,(a=new g(he(Te(u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Pe(t,e,n,i){return Oe(t,e,n,i,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ae=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Ce=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});function Ee(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Pe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var e=F(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||0,s=e.day||0,a=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ot.call(Me,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Me.length;++i)if(t[Me[i]]){if(n)return!1;parseFloat(t[Me[i]])!==k(t[Me[i]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ce(),this._bubble()}function je(t){return t instanceof Re}function Ne(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Fe(t,e){Y(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+q(~~(t/60),2)+e+q(~~t%60,2)})}Fe("Z",":"),Fe("ZZ",""),lt("Z",st),lt("ZZ",st),ft(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=De(st,t)});var Le=/([\+\-]|\d\d)/gi;function De(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Le)||["-",0,0],r=60*i[1]+k(i[2]);return 0===r?0:"+"===i[0]?r:-r}function qe(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(b(t)||u(t)?t.valueOf():Pe(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Pe(t).local()}function Ie(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ue=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ze=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ye(t,e){var n,i,r,o=t,s=null;return je(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(o={},e?o[e]=t:o.milliseconds=t):(s=Ue.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:k(s[_t])*n,h:k(s[vt])*n,m:k(s[gt])*n,s:k(s[bt])*n,ms:k(Ne(1e3*s[wt]))*n}):(s=ze.exec(t))?(n="-"===s[1]?-1:(s[1],1),o={y:We(s[2],n),M:We(s[3],n),w:We(s[4],n),d:We(s[5],n),h:We(s[6],n),m:We(s[7],n),s:We(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(t,e){var n;return t.isValid()&&e.isValid()?(e=qe(e,t),t.isBefore(e)?n=Ge(t,e):((n=Ge(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Pe(o.from),Pe(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new Re(o),je(t)&&c(t,"_locale")&&(i._locale=t._locale),i}function We(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ge(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ve(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),He(this,Ye(n="string"==typeof n?+n:n,i),t),this}}function He(t,e,n,r){var o=e._milliseconds,s=Ne(e._days),a=Ne(e._months);t.isValid()&&(r=null==r||r,a&&Ft(t,Ct(t,"Month")+a*n),s&&Et(t,"Date",Ct(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Ye.fn=Re.prototype,Ye.invalid=function(){return Ye(NaN)};var Ze=Ve(1,"add"),Qe=Ve(-1,"subtract");function Ke(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function $e(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ce(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xe=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Je(){return this._locale}function tn(t,e){Y(0,[t,t.length],0,e)}function en(t,e,n,i,r){var o;return null==t?Yt(this,i,r).year:((o=Wt(t,i,r))<e&&(e=o),function(t,e,n,i,r){var o=zt(t,e,n,i,r),s=Bt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,t,e,n,i,r))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),D("weekYear",1),D("isoWeekYear",1),lt("G",rt),lt("g",rt),lt("GG",$,H),lt("gg",$,H),lt("GGGG",et,Q),lt("gggg",et,Q),lt("GGGGG",nt,K),lt("ggggg",nt,K),dt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),dt(["gg","GG"],function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),j("quarter","Q"),D("quarter",7),lt("Q",V),ft("Q",function(t,e){e[yt]=3*(k(t)-1)}),Y("D",["DD",2],"Do","date"),j("date","D"),D("date",9),lt("D",$),lt("DD",$,H),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],_t),ft("Do",function(t,e){e[_t]=k(t.match($)[0])});var nn=At("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),D("dayOfYear",4),lt("DDD",tt),lt("DDDD",Z),ft(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),Y("m",["mm",2],0,"minute"),j("minute","m"),D("minute",14),lt("m",$),lt("mm",$,H),ft(["m","mm"],gt);var rn=At("Minutes",!1);Y("s",["ss",2],0,"second"),j("second","s"),D("second",15),lt("s",$),lt("ss",$,H),ft(["s","ss"],bt);var on,sn=At("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),D("millisecond",16),lt("S",tt,V),lt("SS",tt,H),lt("SSS",tt,Z),on="SSSS";on.length<=9;on+="S")lt(on,it);function an(t,e){e[wt]=k(1e3*("0."+t))}for(on="S";on.length<=9;on+="S")ft(on,an);var un=At("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var ln=g.prototype;function cn(t){return t}ln.add=Ze,ln.calendar=function(t,e){var n=t||Pe(),r=qe(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",s=e&&(C(e[o])?e[o].call(this,n):e[o]);return this.format(s||this.localeData().calendar(o,this,Pe(n)))},ln.clone=function(){return new g(this)},ln.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=qe(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=N(e)){case"year":o=Ke(this,i)/12;break;case"month":o=Ke(this,i);break;case"quarter":o=Ke(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:w(o)},ln.endOf=function(t){return void 0===(t=N(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},ln.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)},ln.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Pe(t).isValid())?Ye({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ln.fromNow=function(t){return this.from(Pe(),t)},ln.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Pe(t).isValid())?Ye({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ln.toNow=function(t){return this.to(Pe(),t)},ln.get=function(t){return C(this[t=N(t)])?this[t]():this},ln.invalidAt=function(){return f(this).overflow},ln.isAfter=function(t,e){var n=b(t)?t:Pe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(s(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},ln.isBefore=function(t,e){var n=b(t)?t:Pe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(s(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},ln.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},ln.isSame=function(t,e){var n,i=b(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=N(e||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},ln.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ln.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ln.isValid=function(){return d(this)},ln.lang=Xe,ln.locale=$e,ln.localeData=Je,ln.max=Ce,ln.min=Ae,ln.parsingFlags=function(){return h({},f(this))},ln.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:L[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=F(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(C(this[t=N(t)]))return this[t](e);return this},ln.startOf=function(t){switch(t=N(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},ln.subtract=Qe,ln.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ln.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ln.toDate=function(){return new Date(this.valueOf())},ln.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?W(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=Pt,ln.isLeapYear=function(){return Tt(this.year())},ln.weekYear=function(t){return en.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(t){return en.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ln.month=Lt,ln.daysInMonth=function(){return Mt(this.year(),this.month())},ln.week=ln.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ln.isoWeek=ln.isoWeeks=function(t){var e=Yt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ln.weeksInYear=function(){var t=this.localeData()._week;return Wt(this.year(),t.dow,t.doy)},ln.isoWeeksInYear=function(){return Wt(this.year(),1,4)},ln.date=nn,ln.day=ln.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},ln.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ln.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=(n=t,i=this.localeData(),"string"==typeof n?i.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?e:e-7)}return this.day()||7;var n,i},ln.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ln.hour=ln.hours=ne,ln.minute=ln.minutes=rn,ln.second=ln.seconds=sn,ln.millisecond=ln.milliseconds=un,ln.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=De(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ie(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?He(this,Ye(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ie(this)},ln.utc=function(t){return this.utcOffset(0,t)},ln.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ie(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=De(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=Be,ln.isUTC=Be,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=T("dates accessor is deprecated. Use date instead.",nn),ln.months=T("months accessor is deprecated. Use month instead",Lt),ln.years=T("years accessor is deprecated. Use year instead",Pt),ln.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ln.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(_(t,this),(t=Te(t))._a){var e=t._isUTC?p(t._a):Pe(t._a);this._isDSTShifted=this.isValid()&&0<S(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function pn(t,e,n,i){var r=ce(),o=p().set(i,e);return r[n](o,t)}function fn(t,e,n){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return pn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=pn(t,i,n,"month");return r}function dn(t,e,n,i){"boolean"==typeof t?a(e)&&(n=e,e=void 0):(e=t,t=!1,a(n=e)&&(n=e,e=void 0)),e=e||"";var r,o=ce(),s=t?o._week.dow:0;if(null!=n)return pn(e,(n+s)%7,i,"day");var u=[];for(r=0;r<7;r++)u[r]=pn(e,(r+s)%7,i,"day");return u}hn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return C(i)?i.call(e,n):i},hn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(t){return this._ordinal.replace("%d",t)},hn.preparse=cn,hn.postformat=cn,hn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return C(r)?r(t,e,n,i):r.replace(/%d/i,t)},hn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},hn.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},hn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return function(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,s))?r:null:-1!==(r=Ot.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,s))?r:-1!==(r=Ot.call(this._longMonthsParse,s))?r:null:-1!==(r=Ot.call(this._longMonthsParse,s))?r:-1!==(r=Ot.call(this._shortMonthsParse,s))?r:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},hn.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||It.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=qt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||It.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(t){return Yt(t,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(t,e){return t?r(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},hn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},hn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return function(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},hn.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ue("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ue),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ce);var mn=Math.abs;function yn(t,e,n,i){var r=Ye(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function _n(t){return t<0?Math.floor(t):Math.ceil(t)}function vn(t){return 4800*t/146097}function gn(t){return 146097*t/4800}function bn(t){return function(){return this.as(t)}}var wn=bn("ms"),kn=bn("s"),Sn=bn("m"),xn=bn("h"),Tn=bn("d"),On=bn("w"),Pn=bn("M"),An=bn("y");function Cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var En=Cn("milliseconds"),Mn=Cn("seconds"),Rn=Cn("minutes"),jn=Cn("hours"),Nn=Cn("days"),Fn=Cn("months"),Ln=Cn("years"),Dn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},In=Math.abs;function Bn(t){return(0<t)-(t<0)||+t}function Un(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=In(this._milliseconds)/1e3,i=In(this._days),r=In(this._months);e=w((t=w(n/60))/60),n%=60,t%=60;var o=w(r/12),s=r%=12,a=i,u=e,l=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var p=h<0?"-":"",f=Bn(this._months)!==Bn(h)?"-":"",d=Bn(this._days)!==Bn(h)?"-":"",m=Bn(this._milliseconds)!==Bn(h)?"-":"";return p+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?d+a+"D":"")+(u||l||c?"T":"")+(u?m+u+"H":"")+(l?m+l+"M":"")+(c?m+c+"S":"")}var zn=Re.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var t=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),t.milliseconds=mn(t.milliseconds),t.seconds=mn(t.seconds),t.minutes=mn(t.minutes),t.hours=mn(t.hours),t.months=mn(t.months),t.years=mn(t.years),this},zn.add=function(t,e){return yn(this,t,e,1)},zn.subtract=function(t,e){return yn(this,t,e,-1)},zn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=N(t))||"year"===t)return e=this._days+i/864e5,n=this._months+vn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(gn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},zn.asMilliseconds=wn,zn.asSeconds=kn,zn.asMinutes=Sn,zn.asHours=xn,zn.asDays=Tn,zn.asWeeks=On,zn.asMonths=Pn,zn.asYears=An,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},zn._bubble=function(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return 0<=o&&0<=s&&0<=a||o<=0&&s<=0&&a<=0||(o+=864e5*_n(gn(a)+s),a=s=0),u.milliseconds=o%1e3,t=w(o/1e3),u.seconds=t%60,e=w(t/60),u.minutes=e%60,n=w(e/60),u.hours=n%24,a+=r=w(vn(s+=w(n/24))),s-=_n(gn(r)),i=w(a/12),a%=12,u.days=s,u.months=a,u.years=i,this},zn.clone=function(){return Ye(this)},zn.get=function(t){return t=N(t),this.isValid()?this[t+"s"]():NaN},zn.milliseconds=En,zn.seconds=Mn,zn.minutes=Rn,zn.hours=jn,zn.days=Nn,zn.weeks=function(){return w(this.days()/7)},zn.months=Fn,zn.years=Ln,zn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,i,r,o,s,a,u,l,c,h=this.localeData(),p=(e=!t,n=h,i=Ye(this).abs(),r=Dn(i.as("s")),o=Dn(i.as("m")),s=Dn(i.as("h")),a=Dn(i.as("d")),u=Dn(i.as("M")),l=Dn(i.as("y")),(c=r<=qn.ss&&["s",r]||r<qn.s&&["ss",r]||o<=1&&["m"]||o<qn.m&&["mm",o]||s<=1&&["h"]||s<qn.h&&["hh",s]||a<=1&&["d"]||a<qn.d&&["dd",a]||u<=1&&["M"]||u<qn.M&&["MM",u]||l<=1&&["y"]||["yy",l])[2]=e,c[3]=0<+this,c[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,c));return t&&(p=h.pastFuture(+this,p)),h.postformat(p)},zn.toISOString=Un,zn.toString=Un,zn.toJSON=Un,zn.locale=$e,zn.localeData=Je,zn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Un),zn.lang=Xe,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),lt("x",rt),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,n){n._d=new Date(k(t))}),i.version="2.22.1",e=Pe,i.fn=ln,i.min=function(){return Ee("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ee("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(t){return Pe(1e3*t)},i.months=function(t,e){return fn(t,e,"months")},i.isDate=u,i.locale=ue,i.invalid=m,i.duration=Ye,i.isMoment=b,i.weekdays=function(t,e,n){return dn(t,e,n,"weekdays")},i.parseZone=function(){return Pe.apply(null,arguments).parseZone()},i.localeData=ce,i.isDuration=je,i.monthsShort=function(t,e){return fn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return dn(t,e,n,"weekdaysMin")},i.defineLocale=le,i.updateLocale=function(t,e){if(null!=e){var n,i,r=ie;null!=(i=ae(t))&&(r=i._config),(n=new M(e=E(r,e))).parentLocale=re[t],re[t]=n,ue(t)}else null!=re[t]&&(null!=re[t].parentLocale?re[t]=re[t].parentLocale:null!=re[t]&&delete re[t]);return re[t]},i.locales=function(){return O(re)},i.weekdaysShort=function(t,e,n){return dn(t,e,n,"weekdaysShort")},i.normalizeUnits=N,i.relativeTimeRounding=function(t){return void 0===t?Dn:"function"==typeof t&&(Dn=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==qn[t]&&(void 0===e?qn[t]:(qn[t]=e,"s"===t&&(qn.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=ln,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(295)(t))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";for(var i=n(10),r=n(24),o=n(57),s=n(16),a=new Array(256),u=0;u<256;u++)a[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;a[254]=a[254]=1;function l(){s.call(this,"utf-8 decode"),this.leftOver=null}function c(){s.call(this,"utf-8 encode")}e.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,s,a=t.length,u=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),s=0,o=0;s<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|63&n):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|63&n):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|63&n);return e}(t)},e.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,s=t.length,u=new Array(2*s);for(n=0,e=0;e<s;)if((r=t[e++])<128)u[n++]=r;else if((o=a[r])>4)u[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&e<s;)r=r<<6|63&t[e++],o--;o>1?u[n++]=65533:r<65536?u[n++]=r:(r-=65536,u[n++]=55296|r>>10&1023,u[n++]=56320|1023&r)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),i.applyFromCharCode(u)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(l,s),l.prototype.processChunk=function(t){var n=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=n;(n=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),n.set(o,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var s=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}(n),u=n;s!==n.length&&(r.uint8array?(u=n.subarray(0,s),this.leftOver=n.subarray(s,n.length)):(u=n.slice(0,s),this.leftOver=n.slice(s,n.length))),this.push({data:e.utf8decode(u),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=l,i.inherits(c,s),c.prototype.processChunk=function(t){this.push({data:e.utf8encode(t.data),meta:t.meta})},e.Utf8EncodeWorker=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uprez_task=e.splice_task=e.augment_task=e.live_task=e.train_task=e.fetch_task=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=(s(n(15)),s(n(14)),s(n(6)),s(n(7))),o=s(n(48));function s(t){return t&&t.__esModule?t:{default:t}}e.fetch_task=function(t,e,n){return function(i){if(!t)return console.log("input file inaccessible (no url)");var s={module:o.default.name,activity:"fetch",dataset:n,opt:{url:t,file_id:e,dataset:n}};return r.default.queue.add_task(s)}},e.train_task=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return function(i){if("PLACEHOLDER"!==(t=t.name||t)){var s={module:o.default.name,activity:"train",dataset:t,epoch:0,epochs:n,opt:{folder_id:e}};if(s.dataset)return console.log(s),r.default.queue.add_task(s);console.error("train task: no dataset specified")}}},e.live_task=function(t,e,n){return function(s){var a={module:o.default.name,activity:"live",dataset:t,checkpoint:e,opt:i({},n,{poll_delay:.01})};return console.log(a),console.log("add live task"),r.default.queue.add_task(a)}},e.augment_task=function(t,e){return function(n){if("PLACEHOLDER"!==t){var s={module:o.default.name,activity:"augment",dataset:t,folder_id:e.folder_id,opt:i({},e)};return console.log(s),console.log("add augment task"),r.default.queue.add_task(s)}}},e.splice_task=function(t){return function(e){var n={module:o.default.name,activity:"splice",dataset:t.title,folder_id:t.folder_id,epochs:1,opt:i({},t)};return console.log(n),console.log("add splice task"),r.default.queue.add_task(n)}},e.uprez_task=function(t){return function(e){var n={module:o.default.name,activity:"uprez",dataset:t.dataset,folder_id:t.folder_id,opt:i({},t)};return console.log(n),console.log("add uprez task"),r.default.queue.add_task(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.count_dataset=e.list_epochs=e.load_uprez=e.load_results=e.load_directories=void 0;var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=(l(n(15)),l(n(14)),l(n(6))),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(36)),s=l(n(7)),a=l(n(4)),u=l(n(48));function l(t){return t&&t.__esModule?t:{default:t}}e.load_directories=function(t){return function(e){var n=u.default.name;a.default.allProgress([o.load(n),s.default.socket.list_directory({module:n,dir:"sequences"}),s.default.socket.list_directory({module:n,dir:"datasets"}),s.default.socket.list_directory({module:n,dir:"checkpoints"})],function(t,n,i){console.log("pix2pixhd load progress",n,i),e({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(s){var a=i(s,4),u=a[0],l=a[1],c=a[2],h=a[3],p=u.folderLookup,f=u.fileLookup,d=u.datasetLookup,m=u.folders,y=u.files,_=(u.unsortedFolder,u.resultsFolder),v=l.filter(function(t){return t.dir});v.forEach(function(t){o.getDataset(n,d,t.name).isBuilt=!0}),c.filter(function(t){return t.dir}).forEach(function(t){o.getDataset(n,d,t.name).hasDataset=!0});var g=h.filter(function(t){return t.dir});g.forEach(function(t){var e=o.getDataset(n,d,t.name);e.hasCheckpoints=!0,e.checkpoints=[t]}),e({type:r.default.dataset.load,data:{module:n,folderLookup:p,fileLookup:f,datasetLookup:d,folders:m,files:y,sequences:v,datasets:c,checkpoints:g,resultsFolder:_}}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}).catch(function(t){console.error(t)}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}},e.load_results=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e,name:"results"}),s.default.file.index({module:e,generated:1,limit:250}),s.default.socket.list_directory({module:e,dir:"renders"}),s.default.socket.list_sequences({module:e,dir:"results"})],function(e,n,i){console.log("pix2pixhd load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(e){var n=i(e,4),o=n[0],s=n[1],a=n[2],u=n[3];t({type:r.default.pix2pixhd.load_results,results:{resultsFolder:o[0],files:s,renders:a,results:u}})})}},e.load_uprez=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e,name:"results"}),s.default.socket.list_sequences({module:e,dir:"results"}),s.default.file.index({module:e,activity:"uprez"})],function(e,n,i){console.log("pix2pixhd load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(e){var n=i(e,3),o=n[0],s=n[1],a=n[2];t({type:r.default.pix2pixhd.load_uprez,uprez:{resultsFolder:o[0],results:s,files:a}})})}};var c=new RegExp("_net_G.pth$");e.list_epochs=function(t){return function(e){var n=u.default.name;s.default.socket.list_directory({module:n,dir:"checkpoints/"+t}).then(function(t){var i=t.map(function(t){return t.name.match(c)?t.name.replace(c,""):null}).filter(function(t){return!!t});e({type:r.default.dataset.list_epochs,data:{epochs:i,module:n}})})}},e.count_dataset=function(t){return function(e){var n=u.default.name;a.default.allProgress([s.default.socket.list_directory({module:n,dir:"sequences/"+t+"/"}),s.default.socket.count_directory({module:n,dir:"datasets/"+t+"/train_A/"})],function(t,e,n){console.log("pix2pixhd load progress",e,n)}).then(function(n){var o=i(n,2),s=o[0],a=o[1],u=s.length;console.log(u,a),e({type:r.default.pix2pixhd.load_dataset_count,data:{name:t,sequence:s,sequenceCount:u,datasetCount:a}})})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(1),o=(n(3),n(2)),s=n(17);(i=s)&&i.__esModule;e.default=(0,o.connect)(function(t){return t.upload},function(t,e){return{}})(function(t){return(0,r.h)("div",{className:"status"},t.status)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(1),o=n(3),s=n(2),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(62)),u=h(n(25)),l=(h(n(39)),n(21),h(n(125))),c=h(n(49));function h(t){return t&&t.__esModule?t:{default:t}}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){var t=this.props,e=(t.loading,t.status,t.error,t.module,t.folder),n=(t.title,t.canRename),i=t.canUpload,o=t.canAddURL;return e.id?(0,r.h)("div",{className:"form params row"},(0,r.h)("div",{className:"col"},(0,r.h)(u.default,null,n&&this.renderFolderNameInput(e.name),i&&this.renderUploadInput(),o&&this.renderURLInput()))):(0,r.h)("div",{className:"params row"},(0,r.h)("div",{className:"column"},this.renderFolderNameInput(e.name)))}},{key:"curry",value:function(t){var e=this.props,n=e.module,i=e.folder;return function(e){return t(n,i,e)}}},{key:"renderFolderNameInput",value:function(t){return(0,r.h)(c.default,{title:"Dataset name",value:t,onSave:this.curry(this.props.actions.dataset.updateFolder)})}},{key:"renderUploadInput",value:function(){return(0,r.h)(l.default,{title:"Upload a file",multiple:!0,onUpload:this.curry(this.props.actions.dataset.uploadFile)})}},{key:"renderURLInput",value:function(){return(0,r.h)(c.default,{title:"Fetch a URL",placeholder:"http://",onSave:this.curry(this.props.actions.dataset.fetchURL)})}}]),e}();e.default=(0,s.connect)(function(t){return t.upload},function(t,e){return{actions:{dataset:(0,o.bindActionCreators)(a,t)}}})(p)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load=e.getDataset=e.emptyDataset=e.unsortedFolder=void 0;var i,r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(7),s=(i=o)&&i.__esModule?i:{default:i};var a={},u=e.unsortedFolder=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a[t]||e){var n={id:0,module:t,name:"unsorted",files:[],datasets:[]};a[t]=n}return a[t]},l=e.emptyDataset=function(t,e,n,i){(i=i||u(t)).datasets.push(n);var r={name:n,folder_id:i.id,input:[],checkpoints:[],output:[]};return e[n]=r,r},c=e.getDataset=function(t,e,n,i,r){var o=e[n=n.toLowerCase()]||l(t,e,n,i);return r&&(o.date=o.date&&!isNaN(o.date)?Math.max(+new Date(r),o.date):+new Date(r)),o};e.load=function(t){return console.log(t),Promise.all([s.default.folder.index({module:t,limit:0}),s.default.file.index({module:t,limit:0}),s.default.task.index({module:t})]).then(function(e){var n=r(e,3),i=n[0],o=n[1],a=(n[2],{}),l={},h={},p=void 0;l=i.reduce(function(t,e){return t[e.id]={id:e.id,name:e.name,folder:e,files:[],datasets:[]},"results"===e.name&&(p=e),t},{unsorted:u(t,!0)}),p?console.log("got results folder",p):(console.log("creating results folder..."),s.default.folder.create({module:t,name:"results",activity:"results"}).then(function(t){console.log("created folder",t),l.results=t}));var f=o.filter(function(t){return t.generated});return o.filter(function(t){return!t.generated}).reduce(function(e,n){h[n.id]=n,n.name||(n.opt&&n.opt.media&&n.opt.media.token?n.name=n.opt.media.token:n.name=n.url.replace(/^https?:\/\/(www.)?/,"").replace(/[^a-zA-Z0-9_]/g,"_").replace(/_+/g,"_")||"unknown_"+Math.floor(1e3*Math.random()));var i=(n.name||"unsorted").split(".")[0],r=l[n.folder_id]||u(t),o=c(t,e,n.dataset||i,r,n.date||n.created_at);return n.url.match(n.name)&&(n.persisted=!0),o.input.push(n.id),r.files.push(n.id),e},a),f.map(function(e){h[e.id]=e;var n=e.name.split(".")[0].split("-"),i=l[e.folder_id]||u(t);c(t,a,e.dataset||n[0],i,e.date||e.created_at).output.push(e.id),i.files.push(e.id),e.epoch=e.epoch||n[1]}),{folderLookup:l,fileLookup:h,datasetLookup:a,folders:i,files:o,unsortedFolder:l.unsorted,resultsFolder:p}}).catch(function(t){console.error(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load_encodings=e.load_results=e.load_directories=void 0;var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=(l(n(15)),l(n(14)),l(n(6))),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(36)),s=l(n(7)),a=l(n(4)),u=l(n(61));function l(t){return t&&t.__esModule?t:{default:t}}e.load_directories=function(t){return function(e){var n=u.default.name;a.default.allProgress([o.load(n),s.default.socket.list_directory({module:n,dir:"sequences"}),s.default.socket.list_directory({module:n,dir:"datasets"}),s.default.socket.list_directory({module:n,dir:"checkpoints"})],function(t,n,i){console.log("biggan load progress",n,i),e({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"biggan"}})}).then(function(s){var a=i(s,4),u=a[0],l=a[1],c=a[2],h=a[3],p=u.folderLookup,f=u.fileLookup,d=u.datasetLookup,m=u.folders,y=u.files,_=(u.unsortedFolder,u.resultsFolder),v=l.filter(function(t){return t.dir});v.forEach(function(t){o.getDataset(n,d,t.name).isBuilt=!0}),c.filter(function(t){return t.dir}).forEach(function(t){o.getDataset(n,d,t.name).hasDataset=!0});var g=h.filter(function(t){return t.dir});g.forEach(function(t){var e=o.getDataset(n,d,t.name);e.hasCheckpoints=!0,e.checkpoints=[t]}),e({type:r.default.dataset.load,data:{module:n,folderLookup:p,fileLookup:f,datasetLookup:d,folders:m,files:y,sequences:v,datasets:c,checkpoints:g,resultsFolder:_}}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}).catch(function(t){console.error(t)}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}},e.load_results=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e,name:"results"}),s.default.file.index({module:e,datatype:"video",generated:1,limit:250})],function(e,n,i){console.log("biggan load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"biggan"}})}).then(function(e){var n=i(e,2),o=n[0],s=n[1];t({type:r.default.biggan.load_results,results:{resultsFolder:o[0],files:s}})})}},e.load_encodings=function(){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e}),s.default.file.index({module:e,datatype:"image",generated:1})],function(t,e,n){}).then(function(e){var n=i(e,2),o=n[0],s=n[1],a={},u={};o.forEach(function(t){a[t.id]=t.name,u[t.name]=[]}),s.forEach(function(t){var e=a[t.folder_id];u[e].push(t)}),o.forEach(function(t){u[t.name].length||delete u[t.name]}),t({type:r.default.biggan.load_encodings,encodings:u})})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stop_queue=e.start_queue=e.add_task=e.stop_task=e.start_task=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=a(n(14)),o=a(n(6)),s=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}e.start_task=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.start_task(t,e),i({type:o.default.task.starting_task,task:t},e)},e.stop_task=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.stop_task(t,e),i({type:o.default.task.stopping_task,task:t},e)},e.add_task=function(t){return function(e){s.default.task.create(t).then(function(t){r.default.task.add_task(t)})}},e.start_queue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.start_queue(t,e),i({type:o.default.task.starting_queue,task:t},e)},e.stop_queue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.stop_queue(t,e),i({type:o.default.task.stopping_queue,task:t},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(1);n(2);var o=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){return(0,r.h)("div",{className:"button param"},(0,r.h)("span",null,this.props.title),(0,r.h)("span",null,this.props.children))}}]),e}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.startSynthesizing=function(){h=!0},e.stopSynthesizing=function(){h=!1},e.startRecording=function(){p=new r.default.Video(25,.95),l=!0,i.store.dispatch({type:o.default.player.start_recording})},e.stopRecording=function(){if(!l)return;l=!1,i.store.dispatch({type:o.default.player.saving_video}),p.compile(!1,function(t){i.store.dispatch({type:o.default.player.save_video,blob:t})})},e.saveFrame=function(){c=!0},e.onFrame=function(t){i.store.dispatch({type:o.default.player.current_frame,meta:t.meta});var e=new Blob([t.frame],{type:"image/jpg"}),n=URL.createObjectURL(e),r=new Image,a=document.querySelector(".player canvas");if(!a)return console.error("no canvas for frame");r.onload=function(){r.onload=null,URL.revokeObjectURL(n);var t=a.getContext("2d-lodpi");if(t.drawImage(r,0,0,a.width,a.height),h){var e=t.getImageData(0,0,a.width,a.height);s.play({imageData:e})}l&&(console.log("record frame"),p.add(a),i.store.dispatch({type:o.default.player.add_record_frame})),c&&(c=!1,a.toBlob(function(t){i.store.dispatch({type:o.default.player.save_frame,blob:t})})),u+=1},r.src=n},e.toggleFPS=function(t){d=void 0!==t?t:i.store.getState().live.playing,f!==d&&(d?y():_());f=d},e.startWatchingFPS=y,e.stopWatchingFPS=_;var i=n(20),r=a(n(272)),o=a(n(6)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(134));function a(t){return t&&t.__esModule?t:{default:t}}var u=0,l=!1,c=!1,h=!1,p=void 0;var f=void 0,d=void 0;var m=void 0;function y(){clearInterval(m),m=setInterval(function(){i.store.dispatch({type:o.default.player.set_fps,fps:u}),u=0},1e3)}function _(){clearInterval(m)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.socket=void 0;var i,r=n(20),o=n(6),s=(i=o)&&i.__esModule?i:{default:i};var a=e.socket=io.connect("/client");a.on("connect",function(){return r.store.dispatch({type:s.default.socket.connect})}),a.on("connect_error",function(t){return r.store.dispatch({type:s.default.socket.connect_error,error:t})}),a.on("reconnect",function(t){return r.store.dispatch({type:s.default.socket.reconnect,attempt:t})}),a.on("reconnecting",function(){return r.store.dispatch({type:s.default.socket.reconnecting})}),a.on("reconnect_error",function(t){return r.store.dispatch({type:s.default.socket.reconnect_error,error:t})}),a.on("reconnect_failed",function(t){return r.store.dispatch({type:s.default.socket.reconnect_failed,error:t})}),a.on("disconnect",function(){return r.store.dispatch({type:s.default.socket.disconnect})}),a.on("error",function(t){return r.store.dispatch({type:s.default.socket.error,error:t})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(6),s=(i=o)&&i.__esModule?i:{default:i};function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:!0,progress:null,error:null,data:null,folder_id:0},e=arguments[1];switch(e.type){case s.default.app.load_progress:return r({},t,{progress:e.progress});case s.default.dataset.load:return r({},t,{loading:!1,data:e.data});case s.default.dataset.set_folder:return r({},t,{folder_id:e.data.folder_id});case s.default.folder.create:return r({},t,{loading:!1,data:{folders:t.data.folders.concat([e.data.id]),folderLookup:r({},t.data.folderLookup,a({},e.data.id,e.data))}});case s.default.file.create:return function(t,e){if(console.log(e.data),!t.data||!t.data.datasetLookup)return t;var n=void 0,i=void 0,o=void 0,s=void 0,u=void 0;return(u=e.data.dataset?e.data.dataset:e.data.name?e.data.name.split(".")[0]:e.data.url?e.data.url:null)in t.data.datasetLookup?(i=t.data.datasetLookup[u],n=r({},i,{input:e.data.generated?i.input:[e.data.id].concat(i.input),output:e.data.generated?[e.data.id].concat(i.output):i.output})):(console.log(e.data.created_at,e.data.date),n={name:u,date:e.data.created_at||e.data.date,input:e.data.generated?[]:[e.data.id],checkpoints:[],output:e.data.generated?[e.data.id]:[]}),s=t.data.folderLookup[e.data.folder_id],o=r({},s,{datasets:s.datasets.concat([u]),files:s.files.concat([e.data.id])}),r({},t,{loading:!1,data:r({},t.data,{files:t.data.files.concat([e.data.id]),folderLookup:r({},t.data.folderLookup,a({},e.data.folder_id,o)),fileLookup:r({},t.data.fileLookup,a({},e.data.id,e.data)),datasetLookup:r({},t.data.datasetLookup,a({},u,n))})})}(t,e);case s.default.file.update:return function(t,e){var n,i=void 0,o=t.data.datasetLookup[e.data.dataset],s=t.data.fileLookup[e.data.id],u=void 0;return s&&e.data.dataset!==s.dataset&&(t.data.datasetLookup[s.dataset]&&(i=t.data.datasetLookup[s.dataset],old_dataset_update=r({},i,{input:i.input.filter(function(t){return t!==e.data.id}),output:i.output.filter(function(t){return t!==e.data.id})})),u=r({},o,{input:e.data.generated?[]:[e.data.id],output:e.data.generated?[e.data.id]:[]})),console.log("old_dataset",old_dataset_update.name),console.log("new_dataset",u.name),r({},t,{loading:!1,data:r({},t.data,{datasetLookup:i?r({},t.data.datasetLookup,(n={},a(n,i.name,old_dataset_update),a(n,o.name,u),n)):u?r({},t.data.datasetLookup,a({},o.name,u)):t.data.datasetLookup,fileLookup:r({},t.data.fileLookup,a({},e.data.id,e.data))})})}(t,e);case s.default.file.destroy:return function(t,e){if(!t.data)return t;var n=r({},t.data.fileLookup),i=r({},t.data.datasetLookup),o=r({},t.data.folderLookup),s=n[e.data.id];if(!s)return t;var a=t.data.datasetLookup[s.dataset],u=void 0;if(a)if((u=r({},a,{input:a.input.filter(function(t){return t!==s.id}),output:a.output.filter(function(t){return t!==s.id})})).input.length||u.checkpoints.length||u.output.length)console.log("dataset just needs sweeping"),i[s.dataset]=u;else{delete i[s.dataset];var l=o[s.folder_id];o[s.folder_id]=r({},l,{datasets:l.datasets.filter(function(t){return t!==s.dataset})})}return delete n[s.id],r({},t,{loading:!1,data:r({},t.data,{folderLookup:o,fileLookup:n,datasetLookup:i})})}(t,e);case s.default.dataset.list_epochs:return r({},t,{epochs:e.data.epochs});default:return t}}},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,l=[],c=!1,h=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&f())}function f(){if(!c){var t=a(p);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.import_files=e.load_loss=e.load_graph=e.load_directories=void 0;var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=c(n(15)),o=(c(n(14)),c(n(6))),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(36)),a=c(n(7)),u=c(n(4)),l=c(n(67));function c(t){return t&&t.__esModule?t:{default:t}}e.load_directories=function(t){return function(e){var n=l.default.name;u.default.allProgress([s.load(n),a.default.socket.list_directory({module:n,dir:"datasets"}),a.default.socket.list_directory({module:n,dir:"results"}),a.default.socket.list_directory({module:n,dir:"output"}),a.default.socket.disk_usage({module:n,dir:"datasets"}),h()(e)],function(t,n,i){e({type:o.default.app.load_progress,progress:{i:n,n:i},data:{module:"samplernn"}})}).then(function(t){var a=i(t,6),u=a[0],l=a[1],c=a[2],h=a[3],p=a[4],f=a[5],d=u.folderLookup,m=u.fileLookup,y=u.datasetLookup,_=u.folders,v=u.files,g=u.unsortedFolder;console.log(p);var b=l.filter(function(t){return t.name.match(/(wav|aiff?|flac|mp3)$/)&&!t.dir});l.filter(function(t){return t.dir}).forEach(function(t){s.getDataset(n,y,t.name,g,t.date).isBuilt=!0}),b.forEach(function(t){t.uuid=(0,r.default)(),m[t.uuid]=t;var e=t.name.split(".")[0],i=s.getDataset(n,y,e,g,t.date);t.persisted=!1,i.input.push(t.uuid)});var w=c.filter(function(t){return t.dir}).map(function(t){var e=t.name.split("-").map(function(t){return t.split(":")}).filter(function(t){return t.length&&t[1]}).reduce(function(t,e){return(t[e[0]]=e[1])&&t},{});if(e.name=e.name||e.dataset||e.exp,e.name){e.date=t.date,e.dir=t,e.persisted=!1;var i=s.getDataset(n,y,e.name,g,e.date),r=f[e.name];return r&&(i.epoch=e.epoch=r.length,e.training_loss=r),i.checkpoints.push(e),e}}).filter(function(t){return!!t});h.map(function(t){t.uuid=(0,r.default)(),m[t.uuid]=t;var e=t.name.split(".")[0].split("-"),i=s.getDataset(n,y,e[0],g,t.date);t.persisted=!1,t.epoch=parseInt(t.epoch||e[1].replace(/^\D+/,""))||0,i.epoch=Math.max(t.epoch,i.epoch||0),i.output.some(function(e){return m[e].name===t.name&&(m[e].persisted=!0,!0)})||i.output.push(t.uuid)}),e({type:o.default.dataset.load,data:{module:n,folderLookup:d,fileLookup:m,datasetLookup:y,folders:_,files:v,checkpoints:w,output:h}})}).catch(function(t){console.error(t)}),t&&e({type:o.default.dataset.set_folder,data:{folder_id:t,module:n}})}},e.load_graph=function(){return function(t){var e=l.default.name;u.default.allProgress([h()(t),a.default.socket.list_directory({module:e,dir:"results"})],function(e,n,i){t({type:o.default.app.load_progress,progress:{i:n,n:i},data:{module:"samplernn"}})}).then(function(e){var n=i(e,2),r=n[0],s=n[1];t({type:o.default.samplernn.load_graph,lossReport:r,results:s})})}};var h=e.load_loss=function(){return function(t){return a.default.socket.run_script({module:"samplernn",activity:"report"}).then(function(e){var n={};return e.stdout.split("\n\n").filter(function(t){return!!t}).forEach(function(t){var e,i=t.split("\n"),r=(e=i,Array.isArray(e)?e:Array.from(e)),o=r[0],s=r.slice(1);n[o]=s.map(function(t){return t.split("\t").reduce(function(t,e){var n=e.split(": ");return t[n[0]]=n[1],t},{})})}),t({type:o.default.samplernn.load_loss,lossReport:n}),n})}};e.import_files=function(t,e,n){return function(i){var r=t.selected,o=t.folder_id,s=t.url_base,u=t.import_action,l=Object.keys(r).filter(function(t){return r[t]}),c=void 0;switch(u){case"Hotlink":c=l.reduce(function(t,i){return e[i].output.map(function(t){return n[t]}).map(function(t){var e=t.name.split(".").pop();return a.default.file.create({folder_id:o,name:t.name,url:s+t.name,mime:"audio/"+e,epoch:t.epoch,size:t.size,module:"samplernn",dataset:i,activity:"train",datatype:"audio",generated:!0,created_at:new Date(t.date),updated_at:new Date(t.date)})}).concat(t)},[]);break;case"Upload":c=l.reduce(function(t,i){return e[i].input.map(function(t){return n[t]}).map(function(t){if(t.persisted)return null;var e=t.name.split(".").pop();return"wav"!==e&&"flac"!==e?(console.log(t),a.default.socket.upload_file({folder_id:o,module:"samplernn",activity:"train",path:"datasets",filename:t.name,generated:!1,processed:!1,datatype:"audio",ttl:6e4})):void 0}).concat(t)},[]).filter(function(t){return!!t})}return console.log(c),Promise.all(c).then(function(t){console.log(t),window.location.href="/samplernn/datasets/"+o+"/"}).catch(function(t){console.error(t)})}}},function(t,e,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:n(193),t.exports={Promise:i}},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(47).Buffer)},function(t,e,n){"use strict";(function(t){
+!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},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=323)}([function(t,e,n){t.exports=n(313)()},function(t,e,n){"use strict";n.r(e),n.d(e,"h",function(){return s}),n.d(e,"createElement",function(){return s}),n.d(e,"cloneElement",function(){return l}),n.d(e,"Component",function(){return N}),n.d(e,"render",function(){return F}),n.d(e,"rerender",function(){return f}),n.d(e,"options",function(){return i});var i={},r=[],o=[];function s(t,e){var n,s,a,u,l=o;for(u=arguments.length;u-- >2;)r.push(arguments[u]);for(e&&null!=e.children&&(r.length||r.push(e.children),delete e.children);r.length;)if((s=r.pop())&&void 0!==s.pop)for(u=s.length;u--;)r.push(s[u]);else"boolean"==typeof s&&(s=null),(a="function"!=typeof t)&&(null==s?s="":"number"==typeof s?s=String(s):"string"!=typeof s&&(a=!1)),a&&n?l[l.length-1]+=s:l===o?l=[s]:l.push(s),n=a;var c=new function(){};return c.nodeName=t,c.children=l,c.attributes=null==e?void 0:e,c.key=null==e?void 0:e.key,void 0!==i.vnode&&i.vnode(c),c}function a(t,e){for(var n in e)t[n]=e[n];return t}var u="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function l(t,e){return s(t.nodeName,a(a({},t.attributes),e),arguments.length>2?[].slice.call(arguments,2):t.children)}var c=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(t){!t._dirty&&(t._dirty=!0)&&1==h.push(t)&&(i.debounceRendering||u)(f)}function f(){var t,e=h;for(h=[];t=e.pop();)t._dirty&&R(t)}function d(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function m(t){var e=a({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===e[i]&&(e[i]=n[i]);return e}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n,i,r){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)n&&n(null),i&&i(t);else if("class"!==e||r)if("style"===e){if(i&&"string"!=typeof i&&"string"!=typeof n||(t.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(t.style[o]="");for(var o in i)t.style[o]="number"==typeof i[o]&&!1===c.test(o)?i[o]+"px":i[o]}}else if("dangerouslySetInnerHTML"===e)i&&(t.innerHTML=i.__html||"");else if("o"==e[0]&&"n"==e[1]){var s=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),i?n||t.addEventListener(e,v,s):t.removeEventListener(e,v,s),(t._listeners||(t._listeners={}))[e]=i}else if("list"!==e&&"type"!==e&&!r&&e in t)!function(t,e,n){try{t[e]=n}catch(t){}}(t,e,null==i?"":i),null!=i&&!1!==i||t.removeAttribute(e);else{var a=r&&e!==(e=e.replace(/^xlink:?/,""));null==i||!1===i?a?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof i&&(a?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),i):t.setAttribute(e,i))}else t.className=i||""}function v(t){return this._listeners[t.type](i.event&&i.event(t)||t)}var g=[],b=0,w=!1,k=!1;function S(){for(var t;t=g.pop();)i.afterMount&&i.afterMount(t),t.componentDidMount&&t.componentDidMount()}function x(t,e,n,i,r,o){b++||(w=null!=r&&void 0!==r.ownerSVGElement,k=null!=t&&!("__preactattr_"in t));var s=T(t,e,n,i,o);return r&&s.parentNode!==r&&r.appendChild(s),--b||(k=!1,o||S()),s}function T(t,e,n,i,r){var o=t,s=w;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||r)?t.nodeValue!=e&&(t.nodeValue=e):(o=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(o,t),O(t,!0))),o.__preactattr_=!0,o;var a,u,l=e.nodeName;if("function"==typeof l)return function(t,e,n,i){var r=t&&t._component,o=r,s=t,a=r&&t._componentConstructor===e.nodeName,u=a,l=m(e);for(;r&&!u&&(r=r._parentComponent);)u=r.constructor===e.nodeName;r&&u&&(!i||r._component)?(M(r,l,3,n,i),t=r.base):(o&&!a&&(j(o),t=s=null),r=C(e.nodeName,l,n),t&&!r.nextBase&&(r.nextBase=t,s=null),M(r,l,1,n,i),t=r.base,s&&t!==s&&(s._component=null,O(s,!1)));return t}(t,e,n,i);if(w="svg"===l||"foreignObject"!==l&&w,l=String(l),(!t||!d(t,l))&&(a=l,(u=w?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,o=u,t)){for(;t.firstChild;)o.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(o,t),O(t,!0)}var c=o.firstChild,h=o.__preactattr_,p=e.children;if(null==h){h=o.__preactattr_={};for(var f=o.attributes,v=f.length;v--;)h[f[v].name]=f[v].value}return!k&&p&&1===p.length&&"string"==typeof p[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=p[0]&&(c.nodeValue=p[0]):(p&&p.length||null!=c)&&function(t,e,n,i,r){var o,s,a,u,l,c=t.childNodes,h=[],p={},f=0,m=0,_=c.length,v=0,g=e?e.length:0;if(0!==_)for(var b=0;b<_;b++){var w=c[b],k=w.__preactattr_,S=g&&k?w._component?w._component.__key:k.key:null;null!=S?(f++,p[S]=w):(k||(void 0!==w.splitText?!r||w.nodeValue.trim():r))&&(h[v++]=w)}if(0!==g)for(var b=0;b<g;b++){u=e[b],l=null;var S=u.key;if(null!=S)f&&void 0!==p[S]&&(l=p[S],p[S]=void 0,f--);else if(!l&&m<v)for(o=m;o<v;o++)if(void 0!==h[o]&&(x=s=h[o],A=r,"string"==typeof(P=u)||"number"==typeof P?void 0!==x.splitText:"string"==typeof P.nodeName?!x._componentConstructor&&d(x,P.nodeName):A||x._componentConstructor===P.nodeName)){l=s,h[o]=void 0,o===v-1&&v--,o===m&&m++;break}l=T(l,u,n,i),a=c[b],l&&l!==t&&l!==a&&(null==a?t.appendChild(l):l===a.nextSibling?y(a):t.insertBefore(l,a))}var x,P,A;if(f)for(var b in p)void 0!==p[b]&&O(p[b],!1);for(;m<=v;)void 0!==(l=h[v--])&&O(l,!1)}(o,p,n,i,k||null!=h.dangerouslySetInnerHTML),function(t,e,n){var i;for(i in n)e&&null!=e[i]||null==n[i]||_(t,i,n[i],n[i]=void 0,w);for(i in e)"children"===i||"innerHTML"===i||i in n&&e[i]===("value"===i||"checked"===i?t[i]:n[i])||_(t,i,n[i],n[i]=e[i],w)}(o,e.attributes,h),w=s,o}function O(t,e){var n=t._component;n?j(n):(null!=t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),!1!==e&&null!=t.__preactattr_||y(t),P(t))}function P(t){for(t=t.lastChild;t;){var e=t.previousSibling;O(t,!0),t=e}}var A={};function C(t,e,n){var i,r=A[t.name];if(t.prototype&&t.prototype.render?(i=new t(e,n),N.call(i,e,n)):((i=new N(e,n)).constructor=t,i.render=E),r)for(var o=r.length;o--;)if(r[o].constructor===t){i.nextBase=r[o].nextBase,r.splice(o,1);break}return i}function E(t,e,n){return this.constructor(t,n)}function M(t,e,n,r,o){t._disable||(t._disable=!0,(t.__ref=e.ref)&&delete e.ref,(t.__key=e.key)&&delete e.key,!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,r),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=e,t._disable=!1,0!==n&&(1!==n&&!1===i.syncComponentUpdates&&t.base?p(t):R(t,1,o)),t.__ref&&t.__ref(t))}function R(t,e,n,r){if(!t._disable){var o,s,u,l=t.props,c=t.state,h=t.context,p=t.prevProps||l,f=t.prevState||c,d=t.prevContext||h,y=t.base,_=t.nextBase,v=y||_,w=t._component,k=!1;if(y&&(t.props=p,t.state=f,t.context=d,2!==e&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(l,c,h)?k=!0:t.componentWillUpdate&&t.componentWillUpdate(l,c,h),t.props=l,t.state=c,t.context=h),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!k){o=t.render(l,c,h),t.getChildContext&&(h=a(a({},h),t.getChildContext()));var T,P,A=o&&o.nodeName;if("function"==typeof A){var E=m(o);(s=w)&&s.constructor===A&&E.key==s.__key?M(s,E,1,h,!1):(T=s,t._component=s=C(A,E,h),s.nextBase=s.nextBase||_,s._parentComponent=t,M(s,E,0,h,!1),R(s,1,n,!0)),P=s.base}else u=v,(T=w)&&(u=t._component=null),(v||1===e)&&(u&&(u._component=null),P=x(u,o,h,n||!y,v&&v.parentNode,!0));if(v&&P!==v&&s!==w){var N=v.parentNode;N&&P!==N&&(N.replaceChild(P,v),T||(v._component=null,O(v,!1)))}if(T&&j(T),t.base=P,P&&!r){for(var F=t,L=t;L=L._parentComponent;)(F=L).base=P;P._component=F,P._componentConstructor=F.constructor}}if(!y||n?g.unshift(t):k||(t.componentDidUpdate&&t.componentDidUpdate(p,f,d),i.afterUpdate&&i.afterUpdate(t)),null!=t._renderCallbacks)for(;t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);b||r||S()}}function j(t){i.beforeUnmount&&i.beforeUnmount(t);var e=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?j(n):e&&(e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),t.nextBase=e,y(e),function(t){var e=t.constructor.name;(A[e]||(A[e]=[])).push(t)}(t),P(e)),t.__ref&&t.__ref(null)}function N(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{}}function F(t,e,n){return x(n,t,{},!1,e,!1)}a(N.prototype,{setState:function(t,e){var n=this.state;this.prevState||(this.prevState=a({},n)),a(n,"function"==typeof t?t(n,this.props):t),e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),p(this)},forceUpdate:function(t){t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),R(this,2)},render:function(){}});var L={h:s,createElement:s,cloneElement:l,Component:N,render:F,rerender:f,options:i};e.default=L},function(t,e,n){"use strict";n.r(e);var i=n(5),r=n(18),o=n.n(r),s=o.a.shape({trySubscribe:o.a.func.isRequired,tryUnsubscribe:o.a.func.isRequired,notifyNestedSubs:o.a.func.isRequired,isSubscribed:o.a.func.isRequired}),a=o.a.shape({subscribe:o.a.func.isRequired,dispatch:o.a.func.isRequired,getState:o.a.func.isRequired});function u(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||e+"Subscription",r=function(t){function r(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return o[e]=n.store,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,t),r.prototype.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.prototype.render=function(){return i.a.only(this.props.children)},r}(i.b);return r.propTypes={store:a.isRequired,children:o.a.element.isRequired},r.childContextTypes=((t={})[e]=a.isRequired,t[n]=s,t),r}var l=u(),c=n(148),h=n.n(c),p=n(65),f=n.n(p);var d=null,m={notify:function(){}};var y=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=e,this.parentSub=n,this.onStateChange=i,this.unsubscribe=null,this.listeners=m}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){var t,e;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(t=[],e=[],{clear:function(){e=d,t=d},notify:function(){for(var n=t=e,i=0;i<n.length;i++)n[i]()},get:function(){return e},subscribe:function(n){var i=!0;return e===t&&(e=t.slice()),e.push(n),function(){i&&t!==d&&(i=!1,e===t&&(e=t.slice()),e.splice(e.indexOf(n),1))}}}))},t.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=m)},t}(),_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};var v=0,g={};function b(){}function w(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.getDisplayName,u=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,l=r.methodName,c=void 0===l?"connectAdvanced":l,p=r.renderCountProp,d=void 0===p?void 0:p,m=r.shouldHandleStateChanges,w=void 0===m||m,k=r.storeKey,S=void 0===k?"store":k,x=r.withRef,T=void 0!==x&&x,O=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),P=S+"Subscription",A=v++,C=((e={})[S]=a,e[P]=s,e),E=((n={})[P]=s,n);return function(e){f()("function"==typeof e,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",r=u(n),o=_({},O,{getDisplayName:u,methodName:c,renderCountProp:d,shouldHandleStateChanges:w,storeKey:S,withRef:T,displayName:r,wrappedComponentName:n,WrappedComponent:e}),s=function(n){function s(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t,e));return i.version=A,i.state={},i.renderCount=0,i.store=t[S]||e[S],i.propsMode=Boolean(t[S]),i.setWrappedInstance=i.setWrappedInstance.bind(i),f()(i.store,'Could not find "'+S+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+S+'" as a prop to "'+r+'".'),i.initSelector(),i.initSubscription(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,n),s.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return(t={})[P]=e||this.context[P],t},s.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},s.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},s.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},s.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},s.prototype.getWrappedInstance=function(){return f()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},s.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},s.prototype.initSelector=function(){var e=t(this.store.dispatch,o);this.selector=function(t,e){var n={run:function(i){try{var r=t(e.getState(),i);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}(e,this.store),this.selector.run(this.props)},s.prototype.initSubscription=function(){if(w){var t=(this.propsMode?this.props:this.context)[P];this.subscription=new y(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},s.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},s.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},s.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},s.prototype.addExtraProps=function(t){if(!(T||d||this.propsMode&&this.subscription))return t;var e=_({},t);return T&&(e.ref=this.setWrappedInstance),d&&(e[d]=this.renderCount++),this.propsMode&&this.subscription&&(e[P]=this.subscription),e},s.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(i.c)(e,this.addExtraProps(t.props))},s}(i.b);return s.WrappedComponent=e,s.displayName=r,s.childContextTypes=E,s.contextTypes=C,s.propTypes=C,h()(s,e)}}var k=Object.prototype.hasOwnProperty;function S(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function x(t,e){if(S(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!k.call(e,n[r])||!S(t[n[r]],e[n[r]]))return!1;return!0}var T=n(3),O=n(324),P="object"==typeof self&&self&&self.Object===Object&&self,A=(O.a||P||Function("return this")()).Symbol,C=Object.prototype;C.hasOwnProperty,C.toString,A&&A.toStringTag;Object.prototype.toString;A&&A.toStringTag;Object.getPrototypeOf,Object;var E=Function.prototype,M=Object.prototype,R=E.toString;M.hasOwnProperty,R.call(Object);function j(t){return function(e,n){var i=t(e,n);function r(){return i}return r.dependsOnOwnProps=!1,r}}function N(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function F(t,e){return function(e,n){n.displayName;var i=function(t,e){return i.dependsOnOwnProps?i.mapToProps(t,e):i.mapToProps(t)};return i.dependsOnOwnProps=!0,i.mapToProps=function(e,n){i.mapToProps=t,i.dependsOnOwnProps=N(t);var r=i(e,n);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=N(r),r=i(e,n)),r},i}}var L=[function(t){return"function"==typeof t?F(t):void 0},function(t){return t?void 0:j(function(t){return{dispatch:t}})},function(t){return t&&"object"==typeof t?j(function(e){return Object(T.bindActionCreators)(t,e)}):void 0}];var D=[function(t){return"function"==typeof t?F(t):void 0},function(t){return t?void 0:j(function(){return{}})}],q=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function I(t,e,n){return q({},n,t,e)}var B=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var i=n.pure,r=n.areMergedPropsEqual,o=!1,s=void 0;return function(e,n,a){var u=t(e,n,a);return o?i&&r(u,s)||(s=u):(o=!0,s=u),s}}}(t):void 0},function(t){return t?void 0:function(){return I}}];function U(t,e,n,i){return function(r,o){return n(t(r,o),e(i,o),o)}}function z(t,e,n,i,r){var o=r.areStatesEqual,s=r.areOwnPropsEqual,a=r.areStatePropsEqual,u=!1,l=void 0,c=void 0,h=void 0,p=void 0,f=void 0;function d(r,u){var d,m,y=!s(u,c),_=!o(r,l);return l=r,c=u,y&&_?(h=t(l,c),e.dependsOnOwnProps&&(p=e(i,c)),f=n(h,p,c)):y?(t.dependsOnOwnProps&&(h=t(l,c)),e.dependsOnOwnProps&&(p=e(i,c)),f=n(h,p,c)):_?(d=t(l,c),m=!a(d,h),h=d,m&&(f=n(h,p,c)),f):f}return function(r,o){return u?d(r,o):(h=t(l=r,c=o),p=e(i,c),f=n(h,p,c),u=!0,f)}}function Y(t,e){var n=e.initMapStateToProps,i=e.initMapDispatchToProps,r=e.initMergeProps,o=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(t,o),a=i(t,o),u=r(t,o);return(o.pure?z:U)(s,a,u,t,o)}var W=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function G(t,e,n){for(var i=e.length-1;i>=0;i--){var r=e[i](t);if(r)return r}return function(e,i){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function V(t,e){return t===e}var H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.connectHOC,n=void 0===e?w:e,i=t.mapStateToPropsFactories,r=void 0===i?D:i,o=t.mapDispatchToPropsFactories,s=void 0===o?L:o,a=t.mergePropsFactories,u=void 0===a?B:a,l=t.selectorFactory,c=void 0===l?Y:l;return function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.pure,l=void 0===a||a,h=o.areStatesEqual,p=void 0===h?V:h,f=o.areOwnPropsEqual,d=void 0===f?x:f,m=o.areStatePropsEqual,y=void 0===m?x:m,_=o.areMergedPropsEqual,v=void 0===_?x:_,g=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=G(t,r,"mapStateToProps"),w=G(e,s,"mapDispatchToProps"),k=G(i,u,"mergeProps");return n(c,W({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:b,initMapDispatchToProps:w,initMergeProps:k,pure:l,areStatesEqual:p,areOwnPropsEqual:d,areStatePropsEqual:y,areMergedPropsEqual:v},g))}}();n.d(e,"Provider",function(){return l}),n.d(e,"createProvider",function(){return u}),n.d(e,"connectAdvanced",function(){return w}),n.d(e,"connect",function(){return H})},function(t,e,n){"use strict";n.r(e),n.d(e,"createStore",function(){return u}),n.d(e,"combineReducers",function(){return c}),n.d(e,"bindActionCreators",function(){return p}),n.d(e,"applyMiddleware",function(){return d}),n.d(e,"compose",function(){return f}),n.d(e,"__DO_NOT_USE__ActionTypes",function(){return r});var i=n(89),r={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function a(t){if("object"!==(void 0===t?"undefined":o(t))||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function u(t,e,n){var s;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(u)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var l=t,c=e,h=[],p=h,f=!1;function d(){p===h&&(p=h.slice())}function m(){if(f)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 c}function y(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(f)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#subscribe(listener) for more details.");var e=!0;return d(),p.push(t),function(){if(e){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");e=!1,d();var n=p.indexOf(t);p.splice(n,1)}}}function _(t){if(!a(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(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,c=l(c,t)}finally{f=!1}for(var e=h=p,n=0;n<e.length;n++){(0,e[n])()}return t}return _({type:r.INIT}),(s={dispatch:_,subscribe:y,getState:m,replaceReducer:function(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");l=t,_({type:r.REPLACE})}})[i.a]=function(){var t,e=y;return(t={subscribe:function(t){if("object"!==(void 0===t?"undefined":o(t))||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(m())}return n(),{unsubscribe:e(n)}}})[i.a]=function(){return this},t},s}function l(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 c(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var o=e[i];0,"function"==typeof t[o]&&(n[o]=t[o])}var s=Object.keys(n);var a=void 0;try{!function(t){Object.keys(t).forEach(function(e){var n=t[e];if(void 0===n(void 0,{type:r.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:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+r.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(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(a)throw a;for(var i=!1,r={},o=0;o<s.length;o++){var u=s[o],c=n[u],h=t[u],p=c(h,e);if(void 0===p){var f=l(u,e);throw new Error(f)}r[u]=p,i=i||p!==h}return i?r:t}}function h(t,e){return function(){return e(t.apply(this,arguments))}}function p(t,e){if("function"==typeof t)return h(t,e);if("object"!==(void 0===t?"undefined":o(t))||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":void 0===t?"undefined":o(t))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(t),i={},r=0;r<n.length;r++){var s=n[r],a=t[s];"function"==typeof a&&(i[s]=h(a,e))}return i}function f(){for(var t=arguments.length,e=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 d(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=t.apply(void 0,i),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},u={getState:o.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(t){return t(u)});return a=f.apply(void 0,l)(o.dispatch),s({},o,{dispatch:a})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=a(n(291)),o=a(n(136)),s=a(n(83));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n(290);var u=!(!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)),l=!!navigator.userAgent.match(/iPad/i),c=!!navigator.userAgent.match(/Android/i),h=u||l||c,p=!h,f=document.body.parentNode.classList;f.add(p?"desktop":"mobile"),f.remove("loading");document.body.style.backgroundImage="linear-gradient("+(s.randint(40)+40)+"deg, #fde, #ffe)";e.default=i({},s,o,{sort:r,allProgress:function(t,e){var n=0;return e(0,0,t.length),t.forEach(function(i){i.then(function(i){return n+=1,e(Math.floor(100*n/t.length),n,t.length),i})}),Promise.all(t)},fieldSet:function(t){return function(e){return e?e instanceof Set?e:new Set(e.split(" ")):t}},is_iphone:u,is_ipad:l,is_android:c,is_mobile:h,is_desktop:p})},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return w}),n.d(e,"c",function(){return O}),n.d(e,"b",function(){return B});var i=n(64),r=n.n(i),o=n(1),s="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),a="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,u="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",l={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},c=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,h={},p=void 0===t||!t.env||!1;function f(){return null}var d=Object(o.h)("a",null).constructor;d.prototype.$$typeof=a,d.prototype.preactCompatUpgraded=!1,d.prototype.preactCompatNormalized=!1,Object.defineProperty(d.prototype,"type",{get:function(){return this.nodeName},set:function(t){this.nodeName=t},configurable:!0}),Object.defineProperty(d.prototype,"props",{get:function(){return this.attributes},set:function(t){this.attributes=t},configurable:!0});var m=o.options.event;o.options.event=function(t){return m&&(t=m(t)),t.persist=Object,t.nativeEvent=t,t};var y=o.options.vnode;function _(t,e,n){var i=e&&e._preactCompatRendered&&e._preactCompatRendered.base;i&&i.parentNode!==e&&(i=null),!i&&e&&(i=e.firstElementChild);for(var r=e.childNodes.length;r--;)e.childNodes[r]!==i&&e.removeChild(e.childNodes[r]);var s=Object(o.render)(t,e,i);return e&&(e._preactCompatRendered=s&&(s._component||{base:s})),"function"==typeof n&&n(),s&&s._component||s}o.options.vnode=function(t){if(!t.preactCompatUpgraded){t.preactCompatUpgraded=!0;var e=t.nodeName,n=t.attributes=E({},t.attributes);"function"==typeof e?(!0===e[u]||e.prototype&&"isReactComponent"in e.prototype)&&(t.children&&""===String(t.children)&&(t.children=void 0),t.children&&(n.children=t.children),t.preactCompatNormalized||P(t),function(t){var e=t.nodeName,n=t.attributes;t.attributes={},e.defaultProps&&E(t.attributes,e.defaultProps);n&&E(t.attributes,n)}(t)):(t.children&&""===String(t.children)&&(t.children=void 0),t.children&&(n.children=t.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),function(t,e){var n,i,r;if(e){for(r in e)if(n=c.test(r))break;if(n)for(r in i=t.attributes={},e)e.hasOwnProperty(r)&&(i[c.test(r)?r.replace(/([A-Z0-9])/,"-$1").toLowerCase():r]=e[r])}}(t,n))}y&&y(t)};var v=function(){};v.prototype.getChildContext=function(){return this.props.context},v.prototype.render=function(t){return t.children[0]};var g,b=[],w={map:function(t,e,n){return null==t?null:(t=w.toArray(t),n&&n!==t&&(e=e.bind(n)),t.map(e))},forEach:function(t,e,n){if(null==t)return null;t=w.toArray(t),n&&n!==t&&(e=e.bind(n)),t.forEach(e)},count:function(t){return t&&t.length||0},only:function(t){if(1!==(t=w.toArray(t)).length)throw new Error("Children.only() expects only one child.");return t[0]},toArray:function(t){return null==t?[]:b.concat(t)}};function k(t){return O.bind(null,t)}for(var S={},x=s.length;x--;)S[s[x]]=k(s[x]);function T(t){var e,n=t[u];return n?!0===n?t:n:(n=j({displayName:(e=t).displayName||e.name,render:function(){return e(this.props,this.context)}}),Object.defineProperty(n,u,{configurable:!0,value:!0}),n.displayName=t.displayName,n.propTypes=t.propTypes,n.defaultProps=t.defaultProps,Object.defineProperty(t,u,{configurable:!0,value:n}),n)}function O(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function t(e,n){for(var i=n||0;i<e.length;i++){var r=e[i];Array.isArray(r)?t(r):r&&"object"==typeof r&&!A(r)&&(r.props&&r.type||r.attributes&&r.nodeName||r.children)&&(e[i]=O(r.type||r.nodeName,r.props||r.attributes,r.children))}}(t,2),P(o.h.apply(void 0,t))}function P(t){var e;t.preactCompatNormalized=!0,function(t){var e=t.attributes||(t.attributes={});C.enumerable="className"in e,e.className&&(e.class=e.className);Object.defineProperty(e,"className",C)}(t),"function"!=typeof(e=t.nodeName)||e.prototype&&e.prototype.render||(t.nodeName=T(t.nodeName));var n,i,r=t.attributes.ref,o=r&&typeof r;return!g||"string"!==o&&"number"!==o||(t.attributes.ref=(n=r,(i=g)._refProxies[n]||(i._refProxies[n]=function(t){i&&i.refs&&(i.refs[n]=t,null===t&&(delete i._refProxies[n],i=null))}))),function(t){var e=t.nodeName,n=t.attributes;if(!n||"string"!=typeof e)return;var i={};for(var r in n)i[r.toLowerCase()]=r;i.ondoubleclick&&(n.ondblclick=n[i.ondoubleclick],delete n[i.ondoubleclick]);if(i.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var o=i.oninput||"oninput";n[o]||(n[o]=F([n[o],n[i.onchange]]),delete n[i.onchange])}}(t),t}function A(t){return t&&(t instanceof d||t.$$typeof===a)}var C={configurable:!0,get:function(){return this.class},set:function(t){this.class=t}};function E(t,e){for(var n=arguments,i=1,r=void 0;i<arguments.length;i++)if(r=n[i])for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);return t}function M(t,e){for(var n in t)if(!(n in e))return!0;for(var i in e)if(t[i]!==e[i])return!0;return!1}function R(){}function j(t){function e(t,e){!function(t){for(var e in t){var n=t[e];"function"!=typeof n||n.__bound||l.hasOwnProperty(e)||((t[e]=n.bind(t)).__bound=!0)}}(this),B.call(this,t,e,h),L.call(this,t,e)}return(t=E({constructor:e},t)).mixins&&function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=F(e[n].concat(t[n]||b),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}(t,function(t){for(var e={},n=0;n<t.length;n++){var i=t[n];for(var r in i)i.hasOwnProperty(r)&&"function"==typeof i[r]&&(e[r]||(e[r]=[])).push(i[r])}return e}(t.mixins)),t.statics&&E(e,t.statics),t.propTypes&&(e.propTypes=t.propTypes),t.defaultProps&&(e.defaultProps=t.defaultProps),t.getDefaultProps&&(e.defaultProps=t.getDefaultProps.call(e)),R.prototype=B.prototype,e.prototype=E(new R,t),e.displayName=t.displayName||"Component",e}function N(t,e,n){if("string"==typeof e&&(e=t.constructor.prototype[e]),"function"==typeof e)return e.apply(t,n)}function F(t,e){return function(){for(var n,i=arguments,r=0;r<t.length;r++){var o=N(this,t[r],i);if(e&&null!=o)for(var s in n||(n={}),o)o.hasOwnProperty(s)&&(n[s]=o[s]);else void 0!==o&&(n=o)}return n}}function L(t,e){D.call(this,t,e),this.componentWillReceiveProps=F([D,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=F([D,q,this.render||"render",I])}function D(t,e){if(t){var n=t.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof d)&&(t.children=n[0],t.children&&"object"==typeof t.children&&(t.children.length=1,t.children[0]=t.children)),p){var i="function"==typeof this?this:this.constructor,o=this.propTypes||i.propTypes,s=this.displayName||i.name;o&&r.a.checkPropTypes(o,t,"prop",s)}}}function q(t){g=this}function I(){g===this&&(g=null)}function B(t,e,n){o.Component.call(this,t,e),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},n!==h&&L.call(this,t,e)}function U(t,e){B.call(this,t,e)}E(B.prototype=new o.Component,{constructor:B,isReactComponent:{},replaceState:function(t,e){for(var n in this.setState(t,e),this.state)n in t||delete this.state[n]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),R.prototype=B.prototype,U.prototype=new R,U.prototype.isPureReactComponent=!0,U.prototype.shouldComponentUpdate=function(t,e){return M(this.props,t)||M(this.state,e)};var z={version:"15.1.0",DOM:S,PropTypes:r.a,Children:w,render:_,createClass:j,createFactory:k,createElement:O,cloneElement:function(t,e){for(var n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];if(!A(t))return t;var r=t.attributes||t.props,s=[Object(o.h)(t.nodeName||t.type,E({},r),t.children||r&&r.children),e];return n&&n.length?s.push(n):e&&e.children&&s.push(e.children),P(o.cloneElement.apply(void 0,s))},isValidElement:A,findDOMNode:function(t){return t&&t.base||t},unmountComponentAtNode:function(t){var e=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!e||e.parentNode!==t||(Object(o.render)(Object(o.h)(f),t,e),0))},Component:B,PureComponent:U,unstable_renderSubtreeIntoContainer:function(t,e,n,i){var r=_(Object(o.h)(v,{context:t.context},e),n),s=r._component||r.base;return i&&i.call(s,r),s},__spread:E};e.d=z}).call(this,n(43))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(85);e.default={system:{load_site:"SYSTEM_LOAD_SITE",running_command:"SYSTEM_RUNNING_COMMAND",command_output:"SYSTEM_COMMAND_OUTPUT",relay_connected:"SYSTEM_RELAY_CONNECTED",relay_disconnected:"SYSTEM_RELAY_DISCONNECTED",rpc_connected:"SYSTEM_RPC_CONNECTED",rpc_disconnected:"SYSTEM_RPC_DISCONNECTED",list_directory:"SYSTEM_LIST_DIRECTORY",listing_directory:"SYSTEM_LISTING_DIRECTORY",count_directory:"SYSTEM_COUNT_DIRECTORY",counting_directory:"SYSTEM_COUNTING_DIRECTORY",stdout:"SYSTEM_STDOUT",stderr:"SYSTEM_STDERR",change_language:"SYSTEM_CHANGE_LANGUAGE"},app:{change_tool:"APP_CHANGE_TOOL",load_progress:"APP_LOAD_PROGRESS"},folder:(0,i.crud_type)("folder",[]),file:(0,i.crud_type)("file",[]),task:(0,i.crud_type)("task",["starting_task","stopping_task","task_begin","task_finish","start_queue","stop_queue","starting_queue","stopping_queue","progress","epoch"]),auth:(0,i.crud_type)("auth",["set_token","set_error","set_current_user","logout_user","loading","initialized","set_return_to"]),socket:{connect:"SOCKET_CONNECT",connect_error:"SOCKET_CONNECT_ERROR",reconnect:"SOCKET_RECONNECT",reconnecting:"SOCKET_RECONNECTING",reconnect_error:"SOCKET_RECONNECT_ERROR",reconnect_failed:"SOCKET_RECONNECT_FAILED",disconnect:"SOCKET_DISCONNECT",error:"SOCKET_ERROR",status:"SOCKET_STATUS",load_params:"SOCKET_LOAD_PARAMS",list_checkpoints:"SOCKET_LIST_CHECKPOINTS",list_sequences:"SOCKET_LIST_SEQUENCES",list_epochs:"SOCKET_LIST_EPOCHS"},player:{get_params:"GET_PARAMS",set_param:"SET_PARAM",send_command:"SEND_COMMAND",loading_checkpoints:"LOADING_CHECKPOINTS",loading_checkpoint:"LOADING_CHECKPOINT",list_checkpoints:"LIST_CHECKPOINTS",loading_sequences:"LOADING_SEQUENCES",loading_sequence:"LOADING_SEQUENCE",load_sequence:"LOAD_SEQUENCE",loading_epochs:"LOADING_EPOCHS",load_epoch:"LOAD_EPOCH",set_fps:"SET_FPS",seeking:"SEEKING",pausing:"PAUSING",playing:"PLAYING",current_frame:"CURRENT_FRAME",start_recording:"START_RECORDING",add_record_frame:"ADD_RECORD_FRAME",save_frame:"SAVE_FRAME",saving_video:"SAVING_VIDEO",save_video:"SAVE_VIDEO",set_fullscreen:"SET_FULLSCREEN"},audioPlayer:{play:"AUDIO_PLAY",pause:"AUDIO_PAUSE",resume:"AUDIO_RESUME",enqueue:"AUDIO_ENQUEUE"},dataset:{load:"DATASET_LOAD",set_folder:"DATASET_SET_FOLDER",upload_files:"DATASET_UPLOAD_FILES",file_progress:"DATASET_FILE_PROGRESS",file_uploaded:"DATASET_FILE_UPLOADED",fetch_url:"DATASET_FETCH_URL",fetch_progress:"DATASET_FETCH_PROGRESS",list_epochs:"DATASET_LIST_EPOCHS"},samplernn:{init:"SAMPLERNN_INIT",set_folder:"SAMPLERNN_SET_FOLDER",load_loss:"SAMPLERNN_LOAD_LOSS",load_graph:"SAMPLERNN_LOAD_GRAPH"},biggan:(0,i.with_type)("biggan",["init","set_folder","load_results","load_encodings"]),pix2pix:(0,i.with_type)("pix2pix",["init","set_folder"]),pix2pixhd:(0,i.with_type)("pix2pixhd",["init","set_folder","load_results","load_dataset_count","load_uprez"]),pix2wav:(0,i.with_type)("pix2wav",["init","set_folder"]),wav2pix:(0,i.with_type)("wav2pix",["load","progress","finish","zip","uploading"]),dashboard:(0,i.with_type)("dashboard",["load"]),morph:(0,i.with_type)("morph",["load"])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),r=n(126),o=p(n(19)),s=p(n(38)),a=p(n(81)),u=p(n(135)),l=p(n(62)),c=p(n(52)),h=n(20);function p(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.default=Object.keys(r.actions).map(function(t){return[t,r.actions[t]]}).concat([["live",o],["queue",s],["system",a],["dataset",l],["audioPlayer",c]]).map(function(t){return[t[0],(0,i.bindActionCreators)(t[1],h.store.dispatch)]}).concat([["socket",u]]).reduce(function(t,e){return(t[e[0]]=e[1])&&t},{})},function(t,e,n){"use strict";n.r(e);var i=n(9),r=n.n(i),o=n(5),s=n(0),a=n.n(s),u=n(146),l=n.n(u),c=n(13),h=n.n(c),p=n(12),f=n.n(p),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var y=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=m(this,t.call.apply(t,[this].concat(o))),i.state={match:i.computeMatch(i.props.history.location.pathname)},m(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:d({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,n=e.children,i=e.history;f()(null==n||1===o.d.Children.count(n),"A <Router> may have only one child element"),this.unlisten=i.listen(function(){t.setState({match:t.computeMatch(i.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){h()(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?o.d.Children.only(t):null},e}(o.d.Component);y.propTypes={history:a.a.object.isRequired,children:a.a.node},y.contextTypes={router:a.a.object},y.childContextTypes={router:a.a.object.isRequired};var _=y,v=_;function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var b=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=g(this,t.call.apply(t,[this].concat(o))),i.history=l()(i.props),g(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){r()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(v,{history:this.history,children:this.props.children})},e}(o.d.Component);b.propTypes={basename:a.a.string,forceRefresh:a.a.bool,getUserConfirmation:a.a.func,keyLength:a.a.number,children:a.a.node};var w=b,k=n(145),S=n.n(k);function x(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var T=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=x(this,t.call.apply(t,[this].concat(o))),i.history=S()(i.props),x(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){r()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(v,{history:this.history,children:this.props.children})},e}(o.d.Component);T.propTypes={basename:a.a.string,getUserConfirmation:a.a.func,hashType:a.a.oneOf(["hashbang","noslash","slash"]),children:a.a.node};var O=T,P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var C=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},E=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=A(this,t.call.apply(t,[this].concat(o))),i.handleClick=function(t){if(i.props.onClick&&i.props.onClick(t),!t.defaultPrevented&&0===t.button&&!i.props.target&&!C(t)){t.preventDefault();var e=i.context.router.history,n=i.props,r=n.replace,o=n.to;r?e.replace(o):e.push(o)}},A(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=t.innerRef,i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>");var r=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return o.d.createElement("a",P({},i,{onClick:this.handleClick,href:r,ref:n}))},e}(o.d.Component);E.propTypes={onClick:a.a.func,target:a.a.string,replace:a.a.bool,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired,innerRef:a.a.oneOfType([a.a.string,a.a.func])},E.defaultProps={replace:!1},E.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired,createHref:a.a.func.isRequired}).isRequired}).isRequired};var M=E,R=n(88),j=n(87),N=function(t){var e=t.pathname,n=t.search,i=t.hash,r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},F=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},L=function(t,e,n,i){var r=void 0;"string"==typeof t?(r=function(t){var e=t||"/",n="",i="",r=e.indexOf("#");-1!==r&&(i=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i}}(t)).state=e:(void 0===(r=F({},t)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(r.key=n),i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=Object(R.default)(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r},D=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(j.default)(t.state,e.state)},q=function(){var t=null,e=[];return{setPrompt:function(e){return r()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,i,o){if(null!=t){var s="function"==typeof t?t(e,n):t;"string"==typeof s?"function"==typeof i?i(s,o):(r()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==s)}else o(!0)},appendListener:function(t){var n=!0,i=function(){n&&t.apply(void 0,arguments)};return e.push(i),function(){n=!1,e=e.filter(function(t){return t!==i})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];e.forEach(function(t){return t.apply(void 0,n)})}}},I=("undefined"==typeof window||!window.document||window.document.createElement,"function"==typeof Symbol&&Symbol.iterator,Object.assign,Object.assign,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),B=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},U=function(t,e,n){return Math.min(Math.max(t,e),n)},z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,i=void 0===n?["/"]:n,o=t.initialIndex,s=void 0===o?0:o,a=t.keyLength,u=void 0===a?6:a,l=q(),c=function(t){B(y,t),y.length=y.entries.length,l.notifyListeners(y.location,y.action)},h=function(){return Math.random().toString(36).substr(2,u)},p=U(s,0,i.length-1),f=i.map(function(t){return L(t,void 0,"string"==typeof t?h():t.key||h())}),d=N,m=function(t){var n=U(y.index+t,0,y.entries.length-1),i=y.entries[n];l.confirmTransitionTo(i,"POP",e,function(t){t?c({action:"POP",location:i,index:n}):c()})},y={length:f.length,action:"POP",location:f[p],index:p,entries:f,createHref:d,push:function(t,n){r()(!("object"===(void 0===t?"undefined":I(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=L(t,n,h(),y.location);l.confirmTransitionTo(i,"PUSH",e,function(t){if(t){var e=y.index+1,n=y.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),c({action:"PUSH",location:i,index:e,entries:n})}})},replace:function(t,n){r()(!("object"===(void 0===t?"undefined":I(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=L(t,n,h(),y.location);l.confirmTransitionTo(i,"REPLACE",e,function(t){t&&(y.entries[y.index]=i,c({action:"REPLACE",location:i}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(t){var e=y.index+t;return e>=0&&e<y.entries.length},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return y};function Y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var W=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=Y(this,t.call.apply(t,[this].concat(o))),i.history=z(i.props),Y(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){h()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(_,{history:this.history,children:this.props.children})},e}(o.d.Component);W.propTypes={initialEntries:a.a.array,initialIndex:a.a.number,getUserConfirmation:a.a.func,keyLength:a.a.number,children:a.a.node};var G=W,V=n(63),H=n.n(V),Z={},Q=0,K=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof e&&(e={path:e});var i=e,r=i.path,o=i.exact,s=void 0!==o&&o,a=i.strict,u=void 0!==a&&a,l=i.sensitive,c=void 0!==l&&l;if(null==r)return n;var h=function(t,e){var n=""+e.end+e.strict+e.sensitive,i=Z[n]||(Z[n]={});if(i[t])return i[t];var r=[],o={re:H()(t,r,e),keys:r};return Q<1e4&&(i[t]=o,Q++),o}(r,{end:s,strict:u,sensitive:c}),p=h.re,f=h.keys,d=p.exec(t);if(!d)return null;var m=d[0],y=d.slice(1),_=t===m;return s&&!_?null:{path:r,url:"/"===r&&""===m?"/":m,isExact:_,params:f.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}},$=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function X(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var J=function(t){return 0===o.d.Children.count(t)},tt=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=X(this,t.call.apply(t,[this].concat(o))),i.state={match:i.computeMatch(i.props,i.context.router)},X(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:$({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,i=t.location,r=t.path,o=t.strict,s=t.exact,a=t.sensitive;if(n)return n;f()(e,"You should not use <Route> or withRouter() outside a <Router>");var u=e.route,l=(i||u.location).pathname;return K(l,{path:r,strict:o,exact:s,sensitive:a},u.match)},e.prototype.componentWillMount=function(){h()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),h()(!(this.props.component&&this.props.children&&!J(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),h()(!(this.props.render&&this.props.children&&!J(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){h()(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),h()(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,i=e.component,r=e.render,s=this.context.router,a=s.history,u=s.route,l=s.staticContext,c={match:t,location:this.props.location||u.location,history:a,staticContext:l};return i?t?o.d.createElement(i,c):null:r?t?r(c):null:"function"==typeof n?n(c):n&&!J(n)?o.d.Children.only(n):null},e}(o.d.Component);tt.propTypes={computedMatch:a.a.object,path:a.a.string,exact:a.a.bool,strict:a.a.bool,sensitive:a.a.bool,component:a.a.func,render:a.a.func,children:a.a.oneOfType([a.a.func,a.a.node]),location:a.a.object},tt.contextTypes={router:a.a.shape({history:a.a.object.isRequired,route:a.a.object.isRequired,staticContext:a.a.object})},tt.childContextTypes={router:a.a.object.isRequired};var et=tt,nt=et,it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var ot=function(t){var e=t.to,n=t.exact,i=t.strict,r=t.location,s=t.activeClassName,a=t.className,u=t.activeStyle,l=t.style,c=t.isActive,h=t.ariaCurrent,p=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return o.d.createElement(nt,{path:"object"===(void 0===e?"undefined":rt(e))?e.pathname:e,exact:n,strict:i,location:r,children:function(t){var n=t.location,i=t.match,r=!!(c?c(i,n):i);return o.d.createElement(M,it({to:e,className:r?[a,s].filter(function(t){return t}).join(" "):a,style:r?it({},l,u):l,"aria-current":r&&h},p))}})};ot.propTypes={to:M.propTypes.to,exact:a.a.bool,strict:a.a.bool,location:a.a.object,activeClassName:a.a.string,className:a.a.string,activeStyle:a.a.object,style:a.a.object,isActive:a.a.func,ariaCurrent:a.a.oneOf(["page","step","location","true"])},ot.defaultProps={activeClassName:"active",ariaCurrent:"true"};var st=ot;var at=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(o.d.Component);at.propTypes={when:a.a.bool,message:a.a.oneOfType([a.a.func,a.a.string]).isRequired},at.defaultProps={when:!0},at.contextTypes={router:a.a.shape({history:a.a.shape({block:a.a.func.isRequired}).isRequired}).isRequired};var ut=at,lt={},ct=0,ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:function(t){var e=t,n=lt[e]||(lt[e]={});if(n[t])return n[t];var i=H.a.compile(t);return ct<1e4&&(n[t]=i,ct++),i}(t)(e,{pretty:!0})},pt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};var ft=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=L(t.to),n=L(this.props.to);D(e,n)?h()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},e.prototype.computeTo=function(t){var e=t.computedMatch,n=t.to;return e?"string"==typeof n?ht(n,e.params):pt({},n,{pathname:ht(n.pathname,e.params)}):n},e.prototype.perform=function(){var t=this.context.router.history,e=this.props.push,n=this.computeTo(this.props);e?t.push(n):t.replace(n)},e.prototype.render=function(){return null},e}(o.d.Component);ft.propTypes={computedMatch:a.a.object,push:a.a.bool,from:a.a.string,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired},ft.defaultProps={push:!1},ft.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired}).isRequired,staticContext:a.a.object}).isRequired};var dt=ft,mt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function yt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var _t=function(t){return"/"===t.charAt(0)?t:"/"+t},vt=function(t,e){return t?mt({},e,{pathname:_t(t)+e.pathname}):e},gt=function(t){return"string"==typeof t?t:N(t)},bt=function(t){return function(){f()(!1,"You cannot %s with <StaticRouter>",t)}},wt=function(){},kt=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=i=yt(this,t.call.apply(t,[this].concat(o))),i.createHref=function(t){return _t(i.props.basename+gt(t))},i.handlePush=function(t){var e=i.props,n=e.basename,r=e.context;r.action="PUSH",r.location=vt(n,L(t)),r.url=gt(r.location)},i.handleReplace=function(t){var e=i.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=vt(n,L(t)),r.url=gt(r.location)},i.handleListen=function(){return wt},i.handleBlock=function(){return wt},yt(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.componentWillMount=function(){h()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["basename","context","location"]),r={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=_t(t);return 0!==e.pathname.indexOf(n)?e:mt({},e,{pathname:e.pathname.substr(n.length)})}(e,L(n)),push:this.handlePush,replace:this.handleReplace,go:bt("go"),goBack:bt("goBack"),goForward:bt("goForward"),listen:this.handleListen,block:this.handleBlock};return o.d.createElement(_,mt({},i,{history:r}))},e}(o.d.Component);kt.propTypes={basename:a.a.string,context:a.a.object.isRequired,location:a.a.oneOfType([a.a.string,a.a.object])},kt.defaultProps={basename:"",location:"/"},kt.childContextTypes={router:a.a.object.isRequired};var St=kt;var xt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){h()(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),h()(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,i=void 0,r=void 0;return o.d.Children.forEach(e,function(e){if(null==i&&o.d.isValidElement(e)){var s=e.props,a=s.path,u=s.exact,l=s.strict,c=s.sensitive,h=s.from,p=a||h;r=e,i=K(n.pathname,{path:p,exact:u,strict:l,sensitive:c},t.match)}}),i?o.d.cloneElement(r,{location:n,computedMatch:i}):null},e}(o.d.Component);xt.contextTypes={router:a.a.shape({route:a.a.object.isRequired}).isRequired},xt.propTypes={children:a.a.node,location:a.a.object};var Tt=xt,Ot=K,Pt=n(144),At=n.n(Pt),Ct=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};var Et=function(t){var e=function(e){var n=e.wrappedComponentRef,i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["wrappedComponentRef"]);return o.d.createElement(et,{children:function(e){return o.d.createElement(t,Ct({},i,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:a.a.func},At()(e,t)};n.d(e,"BrowserRouter",function(){return w}),n.d(e,"HashRouter",function(){return O}),n.d(e,"Link",function(){return M}),n.d(e,"MemoryRouter",function(){return G}),n.d(e,"NavLink",function(){return st}),n.d(e,"Prompt",function(){return ut}),n.d(e,"Redirect",function(){return dt}),n.d(e,"Route",function(){return nt}),n.d(e,"Router",function(){return v}),n.d(e,"StaticRouter",function(){return St}),n.d(e,"Switch",function(){return Tt}),n.d(e,"matchPath",function(){return Ot}),n.d(e,"withRouter",function(){return Et})},function(t,e,n){"use strict";t.exports=function(){}},function(t,e,n){"use strict";var i=n(24),r=n(113),o=n(57),s=n(207),a=n(45);function u(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}e.newBlob=function(t,n){e.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(n)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function h(t){var n=65536,i=e.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;n>1;)try{return c.stringifyByChunk(t,i,n)}catch(t){n=Math.floor(n/2)}return c.stringifyByChar(t)}function p(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}e.applyFromCharCode=h;var f={};f.string={string:u,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},f.array={string:h,array:u,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},f.arraybuffer={string:function(t){return h(new Uint8Array(t))},array:function(t){return p(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:u,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:h,array:function(t){return p(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:u,nodebuffer:function(t){return o.newBufferFrom(t)}},f.nodebuffer={string:h,array:function(t){return p(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return p(t,new Uint8Array(t.length))},nodebuffer:u},e.transformTo=function(t,n){if(n||(n=""),!t)return n;e.checkSupport(t);var i=e.getTypeOf(n);return f[i][t](n)},e.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},e.delay=function(t,e,n){s(function(){t.apply(n||null,e||[])})},e.inherits=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n},e.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},e.prepareContent=function(t,n,o,s,u){return a.Promise.resolve(n).then(function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise(function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)}):t}).then(function(n){var c,h=e.getTypeOf(n);return h?("arraybuffer"===h?n=e.transformTo("uint8array",n):"string"===h&&(u?n=r.decode(n):o&&!0!==s&&(n=l(c=n,i.uint8array?new Uint8Array(c.length):new Array(c.length)))),n):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.AugmentationGrid=e.ButtonGrid=e.TaskList=e.CurrentTask=e.Checkbox=e.Button=e.SelectGroup=e.Select=e.Slider=e.NumberInput=e.TextInput=e.Param=e.ParamGroup=e.Group=e.Browser=e.Player=e.Gallery=e.FileViewer=e.FileUpload=e.FileRow=e.FileList=e.FolderList=e.AudioPlayer=e.Header=e.Progress=e.Loading=e.Views=void 0;var i=E(n(263)),r=E(n(262)),o=E(n(261)),s=E(n(51)),a=E(n(127)),u=E(n(256)),l=E(n(255)),c=n(21),h=E(n(125)),p=E(n(254)),f=E(n(124)),d=E(n(253)),m=E(n(25)),y=E(n(252)),_=E(n(17)),v=E(n(159)),g=E(n(39)),b=E(n(158)),w=E(n(92)),k=E(n(123)),S=E(n(55)),x=E(n(157)),T=E(n(66)),O=E(n(156)),P=E(n(49)),A=E(n(155)),C=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(154));function E(t){return t&&t.__esModule?t:{default:t}}e.Views=C,e.Loading=_.default,e.Progress=k.default,e.Header=y.default,e.AudioPlayer=i.default,e.FolderList=f.default,e.FileList=c.FileList,e.FileRow=c.FileRow,e.FileUpload=h.default,e.FileViewer=p.default,e.Gallery=d.default,e.Player=w.default,e.Browser=o.default,e.Group=m.default,e.ParamGroup=b.default,e.Param=g.default,e.TextInput=P.default,e.NumberInput=v.default,e.Slider=T.default,e.Select=S.default,e.SelectGroup=x.default,e.Button=s.default,e.Checkbox=u.default,e.CurrentTask=l.default,e.TaskList=O.default,e.ButtonGrid=a.default,e.AugmentationGrid=r.default,e.Timeline=A.default},function(t,e,n){"use strict";t.exports=function(t,e,n,i,r,o,s,a){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,r,o,s,a],c=0;(u=new Error(e.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(t,e,n){"use strict";var i=function(){};t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(20),s=n(6),a=(i=s)&&i.__esModule?i:{default:i},u=n(41),l=d(n(135)),c=d(n(274)),h=d(n(273)),p=d(n(267)),f=d(n(266));function d(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.default={socket:u.socket,actions:l,system:c,live:h,task:p,api:f},u.socket.on("status",function(t){switch(console.log("got status",t.key,t.value),o.store.dispatch(r({type:a.default.socket.status},t)),t.key){case"processing":o.store.dispatch(r({type:"SET_PARAM"},t))}})},function(t,e,n){var i,r,o=n(276),s=n(275),a=0,u=0;t.exports=function(t,e,n){var l=e&&n||0,c=e||[],h=(t=t||{}).node||i,p=void 0!==t.clockseq?t.clockseq:r;if(null==h||null==p){var f=o();null==h&&(h=i=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=r=16383&(f[6]<<8|f[7]))}var d=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:u+1,y=d-a+(m-u)/1e4;if(y<0&&void 0===t.clockseq&&(p=p+1&16383),(y<0||d>a)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=m,r=p;var _=(1e4*(268435455&(d+=122192928e5))+m)%4294967296;c[l++]=_>>>24&255,c[l++]=_>>>16&255,c[l++]=_>>>8&255,c[l++]=255&_;var v=d/4294967296*1e4&268435455;c[l++]=v>>>8&255,c[l++]=255&v,c[l++]=v>>>24&15|16,c[l++]=v>>>16&255,c[l++]=p>>>8|128,c[l++]=255&p;for(var g=0;g<6;++g)c[l+g]=h[g];return e||s(c)}},function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",function(t){e.processChunk(t)}),t.on("end",function(){e.end()}),t.on("error",function(t){e.error(t)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.progress;return(0,r.h)("div",{className:"loading"},"Loading",(0,r.h)("br",null),e&&(0,r.h)(s.default,{progress:e}))};var i,r=n(1),o=n(123),s=(i=o)&&i.__esModule?i:{default:i}},function(t,e,n){t.exports=n(318)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.play=e.pause=e.seek=e.load_epoch=e.load_sequence=e.list_sequences=e.list_epochs=e.list_checkpoints=e.set_fullscreen=e.send_command=e.set_param=e.get_params=void 0;var i=s(n(14)),r=s(n(6)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(40));function s(t){return t&&t.__esModule?t:{default:t}}e.get_params=function(){return i.default.live.get_params(),{type:r.default.player.get_params}},e.set_param=function(t,e){return console.log("set param",t,e),i.default.live.set_param(t,e),{type:r.default.player.set_param,key:t,value:e}},e.send_command=function(t,e){return i.default.live.send_command(t,e),{type:r.default.player.send_command}},e.set_fullscreen=function(t){return{type:r.default.player.set_fullscreen,value:t}},e.list_checkpoints=function(t){return i.default.live.list_checkpoints(t),{type:r.default.player.loading_checkpoints}},e.list_epochs=function(t,e){return i.default.live.list_epochs(t,e),{type:r.default.player.loading_epochs}},e.list_sequences=function(t){return i.default.live.list_sequences(t),{type:r.default.player.loading_sequences}},e.load_sequence=function(t){return i.default.live.load_sequence(t),{type:r.default.player.loading_sequence,sequence_name:t}},e.load_epoch=function(t,e){return i.default.live.load_epoch(t,e),{type:r.default.player.loading_checkpoint,checkpoint_name:t,epoch:e}},e.seek=function(t){return i.default.live.seek(t),{type:r.default.player.seeking}},e.pause=function t(e){return i.default.live.pause(t),o.toggleFPS(!1),{type:r.default.player.pausing}},e.play=function(t){return i.default.live.play(),o.toggleFPS(!0),{type:r.default.player.playing}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispatch=e.store=e.history=void 0;var i=n(3),r=n(308),o=m(n(305)),s=m(n(304)),a=m(n(297)),u=m(n(296)),l=m(n(292)),c=m(n(289)),h=m(n(286)),p=m(n(285)),f=m(n(284)),d=n(283);function m(t){return t&&t.__esModule?t:{default:t}}var y=(0,i.combineReducers)({router:r.routerReducer,auth:a.default,live:u.default,queue:l.default,system:c.default,upload:h.default,dashboard:p.default,audioPlayer:f.default,module:d.moduleReducer}),_=e.history=(0,s.default)(),v=e.store=(0,i.createStore)(y,(0,i.compose)((0,i.applyMiddleware)(o.default,(0,r.routerMiddleware)(_))));e.dispatch=v.dispatch},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileRow=e.FileList=void 0;var i=n(1),r=(n(3),n(2),n(8),s(n(29))),o=s(n(4));function s(t){return t&&t.__esModule?t:{default:t}}var a=o.default.fieldSet(new Set(["name","date","size"])),u=(e.FileList=function(t){var e=t.files,n=t.fields,r=(t.sort,t.title),s=t.linkFiles,l=t.onClick,c=t.onClickParent,h=t.onDelete,p=t.groupDirectories,f=t.parentDirectory,d=t.orderBy,m=void 0===d?"name asc":d,y=t.className,_=void 0===y?"":y,v=t.fileListClassName,g=void 0===v?"filelist":v,b=t.rowClassName,w=void 0===b?"row file":b,k=t.options,S=o.default.sort.orderByFn(m),x=S.mapFn,T=S.sortFn,O=(e||[]).filter(function(t){return!!t}).map(x).sort(T);if(p){var P=O.reduce(function(t,e){return t[e[1].dir].push(e),t},{true:[],false:[]});O=P.true.concat(P.false)}var A=a(n),C=null;A.has("thumbnail")&&(C=(0,i.h)("div",{class:"thumbnails"},O.map(function(t){return(0,i.h)("div",null,(0,i.h)("a",{href:t[1].url,target:"_blank"},(0,i.h)("img",{src:t[1].url})))})));var E=O.map(function(t){return(0,i.h)(u,{file:t[1],fields:A,className:w,linkFiles:s,onDelete:h,onClick:l,options:k})});return E&&E.length?(0,i.h)("div",{className:"rows "+_},r&&(0,i.h)("div",{className:"row heading"},(0,i.h)("h3",null,r),"}"),(0,i.h)("div",{className:"rows "+g},f&&(0,i.h)("div",{className:w+" parent"},(0,i.h)("div",{className:"filename",title:"Parent Directory"},(0,i.h)("span",{className:"link",onClick:function(t){return c&&c(t)}},(0,i.h)("i",null,"Parent Directory")))),C,E)):(0,i.h)("div",{className:"rows "+_},(0,i.h)("div",{className:"row heading"},(0,i.h)("h4",{className:"noFiles"},"No files")))},e.FileRow=function(t){var e=t.file,n=t.linkFiles,s=t.onDelete,u=t.onClick,l=t.className,c=void 0===l?"row file":l,h=t.username,p=void 0===h?"":h,f=t.options,d=a(t.fields),m=o.default.hush_size(e.size),y=e.date||e.created_at,_=e.epoch||e.epochs||0,v=e.count||0,g=void 0,b=void 0;return e.name?b=g=e.name:e.url&&(e.opt&&e.opt.type?(g=e.opt.type+": "+e.opt.title,b=e.opt.token):b=g=e.url.replace(/^https?:\/\//,"")),(0,i.h)("div",{className:c,key:b},d.has("name")&&(0,i.h)("div",{className:"filename",title:e.name||e.url},!1===e.persisted?(0,i.h)("span",{className:"unpersisted"},g):n&&e.url?(0,i.h)("a",{target:"_blank",onClick:function(t){t.metaKey||t.ctrlKey||t.altKey||!u||(t.preventDefault(),u&&u(e,t))},href:e.url},g):(0,i.h)("span",{className:"link",onClick:function(t){return u&&u(e,t)}},g)),d.has("age")&&(0,i.h)("div",{className:"age "+o.default.carbon_date(y)},o.default.get_age(y)),d.has("username")&&(0,i.h)("div",{className:"username"},p),d.has("epoch")&&(0,i.h)("div",{className:"epoch "+o.default.hush_null(_)[0]},_>0?"ep. "+_:""),d.has("date")&&(0,i.h)("div",{className:"date "+o.default.carbon_date(y),title:(0,r.default)(y).format("YYYY-MM-DD HH:mm")},(0,r.default)(y).format("YYYY-MM-DD")),d.has("datetime")&&(0,i.h)("div",{className:"datetime"},(0,i.h)("span",{class:"date "+o.default.carbon_date(y)},(0,r.default)(y).format("YYYY-MM-DD")),(0,i.h)("span",{class:"time "+o.default.carbon_time(y)},(0,r.default)(y).format("H:mm"))),d.has("size")&&(0,i.h)("div",{className:"size "+m[0]},m[1]),d.has("count")&&(0,i.h)("div",{className:"count "+o.default.hush_null(v)[0]},v>0?v+" files":""),(d.has("activity")||d.has("module"))&&(0,i.h)("div",{className:"activity"},d.has("activity")&&e.activity,d.has("module")&&e.module),d.has("delete")&&s&&e.id&&(0,i.h)("div",{className:"destroy",onClick:function(t){return s(e)}},"x"),d.has("deleteLink")&&s&&e.id&&(0,i.h)("div",{className:"destroyLink",onClick:function(t){return s(e)}},"Delete"),f&&t.options(e))})},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,s;for(i=0,e=0,n=t.length;e<n;e++)i+=t[e].length;for(s=new Uint8Array(i),r=0,e=0,n=t.length;e<n;e++)o=t[e],s.set(o,r),r+=o.length;return s}},s={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},function(t,e,n){"use strict";(function(t){if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,e.nodebuffer=void 0!==t,e.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)e.blob=!1;else{var i=new ArrayBuffer(0);try{e.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),e.blob=0===r.getBlob("application/zip").size}catch(t){e.blob=!1}}}try{e.nodestream=!!n(119).Readable}catch(t){e.nodestream=!1}}).call(this,n(47).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.h)("div",{className:"group"},this.props.title&&(0,i.h)("h3",null,this.props.title),this.props.children)};var i=n(1)},function(t,e,n){"use strict";var i=n(59),r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var o=n(46);o.inherits=n(30);var s=n(118),a=n(73);o.inherits(h,s);for(var u=r(a.prototype),l=0;l<u.length;l++){var c=u[l];h.prototype[c]||(h.prototype[c]=a.prototype[c])}function h(t){if(!(this instanceof h))return new h(t);s.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||i.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),i.nextTick(e,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(1),o=(n(3),n(2)),s=c(n(4)),a=c(n(7)),u=n(21),l=c(n(17));function c(t){return t&&t.__esModule?t:{default:t}}var h=s.default.fieldSet(new Set(["input","status","checkpoint","output"])),p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){var t=this.props,e=t.loading,n=t.progress,i=t.fields,o=t.module,s=t.data,a=t.folder,u=(t.match,t.history);return e?(0,r.h)(l.default,{progress:n}):s.folders.length?a&&a.name?(console.log(i),i=h(i),(0,r.h)("div",{className:"rows params datasets"},(0,r.h)("div",{className:"row row-heading dataset"},i.has("input")&&(0,r.h)("div",{className:"col input"},"input"),i.has("status")&&(0,r.h)("div",{className:"col status"},"status"),i.has("checkpoint")&&(0,r.h)("div",{className:"col checkpoint"},"checkpoint"),i.has("output")&&(0,r.h)("div",{className:"col output"},"output")),this.renderGroups())):void 0:(console.log("no folders, redirect to /new"),u.push("/"+o.name+"/new/"))}},{key:"renderGroups",value:function(){var t=this,e=this.props,n=e.module,i=e.data,o=e.folder,a=e.fields,l=e.inputFields,c=e.outputFields,p=e.runner,f=e.onPickDataset,d=e.onPickFile;e.datasetActions;a=h(a);var m=i.datasetLookup,y=i.fileLookup;if(!m)return(0,r.h)("div",null);var _=s.default.sort.orderByFn("date desc"),v=_.mapFn,g=_.sortFn,b=p&&p.cpu.task&&p.cpu.task.module===n.name,w=p&&p.gpu.task&&p.gpu.task.module===n.name;return o.datasets.map(function(t){return m[t]}).map(v).sort(g).map(function(e){var n=e[1],i="",o=!1,h=!1;return w&&p.gpu.task.dataset===n?(i=s.default.gerund(p.gpu.task.activity),o=!0):b&&"fetch"===p.cpu.task.activity&&p.cpu.task.opt.file_id===n.input[0]&&(o=!0,h=!0),(0,r.h)("div",{key:n.name,className:"row dataset",onClick:function(){return f&&f(n)}},t.props.beforeRow&&t.props.beforeRow(n),a.has("input")&&(0,r.h)("div",{className:"col input"},!!n.input.length&&(0,r.h)(u.FileList,{files:n.input.map(function(t){return y[t]}),className:"input_files",fileListClassName:"",rowClassName:"input_file",fields:l||"name date size delete",linkFiles:!0,onClick:d,onDelete:function(e){return t.onDeleteFile(e)}})),a.has("status")&&(0,r.h)("div",{className:["col","status","quiet",n.isBuilt?"built":"not_built",o?"processing":"not_processing"].join(" ")},t.props.datasetActions&&t.props.datasetActions(n,h,o),i),a.has("checkpoint")&&(0,r.h)("div",{className:"col checkpoint"},!!n.checkpoints.length&&(0,r.h)(u.FileRow,{file:n.checkpoints[0],fields:"name date epoch",className:"row checkpoint"})),a.has("output")&&(0,r.h)("div",{className:"col output"},!!n.output.length&&(0,r.h)(u.FileList,{files:n.output.map(function(t){return y[t]}),orderBy:"epoch desc",fields:c||"name date epoch size",linkFiles:!0,onClick:d,onDelete:function(e){return t.onDeleteFile(e)}})),t.props.afterRow&&t.props.afterRow(n))})}},{key:"onDeleteFile",value:function(t){confirm("Are you sure you want to delete this file?")&&(console.log("delete: confirmed"),this.props.onDeleteFile?(console.log("calling custom deletefile function"),this.props.onDeleteFile(t)):a.default.file.destroy(t))}}]),e}();e.default=(0,o.connect)(function(t){return{runner:t.system.runner}},function(t,e){return{}})(p)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(3),o=n(2),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(62)),a=l(n(17)),u=l(n(49));function l(t){return t&&t.__esModule?t:{default:t}}e.default=(0,o.connect)(function(t){return{}},function(t,e){return{actions:(0,r.bindActionCreators)(s,t)}})(function(t){var e=t.loading,n=(t.status,t.error,t.history,t.actions),r=t.module;return e?(0,i.h)(a.default,null):(console.log(t),(0,i.h)("div",{className:"opaque"},(0,i.h)("div",{className:"heading"},(0,i.h)("h2",null,"Create a new ",r.displayName," project")),(0,i.h)("div",{className:"params"},(0,i.h)(u.default,{autofocus:!0,title:"Name your project",onSave:function(t){n.createFolder(r,t).then(function(t){window.location.href="/"+r.name+"/datasets/"+t.id+"/"})}}))))})},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Oe(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function d(t){if(null==t._isValid){var e=f(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=p(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var y=i.momentProperties=[];function _(t,e){var n,i,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),0<y.length)for(n=0;n<y.length;n++)s(r=e[i=y[n]])||(t[i]=r);return t}var v=!1;function g(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function b(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=w(e)),n}function S(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&k(t[i])!==k(e[i]))&&s++;return s+o}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return h(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(var a in r+="\n["+s+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var O,P={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),P[t]||(x(e),P[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var n,i=h({},t);for(n in e)c(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},h(i[n],t[n]),h(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)c(t,n)&&!c(e,n)&&o(t[n])&&(i[n]=h({},i[n]));return i}function M(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var R={};function j(t,e){var n=t.toLowerCase();R[n]=R[n+"s"]=R[e]=t}function N(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function F(t){var e,n,i={};for(n in t)c(t,n)&&(e=N(n))&&(i[e]=t[n]);return i}var L={};function D(t,e){L[t]=e}function q(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},z={};function Y(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(z[t]=r),e&&(z[e[0]]=function(){return q(r.apply(this,arguments),e[1],e[2])}),n&&(z[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function W(t,e){return t.isValid()?(e=G(e,t.localeData()),U[e]=U[e]||function(t){var e,n,i,r=t.match(I);for(e=0,n=r.length;e<n;e++)z[r[e]]?r[e]=z[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=C(r[i])?r[i].call(e,t):r[i];return o}}(e),U[e](t)):t.localeData().invalidDate()}function G(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(B.lastIndex=0;0<=n&&B.test(t);)t=t.replace(B,i),B.lastIndex=0,n-=1;return t}var V=/\d/,H=/\d\d/,Z=/\d{3}/,Q=/\d{4}/,K=/[+-]?\d{6}/,$=/\d\d?/,X=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,nt=/[+-]?\d{1,6}/,it=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ut={};function lt(t,e,n){ut[t]=C(e)?e:function(t,i){return t&&n?n:e}}function ct(t,e){return c(ut,t)?ut[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pt={};function ft(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),a(e)&&(i=function(t,n){n[e]=k(t)}),n=0;n<t.length;n++)pt[t[n]]=i}function dt(t,e){ft(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}var mt=0,yt=1,_t=2,vt=3,gt=4,bt=5,wt=6,kt=7,St=8;function xt(t){return Tt(t)?366:365}function Tt(t){return t%4==0&&t%100!=0||t%400==0}Y("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),j("year","y"),D("year",1),lt("Y",rt),lt("YY",$,H),lt("YYYY",et,Q),lt("YYYYY",nt,K),lt("YYYYYY",nt,K),ft(["YYYYY","YYYYYY"],mt),ft("YYYY",function(t,e){e[mt]=2===t.length?i.parseTwoDigitYear(t):k(t)}),ft("YY",function(t,e){e[mt]=i.parseTwoDigitYear(t)}),ft("Y",function(t,e){e[mt]=parseInt(t,10)}),i.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var Ot,Pt=At("FullYear",!0);function At(t,e){return function(n){return null!=n?(Et(this,t,n),i.updateOffset(this,e),this):Ct(this,t)}}function Ct(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Et(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Mt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Mt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?Tt(t)?29:28:31-n%7%2}Ot=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Y("MMMM",0,0,function(t){return this.localeData().months(this,t)}),j("month","M"),D("month",8),lt("M",$),lt("MM",$,H),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),ft(["M","MM"],function(t,e){e[yt]=k(t)-1}),ft(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[yt]=r:f(n).invalidMonth=t});var Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ft(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!a(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Mt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Lt(t){return null!=t?(Ft(this,t),i.updateOffset(this,!0),this):Ct(this,"Month")}var Dt=at,qt=at;function It(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],o=[];for(e=0;e<12;e++)n=p([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)i[e]=ht(i[e]),r[e]=ht(r[e]);for(e=0;e<24;e++)o[e]=ht(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Ut(t,e,n){var i=7+e-n;return-(7+Bt(t,0,i).getUTCDay()-e)%7+i-1}function zt(t,e,n,i,r){var o,s,a=1+7*(e-1)+(7+n-i)%7+Ut(t,i,r);return a<=0?s=xt(o=t-1)+a:a>xt(t)?(o=t+1,s=a-xt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Yt(t,e,n){var i,r,o=Ut(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Wt(r=t.year()-1,e,n):s>Wt(t.year(),e,n)?(i=s-Wt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Wt(t,e,n){var i=Ut(t,e,n),r=Ut(t+1,e,n);return(xt(t)-i+r)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),D("week",5),D("isoWeek",5),lt("w",$),lt("ww",$,H),lt("W",$),lt("WW",$,H),dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)}),Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),D("day",11),D("weekday",11),D("isoWeekday",11),lt("d",$),lt("e",$),lt("E",$),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),dt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),dt(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=at,Qt=at,Kt=at;function $t(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],u=[],l=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),u.push(o),l.push(i),l.push(r),l.push(o);for(s.sort(t),a.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)a[e]=ht(a[e]),u[e]=ht(u[e]),l[e]=ht(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Xt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Xt.apply(this)+q(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Xt.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),j("hour","h"),D("hour",13),lt("a",te),lt("A",te),lt("H",$),lt("h",$),lt("k",$),lt("HH",$,H),lt("hh",$,H),lt("kk",$,H),lt("hmm",X),lt("hmmss",J),lt("Hmm",X),lt("Hmmss",J),ft(["H","HH"],vt),ft(["k","kk"],function(t,e,n){var i=k(t);e[vt]=24===i?0:i}),ft(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ft(["h","hh"],function(t,e,n){e[vt]=k(t),f(n).bigHour=!0}),ft("hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i)),f(n).bigHour=!0}),ft("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i,2)),e[bt]=k(t.substr(r)),f(n).bigHour=!0}),ft("Hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i))}),ft("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i,2)),e[bt]=k(t.substr(r))});var ee,ne=At("Hours",!0),ie={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:jt,monthsShort:Nt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Ht,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},re={},oe={};function se(t){return t?t.toLowerCase().replace("_","-"):t}function ae(e){var n=null;if(!re[e]&&void 0!==t&&t&&t.exports)try{n=ee._abbr,function(){var t=new Error('Cannot find module "undefined"');throw t.code="MODULE_NOT_FOUND",t}(),ue(n)}catch(e){}return re[e]}function ue(t,e){var n;return t&&((n=s(e)?ce(t):le(t,e))?ee=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ee._abbr}function le(t,e){if(null!==e){var n,i=ie;if(e.abbr=t,null!=re[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=re[t]._config;else if(null!=e.parentLocale)if(null!=re[e.parentLocale])i=re[e.parentLocale]._config;else{if(null==(n=ae(e.parentLocale)))return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;i=n._config}return re[t]=new M(E(i,e)),oe[t]&&oe[t].forEach(function(t){le(t.name,t.config)}),ue(t),re[t]}return delete re[t],null}function ce(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ee;if(!r(t)){if(e=ae(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=se(t[o]).split("-")).length,n=(n=se(t[o+1]))?n.split("-"):null;0<e;){if(i=ae(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&S(r,n,!0)>=e-1)break;e--}o++}return ee}(t)}function he(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||11<n[yt]?yt:n[_t]<1||n[_t]>Mt(n[mt],n[yt])?_t:n[vt]<0||24<n[vt]||24===n[vt]&&(0!==n[gt]||0!==n[bt]||0!==n[wt])?vt:n[gt]<0||59<n[gt]?gt:n[bt]<0||59<n[bt]?bt:n[wt]<0||999<n[wt]?wt:-1,f(t)._overflowDayOfYear&&(e<mt||_t<e)&&(e=_t),f(t)._overflowWeeks&&-1===e&&(e=kt),f(t)._overflowWeekday&&-1===e&&(e=St),f(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function fe(t){var e,n,r,o,s,a=[];if(!t._d){var u,l;for(u=t,l=new Date(i.now()),r=u._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[_t]&&null==t._a[yt]&&function(t){var e,n,i,r,o,s,a,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,n=pe(e.GG,t._a[mt],Yt(Pe(),1,4).year),i=pe(e.W,1),((r=pe(e.E,1))<1||7<r)&&(u=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var l=Yt(Pe(),o,s);n=pe(e.gg,t._a[mt],l.year),i=pe(e.w,l.week),null!=e.d?((r=e.d)<0||6<r)&&(u=!0):null!=e.e?(r=e.e+o,(e.e<0||6<e.e)&&(u=!0)):r=o}i<1||i>Wt(n,o,s)?f(t)._overflowWeeks=!0:null!=u?f(t)._overflowWeekday=!0:(a=zt(n,i,r,o,s),t._a[mt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=pe(t._a[mt],r[mt]),(t._dayOfYear>xt(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Bt(s,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[gt]&&0===t._a[bt]&&0===t._a[wt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?Bt:function(t,e,n,i,r,o,s){var a=new Date(t,e,n,i,r,o,s);return t<100&&0<=t&&isFinite(a.getFullYear())&&a.setFullYear(t),a}).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var de=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ve=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ge=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,i,r,o,s,a=t._i,u=de.exec(a)||me.exec(a);if(u){for(f(t).iso=!0,e=0,n=_e.length;e<n;e++)if(_e[e][1].exec(u[1])){r=_e[e][0],i=!1!==_e[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(u[3])){o=(u[2]||" ")+ve[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(u[4]){if(!ye.exec(u[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),xe(t)}else t._isValid=!1}var we=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ke={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Se(t){var e,n,i,r=we.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(r){var o=function(t,e,n,i,r,o){var s=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Nt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}(r[4],r[3],r[2],r[5],r[6],r[7]);if(e=r[1],n=o,i=t,e&&Vt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(f(i).weekdayMismatch=!0,!(i._isValid=!1)))return;t._a=o,t._tzm=function(t,e,n){if(t)return ke[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(r[8],r[9],r[10]),t._d=Bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function xe(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,o,s,a,u,l,h=""+t._i,p=h.length,d=0;for(r=G(t._f,t._locale).match(I)||[],e=0;e<r.length;e++)o=r[e],(n=(h.match(ct(o,t))||[])[0])&&(0<(s=h.substr(0,h.indexOf(n))).length&&f(t).unusedInput.push(s),h=h.slice(h.indexOf(n)+n.length),d+=n.length),z[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),a=o,l=t,null!=(u=n)&&c(pt,a)&&pt[a](u,l._a,l,a)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=p-d,0<h.length&&f(t).unusedInput.push(h),t._a[vt]<=12&&!0===f(t).bigHour&&0<t._a[vt]&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[vt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0)),e)}(t._locale,t._a[vt],t._meridiem),fe(t),he(t)}else Se(t);else be(t)}function Te(t){var e,n,c,p,y=t._i,v=t._f;return t._locale=t._locale||ce(t._l),null===y||void 0===v&&""===y?m({nullInput:!0}):("string"==typeof y&&(t._i=y=t._locale.preparse(y)),b(y)?new g(he(y)):(u(y)?t._d=y:r(v)?function(t){var e,n,i,r,o;if(0===t._f.length)return f(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)o=0,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],xe(e),d(e)&&(o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,(null==i||o<i)&&(i=o,n=e));h(t,n||e)}(t):v?xe(t):s(n=(e=t)._i)?e._d=new Date(i.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(c=e,null===(p=ge.exec(c._i))?(be(c),!1===c._isValid&&(delete c._isValid,Se(c),!1===c._isValid&&(delete c._isValid,i.createFromInputFallback(c)))):c._d=new Date(+p[1])):r(n)?(e._a=l(n.slice(0),function(t){return parseInt(t,10)}),fe(e)):o(n)?function(t){if(!t._d){var e=F(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),fe(t)}}(e):a(n)?e._d=new Date(n):i.createFromInputFallback(e),d(t)||(t._d=null),t))}function Oe(t,e,n,i,s){var a,u={};return!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||r(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=t,u._f=e,u._strict=i,(a=new g(he(Te(u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Pe(t,e,n,i){return Oe(t,e,n,i,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ae=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Ce=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});function Ee(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Pe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var e=F(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||0,s=e.day||0,a=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ot.call(Me,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Me.length;++i)if(t[Me[i]]){if(n)return!1;parseFloat(t[Me[i]])!==k(t[Me[i]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ce(),this._bubble()}function je(t){return t instanceof Re}function Ne(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Fe(t,e){Y(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+q(~~(t/60),2)+e+q(~~t%60,2)})}Fe("Z",":"),Fe("ZZ",""),lt("Z",st),lt("ZZ",st),ft(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=De(st,t)});var Le=/([\+\-]|\d\d)/gi;function De(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Le)||["-",0,0],r=60*i[1]+k(i[2]);return 0===r?0:"+"===i[0]?r:-r}function qe(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(b(t)||u(t)?t.valueOf():Pe(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Pe(t).local()}function Ie(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ue=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ze=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ye(t,e){var n,i,r,o=t,s=null;return je(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(o={},e?o[e]=t:o.milliseconds=t):(s=Ue.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:k(s[_t])*n,h:k(s[vt])*n,m:k(s[gt])*n,s:k(s[bt])*n,ms:k(Ne(1e3*s[wt]))*n}):(s=ze.exec(t))?(n="-"===s[1]?-1:(s[1],1),o={y:We(s[2],n),M:We(s[3],n),w:We(s[4],n),d:We(s[5],n),h:We(s[6],n),m:We(s[7],n),s:We(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(t,e){var n;return t.isValid()&&e.isValid()?(e=qe(e,t),t.isBefore(e)?n=Ge(t,e):((n=Ge(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Pe(o.from),Pe(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new Re(o),je(t)&&c(t,"_locale")&&(i._locale=t._locale),i}function We(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ge(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ve(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),He(this,Ye(n="string"==typeof n?+n:n,i),t),this}}function He(t,e,n,r){var o=e._milliseconds,s=Ne(e._days),a=Ne(e._months);t.isValid()&&(r=null==r||r,a&&Ft(t,Ct(t,"Month")+a*n),s&&Et(t,"Date",Ct(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Ye.fn=Re.prototype,Ye.invalid=function(){return Ye(NaN)};var Ze=Ve(1,"add"),Qe=Ve(-1,"subtract");function Ke(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function $e(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ce(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xe=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Je(){return this._locale}function tn(t,e){Y(0,[t,t.length],0,e)}function en(t,e,n,i,r){var o;return null==t?Yt(this,i,r).year:((o=Wt(t,i,r))<e&&(e=o),function(t,e,n,i,r){var o=zt(t,e,n,i,r),s=Bt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,t,e,n,i,r))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),D("weekYear",1),D("isoWeekYear",1),lt("G",rt),lt("g",rt),lt("GG",$,H),lt("gg",$,H),lt("GGGG",et,Q),lt("gggg",et,Q),lt("GGGGG",nt,K),lt("ggggg",nt,K),dt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),dt(["gg","GG"],function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),j("quarter","Q"),D("quarter",7),lt("Q",V),ft("Q",function(t,e){e[yt]=3*(k(t)-1)}),Y("D",["DD",2],"Do","date"),j("date","D"),D("date",9),lt("D",$),lt("DD",$,H),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ft(["D","DD"],_t),ft("Do",function(t,e){e[_t]=k(t.match($)[0])});var nn=At("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),D("dayOfYear",4),lt("DDD",tt),lt("DDDD",Z),ft(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),Y("m",["mm",2],0,"minute"),j("minute","m"),D("minute",14),lt("m",$),lt("mm",$,H),ft(["m","mm"],gt);var rn=At("Minutes",!1);Y("s",["ss",2],0,"second"),j("second","s"),D("second",15),lt("s",$),lt("ss",$,H),ft(["s","ss"],bt);var on,sn=At("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),D("millisecond",16),lt("S",tt,V),lt("SS",tt,H),lt("SSS",tt,Z),on="SSSS";on.length<=9;on+="S")lt(on,it);function an(t,e){e[wt]=k(1e3*("0."+t))}for(on="S";on.length<=9;on+="S")ft(on,an);var un=At("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var ln=g.prototype;function cn(t){return t}ln.add=Ze,ln.calendar=function(t,e){var n=t||Pe(),r=qe(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",s=e&&(C(e[o])?e[o].call(this,n):e[o]);return this.format(s||this.localeData().calendar(o,this,Pe(n)))},ln.clone=function(){return new g(this)},ln.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=qe(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=N(e)){case"year":o=Ke(this,i)/12;break;case"month":o=Ke(this,i);break;case"quarter":o=Ke(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:w(o)},ln.endOf=function(t){return void 0===(t=N(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},ln.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)},ln.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Pe(t).isValid())?Ye({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ln.fromNow=function(t){return this.from(Pe(),t)},ln.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Pe(t).isValid())?Ye({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ln.toNow=function(t){return this.to(Pe(),t)},ln.get=function(t){return C(this[t=N(t)])?this[t]():this},ln.invalidAt=function(){return f(this).overflow},ln.isAfter=function(t,e){var n=b(t)?t:Pe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(s(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},ln.isBefore=function(t,e){var n=b(t)?t:Pe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=N(s(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},ln.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},ln.isSame=function(t,e){var n,i=b(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=N(e||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},ln.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ln.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ln.isValid=function(){return d(this)},ln.lang=Xe,ln.locale=$e,ln.localeData=Je,ln.max=Ce,ln.min=Ae,ln.parsingFlags=function(){return h({},f(this))},ln.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:L[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=F(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(C(this[t=N(t)]))return this[t](e);return this},ln.startOf=function(t){switch(t=N(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},ln.subtract=Qe,ln.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ln.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ln.toDate=function(){return new Date(this.valueOf())},ln.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?W(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=Pt,ln.isLeapYear=function(){return Tt(this.year())},ln.weekYear=function(t){return en.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(t){return en.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ln.month=Lt,ln.daysInMonth=function(){return Mt(this.year(),this.month())},ln.week=ln.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ln.isoWeek=ln.isoWeeks=function(t){var e=Yt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ln.weeksInYear=function(){var t=this.localeData()._week;return Wt(this.year(),t.dow,t.doy)},ln.isoWeeksInYear=function(){return Wt(this.year(),1,4)},ln.date=nn,ln.day=ln.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},ln.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ln.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=(n=t,i=this.localeData(),"string"==typeof n?i.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?e:e-7)}return this.day()||7;var n,i},ln.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ln.hour=ln.hours=ne,ln.minute=ln.minutes=rn,ln.second=ln.seconds=sn,ln.millisecond=ln.milliseconds=un,ln.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=De(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ie(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?He(this,Ye(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ie(this)},ln.utc=function(t){return this.utcOffset(0,t)},ln.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ie(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=De(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=Be,ln.isUTC=Be,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=T("dates accessor is deprecated. Use date instead.",nn),ln.months=T("months accessor is deprecated. Use month instead",Lt),ln.years=T("years accessor is deprecated. Use year instead",Pt),ln.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ln.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(_(t,this),(t=Te(t))._a){var e=t._isUTC?p(t._a):Pe(t._a);this._isDSTShifted=this.isValid()&&0<S(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function pn(t,e,n,i){var r=ce(),o=p().set(i,e);return r[n](o,t)}function fn(t,e,n){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return pn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=pn(t,i,n,"month");return r}function dn(t,e,n,i){"boolean"==typeof t?a(e)&&(n=e,e=void 0):(e=t,t=!1,a(n=e)&&(n=e,e=void 0)),e=e||"";var r,o=ce(),s=t?o._week.dow:0;if(null!=n)return pn(e,(n+s)%7,i,"day");var u=[];for(r=0;r<7;r++)u[r]=pn(e,(r+s)%7,i,"day");return u}hn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return C(i)?i.call(e,n):i},hn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(t){return this._ordinal.replace("%d",t)},hn.preparse=cn,hn.postformat=cn,hn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return C(r)?r(t,e,n,i):r.replace(/%d/i,t)},hn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},hn.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},hn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return function(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,s))?r:null:-1!==(r=Ot.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,s))?r:-1!==(r=Ot.call(this._longMonthsParse,s))?r:null:-1!==(r=Ot.call(this._longMonthsParse,s))?r:-1!==(r=Ot.call(this._shortMonthsParse,s))?r:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},hn.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||It.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=qt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||It.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(t){return Yt(t,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(t,e){return t?r(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},hn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},hn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return function(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},hn.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ue("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ue),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ce);var mn=Math.abs;function yn(t,e,n,i){var r=Ye(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function _n(t){return t<0?Math.floor(t):Math.ceil(t)}function vn(t){return 4800*t/146097}function gn(t){return 146097*t/4800}function bn(t){return function(){return this.as(t)}}var wn=bn("ms"),kn=bn("s"),Sn=bn("m"),xn=bn("h"),Tn=bn("d"),On=bn("w"),Pn=bn("M"),An=bn("y");function Cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var En=Cn("milliseconds"),Mn=Cn("seconds"),Rn=Cn("minutes"),jn=Cn("hours"),Nn=Cn("days"),Fn=Cn("months"),Ln=Cn("years"),Dn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},In=Math.abs;function Bn(t){return(0<t)-(t<0)||+t}function Un(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=In(this._milliseconds)/1e3,i=In(this._days),r=In(this._months);e=w((t=w(n/60))/60),n%=60,t%=60;var o=w(r/12),s=r%=12,a=i,u=e,l=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var p=h<0?"-":"",f=Bn(this._months)!==Bn(h)?"-":"",d=Bn(this._days)!==Bn(h)?"-":"",m=Bn(this._milliseconds)!==Bn(h)?"-":"";return p+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?d+a+"D":"")+(u||l||c?"T":"")+(u?m+u+"H":"")+(l?m+l+"M":"")+(c?m+c+"S":"")}var zn=Re.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var t=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),t.milliseconds=mn(t.milliseconds),t.seconds=mn(t.seconds),t.minutes=mn(t.minutes),t.hours=mn(t.hours),t.months=mn(t.months),t.years=mn(t.years),this},zn.add=function(t,e){return yn(this,t,e,1)},zn.subtract=function(t,e){return yn(this,t,e,-1)},zn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=N(t))||"year"===t)return e=this._days+i/864e5,n=this._months+vn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(gn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},zn.asMilliseconds=wn,zn.asSeconds=kn,zn.asMinutes=Sn,zn.asHours=xn,zn.asDays=Tn,zn.asWeeks=On,zn.asMonths=Pn,zn.asYears=An,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},zn._bubble=function(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return 0<=o&&0<=s&&0<=a||o<=0&&s<=0&&a<=0||(o+=864e5*_n(gn(a)+s),a=s=0),u.milliseconds=o%1e3,t=w(o/1e3),u.seconds=t%60,e=w(t/60),u.minutes=e%60,n=w(e/60),u.hours=n%24,a+=r=w(vn(s+=w(n/24))),s-=_n(gn(r)),i=w(a/12),a%=12,u.days=s,u.months=a,u.years=i,this},zn.clone=function(){return Ye(this)},zn.get=function(t){return t=N(t),this.isValid()?this[t+"s"]():NaN},zn.milliseconds=En,zn.seconds=Mn,zn.minutes=Rn,zn.hours=jn,zn.days=Nn,zn.weeks=function(){return w(this.days()/7)},zn.months=Fn,zn.years=Ln,zn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,i,r,o,s,a,u,l,c,h=this.localeData(),p=(e=!t,n=h,i=Ye(this).abs(),r=Dn(i.as("s")),o=Dn(i.as("m")),s=Dn(i.as("h")),a=Dn(i.as("d")),u=Dn(i.as("M")),l=Dn(i.as("y")),(c=r<=qn.ss&&["s",r]||r<qn.s&&["ss",r]||o<=1&&["m"]||o<qn.m&&["mm",o]||s<=1&&["h"]||s<qn.h&&["hh",s]||a<=1&&["d"]||a<qn.d&&["dd",a]||u<=1&&["M"]||u<qn.M&&["MM",u]||l<=1&&["y"]||["yy",l])[2]=e,c[3]=0<+this,c[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,c));return t&&(p=h.pastFuture(+this,p)),h.postformat(p)},zn.toISOString=Un,zn.toString=Un,zn.toJSON=Un,zn.locale=$e,zn.localeData=Je,zn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Un),zn.lang=Xe,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),lt("x",rt),lt("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ft("x",function(t,e,n){n._d=new Date(k(t))}),i.version="2.22.1",e=Pe,i.fn=ln,i.min=function(){return Ee("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ee("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(t){return Pe(1e3*t)},i.months=function(t,e){return fn(t,e,"months")},i.isDate=u,i.locale=ue,i.invalid=m,i.duration=Ye,i.isMoment=b,i.weekdays=function(t,e,n){return dn(t,e,n,"weekdays")},i.parseZone=function(){return Pe.apply(null,arguments).parseZone()},i.localeData=ce,i.isDuration=je,i.monthsShort=function(t,e){return fn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return dn(t,e,n,"weekdaysMin")},i.defineLocale=le,i.updateLocale=function(t,e){if(null!=e){var n,i,r=ie;null!=(i=ae(t))&&(r=i._config),(n=new M(e=E(r,e))).parentLocale=re[t],re[t]=n,ue(t)}else null!=re[t]&&(null!=re[t].parentLocale?re[t]=re[t].parentLocale:null!=re[t]&&delete re[t]);return re[t]},i.locales=function(){return O(re)},i.weekdaysShort=function(t,e,n){return dn(t,e,n,"weekdaysShort")},i.normalizeUnits=N,i.relativeTimeRounding=function(t){return void 0===t?Dn:"function"==typeof t&&(Dn=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==qn[t]&&(void 0===e?qn[t]:(qn[t]=e,"s"===t&&(qn.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=ln,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(295)(t))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";for(var i=n(10),r=n(24),o=n(57),s=n(16),a=new Array(256),u=0;u<256;u++)a[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;a[254]=a[254]=1;function l(){s.call(this,"utf-8 decode"),this.leftOver=null}function c(){s.call(this,"utf-8 encode")}e.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,s,a=t.length,u=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),u+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(u):new Array(u),s=0,o=0;s<u;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[s++]=n:n<2048?(e[s++]=192|n>>>6,e[s++]=128|63&n):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|63&n):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|63&n);return e}(t)},e.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,s=t.length,u=new Array(2*s);for(n=0,e=0;e<s;)if((r=t[e++])<128)u[n++]=r;else if((o=a[r])>4)u[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&e<s;)r=r<<6|63&t[e++],o--;o>1?u[n++]=65533:r<65536?u[n++]=r:(r-=65536,u[n++]=55296|r>>10&1023,u[n++]=56320|1023&r)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),i.applyFromCharCode(u)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(l,s),l.prototype.processChunk=function(t){var n=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=n;(n=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),n.set(o,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var s=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}(n),u=n;s!==n.length&&(r.uint8array?(u=n.subarray(0,s),this.leftOver=n.subarray(s,n.length)):(u=n.slice(0,s),this.leftOver=n.slice(s,n.length))),this.push({data:e.utf8decode(u),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=l,i.inherits(c,s),c.prototype.processChunk=function(t){this.push({data:e.utf8encode(t.data),meta:t.meta})},e.Utf8EncodeWorker=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uprez_task=e.splice_task=e.augment_task=e.live_task=e.train_task=e.fetch_task=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=(s(n(15)),s(n(14)),s(n(6)),s(n(7))),o=s(n(48));function s(t){return t&&t.__esModule?t:{default:t}}e.fetch_task=function(t,e,n){return function(i){if(!t)return console.log("input file inaccessible (no url)");var s={module:o.default.name,activity:"fetch",dataset:n,opt:{url:t,file_id:e,dataset:n}};return r.default.queue.add_task(s)}},e.train_task=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return function(i){if("PLACEHOLDER"!==(t=t.name||t)){var s={module:o.default.name,activity:"train",dataset:t,epoch:0,epochs:n,opt:{folder_id:e}};if(s.dataset)return console.log(s),r.default.queue.add_task(s);console.error("train task: no dataset specified")}}},e.live_task=function(t,e,n){return function(s){var a={module:o.default.name,activity:"live",dataset:t,checkpoint:e,opt:i({},n,{poll_delay:.01})};return console.log(a),console.log("add live task"),r.default.queue.add_task(a)}},e.augment_task=function(t,e){return function(n){if("PLACEHOLDER"!==t){var s={module:o.default.name,activity:"augment",dataset:t,folder_id:e.folder_id,opt:i({},e)};return console.log(s),console.log("add augment task"),r.default.queue.add_task(s)}}},e.splice_task=function(t){return function(e){var n={module:o.default.name,activity:"splice",dataset:t.title,folder_id:t.folder_id,epochs:1,opt:i({},t)};return console.log(n),console.log("add splice task"),r.default.queue.add_task(n)}},e.uprez_task=function(t){return function(e){var n={module:o.default.name,activity:"uprez",dataset:t.dataset,folder_id:t.folder_id,opt:i({},t)};return console.log(n),console.log("add uprez task"),r.default.queue.add_task(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.count_dataset=e.list_epochs=e.load_uprez=e.load_results=e.load_directories=void 0;var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=(l(n(15)),l(n(14)),l(n(6))),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(36)),s=l(n(7)),a=l(n(4)),u=l(n(48));function l(t){return t&&t.__esModule?t:{default:t}}e.load_directories=function(t){return function(e){var n=u.default.name;a.default.allProgress([o.load(n),s.default.socket.list_directory({module:n,dir:"sequences"}),s.default.socket.list_directory({module:n,dir:"datasets"}),s.default.socket.list_directory({module:n,dir:"checkpoints"})],function(t,n,i){console.log("pix2pixhd load progress",n,i),e({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(s){var a=i(s,4),u=a[0],l=a[1],c=a[2],h=a[3],p=u.folderLookup,f=u.fileLookup,d=u.datasetLookup,m=u.folders,y=u.files,_=(u.unsortedFolder,u.resultsFolder),v=l.filter(function(t){return t.dir});v.forEach(function(t){o.getDataset(n,d,t.name).isBuilt=!0}),c.filter(function(t){return t.dir}).forEach(function(t){o.getDataset(n,d,t.name).hasDataset=!0});var g=h.filter(function(t){return t.dir});g.forEach(function(t){var e=o.getDataset(n,d,t.name);e.hasCheckpoints=!0,e.checkpoints=[t]}),e({type:r.default.dataset.load,data:{module:n,folderLookup:p,fileLookup:f,datasetLookup:d,folders:m,files:y,sequences:v,datasets:c,checkpoints:g,resultsFolder:_}}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}).catch(function(t){console.error(t)}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}},e.load_results=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e,name:"results"}),s.default.file.index({module:e,generated:1,limit:250}),s.default.socket.list_directory({module:e,dir:"renders"}),s.default.socket.list_sequences({module:e,dir:"results"})],function(e,n,i){console.log("pix2pixhd load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(e){var n=i(e,4),o=n[0],s=n[1],a=n[2],u=n[3];t({type:r.default.pix2pixhd.load_results,results:{resultsFolder:o[0],files:s,renders:a,results:u}})})}},e.load_uprez=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e,name:"results"}),s.default.socket.list_sequences({module:e,dir:"results"}),s.default.file.index({module:e,activity:"uprez"})],function(e,n,i){console.log("pix2pixhd load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(e){var n=i(e,3),o=n[0],s=n[1],a=n[2];t({type:r.default.pix2pixhd.load_uprez,uprez:{resultsFolder:o[0],results:s,files:a}})})}};var c=new RegExp("_net_G.pth$");e.list_epochs=function(t){return function(e){var n=u.default.name;s.default.socket.list_directory({module:n,dir:"checkpoints/"+t}).then(function(t){var i=t.map(function(t){return t.name.match(c)?t.name.replace(c,""):null}).filter(function(t){return!!t});e({type:r.default.dataset.list_epochs,data:{epochs:i,module:n}})})}},e.count_dataset=function(t){return function(e){var n=u.default.name;a.default.allProgress([s.default.socket.list_directory({module:n,dir:"sequences/"+t+"/"}),s.default.socket.count_directory({module:n,dir:"datasets/"+t+"/train_A/"})],function(t,e,n){console.log("pix2pixhd load progress",e,n)}).then(function(n){var o=i(n,2),s=o[0],a=o[1],u=s.length;console.log(u,a),e({type:r.default.pix2pixhd.load_dataset_count,data:{name:t,sequence:s,sequenceCount:u,datasetCount:a}})})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(1),o=(n(3),n(2)),s=n(17);(i=s)&&i.__esModule;e.default=(0,o.connect)(function(t){return t.upload},function(t,e){return{}})(function(t){return(0,r.h)("div",{className:"status"},t.status)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(1),o=n(3),s=n(2),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(62)),u=h(n(25)),l=(h(n(39)),n(21),h(n(125))),c=h(n(49));function h(t){return t&&t.__esModule?t:{default:t}}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){var t=this.props,e=(t.loading,t.status,t.error,t.module,t.folder),n=(t.title,t.canRename),i=t.canUpload,o=t.canAddURL;return e.id?(0,r.h)("div",{className:"form params row"},(0,r.h)("div",{className:"col"},(0,r.h)(u.default,null,n&&this.renderFolderNameInput(e.name),i&&this.renderUploadInput(),o&&this.renderURLInput()))):(0,r.h)("div",{className:"params row"},(0,r.h)("div",{className:"column"},this.renderFolderNameInput(e.name)))}},{key:"curry",value:function(t){var e=this.props,n=e.module,i=e.folder;return function(e){return t(n,i,e)}}},{key:"renderFolderNameInput",value:function(t){return(0,r.h)(c.default,{title:"Dataset name",value:t,onSave:this.curry(this.props.actions.dataset.updateFolder)})}},{key:"renderUploadInput",value:function(){return(0,r.h)(l.default,{title:"Upload a file",multiple:!0,onUpload:this.curry(this.props.actions.dataset.uploadFile)})}},{key:"renderURLInput",value:function(){return(0,r.h)(c.default,{title:"Fetch a URL",placeholder:"http://",onSave:this.curry(this.props.actions.dataset.fetchURL)})}}]),e}();e.default=(0,s.connect)(function(t){return t.upload},function(t,e){return{actions:{dataset:(0,o.bindActionCreators)(a,t)}}})(p)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load=e.getDataset=e.emptyDataset=e.unsortedFolder=void 0;var i,r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(7),s=(i=o)&&i.__esModule?i:{default:i};var a={},u=e.unsortedFolder=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a[t]||e){var n={id:0,module:t,name:"unsorted",files:[],datasets:[]};a[t]=n}return a[t]},l=e.emptyDataset=function(t,e,n,i){(i=i||u(t)).datasets.push(n);var r={name:n,folder_id:i.id,input:[],checkpoints:[],output:[]};return e[n]=r,r},c=e.getDataset=function(t,e,n,i,r){var o=e[n=n.toLowerCase()]||l(t,e,n,i);return r&&(o.date=o.date&&!isNaN(o.date)?Math.max(+new Date(r),o.date):+new Date(r)),o};e.load=function(t){return console.log(t),Promise.all([s.default.folder.index({module:t,limit:0}),s.default.file.index({module:t,limit:0}),s.default.task.index({module:t})]).then(function(e){var n=r(e,3),i=n[0],o=n[1],a=(n[2],{}),l={},h={},p=void 0;l=i.reduce(function(t,e){return t[e.id]={id:e.id,name:e.name,folder:e,files:[],datasets:[]},"results"===e.name&&(p=e),t},{unsorted:u(t,!0)}),p?console.log("got results folder",p):(console.log("creating results folder..."),s.default.folder.create({module:t,name:"results",activity:"results"}).then(function(t){console.log("created folder",t),l.results=t}));var f=o.filter(function(t){return t.generated});return o.filter(function(t){return!t.generated}).reduce(function(e,n){h[n.id]=n,n.name||(n.opt&&n.opt.media&&n.opt.media.token?n.name=n.opt.media.token:n.name=n.url.replace(/^https?:\/\/(www.)?/,"").replace(/[^a-zA-Z0-9_]/g,"_").replace(/_+/g,"_")||"unknown_"+Math.floor(1e3*Math.random()));var i=(n.name||"unsorted").split(".")[0],r=l[n.folder_id]||u(t),o=c(t,e,n.dataset||i,r,n.date||n.created_at);return n.url.match(n.name)&&(n.persisted=!0),o.input.push(n.id),r.files.push(n.id),e},a),f.map(function(e){h[e.id]=e;var n=e.name.split(".")[0].split("-"),i=l[e.folder_id]||u(t);c(t,a,e.dataset||n[0],i,e.date||e.created_at).output.push(e.id),i.files.push(e.id),e.epoch=e.epoch||n[1]}),{folderLookup:l,fileLookup:h,datasetLookup:a,folders:i,files:o,unsortedFolder:l.unsorted,resultsFolder:p}}).catch(function(t){console.error(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.load_encodings=e.load_results=e.load_directories=void 0;var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=(l(n(15)),l(n(14)),l(n(6))),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(36)),s=l(n(7)),a=l(n(4)),u=l(n(61));function l(t){return t&&t.__esModule?t:{default:t}}e.load_directories=function(t){return function(e){var n=u.default.name;a.default.allProgress([o.load(n),s.default.socket.list_directory({module:n,dir:"sequences"}),s.default.socket.list_directory({module:n,dir:"datasets"}),s.default.socket.list_directory({module:n,dir:"checkpoints"})],function(t,n,i){console.log("biggan load progress",n,i),e({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"biggan"}})}).then(function(s){var a=i(s,4),u=a[0],l=a[1],c=a[2],h=a[3],p=u.folderLookup,f=u.fileLookup,d=u.datasetLookup,m=u.folders,y=u.files,_=(u.unsortedFolder,u.resultsFolder),v=l.filter(function(t){return t.dir});v.forEach(function(t){o.getDataset(n,d,t.name).isBuilt=!0}),c.filter(function(t){return t.dir}).forEach(function(t){o.getDataset(n,d,t.name).hasDataset=!0});var g=h.filter(function(t){return t.dir});g.forEach(function(t){var e=o.getDataset(n,d,t.name);e.hasCheckpoints=!0,e.checkpoints=[t]}),e({type:r.default.dataset.load,data:{module:n,folderLookup:p,fileLookup:f,datasetLookup:d,folders:m,files:y,sequences:v,datasets:c,checkpoints:g,resultsFolder:_}}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}).catch(function(t){console.error(t)}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}},e.load_results=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e,name:"results"}),s.default.file.index({module:e,datatype:"video",generated:1,limit:250})],function(e,n,i){console.log("biggan load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"biggan"}})}).then(function(e){var n=i(e,2),o=n[0],s=n[1];t({type:r.default.biggan.load_results,results:{resultsFolder:o[0],files:s}})})}},e.load_encodings=function(){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({module:e}),s.default.file.index({module:e,datatype:"image",generated:1})],function(t,e,n){}).then(function(e){var n=i(e,2),o=n[0],s=n[1],a={},u={};o.forEach(function(t){a[t.id]=t.name,u[t.name]=[]}),s.forEach(function(t){var e=a[t.folder_id];u[e].push(t)}),o.forEach(function(t){u[t.name].length||delete u[t.name]}),t({type:r.default.biggan.load_encodings,encodings:u})})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stop_queue=e.start_queue=e.add_task=e.stop_task=e.start_task=void 0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=a(n(14)),o=a(n(6)),s=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}e.start_task=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.start_task(t,e),i({type:o.default.task.starting_task,task:t},e)},e.stop_task=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.stop_task(t,e),i({type:o.default.task.stopping_task,task:t},e)},e.add_task=function(t){return function(e){s.default.task.create(t).then(function(t){r.default.task.add_task(t)})}},e.start_queue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.start_queue(t,e),i({type:o.default.task.starting_queue,task:t},e)},e.stop_queue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.stop_queue(t,e),i({type:o.default.task.stopping_queue,task:t},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(1);n(2);var o=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Component),i(e,[{key:"render",value:function(){return(0,r.h)("div",{className:"button param"},(0,r.h)("span",null,this.props.title),(0,r.h)("span",null,this.props.children))}}]),e}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.startSynthesizing=function(){h=!0},e.stopSynthesizing=function(){h=!1},e.startRecording=function(){p=new r.default.Video(25,.95),l=!0,i.store.dispatch({type:o.default.player.start_recording})},e.stopRecording=function(){if(!l)return;l=!1,i.store.dispatch({type:o.default.player.saving_video}),p.compile(!1,function(t){i.store.dispatch({type:o.default.player.save_video,blob:t})})},e.saveFrame=function(){c=!0},e.onFrame=function(t){i.store.dispatch({type:o.default.player.current_frame,meta:t.meta});var e=new Blob([t.frame],{type:"image/jpg"}),n=URL.createObjectURL(e),r=new Image,a=document.querySelector(".player canvas");if(!a)return console.error("no canvas for frame");r.onload=function(){r.onload=null,URL.revokeObjectURL(n);var t=a.getContext("2d-lodpi");if(t.drawImage(r,0,0,a.width,a.height),h){var e=t.getImageData(0,0,a.width,a.height);s.play({imageData:e})}l&&(console.log("record frame"),p.add(a),i.store.dispatch({type:o.default.player.add_record_frame})),c&&(c=!1,a.toBlob(function(t){i.store.dispatch({type:o.default.player.save_frame,blob:t})})),u+=1},r.src=n},e.toggleFPS=function(t){d=void 0!==t?t:i.store.getState().live.playing,f!==d&&(d?y():_());f=d},e.startWatchingFPS=y,e.stopWatchingFPS=_;var i=n(20),r=a(n(272)),o=a(n(6)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(134));function a(t){return t&&t.__esModule?t:{default:t}}var u=0,l=!1,c=!1,h=!1,p=void 0;var f=void 0,d=void 0;var m=void 0;function y(){clearInterval(m),m=setInterval(function(){i.store.dispatch({type:o.default.player.set_fps,fps:u}),u=0},1e3)}function _(){clearInterval(m)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.socket=void 0;var i,r=n(20),o=n(6),s=(i=o)&&i.__esModule?i:{default:i};var a=e.socket=io.connect("/client");a.on("connect",function(){return r.store.dispatch({type:s.default.socket.connect})}),a.on("connect_error",function(t){return r.store.dispatch({type:s.default.socket.connect_error,error:t})}),a.on("reconnect",function(t){return r.store.dispatch({type:s.default.socket.reconnect,attempt:t})}),a.on("reconnecting",function(){return r.store.dispatch({type:s.default.socket.reconnecting})}),a.on("reconnect_error",function(t){return r.store.dispatch({type:s.default.socket.reconnect_error,error:t})}),a.on("reconnect_failed",function(t){return r.store.dispatch({type:s.default.socket.reconnect_failed,error:t})}),a.on("disconnect",function(){return r.store.dispatch({type:s.default.socket.disconnect})}),a.on("error",function(t){return r.store.dispatch({type:s.default.socket.error,error:t})})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(6),s=(i=o)&&i.__esModule?i:{default:i};function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loading:!0,progress:null,error:null,data:null,folder_id:0},e=arguments[1];switch(e.type){case s.default.app.load_progress:return r({},t,{progress:e.progress});case s.default.dataset.load:return r({},t,{loading:!1,data:e.data});case s.default.dataset.set_folder:return r({},t,{folder_id:e.data.folder_id});case s.default.folder.create:return r({},t,{loading:!1,data:{folders:t.data.folders.concat([e.data.id]),folderLookup:r({},t.data.folderLookup,a({},e.data.id,e.data))}});case s.default.file.create:return function(t,e){if(console.log(e.data),!t.data||!t.data.datasetLookup)return t;var n=void 0,i=void 0,o=void 0,s=void 0,u=void 0;return(u=e.data.dataset?e.data.dataset:e.data.name?e.data.name.split(".")[0]:e.data.url?e.data.url:null)in t.data.datasetLookup?(i=t.data.datasetLookup[u],n=r({},i,{input:e.data.generated?i.input:[e.data.id].concat(i.input),output:e.data.generated?[e.data.id].concat(i.output):i.output})):(console.log(e.data.created_at,e.data.date),n={name:u,date:e.data.created_at||e.data.date,input:e.data.generated?[]:[e.data.id],checkpoints:[],output:e.data.generated?[e.data.id]:[]}),s=t.data.folderLookup[e.data.folder_id],o=r({},s,{datasets:s.datasets.concat([u]),files:s.files.concat([e.data.id])}),r({},t,{loading:!1,data:r({},t.data,{files:t.data.files.concat([e.data.id]),folderLookup:r({},t.data.folderLookup,a({},e.data.folder_id,o)),fileLookup:r({},t.data.fileLookup,a({},e.data.id,e.data)),datasetLookup:r({},t.data.datasetLookup,a({},u,n))})})}(t,e);case s.default.file.update:return function(t,e){var n,i=void 0,o=t.data.datasetLookup[e.data.dataset],s=t.data.fileLookup[e.data.id],u=void 0;return s&&e.data.dataset!==s.dataset&&(t.data.datasetLookup[s.dataset]&&(i=t.data.datasetLookup[s.dataset],old_dataset_update=r({},i,{input:i.input.filter(function(t){return t!==e.data.id}),output:i.output.filter(function(t){return t!==e.data.id})})),u=r({},o,{input:e.data.generated?[]:[e.data.id],output:e.data.generated?[e.data.id]:[]})),console.log("old_dataset",old_dataset_update.name),console.log("new_dataset",u.name),r({},t,{loading:!1,data:r({},t.data,{datasetLookup:i?r({},t.data.datasetLookup,(n={},a(n,i.name,old_dataset_update),a(n,o.name,u),n)):u?r({},t.data.datasetLookup,a({},o.name,u)):t.data.datasetLookup,fileLookup:r({},t.data.fileLookup,a({},e.data.id,e.data))})})}(t,e);case s.default.file.destroy:return function(t,e){if(!t.data)return t;var n=r({},t.data.fileLookup),i=r({},t.data.datasetLookup),o=r({},t.data.folderLookup),s=n[e.data.id];if(!s)return t;var a=t.data.datasetLookup[s.dataset],u=void 0;if(a)if((u=r({},a,{input:a.input.filter(function(t){return t!==s.id}),output:a.output.filter(function(t){return t!==s.id})})).input.length||u.checkpoints.length||u.output.length)console.log("dataset just needs sweeping"),i[s.dataset]=u;else{delete i[s.dataset];var l=o[s.folder_id];o[s.folder_id]=r({},l,{datasets:l.datasets.filter(function(t){return t!==s.dataset})})}return delete n[s.id],r({},t,{loading:!1,data:r({},t.data,{folderLookup:o,fileLookup:n,datasetLookup:i})})}(t,e);case s.default.dataset.list_epochs:return r({},t,{epochs:e.data.epochs});default:return t}}},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,l=[],c=!1,h=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&f())}function f(){if(!c){var t=a(p);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new d(t,e)),1!==l.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.import_files=e.load_loss=e.load_graph=e.load_directories=void 0;var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=c(n(15)),o=(c(n(14)),c(n(6))),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(36)),a=c(n(7)),u=c(n(4)),l=c(n(67));function c(t){return t&&t.__esModule?t:{default:t}}e.load_directories=function(t){return function(e){var n=l.default.name;u.default.allProgress([s.load(n),a.default.socket.list_directory({module:n,dir:"datasets"}),a.default.socket.list_directory({module:n,dir:"results"}),a.default.socket.list_directory({module:n,dir:"output"}),a.default.socket.disk_usage({module:n,dir:"datasets"}),h()(e)],function(t,n,i){e({type:o.default.app.load_progress,progress:{i:n,n:i},data:{module:"samplernn"}})}).then(function(t){var a=i(t,6),u=a[0],l=a[1],c=a[2],h=a[3],p=a[4],f=a[5],d=u.folderLookup,m=u.fileLookup,y=u.datasetLookup,_=u.folders,v=u.files,g=u.unsortedFolder;console.log(p);var b=l.filter(function(t){return t.name.match(/(wav|aiff?|flac|mp3)$/)&&!t.dir});l.filter(function(t){return t.dir}).forEach(function(t){s.getDataset(n,y,t.name,g,t.date).isBuilt=!0}),b.forEach(function(t){t.uuid=(0,r.default)(),m[t.uuid]=t;var e=t.name.split(".")[0],i=s.getDataset(n,y,e,g,t.date);t.persisted=!1,i.input.push(t.uuid)});var w=c.filter(function(t){return t.dir}).map(function(t){var e=t.name.split("-").map(function(t){return t.split(":")}).filter(function(t){return t.length&&t[1]}).reduce(function(t,e){return(t[e[0]]=e[1])&&t},{});if(e.name=e.name||e.dataset||e.exp,e.name){e.date=t.date,e.dir=t,e.persisted=!1;var i=s.getDataset(n,y,e.name,g,e.date),r=f[e.name];return r&&(i.epoch=e.epoch=r.length,e.training_loss=r),i.checkpoints.push(e),e}}).filter(function(t){return!!t});h.map(function(t){t.uuid=(0,r.default)(),m[t.uuid]=t;var e=t.name.split(".")[0].split("-"),i=s.getDataset(n,y,e[0],g,t.date);t.persisted=!1,t.epoch=parseInt(t.epoch||e[1].replace(/^\D+/,""))||0,i.epoch=Math.max(t.epoch,i.epoch||0),i.output.some(function(e){return m[e].name===t.name&&(m[e].persisted=!0,!0)})||i.output.push(t.uuid)}),e({type:o.default.dataset.load,data:{module:n,folderLookup:d,fileLookup:m,datasetLookup:y,folders:_,files:v,checkpoints:w,output:h}})}).catch(function(t){console.error(t)}),t&&e({type:o.default.dataset.set_folder,data:{folder_id:t,module:n}})}},e.load_graph=function(){return function(t){var e=l.default.name;u.default.allProgress([h()(t),a.default.socket.list_directory({module:e,dir:"results"})],function(e,n,i){t({type:o.default.app.load_progress,progress:{i:n,n:i},data:{module:"samplernn"}})}).then(function(e){var n=i(e,2),r=n[0],s=n[1];t({type:o.default.samplernn.load_graph,lossReport:r,results:s})})}};var h=e.load_loss=function(){return function(t){return a.default.socket.run_script({module:"samplernn",activity:"report"}).then(function(e){var n={};return e.stdout.split("\n\n").filter(function(t){return!!t}).forEach(function(t){var e,i=t.split("\n"),r=(e=i,Array.isArray(e)?e:Array.from(e)),o=r[0],s=r.slice(1);n[o]=s.map(function(t){return t.split("\t").reduce(function(t,e){var n=e.split(": ");return t[n[0]]=n[1],t},{})})}),t({type:o.default.samplernn.load_loss,lossReport:n}),n})}};e.import_files=function(t,e,n){return function(i){var r=t.selected,o=t.folder_id,s=t.url_base,u=t.import_action,l=Object.keys(r).filter(function(t){return r[t]}),c=void 0;switch(u){case"Hotlink":c=l.reduce(function(t,i){return e[i].output.map(function(t){return n[t]}).map(function(t){var e=t.name.split(".").pop();return a.default.file.create({folder_id:o,name:t.name,url:s+t.name,mime:"audio/"+e,epoch:t.epoch,size:t.size,module:"samplernn",dataset:i,activity:"train",datatype:"audio",generated:!0,created_at:new Date(t.date),updated_at:new Date(t.date)})}).concat(t)},[]);break;case"Upload":c=l.reduce(function(t,i){return e[i].input.map(function(t){return n[t]}).map(function(t){if(t.persisted)return null;var e=t.name.split(".").pop();return"wav"!==e&&"flac"!==e?(console.log(t),a.default.socket.upload_file({folder_id:o,module:"samplernn",activity:"train",path:"datasets",filename:t.name,generated:!1,processed:!1,datatype:"audio",ttl:6e4})):void 0}).concat(t)},[]).filter(function(t){return!!t})}return console.log(c),Promise.all(c).then(function(t){console.log(t),window.location.href="/samplernn/datasets/"+o+"/"}).catch(function(t){console.error(t)})}}},function(t,e,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:n(193),t.exports={Promise:i}},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(47).Buffer)},function(t,e,n){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*