text: (window.webpackJsonp=window.webpackJsonp||[]).push([[12,7],[,function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(4),i=n.n(o),a=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),u=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired});function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:u.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=u.isRequired,e[n]=a,e),o}var c=s(),l=n(34),f=n.n(l),d=n(16),p=n.n(d);var h=null,m={notify:function(){}};var g=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=m}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==h&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=m)},e}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var v=0,b={};function _(){}function w(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,s=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=o.methodName,l=void 0===c?"connectAdvanced":c,d=o.renderCountProp,h=void 0===d?void 0:d,m=o.shouldHandleStateChanges,w=void 0===m||m,E=o.storeKey,O=void 0===E?"store":E,x=o.withRef,S=void 0!==x&&x,k=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),j=O+"Subscription",C=v++,M=((t={})[O]=u,t[j]=a,t),P=((n={})[j]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=s(n),i=y({},k,{getDisplayName:s,methodName:l,renderCountProp:h,shouldHandleStateChanges:w,storeKey:O,withRef:S,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=C,r.state={},r.renderCount=0,r.store=e[O]||t[O],r.propsMode=Boolean(e[O]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+O+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+O+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[j]=t||this.context[j],e},a.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=_,this.store=null,this.selector.run=_,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return p()(S,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+l+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(w){var e=(this.propsMode?this.props:this.context)[j];this.subscription=new g(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(S||h||this.propsMode&&this.subscription))return e;var t=y({},e);return S&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[j]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=P,a.contextTypes=M,a.propTypes=M,f()(a,t)}}var E=Object.prototype.hasOwnProperty;function O(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(O(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!E.call(t,n[o])||!O(e[n[o]],t[n[o]]))return!1;return!0}var S=n(18);n(24);function k(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function j(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function C(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=j(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=j(o),o=r(t,n)),o},r}}var M=[function(e){return"function"==typeof e?C(e):void 0},function(e){return e?void 0:k(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?k(function(t){return Object(S.bindActionCreators)(e,t)}):void 0}];var P=[function(e){return"function"==typeof e?C(e):void 0},function(e){return e?void 0:k(function(){return{}})}],N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function T(e,t,n){return N({},n,e,t)}var I=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r=n.pure,o=n.areMergedPropsEqual,i=!1,a=void 0;return function(t,n,u){var s=e(t,n,u);return i?r&&o(s,a)||(a=s):(i=!0,a=s),a}}}(e):void 0},function(e){return e?void 0:function(){return T}}];function D(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function R(e,t,n,r,o){var i=o.areStatesEqual,a=o.areOwnPropsEqual,u=o.areStatePropsEqual,s=!1,c=void 0,l=void 0,f=void 0,d=void 0,p=void 0;function h(o,s){var h,m,g=!a(s,l),y=!i(o,c);return c=o,l=s,g&&y?(f=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),p=n(f,d,l)):g?(e.dependsOnOwnProps&&(f=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),p=n(f,d,l)):y?(h=e(c,l),m=!u(h,f),f=h,m&&(p=n(f,d,l)),p):p}return function(o,i){return s?h(o,i):(f=e(c=o,l=i),d=t(r,l),p=n(f,d,l),s=!0,p)}}function A(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),s=o(e,i);return(i.pure?R:D)(a,u,s,e,i)}var L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function F(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}var B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?w:t,r=e.mapStateToPropsFactories,o=void 0===r?P:r,i=e.mapDispatchToPropsFactories,a=void 0===i?M:i,u=e.mergePropsFactories,s=void 0===u?I:u,c=e.selectorFactory,l=void 0===c?A:c;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.pure,c=void 0===u||u,f=i.areStatesEqual,d=void 0===f?z:f,p=i.areOwnPropsEqual,h=void 0===p?x:p,m=i.areStatePropsEqual,g=void 0===m?x:m,y=i.areMergedPropsEqual,v=void 0===y?x:y,b=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=F(e,o,"mapStateToProps"),w=F(t,a,"mapDispatchToProps"),E=F(r,s,"mergeProps");return n(l,L({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:w,initMergeProps:E,pure:c,areStatesEqual:d,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:v},b))}}();n.d(t,"Provider",function(){return c}),n.d(t,"createProvider",function(){return s}),n.d(t,"connectAdvanced",function(){return w}),n.d(t,"connect",function(){return B})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectApi=t.selectReportState=t.selectIcicleState=t.selectDatabase=t.selectAppState=t.hasAFuture=t.hasAPast=t.redo=t.undo=t.commit=void 0;var r=n(18),o=l(n(154)),i=l(n(6)),a=l(n(37)),u=l(n(10)),s=l(n(20)),c=l(n(114));function l(e){return e&&e.__esModule?e:{default:e}}var f=(0,o.default)((0,r.combineReducers)({database:i.default,appState:a.default,icicleState:u.default,reportState:s.default,api:c.default})),d=f.reducer;t.default=d;t.commit=f.commit,t.undo=f.undo,t.redo=f.redo,t.hasAPast=f.hasAPast,t.hasAFuture=f.hasAFuture,t.selectAppState=function(e){return f.selectContent(e).appState},t.selectDatabase=function(e){return f.selectContent(e).database},t.selectIcicleState=function(e){return f.selectContent(e).icicleState},t.selectReportState=function(e){return f.selectContent(e).reportState},t.selectApi=function(e){return f.selectContent(e).api}},function(e,t,n){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=navigator.language.slice(0,2);console.log("lang : "+i);var a=(o(r={"Your data won't leave your computer. Only you can see what happens in this app.":{fr:"Vos données ne quittent pas votre ordinateur ; seul•e vous pouvez voir ce qui se passe dans cette application.",en:"Your data won't leave your computer. Only you can see what happens in this app."},"Drop a directory here!":{fr:"Glissez-déposez un répertoire ici !",en:"Drop a directory here!"},"You may also drop a JSON file previously exported from Icicle.":{fr:"Vous pouvez aussi déposer un fichier JSON précédement exporté depuis Stalactite.",en:"You may also drop a JSON file previously exported from Icicle."},"Import from CSV":{fr:"Importer depuis un CSV",en:"Import from CSV"},"Files loaded":{fr:"Fichiers chargés",en:"Files loaded"},Errors:{fr:"Erreurs",en:"Errors"},Export:{fr:"Exporter",en:"Export"},Save:{fr:"Enregistrer",en:"Save"}},"Errors",{fr:"Erreurs",en:"Errors"}),o(r,"Close",{fr:"Fermer",en:"Close"}),o(r,"files",{fr:"fichiers",en:"files"}),o(r,"folders",{fr:"répertoires",en:"folders"}),o(r,"B",{fr:"o",en:"B"}),o(r,"errors",{fr:"erreurs",en:"errors"}),o(r,"Color code:",{fr:"Code couleurs :",en:"Color code:"}),o(r,"Dates",{fr:"Dates",en:"Dates"}),o(r,"Type",{fr:"Type",en:"Type"}),o(r,"Back to root",{fr:"Retour à la racine",en:"Back to root"}),o(r,"Toggle Skin",{fr:"changer l'apparence",en:"Toggle Skin"}),o(r,"Legend",{fr:"Légende",en:"Legend"}),o(r,"Presentation",{fr:"Présentation",en:"Presentation"}),o(r,"Folder",{fr:"Répertoire",en:"Folder"}),o(r,"File",{fr:"Fichier",en:"File"}),o(r,"Root",{fr:"Racine",en:"Root"}),o(r,"Spreadsheet",{fr:"Tableur",en:"Spreadsheet"}),o(r,"E-mail",{fr:"E-mail",en:"E-mail"}),o(r,"Document",{fr:"Document",en:"Document"}),o(r,"Multimedia",{fr:"Multimédia",en:"Multimedia"}),o(r,"Others",{fr:"Autres",en:"Others"}),o(r,"Level",{fr:"Niveau",en:"Level"}),o(r,"Folder of file's name",{fr:"Nom du répertoire ou fichier",en:"Folder of file's name"}),o(r,"Real name",{fr:"Nom réel",en:"Real name"}),o(r,"Size",{fr:"Taille",en:"Size"}),o(r,"absolute",{fr:"absolue",en:"absolute"}),o(r,"percentage of the whole",{fr:"pourcentage du total",en:"percentage of the whole"}),o(r,"Last modified",{fr:"Dernière modification",en:"Last modified"}),o(r,"at",{fr:"à",en:"at"}),o(r,"Tags",{}),o(r,"Click here to add some tags!",{fr:"Cliquez ici pour ajouter des tags !",en:"Click here to add some tags!"}),o(r,"Your tags here",{fr:"Vos tags ici",en:"Your tags here"}),o(r,"New tag",{fr:"Nouveau tag",en:"New tag"}),o(r,"Comments",{fr:"Commentaires",en:"Comments"}),o(r,"Your comments here",{fr:"Vos commentaires ici",en:"Your comments here"}),o(r,"Click here to add some comments!",{fr:"Cliquez ici pour ajouter des commentaires !",en:"Click here to add some comments!"}),o(r,"max",{}),o(r,"min",{}),o(r,"average",{fr:"moyenne",en:"average"}),o(r,"median",{fr:"médiane",en:"median"}),o(r,"All tags",{fr:"Tous les tags",en:"All tags"}),o(r,"No tags at the moment.",{fr:"Aucun tag pour l'instant.",en:"No tags at the moment."}),o(r,"Compatible with Firefox and Chrome.",{fr:"Compatible avec Firefox et Chrome.",en:"Compatible with Firefox and Chrome."}),o(r,"Icicles",{fr:"Stalactites",en:"Icicles"}),o(r,"What's new?",{fr:"Quoi de neuf ?",en:"What's new?"}),r);t.tr=function(e){return e in a&&i in a[e]?a[e][i]:e}},function(e,t,n){e.exports=n(68)()},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteTagged=t.addTagged=t.setSessionName=t.updateContentElementByID=t.setContentByID=t.setParentPath=t.reInit=t.fromLegacyCsv=t.fromJson=t.workerMakeTree=t.workerPush=t.sortByMaxRemainingPathLength=t.sortByDate=t.sortBySize=t.makeTree=t.push=void 0;var r=s(n(22)),o=u(n(43)),i=u(n(143)),a=s(n(115));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function s(e){return e&&e.__esModule?e:{default:e}}var c=i.empty(),l=(0,r.default)("cheapExp/database",c,function(e){return{size_overall:function(){return i.size_overall(e)},size_files:function(){return i.size_files(e)},size:function(){return i.size(e)},maxDepth:function(){return i.depth(e)},parent_path:function(){return i.parentPath(e)},getByID:function(t){return i.getByID(t,e)},getIDPath:function(t){return i.getIDPath(t,e)},volume:function(){return i.volume(e)},rootId:function(){return i.rootId(e)},toJson:function(){return i.toJson(e)},toStrList2:function(){return i.toStrList2(e)},getSessionName:function(){return i.getSessionName(e)},getTagged:function(t){return i.getTagged(e,t)},getAllTags:function(){return i.getAllTags(e)},getLeafIdArray:function(){return i.getLeafIdArray(e)},getSubIdList:function(t){return i.getSubIdList(t,e)},getWaitingCounter:function(){return m}}}),f=l.mkA,d=l.reducer;t.default=d;t.push=f(function(e,t){return function(n){var r=e+t.name,a={size:t.size,last_modified:t.lastModified};return i.pushOnQueue(r,o.create(a),n)}}),t.makeTree=f(function(){return function(e){return e=i.makeTree(e),e=i.sortBySize(e),e=i.computeDerivatedData(e)}}),t.sortBySize=f(function(){return function(e){return e=i.sortBySize(e)}}),t.sortByDate=f(function(){return function(e){return e=i.sortByDate(e)}}),t.sortByMaxRemainingPathLength=f(function(){return function(e){return e=i.sortByMaxRemainingPathLength(e)}});var p=new a.default,h={};p.onmessage=function(e){var t=e.data,n=t.cmd;h[n](t)};var m=0;h.pushCounter=function(e){var t=e.push_counter;m=t};t.workerPush=f(function(e,t){return function(n){return p.postMessage({cmd:"push",parent_path:e,file:t}),n}});var g=f(function(e){return function(){return i.fromJs(e)}});t.workerMakeTree=function(){return function(e){return new Promise(function(t,n){p.postMessage({cmd:"pull"}),h.pull=function(n){var r=n.state;e(g(r)),t()}})}},t.fromJson=f(function(e){return function(t){return i.fromJson(e)}}),t.fromLegacyCsv=f(function(e){return function(t){return t=i.fromLegacyCsv(e),t=i.makeTree(t),t=i.sortBySize(t),t=i.computeDerivatedData(t)}}),t.reInit=f(function(){return function(e){return c}}),t.setParentPath=f(function(e){return function(t){return i.setParentPath(e,t)}}),t.setContentByID=f(function(e,t){return function(n){return n=i.updateByID(e,function(e){return e.set("content",t)},n)}}),t.updateContentElementByID=f(function(e,t,n){return function(r){return r=i.updateByID(e,function(e){return e.update("content",function(e){return e.update(t,n)})},r)}}),t.setSessionName=f(function(e){return function(t){return t=i.setSessionName(e,t)}}),t.addTagged=f(function(e,t){return function(n){return n=i.addTagged(n,e,t)}}),t.deleteTagged=f(function(e,t){return function(n){return n=i.deleteTagged(n,e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromFileName=t.placeholder=t.parentFolder=t.folder=t.different=t.duplicate=t.leastRecentDate=t.mediumDate=t.mostRecentDate=t.fromHex=t.toHex=t.fromRgba=t.toRgba=t.setAlpha=t.arbitrary=t.triGradient=t.gradient=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(31));var o=t.gradient=function(e,t){return function(n){return e.map(function(e,r){return e+(t[r]-e)*n}).map(function(e,t){return 3!==t?Math.round(e):e})}},i=(t.triGradient=function(e,t,n){return function(r){return r<.5?o(e,t)(2*r):o(t,n)(2*(r-.5))}},t.arbitrary=function(){var e=function(){return Math.round(255*Math.random())};return[e(),e(),e(),Math.random()]},t.setAlpha=function(e,t){return t.slice(0,-1).concat([e])},t.toRgba=function(e){return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},t.fromRgba=function(e){return e.split(/rgba\(|, |\)/).filter(function(e){return""!==e}).map(Number)},t.toHex=function(e){return"#"+(e=e.map(Number).map(function(e){return(e=e.toString(16)).length<2&&(e="0"+e),e}))[0]+e[1]+e[2]},t.fromHex=function(e){r.log(e,e.split(/#|([0-9a-f]{2})/).filter(function(e){return e&&""!==e}));return(e=e.split(/#|([0-9a-f]{2})/).filter(function(e){return e&&""!==e}).map(function(e){return parseInt(e,16)})).push(1),e},t.mostRecentDate=function(){return[255,216,155,1]},t.mediumDate=function(){return[255,140,0,1]},t.leastRecentDate=function(){return[20,86,130,1]},t.duplicate=function(){return[255,0,0,1]},t.different=function(){return[0,0,0,.5]},"#f75b40"),a="#f99a0b",u="#fabf0b",s="#52d11a",c="#13d6f3",l="#4c78e8",f="#b574f2",d="#8a8c93",p="#8a8c93";t.folder=function(){return u},t.parentFolder=function(){return a},t.placeholder=function(){return p},t.fromFileName=function(e){var t=e.match(/\.[^\.]*$/);switch(null==t&&(t=[""]),t[0].toLowerCase()){case".xls":case".xlsx":case".xlsm":case".xlw":case".xlt":case".xltx":case".xltm":case".csv":case".ods":case".ots":return s;case".doc":case".docx":case".docm":case".dot":case".dotx":case".dotm":case".odt":case".ott":case".txt":case".rtf":return l;case".ppt":case".pptx":case".pptm":case".pps":case".ppsx":case".pot":case".odp":case".otp":case".pdf":return i;case".eml":case".msg":case".pst":return c;case".jpeg":case".jpg":case".gif":case".png":case".bmp":case".tiff":case".mp3":case".wav":case".wma":case".avi":case".wmv":case".mp4":case".mov":case".mkv":return f;default:return d}}},function(e,t){
  /*!
   * Chai - flag utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return r[t];r[t]=n}},function(e,t,n){var r=n(94);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(72)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleChangeSkin=t.setNoTagToHighlight=t.setTagToHighlight=t.setNoDisplayRoot=t.setDisplayRoot=t.unlock=t.lock=t.setNoFocus=t.setFocus=void 0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var a=new((0,n(5).Record)({hover_seq:[],lock_seq:[],dims:{},tag_to_highlight:"",display_root:[],change_skin:!1})),u=(0,i.default)("cheapExp/icicleState",a,function(e){return{hover_sequence:function(){return e.get("hover_seq")},lock_sequence:function(){return e.get("lock_seq")},hover_dims:function(){return e.get("dims")},tag_to_highlight:function(){return e.get("tag_to_highlight")},display_root:function(){return e.get("display_root")},isFocused:function(){return e.get("hover_seq").length>0},isLocked:function(){return e.get("lock_seq").length>0},isZoomed:function(){return e.get("display_root").length>0},changeSkin:function(){return e.get("change_skin")}}}),s=u.mkA,c=u.reducer;t.default=c;t.setFocus=s(function(e,t,n){return function(r){return r=r.update("hover_seq",function(){return e}),n||(r=r.update("dims",function(){return t})),r}}),t.setNoFocus=s(function(){return function(e){return e=(e=e.update("hover_seq",function(){return[]})).update("dims",function(){return{}})}}),t.lock=s(function(e,t){return function(n){return n=(n=n.update("lock_seq",function(){return e})).update("dims",function(){return t})}}),t.unlock=s(function(){return function(e){return e=e.update("lock_seq",function(){return[]})}}),t.setDisplayRoot=s(function(e){return function(t){return t=(t=t.update("display_root",function(){return e})).update("lock_seq",function(){return[]}),l(),t}}),t.setNoDisplayRoot=s(function(){return function(e){return e=(e=e.update("display_root",function(){return[]})).update("lock_seq",function(){return[]}),l(),e}}),t.setTagToHighlight=s(function(e){return function(t){return t=t.update("tag_to_highlight",function(){return e})}}),t.setNoTagToHighlight=s(function(){return function(e){return e=e.update("tag_to_highlight",function(){return""})}});var l=function(){window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty()};t.toggleChangeSkin=s(function(){return function(e){return e=e.update("change_skin",function(e){return!e})}})},function(e,t){
  /*!
   * Chai - transferFlags utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));for(var o in t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==o&&"ssfi"!==o&&"lockSsfi"!==o&&"message"!=o)&&(t.__flags[o]=r[o])}},function(e,t){e.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","inspect","toJSON"]}},function(e,t,n){
  /*!
   * chai
   * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=[];
  /*!
   * Chai version
   */t.version="4.1.2",
  /*!
   * Assertion Error
   */
  t.AssertionError=n(64);
  /*!
   * Utils for plugins (not exported)
   */
  var o=n(141);t.use=function(e){return~r.indexOf(e)||(e(t,o),r.push(e)),t},
  /*!
   * Utility Functions
   */
  t.util=o;
  /*!
   * Configuration
   */
  var i=n(12);t.config=i;
  /*!
   * Primary `Assertion` prototype
   */
  var a=n(124);t.use(a);
  /*!
   * Core Assertions
   */
  var u=n(123);t.use(u);
  /*!
   * Expect interface
   */
  var s=n(122);t.use(s);
  /*!
   * Should interface
   */
  var c=n(121);t.use(c);
  /*!
   * Assert interface
   */
  var l=n(120);t.use(l)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomString=function(e){for(var t="",n=0;n<e;n++){var r=61*Math.random();t+=r<10?String.fromCharCode(48+r):r<36?String.fromCharCode(r-10+65):String.fromCharCode(r-36+97)}return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;(s=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkB=function(e,t,n,r,o){var u={margin:0,width:"90%",fontWeight:"bold",color:"white",backgroundColor:r||"#4d9e25"},s=Object.assign(u,o);return n?i.default.createElement("button",{type:"button",className:"clear button "+a.active_button,onClick:e,style:s},t):i.default.createElement("button",{type:"button",className:"button",onClick:e,style:s,disabled:!0},t)},t.mkRB=function(e,t,n,r,o){var u={backgroundColor:r||"#4d9e25",borderRadius:"50%"},s=Object.assign(u,o);return n?i.default.createElement("button",{type:"button",className:"button "+a.active_button,onClick:e,style:s},t):i.default.createElement("button",{type:"button",className:"button",onClick:e,style:s,disabled:!0},t)},t.mkTB=function(e,t,n,r,o){var u={color:r||"#4d9e25",backgroundColor:n?"rgba(249, 154, 11, 0)":"rgba(249, 154, 11, 0.2)",opacity:n?1:.7,transition:"all 0.2s ease-out",WebkitTransition:"all 0.2s ease-out",cursor:n?"pointer":"default"},s=Object.assign(u,o);return n?i.default.createElement("a",{className:"clear button "+a.active_button,onClick:e,style:s},t):i.default.createElement("a",{className:"clear button",style:s},t)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=(n(1),n(9))},function(e,t,n){"use strict";n.r(t);var r=n(24),o=n(23),i={INIT:"@@redux/INIT"};function a(e,t,n){var u;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,c=t,l=[],f=l,d=!1;function p(){f===l&&(f=l.slice())}function h(){return c}function m(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),f.push(e),function(){if(t){t=!1,p();var n=f.indexOf(e);f.splice(n,1)}}}function g(e){if(!Object(r.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=s(c,e)}finally{d=!1}for(var t=l=f,n=0;n<t.length;n++){(0,t[n])()}return e}return g({type:i.INIT}),(u={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");s=e,g({type:i.INIT})}})[o.a]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[o.a]=function(){return this},e},u}function u(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" 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 s(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var a=Object.keys(n);var s=void 0;try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" 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 "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.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(e){s=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,o={},i=0;i<a.length;i++){var c=a[i],l=n[c],f=e[c],d=l(f,t);if(void 0===d){var p=u(c,t);throw new Error(p)}o[c]=d,r=r||d!==f}return r?o:e}}function c(e,t){return function(){return t(e.apply(void 0,arguments))}}function l(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=c(a,t))}return r}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i,a=e(n,r,o),u=a.dispatch,s={getState:a.getState,dispatch:function(e){return u(e)}};return i=t.map(function(e){return e(s)}),u=f.apply(void 0,i)(a.dispatch),d({},a,{dispatch:u})}}}n.d(t,"createStore",function(){return a}),n.d(t,"combineReducers",function(){return s}),n.d(t,"bindActionCreators",function(){return l}),n.d(t,"applyMiddleware",function(){return p}),n.d(t,"compose",function(){return f})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),i=u(n(14)),a=u(n(51));function u(e){return e&&e.__esModule?e:{default:e}}var s=n(35)("RIEStatefulBase"),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.startEditing=function(){s("startEditing"),n.props.beforeStart&&n.props.beforeStart(),n.props.isDisabled||(n.setState({editing:!0}),n.props.afterStart&&n.props.afterStart())},n.finishEditing=function(){s("finishEditing"),n.props.beforeFinish&&n.props.beforeFinish();var e=i.default.findDOMNode(n.refs.input).value,t=n.doValidations(e);t&&n.props.value!==e&&n.commit(e),!t&&n.props.handleValidationFail?n.props.handleValidationFail(t,e,function(){return n.cancelEditing()}):n.cancelEditing(),n.props.afterFinish&&n.props.afterFinish()},n.cancelEditing=function(){s("cancelEditing"),n.setState({editing:!1,invalid:!1})},n.keyDown=function(e){s("keyDown(${event.keyCode})"),13===e.keyCode?n.finishEditing():27===e.keyCode&&n.cancelEditing()},n.textChanged=function(e){s("textChanged(${event.target.value})"),n.doValidations(e.target.value.trim())},n.componentDidUpdate=function(e,t){s("componentDidUpdate("+e+", "+t+")");var r=i.default.findDOMNode(n.refs.input);s(r),n.state.editing&&!t.editing?(s("entering edit mode"),r.focus(),n.selectInputText(r)):n.state.editing&&e.text!=n.props.text&&(s("not editing && text not equal previous props -- finishing editing"),n.finishEditing())},n.renderEditingComponent=function(){return s("renderEditingComponent()"),o.default.createElement("input",r({disabled:n.state.loading,className:n.makeClassString(),defaultValue:n.props.value,onInput:n.textChanged,onBlur:n.elementBlur,ref:"input",onKeyDown:n.keyDown},n.props.editProps))},n.renderNormalComponent=function(){return s("renderNormalComponent"),o.default.createElement("span",r({tabIndex:"0",className:n.makeClassString(),onFocus:n.startEditing,onClick:n.startEditing},n.props.defaultProps),n.state.newValue||n.props.value)},n.elementBlur=function(e){s("elementBlur("+e+")"),n.finishEditing()},n.elementClick=function(e){s("elementClick("+e+")"),n.startEditing(),e.target.element.focus()},n.render=function(){return s("render()"),n.state.editing?n.renderEditingComponent():n.renderNormalComponent()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCandidateComments=t.stopEditingComments=t.startEditingComments=t.stopEditingTags=t.startEditingTags=void 0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var a=new((0,n(5).Record)({editing_tags:!1,editing_comments:!1,candidate_comments:""})),u=(0,i.default)("cheapExp/icicleState",a,function(e){return{editing_tags:function(){return e.get("editing_tags")},editing_comments:function(){return e.get("editing_comments")},candidate_comments:function(){return e.get("candidate_comments")}}}),s=u.mkA,c=u.reducer;t.default=c;t.startEditingTags=s(function(){return function(e){return e=e.update("editing_tags",function(e){return!0})}}),t.stopEditingTags=s(function(){return function(e){return e=e.update("editing_tags",function(e){return!1})}}),t.startEditingComments=s(function(){return function(e){return e=e.update("editing_comments",function(e){return!0})}}),t.stopEditingComments=s(function(){return function(e){return e=(e=e.update("editing_comments",function(e){return!1})).set("candidate_comments","")}}),t.setCandidateComments=s(function(e){return function(t){return t=t.set("candidate_comments",e)}})},function(e,t,n){var r={};e.exports=r,r.themes={};var o=r.styles=n(153),i=Object.defineProperties;r.supportsColor=n(152).supportsColor,void 0===r.enabled&&(r.enabled=!1!==r.supportsColor()),r.stripColors=r.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};r.stylize=function(e,t){return r.enabled?o[t].open+e+o[t].close:e+""};var a=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return function(){var e=arguments,t=e.length,n=0!==t&&String(arguments[0]);if(t>1)for(var i=1;i<t;i++)n+=" "+e[i];if(!r.enabled||!n)return n;var a=this._styles,u=a.length;for(;u--;){var s=o[a[u]];n=s.open+n.replace(s.closeRe,s.open)+s.close}return n}.apply(e,arguments)};return t._styles=e,t.__proto__=l,t}var s,c=(s={},o.grey=o.gray,Object.keys(o).forEach(function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(a,"\\$&")}(o[e].close),"g"),s[e]={get:function(){return u(this._styles.concat(e))}}}),s),l=i(function(){},c);r.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){r[t]=function(n){if("object"==typeof e[t]){var o=n;for(var i in e[t])o=r[e[t][i]](o);return o}return r[e[t]](n)}}(t);else console.log("colors.setTheme now only accepts an object, not a string.  If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file.  The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var f=function(e,t){var n=t.split("");return(n=n.map(e)).join("")};for(var d in r.trap=n(149),r.zalgo=n(148),r.maps={},r.maps.america=n(147),r.maps.zebra=n(146),r.maps.rainbow=n(145),r.maps.random=n(144),r.maps)!function(e){r[e]=function(t){return f(r.maps[e],t)}}(d);i(r,function(){var e={};return Object.keys(c).forEach(function(t){e[t]={get:function(){return u([t])}}}),e}())},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){e=e+"_"+(0,r.generateRandomString)(40);var o=Symbol(),i=function(e){return e[o]},a=function(e){var t=n(e);return t[o]=e,t};return t=a(t),{mkA:function(t){return function(){return{type:e,f:t.apply(void 0,arguments)}}},reducer:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=arguments[1];return r.type===e?a(r.f(i(n))):n},key:o}};var r=n(15)},function(e,t,n){"use strict";(function(e,r){var o,i=n(33);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(25),n(66)(e))},function(e,t,n){"use strict";var r=n(69),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=i?i.toStringTag:void 0;var l=function(e){var t=u.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[c]=n:delete e[c]),o},f=Object.prototype.toString;var d=function(e){return f.call(e)},p="[object Null]",h="[object Undefined]",m=i?i.toStringTag:void 0;var g=function(e){return null==e?void 0===e?h:p:m&&m in Object(e)?l(e):d(e)};var y=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var v=function(e){return null!=e&&"object"==typeof e},b="[object Object]",_=Function.prototype,w=Object.prototype,E=_.toString,O=w.hasOwnProperty,x=E.call(Object);t.a=function(e){if(!v(e)||g(e)!=b)return!1;var t=y(e);if(null===t)return!0;var n=O.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&E.call(n)==x}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.default.createElement("div",{style:a},e.children)};var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};var a={textAlign:"center"}},function(e,t,n){var r=n(12),o=n(8),i=n(61),a=n(29),u=["__flags","__methods","_obj","assert"];function s(e,t,n){if(!n){n=[];for(var r=0;r<=e.length;r++)n[r]=[]}return n[e.length]&&n[e.length][t.length]||(0===e.length||0===t.length?n[e.length][t.length]=Math.max(e.length,t.length):n[e.length][t.length]=Math.min(s(e.slice(0,-1),t,n)+1,s(e,t.slice(0,-1),n)+1,s(e.slice(0,-1),t.slice(0,-1),n)+(e.slice(-1)===t.slice(-1)?0:1))),n[e.length][t.length]}e.exports=function(e,t){return a()?new Proxy(e,{get:function e(n,a){if("string"==typeof a&&-1===r.proxyExcludedKeys.indexOf(a)&&!Reflect.has(n,a)){if(t)throw Error("Invalid Chai property: "+t+"."+a+'. See docs for proper usage of "'+t+'".');var c=i(n).filter(function(e){return!Object.prototype.hasOwnProperty(e)&&-1===u.indexOf(e)}).sort(function(e,t){return s(a,e)-s(a,t)});throw c.length&&s(c[0],a)<4?Error("Invalid Chai property: "+a+'. Did you mean "'+c[0]+'"?'):Error("Invalid Chai property: "+a)}return-1!==u.indexOf(a)||o(n,"lockSsfi")||o(n,"ssfi",e),Reflect.get(n,a)}}):e}},function(e,t,n){n(12);var r=Object.getOwnPropertyDescriptor(function(){},"length");
  /*!
   * Chai - addLengthGuard utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t,n){return r.configurable?(Object.defineProperty(e,"length",{get:function(){if(n)throw Error("Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.');throw Error("Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e):e}},function(e,t,n){var r=n(12);
  /*!
   * Chai - isProxyEnabled helper
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */e.exports=function(){return r.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}},function(e,t,n){var r=n(62),o=n(61),i=n(136),a=n(12);e.exports=function(e,t,n,r){return s({showHidden:t,seen:[],stylize:function(e){return e}},e,void 0===n?2:n)};var u=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&"nodeType"in e&&1===e.nodeType&&"string"==typeof e.nodeName};function s(e,n,m){if(n&&"function"==typeof n.inspect&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var g=n.inspect(m,e);return"string"!=typeof g&&(g=s(e,g,m)),g}var y=function(e,t){switch(typeof t){case"undefined":return e.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string");case"number":return 0===t&&1/t==-1/0?e.stylize("-0","number"):e.stylize(""+t,"number");case"boolean":return e.stylize(""+t,"boolean");case"symbol":return e.stylize(t.toString(),"symbol")}if(null===t)return e.stylize("null","null")}(e,n);if(y)return y;if(u(n)){if("outerHTML"in n)return n.outerHTML;try{if(document.xmlVersion)return(new XMLSerializer).serializeToString(n);var v=document.createElementNS("http://www.w3.org/1999/xhtml","_");v.appendChild(n.cloneNode(!1));var b=v.innerHTML.replace("><",">"+n.innerHTML+"<");return v.innerHTML="",b}catch(e){}}var _,w,E=i(n),O=e.showHidden?o(n):E;if(0===O.length||p(n)&&(1===O.length&&"stack"===O[0]||2===O.length&&"description"===O[0]&&"stack"===O[1])){if("function"==typeof n)return w=(_=r(n))?": "+_:"",e.stylize("[Function"+w+"]","special");if(f(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(d(n))return e.stylize(Date.prototype.toUTCString.call(n),"date");if(p(n))return c(n)}var x,S,k="",j=!1,C=!1,M=["{","}"];if("object"==typeof(x=n)&&/\w+Array]$/.test(h(x))&&(C=!0,M=["[","]"]),function(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===h(e)}(n)&&(j=!0,M=["[","]"]),"function"==typeof n&&(k=" [Function"+(w=(_=r(n))?": "+_:"")+"]"),f(n)&&(k=" "+RegExp.prototype.toString.call(n)),d(n)&&(k=" "+Date.prototype.toUTCString.call(n)),p(n))return c(n);if(0===O.length&&(!j||0==n.length))return M[0]+k+M[1];if(m<0)return f(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");if(e.seen.push(n),j)S=function(e,t,n,r,o){for(var i=[],a=0,u=t.length;a<u;++a)Object.prototype.hasOwnProperty.call(t,String(a))?i.push(l(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(l(e,t,n,r,o,!0))}),i}(e,n,m,E,O);else{if(C)return function(e){for(var t="[ ",n=0;n<e.length;++n){if(t.length>=a.truncateThreshold-7){t+="...";break}t+=e[n]+", "}-1!==(t+=" ]").indexOf(",  ]")&&(t=t.replace(",  ]"," ]"));return t}(n);S=O.map(function(t){return l(e,n,m,E,t,j)})}return e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(S,k,M)}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,n,r,o,i){var a,u,c=Object.getOwnPropertyDescriptor(t,o);if(c&&(c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special"))),r.indexOf(o)<0&&(a="["+o+"]"),u||(e.seen.indexOf(t[o])<0?(u=s(e,t[o],null===n?null:n-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return"   "+e}).join("\n")):u=e.stylize("[Circular]","special")),void 0===a){if(i&&o.match(/^\d+$/))return u;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function f(e){return"object"==typeof e&&"[object RegExp]"===h(e)}function d(e){return"object"==typeof e&&"[object Date]"===h(e)}function p(e){return"object"==typeof e&&"[object Error]"===h(e)}function h(e){return Object.prototype.toString.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.immuEqual=t.equal=t.iter=t.simpleLog=t.log=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=s(n(142)),i=s(n(119)),a=n(5),u=s(n(42));function s(e){return e&&e.__esModule?e:{default:e}}o.default.use(i.default);var c=o.default.expect,l=[],f=(t.log=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(new Error).stack.split("\n")[2],o=r.match(/at ([^ ]+) \(([^:]+):([^:]+):([^:]+)\)/);null===o&&(o=[(o=(o=r.match(/at ([^:]+):([^:]+):([^:]+)/)).slice())[0]].concat(["anonymous"]).concat(o.slice(1)));var i=u.default.red(o[1]),a=u.default.blue(o[2]),s=u.default.green(o[3]),c=u.default.yellow(o[4]);l.push(["\n"+i+":"+a+":"+s+":"+c+"\n"].concat(t,["\n"]))},t.simpleLog=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.push([].concat(t))},t.iter=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;try{for(var n=t-1;n>=0;n--)l=[],e()}catch(e){throw l.forEach(function(e){var t;return(t=console).log.apply(t,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))}),e}});t.equal=function(e,t){it(e,function(){f(function(){var e=t(),n=r(e,2),o=n[0],i=n[1];c(o).to.deep.equal(i)})}).timeout(1e4)},t.immuEqual=function(e,t){it(e,function(){f(function(){var e=t(),n=r(e,2),o=n[0],i=n[1];c(o.toJS()).to.deep.equal(i.toJS()),c((0,a.is)(o,i)).to.equal(!0)})}).timeout(1e4)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nullable=t.immutableSet=t.immutableMap=t.immutableList=t.array=t.index=t.string=t.bool=t.natural=void 0;var r,o=n(5),i=n(15),a=n(42);(r=a)&&r.__esModule;var u=function(e){return Math.round(Math.random()*e)},s=(t.natural=function(){return Math.random()<=.1?0:u(4e3)},t.bool=function(){return Math.random()>=.5},t.string=function(){return Math.random()<=.1?"":(0,i.generateRandomString)(u(40))},t.index=function(){return Math.random()<=.1?0:u(10)}),c=t.array=function(e){for(var t=[],n=s()-1;n>=0;n--)t.push(e());return t};t.immutableList=function(e){return(0,o.List)(c(e))},t.immutableMap=function(e,t){for(var n=(0,o.Map)(),r=s()-1;r>=0;r--)n=n.set(e(),t());return n},t.immutableSet=function(e){return(0,o.Set)(c(e))},t.nullable=function(e){return Math.random()<=.25?null:e()}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,u=a&&a(Object);return function s(c,l,f){if("string"!=typeof l){if(u){var d=a(l);d&&d!==u&&s(c,d,f)}var p=r(l);o&&(p=p.concat(o(l)));for(var h=0;h<p.length;++h){var m=p[h];if(!(e[m]||t[m]||f&&f[m])){var g=i(l,m);try{n(c,m,g)}catch(e){}}}return c}return c}}()},function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(101)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(i=++o)}),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(41))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSizeString=t.octet2HumanReadableFormat=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(1),u=n(2),s=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(n(7)),n(3));var c=t.octet2HumanReadableFormat=function(e){var t=(0,s.tr)("B"),n=e/Math.pow(1e3,4);if(n>1)return Math.round(10*n)/10+" T"+t;var r=e/Math.pow(1e3,3);if(r>1)return Math.round(10*r)/10+" G"+t;var o=e/Math.pow(1e3,2);if(o>1)return Math.round(10*o)/10+" M"+t;var i=e/1e3;return i>1?Math.round(10*i)/10+" k"+t:e+" "+t},l=t.makeSizeString=function(e,t){var n,r,o,i=c(e),a=(n=100*e/t,r=1,o=Math.pow(10,r),Math.round(n*o)/o),u=a+"%";return a<.1&&(u="< 0.1%"),u+" | "+i},f=function(e,t,n,r){return e<t*r?"LEFT":e>n-t*r?"RIGHT":"ORGANIC"},d=function(e,t,n,r){return{ORGANIC:e+t/2,LEFT:5,RIGHT:n-5}[r]},p=(0,a.connect)(function(e){var t=(0,u.selectIcicleState)(e),n=(0,u.selectDatabase)(e),r=t.isLocked()?t.lock_sequence()[t.lock_sequence().length-1]:t.hover_sequence()[t.hover_sequence().length-1],o=n.volume(),i=(0,n.getByID)(r),a=void 0;return i&&(a=i.get("content").get("size")),{dims:t.hover_dims(),isFocused:t.isFocused(),node_size:a,node_id:r,total_size:o}},function(e){return{}})(function(e){var t=e.y,n=e.dx,r=e.dy,o=void 0;if(e.isFocused){var a=l(e.node_size,e.total_size),u=f(e.dims.x+e.dims.dx/2,a.length,n,4.2);o=i.default.createElement("g",null,i.default.createElement("rect",{className:"ruler",x:e.dims.x,y:t+1*r/3,width:e.dims.dx,height:"0.3em",onClick:function(e){e.stopPropagation()},onMouseOver:function(){},style:{fill:e.fillColor(e.node_id)}}),i.default.createElement("text",{x:d(e.dims.x,e.dims.dx,n,u),y:t+2*r/3,textAnchor:{ORGANIC:"middle",LEFT:"start",RIGHT:"end"}[u]},a))}else o=i.default.createElement("g",null);return i.default.createElement("g",null,o)});t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reInit=t.finishedToLoadFiles=t.startToLoadFiles=void 0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r};var a=new((0,n(5).Record)({start:!1,finish:!1})),u=(0,i.default)("cheapExp/appState",a,function(e){return{isStarted:function(){return e.get("start")},isFinished:function(){return e.get("finish")}}}),s=u.mkA,c=u.reducer;t.default=c;t.startToLoadFiles=s(function(){return function(e){return console.time("loaded"),e=(e=e.update("start",function(){return!0})).update("finish",function(){return!1})}}),t.finishedToLoadFiles=s(function(){return function(e){return console.timeEnd("loaded"),e=(e=e.update("start",function(){return!0})).update("finish",function(){return!0})}}),t.reInit=s(function(){return function(e){return a}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nullable=t.immutableMap=t.immutableList=t.array=t.index=t.string=t.bool=t.natural=void 0;var r,o=n(5),i=n(39),a=n(42);(r=a)&&r.__esModule;var u=function(e){return Math.round(Math.random()*e)},s=(t.natural=function(){return Math.random()<=.1?0:u(4e3)},t.bool=function(){return Math.random()>=.5},t.string=function(){return Math.random()<=.1?"":(0,i.generateRandomString)(u(40))},t.index=function(){return Math.random()<=.1?0:u(10)}),c=t.array=function(e){for(var t=[],n=s()-1;n>=0;n--)t.push(e());return t};t.immutableList=function(e){return(0,o.List)(c(e))},t.immutableMap=function(e,t){for(var n=(0,o.Map)(),r=s()-1;r>=0;r--)n=n.set(e(),t());return n},t.nullable=function(e){return Math.random()<=.25?null:e()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomString=function(e){for(var t="",n=0;n<e;n++){var r=61*Math.random();t+=r<10?String.fromCharCode(48+r):r<36?String.fromCharCode(r-10+65):String.fromCharCode(r-36+97)}return t}},function(e,t,n){(function(t){var n;n=function(){"use strict";var e="function"==typeof Promise,n="object"==typeof self?self:t,r="undefined"!=typeof Symbol,o="undefined"!=typeof Map,i="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,u="undefined"!=typeof WeakSet,s="undefined"!=typeof DataView,c=r&&void 0!==Symbol.iterator,l=r&&void 0!==Symbol.toStringTag,f=i&&"function"==typeof Set.prototype.entries,d=o&&"function"==typeof Map.prototype.entries,p=f&&Object.getPrototypeOf((new Set).entries()),h=d&&Object.getPrototypeOf((new Map).entries()),m=c&&"function"==typeof Array.prototype[Symbol.iterator],g=m&&Object.getPrototypeOf([][Symbol.iterator]()),y=c&&"function"==typeof String.prototype[Symbol.iterator],v=y&&Object.getPrototypeOf(""[Symbol.iterator]()),b=8,_=-1;return function(t){var r=typeof t;if("object"!==r)return r;if(null===t)return"null";if(t===n)return"global";if(Array.isArray(t)&&(!1===l||!(Symbol.toStringTag in t)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&t===window.location)return"Location";if("object"==typeof window.document&&t===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&t===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&t===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&t instanceof window.HTMLElement){if("BLOCKQUOTE"===t.tagName)return"HTMLQuoteElement";if("TD"===t.tagName)return"HTMLTableDataCellElement";if("TH"===t.tagName)return"HTMLTableHeaderCellElement"}}var c=l&&t[Symbol.toStringTag];if("string"==typeof c)return c;var f=Object.getPrototypeOf(t);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":e&&f===Promise.prototype?"Promise":i&&f===Set.prototype?"Set":o&&f===Map.prototype?"Map":u&&f===WeakSet.prototype?"WeakSet":a&&f===WeakMap.prototype?"WeakMap":s&&f===DataView.prototype?"DataView":o&&f===h?"Map Iterator":i&&f===p?"Set Iterator":m&&f===g?"Array Iterator":y&&f===v?"String Iterator":null===f?"Object":Object.prototype.toString.call(t).slice(b,_)}},e.exports=n()}).call(this,n(25))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){var r=n(21);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromV5=t.toCommon=t.v5ToCommon=t.fromJson=t.toJson=t.fromJs=t.toJs=t.setTags=t.getTags=t.setComments=t.getComments=t.setAlias=t.getAlias=t.setLastModified=t.getLastModified=t.setSize=t.getSize=t.toStrList=t.toStrListHeader=t.computeDerivatedData=t.update=t.compareDate=t.compareSize=t.create=t.arbitrary=t.tagsFromJs=t.tagsToJs=t.arbitraryTags=t.lastModifiedUpdateAverage=t.lastModifiedFromJs=t.lastModifiedToJs=t.arbitraryLastModified=void 0;var r=n(5),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(32));var i=(0,r.Record)({max:0,list:(0,r.List)(),min:Number.MAX_SAFE_INTEGER,median:null,average:null}),a=t.arbitraryLastModified=function(){var e=o.immutableList(o.natural);return new i({max:e.max(),list:e,min:e.min()})},u=t.lastModifiedToJs=function(e){return e=(e=e.update("list",function(e){return e.toJS()})).toJS()},s=t.lastModifiedFromJs=function(e){return e=(e=new i(e)).update("list",r.List)},c=(t.lastModifiedUpdateAverage=function(e,t){return t=t.update("average",e)},function(e){var t,n=e.get("list");return e=(e=e.set("median",function(e){if(e.size%2==1)return e.get(Math.floor(e.size/2));var t=e.size/2;return(e.get(t-1)+e.get(t))/2}(n))).set("average",(t=n).reduce(function(e,t){return e+t},0)/t.size)}),l=(0,r.Record)({size:0,nb_files:1,last_modified:new i,alias:"",comments:"",tags:(0,r.Set)()}),f=t.arbitraryTags=function(){return(0,r.Set)(o.array(o.string))},d=t.tagsToJs=function(e){return e.toArray()},p=t.tagsFromJs=function(e){return(0,r.Set)(e)},h=(t.arbitrary=function(){return new l({size:o.natural(),nb_files:o.natural(),last_modified:a(),alias:o.string(),comments:o.string(),tags:f()})},t.create=function(e){var t;return e&&(e.last_modified=(t=e.last_modified,new i({max:t,list:r.List.of(t),min:t,median:t,average:t}))),new l(e)}),m=(t.compareSize=function(e,t){var n=function(e){return e.get("size")};return(e=n(e))===(t=n(t))?0:e>t?-1:1},t.compareDate=function(e,t){var n=function(e){return e.get("last_modified").get("average")};return(e=n(e))===(t=n(t))?0:e>t?1:-1},t.update=function(e,t){var n=e.get("size");t=t.update("size",function(e){return e+n});e.get("last_modified").get("max");return t=(t=t.update("last_modified",function(t){return function(e,t){var n=e.get("max");return t=(t=(t=t.update("max",function(e){return Math.max(e,n)})).update("min",function(e){return Math.min(e,n)})).update("list",function(e){return e.push(n)})}(e.get("last_modified"),t)})).update("nb_files",function(e){return e+1})},t.computeDerivatedData=function(e){return e=e.update("last_modified",c)},t.toStrListHeader=function(){return r.List.of("size (octet)","last_modified","comments","tags")},t.toStrList=function(e){return r.List.of(e.get("size"),new Date(e.get("last_modified").get("max")),e.get("comments"),d(e.get("tags")).toString())},t.getSize=function(e){return e.get("size")},t.setSize=function(e,t){return t.set("size",e)},t.getLastModified=function(e){return e.get("last_modified")},t.setLastModified=function(e,t){return t.set("last_modified",e)},t.getAlias=function(e){return e.get("alias")},t.setAlias=function(e,t){return t.set("alias",e)},t.getComments=function(e){return e.get("comments")},t.setComments=function(e,t){return t.set("comments",e)},t.getTags=function(e){return e.get("tags")},t.setTags=function(e,t){return t.set("tags",e)},t.toJs=function(e){return e=(e=(e=e.update("tags",d)).update("last_modified",u)).toJS()}),g=t.fromJs=function(e){return e=(e=(e=new l(e)).update("last_modified",s)).update("tags",p)};t.toJson=function(e){return JSON.stringify(m(e))},t.fromJson=function(e){return g(JSON.parse(e))},t.v5ToCommon=function(e){return(0,r.Map)({size:e.get("size"),last_modified:e.get("last_modified"),alias:e.get("alias"),comments:e.get("comments"),tags:e.get("tags")})},t.toCommon=function(e){return(0,r.Map)({size:e.get("size"),last_modified:e.get("last_modified").get("max"),alias:e.get("alias"),comments:e.get("comments"),tags:e.get("tags")})},t.fromV5=function(e){return h({size:e.get("size"),nb_files:1,last_modified:e.get("last_modified"),alias:e.get("alias"),comments:e.get("comments"),tags:e.get("tags")})}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getCookie=function(){return document.cookie.split("; ").map(function(e){return e.split("=")}).reduce(function(e,t){return e[t[0]]=t[1],e},{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeNameWithExt=void 0,t.save=function(e,t){var n=new Blob([t],{type:"text/plain;charset=utf-8"});i.default.saveAs(n,e)};var r,o=n(81),i=(r=o)&&r.__esModule?r:{default:r};t.makeNameWithExt=function(e,t){return e+"_"+(new Date).getTime()+"."+t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),o=n(1),i=(n(2),n(6),n(10),n(9),u(n(87))),a=u(n(86));(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e})(n(7)),n(3);function u(e){return e&&e.__esModule?e:{default:e}}var s={background:"white",borderRadius:"5em",minHeight:"2.5em",maxHeight:"2.5em",padding:"0.2em 1em",margin:"0.5em 0"},c=(0,o.connect)(function(e){return{}},function(e){return{}})(function(e){return r.default.createElement("div",{style:s,className:"grid-x align-middle"},r.default.createElement("div",{className:"cell small-4"},r.default.createElement(i.default,null)),r.default.createElement("div",{className:"cell small-8"},r.default.createElement("div",{className:"flex-container"},r.default.createElement("div",{className:"flex-child-grow"}),r.default.createElement("div",{className:"flex-child-auto"},r.default.createElement(a.default,null)),r.default.createElement("div",{className:"flex-child-grow"}))))});t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(0)),o=n(1),i=n(2),a=(n(6),n(10)),u=n(9),s=d(n(50)),c=d(n(26)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),f=n(3);function d(e){return e&&e.__esModule?e:{default:e}}var p=(0,o.connect)(function(e){var t=(0,i.selectDatabase)(e),n=(0,i.selectIcicleState)(e).tag_to_highlight();return{tags:t.getAllTags().sortBy(function(e){return-1*e.size}),tag_to_highlight:n}},function(e){return{highlightTag:function(t){e((0,a.setTagToHighlight)(t))},stopHighlightingTag:function(){e((0,a.setNoTagToHighlight)())}}})(function(e){var t={opacity:e.tags.size>0?1:.5,background:"white",height:"100%",borderRadius:"1em",padding:"0.5em 0.5em"},n=void 0;if(0===e.tags.size)n=r.default.createElement("div",{className:"grid-y grid-frame align-center",style:{height:"75%"}},r.default.createElement("div",{className:"cell"},r.default.createElement(c.default,null,r.default.createElement("i",{className:"fi-pricetag-multiple",style:{color:l.placeholder(),fontSize:"4em",lineHeight:0}}))),r.default.createElement("div",{className:"cell"},r.default.createElement(c.default,null,r.default.createElement("em",null,(0,f.tr)("No tags at the moment.")))));else{var o=e.tags.reduce(function(t,n,o){var i,a,c=e.tag_to_highlight.length>0?o===e.tag_to_highlight?1:.2:1,l=r.default.createElement("div",{key:o,onMouseEnter:function(t){return e.highlightTag(o)},onMouseLeave:function(t){return e.stopHighlightingTag()},style:{opacity:c,width:"20em"}},r.default.createElement("div",{className:u.tags_count},n.size),r.default.createElement(s.default,{text:(i=o,a=25,i.length>a+3?i.substring(0,a)+"...":i),editing:!1,remove_handler:function(){}}));return null===t?[l]:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t),[l])},null);n=r.default.createElement("div",{style:{fontSize:"0.8em",overflowY:"auto",overflowX:"hidden",maxHeight:"10.5em"}},o)}return r.default.createElement("div",{style:t},r.default.createElement(c.default,null,r.default.createElement("b",null,(0,f.tr)("All tags"))),n)});t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(1);n(6),n(2),n(3);var u={display:"inline-block",color:"white",backgroundColor:"rgb(10, 50, 100)",borderRadius:"0.8em",padding:"0 1em"},s={display:"inline-block",color:"white",backgroundColor:"rgb(15, 80, 150)",padding:"0 0.4em",borderRadius:"1em",marginRight:"0.3em",marginLeft:"-0.5em"},c={fontWeight:"bold",display:"inline-block",marginRight:"0.3em",marginBottom:"0.2em"},l=(0,a.connect)(function(e){return{}},function(e){return{}})(function(e){var t=i.default.createElement("div",{onMouseUp:function(t){t.stopPropagation(),e.remove_handler()},style:s},"X");return i.default.createElement("div",{style:c},i.default.createElement("div",{style:u},e.text),e.editing?t:i.default.createElement("span",null))});t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=a(n(0)),i=a(n(4));function a(e){return e&&e.__esModule?e:{default:e}}var u=n(35)("RIEBase"),s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(n.doValidations=function(e){u("doValidations("+e+")");var t=void 0;if(n.props.validate)t=n.props.validate(e);else{if(!n.validate)return!0;t=n.validate(e)}return n.setState({invalid:!t}),t},n.selectInputText=function(e){u("selectInputText("+e.value+")"),e.setSelectionRange&&e.setSelectionRange(0,e.value.length)},n.elementClick=function(e){throw"RIEBase must be subclassed first: use a concrete class like RIEInput, RIEToggle et.c"},n.componentWillReceiveProps=function(e){u("componentWillReceiveProps("+e+")"),!("value"in e)||e.shouldRemainWhileInvalid&&n.state.invalid||n.setState({loading:!1,editing:!1,invalid:!1,newValue:null})},n.commit=function(e){if(u("commit("+e+")"),!n.state.invalid){var t={};t[n.props.propName]=e,n.setState({loading:!0,newValue:e}),n.props.change(t)}},n.makeClassString=function(){u("makeClassString()");var e=[];return n.props.className&&e.push(n.props.className),n.state.editing&&n.props.classEditing&&e.push(n.props.classEditing),n.state.loading&&n.props.classLoading&&e.push(n.props.classLoading),n.state.disabled&&n.props.classDisabled&&e.push(n.props.classDisabled),n.state.invalid&&n.props.classInvalid&&e.push(n.props.classInvalid),e.join(" ")},n.render=function(){return debuf("render()"),o.default.createElement("span",r({},n.props.defaultProps,{tabindex:"0",className:n.makeClassString(),onClick:n.elementClick}),n.props.value)},!n.props.propName)throw"RTFM: missing 'propName' prop";if(!n.props.change)throw"RTFM: missing 'change' prop";if(void 0===n.props.value)throw"RTFM: missing 'value' prop";return n.state={editing:!1,loading:!1,disabled:!1,invalid:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),t}();s.propTypes={value:i.default.any.isRequired,change:i.default.func.isRequired,propName:i.default.string.isRequired,editProps:i.default.object,defaultProps:i.default.object,isDisabled:i.default.bool,validate:i.default.func,handleValidationFail:i.default.func,shouldBlockWhileLoading:i.default.bool,shouldRemainWhileInvalid:i.default.bool,classLoading:i.default.string,classEditing:i.default.string,classDisabled:i.default.string,classInvalid:i.default.string,className:i.default.string,beforeStart:i.default.func,afterStart:i.default.func,beforeFinish:i.default.func,afterFinish:i.default.func},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RIESelect=t.RIETags=t.RIENumber=t.RIETextArea=t.RIEInput=t.RIEToggle=void 0;var r=c(n(102)),o=c(n(19)),i=c(n(99)),a=c(n(98)),u=c(n(97)),s=c(n(96));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();t.RIEToggle=r.default,t.RIEInput=l,t.RIETextArea=i.default,t.RIENumber=a.default,t.RIETags=u.default,t.RIESelect=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=n(1),i=n(52),a=g(n(95)),u=g(n(91)),s=n(2),c=n(6),l=n(36),f=n(9),d=g(n(89)),p=(m(n(43)),m(n(7))),h=n(3);function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y={borderRadius:"1em",padding:"0.6em 1em 0 1em",fontSize:"0.8em",height:"8em"},v={fontSize:"0.8em"},b={padding:"0.2em 0.8em"},_=function(e){var t=e.placeholder,n=e.is_folder,o=e.fillColor,i=e.node_id,a=void 0,u=void 0;return t?(a="fi-page-multiple",u=p.placeholder()):(u=o(i),a=n?"fi-folder":"fi-page"),r.default.createElement("div",{style:{marginTop:"-1em",marginBottom:"-1em"}},r.default.createElement("i",{className:a,style:{fontSize:"3em",color:u}}))},w=function(e){var t=e.placeholder,n=(e.onChangeAlias,e.node_id,e.display_name),o=e.bracket_name,a=e.n_name;return t?r.default.createElement("div",{style:{fontWeight:"bold"}},(0,h.tr)("Folder of file's name")):r.default.createElement("span",{className:f.edit_hover_container,style:b},r.default.createElement(i.RIEInput,{value:n.length>0?n:o,change:e.onChangeAlias("new_display_name",e.node_id,a),className:f.editable_text+" "+f.element_name+" "+f.bold,propName:"new_display_name"})," ",r.default.createElement("i",{className:"fi-pencil "+f.edit_hover_pencil,style:{opacity:"0.3"}}))},E=function(e){var t=e.placeholder,n=e.bracket_name;return t?r.default.createElement("div",{style:{fontStyle:"italic"}},"(",(0,h.tr)("Real name"),")"):r.default.createElement("div",{style:{fontStyle:"italic",visibility:""===n?"hidden":""}},"(",n,")")},O=function(e){var t=e.placeholder,n=e.c_size,o=e.node_id,i=void 0,a=void 0;return t?(i="...",a=r.default.createElement(d.default,{placeholder:!0})):(i=n,a=r.default.createElement(d.default,{id:o,placeholder:!1})),r.default.createElement("div",{style:v},r.default.createElement("b",null,(0,h.tr)("Size")," :")," ",i,r.default.createElement("br",null),a)},x=(0,o.connect)(function(e){var t=(0,s.selectIcicleState)(e),n=(0,s.selectDatabase)(e),r=t.isLocked()?t.lock_sequence():t.hover_sequence(),o=n.getByID,i=r[r.length-1],a=t.isFocused()?o(i):{},u=n.volume();return{isFocused:t.isFocused(),isLocked:t.isLocked(),node:a,node_id:i,total_size:u}},function(e){return{onChangeAlias:function(t,n,r){return function(o){var i=o[t]===r?"":o[t];i=i.replace(/^\s*|\s*$/g,""),e((0,c.updateContentElementByID)(n,"alias",function(){return i})),e((0,s.commit)())}}}})(function(e){var t,n=void 0,o=void 0,i=void 0,s=void 0,c=void 0,f=void 0;if(e.isFocused){var d=e.node,p=d.get("children"),h=d.get("name"),m=d.get("content"),g=(0,l.octet2HumanReadableFormat)(m.get("size")),v=m.get("alias"),b=m.get("tags"),x=m.get("comments"),S=""===v?h:v,k=""===v?"":h,j=p.size>0;n=r.default.createElement(_,{is_folder:j,fillColor:e.fillColor,node_id:e.node_id}),o=r.default.createElement(w,{onChangeAlias:e.onChangeAlias,node_id:e.node_id,display_name:S,bracket_name:k,n_name:h}),i=r.default.createElement(E,{bracket_name:k}),s=r.default.createElement(O,{c_size:g,node_id:e.node_id}),c=r.default.createElement(a.default,{isDummy:!1,cells_style:y,tags:b,node_id:e.node_id}),f=r.default.createElement(u.default,{isDummy:!1,cells_style:y,comments:x,node_id:e.node_id})}else n=r.default.createElement(_,{placeholder:!0}),o=r.default.createElement(w,{placeholder:!0}),i=r.default.createElement(E,{placeholder:!0}),s=r.default.createElement(O,{placeholder:!0}),c=r.default.createElement(a.default,{isDummy:!0,cells_style:y}),f=r.default.createElement(u.default,{isDummy:!0,cells_style:y});return t=r.default.createElement("div",{className:"grid-x align-middle",style:{height:"3.2em"}},r.default.createElement("div",{className:"cell shrink",style:{paddingRight:"1em"}},n),r.default.createElement("div",{className:"cell auto"},r.default.createElement("div",{className:"grid-x"},r.default.createElement("div",{className:"cell small-12"},o),r.default.createElement("div",{className:"cell small-12"},i)))),r.default.createElement("div",{style:{opacity:e.isFocused?1:.5,background:"white",borderRadius:"1em"}},r.default.createElement("div",{className:"grid-x",style:{padding:"1em"}},r.default.createElement("div",{className:"cell small-8",style:{paddingRight:"1em"}},r.default.createElement("div",{className:"grid-x"},r.default.createElement("div",{className:"cell small-12",style:{paddingBottom:"1em"}},t),r.default.createElement("div",{className:"cell small-6",style:{paddingRight:"1em"}},c),r.default.createElement("div",{className:"cell small-6"},f))),r.default.createElement("div",{className:"cell small-4"},s)))});t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(0)),i=n(1),a=n(2),u=n(10),s=d(n(107)),c=d(n(36)),l=d(n(106)),f=n(103);(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e})(n(7)),n(3);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(e){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return m(t,o.default.PureComponent),r(t,[{key:"makeKey",value:function(e){return"icicle-display-root-"+e}},{key:"removeRootId",value:function(e){return e.slice(1)}},{key:"render",value:function(){var e=this,t=0,n=this.props.dx,r=this.props.dy,i=this.props.trueFHeight,a=this.props.root_id,u=[],c=this.removeRootId(this.props.display_root);return c.length&&(a=c.slice(-1)[0],u=c.map(function(a){var u=t,c=n,l=i(a);return t+=l,r-=l,o.default.createElement("g",{key:e.makeKey(a)},o.default.createElement(s.default,{node_id:a,x:0,y:u,dx:c,dy:l,fillColor:e.props.fillColor,nodeSequence:e.props.nodeSequence}))})),o.default.createElement("g",null,u,o.default.createElement(y,{x:0,y:t,width:n,height:r,id:a,fWidth:this.props.fWidth,normalizeWidth:this.props.normalizeWidth,trueFHeight:i,getChildrenIdFromId:this.props.getChildrenIdFromId,fillColor:this.props.fillColor,nodeSequence:this.props.nodeSequence}))}}]),t}(),y=function(e){function t(e){return p(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return m(t,o.default.PureComponent),r(t,[{key:"makeKey",value:function(e){return"icicle-recursive-"+e}},{key:"computeCumulative",value:function(e){for(var t=[0],n=0;n<e.length-1;n++)t.push(e[n]+t[n]);return t}},{key:"render",value:function(){var e=this,n=this.props.getChildrenIdFromId(this.props.id),r=this.props.normalizeWidth(n.map(this.props.fWidth)).map(function(t){return t*e.props.width}),i=this.computeCumulative(r),a=n.map(this.props.trueFHeight),u=n.map(function(n,u){var c=e.props.x+i[u],l=r[u];if(l<1)return o.default.createElement("g",{key:e.makeKey(n)});var f=e.props.y,d=a[u],p=c,h=l,m=f+d,g=e.props.height-d;return o.default.createElement("g",{key:e.makeKey(n)},o.default.createElement(s.default,{node_id:n,x:c,y:f,dx:l,dy:d,fillColor:e.props.fillColor,nodeSequence:e.props.nodeSequence}),o.default.createElement(t,{x:p,y:m,width:h,height:g,id:n,fWidth:e.props.fWidth,normalizeWidth:e.props.normalizeWidth,trueFHeight:e.props.trueFHeight,getChildrenIdFromId:e.props.getChildrenIdFromId,fillColor:e.props.fillColor,nodeSequence:e.props.nodeSequence}))});return o.default.createElement("g",null,u)}}]),t}(),v=function(e){function t(e){p(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={view_box_width:1e3,view_box_height:300},n.ref=n.ref.bind(n),n.getChildrenIdFromId=n.getChildrenIdFromId.bind(n),n.nodeSequence=n.nodeSequence.bind(n),n.fWidth=n.fWidth.bind(n),n.normalizeWidth=n.normalizeWidth.bind(n),n.trueFHeight=n.trueFHeight.bind(n),n.icicleWidth=n.icicleWidth.bind(n),n.icicleHeight=n.icicleHeight.bind(n),n.breadcrumbsWidth=n.breadcrumbsWidth.bind(n),n.rulerHeight=n.rulerHeight.bind(n),n.onClickHandler=n.onClickHandler.bind(n),n.onMouseLeaveHandler=n.onMouseLeaveHandler.bind(n),n}return m(t,o.default.PureComponent),r(t,[{key:"icicleWidth",value:function(){return 8*this.state.view_box_width/12}},{key:"icicleHeight",value:function(){return 8*this.state.view_box_height/12}},{key:"breadcrumbsWidth",value:function(){return this.state.view_box_width-this.icicleWidth()}},{key:"rulerHeight",value:function(){return this.state.view_box_height-this.icicleHeight()}},{key:"ref",value:function(e){var t=this,n=void 0;if(e){n=(0,f.animate)(function(){return!0},function(){try{var n=e.width.baseVal.value,r=e.height.baseVal.value;t.setState({view_box_width:n,view_box_height:r})}catch(e){}},function(){})}else(0,f.clear)(n)}},{key:"getChildrenIdFromId",value:function(e){return this.props.getByID(e).get("children").toJS()}},{key:"nodeSequence",value:function(e){return this.props.getIDPath(e).toJS()}},{key:"fWidth",value:function(e){return this.props.getByID(e).get("content").get("size")}},{key:"normalizeWidth",value:function(e){var t=e.reduce(function(e,t){return e+t},0);return e.map(function(e){return e/t})}},{key:"trueFHeight",value:function(e){return this.icicleHeight()/this.props.max_depth}},{key:"onClickHandler",value:function(e){this.props.unlock(),this.props.setNoFocus()}},{key:"onMouseLeaveHandler",value:function(e){this.props.isLocked||this.props.setNoFocus()}},{key:"render",value:function(){var e=this.state.view_box_width,t=this.state.view_box_height,n=this.icicleWidth(),r=this.icicleHeight(),i=this.breadcrumbsWidth(),a=this.rulerHeight();console.time("render icicle");var u=o.default.createElement("g",{style:{backgroundColor:"red"}},o.default.createElement(g,{dx:n,dy:r,root_id:this.props.root_id,display_root:this.props.display_root,fWidth:this.fWidth,normalizeWidth:this.normalizeWidth,trueFHeight:this.trueFHeight,getChildrenIdFromId:this.getChildrenIdFromId,fillColor:this.props.fillColor,nodeSequence:this.nodeSequence}),o.default.createElement(c.default,{y:r,dx:n,dy:a,fillColor:this.props.fillColor}),o.default.createElement(l.default,{x:n,dx:i,trueFHeight:this.trueFHeight,fillColor:this.props.fillColor}));return console.timeEnd("render icicle"),o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+e+" "+t,width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet",ref:this.ref,onClick:this.onClickHandler,onMouseLeave:this.onMouseLeaveHandler},o.default.createElement("rect",{x:0,y:0,width:e,height:t,style:{fill:"antiquewhite",opacity:"0"}}),u)}}]),t}(),b=(0,i.connect)(function(e){var t=(0,a.selectDatabase)(e),n=(0,a.selectIcicleState)(e),r=n.lock_sequence().length>0;return{getByID:t.getByID,root_id:t.rootId(),display_root:n.display_root(),getIDPath:t.getIDPath,max_depth:t.maxDepth(),isLocked:r}},function(e){return{setNoFocus:function(){return e(u.setNoFocus.apply(void 0,arguments))},unlock:function(){return e(u.unlock.apply(void 0,arguments))},setNoDisplayRoot:function(){return e(u.setNoDisplayRoot.apply(void 0,arguments))}}})(v);t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.fromUtf8=function(e){return window.btoa(unescape(encodeURIComponent(e)))},t.toUtf8=function(e){return decodeURIComponent(escape(window.atob(e)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.request=function(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open(e.method||"GET",e.url),e.headers&&Object.keys(e.headers).forEach(function(t){r.setRequestHeader(t,e.headers[t])}),r.onload=function(){r.status>=200&&r.status<300?t(r.response):n(r.statusText)},r.onerror=function(){return n(r.statusText)},r.send(e.body)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.make=function(e){var t=[Symbol()],n=void 0;return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return!1===o.reduce(function(e,n,r){return e&&n===t[r]},!0)&&(t=o,n=e.apply(void 0,o)),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromV5=t.toCommon=t.v5ToCommon=t.getSubIdList=t.getLeafIdArray=t.depth=t.fromJsTree=t.toJsTree=t.fromJs=t.toJs=t.fromJson=t.toJson=t.mapContent=t.toList=t.toStrList2=t.getIdPath=t.remakePath=t.isSorted=t.sortByMaxRemainingPathLength=t.sort=t.update=t.arbitrary=t.updateEntryById=t.getEntryById=t.size=t.init=t.getRootId=t.getMaxRemainingPathLength=t.isRoot=t.isLeaf=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=(s(n(31)),s(n(32))),i=s(n(65)),a=n(15),u=n(5);function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c=(0,u.Record)({name:"",content:null,children:(0,u.List)(),parent:null,depth:0,sum_children_path_length:0,max_children_path_length:0,parent_path_length:0}),l=t.isLeaf=function(e){return 0===e.get("children").size},f=(t.isRoot=function(e){return null===e.get("parent")},t.getMaxRemainingPathLength=function(e){return e.get("max_children_path_length")+e.get("name").length}),d=(0,u.Record)({table:(0,u.Map)(),root_id:""}),p=function(){return new d},h=function(e){return e.get("table")},m=function(e,t){return t.set("table",e)},g=function(e,t){return t.update("table",e)},y=function(e){var t,n=h(e).keys();return(t=n,Array.isArray(t)?t:Array.from(t)).slice(0)},v=t.getRootId=function(e){return e.get("root_id")},b=function(e,t){return t.set("root_id",e)},_=function(){return(0,a.generateRandomString)(40)},w=t.init=function(e){var t,n,r,o=_(),i=(0,u.Map)((t={},n=o,r=new c({content:e}),n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)),a=p();return a=m(i,a),a=b(o,a)},E=(t.size=function(e){return h(e).size},t.getEntryById=function(e,t){return h(t).get(e)}),O=function(e,t,n){return g(function(n){return n.set(e,t)},n)},x=t.updateEntryById=function(e,t,n){return g(function(n){return n.update(e,function(e){return t(e)})},n)},S=function e(t,n,r){var o=[];return E(n,r).get("children").forEach(function(n){o.push(e(t,n,r))}),t(o,E(n,r))},k=(t.arbitrary=function(e,t){return function(){for(var n=w(t()),r=P(e),i=0;i<50*Math.random();i++)n=r(o.array(function(){return"p"+Math.round(1*Math.random())}),t(),n);return n}},function(e){return e.join("").length}),j=function(e,t,n){return function(r){r=C(e,t,r);var o=k(n);return r=(r=r.update("sum_children_path_length",function(e){return e+o})).update("max_children_path_length",function(e){return Math.max(e,o)})}},C=function(e,t,n){return n=n.update("content",function(n){return e(t,n)})},M=function e(t,n,r,o,i){if(0===n.length)return i;var a=n[0];n=n.slice(1);var u=function(e,t,n){var r=E(t,n).get("children").filter(function(t){return E(t,n).get("name")===e});return r.size?r.get(0):null}(a,o,i);if(u)i=x(u,j(t,r,n),i);else{u=_();var s=k(n),l=E(o,i),f=new c({name:a,content:r,parent:o,depth:l.get("depth")+1,parent_path_length:l.get("parent_path_length")+l.get("name").length,max_children_path_length:s,sum_children_path_length:s});i=O(u,f,i),i=x(o,function(e){return function(e,t){return t=t.update("children",function(t){return t.push(e)})}(u,e)},i)}return e(t,n,r,u,i)},P=t.update=function(e){return function(t,n,r){var o=v(r);return r=x(o,j(e,n,t),r),r=M(e,t,n,o,r)}},N=function e(t,n,o,i){return i=x(t,function(e){return function(e,t,n,o){var i=function(e,t){var o=r(e,2),i=(o[0],o[1]),a=r(t,2),u=(a[0],a[1]);return n(i,u)};return o=o.update("children",function(n){return n.map(function(n){return[n,t(n,e)]}).sort(i).map(function(e){var t=r(e,2),n=t[0];return t[1],n})})}(i,n,o,e)},i),E(t,i).get("children").forEach(function(t){return i=e(t,n,o,i)}),i},T=(t.sort=function(e){return function(t){var n=v(t);return t=N(n,function(e,t){return E(e,t).get("content")},e,t)}},t.sortByMaxRemainingPathLength=function(e){var t=v(e);return e=N(t,function(e,t){return E(e,t)},function(e,t){var n=f(e),r=f(t);return n<r?1:n>r?-1:0},e)},t.isSorted=function(e){return function(t){return function e(t,n,r){for(var o=function(e){return E(e,r).get("content")},i=E(t,r).get("children"),a=!0,u=1;u<i.size;u++)a=a&&1!==n(o(i.get(u-1)),o(i.get(u)));return i.map(function(t){return e(t,n,r)}).reduce(function(e,t){return e&&t},a)}(v(t),e,t)}},t.remakePath=function e(t,n){var r=E(t,n),o=r.get("name"),i=r.get("parent");return i?e(i,n).push(o):u.List.of(o)}),I=(t.getIdPath=function e(t,n){var r=E(t,n).get("parent");return r?e(r,n).push(t):u.List.of(t)},t.toStrList2=function(e,t){return function(n){var r=h(n),o=u.List.of("","path").concat(e());return r.map(function(e,r){return u.List.of("",T(r,n).slice(1).join("/")).concat(t(e.get("content")))}).reduce(function(e,t){return e.push(t)},u.List.of(o))}},t.toList=function(e){return S(function(e,t){return e.reduce(function(e,t){return e.concat(t)},(0,u.List)()).push(t).map(function(e){return e.set("children",(0,u.List)())}).map(function(e){return e.set("parent",null)})},v(e),e)},t.mapContent=function(e,t){return function e(t,n,r){return E(n,r).get("children").forEach(function(n){r=e(t,n,r)}),r=x(n,function(e){return t(e)},r)}(function(t){return t.update("content",e)},v(t),t)}),D=(t.toJson=function(e){return function(t){return t=I(e,t),JSON.stringify(t.toJS())}},t.fromJson=function(e){return function(t){var n=new d(JSON.parse(t));return n=g(function(t){return(0,u.Map)(t).map(function(t){return new c(t).update("content",e).update("children",u.List)})},n)}},t.toJs=function(e){return function(t){return(t=I(e,t)).toJS()}},t.fromJs=function(e){return function(t){var n=new d(t);return n=g(function(t){return(0,u.Map)(t).map(function(t){return new c(t).update("content",e).update("children",u.List)})},n)}},t.toJsTree=function(e){return S(function(e,t){return t.set("children",e).set("parent",null).toJS()},v(e),e)},function e(t){var n=t.children.map(e).reduce(function(e,t){return[e[0].concat(t[0]),(n=e[1],r=t[1],o=p(),o=m(h(n).merge(h(r)),o))];var n,r,o},[[],p()]),o=r(n,2),i=o[0],a=o[1],s=_();return a=O(s,new c(t).set("children",(0,u.List)(i)),a),i.forEach(function(e){a=x(e,function(e){return e.set("parent",s)},a)}),a=b(s,a),[[s],a]}),R=(t.fromJsTree=function(e){var t=D(e),n=r(t,2);n[0];return n[1]},t.depth=i.make(function(e){return S(function(e,t){return e.reduce(function(e,t){return Math.max(e,t)},t.get("depth"))},v(e),e)}),t.getLeafIdArray=function(e){return e=function(e,t){return t=m(h(t).filter(e),t)}(l,e),y(e)},t.getSubIdList=function e(t,n){return E(t,n).get("children").map(function(t){return e(t,n)}).flatten().push(t)},function(e){return(0,u.Map)({name:e.get("name"),content:e.get("content"),children:e.get("children"),parent:e.get("parent"),depth:e.get("depth")})});t.v5ToCommon=function(e){return function(t){var n=t.get("table").map(function(t){return t=t.update("content",e),R(t)}),r=t.get("root_id");return(0,u.Map)({table:n,root_id:r})}},t.toCommon=function(e){return function(t){var n=(t=I(e,t)).get("table").map(R),r=t.get("root_id");return(0,u.Map)({table:n,root_id:r})}},t.fromV5=function(e){return function(t){var n=t.get("table").map(function(t){return t=t.update("content",e),new c(t)}),r=t.get("root_id");return new d({table:n,root_id:r})}}},function(e,t){
  /*!
   * Chai - getOwnEnumerablePropertySymbols utility
   * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}},function(e,t,n){
  /*!
   * Chai - flag utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  /*!
   * Module dependancies
   */
  var r=n(30),o=n(12);e.exports=function(e){var t=r(e),n=Object.prototype.toString.call(e);if(o.truncateThreshold&&t.length>=o.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var i=Object.keys(e);return"{ Object ("+(i.length>2?i.splice(0,2).join(", ")+", ...":i.join(", "))+") }"}return t}return t}},function(e,t){
  /*!
   * Chai - getProperties utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e){var t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}for(var r=Object.getPrototypeOf(e);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(e){if("function"!=typeof e)return null;var t="";if(void 0===Function.prototype.name&&void 0===e.name){var n=r.call(e).match(o);n&&(t=n[1])}else t=e.name;return t}},function(e,t){
  /*!
   * Chai - getActual utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t){return t.length>4?t[4]:e._obj}},function(e,t){
  /*!
   * assertion-error
   * Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
   * MIT Licensed
   */
  /*!
   * Return a function that will copy properties from
   * one object to another excluding any originally
   * listed. Returned function will create a new `{}`.
   *
   * @param {String} excluded properties ...
   * @return {Function}
   */
  function n(){var e=[].slice.call(arguments);function t(t,n){Object.keys(n).forEach(function(r){~e.indexOf(r)||(t[r]=n[r])})}return function(){for(var e=[].slice.call(arguments),n=0,r={};n<e.length;n++)t(r,e[n]);return r}}function r(e,t,o){var i=n("name","message","stack","constructor","toJSON")(t||{});for(var a in this.message=e||"Unspecified AssertionError",this.showDiff=!1,i)this[a]=i[a];if(o=o||r,Error.captureStackTrace)Error.captureStackTrace(this,o);else try{throw new Error}catch(e){this.stack=e.stack}}
  /*!
   * Inherit from Error.prototype
   */
  /*!
   * Primary Exports
   */
  e.exports=r,r.prototype=Object.create(Error.prototype),
  /*!
   * Statically set name
   */
  r.prototype.name="AssertionError",
  /*!
   * Ensure correct constructor
   */
  r.prototype.constructor=r,r.prototype.toJSON=function(e){var t=n("constructor","toJSON","stack")({name:this.name},this);return!1!==e&&this.stack&&(t.stack=this.stack),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.make=function(e){var t=[Symbol()],n=void 0;return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return!1===o.reduce(function(e,n,r){return e&&n===t[r]},!0)&&(t=o,n=e.apply(void 0,o)),n}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(44),o=n(45),i=n(67);e.exports=function(){function e(e,t,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(25))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signIn=t.signUp=t.readNbFiles=t.logNbFiles=t.readError=t.logError=void 0;var r=n(56),o=n(46),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(55));var a=!(0,o.getCookie)().impicklerick,u=(t.logError=function(e,t){return a?(0,r.request)({method:"POST",url:"http://localhost:3000/none/log/browserError",headers:{"content-type":"application/json"},body:JSON.stringify({stack:e,componentStack:t})}):new Promise(function(e){return e()})},t.readError=function(e){return(0,r.request)({method:"GET",url:"http://localhost:3000/none/log/browserError?nb="+e,headers:{"content-type":"application/json"}})},t.logNbFiles=function(e){return a?(0,r.request)({method:"POST",url:"http://localhost:3000/none/log/nbFiles",headers:{"content-type":"application/json"},body:JSON.stringify({nb:e})}):new Promise(function(e){return e()})},t.readNbFiles=function(e){return(0,r.request)({method:"GET",url:"http://localhost:3000/none/log/nbFiles?nb="+e,headers:{"content-type":"application/json"}})},{token:null,retry:0,account_name:"",password:""}),s=(t.signUp=function(e,t){return(0,r.request)({method:"POST",url:"http://localhost:3000/basic/account",headers:{Authorization:"Basic "+i.fromUtf8(e+":"+t)}}).then(function(){return s(e,t)})},t.signIn=function(e,t){return u.account_name=e,u.password=t,c()}),c=function(){return(0,r.request)({method:"GET",url:"http://localhost:3000/basic/account",headers:{Authorization:"Basic "+i.fromUtf8(u.account_name+":"+u.password)}}).then(function(e){e=JSON.parse(e),u.token=e.token,u.retry=1})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(r=i)&&r.__esModule?r:{default:r},u=n(1),s=n(17),c=n(2);var l={fontSize:"1.6em"},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.onKeyDownHandler=function(e){!0===e.ctrlKey&&("z"===e.key?n.props.undo():"Z"===e.key&&n.props.redo())},document.body.addEventListener("keydown",n.onKeyDownHandler,!1),n.componentWillUnmount=n.componentWillUnmount.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,[{key:"componentWillUnmount",value:function(){document.body.removeEventListener("keydown",this.onKeyDownHandler,!1)}},{key:"render",value:function(){return this.props.visible?a.default.createElement("div",{className:"grid-x grid-padding-x"},a.default.createElement("div",{className:"cell small-6"},(0,s.mkRB)(this.props.undo,a.default.createElement("i",{className:"fi-arrow-left",style:l}),this.props.hasAPast,"",{marginBottom:"0"})),a.default.createElement("div",{className:"cell small-6"},(0,s.mkRB)(this.props.redo,a.default.createElement("i",{className:"fi-arrow-right",style:l}),this.props.hasAFuture,"",{marginBottom:"0"}))):a.default.createElement("div",null)}}]),t}(),d=(0,u.connect)(function(e){return{hasAPast:(0,c.hasAPast)(e),hasAFuture:(0,c.hasAFuture)(e)}},function(e){return{undo:function(){return e((0,c.undo)())},redo:function(){return e((0,c.redo)())}}})(f);t.default=d},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),u=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),s=null,c=0,l=[],f=n(93);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(v(r.parts[a],t))}else{var u=[];for(a=0;a<r.parts.length;a++)u.push(v(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:u}}}}function p(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],u={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}function h(e,t){var n=u(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=l[l.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=u(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=l.indexOf(e);t>=0&&l.splice(t,1)}function g(e){var t=document.createElement("style");return e.attrs.type="text/css",y(t,e.attrs),h(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=s||(s=g(t)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",y(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(u=i[a.id]).refs--,r.push(u)}e&&d(p(e,t),t);for(o=0;o<r.length;o++){var u;if(0===(u=r[o]).refs){for(var s=0;s<u.parts.length;s++)u.parts[s]();delete i[u.id]}}}};var b,_=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function w(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.line2List=t.fromStr=t.toStr=t.list2Line=t.arbitrary=void 0;var r=n(5),o=i(n(32));i(n(31));function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.arbitrary=function(){return o.immutableList(function(){return o.immutableList(o.string)})};var a=function(e){return'"'+e+'"'},u=t.list2Line=function(e){return e.map(a).join(",")+"\n"},s=(t.toStr=function(e){return e.map(u).join("")},t.fromStr=function(e){return""===e?(0,r.List)():(e=e.split("\n").slice(0,-1).map(function(e){return e+"\n"}),(0,r.List)(e).map(s))},t.line2List=function(e){var t=new RegExp('^"|","|"\n$');return(0,r.List)(e.split(t).slice(1,-1))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=((r=o)&&r.__esModule,n(1)),a=n(17),u=n(2),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(76)),c=n(47),l=n(3);var f=(0,i.connect)(function(e){var t=(0,u.selectDatabase)(e);return{getStrList2:t.toStrList2,getSessionName:t.getSessionName}},function(e){return{}})(function(e){var t=(0,c.makeNameWithExt)(e.getSessionName(),".csv");return(0,a.mkB)(function(){console.log("to csv"),(0,c.save)(t,s.toStr(e.getStrList2()))},(0,l.tr)("Export"),!0)});t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=((r=o)&&r.__esModule,n(1)),a=n(17),u=n(6),s=n(37),c=n(10),l=n(2),f=n(3);var d=(0,i.connect)(function(e){return{}},function(e){return{reInitStateApp:function(){e((0,u.reInit)()),e((0,s.reInit)()),e((0,c.setNoFocus)()),e((0,c.setNoDisplayRoot)()),e((0,l.commit)())}}})(function(e){return(0,a.mkB)(e.reInitStateApp,(0,f.tr)("Close"),!0,"#e04d1c")});t.default=d},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){var r,o=o||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=function(){return e.URL||e.webkitURL||e},n=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,o=/constructor/i.test(e.HTMLElement)||e.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent),a=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u=function(e){setTimeout(function(){"string"==typeof e?t().revokeObjectURL(e):e.remove()},4e4)},s=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},c=function(c,l,f){f||(c=s(c));var d,p=this,h="application/octet-stream"===c.type,m=function(){!function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var o=e["on"+t[r]];if("function"==typeof o)try{o.call(e,n||e)}catch(e){a(e)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,r)return d=t().createObjectURL(c),void setTimeout(function(){var e,t;n.href=d,n.download=l,e=n,t=new MouseEvent("click"),e.dispatchEvent(t),m(),u(d),p.readyState=p.DONE});!function(){if((i||h&&o)&&e.FileReader){var n=new FileReader;return n.onloadend=function(){var t=i?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,p.readyState=p.DONE,m()},n.readAsDataURL(c),void(p.readyState=p.INIT)}d||(d=t().createObjectURL(c)),h?e.location.href=d:e.open(d,"_blank")||(e.location.href=d);p.readyState=p.DONE,m(),u(d)}()},l=c.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=s(e)),navigator.msSaveOrOpenBlob(e,t)}:(l.abort=function(){},l.readyState=l.INIT=0,l.WRITING=1,l.DONE=2,l.error=l.onwritestart=l.onprogress=l.onwrite=l.onabort=l.onerror=l.onwriteend=null,function(e,t,n){return new c(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
  /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */void 0!==e&&e.exports?e.exports.saveAs=o:null!==n(80)&&null!==n(79)&&(void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=((r=o)&&r.__esModule,n(1)),a=n(17),u=n(2),s=n(47),c=n(3);var l=(0,i.connect)(function(e){var t=(0,u.selectDatabase)(e);return{getJson:t.toJson,getSessionName:t.getSessionName}},function(e){return{}})(function(e){var t=(0,s.makeNameWithExt)(e.getSessionName(),".json");return(0,a.mkB)(function(){(0,s.save)(t,e.getJson())},(0,c.tr)("Save"),!0)});t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(0)),o=n(1),i=n(2),a=n(6),u=n(36),s=n(52),c=m(n(82)),l=m(n(78)),f=m(n(77)),d=m(n(26)),p=m(n(71)),h=n(9);n(3);function m(e){return e&&e.__esModule?e:{default:e}}var g=(0,o.connect)(function(e){var t=(0,i.selectAppState)(e),n=(0,i.selectDatabase)(e),r=t.isFinished(),o=0,a=0,u=0;return r&&(o=n.size_files(),a=n.size_overall()-n.size_files(),u=n.volume()),{started:t.isStarted(),finished:r,nb_files:o,nb_folders:a,volume:u,session_name:n.getSessionName()}},function(e){return{onChangeSessionName:function(t){return function(n){n[t].length>0&&(e((0,a.setSessionName)(n[t])),e((0,i.commit)()))}}}})(function(e){var t=void 0,n=void 0,o=void 0,i=void 0,a=void 0;return!0===e.started&&!0===e.finished?(t=r.default.createElement("div",{className:"cell small-3",style:{lineHeight:"1em"}},r.default.createElement("span",{className:h.edit_hover_container,style:{margin:"0.2em -0.8em",padding:"0.2em 0.8em"}},r.default.createElement(s.RIEInput,{value:e.session_name,change:e.onChangeSessionName("new_session_name"),propName:"new_session_name",className:h.session_name+" "+h.editable_text,validate:function(e){return e.replace(/\s/g,"").length>0}})," ",r.default.createElement("i",{className:"fi-pencil "+h.edit_hover_pencil,style:{opacity:"0.3"}})),r.default.createElement("br",null),r.default.createElement("b",null,e.nb_folders," ",r.default.createElement("i",{className:"fi-folder"}),"  ",e.nb_files," ",r.default.createElement("i",{className:"fi-page"}),"  ",(0,u.octet2HumanReadableFormat)(e.volume))),o=r.default.createElement("div",{className:"cell small-2"},r.default.createElement(d.default,null,r.default.createElement(f.default,null))),i=r.default.createElement("div",{className:"cell small-2"},r.default.createElement(d.default,null,r.default.createElement(c.default,null))),a=r.default.createElement("div",{className:"cell small-2"},r.default.createElement(d.default,null,r.default.createElement(l.default,null)))):(t=r.default.createElement("div",{className:"cell small-3"}),o=r.default.createElement("div",{className:"cell small-2"}),i=r.default.createElement("div",{className:"cell small-2"}),a=r.default.createElement("div",{className:"cell small-2"})),n=e.started===e.finished?r.default.createElement("div",{className:"cell small-2"},r.default.createElement(p.default,{visible:!0})):r.default.createElement("div",{className:"cell small-2"}),r.default.createElement("div",{className:"grid-x grid-padding-y align-middle"},n,r.default.createElement("div",{className:"cell auto"}),t,r.default.createElement("div",{className:"cell auto"}),i,o,a)});t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(r=i)&&r.__esModule?r:{default:r},u=n(1),s=n(2),c=n(3);var l={textAlign:"center"},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.thres=30,n.last_ms=0,n.shouldComponentUpdate=n.shouldComponentUpdate.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,[{key:"shouldComponentUpdate",value:function(e,t){if(this.props.nb_files===e.nb_files)return!1;var n=(new Date).getTime();return!(n-this.last_ms<this.thres)&&(this.last_ms=n,!0)}},{key:"render",value:function(){return a.default.createElement("div",{className:"grid-y grid-frame align-center"},a.default.createElement("div",{className:"cell"},a.default.createElement("div",{style:l},a.default.createElement("img",{src:"imgs/loading.gif",style:{width:"50%",opacity:"0.3"}}),a.default.createElement("p",null,(0,c.tr)("Files loaded"),": ",this.props.nb_files))))}}]),t}(),d=(0,u.connect)(function(e){return{nb_files:(0,s.selectDatabase)(e).getWaitingCounter()}},function(e){return{}})(f);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=p(n(0)),i=n(1),a=n(2),u=n(6),s=(n(3),function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7))),c=p(n(54)),l=p(n(53)),f=p(n(49)),d=p(n(48));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.fillColor=n.fillColor.bind(n),n.props.dispatch((0,u.sortByDate)()),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.PureComponent),r(t,[{key:"fillColor",value:function(e){var t=this,n=this.props.getByID(this.props.root_id).get("content").get("last_modified"),r=n.get("max"),o=n.get("min");return s.toRgba(s.gradient(s.leastRecentDate(),s.mostRecentDate())(function(e){return(t.props.getByID(e).get("content").get("last_modified").get("average")-o)/(r-o)}(e)))}},{key:"render",value:function(){return o.default.createElement("div",{className:"grid-y grid-frame"},o.default.createElement("div",{className:"cell"},o.default.createElement("div",{className:"grid-x"},o.default.createElement("div",{className:"cell small-10",style:{paddingRight:".9375em"}},o.default.createElement(l.default,{fillColor:this.fillColor})),o.default.createElement("div",{className:"cell small-2"},o.default.createElement(f.default,null)))),o.default.createElement("div",{className:"cell"},o.default.createElement("div",{className:"grid-x align-center"},o.default.createElement("div",{className:"cell shrink"},o.default.createElement(d.default,null)))),o.default.createElement("div",{className:"cell auto"},o.default.createElement(c.default,{fillColor:this.fillColor})))}}]),t}(),m=(0,i.connect)(function(e){var t=(0,a.selectDatabase)(e),n=(0,a.selectIcicleState)(e);return{getByID:t.getByID,display_root:n.display_root(),root_id:t.rootId()}},function(e){return{dispatch:e}})(h);t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(0)),o=n(1),i=n(17),a=f(n(26)),u=n(10),s=n(2),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),l=n(3);function f(e){return e&&e.__esModule?e:{default:e}}var d=(0,o.connect)(function(e){return{change_skin:(0,s.selectIcicleState)(e).changeSkin()}},function(e){return{toggleChangeSkin:function(){return e((0,u.toggleChangeSkin)())}}})(function(e){var t={margin:0,padding:"0.3em 10%",fontSize:"1em",fontWeight:"bold",borderRadius:"0.4em"};return r.default.createElement("div",{className:"grid-x align-middle",style:{minWidth:"25em"}},r.default.createElement("div",{className:"cell small-4"},r.default.createElement(a.default,null,(0,l.tr)("Color code:"))),r.default.createElement("div",{className:"cell small-3"},r.default.createElement(a.default,null,(0,i.mkTB)(e.toggleChangeSkin,(0,l.tr)("Type"),e.change_skin,c.parentFolder(),t))),r.default.createElement("div",{className:"cell small-3"},r.default.createElement(a.default,null,(0,i.mkTB)(e.toggleChangeSkin,(0,l.tr)("Dates"),!e.change_skin,c.parentFolder(),t))))});t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(1),u=n(17),s=n(10),c=n(2),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),f=n(3);var d=(0,a.connect)(function(e){return{isZoomed:(0,c.selectIcicleState)(e).isZoomed()}},function(e){return{backToRoot:function(){e((0,s.setNoDisplayRoot)()),e((0,s.setNoFocus)()),e((0,c.commit)())}}})(function(e){e.isZoomed;return(0,u.mkB)(e.backToRoot,i.default.createElement("span",null,i.default.createElement("i",{className:"fi-zoom-out"})," ",(0,f.tr)("Back to root")),e.isZoomed,l.parentFolder(),{transition:"all 0.2s ease-out",WebkitTransition:"all 0.2s ease-out",padding:"0.3em 0.45em",margin:"0",borderRadius:"2em"})});t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(r=i)&&r.__esModule?r:{default:r},u=n(1),s=n(2),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7));var l=c.toRgba(c.leastRecentDate()),f=(c.toRgba(c.mediumDate()),c.toRgba(c.mostRecentDate())),d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={svg_width:100,svg_height:5},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.PureComponent),o(t,[{key:"render",value:function(){var e=this,t=this.state.svg_width,n=this.state.svg_height,r=.0075*t,o=this.props.getByID(this.props.root_id).get("content").get("last_modified"),i=o.get("max"),u=o.get("min"),s=function(t,n){return(e.props.getByID(n).get("content").get("last_modified").get(t)-u)/(i-u)},c=[];return this.props.id&&(c=(c=["min","median","max"]).map(function(o){return a.default.createElement("g",{key:o},a.default.createElement("rect",{x:s(o,e.props.id)*t-r/2,y:0,width:r,height:n,fill:"black"}))})).push(a.default.createElement("g",{key:"average"},a.default.createElement("circle",{cx:s("average",this.props.id)*t,cy:n/2,r:r,fill:"red"}))),a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+t+" "+n,width:"100%",height:"100%",preserveAspectRatio:"none",ref:this.ref},a.default.createElement("g",null,a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"time-gradient-grad1",x1:"0%",y1:"0%",x2:"100%",y2:"0%"},a.default.createElement("stop",{offset:"0%",style:{stopColor:l}}),a.default.createElement("stop",{offset:"100%",style:{stopColor:f}}))),a.default.createElement("rect",{x:0,y:0,width:t,height:n,fill:"url(#time-gradient-grad1)"}),c))}}]),t}(),p=(0,u.connect)(function(e){var t=(0,s.selectIcicleState)(e),n=(0,s.selectDatabase)(e),r=(t.isLocked()?t.lock_sequence():t.hover_sequence()).slice(-1)[0];return{getByID:n.getByID,root_id:n.rootId(),id:r}},function(e){return{}})(d);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),o=n(1),i=n(2),a=n(3),u=s(n(88));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){return r.default.createElement("div",{style:{height:"0.5em",width:"0.5em",backgroundColor:"red",borderRadius:"50%",margin:"auto"}})},l=function(e){return r.default.createElement("div",{style:{height:"1em",width:"0.2em",backgroundColor:"black",margin:"auto"}})},f=function(e){var t=new Date(e),n=t.getMonth()+1,r=t.getDate();return[(r>9?"":"0")+r,(n>9?"":"0")+n,t.getFullYear()].join("/")},d=(0,o.connect)(function(e){return{getByID:(0,i.selectDatabase)(e).getByID}},function(e){return{}})(function(e){var t="...",n="...",o="...",i="...";if(!1===e.placeholder){var s=e.getByID(e.id).get("content").get("last_modified");t=f(s.get("max")),n=f(s.get("median")),o=f(s.get("average")),i=f(s.get("min"))}return r.default.createElement("div",{className:"grid-x align-middle"},r.default.createElement("div",{className:"cell small-12"},r.default.createElement("b",null,(0,a.tr)("Last modified")," :")),r.default.createElement("div",{className:"cell small-1"},r.default.createElement(l,null)),r.default.createElement("div",{className:"cell small-5"},(0,a.tr)("min")," :"),r.default.createElement("div",{className:"cell small-6"},i),r.default.createElement("div",{className:"cell small-1"},r.default.createElement(c,null)),r.default.createElement("div",{className:"cell small-5"},(0,a.tr)("average")," :"),r.default.createElement("div",{className:"cell small-6"},o),r.default.createElement("div",{className:"cell small-1"},r.default.createElement(l,null)),r.default.createElement("div",{className:"cell small-5"},(0,a.tr)("median")," :"),r.default.createElement("div",{className:"cell small-6"},n),r.default.createElement("div",{className:"cell small-1"},r.default.createElement(l,null)),r.default.createElement("div",{className:"cell small-5"},(0,a.tr)("max")," :"),r.default.createElement("div",{className:"cell small-6"},t),r.default.createElement("div",{className:"cell small-12",style:{paddingTop:"0.5em"}},r.default.createElement(u.default,null)))});t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(0)),i=(f(n(14)),n(1)),a=n(2),u=n(20),s=n(6),c=n(9),l=n(3);function f(e){return e&&e.__esModule?e:{default:e}}var d={border:"none",background:"none",outline:"none",resize:"none",minHeight:"5.5em",borderBottom:"3px solid rgb(5, 120, 200)"},p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.textInput=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentDidUpdate",value:function(){this.textInput&&this.textInput.focus()}},{key:"render",value:function(){var e=this;return this.props.editing?o.default.createElement("textarea",{className:c.comments,style:d,onMouseUp:function(e){e.stopPropagation()},onKeyUp:function(t){27===t.keyCode?(t.stopPropagation(),e.props.endEditing(t.target.value,e.props.old_content,e.props.node_id)):(t.stopPropagation(),e.props.editTrigger(t.target.value,e.props.node_id))},onBlur:function(t){e.props.endEditing()},defaultValue:this.props.comments.length>0?this.props.comments:"",placeholder:this.props.comments.length>0?"":(0,l.tr)("Your comments here"),ref:function(t){e.textInput=t}}):this.props.comments.length>0?o.default.createElement("div",null,this.props.comments.split("\n").map(function(e,t){return o.default.createElement("span",{key:t},e,o.default.createElement("br",null))})):o.default.createElement("span",null,(0,l.tr)("Click here to add some comments!"))}}]),t}(),h=(0,i.connect)(function(e){return{editing:(0,a.selectReportState)(e).editing_comments()}},function(e){return{editTrigger:function(t,n){e((0,s.updateContentElementByID)(n,"comments",function(){return t}))},endEditing:function(){e((0,u.stopEditingComments)()),e((0,a.commit)())}}},null,{withRef:!0})(p);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(0)),i=n(1),a=n(9),u=f(n(90)),s=n(2),c=n(20),l=n(3);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setWrapperRef=n.setWrapperRef.bind(n),n.handleClickOutside=n.handleClickOutside.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"setWrapperRef",value:function(e){this.wrapperRef=e}},{key:"handleClickOutside",value:function(e){this.wrapperRef&&!this.wrapperRef.contains(e.target)&&this.props.isEditingComments&&this.props.endEditing()}},{key:"render",value:function(){var e=this,t={overflowY:this.props.isEditingComments?"":"auto",overflowX:"hidden",maxHeight:"5.5em"};return this.props.isDummy?o.default.createElement("div",{className:"cell small-6",style:this.props.cells_style},o.default.createElement("b",null,(0,l.tr)("Comments")),o.default.createElement("br",null),o.default.createElement("span",{style:{fontStyle:"italic"}},(0,l.tr)("Your comments here")+"...")):o.default.createElement("div",{ref:this.setWrapperRef,className:"cell small-6 "+a.edit_hover_container,style:this.props.cells_style,onClick:function(t){t.stopPropagation(),e.props.isEditingComments||e.props.onClickCommentsCells()}},o.default.createElement("div",null,o.default.createElement("b",null,(0,l.tr)("Comments")),o.default.createElement("span",null," ",o.default.createElement("i",{className:"fi-pencil "+a.edit_hover_pencil,style:{opacity:"0.3"}})),o.default.createElement("br",null)),o.default.createElement("div",{style:t},o.default.createElement(u.default,{comments:this.props.comments,node_id:this.props.node_id})))}}]),t}(),p=(0,i.connect)(function(e){var t=(0,s.selectReportState)(e);return{isEditingComments:t.editing_comments(),candidate_comments:t.candidate_comments()}},function(e){return{onClickCommentsCells:function(){e((0,c.startEditingComments)())},endEditing:function(){e((0,c.stopEditingComments)()),e((0,s.commit)())}}},null,{withRef:!0})(d);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(0)),i=(d(n(14)),n(1)),a=d(n(50)),u=n(5),s=n(2),c=n(20),l=n(6),f=n(3);function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var h={width:"7em",border:"none",background:"none",outline:"none",borderBottom:"3px solid rgb(10, 50, 100)"},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.textInput=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentDidUpdate",value:function(){this.textInput&&this.textInput.focus()}},{key:"render",value:function(){var e=this,t=void 0,n=void 0;t=[],n=[];var r=function(t){return function(){e.props.deleteTag(t,e.props.node_id)}};if(this.props.editing){var i;this.props.candidateTagCallback(""),this.props.tag_list.size>0&&(n=this.props.tag_list.reduce(function(t,n,i){var u=o.default.createElement(a.default,{key:n,text:n,node_id:e.props.node_id,editing:!0,remove_handler:r(n)});return null===t?[u]:[].concat(p(t),[u])},null));var u=o.default.createElement("input",{key:"__input__",style:h,onMouseUp:function(e){e.stopPropagation()},onKeyUp:function(t){e.props.candidateTagCallback(t.target.value),8===t.keyCode?0==t.target.value.length&&e.props.tag_list.size>0&&e.props.deleteTag(e.props.tag_list.last(),e.props.node_id):13===t.keyCode?(t.preventDefault(),0===t.target.value.length?e.props.endEditing():(e.props.addTag(t.target.value,e.props.node_id),t.target.value="")):27===t.keyCode&&(t.stopPropagation(),e.props.endEditing())},placeholder:(0,f.tr)("New tag"),ref:function(t){e.textInput=t}});(i=t).push.apply(i,p(n).concat([u]))}else{var s;if(this.props.tag_list.size>0)n=this.props.tag_list.reduce(function(e,t,n){var i=o.default.createElement(a.default,{key:t,text:t,editing:!1,remove_handler:r(t)});return null===e?[i]:[].concat(p(e),[i])},null),(s=t).push.apply(s,p(n));else t.push(o.default.createElement("span",{key:"__closing__"},(0,f.tr)("Click here to add some tags!")))}return t}}]),t}(),g=(0,i.connect)(function(e){return{editing:(0,s.selectReportState)(e).editing_tags()}},function(e){return{addTag:function(t,n){e((0,l.updateContentElementByID)(n,"tags",function(e){return void 0===e?u.Set.of(t):e.add(t)})),e((0,l.addTagged)(t,n)),e((0,s.commit)())},deleteTag:function(t,n){e((0,l.updateContentElementByID)(n,"tags",function(e){return e.delete(t)})),e((0,l.deleteTagged)(t,n)),e((0,s.commit)())},endEditing:function(){e((0,c.stopEditingTags)())}}},null,{withRef:!0})(m);t.default=g},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){(t=e.exports=n(73)(!1)).push([e.i,".app__root_button___1RpAr {\n  cursor: pointer;\n}\n\n.app__active_button___3G3oZ {\n  -webkit-transition : filter 0.25s ease-out;\n  transition : filter 0.25s ease-out;\n  outline: none;\n}\n\n.app__active_button___3G3oZ:hover {\n  -webkit-filter: brightness(85%);\n  filter: brightness(120%);\n}\n\n.app__comments___YJu9h {\n  font-size: 1em;\n}\n\n.app__comments___YJu9h:focus {\n  padding: 0 ;\n  margin: 0;\n}\n\n.app__tags___p7i-h div {\n  font-weight: bold;\n  display: inline-block;\n  color: white;\n  background-color: rgb(10, 50, 100);\n  border-radius: 0.8em;\n  padding: 0 1em;\n  margin: 0 0.3em 0.3em 0;\n}\n\n.app__tags___p7i-h div div {\n  background: none;\n  padding: 0;\n  margin: 0 0 0 0.5em;\n}\n\n.app__tags_count___3SCIm {\n  font-weight: bold;\n  display: inline-block;\n  color: white;\n  background-color: rgb(15, 80, 150);\n  border-radius: 0.8em;\n  margin-right: 0.2em;\n  min-width: 1.5em;\n  text-align: center;\n}\n\n::-webkit-scrollbar-track\n{\n  border-radius: 10px;\n  background-color: rgba(190, 200, 180, 0.3);\n}\n\n::-webkit-scrollbar\n{\n  border-radius: 10px;\n  width: 12px;\n  background-color: rgba(190, 200, 180, 0.3);\n}\n\n::-webkit-scrollbar-thumb\n{\n  border-radius: 10px;\n  background-color: #555;\n}\n\n.app__edit_hover_container___1EvWN .app__edit_hover_pencil___1UuBz{\n  visibility: hidden;\n}\n.app__edit_hover_container___1EvWN:hover .app__edit_hover_pencil___1UuBz{\n  visibility: visible;\n}\n\n.app__edit_hover_container___1EvWN:hover {\n  background-color: rgba(190, 200, 180, 0.3);\n  border-radius: 1em;\n  cursor: text;\n}\n\n.app__edit_hover_container___1EvWN {\n}\n\n.app__editable_text___3YaXP:focus {\n  border: none;\n  background: none;\n  outline: none;\n}\n\n.app__session_name___3Cwig {\n  display: inline-block;\n  font-weight: bold;\n  font-size: 1.2em;\n  min-width: 80%;\n  max-width: 80%;\n  height: 1.2em;\n  padding-bottom: 0.5em;\n}\n\n.app__bold___lrFCc {\n  font-weight: bold;\n}\n\n.app__element_name___255Hl {\n  display: inline-block;\n  min-width: 30%;\n}\n\nbody {\n  -webkit-background-size: cover;\n  -moz-background-size: cover;\n  -o-background-size: cover;\n  background-size: cover;\n  background: #ced3cc;\n  background-repeat:no-repeat;\n  background: -webkit-linear-gradient(to bottom, #ecefea, #ced3cc);\n  background: -moz-linear-gradient(to bottom, #ecefea, #ced3cc);\n  background: -ms-linear-gradient(to bottom, #ecefea, #ced3cc);\n  background: -o-linear-gradient(to bottom, #ecefea, #ced3cc);\n  background: linear-gradient(to bottom, #ecefea, #ced3cc);\n}\n\n\n*, h4 {\n  font-family: 'Quicksand', sans-serif;\n  /*background-color: rgba(0,0,0,0.05);*/\n}\n\n",""]),t.locals={root_button:"app__root_button___1RpAr",active_button:"app__active_button___3G3oZ",comments:"app__comments___YJu9h",tags:"app__tags___p7i-h",tags_count:"app__tags_count___3SCIm",edit_hover_container:"app__edit_hover_container___1EvWN",edit_hover_pencil:"app__edit_hover_pencil___1UuBz",editable_text:"app__editable_text___3YaXP",session_name:"app__session_name___3Cwig",bold:"app__bold___lrFCc",element_name:"app__element_name___255Hl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(0)),i=n(1),a=n(9),u=d(n(92)),s=n(2),c=n(20),l=n(6),f=n(3);function d(e){return e&&e.__esModule?e:{default:e}}var p={overflowY:"auto",overflowX:"hidden",maxHeight:"5em"},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setWrapperRef=n.setWrapperRef.bind(n),n.handleClickOutside=n.handleClickOutside.bind(n),n.setCandidateTag=n.setCandidateTag.bind(n),n.candidateTag="",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"setWrapperRef",value:function(e){this.wrapperRef=e}},{key:"handleClickOutside",value:function(e){this.wrapperRef&&!this.wrapperRef.contains(e.target)&&this.props.isEditingTags&&(this.props.endEditing(),this.candidateTag.replace(/\s/g,"").length>0&&this.props.addTag(this.candidateTag,this.props.node_id))}},{key:"setCandidateTag",value:function(e){this.candidateTag=e}},{key:"render",value:function(){var e=this;return this.props.isDummy?o.default.createElement("div",{className:"cell small-6",style:this.props.cells_style},o.default.createElement("b",null,(0,f.tr)("Tags")),o.default.createElement("br",null),o.default.createElement("span",{style:{fontStyle:"italic"}},(0,f.tr)("Your tags here")+"...")):o.default.createElement("div",{ref:this.setWrapperRef,className:a.edit_hover_container,style:this.props.cells_style,onClick:function(t){t.stopPropagation(),e.props.isEditingTags||e.props.onClickTagsCells()}},o.default.createElement("b",null,(0,f.tr)("Tags")),o.default.createElement("span",null," ",o.default.createElement("i",{className:"fi-pencil "+a.edit_hover_pencil,style:{opacity:"0.3"}})),o.default.createElement("br",null),o.default.createElement("div",{style:p},o.default.createElement(u.default,{tag_list:this.props.tags,node_id:this.props.node_id,candidateTagCallback:this.setCandidateTag})))}}]),t}(),m=(0,i.connect)(function(e){return{isEditingTags:(0,s.selectReportState)(e).editing_tags()}},function(e){return{addTag:function(t,n){e((0,l.updateContentElementByID)(n,"tags",function(e){return void 0===e?Set.of(t):e.add(t)})),e((0,l.addTagged)(t,n)),e((0,s.commit)())},onClickTagsCells:function(){e((0,c.startEditingTags)())},endEditing:function(){e((0,c.stopEditingTags)())}}},null,{withRef:!0})(h);t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(0)),i=s(n(14)),a=s(n(4)),u=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=a=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),a.finishEditing=function(){var e=a.props.options.find(function(e){return e.id===i.default.findDOMNode(this.refs.input).value},a);a.doValidations(e),a.state.invalid||a.props.value===e||a.commit(e),a.cancelEditing()},a.renderEditingComponent=function(){var e=a.props.options.map(function(e){return o.default.createElement("option",{value:e.id,key:e.id},e.text)});return o.default.createElement("select",r({disabled:a.props.shouldBlockWhileLoading&&a.state.loading,value:a.props.value.id,className:a.makeClassString(),onChange:a.finishEditing,onBlur:a.cancelEditing,ref:"input",onKeyDown:a.keyDown},a.props.editProps),e)},a.renderNormalComponent=function(){return o.default.createElement("span",r({tabIndex:"0",className:a.makeClassString(),onFocus:a.startEditing,onClick:a.startEditing},a.props.defaultProps),a.state.newValue?a.state.newValue.text:a.props.value.text)},c(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),t}();l.propTypes={options:a.default.array.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(0)),i=s(n(14)),a=s(n(4)),u=s(n(19));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e){l(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.remove=function(){n.props.removeHandler(n.props.text)},n.render=function(){return o.default.createElement("div",{key:n.props.text},n.props.text,o.default.createElement("div",{onClick:n.remove,className:n.props.className||"remove"}," × "))},n}return d(t,o.default.Component),t}();p.propTypes={text:a.default.string.isRequired,removeHandler:a.default.func,className:a.default.string};var h=function(e){function t(e){l(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.addTag=function(e){[].concat(c(n.props.value)).length<(n.props.maxTags||65535)&&n.commit(n.props.value.add(e))},n.removeTag=function(e){if(clearTimeout(n.state.blurTimer),[].concat(c(n.props.value)).length>=(n.props.minTags||1)){var t=n.props.value;t.delete(e),n.commit(t)}},n.componentWillReceiveProps=function(e){"value"in e&&n.setState({loading:!1,invalid:!1})},n.keyDown=function(e){if(8===e.keyCode){if(0==e.target.value.length){var t=[].concat(c(n.props.value)).pop();n.removeTag(t)}}else 13===e.keyCode?(e.preventDefault(),0===e.target.value.length?n.cancelEditing():(n.addTag(e.target.value),e.target.value="")):27===e.keyCode&&n.cancelEditing()},n.cancelEditingDelayed=function(){n.setState({blurTimer:setTimeout(n.cancelEditing,n.props.blurDelay||180)})},n.cancelEditing=function(){n.setState({editing:!1,invalid:!1})},n.componentDidUpdate=function(e,t){var r=i.default.findDOMNode(n.refs.input);n.state.editing&&r.focus()},n.renderNormalComponent=function(){var e=[].concat(c(n.props.value)).join(n.props.separator||", ");return o.default.createElement("span",r({tabIndex:"0",className:n.makeClassString(),onFocus:n.startEditing},n.props.defaultProps),e)},n.makeTagElement=function(e){return o.default.createElement(p,{key:e,text:e,removeHandler:n.removeTag})},n.renderEditingComponent=function(){var e=[].concat(c(n.props.value)).map(n.makeTagElement);return o.default.createElement("div",r({tabIndex:"1",onClick:n.startEditing,className:n.makeClassString()},n.props.editProps),e,o.default.createElement("input",{onBlur:n.cancelEditingDelayed,onKeyDown:n.keyDown,placeholder:n.props.placeholder||"New tag",ref:"input"}))},n.state.currentText="",n.state.blurTimer=null,n}return d(t,u.default),t}();h.propTyes={value:a.default.object.isRequired,maxTags:a.default.number,minTags:a.default.number,separator:a.default.string,elementClass:a.default.string,blurDelay:a.default.number,placeholder:a.default.string},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),i=u(n(4)),a=u(n(19));function u(e){return e&&e.__esModule?e:{default:e}}var s=n(35)("RIENumber"),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.validate=function(e){return s("validate("+e+")"),!isNaN(e)&&isFinite(e)&&e.length>0},n.selectInputText=function(e){s("selectInputText("+e+")"),setTimeout(function(){e.select()},10)},n.elementBlur=function(e){s("elementBlur("+e+")"),e.nativeEvent.explicitOriginalTarget&&e.nativeEvent.explicitOriginalTarget==e.nativeEvent.originalTarget||n.finishEditing()},n.renderNormalComponent=function(){return s("renderNormalComponent()"),o.default.createElement("span",r({tabIndex:"0",className:n.makeClassString(),onFocus:n.startEditing,onClick:n.elementClick},n.props.defaultProps),n.props.format?n.props.format(n.state.newValue||n.props.value):n.state.newValue||n.props.value)},n.renderEditingComponent=function(){return s("renderEditingComponent()"),o.default.createElement("input",r({disabled:n.props.shouldBlockWhileLoading&&n.state.loading,type:"number",className:n.makeClassString(),defaultValue:n.props.value,onInput:n.textChanged,onBlur:n.elementBlur,ref:"input",onKeyDown:n.keyDown},n.props.editProps))},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),t}();c.propTypes={format:i.default.func},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=a(n(0)),i=(a(n(14)),a(n(19)));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];return n=i=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.keyDown=function(e){27===e.keyCode&&i.cancelEditing()},i.renderEditingComponent=function(){return o.default.createElement("textarea",r({rows:i.props.rows,cols:i.props.cols,disabled:i.state.loading,className:i.makeClassString(),defaultValue:i.props.value,onInput:i.textChanged,onBlur:i.finishEditing,ref:"input",onKeyDown:i.keyDown},i.props.editProps))},i.renderNormalComponent=function(){var e=[],t=0;return(i.state.newValue||i.props.value).split("\n").map(function(n){e.push(o.default.createElement("span",{key:t},n)),e.push(o.default.createElement("br",{key:t+1})),t+=2}),e.pop(),o.default.createElement("span",r({tabIndex:"0",className:i.makeClassString(),onFocus:i.startEditing,onClick:i.startEditing},i.props.defaultProps),e)},u(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),t}();t.default=s},function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=365.25*i;function u(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var s,c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?u(s=e,i,"day")||u(s,o,"hour")||u(s,r,"minute")||u(s,n,"second")||s+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=new Array(arguments.length),u=0;u<a.length;u++)a[u]=arguments[u];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var s=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;s++;var o=t.formatters[r];if("function"==typeof o){var i=a[s];n=o.call(e,i),a.splice(s,1),s--}return n}),t.formatArgs.call(e,a),(n.log||t.log||console.log.bind(console)).apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(100),t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),i=u(n(4)),a=u(n(51));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=i=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.elementClick=function(e){i.props.isDisabled||(i.setState({value:!i.props.value}),i.commit(!i.props.value))},i.render=function(){var e=i.state.loading?i.state.value:i.props.value;return o.default.createElement("span",r({tabIndex:"0",onKeyPress:i.elementClick,onClick:i.elementClick,className:i.makeClassString()},i.props.defaultProps),e?i.props.textTrue||"yes":i.props.textFalse||"no")},s(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),t}();c.propTypes={textTrue:i.default.string,textFalse:i.default.string},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animate=function(e,t,n){var r=o(),a={visible:e,measure:t,mutate:n};return i=i.set(r,a),r},t.clear=function(e){i=i.delete(e)};var r=n(15);var o=function(){return(0,r.generateRandomString)(40)},i=(0,n(5).Map)();!function e(){var t,n=i.keys(),r=(t=n,Array.isArray(t)?t:Array.from(t)).slice(0),o=[];r.forEach(function(e,t){var n=i.get(e),r=n.visible,a=n.measure;o.push(r()),o[t]&&a()}),r.forEach(function(e,t){var n=i.get(e).mutate;o[t]&&n()}),requestAnimationFrame(e)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};var a=(0,n(1).connect)(function(e){return{}},function(e){return{}})(function(e){var t=e.x,n=e.y,r=e.dx,o=e.dy,a=o/10,u=[],s=function(e,t){return u.push(function(e,t){return e+","+t}(e,t))};return s(t,n),!1===e.is_first&&s(t+r/2,n+a),s(t+r,n),s(t+r,n+o),!1===e.is_last&&s(t+r/2,n+o+a),s(t,n+o),i.default.createElement("polygon",{className:"breadcrumb-poly",points:u.join(" "),fill:e.fill_color})});t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};var a=function(e,t,n){var r=Math.floor(t/n),o=Math.floor(r/2);return e.length>r?e.substring(0,o-2)+"..."+e.substring(e.length-o+2,e.length):e},u=(0,n(1).connect)(function(e){return{}},function(e){return{}})(function(e){var t=.8*e.dx;return i.default.createElement("text",{className:"breadcrumb-text",x:e.x,y:e.y,dx:"0",dy:e.dy/2+5,textAnchor:"start",stroke:"none",fontWeight:e.is_placeholder?"bold":"",fontSize:6*e.text.length<t?"1em":"0.7em"},6*e.text.length<t?a(e.text,t,6):a(e.text,t,4.5))});t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(0)),i=n(1),a=n(2),u=f(n(105)),s=f(n(104)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7)),l=n(3);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.computeDim=n.computeDim.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.PureComponent),r(t,[{key:"computeDim",value:function(e,t){var n=this.props,r=n.x+30,o=n.dx-30,i=o/20,a=o-i;return{x_poly:r,y_poly:e,width_poly:i,height_poly:t,x_text:r+i+1*a/20,y_text:e,width_text:19*a/20,height_text:t}}},{key:"render",value:function(){var e=this,t=this.props.trueFHeight,n=[];if(this.props.isFocused){var r=this.props.breadcrumb_sequence.slice(1),i=r.map(t),a=function(e){for(var t=[0],n=0;n<e.length-1;n++)t.push(e[n]+t[n]);return t}(i);n=r.map(function(t,n){var c,l,f,d,p=e.props.fillColor(t),h=(c=t,l=e.props.getByID(c),f=l.get("name"),""===(d=l.get("content").get("alias"))?f:d),m=n===r.length-1,g=0===n,y=e.computeDim(a[n],i[n]);return o.default.createElement("g",{key:function(e){return"breadcrumbc-"+e}(t)},o.default.createElement(s.default,{is_last:m,is_first:g,x:y.x_poly,y:y.y_poly,dx:y.width_poly,dy:y.height_poly,fill_color:p}),o.default.createElement(u.default,{x:y.x_text,y:y.y_text,dx:y.width_text,dy:y.height_text,text:h,is_placeholder:!1}))})}else for(var f=t(this.props.root_id),d=Math.min(this.props.max_depth,5),p=c.placeholder(),h=0;h<d;h++){var m=h===d-1,g=0===h,y=this.computeDim(h*f,f),v=void 0;v=m?(0,l.tr)("File"):h>=2?"...":(0,l.tr)("Level")+" "+(h+1),n.push(o.default.createElement("g",{key:"breadcrumb"+h},o.default.createElement(s.default,{is_last:m,is_first:g,x:y.x_poly,y:y.y_poly,dx:y.width_poly,dy:y.height_poly,fill_color:p}),o.default.createElement(u.default,{x:y.x_text,y:y.y_text,dx:y.width_text,dy:y.height_text,text:v,is_placeholder:!0})))}return o.default.createElement("g",{style:{opacity:this.props.isFocused?1:.3,stroke:"#fff"}},n)}}]),t}(),p=(0,i.connect)(function(e){var t=(0,a.selectIcicleState)(e),n=(0,a.selectDatabase)(e),r=t.isLocked()?t.lock_sequence():t.hover_sequence(),o=n.getByID,i=n.maxDepth();return{breadcrumb_sequence:r,isFocused:t.isFocused(),max_depth:i,getByID:o,root_id:n.rootId()}},function(e){return{}})(d);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(r=i)&&r.__esModule?r:{default:r},u=n(1),s=n(2),c=n(10);n(58);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(){return l(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,a.default.PureComponent),o(t,[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.dx,o=e.dy,i=e.onClickHandler,u=e.onDoubleClickHandler,s=e.onMouseOverHandler,c=e.fill,l=e.opacity;return a.default.createElement("rect",{className:"node",x:t,y:n,width:r,height:o,onClick:i,onDoubleClick:u,onMouseOver:s,style:{fill:c,opacity:l,stroke:"#fff"}})}}]),t}(),h=function(e){function t(e){l(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.d_setFocus=n.d_setFocus.bind(n),n.d_setNoFocus=n.d_setNoFocus.bind(n),n.d_setDisplayRoot=n.d_setDisplayRoot.bind(n),n.d_lock=n.d_lock.bind(n),n.dims=n.dims.bind(n),n.nodeSequence=n.nodeSequence.bind(n),n.onClickHandler=n.onClickHandler.bind(n),n.onDoubleClickHandler=n.onDoubleClickHandler.bind(n),n.onMouseOverHandler=n.onMouseOverHandler.bind(n),n.onMouseOutHandler=n.onMouseOutHandler.bind(n),n}return d(t,a.default.PureComponent),o(t,[{key:"d_setFocus",value:function(){this.props.dispatch(c.setFocus.apply(void 0,arguments))}},{key:"d_setNoFocus",value:function(){this.props.dispatch(c.setNoFocus.apply(void 0,arguments))}},{key:"d_setDisplayRoot",value:function(){this.props.dispatch(c.setDisplayRoot.apply(void 0,arguments))}},{key:"d_lock",value:function(){this.props.dispatch(c.lock.apply(void 0,arguments)),this.props.dispatch((0,s.commit)())}},{key:"dims",value:function(){return{x:this.props.x,y:this.props.y,dx:this.props.dx,dy:this.props.dy}}},{key:"nodeSequence",value:function(){return this.props.nodeSequence(this.props.node_id)}},{key:"onClickHandler",value:function(e){e.stopPropagation(),this.d_lock(this.nodeSequence(),this.dims())}},{key:"onDoubleClickHandler",value:function(){this.d_setDisplayRoot(this.nodeSequence())}},{key:"onMouseOverHandler",value:function(){this.d_setFocus(this.nodeSequence(),this.dims(),this.props.isLocked)}},{key:"onMouseOutHandler",value:function(){this.props.isLocked||this.d_setNoFocus()}},{key:"render",value:function(){var e=this.props.node_id,t=this.props.isLocked,n=this.props.isFocused,r=this.props.isInHoverSeq,o=this.props.isInLockSeq,i=t?o?1:r?.6:.3:n?r?1:.3:1,u=this.props.fillColor(e),s=[a.default.createElement(p,{key:"rect",x:this.props.x,y:this.props.y,dx:this.props.dx,dy:this.props.dy,onClickHandler:this.onClickHandler,onDoubleClickHandler:this.onDoubleClickHandler,onMouseOverHandler:this.onMouseOverHandler,fill:u,opacity:i})];if(this.props.hasTags){var c=this.props.highlightingATag?this.props.hasTagToHighlight?1:.2:1;s.push(a.default.createElement("rect",{key:"stroke",x:this.props.x+1,y:this.props.y+1,width:this.props.dx-2,height:"6",style:{fill:"rgb(10, 50, 100)",stroke:"none",opacity:c}}))}return s}}]),t}(),m=(0,u.connect)(function(e,t){var n=(0,s.selectDatabase)(e),r=(0,s.selectIcicleState)(e),o=r.hover_sequence(),i=r.lock_sequence(),a=r.tag_to_highlight(),u=n.getByID(t.node_id).get("content").get("tags"),c=o.includes(t.node_id),l=i.includes(t.node_id),f=u.size>0,d=a.length>0,p=u.includes(a);return{isFocused:r.isFocused(),isLocked:r.isLocked(),isInHoverSeq:c,isInLockSeq:l,hasTags:f,highlightingATag:d,hasTagToHighlight:p}},function(e){return{dispatch:e}})(h);t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=p(n(0)),i=n(1),a=n(2),u=n(6),s=(n(3),function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(7))),c=p(n(54)),l=p(n(53)),f=p(n(49)),d=p(n(48));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.fillColor=n.fillColor.bind(n),n.props.dispatch((0,u.sortBySize)()),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.PureComponent),r(t,[{key:"fillColor",value:function(e){var t=this.props.getByID(e),n=t.get("name");return t.get("children").size?this.props.display_root.includes(e)?s.parentFolder():s.folder():s.fromFileName(n)}},{key:"render",value:function(){return o.default.createElement("div",{className:"grid-y grid-frame"},o.default.createElement("div",{className:"cell"},o.default.createElement("div",{className:"grid-x"},o.default.createElement("div",{className:"cell small-10",style:{paddingRight:".9375em"}},o.default.createElement(l.default,{fillColor:this.fillColor})),o.default.createElement("div",{className:"cell small-2"},o.default.createElement(f.default,null)))),o.default.createElement("div",{className:"cell"},o.default.createElement("div",{className:"grid-x align-center"},o.default.createElement("div",{className:"cell shrink"},o.default.createElement(d.default,null)))),o.default.createElement("div",{className:"cell auto"},o.default.createElement(c.default,{fillColor:this.fillColor})))}}]),t}(),m=(0,i.connect)(function(e){var t=(0,a.selectDatabase)(e),n=(0,a.selectIcicleState)(e);return{getByID:t.getByID,display_root:n.display_root()}},function(e){return{dispatch:e}})(h);t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readAsText=function(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.currentTarget.result)},r.readAsText(e)})},t.readAsArrayBuffer=function(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.currentTarget.result)},r.readAsArrayBuffer(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkScheduler=function(){var e=[],t=!0,n=1,r=0,o=function(){t&&(requestAnimationFrame(i),t=!1)},i=function(){(new Date).getTime()-r>30&&n>0?n--:n++,t=!0,e.length>0&&(!function(t){for(var n=Math.min(e.length,t)-1;n>=0;n--)e.pop()()}(n),o()),r=(new Date).getTime()};return{schedule:function(t){e=[t].concat(e),o()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asyncHandleDrop=function(e,t,n,r){e.preventDefault();var o=e.dataTransfer.items,i=o[0].webkitGetAsEntry();if(function(e){return e.isFile&&(t=e.name,"json"===t.split(".").slice(-1).pop());var t}(i))return a(i).then(n).then(function(){return!1});if(function(e){return e.isFile&&(t=e.name,"csv"===t.split(".").slice(-1).pop());var t}(i))return a(i).then(r).then(function(){return!1});for(var s=[],c=0;c<o.length;c++){var l=o[c].webkitGetAsEntry();s.push(u(t,l,""))}return Promise.all(s).then(function(){return!0})};var r=n(110),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(109));var i=(0,r.mkScheduler)();function a(e){return new Promise(function(t,n){e.file(function(e){o.readAsText(e).then(function(e){t(e)})},function(e){console.log(e),t()})})}function u(e,t,n){return t.isFile?function(e,t,n){return new Promise(function(r,o){return i.schedule(function(){t.file(function(t){e(n,t),r()},function(o){e(n,new File([""],t.name)),r()})})})}(e,t,n):t.isDirectory?function(e,t,n){return new Promise(function(r,o){return i.schedule(function(){var o=[],i=t.createReader();!function a(){i.readEntries(function(i){i.length>0?(i.forEach(function(r){return o.push(u(e,r,n+t.name+"/"))}),a()):Promise.all(o).then(function(){return r()})},function(o){e(n,new File([""],t.name+"/")),r()})}()})})}(e,t,n):void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(0)),i=n(1),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(111)),u=n(6),s=n(37),c=n(2),l=d(n(26)),f=n(3);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.style_dropzone={border:"0.2em dashed #868686",borderRadius:"3em"},n.style_placeholder={fontSize:"3em"},n.placeholder=(0,f.tr)("Drop a directory here!"),n.placeholder_st=(0,f.tr)("You may also drop a JSON file previously exported from Icicle."),n.disclaimer=o.default.createElement("em",null,o.default.createElement("br",null),(0,f.tr)("Compatible with Firefox and Chrome."),o.default.createElement("br",null),(0,f.tr)("Your data won't leave your computer. Only you can see what happens in this app.")),n.handleDrop=n.handleDrop.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"handleDragover",value:function(e){e.preventDefault()}},{key:"handleDrop",value:function(e){var t=this;e.preventDefault(),this.props.startToLoadFiles(),a.asyncHandleDrop(e,this.props.push,this.props.fromJson,this.props.fromLegacyCsv).then(function(e){if(e)return t.props.makeTree()}).then(this.props.finishedToLoadFiles)}},{key:"render",value:function(){return o.default.createElement("div",{className:"grid-y grid-frame align-center",onDragOver:this.handleDragover,onDrop:this.handleDrop,style:this.style_dropzone},o.default.createElement("div",{className:"cell"},o.default.createElement(l.default,null,o.default.createElement("div",{style:this.style_placeholder},this.placeholder))),o.default.createElement("div",{className:"cell"},o.default.createElement(l.default,null,o.default.createElement("div",null,this.placeholder_st))),o.default.createElement("div",{className:"cell"},o.default.createElement(l.default,null,o.default.createElement("div",null,this.disclaimer))))}}]),t}(),h=(0,i.connect)(function(e){return{}},function(e){return{push:function(){return e(u.workerPush.apply(void 0,arguments))},makeTree:function(){return e(u.workerMakeTree.apply(void 0,arguments))},sort:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){return e(sort.apply(void 0,arguments))}),fromJson:function(){return e(u.fromJson.apply(void 0,arguments))},fromLegacyCsv:function(){return e(u.fromLegacyCsv.apply(void 0,arguments))},startToLoadFiles:function(){return e(s.startToLoadFiles.apply(void 0,arguments))},finishedToLoadFiles:function(){e(s.finishedToLoadFiles.apply(void 0,arguments)),e((0,c.commit)())}}})(p);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),o=n(1),i=n(2),a=l(n(112)),u=l(n(108)),s=l(n(85)),c=l(n(84));n(3);function l(e){return e&&e.__esModule?e:{default:e}}var f={padding:"0em 5em"},d=(0,o.connect)(function(e){var t=(0,i.selectAppState)(e),n=(0,i.selectIcicleState)(e);return{started:t.isStarted(),finished:t.isFinished(),change_skin:n.changeSkin()}},function(e){return{}})(function(e){return!1===e.started&&!1===e.finished?r.default.createElement("div",{className:"grid-y grid-padding-x grid-frame align-center",style:f},r.default.createElement("div",{className:"cell small-8"},r.default.createElement(a.default,null))):!0===e.started&&!1===e.finished?r.default.createElement("div",{className:"grid-y grid-padding-x grid-frame align-center"},r.default.createElement("div",{className:"cell small-8"},r.default.createElement(c.default,null))):r.default.createElement("div",{className:"grid-y grid-padding-x grid-frame align-center"},r.default.createElement("div",{className:"cell small-12"},!1===e.change_skin&&r.default.createElement(u.default,null),!0===e.change_skin&&r.default.createElement(s.default,null)))});t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signIn=t.signUp=t.reInit=void 0;var r,o=n(22),i=(r=o)&&r.__esModule?r:{default:r},a=n(56),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(55)),s=n(2);var c=new((0,n(5).Record)({account_name:"",password:"",token:"",retry:0})),l=(0,i.default)("cheapExp/api",c,function(e){return{getToken:function(){return e.get("token")}}}),f=l.mkA,d=l.reducer,p=l.key;t.default=d;t.reInit=f(function(){return function(e){return c}});var h=f(function(e,t){return function(n){return n=(n=n.update("account_name",function(){return e})).update("password",function(){return t})}}),m=f(function(e){return function(t){return t=(t=t.update("token",function(){return e})).update("retry",function(){return 1})}}),g=(t.signUp=function(e,t){return function(n,r){return(0,a.request)({method:"POST",url:"http://localhost:3000/basic/account",headers:{Authorization:"Basic "+u.fromUtf8(e+":"+t)}}).then(function(){return n(g(e,t))})}},t.signIn=function(e,t){return function(n,r){return n(h(e,t)),n(y())}}),y=function(){return function(e,t){var n=(0,s.selectApi)(t());return console.log(n[p]),(0,a.request)({method:"GET",url:"http://localhost:3000/basic/account",headers:{Authorization:"Basic "+u.fromUtf8(n[p].account_name+":"+n[p].password)}}).then(function(t){return t=JSON.parse(t),e(m(t.token))})}}},function(e,t,n){"use strict";e.exports=function(){return new Worker(n.p+"b79fb6ef7d8595b19f27.worker.js")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkDummyParent=t.mkDummyFile=t.isRoot=t.isLeaf=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(e){var t=(0,u.Record)({table:(0,u.Map)(),root_id:""}),n=function(){return new t},s=function(e){return e.get("table")},l=function(e,t){return t.set("table",e)},f=function(e,t){return t.update("table",e)},d=function(e){return e.get("root_id")},p=function(e,t){return t.set("root_id",e)},h=function(){return(0,a.generateRandomString)(40)},m=function(e){var t=h(),r=(0,u.Map)(function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,new c({content:e}))),o=n();return o=l(r,o),o=p(t,o)},g=function(e,t){return s(t).get(e)},y=function(e,t,n){return f(function(n){return n.set(e,t)},n)},v=function(e,t,n){return f(function(n){return n.update(e,function(e){return t(e)})},n)},b=function e(t,n,r){var o=[];return g(n,r).get("children").forEach(function(n){o.push(e(t,n,r))}),t(o,g(n,r))},_=function(t,n){return n=n.update("content",function(n){return e.update(t,n)})},w=function e(t,n,r,o){if(0===t.length)return o;var i=t[0];t=t.slice(1);var a=function(e,t,n){var r=g(t,n).get("children").filter(function(t){return g(t,n).get("name")===e});return r.size?r.get(0):null}(i,r,o);if(a)o=v(a,function(e){return _(n,e)},o);else{a=h();var u=new c({name:i,content:n,parent:r,depth:g(r,o).get("depth")+1});o=y(a,u,o),o=v(r,function(e){return function(e,t){return t=t.update("children",function(t){return t.push(e)})}(a,e)},o)}return e(t,n,a,o)},E=function(e,t,n){var r=d(n);return n=v(r,function(e){return _(t,e)},n),n=w(e,t,r,n)},O=function(t,n){var o=function(t,n){var o=r(t,2),i=(o[0],o[1]),a=r(n,2),u=(a[0],a[1]);return e.compare(i,u)};return n=n.update("children",function(e){return e.map(function(e){return[e,function(e,t){return g(e,t).get("content")}(e,t)]}).sort(o).map(function(e){var t=r(e,2),n=t[0];t[1];return n})})},x=function e(t,n){var r=g(t,n),o=r.get("name"),i=r.get("parent");return i?e(i,n).push(o):u.List.of(o)},S=function(e,t){return function e(t,n,r){return g(n,r).get("children").forEach(function(n){r=e(t,n,r)}),r=v(n,function(e){return t(e)},r)}(function(t){return t.update("content",e)},d(t),t)},k=function e(t){var o=t.children.map(e).reduce(function(e,t){return[e[0].concat(t[0]),(r=e[1],o=t[1],i=n(),i=l(s(r).merge(s(o)),i))];var r,o,i},[[],n()]),i=r(o,2),a=i[0],f=i[1],d=h();return f=y(d,new c(t).set("children",(0,u.List)(a)),f),a.forEach(function(e){f=v(e,function(e){return e.set("parent",d)},f)}),f=p(d,f),[[d],f]},j=i.make(function(e){return b(function(e,t){return e.reduce(function(e,t){return Math.max(e,t)},t.get("depth"))},d(e),e)});return{update:E,sort:function(e){return e=function e(t,n){return n=v(t,function(e){return O(n,e)},n),g(t,n).get("children").forEach(function(t){return n=e(t,n)}),n}(d(e),e)},isSorted:function(t){return function t(n,r){for(var o=function(e){return g(e,r).get("content")},i=g(n,r).get("children"),a=!0,u=1;u<i.size;u++)a=a&&1!==e.compare(o(i.get(u-1)),o(i.get(u)));return i.map(function(e){return t(e,r)}).reduce(function(e,t){return e&&t},a)}(d(t),t)},arbitrary:function(){for(var t=m(e.arbitrary()),n=0;n<50*Math.random();n++)t=E(o.array(function(){return"p"+Math.round(1*Math.random())}),e.arbitrary(),t);return t},init:m,getRootId:d,remakePath:x,getEntryById:g,updateEntryById:v,toStrList2:function(t){var n=s(t),r=u.List.of("path").concat(e.toStrListHeader());return n.map(function(n,r){return u.List.of(x(r,t).slice(1).join("/")).concat(e.toStrList(n.get("content")))}).reduce(function(e,t){return e.push(t)},u.List.of(r))},toJsTree:function(e){return b(function(e,t){return t.set("children",e).set("parent",null).toJS()},d(e),e)},fromJsTree:function(e){var t=k(e),n=r(t,2);n[0];return n[1]},toJson:function(t){return t=S(e.toJson,t),JSON.stringify(t.toJS())},fromJson:function(n){var r=new t(JSON.parse(n));return r=f(function(t){return(0,u.Map)(t).map(function(t){return new c(t).update("content",e.fromJson).update("children",u.List)})},r)},toList:function(e){return b(function(e,t){return e.reduce(function(e,t){return e.concat(t)},(0,u.List)()).push(t).map(function(e){return e.set("children",(0,u.List)())}).map(function(e){return e.set("parent",null)})},d(e),e)},size:function(e){return s(e).size},depth:j}};var o=s(n(38)),i=s(n(57)),a=n(39),u=n(5);function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c=(0,u.Record)({name:"",content:null,children:(0,u.List)(),parent:null,depth:0});t.isLeaf=function(e){return 0===e.get("children").size},t.isRoot=function(e){return null===e.get("parent")},t.mkDummyFile=function(){return new c({children:(0,u.List)(),name:""})},t.mkDummyParent=function(){return new c({children:(0,u.List)(["-1"]),name:""})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromJson=t.toJson=t.fromJs=t.toJs=t.setTags=t.getTags=t.setComments=t.getComments=t.setAlias=t.getAlias=t.setLastModified=t.getLastModified=t.setSize=t.getSize=t.toStrList=t.toStrListHeader=t.update=t.compare=t.create=t.arbitrary=t.tagsFromJs=t.tagsToJs=t.arbitraryTags=void 0;var r=n(5),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(38));var i=(0,r.Record)({size:0,last_modified:null,error_is_file:!1,alias:"",comments:"",tags:(0,r.Set)()}),a=t.arbitraryTags=function(){return(0,r.Set)(o.array(o.string))},u=t.tagsToJs=function(e){return e.toArray()},s=t.tagsFromJs=function(e){return(0,r.Set)(e)},c=(t.arbitrary=function(){return new i({size:o.natural(),last_modified:o.natural(),error_is_file:o.nullable(o.bool),alias:o.string(),comments:o.string(),tags:a()})},t.create=function(e){return new i(e)},t.compare=function(e,t){return e.get("size")===t.get("size")?0:e.get("size")>t.get("size")?-1:1},t.update=function(e,t){var n=e.get("size");t=t.update("size",function(e){return e+n});var r=e.get("last_modified");return t=t.update("last_modified",function(e){return Math.max(e,r)})},t.toStrListHeader=function(){return r.List.of("size (octet)","last_modified","comments","tags")},t.toStrList=function(e){return r.List.of(e.get("size"),new Date(e.get("last_modified")),e.get("comments"),u(e.get("tags")).toString())},t.getSize=function(e){return e.get("size")},t.setSize=function(e,t){return t.set("size",e)},t.getLastModified=function(e){return e.get("last_modified")},t.setLastModified=function(e,t){return t.set("last_modified",e)},t.getAlias=function(e){return e.get("alias")},t.setAlias=function(e,t){return t.set("alias",e)},t.getComments=function(e){return e.get("comments")},t.setComments=function(e,t){return t.set("comments",e)},t.getTags=function(e){return e.get("tags")},t.setTags=function(e,t){return t.set("tags",e)},t.toJs=function(e){return e=(e=e.update("tags",u)).toJS()}),l=t.fromJs=function(e){return e=(e=new i(e)).update("tags",s)};t.toJson=function(e){return JSON.stringify(c(e))},t.fromJson=function(e){return l(JSON.parse(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromLegacyCsv=t.setParentPath=t.toStrList2=t.fromJson=t.toJson=t.sort=t.makeTree=t.pushOnQueue=t.rootId=t.volume=t.setSessionName=t.getSessionName=t.updateByID=t.setByID=t.getByID=t.parentPath=t.depth=t.size=t.empty=t.arbitrary=t.qeFromJson=t.qeToJson=t.arbitraryQe=void 0;var r,o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n(5),a=(n(39),l(n(57))),u=l(n(117)),s=l(n(38)),c=n(116);function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var f=(0,((r=c)&&r.__esModule?r:{default:r}).default)(u),d=(0,i.Record)({path:(0,i.List)(),content:null}),p=function(){return(0,i.List)(s.array(function(){return"p"+Math.round(1*Math.random())}))},h=(t.arbitraryQe=function(){return new d({path:p(),content:u.arbitrary()})},t.qeToJson=function(e){return e=(e=e.update("path",function(e){return e.toJS()})).update("content",u.toJson),e=JSON.stringify(e.toJS())}),m=t.qeFromJson=function(e){return e=(e=(e=new d(JSON.parse(e))).update("path",i.List)).update("content",u.fromJson)},g=(0,i.Record)({session_name:"Untitled",version:5,content_queue:(0,i.List)(),nb_push:0,tree:null,parent_path:(0,i.List)()}),y=(t.arbitrary=function(){for(var e=y(),t=2*s.index()-1;t>=0;t--)e=_(p().join("/"),u.arbitrary(),e);return e=w(e),e=E(e)},t.empty=function(){return new g({tree:f.init(u.create())})}),v=(t.size=function(e){return e.get("content_queue").size},t.depth=function(e){return f.depth(e.get("tree"))},t.parentPath=function(e){return e.get("parent_path").toArray()},t.getByID=function(e,t){return f.getEntryById(e,t.get("tree"))}),b=(t.setByID=function(e,t,n){return n.update("tree",function(n){return f.setEntryById(e,t,n)})},t.updateByID=function(e,t,n){return n.update("tree",function(n){return f.updateEntryById(e,t,n)})},t.getSessionName=function(e){return e.get("session_name")},t.setSessionName=function(e,t){return t.set("session_name",e)},t.volume=function(e){return u.getSize(v(b(e),e).get("content"))},t.rootId=function(e){return f.getRootId(e.get("tree"))}),_=t.pushOnQueue=function(e,t,n){return n=(n=n.update("content_queue",function(n){return n.push(new d({path:(0,i.List)(e.split("/")),content:u.create(t)}))})).update("depth",function(t){return Math.max(t,e.length)})},w=t.makeTree=function(e){return e=e.update("tree",function(t){return t=t.asMutable(),e.get("content_queue").forEach(function(e){t=f.update(e.get("path").toJS(),e.get("content"),t)}),t.asImmutable()})},E=t.sort=function(e){return e=e.update("tree",f.sort)};t.toJson=a.make(function(e){return e=(e=e.update("tree",f.toJson)).update("content_queue",function(e){return e.map(h)}),JSON.stringify(e.toJS())}),t.fromJson=function(e){var t=new g(JSON.parse(e));return t=(t=(t=t.update("content_queue",function(e){return(0,i.List)(e).map(m)})).update("tree",f.fromJson)).update("parent_path",i.List)},t.toStrList2=a.make(function(e){return f.toStrList2(e.get("tree"))}),t.setParentPath=function(e,t){return t.set("parent_path",(0,i.List)(e))},t.fromLegacyCsv=function(e){var t,n=(t=4,y().set("version",t));e.split("\n").filter(function(e){return""!==e}).map(function(e){return e.match(/(".*?")|([^,"\s]*)/g).filter(function(e){return""!==e}).map(function(e){return e.replace(/"/g,"")})}).forEach(function(e){var t=o(e,2),r=t[0],i=t[1];n=_(r,u.create({size:Number(i)}),n)});return n=w(n),n=E(n)}},function(e,t){e.exports=((e,t)=>{const n=e.assert,r=e.Assertion;function o(e,t,n=!1){return s(e)?i(e,t,n):a(e,t,n)}function i(e,t,n=!1){const r={},o=Object.keys(e),c=!!n;for(let n=0;n<o.length;n++){const l=o[n],f=e[l],d=-1===t.indexOf(l);c&&d&&s(f)?r[l]=i(f,t,!0):c&&d&&u(f)?r[l]=a(f,t,!0):d&&(r[l]=f)}return r}function a(e,t,n=!1){const r=[];let o={};if(!e.length)return r;for(let c=0;c<e.length;c++)o=s(e[c])?i(e[c],t,n):u(e[c])?a(e[c],t,n):e[c],r.push(o);return r}function u(e){return Array.isArray(e)}function s(e){return e===Object(e)&&"[object Array]"!==Object.prototype.toString.call(e)}function c(e){return function(n){const r=t.flag(this,"excludingProps");t.flag(this,"excluding")?n=o(n,r):t.flag(this,"excludingEvery")&&(n=o(n,r,!0)),e.apply(this,arguments)}}t.addMethod(n,"deepEqualExcluding",function(e,t,n,o){new r(e,o).excluding(n).to.deep.equal(t)}),t.addMethod(n,"deepEqualExcludingEvery",function(e,t,n,o){new r(e,o).excludingEvery(n).to.deep.equal(t)}),r.addMethod("excluding",function(e){t.expectTypes(this,["object","array"]);const n=this._obj;if(!e)return this;if("string"==typeof e&&(e=[e]),!u(e))throw new Error("Excluding params should be either a string or an array");this._obj=o(n,e),t.flag(this,"excluding",!0),t.flag(this,"excludingProps",e)}),r.addMethod("excludingEvery",function(e){t.expectTypes(this,["object","array"]);const n=this._obj;if(!e)return this;if("string"==typeof e&&(e=[e]),!u(e))throw new Error("Excluding params should be either a string or an array");this._obj=o(n,e,!0),t.flag(this,"excludingEvery",!0),t.flag(this,"excludingProps",e)}),r.overwriteMethod("eq",c),r.overwriteMethod("equal",c),r.overwriteMethod("equals",c)})},function(e,t){
  /*!
   * chai
   * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t){
  /*!
     * Chai dependencies.
     */
  var n=e.Assertion,r=t.flag,o=e.assert=function(t,r){new n(null,null,e.assert,!0).assert(t,r,"[ negation message unavailable ]")};
  /*!
     * Module export.
     */o.fail=function(t,n,r,i){throw r=r||"assert.fail()",new e.AssertionError(r,{actual:t,expected:n,operator:i},o.fail)},o.isOk=function(e,t){new n(e,t,o.isOk,!0).is.ok},o.isNotOk=function(e,t){new n(e,t,o.isNotOk,!0).is.not.ok},o.equal=function(e,t,i){var a=new n(e,i,o.equal,!0);a.assert(t==r(a,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},o.notEqual=function(e,t,i){var a=new n(e,i,o.notEqual,!0);a.assert(t!=r(a,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},o.strictEqual=function(e,t,r){new n(e,r,o.strictEqual,!0).to.equal(t)},o.notStrictEqual=function(e,t,r){new n(e,r,o.notStrictEqual,!0).to.not.equal(t)},o.deepEqual=o.deepStrictEqual=function(e,t,r){new n(e,r,o.deepEqual,!0).to.eql(t)},o.notDeepEqual=function(e,t,r){new n(e,r,o.notDeepEqual,!0).to.not.eql(t)},o.isAbove=function(e,t,r){new n(e,r,o.isAbove,!0).to.be.above(t)},o.isAtLeast=function(e,t,r){new n(e,r,o.isAtLeast,!0).to.be.least(t)},o.isBelow=function(e,t,r){new n(e,r,o.isBelow,!0).to.be.below(t)},o.isAtMost=function(e,t,r){new n(e,r,o.isAtMost,!0).to.be.most(t)},o.isTrue=function(e,t){new n(e,t,o.isTrue,!0).is.true},o.isNotTrue=function(e,t){new n(e,t,o.isNotTrue,!0).to.not.equal(!0)},o.isFalse=function(e,t){new n(e,t,o.isFalse,!0).is.false},o.isNotFalse=function(e,t){new n(e,t,o.isNotFalse,!0).to.not.equal(!1)},o.isNull=function(e,t){new n(e,t,o.isNull,!0).to.equal(null)},o.isNotNull=function(e,t){new n(e,t,o.isNotNull,!0).to.not.equal(null)},o.isNaN=function(e,t){new n(e,t,o.isNaN,!0).to.be.NaN},o.isNotNaN=function(e,t){new n(e,t,o.isNotNaN,!0).not.to.be.NaN},o.exists=function(e,t){new n(e,t,o.exists,!0).to.exist},o.notExists=function(e,t){new n(e,t,o.notExists,!0).to.not.exist},o.isUndefined=function(e,t){new n(e,t,o.isUndefined,!0).to.equal(void 0)},o.isDefined=function(e,t){new n(e,t,o.isDefined,!0).to.not.equal(void 0)},o.isFunction=function(e,t){new n(e,t,o.isFunction,!0).to.be.a("function")},o.isNotFunction=function(e,t){new n(e,t,o.isNotFunction,!0).to.not.be.a("function")},o.isObject=function(e,t){new n(e,t,o.isObject,!0).to.be.a("object")},o.isNotObject=function(e,t){new n(e,t,o.isNotObject,!0).to.not.be.a("object")},o.isArray=function(e,t){new n(e,t,o.isArray,!0).to.be.an("array")},o.isNotArray=function(e,t){new n(e,t,o.isNotArray,!0).to.not.be.an("array")},o.isString=function(e,t){new n(e,t,o.isString,!0).to.be.a("string")},o.isNotString=function(e,t){new n(e,t,o.isNotString,!0).to.not.be.a("string")},o.isNumber=function(e,t){new n(e,t,o.isNumber,!0).to.be.a("number")},o.isNotNumber=function(e,t){new n(e,t,o.isNotNumber,!0).to.not.be.a("number")},o.isFinite=function(e,t){new n(e,t,o.isFinite,!0).to.be.finite},o.isBoolean=function(e,t){new n(e,t,o.isBoolean,!0).to.be.a("boolean")},o.isNotBoolean=function(e,t){new n(e,t,o.isNotBoolean,!0).to.not.be.a("boolean")},o.typeOf=function(e,t,r){new n(e,r,o.typeOf,!0).to.be.a(t)},o.notTypeOf=function(e,t,r){new n(e,r,o.notTypeOf,!0).to.not.be.a(t)},o.instanceOf=function(e,t,r){new n(e,r,o.instanceOf,!0).to.be.instanceOf(t)},o.notInstanceOf=function(e,t,r){new n(e,r,o.notInstanceOf,!0).to.not.be.instanceOf(t)},o.include=function(e,t,r){new n(e,r,o.include,!0).include(t)},o.notInclude=function(e,t,r){new n(e,r,o.notInclude,!0).not.include(t)},o.deepInclude=function(e,t,r){new n(e,r,o.deepInclude,!0).deep.include(t)},o.notDeepInclude=function(e,t,r){new n(e,r,o.notDeepInclude,!0).not.deep.include(t)},o.nestedInclude=function(e,t,r){new n(e,r,o.nestedInclude,!0).nested.include(t)},o.notNestedInclude=function(e,t,r){new n(e,r,o.notNestedInclude,!0).not.nested.include(t)},o.deepNestedInclude=function(e,t,r){new n(e,r,o.deepNestedInclude,!0).deep.nested.include(t)},o.notDeepNestedInclude=function(e,t,r){new n(e,r,o.notDeepNestedInclude,!0).not.deep.nested.include(t)},o.ownInclude=function(e,t,r){new n(e,r,o.ownInclude,!0).own.include(t)},o.notOwnInclude=function(e,t,r){new n(e,r,o.notOwnInclude,!0).not.own.include(t)},o.deepOwnInclude=function(e,t,r){new n(e,r,o.deepOwnInclude,!0).deep.own.include(t)},o.notDeepOwnInclude=function(e,t,r){new n(e,r,o.notDeepOwnInclude,!0).not.deep.own.include(t)},o.match=function(e,t,r){new n(e,r,o.match,!0).to.match(t)},o.notMatch=function(e,t,r){new n(e,r,o.notMatch,!0).to.not.match(t)},o.property=function(e,t,r){new n(e,r,o.property,!0).to.have.property(t)},o.notProperty=function(e,t,r){new n(e,r,o.notProperty,!0).to.not.have.property(t)},o.propertyVal=function(e,t,r,i){new n(e,i,o.propertyVal,!0).to.have.property(t,r)},o.notPropertyVal=function(e,t,r,i){new n(e,i,o.notPropertyVal,!0).to.not.have.property(t,r)},o.deepPropertyVal=function(e,t,r,i){new n(e,i,o.deepPropertyVal,!0).to.have.deep.property(t,r)},o.notDeepPropertyVal=function(e,t,r,i){new n(e,i,o.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)},o.ownProperty=function(e,t,r){new n(e,r,o.ownProperty,!0).to.have.own.property(t)},o.notOwnProperty=function(e,t,r){new n(e,r,o.notOwnProperty,!0).to.not.have.own.property(t)},o.ownPropertyVal=function(e,t,r,i){new n(e,i,o.ownPropertyVal,!0).to.have.own.property(t,r)},o.notOwnPropertyVal=function(e,t,r,i){new n(e,i,o.notOwnPropertyVal,!0).to.not.have.own.property(t,r)},o.deepOwnPropertyVal=function(e,t,r,i){new n(e,i,o.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)},o.notDeepOwnPropertyVal=function(e,t,r,i){new n(e,i,o.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)},o.nestedProperty=function(e,t,r){new n(e,r,o.nestedProperty,!0).to.have.nested.property(t)},o.notNestedProperty=function(e,t,r){new n(e,r,o.notNestedProperty,!0).to.not.have.nested.property(t)},o.nestedPropertyVal=function(e,t,r,i){new n(e,i,o.nestedPropertyVal,!0).to.have.nested.property(t,r)},o.notNestedPropertyVal=function(e,t,r,i){new n(e,i,o.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)},o.deepNestedPropertyVal=function(e,t,r,i){new n(e,i,o.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)},o.notDeepNestedPropertyVal=function(e,t,r,i){new n(e,i,o.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)},o.lengthOf=function(e,t,r){new n(e,r,o.lengthOf,!0).to.have.lengthOf(t)},o.hasAnyKeys=function(e,t,r){new n(e,r,o.hasAnyKeys,!0).to.have.any.keys(t)},o.hasAllKeys=function(e,t,r){new n(e,r,o.hasAllKeys,!0).to.have.all.keys(t)},o.containsAllKeys=function(e,t,r){new n(e,r,o.containsAllKeys,!0).to.contain.all.keys(t)},o.doesNotHaveAnyKeys=function(e,t,r){new n(e,r,o.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},o.doesNotHaveAllKeys=function(e,t,r){new n(e,r,o.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},o.hasAnyDeepKeys=function(e,t,r){new n(e,r,o.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},o.hasAllDeepKeys=function(e,t,r){new n(e,r,o.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},o.containsAllDeepKeys=function(e,t,r){new n(e,r,o.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},o.doesNotHaveAnyDeepKeys=function(e,t,r){new n(e,r,o.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},o.doesNotHaveAllDeepKeys=function(e,t,r){new n(e,r,o.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},o.throws=function(e,t,i,a){("string"==typeof t||t instanceof RegExp)&&(i=t,t=null);var u=new n(e,a,o.throws,!0).to.throw(t,i);return r(u,"object")},o.doesNotThrow=function(e,t,r,i){("string"==typeof t||t instanceof RegExp)&&(r=t,t=null),new n(e,i,o.doesNotThrow,!0).to.not.throw(t,r)},o.operator=function(i,a,u,s){var c;switch(a){case"==":c=i==u;break;case"===":c=i===u;break;case">":c=i>u;break;case">=":c=i>=u;break;case"<":c=i<u;break;case"<=":c=i<=u;break;case"!=":c=i!=u;break;case"!==":c=i!==u;break;default:throw s=s?s+": ":s,new e.AssertionError(s+'Invalid operator "'+a+'"',void 0,o.operator)}var l=new n(c,s,o.operator,!0);l.assert(!0===r(l,"object"),"expected "+t.inspect(i)+" to be "+a+" "+t.inspect(u),"expected "+t.inspect(i)+" to not be "+a+" "+t.inspect(u))},o.closeTo=function(e,t,r,i){new n(e,i,o.closeTo,!0).to.be.closeTo(t,r)},o.approximately=function(e,t,r,i){new n(e,i,o.approximately,!0).to.be.approximately(t,r)},o.sameMembers=function(e,t,r){new n(e,r,o.sameMembers,!0).to.have.same.members(t)},o.notSameMembers=function(e,t,r){new n(e,r,o.notSameMembers,!0).to.not.have.same.members(t)},o.sameDeepMembers=function(e,t,r){new n(e,r,o.sameDeepMembers,!0).to.have.same.deep.members(t)},o.notSameDeepMembers=function(e,t,r){new n(e,r,o.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},o.sameOrderedMembers=function(e,t,r){new n(e,r,o.sameOrderedMembers,!0).to.have.same.ordered.members(t)},o.notSameOrderedMembers=function(e,t,r){new n(e,r,o.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},o.sameDeepOrderedMembers=function(e,t,r){new n(e,r,o.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},o.notSameDeepOrderedMembers=function(e,t,r){new n(e,r,o.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},o.includeMembers=function(e,t,r){new n(e,r,o.includeMembers,!0).to.include.members(t)},o.notIncludeMembers=function(e,t,r){new n(e,r,o.notIncludeMembers,!0).to.not.include.members(t)},o.includeDeepMembers=function(e,t,r){new n(e,r,o.includeDeepMembers,!0).to.include.deep.members(t)},o.notIncludeDeepMembers=function(e,t,r){new n(e,r,o.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},o.includeOrderedMembers=function(e,t,r){new n(e,r,o.includeOrderedMembers,!0).to.include.ordered.members(t)},o.notIncludeOrderedMembers=function(e,t,r){new n(e,r,o.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},o.includeDeepOrderedMembers=function(e,t,r){new n(e,r,o.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},o.notIncludeDeepOrderedMembers=function(e,t,r){new n(e,r,o.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},o.oneOf=function(e,t,r){new n(e,r,o.oneOf,!0).to.be.oneOf(t)},o.changes=function(e,t,r,i){3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.changes,!0).to.change(t,r)},o.changesBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var u=i;i=r,a=u}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.changesBy,!0).to.change(t,r).by(i)},o.doesNotChange=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.doesNotChange,!0).to.not.change(t,r)},o.changesButNotBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var u=i;i=r,a=u}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.changesButNotBy,!0).to.change(t,r).but.not.by(i)},o.increases=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.increases,!0).to.increase(t,r)},o.increasesBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var u=i;i=r,a=u}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.increasesBy,!0).to.increase(t,r).by(i)},o.doesNotIncrease=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.doesNotIncrease,!0).to.not.increase(t,r)},o.increasesButNotBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var u=i;i=r,a=u}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.increasesButNotBy,!0).to.increase(t,r).but.not.by(i)},o.decreases=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.decreases,!0).to.decrease(t,r)},o.decreasesBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var u=i;i=r,a=u}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.decreasesBy,!0).to.decrease(t,r).by(i)},o.doesNotDecrease=function(e,t,r,i){return 3===arguments.length&&"function"==typeof t&&(i=r,r=null),new n(e,i,o.doesNotDecrease,!0).to.not.decrease(t,r)},o.doesNotDecreaseBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var u=i;i=r,a=u}else 3===arguments.length&&(i=r,r=null);return new n(e,a,o.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(i)},o.decreasesButNotBy=function(e,t,r,i,a){if(4===arguments.length&&"function"==typeof t){var u=i;i=r,a=u}else 3===arguments.length&&(i=r,r=null);new n(e,a,o.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(i)}
  /*!
     * ### .ifError(object)
     *
     * Asserts if value is not a false value, and throws if it is a true value.
     * This is added to allow for chai to be a drop-in replacement for Node's
     * assert class.
     *
     *     var err = new Error('I am a custom error');
     *     assert.ifError(err); // Rethrows err!
     *
     * @name ifError
     * @param {Object} object
     * @namespace Assert
     * @api public
     */,o.ifError=function(e){if(e)throw e},o.isExtensible=function(e,t){new n(e,t,o.isExtensible,!0).to.be.extensible},o.isNotExtensible=function(e,t){new n(e,t,o.isNotExtensible,!0).to.not.be.extensible},o.isSealed=function(e,t){new n(e,t,o.isSealed,!0).to.be.sealed},o.isNotSealed=function(e,t){new n(e,t,o.isNotSealed,!0).to.not.be.sealed},o.isFrozen=function(e,t){new n(e,t,o.isFrozen,!0).to.be.frozen},o.isNotFrozen=function(e,t){new n(e,t,o.isNotFrozen,!0).to.not.be.frozen},o.isEmpty=function(e,t){new n(e,t,o.isEmpty,!0).to.be.empty},o.isNotEmpty=function(e,t){new n(e,t,o.isNotEmpty,!0).to.not.be.empty},
  /*!
     * Aliases.
     */
  function e(t,n){return o[n]=o[t],e}("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")}},function(e,t){
  /*!
   * chai
   * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t){var n=e.Assertion;function r(){Object.defineProperty(Object.prototype,"should",{set:function(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})},get:function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol?new n(this.valueOf(),null,e):new n(this,null,e)},configurable:!0});var t={fail:function(n,r,o,i){throw o=o||"should.fail()",new e.AssertionError(o,{actual:n,expected:r,operator:i},t.fail)},equal:function(e,t,r){new n(e,r).to.equal(t)},Throw:function(e,t,r,o){new n(e,o).to.Throw(t,r)},exist:function(e,t){new n(e,t).to.exist},not:{}};return t.not.equal=function(e,t,r){new n(e,r).to.not.equal(t)},t.not.Throw=function(e,t,r,o){new n(e,o).to.not.Throw(t,r)},t.not.exist=function(e,t){new n(e,t).to.not.exist},t.throw=t.Throw,t.not.throw=t.not.Throw,t}e.should=r,e.Should=r}},function(e,t){
  /*!
   * chai
   * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t){e.expect=function(t,n){return new e.Assertion(t,n)},e.expect.fail=function(t,n,r,o){throw r=r||"expect.fail()",new e.AssertionError(r,{actual:t,expected:n,operator:o},e.expect.fail)}}},function(e,t){
  /*!
   * chai
   * http://chaijs.com
   * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e,t){var n=e.Assertion,r=e.AssertionError,o=t.flag;function i(e,n){n&&o(this,"message",n),e=e.toLowerCase();var r=o(this,"object"),i=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";this.assert(e===t.type(r).toLowerCase(),"expected #{this} to be "+i+e,"expected #{this} not to be "+i+e)}function a(e,n){return t.isNaN(e)&&t.isNaN(n)||e===n}function u(){o(this,"contains",!0)}function s(e,i){i&&o(this,"message",i);var u=o(this,"object"),s=t.type(u).toLowerCase(),c=o(this,"message"),l=o(this,"negate"),f=o(this,"ssfi"),d=o(this,"deep"),p=d?"deep ":"";c=c?c+": ":"";var h=!1;switch(s){case"string":h=-1!==u.indexOf(e);break;case"weakset":if(d)throw new r(c+"unable to use .deep.include with WeakSet",void 0,f);h=u.has(e);break;case"map":var m=d?t.eql:a;u.forEach(function(t){h=h||m(t,e)});break;case"set":d?u.forEach(function(n){h=h||t.eql(n,e)}):h=u.has(e);break;case"array":h=d?u.some(function(n){return t.eql(n,e)}):-1!==u.indexOf(e);break;default:if(e!==Object(e))throw new r(c+"object tested must be an array, a map, an object, a set, a string, or a weakset, but "+s+" given",void 0,f);var g=Object.keys(e),y=null,v=0;if(g.forEach(function(i){var a=new n(u);if(t.transferFlags(this,a,!0),o(a,"lockSsfi",!0),l&&1!==g.length)try{a.property(i,e[i])}catch(e){if(!t.checkError.compatibleConstructor(e,r))throw e;null===y&&(y=e),v++}else a.property(i,e[i])},this),l&&g.length>1&&v===g.length)throw y;return}this.assert(h,"expected #{this} to "+p+"include "+t.inspect(e),"expected #{this} to not "+p+"include "+t.inspect(e))}function c(){var e=o(this,"object"),n=t.type(e);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments")}function l(e,t){t&&o(this,"message",t);var n=o(this,"object");if(o(this,"deep"))return this.eql(e);this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function f(e,n){n&&o(this,"message",n),this.assert(t.eql(e,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function d(e,i){i&&o(this,"message",i);var a=o(this,"object"),u=o(this,"doLength"),s=o(this,"message"),c=s?s+": ":"",l=o(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&new n(a,s,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{errorMessage=c+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else errorMessage=c+"the argument to above must be a number";else errorMessage=c+"the argument to above must be a date";if(p)throw new r(errorMessage,void 0,l);if(u){var h=a.length;this.assert(h>e,"expected #{this} to have a length above #{exp} but got #{act}","expected #{this} to not have a length above #{exp}",e,h)}else this.assert(a>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function p(e,i){i&&o(this,"message",i);var a=o(this,"object"),u=o(this,"doLength"),s=o(this,"message"),c=s?s+": ":"",l=o(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&new n(a,s,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{errorMessage=c+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else errorMessage=c+"the argument to least must be a number";else errorMessage=c+"the argument to least must be a date";if(p)throw new r(errorMessage,void 0,l);if(u){var h=a.length;this.assert(h>=e,"expected #{this} to have a length at least #{exp} but got #{act}","expected #{this} to have a length below #{exp}",e,h)}else this.assert(a>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function h(e,i){i&&o(this,"message",i);var a=o(this,"object"),u=o(this,"doLength"),s=o(this,"message"),c=s?s+": ":"",l=o(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&new n(a,s,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{errorMessage=c+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else errorMessage=c+"the argument to below must be a number";else errorMessage=c+"the argument to below must be a date";if(p)throw new r(errorMessage,void 0,l);if(u){var h=a.length;this.assert(h<e,"expected #{this} to have a length below #{exp} but got #{act}","expected #{this} to not have a length below #{exp}",e,h)}else this.assert(a<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}function m(e,i){i&&o(this,"message",i);var a=o(this,"object"),u=o(this,"doLength"),s=o(this,"message"),c=s?s+": ":"",l=o(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&new n(a,s,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{errorMessage=c+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else errorMessage=c+"the argument to most must be a number";else errorMessage=c+"the argument to most must be a date";if(p)throw new r(errorMessage,void 0,l);if(u){var h=a.length;this.assert(h<=e,"expected #{this} to have a length at most #{exp} but got #{act}","expected #{this} to have a length above #{exp}",e,h)}else this.assert(a<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}function g(e,n){n&&o(this,"message",n);var i=o(this,"object"),a=o(this,"ssfi"),u=o(this,"message");try{var s=i instanceof e}catch(n){if(n instanceof TypeError)throw new r((u=u?u+": ":"")+"The instanceof assertion needs a constructor but "+t.type(e)+" was given.",void 0,a);throw n}var c=t.getName(e);null===c&&(c="an unnamed constructor"),this.assert(s,"expected #{this} to be an instance of "+c,"expected #{this} to not be an instance of "+c)}function y(e,n,i){i&&o(this,"message",i);var a=o(this,"nested"),u=o(this,"own"),s=o(this,"message"),c=o(this,"object"),l=o(this,"ssfi");if(a&&u)throw new r((s=s?s+": ":"")+'The "nested" and "own" flags cannot be combined.',void 0,l);if(null===c||void 0===c)throw new r((s=s?s+": ":"")+"Target cannot be null or undefined.",void 0,l);var f,d=o(this,"deep"),p=o(this,"negate"),h=a?t.getPathInfo(c,e):null,m=a?h.value:c[e],g="";d&&(g+="deep "),u&&(g+="own "),a&&(g+="nested "),g+="property ",f=u?Object.prototype.hasOwnProperty.call(c,e):a?h.exists:t.hasProperty(c,e),p&&1!==arguments.length||this.assert(f,"expected #{this} to have "+g+t.inspect(e),"expected #{this} to not have "+g+t.inspect(e)),arguments.length>1&&this.assert(f&&(d?t.eql(n,m):n===m),"expected #{this} to have "+g+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+t.inspect(e)+" of #{act}",n,m),o(this,"object",m)}function v(e,t,n){o(this,"own",!0),y.apply(this,arguments)}function b(e,n,r){"string"==typeof n&&(r=n,n=null),r&&o(this,"message",r);var i=o(this,"object"),a=Object.getOwnPropertyDescriptor(Object(i),e);a&&n?this.assert(t.eql(n,a),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to match "+t.inspect(n)+", got "+t.inspect(a),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to not match "+t.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+t.inspect(e),"expected #{this} to not have an own property descriptor for "+t.inspect(e)),o(this,"object",a)}function _(){o(this,"doLength",!0)}function w(e,t){t&&o(this,"message",t);var r=o(this,"object"),i=o(this,"message"),a=o(this,"ssfi");new n(r,i,a,!0).to.have.property("length");var u=r.length;this.assert(u==e,"expected #{this} to have a length of #{exp} but got #{act}","expected #{this} to not have a length of #{act}",e,u)}function E(e,t){t&&o(this,"message",t);var n=o(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}function O(e){var n,i=o(this,"object"),a=t.type(i),u=t.type(e),s=o(this,"ssfi"),c=o(this,"deep"),l="",f=!0,d=o(this,"message"),p=(d=d?d+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===a||"Set"===a)l=c?"deeply ":"",h=[],i.forEach(function(e,t){h.push(t)}),"Array"!==u&&(e=Array.prototype.slice.call(arguments));else{switch(h=t.getOwnEnumerableProperties(i),u){case"Array":if(arguments.length>1)throw new r(p,void 0,s);break;case"Object":if(arguments.length>1)throw new r(p,void 0,s);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return"symbol"==typeof e?e:String(e)})}if(!e.length)throw new r(d+"keys required",void 0,s);var h,m=e.length,g=o(this,"any"),y=o(this,"all"),v=e;if(g||y||(y=!0),g&&(f=v.some(function(e){return h.some(function(n){return c?t.eql(e,n):e===n})})),y&&(f=v.every(function(e){return h.some(function(n){return c?t.eql(e,n):e===n})}),o(this,"contains")||(f=f&&e.length==h.length)),m>1){var b=(e=e.map(function(e){return t.inspect(e)})).pop();y&&(n=e.join(", ")+", and "+b),g&&(n=e.join(", ")+", or "+b)}else n=t.inspect(e[0]);n=(m>1?"keys ":"key ")+n,n=(o(this,"contains")?"contain ":"have ")+n,this.assert(f,"expected #{this} to "+l+n,"expected #{this} to not "+l+n,v.slice(0).sort(t.compareByInspect),h.sort(t.compareByInspect),!0)}function x(e,r,i){i&&o(this,"message",i);var a,u=o(this,"object"),s=o(this,"ssfi"),c=o(this,"message"),l=o(this,"negate")||!1;new n(u,c,s,!0).is.a("function"),(e instanceof RegExp||"string"==typeof e)&&(r=e,e=null);try{u()}catch(e){a=e}var f=void 0===e&&void 0===r,d=Boolean(e&&r),p=!1,h=!1;if(f||!f&&!l){var m="an error";e instanceof Error?m="#{exp}":e&&(m=t.checkError.getConstructorName(e)),this.assert(a,"expected #{this} to throw "+m,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&t.checkError.getConstructorName(a))}if(e&&a){if(e instanceof Error)t.checkError.compatibleInstance(a,e)===l&&(d&&l?p=!0:this.assert(l,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!l?" but #{act} was thrown":""),e.toString(),a.toString()));t.checkError.compatibleConstructor(a,e)===l&&(d&&l?p=!0:this.assert(l,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),a instanceof Error?a.toString():a&&t.checkError.getConstructorName(a)))}if(a&&void 0!==r&&null!==r){var g="including";r instanceof RegExp&&(g="matching"),t.checkError.compatibleMessage(a,r)===l&&(d&&l?h=!0:this.assert(l,"expected #{this} to throw error "+g+" #{exp} but got #{act}","expected #{this} to throw error not "+g+" #{exp}",r,t.checkError.getMessage(a)))}p&&h&&this.assert(l,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),a instanceof Error?a.toString():a&&t.checkError.getConstructorName(a)),o(this,"object",a)}function S(e,n){n&&o(this,"message",n);var r=o(this,"object"),i=o(this,"itself"),a="function"!=typeof r||i?r[e]:r.prototype[e];this.assert("function"==typeof a,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}function k(e,n){n&&o(this,"message",n);var r=e(o(this,"object"));this.assert(r,"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),!o(this,"negate"),r)}function j(e,t,i){i&&o(this,"message",i);var a=o(this,"object"),u=o(this,"message"),s=o(this,"ssfi");if(new n(a,u,s,!0).is.a("number"),"number"!=typeof e||"number"!=typeof t)throw new r((u=u?u+": ":"")+"the arguments to closeTo or approximately must be numbers",void 0,s);this.assert(Math.abs(a-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}function C(e,t,r){r&&o(this,"message",r);var i,a=o(this,"object"),u=o(this,"message"),s=o(this,"ssfi");new n(a,u,s,!0).is.a("function"),t?(new n(e,u,s,!0).to.have.property(t),i=e[t]):(new n(e,u,s,!0).is.a("function"),i=e()),a();var c=void 0===t||null===t?e():e[t],l=void 0===t||null===t?i:"."+t;o(this,"deltaMsgObj",l),o(this,"initialDeltaValue",i),o(this,"finalDeltaValue",c),o(this,"deltaBehavior","change"),o(this,"realDelta",c!==i),this.assert(i!==c,"expected "+l+" to change","expected "+l+" to not change")}function M(e,t,r){r&&o(this,"message",r);var i,a=o(this,"object"),u=o(this,"message"),s=o(this,"ssfi");new n(a,u,s,!0).is.a("function"),t?(new n(e,u,s,!0).to.have.property(t),i=e[t]):(new n(e,u,s,!0).is.a("function"),i=e()),new n(i,u,s,!0).is.a("number"),a();var c=void 0===t||null===t?e():e[t],l=void 0===t||null===t?i:"."+t;o(this,"deltaMsgObj",l),o(this,"initialDeltaValue",i),o(this,"finalDeltaValue",c),o(this,"deltaBehavior","increase"),o(this,"realDelta",c-i),this.assert(c-i>0,"expected "+l+" to increase","expected "+l+" to not increase")}function P(e,t,r){r&&o(this,"message",r);var i,a=o(this,"object"),u=o(this,"message"),s=o(this,"ssfi");new n(a,u,s,!0).is.a("function"),t?(new n(e,u,s,!0).to.have.property(t),i=e[t]):(new n(e,u,s,!0).is.a("function"),i=e()),new n(i,u,s,!0).is.a("number"),a();var c=void 0===t||null===t?e():e[t],l=void 0===t||null===t?i:"."+t;o(this,"deltaMsgObj",l),o(this,"initialDeltaValue",i),o(this,"finalDeltaValue",c),o(this,"deltaBehavior","decrease"),o(this,"realDelta",i-c),this.assert(c-i<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does"].forEach(function(e){n.addProperty(e)}),n.addProperty("not",function(){o(this,"negate",!0)}),n.addProperty("deep",function(){o(this,"deep",!0)}),n.addProperty("nested",function(){o(this,"nested",!0)}),n.addProperty("own",function(){o(this,"own",!0)}),n.addProperty("ordered",function(){o(this,"ordered",!0)}),n.addProperty("any",function(){o(this,"any",!0),o(this,"all",!1)}),n.addProperty("all",function(){o(this,"all",!0),o(this,"any",!1)}),n.addChainableMethod("an",i),n.addChainableMethod("a",i),n.addChainableMethod("include",s,u),n.addChainableMethod("contain",s,u),n.addChainableMethod("contains",s,u),n.addChainableMethod("includes",s,u),n.addProperty("ok",function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),n.addProperty("true",function(){this.assert(!0===o(this,"object"),"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"))}),n.addProperty("false",function(){this.assert(!1===o(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"))}),n.addProperty("null",function(){this.assert(null===o(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}),n.addProperty("undefined",function(){this.assert(void 0===o(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}),n.addProperty("NaN",function(){this.assert(t.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")}),n.addProperty("exist",function(){var e=o(this,"object");this.assert(null!==e&&void 0!==e,"expected #{this} to exist","expected #{this} to not exist")}),n.addProperty("empty",function(){var e,n=o(this,"object"),i=o(this,"ssfi"),a=o(this,"message");switch(a=a?a+": ":"",t.type(n).toLowerCase()){case"array":case"string":e=n.length;break;case"map":case"set":e=n.size;break;case"weakmap":case"weakset":throw new r(a+".empty was passed a weak collection",void 0,i);case"function":var u=a+".empty was passed a function "+t.getName(n);throw new r(u.trim(),void 0,i);default:if(n!==Object(n))throw new r(a+".empty was passed non-string primitive "+t.inspect(n),void 0,i);e=Object.keys(n).length}this.assert(0===e,"expected #{this} to be empty","expected #{this} not to be empty")}),n.addProperty("arguments",c),n.addProperty("Arguments",c),n.addMethod("equal",l),n.addMethod("equals",l),n.addMethod("eq",l),n.addMethod("eql",f),n.addMethod("eqls",f),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",p),n.addMethod("gte",p),n.addMethod("below",h),n.addMethod("lt",h),n.addMethod("lessThan",h),n.addMethod("most",m),n.addMethod("lte",m),n.addMethod("within",function(e,i,a){a&&o(this,"message",a);var u=o(this,"object"),s=o(this,"doLength"),c=o(this,"message"),l=c?c+": ":"",f=o(this,"ssfi"),d=t.type(u).toLowerCase(),p=t.type(e).toLowerCase(),h=t.type(i).toLowerCase(),m=!0,g="date"===p&&"date"===h?e.toUTCString()+".."+i.toUTCString():e+".."+i;if(s&&new n(u,c,f,!0).to.have.property("length"),s||"date"!==d||"date"===p&&"date"===h)if("number"===p&&"number"===h||!s&&"number"!==d)if(s||"date"===d||"number"===d)m=!1;else{errorMessage=l+"expected "+("string"===d?"'"+u+"'":u)+" to be a number or a date"}else errorMessage=l+"the arguments to within must be numbers";else errorMessage=l+"the arguments to within must be dates";if(m)throw new r(errorMessage,void 0,f);if(s){var y=u.length;this.assert(y>=e&&y<=i,"expected #{this} to have a length within "+g,"expected #{this} to not have a length within "+g)}else this.assert(u>=e&&u<=i,"expected #{this} to be within "+g,"expected #{this} to not be within "+g)}),n.addMethod("instanceof",g),n.addMethod("instanceOf",g),n.addMethod("property",y),n.addMethod("ownProperty",v),n.addMethod("haveOwnProperty",v),n.addMethod("ownPropertyDescriptor",b),n.addMethod("haveOwnPropertyDescriptor",b),n.addChainableMethod("length",w,_),n.addChainableMethod("lengthOf",w,_),n.addMethod("match",E),n.addMethod("matches",E),n.addMethod("string",function(e,r){r&&o(this,"message",r);var i=o(this,"object"),a=o(this,"message"),u=o(this,"ssfi");new n(i,a,u,!0).is.a("string"),this.assert(~i.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))}),n.addMethod("keys",O),n.addMethod("key",O),n.addMethod("throw",x),n.addMethod("throws",x),n.addMethod("Throw",x),n.addMethod("respondTo",S),n.addMethod("respondsTo",S),n.addProperty("itself",function(){o(this,"itself",!0)}),n.addMethod("satisfy",k),n.addMethod("satisfies",k),n.addMethod("closeTo",j),n.addMethod("approximately",j),n.addMethod("members",function(e,r){r&&o(this,"message",r);var i=o(this,"object"),a=o(this,"message"),u=o(this,"ssfi");new n(i,a,u,!0).to.be.an("array"),new n(e,a,u,!0).to.be.an("array");var s,c,l,f=o(this,"contains"),d=o(this,"ordered");f?(c="expected #{this} to be "+(s=d?"an ordered superset":"a superset")+" of #{exp}",l="expected #{this} to not be "+s+" of #{exp}"):(c="expected #{this} to have the same "+(s=d?"ordered members":"members")+" as #{exp}",l="expected #{this} to not have the same "+s+" as #{exp}");var p=o(this,"deep")?t.eql:void 0;this.assert(function(e,t,n,r,o){if(!r){if(e.length!==t.length)return!1;t=t.slice()}return e.every(function(e,i){if(o)return n?n(e,t[i]):e===t[i];if(!n){var a=t.indexOf(e);return-1!==a&&(r||t.splice(a,1),!0)}return t.some(function(o,i){return!!n(e,o)&&(r||t.splice(i,1),!0)})})}(e,i,p,f,d),c,l,e,i,!0)}),n.addMethod("oneOf",function(e,t){t&&o(this,"message",t);var r=o(this,"object"),i=o(this,"message"),a=o(this,"ssfi");new n(e,i,a,!0).to.be.an("array"),this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}),n.addMethod("change",C),n.addMethod("changes",C),n.addMethod("increase",M),n.addMethod("increases",M),n.addMethod("decrease",P),n.addMethod("decreases",P),n.addMethod("by",function(e,t){t&&o(this,"message",t);var n,r=o(this,"deltaMsgObj"),i=o(this,"initialDeltaValue"),a=o(this,"finalDeltaValue"),u=o(this,"deltaBehavior"),s=o(this,"realDelta");n="change"===u?Math.abs(a-i)===Math.abs(e):s===Math.abs(e),this.assert(n,"expected "+r+" to "+u+" by "+e,"expected "+r+" to not "+u+" by "+e)}),n.addProperty("extensible",function(){var e=o(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")}),n.addProperty("sealed",function(){var e=o(this,"object"),t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")}),n.addProperty("frozen",function(){var e=o(this,"object"),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")}),n.addProperty("finite",function(e){var t=o(this,"object");this.assert("number"==typeof t&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})}},function(e,t,n){
  /*!
   * chai
   * http://chaijs.com
   * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=n(12);e.exports=function(e,t){
  /*!
     * Module dependencies.
     */
  var n=e.AssertionError,o=t.flag;
  /*!
     * Module export.
     */
  /*!
     * Assertion Constructor
     *
     * Creates object for chaining.
     *
     * `Assertion` objects contain metadata in the form of flags. Three flags can
     * be assigned during instantiation by passing arguments to this constructor:
     *
     * - `object`: This flag contains the target of the assertion. For example, in
     *   the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
     *   contain `numKittens` so that the `equal` assertion can reference it when
     *   needed.
     *
     * - `message`: This flag contains an optional custom error message to be
     *   prepended to the error message that's generated by the assertion when it
     *   fails.
     *
     * - `ssfi`: This flag stands for "start stack function indicator". It
     *   contains a function reference that serves as the starting point for
     *   removing frames from the stack trace of the error that's created by the
     *   assertion when it fails. The goal is to provide a cleaner stack trace to
     *   end users by removing Chai's internal functions. Note that it only works
     *   in environments that support `Error.captureStackTrace`, and only when
     *   `Chai.config.includeStack` hasn't been set to `false`.
     *
     * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
     *   should retain its current value, even as assertions are chained off of
     *   this object. This is usually set to `true` when creating a new assertion
     *   from within another assertion. It's also temporarily set to `true` before
     *   an overwritten assertion gets called by the overwriting assertion.
     *
     * @param {Mixed} obj target of the assertion
     * @param {String} msg (optional) custom error message
     * @param {Function} ssfi (optional) starting point for removing stack frames
     * @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
     * @api private
     */
  function i(e,n,r,a){return o(this,"ssfi",r||i),o(this,"lockSsfi",a),o(this,"object",e),o(this,"message",n),t.proxify(this)}e.Assertion=i,Object.defineProperty(i,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),r.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),r.includeStack=e}}),Object.defineProperty(i,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),r.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),r.showDiff=e}}),i.addProperty=function(e,n){t.addProperty(this.prototype,e,n)},i.addMethod=function(e,n){t.addMethod(this.prototype,e,n)},i.addChainableMethod=function(e,n,r){t.addChainableMethod(this.prototype,e,n,r)},i.overwriteProperty=function(e,n){t.overwriteProperty(this.prototype,e,n)},i.overwriteMethod=function(e,n){t.overwriteMethod(this.prototype,e,n)},i.overwriteChainableMethod=function(e,n,r){t.overwriteChainableMethod(this.prototype,e,n,r)},i.prototype.assert=function(e,i,a,u,s,c){var l=t.test(this,arguments);if(!1!==c&&(c=!0),void 0===u&&void 0===s&&(c=!1),!0!==r.showDiff&&(c=!1),!l){i=t.getMessage(this,arguments);var f=t.getActual(this,arguments);throw new n(i,{actual:f,expected:u,showDiff:c},r.includeStack?this.assert:o(this,"ssfi"))}},
  /*!
     * ### ._obj
     *
     * Quick reference to stored `actual` value for plugin developers.
     *
     * @api private
     */
  Object.defineProperty(i.prototype,"_obj",{get:function(){return o(this,"object")},set:function(e){o(this,"object",e)}})}},function(e,t){e.exports=Number.isNaN||
  /*!
   * Chai - isNaN utility
   * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
   * MIT Licensed
   */
  function(e){return e!=e}},function(e,t,n){"use strict";var r=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\(\/]+)/;function o(e){var t="";if(void 0===e.name){var n=String(e).match(r);n&&(t=n[1])}else t=e.name;return t}e.exports={compatibleInstance:function(e,t){return t instanceof Error&&e===t},compatibleConstructor:function(e,t){return t instanceof Error?e.constructor===t.constructor||e instanceof t.constructor:(t.prototype instanceof Error||t===Error)&&(e.constructor===t||e instanceof t)},compatibleMessage:function(e,t){var n="string"==typeof e?e:e.message;return t instanceof RegExp?t.test(n):"string"==typeof t&&-1!==n.indexOf(t)},getMessage:function(e){var t="";return e&&e.message?t=e.message:"string"==typeof e&&(t=e),t},getConstructorName:function(e){var t=e;return e instanceof Error?t=o(e.constructor):"function"==typeof e&&(t=o(e).trim()||o(new e)),t}}},function(e,t,n){
  /*!
   * Chai - getOwnEnumerableProperties utility
   * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  /*!
   * Module dependancies
   */
  var r=n(59);e.exports=function(e){return Object.keys(e).concat(r(e))}},function(e,t,n){
  /*!
   * Chai - compareByInspect utility
   * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  /*!
   * Module dependancies
   */
  var r=n(30);e.exports=function(e,t){return r(e)<r(t)?-1:1}},function(e,t,n){
  /*!
   * Chai - overwriteChainableMethod utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=n(13),o=n(11);e.exports=function(e,t,n,i){var a=e.__methods[t],u=a.chainingBehavior;a.chainingBehavior=function(){var e=i(u).call(this);if(void 0!==e)return e;var t=new r.Assertion;return o(this,t),t};var s=a.method;a.method=function(){var e=n(s).apply(this,arguments);if(void 0!==e)return e;var t=new r.Assertion;return o(this,t),t}}},function(e,t,n){
  /*!
   * Chai - addChainingMethod utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  /*!
   * Module dependencies
   */
  var r=n(28),o=n(13),i=n(8),a=n(27),u=n(11),s="function"==typeof Object.setPrototypeOf,c=function(){},l=Object.getOwnPropertyNames(c).filter(function(e){var t=Object.getOwnPropertyDescriptor(c,e);return"object"!=typeof t||!t.configurable}),f=Function.prototype.call,d=Function.prototype.apply;e.exports=function(e,t,n,c){"function"!=typeof c&&(c=function(){});var p={method:n,chainingBehavior:c};e.__methods||(e.__methods={}),e.__methods[t]=p,Object.defineProperty(e,t,{get:function(){p.chainingBehavior.call(this);var n=function(){i(this,"lockSsfi")||i(this,"ssfi",n);var e=p.method.apply(this,arguments);if(void 0!==e)return e;var t=new o.Assertion;return u(this,t),t};if(r(n,t,!0),s){var c=Object.create(this);c.call=f,c.apply=d,Object.setPrototypeOf(n,c)}else{Object.getOwnPropertyNames(e).forEach(function(t){if(-1===l.indexOf(t)){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)}})}return u(this,n),a(n)},configurable:!0})}},function(e,t,n){
  /*!
   * Chai - overwriteMethod utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=n(28),o=n(13),i=n(8),a=n(27),u=n(11);e.exports=function(e,t,n){var s=e[t],c=function(){throw new Error(t+" is not a function")};s&&"function"==typeof s&&(c=s);var l=function(){i(this,"lockSsfi")||i(this,"ssfi",l);var e=i(this,"lockSsfi");i(this,"lockSsfi",!0);var t=n(c).apply(this,arguments);if(i(this,"lockSsfi",e),void 0!==t)return t;var r=new o.Assertion;return u(this,r),r};r(l,t,!1),e[t]=a(l,t)}},function(e,t,n){
  /*!
   * Chai - overwriteProperty utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=n(13),o=n(8),i=n(29),a=n(11);e.exports=function(e,t,n){var u=Object.getOwnPropertyDescriptor(e,t),s=function(){};u&&"function"==typeof u.get&&(s=u.get),Object.defineProperty(e,t,{get:function e(){i()||o(this,"lockSsfi")||o(this,"ssfi",e);var t=o(this,"lockSsfi");o(this,"lockSsfi",!0);var u=n(s).call(this);if(o(this,"lockSsfi",t),void 0!==u)return u;var c=new r.Assertion;return a(this,c),c},configurable:!0})}},function(e,t,n){
  /*!
   * Chai - addMethod utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=n(28),o=n(13),i=n(8),a=n(27),u=n(11);e.exports=function(e,t,n){var s=function(){i(this,"lockSsfi")||i(this,"ssfi",s);var e=n.apply(this,arguments);if(void 0!==e)return e;var t=new o.Assertion;return u(this,t),t};r(s,t,!1),e[t]=a(s,t)}},function(e,t,n){
  /*!
   * Chai - addProperty utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=n(13),o=n(8),i=n(29),a=n(11);e.exports=function(e,t,n){n=void 0===n?function(){}:n,Object.defineProperty(e,t,{get:function e(){i()||o(this,"lockSsfi")||o(this,"ssfi",e);var t=n.call(this);if(void 0!==t)return t;var u=new r.Assertion;return a(this,u),u},configurable:!0})}},function(e,t,n){"use strict";
  /*!
   * deep-eql
   * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */var r=n(40);function o(){this._key="chai/deep-eql__"+Math.random()+Date.now()}o.prototype={get:function(e){return e[this._key]},set:function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})}};var i="function"==typeof WeakMap?WeakMap:o;
  /*!
   * Check to see if the MemoizeMap has recorded a result of the two operands
   *
   * @param {Mixed} leftHandOperand
   * @param {Mixed} rightHandOperand
   * @param {MemoizeMap} memoizeMap
   * @returns {Boolean|null} result
  */function a(e,t,n){if(!n||g(e)||g(t))return null;var r=n.get(e);if(r){var o=r.get(t);if("boolean"==typeof o)return o}return null}
  /*!
   * Set the result of the equality into the MemoizeMap
   *
   * @param {Mixed} leftHandOperand
   * @param {Mixed} rightHandOperand
   * @param {MemoizeMap} memoizeMap
   * @param {Boolean} result
  */function u(e,t,n,r){if(n&&!g(e)&&!g(t)){var o=n.get(e);o?o.set(t,r):((o=new i).set(t,r),n.set(e,o))}}
  /*!
   * Primary Export
   */function s(e,t,n){if(n&&n.comparator)return l(e,t,n);var r=c(e,t);return null!==r?r:l(e,t,n)}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!g(e)&&!g(t)&&null}
  /*!
   * The main logic of the `deepEqual` function.
   *
   * @param {Mixed} leftHandOperand
   * @param {Mixed} rightHandOperand
   * @param {Object} [options] (optional) Additional options
   * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
   * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
      complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
      references to blow the stack.
   * @return {Boolean} equal match
  */function l(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new i);var o=n&&n.comparator,l=a(e,t,n.memoize);if(null!==l)return l;var g=a(t,e,n.memoize);if(null!==g)return g;if(o){var y=o(e,t);if(!1===y||!0===y)return u(e,t,n.memoize,y),y;var v=c(e,t);if(null!==v)return v}var b=r(e);if(b!==r(t))return u(e,t,n.memoize,!1),!1;u(e,t,n.memoize,!0);var _=function(e,t,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return s(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":case"Error":return e===t;case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return d(e,t,r);case"RegExp":
  /*!
   * Compare two Regular Expressions for equality.
   *
   * @param {RegExp} leftHandOperand
   * @param {RegExp} rightHandOperand
   * @return {Boolean} result
   */
  return function(e,t){return e.toString()===t.toString()}
  /*!
   * Compare two Sets/Maps for equality. Faster than other equality functions.
   *
   * @param {Set} leftHandOperand
   * @param {Set} rightHandOperand
   * @param {Object} [options] (Optional)
   * @return {Boolean} result
   */(e,t);case"Generator":
  /*!
   * Simple equality for generator objects such as those returned by generator functions.
   *
   * @param {Iterable} leftHandOperand
   * @param {Iterable} rightHandOperand
   * @param {Object} [options] (Optional)
   * @return {Boolean} result
   */
  return function(e,t,n){return d(h(e),h(t),n)}
  /*!
   * Determine if the given object has an @@iterator function.
   *
   * @param {Object} target
   * @return {Boolean} `true` if the object has an @@iterator function.
   */(e,t,r);case"DataView":return d(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return d(new Uint8Array(e),new Uint8Array(t),r);case"Set":case"Map":return f(e,t,r);default:
  /*!
   * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
   * for each enumerable key in the object.
   *
   * @param {Mixed} leftHandOperand
   * @param {Mixed} rightHandOperand
   * @param {Object} [options] (Optional)
   * @return {Boolean} result
   */
  return function(e,t,n){var r=m(e),o=m(t);if(r.length&&r.length===o.length)return r.sort(),o.sort(),!1!==d(r,o)&&
  /*!
   * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
   * each key. If any value of the given key is not equal, the function will return false (early).
   *
   * @param {Mixed} leftHandOperand
   * @param {Mixed} rightHandOperand
   * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
   * @param {Object} [options] (Optional)
   * @return {Boolean} result
   */
  function(e,t,n,r){var o=n.length;if(0===o)return!0;for(var i=0;i<o;i+=1)if(!1===s(e[n[i]],t[n[i]],r))return!1;return!0}(e,t,r,n);var i=p(e),a=p(t);if(i.length&&i.length===a.length)return i.sort(),a.sort(),d(i,a,n);if(0===r.length&&0===i.length&&0===o.length&&0===a.length)return!0;return!1}
  /*!
   * Returns true if the argument is a primitive.
   *
   * This intentionally returns true for all objects that can be compared by reference,
   * including functions and symbols.
   *
   * @param {Mixed} value
   * @return {Boolean} result
   */(e,t,r)}}(e,t,b,n);return u(e,t,n.memoize,_),_}function f(e,t,n){if(e.size!==t.size)return!1;if(0===e.size)return!0;var r=[],o=[];return e.forEach(function(e,t){r.push([e,t])}),t.forEach(function(e,t){o.push([e,t])}),d(r.sort(),o.sort(),n)}
  /*!
   * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
   *
   * @param {Iterable} leftHandOperand
   * @param {Iterable} rightHandOperand
   * @param {Object} [options] (Optional)
   * @return {Boolean} result
   */function d(e,t,n){var r=e.length;if(r!==t.length)return!1;if(0===r)return!0;for(var o=-1;++o<r;)if(!1===s(e[o],t[o],n))return!1;return!0}
  /*!
   * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
   * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
   *
   * @param {Object} target
   * @returns {Array} an array of entries from the @@iterator function
   */
  function p(e){if(function(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}(e))try{return h(e[Symbol.iterator]())}catch(e){return[]}return[]}
  /*!
   * Gets all entries from a Generator. This will consume the generator - which could have side effects.
   *
   * @param {Generator} target
   * @returns {Array} an array of entries from the Generator.
   */function h(e){for(var t=e.next(),n=[t.value];!1===t.done;)t=e.next(),n.push(t.value);return n}
  /*!
   * Gets all own and inherited enumerable keys from a target.
   *
   * @param {Object} target
   * @returns {Array} an array of own and inherited enumerable keys from the target.
   */function m(e){var t=[];for(var n in e)t.push(n);return t}function g(e){return null===e||"object"!=typeof e}e.exports=s,e.exports.MemoizeMap=i},function(e,t){
  /*!
   * Chai - getEnumerableProperties utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  e.exports=function(e){var t=[];for(var n in e)t.push(n);return t}},function(e,t,n){
  /*!
   * Chai - message composition utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  /*!
   * Module dependancies
   */
  var r=n(8),o=n(63),i=(n(30),n(60));e.exports=function(e,t){var n=r(e,"negate"),a=r(e,"object"),u=t[3],s=o(e,t),c=n?t[2]:t[1],l=r(e,"message");return"function"==typeof c&&(c=c()),c=(c=c||"").replace(/#\{this\}/g,function(){return i(a)}).replace(/#\{act\}/g,function(){return i(s)}).replace(/#\{exp\}/g,function(){return i(u)}),l?l+": "+c:c}},function(e,t,n){
  /*!
   * Chai - expectTypes utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  var r=n(64),o=n(8),i=n(40);e.exports=function(e,t){var n=o(e,"message"),a=o(e,"ssfi");n=n?n+": ":"",e=o(e,"object"),(t=t.map(function(e){return e.toLowerCase()})).sort();var u=t.map(function(e,n){var r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";return(t.length>1&&n===t.length-1?"or ":"")+r+" "+e}).join(", "),s=i(e).toLowerCase();if(!t.some(function(e){return s===e}))throw new r(n+"object tested must be "+u+", but "+s+" given",void 0,a)}},function(e,t,n){
  /*!
   * Chai - test utility
   * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  /*!
   * Module dependancies
   */
  var r=n(8);e.exports=function(e,t){var n=r(e,"negate"),o=t[0];return n?!o:o}},function(e,t,n){"use strict";function r(e,t){return void 0!==e&&null!==e&&t in Object(e)}function o(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(function(e){var t=/^\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.\[\]])/g,"$1")}})}function i(e,t,n){var r=e,o=null;n=void 0===n?t.length:n;for(var i=0;i<n;i++){var a=t[i];r&&(r=void 0===a.p?r[a.i]:r[a.p],i===n-1&&(o=r))}return o}function a(e,t){var n=o(t),a=n[n.length-1],u={parent:n.length>1?i(e,n,n.length-1):e,name:a.p||a.i,value:i(e,n)};return u.exists=r(u.parent,u.name),u}e.exports={hasProperty:r,getPathInfo:a,getPathValue:function(e,t){return a(e,t).value},setPathValue:function(e,t,n){return function(e,t,n){for(var r=e,o=n.length,i=null,a=0;a<o;a++){var u=null,s=null;if(i=n[a],a===o-1)r[u=void 0===i.p?i.i:i.p]=t;else if(void 0!==i.p&&r[i.p])r=r[i.p];else if(void 0!==i.i&&r[i.i])r=r[i.i];else{var c=n[a+1];u=void 0===i.p?i.i:i.p,s=void 0===c.p?[]:{},r[u]=s,r=r[u]}}}(e,n,o(t)),e}}},function(e,t,n){
  /*!
   * chai
   * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
   * MIT Licensed
   */
  /*!
   * Dependencies that are used for multiple exports are required here only once
   */
  var r=n(140);
  /*!
   * test utility
   */t.test=n(139),
  /*!
   * type utility
   */
  t.type=n(40),
  /*!
   * expectTypes utility
   */
  t.expectTypes=n(138),
  /*!
   * message utility
   */
  t.getMessage=n(137),
  /*!
   * actual utility
   */
  t.getActual=n(63),
  /*!
   * Inspect util
   */
  t.inspect=n(30),
  /*!
   * Object Display util
   */
  t.objDisplay=n(60),
  /*!
   * Flag utility
   */
  t.flag=n(8),
  /*!
   * Flag transferring utility
   */
  t.transferFlags=n(11),
  /*!
   * Deep equal utility
   */
  t.eql=n(135),
  /*!
   * Deep path info
   */
  t.getPathInfo=r.getPathInfo,
  /*!
   * Check if a property exists
   */
  t.hasProperty=r.hasProperty,
  /*!
   * Function name
   */
  t.getName=n(62),
  /*!
   * add Property
   */
  t.addProperty=n(134),
  /*!
   * add Method
   */
  t.addMethod=n(133),
  /*!
   * overwrite Property
   */
  t.overwriteProperty=n(132),
  /*!
   * overwrite Method
   */
  t.overwriteMethod=n(131),
  /*!
   * Add a chainable method
   */
  t.addChainableMethod=n(130),
  /*!
   * Overwrite chainable method
   */
  t.overwriteChainableMethod=n(129),
  /*!
   * Compare by inspect method
   */
  t.compareByInspect=n(128),
  /*!
   * Get own enumerable property symbols method
   */
  t.getOwnEnumerablePropertySymbols=n(59),
  /*!
   * Get own enumerable properties method
   */
  t.getOwnEnumerableProperties=n(127),
  /*!
   * Checks error against a given set of criteria
   */
  t.checkError=n(126),
  /*!
   * Proxify util
   */
  t.proxify=n(27),
  /*!
   * addLengthGuard util
   */
  t.addLengthGuard=n(28),
  /*!
   * isProxyEnabled helper
   */
  t.isProxyEnabled=n(29),
  /*!
   * isNaN method
   */
  t.isNaN=n(125)},function(e,t,n){e.exports=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromV5=t.toCommon=t.v5ToCommon=t.getSubIdList=t.getLeafIdArray=t.getIDPath=t.fromLegacyCsv=t.setParentPath=t.toStrList2=t.fromJs=t.toJs=t.fromJson=t.toJson=t.sortByMaxRemainingPathLength=t.sortByDate=t.sortBySize=t.computeDerivatedData=t.makeTree=t.pushOnQueue=t.rootId=t.volume=t.contentQueueFromJs=t.contentQueueToJs=t.contentQueueFromJson=t.contentQueueToJson=t.arbitraryContentQueue=t.ghostTreeFromJs=t.getAllTags=t.deleteTagged=t.addTagged=t.getTagged=t.setSessionName=t.getSessionName=t.updateByID=t.setByID=t.getByID=t.parentPath=t.depth=t.size_overall=t.size_files=t.empty=t.arbitrary=t.tagsFromJson=t.tagsToJson=t.tagsFromJs=t.tagsToJs=t.arbitraryTags=t.qeFromJson=t.qeToJson=t.qeFromJs=t.qeToJs=t.arbitraryQe=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(5),i=n(15),a=f(n(65)),u=f(n(43)),s=f(n(32)),c=(f(n(31)),f(n(58))),l=f(n(118));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var d=Object.assign({},c);d.arbitrary=d.arbitrary(u.update,u.arbitrary),d.update=d.update(u.update);var p=d.sort(u.compareSize),h=(d.isSorted(u.compareSize),d.sort(u.compareDate));d.isSorted(u.compareDate);d.toStrList2=d.toStrList2(u.toStrListHeader,u.toStrList),d.toJson=d.toJson(u.toJson),d.fromJson=d.fromJson(u.fromJson),d.toJs=d.toJs(u.toJs),d.fromJs=d.fromJs(u.fromJs);var m=(0,o.Record)({path:(0,o.List)(),content:null}),g=function(){return(0,o.List)(s.array(function(){return"p"+Math.round(1*Math.random())}))},y=t.arbitraryQe=function(){return new m({path:g(),content:u.arbitrary()})},v=t.qeToJs=function(e){return e=(e=(e=e.update("path",function(e){return e.toJS()})).update("content",u.toJs)).toJS()},b=t.qeFromJs=function(e){return e=(e=(e=new m(e)).update("path",o.List)).update("content",u.fromJs)},_=(t.qeToJson=function(e){return e=(e=e.update("path",function(e){return e.toJS()})).update("content",u.toJson),e=JSON.stringify(e.toJS())},t.qeFromJson=function(e){return e=(e=(e=new m(JSON.parse(e))).update("path",o.List)).update("content",u.fromJson)},(0,o.Record)({session_name:"Untitled",version:7,content_queue:(0,o.List)(),tree:null,tags:(0,o.Map)(),parent_path:(0,o.List)()})),w=t.arbitraryTags=function(){return s.immutableMap(s.string,function(){return s.immutableSet(function(){return(0,i.generateRandomString)(40)})})},E=t.tagsToJs=function(e){return e.toJS()},O=t.tagsFromJs=function(e){return e=(e=(0,o.Map)(e)).map(o.Set)},x=t.tagsToJson=function(e){return e=E(e),e=JSON.stringify(e)},S=t.tagsFromJson=function(e){return e=JSON.parse(e),e=O(e)},k=(t.arbitrary=function(){for(var e=k(),t=2*s.index()-1;t>=0;t--)e=I(g().join("/"),u.arbitrary(),e);return e=D(e),e=(e=A(e)).set("tags",w())},t.empty=function(){return new _({tree:d.init(u.create())})}),j=(t.size_files=function(e){return e.get("content_queue").size},t.size_overall=function(e){return e.get("tree").get("table").size-1},t.depth=function(e){return d.depth(e.get("tree"))},t.parentPath=function(e){return e.get("parent_path").toArray()},t.getByID=function(e,t){return d.getEntryById(e,t.get("tree"))}),C=(t.setByID=function(e,t,n){return n.update("tree",function(n){return d.setEntryById(e,t,n)})},t.updateByID=function(e,t,n){return n.update("tree",function(n){return d.updateEntryById(e,t,n)})},t.getSessionName=function(e){return e.get("session_name")},t.setSessionName=function(e,t){return t.set("session_name",e)},t.getTagged=function(e,t){return e.get("tags").get(t)},t.addTagged=function(e,t,n){return e.update("tags",function(e){return e.update(t,function(e){return void 0===e?o.Set.of(n):e.add(n)})})},t.deleteTagged=function(e,t,n){return e.update("tags",function(e){var r=e.update(t,function(e){return e.delete(n)});return 0===r.get(t).size?e.delete(t):r})},t.getAllTags=function(e){return e.get("tags")},t.ghostTreeFromJs=function(e,t){return t=t.set("tree",d.fromJs(e))},t.arbitraryContentQueue=function(){return s.immutableList(y)},t.contentQueueToJson=function(e){return e=P(e),e=JSON.stringify(e)}),M=t.contentQueueFromJson=function(e){return e=JSON.parse(e),e=N(e)},P=t.contentQueueToJs=function(e){return e=(e=e.map(v)).toJS()},N=t.contentQueueFromJs=function(e){return e=(e=(0,o.List)(e)).map(b)},T=(t.volume=function(e){return u.getSize(j(T(e),e).get("content"))},t.rootId=function(e){return d.getRootId(e.get("tree"))}),I=t.pushOnQueue=function(e,t,n){return n=n.update("content_queue",function(n){return n.push(function(e,t){return new m({path:(0,o.List)(e.split("/")),content:t})}(e,t))})},D=t.makeTree=function(e){return e=e.update("tree",function(t){return t=t.asMutable(),e.get("content_queue").forEach(function(e){t=function(e,t){return t=d.update(e.get("path").toJS(),e.get("content"),t)}(e,t)}),t.asImmutable()})},R=t.computeDerivatedData=function(e){return e=e.update("tree",function(e){return e=d.mapContent(u.computeDerivatedData,e)})},A=t.sortBySize=a.make(function(e){return e=e.update("tree",p)});t.sortByDate=a.make(function(e){return e=e.update("tree",h)}),t.sortByMaxRemainingPathLength=a.make(function(e){return e=e.update("tree",d.sortByMaxRemainingPathLength)}),t.toJson=a.make(function(e){return e=(e=(e=(e=e.update("tree",d.toJson)).update("content_queue",C)).update("tags",x)).toJS(),JSON.stringify(e)}),t.fromJson=function(e){var t=JSON.parse(e);return 5===t.version?q(e):(t.version,t=(t=(t=(t=(t=new _(t)).update("tags",S)).update("content_queue",M)).update("tree",d.fromJson)).update("parent_path",o.List))},t.toJs=function(e){return(e=(e=(e=e.update("tree",d.toJs)).update("content_queue",P)).update("tags",E)).toJS()},t.fromJs=function(e){var t=new _(e);return t=(t=(t=(t=t.update("tags",O)).update("content_queue",N)).update("tree",d.fromJs)).update("parent_path",o.List)},t.toStrList2=a.make(function(e){return d.toStrList2(e.get("tree"))}),t.setParentPath=function(e,t){return t.set("parent_path",(0,o.List)(e))},t.fromLegacyCsv=function(e){var t,n=(t=4,k().set("version",t));e.split("\n").filter(function(e){return""!==e}).map(function(e){return e.match(/(".*?")|([^,"\s]*)/g).filter(function(e){return""!==e}).map(function(e){return e.replace(/"/g,"")})}).forEach(function(e){var t=r(e,2),o=t[0],i=t[1];n=I(o,u.create({size:Number(i)}),n)});return n=D(n),n=A(n)},t.getIDPath=function(e,t){return d.getIdPath(e,t.get("tree"))},t.getLeafIdArray=function(e){return d.getLeafIdArray(e.get("tree"))},t.getSubIdList=function(e,t){return d.getSubIdList(e,t.get("tree"))};d.v5ToCommon=d.v5ToCommon(u.v5ToCommon),d.toCommon=d.toCommon(u.toCommon),d.fromV5=d.fromV5(u.fromV5);var L=function(e,t){return t.map(function(t){var n=t.get("path"),r=t.update("content",e);return(0,o.Map)({path:n,content:r})})},F=function(e){var t=e.get("table"),n=e.get("root_id");return e=e.set("table",function e(t,n){var r=n.get(t),i=r.get("children");if(i.size){i.forEach(function(t){n=e(t,n)});var a=(0,o.List)();i.forEach(function(e){var t=n.get(e);a=a.concat(t.get("content").get("last_modified").get("list"))});var u=a.max(),s=a.min();return r=r.update("content",function(e){return e.update("last_modified",function(e){return e=(e=(e=e.set("list",a)).set("max",u)).set("min",s)})}),n=n.set(t,r)}return n}(n,t))},z=function(e){var t=(0,o.Map)();return e.get("table").forEach(function(e,n){e.get("content").get("tags").forEach(function(e){!function(e,n){t=t.update(n,function(t){return t?t.add(e):(0,o.Set)([e])})}(n,e)})}),t},B=(t.v5ToCommon=function(e){var t=e.get("session_name"),n=L(u.v5ToCommon,e.get("content_queue")),r=d.v5ToCommon(e.get("tree")),i=z(r),a=e.get("parent_path");return(0,o.Map)({session_name:t,content_queue:n,tree:r,tags:i,parent_path:a})},t.toCommon=function(e){var t=e.get("session_name"),n=L(u.toCommon,e.get("content_queue")),r=d.toCommon(e.get("tree")),i=e.get("parent_path"),a=e.get("tags");return(0,o.Map)({session_name:t,content_queue:n,tree:r,tags:a,parent_path:i})},t.fromV5=function(e){var t=e.get("session_name"),n=e.get("content_queue").map(function(e){return e.update("content",u.fromV5)}),r=d.fromV5(e.get("tree")),o=z(r),i=e.get("parent_path");return new _({session_name:t,version:6,content_queue:n,tree:r,tags:o,parent_path:i})}),q=function(e){return e=(e=B(l.fromJson(e))).update("tree",F),e=R(e)}},function(e,t,n){var r,o=n(21);e.exports=(r=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"],function(e,t,n){return" "===e?e:o[r[Math.round(Math.random()*(r.length-1))]](e)})},function(e,t,n){var r,o=n(21);e.exports=(r=["red","yellow","green","blue","magenta"],function(e,t,n){return" "===e?e:o[r[t++%r.length]](e)})},function(e,t,n){var r=n(21);e.exports=function(e,t,n){return t%2==0?e:r.inverse(e)}},function(e,t,n){var r=n(21);e.exports=function(e,t,n){if(" "===e)return e;switch(t%3){case 0:return r.red(e);case 1:return r.white(e);case 2:return r.blue(e)}}},function(e,t){e.exports=function(e,t){e=e||"   he is here   ";var n={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},r=[].concat(n.up,n.down,n.mid);function o(e){return Math.floor(Math.random()*e)}function i(e){var t=!1;return r.filter(function(n){t=n===e}),t}return function(e,t){var r,a,u="";for(a in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!i(a)){switch(u+=e[a],r={up:0,down:0,mid:0},t.size){case"mini":r.up=o(8),r.mid=o(2),r.down=o(8);break;case"maxi":r.up=o(16)+3,r.mid=o(4)+1,r.down=o(64)+3;break;default:r.up=o(8)+1,r.mid=o(6)/2,r.down=o(8)+1}var s=["up","mid","down"];for(var c in s)for(var l=s[c],f=0;f<=r[l];f++)t[l]&&(u+=n[l][o(n[l].length)])}return u}(e,t)}},function(e,t){e.exports=function(e,t){var n="",r={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return(e=(e=e||"Run the trap, drop the bass").split("")).forEach(function(e){e=e.toLowerCase();var t=r[e]||[" "],o=Math.floor(Math.random()*t.length);n+=void 0!==r[e]?r[e][o]:e}),n}},function(e,t,n){"use strict";(function(t){e.exports=function(e,n){var r=(n=n||t.argv).indexOf("--"),o=/^-{1,2}/.test(e)?"":"--",i=n.indexOf(o+e);return-1!==i&&(-1===r||i<r)}}).call(this,n(41))},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},function(e,t,n){"use strict";(function(t){var r=n(151),o=n(150),i=t.env,a=void 0;function u(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(function(e){if(!1===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!e.isTTY&&!0!==a)return 0;var n=a?1:0;if("win32"===t.platform){var u=r.release().split(".");return Number(t.versions.node.split(".")[0])>=8&&Number(u[0])>=10&&Number(u[2])>=10586?Number(u[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in i})||"codeship"===i.CI_NAME?1:n;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var s=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)?1:"COLORTERM"in i?1:(i.TERM,n)}(e))}o("no-color")||o("no-colors")||o("color=false")?a=!1:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=!0),"FORCE_COLOR"in i&&(a=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:u,stdout:u(t.stdout),stderr:u(t.stderr)}}).call(this,n(41))},function(e,t){var n={};e.exports=n;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach(function(e){var t=r[e],o=n[e]=[];o.open="["+t[0]+"m",o.close="["+t[1]+"m"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="_"+(0,r.generateRandomString)(40),n="commit"+t,u="undo"+t,s="redo"+t;var c=function(e){return 0!==e.get("pastC").size},l=function(e){return 0!==e.get("futureC").size};return{commit:function(){return{type:n}},undo:function(){return{type:u}},redo:function(){return{type:s}},reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new i,r=arguments[1];return r.type===n?function(e){(e=e.update("pastC",function(t){return t.push(e.get("presentC"))})).get("pastC").size>a&&(e=e.update("pastC",function(e){return e.slice(1)}));return e=(e=e.set("presentC",e.get("content"))).set("futureC",(0,o.List)())}(t):r.type===u?function(e){c(e)&&(e=(e=(e=(e=e.update("futureC",function(t){return t.insert(0,e.get("presentC"))})).set("presentC",e.get("pastC").get(-1))).update("pastC",function(e){return e.slice(0,-1)})).set("content",e.get("presentC")));return e}(t):r.type===s?function(e){l(e)&&(e=(e=(e=(e=e.update("pastC",function(t){return t.push(e.get("presentC"))})).set("presentC",e.get("futureC").get(0))).update("futureC",function(e){return e.slice(1)})).set("content",e.get("presentC")));return e}(t):function(t,n){(t=t.update("content",function(t){return e(t,n)})).get("presentC")||(t=t.set("presentC",t.get("content")));return t}(t,r)},hasAPast:c,hasAFuture:l,selectContent:function(e){return e.get("content")}}};var r=n(15),o=n(5),i=(0,o.Record)({content:void 0,pastC:(0,o.List)(),presentC:void 0,futureC:(0,o.List)()}),a=1e3},,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=(r=i)&&r.__esModule?r:{default:r},u=n(70);n(46);var s=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,[{key:"componentDidCatch",value:function(e,t){(0,u.logError)(e.stack,t.componentStack)}},{key:"render",value:function(){return this.props.children}}]),t}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(0)),o=n(1),i=(n(2),n(3)),a=u(n(83));u(n(71));function u(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.connect)(function(e){return{}},function(e){return{}})(function(e){return r.default.createElement("div",{className:"grid-x grid-padding-y align-middle"},r.default.createElement("div",{className:"cell auto"}),r.default.createElement("div",{className:"cell small-3"},r.default.createElement("h4",{style:{lineHeight:"0.8em"}},r.default.createElement("b",null,(0,i.tr)("Icicles")),r.default.createElement("br",null),r.default.createElement("span",{style:{fontSize:"0.65em"}},"v7 Gentle Gorilla - ",r.default.createElement("a",{target:"_blank",href:"http://archifiltre.com/#changelog"},(0,i.tr)("What's new?"))))),r.default.createElement("div",{className:"cell small-8"},r.default.createElement(a.default,null)),r.default.createElement("div",{className:"cell auto"}))});t.default=s},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var o=r();o.withExtraArgument=r,t.default=o},,,,,,,,function(e,t,n){"use strict";var r=h(n(0)),o=h(n(14)),i=n(1),a=n(18),u=h(n(164)),s=h(n(2)),c=h(n(113)),l=h(n(163));n(9);var f=n(70),d=n(46),p=h(n(162));n(15);function h(e){return e&&e.__esModule?e:{default:e}}window.onload=function(){try{!function(){var e=document.createElement("div");e.setAttribute("id","root"),null!==document.body&&document.body.appendChild(e);var t=(0,a.createStore)(s.default,(0,a.applyMiddleware)(u.default));window.thug=Object.assign({},window.thug,{dispatch:t.dispatch,getState:t.getState}),o.default.render(r.default.createElement(p.default,null,r.default.createElement(i.Provider,{store:t},r.default.createElement("div",{className:"grid-y grid-frame"},r.default.createElement("div",{className:"cell"},r.default.createElement(l.default,null)),r.default.createElement("div",{className:"cell auto"},r.default.createElement(c.default,null))))),e)}()}catch(e){throw(0,f.logError)(e.stack),e}},(0,d.getCookie)().impicklerick||(window.onbeforeunload=function(){return!1})}],[[172,6,1,0]]]);
  