ethercalc
Version:
Multi-User Spreadsheet Server
2 lines • 186 kB
JavaScript
!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="/static/",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){function o(){var e=arguments;return function(){var t,n;for(n=e[0].apply(this,arguments),t=1;t<e.length;++t)n=e[t](n);return n}}function r(e,t,n){return function(){return(n||e)[t].apply(e,arguments)}}function i(e,t){for(var n=-1,o=t.length>>>0;++n<o;)if(e===t[n])return!0;return!1}var a,s,u,c,l,p,d,f,h,m,v,y,g,E,N,b,C,_,D;n(2),a=n(6),s=n(153),u=/(?:127.0.0.1|localhost|\.local):8080/.exec(window.location.href)?"http://127.0.0.1:8000":".",c="foobar",/\/=([^_][^\/?]*)(?:\?.*)?$/.exec(window.location.href)&&(c=RegExp.$1),l=n(179).HackFoldr,p=/auth=0/.exec(window.location.href),d="",/\?auth=/.test(window.location.search)&&(p=/\??auth=0/.test(window.location.search),d=p?"/view":"/edit","."===u&&(u=".."),window.history.pushState({},"","./="+c+d)),f=a.DOM,h=f.div,m=f.iframe,v=f.input,y=f.button,g=o(a.createClass,a.createFactory),E=g({propTypes:{foldr:a.PropTypes.any.isRequired},getDefaultProps:function(){return{activeIndex:0}},render:function(){var e;return e=this.props.foldr.size()>1,h({className:"nav"+(p?" readonly":"")},b({rows:this.props.foldr.rows,activeIndex:this.getIdx(),onChange:r(this,"onChange")}),p?"":N({canDelete:e,onAdd:r(this,"onAdd"),onRename:r(this,"onRename"),onDelete:r(this,"onDelete")}))},getIdx:function(){var e,t;return(e=this.props.activeIndex)<(t=this.props.foldr.lastIndex())?e:t},getSheet:function(){return this.props.foldr.at(this.getIdx())},componentDidUpdate:function(){var e,t,n,o,r=[];for(e=0,n=(t=document.getElementsByTagName("iframe")).length;e<n;++e)o=t[e],r.push(D(o,this.props.foldr.rows));return r},onChange:function(e){return this.setProps({activeIndex:e}),document.getElementsByTagName("iframe")[e].contentWindow.focus()},onAdd:function(){var e,t,n,o,r;for(e=this.props.foldr,t="Sheet",n=e.size()+1,o="/"+c+".",/^([_a-zA-Z]+)(\d+)$/.exec(e.lastRow().title)&&(t=RegExp.$1,n=parseInt(RegExp.$2)),/^(\/[^=]+\.|\/sheet(?=\d))/.exec(e.lastRow().link)&&(o=RegExp.$1);i(t+""+n,e.titles())||i(o+""+n,e.links());)++n;return r=e.size(),e=e.push({link:o+""+n,title:t+""+n}),this.setProps({foldr:e,activeIndex:r})},onRename:function(){var e,t,n;if(e=this.props.foldr,t=prompt("Rename Sheet",this.getSheet().title),null!=t&&!i(t.toLowerCase(),function(){var t,o,r,i=[];for(t=0,r=(o=e.titles()).length;t<r;++t)n=o[t],i.push(n.toLowerCase());return i}()))return e.setAt(this.getIdx(),{title:t}),this.setProps({foldr:e})},onDelete:function(){var e;if(e=this.props.foldr,confirm("Really delete?\n"+this.getSheet().title))return e.deleteAt(this.getIdx()),this.setProps({foldr:e})}}),N=g({render:function(){return h({className:"buttons"},y({onClick:this.props.onAdd},"Add"),y({onClick:this.props.onRename},"Rename..."),y({onClick:this.props.onDelete,disabled:!this.props.canDelete},"Delete"))}}),b=g({onChange:function(e){return this.props.onChange(e)},render:function(){var e,t;return s.apply(null,[{activeIndex:this.props.activeIndex,onChange:r(this,"onChange"),tabVerticalPosition:"bottom"}].concat(function(){var n,o,r,i,a,s=[];for(n=0,r=(o=this.props.rows).length;n<r;++n)i=o[n],e=i.title,t=null!=(a=i.link)?a:"/"+encodeURIComponent(e),s.push(h({key:e,title:e,className:"wrapper"},C({src:u+""+t+d,rows:this.props.rows})));return s}.call(this)))}}),C=g({shouldComponentUpdate:function(e){return this.props.src!==e.src},render:function(){return m({key:this.props.src,src:this.props.src})},componentDidMount:function(){return D(this.getDOMNode(),this.props.rows)},componentDidUpdate:function(){return D(this.getDOMNode(),this.props.rows)}}),_=!0,D=function(e,t){var n;if(n=e.contentDocument,null!=n)return"complete"!==n.readyState?setTimeout(function(){return D(e,t)},1):setTimeout(function(){var n;if(e.contentWindow.postMessage(JSON.stringify({type:"multi",rows:t,index:c},void 0,2),"*"),n&&e===document.getElementsByTagName("iframe")[0])return e.contentWindow.focus(),n=!1},100)},function(e){return window.init=e}(function(){var e;return e=new l(u),e.fetch(c,function(){return a.render(E({foldr:e}),document.body)})})},function(e,t,n){var o=n(3);"string"==typeof o&&(o=[[e.id,o,""]]);n(5)(o,{})},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,"body{margin:0;padding:0;overflow:hidden}nav,.buttons{background:#eee;font-family:Helvetica,sans-serif;border-top:1px solid #000;position:absolute!important;font-size:16px;height:22px;bottom:5px}nav{right:200px;left:0;padding-left:8px;white-space:nowrap}.readonly nav{right:0}.buttons{width:200px;right:0;padding-right:8px;text-align:right}.buttons button{font-family:Helvetica,sans-serif;background:#eee;font-size:14px;height:22px;border-radius:3px;border:1px solid #eee;margin-left:2px;cursor:pointer}.buttons button:hover{border:1px solid #ccc;background:#fff}.buttons button:disabled:hover{border:1px solid transparent;background:#eee;cursor:default}.basic-tabs-item{display:block!important;visibility:hidden}.basic-tabs-item.active{font-family:Helvetica,sans-serif;visibility:visible}.basic-tabs-item-title{background:#ccc;border:1px solid #000;border-top:none;padding:2px 10px;border-radius:0 0 8px 8px}.basic-tabs-item-title:hover{background:#eee;cursor:pointer}.basic-tabs-item-title.active{background:#fff;border-top:1px solid #fff;margin-top:-1px}body,iframe{height:100%}iframe{width:100%;border:0}.wrapper{position:absolute;width:100%;bottom:51px;top:0}body>.nav>.buttons{height:43px}body>.nav>.basic-tabs>nav.basic-tabs.basic-tabs-strip{height:43px;overflow-x:auto}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=l[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(a(o.parts[i],t))}else{for(var s=[],i=0;i<o.parts.length;i++)s.push(a(o.parts[i],t));l[o.id]={id:o.id,refs:1,parts:s}}}}function r(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],i=r[0],a=r[1],s=r[2],u=r[3],c={css:a,media:s,sourceMap:u};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(){var e=document.createElement("style"),t=f();return e.type="text/css",t.appendChild(e),e}function a(e,t){var n,o,r;if(t.singleton){var a=m++;n=h||(h=i()),o=u.bind(null,n,a,!1),r=u.bind(null,n,a,!0)}else n=i(),o=c.bind(null,n),r=function(){n.parentNode.removeChild(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function s(e,t,n){var o=["/** >>"+t+" **/","/** "+t+"<< **/"],r=e.lastIndexOf(o[0]),i=n?o[0]+n+o[1]:"";if(e.lastIndexOf(o[0])>=0){var a=e.lastIndexOf(o[1])+o[1].length;return e.slice(0,r)+i+e.slice(a)}return e+i}function u(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=s(e.styleSheet.cssText,t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function c(e,t){var n=t.css,o=t.media,r=t.sourceMap;if(r&&"function"==typeof btoa)try{n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(JSON.stringify(r))+" */",n='@import url("data:text/css;base64,'+btoa(n)+'")'}catch(e){}if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l={},p=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},d=p(function(){return/msie 9\b/.test(window.navigator.userAgent.toLowerCase())}),f=p(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,m=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=d());var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var s=n[a],u=l[s.id];u.refs--,i.push(u)}if(e){var c=r(e);o(c,t)}for(var a=0;a<i.length;a++){var u=i[a];if(0===u.refs){for(var p=0;p<u.parts.length;p++)u.parts[p]();delete l[u.id]}}}}},function(e,t,n){e.exports=n(7)},function(e,t,n){(function(t){"use strict";var o=n(9),r=n(16),i=n(19),a=n(28),s=n(35),u=n(23),c=n(25),l=n(22),p=n(36),d=n(50),f=n(51),h=n(80),m=n(26),v=n(41),y=n(61),g=n(76),E=n(33),N=n(125),b=n(150),C=n(79),_=n(24),D=n(74),w=n(152);h.inject();var O=l.createElement,x=l.createFactory;"production"!==t.env.NODE_ENV&&(O=p.createElement,x=p.createFactory),O=v.wrapCreateElement(O),x=v.wrapCreateFactory(x);var M=E.measure("React","render",y.render),T={Children:{map:i.map,forEach:i.forEach,count:i.count,only:w},DOM:d,PropTypes:N,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:s.createClass,createElement:O,createFactory:x,constructAndRenderComponent:y.constructAndRenderComponent,constructAndRenderComponentByID:y.constructAndRenderComponentByID,render:M,renderToString:b.renderToString,renderToStaticMarkup:b.renderToStaticMarkup,unmountComponentAtNode:y.unmountComponentAtNode,isValidClass:v.isValidClass,isValidElement:l.isValidElement,withContext:u.withContext,__spread:_,renderComponent:D("React","renderComponent","render",this,M),renderComponentToString:D("React","renderComponentToString","renderToString",this,b.renderToString),renderComponentToStaticMarkup:D("React","renderComponentToStaticMarkup","renderToStaticMarkup",this,b.renderToStaticMarkup),isValidComponent:D("React","isValidComponent","isValidElement",this,l.isValidElement)};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({Component:a,CurrentOwner:c,DOMComponent:f,DOMPropertyOperations:o,InstanceHandles:m,Mount:y,MultiChild:g,TextComponent:C}),"production"!==t.env.NODE_ENV){var R=n(54);if(R.canUseDOM&&window.top===window.self){navigator.userAgent.indexOf("Chrome")>-1&&"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&console.debug("Download the React DevTools for a better development experience: http://fb.me/react-devtools");for(var I=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],S=0;S<I.length;S++)if(!I[S]){console.error("One or more ES5 shim/shams expected by React are not available: http://fb.me/react-warning-polyfills");break}}}T.version="0.12.2",e.exports=T}).call(t,n(8))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&s())}function s(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v<t;)f&&f[v].run();v=-1,t=h.length}f=null,m=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,p,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var f,h=[],m=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new u(e,t)),1!==h.length||m||r(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";function o(e,t){return null==t||r.hasBooleanValue[e]&&!t||r.hasNumericValue[e]&&isNaN(t)||r.hasPositiveNumericValue[e]&&t<1||r.hasOverloadedBooleanValue[e]&&t===!1}var r=n(10),i=n(12),a=n(13),s=n(14),u=a(function(e){return i(e)+'="'});if("production"!==t.env.NODE_ENV)var c={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},l={},p=function(e){if(!(c.hasOwnProperty(e)&&c[e]||l.hasOwnProperty(e)&&l[e])){l[e]=!0;var n=e.toLowerCase(),o=r.isCustomAttribute(n)?n:r.getPossibleStandardName.hasOwnProperty(n)?r.getPossibleStandardName[n]:null;"production"!==t.env.NODE_ENV?s(null==o,"Unknown DOM property "+e+". Did you mean "+o+"?"):null}};var d={createMarkupForID:function(e){return u(r.ID_ATTRIBUTE_NAME)+i(e)+'"'},createMarkupForProperty:function(e,n){if(r.isStandardName.hasOwnProperty(e)&&r.isStandardName[e]){if(o(e,n))return"";var a=r.getAttributeName[e];return r.hasBooleanValue[e]||r.hasOverloadedBooleanValue[e]&&n===!0?i(a):u(a)+i(n)+'"'}return r.isCustomAttribute(e)?null==n?"":u(e)+i(n)+'"':("production"!==t.env.NODE_ENV&&p(e),null)},setValueForProperty:function(e,n,i){if(r.isStandardName.hasOwnProperty(n)&&r.isStandardName[n]){var a=r.getMutationMethod[n];if(a)a(e,i);else if(o(n,i))this.deleteValueForProperty(e,n);else if(r.mustUseAttribute[n])e.setAttribute(r.getAttributeName[n],""+i);else{var s=r.getPropertyName[n];r.hasSideEffects[n]&&""+e[s]==""+i||(e[s]=i)}}else r.isCustomAttribute(n)?null==i?e.removeAttribute(n):e.setAttribute(n,""+i):"production"!==t.env.NODE_ENV&&p(n)},deleteValueForProperty:function(e,n){if(r.isStandardName.hasOwnProperty(n)&&r.isStandardName[n]){var o=r.getMutationMethod[n];if(o)o(e,void 0);else if(r.mustUseAttribute[n])e.removeAttribute(r.getAttributeName[n]);else{var i=r.getPropertyName[n],a=r.getDefaultValueForProperty(e.nodeName,i);r.hasSideEffects[n]&&""+e[i]===a||(e[i]=a)}}else r.isCustomAttribute(n)?e.removeAttribute(n):"production"!==t.env.NODE_ENV&&p(n)}};e.exports=d}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function o(e,t){return(e&t)===t}var r=n(11),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var n=e.Properties||{},a=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var l in n){"production"!==t.env.NODE_ENV?r(!s.isStandardName.hasOwnProperty(l),"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",l):r(!s.isStandardName.hasOwnProperty(l)),s.isStandardName[l]=!0;var p=l.toLowerCase();if(s.getPossibleStandardName[p]=l,a.hasOwnProperty(l)){var d=a[l];s.getPossibleStandardName[d]=l,s.getAttributeName[l]=d}else s.getAttributeName[l]=p;s.getPropertyName[l]=u.hasOwnProperty(l)?u[l]:l,c.hasOwnProperty(l)?s.getMutationMethod[l]=c[l]:s.getMutationMethod[l]=null;var f=n[l];s.mustUseAttribute[l]=o(f,i.MUST_USE_ATTRIBUTE),s.mustUseProperty[l]=o(f,i.MUST_USE_PROPERTY),s.hasSideEffects[l]=o(f,i.HAS_SIDE_EFFECTS),s.hasBooleanValue[l]=o(f,i.HAS_BOOLEAN_VALUE),s.hasNumericValue[l]=o(f,i.HAS_NUMERIC_VALUE),s.hasPositiveNumericValue[l]=o(f,i.HAS_POSITIVE_NUMERIC_VALUE),s.hasOverloadedBooleanValue[l]=o(f,i.HAS_OVERLOADED_BOOLEAN_VALUE),"production"!==t.env.NODE_ENV?r(!s.mustUseAttribute[l]||!s.mustUseProperty[l],"DOMProperty: Cannot require using both attribute and property: %s",l):r(!s.mustUseAttribute[l]||!s.mustUseProperty[l]),"production"!==t.env.NODE_ENV?r(s.mustUseProperty[l]||!s.hasSideEffects[l],"DOMProperty: Properties that have side effects must use property: %s",l):r(s.mustUseProperty[l]||!s.hasSideEffects[l]),"production"!==t.env.NODE_ENV?r(!!s.hasBooleanValue[l]+!!s.hasNumericValue[l]+!!s.hasOverloadedBooleanValue[l]<=1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",l):r(!!s.hasBooleanValue[l]+!!s.hasNumericValue[l]+!!s.hasOverloadedBooleanValue[l]<=1)}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,o=a[e];return o||(a[e]=o={}),t in o||(n=document.createElement(e),o[t]=n[t]),o[t]},injection:i};e.exports=s}).call(t,n(8))},function(e,t,n){(function(t){"use strict";var n=function(e,n,o,r,i,a,s,u){if("production"!==t.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[o,r,i,a,s,u],p=0;c=new Error("Invariant Violation: "+n.replace(/%s/g,function(){return l[p++]}))}throw c.framesToPop=1,c}};e.exports=n}).call(t,n(8))},function(e,t){"use strict";function n(e){return r[e]}function o(e){return(""+e).replace(i,n)}var r={"&":"&",">":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=o},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)?t[n]:t[n]=e.call(this,n)}}e.exports=n},function(e,t,n){(function(t){"use strict";var o=n(15),r=o;"production"!==t.env.NODE_ENV&&(r=function(e,t){for(var n=[],o=2,r=arguments.length;o<r;o++)n.push(arguments[o]);if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){var i=0;console.warn("Warning: "+t.replace(/%s/g,function(){return n[i++]}))}}),e.exports=r}).call(t,n(8))},function(e,t){function n(e){return function(){return e}}function o(){}o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){"use strict";function o(e){return e===y.topMouseUp||e===y.topTouchEnd||e===y.topTouchCancel}function r(e){return e===y.topMouseMove||e===y.topTouchMove}function i(e){return e===y.topMouseDown||e===y.topTouchStart}function a(e,n){var o=e._dispatchListeners,r=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&f(e),Array.isArray(o))for(var i=0;i<o.length&&!e.isPropagationStopped();i++)n(e,o[i],r[i]);else o&&n(e,o,r)}function s(e,t,n){e.currentTarget=v.Mount.getNode(n);var o=t(e,n);return e.currentTarget=null,o}function u(e,t){a(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function c(e){var n=e._dispatchListeners,o=e._dispatchIDs;if("production"!==t.env.NODE_ENV&&f(e),Array.isArray(n)){for(var r=0;r<n.length&&!e.isPropagationStopped();r++)if(n[r](e,o[r]))return o[r]}else if(n&&n(e,o))return o;return null}function l(e){var t=c(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function p(e){"production"!==t.env.NODE_ENV&&f(e);var n=e._dispatchListeners,o=e._dispatchIDs;"production"!==t.env.NODE_ENV?m(!Array.isArray(n),"executeDirectDispatch(...): Invalid `event`."):m(!Array.isArray(n));var r=n?n(e,o):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function d(e){return!!e._dispatchListeners}var f,h=n(17),m=n(11),v={Mount:null,injectMount:function(e){v.Mount=e,"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?m(e&&e.getNode,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode."):m(e&&e.getNode))}},y=h.topLevelTypes;"production"!==t.env.NODE_ENV&&(f=function(e){var n=e._dispatchListeners,o=e._dispatchIDs,r=Array.isArray(n),i=Array.isArray(o),a=i?o.length:o?1:0,s=r?n.length:n?1:0;"production"!==t.env.NODE_ENV?m(i===r&&a===s,"EventPluginUtils: Invalid `event`."):m(i===r&&a===s)});var g={isEndish:o,isMoveish:r,isStartish:i,executeDirectDispatch:p,executeDispatch:s,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:l,hasDispatches:d,injection:v,useTouchEvents:!1};e.exports=g}).call(t,n(8))},function(e,t,n){"use strict";var o=n(18),r=o({bubbled:null,captured:null}),i=o({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:r};e.exports=a},function(e,t,n){(function(t){"use strict";var o=n(11),r=function(e){var n,r={};"production"!==t.env.NODE_ENV?o(e instanceof Object&&!Array.isArray(e),"keyMirror(...): Argument must be an object."):o(e instanceof Object&&!Array.isArray(e));for(n in e)e.hasOwnProperty(n)&&(r[n]=n);return r};e.exports=r}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function o(e,t){this.forEachFunction=e,this.forEachContext=t}function r(e,t,n,o){var r=e;r.forEachFunction.call(r.forEachContext,t,o)}function i(e,t,n){if(null==e)return e;var i=o.getPooled(t,n);d(e,r,i),o.release(i)}function a(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function s(e,n,o,r){var i=e,a=i.mapResult,s=!a.hasOwnProperty(o);if("production"!==t.env.NODE_ENV?f(s,"ReactChildren.map(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",o):null,s){var u=i.mapFunction.call(i.mapContext,n,r);a[o]=u}}function u(e,t,n){if(null==e)return e;var o={},r=a.getPooled(o,t,n);return d(e,s,r),a.release(r),o}function c(e,t,n,o){return null}function l(e,t){return d(e,c,null)}var p=n(20),d=n(21),f=n(14),h=p.twoArgumentPooler,m=p.threeArgumentPooler;p.addPoolingTo(o,h),p.addPoolingTo(a,m);var v={forEach:i,map:u,count:l};e.exports=v}).call(t,n(8))},function(e,t,n){(function(t){"use strict";var o=n(11),r=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,e,t),o}return new n(e,t)},a=function(e,t,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,e,t,n),r}return new o(e,t,n)},s=function(e,t,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,o,r),a}return new i(e,t,n,o,r)},u=function(e){var n=this;"production"!==t.env.NODE_ENV?o(e instanceof n,"Trying to release an instance into a pool of a different type."):o(e instanceof n),e.destructor&&e.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(e)},c=10,l=r,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=c),n.release=u,n},d={addPoolingTo:p,oneArgumentPooler:r,twoArgumentPooler:i,threeArgumentPooler:a,fiveArgumentPooler:s};e.exports=d}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function o(e){return f[e]}function r(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(h,o)}function a(e){return"$"+i(e)}function s(e,t,n){return null==e?0:m(e,"",0,t,n)}var u=n(22),c=n(26),l=n(11),p=c.SEPARATOR,d=":",f={"=":"=0",".":"=1",":":"=2"},h=/[=.:]/g,m=function(e,n,o,i,s){var c,f,h=0;if(Array.isArray(e))for(var v=0;v<e.length;v++){var y=e[v];c=n+(n?d:p)+r(y,v),f=o+h,h+=m(y,c,f,i,s)}else{var g=typeof e,E=""===n,N=E?p+r(e,0):n;if(null==e||"boolean"===g)i(s,null,N,o),h=1;else if("string"===g||"number"===g||u.isValidElement(e))i(s,e,N,o),h=1;else if("object"===g){"production"!==t.env.NODE_ENV?l(!e||1!==e.nodeType,"traverseAllChildren(...): Encountered an invalid child; DOM elements are not valid children of React components."):l(!e||1!==e.nodeType);for(var b in e)e.hasOwnProperty(b)&&(c=n+(n?d:p)+a(b)+d+r(e[b],0),f=o+h,h+=m(e[b],c,f,i,s))}}return h};e.exports=s}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function o(e,n){Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[n]:null},set:function(e){"production"!==t.env.NODE_ENV?s(!1,"Don't set the "+n+" property of the component. Mutate the existing props object instead."):null,this._store[n]=e}})}function r(e){try{var t={props:!0};for(var n in t)o(e,n);c=!0}catch(e){}}var i=n(23),a=n(25),s=n(14),u={key:!0,ref:!0},c=!1,l=function(e,n,o,r,i,a){return this.type=e,this.key=n,this.ref=o,this._owner=r,this._context=i,"production"!==t.env.NODE_ENV&&(this._store={validated:!1,props:a},c)?void Object.freeze(this):void(this.props=a)};l.prototype={_isReactElement:!0},"production"!==t.env.NODE_ENV&&r(l.prototype),l.createElement=function(e,n,o){var r,c={},p=null,d=null;if(null!=n){d=void 0===n.ref?null:n.ref,"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?s(null!==n.key,"createElement(...): Encountered component with a `key` of null. In a future version, this will be treated as equivalent to the string 'null'; instead, provide an explicit key or use undefined."):null),p=null==n.key?null:""+n.key;for(r in n)n.hasOwnProperty(r)&&!u.hasOwnProperty(r)&&(c[r]=n[r])}var f=arguments.length-2;if(1===f)c.children=o;else if(f>1){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];c.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(r in v)"undefined"==typeof c[r]&&(c[r]=v[r])}return new l(e,p,d,a.current,i.current,c)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceProps=function(e,n){var o=new l(e.type,e.key,e.ref,e._owner,e._context,n);return"production"!==t.env.NODE_ENV&&(o._store.validated=e._store.validated),o},l.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},e.exports=l}).call(t,n(8))},function(e,t,n){"use strict";var o=n(24),r={current:{},withContext:function(e,t){var n,i=r.current;r.current=o({},i,e);try{n=t()}finally{r.current=i}return n}};e.exports=r},function(e,t){function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),o=Object.prototype.hasOwnProperty,r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i){var a=Object(i);for(var s in a)o.call(a,s)&&(n[s]=a[s])}}return n}e.exports=n},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){(function(t){"use strict";function o(e){return f+e.toString(36)}function r(e,t){return e.charAt(t)===f||t===e.length}function i(e){return""===e||e.charAt(0)===f&&e.charAt(e.length-1)!==f}function a(e,t){return 0===t.indexOf(e)&&r(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(f)):""}function u(e,n){if("production"!==t.env.NODE_ENV?d(i(e)&&i(n),"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",e,n):d(i(e)&&i(n)),"production"!==t.env.NODE_ENV?d(a(e,n),"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",e,n):d(a(e,n)),e===n)return e;for(var o=e.length+h,s=o;s<n.length&&!r(n,s);s++);return n.substr(0,s)}function c(e,n){var o=Math.min(e.length,n.length);if(0===o)return"";for(var a=0,s=0;s<=o;s++)if(r(e,s)&&r(n,s))a=s;else if(e.charAt(s)!==n.charAt(s))break;var u=e.substr(0,a);return"production"!==t.env.NODE_ENV?d(i(u),"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,n,u):d(i(u)),u}function l(e,n,o,r,i,c){e=e||"",n=n||"","production"!==t.env.NODE_ENV?d(e!==n,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e):d(e!==n);var l=a(n,e);"production"!==t.env.NODE_ENV?d(l||a(e,n),"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,n):d(l||a(e,n));for(var p=0,f=l?s:u,h=e;;h=f(h,n)){var v;if(i&&h===e||c&&h===n||(v=o(h,l,r)),v===!1||h===n)break;"production"!==t.env.NODE_ENV?d(p++<m,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",e,n):d(p++<m)}}var p=n(27),d=n(11),f=".",h=f.length,m=100,v={createReactRootID:function(){return o(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===f&&e.length>1){var t=e.indexOf(f,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,o,r){var i=c(e,t);i!==e&&l(e,i,n,o,!1,!0),i!==t&&l(i,t,n,r,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},_getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:f};e.exports=v}).call(t,n(8))},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){o.createReactRootIndex=e}},o={createReactRootIndex:null,injection:n};e.exports=o},function(e,t,n){(function(t){"use strict";var o=n(22),r=n(29),i=n(31),a=n(24),s=n(11),u=n(18),c=u({MOUNTED:null,UNMOUNTED:null}),l=!1,p=null,d=null,f={injection:{injectEnvironment:function(e){"production"!==t.env.NODE_ENV?s(!l,"ReactComponent: injectEnvironment() can only be called once."):s(!l),d=e.mountImageIntoNode,p=e.unmountIDFromEnvironment,f.BackendIDOperations=e.BackendIDOperations,l=!0}},LifeCycle:c,BackendIDOperations:null,Mixin:{isMounted:function(){return this._lifeCycleState===c.MOUNTED},setProps:function(e,t){var n=this._pendingElement||this._currentElement;this.replaceProps(a({},n.props,e),t)},replaceProps:function(e,n){"production"!==t.env.NODE_ENV?s(this.isMounted(),"replaceProps(...): Can only update a mounted component."):s(this.isMounted()),"production"!==t.env.NODE_ENV?s(0===this._mountDepth,"replaceProps(...): You called `setProps` or `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):s(0===this._mountDepth),this._pendingElement=o.cloneAndReplaceProps(this._pendingElement||this._currentElement,e),i.enqueueUpdate(this,n)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=o.cloneAndReplaceProps(n,a({},n.props,e)),i.enqueueUpdate(this,t)},construct:function(e){this.props=e.props,this._owner=e._owner,this._lifeCycleState=c.UNMOUNTED,this._pendingCallbacks=null,this._currentElement=e,this._pendingElement=null},mountComponent:function(e,n,o){"production"!==t.env.NODE_ENV?s(!this.isMounted(),"mountComponent(%s, ...): Can only mount an unmounted component. Make sure to avoid storing components between renders or reusing a single component instance in multiple places.",e):s(!this.isMounted());var i=this._currentElement.ref;if(null!=i){var a=this._currentElement._owner;r.addComponentAsRefTo(this,i,a)}this._rootNodeID=e,this._lifeCycleState=c.MOUNTED,this._mountDepth=o},unmountComponent:function(){"production"!==t.env.NODE_ENV?s(this.isMounted(),"unmountComponent(): Can only unmount a mounted component."):s(this.isMounted());var e=this._currentElement.ref;null!=e&&r.removeComponentAsRefFrom(this,e,this._owner),p(this._rootNodeID),this._rootNodeID=null,this._lifeCycleState=c.UNMOUNTED},receiveComponent:function(e,n){
"production"!==t.env.NODE_ENV?s(this.isMounted(),"receiveComponent(...): Can only update a mounted component."):s(this.isMounted()),this._pendingElement=e,this.performUpdateIfNecessary(n)},performUpdateIfNecessary:function(e){if(null!=this._pendingElement){var t=this._currentElement,n=this._pendingElement;this._currentElement=n,this.props=n.props,this._owner=n._owner,this._pendingElement=null,this.updateComponent(e,t)}},updateComponent:function(e,t){var n=this._currentElement;n._owner===t._owner&&n.ref===t.ref||(null!=t.ref&&r.removeComponentAsRefFrom(this,t.ref,t._owner),null!=n.ref&&r.addComponentAsRefTo(this,n.ref,n._owner))},mountComponentIntoNode:function(e,t,n){var o=i.ReactReconcileTransaction.getPooled();o.perform(this._mountComponentIntoNode,this,e,t,o,n),i.ReactReconcileTransaction.release(o)},_mountComponentIntoNode:function(e,t,n,o){var r=this.mountComponent(e,n,0);d(r,t,o)},isOwnedBy:function(e){return this._owner===e},getSiblingByRef:function(e){var t=this._owner;return t&&t.refs?t.refs[e]:null}}};e.exports=f}).call(t,n(8))},function(e,t,n){(function(t){"use strict";var o=n(30),r=n(11),i={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,n,o){"production"!==t.env.NODE_ENV?r(i.isValidOwner(o),"addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(i.isValidOwner(o)),o.attachRef(n,e)},removeComponentAsRefFrom:function(e,n,o){"production"!==t.env.NODE_ENV?r(i.isValidOwner(o),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This usually means that you're trying to remove a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(i.isValidOwner(o)),o.refs[n]===e&&o.detachRef(n)},Mixin:{construct:function(){this.refs=o},attachRef:function(e,n){"production"!==t.env.NODE_ENV?r(n.isOwnedBy(this),"attachRef(%s, ...): Only a component's owner can store a ref to it.",e):r(n.isOwnedBy(this));var i=this.refs===o?this.refs={}:this.refs;i[e]=n},detachRef:function(e){delete this.refs[e]}}};e.exports=i}).call(t,n(8))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function o(){"production"!==t.env.NODE_ENV?v(x.ReactReconcileTransaction&&b,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):v(x.ReactReconcileTransaction&&b)}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=x.ReactReconcileTransaction.getPooled()}function i(e,t,n){o(),b.batchedUpdates(e,t,n)}function a(e,t){return e._mountDepth-t._mountDepth}function s(e){var n=e.dirtyComponentsLength;"production"!==t.env.NODE_ENV?v(n===g.length,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,g.length):v(n===g.length),g.sort(a);for(var o=0;o<n;o++){var r=g[o];if(r.isMounted()){var i=r._pendingCallbacks;if(r._pendingCallbacks=null,r.performUpdateIfNecessary(e.reconcileTransaction),i)for(var s=0;s<i.length;s++)e.callbackQueue.enqueue(i[s],r)}}}function u(e,n){return"production"!==t.env.NODE_ENV?v(!n||"function"==typeof n,"enqueueUpdate(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):v(!n||"function"==typeof n),o(),"production"!==t.env.NODE_ENV?y(null==d.current,"enqueueUpdate(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate."):null,b.isBatchingUpdates?(g.push(e),void(n&&(e._pendingCallbacks?e._pendingCallbacks.push(n):e._pendingCallbacks=[n]))):void b.batchedUpdates(u,e,n)}function c(e,n){"production"!==t.env.NODE_ENV?v(b.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):v(b.isBatchingUpdates),E.enqueue(e,n),N=!0}var l=n(32),p=n(20),d=n(25),f=n(33),h=n(34),m=n(24),v=n(11),y=n(14),g=[],E=l.getPooled(),N=!1,b=null,C={initialize:function(){this.dirtyComponentsLength=g.length},close:function(){this.dirtyComponentsLength!==g.length?(g.splice(0,this.dirtyComponentsLength),w()):g.length=0}},_={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},D=[C,_];m(r.prototype,h.Mixin,{getTransactionWrappers:function(){return D},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,x.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return h.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(r);var w=f.measure("ReactUpdates","flushBatchedUpdates",function(){for(;g.length||N;){if(g.length){var e=r.getPooled();e.perform(s,null,e),r.release(e)}if(N){N=!1;var t=E;E=l.getPooled(),t.notifyAll(),l.release(t)}}}),O={injectReconcileTransaction:function(e){"production"!==t.env.NODE_ENV?v(e,"ReactUpdates: must provide a reconcile transaction class"):v(e),x.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){"production"!==t.env.NODE_ENV?v(e,"ReactUpdates: must provide a batching strategy"):v(e),"production"!==t.env.NODE_ENV?v("function"==typeof e.batchedUpdates,"ReactUpdates: must provide a batchedUpdates() function"):v("function"==typeof e.batchedUpdates),"production"!==t.env.NODE_ENV?v("boolean"==typeof e.isBatchingUpdates,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):v("boolean"==typeof e.isBatchingUpdates),b=e}},x={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:w,injection:O,asap:c};e.exports=x}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function o(){this._callbacks=null,this._contexts=null}var r=n(20),i=n(24),a=n(11);i(o.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,n=this._contexts;if(e){"production"!==t.env.NODE_ENV?a(e.length===n.length,"Mismatched list of contexts in callback queue"):a(e.length===n.length),this._callbacks=null,this._contexts=null;for(var o=0,r=e.length;o<r;o++)e[o].call(n[o]);e.length=0,n.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),r.addPoolingTo(o),e.exports=o}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function n(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:n,measure:function(e,n,r){if("production"!==t.env.NODE_ENV){var i=null,a=function(){return o.enableMeasure?(i||(i=o.storedMeasure(e,n,r)),i.apply(this,arguments)):r.apply(this,arguments)};return a.displayName=e+"_"+n,a}return r},injection:{injectMeasure:function(e){o.storedMeasure=e}}};e.exports=o}).call(t,n(8))},function(e,t,n){(function(t){"use strict";var o=n(11),r={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,n,r,i,a,s,u,c){"production"!==t.env.NODE_ENV?o(!this.isInTransaction(),"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):o(!this.isInTransaction());var l,p;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),p=e.call(n,r,i,a,s,u,c),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return p},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=o.initialize?o.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){"production"!==t.env.NODE_ENV?o(this.isInTransaction(),"Transaction.closeAll(): Cannot close transaction when none are open."):o(this.isInTransaction());for(var n=this.transactionWrappers,r=e;r<n.length;r++){var a,s=n[r],u=this.wrapperInitData[r];try{a=!0,u!==i.OBSERVED_ERROR&&s.close&&s.close.call(this,u),a=!1}finally{if(a)try{this.closeAll(r+1)}catch(e){}}}this.wrapperInitData.length=0}},i={Mixin:r,OBSERVED_ERROR:{}};e.exports=i}).call(t,n(8))},function(e,t,n){(function(t){"use strict";function o(e){var t=e._owner||null;return t&&t.constructor&&t.constructor.displayName?" Check the render method of `"+t.constructor.displayName+"`.":""}function r(e,n,o){for(var r in n)n.hasOwnProperty(r)&&("production"!==t.env.NODE_ENV?M("function"==typeof n[r],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactCompositeComponent",D[o],r):M("function"==typeof n[r]))}function i(e,n){var o=U.hasOwnProperty(n)?U[n]:null;B.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?M(o===V.OVERRIDE_BASE,"ReactCompositeComponentInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):M(o===V.OVERRIDE_BASE)),e.hasOwnProperty(n)&&("production"!==t.env.NODE_ENV?M(o===V.DEFINE_MANY||o===V.DEFINE_MANY_MERGED,"ReactCompositeComponentInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):M(o===V.DEFINE_MANY||o===V.DEFINE_MANY_MERGED))}function a(e){var n=e._compositeLifeCycleState;"production"!==t.env.NODE_ENV?M(e.isMounted()||n===F.MOUNTING,"replaceState(...): Can only update a mounted or mounting component."):M(e.isMounted()||n===F.MOUNTING),"production"!==t.env.NODE_ENV?M(null==h.current,"replaceState(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."):M(null==h.current),"production"!==t.env.NODE_ENV?M(n!==F.UNMOUNTING,"replaceState(...): Cannot update while unmounting component. This usually means you called setState() on an unmounted component."):M(n!==F.UNMOUNTING)}function s(e,n){if(n){"production"!==t.env.NODE_ENV?M(!E.isValidFactory(n),"ReactCompositeComponent: You're attempting to use a component class as a mixin. Instead, just use a regular object."):M(!E.isValidFactory(n)),"production"!==t.env.NODE_ENV?M(!m.isValidElement(n),"ReactCompositeComponent: You're attempting to use a component as a mixin. Instead, just use a regular object."):M(!m.isValidElement(n));var o=e.prototype;n.hasOwnProperty(A)&&j.mixins(e,n.mixins);for(var r in n)if(n.hasOwnProperty(r)&&r!==A){var a=n[r];if(i(o,r),j.hasOwnProperty(r))j[r](e,a);else{var s=U.hasOwnProperty(r),u=o.hasOwnProperty(r),c=a&&a.__reactDontBind,d="function"==typeof a,f=d&&!s&&!u&&!c;if(f)o.__reactAutoBindMap||(o.__reactAutoBindMap={}),o.__reactAutoBindMap[r]=a,o[r]=a;else if(u){var h=U[r];"production"!==t.env.NODE_ENV?M(s&&(h===V.DEFINE_MANY_MERGED||h===V.DEFINE_MANY),"ReactCompositeComponent: Unexpected spec policy %s for key %s when mixing in component specs.",h,r):M(s&&(h===V.DEFINE_MANY_MERGED||h===V.DEFINE_MANY)),h===V.DEFINE_MANY_MERGED?o[r]=l(o[r],a):h===V.DEFINE_MANY&&(o[r]=p(o[r],a))}else o[r]=a,"production"!==t.env.NODE_ENV&&"function"==typeof a&&n.displayName&&(o[r].displayName=n.displayName+"_"+r)}}}}function u(e,n){if(n)for(var o in n){var r=n[o];if(n.hasOwnProperty(o)){var i=o in j;"production"!==t.env.NODE_ENV?M(!i,'ReactCompositeComponent: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',o):M(!i);var a=o in e;"production"!==t.env.NODE_ENV?M(!a,"ReactCompositeComponent: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",o):M(!a),e[o]=r}}}function c(e,n){return"production"!==t.env.NODE_ENV?M(e&&n&&"object"==typeof e&&"object"==typeof n,"mergeObjectsWithNoDuplicateKeys(): Cannot merge non-objects"):M(e&&n&&"object"==typeof e&&"object"==typeof n),S(n,function(n,o){"production"!==t.env.NODE_ENV?M(void 0===e[o],"mergeObjectsWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",o):M(void 0===e[o]),e[o]=n}),e}function l(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);return null==n?o:null==o?n:c(n,o)}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}var d=n(28),f=n(23),h=n(25),m=n(22),v=n(36),y=n(39),g=n(40),E=n(41),N=n(29),b=n(33),C=n(42),_=n(37),D=n(44),w=n(31),O=n(24),x=n(45),M=n(11),T=n(18),R=n(47),I=n(38),S=n(48),P=n(49),k=n(14),A=R({mixins:null}),V=T({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),L=[],U={mixins:V.DEFINE_MANY,statics:V.DEFINE_MANY,propTypes:V.DEFINE_MANY,contextTypes:V.DEFINE_MANY,childContextTypes:V.DEFINE_MANY,getDefaultProps:V.DEFINE_MANY_MERGED,getInitialState:V.DEFINE_MANY_MERGED,getChildContext:V.DEFINE_MANY_MERGED,render:V.DEFINE_ONCE,componentWillMount:V.DEFINE_MANY,componentDidMount:V.DEFINE_MANY,componentWillReceiveProps:V.DEFINE_MANY,shouldComponentUpdate:V.DEFINE_ONCE,componentWillUpdate:V.DEFINE_MANY,componentDidUpdate:V.DEFINE_MANY,componentWillUnmount:V.DEFINE_MANY,updateComponent:V.OVERRIDE_BASE},j={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)s(e,t[n])},childContextTypes:function(e,t){r(e,t,_.childContext),e.childContextTypes=O({},e.childContextTypes,t)},contextTypes:function(e,t){r(e,t,_.context),e.contextTypes=O({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=l(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){r(e,t,_.prop),e.propTypes=O({},e.propTypes,t)},statics:function(e,t){u(e,t)}},F=T({MOUNTING:null,UNMOUNTING:null,RECEIVING_PROPS:null}),B={construct:function(e){d.Mixin.construct.apply(this,arguments),N.Mixin.construct.apply(this,arguments),this.state=null,this._pendingState=null,this.context=null,this._compositeLifeCycleState=null},isMounted:function(){return d.Mixin.isMounted.call(this)&&this._compositeLifeCycleState!==F.MOUNTING},mountComponent:b.measure("ReactCompositeComponent","mountComponent",function(e,n,o){d.Mixin.mountComponent.call(this,e,n,o),this._compositeLifeCycleState=F.MOUNTING,this.__reactAutoBindMap&&this._bindAutoBindMethods(),this.context=this._processContext(this._currentElement._context),this.props=this._processProps(this.props),this.state=this.getInitialState?this.getInitialState():null,"production"!==t.env.NODE_ENV?M("object"==typeof this.state&&!Array.isArray(this.state),"%s.getInitialState(): must return an object or null",this.constructor.displayName||"ReactCompositeComponent"):M("object"==typeof this.state&&!Array.isArray(this.state)),this._pendingState=null,this._pendingForceUpdate=!1,this.componentWillMount&&(this.componentWillMount(),this._pendingState&&(this.state=this._pendingState,this._pendingState=null)),this._renderedComponent=x(this._renderValidatedComponent(),this._currentElement.type),this._compositeLifeCycleState=null;var r=this._renderedComponent.mountComponent(e,n,o+1);return this.componentDidMount&&n.getReactMountReady().enqueue(this.componentDidMount,this),r}),unmountComponent:function(){this._compositeLifeCycleState=F.UNMOUNTING,this.componentWillUnmount&&this.componentWillUnmount(),this._compositeLifeCycleState=null,this._renderedComponent.unmountComponent(),this._renderedComponent=null,d.Mixin.unmountComponent.call(this)},setState:function(e,n){"production"!==t.env.NODE_ENV?M("object"==typeof e||null==e,"setState(...): takes an object of state variables to update."):M("object"==typeof e||null==e),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?k(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):null),this.replaceState(O({},this._pendingState||this.state,e),n)},replaceState:function(e,t){a(this),this._pendingState=e,this._compositeLifeCycleState!==F.MOUNTING&&w.enqueueUpdate(this,t)},_processContext:function(e){var n=null,o=this.constructor.contextTypes;if(o){n={};for(var r in o)n[r]=e[r];"production"!==t.env.NODE_ENV&&this._checkPropTypes(o,n,_.context)}return n},_processChildContext:function(e){var n=this.getChildContext&&this.getChildContext(),o=this.constructor.displayName||"ReactCompositeComponent";if(n){"production"!==t.env.NODE_ENV?M("object"==typeof this.constructor.childContextTypes,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o):M("object"==typeof this.constructor.childContextTypes),"production"!==t.env.NODE_ENV&&this._checkPropTypes(this.constructor.childContextTypes,n,_.childContext);for(var r in n)"production"!==t.env.NODE_ENV?M(r in this.constructor.childContextTypes,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',o,r):M(r in this.constructor.childContextTypes);return O({},e,n)}return e},_processProps:function(e){if("production"!==t.env.NODE_ENV){var n=this.constructor.propTypes;n&&this._checkPropTypes(n,e,_.prop)}return e},_checkPropTypes:function(e,n,r){var i=this.constructor.displayName;for(var a in e)if(e.hasOwnProperty(a)){var s=e[a](n,a,i,r);if(s instanceof Error){var