},{"./ExecutionEnvironment":9}],31:[function(require,module,exports){"use strict";varperformance=require("./performance");varperformanceNow;if(performance.now){performanceNow=function(){returnperformance.now()}}else{performanceNow=function(){returnDate.now()}}module.exports=performanceNow},{"./performance":30}],32:[function(require,module,exports){"use strict";varhasOwnProperty=Object.prototype.hasOwnProperty;functionshallowEqual(objA,objB){if(objA===objB){returntrue}if(typeofobjA!=="object"||objA===null||typeofobjB!=="object"||objB===null){returnfalse}varkeysA=Object.keys(objA);varkeysB=Object.keys(objB);if(keysA.length!==keysB.length){returnfalse}varbHasOwnProperty=hasOwnProperty.bind(objB);for(vari=0;i<keysA.length;i++){if(!bHasOwnProperty(keysA[i])||objA[keysA[i]]!==objB[keysA[i]]){returnfalse}}returntrue}module.exports=shallowEqual},{}],33:[function(require,module,exports){(function(process){"use strict";varinvariant=require("./invariant");functiontoArray(obj){varlength=obj.length;!(!Array.isArray(obj)&&(typeofobj==="object"||typeofobj==="function"))?process.env.NODE_ENV!=="production"?invariant(false,"toArray: Array-like object expected"):invariant(false):undefined;!(typeoflength==="number")?process.env.NODE_ENV!=="production"?invariant(false,"toArray: Object needs a length property"):invariant(false):undefined;!(length===0||length-1inobj)?process.env.NODE_ENV!=="production"?invariant(false,"toArray: Object should have keys for indices"):invariant(false):undefined;if(obj.hasOwnProperty){try{returnArray.prototype.slice.call(obj)}catch(e){}}varret=Array(length);for(varii=0;ii<length;ii++){ret[ii]=obj[ii]}returnret}module.exports=toArray}).call(this,require("_process"))},{"./invariant":23,_process:47}],34:[function(require,module,exports){(function(process){"use strict";varemptyFunction=require("./emptyFunction");varwarning=emptyFunction;if(process.env.NODE_ENV!=="production"){warning=function(condition,format){for(var_len=arguments.length,args=Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){args[_key-2]=arguments[_key]}if(format===undefined){thrownewError("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(format.indexOf("Failed Composite propType: ")===0){return}if(!condition){varargIndex=0;varmessage="Warning: "+format.replace(/%s/g,function(){returnargs[argIndex++]});if(typeofconsole!=="undefined"){console.error(message)}try{thrownewError(message)}catch(x){}}}}module.exports=warning}).call(this,require("_process"))},{"./emptyFunction":15,_process:47}],35:[function(require,module,exports){(function(global){varfirebase=null;(function(){varaa="function"==typeofObject.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)thrownewTypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},h="undefined"!=typeofwindow&&window===this?this:"undefined"!=typeofglobal&&null!=global?global:this,l=function(){l=function(){};h.Symbol||(h.Symbol=ba)},ca=0,ba=function(a){return"jscomp_symbol_"+(a||"")+ca++},n=function(){l();vara=h.Symbol.iterator;a||(a=h.Symbol.iterator=h.Symbol("iterator"));"function"!=typeofArray.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){returnm(this)}});n=function(){}},m=function(a){varb=0;returnda(function(){returnb<a.length?{done:!1,value:a[b++]}:{done:!0}})},da=function(a){n();a={next:a};a[h.Symbol.iterator]=function(){returnthis};returna},q=this,r=function(){},t=function(a){varb=typeofa;if("object"==b)if(a){if(ainstanceofArray)return"array";if(ainstanceofObject)returnb;varc=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeofa.length&&"undefined"!=typeofa.splice&&"undefined"!=typeofa.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeofa.call&&"undefined"!=typeofa.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}elsereturn"null";elseif("function"==b&&"undefin
w(a,"Listener can not be null.");if(p(a))returna;w(a.handleEvent,"An object listener must have handleEvent method.");a[Yb]||(a[Yb]=function(b){returna.handleEvent(b)});returna[Yb]};varZb=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;varac=function(){this.hc="";this.Od=$b};ac.prototype.Pb=!0;ac.prototype.Kb=function(){returnthis.hc};ac.prototype.toString=function(){return"Const{"+this.hc+"}"};varbc=function(a){if(ainstanceofac&&a.constructor===ac&&a.Od===$b)returna.hc;za("expected object of type Const, got '"+a+"'");return"type_error:Const"},$b={};varB=function(){this.ja="";this.Nd=cc};B.prototype.Pb=!0;B.prototype.Kb=function(){returnthis.ja};B.prototype.toString=function(){return"SafeUrl{"+this.ja+"}"};vardc=function(a){if(ainstanceofB&&a.constructor===B&&a.Nd===cc)returna.ja;za("expected object of type SafeUrl, got '"+a+"' of type "+m(a));return"type_error:SafeUrl"},ec=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,gc=function(a){if(ainstanceofB)returna;a=a.Pb?a.Kb():String(a);ec.test(a)||(a="about:invalid#zClosurez");returnfc(a)},cc={},fc=function(a){varb=newB;b.ja=a;returnb};fc("about:blank");varhc=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},ic=function(a){a=String(a);if(hc(a))try{returneval("("+a+")")}catch(b){}throwError("Invalid JSON string: "+a)},lc=function(a){varb=[];jc(newkc,a,b);returnb.join("")},kc=function(){this.cc=void0},jc=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeofb){if(ea(b)){vard=b;b=d.length;c.push("[");for(vare="",f=0;f<b;f++)c.push(e),e=d[f],jc(a,a.cc?a.cc.call(d,String(f),e):e,c),e=",";c.push("]");return}if(binstanceofString||binstanceofNumber||binstanceofBoolean)b=b.valueOf();else{c.push("{");f="";for(dinb)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeofe&&(c.push(f),mc(d,c),c.push(":"),jc(a,a.cc?a.cc.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeofb){case"string":mc(b,c);break;case"number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case"boolean":c.push(String(b));break;case"function":c.push("null");break;default:throwError("Unknown type: "+typeofb)}}},nc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\x0B":"\\u000b"},oc=/\uffff/.test("")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,mc=function(a,b){b.push('"',a.replace(oc,function(a){varb=nc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),nc[a]=b);returnb}),'"')};varpc=function(){};pc.prototype.Vc=null;pc.prototype.lb=ca;varqc=function(a){returna.Vc||(a.Vc=a.Sb())};pc.prototype.Sb=ca;varrc,sc=function(){};t(sc,pc);sc.prototype.lb=function(){vara=tc(this);returna?newActiveXObject(a):newXMLHttpRequest};sc.prototype.Sb=function(){vara={};tc(this)&&(a[0]=!0,a[1]=!0);returna};vartc=function(a){if(!a.jd&&"undefined"==typeofXMLHttpRequest&&"undefined"!=typeofActiveXObject){for(varb=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){vard=b[c];try{returnnewActiveXObject(d),a.jd=d}catch(e){}}throwError("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}returna.jd};rc=newsc;varuc=function(){};t(uc,pc);uc.prototype.lb=function(){vara=newXMLHttpRequest;if("withCredentials"ina)returna;if("undefined"!=typeofXDomainRequest)returnnewvc;throwError("Unsupported browser")};uc.prototype.Sb=function(){return{}};varvc=function(){this.oa=newXDomainRequest;this.readyState=0;this.onreadystatechange=null;this.responseText="";this.status=-1;this.statusText=this.responseXML=null;this.oa.onload=q(this.he,this);this.oa.onerror=q(this.gd,this);this.oa.onprogress=q(this.ie,this);this.oa.ontimeout=q(this.je,this)};h=vc.prototype;h.open=function(a,b,c){if(null!=c&&!c)throwError("Onlyasyncrequ
b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(a=a.P)&&a.log(pe,"Problem encountered resetting onreadystatechange: "+e.message,void0)}}},Fe=function(a){a.a&&a.lc&&(a.a.ontimeout=null);ga(a.jc)&&(l.clearTimeout(a.jc),a.jc=null)},Ke=function(a){returna.a?a.a.readyState:0},Le=function(a){try{return2<Ke(a)?a.a.status:-1}catch(b){return-1}},Ne=function(a){try{returna.a?a.a.responseText:""}catch(b){returnL(a.P,"Can not get responseText: "+b.message),""}},Ee=function(a,b){returnb+" ["+a.nd+" "+a.Tb+" "+Le(a)+"]"};varOe=function(a,b){this.ga=this.Ja=this.la="";this.Va=null;this.Ba=this.ra="";this.M=this.re=!1;varc;ainstanceofOe?(this.M=void0!==b?b:a.M,Pe(this,a.la),c=a.Ja,N(this),this.Ja=c,Qe(this,a.ga),Re(this,a.Va),Se(this,a.ra),Te(this,a.aa.clone()),a=a.Ba,N(this),this.Ba=a):a&&(c=String(a).match(ye))?(this.M=!!b,Pe(this,c[1]||"",!0),a=c[2]||"",N(this),this.Ja=Ue(a),Qe(this,c[3]||"",!0),Re(this,c[4]),Se(this,c[5]||"",!0),Te(this,c[6]||"",!0),a=c[7]||"",N(this),this.Ba=Ue(a)):(this.M=!!b,this.aa=newO(null,0,this.M))};Oe.prototype.toString=function(){vara=[],b=this.la;b&&a.push(Ve(b,We,!0),":");varc=this.ga;if(c||"file"==b)a.push("//"),(b=this.Ja)&&a.push(Ve(b,We,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Va,null!=c&&a.push(":",String(c));if(c=this.ra)this.ga&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ve(c,"/"==c.charAt(0)?Xe:Ye,!0));(c=this.aa.toString())&&a.push("?",c);(c=this.Ba)&&a.push("#",Ve(c,Ze));returna.join("")};Oe.prototype.resolve=function(a){varb=this.clone(),c=!!a.la;c?Pe(b,a.la):c=!!a.Ja;if(c){vard=a.Ja;N(b);b.Ja=d}elsec=!!a.ga;c?Qe(b,a.ga):c=null!=a.Va;d=a.ra;if(c)Re(b,a.Va);elseif(c=!!a.ra){if("/"!=d.charAt(0))if(this.ga&&!this.ra)d="/"+d;else{vare=b.ra.lastIndexOf("/");-1!=e&&(d=b.ra.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";elseif(v(e,"./")||v(e,"/.")){for(vard=0==e.lastIndexOf("/",0),e=e.split("/"),f=[],g=0;g<e.length;){vark=e[g++];"."==k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}elsed=e}c?Se(b,d):c=""!==a.aa.toString();c?Te(b,Ue(a.aa.toString())):c=!!a.Ba;c&&(a=a.Ba,N(b),b.Ba=a);returnb};Oe.prototype.clone=function(){returnnewOe(this)};varPe=function(a,b,c){N(a);a.la=c?Ue(b,!0):b;a.la&&(a.la=a.la.replace(/:$/,""))},Qe=function(a,b,c){N(a);a.ga=c?Ue(b,!0):b},Re=function(a,b){N(a);if(b){b=Number(b);if(isNaN(b)||0>b)throwError("Bad port number "+b);a.Va=b}elsea.Va=null},Se=function(a,b,c){N(a);a.ra=c?Ue(b,!0):b},Te=function(a,b,c){N(a);binstanceofO?(a.aa=b,a.aa.Oc(a.M)):(c||(b=Ve(b,$e)),a.aa=newO(b,0,a.M))},P=function(a,b,c){N(a);a.aa.set(b,c)},N=function(a){if(a.re)throwError("Tried to modify a read-only Uri")};Oe.prototype.Oc=function(a){this.M=a;this.aa&&this.aa.Oc(a);returnthis};varaf=function(a){returnainstanceofOe?a.clone():newOe(a,void0)},bf=function(a,b){varc=newOe(null,void0);Pe(c,"https");a&&Qe(c,a);b&&Se(c,b);returnc},Ue=function(a,b){returna?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Ve=function(a,b,c){returnn(a)?(a=encodeURI(a).replace(b,cf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},cf=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},We=/[#\/\?@]/g,Ye=/[\#\?:]/g,Xe=/[\#\?]/g,$e=/[\#\?@]/g,Ze=/#/g,O=function(a,b,c){this.i=this.j=null;this.I=a||null;this.M=!!c},df=function(a){a.j||(a.j=newee,a.i=0,a.I&&ze(a.I,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},ff=function(a){varb=je(a);if("undefined"==typeofb)throwError("Keys are undefined");varc=newO(null,0,void0);a=ie(a);for(vard=0;d<b.length;d++){vare=b[d],f=a[d];ea(f)?ef(c,e,f):c.add(e,f)}returnc};h=O.prototype;h.fd=function(){df(this);returnthis.i};h.add=function(a,b){df(this);this.I=null;a=this.K(a);varc=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.i=Aa(this.i)+1;returnthis};h.remove=function(a){df(this);a=this.K(a);returnthis.j.kb(a)?(this.I=null,this.i=Aa(this.i)-this.j.get(a).length,this.j.remove(a)):!1};h.kb=function(a){df(this
thrownewR("web-storage-unsupported")}this.u=l.sessionStorage||firebase.INTERNAL.node.sessionStorage},dh=function(){vara="Node"==rf(),a=l.sessionStorage||a&&firebase.INTERNAL.node&&firebase.INTERNAL.node.sessionStorage;if(!a)return!1;try{returna.setItem("__sak","1"),a.removeItem("__sak"),!0}catch(b){return!1}};h=eh.prototype;h.get=function(a){varb=this;returnJ().then(function(){varc=b.u.getItem(a);returnzf(c)})};h.set=function(a,b){varc=this;returnJ().then(function(){vard=yf(b);null===d?c.remove(a):c.u.setItem(a,d)})};h.remove=function(a){varb=this;returnJ().then(function(){b.u.removeItem(a)})};h.La=function(){};h.$a=function(){};varfh=function(a,b,c,d,e,f){if(!window.indexedDB)thrownewR("web-storage-unsupported");this.Wd=a;this.Dc=b;this.tc=c;this.Hd=d;this.na=e;this.O={};this.xb=[];this.tb=0;this.oe=f||l.indexedDB},gh,hh=function(a){returnnewI(function(b,c){vard=a.oe.open(a.Wd,a.na);d.onerror=function(a){c(Error(a.target.errorCode))};d.onupgradeneeded=function(b){b=b.target.result;try{b.createObjectStore(a.Dc,{keyPath:a.tc})}catch(f){c(f)}};d.onsuccess=function(a){b(a.target.result)}})},ih=function(a){a.ld||(a.ld=hh(a));returna.ld},jh=function(a,b){returnb.objectStore(a.Dc)},kh=function(a,b,c){returnb.transaction([a.Dc],c?"readwrite":"readonly")},lh=function(a){returnnewI(function(b,c){a.onsuccess=function(a){a&&a.target?b(a.target.result):b()};a.onerror=function(a){c(Error(a.target.errorCode))}})};h=fh.prototype;h.set=function(a,b){varc=!1,d,e=this;returnxd(ih(this).then(function(b){d=b;b=jh(e,kh(e,d,!0));returnlh(b.get(a))}).then(function(f){varg=jh(e,kh(e,d,!0));if(f)returnf.value=b,lh(g.put(f));e.tb++;c=!0;f={};f[e.tc]=a;f[e.Hd]=b;returnlh(g.add(f))}).then(function(){e.O[a]=b}),function(){c&&e.tb--})};h.get=function(a){varb=this;returnih(this).then(function(c){returnlh(jh(b,kh(b,c,!1)).get(a))}).then(function(a){returna&&a.value})};h.remove=function(a){varb=!1,c=this;returnxd(ih(this).then(function(d){b=!0;c.tb++;returnlh(jh(c,kh(c,d,!0))["delete"](a))}).then(function(){deletec.O[a]}),function(){b&&c.tb--})};h.Ke=function(){vara=this;returnih(this).then(function(b){varc=jh(a,kh(a,b,!1));returnc.getAll?lh(c.getAll()):newI(function(a,b){vard=[],e=c.openCursor();e.onsuccess=function(b){(b=b.target.result)?(d.push(b.value),b["continue"]()):a(d)};e.onerror=function(a){b(Error(a.target.errorCode))}})}).then(function(b){varc={},d=[];if(0==a.tb){for(d=0;d<b.length;d++)c[b[d][a.tc]]=b[d][a.Hd];d=kf(a.O,c);a.O=c}returnd})};h.La=function(a){0==this.xb.length&&this.Qc();this.xb.push(a)};h.$a=function(a){Ma(this.xb,function(b){returnb==a});0==this.xb.length&&this.gc()};h.Qc=function(){vara=this;this.gc();varb=function(){a.Ic=xe(800).then(q(a.Ke,a)).then(function(b){0<b.length&&x(a.xb,function(a){a(b)})}).then(b).l(function(a){"STOP_EVENT"!=a.message&&b()});returna.Ic};b()};h.gc=function(){this.Ic&&this.Ic.cancel("STOP_EVENT")};varph=function(){this.bd={Browser:mh,Node:nh,ReactNative:oh}[rf()]},qh,mh={V:bh,Sc:eh},nh={V:bh,Sc:eh},oh={V:Zg,Sc:ch};varrh="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" "),U=function(a,b){return{name:a||"",ca:"a valid string",optional:!!b,da:n}},sh=function(a){return{name:a||"",ca:"a valid object",optional:!1,da:ha}},th=function(a,b){return{name:a||"",ca:"a function",optional:!!b,da:p}},uh=function(){return{name:"",ca:"null",optional:!1,da:da}},vh=function(){return{name:"credential",ca:"a valid credential",optional:!1,da:function(a){return!(!a||!a.Ib)}}},wh=function(){return{name:"authProvider",ca:"a valid Auth provider",optional:!1,da:function(a){return!!(a&&a.providerId&&a.hasOwnProperty&&a.hasOwnProperty("isOAuthProvider"))}}},xh=function(a,b,c,d){return{name:c||"",ca:a.ca+" or "+b.ca,optional:!!d,da:function(c){returna.da(c)||b.da(c)}}};varzh=function(a,b){for(varcinb){vard=b[c].name;a[d]=yh(d,a[c],b[c].b)}},V=function(a,b,c,d){a[b]=yh(b,c,d)},yh=function(a,b,c){if(!c)returnb;vard=Ah(a);a=function(){vara=Array.prototype.slice.call(arguments),e;a:{e=Array.prototype.slice.call(a);vark;k=0;for(varr=!1,sa=0;sa<c.length
V(a,"GoogleAuthProvider",Uf,[]);V(a,"TwitterAuthProvider",Vf,[]);firebase.INTERNAL.registerService("auth",function(a,c){a=newY(a);c({INTERNAL:{getToken:q(a.getToken,a),addAuthTokenListener:q(a.addAuthTokenListener,a),removeAuthTokenListener:q(a.removeAuthTokenListener,a)}});returna},a,function(a,c){if("create"===a)try{c.auth()}catch(d){}});firebase.INTERNAL.extendNamespace({User:W})}elsethrowError("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.")})()})();module.exports=firebase.auth},{"./app":35}],37:[function(require,module,exports){"use strict";varREACT_STATICS={childContextTypes:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,mixins:true,propTypes:true,type:true};varKNOWN_STATICS={name:true,length:true,prototype:true,caller:true,arguments:true,arity:true};module.exports=functionhoistNonReactStatics(targetComponent,sourceComponent){varkeys=Object.getOwnPropertyNames(sourceComponent);for(vari=0;i<keys.length;++i){if(!REACT_STATICS[keys[i]]&&!KNOWN_STATICS[keys[i]]){try{targetComponent[keys[i]]=sourceComponent[keys[i]]}catch(error){}}}returntargetComponent}},{}],38:[function(require,module,exports){(function(process){"use strict";varinvariant=function(condition,format,a,b,c,d,e,f){if(process.env.NODE_ENV!=="production"){if(format===undefined){thrownewError("invariant requires an error message argument")}}if(!condition){varerror;if(format===undefined){error=newError("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{varargs=[a,b,c,d,e,f];varargIndex=0;error=newError(format.replace(/%s/g,function(){returnargs[argIndex++]}));error.name="Invariant Violation"}error.framesToPop=1;throwerror}};module.exports=invariant}).call(this,require("_process"))},{_process:47}],39:[function(require,module,exports){module.exports=Array.isArray||function(arr){returnObject.prototype.toString.call(arr)=="[object Array]"}},{}],40:[function(require,module,exports){(function(global){(function(){varundefined;varVERSION="3.10.1";varBIND_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;varDEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...";varHOT_COUNT=150,HOT_SPAN=16;varLARGE_ARRAY_SIZE=200;varLAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2;varFUNC_ERROR_TEXT="Expected a function";varPLACEHOLDER="__lodash_placeholder__";varargsTag="[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]";vararrayBufferTag="[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]";varreEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g;varreEscapedHtml=/&(?:amp|lt|gt|quot|#39|#96);/g,reUnescapedHtml=/[&<>"'`]/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source);varreEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g;varreIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g;varreRegExpChars=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,reHasRegExpChars=RegExp(reRegExpChars.source);varreComboMark=/[\u0300-\u036f\ufe20-\ufe23]/g;varreEscapeChar=/\\(\\)?/g;varreEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;varreFlags=/\w*$/;varreHasHexPrefix=/^0[xX]/;varr
(function(token){if(token.type!=="code"){return--pending||done()}returnhighlight(token.text,token.lang,function(err,code){if(err)returndone(err);if(code==null||code===token.text){return--pending||done()}token.text=code;token.escaped=true;--pending||done()})})(tokens[i])}return}try{if(opt)opt=merge({},marked.defaults,opt);returnParser.parse(Lexer.lex(src,opt),opt)}catch(e){e.message+="\nPlease report this to https://github.com/chjj/marked.";if((opt||marked.defaults).silent){return"<p>An error occured:</p><pre>"+escape(e.message+"",true)+"</pre>"}throwe}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);returnmarked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:newRenderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeofmodule!=="undefined"&&typeofexports==="object"){module.exports=marked}elseif(typeofdefine==="function"&&define.amd){define(function(){returnmarked})}else{this.marked=marked}}).call(function(){returnthis||(typeofwindow!=="undefined"?window:global)}())}).call(this,typeofglobal!=="undefined"?global:typeofself!=="undefined"?self:typeofwindow!=="undefined"?window:{})},{}],43:[function(require,module,exports){(function(global,factory){typeofexports==="object"&&typeofmodule!=="undefined"?module.exports=factory():typeofdefine==="function"&&define.amd?define(factory):global.moment=factory()})(this,function(){"use strict";varhookCallback;functionutils_hooks__hooks(){returnhookCallback.apply(null,arguments)}functionsetHookCallback(callback){hookCallback=callback}functionisArray(input){returnObject.prototype.toString.call(input)==="[object Array]"}functionisDate(input){returninputinstanceofDate||Object.prototype.toString.call(input)==="[object Date]"}functionmap(arr,fn){varres=[],i;for(i=0;i<arr.length;++i){res.push(fn(arr[i],i))}returnres}functionhasOwnProp(a,b){returnObject.prototype.hasOwnProperty.call(a,b)}functionextend(a,b){for(variinb){if(hasOwnProp(b,i)){a[i]=b[i]}}if(hasOwnProp(b,"toString")){a.toString=b.toString}if(hasOwnProp(b,"valueOf")){a.valueOf=b.valueOf}returna}functioncreate_utc__createUTC(input,format,locale,strict){returncreateLocalOrUTC(input,format,locale,strict,true).utc()}functiondefaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false}}functiongetParsingFlags(m){if(m._pf==null){m._pf=defaultParsingFlags()}returnm._pf}functionvalid__isValid(m){if(m._isValid==null){varflags=getParsingFlags(m);m._isValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated;if(m._strict){m._isValid=m._isValid&&flags.charsLeftOver===0&&flags.unusedTokens.length===0&&flags.bigHour===undefined}}returnm._isValid}functionvalid__createInvalid(flags){varm=create_utc__createUTC(NaN);if(flags!=null){extend(getParsingFlags(m),flags)}else{getParsingFlags(m).userInvalidated=true}returnm}functionisUndefined(input){returninput===void0}varmomentProperties=utils_hooks__hooks.momentProperties=[];functioncopyConfig(to,from){vari,prop,val;if(!isUndefined(from._isAMomentObject)){to._isAMomentObject=from._isAMomentObject}if(!isUndefined(from._i)){to._i=from._i}if(!isUndefined(from._f)){to._f=from._f}if(!isUndefined(from._l)){to._l=from._l}if(!isUndefined(from._strict)){to._strict=from._strict}if(!isUndefined(from._tzm)){to._tzm=from._tzm}if(!isUndefined(from._isUTC)){to._isUTC=from._isUTC}if(!isUndefined(from._offset)){to._offset=from._offset}if(!isUndefined(from._pf)){to._pf=getParsingFlags(from)}if(!isUndefined(from._locale)){to._locale=from._locale}if(momentProperties.length>0)
this._days=mathAbs(this._days);this._months=mathAbs(this._months);data.milliseconds=mathAbs(data.milliseconds);data.seconds=mathAbs(data.seconds);data.minutes=mathAbs(data.minutes);data.hours=mathAbs(data.hours);data.months=mathAbs(data.months);data.years=mathAbs(data.years);returnthis}functionduration_add_subtract__addSubtract(duration,input,value,direction){varother=create__createDuration(input,value);duration._milliseconds+=direction*other._milliseconds;duration._days+=direction*other._days;duration._months+=direction*other._months;returnduration._bubble()}functionduration_add_subtract__add(input,value){returnduration_add_subtract__addSubtract(this,input,value,1)}functionduration_add_subtract__subtract(input,value){returnduration_add_subtract__addSubtract(this,input,value,-1)}functionabsCeil(number){if(number<0){returnMath.floor(number)}else{returnMath.ceil(number)}}functionbubble(){varmilliseconds=this._milliseconds;vardays=this._days;varmonths=this._months;vardata=this._data;varseconds,minutes,hours,years,monthsFromDays;if(!(milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0)){milliseconds+=absCeil(monthsToDays(months)+days)*864e5;days=0;months=0}data.milliseconds=milliseconds%1e3;seconds=absFloor(milliseconds/1e3);data.seconds=seconds%60;minutes=absFloor(seconds/60);data.minutes=minutes%60;hours=absFloor(minutes/60);data.hours=hours%24;days+=absFloor(hours/24);monthsFromDays=absFloor(daysToMonths(days));months+=monthsFromDays;days-=absCeil(monthsToDays(monthsFromDays));years=absFloor(months/12);months%=12;data.days=days;data.months=months;data.years=years;returnthis}functiondaysToMonths(days){returndays*4800/146097}functionmonthsToDays(months){returnmonths*146097/4800}functionas(units){vardays;varmonths;varmilliseconds=this._milliseconds;units=normalizeUnits(units);if(units==="month"||units==="year"){days=this._days+milliseconds/864e5;months=this._months+daysToMonths(days);returnunits==="month"?months:months/12}else{days=this._days+Math.round(monthsToDays(this._months));switch(units){case"week":returndays/7+milliseconds/6048e5;case"day":returndays+milliseconds/864e5;case"hour":returndays*24+milliseconds/36e5;case"minute":returndays*1440+milliseconds/6e4;case"second":returndays*86400+milliseconds/1e3;case"millisecond":returnMath.floor(days*864e5)+milliseconds;default:thrownewError("Unknown unit "+units)}}}functionduration_as__valueOf(){returnthis._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6}functionmakeAs(alias){returnfunction(){returnthis.as(alias)}}varasMilliseconds=makeAs("ms");varasSeconds=makeAs("s");varasMinutes=makeAs("m");varasHours=makeAs("h");varasDays=makeAs("d");varasWeeks=makeAs("w");varasMonths=makeAs("M");varasYears=makeAs("y");functionduration_get__get(units){units=normalizeUnits(units);returnthis[units+"s"]()}functionmakeGetter(name){returnfunction(){returnthis._data[name]}}varmilliseconds=makeGetter("milliseconds");varseconds=makeGetter("seconds");varminutes=makeGetter("minutes");varhours=makeGetter("hours");vardays=makeGetter("days");varmonths=makeGetter("months");varyears=makeGetter("years");functionweeks(){returnabsFloor(this.days()/7)}varround=Math.round;varthresholds={s:45,m:45,h:22,d:26,M:11};functionsubstituteTimeAgo(string,number,withoutSuffix,isFuture,locale){returnlocale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}functionduration_humanize__relativeTime(posNegDuration,withoutSuffix,locale){varduration=create__createDuration(posNegDuration).abs();varseconds=round(duration.as("s"));varminutes=round(duration.as("m"));varhours=round(duration.as("h"));vardays=round(duration.as("d"));varmonths=round(duration.as("M"));varyears=round(duration.as("y"));vara=seconds<thresholds.s&&["s",seconds]||minutes<=1&&["m"]||minutes<thresholds.m&&["mm",minutes]||hours<=1&&["h"]||hours<thresholds.h&&["hh",hours]||days<=1&&["d"]||days<thresholds.d&&["dd",days]||months<=1&&["M"]||months<thresholds.M&&["MM",months]||years<=1&&["y"]||["yy",years];a[2]=withoutSuffix;a[
}},matchRoute:function(path){if(!path){returnfalse}varmatchedRoute={};this.state._routes.some(function(route){varmatches=route.pattern.exec(path);if(matches){matchedRoute.handler=route.handler;matchedRoute.params=matches.slice(1,route.params.length+1);returntrue}returnfalse});returnmatchedRoute.handler?matchedRoute:false}};functiongetInitialPath(component){varpath=component.props.path||component.context.path,hash,url;if(!path&&detect.canUseDOM){url=urllite(window.location.href);if(component.props.history){path=url.pathname+url.search}elseif(url.hash){hash=urllite(url.hash.slice(2));path=hash.pathname+hash.search}}returnpath||"/"}functiongetHref(evt){if(evt.defaultPrevented){return}if(evt.metaKey||evt.ctrlKey||evt.shiftKey){return}if(evt.button!==0){return}varelt=getEventTarget(evt);while(elt&&elt.nodeName!=="A"){elt=elt.parentNode}if(!elt){return}if(elt.target&&elt.target!=="_self"){return}if(!!elt.attributes.download){return}varlinkURL=urllite(elt.href);varwindowURL=urllite(window.location.href);if(linkURL.protocol!==windowURL.protocol||linkURL.host!==windowURL.host){return}returnlinkURL}functionprocessRoutes(root,routes,component){varpatterns=[],path,pattern,keys,handler,handlerFn;for(pathinroutes){if(routes.hasOwnProperty(path)){keys=[];pattern=pathToRegexp(root+path,keys);handler=routes[path];handlerFn=component[handler];patterns.push({pattern:pattern,params:keys,handler:handlerFn})}}returnpatterns}functionparseSearch(str){varparsed={};if(str.indexOf("?")===0)str=str.slice(1);varpairs=str.split("&");pairs.forEach(function(pair){varkeyVal=pair.split("=");parsed[decodeURIComponent(keyVal[0])]=decodeURIComponent(keyVal[1])});returnparsed}},{"./detect":61,"fbjs/lib/EventListener":64,"path-to-regexp":46,react:210,"react-dom":58,"react/lib/getEventTarget":195,"urllite/lib/core":226}],61:[function(require,module,exports){varcanUseDOM=!!(typeofwindow!=="undefined"&&window.document&&window.document.createElement);module.exports={canUseDOM:canUseDOM,hasPushState:canUseDOM&&window.history&&"pushState"inwindow.history,hasHashbang:function(){returncanUseDOM&&window.location.hash.indexOf("#!")===0},hasEventConstructor:function(){returntypeofwindow.Event=="function"}}},{}],62:[function(require,module,exports){vardetect=require("./detect");module.exports={createEvent:function(name){if(detect.hasEventConstructor()){returnnewwindow.Event(name)}else{varevent=document.createEvent("Event");event.initEvent(name,true,false);returnevent}}}},{"./detect":61}],63:[function(require,module,exports){vardetect=require("./detect");varevent=require("./event");module.exports=functiontriggerUrl(url,silent){if(detect.hasHashbang()){window.location.hash="#!"+url}elseif(detect.hasPushState){window.history.pushState({},"",url);if(!silent){window.dispatchEvent(event.createEvent("popstate"))}}else{console.error("Browser does not support pushState, and hash is missing a hashbang prefix!")}}},{"./detect":61,"./event":62}],64:[function(require,module,exports){(function(process){"use strict";varemptyFunction=require("./emptyFunction");varEventListener={listen:function(target,eventType,callback){if(target.addEventListener){target.addEventListener(eventType,callback,false);return{remove:function(){target.removeEventListener(eventType,callback,false)}}}elseif(target.attachEvent){target.attachEvent("on"+eventType,callback);return{remove:function(){target.detachEvent("on"+eventType,callback)}}}},capture:function(target,eventType,callback){if(target.addEventListener){target.addEventListener(eventType,callback,true);return{remove:function(){target.removeEventListener(eventType,callback,true)}}}else{if(process.env.NODE_ENV!=="production"){console.error("Attempted to listen to events during the capture phase on a "+"browser that does not support the capture phase. Your application "+"will not receive some events.")}return{remove:emptyFunction}}},registerDefault:function(){}};module.exports=EventListener}).call(this,require("_process"))},{"./emptyFunction":65,_process:47}],65:[function(require,module,exports){arguments[4][15][0
if(warnedStyleNames.hasOwnProperty(name)&&warnedStyleNames[name]){return}warnedStyleNames[name]=true;process.env.NODE_ENV!=="production"?warning(false,"Unsupported vendor-prefixed style property %s. Did you mean %s?",name,name.charAt(0).toUpperCase()+name.slice(1)):undefined};varwarnStyleValueWithSemicolon=function(name,value){if(warnedStyleValues.hasOwnProperty(value)&&warnedStyleValues[value]){return}warnedStyleValues[value]=true;process.env.NODE_ENV!=="production"?warning(false,"Style property values shouldn't contain a semicolon. "+'Try "%s: %s" instead.',name,value.replace(badStyleValueWithSemicolonPattern,"")):undefined};varwarnValidStyle=function(name,value){if(name.indexOf("-")>-1){warnHyphenatedStyleName(name)}elseif(badVendoredStyleNamePattern.test(name)){warnBadVendoredStyleName(name)}elseif(badStyleValueWithSemicolonPattern.test(value)){warnStyleValueWithSemicolon(name,value)}}}varCSSPropertyOperations={createMarkupForStyles:function(styles){varserialized="";for(varstyleNameinstyles){if(!styles.hasOwnProperty(styleName)){continue}varstyleValue=styles[styleName];if(process.env.NODE_ENV!=="production"){warnValidStyle(styleName,styleValue)}if(styleValue!=null){serialized+=processStyleName(styleName)+":";serialized+=dangerousStyleValue(styleName,styleValue)+";"}}returnserialized||null},setValueForStyles:function(node,styles){varstyle=node.style;for(varstyleNameinstyles){if(!styles.hasOwnProperty(styleName)){continue}if(process.env.NODE_ENV!=="production"){warnValidStyle(styleName,styles[styleName])}varstyleValue=dangerousStyleValue(styleName,styles[styleName]);if(styleName==="float"){styleName=styleFloatAccessor}if(styleValue){style[styleName]=styleValue}else{varexpansion=hasShorthandPropertyBug&&CSSProperty.shorthandPropertyExpansions[styleName];if(expansion){for(varindividualStyleNameinexpansion){style[individualStyleName]=""}}else{style[styleName]=""}}}}};ReactPerf.measureMethods(CSSPropertyOperations,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"});module.exports=CSSPropertyOperations}).call(this,require("_process"))},{"./CSSProperty":79,"./ReactPerf":149,"./dangerousStyleValue":186,_process:47,"fbjs/lib/ExecutionEnvironment":9,"fbjs/lib/camelizeStyleName":11,"fbjs/lib/hyphenateStyleName":22,"fbjs/lib/memoizeStringOnly":29,"fbjs/lib/warning":34}],81:[function(require,module,exports){(function(process){"use strict";varPooledClass=require("./PooledClass");varassign=require("./Object.assign");varinvariant=require("fbjs/lib/invariant");functionCallbackQueue(){this._callbacks=null;this._contexts=null}assign(CallbackQueue.prototype,{enqueue:function(callback,context){this._callbacks=this._callbacks||[];this._contexts=this._contexts||[];this._callbacks.push(callback);this._contexts.push(context)},notifyAll:function(){varcallbacks=this._callbacks;varcontexts=this._contexts;if(callbacks){!(callbacks.length===contexts.length)?process.env.NODE_ENV!=="production"?invariant(false,"Mismatched list of contexts in callback queue"):invariant(false):undefined;this._callbacks=null;this._contexts=null;for(vari=0;i<callbacks.length;i++){callbacks[i].call(contexts[i])}callbacks.length=0;contexts.length=0}},reset:function(){this._callbacks=null;this._contexts=null},destructor:function(){this.reset()}});PooledClass.addPoolingTo(CallbackQueue);module.exports=CallbackQueue}).call(this,require("_process"))},{"./Object.assign":98,"./PooledClass":99,_process:47,"fbjs/lib/invariant":23}],82:[function(require,module,exports){"use strict";varEventConstants=require("./EventConstants");varEventPluginHub=require("./EventPluginHub");varEventPropagators=require("./EventPropagators");varExecutionEnvironment=require("fbjs/lib/ExecutionEnvironment");varReactUpdates=require("./ReactUpdates");varSyntheticEvent=require("./SyntheticEvent");vargetEventTarget=require("./getEventTarget");varisEventSupported=require("./isEventSupported");varisTextInputElement=require("./isTextInputElement");varkeyOf=require("fbjs/lib/keyOf");vartopLevelTypes=EventConstants.topLevelTypes;vareventTypes={change:{phasedRe
putListener:function(id,registrationName,listener){!(typeoflistener==="function")?process.env.NODE_ENV!=="production"?invariant(false,"Expected %s listener to be a function, instead got type %s",registrationName,typeoflistener):invariant(false):undefined;varbankForRegistrationName=listenerBank[registrationName]||(listenerBank[registrationName]={});bankForRegistrationName[id]=listener;varPluginModule=EventPluginRegistry.registrationNameModules[registrationName];if(PluginModule&&PluginModule.didPutListener){PluginModule.didPutListener(id,registrationName,listener)}},getListener:function(id,registrationName){varbankForRegistrationName=listenerBank[registrationName];returnbankForRegistrationName&&bankForRegistrationName[id]},deleteListener:function(id,registrationName){varPluginModule=EventPluginRegistry.registrationNameModules[registrationName];if(PluginModule&&PluginModule.willDeleteListener){PluginModule.willDeleteListener(id,registrationName)}varbankForRegistrationName=listenerBank[registrationName];if(bankForRegistrationName){deletebankForRegistrationName[id]}},deleteAllListeners:function(id){for(varregistrationNameinlistenerBank){if(!listenerBank[registrationName][id]){continue}varPluginModule=EventPluginRegistry.registrationNameModules[registrationName];if(PluginModule&&PluginModule.willDeleteListener){PluginModule.willDeleteListener(id,registrationName)}deletelistenerBank[registrationName][id]}},extractEvents:function(topLevelType,topLevelTarget,topLevelTargetID,nativeEvent,nativeEventTarget){varevents;varplugins=EventPluginRegistry.plugins;for(vari=0;i<plugins.length;i++){varpossiblePlugin=plugins[i];if(possiblePlugin){varextractedEvents=possiblePlugin.extractEvents(topLevelType,topLevelTarget,topLevelTargetID,nativeEvent,nativeEventTarget);if(extractedEvents){events=accumulateInto(events,extractedEvents)}}}returnevents},enqueueEvents:function(events){if(events){eventQueue=accumulateInto(eventQueue,events)}},processEventQueue:function(simulated){varprocessingEventQueue=eventQueue;eventQueue=null;if(simulated){forEachAccumulated(processingEventQueue,executeDispatchesAndReleaseSimulated)}else{forEachAccumulated(processingEventQueue,executeDispatchesAndReleaseTopLevel)}!!eventQueue?process.env.NODE_ENV!=="production"?invariant(false,"processEventQueue(): Additional events were enqueued while processing "+"an event queue. Support for this has not yet been implemented."):invariant(false):undefined;ReactErrorUtils.rethrowCaughtError()},__purge:function(){listenerBank={}},__getListenerBank:function(){returnlistenerBank}};module.exports=EventPluginHub}).call(this,require("_process"))},{"./EventPluginRegistry":92,"./EventPluginUtils":93,"./ReactErrorUtils":134,"./accumulateInto":183,"./forEachAccumulated":191,_process:47,"fbjs/lib/invariant":23,"fbjs/lib/warning":34}],92:[function(require,module,exports){(function(process){"use strict";varinvariant=require("fbjs/lib/invariant");varEventPluginOrder=null;varnamesToPlugins={};functionrecomputePluginOrdering(){if(!EventPluginOrder){return}for(varpluginNameinnamesToPlugins){varPluginModule=namesToPlugins[pluginName];varpluginIndex=EventPluginOrder.indexOf(pluginName);!(pluginIndex>-1)?process.env.NODE_ENV!=="production"?invariant(false,"EventPluginRegistry: Cannot inject event plugins that do not exist in "+"the plugin ordering, `%s`.",pluginName):invariant(false):undefined;if(EventPluginRegistry.plugins[pluginIndex]){continue}!PluginModule.extractEvents?process.env.NODE_ENV!=="production"?invariant(false,"EventPluginRegistry: Event plugins must implement an `extractEvents` "+"method, but `%s` does not.",pluginName):invariant(false):undefined;EventPluginRegistry.plugins[pluginIndex]=PluginModule;varpublishedEvents=PluginModule.eventTypes;for(vareventNameinpublishedEvents){!publishEventForPlugin(publishedEvents[eventName],PluginModule,eventName)?process.env.NODE_ENV!=="production"?invariant(false,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",eventName,pluginName):invariant(false):undefined}}}functionpublishEventForPlugin(
if(ReactBrowserEventEmitter.ReactEventListener){ReactBrowserEventEmitter.ReactEventListener.setEnabled(enabled)}},isEnabled:function(){return!!(ReactBrowserEventEmitter.ReactEventListener&&ReactBrowserEventEmitter.ReactEventListener.isEnabled())},listenTo:function(registrationName,contentDocumentHandle){varmountAt=contentDocumentHandle;varisListening=getListeningForDocument(mountAt);vardependencies=EventPluginRegistry.registrationNameDependencies[registrationName];vartopLevelTypes=EventConstants.topLevelTypes;for(vari=0;i<dependencies.length;i++){vardependency=dependencies[i];if(!(isListening.hasOwnProperty(dependency)&&isListening[dependency])){if(dependency===topLevelTypes.topWheel){if(isEventSupported("wheel")){ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel,"wheel",mountAt)}elseif(isEventSupported("mousewheel")){ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel,"mousewheel",mountAt)}else{ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topWheel,"DOMMouseScroll",mountAt)}}elseif(dependency===topLevelTypes.topScroll){if(isEventSupported("scroll",true)){ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topScroll,"scroll",mountAt)}else{ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topScroll,"scroll",ReactBrowserEventEmitter.ReactEventListener.WINDOW_HANDLE)}}elseif(dependency===topLevelTypes.topFocus||dependency===topLevelTypes.topBlur){if(isEventSupported("focus",true)){ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topFocus,"focus",mountAt);ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelTypes.topBlur,"blur",mountAt)}elseif(isEventSupported("focusin")){ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topFocus,"focusin",mountAt);ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelTypes.topBlur,"focusout",mountAt)}isListening[topLevelTypes.topBlur]=true;isListening[topLevelTypes.topFocus]=true}elseif(topEventMapping.hasOwnProperty(dependency)){ReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(dependency,topEventMapping[dependency],mountAt)}isListening[dependency]=true}}},trapBubbledEvent:function(topLevelType,handlerBaseName,handle){returnReactBrowserEventEmitter.ReactEventListener.trapBubbledEvent(topLevelType,handlerBaseName,handle)},trapCapturedEvent:function(topLevelType,handlerBaseName,handle){returnReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(topLevelType,handlerBaseName,handle)},ensureScrollValueMonitoring:function(){if(!isMonitoringScrollValue){varrefresh=ViewportMetrics.refreshScrollValues;ReactBrowserEventEmitter.ReactEventListener.monitorScrollValue(refresh);isMonitoringScrollValue=true}},eventNameDispatchConfigs:EventPluginHub.eventNameDispatchConfigs,registrationNameModules:EventPluginHub.registrationNameModules,putListener:EventPluginHub.putListener,getListener:EventPluginHub.getListener,deleteListener:EventPluginHub.deleteListener,deleteAllListeners:EventPluginHub.deleteAllListeners});ReactPerf.measureMethods(ReactBrowserEventEmitter,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"});module.exports=ReactBrowserEventEmitter},{"./EventConstants":90,"./EventPluginHub":91,"./EventPluginRegistry":92,"./Object.assign":98,"./ReactEventEmitterMixin":135,"./ReactPerf":149,"./ViewportMetrics":182,"./isEventSupported":200}],103:[function(require,module,exports){"use strict";varReact=require("./React");varassign=require("./Object.assign");varReactTransitionGroup=require("./ReactTransitionGroup");varReactCSSTransitionGroupChild=require("./ReactCSSTransitionGroupChild");functioncreateTransitionTimeoutPropValidator(transitionType){vartimeoutPropName="transition"+transitionType+"Timeout";varenabledPropName="transition"+transitionType;returnfunction(props){if(props[enabledPropName]){if(props[timeoutPropName]==null){returnnewError(timeoutPropName+" wasn't supplied to ReactCSSTransitionGroup: "+"
varshouldUpdateReactComponent=require("./shouldUpdateReactComponent");varwarning=require("fbjs/lib/warning");functiongetDeclarationErrorAddendum(component){varowner=component._currentElement._owner||null;if(owner){varname=owner.getName();if(name){return" Check the render method of `"+name+"`."}}return""}functionStatelessComponent(Component){}StatelessComponent.prototype.render=function(){varComponent=ReactInstanceMap.get(this)._currentElement.type;returnComponent(this.props,this.context,this.updater)};varnextMountID=1;varReactCompositeComponentMixin={construct:function(element){this._currentElement=element;this._rootNodeID=null;this._instance=null;this._pendingElement=null;this._pendingStateQueue=null;this._pendingReplaceState=false;this._pendingForceUpdate=false;this._renderedComponent=null;this._context=null;this._mountOrder=0;this._topLevelWrapper=null;this._pendingCallbacks=null},mountComponent:function(rootID,transaction,context){this._context=context;this._mountOrder=nextMountID++;this._rootNodeID=rootID;varpublicProps=this._processProps(this._currentElement.props);varpublicContext=this._processContext(context);varComponent=this._currentElement.type;varinst;varrenderedElement;varcanInstantiate="prototype"inComponent;if(canInstantiate){if(process.env.NODE_ENV!=="production"){ReactCurrentOwner.current=this;try{inst=newComponent(publicProps,publicContext,ReactUpdateQueue)}finally{ReactCurrentOwner.current=null}}else{inst=newComponent(publicProps,publicContext,ReactUpdateQueue)}}if(!canInstantiate||inst===null||inst===false||ReactElement.isValidElement(inst)){renderedElement=inst;inst=newStatelessComponent(Component)}if(process.env.NODE_ENV!=="production"){if(inst.render==null){process.env.NODE_ENV!=="production"?warning(false,"%s(...): No `render` method found on the returned component "+"instance: you may have forgotten to define `render`, returned "+"null/false from a stateless component, or tried to render an "+"element whose type is a function that isn't a React component.",Component.displayName||Component.name||"Component"):undefined}else{process.env.NODE_ENV!=="production"?warning(Component.prototype&&Component.prototype.isReactComponent||!canInstantiate||!(instinstanceofComponent),"%s(...): React component classes must extend React.Component.",Component.displayName||Component.name||"Component"):undefined}}inst.props=publicProps;inst.context=publicContext;inst.refs=emptyObject;inst.updater=ReactUpdateQueue;this._instance=inst;ReactInstanceMap.set(inst,this);if(process.env.NODE_ENV!=="production"){process.env.NODE_ENV!=="production"?warning(!inst.getInitialState||inst.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. "+"This is only supported for classes created using React.createClass. "+"Did you mean to define a state property instead?",this.getName()||"a component"):undefined;process.env.NODE_ENV!=="production"?warning(!inst.getDefaultProps||inst.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. "+"This is only supported for classes created using React.createClass. "+"Use a static property to define defaultProps instead.",this.getName()||"a component"):undefined;process.env.NODE_ENV!=="production"?warning(!inst.propTypes,"propTypes was defined as an instance property on %s. Use a static "+"property to define propTypes instead.",this.getName()||"a component"):undefined;process.env.NODE_ENV!=="production"?warning(!inst.contextTypes,"contextTypes was defined as an instance property on %s. Use a "+"static property to define contextTypes instead.",this.getName()||"a component"):undefined;process.env.NODE_ENV!=="production"?warning(typeofinst.componentShouldUpdate!=="function","%s has a method called "+"componentShouldUpdate(). Did you mean shouldComponentUpdate()? "+"The name is phrased as a question because the function is "+"expected to return a value.",this.getName()||"A component"):undefined;process.env.NODE_ENV!=="production"?warning(typeofinst.componentDidUnmount!=="function","%shasame
node.removeChild(textNode)}else{textNode.deleteData(0,1)}}else{node.innerHTML=html}}}}module.exports=setInnerHTML},{"fbjs/lib/ExecutionEnvironment":9}],206:[function(require,module,exports){"use strict";varExecutionEnvironment=require("fbjs/lib/ExecutionEnvironment");varescapeTextContentForBrowser=require("./escapeTextContentForBrowser");varsetInnerHTML=require("./setInnerHTML");varsetTextContent=function(node,text){node.textContent=text};if(ExecutionEnvironment.canUseDOM){if(!("textContent"indocument.documentElement)){setTextContent=function(node,text){setInnerHTML(node,escapeTextContentForBrowser(text))}}}module.exports=setTextContent},{"./escapeTextContentForBrowser":188,"./setInnerHTML":205,"fbjs/lib/ExecutionEnvironment":9}],207:[function(require,module,exports){"use strict";functionshouldUpdateReactComponent(prevElement,nextElement){varprevEmpty=prevElement===null||prevElement===false;varnextEmpty=nextElement===null||nextElement===false;if(prevEmpty||nextEmpty){returnprevEmpty===nextEmpty}varprevType=typeofprevElement;varnextType=typeofnextElement;if(prevType==="string"||prevType==="number"){returnnextType==="string"||nextType==="number"}else{returnnextType==="object"&&prevElement.type===nextElement.type&&prevElement.key===nextElement.key}returnfalse}module.exports=shouldUpdateReactComponent},{}],208:[function(require,module,exports){(function(process){"use strict";varReactCurrentOwner=require("./ReactCurrentOwner");varReactElement=require("./ReactElement");varReactInstanceHandles=require("./ReactInstanceHandles");vargetIteratorFn=require("./getIteratorFn");varinvariant=require("fbjs/lib/invariant");varwarning=require("fbjs/lib/warning");varSEPARATOR=ReactInstanceHandles.SEPARATOR;varSUBSEPARATOR=":";varuserProvidedKeyEscaperLookup={"=":"=0",".":"=1",":":"=2"};varuserProvidedKeyEscapeRegex=/[=.:]/g;vardidWarnAboutMaps=false;functionuserProvidedKeyEscaper(match){returnuserProvidedKeyEscaperLookup[match]}functiongetComponentKey(component,index){if(component&&component.key!=null){returnwrapUserProvidedKey(component.key)}returnindex.toString(36)}functionescapeUserProvidedKey(text){return(""+text).replace(userProvidedKeyEscapeRegex,userProvidedKeyEscaper)}functionwrapUserProvidedKey(key){return"$"+escapeUserProvidedKey(key)}functiontraverseAllChildrenImpl(children,nameSoFar,callback,traverseContext){vartype=typeofchildren;if(type==="undefined"||type==="boolean"){children=null}if(children===null||type==="string"||type==="number"||ReactElement.isValidElement(children)){callback(traverseContext,children,nameSoFar===""?SEPARATOR+getComponentKey(children,0):nameSoFar);return1}varchild;varnextName;varsubtreeCount=0;varnextNamePrefix=nameSoFar===""?SEPARATOR:nameSoFar+SUBSEPARATOR;if(Array.isArray(children)){for(vari=0;i<children.length;i++){child=children[i];nextName=nextNamePrefix+getComponentKey(child,i);subtreeCount+=traverseAllChildrenImpl(child,nextName,callback,traverseContext)}}else{variteratorFn=getIteratorFn(children);if(iteratorFn){variterator=iteratorFn.call(children);varstep;if(iteratorFn!==children.entries){varii=0;while(!(step=iterator.next()).done){child=step.value;nextName=nextNamePrefix+getComponentKey(child,ii++);subtreeCount+=traverseAllChildrenImpl(child,nextName,callback,traverseContext)}}else{if(process.env.NODE_ENV!=="production"){process.env.NODE_ENV!=="production"?warning(didWarnAboutMaps,"Using Maps as children is not yet fully supported. It is an "+"experimental feature that might be removed. Convert it to a "+"sequence / iterable of keyed ReactElements instead."):undefined;didWarnAboutMaps=true}while(!(step=iterator.next()).done){varentry=step.value;if(entry){child=entry[1];nextName=nextNamePrefix+wrapUserProvidedKey(entry[0])+SUBSEPARATOR+getComponentKey(child,0);subtreeCount+=traverseAllChildrenImpl(child,nextName,callback,traverseContext)}}}}elseif(type==="object"){varaddendum="";if(process.env.NODE_ENV!=="production"){addendum=" If you meant to render a collection of children, use an array "+"insteadorwraptheobjectusingcreateFragment(obje
lodash:40,react:210,"react-mini-router":59}],229:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var_EventEmitter=require("../lib/EventEmitter.js");var_EventEmitter2=_interopRequireDefault(_EventEmitter);function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}exports.default=new_EventEmitter2.default},{"../lib/EventEmitter.js":247}],230:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var_slicedToArray=function(){functionsliceIterator(arr,i){var_arr=[];var_n=true;var_d=false;var_e=undefined;try{for(var_i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw_e}}return_arr}returnfunction(arr,i){if(Array.isArray(arr)){returnarr}elseif(Symbol.iteratorinObject(arr)){returnsliceIterator(arr,i)}else{thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}}();var_createClass=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"indescriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}returnfunction(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);returnConstructor}}();var_react=require("react");var_react2=_interopRequireDefault(_react);var_reactAutosuggest=require("react-autosuggest");var_reactAutosuggest2=_interopRequireDefault(_reactAutosuggest);var_App=require("../App.jsx");var_App2=_interopRequireDefault(_App);var_appActions=require("../actions/appActions.js");var_appActions2=_interopRequireDefault(_appActions);var_Icon=require("./Icon.jsx");var_Icon2=_interopRequireDefault(_Icon);var_Space=require("./Space.jsx");var_Space2=_interopRequireDefault(_Space);function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function")}}function_possibleConstructorReturn(self,call){if(!self){thrownewReferenceError("this hasn't been initialised - super() hasn't been called")}returncall&&(typeofcall==="object"||typeofcall==="function")?call:self}function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}varAddProjectForm=function(_React$Component){_inherits(AddProjectForm,_React$Component);functionAddProjectForm(props){_classCallCheck(this,AddProjectForm);var_this=_possibleConstructorReturn(this,Object.getPrototypeOf(AddProjectForm).call(this,props));_this.state={val:""};_this._onChange=_this._onChange.bind(_this);_this._onAdd=_this._onAdd.bind(_this);return_this}_createClass(AddProjectForm,[{key:"_onSignIn",value:function_onSignIn(){_appActions2.default.emit("user.signin")}},{key:"_onChange",value:function_onChange(evt,_ref){varnewValue=_ref.newValue;this.setState({val:newValue})}},{key:"_onGetList",value:function_onGetList(_ref2){varvalue=_ref2.value;_appActions2.default.emit("projects.search",value)}},{key:"_getListValue",value:function_getListValue(value){returnvalue}},{key:"_renderListValue",value:function_renderListValue(value){returnvalue}},{key:"_onAdd",value:function_onAdd(){varval=this.state.val;if(!/^[^\s\/]+\/[^\s\/]+$/.test(val))return;var_val$split=val.split("/");var_val$split2=_slicedToArray(_val$split,2);varowner=_val$split2[0];varname=_val$
}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}varMilestones=function(_React$Component){_inherits(Milestones,_React$Component);functionMilestones(props){_classCallCheck(this,Milestones);return_possibleConstructorReturn(this,Object.getPrototypeOf(Milestones).call(this,props))}_createClass(Milestones,[{key:"_onSort",value:function_onSort(){_appActions2.default.emit("projects.sort")}},{key:"_onRefresh",value:function_onRefresh(){_appActions2.default.emit("projects.load")}},{key:"render",value:functionrender(){var_props=this.props;varprojects=_props.projects;varproject=_props.project;varerrors=(0,_lodash2.default)(projects.list).filter("errors").map(function(project,i){vartext=project.errors.join("\n");return_react2.default.createElement("tr",{key:"err-"+i},_react2.default.createElement("td",{colSpan:"3",className:"repo"},_react2.default.createElement("div",{className:"project"},project.owner,"/",project.name,_react2.default.createElement("span",{className:"error",title:text},_react2.default.createElement(_Icon2.default,{name:"warning"})))))}).value();varlist=[];_lodash2.default.each(projects.index,function(_ref){var_ref2=_slicedToArray(_ref,2);varpI=_ref2[0];varmI=_ref2[1];var_projects$list$pI=projects.list[pI];varowner=_projects$list$pI.owner;varname=_projects$list$pI.name;varmilestones=_projects$list$pI.milestones;varmilestone=milestones[mI];if(!(!project||project.owner==owner&&project.name==name))return;list.push(_react2.default.createElement("tr",{className:(0,_classnames2.default)({done:milestone.stats.isDone}),key:pI+"-"+mI},_react2.default.createElement("td",{className:"repo"},_react2.default.createElement(_Link2.default,{route:{to:"milestones",params:{owner:owner,name:name}},className:"project"},owner,"/",name)),_react2.default.createElement("td",null,_react2.default.createElement(_Link2.default,{route:{to:"chart",params:{owner:owner,name:name,milestone:milestone.number}},className:"milestone"},milestone.title)),_react2.default.createElement("td",{style:{width:"1%"}},_react2.default.createElement("div",{className:"progress"},_react2.default.createElement("span",{className:"percent"},Math.floor(milestone.stats.progress.points),"%"),_react2.default.createElement("span",{className:(0,_classnames2.default)("due",{red:milestone.stats.isOverdue})},_format2.default.due(milestone.due_on)),_react2.default.createElement("div",{className:"outer bar"},_react2.default.createElement("div",{className:(0,_classnames2.default)("inner","bar",{green:milestone.stats.isOnTime,red:!milestone.stats.isOnTime}),style:{width:milestone.stats.progress.points+"%"}}))))))});if(!errors.length&&!list.length)returnfalse;if(project){return_react2.default.createElement("div",{id:"projects"},_react2.default.createElement("div",{className:"header"},_react2.default.createElement("a",{className:"sort",onClick:this._onSort},_react2.default.createElement(_Icon2.default,{name:"sort"})," Sorted by ",projects.sortBy),_react2.default.createElement("h2",null,"Milestones")),_react2.default.createElement("table",null,_react2.default.createElement("tbody",null,list)),_react2.default.createElement("div",{className:"footer"}))}else{return_react2.default.createElement("div",{id:"projects"},_react2.default.createElement("div",{className:"header"},_react2.default.createElement("a",{className:"sort",onClick:this._onSort},_react2.default.createElement(_Icon2.default,{name:"sort"})," Sorted by ",projects.sortBy),_react2.default.createElement("h2",null,"Projects")),_react2.default.createElement("table",null,_react2.default.createElement("tbody",null,errors,list)),_react2.default.createElement("div",{className:"footer"},_react2.default.createElement("a",{onClick:this.props.onToggleMode},"Edit Projects"),_react2.default.createElement("a",{onClick:this._onRefresh},"Refresh Projects")))}}}]);returnMilestones}(_react2.default.Component);exports.d
}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}varPage=function(_React$Component){_inherits(Page,_React$Component);functionPage(props){_classCallCheck(this,Page);var_this=_possibleConstructorReturn(this,Object.getPrototypeOf(Page).call(this,props));_this.state=_this._getData();_this._onChange=_this._onChange.bind(_this);return_this}_createClass(Page,[{key:"_getData",value:function_getData(store){varobj={};if(store){obj[store]=_stores2.default[store].get()}else{for(varkeyin_stores2.default){obj[key]=_stores2.default[key].get()}}returnobj}},{key:"_onChange",value:function_onChange(store,val,key){if(!this._isMounted)return;this.setState(this._getData(store))}},{key:"componentDidMount",value:functioncomponentDidMount(){this._isMounted=true;for(varkeyin_stores2.default){_stores2.default[key].onAny(_lodash2.default.partial(this._onChange,key))}}},{key:"componentWillUnmount",value:functioncomponentWillUnmount(){this._isMounted=false;for(varkeyin_stores2.default){_stores2.default[key].clean(this._onChange)}}}]);returnPage}(_react2.default.Component);exports.default=Page},{"../stores":258,lodash:40,react:210}],249:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var_createClass=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"indescriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}returnfunction(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);returnConstructor}}();var_objectPath=require("object-path");var_objectPath2=_interopRequireDefault(_objectPath);var_objectAssign=require("object-assign");var_objectAssign2=_interopRequireDefault(_objectAssign);var_lodash=require("lodash");var_lodash2=_interopRequireDefault(_lodash);var_deepDiff=require("deep-diff");var_EventEmitter2=require("./EventEmitter.js");var_EventEmitter3=_interopRequireDefault(_EventEmitter2);var_appActions=require("../actions/appActions.js");var_appActions2=_interopRequireDefault(_appActions);function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor)){thrownewTypeError("Cannot call a class as a function")}}function_possibleConstructorReturn(self,call){if(!self){thrownewReferenceError("this hasn't been initialised - super() hasn't been called")}returncall&&(typeofcall==="object"||typeofcall==="function")?call:self}function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}varDATA="data";varStore=function(_EventEmitter){_inherits(Store,_EventEmitter);functionStore(data){_classCallCheck(this,Store);var_this=_possibleConstructorReturn(this,Object.getPrototypeOf(Store).call(this));_this[DATA]=data||{};_this._cbs={};return_this}_createClass(Store,[{key:"cb",value:functioncb(fn){var_this2=this;varid=_lodash2.default.uniqueId();_appActions2.default.emit("system.loading",true);returnthis._cbs[id]=function(){for(var_len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}if(!(idin_this2._cbs))return;fn.apply(_this2,args);delete_this2._cbs[id];if(!Object.keys(_this2._cbs).length){_appActions2.default.emit("system.loading",false)}}}},{key:"clean",v
var_iteratorNormalCompletion=true;var_didIteratorError=false;var_iteratorError=undefined;try{for(var_iterator=arr[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){varitem=_step.value;for(varkeyinhash){if(!_objectPath2.default.has(item,key)){_objectPath2.default.set(item,key,hash[key])}}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw_iteratorError}}}};switch(sortBy){case"progress":returndeIdx(function(_ref4,_ref5){var_ref7=_slicedToArray(_ref4,2);varaM=_ref7[1];var_ref6=_slicedToArray(_ref5,2);varbM=_ref6[1];defaults([aM,bM],{"stats.progress.points":0});returnaM.stats.progress.points-bM.stats.progress.points});case"priority":returndeIdx(function(_ref8,_ref9){var_ref11=_slicedToArray(_ref8,2);varaM=_ref11[1];var_ref10=_slicedToArray(_ref9,2);varbM=_ref10[1];defaults([aM,bM],{"stats.progress.time":0,"stats.days":1e3});var_$map=_lodash2.default.map([aM,bM],function(_ref12){varstats=_ref12.stats;return(stats.progress.points-stats.progress.time)*stats.days});var_$map2=_slicedToArray(_$map,2);var$a=_$map2[0];var$b=_$map2[1];return$b-$a});case"name":returndeIdx(function(_ref13,_ref14){var_ref16=_slicedToArray(_ref13,2);varaP=_ref16[0];varaM=_ref16[1];var_ref15=_slicedToArray(_ref14,2);varbP=_ref15[0];varbM=_ref15[1];varowner=undefined,name=undefined;if(owner=bP.owner.localeCompare(aP.owner)){returnowner}if(name=bP.name.localeCompare(aP.name)){returnname}if(_semver2.default.valid(bM.title)&&_semver2.default.valid(aM.title)){return_semver2.default.gt(bM.title,aM.title)}else{returnbM.title.localeCompare(aM.title)}});default:returnfunction(){return0}}}},{key:"getProject",value:functiongetProject(user,p){var_this5=this;_request2.default.allMilestones(user,p,this.cb(function(err,milestones){if(err)return_this5.saveError(p,err);milestones.forEach(function(milestone){if(!_lodash2.default.find(p.milestones,function(_ref17){varnumber=_ref17.number;returnmilestone.number===number})){_this5.getIssues(user,p,milestone)}})}))}},{key:"getMilestone",value:functiongetMilestone(user,p,m,say){var_this6=this;_request2.default.oneMilestone(user,{owner:p.owner,name:p.name,milestone:m},this.cb(function(err,milestone){if(err)return_this6.saveError(p,err,say);_this6.getIssues(user,p,milestone,say)}))}},{key:"getIssues",value:functiongetIssues(user,p,m,say){var_this7=this;_issues2.default.fetchAll(user,{owner:p.owner,name:p.name,milestone:m.number},this.cb(function(err,obj){if(err)return_this7.saveError(p,err,say);_lodash2.default.extend(m,{issues:obj});_this7.addMilestone(p,m,say)}))}},{key:"notify",value:functionnotify(milestone){if(milestone.stats.isEmpty){varleft=undefined;if(left=milestone.issues.open.size){return_appActions2.default.emit("system.notify",{text:"No progress has been made, "+left+" point"+(left>1?"s":"")+" left",system:true,ttl:null})}else{return_appActions2.default.emit("system.notify",{text:"This milestone has no issues",type:"warn",system:true,ttl:null})}}if(milestone.stats.isDone){_appActions2.default.emit("system.notify",{text:"This milestone is complete",type:"success"})}if(milestone.stats.isOverdue){_appActions2.default.emit("system.notify",{text:"This milestone is overdue",type:"warn"})}}},{key:"addMilestone",value:functionaddMilestone(project,milestone,say){vari=undefined,j=undefined;_lodash2.default.extend(milestone,{stats:(0,_stats2.default)(milestone)});if(say)this.notify(milestone);if((i=this.findIndex(project))<0){i=this.push("list",project)}varmilestones=undefined;if(milestones=this.get("list."+i+".milestones")){j=_lodash2.default.findIndex(milestones,{number:milestone.number});if(j!=-1){returnthis.set("list."+i+".milestones."+j,milestone)}}j=this.push("list."+i+".milestones",milestone);this.sort([i,j],[project,milestone])}},{key:"findIndex",value:functionfindIndex(_ref18){varowner=_ref18.owner;varname=_ref18.name;return_lodash2.default.findIndex(this.get("list"),{owner