!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.PydioReactUI=f()}}(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o1)for(var i=1;i0&&"number"!=typeof x[0]))}function objEquiv(a,b,opts){var i,key;if(typeof a!=typeof b)return!1;if(isUndefinedOrNull(a)||isUndefinedOrNull(b))return!1;if(a.prototype!==b.prototype)return!1;if(isArguments(a)!==isArguments(b))return!1;var aIsRegex=isRegex(a),bIsRegex=isRegex(b);if(aIsRegex!==bIsRegex)return!1;if(aIsRegex||bIsRegex)return a.source===b.source&&flags(a)===flags(b);if(isDate(a)&&isDate(b))return getTime.call(a)===getTime.call(b);var aIsBuffer=isBuffer(a),bIsBuffer=isBuffer(b);if(aIsBuffer!==bIsBuffer)return!1;if(aIsBuffer||bIsBuffer){if(a.length!==b.length)return!1;for(i=0;i=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(key=ka[i],!deepEqual(a[key],b[key],opts))return!1;return!0}module.exports=deepEqual},{"is-arguments":24,"is-date-object":25,"is-regex":26,"object-is":28,"object-keys":30,"regexp.prototype.flags":56}],3:[function(require,module,exports){"use strict";var keys=require("object-keys"),hasSymbols="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),toStr=Object.prototype.toString,concat=Array.prototype.concat,origDefineProperty=Object.defineProperty,isFunction=function(fn){return"function"==typeof fn&&"[object Function]"===toStr.call(fn)},arePropertyDescriptorsSupported=function(){var obj={};try{origDefineProperty(obj,"x",{enumerable:!1,value:obj});for(var _ in obj)return!1;return obj.x===obj}catch(e){return!1}},supportsDescriptors=origDefineProperty&&arePropertyDescriptorsSupported(),defineProperty=function(object,name,value,predicate){(!(name in object)||isFunction(predicate)&&predicate())&&(supportsDescriptors?origDefineProperty(object,name,{configurable:!0,enumerable:!1,value:value,writable:!0}):object[name]=value)},defineProperties=function(object,map){var predicates=arguments.length>2?arguments[2]:{},props=keys(map);hasSymbols&&(props=concat.call(props,Object.getOwnPropertySymbols(map)));for(var i=0;i=turns&&hasNext&&(isDone=!0,callback())}}next()}},{}],9:[function(require,module,exports){(function(process){"use strict";exports.__esModule=!0,exports.saveState=saveState,exports.readState=readState;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _warning=require("warning"),_warning2=_interopRequireDefault(_warning),QuotaExceededErrors=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],SecurityError="SecurityError";function createKey(key){return"@@History/"+key}function saveState(key,state){try{null==state?window.sessionStorage.removeItem(createKey(key)):window.sessionStorage.setItem(createKey(key),JSON.stringify(state))}catch(error){if(error.name===SecurityError)return void("production"!==process.env.NODE_ENV&&_warning2.default(!1,"[history] Unable to save state; sessionStorage is not available due to security settings"));if(QuotaExceededErrors.indexOf(error.name)>=0&&0===window.sessionStorage.length)return void("production"!==process.env.NODE_ENV&&_warning2.default(!1,"[history] Unable to save state; sessionStorage is not available in Safari private mode"));throw error}}function readState(key){var json=void 0;try{json=window.sessionStorage.getItem(createKey(key))}catch(error){if(error.name===SecurityError)return"production"!==process.env.NODE_ENV&&_warning2.default(!1,"[history] Unable to read state; sessionStorage is not available due to security settings"),null}if(json)try{return JSON.parse(json)}catch(error){}return null}}).call(this,require("_process"))},{_process:1,warning:22}],10:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.addEventListener=addEventListener,exports.removeEventListener=removeEventListener,exports.getHashPath=getHashPath,exports.replaceHashPath=replaceHashPath,exports.getWindowPath=getWindowPath,exports.go=go,exports.getUserConfirmation=getUserConfirmation,exports.supportsHistory=supportsHistory,exports.supportsGoWithoutReloadUsingHash=supportsGoWithoutReloadUsingHash;function addEventListener(node,event,listener){node.addEventListener?node.addEventListener(event,listener,!1):node.attachEvent("on"+event,listener)}function removeEventListener(node,event,listener){node.removeEventListener?node.removeEventListener(event,listener,!1):node.detachEvent("on"+event,listener)}function getHashPath(){return window.location.href.split("#")[1]||""}function replaceHashPath(path){window.location.replace(window.location.pathname+window.location.search+"#"+path)}function getWindowPath(){return window.location.pathname+window.location.search+window.location.hash}function go(n){n&&window.history.go(n)}function getUserConfirmation(message,callback){callback(window.confirm(message))}function supportsHistory(){var ua=navigator.userAgent;return(-1===ua.indexOf("Android 2.")&&-1===ua.indexOf("Android 4.0")||-1===ua.indexOf("Mobile Safari")||-1!==ua.indexOf("Chrome")||-1!==ua.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}function supportsGoWithoutReloadUsingHash(){return-1===navigator.userAgent.indexOf("Firefox")}},{}],11:[function(require,module,exports){"use strict";exports.__esModule=!0;var canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement);exports.canUseDOM=canUseDOM},{}],12:[function(require,module,exports){(function(process){"use strict";exports.__esModule=!0,exports.extractPath=extractPath,exports.parsePath=parsePath;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _warning=require("warning"),_warning2=_interopRequireDefault(_warning);function extractPath(string){var match=string.match(/^https?:\/\/[^\/]*/);return null==match?string:string.substring(match[0].length)}function parsePath(path){var pathname=extractPath(path),search="",hash="";"production"!==process.env.NODE_ENV&&_warning2.default(path===pathname,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',path);var hashIndex=pathname.indexOf("#");-1!==hashIndex&&(hash=pathname.substring(hashIndex),pathname=pathname.substring(0,hashIndex));var searchIndex=pathname.indexOf("?");return-1!==searchIndex&&(search=pathname.substring(searchIndex),pathname=pathname.substring(0,searchIndex)),""===pathname&&(pathname="/"),{pathname:pathname,search:search,hash:hash}}}).call(this,require("_process"))},{_process:1,warning:22}],13:[function(require,module,exports){(function(process){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i is deprecated and will be removed in the next major release. The semantics of are subtly different from basename. Please pass the basename explicitly in the options to createHistory"))}checkedBaseHref=!0}}function addBasename(location){return checkBaseHref(),basename&&null==location.basename&&(0===location.pathname.indexOf(basename)?(location.pathname=location.pathname.substring(basename.length),location.basename=basename,""===location.pathname&&(location.pathname="/")):location.basename=""),location}function prependBasename(location){if(checkBaseHref(),!basename)return location;"string"==typeof location&&(location=_PathUtils.parsePath(location));var pname=location.pathname,normalizedBasename="/"===basename.slice(-1)?basename:basename+"/",normalizedPathname="/"===pname.charAt(0)?pname.slice(1):pname;return _extends({},location,{pathname:normalizedBasename+normalizedPathname})}function listenBefore(hook){return history.listenBefore(function(location,callback){_runTransitionHook2.default(hook,addBasename(location),callback)})}function listen(listener){return history.listen(function(location){listener(addBasename(location))})}function push(location){history.push(prependBasename(location))}function replace(location){history.replace(prependBasename(location))}function createPath(location){return history.createPath(prependBasename(location))}function createHref(location){return history.createHref(prependBasename(location))}function createLocation(location){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return addBasename(history.createLocation.apply(history,[prependBasename(location)].concat(args)))}function pushState(state,path){"string"==typeof path&&(path=_PathUtils.parsePath(path)),push(_extends({state:state},path))}function replaceState(state,path){"string"==typeof path&&(path=_PathUtils.parsePath(path)),replace(_extends({state:state},path))}return _extends({},history,{listenBefore:listenBefore,listen:listen,push:push,replace:replace,createPath:createPath,createHref:createHref,createLocation:createLocation,pushState:_deprecate2.default(pushState,"pushState is deprecated; use push instead"),replaceState:_deprecate2.default(replaceState,"replaceState is deprecated; use replace instead")})}}exports.default=useBasename,module.exports=exports.default}).call(this,require("_process"))},{"./ExecutionEnvironment":11,"./PathUtils":12,"./deprecate":18,"./runTransitionHook":19,_process:1,warning:22}],21:[function(require,module,exports){(function(process){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];var fullLocation=history.createLocation.apply(history,[appendQuery(location,location.query)].concat(args));return location.query&&(fullLocation.query=location.query),addQuery(fullLocation)}function pushState(state,path,query){"string"==typeof path&&(path=_PathUtils.parsePath(path)),push(_extends({state:state},path,{query:query}))}function replaceState(state,path,query){"string"==typeof path&&(path=_PathUtils.parsePath(path)),replace(_extends({state:state},path,{query:query}))}return _extends({},history,{listenBefore:listenBefore,listen:listen,push:push,replace:replace,createPath:createPath,createHref:createHref,createLocation:createLocation,pushState:_deprecate2.default(pushState,"pushState is deprecated; use push instead"),replaceState:_deprecate2.default(replaceState,"replaceState is deprecated; use replace instead")})}}exports.default=useQueries,module.exports=exports.default}).call(this,require("_process"))},{"./PathUtils":12,"./deprecate":18,"./runTransitionHook":19,_process:1,"query-string":32,warning:22}],22:[function(require,module,exports){"use strict";var warning=function(){};module.exports=warning},{}],23:[function(require,module,exports){"use strict";var invariant=function(condition,format,a,b,c,d,e,f){if(!condition){var error;if(void 0===format)error=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var args=[a,b,c,d,e,f],argIndex=0;error=new Error(format.replace(/%s/g,function(){return args[argIndex++]})),error.name="Invariant Violation"}throw error.framesToPop=1,error}};module.exports=invariant},{}],24:[function(require,module,exports){"use strict";var hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,toStr=Object.prototype.toString,isStandardArguments=function(value){return!(hasToStringTag&&value&&"object"==typeof value&&Symbol.toStringTag in value)&&"[object Arguments]"===toStr.call(value)},isLegacyArguments=function(value){return!!isStandardArguments(value)||null!==value&&"object"==typeof value&&"number"==typeof value.length&&value.length>=0&&"[object Array]"!==toStr.call(value)&&"[object Function]"===toStr.call(value.callee)},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,module.exports=supportsStandardArguments?isStandardArguments:isLegacyArguments},{}],25:[function(require,module,exports){"use strict";var getDay=Date.prototype.getDay,tryDateObject=function(value){try{return getDay.call(value),!0}catch(e){return!1}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function(value){return"object"==typeof value&&null!==value&&(hasToStringTag?tryDateObject(value):"[object Date]"===toStr.call(value))}},{}],26:[function(require,module,exports){"use strict";var has=require("has"),regexExec=RegExp.prototype.exec,gOPD=Object.getOwnPropertyDescriptor,tryRegexExecCall=function(value){try{var lastIndex=value.lastIndex;return value.lastIndex=0,regexExec.call(value),!0}catch(e){return!1}finally{value.lastIndex=lastIndex}},toStr=Object.prototype.toString,hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function(value){if(!value||"object"!=typeof value)return!1;if(!hasToStringTag)return"[object RegExp]"===toStr.call(value);var descriptor=gOPD(value,"lastIndex");return!(!descriptor||!has(descriptor,"value"))&&tryRegexExecCall(value)}},{has:6}],27:[function(require,module,exports){(function(global){(function(){var undefined,VERSION="3.10.1",BIND_FLAG=1,BIND_KEY_FLAG=2,CURRY_BOUND_FLAG=4,CURRY_FLAG=8,CURRY_RIGHT_FLAG=16,PARTIAL_FLAG=32,PARTIAL_RIGHT_FLAG=64,ARY_FLAG=128,REARG_FLAG=256,DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...",HOT_COUNT=150,HOT_SPAN=16,LARGE_ARRAY_SIZE=200,LAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2,FUNC_ERROR_TEXT="Expected a function",PLACEHOLDER="__lodash_placeholder__",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39|#96);/g,reUnescapedHtml=/[&<>"'`]/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,reRegExpChars=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,reHasRegExpChars=RegExp(reRegExpChars.source),reComboMark=/[\u0300-\u036f\ufe20-\ufe23]/g,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reHasHexPrefix=/^0[xX]/,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsUint=/^\d+$/,reLatin1=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,reWords=function(){var upper="[A-Z\\xc0-\\xd6\\xd8-\\xde]",lower="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(upper+"+(?="+upper+lower+")|"+upper+"?"+lower+"|"+upper+"+|[0-9]+","g")}(),contextProps=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],templateCounter=-1,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},htmlEscapes={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},objectTypes={function:!0,object:!0},regexpEscapes={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this;function baseCompareAscending(value,other){if(value!==other){var valIsNull=null===value,valIsUndef=value===undefined,valIsReflexive=value===value,othIsNull=null===other,othIsUndef=other===undefined,othIsReflexive=other===other;if(value>other&&!othIsNull||!valIsReflexive||valIsNull&&!othIsUndef&&othIsReflexive||valIsUndef&&othIsReflexive)return 1;if(value-1;);return index}function charsRightIndex(string,chars){for(var index=string.length;index--&&chars.indexOf(string.charAt(index))>-1;);return index}function compareAscending(object,other){return baseCompareAscending(object.criteria,other.criteria)||object.index-other.index}function compareMultiple(object,other,orders){for(var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length,ordersLength=orders.length;++index=ordersLength)return result;var order=orders[index];return result*("asc"===order||!0===order?1:-1)}}return object.index-other.index}function deburrLetter(letter){return deburredLetters[letter]}function escapeHtmlChar(chr){return htmlEscapes[chr]}function escapeRegExpChar(chr,leadingChar,whitespaceChar){return leadingChar?chr=regexpEscapes[chr]:whitespaceChar&&(chr=stringEscapes[chr]),"\\"+chr}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:++index=9&&charCode<=13||32==charCode||160==charCode||5760==charCode||6158==charCode||charCode>=8192&&(charCode<=8202||8232==charCode||8233==charCode||8239==charCode||8287==charCode||12288==charCode||65279==charCode)}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=-1,result=[];++index>>1,MAX_SAFE_INTEGER=9007199254740991,metaMap=WeakMap&&new WeakMap,realNames={};function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty.call(value,"__chain__")&&hasOwnProperty.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}function baseLodash(){}function LodashWrapper(value,chainAll,actions){this.__wrapped__=value,this.__actions__=actions||[],this.__chain__=!!chainAll}lodash.support={};lodash.templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:lodash}};function LazyWrapper(value){this.__wrapped__=value,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=POSITIVE_INFINITY,this.__views__=[]}function lazyClone(){var result=new LazyWrapper(this.__wrapped__);return result.__actions__=arrayCopy(this.__actions__),result.__dir__=this.__dir__,result.__filtered__=this.__filtered__,result.__iteratees__=arrayCopy(this.__iteratees__),result.__takeCount__=this.__takeCount__,result.__views__=arrayCopy(this.__views__),result}function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1,result.__filtered__=!0}else result=this.clone(),result.__dir__*=-1;return result}function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||arrLength=LARGE_ARRAY_SIZE?createCache(values):null,valuesLength=values.length;cache&&(indexOf=cacheIndexOf,isCommon=!1,values=cache);outer:for(;++indexlength?0:length+start), end=end===undefined||end>length?length:+end||0,end<0&&(end+=length),length=start>end?0:end>>>0,start>>>=0;startlength?0:length+start),end=end===undefined||end>length?length:+end||0,end<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index=LARGE_ARRAY_SIZE,seen=isLarge?createCache():null,result=[];seen?(indexOf=cacheIndexOf,isCommon=!1):(isLarge=!1,seen=iteratee?[]:result);outer:for(;++index>>1,computed=array[mid];(retHighest?computed<=value:computed2?sources[length-2]:undefined,guard=length>2?sources[2]:undefined,thisArg=length>1?sources[length-1]:undefined;for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:undefined,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?undefined:customizer,length=1);++index-1?collection[index]:undefined}return baseFind(collection,predicate,eachFunc)}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createFindKey(objectFunc){return function(object,predicate,thisArg){return predicate=getCallback(predicate,thisArg,3),baseFind(object,predicate,objectFunc,!0)}}function createFlow(fromRight){return function(){for(var wrapper,length=arguments.length,index=fromRight?length:-1,leftIndex=0,funcs=Array(length);fromRight?index--:++index=LARGE_ARRAY_SIZE)return wrapper.plant(value).value();for(var index=0,result=length?funcs[index].apply(this,args):value;++index=length||!nativeIsFinite(length))return"";var padLength=length-strLength;return chars=null==chars?" ":chars+"",repeat(chars,nativeCeil(padLength/chars.length)).slice(0,padLength)}function createPartialWrapper(func,bitmask,thisArg,partials){var isBind=bitmask&BIND_FLAG,Ctor=createCtorWrapper(func);function wrapper(){for(var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array(leftLength+argsLength);++leftIndexarrLength))return!1;for(;++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isStrictComparable(value){return value===value&&!isObject(value)}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask0){if(++count>=HOT_COUNT)return key}else count=0;return baseSetData(key,value)}}();function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,allowIndexes=!!length&&isLength(length)&&(isArray(object)||isArguments(object)),index=-1,result=[];++index=120?createCache(othIndex&&value):null}var array=arrays[0],index=-1,length=array?array.length:0,seen=caches[0];outer:for(;++index-1;)splice.call(array,fromIndex,1);return array}var pullAt=restParam(function(array,indexes){indexes=baseFlatten(indexes);var result=baseAt(array,indexes);return basePullAt(array,indexes.sort(baseCompareAscending)),result});function remove(array,predicate,thisArg){var result=[];if(!array||!array.length)return result;var index=-1,indexes=[],length=array.length;for(predicate=getCallback(predicate,thisArg,3);++index2?arrays[length-2]:undefined,thisArg=length>1?arrays[length-1]:undefined;return length>2&&"function"==typeof iteratee?length-=2:(iteratee=length>1&&"function"==typeof thisArg?(--length,thisArg):undefined,thisArg=undefined),arrays.length=length,unzipWith(arrays,iteratee,thisArg)});function chain(value){var result=lodash(value);return result.__chain__=!0,result}function tap(value,interceptor,thisArg){return interceptor.call(thisArg,value),value}function thru(value,interceptor,thisArg){return interceptor.call(thisArg,value)}function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}var wrapperConcat=restParam(function(values){return values=baseFlatten(values),this.thru(function(array){return arrayConcat(isArray(array)?array:[toObject(array)],values)})});function wrapperPlant(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);result?previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}return previous.__wrapped__=value,result}function wrapperReverse(){var value=this.__wrapped__,interceptor=function(value){return wrapped&&wrapped.__dir__<0?value:value.reverse()};if(value instanceof LazyWrapper){var wrapped=value;return this.__actions__.length&&(wrapped=new LazyWrapper(this)),wrapped=wrapped.reverse(),wrapped.__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(wrapped,this.__chain__)}return this.thru(interceptor)}function wrapperToString(){return this.value()+""}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}var at=restParam(function(collection,props){return baseAt(collection,baseFlatten(props))}),countBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:result[key]=1});function every(collection,predicate,thisArg){var func=isArray(collection)?arrayEvery:baseEvery;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=undefined),"function"==typeof predicate&&thisArg===undefined||(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function filter(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,predicate)}var find=createFind(baseEach),findLast=createFind(baseEachRight,!0);function findWhere(collection,source){return find(collection,baseMatches(source))}var forEach=createForEach(arrayEach,baseEach),forEachRight=createForEach(arrayEachRight,baseEachRight),groupBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?result[key].push(value):result[key]=[value]});function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:fromIndex<0?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?fromIndex<=length&&collection.indexOf(target,fromIndex)>-1:!!length&&getIndexOf(collection,target,fromIndex)>-1}var indexBy=createAggregator(function(result,value,key){result[key]=value}),invoke=restParam(function(collection,path,args){var index=-1,isFunc="function"==typeof path,isProp=isKey(path),result=isArrayLike(collection)?Array(collection.length):[];return baseEach(collection,function(value){var func=isFunc?path:isProp&&null!=value?value[path]:undefined;result[++index]=func?func.apply(value,args):invokePath(value,path,args)}),result});function map(collection,iteratee,thisArg){var func=isArray(collection)?arrayMap:baseMap;return iteratee=getCallback(iteratee,thisArg,3),func(collection,iteratee)}var partition=createAggregator(function(result,value,key){result[key?0:1].push(value)},function(){return[[],[]]});function pluck(collection,path){return map(collection,property(path))}var reduce=createReduce(arrayReduce,baseEach),reduceRight=createReduce(arrayReduceRight,baseEachRight);function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function sample(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):null==n){collection=toIterable(collection);var length=collection.length;return length>0?collection[baseRandom(0,length-1)]:undefined}var index=-1,result=toArray(collection),length=result.length,lastIndex=length-1;for(n=nativeMin(n<0?0:+n||0,length);++index0&&(result=func.apply(this,arguments)),n<=1&&(func=undefined),result}}var bind=restParam(function(func,thisArg,partials){var bitmask=BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,bind.placeholder);bitmask|=PARTIAL_FLAG}return createWrapper(func,bitmask,thisArg,partials,holders)}),bindAll=restParam(function(object,methodNames){methodNames=methodNames.length?baseFlatten(methodNames):functions(object);for(var index=-1,length=methodNames.length;++indexwait?complete(trailingCall,maxTimeoutId):timeoutId=setTimeout(delayed,remaining)}function maxDelayed(){complete(trailing,timeoutId)}function debounced(){if(args=arguments,stamp=now(),thisArg=this,trailingCall=trailing&&(timeoutId||!leading),!1===maxWait)var leadingCall=leading&&!timeoutId;else{maxTimeoutId||leading||(lastCalled=stamp);var remaining=maxWait-(stamp-lastCalled),isCalled=remaining<=0||remaining>maxWait;isCalled?(maxTimeoutId&&(maxTimeoutId=clearTimeout(maxTimeoutId)),lastCalled=stamp,result=func.apply(thisArg,args)):maxTimeoutId||(maxTimeoutId=setTimeout(maxDelayed,remaining))}return isCalled&&timeoutId?timeoutId=clearTimeout(timeoutId):timeoutId||wait===maxWait||(timeoutId=setTimeout(delayed,wait)),leadingCall&&(isCalled=!0,result=func.apply(thisArg,args)),!isCalled||timeoutId||maxTimeoutId||(args=thisArg=undefined),result}return debounced.cancel=cancel,debounced}var defer=restParam(function(func,args){return baseDelay(func,1,args)}),delay=restParam(function(func,wait,args){return baseDelay(func,wait,args)}),flow=createFlow(),flowRight=createFlow(!0);function memoize(func,resolver){if("function"!=typeof func||resolver&&"function"!=typeof resolver)throw new TypeError(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result),result};return memoized.cache=new memoize.Cache,memoized}var modArgs=restParam(function(func,transforms){if(transforms=baseFlatten(transforms),"function"!=typeof func||!arrayEvery(transforms,baseIsFunction))throw new TypeError(FUNC_ERROR_TEXT);var length=transforms.length;return restParam(function(args){for(var index=nativeMin(args.length,length);index--;)args[index]=transforms[index](args[index]);return func.apply(this,args)})});function negate(predicate){if("function"!=typeof predicate)throw new TypeError(FUNC_ERROR_TEXT);return function(){return!predicate.apply(this,arguments)}}function once(func){return before(2,func)}var partial=createPartial(PARTIAL_FLAG),partialRight=createPartial(PARTIAL_RIGHT_FLAG),rearg=restParam(function(func,indexes){return createWrapper(func,REARG_FLAG,undefined,undefined,undefined,baseFlatten(indexes))});function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);++indexother}function gte(value,other){return value>=other}function isArguments(value){return isObjectLike(value)&&isArrayLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")}var isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag};function isBoolean(value){return!0===value||!1===value||isObjectLike(value)&&objToString.call(value)==boolTag}function isDate(value){return isObjectLike(value)&&objToString.call(value)==dateTag}function isElement(value){return!!value&&1===value.nodeType&&isObjectLike(value)&&!isPlainObject(value)}function isEmpty(value){return null==value||(isArrayLike(value)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!value.length:!keys(value).length)}function isEqual(value,other,customizer,thisArg){customizer="function"==typeof customizer?bindCallback(customizer,thisArg,3):undefined;var result=customizer?customizer(value,other):undefined;return result===undefined?baseIsEqual(value,other,customizer):!!result}function isError(value){return isObjectLike(value)&&"string"==typeof value.message&&objToString.call(value)==errorTag}function isFinite(value){return"number"==typeof value&&nativeIsFinite(value)}function isFunction(value){return isObject(value)&&objToString.call(value)==funcTag}function isObject(value){var type=typeof value;return!!value&&("object"==type||"function"==type)}function isMatch(object,source,customizer,thisArg){return customizer="function"==typeof customizer?bindCallback(customizer,thisArg,3):undefined,baseIsMatch(object,getMatchData(source),customizer)}function isNaN(value){return isNumber(value)&&value!=+value}function isNative(value){return null!=value&&(isFunction(value)?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value))}function isNull(value){return null===value}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isPlainObject(value){var Ctor;if(!isObjectLike(value)||objToString.call(value)!=objectTag||isArguments(value)||!hasOwnProperty.call(value,"constructor")&&"function"==typeof(Ctor=value.constructor)&&!(Ctor instanceof Ctor))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function isRegExp(value){return isObject(value)&&objToString.call(value)==regexpTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function isUndefined(value){return value===undefined}function lt(value,other){return value0;++index=nativeMin(start,end)&&value=0&&string.indexOf(target,position)==position}function escape(string){return string=baseToString(string),string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,escapeRegExpChar):string||"(?:)"}var kebabCase=createCompounder(function(result,word,index){return result+(index?"-":"")+word.toLowerCase()});function pad(string,length,chars){string=baseToString(string),length=+length;var strLength=string.length;if(strLength>=length||!nativeIsFinite(length))return string;var mid=(length-strLength)/2,leftLength=nativeFloor(mid);return chars=createPadding("",nativeCeil(mid),chars),chars.slice(0,leftLength)+string+chars}var padLeft=createPadDir(),padRight=createPadDir(!0);function parseInt(string,radix,guard){return(guard?isIterateeCall(string,radix,guard):null==radix)?radix=0:radix&&(radix=+radix),string=trim(string),nativeParseInt(string,radix||(reHasHexPrefix.test(string)?16:10))}function repeat(string,n){var result="";if(string=baseToString(string),(n=+n)<1||!string||!nativeIsFinite(n))return result;do{n%2&&(result+=string),n=nativeFloor(n/2),string+=string}while(n);return result}var snakeCase=createCompounder(function(result,word,index){return result+(index?"_":"")+word.toLowerCase()}),startCase=createCompounder(function(result,word,index){return result+(index?" ":"")+(word.charAt(0).toUpperCase()+word.slice(1))});function startsWith(string,target,position){return string=baseToString(string),position=null==position?0:nativeMin(position<0?0:+position||0,string.length),string.lastIndexOf(target,position)==position}function template(string,options,otherOptions){var settings=lodash.templateSettings;otherOptions&&isIterateeCall(string,options,otherOptions)&&(options=otherOptions=undefined),string=baseToString(string),options=assignWith(baseAssign({},otherOptions||options),settings,assignOwnDefaults);var isEscaping,isEvaluating,imports=assignWith(baseAssign({},options.imports),settings.imports,assignOwnDefaults),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys),index=0,interpolate=options.interpolate||reNoMatch,source="__p += '",reDelimiters=RegExp((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g"),sourceURL="//# sourceURL="+("sourceURL"in options?options.sourceURL:"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){return interpolateValue||(interpolateValue=esTemplateValue),source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar),escapeValue&&(isEscaping=!0,source+="' +\n__e("+escapeValue+") +\n'"), evaluateValue&&(isEvaluating=!0,source+="';\n"+evaluateValue+";\n__p += '"),interpolateValue&&(source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'"),index=offset+match.length,match}),source+="';\n";var variable=options.variable;variable||(source="with (obj) {\n"+source+"\n}\n"),source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result=attempt(function(){return Function(importsKeys,sourceURL+"return "+source).apply(undefined,importsValues)});if(result.source=source,isError(result))throw result;return result}function trim(string,chars,guard){var value=string;return(string=baseToString(string))?(guard?isIterateeCall(value,chars,guard):null==chars)?string.slice(trimmedLeftIndex(string),trimmedRightIndex(string)+1):(chars+="",string.slice(charsLeftIndex(string,chars),charsRightIndex(string,chars)+1)):string}function trimLeft(string,chars,guard){var value=string;return string=baseToString(string),string?(guard?isIterateeCall(value,chars,guard):null==chars)?string.slice(trimmedLeftIndex(string)):string.slice(charsLeftIndex(string,chars+"")):string}function trimRight(string,chars,guard){var value=string;return string=baseToString(string),string?(guard?isIterateeCall(value,chars,guard):null==chars)?string.slice(0,trimmedRightIndex(string)+1):string.slice(0,charsRightIndex(string,chars+"")+1):string}function trunc(string,options,guard){guard&&isIterateeCall(string,options,guard)&&(options=undefined);var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(null!=options)if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?+options.length||0:length,omission="omission"in options?baseToString(options.omission):omission}else length=+options||0;if(string=baseToString(string),length>=string.length)return string;var end=length-omission.length;if(end<1)return omission;var result=string.slice(0,end);if(null==separator)return result+omission;if(isRegExp(separator)){if(string.slice(end).search(separator)){var match,newEnd,substring=string.slice(0,end);for(separator.global||(separator=RegExp(separator.source,(reFlags.exec(separator)||"")+"g")),separator.lastIndex=0;match=separator.exec(substring);)newEnd=match.index;result=result.slice(0,null==newEnd?end:newEnd)}}else if(string.indexOf(separator,end)!=end){var index=result.lastIndexOf(separator);index>-1&&(result=result.slice(0,index))}return result+omission}function unescape(string){return string=baseToString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}function words(string,pattern,guard){return guard&&isIterateeCall(string,pattern,guard)&&(pattern=undefined),string=baseToString(string),string.match(pattern||reWords)||[]}var attempt=restParam(function(func,args){try{return func.apply(undefined,args)}catch(e){return isError(e)?e:new Error(e)}});function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=undefined),isObjectLike(func)?matches(func):baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function matches(source){return baseMatches(baseClone(source,!0))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,!0))}var method=restParam(function(path,args){return function(object){return invokePath(object,path,args)}}),methodOf=restParam(function(object,args){return function(path){return invokePath(object,path,args)}});function mixin(object,source,options){if(null==options){var isObj=isObject(source),props=isObj?keys(source):undefined,methodNames=props&&props.length?baseFunctions(source,props):undefined;(methodNames?methodNames.length:isObj)||(methodNames=!1,options=source,source=object,object=this)}methodNames||(methodNames=baseFunctions(source,keys(source)));var chain=!0,index=-1,isFunc=isFunction(object),length=methodNames.length;!1===options?chain=!1:isObject(options)&&"chain"in options&&(chain=options.chain);for(;++index0||end<0)?new LazyWrapper(result):(start<0?result=result.takeRight(-start):start&&(result=result.drop(start)),end!==undefined&&(end=+end||0,result=end<0?result.dropRight(-end):result.take(end-start)),result)},LazyWrapper.prototype.takeRightWhile=function(predicate,thisArg){return this.reverse().takeWhile(predicate,thisArg).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(POSITIVE_INFINITY)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|map|reject)|While$/.test(methodName),retUnwrapped=/^(?:first|last)$/.test(methodName),lodashFunc=lodash[retUnwrapped?"take"+("last"==methodName?"Right":""):methodName];lodashFunc&&(lodash.prototype[methodName]=function(){var args=retUnwrapped?[1]:arguments,chainAll=this.__chain__,value=this.__wrapped__,isHybrid=!!this.__actions__.length,isLazy=value instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value);useLazy&&checkIteratee&&"function"==typeof iteratee&&1!=iteratee.length&&(isLazy=useLazy=!1);var interceptor=function(value){return retUnwrapped&&chainAll?lodashFunc(value,1)[0]:lodashFunc.apply(undefined,arrayPush([value],args))},action={func:thru,args:[interceptor],thisArg:undefined},onlyLazy=isLazy&&!isHybrid;if(retUnwrapped&&!chainAll)return onlyLazy?(value=value.clone(),value.__actions__.push(action),func.call(value)):lodashFunc.call(undefined,this.value())[0];if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result=func.apply(value,args);return result.__actions__.push(action),new LodashWrapper(result,chainAll)}return this.thru(interceptor)})}),arrayEach(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(methodName){var func=(/^(?:replace|split)$/.test(methodName)?stringProto:arrayProto)[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:join|pop|replace|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;return retUnwrapped&&!this.__chain__?func.apply(this.value(),args):this[chainName](function(value){return func.apply(value,args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name;(realNames[key]||(realNames[key]=[])).push({name:methodName,func:lodashFunc})}}),realNames[createHybridWrapper(undefined,BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.concat=wrapperConcat,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toString=wrapperToString,lodash.prototype.run=lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.collect=lodash.prototype.map,lodash.prototype.head=lodash.prototype.first,lodash.prototype.select=lodash.prototype.filter,lodash.prototype.tail=lodash.prototype.rest,lodash}var _=runInContext();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(root._=_,define(function(){return _})):freeExports&&freeModule?moduleExports?(freeModule.exports=_)._=_:freeExports._=_:root._=_}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],28:[function(require,module,exports){"use strict";var NumberIsNaN=function(value){return value!==value};module.exports=function(a,b){return 0===a&&0===b?1/a==1/b:a===b||!(!NumberIsNaN(a)||!NumberIsNaN(b))}},{}],29:[function(require,module,exports){"use strict";var keysShim;if(!Object.keys){var has=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,isArgs=require("./isArguments"),isEnumerable=Object.prototype.propertyIsEnumerable,hasDontEnumBug=!isEnumerable.call({toString:null},"toString"),hasProtoEnumBug=isEnumerable.call(function(){},"prototype"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(o){var ctor=o.constructor;return ctor&&ctor.prototype===o},excludedKeys={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hasAutomationEqualityBug=function(){if("undefined"==typeof window)return!1;for(var k in window)try{if(!excludedKeys["$"+k]&&has.call(window,k)&&null!==window[k]&&"object"==typeof window[k])try{equalsConstructorPrototype(window[k])}catch(e){return!0}}catch(e){return!0}return!1}(),equalsConstructorPrototypeIfNotBuggy=function(o){if("undefined"==typeof window||!hasAutomationEqualityBug)return equalsConstructorPrototype(o);try{return equalsConstructorPrototype(o)}catch(e){return!1}};keysShim=function(object){var isObject=null!==object&&"object"==typeof object,isFunction="[object Function]"===toStr.call(object),isArguments=isArgs(object),isString=isObject&&"[object String]"===toStr.call(object),theKeys=[];if(!isObject&&!isFunction&&!isArguments)throw new TypeError("Object.keys called on a non-object");var skipProto=hasProtoEnumBug&&isFunction;if(isString&&object.length>0&&!has.call(object,0))for(var i=0;i0)for(var j=0;j=0&&"[object Function]"===toStr.call(value.callee)),isArgs}},{}],32:[function(require,module,exports){"use strict";var strictUriEncode=require("strict-uri-encode");exports.extract=function(str){return str.split("?")[1]||""},exports.parse=function(str){return"string"!=typeof str?{}:(str=str.trim().replace(/^(\?|#|&)/,""),str?str.split("&").reduce(function(ret,param){var parts=param.replace(/\+/g," ").split("="),key=parts.shift(),val=parts.length>0?parts.join("="):void 0;return key=decodeURIComponent(key),val=void 0===val?null:decodeURIComponent(val),ret.hasOwnProperty(key)?Array.isArray(ret[key])?ret[key].push(val):ret[key]=[ret[key],val]:ret[key]=val,ret},{}):{})},exports.stringify=function(obj){return obj?Object.keys(obj).sort().map(function(key){var val=obj[key];return void 0===val?"":null===val?key:Array.isArray(val)?val.slice().sort().map(function(val2){return strictUriEncode(key)+"="+strictUriEncode(val2)}).join("&"):strictUriEncode(key)+"="+strictUriEncode(val)}).filter(function(x){return x.length>0}).join("&"):""}},{"strict-uri-encode":59}],33:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.loopAsync=loopAsync,exports.mapAsync=mapAsync;function loopAsync(turns,work,callback){var currentTurn=0,isDone=!1,sync=!1,hasNext=!1,doneArgs=void 0;function done(){if(isDone=!0,sync)return void(doneArgs=[].concat(Array.prototype.slice.call(arguments)));callback.apply(this,arguments)}function next(){if(!isDone&&(hasNext=!0,!sync)){for(sync=!0;!isDone&¤tTurn=turns&&hasNext&&(isDone=!0,callback())}}next()}function mapAsync(array,work,callback){var length=array.length,values=[];if(0===length)return callback(null,values);var isDone=!1,doneCount=0;function done(index,error,value){isDone||(error?(isDone=!0,callback(error)):(values[index]=value,(isDone=++doneCount===length)&&callback(null,values)))}array.forEach(function(item,index){work(item,index,function(error,value){done(index,error,value)})})}},{}],34:[function(require,module,exports){"use strict";exports.__esModule=!0;var _react=require("react"),_react2=_interopRequireDefault(_react),_routerWarning=require("./routerWarning"),_invariant=(_interopRequireDefault(_routerWarning),require("invariant")),_invariant2=_interopRequireDefault(_invariant),_RouteUtils=require("./RouteUtils"),_InternalPropTypes=require("./InternalPropTypes");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var func=_react2.default.PropTypes.func,IndexRoute=_react2.default.createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(element,parentRoute){parentRoute&&(parentRoute.indexRoute=(0,_RouteUtils.createRouteFromReactElement)(element))}},propTypes:{path:_InternalPropTypes.falsy,component:_InternalPropTypes.component,components:_InternalPropTypes.components,getComponent:func,getComponents:func},render:function(){(0,_invariant2.default)(!1)}});exports.default=IndexRoute,module.exports=exports.default},{"./InternalPropTypes":35,"./RouteUtils":38,"./routerWarning":53,invariant:23,react:"react"}],35:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.routes=exports.route=exports.components=exports.component=exports.history=void 0,exports.falsy=falsy;var _react=require("react"),func=_react.PropTypes.func,object=_react.PropTypes.object,arrayOf=_react.PropTypes.arrayOf,oneOfType=_react.PropTypes.oneOfType,element=_react.PropTypes.element,shape=_react.PropTypes.shape,string=_react.PropTypes.string;function falsy(props,propName,componentName){if(props[propName])return new Error("<"+componentName+'> should not have a "'+propName+'" prop')}var component=(exports.history=shape({listen:func.isRequired,push:func.isRequired,replace:func.isRequired,go:func.isRequired,goBack:func.isRequired,goForward:func.isRequired}),exports.component=oneOfType([func,string])),route=(exports.components=oneOfType([component,object]),exports.route=oneOfType([object,element]));exports.routes=oneOfType([route,arrayOf(route)])},{react:"react"}],36:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.compilePattern=compilePattern,exports.matchPattern=matchPattern,exports.getParamNames=getParamNames,exports.getParams=getParams,exports.formatPattern=formatPattern;var _invariant=require("invariant"),_invariant2=_interopRequireDefault(_invariant);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function escapeRegExp(string){return string.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _compilePattern(pattern){for(var regexpSource="",paramNames=[],tokens=[],match=void 0,lastIndex=0,matcher=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;match=matcher.exec(pattern);)match.index!==lastIndex&&(tokens.push(pattern.slice(lastIndex,match.index)),regexpSource+=escapeRegExp(pattern.slice(lastIndex,match.index))),match[1]?(regexpSource+="([^/]+)",paramNames.push(match[1])):"**"===match[0]?(regexpSource+="(.*)",paramNames.push("splat")):"*"===match[0]?(regexpSource+="(.*?)",paramNames.push("splat")):"("===match[0]?regexpSource+="(?:":")"===match[0]&&(regexpSource+=")?"),tokens.push(match[0]),lastIndex=matcher.lastIndex;return lastIndex!==pattern.length&&(tokens.push(pattern.slice(lastIndex,pattern.length)),regexpSource+=escapeRegExp(pattern.slice(lastIndex,pattern.length))),{pattern:pattern,regexpSource:regexpSource,paramNames:paramNames,tokens:tokens}}var CompiledPatternsCache=Object.create(null);function compilePattern(pattern){return CompiledPatternsCache[pattern]||(CompiledPatternsCache[pattern]=_compilePattern(pattern)),CompiledPatternsCache[pattern]}function matchPattern(pattern,pathname){"/"!==pattern.charAt(0)&&(pattern="/"+pattern);var _compilePattern2=compilePattern(pattern),regexpSource=_compilePattern2.regexpSource,paramNames=_compilePattern2.paramNames,tokens=_compilePattern2.tokens;"/"!==pattern.charAt(pattern.length-1)&&(regexpSource+="/?"),"*"===tokens[tokens.length-1]&&(regexpSource+="$");var match=pathname.match(new RegExp("^"+regexpSource,"i"));if(null==match)return null;var matchedPath=match[0],remainingPathname=pathname.substr(matchedPath.length);if(remainingPathname){if("/"!==matchedPath.charAt(matchedPath.length-1))return null;remainingPathname="/"+remainingPathname}return{remainingPathname:remainingPathname,paramNames:paramNames,paramValues:match.slice(1).map(function(v){return v&&decodeURIComponent(v)})}}function getParamNames(pattern){return compilePattern(pattern).paramNames}function getParams(pattern,pathname){var match=matchPattern(pattern,pathname);if(!match)return null;var paramNames=match.paramNames,paramValues=match.paramValues,params={};return paramNames.forEach(function(paramName,index){params[paramName]=paramValues[index]}),params}function formatPattern(pattern,params){params=params||{};for(var _compilePattern3=compilePattern(pattern),tokens=_compilePattern3.tokens,parenCount=0,pathname="",splatIndex=0,token=void 0,paramName=void 0,paramValue=void 0,i=0,len=tokens.length;i0||(0,_invariant2.default)(!1),null!=paramValue&&(pathname+=encodeURI(paramValue))):"("===token?parenCount+=1:")"===token?parenCount-=1:":"===token.charAt(0)?(paramName=token.substring(1),paramValue=params[paramName],null!=paramValue||parenCount>0||(0,_invariant2.default)(!1),null!=paramValue&&(pathname+=encodeURIComponent(paramValue))):pathname+=token;return pathname.replace(/\/+/g,"/")}},{invariant:23}],37:[function(require,module,exports){"use strict";exports.__esModule=!0;var _react=require("react"),_react2=_interopRequireDefault(_react),_invariant=require("invariant"),_invariant2=_interopRequireDefault(_invariant),_RouteUtils=require("./RouteUtils"),_InternalPropTypes=require("./InternalPropTypes");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _React$PropTypes=_react2.default.PropTypes,string=_React$PropTypes.string,func=_React$PropTypes.func,Route=_react2.default.createClass({displayName:"Route",statics:{createRouteFromReactElement:_RouteUtils.createRouteFromReactElement},propTypes:{path:string,component:_InternalPropTypes.component,components:_InternalPropTypes.components,getComponent:func,getComponents:func},render:function(){(0,_invariant2.default)(!1)}});exports.default=Route,module.exports=exports.default},{"./InternalPropTypes":35,"./RouteUtils":38,invariant:23,react:"react"}],38:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}function isDeprecatedHistory(history){return!history||!history.__v2_compatible__}function isUnsupportedHistory(history){return history&&history.getCurrentLocation}var _React$PropTypes=_react2.default.PropTypes,func=_React$PropTypes.func,object=_React$PropTypes.object,Router=_react2.default.createClass({displayName:"Router",propTypes:{history:object,children:_InternalPropTypes.routes,routes:_InternalPropTypes.routes,render:func,createElement:func,onError:func,onUpdate:func,parseQueryString:func,stringifyQuery:func,matchContext:object},getDefaultProps:function(){return{render:function(props){return _react2.default.createElement(_RouterContext2.default,props)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(error){if(!this.props.onError)throw error;this.props.onError.call(this,error)},componentWillMount:function(){var _this=this,_props=this.props,_createRouterObjects=(_props.parseQueryString,_props.stringifyQuery,this.createRouterObjects()),history=_createRouterObjects.history,transitionManager=_createRouterObjects.transitionManager,router=_createRouterObjects.router;this._unlisten=transitionManager.listen(function(error,state){error?_this.handleError(error):_this.setState(state,_this.props.onUpdate)}),this.history=history,this.router=router},createRouterObjects:function(){var matchContext=this.props.matchContext;if(matchContext)return matchContext;var history=this.props.history,_props2=this.props,routes=_props2.routes,children=_props2.children;isUnsupportedHistory(history)&&(0,_invariant2.default)(!1),isDeprecatedHistory(history)&&(history=this.wrapDeprecatedHistory(history));var transitionManager=(0,_createTransitionManager2.default)(history,(0,_RouteUtils.createRoutes)(routes||children)),router=(0,_RouterUtils.createRouterObject)(history,transitionManager);return{history:(0,_RouterUtils.createRoutingHistory)(history,transitionManager),transitionManager:transitionManager,router:router}},wrapDeprecatedHistory:function(history){var _props3=this.props,parseQueryString=_props3.parseQueryString,stringifyQuery=_props3.stringifyQuery,createHistory=void 0;return createHistory=history?function(){return history}:_createHashHistory2.default,(0,_useQueries2.default)(createHistory)({parseQueryString:parseQueryString,stringifyQuery:stringifyQuery})},componentWillReceiveProps:function(nextProps){},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function(){var _state=this.state,location=_state.location,routes=_state.routes,params=_state.params,components=_state.components,_props4=this.props,createElement=_props4.createElement,render=_props4.render,props=_objectWithoutProperties(_props4,["createElement","render"]);return null==location?null:(Object.keys(Router.propTypes).forEach(function(propType){return delete props[propType]}),render(_extends({},props,{history:this.history,router:this.router,location:location,routes:routes,params:params,components:components,createElement:createElement})))}});exports.default=Router,module.exports=exports.default},{"./InternalPropTypes":35,"./RouteUtils":38,"./RouterContext":40,"./RouterUtils":41,"./createTransitionManager":46,"./routerWarning":53,"history/lib/createHashHistory":15,"history/lib/useQueries":21,invariant:23,react:"react"}],40:[function(require,module,exports){"use strict";exports.__esModule=!0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj},_extends=Object.assign||function(target){for(var i=1;i2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];_warning2.default.apply(void 0,[falseToWarn,message].concat(args))}function _resetWarned(){warned={}}},{warning:60}],54:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default=useRouterHistory;var _useQueries=require("history/lib/useQueries"),_useQueries2=_interopRequireDefault(_useQueries),_useBasename=require("history/lib/useBasename"),_useBasename2=_interopRequireDefault(_useBasename);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function useRouterHistory(createHistory){return function(options){var history=(0,_useQueries2.default)((0,_useBasename2.default)(createHistory))(options);return history.__v2_compatible__=!0,history}}module.exports=exports.default},{"history/lib/useBasename":20,"history/lib/useQueries":21}],55:[function(require,module,exports){"use strict";var toObject=Object,TypeErr=TypeError;module.exports=function(){if(null!=this&&this!==toObject(this))throw new TypeErr("RegExp.prototype.flags getter called on non-object");var result="";return this.global&&(result+="g"),this.ignoreCase&&(result+="i"),this.multiline&&(result+="m"),this.dotAll&&(result+="s"),this.unicode&&(result+="u"),this.sticky&&(result+="y"),result}},{}],56:[function(require,module,exports){"use strict";var define=require("define-properties"),implementation=require("./implementation"),getPolyfill=require("./polyfill"),shim=require("./shim"),flagsBound=Function.call.bind(implementation);define(flagsBound,{getPolyfill:getPolyfill,implementation:implementation,shim:shim}),module.exports=flagsBound},{"./implementation":55,"./polyfill":57,"./shim":58,"define-properties":3}],57:[function(require,module,exports){"use strict";var implementation=require("./implementation"),supportsDescriptors=require("define-properties").supportsDescriptors,gOPD=Object.getOwnPropertyDescriptor,TypeErr=TypeError;module.exports=function(){if(!supportsDescriptors)throw new TypeErr("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var descriptor=gOPD(RegExp.prototype,"flags");if(descriptor&&"function"==typeof descriptor.get&&"boolean"==typeof/a/.dotAll)return descriptor.get}return implementation}},{"./implementation":55,"define-properties":3}],58:[function(require,module,exports){"use strict";var supportsDescriptors=require("define-properties").supportsDescriptors,getPolyfill=require("./polyfill"),gOPD=Object.getOwnPropertyDescriptor,defineProperty=Object.defineProperty,TypeErr=TypeError,getProto=Object.getPrototypeOf,regex=/a/;module.exports=function(){ if(!supportsDescriptors||!getProto)throw new TypeErr("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var polyfill=getPolyfill(),proto=getProto(regex),descriptor=gOPD(proto,"flags");return descriptor&&descriptor.get===polyfill||defineProperty(proto,"flags",{configurable:!0,enumerable:!1,get:polyfill}),polyfill}},{"./polyfill":57,"define-properties":3}],59:[function(require,module,exports){"use strict";module.exports=function(str){return encodeURIComponent(str).replace(/[!'()*]/g,function(c){return"%"+c.charCodeAt(0).toString(16).toUpperCase()})}},{}],60:[function(require,module,exports){arguments[4][22][0].apply(exports,arguments)},{dup:22}],61:[function(require,module,exports){"use strict";exports.__esModule=!0;var _extends=Object.assign||function(target){for(var i=1;i0?function(){var percent=parseInt(width.replace("%",""));_this2._crtPercentSizeObserver=function(){prepareState({dialogWidth:DOMUtils.getViewportWidth()*percent/100,dialogHeight:DOMUtils.getViewportHeight()*percent/100})},DOMUtils.observeWindowResize(_this2._crtPercentSizeObserver),_this2._crtPercentSizeObserver()}():prepareState({dialogWidth:width,dialogHeight:0})}if(component.getPadding&&prepareState({padding:component.getPadding()}),prepareState(component.scrollBody&&component.scrollBody()?{scrollBody:!0}:{scrollBody:!1}),component.setModal&&component.setModal(this),prepareState(component.isModal?{modal:component.isModal()}:{modal:!1}),prepareState(component.useBlur?{blur:component.useBlur()}:{blur:!1}),returnState)return state;this.setState(state)},computeBackgroundData:function(){var pydioMainElement=document.getElementById(window.pydio.Parameters.get("MAIN_ELEMENT")),reference=pydioMainElement.querySelector("div[data-reactroot]");if(reference){var url=window.getComputedStyle(reference).getPropertyValue("background-image"),backgroundImage=new Image;backgroundImage.src=url.replace(/"/g,"").replace(/url\(|\)$/gi,"");var oThis=this;backgroundImage.onload=function(){var width=this.width,height=this.height,screenWidth=DOMUtils.getViewportWidth(),screenHeight=DOMUtils.getViewportHeight(),imageRatio=width/height,coverRatio=screenWidth/screenHeight,coverHeight=void 0,scale=void 0,coverWidth=void 0;imageRatio>=coverRatio?(coverHeight=screenHeight,scale=coverHeight/height,coverWidth=width*scale):(coverWidth=screenWidth,scale=coverWidth/width,coverHeight=height*scale);var cover=coverWidth+"px "+coverHeight+"px";oThis.setState({backgroundImage:url,backgroundSize:cover})}}},render:function(){var modalContent,state=this.state,styles=(this.sizes,this.styles),blurStyles=this.blurStyles,async=state.async,componentData=state.componentData,title=state.title,actions=state.actions,modal=state.modal,open=state.open,dialogWidth=state.dialogWidth,padding=state.padding,scrollBody=state.scrollBody,blur=state.blur,className=state.className;componentData&&(modalContent=async?React.createElement(_AsyncComponent2.default,_extends({},this.props,{namespace:componentData.namespace,componentName:componentData.compName,ref:"modalAsync",onLoad:this.initModalFromComponent,dismiss:this.hide,modalData:{modal:this,payload:componentData.payload}})):componentData);var maxWidth=dialogWidth;this.props.pydio.UI.MOBILE_EXTENSIONS&&(maxWidth=blur?"97%":"87%");var dialogRoot=_extends({},styles.dialogRoot),dialogBody=_extends({},styles.dialogBody,{display:"flex"}),dialogContent=_extends({},styles.dialogContent,{width:dialogWidth,maxWidth:maxWidth});state.dialogHeight?dialogContent.minHeight=dialogBody.minHeight=state.dialogHeight:dialogContent.minHeight=dialogBody.minHeight=null;var dialogTitle=_extends({},styles.dialogTitle),overlayStyle=void 0;return padding||(dialogRoot=_extends({},dialogRoot,{padding:0}),dialogBody=_extends({},dialogBody,{padding:0}),dialogContent=_extends({},dialogContent,{padding:0})),""===title&&(dialogTitle=_extends({},dialogTitle,{display:"none"})),blur&&(overlayStyle=_extends({},blurStyles.overlayStyle),dialogContent=_extends({},dialogContent,blurStyles.dialogContent),dialogBody=_extends({},dialogBody,blurStyles.dialogBody),dialogTitle=_extends({},dialogTitle,blurStyles.dialogTitle),className=className?className+" dialogRootBlur":"dialogRootBlur",dialogRoot=_extends({},dialogRoot,{backgroundImage:"url()",backgroundPosition:"center center",backgroundSize:"cover"}),modalContent=React.createElement("span",null,React.createElement(_CSSBlurBackground2.default,null),modalContent)),React.createElement(Dialog,{ref:"dialog",title:title,actions:actions,modal:modal,className:className,open:open,contentClassName:className,repositionOnUpdate:!1,autoScrollBodyContent:scrollBody,onRequestClose:this.props.onDismiss,contentStyle:dialogContent,bodyStyle:dialogBody,titleStyle:dialogTitle,style:dialogRoot,overlayStyle:overlayStyle},modalContent)}});exports.default=AsyncModal=_PydioContextConsumer2.default(AsyncModal),exports.default=AsyncModal,module.exports=exports.default},{"../AsyncComponent":61,"../PydioContextConsumer":66,"./CSSBlurBackground":76,"material-ui":"material-ui",react:"react"}],76:[function(require,module,exports){"use strict";exports.__esModule=!0;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _require=require("react"),Component=_require.Component,CSSBlurBackground=(_require.PropTypes,function(_Component){_inherits(CSSBlurBackground,_Component);function CSSBlurBackground(props,context){_classCallCheck(this,CSSBlurBackground),_Component.call(this,props,context),this.state={}}return CSSBlurBackground.prototype.componentDidMount=function(){this.activateResizeObserver()},CSSBlurBackground.prototype.componentWillUnmount=function(){this.deactivateResizeObserver()},CSSBlurBackground.prototype.activateResizeObserver=function(){var _this=this;this._resizeObserver||(this._resizeObserver=function(){_this.computeBackgroundData()},DOMUtils.observeWindowResize(this._resizeObserver),this.computeBackgroundData())},CSSBlurBackground.prototype.deactivateResizeObserver=function(){this._resizeObserver&&(DOMUtils.stopObservingWindowResize(this._resizeObserver),this._resizeObserver=null)},CSSBlurBackground.prototype.computeBackgroundData=function(){var pydioMainElement=document.getElementById(window.pydio.Parameters.get("MAIN_ELEMENT")),reference=pydioMainElement.querySelector("div[data-reactroot]");if(reference){if(this.backgroundImageData)return void this.computeRatio();var url=window.getComputedStyle(reference).getPropertyValue("background-image"),backgroundImage=new Image;backgroundImage.src=url.replace(/"/g,"").replace(/url\(|\)$/gi,"");var oThis=this;backgroundImage.onload=function(){var width=this.width,height=this.height;oThis.backgroundImageData={url:url,width:width,height:height},oThis.computeRatio()}}},CSSBlurBackground.prototype.computeRatio=function(){var _backgroundImageData=this.backgroundImageData,width=_backgroundImageData.width,height=_backgroundImageData.height,url=_backgroundImageData.url,screenWidth=DOMUtils.getViewportWidth(),screenHeight=DOMUtils.getViewportHeight(),imageRatio=width/height,coverRatio=screenWidth/screenHeight,coverHeight=void 0,scale=void 0,coverWidth=void 0;imageRatio>=coverRatio?(coverHeight=screenHeight,scale=coverHeight/height,coverWidth=width*scale):(coverWidth=screenWidth,scale=coverWidth/width,coverHeight=height*scale);var cover=coverWidth+"px "+coverHeight+"px";this.setState({backgroundImage:url,backgroundSize:cover})},CSSBlurBackground.prototype.render=function(){var _state=this.state,backgroundImage=_state.backgroundImage,backgroundSize=_state.backgroundSize;return backgroundImage?React.createElement("style",{dangerouslySetInnerHTML:{__html:[".react-mui-context div[data-reactroot].dialogRootBlur > div > div.dialogRootBlur:before {"," background-image: "+backgroundImage+";"," background-size: "+backgroundSize+";","}"].join("\n")}}):null},CSSBlurBackground}(Component));exports.default=CSSBlurBackground,module.exports=exports.default},{react:"react"}],77:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default={getCancelCallback:function(){return this.cancel?this.cancel:this.props.onDismiss}},module.exports=exports.default},{}],78:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _ActionDialogMixin=require("./ActionDialogMixin"),_ActionDialogMixin2=_interopRequireDefault(_ActionDialogMixin),_CancelButtonProviderMixin=require("./CancelButtonProviderMixin"),_CancelButtonProviderMixin2=_interopRequireDefault(_CancelButtonProviderMixin),_SubmitButtonProviderMixin=require("./SubmitButtonProviderMixin"),_SubmitButtonProviderMixin2=_interopRequireDefault(_SubmitButtonProviderMixin);exports.default=React.createClass({displayName:"ConfirmDialog",propTypes:{message:React.PropTypes.string.isRequired,validCallback:React.PropTypes.func.isRequired},mixins:[_ActionDialogMixin2.default,_CancelButtonProviderMixin2.default,_SubmitButtonProviderMixin2.default],getDefaultProps:function(){return{dialogTitle:"Confirm",dialogIsModal:!0}},submit:function(){this.props.validCallback(),this.dismiss()},render:function(){return React.createElement("div",null,this.props.message)}}),module.exports=exports.default},{"./ActionDialogMixin":73,"./CancelButtonProviderMixin":77,"./SubmitButtonProviderMixin":84}],79:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _PydioContextConsumer=require("../PydioContextConsumer"),_PydioContextConsumer2=_interopRequireDefault(_PydioContextConsumer),React=require("react"),ReactDOM=require("react-dom"),Clipboard=require("clipboard"),_require=require("material-ui"),Snackbar=_require.Snackbar,Divider=_require.Divider,FlatButton=_require.FlatButton,TextField=_require.TextField,ErrorStack=function(_React$Component){_inherits(ErrorStack,_React$Component);function ErrorStack(props){_classCallCheck(this,ErrorStack),_React$Component.call(this,props),this.state={copyMessage:!1,copyError:!1}}return ErrorStack.prototype.componentDidMount=function(){this._attachClipboard()},ErrorStack.prototype.componentDidUpdate=function(){this._attachClipboard()},ErrorStack.prototype.componentWillUnmount=function(){this._detachClipboard()},ErrorStack.prototype._attachClipboard=function(){var _this=this;this._detachClipboard(),this._button&&(this._clip=new Clipboard(this._button,{text:function(trigger){return _this.props.fullMessage}}),this._clip.on("success",function(){_this.setState({copyMessage:!0},_this.clearCopyMessage)}),this._clip.on("error",function(){_this.setState({copyError:!0})}))},ErrorStack.prototype._detachClipboard=function(){this._clip&&this._clip.destroy()},ErrorStack.prototype.clearCopyMessage=function(){setTimeout(function(){this.setState({copyMessage:!1})}.bind(this),5e3)},ErrorStack.prototype.render=function(){var _this2=this,_state=this.state,copyMessage=_state.copyMessage,copyError=_state.copyError,_props=this.props,errorStack=_props.errorStack,fullMessage=_props.fullMessage,pydio=_props.pydio;return React.createElement("div",null,React.createElement(Divider,{style:{marginTop:10,marginBottom:10}}),React.createElement("div",{style:{display:"flex",alignItems:"center"}},React.createElement("div",{style:{flex:1,fontSize:16,fontWeight:500}},pydio.MessageHash[622]),React.createElement(FlatButton,{secondary:!0,ref:function(e){_this2._button=ReactDOM.findDOMNode(e)},label:copyMessage?pydio.MessageHash[624]:pydio.MessageHash[623]})),copyError&&React.createElement(TextField,{fullWidth:!0,multiLine:!0,value:fullMessage,textareaStyle:{fontSize:13,color:"white"},ref:"fullMessageCopy"}),!copyError&&errorStack.map(function(m){return React.createElement("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},m)}))},ErrorStack}(React.Component),MessageBar=function(_React$Component2){_inherits(MessageBar,_React$Component2);function MessageBar(props){_classCallCheck(this,MessageBar),_React$Component2.call(this,props),this.state={open:!1}}return MessageBar.prototype.componentDidMount=function(){this.props.getPydio().UI.registerMessageBar(this)},MessageBar.prototype.componentWillUnmount=function(){this.props.getPydio().UI.unregisterMessageBar()},MessageBar.prototype.error=function(message,actionLabel,actionCallback){this.setState({open:!0,errorStatus:!0,message:message,actionLabel:actionLabel,actionCallback:actionCallback})},MessageBar.prototype.info=function(message,actionLabel,actionCallback){this.setState({open:!0,errorStatus:!1,message:message,actionLabel:actionLabel,actionCallback:actionCallback})},MessageBar.prototype.handleClose=function(){this.setState({open:!1})},MessageBar.prototype.render=function(){var message=this.state.message||"",_state2=this.state,errorStatus=_state2.errorStatus,actionLabel=_state2.actionLabel,actionCallback=_state2.actionCallback,mainStack=[],errorStack=[];return message.split("\n").length?(message.split("\n").forEach(function(m){errorStatus&&m.length&&("#"===m[0]||errorStack.length)?errorStack.push(m):mainStack.push(m)}),errorStack.length&&!mainStack.length&&(mainStack=errorStack[0])):mainStack.push(message),message=React.createElement("span",null,errorStatus&&React.createElement("span",{style:{float:"left",marginRight:6},className:"mdi mdi-alert"}),mainStack.map(function(m){return React.createElement("div",null,m)}),errorStack.length>0&&React.createElement(ErrorStack,{fullMessage:message,errorStack:errorStack,pydio:this.props.pydio})),React.createElement(Snackbar,{open:this.state.open,message:message,onRequestClose:this.handleClose.bind(this),autoHideDuration:errorStatus?9e3:4e3,action:actionLabel,onActionTouchTap:actionCallback,bodyStyle:{padding:"16px 24px",height:"auto",maxHeight:200,overflowY:"auto",lineHeight:"inherit"}})},MessageBar}(React.Component);exports.default=MessageBar=_PydioContextConsumer2.default(MessageBar),exports.default=MessageBar,module.exports=exports.default},{"../PydioContextConsumer":66,clipboard:"clipboard","material-ui":"material-ui",react:"react","react-dom":"react-dom"}],80:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _AsyncModal=require("./AsyncModal"),_AsyncModal2=_interopRequireDefault(_AsyncModal),_require=require("react"),Component=_require.Component,Modal=function(_Component){_inherits(Modal,_Component);function Modal(props,context){_classCallCheck(this,Modal),_Component.call(this,props,context),this.state={open:!1}}return Modal.prototype.activityObserver=function(activityState){if("warning"===activityState.activeState){if(this.state.open&&this.state.modalData&&"ActivityWarningDialog"===this.state.modalData.compName)return;this.open("PydioReactUI","ActivityWarningDialog",{activityState:activityState})}else this.setState({open:!1,modalData:null})},Modal.prototype.componentDidMount=function(){var pydio=this.props.pydio;pydio.UI.registerModalOpener(this),this._activityObserver=this.activityObserver.bind(this),pydio.observe("activity_state_change",this._activityObserver)},Modal.prototype.componentWillUnmount=function(){var pydio=this.props.pydio;pydio.UI.unregisterModalOpener(),pydio.stopObserving("activity_state_change",this._activityObserver)},Modal.prototype.open=function(namespace,component,props){this.setState({open:!0,modalData:{namespace:namespace,compName:component,payload:props}})},Modal.prototype.handleLoad=function(){this.setState({open:!0})},Modal.prototype.handleClose=function(){this.state.open&&this.state.modalData&&"ActivityWarningDialog"===this.state.modalData.compName&&this.props.pydio.notify("user_activity"),this.setState({open:!1})},Modal.prototype.render=function(){return React.createElement(_AsyncModal2.default,{ref:"modal",open:this.state.open,componentData:this.state.modalData,onLoad:this.handleLoad.bind(this),onDismiss:this.handleClose.bind(this)})},Modal}(Component);exports.default=Modal,module.exports=exports.default},{"./AsyncModal":75,react:"react"}],81:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default=React.createClass({displayName:"NetworkLoader",componentDidMount:function(){var _this=this;this.props.pydio.observe("connection-start",function(){_this.setState({show:!0})}),this.props.pydio.observe("connection-end",function(){_this.setState({show:!1})})},getInitialState:function(){return{show:!1}},render:function(){var style={display:this.state.show?"block":"none"};return React.createElement("div",{className:"indeterminate-loader",style:style})}}),module.exports=exports.default},{}],82:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _ActionDialogMixin=require("./ActionDialogMixin"),_ActionDialogMixin2=_interopRequireDefault(_ActionDialogMixin),_CancelButtonProviderMixin=require("./CancelButtonProviderMixin"),_CancelButtonProviderMixin2=_interopRequireDefault(_CancelButtonProviderMixin),_SubmitButtonProviderMixin=require("./SubmitButtonProviderMixin"),_SubmitButtonProviderMixin2=_interopRequireDefault(_SubmitButtonProviderMixin),React=require("react"),_require=require("material-ui"),TextField=_require.TextField;exports.default=React.createClass({displayName:"PromptDialog",propTypes:{dialogTitleId:React.PropTypes.string,legendId:React.PropTypes.string,fieldLabelId:React.PropTypes.string,fieldType:React.PropTypes.oneOf(["text","password"]),submitValue:React.PropTypes.func.isRequired,defaultValue:React.PropTypes.string,defaultInputSelection:React.PropTypes.string}, mixins:[_ActionDialogMixin2.default,_CancelButtonProviderMixin2.default,_SubmitButtonProviderMixin2.default],getDefaultProps:function(){return{dialogTitle:"",dialogIsModal:!0,fieldType:"text"}},submit:function(){this.props.submitValue(this.refs.input.getValue()),this.dismiss()},render:function(){return React.createElement("div",{style:{width:"100%"}},React.createElement("div",{className:"dialogLegend"},MessageHash[this.props.legendId]),React.createElement(TextField,{floatingLabelText:MessageHash[this.props.fieldLabelId],ref:"input",onKeyDown:this.submitOnEnterKey,defaultValue:this.props.defaultValue,type:this.props.fieldType,fullWidth:!0}))}}),module.exports=exports.default},{"./ActionDialogMixin":73,"./CancelButtonProviderMixin":77,"./SubmitButtonProviderMixin":84,"material-ui":"material-ui",react:"react"}],83:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var _react=require("react"),_react2=_interopRequireDefault(_react),_materialUi=require("material-ui"),_ActionDialogMixin=require("./ActionDialogMixin"),_ActionDialogMixin2=_interopRequireDefault(_ActionDialogMixin),_CancelButtonProviderMixin=require("./CancelButtonProviderMixin"),_CancelButtonProviderMixin2=_interopRequireDefault(_CancelButtonProviderMixin),_SubmitButtonProviderMixin=require("./SubmitButtonProviderMixin"),_SubmitButtonProviderMixin2=_interopRequireDefault(_SubmitButtonProviderMixin);exports.default=_react2.default.createClass({displayName:"ServerPromptDialog",mixins:[_ActionDialogMixin2.default,_CancelButtonProviderMixin2.default,_SubmitButtonProviderMixin2.default],propTypes:{dialogTitleId:_react2.default.PropTypes.string,dialogLegendId:_react2.default.PropTypes.string,autoRedirectUrl:_react2.default.PropTypes.string,fieldsDefinitions:_react2.default.PropTypes.object},getDefaultProps:function(){return{dialogIsModal:!0,dialogSize:"sm"}},componentDidMount:function(){this.props.autoRedirectUrl&&(this._redirectTimeout=setTimeout(this.redirect.bind(this),3e3))},redirect:function(){window.location.href=this.props.autoRedirectUrl},submit:function submit(){var _this=this,_props=this.props,autoRedirectUrl=_props.autoRedirectUrl,fieldsDefinitions=_props.fieldsDefinitions,postSubmitCallback=_props.postSubmitCallback;if(autoRedirectUrl)return void this.redirect();fieldsDefinitions?function(){var parameters={};Object.keys(fieldsDefinitions).forEach(function(k){var def=fieldsDefinitions[k];"hidden"!==def.type?parameters[k]=_this.refs["input-"+k].getValue():parameters[k]=def.value}),PydioApi.getClient().request(parameters,function(transp){postSubmitCallback&&eval(postSubmitCallback),_this.dismiss()})}():(postSubmitCallback&&eval(postSubmitCallback),this.dismiss())},cancel:function(){if(this._redirectTimeout)return clearTimeout(this._redirectTimeout),void this.dismiss();this.dismiss()},render:function(){var _this2=this,_props2=this.props,pydio=_props2.pydio,dialogLegendId=_props2.dialogLegendId,autoRedirectUrl=_props2.autoRedirectUrl,fieldsDefinitions=_props2.fieldsDefinitions,MessageHash=pydio.MessageHash,legend=_react2.default.createElement("div",null,pydio.MessageHash[dialogLegendId]);if(fieldsDefinitions){var _ret2=function(){var fields=[];return Object.keys(fieldsDefinitions).forEach(function(k){var def=fieldsDefinitions[k];"hidden"!==def.type&&fields.push(_react2.default.createElement(_materialUi.TextField,{key:k,floatingLabelText:MessageHash[def.labelId],ref:"input-"+k,defaultValue:def.value||"",onKeyDown:_this2.submitOnEnterKey,type:def.type,fullWidth:!0}))}),{v:_react2.default.createElement("div",null,legend,_react2.default.createElement("form",{autoComplete:"off"},fields))}}();if("object"==typeof _ret2)return _ret2.v}else if(autoRedirectUrl)return _react2.default.createElement("div",null,legend,_react2.default.createElement("div",{style:{marginTop:16}},_react2.default.createElement("a",{href:autoRedirectUrl},autoRedirectUrl)));return legend}}),module.exports=exports.default},{"./ActionDialogMixin":73,"./CancelButtonProviderMixin":77,"./SubmitButtonProviderMixin":84,"material-ui":"material-ui",react:"react"}],84:[function(require,module,exports){"use strict";exports.__esModule=!0,exports.default={getSubmitCallback:function(){return this.submit},submitOnEnterKey:function(event){"Enter"===event.key&&(event.stopPropagation(),event.preventDefault(),this.submit())}},module.exports=exports.default},{}],85:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _reactRouterLibBrowserHistory=require("react-router/lib/browserHistory"),_reactRouterLibBrowserHistory2=_interopRequireDefault(_reactRouterLibBrowserHistory),HomeRouter=function(_React$PureComponent){_inherits(HomeRouter,_React$PureComponent);function HomeRouter(props){_classCallCheck(this,HomeRouter),_React$PureComponent.call(this,props)}return HomeRouter.prototype.componentDidMount=function(){_reactRouterLibBrowserHistory2.default.push("/.")},HomeRouter.prototype.render=function(){return React.createElement("div",null,this.props.children)},HomeRouter}(React.PureComponent);exports.default=HomeRouter,module.exports=exports.default},{"react-router/lib/browserHistory":43}],86:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _reactRouterLibBrowserHistory=require("react-router/lib/browserHistory"),_reactRouterLibBrowserHistory2=_interopRequireDefault(_reactRouterLibBrowserHistory),MainRouterWrapper=function(pydio){return function(_React$PureComponent){_inherits(MainRouter,_React$PureComponent);function MainRouter(props){var _this=this;_classCallCheck(this,MainRouter),_React$PureComponent.call(this,props),this.state=this.getState(),this._ctxObs=function(e){_this.setState(_this.getState())}}return MainRouter.prototype.getState=function(){return{list:pydio.user?pydio.user.getRepositoriesList():new Map,active:pydio.user?pydio.user.getActiveRepository():"",path:pydio.user?pydio.getContextNode().getPath():""}},MainRouter.prototype.getURI=function(_ref){var list=_ref.list,active=_ref.active,path=_ref.path,repo=list.get(active),slug=repo?repo.getSlug():"";return"/"+(repo&&!repo.getAccessType().startsWith("ajxp_")?"ws-":"")+slug+path},MainRouter.prototype.componentDidMount=function(){pydio.getContextHolder().observe("context_changed",this._ctxObs),pydio.getContextHolder().observe("repository_list_refreshed",this._ctxObs)},MainRouter.prototype.componentWillUnmount=function(){pydio.getContextHolder().stopObserving("context_changed",this._ctxObs),pydio.getContextHolder().stopObserving("repository_list_refreshed",this._ctxObs)},MainRouter.prototype.componentDidUpdate=function(prevProps,prevState){if(prevState!==this.state){var uri=this.getURI(this.state);uri!=="/"+this.props.location.pathname&&_reactRouterLibBrowserHistory2.default.push(uri)}},MainRouter.prototype.render=function(){return React.createElement("div",null,this.props.children)},MainRouter}(React.PureComponent)};exports.default=MainRouterWrapper,module.exports=exports.default},{"react-router/lib/browserHistory":43}],87:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _reactRouterLibBrowserHistory=require("react-router/lib/browserHistory"),_lodash=(_interopRequireDefault(_reactRouterLibBrowserHistory),require("lodash")),PathRouterWrapper=(_interopRequireDefault(_lodash),function(pydio){return function(_React$PureComponent){_inherits(PathRouter,_React$PureComponent);function PathRouter(){_classCallCheck(this,PathRouter),_React$PureComponent.apply(this,arguments)}return PathRouter.prototype._handle=function(_ref){var params=_ref.params,splat=params.splat||"";"/"+splat!==pydio.getContextNode().getPath()&&pydio.goTo("/"+splat)},PathRouter.prototype.componentWillMount=function(){this._handle(this.props)},PathRouter.prototype.componentWillReceiveProps=function(nextProps){this._handle(nextProps)},PathRouter.prototype.render=function(){return React.createElement("div",null,this.props.children)},PathRouter}(React.PureComponent)});exports.default=PathRouterWrapper,module.exports=exports.default},{lodash:27,"react-router/lib/browserHistory":43}],88:[function(require,module,exports){"use strict";exports.__esModule=!0;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var _reactRouterLibRouter=require("react-router/lib/Router"),_reactRouterLibRouter2=_interopRequireDefault(_reactRouterLibRouter),_reactRouterLibRoute=require("react-router/lib/Route"),_reactRouterLibRoute2=_interopRequireDefault(_reactRouterLibRoute),_reactRouterLibIndexRoute=require("react-router/lib/IndexRoute"),_reactRouterLibIndexRoute2=_interopRequireDefault(_reactRouterLibIndexRoute),_reactRouterLibBrowserHistory=require("react-router/lib/browserHistory"),_reactRouterLibBrowserHistory2=_interopRequireDefault(_reactRouterLibBrowserHistory),_MainRouter=require("./MainRouter"),_MainRouter2=_interopRequireDefault(_MainRouter),_WorkspaceRouter=require("./WorkspaceRouter"),_WorkspaceRouter2=_interopRequireDefault(_WorkspaceRouter),_PathRouter=require("./PathRouter"),_PathRouter2=_interopRequireDefault(_PathRouter),_HomeRouter=require("./HomeRouter"),_HomeRouter2=_interopRequireDefault(_HomeRouter);function getRoutes(pydio){return React.createElement(_reactRouterLibRoute2.default,{path:"/",component:_MainRouter2.default(pydio)},React.createElement(_reactRouterLibIndexRoute2.default,{component:_HomeRouter2.default}),React.createElement(_reactRouterLibRoute2.default,{path:":workspaceId",component:_WorkspaceRouter2.default(pydio)},React.createElement(_reactRouterLibIndexRoute2.default,{component:_PathRouter2.default(pydio)}),React.createElement(_reactRouterLibRoute2.default,{path:"*",component:_PathRouter2.default(pydio)})))}var PydioRouter=function(_React$PureComponent){_inherits(PydioRouter,_React$PureComponent);function PydioRouter(props){_classCallCheck(this,PydioRouter),_React$PureComponent.call(this,props)}return PydioRouter.prototype.render=function(){return React.createElement(_reactRouterLibRouter2.default,{history:_reactRouterLibBrowserHistory2.default,routes:getRoutes(this.props.pydio)})},PydioRouter}(React.PureComponent);exports.default=PydioRouter,module.exports=exports.default},{"./HomeRouter":85,"./MainRouter":86,"./PathRouter":87,"./WorkspaceRouter":89,"react-router/lib/IndexRoute":34,"react-router/lib/Route":37,"react-router/lib/Router":39,"react-router/lib/browserHistory":43}],89:[function(require,module,exports){"use strict";exports.__esModule=!0;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}var WorkspaceRouterWrapper=function(pydio){return function(_React$PureComponent){_inherits(WorkspaceRouter,_React$PureComponent);function WorkspaceRouter(){_classCallCheck(this,WorkspaceRouter),_React$PureComponent.apply(this,arguments)}return WorkspaceRouter.prototype._handle=function(_ref){var params=_ref.params,slug=params.workspaceId.replace("ws-",""),splat=params.splat||"",repositories=pydio.user?pydio.user.getRepositoriesList():new Map,active=pydio.user?pydio.user.getActiveRepository():null;repositories.forEach(function(repository){repository.slug===slug&&active!==repository.getId()&&(pydio._initLoadRep="/"+splat,pydio.triggerRepositoryChange(repository.getId()))})},WorkspaceRouter.prototype.componentWillMount=function(){this._handle(this.props)},WorkspaceRouter.prototype.componentWillReceiveProps=function(nextProps){this._handle(nextProps)},WorkspaceRouter.prototype.render=function(){return React.createElement("div",null,this.props.children)},WorkspaceRouter}(React.PureComponent)};exports.default=WorkspaceRouterWrapper,module.exports=exports.default},{}]},{},[71])(71)});